view ogrinfo.xml @ 0:2241ff3e5b7c draft default tip

author mnhn65mo
date Thu, 02 Aug 2018 06:30:23 -0400
line wrap: on
line source

<tool id="ogrinfo" name="OGR Informations" version="0.1.0">
    <description>lists information about an OGR supported data source</description>
        <requirement type="package" version="2.1.0">gdal</requirement>
        <requirement type="package" version="3.5.0">geos</requirement>
        <requirement type="package" version="9b">jpeg</requirement>
        <requirement type="package" version="1.5.90">libjpeg-turbo</requirement>
    <command detect_errors="exit_code"><![CDATA[
        ogrinfo -ro '$input1.extra_files_path/Shapefile.shp' -al 
            #if $settings.advanced=='advanced'

                #unless $settings.sql=='eg : SELECT * FROM Shapefile WHERE X>10':
                    -sql '$settings.sql'
                #end unless

            #end if

        > '$output'

        <param type="data" name="input1" format="data" label="Gdal supported input file" help=""/>
        <conditional name="settings">
            <param name="advanced" type="select" label="Specify advanced parameters">
                <option value="simple" selected="true">No, use program defaults.</option>
                <option value="advanced">Yes, see full parameter list.</option>
            <when value="simple">
            <when value="advanced">
                <param name="sql" type="text" label="-sql statement" value="eg : SELECT * FROM Shapefile WHERE X>10" help="Your input is renamed Shapefile.">
                        <valid initial="string.printable">
                            <add value=">"/>

                <param name="so" label="-so" type="boolean" truevalue="-so" falsevalue="" checked="true"/>
        <data name="output" format="txt" label="OGR Info file on ${on_string}"/>

**What it does**

The Ogrinfo program lists various information about an OGR supported vector dataset.


**How to use it**

Select from history a suported vector file. 


**Other options, advanced usage**

*-sql statement*

    Execute the indicated SQL statement and return the result. Your input is renamed Shapefile. 



    Summary Only: suppress listing of features, show only the summary information like projection, schema, feature count and extents.