[Geoserver-users] Newbie question

Hi everyone.
I know that this is a very generalist question, but i'm going crazy trying to get a solution for this. To finish my studies i'm trying to do an application for keeping keep track of where the vehicle is at any given moment.. Besides you could plan a route between two streets.
i've been playing with MapServer, GeoServer, MapBuilder,... but i don't know very well if these tools are enough for this task.
Some suggestions please.

Thanks.

To finish my studies i'm trying to do
an application for keeping keep track of where the vehicle is at any
given moment..

Is that real time data? I can't see right away how that can be
accomplished in real time.

Besides you could plan a route between two streets.

This one is interesting. Maybe possible routes can be returned from a
rule set in an SLD file.

Alex

We are plotting real time data by storing it in a mysql table and using SLD to filter it.

You can define your mysql database as a geoserver store, and then define a feature type for the table that would contain your real time data.

Then you could periodically query geoserever for the feature type.

At 11:21 AM 2/23/2006, Alexander Petkov wrote:

>To finish my studies i'm trying to do
> an application for keeping keep track of where the vehicle is at any
> given moment..
Is that real time data? I can't see right away how that can be
accomplished in real time.

>Besides you could plan a route between two streets.
This one is interesting. Maybe possible routes can be returned from a
rule set in an SLD file.

Alex
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿӆ+ó^µéšŠX¬²š'²ŠÞu¼±<Âÿj
èºw[­æ¤Šx,r¸©¶)à•©à¹¨¶­{^Û¦™bq«b¢{"žÚ0y¶§vjŠW¦yؚümzwm…éb½ìmƬµ©ÝŽˆ§¶©®)žuëÞ­Š^®
躭ëy©"ž§¶‹aŠÉÞÁʊx-zºâ¶Šòþm§ÿÿ±éÿjÏî³÷Ú­F þw­þÇ¥ýɝþH÷Žÿn'ۍ{ÛOÝjÛ^¸Ûÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿê,z»Þ¯û¬z»&j)bž b²Ñž¢Ç«½êÿºÇ«³ùb²Ûÿ²‹«qçè®ÿëa¶ÚlÿÿåŠËlþÊ.­ÇŸ¢¸þw­þX¬¶ÏåŠËbú?ê,z»Þ¯û¬

I can point you in the direction I went, but it may not be the way you want to go based on your experience.

We have a java program using JDBC on the back end feeding the data to the mysql table. I have no idea how to capture GPS positions, but once you have them you just need to do an insert into the table. GeoServer will pick up the data and plot it if it has a point field.

My table create script is:
create table eventresults (
userID VARCHAR(64) not null,
configName VARCHAR(64) not null,
location POINT not null,
) TYPE =MyISAM;
The two important things to note are the POINT column and the fact that the table is of Type MyISAM. The MyISAM thing was a bit hard to track down.

The you will want to insert points into the DB using SQL that looks a bit like:
insert into eventResults (userID, configName, location)
values ( ‘user’, ‘config’, GeomFromText('POINT(-80, 120));

I have no idea how to input a detailed base map. We use a really simplistic shape file.

As for the periodic update you can use many things, but the siplest is using the HTML refresh parameter.

<meta http-equiv="Refresh" content="60> .... </html> <p>At 11:59 AM 2/23/2006, you wrote:</p> <blockquote> <p>Carolyn Cole escribió:</p> <blockquote> <p>We are plotting real time data by storing it in a mysql table and using SLD to filter it.</p> <p>You can define your mysql database as a geoserver store, and then define a feature type for the table that would contain your real time data.</p> <p>Then you could periodically query geoserever for the feature type.</p> <p>At 11:21 AM 2/23/2006, Alexander Petkov wrote:</p> <blockquote> <blockquote> <p>To finish my studies i’m trying to do<br> an application for keeping keep track of where the vehicle is at any<br> given moment…<br> Is that real time data? I can’t see right away how that can be<br> accomplished in real time.</p> </blockquote> <blockquote> <p>Besides you could plan a route between two streets.<br> This one is interesting. Maybe possible routes can be returned from a<br> rule set in an SLD file.</p> </blockquote> <p>Alex<br> ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿӆ+ó^µéšŠX¬²š’²ŠÞu¼±<Âÿj<br> èºw[­æ¤Šx,r¸©¶)à•©à¹¨¶­{^Û¦™bq«b¢{"žÚ0y¶§vjŠW¦yؚümzwm éb½ìmƬµ©ÝŽˆ§¶©®)žuëÞ­Š^®<br> 躭ëy©"ž§¶‹aŠÉÞÁʊx-zºâ¶Šòþm§ÿÿ±éÿjÏî³÷Ú­F þw­þÇ¥ýɝþH÷Žÿn’ۍ{ÛOÝjÛ^¸Ûÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿê,z»Þ¯û¬z»&j)bž b²Ñž¢Ç«½êÿºÇ«³ùb²Ûÿ²‹«qçè®ÿëa¶ÚlÿÿåŠËlþÊ.­ÇŸ¢¸þw­þX¬¶ÏåŠËbú?ê,z»Þ¯û¬</p> </blockquote> </blockquote> <p>Thanks. Could you give me a little info with the steps?</p> <ul> <li>Having a detailed map from one city (is a posibility digitalizing it riding a car with a GPS and a kind of software?)</li> <li>You upload the map to GeoServer (as shp file?, PostGIS?, MySQL?)</li> <li>Creating an application that recives the GPS position of the vehicle and save it in database table (PostGIS, MySQL?)</li> <li>Creating or using a web client application (J2EE, AJAX, JavaScript?) that renders the map periodically .</li> </ul> <p>Thanks again</p> </blockquote>