Re: [mapserver-users] Resampling=bicubic supported or not?

2018-02-08 Thread Even Rouault
On jeudi 8 février 2018 15:4550 CET Rahkonen Jukka (MML) wrote:
> Hi,
> 
> Documentation in http://www.mapserver.org/input/raster.html gives these
> alternatives PROCESSING "RESAMPLE=NEAREST"
> PROCESSING "RESAMPLE=AVERAGE"
> PROCESSING "RESAMPLE=BILINEAR"

--> Correct

> while in http://www.mapserver.org/development/rfc/ms-rfc-4.html there is one
> more alternative PROCESSING "RESAMPLE=BICUBIC"

--> Not implemented
I've just removed mention of it in RFC4


-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Resampling=bicubic supported or not?

2018-02-08 Thread Rahkonen Jukka (MML)
Hi,

Documentation in http://www.mapserver.org/input/raster.html gives these 
alternatives
PROCESSING "RESAMPLE=NEAREST"
PROCESSING "RESAMPLE=AVERAGE"
PROCESSING "RESAMPLE=BILINEAR"
while in http://www.mapserver.org/development/rfc/ms-rfc-4.html there is one 
more alternative
PROCESSING "RESAMPLE=BICUBIC"

Which list is correct?

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

Re: [mapserver-users] MapFile DATA Syntax for PostGIS raster with FILTER

2018-02-08 Thread Eichner, Andreas - SID
Hallo Paul,

> -Original Message-
> In a vector PostGIS DB case a layer can be configured to have a dynamic
> client-side filter through the following base syntax, which is fine and
> works for vector tables in the DB:
> 
> DATA "geom FROM some_table using unique id using srid=4326"
> FILTER (id = '%id%')
> 
> As I understand it this in effect this generates an SQL statement where
> the FILTER is created as a where clause in the DATA SQL.

this only works for a vector layer.

> However, in a raster DB example the DATA syntax shown at this link
> [http://postgis.net/docs/RT_FAQ.html#idm28328] is as follows:
> 
> DATA "PG:host=localhost port=5432 dbname='some_db' user='some_user'
> password='some_password' schema='some_schema' table='some_table'
> where='id=12' mode='2' "

Raster layers use GDAL internally and AFAIK don't support FILTER at all. But 
GDAL allows to pass a WHERE clause via the DATA string as described at the 
PostGIS docs or at 
https://trac.osgeo.org/gdal/wiki/frmts_wtkraster.html#a3.2-Readingrasterdatafromthedatabase
 
Since runtime substitution is applied by MapServer before using the DATA string 
you can use something like
  DATA "PG: [...] where='id=%id%' [...]"
Together with a proper validation as described by Steve L.:
  VALIDATION
'id' '^[0-9]{1,3}$'
'default_id' '-1'
  END

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