Open btupper opened 1 year ago
Sounds great! thanks!
On Thu, Nov 17, 2022 at 9:03 AM Ben Tupper @.***> wrote:
Hi Erin,
Thanks again for the walk through. I took the liberty of making a branch "valid-geometries" to see if I could generate a "final" output with valid geometries. It's a separate branch so it won't pollute your original main branch. I saved the output (see out2 variable https://urldefense.com/v3/__https://github.com/BigelowLab/Final_GOOS_BioEco/blob/valid-geojson/Code_Satterthwaite2021/Mapping_Satterthwaite2021.R*L194__;Iw!!Mih3wA!GH96BM8j0PPM4jZz0Z0x4VylvXlVX_I3aFjnCjq2LZsYK4-BJjfLJRoKtPtsc-48Pax3oqjspeIXEMeZcLlRnW7BWEysPQ$) as geojson format. sf::read_sf reads it back in without issues.
You can see in the plot https://urldefense.com/v3/__https://github.com/BigelowLab/Final_GOOS_BioEco/blob/valid-geojson/final-out_reprex.md__;!!Mih3wA!GH96BM8j0PPM4jZz0Z0x4VylvXlVX_I3aFjnCjq2LZsYK4-BJjfLJRoKtPtsc-48Pax3oqjspeIXEMeZcLlRnW52-UIy1A$ that there are still some pretty wild geometries - but happily they seem to be valid. I have an inkling that the way gdal (under the hood) handles invalid geometries has changed since you build the database - that which ran successfully back then now throws errors. It's probably a good thing in the long run, but will cause issues now for you.
I will now pass the output up the food chain, and let you know how it goes.
Thanks again! Ben
You can view, comment on, or merge this pull request online at:
https://github.com/evsatt/Final_GOOS_BioEco/pull/2 https://urldefense.com/v3/__https://github.com/evsatt/Final_GOOS_BioEco/pull/2__;!!Mih3wA!GH96BM8j0PPM4jZz0Z0x4VylvXlVX_I3aFjnCjq2LZsYK4-BJjfLJRoKtPtsc-48Pax3oqjspeIXEMeZcLlRnW7gGKouRg$ Commit Summary
- 6ba4117 https://urldefense.com/v3/__https://github.com/evsatt/Final_GOOS_BioEco/pull/2/commits/6ba41176c1e289cd3c8dbfd6e3aa9fde059c42ef__;!!Mih3wA!GH96BM8j0PPM4jZz0Z0x4VylvXlVX_I3aFjnCjq2LZsYK4-BJjfLJRoKtPtsc-48Pax3oqjspeIXEMeZcLlRnW6agQpljw$ add full geojson output with validated geometries
File Changes
- M Code_Satterthwaite2021/Mapping_Satterthwaite2021.R https://urldefense.com/v3/__https://github.com/evsatt/Final_GOOS_BioEco/pull/2/files*diff-94b3b668018cdb8f19ca64cbddca74a3fa1bbe2cd95347356ae8ddf04419c8d4__;Iw!!Mih3wA!GH96BM8j0PPM4jZz0Z0x4VylvXlVX_I3aFjnCjq2LZsYK4-BJjfLJRoKtPtsc-48Pax3oqjspeIXEMeZcLlRnW56Exh6Qw$ (34)
- A final-out.R https://urldefense.com/v3/__https://github.com/evsatt/Final_GOOS_BioEco/pull/2/files*diff-ee58518a40777008ba80b75af2cd639d9b0b67b9faf0251fd36bd5b130dbae37__;Iw!!Mih3wA!GH96BM8j0PPM4jZz0Z0x4VylvXlVX_I3aFjnCjq2LZsYK4-BJjfLJRoKtPtsc-48Pax3oqjspeIXEMeZcLlRnW7lzA-SBw$ (4)
- A final-out.geojson https://urldefense.com/v3/__https://github.com/evsatt/Final_GOOS_BioEco/pull/2/files*diff-fa5a8e6bf13d793829f31b2ac2ffd50833ba93967f343db56ad0adb614fea35f__;Iw!!Mih3wA!GH96BM8j0PPM4jZz0Z0x4VylvXlVX_I3aFjnCjq2LZsYK4-BJjfLJRoKtPtsc-48Pax3oqjspeIXEMeZcLlRnW6zZnWQVQ$ (204)
- A final-out_reprex.R https://urldefense.com/v3/__https://github.com/evsatt/Final_GOOS_BioEco/pull/2/files*diff-891adcb52219a91030df5c26f81fba753832ec2fe2cc3d35579cc8d55fc564c3__;Iw!!Mih3wA!GH96BM8j0PPM4jZz0Z0x4VylvXlVX_I3aFjnCjq2LZsYK4-BJjfLJRoKtPtsc-48Pax3oqjspeIXEMeZcLlRnW5g1ATCfg$ (8)
- A final-out_reprex.md https://urldefense.com/v3/__https://github.com/evsatt/Final_GOOS_BioEco/pull/2/files*diff-e31c1d17618f7fdd4371843f4d2d1e04288fb2de3d718ef1d4b79891c072096c__;Iw!!Mih3wA!GH96BM8j0PPM4jZz0Z0x4VylvXlVX_I3aFjnCjq2LZsYK4-BJjfLJRoKtPtsc-48Pax3oqjspeIXEMeZcLlRnW7agVm3YQ$ (10)
- A final-out_reprex_files/figure-gfm/unnamed-chunk-2-1.png https://urldefense.com/v3/__https://github.com/evsatt/Final_GOOS_BioEco/pull/2/files*diff-b9bf74f39427c922f6651d108ed4502565b2f60abd534ae9104fce1264efc6d9__;Iw!!Mih3wA!GH96BM8j0PPM4jZz0Z0x4VylvXlVX_I3aFjnCjq2LZsYK4-BJjfLJRoKtPtsc-48Pax3oqjspeIXEMeZcLlRnW6YnBkg5A$ (0)
Patch Links:
- https://github.com/evsatt/Final_GOOS_BioEco/pull/2.patch https://urldefense.com/v3/__https://github.com/evsatt/Final_GOOS_BioEco/pull/2.patch__;!!Mih3wA!GH96BM8j0PPM4jZz0Z0x4VylvXlVX_I3aFjnCjq2LZsYK4-BJjfLJRoKtPtsc-48Pax3oqjspeIXEMeZcLlRnW7IGSSF-g$
- https://github.com/evsatt/Final_GOOS_BioEco/pull/2.diff https://urldefense.com/v3/__https://github.com/evsatt/Final_GOOS_BioEco/pull/2.diff__;!!Mih3wA!GH96BM8j0PPM4jZz0Z0x4VylvXlVX_I3aFjnCjq2LZsYK4-BJjfLJRoKtPtsc-48Pax3oqjspeIXEMeZcLlRnW5ItKJC6w$
— Reply to this email directly, view it on GitHub https://urldefense.com/v3/__https://github.com/evsatt/Final_GOOS_BioEco/pull/2__;!!Mih3wA!GH96BM8j0PPM4jZz0Z0x4VylvXlVX_I3aFjnCjq2LZsYK4-BJjfLJRoKtPtsc-48Pax3oqjspeIXEMeZcLlRnW7gGKouRg$, or unsubscribe https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AD356WJKR7Q3PIU5FYVRHA3WIZQMHANCNFSM6AAAAAASDTC6PQ__;!!Mih3wA!GH96BM8j0PPM4jZz0Z0x4VylvXlVX_I3aFjnCjq2LZsYK4-BJjfLJRoKtPtsc-48Pax3oqjspeIXEMeZcLlRnW6TRwhU-A$ . You are receiving this because you are subscribed to this thread.Message ID: @.***>
--
Erin Satterthwaite | she/her
Marine Ecologist & Sustainability Researcher
CalCOFI Program Coordinator
UC San Diego - Scripps Institution of Oceanography
California Sea Grant & CalCOFI
9500 Gilman Dr., La Jolla, CA 92093-0232
*cell*: 805-895-4353
*Play is the highest form of research *
* ~Albert Einstein*
Hi Erin,
Thanks again for the walk through. I took the liberty of making a branch "valid-geometries" to see if I could generate a "final" output with valid geometries. It's a separate branch so it won't pollute your original main branch. I saved the output (see out2 variable) as geojson format.
sf::read_sf
reads it back in without issues.You can see in the plot that there are still some pretty wild geometries - but happily they seem to be valid. I have an inkling that the way gdal (under the hood) handles invalid geometries has changed since you build the database - that which ran successfully back then now throws errors. It's probably a good thing in the long run, but will cause issues now for you.
I will now pass the output up the food chain, and let you know how it goes.
Thanks again! Ben