[postgis-devel] Z() function
strk
strk at keybit.net
Wed Aug 11 10:11:57 PDT 2004
On Wed, Aug 11, 2004 at 12:43:59PM -0400, Carl Anderson wrote:
> David Blasby wrote:
>
> >It should be returning 0.
> >
> >PostGIS stores everything as x,y,z points. If you give it only (x,y)
> >it'll set z to 0.
> >
> >The LWGEOM objects are smarter about this.
> >
> >dave
> >
> >
> >
> I get 1.7e-308 about 1/4 of the time.
>
> it creeps into data through custom functions and
> makes JUMP very unhappy.
>
> Should I try turning off compiler optimizations?
>
> C.
Carl, please check documentation for your 'strtod'
function. WKT parser uses strtod and sets Z to 0.0 if
it sets the second argument to the same value of the
first argument. This conforms to ANSI C.
ref: postgis_inout.c:439
--strk;
>
>
>
>
> --
> Carl Anderson
> GIS Manager Fulton County, Georgia
> carl.anderson at co.fulton.ga.us
> 404.730.8026
>
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel
More information about the postgis-devel
mailing list