mirror of
https://github.com/bjornharrtell/jsts.git
synced 2026-01-18 14:08:37 +00:00
58 lines
2.8 KiB
XML
58 lines
2.8 KiB
XML
<run>
|
|
<precisionModel type="FLOATING" />
|
|
|
|
<case>
|
|
<desc>P - single point</desc>
|
|
<a> POINT (10 10) </a>
|
|
<test><op name="densify" arg1='A' arg2='10.0'> POINT (10 10) </op></test>
|
|
</case>
|
|
|
|
<case>
|
|
<desc>mP - multi point</desc>
|
|
<a> MULTIPOINT ((10 10), (20 10)) </a>
|
|
<test><op name="densify" arg1='A' arg2='10.0'> MULTIPOINT ((10 10), (20 10)) </op></test>
|
|
</case>
|
|
|
|
<case>
|
|
<desc>L - single segment</desc>
|
|
<a> LINESTRING(10 10, 100 10) </a>
|
|
<test><op name="densify" arg1='A' arg2='10.0'>
|
|
LINESTRING (10 10, 19 10, 28 10, 37 10, 46 10, 55 10, 64 10, 73 10, 82 10, 91 10, 100 10)
|
|
</op></test>
|
|
</case>
|
|
|
|
<case>
|
|
<desc>mL - multiple lines</desc>
|
|
<a> MULTILINESTRING ((10 10, 30 30, 50 10, 70 30), (10 50, 40 50, 70 50)) </a>
|
|
<test><op name="densify" arg1='A' arg2='8.0'>
|
|
MULTILINESTRING ((10 10, 15 15, 20 20, 25 25, 30 30, 35 25, 40 20, 45 15, 50 10, 55 15, 60 20, 65 25, 70 30),
|
|
(10 50, 17.5 50, 25 50, 32.5 50, 40 50, 47.5 50, 55 50, 62.5 50, 70 50))
|
|
</op></test>
|
|
</case>
|
|
|
|
|
|
<case>
|
|
<desc>A - polygon with hole</desc>
|
|
<a> POLYGON ((0 0, 0 70, 70 70, 70 0, 0 0), (10 10, 10 60, 60 60, 10 10)) </a>
|
|
<test><op name="densify" arg1='A' arg2='10.0'>
|
|
POLYGON ((0 0, 0 8.75, 0 17.5, 0 26.25, 0 35, 0 43.75, 0 52.5, 0 61.25, 0 70, 8.75 70, 17.5 70, 26.25 70, 35 70, 43.75 70, 52.5 70, 61.25 70, 70 70, 70 61.25, 70 52.5, 70 43.75, 70 35, 70 26.25, 70 17.5, 70 8.75, 70 0, 61.25 0, 52.5 0, 43.75 0, 35 0, 26.25 0, 17.5 0, 8.75 0, 0 0),
|
|
(10 10, 16.25 16.25, 22.5 22.5, 28.75 28.75, 35 35, 41.25 41.25, 47.5 47.5, 53.75 53.75, 60 60, 51.66666666666667 60, 43.333333333333336 60, 35 60, 26.666666666666668 60, 18.333333333333336 60, 10 60, 10 51.66666666666667, 10 43.333333333333336, 10 35, 10 26.666666666666668, 10 18.333333333333336, 10 10))
|
|
</op></test>
|
|
</case>
|
|
|
|
<case>
|
|
<desc>mA - multipolygon</desc>
|
|
<a> MULTIPOLYGON (((0 0, 0 70, 70 70, 70 0, 0 0),
|
|
(10 10, 10 60, 60 60, 10 10)),
|
|
((80 110, 80 70, 120 70, 120 110, 80 110))) </a>
|
|
<test><op name="densify" arg1='A' arg2='10.0'>
|
|
MULTIPOLYGON (((80 110, 88 110, 96 110, 104 110, 112 110, 120 110, 120 102, 120 94, 120 86, 120 78, 120 70, 112 70, 104 70, 96 70, 88 70, 80 70, 80 78, 80 86, 80 94, 80 102, 80 110)),
|
|
((0 0, 0 8.75, 0 17.5, 0 26.25, 0 35, 0 43.75, 0 52.5, 0 61.25, 0 70, 8.75 70, 17.5 70, 26.25 70, 35 70, 43.75 70, 52.5 70, 61.25 70, 70 70, 70 61.25, 70 52.5, 70 43.75, 70 35, 70 26.25, 70 17.5, 70 8.75, 70 0, 61.25 0, 52.5 0, 43.75 0, 35 0, 26.25 0, 17.5 0, 8.75 0, 0 0),
|
|
(10 10, 16.25 16.25, 22.5 22.5, 28.75 28.75, 35 35, 41.25 41.25, 47.5 47.5, 53.75 53.75, 60 60, 51.66666666666667 60, 43.333333333333336 60, 35 60, 26.666666666666668 60, 18.333333333333336 60, 10 60, 10 51.66666666666667, 10 43.333333333333336, 10 35, 10 26.666666666666668, 10 18.333333333333336, 10 10))) </op></test>
|
|
</case>
|
|
|
|
|
|
|
|
|
|
</run>
|