Widget that split a selected feature in many feature depending on separating draw line.
Note
This widget needs configuration than listed here in order to work properly.
Sample configuration
<split>
<name>W_MySplit</name>
<options>
<dsn>pgsql:host=192.168.3.204;port=5433;dbname=geoprisma;user=postgres;password=postgres</dsn>
<function>bis_geo_split</function>
<layer>ResourceParcel_FS</layer>
<feature>
<id>parcelid</id>
<coordinates>coordinates</coordinates>
<attributes/>
</feature>
</options>
</split>
An other more complex configuration with attributes, snapping and styling
<split>
<name>W_MySplit</name>
<options>
<dsn>pgsql:host=192.168.3.204;port=5433;dbname=geoprisma;user=postgres;password=postgres</dsn>
<function>bis_geo_split</function>
<layer>ResourceParcel_FS</layer>
<feature>
<id>parcelid</id>
<coordinates>coordinates</coordinates>
<attributes>
<attribute>comments</attribute>
<attribute>parcelid</attribute>
</attributes>
</feature>
<snappingtolerance>10</snappingtolerance>
<featureProperty>
<default>
<color>#ee9900</color>
<opacity>0.4</opacity>
<strokeWidth>1</strokeWidth>
</default>
<circle>
<color>red</color>
<opacity>0.5</opacity>
</circle>
</featureProperty>
</options>
</split>
| dsn: | PHP pdo connection string. Visit http://ca3.php.net/manual/fr/pdo.drivers.php for help |
|---|---|
| function: | Database function it make split |
| layer: | Layer name to do split on. (see the layername option in the map widget) |
| feature/id: | Function result column with feature id |
| feature/coordinates: | |
| Function result column with feature coordinates | |
| feature/attributes/attribute: | |
|---|---|
| Function result column of feature attribute | |
| snappingtolerance: | |
| Snapping tolerance default value, If not set 10 is use | |
| featureProperty/defaultValue: | |
| Default feature property | |
| featureProperty/splitPointStart: | |
| Start split point flag | |
| featureProperty/splitPointEnd: | |
| End split point flag | |
| featureProperty/splitPoint: | |
| Split poit | |
| featureProperty/circle: | |
| Circle of split start and split end flag | |
| featureProperty/oldCircle: | |
| Circle of split flag | |
| featureProperty/flag: | |
| Flag is start and end split point after the split point is calculated | |
| featureProperty/splitedPolygon: | |
| Polygon result for second validation | |
| featureProperty/splitLine: | |
| Split line | |
| featureProperty/selectedPolygon: | |
| Selected polygone | |
| featureProperty/*/color: | |
| Color for strokeColor and fillColor style of the feaure | |
| featureProperty/*/opacity: | |
| Opacity for fillOpacity style of the feaure | |
| featureProperty/*/strokeWidth: | |
| strokeWidth style of the feaure | |
widget
create