maritimeconnectivity / ServiceRegistry

MCP (Maritime Connectivity Platform) Service Registry API
Apache License 2.0
2 stars 2 forks source link

Geometry search with WKT format is not working #58

Open JinkiJung opened 1 week ago

JinkiJung commented 1 week ago

Hello there!

Geometry search from the management portal doesn't work with the POST call below:

Result: 400 Bad Request

Also doesn't work with other geometry types.

Parsing of parseGeometry function in SecomSearchServiceController might cause this problem.

oliverhaagh commented 1 week ago

The search does not fail when not using a GeometryCollection as a wrapper. Seems like that the string fails validation on this regex, but on the other hand there is also not really any reason in using a GeometryCollection with only have one element inside.