[postgis-users] Make GeomFromText() return NULL on ERROR

Paul Ramsey pramsey at opengeo.org
Fri Aug 7 09:58:46 PDT 2009


What is your postgis_full_version() ?

P

On Fri, Aug 7, 2009 at 9:54 AM, Andreas Kalsch<andreaskalsch at gmx.de> wrote:
> I load many geometries at once into a table and create them from WKT.
> The SELECT clause will throw an error, if there is any error in a geometry.
> The error is caused by ST_GeomFromText().
>
> Is there a flag I can set to make the function simply return NULL instead of
> throwing an error?
>
> ST_IsValid() will just validate Geometry objects but no WKTs.
>
> Best,
>
> Andi
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>



More information about the postgis-users mailing list