Questions tagged [geojson]

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

Filter by
Sorted by
Tagged with
4
votes
1answer
245 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
240 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
17 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
59 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
374 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
1answer
231 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 ...
1
vote
1answer
189 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
141 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
178 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
229 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 ...
1
vote
1answer
45 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
1answer
372 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 ...
1
vote
0answers
27 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
1answer
122 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
381 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
82 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 ...
6
votes
0answers
441 views

Why does QGIS 3.4 and higher 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
121 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
38 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
144 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
132 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
722 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
117 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
198 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
898 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
37 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
155 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
37 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 = ...
1
vote
0answers
482 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
158 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(...
2
votes
1answer
262 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
36 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 ...
3
votes
1answer
942 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
165 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
171 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 ...
1
vote
1answer
43 views

FeatureJSON is not setting bounds

I am using FeatureJSON from geotools to read in a GeoJson file containing a FeatureCollection and convert it to a SimpleFeatureSource. It all works fine except the feature bounds are null, so if I try ...
4
votes
3answers
2k views

Converting large GeoJSON to shapefile?

I have recently downloaded a building footprint GeoJSON file from Microsoft Bing Maps. The file I downloaded was for the entirety of Texas, and is of approximately 2.2 GB file size. They do not ...
2
votes
1answer
209 views

Dynamically set mapview based on the overlay feature of L.geoJson coordinates in Leaflet

I want to dynamically setView of the map based on the overlay feature which I extract from L.geoJson in Leaflet. I tried using fitBounds, which doesn't seem to work. Here is the code snippet: var ...
-1
votes
1answer
147 views

Convert esriGeometryPolyline to GeoJSON

I would like to extract the "Existing KinderMorgan Trans Mtn Tar Sands Pipeline" from this ArcGIS REST service and convert it to GeoJSON. Ogrinfo can't read the JSON (it's not standard ESRI JSON): ...
2
votes
1answer
94 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 ...
4
votes
3answers
307 views

Find out ESRI REST URL for web map which is hiding it

I would like to extract the pipeline geometries from https://www.arcgis.com/home/webmap/viewer.html?webmap=a00c3b5cee4e4fe0b238b5e05ed80204 It shows the existing gas & oil pipelines crossing ...
1
vote
0answers
118 views

Why does node Circle to Polygon module returns oval/ellipse instead of a shape like circle?

I'm using npm package circle-to-polygon and I wrote following code to return a polygon which is approximately like a circle. const circleToPolygon = require('circle-to-polygon'); let coordinates = [...
2
votes
1answer
136 views

Leaflet GeoJSON Map Buffering

I am using Leaflet with Custom GeoJSON Layers to display my map. I noticed that the map off-screen is only loaded after releasing the mouse button during a drag. Hopefully, this demo makes it more ...
2
votes
0answers
54 views

How to draw border for a group of division in a GeoJSON file in python?

I use following code to read a geoJSON file and which is working. GeoJSONN file contains multiple divisions of the map and each of them have a group name in the file. I could add gray border to ...
-2
votes
1answer
289 views

Leaflet map with toggleable overlays - reading in data from a PostgreSQL database

I have a Leaflet map with several sets of points read in from a PostgreSQL database. I would like to make each of these collections an overlay that I can toggle on and off. Without having overlays I ...
1
vote
0answers
42 views

Multiline String information ordered? [closed]

I am relatively new to this whole geotopic. I have to deal with the following scenario: From a userperspective, I do three steps I draw a straight line across a riverbed I get a resultset from the ...
1
vote
1answer
562 views

How can I show a popup in a map, using Leaflet?

How can I show a popup in a map, using Leaflet, loading the markers from an GeoJSON external file? function onEachFeature(feature, layer) { if (feature.properties && feature.properties....
2
votes
2answers
179 views

Loading a geojson file with OL3

I am using OL3 to load a geojson layer with points on a map. Although the layer is loaded and it can be seen, when I zoom out the position of the points change on the map. I thought this would related ...
0
votes
0answers
91 views

How get attributes from GeoJSON

How can i get only attributes names from GeoJSON? ogrinfo gets attributes with others info: ogrinfo -al -so rw.geojson Output is: ERROR 4: GeoJSON Driver doesn't support update. Had to open ...