Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Converts a rectangular grid to polygons. One or more class breaks can be configured. The generated polygons can be displayed in the spatial display and exported with the Grid to ESRI Shapefile Export


Code Block
languagejava
titleexample
<?xml version="1.0" encoding="UTF-8"?>
<transformationModule version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.wldelft.nl/fews" xsi:schemaLocation="http://www.wldelft.nl/fews http://fews.wldelft.nl/schemas/version1.0/transformationModule.xsd">
	<transformation id="gridToPolygon">
		<interpolationSpatial>
			<gridToPolygons>
				<inputVariable>
					<timeSeriesSet>
						<moduleInstanceId>SpatialInterpolationGridToPolygonsTest</moduleInstanceId>
						<valueType>grid</valueType>
						<parameterId>T.historical</parameterId>
						<locationId>ECMWF</locationId>
						<timeSeriesType>external historical</timeSeriesType>
						<timeStep unit="day"/>
						<relativeViewPeriod unit="day" start="0" end="0"/>
						<readWriteMode>add originals</readWriteMode>
					</timeSeriesSet>
				</inputVariable>
				<polygonValue>-10</polygonValue>
				<polygonValue>-5</polygonValue>
				<polygonValue>0</polygonValue>
				<outputVariable>
					<timeSeriesSet>
						<moduleInstanceId>SpatialInterpolationGridToPolygonsTest</moduleInstanceId>
						<valueType>polygon</valueType>
						<parameterId>T.historical</parameterId>
						<locationId>polygonLocation2</locationId>
						<timeSeriesType>external historical</timeSeriesType>
						<timeStep unit="day"/>
						<relativeViewPeriod unit="day" start="0" end="10"/>
						<readWriteMode>add originals</readWriteMode>
					</timeSeriesSet>
				</outputVariable>
			</gridToPolygons>
		</interpolationSpatial>
	</transformation>
</transformationModule>