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

Allow Map instances to be updated from mapfile snippets #4

Open
homme opened this issue Mar 18, 2013 · 0 comments
Open

Allow Map instances to be updated from mapfile snippets #4

homme opened this issue Mar 18, 2013 · 0 comments

Comments

@homme
Copy link
Member

homme commented Mar 18, 2013

Although individual mapserv requests can change map file parameters via a form or a URL there is currently no way to permanently update a live Map instance.

To remedy this whilst adhering to the declarative spirit of the module, an asynchronous updateFromString() method would need to be added to the Map class. This would wrap the underlying mapserver msUpdateMapFromURL() function which implements the CGI mapserver functionality described above. As such the function would take two string parameters; the first specifying the object to update using the mapfile object notation and the second specifying the actual mapfile snippet.

As msUpdateMapFromURL() is not thread safe a call to it would need to be wrapped with a parser lock:

msAcquireLock( TLOCK_PARSER );
msUpdateMapFromURL(...);
msReleaseLock( TLOCK_PARSER );
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

1 participant