node-mapserv icon indicating copy to clipboard operation
node-mapserv copied to clipboard

Save a `Map` object to a mapfile string

Open homme opened this issue 11 years ago • 1 comments

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.

homme avatar Mar 18 '13 14:03 homme

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.

szekerest avatar Apr 02 '13 14:04 szekerest