Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[geomesa-users] Fwd: NoSuchAuthorityCodeException: No code "EPSG:4326" from authority "EPSG" found for object of type "EngineeringCRS"

Hi Diethart,

Matt had a look - and responded with the notes below:
Hope that helps.

Andrew


Begin forwarded message:

From: Matthew Hallett <matts.mail.2008@xxxxxxxxx>
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
To: Andrew Morgan <andrew@xxxxxxxxxxxx>

We don't use SBT, the example uses Maven - so that suggests a possible build problem right away as there has been some translation.

looking here: http://osgeo-org.1560.x6.nabble.com/Facing-NoSuchAuthorityCodeException-problem-when-deployed-GeoTools-on-server-td4885362.html - The error appears to be related to a missing dependency, at least in that case .

https://dev.locationtech.org/mhonarc/lists/geomesa-users/msg00058.html outlines the exact issue and solution also (missing dependency)

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





On 25 June 2017 at 13:36, Andrew Morgan <andrew@xxxxxxxxxxxx> wrote:
Matt,

A question came up from a reader about the geomesa writer to spark.
Andrew

Sent from my iPhone

Begin forwarded message:

From: Diethard Steiner <diethard.steiner@xxxxxxxxx>
Date: 25 June 2017 at 11:43:36 BST
To: Geomesa User discussions <geomesa-users@locationtech.org>
Subject: [geomesa-users] NoSuchAuthorityCodeException: No code "EPSG:4326" from authority "EPSG" found for object of type "EngineeringCRS"
Reply-To: Geomesa User discussions <geomesa-users@locationtech.org>

Hi,

I am trying to get an Spark Ingestion Example going, which is based on your original MapReduce example as well as some code from the "Mastering Spark for Data Science".
I am using sbt. The `build.sbt` file has a simple `first` merge strategy defined (code available here). The scala code is available here.

I build the fat jar and then run it on Spark like so:

```bash
sbt clean assembly
# submit job
spark-submit --master local[4] \
  --class examples.IngestDataWithSpark \
  target/scala-2.11/GeoMesaSparkExample-assembly-0.1.jar
```

Then I get an error returned:

```
NoSuchAuthorityCodeException: No code "EPSG:4326" from authority "EPSG" found for object of type "EngineeringCRS"
```

This Stackoverflow thread indicates that the merge strategy might not be correct, but I couldn't resolve the issue. I'd appreciate if you could point out the solution.

Best regards,
Diethard
_______________________________________________
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



Back to the top