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

learn more… | top users | synonyms

2
votes
2answers
144 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 ...
1
vote
1answer
39 views

Populate geoext2 gridpanel from openlayer vector features

I need to populate a extjs datagrid with a openlayers features. The official example http://geoext.github.io/geoext2/examples/grid/feature-grid.html doesn't help me, beacuse the data is loaded from a ...
1
vote
1answer
53 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' ...
1
vote
1answer
291 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 ...
-2
votes
1answer
61 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
24 views

Posting UserCredentials with AsyncTask of ArcGIS for Android?

My problem is that I want to get JSON data from ArcGIS for Server For example: http://xxxx.com/arcgis/rest/services/Map/MapServer/legend?f=pjson I can get and read JSON data from this URL but if ...
2
votes
0answers
678 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 ...
2
votes
0answers
158 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
178 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 ...
2
votes
0answers
112 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 ...
2
votes
0answers
353 views

OpenLayers BBOX sending double requests

I've implemented a openlayers bbox strategy on a vector layer. I have my server return a nice jsonp object wrapped in the callback given by the request. The problem is that during normal use of the ...
2
votes
0answers
458 views

GDAL tiling DTED (dt2) dataset as gdal2tiles for 3D Maps

i am searching some webgl technologies to create 3d map with digital elevation data. for web tech. i have found ReadyMap SDK to create 3d map from TMS... in ReadyMap for elevation data it uses sth ...
1
vote
0answers
24 views

Data interoperability json refresh

I am using ArcGIS 10.2.2 with the data interoperability extension. I am also building a web app using python, django and django-rest-framework. I'm building a json api that i can add to arcmap using ...
1
vote
0answers
90 views

Get ESRI JSON response locally from Arc document?

I'm trying to use the ArcGIS Flex SDK for a mobile app that will sometimes be used in environments with no connectivity. I've figured out that layers can be brought in locally by saving the JSON ...
1
vote
0answers
282 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 ...
1
vote
0answers
431 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 ...
1
vote
0answers
508 views

Multiple Google fusion table layers with queries using javascript

I am making a web mapping application using Google fusion tables and JavaScript. Earlier I had only one Layer on it, but now I have to put another layer. Both the layers have bunch of queries. I am ...
0
votes
0answers
10 views

Geoserver - Sometimes bounding box property is missing following CQL Filter - why?

Usually when I run a WFS Getfeature query on GeoServer and request JSON the results conform to this format: { "type":"FeatureCollection", "features": [..features here...], "crs":{"type":"EPSG", ...
0
votes
0answers
25 views

USA MSA/City/County with SImplest Border in JSON

I deal with a lot of poloygon-related JSON representing US places regularly. One thing that could make reading JSON with my eyeballs easier is having a short list of US places whose borders have ...
0
votes
0answers
40 views

Point Cluster Layer not defined

I am trying to do a point cluster layer based on the JSON objects I obtained from database. Here is my JavaScript to plot a point cluster layer: function addClusters() { $.ajax({ url: ...
0
votes
0answers
62 views

Land Parcel and JSON Data with onclick event

I currently am working on a school project and have been introduced to javascript with little knowledge. What the project entails is a webapp of land parcels that contain information about each one, I ...
0
votes
0answers
52 views

ArcGIS JavaScript manually render a layer with supplied JSON

Given the following JSON which is retrieved outside the ArcGIS/dojo framework, how would I go about rendering this layer? Thanks in advance! { "currentVersion": 10.01, ...
0
votes
0answers
116 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(); ...
0
votes
0answers
172 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
0answers
88 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 ...
0
votes
0answers
278 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 ...
0
votes
0answers
47 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 ...
0
votes
0answers
727 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 ...
0
votes
0answers
162 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
243 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 = ...
0
votes
0answers
127 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: ...
0
votes
0answers
152 views

Send WMS Request as JSON

I'm using openLayers and geoserver. I'm making a layer with openLayers.Layer.WMS to geoserver and am adding cql_filter to filter down id's. Here is my code: var kent = new ...