Top
Best
New

Posted by tosh 1 day ago

GeoJSON(geojson.org)
159 points | 74 commentspage 2
phillc73 1 day ago|
GeoJSON is not just for geographical features! Shapes of any kind work just as well.

QuPath[1], a tool for digital pathology whole slide image analysis, can export annotations in GeoJSON format (and import too I suppose).[2] This makes it really very easy to make annotations transportable between tooling.

[1] https://qupath.github.io/

[2] https://github.com/qupath/qupath-docs/blob/main/docs/advance...

tomtomtom777 21 hours ago|
The spec states:

> The coordinate reference system for all GeoJSON coordinates is a geographic coordinate reference system, using the World Geodetic System 1984 (WGS 84) [WGS84] datum, with longitude and latitude units of decimal degrees.

So that seems to be a misuse of the format. Using a geojson library for this may get you into trouble with ranges or antimeridian cutting.

sam_lowry_ 1 day ago||
Dunno whose website this is, but the format itself is great, and it allows for a relatively compact and relatively human-readable presentation.

A few weeks ago I (vibe)coded mxmap.be and if not for the ubiquity of geojson, it would have taken me significantly more effort.

rippeltippel 1 day ago||
Nice work with mxmap. It's a very good way to appreciate to what extent EU depends on US - email providers being just one of several dimensions.
flir 1 day ago||
What a great project.

I vibe coded something similar (different data source) with codex that went something like SQLite->GeoJSON->Leaflet and it was a dream - almost no corrections necessary. It even went off and found a really nice colour scheme for me.

biosboiii 1 day ago||
I love GeoJSON :) You can bring any Geo/GIS from 0 to visualization by just parsing it into GeoJSON.

geojson.io is a great editor/viewer by Mapbox. Also https://kepler.gl/demo is great for additional filtering, visualizations like heatmaps, arcs etc.

A extension to GeoJSON that works with JSONL-like semantics would be great for huge files, but this could also be solved by tiling.

CamouflagedKiwi 1 day ago||
This is nice. I haven't worked with GIS data for ages but I really like the idea of a well-understood plain text container for it. Much nicer than wrangling with binary formats like shapefiles, especially when something goes wrong and you're not sure if it's your code (well more precisely your usage of whatever library you've got for it) or the data.
kitd 21 hours ago||
There's a map facility not linked here that allows you to build GeoJSON graphically:

https://geojson.io/#map=12.42/51.50593/-0.13003

jasoncartwright 21 hours ago||
Have been using geojson for a while and was frustrated at lack of simple web tools play with it in browser. So I built https://geojson.page
tosh 1 day ago||
vega-lite supports rendering of GeoJSON via 'geoshape'

https://vega.github.io/vega-lite/docs/geoshape.html

larodi 21 hours ago||
One should be aware that Google, even though JSON is JSON, would sometimes use its own binary encoding for the content of polylines and generally large sets.
dnnddidiej 1 day ago||
Looks like what any sensible dev would come up with if asked to "return this geo data as json". I like simple!
mtucker502 1 day ago|
The properties key is plural but contains a dictionary. Does the schema allow for this to be a list?
kijin 1 day ago|
Nope, properties must be an object (dictionary or null). Which means each property can only appear once.

The spec doesn't say what type the value of a property can be, though. Examples in the RFC show strings, floats, and a nested object. So you could probably put a list in there as well if you want to store multiple values under the same key, provided that your decoder knows what to do with such values. (GeoJSON is often converted to and from WKB/WKT, and unorthodox values may be lost in the conversion.)

More comments...