I have a polyline shape files with about 20 kinds of roads. I would like to know how can I create automatically a vector file for each one.
I can use Arcgis, Qgis (or Gdal separately).
thanks!
|
|
you can use Export Feature Attribute to ASCII (Spatial Statistics) with arcpy. get some information here...
Example Code:
i hope it helps you... |
|||||||||||||
|
|
Quantum GIS has a plugin called ShapefileSplitter http://hub.qgis.org/projects/shapefilesplitter which does this. |
|||
|
|
|
Create a search cursor, loop through each row. At each row, take the OID (or any other unique value) and put it in a where clause. Use that where clause in the Select_analysis(in_feature, out_feature, whereClause) gp tool. If you want to go by type of road rather than a new fc /shapefile for each row, you'd use the select method on the first record, then append all other records of that road type to that fc / shapefile with an if/else structure. |
|||
|
|
|
You can use this toolset for ArcMap 10 as well. |
|||
|
|