Re: [mapserver-users] Sequential or parallel access to layer data

2008-05-06 Thread Paul Ramsey
Except for WMS layers, which are fetched in parallel, Mapserver
accesses and renders layers one at a time, from top to bottom in the
map file.  Where you put your layers won't have much/any effect.

On Tue, May 6, 2008 at 4:35 AM, Pleyer, Walter <[EMAIL PROTECTED]> wrote:
> Hi folks!
>
> We have a question regarding performance tuning:
> When a mapfile contains multiple layers, does it access the data sequentailly 
> or in a parallel way?
> Does it matter, if different layers all come from the same source or from 
> various sources (file system, database(s) )?
>
> Thanks
> Walter
>
> ___
> 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] msDrawGDAL query

2008-05-06 Thread Frank Warmerdam

Rob wrote:

Apologies if this is a repost - Google mail problems!

This is my LAYER level output from a Mapscript 4.8.6 install, which 
results in a blank image appearing with its copyright message.  The 
missing Context layer is made up of four non-overlapping TIF images, 
which are indexed via a shapefile.


[Tue May  6 17:09:09 2008].48097 msDrawRasterLayerLow(Context): entering.
[Tue May  6 17:09:09 2008].51092 msDrawGDAL(): src=0,0,1050,1950, 
dst=80,483,1,2
[Tue May  6 17:09:09 2008].54071 msDrawGDAL(): src=0,0,1050,1950, 
dst=80,483,1,2
[Tue May  6 17:09:09 2008].57269 msDrawGDAL(): src=0,0,1050,1950, 
dst=80,483,1,2
[Tue May  6 17:09:09 2008].60451 msDrawGDAL(): src=0,0,1050,1950, 
dst=80,483,1,2

[Tue May  6 17:09:09 2008].69079 msDrawMap(): Layer 0 (Context), 0.022s
[Tue May  6 17:09:09 2008].69259 msDrawMap(): Layer 1 
(CopyrightMessage), 0.000s

[Tue May  6 17:09:09 2008].165473 msDrawMap(): Drawing Label Cache, 0.096s
[Tue May  6 17:09:09 2008].165559 msDrawMap() total time: 0.119s

My query is, do the identical dst values on the msDrawGDAL output lines 
point to an invalid shapefile for the Context layer? 


Rob,

It is suspicious that the four input files are all treated the same way.
But the output window is 1x2 pixels in size.  I suspect they are all
essentially mapped to a fraction of a pixel, and the 1x2 result in due
to some sort of rounding oddness.

You might want to verify that the tileindex coordinates are really in
the same coordinate system that the layer is declared with in your mapfile.

I suspect a coordinate system problem.

Best regards,
--
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, [EMAIL PROTECTED]
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| President OSGeo, http://osgeo.org

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


[mapserver-users] msDrawGDAL query

2008-05-06 Thread Rob
Apologies if this is a repost - Google mail problems!

This is my LAYER level output from a Mapscript 4.8.6 install, which results
in a blank image appearing with its copyright message.  The missing Context
layer is made up of four non-overlapping TIF images, which are indexed via a
shapefile.

[Tue May  6 17:09:09 2008].48097 msDrawRasterLayerLow(Context): entering.
[Tue May  6 17:09:09 2008].51092 msDrawGDAL(): src=0,0,1050,1950,
dst=80,483,1,2
[Tue May  6 17:09:09 2008].54071 msDrawGDAL(): src=0,0,1050,1950,
dst=80,483,1,2
[Tue May  6 17:09:09 2008].57269 msDrawGDAL(): src=0,0,1050,1950,
dst=80,483,1,2
[Tue May  6 17:09:09 2008].60451 msDrawGDAL(): src=0,0,1050,1950,
dst=80,483,1,2
[Tue May  6 17:09:09 2008].69079 msDrawMap(): Layer 0 (Context), 0.022s
[Tue May  6 17:09:09 2008].69259 msDrawMap(): Layer 1 (CopyrightMessage),
0.000s
[Tue May  6 17:09:09 2008].165473 msDrawMap(): Drawing Label Cache, 0.096s
[Tue May  6 17:09:09 2008].165559 msDrawMap() total time: 0.119s

My query is, do the identical dst values on the msDrawGDAL output lines
point to an invalid shapefile for the Context layer?

MTIA

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


Re: [mapserver-dev] Re: [mapserver-users] Rendering of Static Text is different using gd or AGG ?

2008-05-06 Thread Stephen Woodbridge

Thanks Paul and Thomas,

Thomas just closed it as dup of #2403.

I should have tried it on trunk, but didn't have a build conveniently 
available.


-Steve W

Paul Ramsey wrote:

It's a bug, and the regression suite even caught it :)

http://trac.osgeo.org/mapserver/ticket/2600

On Tue, May 6, 2008 at 8:19 AM, Stephen Woodbridge
<[EMAIL PROTECTED]> wrote:

Jeff,

This is a good work around, but I think we need to ask the questions:

 What is the expected behavior?
 Is this a bug, should it be a bug?
 Should this behavior be documented?
 Should this be bugged for 5.2 freeze?

Clearly some code is translating the © for the GD renderer.

Adding cc: mapserver-dev, let me know If you want to to generate a bug based
on this and assign it to 5.2

-Steve W

Jeff McKenna wrote:

What about using your operating system's character set?  For example on
windows pressing ALT-0169 gives the copyright sign, and on MAC pressing
OPTION-G.  So your mapfile snippet is:TEXT "(c)"

-jeff




On 6-May-08, at 9:32 AM, Schönhammer, Herbert wrote:


Hi list,

Using* gd* the declaration "©"renders the "copyright"-Sign:

LAYER
 NAME "copyright"
 REQUIRES ..
 ...

 FEATURE
POINTS
 3 10
END
  END
   ...

 CLASS
* TEXT "© xxx" *
   LABEL
 TYPE TRUETYPE
 FONT 'arial'
 SIZE 9
 POSITION cr
 COLOR 0 0 0
 OUTLINECOLOR  255 255 254
   END
 END
 END # LAYER



But using agg, the text ""© xxx" is rendered in the map.

Please lokk at the examples !

Does anybody know,
how to render the html-code like done in gd ?

Does anybody know another way to render signs like "copyright"  with gd ?

Thanks very much

greetings
Herbert

<> <>


___
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-dev mailing list
[EMAIL PROTECTED]
http://lists.osgeo.org/mailman/listinfo/mapserver-dev



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


Re: [mapserver-dev] Re: AW: [mapserver-users] Rendering of Static Text is different usinggd or AGG ?

2008-05-06 Thread thomas bonfort
This should already be fixed in trunk.
regards,
thomas

On Tue, May 6, 2008 at 6:29 PM, Stephen Woodbridge
<[EMAIL PROTECTED]> wrote:
> Created a bug for this:
>  http://trac.osgeo.org/mapserver/ticket/2607
>
>  Schönhammer, Herbert wrote:
>
> > Hi Steve,
> > Hi Jeff,
> >
> > the workaround of jeff is working.
> >
> > I think, this is a bug, but I don't know how to generate a bug !
> >
> > Could anybody do this for me ? (Only if there are more people who think,
> this is a bug !)
> >
> > Thanks very much,
> > Herbert
> >
> >
> > > -Ursprüngliche Nachricht-
> > > Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Im Auftrag von Stephen
> Woodbridge
> > > Gesendet: Dienstag, 6. Mai 2008 17:20
> > > An: Jeff McKenna
> > > Cc: mapserver-dev; Mapserver-users
> > > Betreff: Re: [mapserver-users] Rendering of Static Text is different
> usinggd or AGG ?
> > >
> > >
> > >
> > > Jeff,
> > >
> > > This is a good work around, but I think we need to ask the questions:
> > >
> > >  What is the expected behavior?
> > >  Is this a bug, should it be a bug?
> > >  Should this behavior be documented?
> > >  Should this be bugged for 5.2 freeze?
> > >
> > > Clearly some code is translating the © for the GD renderer.
> > >
> > > Adding cc: mapserver-dev, let me know If you want to to generate a bug
> based on this and assign it to 5.2
> > >
> > > -Steve W
> > >
> > > Jeff McKenna wrote:
> > >
> > > > What about using your operating system's character set?  For
> > > >
> > > example on
> > >
> > > > windows pressing ALT-0169 gives the copyright sign, and on
> > > >
> > > MAC pressing
> > >
> > > > OPTION-G.  So your mapfile snippet is:TEXT "(c)"
> > > >
> > > >
> > > >
> > > >
> > > > -jeff
> > > >
> > > >
> > > >
> > > >
> > > > On 6-May-08, at 9:32 AM, Schönhammer, Herbert wrote:
> > > >
> > > >
> > > > > Hi list,
> > > > >
> > > > > Using* gd* the declaration "©"renders the "copyright"-Sign:
> > > > >
> > > > > LAYER
> > > > >  NAME "copyright"
> > > > >  REQUIRES ..
> > > > >  ...
> > > > >
> > > > >  FEATURE
> > > > > POINTS
> > > > >  3 10
> > > > > END
> > > > >   END
> > > > >...
> > > > >
> > > > >  CLASS
> > > > > * TEXT "© xxx" *
> > > > >LABEL
> > > > >  TYPE TRUETYPE
> > > > >  FONT 'arial'
> > > > >  SIZE 9
> > > > >  POSITION cr
> > > > >  COLOR 0 0 0
> > > > >  OUTLINECOLOR  255 255 254
> > > > >END
> > > > >  END
> > > > >  END # LAYER
> > > > >
> > > > >
> > > > >
> > > > > But using agg, the text ""© xxx" is rendered in the map.
> > > > >
> > > > > Please lokk at the examples !
> > > > >
> > > > > Does anybody know,
> > > > > how to render the html-code like done in gd ?
> > > > >
> > > > > Does anybody know another way to render signs like
> > > > >
> > > >
> > >
> > >
> > >
> > > "copyright"  with gd ?
> > >
> > > >
> > > > > Thanks very much
> > > > >
> > > > > greetings
> > > > > Herbert
> > > > >
> > > > > <> <>
> > > > >
> > > > >
> > > > >
> > > >
> > > __
> > > _
> > >
> > > >
> > > > > 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 mailing list
> > > mapserver-users@lists.osgeo.org
> > > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> > >
> > >
> >
>
>
>  ___
>  mapserver-dev mailing list
>  [EMAIL PROTECTED]
>  http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: AW: [mapserver-users] Rendering of Static Text is different usinggd or AGG ?

2008-05-06 Thread Stephen Woodbridge

Created a bug for this:
http://trac.osgeo.org/mapserver/ticket/2607

Schönhammer, Herbert wrote:

Hi Steve,
Hi Jeff,

the workaround of jeff is working.

I think, this is a bug, but I don't know how to generate a bug !

Could anybody do this for me ? 
(Only if there are more people who think, this is a bug !)


Thanks very much,
Herbert


-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] Im Auftrag 
von Stephen Woodbridge

Gesendet: Dienstag, 6. Mai 2008 17:20
An: Jeff McKenna
Cc: mapserver-dev; Mapserver-users
Betreff: Re: [mapserver-users] Rendering of Static Text is 
different usinggd or AGG ?



Jeff,

This is a good work around, but I think we need to ask the questions:

  What is the expected behavior?
  Is this a bug, should it be a bug?
  Should this behavior be documented?
  Should this be bugged for 5.2 freeze?

Clearly some code is translating the © for the GD renderer.

Adding cc: mapserver-dev, let me know If you want to to generate a bug 
based on this and assign it to 5.2


-Steve W

Jeff McKenna wrote:
What about using your operating system's character set?  For 
example on 
windows pressing ALT-0169 gives the copyright sign, and on 
MAC pressing 

OPTION-G.  So your mapfile snippet is:TEXT "©"

-jeff




On 6-May-08, at 9:32 AM, Schönhammer, Herbert wrote:


Hi list,

Using* gd* the declaration "©"renders the "copyright"-Sign:

LAYER
  NAME "copyright"
  REQUIRES ..
  ...

  FEATURE
 POINTS
  3 10
 END
   END
   
 ...


  CLASS
* TEXT "© xxx" *
LABEL
  TYPE TRUETYPE
  FONT 'arial'
  SIZE 9
  POSITION cr
  COLOR 0 0 0
  OUTLINECOLOR  255 255 254
END
  END
 
END # LAYER




But using agg, the text ""© xxx" is rendered in the map.

Please lokk at the examples !

Does anybody know,
how to render the html-code like done in gd ?

Does anybody know another way to render signs like 

"copyright"  with gd ?

Thanks very much

greetings
Herbert

<> <>



__
_

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 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] Hello

2008-05-06 Thread Fawcett, David
Nelson, 

One of the easiest ways to get MapServer and other OS GIS tools up and
running on OS X is to use William kyngesburye's frameworks and binaries
found at http://www.kyngchaos.com/

David.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nelson
Soto
Sent: Tuesday, May 06, 2008 8:54 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Hello


Hello everyone,

I have experience using MS4W and getting an add-on application within it
to generate maps to my liking. Unfortunately, I've been tasked with
porting it over to OS X because we have a decent server not being used
and we would like to host the above mentioned web app on it.

I am running OS X Server 10.4.11 and haven't found very good
documentation on setting up Mapserver on OS X Server at all.

I have MacPorts set up and have PHP 5 currently loaded as well. Does
anyone know of a step-by-step on how to setup Mapserver on OS X server
that I could read to sort of point me in the right direction? If not, I
can describe the issues I'm having here but it's more than likely that
I'd rather just start over if I had a reliable tutorial of sorts.

Thanks,
Nelson
___
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-dev] Re: [mapserver-users] Rendering of Static Text is different using gd or AGG ?

2008-05-06 Thread Paul Ramsey
It's a bug, and the regression suite even caught it :)

http://trac.osgeo.org/mapserver/ticket/2600

On Tue, May 6, 2008 at 8:19 AM, Stephen Woodbridge
<[EMAIL PROTECTED]> wrote:
> Jeff,
>
> This is a good work around, but I think we need to ask the questions:
>
>  What is the expected behavior?
>  Is this a bug, should it be a bug?
>  Should this behavior be documented?
>  Should this be bugged for 5.2 freeze?
>
> Clearly some code is translating the © for the GD renderer.
>
> Adding cc: mapserver-dev, let me know If you want to to generate a bug based
> on this and assign it to 5.2
>
> -Steve W
>
> Jeff McKenna wrote:
>>
>> What about using your operating system's character set?  For example on
>> windows pressing ALT-0169 gives the copyright sign, and on MAC pressing
>> OPTION-G.  So your mapfile snippet is:TEXT "(c)"
>>
>> -jeff
>>
>>
>>
>>
>> On 6-May-08, at 9:32 AM, Schönhammer, Herbert wrote:
>>
>>> Hi list,
>>>
>>> Using* gd* the declaration "©"renders the "copyright"-Sign:
>>>
>>> LAYER
>>>  NAME "copyright"
>>>  REQUIRES ..
>>>  ...
>>>
>>>  FEATURE
>>> POINTS
>>>  3 10
>>> END
>>>   END
>>>...
>>>
>>>  CLASS
>>> * TEXT "© xxx" *
>>>LABEL
>>>  TYPE TRUETYPE
>>>  FONT 'arial'
>>>  SIZE 9
>>>  POSITION cr
>>>  COLOR 0 0 0
>>>  OUTLINECOLOR  255 255 254
>>>END
>>>  END
>>>  END # LAYER
>>>
>>>
>>>
>>> But using agg, the text ""© xxx" is rendered in the map.
>>>
>>> Please lokk at the examples !
>>>
>>> Does anybody know,
>>> how to render the html-code like done in gd ?
>>>
>>> Does anybody know another way to render signs like "copyright"  with gd ?
>>>
>>> Thanks very much
>>>
>>> greetings
>>> Herbert
>>>
>>> <> <>
>>>
>>>
>>> ___
>>> 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-dev mailing list
> [EMAIL PROTECTED]
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Rendering of Static Text is different using gd or AGG ?

2008-05-06 Thread Stephen Woodbridge

Jeff,

This is a good work around, but I think we need to ask the questions:

  What is the expected behavior?
  Is this a bug, should it be a bug?
  Should this behavior be documented?
  Should this be bugged for 5.2 freeze?

Clearly some code is translating the © for the GD renderer.

Adding cc: mapserver-dev, let me know If you want to to generate a bug 
based on this and assign it to 5.2


-Steve W

Jeff McKenna wrote:
What about using your operating system's character set?  For example on 
windows pressing ALT-0169 gives the copyright sign, and on MAC pressing 
OPTION-G.  So your mapfile snippet is:TEXT "©"


-jeff




On 6-May-08, at 9:32 AM, Schönhammer, Herbert wrote:


Hi list,

Using* gd* the declaration "©"renders the "copyright"-Sign:

LAYER
  NAME "copyright"
  REQUIRES ..
  ...

  FEATURE
 POINTS
  3 10
 END
   END
   
 ...


  CLASS
* TEXT "© xxx" *
LABEL
  TYPE TRUETYPE
  FONT 'arial'
  SIZE 9
  POSITION cr
  COLOR 0 0 0
  OUTLINECOLOR  255 255 254
END
  END
 
END # LAYER




But using agg, the text ""© xxx" is rendered in the map.

Please lokk at the examples !

Does anybody know,
how to render the html-code like done in gd ?

Does anybody know another way to render signs like "copyright"  with gd ?

Thanks very much

greetings
Herbert

<> <>

___
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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Rendering of Static Text is different using gd or AGG ?

2008-05-06 Thread Jeff McKenna
What about using your operating system's character set?  For example  
on windows pressing ALT-0169 gives the copyright sign, and on MAC  
pressing OPTION-G.  So your mapfile snippet is:TEXT "©"


-jeff




On 6-May-08, at 9:32 AM, Schönhammer, Herbert wrote:


Hi list,

Using gd the declaration "©"renders the "copyright"-Sign:

LAYER
  NAME "copyright"
  REQUIRES ..
  ...

  FEATURE
 POINTS
  3 10
 END
   END

 ...

  CLASS
TEXT "© xxx"
LABEL
  TYPE TRUETYPE
  FONT 'arial'
  SIZE 9
  POSITION cr
  COLOR 0 0 0
  OUTLINECOLOR  255 255 254
END
  END

END # LAYER



But using agg, the text ""© xxx" is rendered in the map.

Please lokk at the examples !

Does anybody know,
how to render the html-code like done in gd ?

Does anybody know another way to render signs like "copyright"  with  
gd ?


Thanks very much

greetings
Herbert

<> <>

rendering.gif>___

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] Hello

2008-05-06 Thread Nelson Soto
Hello everyone,

I have experience using MS4W and getting an add-on application within
it to generate maps to my liking. Unfortunately, I've been tasked with
porting it over to OS X because we have a decent server not being used
and we would like to host the above mentioned web app on it.

I am running OS X Server 10.4.11 and haven't found very good
documentation on setting up Mapserver on OS X Server at all.

I have MacPorts set up and have PHP 5 currently loaded as well. Does
anyone know of a step-by-step on how to setup Mapserver on OS X server
that I could read to sort of point me in the right direction? If not,
I can describe the issues I'm having here but it's more than likely
that I'd rather just start over if I had a reliable tutorial of sorts.

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


[mapserver-users] Rendering of Static Text is different using gd or AGG ?

2008-05-06 Thread Schönhammer, Herbert
Hi list,

Using gd the declaration "©"renders the "copyright"-Sign:

LAYER
  NAME "copyright"
  REQUIRES ..
  ...

  FEATURE
 POINTS
  3 10 
 END
   END

 ... 

  CLASS
TEXT "© xxx"
LABEL
  TYPE TRUETYPE
  FONT 'arial'
  SIZE 9
  POSITION cr
  COLOR 0 0 0
  OUTLINECOLOR  255 255 254
END
  END
  
END # LAYER 



But using agg, the text ""© xxx" is rendered in the map.

Please lokk at the examples !

Does anybody know,
how to render the html-code like done in gd ?

Does anybody know another way to render signs like "copyright"  with gd ?

Thanks very much

greetings
Herbert

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


[mapserver-users] Sequential or parallel access to layer data

2008-05-06 Thread Pleyer, Walter
Hi folks!

We have a question regarding performance tuning:
When a mapfile contains multiple layers, does it access the data sequentailly 
or in a parallel way?
Does it matter, if different layers all come from the same source or from 
various sources (file system, database(s) )?

Thanks
Walter

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


[mapserver-users] IE 7

2008-05-06 Thread Johan Ruiter
Hi list,

 

A lot of years I maintain and develop mapserver based giswebviewers for
a number of customers. One of the possibilities for the users is to make
a print of a map that they have created on the screen. Most of the users
use still Microsoft Internet Explorer 6. More and more users migrate to
IE7 and find out that this version automatically scale their landscape
maps to fit on a portrait paper position. When they change the paper
position back to landscape including the 'fitting' option, IE7 doesn't
scale the map back to its original size. The only way to do this is to
cancel the print-window, right-click on the map-window, choose 'Print
Preview' and use the buttons of this window to print the map the right
way. Most users don't understand this strange procedure and I don't like
it either. To solve this problem, I tried to find a (JavaScript)
function to use for users using IE7 that opens the 'Print Preview'
window, so that the users will be able to handle all modifications to
their map. Does anybody know such a function or another solution to this
problem?

 

Regards,

 

Johan

 

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


Re: [mapserver-users] Howto generate 24-bit png data from mapscript?

2008-05-06 Thread Guillaume Sueur

Hi,
Did you try using
map.setOutputFormat("image/png") or map.setOutputFormat("png") ?

Guillaume

Sven Geggus a écrit :

Hi there,

looks like I got bitten by some mapscript bug, because I am unable to produce
24-bit png output via mapscript from my raster layers. I always get 8-bit
rasters :(

Despite the bug, I need a workaround for this as 8-bit rasters are
insufficient for my purpose.

Here is what my current testscript looks like:

--cut--
import mapscript

def index(req):
req = mapscript.OWSRequest()
req.loadParams() 


map = mapscript.mapObj()
map.name = "TestMap"
map.shapepath = "/path/to/orthoimage/"
map.setProjection("init=epsg:4326")
map.setMetaData("wms_srs","epsg:4326")
map.setExtent(-180.0,-90.0,180.0,90.0)

outputFormat=mapscript.outputFormatObj("GD/PNG")
outputFormat.name="png"
outputFormat.setMimetype("image/png")
outputFormat.imagemode=mapscript.MS_IMAGEMODE_RGBA
outputFormat.transparent=1
outputFormat.setExtension("png")
map.setOutputFormat(outputFormat)

layer = mapscript.layerObj(map)

layer.name= "foobar"
layer.type = mapscript.MS_LAYER_RASTER
layer.status = mapscript.MS_DEFAULT
layer.data = "my_otho_image.img"

map.save("/tmp/buggy.map")

map.OWSDispatch(req)
--cut--

Do you know a suitable workaround for this Problem?

I consider this as a bug, because I am able to produce perfect 24-bit png
data when using the genearted mapfile from cgi-mapserv.

Regards

Sven

P.S.: I already reported this, but did not get a responce
https://trac.osgeo.org/mapserver/ticket/2587



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


[mapserver-users] Howto generate 24-bit png data from mapscript?

2008-05-06 Thread Sven Geggus
Hi there,

looks like I got bitten by some mapscript bug, because I am unable to produce
24-bit png output via mapscript from my raster layers. I always get 8-bit
rasters :(

Despite the bug, I need a workaround for this as 8-bit rasters are
insufficient for my purpose.

Here is what my current testscript looks like:

--cut--
import mapscript

def index(req):
req = mapscript.OWSRequest()
req.loadParams() 

map = mapscript.mapObj()
map.name = "TestMap"
map.shapepath = "/path/to/orthoimage/"
map.setProjection("init=epsg:4326")
map.setMetaData("wms_srs","epsg:4326")
map.setExtent(-180.0,-90.0,180.0,90.0)

outputFormat=mapscript.outputFormatObj("GD/PNG")
outputFormat.name="png"
outputFormat.setMimetype("image/png")
outputFormat.imagemode=mapscript.MS_IMAGEMODE_RGBA
outputFormat.transparent=1
outputFormat.setExtension("png")
map.setOutputFormat(outputFormat)

layer = mapscript.layerObj(map)
layer.name= "foobar"
layer.type = mapscript.MS_LAYER_RASTER
layer.status = mapscript.MS_DEFAULT
layer.data = "my_otho_image.img"

map.save("/tmp/buggy.map")

map.OWSDispatch(req)
--cut--

Do you know a suitable workaround for this Problem?

I consider this as a bug, because I am able to produce perfect 24-bit png
data when using the genearted mapfile from cgi-mapserv.

Regards

Sven

P.S.: I already reported this, but did not get a responce
https://trac.osgeo.org/mapserver/ticket/2587

-- 
Threading is a performance hack.
(The Art of Unix Programming by Eric S. Raymond)

/me is [EMAIL PROTECTED], http://sven.gegg.us/ on the Web
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Howto generate 24-bit png data from mapscript

2008-05-06 Thread Sven Geggus
Hi there,

looks like I got bitten by some mapscript bug, because I am unable to produce
24-bit png output via mapscript from my raster layers. I always get 8-bit
rasters :(

Despite the bug, I need a workaround for this as 8-bit rasters are
insufficient for my purpose.

Here is what my current testscript looks like:

--cut--
import mapscript

def index(req):
req = mapscript.OWSRequest()
req.loadParams() 

map = mapscript.mapObj()
map.name = "TestMap"
map.shapepath = "/path/to/orthoimage/"
map.setProjection("init=epsg:4326")
map.setMetaData("wms_srs","epsg:4326")
map.setExtent(-180.0,-90.0,180.0,90.0)

outputFormat=mapscript.outputFormatObj("GD/PNG")
outputFormat.name="png"
outputFormat.setMimetype("image/png")
outputFormat.imagemode=mapscript.MS_IMAGEMODE_RGBA
outputFormat.transparent=1
outputFormat.setExtension("png")
map.setOutputFormat(outputFormat)

layer = mapscript.layerObj(map)
layer.name= "foobar"
layer.type = mapscript.MS_LAYER_RASTER
layer.status = mapscript.MS_DEFAULT
layer.data = "my_otho_image.img"

map.save("/tmp/buggy.map")

map.OWSDispatch(req)
--cut--

Do you know a suitable workaround for this Problem?

I consider this as a bug, because I am able to produce perfect 24-bit png
data when using the genearted mapfile from cgi-mapserv.

Regards

Sven

P.S.: I already reported this, but did not get a responce
https://trac.osgeo.org/mapserver/ticket/2587

-- 
Threading is a performance hack.
(The Art of Unix Programming by Eric S. Raymond)

/me is [EMAIL PROTECTED], http://sven.gegg.us/ on the Web
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] TIFF tiles and indexes

2008-05-06 Thread Eichner, Andreas - SID-NLK
Hi Richard,

> The tile was originally a 24 bit JPEG, 5517 x 4889 pixels.

our tiles are RGB images, each 4000x4000 pixels in size. If 8bit mode
looks ugly you could use dithering but if you have the possibility you
might want to use Gimp or the like to manually create an indexed image
with an optimized palette.

> I was concerned about efficiency so I looked at tiles. I used 
> gdal_translate to convert the GIF into a tiled TIFF. This was followed

> by gdaladdo to produce overviews of 8x and 64x decimation.

The size for internal tiling defaults to 256x256 pixels. You might try
smaller sizes with the BLOCKXSIZE/BLOCKYSIZE creation option. Also, you
should probably add more overviews. MapServer always tries to scale
down. So if you have a zoom level lower than 8x MS loads and scales the
full resolution image which might be slow. Since overviews are created
offline you can safely select -r average for scaling and use the fast
nearest neighbor resampler for on-the-fly scaling at runtime.

> The TIFF file is now 29.3Meg.  This compares to the original JPEG of 
> 4.2Meg and the GIF of 14.2Meg.
> Also from what I've read, MapServer is meant to be faster with TIFFs 
> because decoding is easy.

That's right, the fastest thing you can get is an uncompressed TIFF as
long as your storage is fast enough. It's basically a tradeoff between
IO time and CPU time. If you have a fast hard drive you can save CPU
cycles by using an uncompressed TIFF but if you load your data from a
floppy you might want to load only as few as possible from it and use
CPU cycles for decompressing. 

> So, is it more efficient to use lots of individual TIFFs (indexed with

> gdaltindex) or just one big tiled TIFF?

As long as possible I would use a single file with internal overviews
and tiling since using external tiles always leads to an index scan,
filename loading and a open-load-close-cycle for every tile. So if you
zoom out MS has to load more and more tiles which is _much_ slower than
simply open a single file, select the best matching overview, load the
appropriate data portion (the internal tiles) and close the file. Note
that TIFFs can not get bigger than 4Gig as long as you have no
BigTIFF-support...

> If I choose individual files, what is a good rule of thumb for optimum

> tile size?

The optimum tile size depends on the raster size MS normally has to
serve. If the size is static you can create tiles in a size that MS has
to touch only 4 files in the worst case before switching to the next
overview layer...
You can go and make your tiles as large as possible (4Gig) but if your
data changes you have to do that again.

> Are there any good utilities for making raster sub-tiles?   Unless I 
> "can't see for looking", I can't see one in the GDAL utility list?

There's a python script "gdal_retile.py" in the GDAL suite.

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