GeoLatte / geolatte-geom

A geometry model that conforms to the OGC Simple Features for SQL specification.
Other
134 stars 63 forks source link

Issues about how to use class SDOGeometry #154

Closed dtneverdie closed 2 years ago

dtneverdie commented 2 years ago

I found that there is a SDOGeometry class in geom which might work well in oracle. I tried to construct a SDOGeometry like how u show in test but there is no SDOGeometryHelper in Maven's geolatte-geom, and SDOGtype and SDOPoint can not be accessde from outside. I wanna know how to new a SDOGeometry class.

maesenka commented 2 years ago

You should create geometries as explained in the README and then use the Encoders class:

import org.geolatte.geom.codec.db.oracle.Encoders;
....
SDOGeometry encode = Encoders.encode(geom);