An open geographic data format based off of JavaScript Object Notation

learn more… | top users | synonyms

1
vote
0answers
17 views

Different Leaflet fillcolors for different layers

I have a leaflet map set up with two layers and I want them to use different colorization functions to color the choropleth shapes. My shapes are set up in layers like this: var povertyLayer = ...
0
votes
0answers
15 views

show polygon from database in browser in geodjango

I tried to retrieve the polygon which I saved into postgis database. (all polygons) Here is my code: models.py from django.contrib.gis.db import models class MyMap(models.Model): name = ...
1
vote
0answers
16 views

Shared edge between two geojson polygons

I am interested in getting the coordinates of a shared edge (if exists) between two geojson polygons. I am (currently) using turfjs and geojson-equality libraries I tried this but I consider it quite ...
2
votes
0answers
16 views

geopandas: can't save geojson

My task is to upload geojson, add data from corresponding csv, drop some columns, then save it back to geojson. However, after I did everything, added csv data (gj.join(df) ), etc, I can't save it ...
-2
votes
0answers
25 views

How to publish a PostGIS table on Google maps? [closed]

I am attempting to take a shape file and display it on a map: I can do it!! if you please meaning!!
2
votes
1answer
37 views

Best approach for indexing a SQLite database containing geoJSON spatial objects?

I'm building an iOS application for public release. My architecture currently includes Mapbox, Parse, geoJSON and SQLite for the local store. The app will store spatial objects locally as a string in ...
0
votes
0answers
20 views

get the outline of a polygon

I have geojson data that draws shapes similar to the following: I wanted to know if there are any operations that can give me the geojson which represents the outline of these shapes represented by ...
1
vote
1answer
19 views

How to pass custom data in GeoJSON point?

I have an application, which creates a GeoJSON stream on the server, which is then rendered on the client (using CesiumJS). GeoJSON is created using GeoTools. I want to pass some custom data to the ...
0
votes
0answers
17 views

geojson coordinate conversion to the format of the data coming from PostgreSQL?

I use hibernate spatial and geotools this is save to vector code : if (vectorType.equalsIgnoreCase("Point")) { LineString point =new GeometryJSON().readPoint(item.getData()); ...
1
vote
1answer
35 views

ogr2ogr problem mapping shapefile to geojson ETRS89 / Poland CS92

I'm trying to convert official boundaries of administrative regions of Poland from official governmental site (codgik.gov.pl). I want to use those data because they are official ones, and set contains ...
0
votes
1answer
53 views

How to filter polygons in Leaflet using range slider

I have a map I'm working on with Leaflet that displays a choropleth of zip code-level data. One piece of functionality I would like to add is to allow users to use a range slider to filter out ...
0
votes
1answer
21 views

mapbox geojson + leaflet + custom markers

In the geojson file the following can be found for a marker (coming from mapbox geojson) "marker-color":"#1087bf","marker-symbol":"monument"} I would like to find a solution so monument will be ...
1
vote
1answer
17 views

Tile server return empty features

I have successfully installed tilestache. I also has succesfully add a layer using shapefile from here. But when I tried to use my own shapefile, the server always return empty featurecollection. I ...
1
vote
1answer
40 views

Upload KML / GML / GeoJson to Geoserver through Rest API

What is the best option, if any, to upload a vector format like GeoJson, and or GML to Geoserver? The environment from which to upload will be a client web-application, so i cannot use curl. In the ...
3
votes
1answer
44 views

Leaflet + GeoJson = problem with style

I got my first leaflet + geojson project partly working! (even the popup with content from the geojson file!) but I still have a problem with style the geojson (export from mapbox) file has point, ...
2
votes
1answer
38 views

How can I export a shapefile from PostGIS with a GeoJSON query?

I tried to export a shapefile from my PostGIS installation using pgsql2shp as follow pgsql2shp -f tiles.shp -h <host> -u <user> -P <pass> <database> "SELECT id, the_geom FROM ...
0
votes
0answers
29 views

Change label size in OpenLayers 3 from QGIS Plugin output

I am working on OpenLayers 3 at the moment and my aim is to provide an offline map. At the moment I am trying to get GeoJSON files offline. For that I am using the QGIS Plugin that exports the ...
0
votes
1answer
48 views

Have to click twice to open popup leaflet

I am trying to make a map in which a marker can be clicked and a popup opens up with some information. I have successfully done all of that however my first click on any of the markers result in the ...
0
votes
0answers
24 views

PostGIS dijkstra routing - specifying source and target as bigint instead of int4?

I'm currently working on a problem where I have to use PostGIS's pgr_dijkstra to calculate the shortest route from a starting point to a destination, and then use ST_AsGeoJSON to convert the route to ...
0
votes
3answers
42 views

Load a really big geojson to a feature layer in leaflet

I have this geojson file(about 60mB) that contains the administrative area boundaries. I want to make a chloropleth and give color based on each geometry properties value and add it to the ...
0
votes
1answer
33 views

Getting GeoJSON formatted properly for Leaflet?

I am trying to get data put on a leaflet map that I have set up. I am following this tutorial: https://www.youtube.com/watch?v=fDfkjx-VhLI I have all of the html, css and js scripts up and running, ...
0
votes
1answer
28 views

Getting uploaded shapefile into geometry field on PostGIS table

I am working with a PHP web application where we have a user submitting a ShapeFile. I am able to convert that ShapeFile then to a format of geojson. What I am wondering now is how I can best get ...
4
votes
2answers
76 views

Big data sets and challenges using the Leaflet client

I am using Leaflet to present around 90.000 data points. My test code is generated using the plugin QGIS2leaf in QGIS 10.10.1. I am using clustering and reviewing the code I can see that this is ...
1
vote
1answer
111 views

How to SELECT all points within a GeoJSON polygon in PostGIS

I have a GeoJSON polygon, and a table with lots of points. I want to SELECT all points that are within an arbitrary GeoJSON polygon. How can I do that with PostGIS SQL?
1
vote
1answer
57 views

Leaflet map.locate, very long response time

I'm using leafletknn to search the nearest geojson element from the user location. I add a map.locate method that zoom to the user location. The response time is longer than when I directly use it... ...
3
votes
1answer
59 views

Wrapping vector tiles generated by geojson-vt

I've followed the example in geojson-vt, and am able to generate vector tiles from my geoJson source. However, I can't read these tiles with mapbox-gl-js or Leaflet.MapboxVectorTile because I don't ...
1
vote
0answers
28 views

Can I use GeoJSON GeometryCollection in QGIS?

I want to create a GeoJSON that contains multiple geometries to be used in QGis later on. Now I red through the specs here: http://geojson.org/geojson-spec.html#geometrycollection When I simply copy ...
0
votes
1answer
61 views

Ol3, dynamic CQL for WFS layer (GeoJSON) from Geoserver

My map in Openlayers (Ol3) contains a WFS layer with GeoJSON format from Geoserver. My intention is to use CQL filters that can be applied by the user through comboboxes next to the map. The CQL ...
0
votes
0answers
45 views

Dynamic data loading in openlayers 3 using Geojson

I am able to load the multiple wfs features using GeoJSON, but now i need to load the features dynamically instead of loading randomly Here is my code // First WFS Layer var url = ...
0
votes
0answers
17 views

Select/unselect features in CartoDB layer with reporting features name of all selected features

I have web app based on http://bl.ocks.org/javisantana/d20063afd2c96a733002 template. I tried to make highlight polygon feature and unselect highlighted feature on mouse click with report names all ...
0
votes
2answers
43 views

Administrative level GeoJSON Polygons for African Countries

I'm very new to GIS and I have spent the last few days trying to find some kind of database with the aforementioned polygons with no luck. The purpose is simply to label a location at district level ...
1
vote
0answers
49 views

Using GEOJSON offline in QGIS

I have some GEOJSON-Layers in my QGIS-project. The problem is, that when I zoom in or out, it takes very long to built up the window again. That's because it always loads it from the server. But I ...
1
vote
2answers
47 views

leaflet / change a geojson divicon html

I have a geojson layer with a divIcon and now i want to change it. i have tried whit seticon but it does not work. How could i do it? This is what I am trying: papesjson.eachLayer(function(layer){ ...
1
vote
0answers
10 views

Editing geojson without separating segment endpoints

I have a few maps of city sidewalks in Geojson format which I need to manually edit to make corrections. However, in the tools that I've tried, geojson.io and QGIS, segments that share an endpoint are ...
1
vote
1answer
35 views

gdal_polygonize with World File

I have this image that I want to convert it to GeoJSON. And I have this World File: 0.0388048118 0.0 0.0 -0.0387897595 697054.11331 4458020.56656 When I try to run the gdal_polygonize command ...
1
vote
1answer
63 views

Points of LinearRing do not form a closed linestring - one point intersection

I'm trying to index geojson data using elasticsearch. There is some kind of polygons that causing an error: "Points of LinearRing do not form a closed linestring". Looks like it happens because ...
0
votes
0answers
19 views

geoJSON isn´t showed

I am working in Openlayers 3. I have been trying to show a *.json (GeoJSON) layer but it doesn´t work and I don´t know why. debug tool shows this message: My code is: Vector layer ...
0
votes
0answers
18 views

Skipping the string serialization in json.loads(OGRGeometry::ExportToJson())

I have a for loop that exports a bunch of OGRGeometry objects to a python array in what will eventually become a GeoJSON feature collection. Something like this: features = [] for feature in ...
2
votes
0answers
59 views

What is the most suitable way to get the boundary of a state or a country or the whole world dynamically?

I am working on a project where I have to create filled map charts based on the data client has provided. The data has latitude and longitude information. Based on the selected level (city or state or ...
0
votes
0answers
53 views

mongodb $geoIntersects query for all documents who's polygon contains a point. no results?

I am trying to find all documents for a point that is within a document's polygon. using mongoTemplate to set up my geo index. mongoTemplate.indexOps(Boundary.class).ensureIndex( new ...
4
votes
0answers
47 views

Describing borehole information with geojson (javascript)

I deal a lot with borehole information and looking the best way to move it around in javascript / take advantage of javascript libraries (e.g. leaflet) for looking at this information on mobile ...
0
votes
0answers
46 views

How to get GeoJSON properties to appear in openlayers 3 popup when using CLUSTERS?

I'm attempting to get my geoJSON properties to appear in my on-click popup but no matter what I try, it either returns the geometry name object Object or Undefined. I think openlayers stores cluster ...
0
votes
0answers
20 views

how to remove duplicate values geojson on feature.properties.name?, using leaflet oneachfeature

I have duplicate value into select combobox, using oneachfeature and geojson the values are into combobox select, I'm trying to remove duplicate caracteristiscas the GeoJSON to populate within a ...
0
votes
3answers
33 views

Make polygon from area not covered by loaded polygons (like invert selection)

See screenshot, from geojson.io, with a geojson file loaded: So how do we make a polygon out of the blank area? Looking for a way which doesn't involve manually copying selected sequences of ...
1
vote
1answer
58 views

Converting OpenStreetMaps PBF to geojson with geocoding

I am able to convert PBF to geojson, but I lack the additional attributes like state, country, city, suburb, type of business etc which is offered by geocoding service like Nominatim. The geojson ...
0
votes
2answers
30 views

Problem loading geojson file on geojson.io

I am newbie in GEOJSON file. I am having difficulty to load my GEOJSON file on geojson.io. Here is my GEOJSON file : https://gist.github.com/anonymous/0abb8f926977d577b52d. The source file is from : ...
0
votes
1answer
92 views

How to get GeoJSON properties to appear in popup on feature click in Openlayers3?

I have a map with a base layer and a geojson cluster layer. I want to be able to click an individual feature on the map and have the contents of the properties be displayed in a popup. I currently ...
0
votes
1answer
23 views

GeoJSON not being shown

I was trying to add a GeoJSON feature implementing leadlet, but with no avail. Cannot figure out what is going on? <!DOCTYPE html> <html lang="en"> <head> <meta ...
1
vote
1answer
54 views

GeoJSON and OSM layers with different projection

I have a GeoJSON from NaturalEarth for world state boundaries and I want to display it with only without backgroung. But also, I want to add a OSM layer as another baselayer option. The code I am ...
3
votes
1answer
47 views

How do I produce a GeoJSON with 1 point at a certain lon/lat?

I need to create a GeoJSON string, which contains exactly one point at lon/lat 132.159633, 43.350116. I'm trying to use GeoTools 12-RC1 for that. Let's say I have following method, which is supposed ...