Re: [mapserver-users] Data Stores for mapserver.

2020-05-07 Thread Rahkonen Jukka (MML)
Hi,

Do you find anything suitable for you from this list 
https://gdal.org/drivers/vector/index.html?
They are all available for you through OGR connection but it can well be that 
some formats do not work totally out-of-the-box.

-Jukka Rahkonen-

Lähettäjä: mapserver-users  Puolesta 
Atlanta Geek
Lähetetty: torstai 7. toukokuuta 2020 21.32
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: [mapserver-users] Data Stores for mapserver.

How difficult is it to add a new datastore to mapserver.  We currently use 
postgres but with a bigger need for deeper data analysis we are looking at 
other datastores for our report engine. Mapserver is one component of this 
engine.  Does anyone have any experience using any other datastore with 
mapserver that is analytics specific?

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

[mapserver-users] Data Stores for mapserver.

2020-05-07 Thread Atlanta Geek
How difficult is it to add a new datastore to mapserver.  We currently use
postgres but with a bigger need for deeper data analysis we are looking at
other datastores for our report engine. Mapserver is one component of this
engine.  Does anyone have any experience using any other datastore with
mapserver that is analytics specific?

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

Re: [mapserver-users] WCS GetCoverage request one by one pixel

2020-05-07 Thread Bakker, Anton
Hi Jukka,

I finally managed to check up on your suggestion. I set the RESAMPLE mode to 
NEAREST in the mapfile on a MapServer instance running locally on my machine. 
This results in the same response as setting the resampling method in the url 
(see my previous email) :

http://localhost:32788/ahn3/wcs?service=WCS=GetCoverage=2.0.1=ahn3_05m_dsm=image/tiff=x(196396.75,196396.75)=y(450031.75,450031.75)


http://www.opengis.net/ows/2.0; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; version="2.0.1" 
xml:lang="en-US" xsi:schemaLocation="http://www.opengis.net/ows/2.0 
https://geodata.nationaalgeoregister.nl/ows/2.0/owsExceptionReport.xsd">
  
msImageCreate(): Image handling error. Attempt to 
allocate raw image failed, out of memory.
  


Also all resampling methods result in the same response (tested by supplying 
through the query parameter in the url). When  I look in the logs I see that 
MapServer determines the dimensions of the request to be 0x0 pixels, causing 
the creation of the image to fail:

2020-05-06 17:38:11: (mod_fastcgi.c.421) FastCGI-stderr: Subset for X-axis 
found: x
2020-05-06 17:38:11: (mod_fastcgi.c.421) FastCGI-stderr: Subset for Y-axis 
found: y
2020-05-06 17:38:11: (mod_fastcgi.c.421) FastCGI-stderr: msWCSGetCoverage20(): 
Set parameters from originaldata. Width: 0, height: 0, cellsize: -nan, extent: 
-nan,-nan,-nan,-nan
2020-05-06 17:38:11: (mod_fastcgi.c.421) FastCGI-stderr: msImageCreate(): Image 
handling error. Attempt to allocate raw image failed, out of memory.

​I also quickly checked whether requesting a 1x1 subset works, but this fails 
by returning geotiff image of 1x1 pixel with a pixel size of "-135000,162500":
http://localhost:32788/ahn3/wcs?service=WCS=GetCoverage=2.0.1=ahn3_05m_dsm=image/tiff=x(196396.75,196397.25)=y(450031.75,450032.25)

However requesting an image of 2x2 pixels still works as expected:
http://localhost:32788/ahn3/wcs?service=WCS=GetCoverage=2.0.1=ahn3_05m_dsm=image/tiff=x(196396.75,196397.75)=y(450031.75,450032.75)

Kind regards,
Anton


From: Rahkonen Jukka (MML) 
mailto:jukka.rahko...@maanmittauslaitos.fi>>
Sent: Tuesday, April 7, 2020 5:49 PM
To: Bakker, Anton mailto:anton.bak...@kadaster.nl>>; 
mapserver-users@lists.osgeo.org 
mailto:mapserver-users@lists.osgeo.org>>
Subject: Re: WCS GetCoverage request one by one pixel


Hi Anton,



What I meant was to have a try by commenting out this line from your mapfile

PROCESSING "RESAMPLE=BILINEAR"



Actually it would be interesting to know what really happens if the 
interpolation/resampling method is configured in the mapfile and GetCoverage 
comes also with Interpolation parameter.



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

Re: [mapserver-users] HTML Legends with MapServer

2020-05-07 Thread Steve Lime
Query templates already support the concept of includes:

  [include src="some other template"]

so I wonder if it might be possible to extend that functionality to HTML
legend processing. Do you have a particularly complex example you could
share with me?

--Steve

On Thu, May 7, 2020 at 4:42 AM Sven Schroeter  wrote:

> Hi all,
>
> i have been using html legend templates for the mapserver for a very
> long time.
> With many layers such a template can become very long and confusing.
> Is there a possibility to split such a template into several files and
> e.g. include certain areas like in the mapfile?
> Maybe I could solve this with PHP Mapscript?  Up to now I have been
> using processLegendTemplate to output the HTML code.
>
> Thanks
> Sven
>
>
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Using Raster Attribute Table (RAT) with WCS

2020-05-07 Thread Luí­s Moreira de Sousa
Dear all,

I have a WCS serving a few thematic maps, where each cell represents a class, 
like in a land use or ecological map. The maps include a Raster Attribute Table 
(RAT) which essentially relates cell values to classes (e.g. 1 - Grassland).

What would be the correct way of providing the RAT to users of these services? 
As far as I can tell, this is not supported in the WCS core. Is it somehow 
considered in an extension?

Besides WCS, would it be possible to publish the RAT through MapServer in some 
other way?

Thank you.

--
Luís___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] HTML Legends with MapServer

2020-05-07 Thread Sven Schroeter

Hi all,

i have been using html legend templates for the mapserver for a very 
long time.

With many layers such a template can become very long and confusing.
Is there a possibility to split such a template into several files and 
e.g. include certain areas like in the mapfile?
Maybe I could solve this with PHP Mapscript?  Up to now I have been 
using processLegendTemplate to output the HTML code.


Thanks
Sven



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