andrea antonello ha scritto: > Hi, I find myself in the position to have to decide on how to export > freehand drawn annotations from udig. > Since I am no master of the formats-universe, I wanted to know if > anyone knows what I should best use. > I think this is the right list to ask for, please correct me if you > find the word udig appears too often. > > To explain: > I have a plugin that draws freehand on a udig map layer. I have the > possibility to change strokewidth and color/transparency. > This gives me the possibility to really paint different strokes with > different colors and to simulate fills by drawing. > The drawing is saved into a H2 embedded database (not yet spatially > though) and is CRS aware and is reprojected if needed. > Also it is scale aware, keeps the width fixed for the scale at which > it was drawn and scales with the zoom. > > Now I have the problem to understand what to do it the user says "export > layer". > My first thought was svg, since it is a drawing. But then how to > overlay it again over a map?
You'd loose crs information > Shapefile doesn't seem to be a feasible choice. Why not? You control the set of attributes no? So you can add columns with the line width, color and whatnot (I guess being a freehand you don't have that many options, do you?). Pair it with a properly crafted SLD and you're in business. Cheers Andrea ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
