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

learn more… | top users | synonyms

0
votes
0answers
3 views

No 'Access-Control-Allow-Origin' header is present error when requesting json response from Geoserver

I am still working to get my GeoServer WFS displayed in my Leaflet map and cannot get the Ajax response to work properly. I have already run the "getFeature" request in my browser and it returned json ...
1
vote
1answer
14 views

Add GeoJSON layer to OpenLayers 3.16 from GeoServer

I try to be as simple as possible with my problem. It's just to display a json layer from my Geoserver on a OSM layer with a ol3.16 page. I take the example from this page: http://openlayers.org/en/...
0
votes
0answers
17 views

Trouble adding and populating field on the fly in ESRI feature layer

I'm trying to build a mashup consisting of a Census tiger web feature layer, and some JSON. I want to make a map of the feature layer, then add a new field to the layer, and populate from the JSON. ...
0
votes
1answer
126 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
29 views

ESRI Javascript - Dynamically Create Points from Non Spatialized JSON Using Lat/Longs

I am working on application that needs to make use of a non spatial data set. The data is maintained by the group responsible for the installation of the asset item and thus it makes sense to pull ...
3
votes
3answers
2k 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 ...
3
votes
0answers
71 views

Using ogr2ogr in python?

I found this helpful post that got me started using ogr2ogr in python: Using ogr2ogr to convert GML to shapefile in Python? as well as this one: How to convert ArcGIS Server JSON to GeoJSON? I am ...
0
votes
2answers
125 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
votes
0answers
25 views

QGIS and image server

I am lacking in knowledge and wanting to link to the following image service. how do I get this link correct for QGIS ? http://gis.pcc.govt.nz/arcgis/rest/services/Base/Urban_Aerials_2016/...
0
votes
1answer
17 views

Leaflet - MultiPolyline constructor and arrays in JSON

I am struggling with the AntPath Plugin ( link to GitHub ) for Leaflet and the documentation is limited and difficult to read. This setup works well(se code-snippet in the end), but instead I want to ...
0
votes
0answers
195 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 ...
1
vote
0answers
35 views

Dynamic column header in datatable from json array?

I want to populate datatable with dynamic column header and column data,i can populate dynamic column data successfully,but i cant achieve dynamic column .. I am using json array. My code is <...
0
votes
1answer
25 views

How to draw line/multiline, polygon/multipolygon with SharpMap from Coordinate Source

I have a list of n points, exactly x objects in GeoJSON from a CouchDB. I want to generate lines/multilines and polygons/mutipolygons with SharpMap and add this to a Layer in VB.NET. For points its ...
0
votes
1answer
20 views

Export csv-coordinates to JSON - square brackets [closed]

I´ve got multiple point-layers that I want to join in a single JSON-file used for webmapping. The layers is to be listed in column by column like this: [55.778659,12.151137 ], [55.77272358,12....
1
vote
1answer
37 views

Realtime in Leaflet with Socket.io

I'm trying to get events on the client side and showing changes (new markers) in realtime on a leaflet map with socket.io. The problem is in defining data that comes from socket.. I don't know the ...
0
votes
0answers
70 views

Using 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
0answers
56 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", ...
1
vote
1answer
100 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", ...
2
votes
1answer
317 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
198 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
2answers
59 views

Create map using Leaflet and JSON

I have a question in order to developing a web app using dynamic maps with JSON files. I'm using Visual Studio 2015 with MVC 5. At this moment i have developed complete app but I'm unable to draw ...
1
vote
1answer
29 views

Retrieve all feature IDs displayed on the viewport into JSON using Leaflet

I have build a map application using leaflet, where I display a WMS layer from Geoserver. What I am trying to do now is to get all the elements which are currently on the Bounding Box and store them ...
0
votes
0answers
83 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 ...
1
vote
2answers
40 views

Saving array of objects in PostGIS field?

It is possible in PostGIS to save an array of objects in a field, and GeoServer able to read it? (timestamps) For example, a spatial table with the fields: "name", "timestamps" and "the_geom" would ...
1
vote
1answer
75 views

Parsing and rendering JSON data in Java with GeoTools [closed]

I'm working on a Web Map Service written in Java and using the GeoTools library. My goal is to make the data parsing json format, so I'm using the form Unsupported GeoTools. This is the parsingJSON ...
1
vote
1answer
92 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 ...
2
votes
1answer
24 views

Is there a way to enable CSV or JSON output formats for MapServer WFS GetPropertyValue requests?

In a mapserver mapfile, it is possible to setup a variety of output formats for WFS GetFeature requests. However, it doesn't seem possible to do the same for a WFS GetPropertyValue request, which ...
1
vote
1answer
40 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 lang=...
0
votes
1answer
94 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
54 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 ...
6
votes
1answer
970 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
233 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": {"type":"MultiPolygon","...
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?
1
vote
1answer
221 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
34 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
39 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
496 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
25 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: [{"geometry":{"x"...
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
35 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
79 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
136 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
25 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
80 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
55 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....
2
votes
1answer
43 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" href="http://cdn.leafletjs....
1
vote
1answer
93 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
138 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 ...