[MapServer-users] wfs - General error message. Invalid image width or height.

Gerhard Völkl gkvoelkl at nelson-games.de
Mon Mar 31 04:22:49 PDT 2025


Hello, 

I am working with wfs and with an within filter.
I think my call is okey. But mapserver get the coordinates wrong. Changes the first x coordinate into 0.0.
 
What can I do? Thanks.
 
My call:

https://map.test.de/cgi-bin/mapserv?MAP=point_wfs.map&service=WFS&version=2.0.0&request=GetFeature&typename=point&srsName=EPSG:25832&outputFormat=geojson&width=1&height=1&FILTER=<Filter><Within><PropertyName>geom</PropertyName><gml:Polygon srsName='EPSG:25832'><gml:exterior><gml:LinearRing><gml:posList>[725868.0183494878, 5434463.452570233, 726190.8853660035, 5434424.247289656, 726626.7558382996, 5434320.468605775, 726608.3062944987, 5434119.829816941, 726534.5081192951, 5433810.799958276, 726167.8234362523, 5433764.676098774, 725840.3440337864, 5433958.396308683, 725757.3210866824, 5434322.774798751, 725868.0183494878, 5434463.452570233]</gml:posList></gml:LinearRing></gml:exterior></gml:Polygon></Within></Filter>
 
Error messages in mapserver log

[Mon Mar 31 12:59:10 2025].924670 FLTLayerApplyPlainFilterToLayer(): within([shape],fromText('POLYGON ((0.0000000000000000 5434463.4525702325627208, 726190.8853660034947097 5434424.2472896557301283, 726626.7558382996357977 5434320.4686057753860950, 726608.3062944987323135 5434119.8298169411718845, 726534.5081192951183766 5433810.7999582756310701, 726167.8234362523071468 5433764.6760987741872668, 725840.3440337864449248 5433958.3963086828589439, 725757.3210866823792458 5434322.7747987508773804, 725868.0183494878001511 5434463.4525702325627208, 0.0000000000000000 5434463.4525702325627208))')) = TRUE, rect=721340,5428240,733540,5440830
[Mon Mar 31 12:59:10 2025].972401 msCalculateScale(): General error message. Invalid image width or height.

Best regards Gerhard
 
Von meinem iPad gesendet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20250331/3220ab97/attachment-0001.htm>


More information about the MapServer-users mailing list