SimpleFeatureTypeBuilder ignores supplied crs in some cases
-----------------------------------------------------------
Key: GEOT-2892
URL: http://jira.codehaus.org/browse/GEOT-2892
Project: GeoTools
Issue Type: Bug
Affects Versions: 2.6.0
Reporter: Michael Bedward
Assignee: Jody Garnett
The javadocs imply that the following code should result in a feature type with
a specified CRS...
CoordinateReferenceSystem crs = ...
SimpleFeatureTypeBuilder builder = new SimpleFeatureTypeBuilder();
builder.add("the_geom", Point.class);
builder.add("label", String.class);
builder.setCRS(crs);
SimpleFeatureType type = builder.buildFeatureType();
But the built type will have a null CRS because the setCRS method was called
after the geometric attribute was defined. I think this qualifies as
"surprising behaviour" but perhaps it's a shortcoming of the docs rather than a
bug in the code (?)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel