Python Forum
[geoJSON] View + work with? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: [geoJSON] View + work with? (/thread-12442.html)



[geoJSON] View + work with? - Winfried - Aug-24-2018

Hello,

Turns out I now should work with a geoJSON file instead of GPX since the site I'm working with ignores colors set in GPX items through the "extension" feature.

I have a couple of needs:

1. How to view a big geoJSON on Windows, so that I can easily fold/unfold parts à la XML Explorer?

2. Googling for "python geojson" returns several packages that support working with geoJSON files. I need to read the file, and extract each track into its own geoJSON file. Is there a package you would recommend for this?

Thank you.

--
Edit: For instance

c:\>pip search geojson

geojson (2.4.0) - Python bindings and utilities for GeoJSON
geojsontools (0.0.3) - Functions for manipulating geojsons
geojson_elevation (0.1) - GeoJSON compatible elevation proxy
geojson_utils (0.0.2) - Python helper functions for manipulating GeoJSON
PyGeoj (0.22) - A simple Python GeoJSON file reader and writer.


RE: [geoJSON] View + work with? - Larz60+ - Aug-25-2018

a better place to look for python packages is PyPi: https://pypi.org/search/?q=geojson
this will get you quite a selection of packages, and you can look at each to see if they meet your needs.
Note that you can search by relevance or last date updated.
If a package has been around for a few years, then last date updated may show continued development, but if a package has only been around for a week, it can show higher than it should.

If you like a package, search the forum to get a feel for how it's used, and by how many people, also get a feel for ease of use, and sticky issues.


RE: [geoJSON] View + work with? - Winfried - Aug-25-2018

(Aug-25-2018, 01:18 AM)Larz60+ Wrote: If a package has been around for a few years, then last date updated may show continued development, but if a package has only been around for a week, it can show higher than it should.

Good tip. Thank you.