Two years ago I have done something similar. Fetching geometries from a database and transform them into SVG. The SVG maps were displayed in a browser. The proposed module would have helped a lot.
The nice thing with SVG is that you can design interactive maps for the users, not only nice images. On the other side, it is important for such a module to be configurable not only for strike, color but also for "onclick" actions jumping to some java script routine. If you plan to support interactive maps too, then IMHO, a big +1. Sunburned Surveyor writes: > I'm not doing any painting of SVG on the screen. I'm just outputting > an SVG file. This may not make sense, so let me explain how it will > work in BizzJUMP: > > (1) The user selects an SVG export profile. This will be a text file > that contains the model space coordinate that will be the top-left > zero-zero coordinate of the SVG document. It will also contain SVG > style information, like stroke width, stroke pattern, fille pattern, > fill color and stroke color. > > (2) The user will select the simple features they want to export to SVG. > > (3) My plug-in will take the LineStrings, Points, and Polygon's from > the selected features and will manually convert them to SVG shapes > based on the data in the export profile. > > (4) The SVG elements derived from the feature geometries will be > written to an SVG text file that can be consumed by Inkscape. > > It doesn't sound like I'm tackling the challenge you describe. My goal > is to allow BizzJUMP/OpenJUMP to be used with OpenJUMP for "precise" > cartographic production. > > Because I'm not using Batik, and I'm doing the conversion to SVG > directly, I have more control over the conversion process. I could, > for example, design the code to: > > (1) Join adjacent Linestrings into single SVG paths. > (2) Only create labels centered and rotated along the longest segment > of a LineString. > (3) Change the fill color of a polygon based on the color of adjacent > polygons. > (4) Create different symbols (shapes) to represent point features > based on some attribute value. > (5) Organize SVG shapes into Inkscape layers based on attribute values > or some other logical grouping. > > Landon > > On Fri, Mar 5, 2010 at 10:09 AM, Chris Holmes <[email protected]> wrote: >> So you're not using Batik at all? You're writing your own svg renderer? >> Does it actual render? Like take styling in to account? If it can >> produced styled SLD, especially if it could stream the output, that's >> something we're interested in for geoserver, as batik is pretty slow. >> >> On 3/5/10 11:38 AM, Sunburned Surveyor wrote: >>> I'm getting close to my first release of some code that will allow >>> BizzJUMP/OpenJUMP to export "precise" SVG. Currently OpenJUMP using >>> Batik to export SVG. This makes it difficult to export geometry to the >>> SVG coordinate system consistently, based on the same top-left page >>> coordinate. My code will change that. The user will be able to convert >>> JTS geometries to SVG using a specific top-left coordinate, scale >>> factor, and rotation factor. I believe this code will greatly increase >>> the ability to use BizzJUMP/OpenJUMP for cartographic purposes. >>> >>> Over time I hope to add support for things like Inkscape layers and >>> SVG text generated from feature attributes. >>> >>> I'd like to know if there is any interest in this code among the >>> GeoTools community. Because my code works directly with JTS, it could >>> theoretically be used by any exisitng GIS application in Java that >>> uses JTS to represent feature goemetires. It could also be used with >>> other parts of Geotools to build a stand alone Shapefile to SVG >>> converter. >>> >>> If there is interest in this code, I will start separating any >>> BizzJUMP specific classes into separate packages and will adopt the >>> Geotools file headers. I will then apply for an unsupported module. >>> >>> If there isn't enough interest, I'll just release the code through my >>> SurveyOS SourceForge project. If you are curious, my current code can >>> be found here: >>> >>> http://surveyos.svn.sourceforge.net/viewvc/surveyos/java/openjump_inkscape_svg_export/trunk/src/ >>> >>> >>> Landon >>> >>> ------------------------------------------------------------------------------ >>> Download Intel® Parallel Studio Eval >>> Try the new software tools for yourself. Speed compiling, find bugs >>> proactively, and fine-tune applications for parallel performance. >>> See why Intel Parallel Studio got high marks during beta. >>> http://p.sf.net/sfu/intel-sw-dev >>> _______________________________________________ >>> Geotools-devel mailing list >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/geotools-devel >> >> ------------------------------------------------------------------------------ >> Download Intel® Parallel Studio Eval >> Try the new software tools for yourself. Speed compiling, find bugs >> proactively, and fine-tune applications for parallel performance. >> See why Intel Parallel Studio got high marks during beta. >> http://p.sf.net/sfu/intel-sw-dev >> _______________________________________________ >> Geotools-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/geotools-devel >> > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Geotools-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-devel ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
