Re: [mapserver-users] Rendering of Symbols outside map window

2016-02-15 Thread deduikertjes


>>>That's something we may want to fix.

If I remember correctly, Mapserver in  tile mode draws a slightly larger 
tile and crops that one (something configurable with GUTTER or so). I 
wrote my the code in my pull request along the same principle.
Adjusting the query extent when doing whichshapes() and account for the 
size of symbols when adjusting  the clipping rectangle once the feature 
is obtained might be more efficient?


But maybe this discussion shoud be done in mapserver-dev?

MArco

On 15-02-16 21:23, thomas bonfort wrote:

Steve,
IIRC, we account for the size of symbols when adjusting our clipping 
rectangle once we have obtained a feature, but we do not adjust the 
query extent when doing whichshapes(). That's something we may want to 
fix.
Another use-case would also be when the DATA statement does something 
like "ST_Buffer(the_geom,...) as the geom"


--
thomas

On 15 February 2016 at 17:44, Lime, Steve D (MNIT) 
> wrote:


I know. We use to account for that explicitly.


*From:* deduikertjes [deduikert...@xs4all.nl
]
*Sent:* Monday, February 15, 2016 2:44 AM
*To:* Lime, Steve D (MNIT); Patrick Meis

*Cc:* mapserver-users@lists.osgeo.org

*Subject:* Re: [mapserver-users] Rendering of Symbols outside map
window

Steve,

I think the key part in the question is here:

" and the center point of the symbol is no longer inside the map
window".

To my experience a symbol doesn't get drawn at all when the point
which is symbolized is outside the requested extent (WMS mode at
least).

To solve that I created the mentioned pull request.

Or do I miss something?

MArco


On 13-02-16 00:17, Lime, Steve D (MNIT) wrote:

This should already be happening. The drawing code traverses a
layer's class/styles to commute a selection and clipping
rectangle that is larger than the map extent.


*From:* mapserver-users [mapserver-users-boun...@lists.osgeo.org
] on behalf of
mdprive [deduikert...@xs4all.nl ]
*Sent:* Friday, February 12, 2016 4:15 PM
*To:* Patrick Meis
*Cc:* mapserver-users@lists.osgeo.org

*Subject:* Re: [mapserver-users] Rendering of Symbols outside map
window

Hi Patrick,

i've submitted a pull request for extending the map by a buffer
and then clipping it, so that partial symbols on the edge get
rendered as well (wms non tiled mode).

maybe you can build from sources and use this patch to solve your
problem.

marco

-- 



Op 11 feb. 2016 om 21:54 heeft Ambrogio Foletti
> het volgende
geschreven:


Hello Patrick,

if you are using PostGIS as datasource, I would solve the
problem by integrating a st_buffer in the DATA element itself ;)
The added bonus is that you will get the attribute values from a
GetFeatureInfo (if implemented) in the whole buffer zone.
If not, you can try to use tile mode, and add some metabuffer
(see mapserver doc )

Cheers!
A. Foletti

2016-02-05 10:58 GMT+01:00 Patrick Meis >:

Hallo,

i have stumbled on a problem.

I am simulating a buffering of point-data with the help of
symbols, which I have set to

sizeunit = meters

size = 760

These rather big symbols disappear from my map when I zoom
in and

the center point of the symbol is no longer inside the map
window.

But a significant part of the symbol should still be displayed.

Is there any possibility of extending the rendered map, so
that the symbols of my points

are still rendered even when they are outside my map window?

Greetz

Patrick


___
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 Symbols outside map window

2016-02-15 Thread thomas bonfort
Steve,
IIRC, we account for the size of symbols when adjusting our clipping
rectangle once we have obtained a feature, but we do not adjust the query
extent when doing whichshapes(). That's something we may want to fix.
Another use-case would also be when the DATA statement does something like
"ST_Buffer(the_geom,...) as the geom"

--
thomas

On 15 February 2016 at 17:44, Lime, Steve D (MNIT) 
wrote:

> I know. We use to account for that explicitly.
>
> --
> *From:* deduikertjes [deduikert...@xs4all.nl]
> *Sent:* Monday, February 15, 2016 2:44 AM
> *To:* Lime, Steve D (MNIT); Patrick Meis
>
> *Cc:* mapserver-users@lists.osgeo.org
> *Subject:* Re: [mapserver-users] Rendering of Symbols outside map window
>
> Steve,
>
> I think the key part in the question is here:
>
> " and the center point of the symbol is no longer inside the map window".
> To my experience a symbol doesn't get drawn at all when the point which is
> symbolized is outside the requested extent (WMS mode at least).
>
> To solve that I created the mentioned pull request.
>
> Or do I miss something?
>
> MArco
>
>
> On 13-02-16 00:17, Lime, Steve D (MNIT) wrote:
>
> This should already be happening. The drawing code traverses a layer's
> class/styles to commute a selection and clipping rectangle that is larger
> than the map extent.
>
> --
> *From:* mapserver-users [mapserver-users-boun...@lists.osgeo.org] on
> behalf of mdprive [deduikert...@xs4all.nl]
> *Sent:* Friday, February 12, 2016 4:15 PM
> *To:* Patrick Meis
> *Cc:* mapserver-users@lists.osgeo.org
> *Subject:* Re: [mapserver-users] Rendering of Symbols outside map window
>
> Hi Patrick,
>
> i've submitted a pull request for extending the map by a buffer and then
> clipping it, so that partial symbols on the edge get rendered as well (wms
> non tiled mode).
>
> maybe you can build from sources and use this patch to solve your problem.
>
> marco
>
> --
>
>
> Op 11 feb. 2016 om 21:54 heeft Ambrogio Foletti < 
> afole...@gmail.com> het volgende geschreven:
>
> Hello Patrick,
>
> if you are using PostGIS as datasource, I would solve the problem by
> integrating a st_buffer in the DATA element itself ;) The added bonus is
> that you will get the attribute values from a GetFeatureInfo (if
> implemented) in the whole buffer zone.
> If not, you can try to use tile mode, and add some metabuffer (see
> mapserver doc )
>
> Cheers!
> A. Foletti
>
> 2016-02-05 10:58 GMT+01:00 Patrick Meis :
>
>> Hallo,
>>
>>
>>
>> i have stumbled on a problem.
>>
>> I am simulating a buffering of point-data with the help of symbols, which
>> I have set to
>>
>> sizeunit = meters
>>
>> size = 760
>>
>>
>>
>> These rather big symbols disappear from my map when I zoom in and
>>
>> the center point of the symbol is no longer inside the map window.
>>
>> But a significant part of the symbol should still be displayed.
>>
>>
>>
>> Is there any possibility of extending the rendered map, so that the
>> symbols of my points
>>
>> are still rendered even when they are outside my map window?
>>
>>
>>
>> Greetz
>>
>> Patrick
>>
>> ___
>> 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] Very poor WMS tiling performance with small area, ultra-high resolution image

2016-02-15 Thread Avi Blackmore

On Feb 15, 2016, at 1:16 AM, Schepers, Benjamin wrote:

> Hi,
>  
> you still pointed to the right answer, strategies like overviews and tiling 
> are IMHO not scale-dependent. They depend on the pixel-dimension of the image 
> and you have - let’s say - a not so small one ;-)
>  
> So converting to GeoTIFF with internal „Tiling“ could be the right strategy  
> for you (http://www.gdal.org/frmt_gtiff.html;  use “BigTIFF” if files are 
> expected to be larger than 4GB) à hint: gdal_translate with “BIGTIFF=YES” and 
> “TILED=YES” … and of course Overviews (gdaladdo; also possible with 
> BigTIFF-option).
>  
> Compression for original and overviews, could be lossless “LZW” or  lossy 
> „JPEG-YCBCR” for example, this would also substantially squeeze down the size 
> an d depends on your needs…
>  
> I have a lot of aerial images with up to 250.000*150.000px (GSD up to 6cm) in 
> that manner and they are serving really, really fast via mapserver. Not every 
> GIS-software is able to read those tiled and compressed BigTiffs directly 
> (due to the lack of support for this file-format), but ArcGIS and QGIS do 
> well (both use GDAL) and all others could still use the WMS served from 
> mapserver!


Thanks for the advice.  I was already using GeoTIFFs with internal 
tiling, and compression.

The issue turned out to be a bad directive in the mapfile.  Our 
Mapscript application was misconfigured to set LOAD_WHOLE_IMAGE=yes in the 
processing directives for small-area imagery.  I don't recall why this was 
done, but I changed it, and now the images load fine in tiled mode.  

Thanks for your help.

--
Avi Blackmore
Head Programmer/System Administrator
Satshot Inc.

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

Re: [mapserver-users] Adding a logo & attribution

2016-02-15 Thread Lime, Steve D (MNIT)
You can use an inline feature like so:

  LAYER
TYPE '
NAME 'logo'
STATUS DEFAULT
TRANSFORM LR
UNITS PIXELS
FEATURE
  POINTS -50 -20 END
  TEXT 'My Attribution'
END
CLASS
  ... logo graphic and a label ...
END
  END

I'm not positive on the syntax but this would consistently put something in the 
lower right-hand corner. You might have to putz a bit with it but I know it can 
be done.

Steve


From: mapserver-users [mapserver-users-boun...@lists.osgeo.org] on behalf of 
Brent Wood [brent.w...@niwa.co.nz]
Sent: Friday, February 12, 2016 8:55 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Adding a logo & attribution


Hi,


What is the recommended way to add a logo & text attribution clause in the 
bottom right corner of a mapserver WMS service?


Thanks


Brent Wood

Programme leader: Environmental Information Delivery
NIWA
DDI:  +64 (4) 3860529


Brent Wood
Principal Technician - GIS and Spatial Data Management
Programme Leader - Environmental Information Delivery
+64-4-386-0529 | 301 Evans Bay Parade, Greta Point, Wellington | 
www.niwa.co.nz
[NIWA]
To ensure compliance with legal requirements and to maintain cyber security 
standards, NIWA's IT systems are subject to ongoing monitoring, activity 
logging and auditing. This monitoring and auditing service may be provided by 
third parties. Such third parties can access information transmitted to, 
processed by and stored on NIWA's IT systems.



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

Re: [mapserver-users] Rendering of Symbols outside map window

2016-02-15 Thread Lime, Steve D (MNIT)
I know. We use to account for that explicitly.


From: deduikertjes [deduikert...@xs4all.nl]
Sent: Monday, February 15, 2016 2:44 AM
To: Lime, Steve D (MNIT); Patrick Meis
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Rendering of Symbols outside map window

Steve,

I think the key part in the question is here:
" and the center point of the symbol is no longer inside the map window".
To my experience a symbol doesn't get drawn at all when the point which is 
symbolized is outside the requested extent (WMS mode at least).

To solve that I created the mentioned pull request.

Or do I miss something?

MArco


On 13-02-16 00:17, Lime, Steve D (MNIT) wrote:
This should already be happening. The drawing code traverses a layer's 
class/styles to commute a selection and clipping rectangle that is larger than 
the map extent.


From: mapserver-users 
[mapserver-users-boun...@lists.osgeo.org]
 on behalf of mdprive [deduikert...@xs4all.nl]
Sent: Friday, February 12, 2016 4:15 PM
To: Patrick Meis
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Rendering of Symbols outside map window

Hi Patrick,

i've submitted a pull request for extending the map by a buffer and then 
clipping it, so that partial symbols on the edge get rendered as well (wms non 
tiled mode).

maybe you can build from sources and use this patch to solve your problem.

marco

--


Op 11 feb. 2016 om 21:54 heeft Ambrogio Foletti 
<afole...@gmail.com> het 
volgende geschreven:

Hello Patrick,

if you are using PostGIS as datasource, I would solve the problem by 
integrating a st_buffer in the DATA element itself ;) The added bonus is that 
you will get the attribute values from a GetFeatureInfo (if implemented) in the 
whole buffer zone.
If not, you can try to use tile mode, and add some metabuffer (see mapserver 
doc)

Cheers!
A. Foletti

2016-02-05 10:58 GMT+01:00 Patrick Meis 
>:
Hallo,

i have stumbled on a problem.
I am simulating a buffering of point-data with the help of symbols, which I 
have set to
sizeunit = meters
size = 760

These rather big symbols disappear from my map when I zoom in and
the center point of the symbol is no longer inside the map window.
But a significant part of the symbol should still be displayed.

Is there any possibility of extending the rendered map, so that the symbols of 
my points
are still rendered even when they are outside my map window?

Greetz
Patrick

___
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 Symbols outside map window

2016-02-15 Thread deduikertjes

Steve,

I think the key part in the question is here:

" and the center point of the symbol is no longer inside the map window".

To my experience a symbol doesn't get drawn at all when the point which 
is symbolized is outside the requested extent (WMS mode at least).


To solve that I created the mentioned pull request.

Or do I miss something?

MArco


On 13-02-16 00:17, Lime, Steve D (MNIT) wrote:
This should already be happening. The drawing code traverses a layer's 
class/styles to commute a selection and clipping rectangle that is 
larger than the map extent.



*From:* mapserver-users [mapserver-users-boun...@lists.osgeo.org] on 
behalf of mdprive [deduikert...@xs4all.nl]

*Sent:* Friday, February 12, 2016 4:15 PM
*To:* Patrick Meis
*Cc:* mapserver-users@lists.osgeo.org
*Subject:* Re: [mapserver-users] Rendering of Symbols outside map window

Hi Patrick,

i've submitted a pull request for extending the map by a buffer and 
then clipping it, so that partial symbols on the edge get rendered as 
well (wms non tiled mode).


maybe you can build from sources and use this patch to solve your problem.

marco

--


Op 11 feb. 2016 om 21:54 heeft Ambrogio Foletti > het volgende geschreven:



Hello Patrick,

if you are using PostGIS as datasource, I would solve the problem by 
integrating a st_buffer in the DATA element itself ;) The added bonus 
is that you will get the attribute values from a GetFeatureInfo (if 
implemented) in the whole buffer zone.
If not, you can try to use tile mode, and add some metabuffer (see 
mapserver doc )


Cheers!
A. Foletti

2016-02-05 10:58 GMT+01:00 Patrick Meis >:


Hallo,

i have stumbled on a problem.

I am simulating a buffering of point-data with the help of
symbols, which I have set to

sizeunit = meters

size = 760

These rather big symbols disappear from my map when I zoom in and

the center point of the symbol is no longer inside the map window.

But a significant part of the symbol should still be displayed.

Is there any possibility of extending the rendered map, so that
the symbols of my points

are still rendered even when they are outside my map window?

Greetz

Patrick


___
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