Revision 26866 branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/primitive/NullGeometry.java
NullGeometry.java | ||
---|---|---|
49 | 49 |
import org.cresques.cts.ICoordTrans; |
50 | 50 |
import org.cresques.cts.IProjection; |
51 | 51 |
import org.gvsig.fmap.geom.GeometryLocator; |
52 |
import org.gvsig.fmap.geom.Geometry.SUBTYPES; |
|
52 | 53 |
import org.gvsig.fmap.geom.handler.Handler; |
53 | 54 |
import org.gvsig.fmap.geom.type.GeometryType; |
54 | 55 |
|
... | ... | |
61 | 62 |
private static final long serialVersionUID = 1L; |
62 | 63 |
|
63 | 64 |
private static GeometryType geomType = GeometryLocator.getGeometryManager() |
64 |
.registerGeometryType(NullGeometry.class,null,TYPES.NULL);
|
|
65 |
.registerGeometryType(NullGeometry.class, null, TYPES.NULL, SUBTYPES.GEOM2D);
|
|
65 | 66 |
|
66 |
public static int CODE = geomType.getType(); |
|
67 |
//public static int CODE = geomType.getType();
|
|
67 | 68 |
|
68 | 69 |
|
69 | 70 |
public NullGeometry() { |
... | ... | |
215 | 216 |
} |
216 | 217 |
|
217 | 218 |
public int getType() { |
218 |
return CODE;
|
|
219 |
return TYPES.NULL;
|
|
219 | 220 |
} |
220 | 221 |
|
221 | 222 |
public Envelope getEnvelope() { |
Also available in: Unified diff