[mapserver-users] Raster performance hints
Hi We are using MapServer for vector data stored in a PostgreSQL/PostGIS database. For a new project we are planning to provide a WMS based on raster layers and therefore in need of some performance hints or your experiences. The raw data will be a lot of single GeoTIFF (aerials, hillshading, slopes, etc.) files, like 5'000 - 10'000 from different organizations. Since the originate from different organizations it's possible that they can have different resolutions. Conceptionally for aerials it would look like this: Aerial group |_ aerial from organization one (1000 single tiffs, resolution 10cm, approx 10k x 10k pixels) |_ aerial from organization two (600 single tiffs, resolution, 12.5 cm, approx 10k x 10k pixels) |_ aerial from organization three (3000 single tiffs, resolution, 10 cm, approx 10k x 10k pixels) For some hundred single GeoTIFFs we have good experience with the Tileindex approach and an handmade external overview that kicks in at smaller scale. Will this approach still work with a massive amount of single tiffs? Or are the better ones? What about the compression (quality vs. decompression speed vs. disk space?) Or would you expect a much better performance with - let's say - a BigTIFF for each organisation? Thanks for any hints. Best regards Stefan Freundliche Grüsse Stefan Ziegler Kantonsgeometer / Leiter Amt für Geoinformation Amt für Geoinformation Rötistrasse 4 4500 Solothurn Telefon +41 32 627 75 96 stefan.zieg...@bd.so.ch http://www.so.ch ___ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Rendering of adjacent dashed lines
Hi Jukka Yes. Seems similar to what you can do with QGIS. Regards Stefan > -Ursprüngliche Nachricht- > Von: Rahkonen Jukka (MML) [mailto:jukka.rahko...@maanmittauslaitos.fi] > Gesendet: Freitag, 17. Juni 2016 16:20 > An: Ziegler Stefan; 'mapserver-users@lists.osgeo.org' > Betreff: Re: Rendering of adjacent dashed lines > > Hi, > > The only method that really works is to remove adjacent lines. Your trick > seems to be > the same as this https://knowledge.autodesk.com/support/autocad-map- > 3d/troubleshooting/caas/sfdcarticles/sfdcarticles/Using-a-dashed-line-symbol-with- > adjacent-polygons-masking.html > but they used a wider white line. However, it feels usable only if the > background is also > white and there are no lines very close to each other. > > -Jukka Rahkonen- > > > Ziegler Stefan wrote: > > > Hi > > > I'm trying to render some lines with a pattern. This works and looks great > > as long as > the lines are not adjacent. When the lines share a common border the dashed > lines > may look ugly since one dashed line is rendered on top of the other rendered > dashed > line. I tried to add a white solid line under the dashed line: > > CLASS > STYLE > COLOR 255 255 255 > WIDTH 2 > LINECAP BUTT > END > STYLE > COLOR 0 0 0 > WIDTH 2 > LINECAP BUTT > PATTERN 20 4 2 4 2 4 END > END > END > > > But the behaviour is still the same. Is there a trick/workaround for this? > I'm using > MapServer 7.0.1. > > Best regards > Stefan Ziegler > > > > Freundliche Grüsse > Stefan Ziegler > Kantonsgeometer / Leiter Amt für Geoinformation > > Amt für Geoinformation > Rötistrasse 4 > 4500 Solothurn > > Telefon +41 32 627 75 96 > Telefax +41 32 627 75 98 > stefan.zieg...@bd.so.ch > http://www.so.ch > > ___ > 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 adjacent dashed lines
Hi Thomas Here are the screenshots from QGIS: https://sogeo.services/tmp/dashed_line_01.png https://sogeo.services/tmp/dashed_line_02.png The first result I can get also with MapServer. The second one is the desired result which I'm not able to achieve with MapSever. Regards Stefan > -Ursprüngliche Nachricht- > Von: thomas bonfort [mailto:thomas.bonf...@gmail.com] > Gesendet: Freitag, 17. Juni 2016 16:41 > An: Ziegler Stefan > Cc: mapserver-users@lists.osgeo.org > Betreff: Re: [mapserver-users] Rendering of adjacent dashed lines > > Can you post a screenshot? > > On 17 June 2016 at 16:27, Ziegler Stefan <stefan.zieg...@bd.so.ch> wrote: > > Then I wasn't propably clear about the problem. I can get the desired > > effect in > QGIS. The line symbol is a combination of two line symbols. One is dashed, > one is solid. > > > > Regards > > Stefan > > > > Sent from my iPhone > > > >> On 17 Jun 2016, at 16:20, thomas bonfort <thomas.bonf...@gmail.com> wrote: > >> > >> Hi Stefan, > >> Unfortunately no. When I said "impossible" I meant it in the general > >> case, not for MapServer specifically. > >> Regards, > >> -- > >> thomas > >> > >>> On 17 June 2016 at 16:17, Ziegler Stefan <stefan.zieg...@bd.so.ch> wrote: > >>> Hi Thomas > >>> > >>> Would it be possible to fund such a feature? > >>> > >>> Stefan > >>> > >>> Sent from my iPhone > >>> > >>>> On 17 Jun 2016, at 16:05, thomas bonfort <thomas.bonf...@gmail.com> > wrote: > >>>> > >>>> Stefan, > >>>> There is no trick/workaround for this aside from preprocessing your > >>>> data to merge adjacent lines into one. In the general case what you > >>>> are aiming for is impossible as your adjacent lines will have > >>>> different lengths but will be using a fixed length dash pattern. > >>>> > >>>> -- > >>>> thomas > >>>> > >>>>> On 17 June 2016 at 12:38, Ziegler Stefan <stefan.zieg...@bd.so.ch> > >>>>> wrote: > >>>>> Hi > >>>>> > >>>>> I'm trying to render some lines with a pattern. This works and looks > >>>>> great as > long as the lines are not adjacent. When the lines share a common border the > dashed > lines may look ugly since one dashed line is rendered on top of the other > rendered > dashed line. I tried to add a white solid line under the dashed line: > >>>>> > >>>>> CLASS > >>>>> STYLE > >>>>> COLOR 255 255 255 > >>>>> WIDTH 2 > >>>>> LINECAP BUTT > >>>>> END > >>>>> STYLE > >>>>> COLOR 0 0 0 > >>>>> WIDTH 2 > >>>>> LINECAP BUTT > >>>>> PATTERN 20 4 2 4 2 4 END > >>>>> END > >>>>> END > >>>>> > >>>>> > >>>>> But the behaviour is still the same. Is there a trick/workaround for > >>>>> this? I'm > using MapServer 7.0.1. > >>>>> > >>>>> Best regards > >>>>> Stefan Ziegler > >>>>> > >>>>> > >>>>> > >>>>> Freundliche Grüsse > >>>>> Stefan Ziegler > >>>>> Kantonsgeometer / Leiter Amt für Geoinformation > >>>>> > >>>>> Amt für Geoinformation > >>>>> Rötistrasse 4 > >>>>> 4500 Solothurn > >>>>> > >>>>> Telefon +41 32 627 75 96 > >>>>> Telefax +41 32 627 75 98 > >>>>> stefan.zieg...@bd.so.ch > >>>>> http://www.so.ch > >>>>> > >>>>> ___ > >>>>> 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 adjacent dashed lines
Sure, when I'm back home. Stefan Sent from my iPhone > On 17 Jun 2016, at 16:41, thomas bonfort <thomas.bonf...@gmail.com> wrote: > > Can you post a screenshot? > >> On 17 June 2016 at 16:27, Ziegler Stefan <stefan.zieg...@bd.so.ch> wrote: >> Then I wasn't propably clear about the problem. I can get the desired effect >> in QGIS. The line symbol is a combination of two line symbols. One is >> dashed, one is solid. >> >> Regards >> Stefan >> >> Sent from my iPhone >> >>> On 17 Jun 2016, at 16:20, thomas bonfort <thomas.bonf...@gmail.com> wrote: >>> >>> Hi Stefan, >>> Unfortunately no. When I said "impossible" I meant it in the general >>> case, not for MapServer specifically. >>> Regards, >>> -- >>> thomas >>> >>>> On 17 June 2016 at 16:17, Ziegler Stefan <stefan.zieg...@bd.so.ch> wrote: >>>> Hi Thomas >>>> >>>> Would it be possible to fund such a feature? >>>> >>>> Stefan >>>> >>>> Sent from my iPhone >>>> >>>>> On 17 Jun 2016, at 16:05, thomas bonfort <thomas.bonf...@gmail.com> wrote: >>>>> >>>>> Stefan, >>>>> There is no trick/workaround for this aside from preprocessing your >>>>> data to merge adjacent lines into one. In the general case what you >>>>> are aiming for is impossible as your adjacent lines will have >>>>> different lengths but will be using a fixed length dash pattern. >>>>> >>>>> -- >>>>> thomas >>>>> >>>>>> On 17 June 2016 at 12:38, Ziegler Stefan <stefan.zieg...@bd.so.ch> wrote: >>>>>> Hi >>>>>> >>>>>> I'm trying to render some lines with a pattern. This works and looks >>>>>> great as long as the lines are not adjacent. When the lines share a >>>>>> common border the dashed lines may look ugly since one dashed line is >>>>>> rendered on top of the other rendered dashed line. I tried to add a >>>>>> white solid line under the dashed line: >>>>>> >>>>>> CLASS >>>>>>STYLE >>>>>> COLOR 255 255 255 >>>>>> WIDTH 2 >>>>>> LINECAP BUTT >>>>>>END >>>>>>STYLE >>>>>> COLOR 0 0 0 >>>>>> WIDTH 2 >>>>>> LINECAP BUTT >>>>>> PATTERN 20 4 2 4 2 4 END >>>>>>END >>>>>> END >>>>>> >>>>>> >>>>>> But the behaviour is still the same. Is there a trick/workaround for >>>>>> this? I'm using MapServer 7.0.1. >>>>>> >>>>>> Best regards >>>>>> Stefan Ziegler >>>>>> >>>>>> >>>>>> >>>>>> Freundliche Grüsse >>>>>> Stefan Ziegler >>>>>> Kantonsgeometer / Leiter Amt für Geoinformation >>>>>> >>>>>> Amt für Geoinformation >>>>>> Rötistrasse 4 >>>>>> 4500 Solothurn >>>>>> >>>>>> Telefon +41 32 627 75 96 >>>>>> Telefax +41 32 627 75 98 >>>>>> stefan.zieg...@bd.so.ch >>>>>> http://www.so.ch >>>>>> >>>>>> ___ >>>>>> 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 adjacent dashed lines
Then I wasn't propably clear about the problem. I can get the desired effect in QGIS. The line symbol is a combination of two line symbols. One is dashed, one is solid. Regards Stefan Sent from my iPhone > On 17 Jun 2016, at 16:20, thomas bonfort <thomas.bonf...@gmail.com> wrote: > > Hi Stefan, > Unfortunately no. When I said "impossible" I meant it in the general > case, not for MapServer specifically. > Regards, > -- > thomas > >> On 17 June 2016 at 16:17, Ziegler Stefan <stefan.zieg...@bd.so.ch> wrote: >> Hi Thomas >> >> Would it be possible to fund such a feature? >> >> Stefan >> >> Sent from my iPhone >> >>> On 17 Jun 2016, at 16:05, thomas bonfort <thomas.bonf...@gmail.com> wrote: >>> >>> Stefan, >>> There is no trick/workaround for this aside from preprocessing your >>> data to merge adjacent lines into one. In the general case what you >>> are aiming for is impossible as your adjacent lines will have >>> different lengths but will be using a fixed length dash pattern. >>> >>> -- >>> thomas >>> >>>> On 17 June 2016 at 12:38, Ziegler Stefan <stefan.zieg...@bd.so.ch> wrote: >>>> Hi >>>> >>>> I'm trying to render some lines with a pattern. This works and looks great >>>> as long as the lines are not adjacent. When the lines share a common >>>> border the dashed lines may look ugly since one dashed line is rendered on >>>> top of the other rendered dashed line. I tried to add a white solid line >>>> under the dashed line: >>>> >>>> CLASS >>>> STYLE >>>> COLOR 255 255 255 >>>> WIDTH 2 >>>> LINECAP BUTT >>>> END >>>> STYLE >>>> COLOR 0 0 0 >>>> WIDTH 2 >>>> LINECAP BUTT >>>> PATTERN 20 4 2 4 2 4 END >>>> END >>>> END >>>> >>>> >>>> But the behaviour is still the same. Is there a trick/workaround for this? >>>> I'm using MapServer 7.0.1. >>>> >>>> Best regards >>>> Stefan Ziegler >>>> >>>> >>>> >>>> Freundliche Grüsse >>>> Stefan Ziegler >>>> Kantonsgeometer / Leiter Amt für Geoinformation >>>> >>>> Amt für Geoinformation >>>> Rötistrasse 4 >>>> 4500 Solothurn >>>> >>>> Telefon +41 32 627 75 96 >>>> Telefax +41 32 627 75 98 >>>> stefan.zieg...@bd.so.ch >>>> http://www.so.ch >>>> >>>> ___ >>>> 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] Rendering of adjacent dashed lines
Hi I'm trying to render some lines with a pattern. This works and looks great as long as the lines are not adjacent. When the lines share a common border the dashed lines may look ugly since one dashed line is rendered on top of the other rendered dashed line. I tried to add a white solid line under the dashed line: CLASS STYLE COLOR 255 255 255 WIDTH 2 LINECAP BUTT END STYLE COLOR 0 0 0 WIDTH 2 LINECAP BUTT PATTERN 20 4 2 4 2 4 END END END But the behaviour is still the same. Is there a trick/workaround for this? I'm using MapServer 7.0.1. Best regards Stefan Ziegler Freundliche Grüsse Stefan Ziegler Kantonsgeometer / Leiter Amt für Geoinformation Amt für Geoinformation Rötistrasse 4 4500 Solothurn Telefon +41 32 627 75 96 Telefax +41 32 627 75 98 stefan.zieg...@bd.so.ch http://www.so.ch ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] MapCache: KVP vs Rest
Hi Perhaps rather a general question: is there any difference in the performance between requesting tiles with KVP an Rest? Or does one have some advantages? Best regards Stefan Freundliche Grüsse Stefan Ziegler Kantonsgeometer Amt für Geoinformation Amtliche Vermessung Rötistrasse 4 4500 Solothurn Telefon +41 32 627 75 96 Telefax +41 32 627 75 98 stefan.zieg...@bd.so.ch http://www.so.ch ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] mapcache wmts offset
Hi I have an offset with a mapcache WMTS for EPSG:21781 at certain zoom levels. It seems that I have exactly the same probleme as described here (using the same parameters/configuration): http://lists.osgeo.org/pipermail/mapserver-dev/2011-September/011586.html Using Openlayers 2.10 [1] did not help and it's still present with OpenLayers 3 [2]. I do not notice the offset accessing the wmts with QGIS. Any ideas what can be wrong configured etc? [1]: http://www.catais.org/somap3/ [2]: http://www.catais.org/somap3/ol2-wmts/ol2-wmts.html Zooming out will show a zoom level with an offset. Regards Stefan Freundliche Grüsse Stefan Ziegler Kantonsgeometer Amt für Geoinformation Amtliche Vermessung Rötistrasse 4 4500 Solothurn Telefon +41 32 627 75 96 Telefax +41 32 627 75 98 stefan.zieg...@bd.so.ch http://www.so.ch ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] mapcache wmts offset
Hi Thomas Thanks! Second workaround works perfect. Regards Stefan -Ursprüngliche Nachricht- Von: thomas bonfort [mailto:thomas.bonf...@gmail.com] Gesendet: Freitag, 4. April 2014 09:36 An: Ziegler Stefan Cc: mapserver-users@lists.osgeo.org Betreff: Re: [mapserver-users] mapcache wmts offset Hi, mapcache by default aligns its tiles starting from the lower-left corner whereas WMTS expects them to start from the upper-left. While the generated capabilities doc correctly identifies this behavior, most WMTS clients will not support this if they don't do the capabilities parsing themselves. You have two workarounds: - create a grid where maxY is constant throughout your chosen resolutions (the google and wgs84 grids respect this convention) - use a recentish mapcache that supports setting the grid origin activated with grid origin=top-left. In both cases, you will have to fully recompute your cache as the addressing of the tiles will have been changed. cheers, thomas On 4 April 2014 08:50, Ziegler Stefan stefan.zieg...@bd.so.ch wrote: Hi I have an offset with a mapcache WMTS for EPSG:21781 at certain zoom levels. It seems that I have exactly the same probleme as described here (using the same parameters/configuration): http://lists.osgeo.org/pipermail/mapserver-dev/2011-September/011586.h tml Using Openlayers 2.10 [1] did not help and it's still present with OpenLayers 3 [2]. I do not notice the offset accessing the wmts with QGIS. Any ideas what can be wrong configured etc? [1]: http://www.catais.org/somap3/ [2]: http://www.catais.org/somap3/ol2-wmts/ol2-wmts.html Zooming out will show a zoom level with an offset. Regards Stefan Freundliche Grüsse Stefan Ziegler Kantonsgeometer Amt für Geoinformation Amtliche Vermessung Rötistrasse 4 4500 Solothurn Telefon +41 32 627 75 96 Telefax +41 32 627 75 98 stefan.zieg...@bd.so.ch http://www.so.ch ___ 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