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

learn more… | top users | synonyms

0
votes
1answer
83 views

I want to make an interactive map where the end user can filter the data

I've been looking at services like CartoDB and Mapbox for making and hosting some interactive maps. However, it doesn't seem like they provide the option for the end user to filter through the data ...
0
votes
0answers
32 views

Can turf.js be used to find and repair bad geojson geometry?

Methods: I'm currently using turf.js for geoprocessing as part of a broader mapping project; my workflow looks like this: Pull geojson of census tracts for an entire county Pull geojson tiles of ...
1
vote
1answer
68 views

LeafLetjs: GeoJSON invalid object error

I am getting GeoJSON data from postgresql, but it seems to be invalid. How can I validate it? After getting GeoJSON format data I want to put on map for projection. I am using LeafLet, java EE, ...
1
vote
0answers
50 views

Geojson taking long time to load in google map from database

I am trying to load a GeoJSON file from a MySQL database but it is taking about 6-10 seconds to load the data into the map. This is what I have done so far. I generate a GeoJSON file after doing a ...
2
votes
0answers
68 views

Insert shapefile draw features into PostgreSQL database using java EE (pragmatically)

I am working with PostgreSQL 9.4 and Java EE i want to insert shapefile or layer's features into PostgreSQL, is there any solution so i can insert the whole shapefile into database. OS Windows10. ...
0
votes
0answers
56 views

How do I store GeoJSON format in Firebase so it can be used for Leaflet GeoJSON

I am new with Firebase, Leaflet, and GeoJSON .. I have a question, how to store data with GeoJSON format in Firebase, so it can be retrieved and used for leaflets GeoJSON to display marker(s). I know ...
1
vote
0answers
24 views

How can I position gps point on svg (or any other special type if exist) scheme of building?

I have an indoor map of a building in svg and this is an only scheme of a building, there is no google maps or any other maps. But I need positioning (navigation) by gps coordinates in this scheme. ...
1
vote
1answer
142 views

Leaflet Routing Machine: how to export route details and coordinates in JSON / GeoJSON?

I need to export / save the route details found using Leaflet Routing Machine in JSON or GeoJSON format. I've tried to use var routeArray = new Array(); routeArray = control.getWaypoints(); alert ...
0
votes
1answer
25 views

Change marker within leaflet map when loading data from geojson file

This section of code adds markers to my map (it works), how can I change the marker to a different icon when dealing with geojson? var cycleracks = $.getJSON('cycle-racks.geojson', function (geojson) ...
0
votes
2answers
53 views

Leaflet: Capturing points for features inside circle

I'm using the leaflet draw tool to create a circle and then finding the points inside the circle. My data is from GeoJSON, and the code works as far as figuring out how many points are inside, but I ...
0
votes
1answer
74 views

Display Geojson data from PHP API (http://localhost/sample.php) on google map

I have PHP API (http://localhost/api.php) that gives data in GeoJSON format, how can I show that GeoJSON data on Google map ? Dragging & Dropping GeoJSON data on map is not allowed.
1
vote
2answers
61 views

How to store a vector layer as a geojson file in openlayers 3?

So I have some vector layers that I import from geojson files and run some search on them, I want to display only the results of the search as a vector layer. I am using a jquery form to search, and ...
0
votes
1answer
60 views

Combining GeoJSON Features

I haven't been able to find a solution with the source so am trying to work on the output file. I have also asked this question on SO I have a large (200MB) geoJSON file that has a lot of complex ...
0
votes
0answers
22 views

D3.js geojson rendering problem

Step 1 I have install mapshaper in my machine and browse all those required file along .shp, .shx and .dbf file . Step 2 : I am able to see required shape of this particular district in mapshaper ...
4
votes
1answer
51 views

Split very large OSM file

I'm trying to get detailed geojson data for various African countries. I think I found a good source at http://download.geofabrik.de/. The problem is that the downloaded file is in osm format. I know ...
0
votes
0answers
36 views

Leaflet - invalid map extent

I have a Leaflet map with a GeoJSON polygon overlay. When clicked on a polygon, map is suppose to zoom to the selected polygon: this.map.fitBounds(layer.getBounds()); I'm experiencing strange ...
1
vote
1answer
45 views

Encoding properties for each point in a GeoJSON multipoint

I'm working with GeoJSON Multipoints and wondering if there's any way of encoding properties for each point in the array? I realise this is a vague question but I'm looking for suggestions as to how I ...
1
vote
0answers
55 views

ogr2ogr - mapinfo to geojson. Merging shapes with certain values

I'm just starting out with this so apologies if I explain things poorly. I have some mapinfo files (TAB, IND, MAP etc) and I am trying to convert to Geojson. I can do this using ogr2ogr ogr2ogr ...
4
votes
1answer
74 views

leaflet GeoJson vs polyline

Is there any real advantage in using L.GeoJson instead of Polyline when drawing paths in a map powered by Leaflet? I know that GeoJson can attach additional options. It is also possible with ...
0
votes
0answers
10 views

Adding label to geojson

I have problem with adding label to my vector layer.I do not see error in console. I would like to see a "gml_id" from my geojson file. Below is my code. Any ideas where is a problem? : var myDom = ...
0
votes
1answer
60 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
118 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
105 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
195 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
11 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
153 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
64 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
21 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
23 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
33 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
40 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
130 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
40 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
68 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
52 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
89 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
175 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
62 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
20 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
69 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
52 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
50 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
42 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
40 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
79 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
55 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
108 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] ...