6

I use a python module I created that does tests for point in polygon. It uses the python osgei/ogr and osr modules.

Specifically, I use the following elements of these modules:

osr.SpatialReference() (with ImportFromEPSG4326 and InputFromEPSG3857)
osr.CoordinateTransformation()
ogr.Geometry() (with ogr.wkbLinearRing, ogr.wkbPoint and ogr.wkbPolygon)

The software using these osr/ogr capabilities needs to be translated to be a node.js module.

Is anyone aware of an existing node.js osr/ogr 'wrapper' (or for generic javascript)?

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Aug 12, 2014 at 20:52
1
  • 1
    The day you see javascript in the gdal/swig directory is when this is possible. Post your interest on the gdal-dev email list. Commented Aug 13, 2014 at 5:15

1 Answer 1

5

There is a node.js module and not just for ogr and osr but for the whole of gdal. You can find the repository here.

answered Dec 3, 2014 at 7:41
1
  • This is fantastic! Commented Dec 16, 2017 at 13:34

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.