question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

It 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:closed
  • Created a year ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
pauldendulkcommented, Jun 10, 2023

GeoJSON support was added by @inforithmics in Mapsui.Extension. See the online sample by selecting ‘GeoJson’ under ‘Data Formats’.

1reaction
januswcommented, Jun 10, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found