Hi Chris,
Simplify is based on the well known Douglas–Peucker algorithm;
you can learn more about this topic by reading:
http://en.wikipedia.org/wiki/Ramer%E2%80%93Douglas%E2%80%93Peucker_algorithm
SimplifyPreserveTopology is a slightly modified version,
ensuring that no invalid polygon will be returned.
The appropriate tolerance value obviously depends on target
data; after all this simply represents a distance, and is
obviously expressed in map length units.
Just as an example: if the target geometry has lat/long coords
tolerance will be expressed in degrees, so 0.5 will intend a
very drastic simplification.
On the other side, if the target geometry has planar metric
coords tolerance will be measured in metres, so 0.5 will intend
a very bland simplification.
Please note: the actual nature of target geometries has a very
strong influence in choosing an appropriate tolerance value.
e.g. if you wish to simplify major rivers or national boundaries
on a worldwide map a tolerance as big as 1Km (or even bigger)
make perfectly sense.
but if you wish to simplify buildings on a cadastral map a tolerance
of 10m will probably be highly exaggerated.
bye Sandro
--
Il messaggio e' stato analizzato alla ricerca di virus o
contenuti pericolosi da MailScanner, ed e'
risultato non infetto.