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 [geojson]

GeoJSON is a geospatial data interchange format based on JavaScript Object Notation (JSON)

0
votes
0answers
38 views

Comparing speed of Spatial Analysis with GeoJSON versus shapefile in QGIS?

I have a large dataset that I want to perform spatial analysis on in QGIS. Specifically, I want to perform a polygon intersection analysis between two polygon layers. Given the size of the dataset ...
1
vote
1answer
33 views

How to obtain percentiles of classes in classified image in Google Earth Engine?

https://code.earthengine.google.com/e430e2a79aecb65e3efbce23779a0abc I have written this code for supervised classification using the cart classifier. Now I want to extract the no. of pixels in each ...
2
votes
2answers
122 views

Import local GeoJSON file into Leaflet

I just used a leaflet. From the geoJSON demo page I saw if you want to include data you have to use <script src="data/us-states.geojson"></script> and if you open the files looks like ...
0
votes
0answers
10 views

Error with limitto when importing OSM data into PostGIS with imposm

I tried to run PostGIS and imposm in docker. However when I want to import OSM data from a planet.osm file with imposm I run into the error that it does not recognize the GeoJSON file I reference with ...
0
votes
1answer
29 views

Why am I unable to display attribute data in map?

In the JSON file I have an attribute called FairValue which belongs to the polygon feature class. Similarly there is another attribute called Survey_Num. I want to display both these attributes on ...
0
votes
1answer
17 views

Quick Import FME Reader Gallery Not Populated with FDS (ArcGIS 10.5 Adv Licence)

I wanted to import GeoJSON files, but after installing the Background GP and Data Interop packages, I find that the FME Gallery contains only GML and WFS formats. This is with both ArcGIS 10.4 and ...
4
votes
1answer
63 views

Command line tool to repair self-intersection in GeoJSON

I am working with this file. Kansas seems to have a self intersection: TopologyException: Input geom 0 is invalid: Self-intersection at or near point -98.918045000000006 37.379078 at -98....
0
votes
0answers
19 views

Combine GeoJSON files into bigger shapes with external JSON to merge on

I have a shapefile of New York ZCTAs here I also have these neighborhood definitions that map zip codes to New York City Boroughs. I'd like to take my "all of New York zip code" data and: Clump up ...
0
votes
0answers
19 views

How do I call point marker icons from geojson data in leaflet

I am trying to make a map for school with unique icons for each point which I have stored in my geoJSON under "iconURL" as .png. I don't exactly know how to add them to my map. The following code ...
0
votes
0answers
12 views

How can GeoServer transform a 'no RHR layer' into a RHR layer?

We are using GeoServer 2.11.2 and Mapbox. We have many layers that do not follow the rule of the right hand and we need to serve them to other application. The problem is that we have to show in a ...
-1
votes
1answer
25 views

Exclude specific GeoJSON data by polygon [closed]

Given geospatial data as GeoJSON, how can I filter this data to exclude geometries within a specified polygon? I need this to work in JavaScript. Example: function filter(featureCollection, ...
1
vote
1answer
46 views

Masking GeoTIFF file after GeoJSON through rasterio - “Input shapes do not overlap raster”

So my intention is quite simple: I have a 4-Band TIFF file I want to crop after a polygon shape. However, I'm getting the following two exceptions WindowError: windows do not intersect ValueError: ...
0
votes
0answers
19 views

Searching series points inside polygons in mongoDB

I have to check performance of mongodb queries. I have two documents. One of them contains 600 polygons. The second contains 10,000 randomly generated points. Both are in two separate collections (...
0
votes
0answers
25 views

Leaflet.js geoJSON popup stopped working?

I have been developing a map that consumes geojson data and places markers on a map and creates popups. I have had this functionality working, but recently it has stopped working - I get the error "...
0
votes
1answer
49 views

Openlayers displaying local pbf at wrong location

Need help for displaying of local pbf file, it does show tiles but at wrong location and when zoom-in the whole feature set split into 4 locations. First Openlayers v 4.6.5 is not displaying local ...
0
votes
0answers
42 views

OpenLayers 5: Re-projecting GeoJSON from EPSG:25832 to EPSG.4326

I'm trying to reproject drawn features in a ol.view in EPSG: 25832 to EPSG:4326 (WGS: 84), but I cannot seem to crack the code. Code sample: proj4.defs('EPSG:25832', '+proj=utm +zone=32 +ellps=...
1
vote
1answer
39 views

Leaflet geojson merge attributes

I need to merge the attributes on a leaflet geojson layer and another geojson based on a common field. I have tried the following code, which does put the keys in the layer but all values are ...
2
votes
1answer
46 views

mbtiles-extracts does not work with my geojson

I am working with the mbtiles-extracts library: https://github.com/mapbox/mbtiles-extracts. Given an mbtiles file and a geojson, the library extracts mbtiles cutouts of the polygons in the geojson. ...
0
votes
0answers
44 views

Seeking equivalent of Google Maps API 'title' for polygons?

I am using Django, GoogleMaps API, and GeoJSON to draw polygons from the spatial database to map. I wanted to add a title so that when you hover over/click on (don't care which) the name or ID of the ...
1
vote
0answers
36 views

What is the best method to serve large GeoJSON data in OpenLayers?

I would like to know about the best method to serve large GeoJSON data in OpenLayers. I am using extent-based loading and clearing the source when it is in out of extent. But still it is hanging while ...
0
votes
1answer
17 views

Reproducing Difference operation from QGIS in pure Python?

I have two GeoJSON files and I want to make the difference of those two layers, QGIS does it really well, but I need to do it in pure Python 2.7. Anyone know how to do it ?
0
votes
0answers
34 views

Move one Vector layer on another Vector layer in QGIS

i have two vector layers first one have wrong placed and second is correct. I want to move first layer on another layer. GeoJson files https://drive.google.com/open?id=...
0
votes
1answer
39 views

turf.js point never found inside or within GeoJSON features loop

I have a GeoJSON http://radikal.com.mx/distrito.json and all I am trying to do is find if a turf point that has a longitude and latitude is inside or within that GeoJSON. No matter what point I use I ...
0
votes
0answers
16 views

Merge node results into one MultilineString

I'm trying to generate MultiLineStrings from street data nodes. Right now my workflow is as follows: I run something like the following through the Overpass Api, to get all the nodes: [out:json][...
0
votes
0answers
8 views

Overpass API call for several different streets?

I need to generate a GeoJSON file for Mapbox from a list of streetnames. How would I do call with like 500 Streets? What I'm doing right now is something like this: [out:json][timeout:25]; {{...
0
votes
1answer
53 views

GeoJSON load Properly in QGIS but not in GeoJSON viewer

I have a GeoJSON file. It loads properly in QGIS but not in JSON viewer (http://geojson.io). I have select EPSG:4326 as the CRS. When I open the GeoJSON file in notepad++ and check the coordinates ...
1
vote
2answers
56 views

Converting vector points to geo coordinate points

So I have an SVG file that has paths for a floor in a building. I want to convert these polygons into something like GeoJSON so that I can draw them in Mapbox. I already know the geo coordinates and ...
1
vote
1answer
35 views

Using Microsoft Footprint GeoJSON for spatial analysis with GDAL?

I am trying to use the Microsoft Footprint data (available as GeoJSON) for spatial analysis to roughly identify buildings over a certain size within a specific range of major railroads and highways. I ...
2
votes
0answers
75 views

Why does QGIS 3.4.0 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 ...
2
votes
1answer
36 views

How to Import the geometry/feature collection which is in GeoJSON format into Google Earth Engine?

I have a GeoJSON file. I have opened it in Sublime Text Editor How can I import it in Google Earth Engine?
1
vote
1answer
18 views

Error when creating seach filter from geojson

I tried to read geojson object from .geojson and build search filter rather than set a static geojson_geometry variable. However, it did not work as it used to with the static variable. Win7 pro, Py 2....
0
votes
1answer
28 views

ogr2ogr import fails with “ERROR 1: GeoJSON object too complex”

I'm trying to import a large (8.8GB) GeoJSON file to a Postgres 9.6 database with the following command: ogr2ogr -f "PostgreSQL" -nln final_diffs PG:"host=localhost dbname=inspire user=me" diffs....
1
vote
1answer
26 views

GeoJSON data is not displaying, while a sample GeoJSON file displays Point data perfectly fine

I am trying to display some point data on a map but my GeoJSON does not appear to be able to display correctly. I have an example GeoJSON whose formatting looks somewhat different and it displays as ...
1
vote
1answer
28 views

Create Featurecollection from GeoJSON containing list of features

I have a GeoJSON which is a list of Polygon and MultiPolygon features, one at each line. Each feature takes the following form: {"geometry": {"type": "MultiPolygon", "coordinates": [[[[-61.686668, 17....
0
votes
1answer
16 views

How to load geojson features outside view with Mapbox GL?

I am trying to load all features from an imported geoJSON. I want to do so because I need some propeties in order to create a list of all elements. But when trying to access them it looks like I can ...
1
vote
1answer
31 views

Openlayers geojson projection issue

I have a basic geojson source, which is { "type": "FeatureCollection", "features": [ { "type": "Feature", "id": "30cde2b6-767d-426d-8f41-c6b0fad78343", "geometry": { ...
0
votes
0answers
40 views

Data Source (s) for names and polygon shapes for the world [duplicate]

I am looking to find out where I can ideally get every country, district, city, town, postcode in the form of polygons. Is there a central place for this? What are the licences for using the data?
0
votes
1answer
24 views

Set border width and color in Mapbox GL

I'm working on an application based on Mapbox GL, I need to give to the user the opportunity to set the width and the color of the borders of polygons but I can't find the right GeoJSON proprieties to ...
1
vote
0answers
24 views

How to add a URL as a QGIS Favorite in browser

I have GeoJSON/TopoJSON data stored in the cloud (on my S3 bucket). Currently I have to instruct users to use the entire URL to add a JSON file to a project. I would like to save the main portion ...
2
votes
1answer
88 views

Unicode encoding problem in ogo2ogr GeoJSON export from PostGIS

I have few tables those have some unicode value of different language. When I am trying to export the data from PostGIS to GeoJSON using ogr2ogr the returned GeoJSON showing wrong unicode language ...
3
votes
1answer
32 views

Making UPDATE for coordinate does not return the same value

Being totally new with PostGIS, I am trying to UPDATE one of my column on my table. The column itself is called 'center_point' with type of GEOGRAPHY(Point,4326) UPDATE cities SET center_point = ...
0
votes
0answers
8 views

Linking a GeoPDF in Acrobat to iOS compass

I'm trying to link a GeoPDF in Acrobat to iOS compass. Is this possible? How best to do this?
0
votes
0answers
75 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
21 views

Display the data layer to info windows taken from GeoJSON

I have a problem for displaying data to info windows on the Google Maps Data layer. Here I use GeoJSON to load data. can anyone help me? var map; function initMap() { map = new google.maps.Map(...
0
votes
0answers
26 views

Edit GeoJSON file: adding countries

I'm using leaflet in R to create an interactive map. I have this map although it has only the United Kingdom, I would like to have the UK: Nothern Ireland and the UK: Great Britain. I would like to ...
2
votes
0answers
94 views

GeoJSON to Leaflet map using Django template

I have a view that returns this GeoJSON data {"type": "FeatureCollection", "features": [{"type": "Feature", "geometry": {"type": "Polygon", "coordinates": [[[-74.6739518440393, 40.7747050657312], [-...
1
vote
0answers
24 views

Pros and Cons on loading vector data from ESRI Shapefile and GeoServer using OpenLayers 5 [closed]

I am developing a web map application to show the vector data on top of OpenStreetMap using the open source technologies such as OpenLayers v5.2.0, but am a bit confused to take a decision in what ...
2
votes
1answer
115 views

Convert list of Java objects with JTS geom to GeoJson

I have a list of Java POJOs that all have a JTS geometry associated with them (Point) - a list of POIs, basically. I want to output them as GeoJson (FeatureCollection, Feature etc.) jackson-...
3
votes
1answer
68 views

Including images in GeoJSON

Is there a correct way of including links to images within geoJSON? This is the FeatureCollection I have for an object on my site: { "type": "FeatureCollection", "features": [ { "id": ...
1
vote
0answers
53 views

Coordinates to Lat/Long Conversion

I'm trying to convert a GeoJSON Coordinates Point to latitude and longitude format, but I don't know exactly which is the format they have or which is the coordinate system they are expressed in. I ...