Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
PHP mapscript 7.0.0 ms_newGridObj appears non-functional #5159
I upgraded to 7.0.0 from 6.4.2 and I cannot get ms_newGridObj to work in PHP mapscript, which was working just fine. No errors are thrown with the same code - just no GRID no matter what I attempt. When I use shp2img using a barebones map file however, GRID does work.
I had a suspicion that the GRID block was not being created with ms_newGridObj. If it's any indication, saving out the map object to a mapfile sure enough shows the complete absence of the GRID block. As a workaround, I'm temporarily using updateFromString to programmatically inject the GRID block.
referenced this issue
Sep 29, 2015
added a commit
Oct 2, 2015
I confirm this fix (manually, with files from @szekerest 's clone). The resulting map image contains grid lines. The resulting map layer does contain a GRID object: