Changes between Version 2 and Version 3 of GSoC_SVG_Symbols_SECOND_DRAFT_OF_THE_MS_RFC
- Timestamp:
- Aug 10, 2009, 10:47:16 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GSoC_SVG_Symbols_SECOND_DRAFT_OF_THE_MS_RFC
v2 v3 11 11 12 12 The SVG parsing and rendering will be triggered by the following syntax: 13 14 {{{ 13 15 SYMBOL 14 16 TYPE SVG 15 17 SVGPATH / p a t h / t o / f i l e . svg 16 18 END 19 }}} 20 17 21 The choice for using a SYMBOL for the task is to allow for the reuse of the SVG symbol easily within classes. 18 22 … … 38 42 1. Implement an SVG parser. For this, we directly make use of the SVG Viewer example provided along with the AGG 39 43 sources. 44 40 45 2. Modify the MapServer lexical analyzer and parser to recognize the new keywords (SVG and SVGPATH). 46 41 47 3. Modify the symbolObj structure to store information about the SVG symbol requested (eg. File path). 48 42 49 4. Write a single function to render a parsed SVG file to a pixmap. The pixmap will be an intermediate form that can then 43 50 be rendered. The pixmap will be stored in cache memory to prevent having to constantly be rasterized it every time a 44 51 symbol is drawn. 52 45 53 5. Create a createBrushFromSVG() function that creates a GD image pixmap. Also modify the basic rendering functions 46 54 to support the new symbol type by using the createBrushFromSVG function. 55 47 56 6. Render the pixmap into the final image file. This will be done using a mixture of the AGG and GD libraries. 48 57 … … 52 61 4.1 AGG/SVG Parser. 53 62 The SVG parsing and pixmap generation functions will be stored in source files stored at 63 64 {{{ 54 65 / maps e rve r / r e n d e r e r s / agg / svg / 66 }}} 67 55 68 The files within the above directory include the files for: 56 69 a. SVG Parsing