Страница 1 из 1

wfs multigeometry

Добавлено: 25 дек 2013, 14:30
sergey64_89
Передаю следующий xml

Код: Выделить всё

<wfs:FeatureCollection xsi:schemaLocation='http://raapgis1p.mc.local:6080/arcgis/services/MetroGIS/Base_maps_scanned_maps/MapServer/WFSServer http://gis2.metc.state.mn.us/arcgis/services/MetroGIS/Base_maps_scanned_maps/MapServer/WFSServer?request=DescribeFeatureType%26version=1.1.0%26typename=test1 http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd' xmlns:can='http://raapgis1p.mc.local:6080/arcgis/services/MetroGIS/Base_maps_scanned_maps/MapServer/WFSServer' xmlns:gml='http://www.opengis.net/gml' xmlns:wfs='http://www.opengis.net/wfs' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'><gml:featureMember>
<can:test1>
<can:the_geom>
<gml:MultiSurface>
<gml:surfaceMember>
<gml:Polygon >
              <gml:exterior>
                <gml:LinearRing>
                  <gml:posList>408000.000099996 1221394.26 408001.557899996 1221397.742 408006.580999996 1221407.5 408006.872999996 1221408.802 408007.035899996 1221410.981 408006.840899996 1221411.827 408005.101999996 1221414.079 408012.858999996 1221410.856 408011.232999996 1221409.159 408008.955999996 1221404.181 408005.182999996 1221396.05 408000.000099996 1221384.467 407999.378999996 1221383.08 407993.361899996 1221369.356 407987.165999996 1221355.657 407980.242899996 1221340.282 407973.615899996 1221325.21 407965.442999996 1221306.129 407962.341999996 1221298.885 407960.650999996 1221292.975 407960.259899996 1221289.559 407960.259899996 1221287.802 407960.682899996 1221285.915 407961.593999996 1221283.54 407963.188999996 1221281.327 407965.628999996 1221278.692 407968.686899996 1221275.861 407979.103999996 1221265.879 407972.061899996 1221267.509 407967.321099996 1221273.161 407961.138899996 1221278.529 407960.416999996 1221278.918 407959.285999996 1221279.345 407957.328899996 1221279.699 407955.972999996 1221279.83 407954.956999996 1221279.798 407954.378999996 1221279.644 407947.765999996 1221282.391 407949.685999996 1221284.841 407951.670899996 1221287.444 407954.273999996 1221291.902 407958.698999996 1221300.536 407962.040999996 1221307.64 407967.597999996 1221319.827 407976.751999996 1221341.813 407984.045999996 1221356.958 407989.984999996 1221370.849 407995.713899996 1221384.683 408000.000099996 1221394.26</gml:posList>
                </gml:LinearRing>
              </gml:exterior>
            </gml:Polygon>
  </gml:surfaceMember>


</gml:MultiSurface>
</can:the_geom>
<can:id>1</can:id>
      <can:object>314575</can:object>
      <can:codeObject>45220000</can:codeObject>
      <can:name>jhjjhhjhj</can:name>
      <can:cover>hjhjjh</can:cover>
      <can:typilici>hkhkk</can:typilici>
      <can:nazvanie>hkhkhk</can:nazvanie>
</can:test1></gml:featureMember></wfs:FeatureCollection>

Код: Выделить всё

<?xml version="1.0" encoding="utf-8" ?><xs:schema targetNamespace='http://raapgis1p.mc.local:6080/arcgis/services/MetroGIS/Base_maps_scanned_maps/MapServer/WFSServer' elementFormDefault='qualified' xmlns:can='http://raapgis1p.mc.local:6080/arcgis/services/MetroGIS/Base_maps_scanned_maps/MapServer/WFSServer' xmlns:xs='http://www.w3.org/2001/XMLSchema' xmlns:gml='http://www.opengis.net/gml'><xs:import namespace='http://www.opengis.net/gml' schemaLocation='http://schemas.opengis.net/gml/3.1.1/base/gml.xsd'/><xs:element name='test1' type='can:test1Type' substitutionGroup='gml:_Feature'/><xs:complexType name='test1Type'><xs:complexContent><xs:extension base='gml:AbstractFeatureType'><xs:sequence>
 <xs:element name="name" type="xs:string" nillable="true" maxOccurs="1" minOccurs="1" />
          <xs:element name="cover" type="xs:string" nillable="true" maxOccurs="1" minOccurs="1" />
          <xs:element name="typilici" type="xs:string" nillable="true" maxOccurs="1" minOccurs="1" />
          <xs:element name="nazvanie" type="xs:string" nillable="true" maxOccurs="1" minOccurs="1" />
<xs:element name="codeObject" type="xs:string" nillable="true" maxOccurs="1" minOccurs="1" />
<xs:element minOccurs='0' name='the_geom' type='gml:MultiSurfacePropertyType'/></xs:sequence></xs:extension></xs:complexContent></xs:complexType></xs:schema>
arcgis воспринимает нормально, но если начать использовать multigeometry то пишет nogeometry. mapinfo 12 воспринимает оба варианта нормально