Mapbender , mapserver and WMS service getreatureinfo problem!!

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Mapbender , mapserver and WMS service getreatureinfo problem!!

necipakca
Hi everyone ,

First of all,I am a new user of mapbender and I have started a project with that i choosen mapbender.
my problem is,

i want to use getfeatureinfo property,but I am using WMS service in my project and I integrated its with mapserver.when i was load mapserver URL,I couldn't use getfeatureinfo.

can i use getfeatureinfo with that mapserver and  "CONNECTIONTYPE  WMS"?

my map file is that;

MAP
NAME  BuskiUser          
STATUS ON
SIZE 400 400
EXTENT 25.4821561784467 39.933353207504 26.6589862096445 40.5283797154684
IMAGETYPE    png

WEB
IMAGEPATH    "C:\ms4w\tmp"
    METADATA
      "WMS_SRS"   "epsg:4326"
      "WMS_FEATURE_INFO_MIME_TYPE"    "text/html"
    END
END

PROJECTION
"init=epsg:4326"
END  

   LAYER  
      NAME    "sinir_ilce"
      DATA "sinir_ilce"
      TYPE POLYGON
      DEBUG 1  
      DUMP TRUE
      CONNECTION      "http://192.168.1.45:5656/denemewms/Request.aspx?"
      CONNECTIONTYPE  WMS
      METADATA  
        "wms_crs"             "epsg:4326"
        "wms_name"            "SINIR_ILCE_SNR"
        "WMS_TITLE"    "sinir_ilce"
        "wms_server_version"    "1.1.1"
        "wms_format"           "image/png"
        "WMS_FEATURE_INFO_MIME_TYPE"    "text/html"
         "wms_request_method" "POST"
      END
       
      TEMPLATE "info.html"

      PROJECTION  
         "init=epsg:4326"
      END  
     
   
   END
   
 
END  # of map file

Is there anyone to help me to get rid of this situation.?
Thanks,,
Reply | Threaded
Open this post in threaded view
|

Re: [Mapbender_dev] Mapbender , mapserver and WMS service getreatureinfo problem!!

Michael Schulz
Hi,

yes, unfortunately that it the case. MapServer can not (at the moment)
cascade getfeatureinfo requests. Because of that the corresponding
layer has set queryable to 0/false and is thus not configurable as a
query layer in Mapbender's GUI-WMS settings.

I haven't tested this, but you might want to have a look at mapproxy,
it seems capable of doing cascaded WMS-getfeatureinfo requests.

Cheers, Michael


2010/8/25 necipakca <[hidden email]>:

>
> Hi everyone ,
>
> First of all,I am a new user of mapbender and I have started a project with
> that i choosen mapbender.
> my problem is,
>
> i want to use getfeatureinfo property,but I am using WMS service in my
> project and I integrated its with mapserver.when i was load mapserver URL,I
> couldn't use getfeatureinfo.
>
> can i use getfeatureinfo with that mapserver and  "CONNECTIONTYPE  WMS"?
>
> my map file is that;
>
> MAP
> NAME  BuskiUser
> STATUS ON
> SIZE 400 400
> EXTENT 25.4821561784467 39.933353207504 26.6589862096445 40.5283797154684
> IMAGETYPE    png
>
> WEB
> IMAGEPATH    "C:\ms4w\tmp"
>    METADATA
>      "WMS_SRS"   "epsg:4326"
>      "WMS_FEATURE_INFO_MIME_TYPE"    "text/html"
>    END
> END
>
> PROJECTION
> "init=epsg:4326"
> END
>
>   LAYER
>      NAME    "sinir_ilce"
>      DATA "sinir_ilce"
>      TYPE POLYGON
>      DEBUG 1
>      DUMP TRUE
>      CONNECTION      "http://192.168.1.45:5656/denemewms/Request.aspx?"
>      CONNECTIONTYPE  WMS
>      METADATA
>        "wms_crs"             "epsg:4326"
>        "wms_name"            "SINIR_ILCE_SNR"
>        "WMS_TITLE"    "sinir_ilce"
>        "wms_server_version"    "1.1.1"
>        "wms_format"           "image/png"
>        "WMS_FEATURE_INFO_MIME_TYPE"    "text/html"
>         "wms_request_method" "POST"
>      END
>
>      TEMPLATE "info.html"
>
>      PROJECTION
>         "init=epsg:4326"
>      END
>
>
>   END
>
>
> END  # of map file
>
> Is there anyone to help me to get rid of this situation.?
> Thanks,,
> --
> View this message in context: http://osgeo-org.1803224.n2.nabble.com/Mapbender-mapserver-and-WMS-service-getreatureinfo-problem-tp5461648p5461648.html
> Sent from the mapbender-dev mailing list archive at Nabble.com.
> _______________________________________________
> Mapbender_dev mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/mapbender_dev
>



--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Aufwind durch Wissen!

Qualifizierte Open Source Schulungen bei der
http://www.foss-academy.eu/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-----------------------------------------------------------
Michael Schulz
[hidden email]

in medias res
Gesellschaft für Informationstechnologie mbH

Schwimmbadstraße 2
D-79100  Freiburg i. Br.

Tel:  +49 (0)761 705798-102
Tel:  +49 (0)761 705798-0
Fax: +49 (0)761 705798-09

http://www.webgis.de / http://www.zopecms.de
--------------------------------------------------------------
Geschäftsführer: Stefan Giese, Dr. Christof Lindenbeck
Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg
_______________________________________________
Mapbender_dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapbender_dev
Reply | Threaded
Open this post in threaded view
|

Re: [Mapbender_dev] Mapbender , mapserver and WMS service getreatureinfo problem!!

necipakca
thank you for your quick reply,I have tried mapproxy but unfortunatly it's wms capbilities can not be loaded on mapbender.I dont know why because it does not throw any exception(I have looked up php.log mapbender.log  and javascript) and as a result all parameters are coming null.

Thanks your for advise,your idea was worth to try :D
I think i must find different way for my project.
Reply | Threaded
Open this post in threaded view
|

Re: [Mapbender_dev] Mapbender , mapserver and WMS service getreatureinfo problem!!

Michael Schulz
Hi,

if there is a problem loading mapproxys getcapabilities, then we
should investigate this. I doubt that there are a lot of wms "servers"
that allow for cascaded getfeatureinfos. Is your mapproxy instance
reachable via internet?

Cheers, Michael


2010/8/27 necipakca <[hidden email]>:

>
> thank you for your quick reply,I have tried mapproxy but unfortunatly it's
> wms capbilities can not be loaded on mapbender.I dont know why because it
> does not throw any exception(I have looked up php.log mapbender.log  and
> javascript) and as a result all parameters are coming null.
>
> Thanks your for advise,your idea was worth to try :D
> I think i must find different way for my project.
> --
> View this message in context: http://osgeo-org.1803224.n2.nabble.com/Mapbender-mapserver-and-WMS-service-getreatureinfo-problem-tp5461648p5468621.html
> Sent from the mapbender-dev mailing list archive at Nabble.com.
> _______________________________________________
> Mapbender_dev mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/mapbender_dev
>



--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Aufwind durch Wissen!

Qualifizierte Open Source Schulungen bei der
http://www.foss-academy.eu/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-----------------------------------------------------------
Michael Schulz
[hidden email]

in medias res
Gesellschaft für Informationstechnologie mbH

Schwimmbadstraße 2
D-79100  Freiburg i. Br.

Tel:  +49 (0)761 705798-102
Tel:  +49 (0)761 705798-0
Fax: +49 (0)761 705798-09

http://www.webgis.de / http://www.zopecms.de
--------------------------------------------------------------
Geschäftsführer: Stefan Giese, Dr. Christof Lindenbeck
Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg
_______________________________________________
Mapbender_dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapbender_dev
Reply | Threaded
Open this post in threaded view
|

Re: [Mapbender_dev] Mapbender , mapserver and WMS service getreatureinfo problem!!

necipakca
if you can send me SSH server ,I can open remote port for you.my mail adres is "necipakca@gmail.com".
by the way "uDid1.1.1" opens its capabilities and uDig shows me wms layer.
otherwisen mapproxy wms capabilities.xml that;

  <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
  <!DOCTYPE WMT_MS_Capabilities (View Source for full doctype...)> 
-  
- <WMT_MS_Capabilities version="1.1.1">
- <Service>
  <Name>OGC:WMS</Name> 
  <Title>MapProxy test fixture</Title> 
  <Abstract /> 
  <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="" xlink:type="simple" /> 
  <Fees>none</Fees> 
  <AccessConstraints>none</AccessConstraints> 
  </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://localhost:8080/service?" xlink:type="simple" /> 
  </Get>
  </HTTP>
  </DCPType>
  </GetCapabilities>
- <GetMap>
  <Format>image/jpeg</Format> 
  <Format>image/png</Format> 
- <DCPType>
- <HTTP>
- <Get>
  <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost:8080/service?" xlink:type="simple" /> 
  </Get>
  </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://localhost:8080/service?" xlink:type="simple" /> 
  </Get>
  </HTTP>
  </DCPType>
  </GetFeatureInfo>
  </Request>
- <Exception>
  <Format>application/vnd.ogc.se_xml</Format> 
  <Format>application/vnd.ogc.se_inimage</Format> 
  <Format>application/vnd.ogc.se_blank</Format> 
  </Exception>
- <Layer queryable="0" opaque="0" noSubsets="0">
  <Title>MapProxy test fixture</Title> 
  <SRS>EPSG:4326</SRS> 
  <LatLonBoundingBox minx="-180.0" miny="-90.0" maxx="180.0" maxy="90.0" /> 
- <Layer queryable="1" opaque="0" noSubsets="0">
  <Name>SINIR_ILCE_SNR</Name> 
  <Title>SINIR_ILCE_SNR</Title> 
  <LatLonBoundingBox minx="-180.0" miny="-90.0" maxx="180.0" maxy="90.0" /> 
  <BoundingBox SRS="EPSG:4326" minx="-180.0" miny="-90.0" maxx="180.0" maxy="90.0" /> 
  </Layer>
  </Layer>
  </Capability>
  </WMT_MS_Capabilities>

by the way I have another problem abouth WFS load.i can't load follow wfs.

  <?xml version="1.0" encoding="utf-8" ?>
- <wfs:WFS_Capabilities xmlns:ows="http://www.opengis.net/ows" xmlns:ogc="http://www.opengis.net/ogc" xmlns:wfs="http://www.opengis.net/wfs" xmlns:gml="http://www.opengis.net/gml" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1.0" xmlns="http://www.opengis.net/wfs" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" updateSequence="5">
-  
-  
-  
- <ows:ServiceIdentification>
  <ows:Title>Manipulate Feature Web Service</ows:Title> 
-  
  <ows:ServiceType>WFS</ows:ServiceType> 
  <ows:ServiceTypeVersion>1.1.0</ows:ServiceTypeVersion> 
  </ows:ServiceIdentification>
-  
-  
-  
- <ows:ServiceProvider>
  <ows:ProviderName /> 
  <ows:ProviderSite xlink:href="" /> 
- <ows:ServiceContact>
  <ows:IndividualName /> 
- <ows:ContactInfo>
- <ows:Phone>
  <ows:Voice /> 
  </ows:Phone>
- <ows:Address>
  <ows:DeliveryPoint /> 
  <ows:City /> 
  <ows:AdministrativeArea /> 
  <ows:PostalCode /> 
  <ows:Country /> 
  <ows:ElectronicMailAddress /> 
  </ows:Address>
  </ows:ContactInfo>
  </ows:ServiceContact>
  </ows:ServiceProvider>
-  
-  
-  
- <ows:OperationsMetadata>
- <ows:Operation name="GetCapabilities">
- <ows:DCP>
- <ows:HTTP>
  <ows:Get xlink:href="http://WEBMAP/vbuskigis/Request.aspx?" /> 
  <ows:Post xlink:href="http://WEBMAP/vbuskigis/Request.aspx" /> 
  </ows:HTTP>
  </ows:DCP>
- <ows:Parameter name="AcceptVersions">
  <ows:Value>1.1.0</ows:Value> 
  <ows:Value>1.0.0</ows:Value> 
  </ows:Parameter>
- <ows:Parameter name="AcceptFormats">
  <ows:Value>text/xml</ows:Value> 
  </ows:Parameter>
  </ows:Operation>
- <ows:Operation name="DescribeFeatureType">
- <ows:DCP>
- <ows:HTTP>
  <ows:Get xlink:href="http://WEBMAP/vbuskigis/Request.aspx?" /> 
  <ows:Post xlink:href="http://WEBMAP/vbuskigis/Request.aspx" /> 
  </ows:HTTP>
  </ows:DCP>
- <ows:Parameter name="outputFormat">
  <ows:Value>text/xml; subtype=gml/2.1.2</ows:Value> 
  <ows:Value>text/xml; subtype=gml/3.0.0</ows:Value> 
  <ows:Value>text/xml; subtype=gml/3.1.1</ows:Value> 
  <ows:Value>text/xml; subtype=gml/3.2</ows:Value> 
  </ows:Parameter>
  </ows:Operation>
- <ows:Operation name="GetFeature">
- <ows:DCP>
- <ows:HTTP>
  <ows:Get xlink:href="http://WEBMAP/vbuskigis/Request.aspx?" /> 
  <ows:Post xlink:href="http://WEBMAP/vbuskigis/Request.aspx" /> 
  </ows:HTTP>
  </ows:DCP>
- <ows:Parameter name="outputFormat">
  <ows:Value>text/xml; subtype=gml/2.1.2</ows:Value> 
  <ows:Value>text/xml; subtype=gml/3.0.0</ows:Value> 
  <ows:Value>text/xml; subtype=gml/3.1.1</ows:Value> 
  <ows:Value>text/xml; subtype=gml/3.2</ows:Value> 
  </ows:Parameter>
  </ows:Operation>
- <ows:Parameter name="srsName">
  <ows:Value>EPSG:23035</ows:Value> 
  </ows:Parameter>
  </ows:OperationsMetadata>
-  
-  
-  
- <wfs:FeatureTypeList>
- <wfs:Operations>
  <wfs:Operation>Query</wfs:Operation> 
  </wfs:Operations>
- <wfs:FeatureType>
  <wfs:Name>SINIR_ILCE_SNR</wfs:Name> 
  <wfs:Title>SINIR.ILCE_SNR</wfs:Title> 
  <wfs:DefaultSRS>EPSG:23035</wfs:DefaultSRS> 
- <wfs:OutputFormats>
  <wfs:Format>text/xml; subtype=gml/2.1.2</wfs:Format> 
  <wfs:Format>text/xml; subtype=gml/3.0.0</wfs:Format> 
  <wfs:Format>text/xml; subtype=gml/3.1.1</wfs:Format> 
  <wfs:Format>text/xml; subtype=gml/3.2</wfs:Format> 
  </wfs:OutputFormats>
- <ows:WGS84BoundingBox>
  <ows:LowerCorner>25,5657841367764 39,936606999359</ows:LowerCorner> 
  <ows:UpperCorner>26,5143283241387 40,5258062368078</ows:UpperCorner> 
  </ows:WGS84BoundingBox>
  </wfs:FeatureType>
  </wfs:FeatureTypeList>
-  
-  
-  
- <ogc:Filter_Capabilities>
- <ogc:Spatial_Capabilities>
- <ogc:GeometryOperands>
  <ogc:GeometryOperand>gml:Envelope</ogc:GeometryOperand> 
  <ogc:GeometryOperand>gml:Point</ogc:GeometryOperand> 
  <ogc:GeometryOperand>gml:LineString</ogc:GeometryOperand> 
  <ogc:GeometryOperand>gml:Polygon</ogc:GeometryOperand> 
  </ogc:GeometryOperands>
- <ogc:SpatialOperators>
  <ogc:SpatialOperator name="BBOX" /> 
  <ogc:SpatialOperator name="Disjoint" /> 
  <ogc:SpatialOperator name="Intersects" /> 
  <ogc:SpatialOperator name="Contains" /> 
  </ogc:SpatialOperators>
  </ogc:Spatial_Capabilities>
- <ogc:Scalar_Capabilities>
  <ogc:LogicalOperators /> 
- <ogc:ComparisonOperators>
  <ogc:ComparisonOperator>LessThan</ogc:ComparisonOperator> 
  <ogc:ComparisonOperator>GreaterThan</ogc:ComparisonOperator> 
  <ogc:ComparisonOperator>LessThanEqualTo</ogc:ComparisonOperator> 
  <ogc:ComparisonOperator>GreaterThanEqualTo</ogc:ComparisonOperator> 
  <ogc:ComparisonOperator>EqualTo</ogc:ComparisonOperator> 
  <ogc:ComparisonOperator>NotEqualTo</ogc:ComparisonOperator> 
  <ogc:ComparisonOperator>Like</ogc:ComparisonOperator> 
  <ogc:ComparisonOperator>NullCheck</ogc:ComparisonOperator> 
  </ogc:ComparisonOperators>
  </ogc:Scalar_Capabilities>
- <ogc:Id_Capabilities>
  <ogc:EID /> 
  <ogc:FID /> 
  </ogc:Id_Capabilities>
  </ogc:Filter_Capabilities>
  </wfs:WFS_Capabilities>

this is created with geomedia web map.
can you see any problem at this capabilities?? I cant understand what is wrong!!!



Reply | Threaded
Open this post in threaded view
|

Re: [Mapbender_dev] Mapbender , mapserver and WMS service getreatureinfo problem!!

Dominik Helle
In reply to this post by Michael Schulz
Hi List,

yes the mapproxy can cascade getfeatureinfo requests.

Am 27.08.2010 um 11:36 schrieb Michael Schulz:
> if there is a problem loading mapproxys getcapabilities, then we
> should investigate this.

The capbilities documents from mapproxy should be valid. :-)
We check this with the xml shema.

If you like you can test the mapproxy with our demo wms:
http://osm.omniscale.net/proxy/service?

Best regards,

Dominik

--
Dominik Helle <helle ( at ) omniscale.de>
Omniscale, Dominik Helle, Oliver Tonnhofer GbR
Nadorster Straße 60, 26123 Oldenburg
Tel: +49(0)441/9392774-1 (Fax: 9)

_______________________________________________
Mapbender_dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapbender_dev
Reply | Threaded
Open this post in threaded view
|

Re: [Mapbender_dev] Mapbender , mapserver and WMS service getreatureinfo problem!!

necipakca
yes you are right,it loads but it is not support getfeatureinfo:)
could you send me your conf. file those ; "services.yaml","seed.yaml","proxy.yaml","develop.ini","config.ini"
my mail adres; "necipakca@gmail.com"

I am really bored to try that !!

thank you already..
Reply | Threaded
Open this post in threaded view
|

Re: [Mapbender_dev] Mapbender , mapserver and WMS service getreatureinfo problem!!

Dominik Helle
Hi,

Am 27.08.2010 um 16:56 schrieb necipakca:
yes you are right,it loads but it is not support getfeatureinfo:)

Thats right, the demo wms does not support get feature info. 


could you send me your conf. file those ;
"services.yaml","seed.yaml","proxy.yaml","develop.ini","config.ini"

The mapproxy test server includes our demo wms. More information you will find here: http://mapproxy.org/docs/latest/install.html#start-the-test-server

If you have a question to mapproxy, feel free to contact the mapproxy-mailinglist.

Best regards

Dominik


-- 
Dominik Helle <helle ( at ) omniscale.de>
Omniscale, Dominik Helle, Oliver Tonnhofer GbR
Nadorster Straße 60, 26123 Oldenburg
Tel: +49(0)441/9392774-1 (Fax: 9)

_______________________________________________
Mapbender_dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapbender_dev