From szekerest at gmail.com Thu Mar 5 12:32:28 2026 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 5 Mar 2026 21:32:28 +0100 Subject: [MapServer-dev] Rendering Openstreetmap data in Mapserver Message-ID: Hi Devs, I'm trying to create a vector based map for the openstreetmap data in Mapserver by utilizing the mapnik styles provided by the openstreetmap-carto project. So far, I could achieve a very good result and the map looks is very similar to the online OSM at all scales, however the only thing I cannot replicate is the concept of the *[way_pixels]* attribute conditions, where the feature?s area in pixels at the current map scale should be the part of the class expressions. I don't see such an option in Mapserver as it stands now, but supporting the already existing *[map_cellsize] *would be a very close solution I think, however that is only implemented for the GEOMTRANSFORM expressions actually. For example the mapnik style expression [way_pixels] > 750 could be provided in a MapServer CLASS expression as somehing like: [way_area] > 750 * [map_cellsize] * [map_cellsize] Would that be reasonable to implement *[map_cellsize]* in the CLASS expressions? Best regards, Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Thu Mar 5 14:17:45 2026 From: steve.lime at state.mn.us (Lime, Steve D (MNIT)) Date: Thu, 5 Mar 2026 22:17:45 +0000 Subject: [MapServer-dev] Rendering Openstreetmap data in Mapserver In-Reply-To: References: Message-ID: Hmmm... I think this should be possible but I'm not sure exactly what would need to change. The expression parser code is not particularly straightforward. The map_cellsize token is generally recognized in the parser - so not limited to GEOMTRANSFORM but it's not clear how it gets its value. From: MapServer-dev On Behalf Of Tamas Szekeres via MapServer-dev Sent: Thursday, March 5, 2026 2:32 PM To: mapserver-dev at lists.osgeo.org Subject: [MapServer-dev] Rendering Openstreetmap data in Mapserver Hi Devs, I'm trying to create a vector based map for the openstreetmap data in Mapserver by utilizing the mapnik styles provided by the openstreetmap-carto project. So far, I could achieve a very good result and the map looks is very similar to the online OSM at all scales, however the only thing I cannot replicate is the concept of the [way_pixels] attribute conditions, where the feature's area in pixels at the current map scale should be the part of the class expressions. I don't see such an option in Mapserver as it stands now, but supporting the already existing [map_cellsize] would be a very close solution I think, however that is only implemented for the GEOMTRANSFORM expressions actually. For example the mapnik style expression [way_pixels] > 750 could be provided in a MapServer CLASS expression as somehing like: [way_area] > 750 * [map_cellsize] * [map_cellsize] Would that be reasonable to implement [map_cellsize] in the CLASS expressions? Best regards, Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Thu Mar 5 14:59:44 2026 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 5 Mar 2026 23:59:44 +0100 Subject: [MapServer-dev] Rendering Openstreetmap data in Mapserver In-Reply-To: References: Message-ID: In my understanding, the actual value should be provided somewhere here: https://github.com/MapServer/MapServer/blob/89d81cb8d0fcf5d44e043d53afe70f6e6a785756/src/maputil.c#L713 in a similar way as the geomtransform code: https://github.com/MapServer/MapServer/blob/89d81cb8d0fcf5d44e043d53afe70f6e6a785756/src/mapgeomtransform.c#L283 Best regards, Tamas Lime, Steve D (MNIT) ezt ?rta (id?pont: 2026. m?rc. 5., Cs, 23:17): > Hmmm? I think this should be possible but I?m not sure exactly what would > need to change. The expression parser code is not particularly > straightforward. The map_cellsize token is generally recognized in the > parser ? so not limited to GEOMTRANSFORM but it?s not clear how it gets its > value. > > > > *From:* MapServer-dev *On Behalf > Of *Tamas Szekeres via MapServer-dev > *Sent:* Thursday, March 5, 2026 2:32 PM > *To:* mapserver-dev at lists.osgeo.org > *Subject:* [MapServer-dev] Rendering Openstreetmap data in Mapserver > > > > Hi Devs, > > > > I'm trying to create a vector based map for the openstreetmap data in > Mapserver by utilizing the mapnik styles provided by the > openstreetmap-carto > project. So > far, I could achieve a very good result and the map looks is very similar > to the online OSM at all scales, however the only thing I cannot replicate > is the concept of the *[way_pixels]* attribute conditions, where the > feature?s area in pixels at the current map scale should be the part of the > class expressions. I don't see such an option in Mapserver as it stands > now, but supporting the already existing *[map_cellsize] *would be a very > close solution I think, however that is only implemented for the > GEOMTRANSFORM expressions actually. > > > > For example the mapnik style expression > > > > [way_pixels] > 750 > > > > could be provided in a MapServer CLASS expression as somehing like: > > [way_area] > 750 * [map_cellsize] * [map_cellsize] > > Would that be reasonable to implement *[map_cellsize]* in the CLASS > expressions? > > > > Best regards, > > > > Tamas > -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Thu Mar 5 15:10:11 2026 From: steve.lime at state.mn.us (Lime, Steve D (MNIT)) Date: Thu, 5 Mar 2026 23:10:11 +0000 Subject: [MapServer-dev] Rendering Openstreetmap data in Mapserver In-Reply-To: References: Message-ID: Yeah, I saw those sections. I didn't think we can just set p.dblval in the way the geomtransform code does - or maybe it is that simple - easy enough to test. From: Tamas Szekeres Sent: Thursday, March 5, 2026 5:00 PM To: Lime, Steve D (MNIT) Cc: mapserver-dev at lists.osgeo.org Subject: Re: [MapServer-dev] Rendering Openstreetmap data in Mapserver In my understanding, the actual value should be provided somewhere here: https://github.com/MapServer/MapServer/blob/89d81cb8d0fcf5d44e043d53afe70f6e6a785756/src/maputil.c#L713 in a similar way as the geomtransform code: https://github.com/MapServer/MapServer/blob/89d81cb8d0fcf5d44e043d53afe70f6e6a785756/src/mapgeomtransform.c#L283 Best regards, Tamas Lime, Steve D (MNIT) > ezt ?rta (id?pont: 2026. m?rc. 5., Cs, 23:17): Hmmm... I think this should be possible but I'm not sure exactly what would need to change. The expression parser code is not particularly straightforward. The map_cellsize token is generally recognized in the parser - so not limited to GEOMTRANSFORM but it's not clear how it gets its value. From: MapServer-dev > On Behalf Of Tamas Szekeres via MapServer-dev Sent: Thursday, March 5, 2026 2:32 PM To: mapserver-dev at lists.osgeo.org Subject: [MapServer-dev] Rendering Openstreetmap data in Mapserver Hi Devs, I'm trying to create a vector based map for the openstreetmap data in Mapserver by utilizing the mapnik styles provided by the openstreetmap-carto project. So far, I could achieve a very good result and the map looks is very similar to the online OSM at all scales, however the only thing I cannot replicate is the concept of the [way_pixels] attribute conditions, where the feature's area in pixels at the current map scale should be the part of the class expressions. I don't see such an option in Mapserver as it stands now, but supporting the already existing [map_cellsize] would be a very close solution I think, however that is only implemented for the GEOMTRANSFORM expressions actually. For example the mapnik style expression [way_pixels] > 750 could be provided in a MapServer CLASS expression as somehing like: [way_area] > 750 * [map_cellsize] * [map_cellsize] Would that be reasonable to implement [map_cellsize] in the CLASS expressions? Best regards, Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Thu Mar 5 15:15:09 2026 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 6 Mar 2026 00:15:09 +0100 Subject: [MapServer-dev] Rendering Openstreetmap data in Mapserver In-Reply-To: References: Message-ID: yes, but I'd prefer just to use: p.dblval = layer->map->cellsize; instead of the way we use in GEOMTRANSFORM p.dblval = map->cellsize * (msInchesPerUnit(map->units, 0) / msInchesPerUnit(layer->units, 0)); because we are talking about "map_cellsize" and not "layer_cellsize" Lime, Steve D (MNIT) ezt ?rta (id?pont: 2026. m?rc. 6., P, 0:10): > Yeah, I saw those sections. I didn?t think we can just set p.dblval in the > way the geomtransform code does ? or maybe it is that simple - easy enough > to test. > > > > *From:* Tamas Szekeres > *Sent:* Thursday, March 5, 2026 5:00 PM > *To:* Lime, Steve D (MNIT) > *Cc:* mapserver-dev at lists.osgeo.org > *Subject:* Re: [MapServer-dev] Rendering Openstreetmap data in Mapserver > > > > In my understanding, the actual value should be provided somewhere here: > > > > > https://github.com/MapServer/MapServer/blob/89d81cb8d0fcf5d44e043d53afe70f6e6a785756/src/maputil.c#L713 > > > > in a similar way as the geomtransform code: > > > > > https://github.com/MapServer/MapServer/blob/89d81cb8d0fcf5d44e043d53afe70f6e6a785756/src/mapgeomtransform.c#L283 > > > > Best regards, > > > > Tamas > > > > > > Lime, Steve D (MNIT) ezt ?rta (id?pont: 2026. > m?rc. 5., Cs, 23:17): > > Hmmm? I think this should be possible but I?m not sure exactly what would > need to change. The expression parser code is not particularly > straightforward. The map_cellsize token is generally recognized in the > parser ? so not limited to GEOMTRANSFORM but it?s not clear how it gets its > value. > > > > *From:* MapServer-dev *On Behalf > Of *Tamas Szekeres via MapServer-dev > *Sent:* Thursday, March 5, 2026 2:32 PM > *To:* mapserver-dev at lists.osgeo.org > *Subject:* [MapServer-dev] Rendering Openstreetmap data in Mapserver > > > > Hi Devs, > > > > I'm trying to create a vector based map for the openstreetmap data in > Mapserver by utilizing the mapnik styles provided by the > openstreetmap-carto > project. So > far, I could achieve a very good result and the map looks is very similar > to the online OSM at all scales, however the only thing I cannot replicate > is the concept of the *[way_pixels]* attribute conditions, where the > feature?s area in pixels at the current map scale should be the part of the > class expressions. I don't see such an option in Mapserver as it stands > now, but supporting the already existing *[map_cellsize] *would be a very > close solution I think, however that is only implemented for the > GEOMTRANSFORM expressions actually. > > > > For example the mapnik style expression > > > > [way_pixels] > 750 > > > > could be provided in a MapServer CLASS expression as somehing like: > > [way_area] > 750 * [map_cellsize] * [map_cellsize] > > Would that be reasonable to implement *[map_cellsize]* in the CLASS > expressions? > > > > Best regards, > > > > Tamas > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Thu Mar 5 15:25:09 2026 From: steve.lime at state.mn.us (Lime, Steve D (MNIT)) Date: Thu, 5 Mar 2026 23:25:09 +0000 Subject: [MapServer-dev] Rendering Openstreetmap data in Mapserver In-Reply-To: References: Message-ID: So the GEOMTRANSFORM [map_cellsize] tag is mis-named then and really should be [layer_cellsize]. Then [map_cellsize] could always just refer to map->cellsize. Perhaps something that could be addressed at 9.0. For now I think using p.dblval = layer->map->cellsize; would be fine for understanding if it works as you hope. From: Tamas Szekeres Sent: Thursday, March 5, 2026 5:15 PM To: Lime, Steve D (MNIT) Cc: mapserver-dev at lists.osgeo.org Subject: Re: [MapServer-dev] Rendering Openstreetmap data in Mapserver yes, but I'd prefer just to use: p.dblval = layer->map->cellsize; instead of the way we use in GEOMTRANSFORM p.dblval = map->cellsize * (msInchesPerUnit(map->units, 0) / msInchesPerUnit(layer->units, 0)); because we are talking about "map_cellsize" and not "layer_cellsize" Lime, Steve D (MNIT) > ezt ?rta (id?pont: 2026. m?rc. 6., P, 0:10): Yeah, I saw those sections. I didn't think we can just set p.dblval in the way the geomtransform code does - or maybe it is that simple - easy enough to test. From: Tamas Szekeres > Sent: Thursday, March 5, 2026 5:00 PM To: Lime, Steve D (MNIT) > Cc: mapserver-dev at lists.osgeo.org Subject: Re: [MapServer-dev] Rendering Openstreetmap data in Mapserver In my understanding, the actual value should be provided somewhere here: https://github.com/MapServer/MapServer/blob/89d81cb8d0fcf5d44e043d53afe70f6e6a785756/src/maputil.c#L713 in a similar way as the geomtransform code: https://github.com/MapServer/MapServer/blob/89d81cb8d0fcf5d44e043d53afe70f6e6a785756/src/mapgeomtransform.c#L283 Best regards, Tamas Lime, Steve D (MNIT) > ezt ?rta (id?pont: 2026. m?rc. 5., Cs, 23:17): Hmmm... I think this should be possible but I'm not sure exactly what would need to change. The expression parser code is not particularly straightforward. The map_cellsize token is generally recognized in the parser - so not limited to GEOMTRANSFORM but it's not clear how it gets its value. From: MapServer-dev > On Behalf Of Tamas Szekeres via MapServer-dev Sent: Thursday, March 5, 2026 2:32 PM To: mapserver-dev at lists.osgeo.org Subject: [MapServer-dev] Rendering Openstreetmap data in Mapserver Hi Devs, I'm trying to create a vector based map for the openstreetmap data in Mapserver by utilizing the mapnik styles provided by the openstreetmap-carto project. So far, I could achieve a very good result and the map looks is very similar to the online OSM at all scales, however the only thing I cannot replicate is the concept of the [way_pixels] attribute conditions, where the feature's area in pixels at the current map scale should be the part of the class expressions. I don't see such an option in Mapserver as it stands now, but supporting the already existing [map_cellsize] would be a very close solution I think, however that is only implemented for the GEOMTRANSFORM expressions actually. For example the mapnik style expression [way_pixels] > 750 could be provided in a MapServer CLASS expression as somehing like: [way_area] > 750 * [map_cellsize] * [map_cellsize] Would that be reasonable to implement [map_cellsize] in the CLASS expressions? Best regards, Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: From sethg at geographika.co.uk Fri Mar 20 04:52:21 2026 From: sethg at geographika.co.uk (Seth G) Date: Fri, 20 Mar 2026 12:52:21 +0100 Subject: [MapServer-dev] MapServer 2026 User Survey In-Reply-To: <81d1715f-f6b6-4761-8fed-a601fdcf42d4@app.fastmail.com> References: <81d1715f-f6b6-4761-8fed-a601fdcf42d4@app.fastmail.com> Message-ID: <536925ae-18f9-4518-9bbb-4a9485ce6bd1@app.fastmail.com> Hi all, The 2026 MapServer User Survey will be coming to a close at the end of the month. If you haven?t had a chance to respond yet, the survey is available here: https://docs.google.com/forms/d/e/1FAIpQLSfNLqslbM6IhocnwTst9c29eaD89yD81hdUKW2ctn2uZK0Z3g/viewform Your responses will help guide development priorities and understand how MapServer is being used. So, if you?re that one user of the SOS protocol, let us know! - The MapServer PSC On Tue, Feb 3, 2026, at 6:09 PM, Seth G via MapServer-dev wrote: > Hi MapServer users, > > The MapServer Project Steering Committee (PSC) would love your feedback. > > We?ve just launched the first-ever MapServer User Survey, and we invite > you to participate: > https://docs.google.com/forms/d/e/1FAIpQLSfNLqslbM6IhocnwTst9c29eaD89yD81hdUKW2ctn2uZK0Z3g/viewform > > Your responses will help us better understand how MapServer is being > used today and will directly inform the project?s future roadmap. The > survey will remain open until the end of March 2026. > > Providing your name and email address is entirely optional. All > responses will be kept confidential; any results shared publicly will > be aggregated and anonymised, and no identifying information will be > published. > > Thank you for taking the time to share your experience. If possible, > please also help us by sharing the survey with other MapServer users. > > - The MapServer PSC > _______________________________________________ > MapServer-dev mailing list > MapServer-dev at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-dev