Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • 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

  • Min: 1

  • Max: 1

  • File Reader Snap

  • Multi File Reader Snap

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

  • Min: 1

  • Max: 1

  • Mapper

  • File Writer

  • Snowflake

  • PostgreSQL

Output is GeoJSON, which can then be used for any geospatial analytics or map applications.

The output can also be loaded to a database outside of the SnapLogic platform.

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:

  • Stop Pipeline Execution: Stops the current Pipeline execution if the Snap encounters an error.

  • Discard Error Data and Continue: Ignores the error, discards that record, and continues with the remaining records.

  • Route Error Data to Error View: Routes the error data to an error view without stopping the Snap execution.

Learn more about Error handling in Pipelines.

Snap Settings

Info
  • Asterisk ( * ): Indicates a mandatory field.

  • Suggestion icon ((blue star)): Indicates a list that is dynamically populated based on the configuration.

  • Expression icon ((blue star) ): Indicates the value is an expression (if enabled) or a static value (if disabled). Learn more about Using Expressions in SnapLogic.

  • Add icon ( (blue star) ): Indicates that you can add fields in the field set.

  • Remove icon ( (blue star)): Indicates that you can remove fields from the field set.

  • Upload icon ((blue star) ): Indicates that you can upload files.

Field Name

Field Type

Field Dependency

Description

Label*

 

Default Value: GeoJSON Parser
Example: myGeoJSON 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
Example: GML file

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 ((blue star) ) to add a new shapefile.

Shapefile path

 

Default value: None.
Examplelimit

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: 

  root/folder1/subfolder1/line.shp

Snap Execution

Default ValueExecute only
Example: Validate & Execute

Dropdown list

N/A

Select one of the following three modes in which the Snap executes:

  • Validate & Execute: Performs limited execution of the Snap, and generates a data preview during pipeline validation. Subsequently, performs full execution of the Snap (unlimited records) during pipeline runtime.

  • Execute only: Performs full execution of the Snap during pipeline execution without generating preview data.

  • Disabled: Disables the Snap and all Snaps that are downstream from it.

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 a GML file and parse the input as GeoJSON output

...

Insert excerpt
Transform Snap Pack
Transform Snap Pack
nopaneltrue

...

Related Content

...