Hi<br><br>Are you sure of EPSG code 31495? In my epsg file, installed with proj, I can find only:<br><br>epsg: 31461 # DHDN / 3-degree Gauss zone 1 (deprecated)<br>epsg: 31462 # DHDN / 3-degree Gauss zone 2 (deprecated)<br>
epsg: 31463 # DHDN / 3-degree Gauss zone 3 (deprecated)<br>epsg: 31464 # DHDN / 3-degree Gauss zone 4 (deprecated)<br>epsg: 31465 # DHDN / 3-degree Gauss zone 5 (deprecated)<br>epsg: 5520 # DHDN / 3-degree Gauss-Kruger zone 1<br>
epsg: 31466 # DHDN / 3-degree Gauss-Kruger zone 2<br>epsg: 31467 # DHDN / 3-degree Gauss-Kruger zone 3<br>epsg: 31468 # DHDN / 3-degree Gauss-Kruger zone 4<br>epsg: 31469 # DHDN / 3-degree Gauss-Kruger zone 5<br>
<br>If a projection ID is not in the file the expected answer is the one you got. It is not a configuration problem.<br>Check <a href="http://spatialreference.org">http://spatialreference.org</a> to check the epsg code<br>
<br>Regards<br><br>Jose Gonçalves<br><br><br><br><br><br><div class="gmail_quote">2012/5/7 rps_rt <span dir="ltr"><<a href="mailto:ec_eng01@yahoo.com" target="_blank">ec_eng01@yahoo.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear Warmerdam and all members,<br>
<br>
I have been browsing and reading for a while to convert my coordinates with<br>
no hope until finding this Proj. 4.<br>
<br>
Kindly, I seek your support here ... I am using Linux Ubuntu to convert from<br>
long/lat (WGS84) to Cartesian (x/y) and vice versa. My need here is to get<br>
as accurate as possible results (cm-level if possible).<br>
<br>
I was reading this thread because I had a problem of getting a cs2cs results<br>
for espg=31495, while I could get them for espg=31468. But the conversion<br>
results with the later one were not accurate ~ almost 100 meters away.<br>
<br>
e.g.,: echo "13.755944 51.054555" | cs2cs +init=epsg:4326 +to<br>
+init=epsg:31468<br>
<br>
but when I change it to: echo "13.755944 51.054555" | cs2cs +init=epsg:4326<br>
+to +init=epsg:31495,<br>
I get the message "projection initialization failure cause: no options found<br>
in 'init' file".<br>
<br>
I tried to change something based on this thread, to make sure that my<br>
PROJ_LIB path is in place, but it seems I ruined everything. Afterwards, all<br>
espg zones gave the below error:<br>
"<br>
pj_open_lib(epsg): call fopen(/usr/local/bin/cs2cs/epsg) - failed<br>
Using from definition: init=epsg:31467<br>
Rel. 4.8.0, 6 March 2012<br>
<cs2cs>:<br>
projection initialization cause: no system list, errno: 20<br>
"<br>
<br>
I tried to "make uninstall" and "make install" but nothing was fixed!!<br>
<br>
Here are more details about my project:<br>
<br>
My locations are in Dresden city, Germany, (DHDN4), and I have (I assume)<br>
all what is needed to get my coordinates converted accurately, but no idea<br>
how to process them in Proj. 4 (I am totally new here):<br>
<br>
PROJCS["DHDN / Germany zone<br>
4",GEOGCS["DHDN",DATUM["Deutsche_Hauptdreiecksnetz",<br>
SPHEROID["Bessel 1841",6377397.155,299.1528128]],PRIMEM["Greenwich",0],<br>
UNIT["degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],<br>
PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",12],<br>
PARAMETER["scale_factor",1],PARAMETER["false_easting",4500000],<br>
PARAMETER["false_northing",0],UNIT["metre",1]]<br>
TOWGS84=582.0,105.0,414.0,5.042e-6,1.696e-6,-1.4932e-5,8.3<br>
EPSG=31495<br>
<br>
%Seven parameters:<br>
% 582.00 - Translation dx in meter to WGS84<br>
% 105.0 - Translation dy in meter to WGS84<br>
% 414.50 - Translation dz in meter to WGS84<br>
% 5.042e-6 - Rotation ro (omega) in Radiant to WGS84<br>
% 1.696e-6 - Rotation rf (phi) in radiant to WGS84<br>
% -1.4932e-5 - Rotation rk (Kappa) in Radiant to WGS84<br>
% 8.3e-06 - Mapscale factor in ppm (parts per million) to WGS84(m)<br>
<br>
Sorry for the long thread but did not want to miss any details, even in my<br>
first ever thread in this forum.<br>
<br>
I will be looking forward to reading form you.<br>
Best regards,<br>
Amro<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.n6.nabble.com/Using-EPSG-codes-with-cs2cs-tp3841592p4957639.html" target="_blank">http://osgeo-org.1560.n6.nabble.com/Using-EPSG-codes-with-cs2cs-tp3841592p4957639.html</a><br>
<div class="im HOEnZb">Sent from the PROJ.4 mailing list archive at Nabble.com.<br>
</div><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Proj mailing list<br>
<a href="mailto:Proj@lists.maptools.org">Proj@lists.maptools.org</a><br>
<a href="http://lists.maptools.org/mailman/listinfo/proj" target="_blank">http://lists.maptools.org/mailman/listinfo/proj</a><br>
</div></div></blockquote></div><br>