wfs server problem
Mehdi Kiman
oubinny at HOTMAIL.COM
Thu Aug 25 13:27:48 PDT 2005
You mean to Add &service=WFS to my GetCapabilities URL ?
>From: Bart van den Eijnden <bartvde at XS4ALL.NL>
>Reply-To: Bart van den Eijnden <bartvde at XS4ALL.NL>
>To: MAPSERVER-USERS at LISTS.UMN.EDU
>Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem
>Date: Thu, 25 Aug 2005 19:45:00 +0200
>
>These are WMS Capabilities, not WFS capabilities.
>
>Add &service=WMS to your GetCapabilities URL.
>
>Bart
>
>On Thu, 25 Aug 2005 17:36:12 +0200, Mehdi Kiman <oubinny at HOTMAIL.COM>
>wrote:
>
>>i have a TEMPLATE "ttt.html" for each layer of my MapFile, and the
>>getCapabilities response is :
>>
>>
>><?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
>><!DOCTYPE WMT_MS_Capabilities SYSTEM
>>"http://schemas.opengeospatial.net/wms/1.1.1/WMS_MS_Capabilities.dtd"
>>[
>><!ELEMENT VendorSpecificCapabilities EMPTY>
>>]> <!-- end of DOCTYPE declaration -->
>>
>><WMT_MS_Capabilities version="1.1.1">
>>
>><!-- MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
>>OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE
>>SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
>>SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=POSTGIS INPUT=OGR
>>INPUT=GDAL INPUT=SHAPEFILE -->
>>
>><Service>
>> <Name>OGC:WMS</Name>
>> <Title>WFS Pays Ne de La Mer</Title>
>> <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
>>xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/>
>></
>>
>>Service>
>>
>><Capability>
>> <Request>
>> <GetCapabilities>
>> <Format>application/vnd.ogc.wms_xml</Format>
>> <DCPType>
>> <HTTP>
>> <Get><OnlineResource
>>xmlns:xlink="http://www.w3.org/1999/xlink"
>>xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/></Get>
>> <Post><OnlineResource
>>xmlns:xlink="http://www.w3.org/1999/xlink"
>>xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/></Post>
>> </HTTP>
>> </DCPType>
>> </GetCapabilities>
>> <GetMap>
>> <Format>image/gif</Format>
>> <Format>image/png</Format>
>> <Format>image/jpeg</Format>
>> <Format>image/wbmp</Format>
>> <Format>image/tiff</Format>
>> <DCPType>
>> <HTTP>
>> <Get><OnlineResource
>>xmlns:xlink="http://www.w3.org/1999/xlink"
>>xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/></Get>
>> <Post><OnlineResource
>>xmlns:xlink="http://www.w3.org/1999/xlink"
>>xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/></Post>
>> </HTTP>
>> </DCPType>
>> </GetMap>
>> <GetFeatureInfo>
>> <Format>text/plain</Format>
>> <Format>text/html</Format>
>> <Format>application/vnd.ogc.gml</Format>
>> <DCPType>
>> <HTTP>
>> <Get><OnlineResource
>>xmlns:xlink="http://www.w3.org/1999/xlink"
>>xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/></Get>
>> <Post><OnlineResource
>>xmlns:xlink="http://www.w3.org/1999/xlink"
>>xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/></Post>
>> </HTTP>
>> </DCPType>
>> </GetFeatureInfo>
>> <DescribeLayer>
>> <Format>text/xml</Format>
>> <DCPType>
>> <HTTP>
>> <Get><OnlineResource
>>xmlns:xlink="http://www.w3.org/1999/xlink"
>>xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/></Get>
>> <Post><OnlineResource
>>xmlns:xlink="http://www.w3.org/1999/xlink"
>>xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/></Post>
>> </HTTP>
>> </DCPType>
>> </DescribeLayer>
>> <GetLegendGraphic>
>> <Format>image/gif</Format>
>> <Format>image/png</Format>
>> <Format>image/jpeg</Format>
>> <Format>image/wbmp</Format>
>> <DCPType>
>> <HTTP>
>> <Get><OnlineResource
>>xmlns:xlink="http://www.w3.org/1999/xlink"
>>xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/></Get>
>> <Post><OnlineResource
>>xmlns:xlink="http://www.w3.org/1999/xlink"
>>xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/></Post>
>> </HTTP>
>> </DCPType>
>> </GetLegendGraphic>
>> </Request>
>> <Exception>
>> <Format>application/vnd.ogc.se_xml</Format>
>> <Format>application/vnd.ogc.se_inimage</Format>
>> <Format>application/vnd.ogc.se_blank</Format>
>> </Exception>
>> <VendorSpecificCapabilities />
>> <UserDefinedSymbolization SupportSLD="1" UserLayer="0" UserStyle="1"
>>RemoteWFS="0"/>
>> <Layer>
>> <Name>Pays_nee_de_la_mer</Name>
>> <Title>WFS Pays Ne de La Mer</Title>
>> <SRS>epsg:27582</SRS>
>> <LatLonBoundingBox minx="-1.43695" miny="46.2625" maxx="-1.09479"
>>maxy="46.5377" />
>> <BoundingBox SRS="EPSG:27582"
>> minx="310560" miny="2.14718e+006" maxx="335547"
>>maxy="2.17666e+006" />
>> <Layer queryable="0" opaque="0" cascaded="0">
>> <Name>BD_ortho</Name>
>> <Title>BD_ortho</Title>
>> <SRS>epsg:27582</SRS>
>> <Style>
>> <Name>default</Name>
>> <Title>default</Title>
>> <LegendURL width="18" height="12">
>> <Format>image/png</Format>
>> <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
>>xlink:type="simple"
>>xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=BD_ortho&format=image/png"/>
>> </LegendURL>
>> </Style>
>> </Layer>
>> <Layer queryable="1" opaque="0" cascaded="0">
>> <Name>Contours_de_communes</Name>
>> <Title>Contours_de_communes</Title>
>> <SRS>epsg:27582</SRS>
>> <LatLonBoundingBox minx="-1.38396" miny="46.2776" maxx="-1.1549"
>>maxy="46.4928" />
>> <BoundingBox SRS="EPSG:27582"
>> minx="314402" miny="2.14868e+006" maxx="330976"
>>maxy="2.17185e+006" />
>> <Style>
>> <Name>default</Name>
>> <Title>default</Title>
>> <LegendURL width="18" height="12">
>> <Format>image/png</Format>
>> <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
>>xlink:type="simple"
>>xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=Contours_de_communes&format=image/png"/>
>> </LegendURL>
>> </Style>
>> </Layer>
>> <Layer queryable="1" opaque="0" cascaded="0">
>> <Name>Parcelles</Name>
>> <Title>Parcelles</Title>
>> <SRS>epsg:27582</SRS>
>> <LatLonBoundingBox minx="-1.45418" miny="46.2674"
>>maxx="-1.15476" maxy="46.4732" />
>> <BoundingBox SRS="EPSG:27582"
>> minx="308900" miny="2.1478e+006" maxx="330948"
>>maxy="2.16968e+006" />
>> <Style>
>> <Name>default</Name>
>> <Title>default</Title>
>> <LegendURL width="18" height="12">
>> <Format>image/png</Format>
>> <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
>>xlink:type="simple"
>>xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=Parcelles&format=image/png"/>
>> </LegendURL>
>> </Style>
>> </Layer>
>> <Layer queryable="1" opaque="0" cascaded="0">
>> <Name>Routes</Name>
>> <Title>Routes</Title>
>> <SRS>epsg:27582</SRS>
>> <LatLonBoundingBox minx="-1.43695" miny="46.2625"
>>maxx="-1.09479" maxy="46.5377" />
>> <BoundingBox SRS="EPSG:27582"
>> minx="310560" miny="2.14718e+006" maxx="335547"
>>maxy="2.17666e+006" />
>> <Style>
>> <Name>default</Name>
>> <Title>default</Title>
>> <LegendURL width="18" height="12">
>> <Format>image/png</Format>
>> <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
>>xlink:type="simple"
>>xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=Routes&format=image/png"/>
>> </LegendURL>
>> </Style>
>> </Layer>
>> <Layer queryable="1" opaque="0" cascaded="0">
>> <Name>Sections_cadastrales</Name>
>> <Title>SectionsCadastrales</Title>
>> <SRS>epsg:27582</SRS>
>> <LatLonBoundingBox minx="-1.29993" miny="46.3063"
>>maxx="-1.15657" maxy="46.4733" />
>> <BoundingBox SRS="EPSG:27582"
>> minx="320761" miny="2.15157e+006" maxx="330976"
>>maxy="2.16969e+006" />
>> <Style>
>> <Name>default</Name>
>> <Title>default</Title>
>> <LegendURL width="18" height="12">
>> <Format>image/png</Format>
>> <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
>>xlink:type="simple"
>>xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=Sections_cadastrales&format=image/png"/>
>> </LegendURL>
>> </Style>
>> </Layer>
>> </Layer>
>></Capability>
>></WMT_MS_Capabilities>
>>
>>
>>
>>>From: "Bart van den Eijnden" <BEN at Syncera-ITSolutions.NL>
>>>To: <oubinny at HOTMAIL.COM>,<MAPSERVER-USERS at LISTS.UMN.EDU>
>>>Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem
>>>Date: Thu, 25 Aug 2005 17:17:25 +0200
>>>
>>>Is this typename in your WFS GetCapabilities response (can you post it
>>>to the list)?
>>>
>>>Try also adding TEMPLATE "blank.html" to your LAYER.
>>>
>>>Best regards,
>>>Bart
>>>
>>>Bart van den Eijnden
>>>Syncera IT Solutions
>>>Postbus 270
>>>2600 AG DELFT
>>>
>>>tel.nr.: 015-7512436
>>>email: BEN at Syncera-ITSolutions.nl
>>>
>>> >>> Mehdi Kiman <oubinny at HOTMAIL.COM> 08/25/05 5:14 pm >>>
>>>Sorry i do that but i have always the same problem
>>>
>>> >From: "Bart van den Eijnden" <BEN at Syncera-ITSolutions.NL>
>>> >To: <oubinny at hotmail.com>
>>> >CC: <MAPSERVER-USERS at LISTS.UMN.EDU>
>>> >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem
>>> >Date: Thu, 25 Aug 2005 17:07:05 +0200
>>> >
>>> >You should add DUMP TRUE to your LAYER.
>>> >
>>> >Best regards,
>>> >Bart
>>> >
>>> >Bart van den Eijnden
>>> >Syncera IT Solutions
>>> >Postbus 270
>>> >2600 AG DELFT
>>> >
>>> >tel.nr.: 015-7512436
>>> >email: BEN at Syncera-ITSolutions.nl
>>> >
>>> > >>> "Mehdi Kiman" <oubinny at hotmail.com> 08/25/05 5:04 pm >>>
>>> >Now getCapabilities is ok. But when i make a
>>> >http://emir:8080/cgi-bin/mywfs.exe?&SERVICE=WFS&REQUEST=getfeature&VERSION=1.0.0&TYPENAME=Parcelles
>>> >
>>> >The WFS server output is
>>> ><ServiceException>msWFSGetFeature(): WFS server error. TYPENAME
>>>'Parcelles'
>>> >doesn't exist in this server. Please check the capabilities and
>>>reformulate
>>> >your request.</ServiceException>
>>> >
>>> >I'm so surprised beacause my getCapabilities return is correct.
>>> >
>>> > >From: "Bart van den Eijnden" <BEN at Syncera-ITSolutions.NL>
>>> > >To: <oubinny at HOTMAIL.COM>
>>> > >CC: <MAPSERVER-USERS at LISTS.UMN.EDU>
>>> > >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem
>>> > >Date: Thu, 25 Aug 2005 16:53:08 +0200
>>> > >
>>> > >Yes, the same MAP file can serve both WMS and WFS.
>>> > >
>>> > >Bart
>>> > >
>>> > >Bart van den Eijnden
>>> > >Syncera IT Solutions
>>> > >Postbus 270
>>> > >2600 AG DELFT
>>> > >
>>> > >tel.nr.: 015-7512436
>>> > >email: BEN at Syncera-ITSolutions.nl
>>> > >
>>> > > >>> Mehdi Kiman <oubinny at HOTMAIL.COM> 08/25/05 4:51 pm >>>
>>> > >I can have the same MapFile for using both WFS and WFS serveur ?
>>> > >
>>> > >
>>> > >
>>> > >
>>> > > >From: "Bart van den Eijnden" <BEN at Syncera-ITSolutions.NL>
>>> > > >To: <oubinny at HOTMAIL.COM>,<MAPSERVER-USERS at LISTS.UMN.EDU>
>>> > > >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem
>>> > > >Date: Thu, 25 Aug 2005 16:34:53 +0200
>>> > > >
>>> > > >When you are doing a GetCapabilities, what is your URL?
>>> > > >
>>> > > >Do you add &service=WFS&request=GetCapabilities&version=1.0.0
>>> > > >?
>>> > > >
>>> > > >otherwise probably the default is the WMS capabilities and you miss
>>> > > >"wms_title" METADATA for that. If you want to be shorter, use the
>>>more
>>> > > >general ows_title and leave out wfs_title and wms_title.
>>> > > >
>>> > > >Best regards,
>>> > > >Bart
>>> > > >
>>> > > >Bart van den Eijnden
>>> > > >Syncera IT Solutions
>>> > > >Postbus 270
>>> > > >2600 AG DELFT
>>> > > >
>>> > > >tel.nr.: 015-7512436
>>> > > >email: BEN at Syncera-ITSolutions.nl
>>> > > >
>>> > > > >>> Mehdi Kiman <oubinny at HOTMAIL.COM> 08/25/05 4:29 pm >>>
>>> > > >Hi,
>>> > > >
>>> > > >I have a problem with my WFS server, i tried to configure it.
>>> > > >My MapFile is correct :
>>> > > >MAP
>>> > > >NAME "Pays_nee_de_la_mer"
>>> > > >DEBUG on
>>> > > >SIZE 600 400
>>> > > >STATUS ON
>>> > > >
>>> > > >EXTENT 310559.98 2147175.0 335547.03 2176659.97
>>> > > >FONTSET "../data/fonts.txt"
>>> > > >UNITS METERS
>>> > > >SHAPEPATH "../data/data_map/"
>>> > > >
>>> > > >WEB
>>> > > > IMAGEPATH 'C:/tmp/ms_tmp/'
>>> > > > IMAGEURL '/ms_tmp/'
>>> > > > METADATA
>>> > > > "wfs_title" "wfs Pays Ne de La Mer"
>>> > > > "wfs_onlineresource"
>>> > > >"http://emir:8080/cgi-bin/mywfs.exe?config_wfs.map&"
>>> > > > "wfs_srs" "epsg:27582"
>>> > > > "wfs_feature_info_mime_type" "text/html"
>>> > > > END
>>> > > >END
>>> > > >
>>> > > >LAYER
>>> > > > CONNECTIONTYPE OGR
>>> > > > CONNECTION "../data/data_map/Parcelles.TAB"
>>> > > >
>>> > > > NAME "Parcelles"
>>> > > >
>>> > > > TYPE POLYGON
>>> > > > STATUS ON
>>> > > > #STYLEITEM "AUTO"
>>> > > >
>>> > > > CLASS
>>> > > > NAME "Parcelles"
>>> > > > TEMPLATE "ttt.html"
>>> > > > STYLE
>>> > > > COLOR 255 255 0
>>> > > > OUTLINECOLOR 0 0 2
>>> > > > END
>>> > > > END
>>> > > > METADATA
>>> > > > "wfs_title" "Parcelles"
>>> > > > "wfs_srs" "epsg:27582"
>>> > > > END
>>> > > > PROJECTION
>>> > > > "init=epsg:27582"
>>> > > > END
>>> > > >END
>>> > > >
>>> > > >And when i make a GetCapabilities, i have this kind of error for
>>>each
>>> > >layer
>>> > > > :
>>> > > >
>>> > > ><!-- WARNING: Mandatory metadata '..._title' was missing in this
>>> >context.
>>> > > >-->
>>> > > >
>>> > > >What's wrong with my server ?
>>> > > >
>>> > > >
>>> > > >Thanks
>>> > > >Mehdi
>>> > > >
>>> > >
>>> >
>>> >
>>> >
>>
>
>
>
>--
>Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
More information about the MapServer-users
mailing list