Would like to import XYZ coordinates and display Z column as text (akin to PBA) - is this possible? The Import Coordinates dialog only allows the user to specify a single text label to be applied to all imported coordinates. Thanks.
What is the source of your data ?
The file is in .xyz format (x,y,depth). It is a comma-delimited file, like .csv but with a different file extension. Sebastian, I had tried loading the file via the Interoperability Dialog (I know you can set PBA there) but I receive the following error message once I select the file:
Are there any other options for loading a file in this (.xyz) format and defining PBA?
So you will need to set up a VRT file to do the import and then reference this file in the interoperability interface.
Creating a VRT file
A VRT file is a text file that describes the feature name, the file name, the layer
type (in this case a point layer), the spatial reference system, and the names of
the columns in which to find the X and Y (and optionally Z) values.
A sample VRT file to import data from a CSV file is shown below.
<OGRVRTDataSource>
<OGRVRTLayer name="test">
<SrcDataSource>test.csv</SrcDataSource>
<GeometryType>wkbPoint</GeometryType>
<LayerSRS>WGS84</LayerSRS>
<GeometryField encoding="PointFromColumns" x="Lon" y="Lat"/>
</OGRVRTLayer>
</OGRVRTDataSource>
Pat attention to the GeometryField, LayerSRS and the SrcDataSource tags.
Then set up the PBA string as you normally would do in the interoperability interface for the import.
Thanks, I'll give this a try. Also, does a specification exist for the VRT file? (Helpful for instances where I have a different LayerSRS, geometryField encoding, etc.) The Bentley Map manual just gives the same example you posted here.
Janice,
Please refer to this for additional information on the VRT format.
Regards,
Jeff Bielefeld [Bentley]