Nice, please try out the eclipse QuickStart and let me know how it goes. Since this is the dev email list perhaps we can get a pull request for any fixes :)
On Thu, Apr 4, 2019 at 9:18 AM Zhang, Jack <jack.zh...@mdacorporation.com> wrote: > We use develop on Windows using Eclipse > > > > *From:* Jody Garnett <jody.garn...@gmail.com> > *Sent:* Wednesday, April 03, 2019 10:13 PM > *To:* Zhang, Jack <jack.zh...@mdacorporation.com> > *Cc:* andrea.a...@geo-solutions.it; Mark Prins <mc.pr...@gmail.com>; > Geotools-Devel list <geotools-devel@lists.sourceforge.net> > *Subject:* Re: [Geotools-devel] Coordinate Reference System Error > > > > CAUTION: This email originated from outside of the organization. Do not > click links or open attachments unless you recognize the sender and know > the content is safe. > > ATTENTION: Ce courriel provient de l'extérieur de l'entreprise. Ne cliquez > pas sur les liens ou n'ouvrez pas les pièces jointes à moins que vous ne > reconnaissiez l'expéditeur et que vous sachiez que le contenu est sans > danger. > > > > The tutorials are here: > http://docs.geotools.org/latest/userguide/tutorial/quickstart/index.html > > > > There are instructions for using GeoTools with Eclipse, Netbeans, InteliJ > and command line. Each example uses maven to start out with, and then > offers an approach for using the downloaded jars by hand. As an example > the Eclipse QuickStart offers instructions for using Maven > <http://docs.geotools.org/latest/userguide/tutorial/quickstart/eclipse.html#eclipse>, > and also instructions for downloading and using the jars > <http://docs.geotools.org/latest/userguide/tutorial/quickstart/eclipse.html#download-geotools> > . > > > > What development environment or IDE do you use? > > -- > > Jody Garnett > > > > > > On Wed, 3 Apr 2019 at 16:05, Zhang, Jack <jack.zh...@mdacorporation.com> > wrote: > > I made a little mistake in my listing of jar files, here are the unit > related jars that are there. Even with them, I still get those errors. > > > > Indriya-1.0.jar > > Si-quanitity-0.9.jar > > Si-units-java8-0.9.jar > > Unit-api-1.0.jar > > Uom-lib0common-1.0.2.jar > > Uom-se-1.0.9.jar > > > > I am not using Maven, I just downloaded the repository from geotools and > added them to my class path. Is there a tutorial as to how to use Maven > with geotools? > > > > Thanks, > > > > Jack > > > > *From:* Andrea Aime <andrea.a...@geo-solutions.it> > *Sent:* Tuesday, April 02, 2019 10:28 AM > *To:* Zhang, Jack <jack.zh...@mdacorporation.com>; Jody Garnett < > jody.garn...@gmail.com> > *Cc:* Mark Prins <mc.pr...@gmail.com>; Geotools-Devel list < > geotools-devel@lists.sourceforge.net> > *Subject:* Re: [Geotools-devel] Coordinate Reference System Error > > > > CAUTION: This email originated from outside of the organization. Do not > click links or open attachments unless you recognize the sender and know > the content is safe. > > ATTENTION: Ce courriel provient de l'extérieur de l'entreprise. Ne cliquez > pas sur les liens ou n'ouvrez pas les pièces jointes à moins que vous ne > reconnaissiez l'expéditeur et que vous sachiez que le contenu est sans > danger. > > > > Hi, > > the "ONE" constant missing is tec.uom.se.AbstractUnit.ONE, but I don't see > any unit related jar in your classpath. > > Maven would add it as a transitive dependency, so I'm guessing you're just > working off the release package and throwing jars into the classpath? > > It has been reported that it's indeed missing the unit dependencies here: > https://osgeo-org.atlassian.net/browse/GEOT-6172 > > > > Every GeoTools developer is using Maven, so I'm afraid that ticket is not > getting any traction. > > I'm not sure exactly how the binary release packaging works, but it should > involve this assembly descriptor somehow, along with the jar collector > plugin: > > > https://github.com/geotools/geotools/blob/master/build/maven/assembly/binaryDist.xml > > > Maybe it's simply a matter of changing the dependencies to the units > stuff, I'm not that familiar with it, Jody (cc'ed) should know more. > > > > So, I guess... patches welcomed? > > > > Cheers > > Andrea > > > > On Tue, Apr 2, 2019 at 12:22 PM Zhang, Jack <jack.zh...@mdacorporation.com> > wrote: > > I only have gt-epsg-hsql in my run path. > > > > Below list all the jar files I got from geo-tools on my run-path. > > > > ant-1.8.1.jar > > aws-java-sdk-s3-1.11.36.jar > > batik-transcoder-1.10.jar > > bufr-4.6.6.jar > > cdm-4.6.6.jar > > commons-beanutils-1.9.2-noclassprop.jar > > commons-collections-3.2.2.jar > > commons-dbcp-1.4.jar > > commons-digester-1.7.jar > > commons-httpclient-3.1.jar > > commons-io-2.6.jar > > commons-jxpath-1.3.jar > > commons-lang3-3.7.jar > > commons-logging-1.1.1.jar > > commons-pool-1.5.4.jar > > core.commands-3.6.0.I20100512-1500.jar > > core.runtime-3.6.0.v20100505.jar > > dirlist.txt > > disruptor-1.2.13.jar > > eastwood-1.1.1-20090908.jar > > ehcache-2.10.3.jar > > ejml-ddense-0.34.jar > > equinox.common-3.6.0.v20100503.jar > > geodb-0.9.jar > > GeographicLib-Java-1.49.jar > > grib-4.6.6.jar > > gt-api-20.2.jar > > gt-app-schema-20.2.jar > > gt-app-schema-resolver-20.2.jar > > gt-arcgrid-20.2.jar > > gt-brewer-20.2.jar > > gt-charts-20.2.jar > > gt-complex-20.2.jar > > gt-coverage-20.2.jar > > gt-coverage-api-20.2.jar > > gt-cql-20.2.jar > > gt-css-20.2.jar > > gt-csv-20.2.jar > > gt-data-20.2.jar > > gt-epsg-hsql-20.2.jar > > gt-feature-pregeneralized-20.2.jar > > gt-geobuf-20.2.jar > > gt-geojson-20.2.jar > > gt-geojsondatastore-20.2.jar > > gt-geometry-20.2.jar > > gt-geopkg-20.2.jar > > gt-geotiff-20.2.jar > > gt-graph-20.2.jar > > gt-grassraster-20.2.jar > > gt-grib-20.2.jar > > gt-grid-20.2.jar > > gt-gtopo30-20.2.jar > > gt-image-20.2.jar > > gt-imageio-ext-gdal-20.2.jar > > gt-imagemosaic-20.2.jar > > gt-imagemosaic-jdbc-20.2.jar > > gt-imagepyramid-20.2.jar > > gt-jdbc-20.2.jar > > gt-jdbc-h2-20.2.jar > > gt-jdbc-mysql-20.2.jar > > gt-jdbc-postgis-20.2.jar > > gt-jdbc-spatialite-20.2.jar > > gt-jdbc-sqlserver-20.2.jar > > gt-jdbc-teradata-20.2.jar > > gt-jp2k-20.2.jar > > gt-jts-wrapper-20.2.jar > > gt-main-20.2.jar > > gt-mbstyle-20.2.jar > > gt-mbtiles-20.2.jar > > gt-metadata-20.2.jar > > gt-mongodb-20.2.jar > > gt-netcdf-20.2.jar > > gt-opengis-20.2.jar > > gt-process-20.2.jar > > gt-process-feature-20.2.jar > > gt-process-geometry-20.2.jar > > gt-process-raster-20.2.jar > > gt-property-20.2.jar > > gt-referencing-20.2.jar > > gt-referencing3D-20.2.jar > > gt-render-20.2.jar > > gt-s3-geotiff-20.2.jar > > gt-sample-data-20.2.jar > > gt-sample-data-access-20.2.jar > > gt-shapefile-20.2.jar > > gt-solr-20.2.jar > > gt-svg-20.2.jar > > gt-swing-20.2.jar > > gt-swt-20.2.jar > > gt-tile-client-20.2.jar > > gt-transform-20.2.jar > > gt-validation-20.2.jar > > gt-wfs-ng-20.2.jar > > gt-wms-20.2.jar > > gt-wmts-20.2.jar > > gt-wps-20.2.jar > > gt-xml-20.2.jar > > gt-xsd-core-20.2.jar > > gt-xsd-csw-20.2.jar > > gt-xsd-fes-20.2.jar > > gt-xsd-filter-20.2.jar > > gt-xsd-gml2-20.2.jar > > gt-xsd-gml3-20.2.jar > > gt-xsd-kml-20.2.jar > > gt-xsd-ows-20.2.jar > > gt-xsd-sld-20.2.jar > > gt-xsd-wcs-20.2.jar > > gt-xsd-wfs-20.2.jar > > gt-xsd-wms-20.2.jar > > gt-xsd-wmts-20.2.jar > > gt-xsd-wps-20.2.jar > > gt-ysld-20.2.jar > > h2-1.1.119.jar > > hsqldb-2.4.1.jar > > icu4j-3.4.4.jar > > imageio-ext-arcgrid-1.1.28.jar > > imageio-ext-gdalarcbinarygrid-1.1.28.jar > > imageio-ext-gdaldted-1.1.28.jar > > imageio-ext-gdalecw-1.1.28.jar > > imageio-ext-gdalecwjp2-1.1.28.jar > > imageio-ext-gdalehdr-1.1.28.jar > > imageio-ext-gdalenvihdr-1.1.28.jar > > imageio-ext-gdalerdasimg-1.1.28.jar > > imageio-ext-gdalidrisi-1.1.28.jar > > imageio-ext-gdalkakadujp2-1.1.28.jar > > imageio-ext-gdalmrsid-1.1.28.jar > > imageio-ext-gdalmrsidjp2-1.1.28.jar > > imageio-ext-gdalnitf-1.1.28.jar > > imageio-ext-gdalrpftoc-1.1.28.jar > > imageio-ext-gdalsrp-1.1.28.jar > > imageio-ext-gdalvrt-1.1.28.jar > > imageio-ext-geocore-1.1.28.jar > > imageio-ext-imagereadmt-1.1.28.jar > > imageio-ext-kakadu-1.1.28.jar > > imageio-ext-streams-1.1.28.jar > > imageio-ext-tiff-1.1.28.jar > > imageio-ext-utilities-1.1.28.jar > > jai_codec-1.1.3.jar > > jai_core-1.1.3.jar > > jai_imageio-1.1.jar > > javacsv-2.0.jar > > jdom2-2.0.6.jar > > jface-3.6.1.M20100825-0800.jar > > jgridshift-1.0.jar > > json-simple-1.1.jar > > jsqlparser-0.3.14.jar > > jsr305-3.0.0.jar > > jt-affine-1.1.6.jar > > jt-algebra-1.1.6.jar > > jt-bandcombine-1.1.6.jar > > jt-bandmerge-1.1.6.jar > > jt-bandselect-1.1.6.jar > > jt-binarize-1.1.6.jar > > jt-border-1.1.6.jar > > jt-buffer-1.1.6.jar > > jt-classifier-1.1.6.jar > > jt-colorconvert-1.1.6.jar > > jt-colorindexer-1.1.6.jar > > jt-contour-1.5.0.jar > > jt-crop-1.1.6.jar > > jt-errordiffusion-1.1.6.jar > > jt-format-1.1.6.jar > > jt-imagefunction-1.1.6.jar > > jt-iterators-1.1.6.jar > > jt-jiffle-op-1.1.6.jar > > jt-lookup-1.1.6.jar > > jt-mosaic-1.1.6.jar > > jt-nullop-1.1.6.jar > > jt-orderdither-1.1.6.jar > > jt-piecewise-1.1.6.jar > > jt-rangelookup-1.5.0.jar > > jt-rescale-1.1.6.jar > > jt-rlookup-1.1.6.jar > > jt-scale-1.1.6.jar > > jt-scale2-1.1.6.jar > > jt-shadedrelief-1.1.6.jar > > jt-stats-1.1.6.jar > > jt-translate-1.1.6.jar > > jt-utilities-1.1.6.jar > > jt-utils-1.5.0.jar > > jt-vectorbin-1.1.6.jar > > jt-vectorbinarize-1.5.0.jar > > jt-vectorize-1.5.0.jar > > jt-warp-1.1.6.jar > > jt-zonal-1.1.6.jar > > jt-zonalstats-1.5.0.jar > > jtds-1.3.1.jar > > jts-core-1.16.0.jar > > log4j-over-slf4j-1.6.4.jar > > miglayout-3.7-swing.jar > > mongo-java-driver-3.3.0.jar > > mysql-connector-java-5.1.46.jar > > net.opengis.csw-20.2.jar > > net.opengis.fes-20.2.jar > > net.opengis.ows-20.2.jar > > net.opengis.wcs-20.2.jar > > net.opengis.wfs-20.2.jar > > net.opengis.wmts-20.2.jar > > net.opengis.wps-20.2.jar > > netcdf4-4.6.6.jar > > opendap-2.1.jar > > org.eclipse.emf.common-2.12.0.jar > > org.eclipse.emf.ecore-2.12.0.jar > > org.eclipse.emf.ecore.xmi-2.12.0.jar > > org.eclipse.xsd-2.12.0.jar > > org.w3.xlink-20.2.jar > > parboiled-java-1.1.7.jar > > picocontainer-1.2.jar > > postgresql-42.1.1.jar > > protobuf-java-3.4.0.jar > > slf4j-log4j12-1.6.4.jar > > snakeyaml-1.13.jar > > solr-solrj-7.2.1.jar > > spatialite-jdbc-3.7.2-2.4.jar > > sqlite-jdbc-3.23.1.jar > > swt.gtk.linux.x86-3.6.1.v3655c.jar > > swt.win32.win32.x86_64-3.6.1.v3655c.jar > > systems-common-java8-0.7.2.jar > > target > > ui.workbench-3.6.1.M20100826-1330.jar > > xml-commons-resolver-1.2.jar > > xpp3_min-1.1.4c.jar > > > > *From:* Mark Prins <mc.pr...@gmail.com> > *Sent:* Saturday, March 30, 2019 3:42 AM > *To:* Geotools-Devel list <geotools-devel@lists.sourceforge.net> > *Subject:* Re: [Geotools-devel] Coordinate Reference System Error > > > > CAUTION: This email originated from outside of the organization. Do not > click links or open attachments unless you recognize the sender and know > the content is safe. > > ATTENTION: Ce courriel provient de l'extérieur de l'entreprise. Ne cliquez > pas sur les liens ou n'ouvrez pas les pièces jointes à moins que vous ne > reconnaissiez l'expéditeur et que vous sachiez que le contenu est sans > danger. > > > > > > Op vr 29 mrt. 2019 17:53 schreef Zhang, Jack < > jack.zh...@mdacorporation.com>: > > Hi, > > > > I’m facing an error where I’m trying to create the EPSG:4326 coordinate. > > > > I’m using the GeoTools 20.3, added all those jar libraries to my build > path. > > > > I run the following program and got errors (see below). I suspect > something about my environment is not set up correctly, any thoughts? > > > > You are probably either missing an implementation of the crs/referencing > store or have more than one in your runtime classpath. Adding all the jar > files is not the way to go. > > See: > > Referencing FAQ > > http://docs.geotools.org/latest/userguide/faq.html#referencing-faq > > > > Thanks, > > > > *import* org.geotools.referencing.CRS; > > *import* org.opengis.referencing.FactoryException; > > *import* org.opengis.referencing.crs.CoordinateReferenceSystem; > > > > *public* *class* Testing > > { > > > > *public* *static* *void* main(String[] args) > > { > > *try* > > { > > CoordinateReferenceSystem *crs* = CRS.*decode*("EPSG:4326"); > > } > > *catch* (FactoryException e) > > { > > // *TODO* Auto-generated catch block > > e.printStackTrace(); > > } > > } > > > > } > > > > Mar 29, 2019 9:38:12 AM org.geotools.factory.FactoryRegistry scanForPlugins > > WARNING: Can't load a service for category "CRSAuthorityFactory". Cause is > "ServiceConfigurationError: > org.opengis.referencing.crs.CRSAuthorityFactory: Provider > org.geotools.referencing.factory.epsg.CartesianAuthorityFactory could not > be instantiated". > > java.util.ServiceConfigurationError: > org.opengis.referencing.crs.CRSAuthorityFactory: Provider > org.geotools.referencing.factory.epsg.CartesianAuthorityFactory could not > be instantiated > > at java.util.ServiceLoader.fail(Unknown Source) > > at java.util.ServiceLoader.access$100(Unknown Source) > > at java.util.ServiceLoader$LazyIterator.nextService(Unknown Source) > > at java.util.ServiceLoader$LazyIterator.next(Unknown Source) > > at java.util.ServiceLoader$1.next(Unknown Source) > > at org.geotools.factory.FactoryRegistry.register( > *FactoryRegistry.java:1042*) > > at org.geotools.factory.FactoryRegistry.scanForPlugins( > *FactoryRegistry.java:921*) > > at org.geotools.factory.FactoryRegistry.scanForPluginsIfNeeded( > *FactoryRegistry.java:951*) > > at org.geotools.factory.FactoryRegistry.getFactories( > *FactoryRegistry.java:299*) > > at org.geotools.referencing.ReferencingFactoryFinder.getFactories( > *ReferencingFactoryFinder.java:184*) > > at > org.geotools.referencing.ReferencingFactoryFinder.getCRSAuthorityFactories( > *ReferencingFactoryFinder.java:454*) > > at > org.geotools.referencing.DefaultAuthorityFactory.getBackingFactory( > *DefaultAuthorityFactory.java:88*) > > at org.geotools.referencing.DefaultAuthorityFactory.<init>( > *DefaultAuthorityFactory.java:68*) > > at org.geotools.referencing.CRS.getAuthorityFactory(*CRS.java:246*) > > at org.geotools.referencing.CRS.decode(*CRS.java:517*) > > at org.geotools.referencing.CRS.decode(*CRS.java:440*) > > at ca.airradar.common.formats.rpf.Testing.main(*Testing.java:14*) > > Caused by: java.lang.NoSuchFieldError: ONE > > at org.geotools.referencing.cs.DefaultCoordinateSystemAxis.<clinit>( > *DefaultCoordinateSystemAxis.java:541*) > > at org.geotools.referencing.cs.AbstractCS.<clinit>( > *AbstractCS.java:80*) > > at org.geotools.referencing.crs.DefaultEngineeringCRS.<clinit>( > *DefaultEngineeringCRS.java:79*) > > at > org.geotools.referencing.factory.epsg.CartesianAuthorityFactory.<clinit>( > *CartesianAuthorityFactory.java:55*) > > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(*Native > Method*) > > at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown > Source) > > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) > > at java.lang.reflect.Constructor.newInstance(Unknown Source) > > at java.lang.Class.newInstance(Unknown Source) > > ... 15 more > > > > Exception in thread "main" java.lang.NoClassDefFoundError: Could not > initialize class org.geotools.referencing.cs.DefaultCoordinateSystemAxis > > at > org.geotools.referencing.factory.TransformedAuthorityFactory.<clinit>( > *TransformedAuthorityFactory.java:70*) > > at org.geotools.referencing.factory.epsg.DirectEpsgFactory.<init>( > *DirectEpsgFactory.java:533*) > > at org.geotools.referencing.factory.epsg.FactoryUsingSQL.<init>( > *FactoryUsingSQL.java:53*) > > at org.geotools.referencing.factory.epsg.FactoryUsingAnsiSQL.<init>( > *FactoryUsingAnsiSQL.java:122*) > > at org.geotools.referencing.factory.epsg.FactoryUsingHSQL.<init>( > *FactoryUsingHSQL.java:51*) > > at > org.geotools.referencing.factory.epsg.ThreadedHsqlEpsgFactory$1.<init>( > *ThreadedHsqlEpsgFactory.java:312*) > > at > org.geotools.referencing.factory.epsg.ThreadedHsqlEpsgFactory.createBackingStore( > *ThreadedHsqlEpsgFactory.java:312*) > > at > org.geotools.referencing.factory.epsg.ThreadedEpsgFactory.createBackingStore0( > *ThreadedEpsgFactory.java:394*) > > at > org.geotools.referencing.factory.epsg.ThreadedEpsgFactory.createBackingStore( > *ThreadedEpsgFactory.java:435*) > > at > org.geotools.referencing.factory.DeferredAuthorityFactory.getBackingStore( > *DeferredAuthorityFactory.java:115*) > > at > org.geotools.referencing.factory.BufferedAuthorityFactory.isAvailable( > *BufferedAuthorityFactory.java:219*) > > at > org.geotools.referencing.factory.DeferredAuthorityFactory.isAvailable( > *DeferredAuthorityFactory.java:101*) > > at org.geotools.factory.FactoryRegistry.isAvailable( > *FactoryRegistry.java:809*) > > at org.geotools.factory.FactoryRegistry.isAcceptable( > *FactoryRegistry.java:632*) > > at org.geotools.factory.FactoryRegistry.lambda$getFactories$0( > *FactoryRegistry.java:301*) > > at java.util.stream.ReferencePipeline$2$1.accept(Unknown Source) > > at java.util.Spliterators$IteratorSpliterator.tryAdvance(Unknown > Source) > > at > java.util.stream.StreamSpliterators$WrappingSpliterator.lambda$initPartialTraversalState$0(Unknown > Source) > > at > java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.fillBuffer(Unknown > Source) > > at > java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.doAdvance(Unknown > Source) > > at > java.util.stream.StreamSpliterators$WrappingSpliterator.tryAdvance(Unknown > Source) > > at java.util.Spliterators$1Adapter.hasNext(Unknown Source) > > at org.geotools.resources.LazySet.isEmpty(*LazySet.java:99*) > > at org.geotools.referencing.factory.ManyAuthoritiesFactory.<init>( > *ManyAuthoritiesFactory.java:116*) > > at > org.geotools.referencing.DefaultAuthorityFactory.getBackingFactory( > *DefaultAuthorityFactory.java:115*) > > at org.geotools.referencing.DefaultAuthorityFactory.<init>( > *DefaultAuthorityFactory.java:68*) > > at org.geotools.referencing.CRS.getAuthorityFactory(*CRS.java:246*) > > at org.geotools.referencing.CRS.decode(*CRS.java:517*) > > at org.geotools.referencing.CRS.decode(*CRS.java:440*) > > at ca.airradar.common.formats.rpf.Testing.main(*Testing.java:14*) > > > > _______________________________________________ > GeoTools-Devel mailing list > GeoTools-Devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geotools-devel > > _______________________________________________ > GeoTools-Devel mailing list > GeoTools-Devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geotools-devel > > > > > -- > > Regards, Andrea Aime == GeoServer Professional Services from the experts! > Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime > @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 > Massarosa > <https://maps.google.com/?q=Via+di+Montramito+3/A+55054+Massarosa&entry=gmail&source=g> > (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 > http://www.geo-solutions.it http://twitter.com/geosolutions_it > ------------------------------------------------------- *Con riferimento > alla normativa sul trattamento dei dati personali (Reg. UE 2016/67* > > -- -- Jody Garnett
_______________________________________________ GeoTools-Devel mailing list GeoTools-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel