Skip to content

Commit

Permalink
Mql: Handle case where input is already PolyGeometry
Browse files Browse the repository at this point in the history
  • Loading branch information
murermader committed Dec 25, 2024
1 parent 72dbe0e commit 1f85b7a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -866,6 +866,10 @@ else if (distanceMultiplier.isDouble()){
* - A document that adheres to the GeoJSON specification.
*/
public static PolyGeometry convertInputToPolyGeometry( PolyValue input, Integer srid ) {
if (input.isGeometry()){
return input.asGeometry();
}

GeometryFactory geoFactory = new GeometryFactory(new PrecisionModel(), srid );

// Legacy Coordinates
Expand Down

0 comments on commit 1f85b7a

Please sign in to comment.