[OpenLayers-Users] Featureserver + Openlayers

Eric Lemoine eric.lemoine at camptocamp.com
Tue Oct 13 17:39:38 EDT 2009


On Tuesday, October 13, 2009, goliah <bianchimro at gmail.com> wrote:
>
> Thanks Alexandre,
>
> I'll check it out.
> Do you think I should switch to a mapfish server for a production app?
> It seems like it is more mantained.

Hi. I guess it depends on your needs. If FeatureServer just does the
job for you then I don't much benefit in switching to MapFish (except
maybe that we always make sure that client and server speak the same
language in MapFish). If you need to customize your web services then
use MapFish - MapFish is a framework for creating applications, an
application created with MapFish belongs to the developer, who is free
to modify his application and his application's web services to meet
his needs. It is also important to note that MapFish only supports
PostGIS as the data store at this time, support for MySQL and
Spatialite are in the plans.

Hope this helps,

Eric




>
> Thanks again
> Mauro
>
>
>
>
> Alexandre Dube wrote:
>>
>> Hi,
>>
>> Here's a working OpenLayers+FeatureServer demo :
>> http://dev4.mapgears.com/bdga-fs/
>>
>> It uses the MapFish protocol since MapFish server can be "talked to"
>> pretty much the same way as FeatureServer.
>>
>> Hope this helps,
>>
>> Alexandre
>>
>> goliah wrote:
>>> Dear list,
>>>
>>> I'm trying to use OpenLayers and Feature Server.
>>> What i'd like to do is use WFS-T protocol to make a simple feature
>>> editor.
>>>
>>> I've set up Featureserver (beautiful software) easily under CGI, and
>>> tried
>>> to setup something like the
>>> WFS-Transactional example:
>>> http://www.openlayers.org/dev/examples/wfs-protocol-transactions.html
>>> http://www.openlayers.org/dev/examples/wfs-protocol-transactions.html
>>>
>>> I've had some problems using this example on my server, in particular
>>> with
>>> WFS protocol, that I had to change to HTTP Protocol for making things
>>> work
>>>
>>> I ended up with this code:
>>>
>>> http://www.maurob.org/fttest/index.html
>>>
>>> on line 113 you can find the wfs layer declaration:
>>>
>>> //code here
>>>
>>> wfs = new OpenLayers.Layer.Vector("Scribble", {
>>>                                      protocol: new OpenLayers.Protocol.HTTP({
>>>                                              url:
>>> "http://www.maurob.org/featureserver/featureserver.cgi/scribble",
>>>                                              format: new OpenLayers.Format.GeoJSON()
>>>                                              }),
>>>                                      strategies: [
>>>                                              new OpenLayers.Strategy.Fixed(),
>>>                                              saveStrategy
>>>                                      ],
>>>                                      projection:new OpenLayers.Projection("EPSG:4326")
>>>                              });
>>>
>>>
>>> //end code
>>>
>>>
>>> This because, if using OpenLayers.Protocol.WFS I couldn't set the right
>>> format to talk to featureserver.
>>>
>>> It is quite working now (can add and modify features),
>>> Anyway, I still cannot delete feature (seems like DELETE request is not
>>> understood by Featureserver)
>>>
>>> Do you think mine is a reasonable setup of the wfs layer declaration in
>>> openlayers (protocol/format) ?
>>> which is right way to handle it?
>>>
>>> Thanks a lot for any idea.
>>> Mauro
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>> --
>> Alexandre Dubé
>> Mapgears
>> www.mapgears.com
>>
>> _______________________________________________
>> Users mailing lis--
> View this message in context: http://n2.nabble.com/Featureserver-Openlayers-tp3797197p3818851.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com



More information about the Users mailing list