problem with sld editor and geoserver

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

problem with sld editor and geoserver

zorg
Hi
If i try to use sldeditor with geoserver wms I get a blank page with no
error
in the log i have this


2010.11.08, 15:33:25,Notice: class_locale: setting locale to fr
2010.11.08, 15:33:25,Notice: locale fr_FR.utf8 ok on linux
2010.11.08, 15:33:25,Notice: mb_validateSession.php: checking file
/mapbender/sld/sld_main.php
2010.11.08, 15:33:25,Notice: gui id not set
2010.11.08, 15:33:25,Notice: gui id set to guiID: admin_en_services
2010.11.08, 15:33:25,Notice: mb_validateSession.php: GUI:
admin_en_services, checking file /mapbender/sld/sld_main.php...session
valid.

If you have nay idea


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

Re: problem with sld editor and geoserver

Michael Schulz
Hi,

you mean the Sld-Editor popup window is completly empty? This is
Mapbender 2.6.2, right? Which Geoserver are you using?

Cheers, Michael


2010/11/8 zorg <[hidden email]>:

> Hi
> If i try to use sldeditor with geoserver wms I get a blank page with no
> error
> in the log i have this
>
>
> 2010.11.08, 15:33:25,Notice: class_locale: setting locale to fr
> 2010.11.08, 15:33:25,Notice: locale fr_FR.utf8 ok on linux
> 2010.11.08, 15:33:25,Notice: mb_validateSession.php: checking file
> /mapbender/sld/sld_main.php
> 2010.11.08, 15:33:25,Notice: gui id not set
> 2010.11.08, 15:33:25,Notice: gui id set to guiID: admin_en_services
> 2010.11.08, 15:33:25,Notice: mb_validateSession.php: GUI: admin_en_services,
> checking file /mapbender/sld/sld_main.php...session valid.
>
> If you have nay idea
>
>
> _______________________________________________
> Mapbender_users mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>



--
-----------------------------------------------------------
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_users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapbender_users
Reply | Threaded
Open this post in threaded view
|

Re: problem with sld editor and geoserver

zorg
I using mapbender  2.6.2,  GeoServer 2.0.2

Yes i'm talking about the sld editor popup (is there another one???)
Le 08/11/2010 16:29, Michael Schulz a écrit :

> Hi,
>
> you mean the Sld-Editor popup window is completly empty? This is
> Mapbender 2.6.2, right? Which Geoserver are you using?
>
> Cheers, Michael
>
>
> 2010/11/8 zorg<[hidden email]>:
>    
>> Hi
>> If i try to use sldeditor with geoserver wms I get a blank page with no
>> error
>> in the log i have this
>>
>>
>> 2010.11.08, 15:33:25,Notice: class_locale: setting locale to fr
>> 2010.11.08, 15:33:25,Notice: locale fr_FR.utf8 ok on linux
>> 2010.11.08, 15:33:25,Notice: mb_validateSession.php: checking file
>> /mapbender/sld/sld_main.php
>> 2010.11.08, 15:33:25,Notice: gui id not set
>> 2010.11.08, 15:33:25,Notice: gui id set to guiID: admin_en_services
>> 2010.11.08, 15:33:25,Notice: mb_validateSession.php: GUI: admin_en_services,
>> checking file /mapbender/sld/sld_main.php...session valid.
>>
>> If you have nay idea
>>
>>
>> _______________________________________________
>> Mapbender_users mailing list
>> [hidden email]
>> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>>
>>      
>
>
>    

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

Re: problem with sld editor and geoserver

Michael Schulz
No, there's no other, my question was more whether the whole window
being completly empty/white or e.g. only the maps or whatever.

I'll have a look into that issue...  Cheers, Michael


2010/11/8 zorg <[hidden email]>:

> I using mapbender  2.6.2,  GeoServer 2.0.2
>
> Yes i'm talking about the sld editor popup (is there another one???)
> Le 08/11/2010 16:29, Michael Schulz a écrit :
>>
>> Hi,
>>
>> you mean the Sld-Editor popup window is completly empty? This is
>> Mapbender 2.6.2, right? Which Geoserver are you using?
>>
>> Cheers, Michael
>>
>>
>> 2010/11/8 zorg<[hidden email]>:
>>
>>>
>>> Hi
>>> If i try to use sldeditor with geoserver wms I get a blank page with no
>>> error
>>> in the log i have this
>>>
>>>
>>> 2010.11.08, 15:33:25,Notice: class_locale: setting locale to fr
>>> 2010.11.08, 15:33:25,Notice: locale fr_FR.utf8 ok on linux
>>> 2010.11.08, 15:33:25,Notice: mb_validateSession.php: checking file
>>> /mapbender/sld/sld_main.php
>>> 2010.11.08, 15:33:25,Notice: gui id not set
>>> 2010.11.08, 15:33:25,Notice: gui id set to guiID: admin_en_services
>>> 2010.11.08, 15:33:25,Notice: mb_validateSession.php: GUI:
>>> admin_en_services,
>>> checking file /mapbender/sld/sld_main.php...session valid.
>>>
>>> If you have nay idea
>>>
>>>
>>> _______________________________________________
>>> Mapbender_users mailing list
>>> [hidden email]
>>> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>>>
>>>
>>
>>
>>
>
> _______________________________________________
> Mapbender_users mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>



--
-----------------------------------------------------------
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_users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapbender_users
Reply | Threaded
Open this post in threaded view
|

Re: problem with sld editor and geoserver

zorg
Hi
everything is blank
I have investigate a little and in fact when sld.main.php is call hte
script doesnt work after line 96 (no error appear)
I have try putting echo "test"; and it doesn't show after line 96 (hope
i'm clear)

/* Check for a related WFS featuretype */
$wfs_conf_id = $dbutils->getLayerWfsConfId($_SESSION["sld_gui_id"],
$layer_id);
if ( $wfs_conf_id ) {
         $featuretype_id = $dbutils->getWfsConfFeatureTypeId($wfs_conf_id);
         $classWfsConf->getelements($featuretype_id);
         $wfs_element = $classWfsConf->elements;
         $fts =
$styledlayerdescriptor->layers[0]->styles[0]->featuretypestyles[0];
         $fts->setElementArray("element_id",$wfs_element->element_id);
         $fts->setElementArray("element_name",$wfs_element->element_name);
} else {
         $wfs_element = false;
}



Le 08/11/2010 20:11, Michael Schulz a écrit :

> No, there's no other, my question was more whether the whole window
> being completly empty/white or e.g. only the maps or whatever.
>
> I'll have a look into that issue...  Cheers, Michael
>
>
> 2010/11/8 zorg<[hidden email]>:
>    
>> I using mapbender  2.6.2,  GeoServer 2.0.2
>>
>> Yes i'm talking about the sld editor popup (is there another one???)
>> Le 08/11/2010 16:29, Michael Schulz a écrit :
>>      
>>> Hi,
>>>
>>> you mean the Sld-Editor popup window is completly empty? This is
>>> Mapbender 2.6.2, right? Which Geoserver are you using?
>>>
>>> Cheers, Michael
>>>
>>>
>>> 2010/11/8 zorg<[hidden email]>:
>>>
>>>        
>>>> Hi
>>>> If i try to use sldeditor with geoserver wms I get a blank page with no
>>>> error
>>>> in the log i have this
>>>>
>>>>
>>>> 2010.11.08, 15:33:25,Notice: class_locale: setting locale to fr
>>>> 2010.11.08, 15:33:25,Notice: locale fr_FR.utf8 ok on linux
>>>> 2010.11.08, 15:33:25,Notice: mb_validateSession.php: checking file
>>>> /mapbender/sld/sld_main.php
>>>> 2010.11.08, 15:33:25,Notice: gui id not set
>>>> 2010.11.08, 15:33:25,Notice: gui id set to guiID: admin_en_services
>>>> 2010.11.08, 15:33:25,Notice: mb_validateSession.php: GUI:
>>>> admin_en_services,
>>>> checking file /mapbender/sld/sld_main.php...session valid.
>>>>
>>>> If you have nay idea
>>>>
>>>>
>>>> _______________________________________________
>>>> Mapbender_users mailing list
>>>> [hidden email]
>>>> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>>>>
>>>>
>>>>          
>>>
>>>
>>>        
>> _______________________________________________
>> Mapbender_users mailing list
>> [hidden email]
>> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>>
>>      
>
>
>    

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

Re: problem with sld editor and geoserver

Michael Schulz
Hi,

ok, thanks for that. Do you have assigned a wfs configuration to a wms
layer on which you want to use the SLD-Editor?

Cheers, Michael

2010/11/9 zorg <[hidden email]>:

> Hi
> everything is blank
> I have investigate a little and in fact when sld.main.php is call hte script
> doesnt work after line 96 (no error appear)
> I have try putting echo "test"; and it doesn't show after line 96 (hope i'm
> clear)
>
> /* Check for a related WFS featuretype */
> $wfs_conf_id = $dbutils->getLayerWfsConfId($_SESSION["sld_gui_id"],
> $layer_id);
> if ( $wfs_conf_id ) {
>        $featuretype_id = $dbutils->getWfsConfFeatureTypeId($wfs_conf_id);
>        $classWfsConf->getelements($featuretype_id);
>        $wfs_element = $classWfsConf->elements;
>        $fts =
> $styledlayerdescriptor->layers[0]->styles[0]->featuretypestyles[0];
>        $fts->setElementArray("element_id",$wfs_element->element_id);
>        $fts->setElementArray("element_name",$wfs_element->element_name);
> } else {
>        $wfs_element = false;
> }
>
>
>
> Le 08/11/2010 20:11, Michael Schulz a écrit :
>>
>> No, there's no other, my question was more whether the whole window
>> being completly empty/white or e.g. only the maps or whatever.
>>
>> I'll have a look into that issue...  Cheers, Michael
>>
>>
>> 2010/11/8 zorg<[hidden email]>:
>>
>>>
>>> I using mapbender  2.6.2,  GeoServer 2.0.2
>>>
>>> Yes i'm talking about the sld editor popup (is there another one???)
>>> Le 08/11/2010 16:29, Michael Schulz a écrit :
>>>
>>>>
>>>> Hi,
>>>>
>>>> you mean the Sld-Editor popup window is completly empty? This is
>>>> Mapbender 2.6.2, right? Which Geoserver are you using?
>>>>
>>>> Cheers, Michael
>>>>
>>>>
>>>> 2010/11/8 zorg<[hidden email]>:
>>>>
>>>>
>>>>>
>>>>> Hi
>>>>> If i try to use sldeditor with geoserver wms I get a blank page with no
>>>>> error
>>>>> in the log i have this
>>>>>
>>>>>
>>>>> 2010.11.08, 15:33:25,Notice: class_locale: setting locale to fr
>>>>> 2010.11.08, 15:33:25,Notice: locale fr_FR.utf8 ok on linux
>>>>> 2010.11.08, 15:33:25,Notice: mb_validateSession.php: checking file
>>>>> /mapbender/sld/sld_main.php
>>>>> 2010.11.08, 15:33:25,Notice: gui id not set
>>>>> 2010.11.08, 15:33:25,Notice: gui id set to guiID: admin_en_services
>>>>> 2010.11.08, 15:33:25,Notice: mb_validateSession.php: GUI:
>>>>> admin_en_services,
>>>>> checking file /mapbender/sld/sld_main.php...session valid.
>>>>>
>>>>> If you have nay idea
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Mapbender_users mailing list
>>>>> [hidden email]
>>>>> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>> _______________________________________________
>>> Mapbender_users mailing list
>>> [hidden email]
>>> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>>>
>>>
>>
>>
>>
>
> _______________________________________________
> Mapbender_users mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>



--
-----------------------------------------------------------
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_users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapbender_users
Reply | Threaded
Open this post in threaded view
|

Re: problem with sld editor and geoserver

zorg
Yes that's what i did



Le 09/11/2010 10:45, Michael Schulz a écrit :

> Hi,
>
> ok, thanks for that. Do you have assigned a wfs configuration to a wms
> layer on which you want to use the SLD-Editor?
>
> Cheers, Michael
>
> 2010/11/9 zorg<[hidden email]>:
>    
>> Hi
>> everything is blank
>> I have investigate a little and in fact when sld.main.php is call hte script
>> doesnt work after line 96 (no error appear)
>> I have try putting echo "test"; and it doesn't show after line 96 (hope i'm
>> clear)
>>
>> /* Check for a related WFS featuretype */
>> $wfs_conf_id = $dbutils->getLayerWfsConfId($_SESSION["sld_gui_id"],
>> $layer_id);
>> if ( $wfs_conf_id ) {
>>         $featuretype_id = $dbutils->getWfsConfFeatureTypeId($wfs_conf_id);
>>         $classWfsConf->getelements($featuretype_id);
>>         $wfs_element = $classWfsConf->elements;
>>         $fts =
>> $styledlayerdescriptor->layers[0]->styles[0]->featuretypestyles[0];
>>         $fts->setElementArray("element_id",$wfs_element->element_id);
>>         $fts->setElementArray("element_name",$wfs_element->element_name);
>> } else {
>>         $wfs_element = false;
>> }
>>
>>
>>
>> Le 08/11/2010 20:11, Michael Schulz a écrit :
>>      
>>> No, there's no other, my question was more whether the whole window
>>> being completly empty/white or e.g. only the maps or whatever.
>>>
>>> I'll have a look into that issue...  Cheers, Michael
>>>
>>>
>>> 2010/11/8 zorg<[hidden email]>:
>>>
>>>        
>>>> I using mapbender  2.6.2,  GeoServer 2.0.2
>>>>
>>>> Yes i'm talking about the sld editor popup (is there another one???)
>>>> Le 08/11/2010 16:29, Michael Schulz a écrit :
>>>>
>>>>          
>>>>> Hi,
>>>>>
>>>>> you mean the Sld-Editor popup window is completly empty? This is
>>>>> Mapbender 2.6.2, right? Which Geoserver are you using?
>>>>>
>>>>> Cheers, Michael
>>>>>
>>>>>
>>>>> 2010/11/8 zorg<[hidden email]>:
>>>>>
>>>>>
>>>>>            
>>>>>> Hi
>>>>>> If i try to use sldeditor with geoserver wms I get a blank page with no
>>>>>> error
>>>>>> in the log i have this
>>>>>>
>>>>>>
>>>>>> 2010.11.08, 15:33:25,Notice: class_locale: setting locale to fr
>>>>>> 2010.11.08, 15:33:25,Notice: locale fr_FR.utf8 ok on linux
>>>>>> 2010.11.08, 15:33:25,Notice: mb_validateSession.php: checking file
>>>>>> /mapbender/sld/sld_main.php
>>>>>> 2010.11.08, 15:33:25,Notice: gui id not set
>>>>>> 2010.11.08, 15:33:25,Notice: gui id set to guiID: admin_en_services
>>>>>> 2010.11.08, 15:33:25,Notice: mb_validateSession.php: GUI:
>>>>>> admin_en_services,
>>>>>> checking file /mapbender/sld/sld_main.php...session valid.
>>>>>>
>>>>>> If you have nay idea
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Mapbender_users mailing list
>>>>>> [hidden email]
>>>>>> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>>>>>>
>>>>>>
>>>>>>
>>>>>>              
>>>>>
>>>>>
>>>>>            
>>>> _______________________________________________
>>>> Mapbender_users mailing list
>>>> [hidden email]
>>>> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>>>>
>>>>
>>>>          
>>>
>>>
>>>        
>> _______________________________________________
>> Mapbender_users mailing list
>> [hidden email]
>> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>>
>>      
>
>
>    

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

Re: problem with sld editor and geoserver

zorg
In reply to this post by Michael Schulz
Hi
Have I done something wrong or is this a bug
do you need more information
Thanks
Le 09/11/2010 10:45, Michael Schulz a écrit :

> Hi,
>
> ok, thanks for that. Do you have assigned a wfs configuration to a wms
> layer on which you want to use the SLD-Editor?
>
> Cheers, Michael
>
> 2010/11/9 zorg<[hidden email]>:
>    
>> Hi
>> everything is blank
>> I have investigate a little and in fact when sld.main.php is call hte script
>> doesnt work after line 96 (no error appear)
>> I have try putting echo "test"; and it doesn't show after line 96 (hope i'm
>> clear)
>>
>> /* Check for a related WFS featuretype */
>> $wfs_conf_id = $dbutils->getLayerWfsConfId($_SESSION["sld_gui_id"],
>> $layer_id);
>> if ( $wfs_conf_id ) {
>>         $featuretype_id = $dbutils->getWfsConfFeatureTypeId($wfs_conf_id);
>>         $classWfsConf->getelements($featuretype_id);
>>         $wfs_element = $classWfsConf->elements;
>>         $fts =
>> $styledlayerdescriptor->layers[0]->styles[0]->featuretypestyles[0];
>>         $fts->setElementArray("element_id",$wfs_element->element_id);
>>         $fts->setElementArray("element_name",$wfs_element->element_name);
>> } else {
>>         $wfs_element = false;
>> }
>>
>>
>>
>> Le 08/11/2010 20:11, Michael Schulz a écrit :
>>      
>>> No, there's no other, my question was more whether the whole window
>>> being completly empty/white or e.g. only the maps or whatever.
>>>
>>> I'll have a look into that issue...  Cheers, Michael
>>>
>>>
>>> 2010/11/8 zorg<[hidden email]>:
>>>
>>>        
>>>> I using mapbender  2.6.2,  GeoServer 2.0.2
>>>>
>>>> Yes i'm talking about the sld editor popup (is there another one???)
>>>> Le 08/11/2010 16:29, Michael Schulz a écrit :
>>>>
>>>>          
>>>>> Hi,
>>>>>
>>>>> you mean the Sld-Editor popup window is completly empty? This is
>>>>> Mapbender 2.6.2, right? Which Geoserver are you using?
>>>>>
>>>>> Cheers, Michael
>>>>>
>>>>>
>>>>> 2010/11/8 zorg<[hidden email]>:
>>>>>
>>>>>
>>>>>            
>>>>>> Hi
>>>>>> If i try to use sldeditor with geoserver wms I get a blank page with no
>>>>>> error
>>>>>> in the log i have this
>>>>>>
>>>>>>
>>>>>> 2010.11.08, 15:33:25,Notice: class_locale: setting locale to fr
>>>>>> 2010.11.08, 15:33:25,Notice: locale fr_FR.utf8 ok on linux
>>>>>> 2010.11.08, 15:33:25,Notice: mb_validateSession.php: checking file
>>>>>> /mapbender/sld/sld_main.php
>>>>>> 2010.11.08, 15:33:25,Notice: gui id not set
>>>>>> 2010.11.08, 15:33:25,Notice: gui id set to guiID: admin_en_services
>>>>>> 2010.11.08, 15:33:25,Notice: mb_validateSession.php: GUI:
>>>>>> admin_en_services,
>>>>>> checking file /mapbender/sld/sld_main.php...session valid.
>>>>>>
>>>>>> If you have nay idea
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Mapbender_users mailing list
>>>>>> [hidden email]
>>>>>> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>>>>>>
>>>>>>
>>>>>>
>>>>>>              
>>>>>
>>>>>
>>>>>            
>>>> _______________________________________________
>>>> Mapbender_users mailing list
>>>> [hidden email]
>>>> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>>>>
>>>>
>>>>          
>>>
>>>
>>>        
>> _______________________________________________
>> Mapbender_users mailing list
>> [hidden email]
>> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>>
>>      
>
>
>    

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

Re: problem with sld editor and geoserver

Michael Schulz
Hi,

no, I just need some time to setup a corresponding environment, don't
yet have a MB 2.6.2 with Geoserver 2.0 somewhere up and running ...
But, did you have a look in the php error log file?

I assume this is a bug, so it would be good if you could file a ticket
for it and assign it to me (mschulz).

Cheers, Michael

2010/11/10 zorg <[hidden email]>:

> Hi
> Have I done something wrong or is this a bug
> do you need more information
> Thanks
> Le 09/11/2010 10:45, Michael Schulz a écrit :
>>
>> Hi,
>>
>> ok, thanks for that. Do you have assigned a wfs configuration to a wms
>> layer on which you want to use the SLD-Editor?
>>
>> Cheers, Michael
>>
>> 2010/11/9 zorg<[hidden email]>:
>>
>>>
>>> Hi
>>> everything is blank
>>> I have investigate a little and in fact when sld.main.php is call hte
>>> script
>>> doesnt work after line 96 (no error appear)
>>> I have try putting echo "test"; and it doesn't show after line 96 (hope
>>> i'm
>>> clear)
>>>
>>> /* Check for a related WFS featuretype */
>>> $wfs_conf_id = $dbutils->getLayerWfsConfId($_SESSION["sld_gui_id"],
>>> $layer_id);
>>> if ( $wfs_conf_id ) {
>>>        $featuretype_id = $dbutils->getWfsConfFeatureTypeId($wfs_conf_id);
>>>        $classWfsConf->getelements($featuretype_id);
>>>        $wfs_element = $classWfsConf->elements;
>>>        $fts =
>>> $styledlayerdescriptor->layers[0]->styles[0]->featuretypestyles[0];
>>>        $fts->setElementArray("element_id",$wfs_element->element_id);
>>>        $fts->setElementArray("element_name",$wfs_element->element_name);
>>> } else {
>>>        $wfs_element = false;
>>> }
>>>
>>>
>>>
>>> Le 08/11/2010 20:11, Michael Schulz a écrit :
>>>
>>>>
>>>> No, there's no other, my question was more whether the whole window
>>>> being completly empty/white or e.g. only the maps or whatever.
>>>>
>>>> I'll have a look into that issue...  Cheers, Michael
>>>>
>>>>
>>>> 2010/11/8 zorg<[hidden email]>:
>>>>
>>>>
>>>>>
>>>>> I using mapbender  2.6.2,  GeoServer 2.0.2
>>>>>
>>>>> Yes i'm talking about the sld editor popup (is there another one???)
>>>>> Le 08/11/2010 16:29, Michael Schulz a écrit :
>>>>>
>>>>>
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> you mean the Sld-Editor popup window is completly empty? This is
>>>>>> Mapbender 2.6.2, right? Which Geoserver are you using?
>>>>>>
>>>>>> Cheers, Michael
>>>>>>
>>>>>>
>>>>>> 2010/11/8 zorg<[hidden email]>:
>>>>>>
>>>>>>
>>>>>>
>>>>>>>
>>>>>>> Hi
>>>>>>> If i try to use sldeditor with geoserver wms I get a blank page with
>>>>>>> no
>>>>>>> error
>>>>>>> in the log i have this
>>>>>>>
>>>>>>>
>>>>>>> 2010.11.08, 15:33:25,Notice: class_locale: setting locale to fr
>>>>>>> 2010.11.08, 15:33:25,Notice: locale fr_FR.utf8 ok on linux
>>>>>>> 2010.11.08, 15:33:25,Notice: mb_validateSession.php: checking file
>>>>>>> /mapbender/sld/sld_main.php
>>>>>>> 2010.11.08, 15:33:25,Notice: gui id not set
>>>>>>> 2010.11.08, 15:33:25,Notice: gui id set to guiID: admin_en_services
>>>>>>> 2010.11.08, 15:33:25,Notice: mb_validateSession.php: GUI:
>>>>>>> admin_en_services,
>>>>>>> checking file /mapbender/sld/sld_main.php...session valid.
>>>>>>>
>>>>>>> If you have nay idea
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Mapbender_users mailing list
>>>>>>> [hidden email]
>>>>>>> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Mapbender_users mailing list
>>>>> [hidden email]
>>>>> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>> _______________________________________________
>>> Mapbender_users mailing list
>>> [hidden email]
>>> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>>>
>>>
>>
>>
>>
>
>



--
-----------------------------------------------------------
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_users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapbender_users
Reply | Threaded
Open this post in threaded view
|

Re: problem with sld editor and geoserver

Michael Schulz
Hi,

ok, I could reproduce this behaviour with MB 2.7 also. This is a
problem of the SLD parser (it has nothing to do with the wfs_conf
assignment to a wms layer). The SLD-Editor has been initially
developed and tested for Mapserver. I have done some things to be able
to handle also GeoServer, but that was for GS 1.6/1.7 and especially
prior to GS supporting the getStyles request.

I think from GS 2 onwards the getStyles request is supported but the
SLD parser is currently not able to cope with it. This would mean it
will need to be overhauled for this requirement. Unfortunately I don't
have enough ressources at the moment to do this.

Zorg, do you have experience and/or ressources to look into this?

Cheers, Michael


2010/11/10 Michael Schulz <[hidden email]>:

> Hi,
>
> no, I just need some time to setup a corresponding environment, don't
> yet have a MB 2.6.2 with Geoserver 2.0 somewhere up and running ...
> But, did you have a look in the php error log file?
>
> I assume this is a bug, so it would be good if you could file a ticket
> for it and assign it to me (mschulz).
>
> Cheers, Michael
>
> 2010/11/10 zorg <[hidden email]>:
>> Hi
>> Have I done something wrong or is this a bug
>> do you need more information
>> Thanks
>> Le 09/11/2010 10:45, Michael Schulz a écrit :
>>>
>>> Hi,
>>>
>>> ok, thanks for that. Do you have assigned a wfs configuration to a wms
>>> layer on which you want to use the SLD-Editor?
>>>
>>> Cheers, Michael
>>>
>>> 2010/11/9 zorg<[hidden email]>:
>>>
>>>>
>>>> Hi
>>>> everything is blank
>>>> I have investigate a little and in fact when sld.main.php is call hte
>>>> script
>>>> doesnt work after line 96 (no error appear)
>>>> I have try putting echo "test"; and it doesn't show after line 96 (hope
>>>> i'm
>>>> clear)
>>>>
>>>> /* Check for a related WFS featuretype */
>>>> $wfs_conf_id = $dbutils->getLayerWfsConfId($_SESSION["sld_gui_id"],
>>>> $layer_id);
>>>> if ( $wfs_conf_id ) {
>>>>        $featuretype_id = $dbutils->getWfsConfFeatureTypeId($wfs_conf_id);
>>>>        $classWfsConf->getelements($featuretype_id);
>>>>        $wfs_element = $classWfsConf->elements;
>>>>        $fts =
>>>> $styledlayerdescriptor->layers[0]->styles[0]->featuretypestyles[0];
>>>>        $fts->setElementArray("element_id",$wfs_element->element_id);
>>>>        $fts->setElementArray("element_name",$wfs_element->element_name);
>>>> } else {
>>>>        $wfs_element = false;
>>>> }
>>>>
>>>>
>>>>
>>>> Le 08/11/2010 20:11, Michael Schulz a écrit :
>>>>
>>>>>
>>>>> No, there's no other, my question was more whether the whole window
>>>>> being completly empty/white or e.g. only the maps or whatever.
>>>>>
>>>>> I'll have a look into that issue...  Cheers, Michael
>>>>>
>>>>>
>>>>> 2010/11/8 zorg<[hidden email]>:
>>>>>
>>>>>
>>>>>>
>>>>>> I using mapbender  2.6.2,  GeoServer 2.0.2
>>>>>>
>>>>>> Yes i'm talking about the sld editor popup (is there another one???)
>>>>>> Le 08/11/2010 16:29, Michael Schulz a écrit :
>>>>>>
>>>>>>
>>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> you mean the Sld-Editor popup window is completly empty? This is
>>>>>>> Mapbender 2.6.2, right? Which Geoserver are you using?
>>>>>>>
>>>>>>> Cheers, Michael
>>>>>>>
>>>>>>>
>>>>>>> 2010/11/8 zorg<[hidden email]>:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>
>>>>>>>> Hi
>>>>>>>> If i try to use sldeditor with geoserver wms I get a blank page with
>>>>>>>> no
>>>>>>>> error
>>>>>>>> in the log i have this
>>>>>>>>
>>>>>>>>
>>>>>>>> 2010.11.08, 15:33:25,Notice: class_locale: setting locale to fr
>>>>>>>> 2010.11.08, 15:33:25,Notice: locale fr_FR.utf8 ok on linux
>>>>>>>> 2010.11.08, 15:33:25,Notice: mb_validateSession.php: checking file
>>>>>>>> /mapbender/sld/sld_main.php
>>>>>>>> 2010.11.08, 15:33:25,Notice: gui id not set
>>>>>>>> 2010.11.08, 15:33:25,Notice: gui id set to guiID: admin_en_services
>>>>>>>> 2010.11.08, 15:33:25,Notice: mb_validateSession.php: GUI:
>>>>>>>> admin_en_services,
>>>>>>>> checking file /mapbender/sld/sld_main.php...session valid.
>>>>>>>>
>>>>>>>> If you have nay idea
>>>>>>>>
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Mapbender_users mailing list
>>>>>>>> [hidden email]
>>>>>>>> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Mapbender_users mailing list
>>>>>> [hidden email]
>>>>>> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> Mapbender_users mailing list
>>>> [hidden email]
>>>> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>
>
>
> --
> -----------------------------------------------------------
> 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
>



--
-----------------------------------------------------------
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_users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapbender_users
Reply | Threaded
Open this post in threaded view
|

Re: problem with sld editor and geoserver

Karim Malhas
Hello Michael,

> ok, I could reproduce this behaviour with MB 2.7 also. This is a
> problem of the SLD parser (it has nothing to do with the wfs_conf
> assignment to a wms layer). The SLD-Editor has been initially
> developed and tested for Mapserver. I have done some things to be able
> to handle also GeoServer, but that was for GS 1.6/1.7 and especially
> prior to GS supporting the getStyles request.
>
> I think from GS 2 onwards the getStyles request is supported but the
> SLD parser is currently not able to cope with it. This would mean it
> will need to be overhauled for this requirement. Unfortunately I don't
> have enough ressources at the moment to do this.

Do you have a specific example of where the parsing fails ? No time to
fix here, just curious.

Regards,
Karim

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

Re: problem with sld editor and geoserver

Michael Schulz
Hi Karim,

the sld parser, was done the same way the older versions of the wms
parsing were. The first and presumably not too complicated issue to
overcome is namespace support. The next issue is the supported sld
features problem. Since it was originally done for mapserver, it
covers basically mapserver sld functionality and only geoserver sld
where it overlaps. Although we're talking OGC standards (in my
experience) the SLD implementation varies from WMS to WMS in some
points, which can make parsing an sld pretty complicated (e.g. see an
example for that on the discussion page of the SLD integration
http://www.mapbender.org/Talk:Sld_integration)

I currently checking whether the namespace issue is easy to fix and
will come back with an answer later ...

Cheers, Michael

2010/11/10 Karim Malhas <[hidden email]>:

> Hello Michael,
>
>> ok, I could reproduce this behaviour with MB 2.7 also. This is a
>> problem of the SLD parser (it has nothing to do with the wfs_conf
>> assignment to a wms layer). The SLD-Editor has been initially
>> developed and tested for Mapserver. I have done some things to be able
>> to handle also GeoServer, but that was for GS 1.6/1.7 and especially
>> prior to GS supporting the getStyles request.
>>
>> I think from GS 2 onwards the getStyles request is supported but the
>> SLD parser is currently not able to cope with it. This would mean it
>> will need to be overhauled for this requirement. Unfortunately I don't
>> have enough ressources at the moment to do this.
>
> Do you have a specific example of where the parsing fails ? No time to
> fix here, just curious.
>
> Regards,
> Karim
>
> _______________________________________________
> Mapbender_users mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>



--
-----------------------------------------------------------
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_users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapbender_users
Reply | Threaded
Open this post in threaded view
|

Re: problem with sld editor and geoserver

Michael Schulz
Hi Karim and Zorg,

ok, I could narrow down the problem a little and did some workarounds
to see whether it would work at all:

- after eliminating the namespace problem (use xml_parser_create_ns)
it did turn out that Geoserver unlike Mapserver uses <ogc:literal>
element e.g. for the Value of <size>. So far the Literal tag was only
handled in the filter parser... And Geoserver uses the <isdefault> tag
which wasn't treated either.

This small patch should at least get the SLD-Editor to parse the SLD
and display most of its contents, but the value e.g. of a <size> tag
is not evaluated since it sits inside a literal. Thus changing the SLD
and using the changed SLD with Geoserver will likely not work.
Therefore the new or rather unhandled tags have to be taken into
account and the object modell has to be adapted accordingly.

Cheers, Michael

Here is the patch-diff:

+++ sld_parse.php       (Arbeitskopie)
@@ -90,7 +90,7 @@
  */
 function parseSld($data)
 {
-       $xml_parser = xml_parser_create();
+       $xml_parser = xml_parser_create_ns();
        xml_parser_set_option($xml_parser, XML_OPTION_CASE_FOLDING, 0);
        xml_parse_into_struct($xml_parser, $data, $vals, $index);
        xml_parser_free($xml_parser);
@@ -99,11 +99,12 @@
        $parent = array();
        $objects = array();
        $parentactual = 0;
-
+
        for ($i=0; $i<count($vals); $i++)
        {
                $element = $vals[$i];
-               $tag = $element["tag"];
+               $tagAr = explode(":",$element["tag"]);
+               $tag = count($tagAr)>1?$tagAr[2]:$tagAr[0];
                $tagname=strtoupper($tag);
                switch($tagname)
                {
@@ -859,6 +860,10 @@
                        //END TODO
                        //von den vorhergegangenen XML Elementen

+                       // we have some new tags... as a workaround skip them
+                       case "LITERAL":
+                       case "ISDEFAULT":
+                               break;

                        default:
                                        $temp = "";
--------- end of patch


2010/11/10 Michael Schulz <[hidden email]>:

> Hi Karim,
>
> the sld parser, was done the same way the older versions of the wms
> parsing were. The first and presumably not too complicated issue to
> overcome is namespace support. The next issue is the supported sld
> features problem. Since it was originally done for mapserver, it
> covers basically mapserver sld functionality and only geoserver sld
> where it overlaps. Although we're talking OGC standards (in my
> experience) the SLD implementation varies from WMS to WMS in some
> points, which can make parsing an sld pretty complicated (e.g. see an
> example for that on the discussion page of the SLD integration
> http://www.mapbender.org/Talk:Sld_integration)
>
> I currently checking whether the namespace issue is easy to fix and
> will come back with an answer later ...
>
> Cheers, Michael
>
> 2010/11/10 Karim Malhas <[hidden email]>:
>> Hello Michael,
>>
>>> ok, I could reproduce this behaviour with MB 2.7 also. This is a
>>> problem of the SLD parser (it has nothing to do with the wfs_conf
>>> assignment to a wms layer). The SLD-Editor has been initially
>>> developed and tested for Mapserver. I have done some things to be able
>>> to handle also GeoServer, but that was for GS 1.6/1.7 and especially
>>> prior to GS supporting the getStyles request.
>>>
>>> I think from GS 2 onwards the getStyles request is supported but the
>>> SLD parser is currently not able to cope with it. This would mean it
>>> will need to be overhauled for this requirement. Unfortunately I don't
>>> have enough ressources at the moment to do this.
>>
>> Do you have a specific example of where the parsing fails ? No time to
>> fix here, just curious.
>>
>> Regards,
>> Karim
>>
>> _______________________________________________
>> Mapbender_users mailing list
>> [hidden email]
>> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>>
>
>
>
> --
> -----------------------------------------------------------
> 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
>



--
-----------------------------------------------------------
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_users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapbender_users
Reply | Threaded
Open this post in threaded view
|

Re: problem with sld editor and geoserver

Christoph Baudson (Wheregroup)
Thanks for your work Michael :-) Is it something we could use in trunk?

Christoph


Michael Schulz wrote:

> Hi Karim and Zorg,
>
> ok, I could narrow down the problem a little and did some workarounds
> to see whether it would work at all:
>
> - after eliminating the namespace problem (use xml_parser_create_ns)
> it did turn out that Geoserver unlike Mapserver uses <ogc:literal>
> element e.g. for the Value of <size>. So far the Literal tag was only
> handled in the filter parser... And Geoserver uses the <isdefault> tag
> which wasn't treated either.
>
> This small patch should at least get the SLD-Editor to parse the SLD
> and display most of its contents, but the value e.g. of a <size> tag
> is not evaluated since it sits inside a literal. Thus changing the SLD
> and using the changed SLD with Geoserver will likely not work.
> Therefore the new or rather unhandled tags have to be taken into
> account and the object modell has to be adapted accordingly.
>
> Cheers, Michael
>
> Here is the patch-diff:
>
> +++ sld_parse.php       (Arbeitskopie)
> @@ -90,7 +90,7 @@
>   */
>  function parseSld($data)
>  {
> -       $xml_parser = xml_parser_create();
> +       $xml_parser = xml_parser_create_ns();
>         xml_parser_set_option($xml_parser, XML_OPTION_CASE_FOLDING, 0);
>         xml_parse_into_struct($xml_parser, $data, $vals, $index);
>         xml_parser_free($xml_parser);
> @@ -99,11 +99,12 @@
>         $parent = array();
>         $objects = array();
>         $parentactual = 0;
> -
> +
>         for ($i=0; $i<count($vals); $i++)
>         {
>                 $element = $vals[$i];
> -               $tag = $element["tag"];
> +               $tagAr = explode(":",$element["tag"]);
> +               $tag = count($tagAr)>1?$tagAr[2]:$tagAr[0];
>                 $tagname=strtoupper($tag);
>                 switch($tagname)
>                 {
> @@ -859,6 +860,10 @@
>                         //END TODO
>                         //von den vorhergegangenen XML Elementen
>
> +                       // we have some new tags... as a workaround skip them
> +                       case "LITERAL":
> +                       case "ISDEFAULT":
> +                               break;
>
>                         default:
>                                         $temp = "";
> --------- end of patch
>
>
> 2010/11/10 Michael Schulz <[hidden email]>:
>  
>> Hi Karim,
>>
>> the sld parser, was done the same way the older versions of the wms
>> parsing were. The first and presumably not too complicated issue to
>> overcome is namespace support. The next issue is the supported sld
>> features problem. Since it was originally done for mapserver, it
>> covers basically mapserver sld functionality and only geoserver sld
>> where it overlaps. Although we're talking OGC standards (in my
>> experience) the SLD implementation varies from WMS to WMS in some
>> points, which can make parsing an sld pretty complicated (e.g. see an
>> example for that on the discussion page of the SLD integration
>> http://www.mapbender.org/Talk:Sld_integration)
>>
>> I currently checking whether the namespace issue is easy to fix and
>> will come back with an answer later ...
>>
>> Cheers, Michael
>>
>> 2010/11/10 Karim Malhas <[hidden email]>:
>>    
>>> Hello Michael,
>>>
>>>      
>>>> ok, I could reproduce this behaviour with MB 2.7 also. This is a
>>>> problem of the SLD parser (it has nothing to do with the wfs_conf
>>>> assignment to a wms layer). The SLD-Editor has been initially
>>>> developed and tested for Mapserver. I have done some things to be able
>>>> to handle also GeoServer, but that was for GS 1.6/1.7 and especially
>>>> prior to GS supporting the getStyles request.
>>>>
>>>> I think from GS 2 onwards the getStyles request is supported but the
>>>> SLD parser is currently not able to cope with it. This would mean it
>>>> will need to be overhauled for this requirement. Unfortunately I don't
>>>> have enough ressources at the moment to do this.
>>>>        
>>> Do you have a specific example of where the parsing fails ? No time to
>>> fix here, just curious.
>>>
>>> Regards,
>>> Karim
>>>
>>> _______________________________________________
>>> Mapbender_users mailing list
>>> [hidden email]
>>> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>>>
>>>      
>>
>> --
>> -----------------------------------------------------------
>> 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
>>
>>    
>
>
>
>  


--

********************************************
Where2B Konferenz 2010
09. Dezember 2010 in Bonn
www.where2b-conference.com
********************************************

----------------------------------

Aufwind durch Wissen!

Qualifizierte OpenSource-Schulungen
bei der www.foss-academy.eu

----------------------------------

_______________________________________

W h e r e G r o u p GmbH & Co. KG

Siemensstraße 8
53121 Bonn
Germany

Christoph Baudson
Anwendungsentwickler

Fon: +49 (0)228 / 90 90 38 - 15
Fax: +49 (0)228 / 90 90 38 - 11
[hidden email]
www.wheregroup.com
Amtsgericht Bonn, HRA 6788
_______________________________________

Komplementärin:
WhereGroup Verwaltungs GmbH
vertreten durch:
Olaf Knopp, Peter Stamm
_______________________________________

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

Re: problem with sld editor and geoserver

Michael Schulz
Hi Christoph,

not sure, this is really just to show that the SLD-Editor is able to
open the Geoserver SLD, but at the moment these small workarounds
won't bring you to actually use the SLD. When the SLD is read it is
saved "as is" in the DB, so basically what should happen, when you
open the Editor is that you see two similar maps, because the one that
uses SLD-URL simply will feed Geoserver its own SLD. But when you
start editing the SLD, the internal sld-object is "encoded" as XML and
since we don't treat the new tags they won't make it in this SLD-XML
and presumably Geoserver will either just not use the SLD or it won't
draw the layer ...

Cheers, Michael

2010/11/10 Christoph Baudson <[hidden email]>:

> Thanks for your work Michael :-) Is it something we could use in trunk?
>
> Christoph
>
>
> Michael Schulz wrote:
>>
>> Hi Karim and Zorg,
>>
>> ok, I could narrow down the problem a little and did some workarounds
>> to see whether it would work at all:
>>
>> - after eliminating the namespace problem (use xml_parser_create_ns)
>> it did turn out that Geoserver unlike Mapserver uses <ogc:literal>
>> element e.g. for the Value of <size>. So far the Literal tag was only
>> handled in the filter parser... And Geoserver uses the <isdefault> tag
>> which wasn't treated either.
>>
>> This small patch should at least get the SLD-Editor to parse the SLD
>> and display most of its contents, but the value e.g. of a <size> tag
>> is not evaluated since it sits inside a literal. Thus changing the SLD
>> and using the changed SLD with Geoserver will likely not work.
>> Therefore the new or rather unhandled tags have to be taken into
>> account and the object modell has to be adapted accordingly.
>>
>> Cheers, Michael
>>
>> Here is the patch-diff:
>>
>> +++ sld_parse.php       (Arbeitskopie)
>> @@ -90,7 +90,7 @@
>>  */
>>  function parseSld($data)
>>  {
>> -       $xml_parser = xml_parser_create();
>> +       $xml_parser = xml_parser_create_ns();
>>        xml_parser_set_option($xml_parser, XML_OPTION_CASE_FOLDING, 0);
>>        xml_parse_into_struct($xml_parser, $data, $vals, $index);
>>        xml_parser_free($xml_parser);
>> @@ -99,11 +99,12 @@
>>        $parent = array();
>>        $objects = array();
>>        $parentactual = 0;
>> -
>> +
>>        for ($i=0; $i<count($vals); $i++)
>>        {
>>                $element = $vals[$i];
>> -               $tag = $element["tag"];
>> +               $tagAr = explode(":",$element["tag"]);
>> +               $tag = count($tagAr)>1?$tagAr[2]:$tagAr[0];
>>                $tagname=strtoupper($tag);
>>                switch($tagname)
>>                {
>> @@ -859,6 +860,10 @@
>>                        //END TODO
>>                        //von den vorhergegangenen XML Elementen
>>
>> +                       // we have some new tags... as a workaround skip
>> them
>> +                       case "LITERAL":
>> +                       case "ISDEFAULT":
>> +                               break;
>>
>>                        default:
>>                                        $temp = "";
>> --------- end of patch
>>
>>
>> 2010/11/10 Michael Schulz <[hidden email]>:
>>
>>>
>>> Hi Karim,
>>>
>>> the sld parser, was done the same way the older versions of the wms
>>> parsing were. The first and presumably not too complicated issue to
>>> overcome is namespace support. The next issue is the supported sld
>>> features problem. Since it was originally done for mapserver, it
>>> covers basically mapserver sld functionality and only geoserver sld
>>> where it overlaps. Although we're talking OGC standards (in my
>>> experience) the SLD implementation varies from WMS to WMS in some
>>> points, which can make parsing an sld pretty complicated (e.g. see an
>>> example for that on the discussion page of the SLD integration
>>> http://www.mapbender.org/Talk:Sld_integration)
>>>
>>> I currently checking whether the namespace issue is easy to fix and
>>> will come back with an answer later ...
>>>
>>> Cheers, Michael
>>>
>>> 2010/11/10 Karim Malhas <[hidden email]>:
>>>
>>>>
>>>> Hello Michael,
>>>>
>>>>
>>>>>
>>>>> ok, I could reproduce this behaviour with MB 2.7 also. This is a
>>>>> problem of the SLD parser (it has nothing to do with the wfs_conf
>>>>> assignment to a wms layer). The SLD-Editor has been initially
>>>>> developed and tested for Mapserver. I have done some things to be able
>>>>> to handle also GeoServer, but that was for GS 1.6/1.7 and especially
>>>>> prior to GS supporting the getStyles request.
>>>>>
>>>>> I think from GS 2 onwards the getStyles request is supported but the
>>>>> SLD parser is currently not able to cope with it. This would mean it
>>>>> will need to be overhauled for this requirement. Unfortunately I don't
>>>>> have enough ressources at the moment to do this.
>>>>>
>>>>
>>>> Do you have a specific example of where the parsing fails ? No time to
>>>> fix here, just curious.
>>>>
>>>> Regards,
>>>> Karim
>>>>
>>>> _______________________________________________
>>>> Mapbender_users mailing list
>>>> [hidden email]
>>>> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>>>>
>>>>
>>>
>>> --
>>> -----------------------------------------------------------
>>> 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
>>>
>>>
>>
>>
>>
>>
>
>
> --
>
> ********************************************
> Where2B Konferenz 2010
> 09. Dezember 2010 in Bonn
> www.where2b-conference.com
> ********************************************
> ----------------------------------
>
> Aufwind durch Wissen!
>
> Qualifizierte OpenSource-Schulungen
> bei der www.foss-academy.eu
>
> ----------------------------------
> _______________________________________
>
> W h e r e G r o u p GmbH & Co. KG
>
> Siemensstraße 8
> 53121 Bonn
> Germany
>
> Christoph Baudson
> Anwendungsentwickler
>
> Fon: +49 (0)228 / 90 90 38 - 15
> Fax: +49 (0)228 / 90 90 38 - 11
> [hidden email]
> www.wheregroup.com
> Amtsgericht Bonn, HRA 6788
> _______________________________________
>
> Komplementärin:
> WhereGroup Verwaltungs GmbH
> vertreten durch:
> Olaf Knopp, Peter Stamm
> _______________________________________
> _______________________________________________
> Mapbender_users mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>



--
-----------------------------------------------------------
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_users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapbender_users
Reply | Threaded
Open this post in threaded view
|

Re: problem with sld editor and geoserver

zorg
In reply to this post by Michael Schulz
Hi
I'm  very happy to see a such open community

thanks all for your help

I'm not very experience with this but I'll try to look further next week



Le 10/11/2010 13:49, Michael Schulz a écrit :

> Hi,
>
> ok, I could reproduce this behaviour with MB 2.7 also. This is a
> problem of the SLD parser (it has nothing to do with the wfs_conf
> assignment to a wms layer). The SLD-Editor has been initially
> developed and tested for Mapserver. I have done some things to be able
> to handle also GeoServer, but that was for GS 1.6/1.7 and especially
> prior to GS supporting the getStyles request.
>
> I think from GS 2 onwards the getStyles request is supported but the
> SLD parser is currently not able to cope with it. This would mean it
> will need to be overhauled for this requirement. Unfortunately I don't
> have enough ressources at the moment to do this.
>
> Zorg, do you have experience and/or ressources to look into this?
>
> Cheers, Michael
>
>
> 2010/11/10 Michael Schulz<[hidden email]>:
>    
>> Hi,
>>
>> no, I just need some time to setup a corresponding environment, don't
>> yet have a MB 2.6.2 with Geoserver 2.0 somewhere up and running ...
>> But, did you have a look in the php error log file?
>>
>> I assume this is a bug, so it would be good if you could file a ticket
>> for it and assign it to me (mschulz).
>>
>> Cheers, Michael
>>
>> 2010/11/10 zorg<[hidden email]>:
>>      
>>> Hi
>>> Have I done something wrong or is this a bug
>>> do you need more information
>>> Thanks
>>> Le 09/11/2010 10:45, Michael Schulz a écrit :
>>>        
>>>> Hi,
>>>>
>>>> ok, thanks for that. Do you have assigned a wfs configuration to a wms
>>>> layer on which you want to use the SLD-Editor?
>>>>
>>>> Cheers, Michael
>>>>
>>>> 2010/11/9 zorg<[hidden email]>:
>>>>
>>>>          
>>>>> Hi
>>>>> everything is blank
>>>>> I have investigate a little and in fact when sld.main.php is call hte
>>>>> script
>>>>> doesnt work after line 96 (no error appear)
>>>>> I have try putting echo "test"; and it doesn't show after line 96 (hope
>>>>> i'm
>>>>> clear)
>>>>>
>>>>> /* Check for a related WFS featuretype */
>>>>> $wfs_conf_id = $dbutils->getLayerWfsConfId($_SESSION["sld_gui_id"],
>>>>> $layer_id);
>>>>> if ( $wfs_conf_id ) {
>>>>>         $featuretype_id = $dbutils->getWfsConfFeatureTypeId($wfs_conf_id);
>>>>>         $classWfsConf->getelements($featuretype_id);
>>>>>         $wfs_element = $classWfsConf->elements;
>>>>>         $fts =
>>>>> $styledlayerdescriptor->layers[0]->styles[0]->featuretypestyles[0];
>>>>>         $fts->setElementArray("element_id",$wfs_element->element_id);
>>>>>         $fts->setElementArray("element_name",$wfs_element->element_name);
>>>>> } else {
>>>>>         $wfs_element = false;
>>>>> }
>>>>>
>>>>>
>>>>>
>>>>> Le 08/11/2010 20:11, Michael Schulz a écrit :
>>>>>
>>>>>            
>>>>>> No, there's no other, my question was more whether the whole window
>>>>>> being completly empty/white or e.g. only the maps or whatever.
>>>>>>
>>>>>> I'll have a look into that issue...  Cheers, Michael
>>>>>>
>>>>>>
>>>>>> 2010/11/8 zorg<[hidden email]>:
>>>>>>
>>>>>>
>>>>>>              
>>>>>>> I using mapbender  2.6.2,  GeoServer 2.0.2
>>>>>>>
>>>>>>> Yes i'm talking about the sld editor popup (is there another one???)
>>>>>>> Le 08/11/2010 16:29, Michael Schulz a écrit :
>>>>>>>
>>>>>>>
>>>>>>>                
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> you mean the Sld-Editor popup window is completly empty? This is
>>>>>>>> Mapbender 2.6.2, right? Which Geoserver are you using?
>>>>>>>>
>>>>>>>> Cheers, Michael
>>>>>>>>
>>>>>>>>
>>>>>>>> 2010/11/8 zorg<[hidden email]>:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>                  
>>>>>>>>> Hi
>>>>>>>>> If i try to use sldeditor with geoserver wms I get a blank page with
>>>>>>>>> no
>>>>>>>>> error
>>>>>>>>> in the log i have this
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> 2010.11.08, 15:33:25,Notice: class_locale: setting locale to fr
>>>>>>>>> 2010.11.08, 15:33:25,Notice: locale fr_FR.utf8 ok on linux
>>>>>>>>> 2010.11.08, 15:33:25,Notice: mb_validateSession.php: checking file
>>>>>>>>> /mapbender/sld/sld_main.php
>>>>>>>>> 2010.11.08, 15:33:25,Notice: gui id not set
>>>>>>>>> 2010.11.08, 15:33:25,Notice: gui id set to guiID: admin_en_services
>>>>>>>>> 2010.11.08, 15:33:25,Notice: mb_validateSession.php: GUI:
>>>>>>>>> admin_en_services,
>>>>>>>>> checking file /mapbender/sld/sld_main.php...session valid.
>>>>>>>>>
>>>>>>>>> If you have nay idea
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> Mapbender_users mailing list
>>>>>>>>> [hidden email]
>>>>>>>>> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                    
>>>>>>>>
>>>>>>>>
>>>>>>>>                  
>>>>>>> _______________________________________________
>>>>>>> Mapbender_users mailing list
>>>>>>> [hidden email]
>>>>>>> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>                
>>>>>>
>>>>>>
>>>>>>              
>>>>> _______________________________________________
>>>>> Mapbender_users mailing list
>>>>> [hidden email]
>>>>> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>>>>>
>>>>>
>>>>>            
>>>>
>>>>
>>>>          
>>>
>>>        
>>
>>
>> --
>> -----------------------------------------------------------
>> 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_users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapbender_users