root / trunk / libraries / libFMap / src / com / iver / cit / gvsig / fmap / core / FGeometryM.java @ 25515
History | View | Annotate | Download (2.69 KB)
1 |
package com.iver.cit.gvsig.fmap.core; |
---|---|
2 |
|
3 |
import com.vividsolutions.jts.geom.Geometry; |
4 |
|
5 |
|
6 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
7 |
*
|
8 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
|
9 |
*
|
10 |
* This program is free software; you can redistribute it and/or
|
11 |
* modify it under the terms of the GNU General Public License
|
12 |
* as published by the Free Software Foundation; either version 2
|
13 |
* of the License, or (at your option) any later version.
|
14 |
*
|
15 |
* This program is distributed in the hope that it will be useful,
|
16 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
17 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
18 |
* GNU General Public License for more details.
|
19 |
*
|
20 |
* You should have received a copy of the GNU General Public License
|
21 |
* along with this program; if not, write to the Free Software
|
22 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
23 |
*
|
24 |
* For more information, contact:
|
25 |
*
|
26 |
* Generalitat Valenciana
|
27 |
* Conselleria d'Infraestructures i Transport
|
28 |
* Av. Blasco Ib??ez, 50
|
29 |
* 46010 VALENCIA
|
30 |
* SPAIN
|
31 |
*
|
32 |
* +34 963862235
|
33 |
* gvsig@gva.es
|
34 |
* www.gvsig.gva.es
|
35 |
*
|
36 |
* or
|
37 |
*
|
38 |
* IVER T.I. S.A
|
39 |
* Salamanca 50
|
40 |
* 46005 Valencia
|
41 |
* Spain
|
42 |
*
|
43 |
* +34 963163400
|
44 |
* dac@iver.es
|
45 |
*/
|
46 |
/* CVS MESSAGES:
|
47 |
*
|
48 |
* $Id: FGeometryM.java,v 1.1 2007/10/19 10:03:45 jorpiell Exp $
|
49 |
* $Log: FGeometryM.java,v $
|
50 |
* Revision 1.1 2007/10/19 10:03:45 jorpiell
|
51 |
* First commit
|
52 |
*
|
53 |
*
|
54 |
*/
|
55 |
/**
|
56 |
* A Geometry with the M coordinate. It contains an FshapeM
|
57 |
* that is the object that contains the geometric position.
|
58 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es)
|
59 |
*/
|
60 |
public class FGeometryM extends FGeometry implements IGeometryM { |
61 |
private static final long serialVersionUID = -7259723180192528478L; |
62 |
|
63 |
FGeometryM(FShapeM shp) { |
64 |
super(shp);
|
65 |
} |
66 |
|
67 |
/*
|
68 |
* (non-Javadoc)
|
69 |
* @see com.iver.gvsig.roads.fmap.core.IGeometryDS#getMs()
|
70 |
*/
|
71 |
public double[] getMs() { |
72 |
return ((FShapeM)getInternalShape()).getMs();
|
73 |
} |
74 |
|
75 |
/*
|
76 |
* (non-Javadoc)
|
77 |
* @see com.iver.cit.gvsig.fmap.core.IGeometryM#setMAt(int, double)
|
78 |
*/
|
79 |
public void setMAt(int i, double value) { |
80 |
((FShapeM)getInternalShape()).setMAt(i, value); |
81 |
} |
82 |
|
83 |
public boolean isDecreasing() { |
84 |
return ((FShapeM)getInternalShape()).isDecreasing();
|
85 |
} |
86 |
|
87 |
/*
|
88 |
* (non-Javadoc)
|
89 |
* @see com.iver.cit.gvsig.fmap.core.IGeometryM#revertMs()
|
90 |
*/
|
91 |
public void revertMs() { |
92 |
((FShapeM)getInternalShape()).revertMs(); |
93 |
} |
94 |
|
95 |
/* (non-Javadoc)
|
96 |
* @see com.iver.cit.gvsig.fmap.core.FGeometry#toJTSGeometry()
|
97 |
*/
|
98 |
public Geometry toJTSGeometry() {
|
99 |
// TODO Auto-generated method stub
|
100 |
return super.toJTSGeometry(); |
101 |
} |
102 |
|
103 |
public String toText() { |
104 |
return ((FShapeM)getInternalShape()).toText();
|
105 |
} |
106 |
|
107 |
} |