root / branches / Mobile1.0 / org.gvsig.gpe / src-test / org / gvsig / gpe / containers / Geometry.java @ 79
History | View | Annotate | Download (2.82 KB)
1 |
package org.gvsig.gpe.containers; |
---|---|
2 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
3 |
*
|
4 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
|
5 |
*
|
6 |
* This program is free software; you can redistribute it and/or
|
7 |
* modify it under the terms of the GNU General Public License
|
8 |
* as published by the Free Software Foundation; either version 2
|
9 |
* of the License, or (at your option) any later version.
|
10 |
*
|
11 |
* This program is distributed in the hope that it will be useful,
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 |
* GNU General Public License for more details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License
|
17 |
* along with this program; if not, write to the Free Software
|
18 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
19 |
*
|
20 |
* For more information, contact:
|
21 |
*
|
22 |
* Generalitat Valenciana
|
23 |
* Conselleria d'Infraestructures i Transport
|
24 |
* Av. Blasco Ib??ez, 50
|
25 |
* 46010 VALENCIA
|
26 |
* SPAIN
|
27 |
*
|
28 |
* +34 963862235
|
29 |
* gvsig@gva.es
|
30 |
* www.gvsig.gva.es
|
31 |
*
|
32 |
* or
|
33 |
*
|
34 |
* IVER T.I. S.A
|
35 |
* Salamanca 50
|
36 |
* 46005 Valencia
|
37 |
* Spain
|
38 |
*
|
39 |
* +34 963163400
|
40 |
* dac@iver.es
|
41 |
*/
|
42 |
/* CVS MESSAGES:
|
43 |
*
|
44 |
* $Id: Geometry.java 180 2007-11-21 11:19:46Z csanchez $
|
45 |
* $Log$
|
46 |
* Revision 1.3 2007/05/09 10:25:45 jorpiell
|
47 |
* Add the multiGeometries
|
48 |
*
|
49 |
* Revision 1.2 2007/04/19 07:23:20 jorpiell
|
50 |
* Add the add methods to teh contenhandler and change the register mode
|
51 |
*
|
52 |
* Revision 1.1 2007/04/14 16:06:35 jorpiell
|
53 |
* Add the container classes
|
54 |
*
|
55 |
*
|
56 |
*/
|
57 |
/**
|
58 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es)
|
59 |
*/
|
60 |
public class Geometry { |
61 |
private String id = null; |
62 |
private Bbox bbox = null; |
63 |
private String srs = null; |
64 |
private int dimension = 0; |
65 |
|
66 |
|
67 |
/**
|
68 |
* Constructor
|
69 |
*/
|
70 |
public Geometry(String id, String srs, int dimension) { |
71 |
super();
|
72 |
this.id = id;
|
73 |
this.srs = srs;
|
74 |
this.dimension = dimension;
|
75 |
} |
76 |
|
77 |
/**
|
78 |
* @return the srs
|
79 |
*/
|
80 |
public String getSrs() { |
81 |
return srs;
|
82 |
} |
83 |
|
84 |
/**
|
85 |
* @param srs the srs to set
|
86 |
*/
|
87 |
public void setSrs(String srs) { |
88 |
this.srs = srs;
|
89 |
} |
90 |
|
91 |
/**
|
92 |
* @return the bbox
|
93 |
*/
|
94 |
public Bbox getBbox() {
|
95 |
return bbox;
|
96 |
} |
97 |
|
98 |
/**
|
99 |
* @param bbox the bbox to set
|
100 |
*/
|
101 |
public void setBbox(Bbox bbox) { |
102 |
this.bbox = bbox;
|
103 |
} |
104 |
|
105 |
/**
|
106 |
* @param bbox the bbox to set
|
107 |
*/
|
108 |
public void setBbox(Object bbox) { |
109 |
if (bbox instanceof Bbox){ |
110 |
this.bbox = (Bbox)bbox;
|
111 |
} |
112 |
} |
113 |
|
114 |
/**
|
115 |
* @return the id
|
116 |
*/
|
117 |
public String getId() { |
118 |
return id;
|
119 |
} |
120 |
|
121 |
/**
|
122 |
* @param id the id to set
|
123 |
*/
|
124 |
public void setId(String id) { |
125 |
this.id = id;
|
126 |
} |
127 |
|
128 |
public Geometry() {
|
129 |
super();
|
130 |
} |
131 |
|
132 |
/**
|
133 |
* @return the dimension
|
134 |
*/
|
135 |
public int getDimension() { |
136 |
return dimension;
|
137 |
} |
138 |
|
139 |
/**
|
140 |
* @param dimension the dimension to set
|
141 |
*/
|
142 |
public void setDimension(int dimension) { |
143 |
this.dimension = dimension;
|
144 |
} |
145 |
|
146 |
} |