No luck. Still comes up with the same envelope:

Envelope
(4.157455691574588e
-317
,-1.62334203800658e-118,4.157518931977256e-317,4.15549523909189e-317)

On Apr 21, 2008, at 11:55 AM, Justin Bronn wrote:

>
>> 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

_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to