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

learn more… | top users | synonyms

1
vote
1answer
26 views

Openlayers GEOJSON

I'am trying to show some points. The coordinates are in the file 'test.json'. But they wouldn't show themselve so i suppose there is something wrong with the code? <!doctype html> <html ...
1
vote
1answer
35 views

Parsing and rendering JSON data in Java with GeoTools

I'm working on a Web Map Service in Java. Practically this WMS allows me to represent the map of open data type (shp, kml and gml). I'm going to start working even with data in JSON format, and for ...
0
votes
1answer
295 views

JSon on Google maps [on hold]

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> ...
0
votes
1answer
40 views

Filtering GeoJSON data to include in Leaflet map

I am trying to filter through my geojson polygons and get all data entries with a specific attribute. I have a layer of polygons describing parks around the city parks.json. I want the user to click ...
1
vote
1answer
40 views

Add a JSON feature class to a map using ArcGIS javascript API

I am a beginner in javascript and I am working on a project using the ArcGIS javascript API. Since I am using shapefiles, I need a way to put them on the map automatically after a procedure. I have ...
1
vote
1answer
54 views

OpenLayers 2, JSON vector through WFS

Consider this example, https://geoext.github.io/geoext2/examples/grid/feature-grid.html It uses protocol: new OpenLayers.Protocol.HTTP({ url: "../data/summits.json", ...
6
votes
1answer
959 views

Deserializing GP Result JSON?

The value part of a GP Result can be any type of GP object (or literal). Does anyone know of a general way to deserialize this, preferably with either WCF or Json.NET? I'd prefer not to have to ...
8
votes
2answers
4k views

ESRI JSON Polygon Ring Orientation?

I am having a hard time finding any detailed documentation defining ESRI's JSON specs. I am hoping someone can shed some light on the following two questions. Similar to the GeoJSON spec, the first ...
3
votes
1answer
222 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": ...
-1
votes
0answers
25 views

converting to geojson

I have a json as below "data":{"1":{"cartodb_id":1047299,"jsongeom":"{\"type\":\"MultiPolygon\",\"coordinates\": [[[[-114.159837221251,51.1732306066514], ...
4
votes
2answers
1k views

Search and zoom json features in Leaflet

How can I add search box to map that allows user to search>zoom to polygon name. If there are 100 polygons, user can type name of polygon (i.e., Symantec) then map zooms to matching county?
2
votes
1answer
286 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 ...
2
votes
1answer
188 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 ...
1
vote
1answer
79 views

Leaflet Routing Machine: how to export route details and coordinates in JSON / GeoJSON?

I need to export / save the route details found using Leaflet Routing Machine in JSON or GeoJSON format. I've tried to use var routeArray = new Array(); routeArray = control.getWaypoints(); alert ...
0
votes
1answer
19 views

Change marker within leaflet map when loading data from geojson file

This section of code adds markers to my map (it works), how can I change the marker to a different icon when dealing with geojson? var cycleracks = $.getJSON('cycle-racks.geojson', function (geojson) ...
0
votes
0answers
27 views

how to export selected data to json format

I have a layer called parsel. I want to export all history of this layer. I created parselall_view with history tables (A,D) , I want make a geoproccessing service that service all data of ...
1
vote
1answer
482 views

how to make openlayers example work in jsFiddle

Hy, I'm working on a jsFiddle with a openlayers example in it. http://dev.openlayers.org/releases/OpenLayers-2.11/examples/snapping.html At the moment it's not working because it's not getting a ...
0
votes
0answers
21 views

Creating Map Service for ArcGIS Online from JSON file?

I have a .json file which I would like to be able to import into ArcMap to then publish as a map service to ArcGIS Online. The format of the json file when I receive it is like this: ...
4
votes
3answers
1k views

Converting ESRI Web Client JSON to Standard Feature Class With Python Geoprocessor

Is there a function exposed by ESRI's python geoprocessor that converts the JSON format used in the various web clients to a valid feature class. Clearly, the function exists because something is ...
0
votes
2answers
123 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 ...
0
votes
1answer
28 views

How to control polygon colour in hand-crafted Json for ArcGIS Desktop 10.3/10.4?

An app I'm developing needs to handcraft ESRI JSON to display simple polygons in ArcMap Desktop upon import. I want to specify color/transparency/outlining for the polygons in a layer and ideally ...
0
votes
1answer
66 views

Enabling or disabling WMS capabilities with python

I am trying to enable Feature Access for all of my services on an ArcGISServer with python. Below is my code. The variablejson is the Feature Access dictionary. How do I make the post targeting ...
0
votes
1answer
123 views

JSON String From VB.NET to Javascript over 100,000 characters

I have a string of properly formatted JSON from a VB.NET function that I am trying to pass to JavaScript where I can convert it into an OpenLayers vector layer. The string can be variable length, ...
2
votes
0answers
16 views

How to display GeoJSON from a URL with authentication in QGIS?

I know I can add a GeoJSON url via the Add vector layer ▶ Protocol ▶ GeoJSON. But I have a URL that requires a username/password. Is there anyway I can provide the username and password for the URL ...
1
vote
1answer
43 views

set up transport modes osrm

I wondered if anyone could help. I have setup osrm on a spare computer it is running on Ubuntu 14. It works fine and I can query it using the default car setting for transport. I would like to be able ...
1
vote
1answer
46 views

Converting json to geojson

I am writing a web service which in return gives json format data can anyone help me to convert this data into geojson format. { "STATE_ABBR": "AK", "file_name": "addresses", "AREA_WATER": ...
2
votes
1answer
39 views

How can I load GeoJSON from URL to leaflet? [closed]

I want to use leaflet's L.GeoJSON to load the GeoJSON from my URL. I have tested to use leaflet-ajax plugin and it worked. The codes as follow: <link rel="stylesheet" ...
1
vote
1answer
66 views

How to map geoJSON polygon from a url request in python

Using Python I have loaded json data from the url http://environment.data.gov.uk/flood-monitoring/id/floods and have found that the flood areas encoded as geoJSON polygons are displayed as url links. ...
4
votes
2answers
80 views

ESRI JavaScript API - Add Layer using esriRequest Response

For various reasons I need to add layers to a map object using a response returned by an esriRequest to an ArcGIS Server. One reason being the data will change constantly and hard coding FeatureLayer ...
2
votes
1answer
68 views

Get a JSON return from a Overpass API call

From this call: https://www.overpass-api.de/api/xapi?node[highway=speed_camera][bbox=-5.708215989569187,43.46669501043081,-5.605835010430813,43.588927989569186] I'm trying to get a JSON return. ...
0
votes
0answers
55 views

Zoom to x y coordinates in arcgis javascript api 3.15

I am using arcgis javascript Api 3.15 with ASP.NET and Ajax.I got json object contains only x and y coordinates. This object does not have geometry column. How can I zoom to this json object. Should I ...
0
votes
0answers
29 views

osx terminal ogr2ogr batch covert .json to .kml

using osx El Capitan terminal This works fine one file at a time to convert .json to .kml ogr2ogr -f "KML" xxx.kml xxx.json I would like to do all files at once I have tried for %f in (*.json) do ...
2
votes
0answers
36 views

Identify Geographic features by clicking on published map (ArcGIS Server) [closed]

I have a published map on ArcGIS Server. My map is accessing traffic signals data from a table in PostgreSQL. I am trying to display feature properties by clicking on any traffic light. Solved!
7
votes
2answers
4k views

How to send long JSON objects (polygon geometry, table rows) in POST request to Geoprocessing Service?

I am seeking to understand my options for sending long JSON objects in a request to a Geoprocessing Service. In particular, I am looking for some example code to illustrate how to include two long ...
2
votes
2answers
122 views

ArcGIS - Convert a Shapefile into JSON with coordinates

I have a shapefile and I would like to convert in ESRI Json with ArcGIS toolbox From feature to JSON. When i convert it I visualize x and y values in meters while I want latitude and longitude ...
1
vote
0answers
35 views

Using a file .shp with ESRI Geo Tools for Hadoop

I've a file .shp that I would like to load into a TABLE using HIVE with ESRI Geo Tool for Hadoop. These tools read JSON File and I've tried to convert my file into a .json format using GDAL Library ...
1
vote
2answers
88 views

Appending Data to FeatureLayer in ArcGIS API for JavaScript?

I am working on a web app where I am making calls to a database api and it returns a JSON Object. I've managed to do so successfully as well as any manipulations that need be done. Is there a way to ...
0
votes
0answers
29 views

Result of Export Web Map is empty?

I want to work with a layout in ArcGIS for Server. For that I am using Export Web Map with an empty web map as JSON. I am getting a result but it does not show anything because it is total empty. ...
7
votes
2answers
165 views

Format a specific GeoJSON file into the correct format

I want to use this json file it is no GeoJSON file yet but I noticed that it contains several Features and not one which I find confusing. I wanted to ask if you know some tool where I can merge all ...
0
votes
1answer
39 views

Getting different json response for the same data from different cartodb accounts

I am using cartoDB database and making a web application. I have a data in my database which you can view it from here and its public https://farook.cartodb.com/tables/entire_data. The response of the ...
0
votes
1answer
71 views

Getting a JSON response with requests and ArcGIS REST API

I'm performing a batch download from my AGOL account, and using the ESRI documentation export item I can export content to shapefiles. I would like to then download the newly created shapefiles. In ...
1
vote
0answers
33 views

FrameCloud Popups from json file in OpenLayers 2.13

So my problem is that i get only the last popup message from my json file. My marker builder works nice. Any thoughts will be helpful guys. Here is my code: function airports() { ...
0
votes
0answers
60 views

How to add the geometry to google maps from geojson(retrieved as json) for a specified condition using javascript

I have a array called place_names which holds some place names. I have a GeoJSON layer loaded in CartoDB, which has three columns id, name and the_geom (which is a geometry object) that can be queried ...
0
votes
0answers
65 views

ArcGIS Server: 'Export Web Map Task' fail to print basemap at small scale

I am trying to export a JSON WebMap containing a standard ESRI basemap and two public Service layers as PDF with 'Export Web Map Task'. I tried to test it at this link. The PDF looks fine for scales ...
0
votes
0answers
42 views

InvalidJsonValueException in geoserver printing module

I have a leaflet web app displaying some WFS and WMS with tiles from the IGN in WMTS. I've installed leaflet.print plugin and the geoserver printing module. But, when I want to print, a web page is ...
0
votes
0answers
101 views

Accessing GeoServer 2.8.0 on Debian 8 using Tomcat 8?

Not been able to access my Geoserver with Javascript. The Leaflet code running natively works in other javascript/HTML pages which connect on-line GIS servers. Added ENABLE_JSONP true to web.xml ...
2
votes
1answer
123 views

Adding a Mapbox Studio basemap to leaflet

I am using Mapbox Studio, customized a nice basemap, and downloaded it. It downloaded as a .json file with a couple thousand lines of code. I want to be able to use this basemap (called ...
2
votes
1answer
70 views

Is it possible to show Leaflet Marker Cluster with JSON API?

I have a problem with displaying Leaflet Marker Cluster working with Leaflet-layerJSON. There are markers, but I cannot show the clusters. This works with GeoJSON, but now I have different data ...
0
votes
0answers
22 views

Get Title and ID of CartoDB-Visualizations

How can I get the ID and Title of my CartoDB-Visualization via viz.json $mapVis = cartodb.createVis('map', http://[username].cartodb.com/api/v2/viz/[id]/viz.json, visOptionsM); $mapVis.on('done', ...
1
vote
1answer
246 views

SQL Server Convert GeoJson format into SQL geometry/spatial data

I'm using javascript and Openlayers 3 and to draw shapes or geometry in osm map. The data is in geojson format and i want to store it in SQL server 2008 R2 using SQL geometry or spatial data types. ...