[Cartoweb-users] Re: Cartoweb-users Digest, Vol 12, Issue 5

Carlos Francisco Miranda webmaster at geoalgor.cl
Wed Apr 5 13:40:04 EDT 2006


Dear

I have a Debian Sarge (stable) System

PHP5-apache2

How to install Cartoweb on my system?


Carlos Francisco Miranda - Director/Editor
GEOALGOR - Portal Internacional de Geomatica
----- Original Message ----- 
From: <cartoweb-users-request at lists.maptools.org>
To: <cartoweb-users at lists.maptools.org>
Sent: Wednesday, April 05, 2006 12:02 PM
Subject: Cartoweb-users Digest, Vol 12, Issue 5


> Send Cartoweb-users mailing list submissions to
> cartoweb-users at lists.maptools.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.maptools.org/mailman/listinfo/cartoweb-users
> or, via email, send a message with subject or body 'help' to
> cartoweb-users-request at lists.maptools.org
>
> You can reach the person managing the list at
> cartoweb-users-owner at lists.maptools.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Cartoweb-users digest..."
>
>
> Today's Topics:
>
>    1. Can't load mapscript library - Suse 10 (Pebble Puppy)
>    2. Re: [Plugin] error with 'outline' plugin (oliver)
>    3. Errors when using assign_vertex_id function (?lvaro Guti?rrez)
>    4. Cartoweb timeout  (PORTANERI Franck)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 04 Apr 2006 21:56:49 -0600
> From: "Pebble Puppy" <pebble_puppy at hotmail.com>
> Subject: [Cartoweb-users] Can't load mapscript library - Suse 10
> To: cartoweb-users at lists.maptools.org
> Message-ID: <BAY105-F27B35C6AD19592E76A544FF0CB0 at phx.gbl>
> Content-Type: text/plain; format=flowed
>
> Hello,
>
> I am running Suse 10 and am trying to get Cartoweb up and running.  I have
> built both PHP5 and Mapserver from source.  PHP5 is 5.1.2, Mapserver is
> 4.8.2, and Cartoweb 3.2
>
> I installed the basic Cartoweb demo with:
>
> /usr/local/cartoweb3 # /usr/local/apache2/php/bin/php
cw3setup.php --install
> --base-url http://www.example.com/cartoweb
>
> When I try to run "http://localhost/cartoweb/client.php" the browser
returns
> (only first few lines shown):
> Failure
>
> class:   SoapFaultWrapper
> message:   can't load mapscript library
> Backtrace:
>
> file: 152 - /usr/local/cartoweb3/server/MapInfoHandler.php
> call: ServerContext->getMapObj()
>
> file: 49 - /usr/local/cartoweb3/server/ServerMapInfoCache.php
> call: MapInfoHandler->loadMapInfo()
>
>
> My PHP configure looks like:
> ./configure --prefix=/usr/local/apache2/php
> --with-apxs2=/usr/local/apache2/bin/apxs --with-pgsql --enable-dbase
> --with-config-file-path=/usr/local/apache2/php
>
> and my Mapserver configure looks like:
> ./configure --with-wfs --with-wfsclient --with-wmsclient
> --with-proj=/usr/local/lib --with-gdal=/usr/local/bin/gdal-config
> --with-ogr=/usr/local/bin/gdal-config
> --with-geos=/usr/local/bin/geos-config --with-php=/usr/local/php-5.1.2
> --with-postgis=/usr/local/pgsql/bin/pg_config
> --with-httpd=/usr/local/apache2/bin/httpd  --prefix=/usr/local
>
>
> I have verified that mapserver is running:
> # /usr/local/apache2/cgi-bin/mapserv which returns:
>
> This script can only be used to decode form results and
> should be initiated as a CGI process via a httpd server.
>
>
>
> The php extensions directory referenced in /usr/local/apache2/php/php.ini
is
> located at /usr/local/apache2/php
>
> I have verified that I have the "php_mapscript.so" in
> /usr/local/mapserver-4.8.2/mapscript/php3/ and I have also copied this
into
> /usr/local/apache2/php
>
>
>
> When I run 'index.php' from my browser where 'index.php' contains:
> <?php
> echo phpinfo();
> ?>
>
> the browser returns several tables of information regarding PHP 5.1.2
>
>
> In the /usr/local/apache2/php/php.ini file I have a line:
> extension=php_mapscript
>
>
> I would really appreciate some help.  Thanks!!
>
> Robert
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 5 Apr 2006 11:15:33 +0200
> From: "oliver" <oliver.christen at camptocamp.com>
> Subject: Re: [Cartoweb-users] [Plugin] error with 'outline' plugin
> To: <cartoweb-users at lists.maptools.org>, "Jacolin Yves"
> <yjacolin at free.fr>
> Message-ID: <002a01c65891$80dbd2b0$1500a8c0 at maunakea>
> Content-Type: text/plain; format=flowed; charset="iso-8859-1";
> reply-type=original
>
> Hi Yves
>
> the error message may have several cause, but I mostly noticed that when
> trying to outline something and there was a mismatch between the type of
> outline selected on the interface and the layers used (like selecting
> outline point and cw was using the outline_polygone layer)
>
> verify the TYPE of the layers in the mapfile are correctly set to POINT,
> LINE and POLYGONE
>
> also, depending of the outline type wanted, the reference layer must
contain
> some parameters. Does the error only occure when you try to use the Line
> type ?
> verify the layers contains all the parameters I have in the exemple layers
> below (symbol can be anything but it must be in your symbols reference
> file):
> LAYER
>   NAME "cartoweb_line_outline"
>   TYPE LINE
>   TRANSPARENCY 100
>   CLASS
>     STYLE
>       OUTLINECOLOR 255 0 0
>       SYMBOL "dashed_line"
>       SIZE 3
>     END
>     LABEL
>       TYPE TRUETYPE
>       FONT "Vera"
>       SIZE 7
>       COLOR 0 0 0
>       OUTLINECOLOR 255 255 255
>       ANGLE auto
>       POSITION uc
>     END
>   END
> END
>
>
> > Hi,
> > Le Mardi 4 Avril 2006 16:49, vous avez écrit :
> >> Hi  Yves,
> >>
> >> be sure to include all different layers for all the outline type
(point,
> >> line and polygone) in your mapfile and set the layers configuration in
> >> the
> >> outline.ini for all 3 type also
> > My mapfile contains all the 3 layers (cartoweb_XXX_outline) where XXX
is
> > point, line and polygon.
> > My outline.ini contains :
> >
> > /***** outlin.ini file
> > pointLayer = cartoweb_point_outline
> > lineLayer = cartoweb_line_outline
> > polygonLayer = cartoweb_polygon_outline
> > maskColor = 223 223 223
> > areaFactor = 1
> > /***** End of file
> >
> > And the other outline.ini file :
> >
> > /***** outlin.ini file
> > multipleShapes = true
> > labelMode = true
> > /***** End of file
> >
> >> This error come from an uncompatibility between the new
> >> outline/mapoverlay
> >> plugin version and an outdated fallback process of the outline that try
> >> to
> >> use the polygone outline layer if there is no layer specified for point
> >> outline. This fallback process was removed in the current cvs version.
> > If I understood, when a point layer doesn't exists CW3 uses polygon
layer
> > ?
> > This fallback tells to CW3 to use it ?
> >
> > Thank you
> >
> > Y.
> >> regards
> >> Oliver
> >>
> >> > Hi,
> >> > I try to use the outline plugin. I followed the documentation from
> >> > cartoweb3
> >> > website and use layer configuration from demoCW3 (thanks to a post
from
> >> > Pierre
> >> > Giraud in georezo' forum).
> >> > When I try to create a point/line/... and after fill the form, I get
> >> > this
> >> > error message :
> >> > /****************************************
> >> > class:   SoapFaultWrapper
> >> > message:   mainmap image not generated yet
> >> > Backtrace:
> >> > file: 186 - /var/www/html/cartoweb3/server/ServerContext.php
> >> > call: ServerContext::getMsMainmapImage()
> >> >
> >> > file: 265 -
> >> > /var/www/html/cartoweb3/coreplugins/images/server/ServerImages.php
> >> > call: ServerContext->getMsMainmapImage()
> >> >
> >> > file: 74 - /var/www/html/cartoweb3/server/ServerPluginHelper.php
> >> > call: ServerImages->handleCorePlugin(Object(Images))
> >> >
> >> > file: 184 - /var/www/html/cartoweb3/server/ServerPluginHelper.php
> >> > call: CoreProviderHelper->callHandleFunction(Object(ServerImages),
> >> > "handleCorePlugin")
> >> >
> >> > file: 267 - /var/www/html/cartoweb3/common/PluginManager.php
> >> > call:
CoreProviderHelper->handleCorePluginHelper(Object(ServerImages))
> >> >
> >> > file: 267 - /var/www/html/cartoweb3/common/PluginManager.php
> >> > call: call_user_func_array(Array(2), Array(1))
> >> >
> >> > file: 311 - /var/www/html/cartoweb3/server/Cartoserver.php
> >> > call: PluginManager->callPluginImplementing(Object(ServerImages),
> >> > "CoreProvider", "handleCorePlugin")
> >> >
> >> > file: 337 - /var/www/html/cartoweb3/server/Cartoserver.php
> >> > call: Cartoserver->doGetMap(Object(MapRequest))
> >> >
> >> > file: 358 - /var/www/html/cartoweb3/server/Cartoserver.php
> >> > call: Cartoserver->callWithExceptionCheck("doGetMap",
> >> > Object(MapRequest))
> >> >
> >> > file: 81 - /var/www/html/cartoweb3/server/MapResultCache.php
> >> > call: Cartoserver->cacheGetMap(Object(MapRequest))
> >> >
> >> > file: 192 - /var/www/html/cartoweb3/server/MapResultCache.php
> >> > call: MapResultCache->getMapResultFromServer(Object(MapRequest))
> >> >
> >> > file: 368 - /var/www/html/cartoweb3/server/Cartoserver.php
> >> > call: MapResultCache->getMap(Object(MapRequest))
> >> >
> >> > file: 104 - /var/www/html/cartoweb3/client/CartoserverService.php
> >> > call: Cartoserver->getMap(Object(MapRequest))
> >> >
> >> > file: 158 - /var/www/html/cartoweb3/client/CartoserverService.php
> >> > call: CartoserverService->callDirect("getMap", Object(MapRequest))
> >> >
> >> > file: 226 - /var/www/html/cartoweb3/client/CartoserverService.php
> >> > call: CartoserverService->callFunction("getMap", Object(MapRequest))
> >> >
> >> > file: 776 - /var/www/html/cartoweb3/client/Cartoclient.php
> >> > call: CartoserverService->getMap(Object(MapRequest))
> >> >
> >> > file: 892 - /var/www/html/cartoweb3/client/Cartoclient.php
> >> > call: Cartoclient->getMapResultFromRequest(Object(MapRequest))
> >> >
> >> > file: 1027 - /var/www/html/cartoweb3/client/Cartoclient.php
> >> > call: Cartoclient->doMain()
> >> >
> >> > file: 38 - /var/www/html/cartoweb3/htdocs/client.php
> >> > call: Cartoclient->main()
> >> > /****************************************
> >> >
> >> > I then added the mapOverlay plugin in the list in test.ini from
> >> > serveru_conf/test/ (my project is called test)
> >> >
> >> > But nothing news appears. It is still not good ! any idea ?
> >> >
> >> > Furthemore it seems there is an error in documentation about the
> >> > "polyLayer"
> >> > parameter, an outline.ini file in test project from cartoweb use
> >> > "polygonLayer". which one do we need to use ?
> >> >
> >> > Thanks,
> >> >
> >> > Yves Jacolin
> >> > http://yjacolin.gloobe.org
> >> > ----
> >> > Stagaire Conservatoire Régional des Espaces Naturels de la région
> >> > Centre
> >> > http://cahiersnaturalistes.free.fr/cpnrc/
> >> >
> >> > --
> >> > Yves Jacolin
> >> > http://yjacolin.gloobe.org
> >> > ----
> >> > Stagaire Conservatoire Régional des Espaces Naturels de la région
> >> > Centre
> >> > http://cahiersnaturalistes.free.fr/cpnrc/
> >> >
> >> > _______________________________________________
> >> > Cartoweb-users mailing list
> >> > Cartoweb-users at lists.maptools.org
> >> > http://lists.maptools.org/mailman/listinfo/cartoweb-users
> >
> > -- 
> > Yves Jacolin
> > http://yjacolin.gloobe.org
> > ----
> > Stagaire Conservatoire Régional des Espaces Naturels de la région Centre
> > http://cahiersnaturalistes.free.fr/cpnrc/
> >
> >
>
>
>
> ------------------------------
>
> Message: 3
> Date: Wed, 05 Apr 2006 12:31:01 +0200
> From: ?lvaro Guti?rrez <alvarouniovi at yahoo.es>
> Subject: [Cartoweb-users] Errors when using assign_vertex_id function
> To: cartoweb-users at lists.maptools.org
> Message-ID: <44339C65.9030802 at yahoo.es>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hi, everyone. I'm new at this list.
> I'm developing a GIS proyect to finish my career. I'm using pgdijkstra
> module for routing, and programing a Java client. My graph is a street
> network, and the edges should change dynamically, for example, one edge
> from the original graph should split into two. So, when i change the
> graph i call  "assign_vertex_id", "create_graph_tables" and
> "update_cost_from_distance" functions to regenerate the edges and
> vertices tables. The first time i do this, everything goes Ok, but on
> the second time i call "assign_vertex_id" i recive this error message:
>            "org.postgresql.util.PSQLException: ERROR: relation with OID
> 22979 does not exist"
>
> This is the same problem that someone talk about in this list before.
> The problem is that if you make a second query with this function with
> the same connection, Postgre returns this error, but if you close the
> connection and create a new one everything is ok, but the efficience of
> opening and closing connections, isn't good.
> There's a way to solve this problem?
> Thanks everyone.
>
> PD: Sorry for my english.
>
>
> ______________________________________________
> LLama Gratis a cualquier PC del Mundo.
> Llamadas a fijos y móviles desde 1 céntimo por minuto.
> http://es.voice.yahoo.com
>
>
> ------------------------------
>
> Message: 4
> Date: Wed, 05 Apr 2006 12:35:37 +0200
> From: PORTANERI Franck <fportaneri.ext at rd.francetelecom.com>
> Subject: [Cartoweb-users] Cartoweb timeout
> To: cartoweb-users at lists.maptools.org
> Message-ID: <44339D79.9020003 at rd.francetelecom.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hi all,
>
> I have the following problem under cartoweb that should be a
> configuration issue:
>
> The cartoclient + cartoserver + mapserver are running on one server,
> while the postgresql server is running on a second server.
>
> Everything works fine (maps are well displayed with postgis data,
> queries are correctly done...), but after some time (about 10 refresh),
> the cartoweb seems hang and keeps the "loading message" sign display.
>
> The log shows the following:
>
> Wed Apr 5 11:33:42 2006,770 [26462] FATAL ServerContext - Error in
> msDrawMap(): Failed to draw layer named 'sites_hilight'.
> Wed Apr 5 11:33:42 2006,771 [26462] FATAL ServerContext - Error in
> msPOSTGISLayerOpen(): couldnt make connection to DB with connect string
> 'host=nnn.nnn.nnn.nnn. dbname=test user=www-data password=www-data'.
> Error reported was 'could not connect to server: Connection timed out Is
> the server running on host "nnn.nnn.nnn.nnn" and accepting TCP/IP
> connections on port 5432? '.
> This error occured when trying to make a connection to the specified
> postgresql server.
> Most commonly this is caused by
> (1) incorrect connection string
> (2) you didnt specify a 'user=...' in your connection string
> (3) the postmaster (postgresql server) isnt running
> (4) you are not allowing TCP/IP connection to the postmaster
> (5) your postmaster is not running on the correct port - if its not on
> 5432 you must specify a 'port=...'
> (6) the security on your system does not allow the webserver (usually
> user 'nobody') to make socket connections to the postmaster
> (7) you forgot to specify a 'host=...' if the postmaster is on a
> different machine
> (8) you made a typo
>
> The strange thing is that opening a new session window still allows to
> access to the same data on the postgres server...
>
> Any help would be welcome!
> Regards
> Franck
>
>
>
> ------------------------------
>
> _______________________________________________
> Cartoweb-users mailing list
> Cartoweb-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/cartoweb-users
>
>
> End of Cartoweb-users Digest, Vol 12, Issue 5
> *********************************************
>
>





More information about the Cartoweb-users mailing list