Arnd, Thanks much for your response. I am endeavoring to do what you suggest, although using PHP's native PostgreSQL connectors instead of ODBC.
Currently, I am using the wfs-t.html scripts as my basis, and passing in the result of "OpenLayers.Ajax.serializeXMLToString(data);" to get the edited features into a form I can work with. Having done that, I realize I now have to contend with parsing this GML, and am wading through that. I would be interested in any code that you have put together that can handle the conversion from GML to WKT (if that is in fact what you are doing). Regards, r.b. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, July 30, 2007 12:37 PM To: Burgholzer,Robert Cc: [email protected] Subject: AW: [OpenLayers-Users] writing to my own wfs server Hello Robert, I would think, you can talk to your postgis-db via odbc. I use the editing functions of openlayers to draw a feature, select that feature and use a serverside asp-script to insert the selected feature as WKT string via odbc into an access-db. With mapserver and ogr I can request the geometry and attributes from the access-db and show it in the map. It is also possible with a WMS GetFeatureRequest to select features from the db and delete the features in the db with odbc. When the great editing tools from openlayers get the possibility to update features (changing the geometry after drawing it), one can use an internet explorer and openlayers for drawing, updating and deleting geometry data. Mit freundlichen Grüssen Arnd Wippermann http://gis.ibbeck.de/ginfo/ -----Ursprüngliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Burgholzer,Robert Gesendet: Freitag, 27. Juli 2007 21:44 An: [email protected] Betreff: Re: [OpenLayers-Users] writing to my own wfs server I am thinking perhaps to post the data from the openlayers, and intercept it with some php, that can then enter it into postgis via WKT (assuming that the openlayers wfs-t object produces point cords for the shapes, which I haven't verified, but assume that it must). I will look at the packages to see further. r.b. -----Original Message----- From: Christopher Schmidt [mailto:[EMAIL PROTECTED] Sent: Friday, July 27, 2007 3:41 PM To: Burgholzer,Robert Cc: [email protected] Subject: Re: [OpenLayers-Users] writing to my own wfs server On Fri, Jul 27, 2007 at 02:46:50PM -0400, Burgholzer,Robert wrote: > Ahh yes, double-drat! > > Don't suppose anyone has put together any PostGIS functions in > openlayers that will permit writing a WKT feature directly to a PostGIS > server? I am really dreading the prospect of another map-serving entity > on my machine. If you mean something that allows you to talk to PostGIS directly from a web browser... I can't imagine how that would work. You're going to need some kind of layer inbetween that speaks a non-binary language. FeatureServer is a Python CGI that is designed to speak a variety of languages on the input side and output side, and is designed to be as little work as possible to install. However, it requires some level of configuration, and it is likely, or even possible, that you would be better off with GeoServer. Regards, -- Christopher Schmidt MetaCarta _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
