Control: clone -1 -2 Control: reassign -2 libproj13 Control: retitle -2 libproj13: PROJ4 version 5 ignores +vunits Control: block -1 by -2
On Thu, Feb 08, 2018 at 10:55:00PM +0100, Bas Couwenberg wrote: > Your package FTBFS due to missing compatibility with Proj 5.0.0: > > ./csbadsdfix.svx:2: error: Station "1" fixed before CS command first used > ./csbadsdfix.svx:3:5: error: Unknown coordinate system > *cs EPSG:-1 > ^~~~~~~ > ./csbadsdfix.svx:4:5: error: Unknown coordinate system > *cs ERSI:1234 > ^~~~~~~~~ > ./csbadsdfix.svx:5:5: error: Unknown coordinate system > *cs EUR79Z31 > ^~~~~~~~ [...] This isn't the problem (these testcases are testing that we reject coordinate systems which aren't valid, so these errors are expected and correct). The test failure seems to be actually due to the new PROJ4 ignoring +vunits entirely and can be reproduced without involving Survex by using cs2cs: $ echo 36000 83000 5250|cs2cs +proj=tmerc +lat_0=0 +lon_0=13d20 +k=1 +x_0=0 +y_0=-5200000 +ellps=bessel +towgs84=577.326,90.129,463.919,5.137,1.474,5.297,2.4232 +vunits=ft +to +proj=tmerc +lat_0=0 +lon_0=13d20 +k=1 +x_0=0 +y_0=-5200000 +ellps=bessel +towgs84=577.326,90.129,463.919,5.137,1.474,5.297,2.4232 36000.00 83000.00 5250.00 In older versions this converted the altitude from feet to metres, and the output was: 36000.00 83000.00 1600.20 Cheers, Olly