We need your help! 🔥
Please consider disabling your ad-blocker to support this website! 🔑
We are a free, community-supported website! 🥰
We only display small unobtrusive ads which help us stay online! 💯
Thank you in advance! ❤️
GIS API
GIS Import | Export
GIS REST
GIS Tools
Utilities

GdalOgr2Ogr

Manipulate vector data with the GDAL OGR2OGR program given a source dataset, a destination dataset and a list of options. Similar to the command line version, formatting for the list of options should be a single string of text with a space separating each term where '-' should preceed the option parameter and the next item in the list should be that parameter's value. For instance, to convert a Shapefile to GeoJSON format the options string would be '-f geojson'. To clip a large vector data set to a boundary of upper left x (ulx), upper left y (uly), lower right x (lrx) and lower right y (lry), the options string would be '-spat ulx uly lrx lry' where ulx, uly, lrx and lry are substituted with coordinate values. More information about conversion options can be found at https://gdal.org/programs/ogr2ogr.html.

Inputs

NameIDDescriptionType
Source datasourcesourceFile location for the source vector data.Text
Destination datasourcedestFile location for the destination vector data.Text
OptionsoptionsString of options with a space separating each term. For instance, to convert vector data from Shapefile format to GeoJSON, the options string would be '-f geojson'.Text

Outputs

NameIDDescriptionType
Source InfosourceInfoList of information about the source datasource.Text
Destination InfodestInfoList of information about the destination datasource.Text
Destination FiledestFileFile location of destination datasource.Text

Video Tutorials

Site design © Robin Rodricks.   Heron and associated data © 2024 Brian Washburn.  
Rhinoceros and Grasshopper are registered trademarks of Robert McNeel & Associates.  Hosted by GitHub

Report an Issue  |  Terms of Service