MercatorCoordsArray Op

MercatorCoordsArray

Mercator map and center an array of latitudes and longitudes to a local coordinate system


The globe is unrolled into a flat plane.
If you would be looking at country like Germany then a map width of 100 would suffice due to the large size.
Looking at a city like Berlin which is much smaller would require a map width of 1800 to make it visible on the screen.


Full Name
  • Ops.Math.MercatorCoordsArray
Visibility
  • Core Op - Official cables op
License
  • MIT
Authorgithub


INPUT PORTS


LatLon Array (Array)

An array of latitude and longitude points

MapWidth (Number)

width of the map

Center Lat (Number)

Center latitude, use infoArray2 to get this information. Check example file

Center Lon (Number)

Center longitude, use infoArray2 to get this information. Check example file

OUTPUT PORTS


Result (Array)

Array2 out. Use Array2to3 to add zeroes on the z component. See example file


Patches using MercatorCoordsArray

  • Examples
  • Public
  • My Patches

Changelog


created opuser avatarpandur - 2019-10-14 15:26