geojson

免费转geojson

不问归期 提交于 2020-01-27 03:54:06
https://www.bram.us/2012/03/14/convert-esri-shapefile-shp-to-geojson-json/ 安装后在命令行执行 /Library/Frameworks/GDAL.framework/Programs/ogr2ogr -f "GeoJSON" output.json input.shp 来源: CSDN 作者: QQ2856639881 链接: https://blog.csdn.net/QQ2856639881/article/details/103841668

Adding geoJSON feature attribues to mapbox popup

谁说我不能喝 提交于 2020-01-25 11:03:46
问题 I am looking to add a popup with geoJSON attributes to each book store marker on my map. I have used "layer.feature.properties.name" within the marker.bindpopup method, but am getting a return of "undefined". L.mapbox.accessToken = 'jk.eyJ1IjsdkjfhskjdfhksdskdjflWNCJ9.Ov2O5PtskdljfsdR0lq3Q'; var map = L.mapbox.map('map', 'example.kks3kec4') .setView([38.633, -90.319],12); //add cafe, books store, and university geoJSON layers with styling var bookStore = L.mapbox.featureLayer() .loadURL('book

Error de-serializing Geometry with Jackson

人走茶凉 提交于 2020-01-25 07:29:04
问题 I am trying to implement a simple geometry (GIS) controller with PostGIS database in Spring-Boot 2.2.1. When I try to de-serialize my task entity which contains the Point Geometry I am getting error: There was an unexpected error (type=Internal Server Error, status=500). Could not write JSON: org.locationtech.jts.geom.Point cannot be cast to com.vividsolutions.jts.geom.Geometry; nested exception is com.fasterxml.jackson.databind.JsonMappingException: org.locationtech.jts.geom.Point cannot be

How to get geoJSON from spring REST Controller?

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-25 02:09:25
问题 I am developing a GIS application with java(Spring-4.1.5 + Hibernate-4.3.8) and OpenLayers. For this project I use GeoTools-13RC , HibernateSptial-4.3 , jts-1.13 and jackson-2.5 . In this project, I have a layer in client side and in server, I save the features of this layer in a class. I defined the class below: @Entity @Table(name="MyPoint") public class MyPoint { @id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long Id; @Column private String name; @Type(type = "org

How to get geoJSON from spring REST Controller?

巧了我就是萌 提交于 2020-01-25 02:09:08
问题 I am developing a GIS application with java(Spring-4.1.5 + Hibernate-4.3.8) and OpenLayers. For this project I use GeoTools-13RC , HibernateSptial-4.3 , jts-1.13 and jackson-2.5 . In this project, I have a layer in client side and in server, I save the features of this layer in a class. I defined the class below: @Entity @Table(name="MyPoint") public class MyPoint { @id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long Id; @Column private String name; @Type(type = "org

How to combine key values from a json file to a geojson map file?

会有一股神秘感。 提交于 2020-01-24 19:45:24
问题 I'm trying to combine a GeoJSON map file with key values from a JSON file to use for a choropleth map. Here is what the files look like: data1.json { "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": { "STATE": "06", "ZIPCODE": "94601" }, "geometry": { "type": "Polygon", "coordinates": [...] } }, { "type": "Feature", "properties": { "STATE": "06", "ZIPCODE": "94501" }, "geometry": { "type": "Polygon", "coordinates": [...] } } ] } data2.json { "94501": { "crime":

Parse and view geojson with OsmBonusPack

无人久伴 提交于 2020-01-24 14:09:06
问题 I want to parse geojson and view data on osmbonuspack & osmdroid mapview. I used this totorial: https://code.google.com/p/osmbonuspack/wiki/Tutorial_4 IS there any way to parse a geojson file like kml? thanks 回答1: Here is how I created a new overlay using a given GeoJSON file and the link given in question. private void addAdditionalLayer () { String jsonString = null; try { InputStream jsonStream = getAssets().open("myLocations.geojson"); int size = jsonStream.available(); byte[] buffer =

d3 GeoJSON geoCircle ellipse equivalent

元气小坏坏 提交于 2020-01-24 09:13:24
问题 The title pretty much says it all. I'm looking for a convenient way to generate a geoJSON polygon defining an ellipse similar to d3-geo's d3.geoCircle()(); I want to use this GeoJSON ellipse with d3-geo. To clarify with and example, Cesium has this capability with a simple function allowing you to create an ellipse like so: var ellipse = new Cesium.EllipseGeometry({ center : Cesium.Cartesian3.fromDegrees(-75.59777, 40.03883), semiMajorAxis : 500000.0, semiMinorAxis : 300000.0, rotation :

Trouble reading in geojson/json file into R for plotting on map

半腔热情 提交于 2020-01-23 11:35:48
问题 I'm trying to read in a json file which contains polylines into R for plotting in leaflet or ggmap. The file is in the geojson format. The file can be found at: http://datasets.antwerpen.be/v4/gis/statistischesector.json I've tried: library(rgdal) library(jsonlite) library(leaflet) geojson <- readLines("statistischesector.json", warn = FALSE) %>% paste(collapse = "\n") %>% fromJSON(simplifyVector = FALSE) This actually reads in the file but it seems to be in a wrong format for further

Leaflet geoJson layers hidden outside viewport

不打扰是莪最后的温柔 提交于 2020-01-22 03:24:05
问题 I have a leaflet map with a few layers on it. Whenever layers are not in the viewport, they are hidden untill panning has completed: Regular view with layers: Panning right, to show layers outside viewport: Panning stopped: As illustrated above, the layers will first become visible once panning has stopped and mouse(finger) released. I have tried the following, which didn't work var map = L.map('map',{ bounceAtZoomLimits: false, removeOutsideVisibleBounds: false}).setView([40, 0], 2); L