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

learn more… | top users | synonyms

0
votes
0answers
6 views

Mapbox JS get geojson and echo to a div

I have a mysql table with geo data (id, lat, lon, speed, ...). I am using this php to parse to geojson (json.php in my case): <?php header('Content-type: text/plain'); $username = "[user]"; $...
1
vote
1answer
14 views

Where to get world-wide detailed administrative boundaries?

I'm looking to build a world map that plots all application users and their locations around the world. The initial zoomed out world view would show total numbers clustered by country, then when you ...
1
vote
1answer
25 views

GDAL python cut geotiff image with geojson file

I wrote the function which cutting geotiff image by bounding box. First image is original. At second you can see result off my code. I don't use gdalwarp or any console utilities. But I have no idea ...
1
vote
1answer
20 views

Issue in loading external geojson file into leaflet map?

I want to load an external geojson file into leaflet map. I created a global variable (i.e. tracts) for json file and referenced this variable in the script file. But i receive an error message that ...
0
votes
0answers
22 views

Creating Google Maps Polygon from Data Object Using getFeatureById

First post here, so forgive me if I put a few things in the wrong place. I am trying to do a Google Maps search for places inside an arbitrary region loaded into a Data object loaded via GeoJSON file,...
1
vote
0answers
20 views

CartoDB.js/Leaflet map - how can I click between multipolygons cleanly?

Here's my map: https://jsfiddle.net/Sidders/4exf969e/3/ I want to apply a click and hover effect to the polygons. So a polygon/multipolygon highlights on hover, and is selected with one click. The ...
2
votes
0answers
8 views

Error when creating spatial index in MongoDB

I am wanting to use MongoDB for some basic spatial calculations (on some fairly large data), but I get an error when trying to create an index on the US Counties shapefile retrieved from the US Census'...
2
votes
0answers
63 views

Using ogr2ogr in python?

I found this helpful post that got me started using ogr2ogr in python: Using ogr2ogr to convert GML to shapefile in Python? as well as this one: How to convert ArcGIS Server JSON to GeoJSON? I am ...
4
votes
1answer
104 views

Loading GeoJSON into QGIS

I am a beginner with QGIS. I am trying to learn it through lynda.com. I have tried downloading the nanaimo crime map in GeoJSON format, but I get a message saying that the data source is invalid. I ...
3
votes
1answer
49 views

Rotate geojson feature with Leaflet

I have a GeoJson feature that is rendered with leaflet and proj4(ESPG:31467). Now I want to rotate that feature so that it NW corner points to NE, e.g. 90 deg rotation. Is there a way to do this? Or ...
3
votes
1answer
32 views

Sync GeoJson to cartoDB?

Is there a way to sync GeoJSON files to my cartoDB table? If this is not yet supported, what would be the best way of implementing this feature (syncing the data frequently with the existing cartoDB ...
0
votes
0answers
15 views

Esri Shapefile to KML with gdal resulting in “too_big” in altitude value

I'm needing to automate the conversion of .shp files into something more user-friendly like GeoJSON and KML. The conversion to GeoJSON seems to work okay with this command: ogr2ogr -f GeoJSON -t_srs ...
1
vote
1answer
26 views

Is there a way to export and import again all Map at once?

I have a OpenLayer3 map with some arbitrary layers I can choose at runtime. Layers may come from external WMS services or internal PostgreSQL GIS tables or even from drawn features. Now, I need a way ...
3
votes
1answer
43 views

How to Pass geojson array to datatable dyanamically using javascript

I want to pass one geojson file to dynamically created datatable using javascript,I am unable to identify column names in file.. I have tried this.. <body> <table id="example" class="...
1
vote
1answer
38 views

Writing geoJson from rasterstats

How would I write a proper geoJson, readable by a GIS, from the results of the rasterstats package? stats = zonal_stats("somePolygons.shp", "someTif.tif", ...
0
votes
0answers
18 views

Get residential coordinates by zip and crid_id

I have information about residentials from USPS (zip code, crid_id, etc.). I need to get coordinates of polygon that will wrap every residential (crid_id) in special are (zip code) Data example: http:...
0
votes
0answers
19 views

Filtering GeoJSON data to include in Google Maps

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 lakes around the cities lakes.geojson. I want the user to ...
1
vote
0answers
49 views

Merging features by admin or sovereingt

I followed Mike Bostock's 'Let's Make a Map' tutorial to make a GeoJSON map of the EU starting from a 1:10M cultural admin0 shapefile from Natural Earth. The problem that I'm facing if that some of ...
0
votes
1answer
63 views

Text Label GeoJSON Markers Google Maps API

I am trying to create a Text Label, for each of the markers created from my GeoJSON with the following code... function init() { var mapCanvas = document.getElementById('myMap'); var map; var image = ...
1
vote
3answers
38 views

Is it possible to limit the records retrieved from a GeoJSON file?

Is it possible to limit the records retrieved from a GeoJSON file? I have a data file in GeoJSON format that my Leaflet page loads from a local text file and displays as a series of markers But it's ...
0
votes
0answers
9 views

Find all states (polygons) through which a route (polyline) passes

Used GADM to find GeoJSON polygons for the states of India. Now, given a google route between two cities, I need to find all the states the route passes through. Any suggestions on how to proceed? ...
2
votes
0answers
38 views

Why does my GeoJSON have no coordinates when saving from Shapefile in QGIS?

I've got a shapefile (.shp, .shx, .dbf, and .prj) that I'm trying to save as a GeoJSON using QGIS 2.14. When I load the .shp into QGIS, everything seems to work fine, the Shapefile renders properly. ...
0
votes
2answers
22 views

Leaflet: Change displayed column on click

I have a GeoJSON layer in a Leaflet map showing buildings. The columns of the buildings layer contain electricity usage info by date (eg., the column 12052015 contains electricity usage on Dec 5, 2015)...
1
vote
0answers
18 views

Load a GeoJSON layer with mixed geometries via QGIS's Python module

I have been able to connect my collection in MongoDB , write and store the collection to as .json file and load the GeoJSON file as a layer by QGIS's Python module unless there are mixed geometries. ...
0
votes
0answers
16 views

Displaying data from GeoJson over a city

Im tring to display a polygon over a city using GeoJson, i valided the file using http://www.mapshaper.org/ and the polygon displays just fine, but when i try to display this layer over OSM layer i ...
0
votes
1answer
17 views

how to add image links in Geo json object toget the images in pop up using openlayers 3

presently Iam working On Openlayers 3. I have added a geojson file to my map. when i click on a geojson feature iam getting a pop up which is displaying geometry and co ordinate values.i want to ...
0
votes
1answer
20 views

Loading a stateGeoJSON across countries

I am trying to build a chloropleth map in Javascript with zoom functionality. Map will need to have a chloropleth layer of all countries. On zooming in it will need to show a chloropleth of the next ...
1
vote
1answer
26 views

JSON Error? - Unfolding library - Bug or something else?

While trying to make use of GeoJSONReader from the Unfolding Library, while compiling I got the following error: A JSONObject text must begin with '{' JSON Error: Expected a ':' after a key org.json....
0
votes
0answers
29 views

Markers display with leaflet and javascript

I have a problem displaying data relating to schools on a div 'info' when click the marker with leaflet and javascript: here's the error: Uncaught TypeError: layer.setStyle is not a function
1
vote
1answer
36 views

How can I use mapbox gl js offline?

Im just wanting to understand my options for producing an offline map using Mapbox gl js. I have investigated several option with little signs of progress. First, I have tried using Studio by ...
2
votes
1answer
35 views

Invalid Geojson when drawing multipolyline on the map

I try to display multi line in the map but it return "Error: Invalid GeoJSON object" Here is my code $.ajax({ type: "POST", url: "server/drawPipe.php", ...
1
vote
0answers
25 views

Export features to pdf using JSPDF and Openlayers 3?

I built a map with different type of data, WMS layer, Vector Layers ( features extracted them from GeoJson file). Used Technologies : - Openlayers 3 - JSPDF How can i export just the selected ...
0
votes
0answers
28 views

how to delete vector layer on button click in openlayers 3

Here i'm trying to remove the vector layer when i click on delete button , but somewhere its not working its only hiding the feature not deleting it . Because when i'm calling it start overlapping all ...
0
votes
1answer
40 views

Transform data type EWKT and GeoJSON to SRID 900913 [duplicate]

Is posible transform data type EWKT with SRID 0 for example: MULTIPOLYGON(((295098.566494 6006717.0377012,344018.26458971 6009163.022606,329342.355161 5972473.2490342,295098.566494 6006717.0377012))) ...
0
votes
1answer
26 views

OpenLayers GeoJSON File

I am trying to add a GeoJSON file to my OpenLayers application and I am getting a cross origin request error. My main question is can a GeoJSON be stored locally (within a folder on my C drive) and ...
0
votes
1answer
14 views

Pop up for features inside a GeoJson File

I uploaded a GeoJson file into GMaps API that has many polygon features in it, and now I'd like to create a pop up for each polygon. The content will be obtained from the attribute table of the ...
1
vote
2answers
28 views

Can a geojson multigeometry contain a multipoint among other geometries?

Can a Geojson MultiGeometry contain a Multipoint array of points, or is it necessary to convert them into individual Points before adding to the geometry collection? This related question suggests it ...
2
votes
1answer
31 views

Help getting polygons out of multi-polygon GeoJSON files

Farmer here. Very new to GIS. I am trying to load shapefiles or KML files to an online site/service called FarmLogs.com. Once my "fields" are uploaded the site can tell me the amount of rainfall ...
0
votes
0answers
15 views

Convert shapefiles with ajax call to ogre

I am trying to use OGRE online converter to convert shapefiles to different format, referring https://ogre.adc4gis.com/ I am making an AJAX call to send the file and get the response, but the response ...
0
votes
1answer
29 views

lwgeom_to_geojson: 'PolyhedralSurface' geometry type not supported

I am using PostGIS (PostGIS 2.2.0 with SFCGAL extension) and I have data in postgres which is loaded using citygml2psql tool and it contains polyhedralSurface geometry. But when i run query : ...
1
vote
0answers
36 views

hide and show a feature from group feature with checkbox in leaflet

To begin I will explain the code, I have a checkbox generated after loading the web page by the next code var CPID = new L.GeoJSON(false, { onEachFeature: function (feature, my_Layer) {...
0
votes
0answers
21 views

How to get online the coordinates of result when search a region in Google Maps

I want to get online or by an API the coordinates of a polyline with the following format: { "type": "LineString", "coordinates": [ [-78.658805,-4.227355], [-78.659856,-4.228254], [-78....
1
vote
0answers
27 views

How to get all pixel values of raster within a GeoJSON FeatureCollection in PostGIS

I need to extract all pixel values in a raster within a GeoJSON mask, using ST_Intersects. Attempt (throws invalid GeoJson representation): select row_to_json(t) from (select * from table_name where ...
0
votes
1answer
36 views

Fiona does not specify CRS

I try to write a geoJSON from a shp with the fiona package. Works, but fiona does not include the CRS information. with fiona.open(path) as shp: takeCRS = shp.crs takeSCHEMA = shp.schema ...
2
votes
1answer
41 views

What is the difference between using a PolyLine layer and a GeoJSON layer in leaflet?

This question arises because on my project I will have a backend that consists of gpx tracks. Then, my frontend queries it (based on time, location filters, etc.) and I will either get the ...
1
vote
1answer
70 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: <button id='button1'>button1</button> <button id='button2'>button2</...
17
votes
2answers
201 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
20 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: 'http://localhost:15485/api/...
1
vote
0answers
42 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 rel="...