Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have file shape format and it has too many lines .but i know only the coordinate of this polygon,but i do not know coordinate of lines.could i write python code for exporting all coordinates (lines) inside file shape.if yes,plz let me know how?

What I have tried:

it is working if i have coordinate for lines and polygons but i need to get coordinate of lines lonely without write it,i looked alot in internet but ic ould not fine.please help me
Posted
Updated 26-Dec-19 9:08am

1 solution

Sounds like what you need to do is:
1. Read the content of the files
2. Parse those contents into the different elements
3. Select the element you want
4. extract the related data for that element

Hey, I found this on the internet; using Google naturally- maybe it will help
GitHub - GeospatialPython/pyshp: This library reads and writes ESRI Shapefiles in pure Python.[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900