I am running this on PPC (Dual 1.8 GHz Power PC G5) with 1.5 GB of ram.


This is just a guess -- but there's already a WORDS_BIGENDIAN preprocessor macro in `read_double` so the macro in `read_envelope` may be redundant and incorrect since the `envelope.init` function is never called.

Attached is a patch which just comments out the macro for `read_envelope`.

-Justin
Index: shapefile.hpp
===================================================================
--- shapefile.hpp       (revision 694)
+++ shapefile.hpp       (working copy)
@@ -159,15 +159,15 @@
       
       inline void read_envelope(Envelope<double>& envelope)
       {
-#ifndef WORDS_BIGENDIAN
-         file_.read(reinterpret_cast<char*>(&envelope),sizeof(envelope));
-#else
+        //#ifndef WORDS_BIGENDIAN
+        //file_.read(reinterpret_cast<char*>(&envelope),sizeof(envelope));
+        //#else
          double minx=read_double();
          double miny=read_double();
          double maxx=read_double();
          double maxy=read_double();
          envelope.init(minx,miny,maxx,maxy);
-#endif  
+        //#endif  
       }
       
       inline void skip(std::streampos bytes)
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to