How to use the arcgis2geojson.main function in arcgis2geojson

To help you get started, we’ve selected a few arcgis2geojson examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github chris48s / arcgis2geojson / run_tests.py View on Github external
def test_cli(self):
        stdout = sys.stdout
        sys.stdout = io.StringIO()

        input = u'{ "x": -66.796875, "y": 20.0390625, "spatialReference": { "wkid": 4326 } }'
        stdin = sys.stdin
        sys.stdin = io.StringIO(input)

        main()
        output = sys.stdout.getvalue().strip()
        self.assertEqual(output, arcgis2geojson(input))

        sys.stdout = stdout
        sys.stdin = stdin

arcgis2geojson

A Python library for converting ArcGIS JSON to GeoJSON

MIT
Latest version published 5 months ago

Package Health Score

65 / 100
Full package analysis

Popular arcgis2geojson functions

Similar packages