...
ZIP file: Change the content type to
application/zip
.GML file: Change the content type to
application/gml+xml; charset=utf-8
.
Snap Views
Type | Format | Number of Views | Examples of Upstream and Downstream Snaps | Description |
---|---|---|---|---|
Input | Binary |
|
| This Snap requires an upstream File Reader Snap or Multi File Reader Snap (immediately preceding it in the pipeline) that reads the input files from a ZIP file that contains shapefiles (.shp).or a single GML file. |
Output | Document |
|
| Output is WKT, which can then be loaded to Snowflake or PostgreSQL databases. The downstream Snap can be a database Snap that loads the output to a target table. |
Error | Error handling is a generic way to handle errors without losing data or failing the Snap execution. You can handle the errors that the Snap might encounter when running the Pipeline by choosing one of the following options from the When errors occur list under the Views tab:
Learn more about Error handling in Pipelines. |
Snap Settings
Info |
---|
|
Field Name | Field Type | Field Dependency | Description | |
---|---|---|---|---|
Label*
Default Value: WKT Parser | String | None. | Specify a unique name, especially if you have more than one of the same Snap in your pipeline.
| |
Input format Default Value: Shapefiles | Dropdown list | None. | Select the format of the file used in the upstream file reader. | |
Read all files | Checkbox | Appears when you select Shapefiles as the Input format. | Read all the files in the zip file. | |
Shapefiles | List all the shapefiles to be parsed. Click the plus icon (➕) to add a new shapefile. | |||
Shapefile path
Default value: None. | String/Expression | None. | Specify the path to the shapefile you want to parse. The path should include all folders to the file from the root directory. This property is a URL path to the directory where files will be searched. The expected syntax is: | |
Snap Execution Default Value: Execute only | Dropdown list | N/A | Select one of the following three modes in which the Snap executes:
|
Troubleshooting
Error | Reason | Resolution |
---|---|---|
Unsupported file format. | File format is not supported. | Check if the file provided is a zip file containing a .shp file. |
Shapefile not found. | No shape file found at the root of the zip file. | Check if the shape file is at the root of the zip file. If not, provide the path of the shapefile in the zip file. |
Examples
Read shapefiles and load the data in Snowflake
...
Expand | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
|
Related Content
...