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; |
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() { |