An open geographic data format based off of JavaScript Object Notation

learn more… | top users | synonyms

0
votes
0answers
3 views

geojson object with different representations and label/popoup conten

I have a quite complex geojson in terms of vertexes. It holds all the information which is needed in the webmap. it serves as the input for many layers like this (example for two): var represenation1 ...
0
votes
2answers
13 views

How to change Leaflet marker color on mouseover?

I'm having a hard time figuring out why the Leaflet method setstyle will change the color of a polygon but not the color of my markers. Polygon works fine: But the markers won't change colors: ...
0
votes
1answer
15 views

Not empty geometry having blank text

i'm having problem with geometry column, for some rows i have geometry with blank text, this query will describe more the problem : select geom, ST_AsGeoJSON(geom), ST_Isvalid(geom), ST_IsEmpty(geom) ...
0
votes
0answers
13 views

How to hide overlays in Leaflet layerControl if geojson var not found?

i would like to perform a specific task: i have a set of geojson layers, loading features from local files. i have the layercontrol on the map showing available layers to show/hide now, regarding ...
1
vote
1answer
22 views

Merge multiple linestring features into a single multilinestring

Using QGis or ogr2ogr how do I convert a vector file containing multiple linestrings features into a single multilinestring feature? At the moment I've been doing this manually by converting the data ...
6
votes
3answers
104 views

How to use Leaflet to efficiently show parts of a massive dataset?

I keep seeing non-GIS web developers running into this problem, and I'm not sure what the solution is. There is some dataset of thousands of items. We want to show a map to the user, with the ...
1
vote
0answers
22 views

Merge overlapping GeoJSON GeometryCollections

I need to merge three overlapping GeoJSON GeometryCollections of Polygon. Ultimately, the end result needs to be a geom type for PostGIS (e.g. MULTIPOLYGON) so I can easily check if particular points ...
1
vote
0answers
29 views

Leaflet: How to enable pan & zoom while GeoJSON still rendering?

I've overlaid a huge GeoJSON geometry on top of my Leaflet map, covering about 20 countries' borderlines (about 1,5 million vertices) using "L.geoJson". Each time I zoom in/out, the computer has to ...
1
vote
1answer
39 views

Translate coordinates in GeoJSON export

I am wondering if there is a way to apply a translation in coordinates for a GeoJSON export. Currently, there are negative coordinate values in my export, which I cannot have. I am trying to use ...
1
vote
0answers
11 views

QGIS view bounding box on Add vector layer GeoGSON protocol?

Our server can serve GeoJSON with an optional bounding box HTTP parameter. e.g. http://our_gis_server.org.au/layername?bbox=xmin,ymin,xmax,ymax In QGIS I can add this vector layer as a Protocol and ...
1
vote
1answer
36 views

Merge two geojson files

I have a global json files about countries' boundaries but the Russia is in two parts (two polygons). I want to merge the two parts in one, without the boundary at the middle. Is there a way to ...
0
votes
1answer
53 views

Optimum set up for large data sets such as mobile service coverage maps [closed]

When serving up large data sets such as mobile coverage maps (custom tile) mashed up with MapQuest maps and MapQuest POIs, is there any performance benefit to using shape file VS WMS tile PNGs? Any ...
3
votes
1answer
40 views

Day and night zone layer for Leaflet

I'm working with Leaflet and I'd like to show the day and night zones adding a dynamic layer to my map. I was thinking to add a static layer with some transparency and make it move every x minutes but ...
1
vote
1answer
48 views

How can I dynamically add features to a GeoJSON file? [closed]

I have tons of pictures which I am showing in markers on a LeafletJs map and currently have a fixed GeoJSON file. So I want to know is there any easy way to dynamically add new features to the GeoJSON ...
0
votes
1answer
40 views

Openlayers 3 display in Firefox and Chrome

I'm experiencing some issues with displaying OSM and GeoJSON. With Firefox v30 I see my GeoJSON data, but OSM is invisible. With Chrome v35 I see OSM, not my GeoJSON... What is the explanation? ...
3
votes
1answer
25 views

ogr2gui geojson to csv do not export coordinates

I tried to convert ogr2gui to convert geojson files to csv. The geojson file contains point data only. The resulting csv only contains attribute data, no coordinates. Is there a way to get the ...
0
votes
1answer
11 views

Guideline/scheme for naming properties in GeoJSON

Are there any guidelines/requirements for naming properties in GeoJSON? Should I add a vendor-prefix for my properties which only make in use with a specific application? I already read the ...
0
votes
0answers
13 views

openlayers 3 geojson style

here's a part of my html/js file. I cant display my geojson and really dont know the reason why. debug only says : "TypeError: f is null" any1 help ? Thx var map = new ol.Map({ target :'map', layers: ...
0
votes
0answers
26 views

OpenLayers Vector Features with common properties in multiple Layers

I am trying to manage features across different layers. Features are displaying weather parameters at some points on the map. Hence there is a wind layer, a temperature layer, etc. which all are ...
0
votes
1answer
35 views

Adding points from JSON to ArcGIS for Android?

I am new to Android, the ArcGIS Platform and ArcGIS for Android. I need to load points (offline) from a JSON file (GeoJSON) onto the map which displays a local Tile Package (*.tpk) and shapefile.
1
vote
1answer
42 views

SQL-query should return GeoJSON FeatureCollection

I'm trying to return a GeoJSON FeatureCollection object from a SQL-query with PostgreSQL 9.3 and PostGIS 2.1. This is my query so far: SELECT row_to_json(fc) AS p FROM (SELECT 'FeatureCollection' ...
0
votes
1answer
57 views

Displaying properties from GeoJSON file in choropleth map Leaflet.js

I'm using the Leaflet.js library to generate a choropleth map of zip codes colored by some property values stored within an externally loaded GeoJSON file. I'm following a tutorial here but have run ...
4
votes
3answers
97 views

Is there a API which return the geojson data for a countries borders?

Is there a simple free REST API where I can send the name or code of a country and get in return geojson data which highlights it's borders ? I'm writing an application where I will have a changing ...
1
vote
1answer
25 views

How to limit GEOjson data to specific area?

I am currently working with a shapefile from the United States Drought Monitor that countains all drought data from all of the states in the US. I am converting it to geojson with ogr2ogr and would ...
1
vote
0answers
32 views

Create Google Static Maps API from GeoJSON

I am using MapBox to create some maps with polygon boundaries. These maps will be embedded into a custom PHP app I am developing using their API. I need to be able to print these maps so I need to ...
6
votes
1answer
60 views

Suitable algorithms for simplifying isochrone polygons

I'm looking for an algorithm for simplifying isochrones which were generated using OSM data. These are generally characterised as having lots of small "holes" mostly due to missing OSM data but also ...
1
vote
1answer
104 views

How to get LatLng array from geoJSON Layer in Leaflet?

i need to hand the latlng coordinates from my phpPostGIS-served geoJSONLayer as an array over to a new added HeatMap Layer. L.geoJSON has an build-in option: coordsToLatLng( coords )" and a static ...
1
vote
0answers
135 views

“Can't extract geo keys from object, malformed geometry?” Possible self intersection?

My '2dsphere' index creation fails at a document. The command i write for creation of index is: db.collection.ensureIndex({'geometry' : "2dsphere"}) It returns the following error: { "err" : ...
1
vote
2answers
59 views

Data structure: mongoengine to GeoJson

I recently posted my first question on StackOverflow, but I think the question was quite extensive and full of potential errors. So I'd begin again, step-by-step, with a much shorter and simplier ...
2
votes
1answer
56 views

What is the best or recommended way to store a GeoJSON FeatureCollection in MongoDB?

The comments in this question: Shapefile to GeoJson conversion using C# raised another one: what is the best way to store a GeoJSON FeatureCollection in MongoDB? Is there any sort of convention when ...
1
vote
1answer
44 views

Python geoJSON module create a FeatureCollection with CRS, QGIS doesn't recognize CRS

I am curious if my geoJSON created with the geoJSON python module has a valid CRS. The manual on github specifies a feature collection like so: from geojson import Feature, Point, FeatureCollection ...
3
votes
2answers
128 views

Leaflet geoJson in front of markers in a FeatureGroup

I am loading some markers and json data to a leaflet map. I need to get my json in front of the markers. I have tried placing the markers and json in seperate FeatureGroups and then tried ...
0
votes
1answer
52 views

Where to find geojson for uk?

I want to get the GeoJson for UK.The regions which i require are in the map displayed on clicking the below link. http://www.apho.org.uk/resource/view.aspx?RID=50213 I have been searching the net but ...
2
votes
0answers
76 views

Z-Index in GeoJSON features using leaflet

I have a watershed polygon with sub-watersheds contained within the larger watershed. I would like the sub-watersheds drawn on top. Can i control the drawing order of features within a geojson object ...
1
vote
1answer
33 views

ArcGIS API for JavaScript - Adding Point(s)

I need to add a single point, I am new to JS and ArcGIS API. I was looking for some code examples on how to create a point and/or a few other points (as needed) I can't use any additional ...
0
votes
1answer
29 views

TileMill OGR Plugin: Failed to read GeoJSON data

I'm trying to load the following into a TileMill layer as the file build1.geojson { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[ ...
0
votes
1answer
51 views

Getting coordinates to create geojson

I have a geotiff that I have been working with in tilemill and I would like to select portions (buildings) in the map and create new layers as geojson objects. My issue is I don't know how to get the ...
0
votes
1answer
68 views

WFS 2.0 with bbox filter and attribute filter

I am trying to get the following WFS GET request to work: wfs = "service=WFS&version=2.0.0&request=GetFeature", name = "&typeName=storeName:layerName", bboxFilter = '&bbox=' + ...
0
votes
0answers
48 views

Geojson not rendered with Mapnik

I am trying to generate a tile with Mapnik with a GeoJSON. The stylesheet.xml with the part to render the GeoJSON is the following: <Style name="cities" filter-mode="first"> <Rule> ...
3
votes
1answer
51 views

Rounding bug using ST_GeomFromGeojson()

Let's say I have the following geographical point represented in GeoJSON: {"type":"Point","coordinates":[-109.0,35.292506]} When I run the following conversion, things work as expected: SELECT ...
8
votes
3answers
148 views

Metadata and GeoJSON?

My agency currently maintains and distributes shapefiles with FGDC XML metadata. We have now converted a lot of shapes to GeoJSON but are concerned that if our developers forget where they got the ...
1
vote
1answer
71 views

Can you use nested properties to style features in CartoCSS

I've imported a GeoJSON layer into TileMill and am having trouble styling based on the properties in the features. The features' properties objects have objects nested within them, and I haven't found ...
0
votes
0answers
22 views

How to serialize a HTML form to GeoJSON data?

I'm developing a Cordova/PhoneGap mobile application and using NodeJS for server and MongoDB as database. I need to serialize GPS data from mobile phone to send it to my webservice with latitude and ...
1
vote
2answers
75 views

Georeferencing Vector Layer (shp) from Mollweide Projection to Custom CRS in QGis

the title might be a little complex. Its part of a massive project: I'm working on a fantasy world; a map, to be more specific. I basicly just started to paint a world map in Photoshop, but over time ...
0
votes
1answer
57 views

Issue with using TopoJSON server API to return TopoJSON object with properties

I am creating a node application and using TopoJSON server API reference (see the link below) to convert a GeoJSON object to a TopoJSON object. TopoJSON server API reference I used these three lines ...
0
votes
0answers
26 views

GeoJson attributes encoding limitation

I have problem when trying to encode attribute values in latin1 using ogr GeoJson driver. Accent char are not displayed correctly. Is the geoJson encoding is limited to UTF-8? I cant find any info ...
1
vote
1answer
56 views

GeoJSOn or WFS service to view, edit and save geometries

To view, edit and save in postgis geometries using OpenLayers + Geoserver what is recomenadado use GeoJSON or serivços WFS? I ask this for performance and additionally want the edition is recorded ...
0
votes
0answers
56 views

Google Maps + Geojson vector layers --> Save as Image

I've created a custom website with Google Map's + geojson layers read from a Postgis database. I draw some other layers on top of it, including some polygon and line layers... I display this website ...
3
votes
1answer
53 views

Consume geojson web service in ArcMap

I need to consume data from a REST endpoint that returns features in geojson format within a model in ArcGIS 10.2. Is there a way to access a URL instead of opening a file? If there is no way to ...
1
vote
3answers
231 views

Using geojson hosted on GitHub from Leaflet: it doesn't work

I'm trying to use a geojson hosted on GitHub (rif. https://raw.githubusercontent.com/cesaregerbino/DatiGeo/master/ScuoleTorino.geojson), from Leaflet. here you are my code .... My first ...