<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Dear R-users,<br>
<br>
I have a problem when I create a spatialpolygondataframe<br>
<br>
I want to have an EPSG 2154 but after the export the epsg is
102110.<br>
<br>
It seems to be the "same" CRS but it is not what I want.<br>
<br>
A small example to help me<br>
Best regards<br>
<br>
xlla=700000<br>
ylla=6500000<br>
ncolsa=1000<br>
nrowsa=1000<br>
cellsizea=1<br>
<br>
tableau <- data.frame(IDENT = 1, ncols = 1000, row.names = 1)<br>
<br>
crds <- cbind(x=c(xlla,xlla+ncolsa*cellsizea,
xlla+ncolsa*cellsizea, xlla, xlla), y=c(ylla, ylla,
ylla+nrowsa*cellsizea, ylla+nrowsa*cellsizea, ylla))<br>
<br>
Pa <- Polygon (crds)<br>
Psa <- Polygons (list ( Pa ), 1)<br>
pola <- SpatialPolygons (list ( Psa ),
proj4string=CRS("+init=epsg:2154"))<br>
SPDFa <- SpatialPolygonsDataFrame(pola, tableau)<br>
<br>
writeOGR(SPDFa, dsn="C:\\ajeter",layer="toto",driver="ESRI
Shapefile",overwrite_layer=TRUE)<br>
<br>
<div class="moz-signature">
<meta http-equiv="content-type" content="text/html;
charset=UTF-8">
<title></title>
<font face="Arial" size="2,5"><b>
Frédéric Pons
</b></font><br>
<div class="moz-signature">
<div class="moz-signature"> <font color="#666666"
face="Arial" size="1"><b>
Expert hydraulique sur les inondations et aléas côtiers
<br>
</b></font><font color="#666666" face="Arial" size="1"><b>
DREC/Service Risques Inondations Littoraux et
Hydraulique
</b></font><font color="#666666" face="Arial" size="1"><b>
- Tél.: (33)4 42 24 76 68
</b></font><br>
<font color="#666666" face="Arial" size="1"><b>
Direction Territoriale Méditerranée<br>
</b></font>
<img alt="" src="cid:part1.04060105.02070900@cerema.fr"
height="45" width="183"><br>
<div class="moz-signature"><font color="#ee7f00"
face="Arial" size="1">Centre d’études et d’expertise sur
les risques, l’environnement, la mobilité et
l’aménagement
</font><br>
<a href="http://www.cerema.fr" class="moz-signature"><font
color="#ee7f00" face="Arial" size="4">www.cerema.fr</font></a><br>
</div>
</div>
</div>
</div>
</div>
<br>
</body>
</html>