GeoJSON is a geospatial data interchange format based on JavaScript Object Notation (JSON)

learn more… | top users | synonyms

0
votes
1answer
37 views

How to store circle in GEOJSON for OpenLayers 3

I am loading my layers from external files - I am using geojson format for it, but it's not necessary - I can use any available format. Is there a way, how to store a circle (ol.geom.Circle) in the ...
2
votes
2answers
91 views

Simplify GeoJSON by retaining external boundaries (clustering)

I created a website (http://www.cartescolaire.paris) that basically loads a GeoJSON and displays it on a map using Leaflet. This geoJSON is pretty large (over 2 Mb), the loading time can be very long ...
3
votes
1answer
84 views

Leaflet pop-up does not work with Geojson data

I have a geojson file(Polygons).I want to display it on a leaflet map and when user clicks on a polygon, a popup with an information should be visible. The information is 'type'. I am able to see the ...
0
votes
1answer
154 views

Display geojson on WMS images in openlayers 3

Here actually am trying to achieve multipolygon on wms layer in openlayers 3. In this i'm calling a php file which is giving the output of geojson format but i don't have any idea where i'm doing . I ...
1
vote
0answers
10 views

Load information about feature for Geojson

Is it possible to display whole "info" for vector layer? I have a lot of geojsons with different feature in one map. I would like to show information.WMS can display info in this case (image). How I ...
1
vote
0answers
10 views

Using ZCTA (Census ZipCode) polygones

I have downloaded some files from census website and did some cleaning to get ZCTA map for new york, but I noticed that there are overlapped regions (some regions are inside others). For some ...
0
votes
0answers
13 views

Problem in adding geojson to WMSTile layer

I have problem with adding my geojson file to WmsTile (I see this layer). Here is my code with sample of geojson :
1
vote
0answers
19 views

Problem in adding geoJSON “info”

I have problem with display geojson "info".When I "click" on geojson layer I see also previous "info". In result I see multiple information. I would like to see only one info . (3 times i cicked in ...
1
vote
1answer
90 views

OL3 How to reproject vector layer on fly (ol 3.14)

I have a map in OL 3.14 with a WMTS in a specific epsg. I add a WMS layer in an other projection and it's ok, OL reproject right. But with a vector Layer (geoJson, in the same projection as WMS), ...
0
votes
2answers
48 views

Leaflet pass geoJson parameter to onEachFeature method

I created geoJson object as below: var geoJson= L.geoJson(groupingLevelType.type, { style: style, onEachFeature: onEachFeature }); function ...
0
votes
0answers
19 views

Problem with adding “TEXT” to vector layer (geojson)

I would like to add "name" of my vector layer. I put 'Hello' , instead of feature but it doesn't work too. Where is a error? var countryStyle = new ol.style.Style({ fill: new ol.style.Fill({ ...
1
vote
0answers
18 views

How to add geojson info using Http inner

I would like to add information about my geojson file after "click" . When I am using example from openlayers 3.14v . It dont work. How should I do it ? Because when I click on the geojson , below I ...
2
votes
1answer
30 views

Accessing First Member Coordinates of geoJSON

I apologize if this is trivial or not possible, I am new to GIS. So I have a geoJSON file with thousands of members, each with a point coordinate. Is there a way for me to access the first coordinate ...
0
votes
0answers
38 views

Moving a marker along a WFS road layer

I have WMS base layer and a WFS road layer published from PostGIS database using GeosServer and Openlayers. The two layers are displaying fine on the map. How can I move a marker along the road like ...
0
votes
1answer
76 views

Zoom to polygon bounds on click. Leaflet ´, GeoJSON

I have a leaflet map with a lot of polygons (borders). I will like to zoom to the bounds on the polygon, when the user click. Until now its only possible for me to zoom to the the bounds of all the ...
0
votes
0answers
36 views

Problem with adding GeoJSON to OpenLayers 3

I transformed (.geojson file)from EPSG 2180 to 4326 using ogr2ogr -f "GML" -lco GEOMETRY=AS_XY -t_srs EPSG:4326 test.geojson file.geojson I would like to add to map, but I received this error : ...
1
vote
1answer
61 views

Difference between Crosses & Intersects - Shapely (Python)

I have two questions : I have some lines (eg: road network). I want to find coordinates of each junction. Should i use crosses or intersects function from python's Shapely module? They are giving ...
0
votes
1answer
48 views

Problem with projection in OpenLayers3

I would like to add polygon geojson in the EPSG:2178 projection. The polygon should be displayed in central Europe but I see my geojson in Asia. Where have I made a mistake? Where can I find ...
0
votes
1answer
62 views

How to convert data from GML to GeoJSON using ogr2ogr?

How should I convert GML to geojson data using ogr2ogr. I used : ogr2ogr -f "GeoJSON" bd.geojson bd.gml But in this case I have only part of my data , not all. I tried add -append , but it didn't ...
3
votes
3answers
138 views

OpenLayers3 and GeoJSON data with null features

I am new to OpenLayers and I'm trying to label features on a map using a GeoJSON data. Here is my code: var layer = new ol.layer.VectorTile({ source: new ol.source.VectorTile({ format: ...
2
votes
0answers
48 views

Adding geojson to Mapbox GL JS

Seem to be having problems adding a geojson featurecollection to Mapbox GL JS. What is the most efficient way to accomplish this? I've looked through the examples given on their site but they involve ...
2
votes
0answers
16 views

How to display GeoJSON from a URL with authentication in QGIS?

I know I can add a GeoJSON url via the Add vector layer ▶ Protocol ▶ GeoJSON. But I have a URL that requires a username/password. Is there anyway I can provide the username and password for the URL ...
1
vote
1answer
56 views

LEAFLET - geojson properties in bounding box

Is there a way to show geojson properties which are located in current bounding box? something like this http://turbo87.github.io/leaflet-sidebar/examples/listing-markers.html with geojson and its ...
4
votes
1answer
43 views

How to encrypt vector tiles JSON response

I am using TileStache to serve vector tiles from Postgres and using Tangram to display these tiles by passing urlhttp://localhost:8080/composite/{z}/{x}/{y}.json in the data source. The response i get ...
1
vote
1answer
46 views

Converting json to geojson

I am writing a web service which in return gives json format data can anyone help me to convert this data into geojson format. { "STATE_ABBR": "AK", "file_name": "addresses", "AREA_WATER": ...
5
votes
1answer
35 views

Attempting to map GeoJson file producing issues

I've been trying to get this to work for some time now. The end goal is to produce a map I can show using d3.js, however d3 is butchering the map and producing an undesirable image. The code is as ...
2
votes
1answer
39 views

How can I load GeoJSON from URL to leaflet? [closed]

I want to use leaflet's L.GeoJSON to load the GeoJSON from my URL. I have tested to use leaflet-ajax plugin and it worked. The codes as follow: <link rel="stylesheet" ...
1
vote
1answer
67 views

How to map geoJSON polygon from a url request in python

Using Python I have loaded json data from the url http://environment.data.gov.uk/flood-monitoring/id/floods and have found that the flood areas encoded as geoJSON polygons are displayed as url links. ...
2
votes
1answer
52 views

Bring a list of unsorted linestrings in order so that they form a path from origin to destination

I have a table of linestrings together with some attributes that, when displayed all at the same time, represent a connected path from an origin to a destination (each linestring has one predecessor, ...
0
votes
1answer
85 views

GeoJSON data and XYZ (meter) coordinates

I'm relatively new to mapping. I have some data which I would like to save using the GeoJson format and display on Google Maps (Javascript API v3). This works for my shapes which are in [Lng,Lat] ...
3
votes
1answer
81 views

Extract geojson 'properties' dynamically with mapbox gl

I have an interactive map based on MapBox WebGL. I have an 'on click' function which is returning all information on data layers at that location (lovely). For each object I am trying to pull out ...
3
votes
1answer
69 views

Help with manipulating JSON to geoJSON

So i"m basically getting this JSON returned from a REST call (I'm using Python). [ { "ipAddress": "X.X.X.X", "score": "1000", } ] I want to convert this to geoJSON so I can plot the ...
1
vote
1answer
56 views

Geotools create shapefile in memory

Is it possible to convert between shapefile and geojson using geotools without access to file system? I have that restriction in my web app, but I need to create shapefile as byte array and then do ...
5
votes
2answers
108 views

How to render Multi-Response GeoJSON tiles

I am using TileStache to combine and server multiple vector layers in a single Mutli-Response GeoJSON tile, which is basically all my individual tiles/layers (GeoJSONs containing either roads, pois, ...
2
votes
1answer
65 views

How to tile GeoJSON data?

I have a GeoJSON dataset of the following format (LineString features): { "type": "FeatureCollection", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, ...
0
votes
1answer
46 views

Leaflet/GeoJSON - Changing the default blue marker to other .png files

How can I use different .png files to symbolize my GeoJSON data? I have one property in my GeoJSON file that I would like to symbolize the data by (feature.properties.issue). For each different issue ...
2
votes
2answers
82 views

Leaflet/HTML/GeoJSON: How to put a pop-up on a geoJSON point?

I don't have much knowledge of HTML/JS/GeoJSON, and have made a webmap from trial and error with many different tutorials. I have tried leaflet's tutorials but cannot get the desired results. I have ...
1
vote
3answers
97 views

Openlayers 3 GeoJson save and load

I am interested in openlayers 3, and I want to build a site. Already I can load features from variable in Geojson environment and I can draw features. But I could not write a code for saving drawn ...
3
votes
2answers
147 views

Recommended utility for editing of GEOJSON files

I have a geojson file with the boundaries and some very basic statistics (population) for all the counties in US. States are enumerated (1,2,...), not named. I also have a csv file with a ...
2
votes
0answers
61 views

How to make a network /tower coverage map in in mapbox

I am new to mapping and currently I am trying to make a map showing coverage of a network provider here in my country. The map I am trying to achieve should look similiar to that at ...
2
votes
1answer
103 views

PostGIS convert point->raster->GeoJSON

My question is a follow up to Convert a raster to GeoJSON polygons in PostGIS I'm trying to accomplish querying point data from the database, and then turn that into a raster for calculating ...
1
vote
0answers
78 views

OpenLayers3 creating large GeoJSON layers off the main thread [closed]

I am pretty new to this field and struggling to find out whether my idea is worth pursuing further. The problem I am facing is that I have to load a couple of large GeoJSON layers into my OpenLayers ...
3
votes
2answers
107 views

Is GeoJSON an OGC format

I am using geometries in a JavaScript page and it is best to use JSON objects rather than GML which is XML based. I heard of GeoJSON, but is it an OGC open format?
0
votes
1answer
104 views

Speeding up large GeoJSONs in Leaflet maps

I am trying to use Leaflet to make a map which displays multiple projection boundaries, i.e. UTM, State Plane, MGRS. Right now I have three geojson files inside the javascript, but they are quite ...
3
votes
1answer
50 views

Geojson in postgis Geometry : Z dimension error

i had this php code : ...
3
votes
1answer
80 views

GeoSpatial queries and indexes in memory

I am currently using Spark/Scala to process some data, and I am at the point that I need to run ~3M of geospatial queries. One common solution would be using MongoDB or PostGIS (or Magellan for Spark ...
1
vote
1answer
92 views

hide unhide layers in leaflet

I want to hide somme layers when I click in a layer and resotore the visibility back after clicking out I tried with this code but it doesn't work here also the punker code Hide show layers var ...
2
votes
1answer
106 views

Why won't GeoJSON load?

I'm working with openlayers3 and I wanted to load a GeoJSON file from my local ../assets/data/countries.geojson. Nothing is wrong but it didn't appear on the screen. This is my code: <!doctype ...
1
vote
1answer
63 views

Stubborn geojson layer misaligned with mapbox (leaflet) tiles only in production website, not in codepen or other online sandboxes

You can see my code and expected result in this running swiftly in codepen! Other online sandboxes work as expected too. The exact same code running in my php file on my wordpress site, shows the ...
0
votes
1answer
118 views

GeoJSON properties not displaying in popup-leaflet GeoDjango

I want to show the markers in different colours based on column(rastervalues) values in leaflet. My geojson data is {'geojson': "[{'type': 'FeatureCollection', 'features': [{'type': 'Feature', 'ge ...