I am trying to get Mapbox or ESRI raster images for a specific location.
But Mapbox gives me black maps and Esri an error.
Need a wee help.
Thank you
BoundaryFromCoordinates_01.gh (25.6 KB)
I am trying to get Mapbox or ESRI raster images for a specific location.
But Mapbox gives me black maps and Esri an error.
Need a wee help.
Thank you
BoundaryFromCoordinates_01.gh (25.6 KB)
Hi @arten ,
What coordinate system is your boundary in? It looks like it’s pretty far from the origin. You will likely need to use CoordinateTransform
to get the boundary points into WGS84 and then use DDtoXY
to get them from WGS84 to Rhino’s XYZ based on the EarthAnchorPoint. Also, note the Mac version of Heron is lagging pretty far behind the Windows version at this point, so the newer SetSRS component is not yet part of the Mac release.
-Brian
Hi Brian,
I am using UTM coordinates provided by survey.
Yep, I know these are far away. I just gave up moving my model. Engineers are using Autocad with UTM coordinates So when I get model from them it always miles away
To be more exact it is UTM zone 40N.
I’m having some trouble reconciling the EAP with the bounding box in UTM Zone 40N. Are you able to provide the CSV file of the boundary points (or better an SHP)?
Yes, here you go. Apologies for late reply
Coordinates_Krookei_Points.csv (524 Bytes)
It might be 40Q it is in Salalah
Cool how you do it? How should I input UTM zone into your component ?
Thank you
Knowing the city helped a lot. It looks like you had the Lat/Lon switched for the inputs to SetEAP
. With the Mac version and with the Mapbox components, you will need to stay in WGS84 and just move geometry to the location. Note, I would change your Mapbox API token as it was included in your first post in this public thread and you don’t want to be sharing that with everyone.
BoundaryFromCoordinates_01-forMac.gh (43.3 KB)
If you can use the latest PC version, you can use the SetSRS
component to stay in UTM Zone 40N (EPSG:32640) coordinates by setting the EAP to the origin of the coordinate system. RESTRaster
works with custom EPSG coordinate systems.
BoundaryFromCoordinates_01-forPC.gh (11.4 KB)
-Brian
Thank you Brian.
It is all clear. Yep, unfortunately do not have access to PC