Skip to content

Add a Python test for checking the OFFSET is output correctly#5715

Merged
rouault merged 5 commits intoMapServer:masterfrom
geographika:edit-patch-3
Feb 27, 2020
Merged

Add a Python test for checking the OFFSET is output correctly#5715
rouault merged 5 commits intoMapServer:masterfrom
geographika:edit-patch-3

Conversation

@geographika
Copy link
Copy Markdown
Member

@thisIsShubhamSharma - I added a Python test to create a style with doubles as OFFSET values, convert it to a string, load it back and check the doubles are still there. The test however appears to be failing. Can you convert to string and see that double OFFSET values are preserved?

          output_string = new_style.convertToString()
          new_style2 = mapscript.fromstring(output_string)
      
          # ensure attributes are output as doubles
          assert new_style.size == 7.25
  >       assert new_style2.offsetx == 10.5
  E       AssertionError: assert 0.0 == 10.5
  E        +  where 0.0 = <mapscript.mapscript.styleObj; proxy of <Swig Object of type 'styleObj *' at 0x03ED0A10> >.offsetx

@geographika geographika reopened this Jan 25, 2019
@geographika geographika changed the base branch from master to branch-7-2 January 25, 2019 07:55
@geographika geographika changed the base branch from branch-7-2 to master January 27, 2019 07:09
@geographika geographika reopened this Feb 27, 2020
@rouault rouault merged commit b79ced1 into MapServer:master Feb 27, 2020
@geographika
Copy link
Copy Markdown
Member Author

For reference issue was #5310 and fix was by @sdlime with #5738

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants