Hi Jim, Follow up question: what would be the best way to debug my Shapefiles for Point class objects that don't appear? Stepping through my code, I'm seeing thirty features created and sent to the shapefiles without issue. But those 30 points don't appear in ArcGIS Desktop or QGIS when I load the shapefiles. Any hints from your experience would help.
Thank you! Jason Holmberg Executive Director/Director of Engineering *A.I. and humans combating extinction together.* Wild Me - https://www.wildme.org Wildbook - https://www.wildbook.org On Tue, Apr 30, 2019 at 1:22 PM Jason Holmberg <ja...@wildme.org> wrote: > Thank you Jim! > > That solved the issue!.I can now export Shapefiles as a zipped package. > None of the data is visible yet as a layer in QGIS, so I think there's > still one more problem, but we're beyond runtime errors. > > Cheers, > Jason > > > On Tue, Apr 30, 2019 at 11:43 AM Jim Hughes <jn...@ccri.com> wrote: > >> Hi Jason, >> >> From a quick look, I wonder if you need to update the version of Apache >> Commons Lang3. GeoTools 21 uses version 3.8.1 and I see 3.0 in the project >> you linked to. >> >> Is changing the version of Commons Lang3 something easy to try? >> >> Cheers, >> >> Jim >> >> >> https://github.com/WildbookOrg/Wildbook/blob/mantamatcher.org/pom.xml#L136-L140 >> https://github.com/geotools/geotools/blob/21.1/pom.xml#L1045-L1049 >> On 4/30/2019 1:17 PM, Jason Holmberg wrote: >> >> Hi Everyone, >> >> I'm trying to upgrade this Shapefile exporter for the open source >> Wildbook project: >> >> >> https://github.com/WildbookOrg/Wildbook/blob/mantamatcher.org/src/main/java/org/ecocean/servlet/export/EncounterSearchExportShapefile.java >> >> >> using Geotools 21.1 Java 8 support. >> >> Everything compiles great, and I tell Maven to use Java 8 and have >> ensured that my Ubuntu server is running Java 8. >> >> But I get the following error: >> >> java.lang.NoSuchFieldError: JAVA_9 >> org.geotools.util.NIOUtilities.clean(NIOUtilities.java:207) >> org.geotools.util.NIOUtilities.clean(NIOUtilities.java:185) >> >> org.geotools.data.shapefile.dbf.DbaseFileHeader.writeHeader(DbaseFileHeader.java:848) >> >> org.geotools.data.shapefile.ShapefileDataStore.createSchema(ShapefileDataStore.java:307) >> >> org.ecocean.servlet.export.EncounterSearchExportShapefile.doPost(EncounterSearchExportShapefile.java:195) >> >> org.ecocean.servlet.export.EncounterSearchExportShapefile.doGet(EncounterSearchExportShapefile.java:57) >> >> Can anyone advise what additional steps I could take to restore ShapeFile >> export in our project with Geotools 21.1? Is there a hidden reference to >> Java 9 somewhere in something I am using? >> >> Thank you! >> Jason Holmberg >> Executive Director/Director of Engineering >> >> *A.I. and humans combating extinction together.* >> Wild Me - https://www.wildme.org >> Wildbook - https://www.wildbook.org >> >> >> >> _______________________________________________ >> GeoTools-GT2-Users mailing >> listGeoTools-GT2-Users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/geotools-gt2-users >> >> _______________________________________________ >> GeoTools-GT2-Users mailing list >> GeoTools-GT2-Users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users >> >
_______________________________________________ GeoTools-GT2-Users mailing list GeoTools-GT2-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users