Commit e55d47b93d3b37b8e6a5496bde8f2953773814f1

Authored by Aníbal Pacheco
1 parent ea3207dc26
Exists in master

Impacto de la ultima actualización del modelo conceptual sobre el esquema y sus …

…ejemplos, auto formato de eclipse con un wrap más largo

Showing 2 changed files with 69 additions and 95 deletions Side-by-side Diff

direccionesV01p01.xsd View file @ e55d47b
1 1 <?xml version="1.0" encoding="UTF-8"?>
2 2  
3   -<schema targetNamespace="http://metadatos.pge.red.uy/agesic/datos/direccionesV01p01.xsd"
4   - elementFormDefault="qualified" attributeFormDefault="qualified"
5   - xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://metadatos.pge.red.uy/agesic/datos/direccionesV01p01.xsd"
  3 +<schema targetNamespace="http://metadatos.pge.red.uy/agesic/datos/direccionesV01p01.xsd" elementFormDefault="qualified"
  4 + attributeFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://metadatos.pge.red.uy/agesic/datos/direccionesV01p01.xsd"
6 5 xmlns:gml="http://www.opengis.net/gml" xmlns:paises="http://metadatos.pge.red.uy/agesic/datos/paisesV01p01.xsd"
7 6 xmlns:departamentos="http://metadatos.pge.red.uy/agesic/datos/departamentosV01p01.xsd">
8 7  
... ... @@ -14,7 +13,7 @@
14 13 Version: 1.0
15 14 Fecha: 20120409
16 15 Descripción: Formato de Intercambio para direcciones del Modelo de
17   - Direcciones
  16 + Direcciones
18 17  
19 18 Derechos de Propiedad:
20 19  
21 20  
22 21  
... ... @@ -29,29 +28,22 @@
29 28 </documentation>
30 29 </annotation>
31 30  
32   - <import
33   - schemaLocation="http://schemas.opengis.net/gml/3.1.1/base/geometryBasic0d1d.xsd"
34   - namespace="http://www.opengis.net/gml" />
35   - <import schemaLocation="http://schemas.opengis.net/gml/3.1.1/base/geometryBasic2d.xsd"
36   - namespace="http://www.opengis.net/gml" />
37   - <import schemaLocation="paisesV01p01.xsd"
38   - namespace="http://metadatos.pge.red.uy/agesic/datos/paisesV01p01.xsd" />
39   - <import schemaLocation="departamentosV01p01.xsd"
40   - namespace="http://metadatos.pge.red.uy/agesic/datos/departamentosV01p01.xsd" />
  31 + <import schemaLocation="http://schemas.opengis.net/gml/3.1.1/base/geometryBasic0d1d.xsd" namespace="http://www.opengis.net/gml" />
  32 + <import schemaLocation="http://schemas.opengis.net/gml/3.1.1/base/geometryBasic2d.xsd" namespace="http://www.opengis.net/gml" />
  33 + <import schemaLocation="paisesV01p01.xsd" namespace="http://metadatos.pge.red.uy/agesic/datos/paisesV01p01.xsd" />
  34 + <import schemaLocation="departamentosV01p01.xsd" namespace="http://metadatos.pge.red.uy/agesic/datos/departamentosV01p01.xsd" />
41 35  
42 36 <element name="Direcciones" type="tns:DireccionList" />
43 37  
44 38 <complexType name="DireccionList">
45 39 <sequence>
46   - <element maxOccurs="unbounded" minOccurs="0" name="Direccion"
47   - type="tns:TipoDireccion" />
  40 + <element maxOccurs="unbounded" minOccurs="0" name="Direccion" type="tns:TipoDireccion" />
48 41 </sequence>
49 42 </complexType>
50 43  
51 44 <complexType name="Pais">
52 45 <sequence>
53   - <element maxOccurs="1" minOccurs="1" name="codigo"
54   - type="paises:ISOCountryCode" />
  46 + <element maxOccurs="1" minOccurs="1" name="codigo" type="paises:ISOCountryCode" />
55 47 <element maxOccurs="1" minOccurs="0" name="nombre" type="string" />
56 48 <element maxOccurs="1" minOccurs="0" name="geometria">
57 49 <complexType>
... ... @@ -65,8 +57,7 @@
65 57  
66 58 <complexType name="Departamento">
67 59 <sequence>
68   - <element minOccurs="1" maxOccurs="1" name="codigo"
69   - type="departamentos:CodigoDepartamentoLC" />
  60 + <element minOccurs="1" maxOccurs="1" name="codigo" type="departamentos:CodigoDepartamentoLC" />
70 61 <element maxOccurs="1" minOccurs="1" name="pais" type="tns:Pais" />
71 62 <element maxOccurs="1" minOccurs="0" name="nombre" type="string" />
72 63 <element maxOccurs="1" minOccurs="0" name="geometria">
... ... @@ -160,8 +151,7 @@
160 151 <complexType name="Municipio">
161 152 <sequence>
162 153 <element maxOccurs="1" minOccurs="1" name="codigo" type="tns:Alfa-2" />
163   - <element maxOccurs="1" minOccurs="1" name="departamento"
164   - type="tns:Departamento" />
  154 + <element maxOccurs="1" minOccurs="1" name="departamento" type="tns:Departamento" />
165 155 <element maxOccurs="1" minOccurs="0" name="nombre" type="string" />
166 156 </sequence>
167 157 </complexType>
168 158  
... ... @@ -169,11 +159,9 @@
169 159 <complexType name="Localidad">
170 160 <sequence>
171 161 <element maxOccurs="1" minOccurs="1" name="codigo" type="tns:Alfa-3" />
172   - <element maxOccurs="1" minOccurs="1" name="departamento"
173   - type="tns:Departamento" />
  162 + <element maxOccurs="1" minOccurs="1" name="departamento" type="tns:Departamento" />
174 163 <element maxOccurs="1" minOccurs="0" name="nombre" type="string" />
175   - <element maxOccurs="unbounded" minOccurs="0" name="alias"
176   - type="string" />
  164 + <element maxOccurs="unbounded" minOccurs="0" name="alias" type="string" />
177 165 <element maxOccurs="1" minOccurs="0" name="geometria">
178 166 <complexType>
179 167 <sequence>
180 168  
... ... @@ -186,9 +174,10 @@
186 174  
187 175 <complexType name="LocalidadCatastral">
188 176 <sequence>
  177 + <element maxOccurs="unbounded" minOccurs="0" name="manzanasCatastrales" type="tns:ManzanaCatastral" />
  178 + <element maxOccurs="unbounded" minOccurs="0" name="padrones" type="tns:Padron" />
189 179 <element maxOccurs="1" minOccurs="1" name="codigo" type="tns:Alfa-3" />
190   - <element maxOccurs="1" minOccurs="1" name="departamento"
191   - type="tns:Departamento" />
  180 + <element maxOccurs="1" minOccurs="1" name="departamento" type="tns:Departamento" />
192 181 <element maxOccurs="1" minOccurs="0" name="nombre" type="string" />
193 182 <element maxOccurs="1" minOccurs="0" name="geometria">
194 183 <complexType>
... ... @@ -202,10 +191,8 @@
202 191  
203 192 <complexType name="Barrio">
204 193 <sequence>
205   - <element maxOccurs="1" minOccurs="0" name="nombre"
206   - type="tns:Alfanumerico-100" />
207   - <element maxOccurs="unbounded" minOccurs="0" name="alias"
208   - type="string" />
  194 + <element maxOccurs="1" minOccurs="0" name="nombre" type="tns:Alfanumerico-100" />
  195 + <element maxOccurs="unbounded" minOccurs="0" name="alias" type="string" />
209 196 <element maxOccurs="1" minOccurs="0" name="geometria">
210 197 <complexType>
211 198 <sequence>
... ... @@ -218,6 +205,7 @@
218 205  
219 206 <complexType name="Manzana">
220 207 <sequence>
  208 + <element maxOccurs="unbounded" minOccurs="0" name="solares" type="tns:Solar" />
221 209 <element maxOccurs="1" minOccurs="1" name="numero" type="tns:Numerico-5" />
222 210 <element maxOccurs="1" minOccurs="0" name="geometria">
223 211 <complexType>
... ... @@ -231,6 +219,8 @@
231 219  
232 220 <complexType name="ManzanaCatastral">
233 221 <sequence>
  222 + <element maxOccurs="unbounded" minOccurs="0" name="solaresCatastrales" type="tns:SolarCatastral" />
  223 + <element maxOccurs="1" minOccurs="1" name="localidadCatastral" type="tns:LocalidadCatastral" />
234 224 <element maxOccurs="1" minOccurs="1" name="numero" type="int" />
235 225 <element maxOccurs="1" minOccurs="0" name="geometria">
236 226 <complexType>
... ... @@ -244,10 +234,9 @@
244 234  
245 235 <complexType name="Padron">
246 236 <sequence>
247   - <element maxOccurs="1" minOccurs="1" name="numero"
248   - type="tns:Alfanumerico-30" />
249   - <element maxOccurs="1" minOccurs="0" name="unidadCatastral"
250   - type="string" />
  237 + <element maxOccurs="1" minOccurs="1" name="localidadCatastral" type="tns:LocalidadCatastral" />
  238 + <element maxOccurs="1" minOccurs="1" name="numero" type="tns:Alfanumerico-30" />
  239 + <element maxOccurs="1" minOccurs="0" name="unidadCatastral" type="string" />
251 240 <element maxOccurs="1" minOccurs="0" name="geometria">
252 241 <complexType>
253 242 <sequence>
... ... @@ -260,6 +249,7 @@
260 249  
261 250 <complexType name="Solar">
262 251 <sequence>
  252 + <element maxOccurs="1" minOccurs="1" name="manzana" type="tns:Manzana" />
263 253 <element maxOccurs="1" minOccurs="1" name="numero" type="tns:Numerico-5" />
264 254 <element maxOccurs="1" minOccurs="0" name="geometria">
265 255 <complexType>
... ... @@ -273,6 +263,7 @@
273 263  
274 264 <complexType name="SolarCatastral">
275 265 <sequence>
  266 + <element maxOccurs="1" minOccurs="1" name="manzanaCatastral" type="tns:ManzanaCatastral" />
276 267 <element maxOccurs="1" minOccurs="1" name="numero" type="int" />
277 268 <element maxOccurs="1" minOccurs="0" name="geometria">
278 269 <complexType>
279 270  
... ... @@ -293,17 +284,13 @@
293 284  
294 285 <complexType name="DireccionInterna">
295 286 <sequence>
  287 + <element maxOccurs="unbounded" minOccurs="1" name="direcciones" type="tns:TipoDireccion" />
296 288 <element maxOccurs="1" minOccurs="0" name="senda" type="string" />
297   - <element maxOccurs="1" minOccurs="0" name="block"
298   - type="tns:Alfanumerico-50" />
299   - <element maxOccurs="1" minOccurs="0" name="torre"
300   - type="tns:Alfanumerico-50" />
301   - <element maxOccurs="1" minOccurs="0" name="piso"
302   - type="tns:Alfanumerico-50" />
303   - <element maxOccurs="1" minOccurs="0" name="unidad"
304   - type="tns:Alfanumerico-50" />
305   - <element maxOccurs="1" minOccurs="0" name="descripcion"
306   - type="tns:Alfanumerico-300" />
  289 + <element maxOccurs="1" minOccurs="0" name="block" type="tns:Alfanumerico-50" />
  290 + <element maxOccurs="1" minOccurs="0" name="torre" type="tns:Alfanumerico-50" />
  291 + <element maxOccurs="1" minOccurs="0" name="piso" type="tns:Alfanumerico-50" />
  292 + <element maxOccurs="1" minOccurs="0" name="unidad" type="tns:Alfanumerico-50" />
  293 + <element maxOccurs="1" minOccurs="0" name="descripcion" type="tns:Alfanumerico-300" />
307 294 <element maxOccurs="1" minOccurs="0" name="coordenadas" type="tns:Coordenada" />
308 295 </sequence>
309 296 </complexType>
... ... @@ -367,12 +354,8 @@
367 354  
368 355 <complexType name="EntidadColectiva">
369 356 <sequence>
370   - <element maxOccurs="1" minOccurs="0" name="tipo"
371   - type="tns:TipoEntidadColectiva" />
372   - <element maxOccurs="1" minOccurs="0" name="nombre"
373   - type="tns:Alfanumerico-255" />
374   - <element maxOccurs="unbounded" minOccurs="0" name="direccionInterna"
375   - type="tns:DireccionInterna" />
  357 + <element maxOccurs="1" minOccurs="0" name="tipo" type="tns:TipoEntidadColectiva" />
  358 + <element maxOccurs="1" minOccurs="0" name="nombre" type="tns:Alfanumerico-255" />
376 359 <element maxOccurs="1" minOccurs="0" name="geometria">
377 360 <complexType>
378 361 <sequence>
379 362  
380 363  
... ... @@ -415,22 +398,19 @@
415 398 <complexType name="ViaCirculacion">
416 399 <sequence>
417 400 <element maxOccurs="1" minOccurs="0" name="numeroRuta" type="tns:Numerico-3" />
418   - <element maxOccurs="1" minOccurs="0" name="nombre"
419   - type="tns:Alfanumerico-150" />
420   - <element maxOccurs="unbounded" minOccurs="0" name="alias"
421   - type="tns:Alfanumerico-150" />
  401 + <element maxOccurs="1" minOccurs="0" name="nombre" type="tns:Alfanumerico-150" />
  402 + <element maxOccurs="unbounded" minOccurs="0" name="alias" type="tns:Alfanumerico-150" />
422 403 <element maxOccurs="1" minOccurs="0" name="vialidad" type="tns:Vialidad" />
423   - <element maxOccurs="unbounded" minOccurs="0" name="tramo"
424   - type="tns:TramoVia" />
  404 + <element maxOccurs="unbounded" minOccurs="0" name="tramo" type="tns:TramoVia" />
425 405 </sequence>
426 406 </complexType>
427 407  
428 408 <complexType name="TramoVia">
429 409 <sequence>
430   - <element maxOccurs="1" minOccurs="0" name="via"
431   - type="tns:ViaCirculacion" />
432   - <element maxOccurs="2" minOccurs="0" name="entrecalles"
433   - type="tns:ViaCirculacion" />
  410 + <element maxOccurs="1" minOccurs="0" name="via" type="tns:ViaCirculacion" />
  411 + <element maxOccurs="2" minOccurs="0" name="entrecalles" type="tns:ViaCirculacion" />
  412 + <element maxOccurs="1" minOccurs="0" name="cabezal1" type="tns:Numerico-5" />
  413 + <element maxOccurs="1" minOccurs="0" name="cabezal2" type="tns:Numerico-5" />
434 414 <element maxOccurs="1" minOccurs="0" name="geometria">
435 415 <complexType>
436 416 <sequence>
437 417  
438 418  
439 419  
440 420  
441 421  
442 422  
443 423  
444 424  
... ... @@ -463,52 +443,37 @@
463 443 </sequence>
464 444 </complexType>
465 445 </element>
466   - <element maxOccurs="1" minOccurs="0" name="criterioGeocod"
467   - type="tns:TipoCriterioGeocod" />
  446 + <element maxOccurs="1" minOccurs="0" name="criterioGeocod" type="tns:TipoCriterioGeocod" />
468 447 </sequence>
469 448 </complexType>
470 449  
471 450 <complexType name="TipoDireccion">
472 451 <sequence>
473 452 <element maxOccurs="1" minOccurs="0" name="pais" type="tns:Pais" />
474   - <element maxOccurs="1" minOccurs="0" name="departamento"
475   - type="tns:Departamento" />
  453 + <element maxOccurs="1" minOccurs="0" name="departamento" type="tns:Departamento" />
476 454 <element maxOccurs="1" minOccurs="0" name="municipio" type="tns:Municipio" />
477 455 <element maxOccurs="1" minOccurs="0" name="localidad" type="tns:Localidad" />
478   - <element maxOccurs="1" minOccurs="0" name="localidadCatastral"
479   - type="tns:LocalidadCatastral" />
  456 + <element maxOccurs="1" minOccurs="0" name="localidadCatastral" type="tns:LocalidadCatastral" />
480 457 <element maxOccurs="1" minOccurs="0" name="barrio" type="tns:Barrio" />
481 458 <element maxOccurs="1" minOccurs="0" name="manzana" type="tns:Manzana" />
482   - <element maxOccurs="1" minOccurs="0" name="manzanaCatastral"
483   - type="tns:ManzanaCatastral" />
  459 + <element maxOccurs="1" minOccurs="0" name="manzanaCatastral" type="tns:ManzanaCatastral" />
484 460 <element maxOccurs="1" minOccurs="0" name="padron" type="tns:Padron" />
485 461 <element maxOccurs="1" minOccurs="0" name="solar" type="tns:Solar" />
486   - <element maxOccurs="1" minOccurs="0" name="solarCatastral"
487   - type="tns:SolarCatastral" />
  462 + <element maxOccurs="1" minOccurs="0" name="solarCatastral" type="tns:SolarCatastral" />
488 463 <element maxOccurs="1" minOccurs="0" name="numero" type="tns:Numerico-5" />
489   - <element maxOccurs="1" minOccurs="0" name="letra"
490   - type="tns:Alfanumerico-5" />
  464 + <element maxOccurs="1" minOccurs="0" name="letra" type="tns:Alfanumerico-5" />
491 465 <element maxOccurs="1" minOccurs="0" name="kilometro" type="tns:Numerico-9" />
492   - <element maxOccurs="1" minOccurs="0" name="nombreInmueble"
493   - type="tns:Alfanumerico-100" />
494   - <element maxOccurs="1" minOccurs="0" name="descripcion"
495   - type="tns:Alfanumerico-300" />
  466 + <element maxOccurs="1" minOccurs="0" name="nombreInmueble" type="tns:Alfanumerico-100" />
  467 + <element maxOccurs="1" minOccurs="0" name="descripcion" type="tns:Alfanumerico-300" />
496 468 <element maxOccurs="1" minOccurs="0" name="paridad" type="tns:TipoParidadLC" />
497   - <element maxOccurs="unbounded" minOccurs="0" name="direccionInterna"
498   - type="tns:DireccionInterna" />
499   - <element maxOccurs="1" minOccurs="1" name="codigoPostal"
500   - type="tns:CodigoPostal" />
501   - <element maxOccurs="1" minOccurs="0" name="seccionPolicial"
502   - type="tns:SeccionPolicial" />
503   - <element maxOccurs="1" minOccurs="0" name="seccionJudicial"
504   - type="tns:SeccionJudicial" />
505   - <element maxOccurs="1" minOccurs="0" name="entidadColectiva"
506   - type="tns:EntidadColectiva" />
507   - <element maxOccurs="1" minOccurs="0" name="viaCirculacion"
508   - type="tns:ViaCirculacion" />
  469 + <element maxOccurs="unbounded" minOccurs="0" name="direccionInterna" type="tns:DireccionInterna" />
  470 + <element maxOccurs="1" minOccurs="1" name="codigoPostal" type="tns:CodigoPostal" />
  471 + <element maxOccurs="1" minOccurs="0" name="seccionPolicial" type="tns:SeccionPolicial" />
  472 + <element maxOccurs="1" minOccurs="0" name="seccionJudicial" type="tns:SeccionJudicial" />
  473 + <element maxOccurs="1" minOccurs="0" name="entidadColectiva" type="tns:EntidadColectiva" />
  474 + <element maxOccurs="1" minOccurs="0" name="viaCirculacion" type="tns:ViaCirculacion" />
509 475 <element maxOccurs="1" minOccurs="0" name="tramoVia" type="tns:TramoVia" />
510   - <element maxOccurs="unbounded" minOccurs="0" name="coordenadas"
511   - type="tns:Coordenada" />
  476 + <element maxOccurs="unbounded" minOccurs="0" name="coordenadas" type="tns:Coordenada" />
512 477 </sequence>
513 478 </complexType>
514 479 </schema>
direcciones_ejemplo1.xml View file @ e55d47b
... ... @@ -37,15 +37,24 @@
37 37 <xsd:numero>0</xsd:numero>
38 38 </xsd:manzana>
39 39 <xsd:padron>
  40 + <xsd:localidadCatastral>
  41 + <xsd:codigo>MVD</xsd:codigo>
  42 + <xsd:departamento>
  43 + <xsd:codigo>MO</xsd:codigo>
  44 + <xsd:pais>
  45 + <xsd:codigo>UY</xsd:codigo>
  46 + </xsd:pais>
  47 + </xsd:departamento>
  48 + </xsd:localidadCatastral>
40 49 <xsd:numero>5019</xsd:numero>
41 50 </xsd:padron>
42 51 <xsd:solar>
  52 + <xsd:manzana>
  53 + <xsd:numero>0</xsd:numero>
  54 + </xsd:manzana>
43 55 <xsd:numero>0</xsd:numero>
44 56 </xsd:solar>
45 57 <xsd:numero>1365</xsd:numero>
46   - <xsd:direccionInterna>
47   - <xsd:piso>7</xsd:piso>
48   - </xsd:direccionInterna>
49 58 <xsd:codigoPostal>
50 59 <xsd:numero>11100</xsd:numero>
51 60 </xsd:codigoPostal>