Revision 41024 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.labeling.app/org.gvsig.labeling.app.mainplugin/src/main/java/org/gvsig/labeling/gui/layerproperties/PlacementProperties.java
PlacementProperties.java | ||
---|---|---|
108 | 108 |
import org.gvsig.app.gui.styling.StyleSelector; |
109 | 109 |
import org.gvsig.fmap.crs.CRSFactory; |
110 | 110 |
import org.gvsig.fmap.dal.DALLocator; |
111 |
import org.gvsig.fmap.dal.store.shp.SHPStoreParameters; |
|
112 |
import org.gvsig.fmap.dal.store.shp.SHPStoreProvider; |
|
111 |
import org.gvsig.fmap.dal.DataStoreParameters; |
|
113 | 112 |
import org.gvsig.fmap.geom.Geometry.SUBTYPES; |
114 | 113 |
import org.gvsig.fmap.geom.Geometry.TYPES; |
115 | 114 |
import org.gvsig.fmap.geom.GeometryException; |
... | ... | |
1074 | 1073 |
|
1075 | 1074 |
File shpfile = getDocFolderFile(shp_file_name); |
1076 | 1075 |
IProjection proj = CRSFactory.getCRS(epsg_code); |
1077 |
SHPStoreParameters ssp = (SHPStoreParameters) |
|
1078 |
DALLocator.getDataManager().createStoreParameters( |
|
1079 |
SHPStoreProvider.NAME); |
|
1080 |
ssp.setSHPFile(shpfile); |
|
1081 |
ssp.setCRS(proj); |
|
1076 |
DataStoreParameters ssp = DALLocator.getDataManager().createStoreParameters("Shape"); |
|
1077 |
ssp.setDynValue("shpfile", shpfile); |
|
1078 |
ssp.setDynValue("CRS", proj); |
|
1082 | 1079 |
FLyrVect resp = null; |
1083 | 1080 |
resp = (FLyrVect) MapContextLocator.getMapContextManager().createLayer( |
1084 | 1081 |
shp_file_name, ssp); |
Also available in: Unified diff