Hi, I have project on github to convert a map to covjon (https://covjson.org/) format, I am now trying to get the map axis orientation I am doing it with EPSGTreatsAsLatLong:
https://github.com/fsvieira/map2covjson/blob/master/map2covjson.cpp#L102 The problem is that I am always getting 0 (FALSE) to a map that I think it should be Lat/Lon. Some of geotiff that I am testing are here, https://github.com/fsvieira/map2covjson/tree/master/tests How can I get the correct axis order? This is the gdalinfo for one of the files: Driver: GTiff/GeoTIFF Files: UTM29-582-4295.Z.tiff UTM29-582-4295.Z.tiff.aux.xml Size is 1000, 1000 Coordinate System is: PROJCS["WGS 84 / UTM zone 29N", GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.257223563, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4326"]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",-9], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",500000], PARAMETER["false_northing",0], UNIT["metre",1, AUTHORITY["EPSG","9001"]], AUTHORITY["EPSG","32629"]] Origin = (582000.000000000000000,4296000.000000000000000) Pixel Size = (1.000000000000000,-1.000000000000000) Metadata: AERA_OR_POINT=Point AREA_OR_POINT=Area TIFFTAG_IMAGEDESCRIPTION=Image<gray> Image Structure Metadata: INTERLEAVE=BAND Corner Coordinates: Upper Left ( 582000.000, 4296000.000) ( 8d 3'20.06"W, 38d48'32.24"N) Lower Left ( 582000.000, 4295000.000) ( 8d 3'20.49"W, 38d47'59.80"N) Upper Right ( 583000.000, 4296000.000) ( 8d 2'38.60"W, 38d48'31.90"N) Lower Right ( 583000.000, 4295000.000) ( 8d 2'39.03"W, 38d47'59.46"N) Center ( 582500.000, 4295500.000) ( 8d 2'59.54"W, 38d48'15.85"N) Band 1 Block=1000x2 Type=Float32, ColorInterp=Gray Min=251.308 Max=296.825 Minimum=251.308, Maximum=296.825, Mean=277.947, StdDev=8.983 Metadata: STATISTICS_MAXIMUM=296,82501220703 STATISTICS_MEAN=277,94695054859 STATISTICS_MINIMUM=251,30801391602 STATISTICS_STDDEV=8,9831460212931 Thanks, Filipe Vieira.
_______________________________________________ Discuss mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/discuss
