GeoJSON support
See original GitHub issueIt would be very useful if Mapsui had intrinsic support for the GeoJSON format.
To implement this, one could simply set up a GeoJsonProvider (implementing the IProvider) interface, much like the ShapeFile or WmsProvider. This would read & parse a GeoJSON file (could be a local file or remote URL) and spit out the corresponding list of features, which could then be rendered via some layer.
Any comments on this idea or how to implement it? I am slightly surprised that no one has started this kind of thing yet 😄
Issue Analytics
- State:
- Created a year ago
- Comments:9 (7 by maintainers)
Top Results From Across the Web
GeoJSON
GeoJSON supports the following geometry types: Point , LineString , Polygon , MultiPoint , MultiLineString , and MultiPolygon . Geometric objects with ...
Read more >GeoJSON—ArcGIS Online Help | Documentation
GeoJSON is an open standard geospatial data interchange format that represents simple geographic features and their nonspatial attributes.
Read more >GeoJSON - Wikipedia
GeoJSON is an open standard format designed for representing simple geographical features, along with their non-spatial attributes. It is based on the JSON...
Read more >geojson.io | powered by Mapbox
A quick, simple tool for creating, viewing, and sharing spatial data.
Read more >GeoJSON specification
GeoJSON supports the following geometry types: Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon, and GeometryCollection.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

GeoJSON support was added by @inforithmics in Mapsui.Extension. See the online sample by selecting ‘GeoJson’ under ‘Data Formats’.
I’ll note that there seem to be two geojson files in the repository:
… but apparently they’re not being used anywhere.
Fun fact on the side: Opening the first link actually visualizes the city pins on a (mapbox) world map, so apparently GitHub itself has GeoJSON support 😉 With the second link this does not work though, probably because of the differing file extension.