Hi Diego,

I don't know the answer to this but I'll offer some observations which
might prompt others here to chime in with more useful responses.

> I'm trying to write a geometry to a postgis database which has a
> constraint that only allows 4D coordinates:
>
> CONSTRAINT enforce_dims_the_geom CHECK (st_ndims(the_geom) = 4
>
> I'm using a a GeometryFactory to create my geometries and I have tried
> to set a hint:
>
> GeometryFactory factory = JTSFactoryFinder.getGeometryFactory(new
> Hints(Hints.COORDINATE_DIMENSION, new Integer(4)));
> Geometry geom = factory.createPoint(new Coordinate(100, 101, 102));
>

I don't think JTSFactoryFinder understands that Hint so it is probably
just ignoring it. Grepping the GeoTools code shows that hint being
used in a number of modules but jdbc-postgis is not one of them.

Also, when you say you are using GeometryFactory to create Geometries,
how are you dealing with your 4D data ?

Michael

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to