Hi list,
 
I'm facing some problems while loading a GML file that has a geometry with a 
hole. The GML is exported from gvSIG. Then I try to load it with Openlayers, 
but I can't get the geometry drawn with the hole. I get two geometries drawn. I 
attach the gml to the email. I'm using OpenLayers 2.9.
 
My parsing code
 
        var theParser = new OpenLayers.Format.GML();
      theParser.internalProjection = null;
      theParser.externalProjection = null;
      theParser.extractStyles = false;
      theParser.extractAttributes = true;
 
      var features = theParser.read(req);
 
Any ideas?

Thanks in advance.
 
Un saludo,


David Alda Fernández de Lecea
GIS Analista Programadorea / Analista Programador GIS
KONTSULTORIA  UNITATEA / UNIDAD DE CONSULTORÍA

Granja Modelo s/n
01192 Arkaute Araba
T 945 003 295 F 945 003 290
[email protected] | www.hazi.es <http://www.hazi.es/> 



<blocked::http://www.hazi.es/> *********************  LEGE OHARRA   
*******************   AVISO LEGAL   *******************   DISCLAIMER   
******************

Mezu hau pertsonala eta isilpekoa da eta baimenik gabeko erabilera debekatua 
dago legalki. Jasotzailea ez bazara ezabatu mezua, bidali eta kontserbatu gabe.

Este mensaje es personal y confidencial y su uso no autorizado está prohibido 
legalmente. Si usted no es el destinatario, proceda a borrarlo, sin reenviarlo 
ni conservarlo.

This message is personal and confidential, unauthorised use is legally 
prohibited. If you are not the intended recipient, delete it without resending 
or backing it.

<cit:PLANTILLA xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:xlink="http://www.w3.org/1999/xlink"; xmlns:gml="http://www.opengis.net/gml"; xmlns:cit="http://www.gvsig.org/cit"; xsi:schemaLocation="http://www.gvsig.org/cit cit.xsd"><gml:name>PLANTILLA</gml:name><gml:boundedBy><gml:Box gml:srsName="http://www.opengis.net/gml/srs/epsg.xml#25830";><gml:coord><gml:X>471635.9</gml:X><gml:Y>4787808.5</gml:Y></gml:coord><gml:coord><gml:X>472929.94</gml:X><gml:Y>4788359.87</gml:Y></gml:coord></gml:Box></gml:boundedBy><gml:featureMember><cit:Feature gml:fid="0"><gml:MultiPolygon gml:srsName="http://www.opengis.net/gml/srs/epsg.xml#25830";><gml:polygonMember><gml:Polygon gml:srsName="http://www.opengis.net/gml/srs/epsg.xml#25830";><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>472909.17,4787950.94 472919.2,4787941.28 472919.45,4787941.04 472908.5,4787931.03 472929.94,4787910.73 472907.97,4787817.47 472900.44,4787813.99 472885.95,4787815.73 472880.15,4787820.37 472872.62,4787822.11 472859.29,4787823.85 472851.65,4787828.88 472849.34,4787831.4 472844.7,4787836.42 472834.85,4787852.65 472823.26,4787867.15 472816.3,4787873.53 472812.36,4787884.61 472810.78,4787893.39 472808.94,4787900.75 472808.12,4787905.45 472809.35,4787911.59 472813.43,4787917.11 472831.13,4787937.74 472835.96,4787943.29 472838.78,4787940.87 472842.9,4787937.16 472847.42,4787935.11 472855.66,4787931.81 472861.42,4787927.7 472863.88,4787922.35 472863.06,4787915.35 472858.95,4787910.41 472854.83,4787905.48 472856.89,4787898.9 472860.59,4787893.96 472865.94,4787892.31 472872.12,4787894.78 472877.46,4787899.31 472879.52,4787905.06 472877.46,4787911.23 472873.76,4787914.53 472870.47,4787919.88 472869.65,4787923.99 472873.76,4787923.58 472884.05,4787923.58 472886.93,4787922.76 472893.1,4787917.0 472898.45,4787911.65 472903.39,4787907.54 472911.62,4787900.54 472917.79,4787898.07 472919.85,4787901.36 472918.2,4787909.18 472914.09,4787917.82 472909.15,4787924.82 472904.62,4787930.17 472899.68,4787935.92 472893.51,4787940.04 472887.34,4787943.75 472886.11,4787947.86 472886.93,4787953.21 472885.28,4787957.74 472885.91,4787962.73 472893.24,4787959.42 472906.71,4787953.31 472909.17,4787950.94 472909.17,4787950.94 </gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></gml:polygonMember><gml:polygonMember><gml:Polygon gml:srsName="http://www.opengis.net/gml/srs/epsg.xml#25830";><gml:innerBoundaryIs><gml:LinearRing><gml:coordinates>472901.74,4787846.63 472904.62,4787854.86 472907.09,4787861.86 472908.74,4787867.62 472909.97,4787874.2 472907.92,4787881.2 472905.86,4787887.78 472905.86,4787892.72 472902.98,4787896.01 472895.99,4787892.31 472886.52,4787887.37 472878.29,4787886.55 472869.24,4787886.13 472858.54,4787887.78 472853.6,4787889.42 472848.25,4787882.44 472851.13,4787878.32 472858.12,4787879.55 472865.95,4787879.96 472872.53,4787876.67 472879.93,4787878.32 472888.58,4787880.79 472891.05,4787877.49 472886.52,4787872.56 472875.82,4787868.44 472867.59,4787865.97 472863.88,4787861.04 472865.94,4787855.28 472870.88,4787855.68 472879.11,4787856.92 472884.87,4787856.09 472891.87,4787852.39 472895.57,4787847.45 472901.74,4787846.63 472901.74,4787846.63 </gml:coordinates></gml:LinearRing></gml:innerBoundaryIs></gml:Polygon></gml:polygonMember></gml:MultiPolygon><PLAN>06-0009</PLAN><TH>48</TH><MUN>22</MUN><POL>4</POL><PAR>1</PAR><SUB>1</SUB><UA>1</UA><UI>1</UI><TOPONIMO>a</TOPONIMO></cit:Feature></gml:featureMember></cit:PLANTILLA>
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to