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
1answer
24 views

Failed to decode JSON inside ee.ImageCollection.map while using ee.ReduceRegion() [closed]

Link to GEE Code I try to use this Function with ee.ImageCollection.map() var Fail = function(Im){ var min = ee.Image(Im.reduceRegion(ee.Reducer.min(),aoi).get('B10').getInfo()) var max = ee.Image(...
0
votes
1answer
21 views

Why is this happening? I show GeoJSON some coordinates with OpenLayers by request Ajax

I want to display a GeoJSON on OpenLayers with a request from Ajax from the database: I store in the geojson variable all the information and I icercated in two ways: 1. Directly from the already ...
2
votes
0answers
37 views

Adding points to map with Leaflet using .forEach function

Trying to add an array of points to a map with a Leaflet with .forEach. I thought this should work, but alas, it does not: var jsonData = [ { "LNG":-75.16472099534634, "LAT":40....
3
votes
1answer
49 views

Using ogr2ogr on Anaconda

I am building a Choropleth map in D3.JS. In order to do that, I have downloaded a map from Eurostat. From the GeoJSON file, I want to extract the country for the visualization, in my case Portugal. ...
0
votes
1answer
35 views

Displaying bounding box polygon from CSV using ArcGIS Desktop?

I have a data file (.csv) with a minimum and maximum longitude and latitude. These 4 fields (roughly a few thousand rows) make up a bounding box. However, I am unsure of how to get this data to be ...
0
votes
0answers
26 views

CAD To GeoJSON after publishing it shows the job failed

I have written the code for CAD to GeoJSON. When I ran ArcMap or ArcCatalog it's working fine, after publishing the code it's giving the error. The code is too long. Can you provide the code ArcGIS ...
0
votes
0answers
23 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 ...
1
vote
0answers
62 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
1answer
96 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-...
3
votes
0answers
203 views

Why does QGIS 3.4 create .tmp file instead of refresh editing layer after saving?

I downloaded QGIS 3.4.0 and try to save edits in .geojson file. I can save new objects, but not edits in attributes. Insted of it, QGIS creates .tmp file with my chаnges into the same folder with ...
4
votes
1answer
44 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
166 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
54 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 ....
3
votes
1answer
982 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)....
2
votes
1answer
63 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
24 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
79 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
75 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
256 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
185 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
102 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/...
1
vote
0answers
198 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
1answer
379 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
55 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
133 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
548 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
78 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
16 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
199 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
660 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
117 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
301 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
579 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
384 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
544 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
235 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
345 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 ...
2
votes
1answer
616 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 ...
2
votes
1answer
2k 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
157 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
763 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
483 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
714 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
416 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
185 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
459 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
318 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
252 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 ...
1
vote
1answer
465 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({...