Hi Jodie,

Thanks for the high level tips and for the great geotools libraries. OpenJump looks interesting but is not usable in a commercial product due to viral nature of its GPL2 license.

I was able to use a JMapFrame extension with some new CursorTool extensions to draw features with Point, LineString and Polygon geometry attributes and add features to the MapPane using a FeatureLayer. I am successfully using this to graphically enter a filter Geometry in WKT form to do spatial filter searches in my application.

It is a credit to the good code you, Michael and colleagues wrote on the swing module that I was able to extend it relatively easily along the lines of what you described. In the process I file a relatively simple RFE <https://jira.codehaus.org/browse/GEOT-4440> along with a proposed patch to implement it.

Thanks again for your kind help.

On 04/06/2013 10:25 PM, Jody Garnett wrote:
GeoTools is a spatial library responsible for accessing the data, and drawing it. It does provide a bit of SWT code to help with the tutorials, but that is not intended as a desktop GIS.

If you would examples of how to edit as a developer look at the FeatureStore API, you can use it to update the Geometry for a feature.

If you need to edit JTS Geometry it is a bit more tricky (often you end up taking a copy of the co-ordinates into your own data structure for interactive editing).

Have a look at the Open Jump project (Swing based) and uDig project (SWT based) for examples.

Note our gt-swing module does support very simple tools, and you could create edit tools if interested following the above examples. As of yet nobody has volunteered to write this functionally for the community.
--
Jody Garnett

On Wednesday, 3 April 2013 at 2:54 AM, Farrukh Najmi wrote:


OK, how about some high level hints to point me in the right direction?

On 04/01/2013 12:19 PM, Farrukh Najmi wrote:
Hi Guys,

I am wondering if any one has any sample code to share that draws
points, lines and polygons on a map and allows basic editing of such
geometries (perhaps just dragging and moving them). Here is an example
in javascript with openlayers that is very much what I am looking for in
Java / geotools:

http://openlayers.org/dev/examples/drag-feature.html

Thanks for your help.




--
Regards,
Farrukh Najmi

Web: http://www.wellfleetsoftware.com

------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to