-
Notifications
You must be signed in to change notification settings - Fork 360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proj4: No support for vertical keywords such as geoidgrids and vunits #2146
Comments
Hi @jfbourgon! A good question! We already had this problem working with pointclouds and in fact we actually don't use vertical units, so you can just omit unsupported parameters.
Let me know if that worked for you! |
I'm actually getting such issue when I try to access the In this context, I don't have much control on the actual value of the proj4 string itself. However, I noticed that I may have some control over it by altering my current GDAL/proj4 configuration files. For instance I got rid of the
|
@jfbourgon very glad to her that you are using pointclouds with geotrellis! You can define pipeline for val pipeline = Read("", "inputCrs") |
Thanks! I was able to properly read extent from header using the suggested workaround. Here are the steps I used: val pipeline = Read("", Option("+proj=utm +zone=18 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs"))
val rdd = HadoopPointCloudRDD("/gpfs/dev/VILLE_MONTREAL/VILLE_MONTREAL/18_E_5_52/POINT_CLOUD/292-5048_2015_2-5-6.las", HadoopPointCloudRDD.Options.DEFAULT.copy(pipeline = pipeline))(sc)
val header = rdd.first._1
header.extent
res0: geotrellis.vector.Extent = Extent(604226.62, 5047340.41, 605244.4, 5048358.67)
header.extent3D
res1: geotrellis.pointcloud.spark.Extent3D = Extent3D(604226.62,5047340.41,10.39565,605244.4,5048358.67,52.11369) However, it would be nice to get complete support for vertical keywords in proj4j some day. |
This issue should be moved to Proj4j once it gets up and running with LocationTech |
It's a proj4 issue now:locationtech/proj4j#20 |
Hi, val las = spark.read.format("geotrellis.pointcloud.spark.datasource").option("path","hdfs:///user/guiet/test_geotrellis/USGS_LPC_LA_Barataria_2013_15RYN6548_LAS_2015.las").load Is there a workaround for my case? |
fun convertLatLonAltToUtm( |
Hey @AnkitDev21, yes, the underlying library does not support it: locationtech/proj4j#20 |
Trying to parse a proj4 string such as the following:
will raise
org.osgeo.proj4j.UnsupportedParameterException
or
Indeed such parameters are not listed in SupportedParameter TreeSet in Proj4Keyword.java
The text was updated successfully, but these errors were encountered: