Opened 21 years ago

Closed 21 years ago

Last modified 21 years ago

#283 closed defect (invalid)

postgis interface has problems with different wkb data endianness

Reported by: bear@… Owned by: refractions
Priority: high Milestone:
Component: PostGIS Interface Version: 4.0
Severity: normal Keywords:
Cc:

Description

WKB geometries that are not in the same endianness as mapserver cannot be used.
For example if we run the SQL server on an intel machine, query a layer with WKB
geometry and use that as layer data on a Macintosh, Mapserver dies.

My guess is this is because of the memcpy() used on floats in force_<shape>
routines, but I might be wrong.

Change History (2)

comment:1 by bear@…, 21 years ago

Resolution: invalid
Status: newclosed

comment:2 by bear@…, 21 years ago

It turned out that the problem was that the postgis (and opengis simple features
standard in general) DO tako into account the endianness of the mapserver
running machine, problems rise when the machine does not have one of the 2
standard byte orders (like 4-2-3-1 on some old MIPS machines).
Note: See TracTickets for help on using tickets.