[mapserver-users] upload/stream data from GPS unit?

Stephen Woodbridge woodbri at swoodbridge.com
Thu Mar 27 13:42:18 PDT 2008


Bill Wordsworth wrote:
> Thanks Steve. I am clear about the mapping part. I am not so sure about 
> streaming/uploading near-real-time GPS data from on-site to webserver 
> across WPA?

I can not speak to WPA, I'm not sure I know that protocol, but if have a 
cell phone that that can do HTTP GET requests to a server, you can 
trivially write a php page the gets the url and writes the fields to a 
database and have mapserver display that. So that is pretty real-time.

So you phone would ping a url like 
http://yourserver.com/track.php?lat=<lat>&lon=<lon>&device=<uid>&...

And then write a track.php to fetch the paramaters and stuff them into 
the DB.

-Steve W

> Cheers, Bill
> On Thu, Mar 27, 2008 at 3:10 PM, Stephen Woodbridge 
> <woodbri at swoodbridge.com <mailto:woodbri at swoodbridge.com>> wrote:
> 
>     Bill,
> 
>     There are probably many solutions available depending on the various
>     technical components that you might have in the solution. One possible
>     solution might be something along these lines:
> 
>     1) stream data to some service that you probably have to build
>     2) have said service load the points into a postgres/postgis database
>     3) create a mapfile with a LAYER to disply the data from postgis
>     4) Use a client like OpenLayers to render you map from mapserver
>     5) add a timer event to refresh your map every X secs
> 
>     -Steve W
>      http://imaptools.com/
> 
>     Bill Wordsworth wrote:
>      > Please let's not hijack my poor thread :)! Anyway, here's my original
>      > question:
>      >
>      > "How can I upload/stream near-real-time GPS data from on-site to
>      > webserver/MapServer (MapServer 5.x can read *.gpx)?"
>      >
>      > I've been referred to http://franson.com/gpsgate/ from the usenet
>      > groups. I am looking for something with WPA.
>      > Cheers, Bill
>      > On Wed, Mar 26, 2008 at 11:39 AM, Carlos Pinto
>     <cmspinto at gmail.com <mailto:cmspinto at gmail.com>
>      > <mailto:cmspinto at gmail.com <mailto:cmspinto at gmail.com>>> wrote:
>      >
>      >
>      >     Hi all,
>      >
>      >     I'm new in MapServer and I'm using Openlayers that can be a
>     client
>      >     of MapServer.
>      >
>      >     What I'm trying to set-up is a grid that is in GML file. And
>     I want
>      >     MapServer to build the layer reading the GML file and give it to
>      >     OpenLayers (javascript API) would read it as WMS.
>      >
>      >     I have instaled MapServer in C#  so I'm using MapScript. Is this
>      >     possible?
>      >
>      >     Thanks
>      >
>      >     Carlos
>      >
>      >     _______________________________________________
>      >     mapserver-users mailing list
>      >     mapserver-users at lists.osgeo.org
>     <mailto:mapserver-users at lists.osgeo.org>
>     <mailto:mapserver-users at lists.osgeo.org
>     <mailto:mapserver-users at lists.osgeo.org>>
>      >     http://lists.osgeo.org/mailman/listinfo/mapserver-users
>      >
>      >
>      > On Wed, Mar 26, 2008 at 11:25 AM, Bill Wordsworth
>      > <bill.wordsworth at gmail.com <mailto:bill.wordsworth at gmail.com>
>     <mailto:bill.wordsworth at gmail.com
>     <mailto:bill.wordsworth at gmail.com>>> wrote:
>      >
>      >     How can I upload/stream near-real-time GPS data from on-site to
>      >     webserver/MapServer (MapServer 5.x can read *.gpx)?
>      >     Cheers, Bill
>      >
>      >
>      >
>     ------------------------------------------------------------------------
>      >
>      > _______________________________________________
>      > mapserver-users mailing list
>      > mapserver-users at lists.osgeo.org
>     <mailto:mapserver-users at lists.osgeo.org>
>      > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users




More information about the MapServer-users mailing list