P
P
Pavel Rachev2015-04-22 18:28:23
Python
Pavel Rachev, 2015-04-22 18:28:23

How to parse a json file in txt format in python and then output the result to a gis package (ArcGis)?

Hello! The essence of the question is as follows: there is a huge txt file, it contains json spatial data. How to parse this in python, and then display the resulting result in ArcGis for display on the map? Thanks a lot.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vladimir Abramov, 2015-04-22
@kivsiak

As I understand from the comments, you are having a problem exporting data to a format compatible with ArcGis
Apparently, arcgis can eat ERSI Shapefile. With this, the python is doing very well. Look here in the direction
of toblerity.org/fiona/manual.html
Perhaps it will be useful toblerity.org/shapely/manual.html for intermediate transformations.
PS gis.stackexchange.com/questions/68175/geojson-to-e... , toblerity.org/fiona/manual.html#dumpgj can do without coding at all.

M
Max, 2015-04-22
@AloneCoder

https://github.com/kashifrazzaqui/json-streamer
https://pypi.python.org/pypi/ijson/

L
lPolar, 2015-04-22
@lPolar

You can read json at once like this, without converting text->json.
Use Pandas - pandas.read_json.
As for importing into ArcGis, I don’t know, but I think that there are possible options.
pandas.pydata.org

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question