3

I would like to transform Barcelona map coordinates to Latitude, Longitude with Proj.4. I'm using EPSG number 23031 and the parameters are: +proj=utm +zone=31 +ellps=intl +towgs84=-87,-98,-121,0,0,0,0 +units=m +no_defs

However, the Y coordinates in the original maps are shifted by -4000000.

For example:
x=438120.5406, y=568084.9572 instead of x=438120.5406, y=4568084.9572.

I realized that I have to modify the +towgs84 values, but I can't find the exact values.

What is the correct method?

1
  • Can you please add to your question one of the input latitude, longitude coordinates? PROJ.4 is widely used, and it's unlikely that it's not working. I suspect the input data. Are the input values in WGS84 or ED50?
    – mkennedy
    Commented Sep 22, 2015 at 17:01

1 Answer 1

3

+x_0 and +y_0 parameters can be used to set false origin. See: https://trac.osgeo.org/proj/wiki/GenParms#FalseEastingNorthing

3
  • 1
    I tried +proj=utm +zone=31 +ellps=intl +towgs84=-87,-98,-121,0,0,0,0 +units=m +no_defs +y_0=4000000, but the results are not correct:
    – Valeria
    Commented Sep 22, 2015 at 11:59
  • I tried +proj=utm +zone=31 +ellps=intl +towgs84=-87,-98,-121,0,0,0,0 +units=m +no_defs +y_0=4000000, but the results are not correct: lat=5.250163071319898, lon=2.3653349246780837. The lat value should be around 41. (I have already tried it before my question). In the trac.osgeo.org/proj/wiki/GenParms#FalseEastingNorthing I read: "Some coordinate systems (such as UTM) have implicit false easting and northing values. " I suppose the +towgs84=-87,-98,-121,0,0,0,0 values should be modified, with "implicit" way.
    – Valeria
    Commented Sep 22, 2015 at 12:07
  • +towgs are to make more precise the transformation, try without +towgs. But the three non-zero parameters in the +towgs are x,y,z offsets. These cannot cause a big change in the coordinates.
    – Zoltan
    Commented Sep 24, 2015 at 7:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.