/[schmitzm]/branches/2.0-RC2/src/skrueger/geotools/StyledFS.java
ViewVC logotype

Diff of /branches/2.0-RC2/src/skrueger/geotools/StyledFS.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 453 by alfonx, Wed Oct 7 14:08:41 2009 UTC revision 454 by alfonx, Sun Oct 11 16:12:05 2009 UTC
# Line 50  import org.opengis.feature.type.Attribut Line 50  import org.opengis.feature.type.Attribut
50  import org.opengis.filter.Filter;  import org.opengis.filter.Filter;
51  import org.opengis.referencing.crs.CoordinateReferenceSystem;  import org.opengis.referencing.crs.CoordinateReferenceSystem;
52    
53    import schmitzm.geotools.io.GeoImportUtil;
54  import schmitzm.geotools.styling.StylingUtil;  import schmitzm.geotools.styling.StylingUtil;
55  import skrueger.AttributeMetaData;  import skrueger.AttributeMetaData;
56  import skrueger.i8n.Translation;  import skrueger.i8n.Translation;
# Line 147  public class StyledFS implements StyledF Line 148  public class StyledFS implements StyledF
148          }          }
149    
150          public CoordinateReferenceSystem getCrs() {          public CoordinateReferenceSystem getCrs() {
151                  return fs.getSchema().getCoordinateReferenceSystem();                  CoordinateReferenceSystem crs = fs.getSchema().getCoordinateReferenceSystem();
152                    if (fs.getSchema().getCoordinateReferenceSystem() == null) {
153                            LOGGER.warn("Could not determine the CRS of "+getTitle()+". Using default "+GeoImportUtil.getDefaultCRS());
154                            crs = GeoImportUtil.getDefaultCRS();
155                    }
156                    return crs;
157          }          }
158    
159          public Translation getDesc() {          public Translation getDesc() {

Legend:
Removed from v.453  
changed lines
  Added in v.454

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26