Hello!

I need apply a schema XML to the response of Mapserver to make a Nomenclator. I think that the response to my problem are in the label:

WEB
     METADATA
                        "ows_schemas_location" "http://ogc.dmsolutions.ca";

But i don't know what type of file, wait in this URL. And i don't know, how made the mapping of the elements of the Layer. For example, i have:

<<<<<file.map>>>>>>

WEB
     METADATA
              .
              .
              .
                        "ows_schemas_location" "http://ogc.dmsolutions.ca";

              .
              .
              .
              .
#Server WFS
"wfs_srs"     "EPSG:4326"
"wfs_title"   "Titulo"
"wfs_abstract"        "explicacion"
"wfs_keywordlist"     " Servidor de Objetos en Red"
"wfs_geometry_element_name"   "MS_GEOMETRY"
"wfs_srs"     "EPSG:4326"
"gml_featureid"       "ID"
"gml_include_items" "all" # The fields of the table are "id, fid, rotulo, x, y"

#Client WFS
"wfs_typename"          "titulo"
"wfs_version"           "1.0.0"
"wfs_request_method"    "GET"
"wfs_connectiontimeout" "60"
"wfs_maxfeatures"       "100"
"wfs_extend" "-23.0132795 27.636523 9.1810205 43.793673"

I put in the browser

"http://localhost/cgi-bin/mapserv?SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=titulo";

And i obtain:

<wfs:FeatureCollection xsi:schemaLocation="http://www.opengis.net/wfs MNE Schema.xsd/wfs/1.0.0/WFS-basic.xsd http://mapserver.gis.umn.edu/mapserver http://localhost/cgi-bin/mapserv?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=estaciones_servicio&OUTPUTFORMAT=XMLSCHEMA";>

<gml:boundedBy>
  <gml:Box srsName="EPSG:4326">
<gml:coordinates>-4.730000,41.500000 -4.699900,41.720000</gml:coordinates>
  </gml:Box>
</gml:boundedBy>

<gml:featureMember>
  <ms:titulo fid="       1">
     <gml:boundedBy>
          <gml:Box srsName="EPSG:4326">
<gml:coordinates>-4.730000,41.700000 -4.730000,41.700000</gml:coordinates>
         </gml:Box>
    </gml:boundedBy>
    <ms:msGeometry>
       <gml:Point srsName="EPSG:4326">
          <gml:coordinates>-4.730000,41.700000</gml:coordinates>
       </gml:Point>
    </ms:msGeometry>
    <ms:id>       1</ms:id>
    <ms:fid>       1</ms:fid>
    <ms:rotulo>aaa</ms:rotulo>
    <ms:x>       -4.73000000</ms:x>
    <ms:y>       41.70000000</ms:y>
  </ms:titulo>
</gml:featureMember>
<gml:featureMember>
  <ms:titulo fid="       2">
     <gml:boundedBy>
          <gml:Box srsName="EPSG:4326">
<gml:coordinates>-4.720000,41.699000 -4.720000,41.699000</gml:coordinates>
         </gml:Box>
    </gml:boundedBy>
    <ms:msGeometry>
       <gml:Point srsName="EPSG:4326">
          <gml:coordinates>-4.720000,41.699000</gml:coordinates>
       </gml:Point>
    </ms:msGeometry>
    <ms:id>       2</ms:id>
    <ms:fid>       2</ms:fid>
    <ms:rotulo>bbbbb</ms:rotulo>
    <ms:x>       -4.72000000</ms:x>
    <ms:y>      41.699000</ms:y>
  </ms:titulo>
</gml:featureMember>

But i'd like:

<gml:boundedBy>
  <gml:Box>
     <gml:coord>
        <gml:X>-5.93</gml:X>
        <gml:Y>37.6</gml:Y>
     </gml:coord>
     <gml:coord>
        <gml:X>-2.47</gml:X>
        <gml:Y>42.34</gml:Y>
     </gml:coord>
  </gml:Box>
</gml:boundedBy>

<gml:featureMember>
  <Entidad fid="Entidad.64">
     <nombreEntidad>
        <nombre>Valladolid</nombre>
        <idioma>esp</idioma>
        <claseNombre>Preferente</claseNombre>
        <estatus>Oficial</estatus>
        <fuente>Nomenclátor</fuente>
     </nombreEntidad>
     <tipoEntidad>
        <tipo>Provincia</tipo>
        <catalogoEntidades>Entidades del Nomenclátor</catalogoEntidades>
     </tipoEntidad>
     <posicionEspacial>
       <gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#4326";>
<gml:coordinates cs="," decimal="." ts="">-4.72,41.65</gml:coordinates>
       </gml:Point>
     </posicionEspacial>
     <entidadLocal>
        <provincia>Valladolid</provincia>
     </entidadLocal>
   </Entidad>
</gml:featureMember>

<gml:featureMember>
  <Entidad fid="Entidad.65">
     <nombreEntidad>
        <nombre>Madrid</nombre>
        <idioma>esp</idioma>
        <claseNombre>Preferente</claseNombre>
        <estatus>Oficial</estatus>
        <fuente>Nomenclátor</fuente>
     </nombreEntidad>
     <tipoEntidad>
        <tipo>Provincia</tipo>
        <catalogoEntidades>Entidades del Nomenclátor</catalogoEntidades>
     </tipoEntidad>
     <posicionEspacial>
       <gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#4326";>
<gml:coordinates cs="," decimal="." ts="">-4.90,41.65</gml:coordinates>
       </gml:Point>
     </posicionEspacial>
     <entidadLocal>
        <provincia>Madrid</provincia>
     </entidadLocal>
   </Entidad>
</gml:featureMember>


how can i do?

Thanks

_________________________________________________________________
Horóscopo, tarot, numerología... Escucha lo que te dicen los astros. http://astrocentro.msn.es/

Reply via email to