Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [json]

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

0
votes
0answers
10 views

Creating static, custom styled high resolution map for free [closed]

I am looking for a possibility to generate a map as described in the title. Basically, I want to create a wallpaper for my apartment, so it is a one-time thing. I have desired style created in JSON ...
0
votes
0answers
11 views

GeoServer - Use JSON properties in SLD

Is there currently any way to reference a JSON Property of a Postgre DataStore in SLD? After researching and playing with GeoServer, SLD and even the MongoDB plugin all day, the only thing I ...
0
votes
0answers
21 views

Leaflet routing machine - get route JSON response

I created a simple page based on Leaflet routing machine tutorial. I would like to process obtained route with my API. How could I to get full JSON response with route?
0
votes
0answers
58 views

Getting data from JSON data API?

As asked in previous question: Displaying icon name next to icon using OpenLayers? , now I need to change data source to the JSON API data, and used jquery plugin bypass CORS (http://www.ajax-cross-...
4
votes
1answer
32 views

ArcObjects: Convert Feature to JSON

I need to get the JSON from a feature using ArcObjects. According to I tried to following code, but it does not work: var jsonWriter = new JSONWriterClass(); jsonWriter.WriteToString(); var ...
0
votes
0answers
63 views

Json To Features ERROR 001558: Error parsing json file. The workspace is not connected

I am trying to convert a JSON file into a feature. My code was working fine until today and now I am getting the following error - ExecuteError: ERROR 001558: Error parsing json file '<filepath>'...
0
votes
1answer
34 views

GDAL/BUILD can't get result files Geojson to mbtiles

i try to 2.55gb of GeoJson (maybe 200 over layers in one file) to vector Mbtiles, but fail to create .mbtiles. so i try convert each layers(.shp) to geojson(over 200 files), then create each ....
2
votes
1answer
233 views

How do I write a GeoPandas dataframe into a single file (preferably JSON or GeoPackage)?

I'm new to GIS and having a basic beginner problem. I've got data in the form of a geopackage .gpkg from GADM.org. I can read in and use the data without problem using Geopandas (via built-in Fiona)....
0
votes
0answers
38 views

How to make a basemap appear in a Leaflet map?

I've created a Leaflet map with an ESRI Gray basemap and polygons of European countries taht is dispayed on button click. The basemap is not visible when I open the map, but if I drag on the map it ...
2
votes
1answer
43 views

Error on showing .js as spatial object with JSON.parse()

I have a Leaflet map exported by qgis2web plugin. The geodata is stored as (Geo-)JSON-objects inside a variable saved as .js-file. I have an attribute field ("bildpfad") with comma-separated pathes to ...
0
votes
1answer
23 views

QGIS - Import transposed points coordinates/nodes as polygons

I'm attempting to streamline the process of importing polygons (19 in this case) from a website into QGIS. I extracted the JSON using chrome's dev tools and converted it into CSV spreadsheet here. The ...
0
votes
1answer
59 views

Display markers and autohide them after few seconds using data of nested JSON object from an API in Leaflet Map

I'm trying to load 4 markers at a time and timeout should be 5 secs for them and then new markers should come up and old one's should be hidden automatically. I have written this code and unable to ...
0
votes
1answer
44 views

How to append geojson file using featureselection

For example, I have a file as shown below: { "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": {}, "geometry": { "type": "...
1
vote
0answers
192 views

Google Maps API - Multiple Polygons

I'll be generating my JSON file using PHP and SQL for displaying around 200 polygons, on a map. I've managed to test the concept with two polygons but still struggling. I'm not experienced with JS or ...
0
votes
1answer
142 views

GeoServer & QGIS - Using GeoJSON in a WFS request

I'm trying to load a WFS Layer in QGIS. I requst the data from my GeoServer and would like to import the data as GeoJSON. I can export my data in the layer preview section as GeoJSON. Everything ...
0
votes
2answers
53 views

Error converting Json file to a feature class

I want to convert some json data being returned from a request to a feature class, but I keep getting a RuntimeError: Object: Error in executing tool. I made a test gdb in a folder 'C:/Workspace/...
0
votes
0answers
45 views

Adding a new feature to GeoJSON

I have a GeoJSON file that I want to insert a new feature for example: "New": {"one":1,"two":2,"three":3} I inserted like this : { "type": "Feature" , "New":{"one":1,"two":2,"three":3}, "geometry":...
0
votes
0answers
111 views

Using updated wikimapia API to export data

My goal is to get a json export from Wikimapia. I'm trying to use their updated API but I always get no objects returned no matter what coordintes or categories I specify. Here is my example query (?...
0
votes
0answers
26 views

Display MODIS Thermal points in a specific area

On the map there are points of possible fires. And what to do to the points were in a certain area. By editing a JSON file, this is possible, and how do you do it? Could you show on the example of a ...
0
votes
1answer
360 views

How to Zoom Google Maps Javascript API to level 25

Cannot Zoom Google Maps Javascript API after 1:564 (zoomlevel: 20) in Mapstore. Can anyone help me to solve this cause my layer keeps on zooming but the map is stuck at zoom 20, I want to zoom it to ...
0
votes
0answers
33 views

Filter on array. Tabletop to leaflet map, points.

Im looking at tabletop to leaflet (tabletop to leaflet). I want my latlon points in spreadsheet to appear on the map. The spreadsheet have a column "city", and i want individual points for each "city" ...
0
votes
0answers
102 views

Adding Unique Properties to Each Feature in a Large GeoJson

I previously asked Add properties to large GeoJSON but that was rather unclear and I learned something from people's feedback. I went back to the drawing board and got even more confused. I am trying ...
0
votes
1answer
336 views

Add properties to large GeoJSON [closed]

I have a geojson of multipolygons like so { "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": { "ADMIN": "Aruba", "ISO_A3": "ABW" ...
0
votes
0answers
63 views

Has anyone used ESRI JSON data with json-schema validation?

Passing data between web services often means passing JSON data. A standard for evaluating JSON data is under development at json-schema.org. I would like to incorporate ESRI JSON data in my schema ...
0
votes
0answers
14 views

OSMIDs don't match despite the same extent

Upon joining two fields in ArcMap by their OSMIDs ~90% of my data has gone missing. Field 1 contains the OSMIDs of buildings in a metropolitan area. This dataset has been extracted from a feature ...
3
votes
1answer
138 views

esriRequest json response to feature layer

I am using JavaScript 4.7 and I am able to retrieve json using esriRequest from our ArcGIS server. However, I have difficulty in showing this data on the map layer. the call map.addLayer(...
0
votes
1answer
563 views

Python and Google Maps API place search: Read csv read row by row and loop fuction

I want to automate a task in Python with the Google API Search Place. Right now, my code with Google Maps API is returning places 'hospital' for one set of geographic coordinates. But, I have a CSV ...
2
votes
1answer
84 views

geojson file not interpreted properly (wrong format?)

My problem: I am using a web application that uses geojson file to define point data - here is the application: https://smartcville.com/racks.html I would like to use the skeleton of the ...
0
votes
2answers
236 views

How to get JSON data from cql_filter WMS layer with OpenLayers 4

I am trying to get the JSON feature data which I have filtered using cql_filter. <script> var wmsSource = new ol.source.TileWMS({ url: 'http://localhost:9090/geoserver/ilfs/wms', ...
1
vote
1answer
449 views

Create a collection of geometries in JTS

I'd like to create a program that a user inputs coordinates as points or lines and gets a geojson file. The problem is I don't know how to store all the geometries in one file. For example I want to ...
0
votes
0answers
316 views

Why am I getting an error when using multiple logical filters for WFS?

I am using openlayers to query a geoserver WFS and am trying to use ol.format.filter.and to include multiple logical filters: var featureRequest = new ol.format.WFS().writeGetFeature({ ...
1
vote
1answer
410 views

Change/filter markers from custom check boxes

So I'm working on a map using leaflet and I want to use custom check boxes, not the default controls. I'm returning the correct json information when I check the boxes. I'm just not sure how to swap ...
0
votes
0answers
184 views

arcpy.JSONToFeatures_conversion and json module conflict

I'm using arcpy.JSONToFeatures_conversion() to batch convert some json files to features in a gdb. Python kept running into errors (either ERROR 001558: Error parsing json file, or ERROR 999998). This ...
2
votes
2answers
306 views

Joining GeoJSON and JSON at client end for Choropleth Map in Leaflet

This is not a duplicate of Merging/Joining GeoJSON and JSON? because I need to join on client side. I want to develop a choropleth map. I am using the same tutorial of Leaflet. I am also using the ...
1
vote
1answer
385 views

Reading geojson into Leaflet results in error?

I'm trying to read a geojson file into leaflet. Everything works out when I copy the text from the geojson file and paste it into var data = { } So I think the file should be ok for leaflet. But I ...
1
vote
1answer
1k views

How to open REST/JSON service in QGIS?

As the title states I'm trying to open a REST/JSON service in QGIS, but without luck so far. Now I'm wondering if this kind of service is even possible to open in QGIS with current, existing tools. I'...
1
vote
0answers
2k views

Google Geocoding API returns “OVER_QUERY_LIMIT” for some addresses, seemingly at random

I'm using a Python script to send a list of addresses to the Google Geocoding API and parse the JSON results to give me a text list of coordinates. My problem is: For some addresses in the list, the ...
2
votes
2answers
128 views

Remove countries from JSON file

I have this file nuts0.json that I would like to change by removing some countries like Iceland. To do this, I used the method I found in this post. Then I coverted the GeoJSON file to TopoJSON using ...
2
votes
2answers
573 views

How can i load GeoJSON data into SQL Server 2016?

I have this GeoJSON file { "type": "FeatureCollection", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, "features": [ { "type": "Feature", "...
0
votes
0answers
382 views

json file with geo-coordinates

Do you know of a web site that has a json file I can download that contains the following data: City Name or postcode latitude in degrees longitude in degrees How many hours +- the city is from GMT (...
1
vote
1answer
595 views

Extracting data from hgt files?

SRTM3 .hgt files have 1201*1201 DEM elevation data, I extract .hgt files data elevation into file Elevation.json with index.js with the help from this GitHub project. Then I rename Elevation.json ...
6
votes
1answer
348 views

Working with complex JSON attributes in QGIS

I am a developer and have a tool that generates a geojson asset for our data team to work with using the QGIS app. Due to the original source of the data, these features have some attributes that are ...
2
votes
0answers
172 views

Consuming JSON directly to ArcGIS Online

I have a JSON API with a token information that I want to integrate with ArcGIS Online to create a heatmap. It's a news feed API that gives latitude, longitude, country, news in brief and news in ...
2
votes
4answers
387 views

How do I get vector feature data from an OpenStreetMap layer?

I imported the OSM tile layer and can see it visually. But how do I access the actual data of the layer? It's vector data, made of points, lines, and polygons, right? How can I access the feature data ...
1
vote
1answer
285 views

Remove some islands from Europe json file

It's the first time I use a JSON file to create a map of Europe. I downloaded these two files: nuts0.json nuts2.json The first represents the states, while the second represents the regions of each ...
0
votes
0answers
231 views

Print task error 'cannot read property preserveScale of undefined) when converting map to json string

I have the following line of code that is used to convert the map being using on my portal to json: JSON.stringify(pTask._getPrintDefinition(app.map)) This was working perfectly, however yesterday ...
0
votes
0answers
100 views

Converting JSON to GeoJSON to plot data on mapbox

I have data in this format: { "rows": 1, "os": "0", "page": "1", "total": "776", "projects": { "P146936": { "id": "P146936", "projectfinancialtype": "IBRD", "...
1
vote
1answer
312 views

Creating FeatureLayer from JSON data using ArcGIS API for JavaScript 4?

I am trying to create a FeatureLayer from a JSON object that will be fetched from another service. I am not looking for something complicated, just something that works. var layer = new FeatureLayer({...
3
votes
2answers
264 views

Leaflet: Access KML folder name

I have a leaflet map and a kml file. I load the kml file using the plugin: leaflet-omnivore. Now I want to access the <folder> <name>(which is "RegionName"). I need it because I want to ...
2
votes
1answer
721 views

How to query an ArcGIS Feature Service by attribute using Python?

I have an ArcGIS Feature Server and what I have accomplished so far is this: import json, requests url = 'http://hebid.hessen.de/hlbk/hlbk_grundlagen/MapServer/1/query?f=json&returnGeometry=true&...