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

learn more… | top users | synonyms

2
votes
2answers
116 views

Mapbox Natural earth map disappears on zooms 0 & 1

As the title says, I'm currently using mapbox to create a little atlas app the issue is whenever I zoom out to anything lower than zoom level 2, the map dissappears with the map background being the ...
1
vote
0answers
7 views

Walking a number of kilometers in one direction in digital map [duplicate]

Is there a recommended way to calculate the new position of a point in a map when "moving" the point for example 10 kilometers to south ? Example: Point = { lat : 'LATITUDE VALUE', lng : '...
1
vote
1answer
212 views

From featureclass (or shp) to WKT e GeoJSON

I use ArcGIS 10.1 without Data Interoperability extension and I want to convert some feature classes (point, lines and polygons) contained in an .mdb. I read some posts but can't convert my file. ...
-1
votes
1answer
52 views

JSON to line string

I'm getting a JSON return like so: [{"lat":38.660274,"lng":-90.136198},{"lat":38.6613,"lng":-90.13860199999999},{"lat":38.664634,"lng":-90.141853},{"lat":38.664634,"lng":-90.141853},{"lat":38....
2
votes
1answer
80 views

Cannot open this GeoJSON in QGIS 2.10

I have this home made GeoJSON: {"type": "FeatureCollection", "features": [{"geometry": {"type": "MultiPolygon", "coordinates": [[[[2.28313, 48.84024], [2.28297, 48.84011], [2.28282, 48.83993], [2....
0
votes
2answers
76 views

Generate GeoJSON from MongDB Query

I want to extract my MongoDB query in a GeoJSON format it order to be able to visualize the result. I use Robomongo, which seems to be able to generate a JSON format. After I run the query, this file ...
3
votes
0answers
24 views

QGIS: Edit attribute values of GeoJSON file: toggle editing greyed out [duplicate]

I'm trying to edit the values of attributes in QGIS, but it does not work. I tried to google an answer, but couldn't find anything so far. This is what I'm doing: Open QGIS. Drag in a GeoJSON file. ...
1
vote
2answers
661 views

Invalid GeoJSON object

I'm working with Leaflet trying to get some GeoJSON going. Everything works fine when I directly define a var as the GeoJSON I'm trying to display: var censustracts = { "type": "...
3
votes
0answers
367 views

Folium heatmap not displaying

I have an output file data.json [{"5403": 2, "9734": 1, "2565": 5, "5087": 2, "9061": 1, "1761": 4, "4811": 7 "1111": 5, "3891": 3, "1962": 3}] and a shapefile converted to geojson https://www....
0
votes
0answers
378 views

Adding time slider control to OpenLayers map?

I am looking for a way to add a time slider control to my OpenLayers 3.10.1 map. This control would load properties from different years of a vector layer, as in the following map: http://mastermaps....
2
votes
4answers
510 views

Python Library for converting GeoJSON Multi-polygon to polygon

I would like to know if there is a Python library that can be used to convert GeoJSON Multi-polygon to a Polygon. Note: i want to convert .geojson file Multi-Polygon feature type to Polygon feature ...
2
votes
2answers
1k views

How to calculate the bounding box of a geojson object using python or javascript?

I have django app with leaflet on the frontend and I need to calculate the bbox of my geojson so that I can pass the coordinates to map.fitBounds() I have tried some libs as well as trying the ...
2
votes
1answer
225 views

GeoJSON: PolyhedralSurface geometry type not supported

I am trying to make a 3D web application which should be able to render 3D buildings (I will be using Cesium, but that is not that important for now). I basically have a database consisting of the 2D ...
0
votes
1answer
53 views

Leaflet + GeoJSON and ArcMap : Map fails to load if missing variable

I am working on my first web map using the Leaflet API. I have a shapefile that was converted to the GeoJSON format (within ESRI's ArcMap software). The Shapefile contains a field attribute named "...
0
votes
0answers
117 views

CartoDB data load from csv , geojson file error

I had installed CartoDB locally on my Ubuntu 12.04 and the installation was perfect. I can create dataset by CartoDB's GUI and able to visulaize data perfectly without any problem. But when i drag and ...
1
vote
1answer
68 views

Lat long co-ordinates in geojson format for Alaska(smaller), bigger Guam and Puerto Rico?

How do I get the geojson format of Alaska, Guam and Puerto Rico in different sizes ? The sizes I have for Alaska is too large and too small for Guam and Puerto Rico. I'm very new to mapping ...
0
votes
1answer
22 views

Standardized format for contributing street closure data to navigation apps

I am wanting to put together an application that will digest georeferenced road closure data. I am wondering if any such format currently exists for notifying google maps or other navigation ...
0
votes
0answers
14 views

Importing osb.pbf data into MongoDB [duplicate]

I'm new to this stuff and trying to get the osm.pbf file imported into MongoDB. I have the data files in osm.pbf format and I would like to convert this into a GeoJSON first and import the resulting ...
1
vote
2answers
399 views

Applying a single leaflet search control to search multiple layers?

I am attempting to add a single search button to look through geoJSON layers. They will look through the field "name". Unfortunately, my method of creating a layer group is not working. What am I ...
1
vote
2answers
202 views

Separating two GeoJSON files, one with properties and another with geometry?

Using Leaflet with GeoJSON, I would like to create a map with geometries, and with alphanumerical data associated to each item of the geometry. A map very similar to the easy sample at http://...
0
votes
1answer
33 views

Offline Playback of Vehicle in OpenStreetMap

How to do offline playback of routes traveled by a vehicle using postgis in OpenStreetMap when the coordinates are given in JSON format? I am getting gps data from gps device in json format but it ...
0
votes
1answer
108 views

Leaflet Search for GeoJSON creating duplicate, non-functional buttons

I added a plugin for searching a GeoJSON file in leaflet, but now there are multiple search buttons and they do not recognize any input. I suspect that it is initializing for every single instance of ...
0
votes
0answers
144 views

geojson very slow to load in openLayers3

I'm new to openLayers. I have parcel data stored in a geojson file, and it's pretty huge - there are about 170,000 records. I would load the data as a WMS, but I want the features to highlight in a ...
0
votes
1answer
183 views

Clickable hyperlink from GeoJSON field in feature

How do I make a URL a hyperlink when the information is called from a GeoJSON field? I have tried adding html tags, but since the link is not in-line, it does not work. (Script below) LOC_Catalo is ...
0
votes
1answer
196 views

Activating Search Plugin with JS Leaflet

I am attempting to add the following plugin to search a GeoJSON file I have open in Leaflet Javascript: http://labs.easyblog.it/maps/leaflet-search/examples/geojson-layer.html I have brought in the ...
1
vote
1answer
430 views

Create shapefile based on geojson data with geotools (Java)

I'm using Geotools 14.0 for Java and I'm trying to generate shapefile based on data from GeoJSON. Here is my code: try { String url = "geojson.json"; File geojson = new File(url); ...
2
votes
2answers
78 views

cannot open shape file

I'm trying to open this shape file with CartoDB or http://geojson.io, but I keep getting different kind of errors. I can open it with qgis, but then I tried exporting it to geojson, kml, esri shape, ...
1
vote
0answers
80 views

Selecting leaflet markers based on Json features [closed]

I have data coming from a Json file and I created a layer based on this Json file using markerClusterGroup. I am hitting the wall trying to do two things: 1 - Select some markers based on some Json's ...
2
votes
2answers
2k views

GeoJSON - how to style features of GeometryCollection

I have a GeoJSON file with a feature as follows: { "type": "Feature", "properties": { "Start Date": "01-09-2015", "End Date": "01-09-2015" }, "geometry": { "type": "...
1
vote
1answer
185 views

Edit GeoJSON attribute table

Is it possible to adjust tabel headers of GeoJSON files in ArcGIS? If yes, which max length has a row header? In QGIS there is no possibility to edit a GeoJSON table.
0
votes
1answer
569 views

How do I show feature attributes in a Leaflet popup?

So I have a JSON file displayed on my leaflet webmap. I would like to have it so a popup will appear when a feature is clicked. Right now it is a polygon feature. How do I call up information from the ...
2
votes
3answers
116 views

get external jsonp and convert coordinates in leafletjs

I need to solve two problems: convert my coordinates from wgs84 to epsg28992 use external geojson from an jsonp url Both problems are as far as I understand not supported by Leaflet itself. So I ...
2
votes
1answer
1k views

Openlayers-3 - Extracting data for styling from my GeoJSON

I am trying to understand how to get data from my GeoJSON while rendering the map, so I can style every polygon/point differently. What i'd like is to create style-groups with the property named "...
2
votes
1answer
732 views

installing geojson-vt with Leaflet

Super rookie question I'm sure, but I need help using the leaflet plugin geojson-vt. According to tutorials, like this one on http://bl.ocks.org/Sumbera/c67e5551b21c68dc8299, there should be a js file ...
0
votes
3answers
694 views

Reading in local GeoJSON file for OpenLayers

I am kinda new to OpenLayers and not (yet) very experienced in JavaScript. I have a WordPress blog and I want to replicate and adjust the following script to my needs: http://jsfiddle.net/eqsrnjos/1/ ...
0
votes
0answers
71 views

Web mapping application with select/unselect features and receiving names of selected features on map

I am creating web application that need to have the following functionality: display polygonal features on the map (about 20-50 Mb if GeoJSON) on click on feature - select them and view names ...
0
votes
1answer
358 views

How to draw a rectangle on a Leaflet map from GeoJSON data

I am trying to draw a rectangle on a Leaflet map with JSON data which looks like this. var geojsonfeatures = {"type":"FeatureCollection","features":[ {"type":"Feature", "geometry":{"...
0
votes
0answers
77 views

Does Leaflet handle TopoJson in OSGB EPSG:27700 projection?

I already have a Leaflet map showing custom base map tiles in British OSGB projection, EPSG:27700 (using the Proj4Leaflet plugin). I would like to overlay some nationwide admin boundary data in the ...
1
vote
0answers
71 views

Validate that Openlayers GeoJSON layer is in the correct format with OpenLayers.Protocol.HTTP call

I am completely new to JS and openlayers, i am trying to figure out a way to validate the received layer with the OpenLayers.Protocol.HTTP call. I want to validate that it is in the correct format (...
0
votes
0answers
27 views

Leaflet GeoJSON ignores first clicks

I have a functioning Leaflet map. In order for the click event to work I have to click on the area that has the event then click on an area without an event then click on the area with the event to ...
0
votes
2answers
3k views

Convert Lon Lat to XY in Openlayers 3

I have a map which retrieves Points of Interest from a database and displays them however the Lon Lat need to be transformed into XY to be placed properly. Currently the all just appear at O,O and I ...
1
vote
1answer
354 views

Issue dsplaying GeoJSON file in OpenLayers 3.9.0

I'm trying to get vector feature from geojson file displayed in openlayers 3.9.0. {"type": "FeatureCollection","crs": {"type": "name","properties": {"name": "EPSG:3857"}}, "features": [{"type": "...
1
vote
1answer
50 views

Openlayer3 3.9 vector layer ignores some linestrings

I updated my small OL3 project to 3.9 but noticed that one of my vectorlayers now only displays very few features: Other point layers work fine. Also I checked the basics: Browser calls and ...
2
votes
2answers
101 views

How to enable Arabic/UTF8 labeling in Openlayers?

I have data in Geojson contains arabic in some attribute when reading the attribute info.push(features[i].get('Name')); I get this Unreadable how to enable utf8 or I dont know....
1
vote
1answer
219 views

Mapbox Directions Plugin - Get Route GeoJson

Goal: find the GeoJSON points in a web map that are closest to a directions route using turf.js. I am using the Mapbox Directions plugin. I am following this example. How do I work with the route ...
1
vote
0answers
163 views

Can you check if a gps coordinate is inside a gps polygon in R?

I'm trying to determine if a specific gps coordinate is within a gps spatial polygon. My gps coordinate is being outputted from the geocode function from the ggmap library and the spatial polygons ...
1
vote
2answers
190 views

Loading Json properties in a popup using leafletjs

I have a geojson file (tide_gauges.geojson) { "type": "FeatureCollection", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, ...
2
votes
2answers
137 views

ogr2ogr - Lost projection when converting geojson to MapInfo Tab

I have the following geojson that I would like to convert to MapInfo tab with ogr2ogr: ogr2ogr -f "MapInfo Tab" output.tab input.geojson geojson: { "type":"FeatureCollection", "crs":{ "...
1
vote
1answer
153 views

ogr2ogr - Convert geojson to shapefile create offset in coordinates

I want to convert this geojson file below into a shapefile using ogr2ogr command ogr2ogr output.shp input.geojson. However, an offset is appearing in the output coordinates that make the shapefile ...
0
votes
0answers
189 views

Using multiple custom markers from geojson attributes using Mapbox

I'm new to Mapbox and ran into the following problem: I'm loading marker positions from an external geojson and want to manipulate the looks of several markers filtered by an attribute like "title". ...