Hola a tod@s, después de haber pasado wkt a shp, me surge otra duda. Una vez que tengo la capa en shp, la capa de atributo está vacía, tan sólo tiene el FID, ahora bien, tengo toda la información en xml y es la siguiente:
<LINEA_DECLARACION>
<PROV>10</PROV>
<MUN_INE />
<MUN_CAT>131</MUN_CAT>
<AGREGADO>0</AGREGADO>
<ZONA>0</ZONA>
<POLIGONO>13</POLIGONO>
<PARCELA>7</PARCELA>
<RECINTO>2</RECINTO>
<PARCELA_AGRICOLA />
<CULTIVO />
<WKT>POLYGON((694997.559271524 4429358.09025761, 695002.286519803 4429358.34196826, 695005.977733562 4429359.06048654, 695008.927691562 4429360.47691263, 695011.631225906 4429362.84600378, 695014.470735074 4429366.33593442, 695017.482479228 4429370.64960539, 695020.619938231 4429375.36685206, 695021.930791858 4429377.30910989, 695023.848522955 4429380.16082736, 695027.151291214 4429385.13369876, 695030.488404395 4429390.44272345, 695033.836011449 4429396.18020878, 695037.157133784 4429402.11253735, 695040.381875664 4429407.89342863, 695043.495686208 4429413.25250492, 695046.680581056 4429418.35271146, 695050.132172449 4429423.385274, 695053.98953511 4429428.5120375, 695058.120033956 4429433.59925461, 695062.328054862 4429438.45579281, 695066.445902164 4429442.91888721, 695070.570974122 4429447.10285441, 695074.828127888 4429451.15986428, 695079.356270527 4429455.26106838, 695084.286674629 4429459.59604384, 695089.786416047 4429464.3460691, 695096.007831652 4429469.71979053, 695103.287366868 4429475.99584399, 695111.998485301 4429483.41666779, 695122.237002154 4429492.15231423, 695133.05014647 4429501.93618288, 695143.245410598 4429512.35595323, 695151.907654974 4429523.07158743, 695159.278850656 4429533.86574268, 695163.823533352 4429541.22619931, 695144.366542324 4429531.45300769, 695107.781903985 4429512.94431805, 695083.863446567 4429500.65465566, 695058.392392193 4429502.54258203, 695047.487067014 4429497.18825966, 695045.504968621 4429494.61419785, 695038.072188174 4429488.16668301, 695028.161030619 4429485.09111475, 695007.842391836 4429469.53291019, 694982.572141141 4429428.40170225, 694958.871227773 4429389.17291621, 694953.827437261 4429417.18964092, 695018.152336012 4429508.43681148, 694952.34342216 4429418.65059752, 694959.933601625 4429369.52670201, 694962.405246603 4429369.20841035, 694963.712994082 4429369.0370959, 694967.387070857 4429366.23569726, 694971.291761974 4429363.93376012, 694975.811926077 4429361.92691459, 694980.911064716 4429360.24215775, 694986.406756653 4429359.01447235, 694992.096801035 4429358.30394286, 694997.559271524 4429358.09025761))</WKT>
<DN_SURFACE>11519.05</DN_SURFACE>
<SUPERFICIE_DECLARADA />
<FC_ALMENDROS />
<FC_ALGARROBOS />
<FC_AVELLANOS />
<FC_NOGALES />
<FC_PISTACHOS />
<FC_TOTAL />
</LINEA_DECLARACION>
Ahora bien quisiera que en shp que se crea, apareciesen los campos en la tabla de atributos que en este xml aparacen, por ejemplo:
<POLIGONO>13</POLIGONO> Fuese el campo polígono
<PARCELA>7</PARCELA> Fuese el campo parcela
<RECINTO>2</RECINTO> Fuese el campo recinto
y así sucesivamente.
Espero vuestra ayuda. MUCHÍSIMAS GRACIAS POR TODO