Revision 484 org.gvsig.gpe/library/trunk/org.gvsig.gpe/org.gvsig.gpe.lib/org.gvsig.gpe.lib.api/src/main/java/org/gvsig/gpe/lib/api/parser/IGPEContentHandlerInmGeom.java
IGPEContentHandlerInmGeom.java | ||
---|---|---|
59 | 59 |
* @author Carlos Snchez Perin (sanchez_carper@gva.es) |
60 | 60 |
*/ |
61 | 61 |
public interface IGPEContentHandlerInmGeom extends IGPEContentHandlerSFP0{ |
62 |
|
|
62 |
|
|
63 | 63 |
/** |
64 |
* This method is thrown when the parser find a new
|
|
64 |
* This method is thrown when the parser find a new |
|
65 | 65 |
* bounding box. |
66 | 66 |
* @param id |
67 | 67 |
* Bounding box identifier |
... | ... | |
74 | 74 |
* a bounding box |
75 | 75 |
*/ |
76 | 76 |
public Object startBbox(String id, ICoordinateIterator coords, String srs); |
77 |
|
|
77 |
|
|
78 | 78 |
/** |
79 | 79 |
* This method indicates that the parser thas finished to |
80 | 80 |
* parse the bounding box. |
... | ... | |
83 | 83 |
* bounding box |
84 | 84 |
*/ |
85 | 85 |
public void endBbox(Object bbox); |
86 |
|
|
86 |
|
|
87 | 87 |
/** |
88 | 88 |
* It is thrown every time that a new layer is detected. |
89 | 89 |
* @param id |
... | ... | |
105 | 105 |
* @return |
106 | 106 |
* The consumer application object that represents a layer |
107 | 107 |
*/ |
108 |
public Object startLayer(String id, String namespace, String name, String description,
|
|
108 |
public Object startLayer(String id, String namespace, String name, String description, |
|
109 | 109 |
String srs, IAttributesIterator attributes, Object parentLayer, Object bBox); |
110 | 110 |
|
111 | 111 |
/** |
... | ... | |
114 | 114 |
* The consumer application object that represents a layer |
115 | 115 |
*/ |
116 | 116 |
public void endLayer(Object layer); |
117 |
|
|
117 |
|
|
118 | 118 |
/** |
119 |
* It adds a name to one layer that has been previously
|
|
119 |
* It adds a name to one layer that has been previously |
|
120 | 120 |
* created using the startLayer method. |
121 | 121 |
* @param name |
122 | 122 |
* Layer name |
... | ... | |
124 | 124 |
* The consumer application object that represents a layer |
125 | 125 |
*/ |
126 | 126 |
public void addNameToLayer(String name, Object layer); |
127 |
|
|
127 |
|
|
128 | 128 |
/** |
129 |
* It adds the description to one layer that has been previously
|
|
129 |
* It adds the description to one layer that has been previously |
|
130 | 130 |
* created using the startLayer method. |
131 | 131 |
* @param description |
132 | 132 |
* Layer description |
... | ... | |
134 | 134 |
* The consumer application object that represents a layer |
135 | 135 |
*/ |
136 | 136 |
public void addDescriptionToLayer(String description, Object layer); |
137 |
|
|
137 |
|
|
138 | 138 |
/** |
139 |
* It adds a spatial reference system to one layer that
|
|
139 |
* It adds a spatial reference system to one layer that |
|
140 | 140 |
* has been previously created using the startLayer method. |
141 | 141 |
* @param srs |
142 | 142 |
* Spatial reference system |
... | ... | |
144 | 144 |
* The consumer application object that represents a layer |
145 | 145 |
*/ |
146 | 146 |
public void addSrsToLayer(String srs, Object Layer); |
147 |
|
|
147 |
|
|
148 | 148 |
/** |
149 | 149 |
* It establish the relationship parent-child between two layers |
150 | 150 |
* that have been previously created using the startLayer method. |
... | ... | |
154 | 154 |
* The consumer application object that represents the child layer |
155 | 155 |
*/ |
156 | 156 |
public void addParentLayerToLayer(Object parent, Object layer); |
157 |
|
|
157 |
|
|
158 | 158 |
/** |
159 |
* It adds a bounding box to one layer that has been previously
|
|
159 |
* It adds a bounding box to one layer that has been previously |
|
160 | 160 |
* created using the startLayer method. |
161 | 161 |
* @param bbox |
162 | 162 |
* Layer bounding box |
... | ... | |
164 | 164 |
* The consumer application object that represents a layer |
165 | 165 |
*/ |
166 | 166 |
public void addBboxToLayer(Object bbox, Object layer); |
167 |
|
|
167 |
|
|
168 | 168 |
/** |
169 | 169 |
* It is thrown when the parser has found a new feature. |
170 | 170 |
* @param id |
... | ... | |
181 | 181 |
* Consumer application object that represents a feature |
182 | 182 |
*/ |
183 | 183 |
public Object startFeature(String id, String namespace, String name, IAttributesIterator attributes, Object layer); |
184 |
|
|
184 |
|
|
185 | 185 |
/** |
186 | 186 |
* This method is thrown when the parser has finished to |
187 | 187 |
* parse a feature. |
... | ... | |
189 | 189 |
* Consumer application object that represents a feature |
190 | 190 |
*/ |
191 | 191 |
public void endFeature(Object feature); |
192 |
|
|
192 |
|
|
193 | 193 |
/** |
194 | 194 |
* This method adds a name to one layer that has been |
195 |
* previously created using the startFeature method.
|
|
195 |
* previously created using the startFeature method. |
|
196 | 196 |
* @param name |
197 | 197 |
* Feature name |
198 | 198 |
* @param feature |
199 | 199 |
* Consumer application object that represents a feature |
200 | 200 |
*/ |
201 |
public void addNameToFeature(String name, Object feature);
|
|
201 |
public void addNameToFeature(String name, Object feature); |
|
202 | 202 |
|
203 | 203 |
/** |
204 |
* This method adds a feature to one layer that has been
|
|
205 |
* previously created using the startLayer method.
|
|
204 |
* This method adds a feature to one layer that has been |
|
205 |
* previously created using the startLayer method. |
|
206 | 206 |
* @param feature |
207 | 207 |
* Consumer application object that represents a feature |
208 | 208 |
* @param layer |
209 | 209 |
* Consumer application object that represents a layer |
210 | 210 |
*/ |
211 | 211 |
public void addFeatureToLayer(Object feature, Object layer); |
212 |
|
|
212 |
|
|
213 | 213 |
/** |
214 | 214 |
* It is thrown when the parser has found a new element |
215 | 215 |
* @param namespace |
... | ... | |
223 | 223 |
* @param parentElement |
224 | 224 |
* The parent of this element (if exists) |
225 | 225 |
* @return |
226 |
* Consumer application object that represents an element
|
|
226 |
* Consumer application object that represents an element |
|
227 | 227 |
*/ |
228 | 228 |
public Object startElement(String namespace, String name, Object value, |
229 | 229 |
IAttributesIterator attributes, Object parentElement); |
230 |
|
|
230 |
|
|
231 | 231 |
/** |
232 |
* This method is thrown when the parser find the end
|
|
232 |
* This method is thrown when the parser find the end |
|
233 | 233 |
* of an element. |
234 | 234 |
* @param element |
235 |
* Consumer application object that represents an element
|
|
235 |
* Consumer application object that represents an element |
|
236 | 236 |
*/ |
237 | 237 |
public void endElement(Object element); |
238 |
|
|
238 |
|
|
239 | 239 |
/** |
240 | 240 |
* It is thrown to establish a relationship parent-child |
241 | 241 |
* between two elements. |
242 | 242 |
* @param parent |
243 |
* Consumer application object that represents the parent element
|
|
243 |
* Consumer application object that represents the parent element |
|
244 | 244 |
* @param element |
245 |
* Consumer application object that represents the child element
|
|
245 |
* Consumer application object that represents the child element |
|
246 | 246 |
*/ |
247 | 247 |
public void addParentElementToElement(Object parent, Object element); |
248 |
|
|
248 |
|
|
249 | 249 |
/** |
250 |
* This method adds an element to one feature that has been
|
|
250 |
* This method adds an element to one feature that has been |
|
251 | 251 |
* previously created using the startFeature method |
252 | 252 |
* @param element |
253 |
* Consumer application object that represents an element
|
|
253 |
* Consumer application object that represents an element |
|
254 | 254 |
* @param feature |
255 |
* Consumer application object that represents the feature
|
|
255 |
* Consumer application object that represents the feature |
|
256 | 256 |
*/ |
257 | 257 |
public void addElementToFeature(Object element, Object feature); |
258 |
|
|
258 |
|
|
259 | 259 |
/** |
260 |
* This method indicates that the parser has found a point.
|
|
260 |
* This method indicates that the parser has found a point. |
|
261 | 261 |
* @param id |
262 | 262 |
* Point identifier |
263 | 263 |
* @param coords |
... | ... | |
265 | 265 |
* @param srs |
266 | 266 |
* Spatial reference system |
267 | 267 |
* @return |
268 |
* Consumer application object that represents a point
|
|
268 |
* Consumer application object that represents a point |
|
269 | 269 |
*/ |
270 | 270 |
public Object startPoint(String id, ICoordinateIterator coords, String srs); |
271 |
|
|
271 |
|
|
272 | 272 |
/** |
273 | 273 |
* It is thrown when the point has been completely parsed. |
274 | 274 |
* @param point |
275 |
* Consumer application object that represents a point
|
|
275 |
* Consumer application object that represents a point |
|
276 | 276 |
*/ |
277 | 277 |
public void endPoint(Object point); |
278 |
|
|
278 |
|
|
279 | 279 |
/** |
280 |
* This method indicates that the parser has found a lineString.
|
|
280 |
* This method indicates that the parser has found a lineString. |
|
281 | 281 |
* @param id |
282 | 282 |
* LineString identifier |
283 | 283 |
* @param coords |
... | ... | |
285 | 285 |
* @param srs |
286 | 286 |
* Spatial reference system |
287 | 287 |
* @return |
288 |
* Consumer application object that represents a lineString
|
|
288 |
* Consumer application object that represents a lineString |
|
289 | 289 |
*/ |
290 | 290 |
public Object startLineString( String id, ICoordinateIterator coords, String srs); |
291 |
|
|
291 |
|
|
292 | 292 |
/** |
293 | 293 |
* It is thrown when the lineString has been completely parsed. |
294 | 294 |
* @param lineString |
295 |
* Consumer application object that represents a lineString
|
|
295 |
* Consumer application object that represents a lineString |
|
296 | 296 |
*/ |
297 | 297 |
public void endLineString(Object lineString); |
298 |
|
|
298 |
|
|
299 | 299 |
/** |
300 |
* This method indicates that the parser has found a linearRing.
|
|
300 |
* This method indicates that the parser has found a linearRing. |
|
301 | 301 |
* @param id |
302 | 302 |
* LinearRing identifier |
303 | 303 |
* @param coords |
... | ... | |
305 | 305 |
* @param srs |
306 | 306 |
* Spatial reference system |
307 | 307 |
* @return |
308 |
* Consumer application object that represents a linarRing
|
|
308 |
* Consumer application object that represents a linarRing |
|
309 | 309 |
*/ |
310 | 310 |
public Object startLinearRing(String id, ICoordinateIterator coords, String srs); |
311 |
|
|
311 |
|
|
312 | 312 |
/** |
313 | 313 |
* It is thrown when the linearRing has been completely parsed. |
314 | 314 |
* @param linearRing |
315 |
* Consumer application object that represents a linearRing
|
|
315 |
* Consumer application object that represents a linearRing |
|
316 | 316 |
*/ |
317 | 317 |
public void endLinearRing(Object linearRing); |
318 |
|
|
318 |
|
|
319 | 319 |
/** |
320 |
* This method indicates that the parser has found a polygon.
|
|
320 |
* This method indicates that the parser has found a polygon. |
|
321 | 321 |
* @param id |
322 | 322 |
* Polygon identifier |
323 | 323 |
* @param coords |
... | ... | |
325 | 325 |
* @param srs |
326 | 326 |
* Spatial reference system |
327 | 327 |
* @return |
328 |
* Consumer application object that represents a polygon
|
|
328 |
* Consumer application object that represents a polygon |
|
329 | 329 |
*/ |
330 | 330 |
public Object startPolygon(String id, ICoordinateIterator coords, String srs); |
331 |
|
|
331 |
|
|
332 | 332 |
/** |
333 | 333 |
* It is thrown when the polygon has been completely parsed. |
334 | 334 |
* @param polygon |
335 |
* Consumer application object that represents a polygon
|
|
335 |
* Consumer application object that represents a polygon |
|
336 | 336 |
* As a polygon can have holes, when instantiating an inmutable polygon is needed to know the outerBoundary and the holes, the instantiating takes place here |
337 | 337 |
*/ |
338 |
public Object endPolygon(Object polygon);
|
|
339 |
|
|
338 |
public Object endPolygon(Object polygon); |
|
339 |
|
|
340 | 340 |
/** |
341 | 341 |
* This method associates a innerPolygon with its polygon |
342 | 342 |
* @param innerPolygon |
343 |
* Consumer application object that represents a innerPolygon
|
|
343 |
* Consumer application object that represents a innerPolygon |
|
344 | 344 |
* @param Polygon |
345 |
* Consumer application object that represents a polygon
|
|
345 |
* Consumer application object that represents a polygon |
|
346 | 346 |
*/ |
347 | 347 |
public void addInnerPolygonToPolygon(Object innerPolygon, Object Polygon); |
348 |
|
|
348 |
|
|
349 | 349 |
/** |
350 |
* This method indicates that the parser has found a InnerPolygon.
|
|
350 |
* This method indicates that the parser has found a InnerPolygon. |
|
351 | 351 |
* @param id |
352 | 352 |
* InnerPolygon identifier |
353 | 353 |
* @param coords |
... | ... | |
355 | 355 |
* @param srs |
356 | 356 |
* Spatial reference system |
357 | 357 |
* @return |
358 |
* Consumer application object that represents a innerPolygon
|
|
358 |
* Consumer application object that represents a innerPolygon |
|
359 | 359 |
*/ |
360 | 360 |
public Object startInnerPolygon(String id, ICoordinateIterator coords, String srs); |
361 |
|
|
361 |
|
|
362 | 362 |
/** |
363 | 363 |
* It is thrown when the innerPolygon has been completely parsed. |
364 | 364 |
* @param innerPolygon |
365 |
* Consumer application object that represents a innerPolygon
|
|
365 |
* Consumer application object that represents a innerPolygon |
|
366 | 366 |
*/ |
367 | 367 |
public void endInnerPolygon(Object innerPolygon); |
368 |
|
|
368 |
|
|
369 | 369 |
/** |
370 |
* This method indicates that the parser has found a multipoint.
|
|
370 |
* This method indicates that the parser has found a multipoint. |
|
371 | 371 |
* @param id |
372 | 372 |
* MultiPoint identifier |
373 | 373 |
* @param srs |
374 | 374 |
* Spatial reference system |
375 | 375 |
* @return |
376 |
* Consumer application object that represents a multiPoint
|
|
376 |
* Consumer application object that represents a multiPoint |
|
377 | 377 |
*/ |
378 | 378 |
public Object startMultiPoint(String id, String srs); |
379 |
|
|
379 |
public Object startMultiPoint(String id, String srs, int dimension); |
|
380 |
|
|
380 | 381 |
/** |
381 | 382 |
* It is thrown when the multiPoint has been completely parsed |
382 | 383 |
* @param multiPoint |
383 | 384 |
* Consumer application object that represents a multiPoint |
384 | 385 |
*/ |
385 | 386 |
public Object endMultiPoint(Object multiPoint); |
386 |
|
|
387 |
|
|
387 | 388 |
/** |
388 | 389 |
* It is thrown to add a point to one multiPoint. |
389 | 390 |
* @param point |
... | ... | |
392 | 393 |
* Consumer application object that represents a multiPoint |
393 | 394 |
*/ |
394 | 395 |
public void addPointToMultiPoint(Object point,Object multiPoint); |
395 |
|
|
396 |
|
|
396 | 397 |
/** |
397 |
* This method indicates that the parser has found a multiLineString.
|
|
398 |
* This method indicates that the parser has found a multiLineString. |
|
398 | 399 |
* @param id |
399 | 400 |
* MultiLineString identifier |
400 | 401 |
* @param srs |
401 | 402 |
* Spatial reference system |
402 | 403 |
* @return |
403 |
* Consumer application object that represents a multiLineString
|
|
404 |
* Consumer application object that represents a multiLineString |
|
404 | 405 |
*/ |
405 | 406 |
public Object startMultiLineString(String id, String srs); |
406 |
|
|
407 |
public Object startMultiLineString(String id, String srs, int dimension); |
|
408 |
|
|
407 | 409 |
/** |
408 | 410 |
* It is thrown when the multiLineString has been completely parsed |
409 | 411 |
* @param multiLineString |
410 | 412 |
* Consumer application object that represents a multiLineString |
411 | 413 |
*/ |
412 |
public Object endMultiLineString(Object multiLineString);
|
|
413 |
|
|
414 |
public Object endMultiLineString(Object multiLineString); |
|
415 |
|
|
414 | 416 |
/** |
415 | 417 |
* It is thrown to add a lineString to one lineString. |
416 | 418 |
* @param lineString |
... | ... | |
419 | 421 |
* Consumer application object that represents a multiLineString |
420 | 422 |
*/ |
421 | 423 |
public void addLineStringToMultiLineString(Object lineString,Object multiLineString); |
422 |
|
|
424 |
|
|
423 | 425 |
/** |
424 |
* This method indicates that the parser has found a multiPolygon.
|
|
426 |
* This method indicates that the parser has found a multiPolygon. |
|
425 | 427 |
* @param id |
426 | 428 |
* MultiPolygon identifier |
427 | 429 |
* @param srs |
428 | 430 |
* Spatial reference system |
429 | 431 |
* @return |
430 |
* Consumer application object that represents a multiPolygon
|
|
432 |
* Consumer application object that represents a multiPolygon |
|
431 | 433 |
*/ |
432 | 434 |
public Object startMultiPolygon(String id, String srs); |
433 |
|
|
435 |
public Object startMultiPolygon(String id, String srs, int dimension); |
|
436 |
|
|
434 | 437 |
/** |
435 | 438 |
* It is thrown when the multiPolygon has been completely parsed |
436 | 439 |
* @param multiPolygon |
437 | 440 |
* Consumer application object that represents a multiPolygon |
438 | 441 |
*/ |
439 | 442 |
public Object endMultiPolygon(Object multiPolygon); |
440 |
|
|
443 |
|
|
441 | 444 |
/** |
442 | 445 |
* It is thrown to add a polygon to one multiPolygon. |
443 | 446 |
* @param polygon |
... | ... | |
446 | 449 |
* Consumer application object that represents a multiPolygon |
447 | 450 |
*/ |
448 | 451 |
public void addPolygonToMultiPolygon(Object polygon,Object multiPolygon); |
449 |
|
|
452 |
|
|
450 | 453 |
/** |
451 |
* This method indicates that the parser has found a multiGeometry.
|
|
454 |
* This method indicates that the parser has found a multiGeometry. |
|
452 | 455 |
* @param id |
453 | 456 |
* MultiGeometry identifier |
454 | 457 |
* @param srs |
... | ... | |
457 | 460 |
* Consumer application object that represents a multiGeometry |
458 | 461 |
*/ |
459 | 462 |
public Object startMultiGeometry(String id, String srs); |
460 |
|
|
463 |
|
|
461 | 464 |
/** |
462 | 465 |
* It is thrown when the multiGeometry has been completely parsed |
463 | 466 |
* @param multiGeometry |
464 | 467 |
* Consumer application object that represents a multiGeometry |
465 | 468 |
*/ |
466 | 469 |
public Object endMultiGeometry(Object multiGeometry); |
467 |
|
|
470 |
|
|
468 | 471 |
/** |
469 | 472 |
* It is thrown to add a geometry to one multiGeometry. |
470 | 473 |
* @param geometry |
... | ... | |
473 | 476 |
* Consumer application object that represents a multiGeometry |
474 | 477 |
*/ |
475 | 478 |
public void addGeometryToMultiGeometry(Object geometry,Object multiGeometry); |
476 |
|
|
479 |
|
|
477 | 480 |
/** |
478 | 481 |
* This method adds a bounding box to a feature. |
479 | 482 |
* @param bbox |
... | ... | |
483 | 486 |
* Consumer application object that represents a feature |
484 | 487 |
*/ |
485 | 488 |
public void addBboxToFeature(Object bbox, Object feature); |
486 |
|
|
489 |
|
|
487 | 490 |
/** |
488 |
* This method adds a geometry to a feature.
|
|
491 |
* This method adds a geometry to a feature. |
|
489 | 492 |
* @param geometry |
490 | 493 |
* Consumer application object that represents a geometry |
491 | 494 |
* @param feature |
492 | 495 |
* Consumer application object that represents a feature |
493 | 496 |
*/ |
494 | 497 |
public void addGeometryToFeature(Object geometry, Object feature); |
495 |
|
|
498 |
|
|
496 | 499 |
/** |
497 | 500 |
* It is thrown when the parser has found a new metadata tag |
498 | 501 |
* @param type |
499 | 502 |
* String with the type of metadata, if is a description or any else |
500 | 503 |
* @param data |
501 | 504 |
* String with the value of the data. |
502 |
* @param attributes
|
|
505 |
* @param attributes |
|
503 | 506 |
* Object to pass the Atributtes |
504 | 507 |
* @return |
505 |
* Consumer application object that represents metadata
|
|
508 |
* Consumer application object that represents metadata |
|
506 | 509 |
*/ |
507 | 510 |
public Object startMetadata(String type, String data, IAttributesIterator attributes); |
508 |
|
|
511 |
|
|
509 | 512 |
/** |
510 |
* This method adds metadata to feature.
|
|
513 |
* This method adds metadata to feature. |
|
511 | 514 |
* @param metadata |
512 | 515 |
* Consumer application object that represents metadata |
513 | 516 |
* @param feature |
514 | 517 |
* Consumer application object that represents a feature |
515 | 518 |
*/ |
516 | 519 |
public void addMetadataToFeature(Object metadata, Object feature); |
517 |
|
|
520 |
|
|
518 | 521 |
/** |
519 |
* This method adds metadata to complex metadata.
|
|
522 |
* This method adds metadata to complex metadata. |
|
520 | 523 |
* @param metadata |
521 | 524 |
* Consumer application object that represents metadata |
522 | 525 |
* @param parent |
523 | 526 |
* Consumer application object that represents the complex metadata |
524 | 527 |
*/ |
525 | 528 |
public void addMetadataToMetadata(Object metadata, Object parent); |
526 |
|
|
529 |
|
|
527 | 530 |
/** |
528 | 531 |
* This method is thrown when the parser find the end of the metadata |
529 | 532 |
* of an element. |
530 | 533 |
* @param metadata |
531 |
* Consumer application object that represents metadata
|
|
534 |
* Consumer application object that represents metadata |
|
532 | 535 |
*/ |
533 | 536 |
public void endMetadata(Object metadata); |
534 |
|
|
537 |
|
|
535 | 538 |
/** |
536 | 539 |
* This method is thrown when the parser find the end of and element time tag |
537 | 540 |
* @param time |
538 |
* Consumer application object that represents time
|
|
541 |
* Consumer application object that represents time |
|
539 | 542 |
*/ |
540 | 543 |
public void endTime(Object time); |
541 |
|
|
544 |
|
|
542 | 545 |
/** |
543 | 546 |
* It is thrown when the parser has found a new time tag tag |
544 | 547 |
* @param type |
... | ... | |
550 | 553 |
*/ |
551 | 554 |
public Object startTime(String name, String description, String type, String time, Object previous, Object next); |
552 | 555 |
public Object startTime(String type, String time); |
553 |
|
|
556 |
|
|
554 | 557 |
/** |
555 |
* This method adds time to feature.
|
|
558 |
* This method adds time to feature. |
|
556 | 559 |
* @param time |
557 | 560 |
* Consumer application object that represents time |
558 | 561 |
* @param feature |
Also available in: Unified diff