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
1 answer

Is there a way to add a set of 2D polygon features from GeoJSON into a 3D layer in a SceneView in ArcGIS JS API 4.11?

I need to load a set of 2D polygon features into a SceneView in ArgGIS JS API 4.11 from one of the following file types: GeoJSON, KML, or ShapeFile. I currently can get the data as either geojson, KML, or ShapeFile. I was able to use a GeoJSONLayer…
oaky_afterbirth
  • 125
  • 3
  • 15
1
vote
1 answer

How to plot roads on maps between two points based on GeoJSON file?

I want to visualize possible roads between two points, something like google map, I have a GeoJSON file that contains the roads network, is it possible or is there any algorithm to plot only roads between two points? -This is what I have done, and I…
1
vote
0 answers

How can i draw geojson maps on gridlayer use canvas?

I have already know how to draw map on leaflet tilelayer, but I'm trying to have a better efficiency, so now I practicing canvas with leaflet gridlayer,but the outcome wasn't I expected.I have no idea how to do it, hope someone can help me! Thanks!…
Alice Hung
  • 11
  • 1
1
vote
0 answers

Drawing polygons on svg map from .json file

I would like to draw some polygons on top of my .svg map realized with the program below. The polygons are specified in a separate .json file (see example). Would it be possible to do it using a "draw" function as for the map? Are there better ways?…
Fede
  • 91
  • 6
1
vote
1 answer

How can a click event work within a leaflet bindpopup?

I want to create a button within the leaflet popup, which when clicked it will zoom in to the point's location. I have defined the button and its event within the pointToLayer() function. When clicked the button does not respond, and no error is…
KalEmm
  • 97
  • 5
1
vote
1 answer

How to add geojson in my leaflet map? the json file can't be seen in map

I tried to load geojson file into my map. my geojson file is located in another folder called "data" and name of geojson is "street.json". I want to load this data to my leaflet map. how is possible? I tried the following…
Tek Kshetri
  • 2,129
  • 1
  • 17
  • 41
1
vote
2 answers

Validate geojson object

I have my geojson object, and i want to test whether the object is in correct format or not. How can i validate or check my geojson object. (i am working on php platform)
Ashish Pethkar
  • 1,558
  • 4
  • 12
  • 10
1
vote
1 answer

The logic and Code sample for conversion of Osm:Relation to GeoJson

I just want to convert osm data to geojson where it is pretty simple with node and way tags of osm data, but relation which is giving complex can't find the logic to convert osm relation to geojson format especially how to form coordinates parameter…
jayendran S
  • 29
  • 1
  • 5
1
vote
1 answer
1
vote
1 answer

Is there any drawing functionality on Azure Maps?

I'm working with Azure Maps and have a very basic idea of it's WEB sdk. What I want to know is- is there a drawing feature in The Azure Maps SDK that a user may use to draw on the map and return a geoJSON based on it. This functionality is identical…
1
vote
0 answers

How to update bokeh active interaction with GeoJSON as data source?

I have made an interactive choropleth map with bokeh, and I'm trying to add active interactions using the dropdown widget (Select). However, most tutorials and SO questions about active interactions use ColumnDataSource, and not GeoJSONDataSource.…
penatbater
  • 13
  • 1
  • 4
1
vote
1 answer

How can I scale my map to fit my svg size with d3 and geojson path data

I am trying to create a d3 SVG that draws a map of New York State and scale it so that it fits the size of my SVG, the issue I am having is that when I use .fitSize([height, width], mapObject) it only returns a NaN error in the console. the topoJSON…
Corey Gibson
  • 343
  • 1
  • 17
1
vote
1 answer

Display Polygons Layers according to zoom level of the map and clicks

So I have an OpenStreetMap map(with Leaflet), and I put a Europe javascript layer (I inserted Id in the javascript to differentiate every countries). Each country highlight when I do a hover on it with my mouse. When I click on a country, it…
Gio
  • 13
  • 3
1
vote
1 answer

Turf - get all features of a geojson, that are in range of a point

I have a geojson with a couple of features, eg. a grid of streets, and would like to get all streets and other features that are in a certain radius around a certain point. How could I do that with turf? I was thinking of looping through all the…
vinni
  • 633
  • 2
  • 8
  • 32
1
vote
1 answer

What is the better method to convert JSON to GeoJSON for Leaflet map

I wanted to convert JSON to GeoJSON to plot divIcons on a Leaflet map from a JSON file that I get from an API. Being new to javascript I am having a really difficult time finding a working solution. I thought I had my issue resolved in my other post…
DFW Storm Force
  • 123
  • 1
  • 1
  • 8
1 2 3
99
100