You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Johannes Kolbe edited this page Aug 5, 2014
·
2 revisions
In some cases you might have a big map but only want to focus on a certain part or several parts of it. The method that makes this possible in the Python API of IlwisObjects is called .select(). You can either pass it a Geometry object or directly give it a WKT string, which defines your wanted geometry.
As output the method will give you a new RasterCoverage for further processing.
rc=RasterCoverage("n000302.mpr")
# define e.g. a Polygon with a WKT stringrcSelWKT=rc.select("Polygon((495209 80832,927209 -999367, 1887209 -1282307,2184809 311232,495209 80832))")
# get an existing geometry or make a new onegeom=Geometry("Polygon((495209 80832,927209 -999367, 1887209 -1282307,2184809 311232,495209 80832))", rc.coordinateSystem())
rcSelGeom=rc.select(geom)