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

learn more… | top users | synonyms

1
vote
1answer
15 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
1answer
13 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 ...
0
votes
0answers
14 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 ...
0
votes
0answers
30 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 ...
1
vote
0answers
26 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!
2
votes
2answers
84 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
15 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 ...
0
votes
0answers
20 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
137 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
32 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 ...
1
vote
2answers
53 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
1answer
37 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
24 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
32 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
32 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 ...
2
votes
1answer
48 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 ...
1
vote
1answer
67 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 ...
0
votes
0answers
16 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', ...
0
votes
0answers
33 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
78 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, ...
0
votes
1answer
113 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. ...
0
votes
0answers
75 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 ...
1
vote
1answer
75 views

QGIS server won't return JSON(P)

We set up a QGIS server and are using QGIS to connect to a WFS layer. Everything is working fine within the desktop application. Then we use qgis2leaf to generate a html/js web map. That all works ...
0
votes
0answers
64 views

“Invalid JSON primitive: geometry” when adding features

I'm trying to use the arcGIS Rest API to add features to a feature layer, but I get an "Invalid JSON primitive: geometry" error. I get the same results if I leave out the spatialReference. The ...
0
votes
1answer
184 views

CartoDB json to HTML Table using Javascript or Jquery

I am trying to display the dataset inside the cartoDB as HTML table. When i give request to the postgre database by SQL API, it is returning as the format (json) below in the snapshot. I want the ...
-1
votes
1answer
37 views

JSON to line string

I'm getting a JSON return like so: ...
0
votes
2answers
44 views

Generate GeoJSON from MongDB Query

I want to extract my MongoDB query in a GeoJSON format it order to be able to visualize the result. I use Robomongo, which seems to be able to generate a JSON format. After I run the query, this file ...
1
vote
0answers
24 views

Apply.Edit Function for Delete

i have problem with my json of delete feature form Applyedit Jason on the arcgis server Json. Here my code. delMaintData: function(){ console.log('Bri'); var maintTable = new ...
1
vote
1answer
51 views

Getting email addresses of pointers after selection with JSON or array and ArcGIS API for JavaScript?

I am trying to create a map where I can create a selection area, and get info of all graphic pointers under it, I tried to modify with following example, but they are using web service and queries, ...
0
votes
1answer
79 views

Can't enable Jsonp in Geoserver 2.7.0 and then publishing my WFS request in Leaflet

I'm working on localhost:8080 and want to get WFS data in a Leaflet map. So, I've read in some posts here that I first I have to enable Jsonp in my web.xml file in Geoserver. So I put ...
2
votes
1answer
72 views

Is there are way to import non-geo JSON files into QGIS?

Here is a json file containing various attributes relating to countries. However, it does not contain any geographic data. http://bost.ocks.org/mike/nations/nations.json I would like to join these ...
0
votes
1answer
144 views

How do I show feature attributes in a Leaflet popup?

So I have a JSON file displayed on my leaflet webmap. I would like to have it so a popup will appear when a feature is clicked. Right now it is a polygon feature. How do I call up information from ...
2
votes
3answers
84 views

get external jsonp and convert coordinates in leafletjs

I need to solve two problems: convert my coordinates from wgs84 to epsg28992 use external geojson from an jsonp url Both problems are as far as I understand not supported by Leaflet itself. So I ...
1
vote
1answer
53 views

JSON To Features tool does not obey symbology?

I am using the JSON to features tool in the ArcMap conversion toolbox and i cannot seem to get the symbology right. This JSON i am using is a GPFeatureRecordSetLayer which i have written to a .json ...
0
votes
0answers
40 views

is there any flight travel time api?

I know there is google api for distance where we can calculate the driving distance but similar to that i want to pass two city names and I want it to give me just the duration like 4 hours 30 ...
0
votes
0answers
13 views

Create Map Service for AGOL 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 AGOL. The format of the json file when I receive it is like this: ...
0
votes
0answers
171 views

TileWMS JSONP getGetFeatureInfoUrl request using OpenLayers 3

I have a web map in Open Layers 3 which has some TileWMS layers from GeoServer 2.5 that I would like to query when the user clicks on the map. I am trying to use the tutorial here ...
1
vote
2answers
44 views

Loading JSON URL into Leaflet map?

Based on this example http://labs.easyblog.it/maps/leaflet-layerjson/examples/overpass.html I'm trying to load the following url into a Leaflet map ...
0
votes
0answers
59 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 ...
0
votes
0answers
54 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
39 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
48 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
51 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
104 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
70 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 ...
4
votes
1answer
208 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
18 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
95 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
173 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){ ...
5
votes
1answer
73 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 ...