project-open-data / esri2open Goto Github PK
View Code? Open in Web Editor NEWthis repo is an ESRI toolbox and tool(s) that export ESRI Feature Classes to open data formats, CSV, JSON, and GeoJSON
License: MIT License
this repo is an ESRI toolbox and tool(s) that export ESRI Feature Classes to open data formats, CSV, JSON, and GeoJSON
License: MIT License
Currently, the OID
field of a feature class is used when converting the feature class to a GeoJSON. However, most often this unique ID doesn't have any meaning and it would be great to choose the field that will become the id for features in GeoJSON. When doing plotting and map bindings with such Python libraries as folium
and vincent
, having a meaningful id is required.
I solve this for my needs by editing the line
https://github.com/project-open-data/esri2open/blob/master/Install/esri2open/parseRow.py#L16
with the field name I want to have as id in the output GeoJSON.
replaced
self.oid=getOID(self.fields)
with
self.oid='FIELD_NAME'
When using the merge tool, these attributes do not seem to be coming with in the conversion process.
Geometry, Shape_Area, Shape_Length
It might be worth discussing a more-permissive license the main issue is:
Do we want people writing proprietary software to be able to take this code, use it to implement export to GeoJSON and sell it with proprietary license?
I'd say yes, this would be a good thing, we'd want it as widely used as possible meaning a MIT license or a BSD Three clause might be a better fit.
Minor issue: The file name of the license is spelled incorrectly.
GitHub and Mapbox make it easier to symbolize "pin drop" maps using GeoJSON with the simplestyle spec of additional feature properties.
Would this be a feature to include in this project? If so, I'd be happy to start working on it. I'm not sure what is the best way to implement it in a ArcGIS tool but would give it a shot.
Thanks!
Hi.
Is there any way to add the topojson option "-p" (-- properties) from the toolbox?
Thanks
An ESRI Feature class defines a "Date" Field as a DateTime field. When converting a datetime to geojson, this tool only outputs the "Date" portion of the field.
please consider adding https://github.com/mbostock/topojson as an output format
It worked in 10.2, but in ArcMap 10.3, I cannot add layers directly from the map. This means I have to export all my layers first - as I often use definition queries and turn fields off - then convert the exported files. Any ideas? It seems like it would be something simple.
One or more of the dropped items were invalid and will not be added to the control.
Anyone interested in writing an output which would be a mongoDB dump or similar? this might be a useful (and slightly challenging) task. right now mongoDB doesn't support multi features (on simple point, line and polygons) so the code would need to write out (perhaps) duplicate rows for multi features with new ids. also, for inserting into mongo, a single geojson file won't actually work, but a geojson file per feature kind of thing (not exactly sure, but something like that).
anyone interested in taking a crack at it?
at the moment it assumes there is only an x and y, getting a z or m should't be a problem really.
Would it be easier to use python's built in CSV and JSON libraries?
I made a similar library and managed to save a lot of logic by doing that.
This is half an issue and half me trying to figure out if paranoid I missed some downside of using the json library.
Would be nice to write the projection and datum to the GeoJSON file (EPSG code would be sufficient)
[Arcmap 10.1] When using the scripts from the toolbox messages from the tools (well I'm assuming it's all of them) are not passed back up to Arcmap. For example here is the message from the "ESRI to Open" tool, which runs "successfully" but creates no output:
Executing: esri2open T:\ENV.301\Bear_Incidents.gdb\Summer_2013 T:\ENV.301\dev-2013\geojson\bear_incidents_2013-Jun-14.geojson Default
Start Time: Thu Jun 27 10:22:30 2013
Running script esri2open...
Completed script esri2open...
Succeeded at Thu Jun 27 10:22:31 2013 (Elapsed Time: 1.00 seconds)
However running the script directly from a python enabled command prompt shows it failed to understand the input feature class:
D:\GitHub\esri2open>single.py t:\ENV.301\Bear_Incidents.gdb\Summer_2013 t:\env.301\dev-2013\geojson\test.geoson
I don't understand the format
the toolbox (.tbx) was initially committed with a hard code path in it, so it doesn't connect w/ the python script on push. i need to fix this. and re push the .tbx file.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.