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

learn more… | top users | synonyms

0
votes
0answers
27 views

Leaflet : filter with condition

I want to insert a condition in a geojson filter. This condition is based in a variable called here varState: var geojsonLayer = L.geoJson(data, { pointToLayer: function (feature, ...
13
votes
1answer
94 views

Best-practices for databases and APIs with geographic data spanning the antimeridian

What is the best-practice for storing geographic features (lines, polygons and their multipart equivalents) when these features span the antimeridian (±180° longitude), and need to be sent to and ...
2
votes
0answers
10 views

Openlayers 3 different projection Geojson view

My map projection is EPSG:3857. And I want to show a GeoJSON data which has EPSG:4326 projection. var source = new ol.source.Vector({ url: ...
1
vote
0answers
26 views

Why reprojection GeoJSON with new.ol.View - not working?

I try to reproject GeoJSon file in OpenLayers 3 from : Geojson link With these JS in head : <script src="js/jquery-2.2.3.min.js" type="text/javascript"></script> <link ...
0
votes
1answer
40 views

Highlight feature below mouse-overed track in Leaflet

Currently, on http://velo300.free.fr/debug, feature highlights on 'featureOver' creating a white new feature on top of mouse-overed feature. Problem: i need also to work with 'featureclick' for ...
0
votes
0answers
23 views

change image of marker in leaflet

This is the code; it works very well //**************************************WFS****************************************************// ...
1
vote
1answer
27 views

Leaflet display only clicked element of a loaded map layer (polyline)

I am creating a web mapping application that will return appropriate routes based upon ST_length query on a cartoDB dataset. So far, the code below successfully maps those routes with individual ...
2
votes
0answers
38 views

Leaflet filter on geoJson properties : multiple criteria

I'm using Leaflet filter on geoJson data. I'm able to apply it with a simple criteria : filter: function(feature, layer) { return feature.properties.field1 == "yes"; } I can also apply two ...
0
votes
0answers
22 views

ordering overlays in layerControl

I have an application that adds GeoJSON to a map at various times. When the map loads I add a number of administrative boundaries. However, the user is able to query a database to get lat-longs that I ...
0
votes
1answer
39 views

How to call the geojson dynamically according to area selection in openlayer 3

I'm trying to get geojson according to the selection of a particular area. For example, if I have selected a built up area it will only show that area . I'm calling geojson data through php page, and ...
3
votes
2answers
39 views

Ogr2ogr is rounding numeric field from PostgreSQL to 6 decimals

I am using ogr2ogr to convert the data from PostgreSQL to GeoJSON. PostgreSQL contains field named shape.area, type numeric, which stores values up to 17 decimal places, like 0.15627328781960101. The ...
1
vote
0answers
44 views

Getting started with GeoJSON using Python [closed]

I am a GIS analyst who knows ArcGIS and Python pretty well and have used QGIS. I am attempting to learn about GeoJSON and web-mapping. I am looking for suggestions on tutorials explaining GeoJSON, and ...
2
votes
1answer
19 views

Convert resolution of geojson file from 1:10 to 1:110

After searching a while I finally found a geojson file of the continents. But it is large file (even gzipped) and I do not need the high resolution (1:10). Can I somehow convert it smaller resolution ...
1
vote
0answers
24 views

GML to GeoJSON JavaScript parser

Is there a JavaScript parser to obtain GeoJSON from GML? I have found only Python and OGR solutions.
2
votes
4answers
289 views

Transform GeoJSON geometry to WKB

I need transform geometry from JSON like: ...
0
votes
0answers
19 views

How to get feature's non-spatial attributes from GeoJSON file in OpenLayers 3?

I'm working on a webmap using OpenLayers 3 and GeoJSON vector layer. I've managed to render the layers on the map properly. My GeoJSON file looks like the following: { "type": ...
0
votes
1answer
27 views

Is there anyway to combine a static geojson and data from database then display it in leaflet?

I do have a web map application that can load geojson then display it on leaflet map, however I encountered unresponsive script whenever I refresh my page due to big size of geojson. Is there anyway ...
1
vote
1answer
36 views

PostGIS - syntax error inserting GeoJSON

I am trying to insert a GeoJSON into PostGIS, but I am encountering a syntax error. I can't seem to see where the problem is - I'm sure it is an easy issue to resolve, but my inexperienced eyes can't ...
1
vote
1answer
38 views

Representing json data on a map with GeoTools (Java)

I'm working on a Web Map Service in Java. Practically this WMS allows me to represent the map of open data type (shp, kml and gml). I'm going to start working even with data in json format, and for ...
1
vote
0answers
19 views

MongoDB Error Code 16755 - Can't extract geo keys for duplicate vertices and edge crossing

When I try to create an index on geometry db.polygons.createIndex({"geometry":"2dsphere"}), it stops at a certain polygon with the error code 16755. It says it Can't extract geo keys and then either ...
1
vote
0answers
42 views

Is spat the correct flag to use in my ogr2ogr command?

I have an ogr2ogr command that I'm using to convert part of a Postgres database to a Geojson. I ingested all of Canada in my database and to start, I want to grab all of the buildings in the Toronto ...
0
votes
0answers
21 views

Can you merge GeoJSONs in PostGIS?

I'm not too familiar with the GeoJSON functionality in PostGIS. In essence - I'm having problems with the computation of ST_AsGeoJSON(ST_Union(g)) taking too long for large g. Is it possible to ...
1
vote
1answer
25 views

Viewing a point geojson layer as markers in cesium

I have a point geojson layer and i would like to add and view it using cesium. I tried with the below code var dataSource1 = new Cesium.GeoJsonDataSource(); var roads = ...
0
votes
1answer
43 views

Filtering GeoJSON data to include in Leaflet map

I am trying to filter through my geojson polygons and get all data entries with a specific attribute. I have a layer of polygons describing parks around the city parks.json. I want the user to click ...
3
votes
1answer
42 views

Generate 1 shape out of many GPX files

I have many GPX files and i want to show them as layer on mapbox tiles. I managed to create "simple polyline" from gpx and then build GeoJson which include many features. That GeoJson is pretty big, ...
1
vote
1answer
26 views

Parameters for osm2po web service to route for walking

I have started the osm2po web service using the jar file. In the configuration file, I could see different parameters related to walking but not sure what each one does. I am trying to call the web ...
0
votes
0answers
9 views

Creating a Goolge Fusion Table with GeoJSON data

I'm trying to import a csv file of data into Google Fusion Tables. Included in the data is column of data that contains a polygon for each row which is defined as GeoJSON. All the data imports without ...
1
vote
1answer
45 views

Leaflet GeoJSON with projected coordinates (3857)

I am trying to get a GeoJSON with projected coordinates to show in Leaflet. I have no problems loading GeoJSON with lat/lng (EPSG:4326). Here is a fiddle where I load the GeoJSON with unprojected ...
3
votes
2answers
37 views

Conversion of .shp to EPSG:4326 has slight offset

I just started this project where I need to project the Dutch municipalities on a map. Luckily this seems very easy with the help of GeoJSON. However, I'm having a slight issue where my conversion to ...
3
votes
3answers
42 views

Projection offset between layers: OSM, GeoJSON

Don't know why there is an offset: The coordinates of the points that appear on the example were gotten through google's geocoder from some Rosario, Argentina directions. I have checked the lats and ...
0
votes
0answers
26 views

Insert shapefile drawn features into PostgreSQL

Sorry my question is repeated, unfortunately i didn't get the proper solution for the problem. I have a LeafLetjs map on which I draw features like: points, polygons, markers, lines etc and I am ...
0
votes
1answer
48 views

ogr2ogr - Clipping postgis and creating geojson

I'm trying to create a geojson file data based on data from my local postgis database using ogr2ogr. I'm trying to clip to a specific area and when I start to run the command, everything starts fine, ...
0
votes
1answer
70 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
22 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
57 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
38 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 ...
-1
votes
0answers
26 views

converting to geojson

I have a json as below "data":{"1":{"cartodb_id":1047299,"jsongeom":"{\"type\":\"MultiPolygon\",\"coordinates\": [[[[-114.159837221251,51.1732306066514], ...
2
votes
0answers
61 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
41 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
19 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
89 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
20 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
41 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
56 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.
0
votes
1answer
46 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
53 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
41 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
35 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
0answers
33 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 ...