- Messages
- 1,588
- Country
I am testing to see if I can create high power transmission cables between towers. I am thinking using terrain vectors as a method to string the cables from pole to pole. For my tests I am using line data from some OSM powerlines and CreateTVecRailroad simply to see if I can get a script to create a railroad bgl. The area is small so I have tried it with 'Split Grid' as a typical step and without that. So far no luck.
Question - Should I leave my line data as a "line" or convert it first to a polygon? (I've tried both ways without success)
Here's my simple script:
ImportOGR|B:\CA\Section_70\Obstacles\CA_Section_70_powerLines.shp|*|*|NOREPROJ
ImportOGR|B:\CA\Section_70\Masks\CA_BV77_mask.shp|*|*|NOREPROJ
#SplitGrid|LOD13|* (tried with this included and left out - faster when not included)
AddAttribute|FROMFILE="CA_Section_70_powerLines.shp"|String;objType|power_line
BooleanFeatures|INTERSECTION|objType="power_line"|FROMFILE="CA_BV77_mask.shp"|1
LineToPolygon|objType="power_line"|1|String;polyType|railroad (tried with this included and with it left out)
CreateTVecRailroad|polyType="railroad"|{dde116bf-0e97-4eb6-a9ec-7ef93d9f2d0e}
ExportTVecBGL|B:\CA\Section_70\CA_BV77\Obstacles\PowerLines|Cables
Here is the results - You can see this issue is this line:
10:37 AM ExportTVecBGL Information unable to open shapefile .\rrxCables_0.shp
but I have never seen this error message before so not sure how to move forward.
Question - Should I leave my line data as a "line" or convert it first to a polygon? (I've tried both ways without success)
Here's my simple script:
ImportOGR|B:\CA\Section_70\Obstacles\CA_Section_70_powerLines.shp|*|*|NOREPROJ
ImportOGR|B:\CA\Section_70\Masks\CA_BV77_mask.shp|*|*|NOREPROJ
#SplitGrid|LOD13|* (tried with this included and left out - faster when not included)
AddAttribute|FROMFILE="CA_Section_70_powerLines.shp"|String;objType|power_line
BooleanFeatures|INTERSECTION|objType="power_line"|FROMFILE="CA_BV77_mask.shp"|1
LineToPolygon|objType="power_line"|1|String;polyType|railroad (tried with this included and with it left out)
CreateTVecRailroad|polyType="railroad"|{dde116bf-0e97-4eb6-a9ec-7ef93d9f2d0e}
ExportTVecBGL|B:\CA\Section_70\CA_BV77\Obstacles\PowerLines|Cables
Here is the results - You can see this issue is this line:
10:37 AM ExportTVecBGL Information unable to open shapefile .\rrxCables_0.shp
but I have never seen this error message before so not sure how to move forward.