hi evreybody, i think there is a problem abouth WFS search via GeoServer WFS Service !

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

hi evreybody, i think there is a problem abouth WFS search via GeoServer WFS Service !

necipakca
i am working now WFS service on mapbender 2.6.2 and when i was developing new wfs search items ,i found that ,,,

"<wfs:Query  ";
                       
                // add namespace
                if (strpos($featureTypeName, ":") !== false) {
                        $ft = $this->findFeatureTypeByName($featureTypeName);
                        $ns = $this->getNamespace($featureTypeName);
                        $url = $ft->getNamespace($ns);
                        $postData .= "xmlns:" . $ns . "=\"" . $url . "\" ";
                       
                }
                $postData .= "typeName=\"" . $featureTypeName . "\">" .
                        $filter .
                        "</wfs:Query></wfs:GetFeature>";

there is no srsName attribute so GeoServer is directing to wrong BBOX and wrong place.

but when i was adding srsName attribute wfs:Query every thing is ok .its works!!!

like that ;

  "<wfs:Query  srsName=\"EPSG:2320\"   ";
                       
                // add namespace
                if (strpos($featureTypeName, ":") !== false) {
                        $ft = $this->findFeatureTypeByName($featureTypeName);
                        $ns = $this->getNamespace($featureTypeName);
                        $url = $ft->getNamespace($ns);
                        $postData .= "xmlns:" . $ns . "=\"" . $url . "\" ";
                       
                }
                $postData .= "typeName=\"" . $featureTypeName . "\">" .
                        $filter .
                        "</wfs:Query></wfs:GetFeature>";
Regards,
Necip AKCA
Reply | Threaded
Open this post in threaded view
|

Re: [Mapbender_dev] hi evreybody, i think there is a problem abouth WFS search via GeoServer WFS Service !

Michael Schulz
Hi,

are you sure that you are using the correct wfs versions? The WFS 1.0
standard does not support specifying the SRS name (srsName) in
GetFeature requests. This is possible from wfs 1.1 upwards. And as far
as i know mapbender supports it - at least with Mapbender 2.7.

Cheers, Michael


2010/10/7 necipakca <[hidden email]>:

>
> i am working now WFS service on mapbender 2.6.2 and when i was developing new
> wfs search items ,i found that ,,,
>
> "<wfs:Query  ";
>
>                // add namespace
>                if (strpos($featureTypeName, ":") !== false) {
>                        $ft = $this->findFeatureTypeByName($featureTypeName);
>                        $ns = $this->getNamespace($featureTypeName);
>                        $url = $ft->getNamespace($ns);
>                        $postData .= "xmlns:" . $ns . "=\"" . $url . "\" ";
>
>                }
>                $postData .= "typeName=\"" . $featureTypeName . "\">" .
>                        $filter .
>                        "</wfs:Query></wfs:GetFeature>";
>
> there is no srsName attribute so GeoServer is directing to wrong BBOX and
> wrong place.
>
> but when i was adding srsName attribute wfs:Query every thing is ok .its
> works!!!
>
> like that ;
>
>  "<wfs:Query  srsName=\"EPSG:2320\"   ";
>
>                // add namespace
>                if (strpos($featureTypeName, ":") !== false) {
>                        $ft = $this->findFeatureTypeByName($featureTypeName);
>                        $ns = $this->getNamespace($featureTypeName);
>                        $url = $ft->getNamespace($ns);
>                        $postData .= "xmlns:" . $ns . "=\"" . $url . "\" ";
>
>                }
>                $postData .= "typeName=\"" . $featureTypeName . "\">" .
>                        $filter .
>                        "</wfs:Query></wfs:GetFeature>";
> Regards,
> Necip AKCA
> --
> View this message in context: http://osgeo-org.1803224.n2.nabble.com/hi-evreybody-i-think-there-is-a-problem-abouth-WFS-search-via-GeoServer-WFS-Service-tp5610970p5610970.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
>



--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Treffen Sie uns auf der INTERGEO
05.10. - 07.10.2010
in Köln Halle: 11.2
Stand-Nr: 2C.121
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-----------------------------------------------------------
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] hi evreybody, i think there is a problem abouth WFS search via GeoServer WFS Service !

necipakca
hi,
i am sure that mapbender 2.6.2  supports WFS 1.1.0 . i am using it and if the query has not a srsName attribute then,result again same and correct but, when you click the results links,the map is showing wrong places.

Reply | Threaded
Open this post in threaded view
|

Re: [Mapbender_dev] hi evreybody, i think there is a problem abouth WFS search via GeoServer WFS Service !

Christoph Baudson-3
In reply to this post by necipakca
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

You are right. We've just added unit tests for the WFS 1.1.0 classes and
this bug turned up. It is on my agenda. I will try to fix it tonight.

Thanks

Christoph


necipakca wrote:

> i am working now WFS service on mapbender 2.6.2 and when i was developing new
> wfs search items ,i found that ,,,
>
> "<wfs:Query  ";
>
> // add namespace
> if (strpos($featureTypeName, ":") !== false) {
> $ft = $this->findFeatureTypeByName($featureTypeName);
> $ns = $this->getNamespace($featureTypeName);
> $url = $ft->getNamespace($ns);
> $postData .= "xmlns:" . $ns . "=\"" . $url . "\" ";
>
> }
> $postData .= "typeName=\"" . $featureTypeName . "\">" .
> $filter .
> "</wfs:Query></wfs:GetFeature>";
>
> there is no srsName attribute so GeoServer is directing to wrong BBOX and
> wrong place.
>
> but when i was adding srsName attribute wfs:Query every thing is ok .its
> works!!!
>
> like that ;
>
>   "<wfs:Query  srsName=\"EPSG:2320\"   ";
>
> // add namespace
> if (strpos($featureTypeName, ":") !== false) {
> $ft = $this->findFeatureTypeByName($featureTypeName);
> $ns = $this->getNamespace($featureTypeName);
> $url = $ft->getNamespace($ns);
> $postData .= "xmlns:" . $ns . "=\"" . $url . "\" ";
>
> }
> $postData .= "typeName=\"" . $featureTypeName . "\">" .
> $filter .
> "</wfs:Query></wfs:GetFeature>";
> Regards,
> Necip AKCA

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkyt7EwACgkQGtMIfbycMX55QACfULhFV8kLeyv7z7X40ODquILX
bUMAniE1JAGV0MkfHfg+yb60aeQqGlC4
=HKDq
-----END PGP SIGNATURE-----
_______________________________________________
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] hi evreybody, i think there is a problem abouth WFS search via GeoServer WFS Service !

Christoph Baudson-3
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Christoph Baudson wrote:
> You are right. We've just added unit tests for the WFS 1.1.0 classes and
> this bug turned up. It is on my agenda. I will try to fix it tonight.

Apparently Verena is already working on the bug fix. We will merge it
into the 2.6 branch asap.

Christoph

>
> Thanks
>
> Christoph
>
>
> necipakca wrote:
>> i am working now WFS service on mapbender 2.6.2 and when i was developing new
>> wfs search items ,i found that ,,,
>
>> "<wfs:Query  ";
>
>> // add namespace
>> if (strpos($featureTypeName, ":") !== false) {
>> $ft = $this->findFeatureTypeByName($featureTypeName);
>> $ns = $this->getNamespace($featureTypeName);
>> $url = $ft->getNamespace($ns);
>> $postData .= "xmlns:" . $ns . "=\"" . $url . "\" ";
>
>> }
>> $postData .= "typeName=\"" . $featureTypeName . "\">" .
>> $filter .
>> "</wfs:Query></wfs:GetFeature>";
>
>> there is no srsName attribute so GeoServer is directing to wrong BBOX and
>> wrong place.
>
>> but when i was adding srsName attribute wfs:Query every thing is ok .its
>> works!!!
>
>> like that ;
>
>>   "<wfs:Query  srsName=\"EPSG:2320\"   ";
>
>> // add namespace
>> if (strpos($featureTypeName, ":") !== false) {
>> $ft = $this->findFeatureTypeByName($featureTypeName);
>> $ns = $this->getNamespace($featureTypeName);
>> $url = $ft->getNamespace($ns);
>> $postData .= "xmlns:" . $ns . "=\"" . $url . "\" ";
>
>> }
>> $postData .= "typeName=\"" . $featureTypeName . "\">" .
>> $filter .
>> "</wfs:Query></wfs:GetFeature>";
>> Regards,
>> Necip AKCA
>
_______________________________________________
Mapbender_dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapbender_dev

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkyuF8QACgkQGtMIfbycMX5LUQCgtWluhXOnAlsGOq4QP9Buga86
2igAn3V+lIW5iHCd3Pn2TqRMrmmtwUjO
=+jBs
-----END PGP SIGNATURE-----
_______________________________________________
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] hi evreybody, i think there is a problem abouth WFS search via GeoServer WFS Service !

necipakca
hi,
The sound is great!!

but, i think there is a problem,too:(. it relate abouth again with WFS. i am creating new a Wfs conf. on my wfs service.after,i am add my gui from 'asign WFS conf to gui'. problem is that wfsConfStringId which is in gui_elements_vars does not update.so i don't see it in my gui. if i add wfs_conf_id to wfsConfStringId which is own my gui,Every thing is ok.it works very well.

i have examined to code,but i did not find that which is update wfsConfStringId.my php knowledge is not fine maybe so...:)

by the way i receive like this error when adding conf. in my gui,

Notice: administration->getGuisByPermission is deprecated, use user->getApplicationsByPermission instead!
ERROR: a:17:{i:0;s:22:"deneme";i:1;s:9:"admin2_de";i:2;s:9:"admin2_en";i:3;s:17:"admin_de_services";i:4;s:17:"admin_en_services";i:5;s:3:"gui";i:6;s:4:"gui1";i:7;s:4:"gui2";i:8;s:12:"gui_digitize";i:9;s:10:"wms_africa";i:10;s:13:"wms_australia";i:11;s:10:"wms_europe";i:12;s:11:"wms_germany";i:13;s:17:"wms_north_america";i:14;s:13:"wms_worldwide";i:15;s:10:"wms_gdi_de";i:16;s:6:"admin1";}

 

Regards,
Necip AKCA

Reply | Threaded
Open this post in threaded view
|

Re: [Mapbender_dev] hi evreybody, i think there is a problem abouth WFS search via GeoServer WFS Service !

Verena Diewald
Hi,

Am 08.10.2010 13:49, schrieb necipakca:

> hi,
> The sound is great!!
>
> but, i think there is a problem,too:(. it relate abouth again with WFS. i am
> creating new a Wfs conf. on my wfs service.after,i am add my gui from 'asign
> WFS conf to gui'. problem is that wfsConfStringId which is in
> gui_elements_vars does not update.so i don't see it in my gui. if i add
> wfs_conf_id to wfsConfStringId which is own my gui,Every thing is ok.it
> works very well.
>    
You always have to edit the element var wfsConfIdString on your own if
you want to use a new WFS conf for that. That is the normal behaviour of
Mapbender.

> i have examined to code,but i did not find that which is update
> wfsConfStringId.my php knowledge is not fine maybe so...:)
>
> by the way i receive like this error when adding conf. in my gui,
>
> Notice: administration->getGuisByPermission is deprecated, use
> user->getApplicationsByPermission instead!
> ERROR:
> a:17:{i:0;s:22:"deneme";i:1;s:9:"admin2_de";i:2;s:9:"admin2_en";i:3;s:17:"admin_de_services";i:4;s:17:"admin_en_services";i:5;s:3:"gui";i:6;s:4:"gui1";i:7;s:4:"gui2";i:8;s:12:"gui_digitize";i:9;s:10:"wms_africa";i:10;s:13:"wms_australia";i:11;s:10:"wms_europe";i:12;s:11:"wms_germany";i:13;s:17:"wms_north_america";i:14;s:13:"wms_worldwide";i:15;s:10:"wms_gdi_de";i:16;s:6:"admin1";}
>
>    
This "ERROR" is only a log message in one of the classes scripts which
probably someone forgot to remove after testing. I removed it from the
code now.

Best regards,

Verena

>
>
> Regards,
> Necip AKCA
>
>
>    


--


_______________________________________________
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] hi evreybody, i think there is a problem abouth WFS search via GeoServer WFS Service !

Verena Diewald
In reply to this post by Christoph Baudson-3
Hi Christoph.,


task is fixed now. See http://trac.osgeo.org/mapbender/ticket/712 for
more information.


Best regards,

Verena


Am 07.10.2010 20:56, schrieb Christoph Baudson:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Christoph Baudson wrote:
>    
>> You are right. We've just added unit tests for the WFS 1.1.0 classes and
>> this bug turned up. It is on my agenda. I will try to fix it tonight.
>>      
> Apparently Verena is already working on the bug fix. We will merge it
> into the 2.6 branch asap.
>
> Christoph
>
>    
>> Thanks
>>
>> Christoph
>>
>>
>> necipakca wrote:
>>      
>>> i am working now WFS service on mapbender 2.6.2 and when i was developing new
>>> wfs search items ,i found that ,,,
>>>        
>>      
>>> "<wfs:Query  ";
>>>        
>>      
>>> // add namespace
>>> if (strpos($featureTypeName, ":") !== false) {
>>> $ft = $this->findFeatureTypeByName($featureTypeName);
>>> $ns = $this->getNamespace($featureTypeName);
>>> $url = $ft->getNamespace($ns);
>>> $postData .= "xmlns:" . $ns . "=\"" . $url . "\" ";
>>>        
>>      
>>> }
>>> $postData .= "typeName=\"" . $featureTypeName . "\">" .
>>> $filter .
>>> "</wfs:Query></wfs:GetFeature>";
>>>        
>>      
>>> there is no srsName attribute so GeoServer is directing to wrong BBOX and
>>> wrong place.
>>>        
>>      
>>> but when i was adding srsName attribute wfs:Query every thing is ok .its
>>> works!!!
>>>        
>>      
>>> like that ;
>>>        
>>      
>>>    "<wfs:Query  srsName=\"EPSG:2320\"   ";
>>>        
>>      
>>> // add namespace
>>> if (strpos($featureTypeName, ":") !== false) {
>>> $ft = $this->findFeatureTypeByName($featureTypeName);
>>> $ns = $this->getNamespace($featureTypeName);
>>> $url = $ft->getNamespace($ns);
>>> $postData .= "xmlns:" . $ns . "=\"" . $url . "\" ";
>>>        
>>      
>>> }
>>> $postData .= "typeName=\"" . $featureTypeName . "\">" .
>>> $filter .
>>> "</wfs:Query></wfs:GetFeature>";
>>> Regards,
>>> Necip AKCA
>>>        
>>      
> _______________________________________________
> Mapbender_dev mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/mapbender_dev
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAkyuF8QACgkQGtMIfbycMX5LUQCgtWluhXOnAlsGOq4QP9Buga86
> 2igAn3V+lIW5iHCd3Pn2TqRMrmmtwUjO
> =+jBs
> -----END PGP SIGNATURE-----
> _______________________________________________
> Mapbender_dev mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/mapbender_dev
>    


--


_______________________________________________
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] hi evreybody, i think there is a problem abouth WFS search via GeoServer WFS Service !

necipakca
Hi Verena,

I am applied it and it is working very well now.
Thanks,

Regards,
Necip AKCA