Hi Percy,

I just tried Sedona 1.4.0 + geotools-wrapper-1.4.0-28.2 on AWS EMR
6.9.0 with ST_Transform from epsg:4326 to epsg:3857 and it works fine.
Can you please let me know what CRS system you are using? So I can
reproduce the problem.

Thanks,
Jia


On Mon, Mar 27, 2023 at 3:07 PM PERSIE WANG <[email protected]> wrote:
>
> To whom it may concern,
>
> I'm following your tutorial to run the spark on EMR notebook, it seems like
> there exists a dependency issue between Sedona and Geotools. See details as
> following,
>
> In order to use ST_transform function, I need both Sedona and
> Geotools-wrapper (for gt-referencing), so I follow the the tutorial as
> following:
> https://sedona.apache.org/latest-snapshot/setup/emr/#add-software-configuration
> to setup cluster. The spark application can be initiated, but when i import
> the following dependencies, it does not work. "*<console>:45: error: object
> sedona is not a member of package org"*
>
> *"*
>
>
>
>
>
>
>
>
>
> *import org.apache.spark.SparkContextimport
> org.apache.spark.sql.SparkSessionimport
> org.apache.spark.serializer.KryoSerializerimport
> org.apache.sedona.core.formatMapper.GeoJsonReaderimport
> org.apache.sedona.sql.utils.{Adapter, SedonaSQLRegistrator}import
> org.apache.sedona.core.serde.SedonaKryoRegistratorimport
> java.net.URLDecoderimport
> org.opengis.referencing.NoSuchAuthorityCodeExceptionimport
> org.locationtech.jts.geomimport org.wololo.geojson.GeoJSON*
> *"*
>
> I also tried use SparkMagic in my cells to use
> https://mvnrepository.com/artifact/org.apache.sedona/sedona-spark-shaded-3.0_2.12/1.4.0
> and
> https://mvnrepository.com/artifact/org.datasyslab/geotools-wrapper/1.4.0-28.2,
> but got the same error. But if i use sedona-shaded only, all imports works
> except *org.opengis.referencing.NoSuchAuthorityCodeException.*
>
>
> Please help take a look, and let me know if there is any tracking issue
> related.
>
> Thanks
> Percy

Reply via email to