Skip to content

Commit c8fbd1d

Browse files
committed
housekeeping
1 parent 4dfd08c commit c8fbd1d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bash/force-level1-csd.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,11 +404,10 @@ get_data() {
404404
# AOI is coordinate pairs, get tiles/footprints from WFS server
405405
elif [ "$AOITYPE" -eq 2 ]; then
406406
printf "%s\n" "" "Searching for footprints / tiles intersecting with input geometry..." "Geometry type: "$GEOMETRY
407+
WKT=$(echo $AOI | sed 's/ /%20/g; s/\//,/g')
407408
if [ "$GEOMETRY" = "POINT" ]; then
408-
WKT=$(echo $AOI | sed 's/\//,/g')
409409
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"
410410
elif [ "$GEOMETRY" = "POLYGON" ]; then
411-
WKT=$(echo $AOI | sed 's/ /%20/g; s/\//,/g')
412411
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"
413412
fi
414413
TILERAW=$(ogr2ogr -f CSV /vsistdout/ -select "PRFID" WFS:"$WFSURL")

0 commit comments

Comments
 (0)