Hi Diethard, all,
The error is due to the lack of a GeoTools EPSG factory being
available on the classpath at runtime (1). Generally, it seems that
SBT has two issues to address: first, it doesn't necessarily pull
in all the transitive dependencies list POMs and second, code loaded
via SPI needs some handling to preserve entries in
META-INF/services.
The SO question (2) address the latter concern. For the former, it
may suffice to add a dependency on gt-epsg-hsql or gt-epsg-wkt. The
HSQL version of the library is preferable since it has a few more
codes.
That said, there are some caveats. I have seen mismatches between
the version of HSQL that GeoTools uses and versions available in
Hadoop. Also, HSQL sets up a temp directory in a common (yet
configurable!) location. For a system where multiple users are
going to use the GeoMesa tools, some care may be required. If those
problems prove too much, one can try out the gt-epsg-wkt option
instead.
Cheers,
Jim
1. More info about the EPSG options in GeoTools.
http://docs.geotools.org/stable/userguide/library/referencing/index.html
2.
https://stackoverflow.com/questions/27429097/geotools-cannot-find-hsql-epsg-db-throws-error-nosuchauthoritycodeexception
On 06/25/2017 06:24 PM, Andrew Morgan
wrote:
Hi Diethart,
Matt had a look - and responded with the notes
below:
Hope that helps.
Andrew
Begin forwarded message:
Subject: Re:
[geomesa-users] NoSuchAuthorityCodeException: No code
"EPSG:4326" from authority "EPSG" found for object of
type "EngineeringCRS"
Date: 25 June 2017 23:18:23
BST
We don't use SBT, the example uses
Maven - so that suggests a possible build problem right
away as there has been some translation.
My code doesn't go anywhere near
EPSG:4326, its part of the Geomesa code used to create
and write to a Datastore.
So it must be the way the dependencies are
done, although I dont know how to fix the SBT example
given unfortunately.
Matt
_______________________________________________
geomesa-users mailing list
geomesa-users@xxxxxxxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.locationtech.org/mailman/listinfo/geomesa-users
|