Hello All!
I'm new to GeoTools and need some help.
The problems is how to convert the CRS, SWEREF99 to WGS84 (if its is
possible).
Cause i wanna fetch feature data at the given position in WGS84.
the shapefile im reading is in SWEREF99.
So my question is can i convert it somehow?
This is how im reading the shapefile/map
FileDataStore store = FileDataStoreFinder.getDataStore(file);
FeatureSource featureSource = store.getFeatureSource();
MapContext mapcontext = new MapContext();
Style style = SLD.createSimpleStyle(featureSource.getSchema());
Layer layer = new FeatureLayer(featureSource, style);
MapLayer maplayer = new MapLayer(layer);
mapcontext.addLayer(layer);
VectorLayerHelper VLayerHelper = new
VectorLayerHelper(mapcontext,maplayer);
Thanks in advance for helping me,
Azlan
--
View this message in context:
http://osgeo-org.1560.n6.nabble.com/Convert-to-WGS84-tp4467113p4467113.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users