-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while converting json to features for ST_Buffer #44
Comments
FYI, the error pasted here and the one that you posted on gis.stackexchange (json-to-features-not-working-while-performing-st-buffer) are not the same. It looks like you've tried to run the JSON to Features tool using both the Enclosed and Unenclosed JSON options. Try to stay away from the Enclosed option. Can you add in the entire create statement for |
Thank you for your valuable input. I took into account all your suggestions but I am not able to get the desired result when I want to create a buffer for 1000's of points. 1) SO for the table, as you had suggested create external table enodebuffer1 (EnodeBStatus string,shape binary) ROW FORMAT SERDE 'com.esri.hadoop.hive.serde.JsonSerde' STORED AS INPUTFORMAT 'com.esri.json.hadoop.UnenclosedJsonInputFormat' OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat';
Insert into table enodebuffer1 select enodeaggregate.EnodeBStatus,ST_Buffer(enodeaggregate.shape,1000)from enodeaggregate;
Your help is highy appreciated Thanks |
How many rows are there? |
there are 30230 rows |
@azhigimont thoughts? it looks like it's trying to extract |
Yes, because when I tried to do it with 100 rows, I was able to see the results on ArcMAP but it showed me a warning message that spatial reference was missing and cannot be projected. That's the reason I tried using enclosed json option. |
Hi,
My objective is to create a buffer of 1000 m for enode. I am able to obtain a json using the copy from HDFS tool. But I am unable to create a feature class using json to features tool.
I used the following query
I am able to obtain the count and retrieve the columns on hive. Copy from HDFS to obtain a json file also works successfully.
When I convert json to features using the git hub tool I get
Failed to execute json to features and I get the following description for the error as shown in the image below.
I tried the same query creating a table using multiple colums with the shape column but I get the same error as shown above.
Any info would be greatly appreciated
Thanks
The text was updated successfully, but these errors were encountered: