I&#39;ve had a need to recently do just that. I just create a GeoJSON object and pass those values into an OpenLayers.Layer.Vector I&#39;ve got an example that you can view here:<br><br><a href="http://mkgeomatics.com/apps/ajax_dev/checkbox_form.html">http://mkgeomatics.com/apps/ajax_dev/checkbox_form.html</a><br>

<br>Here is an example output of a PHP script generating geoJSON from a MySQL Database<br><br><a href="http://mkgeomatics.com/apps/ajax_dev/gis/scripts/airports.php">http://mkgeomatics.com/apps/ajax_dev/gis/scripts/airports.php</a><br>

<br>Take care,<br>Matt<br><br><div class="gmail_quote">On Mon, Mar 30, 2009 at 2:20 PM, Heidt, Christopher M. <span dir="ltr">&lt;<a href="mailto:CHRISTOPHER.M.HEIDT@saic.com">CHRISTOPHER.M.HEIDT@saic.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Yes, I and many others do this very thing.<br>
You just need to get the data in a format reconizable to openlayers, and<br>
then insert it.<br>
There are many combinations of ways to do this.<br>
For one of my apps I fetch wkt and use openlayers wtk parser to convert<br>
those into features<br>
and then its as simple as layer.addFeatures(myFeatures)<br>
<div><div></div><div class="h5"><br>
-----Original Message-----<br>
From: <a href="mailto:users-bounces@openlayers.org">users-bounces@openlayers.org</a> [mailto:<a href="mailto:users-bounces@openlayers.org">users-bounces@openlayers.org</a>]<br>
On Behalf Of darrepac<br>
Sent: Monday, March 30, 2009 5:08 PM<br>
To: <a href="mailto:users@openlayers.org">users@openlayers.org</a><br>
Subject: [OpenLayers-Users] Just a simple php script instead of WFS<br>
server ?<br>
<br>
<br>
Hi,<br>
<br>
I have an openlayers loading a GeoJson file locally (=on client side).<br>
This file is heavy and I want to avoid to load it locally.<br>
<br>
The perfect solution would probably be a WFS server to serve my features<br>
but I would prefer a lighter and easier solution (I am lost in tool like<br>
Geoserver and just get the feeling that it is too big for me and my<br>
usage).<br>
<br>
Is there not a way to build a small php script to serve my features from<br>
the GeoJson or GML and read in Openlayers through<br>
OpenLayers.Protocol.HTTP ?<br>
Such php script, on server side, should implement the maxfeatures and/or<br>
bbox query in order to load just the needed features.<br>
<br>
Does such php script (or very very very simple WFS server) exist?<br>
<br>
thanks<br>
--<br>
View this message in context:<br>
<a href="http://n2.nabble.com/Just-a-simple-php-script-instead-of-WFS-server---tp%0A2559646p2559646.html" target="_blank">http://n2.nabble.com/Just-a-simple-php-script-instead-of-WFS-server---tp<br>
2559646p2559646.html</a><br>
Sent from the OpenLayers Users mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>m a t t h e w k e n n y<br><a href="http://www.mkgeomatics.com">http://www.mkgeomatics.com</a><br>