From crschmidt at metacarta.com Tue Jun 5 13:44:21 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Thu Feb 4 21:35:10 2010 Subject: [Featureserver] [lgarcia@blom.es: FeatureServer Question, thank's] Message-ID: <20070605174421.GA21411@metacarta.com> Laura -- I don't have time to answer this today, but I'm forwarding it to the FeatureServer list. It's ossible someone else will be able to help you there -- if not, I'll respond as soon as I get a chance. -- Chris ----- Forwarded message from Laura Garcia ----- From: Laura Garcia To: labs@metacarta.com Date: Tue, 05 Jun 2007 18:59:26 +0200 Subject: FeatureServer Question, thank's Good afternoon, I'm Laura Garc?a, a software developer from a Spanish company. We work a lot with SIG, and in fact I try to make an example application with OpenLayers, FeatureServer and a PostGis BD. I've tried to config featureServer, but I can't see any result. I think I make some mistakes but I feel lost. I wanted to know if you could support me to get it. Firstly, I'm sorry for my English mistakes and secondly I tell you what I do at the moment. I created my PostGis BD and a html page (very simple) whit openlayers. It was easy. But now, I don't know what i do to use FeatureServer. I config 'featureserver.cfg' file, I write somethin like this: [mylayer] type=PostGIS dsn=laguna layer=buzones fid=gid geometry=geom and I modify another file: ' /apache/conf/httpd.conf ', I add a new directory... addhandler cgi-script .cgi options +ExecCGI I don't know if i have to make something wrong or if what i've modified is ok. I'll thank you a lot, if you could help me, thanks... Laura. ----- End forwarded message ----- -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Wed Jun 6 07:55:14 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Thu Feb 4 21:35:10 2010 Subject: [Featureserver] [lgarcia@blom.es: FeatureServer Question, thank's] In-Reply-To: <20070605174421.GA21411@metacarta.com> References: <20070605174421.GA21411@metacarta.com> Message-ID: <20070606115514.GA25305@metacarta.com> On Tue, Jun 05, 2007 at 01:44:21PM -0400, Christopher Schmidt wrote: > I'm Laura Garc?a, a software developer from a Spanish company. We > work a lot with SIG, and in fact I try to make an example application > with OpenLayers, FeatureServer and a PostGis BD. I've tried to config > featureServer, but I can't see any result. I think I make some mistakes > but I feel lost. I wanted to know if you could support me to get it. > Firstly, I'm sorry for my English mistakes and secondly I tell you what > I do at the moment. I created my PostGis BD and a html page (very > simple) whit openlayers. It was easy. But now, I don't know what i do to > use FeatureServer. > I config 'featureserver.cfg' file, I write somethin like this: > > [mylayer] > type=PostGIS > dsn=laguna > layer=buzones > fid=gid > geometry=geom > > and I modify another file: ' /apache/conf/httpd.conf ', I add a new > directory... > > addhandler cgi-script .cgi > options +ExecCGI > > Okay. If you go to http://localhost/webdir/of/featureserver/featureserver.cgi/mylayer , what do you get? Regards, -- Christopher Schmidt MetaCarta From senorsaru at yahoo.com Mon Jun 18 15:24:10 2007 From: senorsaru at yahoo.com (Alex Quinn) Date: Thu Feb 4 21:35:10 2010 Subject: [Featureserver] Can I have arbitrary HTML on top of the map? Message-ID: <508155.30909.qm@web63908.mail.re1.yahoo.com> I'd like to have something like this on top of an OpenLayers map, and have it linked to locations. Is this possible?
Lorem ipsum...
a tiny bit more content
Basically, we're trying to implement a geographic search interface. You start with a map. On the map are some thumbnail images of things you can search for. Next to each icon is a "next" link which uses asynchronous HTTP (AJAX) to load in a new image. If the map is dragged, these DIVs should move with the map. Is this possible with FeatureServer? How difficult would it be? I saw this demo, which seems to indicate that it's possible. http://labs.metacarta.com/flickrbrowse/ Alex ____________________________________________________________________________________ Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 From stephan.holl at intevation.de Thu Jun 21 04:04:43 2007 From: stephan.holl at intevation.de (Stephan Holl) Date: Thu Feb 4 21:35:10 2010 Subject: [Featureserver] PostGIS-backend-problems. Message-ID: <20070621100443.3ff97568@thoe.hq.intevation.de> Hello featureserver-users, I have downloaded featureserver 1.03 and tried to set it up as CGI with PostGIS as backend using the native PostGIS-driver (not OGR one). The index.html-demo is used for my purposes. Trying to add points and lines works flawsless, but Polygones would not get inserted unless I added the attached diff. Since I am new to featureserver as well as to python I like to ask if anybody has this problems as well? Featureserver works really nice for quick edits though. Good work! Best Stephan -- Stephan Holl , http://intevation.de/~stephan Tel: +49 (0)541-33 50 8 32 | Intevation GmbH | AG Osnabr?ck - HR B 18998 Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner -------------- next part -------------- A non-text attachment was scrubbed... Name: postgis.diff Type: text/x-patch Size: 762 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/featureserver/attachments/20070621/d863fcee/postgis.bin From crschmidt at metacarta.com Thu Jun 21 04:22:35 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Thu Feb 4 21:35:10 2010 Subject: [Featureserver] PostGIS-backend-problems. In-Reply-To: <20070621100443.3ff97568@thoe.hq.intevation.de> References: <20070621100443.3ff97568@thoe.hq.intevation.de> Message-ID: <20070621082235.GB2832@metacarta.com> On Thu, Jun 21, 2007 at 10:04:43AM +0200, Stephan Holl wrote: > Hello featureserver-users, > > I have downloaded featureserver 1.03 and tried to set it up as CGI with > PostGIS as backend using the native PostGIS-driver (not OGR one). > > The index.html-demo is used for my purposes. Trying to add points and > lines works flawsless, but Polygones would not get inserted unless I > added the attached diff. Since I am new to featureserver as well as to > python I like to ask if anybody has this problems as well? > > Featureserver works really nice for quick edits though. Good work! Wow, I don't have a clue how we missed this. Clearly, the polygon code never worked -- the last else statement there was meant to catch it, but never did anything with the text it started to create. I've applied a similar fix to the one you recommended, with the addition of an exception when a geometry isn't created. This may mean that you will bump into other cases where FeatureServer complains more loudly now -- if this is the case, please let me know and I will fix them. I've uploaded FS 1.05 to fix this issue. (And your name is in the changelog.) Thanks! Regards, -- Christopher Schmidt MetaCarta From stephan.holl at intevation.de Fri Jun 22 06:22:25 2007 From: stephan.holl at intevation.de (Stephan Holl) Date: Thu Feb 4 21:35:10 2010 Subject: [Featureserver] OSM export broken in demo? Message-ID: <20070622122225.0efbcce0@thoe.hq.intevation.de> Hello featureservers, I tried the demo on [1] to get the data into OSM-format, but featureserver threw this error. It seems that there is some encoding missing? An error occurred: 'ascii' codec can't encode character u'\xe9' in position 5: ordinal not in range(128) File "./FeatureServer/Server.py", line 206, in cgiHandler format, content = service.dispatchRequest( params, path_info, host, post_data, request_method ) File "./FeatureServer/Server.py", line 103, in dispatchRequest return request.encode(response) File "./FeatureServer/Service/OSM.py", line 11, in encode results.append( self.encode_feature(i)) File "./FeatureServer/Service/OSM.py", line 51, in encode_feature tag.setAttribute("v", str(value)) Thanks for looking into this Best Stephan -- Stephan Holl , http://intevation.de/~stephan Tel: +49 (0)541-33 50 8 32 | Intevation GmbH | AG Osnabr?ck - HR B 18998 Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner From crschmidt at metacarta.com Fri Jun 22 08:10:13 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Thu Feb 4 21:35:10 2010 Subject: [Featureserver] OSM export broken in demo? In-Reply-To: <20070622122225.0efbcce0@thoe.hq.intevation.de> References: <20070622122225.0efbcce0@thoe.hq.intevation.de> Message-ID: <20070622121013.GB7929@metacarta.com> On Fri, Jun 22, 2007 at 12:22:25PM +0200, Stephan Holl wrote: > Hello featureservers, > > I tried the demo on [1] to get the data into OSM-format, but > featureserver threw this error. It seems that there is some encoding > missing? Fixed in the OSM service, and I've removed the ill-supported OSM link from the main demos. When someone is ready to take over maintenance of that file, I'll help them get set up and put the link back in. Regards, -- Christopher Schmidt MetaCarta