SRID and (M)GeometryFactory

1 message Options
Embed this post
Permalink
Auke van Leeuwen

SRID and (M)GeometryFactory

Reply Threaded More More options
Print post
Permalink
Hello,

I'm kinda new to using HibernateSpatial (and this list!), and I'm trying to
figure out what the normal way to get a GeometryFactory that uses my
specific SRID is. I can see that this constructor is defined:

com.vividsolutions.jts.geom.GeometryFactory.GeometryFactory(PrecisionModel,
int)

however since HibernateSpatial (Oracle dialect) seems to use a subclass
(org.hibernatespatial.mgeom.MGeometryFactory) of this factory. So far so
good, this factory defines the constructor as well.

Now most access from within Hibernate Spatial seems to go through the the
following getter:
org.hibernatespatial.HBSpatialExtension.getDefaultGeomFactory() which does a
configure() than returns a static instance of MGeometryFactory.

My question is: I don't see any way to configure this specific
MGeometryFactory to use a specified SRID? Is this correct? And if it's not
configurable then can I just use another similar MGeometryFactor? Does it
even matter if it's a MGeometryFactory or a plain GeometryFactory? I can see
that the MGeometryFactory that is returned from HBSpatialExtension is
configured with a precisionmodel, so what happens if I happen to create
another factory with different settings?

Thanks in advance,

Auke van Leeuwen
The Netherlands

_______________________________________________
hibernatespatial-users mailing list
[hidden email]
http://www.hibernatespatial.org/cgi-bin/mailman/listinfo/hibernatespatial-users