Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save a Map object to a mapfile string #2

Open
homme opened this issue Mar 18, 2013 · 1 comment
Open

Save a Map object to a mapfile string #2

homme opened this issue Mar 18, 2013 · 1 comment

Comments

@homme
Copy link
Member

homme commented Mar 18, 2013

Calling the toString() method on Map objects should return the mapfile representation of the object as a string. This is possible in Mapserver 6.4 now that MapServer/MapServer#4563 has been implemented.

Implementing it would involve an #ifdef check on the mapserver version and then wrapping the new msWriteMapToString() mapserver function as a synchronous javascript toString() function. It can be synchronous as no IO is performed on the mapserver side.

@szekerest
Copy link

As the final (accepted) solution convertToString has been implemented so I don't think it would interfere with the toString method. Java bindings should be compiled along with mapserver core which would provide the methods to stay in sync.

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

No branches or pull requests

2 participants