assume byteorder arrives in native arch (from postgis), and therefore ensure byteswapping for wkb on big endian systems - closes #515 - TODO check breakage in other plugins as per #516 - thanks Brad Simpson for the report and fix

This commit is contained in:
Dane Springmeyer 2010-02-19 21:08:30 +00:00
parent 7ed73b3b69
commit 4b1a4d9497
2 changed files with 4 additions and 5 deletions

View file

@ -15,6 +15,8 @@ For a complete change history, see the SVN log.
Mapnik 0.7.1 Release
--------------------
- Fixed reading of PostGIS data on Big Endian systems (#515)
- PostGIS: Added better support for alterative schemas (#500)
- AGG Renderer - Enforced default gamma function on all symbolizers to ensure proper antialiasing

View file

@ -78,11 +78,8 @@ namespace mapnik
break;
}
#ifndef MAPNIK_BIG_ENDIAN
needSwap_=byteOrder_?wkbXDR:wkbNDR;
#else
needSwap_=byteOrder_?wkbNDR:wkbXDR;
#endif
// 0 if true (NDR): 1 if false (XDR)
needSwap_ = byteOrder_?wkbXDR:wkbNDR;
}
~wkb_reader() {}