Reader - VtuReader
ReaderName: VtuReader
This reader can read data from VTK Unstructured Grid (.vtu) files.
The reader has optional parameters:
- SRID: Spatial reference ID to associate with the dataset. Defaults to 4326 (WGS 84) if not specified. Note that this does not perform any coordinate transformation. To transform data from one coordinate system to another, use the CrsTransformation transformation as part of the conversion.
Converting VTU to shapefile¶
VTU files can be converted to ESRI Shapefile format. Cell data attributes in the VTU file are written as feature attributes in the output shapefile.
{
"projectId": "<projectId>",
"uploadUrl": "<fileUrl>",
"outputDatasetData": {
"name": "<dataset-name>.zip"
},
"readerName": "VtuReader",
"writerName": "ShpWriter"
}
The output dataset name should use .zip extension, as shapefiles are delivered as a zip archive containing the .shp, .dbf, .shx, and .prj component files.