SimpleFeatureTypeBuilder setCRS not respected
---------------------------------------------

                 Key: GEOT-3489
                 URL: http://jira.codehaus.org/browse/GEOT-3489
             Project: GeoTools
          Issue Type: Bug
          Components: core feature
    Affects Versions: 2.7.0
            Reporter: Jody Garnett


We have had a couple of emails with respect to the setCRS method not working. 
This may be either an bug or a documentation issue.

Example of problem from Oleksandr Huziy:
{code}
        simpleFeatureTypeBuilder.add("geometry", Polygon.class);
        simpleFeatureTypeBuilder.setCRS(re.getCoordinateReferenceSystem());
        simpleFeatureTypeBuilder.setName("polygon");
        SimpleFeatureType type = simpleFeatureTypeBuilder.buildFeatureType();
{code}

His workaround is to retype the result:
{code}
        type = DataUtilities.createSubType(type, null, 
DefaultGeographicCRS.WGS84);
{code}

Expected behaviour is:
- http://docs.geotools.org/latest/userguide/guide/library/opengis/feature.html

-- 
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

        

------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to