Re: Updating Geometry

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Asli Akarsakarya <asliakar(at)yahoo(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Updating Geometry
Date: 2011-11-10 21:38:20
Message-ID: 16795.1320961100@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Asli Akarsakarya <asliakar(at)yahoo(dot)com> writes:
> I am having trouble when attempting to update an existing geometry on a spatial table. The table stores 2D Point geometry, with the SRID 101. The update statement i am trying to use to update the geometry with the id 110 is as follows:

> UPDATE <Table Name> SET <Geometry Column Name> = GeometryFromText('POINT(44 31)', 101) WHERE <id Column>=110

> But I get an error that says the statement violates the "enforce_srid_position" restriction. Though the SRID's are the same.

You'll probably have better luck asking about this on the postgis
mailing lists ...

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ondrej Ivanič 2011-11-10 21:50:38 Re: Learning to rephrase equivalent queries?
Previous Message John R Pierce 2011-11-10 21:36:23 Re: PostgreSQL uninstall fails