Skip to content

Commit

Permalink
NeoUtil.asPolyValue now also supports PolyGeometry
Browse files Browse the repository at this point in the history
  • Loading branch information
murermader committed Jan 13, 2025
1 parent 6c8f0ef commit c3e85a5
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,13 @@ static PolyValue asPolyValue( @NonNull Value value ) {
return PolyString.of( value.asString() );
} else if ( value instanceof FloatValue ) {
return PolyString.of( String.valueOf( value.asDouble() ) );

} else if ( value instanceof ListValue ) {
return new PolyList<>( value.asList( NeoUtil::getComparableOrString ) );
}
else if ( value instanceof PointValue ) {
return asPolyGeometry( value );
}
throw new NotImplementedException( "Type not supported" );
}

Expand Down

0 comments on commit c3e85a5

Please sign in to comment.