Skip to content

Commit

Permalink
Revise comments: from temporary fix to coordinates flipped.
Browse files Browse the repository at this point in the history
  • Loading branch information
Akopti8 committed Feb 7, 2024
1 parent 0007c28 commit fa6a41e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tools/geospatial.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func getRiverCenterline(sc *bufio.Scanner, transform gdal.CoordinateTransform) (
}

xyLineString.Transform(transform)
// This is a temporary fix since the x and y values need to be flipped:
// The x and y values need to be flipped:
yxLineString := flipXYLineString(xyLineString)

multiLineString := yxLineString.ForceToMultiLineString()
Expand Down Expand Up @@ -293,7 +293,7 @@ func getXS(sc *bufio.Scanner, transform gdal.CoordinateTransform, riverReachName
}

xyzLineString.Transform(transform)
// This is a temporary fix since the x and y values need to be flipped
// The x and y values need to be flipped
yxzLineString := flipXYLineString25D(xyzLineString)

multiLineString := yxzLineString.ForceToMultiLineString()
Expand Down Expand Up @@ -321,7 +321,7 @@ func getBanks(line string, transform gdal.CoordinateTransform, xsFeature VectorF
xyPoint := gdal.Create(gdal.GT_Point)
xyPoint.AddPoint2D(bankXY[0], bankXY[1])
xyPoint.Transform(transform)
// This is a temporary fix since the x and y values need to be flipped
// The x and y values need to be flipped
yxPoint := flipXYPoint(xyPoint)
multiPoint := yxPoint.ForceToMultiPoint()
wkb, err := multiPoint.ToWKB()
Expand Down Expand Up @@ -353,7 +353,7 @@ func getArea(sc *bufio.Scanner, transform gdal.CoordinateTransform) (VectorFeatu
}

xyLinearRing.Transform(transform)
// This is a temporary fix since the x and y values need to be flipped:
// The x and y values need to be flipped
yxLinearRing := flipXYLinearRing(xyLinearRing)

yxPolygon := gdal.Create(gdal.GT_Polygon)
Expand Down Expand Up @@ -391,7 +391,7 @@ func getMeshArea(sc *bufio.Scanner, transform gdal.CoordinateTransform, allowedD
xyPoint := gdal.Create(gdal.GT_Point)
xyPoint.AddPoint2D(point[0], point[1])
xyPoint.Transform(transform)
// This is a temporary fix since the x and y values need to be flipped
// The x and y values need to be flipped
yxPoint := flipXYPoint(xyPoint)

err = multipoint.AddGeometry(yxPoint)
Expand Down Expand Up @@ -474,7 +474,7 @@ func getBreakLine(sc *bufio.Scanner, transform gdal.CoordinateTransform) (Vector
}

xyLineString.Transform(transform)
// This is a temporary fix since the x and y values need to be flipped:
// The x and y values need to be flipped
yxLineString := flipXYLineString(xyLineString)

multiLineString := yxLineString.ForceToMultiLineString()
Expand Down Expand Up @@ -518,7 +518,7 @@ func getBCLine(sc *bufio.Scanner, transform gdal.CoordinateTransform) (VectorFea
}

xyLineString.Transform(transform)
// This is a temporary fix since the x and y values need to be flipped:
// The x and y values need to be flipped
yxLineString := flipXYLineString(xyLineString)

multiLineString := yxLineString.ForceToMultiLineString()
Expand Down Expand Up @@ -567,7 +567,7 @@ func getConnectionLine(sc *bufio.Scanner, transform gdal.CoordinateTransform) (V
}

xyLineString.Transform(transform)
// This is a temporary fix since the x and y values need to be flipped:
// The x and y values need to be flipped
yxLineString := flipXYLineString(xyLineString)

multiLineString := yxLineString.ForceToMultiLineString()
Expand Down

0 comments on commit fa6a41e

Please sign in to comment.