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

learn more… | top users | synonyms

0
votes
0answers
10 views

Geoserver not recognizing jsonb attribute in SQL view of PostGIS db

I have an instance of Geoserver 2.8.2 running and a PostGIS database. I am attempting to create a FeatureType based on an SQL view of the following table (viewed through psql \d): ...
1
vote
0answers
12 views

404 config.json error for server deployment of ArcGIS Web AppBuilder Application?

I am receving a 404 error that my config.json cannot be found, I have added the JSON mime type to my IIS configuration at the site and server levels and have restarted IIS. This error appears as so ...
0
votes
0answers
11 views

Login to private web app or web map with hard-coded credentials

I'm trying to log in to EITHER a private web map or web app with hard-coded credentials (or getting a token). Currently I have the code to get a token for a web app, through providing client_id and ...
1
vote
2answers
35 views

How to force ogr to treat JSON mapserver query as “Multiline” instead of “Line” geometry type?

I have a script that obtains feature data from a JSON output of an ArcGIS REST MapServer. At present my script treats the JSON data as a "LineString" Geometry type, but, the JSON data is in fact a "...
8
votes
4answers
5k views

Convert Sql Server Spatial data to GeoJSON & plot on map

I have a sql server table with Geo spatial data. An example of row would be (with Column names): type: streetline code: 231001 geog: 0xE6100000011 ........ Centroid 0xE61000000C....... geom: ...
0
votes
1answer
134 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
1answer
33 views

How to set layers, scale, center automatically and default zoom based on JSON file config?

I want to know how i can init my OpenLayer 3 Configuring the Viewer by json file ( layers , scale , center and default zoom ) at the start of my application from a JSON configuration file ? My app....
1
vote
1answer
22 views

Setting names for attributes in properties in json returned by postgresql

I am trying to make a webmapping app that uses on the server side node.js and postgresql(PostGIS). what I am doing is retrieving data from the Postgresql database using node.js and sending the result ...
0
votes
1answer
11 views

Geoserver buffer json input format

I am trying to execute a buffer operation using geoserver 2.8.3, but i'd rather use json than GML to send this request. Is it possible to perform an Execute operation this way? The describe process ...
0
votes
0answers
17 views

ArcGIS Online - getting token through JSON

I'm new to using JSON and think I vaguely understand it. This may well be more of a Javascript question than a GIS-related one. Basically, I've got a map on ArcGIS Online and I'm looking at putting ...
3
votes
1answer
756 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? ...
1
vote
1answer
37 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. ...
2
votes
1answer
207 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
1answer
56 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/...
2
votes
1answer
327 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
0answers
32 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 ...
0
votes
1answer
130 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
40 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
75 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
139 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 : ...
0
votes
1answer
25 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
218 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
69 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
45 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
23 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
64 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
76 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
60 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
130 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
2answers
65 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
31 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
89 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
42 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
90 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
96 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
28 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
44 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
136 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
62 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
976 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
234 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
281 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
42 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
41 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
504 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
28 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 ...