Re: [mapserver-users] Asking for guidelines about a project

2011-06-20 Thread Ben Madin
Brent et al,

Becoming off topic, but ours went something like :

DATA "the_move FROM (select ST_MakeLine(the_geom) as the_move, sq.polltime
FROM (SELECT the_geom, CAST(polltime AS date) as polltime
FROM vms
WHERE vesselname like '%pg_sql%'
ORDER BY polltime LIMIT 36) sq
GROUP BY sq.polltime) AS foo USING UNIQUE polltime USING SRID=4326"

but all credit for the concept goes to Regina Obe  - I think she was showing 
running tracks! try postgresonline or the postgis list.

cheers

Ben



On 21/06/2011, at 11:15 AM, mapserver-users-requ...@lists.osgeo.org wrote:

> From: Brent Fraser 
> Date: 20 June 2011 11:43:52 PM AEST
> To: Ben Madin 
> Cc: mapserver-users@lists.osgeo.org
> Subject: Re: [mapserver-users] Asking for guidelines about a project
> 
> 
> Ben,
> 
>   Our setup was similar.  We had a current_location table and a 
> archive_location table.  To filter the archive_location for positions in the 
> last 24 hours we had a view:
> 
> CREATE VIEW archive_v AS
> SELECT 
>archive_location.vessel_id,
>archive_location.time_fix,
>archive_location.speed,
>archive_location.heading,
>archive_location.vessel_coordinate,
>archive_location.archive_sequence,
>vessel_cfg.vessel_name,
>owner.org_name
> FROM archive_location,owner,vessel_cfg
> WHERE archive_location.owner_id=owner.org_id AND
>   archive_location.vessel_id=vessel_cfg.vessel_id AND
>   ((now() AT TIME ZONE 'utc') - (archive_location.time_fix)) 
> <=  '24 hour';
> 
> I can't recall how we created linestrings for the tracks from the above view, 
> but I think we used the archive_sequence number (this was assigned at insert 
> time, per vessel) to order the points into lines.
> Best Regards,
> Brent Fraser
> 

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] PHP-Mapscript - clusterObj ?

2011-06-20 Thread Jeff McKenna

Hi Chris,

Let's plan this for our next phase of attack.  As you travel down this 
cluster-php-mapscript path, document your full examples in the MapServer 
wiki:


- login to the wiki (use your osgeo ID, which you can create at 
http://www.osgeo.org/osgeo_userid)

- goto http://trac.osgeo.org/mapserver/wiki/PHPMapScript
- create a new page there, in the "Examples" section
- add as many examples as you wish for the Cluster object
- be sure to add "this was added by [yourname] [email]"
- when you are satisfied with that, email the mapserver-dev mailing list
- then I will change the CLUSTER example in 
http://www.mapserver.org/mapfile/cluster.html#php-mapscript-usage to 
point to your page


And you get all the glory! :)

thanks!

-jeff



--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/




On 11-06-20 4:47 PM, Chris Green wrote:

Hi Jeff

Thanks. Fame at last...!

However I am still struggling with the combination of clustering and regex filtering. 
What I can say for sure is that clustering works if no regex filter is applied, and 
filtering works (using a regex filter in the form "/target/") with no 
clustering. But I have so far failed to make the two work together.

This is where I am currently (which does not work for me):

$map = ms_newMapobj("/var/www/vhosts/mysite/httpdocs/test.map");
$layer1=$map->getLayerByName("test1");
$layer1->cluster;
$layer1->set("filteritem", "attribute 1");
$layer1->setFilter("/target/");

Any ideas?


Chris


-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jeff McKenna
Sent: 20 June 2011 20:31
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] PHP-Mapscript - clusterObj ?

Hi Chris,

I've added your PHP MapScript example to the mapfile's CLUSTER page:
http://www.mapserver.org/mapfile/cluster.html

Thanks!

-jeff




___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] PHP-Mapscript - clusterObj ?

2011-06-20 Thread Daniel Morissette

On 11-06-20 03:47 PM, Chris Green wrote:

Hi Jeff

Thanks. Fame at last...!

However I am still struggling with the combination of clustering and regex filtering. 
What I can say for sure is that clustering works if no regex filter is applied, and 
filtering works (using a regex filter in the form "/target/") with no 
clustering. But I have so far failed to make the two work together.

This is where I am currently (which does not work for me):

$map = ms_newMapobj("/var/www/vhosts/mysite/httpdocs/test.map");
$layer1=$map->getLayerByName("test1");
$layer1->cluster;



FYI the line "$layer1->cluster;" does nothing.



$layer1->set("filteritem", "attribute 1");
$layer1->setFilter("/target/");



I haven't used the cluster stuff myself so I am not exactly clear on how 
it should be used, but if you are trying to set the cluster's expression 
then you might have more luck using:


$layer1->cluster->setFilter("/target/");

After quickly re-reading the RFC it's not clear to me what the cluster 
filter does and against which attribute the expression will be 
evaluated. There is also a GROUP expression in the clusterObj which is 
supposed to define how the grouping would be made (but once again how 
does it work). Perhaps Tamas could clarify that here and in docs with a 
few examples?


--
Daniel Morissette
http://www.mapgears.com/
Provider of Professional MapServer Support since 2000

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] libpng latest version problematic

2011-06-20 Thread Jeff McKenna

On 11-06-20 4:43 PM, ahmet temiz wrote:

hello

I have difficulty on compilation of ms 6.0 because of libpng.
Is libpng's  latest version (1.5) uncompatible with ms 6.0 ?


Hello,

Others will I'm sure correct me if I am wrong, but I believe the issue 
is that GDAL was recently fixed to handle libpng 1.5 and that won't be 
available until GDAL 1.8.1 is released 
(http://trac.osgeo.org/gdal/ticket/3914).


Personally, for Windows builds for the MS4W product, I still use libpng 
1.2.35 for that reason.


-jeff



--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] PHP-Mapscript - clusterObj ?

2011-06-20 Thread Chris Green
Hi Jeff

Thanks. Fame at last...!

However I am still struggling with the combination of clustering and regex 
filtering. What I can say for sure is that clustering works if no regex filter 
is applied, and filtering works (using a regex filter in the form "/target/") 
with no clustering. But I have so far failed to make the two work together.

This is where I am currently (which does not work for me):

$map = ms_newMapobj("/var/www/vhosts/mysite/httpdocs/test.map");
$layer1=$map->getLayerByName("test1");
$layer1->cluster; 
$layer1->set("filteritem", "attribute 1");
$layer1->setFilter("/target/");

Any ideas?


Chris


-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jeff McKenna
Sent: 20 June 2011 20:31
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] PHP-Mapscript - clusterObj ?

Hi Chris,

I've added your PHP MapScript example to the mapfile's CLUSTER page: 
http://www.mapserver.org/mapfile/cluster.html

Thanks!

-jeff



-- 
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/



On 11-06-20 12:58 PM, Chris Green wrote:
> Daniel
>
>
> This works
>
> $map = ms_newMapobj("/var/www/vhosts/mysite/httpdocs/test.map");
> $layer1=$map->getLayerByName("test1");
> $layer1->cluster;
>
>
> Thanks very much for the help!
>
>
> Chris
>
>
> -Original Message-
> From: mapserver-users-boun...@lists.osgeo.org 
> [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Daniel 
> Morissette
> Sent: 20 June 2011 15:26
> To: mapserver-users@lists.osgeo.org
> Subject: Re: [mapserver-users] PHP-Mapscript - clusterObj ?
>
> On 11-06-20 10:22 AM, Daniel Morissette wrote:
>> On 11-06-20 10:02 AM, Chris Green wrote:
>>> Hi Tamas
>>>
>>> Thanks for your comment. My first thought was that it should be
>>> available from layerObj, and I spent quite a while trying variations
>>> like:
>>>
>>> $map = ms_newMapobj("/var/www/vhosts/mysite/httpdocs/test.map");
>>>
>>> $layer1=$map->getLayerByName("test1");
>>>
>>> $cluster1=$layer1->getClusterByName(“cluster1”);
>>>
>>> But unfortunately I couldn’t make anything like that work. Anyone know
>>> how this clusterObj works in php-Mapscript?
>>>
>>
>>
>> AFAIK there is only one cluster object per layer, and according to the
>> PHP MapScript source, you should be able to reach it as
>> $layer1->cluster. The same methods as in SWIG MapScript seem to be
>> implemented for the clusterObj in PHP MapScript. If that doesn't work
>> then please let us know and we'll look deeper.
>>
>
> ... and I see that clusterObj is documented in:
>
> http://mapserver.org/mapscript/php/index.html#clusterobj
>
> ... and the ref to the clusterObj in the layerObj is listed in:
>
> http://mapserver.org/mapscript/php/index.html#layerobj
>


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] libpng latest version problematic

2011-06-20 Thread ahmet temiz
hello

I have difficulty on compilation of ms 6.0 because of libpng.
Is libpng's  latest version (1.5) uncompatible with ms 6.0 ?

regards

-- 
Ahmet Temiz
Jeoloji Müh.
Afet ve Acil Durum Yönetimi Başkanlığı
Planlama ve Zarar Azaltma Dairesi Başkanlığı
Bilgi ve CBS grubu
Eskişehir Yolu 10. km.
Lodumlu / Ankara
Tel : 0 312 2872680 / 1535


Ahmet Temiz
Geological Eng.
Information Systems - GIS Group
Disaster and Emergency Management
of Presidency
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] PHP-Mapscript - clusterObj ?

2011-06-20 Thread Jeff McKenna

Hi Chris,

I've added your PHP MapScript example to the mapfile's CLUSTER page: 
http://www.mapserver.org/mapfile/cluster.html


Thanks!

-jeff



--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/



On 11-06-20 12:58 PM, Chris Green wrote:

Daniel


This works

$map = ms_newMapobj("/var/www/vhosts/mysite/httpdocs/test.map");
$layer1=$map->getLayerByName("test1");
$layer1->cluster;


Thanks very much for the help!


Chris


-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Daniel Morissette
Sent: 20 June 2011 15:26
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] PHP-Mapscript - clusterObj ?

On 11-06-20 10:22 AM, Daniel Morissette wrote:

On 11-06-20 10:02 AM, Chris Green wrote:

Hi Tamas

Thanks for your comment. My first thought was that it should be
available from layerObj, and I spent quite a while trying variations
like:

$map = ms_newMapobj("/var/www/vhosts/mysite/httpdocs/test.map");

$layer1=$map->getLayerByName("test1");

$cluster1=$layer1->getClusterByName(“cluster1”);

But unfortunately I couldn’t make anything like that work. Anyone know
how this clusterObj works in php-Mapscript?




AFAIK there is only one cluster object per layer, and according to the
PHP MapScript source, you should be able to reach it as
$layer1->cluster. The same methods as in SWIG MapScript seem to be
implemented for the clusterObj in PHP MapScript. If that doesn't work
then please let us know and we'll look deeper.



... and I see that clusterObj is documented in:

http://mapserver.org/mapscript/php/index.html#clusterobj

... and the ref to the clusterObj in the layerObj is listed in:

http://mapserver.org/mapscript/php/index.html#layerobj




___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Problems installing MapScript on Mac OSx

2011-06-20 Thread William Kyngesburye
First, the web server may need to be restarted, though the installer usually 
does this.

But it's probably PHP.  PHP 5.3 now does not allow (by default) dl() loading of 
extensions, so your script that tries to dl('php_mapscript.so') will fail.  It 
can be enabled, but I can't get this to work in my PHP package.  So you need to 
add the extension to your php.ini.  I just noticed that I missed this bit in my 
Mapserver installer, so you need to do it yourself.

Edit /usr/local/php5cgi/lib/php.ini and add this line (there is a "Dynamic 
Extensions" section, but it can go anywhere):

extension=php_mapscript.so

On Jun 20, 2011, at 11:25 AM, Ron Alt wrote:

> Hello: I am a beginner with Mapserver and would appreciate any help.
> 
> I am having touble installing mapscript on a Mac osx 10.5 & 6.
> 
> I have used the installers developed by William Kyngesburye at 
> http://www.kyngchaos.com/software/mapserver.
> The installers have run sucessfully, but it appears as though Mapscript did 
> not install.  
> 
> The mapserver cgi responds.
> The php server responds.
> 
> However, when viewing the phpinfo(), there is not information displayed for 
> mapscript.
> Also, I get an error when sending running a simple script [cannot find 
> dl("php_mapscript.so");]
> 
> Questions:
> Where are the mapscript files stored on OSx? (I cannot find them anywhere)
> Has anyone else encountered a similar problem with this build?
> Are there any other installers for Macs?
> 
> note, I also tried his vers. 5.6.6-3 installer, but it would not work with 
> the current UnixImageIO framework.
> 
> Would appreciate any help.
> 
> Thanks,
> Ron Alt
> FTA
> ron@taxadmin.org
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users

-
William Kyngesburye 
http://www.kyngchaos.com/

The equator is so long, it could encircle the earth completely once.

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Mapserver 6.0 regex

2011-06-20 Thread Chris Green
I have one (hopefully the last!) problem with migrating from Mapserver 4.6
to 6.0, this time over the use of regex.

 

Using Mapscript  on a Fedora platform I have been setting a filter in this
manner:

 

 

$map=newMapobj("/var/www/vhosts/mysite/httpdocs/test.map");

$layer1=$map->getLayerByName("test1");

$layer1->set("filteritem", "Attribute1");

$layer1->setFilter("/target/");

 

This worked fine, but not anymore.  I see in the migration guide that a
regex should now be delineated as a string so I assume that "/target/"
should become "target". But that doesn't work either.

 

 

I am wondering if part of the problem is that as well as going from
Mapserver 4.6 to 5.0 I also changed from Fedora to Ubuntu 10.04, and I see
from the Mapserver documentation on Expressions that the OS may affect regex
operation.

 

Am I missing something obvious here?   I am really tired of going in circles
over this.

 

 

Chris

 

 

 

 

 

 

 

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Problems installing MapScript on Mac OSx

2011-06-20 Thread Ron Alt
Hello: I am a beginner with Mapserver and would appreciate any help.

I am having touble installing mapscript on a Mac osx 10.5 & 6.

I have used the installers developed by William Kyngesburye at 
http://www.kyngchaos.com/software/mapserver.
The installers have run sucessfully, but it appears as though Mapscript did not 
install.  

The mapserver cgi responds.
The php server responds.

However, when viewing the phpinfo(), there is not information displayed for 
mapscript.
Also, I get an error when sending running a simple script [cannot find 
dl("php_mapscript.so");]

Questions:
Where are the mapscript files stored on OSx? (I cannot find them anywhere)
Has anyone else encountered a similar problem with this build?
Are there any other installers for Macs?

note, I also tried his vers. 5.6.6-3 installer, but it would not work with the 
current UnixImageIO framework.

Would appreciate any help.

Thanks,
Ron Alt
FTA
ron@taxadmin.org
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] PHP-Mapscript - clusterObj ?

2011-06-20 Thread Chris Green
Daniel


This works

$map = ms_newMapobj("/var/www/vhosts/mysite/httpdocs/test.map");
$layer1=$map->getLayerByName("test1");
$layer1->cluster;


Thanks very much for the help!


Chris


-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Daniel Morissette
Sent: 20 June 2011 15:26
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] PHP-Mapscript - clusterObj ?

On 11-06-20 10:22 AM, Daniel Morissette wrote:
> On 11-06-20 10:02 AM, Chris Green wrote:
>> Hi Tamas
>>
>> Thanks for your comment. My first thought was that it should be
>> available from layerObj, and I spent quite a while trying variations
>> like:
>>
>> $map = ms_newMapobj("/var/www/vhosts/mysite/httpdocs/test.map");
>>
>> $layer1=$map->getLayerByName("test1");
>>
>> $cluster1=$layer1->getClusterByName(“cluster1”);
>>
>> But unfortunately I couldn’t make anything like that work. Anyone know
>> how this clusterObj works in php-Mapscript?
>>
>
>
> AFAIK there is only one cluster object per layer, and according to the
> PHP MapScript source, you should be able to reach it as
> $layer1->cluster. The same methods as in SWIG MapScript seem to be
> implemented for the clusterObj in PHP MapScript. If that doesn't work
> then please let us know and we'll look deeper.
>

... and I see that clusterObj is documented in:

   http://mapserver.org/mapscript/php/index.html#clusterobj

... and the ref to the clusterObj in the layerObj is listed in:

   http://mapserver.org/mapscript/php/index.html#layerobj

-- 
Daniel Morissette
http://www.mapgears.com/
Provider of Professional MapServer Support since 2000

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] PHP-Mapscript - clusterObj ?

2011-06-20 Thread Daniel Morissette

On 11-06-20 10:22 AM, Daniel Morissette wrote:

On 11-06-20 10:02 AM, Chris Green wrote:

Hi Tamas

Thanks for your comment. My first thought was that it should be
available from layerObj, and I spent quite a while trying variations
like:

$map = ms_newMapobj("/var/www/vhosts/mysite/httpdocs/test.map");

$layer1=$map->getLayerByName("test1");

$cluster1=$layer1->getClusterByName(“cluster1”);

But unfortunately I couldn’t make anything like that work. Anyone know
how this clusterObj works in php-Mapscript?




AFAIK there is only one cluster object per layer, and according to the
PHP MapScript source, you should be able to reach it as
$layer1->cluster. The same methods as in SWIG MapScript seem to be
implemented for the clusterObj in PHP MapScript. If that doesn't work
then please let us know and we'll look deeper.



... and I see that clusterObj is documented in:

  http://mapserver.org/mapscript/php/index.html#clusterobj

... and the ref to the clusterObj in the layerObj is listed in:

  http://mapserver.org/mapscript/php/index.html#layerobj

--
Daniel Morissette
http://www.mapgears.com/
Provider of Professional MapServer Support since 2000

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] PHP-Mapscript - clusterObj ?

2011-06-20 Thread Daniel Morissette

On 11-06-20 10:02 AM, Chris Green wrote:

Hi Tamas

Thanks for your comment. My first thought was that it should be
available from layerObj, and I spent quite a while trying variations like:

$map = ms_newMapobj("/var/www/vhosts/mysite/httpdocs/test.map");

$layer1=$map->getLayerByName("test1");

$cluster1=$layer1->getClusterByName(“cluster1”);

But unfortunately I couldn’t make anything like that work. Anyone know
how this clusterObj works in php-Mapscript?




AFAIK there is only one cluster object per layer, and according to the 
PHP MapScript source, you should be able to reach it as 
$layer1->cluster. The same methods as in SWIG MapScript seem to be 
implemented for the clusterObj in PHP MapScript. If that doesn't work 
then please let us know and we'll look deeper.


--
Daniel Morissette
http://www.mapgears.com/
Provider of Professional MapServer Support since 2000

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] PHP-Mapscript - clusterObj ?

2011-06-20 Thread Chris Green
Hi Tamas

 

Thanks for your comment. My first thought was that it should be available from 
layerObj, and I spent quite a while trying variations like:

$map = ms_newMapobj("/var/www/vhosts/mysite/httpdocs/test.map");

$layer1=$map->getLayerByName("test1");

$cluster1=$layer1->getClusterByName(“cluster1”);

But unfortunately I couldn’t make anything like that work. Anyone know how this 
clusterObj works in php-Mapscript?

 

Chris

From: Tamas Szekeres [mailto:szeker...@gmail.com] 
Sent: 20 June 2011 08:41
To: Chris Green
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] PHP-Mapscript - clusterObj ?

 

Chris,

clusterObj should not be constructed from scratch, it is an existing member of 
layerObj. Not sure how is that working in PHP, however.


Best regards,

Tamas





2011/6/20 Chris Green 

Hi list

 

I am running Mapserver 6.0 under Ubuntu 10.04 with PHP-Mapscript and I have 
been trying to get clustering to work with Mapscript. Actually it works fine 
when using a mapfile very similar to the ‘Clustering Railway Stations’ example 
given in the 6.0 documentation if I use the mapfile to generate a WMS layer 
without Mapscript. However using the same mapfile I can’t get the clustered 
output to appear with Mapscript when I try the usual construction along the 
lines of:

 

$map = ms_newMapobj("/var/www/vhosts/mysite/httpdocs/test.map");

$layer1=$map->getLayerByName("test1");

..

..

..

$image=$map->draw();

$image_url=$image->saveWebImage();

 

This structure works on a non-clustered layer in the same mapfile. I can see in 
the documentation for MS RFC 69 that the idea is to use a new Mapscript object 
called clusterObj, but I can’t find any information on how to construct a 
clusterObj and several hours of trial and error yesterday didn’t get me very 
far. Can someone tell me how I should set up and use clusterObj?

 

 

Chris  

 

 


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

 

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Mapserver docs mobile app

2011-06-20 Thread Daniel Morissette

On 11-06-20 09:02 AM, Jeff McKenna wrote:

On 11-06-20 6:21 AM, Sven Schroeter wrote:


The "webapp" you can find here:
http://www.netgis.de/mapserver_mdoc/

If you want, I can upload the app in the android market.
Maybe you can give feedback how it works on other android devices?
Thanks and greetings
Sven


Interesting. I would say once you are satisfied with it fire an email to
the mapserver-dev mailing list and we can post it on the MapServer website.




Very cool indeed!

The web version could become http://m.mapserver.org/ ...

--
Daniel Morissette
http://www.mapgears.com/
Provider of Professional MapServer Support since 2000

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Asking for guidelines about a project

2011-06-20 Thread Brent Fraser

Ben,

  Our setup was similar.  We had a current_location table and a 
archive_location table.  To filter the archive_location for positions in 
the last 24 hours we had a view:


CREATE VIEW archive_v AS
SELECT
   archive_location.vessel_id,
   archive_location.time_fix,
   archive_location.speed,
   archive_location.heading,
   archive_location.vessel_coordinate,
   archive_location.archive_sequence,
   vessel_cfg.vessel_name,
   owner.org_name
FROM archive_location,owner,vessel_cfg
WHERE archive_location.owner_id=owner.org_id AND
  archive_location.vessel_id=vessel_cfg.vessel_id AND
  ((now() AT TIME ZONE 'utc') - 
(archive_location.time_fix)) <=  '24 hour';


I can't recall how we created linestrings for the tracks from the above 
view, but I think we used the archive_sequence number (this was assigned 
at insert time, per vessel) to order the points into lines.


Best Regards,
Brent Fraser


On 6/19/2011 7:31 AM, Ben Madin wrote:
I've done similar to Brent's suggestions, but tracking boats with 2 
hourly updates. We just stored all the location data in one table with 
a reference id to a boat name and details in another project.


The default setting showed the current location and the last 72 hours 
of track... Using a query like select blah order by recordtime desc 
limit 36. we then created a linestring and mapped those. It was a bit 
heavy on the poor old (really old) server, but there were only about 
70 boats all up.


In retrospect (and if I had more boats or users), I would create two 
tables, one holding the all the point locations, and one holding the 
default tracks. The default tracks would be updated by a trigger on 
insertion of the new records into the locations table, rather than all 
being computed on the fly.


Anyway, 101 ways to skin a cat.

cheers

Ben





On 18/06/2011, at 11:31 AM, mapserver-users-requ...@lists.osgeo.org 
 wrote:


*From:*Brent Fraser >

*Date:*18 June 2011 3:27:00 AM AEST
*To:*Saka Royban mailto:sakaroy...@yahoo.com>>
*Cc:*MapServer >
*Subject:**Re: [mapserver-users] Asking for guidelines about a 
project*



Well, it's up to you how to model the objects (that's the 
great thing about relational databases).  Typically, I've added a 
table of "Historical Positions" with basically the same structure 
as the "vehicle" table (but in that case the unique key is not 
the  vehicle ID, but instead just a system assigned key like 
OID).  As for the points passed by, I would not save that 
information in a table, instead consider it the result of a 
spatial query (say in a PostGIS view) at display time.


  A system like this usually takes a large of amount of time for 
requirements, investigation, design, and prototyping.  And of 
course, construction, testing, documentation, and training.  If 
you want something more packaged you can just download and 
install, you may want to do some searching on the web.


Best Regards,
Brent Fraser

On 6/17/2011 10:56 AM, Saka Royban wrote:

Thanks for ur answer and also Josh's answer.
In fact, i should be able to display path of vehicles (usually 
more than 1 vehicle in display area) and also be able to save 
points passed by vehicles and time of passing (for some queries). 
Cause of that, i thought maybe i need one table per vehicle.

Do u think any more idea?

Best Regards


*From:*Brent Fraser
*To:*Saka Royban
*Cc:*MapServer
*Sent:*Fri, June 17, 2011 7:49:20 PM
*Subject:*Re: [mapserver-users] Asking for guidelines about a project

The database schema depends on what you want to do with the data 
(display current position?  A track of historical positions?), 
and how much data you expect (how may objects will be tracked?  
how often will they report?).


A simple schema would have one table (e.g. "vehicles"), with one 
row per tracked object


Table: Vehicles

ID:Name: Position:   Status:   UpdateTime:
1  My Carpoint(51,-115)  active2011-06-16 10:23:54+02
2  Another Car   point(52,-116)  inactive 2010-05-15 11:13:12+02

With this schema, when a new position arrives for  "My Car", an 
update statement is issued to change the row's Position and 
UpdateTime (and possibly Status).


  The table is treated as a PostGIS point layer by mapserver.

  In my implementations, the position data was updated every 30 
to 60 minutes (they were ships and construction vehicles), so 
there was no need to ask mapserver to regenerate a graphic every 
second; an updated map was shown whenever a user did a pan or 
zoom.  You may be able to configure OpenLayers to do a CGI 
request to mapserver every few seconds, but I've never do

Re: [mapserver-users] Mapserver docs mobile app

2011-06-20 Thread Jeff McKenna

On 11-06-20 6:21 AM, Sven Schroeter wrote:

Hi all,

I'm playing with jquery mobile and phonegap and needed an example for a
"Documentation App".
So I have downloaded for test purposes the Mapfile documentation and changed
the HTML and CSS a little bit.
Now here is a Mapfile Documentation for mobile devices (android 2.2, tested
on a HTC Desire HD):
http://www.netgis.de/mapserver_mdoc/mapserver_mdoc.zip
(mapserver_mdoc.apk in a zip)

The "webapp" you can find here:
http://www.netgis.de/mapserver_mdoc/

If you want, I can upload the app in the android market.
Maybe you can give feedback how it works on other android devices?
Thanks and greetings
Sven


Interesting.  I would say once you are satisfied with it fire an email 
to the mapserver-dev mailing list and we can post it on the MapServer 
website.


Thanks!

-jeff

--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] compilatin problem

2011-06-20 Thread ahmet temiz
I try to install mapserver 6 in ubuntu 11.

l am using libpng12.

I am getting this error message:

./libmapserver.a(mapimageio.o): In function `readPNG':
/usr/local/mapserver/mapimageio.c:738: undefined reference to
`png_set_longjmp_fn'
collect2: ld returned 1 exit status

what can I do ?

regards


-- 
Ahmet Temiz
Jeoloji Müh.
Afet ve Acil Durum Yönetimi Başkanlığı
Planlama ve Zarar Azaltma Dairesi Başkanlığı
Bilgi ve CBS grubu
Eskişehir Yolu 10. km.
Lodumlu / Ankara
Tel : 0 312 2872680 / 1535


Ahmet Temiz
Geological Eng.
Information Systems - GIS Group
Disaster and Emergency Management
of Presidency
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Mapserver docs mobile app

2011-06-20 Thread Sven Schroeter
Hi all,

I'm playing with jquery mobile and phonegap and needed an example for a
"Documentation App".
So I have downloaded for test purposes the Mapfile documentation and changed
the HTML and CSS a little bit.
Now here is a Mapfile Documentation for mobile devices (android 2.2, tested
on a HTC Desire HD):
http://www.netgis.de/mapserver_mdoc/mapserver_mdoc.zip
(mapserver_mdoc.apk in a zip)

The "webapp" you can find here:
http://www.netgis.de/mapserver_mdoc/

If you want, I can upload the app in the android market.
Maybe you can give feedback how it works on other android devices?
Thanks and greetings
Sven



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] PHP-Mapscript - clusterObj ?

2011-06-20 Thread Tamas Szekeres
Chris,

clusterObj should not be constructed from scratch, it is an existing member
of layerObj. Not sure how is that working in PHP, however.


Best regards,

Tamas




2011/6/20 Chris Green 

> Hi list
>
> ** **
>
> I am running Mapserver 6.0 under Ubuntu 10.04 with PHP-Mapscript and I have
> been trying to get clustering to work with Mapscript. Actually it works fine
> when using a mapfile very similar to the ‘Clustering Railway Stations’
> example given in the 6.0 documentation if I use the mapfile to generate a
> WMS layer without Mapscript. However using the same mapfile I can’t get the
> clustered output to appear with Mapscript when I try the usual construction
> along the lines of:
>
> ** **
>
> $map = ms_newMapobj("/var/www/vhosts/mysite/httpdocs/test.map");
>
> $layer1=$map->getLayerByName("test1");
>
> ..
>
> ..
>
> ..
>
> $image=$map->draw();
>
> $image_url=$image->saveWebImage();
>
> ** **
>
> This structure works on a non-clustered layer in the same mapfile. I can
> see in the documentation for MS RFC 69 that the idea is to use a new
> Mapscript object called clusterObj, but I can’t find any information on how
> to construct a clusterObj and several hours of trial and error yesterday
> didn’t get me very far. Can someone tell me how I should set up and use
> clusterObj?
>
> ** **
>
> ** **
>
> Chris  
>
> ** **
>
> ** **
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] PHP-Mapscript - clusterObj ?

2011-06-20 Thread Chris Green
Hi list

 

I am running Mapserver 6.0 under Ubuntu 10.04 with PHP-Mapscript and I have
been trying to get clustering to work with Mapscript. Actually it works fine
when using a mapfile very similar to the 'Clustering Railway Stations'
example given in the 6.0 documentation if I use the mapfile to generate a
WMS layer without Mapscript. However using the same mapfile I can't get the
clustered output to appear with Mapscript when I try the usual construction
along the lines of:

 

$map = ms_newMapobj("/var/www/vhosts/mysite/httpdocs/test.map");

$layer1=$map->getLayerByName("test1");

..

..

..

$image=$map->draw();

$image_url=$image->saveWebImage();

 

This structure works on a non-clustered layer in the same mapfile. I can see
in the documentation for MS RFC 69 that the idea is to use a new Mapscript
object called clusterObj, but I can't find any information on how to
construct a clusterObj and several hours of trial and error yesterday didn't
get me very far. Can someone tell me how I should set up and use clusterObj?

 

 

Chris  

 

 

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users