Nous utilisons des cookies pour vous garantir la meilleure expérience sur notre site. Si vous continuez à utiliser ce dernier, nous considèrerons que vous acceptez l'utilisation des cookies. J'ai compris ! ou En savoir plus !.
banniere

Le portail francophone de la géomatique


Toujours pas inscrit ? Mot de passe oublié ?
Nom d'utilisateur    Mot de passe              Toujours pas inscrit ?   Mot de passe oublié ?

Annonce

Printemps des cartes 2024

#1 Wed 06 June 2007 13:56

Bertrand DORNER
Participant actif
Lieu: COLMAR
Date d'inscription: 5 Sep 2005
Messages: 90

Message d'erreur lié à un problème de découpage selon des attributs

Bonjour,

Ma structure utilise MapInfo, avec MapServer et Cartoweb (versions à jour début avril 2005) pour la mise en ligne de certaines informations géographiques sur un intranet cartographique.

Certaines couches d'informations à représenter doivent l'être en tenant compte des valeurs dun des attributs, en l'occurence "ZPS", "pZPS" d'un champ nommé "statut". J'avais déjà été confronté à ce genre de problème, et ma syntaxe pour les deux couches concernées a été écrite en m'appuyant sur de l'existant.
Voici cette syntaxe, en supposant que ce soit elle qui pose prolème
LAYER
    NAME         "N_N2000_ZPS"
    CONNECTIONTYPE  OGR
    CONNECTION  "donnees_environnementales\N_N2000_ZPS_068.TAB"
    TYPE         Polygon
    TEMPLATE "ttt"
    STATUS ON
    TRANSPARENCY 100
    PROJECTION
      "init=epsg:27582"
    END
     METADATA
        "id_attribute_string" "SITECODE|string"
        "query_returned_attributes"  "SITENAME statut"
    END
    CLASSITEM "statut"
    CLASS
      EXPRESSION  "ZPS"
      NAME  "Zone de protection speciale approuvee"
      STYLE
        SYMBOL "horizontale"
        COLOR   176 96 255
        OUTLINECOLOR 176 96 255
        SIZE    3
      END
    END
    CLASS
      EXPRESSION  "pZPS"
      NAME  "Zone de protection speciale en projet"
      STYLE
        SYMBOL  "hachuresG"
        COLOR 176 96  255
        OUTLINECOLOR  176 96  255
        SIZE  7
      END
    END
  END 

Pourtant, lorsque je lance l'affichage, je suis confronté à ce message d'erreur, auquel je ne comprends pas grand chose, puisque j'ai, je pense, fait ce qu'il fallait pour associer un attribut au découpage en classes dans cartoweb
Failure
class:   SoapFault
message:   Object to unserialize has no className attribute, and no class name was given
Backtrace:

file: 168 - C:\WWW\site\cartoweb3\common\Serializable.php
call: Serializable::guessClassName()

file: 211 - C:\WWW\site\cartoweb3\common\Serializable.php
call: Serializable::guessClassName()

file: 252 - C:\WWW\site\cartoweb3\common\Serializable.php
call: Serializable::unserializeObject()

file: 362 - C:\WWW\site\cartoweb3\coreplugins\layers\common\Layers.php
call: Serializable::unserializeObjectMap()

file: 342 - C:\WWW\site\cartoweb3\coreplugins\layers\server\LayersInitProvider.php
call: LayersInit->unserialize()

file: 218 - C:\WWW\site\cartoweb3\coreplugins\layers\server\ServerLayers.php
call: LayersInitProvider->getInit()

file: 147 - C:\WWW\site\cartoweb3\server\ServerPluginHelper.php
call: ServerLayers->getInit()

file: 270 - C:\WWW\site\cartoweb3\common\PluginManager.php
call: InitProviderHelper->getInitHelper()

file: 270 - C:\WWW\site\cartoweb3\common\PluginManager.php
call: call_user_func_array()

file: 288 - C:\WWW\site\cartoweb3\common\PluginManager.php
call: PluginManager->callPluginImplementing()

file: 159 - C:\WWW\site\cartoweb3\server\MapInfoHandler.php
call: PluginManager->callPluginsImplementing()

file: 49 - C:\WWW\site\cartoweb3\server\ServerMapInfoCache.php
call: MapInfoHandler->loadMapInfo()

file: 99 - C:\WWW\site\cartoweb3\common\MapInfoCache.php
call: ServerMapInfoCache->computeMapInfo()

file: 169 - C:\WWW\site\cartoweb3\common\MapInfoCache.php
call: ServerMapInfoCache->cacheMapInfo()

file: 170 - C:\WWW\site\cartoweb3\server\MapInfoHandler.php
call: ServerMapInfoCache->getMapInfo()

file: 319 - C:\WWW\site\cartoweb3\server\ServerContext.php
call: MapInfoHandler->getMapInfo()

file: 188 - C:\WWW\site\cartoweb3\server\Cartoserver.php
call: ServerContext->getMapInfo()

file: 333 - C:\WWW\site\cartoweb3\server\Cartoserver.php
call: Cartoserver->doGetMapInfo()

file: 373 - C:\WWW\site\cartoweb3\server\Cartoserver.php
call: Cartoserver->callWithExceptionCheck()

file: 77 - C:\WWW\site\cartoweb3\client\CartoserverService.php
call: Cartoserver->getMapInfo()

file: 129 - C:\WWW\site\cartoweb3\client\CartoserverService.php
call: CartoserverService->callDirect()

file: 185 - C:\WWW\site\cartoweb3\client\CartoserverService.php
call: CartoserverService->callFunction()

file: 60 - C:\WWW\site\cartoweb3\client\ClientMapInfoCache.php
call: CartoserverService->getMapInfo()

file: 99 - C:\WWW\site\cartoweb3\common\MapInfoCache.php
call: ClientMapInfoCache->computeMapInfo()

file: 169 - C:\WWW\site\cartoweb3\common\MapInfoCache.php
call: ClientMapInfoCache->cacheMapInfo()

file: 501 - C:\WWW\site\cartoweb3\client\Cartoclient.php
call: ClientMapInfoCache->getMapInfo()

file: 313 - C:\WWW\site\cartoweb3\client\Cartoclient.php
call: Cartoclient->getMapInfo()

file: 20 - C:\WWW\site\cartoweb3\htdocs\client.php
call: Cartoclient->__construct()

Je serai confronté, ultérieurement, à d'autres couches à différencier graphiquement en fonction d'un attribut, mais j'aimerais déjà comprendre quelle erreur j'ai pu commettre.

Merci d'avance

Hors ligne

 

#2 Wed 06 June 2007 14:02

Yves
Membre du bureau
Lieu: Aix-les-Bains
Date d'inscription: 22 Mar 2006
Messages: 9855
Site web

Re: Message d'erreur lié à un problème de découpage selon des attributs

Bonjour,

Je vérifierai le fichier layers.ini dans lequel on trouve un paramètre className wink

Y.


Yves Jacolin, bénévole de l'association GeoRezo.net, agit au nom et pour le compte de l'association - Partageons ce qui nous départage !!  - GeoRezo vous aide ? Aidez GeoRezo !

Hors ligne

 

#3 Wed 06 June 2007 14:56

Bertrand DORNER
Participant actif
Lieu: COLMAR
Date d'inscription: 5 Sep 2005
Messages: 90

Re: Message d'erreur lié à un problème de découpage selon des attributs

Merci de m'avoir réorienté ! Le problème était bien dans le layers.ini

Hors ligne

 

Pied de page des forums

Powered by FluxBB