Hi all,
This is in regard to the PostgisDataStore always creating M geometries (i.e.
PointM instead of just Point) - http://jira.codehaus.org/browse/GEOT-2066
I've been trying to make a class that can transfer directly from oracle into
postgis, but it is failing when trying to load the features from the
collection, because the schema is created with a geometry type of PointM,
whereas the feature geometries are actually just Point.
As noted in the jira issue, it's because there is a mapping from the
Point.class to both POINT and POINTM geometry types:
GEOM_TYPE_MAP.put("POINT", Point.class);
GEOM_TYPE_MAP.put("POINTM", Point.class);
I guess it's because the vividsolutions Point class can handle 4d geometries,
so there isn't a PointM class, hence they use the same class in the mapping.
But is it possible to check how many dimensions the geometry attribute has, and
basing which geometry type to use on that?
Regards,
Miles Jordan
Applications Developer
Australian Antarctic Division
___________________________________________________________________________
Australian Antarctic Division - Commonwealth of Australia
IMPORTANT: This transmission is intended for the addressee only. If you are not
the
intended recipient, you are notified that use or dissemination of this
communication is
strictly prohibited by Commonwealth law. If you have received this transmission
in error,
please notify the sender immediately by e-mail or by telephoning +61 3 6232
3209 and
DELETE the message.
Visit our web site at http://www.antarctica.gov.au/
___________________________________________________________________________
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel