Uploaded image for project: 'Apache Sedona'
  1. Apache Sedona
  2. SEDONA-441

Implement ST_LineLocatePoint

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.5.1

    Description

      https://postgis.net/docs/ST_LineLocatePoint.html

      This function can be easily implemented by
       
          public static double lineLocatePoint(Geometry geom, Geometry point)

      {         double length = geom.getLength();         LengthIndexedLine indexedLine = new LengthIndexedLine(geom);         return indexedLine.indexOf(point.getCoordinate()) / length;     }

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jiayu Jia Yu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m