Revision 32924 branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/GeometryManager.java
GeometryManager.java | ||
---|---|---|
75 | 75 |
* @author <a href="mailto:jpiera@gvsig.org">Jorge Piera</a> |
76 | 76 |
*/ |
77 | 77 |
public interface GeometryManager { |
78 |
public interface OPERATIONS { |
|
79 |
public final static String FROMWKT = "FromWKT"; |
|
80 |
public final static String FROMWKB = "FromWKB"; |
|
81 |
} |
|
82 |
|
|
78 | 83 |
/** |
79 | 84 |
* <p> |
80 | 85 |
* Registers a GeometryOperation associated to a GeometryType. |
... | ... | |
384 | 389 |
public Geometry create(String name) throws CreateGeometryException; |
385 | 390 |
|
386 | 391 |
/** |
392 |
* Create a geometry from a WKT definition. |
|
393 |
* |
|
394 |
* This is a utility method to wrap the invocation to the operation |
|
395 |
* {@link OPERATIONS#FROMWKT}. |
|
396 |
* |
|
397 |
* @param wkt geometry in Well-known text format |
|
398 |
* |
|
399 |
* @return the geometry as a Geometry |
|
400 |
* |
|
401 |
* @throws CreateGeometryException |
|
402 |
* @throws GeometryException |
|
403 |
*/ |
|
404 |
public Geometry createFrom(String wkt, String srs) throws CreateGeometryException, GeometryException; |
|
405 |
|
|
406 |
/** |
|
407 |
* Create a geometry from a WKB definition. |
|
408 |
* |
|
409 |
* This is a utility method to wrap the invocation to the operation |
|
410 |
* {@link OPERATIONS#FROMWKB}. |
|
411 |
* |
|
412 |
* @param wkb geometry in well-known binary format |
|
413 |
* |
|
414 |
* @return the geometry as a Geometry |
|
415 |
* |
|
416 |
* @throws CreateGeometryException |
|
417 |
* @throws GeometryException |
|
418 |
*/ |
|
419 |
public Geometry createFrom(byte[] wkb) throws CreateGeometryException, GeometryException; |
|
420 |
|
|
421 |
/** |
|
387 | 422 |
* <p> |
388 | 423 |
* This method creates a {@link Geometry} with a concrete type and subtype. |
389 | 424 |
* The geometry is empty, and all the internal attributes must be assigned |
Also available in: Unified diff