Questions tagged [geojson]

GeoJSON is an open format, based on JSON, for encoding geographic data.

GeoJSON is a geospatial data interchange format based on JSON. It defines the following geometries:

  • Position
  • Point
  • MultiPoint
  • LineString
  • MultiLineString
  • Polygon
  • MultiPolygon
  • GeometryCollection.

Example of a GeoJSON Point:

{ 
    "type": "Point",
    "coordinates": [0.0, 0.0]
}

Resources :

4307 questions
1
vote
0 answers

How to load geojson data from html file input?

I want to build the system that allows the client to upload the geojson files from html form and this data will show on the leaflet map. While I try to do so, It shows the error code 405. I want to submit the form containing geojson file and load…
dhiraj
  • 426
  • 1
  • 6
  • 14
1
vote
2 answers

How to compute a GeoJson geometry area in dart / flutter

I'm building a flutter mobile app and I need to compute an area of some GeoJson geometries. Say we have a GeoJson-like object: final geo = { "type": "Polygon", "coordinates": [[ [-122.085, 37.423], [-122.083, 37.423], …
Ikar Pohorský
  • 4,617
  • 6
  • 39
  • 56
1
vote
1 answer

What is wrong with my Mapbox expression with "all" operator?

I have a geojson with several polygons. Each polygon has a name. I want to display all polygons except for the "boundingBox". I use the filter in addLayer(): "filter": ["all",["==", "$type", "Polygon"],["!=",["string", ['get', 'name'],""],…
j3App
  • 1,510
  • 1
  • 17
  • 26
1
vote
0 answers

Unable to increase map(plot) size using d3.js

I am trying to display Pakistan map using d3js and topojson, but the size of map is very small and I am unable to increase its size. URL of topojson:…
1
vote
0 answers

geo within queryfor multipolygon and limit the result for each polygon

I want to get one document for each polygon when Geple polygons as an array: tempArray.push([ [ [long1, lat1], [long2, lat1], [long2, lat2], [long1, lat2], [long1,…
1
vote
1 answer

d3.js not rendering geojson data correctly

I have been struggling trying to get d3.js to render geoJSON data correctly into an SVG. The following JSFiddle shows the problem http://jsfiddle.net/8zjb3yrq/ You will notice that the result of fiddle produces a white object on a gray background,…
Rono
  • 3,171
  • 2
  • 33
  • 58
1
vote
0 answers

Adding a geojsonlayer for react

I have some geojson data that I have created from a gtfs realtime feed, I am trying to add it to a mapbox map. My Map currently displays fine and I can get it to render markers, however I am having issues with rendering geojson data.
1
vote
1 answer

Make a choropleth from a non-highmap-collection map

I've been trying to make a choropleth map with hcmap from highcharter package; I obtained the polygons from my own shapefile because it's a map that is not on the list of highmap's collection. To do so, first I managed to transform my shapefile to…
David Jorquera
  • 2,046
  • 12
  • 35
1
vote
1 answer

The geojson point data markers are not clustering in leaflet map

I am using leaflet-markercluster plugin for cluster my point data. I already loaded my geojson data named as 'street' into map. this data having around 40 points with their respective attributes. I want to cluster these points in leaflet map. But…
Tek Kshetri
  • 2,129
  • 1
  • 17
  • 41
1
vote
2 answers

How to combine key values from a json file to a geojson map file?

I'm trying to combine a GeoJSON map file with key values from a JSON file to use for a choropleth map. Here is what the files look like: data1.json { "type": "FeatureCollection", "features": [ { "type": "Feature", …
1
vote
1 answer

Javascript - Filter geojson based on other json's values

I am struggling with filtering a geojson based on the values of another JSON. Specifically, Iam trying to filter the geojson based on the id's in the other json. Every time, my filtered geojson returns null. I have created a JSfiddle here showing…
lios
  • 218
  • 5
  • 26
1
vote
1 answer

How to query a geojson point with GraphQl?

I'm working with nodejs, mongoose and graphql and I have geojson 2D coordinates in my db but I'm unable to query them throught graphql it always returns null I've tried with the PointObject schema from https://github.com/ghengeveld/graphql-geojson…
YadPe
  • 88
  • 1
  • 6
1
vote
0 answers

Folium Choropleth + GeoJSON raises AttributeError: 'NoneType' object has no attribute 'get'

Found someone met same problem in another post (Folium Choropleth + GeoJSON raises AttributeError: 'NoneType'). Followed the suggestions there but my problem still exists. I have double checked that: a) access to parameters is correct b) all the…
1
vote
1 answer

Using BigQuery to visualize high volume of points

At a certain scale of geographic data, it is useful to export the dataset to a png file in order to lay it on top of a map if there are lots of points. For example, if there are 50M points, if we are just interested in visualizing that data (without…
David542
  • 104,438
  • 178
  • 489
  • 842
1
vote
1 answer

Polygon rendering with pixijs

I'm trying to display more than 6000 Polygons on a mobile device. Currently, I'm doing this with SVG paths in Android WebView using the d3.js library. It works but I have to deal with performance issues, my map becomes very laggy when I drag my map…
BR75
  • 633
  • 7
  • 25