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

2023-12-26 Thread Steve Lime via MapServer-users
The validation block would go in the WEB object. However, the runtime subs don't operate with config options. There was a ticket related to this message opened already (see https://github.com/MapServer/MapServer/issues/6994), presumably based on this thread. I'm curious what other devs think about

Re: [MapServer-users] Speeding up msDrawMap() for shapefiles

2023-12-18 Thread Steve Lime via MapServer-users
Did you have a look at https://blog.cleverelephant.ca/2022/04/coshp.html? On Mon, Dec 18, 2023 at 2:39 PM Matthew Graber via MapServer-users < mapserver-users@lists.osgeo.org> wrote: > Hi Jukka, > > Thanks for the advice. I was able to confirm through local testing that > using "DATA" is

Re: [MapServer-users] Can I call mapserver with GetLegendGraphic request using curl?

2023-12-15 Thread Steve Lime via MapServer-users
I do this all the time to create static versions of assets. Typically I just use a bash script and wget but I can't think of a reason offhand why curl wouldn't work just fine. What does a curl call look like? --Steve On Thu, Dec 14, 2023 at 3:32 PM Schweitzer, Peter N via MapServer-users <

Re: [MapServer-users] multiple shapepaths

2023-12-05 Thread Steve Lime via MapServer-users
t; > > > Layer 3 > > Layer 4 > > > > Jörg > > > > > > > > Am 02.12.23 um 19:32 schrieb Jan Hartmann via MapServer-users: > >> Yes, that is what I sought, didn't know it was possible. Thanks! > >> > >> Jan > &

Re: [MapServer-users] multiple shapepaths

2023-12-02 Thread Steve Lime via MapServer-users
% or %path2%. This is another use case for variables that was suggested recently. We could, perhaps, define a way to mark something as immutable via url so the regex could be simplified and only the default would ever be used (e.g. “path2” “immutable”). —Steve On Fri, Dec 1, 2023 at 11:28 PM Steve

Re: [MapServer-users] multiple shapepaths

2023-12-01 Thread Steve Lime via MapServer-users
Nope, just the one value. On Fri, Dec 1, 2023 at 1:02 PM Jan Hartmann via MapServer-users < mapserver-users@lists.osgeo.org> wrote: > Hi, > > Is it possible to use multiple paths in a shapepath? ./data1:./data2 > does not work > > Jan > ___ >

Re: [MapServer-users] MapServer WEB global footer header are shown as result even if no feature was effected

2023-11-06 Thread Steve Lime via MapServer-users
Hi Astrid: I noticed this too but in a slightly different way. It's a bug, see the discussion here: https://github.com/MapServer/MapServer/issues/6907 Basically the EMPTY keyword is being ignored. This will be fixed in 8.2... --Steve On Mon, Nov 6, 2023 at 9:39 AM Astrid Emde (WhereGroup)

Re: [MapServer-users] mappyfile is now an OSGeo Community Project

2023-09-28 Thread Steve Lime via MapServer-users
Agreed! Congrats Seth! On Thu, Sep 28, 2023 at 9:29 AM Even Rouault via MapServer-users < mapserver-users@lists.osgeo.org> wrote: > Hi Seth, > > Congratulations! I believe it would make sense to point to mappyfile on > the mapserver.org documentation. Exact place to be determined ("Around >

Re: [MapServer-users] Some remote SVG files doesn't in 8.1

2023-07-17 Thread Steve Lime
There seems to be a regression with svg- I have another sample file that doesn’t render correctly (or at all). Just need to find a little time to resolve it. On Tue, Jul 11, 2023 at 12:10 PM Martin Høgh wrote: > I've a MapFile with a point layer using a class style with a SVG symbol: > > CLASS

Re: [MapServer-users] breaking changes in branch-7-6 after commit of experimental changes from branch-8-0

2023-05-30 Thread Steve Lime
feedback. We could issue a 7.6.6 release with a -360 to 360 range. I've not heard of any other related issues with that change. --Steve On Tue, May 30, 2023 at 7:45 AM Rahkonen Jukka < jukka.rahko...@maanmittauslaitos.fi> wrote: > Hi, > > > > It looks like Steve Lime

Re: [MapServer-users] Qgis layer style file in mapfile

2023-05-15 Thread Steve Lime
This would be very useful. Is that work also potentially identifying gaps (or opportunities) with MapServer styling to make things easier? --Steve On Thu, May 11, 2023 at 5:35 AM Seth G wrote: > Hi Marcin, > > Good timing with the question! There is currently a code sprint happening > for the

Re: [MapServer-users] MSSQL plugin path outside of the global CONFIG file

2023-03-24 Thread Steve Lime
One point of clarification. If a config file is referenced then when the mapfile is read then the value for PLUGIN is always interpreted as a key to the list of plugins. That is always the case for CGI/FastCGI where a config file is required. In the case of MapScript (or shp2map) loading a

Re: [MapServer-users] MS_MAP_PATTERN cannot accept network share

2023-03-24 Thread Steve Lime
Hi Benedek: You'll need to fiddle with MS_MAP_BAD_PATTERN. Looking at the sample configuration file it's value is: MS_MAP_BAD_PATTERN "[/\\]{2}|[/\\]?\\.+[/\\]|," If a mapfile path matches any of those, it's rejected. By default it's blocking anything with \\, //, back references or commas

Re: [MapServer-users] pixmap overlapping

2023-03-11 Thread Steve Lime
with it a bit. —Steve On Fri, Mar 10, 2023 at 5:01 PM Steve Lime wrote: > So points drawn with a pixmap symbol? No, not that I'm aware of. Might be > helpful so see a picture of what you're trying to work around. Using > truetype icons as labels has been one way I've tried to do somethin

Re: [MapServer-users] pixmap overlapping

2023-03-10 Thread Steve Lime
So points drawn with a pixmap symbol? No, not that I'm aware of. Might be helpful so see a picture of what you're trying to work around. Using truetype icons as labels has been one way I've tried to do something along those lines. I suppose clustering might be another option. --Steve On Thu, Mar

Re: [MapServer-users] Changing opacity of one layer in a multilayer WMS request URL with MapServer 8

2023-02-22 Thread Steve Lime
Hi Matthew: That functionality was indeed removed as part of 8.0. I kind of expect that we might build back something for more limited use cases if necessary, Does SLD support opacity/transparency? --Steve On Tue, Feb 21, 2023 at 10:52 AM Matthew Graber wrote: > Hello all! > > With MapServer

Re: [MapServer-users] wms time validation of time parameter against timeextent gives unexpected results

2023-02-06 Thread Steve Lime
Does WMS 1.1 behave the same? I suppose it comes down to how 2022 is interpreted as part of a range, I would have expected it would mean any date in that year. Sounds like it's behaving like strictly less than 2022-01-01. What happens if you set the range using full dates, so something like:

Re: [MapServer-users] Clipped labels in mapcache/mapserver map

2022-11-03 Thread Steve Lime
n values? Just guessing though. The only way to easily debug/test is going to be examining a metatile that results in a clipped label. You could delete an affected tile and then let mapcache generate a replacement. You should be able to pick up the metatile WMS call from the logs. --Steve On Tue, Nov

Re: [MapServer-users] Clipped labels in mapcache/mapserver map

2022-11-01 Thread Steve Lime
Have you tried a larger edge buffer? I suppose that’s tough to to test given the randomness. I’ll check my settings on a similar setup when I’m in the office tomorrow and let you know. It would be interesting to see the corresponding metatile to see if the label is whole there. I wouldn’t think so

Re: [MapServer-users] mapserver 8 - CGI map_object substitutions broken?

2022-10-06 Thread Steve Lime
Hi Tim: I was wondering if I'd see any messages on that topic. Short story is that the functionality was removed in MS8. I never liked the all-or-nothing aspect of it and was working on a method to control which objects would be allowed to be updated. The solutions I came up with were convoluted

Re: [MapServer-users] msLoadMap(): Unable to access file. (full file path)

2022-09-07 Thread Steve Lime
Hi Michal: AFAIK it's always been that way as an aid to debugging. I can certainly appreciate the argument that error messages shouldn't contain any references to file locations and could write that information to debug logs instead. I'm curious what others think. I always resort to using mapfile

Re: [MapServer-users] Mapserver 8 rc1

2022-08-25 Thread Steve Lime
r > message. Failed to build SQL 'where'. > [Thu Aug 25 13:46:55 2022].451980 msPostGISLayerWhichShapes(): Query > error. Failed to build query SQL. > [Thu Aug 25 13:46:55 2022].452010 msDrawMap(): Image handling error. > Failed to draw layer named 'wptByTrailType'. > > On 8/25/2

Re: [MapServer-users] Mapserver 8 rc1

2022-08-25 Thread Steve Lime
Hmmm... Wasn't an intentional omission. If you have logging turned on and can see the resulting SQL, does the !BOX! get replaced but just incorrectly or is the !BOX! still in the SQL. On Wed, Aug 24, 2022 at 5:16 PM Scott wrote: > I've installed 8rc1 and I've run into an issue. I didn't see

Re: [mapserver-users] MapScript Projection Performance

2022-06-09 Thread Steve Lime
ectionObj into the header file so Swig can get at it. I'll prepare a pull request... --Steve On Wed, Jun 8, 2022 at 2:40 PM Steve Lime wrote: > Thanks for the response Even. > > Switching to 4329 drops a few milliseconds, no major improvement. > > If I still create the projection objects bu

Re: [mapserver-users] Screen is square blank square window

2022-06-08 Thread Steve Lime
What version/distribution are you using? This sound familiar to another issue I remember but I couldn't find it looking quickly in github. I thought that was specific to a particular Windows binary distribution. --Steve On Wed, Jun 8, 2022 at 1:20 PM Jeremy JK wrote: > Hello all, > When I call

Re: [mapserver-users] MapScript Projection Performance

2022-06-08 Thread Steve Lime
esting to check if they speed up things. > > You might also try to check if using EPSG:4269 instead of EPSG:4326 > wouldn't speed up things, to eliminate the datum change from the > equation (if you have PROJ grids available, they might be used to do the > NAD83 -> WGS84 shift) >

[mapserver-users] MapScript Projection Performance

2022-06-08 Thread Steve Lime
Hi all: I have a Perl script that runs against a shapefile to project a geometry centroid from UTM to Lat/Lon. Code looks something like this: my $proj_26915 = new mapscript::projectionObj('epsg:26915'); my $proj_4326 = new mapscript::projectionObj('epsg:4326'); while (my $shape =

Re: [mapserver-users] Any trick to buffer labelpoly?

2022-04-29 Thread Steve Lime
Looks like there were some new responses on the post referenced. Will those work for you? Otherwise we’d have to re-think the label poly geomtranform to either allow an argument or be embedded in a more complex expression. On Fri, Apr 29, 2022 at 1:24 AM Rahkonen Jukka (MML) <

Re: [mapserver-users] dynamic ows_serviceurl

2022-04-12 Thread Steve Lime
config file could play a role but I'm unsure what that would be beyond a place to set values consistently. On Tue, Apr 12, 2022 at 8:04 PM Steve Lime wrote: > Hi Paul: The idea of referencing environment variables has come up before. > Another example would be to leverage settings injected into

Re: [mapserver-users] dynamic ows_serviceurl

2022-04-12 Thread Steve Lime
Hi Paul: The idea of referencing environment variables has come up before. Another example would be to leverage settings injected into cloud deployments as environment variables (I think there's an old ticket that was recently re-opened on the topic). I'm not sure what the best way to handle this

Re: [mapserver-users] Securing MapServer Deployments

2022-04-06 Thread Steve Lime
Nice job Seth, this is a really useful post! --Steve On Fri, Apr 1, 2022 at 9:03 AM Seth G wrote: > Hi all, > > I've written a blog post on Securing MapServer Deployments at > https://geographika.net/posts/securing_mapserver.html which also includes > details on the new CONFIG file available in

Re: [mapserver-users] center in a map the results of [shpext]

2022-03-30 Thread Steve Lime
Trying to work up a demo that shows a couple of ways to do this... --Steve On Mon, Mar 28, 2022 at 5:45 PM roman villarreal < romanvillarre...@live.com.mx> wrote: > Hi list i wish all of you are ok > > i hope some body can help me, im working with a mapserver templete to > display the results of

Re: [mapserver-users] How can I get blur visual effect for lines or outlines?

2022-02-24 Thread Steve Lime
t; > Have fun / Lars Schylberg > > > 22 februari 2022 kl. 15:01, "Steve Lime" > skrev: > > I don't believe you can set a blurring (or sharpening) filter. However, > have a look at the layer composite feature ( > https://mapserver.org/mapfile/composite.htm

Re: [mapserver-users] vector tiles?

2022-02-22 Thread Steve Lime
Correct. Rich, what docs would be most helpful? On Sat, Feb 19, 2022 at 8:09 AM Thomas Gratier wrote: > Hi, > > The code has been merged https://github.com/MapServer/MapServer/pull/5376 > but as you can see in the PR the documentation page has never been created. > The demo code mentioned in

Re: [mapserver-users] How can I get blur visual effect for lines or outlines?

2022-02-22 Thread Steve Lime
I don't believe you can set a blurring (or sharpening) filter. However, have a look at the layer composite feature ( https://mapserver.org/mapfile/composite.html), it might get you a reasonable approximation of what you're looking for. --Steve On Mon, Feb 21, 2022 at 5:27 PM Kyle Qian wrote: >

Re: [mapserver-users] mapserv cli and run-time substitution

2022-02-06 Thread Steve Lime
This should be the way to do it. No quotes around %year% in either expression. On Sun, Feb 6, 2022 at 4:32 AM Seth G wrote: > So does the following also work? Without quotes should mean it is treated > as a number: > > EXPRESSION ([year] = %year%) > > -- > web:https://geographika.net > twitter:

Re: [mapserver-users] mapserv cli and run-time substitution

2022-02-05 Thread Steve Lime
H... Looks right to me. Will need to run a test locally and report back. On Sat, Feb 5, 2022 at 11:14 AM andy wrote: > Hi, > I have this map file [1] in which I use this simple class expression > "EXPRESSION ([year] < 1976)". > Starting from it, I'm able to create the png output I want,

Re: [mapserver-users] working with ESRI coordinate systems in proj.db

2022-01-06 Thread Steve Lime
Hi Mark: Not something I've tried to do so hopefully someone else can weigh in. What version of Proj are you using? --Steve On Thu, Jan 6, 2022 at 11:19 AM Mark Volz wrote: > Hello, > > > > Could someone help me with setting up mapserver to use a non ESRI > projection that is already stored in

Re: [mapserver-users] QSTRING HELP

2021-12-13 Thread Steve Lime
1) You didn’t say which version (hopefully latest, greatest) but you should only need the entry in the validation block. Note an “anything” validation is not recommended. 2) A qstring with no qitem is interpreted as a MapServer logical expression I believe, and your example is not a valid

Re: [mapserver-users] Corrupted PNG issue

2021-11-23 Thread Steve Lime
So that's 3 reports of issues with the GIS Internals build(s) then. Still could be MapServer-based though... On Tue, Nov 23, 2021 at 7:30 AM James Passmore - BGS wrote: > Possibly not related, but I reported an issue to Tamas Szekeres > (gisinternals) back in March against >

Re: [mapserver-users] Corrupted PNG issue

2021-11-22 Thread Steve Lime
quot; > > CONNECTIONTYPE WMS CONNECTION " > https://basemap.nationalmap.gov/arcgis/services/USGSTopo/MapServer/WmsServer > ?" > > PROJECTION "init=epsg:3857" END > > METADATA > > "wms_srs" "EPSG:3857" > >

Re: [mapserver-users] Corrupted PNG issue

2021-11-18 Thread Steve Lime
Hmmm... I've not run into or heard of this before although I'm not a windows user. I did a quick sanity check with a mapfile here and the latest 7.4 and 7.6 versions. While not exactly the same setup you have in terms of versions, they produce the exact same png image. What do you get for output

Re: [mapserver-users] (no subject)

2021-10-07 Thread Steve Lime
I've not used a similar setup but it seems like there's no need to create tiles if you're passing WMS calls through to another WMS server. Do you get tiles if you make tiled service requests? On Tue, Oct 5, 2021 at 1:52 PM Atlanta Geek wrote: > Im attempting to configure mapcache. > I assume

Re: [mapserver-users] Tile Mode Output Format

2021-09-22 Thread Steve Lime
Try map.imagetype=jpeg... On Tue, Sep 21, 2021 at 2:56 PM Rahkonen Jukka (MML) < jukka.rahko...@maanmittauslaitos.fi> wrote: > Hi, > > > > It seems that formats were not considered at all > https://mapserver.org/development/rfc/ms-rfc-43.html > > > > -Jukka Rahkonen- > > > > > > *Lähettäjä:*

Re: [mapserver-users] Recoloring a raster...

2021-09-16 Thread Steve Lime
; > https://mapserver.org/input/raster.html#classifying-rasters > >CLASS > NAME "red -> blue" > EXPRESSION ([red] = 255 AND [green] = 0 AND [blue] = 0) > STYLE >COLOR 0 0 255 > END >END > > > On 2021-09-16 12:46, Stev

[mapserver-users] Recoloring a raster...

2021-09-16 Thread Steve Lime
Hi all: I think this is possible. What's the easiest/best way to recolor a raster image, so for example, turning all pixels of 255 0 0 to 0 0 255? There are only 6 colors in the input image I need to deal with. --Steve ___ MapServer-users mailing list

Re: [mapserver-users] Potential bug when using Layer-Tile-Index where indexed files are GeoTiff files

2021-09-14 Thread Steve Lime
I'd agree this is a bug - just not sure what the fix should be. On Mon, Sep 6, 2021 at 4:21 AM Sommer, Ashley (L, Dutton Park) wrote: > Hi Everyone, > I'm trying to get WCS service with TIME parameter support working on > latest Mapserver. > My data is a timeseries of large geotiff files, in a

Re: [mapserver-users] serving WMS GetFeatureInfo to ESRI JavaScript client

2021-09-09 Thread Steve Lime
Hi Rich! I didn't see any replies to this email and I don't have any particular experience. That said, it seems to me that the vendor that is receiving the content would want it in some sort of presentation agnostic format so that they can apply a design, choose which attributes to display and so

Re: [mapserver-users] offset and symbolscaledenom

2021-09-01 Thread Steve Lime
Not that I know of - unless you did so yourself via MapScript. This seems like a limitation of the current implementation rather than a bug. We'd need to add additional parameters to limit the offsets (e.g. MINOFFSET, MAXOFFSET). --Steve On Fri, Aug 27, 2021 at 2:18 PM Travis Kirstine wrote: >

Re: [mapserver-users] [Feature Request] Ability to extract capture group contents from regex validation

2021-07-28 Thread Steve Lime
Interesting idea, certainly not crazy. I'm not sure what's possible with regex libs commonly used with MapServer builds. On Tue, Jul 27, 2021 at 6:34 AM Trond Michelsen < trondmm-mapserver+2...@crusaders.no> wrote: > This sounds like a good idea to me, but I would suggest to use named > capture

Re: [mapserver-users] CGI variable "map" fails to validate.

2021-06-03 Thread Steve Lime via mapserver-users
ith regex101.com <http://regex101.com> and > it > > matches with no problems against most of the available variants except > > PCRE. Which regex engine is suitable for a test against MapServer? > > > > Thank you. > > > > st 2. 6. 2021 v 15:16 odesílatel Steve

Re: [mapserver-users] CGI variable "map" fails to validate.

2021-06-02 Thread Steve Lime via mapserver-users
Hi David: Presumably the Docker image is running the most recent version of 7.4 which would have that pull request applied. That said, I don't think it's the culprit here and I have seen some issues with -'s where the MS_MAP_PATTERN expression compiles fine but doesn't match as expected.

Re: [mapserver-users] anti-aliasing (was differing image size with different mapserver versions)

2021-05-19 Thread Steve Lime
Worth adding to main? On Wed, May 19, 2021 at 10:15 AM Eichner, Andreas - SID < andreas.eich...@sid.sachsen.de> wrote: > If you want to give Cairo a try, you could modify mapcairo.c like this: > > diff --git a/mapcairo.c b/mapcairo.c > index 0f4cc094..d28947d6 100644 > --- a/mapcairo.c > +++

Re: [mapserver-users] anti-aliasing (was differing image size with different mapserver versions)

2021-05-18 Thread Steve Lime
If you don't care about quality then JPEG is an option... ;-) I also wonder if there are ways to create true 8-bit output in other ways. No way GD comes back. On Tue, May 18, 2021 at 1:12 PM Richard Greenwood < richard.greenw...@gmail.com> wrote: > Oops - typo there, reducing the colors from 256

Re: [mapserver-users] Docker for AWS S3 and Mapserver 7 on OSGeo Github?

2021-05-13 Thread Steve Lime
It's not a docker image I'm familiar with. It looks to be pinned to a very specific version of MapServer - one that shouldn't be used given its age and subsequent releases so I wouldn't include it "as is". Not sure what the interest would be in developing a project-sanctioned image that was kept

[mapserver-users] 7.6.3 released - includes important security fix

2021-04-30 Thread Steve Lime
The MapServer team is pleased (kinda) to announce the 7.6.3 security and maintenance release. Importantly, this release addresses a flaw, discovered by project developers, in MapServer CGI mapfile loading that makes it possible to bypass security controls (ticket #6313). This flaw makes it

Re: [mapserver-users] tile_map_edge_buffer and python mapscript

2021-04-09 Thread Steve Lime
apscript: > > map_obj = mapscript.mapObj(mapfile) #mapfile described earlier > request = mapscript.OWSRequest() > mapscript.msIO_installStdoutToBuffer() > request.loadParamsFromURL(query_string) #query_string > — request of web framework > status_id =

Re: [mapserver-users] tile_map_edge_buffer and python mapscript

2021-04-05 Thread Steve Lime
Hi Baev: That metadata element is used by the tile mode and by the WMS/GetMap code. So a WMS GetMap request though MapScript should make use of it. --Steve On Sun, Apr 4, 2021 at 2:39 PM Baev Alexandr via mapserver-users < mapserver-users@lists.osgeo.org> wrote: > Mapserver last release version

Re: [mapserver-users] Layer Attribute Metadata

2021-03-30 Thread Steve Lime
Hi Seth: I don't think adding it would be difficult. What would the emitted attribute look like w/that property added? --Steve On Sat, Mar 27, 2021 at 4:11 PM Seth G wrote: > Hi all, > > Is anyone aware of any OGC service which can return comments for a layer > attribute/field? > The WFS

[mapserver-users] Security Advisory – Limiting Mapfile Access

2021-03-30 Thread Steve Lime
Hi all: This is an important reminder that, as part of a secure deployment, it is important to limit MapServer CGI access to mapfiles. The MapServer CGI has long supported the use of environment variables as a primary mechanism to do this. If you haven’t implemented these controls then that

Re: [mapserver-users] Fwd: MapServer PostGIS: WMS Layers Without Features

2021-03-02 Thread Steve Lime
What are you using to view the WMS service? What do you get if you take WMS configuration out of the equation and just do a call like so: http://localhost/cgi-bin/mapserv.exe?map=[your mapfile]=map=all That should get you an image with all the features in all the layers for your default

Re: [mapserver-users] PostgreSQL authentication method.

2021-02-18 Thread Steve Lime
I wonder if that's more a function of the PostgreSQL client library version/capabilities. Do you know what MapServer is compiled against? You might try connecting to your database with psql as another test of the client lib. On Thu, Feb 18, 2021 at 2:25 PM Moen, Paul T. wrote: > I recently

Re: [mapserver-users] Labels colliding with symbols

2021-02-16 Thread Steve Lime
Hmmm... Point symbols are automatically considered as part of label placement and collision detection. Since they are drawn first, their placement is cached and labels are placed around them. Can you share specifics on your layers and symbols - perhaps a small test case? --Steve On Tue, Feb 16,

Re: [mapserver-users] WFS Filter and Validation-Block

2021-01-19 Thread Steve Lime
I don't believe any of the WxS non-vendor parameters use the validation blocks. Instead they have their own service-specific validation. Same goes for the CGI params - they are validated using explicit code (e.g. mapext must consist of 4 numeric elements). Exceptions (from the CGI perspective) are

Re: [mapserver-users] mapserver 7.6.2

2020-12-31 Thread Steve Lime
The original error looks like it was related to this: https://stackoverflow.com/questions/39700537/undefined-reference-to-boost-serialization-functions I think you do something like this (see

Re: [mapserver-users] Styling KML output

2020-12-07 Thread Steve Lime
So you're using the OGR driver. I wouldn't expect that to leverage MapServer class/styles at all - more of a data dump. There is a separate KML driver (see https://mapserver.org/output/kml_output.html) and you can also use templates to generate KML and define styles as part of the templates

Re: [mapserver-users] RASTER conditionally use default palette color based on pixel value

2020-12-07 Thread Steve Lime
Seems like you'd have to draw it twice - once with the using the palette and a second time where you do whatever filtering and color re-assignment you want. On Sat, Dec 5, 2020 at 11:24 AM Scott wrote: > > For instance: > > ... > > CLASS >NAME "useDefaultColor" >EXPRESSION

Re: [mapserver-users] Docker: Mapproxy Image with binary MapServer support

2020-09-16 Thread Steve Lime
Excellent, thanks for sharing! On Tue, Sep 15, 2020 at 7:29 AM Just van den Broecke wrote: > FYI: > > Developed new Docker Image: MapProxy with MapServer binary support, i.e. > MP directly calling MS binary (i.s.o via WMS), see GH repo [1] and > DockerHub [2]. > > Also offering a

[mapserver-users] Available now - a new way to support the MapServer project!

2020-09-14 Thread Steve Lime
Hi all: We're pleased to announce another way to support the MapServer project thanks to Github Sponsors and OSGeo. Sponsorship allows you to directly support project activities such as: - new feature development and ongoing maintenance - documentation and demo development - release

Re: [mapserver-users] Use Ground Control Points from GeoTIFF

2020-09-01 Thread Steve Lime
What does the mapfile look like? On Tue, Sep 1, 2020 at 10:26 AM Jesper Kempe wrote: > Hi > > I have a GeoTiff file that gdalinfo presents like this: > > gdalinfo sat.tif > Driver: GTiff/GeoTIFF > Files: sat.tif > Size is 10474, 10717 > Coordinate System is `' > GCP Projection = > GEOGCS["WGS

Re: [mapserver-users] Compiling Mapserver with Oracle Spatial support issue

2020-08-25 Thread Steve Lime
Hmmm... Does -DWITH_ORACLESPATIAL=ON (so ON vs 1) make a difference? It shouldn't... If you do a "ldd mapserv" is the binary linked against the Oracle libs? On Wed, Aug 19, 2020 at 12:55 AM Marcin Grudzień wrote: > Hi, > > I am new to Mapserver. I am trying to compile MapServer 7.6.1 with

Re: [mapserver-users] REST API as a LAYER DATA source

2020-07-30 Thread Steve Lime
Presumably you could use an OGR layer although I've not done it myself. I guess I'd recommend starting with: * https://mapserver.org/input/vector/ogr.html * https://gdal.org/drivers/vector/esrijson.html#vector-esrijson --Steve On Thu, Jul 30, 2020 at 11:50 AM Scott wrote: > I would like

Re: [mapserver-users] sending a polygon to wcs-mapserver for masking

2020-07-07 Thread Steve Lime
Are you referring to dynamically setting a feature in a mask layer ( https://mapserver.org/development/rfc/ms-rfc-79.html)? On Sat, Jul 4, 2020 at 1:08 PM Ahmet Temiz wrote: > Hi, > How can I send a polygon to wcs-mapserver for masking through cgi/url ? > I want to process polygon sent with

Re: [mapserver-users] Differerent output format for GetFeatureInfo - template strategy

2020-06-27 Thread Steve Lime
If your data is very standardized I can see where this would be helpful. I think if the layer attribute was interpreted as a regex then that might do the trick. I’d advocate adding another attribute though to avoid a regression since layer names commonly contain characters that would be

Re: [mapserver-users] PostGIS Raster Filters

2020-06-18 Thread Steve Lime
Can you access/filter the data outside MapServer with only GDAL? Might be easier to battle one piece of software rather than two. On Thu, Jun 18, 2020 at 10:09 AM wrote: > Hello- > > > > I’m trying to setup a WMS layer that is reading a raster table in > PostGIS. I am loading NOAA Global Hydro

Re: [mapserver-users] deployed mapping engine comparison stats

2020-06-16 Thread Steve Lime
That's probably a result of what drove MapServer development early on. MapServer itself is just a binary (CGI/FCGI) that can do stuff as simple as making simple inset maps or scalebars to distributing maps and data using OGC services with plenty of variations in between. Each call is discrete and

Re: [mapserver-users] MAXSCALEDENOM using runtime var

2020-06-16 Thread Steve Lime
Hi Scott: Nope, the various scale denominator properties are not mutable via URL parameters. It's a relatively simple change to make it happen (just modify maplexer.l (look for the keyword of choice) and rebuild) but I'm not sure it's a great idea since you could be opening up some performance

Re: [mapserver-users] deployed mapping engine comparison stats

2020-06-05 Thread Steve Lime
We're number 3! On Fri, Jun 5, 2020 at 11:09 AM Jeff McKenna wrote: > Something I noticed this morning: MapServer users might be interested in > recently published statistics of deployed mapping engine types (ArcGIS, > GeoServer, MapServer/MapCache, QGIS Server, etc.) : >

Re: [mapserver-users] List properties of mapserver objects

2020-05-19 Thread Steve Lime
Are you using PHP/MapScript or the Swig-based version? On Mon, May 18, 2020 at 4:14 AM Georgiana Paiu wrote: > I am using mapserver 7 with PHP and I was trying to list the properties > and the values of some objects (example styleObj, labelObj) by > using get_object_vars function from PHP. It

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

Re: [mapserver-users] GetFeature WFS request with Spatial Filter DWITHIN

2020-04-27 Thread Steve Lime
To be clear, Fran - are you saying the issue isn't the result set rather the order? If so I don't know of a way to affect that order. In terms of a nearest feature or features. This would be something that I would be keen on addressing. I've run into a variant of this issue using the CGI and

Re: [mapserver-users] Make PROJECTION mandatory?

2020-04-27 Thread Steve Lime
I would prefer to pursue as a documentation/communication exercise first. It's not that I don't agree that PROJECTION blocks are generally recommended but making them required and introducing artificial projections to deal with cases when projections aren't used (embedded legends, scale bars and

Re: [mapserver-users] free() methods

2020-04-23 Thread Steve Lime
With SWIG MapScript, the de-allocation of objects happens behind the scenes, so as objects go out of scope their resources are free'd IF the object is not referenced by another one. --Steve On Tue, Apr 21, 2020 at 6:05 AM Robert Pivalone wrote: > Hello. > > In MapServer 6 / 7 + PHP MapScript

Re: [mapserver-users] layer with "truncated" symbols 2

2020-03-27 Thread Steve Lime
The parameter tile_map_edge_buffer applies *only* to MapServer CGI with mode=tile (https://mapserver.org/output/tile_mode.html). It's set as a METADATA property within the WEB object (I think). The gutter parameter has a similar effect. I assume it's padding the WMS extent sent to MapServer and

Re: [mapserver-users] layer with "truncated" symbols 2

2020-03-27 Thread Steve Lime
It's the dynamic size that's causing the issues. I still think this could work (on the server side) but I'll need to work up my own test case to avoid a bunch of back and forth. --Steve On Fri, Mar 27, 2020 at 4:27 AM Leehan wrote: > following your advice, I added quedalle classe : > > ... >

Re: [mapserver-users] layer with "truncated" symbols 2

2020-03-26 Thread Steve Lime
With symbols MapServer typically handles this situation by adjusting the extent used to select features based on the largest symbol size - so features just off the edge of the map are still rendered partially. That said, based on your sample graphic it looks like you're setting the size of the

Re: [mapserver-users] Mapserver tile edge rendering behaviour

2020-03-11 Thread Steve Lime
MapServer uses the center of the pixel but does compensate for models defined by other specs (e.g. WMS, which defines an extent as outer edge to outer edge. Straight CGI (mode=map) will adjust the requested extent based on the image size to ensure that square cells are being used. WMS allows for

Re: [mapserver-users] URL configuration Style Symbol not changing

2020-03-04 Thread Steve Lime
There's no attempt to turn the name into a symbol index after the mapfile is initially parsed so it looks like you need to reference the symbol index directly in this case. So for a polygon a value of 0 would get you a solid fill, and so on. On Wed, Mar 4, 2020 at 1:18 AM Martin Over wrote: >

Re: [mapserver-users] Mapserver 6.4 does not draw dense line segments at lower zoom levels. Why?

2020-03-02 Thread Steve Lime
Hi! My guess is your v.5 style is being interpreted differently in v.6. For example, what’s the purpose of the ANGLE 360? There were some big changes between versions 5 and 6. For example you don’t have to use a circular brush to draw a thick line. You should be able to do something much simpler

Re: [mapserver-users] Mapcache : Incompatible libpng version in application and library

2020-02-28 Thread Steve Lime
I'd think you must multiple libpng installed. Did you search your system independent of the package manager? On Wed, Feb 26, 2020 at 4:12 AM Johannes Paul wrote: > Hello, > I've compiled Mapcache from source, and the installation worked just fine, > without any error, however when I run

Re: [mapserver-users] Show traffic on roads.

2020-02-23 Thread Steve Lime
How are the data stored? With PostGIS one could aggregate features (ST_Collect?) based on an attribute and render that. You’re still drawing each segment but likely more efficiently. —Steve On Sat, Feb 22, 2020 at 4:25 PM Atlanta Geek wrote: > Is there a good way to show heavy traffic using

Re: [mapserver-users] FILTER and multi STYLE tags

2020-01-24 Thread Steve Lime
You have to get a little more recent... Those changes didn't appear until 7.4.3. --Steve On Fri, Jan 24, 2020 at 2:27 AM Kalbermatten Michaël < michael.kalbermat...@ne.ch> wrote: > Hi Steve, > > > > Thanks for the quick answer and sorry for my late reply. > > > > I downloaded the latest stable

Re: [mapserver-users] FILTER and multi STYLE tags

2020-01-17 Thread Steve Lime
Hi Michaël: What version are you using? There were some fixes related to rendering queries in the latest 7.4 release. —Steve On Friday, January 17, 2020, Kalbermatten Michaël < michael.kalbermat...@ne.ch> wrote: > Dear all, > > > > We have quite a strange filter behavior. > > > > We have a

Re: [mapserver-users] mapscript with php as module does not flush buffers

2020-01-07 Thread Steve Lime
Hmmm... Raster or vector? I can poke around the GDAL/OGR code to see if something is happening in MapServer. Have you tried explicit layer closes? On Thu, Jan 2, 2020 at 5:06 PM Jan Hartmann wrote: > Hi all, > > I use PHP-Mapscript to server WMS-maps, with a MapFile based on an > underlying

Re: [mapserver-users] Issue with label content for UNION layers

2019-12-10 Thread Steve Lime
What version? On Tuesday, December 10, 2019, Julian Hollingbery wrote: > Hi list, > > > > I’m seeing a strange phenomenon regarding label content for a layer with > connectiontype UNION. > > A WMS request to the parent layer (including the UNION layer) produces the > result I’d expect, but the

Re: [mapserver-users] Info Template

2019-11-20 Thread Steve Lime
For the sake of completeness, "$value" is the default format and doesn't need to be explicitly set. --Steve On Wed, Nov 20, 2019 at 7:29 AM Rahkonen Jukka (MML) < jukka.rahko...@maanmittauslaitos.fi> wrote: > Hi Markus, > > > > I am not sure if you’d prefer me to answer in Finnish but English is

Re: [mapserver-users] Query

2019-11-15 Thread Steve Lime
That was setup by one of the MapServer PSC members and can be considered official - it's a little out of date however (MapServer 7.2 I believe). On Fri, Nov 15, 2019 at 8:54 AM Bobby Biran wrote: > Hi MapServer > > > > We can across https://hub.docker.com/u/mapserver in DockerHub and wanted >

Re: [mapserver-users] two values in runtime-substitution Filter vs. processing native_filter

2019-11-01 Thread Steve Lime
So you're seeing a different substitution result when using %key% in: FILTER '...%key%...' versus: PROCESSING 'NATIVE_FILTER=...%key%' If so that would be a bug. The value that replaces %key% should be consistent. The value you supply could be different though because how the expression is

Re: [mapserver-users] Mapcache - Is it possible to have two tilesets share a single cache at particular zoom levels?

2019-10-24 Thread Steve Lime
You'd still need to configure the political map tileset not to generate tiles in the symlinked folders but to serve tiles from those folders - I don't think that's possible. IMHO it's better to configure your political map tiles to only be available for a specific range of zoom levels and

Re: [mapserver-users] PIXMAP Symbols png and jpeg not recongnized

2019-10-23 Thread Steve Lime
Any chance there are multiple versions of libpng and libjpeg? On Wed, Oct 23, 2019 at 1:31 AM Flavio Hendry wrote: > Hi Steve > > Thanks for the answer ... the issue we see, is that png and jpeg do not > work as PIXMAP symbols - such as the below throws an error: > > SYMBOL > NAME "cablecar"

  1   2   3   4   5   6   >