Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[udig-devel] Edit Tool Plugin Implementation - Committing changes over both vector and raster layers


Dear List,

Here is my situation.

I'm trying to implement curve edit tool.

Currently, my codes are heavily base on FreeHandTool and FreeHandPolygonDrawBehivaour.. Since, my tools will draw Line/Curve which will not be require any closing path. I like to be end-up with open ends. One question here, when I determineShapeType() from current getEditLayer(), it always return polygon.. I don't understand where I left to configure this to be SimpleFeatureType LineString. I used DrawType.LINE at initActivators and I have to force ShapeType.LINE at implementing behaviour.

And finally, I can use AbstractDrawCommand for drawing line and curve and from Path/PathAdapter/GeneralPath to EditUtils.appendPathToShape to adding vertices feature points..

Now my main questions are:

How can I commit these drawing/changes to backdrop Map layer?
I also want to write these drawing features/graphics to write on both features(vector) shapefiles layer and raster layer. How can I achieve that?
I don't know what is happening, but all my drawing features/graphics over shapefile layer or raster layer could not save or commit changes..

Thanks and Regards,
Victor




Back to the top