From: Miles Jordan <Miles.Jordan@aa...> - 2009-10-30 05:25:37
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:
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?
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/
Get latest updates about Open Source Projects, Conferences and News.