LeafletのウェブマップにGeoJSONを追加する2つの方法のデモはこちらです:http://codepen.io/pmckinney/pen/mELyNY<\/P>
<\/P>
また、Leaflet-AJAXプラグインもあることは知っています。<\/P>
そして、シェープファイルやフィーチャクラスをGeoJSONに変換することに興味があるなら、City of PhiladelphiaのArcToolboxをチェックしてください。<\/P>
ArcGIS DesktopのJSON変換ツールの出力がなぜLeafletで動作しないのか知っている人はいますか?ずっとこのことがどうなっているのか気になっていました。<\/P>
I reproed the error you're reporting in ArcGIS Pro 2.2.2 and forwarded on the report to the appropriate team. Sorry for the inconvenience.
Paul Brown, while I can't speak to what's going on with ArcGIS Pro, you could check out the Arc Open Tool to convert shapefiles/feature classes to GeoJSON using ArcGIS Desktop (ArcMap/Catalog). Maybe you can use this tool while you await resolution with the ArcGIS Pro stuff?
That is how Pro created the GEO JSON. Even though it says it is supposed to be WGS84, it is Web Mercator. Ended up projecting the feature class to WGS84 and then telling it to use the original SR. I think this might be a bug or something in Pro.
WGS84 coordinates are always:
180 > X > -180 (longitude)
90 > Y > -90 (latitude).
Your feature collection looks to be mislabeled Web Mercator northings and eastings.
When I export geojson in wgs84 or not using this tool. It is not usable in Leaflet.
The coordinates are not in a format usable by Leaflet. How do I get them to the correct format?
Example:
{ "type" : "FeatureCollection", "crs" : { "type" : "name", "properties" : { "name" : "EPSG:4326" } }, "features" : [ { "type" : "Feature", "id" : 1, "geometry" : { "type" : "Polygon", "coordinates" : [ [ [ -10915535.083699999, 3895736.6819000021 ], [ -10915557.3475, 3895736.6819000021
output from ArcMap's 'Features to JSON' tool won't work because its not GeoJSON, its Esri's own Geoservices JSON.
http://desktop.arcgis.com/en/arcmap/10.3/tools/conversion-toolbox/features-to-json.htm
in ArcGIS Pro, we've added an optional parameter to the tool for generating GeoJSON
http://pro.arcgis.com/en/pro-app/tool-reference/conversion/features-to-json.htm
ArcGIS REST API - Feature JSON documentation
http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Feature_object/02r3000000n8000000/
GeoJSON and Esri JSON side by side
example of geojson · GitHub
example of geoservices json · GitHub
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.