- Messages
- 154
- Country
Hi folks
CVXExtractor is a command-line application that allows you to export the vector data of a CVX BGL file into one of the following formats:
So if you have a square polygon that overlaps 2 QMID areas, 2 polygons will be created by the Shp2Vec tool (one in each QMID area).
Bear with me as this is version 1.0 and it may contains bugs.
Anyways, any comment, idea, advice is welcome !
Enjoy!
The usage is:
cvxextractor -i InputFilePath -t Type [-o OutputFolderPath] [-f Filter] [-latMin value] [-latMax value] [-longMin value] [-longMax value]
where
-i : (Mandatory) The path on the input BGL file.
-t : (Mandatory) The type of output.
-o : (Optional) The path on the output folder where the export files will be created.
-f : (Optional) The types of vector that will be present in the output file.
-latMin
-latMax
-longMin
-longMax : (Optional) Defines the boundary coordinates of the area from which the vectors will be exported.
Example:
cvxextractor -i "C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\Scenery\0301\scenery\cvx2815.bgl" -t XML -o C:\Users\Patrick\Documents\Test -f Parks+Shorelines+Utilities
-latMax 45.52 -latMin 45.49 -longMax -73.3 -longMin -73.4
CVXExtractor is a command-line application that allows you to export the vector data of a CVX BGL file into one of the following formats:
- XML (Plain XML)
- KML or KMZ
- ESRI Shapes
- BLN
- OSM (Open StreetMap XML)
Also note that original lines or polygons may be split if they cross the boundaries of QMID squares (Level 11 , or 15 in the case of Freeways).- KML or KMZ
- ESRI Shapes
- BLN
- OSM (Open StreetMap XML)
So if you have a square polygon that overlaps 2 QMID areas, 2 polygons will be created by the Shp2Vec tool (one in each QMID area).
Bear with me as this is version 1.0 and it may contains bugs.
Anyways, any comment, idea, advice is welcome !
Enjoy!
The usage is:
cvxextractor -i InputFilePath -t Type [-o OutputFolderPath] [-f Filter] [-latMin value] [-latMax value] [-longMin value] [-longMax value]
where
-i : (Mandatory) The path on the input BGL file.
This file is supposed to contain some vectors.
-t : (Mandatory) The type of output.
The value is one of these: XML, KML, KMZ, ESRI, BLN.
-o : (Optional) The path on the output folder where the export files will be created.
If omitted, the output folder will be created in the executable's folder and will have the same name as the input BGL file.
-f : (Optional) The types of vector that will be present in the output file.
If omitted, all types will be exported.
Several types can be specified. They must be separated by the + character.
Possible values are:
Several types can be specified. They must be separated by the + character.
Possible values are:
- Shorelines
- Railways
- AirportBounds
- Roads
- Freeways
- Streams
- Parks
- HydroPolygons
- Exclusions
- Utilities
- GPSHydroPolygons
-latMin
-latMax
-longMin
-longMax : (Optional) Defines the boundary coordinates of the area from which the vectors will be exported.
If any of these 4 options is omitted, the default values will be used. Only the segments totally within the area will be present in the output file.
Segments that cross the boundaries will be ignored.Default values are -180 for longMin, 180 for longMax
-90 for latMin, 90 for latMax
-90 for latMin, 90 for latMax
Example:
cvxextractor -i "C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\Scenery\0301\scenery\cvx2815.bgl" -t XML -o C:\Users\Patrick\Documents\Test -f Parks+Shorelines+Utilities
-latMax 45.52 -latMin 45.49 -longMax -73.3 -longMin -73.4
This will take the file cvx2815.bgl as input and will output the file
C:\Users\Patrick\Documents\Test\cvx2815.xml that will contain only the segments of type Parks and ShoreLines and Utilities totally contained within the square having the following boundaries:NorthWest Corner: Latitude = 45.52, Longitude = -73.4
SouthEast Corner: Latitude = 45.49, Longitude = -73.3
SouthEast Corner: Latitude = 45.49, Longitude = -73.3
Attachments
Last edited: