[postgis-users] Writing to PostGIS with OGR

Philippe Wüger wuegerp at ee.ethz.ch
Thu Feb 16 01:03:45 PST 2006


Ok, I didn't know I couldn't set features which were ExecuteSQL() result
sets. I changed the program to use GetLayerByName(). SetFeature() now prints
Messages like this: "OGR_PG: PQexec(DELETE FROM "str" WHERE "ogc_fid" =
64696)". Is this what I am supposed to see if features get set?

Unfortunately, I now get an "EXC_BAD_ACCESS" signal during  execution of the
program. If I run it with ExecuteSQL() I don't get that error.

Regards,
Philippe




On 2/15/06, Frank Warmerdam <warmerdam at pobox.com > wrote:
>
> Philippe Wüger wrote:
> > I am using GDAL 1.3.1, I can't find 1.3.2 for download. Where is it
> > available?
>
> Philippe,
>
> Hmm, sorry about that.  1.3.2 only exists in my head, I meant 1.3.1.
> I don't see any sign in the CVS logs that SetFeature was recently
> implemented
> so I suspect there is a bit more going on here.   Is there any change you
> are
> trying to do a SetFeature() on a layer from ExecuteSQL() as opposed to
> a "regular" layer fetched via GetLayer() or GetLayerByName()?
>
> You can't do SetFeature() on resultsets from OGRDataSource::ExecuteSQL()
> and it would likely give back the error code you saw.
>
> Best regards,
> --
> ---------------------------------------+--------------------------------------
>
> I set the clouds in motion - turn up   | Frank Warmerdam,
> warmerdam at pobox.com
> light and sound - activate the windows | http://pobox.com/~warmerdam
> <http://pobox.com/%7Ewarmerdam>
> and watch the world go round - Rush    | Geospatial Programmer for Rent
>
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20060216/0f9b8345/attachment.html>


More information about the postgis-users mailing list