[MapServer-users] Postgres DATA query with LIMIT 10 does not work

2023-10-19 Thread Marcin Niemyjski via MapServer-users
Hello, I encountered a problem, specifically: This query works: DATA 'geometry from (select * from mrc order by maxcc desc) as subquery using unique unique_id' However, this query doesn't work: DATA 'geometry from (select * from mrc order by maxcc desc limit 10) as subquery using unique

Re: [MapServer-users] Postgres DATA query with LIMIT 10 does not work

2023-10-19 Thread Marcin Niemyjski via MapServer-users
is breaking it down into two new dimensions: start and stop. Best regards and thanks, Marcin From: MapServer-users on behalf of Marcin Niemyjski via MapServer-users Sent: Thursday, October 19, 2023 12:56 PM To: mapserver-users@lists.osgeo.org ; Jörg Thomsen

Re: [MapServer-users] Postgres DATA query with LIMIT 10 does not work

2023-10-19 Thread Marcin Niemyjski via MapServer-users
o: mapserver-users@lists.osgeo.org Subject: Re: [MapServer-users] Postgres DATA query with LIMIT 10 does not work Hello Marcin, sounds stupid, but are you sure the 10 datasets have geometries within the requested bbox? I don't see any other problem/mistakes. Jörg Am 19.10.23 um 11:39 schrieb Ma

[MapServer-users] Google maps XYZ service as a layer data source?

2023-10-16 Thread Marcin Niemyjski via MapServer-users
Hello, coming back with another question, namely: Can XYZ service be used as a LAYER data source within mapfile? I'm not talking about cashed service; I would like to directly connect to GoogleMaps. Is it possible? Best, Marcin

[MapServer-users] How to handle NoData in WCS Request? Continuation of [Speed of WMS vs Speed of WCS; How to speed up WCS service?]

2023-08-17 Thread Marcin Niemyjski via MapServer-users
Hello, Regarding the topic discussed in https://marc.info/?l=mapserver-users=169049275409489=2, I have implemented Jukka's suggestions. I created two new attributes, "start" and "stop." Here's the improved mapfile: https://pastecode.io/s/myjemd1r As you can see, there are 4 layers served

[MapServer-users] Mapserver is limited to reading only from /var/www

2023-08-18 Thread Marcin Niemyjski via MapServer-users
Hello, I have a problem, Specifically, my mapserver can only read files from the /var/www folder. When I try to read a file from any other folder, I receive the following error: msDrawRasterLayerLow(): Unable to access file. Corrupt, empty, or missing file

[mapserver-users] #TransparentBackground #WMS #Mapcache

2022-06-20 Thread Marcin Niemyjski via MapServer-users
Hello, does anyone know why the transparent WMS is displayed this way (https://pasteboard.co/vM3SKvRZ5krL.png)? The WMS comes from mapcaching, I checked the tiles in another program and sure enough they are transparent. I am also uploading the mapcache.xml file, maybe there is a problem with

[MapServer-users] Content of WMS based on attribute

2022-08-19 Thread Marcin Niemyjski via MapServer-users
Hello, I am wondering if it is possible to modify the GetMap request so that it displays elements of the Postgresql database based on the value of their attributes, e.g., having a set of polygons representing fields by writing crop = sunflower in the GetMap request, the polygons representing

[MapServer-users] Ask for advice on Caching large layers on high zoom level

2022-09-02 Thread Marcin Niemyjski via MapServer-users
Hello, My job is to cache 365 layers. These layers consist of up to 30 .tif (COG) files stored in a mapfile. These layers are roughly the size of Poland and I would like to acquire their tiles for level 14 zoom. One layer for these settings: sudo mapcache_seed -c

[MapServer-users] Mapserver on Docker - Mapfiles in S3 Bucket

2022-10-20 Thread Marcin Niemyjski via MapServer-users
Hello, I'm using camptocamp/mapserver on docker and I wanted to know If it is possible to store mapfiles on S3 Bucket to which docker has access. For Example: I can access Mapserver on docker via url:

[MapServer-users] Mapserver reverse proxy

2022-10-27 Thread Marcin Niemyjski via MapServer-users
Hello, coming back to you with another question - continuation of my issue about keeping mapfiles on s3 while using docker. I managed to create a reverse proxy which redirects to the s3 bucket (by editing apache .conf file) and it works. The problem is: when i try to use it on wms resource url

Re: [MapServer-users] Redirecting to s3 via apache2 redirect/alias/proxy

2022-10-24 Thread Marcin Niemyjski via MapServer-users
ture? As said before, you could als use an Environment variable. Cheers Lars Am 24.10.22 um 11:12 schrieb Marcin Niemyjski via MapServer-users: Hello, coming back to you with one more question about s3, namely: As I wrote before - I want to keep my mapfiles on buckets but I also want to access

[MapServer-users] Redirecting to s3 via apache2 redirect/alias/proxy

2022-10-24 Thread Marcin Niemyjski via MapServer-users
Hello, coming back to you with one more question about s3, namely: As I wrote before - I want to keep my mapfiles on buckets but I also want to access them without need to mount buckets to VMs, so I've came up with this: https://httpd.apache.org/docs/2.4/rewrite/flags.html#flag_p

[MapServer-users] Serving data from private S3 bucket

2022-10-13 Thread Marcin Niemyjski via MapServer-users
Hello, I'am looking for a way to server data straight from a private S3 object storage. So far, I've been using public object storage and /vsicurl/ to connect by generated https to files but for some of my projects I wouldn't like users to have access to data before rendering it to wms and I

[MapServer-users] The way WMS is displayed depends on Zoom Level

2022-10-12 Thread Marcin Niemyjski via MapServer-users
Hello, I have created mapfile based on raster data from Sentinel 1, but the way rendered data is displayed varies in dependent of zoom level. What I'am talking about: https://ibb.co/X8pTKst https://ibb.co/QF4fX48 https://ibb.co/n1tZSQZ Of course I would like to achive the effect visible on

[MapServer-users] WMS in 16bit depth?

2022-10-12 Thread Marcin Niemyjski via MapServer-users
Hello, Is it possible to exhibit WMS in 16bit depth? The goal is to provide more depth in the scale. Could I ask for a hint? Best regards, Marcin ___ MapServer-users mailing list MapServer-users@lists.osgeo.org

[MapServer-users] Symbol image on s3 bucket?

2022-12-22 Thread Marcin Niemyjski via MapServer-users
Hello, is it possible to keep my symbols images on S3 bucket and connect to them via vsis3? This way doesn't work: SYMBOL NAME "fuel" TYPE pixmap IMAGE "/vsis3/Cyprus/fuel.png" END Mapserver returns "msLoadMSRasterBufferFromFile(): General error message. unable to open file

[MapServer-users] security of S3 credentials in Mapfile

2022-12-22 Thread Marcin Niemyjski via MapServer-users
Hello, because of using private bucket as a place where I keep my rasters I'm putting credentials in my mapfile as Enviromental Variables. The question is - Is it safe? Obviously, I do not want anyone mess with my data. Are there any tips beyond Apache aliases to hide mapfile path? I already

Re: [MapServer-users] security of S3 credentials in Mapfile

2022-12-22 Thread Marcin Niemyjski via MapServer-users
PM To: Marcin Niemyjski ; Marcin Niemyjski via MapServer-users Subject: Re: [MapServer-users] security of S3 credentials in Mapfile GDAL can read S3 credentials from the ~/.aws/credentials file that is used by the aws command line utility. You would also probably want to create credentials

[MapServer-users] Mapserver Apache2 Rewrite not working

2022-12-23 Thread Marcin Niemyjski via MapServer-users
Hello, I'm trying to shorten my mapfile url from https://www..eu/cgi-bin/mapserv?map=/DyskPlanetiler/MAPFILEs/Sentinel2Ukraine.map to https://www..eu/Sentinel2Ukraine. I'm doing it by writing RewriteEngine onRewriteRule Sentinel2Ukraine?(.*)

Re: [MapServer-users] Failed to download capabilities:Download of capabilities failed: Connection on mapfile with more than 1000 layers

2022-12-20 Thread Marcin Niemyjski via MapServer-users
t; > > Jörg > > > Am 20.12.22 um 09:42 schrieb Marcin Niemyjski via MapServer-users: >> Hello, >> >> I have a mapfile which constist of 1200 layers. While loading to qgis >> error "Failed to download capabilities:Download of capabilities >> failed

[MapServer-users] apache2 aliases: msCGILoadMap(): Web application error. CGI variable map

2023-01-10 Thread Marcin Niemyjski via MapServer-users
Hello, I'm trying to create Apache aliases by editing /etc/apache2/apache2.conf as below: Alias /Sentinel2Ukraine "/usr/local/bin/mapserv" SetHandler fcgi-script (I have also tried with cgi-script) Options ExecCGI SetEnv MS_MAPFILE "/etc/mapserver/Sentinel2Ukraine.map"

[MapServer-users] How to create aliases on mapserver docker image camptocamp/mapserver?

2023-01-05 Thread Marcin Niemyjski via MapServer-users
Hello, I'm using camptocamp mapserver docker image. I want to create Aliases so I can access several mapfiles using their file names, example: www.service.pl/WMSNo1 instead of www.service.pl?map=/etc/mapserver/WMSNo1.map. Could you please provide me an example of how

[MapServer-users] list of layer groups without possibilite to access theirs components.

2023-01-05 Thread Marcin Niemyjski via MapServer-users
Hello, the last time I was asking about hiding layers in mapfile. I was not clear about what I want to performe. As you can see group "2022-11-01" constist of two layers: https://pasteboard.co/oxYkqAWrkabh.png My goal is to deliver generalized tif on low zoom levels and on scale 100

Re: [MapServer-users] apache2 aliases: msCGILoadMap(): Web application error. CGI variable map

2023-01-11 Thread Marcin Niemyjski via MapServer-users
pfile and mapfile aliases. https://mapserver.org/mapfile/config.html Jörg Am 10.01.23 um 15:36 schrieb Marcin Niemyjski via MapServer-users: > > Hello, > > I'm trying to create Apache aliases by editing /etc/apache2/apache2.conf > as below: > > Alias /Sentinel2Ukraine "/usr/

[MapServer-users] accessing mapfiles that are not directly on host server via apache2 aliases?

2023-01-09 Thread Marcin Niemyjski via MapServer-users
Hello, If the possibility of accessing mapfiles that are not directly on host server via apache2 aliases or redirect or any other way sounds like a good idea and maybe, considered as future update? As a daily user of Mapserver, I think this would be a great and powerful functionality.

Re: [MapServer-users] How to create aliases on mapserver docker image camptocamp/mapserver?

2023-01-09 Thread Marcin Niemyjski via MapServer-users
thme/user/6347c7def05a478ba013ae9486487...@cloudferro.com?anonymous=signature> From: Lime, Steve D (MNIT) Sent: Friday, January 6, 2023 4:50 PM To: Marcin Niemyjski ; Marcin Niemyjski via MapServer-users Subject: RE: How to create aliases on mapserver docker image camptocamp/mapse

[MapServer-users] Hiding layer in Mapfile

2022-12-27 Thread Marcin Niemyjski via MapServer-users
Hello, Is it possible to hide a layer in Mapfile? Let's say I have two layers one is enabled at low zoom levels and the other is enabled at high zoom levels. These layers are in the same group. I want to hide the two layers that are making the group and only show the group itself as a layer.

Re: [MapServer-users] Mapserver on k8s weird behaviour

2022-12-02 Thread Marcin Niemyjski via MapServer-users
Steve, I'm using Mapserver 8 from camptocamp/mapserver https://hub.docker.com/r/camptocamp/mapserver Best, Marcin From: Lime, Steve D (MNIT) Sent: Friday, December 2, 2022 4:23 PM To: Marcin Niemyjski ; Marcin Niemyjski via MapServer-users Subject: RE

[MapServer-users] Shapefile data source doesn't work

2022-11-30 Thread Marcin Niemyjski via MapServer-users
Everyone, I managed to make it work and add some features beyond clustering itself. Sending you my code, maybe somebody will find it useful. https://pastecode.io/s/035vagwt Thanks again, Marcin ___ MapServer-users mailing list

Re: [MapServer-users] Filled SVG symbol after switching to Mapserver 8

2022-12-07 Thread Marcin Niemyjski via MapServer-users
, 2022 6:21:39 PM Do: Marcin Niemyjski ; Marcin Niemyjski via MapServer-users Temat: RE: Filled SVG symbol after switching to Mapserver 8 Which SVG library are you using – RSVG or Cairo? From: Marcin Niemyjski Sent: Wednesday, December 7, 2022 9:38 AM To: Lime, Steve D (MNIT) ; Marcin Nie

[MapServer-users] Can't pass features attributes to GetFeatureInfo output

2022-12-08 Thread Marcin Niemyjski via MapServer-users
Hello, I encountered the problem with GetFeatureInfo, namely: only one attribute value is passed to GetFeatureInfo output - value of attribute used in mapfile's expression. My GetFeatureInfo Output: https://pasteboard.co/lAtZ5HBp1FuT.png How I defined template:

[MapServer-users] Mapcache seeder - failed to parse file /var/www/aed_world.xml. Is it valid XML? on valid xml

2022-12-09 Thread Marcin Niemyjski via MapServer-users
Hello, I have a problem, namely: I created .xml file, which is used to cache tiles into s3 bucket, here it is: https://pastebin.com/RwPAESUG while starting seeder the error is recived: failed to parse file /var/www/aed_world.xml. Is it valid XML? I've checked content of XML in online

[MapServer-users] Mapcache s3 - server replied: Not Found

2022-12-09 Thread Marcin Niemyjski via MapServer-users
Hello, my mapcache xml to s3 bucket is working now but while trying to connect it to qgis using url created in xml (https://s3.waw3-1.cloudferro.com/mapcache/{tileset}/{grid}/{z}/{x}/{y}/{ext}) qgis returns: Failed to download capabilities: Download of capabilities failed: Error transferring

[MapServer-users] Slow Point Cluster Loading

2022-12-09 Thread Marcin Niemyjski via MapServer-users
Hello, I would like to ask you to try out my newest WMS which is produced in partnership with OSM Poland. WMS link: http://64.225.130.48/?map=/etc/mapserver/aed_world.map What I would appreciate the most is advice how to speed up loading of WMS on low zoom levels, as you can see clustering of

Re: [MapServer-users] Problems with vrt created from GCP raster

2022-12-06 Thread Marcin Niemyjski via MapServer-users
day%.vrt" If you really want to make this fast, convert all your source .tif's to format COG. All you tif's will be tiled: gdalwarp -f COG -co COMPRESS=DEFLATE -co BIGTIFF=YES sent.tif sent_cog.tif On 12/6/22 09:18, Marcin Niemyjski via MapServer-users wrote: > Hello, > > u

[MapServer-users] Problems with vrt created from GCP raster

2022-12-06 Thread Marcin Niemyjski via MapServer-users
Hello, up to now, I have been working with VRT as a carrier for the rasters I wanted to use in the mapfile. Now in order to use the rasters that were provided to me (they are GCP georeferenced rasters) I have to convert them to VRT (via gdal warp), hence my question - how can I mosaic the

[MapServer-users] GetFeatureInfo html template

2022-12-07 Thread Marcin Niemyjski via MapServer-users
Hello, I'm looking for tutorial of enabling GetFeatureInfo requests of WMS. I would be grateful for any example of code of .tmpl file. What I want to do is simple table with name and value of attribute for selected feature. As always thank you, Marcin

Re: [MapServer-users] Tileindex in format different than SHP?

2022-12-14 Thread Marcin Niemyjski via MapServer-users
with GetFeatureInfo if you happen to have that kind of needs. -Jukka Rahkonen- Lähettäjä: MapServer-users Puolesta Marcin Niemyjski via MapServer-users Lähetetty: keskiviikko 14. joulukuuta 2022 15.08 Vastaanottaja: Jeff McKenna ; mapserver-users@lists.osgeo.org Aihe: Re: [MapServer-users

Re: [MapServer-users] Tileindex in format different than SHP?

2022-12-14 Thread Marcin Niemyjski via MapServer-users
of FOSS4G http://gatewaygeo.com/ On 2022-12-14 7:23 a.m., Marcin Niemyjski via MapServer-users wrote: > Hello, > > Can I use format different than SHP while using tileindex of rasters? > > When using Mapfile with configuration as below: > > LAYER >  NAME "2021-

[MapServer-users] Failed to download capabilities:Download of capabilities failed: Connection on mapfile with more than 1000 layers

2022-12-20 Thread Marcin Niemyjski via MapServer-users
Hello, I have a mapfile which constist of 1200 layers. While loading to qgis error "Failed to download capabilities:Download of capabilities failed: Connection" is recived. Does this happen becaues of quantitu of layers in mapfile? Is there any workaround? Best, Marcin

[MapServer-users] Mapserver on k8s weird behaviour

2022-12-02 Thread Marcin Niemyjski via MapServer-users
Hello, I am using Mapserver on Kubernetes (LoadBalancer). Everything works great - GetMap, GetCapabilities, layers load correctly in QGIS and Leaflet. However, what caught my attention is that when passing the mapfile's url using LoadBalancer/Kubernetes IP, only the first time the message is

[MapServer-users] Filled SVG symbol after switching to Mapserver 8

2022-12-07 Thread Marcin Niemyjski via MapServer-users
Hello, after switching to Mapserver 8 my svg symbols started to be rendered as filled: how it looks now: https://pasteboard.co/4K4CIEW6oFIm.png how it was looking (the good way): https://pasteboard.co/wDQGW0xzFGRg.png My mapfile: https://pastebin.com/KRYDEAR2 What can I do to render svg the

[MapServer-users] Tileindex in format different than SHP?

2022-12-14 Thread Marcin Niemyjski via MapServer-users
Hello, Can I use format different than SHP while using tileindex of rasters? When using Mapfile with configuration as below: LAYER  NAME "2021-01-02_high" STATUS ON TILEINDEX "/DyskPlanetiler/Sentinel1COG/2021/01/02/2021-01-02.gpkg" TILEITEM "location"

Re: [MapServer-users] Filled SVG symbol after switching to Mapserver 8

2022-12-07 Thread Marcin Niemyjski via MapServer-users
: MapServer-users On Behalf Of Marcin Niemyjski via MapServer-users Sent: Wednesday, December 7, 2022 6:45 AM To: Marcin Niemyjski via MapServer-users Subject: [MapServer-users] Filled SVG symbol after switching to Mapserver 8 Hello, after switching to Mapserver 8 my svg symbols started

[MapServer-users] [tiff write support disabled by default]

2022-11-21 Thread Marcin Niemyjski via MapServer-users
Hello, I'm trying to cache my wms using tiff as cache format. How I defined it at .xml file: /DyskPlanetiler/VRT/cache_tiff/{tileset}/{grid}/L{z}/R{inv_y}/C{x}.tif But after running seeder I'm getting error: tiff write support disabled by default Somebody knows how to enable

[MapServer-users] Shapefile data source doesn't work

2022-11-29 Thread Marcin Niemyjski via MapServer-users
Hello, I have a problem rendering vector layer. The data does not show. My mapfile: MAP NAME "AED" EXTENT 1584202.7350061805918813 6301803.1952485935762525 2675789.3720532376319170 7329216.3261622246354818 UNITS METERS SIZE 512 512 IMAGETYPE PNG SHAPEPATH "/data/" PROJECTION

Re: [MapServer-users] Shapefile data source doesn't work

2022-11-29 Thread Marcin Niemyjski via MapServer-users
. Try the absoulte path to your shp. Wht do you mean with 'map does not show'? white / blank image? This is often caused by a mismatsch bewtween epsg und extent. Or an error-msg? what does it say? Jörg Am 29.11.22 um 15:52 schrieb Marcin Niemyjski via MapServer-users: > Hello, > > I have

Re: [MapServer-users] Shapefile data source doesn't work

2022-11-29 Thread Marcin Niemyjski via MapServer-users
) ; Marcin Niemyjski via MapServer-users Subject: Re: [MapServer-users] Shapefile data source doesn't work Hi, Can you share also the shapefile? -Jukka Rahkonen- Lähettäjä: MapServer-users Puolesta Marcin Niemyjski via MapServer-users Lähetetty: tiistai 29. marraskuuta 2022 18.10

Re: [MapServer-users] Shapefile data source doesn't work

2022-11-29 Thread Marcin Niemyjski via MapServer-users
://pasteboard.co/Dibb2L5aICrP.png Best, Marcin From: Jörg Thomsen (WhereGroup) Sent: Tuesday, November 29, 2022 4:31 PM To: Marcin Niemyjski ; Marcin Niemyjski via MapServer-users Subject: Re: [MapServer-users] Shapefile data source doesn't work the pastebin-mapfile has

Re: [MapServer-users] Shapefile data source doesn't work

2022-11-30 Thread Marcin Niemyjski via MapServer-users
STYLE COLOR 0 0 255 SYMBOL "circlef" SIZE 10 END END END END END -Jukka Rahkonen- Lähettäj

[MapServer-users] Can not perform requests on Cached WMS

2022-11-15 Thread Marcin Niemyjski via MapServer-users
I have come across a problem, namely: I have created and successfully tested (by loading into qgis) a Cached WMS using Mapcache. My goal is to put this Cached WMS, which is called LowLevelEOindex in Mapfile as one of many layers. I have done this, but when loading into QGIS every layer loads

[MapServer-users] Mapserver x k8s issue

2022-11-25 Thread Marcin Niemyjski via MapServer-users
Hello, I'm involved in the development of a project connecting Mapserver with capabilities of Kubernetes like scalability, load balancing etc. We've run into problem wich I think can be solved on the side o Mapserver, namely: The k8s external IP cannot immediately be placed in

[MapServer-users] GetMap request inside python script; measuring speed of WMS?

2023-01-24 Thread Marcin Niemyjski via MapServer-users
Hello, I want to measure how long does it takes for my WMS to response to GetMap request. I have prepared list of extents in form of python list for example: ['38.04778703973034,-17.714089101743628,39.04778703973034,-16.714089101743628',

Re: [MapServer-users] GetMap request inside python script; measuring speed of WMS?

2023-01-24 Thread Marcin Niemyjski via MapServer-users
- this shows creating and calling a WMS request. Seth -- web:https://geographika.net twitter: @geographika On Tue, Jan 24, 2023, at 11:36 AM, Marcin Niemyjski via MapServer-users wrote: Hello, I want to measure how long does it takes for my WMS to response to GetMap request. I have prepared lis

Re: [MapServer-users] MapServer-users Digest, Vol 180, Issue 14

2023-01-24 Thread Marcin Niemyjski via MapServer-users
script; measuring speed of WMS? (Seth G) -- Message: 1 Date: Tue, 24 Jan 2023 10:36:21 + From: Marcin Niemyjski <mailto:mniemyj...@cloudferro.com> To: Marcin Niemyjski via MapServer-users <mailto:mapserver-users@lists.osge

[MapServer-users] The server you are trying to connect to does not seem to be a WMS server. Please check the URL. WMS XML stops generating

2022-11-10 Thread Marcin Niemyjski via MapServer-users
Hello, coming back to you with error which I can't overcome. I created mapfile from vrt rasters created by gdal warp -of VRT from tiffs with GCP georeference. While trying to add wms layer to qgis it throws error: The server you are trying to connect to does not seem to be a WMS server. Please

[MapServer-users] Mapserver requests / prometheus metrics

2023-03-07 Thread Marcin Niemyjski via MapServer-users
Hello, does mapserver expose any prometheus metrics that I can scrape? I'm especially interested in metrics related to number of requests per second. Thanks, Marcin

[MapServer-users] Can Mapserver store VRT content in cache?

2023-02-22 Thread Marcin Niemyjski via MapServer-users
Hello, can Mapserver store VRT content in cache so is uses cached file to connect to source data when requesting it? I want to limit S3 requests (because all data is stored on s3, including VRT) so Mapserver sends only S3 requests for source data. Any sugestions? Thanks, Marcin

[MapServer-users] Using of GCP file in Mapserver based on Layers Object's Extent and Projection

2023-02-20 Thread Marcin Niemyjski via MapServer-users
Hello, I'm struggling with rasters with Ground Control Points (GCP). My previous workflow of dealing with them looks like: Original GCP raster -> gdal warp -of VRT to vrt -> TileIndex created from multiple VRTs I have found similiar problem on mapserver mailing list. I confirm that creating

[MapServer-users] can Mapserver use files stored on STAC as source data?

2023-03-01 Thread Marcin Niemyjski via MapServer-users
Hello, can Mapserver use files stored on STAC as source data? Best, Marcin [cid:e8236597-5b19-4660-8a19-a244835e388c] Book time to meet with

[MapServer-users] What is the optimal value of requests per second for Mapserver?

2023-04-20 Thread Marcin Niemyjski via MapServer-users
Hello I'm looking for a benchmark advice. If I have a machine running on 6 CPUs and 25gb RAM what would be the value of the number of requests per second from which I should start scaling my VMs with Mapserver? Is there any way of testing or investingating? I'm using Locust and JMeter but

[MapServer-users] How to count quantity of S3 requests sent by mapserver while GetMap request

2023-02-09 Thread Marcin Niemyjski via MapServer-users
Hello, after short break I coming back to you with another question. I've got to check how many s3 requests is sent by mapserver to bucket containing WMS source data while performing GetMap requests. Any recommendations on how to do that? Best, Marcin

[MapServer-users] Can Mapserver store .vrt / TileIndex.shp files in cache?

2023-02-10 Thread Marcin Niemyjski via MapServer-users
Hello, Can Mapserver store .vrt / TileIndex.shp files in cache so while connecting to layer Mapserver read vrt/tiletindex from cache and reach directyl to requested subdata? Thanks, Marcin

[MapServer-users] Multiple requests to s3 bucket to the same Tiff after GetMap request

2023-02-10 Thread Marcin Niemyjski via MapServer-users
Hello, I wasn't happy with the time it took for the GetMap request to complete, so I decided to check apache's error logs. I realized that S3 Get request is performed multiple times and I have no idea why. Below you can see GET request which appears in log file of one request 5 times. [Fri Feb

[MapServer-users] Problems using mask and time dimension

2023-07-03 Thread Marcin Niemyjski via MapServer-users
Hello, I have a problem: I have created the following mapfile:https://paste.ofcode.org/ianeSsdL45hJtDgh7SxMEm it is based on the tileindex and time dimension. Along with Sentinel-2, cloud mask is attached in the form of a raster. As you can see, one of the attributes of my tile index is the

[MapServer-users] Problems using masking and time dimension part 2

2023-07-14 Thread Marcin Niemyjski via MapServer-users
Hi, I have an idea, but I don't know how to implement it: https://marc.info/?l=mapserver-users=168838940628381=2 In my previous email, I asked about the possibility of combining WMS with a time dimension with masking. I would like the mask of a particular day not to cut out the data in

[MapServer-users] Combination of MASK, TIME and TILEINDEX

2023-07-17 Thread Marcin Niemyjski via MapServer-users
Hello, Is it possible to apply a MASK on a layer but only on selected objects? I'm thinking of something like this: PROCESSING "MASK WHERE ["layer_attribute"] = ["mask_attribute"] Both layers are stored in the same tile index. In short, it looks like this: date | path_to_layer |

Re: [MapServer-users] is it possible to use other attributes stored on tileindex and querry dataset using them?

2023-05-26 Thread Marcin Niemyjski via MapServer-users
om: Rahkonen Jukka Sent: Thursday, May 25, 2023 6:27 PM To: Marcin Niemyjski ; Marcin Niemyjski via MapServer-users Subject: Re: is it possible to use other attributes stored on tileindex and querry dataset using them? Hi, Read the whole documentation page. Mapserver is implementing

[MapServer-users] is it possible to use other attributes stored on tileindex and querry dataset using them?

2023-05-25 Thread Marcin Niemyjski via MapServer-users
Hello, is it possible to use other attributes stored on tileindex and querry dataset using them? For example, here is the structure of my tileindex: geometry | location | time | cloud_cover By default, Mapserver uses only geometry and location to check the spatial extent and then uses path to

[MapServer-users] is it possible to use other attributes stored on tileindex and querry dataset using them?

2023-05-25 Thread Marcin Niemyjski via MapServer-users
Hello, I've managed to find solution similar solution to what I looked for in pervious mail at https://mapserver.org/ogc/wms_time.html#example-of-wms-t-with-postgis-tile-index-for-raster-imagery but when using below GetMap url request, Mapserver keeps returning data for default timestamp

[MapServer-users] Speed of WMS vs Speed of WCS; How to speed up WCS service?

2023-07-26 Thread Marcin Niemyjski via MapServer-users
Hello, I have a problem, Namely, I have created a WCS and here is its mapfile: https://pastecode.io/s/6v3qfssb For a better understanding, here is a view of the tileindex through which the data is served: https://pasteboard.co/ydgvDiqxz4lf.png I am connecting to files located in a private

Re: [MapServer-users] Speed of WMS vs Speed of WCS; How to speed up WCS service?

2023-07-26 Thread Marcin Niemyjski via MapServer-users
the datasource automatically. Depending on the request type this calculation could be made multiple times. Seth -- web:https://geographika.net & https://mapserverstudio.net twitter: @geographika On Wed, Jul 26, 2023, at 11:53 AM, Marcin Niemyjski via MapServer-users wrote: Hello, I have a problem, Namel

Re: [MapServer-users] Speed of WMS vs Speed of WCS; How to speed up WCS service?

2023-07-27 Thread Marcin Niemyjski via MapServer-users
that makes our WCS service to support time as a dimension because MapServer does not support it with WCS https://www.mail-archive.com/mapserver-users@lists.osgeo.org/msg26265.html. -Jukka Rahkonen- Lähettäjä: MapServer-users Puolesta Marcin Niemyjski via MapServer-users Lähetetty: kesk

[MapServer-users] TileIndex stored in POSTGIS: text VRT instead of text path to file in location column?

2023-07-31 Thread Marcin Niemyjski via MapServer-users
Hello, Because now most of my work with Mapserver consists of the usage of tileindex and VRT (GDAL virtual raster), I was wondering if it is possible to combine these two aspects, namely: store raw VRT in the location column instead of (local or S3) path to the VRT file. So, instead of this:

[MapServer-users] Enabling TILESRS in WMS-T

2023-06-19 Thread Marcin Niemyjski via MapServer-users
Hello, I'm having troubles when trying to enable "TILESRS" Layer option in my WMS-T, so I can use rasters in different UTM zones within TileIndex. My mapfile: https://pastecode.io/s/473negp1 And content of debug txt file after asking for data: https://pastecode.io/s/1dai3awx As you can see

[MapServer-users] Qgis layer style file in mapfile

2023-05-11 Thread Marcin Niemyjski via MapServer-users
Hello, is it possible to somehow use Qgis layer style file in mapfile to define how is Polygon layer displayed? Best, Marcin [cid:c2a9f89b-d75b-4f1d-9297-e77ce809661a]

[MapServer-users] Efficient way of hosting WMS from .jp2 files stored on s3

2023-05-09 Thread Marcin Niemyjski via MapServer-users
Hello, currently I'm investigating possibilities of efficient way of hosting WMS from .jp2 files stored on s3. >From what I understood from this: >https://gis.stackexchange.com/questions/281704/should-i-use-jp2-or-cloud-optimized-geotiffs-to-efficiently-access-small-windows > with .jp2 comes

[MapServer-users] TileIndex and Scale problem

2024-01-02 Thread Marcin Niemyjski via MapServer-users
Hello, I encountered some difficulties while working with TileIndex, specifically for panchromatic rasters. Specifically: 3-band rasters are displayed correctly, but single-band rasters appear as full white boxes. I added the PROCESSING "SCALE=AUTO," and it resolved the issue, but the result

[MapServer-users] Runtime substitution on MAP CONFIG environmental variables

2023-12-19 Thread Marcin Niemyjski via MapServer-users
Hello, is it possible to perform such operation using parameters stored in request URL MAP NAME "Results of crop prediction" CONFIG "AWS_S3_ENDPOINT" "some.ednpoint.com" CONFIG "AWS_ACCESS_KEY_ID" "%s3_access%" CONFIG "AWS_SECRET_ACCESS_KEY" "%s3_secret%" ... so, I can select which pair

[MapServer-users] filtering the data based on postgis attributes

2023-11-28 Thread Marcin Niemyjski via MapServer-users
Hello, I would like to define several dimensions for filtering my WMS (Web Map Service). They are based on a PostGIS table from which the service is exposed. Here lies my problem because among the required information to expose, I need to provide the following to the map server: *

[MapServer-users] STAC catalogue as a tile-index in Mapserver

2023-11-29 Thread Marcin Niemyjski via MapServer-users
Hello, can I use STAC catalogue as a tile-index? Is it possible? Underneath STAC there's Postgis table containing data. Is it possible to use it that way? I think that gdal already supports STAC? Best, Marcin

[MapServer-users] jsonb attribute as a tileitem in mapserver

2023-11-30 Thread Marcin Niemyjski via MapServer-users
Hello, Because my postgres table started to get bigger with every new column, I decided to try out the jsonb type column, namely I tried using jsonb attribute as a tileitem within tileindex this way: TILEITEM "location->>'10m'" where jsonb looks like this: { "10m": "/vsicurl/...", "20m":

[MapServer-users] internal MapServer scaling

2023-11-15 Thread Marcin Niemyjski via MapServer-users
Hello, Is there any environmental variable corresponding to the number of internal MapServer scaling (i.e., the number of maximal MapServer processes)? I guess FastCGI is responsible for this. Is it possible to manage it from the Dockerfile? Best, Marcin