Timeline for How to add attribute table to new shapefile using OGR?
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 15, 2015 at 12:18 | history | edited | david_p | CC BY-SA 3.0 |
deleted 9 characters in body
|
Dec 15, 2015 at 12:02 | comment | added | Saeed | Let us continue this discussion in chat. | |
Dec 15, 2015 at 11:53 | comment | added | Saeed | yes i have arcpy, but i don't know about workflow... | |
Dec 15, 2015 at 11:50 | comment | added | david_p | Can you use arcpy module? And do you that workflow to be automatic? | |
Dec 15, 2015 at 11:47 | comment | added | Saeed | so let me tell you my task. i have a shape file with the two type of name(National park and park in CR) and also a dem file . so i have to first select the type one(National park) and then with the dem file (Zonal Statistics as table) create a .dbf table . so from this table i have to select the park with the highest Range. so after that i should export just this layer(with the highest Range) with all the original attribute. so if you can help about the steps? | |
Dec 15, 2015 at 11:29 | comment | added | david_p | Am I right that you want to export your location one by one to new shapefile? | |
Dec 15, 2015 at 11:28 | comment | added | david_p | You have to make "output_file.shp" as a variable. You cant create the same layer again, thats because varable is necessary. I have made some changes in script above. | |
Dec 15, 2015 at 11:27 | history | edited | david_p | CC BY-SA 3.0 |
added 172 characters in body
|
Dec 15, 2015 at 10:56 | comment | added | Saeed | thanks for your help,but there is problem when i run the script, for the first time it works but when i run it again, i faced with this error:AttributeError:'NoneType'object has no attribute 'CopyLayer', do you know have can i solve this. | |
Dec 15, 2015 at 9:22 | history | answered | david_p | CC BY-SA 3.0 |