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

learn more… | top users | synonyms

0
votes
0answers
8 views

JSON loop - get field values not field names

I'm running a for loop to extract certain values from a JSON string. I get the related values back for a map service that is initiated by the user clicking on a table of contents - e.g. a url, layer ...
-1
votes
0answers
8 views

How to save proccessed data from GeoExt application

I am new in programming, GeoExt and webmapping applications. I have been creating a web mapping app using GeoExt and other applications. How do I, after processing data (kml, spatialite etc), save ...
0
votes
0answers
25 views

JSON Rest API - Mapfile - OpenLayers

I'm new to the GIS world. Using postgis 2+, I have a rest API running on a Tomcat server returning JSON. For instance : Query : GET /city?state=foo&otherParameter=bar [{ "id" : , "cityname" : ...
0
votes
0answers
16 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()); ...
0
votes
0answers
18 views

Problems with a function - query a JSON array to return fields in a map service url?

This is an extract of my JSON. {"id": "1", "layer": "0", "min_scale": "0", "url": "http://example.service.url" "max_scale": "5000000", "field": [ "NAME", ...
0
votes
0answers
21 views

How to use IdentifyTask to query JSON

I have a map application that harvests it's map layers from a JSON string. I've managed to use the following code to show the map layers when a user clicks on a layer name in a table of contents but ...
0
votes
1answer
27 views

Javscript API esri/dijit/search JSON Response

Hello guys I am having some trouble trying to parse out the returned JSON data from a dijit search. I have the following code where s.set("value","48035") will be populated from another page so for ...
0
votes
0answers
22 views

How can I display a local CartoDB viz.json?

I have a locally hosted CartoDB instance and have been happily playing with it for some time and enjoying all sorts of beautiful visualisations. There is some data ingested and I'd like to create a ...
3
votes
1answer
41 views

GeoServer and PostgreSQL JSON column

I have a database table with a dynamic schema implemented via a JSON column named "properties". Currently GeoServer doesn't recognize my JSON column. Is there some way to make Geoserver recognize ...
3
votes
1answer
49 views

Can ArcGIS Export Web Map task print labels from a Feature Layer?

I'm creating json to create a custom printout using the Export Web Map task on an ArcGIS server (v10.2). Everything works as expected apart from labels are not showing in the generated printout. The ...
0
votes
0answers
14 views

Finding ESRI JSON polygon rings of all US states?

Is ESRI JSON polygon rings of all US states a pubicly available resource anywhere? I have a xml file with point coordinates that I was planing on writing a quick conversion script for, but I imagine ...
0
votes
1answer
36 views

Add REST map service to basemap

I have created a JSON file which includes 30 map service layers and their attributes. This includes the map service url. My function creates a table of contents from the JSON object so that when I ...
1
vote
2answers
45 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){ ...
4
votes
0answers
45 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
2answers
29 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 : ...
1
vote
1answer
26 views

Leaflet marker cluster from JSONP WFS + Popups

I'm fairly new to Leaflet and just managed to use Leaflet marker-cluster with a JSONP WFS which provides my data from Geoserver. Now I would like to have a popup for my markers by mouse click. But I ...
0
votes
1answer
60 views

Keeping Properties When Converting JSON to SHP

I'm trying to convert the Nielsen map of DMAs from a JSON to a shapefile. The properties of the json is as formatted like this: "id": 546, "properties": { "name": "dma:", ...
0
votes
1answer
133 views

GeoJson and D3.js multipolygon

I have this geometric shape file, so no map of a city. I store the two Shapefiles in a GIS database as a geometric form. Now, I want to visualize the geojson data. I created the GeoJson data ...
0
votes
0answers
74 views

using JSON to getFeatureInfo with Request?

I'm using this classic example to getFeatureInfo from a WMS service. BUT.... it's on a different domain and we don't control the server, so that blunder of all blunders known as CORS is killing me. ...
1
vote
1answer
46 views

NumPy Array to Feature Class: NameError from Inner Loop Variables

I have a NumPy Array to FC script that parses a JSON web-service. The outer loop writes to my FC correctly, however my inner loop variables come back as not defined when appending the items. The ...
0
votes
1answer
72 views

How to protect the loaded json file name and location using html5 and javascript?

The data of markers (not the map) is stored in a json/csv/js file. We want to show all data as markers on the map. But how to protect the raw data file from public access? Following the example on ...
1
vote
0answers
41 views

JSON Layer does not show when .setview Changes

I've set a Mapbox map with a geoJSON layer overlaying it. The problem is that with the default set values, the json layer shows up just fine. However, If I change the .setView too much, the json layer ...
1
vote
0answers
104 views

Plotting points on a map, the json objects retrieved from a database; using WebGL shader code

I am using an OSM dataset using which I am plotting those points on a map (google maps API). I am plotting these points using webgl shader code (see:  http://psousa.net/demos/webgl/) The above link ...
0
votes
0answers
41 views

problem with to addlister event google maps in same html file

I try to make two actionlistener one when the mouse over a marker show a infowindows and the other is for get when click on a market the lat and long and make an AJAX request the two lister code is ...
2
votes
1answer
195 views

Python encoding error in ArcPy

I am writing a JSON file, as string input, using python, into a .json file in the file system. However I am getting the following error sometimes and I don't know why. Any ideas? ...
0
votes
1answer
122 views

Converting JSON to GeoJSON MultiPoint using `ogr.CreateGeometryFromJSON`

I am trying to convert a JSON array to a geom in Python, by first converting it to a GeoJSON. I have point coordinates in a JSON array, [{'lat':100.0, 'lng':0.0},{'lat':101.0, 'lng':1.0'}] that ...
0
votes
1answer
88 views

cartodb display json into table

I am new to cartodb and i don't understand how to populate a bootstrap table with my json data retreived using sql.execute: sql.execute("SELECT ...
0
votes
1answer
494 views

How can I add markers and attributes contained in JSON data to an OpenLayers 3 vector layer?

My question is similar to a previous question I asked (How can I add attributes contained in JSON data to an OpenLayers popup?). However, since I originally asked this question, I have upgraded to ...
0
votes
0answers
72 views

Geoserver sometimes does not load all selected layers

I have geoserver serving two layers from postgis into a leaflet application. Leaflet is requesting GeoJSON from geoserver which are displayed one a time using Leaflet's layer control. The issue here ...
3
votes
1answer
72 views

Data will not load into the popup using the Basic Viewer template for ArcGIS

I have downloaded the zip file for the Basic Map Viewer (https://github.com/Esri/Viewer) in ArcGIS and am trying to configure the layers to have popups. I've reviewed some of the code behind other ...
1
vote
1answer
157 views

JSon on Google maps

Good morning everyone! I'm trying to show a .json layer on Google Maps. This is the example that I'm using.... got it from google. <!DOCTYPE html> <html> <head> ...
2
votes
1answer
111 views

Control to select data source on Leaflet map

I am building a map using leaflet. My data source looks something like this: var districts = {"type": "FeatureCollection", "features": [ {"type":"Feature", "geometry": ...
0
votes
0answers
97 views

How to store ArcGIS JSON feature into Oracle SDO Geometry database?

I'm developing in Java. I retrieve a JSON String from an ArcGIS Online Service Area service. I'd like to store the features returned in the JSON String into an Oracle (SDO Geometry) database. Is ...
5
votes
2answers
2k views

GeoJSON java library

I am creating a Java web service that receives GeoJSON. Does anyone know a java library to manage GeoJSON?
1
vote
3answers
803 views

Load external tileJSON file in Mapbox

I have tiles generated by Maperitive from an OSM file, and there's a nice tiles.json generated with them which specifies neatly the tiles-path, bounding box, minzoom, maxzoom, center, etc. The format ...
1
vote
0answers
200 views

Load Maperitive's tiles.json into HTML for getting bounding parameters

I've created a local tileset of a city in Maperitive, and a basic leaflet.js webpage to browse it offline. There's a tiles.json also created by Maperitives that has all the essential bounding and zoom ...
0
votes
1answer
420 views

JSON coordinates not showing on Open Layers 3

i hope you guys could help me. its been several days since it tried and failed on populating my markers using a json Method. Please point out where im making a mistake. Thanks. Below is my code: ...
1
vote
1answer
92 views

python script to retrieve names and scale range from an ArcGIS MapServer url

i am pretty new at ArcPy. i need to write a python script to retrieve names and scale range from an ArcGIS Map Service url. i had a look around json and url2lib but i am lost. I want to retrieve the ...
1
vote
1answer
85 views

create spatial data on the fly for a timeline application

I 'll need the support of the experts on this: Facts: Data are stored in a MySql db with no spatial data. instead there is a uri of gazetteer service which will return spatial data in json format. ...
1
vote
0answers
157 views

Has anyone been able to programmatically generate and post web map definitions to ArcGIS Online and create web maps?

I'm using Python to build an ArcGIS Online web map definition JSON string, and then trying to post the configuration to ArcGIS Online to create a web map. I am using an admin account to generate the ...
5
votes
1answer
276 views

Conventions for returning GeoJSON via an API

I have a queryable API that returns one or more GeoJSON FeatureCollections. Currently the response looks something like this: { "success": { "data": { "layer1": {"type": ...
2
votes
0answers
61 views

How to create a JSON object in Geocortex to be used in Crystal Reports

Does anybody know if it's possible to convert a dataset containing unique ID's in Geocortex workflow to a JSON object so that it could be used in Crystal Reports? My knowledge of Geocortex is quite ...
1
vote
2answers
160 views

IE8 problem with proj4.js

This problem is in IE8 and not in Firefox. My first problem was that IE8 don't support JSON natively and I get the "JSON is undefined". I solved this by including json2 or json3. Now JSON.parse ...
1
vote
1answer
110 views

Does arcpy have a tool for converting file geodatabase Table to JSON?

arcpy has: arcpy.FeaturesToJSON_conversion() which can handle feature layers, but what about file geodatabase tables? Not too hard to implement custom, but I want something with the same API as ...
3
votes
1answer
1k views

ArcGIS Web AppBuilder widget config?

I downloaded a webapp builder template (javascript) that I've placed on my own web server and is running fine. However, I am not able to modify the widgets in the config.json file to the settings ...
0
votes
1answer
82 views

How can I load JSON into GRASS?

I have received rainfall data in JSON format. I want to load the data into GRASS. Sample JSON output: ...
1
vote
1answer
2k views

How to style specific polygons from a geojson with Leaflet

I have a World Countries geojson, that has country codes as "ID" (feature.id) and names as feature.properties.name I would like to color specific countries for making a "countries visited" map. ...
1
vote
1answer
872 views

Converting JSON to GeoJSON or CSV?

How do you convert a JSON file to a GeoJSON file or csv. I have a JSON file with lat lon information, but how can I can convert this file to GeoJSON or csv. I have found some online tools to convert ...
0
votes
0answers
73 views

How to combine two arcgis javascript functions with coded domain values for combo box dropdown?

I have a function which calls a layer that has a domain and coded value. I would like to create another drop down menu which shows the priority of these domains(service orders). My js file ...
0
votes
0answers
110 views

imposm2 to imposm3

I am using imposm2 to import osm data to postgresql database but recently moved to imposm3 which is still in development phase I want to know is there an easy way to convert imposm2 mapping file ...