Personal tools
You are here: Home gvSIG Projects gvSIG Desktop Documentation Developers documentation org.gvsig.fmap.geom 2.0.0 Geometry API access
gvSIG Desktop
gvSIG Desktop

Cached time 11/21/13 11:24:39 Clear cache and reload

 
Document Actions

Geometry API access

by Joaquin Jose del Cerro Murciano last modified 2010-09-06 16:12

Main description of the different components used on the geometry architecture

Exists a serie of independent classes and interfaces that must be used to manage geometries. This classes are:

  • GeometryLocator: It's the library locator. It provide us the location services of the GeometryManager used by the library.
  • GeometryManager: It's the factory that provide us the access to the geometry API. From it we can register geometries, create some new, register operations... Is the access point to the object model.
  • GeometryLibrary: Is the library where we must register the GeometryManager and where carry out all the register operations both geometry types and operations.

The application give us a default implementation of the GeometryManager that, in most of the cases, it wouldn't be necessary to modify. Moreover, it will exist a default implementation of the GeometryLibrary that will register the default manager and all the included geometries on gvSIG. From everywhere on the application, we could get an instance of the GeometryManager executing the following code:

GeometryManager geometryManager = GeometryLocator.getGeometryManager(); 

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: