[mapguide-trac] #1353: Symbol Browser / Selector
MapGuide Open Source
trac_mapguide at osgeo.org
Tue May 11 03:05:40 EDT 2010
#1353: Symbol Browser / Selector
---------------------------+------------------------------------------------
Reporter: jng | Owner: jng
Type: enhancement | Status: new
Priority: medium | Milestone: Maestro-2.5
Component: Maestro | Version:
Severity: major | Keywords:
External_id: |
---------------------------+------------------------------------------------
Through some trial and error, I have discovered that we can actually
inspect and view symbols from a SymbolLibrary by using the Drawing Service
APIs.
SymbolLibrary resources use a DWF file (symbols.dwf) as the underlying
data store, the process for enumerating symbols in a SymbolLibrary is
simply:
1. Create a temp Drawing Source pointing to this DWF file
2. Invoke ENUMERATEDRAWINGSECTIONS on the drawing source. Each section
returned represents one symbol from the symbol library.
3. Invoke ENUMERATEDRAWINGSECTIONRESOURCES on each section of the
previous result
4. To extract the symbol image, invoke GETDRAWINGSECTIONRESOURCE on the
href of the previous result whose role is "thumbnail"
--
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/1353>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list