File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -404,11 +404,10 @@ get_data() {
404
404
# AOI is coordinate pairs, get tiles/footprints from WFS server
405
405
elif [ " $AOITYPE " -eq 2 ]; then
406
406
printf " %s\n" " " " Searching for footprints / tiles intersecting with input geometry..." " Geometry type: " $GEOMETRY
407
+ WKT=$( echo $AOI | sed ' s/ /%20/g; s/\//,/g' )
407
408
if [ " $GEOMETRY " = " POINT" ]; then
408
- WKT=$( echo $AOI | sed ' s/\//,/g' )
409
409
WFSURL=" http://ows.geo.hu-berlin.de/cgi-bin/qgis_mapserv.fcgi?MAP=/owsprojects/grids.qgs&SERVICE=WFS&REQUEST=GetFeature&typename=" $SATELLITE " &Filter=%3Cogc:Filter%3E%3Cogc:Intersects%3E%3Cogc:PropertyName%3Eshape%3C/ogc:PropertyName%3E%3CLiteral%3E%3Cgml:Point%20srsName=%22EPSG:4326%22%3E%3Cgml:coordinates%3E" $WKT " %3C/gml:coordinates%3E%3C/gml:Point%3E%3C/Literal%3E%3C/ogc:Intersects%3E%3C/ogc:Filter%3E"
410
410
elif [ " $GEOMETRY " = " POLYGON" ]; then
411
- WKT=$( echo $AOI | sed ' s/ /%20/g; s/\//,/g' )
412
411
WFSURL=" http://ows.geo.hu-berlin.de/cgi-bin/qgis_mapserv.fcgi?MAP=/owsprojects/grids.qgs&SERVICE=WFS&REQUEST=GetFeature&typename=" $SATELLITE " &Filter=%3Cogc:Filter%3E%3Cogc:Intersects%3E%3Cogc:PropertyName%3Eshape%3C/ogc:PropertyName%3E%3Cgml:Polygon%20srsName=%22EPSG:4326%22%3E%3Cgml:outerBoundaryIs%3E%3Cgml:LinearRing%3E%3Cgml:coordinates%3E" $WKT " %3C/gml:coordinates%3E%3C/gml:LinearRing%3E%3C/gml:outerBoundaryIs%3E%3C/gml:Polygon%3E%3C/ogc:Intersects%3E%3C/ogc:Filter%3E"
413
412
fi
414
413
TILERAW=$( ogr2ogr -f CSV /vsistdout/ -select " PRFID" WFS:" $WFSURL " )
You can’t perform that action at this time.
0 commit comments