I created and used a graph in SNAP GUI which imported a shapefile as a vector and then used it as a mask.
I’m trying to use the same graph with gpt to do the task but the Land-Sea-Mask operator geometry field needs a value and I can’t work out what this should be.
As created in the GUI, geometry is given the value of the shapefile filename minus the file extension, but run via gpt this is not recognised.
Here below are the Import-Vector and mask operators from the graph created by the GUI.
<node id="Import-Vector">
<operator>Import-Vector</operator>
<sources>
<sourceProduct refid="Land-Sea-Mask"/>
</sources>
<parameters class="com.bc.ceres.binding.dom.XppDomElement">
<vectorFile>C:\myfiles\s1_data\masks\S1A_IW_GRDH_1SDV_20160317T060621_A85D_object_detection.shp</vectorFile>
<separateShapes>false</separateShapes>
</parameters>
</node>
<node id="Land-Sea-Mask(2)">
<operator>Land-Sea-Mask</operator>
<sources>
<sourceProduct refid="Import-Vector"/>
</sources>
<parameters class="com.bc.ceres.binding.dom.XppDomElement">
<sourceBands/>
<landMask>false</landMask>
<useSRTM>true</useSRTM>
<geometry>S1A_IW_GRDH_1SDV_20160317T060621_A85D_object_detection</geometry>
<invertGeometry>true</invertGeometry>
<shorelineExtension>0</shorelineExtension>
</parameters>
</node>