I have been debugging the program for quite a while now, but can't
figure out the problem. I could send you an archive with the files. It
should be possible to get it running on your machine, you just need a
PostGIS table as data input.<br>
<br>
Shall I send you the files?<br>
<br>
Thanks for the help & regards,<br>
Philippe<br>
<br><br><div><span class="gmail_quote">On 2/16/06, <b class="gmail_sendername">Frank Warmerdam</b> <<a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Philippe Wüger wrote:<br>> Ok, I didn't know I couldn't set features which were ExecuteSQL() result<br>> sets. I changed the program to use GetLayerByName(). SetFeature() now<br>> prints Messages like this: "OGR_PG: PQexec(DELETE FROM "str" WHERE
<br>> "ogc_fid" = 64696)". Is this what I am supposed to see if features get set?<br><br>Philippe,<br><br>Yes, that should show up in debug mode.  OGR's PG driver does SetFeature()<br>by deleting the existing row, and then re-creating it rather than trying
<br>to use UPDATE.<br><br>> Unfortunately, I now get an "EXC_BAD_ACCESS" signal during  execution of<br>> the program. If I run it with ExecuteSQL() I don't get that error.<br><br>Well, the bad access is definitely not supposed to happen.  If you are in
<br>a position to debug things, that would be very helpful.  If not, perhaps<br>we can figure out how I can reproduce the problem here.<br><br>Best regards,<br>--<br>---------------------------------------+--------------------------------------
<br>I set the clouds in motion - turn up   | Frank Warmerdam, <a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a><br>light and sound - activate the windows | <a href="http://pobox.com/~warmerdam">http://pobox.com/~warmerdam
</a><br>and watch the world go round - Rush    | Geospatial Programmer for Rent<br><br>_______________________________________________<br>postgis-users mailing list<br><a href="mailto:postgis-users@postgis.refractions.net">
postgis-users@postgis.refractions.net</a><br><a href="http://postgis.refractions.net/mailman/listinfo/postgis-users">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br></blockquote></div><br>