42 |
import org.geotools.data.FeatureSource; |
import org.geotools.data.FeatureSource; |
43 |
import org.geotools.feature.FeatureCollection; |
import org.geotools.feature.FeatureCollection; |
44 |
import org.geotools.feature.NameImpl; |
import org.geotools.feature.NameImpl; |
45 |
|
import org.geotools.geometry.jts.ReferencedEnvelope; |
46 |
import org.geotools.styling.Style; |
import org.geotools.styling.Style; |
47 |
import org.opengis.feature.simple.SimpleFeature; |
import org.opengis.feature.simple.SimpleFeature; |
48 |
import org.opengis.feature.simple.SimpleFeatureType; |
import org.opengis.feature.simple.SimpleFeatureType; |
318 |
return sldFile; |
return sldFile; |
319 |
} |
} |
320 |
|
|
321 |
|
/** |
322 |
|
* Associates this .sld with the {@link FeatureSource}, but does not |
323 |
|
* automatically load the file. It must not even exist. |
324 |
|
* |
325 |
|
* @param sldFile |
326 |
|
*/ |
327 |
public void setSldFile(File sldFile) { |
public void setSldFile(File sldFile) { |
328 |
this.sldFile = sldFile; |
this.sldFile = sldFile; |
329 |
} |
} |
420 |
} |
} |
421 |
|
|
422 |
public void setCRS(CoordinateReferenceSystem crs2) { |
public void setCRS(CoordinateReferenceSystem crs2) { |
423 |
crs=crs2; |
crs = crs2; |
424 |
|
} |
425 |
|
|
426 |
|
@Override |
427 |
|
public ReferencedEnvelope getReferencedEnvelope() { |
428 |
|
return new ReferencedEnvelope(getEnvelope(), getCrs()); |
429 |
} |
} |
430 |
|
|
431 |
} |
} |