/[schmitzm]/branches/2.4.x/src/skrueger/geotools/io/TwistedLatLonFeatureSource.java
ViewVC logotype

Diff of /branches/2.4.x/src/skrueger/geotools/io/TwistedLatLonFeatureSource.java

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

revision 1250 by alfonx, Fri Oct 22 21:35:30 2010 UTC revision 1251 by alfonx, Sun Nov 7 19:12:44 2010 UTC
# Line 13  package skrueger.geotools.io; Line 13  package skrueger.geotools.io;
13  import java.io.IOException;  import java.io.IOException;
14  import java.util.Set;  import java.util.Set;
15    
16    import org.apache.log4j.Logger;
17  import org.geotools.data.DataAccess;  import org.geotools.data.DataAccess;
18  import org.geotools.data.FeatureListener;  import org.geotools.data.FeatureListener;
19  import org.geotools.data.FeatureSource;  import org.geotools.data.FeatureSource;
# Line 28  import org.opengis.filter.Filter; Line 29  import org.opengis.filter.Filter;
29  import org.opengis.referencing.crs.CoordinateReferenceSystem;  import org.opengis.referencing.crs.CoordinateReferenceSystem;
30  import org.opengis.referencing.crs.GeographicCRS;  import org.opengis.referencing.crs.GeographicCRS;
31    
32    import schmitzm.geotools.feature.FeatureUtil;
33    import schmitzm.lang.LangUtil;
34    
35  import com.vividsolutions.jts.geom.Envelope;  import com.vividsolutions.jts.geom.Envelope;
36    
37  public class TwistedLatLonFeatureSource implements  public class TwistedLatLonFeatureSource implements
# Line 43  public class TwistedLatLonFeatureSource Line 47  public class TwistedLatLonFeatureSource
47                  CoordinateReferenceSystem crs = originaleFS.getSchema()                  CoordinateReferenceSystem crs = originaleFS.getSchema()
48                                  .getCoordinateReferenceSystem();                                  .getCoordinateReferenceSystem();
49                  if (crs instanceof GeographicCRS) {                  if (crs instanceof GeographicCRS) {
50                          System.out.println("CRS is GeographicCRS, twist it!");                          LOGGER.debug("CRS is GeographicCRS, twist it!");
51                          setTwist(true);                          setTwist(true);
52                  }                  }
53          }          }
54    
55            private static final Logger LOGGER = LangUtil
56                            .createLogger(TwistedLatLonFeatureSource.class);
57    
58          @Override          @Override
59          public void addFeatureListener(FeatureListener listener) {          public void addFeatureListener(FeatureListener listener) {
60                  originaleFS.addFeatureListener(listener);                  originaleFS.addFeatureListener(listener);

Legend:
Removed from v.1250  
changed lines
  Added in v.1251

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26