I write software for a living. I also occasionally write software for fun. I also do other things.
jasonbot / geojson-madness Goto Github PK
View Code? Open in Web Editor NEWYet Another Set of GeoJSON ↔ ArcGIS Bridge Routines in Python
Yet Another Set of GeoJSON ↔ ArcGIS Bridge Routines in Python
I write software for a living. I also occasionally write software for fun. I also do other things.
Line 26 is pt = in_geometryeometry.getPart(0)
But should be pt = in_geometry.getPart(0)
Otherwise, works great, thanks for the tools!
I'm using ARCGis 10.2.1 and I experienced an error by importing this JSON file : https://www.dropbox.com/s/xs4wr0j5o1fuq59/traffic.json?dl=0
In the write_features
method of the geojson_in.py
file, the string returns by geojson_to_geometry
to geometry method equals<generator object <genexpr> at 0x14F5DEB8>
.
The JSON only contains LineString elements, I fixed the issue by rewriting the case for LineString as following :
wktLine = "LINESTRING ("
for seg in coordinates:
for point in seg:
wktLine += str(point) + " "
wktLine += ","
wktLine = wktLine[:-1]
wktLine += ")"
Both join
and format
methods returns string
. Do you have any idea why is this happening ?
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.