Comments (9)
JSON To Features is expected to work with all of Point, Line, and Polygon.
In fact, Vehicle Trip Discovery with GIS Tools for Hadoop shows an example with Polygon.
from geoprocessing-tools-for-hadoop.
Thanks Randall, I will check that link.
The funny thing is:
I export a Poly-FC with the tool "Feature to JSON" (attached in the post above).
So I would expect that this JSON-file should be a valid input for the tool "JSON to Features". But it throws an error ("sequence size must match size of the row").
from geoprocessing-tools-for-hadoop.
That does not sound right.
@azhigimont
from geoprocessing-tools-for-hadoop.
hmmm... let me see
from geoprocessing-tools-for-hadoop.
Here we go.
The provided file contains fields named SHAPE_Length, SHAPE_Area while the code checks for Shape_Length and Shape_Area (which is the way it's spelled in FGDB). It's easy to fix.
I wonder, where the alternative spelling is coming from?
from geoprocessing-tools-for-hadoop.
Thanks for the Research.
The fGDB and the FC were created with ArcGIS (ArcCatalog) 10.5 and the fieldnames are written SHAPE_Length, SHAPE_Area.
Now I changed the filednames in the JSON and now it works. Thanks for the hint.
from geoprocessing-tools-for-hadoop.
@StefanJaq Thanks, I can see it now. I've installed a quick fix for this issue. Please pull the latest code from the repo & let us know it it works for you!
from geoprocessing-tools-for-hadoop.
Sorry, the quick fix doesn't really solve the issue. I still get the same error ("sequence size must match size of the row") when trying to import the JSON.
The output json-file itself seems now right. SHAPE_Length and SHAPE_Area are spelled in the same manner in the whole file.
from geoprocessing-tools-for-hadoop.
@azhigimont Any idea why it didn't help?
from geoprocessing-tools-for-hadoop.
Related Issues (20)
- how to use this tool ??? HOT 1
- Error using CopyFromHDFS HOT 6
- X when adding Hadoop tools in 10.2.2 HOT 4
- Publishing geoprocessing service HOT 3
- Better Error Messages in the case of Network Issues
- Not able to retrieve DATE values in hive
- Alias in toolbox is missing
- Port Question - Copy from HDFS HOT 3
- Communication via KNOX HOT 2
- I can't use the script tools of geoprocessing-tools-for-hadoop
- tools copy to HDFS Unexpected error : [Errno 10060] HOT 1
- esri hive JSON serde not found HOT 2
- CopyFromHDFS result is empty json
- Brand new- which version of Linux will work best HOT 2
- GP tool for executing mapreduce jobs using HCatalog
- not working in arcmap 10.1 HOT 2
- May "ExportToJSON" choose units ? HOT 2
- FeaturesToJSON chokes on % in attributes HOT 4
- Oozie Workflow Generator Tool - documentation of Execute Workflow tool
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geoprocessing-tools-for-hadoop.