[postgis-devel] ST_PointN incorrectly defined

Mark Leslie mark at refractions.net
Wed Jul 4 10:13:41 PDT 2007


You are correct.  I've applied the patch.
Thanks,
Mark

Michael Fuhr wrote:
> The CREATE statement for ST_PointN in lwgeom/lwpostgis.sql.in is:
> 
> CREATEFUNCTION ST_PointN(geometry)
>         RETURNS geometry
>         AS '@MODULE_FILENAME@','LWGEOM_pointn_linestring'
>         LANGUAGE 'C' _IMMUTABLE_STRICT; -- WITH (isstrict);
> 
> Shouldn't that be (geometry,integer)?
> 
> 
> 
> ------------------------------------------------------------------------
> 
> Index: lwgeom/lwpostgis.sql.in
> ===================================================================
> --- lwgeom/lwpostgis.sql.in	(revision 2645)
> +++ lwgeom/lwpostgis.sql.in	(working copy)
> @@ -4926,8 +4926,8 @@
>  	AS '@MODULE_FILENAME@','LWGEOM_pointn_linestring'
>  	LANGUAGE 'C' _IMMUTABLE_STRICT; -- WITH (isstrict);
>  
> --- PostGIS equivalent function: PointN(geometry)
> -CREATEFUNCTION ST_PointN(geometry)
> +-- PostGIS equivalent function: PointN(geometry,integer)
> +CREATEFUNCTION ST_PointN(geometry,integer)
>  	RETURNS geometry
>  	AS '@MODULE_FILENAME@','LWGEOM_pointn_linestring'
>  	LANGUAGE 'C' _IMMUTABLE_STRICT; -- WITH (isstrict);
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> 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