@@ -426,15 +426,14 @@ SELECT ST_AsText((ST_Dump(the_geom)).geom)
426
426
<refname >ST_LocateBetween</refname >
427
427
428
428
<refpurpose >Return a derived geometry collection value with elements
429
- that match the specified range of measures inclusively. Polygonal
430
- elements are not supported.</refpurpose >
429
+ that match the specified range of measures inclusively.</refpurpose >
431
430
</refnamediv >
432
431
433
432
<refsynopsisdiv >
434
433
<funcsynopsis >
435
434
<funcprototype >
436
435
<funcdef >geometry <function >ST_LocateBetween</function ></funcdef >
437
- <paramdef ><type >geometry </type > <parameter >geomA </parameter ></paramdef >
436
+ <paramdef ><type >geometry </type > <parameter >geom </parameter ></paramdef >
438
437
<paramdef ><type >float8 </type > <parameter >measure_start</parameter ></paramdef >
439
438
<paramdef ><type >float8 </type > <parameter >measure_end</parameter ></paramdef >
440
439
<paramdef choice =" opt" ><type >float8 </type > <parameter >offset</parameter ></paramdef >
@@ -447,7 +446,9 @@ SELECT ST_AsText((ST_Dump(the_geom)).geom)
447
446
<title >Description</title >
448
447
449
448
<para >Return a derived geometry collection with elements that match the specified range of
450
- measures inclusively. Polygonal elements are not supported.</para >
449
+ measures inclusively.</para >
450
+
451
+ <para >Clipping a non-convex POLYGON may produce invalid geometry.</para >
451
452
452
453
<para >If an offset is provided, the resultant will be offset to the left or right of the
453
454
input line by the specified number of units. A positive offset will be to the left, and
@@ -458,18 +459,23 @@ SELECT ST_AsText((ST_Dump(the_geom)).geom)
458
459
459
460
<para >Availability: 1.1.0 by old name ST_Locate_Between_Measures. </para >
460
461
<para >Changed: 2.0.0 - in prior versions this used to be called ST_Locate_Between_Measures. The old name has been deprecated and will be removed in the future but is still available for backward compatibility.</para >
462
+ <para >Enhanced: 3.0.0 - added support for POLYGON, TIN, TRIANGLE.</para >
461
463
462
464
<para >&M_support; </para >
463
465
</refsection >
464
466
465
467
<refsection >
466
468
<title >Examples</title >
467
469
468
- <programlisting >SELECT ST_AsText(the_geom)
469
- FROM
470
- (SELECT ST_LocateBetween(
471
- ST_GeomFromText('MULTILINESTRING M ((1 2 3, 3 4 2, 9 4 3),
472
- (1 2 3, 5 4 5))'),1.5, 3) As the_geom) As foo;
470
+ <programlisting >
471
+ SELECT ST_AsText(the_geom)
472
+ FROM (
473
+ SELECT ST_LocateBetween(
474
+ 'MULTILINESTRING M ((1 2 3, 3 4 2, 9 4 3),(1 2 3, 5 4 5))'),
475
+ 1.5,
476
+ 3
477
+ ) as the_geom
478
+ ) As foo;
473
479
474
480
st_asewkt
475
481
------------------------------------------------------------------------
@@ -478,10 +484,13 @@ SELECT ST_AsText((ST_Dump(the_geom)).geom)
478
484
--Geometry collections are difficult animals so dump them
479
485
--to make them more digestable
480
486
SELECT ST_AsText((ST_Dump(the_geom)).geom)
481
- FROM
482
- (SELECT ST_LocateBetween(
483
- ST_GeomFromText('MULTILINESTRING M ((1 2 3, 3 4 2, 9 4 3),
484
- (1 2 3, 5 4 5))'),1.5, 3) As the_geom) As foo;
487
+ FROM (
488
+ SELECT ST_LocateBetween(
489
+ 'MULTILINESTRING M ((1 2 3, 3 4 2, 9 4 3),(1 2 3, 5 4 5))'),
490
+ 1.5,
491
+ 3
492
+ ) As the_geom
493
+ ) As foo;
485
494
486
495
st_asewkt
487
496
--------------------------------
@@ -502,15 +511,14 @@ SELECT ST_AsText((ST_Dump(the_geom)).geom)
502
511
<refname >ST_LocateBetweenElevations</refname >
503
512
504
513
<refpurpose >Return a derived geometry (collection) value with elements
505
- that intersect the specified range of elevations inclusively. Only 3D, 4D LINESTRINGS and MULTILINESTRINGS
506
- are supported.</refpurpose >
514
+ that intersect the specified range of elevations inclusively.</refpurpose >
507
515
</refnamediv >
508
516
509
517
<refsynopsisdiv >
510
518
<funcsynopsis >
511
519
<funcprototype >
512
520
<funcdef >geometry <function >ST_LocateBetweenElevations</function ></funcdef >
513
- <paramdef ><type >geometry </type > <parameter >geom_mline </parameter ></paramdef >
521
+ <paramdef ><type >geometry </type > <parameter >geom </parameter ></paramdef >
514
522
<paramdef ><type >float8 </type > <parameter >elevation_start</parameter ></paramdef >
515
523
<paramdef ><type >float8 </type > <parameter >elevation_end</parameter ></paramdef >
516
524
</funcprototype >
@@ -521,11 +529,13 @@ SELECT ST_AsText((ST_Dump(the_geom)).geom)
521
529
<refsection >
522
530
<title >Description</title >
523
531
524
- <para >Return a derived geometry (collection) value with elements
525
- that intersect the specified range of elevations inclusively. Only 3D, 3DM LINESTRINGS and MULTILINESTRINGS
526
- are supported.</para >
532
+ <para >Return a derived geometry (collection) value with elements
533
+ that intersect the specified range of elevations inclusively.</para >
527
534
528
- <para >Availability: 1.4.0</para >
535
+ <para >Clipping a non-convex POLYGON may produce invalid geometry.</para >
536
+
537
+ <para >Availability: 1.4.0</para >
538
+ <para >Enhanced: 3.0.0 - added support for POLYGON, TIN, TRIANGLE.</para >
529
539
530
540
<para >&Z_support; </para >
531
541
</refsection >
@@ -534,24 +544,22 @@ SELECT ST_AsText((ST_Dump(the_geom)).geom)
534
544
<title >Examples</title >
535
545
536
546
<programlisting >SELECT ST_AsEWKT(ST_LocateBetweenElevations(
537
- ST_GeomFromEWKT('LINESTRING(1 2 3, 4 5 6)'),2, 4)) As ewelev;
547
+ ST_GeomFromEWKT('LINESTRING(1 2 3, 4 5 6)'), 2, 4)) As ewelev;
538
548
ewelev
539
549
----------------------------------------------------------------
540
550
MULTILINESTRING((1 2 3,2 3 4))
541
551
542
- SELECT ST_AsEWKT(ST_LocateBetweenElevations(
543
- ST_GeomFromEWKT('LINESTRING(1 2 6, 4 5 -1, 7 8 9)'),6,9)) As ewelev;
552
+ SELECT ST_AsEWKT(ST_LocateBetweenElevations('LINESTRING(1 2 6, 4 5 -1, 7 8 9)', 6, 9)) As ewelev;
544
553
545
554
ewelev
546
555
----------------------------------------------------------------
547
556
GEOMETRYCOLLECTION(POINT(1 2 6),LINESTRING(6.1 7.1 6,7 8 9))
548
557
549
- --Geometry collections are difficult animals so dump them
550
- --to make them more digestable
558
+ -- Geometry collections are difficult animals so dump them
559
+ -- to make them more digestable
551
560
SELECT ST_AsEWKT((ST_Dump(the_geom)).geom)
552
- FROM
553
- (SELECT ST_LocateBetweenElevations(
554
- ST_GeomFromEWKT('LINESTRING(1 2 6, 4 5 -1, 7 8 9)'),6,9) As the_geom) As foo;
561
+ FROM
562
+ (SELECT ST_LocateBetweenElevations('LINESTRING(1 2 6, 4 5 -1, 7 8 9)', 6, 9) as the_geom) As foo;
555
563
556
564
st_asewkt
557
565
--------------------------------
@@ -564,7 +572,7 @@ LINESTRING(6.1 7.1 6,7 8 9)
564
572
<refsection >
565
573
<title >See Also</title >
566
574
567
- <para ><xref linkend =" ST_Dump" /></para >
575
+ <para ><xref linkend =" ST_Dump" />, < xref linkend = " ST_LocateBetween " /> </para >
568
576
</refsection >
569
577
</refentry >
570
578
0 commit comments