Re: [mapserver-users] Strange coordinates used in GetFeatureInfo request

2012-06-25 Thread Anzel, Phil - NRCS, Fort Collins, CO
Hi, Daniel,

What a relief. Thank you so much for the clarification.

- Phil Anzel
   Contractor for USDA/NRCS
   ITC Web Soil Survey Team Member

Date: Sat, 23 Jun 2012 11:08:39 -0400
From: Daniel Morissette 
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Strange coordinates used in
GetFeatureInfo request
Message-ID: <4fe5dbf7.9000...@mapgears.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 12-06-23 11:00 AM, Daniel Morissette wrote:
> I didn't read your whole mail, but short answer is that I suspect you
> are overlooking the fact that in GetFeatureInfo, the X and Y coordinates
> are in pixels within the view of the map (which is 500x500 pixels in
> your example).
>
> So when you write x=0&y=0 that refers to the top-left corner of the map
> view, and not the 0,0 of the SRS coordinate system... which corresponds
> to longitude=-10, and latitude=+10. Actually, the x,y value is
> translated to be the center of the top-left pixel (and not its top-left
> boundary), which explains why you get lon,lat=9.98,9.98 in the query.
>


Please let me reword this last paragraph to make it a little more clear:

When you write X=0&Y=0 in your GetFeatureInfo request that refers to the
top-left corner of the map view which is located at longitude=-10, and
latitude=+10, and not to the 0.0,0.0 of the SRS=EPSG:4326 coordinate
system. Actually, the X,Y value is translated to be the center of the
top-left pixel (and not its top-left boundary), which explains why you
get lon,lat=-9.98,9.98 in the query.






This electronic message contains information generated by the USDA solely for 
the intended recipients. Any unauthorized interception of this message or the 
use or disclosure of the information it contains may violate the law and 
subject the violator to civil or criminal penalties. If you believe you have 
received this message in error, please notify the sender and delete the email 
immediately.

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


Re: [mapserver-users] Avoid label overlaps

2012-06-25 Thread Stephen Woodbridge

Andrea,

Did you get this resolved?
Did you open a bug for it? What number?

We are starting the 6.2 release cycle and if this is an issue we need to 
get it fixed.


Thanks,
  -Steve W

On 6/24/2012 3:53 PM, Stephen Woodbridge wrote:

Andrea,

This is the way mapserver should work, so it sounds like a bug in trunk.
LABELCACHE ON shoudl be the default case and you do not need to
explicitly put it in the mapfile. Make sure you do not have FORCE ON on
any of your LABEL blocks as this make that label blind to the label
cache mechanism.

Ideally if you can make a trival mapfile that reproduces this and
include it in a bug, I'm sure someone will resolve it quickly.

-Steve W

On 6/24/2012 3:37 PM, Andrea Peri wrote:

Hi,

Is possible to force mapserver to avoid the overlaps of label of
distinct layers ?
I need to avoid the overlaps of all the label of the view.

To have this
I try to define the

LABELCACHE ON
on every layer
and also
POSITION AUTO
and
   BUFFER 10

but always I'm having some label of layer-A overlap other labels of
layer-B.

There is something I forgot ?

I'm using the mapserver trunk version.

Thx,

--
-
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-



___
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] Grouping WFS Layers to Output One GML file

2012-06-25 Thread Donald Kerr
Is it possible to group WFS layers, in much the same way as WMS:
"wms_group_title" "Several_Layers", so that a single gml file is returned
from Mapserver?

To explain what I'm trying to do: I want to output several WFS layers as GML
so that they can be imported to another program as a single GML file. I
would like to make this file available as a url, i.e. right click - save as,
so that the user could then import the lot as a single file.

The easiest way for me to do this would be if I could group the WFS layers
at the Mapserver level and provide a link to that WFS request.

Alternatively, can anyone provide some ideas as to how this could be done
by, for example, OpenLayers (I know, wrong group!) or maybe some sort of
server side joining of multiple WFS layers.

Many thanks.

Regards,

Donald


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


Re: [mapserver-users] Grouping WFS Layers to Output One GML file

2012-06-25 Thread Rahkonen Jukka
Hi,

Have you tried what happens if you give a list of layers as typename? This 
should send you some data from TinyOWS

http://188.64.1.61/cgi-bin/tinyows?service=WFS&version=1.0.0&request=Getfeature&typename=lv:puolilehti_25t,lv:puolilehti_50t

-Jukka Rahkonen-

 Donald Kerr wrote:

> Is it possible to group WFS layers, in much the same way as WMS:
"wms_group_title" "Several_Layers", so that a single gml file is returned
from Mapserver?

> To explain what I'm trying to do: I want to output several WFS layers as GML
so that they can be imported to another program as a single GML file. I
would like to make this file available as a url, i.e. right click - save as,
so that the user could then import the lot as a single file.

The easiest way for me to do this would be if I could group the WFS layers
at the Mapserver level and provide a link to that WFS request.

Alternatively, can anyone provide some ideas as to how this could be done
by, for example, OpenLayers (I know, wrong group!) or maybe some sort of
server side joining of multiple WFS layers.

Many thanks.

Regards,

Donald


___
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] Grouping WFS Layers to Output One GML file

2012-06-25 Thread Donald Kerr
Jukka,

I hadn't tried it but I have now and it works (comma separated list - no
spaces). It's such a simple and obvious thing to try that I feel like a bit
of a tit for not having thought about it!!

Many thanks for your assistance.

Regards,

Donald



-Original Message-
From: Rahkonen Jukka [mailto:jukka.rahko...@mmmtike.fi] 
Sent: 25 June 2012 21:47
To: Donald Kerr; 'MAPSERVER USERS'
Subject: Re: [mapserver-users] Grouping WFS Layers to Output One GML file


Hi,

Have you tried what happens if you give a list of layers as typename? This
should send you some data from TinyOWS

http://188.64.1.61/cgi-bin/tinyows?service=WFS&version=1.0.0&request=Getfeat
ure&typename=lv:puolilehti_25t,lv:puolilehti_50t

-Jukka Rahkonen-

 Donald Kerr wrote:

> Is it possible to group WFS layers, in much the same way as WMS:
"wms_group_title" "Several_Layers", so that a single gml file is returned
from Mapserver?

> To explain what I'm trying to do: I want to output several WFS layers 
> as GML
so that they can be imported to another program as a single GML file. I
would like to make this file available as a url, i.e. right click - save as,
so that the user could then import the lot as a single file.

The easiest way for me to do this would be if I could group the WFS layers
at the Mapserver level and provide a link to that WFS request.

Alternatively, can anyone provide some ideas as to how this could be done
by, for example, OpenLayers (I know, wrong group!) or maybe some sort of
server side joining of multiple WFS layers.

Many thanks.

Regards,

Donald


___
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] Avoid label overlaps

2012-06-25 Thread Andrea Peri
Hi Steve, sorry for very late response,
I was take from another serious bug on the operating system of my server.

About the overlap label question:
Seem I was able to resolve the question about label overlaps. :)

>explicitly put it in the mapfile. Make sure you do not have FORCE ON on
>any of your LABEL blocks as this make that label blind to the label
>cache mechanism.

As you suggest the problem was due to a FORCE ON command.

Thx again for your hint.

Andrea.


2012/6/25 Stephen Woodbridge 

> Andrea,
>
> Did you get this resolved?
> Did you open a bug for it? What number?
>
> We are starting the 6.2 release cycle and if this is an issue we need to
> get it fixed.
>
> Thanks,
>  -Steve W
>
>
> On 6/24/2012 3:53 PM, Stephen Woodbridge wrote:
>
>> Andrea,
>>
>> This is the way mapserver should work, so it sounds like a bug in trunk.
>> LABELCACHE ON shoudl be the default case and you do not need to
>> explicitly put it in the mapfile. Make sure you do not have FORCE ON on
>> any of your LABEL blocks as this make that label blind to the label
>> cache mechanism.
>>
>> Ideally if you can make a trival mapfile that reproduces this and
>> include it in a bug, I'm sure someone will resolve it quickly.
>>
>> -Steve W
>>
>> On 6/24/2012 3:37 PM, Andrea Peri wrote:
>>
>>> Hi,
>>>
>>> Is possible to force mapserver to avoid the overlaps of label of
>>> distinct layers ?
>>> I need to avoid the overlaps of all the label of the view.
>>>
>>> To have this
>>> I try to define the
>>>
>>>LABELCACHE ON
>>> on every layer
>>> and also
>>>POSITION AUTO
>>> and
>>>   BUFFER 10
>>>
>>> but always I'm having some label of layer-A overlap other labels of
>>> layer-B.
>>>
>>> There is something I forgot ?
>>>
>>> I'm using the mapserver trunk version.
>>>
>>> Thx,
>>>
>>> --
>>> -
>>> Andrea Peri
>>> . . . . . . . . .
>>> qwerty àèìòù
>>> -
>>>
>>>
>>>
>>> __**_
>>> 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
>



-- 
-
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Dynamic Pie Piece Marker

2012-06-25 Thread Ryan Dussiaume
Hi,

I'm trying to create a point marker shaped like a pie piece where the pie piece 
can be various sizes based on an attribute of the point.  For example, it could 
look like a piece of pie when the attribute is 30 degrees or it could look like 
Pacman if the attribute is 300 degrees.  The color of the pie piece would be 
determined by an attribute as well.

Does anyone know if this is possible with MapServer and how to do it?

I was hoping that I could layer two lines on top of a circle and then somehow 
define a mask for the circle symbol so that the unwanted piece is cut out.  
After some research, it doesn't seem like it's possible.  Has anyone done 
anything similar?

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


Re: [mapserver-users] Dynamic Pie Piece Marker

2012-06-25 Thread Robert Sanson
You could create 36 symbols covering pie wedges in 10 degree increments,  then 
select which one by rounding your attribute to the nearest 10 degrees and 
selecting the appropriate symbol. Fill color could be selected by the second 
attribute.

regards,

Robert

>>> Ryan Dussiaume  26/06/2012 2:25 p.m. >>>
Hi,

I'm trying to create a point marker shaped like a pie piece where the pie piece 
can be various sizes based on an attribute of the point.  For example, it could 
look like a piece of pie when the attribute is 30 degrees or it could look like 
Pacman if the attribute is 300 degrees.  The color of the pie piece would be 
determined by an attribute as well.

Does anyone know if this is possible with MapServer and how to do it?

I was hoping that I could layer two lines on top of a circle and then somehow 
define a mask for the circle symbol so that the unwanted piece is cut out.  
After some research, it doesn't seem like it's possible.  Has anyone done 
anything similar?

Thanks,
Ryan



This email and any attachments are confidential and intended solely for the 
addressee(s). If you are not the intended recipient, please notify us 
immediately and then delete this email from your system.

This message has been scanned for Malware and Viruses by Websense Hosted 
Security.
www.websense.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users