JavaScript Object Notation (JSON), is a lightweight, human-readable data interchange format.

learn more… | top users | synonyms

1
vote
2answers
32 views

Find closest feature

How can I find the closest feature(coordinates) in a json file from a set lat lon using openlayers. Currently, I get the centroid point(lat,lon) from the selected polygon feature ok, but I Would also ...
0
votes
2answers
25 views

How to plot geo-data using matplotlib/python

I am trying to plot a polygone on python, using different libararies, but no one of these worked with me. I tried vincent ,Shapely , .. and now matplotlib. I don't wanna use softwares like qgis I ...
3
votes
1answer
31 views

Convert Sql Server Spatial data to GeoJSON & plot on map

I have a sql server table with Geo spatial data. An example of row would be (with Column names): type: streetline code: 231001 geog: 0xE6100000011 ........ Centroid 0xE61000000C....... geom: ...
0
votes
0answers
24 views

Relationship between MS Access DB and Google Maps API/Fusion Tables

We are having an issue with a project that we are working on using Google API and M.S Access. Our project goal is to design a web map in Google API where we can select a parcel of land and have all of ...
0
votes
1answer
44 views

How to add multiple OpenLayers Vector Layer markers with data parsed from JSON file

I would like to parse a local JSON file and add markers to a map based on the latitude and longitude parsed from the JSON file. Here is a sample from the local JSON file: "LOCATION_A": { ...
0
votes
0answers
16 views

converting from JSON to Shape files [duplicate]

I have a quick question about converting JSON to Shapefile. I'm trying to convert multiple polygon geometry JSON files into a single shape file and I'm not sure what kind of json this is ?[I'm ...
0
votes
0answers
29 views

ArcGIS Server JSON to GeoJSON does not always work

I'm using GDAL 1.10.1 for reading ArcGIS Server responses with automatic conversion to GeoJSON format as described in How to convert ArcGIS Server JSON to GeoJSON? post. However, it looks like some ...
0
votes
2answers
44 views

Which GEO data format does this data represent

I am parsing GIS data from a ESRI webservice in which I get the data specified as the following in a JSON file "geometryType" : "esriGeometryPoint", "spatialReference" : { "wkid" : 102100 an ...
1
vote
1answer
100 views

Converting JSON/GeoJSON files to Shapefiles

I have a quick question please about converting JSON/GeoJSON files. I'm trying to convert some JSON files into something I know how to work with (shapefile, R objects or PostGIS). I'm afraid I have ...
0
votes
0answers
51 views

Add Features using JSON

I have the features being added to my map through coordinates by using the following code: private void btnRefresh_Click(object sender, RoutedEventArgs e) { AddMarkerGraphics(); ...
1
vote
1answer
59 views

GeoJSON vector layer created using OpenLayers is broken

What i want to do here is to create a vector layer (using openlayers) from a GeoServer JSON Response. Actually i'm doing this: var url = ...
3
votes
2answers
125 views

Problem with loading GeoJSON file in OpenLayers generated by PHP

I'm trying to read some geo-data from PostGIS database using PHP, creating a GeoJSON file and showing it on a base map using OpenLayers. The PHP code works just fine. The generated data in GeoJSON ...
0
votes
0answers
89 views

How to pass multiple latitude and longitude to bing maps from Json

I have an requirement in which i have some five latitude and longitude which is coming from JSON. I am printing the same in the web page. Now i need to pass those five values to BING maps as ...
0
votes
1answer
408 views

Sample JSON code to get latitude and longitude values from Google API geolocation

I'm a fresher in JSON coding. I got a sample Google API geolocation console from https://developers.google.com/maps/documentation/business/geolocation/ site. {'cellTowers': [ { 'cellId': ...
0
votes
0answers
42 views

Using Terraformer to convert to WKT

I'm using Terraformer to parse some ArcGIS JSON into a Terraformer primitive. I'd like to store the geometry in PostGIS for other purposes. So I'm trying to use the WKT.convert tool to convert this ...
1
vote
2answers
76 views

How to calculate area in square kilometers of a OSM boundary

I have tried using measurement plugin in JSON. It does not work if the boundary is made of multiple selected lines. That plugin works when it is a single line for the whole boundary. Is there any ...
0
votes
0answers
154 views

Using Tile Mill and GeoJSON

I am trying to use Tile Mill and GeoJSON layers to have an image appear within a tooltip but it is not working properly. The process I go through to get the GeoJSON: 1) load .shp into QGIS 2) save ...
1
vote
2answers
86 views

json to xml transformation with x2js

I am trying to transform a JSON object to XML, but i have somehow get stuck in jscript (not an expert). Here is the code: ... var GEOJSON_PARSER = new OpenLayers.Format.GeoJSON(); var ...
0
votes
0answers
32 views

OpenLayers 3: context specific styling

I am having trouble with OL3 extracting context specific info from a nested JSON object. My feature's JSON goes like this: feature.attributes.geometry.name = "Point Alpha" How do I display the ...
2
votes
0answers
479 views

Geoserver WFS get feature doesn't work - “SyntaxError: missing ; before statement”

I'm trying to use geoserver WFS json for creating vector layer (instead of using WMS) because this is a layer I redraw every 20 seconds. This is the code I use : function getJSON() { var ...
1
vote
1answer
87 views

How to edit ArcGIS Server .json?

Is it possible to edit the .json format, which is created by default when publishing a service on ArcGIS for Server? For a project we have the following problem: Our by default created .json for a ...
2
votes
2answers
285 views

How to get JSON representation from JTS Geometry?

I'm using JTS (http://www.vividsolutions.com/jts/JTSHome.htm) and need to get a JSON representation of a Point : Hibernate beam: @Type(type = "org.hibernate.spatial.GeometryType") ...
0
votes
0answers
387 views

D3 adding topojson - no data visible

Yesterday I asked what would be the best method of creating an overlay in a web map that would allow for some interactivity. Create interactive map with no server Thanks to a variety of people who ...
2
votes
2answers
232 views

json to shapefile in javascript

I know, there are some libraries to convert .shp to .json even with javascript, but haven't found a way to convert .json back into .shp that could be implemented in web enviroment. Do you know or ...
0
votes
2answers
342 views

GeoServer 2.4.1: How to use JSONP in a WFS request?

I've ready that I can enable JSONP by setting ENABLE_JSONP in web.xml: <context-param> <param-name>ENABLE_JSONP</param-name> <param-value>true</param-value> ...
0
votes
1answer
47 views

Server Object Extension MultiPoint Input [closed]

I have soe which accepts {x:-112,y:35} as input parameter. how can I modify the soe code so that I can pass more than one point as my input parameters like {x:-112,y:35},{x:-113,36},{x:-113.5,y:34} ...
0
votes
0answers
132 views

How to convert Ext.data.TreeStore loading from file to loading from .net webservice?

I have a Ext.data.TreeStore which read data from text file : this.store = Ext.create('Ext.data.TreeStore', { model: "GeoExt.data.LayerTreeModel", proxy: new Ext.data.HttpProxy({ ...
0
votes
0answers
160 views

OpenLayers LineString: Not displaying the line (array of points)

I'm perplexed as to why tail_path is not drawing the line (can't see anything on the map) but the alert seems to be returning the correct data. var path_travelled = new Array(); var path = ...
-2
votes
1answer
76 views

“Open Source Routing Machine” querying and parsing

What I have in Python: import requests url_osrm = 'http://router.project-osrm.org/viaroute?loc=50.12345,8.12345&loc=50.23456,8.23456' print url_osrm proxies = {"http": "http://YOUR-PROXY:8080"} ...
1
vote
1answer
195 views

OpenLayers removing/adding marker (airplane): update the orientation based on lat/long (next point in database)

The code below I have is working great. I'll try to explain it in a few lines (btw you can view it here http://codeshare.io/9Z1BE): -there's a marker on the map. The lat long is returned as json from ...
0
votes
1answer
72 views

Access attributes on featureCollection

The geoJSON-String: { "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": {"title": "Standort 1 "}, "geometry": { "type": "Point", ...
2
votes
1answer
573 views

Looking for an API that will autocomplete adresses, and split them up into parts

I'm kinda new to the whole GIS thing, and found that is necessary for onw of my web apps. It's come to my attention that some people don't know what a proper physical address looks like, and so I'd ...
1
vote
2answers
167 views

Is it possible to convert regular JSON to GeoJSON?

My apologies if this is a repeat question, I searched here and couldn't find an answer. I have JSON data I've exported from Openpaths.cc which contains lat and lon values. However, the data is not in ...
0
votes
0answers
105 views

Geoservices REST JSON to SQL Server Geometry using Python

I'd like to hit a Geoservices REST endpoint (below) to return json and push this into a SQL Server Geometry table using Python. Ok so I can achieve this via ogr using below via command line: ...
1
vote
1answer
50 views

Fw tools using error

I am using Fw tools. And I am writting cmd screen: ogr2ogr -f \"GeoJSON\" -t_srs WGS84 D:\\electric_Data1\\direk.json D:\\electric_Data1\\ag_direk.TAB tried. And I have a error. error code: ...
11
votes
2answers
481 views

What is topojson and how is it different than geojson?

This is a conceptual question. What are the differences between these? and what are the pros and cons of these formats?
1
vote
1answer
249 views

How to use ArcGIS 10.2 Features to JSON output in web maps?

Using the Features to JSON tool that is now available with 10.2, is there additional formatting that needs to be done to the files before they can be displayed as web maps?
0
votes
0answers
113 views

Google Styled Maps - applying the style in WordPress

I have generated the JSON code for my styled google map using the Google Styled Maps Wizard, and am trying to embed the map into my client's wordpress page but am unsure of how to integrate the style ...
2
votes
1answer
91 views

Which fields are standardized to describe a ShapeFiles feature?

I would like to store data into a database which is available here either as JSON or as ShapeFiles. The JSON looks something like this: { "type": "FeatureCollection", "features": [ { ...
0
votes
0answers
104 views

Panoramio and GIS. API download limit

Currently I work in the project which aim is to evaluate "anthropogenic pressure" on coastal zone and elaborate recommendations for sustainable use of coastal areas. Panoramio data is most up-to-date ...
2
votes
0answers
138 views

Show geoJSON properties in jQuery Mobile Panel

First off I'm a novice at JS so please bear with me if this is a simple task to complete. I'm currently using the stock LeafletJS popup bubble to display the properties from my geoJSON. However, I ...
2
votes
0answers
138 views

R, GeoJSON and Leaflet

I recently learned about leafletjs.com from an R-Bloggers.com post. One such tutorial that I would like to achieve is to create interactive choropleth maps with leaflet. I have been using the rjson ...
-1
votes
1answer
340 views

How do I parse complex json? [closed]

My json response: {"type":"FeatureCollection", ...
1
vote
1answer
122 views

JSON URL won't open in QGIS

When attempting to display the national chargepoint registry from the following URL: http://chargepoints.dft.gov.uk/api/retrieve/registry/format/json The following error returns: ...
-2
votes
1answer
55 views

Render specific vector data from database with openlayer

I want to render some data on a map. They are stored as points in my database (postGiS), each one is associated with a name. I want to render points with the same place name in the same color. ...
2
votes
0answers
104 views

Jsonp Callback error

Recently we have started migrating application from Javascript API 3.1 to 3.5 and we are finding this jsonp error coming sometimes during adding the layer.When we add the layer we also zoom to the ...
0
votes
0answers
177 views

I copy/pasted code from ArcGIS .NET ashx proxy into my Controller method, now debugging is jumping all over the place (multi-threaded, apparently)

I have a controller that takes in JSON data via HTTP POST. Inside this controller is a call to a method that I copied/pasted from ArcGIS's .NET implementation of the proxy that's needed to connect to ...
2
votes
3answers
196 views

Making tracking data available to Geoserver

I have tracking data from GPS, which gives latitude, longitude, heading, etc. Right now it's stored in a non-standard database (Accumulo) and I'm looking into how best to make the data available for ...
3
votes
1answer
220 views

JSON format unavailable for GetFeatureInfo service

I have Geoserver 2.2.4 installed - which allows GetFeatureInfo to be returned as json If I make the following call ...
1
vote
0answers
364 views

ArcGIS API Javascript - FeatureLayer from json: problem with queries and popup

Hello everybody I've tried this code proposed by Derek Swingley in JSFIDDLE: JSFIDDLE-FeatureLayer from JSON Everything "seems" to work fine, but not always. If you go down to the closer scale (level ...