Re: [mapserver-users] time enabled WMS with elements instead of elements

2012-01-11 Thread Tim-Hinnerk Heuer

Well, with the way I was thinking it would work to zoom/pan. ;-)
I would fork off OpenLayers for this purpose too, because instead of 
having an  we would simply have a streaming  tag in the 
HTML, so when you zoom in something like


src="http://maps.scinfo.org.nz/tilecache/wms-c/tilecache.py?LAYERS=lcr_basemap_cache_nztm&UNITS=m&TRANSPARENT=true&FORMAT=image%2Fpng&PROJECTION=EPSG%3A2193&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A2193&BBOX=1722488.4987451,5512799.5610882,1812799.5610882,5603110.6234314&WIDTH=256&HEIGHT=256"; 
/>


would simply be replaced with

src="http://maps.scinfo.org.nz/tilecache/wms-c/tilecache.py?LAYERS=lcr_basemap_cache_nztm&UNITS=m&TRANSPARENT=true&FORMAT=video%2Fwebm&PROJECTION=EPSG%3A2193&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A2193&BBOX=1722488.4987451,5512799.5610882,1812799.5610882,5603110.6234314&WIDTH=256&HEIGHT=256"; 
/>


Only that the videos are pre-generated of course. The logic for 
generating the videos I have already implemented and I have little 
256x256 videos for all zoom levels 1-10.


I'm currently experimenting with simply changing the parameters in the 
XML config file for mapcache. Will let you know. Otherwise, I think I'm 
just going to hack it and save the videos as *.png and put a fake proxy 
in front of mapcache. Maybe not optimal but should work.


Mh, after hacking around a bit, that doesn't work...

Cheers,
Tim

On 12/01/12 16:26, Mr. Puneet Kishor wrote:

Tim,

(top posting because I have a more generic response)

I have tackled this very much like you did with multiple images and opacity, etc. I too 
considered a movie, but the problem with a movie is that you can't zoom in. The images 
are geo-referenced, so you can zoom in and out and pan and drag. I was using OpenLayers, 
so I created a "scrubber" (a jQuery slider) and tied it to layer loading and 
unloading. I would query for an image and draw it only if the user moved slider to 
request a specific image. It was not very smooth, but it did work.

You can decrease the "weight" of the images by using GIFs, at least, that is 
what I did. I remember I had 100 images (one for each year for a century's worth of model 
run) and the performance was quite good. I did pre-calculate the images at different zoom 
levels -- I believe there were 12  zoom levels, so I generated 1200 images and then used 
OL's layer image type.

Wish it were possible to zoom, pan, drag a movie as if it were a map.


On Jan 11, 2012, at 8:10 PM, Tim-Hinnerk Heuer wrote:


Hi,

Interested in HTML5 + MapServer and visualisation, read on.

Happy new year to you all!

I'm working on a rather interesting project at the moment where we need to map 
data over time. We tried experimenting with having one layer for each time unit 
and essentially overlaying them, manipulating their opacity to have a mini 
movie, but we noticed that the downloads of all the images become quite 
significant (61MB for a test extent!). I then implemented a proof of concept 
page (HTML5) where I took an extent's images and concatenated them in a webm 
video over time and then played all the videos at the same time, giving me a 
nice visualisation of that area at a relatively low cost (2.3MB per that 
extent) and the advantage of streaming.

I have already written a script that generates all the videos, so I have 
invested considerable amounts of time into this.

It would be great now if I could use the Apache module mapcache to serve up 
these videos listening and responding to WMS requests. So, all I need to change 
about mapcache is to serve a .webm file with MIME type video/webm instead of a 
.png file at the given extent. I guess I could write something in PHP or even 
with MapScript to serve up those files, but

A) I don't know how mapcache finds the right image for an extent and
B) Although I know C, my knowledge of it is a bit rusty and I don't know the 
interface(s) for writing Apache modules in C, let alone a plugin for mapcache

I'm keen on learning, but if someone knows where in the code I would have to 
look for this change/feature enhancement it would be really helpful.

Has something like that been done already or is in experiment/planning?

If you could give me some hints of how to approach this in the quickest way 
possible I would be very grateful. Of course this is a project which needs to 
be done quickly but I want to do it anyway, because it's fun.

Thanks for reading and hopefully you have an answer!

Regards,
Tim
___
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] time enabled WMS with elements instead of elements

2012-01-11 Thread Mr. Puneet Kishor
Tim,

(top posting because I have a more generic response)

I have tackled this very much like you did with multiple images and opacity, 
etc. I too considered a movie, but the problem with a movie is that you can't 
zoom in. The images are geo-referenced, so you can zoom in and out and pan and 
drag. I was using OpenLayers, so I created a "scrubber" (a jQuery slider) and 
tied it to layer loading and unloading. I would query for an image and draw it 
only if the user moved slider to request a specific image. It was not very 
smooth, but it did work.

You can decrease the "weight" of the images by using GIFs, at least, that is 
what I did. I remember I had 100 images (one for each year for a century's 
worth of model run) and the performance was quite good. I did pre-calculate the 
images at different zoom levels -- I believe there were 12  zoom levels, so I 
generated 1200 images and then used OL's layer image type.

Wish it were possible to zoom, pan, drag a movie as if it were a map.


On Jan 11, 2012, at 8:10 PM, Tim-Hinnerk Heuer wrote:

> Hi,
> 
> Interested in HTML5 + MapServer and visualisation, read on.
> 
> Happy new year to you all!
> 
> I'm working on a rather interesting project at the moment where we need to 
> map data over time. We tried experimenting with having one layer for each 
> time unit and essentially overlaying them, manipulating their opacity to have 
> a mini movie, but we noticed that the downloads of all the images become 
> quite significant (61MB for a test extent!). I then implemented a proof of 
> concept page (HTML5) where I took an extent's images and concatenated them in 
> a webm video over time and then played all the videos at the same time, 
> giving me a nice visualisation of that area at a relatively low cost (2.3MB 
> per that extent) and the advantage of streaming.
> 
> I have already written a script that generates all the videos, so I have 
> invested considerable amounts of time into this.
> 
> It would be great now if I could use the Apache module mapcache to serve up 
> these videos listening and responding to WMS requests. So, all I need to 
> change about mapcache is to serve a .webm file with MIME type video/webm 
> instead of a .png file at the given extent. I guess I could write something 
> in PHP or even with MapScript to serve up those files, but
> 
> A) I don't know how mapcache finds the right image for an extent and
> B) Although I know C, my knowledge of it is a bit rusty and I don't know the 
> interface(s) for writing Apache modules in C, let alone a plugin for mapcache
> 
> I'm keen on learning, but if someone knows where in the code I would have to 
> look for this change/feature enhancement it would be really helpful.
> 
> Has something like that been done already or is in experiment/planning?
> 
> If you could give me some hints of how to approach this in the quickest way 
> possible I would be very grateful. Of course this is a project which needs to 
> be done quickly but I want to do it anyway, because it's fun.
> 
> Thanks for reading and hopefully you have an answer!
> 
> Regards,
> Tim
> ___
> 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] time enabled WMS with elements instead of elements

2012-01-11 Thread Tim-Hinnerk Heuer

Hi,

Interested in HTML5 + MapServer and visualisation, read on.

Happy new year to you all!

I'm working on a rather interesting project at the moment where we need 
to map data over time. We tried experimenting with having one layer for 
each time unit and essentially overlaying them, manipulating their 
opacity to have a mini movie, but we noticed that the downloads of all 
the images become quite significant (61MB for a test extent!). I then 
implemented a proof of concept page (HTML5) where I took an extent's 
images and concatenated them in a webm video over time and then played 
all the videos at the same time, giving me a nice visualisation of that 
area at a relatively low cost (2.3MB per that extent) and the advantage 
of streaming.


I have already written a script that generates all the videos, so I have 
invested considerable amounts of time into this.


It would be great now if I could use the Apache module mapcache to serve 
up these videos listening and responding to WMS requests. So, all I need 
to change about mapcache is to serve a .webm file with MIME type 
video/webm instead of a .png file at the given extent. I guess I could 
write something in PHP or even with MapScript to serve up those files, but


A) I don't know how mapcache finds the right image for an extent and
B) Although I know C, my knowledge of it is a bit rusty and I don't know 
the interface(s) for writing Apache modules in C, let alone a plugin for 
mapcache


I'm keen on learning, but if someone knows where in the code I would 
have to look for this change/feature enhancement it would be really helpful.


Has something like that been done already or is in experiment/planning?

If you could give me some hints of how to approach this in the quickest 
way possible I would be very grateful. Of course this is a project which 
needs to be done quickly but I want to do it anyway, because it's fun.


Thanks for reading and hopefully you have an answer!

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


RE: [mapserver-users] layerObj.setFilter parser error

2012-01-11 Thread Lime, Steve D (DNR)
I don't know of a simple work around. MapScript and the mapfile parser use the 
same expression tokenizing routine. What happens if you try single quotes? That 
is:

   layerObj.setFilter (  '(point.id = 1)' )

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Radim Blazek
Sent: Tuesday, January 10, 2012 12:05 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] layerObj.setFilter parser error

If I use layerObj.setFilter (  "(point.id = 1)" ), mapObj.OWSDispatch
gives an error:

"msTokenizeExpression(): Expression parser error. Parsing time value failed.
 msParseTime(): Regular expression error. Unrecognized date or
time format ()."

It works correctly with layerObj.setFilter (  "( id = 1)" ) or
layerObj.setFilter (  "point.id = 1" ).
FILTER "( point.id = 1 )" in mapfile also works.
This is of course only a simple example, I need both fully qualified
column name and parenthesis.

It seems to be a bug. Do you know any simple trick, how to get it
working for a presentation tomorrow morning?

Version 6.0.1.

Thanks
Radim
___
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] mapserv 5.6 -> 6.0 label symbol change

2012-01-11 Thread Lime, Steve D (DNR)
The advantage is that you can use a styled marker as a label. I wonder what the
use-case was for the change. Again, will dig and make sure this is resolved one
way or the other for the 6.2 release.

Steve 

-Original Message-
From: Richard Greenwood [mailto:richard.greenw...@gmail.com] 
Sent: Tuesday, January 10, 2012 11:45 AM
To: Lime, Steve D (DNR)
Cc: mapserver
Subject: Re: [mapserver-users] mapserv 5.6 -> 6.0 label symbol change

Steve,

The 5.6 behavior was more user friendly, but the work around is simple
enough that I don't think the issue deserves much attention. I put a
FILTER on the label field and got back to where I wanted to be.
  LABELITEM "NUMBER"
  FILTER ([NUMBER])

As always, thanks for your knowledge and insight.

Rich

On Tue, Jan 10, 2012 at 8:30 AM, Lime, Steve D (DNR)
 wrote:
> I can verify the code in 6.0 that let's this happen- it's deliberate (in 
> msDrawLabelCache()). I have to do some more
> digging to understand the rationale. At first glance I prefer the 5.6 
> behavior as well.
>
> Steve
>
> 
> From: mapserver-users-boun...@lists.osgeo.org 
> [mapserver-users-boun...@lists.osgeo.org] on behalf of Richard Greenwood 
> [richard.greenw...@gmail.com]
> Sent: Saturday, January 07, 2012 5:51 PM
> To: mapserver
> Subject: [mapserver-users] mapserv 5.6 -> 6.0 label symbol change
>
> I have an annotation layer with a class definition that puts a highway
> shield behind the highway number. In mapserver 5.6 if the number value
> is an empty string no shield symbol is drawn, but in 6.0 the shield is
> drawn. The data is coming from a shapefile. Two images are attached
> that illustrate the issue. The class definition is below. In my case
> the 5.6 behavior is preferable. So is this change deliberate, or a
> bug, or is my class definition incorrect for 6.0?
>
>  CLASS
>    STYLE
>      SYMBOL 'wyhwy'
>      SIZE 16
>    END
>    LABEL
>      TYPE truetype
>      FONT arial
>      SIZE 8
>      COLOR 0 0 0
>    END
>  END
>
> Thanks,
> Rich
>
> --
> Richard Greenwood
> richard.greenw...@gmail.com
> www.greenwoodmap.com
>



-- 
Richard Greenwood
richard.greenw...@gmail.com
www.greenwoodmap.com


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


[mapserver-users] QGIS openlayers css file

2012-01-11 Thread Eric Weisbender
Does any one have a QGIS openlayers plugin .css file they are willing to share 
or know of a place to download one.
 
Thanks
EW
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] .NET SWIG Mapscript - Bug or Doc issue

2012-01-11 Thread Stephen Woodbridge

Steve,

I have create a ticket for this problem
http://trac.osgeo.org/mapserver/ticket/4153

The user has provided an image of stepping through the code and a simple 
example with C# code that reproduces the problems. I have helped him 
find a work around, but I think we need to look at the bug and figure 
out if it is SWIG or C# specific issue and clearly some additional doc 
would be helpful to clarify some potential side effects if they are not 
bugs. At the moment the bug is assigned to C#-mapscript.


On 1/10/2012 10:37 AM, Lime, Steve D (DNR) wrote:

Looking at mapserver.h the opacity attribute of a styleObj is exposed via SWIG. 
So it should
be mutable, so there's a documentation problem. You can read the mapfile, 
change the value
and save the mapfile as a quick test.

Can you try another language?


I don't have perl mapscript built here and it might be a while before I 
can try it out here. Hopefully the ticket will better explain the problem.


Thanks,
  -Steve


Steve


From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] on behalf of Stephen Woodbridge 
[wood...@swoodbridge.com]
Sent: Friday, January 06, 2012 6:43 PM
To: mapserver-users
Subject: [mapserver-users] .NET SWIG Mapscript - Bug or Doc issue

Hi all,

The mapfile STYLE block[1] has OPACITY [integer|attribute] but I do not
see this attribute listed in the SWIG mapscript [2] styleObj Attributes
list.

And I have a report that when trying to use this via .NET mapscript that
it does not seem to work.

layerObj opacity seems to work just fine.

So, is this:

a. a code bug or oversight in the SWIG wrappers
b. something specific to .NET code
c. a documentation bug
d. something else all together

I'm happy to create appropriate bugs as needed.

[1] http://mapserver.org/mapfile/style.html
[2] http://mapserver.org/mapscript/mapscript.html#styleobj

Thanks,
-Steve W
___
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 job

2012-01-11 Thread Brent Fraser
Have a look at GeoMoose Feature Editor 
(http://www.geomoose.org/docs/feature_editor.html).  It uses OpenLayers 
for client-side editing of feature geometry, passes the result to 
server-side scripting for inserting into PostGIS.  The features are then 
displayed using a Mapserver layer.


Best Regards,
Brent Fraser


On 1/11/2012 4:25 AM, gabriel munteanu wrote:

Hi,

I am looking for someone to join me in developing a map application.
the job is remote.
Basically, what we have to do is to create an editor in openlayers,
save the features into a postgres/postgis db, then render the map with
mapserver.
If anyone interested can email me at gmunteanu at e-forum dot ro.

cheers,
Gabi
___
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 job

2012-01-11 Thread Rahkonen Jukka
Hi,

There is a ready made quite feature rich application for that:
http://suite.opengeo.org/docs/geoeditor/introduction.html

Should not be impossible to adjust it to use Mapserver and TinyOWS instead of 
Geoserver because Geoeditor is built to use just WMS and WFS-T.

-Jukka Rahkonen-
 

> -Alkuperäinen viesti-
> Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
> [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta 
> gabriel munteanu
> Lähetetty: 11. tammikuuta 2012 13:25
> Vastaanottaja: mapserver-users@lists.osgeo.org
> Aihe: [mapserver-users] mapserver job
> 
> Hi,
> 
> I am looking for someone to join me in developing a map application.
> the job is remote.
> Basically, what we have to do is to create an editor in openlayers,
> save the features into a postgres/postgis db, then render the map with
> mapserver.
> If anyone interested can email me at gmunteanu at e-forum dot ro.
> 
> cheers,
> Gabi
> ___
> 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] mapserver job

2012-01-11 Thread gabriel munteanu
Hi,

I am looking for someone to join me in developing a map application.
the job is remote.
Basically, what we have to do is to create an editor in openlayers,
save the features into a postgres/postgis db, then render the map with
mapserver.
If anyone interested can email me at gmunteanu at e-forum dot ro.

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


[mapserver-users] Clustering and tile clipping

2012-01-11 Thread Wim Vanbelle
Hi,

I'm very happy that mapserver is now capable of server side clustering.
However I wonder if it's possible to completely get rid of the tile
clipping.

Currently I've clustered a point layer with 44k points:

CLUSTER
MAXDISTANCE 100
REGION "ellipse"

END

It is displayed with a simple image:
   STYLE
SYMBOL  "small_shaded.png"
SIZE21
OUTLINECOLOR0 0 0
END

However, when viewing this on google maps, the images are often clipped at
the tile edges.

I figured that I could solve this with mapcache:

 
ld
disk
g2
PNG
2 2
30
3600
2592000
  

i've tried higher values for metatile and it helps a bit, but the problem
simply shifts location. Also with higher values (eg 5 5 metatile) mapserver
doesn't return the tiles on time for mapcache and I get gaps in my results.

Would preseeding the data help with the timeouts? Any other solutions that
I may try? The metadata parameter for tile_edge buffer only works with
labels as far as i know.

Thanks in advance, this issue has been troubling me for some time now :).

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