<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>I have a shapefile from CBS/Kadaster in EPSG:28992 (Amersfoort / RD New) projection and I use st_transform to reproject to EPSG:4326. <br>
Small R script example:<br>
</p>
<p style="margin-bottom: 0in"><br>
</p>
<p style="margin-bottom: 0in"></p>
<div>setwd("c:/testTransform")</div>
<div>library("sf")</div>
<div>polyPurmerend <- st_read(dsn = "c:/testTransform", layer = "Purmerend",stringsAsFactors = FALSE)</div>
<div>polyPurmerend_WGS84 <- st_transform(polyPurmerend,4326)</div>
<div>st_write(polyPurmerend_WGS84,dsn=paste0("","Purmerend_WGS84",".gpkg"),"polygon", layer_options="OVERWRITE=YES")</div>
<div><br>
</div>
<div>Unfortunately the resulting layer is at a different position.</div>
<div><br>
</div>
<div><img size="35402" contenttype="image/png" id="img213998" contextid="img868501" tabindex="0" style="max-width: 99.9%; user-select: none;" src="cid:7954d268-0209-4785-bc33-32c08ec236d0"><br>
</div>
<div><br>
I cannot figure out why.</div>
<div><br>
</div>
<div>Rinus Deurloo</div>
<div>University of Amsterdam.</div>
<p style="margin-bottom: 0in"><br>
</p>
<p style="margin-bottom: 0in"><br>
</p>
<br>
<p></p>
</div>
</body>
</html>