Yes, I and many others do this very thing.
You just need to get the data in a format reconizable to openlayers, and
then insert it.
There are many combinations of ways to do this.
For one of my apps I fetch wkt and use openlayers wtk parser to convert
those into features
and then its as simple as layer.addFeatures(myFeatures) 

-----Original Message-----
From: users-boun...@openlayers.org [mailto:users-boun...@openlayers.org]
On Behalf Of darrepac
Sent: Monday, March 30, 2009 5:08 PM
To: users@openlayers.org
Subject: [OpenLayers-Users] Just a simple php script instead of WFS
server ?


Hi,

I have an openlayers loading a GeoJson file locally (=on client side).
This file is heavy and I want to avoid to load it locally.

The perfect solution would probably be a WFS server to serve my features
but I would prefer a lighter and easier solution (I am lost in tool like
Geoserver and just get the feeling that it is too big for me and my
usage).

Is there not a way to build a small php script to serve my features from
the GeoJson or GML and read in Openlayers through
OpenLayers.Protocol.HTTP ?
Such php script, on server side, should implement the maxfeatures and/or
bbox query in order to load just the needed features.

Does such php script (or very very very simple WFS server) exist?

thanks
--
View this message in context:
http://n2.nabble.com/Just-a-simple-php-script-instead-of-WFS-server---tp
2559646p2559646.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.

_______________________________________________
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users
_______________________________________________
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users

Reply via email to