Unable to read Shp file using GeoTool

840
1
01-20-2022 02:05 AM
Labels (2)
santhoshT
New Contributor II

While trying to readthe shp file from file stroage getting below error

System

Windows 10

java 8

Geo Tolol

 

Thanks in advance!

 

 

 

java.lang.ExceptionInInitializerError
at org.geotools.data.shapefile.files.ShpFiles.exists(ShpFiles.java:975)
at org.geotools.data.shapefile.files.ShpFiles.init(ShpFiles.java:182)
at org.geotools.data.shapefile.files.ShpFiles.<init>(ShpFiles.java:139)
at org.geotools.data.shapefile.ShapefileDataStore.<init>(ShapefileDataStore.java:119)
at ShapefileParser.openDataStore(ShapefileParser.java:242)
at ShapefileParser.extractRecords(ShapefileParser.java:158)
at ShapefileParser.parse(ShapefileParser.java:57)
at getFolder.shape(getFolder.java:40)
at getFolder.main(getFolder.java:21)
Caused by: java.lang.IllegalArgumentException: org.geotools.styling.StyleFactory is not an ImageIO SPI class
at java.desktop/javax.imageio.spi.ServiceRegistry.checkClassAllowed(ServiceRegistry.java:716)
at java.desktop/javax.imageio.spi.ServiceRegistry.<init>(ServiceRegistry.java:117)
at org.geotools.factory.FactoryRegistry.<init>(FactoryRegistry.java:155)
at org.geotools.factory.FactoryCreator.<init>(FactoryCreator.java:91)
at org.geotools.factory.CommonFactoryFinder.getServiceRegistry(CommonFactoryFinder.java:76)
at org.geotools.factory.CommonFactoryFinder.lookup(CommonFactoryFinder.java:346)
at org.geotools.factory.CommonFactoryFinder.getFilterFactory(CommonFactoryFinder.java:300)
at org.geotools.factory.CommonFactoryFinder.getFilterFactory2(CommonFactoryFinder.java:390)

0 Kudos
1 Reply
JayantaPoddar
MVP Esteemed Contributor

Are you referring to an ArcGIS tool? If not, maybe you could put the question to a more relevant forum like Geographic Information Systems Stack Exchange.



Think Location
0 Kudos