Updating Geometry

From: Asli Akarsakarya <asliakar(at)yahoo(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Updating Geometry
Date: 2011-11-10 16:18:58
Message-ID: 1320941938.88348.YahooMailNeo@web45106.mail.sp1.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

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. 

What is the right way to update an existing geometry?

Thank you. 

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alban Hertroys 2011-11-10 16:28:42 Re: How to inquiry a nest result?
Previous Message Jerry Levan 2011-11-10 15:10:32 Fedora 16 note...