Hi all,
i need help with the Csv2Shape example. I opend a new netbeans project and
copy and paste the code from the csv2shp example. I added following
references:
gt-main-2.7-M3.jar
gt-shapefile-2.7-M3.jar
gt-referencing-2.7-M3.jar
gt-swing-2.7-M3.jar
geoapi-pending-2.3-M1.jar
geoapi-2.3-M1.jar
jts-1.11.jar
gt-api-2.7-M3.jar
when i run the app, i get following exception:
run:
Exception in thread "main" org.geotools.feature.SchemaException: Error
decoding srs: 4326
at
org.geotools.data.DataUtilities.createAttribute(DataUtilities.java:2175)
at
org.geotools.data.DataUtilities.createType(DataUtilities.java:1752)
at
org.geotools.data.DataUtilities.createType(DataUtilities.java:1702)
at csv2shape.csv2shape.main(csv2shape.java:53)
Caused by: org.opengis.referencing.NoSuchAuthorityCodeException: Authority
"EPSG" is unknown or doesn't match the supplied hints. Maybe it is defined
in an unreachable JAR file?
at
org.geotools.referencing.factory.ManyAuthoritiesFactory.noSuchAuthority(ManyAuthoritiesFactory.java:488)
at
org.geotools.referencing.factory.ManyAuthoritiesFactory.getAuthorityFactory(ManyAuthoritiesFactory.java:466)
at
org.geotools.referencing.factory.ManyAuthoritiesFactory.getCRSAuthorityFactory(ManyAuthoritiesFactory.java:547)
at
org.geotools.referencing.factory.AuthorityFactoryAdapter.createCoordinateReferenceSystem(AuthorityFactoryAdapter.java:798)
at
org.geotools.referencing.factory.ThreadedAuthorityFactory.createCoordinateReferenceSystem(ThreadedAuthorityFactory.java:729)
at
org.geotools.referencing.DefaultAuthorityFactory.createCoordinateReferenceSystem(DefaultAuthorityFactory.java:179)
at org.geotools.referencing.CRS.decode(CRS.java:437)
at org.geotools.referencing.CRS.decode(CRS.java:365)
at
org.geotools.data.DataUtilities.createAttribute(DataUtilities.java:2172)
... 3 more
Java Result: 1
I looked in former postings and found a missing reference. So i added the
gt-epsg-hsql-2.7-M3.jar
But after adding the jar i get another exception:
run:
Exception in thread "main" java.lang.RuntimeException: Uncompilable source
code
at csv2shape.csv2shape.main(csv2shape.java:70)
Java Result: 1
Line 70 is the GeometryFactory:
GeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory(null);
Does anybody have an idea?
By the way - i cannot use maven, unfortunately.
Albrecht
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Csv2Shp-example-doesn-t-work-tp5574443p5574443.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users