Opened 17 years ago
Closed 17 years ago
#2143 closed defect (fixed)
Ticket to track RFC 31 developments
Reported by: | sdlime | Owned by: | sdlime |
---|---|---|---|
Priority: | normal | Milestone: | 5.0 release |
Component: | MapServer C Library | Version: | 5.0 |
Severity: | normal | Keywords: | |
Cc: |
Description
This development refers to the effort to add methods to update objects using string representations of mapfile snippets. The result will be:
1) a series of methods added to mapscript to allow this 2) a revamped URL configuration capability that allows users to pass snippets (albeit with limited options)
Tasks:
- update loadObject (e.g. loadLayer) functions to allow tokens that define the object in parsing. Normally those would be stripped by parent loaders but string updates can bypass those. (DONE)
- write loadObjectFromString wrappers
- reference loadObjectFromString wrappers in MapScript
- remove loadObjectValue functions
- re-write msLoadMapParameter as msLoadMapFromURL, function will call the loadObjectFromString functions
- implement parameter to toggle URL configuration
- documentation
Steve
Change History (5)
comment:1 by , 17 years ago
Status: | new → assigned |
---|
comment:2 by , 17 years ago
The build was broken by the changes from r6361. I made the following changes in r6364:
- Added MS_TOKENIZE_VALUE, MS_TOKENIZE_NAME to enum MS_LEXER_STATES in mapfile.h
- Commented out call to undefined msUpdateMapFromURL() in mapserv.c. Steve: you'll have to remove the comment when you commit the new function.
comment:3 by , 17 years ago
St. I forgot to include my copy of mapfile.h. Will fix. That function (msUpdateMapFromURL) is in mapfile.c but musn't be referenced in map.h. Will fix ASAP...
Steve
comment:4 by , 17 years ago
Looks like I missed mapfile.c too (big mistake). I guess it was way too late...
Steve
comment:5 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Calling this complete. Other bugs may crop up but will manifest themselves as new tickets.
Steve
Ok, I got the initial code (95% complete) in tonite. All the update object from string methods are present in mapfile.c and are exposed in SWIG/MapScript via updateFromString methods for each object. I've tested via perl with no problems. I've also tested the most frequent URL-based configurations:
URL configuration is very limited as one might expect.
To do:
Steve