Quantcast
Channel: OpenCities Map Wiki
Viewing all articles
Browse latest Browse all 1284

- VRT file parameters to import Points, Lines, and Polygons

$
0
0
Current Revision posted to Bentley Map - Wiki by Inga Morozoff on 11/30/2018 4:49:25 PM

VRT files are used to import a CSV file containing point, line or polygon data.  Information regarding the VRT file format and parameters can be found at the following:

https://www.gdal.org/gdal_vrttut.html

The attached zip file to this article includes a sample set of CSV files and a related VRT file which makes use of WKT geometry field encoding for point, lines and polygons.

<OGRVRTDataSource><OGRVRTLayer name="Linestrings"><SrcDataSource relativeToVRT="1">linestrings.csv</SrcDataSource><GeometryType>wkbLineString</GeometryType><LayerSRS>WGS84</LayerSRS><GeometryField encoding="WKT" field="WKT"/></OGRVRTLayer><OGRVRTLayer name="Polygons"><SrcDataSource relativeToVRT="1">polygons.csv</SrcDataSource><GeometryType>wkbPolygon</GeometryType><LayerSRS>WGS84</LayerSRS><GeometryField encoding="WKT" field="WKT"/></OGRVRTLayer><OGRVRTLayer name="Points"><SrcDataSource relativeToVRT="1">points.csv</SrcDataSource><GeometryType>wkbPoint</GeometryType><LayerSRS>WGS84</LayerSRS><GeometryField encoding="PointFromColumns" x="X" y="Y"/></OGRVRTLayer></OGRVRTDataSource>

Opening the VRT file in as an Import in the Interoperability dialog allows you to specify the Spatial Criteria, Feature Parameters, Import Parameters, and Feature Symbology.  

When imported, the resulting graphics are native features with business, geometric, and WKT properties.

If the WKT properties are not desired, disable them in the Import node using the Show Properties > Ungrouped opton.

The following file is provided for your learning and was used for the images in this article:

communities.bentley.com/.../Geometries.zip

Tags: CSV, Interoperability, VRT

Viewing all articles
Browse latest Browse all 1284

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>