savelov / radar-wms

radar product wms viewer
GNU Lesser General Public License v3.0
9 stars 5 forks source link

southern corner dissapears at zoom level 7 #12

Closed savelov closed 5 years ago

savelov commented 5 years ago

zoom level7, center at around 42.5E, 44.3N image dissapears at default zoom level 6, dissapears around center of Van lake

savelov commented 5 years ago

example of empty map - link

savelov commented 5 years ago

example of non-empty map - link

savelov commented 5 years ago

mapserver mapfile - taken from map_object.save("mymapfile.map")

mapfile-wrong.txt

savelov commented 5 years ago

according to mapserver doc, EXTENT and SIZE show be defined https://mapserver.org/tutorial/example1-1.html#example1-1 debugging mapfile - https://mapserver.org/optimization/debugging.html

savelov commented 5 years ago

example command (+need to specify extent) - shp2img -m mapfile-wrong.map -all_debug 5 -o test.png -s 820 460 msLoadMap(): 0.001s msDrawMap(): rendering using outputformat named png (AGG/PNG). msDrawMap(): WMS/WFS set-up and query, 0.001s msDrawRasterLayerLow(bufr_phenomena): entering. msResampleGDALToMap in effect: cellsize = 4000.000000 msDrawGDAL(bufr_phenomena): using RAW_WINDOW=0 0 700 700, dst=0,0,700,700 msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,0,0,0 msNearestRasterResampler: 41000 failed to transform, 2196 actually set. msDrawMap(): Layer 0 (bufr_phenomena), 0.207s msDrawMap(): Drawing Label Cache, 0.000s msDrawMap() total time: 0.210s msSaveImage(test.png) total time: 0.019s msFreeMap(): freeing map at 0x55e04ad29320. freeLayer(): freeing layer at 0x55e04ad32900. shp2img total time: 0.229s

savelov commented 5 years ago

need to find out how to specify all_debug parameter in mapfile to check against this error - [Sun Dec 23 20:27:16 2018].9545 msLoadMap(): 0.001s [Sun Dec 23 20:27:16 2018].10566 msDrawMap(): rendering using outputformat named png (AGG/PNG). [Sun Dec 23 20:27:16 2018].11159 msLayerIsVisible(): Skipping layer (bufr_phenomena) because LAYER.EXTENT does not intersect MAP.EXTENT [Sun Dec 23 20:27:16 2018].11172 msDrawMap(): WMS/WFS set-up and query, 0.001s [Sun Dec 23 20:27:16 2018].11730 msLayerIsVisible(): Skipping layer (bufr_phenomena) because LAYER.EXTENT does not intersect MAP.EXTENT [Sun Dec 23 20:27:16 2018].11744 msDrawMap(): Drawing Label Cache, 0.000s [Sun Dec 23 20:27:16 2018].11753 msDrawMap() total time: 0.002s [Sun Dec 23 20:27:16 2018].30337 msSaveImage(test.png) total time: 0.019s [Sun Dec 23 20:27:16 2018].30435 msFreeMap(): freeing map at 0x55ee577eb320. [Sun Dec 23 20:27:16 2018].30455 freeLayer(): freeing layer at 0x55ee577f4c30. [Sun Dec 23 20:27:16 2018].30491 shp2img total time: 0.022s

savelov commented 5 years ago

error is the exent - map is 700*700 points 4x4 km, it is not -700..+700, but -1400..+1400