From bt at CCGIS.DE Fri Jul 1 02:32:10 2005 From: bt at CCGIS.DE (Benjamin Thelen) Date: Fri, 1 Jul 2005 11:32:10 +0200 Subject: Res: Re: [UMN_MAPSERVER-USERS] Fw: Postgis Connection In-Reply-To: <42C44374.000006.03576@DC_EZEQUIAS> Message-ID: Ezequias Rodrigues da Rocha wrote: > I didn't find the tcpip_socket parameter and put it in sume point on my > postgresql.conf. > > But now I can't start my postgresql 8.0 (# ./postmaster -D > /usr/local/pgsql/data) > > Please see what is wrong > > The error reported was: > > [postgres at mangueira bin]$ FATAL: unrecognized configuration parameter > "tcpip_socket" > > My pg_hba.conf is: > > [postgres at mangueira data]$ more pg_hba.conf > # TYPE DATABASE USER CIDR-ADDRESS METHOD > > # "local" is for Unix domain socket connections only > local all all trust > # IPv4 local connections: > host all all 10.0.0.0 255.0.0.0 password > host all all 192.168.0.0 255.0.0.0 password > host all all 127.0.0.1/32 trust > host all all 200.249.133.135 255.255.255.255 > password > # IPv6 local connections: > host all all ::1/128 trust > I believe there is no problem because I am on the network 10 and the > server on the 192 > > Some more advices ? > > Best regards > Ezequias > > /-------Mensagem original-------/ > > /*De:*/ Benjamin Thelen > /*Data:*/ 06/30/05 12:43:52 > /*Para:*/ MAPSERVER-USERS at LISTS.UMN.EDU > > /*Assunto:*/ Re: [UMN_MAPSERVER-USERS] Fw: Postgis Connection > > Ezequias Rodrigues da Rocha wrote: > > I am trying to load a mapserver service with a postgis connection but > > the MS reported this message below: > > > > > > msDrawMap(): Image handling error. Failed to draw layer named 'bairros'. > > msPOSTGISLayerOpen(): Query error. couldnt make connection to DB with > > connect string 'user=postgres password=post dbname=dbpotgis > > host=lab1.recife port=5432'. > > Error reported was 'could not create socket: Permission denied '. > > 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 > > Does anyone can tell me what to do ? > > > > > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > > Atenciosamente (Sincerely) > > *Ezequias Rodrigues da Rocha* > > *** *www.recife.pe.gov.br > * > > > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > > A pior das democracias ainda ? melhor do que a melhor das ditaduras > > The worst of democracies is still better than the better of dictatorships > > MSN Messenger: ezequias at hotmail.com > > > > > > > Add FUN to your email - CLICK HERE! > > > > > Ezequias, > > Well, I think one cannot make more suggestions you already got from the > error messages! > > I assume your postgres is running and your connection string is correct, > but you should send it to the list, too. > > A common error is, that the postgresql-server does not accept tcp/ip > connections. Check your postgresql.conf: "tcpip_socket = true" must be > there. > Second, check your pg_hba.conf: There has to be an entry that allows > your "mapserver-host" to connect to the server, such as > > for remote access of the network 192.168.100.0: > host all all 192.168.100.0 255.255.255.0 trust > > or for local access, if mapserver and pgsql are on the same host: > host all all 127.0.0.1 255.255.255.255 trust > > > Hope, that helps! > > Ben > > > Add FUN to your email - CLICK HERE! > Ezequias, As you're using postgresql 8, you must remove the tcpip_socket parameter, because it's a paramater used in earlier postgresql versions. Look again into your posgresql.conf. You'll need to have the following at the beginning of the file: listen_addresses = '*' # what IP interface(s) to listen on; # defaults to localhost, '*' = any Restart pgsql. Ben From higon_jos at GVA.ES Fri Jul 1 04:59:54 2005 From: higon_jos at GVA.ES (=?ISO-8859-1?Q?Jos=E9_Vicente_Hig=F3n_Valero?=) Date: Fri, 1 Jul 2005 13:59:54 +0200 Subject: GetFeatureInfo problem Message-ID: Hi, I have installed mapserver 4.6.0 on suse 9.0 with postgis 1.0.1. When I request a GetFeatureInfo, the response hasn't information about the atributes. I get this: 620344.450000,4377612.070000 632854.690000,4394243.500000 But I must get: 28 Complex Shape 55 55 0 1 0 Embalse de Contreras Embalses ... Any clue? I have compiled mapserver: ./configure --prefix=/usr/local --with-wms --with-wfs --with-wcs --with-wmsclient --with-wfsclient --with-gd --with-proj --with-geos --with-freetype --with-gdal=/usr/local/bin/gdal-config --with-ogr=/usr/local/bin/gdal-config --with-postgis=/usr/local/pgsql/bin/pg_config --with-curl-config=/usr/local/bin/curl-config --with-jpeg --with-tiff --with-httpd=/usr/local/apache2/bin/httpd --with-mygis=/usr/local/mysql/bin/mysql_config And the configuration of the map file: LAYER NAME "embalses" GROUP "CV300k" STATUS ON DUMP TRUE TEMPLATE "." DATA "the_geom from embalses" TYPE POLYGON TRANSPARENCY 10 CONNECTIONTYPE POSTGIS CONNECTION "user=gis dbname=cv300k host=127.0.0.1 port=5432" METADATA "wms_name" "embalses" "wms_title" "Embalses" "wms_abstract" "embalses" "wms_keywordlist" "embalses,valencia" "wms_srs" "EPSG:23030 EPSG:4326" "wms_group_title" "CV300k" "wms_extent" "600000 4180000 810000 4530000" END CLASS # NAME "embalses" COLOR 0 204 255 OUTLINECOLOR 0 0 255 END END Thanks in advance. -- Jos? Vicente Hig?n gvSIG development Team Conselleria de Infraestructuras y Transporte Generalitat Valenciana Valencia - Spain tlf. 963862397 http://www.gvsig.gva.es From bt at CCGIS.DE Fri Jul 1 04:30:40 2005 From: bt at CCGIS.DE (Benjamin Thelen) Date: Fri, 1 Jul 2005 13:30:40 +0200 Subject: Res: Re: Res: Re: [UMN_MAPSERVER-USERS] Fw: Postgis Connection In-Reply-To: <42C527BD.000001.02968@DC_EZEQUIAS> Message-ID: Ezequias Rodrigues da Rocha wrote: > I do heve this line. See below: > > > > #--------------------------------------------------------------------------- > # CONNECTIONS AND AUTHENTICATION > #--------------------------------------------------------------------------- > > # - Connection Settings - > > listen_addresses = '*' # what IP interface(s) to listen on; > # defaults to localhost, '*' = any > port = 5432 > max_connections = 100 > > Still waitting > Ezequias > > /-------Mensagem original-------/ > > /*De:*/ Benjamin Thelen > /*Data:*/ 07/01/05 05:55:31 > /*Para:*/ Ezequias Rodrigues da Rocha > /*Cc:*/ Benjamin Thelen > /*Assunto:*/ Re: Res: Re: [UMN_MAPSERVER-USERS] Fw: Postgis Connection > > Ezequias Rodrigues da Rocha wrote: > > I didn't find the tcpip_socket parameter and put it in sume point on my > > postgresql.conf. > > > > But now I can't start my postgresql 8.0 (# ./postmaster -D > > /usr/local/pgsql/data) > > > > Please see what is wrong > > > > The error reported was: > > > > [postgres at mangueira bin]$ FATAL: unrecognized configuration parameter > > "tcpip_socket" > > > > My pg_hba.conf is: > > > > [postgres at mangueira data]$ more pg_hba.conf > > # TYPE DATABASE USER CIDR-ADDRESS METHOD > > > > # "local" is for Unix domain socket connections only > > local all all trust > > # IPv4 local connections: > > host all all 10.0.0.0 255.0.0.0 password > > host all all 192.168.0.0 255.0.0.0 password > > host all all 127.0.0.1/32 trust > > host all all 200.249.133.135 255.255.255.255 > > password > > # IPv6 local connections: > > host all all ::1/128 trust > > I believe there is no problem because I am on the network 10 and the > > server on the 192 > > > > Some more advices ? Ezequias, You can ping the pgsql-server from your mapserver-server? # ping lab1.recife The pgsql-server listens on port 5432? Check with: # netstat -tan -ptcp. You corrected the typo "dbname=dbpotgis"? You are sure about the password for the dbuser? Can you log into the database from the command line and access the tables? # psql -Upostgres -ddbpostgis If you are not sure about the password, change "password" to "trust" in pg_hba.conf. Also, I would recommend to change "password" to "md5" for encrypted passwords. Well, at the moment, I have no more ideas, sorry! Ben > > > > Best regards > > Ezequias > > > > /-------Mensagem original-------/ > > > > /*De:*/ Benjamin Thelen > > /*Data:*/ 06/30/05 12:43:52 > > /*Para:*/ MAPSERVER-USERS at LISTS.UMN.EDU > > > > > /*Assunto:*/ Re: [UMN_MAPSERVER-USERS] Fw: Postgis Connection > > > > Ezequias Rodrigues da Rocha wrote: > > > I am trying to load a mapserver service with a postgis connection but > > > the MS reported this message below: > > > > > > > > > msDrawMap(): Image handling error. Failed to draw layer named > 'bairros'. > > > msPOSTGISLayerOpen(): Query error. couldnt make connection to DB with > > > connect string 'user=postgres password=post dbname=dbpotgis > > > host=lab1.recife port=5432'. > > > Error reported was 'could not create socket: Permission denied '. > > > 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 > > > Does anyone can tell me what to do ? > > > > > > > > > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > > > Atenciosamente (Sincerely) > > > *Ezequias Rodrigues da Rocha* > > > *** *www.recife.pe.gov.br > > > * > > > > > > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > > > A pior das democracias ainda ? melhor do que a melhor das ditaduras > > > The worst of democracies is still better than the better of > dictatorships > > > MSN Messenger: ezequias at hotmail.com > > > > > > > > > > > > Add FUN to your email - CLICK HERE! > > > > > > > > > Ezequias, > > > > Well, I think one cannot make more suggestions you already got from the > > error messages! > > > > I assume your postgres is running and your connection string is correct, > > but you should send it to the list, too. > > > > A common error is, that the postgresql-server does not accept tcp/ip > > connections. Check your postgresql.conf: "tcpip_socket = true" must be > > there. > > Second, check your pg_hba.conf: There has to be an entry that allows > > your "mapserver-host" to connect to the server, such as > > > > for remote access of the network 192.168.100.0: > > host all all 192.168.100.0 255.255.255.0 > trust > > > > or for local access, if mapserver and pgsql are on the same host: > > host all all 127.0.0.1 255.255.255.255 trust > > > > > > Hope, that helps! > > > > Ben > > > > > > Add FUN to your email - CLICK HERE! > > > > Ezequias, > > As you're using postgresql 8, you must remove the tcpip_socket > parameter, because it's a paramater used in earlier postgresql versions. > Look again into your posgresql.conf. You'll need to have the following > at the beginning of the file: > > listen_addresses = '*' # what IP interface(s) to listen on; > # defaults to localhost, '*' = any > > Restart pgsql. > > Ben > > > > > > Add FUN to your email - CLICK HERE! > From bt at CCGIS.DE Fri Jul 1 05:17:13 2005 From: bt at CCGIS.DE (Benjamin Thelen) Date: Fri, 1 Jul 2005 14:17:13 +0200 Subject: Res: Re: [UMN_MAPSERVER-USERS] Res: Re: Res: Re: [UMN_MAPSERVER-USERS] Fw: Postgis Connection In-Reply-To: <42C52EBC.000003.02968@DC_EZEQUIAS> Message-ID: Ezequias Rodrigues da Rocha wrote: > All looks to be correct. I am becoming to be worried. > > ps: Your e-mails are comming twice. Some times three times. Check it out. > > Thank you for your attention > > Sincerely > ezequias > > /-------Mensagem original-------/ > > /*De:*/ Benjamin Thelen > /*Data:*/ 07/01/05 08:16:01 > /*Para:*/ MAPSERVER-USERS at LISTS.UMN.EDU > > /*Assunto:*/ Re: [UMN_MAPSERVER-USERS] Res: Re: Res: Re: > [UMN_MAPSERVER-USERS] Fw: Postgis Connection > > Ezequias Rodrigues da Rocha wrote: > > I do heve this line. See below: > > > > > > > > > #--------------------------------------------------------------------------- > > # CONNECTIONS AND AUTHENTICATION > > > #--------------------------------------------------------------------------- > > > > # - Connection Settings - > > > > listen_addresses = '*' # what IP interface(s) to listen on; > > # defaults to localhost, '*' = any > > port = 5432 > > max_connections = 100 > > > > Still waitting > > Ezequias > > > > /-------Mensagem original-------/ > > > > /*De:*/ Benjamin Thelen > > /*Data:*/ 07/01/05 05:55:31 > > /*Para:*/ Ezequias Rodrigues da Rocha > > /*Cc:*/ Benjamin Thelen > > /*Assunto:*/ Re: Res: Re: [UMN_MAPSERVER-USERS] Fw: Postgis Connection > > > > Ezequias Rodrigues da Rocha wrote: > > > I didn't find the tcpip_socket parameter and put it in sume point > on my > > > postgresql.conf. > > > > > > But now I can't start my postgresql 8.0 (# ./postmaster -D > > > /usr/local/pgsql/data) > > > > > > Please see what is wrong > > > > > > The error reported was: > > > > > > [postgres at mangueira bin]$ FATAL: unrecognized configuration parameter > > > "tcpip_socket" > > > > > > My pg_hba.conf is: > > > > > > [postgres at mangueira data]$ more pg_hba.conf > > > # TYPE DATABASE USER CIDR-ADDRESS METHOD > > > > > > # "local" is for Unix domain socket connections only > > > local all all trust > > > # IPv4 local connections: > > > host all all 10.0.0.0 255.0.0.0 password > > > host all all 192.168.0.0 255.0.0.0 password > > > host all all 127.0.0.1/32 trust > > > host all all 200.249.133.135 255.255.255.255 > > > password > > > # IPv6 local connections: > > > host all all ::1/128 trust > > > I believe there is no problem because I am on the network 10 and the > > > server on the 192 > > > > > > Some more advices ? > > > Ezequias, > > You can ping the pgsql-server from your mapserver-server? > # ping lab1.recife > > The pgsql-server listens on port 5432? Check with: > # netstat -tan -ptcp. > > You corrected the typo "dbname=dbpotgis"? > You are sure about the password for the dbuser? Can you log into the > database from the command line and access the tables? > # psql -Upostgres -ddbpostgis > > If you are not sure about the password, change "password" to "trust" in > pg_hba.conf. Also, I would recommend to change "password" to "md5" for > encrypted passwords. > > > Well, at the moment, I have no more ideas, sorry! > > Ben > > > > > > > > Best regards > > > Ezequias > > > > > > /-------Mensagem original-------/ > > > > > > /*De:*/ Benjamin Thelen > > > /*Data:*/ 06/30/05 12:43:52 > > > /*Para:*/ MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > > /*Assunto:*/ Re: [UMN_MAPSERVER-USERS] Fw: Postgis Connection > > > > > > Ezequias Rodrigues da Rocha wrote: > > > > I am trying to load a mapserver service with a postgis > connection but > > > > the MS reported this message below: > > > > > > > > > > > > msDrawMap(): Image handling error. Failed to draw layer named > > 'bairros'. > > > > msPOSTGISLayerOpen(): Query error. couldnt make connection to > DB with > > > > connect string 'user=postgres password=post dbname=dbpotgis > > > > host=lab1.recife port=5432'. > > > > Error reported was 'could not create socket: Permission denied '. > > > > 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 > > > > Does anyone can tell me what to do ? > > > > > > > > > > > > > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > > > > Atenciosamente (Sincerely) > > > > *Ezequias Rodrigues da Rocha* > > > > *** *www.recife.pe.gov.br > > > > > > * > > > > > > > > > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > > > > A pior das democracias ainda ? melhor do que a melhor das ditaduras > > > > The worst of democracies is still better than the better of > > dictatorships > > > > MSN Messenger: ezequias at hotmail.com > > > > > > > > > > > > > > > > > Add FUN to your email - CLICK HERE! > > > > > > > > > > > > > Ezequias, > > > > > > Well, I think one cannot make more suggestions you already got > from the > > > error messages! > > > > > > I assume your postgres is running and your connection string is > correct, > > > but you should send it to the list, too. > > > > > > A common error is, that the postgresql-server does not accept tcp/ip > > > connections. Check your postgresql.conf: "tcpip_socket = true" must be > > > there. > > > Second, check your pg_hba.conf: There has to be an entry that allows > > > your "mapserver-host" to connect to the server, such as > > > > > > for remote access of the network 192.168.100.0: > > > host all all 192.168.100.0 255.255.255.0 > > trust > > > > > > or for local access, if mapserver and pgsql are on the same host: > > > host all all 127.0.0.1 > 255.255.255.255 trust > > > > > > > > > Hope, that helps! > > > > > > Ben > > > > > > > > > Add FUN to your email - CLICK HERE! > > > > > > > Ezequias, > > > > As you're using postgresql 8, you must remove the tcpip_socket > > parameter, because it's a paramater used in earlier postgresql versions. > > Look again into your posgresql.conf. You'll need to have the following > > at the beginning of the file: > > > > listen_addresses = '*' # what IP interface(s) to listen on; > > # defaults to localhost, '*' = any > > > > Restart pgsql. > > > > Ben > > > > > > > > > > > > Add FUN to your email - CLICK HERE! > > > > > Add FUN to your email - CLICK HERE! > Ezequias, Please always reply to the list! Of course you receive the mails twice. One Mail goes to the list and the other to you directly. Some list-members only reply to the list, but most reply to both. Another point, please do not top post! I'm afraid, that I have no more ideas! Your problem needs hard debugging ;-). Install pgadmin-III and/or phppgadmin and try to connect to your pgsql-server from your mapserver-server, also you could try to connect from your remote machine from command-line with "psql -Upostgres -hlab1.recife -ddbpostgis". As your machines are on different network segments, it is quite likely, that port 5432 is blocked by a firewall - you have to ask your IT to unlock this port. Ben From lists at WEBMAPIT.COM.BR Fri Jul 1 05:43:32 2005 From: lists at WEBMAPIT.COM.BR (Eduardo Patto Kanegae) Date: Fri, 1 Jul 2005 09:43:32 -0300 Subject: [off-topic]What computer language to go tomorrow? Message-ID: An HTML attachment was scrubbed... URL: From bt at CCGIS.DE Fri Jul 1 05:45:23 2005 From: bt at CCGIS.DE (Benjamin Thelen) Date: Fri, 1 Jul 2005 14:45:23 +0200 Subject: Res: Re: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] Res: Re: Res: Re: [UMN_MAPSERVER-USERS] Fw: Postgis Connection In-Reply-To: <42C539A5.000001.02512@DC_EZEQUIAS> Message-ID: Ezequias Rodrigues da Rocha wrote: > Some other thing. > > The server doesn't have the "postgres" user (linux system). > > The user "postgres" is from the postgresql. > > I hope you understands what I means. > > Best regards > Ezequias > > /-------Mensagem original-------/ > > /*De:*/ Benjamin Thelen > /*Data:*/ 07/01/05 09:02:12 > /*Para:*/ MAPSERVER-USERS at LISTS.UMN.EDU > > /*Assunto:*/ Re: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] > Res: Re: Res: Re: [UMN_MAPSERVER-USERS] Fw: Postgis Connection > > Ezequias Rodrigues da Rocha wrote: > > All looks to be correct. I am becoming to be worried. > > > > ps: Your e-mails are comming twice. Some times three times. Check it out. > > > > Thank you for your attention > > > > Sincerely > > ezequias > > > > /-------Mensagem original-------/ > > > > /*De:*/ Benjamin Thelen > > /*Data:*/ 07/01/05 08:16:01 > > /*Para:*/ MAPSERVER-USERS at LISTS.UMN.EDU > > > > > /*Assunto:*/ Re: [UMN_MAPSERVER-USERS] Res: Re: Res: Re: > > [UMN_MAPSERVER-USERS] Fw: Postgis Connection > > > > Ezequias Rodrigues da Rocha wrote: > > > I do heve this line. See below: > > > > > > > > > > > > > > > #--------------------------------------------------------------------------- > > > # CONNECTIONS AND AUTHENTICATION > > > > > > #--------------------------------------------------------------------------- > > > > > > # - Connection Settings - > > > > > > listen_addresses = '*' # what IP interface(s) to listen on; > > > # defaults to localhost, '*' = any > > > port = 5432 > > > max_connections = 100 > > > > > > Still waitting > > > Ezequias > > > > > > /-------Mensagem original-------/ > > > > > > /*De:*/ Benjamin Thelen > > > /*Data:*/ 07/01/05 05:55:31 > > > /*Para:*/ Ezequias Rodrigues da Rocha > > > > /*Cc:*/ Benjamin Thelen > > > /*Assunto:*/ Re: Res: Re: [UMN_MAPSERVER-USERS] Fw: Postgis Connection > > > > > > Ezequias Rodrigues da Rocha wrote: > > > > I didn't find the tcpip_socket parameter and put it in sume point > > on my > > > > postgresql.conf. > > > > > > > > But now I can't start my postgresql 8.0 (# ./postmaster -D > > > > /usr/local/pgsql/data) > > > > > > > > Please see what is wrong > > > > > > > > The error reported was: > > > > > > > > [postgres at mangueira bin]$ FATAL: unrecognized configuration > parameter > > > > "tcpip_socket" > > > > > > > > My pg_hba.conf is: > > > > > > > > [postgres at mangueira data]$ more pg_hba.conf > > > > # TYPE DATABASE USER CIDR-ADDRESS METHOD > > > > > > > > # "local" is for Unix domain socket connections only > > > > local all all trust > > > > # IPv4 local connections: > > > > host all all 10.0.0.0 255.0.0.0 password > > > > host all all 192.168.0.0 255.0.0.0 password > > > > host all all 127.0.0.1/32 trust > > > > host all all 200.249.133.135 255.255.255.255 > > > > password > > > > # IPv6 local connections: > > > > host all all ::1/128 trust > > > > I believe there is no problem because I am on the network 10 > and the > > > > server on the 192 > > > > > > > > Some more advices ? > > > > > > Ezequias, > > > > You can ping the pgsql-server from your mapserver-server? > > # ping lab1.recife > > > > The pgsql-server listens on port 5432? Check with: > > # netstat -tan -ptcp. > > > > You corrected the typo "dbname=dbpotgis"? > > You are sure about the password for the dbuser? Can you log into the > > database from the command line and access the tables? > > # psql -Upostgres -ddbpostgis > > > > If you are not sure about the password, change "password" to "trust" in > > pg_hba.conf. Also, I would recommend to change "password" to "md5" for > > encrypted passwords. > > > > > > Well, at the moment, I have no more ideas, sorry! > > > > Ben > > > > > > > > > > > > Best regards > > > > Ezequias > > > > > > > > /-------Mensagem original-------/ > > > > > > > > /*De:*/ Benjamin Thelen > > > > /*Data:*/ 06/30/05 12:43:52 > > > > /*Para:*/ MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > > > > > > > /*Assunto:*/ Re: [UMN_MAPSERVER-USERS] Fw: Postgis Connection > > > > > > > > Ezequias Rodrigues da Rocha wrote: > > > > > I am trying to load a mapserver service with a postgis > > connection but > > > > > the MS reported this message below: > > > > > > > > > > > > > > > msDrawMap(): Image handling error. Failed to draw layer named > > > 'bairros'. > > > > > msPOSTGISLayerOpen(): Query error. couldnt make connection to > > DB with > > > > > connect string 'user=postgres password=post dbname=dbpotgis > > > > > host=lab1.recife port=5432'. > > > > > Error reported was 'could not create socket: Permission > denied '. > > > > > 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 > > > > > Does anyone can tell me what to do ? > > > > > > > > > > > > > > > > > > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > > > > > Atenciosamente (Sincerely) > > > > > *Ezequias Rodrigues da Rocha* > > > > > *** *www.recife.pe.gov.br > > > > > > > > > > * > > > > > > > > > > > > > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > > > > > A pior das democracias ainda ? melhor do que a melhor das > ditaduras > > > > > The worst of democracies is still better than the better of > > > dictatorships > > > > > MSN Messenger: ezequias at hotmail.com > > > > > > > > > > > > > > > > > > > > > > > Add FUN to your email - CLICK HERE! > > > > > > > > > > > > > > > > > Ezequias, > > > > > > > > Well, I think one cannot make more suggestions you already got > > from the > > > > error messages! > > > > > > > > I assume your postgres is running and your connection string is > > correct, > > > > but you should send it to the list, too. > > > > > > > > A common error is, that the postgresql-server does not accept > tcp/ip > > > > connections. Check your postgresql.conf: "tcpip_socket = true" > must be > > > > there. > > > > Second, check your pg_hba.conf: There has to be an entry that > allows > > > > your "mapserver-host" to connect to the server, such as > > > > > > > > for remote access of the network 192.168.100.0: > > > > host all all 192.168.100.0 255.255.255.0 > > > trust > > > > > > > > or for local access, if mapserver and pgsql are on the same host: > > > > host all all 127.0.0.1 > > 255.255.255.255 trust > > > > > > > > > > > > Hope, that helps! > > > > > > > > Ben > > > > > > > > > > > > Add FUN to your email - CLICK HERE! > > > > > > > > > > Ezequias, > > > > > > As you're using postgresql 8, you must remove the tcpip_socket > > > parameter, because it's a paramater used in earlier postgresql > versions. > > > Look again into your posgresql.conf. You'll need to have the following > > > at the beginning of the file: > > > > > > listen_addresses = '*' # what IP interface(s) to listen on; > > > # defaults to localhost, '*' = any > > > > > > Restart pgsql. > > > > > > Ben > > > > > > > > > > > > > > > > > > Add FUN to your email - CLICK HERE! > > > > > > > > > Add FUN to your email - CLICK HERE! > > > > > > Ezequias, > > Please always reply to the list! > > Of course you receive the mails twice. One Mail goes to the list and the > other to you directly. Some list-members only reply to the list, but > most reply to both. > > > > Another point, please do not top post! > > > I'm afraid, that I have no more ideas! Your problem needs hard debugging > ;-). > > Install pgadmin-III and/or phppgadmin and try to connect to your > pgsql-server from your mapserver-server, also you could try to connect > from your remote machine from command-line with "psql -Upostgres > -hlab1.recife -ddbpostgis". > > > As your machines are on different network segments, it is quite likely, > that port 5432 is blocked by a firewall - you have to ask your IT to > unlock this port. > > > > Ben > > > Add FUN to your email - CLICK HERE! > Ezequias, 1. Reply to the list, please. 2. Don't top post, please. 3. Do not change the subject line, please. You need to have two accounts, one for the system, to start the postmaster and of course on as the database super user, which we are talking about. Did you explicitely change the password for the database super user "postgres"? Ben From bt at CCGIS.DE Fri Jul 1 06:18:32 2005 From: bt at CCGIS.DE (Benjamin Thelen) Date: Fri, 1 Jul 2005 15:18:32 +0200 Subject: Res: Re: Res: Re: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] Res: Re: Res: Re: [UMN_MAPSERVER-USERS] Fw: Postgis Connection In-Reply-To: <42C53FFA.000001.03040@DC_EZEQUIAS> Message-ID: Ezequias Rodrigues da Rocha wrote: > lets be clear. > > The postgresl user postgres have the pass=post > The linux postgres user have the pass=' ' (blank) > > I only can access the postgres user by linux exiting the root sesstion > (su - postgres) > > Some other person set the passwords for me. > > This make any suggestion ? > > Best regards > Ezequias > > > /-------Mensagem original-------/ > > /*De:*/ Benjamin Thelen > /*Data:*/ 07/01/05 09:29:44 > /*Para:*/ Ezequias Rodrigues da Rocha > /*Cc:*/ MAPSERVER-USERS at LISTS.UMN.EDU > /*Assunto:*/ Re: Res: Re: [UMN_MAPSERVER-USERS] Res: Re: > [UMN_MAPSERVER-USERS] Res: Re: Res: Re: [UMN_MAPSERVER-USERS] Fw: > Postgis Connection > > Ezequias Rodrigues da Rocha wrote: > > Some other thing. > > > > The server doesn't have the "postgres" user (linux system). > > > > The user "postgres" is from the postgresql. > > > > I hope you understands what I means. > > > > Best regards > > Ezequias > > > > /-------Mensagem original-------/ > > > > /*De:*/ Benjamin Thelen > > /*Data:*/ 07/01/05 09:02:12 > > /*Para:*/ MAPSERVER-USERS at LISTS.UMN.EDU > > > > > /*Assunto:*/ Re: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] > > Res: Re: Res: Re: [UMN_MAPSERVER-USERS] Fw: Postgis Connection > > > > Ezequias Rodrigues da Rocha wrote: > > > All looks to be correct. I am becoming to be worried. > > > > > > ps: Your e-mails are comming twice. Some times three times. Check > it out. > > > > > > Thank you for your attention > > > > > > Sincerely > > > ezequias > > > > > > /-------Mensagem original-------/ > > > > > > /*De:*/ Benjamin Thelen > > > /*Data:*/ 07/01/05 08:16:01 > > > /*Para:*/ MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > > /*Assunto:*/ Re: [UMN_MAPSERVER-USERS] Res: Re: Res: Re: > > > [UMN_MAPSERVER-USERS] Fw: Postgis Connection > > > > > > Ezequias Rodrigues da Rocha wrote: > > > > I do heve this line. See below: > > > > > > > > > > > > > > > > > > > > > > #--------------------------------------------------------------------------- > > > > # CONNECTIONS AND AUTHENTICATION > > > > > > > > > > #--------------------------------------------------------------------------- > > > > > > > > # - Connection Settings - > > > > > > > > listen_addresses = '*' # what IP interface(s) to listen on; > > > > # defaults to localhost, '*' = any > > > > port = 5432 > > > > max_connections = 100 > > > > > > > > Still waitting > > > > Ezequias > > > > > > > > /-------Mensagem original-------/ > > > > > > > > /*De:*/ Benjamin Thelen > > > > /*Data:*/ 07/01/05 05:55:31 > > > > /*Para:*/ Ezequias Rodrigues da Rocha > > > > > > /*Cc:*/ Benjamin Thelen > > > > /*Assunto:*/ Re: Res: Re: [UMN_MAPSERVER-USERS] Fw: Postgis > Connection > > > > > > > > Ezequias Rodrigues da Rocha wrote: > > > > > I didn't find the tcpip_socket parameter and put it in sume > point > > > on my > > > > > postgresql.conf. > > > > > > > > > > But now I can't start my postgresql 8.0 (# ./postmaster -D > > > > > /usr/local/pgsql/data) > > > > > > > > > > Please see what is wrong > > > > > > > > > > The error reported was: > > > > > > > > > > [postgres at mangueira bin]$ FATAL: unrecognized configuration > > parameter > > > > > "tcpip_socket" > > > > > > > > > > My pg_hba.conf is: > > > > > > > > > > [postgres at mangueira data]$ more pg_hba.conf > > > > > # TYPE DATABASE USER CIDR-ADDRESS METHOD > > > > > > > > > > # "local" is for Unix domain socket connections only > > > > > local all all trust > > > > > # IPv4 local connections: > > > > > host all all 10.0.0.0 255.0.0.0 password > > > > > host all all 192.168.0.0 255.0.0.0 password > > > > > host all all 127.0.0.1/32 trust > > > > > host all all 200.249.133.135 255.255.255.255 > > > > > password > > > > > # IPv6 local connections: > > > > > host all all ::1/128 trust > > > > > I believe there is no problem because I am on the network 10 > > and the > > > > > server on the 192 > > > > > > > > > > Some more advices ? > > > > > > > > > Ezequias, > > > > > > You can ping the pgsql-server from your mapserver-server? > > > # ping lab1.recife > > > > > > The pgsql-server listens on port 5432? Check with: > > > # netstat -tan -ptcp. > > > > > > You corrected the typo "dbname=dbpotgis"? > > > You are sure about the password for the dbuser? Can you log into the > > > database from the command line and access the tables? > > > # psql -Upostgres -ddbpostgis > > > > > > If you are not sure about the password, change "password" to > "trust" in > > > pg_hba.conf. Also, I would recommend to change "password" to "md5" for > > > encrypted passwords. > > > > > > > > > Well, at the moment, I have no more ideas, sorry! > > > > > > Ben > > > > > > > > > > > > > > > > Best regards > > > > > Ezequias > > > > > > > > > > /-------Mensagem original-------/ > > > > > > > > > > /*De:*/ Benjamin Thelen > > > > > /*Data:*/ 06/30/05 12:43:52 > > > > > /*Para:*/ MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > > > > > > > > > > > > > /*Assunto:*/ Re: [UMN_MAPSERVER-USERS] Fw: Postgis Connection > > > > > > > > > > Ezequias Rodrigues da Rocha wrote: > > > > > > I am trying to load a mapserver service with a postgis > > > connection but > > > > > > the MS reported this message below: > > > > > > > > > > > > > > > > > > msDrawMap(): Image handling error. Failed to draw layer named > > > > 'bairros'. > > > > > > msPOSTGISLayerOpen(): Query error. couldnt make connection to > > > DB with > > > > > > connect string 'user=postgres password=post dbname=dbpotgis > > > > > > host=lab1.recife port=5432'. > > > > > > Error reported was 'could not create socket: Permission > > denied '. > > > > > > 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 > > > > > > Does anyone can tell me what to do ? > > > > > > > > > > > > > > > > > > > > > > > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > > > > > > Atenciosamente (Sincerely) > > > > > > *Ezequias Rodrigues da Rocha* > > > > > > *** *www.recife.pe.gov.br > > > > > > > > > > > > > > > * > > > > > > > > > > > > > > > > > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > > > > > > A pior das democracias ainda ? melhor do que a melhor das > > ditaduras > > > > > > The worst of democracies is still better than the better of > > > > dictatorships > > > > > > MSN Messenger: ezequias at hotmail.com > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Add FUN to your email - CLICK HERE! > > > > > > > > > > > > > > > > > > > > > Ezequias, > > > > > > > > > > Well, I think one cannot make more suggestions you already got > > > from the > > > > > error messages! > > > > > > > > > > I assume your postgres is running and your connection string is > > > correct, > > > > > but you should send it to the list, too. > > > > > > > > > > A common error is, that the postgresql-server does not accept > > tcp/ip > > > > > connections. Check your postgresql.conf: "tcpip_socket = true" > > must be > > > > > there. > > > > > Second, check your pg_hba.conf: There has to be an entry that > > allows > > > > > your "mapserver-host" to connect to the server, such as > > > > > > > > > > for remote access of the network 192.168.100.0: > > > > > host all all 192.168.100.0 > 255.255.255.0 > > > > trust > > > > > > > > > > or for local access, if mapserver and pgsql are on the same > host: > > > > > host all all 127.0.0.1 > > > 255.255.255.255 trust > > > > > > > > > > > > > > > Hope, that helps! > > > > > > > > > > Ben > > > > > > > > > > > > > > > Add FUN to your email - CLICK HERE! > > > > > > > > > > > > > Ezequias, > > > > > > > > As you're using postgresql 8, you must remove the tcpip_socket > > > > parameter, because it's a paramater used in earlier postgresql > > versions. > > > > Look again into your posgresql.conf. You'll need to have the > following > > > > at the beginning of the file: > > > > > > > > listen_addresses = '*' # what IP interface(s) to listen on; > > > > # defaults to localhost, '*' = any > > > > > > > > Restart pgsql. > > > > > > > > Ben > > > > > > > > > > > > > > > > > > > > > > > > Add FUN to your email - CLICK HERE! > > > > > > > > > > > > > Add FUN to your email - CLICK HERE! > > > > > > > > > > > Ezequias, > > > > Please always reply to the list! > > > > Of course you receive the mails twice. One Mail goes to the list and the > > other to you directly. Some list-members only reply to the list, but > > most reply to both. > > > > > > > > Another point, please do not top post! > > > > > > I'm afraid, that I have no more ideas! Your problem needs hard debugging > > ;-). > > > > Install pgadmin-III and/or phppgadmin and try to connect to your > > pgsql-server from your mapserver-server, also you could try to connect > > from your remote machine from command-line with "psql -Upostgres > > -hlab1.recife -ddbpostgis". > > > > > > As your machines are on different network segments, it is quite likely, > > that port 5432 is blocked by a firewall - you have to ask your IT to > > unlock this port. > > > > > > > > Ben > > > > > > Add FUN to your email - CLICK HERE! > > > > Ezequias, > > 1. Reply to the list, please. > 2. Don't top post, please. > 3. Do not change the subject line, please. > > > > > You need to have two accounts, one for the system, to start the > postmaster and of course on as the database super user, which we are > talking about. > > Did you explicitely change the password for the database super user > "postgres"? > > Ben > > > Add FUN to your email - CLICK HERE! > Ezequias, If you engage the help of a user list, then the conversation has to be _over_ _the_ _list_, so that somebody else could take advantage of this technical support. So please Ezequias, push the "Reply all" button and post _all_ your answers to list. Second, you're adviced to continue any conversation at the _end_ of the mail you are replying to, so that it is much easier for others to follow the conversation. Can you access postgres via "psql -Upostgres -ddbpostgis" if you are logged in as root or some other user - _not_ postgres!? If not, the pg_hba.conf you sent is likely not the one, your pgsql-Server is using. If you "psql" into your database, psql "takes" the credentials with which you are logged into your linux shell. So, either you provide -U to psql or you type "su - postgres", then you don't need a "-U". Ben From ezequias at RECIFE.PE.GOV.BR Fri Jul 1 06:48:21 2005 From: ezequias at RECIFE.PE.GOV.BR (Ezequias Rodrigues da Rocha) Date: Fri, 1 Jul 2005 10:48:21 -0300 Subject: Res: Re: Res: Re: Res: Re: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] Res: Re: Res: Re: [UMN_MAPSERVER-USERS] Fw: Postgis Connection Message-ID: -------Mensagem original------- De: Benjamin Thelen Data: 07/01/05 10:02:54 Para: Ezequias Rodrigues da Rocha Cc: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: Res: Re: Res: Re: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] Res: Re: Res: Re: [UMN_MAPSERVER-USERS] Fw: Postgis Connection Ezequias Rodrigues da Rocha wrote: > lets be clear. > > The postgresl user postgres have the pass=post > The linux postgres user have the pass=' ' (blank) > > I only can access the postgres user by linux exiting the root sesstion > (su - postgres) > > Some other person set the passwords for me. > > This make any suggestion ? > > Best regards > Ezequias > > > /-------Mensagem original-------/ > > /*De:*/ Benjamin Thelen > /*Data:*/ 07/01/05 09:29:44 > /*Para:*/ Ezequias Rodrigues da Rocha > /*Cc:*/ MAPSERVER-USERS at LISTS.UMN.EDU > /*Assunto:*/ Re: Res: Re: [UMN_MAPSERVER-USERS] Res: Re: > [UMN_MAPSERVER-USERS] Res: Re: Res: Re: [UMN_MAPSERVER-USERS] Fw: > Postgis Connection > > Ezequias Rodrigues da Rocha wrote: > > Some other thing. > > > > The server doesn't have the "postgres" user (linux system). > > > > The user "postgres" is from the postgresql. > > > > I hope you understands what I means. > > > > Best regards > > Ezequias > > > > /-------Mensagem original-------/ > > > > /*De:*/ Benjamin Thelen > > /*Data:*/ 07/01/05 09:02:12 > > /*Para:*/ MAPSERVER-USERS at LISTS.UMN.EDU > > > > > /*Assunto:*/ Re: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] > > Res: Re: Res: Re: [UMN_MAPSERVER-USERS] Fw: Postgis Connection > > > > Ezequias Rodrigues da Rocha wrote: > > > All looks to be correct. I am becoming to be worried. > > > > > > ps: Your e-mails are comming twice. Some times three times. Check > it out. > > > > > > Thank you for your attention > > > > > > Sincerely > > > ezequias > > > > > > /-------Mensagem original-------/ > > > > > > /*De:*/ Benjamin Thelen > > > /*Data:*/ 07/01/05 08:16:01 > > > /*Para:*/ MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > > /*Assunto:*/ Re: [UMN_MAPSERVER-USERS] Res: Re: Res: Re: > > > [UMN_MAPSERVER-USERS] Fw: Postgis Connection > > > > > > Ezequias Rodrigues da Rocha wrote: > > > > I do heve this line. See below: > > > > > > > > > > > > > > > > > > > > > > #--------------------------------------------------------------------------- > > > > # CONNECTIONS AND AUTHENTICATION > > > > > > > > > > #--------------------------------------------------------------------------- > > > > > > > > # - Connection Settings - > > > > > > > > listen_addresses = '*' # what IP interface(s) to listen on; > > > > # defaults to localhost, '*' = any > > > > port = 5432 > > > > max_connections = 100 > > > > > > > > Still waitting > > > > Ezequias > > > > > > > > /-------Mensagem original-------/ > > > > > > > > /*De:*/ Benjamin Thelen > > > > /*Data:*/ 07/01/05 05:55:31 > > > > /*Para:*/ Ezequias Rodrigues da Rocha > > > > > > /*Cc:*/ Benjamin Thelen > > > > /*Assunto:*/ Re: Res: Re: [UMN_MAPSERVER-USERS] Fw: Postgis > Connection > > > > > > > > Ezequias Rodrigues da Rocha wrote: > > > > > I didn't find the tcpip_socket parameter and put it in sume > point > > > on my > > > > > postgresql.conf. > > > > > > > > > > But now I can't start my postgresql 8.0 (# ./postmaster -D > > > > > /usr/local/pgsql/data) > > > > > > > > > > Please see what is wrong > > > > > > > > > > The error reported was: > > > > > > > > > > [postgres at mangueira bin]$ FATAL: unrecognized configuration > > parameter > > > > > "tcpip_socket" > > > > > > > > > > My pg_hba.conf is: > > > > > > > > > > [postgres at mangueira data]$ more pg_hba.conf > > > > > # TYPE DATABASE USER CIDR-ADDRESS METHOD > > > > > > > > > > # "local" is for Unix domain socket connections only > > > > > local all all trust > > > > > # IPv4 local connections: > > > > > host all all 10.0.0.0 255.0.0.0 password > > > > > host all all 192.168.0.0 255.0.0.0 password > > > > > host all all 127.0.0.1/32 trust > > > > > host all all 200.249.133.135 255.255.255 255 > > > > > password > > > > > # IPv6 local connections: > > > > > host all all ::1/128 trust > > > > > I believe there is no problem because I am on the network 10 > > and the > > > > > server on the 192 > > > > > > > > > > Some more advices ? > > > > > > > > > Ezequias, > > > > > > You can ping the pgsql-server from your mapserver-server? > > > # ping lab1.recife > > > > > > The pgsql-server listens on port 5432? Check with: > > > # netstat -tan -ptcp. > > > > > > You corrected the typo "dbname=dbpotgis"? > > > You are sure about the password for the dbuser? Can you log into the > > > database from the command line and access the tables? > > > # psql -Upostgres -ddbpostgis > > > > > > If you are not sure about the password, change "password" to > "trust" in > > > pg_hba.conf. Also, I would recommend to change "password" to "md5" for > > > encrypted passwords. > > > > > > > > > Well, at the moment, I have no more ideas, sorry! > > > > > > Ben > > > > > > > > > > > > > > > > Best regards > > > > > Ezequias > > > > > > > > > > /-------Mensagem original-------/ > > > > > > > > > > /*De:*/ Benjamin Thelen > > > > > /*Data:*/ 06/30/05 12:43:52 > > > > > /*Para:*/ MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > > > > > > > > > > > > > /*Assunto:*/ Re: [UMN_MAPSERVER-USERS] Fw: Postgis Connection > > > > > > > > > > Ezequias Rodrigues da Rocha wrote: > > > > > > I am trying to load a mapserver service with a postgis > > > connection but > > > > > > the MS reported this message below: > > > > > > > > > > > > > > > > > > msDrawMap(): Image handling error. Failed to draw layer named > > > > 'bairros'. > > > > > > msPOSTGISLayerOpen(): Query error. couldnt make connection to > > > DB with > > > > > > connect string 'user=postgres password=post dbname=dbpotgis > > > > > > host=lab1.recife port=5432'. > > > > > > Error reported was 'could not create socket: Permission > > denied '. > > > > > > 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 > > > > > > Does anyone can tell me what to do ? > > > > > > > > > > > > > > > > > > > > > > > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > > > > > > Atenciosamente (Sincerely) > > > > > > *Ezequias Rodrigues da Rocha* > > > > > > *** *www.recife.pe.gov.br > > > > > > > > > > > > > > > * > > > > > > > > > > > > > > > > > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > > > > > > A pior das democracias ainda ? melhor do que a melhor das > > ditaduras > > > > > > The worst of democracies is still better than the better of > > > > dictatorships > > > > > > MSN Messenger: ezequias at hotmail.com > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Add FUN to your email - CLICK HERE! > > > > > > > > > > > > > > > > > > > > > Ezequias, > > > > > > > > > > Well, I think one cannot make more suggestions you already got > > > from the > > > > > error messages! > > > > > > > > > > I assume your postgres is running and your connection string is > > > correct, > > > > > but you should send it to the list, too. > > > > > > > > > > A common error is, that the postgresql-server does not accept > > tcp/ip > > > > > connections. Check your postgresql.conf: "tcpip_socket = true" > > must be > > > > > there. > > > > > Second, check your pg_hba.conf: There has to be an entry that > > allows > > > > > your "mapserver-host" to connect to the server, such as > > > > > > > > > > for remote access of the network 192.168.100.0: > > > > > host all all 192.168.100.0 > 255.255.255.0 > > > > trust > > > > > > > > > > or for local access, if mapserver and pgsql are on the same > host: > > > > > host all all 127.0.0.1 > > > 255.255.255.255 trust > > > > > > > > > > > > > > > Hope, that helps! > > > > > > > > > > Ben > > > > > > > > > > > > > > > Add FUN to your email - CLICK HERE! > > > > > > > > > > > > > Ezequias, > > > > > > > > As you're using postgresql 8, you must remove the tcpip_socket > > > > parameter, because it's a paramater used in earlier postgresql > > versions. > > > > Look again into your posgresql.conf. You'll need to have the > following > > > > at the beginning of the file: > > > > > > > > listen_addresses = '*' # what IP interface(s) to listen on; > > > > # defaults to localhost, '*' = any > > > > > > > > Restart pgsql. > > > > > > > > Ben > > > > > > > > > > > > > > > > > > > > > > > > Add FUN to your email - CLICK HERE! > > > > > > > > > > > > > Add FUN to your email - CLICK HERE! > > > > > > > > > > > Ezequias, > > > > Please always reply to the list! > > > > Of course you receive the mails twice. One Mail goes to the list and the > > other to you directly. Some list-members only reply to the list, but > > most reply to both. > > > > > > > > Another point, please do not top post! > > > > > > I'm afraid, that I have no more ideas! Your problem needs hard debugging > > ;-). > > > > Install pgadmin-III and/or phppgadmin and try to connect to your > > pgsql-server from your mapserver-server, also you could try to connect > > from your remote machine from command-line with "psql -Upostgres > > -hlab1.recife -ddbpostgis". > > > > > > As your machines are on different network segments, it is quite likely, > > that port 5432 is blocked by a firewall - you have to ask your IT to > > unlock this port. > > > > > > > > Ben > > > > > > Add FUN to your email - CLICK HERE! > > > > Ezequias, > > 1. Reply to the list, please. > 2. Don't top post, please. > 3. Do not change the subject line, please. > > > > > You need to have two accounts, one for the system, to start the > postmaster and of course on as the database super user, which we are > talking about. > > Did you explicitely change the password for the database super user > "postgres"? > > Ben > > > Add FUN to your email - CLICK HERE! > Ezequias, If you engage the help of a user list, then the conversation has to be _over_ _the_ _list_, so that somebody else could take advantage of this technical support. So please Ezequias, push the "Reply all" button and post _all_ your answers to list. Second, you're adviced to continue any conversation at the _end_ of the mail you are replying to, so that it is much easier for others to follow the conversation. Can you access postgres via "psql -Upostgres -ddbpostgis" if you are logged in as root or some other user - _not_ postgres!? If not, the pg_hba.conf you sent is likely not the one, your pgsql-Server is using. If you "psql" into your database, psql "takes" the credentials with which you are logged into your linux shell. So, either you provide -U to psql or you type "su - postgres", then you don't need a "-U". Ben Ben, I never recieve any post about the way I send my messages (at begin or at end) but if you are not fine with it, I will send now at the End of the e-mail. I just can access postgresql via postgres user (linux user): [postgres at machine ~]$ psql -D /usr/local/pgsql/data The connection occours with no problem. Ezequias -------------- next part -------------- An HTML attachment was scrubbed... URL: From fx.prunayre at OIEAU.FR Fri Jul 1 06:39:50 2005 From: fx.prunayre at OIEAU.FR (=?iso-8859-1?Q?Fran=E7ois_Prunayre?=) Date: Fri, 1 Jul 2005 15:39:50 +0200 Subject: GetFeatureInfo problem In-Reply-To: <42C5303A.1040606@gva.es> Message-ID: Hi Jos?, Try to add gml_include_items in your metadata for the layer ... DUMP TRUE METADATA "ows_title" "LAYER TITLE" "ows_srs" "EPSG:XXX" "ows_group_title" "LAYER GROUP" "ows_extent" "0 1600000 1200000 2800000" "gml_include_items" "all" END HTH Francois -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Jos? Vicente Hig?n Valero Envoy? : vendredi 1 juillet 2005 14:00 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] GetFeatureInfo problem Hi, I have installed mapserver 4.6.0 on suse 9.0 with postgis 1.0.1. When I request a GetFeatureInfo, the response hasn't information about the atributes. I get this: 620344.450000,4377612.070000 632854.690000,4394243.500000 But I must get: 28 Complex Shape 55 55 0 1 0 Embalse de Contreras Embalses ... Any clue? I have compiled mapserver: ./configure --prefix=/usr/local --with-wms --with-wfs --with-wcs --with-wmsclient --with-wfsclient --with-gd --with-proj --with-geos --with-freetype --with-gdal=/usr/local/bin/gdal-config --with-ogr=/usr/local/bin/gdal-config --with-postgis=/usr/local/pgsql/bin/pg_config --with-curl-config=/usr/local/bin/curl-config --with-jpeg --with-tiff --with-httpd=/usr/local/apache2/bin/httpd --with-mygis=/usr/local/mysql/bin/mysql_config And the configuration of the map file: LAYER NAME "embalses" GROUP "CV300k" STATUS ON DUMP TRUE TEMPLATE "." DATA "the_geom from embalses" TYPE POLYGON TRANSPARENCY 10 CONNECTIONTYPE POSTGIS CONNECTION "user=gis dbname=cv300k host=127.0.0.1 port=5432" METADATA "wms_name" "embalses" "wms_title" "Embalses" "wms_abstract" "embalses" "wms_keywordlist" "embalses,valencia" "wms_srs" "EPSG:23030 EPSG:4326" "wms_group_title" "CV300k" "wms_extent" "600000 4180000 810000 4530000" END CLASS # NAME "embalses" COLOR 0 204 255 OUTLINECOLOR 0 0 255 END END Thanks in advance. -- Jos? Vicente Hig?n gvSIG development Team Conselleria de Infraestructuras y Transporte Generalitat Valenciana Valencia - Spain tlf. 963862397 http://www.gvsig.gva.es -- Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve. Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et prives. Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee. Any data and information contained in this electronic mail is personal, confidential and secret. Any total or partial publication, use or distribution must be authorized. -- Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve. Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et prives. Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee. Any data and information contained in this electronic mail is personal, confidential and secret. Any total or partial publication, use or distribution must be authorized. From kmulka at GLC.ORG Fri Jul 1 06:32:35 2005 From: kmulka at GLC.ORG (Kyle Mulka) Date: Fri, 1 Jul 2005 09:32:35 -0400 Subject: Google Maps API Message-ID: To put Google Maps into perspective, all the other major online software companies have or are going to release some sort of 3d mapping tool. Amazon released one recently, but then took the link offline. I belive you can still get it internally. (not from the main page which was http://maps.a9.com) Microsoft is going to release "Virtual Earth" soon, and it is expected to be better than the current Google Earth. But, then again, Google may improve theirs heavely in the coming months. Yahoo released their mapping API the day after Google did. So, if you want to compare Google with Yahoo, here's the link: http://developer.yahoo.net/maps/ Here at the Great Lakes Commission, we are excited to hear about the new Google Maps API as it will allow us to get a street level reference point for our GIS data. I personally played around with Google Earth as soon as the free version came out. I took a few screen shots and posted them here: http://www.kylemulka.com/wordpress/?p=231 Google Earth is pretty exciting. I think they took the download link down because of the bandwidth the software must be hogging with all those images. I'm not sure if they will be able to sustain the free version of Google Earth as it currently stands even with advertising. Any thoughts? -----Original Message----- From: Camden Daily [mailto:cdaily at GMAIL.COM] Sent: Thursday, June 30, 2005 10:39 AM Subject: Google Maps API http://www.google.com/apis/maps/ I hadn't seen this yet, so I guess it's still new. A full-fledged API for Google maps. Up to 50,000 page views a day. From what I can see, it looks pretty well developed. If you don't want/need the full power of your own GIS app, and just want to plot some stuff on a map, it looks pretty sweet. Also, did anyone else manage to download the Google Earth beta software? I can't remember the last time I was so completely blown away by a piece of software. Zooming in from outer space onto my house is damn cool, and then turning on the 3D buildings model and checking out downtown Chicago is awesome. -Camden Daily From piero.cavalieri at HEIDI.IT Fri Jul 1 06:55:31 2005 From: piero.cavalieri at HEIDI.IT (Piero Cavalieri) Date: Fri, 1 Jul 2005 08:55:31 -0500 Subject: rosa applet (re)loading Message-ID: Hi folks, I know there's a rosa m.l. for this, however... I don't know about applets, simly I installed rosa in my MapServer app. It seems to me that the applet is reloaded each time I submit the form. For example, each time I zoom-out: ... basic: Distruzione applet... (destroy) basic: Eliminazione applet... basic: Chiusura applet... (closing) ... ... basic: Caricamento applet... (load) basic: Inizializzazione applet... (initialization) basic: Avvio applet... (start) Is it normal? I'm using jre 1.5.0 Many Thanks Piero From bt at CCGIS.DE Fri Jul 1 07:04:51 2005 From: bt at CCGIS.DE (Benjamin Thelen) Date: Fri, 1 Jul 2005 16:04:51 +0200 Subject: Res: Re: Res: Re: Res: Re: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] Res: Re: Res: Re: [UMN_MAPSERVER-USERS] Fw: Postgis Connection In-Reply-To: <42C549A5.000001.03200@DC_EZEQUIAS> Message-ID: Ezequias Rodrigues da Rocha wrote: > > > /-------Mensagem original-------/ > > /*De:*/ Benjamin Thelen > /*Data:*/ 07/01/05 10:02:54 > /*Para:*/ Ezequias Rodrigues da Rocha > /*Cc:*/ MAPSERVER-USERS at LISTS.UMN.EDU > /*Assunto:*/ Re: Res: Re: Res: Re: [UMN_MAPSERVER-USERS] Res: Re: > [UMN_MAPSERVER-USERS] Res: Re: Res: Re: [UMN_MAPSERVER-USERS] Fw: > Postgis Connection > > Ezequias Rodrigues da Rocha wrote: > > lets be clear. > > > > The postgresl user postgres have the pass=post > > The linux postgres user have the pass=' ' (blank) > > > > I only can access the postgres user by linux exiting the root sesstion > > (su - postgres) > > > > Some other person set the passwords for me. > > > > This make any suggestion ? > > > > Best regards > > Ezequias > > > > > > /-------Mensagem original-------/ > > > > /*De:*/ Benjamin Thelen > > /*Data:*/ 07/01/05 09:29:44 > > /*Para:*/ Ezequias Rodrigues da Rocha > > /*Cc:*/ MAPSERVER-USERS at LISTS.UMN.EDU > > > > /*Assunto:*/ Re: Res: Re: [UMN_MAPSERVER-USERS] Res: Re: > > [UMN_MAPSERVER-USERS] Res: Re: Res: Re: [UMN_MAPSERVER-USERS] Fw: > > Postgis Connection > > > > Ezequias Rodrigues da Rocha wrote: > > > Some other thing. > > > > > > The server doesn't have the "postgres" user (linux system). > > > > > > The user "postgres" is from the postgresql. > > > > > > I hope you understands what I means. > > > > > > Best regards > > > Ezequias > > > > > > /-------Mensagem original-------/ > > > > > > /*De:*/ Benjamin Thelen > > > /*Data:*/ 07/01/05 09:02:12 > > > /*Para:*/ MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > > /*Assunto:*/ Re: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] > > > Res: Re: Res: Re: [UMN_MAPSERVER-USERS] Fw: Postgis Connection > > > > > > Ezequias Rodrigues da Rocha wrote: > > > > All looks to be correct. I am becoming to be worried. > > > > > > > > ps: Your e-mails are comming twice. Some times three times. Check > > it out. > > > > > > > > Thank you for your attention > > > > > > > > Sincerely > > > > ezequias > > > > > > > > /-------Mensagem original-------/ > > > > > > > > /*De:*/ Benjamin Thelen > > > > /*Data:*/ 07/01/05 08:16:01 > > > > /*Para:*/ MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > > > > > > > /*Assunto:*/ Re: [UMN_MAPSERVER-USERS] Res: Re: Res: Re: > > > > [UMN_MAPSERVER-USERS] Fw: Postgis Connection > > > > > > > > Ezequias Rodrigues da Rocha wrote: > > > > > I do heve this line. See below: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > #--------------------------------------------------------------------------- > > > > > # CONNECTIONS AND AUTHENTICATION > > > > > > > > > > > > > > > #--------------------------------------------------------------------------- > > > > > > > > > > # - Connection Settings - > > > > > > > > > > listen_addresses = '*' # what IP interface(s) to listen on; > > > > > # defaults to localhost, '*' > = any > > > > > port = 5432 > > > > > max_connections = 100 > > > > > > > > > > Still waitting > > > > > Ezequias > > > > > > > > > > /-------Mensagem original-------/ > > > > > > > > > > /*De:*/ Benjamin Thelen > > > > > /*Data:*/ 07/01/05 05:55:31 > > > > > /*Para:*/ Ezequias Rodrigues da Rocha > > > > > > > > /*Cc:*/ Benjamin Thelen > > > > > /*Assunto:*/ Re: Res: Re: [UMN_MAPSERVER-USERS] Fw: Postgis > > Connection > > > > > > > > > > Ezequias Rodrigues da Rocha wrote: > > > > > > I didn't find the tcpip_socket parameter and put it in sume > > point > > > > on my > > > > > > postgresql.conf. > > > > > > > > > > > > But now I can't start my postgresql 8.0 (# ./postmaster -D > > > > > > /usr/local/pgsql/data) > > > > > > > > > > > > Please see what is wrong > > > > > > > > > > > > The error reported was: > > > > > > > > > > > > [postgres at mangueira bin]$ FATAL: unrecognized configuration > > > parameter > > > > > > "tcpip_socket" > > > > > > > > > > > > My pg_hba.conf is: > > > > > > > > > > > > [postgres at mangueira data]$ more pg_hba.conf > > > > > > # TYPE DATABASE USER CIDR-ADDRESS METHOD > > > > > > > > > > > > # "local" is for Unix domain socket connections only > > > > > > local all all trust > > > > > > # IPv4 local connections: > > > > > > host all all 10.0.0.0 > 255.0.0.0 password > > > > > > host all all 192.168.0.0 255.0.0.0 > password > > > > > > host all all 127.0.0.1/32 trust > > > > > > host all all 200.249.133.135 > 255.255.255.255 > > > > > > password > > > > > > # IPv6 local connections: > > > > > > host all all ::1/128 trust > > > > > > I believe there is no problem because I am on the network 10 > > > and the > > > > > > server on the 192 > > > > > > > > > > > > Some more advices ? > > > > > > > > > > > > Ezequias, > > > > > > > > You can ping the pgsql-server from your mapserver-server? > > > > # ping lab1.recife > > > > > > > > The pgsql-server listens on port 5432? Check with: > > > > # netstat -tan -ptcp. > > > > > > > > You corrected the typo "dbname=dbpotgis"? > > > > You are sure about the password for the dbuser? Can you log > into the > > > > database from the command line and access the tables? > > > > # psql -Upostgres -ddbpostgis > > > > > > > > If you are not sure about the password, change "password" to > > "trust" in > > > > pg_hba.conf. Also, I would recommend to change "password" to > "md5" for > > > > encrypted passwords. > > > > > > > > > > > > Well, at the moment, I have no more ideas, sorry! > > > > > > > > Ben > > > > > > > > > > > > > > > > > > > > Best regards > > > > > > Ezequias > > > > > > > > > > > > /-------Mensagem original-------/ > > > > > > > > > > > > /*De:*/ Benjamin Thelen > > > > > > /*Data:*/ 06/30/05 12:43:52 > > > > > > /*Para:*/ MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > > > > > > > > > > > > > > > > > > > > /*Assunto:*/ Re: [UMN_MAPSERVER-USERS] Fw: Postgis Connection > > > > > > > > > > > > Ezequias Rodrigues da Rocha wrote: > > > > > > > I am trying to load a mapserver service with a postgis > > > > connection but > > > > > > > the MS reported this message below: > > > > > > > > > > > > > > > > > > > > > msDrawMap(): Image handling error. Failed to draw > layer named > > > > > 'bairros'. > > > > > > > msPOSTGISLayerOpen(): Query error. couldnt make > connection to > > > > DB with > > > > > > > connect string 'user=postgres password=post > dbname=dbpotgis > > > > > > > host=lab1.recife port=5432'. > > > > > > > Error reported was 'could not create socket: Permission > > > denied '. > > > > > > > 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 > > > > > > > Does anyone can tell me what to do ? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > > > > > > > Atenciosamente > (Sincerely) > > > > > > > *Ezequias Rodrigues da Rocha* > > > > > > > *** > *www.recife.pe.gov.br > > > > > > > > > > > > > > > > > > > > * > > > > > > > > > > > > > > > > > > > > > > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > > > > > > > A pior das democracias ainda ? melhor do que a melhor das > > > ditaduras > > > > > > > The worst of democracies is still better than the > better of > > > > > dictatorships > > > > > > > MSN Messenger: ezequias at hotmail.com > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Add FUN to your email - CLICK HERE! > > > > > > > > > > > > > > > > > > > > > > > > > Ezequias, > > > > > > > > > > > > Well, I think one cannot make more suggestions you > already got > > > > from the > > > > > > error messages! > > > > > > > > > > > > I assume your postgres is running and your connection > string is > > > > correct, > > > > > > but you should send it to the list, too. > > > > > > > > > > > > A common error is, that the postgresql-server does not accept > > > tcp/ip > > > > > > connections. Check your postgresql.conf: "tcpip_socket = > true" > > > must be > > > > > > there. > > > > > > Second, check your pg_hba.conf: There has to be an entry that > > > allows > > > > > > your "mapserver-host" to connect to the server, such as > > > > > > > > > > > > for remote access of the network 192.168.100.0: > > > > > > host all all 192.168.100.0 > > 255.255.255.0 > > > > > trust > > > > > > > > > > > > or for local access, if mapserver and pgsql are on the same > > host: > > > > > > host all all 127.0.0.1 > > > > 255.255.255.255 trust > > > > > > > > > > > > > > > > > > Hope, that helps! > > > > > > > > > > > > Ben > > > > > > > > > > > > > > > > > > Add FUN to your email - CLICK HERE! > > > > > > > > > > > > > > > > Ezequias, > > > > > > > > > > As you're using postgresql 8, you must remove the tcpip_socket > > > > > parameter, because it's a paramater used in earlier postgresql > > > versions. > > > > > Look again into your posgresql.conf. You'll need to have the > > following > > > > > at the beginning of the file: > > > > > > > > > > listen_addresses = '*' # what IP interface(s) to listen on; > > > > > # defaults to localhost, '*' = any > > > > > > > > > > Restart pgsql. > > > > > > > > > > Ben > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Add FUN to your email - CLICK HERE! > > > > > > > > > > > > > > > > > Add FUN to your email - CLICK HERE! > > > > > > > > > > > > > > > > Ezequias, > > > > > > Please always reply to the list! > > > > > > Of course you receive the mails twice. One Mail goes to the list > and the > > > other to you directly. Some list-members only reply to the list, but > > > most reply to both. > > > > > > > > > > > > Another point, please do not top post! > > > > > > > > > I'm afraid, that I have no more ideas! Your problem needs hard > debugging > > > ;-). > > > > > > Install pgadmin-III and/or phppgadmin and try to connect to your > > > pgsql-server from your mapserver-server, also you could try to connect > > > from your remote machine from command-line with "psql -Upostgres > > > -hlab1.recife -ddbpostgis". > > > > > > > > > As your machines are on different network segments, it is quite > likely, > > > that port 5432 is blocked by a firewall - you have to ask your IT to > > > unlock this port. > > > > > > > > > > > > Ben > > > > > > > > > Add FUN to your email - CLICK HERE! > > > > > > > Ezequias, > > > > 1. Reply to the list, please. > > 2. Don't top post, please. > > 3. Do not change the subject line, please. > > > > > > > > > > You need to have two accounts, one for the system, to start the > > postmaster and of course on as the database super user, which we are > > talking about. > > > > Did you explicitely change the password for the database super user > > "postgres"? > > > > Ben > > > > > > Add FUN to your email - CLICK HERE! > > > > > > Ezequias, > > If you engage the help of a user list, then the conversation has to be > _over_ _the_ _list_, so that somebody else could take advantage of this > technical support. So please Ezequias, push the "Reply all" button and > post _all_ your answers to list. > > Second, you're adviced to continue any conversation at the _end_ of the > mail you are replying to, so that it is much easier for others to follow > the conversation. > > > > Can you access postgres via "psql -Upostgres -ddbpostgis" if you are > logged in as root or some other user - _not_ postgres!? If not, the > pg_hba.conf you sent is likely not the one, your pgsql-Server is using. > > If you "psql" into your database, psql "takes" the credentials with > which you are logged into your linux shell. So, either you provide > -U to psql or you type "su - postgres", then you don't need a > "-U". > > > Ben > > > > > Ben, > > I never recieve any post about the way I send my messages (at begin or > at end) but if you are not fine with it, I will send now at the End of > the e-mail. Ezequias, this is not my idea, there is an etiquette how to use a mailing list, basically applying to all user lists, e.g.: http://www.freebsd.org/doc/en_US.ISO8859-1/articles/mailing-list-faq/etiquette.html > > I just can access postgresql via postgres user (linux user): > > [postgres at machine ~]$ psql -D /usr/local/pgsql/data > > The connection occours with no problem. If you cannot login in as some other user then the linux postgres to connect to the database, mapserver will never be able to establish a connection. You devinitely need to be able to do the following: [someUser at machine ~]$ psql -Upostgres -ddbname So, if you can't do that, it sounds to me that your pg_hba.conf your database server is actually using, is not the one you sent to me, because there is an alternative authentication method to password/trust/md5, which is called "ident sameuser". That means you _must_ be logged into a linux shell with a user which also exits in your database!. That is why only "su - postgres" is working. Ben > > Ezequias > > > Add FUN to your email - CLICK HERE! > From Richard_D_Levine at RAYTHEON.COM Fri Jul 1 07:27:52 2005 From: Richard_D_Levine at RAYTHEON.COM (Rick Levine) Date: Fri, 1 Jul 2005 09:27:52 -0500 Subject: Google Maps API In-Reply-To: <20050701133036.8A0382571@superior.great-lakes.net> Message-ID: > Microsoft is going to release "Virtual Earth" soon, and it is expected to be better than the current Google Earth. FUD. Microsoft is going to release a better search engine than Google soon too, according to them. It is a well documented FUD method of Microsoft to announce vaporware to keep competitors' products down. The idea is to get buyers or advertisers to put off purchases until they see what Microsoft's offering looks like. Rick UMN MapServer Users List wrote on 07/01/2005 08:32:35 AM: > To put Google Maps into perspective, all the other major online software > companies have or are going to release some sort of 3d mapping tool. Amazon > released one recently, but then took the link offline. I belive you can > still get it internally. (not from the main page which was > http://maps.a9.com) Microsoft is going to release "Virtual Earth" soon, and > it is expected to be better than the current Google Earth. But, then again, > Google may improve theirs heavely in the coming months. Yahoo released their > mapping API the day after Google did. So, if you want to compare Google with > Yahoo, here's the link: http://developer.yahoo.net/maps/ > > Here at the Great Lakes Commission, we are excited to hear about the new > Google Maps API as it will allow us to get a street level reference point > for our GIS data. > > I personally played around with Google Earth as soon as the free version > came out. I took a few screen shots and posted them here: > > http://www.kylemulka.com/wordpress/?p=231 > > Google Earth is pretty exciting. I think they took the download link down > because of the bandwidth the software must be hogging with all those images. > I'm not sure if they will be able to sustain the free version of Google > Earth as it currently stands even with advertising. Any thoughts? > > > -----Original Message----- > From: Camden Daily [mailto:cdaily at GMAIL.COM] > Sent: Thursday, June 30, 2005 10:39 AM > Subject: Google Maps API > > http://www.google.com/apis/maps/ > > I hadn't seen this yet, so I guess it's still new. A full-fledged API for > Google maps. Up to 50,000 page views a day. From what I can see, it looks > pretty well developed. If you don't want/need the full power of your own > GIS app, and just want to plot some stuff on a map, it looks pretty sweet. > > Also, did anyone else manage to download the Google Earth beta software? I > can't remember the last time I was so completely blown away by a piece of > software. Zooming in from outer space onto my house is damn cool, and then > turning on the 3D buildings model and checking out downtown Chicago is > awesome. > > -Camden Daily From jdport at VERITIME.COM Fri Jul 1 11:03:44 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Fri, 1 Jul 2005 14:03:44 -0400 Subject: Security of data Message-ID: Perhaps a simpler way would be to make anybody accessing the data sign non-disclosure agreements. I'm no legal expert but since there isn't really any way to guarentee 100% that people aren't keeping data they are viewing, you can at least make them legally bound to not allow that data to be used in any way outside of the company... Just a thought. -Jeff ----- Original Message ----- From: "Bill Binko" To: Sent: Wednesday, June 29, 2005 7:42 PM Subject: Re: [UMN_MAPSERVER-USERS] Security of data > On Wed, 29 Jun 2005, Pericles S. Nacionales wrote: > >> Randy, >> >> This is an issue best resolved by legal experts. I agree with Ed and >> Mike... Kiosks are your only solution to truly safeguard that >> information. If you don't want users to have a digital copy of whatever >> information it is, you shouldn't let them have access to it with their >> own machines. Even a click-through license won't give you that much >> shield, I don't think. >> >> Talk to a lawyer though, because I'm not. > > The only thing that I think this community might be able to help with > would be the addition of a watermark to your image (cryptographic and/or > visual). I am certain that this could be added at the PHP/Mapscript > layer, and there are probably other places as well. > > It does not solve your problem (PrintScreen, PicturePhones, PenDrives, > floppies, all are still a problem), but it might give your legal team one > more tool they can use to enforce a legal solution. > > Bill > From gerry.creager at TAMU.EDU Fri Jul 1 14:15:21 2005 From: gerry.creager at TAMU.EDU (Gerry Creager) Date: Fri, 1 Jul 2005 16:15:21 -0500 Subject: Security of data In-Reply-To: <006b01c57e67$4a84b6f0$5ff2fbd0@solo> Message-ID: Having just been involved in an organization where a group of folks signed non-disclosure agreements and then misappropriated the data, we found that you must be prepared to spend a fair bit of money to pursue legal options, and have the moral fiber to stand up and sue. In my opinion, it's easier to incorporate some form of minimal password protection and a warning, and hope for the best. gerry Jeff Portwine wrote: > Perhaps a simpler way would be to make anybody accessing the data sign > non-disclosure agreements. I'm no legal expert but since there isn't > really any way to guarentee 100% that people aren't keeping data they are > viewing, you can at least make them legally bound to not allow that data to > be used in any way outside of the company... > > Just a thought. > -Jeff > > ----- Original Message ----- > From: "Bill Binko" > To: > Sent: Wednesday, June 29, 2005 7:42 PM > Subject: Re: [UMN_MAPSERVER-USERS] Security of data > > >> On Wed, 29 Jun 2005, Pericles S. Nacionales wrote: >> >>> Randy, >>> >>> This is an issue best resolved by legal experts. I agree with Ed and >>> Mike... Kiosks are your only solution to truly safeguard that >>> information. If you don't want users to have a digital copy of whatever >>> information it is, you shouldn't let them have access to it with their >>> own machines. Even a click-through license won't give you that much >>> shield, I don't think. >>> >>> Talk to a lawyer though, because I'm not. >> >> >> The only thing that I think this community might be able to help with >> would be the addition of a watermark to your image (cryptographic and/or >> visual). I am certain that this could be added at the PHP/Mapscript >> layer, and there are probably other places as well. >> >> It does not solve your problem (PrintScreen, PicturePhones, PenDrives, >> floppies, all are still a problem), but it might give your legal team one >> more tool they can use to enforce a legal solution. >> >> Bill >> -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Pager: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From raj_ganesh_sweet at SIFY.COM Sat Jul 2 05:58:31 2005 From: raj_ganesh_sweet at SIFY.COM (raj ganesh) Date: Sat, 2 Jul 2005 17:58:31 +0500 Subject: problem with labelling - overlap Message-ID: we are organization working to come up with a GIS appication for tsunami affected areas in india, where in NGO details are to be displayed at the respective work areas.We are facing problem while trying to display the ngo names using label object, as there can be more than one member at any given place.When we try to display labels using force, they just pile up one over other. Is there a way to over come this problem, where we can display all the labels attached to that point??? i hope to hear soon... mail me at raj_ganesh_sweet at sify.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From w.blanken at GEON.NL Sat Jul 2 08:56:32 2005 From: w.blanken at GEON.NL (Wim Blanken) Date: Sat, 2 Jul 2005 17:56:32 +0200 Subject: problem with labelling - overlap Message-ID: Hello Raj, It depends on whether the labels belong the same object (but are in different fields) or to different objects laying on top of each other. In the first case you could use the TEXT option in the class object and do something like: TEXT "[FIELDNAME1] [FIELDNAME2] [FIELDNAME3]" In the second case. I solved this by merging the points on the same location to 1 point storing the labels in one field. Regards, Wim Blanken The Netherlands ----- Original Message ----- From: raj ganesh To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Saturday, July 02, 2005 2:58 PM Subject: [UMN_MAPSERVER-USERS] problem with labelling - overlap we are organization working to come up with a GIS appication fortsunami affected areas in india, where in NGO details are to bedisplayed at the respective work areas.We are facing problem whiletrying to display the ngo names using label object, as there can be morethan one member at any given place.When we try to display labels usingforce, they just pile up one over other. Is there a way to over comethis problem, where we can display all the labels attached to thatpoint??? i hope to hear soon... mail me at raj_ganesh_sweet at sify.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From xwu2 at UTNET.UTOLEDO.EDU Sat Jul 2 12:40:46 2005 From: xwu2 at UTNET.UTOLEDO.EDU (Wu, Xiaochun) Date: Sat, 2 Jul 2005 15:40:46 -0400 Subject: question about the installation of mapserver Message-ID: Hi, everyone: I am very interested in the mapserver and have just started to learn. It is totally new to me and I even have problems to install it in my linux computer. I have tried to download some intallation package from your website and still have to clue to get it work. So would you please tell me how to install it and get it to work? thanks ahead! xiaochun -------------- next part -------------- An HTML attachment was scrubbed... URL: From gireddy at GMAIL.COM Sat Jul 2 14:12:21 2005 From: gireddy at GMAIL.COM (Shashi Gireddy) Date: Sat, 2 Jul 2005 16:12:21 -0500 Subject: centerline maps Message-ID: HI all, I am working on various roadtypes, so I am gathering data for that. One of my friend told me that centerline maps are the best source for this. but I have no idea how centerline maps looks like, how to get them, if so how to maps them onto shape files. can anybody refer me to any good source of data about centerline maps. thank you, shashi. -- Shashi Kiran Reddy. Gireddy, Graduate Assistant, CBER, University of Alabama. http://www.cs.ua.edu/shashi Home: 205-752-5137 Cell: 205-657-1438 From w.blanken at GEON.NL Sat Jul 2 14:33:10 2005 From: w.blanken at GEON.NL (Wim Blanken) Date: Sat, 2 Jul 2005 23:33:10 +0200 Subject: question about the installation of mapserver Message-ID: Hello xiaochun, You need to be a little bit more specific to get some advice about this........ Which distribution of linux are you using and how do you want to use mapserver (mapscript? cgi? postgis?). What problems do you encounter? Compiling, installing or using? Regards, Wim Blanken The Netherlands ----- Original Message ----- From: Wu, Xiaochun To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Saturday, July 02, 2005 9:40 PM Subject: [UMN_MAPSERVER-USERS] question about the installation of mapserver Hi, everyone: I am very interested in the mapserver and have just started to learn. It is totally new to me and I even have problems to install it in my linux computer. I have tried to download some intallation package from your website and still have to clue to get it work. So would you please tell me how to install it and get it to work? thanks ahead! xiaochun -------------- next part -------------- An HTML attachment was scrubbed... URL: From xwu2 at UTNET.UTOLEDO.EDU Sat Jul 2 15:10:42 2005 From: xwu2 at UTNET.UTOLEDO.EDU (Wu, Xiaochun) Date: Sat, 2 Jul 2005 18:10:42 -0400 Subject: =?GB2312?Q?=B4=F0=B8=B4:?= [UMN_MAPSERVER-USERS] question abo ut the installation of mapserver Message-ID: Hi, Wim: First, thank you very much for your reply. What I want to do is publish my map and database of my project through the Internet. And the user could use my database to make instant maps through the website. And you know, I am totally new in this area and I think I have the problem in installing the mapserver and get it work. Do you have some advice? Thanks a lot. xiaochun -------------- next part -------------- An HTML attachment was scrubbed... URL: From elshayal at SMARTWEBONLINE.COM Sat Jul 2 15:49:52 2005 From: elshayal at SMARTWEBONLINE.COM (Mohamed Elshayal) Date: Sun, 3 Jul 2005 01:49:52 +0300 Subject: centerline maps Message-ID: Hi shashi, Road centerline is a line in the meddele of the road Road edge can be presented by parsel Blocks layer Road centerlines network is usefull for shortest path analysis Thank you and best Regards Mohamed Elshayal GIS Software Developer http://www.smartwebonline.com ( Free GIS Download ) elshayal at tedata.net.eg ----- Original Message ----- From: "Shashi Gireddy" To: Sent: Sunday, July 03, 2005 12:12 AM Subject: [UMN_MAPSERVER-USERS] centerline maps HI all, I am working on various roadtypes, so I am gathering data for that. One of my friend told me that centerline maps are the best source for this. but I have no idea how centerline maps looks like, how to get them, if so how to maps them onto shape files. can anybody refer me to any good source of data about centerline maps. thank you, shashi. -- Shashi Kiran Reddy. Gireddy, Graduate Assistant, CBER, University of Alabama. http://www.cs.ua.edu/shashi Home: 205-752-5137 Cell: 205-657-1438 From elshayal at SMARTWEBONLINE.COM Sat Jul 2 16:13:08 2005 From: elshayal at SMARTWEBONLINE.COM (Mohamed Elshayal) Date: Sun, 3 Jul 2005 02:13:08 +0300 Subject: =?GB2312?Q?=B4=F0=B8=B4:?= [UMN_MAP SERVER-USERS] question abo ut the instal lation of mapserver Message-ID: ?e??: [UMN_MAPSERVER-USERS] question about the installation of mapserverHi xiaochun to publish your map and database of your project through the Internet you need to answer the following questions 1 - Do you have a hosting server ? 2 - what is the type of your hosting server ( linux Server or windows Server ) ? 3 - Do you know HTML language ? must be yes 4 - Do you know java script or VBScript Languages ? 5 - Your maps must be presented as ( .shp , .shx , .dbf ) Thank you and best Regards Mohamed Elshayal GIS Software Developer http://www.smartwebonline.com ( Free GIS Download ) elshayal at tedata.net.eg ----- Original Message ----- From: Wu, Xiaochun To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Sunday, July 03, 2005 1:10 AM Subject: [UMN_MAPSERVER-USERS] ??: [UMN_MAPSERVER-USERS] question abo ut the installation of mapserver Hi, Wim: First, thank you very much for your reply. What I want to do is publish my map and database of my project through the Internet. And the user could use my database to make instant maps through the website. And you know, I am totally new in this area and I think I have the problem in installing the mapserver and get it work. Do you have some advice? Thanks a lot. xiaochun -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Sun Jul 3 07:42:53 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Sun, 3 Jul 2005 16:42:53 +0200 Subject: error when connecting to demo In-Reply-To: <2dcb822dc91b.2dc91b2dcb82@planet.nl> Message-ID: Hi guys, I ran into this as well. Steve Lime pointed out that none was a new keyword introduced with 4.6 for cartolines. I first thought also all string values should be quoted starting 4.6, but this is not the case as yet, the reason is none being a new keyword. Best regards, Bart On Thu, 30 Jun 2005 19:49:03 +0200, Emil Zegers wrote: > I believe with the new 4.6 version of MapServer all string values > should be enclosed with double quotes. > > You'll probably find a lot of demos with 'old' .map files that need to > be updated for this. > > Regards, > > Emil > > > ----- Oorspronkelijk bericht ----- > Van: Philip Dillon-Thiselton > Datum: donderdag, juni 30, 2005 6:50 pm > Onderwerp: Re: [UMN_MAPSERVER-USERS] error when connecting to demo > >> OK - i figured out that >> >> WMS_ACCESSCONSTRAINTS none >> >> should be >> >> WMS_ACCESSCONSTRAINTS "none" >> >> That should probably be changed in the .zip archive. After a bit of >> jiggling with the index.html file it is all working. >> >> Thanks for the .map file pointer >> >> Phil >> >> >> Philip Dillon-Thiselton wrote: >> >> > Ok - here is the output below from the itasca.map file - this was >> > unchanged from the version in the .zip file until i just changed > the >> > WMS_ONLINERESOURCE to see if that fixed it - it did not. >> > >> > I am using the latest Mapserver and latest demo files from >> > workshop.zip - they are built from src by me in linux. >> > >> > METADATA >> > WMS_TITLE "UMN MapServer Itasca Demo" >> > WMS_ABSTRACT "This is a UMN MapServer application for Itasca >> > County located in north central Minnesota." >> > 73 WMS_ACCESSCONSTRAINTS none >> > >> > # change this value to match your setup >> > WMS_ONLINERESOURCE "http://heaton/mapserver_demo/index.html" > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From xwu2 at UTNET.UTOLEDO.EDU Sun Jul 3 11:01:49 2005 From: xwu2 at UTNET.UTOLEDO.EDU (Wu, Xiaochun) Date: Sun, 3 Jul 2005 14:01:49 -0400 Subject: question abo ut the installation of mapserver Message-ID: Hi,Mohamed: Thanks for your reply, as for your questions, 1 - Do you have a hosting server ? yes, it is a linux server 2 - what is the type of your hosting server ( linux Server or windows Server ) ? 3 - Do you know HTML language ? must be yes yse 4 - Do you know java script or VBScript Languages ? vb and c++ 5 - Your maps must be presented as ( .shp , .shx , .dbf ) yse, the shapefiles I am sorry that I didnot mention these things to you all before. I think I need mapserver to achieve my goal, right? ArcIMS can also do this, but it is not opensource. And still the question, how can I install mapserver in my linux machine? Thanks a lot! xiaochun -----Original Message----- From: elshayal at smartwebonline.com [mailto:elshayal at smartwebonline.com] Sent: 2005-7-2 (???) 19:13 To: Wu, Xiaochun Cc: mapserver-users at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] ??: [UMN_MAPSERVER-USERS] question abo ut the installation of mapserver ?e??: [UMN_MAPSERVER-USERS] question about the installation of mapserverHi xiaochun to publish your map and database of your project through the Internet you need to answer the following questions 1 - Do you have a hosting server ? 2 - what is the type of your hosting server ( linux Server or windows Server ) ? 3 - Do you know HTML language ? must be yes 4 - Do you know java script or VBScript Languages ? 5 - Your maps must be presented as ( .shp , .shx , .dbf ) Thank you and best Regards Mohamed Elshayal GIS Software Developer http://www.smartwebonline.com ( Free GIS Download ) elshayal at tedata.net.eg ----- Original Message ----- From: Wu, Xiaochun To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Sunday, July 03, 2005 1:10 AM Subject: [UMN_MAPSERVER-USERS] ??: [UMN_MAPSERVER-USERS] question abo ut the installation of mapserver Hi, Wim: First, thank you very much for your reply. What I want to do is publish my map and database of my project through the Internet. And the user could use my database to make instant maps through the website. And you know, I am totally new in this area and I think I have the problem in installing the mapserver and get it work. Do you have some advice? Thanks a lot. xiaochun -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Sun Jul 3 11:06:26 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Sun, 3 Jul 2005 20:06:26 +0200 Subject: question abo ut the installation of mapserver In-Reply-To: <2BA3A40BB9149F4C91897C2338A8F15B60C8CD@msgdb01.utad.utoledo.edu> Message-ID: On Sun, 03 Jul 2005 20:01:49 +0200, Wu, Xiaochun wrote: > And still the question, how can I install mapserver in my linux machine? Look at FGS, http://www.maptools.org/fgs Best regards, Bart -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From abe.gillespie at GMAIL.COM Sun Jul 3 12:43:58 2005 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Sun, 3 Jul 2005 15:43:58 -0400 Subject: Runtime Shapes & Values Message-ID: I'd like to add layers, shapes, and values at runtime via PHP MapScript. I don't have any problems with the layers and shapes ... but how do I set a value. Ultimately what I'd like to do is set up some classes for my layer so that the shapes I add at runtime will obey the rendering of the different classes according to a CLASSITEM. Here's some code which should explain it better: // Setup the layer. $layer = ms_newLayerObj($map); $layer->set("name", "my_label_layer"); $layer->set("type", MS_LAYER_ANNOTATION); $layer->set("transform", MS_FALSE); $layer->set("classitem", "the_class_item"); // Setup one class (though multiples would be setup in production). $class = ms_newClassObj($layer); $class->set("expression", "default"); $label = $class->label; $label->set("type", MS_TRUETYPE); $label->set("font", "vera"); $label->set("size", 10); $label->set("position", MS_CR); $label->set("force", MS_TRUE); $label->color->setRGB(0, 0, 0); // Now I add a label. $pnt = ms_newPointObj(); $pnt->setXY($x, $y); $line = ms_newLineObj(); $line->add($pnt); $shp = ms_newShapeObj($layer->type); $shp->add($line); $shp->set("text", $text); // But I can't set a value like I need to: // $shp->values["the_class_item"] = "default"; $layer->addFeature($shp); I guess I should say what I'm trying to do overall ... that's usually better than just stating a piece of the puzzle when there are so many smarter people than I out there. :) Basically I'm rolling my own version of the MapNotes tool from Chameleon. The existing version just isn't what I want. The items I need are as follows: 1. Arbitrary placement of notes. 2. Selectable colors. 3. Selectable fonts. 4. Selectable size. Because of options 2-4 is the reason for me setting up various classes and rendering on a classitem / value. Any thoughts? Any better ideas? Thanks a ton. -Abe From elshayal at SMARTWEBONLINE.COM Sun Jul 3 16:56:19 2005 From: elshayal at SMARTWEBONLINE.COM (Mohamed Elshayal) Date: Mon, 4 Jul 2005 02:56:19 +0300 Subject: question about the installation of mapserver Message-ID: question abo ut the installation of mapserverHi xiaochun Mapserver is a cgi software ( comman gate Interface ) CGI is an executable EXE file wich can run on your server ( needs special permission from your admin ) Mapserver receive your parameters and use them to create a map raster image These parameters are 1 - Layers Names 2 - coordinates 3 - data subdirectory which where cgi.exe can find your ( .shp , .shx , .dbf ) 4 - output subdirectory which where cgi.exe will produce the map raster image 5 - required function such as ( zoom in , zoom out , pan , etc. ) 6 - and other lots of parameters So You write your internet site by HTML language and You send the parameters by html and java script languages then you receive the map raster image by html and java script languages Internet Site can be done completely without java script, but it will not be a proffesional site Java script give power to the site I suggest that first download the mapserver demo and install it in your server and study it well later you can make your own internet site Thank you and best Regards Mohamed Elshayal GIS Software Developer http://www.smartwebonline.com ( Free GIS Download ) elshayal at smartwebonline.com elshayal at tedata.net.eg ----- Original Message ----- From: Wu, Xiaochun To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Sunday, July 03, 2005 9:01 PM Subject: [UMN_MAPSERVER-USERS] question abo ut the installation of mapserver Hi,Mohamed: Thanks for your reply, as for your questions, 1 - Do you have a hosting server ? yes, it is a linux server 2 - what is the type of your hosting server ( linux Server or windows Server ) ? 3 - Do you know HTML language ? must be yes yse 4 - Do you know java script or VBScript Languages ? vb and c++ 5 - Your maps must be presented as ( .shp , .shx , .dbf ) yse, the shapefiles I am sorry that I didnot mention these things to you all before. I think I need mapserver to achieve my goal, right? ArcIMS can also do this, but it is not opensource. And still the question, how can I install mapserver in my linux machine? Thanks a lot! xiaochun -----Original Message----- From: elshayal at smartwebonline.com [mailto:elshayal at smartwebonline.com] Sent: 2005-7-2 (???) 19:13 To: Wu, Xiaochun Cc: mapserver-users at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] ??: [UMN_MAPSERVER-USERS] question abo ut the installation of mapserver ?e??: [UMN_MAPSERVER-USERS] question about the installation of mapserverHi xiaochun to publish your map and database of your project through the Internet you need to answer the following questions 1 - Do you have a hosting server ? 2 - what is the type of your hosting server ( linux Server or windows Server ) ? 3 - Do you know HTML language ? must be yes 4 - Do you know java script or VBScript Languages ? 5 - Your maps must be presented as ( .shp , .shx , .dbf ) Thank you and best Regards Mohamed Elshayal GIS Software Developer http://www.smartwebonline.com ( Free GIS Download ) elshayal at tedata.net.eg ----- Original Message ----- From: Wu, Xiaochun To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Sunday, July 03, 2005 1:10 AM Subject: [UMN_MAPSERVER-USERS] ??: [UMN_MAPSERVER-USERS] question abo ut the installation of mapserver Hi, Wim: First, thank you very much for your reply. What I want to do is publish my map and database of my project through the Internet. And the user could use my database to make instant maps through the website. And you know, I am totally new in this area and I think I have the problem in installing the mapserver and get it work. Do you have some advice? Thanks a lot. xiaochun -------------- next part -------------- An HTML attachment was scrubbed... URL: From txneogi at YAHOO.COM Sun Jul 3 20:51:33 2005 From: txneogi at YAHOO.COM (Ron Neogi) Date: Sun, 3 Jul 2005 20:51:33 -0700 Subject: Tutorial example1-9 Message-ID: Trying out the tutorial example1-9. Keep getting the folowing error: msEvalRegex(): Regular expression error. String ([map]) failed expression test. Can some one point out what may cause this error? I have seen the same post by another user but no answer. ____________________________________________________ Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.yahoo.com From ninliu at INDIANA.EDU Sun Jul 3 21:56:48 2005 From: ninliu at INDIANA.EDU (Ning Liu) Date: Sun, 3 Jul 2005 23:56:48 -0500 Subject: question abo ut the installation of mapserver Message-ID: question abo ut the installation of mapserverHi Xiaochun, Did u follow this installation guide? http://mapserver.gis.umn.edu/doc40/unix-install-howto.html If not, try it. I have an apache httpd-2.0.54 running in linux. I just installed mapServer 4.6 several ago. just got the demo running. It seems OK. If you still get problems, please let me know. -- Ning Liu Department of Computer Science Indiana University ----- Original Message ----- From: Wu, Xiaochun To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Sunday, July 03, 2005 1:01 PM Subject: [UMN_MAPSERVER-USERS] question abo ut the installation of mapserver Hi,Mohamed: Thanks for your reply, as for your questions, 1 - Do you have a hosting server ? yes, it is a linux server 2 - what is the type of your hosting server ( linux Server or windows Server ) ? 3 - Do you know HTML language ? must be yes yse 4 - Do you know java script or VBScript Languages ? vb and c++ 5 - Your maps must be presented as ( .shp , .shx , .dbf ) yse, the shapefiles I am sorry that I didnot mention these things to you all before. I think I need mapserver to achieve my goal, right? ArcIMS can also do this, but it is not opensource. And still the question, how can I install mapserver in my linux machine? Thanks a lot! xiaochun -----Original Message----- From: elshayal at smartwebonline.com [mailto:elshayal at smartwebonline.com] Sent: 2005-7-2 (???) 19:13 To: Wu, Xiaochun Cc: mapserver-users at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] ??: [UMN_MAPSERVER-USERS] question abo ut the installation of mapserver ?e??: [UMN_MAPSERVER-USERS] question about the installation of mapserverHi xiaochun to publish your map and database of your project through the Internet you need to answer the following questions 1 - Do you have a hosting server ? 2 - what is the type of your hosting server ( linux Server or windows Server ) ? 3 - Do you know HTML language ? must be yes 4 - Do you know java script or VBScript Languages ? 5 - Your maps must be presented as ( .shp , .shx , .dbf ) Thank you and best Regards Mohamed Elshayal GIS Software Developer http://www.smartwebonline.com ( Free GIS Download ) elshayal at tedata.net.eg ----- Original Message ----- From: Wu, Xiaochun To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Sunday, July 03, 2005 1:10 AM Subject: [UMN_MAPSERVER-USERS] ??: [UMN_MAPSERVER-USERS] question abo ut the installation of mapserver Hi, Wim: First, thank you very much for your reply. What I want to do is publish my map and database of my project through the Internet. And the user could use my database to make instant maps through the website. And you know, I am totally new in this area and I think I have the problem in installing the mapserver and get it work. Do you have some advice? Thanks a lot. xiaochun -------------- next part -------------- An HTML attachment was scrubbed... URL: From saengpole at YAHOO.COM Sun Jul 3 23:05:12 2005 From: saengpole at YAHOO.COM (Krung Saengpole) Date: Sun, 3 Jul 2005 23:05:12 -0700 Subject: UTM at the zone's boundary. Message-ID: Hi all, I have trouble using data from GPS at the zone's boundary. My test area was around the boundary of UTM zone 47P and 48P. When I got data from 47P, it showed x coord. like 823311.6, and if went into zone 48P it showed x coord like 176668.35. But in all of my shape files, eg. rivers streets etc, its x coord. is smoothly continuous as 823311.6 in zone 47P and 894240 in zone 48P. How can I translate UTM values in 48P to be continued from 47P zone? Or should you point me to the right place to find the information about this? Any advice will be appreciated. Thank you in advance. Krung. --------------------------------- Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football -------------- next part -------------- An HTML attachment was scrubbed... URL: From BEN at SYNCERA-ITSOLUTIONS.NL Mon Jul 4 00:35:23 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Mon, 4 Jul 2005 09:35:23 +0200 Subject: GetFeatureInfo problem Message-ID: Hi, you need to add gml_include_items to your LAYER's METADATA section: METADATA .. gml_include_items "all" .. END starting version 4.6. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Jos? Vicente Hig?n Valero 07/01/05 01:59pm >>> Hi, I have installed mapserver 4.6.0 on suse 9.0 with postgis 1.0.1. When I request a GetFeatureInfo, the response hasn't information about the atributes. I get this: 620344.450000,4377612.070000 632854.690000,4394243.500000 But I must get: 28 Complex Shape 55 55 0 1 0 Embalse de Contreras Embalses ... Any clue? I have compiled mapserver: ../configure --prefix=/usr/local --with-wms --with-wfs --with-wcs --with-wmsclient --with-wfsclient --with-gd --with-proj --with-geos --with-freetype --with-gdal=/usr/local/bin/gdal-config --with-ogr=/usr/local/bin/gdal-config --with-postgis=/usr/local/pgsql/bin/pg_config --with-curl-config=/usr/local/bin/curl-config --with-jpeg --with-tiff --with-httpd=/usr/local/apache2/bin/httpd --with-mygis=/usr/local/mysql/bin/mysql_config And the configuration of the map file: LAYER NAME "embalses" GROUP "CV300k" STATUS ON DUMP TRUE TEMPLATE "." DATA "the_geom from embalses" TYPE POLYGON TRANSPARENCY 10 CONNECTIONTYPE POSTGIS CONNECTION "user=gis dbname=cv300k host=127.0.0.1 port=5432" METADATA "wms_name" "embalses" "wms_title" "Embalses" "wms_abstract" "embalses" "wms_keywordlist" "embalses,valencia" "wms_srs" "EPSG:23030 EPSG:4326" "wms_group_title" "CV300k" "wms_extent" "600000 4180000 810000 4530000" END CLASS # NAME "embalses" COLOR 0 204 255 OUTLINECOLOR 0 0 255 END END Thanks in advance. -- Jos? Vicente Hig?n gvSIG development Team Conselleria de Infraestructuras y Transporte Generalitat Valenciana Valencia - Spain tlf. 963862397 http://www.gvsig.gva.es From pimpoumvlan at HOTMAIL.COM Mon Jul 4 01:22:38 2005 From: pimpoumvlan at HOTMAIL.COM (Selim Hernandez) Date: Mon, 4 Jul 2005 03:22:38 -0500 Subject: Beginner - workshop installation with ms4w Message-ID: hello, I'm trying to start with mapserver so I decided to install the ms4w package which was very easy to set up. But now I have problems with the demo/workshop installation. I have Windows 2000 server. I put ms4w in e: I put the workshop directory in E:\ms4w\Apache\htdocs so I can get access to it this way : http://127.0.0.1/workshop I can see the index.html I have modified it this way :
... Then when I launch the Basic Application, it returns me this message : getString(): Symbol definition error. Parsing error near (none):(line 75) This error seems to be born in the itasca.map file. nb : I had to create the Apache\htdocs\tmp\ directory and I saw that I had to grant writing rigths to it but I don't know how to manage the Apache server If someone have any idea, it would be very helpful. thank you From raj_ganesh_sweet at SIFY.COM Mon Jul 4 01:04:01 2005 From: raj_ganesh_sweet at SIFY.COM (raj ganesh) Date: Mon, 4 Jul 2005 14:04:01 +0600 Subject: hi Wim Blanken!! Message-ID: hi Wim Blanken!! thanks a ton for responding and for the tip. The problem that i face is , i have labels of same object from the same field coinciding. say for example names of person working for something, u can have more than one worker working at same location.Is there a method where in u can display the overlapping labels separately, like offsetting each by different value.I dont want to modify my data table or rows or fields, well ofocurse if nothing works, i may have to work on that. regards raj -------------- next part -------------- An HTML attachment was scrubbed... URL: From BEN at SYNCERA-ITSOLUTIONS.NL Mon Jul 4 01:38:24 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Mon, 4 Jul 2005 10:38:24 +0200 Subject: Beginner - workshop installation with ms4w Message-ID: Edit the MAP file around WMS_ACCESS_CONSTRAINTS none and put quotes around none. Btw, MS4W comes with a preconfigured tmp directory, so there is no need to add tmp to htdocs, just change your MAP file to: IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" and also update your HTTP form variables. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Selim Hernandez 07/04/05 10:22am >>> hello, I'm trying to start with mapserver so I decided to install the ms4w package which was very easy to set up. But now I have problems with the demo/workshop installation. I have Windows 2000 server. I put ms4w in e: I put the workshop directory in E:\ms4w\Apache\htdocs so I can get access to it this way : http://127.0.0.1/workshop I can see the index.html I have modified it this way : .... Then when I launch the Basic Application, it returns me this message : getString(): Symbol definition error. Parsing error near (none):(line 75) This error seems to be born in the itasca.map file. nb : I had to create the Apache\htdocs\tmp\ directory and I saw that I had to grant writing rigths to it but I don't know how to manage the Apache server If someone have any idea, it would be very helpful. thank you From raj_ganesh_sweet at SIFY.COM Mon Jul 4 05:03:21 2005 From: raj_ganesh_sweet at SIFY.COM (raj ganesh) Date: Mon, 4 Jul 2005 18:03:21 +0600 Subject: label overlapping Message-ID: hi Wim Blanken, i did try AUTO positioning, but it does not work . You are right , i was looking for something like an object that can be used to vary offset values for the overlapping ones. I guess i have to restructure my data set to get rid of the overlapping labels. mean time hope to find a better way of doing it. regards raj -------------- next part -------------- An HTML attachment was scrubbed... URL: From ctimoteo at GMAIL.COM Mon Jul 4 09:27:17 2005 From: ctimoteo at GMAIL.COM (=?ISO-8859-1?Q?Carlos_Tim=F3teo?=) Date: Mon, 4 Jul 2005 17:27:17 +0100 Subject: setup size of lines Message-ID: i have 5 line shapes whith roads, rails, boundaries etc. and i want to setup different lines sizes to make it more visible, because with all sizes equals, only with different collors, is very hard to understand the information. i have different classes for each feature with different sizes, minfeatsize=1, maxfeaturesize=100 but all lines are draw equal. there is any chance to setup line thickness ?? Thank you in advance. Carlos Timoteo, Portugal From bartvde at XS4ALL.NL Mon Jul 4 10:29:35 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Mon, 4 Jul 2005 19:29:35 +0200 Subject: setup size of lines In-Reply-To: Message-ID: See: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?SymbolExamples 2. To set line width in a polygon outline. This also works for lines. Or just study the excellent cartography document: http://mapserver.gis.umn.edu/doc44/cartographic-symbols.html Best regards, Bart On Mon, 04 Jul 2005 18:27:17 +0200, Carlos Tim?teo wrote: > i have 5 line shapes whith roads, rails, boundaries etc. and i want to > setup different lines sizes to make it more visible, > > because with all sizes equals, only with different collors, is very > hard to understand the information. > > i have different classes for each feature with > > different sizes, > minfeatsize=1, > maxfeaturesize=100 > > but all lines are draw equal. > > there is any chance to setup line thickness ?? > > Thank you in advance. > > Carlos Timoteo, Portugal > > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From dls at INFORMGIS.COM Mon Jul 4 10:39:45 2005 From: dls at INFORMGIS.COM (David Stajan) Date: Mon, 4 Jul 2005 12:39:45 -0500 Subject: Symbolizing FeatureQuery Message-ID: On Fri, 1 Jul 2005 03:12:15 +0000, Richard Greenwood wrote: >David Stajan INFORMGIS.COM> writes: > >> >> Hi Group, >> >> I'm tying to perform theme on theme selections using the cgi featurequery >> mode. For example I have a polygon layer and a line layer, and I want to >> select all the lines that fall within a selected polygon. The >> featurequery mode works, however I was wondering if there is a way to >> symbolize the selected polygon differently from the selected lines in the >> query map. Right now I get all the selected features (polygon and lines) >> symbolized in the same color. Even better would be if its possible to >> perform this type of query and only have the selected lines returned and >> not include the polygon the the query results. Is this possible with >> mapserver cgi or can I get this kind of result using some other kind of >> method? > >I have not done exactly what you are trying to do, but I have done something >similar enough so that I am confident that it can be done easily in CGI mode. > >The lines and polygons are in separate shape files (or PostGIS tables) but are >symbolized in 2 different layers in the map file; one layer for general display >and a 2nd layer with a filter to hi-light query results. > >Pusedo code: >1. general polygon display (shows all the polygons, all the time) > class w/ symbol for regular display of all features >2. general line display > class w/ symbol for regular display of all features >3. line results (hi-lights selected lines ) > status default (so it's always displayed) > filter %result% (so only query results are displayed > >I know that's a pretty general answer, but your question is pretty general, too. >If my response doesn't make sense , follow up with more specifics. > >Rich > Hey you've come through again Rich, Thanks! I'm not a big fan of having all these duplicate layers in the mapfile, as it makes a dynamic layerlist a little more challenging. But it seems that's the trick to give mapserver a more desktop-like gis feel and functionality. Do you have an example of your methodology that I could check out. Thanks, DaviD From abe.gillespie at GMAIL.COM Mon Jul 4 11:32:27 2005 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Mon, 4 Jul 2005 14:32:27 -0400 Subject: Change Output Format Message-ID: Can the output type (PNG, JPEG, GIF, etc.) be changed on the fly via PHP MapScript? If so, would someone include example code please? Thanks. -Abe From gerry.creager at TAMU.EDU Mon Jul 4 11:39:34 2005 From: gerry.creager at TAMU.EDU (Gerry Creager N5JXS) Date: Mon, 4 Jul 2005 13:39:34 -0500 Subject: setup size of lines In-Reply-To: Message-ID: This is a fairly common question. And, one I think is in the FAQ. SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED true END LAYER NAME roads METADATA "wfs_title" "NWS Roads" END TYPE LINE STATUS default LABELITEM 'ROUTE' LABELCACHE on DATA data/rd24nv03.shp DUMP TRUE MAXSCALE 20000000 CLASS EXPRESSION ('[FEATURE]' = "Limited Access Highway" or '[FEATURE]' = "Other Through Highway") color 240 0 0 SYMBOL 'circle' SIZE 2 ... END END You can change the CLASS SYMBOL SIZE as needed. Hope this helps. Gerry Carlos Tim?teo wrote: > i have 5 line shapes whith roads, rails, boundaries etc. and i want to > setup different lines sizes to make it more visible, > > because with all sizes equals, only with different collors, is very > hard to understand the information. > > i have different classes for each feature with > > different sizes, > minfeatsize=1, > maxfeaturesize=100 > > but all lines are draw equal. > > there is any chance to setup line thickness ?? > > Thank you in advance. > > Carlos Timoteo, Portugal > -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Page: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From assefa at DMSOLUTIONS.CA Mon Jul 4 11:52:31 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Mon, 4 Jul 2005 14:52:31 -0400 Subject: Change Output Format In-Reply-To: Message-ID: You could use selectOutputFormat on the map object. Here is the description for this function : int selectOutputFormat(string type) Selects the output format to be used in the map. Returns MS_SUCCESS/MS_FAILURE. Note : the type used should correspond to one of the output formats declared in the map file. The type argument passed is compared with the mimetype parameter in the output format structure and then to the name parameter in the structure. Later, Abe Gillespie wrote: > Can the output type (PNG, JPEG, GIF, etc.) be changed on the fly via > PHP MapScript? If so, would someone include example code please? > > Thanks. > -Abe > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From woodbri at SWOODBRIDGE.COM Mon Jul 4 16:37:36 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 4 Jul 2005 19:37:36 -0400 Subject: shp2tile version 1.2 released Message-ID: Hi all, I just released shp2tile version 1.2. You can get it from: http://imaptools.com/?tab=4 This is primarily a bug fix release. A few people have had a minor problem with the newer version of gcc. I also updated the README doc with some information on how to decide how big or small you should make your tiles. As always, please send me email if you find a problem or if you have a problem installing it. -Steve Woodbridge http://imaptools.com/ From mbp at GEOMTECH.COM Mon Jul 4 17:28:38 2005 From: mbp at GEOMTECH.COM (Mark Phillips) Date: Mon, 4 Jul 2005 19:28:38 -0500 Subject: transparency not working in dynamic layer Message-ID: Hi, I'm using Perl mapscript to manually draw a rectangle on a map. I'd like the rectangle to be transparent, so I'm drawing it in a layer that is already defined in the mapfile as follows: LAYER NAME RECT STATUS ON TYPE POLYGON TRANSPARENCY 50 CLASS COLOR 210 210 150 OUTLINECOLOR 0 0 0 END END The rectangle always comes out opaque, though. Here's the relevant part of my perl script: $map = new mapscript::mapObj( ... ); ... $img = $map->draw(); ... $layerobj = $map->getLayerByName('RECT'); $layerobj->{status} = 1; $rectobj = new mapscript::rectObj(); $rectobj->{minx} = -82.331429; $rectobj->{maxx} = -82.323929; $rectobj->{miny} = 35.508876; $rectobj->{maxy} = 35.516376; $rectobj->draw($map, $layerobj, $img, undef, ""); ... $img->save($filename); Does anyone know what I'm doing wrong? I've seen references to similar problems with transparency in dynamic layers in the list archives, but I haven't seen a resolution. Thanks for any help, --Mark Mark Phillips @ Geometry Technologies LLC 77 Owenby Cove Road Fairview, NC 28730 Phone: 828-628-0489 mbp at geomtech.com http://www.geomtech.com From richard.greenwood at GMAIL.COM Mon Jul 4 18:51:31 2005 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Mon, 4 Jul 2005 19:51:31 -0600 Subject: Symbolizing FeatureQuery In-Reply-To: Message-ID: On 7/4/05, David Stajan wrote: > On Fri, 1 Jul 2005 03:12:15 +0000, Richard Greenwood > wrote: > > >David Stajan INFORMGIS.COM> writes: > > > >> > >> Hi Group, > >> > >> I'm tying to perform theme on theme selections using the cgi > featurequery > >> mode. For example I have a polygon layer and a line layer, and I want > to > >> select all the lines that fall within a selected polygon. The > >> featurequery mode works, however I was wondering if there is a way to > >> symbolize the selected polygon differently from the selected lines in > the > >> query map. Right now I get all the selected features (polygon and > lines) > >> symbolized in the same color. Even better would be if its possible to > >> perform this type of query and only have the selected lines returned and > >> not include the polygon the the query results. Is this possible with > >> mapserver cgi or can I get this kind of result using some other kind of > >> method? > > > >I have not done exactly what you are trying to do, but I have done > something > >similar enough so that I am confident that it can be done easily in CGI > mode. > > > >The lines and polygons are in separate shape files (or PostGIS tables) > but are > >symbolized in 2 different layers in the map file; one layer for general > display > >and a 2nd layer with a filter to hi-light query results. > > > >Pusedo code: > >1. general polygon display (shows all the polygons, all the time) > > class w/ symbol for regular display of all features > >2. general line display > > class w/ symbol for regular display of all features > >3. line results (hi-lights selected lines ) > > status default (so it's always displayed) > > filter %result% (so only query results are displayed > > > >I know that's a pretty general answer, but your question is pretty > general, too. > >If my response doesn't make sense , follow up with more specifics. > > > >Rich > > > > Hey you've come through again Rich, Thanks! I'm not a big fan of having > all these duplicate layers in the mapfile, as it makes a dynamic layerlist > a little more challenging. But it seems that's the trick to give > mapserver a more desktop-like gis feel and functionality. Do you have an > example of your methodology that I could check out. > > Thanks, > > DaviD > I don't know that "duplicate" layers are the best solution, but it is not a bad solution. An alternative is multiple map files, and I found that less appealing. You can check out www2.tetonwyo.org/mapserver I do not hold it up as a textbook example, but it is straight CGI and does a lot of stuff that other people tend to use mapscript to do. I have kept the site as open as possible so you should be able to fetch anything of interest off pretty easily. Some browsers have trouble fetching a map file (anybody know why?) so I can email that to you directly if necessary. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From saengpole at YAHOO.COM Mon Jul 4 22:02:40 2005 From: saengpole at YAHOO.COM (Krung Saengpole) Date: Mon, 4 Jul 2005 22:02:40 -0700 Subject: [UNCLASSIFIED]RE: [UMN_MAPSERVER-USERS] UTM at the zone's boundar y. In-Reply-To: <3E4215C93D3CE24D84A9FF385DF88D87079FE6E3@afeb-ms-02> Message-ID: Antti, Thank you for your advice. But it is essential to use UTM for my project because I cann't force to change to lat/lon projection. It is used by other works of the company in UTM and the data got from GPS is from others not me. In some shapefiles of my country are in UTM and x coord. go consistently when it goes pass the UTM boundary. So, I think it should be some method to calculate between this boundary. Krung Antti.Roppola at brs.gov.au wrote: UTM zone projections get flakey when you get to the edge of a zone boundary. If you are going to be crossing multiple zones, how about using lat/long for your GPS data and on-the-fly projecting to whatever zone you are in? From memory, zone-to-zone reporjects are not very robust. The ESRI map projections book was a pretty good source of information, but it's been a while since I've seen a copy. Antti --------------------------------- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Krung Saengpole Sent: Monday, 4 July 2005 4:05 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] UTM at the zone's boundary. Hi all, I have trouble using data from GPS at the zone's boundary. My test area was around the boundary of UTM zone 47P and 48P. When I got data from 47P, it showed x coord. like 823311.6, and if went into zone 48P it showed x coord like 176668.35. But in all of my shape files, eg. rivers streets etc, its x coord. is smoothly continuous as 823311.6 in zone 47P and 894240 in zone 48P. How can I translate UTM values in 48P to be continued from 47P zone? Or should you point me to the right place to find the information about this? Any advice will be appreciated. Thank you in advance. Krung. --------------------------------- Do you Yahoo!? Yahoo! Mail - You care about security. So do we. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lfilak at MEDINACO.ORG Tue Jul 5 05:26:28 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Tue, 5 Jul 2005 08:26:28 -0400 Subject: transparency not working in dynamic layer Message-ID: The following message was sent by Mark Phillips on Mon, 4 Jul 2005 19:28:38 -0500. > Hi, > > I'm using Perl mapscript to manually draw a rectangle on a map. I'd > like the rectangle to be transparent, so I'm drawing it in a layer > that is already defined in the mapfile as follows: > > LAYER > NAME RECT > STATUS ON > TYPE POLYGON > TRANSPARENCY 50 > CLASS > COLOR 210 210 150 > OUTLINECOLOR 0 0 0 > END > END > > The rectangle always comes out opaque, though. Here's the relevant part > of my perl script: > > $map = new mapscript::mapObj( ... ); > ... > $img = $map->draw(); > ... > $layerobj = $map->getLayerByName('RECT'); > $layerobj->{status} = 1; > $rectobj = new mapscript::rectObj(); > $rectobj->{minx} = -82.331429; > $rectobj->{maxx} = -82.323929; > $rectobj->{miny} = 35.508876; > $rectobj->{maxy} = 35.516376; > $rectobj->draw($map, $layerobj, $img, undef, ""); > ... > $img->save($filename); > > Does anyone know what I'm doing wrong? I've seen references to similar problems > with transparency in dynamic layers in the list archives, but I haven't seen > a resolution. Mark, I'm not sure if you can perform a map->draw before you draw the transparent layer and expect it to be transparent. Can you use a shapeobj & addfeature to the layer before performing the draw? Lowell From David.Fawcett at STATE.MN.US Tue Jul 5 06:39:17 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Tue, 5 Jul 2005 08:39:17 -0500 Subject: ??: [UMN_MAPSERVER-USERS] question abo ut the installation of mapserver Message-ID: xiaochun, Read the new New Users Page, this should give you some good basic MapServer information and point you to some resources. http://ms.gis.umn.edu:8081/ms_plone/new_users/ I think that your question is still too general to get any help from the list. Try breaking your request down into smaller chunks, and then providing as many details as possible. e.g.' I am trying to install MapServer 4.6 on a Fedora Core 3 box. I downloaded a RPM from this.site.com, tried to install it, and got the following error messages.....' The more info that you can provide, the easier it is for people to help you, and that will entice more people to propose solutions for you. David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett at moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Wu, Xiaochun Sent: Saturday, July 02, 2005 5:11 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] ??: [UMN_MAPSERVER-USERS] question abo ut the installation of mapserver Hi, Wim: First, thank you very much for your reply. What I want to do is publish my map and database of my project through the Internet. And the user could use my database to make instant maps through the website. And you know, I am totally new in this area and I think I have the problem in installing the mapserver and get it work. Do you have some advice? Thanks a lot. xiaochun -------------- next part -------------- An HTML attachment was scrubbed... URL: From hobu at IASTATE.EDU Tue Jul 5 06:51:57 2005 From: hobu at IASTATE.EDU (Howard Butler) Date: Tue, 5 Jul 2005 08:51:57 -0500 Subject: ??: [UMN_MAPSERVER-USERS] question abo ut the installation of mapserver In-Reply-To: Message-ID: David, The canonical URL for this is now . Also, for those interested, I have put Tyler and Jeff's excellent "Vector Data Access Guide" up on the site at . There's still some work to be done, but it's looking pretty good. Howard At 8:39 AM -0500 7/5/05, Fawcett, David wrote: >This is a multi-part message in MIME format. > >------_=_NextPart_001_01C58166.F0D976AC >Content-Type: text/plain; > charset="GB2312" >Content-Transfer-Encoding: quoted-printable > >xiaochun,=20 >=20 >Read the new New Users Page, this should give you some good basic = >MapServer information and point you to some resources. =20 >=20 >http://ms.gis.umn.edu:8081/ms_plone/new_users/ >=20 >I think that your question is still too general to get any help from the = >list. Try breaking your request down into smaller chunks, and then = >providing as many details as possible. =20 >=20 >e.g.' I am trying to install MapServer 4.6 on a Fedora Core 3 box. I = >downloaded a RPM from this.site.com, tried to install it, and got the = >following error messages.....' =20 >=20 >The more info that you can provide, the easier it is for people to help = >you, and that will entice more people to propose solutions for you. =20 >=20 >David. >=20 > >David Fawcett=20 >Minnesota Office of Environmental Assistance=20 >david.fawcett at moea.state.mn.us=20 >651.215.0200=20 > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On = >Behalf Of Wu, Xiaochun >Sent: Saturday, July 02, 2005 5:11 PM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] ??: [UMN_MAPSERVER-USERS] question abo ut = >the installation of mapserver > > > >Hi, Wim: > >First, thank you very much for your reply. >What I want to do is publish my map and database of my project through = >the Internet. >And the user could use my database to make instant maps through the = >website. >And you know, I am totally new in this area and I think I have the = >problem in installing the mapserver and get it work. >Do you have some advice? >Thanks a lot. > >xiaochun > > > >------_=_NextPart_001_01C58166.F0D976AC >Content-Type: text/html; > charset="GB2312" >Content-Transfer-Encoding: quoted-printable > > > >charset=3Dgb2312"> >´ð¸´: [UMN_MAPSERVER-USERS] question about = >the installation of mapserver > > > >
xiaochunclass=3D859123213-05072005>,=20 >
>
class=3D859123213-05072005> 
>
class=3D859123213-05072005>Read the new=20 >New Users Page, this should give you some good basic MapServer = >information and=20 >point you to some resources. 
>
 
>
href=3D"http://ms.gis.umn.edu:8081/ms_plone/new_users/">http://ms.gis.umn= >.edu:8081/ms_plone/new_users/
>
 
>
size=3D2>I=20 >think that your question is still too general to get any help from the=20 >list.  Try breaking your request down into smaller chunks, and then = > >providing as many details as possible. 
>
>size=3D2> 
>
size=3D2>e.g.'=20 >I am trying to install MapServer 4.6 on a Fedora Core 3 box.  I = >downloaded=20 >a RPM from this.site.com, tried to install it, and got the following = >error=20 >messages.....' 
>
>size=3D2> 
>
size=3D2>The=20 >more info that you can provide, the easier it is for people to help you, = >and=20 >that will entice more people to propose solutions for you. =20 >
>
>size=3D2> 
>
>size=3D2>David.
>
 
>

David Fawcett
face=3DArial=20 >size=3D2>Minnesota Office of Environmental Assistance
face=3DArial=20 >size=3D2>david.fawcett at moea.state.mn.us
size=3D2>651.215.0200

>
>
face=3DTahoma=20 > size=3D2>-----Original Message-----
From: UMN MapServer = >Users List=20 > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Wu,=20 > Xiaochun
Sent: Saturday, July 02, 2005 5:11 PM
To: = > > MAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS] = >??:=20 > [UMN_MAPSERVER-USERS] question abo ut the installation of=20 > mapserver

>

Hi, Wim:

First, thank you very much for your=20 > reply.
What I want to do is publish my map and database of my = >project=20 > through the Internet.
And the user could use my database to make = >instant=20 > maps through the website.
And you know, I am totally new in this = >area and I=20 > think I have the problem in installing the mapserver and get it = >work.
Do=20 > you have some advice?
Thanks a=20 >lot.

xiaochun

> >------_=_NextPart_001_01C58166.F0D976AC-- From gabriel.cloutier at RNCAN.GC.CA Tue Jul 5 07:27:42 2005 From: gabriel.cloutier at RNCAN.GC.CA (Gabriel Cloutier) Date: Tue, 5 Jul 2005 09:27:42 -0500 Subject: MapFile for 250 layers (MS_MAXLAYERS) Message-ID: Hi list, I need an advice about the management of up to 250 layers and 200 symbols in a MapFile. My first idea was to change the constant value in the source code (MS_MAXLAYERS, MS_MAXSYMBOLS). 1 ) Does someone know if changing this constants will affect the performance ? 2 ) Does someone have a FGS Linux Installer package with the values of this constant changed to fit with my case ? 3 ) Do you know better solutions for my problem ? Thank you in advance! ---------------------------------------------------------------- Gabriel Cloutier Natural Resources Canada Centre for Topographic Information Web Services Team 2144 King West Street, s. 010 Sherbrooke, Quebec J1J 2E8 E-Mail: Gabriel.Cloutier at NRCan.gc.ca Tel: (819) 564-5600 #295 Fax: (819) 564-5698 From fx.prunayre at OIEAU.FR Tue Jul 5 08:34:27 2005 From: fx.prunayre at OIEAU.FR (=?iso-8859-1?Q?Fran=E7ois_Prunayre?=) Date: Tue, 5 Jul 2005 17:34:27 +0200 Subject: SLD & Spatial filter In-Reply-To: Message-ID: Hi list, I'm looking for advice about SLD FILTER ... Comparison Filters and Logical Filters works in SLD file like " ID 655 " But spatial filter doesn't seem to be applied to layers like " Geometry 0.37,48.68 10000 " or " Geometry 0,48.27 1.67,49.24 2.62,47.56 0,48.27 " Does spatial filter work only with WFS layers and not with SLD ? Is this in the OGC spec for SLD or is it not implemented in mapserver ? Thanks for your help. Francois -- Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve. Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et prives. Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee. Any data and information contained in this electronic mail is personal, confidential and secret. Any total or partial publication, use or distribution must be authorized. From gabriel.cloutier at RNCAN.GC.CA Tue Jul 5 09:10:36 2005 From: gabriel.cloutier at RNCAN.GC.CA (Gabriel Cloutier) Date: Tue, 5 Jul 2005 11:10:36 -0500 Subject: MapFile for 250 layers (MS_MAXLAYERS) Message-ID: Hi Abe, Yes I used tile4ms to join my thousand of shapefiles in a ShapeFile index. But it's a good idea to try to fusion some light ShapeFile and to put an attribute for the distinction. With this attribute I can make the distinction between two class in the same layer. My fear is about the filter. This option definitly affect negatively the performance. Thank for your help! -Gab -----Original Message----- From: Abe Gillespie [mailto:abe.gillespie at gmail.com] Sent: 5 juillet 2005 11:46 To: Gabriel Cloutier Subject: Re: [UMN_MAPSERVER-USERS] MapFile for 250 layers (MS_MAXLAYERS) Can you consolidate any layers by putting them into an index? For instance, do you have a grid of layers that are one logical layer (usually this is aerial photography)? This might not solve your problem, but it help me make hundreds of smaller layers one logical one. -Abe On 7/5/05, Gabriel Cloutier wrote: > Hi list, > I need an advice about the management of up to 250 layers and 200 symbols > in a MapFile. > My first idea was to change the constant value in the source code > (MS_MAXLAYERS, MS_MAXSYMBOLS). > > 1 ) Does someone know if changing this constants will affect the performance ? > > 2 ) Does someone have a FGS Linux Installer package with the values of this > constant changed to fit with my case ? > > 3 ) Do you know better solutions for my problem ? > > Thank you in advance! > > ---------------------------------------------------------------- > Gabriel Cloutier > Natural Resources Canada > Centre for Topographic Information > Web Services Team > 2144 King West Street, s. 010 > Sherbrooke, Quebec J1J 2E8 > E-Mail: Gabriel.Cloutier at NRCan.gc.ca > Tel: (819) 564-5600 #295 > Fax: (819) 564-5698 > From lluisgm at GMAIL.COM Tue Jul 5 09:22:38 2005 From: lluisgm at GMAIL.COM (=?ISO-8859-1?Q?Llu=EDs_Garcia_i_Mestres?=) Date: Tue, 5 Jul 2005 18:22:38 +0200 Subject: pixmap symbol Message-ID: Hi list, I'm trying to implement some symbols in my mapserver application. If I build the symbols it works fine however the pixmap type shows an "loadSymbol(): GD library error". I didn't change the library and I'm using the ms441pg. Symbol file: SYMBOL NAME "aeroport" TYPE PIXMAP IMAGE "I-5.png" TRANSPARENT 2 END And the image is in the same folder of the symbol file. Anyone has reach this trouble? -- Llu?s Garcia i Mestres, lluisgm at gmail.com lluisgm at hotmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Tue Jul 5 11:50:36 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Tue, 5 Jul 2005 20:50:36 +0200 Subject: SLD & Spatial filter In-Reply-To: <200507051545.j65FjxMr029018@ns1.oieau.fr> Message-ID: I know the BBOX spatial Filter works for SLD don't know about the other ones though, haven't tried. Do they work on your WFS server? Best regards, Bart On Tue, 05 Jul 2005 17:34:27 +0200, Fran?ois Prunayre wrote: > Hi list, I'm looking for advice about SLD FILTER ... Comparison Filters > and > Logical Filters works in SLD file like > " > ID > 655 > " > > But spatial filter doesn't seem to be applied to layers like > " > Geometry > > 0.37,48.68 > 10000 > " or > > " > Geometry > > 0,48.27 > 1.67,49.24 2.62,47.56 > 0,48.27 n> > " > > Does spatial filter work only with WFS layers and not with SLD ? Is this > in > the OGC spec for SLD or is it not implemented in mapserver ? > > Thanks for your help. > Francois > > > > > -- > Ce message a ete verifie par MailScanner pour des virus ou des > polluriels et rien de suspect n'a ete trouve. > > Les donnees et renseignements contenus dans ce message sont personnels, > confidentiels et prives. Toute publication, utilisation ou diffusion, > meme partielle, doit etre autorisee. > > Any data and information contained in this electronic mail is personal, > confidential and secret. Any total or partial publication, use or > distribution must be authorized. > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From jayaustin at GMAIL.COM Tue Jul 5 11:45:34 2005 From: jayaustin at GMAIL.COM (Jay Austin) Date: Tue, 5 Jul 2005 13:45:34 -0500 Subject: A flash question about Mapserver's SWF output Message-ID: Hi, I'm working on a flash app designed to load a mapserver swf and then manipulate it (pan, zoom, etc). In my flash file I use loadMovie to put the swf into an empty movie clip. My ActionScript looks like this... myclip_mc.loadMovie("http://myserver.com/cgi-bin/mapserv?map=../htdocs/folder/folder/mapfile.map&mode=map"); When it loads the swf it puts it in the upper left corner of the stage (regardless of where the empty movie clip was placed), and I am unable to move it, change it's size it's x-scale etc. I can access the variables in the swf, (i.e., _level5.Element[15][0], or _level0.myclip_mc.mapObj.layers[0].name) I just can't manipulate the actual map. Moving the movie clip the swf was loaded into does nothing. Can you please tell me what I'm doing wrong or what name I have to use in actionscript to move the physical map. Thanks. From iharding at TPCHD.ORG Tue Jul 5 13:21:24 2005 From: iharding at TPCHD.ORG (Ian Harding) Date: Tue, 5 Jul 2005 13:21:24 -0700 Subject: Raster Layer, Extent, etc. Message-ID: I have no idea what I am doing. I can get mapserver to work as advertised with vector data (geographic coordinate system) and with raster data (some other crazy coordinate system) but can't get the twain to meet. When I change the extent (as seen in the commented section) one or the other layers will display, but not both. I have controls that successfully turn the layers off and on in isolation, so I know it's not the DEFAULT versus ON issue. The system seems to be very forgiving of bad stuff (or absense of any stuff) in the "projection" section, and the "units" just screws up the scalebar, but the "extent" seems to be killing me. There is only one "extent" section, which applies to the whole mapfile, right? From what I have read, the various layers can use different coordinate systems and be 'translated' to the overall mapfile extent and coordinate system. This is not working for me. What could be causing my pain here? Thank you in advance.... - Ian MAP IMAGETYPE PNG24 EXTENT -122.5 46.5 -121.8 47.8 UNITS DD # Uncommenting these (and commenting the above) makes the raster image appear. # EXTENT 1060000.000000 460000.000000 1460000.000000 660000.000000 # UNITS FEET SIZE 400 300 SHAPEPATH "pierceco" IMAGECOLOR 255 255 255 PROJECTION "proj=latlong" "datum=NAD83" "init=epsg:32149" END SYMBOLSET "symbols/symbols35.sym" FONTSET "fonts/fonts.list" WEB TEMPLATE 'pierce.html' IMAGEPATH '/data/tmp/' IMAGEURL '/tmp/' END # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE TINY END STYLE 1 SIZE 100 2 COLOR 0 0 0 UNITS MILES INTERVALS 2 TRANSPARENT FALSE STATUS ON END # Start of LAYER DEFINITIONS --------------------------------------------- LAYER CONNECTIONTYPE postgis NAME "counties" # Connect to a remote spatial database CONNECTION "user=user dbname=dbname host=localhost" DATA "the_geom from gis.wa_counties" STATUS ON TYPE POLYGON FILTER "true" LABELITEM "name" CLASS COLOR 232 232 232 OUTLINECOLOR 32 32 32 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT arial SIZE 10 ANTIALIAS TRUE END END END LAYER NAME "relief" STATUS ON TILEINDEX "topo.shp" TILEITEM "location" TYPE RASTER # PROJECTION # I was told this data was in "State Plane Feet NAD 83 WA South 4602" # Have tried all kinds of incantations in this section to no effect. # END END # End of LAYER DEFINITIONS ------------------------------- END # end of map file/object From David.Fawcett at STATE.MN.US Tue Jul 5 13:43:17 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Tue, 5 Jul 2005 15:43:17 -0500 Subject: Raster Layer, Extent, etc. Message-ID: Ian, I am guessing that the projection is causing your issues. The projection block in the MAP object (at the top of the map file) applies to the whole map file. You set this to the projection that you want to output your data in. The EXTENT and UNITS should be in the units of this projection. In each LAYER, you need to define the projection that the input data for that layer is in. So, you have a PROJECTION .... END block in each layer. At a minimum, you need to add a PROJECTION block to your 'counties' layer. From your description, your raster may be unprojected (lat lon). David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett at moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Ian Harding Sent: Tuesday, July 05, 2005 3:21 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Raster Layer, Extent, etc. I have no idea what I am doing. I can get mapserver to work as advertised with vector data (geographic coordinate system) and with raster data (some other crazy coordinate system) but can't get the twain to meet. When I change the extent (as seen in the commented section) one or the other layers will display, but not both. I have controls that successfully turn the layers off and on in isolation, so I know it's not the DEFAULT versus ON issue. The system seems to be very forgiving of bad stuff (or absense of any stuff) in the "projection" section, and the "units" just screws up the scalebar, but the "extent" seems to be killing me. There is only one "extent" section, which applies to the whole mapfile, right? From what I have read, the various layers can use different coordinate systems and be 'translated' to the overall mapfile extent and coordinate system. This is not working for me. What could be causing my pain here? Thank you in advance.... - Ian MAP IMAGETYPE PNG24 EXTENT -122.5 46.5 -121.8 47.8 UNITS DD # Uncommenting these (and commenting the above) makes the raster image appear. # EXTENT 1060000.000000 460000.000000 1460000.000000 660000.000000 # UNITS FEET SIZE 400 300 SHAPEPATH "pierceco" IMAGECOLOR 255 255 255 PROJECTION "proj=latlong" "datum=NAD83" "init=epsg:32149" END SYMBOLSET "symbols/symbols35.sym" FONTSET "fonts/fonts.list" WEB TEMPLATE 'pierce.html' IMAGEPATH '/data/tmp/' IMAGEURL '/tmp/' END # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE TINY END STYLE 1 SIZE 100 2 COLOR 0 0 0 UNITS MILES INTERVALS 2 TRANSPARENT FALSE STATUS ON END # Start of LAYER DEFINITIONS --------------------------------------------- LAYER CONNECTIONTYPE postgis NAME "counties" # Connect to a remote spatial database CONNECTION "user=user dbname=dbname host=localhost" DATA "the_geom from gis.wa_counties" STATUS ON TYPE POLYGON FILTER "true" LABELITEM "name" CLASS COLOR 232 232 232 OUTLINECOLOR 32 32 32 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT arial SIZE 10 ANTIALIAS TRUE END END END LAYER NAME "relief" STATUS ON TILEINDEX "topo.shp" TILEITEM "location" TYPE RASTER # PROJECTION # I was told this data was in "State Plane Feet NAD 83 WA South 4602" # Have tried all kinds of incantations in this section to no effect. # END END # End of LAYER DEFINITIONS ------------------------------- END # end of map file/object From iharding at TPCHD.ORG Tue Jul 5 13:57:10 2005 From: iharding at TPCHD.ORG (Ian Harding) Date: Tue, 5 Jul 2005 13:57:10 -0700 Subject: Raster Layer, Extent, etc. Message-ID: Thanks for the reply! I fooled around a bit with those blocks (added one to 'counties' too) with no luck. As I understand projections, they might make my data look funny, but it should at least show up, right? I have zoomed and panned like crazy and can't find it. Also, in the "proj=????" bit, what other options are there besides latlong? This coordinate system seems to have some awfully big numbers, that don't look like latlong to me. I am missing something very simple here, no doubt. Doh! Thanks, Ian >>> "Fawcett, David" 07/05/05 1:43 PM >>> Ian, I am guessing that the projection is causing your issues. The projection block in the MAP object (at the top of the map file) applies to the whole map file. You set this to the projection that you want to output your data in. The EXTENT and UNITS should be in the units of this projection. In each LAYER, you need to define the projection that the input data for that layer is in. So, you have a PROJECTION .... END block in each layer. At a minimum, you need to add a PROJECTION block to your 'counties' layer. From your description, your raster may be unprojected (lat lon). David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett at moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Ian Harding Sent: Tuesday, July 05, 2005 3:21 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Raster Layer, Extent, etc. I have no idea what I am doing. I can get mapserver to work as advertised with vector data (geographic coordinate system) and with raster data (some other crazy coordinate system) but can't get the twain to meet. When I change the extent (as seen in the commented section) one or the other layers will display, but not both. I have controls that successfully turn the layers off and on in isolation, so I know it's not the DEFAULT versus ON issue. The system seems to be very forgiving of bad stuff (or absense of any stuff) in the "projection" section, and the "units" just screws up the scalebar, but the "extent" seems to be killing me. There is only one "extent" section, which applies to the whole mapfile, right? From what I have read, the various layers can use different coordinate systems and be 'translated' to the overall mapfile extent and coordinate system. This is not working for me. What could be causing my pain here? Thank you in advance.... - Ian MAP IMAGETYPE PNG24 EXTENT -122.5 46.5 -121.8 47.8 UNITS DD # Uncommenting these (and commenting the above) makes the raster image appear. # EXTENT 1060000.000000 460000.000000 1460000.000000 660000.000000 # UNITS FEET SIZE 400 300 SHAPEPATH "pierceco" IMAGECOLOR 255 255 255 PROJECTION "proj=latlong" "datum=NAD83" "init=epsg:32149" END SYMBOLSET "symbols/symbols35.sym" FONTSET "fonts/fonts.list" WEB TEMPLATE 'pierce.html' IMAGEPATH '/data/tmp/' IMAGEURL '/tmp/' END # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE TINY END STYLE 1 SIZE 100 2 COLOR 0 0 0 UNITS MILES INTERVALS 2 TRANSPARENT FALSE STATUS ON END # Start of LAYER DEFINITIONS --------------------------------------------- LAYER CONNECTIONTYPE postgis NAME "counties" # Connect to a remote spatial database CONNECTION "user=user dbname=dbname host=localhost" DATA "the_geom from gis.wa_counties" STATUS ON TYPE POLYGON FILTER "true" LABELITEM "name" CLASS COLOR 232 232 232 OUTLINECOLOR 32 32 32 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT arial SIZE 10 ANTIALIAS TRUE END END END LAYER NAME "relief" STATUS ON TILEINDEX "topo.shp" TILEITEM "location" TYPE RASTER # PROJECTION # I was told this data was in "State Plane Feet NAD 83 WA South 4602" # Have tried all kinds of incantations in this section to no effect. # END END # End of LAYER DEFINITIONS ------------------------------- END # end of map file/object From David.Fawcett at STATE.MN.US Tue Jul 5 14:11:19 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Tue, 5 Jul 2005 16:11:19 -0500 Subject: Raster Layer, Extent, etc. Message-ID: Projections may make our data look 'funny', but it also lets us put features from the 3D globe on 2D paper or screens.... ; ] By enabling projections in MapServer, it allows us to gather data in several different projections and use them all in the same output map. I would go back to your data sources and find out what projection the data sets are in. There are a lot of possible projections, so it is difficult to guess the projection by trial and error. Better to just contact the data provider and get the original info. If someone is familiar with The large numbers in the extents of your counties data set could possibly be feet or meters. ALSO, I just noticed your MAP PROJECTION block. You are requesting both "latlong" and "init=epsg:32149" Try choosing one or the other, you can't have both at the same time. David Fawcett Minnesota Office of Environmental Assistance david.fawcett at moea.state.mn.us 651.215.0200 -----Original Message----- From: Ian Harding [mailto:iharding at TPCHD.ORG] Sent: Tuesday, July 05, 2005 3:57 PM To: MAPSERVER-USERS at LISTS.UMN.EDU; David.Fawcett at state.mn.us Subject: RE: [UMN_MAPSERVER-USERS] Raster Layer, Extent, etc. Thanks for the reply! I fooled around a bit with those blocks (added one to 'counties' too) with no luck. As I understand projections, they might make my data look funny, but it should at least show up, right? I have zoomed and panned like crazy and can't find it. Also, in the "proj=????" bit, what other options are there besides latlong? This coordinate system seems to have some awfully big numbers, that don't look like latlong to me. I am missing something very simple here, no doubt. Doh! Thanks, Ian >>> "Fawcett, David" 07/05/05 1:43 PM >>> Ian, I am guessing that the projection is causing your issues. The projection block in the MAP object (at the top of the map file) applies to the whole map file. You set this to the projection that you want to output your data in. The EXTENT and UNITS should be in the units of this projection. In each LAYER, you need to define the projection that the input data for that layer is in. So, you have a PROJECTION .... END block in each layer. At a minimum, you need to add a PROJECTION block to your 'counties' layer. From your description, your raster may be unprojected (lat lon). David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett at moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Ian Harding Sent: Tuesday, July 05, 2005 3:21 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Raster Layer, Extent, etc. I have no idea what I am doing. I can get mapserver to work as advertised with vector data (geographic coordinate system) and with raster data (some other crazy coordinate system) but can't get the twain to meet. When I change the extent (as seen in the commented section) one or the other layers will display, but not both. I have controls that successfully turn the layers off and on in isolation, so I know it's not the DEFAULT versus ON issue. The system seems to be very forgiving of bad stuff (or absense of any stuff) in the "projection" section, and the "units" just screws up the scalebar, but the "extent" seems to be killing me. There is only one "extent" section, which applies to the whole mapfile, right? From what I have read, the various layers can use different coordinate systems and be 'translated' to the overall mapfile extent and coordinate system. This is not working for me. What could be causing my pain here? Thank you in advance.... - Ian MAP IMAGETYPE PNG24 EXTENT -122.5 46.5 -121.8 47.8 UNITS DD # Uncommenting these (and commenting the above) makes the raster image appear. # EXTENT 1060000.000000 460000.000000 1460000.000000 660000.000000 # UNITS FEET SIZE 400 300 SHAPEPATH "pierceco" IMAGECOLOR 255 255 255 PROJECTION "proj=latlong" "datum=NAD83" "init=epsg:32149" END SYMBOLSET "symbols/symbols35.sym" FONTSET "fonts/fonts.list" WEB TEMPLATE 'pierce.html' IMAGEPATH '/data/tmp/' IMAGEURL '/tmp/' END # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE TINY END STYLE 1 SIZE 100 2 COLOR 0 0 0 UNITS MILES INTERVALS 2 TRANSPARENT FALSE STATUS ON END # Start of LAYER DEFINITIONS --------------------------------------------- LAYER CONNECTIONTYPE postgis NAME "counties" # Connect to a remote spatial database CONNECTION "user=user dbname=dbname host=localhost" DATA "the_geom from gis.wa_counties" STATUS ON TYPE POLYGON FILTER "true" LABELITEM "name" CLASS COLOR 232 232 232 OUTLINECOLOR 32 32 32 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT arial SIZE 10 ANTIALIAS TRUE END END END LAYER NAME "relief" STATUS ON TILEINDEX "topo.shp" TILEITEM "location" TYPE RASTER # PROJECTION # I was told this data was in "State Plane Feet NAD 83 WA South 4602" # Have tried all kinds of incantations in this section to no effect. # END END # End of LAYER DEFINITIONS ------------------------------- END # end of map file/object From numerous at GMAIL.COM Tue Jul 5 14:11:35 2005 From: numerous at GMAIL.COM (Yar Doroshenko) Date: Tue, 5 Jul 2005 16:11:35 -0500 Subject: Tif tiles display, but small in size Message-ID: Hi Guys, My tileindex works fine, I have 51 tig images, I define my layer as the folowing: layer name "aerial" tileindex mrsid/img_index type raster status default end My tif images display just fine, the top left corner seems to be positioned correctly. The problem is that at a certain zoom level, there are spaces between my tiles and I would like them to overlap. I know that my tifs are fine, when I open them in a viewer I can zoom in deep. Is there any way to make tifs larger, or make them overlap at a certain zoom level? Thank you, Yar From Tom.Kralidis at EC.GC.CA Tue Jul 5 14:39:19 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Tue, 5 Jul 2005 17:39:19 -0400 Subject: SLD & Spatial filter Message-ID: The documentation for SLD says that it supports Filter as per the Filter howto. This suggests to me that the sld support in MapServer works off the filter support. So any supported filter, whether via a WFS GetFeature or a Filter in an SLD document, should work. Perhaps one of the developers can confirm? The Filter howto documents the following support for spatial filters: BBox Intersects DWithin more below... > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bart van > den Eijnden > Sent: Tuesday, 05 July, 2005 14:51 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] SLD & Spatial filter > > > I know the BBOX spatial Filter works for SLD don't know about > the other > ones though, haven't tried. > > Do they work on your WFS server? > > Best regards, > Bart > > On Tue, 05 Jul 2005 17:34:27 +0200, Fran?ois Prunayre > wrote: > > > Hi list, I'm looking for advice about SLD FILTER ... Comparison > > Filters > > and > > Logical Filters works in SLD file like > > " > > ID > > 655 > > " > > > > But spatial filter doesn't seem to be applied to layers like > > " > > Geometry > > > > > 0.37,48.68 > > 10000 > > " or > > > > " > > Geometry > > > > You have an opening gml:Point element with a closed gml:Points element. Should be: Geometry 0.37,48.68 10000 > 0,4 > > 8.27 > > 1.67,49.24 2.62,47.56 > > > 0,48.27 s> > n> > > " > > It is interprested as Intersects, not Intersect. Should be: Geometry 0,48.27 1.67,49.24 2.62,47.56 0,48.27 > > Does spatial filter work only with WFS layers and not with SLD ? Is > > this > > in > > the OGC spec for SLD or is it not implemented in mapserver ? > > > > Thanks for your help. > > Francois > > > > From iharding at TPCHD.ORG Tue Jul 5 14:38:03 2005 From: iharding at TPCHD.ORG (Ian Harding) Date: Tue, 5 Jul 2005 14:38:03 -0700 Subject: Raster Layer, Extent, etc. Message-ID: Thanks! Of course projections are important, I just thought I could "ignore" them for now, I guess not! Is there a good tutorial on the required incantations for the PROJECTION blocks? I have found a few links but nothing that really enlightened me much. - Ian >>> "Fawcett, David" 07/05/05 2:11 PM >>> Projections may make our data look 'funny', but it also lets us put features from the 3D globe on 2D paper or screens.... ; ] By enabling projections in MapServer, it allows us to gather data in several different projections and use them all in the same output map. I would go back to your data sources and find out what projection the data sets are in. There are a lot of possible projections, so it is difficult to guess the projection by trial and error. Better to just contact the data provider and get the original info. If someone is familiar with The large numbers in the extents of your counties data set could possibly be feet or meters. ALSO, I just noticed your MAP PROJECTION block. You are requesting both "latlong" and "init=epsg:32149" Try choosing one or the other, you can't have both at the same time. David Fawcett Minnesota Office of Environmental Assistance david.fawcett at moea.state.mn.us 651.215.0200 -----Original Message----- From: Ian Harding [mailto:iharding at TPCHD.ORG] Sent: Tuesday, July 05, 2005 3:57 PM To: MAPSERVER-USERS at LISTS.UMN.EDU; David.Fawcett at state.mn.us Subject: RE: [UMN_MAPSERVER-USERS] Raster Layer, Extent, etc. Thanks for the reply! I fooled around a bit with those blocks (added one to 'counties' too) with no luck. As I understand projections, they might make my data look funny, but it should at least show up, right? I have zoomed and panned like crazy and can't find it. Also, in the "proj=????" bit, what other options are there besides latlong? This coordinate system seems to have some awfully big numbers, that don't look like latlong to me. I am missing something very simple here, no doubt. Doh! Thanks, Ian >>> "Fawcett, David" 07/05/05 1:43 PM >>> Ian, I am guessing that the projection is causing your issues. The projection block in the MAP object (at the top of the map file) applies to the whole map file. You set this to the projection that you want to output your data in. The EXTENT and UNITS should be in the units of this projection. In each LAYER, you need to define the projection that the input data for that layer is in. So, you have a PROJECTION .... END block in each layer. At a minimum, you need to add a PROJECTION block to your 'counties' layer. From your description, your raster may be unprojected (lat lon). David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett at moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Ian Harding Sent: Tuesday, July 05, 2005 3:21 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Raster Layer, Extent, etc. I have no idea what I am doing. I can get mapserver to work as advertised with vector data (geographic coordinate system) and with raster data (some other crazy coordinate system) but can't get the twain to meet. When I change the extent (as seen in the commented section) one or the other layers will display, but not both. I have controls that successfully turn the layers off and on in isolation, so I know it's not the DEFAULT versus ON issue. The system seems to be very forgiving of bad stuff (or absense of any stuff) in the "projection" section, and the "units" just screws up the scalebar, but the "extent" seems to be killing me. There is only one "extent" section, which applies to the whole mapfile, right? From what I have read, the various layers can use different coordinate systems and be 'translated' to the overall mapfile extent and coordinate system. This is not working for me. What could be causing my pain here? Thank you in advance.... - Ian MAP IMAGETYPE PNG24 EXTENT -122.5 46.5 -121.8 47.8 UNITS DD # Uncommenting these (and commenting the above) makes the raster image appear. # EXTENT 1060000.000000 460000.000000 1460000.000000 660000.000000 # UNITS FEET SIZE 400 300 SHAPEPATH "pierceco" IMAGECOLOR 255 255 255 PROJECTION "proj=latlong" "datum=NAD83" "init=epsg:32149" END SYMBOLSET "symbols/symbols35.sym" FONTSET "fonts/fonts.list" WEB TEMPLATE 'pierce.html' IMAGEPATH '/data/tmp/' IMAGEURL '/tmp/' END # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE TINY END STYLE 1 SIZE 100 2 COLOR 0 0 0 UNITS MILES INTERVALS 2 TRANSPARENT FALSE STATUS ON END # Start of LAYER DEFINITIONS --------------------------------------------- LAYER CONNECTIONTYPE postgis NAME "counties" # Connect to a remote spatial database CONNECTION "user=user dbname=dbname host=localhost" DATA "the_geom from gis.wa_counties" STATUS ON TYPE POLYGON FILTER "true" LABELITEM "name" CLASS COLOR 232 232 232 OUTLINECOLOR 32 32 32 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT arial SIZE 10 ANTIALIAS TRUE END END END LAYER NAME "relief" STATUS ON TILEINDEX "topo.shp" TILEITEM "location" TYPE RASTER # PROJECTION # I was told this data was in "State Plane Feet NAD 83 WA South 4602" # Have tried all kinds of incantations in this section to no effect. # END END # End of LAYER DEFINITIONS ------------------------------- END # end of map file/object From kenlord at GMAIL.COM Tue Jul 5 14:50:29 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Tue, 5 Jul 2005 14:50:29 -0700 Subject: Connect to ESRI Personal Geodatabase Message-ID: Hi List, Is there currently a way to use spatial data within an ESRI Personal Geodatabase as a data source for MapServer? Say through OGR / FMEObjects Gateway? We have a dataset that must remain in the ESRI mdb format to suit our client and the data custodian, but we would like to make it available for viewing / wms / wfs with MapServer without converting it into another format to ensure the most up to date data is always being used. Thanks, Ken Lord Vancouver BC -------------- next part -------------- An HTML attachment was scrubbed... URL: From assefa at DMSOLUTIONS.CA Tue Jul 5 15:00:58 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Tue, 5 Jul 2005 18:00:58 -0400 Subject: SLD & Spatial filter In-Reply-To: <2576812186CDD411BF1500508B6DCE9508A7DDB7@ecnwri1.ontario.int.ec.gc.ca> Message-ID: BBox,Intersects,DWithin should work from an SLD. Francois : If after making the chnages suggested by Tom, you still have a problem you could open a bug and attach a simple test case if possible (map, data and sld) and I will give it a try here. Later, Kralidis,Tom [Burlington] wrote: > The documentation for SLD says that it supports Filter as per the Filter howto. This suggests to me that the sld support in MapServer works off the filter support. So any supported filter, whether via a WFS GetFeature or a Filter in an SLD document, should work. Perhaps one of the developers can confirm? > > The Filter howto documents the following support for spatial filters: > > BBox > Intersects > DWithin > > more below... > > >>-----Original Message----- >>From: UMN MapServer Users List >>[mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bart van >>den Eijnden >>Sent: Tuesday, 05 July, 2005 14:51 >>To: MAPSERVER-USERS at LISTS.UMN.EDU >>Subject: Re: [UMN_MAPSERVER-USERS] SLD & Spatial filter >> >> >>I know the BBOX spatial Filter works for SLD don't know about >>the other >>ones though, haven't tried. >> >>Do they work on your WFS server? >> >>Best regards, >>Bart >> >>On Tue, 05 Jul 2005 17:34:27 +0200, Fran?ois Prunayre >> wrote: >> >> >>>Hi list, I'm looking for advice about SLD FILTER ... Comparison >>>Filters >>>and >>>Logical Filters works in SLD file like >>> " >>> ID >>> 655 >>> " >>> >>>But spatial filter doesn't seem to be applied to layers like >>>" >>> Geometry >>> >>> >> >>0.37,48.68 >> >>> 10000 >>> " or >>> >>>" >>> Geometry >>> >>> > > > > You have an opening gml:Point element with a closed gml:Points element. Should be: > > > Geometry > > 0.37,48.68 > > 10000 > > > >>0,4 >> >>>8.27 >>>1.67,49.24 2.62,47.56 >>> >> >>0,48.27>s>> >>>n> >>> " >>> > > It is interprested as Intersects, not Intersect. Should be: > > > Geometry > > > > 0,48.27 1.67,49.24 2.62,47.56 0,48.27 > > > > > > >>>Does spatial filter work only with WFS layers and not with SLD ? Is >>>this >>>in >>>the OGC spec for SLD or is it not implemented in mapserver ? >>> >>>Thanks for your help. >>>Francois >>> >>> > > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From steve.lime at DNR.STATE.MN.US Tue Jul 5 15:08:26 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 5 Jul 2005 17:08:26 -0500 Subject: transparency not working in dynamic layer Message-ID: Unfortunately transparency is applied at the layer level, not at the feature level. What happens is that features are rendered into a temporary image that is ultimately blended with the main image. So, what you're trying cannot work. There is a bug filed to try and fix this but it will be awhile. There is a workaround though. You need to compose your rectangle as a shape (use the toPolygon method) and then add the shape to the layer as a feature. Code might look like: $rectobj->{maxy} = 35.516376; # workaround for layer-level transparency $shape = $rectobj->toPolygon(); $layerobj->addFeature($shape); $layer->draw($map, $img); Not too bad... Steve >>> Mark Phillips 07/04/05 7:28 PM >>> Hi, I'm using Perl mapscript to manually draw a rectangle on a map. I'd like the rectangle to be transparent, so I'm drawing it in a layer that is already defined in the mapfile as follows: LAYER NAME RECT STATUS ON TYPE POLYGON TRANSPARENCY 50 CLASS COLOR 210 210 150 OUTLINECOLOR 0 0 0 END END The rectangle always comes out opaque, though. Here's the relevant part of my perl script: $map = new mapscript::mapObj( ... ); ... $img = $map->draw(); ... $layerobj = $map->getLayerByName('RECT'); $layerobj->{status} = 1; $rectobj = new mapscript::rectObj(); $rectobj->{minx} = -82.331429; $rectobj->{maxx} = -82.323929; $rectobj->{miny} = 35.508876; $rectobj->{maxy} = 35.516376; $rectobj->draw($map, $layerobj, $img, undef, ""); ... $img->save($filename); Does anyone know what I'm doing wrong? I've seen references to similar problems with transparency in dynamic layers in the list archives, but I haven't seen a resolution. Thanks for any help, --Mark Mark Phillips @ Geometry Technologies LLC 77 Owenby Cove Road Fairview, NC 28730 Phone: 828-628-0489 mbp at geomtech.com http://www.geomtech.com From mike.and.kerry at GMAIL.COM Tue Jul 5 17:00:35 2005 From: mike.and.kerry at GMAIL.COM (Mike Davis) Date: Tue, 5 Jul 2005 16:00:35 -0800 Subject: Serving hillshaded maps Message-ID: Hello List! I am trying to decide wether to include a hillshade layer in our Mapserver applications. I have played around with using an ESRI grid hillshade in the past, as with any large raster image, it can slow things down quite a bit. Additionally, hillshading may introduce some problems when serving 8bit imagery. I am wondering if anyone else out in list land has added a hillshade layer to their maps. What approach works best for you? Thanks in advance -Mike From msestudiente2 at YAHOO.COM Tue Jul 5 19:33:56 2005 From: msestudiente2 at YAHOO.COM (Alex Smith) Date: Tue, 5 Jul 2005 19:33:56 -0700 Subject: Connect to ESRI Personal Geodatabase In-Reply-To: <55dd01fa05070514505d5c5469@mail.gmail.com> Message-ID: you took the words right out of my mouth. i just logged in to ask the same question. it is not an absolute must that we stay with the personal geodatabase, but our workflow is designed around it, postgis isn't too feasible (in our situation) and we cannot get anywhere close to affording ArcSDE. does anybody know the answer to this question? i can, however, speculate. since MapServer reads SDE, and the personal geodb is like an 'SDE Lite' where you substitute ms access for oracle or SQL Server, then it SEEMS that it shouldn't be too hard to read personal geodatabase feature classes from MapServer. i'd be very, very surprise to learn that ESRI is stores spatial data differently in personal geodatabases vs ArcSDE databases - that would take a LOT of time to code. so maybe the MapServer code could be modified/adapted to read these spatial tables as well?!?!? i image that there are a hefty number of other people in the same situtation. thanks! AS --- Ken Lord wrote: > Hi List, > Is there currently a way to use spatial data within > an ESRI Personal > Geodatabase as a data source for MapServer? > Say through OGR / FMEObjects Gateway? > We have a dataset that must remain in the ESRI mdb > format to suit our > client and the data custodian, but we would like to > make it available for > viewing / wms / wfs with MapServer without > converting it into another format > to ensure the most up to date data is always being > used. > Thanks, > Ken Lord > Vancouver BC > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From pramsey at REFRACTIONS.NET Tue Jul 5 21:36:36 2005 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Tue, 5 Jul 2005 21:36:36 -0700 Subject: Connect to ESRI Personal Geodatabase In-Reply-To: <20050706023356.48290.qmail@web61012.mail.yahoo.com> Message-ID: Frank has much of the infrastructure needed already in OGR (ODBC driver, etc) and I have been told that the geodatabase internal spatial format is very simple (shapefile-in-a-table). All you need to do is scrape together the funding. I bet if you asked, he'd write up a quote for free. P. On 5-Jul-05, at 7:33 PM, Alex Smith wrote: > you took the words right out of my mouth. i just > logged in to ask the same question. it is not an > absolute must that we stay with the personal > geodatabase, but our workflow is designed around it, > postgis isn't too feasible (in our situation) and we > cannot get anywhere close to affording ArcSDE. > > does anybody know the answer to this question? i can, > however, speculate. since MapServer reads SDE, and > the personal geodb is like an 'SDE Lite' where you > substitute ms access for oracle or SQL Server, then it > SEEMS that it shouldn't be too hard to read personal > geodatabase feature classes from MapServer. i'd be > very, very surprise to learn that ESRI is stores > spatial data differently in personal geodatabases vs > ArcSDE databases - that would take a LOT of time to > code. so maybe the MapServer code could be > modified/adapted to read these spatial tables as > well?!?!? > > i image that there are a hefty number of other people > in the same situtation. > > thanks! > > AS > > --- Ken Lord wrote: > > >> Hi List, >> Is there currently a way to use spatial data within >> an ESRI Personal >> Geodatabase as a data source for MapServer? >> Say through OGR / FMEObjects Gateway? >> We have a dataset that must remain in the ESRI mdb >> format to suit our >> client and the data custodian, but we would like to >> make it available for >> viewing / wms / wfs with MapServer without >> converting it into another format >> to ensure the most up to date data is always being >> used. >> Thanks, >> Ken Lord >> Vancouver BC >> >> > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > From Dejan.Gambin at PULA.HR Tue Jul 5 22:28:38 2005 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Wed, 6 Jul 2005 07:28:38 +0200 Subject: Moving point on the map Message-ID: Hi, Is it possible to move a point on the map (by dragging it to another location) and reflect the changes to point shapefile? Does anyone have a suggestion or experience on this? Or maybe example? regards dg From m.tomko at PGRAD.UNIMELB.EDU.AU Tue Jul 5 23:26:17 2005 From: m.tomko at PGRAD.UNIMELB.EDU.AU (Martin Tomko) Date: Wed, 6 Jul 2005 16:26:17 +1000 Subject: Serving hillshaded maps In-Reply-To: Message-ID: I had some experience with it in my previous project - www.geoportal.sk the approach you mentionned is the one used, works well. Combined with transparency, you can use it nicely with other elements. There is an english version of the page, so have a look. The title page is only in slovak though, so just click on the first option (= agree, it is a copyright agreement). Click on english version in the top right corner, and then select a transparent digital model from the digital models group. It you overlay it with any other data, you will see how it behaves. Martin BTW, that's the official geoportal of the Slovak National Mapping Agency. ---------------------------------------------- !!!!!!!!Do not send any emails to mtomko at sunrise.sli.unimelb.edu.au anymore!!! Use m.tomko at pgrad.unimelb.edu.au as my main email address. ---------------------------------------------- Ing. Martin Tomko PhD. candidate CRC for Spatial Information Department of Geomatics University of Melbourne Victoria 3010 Australia phone +61 3 8344 9179 fax +61 3 9349 5185 email m.tomko at pgrad.unimelb.edu.au url http://www.geom.unimelb.edu.au/tomko url http://www.spatialinformationscience.org url http://www.crcsi.com.au ---------------------------------------------- MAPSERVER-USERS automatic digest system wrote: > Skip repetitive navigational links <#skipnavlinks> > L-Soft - Home of the LISTSERV mailing list manager > LISTSERV(R) 14.3 > > > MAPSERVER-USERS Digest - 4 Jul 2005 to 5 Jul 2005 (#2005-192) > > > Table of contents: > > * [UNCLASSIFIED]RE: [UMN_MAPSERVER-USERS] UTM at the zone's boundar > y. <#S1> > * transparency not working in dynamic layer <#S2> (2) > * ??: [UMN_MAPSERVER-USERS] question abo ut the installation of > mapserver <#S3> (2) > * MapFile for 250 layers (MS_MAXLAYERS) <#S4> (2) > * SLD & Spatial filter <#S5> (4) > * pixmap symbol <#S6> > * A flash question about Mapserver's SWF output <#S7> > * Raster Layer, Extent, etc. <#S8> (5) > * Tif tiles display, but small in size <#S9> > * Connect to ESRI Personal Geodatabase <#S10> (3) > * Serving hillshaded maps <#S11> > > 1. [UNCLASSIFIED]RE: [UMN_MAPSERVER-USERS] UTM at the zone's boundar y. > * Re: [UNCLASSIFIED]RE: [UMN_MAPSERVER-USERS] UTM at the > zone's boundar y. > > (07/04) > *From:* Krung Saengpole > 2. transparency not working in dynamic layer > * Re: transparency not working in dynamic layer > > (07/05) > *From:* Lowell Filak > * Re: transparency not working in dynamic layer > > (07/05) > *From:* Steve Lime > 3. ??: [UMN_MAPSERVER-USERS] question abo ut the installation of > mapserver > * Re: ??: [UMN_MAPSERVER-USERS] question abo ut the > installation of mapserver > > (07/05) > *From:* "Fawcett, David" > * Re: ??: [UMN_MAPSERVER-USERS] question abo ut the > installation of mapserver > > (07/05) > *From:* Howard Butler > 4. MapFile for 250 layers (MS_MAXLAYERS) > * MapFile for 250 layers (MS_MAXLAYERS) > > (07/05) > *From:* Gabriel Cloutier > * Re: MapFile for 250 layers (MS_MAXLAYERS) > > (07/05) > *From:* Gabriel Cloutier > 5. SLD & Spatial filter > * SLD & Spatial filter > > (07/05) > *From:* Fran?ois Prunayre > * Re: SLD & Spatial filter > > (07/05) > *From:* Bart van den Eijnden > * Re: SLD & Spatial filter > > (07/05) > *From:* "Kralidis,Tom [Burlington]" > * Re: SLD & Spatial filter > > (07/05) > *From:* Yewondwossen Assefa > 6. pixmap symbol > * pixmap symbol > > (07/05) > *From:* Llu?s Garcia i Mestres > 7. A flash question about Mapserver's SWF output > * A flash question about Mapserver's SWF output > > (07/05) > *From:* Jay Austin > 8. Raster Layer, Extent, etc. > * Raster Layer, Extent, etc. > > (07/05) > *From:* Ian Harding > * Re: Raster Layer, Extent, etc. > > (07/05) > *From:* "Fawcett, David" > * Re: Raster Layer, Extent, etc. > > (07/05) > *From:* Ian Harding > * Re: Raster Layer, Extent, etc. > > (07/05) > *From:* "Fawcett, David" > * Re: Raster Layer, Extent, etc. > > (07/05) > *From:* Ian Harding > 9. Tif tiles display, but small in size > * Tif tiles display, but small in size > > (07/05) > *From:* Yar Doroshenko > 10. Connect to ESRI Personal Geodatabase > * Connect to ESRI Personal Geodatabase > > (07/05) > *From:* Ken Lord > * Re: Connect to ESRI Personal Geodatabase > > (07/05) > *From:* Alex Smith > * Re: Connect to ESRI Personal Geodatabase > > (07/05) > *From:* Paul Ramsey > 11. Serving hillshaded maps > * Serving hillshaded maps > > (07/05) > *From:* Mike Davis > > ------------------------------------------------------------------------ > Powered by LISTSERV(R) > Browse the MAPSERVER-USERS online archives. > > From temiz at DEPREM.GOV.TR Tue Jul 5 23:36:35 2005 From: temiz at DEPREM.GOV.TR (orkun) Date: Wed, 6 Jul 2005 09:36:35 +0300 Subject: transparency with php_mapscript Message-ID: hello how can I make my maps transparent with php_mapscript code ? regards Ahmet Temiz ______________________________________ XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From kristjan at TARKVARASTUUDIO.EE Tue Jul 5 23:46:15 2005 From: kristjan at TARKVARASTUUDIO.EE (Kristjan Annus) Date: Wed, 6 Jul 2005 09:46:15 +0300 Subject: A flash question about Mapserver's SWF output In-Reply-To: Message-ID: Hello! I made the container movie, then put one map movie into it and loaded the map into this movie. Then if it is requried to pan, then I move the container. It is useful allso for moving some additional vector layers at the same time with the map (these layers are drawn allso to the same container). You can look at the sample application at: http://www.tartu.ee/bi_kaart/map.html Kristjan Jay Austin wrote: >Hi, I'm working on a flash app designed to load a mapserver swf and then >manipulate it (pan, zoom, etc). > >In my flash file I use loadMovie to put the swf into an empty movie clip. > >My ActionScript looks like this... >myclip_mc.loadMovie("http://myserver.com/cgi-bin/mapserv?map=../htdocs/folder/folder/mapfile.map&mode=map"); > >When it loads the swf it puts it in the upper left corner of the stage >(regardless of where the empty movie clip was placed), and I am unable to >move it, change it's size it's x-scale etc. > >I can access the variables in the swf, (i.e., _level5.Element[15][0], or >_level0.myclip_mc.mapObj.layers[0].name) I just can't manipulate the actual >map. Moving the movie clip the swf was loaded into does nothing. > >Can you please tell me what I'm doing wrong or what name I have to use in >actionscript to move the physical map. > >Thanks. > > From pimpoumvlan at HOTMAIL.COM Wed Jul 6 00:03:10 2005 From: pimpoumvlan at HOTMAIL.COM (Selim Hernandez) Date: Wed, 6 Jul 2005 02:03:10 -0500 Subject: Empty map with MapInfo files (Mif/Mid) and OGR Message-ID: Hello, I am a beginner with Mapserver. I set up Ms4w succesfully. The workshop demo is working fine I manage to begin the tutorial. Now I'm trying to use MapInfo exchange files (mif/mid files) with MapInfo, using OGR. Since I have no error message, I can say that OGR and mapserver find my mif file. But I still have an empty map. Here are my two files : -->test2.map : MAP IMAGETYPE PNG EXTENT -97.5 41.619778 -82.122902 49.38562 # Geographic SIZE 400 300 SHAPEPATH "data" IMAGECOLOR 255 255 255 # Start of LAYER DEFINITIONS --------------------------------------------- LAYER # States polygon layer begins here NAME states CONNECTIONTYPE OGR CONNECTION "test.mif" DATA "test" STATUS DEFAULT TYPE POINT CLASS COLOR 0 0 0 OUTLINECOLOR 0 0 0 END END # States polygon layer ends here # End of LAYER DEFINITIONS ------------------------------- END # end of map file/object ---->and my test.mif file: VERSION 300 DELIMITER "," COLUMNS 0 DATA POINT 45 -85 From fx.prunayre at OIEAU.FR Wed Jul 6 03:31:11 2005 From: fx.prunayre at OIEAU.FR (=?iso-8859-1?Q?Fran=E7ois_Prunayre?=) Date: Wed, 6 Jul 2005 12:31:11 +0200 Subject: GML MultiLineString - missing space In-Reply-To: Message-ID: Hi list, I have no space between coordinates in gml:MultiLineString geometry. Like ... 1.573795,48.756269-1.573767,48.756279-1.573621,48.756415-1.573190,48.757014- 1.572663,48.758156-1.572388,48.759020-1.572269,48.760149-1.571406,48.763876- 1.571331,48.764688-1.571195,48.765413-1.570923,48.767222-1.570576,48.768943- 1.570443,48.768992-1.570467,48.769126-1.570198,48.771880-1.570333,48.775304- 1.570319,48.776924-1.570258,48.777736-1.570149,48.778100-1.570132,48.778775- 1.569944,48.779906 It should be ... -1.573795,48.756269 -1.573767,48.756279 -1.573621,48.756415 -1.573190,48.757014 -1.572663,48.758156 -1.572388,48.759020 -1.572269,48.760149 -1.571406,48.763876 -1.571331,48.764688 -1.571195,48.765413 -1.570923,48.767222 -1.570576,48.768943 -1.570443,48.768992 -1.570467,48.769126 -1.570198,48.771880 -1.570333,48.775304 -1.570319,48.776924 -1.570258,48.777736 -1.570149,48.778100 -1.570132,48.778775 -1.569944,48.779906 In 4.6.0, file mapgml.c, line 310 : "%f,%f" should be replace by "%f,%f " msIO_fprintf(stream, "%s ", tab); for(i=0; iline[j].numpoints; i++) msIO_fprintf(stream, "%f,%f ", shape->line[j].point[i].x, shape->line[j].point[i].y); msIO_fprintf(stream, "\n"); Works for me. Francois -- Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve. Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et prives. Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee. Any data and information contained in this electronic mail is personal, confidential and secret. Any total or partial publication, use or distribution must be authorized. From tkirstine at JDBARNES.COM Wed Jul 6 05:29:43 2005 From: tkirstine at JDBARNES.COM (Travis Kirstine GIS Tech) Date: Wed, 6 Jul 2005 08:29:43 -0400 Subject: Serving hillshaded maps In-Reply-To: <631c85c1050705170061eda733@mail.gmail.com> Message-ID: Hey Mike, I've included a email that was in the user group about a month ago which was very helpful, providing info on how to handle raster datasets in mapserver (overviews, tileindex, etc..). If you don't have GDAL go to: http://fwtools.maptools.org/ and the how to for the utilities at: http://www.remotesensing.org/gdal/gdal_utilities.html Good luck Trav >From: Gambin Dejan >Reply-To: Gambin Dejan >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] GeoTIFF overviews / TILEINDEX / Large >dataset performance >Date: Fri, 10 Jun 2005 08:33:20 +0200 > >Frank, > >I have to say it is great to get such a detalied explanation of >overviews/tiles/performance problems. I would personally very like to >see some kind of HOWTO that would explain this in more details end >technical/theoretical background. For example, how to create overviews >that exactly match desired output resolution so no resampling occurs >(with fixed set of zoom scales of course) and similar performance >things. > >I would be happy enough if someone can point me to literature that >explains all this stuff. > >regards > >dejan > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >Behalf Of Frank Warmerdam >Sent: Thursday, June 09, 2005 9:53 PM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] GeoTIFF overviews / TILEINDEX / Large >dataset performance > > >On 6/4/05, Dan Greve wrote: > > To everyone, > > > > Are GeoTiff overviews taken advantage of by Mapserver? What's the > > best way to handle large datasets (300 GB, 260,000 files in my case) > > when you want the user to be able to view the whole dataset. > > >Dan, > >I think that Mark had the right idea with creating new overview layers >to kick in at various scales. To show an overview of your whole region >it would be disaster to have touch all 260,000 of your files. > >To answer one specific question, MapServer will take advantage of >overviews >built into GeoTIFF files (assuming GDAL is in use). > > > I have a lot of data, probably about 300GB spread among 260,000 tiles. > > > Let's just say the region is... Texas. I want the user to be able to > > see the data set at ANY zoom factor. He'd start out looking at the > > entire state of texas, and be able to zoom progressively into a city > > block, and back out again. If the data format could handle 300 GB in > > a single file (I'm using GeoTIFF), theoretically the performance would > > > be better than if I created a TILEINDEX (shapefile) of the 260,000 > > tiles. I've seen this in smaller datasets when requesting the entire > > scene, even just a 13000x13000 dataset with just over 2500 tiles. > >If GeoTIFF supported very large files (there are plans for "BigTIFF >support" one day) then I might encourage you to just create one huge >internally >tiled GeoTIFF file with lots and lots of overview levels. You could use >a >format like Erdas Imagine that does support very large files and build >one huge mosaic image, with lots of overviews. It *ought* to work quite >efficiently though there might be some efficiency hits with such a large >dataset. For instance, just processing the block pointers array might >prove quite a bit of work. > >What Mark is suggesting is to: > > o Create a tile index for all your files. You will likely want a >spatial > index built on this tileindex shapefile. > > o Create a layer in your mapfile using this tileindex, perhaps named > "mosaic_fullres". > > o I would suggest building internal overviews on all the individual > geotiff files as well. > > o View the resulting layer in MapServer, starting near full resolution. > Zoom out till performance degrades unacceptably. This will be a > new resolution at which you you need to build a new "overview >layer". > This isn't an overview within the files in question, it is a whole >new > layer in the map. There are a variety of ways to build it. I would >likely > prepare a script to generate it with MapServer itself, by issuing a >series > of scripted render requests at your new chosen overview resolution. > > o If you produce this new layer as a set of tile files, you will also >need > a tileindex for it. > > o In the mapfile you will need to add this new set of tiles as a new >layer. > You will want to use the MINSCALE and MAXSCALE options on this > layer and the full resolution layer to ensure that renders start to >operate > from this layer instead of the full resolution data at a suitable >resolution. > > There is some mechanism (GROUP? Using the same layer name?) to > ensure that this layer and the full res layer will be treated as a >single > layer from a user-visible point of view. I don't know this details >of this > aspect. > > o you can repeat the above overview layer steps to build additional > overview layers if needed till your full scene gives acceptable >performance. > >OK, looking over my garbled explanation, I'm not sure I have helped at >all. This fairly common situations screams out for some sort of utility >to help build the overview map layers. Or at least we should have a >more detailed HOWTO for this process than I am in a position to prepare >just now. > > > > > When you say > > > > "I create a new tile grid shapefile using that map extent as the size > > of one tile. I tile the entire map area (in my case the world). " > > > > Do you mean you just duplicate the entire dataset with larger tiles > > when a TILEINDEX search would take longer? > >He means to duplicate the whole dataset, but at the much reduced >resolution at which the render performance started to degrade. If your >original files were fairly large, and had internal overviews built, I >believe your first overview map layer would likely be at something like >1/128'th of the resolution of the original data. So the overview dataset >would then be 1/16000th the size of the original data or so. > > > When you say > > > > "I create a new aggregate image layer using calls to the map server to > > > generate an image for each new tile." > > > > I have no idea what you meant by "aggregate image layer" > >He means a whole new map layer which is at a reduced resolution. It is >an aggregate of a whole bunch of calls to mapserver to render tiles of >the total region. (hence the need for a new tile index). > > > Are you downsampling the image at all as you increase the tile sizes? > > > The raster howto on the UMN site has a snippet about Frank W. wanting > > to implement using GeoTIFF overviews in the mapserver. Does mapserver > > > currently take advantage of this? Could you elaborate on your pyramid > > scheme? > >Yes, he means that it would be at a much reduced resolution. The tile >sizes in meters is much bigger, but the actual tile sizes in terms of >pixels need not necessarily be much larger. > >Note that there are different types of tiling and overviews coming into >play. o Macro tiling: Each tile is a separate TIFF file, and a >tileindex shapefile > is used to associate them to treat them as one layer in the .map >file. > o Internal tiling: A given TIFF file can be internally organized into >tiles > as opposed to strips (scanlines). This gives > > o "map level overviews": using mutiple layers in a .map file with > MINSCALE/MAXSCALE to select which layer to render from. > o "internal overviews": individual TIFF files can have overviews built > in and GDAL will automatically take advantage of them if present. > >Best regards, >-- >---------------------------------------+-------------------------------- >---------------------------------------+------ >I set the clouds in motion - turn up | Frank Warmerdam, >warmerdam at pobox.com >light and sound - activate the windows | http://pobox.com/~warmerdam >and watch the world go round - Rush | Geospatial Programmer for Rent ---------------------------------------------------------------------------- ---- -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Mike Davis Sent: Tuesday, July 05, 2005 8:01 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Serving hillshaded maps Hello List! I am trying to decide wether to include a hillshade layer in our Mapserver applications. I have played around with using an ESRI grid hillshade in the past, as with any large raster image, it can slow things down quite a bit. Additionally, hillshading may introduce some problems when serving 8bit imagery. I am wondering if anyone else out in list land has added a hillshade layer to their maps. What approach works best for you? Thanks in advance -Mike From ml.dje at GEOCONTENT.DE Wed Jul 6 06:56:37 2005 From: ml.dje at GEOCONTENT.DE (Dirk Jesko) Date: Wed, 6 Jul 2005 15:56:37 +0200 Subject: Mapscript Windows binaries for PHP5 Message-ID: Hello, Since I got no reply to the first Email, I'll try again. I am looking for a binary distribution of PHP Mapscript 4.6 for Windows compiled against PHP 5. Since maptools.org only has distributions for PHP 4, I would like to know, if there will be one for PHP 5 in the near future or if there is another source, where I can get one. Thanks, Dirk From fwarmerdam at GMAIL.COM Wed Jul 6 07:50:37 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 6 Jul 2005 10:50:37 -0400 Subject: Connect to ESRI Personal Geodatabase In-Reply-To: <885F9278-0B33-496D-B65D-C0FC062E3216@refractions.net> Message-ID: On 7/6/05, Paul Ramsey wrote: > Frank has much of the infrastructure needed already in OGR (ODBC > driver, etc) and I have been told that the geodatabase internal > spatial format is very simple (shapefile-in-a-table). All you need to > do is scrape together the funding. I bet if you asked, he'd write up > a quote for free. Folks, My understanding is that the personal geodatabase table organization is significantly different than the ArcSDE RDBMS organization. Also, keep in mind that the MapServer SDE support uses the SDE libraries to do all the access. For personal geodatabases my preferred approach is to use direct ODBC access to the .mdb file without any direct dependence on ESRI software so that folks can work with personal geodatabases even without SDE or other ESRI libraries being installed. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From j.ballantine at GMAIL.COM Wed Jul 6 07:56:12 2005 From: j.ballantine at GMAIL.COM (Jim Ballantine) Date: Wed, 6 Jul 2005 10:56:12 -0400 Subject: mapserver4.6.0 config failure Message-ID: Hi, I'm trying to build MapServer-4.6.0 on a sun solaris8 box, and the configure is failing with: MapServer Version from map.h: '4.6.0' configure: checking where FreeType 2.x is installed... using libfreetype from -L/usr/local/add-on/freetype/lib -lfreetype configure: checking where Zlib is installed... using libz from -L/usr/local/add-on/zlib/lib -lz configure: checking where PNG is installed... using libpng from -L/usr/local/add-on/libpng/lib -lpng configure: checking whether we should include JPEG support... using libjpeg from system -L/usr/local/add-on/jpeg/lib -ljpeg configure: checking where libXpm is installed... using libXpm from -L/usr/local/add-on/xpm/lib -lXpm -lX11 configure: checking where libiconv is installed... checking for iconv_open in -lc... yes checking for libiconv_open in -liconv... no using libiconv from -L -lc libiconv found. Enabling internationalization (-DUSE_ICONV) configure: checking for GD 2.0.16 or higher... DEBUG: GD_DIR 1 is set to /usr/local/add-on/gd-2.0.33 DEBUG: GD_DIR 2 is set to /usr/local/add-on/gd-2.0.33 DEBUG: GD_LIBDIR is set to /usr/local/add-on/gd-2.0.33/lib : gdFontCacheSetup is checking for gdFontCacheSetup in -lgd... no configure: checking whether GD needs libiconv... checking for gdFontCacheSetup in -lgd... no configure: error: Could not find gd.h or libgd.a/libgd.so in /usr/local/add-on/gd-2.0.33. Make sure GD 2.0.16 or higher is compiled before calling configure. You may also get this error if you didn't specify the appropriate location for one of GD's dependencies (freetype, libpng, libjpeg or libiconv). I added the DEBUG echo's to see what what going on. When I check /usr/local/add-on/gd-2.0.33/include/gd.h, I get: /usr/local/add-on/gd-2.0.33/include/gd.h, and when I look at libgd.a, nm /usr/local/add-on/gd-2.0.33/lib/libgd.a | grep gdFontCacheSetup, I get: [70] | 2872| 132|FUNC |GLOB |0 |2 |gdFontCacheSetup /usr/local/add-on/freetype points to /usr/local/add-on/freetype-2.1.3 Anyone have any ideas on what I'm missing???? Thanks Jim From dldeskins at GMAIL.COM Wed Jul 6 08:26:25 2005 From: dldeskins at GMAIL.COM (Don Deskins) Date: Wed, 6 Jul 2005 10:26:25 -0500 Subject: altering label with php/mapscript Message-ID: Hello, I would like to alter the text of a contours layer where the contour is a line and the labelitem is a number followed by zeros (e.g., 382.000). Since my contours are in 2 ft increments, I would like to remove the zeros. Here is a sample contours layer. LAYER NAME "Contour064" STATUS OFF TYPE line DATA 'ContoursUTM16M/contours_2ft_001_064.shp' LABELITEM "CONTOUR" CLASS OUTLINECOLOR 0 153 0 TEMPLATE "template.html" LABEL ANGLE AUTO COLOR 0 153 0 SHADOWCOLOR 255 220 160 SHADOWSIZE 1 1 TYPE TRUETYPE FONT "arial-bold" SIZE 8 POSITION UC PARTIALS TRUE BUFFER 4 FORCE TRUE END END MAXSCALE 20000 TOLERANCE 0 TOLERANCEUNITS PIXELS END Any suggestions? Thanks. From teb at MALLIT.FR.UMN.EDU Wed Jul 6 08:31:22 2005 From: teb at MALLIT.FR.UMN.EDU (Thomas E Burk) Date: Wed, 6 Jul 2005 10:31:22 -0500 Subject: real estate applications Message-ID: A local newspaper writer wants to know about MapServer applications that are being used for real estate applications. I recall this application area being touched on in previous posts. If you have something to share, and wouldn't mind some possible publicity, contact the writer directly - . Tom From jeff2005 at SVS.GSFC.NASA.GOV Wed Jul 6 08:32:36 2005 From: jeff2005 at SVS.GSFC.NASA.GOV (Jeff de La Beaujardiere) Date: Wed, 6 Jul 2005 11:32:36 -0400 Subject: using Mapserver for on-the-fly raster data? Message-ID: I have a set of huge raw binary datafiles containing output from someone's numerical simulation (6GB/file, 4files/day). Each file contains values for a variety of atmospheric quantities, each at 20 timesteps, and some at multiple elevations. I would like to offer access to at least some of the quantities via WMS protocol using Mapserver. The brute force way works: I can pre-generate PNG or GeoTIFF images of selected quantities, and then generate a mapfile that includes all the images. The obvious disadvantage is that I will have many files laying around whether they ever get used or not. I would like a more elegant approach, wherein Mapserver's WMS service metadata can advertise what quantities are available, but the data are extracted from the 6GB model file only upon request. Is it possible to do something like this? I see a few mentions of database connections in the Mapserver documentation but must admit that I am somewhat mystified. Thanks for any help, Jeff DLB From jim at CCSSERVICESOFVA.COM Wed Jul 6 08:44:36 2005 From: jim at CCSSERVICESOFVA.COM (Jim Bilsborough) Date: Wed, 6 Jul 2005 10:44:36 -0500 Subject: Line layers from OGR Virtual Spatial Data? Message-ID: Hi List I've been attempting to create a Layer via ORG Virtual Spatial Data. Currently the source data is an MS Access database, but could be anything (might even wind up being a CSV). I was hoping to create a layer that would show specific points AND join those points with a connecting line. I think I've tried every conceivable permutation of OGR GeometryType and Mapfile LAYER TYPE, but to no avail. Finally today I read in the WIKI that (as at Sept 2004) only POINT layers are supported. If this is, indeed, the case, what purpose does the OGR GeometryType attribute serve? Finally, and most importantly, can anyone recommend a solution for displaying connected points from a virtual source - ideally, in relatively layman's terms! TIA Jim jim @ ccsservicesofva.com From fwarmerdam at GMAIL.COM Wed Jul 6 08:55:12 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 6 Jul 2005 11:55:12 -0400 Subject: Line layers from OGR Virtual Spatial Data? In-Reply-To: Message-ID: On 7/6/05, Jim Bilsborough wrote: > Hi List > I've been attempting to create a Layer via ORG Virtual Spatial Data. > Currently the source data is an MS Access database, but could be anything > (might even wind up being a CSV). I was hoping to create a layer that > would show specific points AND join those points with a connecting line. I > think I've tried every conceivable permutation of OGR GeometryType and > Mapfile LAYER TYPE, but to no avail. Finally today I read in the WIKI that > (as at Sept 2004) only POINT layers are supported. If this is, indeed, the > case, what purpose does the OGR GeometryType attribute serve? Jim, The GeometryType attribute on the layer changes the type the layer reports itself as but has no real effect on geometry processing in OGR. it is also ignored by MapServer which takes the feature geometries "as they come". > Finally, and most importantly, can anyone recommend a solution for > displaying connected points from a virtual source - ideally, in relatively > layman's terms! To read linestrings from a non-spatial database (eg. CSV, ODBC) using OGR you would need to encode the linestrings in WKT format and use the . WKT format for a linestring might look like: LINESTRING(23.0 45.0, 60.0 30.0) The above would need to be in a string field in the database of course. Good luck, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From fwarmerdam at GMAIL.COM Wed Jul 6 09:00:49 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 6 Jul 2005 12:00:49 -0400 Subject: using Mapserver for on-the-fly raster data? In-Reply-To: <42CBF994.5010304@svs.gsfc.nasa.gov> Message-ID: On 7/6/05, Jeff de La Beaujardiere wrote: > I have a set of huge raw binary datafiles containing output from > someone's numerical simulation (6GB/file, 4files/day). Each file > contains values for a variety of atmospheric quantities, each at 20 > timesteps, and some at multiple elevations. I would like to offer > access to at least some of the quantities via WMS protocol using > Mapserver. > > The brute force way works: I can pre-generate PNG or GeoTIFF images of > selected quantities, and then generate a mapfile that includes all the > images. The obvious disadvantage is that I will have many files laying > around whether they ever get used or not. > > I would like a more elegant approach, wherein Mapserver's WMS service > metadata can advertise what quantities are available, but the data are > extracted from the 6GB model file only upon request. Is it possible to > do something like this? I see a few mentions of database connections > in the Mapserver documentation but must admit that I am somewhat > mystified. Jeff, Are the 6GB files encoded in some complex way, or would it be practical to create header files pointing into the big files for each raster product you want to advertise? ie. are the "bands" uncompressed, and at predictable locations in the big files? If so, it might make sense to create a .vrt "raw file header" for each band you want to advertise, and then build your map around these. Another approach would be to write an actual GDAL driver for the model files, but that would likely be a fair amount of work. Another approach would be to intercept the WMS requests with a script that would take care of extracting desired products in advance before turning control over mapserv to satisfy the request. You would presumably need to extract some information from the url to (LAYERS, timeslices, etc) to determine what to extract. I would assume you would want to cache extracted data so that subsequent requests against the same dataset would be fast. All in all though, I doubt there is a "canned" solution. It seems you will be doing some scripting at one level or another. Good luck, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From fwarmerdam at GMAIL.COM Wed Jul 6 09:03:17 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 6 Jul 2005 12:03:17 -0400 Subject: mapserver4.6.0 config failure In-Reply-To: <8c238e4d0507060756763cd9f4@mail.gmail.com> Message-ID: On 7/6/05, Jim Ballantine wrote: > Hi, > > I'm trying to build MapServer-4.6.0 on a sun solaris8 box, and the > configure is failing with: > > MapServer Version from map.h: '4.6.0' > configure: checking where FreeType 2.x is installed... > using libfreetype from -L/usr/local/add-on/freetype/lib -lfreetype > configure: checking where Zlib is installed... > using libz from -L/usr/local/add-on/zlib/lib -lz > configure: checking where PNG is installed... > using libpng from -L/usr/local/add-on/libpng/lib -lpng > configure: checking whether we should include JPEG support... > using libjpeg from system -L/usr/local/add-on/jpeg/lib -ljpeg > configure: checking where libXpm is installed... > using libXpm from -L/usr/local/add-on/xpm/lib -lXpm -lX11 > configure: checking where libiconv is installed... > checking for iconv_open in -lc... yes > checking for libiconv_open in -liconv... no > using libiconv from -L -lc > libiconv found. Enabling internationalization (-DUSE_ICONV) > configure: checking for GD 2.0.16 or higher... > DEBUG: GD_DIR 1 is set to /usr/local/add-on/gd-2.0.33 > DEBUG: GD_DIR 2 is set to /usr/local/add-on/gd-2.0.33 > DEBUG: GD_LIBDIR is set to /usr/local/add-on/gd-2.0.33/lib : > gdFontCacheSetup is > checking for gdFontCacheSetup in -lgd... no > configure: checking whether GD needs libiconv... > checking for gdFontCacheSetup in -lgd... no > configure: error: Could not find gd.h or libgd.a/libgd.so in > /usr/local/add-on/gd-2.0.33. Make sure GD 2.0.16 or higher is > compiled before calling configure. You may also get this error if you > didn't specify the appropriate location for one of GD's dependencies > (freetype, libpng, libjpeg or libiconv). > > I added the DEBUG echo's to see what what going on. > > When I check /usr/local/add-on/gd-2.0.33/include/gd.h, I get: > /usr/local/add-on/gd-2.0.33/include/gd.h, > and when I look at libgd.a, nm > /usr/local/add-on/gd-2.0.33/lib/libgd.a | grep gdFontCacheSetup, I > get: > [70] | 2872| 132|FUNC |GLOB |0 |2 |gdFontCacheSetup > > /usr/local/add-on/freetype points to /usr/local/add-on/freetype-2.1.3 > Anyone have any ideas on what I'm missing???? Jim, Are you pointing configure at the directory where you built GD or where it was installed? Often the ability to point to build directories for packages is very fragile, and it is easier to install it in a custom location and then point at that install tree. Of course, I could easily be barking up the wrong tree. Just one wild speculation. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From sgillies at FRII.COM Wed Jul 6 09:07:44 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 6 Jul 2005 10:07:44 -0600 Subject: using Mapserver for on-the-fly raster data? In-Reply-To: Message-ID: On Jul 6, 2005, at 9:32 AM, Jeff de La Beaujardiere wrote: > I have a set of huge raw binary datafiles containing output from > someone's numerical simulation (6GB/file, 4files/day). Each file > contains values for a variety of atmospheric quantities, each at 20 > timesteps, and some at multiple elevations. I would like to offer > access to at least some of the quantities via WMS protocol using > Mapserver. > > The brute force way works: I can pre-generate PNG or GeoTIFF images of > selected quantities, and then generate a mapfile that includes all the > images. The obvious disadvantage is that I will have many files laying > around whether they ever get used or not. > > I would like a more elegant approach, wherein Mapserver's WMS service > metadata can advertise what quantities are available, but the data are > extracted from the 6GB model file only upon request. Is it possible to > do something like this? I see a few mentions of database connections > in the Mapserver documentation but must admit that I am somewhat > mystified. > > Thanks for any help, > Jeff DLB > > Jeff, You could take advantage of MapServer's cascading WMS, and of MapServer's easy-going WMS client nature. Create a custom service (as a CGI or servlet or whatever) that responds to WMS GetMap requests and generates a response on-the-fly from your model output. Next, stand up a MapServer WMS between this half-baked service and your end users. All the capabilities metadata would be defined in this mediating service. As a WMS client, MapServer doesn't care whether the service it requests from implements all the WMS spec, it only needs GetMap. cheers, Sean -- Sean Gillies sgillies at frii dot com http://zcologia.com From ryan_boyles at NCSU.EDU Wed Jul 6 09:13:13 2005 From: ryan_boyles at NCSU.EDU (Ryan Boyles) Date: Wed, 6 Jul 2005 12:13:13 -0400 Subject: using Mapserver for on-the-fly raster data? In-Reply-To: <42CBF994.5010304@svs.gsfc.nasa.gov> Message-ID: Jeff, You could store your model output as NetCDF, then allow the mapserver to dynamically display a user specified variable, level, and time. Ryan Jeff de La Beaujardiere wrote: > I have a set of huge raw binary datafiles containing output from > someone's numerical simulation (6GB/file, 4files/day). Each file > contains values for a variety of atmospheric quantities, each at 20 > timesteps, and some at multiple elevations. I would like to offer > access to at least some of the quantities via WMS protocol using > Mapserver. > > The brute force way works: I can pre-generate PNG or GeoTIFF images of > selected quantities, and then generate a mapfile that includes all the > images. The obvious disadvantage is that I will have many files laying > around whether they ever get used or not. > > I would like a more elegant approach, wherein Mapserver's WMS service > metadata can advertise what quantities are available, but the data are > extracted from the 6GB model file only upon request. Is it possible to > do something like this? I see a few mentions of database connections > in the Mapserver documentation but must admit that I am somewhat > mystified. > > Thanks for any help, > Jeff DLB -------------- next part -------------- A non-text attachment was scrubbed... Name: ryan_boyles.vcf Type: text/x-vcard Size: 337 bytes Desc: not available URL: From fwarmerdam at GMAIL.COM Wed Jul 6 09:31:50 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 6 Jul 2005 12:31:50 -0400 Subject: Line layers from OGR Virtual Spatial Data? In-Reply-To: Message-ID: On 7/6/05, jim at ccsservicesofva.com wrote: > Hi Frank > > Thanks for the super-fast info and recommendation - much appreciated > > I'd just like to clarify my understanding of your suggestion (might help > some others here too)... > > Say I have 4 data points - an origin, two intermediate points and a > destination - and the lat/long coords are: > 35, -70 > 30, -75 > 25, -81 > 20, -85 > > Would I then specify THREE linestrings: one for each "leg"? Which would > result in the following: > > LINESTRING(35.0 -70.0, 30.0 -75.0) > LINESTRING(30.0 -75.0, 25.0 -81.0) > LINESTRING(25.0 -81.0, 20.0 -85.0) Jim, No, this would be: LINESTRING( 35.0 -70.0, 30.0 -75.0, 25.0 -81.0, 20.0 -85.0) Hopefully still fairly easily translated. > If I'm right, then I have a little scripting work to do to assemble the > LINESTRING strings from adjacent pairs of rows in my table, but that's a > small price to pay :) > > If my understanding here is correct, I reckon this should be documented in > simple terms in the OGR Virtual Spatial Data documentation - from my > searches of this list, WIKI and even Google today, it seems I'm not the only > one who's struggled with line layers ex virtual sources. (I'd volunteer, > but I'm just a humble newbie round these parts!) The wiki is currently frozen, so we can't fix that up. But if you propose specific additions to the VRT format doc, I'll look at adding them. However, the driver docs are intended to be a reference specifically for the driver, not a general tutorial on their use, nor an introduction to OGC WKT format. I think what we really need to do is get the OGR/VRT wiki document updated and onto the new web site. I would add that this is an excellent work item for a new user! You can ensure it is talked about at an appropriate level for a new user, and it takes a load off the core developers. I would be happy to review any material. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From David.Fawcett at STATE.MN.US Wed Jul 6 09:37:37 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Wed, 6 Jul 2005 11:37:37 -0500 Subject: Line layers from OGR Virtual Spatial Data? Message-ID: Frank, This could also be submitted as a 'How-To' on the new Plone site. http://ms.gis.umn.edu:8081/ms_plone/docs/howto There is already a OGR in MS 4.4 How-To. This could be revised, or a OGR VRT How-To could be added. (By bringing this up, I am not suggesting that you are the only person who could write this either... ; /) David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett at moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Frank Warmerdam Sent: Wednesday, July 06, 2005 11:32 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Line layers from OGR Virtual Spatial Data? On 7/6/05, jim at ccsservicesofva.com wrote: > Hi Frank > > Thanks for the super-fast info and recommendation - much appreciated > > I'd just like to clarify my understanding of your suggestion (might help > some others here too)... > > Say I have 4 data points - an origin, two intermediate points and a > destination - and the lat/long coords are: > 35, -70 > 30, -75 > 25, -81 > 20, -85 > > Would I then specify THREE linestrings: one for each "leg"? Which would > result in the following: > > LINESTRING(35.0 -70.0, 30.0 -75.0) > LINESTRING(30.0 -75.0, 25.0 -81.0) > LINESTRING(25.0 -81.0, 20.0 -85.0) Jim, No, this would be: LINESTRING( 35.0 -70.0, 30.0 -75.0, 25.0 -81.0, 20.0 -85.0) Hopefully still fairly easily translated. > If I'm right, then I have a little scripting work to do to assemble the > LINESTRING strings from adjacent pairs of rows in my table, but that's a > small price to pay :) > > If my understanding here is correct, I reckon this should be documented in > simple terms in the OGR Virtual Spatial Data documentation - from my > searches of this list, WIKI and even Google today, it seems I'm not the only > one who's struggled with line layers ex virtual sources. (I'd volunteer, > but I'm just a humble newbie round these parts!) The wiki is currently frozen, so we can't fix that up. But if you propose specific additions to the VRT format doc, I'll look at adding them. However, the driver docs are intended to be a reference specifically for the driver, not a general tutorial on their use, nor an introduction to OGC WKT format. I think what we really need to do is get the OGR/VRT wiki document updated and onto the new web site. I would add that this is an excellent work item for a new user! You can ensure it is talked about at an appropriate level for a new user, and it takes a load off the core developers. I would be happy to review any material. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From kenlord at GMAIL.COM Wed Jul 6 09:48:24 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Wed, 6 Jul 2005 09:48:24 -0700 Subject: Connect to ESRI Personal Geodatabase In-Reply-To: <931f8ea90507060750417ca709@mail.gmail.com> Message-ID: Thanks for the responses, Frank, are you saying that right now mapserver can read spatial data from a personal geodatabase using an ODBC connection (and if so, are there any exampes available)? Or would some amount of work needed to add the functionality? Thanks, Ken Lord Vancouver BC On 7/6/05, Frank Warmerdam wrote: > > On 7/6/05, Paul Ramsey wrote: > > Frank has much of the infrastructure needed already in OGR (ODBC > > driver, etc) and I have been told that the geodatabase internal > > spatial format is very simple (shapefile-in-a-table). All you need to > > do is scrape together the funding. I bet if you asked, he'd write up > > a quote for free. > > Folks, > > My understanding is that the personal geodatabase table organization > is significantly different than the ArcSDE RDBMS organization. Also, > keep in mind that the MapServer SDE support uses the SDE libraries > to do all the access. For personal geodatabases my preferred > approach is to use direct ODBC access to the .mdb file without any > direct dependence on ESRI software so that folks can work with > personal geodatabases even without SDE or other ESRI libraries > being installed. > > Best regards, > -- > > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.ballantine at GMAIL.COM Wed Jul 6 09:50:53 2005 From: j.ballantine at GMAIL.COM (Jim Ballantine) Date: Wed, 6 Jul 2005 12:50:53 -0400 Subject: mapserver4.6.0 config failure In-Reply-To: <931f8ea905070609031f9b1f45@mail.gmail.com> Message-ID: It's pointing to where it is installed. On 7/6/05, Frank Warmerdam wrote: > On 7/6/05, Jim Ballantine wrote: > > Hi, > > > > I'm trying to build MapServer-4.6.0 on a sun solaris8 box, and the > > configure is failing with: > > > > MapServer Version from map.h: '4.6.0' > > configure: checking where FreeType 2.x is installed... > > using libfreetype from -L/usr/local/add-on/freetype/lib -lfreetype > > configure: checking where Zlib is installed... > > using libz from -L/usr/local/add-on/zlib/lib -lz > > configure: checking where PNG is installed... > > using libpng from -L/usr/local/add-on/libpng/lib -lpng > > configure: checking whether we should include JPEG support... > > using libjpeg from system -L/usr/local/add-on/jpeg/lib -ljpeg > > configure: checking where libXpm is installed... > > using libXpm from -L/usr/local/add-on/xpm/lib -lXpm -lX11 > > configure: checking where libiconv is installed... > > checking for iconv_open in -lc... yes > > checking for libiconv_open in -liconv... no > > using libiconv from -L -lc > > libiconv found. Enabling internationalization (-DUSE_ICONV) > > configure: checking for GD 2.0.16 or higher... > > DEBUG: GD_DIR 1 is set to /usr/local/add-on/gd-2.0.33 > > DEBUG: GD_DIR 2 is set to /usr/local/add-on/gd-2.0.33 > > DEBUG: GD_LIBDIR is set to /usr/local/add-on/gd-2.0.33/lib : > > gdFontCacheSetup is > > checking for gdFontCacheSetup in -lgd... no > > configure: checking whether GD needs libiconv... > > checking for gdFontCacheSetup in -lgd... no > > configure: error: Could not find gd.h or libgd.a/libgd.so in > > /usr/local/add-on/gd-2.0.33. Make sure GD 2.0.16 or higher is > > compiled before calling configure. You may also get this error if you > > didn't specify the appropriate location for one of GD's dependencies > > (freetype, libpng, libjpeg or libiconv). > > > > I added the DEBUG echo's to see what what going on. > > > > When I check /usr/local/add-on/gd-2.0.33/include/gd.h, I get: > > /usr/local/add-on/gd-2.0.33/include/gd.h, > > and when I look at libgd.a, nm > > /usr/local/add-on/gd-2.0.33/lib/libgd.a | grep gdFontCacheSetup, I > > get: > > [70] | 2872| 132|FUNC |GLOB |0 |2 |gdFontCacheSetup > > > > /usr/local/add-on/freetype points to /usr/local/add-on/freetype-2.1.3 > > Anyone have any ideas on what I'm missing???? > > Jim, > > Are you pointing configure at the directory where you built GD or > where it was installed? Often the ability to point to build directories > for packages is very fragile, and it is easier to install it in a custom > location and then point at that install tree. > > Of course, I could easily be barking up the wrong tree. Just one > wild speculation. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > From cdaily at GMAIL.COM Wed Jul 6 10:18:33 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Wed, 6 Jul 2005 12:18:33 -0500 Subject: real estate applications In-Reply-To: <200507061531.j66FVMdh021254@mallit.fr.umn.edu> Message-ID: Thanks for the heads up. I sent him an email regarding our use of mapserver at Prudential Preferred Properties in Chicago. -Camden Daily On 7/6/05, Thomas E Burk wrote: > A local newspaper writer wants to know about MapServer > applications that are being used for real estate applications. I > recall this application area being touched on in previous posts. > > If you have something to share, and wouldn't mind some possible > publicity, contact the writer directly - > . > > Tom > From antaborda at YAHOO.COM Wed Jul 6 10:12:12 2005 From: antaborda at YAHOO.COM (Andres Taborda) Date: Wed, 6 Jul 2005 12:12:12 -0500 Subject: cocoon an mapserver Message-ID: some user have documentation/paper/howto for integrate apache cocoon with mapserver, thanks very much. __________________________________________________ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ?gratis! Reg?strate ya - http://correo.espanol.yahoo.com/ From nbarker at RSINC.COM Wed Jul 6 10:30:17 2005 From: nbarker at RSINC.COM (Norman Barker) Date: Wed, 6 Jul 2005 18:30:17 +0100 Subject: cocoon an mapserver Message-ID: -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Andres Taborda Sent: Wednesday, July 06, 2005 6:12 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] cocoon an mapserver some user have documentation/paper/howto for integrate apache cocoon with mapserver, thanks very much. __________________________________________________ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ?gratis! Reg?strate ya - http://correo.espanol.yahoo.com/ I have done this in a couple of ways, firstly using GEOID (http://geoid.cocoondev.org/) which was easy, and there are a few examples. I ended up generating my own custom Cocoon generators for WFS so that I could post WFS queries using OGC filters. Cocoon is a very good match for GML since the it is an enterprise SAX parser framework that allows quick parsing of large XML documents. Transport over the wire can be reduced by making the app server (and Apache in MapServer) gzip the files going across. For the WMS side, just set up an image resource in your sitemap. As this is slightly OT for this list, email me directly if you need help. Norman Barker From jeff2005 at SVS.GSFC.NASA.GOV Wed Jul 6 10:40:28 2005 From: jeff2005 at SVS.GSFC.NASA.GOV (Jeff de La Beaujardiere) Date: Wed, 6 Jul 2005 13:40:28 -0400 Subject: using Mapserver for on-the-fly raster data? In-Reply-To: <931f8ea9050706090071136bf6@mail.gmail.com> Message-ID: Frank Warmerdam wrote: > If so, it might make sense to create a .vrt "raw file header" for each band > you want to advertise, and then build your map around these. A hidden gem!! I had no idea this VRT capability was available. It should get mentioned in the How To for rasters. VRT certainly looks like it would allow me to avoid pre-extracting data from my 6GB raw binary raster files with well-known positioning of each "band" in the dataset. I suppose the VRT file(s) are enumerated in Mapserver's map file as a LAYER DATA filename? Unfortunately, I'm not sure it is possible to get the correct "colorizing" of each data value. In my case, the data values in the input file are arbitrary but must be mapped to a discrete set of colors. That is, all values in the range [V_i, V_i+1) are mapped to color and opacity RGBA_i. At present, I have been using IDL (Interactive Data Language) to extract the data and render it according to the specified color table, which gives me full control of the portrayal (but requires pre-generating images). -Jeff DLB From xwu2 at UTNET.UTOLEDO.EDU Wed Jul 6 10:42:53 2005 From: xwu2 at UTNET.UTOLEDO.EDU (Wu, Xiaochun) Date: Wed, 6 Jul 2005 13:42:53 -0400 Subject: how to make the server available through port 8080 Message-ID: Hi, everyoue: I have just installed mapserver in linux, I use port 8080. Now the problem is my mapserver is not accessable through internet. When I tried http://ip:8080, it keep on saying that the connection was refused. How can I fingure this out? Thanks ahead! xiaochun -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeff2005 at SVS.GSFC.NASA.GOV Wed Jul 6 10:58:05 2005 From: jeff2005 at SVS.GSFC.NASA.GOV (Jeff de La Beaujardiere) Date: Wed, 6 Jul 2005 13:58:05 -0400 Subject: using Mapserver for on-the-fly raster data? In-Reply-To: <931f8ea9050706090071136bf6@mail.gmail.com> Message-ID: Frank Warmerdam wrote: > Another approach would be to intercept the WMS requests with a > script that would take care of extracting desired products in advance > before turning control over mapserv to satisfy the request. I was thinking about his approach over lunch. However, it seems that once I go down this path I might as well skip calling Mapserver at all and simply let my WMS CGI generate the requested image by calling IDL. Unless I'm missing something (which is quite possible), I don't see where Mapserver provides the ability to control the raster portrayal. -Jeff DLB From fwarmerdam at GMAIL.COM Wed Jul 6 11:30:38 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 6 Jul 2005 14:30:38 -0400 Subject: using Mapserver for on-the-fly raster data? In-Reply-To: <42CC178C.50006@svs.gsfc.nasa.gov> Message-ID: On 7/6/05, Jeff de La Beaujardiere wrote: > Frank Warmerdam wrote: > > If so, it might make sense to create a .vrt "raw file header" for each band > > you want to advertise, and then build your map around these. > > A hidden gem!! I had no idea this VRT capability was available. It > should get mentioned in the How To for rasters. Jeff, Well, the VRT capability isn't mapserver specific. It can be hard to know how much GDAL information makes sense to re-iterate in the MapServer docs. We have a similar issue vector "vrts" on the OGR side, but the requests were sufficiently common that a specific howto was prepared. > VRT certainly looks like it would allow me to avoid pre-extracting data > from my 6GB raw binary raster files with well-known positioning of each > "band" in the dataset. I suppose the VRT file(s) are enumerated in > Mapserver's map file as a LAYER DATA filename? Correct. Note that there is a builtin limit on the number of layers. You may need to recompile with a higher limit if you will end up serving a very large number of layers. > Unfortunately, I'm not sure it is possible to get the correct > "colorizing" of each data value. In my case, the data values in the > input file are arbitrary but must be mapped to a discrete set of colors. > That is, all values in the range [V_i, V_i+1) are mapped to color and > opacity RGBA_i. As of 4.6 (actually it might have been in 4.4 too), MapServer supports the ability to apply classification to non-8bit raster data. This is discussed in the raster howto at: http://ms.gis.umn.edu/docs/howto/raster_data There are a few caveats about precision since internally it actually uses a 16bit lookup table applied to a scaled value. > At present, I have been using IDL (Interactive Data Language) to extract > the data and render it according to the specified color table, which > gives me full control of the portrayal (but requires pre-generating images). On 7/6/05, Jeff de La Beaujardiere wrote: > Frank Warmerdam wrote: > > Another approach would be to intercept the WMS requests with a > > script that would take care of extracting desired products in advance > > before turning control over mapserv to satisfy the request. > > I was thinking about his approach over lunch. However, it seems that > once I go down this path I might as well skip calling Mapserver at all > and simply let my WMS CGI generate the requested image by calling IDL. > Unless I'm missing something (which is quite possible), I don't see > where Mapserver provides the ability to control the raster portrayal. Well, then you need to implement the full WMS support. I was just suggesting that your preprocessor would find the LAYERS info, and use it to pull the required dataset out of the "big file" before processing the request. This leaves MapServer doing all the subsetting, classification etc. However, if you were to start from the python WMS that Allan wrote for his WMS cookbook you might well be able to implement a small custom WMS service calling out to IDL to do some of the work. Of course, your custom WMS might have some limitations that MapServer doesn't (like reprojection, variety of output formats, etc). Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From cdaily at GMAIL.COM Wed Jul 6 11:44:51 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Wed, 6 Jul 2005 13:44:51 -0500 Subject: how to make the server available through port 8080 In-Reply-To: <2BA3A40BB9149F4C91897C2338A8F15B60C8D4@msgdb01.utad.utoledo.edu> Message-ID: If you're using Apache, you'll want to edit the httpd.conf file and add the line "Listen 8080". Then Apache will listen on that port for requests. -Camden Daily On 7/6/05, Wu, Xiaochun wrote: > > > Hi, everyoue: > > I have just installed mapserver in linux, I use port 8080. > Now the problem is my mapserver is not accessable through internet. When I > tried http://ip:8080, it keep on saying that the connection was refused. > How can I fingure this out? > Thanks ahead! > > xiaochun > > From jeff2005 at SVS.GSFC.NASA.GOV Wed Jul 6 12:49:32 2005 From: jeff2005 at SVS.GSFC.NASA.GOV (Jeff de La Beaujardiere) Date: Wed, 6 Jul 2005 15:49:32 -0400 Subject: using Mapserver for on-the-fly raster data? In-Reply-To: <931f8ea9050706113016c71955@mail.gmail.com> Message-ID: Frank Warmerdam wrote: > Note that there is a builtin limit on the number of layers. You may > need to recompile with a higher limit if you will end up serving a > very large number of layers. Already recompiled with layer limit 10000! > As of 4.6 (actually it might have been in 4.4 too), MapServer supports > the ability to apply classification to non-8bit raster data. This is discussed > in the raster howto at: > > http://ms.gis.umn.edu/docs/howto/raster_data Thank you--I had ignored and forgotten that section of the Raster Howto, but I see that it may be just the ticket here. My other dataset is satellite imagery that I serve as-is [By the way, the performance of the GeoTIFFs with overviews built using GDAL is *phenomenal* compared to serving the PNGs that I get from my source.] > Well, then you need to implement the full WMS support. I was just > suggesting that your preprocessor would find the LAYERS info, > and use it to pull the required dataset out of the "big file" before > processing the request. This leaves MapServer doing all the > subsetting, classification etc. Given what you just told me about raster classification, this is indeed a possibility. > However, if you were to start from the python WMS that Allan wrote > for his WMS cookbook you might well be able to implement a small > custom WMS service calling out to IDL to do some of the work. Actually, I already have my own custom WMS using Perl + IDL that we used for the GLOBE Program (www.globe.gov), but it would require so dusting off and retooling. I definitely would prefer to use Mapserver if possible. Many thanks, Jeff DLB From David.Hunter at FNF.COM Wed Jul 6 13:26:36 2005 From: David.Hunter at FNF.COM (Hunter, David - St. Louis Park, MN) Date: Wed, 6 Jul 2005 15:26:36 -0500 Subject: No labels with tileindex layer Message-ID: I am putting together a demo app using DHTML, MapServer 4.4.1 CGI, Tomcat 5 and Win2000. I am using MapInfo .tab files for vector data, accessing via OGR. I would like my app to enable users to turn layers and labels on/off. I have the layers working, and started on the labels when I ran into a problem. I made two separate layers per layer type, one for the features and one for the labels, so that they could be turned on/off independently. This worked as expected for a point layer. However, I have a few layers in tileindexes that I created using the ogrtindex utility. These features draw fine, but trying to label them causes MapServer to go into some kind of unresponsive state. Here is a snippet from my .map file to show how I tried to do this: # major roads LAYER NAME "Roads_Labels" CONNECTIONTYPE OGR TILEINDEX "roadbase/roads.tab" STATUS OFF TYPE ANNOTATION PROJECTION "init=epsg:4267" END LABELITEM "hwyname" CLASS LABEL TYPE TRUETYPE FONT arial SIZE 6 COLOR 255 0 0 OUTLINECOLOR 255 255 255 ANTIALIAS TRUE ANGLE auto FORCE true POSITION auto OFFSET 0 0 END END END LAYER NAME "Roads" CONNECTIONTYPE OGR TILEINDEX "roadbase/roads.tab" STATUS OFF TYPE LINE PROJECTION "init=epsg:4267" END CLASS COLOR 255 0 0 SIZE 2 END END Is this not possible to do, or is there a workaround or alternative method? TIA! David S. Hunter Sr. Software Engineer Fidelity National Geographic Solutions division of Fidelity National Financial 5353 Gamble Drive, Suite 201 St. Louis Park, MN 55416 * Email: david.hunter at fnf.com ' Phone: 952.542.1440 ext. 256 * Fax: 952.542.3859 -------------- next part -------------- An HTML attachment was scrubbed... URL: From fwarmerdam at GMAIL.COM Wed Jul 6 14:07:33 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 6 Jul 2005 17:07:33 -0400 Subject: Connect to ESRI Personal Geodatabase In-Reply-To: <55dd01fa0507060948537461c3@mail.gmail.com> Message-ID: On 7/6/05, Ken Lord wrote: > Thanks for the responses, > > Frank, are you saying that right now mapserver can read spatial data from a > personal geodatabase using an ODBC connection (and if so, are there any > exampes available)? Or would some amount of work needed to add the > functionality? Ken, The OGR ODBC driver does not support binary columns, such as are used for the geometry in the personal geodatabase. Also, there is no "VRT" rule for translating this format into useful spatial information. So currently the only approach to reading personal databases "directly" in MapServer is via the OGR FMEObjects link which I think has some performance issues, and is a bit hard to setup. I have forwarded you a proposal and quote to implement support "direct" access to personal geodatabases over ODBC. If anyone else is interested in seeing the proposal, let me know. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From David.Hunter at FNF.COM Wed Jul 6 14:53:32 2005 From: David.Hunter at FNF.COM (Hunter, David - St. Louis Park, MN) Date: Wed, 6 Jul 2005 16:53:32 -0500 Subject: No labels with tileindex layer Message-ID: My apologies to all, I was not patient enough for the results to show up in the browser. It was working after all, but was incredibly slow. I set FORCE to "true" in the labels layer, and it improved quite a bit. _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Hunter, David - St. Louis Park, MN Sent: Wednesday, July 06, 2005 3:27 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] No labels with tileindex layer I am putting together a demo app using DHTML, MapServer 4.4.1 CGI, Tomcat 5 and Win2000. I am using MapInfo .tab files for vector data, accessing via OGR. I would like my app to enable users to turn layers and labels on/off. I have the layers working, and started on the labels when I ran into a problem. I made two separate layers per layer type, one for the features and one for the labels, so that they could be turned on/off independently. This worked as expected for a point layer. However, I have a few layers in tileindexes that I created using the ogrtindex utility. These features draw fine, but trying to label them causes MapServer to go into some kind of unresponsive state. Here is a snippet from my .map file to show how I tried to do this: # major roads LAYER NAME "Roads_Labels" CONNECTIONTYPE OGR TILEINDEX "roadbase/roads.tab" STATUS OFF TYPE ANNOTATION PROJECTION "init=epsg:4267" END LABELITEM "hwyname" CLASS LABEL TYPE TRUETYPE FONT arial SIZE 6 COLOR 255 0 0 OUTLINECOLOR 255 255 255 ANTIALIAS TRUE ANGLE auto FORCE true POSITION auto OFFSET 0 0 END END END LAYER NAME "Roads" CONNECTIONTYPE OGR TILEINDEX "roadbase/roads.tab" STATUS OFF TYPE LINE PROJECTION "init=epsg:4267" END CLASS COLOR 255 0 0 SIZE 2 END END Is this not possible to do, or is there a workaround or alternative method? TIA! David S. Hunter Sr. Software Engineer Fidelity National Geographic Solutions division of Fidelity National Financial 5353 Gamble Drive, Suite 201 St. Louis Park, MN 55416 * Email: david.hunter at fnf.com ' Phone: 952.542.1440 ext. 256 * Fax: 952.542.3859 -------------- next part -------------- An HTML attachment was scrubbed... URL: From kenlord at GMAIL.COM Wed Jul 6 14:56:52 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Wed, 6 Jul 2005 14:56:52 -0700 Subject: Connect to ESRI Personal Geodatabase In-Reply-To: <931f8ea9050706140772504eed@mail.gmail.com> Message-ID: Thanks Frank, We are reviewing the quote now, quite a reasonable quote too I might add, both in cost and scope. If there are any fly's on the wall here who would be interested in contributing financially to this effort, please do join us in the conversation :-) Cheers, Ken Lord Vancouver BC On 7/6/05, Frank Warmerdam wrote: > > On 7/6/05, Ken Lord wrote: > > Thanks for the responses, > > > > Frank, are you saying that right now mapserver can read spatial data > from a > > personal geodatabase using an ODBC connection (and if so, are there any > > exampes available)? Or would some amount of work needed to add the > > functionality? > > Ken, > > The OGR ODBC driver does not support binary columns, such as > are used for the geometry in the personal geodatabase. Also, there > is no "VRT" rule for translating this format into useful spatial > information. > So currently the only approach to reading personal databases "directly" > in MapServer is via the OGR FMEObjects link which I think has some > performance issues, and is a bit hard to setup. > > I have forwarded you a proposal and quote to implement support > "direct" access to personal geodatabases over ODBC. If anyone > else is interested in seeing the proposal, let me know. > > Best regards, > -- > > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeff2005 at SVS.GSFC.NASA.GOV Wed Jul 6 15:30:18 2005 From: jeff2005 at SVS.GSFC.NASA.GOV (Jeff de La Beaujardiere) Date: Wed, 6 Jul 2005 18:30:18 -0400 Subject: using Mapserver for on-the-fly raster data? In-Reply-To: <931f8ea9050706113016c71955@mail.gmail.com> Message-ID: Frank Warmerdam wrote: > As of 4.6 (actually it might have been in 4.4 too), MapServer supports > the ability to apply classification to non-8bit raster data. OK, I have this mostly working in test mode with just a few colors. However, there remains a problem that I have not yet solved and may be an SRS/EPSG/WMS issue. The raw binary input file has data from 0 to 360 longitude, rather than -180 to 180. If my GetMap request has BBOX=-180,-90,180,90 I only get data in the East half of the image while the West half is blank. Some component apparently does not understand that longitude wraps around. I can get a complete image if BBOX=0,-90,360,90, but I do need to be able to use negative values for longitude. Am I missing something, or is there a workaround for this problem? Relevant snippets of my mapfile and VRT file are appended. -Jeff DLB -------------- LAYER NAME "vrt" TYPE RASTER STATUS on PROJECTION "init=epsg:4326" END DATA "/home/delabeau/wms/test/precp.vrt" PROCESSING "SCALE=0,2" PROCESSING "SCALE_BUCKETS=4" CLASSITEM "[pixel]" CLASS EXPRESSION ([pixel] < 0.5) COLOR 206 29 0 END CLASS EXPRESSION ([pixel] >= 0.5 AND [pixel] < 1.0) COLOR 225 115 0 END CLASS EXPRESSION ([pixel] >= 1.0 AND [pixel] < 1.5) COLOR 237 170 0 END CLASS EXPRESSION ([pixel] >= 1.5) COLOR 255 255 0 END METADATA "wms_title" "Test VRT with GEOS4" "wms_layer_group" "/TestLayers" "wms_extent" "0 -90 360 90" END END -------------- EPSG:4326 0, 0.36, 0, 90, 0, -0.25 /path/file 602756000 4 4000 MSB Palette From fwarmerdam at GMAIL.COM Wed Jul 6 15:45:17 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 6 Jul 2005 18:45:17 -0400 Subject: using Mapserver for on-the-fly raster data? In-Reply-To: <42CC5B7A.9030101@svs.gsfc.nasa.gov> Message-ID: On 7/6/05, Jeff de La Beaujardiere wrote: > Frank Warmerdam wrote: > > As of 4.6 (actually it might have been in 4.4 too), MapServer supports > > the ability to apply classification to non-8bit raster data. > > OK, I have this mostly working in test mode with just a few colors. > However, there remains a problem that I have not yet solved and may be > an SRS/EPSG/WMS issue. The raw binary input file has data from 0 to 360 > longitude, rather than -180 to 180. If my GetMap request has > BBOX=-180,-90,180,90 I only get data in the East half of the image while > the West half is blank. Some component apparently does not understand > that longitude wraps around. I can get a complete image if > BBOX=0,-90,360,90, but I do need to be able to use negative values for > longitude. > > Am I missing something, or is there a workaround for this problem? > Relevant snippets of my mapfile and VRT file are appended. Jeff, Sigh. I hate world mapping. MapServer has no built-in understanding about geographic coordinate systems wrapping. There are various workarounds, mostly involving treating the image as two seperate images (one for the eastern hemisphere and one for the western) but they are all likely to be pretty clumsy in your context. Let me know if you really want to pursue such an option. I think the "simpliest" would be to have two VRT files for each target image, using the above method, and then another VRT file that mosaics them (using the SimpleSource method instead of raw bands). The right solution is for MapServer to be more savvy about world mapping issues. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From nate at SEASTAR.JPL.NASA.GOV Wed Jul 6 15:50:36 2005 From: nate at SEASTAR.JPL.NASA.GOV (Nate Reed) Date: Wed, 6 Jul 2005 15:50:36 -0700 Subject: turn off warning messages? Message-ID: Any way to turn this annoying message off? Warning: [MapServer Error]: msQueryByRect(): No matching record(s) found. -- Nate Reed Physical Oceanography DAAC Jet Propulsion Lab / Raytheon ITSS (626)744-5528 nate at seastar.jpl.nasa.gov From mike.and.kerry at GMAIL.COM Wed Jul 6 16:31:44 2005 From: mike.and.kerry at GMAIL.COM (Mike Davis) Date: Wed, 6 Jul 2005 15:31:44 -0800 Subject: Connect to ESRI Personal Geodatabase In-Reply-To: <55dd01fa050706145622a53233@mail.gmail.com> Message-ID: Funding things where I work is like pulling teeth, but I will inquire with the "powers that be" to see if it is possible, this is a feature we would really like to have (especially if the performace is close to that of shapefiles). If someone can get me a ballpark figure I will have a better idea of how to approach this. -Mike On 7/6/05, Ken Lord wrote: > Thanks Frank, > > We are reviewing the quote now, quite a reasonable quote too I might add, > both in cost and scope. > > If there are any fly's on the wall here who would be interested in > contributing financially to this effort, please do join us in the > conversation :-) > > Cheers, > Ken Lord > Vancouver BC > > > On 7/6/05, Frank Warmerdam wrote: > > On 7/6/05, Ken Lord wrote: > > > Thanks for the responses, > > > > > > Frank, are you saying that right now mapserver can read spatial data > from a > > > personal geodatabase using an ODBC connection (and if so, are there any > > > exampes available)? Or would some amount of work needed to add the > > > functionality? > > > > Ken, > > > > The OGR ODBC driver does not support binary columns, such as > > are used for the geometry in the personal geodatabase. Also, there > > is no "VRT" rule for translating this format into useful spatial > information. > > So currently the only approach to reading personal databases "directly" > > in MapServer is via the OGR FMEObjects link which I think has some > > performance issues, and is a bit hard to setup. > > > > I have forwarded you a proposal and quote to implement support > > "direct" access to personal geodatabases over ODBC. If anyone > > else is interested in seeing the proposal, let me know. > > > > Best regards, > > -- > > > ---------------------------------------+-------------------------------------- > > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > > light and sound - activate the windows | http://pobox.com/~warmerdam > > and watch the world go round - Rush | Geospatial Programmer for Rent > > > > From fwarmerdam at GMAIL.COM Wed Jul 6 16:50:58 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 6 Jul 2005 19:50:58 -0400 Subject: Connect to ESRI Personal Geodatabase In-Reply-To: <931f8ea9050706164435d36213@mail.gmail.com> Message-ID: On 7/6/05, Frank Warmerdam wrote: > On 7/6/05, Mike Davis wrote: > > Funding things where I work is like pulling teeth, but I will inquire > > with the "powers that be" to see if it is possible, this is a feature > > we would really like to have (especially if the performace is close to > > that of shapefiles). Mike, There are two main issues affecting performance. 1) Spatial indexing. Personal geodatabase does have a spatial index table associated with spatial tables. If we can properly utilize this we ought to be able to grab small spatial regions out of big tables effeciently. If not, it will be as corresponding slow as a shapefile would be without a spatial index. I'm not really confident I can utilize the spatial index yet though. I looked at a sample file Howard provided, and the index table just had 0's and -1's in the spatial index table. I don't know if I was using too old a version of MS Access to look at it, or if it wasn't built or what. 2) ODBC and OGR translation overhead. Both of these layers add significant performance drag. I can't give any real guarantees for performance, but if we can get spatial indexing working it shouldn't be too much worse than direct shapefiles. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From mike.and.kerry at GMAIL.COM Wed Jul 6 17:06:53 2005 From: mike.and.kerry at GMAIL.COM (Mike Davis) Date: Wed, 6 Jul 2005 16:06:53 -0800 Subject: Connect to ESRI Personal Geodatabase In-Reply-To: <931f8ea90507061650189dfeb@mail.gmail.com> Message-ID: Thats pretty much what I was expecting. To be honest, I have been using a lot of shapefiles that aren't indexed so I am not one to harp on performance. I was mainly concerned about the overhead ODBC might cause. I've never used ODBC in a high performance application (something other than a basic PHP driven web site) so I am not really familiar with how it responds under load. If someone can foreward me a copy of the proposal I will see if I can find any funding. On 7/6/05, Frank Warmerdam wrote: > On 7/6/05, Frank Warmerdam wrote: > > On 7/6/05, Mike Davis wrote: > > > Funding things where I work is like pulling teeth, but I will inquire > > > with the "powers that be" to see if it is possible, this is a feature > > > we would really like to have (especially if the performace is close to > > > that of shapefiles). > > Mike, > > There are two main issues affecting performance. > > 1) Spatial indexing. Personal geodatabase does have a spatial > index table associated with spatial tables. If we can properly utilize > this we ought to be able to grab small spatial regions out of big tables > effeciently. If not, it will be as corresponding slow as a shapefile would > be without a spatial index. I'm not really confident I can utilize the > spatial index yet though. I looked at a sample file Howard provided, > and the index table just had 0's and -1's in the spatial index table. > I don't know if I was using too old a version of MS Access to look at it, > or if it wasn't built or what. > > 2) ODBC and OGR translation overhead. Both of these layers add > significant performance drag. > > I can't give any real guarantees for performance, but if we can get > spatial indexing working it shouldn't be too much worse than direct > shapefiles. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > From kenlord at GMAIL.COM Wed Jul 6 17:17:20 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Wed, 6 Jul 2005 17:17:20 -0700 Subject: Connect to ESRI Personal Geodatabase In-Reply-To: <931f8ea90507061650189dfeb@mail.gmail.com> Message-ID: Nice to see this topic is gaining interest! Mike, Craig, Alex, I'll forward Frank's quote to you plus some questions/answers that have gone back and forth between us. Perhaps there's some important issues or features I missed that you guys could toss into this. Over here, (BGC Engineering Inc in Vancouver BC), we'd love to see this project go ahead with a couple partners to share the cost. I'll be out of the office (camping in the Okanagen!) between July 8th and July 20th. During that time if anyone needs to contact me regarding this endevour, please contact Gerry James ( gjames AT bgcengineering.ca). Cheers, Ken Lord Vancouver BC On 7/6/05, Frank Warmerdam wrote: > > On 7/6/05, Frank Warmerdam wrote: > > On 7/6/05, Mike Davis wrote: > > > Funding things where I work is like pulling teeth, but I will inquire > > > with the "powers that be" to see if it is possible, this is a feature > > > we would really like to have (especially if the performace is close to > > > that of shapefiles). > > Mike, > > There are two main issues affecting performance. > > 1) Spatial indexing. Personal geodatabase does have a spatial > index table associated with spatial tables. If we can properly utilize > this we ought to be able to grab small spatial regions out of big tables > effeciently. If not, it will be as corresponding slow as a shapefile would > > be without a spatial index. I'm not really confident I can utilize the > spatial index yet though. I looked at a sample file Howard provided, > and the index table just had 0's and -1's in the spatial index table. > I don't know if I was using too old a version of MS Access to look at it, > or if it wasn't built or what. > > 2) ODBC and OGR translation overhead. Both of these layers add > significant performance drag. > > I can't give any real guarantees for performance, but if we can get > spatial indexing working it shouldn't be too much worse than direct > shapefiles. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at DNR.STATE.MN.US Wed Jul 6 18:18:55 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 6 Jul 2005 20:18:55 -0500 Subject: turn off warning messages? Message-ID: Use the ERROR or EMPTY parameters for the WEB object to direct users to something a bit less annoying. Steve >>> Nate Reed 07/06/05 5:50 PM >>> Any way to turn this annoying message off? Warning: [MapServer Error]: msQueryByRect(): No matching record(s) found. -- Nate Reed Physical Oceanography DAAC Jet Propulsion Lab / Raytheon ITSS (626)744-5528 nate at seastar.jpl.nasa.gov From steve.lime at DNR.STATE.MN.US Wed Jul 6 18:22:27 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 6 Jul 2005 20:22:27 -0500 Subject: GML MultiLineString - missing space Message-ID: Thanks will add to 4.7 and 4.6 source trees shortly... Steve >>> Fran?ois Prunayre 07/06/05 5:31 AM >>> Hi list, I have no space between coordinates in gml:MultiLineString geometry. Like ... 1.573795,48.756269-1.573767,48.756279-1.573621,48.756415-1.573190,48.757014- 1.572663,48.758156-1.572388,48.759020-1.572269,48.760149-1.571406,48.763876- 1.571331,48.764688-1.571195,48.765413-1.570923,48.767222-1.570576,48.768943- 1.570443,48.768992-1.570467,48.769126-1.570198,48.771880-1.570333,48.775304- 1.570319,48.776924-1.570258,48.777736-1.570149,48.778100-1.570132,48.778775- 1.569944,48.779906 It should be ... -1.573795,48.756269 -1.573767,48.756279 -1.573621,48.756415 -1.573190,48.757014 -1.572663,48.758156 -1.572388,48.759020 -1.572269,48.760149 -1.571406,48.763876 -1.571331,48.764688 -1.571195,48.765413 -1.570923,48.767222 -1.570576,48.768943 -1.570443,48.768992 -1.570467,48.769126 -1.570198,48.771880 -1.570333,48.775304 -1.570319,48.776924 -1.570258,48.777736 -1.570149,48.778100 -1.570132,48.778775 -1.569944,48.779906 In 4.6.0, file mapgml.c, line 310 : "%f,%f" should be replace by "%f,%f " msIO_fprintf(stream, "%s ", tab); for(i=0; iline[j].numpoints; i++) msIO_fprintf(stream, "%f,%f ", shape->line[j].point[i].x, shape->line[j].point[i].y); msIO_fprintf(stream, "\n"); Works for me. Francois -- Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve. Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et prives. Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee. Any data and information contained in this electronic mail is personal, confidential and secret. Any total or partial publication, use or distribution must be authorized. From numerous at GMAIL.COM Wed Jul 6 20:08:59 2005 From: numerous at GMAIL.COM (Yar Doroshenko) Date: Wed, 6 Jul 2005 22:08:59 -0500 Subject: Need help with TIF TILE SIZE Message-ID: Hi Guys, Would anyone be able to answer this one, I'm posting it second time: My tileindex works fine, I have 51 tig images, I define my layer as the folowing: layer name "aerial" tileindex mrsid/img_index type raster status default end My tif images display just fine, the top left corner seems to be positioned correctly. The problem is that at a certain zoom level, there are spaces between my tiles and I would like them to overlap. I know that my tifs are fine, when I open them in a viewer I can zoom in deep. Is there any way to make tifs larger, or make them overlap at a certain zoom level? Also, here is what I used before I implemented gdaltindex: I used mrsiddecode to convert my MrSID images to Tif mrsiddecode -i input.sid -o output.tif -s 2 This way I got my tif to be around 100Mb instead of 2Gb with gdal_translate next I did gdalwarp to convert my coordinates C:\ITS\GDAL\125\bin>gdalwarp -s_srs "+proj=utm +zone=15 +datum=NAD83" - t_srs "+p roj=latlong +datum=WGS84" 10_1_1.tif latlong.tif :0...10...20...30...40...50...60...70...80...90...100 - done. Could anyone see a potential explanation to my tile problem? Thank you, Yar From pimpoumvlan at HOTMAIL.COM Wed Jul 6 23:51:55 2005 From: pimpoumvlan at HOTMAIL.COM (Selim Hernandez) Date: Thu, 7 Jul 2005 01:51:55 -0500 Subject: Empty map with MapInfo files (Mif/Mid) and OGR Message-ID: Hello, I found the answer by myself Well the problem was not about the Mapinfo files but, as alleged in an other message of this list, about the EXTENT and PROJECTION parameters in the .map file that were wrong. thanks From pimpoumvlan at HOTMAIL.COM Wed Jul 6 23:59:47 2005 From: pimpoumvlan at HOTMAIL.COM (Selim Hernandez) Date: Thu, 7 Jul 2005 01:59:47 -0500 Subject: Projection LAMBERT III (South of France) parameters Message-ID: Hello, I can't find the right PROJECTION object's parameters in my .map file for coords in LAMBERT III (used for the South of France). Though, when I translate these coords into the WGS 84 system (epsg:4326), it works fine. Maybe the coords in the epsg file are wrong. I used the following parameters and none of them worked : "proj=lcc" "lat_1=44.10000000000001" "lat_0=44.10000000000001" "lon_0=2.33722917" "k_0=0.999877499" "x_0=600000" "y_0=200000" "a=6378249.2" "b=635651" "pm=paris" "units=m" "proj=lcc" "lat_1=44.10000000000001" "lat_0=44.10000000000001" "lon_0=2.33722917" "k_0=0.999877499" "x_0=600000" "y_0=3200000" "a=6378249.2" "b=6356515" "pm=paris" "units=m" "proj=lcc" "lat_1=44.10000000000001" "lat_0=44.10000000000001" "lon_0=2.33722917" "k_0=0.999877499" "x_0=600000" "y_0=3200000" "a=6378249.2" "b=6356515" "pm=paris" "units=m" "proj=lcc" "lat_1=44.10000000000001" "lat_0=44.10000000000001" "lon_0=2.33722917" "k_0=0.999877499" "x_0=600000" "y_0=200000" "a=6378249.2" "b=6356515" "pm=paris" "units=m" "init=epsg:27563" "init=epsg:27573" "init=epsg:27583" "init=epsg:27593" Did anyone ever run an project that worked with LAMBERT III coords ? thanks regards From mapserver at HOTMAIL.COM Thu Jul 7 00:35:38 2005 From: mapserver at HOTMAIL.COM (SUBSCRIBE MAPSERVER-USERS Nuri) Date: Thu, 7 Jul 2005 02:35:38 -0500 Subject: gps coordinates Message-ID: HI, I'm new in the mapserver world. I created my own map, in Windows, that it runs perfectly. Now I need to insert several symbols over the map in the exact place given by a database that contains gps coordinates. Someone could explain how can I do it? How can I obtain the exact point in the map? My current .map is: MAP IMAGETYPE PNG EXTENT 0.000000 -205.000000 300.000000 0.000000 SIZE 600 410 SHAPEPATH "data" IMAGECOLOR 255 180 0 FONTSET "fonts/fonts.list" #PROJECTION # "proj=laea" # "ellps=clrk66" # "lat_0=45" # "lon_0=-100" # # Alternatively, you can specify an EPSG code. # "init=epsg:2163" # #END # Start of LAYER DEFINITIONS -------------------------------------------- - LAYER # Capa de raster NAME mapafig DATA "raster/figueres.tif" STATUS DEFAULT TYPE RASTER PROCESSING "BANDS=1" #OFFSITE 71 74 65 #Color que ha de ser transparent #PROJECTION # "init=epsg:4326" #END END # Fi capa de raster LAYER NAME simbols GROUP grup STATUS DEFAULT DATA mapa TYPE ANNOTATION LABELITEM "SIMB" CLASSITEM "C" CLASS EXPRESSION "2" STYLE COLOR 0 0 0 # dummy color SYMBOL 'symbols/prova.gif' END LABEL MINFEATURESIZE 20 MINDISTANCE 50 POSITION CC SIZE TINY COLOR 255 255 255 END END PROJECTION "init=epsg:4326" END END # End of LAYER DEFINITIONS ------------------------------- END # end of map file From joukje.de.haan at ARIS.NL Thu Jul 7 03:15:58 2005 From: joukje.de.haan at ARIS.NL (Joukje) Date: Thu, 7 Jul 2005 05:15:58 -0500 Subject: ms_newShapefileObj gives error in mapserver 4.4.2 Message-ID: Hi list, I have a problem with opening a shapefile in php/mapscript since we started using mapserver 4.4.2. (php 4.1.2) instead of 4.0.1 (php 4.3.11). The following line of php now returns an error: $objShapefile = ms_newShapefileObj("gspplan/bespreek", -2); --> Warning: [MapServer Error]: msSHPOpenFile(): (gspplan/bespreek) in /project/gspvg/wwwontw/page/object_attributes_edit.phtml on line 80 Fatal error: Failed to open shapefile gspplan/bespreek in /project/gspvg/wwwontw/page/object_attributes_edit.phtml on line 80 -- I also tried opening the shapefile with the full pathname, but the same error occurred. Does anyone have an idea what the causes this problem? Thanks! Joukje From d.stockhaus at SRHH.DE Thu Jul 7 03:41:39 2005 From: d.stockhaus at SRHH.DE (Detlef Stockhaus) Date: Thu, 7 Jul 2005 05:41:39 -0500 Subject: Problems with featureinforequest with SDE Message-ID: Hello, I'm testing mapserver as WMS Server and want to build a map Application with connect to an SDE on Oracle 9. The Connection works fine, but if I try to query a layer, i get an Error: msSDELayerwhichShapes(): SE_shape_generate_rectangle(): the number of points is less than required for feature (-148). I try the query with Mapbender, but with a simple HTML Client without WMS, the same Error occurs. Webserver is Apache 1.3.33, PHP4.3.11 installed as modul. I'm using the kitchen sink Mapserver Win32 Binary, which is compiled against sde 9 Client libraries. They are on my Test PC, but the Version of SDE on the Oracleserver is 8.2. Maybe this is the Problem?? Has anyone a suggestion? Thanks Detlef From BEN at SYNCERA-ITSOLUTIONS.NL Thu Jul 7 05:03:30 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Thu, 7 Jul 2005 14:03:30 +0200 Subject: WFS wildcard use (PropertyIsLike) Message-ID: Hi list, I am experiencing the following, if I search Mapserver WFS with a PropertyIsLike and use 5* for a value, I also get back 75, which I do not expect to get back. I remember a post by Tom Kralidis with a similar content. Did this ever get fixed? Is there a bug report already? I am using Mapserver 4.6. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl From markadams at CUESTASYS.COM Thu Jul 7 06:06:38 2005 From: markadams at CUESTASYS.COM (Mark Adams) Date: Thu, 7 Jul 2005 08:06:38 -0500 Subject: Connect to ESRI Personal Geodatabase Message-ID: Ken et al, My company, Cuesta Systems, is also interested. Again, if someone can forward the quote to me at mark.adams at dpra.com, we'll take a look at it. The numbers will be all - if it's a reasonable cost and we can share it several ways we'd likely be in. Thanks. - Mark Adams Project Manager Cuesta Systems (a DPRA company) mark.adams at dpra.com markadams at cuestasys.com On Wed, 6 Jul 2005 17:17:20 -0700, Ken Lord wrote: >Nice to see this topic is gaining interest! > Mike, Craig, Alex, I'll forward Frank's quote to you plus some >questions/answers that have gone back and forth between us. Perhaps there's >some important issues or features I missed that you guys could toss into >this. > Over here, (BGC Engineering Inc in Vancouver BC), we'd love to see this >project go ahead with a couple partners to share the cost. > I'll be out of the office (camping in the Okanagen!) between July 8th and >July 20th. During that time if anyone needs to contact me regarding this >endevour, please contact Gerry James ( gjames AT >bgcengineering.ca). > Cheers, >Ken Lord >Vancouver BC > > > On 7/6/05, Frank Warmerdam wrote: >> >> On 7/6/05, Frank Warmerdam wrote: >> > On 7/6/05, Mike Davis wrote: >> > > Funding things where I work is like pulling teeth, but I will inquire >> > > with the "powers that be" to see if it is possible, this is a feature >> > > we would really like to have (especially if the performace is close to >> > > that of shapefiles). >> >> Mike, >> >> There are two main issues affecting performance. >> >> 1) Spatial indexing. Personal geodatabase does have a spatial >> index table associated with spatial tables. If we can properly utilize >> this we ought to be able to grab small spatial regions out of big tables >> effeciently. If not, it will be as corresponding slow as a shapefile would >> >> be without a spatial index. I'm not really confident I can utilize the >> spatial index yet though. I looked at a sample file Howard provided, >> and the index table just had 0's and -1's in the spatial index table. >> I don't know if I was using too old a version of MS Access to look at it, >> or if it wasn't built or what. >> >> 2) ODBC and OGR translation overhead. Both of these layers add >> significant performance drag. >> >> I can't give any real guarantees for performance, but if we can get >> spatial indexing working it shouldn't be too much worse than direct >> shapefiles. >> >> Best regards, >> -- >> ---------------------------------------+--------------------------------- ----- >> >> I set the clouds in motion - turn up | Frank Warmerdam, >> warmerdam at pobox.com >> light and sound - activate the windows | http://pobox.com/~warmerdam >> and watch the world go round - Rush | Geospatial Programmer for Rent >> > From fwarmerdam at GMAIL.COM Thu Jul 7 06:46:13 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 7 Jul 2005 09:46:13 -0400 Subject: Projection LAMBERT III (South of France) parameters In-Reply-To: Message-ID: On 7/7/05, Selim Hernandez wrote: > Hello, > > I can't find the right PROJECTION object's parameters in my .map file for > coords in LAMBERT III (used for the South of France). > > Though, when I translate these coords into the WGS 84 system (epsg:4326), > it works fine. > > Maybe the coords in the epsg file are wrong. > > I used the following parameters and none of them worked : > > "proj=lcc" > "lat_1=44.10000000000001" > "lat_0=44.10000000000001" > "lon_0=2.33722917" > "k_0=0.999877499" > "x_0=600000" > "y_0=200000" > "a=6378249.2" > "b=635651" > "pm=paris" > "units=m" Selim, There is an issue with the automated conversion from EPSG into PROJ.4 syntax for coordinate system using gradians for angular values. I think the angular->degree translation is happening twice. Could you try using lat_0=49 and lat_1=49? Alternatively, it might be that the prime meridian is being improperly applied. If so, try setting lon_0=0. I do appologise for this botching of some complex coordinate systems. I have had some open bug reports on it for some time, but haven't gotten back to deal with it properly. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From fwarmerdam at GMAIL.COM Thu Jul 7 06:53:44 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 7 Jul 2005 09:53:44 -0400 Subject: Need help with TIF TILE SIZE In-Reply-To: Message-ID: On 7/6/05, Yar Doroshenko wrote: > Hi Guys, > > Would anyone be able to answer this one, I'm posting it second time: ... > My tif images display just fine, the top left corner seems to be positioned > correctly. The problem is that at a certain zoom level, there are spaces > between my tiles and I would like them to overlap. I know that my tifs are > fine, when I open them in a viewer I can zoom in deep. Is there any way to > make tifs larger, or make them overlap at a certain zoom level? Yar, The most obvious reason why gaps might appear at some resolutions is that you might not have the rasters properly abutting. If they are a fraction of a pixel apart, the gap will appear at some resolutions. If this is the issue, then the solution would be to fix up the georeferencing to ensure exact abuttment, or even slight overlap whether it represents the real data or not. However, it is hard for me to know if this is the issue, or if it is some sort of rounding problem in mapserver, without a concrete example case. I would suggest you create a tileindex with just two images (in an ideal world two smallish images) and find an exact mapserv request that demonstrates the gap problem. The submit a bug pointing to a downloadable package with the mapfile, tileindex and data files so I can reproduce your problem quickly. Then I could determine if the error is the data, mapserver or whatever. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From jlacroix at DMSOLUTIONS.CA Thu Jul 7 06:55:06 2005 From: jlacroix at DMSOLUTIONS.CA (Julien-Samuel Lacroix) Date: Thu, 7 Jul 2005 09:55:06 -0400 Subject: ms_newShapefileObj gives error in mapserver 4.4.2 In-Reply-To: Message-ID: Hi, This error message can be output if MapServer is not able to open gspplan/bespreek.shp or gspplan/bespreek.dbf. From there you have 3 things to check: Does the shapefile exist? Does this shapefile have a DBF associated with it? Is the files are readable by the web user? Julien On 07/07/2005 06:15 AM, Joukje wrote: > Hi list, > > I have a problem with opening a shapefile in php/mapscript since we started > using mapserver 4.4.2. (php 4.1.2) instead of 4.0.1 (php 4.3.11). > > The following line of php now returns an error: > > $objShapefile = ms_newShapefileObj("gspplan/bespreek", -2); > > --> > Warning: [MapServer Error]: msSHPOpenFile(): (gspplan/bespreek) > in /project/gspvg/wwwontw/page/object_attributes_edit.phtml on line 80 > > Fatal error: Failed to open shapefile gspplan/bespreek > in /project/gspvg/wwwontw/page/object_attributes_edit.phtml on line 80 > -- > > I also tried opening the shapefile with the full pathname, but the same > error occurred. Does anyone have an idea what the causes this problem? > > Thanks! > > Joukje > -- ------------------------------------------------------------ Julien-Samuel Lacroix jlacroix at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From gabriel.cloutier at RNCAN.GC.CA Thu Jul 7 07:09:05 2005 From: gabriel.cloutier at RNCAN.GC.CA (Gabriel Cloutier) Date: Thu, 7 Jul 2005 09:09:05 -0500 Subject: ogr2ogr Message-ID: Hi list, I want to reproject my data with the utility ogr2ogr. ogr2ogr -update ETENDUE_D_EAU_2_250k_031P.shp -t_srs EPSG:42304 I want to reproject ETENDUE_D_EAU_2_250k_031P.shp in update mode (without creating a new file). What is the error in my command ? Thank you in advance! -Gab From bfraser at GEOANALYTIC.COM Thu Jul 7 07:21:28 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Thu, 7 Jul 2005 08:21:28 -0600 Subject: Need help with TIF TILE SIZE Message-ID: Yar, The effect you are seeing may be due to re-projecting the UTM tifs to geographic (latlong). This results in having a set of nodata (usually black) pixels around the perimeter of the new tif file. One solution is to use the mosaicking feature of gdalwarp to add in the surrounding UTM images it fill in the gaps. Brent Fraser ----- Original Message ----- From: "Yar Doroshenko" To: Sent: Wednesday, July 06, 2005 9:08 PM Subject: [UMN_MAPSERVER-USERS] Need help with TIF TILE SIZE > Hi Guys, > > Would anyone be able to answer this one, I'm posting it second time: > > My tileindex works fine, I have 51 tig images, I define my layer as the > folowing: > > layer > name "aerial" > tileindex mrsid/img_index > type raster > status default > end > > My tif images display just fine, the top left corner seems to be positioned > correctly. The problem is that at a certain zoom level, there are spaces > between my tiles and I would like them to overlap. I know that my tifs are > fine, when I open them in a viewer I can zoom in deep. Is there any way to > make tifs larger, or make them overlap at a certain zoom level? > > Also, here is what I used before I implemented gdaltindex: > > I used mrsiddecode to convert my MrSID images to Tif > > mrsiddecode -i input.sid -o output.tif -s 2 > > This way I got my tif to be around 100Mb instead of 2Gb with gdal_translate > > next I did gdalwarp to convert my coordinates > > C:\ITS\GDAL\125\bin>gdalwarp -s_srs "+proj=utm +zone=15 +datum=NAD83" - > t_srs "+p > roj=latlong +datum=WGS84" 10_1_1.tif latlong.tif > :0...10...20...30...40...50...60...70...80...90...100 - done. > > > Could anyone see a potential explanation to my tile problem? > > Thank you, > > > Yar From jeff2005 at SVS.GSFC.NASA.GOV Thu Jul 7 07:28:42 2005 From: jeff2005 at SVS.GSFC.NASA.GOV (Jeff de La Beaujardiere) Date: Thu, 7 Jul 2005 10:28:42 -0400 Subject: using Mapserver for on-the-fly raster data? In-Reply-To: <931f8ea905070615452d7b829b@mail.gmail.com> Message-ID: Frank Warmerdam wrote: > I think the "simpliest" would be to have two VRT files for each target > image, using the above method, and then another VRT file that > mosaics them (using the SimpleSource method instead of raw bands). It works!! Thanks for the suggestion. For the record, my 3 VRT files are reproduced below. Now, is there any way to combine this arrangement with Mapserver's partial(?) support for WMS Time, Elevation and other sample Dimensions? -Jeff DLB -------- precpE.vrt - "East" image for longitudes [0,360]: EPSG:4326 0, 0.36, 0, 90, 0, -0.25 /svs/projects/map05/mapdata/private/\data/GEOS4NCEP/e32_G4ncep/Y2005/M07/D05/CNTL_NWP.e32_G4ncep_rout_prs.20050\705.000000-20050710.000000 602756000 4 4000 MSB Palette -------- precpW.vrt - "West" image for longitudes [-360,0]: EPSG:4326 -360, 0.36, 0, 90, 0, -0.25 /path/rawbinaryfile 602756000 4 4000 MSB Palette -------- precp.vrt - Mosaic for longitudes [-360, 360] EPSG:4326 -360, 0.36, 0, 90, 0, -0.25 precpW.vrt 1 precpE.vrt 1 -------- From hrz at GEODATA.SOTON.AC.UK Thu Jul 7 07:39:28 2005 From: hrz at GEODATA.SOTON.AC.UK (Homme Zwaagstra) Date: Thu, 7 Jul 2005 15:39:28 +0100 Subject: Projection LAMBERT III (South of France) parameters In-Reply-To: <931f8ea905070706463c3a6160@mail.gmail.com> Message-ID: On Thu, Jul 07, 2005 at 09:46:13AM -0400, Frank Warmerdam wrote: > On 7/7/05, Selim Hernandez wrote: > > Hello, > > > > I can't find the right PROJECTION object's parameters in my .map file for > > coords in LAMBERT III (used for the South of France). > > > > Though, when I translate these coords into the WGS 84 system (epsg:4326), > > it works fine. > > > > Maybe the coords in the epsg file are wrong. > > > > I used the following parameters and none of them worked : > > > > "proj=lcc" > > "lat_1=44.10000000000001" > > "lat_0=44.10000000000001" > > "lon_0=2.33722917" > > "k_0=0.999877499" > > "x_0=600000" > > "y_0=200000" > > "a=6378249.2" > > "b=635651" > > "pm=paris" > > "units=m" > > Selim, > > There is an issue with the automated conversion from EPSG into > PROJ.4 syntax for coordinate system using gradians for angular > values. I think the angular->degree translation is happening twice. > > Could you try using lat_0=49 and lat_1=49? > > Alternatively, it might be that the prime meridian is being improperly > applied. If so, try setting lon_0=0. > > I do appologise for this botching of some complex coordinate systems. > I have had some open bug reports on it for some time, but haven't gotten > back to deal with it properly. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent The PROJ.4 syntax that we use for Lambert III is: +proj=lcc +lat_1=44 +lat_2=49 +lat_0=46.5 +lon_0=3 +x_0=700000 +y_0=6600000 +ellps=GRS80 +units=m +no_defs no_defs The parameters are the result of trawling through various literature. I don't profess to be an expert in projections, but this seems to transform data in Lambert III satisfactorily for use in our mapserver apps. For convenience we added it into the PROJ.4 epsg file with the id 102110. I hope this helps! Kind regards, Homme Zwaagstra. From fwarmerdam at GMAIL.COM Thu Jul 7 07:36:03 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 7 Jul 2005 10:36:03 -0400 Subject: ogr2ogr In-Reply-To: Message-ID: On 7/7/05, Gabriel Cloutier wrote: > Hi list, > I want to reproject my data with the utility ogr2ogr. > > ogr2ogr -update ETENDUE_D_EAU_2_250k_031P.shp -t_srs EPSG:42304 > > I want to reproject ETENDUE_D_EAU_2_250k_031P.shp in update mode (without > creating a new file). > > What is the error in my command ? Gab, Ogr2ogr always needs an input and an output file, and it does not support "in place" update. The -update flag indicates that the translation should occur into an existing datastore to be opened in update mode. Used to add a layer to an existing dataset for instance. You will need to translate to a new file. Sorry Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From fwarmerdam at GMAIL.COM Thu Jul 7 07:38:26 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 7 Jul 2005 10:38:26 -0400 Subject: using Mapserver for on-the-fly raster data? In-Reply-To: <42CD3C1A.9060203@svs.gsfc.nasa.gov> Message-ID: On 7/7/05, Jeff de La Beaujardiere wrote: > Frank Warmerdam wrote: > > I think the "simpliest" would be to have two VRT files for each target > > image, using the above method, and then another VRT file that > > mosaics them (using the SimpleSource method instead of raw bands). > > It works!! Thanks for the suggestion. For the record, my 3 VRT files > are reproduced below. > > Now, is there any way to combine this arrangement with Mapserver's > partial(?) support for WMS Time, Elevation and other sample Dimensions? Jeff, Steve is the authority on that. But my understanding is that works by populating a tileindex instead of having a separate layer for each timestamp. The tileindex has the usual footprint and filename, but you can add extra columns, like time, and select on them in WCS requests. I don't know to what extent this works via WMS or other mechanisms. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From artur.skalski at ACXIOM.COM Thu Jul 7 07:48:19 2005 From: artur.skalski at ACXIOM.COM (Artur Skalski) Date: Thu, 7 Jul 2005 09:48:19 -0500 Subject: mapserver php and cgi/module and security issues Message-ID: Hi All First I'd like to aks if any one of You has any idea why mapserver starts to act wierd when i try to use .htaccess files to block access to some folders which are in htodcs (I'm using mapserver 4.4 with php mascript 4.4 apache2) and second reading a doc about instaling php and phpmascript I've noticed a warning considering not to use php as a module of apache but rather as a cgi, but I've managed to run gmap demo based on phpmapscript and all seems to work properly, have I missed something? regards Artur From umberto.nicoletti at GMAIL.COM Thu Jul 7 07:54:03 2005 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Thu, 7 Jul 2005 16:54:03 +0200 Subject: mapserver php and cgi/module and security issues In-Reply-To: Message-ID: On 7/7/05, Artur Skalski wrote: > Hi All > > First I'd like to aks if any one of You has any idea why mapserver starts to > act wierd when i try to use .htaccess files to block access to some folders > which are in htodcs (I'm using mapserver 4.4 with php mascript 4.4 apache2) > > and second > > reading a doc about instaling php and phpmascript I've noticed a warning > considering not to use php as a module of apache but rather as a cgi, but > I've managed to run gmap demo based on phpmapscript and all seems to work > properly, have I missed something? > If you run php as a module you could face threading issues and you server could crash. Regards, Umberto > regards > > Artur > From joukje.de.haan at ARIS.NL Thu Jul 7 07:55:06 2005 From: joukje.de.haan at ARIS.NL (SUBSCRIBE MAPSERVER-USERS Joukje) Date: Thu, 7 Jul 2005 09:55:06 -0500 Subject: ms_newShapefileObj gives error in mapserver 4.4.2 Message-ID: Hi, Yes, the shapefile exists. Mapserver is able to draw the layer based on this shapefile. Also, extracting attribute values from the dbf with php/mapscript is no problem at all. The same code on another machine (with mapscript 4.0.1/php 4.3.11) can still open the exact same shapefile. Strange, isn't it? Maybe you have any further ideas? Joukje On Thu, 7 Jul 2005 09:55:06 -0400, Julien-Samuel Lacroix wrote: >Hi, >This error message can be output if MapServer is not able to open >gspplan/bespreek.shp or gspplan/bespreek.dbf. From there you have 3 >things to check: >Does the shapefile exist? >Does this shapefile have a DBF associated with it? >Is the files are readable by the web user? > >Julien > > >On 07/07/2005 06:15 AM, Joukje wrote: >> Hi list, >> >> I have a problem with opening a shapefile in php/mapscript since we started >> using mapserver 4.4.2. (php 4.1.2) instead of 4.0.1 (php 4.3.11). >> >> The following line of php now returns an error: >> >> $objShapefile = ms_newShapefileObj("gspplan/bespreek", -2); >> >> --> >> Warning: [MapServer Error]: msSHPOpenFile(): (gspplan/bespreek) >> in /project/gspvg/wwwontw/page/object_attributes_edit.phtml on line 80 >> >> Fatal error: Failed to open shapefile gspplan/bespreek >> in /project/gspvg/wwwontw/page/object_attributes_edit.phtml on line 80 >> -- >> >> I also tried opening the shapefile with the full pathname, but the same >> error occurred. Does anyone have an idea what the causes this problem? >> >> Thanks! >> >> Joukje >> > >-- >------------------------------------------------------------ >Julien-Samuel Lacroix jlacroix at dmsolutions.ca >DM Solutions Group http://www.dmsolutions.ca/ >------------------------------------------------------------ From flavio at TYDAC.CH Thu Jul 7 08:18:51 2005 From: flavio at TYDAC.CH (Flavio Hendry) Date: Thu, 7 Jul 2005 17:18:51 +0200 Subject: mapserver php and cgi/module and security issues In-Reply-To: <75b4b93e05070707547164d86a@mail.gmail.com> Message-ID: hi umberto > considering not to use php as a module of apache but rather as a > cgi, but I've managed to run gmap demo based on phpmapscript and > allseems to work properly, have I missed something? yes, try to access the app with multiple users ... you will not get the maps requested (means user x might get the map user y requested and vice versa ...). Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ ? ? ?Mit freundlichen Gruessen / Kind Regards ############? ? ? ? ? ? ?mailto:flavio at tydac.ch ############ ? ? ? ? TYDAC AG - http://www.tydac.ch #### ? ?#### ? ? ? ?Geographic Information Solutions #### ? ?#### ? ? ? ? Luternauweg 12 -- CH-3006 Bern ############ ? Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- -----Original Message----- From: Umberto Nicoletti To: MAPSERVER-USERS at lists.umn.edu Date: Thu, 7 Jul 2005 16:54:03 +0200 Subject: Re: [UMN_MAPSERVER-USERS] mapserver php and cgi/module and security issues > On 7/7/05, Artur Skalski wrote: > > Hi All > > > > First I'd like to aks if any one of You has any idea why mapserver > starts to > > act wierd when i try to use .htaccess files to block access to some > folders > > which are in htodcs (I'm using mapserver 4.4 with php mascript 4.4 > apache2) > > > > and second > > > > reading a doc about instaling php and phpmascript I've noticed a > warning > > > > If you run php as a module you could face threading issues and you > server could crash. > > Regards, > Umberto > > regards > > > > Artur > > From superbla3000 at GMX.NET Thu Jul 7 08:19:44 2005 From: superbla3000 at GMX.NET (joerg p) Date: Thu, 7 Jul 2005 17:19:44 +0200 Subject: reduce gps points Message-ID: hello, this might be a little bit off topic, but I am searching a (php) function, which reduces the amount of gps points in a gps track by a given accuracy. So a track with 1000 points becomes a track with 100 points. Is there a function or documentation somewhere? thanks Joerg From mike.and.kerry at GMAIL.COM Thu Jul 7 09:04:45 2005 From: mike.and.kerry at GMAIL.COM (Mike Davis) Date: Thu, 7 Jul 2005 08:04:45 -0800 Subject: Other spatial database development (PostGIS) Message-ID: Since we seem to be building some momentum on the ESRI personal geodatabase thing, it seems like a good time to bring up the other database related item on our wishlist. What would be required to allow read/write to a PostGIS database from ArcGIS? I would love the ability to maintain our spatial data in multiple datbase formats (must me my irrational fear of vendor lock-in), but unless we can manage the data from within ArcGIS it isn't really a practical option for us. -Mike From gabriel.cloutier at RNCAN.GC.CA Thu Jul 7 09:19:48 2005 From: gabriel.cloutier at RNCAN.GC.CA (Gabriel Cloutier) Date: Thu, 7 Jul 2005 11:19:48 -0500 Subject: ogr2ogr bug! Message-ID: Hi list, I use ogr2ogr for the reprojection of my shapefile. With this command: find -name "*.shp" -exec ogr2ogr -t_srs EPSG:42304 layer {} \; My root folder contain 465 shapefiles After the creation of 339 shapefiles in the folder layer I got this error message: Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. Failed to process SRS definition: EPSG:42304 I try to generate manually another shapefile with: ogr2ogr -t_srs EPSG:42304 layer AGGLOMERATION_0_250k_041H.shp I got this error: ERROR 4: Failed to open Shapefile `layer/AGGLOMERATION_0_250k_041H.shp'. ERROR 1: Terminating translation prematurely after failed translation of layer AGGLOMERATION_0_250k_041H But if I redirect the output in another folder with : ogr2ogr -t_srs EPSG:42304 layer222 AGGLOMERATION_0_250k_041H.shp The ShapeFile are created successfully... I delete one ShapeFile in the folder layer and do: ogr2ogr -t_srs EPSG:42304 layer AGGLOMERATION_0_250k_041H.shp The ShapeFile are created successfully... There is a limit of files created by this tool in a folder ? -Gab From kenlord at GMAIL.COM Thu Jul 7 10:22:57 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Thu, 7 Jul 2005 10:22:57 -0700 Subject: Other spatial database development (PostGIS) In-Reply-To: <631c85c105070709046d41d96c@mail.gmail.com> Message-ID: Hi Mike, This is a major interest to us, we would like to see a push for this as well, in fact I was just asked to contact Tyler Mitchell about pgArc when I return from my holidays. Tyler! are your ears burning? hehe pgArc can be found at SourceForge if you want to check it out. It has some functionality with ArcGIS 8, but I haven't had it work with ArcGIS 9. We are locked into personal geodatabases for some of our clients, development of a fully functional ArcGIS / PostGIS connection would give us a lot more flexibility too. Cheers, Ken Lord Vancouver BC On 7/7/05, Mike Davis wrote: > > Since we seem to be building some momentum on the ESRI personal > geodatabase thing, it seems like a good time to bring up the other > database related item on our wishlist. > > What would be required to allow read/write to a PostGIS database from > ArcGIS? I would love the ability to maintain our spatial data in > multiple datbase formats (must me my irrational fear of vendor > lock-in), but unless we can manage the data from within ArcGIS it > isn't really a practical option for us. > > -Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From kenlord at GMAIL.COM Thu Jul 7 11:14:45 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Thu, 7 Jul 2005 11:14:45 -0700 Subject: Connect to ESRI Personal Geodatabase In-Reply-To: <55dd01fa050706171712b005b9@mail.gmail.com> Message-ID: Sorry if this is a double post, Joel tried to post the following message to the list and it bounced for him, so i'm making sure the message is here for all to see. It seems ESRI may be throwing a wrench into our personal geodatabase plans .... (From Joel Schalgel) The latest issue of ArcNews reports that the MS Access geodatabase is being phased out at 9.2 and that a new "File Based Geodatabase" will be the preferred storage format. The file based geodatabase will be cross platform and have an open api. http://www.esri.com/news/arcnews/summer05articles/managing-spatial-data.html see the second to last paragraph .. joel ..... I'm not sure how this may affect our plans, or if we should delay and re-focus on developing support for MapServer to use the new format once it becomes available. I don't know what the release date of ArcGIS 9.2 is, we only just received our 9.1 subscription upgrade recently. What a pain! will this mean our clients will also have to upgrade to 9.2? Cheers, Ken Lord Vancouver BC On 7/6/05, Ken Lord wrote: > > Nice to see this topic is gaining interest! > Mike, Craig, Alex, I'll forward Frank's quote to you plus some > questions/answers that have gone back and forth between us. Perhaps there's > some important issues or features I missed that you guys could toss into > this. > Over here, (BGC Engineering Inc in Vancouver BC), we'd love to see this > project go ahead with a couple partners to share the cost. > I'll be out of the office (camping in the Okanagen!) between July 8th and > July 20th. During that time if anyone needs to contact me regarding this > endevour, please contact Gerry James ( gjames AT bgcengineering.ca). > Cheers, > Ken Lord > Vancouver BC > > > On 7/6/05, Frank Warmerdam wrote: > > > > On 7/6/05, Frank Warmerdam wrote: > > > On 7/6/05, Mike Davis wrote: > > > > Funding things where I work is like pulling teeth, but I will > > inquire > > > > with the "powers that be" to see if it is possible, this is a > > feature > > > > we would really like to have (especially if the performace is close > > to > > > > that of shapefiles). > > > > Mike, > > > > There are two main issues affecting performance. > > > > 1) Spatial indexing. Personal geodatabase does have a spatial > > index table associated with spatial tables. If we can properly utilize > > this we ought to be able to grab small spatial regions out of big tables > > effeciently. If not, it will be as corresponding slow as a shapefile > > would > > be without a spatial index. I'm not really confident I can utilize the > > spatial index yet though. I looked at a sample file Howard provided, > > and the index table just had 0's and -1's in the spatial index table. > > I don't know if I was using too old a version of MS Access to look at > > it, > > or if it wasn't built or what. > > > > 2) ODBC and OGR translation overhead. Both of these layers add > > significant performance drag. > > > > I can't give any real guarantees for performance, but if we can get > > spatial indexing working it shouldn't be too much worse than direct > > shapefiles. > > > > Best regards, > > -- > > ---------------------------------------+-------------------------------------- > > > > I set the clouds in motion - turn up | Frank Warmerdam, > > warmerdam at pobox.com > > light and sound - activate the windows | http://pobox.com/~warmerdam > > and watch the world go round - Rush | Geospatial Programmer for Rent > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pramsey at REFRACTIONS.NET Thu Jul 7 11:58:57 2005 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Thu, 7 Jul 2005 11:58:57 -0700 Subject: Other spatial database development (PostGIS) In-Reply-To: <55dd01fa0507071022510a0b9b@mail.gmail.com> Message-ID: Guys, I am happy to spec this out again, but frankly I fear that most solutions will remain in the "moderately ugly hack" domain, ala PgArc. I have investigated more elegant things (oledb) but the signs are not promising (http://arcgisdeveloperonline.esri.com/ ArcGISDeveloper/ExtendingArcObjects/Ch07/AboutOLEDBProviders.htm). Principally, the continuing lack of an Oracle Spatial third party read/write extension on the market says to me that such a thing is just technically not possible to do attractively. If it were, someone would have written it by now and be making money on it. If anyone knows of such a thing, please do tell, it would be a good positive sign of possible success. Paul On 7-Jul-05, at 10:22 AM, Ken Lord wrote: > Hi Mike, > > This is a major interest to us, we would like to see a push for > this as well, in fact I was just asked to contact Tyler Mitchell > about pgArc when I return from my holidays. Tyler! are your ears > burning? hehe > > pgArc can be found at SourceForge if you want to check it out. It > has some functionality with ArcGIS 8, but I haven't had it work > with ArcGIS 9. > > We are locked into personal geodatabases for some of our clients, > development of a fully functional ArcGIS / PostGIS connection would > give us a lot more flexibility too. > > Cheers, > Ken Lord > Vancouver BC > > > > > On 7/7/05, Mike Davis wrote: Since we > seem to be building some momentum on the ESRI personal > geodatabase thing, it seems like a good time to bring up the other > database related item on our wishlist. > > What would be required to allow read/write to a PostGIS database from > ArcGIS? I would love the ability to maintain our spatial data in > multiple datbase formats (must me my irrational fear of vendor > lock-in), but unless we can manage the data from within ArcGIS it > isn't really a practical option for us. > > -Mike From jayaustin at GMAIL.COM Thu Jul 7 12:00:43 2005 From: jayaustin at GMAIL.COM (Jay Austin) Date: Thu, 7 Jul 2005 14:00:43 -0500 Subject: .swf output, need help with ElementSelected Message-ID: Hi, I'm making a flash viewer to display .swf maps from mapserver. Currently I have one swf that loads the mapserver swf and then loads a second swf containing navigation tools. I've successfully made pan/zoom and reset map functions and now I'm working on a function to display Element's attributes in a text box. The problem I'm having is getting flash to recognize mouse rollovers or clicks on the maps elements. I found some articles that suggest using a function called ElementSelected but thus far I've been ubale to get it to respond on mouse events. Right now the Action Script(in the navigation tools .swf) looks like this... ElementSelected = function(level, element, action) { trace("test1"); if (action == 3) //rollover { trace("test2"); } } Neither of these traces fire. I can successfully trace the arrays containing the element info. From gomckenz at GEOSQL.COM Thu Jul 7 12:59:58 2005 From: gomckenz at GEOSQL.COM (Subscribe Mapserver-Users Gom) Date: Thu, 7 Jul 2005 14:59:58 -0500 Subject: Maperver and IIS question Message-ID: I have been using Mapserver on IIS 5 for some time now. I have set up and am running Windows 2003 and IIS 6. I copied my demo over there for testing. It is a modified Itasca demo that is the basis for my app. I have the following problem. I load the default page and press intialize. The map shows up as expected. I see the main map, my key map and my user interface controls like pan and zoom in, zoom out, layer controls, etc. Nothing else works beyond this point. Any command I choose, such as zoom, has no effect. The refresh query button does nothing. There are no messages of any sort that are generated. The window just keeps displaying the map. Any ideas where I could be going wrong? Other things I could try to see what is happening under the hood? I think permissions are all OK and I have my bin directory on the system path. Mapserver is working because I get the map. Thanks From gomckenz at GEOSQL.COM Thu Jul 7 13:12:59 2005 From: gomckenz at GEOSQL.COM (Subscribe Mapserver-Users Gom) Date: Thu, 7 Jul 2005 15:12:59 -0500 Subject: Mapserver and WMS Message-ID: I have a Mapserver demo running on IIS 5 and trying to get it going on IIS 6. I have been playing with the WMS aspects of it and have the following behaviour. Using a client called Jump, I can get to the data. The extents are not recognized but if I pan and zoom to the right lace my map is there with all its layers anbd thematic styles etc. Works as expected accept for the extents. Using Cadcorp SIS map browser, the getcapabilites URL generates an error saying "End tag 'BODY' does not match the start tag 'br'." Using ArcCatalog, I can add the URL and get a report of all layers etc. I can add it to ArcMap and the map will zoom to the correct extents. All layers show up in the ArcMap legend but all are greyed out. I cannot see any map data nor can I adjust any of the settings such as zoom in or out levels. I zoom way in and way out but nothing shows up. I can always zoom extents and it takes me back to the correct extents. (I can only say that the extents of the blank window fall within the area covered by the map.) Is this typical of how WMS clients are implemented? Any thoughts others could share on what might be going on with my installation or map file etc. Thanks From matt at MSILEADS.COM Thu Jul 7 13:43:01 2005 From: matt at MSILEADS.COM (Matthew Roberson) Date: Thu, 7 Jul 2005 15:43:01 -0500 Subject: msSaveImageGD Message-ID: Hi, About the message I just posted, I resolved it by doing the following: % sudo chmod 777 /Library/Webserver/Documents/test however, I would rather resolve it by changing a setting in httpd.conf or some other setting. I tried adding the following directive to httpd.conf with no success and so now I'm not sure what to do. Order Deny,Allow Allow from all I would really appreciate any help anyone can offer. Thanks, Matt From matt at MSILEADS.COM Thu Jul 7 13:56:35 2005 From: matt at MSILEADS.COM (Matthew Roberson) Date: Thu, 7 Jul 2005 15:56:35 -0500 Subject: No subject Message-ID: Hi, I have a problem with some PHP/Mapscript. I get am getting the following warning and error: Warning: [MapServer Error]: msSaveImageGD(): Unable to open file / Library/WebServer/Documents/test/11207659884551.png for writing in / Library/WebServer/Documents/JW8020/machine.php on line 194 Fatal error: Failed writing image to /Library/WebServer/Documents/ test/11207659884551.png in /Library/WebServer/Documents/JW8020/ machine.php on line 194 The php and the map file are listed below: //require('/Library/WebServer/Documents/fpdf.php'); //require('/Library/WebServer/Documents/create8020PDF.php'); ini_set("display_errors","1"); //$username = "sa"; $username = "admin"; //$password = "s1q2l3S1"; $password = "w3xp2BA5"; $hostName = "localhost"; $databaseName = "8020Machine"; $sQVal = ""; $jID8020 = 3; function get8020CountPercent($val, $iTotalVal) { if($iTotalVal>0) { $dPercent=($val/$iTotalVal)*100; $dPercent = number_format($dPercent, 2, '.', ''); }// ($iTotalVal>0) else { $dPercent = 0.0; //print "{$iTotalVal} is iTotalVal
"; }// end if ($iTotalVal>0) return $dPercent; } function create8020OutputRecord($query, $zip_array, $adPercents) { // Run the query on the server if (!($result = @ mysql_query ($query))) if ($result) { $jobID = mysql_insert_id(); } //return $jobID; } // end of function mysql_connect ($hostName,$username,$password); mysql_select_db($databaseName); $address_query = mysql_query("select distinct ZipCode from eightytwentyinput where ZipCode <> '' and ZipCode is not NULL"); $address_rows = mysql_num_rows($address_query); for($i=0; $i<$address_rows; $i++) { $address_array = mysql_fetch_array($address_query); $temp_zip = $address_array['ZipCode']; $zip_array[$temp_zip] =0; $adPercents[$temp_zip]=0; $data[$i][0]=0; $data[$i][1]=0; $data[$i][2]=0; } $address_query2 = mysql_query("select ZipCode from eightytwentyinput where ZipCode <> '' and ZipCode is not NULL"); $address_rows2 = mysql_num_rows($address_query2); for($i=0;$i<$address_rows2;$i++) { $address_array2 = mysql_fetch_array($address_query2); $temp_zip2 = $address_array2['ZipCode']; $zip_array[$temp_zip2] += 1; } arsort($zip_array); arsort($adPercents); //mapserver stuff dl("php_mapscript.so"); $map_file="/Library/WebServer/Documents/test/TX.map"; $map = ms_newMapObj($map_file); $oZipLayer = $map->getLayerByName("TX Highlighted zip code boundaries"); $sAttrName = 'ZCTA'; //print_r($zip_array); print("There are $address_rows total unique zip codes
"); $iTotalVal = array_sum($zip_array); $percent_num = $address_rows*.20; $i=0; print(""); while (list($key, $val) = each($zip_array)) { $i++; if($i <= $percent_num) { $dPercent = get8020CountPercent($val,$iTotalVal); $qry8020Output = mysql_query("INSERT INTO EightyTwentyOutput VALUES (NULL,'{$jID8020}','{$key}','{$val}','{$dPercent}')"); create8020OutputRecord($qry8020Output, $zip_array, $adPercents); echo ""; //pdf stuff $data[$i][0]=$key; $data[$i][1]=$val; $data[$i][2]=$dPercent; //mapserver stuff if(strlen($key)<=5) { if(strncmp($key, "77", 2)== 0) { //$qresult = @$oZipLayer->queryByAttributes ($sAttrName,$key,MS_MULTIPLE); //var_dump($key); //$oZipLayerRed->set("labelitem", 'ZCTA'); printf("%s %s\n",$i, $key); $sQVal=$sQVal.$key."|"; $oZipClassRed = ms_newClassObj($oZipLayer); $oZipClassRed->setexpression($key); $oZipStyleRed = ms_newStyleObj($oZipClassRed); $oZipStyleRed->color->setRGB(255,0,0); } } } // ($i <= $percent_num) else { $dPercent = get8020CountPercent($val,$iTotalVal); $qry8020Output = mysql_query("INSERT INTO EightyTwentyOutput VALUES (NULL,'{$jID8020}','{$key}','{$val}','{$dPercent}')"); create8020OutputRecord($qry8020Output, $zip_array, $adPercents); echo ""; //pdf stuff $data[$i][0]=$key; $data[$i][1]=$val; $data[$i][2]=$dPercent; //mapserver stuff if(strlen($key)==5) { if(strncmp($key, "77", 2)== 0) { //$qresult = @$oZipLayer->queryByAttributes ($sAttrName,$key,MS_MULTIPLE); //var_dump($key); //$oZipLayerBlue->set("labelitem", 'ZCTA'); printf("%s %s\n",$i, $key); $sQVal=$sQVal.$key."|"; $oZipClassBlue = ms_newClassObj($oZipLayer); $oZipClassBlue->setexpression($key); $oZipStyleBlue = ms_newStyleObj($oZipClassBlue); $oZipStyleBlue->color->setRGB(255,0,0); } } }// end if ($i <= $percent_num) $adPercents[$key] = $dPercent; }// end while print("
Zip CodeCountPercent
$key$val$dPercent
$key $val$dPercent
"); //more mapserver stuff $sQVal = substr($sQVal, 0, strlen($sQVal)-1); //Do query $qresult = @$oZipLayer->queryByAttributes($sAttrName,"/". $sQVal."/",MS_MULTIPLE); $image = $map->drawQuery(); $image_url = $image->saveWebImage(); $error = ms_GetErrorObj(); while($error && $error->code != MS_NOERR) { printf("Error in %s: %s \n", $error-routine, $error->messaage); $error = $error->next(); } ?php echo $image_url?>">

This is an unprojected map of the 5 digit zip code boundries for the state of Texas, from the US Census Bureau.

To find the categories for the legend, I used the ogrinfo utility twice. ogrinfo -a -summary zt48_d00.shp let me see what fields were available, and ogrinfo -a zt48_d00.shp|grep SYMBOL|sort -u told me what all of the unique values were so that I could build my CLASS definitions in TX.map. ?php //print_r($oZipLayer); print_r($qresult); if ($oZipLayerRed->getNumResults() > 0) echo $oZipLayerRed->getNumResults()." zips found."; else echo "No zips found." ? --------------------------------------- map file ------------------------------- MAP NAME TX IMAGETYPE PNG SIZE 600 600 IMAGECOLOR 255 255 255 SHAPEPATH "/Library/WebServer/Documents/data" FONTSET "/Library/fonts/fonts.list" EXTENT -106.645646 25.837377 -93.516407 36.500704 UNITS METERS WEB IMAGEPATH "/Library/WebServer/Documents/test/" IMAGEURL "/test/" END LEGEND STATUS EMBED POSITION UR END SCALEBAR TRANSPARENT ON BACKGROUNDCOLOR 0 0 0 STATUS EMBED POSITION LR STYLE 1 END LAYER NAME "TX zip code boundaries" TYPE POLYGON STATUS DEFAULT DATA "zt48_d00" CLASS COLOR 255 255 255 OUTLINECOLOR 0 0 0 END TEMPLATE "x" END LAYER NAME "TX Highlighted zip code boundaries" TYPE POLYGON STATUS DEFAULT DATA "zt48_d00R" CLASS COLOR 255 255 255 OUTLINECOLOR 0 0 0 END TEMPLATE "y" END LAYER NAME "credits" STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 10 480 END TEXT 'Made with Mapserver.' END CLASS LABEL TYPE BITMAP POSITION CR COLOR 0 0 0 END END END END Is this error being caused by a problem in my PHP or MAP file, or is it perhaps something with my apache configuration? I would appreciate any help anyone could offer in helping me find the source of this error. Thanks, Matt From fr-ms at TOURDE.ORG Thu Jul 7 14:49:18 2005 From: fr-ms at TOURDE.ORG (=?iso-8859-1?q?Fran=E7ois_TOURDE?=) Date: Thu, 7 Jul 2005 23:49:18 +0200 Subject: GRIDS and Graticule In-Reply-To: <873br1tjl8.fsf@fermat.localhost> ( =?iso-8859-1?q?Fran=E7ois_TOURDE's_message_of?= "Wed, 29 Jun 2005 14:48:19 +0200") Message-ID: Le 12963i?me jour apr?s Epoch, Fran?ois TOURDE ?crivait: > Hi John, > > Le 12962i?me jour apr?s Epoch, > John Novak ?crivait: > >> Please attach the .map file you're using > > I'll do that once I've reduced it. It's 230Ko of data (features > layers), and a bad idea on the list. > > At the same time, I'll put a test url so you can see the result. Ok, it's ready now (I'm sorry for the lag...) Just for those reading the thread now: It seems that the {MIN|MAX}{ARCS|INTERVALS|SUBDIVIDE} parameters doesn't works correctly on my .map file. Here's the mapfile: http://www.tourde.org/tmp/generali.map and the result: http://www.tourde.org/tmp/maptest.png Thanks in advance for any idea. From bfraser at GEOANALYTIC.COM Thu Jul 7 15:50:50 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Thu, 7 Jul 2005 16:50:50 -0600 Subject: GRIDS and Graticule Message-ID: Fran?ois, The entry of "MAXINTERVAL 5" likely forces the software to have no more than 5 degrees between the graticule lines (as shown on your graphic). What happens if you remove it? Brent ----- Original Message ----- From: "Fran?ois TOURDE" To: Sent: Thursday, July 07, 2005 3:49 PM Subject: Re: [UMN_MAPSERVER-USERS] GRIDS and Graticule > Le 12963i?me jour apr?s Epoch, > Fran?ois TOURDE ?crivait: > > > Hi John, > > > > Le 12962i?me jour apr?s Epoch, > > John Novak ?crivait: > > > >> Please attach the .map file you're using > > > > I'll do that once I've reduced it. It's 230Ko of data (features > > layers), and a bad idea on the list. > > > > At the same time, I'll put a test url so you can see the result. > > Ok, it's ready now (I'm sorry for the lag...) > > Just for those reading the thread now: > > It seems that the {MIN|MAX}{ARCS|INTERVALS|SUBDIVIDE} parameters > doesn't works correctly on my .map file. > > Here's the mapfile: > > http://www.tourde.org/tmp/generali.map > > and the result: > > http://www.tourde.org/tmp/maptest.png > > Thanks in advance for any idea. From msestudiente2 at YAHOO.COM Thu Jul 7 18:20:24 2005 From: msestudiente2 at YAHOO.COM (Alex Smith) Date: Thu, 7 Jul 2005 18:20:24 -0700 Subject: Other spatial database development (PostGIS) In-Reply-To: <5E76888C-8574-42AB-9D5C-ACF896B84595@refractions.net> Message-ID: I'd like to preface this by acknowledging that my technical ineptitude may have been the cause of my unsuccessful attempts to write tabular data to external OLEDB databases from ArcGIS. And I'd also like to point out that it's been a while since I tried doing so - things may have changed. But my experiences have lead me to believe that ESRI has (or had) carefully implemented ArcGIS in a manner that prevents users from writing to external DBMS without using ArcSDE. We do alot of spatial processing that output and affects a considerable amount of tabular data that many other rely on and edit where necessary. Because we're already pushing the limits of Access, I looked into other options when we started some new projects....and an affordable option, such as Postgres or MySQL. Here's what I found In the original "Exploring ArcObjects" book, published near the release of ArcGIS 8.0, states that OLEDB connections to ArcGIS are read only. Hence, we couldn't directly output data to an external table joined to a Access based featureclass. Sure, we can later use ADO to update the 'enterprise' database from the Access geodatabase, but that starts to get messy or becomes, to use Paul's words, a "moderately ugly hack" (why have the middle-man Geodatabase tables - like pgArc had the middle-man shapefiles). So I tried linking in a MySQL table to via ODBC in a geodatabase .mdb file and attempted to edit that table (no spatial data) from ArcGIS - I got a message stating that linked tables cannot be written to. DAO tables (and I'm fairly certain that ArcGIS interacts with Access databases using DAO), have a property that returns true if they are linked tables. So it seems that the ArcGIS has code that tests this property and does not allow users to edit these tables. I find it very hard to believe that this was accidental. And I later felt naive for thinking I could somehow 'outsmart' them - ESRI's software engineers are not dumb. Expect some resistance in attempting to circumnavigate their systems. I understand their need to protect their investment - the ArcGIS spatial editting tools (including topology and networks) and ArcSDE must have cost a lot of money to develop. And it's good software - ESRI has earned a lot of its success. It just sucks for those of us on a limited budget - SDE licenses on top of commercial RDBMS fees is simply unaffordable in our case. On the other hand, ESRI seems to be opening up. But they must continue to recover their development costs somehow. And I'd be surprised if they'd make it easy for other develop tools to compete with their systems. Yes, being able to directly edit PostGIS data using ArcGIS-like editing tools would be huge....but I don't think that it would be easy and would probably be cost-prohibitive. As Paul mentioned, if these things were easily and cost-effectively attainable, then it probably would have been done by now. But then again....look how successful mapserver has become. Just my thoughts...... Alex Paul Ramsey wrote: Guys, I am happy to spec this out again, but frankly I fear that most solutions will remain in the "moderately ugly hack" domain, ala PgArc. I have investigated more elegant things (oledb) but the signs are not promising (http://arcgisdeveloperonline.esri.com/ ArcGISDeveloper/ExtendingArcObjects/Ch07/AboutOLEDBProviders.htm). Principally, the continuing lack of an Oracle Spatial third party read/write extension on the market says to me that such a thing is just technically not possible to do attractively. If it were, someone would have written it by now and be making money on it. If anyone knows of such a thing, please do tell, it would be a good positive sign of possible success. Paul On 7-Jul-05, at 10:22 AM, Ken Lord wrote: > Hi Mike, > > This is a major interest to us, we would like to see a push for > this as well, in fact I was just asked to contact Tyler Mitchell > about pgArc when I return from my holidays. Tyler! are your ears > burning? hehe > > pgArc can be found at SourceForge if you want to check it out. It > has some functionality with ArcGIS 8, but I haven't had it work > with ArcGIS 9. > > We are locked into personal geodatabases for some of our clients, > development of a fully functional ArcGIS / PostGIS connection would > give us a lot more flexibility too. > > Cheers, > Ken Lord > Vancouver BC > > > > > On 7/7/05, Mike Davis wrote: Since we > seem to be building some momentum on the ESRI personal > geodatabase thing, it seems like a good time to bring up the other > database related item on our wishlist. > > What would be required to allow read/write to a PostGIS database from > ArcGIS? I would love the ability to maintain our spatial data in > multiple datbase formats (must me my irrational fear of vendor > lock-in), but unless we can manage the data from within ArcGIS it > isn't really a practical option for us. > > -Mike __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From numerous at GMAIL.COM Thu Jul 7 20:14:59 2005 From: numerous at GMAIL.COM (Yar Doroshenko) Date: Thu, 7 Jul 2005 22:14:59 -0500 Subject: Need help with TIF TILE SIZE Message-ID: Brent, Thank you. Would you happen to have a sample syntax for the mosaicking feature of gdalwarp? Yar On Thu, 7 Jul 2005 08:21:28 -0600, Brent Fraser wrote: >Yar, > > The effect you are seeing may be due to re-projecting the UTM tifs to >geographic (latlong). This results in having a set of nodata (usually >black) pixels around the perimeter of the new tif file. One solution is to >use the mosaicking feature of gdalwarp to add in the surrounding UTM images >it fill in the gaps. > >Brent Fraser > > >----- Original Message ----- >From: "Yar Doroshenko" >To: >Sent: Wednesday, July 06, 2005 9:08 PM >Subject: [UMN_MAPSERVER-USERS] Need help with TIF TILE SIZE > > >> Hi Guys, >> >> Would anyone be able to answer this one, I'm posting it second time: >> >> My tileindex works fine, I have 51 tig images, I define my layer as the >> folowing: >> >> layer >> name "aerial" >> tileindex mrsid/img_index >> type raster >> status default >> end >> >> My tif images display just fine, the top left corner seems to be >positioned >> correctly. The problem is that at a certain zoom level, there are spaces >> between my tiles and I would like them to overlap. I know that my tifs are >> fine, when I open them in a viewer I can zoom in deep. Is there any way to >> make tifs larger, or make them overlap at a certain zoom level? >> >> Also, here is what I used before I implemented gdaltindex: >> >> I used mrsiddecode to convert my MrSID images to Tif >> >> mrsiddecode -i input.sid -o output.tif -s 2 >> >> This way I got my tif to be around 100Mb instead of 2Gb with >gdal_translate >> >> next I did gdalwarp to convert my coordinates >> >> C:\ITS\GDAL\125\bin>gdalwarp -s_srs "+proj=utm +zone=15 +datum=NAD83" - >> t_srs "+p >> roj=latlong +datum=WGS84" 10_1_1.tif latlong.tif >> :0...10...20...30...40...50...60...70...80...90...100 - done. >> >> >> Could anyone see a potential explanation to my tile problem? >> >> Thank you, >> >> >> Yar From bfraser at GEOANALYTIC.COM Thu Jul 7 21:04:49 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Thu, 7 Jul 2005 22:04:49 -0600 Subject: Need help with TIF TILE SIZE In-Reply-To: Message-ID: Yar, It would be something like: gdalwarp -s_srs "+proj=utm +zone=15 +datum=NAD83" -t_srs "+proj=latlong +datum=WGS84" 10_1_1.tif latlong.tif Then do 4 more gdalwarps of the surrounding files into the same target file to fill in the edges. For example: gdalwarp -s_srs "+proj=utm +zone=15 +datum=NAD83" 10_1_2.tif latlong.tif gdalwarp -s_srs "+proj=utm +zone=15 +datum=NAD83" 10_1_3.tif latlong.tif gdalwarp -s_srs "+proj=utm +zone=15 +datum=NAD83" 10_1_4.tif latlong.tif gdalwarp -s_srs "+proj=utm +zone=15 +datum=NAD83" 10_1_5.tif latlong.tif Note the -t_srs is not allowed after the first gdalwarp command. Brent > Brent, > > Thank you. > > Would you happen to have a sample syntax for the mosaicking feature of > gdalwarp? > > > Yar > > > > On Thu, 7 Jul 2005 08:21:28 -0600, Brent Fraser > wrote: > >>Yar, >> >> The effect you are seeing may be due to re-projecting the UTM tifs to >>geographic (latlong). This results in having a set of nodata (usually >>black) pixels around the perimeter of the new tif file. One solution is >> to >>use the mosaicking feature of gdalwarp to add in the surrounding UTM >> images >>it fill in the gaps. >> >>Brent Fraser >> >> >>----- Original Message ----- >>From: "Yar Doroshenko" >>To: >>Sent: Wednesday, July 06, 2005 9:08 PM >>Subject: [UMN_MAPSERVER-USERS] Need help with TIF TILE SIZE >> >> >>> Hi Guys, >>> >>> Would anyone be able to answer this one, I'm posting it second time: >>> >>> My tileindex works fine, I have 51 tig images, I define my layer as the >>> folowing: >>> >>> layer >>> name "aerial" >>> tileindex mrsid/img_index >>> type raster >>> status default >>> end >>> >>> My tif images display just fine, the top left corner seems to be >>positioned >>> correctly. The problem is that at a certain zoom level, there are >>> spaces >>> between my tiles and I would like them to overlap. I know that my tifs > are >>> fine, when I open them in a viewer I can zoom in deep. Is there any way > to >>> make tifs larger, or make them overlap at a certain zoom level? >>> >>> Also, here is what I used before I implemented gdaltindex: >>> >>> I used mrsiddecode to convert my MrSID images to Tif >>> >>> mrsiddecode -i input.sid -o output.tif -s 2 >>> >>> This way I got my tif to be around 100Mb instead of 2Gb with >>gdal_translate >>> >>> next I did gdalwarp to convert my coordinates >>> >>> C:\ITS\GDAL\125\bin>gdalwarp -s_srs "+proj=utm +zone=15 +datum=NAD83" - >>> t_srs "+p >>> roj=latlong +datum=WGS84" 10_1_1.tif latlong.tif >>> :0...10...20...30...40...50...60...70...80...90...100 - done. >>> >>> >>> Could anyone see a potential explanation to my tile problem? >>> >>> Thank you, >>> >>> >>> Yar > From flavio at TYDAC.CH Thu Jul 7 22:46:40 2005 From: flavio at TYDAC.CH (Flavio Hendry) Date: Fri, 8 Jul 2005 07:46:40 +0200 Subject: Connect to ESRI Personal Geodatabase In-Reply-To: <55dd01fa0507071114518a1723@mail.gmail.com> Message-ID: hi ken seems to be a strategy to introduce as many formats as possible. if I look at the FME list there are already 11 ESRI formats there. this is nr. 12 ... from what I read, personal geodatabase will be history (one more dead body) and the new "file based database" (!?) will be the "standard". reading the text, the reason behind it might be that personal geodatabase has bad performance. good news are however: "Like it did with shapefiles, ESRI is providing an open API that will allow anyone to create and use file-based geodatabases." I suppose it is not worth to invest to support a dead body ... ??? Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ ? ? ?Mit freundlichen Gruessen / Kind Regards ############? ? ? ? ? ? ?mailto:flavio at tydac.ch ############ ? ? ? ? TYDAC AG - http://www.tydac.ch #### ? ?#### ? ? ? ?Geographic Information Solutions #### ? ?#### ? ? ? ? Luternauweg 12 -- CH-3006 Bern ############ ? Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- From schuyler at NOCAT.NET Thu Jul 7 23:28:05 2005 From: schuyler at NOCAT.NET (Schuyler Erle) Date: Thu, 7 Jul 2005 23:28:05 -0700 Subject: reduce gps points In-Reply-To: Message-ID: I don't know of any PHP implementations offhand, but search the Net for "Douglas-Peucker" line simplification, which we've used successfully for that purpose. I found a C++ implementation on the web which I success fully cargo-culted to Python (and hope to port to ogr2ogr one of these days). SDE * On 7-Jul-2005 at 8:30AM PDT, joerg p said: > hello, > > this might be a little bit off topic, but I am searching a (php) > function, which reduces the amount of gps points in a gps track by a > given accuracy. > > So a track with 1000 points becomes a track with 100 points. > > Is there a function or documentation somewhere? > > thanks > Joerg From leopold.schefcik at MULTIMEDIAPLAN.AT Fri Jul 8 04:27:11 2005 From: leopold.schefcik at MULTIMEDIAPLAN.AT (Leopold Schefcik (MULTIMEDIAPLAN.AT)) Date: Fri, 8 Jul 2005 13:27:11 +0200 Subject: ms4w, chamelion, maplab Message-ID: hi list, I have installed ms4w with chamelion and maplab. - in maplab I can create my layers with styles and so on... - but hov can I make these layes available for the web? at http://localhost there is a link to http://localhost/cgi-bin/mapserv_44.exe - that shut be the WMS at Chamelion there is a link to http://localhost/chameleon/cwc2/ with the point: Service Instance Getting Capabilities (inactive feature) The URL to get the Service Instance capabilities is (Note: this doesn't do anything yet): a.. http://localhost/chameleon/cwc2/cwc2.php? service=VCG &request=GetCapabilities &version=0.1.0 request=GetCapabilities Request sounds fine, but why is this an "(inactive feature)"??? What can I do to make my layers available in an WMS Viewer for other persons? greatings - Leopold -------------- next part -------------- An HTML attachment was scrubbed... URL: From numerous at GMAIL.COM Fri Jul 8 04:52:52 2005 From: numerous at GMAIL.COM (Yar Doroshenko) Date: Fri, 8 Jul 2005 06:52:52 -0500 Subject: Need help with TIF TILE SIZE Message-ID: Frank, I posted mapfile, tileindex, data files and a textfile with the path used in tileindex to http://origin1.tcom.ou.edu/~ding/ Apologies that the images are fairly large. Please let me know if you need any additional information. Thank you, Yar From jeff2005 at SVS.GSFC.NASA.GOV Fri Jul 8 05:52:07 2005 From: jeff2005 at SVS.GSFC.NASA.GOV (Jeff de La Beaujardiere) Date: Fri, 8 Jul 2005 08:52:07 -0400 Subject: GRIDS and Graticule In-Reply-To: <871x6ajnhd.fsf@fermat.localhost> Message-ID: Fran?ois TOURDE wrote: > It seems that the {MIN|MAX}{ARCS|INTERVALS|SUBDIVIDE} parameters > doesn't works correctly on my .map file. I finally figured out how to configure this properly: instead of trying a combination of several of these parameters, use only the ONE parameter that produces the desired effect. For example, if you want a fixed grid at some interval, then specify MININTERVAL. If you want a reasonable number of lines no matter what the zoom, specify MINARCS. (I have found that 'MINARCS 5' and 'LABELFORMAT DDMM' gives good results for geographic coordinates. If you look in the source code mapfile.c, the function loadGrid has a switch statement such that only the first matching directive is used. They appear in this order: MINARCS MAXARCS MININTERVAL MAXINTERVAL MINSUBDIVIDE MAXSUBDIVIDE The documentation at http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#grid should be corrected because it gives a false impression. It should say something like this: The number of arcs to draw is controlled by any ONE of the following parameters. Mapserver will inspect the GRID object and search for these parameters in this order and will obey the first one it finds: MINARCS [double] The minimum number of arcs to draw in the bounding box. MAXARCS [double] The maximum number of arcs to draw in the bounding box. [NOT TESTED] MININTERVAL [double] The interval between gridlines, independent of bounding box size. MAXINTERVAL [double] The interval between gridlines, independent of bounding box size. No discernible difference between MININTERVAL and MAXINTERVAL. MINSUBDIVIDE [double] The minimum number of segments to use when rendering an arc. [NOT TESTED] MAXSUBDIVIDE [double] The maximum number of segments to use when rendering an arc. [NOT TESTED] -Jeff DLB From fr-ms at TOURDE.ORG Fri Jul 8 05:54:46 2005 From: fr-ms at TOURDE.ORG (=?iso-8859-1?q?Fran=E7ois_TOURDE?=) Date: Fri, 8 Jul 2005 14:54:46 +0200 Subject: GRIDS and Graticule In-Reply-To: <016901c58346$5260eb80$160002c0@shark> (Brent Fraser's message of "Thu, 7 Jul 2005 16:50:50 -0600") Message-ID: Le 12972i?me jour apr?s Epoch, Brent Fraser ?crivait: > Fran?ois, > > The entry of "MAXINTERVAL 5" likely forces the software to have no more > than 5 degrees between the graticule lines (as shown on your graphic). What > happens if you remove it? It works great... So you can't use MIN/MAX INTERVAL when you specify MIN/MAX ARCS ... -- The road to Hades is easy to travel. -- Bion From uli.mueller at GMX.CH Fri Jul 8 06:18:17 2005 From: uli.mueller at GMX.CH (uli mueller) Date: Fri, 8 Jul 2005 15:18:17 +0200 Subject: Other spatial database development (PostGIS) In-Reply-To: <20050708012024.98922.qmail@web61024.mail.yahoo.com> Message-ID: Paul, why exactly are the signs not promising? Is it "only" because OLEDB provides read-only access for ArcGIS? I did not really delve into the article you cited, but what I read sounded like you can use PostGIS WKBs 1:1 with OLEDB for ArcGIS?? Has anybody successfully implemented read-access from ArcGIS 9 to PG? Would this be only an ugly or also a never-ending hack? Background: We also have a project where we are constrained to use a personal geodatabase and would be happy to switch to PostGIS. Read-only would be sufficient in this case. Uli -- geOps GeoInformatics D-79100 Freiburg Alex Smith wrote: > I'd like to preface this by acknowledging that my technical ineptitude may have been the cause of my unsuccessful attempts to write tabular data to external OLEDB databases from ArcGIS. And I'd also like to point out that it's been a while since I tried doing so - things may have changed. But my experiences have lead me to believe that ESRI has (or had) carefully implemented ArcGIS in a manner that prevents users from writing to external DBMS without using ArcSDE. We do alot of spatial processing that output and affects a considerable amount of tabular data that many other rely on and edit where necessary. Because we're already pushing the limits of Access, I looked into other options when we started some new projects....and an affordable option, such as Postgres or MySQL. Here's what I found > > In the original "Exploring ArcObjects" book, published near the release of ArcGIS 8.0, states that OLEDB connections to ArcGIS are read only. Hence, we couldn't directly output data to an external table joined to a Access based featureclass. Sure, we can later use ADO to update the 'enterprise' database from the Access geodatabase, but that starts to get messy or becomes, to use Paul's words, a "moderately ugly hack" (why have the middle-man Geodatabase tables - like pgArc had the middle-man shapefiles). So I tried linking in a MySQL table to via ODBC in a geodatabase .mdb file and attempted to edit that table (no spatial data) from ArcGIS - I got a message stating that linked tables cannot be written to. DAO tables (and I'm fairly certain that ArcGIS interacts with Access databases using DAO), have a property that returns true if they are linked tables. So it seems that the ArcGIS has code that tests this property and does not allow users to edit these tables. I fi nd it very > hard to believe that this was accidental. And I later felt naive for thinking I could somehow 'outsmart' them - ESRI's software engineers are not dumb. Expect some resistance in attempting to circumnavigate their systems. > > I understand their need to protect their investment - the ArcGIS spatial editting tools (including topology and networks) and ArcSDE must have cost a lot of money to develop. And it's good software - ESRI has earned a lot of its success. It just sucks for those of us on a limited budget - SDE licenses on top of commercial RDBMS fees is simply unaffordable in our case. > > On the other hand, ESRI seems to be opening up. But they must continue to recover their development costs somehow. And I'd be surprised if they'd make it easy for other develop tools to compete with their systems. Yes, being able to directly edit PostGIS data using ArcGIS-like editing tools would be huge....but I don't think that it would be easy and would probably be cost-prohibitive. As Paul mentioned, if these things were easily and cost-effectively attainable, then it probably would have been done by now. But then again....look how successful mapserver has become. Just my thoughts...... > > Alex > Paul Ramsey wrote: > Guys, I am happy to spec this out again, but frankly I fear that most > solutions will remain in the "moderately ugly hack" domain, ala > PgArc. I have investigated more elegant things (oledb) but the signs > are not promising (http://arcgisdeveloperonline.esri.com/ > ArcGISDeveloper/ExtendingArcObjects/Ch07/AboutOLEDBProviders.htm). > Principally, the continuing lack of an Oracle Spatial third party > read/write extension on the market says to me that such a thing is > just technically not possible to do attractively. If it were, someone > would have written it by now and be making money on it. If anyone > knows of such a thing, please do tell, it would be a good positive > sign of possible success. > > Paul > > On 7-Jul-05, at 10:22 AM, Ken Lord wrote: > > >>Hi Mike, >> >>This is a major interest to us, we would like to see a push for >>this as well, in fact I was just asked to contact Tyler Mitchell >>about pgArc when I return from my holidays. Tyler! are your ears >>burning? hehe >> >>pgArc can be found at SourceForge if you want to check it out. It >>has some functionality with ArcGIS 8, but I haven't had it work >>with ArcGIS 9. >> >>We are locked into personal geodatabases for some of our clients, >>development of a fully functional ArcGIS / PostGIS connection would >>give us a lot more flexibility too. >> >>Cheers, >>Ken Lord >>Vancouver BC >> >> >> >> >>On 7/7/05, Mike Davis wrote: Since we >>seem to be building some momentum on the ESRI personal >>geodatabase thing, it seems like a good time to bring up the other >>database related item on our wishlist. >> >>What would be required to allow read/write to a PostGIS database from >>ArcGIS? I would love the ability to maintain our spatial data in >>multiple datbase formats (must me my irrational fear of vendor >>lock-in), but unless we can manage the data from within ArcGIS it >>isn't really a practical option for us. >> >>-Mike > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com -- geOps GeoInformatics D-79100 Freiburg From artur.skalski at ACXIOM.COM Fri Jul 8 06:32:21 2005 From: artur.skalski at ACXIOM.COM (Artur Skalski) Date: Fri, 8 Jul 2005 08:32:21 -0500 Subject: HI ALL! Message-ID: Has any of You tried to use ImageMap with mapserver (mapserver & php mapscript) to refresh only a map not just hole site? regards Artur From David.Fawcett at STATE.MN.US Fri Jul 8 06:48:01 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri, 8 Jul 2005 08:48:01 -0500 Subject: HI ALL! Message-ID: There is an entry in the old wiki on client-side imagemaps. http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?ImageMap I am not sure if this is what you are referring to. Many people are starting to use DHTML on the browser side to refresh only the map. Take a look at: http://data.moea.state.mn.us/maps/facilities/xfacs.htm OR, the mother app from which most of us have 'harvested' the javascript (props to Steve Lime!)...: http://www.dnr.state.mn.us/maps/landview.html David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett at moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Artur Skalski Sent: Friday, July 08, 2005 8:32 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] HI ALL! Has any of You tried to use ImageMap with mapserver (mapserver & php mapscript) to refresh only a map not just hole site? regards Artur From David.Fawcett at STATE.MN.US Fri Jul 8 07:01:42 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri, 8 Jul 2005 09:01:42 -0500 Subject: HI ALL! Message-ID: Oops, make that: http://data.moea.state.mn.us/maps/facilities/xfacs.html David. From pinktomate at HOTMAIL.COM Fri Jul 8 06:59:24 2005 From: pinktomate at HOTMAIL.COM (Pinktomate Pink) Date: Fri, 8 Jul 2005 08:59:24 -0500 Subject: help with jbox In-Reply-To: Message-ID: Well, good morning I already installed Jbox, and I can drag Image, but I can not display coordinates and can not display shapefiles contained in a postgres database, I'm tires to read the manual jbox in mapserver page it is not really clear. How I can display shapefiles, (not images in jpg) through the jbox.jar Regards _________________________________________________________________ Charla con tus amigos en l?nea mediante MSN Messenger: http://messenger.latam.msn.com/ From ed at TOPOZONE.COM Fri Jul 8 07:31:49 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 8 Jul 2005 10:31:49 -0400 Subject: Maperver and IIS question Message-ID: Since those buttons are doing things in your browser, this probably is not an "IIS" question. It's often better to describe the symptom you have in the Subject rather than the suspected problem. There are relatively few users doing IIS work, so your Subject line probably made potential helpers "tune out" and never read the message! When you click on those buttons you're submitting the FORM on which they're embedded in the HTML page. Look at the HTML source. Look at the tag near the top - what happens when the form is submitted? Does the ACTION attribute point to your MapServer binary? - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Subscribe Mapserver-Users Gom Sent: Thursday, July 07, 2005 4:00 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Maperver and IIS question I have been using Mapserver on IIS 5 for some time now. I have set up and am running Windows 2003 and IIS 6. I copied my demo over there for testing. It is a modified Itasca demo that is the basis for my app. I have the following problem. I load the default page and press intialize. The map shows up as expected. I see the main map, my key map and my user interface controls like pan and zoom in, zoom out, layer controls, etc. Nothing else works beyond this point. Any command I choose, such as zoom, has no effect. The refresh query button does nothing. There are no messages of any sort that are generated. The window just keeps displaying the map. Any ideas where I could be going wrong? Other things I could try to see what is happening under the hood? I think permissions are all OK and I have my bin directory on the system path. Mapserver is working because I get the map. Thanks From piero.cavalieri at HEIDI.IT Fri Jul 8 07:35:34 2005 From: piero.cavalieri at HEIDI.IT (Piero Cavalieri) Date: Fri, 8 Jul 2005 09:35:34 -0500 Subject: help with jbox Message-ID: From pramsey at REFRACTIONS.NET Fri Jul 8 08:00:25 2005 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Fri, 8 Jul 2005 08:00:25 -0700 Subject: Other spatial database development (PostGIS) In-Reply-To: <42CE7D19.7070608@gmx.ch> Message-ID: Read-only OleDB would probably work fine. It would still be some effort to implement. Most people really consider read/write the gold standard they need for ArcMap, which is why I was focussing on it. Paul On 8-Jul-05, at 6:18 AM, uli mueller wrote: > Paul, why exactly are the signs not promising? Is > it "only" because OLEDB provides read-only access for ArcGIS? I did > not > really delve into the article you cited, but what I read sounded like > you can use PostGIS WKBs 1:1 with OLEDB for ArcGIS?? Has anybody > successfully implemented read-access from ArcGIS 9 to PG? Would > this be only an ugly or also a never-ending hack? > > Background: We also have a project where we are constrained to use > a personal geodatabase and would be happy to switch to PostGIS. > Read-only would be sufficient in this case. > > Uli > > -- > geOps GeoInformatics > D-79100 Freiburg > > Alex Smith wrote: > >> I'd like to preface this by acknowledging that my technical >> ineptitude may have been the cause of my unsuccessful attempts to >> write tabular data to external OLEDB databases from ArcGIS. And >> I'd also like to point out that it's been a while since I tried >> doing so - things may have changed. But my experiences have lead >> me to believe that ESRI has (or had) carefully implemented ArcGIS >> in a manner that prevents users from writing to external DBMS >> without using ArcSDE. We do alot of spatial processing that >> output and affects a considerable amount of tabular data that many >> other rely on and edit where necessary. Because we're already >> pushing the limits of Access, I looked into other options when we >> started some new projects....and an affordable option, such as >> Postgres or MySQL. Here's what I found >> In the original "Exploring ArcObjects" book, published near the >> release of ArcGIS 8.0, states that OLEDB connections to ArcGIS are >> read only. Hence, we couldn't directly output data to an external >> table joined to a Access based featureclass. Sure, we can later >> use ADO to update the 'enterprise' database from the Access >> geodatabase, but that starts to get messy or becomes, to use >> Paul's words, a "moderately ugly hack" (why have the middle-man >> Geodatabase tables - like pgArc had the middle-man shapefiles). >> So I tried linking in a MySQL table to via ODBC in a >> geodatabase .mdb file and attempted to edit that table (no spatial >> data) from ArcGIS - I got a message stating that linked tables >> cannot be written to. DAO tables (and I'm fairly certain that >> ArcGIS interacts with Access databases using DAO), have a property >> that returns true if they are linked tables. So it seems that >> the ArcGIS has code that tests this property and does not allow >> users to edit these tables. I fi >> > nd it very > >> hard to believe that this was accidental. And I later felt naive >> for thinking I could somehow 'outsmart' them - ESRI's software >> engineers are not dumb. Expect some resistance in attempting to >> circumnavigate their systems. I understand their need to protect >> their investment - the ArcGIS spatial editting tools (including >> topology and networks) and ArcSDE must have cost a lot of money to >> develop. And it's good software - ESRI has earned a lot of its >> success. It just sucks for those of us on a limited budget - SDE >> licenses on top of commercial RDBMS fees is simply unaffordable in >> our case. On the other hand, ESRI seems to be opening up. But >> they must continue to recover their development costs somehow. >> And I'd be surprised if they'd make it easy for other develop >> tools to compete with their systems. Yes, being able to directly >> edit PostGIS data using ArcGIS-like editing tools would be >> huge....but I don't think that it would be easy and would probably >> be cost-prohibitive. As Paul mentioned, if these things were >> easily and cost-effectively attainable, then it probably would >> have been done by now. But then again....look how successful >> mapserver has become. Just my thoughts...... >> Alex >> Paul Ramsey wrote: >> Guys, I am happy to spec this out again, but frankly I fear that >> most solutions will remain in the "moderately ugly hack" domain, >> ala PgArc. I have investigated more elegant things (oledb) but the >> signs are not promising (http://arcgisdeveloperonline.esri.com/ >> ArcGISDeveloper/ExtendingArcObjects/Ch07/AboutOLEDBProviders.htm). >> Principally, the continuing lack of an Oracle Spatial third party >> read/write extension on the market says to me that such a thing is >> just technically not possible to do attractively. If it were, >> someone would have written it by now and be making money on it. If >> anyone knows of such a thing, please do tell, it would be a good >> positive sign of possible success. >> Paul >> On 7-Jul-05, at 10:22 AM, Ken Lord wrote: >> >>> Hi Mike, >>> >>> This is a major interest to us, we would like to see a push for >>> this as well, in fact I was just asked to contact Tyler Mitchell >>> about pgArc when I return from my holidays. Tyler! are your ears >>> burning? hehe >>> >>> pgArc can be found at SourceForge if you want to check it out. It >>> has some functionality with ArcGIS 8, but I haven't had it work >>> with ArcGIS 9. >>> >>> We are locked into personal geodatabases for some of our clients, >>> development of a fully functional ArcGIS / PostGIS connection >>> would give us a lot more flexibility too. >>> >>> Cheers, >>> Ken Lord >>> Vancouver BC >>> >>> >>> >>> >>> On 7/7/05, Mike Davis wrote: Since we seem to be building some >>> momentum on the ESRI personal >>> geodatabase thing, it seems like a good time to bring up the other >>> database related item on our wishlist. >>> >>> What would be required to allow read/write to a PostGIS database >>> from >>> ArcGIS? I would love the ability to maintain our spatial data in >>> multiple datbase formats (must me my irrational fear of vendor >>> lock-in), but unless we can manage the data from within ArcGIS it >>> isn't really a practical option for us. >>> >>> -Mike >>> >> __________________________________________________ >> Do You Yahoo!? >> Tired of spam? Yahoo! Mail has the best spam protection around >> http://mail.yahoo.com >> > > > -- > geOps GeoInformatics > D-79100 Freiburg > From pramsey at REFRACTIONS.NET Fri Jul 8 08:03:33 2005 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Fri, 8 Jul 2005 08:03:33 -0700 Subject: Connect to ESRI Personal Geodatabase In-Reply-To: Message-ID: I actually heard a reason right from the lips of an ESRI representative this week: personal geodatabase inherits the MSAccess 2Gb file size limitation. I imagine there are other reasons too. Getting rid of Access good decision, one they should have preemptively :) P On 7-Jul-05, at 10:46 PM, Flavio Hendry wrote: > hi ken > > seems to be a strategy to introduce as many formats as possible. if I > look at the FME list there are already 11 ESRI formats there. this is > nr. 12 ... from what I read, personal geodatabase will be history (one > more dead body) and the new "file based database" (!?) will be > the "standard". reading the text, the reason behind it might be that > personal geodatabase has bad performance. > > good news are however: "Like it did with shapefiles, ESRI is providing > an open API that will allow anyone to create and use file-based > geodatabases." > > I suppose it is not worth to invest to support a dead body ... ??? > > Mit freundlichem Gruss / Best Regards > Flavio Hendry > > ---------------------------------------------------------------- > TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual > ---------------------------------------------------------------- > ############ Mit freundlichen Gruessen / Kind Regards > ############ mailto:flavio at tydac.ch > ############ TYDAC AG - http://www.tydac.ch > #### #### Geographic Information Solutions > #### #### Luternauweg 12 -- CH-3006 Bern > ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 > ---------------------------------------------------------------- > From matt at MSILEADS.COM Fri Jul 8 08:19:38 2005 From: matt at MSILEADS.COM (Matthew Roberson) Date: Fri, 8 Jul 2005 10:19:38 -0500 Subject: changing the color of polygons in a layer??? Message-ID: Hi, I am having a problem getting some PHP/Mapscript to work like I want it to and I hope that somebody can offer some help. Here is what I am trying to do. I have a shp file from the US Census Bureau that contains 5-digit zip code boundaries for a particular state(Texas in this case). I do a query to find the zip codes i'm interested in. I want some of the zipcode boundaries to be red(or whatever color) and some to be blue (or whatever color). I have written the PHP/Mapscript that I think will produce the results I want, however what I get is all yellow zip codes(see the link below). I have included the php and .map file that generates this map. I would really appreciate any suggestions. Thanks, Matt ------------------------------------------------- php file --------------------------------------------- 2080 Machine
0) { $dPercent=($val/$iTotalVal)*100; $dPercent = number_format($dPercent, 2, '.', ''); }// ($iTotalVal>0) else { $dPercent = 0.0; //print "{$iTotalVal} is iTotalVal
"; }// end if ($iTotalVal>0) return $dPercent; } function create8020OutputRecord($query, $zip_array, $adPercents) { // Run the query on the server if (!($result = @ mysql_query ($query))) if ($result) { $jobID = mysql_insert_id(); } //return $jobID; } // end of function mysql_connect ($hostName,$username,$password); mysql_select_db($databaseName); $address_query = mysql_query("select distinct ZipCode from eightytwentyinput where ZipCode <> '' and ZipCode is not NULL"); $address_rows = mysql_num_rows($address_query); for($i=0; $i<$address_rows; $i++) { $address_array = mysql_fetch_array($address_query); $temp_zip = $address_array['ZipCode']; $zip_array[$temp_zip] =0; $adPercents[$temp_zip]=0; $data[$i][0]=0; $data[$i][1]=0; $data[$i][2]=0; } $address_query2 = mysql_query("select ZipCode from eightytwentyinput where ZipCode <> '' and ZipCode is not NULL"); $address_rows2 = mysql_num_rows($address_query2); for($i=0;$i<$address_rows2;$i++) { $address_array2 = mysql_fetch_array($address_query2); $temp_zip2 = $address_array2['ZipCode']; $zip_array[$temp_zip2] += 1; } arsort($zip_array); arsort($adPercents); //mapserver stuff dl("php_mapscript.so"); $map_file="/Library/WebServer/Documents/test/TX1.map"; $map = ms_newMapObj($map_file); $oZipLayer = $map->getLayerByName("TX zip code boundaries"); $sAttrName = 'ZCTA'; //print_r($zip_array); print("There are $address_rows total unique zip codes
"); $iTotalVal = array_sum($zip_array); $percent_num = $address_rows*.20; $i=0; print(""); while (list($key, $val) = each($zip_array)) { $i++; if($i <= $percent_num) { $dPercent = get8020CountPercent($val,$iTotalVal); $qry8020Output = mysql_query("INSERT INTO EightyTwentyOutput VALUES (NULL,'{$jID8020}','{$key}','{$val}','{$dPercent}')"); create8020OutputRecord($qry8020Output, $zip_array, $adPercents); echo ""; //pdf stuff $data[$i][0]=$key; $data[$i][1]=$val; $data[$i][2]=$dPercent; //mapserver stuff if(strlen($key)<=5) { if(strncmp($key, "77", 2)== 0) { $oZipLayer->set("labelitem", 'ZCTA'); $sQVal=$sQVal.$key."|"; $oZipClassRed = ms_newClassObj($oZipLayer); $oZipClassRed->setexpression($key); $oZipStyleRed = ms_newStyleObj($oZipClassRed); $oZipStyleRed->color->setRGB(250,0,0); } } } // ($i <= $percent_num) else { $dPercent = get8020CountPercent($val,$iTotalVal); $qry8020Output = mysql_query("INSERT INTO EightyTwentyOutput VALUES (NULL,'{$jID8020}','{$key}','{$val}','{$dPercent}')"); create8020OutputRecord($qry8020Output, $zip_array, $adPercents); echo ""; //pdf stuff $data[$i][0]=$key; $data[$i][1]=$val; $data[$i][2]=$dPercent; //mapserver stuff if(strlen($key)==5) { if(strncmp($key, "77", 2)== 0) { $oZipLayer->set("labelitem", 'ZCTA'); $sQVal=$sQVal.$key."|"; $oZipClassBlue = ms_newClassObj($oZipLayer); $oZipClassBlue->setexpression($key); $oZipStyleBlue = ms_newStyleObj($oZipClassBlue); $oZipStyleBlue->color->setRGB(0,0,255); } } }// end if ($i <= $percent_num) $adPercents[$key] = $dPercent; }// end while print("
Zip CodeCountPercent
$key$val$dPercent
$key $val$dPercent
"); //more mapserver stuff $sQVal = substr($sQVal, 0, strlen($sQVal)-1); //Do query $qresult = @$oZipLayer->queryByAttributes($sAttrName,"/". $sQVal."/",MS_MULTIPLE); $image = $map->drawQuery(); $image_url = $image->saveWebImage(); $error = ms_GetErrorObj(); while($error && $error->code != MS_NOERR) { printf("Error in %s: %s \n", $error->routine, $error->messaage); $error = $error->next(); } ?>

This is an unprojected map of the 5 digit zip code boundries for the state of Texas, from the US Census Bureau.

To find the categories for the legend, I used the ogrinfo utility twice. ogrinfo -a -summary zt48_d00.shp let me see what fields were available, and ogrinfo -a zt48_d00.shp|grep SYMBOL|sort -u told me what all of the unique values were so that I could build my CLASS definitions in TX1.map.

getNumResults() > 0) echo $oZipLayer->getNumResults()." zips found."; else echo "No zips found." ?> ------------------------------------------------- map file --------------------------------------------- MAP NAME TX IMAGETYPE PNG SIZE 600 600 IMAGECOLOR 255 255 255 SHAPEPATH "/Library/WebServer/Documents/data" FONTSET "/Library/fonts/fonts.list" EXTENT -106.645646 25.837377 -93.516407 36.500704 UNITS METERS WEB IMAGEPATH "/Library/WebServer/Documents/test/" IMAGEURL "/test/" END LEGEND STATUS EMBED POSITION UR END SCALEBAR TRANSPARENT ON BACKGROUNDCOLOR 0 0 0 STATUS EMBED POSITION LR STYLE 1 END LAYER NAME "TX zip code boundaries" TYPE POLYGON STATUS DEFAULT DATA "zt48_d00" CLASS COLOR 255 255 255 OUTLINECOLOR 0 0 0 END TEMPLATE "x" END LAYER NAME "credits" STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 10 480 END TEXT 'Made with Mapserver.' END CLASS LABEL TYPE BITMAP POSITION CR COLOR 0 0 0 END END END END From matt at MSILEADS.COM Fri Jul 8 08:23:43 2005 From: matt at MSILEADS.COM (Matthew Roberson) Date: Fri, 8 Jul 2005 10:23:43 -0500 Subject: changing the color of polygons in a layer???(forgot the link...) Message-ID: Hi, I am having a problem getting some PHP/Mapscript to work like I want it to and I hope that somebody can offer some help. Here is what I am trying to do. I have a shp file from the US Census Bureau that contains 5-digit zip code boundaries for a particular state(Texas in this case). I do a query to find the zip codes i'm interested in. I want some of the zipcode boundaries to be red(or whatever color) and some to be blue (or whatever color). I have written the PHP/Mapscript that I think will produce the results I want, however what I get is all yellow zip codes(see the link below). I have included the php and .map file that generates this map. I would really appreciate any suggestions. Thanks, Matt http://machine.msileads.com/TXZips.html ------------------------------------------------- php file --------------------------------------------- 2080 Machine
0) { $dPercent=($val/$iTotalVal)*100; $dPercent = number_format($dPercent, 2, '.', ''); }// ($iTotalVal>0) else { $dPercent = 0.0; //print "{$iTotalVal} is iTotalVal
"; }// end if ($iTotalVal>0) return $dPercent; } function create8020OutputRecord($query, $zip_array, $adPercents) { // Run the query on the server if (!($result = @ mysql_query ($query))) if ($result) { $jobID = mysql_insert_id(); } //return $jobID; } // end of function mysql_connect ($hostName,$username,$password); mysql_select_db($databaseName); $address_query = mysql_query("select distinct ZipCode from eightytwentyinput where ZipCode <> '' and ZipCode is not NULL"); $address_rows = mysql_num_rows($address_query); for($i=0; $i<$address_rows; $i++) { $address_array = mysql_fetch_array($address_query); $temp_zip = $address_array['ZipCode']; $zip_array[$temp_zip] =0; $adPercents[$temp_zip]=0; $data[$i][0]=0; $data[$i][1]=0; $data[$i][2]=0; } $address_query2 = mysql_query("select ZipCode from eightytwentyinput where ZipCode <> '' and ZipCode is not NULL"); $address_rows2 = mysql_num_rows($address_query2); for($i=0;$i<$address_rows2;$i++) { $address_array2 = mysql_fetch_array($address_query2); $temp_zip2 = $address_array2['ZipCode']; $zip_array[$temp_zip2] += 1; } arsort($zip_array); arsort($adPercents); //mapserver stuff dl("php_mapscript.so"); $map_file="/Library/WebServer/Documents/test/TX1.map"; $map = ms_newMapObj($map_file); $oZipLayer = $map->getLayerByName("TX zip code boundaries"); $sAttrName = 'ZCTA'; //print_r($zip_array); print("There are $address_rows total unique zip codes
"); $iTotalVal = array_sum($zip_array); $percent_num = $address_rows*.20; $i=0; print(""); while (list($key, $val) = each($zip_array)) { $i++; if($i <= $percent_num) { $dPercent = get8020CountPercent($val,$iTotalVal); $qry8020Output = mysql_query("INSERT INTO EightyTwentyOutput VALUES (NULL,'{$jID8020}','{$key}','{$val}','{$dPercent}')"); create8020OutputRecord($qry8020Output, $zip_array, $adPercents); echo ""; //pdf stuff $data[$i][0]=$key; $data[$i][1]=$val; $data[$i][2]=$dPercent; //mapserver stuff if(strlen($key)<=5) { if(strncmp($key, "77", 2)== 0) { $oZipLayer->set("labelitem", 'ZCTA'); $sQVal=$sQVal.$key."|"; $oZipClassRed = ms_newClassObj($oZipLayer); $oZipClassRed->setexpression($key); $oZipStyleRed = ms_newStyleObj($oZipClassRed); $oZipStyleRed->color->setRGB(250,0,0); } } } // ($i <= $percent_num) else { $dPercent = get8020CountPercent($val,$iTotalVal); $qry8020Output = mysql_query("INSERT INTO EightyTwentyOutput VALUES (NULL,'{$jID8020}','{$key}','{$val}','{$dPercent}')"); create8020OutputRecord($qry8020Output, $zip_array, $adPercents); echo ""; //pdf stuff $data[$i][0]=$key; $data[$i][1]=$val; $data[$i][2]=$dPercent; //mapserver stuff if(strlen($key)==5) { if(strncmp($key, "77", 2)== 0) { $oZipLayer->set("labelitem", 'ZCTA'); $sQVal=$sQVal.$key."|"; $oZipClassBlue = ms_newClassObj($oZipLayer); $oZipClassBlue->setexpression($key); $oZipStyleBlue = ms_newStyleObj($oZipClassBlue); $oZipStyleBlue->color->setRGB(0,0,255); } } }// end if ($i <= $percent_num) $adPercents[$key] = $dPercent; }// end while print("
Zip CodeCountPercent
$key$val$dPercent
$key $val$dPercent
"); //more mapserver stuff $sQVal = substr($sQVal, 0, strlen($sQVal)-1); //Do query $qresult = @$oZipLayer->queryByAttributes($sAttrName,"/". $sQVal."/",MS_MULTIPLE); $image = $map->drawQuery(); $image_url = $image->saveWebImage(); $error = ms_GetErrorObj(); while($error && $error->code != MS_NOERR) { printf("Error in %s: %s \n", $error->routine, $error->messaage); $error = $error->next(); } ?>

This is an unprojected map of the 5 digit zip code boundries for the state of Texas, from the US Census Bureau.

To find the categories for the legend, I used the ogrinfo utility twice. ogrinfo -a -summary zt48_d00.shp let me see what fields were available, and ogrinfo -a zt48_d00.shp|grep SYMBOL|sort -u told me what all of the unique values were so that I could build my CLASS definitions in TX1.map.

getNumResults() > 0) echo $oZipLayer->getNumResults()." zips found."; else echo "No zips found." ?> ------------------------------------------------- map file --------------------------------------------- MAP NAME TX IMAGETYPE PNG SIZE 600 600 IMAGECOLOR 255 255 255 SHAPEPATH "/Library/WebServer/Documents/data" FONTSET "/Library/fonts/fonts.list" EXTENT -106.645646 25.837377 -93.516407 36.500704 UNITS METERS WEB IMAGEPATH "/Library/WebServer/Documents/test/" IMAGEURL "/test/" END LEGEND STATUS EMBED POSITION UR END SCALEBAR TRANSPARENT ON BACKGROUNDCOLOR 0 0 0 STATUS EMBED POSITION LR STYLE 1 END LAYER NAME "TX zip code boundaries" TYPE POLYGON STATUS DEFAULT DATA "zt48_d00" CLASS COLOR 255 255 255 OUTLINECOLOR 0 0 0 END TEMPLATE "x" END LAYER NAME "credits" STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 10 480 END TEXT 'Made with Mapserver.' END CLASS LABEL TYPE BITMAP POSITION CR COLOR 0 0 0 END END END END From jmckenna at DMSOLUTIONS.CA Fri Jul 8 08:41:09 2005 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Fri, 8 Jul 2005 11:41:09 -0400 Subject: ms4w, chamelion, maplab In-Reply-To: Message-ID: hi Leapold, To setup your mapfile as a WMS server, some metadata items are required. To view an example wms-server mapfile see the doc at http://mapserver.gis.umn.edu/doc/wms-server-howto.html#sample-mapfile. You can also install the GMap 'Sample Application' for your MS4W installation from http://www.maptools.org/ms4w/index.phtml?page=downloads.html. This GMap package contains a valid wms-server mapfile (gmap75_wms.map), as well as valid wms requests that are listed on the localhost page. hope that helps a little. jeff Leopold Schefcik (MULTIMEDIAPLAN.AT) wrote: > hi list, > > I have installed ms4w with chamelion and maplab. > > - in maplab I can create my layers with styles and so on... > > - but hov can I make these layes available for the web? > > at http://localhost there is a link to > http://localhost/cgi-bin/mapserv_44.exe - that shut be the WMS > > at Chamelion there is a link to http://localhost/chameleon/cwc2/ with > the point: > > > > Service Instance Getting Capabilities /(inactive feature)/ > > The URL to get the Service Instance capabilities is /(Note: this doesn't > do anything yet)/: > > * http://localhost/chameleon/cwc2/cwc2.php? > service=VCG > &request=GetCapabilities > &version=0.1.0 service=VCG &request=GetCapabilities &version=0.1.0> > > > request=GetCapabilities Request sounds fine, but why is this an > /"(inactive feature)"???/ > // > What can I do to make my layers available in an WMS Viewer for other > persons? > > greatings - Leopold > // > > > > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From pinktomate at HOTMAIL.COM Fri Jul 8 08:41:35 2005 From: pinktomate at HOTMAIL.COM (Pinktomate Pink) Date: Fri, 8 Jul 2005 10:41:35 -0500 Subject: help with jbox In-Reply-To: Message-ID: Yeah, the applet is not inside the page, to display the shapes y have the following sentence in html
Well, how can I put the applet inside this sentence, to replace the transparent pixel.gif that displays the shapefiles!!! Regards _________________________________________________________________ Charla con tus amigos en l?nea mediante MSN Messenger: http://messenger.latam.msn.com/ From eros.agosto at POLITO.IT Fri Jul 8 08:34:56 2005 From: eros.agosto at POLITO.IT (Eros Agosto) Date: Fri, 8 Jul 2005 17:34:56 +0200 Subject: OFFSITE transparency question Message-ID: Hi list, i read on a previous post the hint to use the OFFSITE statement in the LAYER block for an image in order to make pixels having a certain value transparent. I tried and it works. The question is: in case of tiling many rasters, is it possible to use the statement once for the tile, or have I to use it for each Raster file? for each raster file LAYER NAME name DATA "name_rasterfile" TYPE RASTER STATUS ON OFFSITE 255 255 255 END or is it possible to use the following LAYER NAME raster_tile TILEINDEX "tileindex_shape.shp" TILEITEM "location" TYPE RASTER STATUS ON OFFSITE 255 255 255 END I tried and it didn't work... I was wondering if i made something wrong, or this way can't just work. Thanks in advance to anyone has suggestions Eros Eros Agosto DITAG - Politecnico di Torino C.so Duca degli Abruzzi, 24 10129 Torino - ITALIA Telefono: +390115647719 Fax: +390115647699 eros.agosto at polito.it -------------- next part -------------- An HTML attachment was scrubbed... URL: From eros.agosto at POLITO.IT Fri Jul 8 08:41:21 2005 From: eros.agosto at POLITO.IT (Eros Agosto) Date: Fri, 8 Jul 2005 17:41:21 +0200 Subject: OFFSITE transparency question Message-ID: Hi list hello again I have already answered my question.. It works also in the tiling case... the problem it was me Cheers Eros Eros Agosto DITAG - Politecnico di Torino C.so Duca degli Abruzzi, 24 10129 Torino - ITALIA Telefono: +390115647719 Fax: +390115647699 eros.agosto at polito.it -------------- next part -------------- An HTML attachment was scrubbed... URL: From nbest at SPEAKEASY.NET Fri Jul 8 09:10:13 2005 From: nbest at SPEAKEASY.NET (Neil Best) Date: Fri, 8 Jul 2005 11:10:13 -0500 Subject: wfs server with postgis data Message-ID: Hello, everyone. Armed with knowledge and zeal from the meeting in Minneapolis, I sat down to implement a project with PostGIS and MapServer. I have been able to see my PostGIS layer with the QGIS client so my next though was to set up a WFS server so that I could view it with ArcMap (9.0 w/Data Interopability thingy for now; is 9.1 any better?). I am using Debian testing with Debian-GIS packages, which I believe are all updated. I am using a ~user account and the wrapper script suggested at http://mapserver.gis.umn.edu/doc44/wfs-server-howto.html#wfs_onlineresource My GetCapabilities request seems fine. Try this: http://geo.neiu.edu/~neiuveg/cgi-bin/trees?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetCapabilities but when I try the GetFeature test with http://geo.neiu.edu/~neiuveg/cgi-bin/trees?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=trees I get a 500 Internal Server Error. The Apache2 error log gives the enigmatic "Premature end of script headers: trees" message. I have found many references to this error in the list archives, but always in a different context, as far as I can tell. At first I thought it was a problem with my wfs_onlineresource metadata when I noticed that it didn't match -- still had host/cgi-bin/mapserv... from the example, but changing that had no visible effect. What else can I tell you to flesh out the situation? You should be able to see my map file at http://geo.neiu.edu/~neiuveg/trees.map Thanks for your comments and suggestions. In the meantime I will try to set up a separate service using some shapefile data -- back to basics. Neil From frogbot at GMAIL.COM Fri Jul 8 09:49:35 2005 From: frogbot at GMAIL.COM (Kenneth Denson) Date: Fri, 8 Jul 2005 11:49:35 -0500 Subject: Overview Images in Mapserver Message-ID: I have 9 24-bit geotiffs that I've indexed using gdaltindex. They display just perfectly in mapserver, but the problem is that it can be a little slow. I've used gdaladdo to add some overview levels to the geotiffs, but how do I tell mapserver to use those overviews? Or is it doing it automatically? Just for reference, the following is the information about the geotiffs and how their layer looks in mapserver. Size is 10000, 10000 Coordinate System is `' Origin = (2360000.000000,850000.000000) Pixel Size = (0.500000,-0.500000) Metadata: TIFFTAG_SOFTWARE=Adobe Photoshop 7.0 TIFFTAG_DATETIME=2003:11:17 17:34:02 Corner Coordinates: Upper Left ( 2360000.000, 850000.000) Lower Left ( 2360000.000, 845000.000) Upper Right ( 2365000.000, 850000.000) Lower Right ( 2365000.000, 845000.000) Center ( 2362500.000, 847500.000) Band 1 Block=10000x1 Type=Byte, ColorInterp=Red Overviews: 3x3, 3x3, 3x3, 3x3, 3x3, 3x3, 3x3, 3x3, 5000x5000, 2500x2500, 1667x1667, 1250x1250, 1000x1000 Band 2 Block=10000x1 Type=Byte, ColorInterp=Green Overviews: 3x3, 3x3, 3x3, 3x3, 3x3, 3x3, 3x3, 3x3, 5000x5000, 2500x2500, 1667x1667, 1250x1250, 1000x1000 Band 3 Block=10000x1 Type=Byte, ColorInterp=Blue Overviews: 3x3, 3x3, 3x3, 3x3, 3x3, 3x3, 3x3, 3x3, 5000x5000, 2500x2500, 1667x1667, 1250x1250, 1000x1000 LAYER NAME "orthophoto" METADATA "tiles" "orthophoto" END STATUS ON TILEINDEX "tiles.shp" TILEITEM "location" TYPE RASTER END Kenneth Denson Spatial Focus Inc. kdenson at spatialfocus.com From ed at TOPOZONE.COM Fri Jul 8 10:07:00 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 8 Jul 2005 13:07:00 -0400 Subject: Overview Images in Mapserver Message-ID: Kenneth - Provided MapServer is built using GDAL (which it will be, if you're seeing 24-bit GeoTIFFs at all) then the overviews will be used automatically. For the best possible performance you will have overviews that precisely match the scale of the requested image. GDAL will use the overview with the lowest resolution that is not less than the requested resolution, and resample from there. If you create a 3x overview and then zoom out by a factor of 2, that overview won't be used at all. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Kenneth Denson Sent: Friday, July 08, 2005 12:50 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Overview Images in Mapserver I have 9 24-bit geotiffs that I've indexed using gdaltindex. They display just perfectly in mapserver, but the problem is that it can be a little slow. I've used gdaladdo to add some overview levels to the geotiffs, but how do I tell mapserver to use those overviews? Or is it doing it automatically? Just for reference, the following is the information about the geotiffs and how their layer looks in mapserver. Size is 10000, 10000 Coordinate System is `' Origin = (2360000.000000,850000.000000) Pixel Size = (0.500000,-0.500000) Metadata: TIFFTAG_SOFTWARE=Adobe Photoshop 7.0 TIFFTAG_DATETIME=2003:11:17 17:34:02 Corner Coordinates: Upper Left ( 2360000.000, 850000.000) Lower Left ( 2360000.000, 845000.000) Upper Right ( 2365000.000, 850000.000) Lower Right ( 2365000.000, 845000.000) Center ( 2362500.000, 847500.000) Band 1 Block=10000x1 Type=Byte, ColorInterp=Red Overviews: 3x3, 3x3, 3x3, 3x3, 3x3, 3x3, 3x3, 3x3, 5000x5000, 2500x2500, 1667x1667, 1250x1250, 1000x1000 Band 2 Block=10000x1 Type=Byte, ColorInterp=Green Overviews: 3x3, 3x3, 3x3, 3x3, 3x3, 3x3, 3x3, 3x3, 5000x5000, 2500x2500, 1667x1667, 1250x1250, 1000x1000 Band 3 Block=10000x1 Type=Byte, ColorInterp=Blue Overviews: 3x3, 3x3, 3x3, 3x3, 3x3, 3x3, 3x3, 3x3, 5000x5000, 2500x2500, 1667x1667, 1250x1250, 1000x1000 LAYER NAME "orthophoto" METADATA "tiles" "orthophoto" END STATUS ON TILEINDEX "tiles.shp" TILEITEM "location" TYPE RASTER END Kenneth Denson Spatial Focus Inc. kdenson at spatialfocus.com From rjames57 at YAHOO.COM Fri Jul 8 10:23:40 2005 From: rjames57 at YAHOO.COM (Randy James) Date: Fri, 8 Jul 2005 10:23:40 -0700 Subject: embed text when group member is on Message-ID: Hi I am trying to figgure out how i can embed text when a member of a group is turned on using the mapserver 4.6 cgi. I can turn on a single layer and have embeded text. But i have 20 layers that belong to a group and would like to be able to have embeded text when any layer of the group is turned on. Is there a easy way to do this? Randy __________________________________ Do you Yahoo!? Make Yahoo! your home page http://www.yahoo.com/r/hs From fwarmerdam at GMAIL.COM Fri Jul 8 10:24:43 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri, 8 Jul 2005 13:24:43 -0400 Subject: Overview Images in Mapserver In-Reply-To: Message-ID: On 7/8/05, Kenneth Denson wrote: > I have 9 24-bit geotiffs that I've indexed using gdaltindex. They display > just perfectly in mapserver, but the problem is that it can be a little > slow. I've used gdaladdo to add some overview levels to the geotiffs, but > how do I tell mapserver to use those overviews? Or is it doing it > automatically? Just for reference, the following is the information about > the geotiffs and how their layer looks in mapserver. > > Size is 10000, 10000 > Coordinate System is `' > Origin = (2360000.000000,850000.000000) > Pixel Size = (0.500000,-0.500000) > Metadata: > TIFFTAG_SOFTWARE=Adobe Photoshop 7.0 > TIFFTAG_DATETIME=2003:11:17 17:34:02 > Corner Coordinates: > Upper Left ( 2360000.000, 850000.000) > Lower Left ( 2360000.000, 845000.000) > Upper Right ( 2365000.000, 850000.000) > Lower Right ( 2365000.000, 845000.000) > Center ( 2362500.000, 847500.000) > Band 1 Block=10000x1 Type=Byte, ColorInterp=Red > Overviews: 3x3, 3x3, 3x3, 3x3, 3x3, 3x3, 3x3, 3x3, 5000x5000, 2500x2500, > 1667x1667, 1250x1250, 1000x1000 > Band 2 Block=10000x1 Type=Byte, ColorInterp=Green > Overviews: 3x3, 3x3, 3x3, 3x3, 3x3, 3x3, 3x3, 3x3, 5000x5000, 2500x2500, > 1667x1667, 1250x1250, 1000x1000 > Band 3 Block=10000x1 Type=Byte, ColorInterp=Blue > Overviews: 3x3, 3x3, 3x3, 3x3, 3x3, 3x3, 3x3, 3x3, 5000x5000, 2500x2500, > 1667x1667, 1250x1250, 1000x1000 Ken, Ed already answer most issues, but I just wanted to mention a couple of things. 1) You have a whole series of 3x3 overviews which is pretty strange. What gdaladdo commandline did you use? I would suggest something like: gdaladdo your.tif 2 4 8 16 32 64 The "64" level will produce overviews that are 157 x 157 for your 10K x 10K files. There isn't much point in going beyond this. There is a bit of cost to having extra overviews as GDAL needs to parse the TIFFF directory for each overview. 2) At rull resolution you will get better render performance if the data file is internally tiled. Currently a 400x400 full res view will require reading through 400 scanlines of data or 400x10000 pixels of data. If your TIFF was internally tiled, it would likely be more like 4-9 256x256 tiles being accessed. substantially cutting down the amount of data that needs to be accessed from disk. You can rewrite a scanline oriented file to tiled like this: gdal_translate -co TILED=YES original.tif tiled.tif Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From ezequias at RECIFE.PE.GOV.BR Fri Jul 8 10:49:13 2005 From: ezequias at RECIFE.PE.GOV.BR (Ezequias Rodrigues da Rocha) Date: Fri, 8 Jul 2005 14:49:13 -0300 Subject: Presentations Message-ID: Hi all, Does anyone have any good presentation of MAPSERVER (WFS/WMS) Framework ? I do find one on the website. but if you have something more I would be glad Best regards Ezequias -------------- next part -------------- An HTML attachment was scrubbed... URL: From gomckenz at GEOSQL.COM Fri Jul 8 11:10:36 2005 From: gomckenz at GEOSQL.COM (GOM) Date: Fri, 8 Jul 2005 13:10:36 -0500 Subject: Maperver and IIS question Message-ID: Thanks Ed, I have not used this list much and will try to be more explicit in the subject line. Yes the form submit points to mapserv. What I had hoped to get across but did not state clearly enough is this. I have two side by side machines with the same installs of the demo. The XPPro and IIS 5 demo works perfectly. The Windows 2003 and IIS 6 demo does not. So I have not suspected the HTML. I am willing to look at anything. I know these things have a logical explanation so I will look at the HTML and anything else I can and see what I come up with. If you have any suggestions as to how I can simplify things for testing that would be great. I will try to set up a generic page om IIS6, with no mapserver, and see what happens with form submits etc. See if it is something related to HTML code etc. Thanks again. From ed at TOPOZONE.COM Fri Jul 8 11:16:01 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 8 Jul 2005 14:16:01 -0400 Subject: Maperver and IIS question Message-ID: Dear GOM - If NOTHING happens when you click on those buttons, then check your browser setup. If the form is being submitted, then IIS should return SOMETHING, even if it's an error message. If nothing happens, then it seems that the form is disabled. Is JavaScript being used in that demo? Is JavaScript enabled in both browsers? Look at the difference in the BROWSERS, not in the servers. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of GOM Sent: Friday, July 08, 2005 2:11 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Maperver and IIS question Thanks Ed, I have not used this list much and will try to be more explicit in the subject line. Yes the form submit points to mapserv. What I had hoped to get across but did not state clearly enough is this. I have two side by side machines with the same installs of the demo. The XPPro and IIS 5 demo works perfectly. The Windows 2003 and IIS 6 demo does not. So I have not suspected the HTML. I am willing to look at anything. I know these things have a logical explanation so I will look at the HTML and anything else I can and see what I come up with. If you have any suggestions as to how I can simplify things for testing that would be great. I will try to set up a generic page om IIS6, with no mapserver, and see what happens with form submits etc. See if it is something related to HTML code etc. Thanks again. From David.Hunter at FNF.COM Fri Jul 8 11:22:28 2005 From: David.Hunter at FNF.COM (Hunter, David - St. Louis Park, MN) Date: Fri, 8 Jul 2005 13:22:28 -0500 Subject: LABELMAXSCALE question Message-ID: I have a map file that uses Mapinfo tab files as a datasource. The tab files are in lat/lon NAD83. I'm playing with LABELMAXSCALE, etc., to try to get a handle on how I want to configure the map's appearance. What units is LABELMAXSCALE expressed in? For instance, the initial width of my map (according to MapInfo) is 25.01 miles. When I set a layer's LABELMAXSCALE to 100000, its label appears after I zoom in twice (to a map width of approximately 11.2 miles). The 100000 scale units has me scratching my head, and Google hasn't helped much. What am I working with here? The map's units are set to DD and the projection is set to epsg:4267. Any other info that is needed, just let me know. David S. Hunter Sr. Software Engineer Fidelity National Geographic Solutions division of Fidelity National Financial 5353 Gamble Drive, Suite 201 St. Louis Park, MN 55416 * Email: david.hunter at fnf.com ' Phone: 952.542.1440 ext. 256 * Fax: 952.542.3859 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpbonk at AOL.COM Fri Jul 8 11:27:12 2005 From: jpbonk at AOL.COM (John Bonk) Date: Fri, 8 Jul 2005 14:27:12 -0400 Subject: Serving A Large Archive an openpap-client/wms-server Message-ID: We have a lot of data on an opendap server. We had plans for a MapServer opendap-client/wms-server--in other words we wanted to build a MapServer that will serve raster data from our opendap server. We were working on a prototype that will serve one of our products. The product consists of monthly files, each file contains 2 parameters per file. At present there are over 80 months (files) of data. I still consider myself a novice and may have some misconceptions about MapServer, but my understanding is that to offer this data I will need a mapfile with over 160 layers--one for each file times 2 for the 2 parameters. I read in one of the documents (http://mapserver.gis.umn.edu/doc44/mapfile-reference.html) that there is a 50 layer limit for a mapfile. The document said that this limit could be raised by making a change to map.h. However, some of our products have files containing over a hundred parameters. I estimate that if we wanted to offer each of the parameters in each file for several of our products, we would need a mapfile with hundreds of thousands layers. Are we expecting too much from mapserver? Is there any way around this problem? Does anyone have any suggestions for serving data that is scattered through thousands of files? From fwarmerdam at GMAIL.COM Fri Jul 8 11:33:07 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri, 8 Jul 2005 14:33:07 -0400 Subject: Serving A Large Archive an openpap-client/wms-server In-Reply-To: <8C75201CB5CD508-85C-286B@MBLK-M33.sysops.aol.com> Message-ID: On 7/8/05, John Bonk wrote: > We have a lot of data on an opendap server. We had plans for a > MapServer opendap-client/wms-server--in other words we wanted to build > a MapServer that will serve raster data from our opendap server. > > We were working on a prototype that will serve one of our products. > The product consists of monthly files, each file contains 2 parameters > per file. At present there are over 80 months (files) of data. > > I still consider myself a novice and may have some misconceptions > about MapServer, but my understanding is that to offer this data I will > need a mapfile with over 160 layers--one for each file times 2 for the > 2 parameters. > > I read in one of the documents > (http://mapserver.gis.umn.edu/doc44/mapfile-reference.html) that there > is a 50 layer limit for a mapfile. The document said that this limit > could be raised by making a change to map.h. However, some of our > products have files containing over a hundred parameters. I estimate > that if we wanted to offer each of the parameters in each file for > several of our products, we would need a mapfile with hundreds of > thousands layers. Are we expecting too much from mapserver? > > Is there any way around this problem? > > Does anyone have any suggestions for serving data that is scattered > through thousands of files? John, I think it might make more sense to either produce map objects dynamically using mapscript, or create one mapfile for each dataset to serve rather than trying to offer all the products through one master .map file. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From jpbonk at AOL.COM Fri Jul 8 11:48:20 2005 From: jpbonk at AOL.COM (John Bonk) Date: Fri, 8 Jul 2005 14:48:20 -0400 Subject: Serving A Large Archive an openpap-client/wms-server In-Reply-To: <931f8ea9050708113314f188d9@mail.gmail.com> Message-ID: Frank, Thanks. We have considered dynamic generation of map files. I haven't yet been able to read up on mapscript, but I'm wondering how a user would do a GetCapabilities request it this case. John -----Original Message----- From: Frank Warmerdam To: jpbonk at aol.com Cc: MAPSERVER-USERS at lists.umn.edu Sent: Fri, 8 Jul 2005 14:33:07 -0400 Subject: Re: [UMN_MAPSERVER-USERS] Serving A Large Archive an openpap-client/wms-server On 7/8/05, John Bonk wrote: > We have a lot of data on an opendap server. We had plans for a > MapServer opendap-client/wms-server--in other words we wanted to build > a MapServer that will serve raster data from our opendap server. > > We were working on a prototype that will serve one of our products. > The product consists of monthly files, each file contains 2 parameters > per file. At present there are over 80 months (files) of data. > > I still consider myself a novice and may have some misconceptions > about MapServer, but my understanding is that to offer this data I will > need a mapfile with over 160 layers--one for each file times 2 for the > 2 parameters. > > I read in one of the documents > (http://mapserver.gis.umn.edu/doc44/mapfile-reference.html) that there > is a 50 layer limit for a mapfile. The document said that this limit > could be raised by making a change to map.h. However, some of our > products have files containing over a hundred parameters. I estimate > that if we wanted to offer each of the parameters in each file for > several of our products, we would need a mapfile with hundreds of > thousands layers. Are we expecting too much from mapserver? > > Is there any way around this problem? > > Does anyone have any suggestions for serving data that is scattered > through thousands of files? John, I think it might make more sense to either produce map objects dynamically using mapscript, or create one mapfile for each dataset to serve rather than trying to offer all the products through one master .map file. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From johng at AMDSWIRELESS.COM Fri Jul 8 11:50:42 2005 From: johng at AMDSWIRELESS.COM (John Gorkos) Date: Fri, 8 Jul 2005 13:50:42 -0500 Subject: PHP-MapScript Memory Exhaustion Error Message-ID: Gurus- I am writing a PHP-MapScript script which pulls a list of points from a DB, and plots them on the map using multiple styles per point. The styles are dynamically altered in the script to basically draw a small bar graph with 7 bars at each map point, to reflect various health parameters of some remote equipment. I have mad this work in perl. Under PHP, I am allowed to add two styles per point, but when I add the third, I get this: Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 75 bytes) in /var/www/html/foo.phtml The code snippet which produces this is as follows: $image=$map->draw(); $meterLayer = $map->getLayerByName("Endpoints"); $meterClass0 = $meterLayer->getClass(0); $rs= mssql_query ($sql, $con); $red = array(255,255,255,225,0,150,0); $green = array(255,0,255,0,200,100,0); $blue = array(255,0,0,150,150,50,255); while ( $row = mssql_fetch_row($rs)) { for ( $i=0; $i<3; $i++ ) { $meterStyle[$i] = $meterClass0->getStyle($i); $meterStyle[$i]->outlinecolor->setRGB($red[$i],$green[$i],$blue[$i]); $meterStyle[$i]->color->setRGB($red[$i],$green[$i],$blue[$i]); $meterStyle[$i]->set('offsetx',$i*3); $meterStyle[$i]->set('offsety',0); } $point = ms_newPointObj(); $point->setXY((-1)*$row[1],$row[0]); $point->draw($map,$meterLayer,$image,0,$row[2]); } $image_url=$image->saveWebImage(); If the "3" in the for loop above is set to 2 or 1, it works fine, but I need it to be an 8, which obviously fails. More code available on request. I am using Mapserver 2.6, PHP 5.0.4. The machine is 64-bit Mandrake Linux installation on dual Xeons with 2GB of physical ram, yadda yadda. It's a healthy machine, and has run this same type of code under 2.6beta3 with Perl Mapscript. However, I formatted the box to switch from SuSE to Mandrake, and forgot to copy the perl script over before I formatted the / partition (insert lots of comments about backups, etc),so I'm rewriting in PHP since I was shamed into learning in on the #mapserver irc channel. Anyone have any thoughts on where I'm wrong, or is this a bug? John Gorkos AMDS Wireless, LLC From fwarmerdam at GMAIL.COM Fri Jul 8 12:04:58 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri, 8 Jul 2005 15:04:58 -0400 Subject: Serving A Large Archive an openpap-client/wms-server In-Reply-To: <8C75204BEF680D5-85C-2AF7@MBLK-M33.sysops.aol.com> Message-ID: On 7/8/05, jpbonk at aol.com wrote: > Frank, > > Thanks. We have considered dynamic generation of map files. > > I haven't yet been able to read up on mapscript, but I'm wondering how > a user would do a GetCapabilities request it this case. John, I don't really know if it is possible to use mapscript to generate a mapObj and then invoke the mapserver WMS capabilities action on it (much less getmap). It might be possible, but I think it is pushing the envelope a bit. Alternatively, you could write a scripted cgi to intercept the getcapabilities/getmap requests and prepare a temporary map file on disk, then invoke mapserv. This wouldn't specfically need mapscript. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From gomckenz at GEOSQL.COM Fri Jul 8 12:06:13 2005 From: gomckenz at GEOSQL.COM (Subscribe Mapserver-Users Gom) Date: Fri, 8 Jul 2005 14:06:13 -0500 Subject: Maperver and IIS question Message-ID: Thanks Ed, I need to dig deeper into this. The client browser is the same machine in both cases so not a javascript enabled problem. I get your idea that it is not likely server specific. I will see what I can find out and thatnks for the pointers. From pramsey at REFRACTIONS.NET Fri Jul 8 12:45:24 2005 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Fri, 8 Jul 2005 12:45:24 -0700 Subject: Other spatial database development (PostGIS) In-Reply-To: <438E441D-4549-43B0-856C-538B70AA043E@REFRACTIONS.NET> Message-ID: The plot thickens: http://support.esri.com/ index.cfm?fa=knowledgebase.techarticles.articleShow&d=16643 P On Friday, July 8, 2005, at 08:00 AM, Paul Ramsey wrote: > Read-only OleDB would probably work fine. It would still be some > effort to implement. Most people really consider read/write the gold > standard they need for ArcMap, which is why I was focussing on it. > > Paul > > > On 8-Jul-05, at 6:18 AM, uli mueller wrote: > >> Paul, why exactly are the signs not promising? Is >> it "only" because OLEDB provides read-only access for ArcGIS? I did >> not >> really delve into the article you cited, but what I read sounded like >> you can use PostGIS WKBs 1:1 with OLEDB for ArcGIS?? Has anybody >> successfully implemented read-access from ArcGIS 9 to PG? Would this >> be only an ugly or also a never-ending hack? >> >> Background: We also have a project where we are constrained to use a >> personal geodatabase and would be happy to switch to PostGIS. >> Read-only would be sufficient in this case. >> >> Uli >> >> -- >> geOps GeoInformatics >> D-79100 Freiburg >> >> Alex Smith wrote: >> >>> I'd like to preface this by acknowledging that my technical >>> ineptitude may have been the cause of my unsuccessful attempts to >>> write tabular data to external OLEDB databases from ArcGIS. And I'd >>> also like to point out that it's been a while since I tried doing so >>> - things may have changed. But my experiences have lead me to >>> believe that ESRI has (or had) carefully implemented ArcGIS in a >>> manner that prevents users from writing to external DBMS without >>> using ArcSDE. We do alot of spatial processing that output and >>> affects a considerable amount of tabular data that many other rely >>> on and edit where necessary. Because we're already pushing the >>> limits of Access, I looked into other options when we started some >>> new projects....and an affordable option, such as Postgres or MySQL. >>> Here's what I found >>> In the original "Exploring ArcObjects" book, published near the >>> release of ArcGIS 8.0, states that OLEDB connections to ArcGIS are >>> read only. Hence, we couldn't directly output data to an external >>> table joined to a Access based featureclass. Sure, we can later use >>> ADO to update the 'enterprise' database from the Access geodatabase, >>> but that starts to get messy or becomes, to use Paul's words, a >>> "moderately ugly hack" (why have the middle-man Geodatabase tables - >>> like pgArc had the middle-man shapefiles). So I tried linking in a >>> MySQL table to via ODBC in a geodatabase .mdb file and attempted to >>> edit that table (no spatial data) from ArcGIS - I got a message >>> stating that linked tables cannot be written to. DAO tables (and >>> I'm fairly certain that ArcGIS interacts with Access databases using >>> DAO), have a property that returns true if they are linked tables. >>> So it seems that the ArcGIS has code that tests this property and >>> does not allow users to edit these tables. I fi >>> >> nd it very >> >>> hard to believe that this was accidental. And I later felt naive >>> for thinking I could somehow 'outsmart' them - ESRI's software >>> engineers are not dumb. Expect some resistance in attempting to >>> circumnavigate their systems. I understand their need to protect >>> their investment - the ArcGIS spatial editting tools (including >>> topology and networks) and ArcSDE must have cost a lot of money to >>> develop. And it's good software - ESRI has earned a lot of its >>> success. It just sucks for those of us on a limited budget - SDE >>> licenses on top of commercial RDBMS fees is simply unaffordable in >>> our case. On the other hand, ESRI seems to be opening up. But >>> they must continue to recover their development costs somehow. And >>> I'd be surprised if they'd make it easy for other develop tools to >>> compete with their systems. Yes, being able to directly edit >>> PostGIS data using ArcGIS-like editing tools would be huge....but I >>> don't think that it would be easy and would probably be >>> cost-prohibitive. As Paul mentioned, if these things were easily >>> and cost-effectively attainable, then it probably would have been >>> done by now. But then again....look how successful mapserver has >>> become. Just my thoughts...... >>> Alex >>> Paul Ramsey wrote: >>> Guys, I am happy to spec this out again, but frankly I fear that >>> most solutions will remain in the "moderately ugly hack" domain, ala >>> PgArc. I have investigated more elegant things (oledb) but the signs >>> are not promising (http://arcgisdeveloperonline.esri.com/ >>> ArcGISDeveloper/ExtendingArcObjects/Ch07/AboutOLEDBProviders.htm). >>> Principally, the continuing lack of an Oracle Spatial third party >>> read/write extension on the market says to me that such a thing is >>> just technically not possible to do attractively. If it were, >>> someone would have written it by now and be making money on it. If >>> anyone knows of such a thing, please do tell, it would be a good >>> positive sign of possible success. >>> Paul >>> On 7-Jul-05, at 10:22 AM, Ken Lord wrote: >>> >>>> Hi Mike, >>>> >>>> This is a major interest to us, we would like to see a push for >>>> this as well, in fact I was just asked to contact Tyler Mitchell >>>> about pgArc when I return from my holidays. Tyler! are your ears >>>> burning? hehe >>>> >>>> pgArc can be found at SourceForge if you want to check it out. It >>>> has some functionality with ArcGIS 8, but I haven't had it work >>>> with ArcGIS 9. >>>> >>>> We are locked into personal geodatabases for some of our clients, >>>> development of a fully functional ArcGIS / PostGIS connection would >>>> give us a lot more flexibility too. >>>> >>>> Cheers, >>>> Ken Lord >>>> Vancouver BC >>>> >>>> >>>> >>>> >>>> On 7/7/05, Mike Davis wrote: Since we seem to be building some >>>> momentum on the ESRI personal >>>> geodatabase thing, it seems like a good time to bring up the other >>>> database related item on our wishlist. >>>> >>>> What would be required to allow read/write to a PostGIS database >>>> from >>>> ArcGIS? I would love the ability to maintain our spatial data in >>>> multiple datbase formats (must me my irrational fear of vendor >>>> lock-in), but unless we can manage the data from within ArcGIS it >>>> isn't really a practical option for us. >>>> >>>> -Mike >>>> >>> __________________________________________________ >>> Do You Yahoo!? >>> Tired of spam? Yahoo! Mail has the best spam protection around >>> http://mail.yahoo.com >>> >> >> >> -- >> geOps GeoInformatics >> D-79100 Freiburg >> >> Paul Ramsey Refractions Research Email: pramsey at refractions.net Phone: (250) 885-0632 From ezequias at RECIFE.PE.GOV.BR Fri Jul 8 13:07:50 2005 From: ezequias at RECIFE.PE.GOV.BR (Ezequias Rodrigues da Rocha) Date: Fri, 8 Jul 2005 17:07:50 -0300 Subject: PC256 color images (I need more quality) Message-ID: Good afternoon (for some of you) I am trying to make Mapserver render a 24bits but it only send to me a 256 colors image. Here some of my Map file: _____________________________________________________________________________ ________________ fontset "/usr/java/jre1.5.0_01/lib/fonts/LucidaTypewriterRegular.ttf" imagecolor 255 255 255 imagetype jpeg shapepath "/var/www/cgi-bin/" size 600 440 units meters projection "int=epsg:29185" end LAYER NAME "Imagem56" data "raster/recorte_56.tif" STATUS off TYPE RASTER PROCESSING "DITHER=YES" PROCESSING "BANDS=1,2,3" PROCESSING "COLOR_MATCH_THRESHOLD=3" END OUTPUTFORMAT NAME jpeg DRIVER "GD/JPEG" MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" END end # End Map Best regards to all Ezequias From nacional at CBS.UMN.EDU Fri Jul 8 13:06:20 2005 From: nacional at CBS.UMN.EDU (Pericles S. Nacionales) Date: Fri, 8 Jul 2005 15:06:20 -0500 Subject: PC256 color images (I need more quality) In-Reply-To: <42CEDD16.000001.03112@DC_EZEQUIAS> Message-ID: I don't quite understand--you're using JPEG as output format and you're getting a bitmapped image? Try IMAGETYPE PNG24, or define an OUTPUTFORMAT and use RGB as IMAGEMODE. Check http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#outputformat for more info. Good luck! -Perry On Friday 08 July 2005 15:07, Ezequias Rodrigues da Rocha wrote: > Good afternoon (for some of you) > > > I am trying to make Mapserver render a 24bits but it only send to me a 256 > colors image. > > > Here some of my Map file: > ___________________________________________________________________________ >__ ________________ > fontset "/usr/java/jre1.5.0_01/lib/fonts/LucidaTypewriterRegular.ttf" > imagecolor 255 255 255 > imagetype jpeg > shapepath "/var/www/cgi-bin/" > size 600 440 > units meters > projection > "int=epsg:29185" > end > > > > LAYER > NAME "Imagem56" > data "raster/recorte_56.tif" > STATUS off > TYPE RASTER > PROCESSING "DITHER=YES" > PROCESSING "BANDS=1,2,3" > PROCESSING "COLOR_MATCH_THRESHOLD=3" > END > OUTPUTFORMAT > NAME jpeg > DRIVER "GD/JPEG" > MIMETYPE "image/jpeg" > IMAGEMODE RGB > EXTENSION "jpg" > END > > end # End Map > > > Best regards to all > > Ezequias -- Pericles S. Nacionales Conservation Biology Program University of Minnesota 1530 Cleveland Ave. N., 115GrnH St. Paul, MN 55108 From nacional at CBS.UMN.EDU Fri Jul 8 13:12:36 2005 From: nacional at CBS.UMN.EDU (Pericles S. Nacionales) Date: Fri, 8 Jul 2005 15:12:36 -0500 Subject: PC256 color images (I need more quality) In-Reply-To: <42CEDD16.000001.03112@DC_EZEQUIAS> Message-ID: Ah, I should have looked further down on your message. Comment out the PROCESSING parameters and see what happens. -Perry On Friday 08 July 2005 15:07, Ezequias Rodrigues da Rocha wrote: > Good afternoon (for some of you) > > > I am trying to make Mapserver render a 24bits but it only send to me a 256 > colors image. > > > Here some of my Map file: > ___________________________________________________________________________ >__ ________________ > fontset "/usr/java/jre1.5.0_01/lib/fonts/LucidaTypewriterRegular.ttf" > imagecolor 255 255 255 > imagetype jpeg > shapepath "/var/www/cgi-bin/" > size 600 440 > units meters > projection > "int=epsg:29185" > end > > > > LAYER > NAME "Imagem56" > data "raster/recorte_56.tif" > STATUS off > TYPE RASTER > PROCESSING "DITHER=YES" > PROCESSING "BANDS=1,2,3" > PROCESSING "COLOR_MATCH_THRESHOLD=3" > END > OUTPUTFORMAT > NAME jpeg > DRIVER "GD/JPEG" > MIMETYPE "image/jpeg" > IMAGEMODE RGB > EXTENSION "jpg" > END > > end # End Map > > > Best regards to all > > Ezequias -- Pericles S. Nacionales Conservation Biology Program University of Minnesota 1530 Cleveland Ave. N., 115GrnH St. Paul, MN 55108 From matt at MSILEADS.COM Fri Jul 8 13:30:49 2005 From: matt at MSILEADS.COM (Matthew Roberson) Date: Fri, 8 Jul 2005 15:30:49 -0500 Subject: changing the color of object - rephrased Message-ID: Hi, I am having a problem getting a PHP/Mapscript to work and I hope that somebody can offer some help. I posted this earlier today, however I omitted a few details I thought might be pertinent. Here is what I am trying to do. I have a shp file(zt48_d00.shp) from the US Census Bureau that contains 5-digit zip code boundaries for a particular state(Texas in this case). I do a query to find the zip codes I'm interested in. I want some of the zip-code boundaries to be filled in red(or whatever color) and some to be filled in blue (or whatever color). I have written the PHP/Mapscript that I think will produce the results I want, however what I get is all yellow zip codes(see the link below). The portion of the code that is supposed to handle the color is: if($i <= $percent_num) { . . . $oZipClassRed = ms_newClassObj($oZipLayer); $oZipStyleRed = ms_newStyleObj($oZipClassRed); $oZipStyleRed->color->setRG . . . } else { . . . $oZipClassBlue = ms_newClassObj($oZipLayer); $oZipStyleBlue = ms_newStyleObj($oZipClassBlue); $oZipStyleBlue->color->setRGB(0,0,255); . . . } I am running MapServer 4.4.1 on OS X 10.4. I have included the php and .map file that generates this map. I would really appreciate any suggestions. I really need help! Thanks, Matt http://machine.msileads.com/TXZips.html ------------------------------------------------- php file --------------------------------------------- 2080 Machine
0) { $dPercent=($val/$iTotalVal)*100; $dPercent = number_format($dPercent, 2, '.', ''); }// ($iTotalVal>0) else { $dPercent = 0.0; //print "{$iTotalVal} is iTotalVal
"; }// end if ($iTotalVal>0) return $dPercent; } function create8020OutputRecord($query, $zip_array, $adPercents) { // Run the query on the server if (!($result = @ mysql_query ($query))) if ($result) { $jobID = mysql_insert_id(); } //return $jobID; } // end of function mysql_connect ($hostName,$username,$password); mysql_select_db($databaseName); $address_query = mysql_query("select distinct ZipCode from eightytwentyinput where ZipCode <> '' and ZipCode is not NULL"); $address_rows = mysql_num_rows($address_query); for($i=0; $i<$address_rows; $i++) { $address_array = mysql_fetch_array($address_query); $temp_zip = $address_array['ZipCode']; $zip_array[$temp_zip] =0; $adPercents[$temp_zip]=0; $data[$i][0]=0; $data[$i][1]=0; $data[$i][2]=0; } $address_query2 = mysql_query("select ZipCode from eightytwentyinput where ZipCode <> '' and ZipCode is not NULL"); $address_rows2 = mysql_num_rows($address_query2); for($i=0;$i<$address_rows2;$i++) { $address_array2 = mysql_fetch_array($address_query2); $temp_zip2 = $address_array2['ZipCode']; $zip_array[$temp_zip2] += 1; } arsort($zip_array); arsort($adPercents); //mapserver stuff dl("php_mapscript.so"); $map_file="/Library/WebServer/Documents/test/TX1.map"; $map = ms_newMapObj($map_file); $oZipLayer = $map->getLayerByName("TX zip code boundaries"); $sAttrName = 'ZCTA'; //print_r($zip_array); print("There are $address_rows total unique zip codes
"); $iTotalVal = array_sum($zip_array); $percent_num = $address_rows*.20; $i=0; print(""); while (list($key, $val) = each($zip_array)) { $i++; if($i <= $percent_num) { $dPercent = get8020CountPercent($val,$iTotalVal); $qry8020Output = mysql_query("INSERT INTO EightyTwentyOutput VALUES (NULL,'{$jID8020}','{$key}','{$val}','{$dPercent}')"); create8020OutputRecord($qry8020Output, $zip_array, $adPercents); echo ""; //pdf stuff $data[$i][0]=$key; $data[$i][1]=$val; $data[$i][2]=$dPercent; //mapserver stuff if(strlen($key)<=5) { if(strncmp($key, "77", 2)== 0) { $oZipLayer->set("labelitem", 'ZCTA'); $sQVal=$sQVal.$key."|"; $oZipClassRed = ms_newClassObj($oZipLayer); $oZipClassRed->setexpression($key); $oZipStyleRed = ms_newStyleObj($oZipClassRed); $oZipStyleRed->color->setRGB(250,0,0); } } } // ($i <= $percent_num) else { $dPercent = get8020CountPercent($val,$iTotalVal); $qry8020Output = mysql_query("INSERT INTO EightyTwentyOutput VALUES (NULL,'{$jID8020}','{$key}','{$val}','{$dPercent}')"); create8020OutputRecord($qry8020Output, $zip_array, $adPercents); echo ""; //pdf stuff $data[$i][0]=$key; $data[$i][1]=$val; $data[$i][2]=$dPercent; //mapserver stuff if(strlen($key)==5) { if(strncmp($key, "77", 2)== 0) { $oZipLayer->set("labelitem", 'ZCTA'); $sQVal=$sQVal.$key."|"; $oZipClassBlue = ms_newClassObj($oZipLayer); $oZipClassBlue->setexpression($key); $oZipStyleBlue = ms_newStyleObj($oZipClassBlue); $oZipStyleBlue->color->setRGB(0,0,255); } } }// end if ($i <= $percent_num) $adPercents[$key] = $dPercent; }// end while print("
Zip CodeCountPercent
$key$val$dPercent
$key $val$dPercent
"); //more mapserver stuff $sQVal = substr($sQVal, 0, strlen($sQVal)-1); //Do query $qresult = @$oZipLayer->queryByAttributes($sAttrName,"/". $sQVal."/",MS_MULTIPLE); $image = $map->drawQuery(); $image_url = $image->saveWebImage(); $error = ms_GetErrorObj(); while($error && $error->code != MS_NOERR) { printf("Error in %s: %s \n", $error->routine, $error->messaage); $error = $error->next(); } ?>

This is an unprojected map of the 5 digit zip code boundries for the state of Texas, from the US Census Bureau.

To find the categories for the legend, I used the ogrinfo utility twice. ogrinfo -a -summary zt48_d00.shp let me see what fields were available, and ogrinfo -a zt48_d00.shp|grep SYMBOL|sort -u told me what all of the unique values were so that I could build my CLASS definitions in TX1.map.

getNumResults() > 0) echo $oZipLayer->getNumResults()." zips found."; else echo "No zips found." ?> ------------------------------------------------- map file --------------------------------------------- MAP NAME TX IMAGETYPE PNG SIZE 600 600 IMAGECOLOR 255 255 255 SHAPEPATH "/Library/WebServer/Documents/data" FONTSET "/Library/fonts/fonts.list" EXTENT -106.645646 25.837377 -93.516407 36.500704 UNITS METERS WEB IMAGEPATH "/Library/WebServer/Documents/test/" IMAGEURL "/test/" END LEGEND STATUS EMBED POSITION UR END SCALEBAR TRANSPARENT ON BACKGROUNDCOLOR 0 0 0 STATUS EMBED POSITION LR STYLE 1 END LAYER NAME "TX zip code boundaries" TYPE POLYGON STATUS DEFAULT DATA "zt48_d00" CLASS COLOR 255 255 255 OUTLINECOLOR 0 0 0 END TEMPLATE "x" END LAYER NAME "credits" STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 10 480 END TEXT 'Made with Mapserver.' END CLASS LABEL TYPE BITMAP POSITION CR COLOR 0 0 0 END END END END From nbest at SPEAKEASY.NET Fri Jul 8 14:25:50 2005 From: nbest at SPEAKEASY.NET (Neil Best) Date: Fri, 8 Jul 2005 16:25:50 -0500 Subject: wfs server with postgis data Message-ID: Me again. Right now I am getting some XML back from my GetFeature request, but it's the "msPOSTGISLayerOpen(): Query error" exception. My working theory is that I don't understand enough about managing users in Postgres, which I am trying to accomplish through phpPgAdmin. I presume that when I tell Mapserver to connect via localhost then the relevant line in pg_hba.conf is of the form "host dbase user 127.0.0.1 255.255.255.255 METHOD". If I use the "trust" method wouldn't that allow me to create a user for MapServer called "ms" that requires no password (what's the point of putting a password in a text file that's visible on the web?) and limit that user to only SELECT? In my postgres.log I don't see any attempts to connect by this user. I do see occasional ominous "FATAL: database "template_gis" is not currently accepting connections" messages -- I'm not sure what template_gis is or who might be accessing it. In general, what configuration gives the best combination of ease and security for postgis connections? I'll be happy to flesh out any details if anyone has any thoughts. Thanks for looking this over. Neil From gerry.creager at TAMU.EDU Fri Jul 8 16:24:27 2005 From: gerry.creager at TAMU.EDU (Gerry Creager) Date: Fri, 8 Jul 2005 18:24:27 -0500 Subject: Serving A Large Archive an openpap-client/wms-server In-Reply-To: <931f8ea9050708113314f188d9@mail.gmail.com> Message-ID: Frank Warmerdam wrote: > On 7/8/05, John Bonk wrote: > >>We have a lot of data on an opendap server. We had plans for a >>MapServer opendap-client/wms-server--in other words we wanted to build >>a MapServer that will serve raster data from our opendap server. >> >> We were working on a prototype that will serve one of our products. >>The product consists of monthly files, each file contains 2 parameters >>per file. At present there are over 80 months (files) of data. >> >> I still consider myself a novice and may have some misconceptions >>about MapServer, but my understanding is that to offer this data I will >>need a mapfile with over 160 layers--one for each file times 2 for the >>2 parameters. >> >> I read in one of the documents >>(http://mapserver.gis.umn.edu/doc44/mapfile-reference.html) that there >>is a 50 layer limit for a mapfile. The document said that this limit >>could be raised by making a change to map.h. However, some of our >>products have files containing over a hundred parameters. I estimate >>that if we wanted to offer each of the parameters in each file for >>several of our products, we would need a mapfile with hundreds of >>thousands layers. Are we expecting too much from mapserver? >> >> Is there any way around this problem? >> >> Does anyone have any suggestions for serving data that is scattered >>through thousands of files? > > > John, > > I think it might make more sense to either produce map objects dynamically > using mapscript, or create one mapfile for each dataset to serve rather > than trying to offer all the products through one master .map file. Frank, with some of the datasets we're looking at, your advice is well taken, but with some of ours, it's valuable to have a large number of 'em available for intercomparison. I don't know what data John's talking about but I suspect he's got similar problems to mine. Wasn't ther a way to increase the number of layers in the source and then recompile? I'm 'bout to get on another plane and don't have time to check the code right now, but that's what I recall... Regards, Gerry -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Pager: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From tim at COMMENSPACE.ORG Fri Jul 8 17:21:49 2005 From: tim at COMMENSPACE.ORG (Tim Schaub) Date: Fri, 8 Jul 2005 17:21:49 -0700 Subject: PHP-MapScript Memory Exhaustion Error Message-ID: >Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate >75 bytes) in /var/www/html/foo.phtml If you can't get around the memory limitation (and you don't want to go to python as suggested on #mapserver), could you generate a graphic on the fly to represent your bars? I've done this with success to create pie charts for points - using the GD-Library from PHP to create the graphics (doing a queryByRect with the map extent to work only with points in the map), then adding a new symbol to the map for each graphic, creating a class for each point id in the map, and finally adding a style to each class that refers to the appropriate graphic. The limitation here is on the number of symbols that you can have per map (64). But at least you can point to mapserver instead of PHP on that one (or recompile with a higher limit). Tim (The Transportation > Commute Type layer on http://public.commenspace.org/sustainable_seattle/mapserver/demographic- map.php is an example. I can send a code sample if it would be useful.) From jeff2005 at SVS.GSFC.NASA.GOV Fri Jul 8 18:51:30 2005 From: jeff2005 at SVS.GSFC.NASA.GOV (Jeff DLB) Date: Fri, 8 Jul 2005 21:51:30 -0400 Subject: Serving A Large Archive an openpap-client/wms-server In-Reply-To: <42CF0B2B.3040809@tamu.edu> Message-ID: I recompiled mapserver to raise the limit from 200 to 10,000 layers. It has not posed a problem. I was serving ~25 new images per day without difficulty, all in one mapfile. (I have since combined all the daily images into a single mosaic per day, so the number of layers has gone down but the compiled-in limit has been left high.) -Jeff DLB From redddis at BK.RU Sat Jul 9 09:16:48 2005 From: redddis at BK.RU (Sergey Miltchakov) Date: Sat, 9 Jul 2005 20:16:48 +0400 Subject: Need help: Annotation layer from Postgis using php Message-ID: Hello! I ran into the following problem with annotations using php: The thing is I have a table 'vydely' in Postgre with the fields: gid (int), id(int), area(float), kvartal(int) and the_geom(geometry). I managed to successfully pull the shapes from this table using php. Now I need to somehow annotate those shapes. I'd like to add the gid and kavartal numbers inside the polygons using php. I use the following code: $Anlayer = ms_newLayerObj($map); $Anlayer->set("name","vydelid"); $Anlayer->set("type", MS_LAYER_ANNOTATION); $Anlayer->set("connectiontype", MS_POSTGIS); $Anlayer->set("connection","host=localhost port=5432 user=postgres password='' dbname=testgis"); $Anlayer->set("data", "id from vydely"); $Anlayer->set("status", MS_ON); $Anlayer -> set("classitem", "id"); $Anlayer -> set("labelitem", "id"); $Anlayer -> {annotate} = 1; $fredclass = ms_newClassObj($Anlayer); $fredstyle = ms_newStyleObj($fredclass); $fredstyle->color->setRGB(222,222,222); $fredstyle->outlinecolor->setRGB(100,0,0); $fredclass->label->set("position", 8); $fredclass->label->set("size", 18); $fredclass->label->set("minsize",4); $fredclass->label->set("maxsize",256); $fredclass->label->color->setRGB(22,22,22); $fredclass->label->set("font","verdana"); $Anlayer->draw($image); $map->drawLabelCache($image); But nothing shows (an image without text layer... Though I succeeded to show the static text layers, defined in the map file. Is that possible at all to make them dynamic? I could not find anything useful in the internet... Regards, Sergey From dps1 at UALBERTA.CA Sat Jul 9 21:01:56 2005 From: dps1 at UALBERTA.CA (David Shorthouse) Date: Sat, 9 Jul 2005 22:01:56 -0600 Subject: Map image resolution and weird asp issues Message-ID: Hey folks, I have been trying to get MapServer to play nicely when static map images are generated within an asp page. I have the mapfile configured to output png but strangely in IE, the image file is always bmp and consequently, is about 15X larger in file size than it ought to be. In Mozilla, the image is png as it ought to be and is the appropriate file size. Anyone know what's going on here? As an aside, I have two map files: one for browse mode and one for map mode. I was wondering how one goes about messing with the map files such that the resolution of images in map mode are not always 72 dpi. Interestingly in browse mode, the image resolutions are all 96 dpi. I'd rather have about 250 dpi for map mode and 72 dpi for browse mode. Thanks for any ideas, Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: From sc0rp10nau at YAHOO.COM.AU Sat Jul 9 22:41:31 2005 From: sc0rp10nau at YAHOO.COM.AU (Ajay Ranipeta) Date: Sun, 10 Jul 2005 00:41:31 -0500 Subject: Map image resolution and weird asp issues Message-ID: Hi Dave, Not sure much about the BMP output, but this is what I have in my mapfiles for OUTPUTFORMAT -------------------------- # image format options OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END -------------------------- You can also try to set the IMAGEMODE to PC256 and see if that helps. As for the image resolution, try the RESOLUTION option in your mapfiles, so for map mode, you might want to have "RESOLUTION 250" and for browse mode add in "RESOLUTION 72" (72 dpi is the default, so you don't even need to set this). For more help on the mapfile configuration, check this doc out: http://mapserver.gis.umn.edu/doc44/mapfile-reference.html hth Ajay ps. Add those 2 options under the MAP section, possibly after the name. On Sat, 9 Jul 2005 22:01:56 -0600, David Shorthouse wrote: >Hey folks, > > I have been trying to get MapServer to play nicely when static map >images are generated within an asp page. I have the mapfile configured to >output png but strangely in IE, the image file is always bmp and >consequently, is about 15X larger in file size than it ought to be. In >Mozilla, the image is png as it ought to be and is the appropriate file >size. Anyone know what's going on here? As an aside, I have two map files: >one for browse mode and one for map mode. I was wondering how one goes about >messing with the map files such that the resolution of images in map mode >are not always 72 dpi. Interestingly in browse mode, the image resolutions >are all 96 dpi. I'd rather have about 250 dpi for map mode and 72 dpi for >browse mode. > >Thanks for any ideas, > >Dave > From nhv at CAPE.COM Sun Jul 10 03:18:44 2005 From: nhv at CAPE.COM (Norman Vine) Date: Sun, 10 Jul 2005 06:18:44 -0400 Subject: Serving A Large Archive an openpap-client/wms-server In-Reply-To: <8C75201CB5CD508-85C-286B@MBLK-M33.sysops.aol.com> Message-ID: John Bonk writes: > > We have a lot of data on an opendap server. We had plans for a > MapServer opendap-client/wms-server--in other words we wanted to build > a MapServer that will serve raster data from our opendap server. > > We were working on a prototype that will serve one of our products. > The product consists of monthly files, each file contains 2 parameters > per file. At present there are over 80 months (files) of data. > > I still consider myself a novice and may have some misconceptions > about MapServer, but my understanding is that to offer this data I will > need a mapfile with over 160 layers--one for each file times 2 for the > 2 parameters. > > I read in one of the documents > (http://mapserver.gis.umn.edu/doc44/mapfile-reference.html) that there > is a 50 layer limit for a mapfile. The document said that this limit > could be raised by making a change to map.h. However, some of our > products have files containing over a hundred parameters. I estimate > that if we wanted to offer each of the parameters in each file for > several of our products, we would need a mapfile with hundreds of > thousands layers. Are we expecting too much from mapserver? > > Is there any way around this problem? > > Does anyone have any suggestions for serving data that is scattered > through thousands of files? Hi John, I haven't used it but Mapserver has some support for temporal REQUESTS This might mean you only need to have 2 layers http://mapserver.gis.umn.edu/doc44/wms-time-support-howto.html Although primarily a 1.3 WMS there is some discussion about 1.1 WMS time support in the docs for this server http://aes.gsfc.nasa.gov/documents/overview.html Not exactly sure how this would be set up for UMN MapServer though Hopefully someone more knowlegable will chime in on this HTH Norman From dps1 at UALBERTA.CA Sun Jul 10 10:21:35 2005 From: dps1 at UALBERTA.CA (David Shorthouse) Date: Sun, 10 Jul 2005 11:21:35 -0600 Subject: Max pan? Message-ID: Hello folks, Is it possible to implement a max/min pan in a manner similar to MAXSCALE and MINSCALE? Thanks, Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: From dps1 at UALBERTA.CA Sun Jul 10 10:39:18 2005 From: dps1 at UALBERTA.CA (David Shorthouse) Date: Sun, 10 Jul 2005 11:39:18 -0600 Subject: Yet another request....cursor/layer for point information Message-ID: Hello again folks, One last and final request for information. Sorry for the multiple posts. I would also like to implement a radio button on my template such that a client could click it and their cursor changes to select a pop-up of information about a specific value within a layer. The layer in question is point data generated via a VRT/ovf to a SQL Server 2000 database and I wish to implement a window.open type pop-up when a client clicks a specific point in this layer. Is it possible to insert html coding within points generated via OGR connections? Thanks for any ideas? David Shorthouse -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgavathe at YAHOO.CO.IN Sun Jul 10 11:53:53 2005 From: sgavathe at YAHOO.CO.IN (shailesh gavavthe) Date: Sun, 10 Jul 2005 11:53:53 -0700 Subject: Zoom and Pan not working.. Message-ID: Dear all, I m a so far non-active member of Mapserver. This discussion group is really helpfull. Thanx everyone for posting their problems and solutions up into a discussion Forum. I have a small problem with my template file in a browsing option. I m using mapserv4.6.0 and it is on IIS. My map Mode works fine, but when i tried to open Map with browse option, i can see the map also, but my zoom thingy does not work. Map is still a static map . But when i see my image Path location directory, it dumps images everytime, when i click on refresh. i would deeply appreciate, if ne body could let me know, wht is happening wrong within my Template or Map File. I m attaching here with .html file. ------------------------------------------------------- MapServer 4.0 Tutorial

Example 3.1: Class-level Query Templates

Select Layers:
sc_polygon  meander_arc  sc2ndbnd_annotation_bear  sc_annotation_dims  encumb_polygon  parcel_polygon
Select Background:
Map Mode:
Map Control:

Reference:

Legend:

View the MapFile | View the HTML Template


Back to Section 2 | Back to the Sections Page | Proceed to Example 3.2

---------------------------------------------------------------------------- thanking you, sincerely, Shailesh gavathe URL : http://people.emich.edu/sgavathe

Image by FlamingText.com
Image by FlamingText.com ____________________________________________________ Sell on Yahoo! Auctions ? no fees. Bid on great items. http://auctions.yahoo.com/ From joe at OTSYS.COM Sun Jul 10 19:55:35 2005 From: joe at OTSYS.COM (Joe Bussell) Date: Sun, 10 Jul 2005 18:55:35 -0800 Subject: Dateline polygons? In-Reply-To: <20050627154343.91630.qmail@web50707.mail.yahoo.com> Message-ID: I had to split all polygon segments that cross the dateline into two segments. One ends at -180 plus EPSILON and +180 minus EPSILON. I found the point of intersection with the meridian using a modified function from William's Aviation Formulary. If you need more, please let me know. If you find a better way, please let me know. Joe Bussell On Time Systems Chris Helm wrote: >Hello list, > >I have a large dataset stored in a postgis database >that contains several thousand polygons. I'm storing >the geometry in epsg:4326 and my mapserver application >is in the same projection (initially). My problem is >that a number of my polygons cross the dateline (from >-179 to 179) and the results are pretty obvious. >Instead of crossing the dateline, they stretch the >across the globe. > >I've tried converting the coordinates so that they go >from -179 to -181 and I get the same result. Whenever >I switch projections (into polar-stereographic) they >come in just fine, but when viewing the entire global >extent in 4326 I get the error. > >When I use coordinates like -181 to -182 the polygons >never show up regardless of the projection. > >I guess what I'm asking is if anyone has conquered >this issue before? > >__________________________________________________ >Do You Yahoo!? >Tired of spam? Yahoo! Mail has the best spam protection around >http://mail.yahoo.com > > > From Bonnie.Stewart at DLI.WA.GOV.AU Sun Jul 10 23:05:51 2005 From: Bonnie.Stewart at DLI.WA.GOV.AU (Bonnie Stewart) Date: Mon, 11 Jul 2005 14:05:51 +0800 Subject: Increasing Maxlayers limit - anyone have spare Windows binaries? :) Message-ID: Hi all, I'm working on a way to make a large amount of our vector and raster data available via WMS and WFS, and I've come up against the MAXLAYERS setting (200 in our install I think). I'm already trying to get around the need for having so many layers in a single mapfile by reducing the granularity available as you get to mapfiles which cover a larger time period - let me see if I can explain what I mean without rambling on too much. At the lowest level of granularity, we're providing access to raster and vector files which are derived from satellite passes - and there may be 10-40 passes per day, depending on the product. I've already set up a process to automatically generate a mapfile containing the last 5 days worth of data, using the GROUP parameter to group them according to the day. This is jolly nifty for those customers who need to look at the recent info on a pass by pass basis. However, if I try to give people access to the entire archive (several years worth, and 10-15 different products, at 10-40 passes per day) on a pass by pass basis, the number of layers involved will be horrendous, so I'm trying to reduce the granularity at which archival data is available. My current plan is to (programmatically) create a series of weekly mapfiles, structured in the same way as mentioned above, with individual satellite passes grouped by day. I would have 52 of those for each year, and then to wrap them up so that people could have an overview of what's available, I'm planning to create some mapfiles (either yearly or monthly, maybe both), which connect to these weekly mapfiles via WMS, and pull in each daily group from the 52 weekly mapfiles, and define them as a single layer. So I think I would end up with a mapfile for each year, with a group for each week, and under each group, 7 individual layers - one for each day. Hopefully then there are two options: 1) People's clients are able to pull apart the vector data, and maybe do a query (for instance) to only display the lightning data from one particular satellite pass - although having used ArcMap and ArcExplorer for testing I'm not too hopeful about this; 2) Specific file naming conventions could allow users to find the week they're interested in in the yearly mapfile, and then work out what the mapfile name/URL for that week's lower level mapfile would be. So, now I'm finally going to get to my point - even using this structure, a MAXLAYERS setting of 200 is too low for me - I can do about 5 or 6 days of satellite passes in 200 layers, but to get to a whole week I would need to increase the MAXLAYERS parameter. To have a layer for each day in my yearly mapfile, I'd need a MAXLAYERS of around 370. I gather it's relatively easy to change the parameter and recompile Mapserver, but as I have very little experience in this area (and I've seen so many emails on this list seeking help with compiling mapserver!) I was hoping somebody might possibly have already done this, and might have Windows binaries compiled with a higher MAXLAYERS that they would be willing to share. Alternatively, if the structure I described above sounds silly or you can think of something more effective, please let me know :) We do have another approach in mind for the vector data, which is to produce an ongoing concatenated shapefile which contains all the features for that product (for instance, as a new pass's worth of lightning data becomes available, it is automatically added in to one big Lightning shapefile), and then to use classes to colour them up a bit according to the time that each event occurred. It's a nice theory for the vector info, but I'd still need to do something about the raster info. Any advice (or binaries!) would be very much appreciated :) Thanks, Bonnie __________________________________ Bonnie Stewart Research Officer Satellite Remote Sensing Services Information Access Division Department of Land Information 65 Brockway Road, FLOREAT WA 6014 Ph. (08) 9387 0342 | Fx. (08) 9383 7142 bonnie.stewart at dli.wa.gov.au www.dli.wa.gov.au This e-mail and any files transmitted with it are intended only for the use of the addressee(s). It may contain information that is confidential and privileged. If you are not an intended recipient, any use, interference with, disclosure, distribution or copying of this material is unauthorised and prohibited. If you receive this in error, please notify the author by Return email to the sender. Information in this message not relating to the official business of DLI shall be understood as neither given nor endorsed by it. While every care is taken, it is recommended that you scan any attachments for viruses. DLI liability is limited to re-supplying affected attachments. -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrewrcollins at YAHOO.COM Sun Jul 10 23:37:28 2005 From: andrewrcollins at YAHOO.COM (Andrew Collins) Date: Sun, 10 Jul 2005 23:37:28 -0700 Subject: Increasing Maxlayers limit - anyone have spare Windows binaries? :) In-Reply-To: <3F8F4F5195AF16468E8760F8068F089E14CD61@MAIL.dli.wa.gov.au> Message-ID: Making your own Windows binaries is not that hard it turns out. Download (free) and install the following: Visual C++ Express Edition Beta 2 http://lab.msdn.microsoft.com/express/visualc/default.aspx Read the following: Win32 Compilation and Installation http://ms.gis.umn.edu/docs/howto/win32_compiling You will need to install the gdwin32 library. After the above VC++ is installed run the following: "C:\Program Files\Microsoft Visual Studio 8\VC\bin\vcvars32.bat" And then, using the attached Makefile and nmake.opt, run the following: nmake /F Makefile.vc If you happen to have PROJ4 installed on your Windows machine you probably have the "PROJ_LIB environment variable set. This will mess up nmake. If so, run the following before running nmake: set PROJ_LIB= -- Andrew Collins - andrewrcollins at yahoo.com http://profiles.yahoo.com/andrewrcollins Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html Try OpenOffice. See http://www.openoffice.org/product/ -------------- next part -------------- A non-text attachment was scrubbed... Name: Makefile.vc Type: application/octet-stream Size: 3020 bytes Desc: 3900240034-Makefile.vc URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: nmake.opt Type: application/octet-stream Size: 16657 bytes Desc: 2644842568-nmake.opt URL: From stephane.riff at CERENE.FR Mon Jul 11 02:17:20 2005 From: stephane.riff at CERENE.FR (=?ISO-8859-1?Q?St=E9phane_RIFF?=) Date: Mon, 11 Jul 2005 11:17:20 +0200 Subject: test Message-ID: test From mapserver at HOTMAIL.COM Mon Jul 11 02:51:50 2005 From: mapserver at HOTMAIL.COM (SUBSCRIBE MAPSERVER-USERS Nuri) Date: Mon, 11 Jul 2005 04:51:50 -0500 Subject: place a point in the map Message-ID: Recently I managed to create my own map and placed a symbol in it from a database. Now I need to place several points in the map. My database contains gps coordinates like this: 4216 9669 259 Latitude: 42? 16'N Longitude: 258?E I translated this gps coordinates to UTM coordinates to obtain: Zone: 14 Easting: 252608 Norting: 4683531 I need to show this point in the map. Someone could explain my how to do it? Thank you. My present .map file is: MAP IMAGETYPE PNG EXTENT 0.000000 -205.000000 300.000000 0.000000 SIZE 600 410 SHAPEPATH "data" IMAGECOLOR 255 180 0 FONTSET "fonts/fonts.list" #PROJECTION # "proj=laea" # "ellps=clrk66" # "lat_0=45" # "lon_0=-100" # # Alternatively, you can specify an EPSG code. # "init=epsg:2163" # #END # Start of LAYER DEFINITIONS -------------------------------------------- - LAYER # Capa de raster NAME mapafig DATA "raster/figueres.tif" STATUS DEFAULT TYPE RASTER PROCESSING "BANDS=1" #OFFSITE 71 74 65 #Color que ha de ser transparent #PROJECTION # "init=epsg:4326" #END END # Fi capa de raster LAYER NAME simbols GROUP grup STATUS DEFAULT DATA mapa TYPE ANNOTATION LABELITEM "SIMB" CLASSITEM "C" CLASS EXPRESSION "2" STYLE COLOR 0 0 0 # dummy color SYMBOL 'symbols/prova.gif' END LABEL MINFEATURESIZE 20 MINDISTANCE 50 POSITION CC SIZE TINY COLOR 255 255 255 END END PROJECTION "init=epsg:4326" END END # End of LAYER DEFINITIONS ------------------------------- END # end of map file From leopold.schefcik at MULTIMEDIAPLAN.AT Mon Jul 11 03:21:05 2005 From: leopold.schefcik at MULTIMEDIAPLAN.AT (Leopold Schefcik (MULTIMEDIAPLAN.AT)) Date: Mon, 11 Jul 2005 12:21:05 +0200 Subject: GetCapabilites Request In-Reply-To: Message-ID: hi list, I?ve installed a ms4w (incl. umn server and Maplab) The GetMap Request works fine: http://localhost/cgi-bin/mapserv.exe?MAP=/ms4w/apps\maplab-2.2\tutorial/cent rope2.map&SERVICE=wms&VERSION=1.1.1&LAYERS=bathymetry,land_fn&REQUEST=GetMap At the GetCapabilities Request I get a file (I think xml) as attachement. (see attachement) http://localhost/cgi-bin/mapserv.exe?MAP=/ms4w/apps/gmap/htdocs/gmap75_wms.m ap&SERVICE=wms&VERSION=1.1.1&REQUEST=GetCapabilities but in viewers (e.g. http://www.wmsviewer.com it won?t work. Maby someone has an idea what?s wrong!? Leopold -------------- next part -------------- A non-text attachment was scrubbed... Name: mapserv Type: application/octet-stream Size: 13355 bytes Desc: not available URL: From stephane.riff at CERENE.FR Mon Jul 11 03:27:47 2005 From: stephane.riff at CERENE.FR (=?ISO-8859-1?Q?St=E9phane_RIFF?=) Date: Mon, 11 Jul 2005 12:27:47 +0200 Subject: mapscript concurent access Message-ID: Hello I have an application thet serve map over internet : mapserver 4.4.2, mapscript, postgis + rasters I think there is some problem occur when there are more than one user connected to the server. I can't see error in mapserver log nor in php log. Those errors occurs only when accessing postgis. All the application is write in mapscript without use mapserv.exe. Does somebody know bugs about that ??? Thanks From BEN at SYNCERA-ITSOLUTIONS.NL Mon Jul 11 04:06:34 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Mon, 11 Jul 2005 13:06:34 +0200 Subject: GetCapabilites Request Message-ID: Hi Leopold, the mime type of a GetCapabilities request is application/vnd.ogc.wms_xml for WMS 1.1.X, so that the file is downloaded by IE is correct since it does not know this mime type by default. Are you trying to access your localhost WMS server by wmsviewer.com???? I assume the WMS Viewer needs a public WMS service (since it uses ASP as a technlogy), it can't read from your localhost ofcourse! This could only work if the handling by wmsviewer.com would be done completely in javascript in the browser which I don't think it does. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> "Leopold Schefcik (MULTIMEDIAPLAN.AT)" 07/11/05 12:21pm >>> hi list, I ve installed a ms4w (incl. umn server and Maplab) The GetMap Request works fine: http://localhost/cgi-bin/mapserv.exe?MAP=/ms4w/apps\maplab-2.2\tutorial/cent rope2.map&SERVICE=wms&VERSION=1.1.1&LAYERS=bathymetry,land_fn&REQUEST=GetMap At the GetCapabilities Request I get a file (I think xml) as attachement. (see attachement) http://localhost/cgi-bin/mapserv.exe?MAP=/ms4w/apps/gmap/htdocs/gmap75_wms.m ap&SERVICE=wms&VERSION=1.1.1&REQUEST=GetCapabilities but in viewers (e.g. http://www.wmsviewer.com it won t work. Maby someone has an idea what s wrong!? Leopold From umberto.nicoletti at GMAIL.COM Mon Jul 11 04:23:43 2005 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Mon, 11 Jul 2005 13:23:43 +0200 Subject: mapscript concurent access In-Reply-To: <42D249A3.9000102@cerene.fr> Message-ID: On 7/11/05, St?phane RIFF wrote: > Hello > > I have an application thet serve map over internet : > mapserver 4.4.2, mapscript, postgis + rasters > > I think there is some problem occur when there are more than one user > connected to the server. > I can't see error in mapserthonver log nor in php log. > Those errors occurs only when accessing postgis. > All the application is write in mapscript without use mapserv.exe. > Which mapscript (Java, php, python)? Did you compile it by yourself? If yes what options did you supply to configure? If not where did you get it form? Regards, umberto > Does somebody know bugs about that ??? > > Thanks > From umberto.nicoletti at GMAIL.COM Mon Jul 11 04:26:02 2005 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Mon, 11 Jul 2005 13:26:02 +0200 Subject: PHP-MapScript Memory Exhaustion Error In-Reply-To: <200507081350.43029.johng@amdswireless.com> Message-ID: Look at php.ini: there are various options (I do not remember them now) that set (among other things) the maximum amount of ram that a script can use. Try to set it to a higher value. HTH, UMBERTO On 7/8/05, John Gorkos wrote: > Gurus- > I am writing a PHP-MapScript script which pulls a list of points from a DB, > and plots them on the map using multiple styles per point. The styles are > dynamically altered in the script to basically draw a small bar graph with 7 > bars at each map point, to reflect various health parameters of some remote > equipment. > I have mad this work in perl. Under PHP, I am allowed to add two styles per > point, but when I add the third, I get this: > Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate > 75 bytes) in /var/www/html/foo.phtml > > The code snippet which produces this is as follows: > $image=$map->draw(); > > $meterLayer = $map->getLayerByName("Endpoints"); > $meterClass0 = $meterLayer->getClass(0); > $rs= mssql_query ($sql, $con); > > $red = array(255,255,255,225,0,150,0); > $green = array(255,0,255,0,200,100,0); > $blue = array(255,0,0,150,150,50,255); > > while ( $row = mssql_fetch_row($rs)) { > for ( $i=0; $i<3; $i++ ) { > $meterStyle[$i] = $meterClass0->getStyle($i); > $meterStyle[$i]->outlinecolor->setRGB($red[$i],$green[$i],$blue[$i]); > $meterStyle[$i]->color->setRGB($red[$i],$green[$i],$blue[$i]); > $meterStyle[$i]->set('offsetx',$i*3); > $meterStyle[$i]->set('offsety',0); > } > $point = ms_newPointObj(); > $point->setXY((-1)*$row[1],$row[0]); > $point->draw($map,$meterLayer,$image,0,$row[2]); > } > > $image_url=$image->saveWebImage(); > > If the "3" in the for loop above is set to 2 or 1, it works fine, but I need > it to be an 8, which obviously fails. More code available on request. > > I am using Mapserver 2.6, PHP 5.0.4. The machine is 64-bit Mandrake Linux > installation on dual Xeons with 2GB of physical ram, yadda yadda. It's a > healthy machine, and has run this same type of code under 2.6beta3 with Perl > Mapscript. However, I formatted the box to switch from SuSE to Mandrake, and > forgot to copy the perl script over before I formatted the / partition > (insert lots of comments about backups, etc),so I'm rewriting in PHP since I > was shamed into learning in on the #mapserver irc channel. > > Anyone have any thoughts on where I'm wrong, or is this a bug? > > John Gorkos > AMDS Wireless, LLC > From d.stockhaus at SRHH.DE Mon Jul 11 04:49:16 2005 From: d.stockhaus at SRHH.DE (Detlef Stockhaus) Date: Mon, 11 Jul 2005 06:49:16 -0500 Subject: Problems with featureinforequest with SDE Message-ID: Hello List, meanwhile I figured it out myself. The Problem was, that I have to set the TOLERANCE in the layerobject. Best Regards Detlef From stephane.riff at CERENE.FR Mon Jul 11 05:08:55 2005 From: stephane.riff at CERENE.FR (=?ISO-8859-1?Q?St=E9phane_RIFF?=) Date: Mon, 11 Jul 2005 14:08:55 +0200 Subject: mapscript concurent access In-Reply-To: <75b4b93e05071104233053a100@mail.gmail.com> Message-ID: I compile phpmapscript myself with those options : ./configure --with-proj=/usr/local/ --with-jpeg=/usr --with-gd=/usr/local --with-freetype=/usr --with-png=/usr --with-ogr --with-gdal=/usr/local/bin/gdal-config --with-postgis=/usr/local/pgsql/bin/pg_config --with-php=../php-4.3.9/ Umberto Nicoletti wrote: >On 7/11/05, St?phane RIFF wrote: > > >>Hello >> >>I have an application thet serve map over internet : >> mapserver 4.4.2, mapscript, postgis + rasters >> >>I think there is some problem occur when there are more than one user >>connected to the server. >>I can't see error in mapserthonver log nor in php log. >>Those errors occurs only when accessing postgis. >>All the application is write in mapscript without use mapserv.exe. >> >> >> > >Which mapscript (Java, php, python)? >Did you compile it by yourself? >If yes what options did you supply to configure? >If not where did you get it form? > >Regards, >umberto > > >>Does somebody know bugs about that ??? >> >>Thanks >> >> >> > > > > From arno.roeder at FH-WEIHENSTEPHAN.DE Mon Jul 11 05:33:43 2005 From: arno.roeder at FH-WEIHENSTEPHAN.DE (Arno roeder) Date: Mon, 11 Jul 2005 14:33:43 +0200 Subject: MIT OrthoServer vs. UMN Mapserver Message-ID: Hey list, does anybody know the performance difference between MIT OrthoServer http://tull.mit.edu/orthoserver/ and UMN Mapserver in the visualisation of raster data (huge amounts!)? Arno From rtaylor at COVE.COM Mon Jul 11 06:40:56 2005 From: rtaylor at COVE.COM (Richard Taylor) Date: Mon, 11 Jul 2005 09:40:56 -0400 Subject: GetCapabilites Request Message-ID: am new also, but when i get that happening to me, it usually means i have not formatted some part of the request string or mapfile correctly. what does the xml file say when you open it in Explorer or other browser? rt ----- Original Message ----- From: "Leopold Schefcik (MULTIMEDIAPLAN.AT)" To: Sent: Monday, July 11, 2005 6:21 AM Subject: [UMN_MAPSERVER-USERS] GetCapabilites Request > > > hi list, > I?ve installed a ms4w (incl. umn server and Maplab) > > The GetMap Request works fine: > http://localhost/cgi-bin/mapserv.exe?MAP=/ms4w/apps\maplab-2.2\tutorial/cent > rope2.map&SERVICE=wms&VERSION=1.1.1&LAYERS=bathymetry,land_fn&REQUEST=GetMap > > At the GetCapabilities Request I get a file (I think xml) as attachement. > (see attachement) > http://localhost/cgi-bin/mapserv.exe?MAP=/ms4w/apps/gmap/htdocs/gmap75_wms.m > ap&SERVICE=wms&VERSION=1.1.1&REQUEST=GetCapabilities > > but in viewers (e.g. http://www.wmsviewer.com it won?t work. > > Maby someone has an idea what?s wrong!? > Leopold > From umberto.nicoletti at GMAIL.COM Mon Jul 11 06:55:06 2005 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Mon, 11 Jul 2005 15:55:06 +0200 Subject: mapscript concurent access In-Reply-To: <42D26157.2060907@cerene.fr> Message-ID: This has been discussed a week ago. Search the ML for this thread: mapserver php and cgi/module and security issues Regars, Umberto On 7/11/05, St?phane RIFF wrote: > I compile phpmapscript myself with those options : > > ./configure --with-proj=/usr/local/ --with-jpeg=/usr > --with-gd=/usr/local --with-freetype=/usr --with-png=/usr --with-ogr > --with-gdal=/usr/local/bin/gdal-config > --with-postgis=/usr/local/pgsql/bin/pg_config --with-php=../php-4.3.9/ > > Umberto Nicoletti wrote: > > >On 7/11/05, St?phane RIFF wrote: > > > > > >>Hello > >> > >>I have an application thet serve map over internet : > >> mapserver 4.4.2, mapscript, postgis + rasters > >> > >>I think there is some problem occur when there are more than one user > >>connected to the server. > >>I can't see error in mapserthonver log nor in php log. > >>Those errors occurs only when accessing postgis. > >>All the application is write in mapscript without use mapserv.exe. > >> > >> > >> > > > >Which mapscript (Java, php, python)? > >Did you compile it by yourself? > >If yes what options did you supply to configure? > >If not where did you get it form? > > > >Regards, > >umberto > > > > > >>Does somebody know bugs about that ??? > >> > >>Thanks > >> > >> > >> > > > > > > > > > From jmckenna at DMSOLUTIONS.CA Mon Jul 11 07:07:00 2005 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Mon, 11 Jul 2005 10:07:00 -0400 Subject: GetCapabilites Request In-Reply-To: Message-ID: Your attached capabilities also includes several 'WARNING' messages (when viewing that file in a text editor)..i would try to eliminate them as well. jeff Leopold Schefcik (MULTIMEDIAPLAN.AT) wrote: > > hi list, > I?ve installed a ms4w (incl. umn server and Maplab) > > The GetMap Request works fine: > http://localhost/cgi-bin/mapserv.exe?MAP=/ms4w/apps\maplab-2.2\tutorial/cent > rope2.map&SERVICE=wms&VERSION=1.1.1&LAYERS=bathymetry,land_fn&REQUEST=GetMap > > At the GetCapabilities Request I get a file (I think xml) as attachement. > (see attachement) > http://localhost/cgi-bin/mapserv.exe?MAP=/ms4w/apps/gmap/htdocs/gmap75_wms.m > ap&SERVICE=wms&VERSION=1.1.1&REQUEST=GetCapabilities > > but in viewers (e.g. http://www.wmsviewer.com it won?t work. > > Maby someone has an idea what?s wrong!? > Leopold -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From David.Fawcett at STATE.MN.US Mon Jul 11 07:20:13 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Mon, 11 Jul 2005 09:20:13 -0500 Subject: place a point in the map Message-ID: If you don't want to place your data in ESRI shapefiles or a database, you can use a simple text file as the data source for a layer. If your Mapserver binary has been compiled with OGR support (quite likely), you can use a virtual data source. Take a look at the Vector Data Access Reference http://ms.gis.umn.edu:8081/ms_plone/docs/reference/vector_data/VirtualSpatialData If you search the list archives for OGR and VRT, you will most likely find some example map file layers. David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett at moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of SUBSCRIBE MAPSERVER-USERS Nuri Sent: Monday, July 11, 2005 4:52 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] place a point in the map Recently I managed to create my own map and placed a symbol in it from a database. Now I need to place several points in the map. My database contains gps coordinates like this: 4216 9669 259 Latitude: 42? 16'N Longitude: 258?E I translated this gps coordinates to UTM coordinates to obtain: Zone: 14 Easting: 252608 Norting: 4683531 I need to show this point in the map. Someone could explain my how to do it? Thank you. My present .map file is: MAP IMAGETYPE PNG EXTENT 0.000000 -205.000000 300.000000 0.000000 SIZE 600 410 SHAPEPATH "data" IMAGECOLOR 255 180 0 FONTSET "fonts/fonts.list" #PROJECTION # "proj=laea" # "ellps=clrk66" # "lat_0=45" # "lon_0=-100" # # Alternatively, you can specify an EPSG code. # "init=epsg:2163" # #END # Start of LAYER DEFINITIONS -------------------------------------------- - LAYER # Capa de raster NAME mapafig DATA "raster/figueres.tif" STATUS DEFAULT TYPE RASTER PROCESSING "BANDS=1" #OFFSITE 71 74 65 #Color que ha de ser transparent #PROJECTION # "init=epsg:4326" #END END # Fi capa de raster LAYER NAME simbols GROUP grup STATUS DEFAULT DATA mapa TYPE ANNOTATION LABELITEM "SIMB" CLASSITEM "C" CLASS EXPRESSION "2" STYLE COLOR 0 0 0 # dummy color SYMBOL 'symbols/prova.gif' END LABEL MINFEATURESIZE 20 MINDISTANCE 50 POSITION CC SIZE TINY COLOR 255 255 255 END END PROJECTION "init=epsg:4326" END END # End of LAYER DEFINITIONS ------------------------------- END # end of map file From jpbonk at AOL.COM Mon Jul 11 07:48:26 2005 From: jpbonk at AOL.COM (John Bonk) Date: Mon, 11 Jul 2005 10:48:26 -0400 Subject: MAPSERVER-USERS Digest - 9 Jul 2005 to 10 Jul 2005 (#2005-197) In-Reply-To: Message-ID: >-John Bonk writes: >> >> We have a lot of data on an opendap server. We had plans for a >> MapServer opendap-client/wms-server--in other words we wanted to build >> a MapServer that will serve raster data from our opendap server. >> >> We were working on a prototype that will serve one of our products. >> The product consists of monthly files, each file contains 2 parameters >> per file. At present there are over 80 months (files) of data. >> >> I still consider myself a novice and may have some misconceptions >> about MapServer, but my understanding is that to offer this data I will >> need a mapfile with over 160 layers--one for each file times 2 for the >> 2 parameters. >> >> I read in one of the documents >> (http://mapserver.gis.umn.edu/doc44/mapfile-reference.html) that there >> is a 50 layer limit for a mapfile. The document said that this limit >> could be raised by making a change to map.h. However, some of our >> products have files containing over a hundred parameters. I estimate >> that if we wanted to offer each of the parameters in each file for >> several of our products, we would need a mapfile with hundreds of >> thousands layers. Are we expecting too much from mapserver? >> >> Is there any way around this problem? >> >> Does anyone have any suggestions for serving data that is scattered >> through thousands of files? >Hi John, > > I haven't used it but Mapserver has some support for temporal REQUESTS > This might mean you only need to have 2 layers > http://mapserver.gis.umn.edu/doc44/wms-time-support-howto.html > > Although primarily a 1.3 WMS there is some discussion about 1.1 WMS > time support in the docs for this server > http://aes.gsfc.nasa.gov/documents/overview.html > > Not exactly sure how this would be set up for UMN MapServer though > > Hopefully someone more knowlegable will chime in on this > > HTH > > Norman Norman, Thanks for the suggestion. I read the doc on time support. I got the impression that the document addresses the situation where all the time periods are included in one file. Will someone please correct me if I am wrong about this? I'm toying with the idea of creating a GetCapabilities doc outside the context the mapserver, with the two layers and a time time range as you suggest above. A cgi script would create a map object using map script. But my understanding of mapscript capabilities is, at this point,l very weak so I don't know how feasible this is. I may have to start with something considerably simpler and work my way toward this. Thanks for the link to aes. I think it may prove to be helpful. John From jpbonk at AOL.COM Mon Jul 11 07:53:34 2005 From: jpbonk at AOL.COM (John Bonk) Date: Mon, 11 Jul 2005 10:53:34 -0400 Subject: Serving A Large Archive an openpap-client/wms-server In-Reply-To: <931f8ea90507081204521e3779@mail.gmail.com> Message-ID: Frank, Your suggestion is pretty much what I had in mind, though I may not have expressed myself clearly. We have several project in mind wrt to mapserver. I'm thinking that we should probably start with the simplest and work my way up to this. Thanks for the suggestion, John -----Original Message----- From: Frank Warmerdam To: jpbonk at aol.com Cc: MAPSERVER-USERS at lists.umn.edu Sent: Fri, 8 Jul 2005 15:04:58 -0400 Subject: Re: [UMN_MAPSERVER-USERS] Serving A Large Archive an openpap-client/wms-server On 7/8/05, jpbonk at aol.com wrote: > Frank, > > Thanks. We have considered dynamic generation of map files. > > I haven't yet been able to read up on mapscript, but I'm wondering how > a user would do a GetCapabilities request it this case. John, I don't really know if it is possible to use mapscript to generate a mapObj and then invoke the mapserver WMS capabilities action on it (much less getmap). It might be possible, but I think it is pushing the envelope a bit. Alternatively, you could write a scripted cgi to intercept the getcapabilities/getmap requests and prepare a temporary map file on disk, then invoke mapserv. This wouldn't specfically need mapscript. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From bfraser at GEOANALYTIC.COM Mon Jul 11 08:09:47 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Mon, 11 Jul 2005 09:09:47 -0600 Subject: Organizing large temporal datasets (WAS: Increasing Maxlayers limit - anyone have spare Windows binaries? :)) Message-ID: Bonnie, You may want to look into the TILEINDEX capability of MapServer. A tileindex is a vector datasource (shapefile, PostGIS database, etc) of outlines of other data, either raster or vector. Typically it's used to show and entire county of mosaicked and clipped airphotos or Census planimetric mapping vectors. In those cases MapServer does a spatial query to select the data files to read for rendering into the output graphic file. A tileindex could be used to represent data divided by time (as well as geography) such as satellite imagery. A recent enhancement (v4.?) allows the TILEINDEX to be a separate layer form the underlying data, and because of that can handle a user-specified query on attributes stored in the tileindex (e.g. satellite id, acquisition time, etc). So one possibility might be to have two layers (one for the data and one for the tileindex) per each of your 10-15 products. Then query the tileindex based on the product name/id and the date range. I'm not sure how to get the query from the WMS client to the server, so you may have to look into that... Since your data is relatively dynamic, you may want to use a PostGIS database as the format for your tileindex to avoid any file locking problems with shapefiles. Brent Fraser ----- Original Message ----- From: Bonnie Stewart To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Monday, July 11, 2005 12:05 AM Subject: [UMN_MAPSERVER-USERS] Increasing Maxlayers limit - anyone have spare Windows binaries? :) Hi all, I'm working on a way to make a large amount of our vector and raster data available via WMS and WFS, and I've come up against the MAXLAYERS setting (200 in our install I think). I'm already trying to get around the need for having so many layers in a single mapfile by reducing the granularity available as you get to mapfiles which cover a larger time period - let me see if I can explain what I mean without rambling on too much. At the lowest level of granularity, we're providing access to raster and vector files which are derived from satellite passes - and there may be 10-40 passes per day, depending on the product. I've already set up a process to automatically generate a mapfile containing the last 5 days worth of data, using the GROUP parameter to group them according to the day. This is jolly nifty for those customers who need to look at the recent info on a pass by pass basis. However, if I try to give people access to the entire archive (several years worth, and 10-15 different products, at 10-40 passes per day) on a pass by pass basis, the number of layers involved will be horrendous, so I'm trying to reduce the granularity at which archival data is available. My current plan is to (programmatically) create a series of weekly mapfiles, structured in the same way as mentioned above, with individual satellite passes grouped by day. I would have 52 of those for each year, and then to wrap them up so that people could have an overview of what's available, I'm planning to create some mapfiles (either yearly or monthly, maybe both), which connect to these weekly mapfiles via WMS, and pull in each daily group from the 52 weekly mapfiles, and define them as a single layer. So I think I would end up with a mapfile for each year, with a group for each week, and under each group, 7 individual layers - one for each day. Hopefully then there are two options: 1) People's clients are able to pull apart the vector data, and maybe do a query (for instance) to only display the lightning data from one particular satellite pass - although having used ArcMap and ArcExplorer for testing I'm not too hopeful about this; 2) Specific file naming conventions could allow users to find the week they're interested in in the yearly mapfile, and then work out what the mapfile name/URL for that week's lower level mapfile would be. So, now I'm finally going to get to my point - even using this structure, a MAXLAYERS setting of 200 is too low for me - I can do about 5 or 6 days of satellite passes in 200 layers, but to get to a whole week I would need to increase the MAXLAYERS parameter. To have a layer for each day in my yearly mapfile, I'd need a MAXLAYERS of around 370. I gather it's relatively easy to change the parameter and recompile Mapserver, but as I have very little experience in this area (and I've seen so many emails on this list seeking help with compiling mapserver!) I was hoping somebody might possibly have already done this, and might have Windows binaries compiled with a higher MAXLAYERS that they would be willing to share. Alternatively, if the structure I described above sounds silly or you can think of something more effective, please let me know :) We do have another approach in mind for the vector data, which is to produce an ongoing concatenated shapefile which contains all the features for that product (for instance, as a new pass's worth of lightning data becomes available, it is automatically added in to one big Lightning shapefile), and then to use classes to colour them up a bit according to the time that each event occurred. It's a nice theory for the vector info, but I'd still need to do something about the raster info. Any advice (or binaries!) would be very much appreciated :) Thanks, Bonnie __________________________________ Bonnie Stewart Research Officer Satellite Remote Sensing Services Information Access Division Department of Land Information 65 Brockway Road, FLOREAT WA 6014 Ph. (08) 9387 0342 | Fx. (08) 9383 7142 bonnie.stewart at dli.wa.gov.au www.dli.wa.gov.au From ed at TOPOZONE.COM Mon Jul 11 10:35:53 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 11 Jul 2005 13:35:53 -0400 Subject: MIT OrthoServer vs. UMN Mapserver Message-ID: Arno - One rarely looks at "huge amounts" of raster data. Most users look at a SMALL amount of data drawn from a larger dataset. We've been serving well over 20 terabytes of imagery with MapServer for several years now and have been very happy with the results (you can take a peek at www.topozone.com) If you can give us as much detail as possible about your application, we'll try to give you more specific advice! - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Arno roeder Sent: Monday, July 11, 2005 8:34 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] MIT OrthoServer vs. UMN Mapserver Hey list, does anybody know the performance difference between MIT OrthoServer http://tull.mit.edu/orthoserver/ and UMN Mapserver in the visualisation of raster data (huge amounts!)? Arno From ezequias at RECIFE.PE.GOV.BR Mon Jul 11 11:36:03 2005 From: ezequias at RECIFE.PE.GOV.BR (Ezequias Rodrigues da Rocha) Date: Mon, 11 Jul 2005 15:36:03 -0300 Subject: Res: Re: [UMN_MAPSERVER-USERS] PC256 color images (I need more quality) Message-ID: I commented the lines and the image got worst. And now ? -------Mensagem original------- De: Pericles S. Nacionales Data: 07/08/05 16:59:20 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] PC256 color images (I need more quality) Ah, I should have looked further down on your message. Comment out the PROCESSING parameters and see what happens. -Perry On Friday 08 July 2005 15:07, Ezequias Rodrigues da Rocha wrote: > Good afternoon (for some of you) > > > I am trying to make Mapserver render a 24bits but it only send to me a 256 > colors image. > > > Here some of my Map file: > ___________________________________________________________________________ >__ ________________ > fontset "/usr/java/jre1.5.0_01/lib/fonts/LucidaTypewriterRegular.ttf" > imagecolor 255 255 255 > imagetype jpeg > shapepath "/var/www/cgi-bin/" > size 600 440 > units meters > projection > "int=epsg:29185" > end > > > > LAYER > NAME "Imagem56" > data "raster/recorte_56.tif" > STATUS off > TYPE RASTER > PROCESSING "DITHER=YES" > PROCESSING "BANDS=1,2,3" > PROCESSING "COLOR_MATCH_THRESHOLD=3" > END > OUTPUTFORMAT > NAME jpeg > DRIVER "GD/JPEG" > MIMETYPE "image/jpeg" > IMAGEMODE RGB > EXTENSION "jpg" > END > > end # End Map > > > Best regards to all > > Ezequias -- Pericles S. Nacionales Conservation Biology Program University of Minnesota 1530 Cleveland Ave. N., 115GrnH St. Paul, MN 55108 -------------- next part -------------- An HTML attachment was scrubbed... URL: From mleong at GLOBEXPLORER.COM Mon Jul 11 12:39:08 2005 From: mleong at GLOBEXPLORER.COM (Michael Leong) Date: Mon, 11 Jul 2005 12:39:08 -0700 Subject: Wrong projections w/ v4.4.2 & v4.6.0 Message-ID: Hi, I just upgrade from v4.2.2 to v4.6.0 and getting incorrect images regarding vector data. 4.2.2 returns correct images, but 4.4.2 and 4.6.0, the projections are off. All three versions are linking against the same proj, postgis, and geos libs. correct image from v4.2.2: http://members.dslextreme.com/users/airplaneshooter/correct.jpg Wrong image from v4.6.0 http://members.dslextreme.com/users/airplaneshooter/wrong.jpg notice the imagery is the same, but the vectors are different. Both of them use almost identical mapfiles, but v4.6.0 has the connection defering. mike From gomckenz at GEOSQL.COM Mon Jul 11 13:09:36 2005 From: gomckenz at GEOSQL.COM (Subscribe Mapserver-Users Gom) Date: Mon, 11 Jul 2005 15:09:36 -0500 Subject: Maperver and IIS question Message-ID: Just to close the loop on this, I have identified my problem. It was a simple change to the line. The path stored in "value" was not right. It is fine as show above with Mapserver being my virutal directory. The previous value had been an explicit path. It worked fine on my IIS 5 and Mapserver 4.4.1 install. I will have to look at all the differences in the two installs as I am sure I am missing some obvious difference that made the two things work. Thanks Ed for your help. ------------------------------------------------------------------------ For those who have questioned how to configure IIS 6 here is what I did. Don't know if this is all that should be done but it is working. I post this in the hopes that it may help get some one going. If anyone knows that there are errors here please clear them up. I will assume you know how to install and get IIS running. I created a virtual directory, under Default Website, called Mapserver. It points to the directory where mapserv.exe is installed. Read, Directory Browse, Log Visits and Index this resource are all checked. Execute permissions are set to Scripts and Executables. On the Documents tab I have deselected "Enable default content page". Security is set for anonymous access with the default IUSR_**** etc. Integegrated Windows authentication is selected. I created a virtual directory, under Websites, Default Website, called whateveryournamewillbe. It points to the directory where my html, data etc is installed. Read, Log Visits and Index this resource are checked. Execute permissions are set to Scripts only. Security is set for anonymous access with the default IUSR_ etc. Integegrated Windows authentication is selected. Under the Web Service Extensions settings I chose Add a new web service extension... I named it mapserver. I checked the box that said "Set extension status to Allowed" then under Required Files I browsed to the directory where mapserv.exe is stored and added the mapserver.exe file. From nate at SEASTAR.JPL.NASA.GOV Mon Jul 11 14:48:06 2005 From: nate at SEASTAR.JPL.NASA.GOV (Nate Reed) Date: Mon, 11 Jul 2005 14:48:06 -0700 Subject: how to suppress warning message? Message-ID: When querying into a region that contains no data MapServer displays the following error message: Warning: [MapServer Error]: msQueryByRect(): No matching record(s) found. in /home/www/doc/nate/dev/MapController.php on line 498 Is there a way to turn this message off? I don't want to redirect to another url as previously suggested and there is no reason to treat this as an error. -- Nate Reed Physical Oceanography DAAC Jet Propulsion Lab / Raytheon ITSS (626)744-5528 nate at seastar.jpl.nasa.gov From nate at SEASTAR.JPL.NASA.GOV Mon Jul 11 14:54:25 2005 From: nate at SEASTAR.JPL.NASA.GOV (Nate Reed) Date: Mon, 11 Jul 2005 14:54:25 -0700 Subject: test Message-ID: hello? -- Nate Reed Physical Oceanography DAAC Jet Propulsion Lab / Raytheon ITSS (626)744-5528 nate at seastar.jpl.nasa.gov From dbkeon.ml at GMAIL.COM Mon Jul 11 15:17:55 2005 From: dbkeon.ml at GMAIL.COM (Dylan Keon) Date: Mon, 11 Jul 2005 15:17:55 -0700 Subject: how to suppress warning message? In-Reply-To: Message-ID: On 07/11/2005 02:48 PM, Nate Reed wrote: > When querying into a region that contains no data MapServer displays the > following error message: > > Warning: [MapServer Error]: msQueryByRect(): No matching record(s) found. > in /home/www/doc/nate/dev/MapController.php on line 498 > > Is there a way to turn this message off? I don't want to redirect to > another url as previously suggested and there is no reason to treat this > as an error. In PHP you can use '@' to suppress error messages: @$map->queryByPoint($click_pt, MS_MULTIPLE, -1); --Dylan From nate at SEASTAR.JPL.NASA.GOV Mon Jul 11 15:21:22 2005 From: nate at SEASTAR.JPL.NASA.GOV (Nate Reed) Date: Mon, 11 Jul 2005 15:21:22 -0700 Subject: how to suppress warning message? In-Reply-To: <42D2F013.80108@gmail.com> Message-ID: Thank you - that solves my problem. On Mon, 11 Jul 2005, Dylan Keon wrote: > On 07/11/2005 02:48 PM, Nate Reed wrote: > > When querying into a region that contains no data MapServer displays the > > following error message: > > > > Warning: [MapServer Error]: msQueryByRect(): No matching record(s) found. > > in /home/www/doc/nate/dev/MapController.php on line 498 > > > > Is there a way to turn this message off? I don't want to redirect to > > another url as previously suggested and there is no reason to treat this > > as an error. > > In PHP you can use '@' to suppress error messages: > > @$map->queryByPoint($click_pt, MS_MULTIPLE, -1); > > --Dylan > -- Nate Reed Physical Oceanography DAAC Jet Propulsion Lab / Raytheon ITSS (626)744-5528 nate at seastar.jpl.nasa.gov From nacional at CBS.UMN.EDU Mon Jul 11 15:28:42 2005 From: nacional at CBS.UMN.EDU (Pericles S. Nacionales) Date: Mon, 11 Jul 2005 17:28:42 -0500 Subject: Res: Re: [UMN_MAPSERVER-USERS] PC256 color images (I need more quality) In-Reply-To: <42D2BC13.000007.01988@DC_EZEQUIAS> Message-ID: I guess I still don't know what your problem is. If you're talking about quality in the sense of having compression artifacts, then you can add something like FORMATOPTION "QUALITY=100" in your OUTPUTFORMAT. Or perhaps you should be using PNG24 instead of JPEG. Read through http://mapserver.gis.umn.edu/doc/mapfile-reference.html#outputformat for more output related info. Also read http://mapserver.gis.umn.edu/doc/raster-howto.html for raster input stuff. -Perry On Monday 11 July 2005 13:36, Ezequias Rodrigues da Rocha wrote: > I commented the lines and the image got worst. > > And now ? > > -------Mensagem original------- > > De: Pericles S. Nacionales > Data: 07/08/05 16:59:20 > Para: MAPSERVER-USERS at LISTS.UMN.EDU > Assunto: Re: [UMN_MAPSERVER-USERS] PC256 color images (I need more quality) > > Ah, I should have looked further down on your message. Comment out the > PROCESSING parameters and see what happens. > > -Perry > > On Friday 08 July 2005 15:07, Ezequias Rodrigues da Rocha wrote: > > Good afternoon (for some of you) > > > > > > I am trying to make Mapserver render a 24bits but it only send to me a > > 256 colors image. > > > > > > Here some of my Map file: > > ___________________________________________________________________________ > > >__ ________________ > > fontset "/usr/java/jre1.5.0_01/lib/fonts/LucidaTypewriterRegular.ttf" > > imagecolor 255 255 255 > > imagetype jpeg > > shapepath "/var/www/cgi-bin/" > > size 600 440 > > units meters > > projection > > "int=epsg:29185" > > end > > > > > > > > LAYER > > NAME "Imagem56" > > data "raster/recorte_56.tif" > > STATUS off > > TYPE RASTER > > PROCESSING "DITHER=YES" > > PROCESSING "BANDS=1,2,3" > > PROCESSING "COLOR_MATCH_THRESHOLD=3" > > END > > OUTPUTFORMAT > > NAME jpeg > > DRIVER "GD/JPEG" > > MIMETYPE "image/jpeg" > > IMAGEMODE RGB > > EXTENSION "jpg" > > END > > > > end # End Map > > > > > > Best regards to all > > > > Ezequias > > -- > Pericles S. Nacionales > > Conservation Biology Program > University of Minnesota > 1530 Cleveland Ave. N., 115GrnH > St. Paul, MN 55108 -- Pericles S. Nacionales Conservation Biology Program University of Minnesota 1530 Cleveland Ave. N., 115GrnH St. Paul, MN 55108 From johng at AMDSWIRELESS.COM Mon Jul 11 15:29:58 2005 From: johng at AMDSWIRELESS.COM (John Gorkos) Date: Mon, 11 Jul 2005 17:29:58 -0500 Subject: PHP-MapScript Memory Exhaustion Error - SOLVED In-Reply-To: <200507081350.43029.johng@amdswireless.com> Message-ID: Much thanks to the following mapserver list members for their help: Matthew Roberson Romolo Mandfredini Tim Schaub Heather Banks Umberto Nocoletti The solution was not necessarily mapserver related, but PHP-based. In the /etc/php.ini file there is a line that by default is set to: memory_limit = 8M ; Maximum amount of memory a script may consume (8MB) By changing that to 32M (well within the capability of a 2GB RAM server), the error went away. Thanks to those that helped, with all kinds of suggestions. John Gorkos On Friday 08 July 2005 01:50 pm, John Gorkos wrote: > Gurus- > I am writing a PHP-MapScript script which pulls a list of points from a > DB, and plots them on the map using multiple styles per point. The styles > are dynamically altered in the script to basically draw a small bar graph > with 7 bars at each map point, to reflect various health parameters of some > remote equipment. > I have mad this work in perl. Under PHP, I am allowed to add two styles > per point, but when I add the third, I get this: > Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to > allocate 75 bytes) in /var/www/html/foo.phtml > > The code snippet which produces this is as follows: > $image=$map->draw(); > > $meterLayer = $map->getLayerByName("Endpoints"); > $meterClass0 = $meterLayer->getClass(0); > $rs= mssql_query ($sql, $con); > > $red = array(255,255,255,225,0,150,0); > $green = array(255,0,255,0,200,100,0); > $blue = array(255,0,0,150,150,50,255); > > while ( $row = mssql_fetch_row($rs)) { > for ( $i=0; $i<3; $i++ ) { > $meterStyle[$i] = $meterClass0->getStyle($i); > $meterStyle[$i]->outlinecolor->setRGB($red[$i],$green[$i],$blue[$i]); > $meterStyle[$i]->color->setRGB($red[$i],$green[$i],$blue[$i]); > $meterStyle[$i]->set('offsetx',$i*3); > $meterStyle[$i]->set('offsety',0); > } > $point = ms_newPointObj(); > $point->setXY((-1)*$row[1],$row[0]); > $point->draw($map,$meterLayer,$image,0,$row[2]); > } > > $image_url=$image->saveWebImage(); > > If the "3" in the for loop above is set to 2 or 1, it works fine, but I > need it to be an 8, which obviously fails. More code available on request. > > I am using Mapserver 2.6, PHP 5.0.4. The machine is 64-bit Mandrake Linux > installation on dual Xeons with 2GB of physical ram, yadda yadda. It's a > healthy machine, and has run this same type of code under 2.6beta3 with > Perl Mapscript. However, I formatted the box to switch from SuSE to > Mandrake, and forgot to copy the perl script over before I formatted the / > partition (insert lots of comments about backups, etc),so I'm rewriting in > PHP since I was shamed into learning in on the #mapserver irc channel. > > Anyone have any thoughts on where I'm wrong, or is this a bug? > > John Gorkos > AMDS Wireless, LLC From woodbri at SWOODBRIDGE.COM Mon Jul 11 17:38:11 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 11 Jul 2005 20:38:11 -0400 Subject: off-topic: need perl xs help Message-ID: Hi all, Are there any Perl xs people out there that would be willing to help me with a problem I'm having on my attempt at doing this? Please contact me off list. Thanks, -Steve W. From manninside at YAHOO.COM Mon Jul 11 18:46:41 2005 From: manninside at YAHOO.COM (Mandar sarlashkar) Date: Mon, 11 Jul 2005 18:46:41 -0700 Subject: Displaying Point on the Map if Co-ordinates are send by user ??? Message-ID: Dear All ! If User sends the co-ordinates - is it possible to display the Position as a point on the Map. Is it possible through CGI implementation of Mapserver ? or Is it possible, Using PHP MapScript ??? I have just started getting an idea of how Mapserver works. The task might be accomplished very easily or the question might be stupid but its very important for me... Thanking you in advance. Mann --------------------------------- Sell on Yahoo! Auctions - No fees. Bid on great items. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sc0rp10nau at YAHOO.COM.AU Mon Jul 11 18:47:20 2005 From: sc0rp10nau at YAHOO.COM.AU (a j) Date: Tue, 12 Jul 2005 11:47:20 +1000 Subject: Map image resolution and weird asp issues In-Reply-To: <200507100717.j6A7H85q019590@pilsener.srv.ualberta.ca> Message-ID: David, Quick question, are you calling the CGI MapServer url from within your asp pages? I know you are using an asp page as a template, but just wanted to ask. Also, might be out of scope or even not worth it, but i'll just throw it out there. Use the AJAX methodology for your mapping. What I mean by this is, you can generate the map, legend, reference and scale images from just a CGI-URL call to mapserver. This means you don't really need any templates within your mapfile. Just do up a normal asp (or even a basic html) page, and have some javascript which takes click position (for zoom/pan), construct a url, connect to the url, get the requested image back, and upload that particular image on the page. This probably sounds a bit complicated, but it's not, its quite simple, and the map loads pretty quick. (And you'd be using some new methodologies as well). As for your IE rendering PNG's as BMP's, i'll see if I can replicate it, but wouldn't mind knowing how you are trying to achieve that. cheers, Ajay --- David Shorthouse wrote: > Ajay (and others), > > Before posting, tried the OUTPUTFORMAT as you > suggested. This works > when the template is html, but does not when the > template is asp. No matter > what I do to the mapfile, the file format is always > bmp. But, this is only > true when the client browser is IE. In > Mozilla/Firefox, the changes to the > mapfile work as they should. Also, changing the > resolution does nothing to > the resolution of the image for either client > browser. Something very > peculiar is going on here and I'd like to know if > anyone with the same > config as I have also exhibits these alarming > issues. Perhaps it is simply > not possible to reliably call an image via MapServer > within asp. > > David > > >-----Original Message----- > >From: UMN MapServer Users List > >[mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of > Ajay Ranipeta > >Sent: Saturday, July 09, 2005 11:42 PM > >To: MAPSERVER-USERS at lists.umn.edu > >Subject: Re: [UMN_MAPSERVER-USERS] Map image > resolution and > >weird asp issues > > > >Hi Dave, > > > >Not sure much about the BMP output, but this is > what I have in > >my mapfiles > >for OUTPUTFORMAT > > > >-------------------------- > > # image format options > > OUTPUTFORMAT > > NAME png > > DRIVER "GD/PNG" > > MIMETYPE "image/png" > > IMAGEMODE RGB > > EXTENSION "png" > > END > >-------------------------- > > > >You can also try to set the IMAGEMODE to PC256 and > see if that helps. > > > >As for the image resolution, try the RESOLUTION > option in your > >mapfiles, > >so for map mode, you might want to have "RESOLUTION > 250" and > >for browse mode > >add in "RESOLUTION 72" (72 dpi is the default, so > you don't > >even need to set > >this). > > > >For more help on the mapfile configuration, check > this doc out: > >http://mapserver.gis.umn.edu/doc44/mapfile-reference.html > > > >hth > > > >Ajay > >ps. Add those 2 options under the MAP section, > possibly after the name. > > > >On Sat, 9 Jul 2005 22:01:56 -0600, David Shorthouse > > > wrote: > > > >>Hey folks, > >> > >> I have been trying to get MapServer to play > nicely when static map > >>images are generated within an asp page. I have > the mapfile > >configured to > >>output png but strangely in IE, the image file is > always bmp and > >>consequently, is about 15X larger in file size > than it ought to be. In > >>Mozilla, the image is png as it ought to be and is > the > >appropriate file > >>size. Anyone know what's going on here? As an > aside, I have > >two map files: > >>one for browse mode and one for map mode. I was > wondering how > >one goes about > >>messing with the map files such that the > resolution of images > >in map mode > >>are not always 72 dpi. Interestingly in browse > mode, the > >image resolutions > >>are all 96 dpi. I'd rather have about 250 dpi for > map mode > >and 72 dpi for > >>browse mode. > >> > >>Thanks for any ideas, > >> > >>Dave > >> > > > > Send instant messages to your online friends http://au.messenger.yahoo.com From jkim at SCIENCES.SDSU.EDU Mon Jul 11 18:47:28 2005 From: jkim at SCIENCES.SDSU.EDU (John) Date: Mon, 11 Jul 2005 20:47:28 -0500 Subject: bug or design: query returns classes that are OFF Message-ID: I have a polygon map with a vegetation layer, which is divided into several classes. The user can turn classes on and off, so that only chosen types of vegetation are visible. When I do layer->queryByPoint(), it returns polygons whose status has been set to MS_OFF. Is that a bug? I was hoping it would return only polygons whose class is set to MS_ON. As it is now, I have to manually check (in PHP) to see if the polygon belongs to the class that is supposed to be invisible. Thanks. From Bonnie.Stewart at DLI.WA.GOV.AU Mon Jul 11 20:02:39 2005 From: Bonnie.Stewart at DLI.WA.GOV.AU (Bonnie Stewart) Date: Tue, 12 Jul 2005 11:02:39 +0800 Subject: Organizing large temporal datasets (WAS: Increasing Maxlayers limit - anyone have spare Windows binaries? :)) Message-ID: Hi Brent, Thanks! I had no idea that TILEINDEXing could be used for time-variant data as well as spatial-variant data. I've been doing some googling trying to find out more information on this (no experience whatsoever with TILEINDEX thus far), and this is the best I've come up with: http://ms.gis.umn.edu/docs/howto/wcs_server http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?WCSMapServer The section which covers "Spatio/Temporal Indexes" in the first document is I believe the methodology you're referring to, and while it's very helpful, I still have a few questions. 1) So far I have only read about temporal timeindexing with respect to serving WCS (Web Coverage Service) rather than WMS or WFS. Is it possible to use the same methodology but serve WMS or WFS layers? I don't know much about WCS and I'm not sure what clients (off the shelf - we are not going to be developing any client interface for our users) can access it. 2) Does anybody know of any additional documentation/tutorials/examples using TILEINDEX for raster and vector data which is spatially nonvariant and temporally variant? :) From bfraser at GEOANALYTIC.COM Mon Jul 11 21:07:00 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Mon, 11 Jul 2005 22:07:00 -0600 Subject: Organizing large temporal datasets (WAS: Increasing Maxlayers limit - anyone have spare Windows binaries? :)) In-Reply-To: <3F8F4F5195AF16468E8760F8068F089E14CD8E@MAIL.dli.wa.gov.au> Message-ID: Bonnie, I wasn't sure if WMS + tileindex + time attribute was possible. I've done similar things with the Mapserver protocol (not WMS). I'm not sure is possible; ther emay be a limitation with Mapserver or WMS. And I don't know if any WMS clients will allow the user to form a standard attribute query, much less a temporal one. But it may be worth looking into... Brent > Hi Brent, > > Thanks! I had no idea that TILEINDEXing could be used for time-variant > data as well as spatial-variant data. > > I've been doing some googling trying to find out more information on this > (no experience whatsoever with TILEINDEX thus far), and this is the best > I've come up with: > http://ms.gis.umn.edu/docs/howto/wcs_server > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?WCSMapServer > > The section which covers "Spatio/Temporal Indexes" in the first document > is I believe the methodology you're referring to, and while it's very > helpful, I still have a few questions. > > 1) So far I have only read about temporal timeindexing with respect to > serving WCS (Web Coverage Service) rather than WMS or WFS. Is it possible > to use the same methodology but serve WMS or WFS layers? I don't know much > about WCS and I'm not sure what clients (off the shelf - we are not going > to be developing any client interface for our users) can access it. > > 2) Does anybody know of any additional documentation/tutorials/examples > using TILEINDEX for raster and vector data which is spatially nonvariant > and temporally variant? :) > > > From what I've seen of WCS, it's very nifty, and I hope to be able to > provide our data via WCS as well as WMS and WFS - but that will come down > to whether our users' clients (ArcExplorer, ArcMap, and similar) are able > to make use of it. > > > Thanks again for the info - looks like I've got some thinking to do! > > > Cheers, > > > Bonnie > > __________________________________ > Bonnie Stewart > Research Officer > Satellite Remote Sensing Services > Information Access Division > Department of Land Information > 65 Brockway Road, FLOREAT WA 6014 > Ph. (08) 9387 0342 | Fx. (08) 9383 7142 > bonnie.stewart at dli.wa.gov.au > www.dli.wa.gov.au > > ________________________________ > > From: Brent Fraser [mailto:bfraser at geoanalytic.com] > Sent: Mon 11/07/2005 11:09 PM > To: Bonnie Stewart; MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [Maybe SPAM] Re: Organizing large temporal datasets (WAS: > Increasing Maxlayers limit - anyone have spare Windows binaries? :)) > > > > Bonnie, > > You may want to look into the TILEINDEX capability of MapServer. A > tileindex is a vector datasource (shapefile, PostGIS database, etc) of > outlines of other data, either raster or vector. Typically it's used to > show and entire county of mosaicked and clipped airphotos or Census > planimetric mapping vectors. In those cases MapServer does a spatial > query > to select the data files to read for rendering into the output graphic > file. > A tileindex could be used to represent data divided by time (as well as > geography) such as satellite imagery. A recent enhancement (v4.?) allows > the TILEINDEX to be a separate layer form the underlying data, and because > of that can handle a user-specified query on attributes stored in the > tileindex (e.g. satellite id, acquisition time, etc). > > So one possibility might be to have two layers (one for the data and one > for the tileindex) per each of your 10-15 products. Then query the > tileindex based on the product name/id and the date range. I'm not sure > how > to get the query from the WMS client to the server, so you may have to > look > into that... > > Since your data is relatively dynamic, you may want to use a PostGIS > database as the format for your tileindex to avoid any file locking > problems > with shapefiles. > > Brent Fraser > > > ----- Original Message ----- > From: Bonnie Stewart > To: MAPSERVER-USERS at LISTS.UMN.EDU > Sent: Monday, July 11, 2005 12:05 AM > Subject: [UMN_MAPSERVER-USERS] Increasing Maxlayers limit - anyone have > spare Windows binaries? :) > > > Hi all, > > I'm working on a way to make a large amount of our vector and raster data > available via WMS and WFS, and I've come up against the MAXLAYERS setting > (200 in our install I think). > > I'm already trying to get around the need for having so many layers in a > single mapfile by reducing the granularity available as you get to > mapfiles > which cover a larger time period - let me see if I can explain what I mean > without rambling on too much. > > At the lowest level of granularity, we're providing access to raster and > vector files which are derived from satellite passes - and there may be > 10-40 passes per day, depending on the product. I've already set up a > process to automatically generate a mapfile containing the last 5 days > worth > of data, using the GROUP parameter to group them according to the day. > This > is jolly nifty for those customers who need to look at the recent info on > a > pass by pass basis. > > However, if I try to give people access to the entire archive (several > years > worth, and 10-15 different products, at 10-40 passes per day) on a pass by > pass basis, the number of layers involved will be horrendous, so I'm > trying > to reduce the granularity at which archival data is available. > > My current plan is to (programmatically) create a series of weekly > mapfiles, > structured in the same way as mentioned above, with individual satellite > passes grouped by day. I would have 52 of those for each year, and then to > wrap them up so that people could have an overview of what's available, > I'm > planning to create some mapfiles (either yearly or monthly, maybe both), > which connect to these weekly mapfiles via WMS, and pull in each daily > group > from the 52 weekly mapfiles, and define them as a single layer. > > So I think I would end up with a mapfile for each year, with a group for > each week, and under each group, 7 individual layers - one for each day. > Hopefully then there are two options: > 1) People's clients are able to pull apart the vector data, and maybe do a > query (for instance) to only display the lightning data from one > particular > satellite pass - although having used ArcMap and ArcExplorer for testing > I'm > not too hopeful about this; > 2) Specific file naming conventions could allow users to find the week > they're interested in in the yearly mapfile, and then work out what the > mapfile name/URL for that week's lower level mapfile would be. > > So, now I'm finally going to get to my point - even using this structure, > a > MAXLAYERS setting of 200 is too low for me - I can do about 5 or 6 days of > satellite passes in 200 layers, but to get to a whole week I would need to > increase the MAXLAYERS parameter. To have a layer for each day in my > yearly > mapfile, I'd need a MAXLAYERS of around 370. > > I gather it's relatively easy to change the parameter and recompile > Mapserver, but as I have very little experience in this area (and I've > seen > so many emails on this list seeking help with compiling mapserver!) I was > hoping somebody might possibly have already done this, and might have > Windows binaries compiled with a higher MAXLAYERS that they would be > willing > to share. > > Alternatively, if the structure I described above sounds silly or you can > think of something more effective, please let me know :) We do have > another > approach in mind for the vector data, which is to produce an ongoing > concatenated shapefile which contains all the features for that product > (for > instance, as a new pass's worth of lightning data becomes available, it is > automatically added in to one big Lightning shapefile), and then to use > classes to colour them up a bit according to the time that each event > occurred. It's a nice theory for the vector info, but I'd still need to do > something about the raster info. > > > Any advice (or binaries!) would be very much appreciated :) > > > Thanks, > > > Bonnie > > __________________________________ > Bonnie Stewart > Research Officer > Satellite Remote Sensing Services > Information Access Division > Department of Land Information > 65 Brockway Road, FLOREAT WA 6014 > Ph. (08) 9387 0342 | Fx. (08) 9383 7142 > bonnie.stewart at dli.wa.gov.au > www.dli.wa.gov.au > > > > > > This e-mail and any files transmitted with it are intended only for the > use of the addressee(s). It may contain information that is confidential > and privileged. If you are not an intended recipient, any use, > interference with, disclosure, distribution or copying of this material is > unauthorised and prohibited. If you receive this in error, please notify > the author by Return email to the sender. Information in this message not > relating to the official business of DLI shall be understood as neither > given nor endorsed by it. While every care is taken, it is recommended > that you scan any attachments for viruses. DLI liability is limited to > re-supplying affected attachments. > > > From woodbri at SWOODBRIDGE.COM Mon Jul 11 21:16:33 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 12 Jul 2005 00:16:33 -0400 Subject: off-topic: need perl xs help In-Reply-To: <42D310F3.6000600@swoodbridge.com> Message-ID: Never mine, I worked it out. -Steve Stephen Woodbridge wrote: > Hi all, > > Are there any Perl xs people out there that would be willing to help me > with a problem I'm having on my attempt at doing this? > > Please contact me off list. > > Thanks, > -Steve W. > From higon_jos at GVA.ES Mon Jul 11 22:36:43 2005 From: higon_jos at GVA.ES (Jos=?ISO-8859-1?Q?=E9_Vte_Hig=F3n?=) Date: Tue, 12 Jul 2005 00:36:43 -0500 Subject: WCS: red image when resx is different resy Message-ID: Hi, When I request a coverage and the values of resx and resy parameters are differents, the returned coverage is red and black! The request is: http://sercartlin/cgi-bin/wcs?service=WCS&version=1.0.0&request=GetCoverage&bands=1,2,3&COVERAGE=quickbird5&CRS=EPSG:32630&FORMAT=GEOTIFF_INT16&BBOX=751078.630001203,4269106.700052251,751326.1940575003,4269339.076129635&RESY=0.7570766247623808&RESX=0.5 Can anyone help me? I'm using mapserver 4.6.0 with Geotiff coverages on suse 9.0. Thanks!! -- Jos? Vicente Hig?n gvSIG development Team Conselleria de Infraestructuras y Transporte Generalitat Valenciana Valencia - Spain tlf. 963862397 http://www.gvsig.gva.es From higon_jos at GVA.ES Tue Jul 12 15:07:20 2005 From: higon_jos at GVA.ES (=?ISO-8859-1?Q?Jos=E9_Vicente_Hig=F3n_Valero?=) Date: Wed, 13 Jul 2005 00:07:20 +0200 Subject: WCS: red image when resx is different resy Message-ID: Hi, When I request a coverage and the values of resx and resy parameters are differents, the returned coverage is red and black! The request is: http://sercartlin/cgi-bin/wcs?service=WCS&version=1.0.0&request=GetCoverage&bands=1,2,3&COVERAGE=quickbird5&CRS=EPSG:32630&FORMAT=GEOTIFF_INT16&BBOX=751078.630001203,4269106.700052251,751326.1940575003,4269339.076129635&RESY=0.7570766247623808&RESX=0.5 Can anyone help me? I'm using mapserver 4.6.0 with Geotiff coverages on suse 9.0. Thanks!! -- Jos? Vicente Hig?n gvSIG development Team Conselleria de Infraestructuras y Transporte Generalitat Valenciana Valencia - Spain tlf. 963862397 http://www.gvsig.gva.es From stephane.riff at CERENE.FR Tue Jul 12 00:36:58 2005 From: stephane.riff at CERENE.FR (=?ISO-8859-1?Q?St=E9phane_RIFF?=) Date: Tue, 12 Jul 2005 09:36:58 +0200 Subject: Car track representation Message-ID: Hello, I develop a little apps that shaow gps tracks on a map. I want to show all the car track in a day. Each track have a different color from the precedent. To limit the number of classes i rotate on seven colors. All track are classify by a start date and a stop date. What i want to know is if i use the most efficient layer definition to do that ??? Here the layer def in the mapfile : LAYER CLASSITEM "gps_date" CONNECTION "host=localhost dbname=database1 port=5432 user=usr1 password=pwd1" CONNECTIONTYPE POSTGIS DATA "geom from history" FILTER ( (natural_id=1002514153) AND (TIMESTAMP '2005-07-11 00:00:01',TIMESTAMP '2005-07-11 23:59:59') OVERLAPS (date,INTERVAL '0 days')) GROUP "G.P.S" LABELANGLEITEM "heading" LABELCACHE OFF METADATA END NAME "GPS_REM" PROJECTION "init=epsg:4326" END SIZEUNITS PIXELS STATUS ON TOLERANCE 6 TOLERANCEUNITS PIXELS TRANSPARENCY 1000 TYPE ANNOTATION UNITS METERS CLASS NAME "0" EXPRESSION ( ('[gps_date]' >= '2005-07-11 06:57:06' AND '[gps_date]' < '2005-07-11 07:02:36') OR ('[gps_date]' >= '2005-07-11 12:16:09' AND '[gps_date]' < '2005-07-11 12:18:49') OR ('[gps_date]' >= '2005-07-11 17:29:04' AND '[gps_date]' < '2005-07-11 17:37:54') OR ('[gps_date]' >= '2005-07-11 19:18:58' AND '[gps_date]' < '2005-07-11 19:19:13') OR ('[gps_date]' >= '2005-07-11 20:24:25' AND '[gps_date]' < '2005-07-11 20:38:05') ) LABEL ANGLE -21.000000 ANTIALIAS TRUE FONT Symbols MAXSIZE 256 MINSIZE 4 SIZE 14 TYPE TRUETYPE BUFFER 0 COLOR 0 128 128 FORCE TRUE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE POSITION CC END METADATA END STYLE COLOR 0 0 255 MAXSIZE 500 MINSIZE 1 SIZE 14 SYMBOL "point" END TEMPLATE "dummy" TEXT "b" END CLASS NAME "1" EXPRESSION ( ('[gps_date]' >= '2005-07-11 07:10:19' AND '[gps_date]' < '2005-07-11 07:48:45') OR ('[gps_date]' >= '2005-07-11 12:18:49' AND '[gps_date]' < '2005-07-11 12:34:15') OR ('[gps_date]' >= '2005-07-11 17:37:54' AND '[gps_date]' < '2005-07-11 18:00:53') OR ('[gps_date]' >= '2005-07-11 19:29:20' AND '[gps_date]' < '2005-07-11 19:30:05') OR ('[gps_date]' >= '2005-07-11 20:38:05' AND '[gps_date]' < '2005-07-11 20:44:50') ) LABEL ANGLE -21.000000 ANTIALIAS TRUE FONT Symbols MAXSIZE 256 MINSIZE 4 SIZE 14 TYPE TRUETYPE BUFFER 0 COLOR 0 0 128 FORCE TRUE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE POSITION CC END METADATA END STYLE COLOR 0 0 255 MAXSIZE 500 MINSIZE 1 SIZE 14 SYMBOL "point" END TEMPLATE "dummy" TEXT "b" END CLASS NAME "2" EXPRESSION ( ('[gps_date]' >= '2005-07-11 07:56:22' AND '[gps_date]' < '2005-07-11 08:00:22') OR ('[gps_date]' >= '2005-07-11 12:37:30' AND '[gps_date]' < '2005-07-11 12:44:30') OR ('[gps_date]' >= '2005-07-11 18:00:53' AND '[gps_date]' < '2005-07-11 18:33:29') OR ('[gps_date]' >= '2005-07-11 19:37:37' AND '[gps_date]' < '2005-07-11 19:39:52') OR ('[gps_date]' >= '2005-07-11 20:44:50' AND '[gps_date]' < '2005-07-11 20:46:35') ) LABEL ANGLE -168.000000 ANTIALIAS TRUE FONT Symbols MAXSIZE 256 MINSIZE 4 SIZE 14 TYPE TRUETYPE BUFFER 0 COLOR 128 0 128 FORCE TRUE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE POSITION CC END METADATA END STYLE COLOR 0 0 255 MAXSIZE 500 MINSIZE 1 SIZE 14 SYMBOL "point" END TEMPLATE "dummy" TEXT "b" END CLASS NAME "3" EXPRESSION ( ('[gps_date]' >= '2005-07-11 08:02:07' AND '[gps_date]' < '2005-07-11 08:19:54') OR ('[gps_date]' >= '2005-07-11 15:21:47' AND '[gps_date]' < '2005-07-11 15:38:00') OR ('[gps_date]' >= '2005-07-11 18:33:29' AND '[gps_date]' < '2005-07-11 18:42:53') OR ('[gps_date]' >= '2005-07-11 19:52:07' AND '[gps_date]' < '2005-07-11 20:05:55') OR ('[gps_date]' >= '2005-07-11 20:47:35' AND '[gps_date]' < '2005-07-11 20:47:50') ) LABEL ANGLE -261.000000 ANTIALIAS TRUE FONT Symbols MAXSIZE 256 MINSIZE 4 SIZE 14 TYPE TRUETYPE BUFFER 0 COLOR 128 128 128 FORCE TRUE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE POSITION CC END METADATA END STYLE COLOR 0 0 255 MAXSIZE 500 MINSIZE 1 SIZE 14 SYMBOL "point" END TEMPLATE "dummy" TEXT "b" END CLASS NAME "4" EXPRESSION ( ('[gps_date]' >= '2005-07-11 08:20:09' AND '[gps_date]' < '2005-07-11 08:21:24') OR ('[gps_date]' >= '2005-07-11 15:41:45' AND '[gps_date]' < '2005-07-11 16:53:00') OR ('[gps_date]' >= '2005-07-11 18:42:53' AND '[gps_date]' < '2005-07-11 18:46:38') OR ('[gps_date]' >= '2005-07-11 20:05:55' AND '[gps_date]' < '2005-07-11 20:10:40') OR ('[gps_date]' >= '2005-07-11 21:24:58' AND '[gps_date]' < '2005-07-11 21:25:28') ) LABEL ANGLE -286.000000 ANTIALIAS TRUE FONT Symbols MAXSIZE 256 MINSIZE 4 SIZE 14 TYPE TRUETYPE BUFFER 0 COLOR 0 0 0 FORCE TRUE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE POSITION CC END METADATA END STYLE COLOR 0 0 255 MAXSIZE 500 MINSIZE 1 SIZE 14 SYMBOL "point" END TEMPLATE "dummy" TEXT "b" END CLASS NAME "5" EXPRESSION ( ('[gps_date]' >= '2005-07-11 08:46:27' AND '[gps_date]' < '2005-07-11 09:15:20') OR ('[gps_date]' >= '2005-07-11 16:53:00' AND '[gps_date]' < '2005-07-11 17:20:19') OR ('[gps_date]' >= '2005-07-11 18:55:38' AND '[gps_date]' < '2005-07-11 18:59:08') OR ('[gps_date]' >= '2005-07-11 20:10:40' AND '[gps_date]' < '2005-07-11 20:20:10') ) LABEL ANGLE -11.000000 ANTIALIAS TRUE FONT Symbols MAXSIZE 256 MINSIZE 4 SIZE 14 TYPE TRUETYPE BUFFER 0 COLOR 128 128 0 FORCE TRUE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE POSITION CC END METADATA END STYLE COLOR 0 0 255 MAXSIZE 500 MINSIZE 1 SIZE 14 SYMBOL "point" END TEMPLATE "dummy" TEXT "b" END CLASS NAME "6" EXPRESSION ( ('[gps_date]' >= '2005-07-11 11:21:04' AND '[gps_date]' < '2005-07-11 11:50:10') OR ('[gps_date]' >= '2005-07-11 17:20:19' AND '[gps_date]' < '2005-07-11 17:29:04') OR ('[gps_date]' >= '2005-07-11 19:12:43' AND '[gps_date]' < '2005-07-11 19:16:58') OR ('[gps_date]' >= '2005-07-11 20:20:10' AND '[gps_date]' < '2005-07-11 20:21:25') ) LABEL ANGLE -6.000000 ANTIALIAS TRUE FONT Symbols MAXSIZE 256 MINSIZE 4 SIZE 14 TYPE TRUETYPE BUFFER 0 COLOR 255 0 255 FORCE TRUE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE POSITION CC END METADATA END STYLE COLOR 0 0 255 MAXSIZE 500 MINSIZE 1 SIZE 14 SYMBOL "point" END TEMPLATE "dummy" TEXT "b" END CLASS NAME "stop" EXPRESSION ( ('[gps_date]' eq '2005-07-10 23:04:48') OR ('[gps_date]' eq '2005-07-11 07:02:36') OR ('[gps_date]' eq '2005-07-11 07:48:45') OR ('[gps_date]' eq '2005-07-11 07:53:52') OR ('[gps_date]' eq '2005-07-11 08:00:22') OR ('[gps_date]' eq '2005-07-11 08:19:54') OR ('[gps_date]' eq '2005-07-11 08:21:24') OR ('[gps_date]' eq '2005-07-11 08:22:24') OR ('[gps_date]' eq '2005-07-11 09:15:20') OR ('[gps_date]' eq '2005-07-11 11:50:10') OR ('[gps_date]' eq '2005-07-11 12:34:15') OR ('[gps_date]' eq '2005-07-11 12:44:30') OR ('[gps_date]' eq '2005-07-11 13:39:04') OR ('[gps_date]' eq '2005-07-11 15:38:00') OR ('[gps_date]' eq '2005-07-11 18:46:38') OR ('[gps_date]' eq '2005-07-11 18:59:08') OR ('[gps_date]' eq '2005-07-11 19:16:58') OR ('[gps_date]' eq '2005-07-11 19:19:13') OR ('[gps_date]' eq '2005-07-11 19:30:05') OR ('[gps_date]' eq '2005-07-11 19:34:37') OR ('[gps_date]' eq '2005-07-11 19:34:52') OR ('[gps_date]' eq '2005-07-11 19:39:52') OR ('[gps_date]' eq '2005-07-11 19:41:52') OR ('[gps_date]' eq '2005-07-11 19:45:22') OR ('[gps_date]' eq '2005-07-11 19:45:37') OR ('[gps_date]' eq '2005-07-11 19:48:37') OR ('[gps_date]' eq '2005-07-11 19:48:52') OR ('[gps_date]' eq '2005-07-11 19:50:07') OR ('[gps_date]' eq '2005-07-11 20:21:25') OR ('[gps_date]' eq '2005-07-11 20:23:55') OR ('[gps_date]' eq '2005-07-11 20:46:35') OR ('[gps_date]' eq '2005-07-11 20:47:50') OR ('[gps_date]' eq '2005-07-11 21:25:28') OR ('[gps_date]' eq '2005-07-11 22:38:02') ) LABEL ANGLE -244.000000 ANTIALIAS TRUE FONT Symbols MAXSIZE 256 MINSIZE 4 SIZE 14 TYPE TRUETYPE BUFFER 0 COLOR 255 0 0 FORCE TRUE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE POSITION CC END METADATA END TEMPLATE "dummy" TEXT "f" END END Maybe someone know a better definition to set Expression based on date ??? Thanks for reading From nbarker at RSINC.COM Tue Jul 12 01:16:21 2005 From: nbarker at RSINC.COM (Norman Barker) Date: Tue, 12 Jul 2005 09:16:21 +0100 Subject: WCS: red image when resx is different resy Message-ID: There was a bug associated with different RESX and RESY for WCS data, I have submitted a patch at http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1372 which might work for you, just awaiting approval for the patch to be put in the main code. Is your server (sercartlin) is internal, I couldn't access it. Norman -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Jos? Vicente Hig?n Valero Sent: Tuesday, July 12, 2005 11:07 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] WCS: red image when resx is different resy Hi, When I request a coverage and the values of resx and resy parameters are differents, the returned coverage is red and black! The request is: http://sercartlin/cgi-bin/wcs?service=WCS&version=1.0.0&request=GetCoverage&bands=1,2,3&COVERAGE=quickbird5&CRS=EPSG:32630&FORMAT=GEOTIFF_INT16&BBOX=751078.630001203,4269106.700052251,751326.1940575003,4269339.076129635&RESY=0.7570766247623808&RESX=0.5 Can anyone help me? I'm using mapserver 4.6.0 with Geotiff coverages on suse 9.0. Thanks!! -- Jos? Vicente Hig?n gvSIG development Team Conselleria de Infraestructuras y Transporte Generalitat Valenciana Valencia - Spain tlf. 963862397 http://www.gvsig.gva.es From leopold.schefcik at MULTIMEDIAPLAN.AT Tue Jul 12 01:29:32 2005 From: leopold.schefcik at MULTIMEDIAPLAN.AT (Leopold Schefcik (MULTIMEDIAPLAN.AT)) Date: Tue, 12 Jul 2005 10:29:32 +0200 Subject: Apache on Port 81 In-Reply-To: Message-ID: hi list! My ms4w is running on my local computer. Now I want to install it on the windows server there on port 80 is an IIS installed I copyed the ms4w directory with e.g. C:/ms4w/apache/... and C:/ms4w/apache-install.bat) on the server and startet the apache-install.bat. But with http://localhost I don?t get the ms4w starting page, but the iis start page. So I tried to switch in Apache/conf/ in the files httpd.conf and httpd.default.conf all 80 to 81. But local nothing changed. How can I get my ms4w starting page running? greatings, Leopold From jacob.delfos at MAUNSELL.COM Tue Jul 12 01:33:43 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Tue, 12 Jul 2005 16:33:43 +0800 Subject: Apache on Port 81 Message-ID: Hi Leopold, Should work fine, as long as you make sure all absolute links point to port 80 (http://localhost:80/.....), so best to use relative links whereever possible, so you don't have to hardcode the port. But be aware that many users may not have access to port 81 (because often company firewalls are set to block all non-standard ports). regards, Jacob -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Leopold Schefcik (MULTIMEDIAPLAN.AT) Sent: 12 July 2005 16:30 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Apache on Port 81 hi list! My ms4w is running on my local computer. Now I want to install it on the windows server there on port 80 is an IIS installed I copyed the ms4w directory with e.g. C:/ms4w/apache/... and C:/ms4w/apache-install.bat) on the server and startet the apache-install.bat. But with http://localhost I don?t get the ms4w starting page, but the iis start page. So I tried to switch in Apache/conf/ in the files httpd.conf and httpd.default.conf all 80 to 81. But local nothing changed. How can I get my ms4w starting page running? greatings, Leopold -------------- next part -------------- An HTML attachment was scrubbed... URL: From Frank.Broniewski at MNHA.ETAT.LU Tue Jul 12 01:34:50 2005 From: Frank.Broniewski at MNHA.ETAT.LU (Frank Broniewski) Date: Tue, 12 Jul 2005 10:34:50 +0200 Subject: AW: [UMN_MAPSERVER-USERS] Apache on Port 81 In-Reply-To: Message-ID: You need to add the port to the address like http://localhost:81/, and you need to configure the apache server to listen on port 81. Frank Broniewski Mus?e National d'Histoire et d'Art Section Pr?histoire / Projet EPC T?l: +352 260 281-21 241, Rue de Luxembourg L-8077 Bertrange -----Urspr?ngliche Nachricht----- Von: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Im Auftrag von Leopold Schefcik (MULTIMEDIAPLAN.AT) Gesendet: Dienstag, 12. Juli 2005 09:30 An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: [UMN_MAPSERVER-USERS] Apache on Port 81 hi list! My ms4w is running on my local computer. Now I want to install it on the windows server there on port 80 is an IIS installed I copyed the ms4w directory with e.g. C:/ms4w/apache/... and C:/ms4w/apache-install.bat) on the server and startet the apache-install.bat. But with http://localhost I don?t get the ms4w starting page, but the iis start page. So I tried to switch in Apache/conf/ in the files httpd.conf and httpd.default.conf all 80 to 81. But local nothing changed. How can I get my ms4w starting page running? greatings, Leopold From donal_regan10 at YAHOO.CO.UK Tue Jul 12 01:39:17 2005 From: donal_regan10 at YAHOO.CO.UK (Donal Regan) Date: Tue, 12 Jul 2005 03:39:17 -0500 Subject: WFS support for Multilinestring Layer Type? Message-ID: Hello, I was wondering why http://mapserver.gis.umn.edu/doc40/wfs-server-howto.html#d45e81 states that : MapServer will serve and include in its WFS capabilities only the layers that meet the following conditions: * Data source is of vector type (Shapefile, OGR, PostGIS, SDE, SDO, ...) * LAYER NAME must be set * LAYER TYPE is one of: LINE, POINT, POLYGON * LAYER DUMP parameter set to TRUE Are there plans to include more layer types in the future, specifically Multiline strings? Thanks, Donal From BEN at SYNCERA-ITSOLUTIONS.NL Tue Jul 12 01:57:06 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Tue, 12 Jul 2005 10:57:06 +0200 Subject: WFS support for Multilinestring Layer Type? Message-ID: Hi, first of all those are the version 4.0 docs, quite outdated. At least in the current version (4.6) it is supported (I don't know exactly since which version). Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Donal Regan 07/12/05 10:39am >>> Hello, I was wondering why http://mapserver.gis.umn.edu/doc40/wfs-server-howto.html#d45e81 states that : MapServer will serve and include in its WFS capabilities only the layers that meet the following conditions: * Data source is of vector type (Shapefile, OGR, PostGIS, SDE, SDO, ....) * LAYER NAME must be set * LAYER TYPE is one of: LINE, POINT, POLYGON * LAYER DUMP parameter set to TRUE Are there plans to include more layer types in the future, specifically Multiline strings? Thanks, Donal From nicolas at MAICH.GR Tue Jul 12 02:31:01 2005 From: nicolas at MAICH.GR (Nikos) Date: Tue, 12 Jul 2005 12:31:01 +0300 Subject: Mapfile TOLERANCE/ Mouse-click accuracy? In-Reply-To: <42D43F18.3020904@gva.es> Message-ID: Hello, I could use a bit of help here. Using a simple shapefile of France, about 20 regions, under windows, ms3.6 cgi, and standard html interface... My problem is accuarcy when querying a polygon, e.g when I click on what should be Corsica, I get the alps.. I've cranked up the TOLERANCE in my layer definition.. but all that does is return more regions when "querying multiple" that does not really help.. No projection is set in mapfile I've checked the shapefile with shpdump, and it reports the extents as are in the mapfile The shape file queries correctly in Arcview... could use a bit of help here.. regards, nicolas boretos ---------- map extent -5.18189952103 41.3328004925 9.5598004927 51.0886995016 imagecolor 255 255 255 name "france" shapepath "data" size 600 600 status on symbolset "symbols/all.sym" units KILOmeters # 1 scalebar #none scalebar backgroundcolor 25 255 0 color 255 255 255 imagecolor 25 255 255 intervals 4 outlinecolor 0 0 0 size 200 7 status on style 0 transparent TRUE units meters # 1 label #none label backgroundcolor 0 0 0 color 255 255 0 size tiny end end # 2 layer regions layer classitem "COLZA_TN" data "regions" footer "regions_footer.html" group "regions" header "regions_header.html" TOLERANCE 70 TRANSPARENCY 80 labelcache on labelitem "COLZA_TN" name "Regions" postlabelcache true status on type polygon # 1 class regions_1 class backgroundcolor 128 128 128 color 85 34 221 name "regions_1_1" NAME Regions outlinecolor 0 0 0 template "regions_query.html" end #This is where the parametric query works.. end # 3 web france.html web blah... --------------------- From stefan.schwarzer at GRID.UNEP.CH Tue Jul 12 02:39:36 2005 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Tue, 12 Jul 2005 11:39:36 +0200 Subject: Splitting/tiling a raster Message-ID: Hi, this subject is really not new. But I haven't found any real how-to for the whole story. Perhaps somebody could clarify the steps needed. when starting with an image of some larger size and when ending with a tiled raster. Cause I guess that' what has to be done. - At least I have now one single big raster. As far as I understood I need to split the big image into smaller ones. But how? - And then I can use gdaltindex to build the shapefile to define the tiles. Right? Thanks for clarification. From BEN at SYNCERA-ITSOLUTIONS.NL Tue Jul 12 02:47:52 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Tue, 12 Jul 2005 11:47:52 +0200 Subject: Splitting/tiling a raster Message-ID: Hi Stefan, since gdal_translate has the option to select a subwindow (srcwin) from your sourcefile, you can use it to split your raster file into subimages. http://www.gdal.org/gdal_utilities.html#gdal_translate After that, you do use gdaltindex to create a tileindex. That part is described in the raster howto: http://mapserver.gis.umn.edu/doc44/raster-howto.html Btw, what is the exact reason you want to split up your raster? Performance? Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Stefan Schwarzer 07/12/05 11:39am >>> Hi, this subject is really not new. But I haven't found any real how-to for the whole story. Perhaps somebody could clarify the steps needed. when starting with an image of some larger size and when ending with a tiled raster. Cause I guess that' what has to be done. - At least I have now one single big raster. As far as I understood I need to split the big image into smaller ones. But how? - And then I can use gdaltindex to build the shapefile to define the tiles. Right? Thanks for clarification. From stefan.schwarzer at GRID.UNEP.CH Tue Jul 12 02:55:23 2005 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Tue, 12 Jul 2005 11:55:23 +0200 Subject: Splitting/tiling a raster In-Reply-To: Message-ID: Thanks Bart for the quick response, aehh, yes, performance. But perhaps there is no need to split it up? Is it that what you mean? Gush, somehow I don't really get it how this tiling works, stupid me.... Stef > Hi Stefan, > > since gdal_translate has the option to select a subwindow (srcwin) > from your sourcefile, you can use it to split your raster file into > subimages. > > http://www.gdal.org/gdal_utilities.html#gdal_translate > > After that, you do use gdaltindex to create a tileindex. That part > is described in the raster howto: > > http://mapserver.gis.umn.edu/doc44/raster-howto.html > > Btw, what is the exact reason you want to split up your raster? > Performance? > > Best regards, > Bart > > Bart van den Eijnden > Syncera IT Solutions > Postbus 270 > 2600 AG DELFT > > tel.nr.: 015-7512436 > email: BEN at Syncera-ITSolutions.nl > > >>>> Stefan Schwarzer 07/12/05 >>>> 11:39am >>> >>>> > Hi, > > this subject is really not new. But I haven't found any real how-to > for the whole story. Perhaps somebody could clarify the steps needed. > when starting with an image of some larger size and when ending with > a tiled raster. Cause I guess that' what has to be done. > - At least I have now one single big raster. As far as I understood I > need to split the big image into smaller ones. But how? > - And then I can use gdaltindex to build the shapefile to define the > tiles. Right? > > Thanks for clarification. > From BEN at SYNCERA-ITSOLUTIONS.NL Tue Jul 12 02:58:39 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Tue, 12 Jul 2005 11:58:39 +0200 Subject: Splitting/tiling a raster Message-ID: Which format is your raster currently in? If it is performance, building overviews could also help for certain situations. At which scales do you display your raster? Also at full extent? Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Stefan Schwarzer 07/12/05 11:55am >>> Thanks Bart for the quick response, aehh, yes, performance. But perhaps there is no need to split it up? Is it that what you mean? Gush, somehow I don't really get it how this tiling works, stupid me.... Stef > Hi Stefan, > > since gdal_translate has the option to select a subwindow (srcwin) > from your sourcefile, you can use it to split your raster file into > subimages. > > http://www.gdal.org/gdal_utilities.html#gdal_translate > > After that, you do use gdaltindex to create a tileindex. That part > is described in the raster howto: > > http://mapserver.gis.umn.edu/doc44/raster-howto.html > > Btw, what is the exact reason you want to split up your raster? > Performance? > > Best regards, > Bart > > Bart van den Eijnden > Syncera IT Solutions > Postbus 270 > 2600 AG DELFT > > tel.nr.: 015-7512436 > email: BEN at Syncera-ITSolutions.nl > > >>>> Stefan Schwarzer 07/12/05 >>>> 11:39am >>> >>>> > Hi, > > this subject is really not new. But I haven't found any real how-to > for the whole story. Perhaps somebody could clarify the steps needed. > when starting with an image of some larger size and when ending with > a tiled raster. Cause I guess that' what has to be done. > - At least I have now one single big raster. As far as I understood I > need to split the big image into smaller ones. But how? > - And then I can use gdaltindex to build the shapefile to define the > tiles. Right? > > Thanks for clarification. > From stefan.schwarzer at GRID.UNEP.CH Tue Jul 12 03:02:50 2005 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Tue, 12 Jul 2005 12:02:50 +0200 Subject: Splitting/tiling a raster In-Reply-To: Message-ID: > Which format is your raster currently in? TIF or JPEG > > If it is performance, building overviews could also help for > certain situations. So, how can I build overviews then? > > At which scales do you display your raster? Also at full extent? From full extent (at the beginning - a couple of hundreds km wide) to then, when zooming, a couple of km wide. > > Best regards, > Bart > > Bart van den Eijnden > Syncera IT Solutions > Postbus 270 > 2600 AG DELFT > > tel.nr.: 015-7512436 > email: BEN at Syncera-ITSolutions.nl > > >>>> Stefan Schwarzer 07/12/05 >>>> 11:55am >>> >>>> > Thanks Bart for the quick response, > > aehh, yes, performance. But perhaps there is no need to split it up? > Is it that what you mean? Gush, somehow I don't really get it how > this tiling works, stupid me.... > > Stef > > > >> Hi Stefan, >> >> since gdal_translate has the option to select a subwindow (srcwin) >> from your sourcefile, you can use it to split your raster file into >> subimages. >> >> http://www.gdal.org/gdal_utilities.html#gdal_translate >> >> After that, you do use gdaltindex to create a tileindex. That part >> is described in the raster howto: >> >> http://mapserver.gis.umn.edu/doc44/raster-howto.html >> >> Btw, what is the exact reason you want to split up your raster? >> Performance? >> >> Best regards, >> Bart >> >> Bart van den Eijnden >> Syncera IT Solutions >> Postbus 270 >> 2600 AG DELFT >> >> tel.nr.: 015-7512436 >> email: BEN at Syncera-ITSolutions.nl >> >> >> >>>>> Stefan Schwarzer 07/12/05 >>>>> 11:39am >>> >>>>> >>>>> >> Hi, >> >> this subject is really not new. But I haven't found any real how-to >> for the whole story. Perhaps somebody could clarify the steps needed. >> when starting with an image of some larger size and when ending with >> a tiled raster. Cause I guess that' what has to be done. >> - At least I have now one single big raster. As far as I understood I >> need to split the big image into smaller ones. But how? >> - And then I can use gdaltindex to build the shapefile to define the >> tiles. Right? >> >> Thanks for clarification. >> >> > > From BEN at SYNCERA-ITSOLUTIONS.NL Tue Jul 12 03:04:44 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Tue, 12 Jul 2005 12:04:44 +0200 Subject: Splitting/tiling a raster Message-ID: You can build overviews with gdaladdo: http://www.gdal.org/gdal_utilities.html#gdaladdo Eg: gdaladdo -r average abc.tif 2 4 8 16 Try that first I would say. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Stefan Schwarzer 07/12/05 12:02pm >>> > Which format is your raster currently in? TIF or JPEG > > If it is performance, building overviews could also help for > certain situations. So, how can I build overviews then? > > At which scales do you display your raster? Also at full extent? From full extent (at the beginning - a couple of hundreds km wide) to then, when zooming, a couple of km wide. > > Best regards, > Bart > > Bart van den Eijnden > Syncera IT Solutions > Postbus 270 > 2600 AG DELFT > > tel.nr.: 015-7512436 > email: BEN at Syncera-ITSolutions.nl > > >>>> Stefan Schwarzer 07/12/05 >>>> 11:55am >>> >>>> > Thanks Bart for the quick response, > > aehh, yes, performance. But perhaps there is no need to split it up? > Is it that what you mean? Gush, somehow I don't really get it how > this tiling works, stupid me.... > > Stef > > > >> Hi Stefan, >> >> since gdal_translate has the option to select a subwindow (srcwin) >> from your sourcefile, you can use it to split your raster file into >> subimages. >> >> http://www.gdal.org/gdal_utilities.html#gdal_translate >> >> After that, you do use gdaltindex to create a tileindex. That part >> is described in the raster howto: >> >> http://mapserver.gis.umn.edu/doc44/raster-howto.html >> >> Btw, what is the exact reason you want to split up your raster? >> Performance? >> >> Best regards, >> Bart >> >> Bart van den Eijnden >> Syncera IT Solutions >> Postbus 270 >> 2600 AG DELFT >> >> tel.nr.: 015-7512436 >> email: BEN at Syncera-ITSolutions.nl >> >> >> >>>>> Stefan Schwarzer 07/12/05 >>>>> 11:39am >>> >>>>> >>>>> >> Hi, >> >> this subject is really not new. But I haven't found any real how-to >> for the whole story. Perhaps somebody could clarify the steps needed. >> when starting with an image of some larger size and when ending with >> a tiled raster. Cause I guess that' what has to be done. >> - At least I have now one single big raster. As far as I understood I >> need to split the big image into smaller ones. But how? >> - And then I can use gdaltindex to build the shapefile to define the >> tiles. Right? >> >> Thanks for clarification. >> >> > > From arno.roeder at FH-WEIHENSTEPHAN.DE Tue Jul 12 03:24:38 2005 From: arno.roeder at FH-WEIHENSTEPHAN.DE (Arno roeder) Date: Tue, 12 Jul 2005 12:24:38 +0200 Subject: MIT OrthoServer vs. UMN Mapserver In-Reply-To: <4BF377919225F449BB097CB76FFE9BC818874E@ptolemy.topozone.com> Message-ID: Our current Mapserver application http://maps.la.fh-weihenstephan.de:8080/habitalp/overview.html runs for 11 protected areas in the alps. The HABITALP-project aims for mapping of habitats based on aerial photographies. One task is the presentation of the landuse cover and the orthophotos with the Mapserver. Therefore I degraded the original orthophotos with a ground resolution of 0,2m to 1m for the max. scale of 1:2.500. Totally that would mean about 30 GB of imagery. Furthermore, I made some tiles with smaller resolution for smaller scales. In the mapfile I put the different resolutions to layers (eg ortho1, ortho2, ortho3) of one group (eg ortho). Would a OrthoServer significant faster? Arno Ed McNierney schrieb: > Arno - > > One rarely looks at "huge amounts" of raster data. Most users look at a > SMALL amount of data drawn from a larger dataset. We've been serving > well over 20 terabytes of imagery with MapServer for several years now > and have been very happy with the results (you can take a peek at > www.topozone.com) > > If you can give us as much detail as possible about your application, > we'll try to give you more specific advice! > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > Phone: +1 (978) 251-4242 > Fax: +1 (978) 251-1396 > ed at topozone.com > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Arno roeder > Sent: Monday, July 11, 2005 8:34 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] MIT OrthoServer vs. UMN Mapserver > > Hey list, > > does anybody know the performance difference between MIT OrthoServer > http://tull.mit.edu/orthoserver/ and UMN Mapserver in the visualisation > of raster data (huge amounts!)? > > Arno > From artur.skalski at ACXIOM.COM Tue Jul 12 03:40:12 2005 From: artur.skalski at ACXIOM.COM (Artur Skalski) Date: Tue, 12 Jul 2005 05:40:12 -0500 Subject: Query by more than one point Message-ID: Helo Everyone! I'm using mapserver 4.4 with php/mapscript, and my question is: Can I query a layer by more than one point. I want to draw on a map some points dynamicaly which is simple, than I pass those points (x, y) to an array, and than i want to do the qery like: "for each point in an array queryby - that point", and than after the query is done for all points in an array list the results, will it work? Has any one got some expiriences with doing this and could give some tips? Many thanks for any tip regards Artur From flavio at TYDAC.CH Tue Jul 12 03:47:15 2005 From: flavio at TYDAC.CH (Flavio Hendry) Date: Tue, 12 Jul 2005 12:47:15 +0200 Subject: Mapfile TOLERANCE/ Mouse-click accuracy? In-Reply-To: <42D38DD5.90903@maich.gr> Message-ID: salut you should use any tolerance at all ... Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ ? ? ?Mit freundlichen Gruessen / Kind Regards ############? ? ? ? ? ? ?mailto:flavio at tydac.ch ############ ? ? ? ? TYDAC AG - http://www.tydac.ch #### ? ?#### ? ? ? ?Geographic Information Solutions #### ? ?#### ? ? ? ? Luternauweg 12 -- CH-3006 Bern ############ ? Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- -----Original Message----- From: Nikos To: MAPSERVER-USERS at LISTS.UMN.EDU Date: Tue, 12 Jul 2005 12:31:01 +0300 Subject: [UMN_MAPSERVER-USERS] Mapfile TOLERANCE/ Mouse-click accuracy? > Hello, > > I could use a bit of help here. > Using a simple shapefile of France, about 20 regions, under windows, > ms3.6 cgi, and standard html interface... > > My problem is accuarcy when querying a polygon, e.g when I click on > what > should be Corsica, I get the alps.. > > I've cranked up the TOLERANCE in my layer definition.. but all that > does > is return more regions when "querying multiple" that does not really > help.. > No projection is set in mapfile > I've checked the shapefile with shpdump, and it reports the extents > as > are in the mapfile > The shape file queries correctly in Arcview... > > could use a bit of help here.. > > regards, > > nicolas boretos > > ---------- > map > extent -5.18189952103 41.3328004925 9.5598004927 51.0886995016 > imagecolor 255 255 255 > name "france" > shapepath "data" > size 600 600 > status on > symbolset "symbols/all.sym" > units KILOmeters > # 1 scalebar #none > scalebar > backgroundcolor 25 255 0 > color 255 255 255 > imagecolor 25 255 255 > intervals 4 > outlinecolor 0 0 0 > size 200 7 > status on > style 0 > transparent TRUE > units meters > # 1 label #none > label > backgroundcolor 0 0 0 > color 255 255 0 > size tiny > end > end > # 2 layer regions > layer > classitem "COLZA_TN" > data "regions" > footer "regions_footer.html" > group "regions" > header "regions_header.html" > TOLERANCE 70 > TRANSPARENCY 80 > labelcache on > labelitem "COLZA_TN" > name "Regions" > postlabelcache true > status on > type polygon > # 1 class regions_1 > class > backgroundcolor 128 128 128 > color 85 34 221 > name "regions_1_1" > NAME Regions > outlinecolor 0 0 0 > template "regions_query.html" > end > #This is where the parametric query works.. > end > # 3 web france.html > web > blah... > > --------------------- From mapserver at HOTMAIL.COM Tue Jul 12 04:12:40 2005 From: mapserver at HOTMAIL.COM (N M) Date: Tue, 12 Jul 2005 11:12:40 +0000 Subject: place a point in the map In-Reply-To: Message-ID: Hi David, I follow all steps in the information on the URL you send me, I think that DSN runs perfectly, I created the TXT database, the OVF file and I modifed my .map file with the parameters of the example. My question now is, how can I calculate the EXTENT coordinates. When I had a shapefile I used it to do it. Which could be my .map file so I could display it? Have I to change anything in my .map file so it runs? My EXTEND is the one of my old shapefile. Thank you MAP IMAGETYPE PNG EXTENT 0.000000 -205.000000 300.000000 0.000000 SIZE 585 400 SHAPEPATH "data" IMAGECOLOR 255 180 0 #PROJECTION # "proj=laea" # "ellps=clrk66" # "lat_0=45" # "lon_0=-100" # # Alternatively, you can specify an EPSG code. # "init=epsg:2163" # #END # Start of LAYER DEFINITIONS --------------------------------------------- LAYER # Capa de raster NAME mapafig DATA "raster/figueres.tif" STATUS DEFAULT TYPE RASTER PROCESSING "BANDS=1" #OFFSITE 71 74 65 #Color que ha de ser transparent #PROJECTION # "init=epsg:4326" #END END # Fi capa de raster LAYER CONNECTION "mapa21.ovf" CONNECTIONTYPE OGR DATA "prova" METADATA "wms_srs" "4326" "wms_title" "prova" END NAME "prova" SIZEUNITS PIXELS STATUS ON TOLERANCE 0 TOLERANCEUNITS PIXELS TYPE POINT UNITS METERS CLASS STYLE COLOR 0 0 0 MAXSIZE 100 MINSIZE 1 SIZE 6 SYMBOL "symbols/prova.gif" END END END # End of LAYER DEFINITIONS ------------------------------- END # end of map file >If you don't want to place your data in ESRI shapefiles or a database, you >can use a simple text file as the data source for a layer. > >If your Mapserver binary has been compiled with OGR support (quite likely), >you can use a virtual data source. Take a look at the Vector Data Access >Reference >http://ms.gis.umn.edu:8081/ms_plone/docs/reference/vector_data/VirtualSpatialData > >If you search the list archives for OGR and VRT, you will most likely find >some example map file layers. > >David. > >David Fawcett >Minnesota Office of Environmental Assistance >david.fawcett at moea.state.mn.us >651.215.0200 > > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On >Behalf Of SUBSCRIBE MAPSERVER-USERS Nuri >Sent: Monday, July 11, 2005 4:52 AM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] place a point in the map > > >Recently I managed to create my own map and placed a symbol in it from a >database. > >Now I need to place several points in the map. My database contains gps >coordinates like this: > >4216 9669 259 > >Latitude: 42? 16'N >Longitude: 258?E > >I translated this gps coordinates to UTM coordinates to obtain: > >Zone: 14 >Easting: 252608 >Norting: 4683531 > >I need to show this point in the map. > >Someone could explain my how to do it? Thank you. > >My present .map file is: > >MAP > IMAGETYPE PNG > EXTENT 0.000000 -205.000000 300.000000 0.000000 > SIZE 600 410 > SHAPEPATH "data" > IMAGECOLOR 255 180 0 > FONTSET "fonts/fonts.list" > > #PROJECTION > # "proj=laea" > # "ellps=clrk66" > # "lat_0=45" > # "lon_0=-100" > # > # Alternatively, you can specify an EPSG code. > # "init=epsg:2163" > # > #END > > # Start of LAYER DEFINITIONS >-------------------------------------------- >- > > LAYER # Capa de raster > NAME mapafig > DATA "raster/figueres.tif" > STATUS DEFAULT > TYPE RASTER > PROCESSING "BANDS=1" > #OFFSITE 71 74 65 #Color que ha de ser transparent > > #PROJECTION > # "init=epsg:4326" > #END > END # Fi capa de raster > > > > LAYER > NAME simbols > GROUP grup > STATUS DEFAULT > DATA mapa > TYPE ANNOTATION > LABELITEM "SIMB" > CLASSITEM "C" > CLASS > EXPRESSION "2" > STYLE > COLOR 0 0 0 # dummy color > SYMBOL 'symbols/prova.gif' > END > LABEL > MINFEATURESIZE 20 > MINDISTANCE 50 > POSITION CC > SIZE TINY > COLOR 255 255 255 > END > END > > PROJECTION > "init=epsg:4326" > END > END > > > > # End of LAYER DEFINITIONS ------------------------------- >END # end of map file _________________________________________________________________ Descarga gratis la Barra de Herramientas de MSN http://www.msn.es/usuario/busqueda/barra?XAPID=2031&DI=1055&SU=http%3A//www.hotmail.com&HL=LINKTAG1OPENINGTEXT_MSNBH From rtaylor at COVE.COM Tue Jul 12 04:26:31 2005 From: rtaylor at COVE.COM (Richard Taylor) Date: Tue, 12 Jul 2005 07:26:31 -0400 Subject: GetCapabilites Request Message-ID: leaving for work here but a quick scan reveals that (besides the error messages(one of the messages refers to 'spaces' so you might connect strings with an underscore) that you have mixed forward and backwards slashes in the base URL to get to your maplab app engine. ----- Original Message ----- From: "Leopold Schefcik (MULTIMEDIAPLAN.AT)" To: "Richard Taylor" Sent: Tuesday, July 12, 2005 3:00 AM Subject: {SPAM?} AW: [UMN_MAPSERVER-USERS] GetCapabilites Request > > hi RT, > > the file looks like this: > > > > "http://schemas.opengeospatial.net/wms/1.1.1/capabilities_1_1_1.dtd" > [ > > ]> > > > > > > > OGC:WMS > > Centrope Staaten > xlink:href="http://localhost:80/cgi-bin/mapserv.exe?map=/ms4w/apps\maplab-2. > 2\tutorial/centrope2.map&"/> > > > > > > application/vnd.ogc.wms_xml > > > xlink:href="http://localhost:80/cgi-bin/mapserv.exe?map=/ms4w/apps\maplab-2. > 2\tutorial/centrope2.map&"/> > xlink:href="http://localhost:80/cgi-bin/mapserv.exe?map=/ms4w/apps\maplab-2. > 2\tutorial/centrope2.map&"/> > > > > > image/png > image/gif > image/jpeg > image/wbmp > image/tiff > > > xlink:href="http://localhost:80/cgi-bin/mapserv.exe?map=/ms4w/apps\maplab-2. > 2\tutorial/centrope2.map&"/> > xlink:href="http://localhost:80/cgi-bin/mapserv.exe?map=/ms4w/apps\maplab-2. > 2\tutorial/centrope2.map&"/> > > > > > text/plain > application/vnd.ogc.gml > > > xlink:href="http://localhost:80/cgi-bin/mapserv.exe?map=/ms4w/apps\maplab-2. > 2\tutorial/centrope2.map&"/> > xlink:href="http://localhost:80/cgi-bin/mapserv.exe?map=/ms4w/apps\maplab-2. > 2\tutorial/centrope2.map&"/> > > > > > text/xml > > > xlink:href="http://localhost:80/cgi-bin/mapserv.exe?map=/ms4w/apps\maplab-2. > 2\tutorial/centrope2.map&"/> > xlink:href="http://localhost:80/cgi-bin/mapserv.exe?map=/ms4w/apps\maplab-2. > 2\tutorial/centrope2.map&"/> > > > > > image/png > image/gif > image/jpeg > image/wbmp > > > xlink:href="http://localhost:80/cgi-bin/mapserv.exe?map=/ms4w/apps\maplab-2. > 2\tutorial/centrope2.map&"/> > xlink:href="http://localhost:80/cgi-bin/mapserv.exe?map=/ms4w/apps\maplab-2. > 2\tutorial/centrope2.map&"/> > > > > > > application/vnd.ogc.se_xml > application/vnd.ogc.se_inimage > application/vnd.ogc.se_blank > > > RemoteWFS="0"/> > > > Centrope Staaten > > Centrope Staaten > EPSG:42304 > maxy="58.5654" /> > minx="-267604" miny="-65435.9" maxx="1.2204e+006" > maxy="1.0488e+006" /> > > > bathymetry > > bathymetry > > > land_fn > > land_fn > maxy="55.7146" /> > minx="112176" miny="161643" maxx="1.11316e+006" > maxy="740392" /> > > > > drain_fn > > drain_fn > maxy="88.06" /> > minx="-2.75056e+006" miny="-936639" maxx="2.75882e+006" > maxy="4.36727e+006" /> > > > > drainage > > drainage > maxy="83.0129" /> > minx="-2.1694e+006" miny="-386968" maxx="2.79747e+006" > maxy="3.74336e+006" /> > > > > prov_bound > > prov_bound > maxy="83.8009" /> > minx="-2.3406e+006" miny="-719746" maxx="3.00943e+006" > maxy="3.83661e+006" /> > > > > fedlimit > > fedlimit > maxy="89.9051" /> > minx="-2.69358e+006" miny="-724162" maxx="3.38519e+006" > maxy="4.6545e+006" /> > > > > rail > > rail > maxy="66.7201" /> > minx="-2.14572e+006" miny="-680853" maxx="2.61606e+006" > maxy="1.93097e+006" /> > > > > road > > road > maxy="72.5503" /> > minx="-2.30369e+006" miny="-724118" maxx="3.00053e+006" > maxy="2.56497e+006" /> > > > > popplace > > popplace > maxy="83.4832" /> > minx="-2.30386e+006" miny="-681503" maxx="2.96177e+006" > maxy="3.79886e+006" /> > > > > grid > > grid > maxy="89.8254" /> > minx="-2.75056e+006" miny="-936639" maxx="3.58387e+006" > maxy="4.67313e+006" /> > > > > > > > -----Urspr?ngliche Nachricht----- > Von: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Im > Auftrag von Richard Taylor > Gesendet: Montag, 11. Juli 2005 15:41 > An: MAPSERVER-USERS at LISTS.UMN.EDU > Betreff: Re: [UMN_MAPSERVER-USERS] GetCapabilites Request > > > am new also, but when i get that happening to me, > it usually means i have not formatted some part of the > request string or mapfile correctly. > > what does the xml file say when you open > it in Explorer or other browser? > rt > > ----- Original Message ----- > From: "Leopold Schefcik (MULTIMEDIAPLAN.AT)" > > To: > Sent: Monday, July 11, 2005 6:21 AM > Subject: [UMN_MAPSERVER-USERS] GetCapabilites Request > > > > > > > > hi list, > > I?ve installed a ms4w (incl. umn server and Maplab) > > > > The GetMap Request works fine: > > > http://localhost/cgi-bin/mapserv.exe?MAP=/ms4w/apps\maplab-2.2\tutorial/cent > > > rope2.map&SERVICE=wms&VERSION=1.1.1&LAYERS=bathymetry,land_fn&REQUEST=GetMap > > > > At the GetCapabilities Request I get a file (I think xml) as attachement. > > (see attachement) > > > http://localhost/cgi-bin/mapserv.exe?MAP=/ms4w/apps/gmap/htdocs/gmap75_wms.m > > ap&SERVICE=wms&VERSION=1.1.1&REQUEST=GetCapabilities > > > > but in viewers (e.g. http://www.wmsviewer.com it won?t work. > > > > Maby someone has an idea what?s wrong!? > > Leopold > > > > From leopold.schefcik at MULTIMEDIAPLAN.AT Tue Jul 12 04:34:06 2005 From: leopold.schefcik at MULTIMEDIAPLAN.AT (Leopold Schefcik (MULTIMEDIAPLAN.AT)) Date: Tue, 12 Jul 2005 13:34:06 +0200 Subject: from Lambert to EPSG In-Reply-To: Message-ID: hi list, I have data in this projection: Projection Lambert Conformal Conic units meters parameters 46 00 00 /* 1st standard parallel 49 00 00 /* 2nd standard parallel 13 20 00 /* central meridian 47 30 00 /* latitude of projection (NEU) 48 00 00 /* latitude of projection (ALT) 400000 /* false easting (meters) 400000 /* false northing (meters) Question 1: Does anybody know what EPSG this is? Question 2: How can I get the right EPSG? From nhv at CAPE.COM Tue Jul 12 04:48:56 2005 From: nhv at CAPE.COM (Norman Vine) Date: Tue, 12 Jul 2005 07:48:56 -0400 Subject: from Lambert to EPSG In-Reply-To: Message-ID: Leopold Schefcik writes: > > I have data in this projection: > > Projection Lambert Conformal Conic > units meters > parameters > 46 00 00 /* 1st standard parallel > 49 00 00 /* 2nd standard parallel > 13 20 00 /* central meridian > 47 30 00 /* latitude of projection (NEU) > 48 00 00 /* latitude of projection (ALT) > 400000 /* false easting (meters) > 400000 /* false northing (meters) > > Question 1: Does anybody know what EPSG this is? > Question 2: How can I get the right EPSG? > Looking at the Proj4 EPSG file my guess is this is # MGI / Austria Lambert <31297> +proj=lcc +lat_1=49 +lat_2=46 +lat_0=47.5 +lon_0=13.33333333333333 +x_0=400000 +y_0=400000 +ellps=bessel +units=m +no_defs <> EPSG:31297 HTH Norman From raj_ganesh_sweet at SIFY.COM Tue Jul 12 04:25:04 2005 From: raj_ganesh_sweet at SIFY.COM (raj ganesh) Date: Tue, 12 Jul 2005 17:25:04 +0600 Subject: example using python mapscript Message-ID: hi guys!! i am looking for an example that uses python mapscript.i would also like to know how it works in integration with mapfile and cgi file(if used) do let me know. cheers raj -------------- next part -------------- An HTML attachment was scrubbed... URL: From wbronsema at DMSOLUTIONS.CA Tue Jul 12 05:13:34 2005 From: wbronsema at DMSOLUTIONS.CA (William Bronsema) Date: Tue, 12 Jul 2005 08:13:34 -0400 Subject: changing the color of object - rephrased In-Reply-To: Message-ID: Hi Matthew, I notice you are doing a drawQuery instead of a drawMap. Does the map's query object color happen to be yellow? By that I mean, could it be that the query is coloring the polygons instead of the normal style coloring? Just a thought. Regards, Bill William A. Bronsema, C.E.T. Software & Applications Development, DM Solutions Group Inc. ________________________________________________ > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Matthew Roberson > Sent: Friday, July 08, 2005 4:31 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] changing the color of object - rephrased > > Hi, > > I am having a problem getting a PHP/Mapscript to work and I hope that > somebody can offer some help. I posted this earlier today, however I > omitted a few details I thought might be pertinent. > > Here is what I am trying to do. > > I have a shp file(zt48_d00.shp) from the US Census Bureau that > contains 5-digit zip code boundaries for a particular state(Texas in > this case). I do a query to find the zip codes I'm interested in. I > want some of the zip-code boundaries to be filled in red(or whatever > color) and some to be filled in blue (or whatever color). I have > written the PHP/Mapscript that I think will produce the results I > want, however what I get is all yellow zip codes(see the link below). > > The portion of the code that is supposed to handle the color is: > > if($i <= $percent_num) > { > . > . > . > $oZipClassRed = ms_newClassObj($oZipLayer); > $oZipStyleRed = ms_newStyleObj($oZipClassRed); > $oZipStyleRed->color->setRG > . > . > . > } > else > { > . > . > . > $oZipClassBlue = ms_newClassObj($oZipLayer); > $oZipStyleBlue = ms_newStyleObj($oZipClassBlue); > $oZipStyleBlue->color->setRGB(0,0,255); > . > . > . > } > > I am running MapServer 4.4.1 on OS X 10.4. > > I have included the php and .map file that generates this map. I > would really appreciate any suggestions. I really need help! > > Thanks, > > Matt > > http://machine.msileads.com/TXZips.html > > ------------------------------------------------- php file > --------------------------------------------- > > > > 2080 Machine > > > > > > > > > >
width="120" height="112">
> //require('/Library/WebServer/Documents/fpdf.php'); > //require('/Library/WebServer/Documents/create8020PDF.php'); > ini_set("display_errors","1"); > //$username = "sa"; > $username = "admin"; > //$password = "s1q2l3S1"; > $password = "w3xp2BA5"; > $hostName = "localhost"; > $databaseName = "8020Machine"; > $sQVal = ""; > > $jID8020 = 3; > > function get8020CountPercent($val, > $iTotalVal) > { > if($iTotalVal>0) > { > $dPercent=($val/$iTotalVal)*100; > $dPercent = number_format($dPercent, 2, '.', ''); > }// ($iTotalVal>0) > else > { > $dPercent = 0.0; > //print "{$iTotalVal} is iTotalVal
"; > }// end if ($iTotalVal>0) > > return $dPercent; > } > > function create8020OutputRecord($query, > $zip_array, > $adPercents) > { > > // Run the query on the server > if (!($result = @ mysql_query ($query))) > > if ($result) > { > $jobID = mysql_insert_id(); > } > > //return $jobID; > > } // end of function > > mysql_connect ($hostName,$username,$password); > mysql_select_db($databaseName); > > > $address_query = mysql_query("select distinct ZipCode from > eightytwentyinput where ZipCode <> '' and ZipCode is not NULL"); > $address_rows = mysql_num_rows($address_query); > > for($i=0; $i<$address_rows; $i++) > { > $address_array = mysql_fetch_array($address_query); > $temp_zip = $address_array['ZipCode']; > $zip_array[$temp_zip] =0; > $adPercents[$temp_zip]=0; > $data[$i][0]=0; > $data[$i][1]=0; > $data[$i][2]=0; > } > > $address_query2 = mysql_query("select ZipCode from eightytwentyinput > where ZipCode <> '' and ZipCode is not NULL"); > $address_rows2 = mysql_num_rows($address_query2); > > > for($i=0;$i<$address_rows2;$i++) > { > $address_array2 = mysql_fetch_array($address_query2); > $temp_zip2 = $address_array2['ZipCode']; > $zip_array[$temp_zip2] += 1; > > > } > > arsort($zip_array); > arsort($adPercents); > > //mapserver stuff > dl("php_mapscript.so"); > > $map_file="/Library/WebServer/Documents/test/TX1.map"; > $map = ms_newMapObj($map_file); > > $oZipLayer = $map->getLayerByName("TX zip code boundaries"); > > $sAttrName = 'ZCTA'; > > //print_r($zip_array); > print("There are $address_rows total unique zip > codes
"); > > $iTotalVal = array_sum($zip_array); > $percent_num = $address_rows*.20; > $i=0; > print(""); > > while (list($key, $val) = each($zip_array)) > { > > $i++; > > if($i <= $percent_num) > { > $dPercent = get8020CountPercent($val,$iTotalVal); > $qry8020Output = mysql_query("INSERT INTO EightyTwentyOutput > VALUES (NULL,'{$jID8020}','{$key}','{$val}','{$dPercent}')"); > create8020OutputRecord($qry8020Output, $zip_array, $adPercents); > echo ""; > //pdf stuff > $data[$i][0]=$key; > $data[$i][1]=$val; > $data[$i][2]=$dPercent; > //mapserver stuff > if(strlen($key)<=5) > { > if(strncmp($key, "77", 2)== 0) > { > $oZipLayer->set("labelitem", 'ZCTA'); > $sQVal=$sQVal.$key."|"; > $oZipClassRed = ms_newClassObj($oZipLayer); > $oZipClassRed->setexpression($key); > $oZipStyleRed = ms_newStyleObj($oZipClassRed); > $oZipStyleRed->color->setRGB(250,0,0); > > } > } > } // ($i <= $percent_num) > else > { > $dPercent = get8020CountPercent($val,$iTotalVal); > $qry8020Output = mysql_query("INSERT INTO EightyTwentyOutput > VALUES (NULL,'{$jID8020}','{$key}','{$val}','{$dPercent}')"); > create8020OutputRecord($qry8020Output, $zip_array, $adPercents); > echo ""; > //pdf stuff > $data[$i][0]=$key; > $data[$i][1]=$val; > $data[$i][2]=$dPercent; > //mapserver stuff > if(strlen($key)==5) > { > if(strncmp($key, "77", 2)== 0) > { > $oZipLayer->set("labelitem", 'ZCTA'); > $sQVal=$sQVal.$key."|"; > $oZipClassBlue = ms_newClassObj($oZipLayer); > $oZipClassBlue->setexpression($key); > $oZipStyleBlue = ms_newStyleObj($oZipClassBlue); > $oZipStyleBlue->color->setRGB(0,0,255); > } > } > }// end if ($i <= $percent_num) > $adPercents[$key] = $dPercent; > }// end while > > print("
Zip Code class=\"bold\">CountPercent
$key$val td>$dPercent
$key > $val$dPercent
"); > > > > //more mapserver stuff > $sQVal = substr($sQVal, 0, strlen($sQVal)-1); > > //Do query > $qresult = @$oZipLayer->queryByAttributes($sAttrName,"/". > $sQVal."/",MS_MULTIPLE); > > > $image = $map->drawQuery(); > $image_url = $image->saveWebImage(); > $error = ms_GetErrorObj(); > while($error && $error->code != MS_NOERR) > { > printf("Error in %s: %s \n", $error->routine, $error->messaage); > $error = $error->next(); > } > ?> > > >

This is an unprojected map of the 5 digit zip code boundries for > the state of Texas, > from the US > Census Bureau.

>

To find the categories for the legend, I used the ogrinfo code> utility twice. > ogrinfo -a -summary zt48_d00.shp let me see what fields > were available, and > ogrinfo -a zt48_d00.shp|grep SYMBOL|sort -u told me what > all of the unique values were so that > I could build my CLASS definitions in TX1.map. >

> > //print_r($oZipLayer); > print_r($qresult); > if ($oZipLayer->getNumResults() > 0) > echo $oZipLayer->getNumResults()." zips found."; > else > echo "No zips found." > > ?> > > > > ------------------------------------------------- map file > --------------------------------------------- > MAP > NAME TX > IMAGETYPE PNG > SIZE 600 600 > IMAGECOLOR 255 255 255 > SHAPEPATH "/Library/WebServer/Documents/data" > FONTSET "/Library/fonts/fonts.list" > EXTENT -106.645646 25.837377 -93.516407 36.500704 > UNITS METERS > WEB > IMAGEPATH "/Library/WebServer/Documents/test/" > IMAGEURL "/test/" > END > > LEGEND > STATUS EMBED > POSITION UR > END > > SCALEBAR > TRANSPARENT ON > BACKGROUNDCOLOR 0 0 0 > STATUS EMBED > POSITION LR > STYLE 1 > END > LAYER > NAME "TX zip code boundaries" > TYPE POLYGON > STATUS DEFAULT > DATA "zt48_d00" > CLASS > COLOR 255 255 255 > OUTLINECOLOR 0 0 0 > END > TEMPLATE "x" > END > > LAYER > NAME "credits" > STATUS DEFAULT > TRANSFORM FALSE > TYPE ANNOTATION > FEATURE > POINTS > 10 480 > END > TEXT 'Made with Mapserver.' > END > > CLASS > LABEL > TYPE BITMAP > POSITION CR > COLOR 0 0 0 > END > END > END > END From pspencer at DMSOLUTIONS.CA Tue Jul 12 05:14:30 2005 From: pspencer at DMSOLUTIONS.CA (Paul Spencer) Date: Tue, 12 Jul 2005 08:14:30 -0400 Subject: Splitting/tiling a raster In-Reply-To: Message-ID: You can also add internal tiles to a TIFF image and, if you are accessing the TIFF via GDAL, it will use the tiles to optimize access to the raster data without having to split it into multiple files. I believe you do this using gdal_translate with some options like: -co "TILED=YES" You can also fine tune the internal tile size (default is 256x256): -co "BLOCKXSIZE=256" -co "BLOCKYSIZE=256" then run gdaladdo to produce a tiled geotiff file with overviews. Cheers Paul Bart van den Eijnden wrote: > You can build overviews with gdaladdo: > > http://www.gdal.org/gdal_utilities.html#gdaladdo > > Eg: > > gdaladdo -r average abc.tif 2 4 8 16 > > Try that first I would say. > > Best regards, > Bart > > Bart van den Eijnden > Syncera IT Solutions > Postbus 270 > 2600 AG DELFT > > tel.nr.: 015-7512436 > email: BEN at Syncera-ITSolutions.nl > > >>>>Stefan Schwarzer 07/12/05 12:02pm >>> > > >>Which format is your raster currently in? > > > TIF or JPEG > > >>If it is performance, building overviews could also help for >>certain situations. > > > So, how can I build overviews then? > > >>At which scales do you display your raster? Also at full extent? > > > From full extent (at the beginning - a couple of hundreds km wide) > to then, when zooming, a couple of km wide. > > >>Best regards, >>Bart >> >>Bart van den Eijnden >>Syncera IT Solutions >>Postbus 270 >>2600 AG DELFT >> >>tel.nr.: 015-7512436 >>email: BEN at Syncera-ITSolutions.nl >> >> >> >>>>>Stefan Schwarzer 07/12/05 >>>>>11:55am >>> >>>>> >>Thanks Bart for the quick response, >> >>aehh, yes, performance. But perhaps there is no need to split it up? >>Is it that what you mean? Gush, somehow I don't really get it how >>this tiling works, stupid me.... >> >>Stef >> >> >> >> >>>Hi Stefan, >>> >>>since gdal_translate has the option to select a subwindow (srcwin) >>>from your sourcefile, you can use it to split your raster file into >>>subimages. >>> >>>http://www.gdal.org/gdal_utilities.html#gdal_translate >>> >>>After that, you do use gdaltindex to create a tileindex. That part >>>is described in the raster howto: >>> >>>http://mapserver.gis.umn.edu/doc44/raster-howto.html >>> >>>Btw, what is the exact reason you want to split up your raster? >>>Performance? >>> >>>Best regards, >>>Bart >>> >>>Bart van den Eijnden >>>Syncera IT Solutions >>>Postbus 270 >>>2600 AG DELFT >>> >>>tel.nr.: 015-7512436 >>>email: BEN at Syncera-ITSolutions.nl >>> >>> >>> >>> >>>>>>Stefan Schwarzer 07/12/05 >>>>>>11:39am >>> >>>>>> >>>>>> >>>Hi, >>> >>>this subject is really not new. But I haven't found any real how-to >>>for the whole story. Perhaps somebody could clarify the steps needed. >>>when starting with an image of some larger size and when ending with >>>a tiled raster. Cause I guess that' what has to be done. >>>- At least I have now one single big raster. As far as I understood I >>>need to split the big image into smaller ones. But how? >>>- And then I can use gdaltindex to build the shapefile to define the >>>tiles. Right? >>> >>>Thanks for clarification. >>> >>> >> >> > > -- +-----------------------------------------------------------------+ |Paul Spencer pspencer at dmsolutions.ca | +-----------------------------------------------------------------+ |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| +-----------------------------------------------------------------+ From dpinte at ITAE.BE Tue Jul 12 05:27:26 2005 From: dpinte at ITAE.BE (Didrik Pinte) Date: Tue, 12 Jul 2005 14:27:26 +0200 Subject: example using python mapscrip Message-ID: Good link : http://mappinghacks.com/projects/mapscript/02_python-feature-annot.html Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From steve.hall at MERCATORGEOSYSTEMS.CO.UK Tue Jul 12 02:58:36 2005 From: steve.hall at MERCATORGEOSYSTEMS.CO.UK (Steve Hall) Date: Tue, 12 Jul 2005 10:58:36 +0100 Subject: Question re: PostGIS and MapScript getExtent() function Message-ID: Hi All, I'm using MapServer 4.6.0 with Oracle Spatial and PostGIS data sources via PHP/MapScript. Part of my application code looks like this pseudo-code : $map->setLayerFilter("ThematicData", "REQUEST_ID=121"); $map->zoomToLayer("ThematicData"); Here i'm setting a specific FILTER expression for a layer, and then zooming to the extent of the (now filtered) layer. I use the layerObj->getExtent() and then mapObj->setExtent() functions to achieve this behind the scenes. This works great for Oracle, the query is fast and makes for nice, tidy code in my application without the need for Oracle specific SQL statements to derive the new extent. However when I try this on PostGIS I just get a massive (useless) extent returned. Digging into the code I can see that the msPOSTGISLayerGetExtent() function in mappostgis.c is effectively doing nothing although a lot of code is commented out. Working on my local code I have re-enabled this code, fixed the compilation errors and changed it so that when a FILTER is applied to the layer this is used as part of the SQL call to PG. It seems to work great (from PHP/MapScript) and performance is fine and is really useful for me meaning I don't need to calculate the extents for a map myself - MapServer can supply the information in a generic and abstract fashion. Ideally I would like to get this code fed back into MapServer, but of course only if it's acceptable to you all. So, should I instead post this to mapserver-dev or can I pass on the new code to someone from here? There may be good, historical, reasons why this wasn't ever implemented though so please let me know! Many thanks, Steve Hall -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeff2005 at SVS.GSFC.NASA.GOV Tue Jul 12 06:31:43 2005 From: jeff2005 at SVS.GSFC.NASA.GOV (Jeff de La Beaujardiere) Date: Tue, 12 Jul 2005 09:31:43 -0400 Subject: Labeling of multi-polygon(?) states Message-ID: I am using the "statesp020" dataset from USGS National Atlas (http://edcftp.cr.usgs.gov/pub/data/nationalatlas/statesp020.tar.gz). When I ask Mapserver to draw labels, some states have a single label centered in the state (e.g., Alabama), while others have multiple labels around their edges (e.g., Florida). See, for example, http://map05.gsfc.nasa.gov/cgi-bin/modis?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=states20m&STYLES=default&SRS=EPSG:4326&BBOX=-100.075,23.63125,-65.075,36.13125&WIDTH=700&HEIGHT=250&FORMAT=image/png I assume this is because states with complicated boundaries, such as along the coast, are built from several polygons, and each polygon is given a label. I can reduce the number of labels per state by setting MINDISTANCE, but I cannot get the labels of such states placed near the geographic center of the state--the label is always on the boundary (e.g., at the tip of the Florida keys). Is there a way to get better control of the label position, or to rebuild the shapefile in a way that perhaps produces a lower-res border but has better labeling? -Jeff DLB From David.Fawcett at STATE.MN.US Tue Jul 12 06:39:05 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Tue, 12 Jul 2005 08:39:05 -0500 Subject: place a point in the map Message-ID: The EXTENT line in the MAP object sets the initial extent of your map when you start your application. How do you want your map to look when you start up? Do you want it to show the full extent of your background raster? If so, use that extent. Just make sure that UNITS matches the units used by your projection, and that either both layers are in the same projection, OR add projection information so that you can display both layers at the same time. I don't have a virtual data layer handy, so I can't quickly test it, but does anyone know if running ogrinfo on a text data source will return the extent? David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett at moea.state.mn.us 651.215.0200 -----Original Message----- From: N M [mailto:mapserver at hotmail.com] Sent: Tuesday, July 12, 2005 6:13 AM To: David.Fawcett at state.mn.us; MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] place a point in the map Hi David, I follow all steps in the information on the URL you send me, I think that DSN runs perfectly, I created the TXT database, the OVF file and I modifed my .map file with the parameters of the example. My question now is, how can I calculate the EXTENT coordinates. When I had a shapefile I used it to do it. Which could be my .map file so I could display it? Have I to change anything in my .map file so it runs? My EXTEND is the one of my old shapefile. Thank you MAP IMAGETYPE PNG EXTENT 0.000000 -205.000000 300.000000 0.000000 SIZE 585 400 SHAPEPATH "data" IMAGECOLOR 255 180 0 #PROJECTION # "proj=laea" # "ellps=clrk66" # "lat_0=45" # "lon_0=-100" # # Alternatively, you can specify an EPSG code. # "init=epsg:2163" # #END # Start of LAYER DEFINITIONS --------------------------------------------- LAYER # Capa de raster NAME mapafig DATA "raster/figueres.tif" STATUS DEFAULT TYPE RASTER PROCESSING "BANDS=1" #OFFSITE 71 74 65 #Color que ha de ser transparent #PROJECTION # "init=epsg:4326" #END END # Fi capa de raster LAYER CONNECTION "mapa21.ovf" CONNECTIONTYPE OGR DATA "prova" METADATA "wms_srs" "4326" "wms_title" "prova" END NAME "prova" SIZEUNITS PIXELS STATUS ON TOLERANCE 0 TOLERANCEUNITS PIXELS TYPE POINT UNITS METERS CLASS STYLE COLOR 0 0 0 MAXSIZE 100 MINSIZE 1 SIZE 6 SYMBOL "symbols/prova.gif" END END END # End of LAYER DEFINITIONS ------------------------------- END # end of map file >If you don't want to place your data in ESRI shapefiles or a database, you >can use a simple text file as the data source for a layer. > >If your Mapserver binary has been compiled with OGR support (quite likely), >you can use a virtual data source. Take a look at the Vector Data Access >Reference >http://ms.gis.umn.edu:8081/ms_plone/docs/reference/vector_data/VirtualSpatialData > >If you search the list archives for OGR and VRT, you will most likely find >some example map file layers. > >David. > >David Fawcett >Minnesota Office of Environmental Assistance >david.fawcett at moea.state.mn.us >651.215.0200 > > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On >Behalf Of SUBSCRIBE MAPSERVER-USERS Nuri >Sent: Monday, July 11, 2005 4:52 AM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] place a point in the map > > >Recently I managed to create my own map and placed a symbol in it from a >database. > >Now I need to place several points in the map. My database contains gps >coordinates like this: > >4216 9669 259 > >Latitude: 42? 16'N >Longitude: 258?E > >I translated this gps coordinates to UTM coordinates to obtain: > >Zone: 14 >Easting: 252608 >Norting: 4683531 > >I need to show this point in the map. > >Someone could explain my how to do it? Thank you. > >My present .map file is: > >MAP > IMAGETYPE PNG > EXTENT 0.000000 -205.000000 300.000000 0.000000 > SIZE 600 410 > SHAPEPATH "data" > IMAGECOLOR 255 180 0 > FONTSET "fonts/fonts.list" > > #PROJECTION > # "proj=laea" > # "ellps=clrk66" > # "lat_0=45" > # "lon_0=-100" > # > # Alternatively, you can specify an EPSG code. > # "init=epsg:2163" > # > #END > > # Start of LAYER DEFINITIONS >-------------------------------------------- >- > > LAYER # Capa de raster > NAME mapafig > DATA "raster/figueres.tif" > STATUS DEFAULT > TYPE RASTER > PROCESSING "BANDS=1" > #OFFSITE 71 74 65 #Color que ha de ser transparent > > #PROJECTION > # "init=epsg:4326" > #END > END # Fi capa de raster > > > > LAYER > NAME simbols > GROUP grup > STATUS DEFAULT > DATA mapa > TYPE ANNOTATION > LABELITEM "SIMB" > CLASSITEM "C" > CLASS > EXPRESSION "2" > STYLE > COLOR 0 0 0 # dummy color > SYMBOL 'symbols/prova.gif' > END > LABEL > MINFEATURESIZE 20 > MINDISTANCE 50 > POSITION CC > SIZE TINY > COLOR 255 255 255 > END > END > > PROJECTION > "init=epsg:4326" > END > END > > > > # End of LAYER DEFINITIONS ------------------------------- >END # end of map file _________________________________________________________________ Descarga gratis la Barra de Herramientas de MSN http://www.msn.es/usuario/busqueda/barra?XAPID=2031&DI=1055&SU=http%3A//www.hotmail.com&HL=LINKTAG1OPENINGTEXT_MSNBH From woodbri at SWOODBRIDGE.COM Tue Jul 12 06:44:08 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 12 Jul 2005 09:44:08 -0400 Subject: Labeling of multi-polygon(?) states In-Reply-To: <42D3C63F.2050806@svs.gsfc.nasa.gov> Message-ID: Jeff, There is no automatic way that I know of, but to get the most control I would create a point layer for the label points. -Steve W. Jeff de La Beaujardiere wrote: > I am using the "statesp020" dataset from USGS National Atlas > (http://edcftp.cr.usgs.gov/pub/data/nationalatlas/statesp020.tar.gz). > > When I ask Mapserver to draw labels, some states have a single label > centered in the state (e.g., Alabama), while others have multiple labels > around their edges (e.g., Florida). See, for example, > http://map05.gsfc.nasa.gov/cgi-bin/modis?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=states20m&STYLES=default&SRS=EPSG:4326&BBOX=-100.075,23.63125,-65.075,36.13125&WIDTH=700&HEIGHT=250&FORMAT=image/png > > > I assume this is because states with complicated boundaries, such as > along the coast, are built from several polygons, and each polygon is > given a label. I can reduce the number of labels per state by setting > MINDISTANCE, but I cannot get the labels of such states placed near the > geographic center of the state--the label is always on the boundary > (e.g., at the tip of the Florida keys). > > Is there a way to get better control of the label position, or to > rebuild the shapefile in a way that perhaps produces a lower-res border > but has better labeling? > > -Jeff DLB > From ezequias at RECIFE.PE.GOV.BR Tue Jul 12 07:02:28 2005 From: ezequias at RECIFE.PE.GOV.BR (Ezequias Rodrigues da Rocha) Date: Tue, 12 Jul 2005 11:02:28 -0300 Subject: Res: Re: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] PC256 color images (I need more quality) Message-ID: Hello, FORMATOPTION "QUALITY=100" does not make any difference. Should I increase the quality more than 100 ? Sincerely Ezequias -------Mensagem original------- De: Pericles S. Nacionales Data: 07/11/05 19:13:16 Para: Ezequias Rodrigues da Rocha Cc: MAPSERVER-USERS at lists.umn.edu Assunto: Re: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] PC256 color images (I need more quality) I guess I still don't know what your problem is. If you're talking about quality in the sense of having compression artifacts, then you can add something like FORMATOPTION "QUALITY=100" in your OUTPUTFORMAT. Or perhaps you should be using PNG24 instead of JPEG. Read through http://mapserver.gis.umn.edu/doc/mapfile-reference.html#outputformat for more output related info. Also read http://mapserver.gis.umn.edu/doc/raster-howto.html for raster input stuff. -Perry On Monday 11 July 2005 13:36, Ezequias Rodrigues da Rocha wrote: > I commented the lines and the image got worst. > > And now ? > > -------Mensagem original------- > > De: Pericles S. Nacionales > Data: 07/08/05 16:59:20 > Para: MAPSERVER-USERS at LISTS.UMN.EDU > Assunto: Re: [UMN_MAPSERVER-USERS] PC256 color images (I need more quality) > > Ah, I should have looked further down on your message. Comment out the > PROCESSING parameters and see what happens. > > -Perry > > On Friday 08 July 2005 15:07, Ezequias Rodrigues da Rocha wrote: > > Good afternoon (for some of you) > > > > > > I am trying to make Mapserver render a 24bits but it only send to me a > > 256 colors image. > > > > > > Here some of my Map file: > > ___________________________________________________________________________ > > >__ ________________ > > fontset "/usr/java/jre1.5.0_01/lib/fonts/LucidaTypewriterRegular.ttf" > > imagecolor 255 255 255 > > imagetype jpeg > > shapepath "/var/www/cgi-bin/" > > size 600 440 > > units meters > > projection > > "int=epsg:29185" > > end > > > > > > > > LAYER > > NAME "Imagem56" > > data "raster/recorte_56.tif" > > STATUS off > > TYPE RASTER > > PROCESSING "DITHER=YES" > > PROCESSING "BANDS=1,2,3" > > PROCESSING "COLOR_MATCH_THRESHOLD=3" > > END > > OUTPUTFORMAT > > NAME jpeg > > DRIVER "GD/JPEG" > > MIMETYPE "image/jpeg" > > IMAGEMODE RGB > > EXTENSION "jpg" > > END > > > > end # End Map > > > > > > Best regards to all > > > > Ezequias > > -- > Pericles S. Nacionales > > Conservation Biology Program > University of Minnesota > 1530 Cleveland Ave. N., 115GrnH > St. Paul, MN 55108 -- Pericles S. Nacionales Conservation Biology Program University of Minnesota 1530 Cleveland Ave. N., 115GrnH St. Paul, MN 55108 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ezequias at RECIFE.PE.GOV.BR Tue Jul 12 07:12:15 2005 From: ezequias at RECIFE.PE.GOV.BR (Ezequias Rodrigues da Rocha) Date: Tue, 12 Jul 2005 11:12:15 -0300 Subject: Res: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] PC256 color images (I need more quality) Message-ID: I believe that Mapserver is not using GD could you tell me how to check it ? Sincerely Ezequias -------Mensagem original------- De: Ezequias Rodrigues da Rocha Data: 07/12/05 10:31:54 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] PC256 color images (I need more quality) Hello, FORMATOPTION "QUALITY=100" does not make any difference. Should I increase the quality more than 100 ? Sincerely Ezequias -------Mensagem original------- De: Pericles S. Nacionales Data: 07/11/05 19:13:16 Para: Ezequias Rodrigues da Rocha Cc: MAPSERVER-USERS at lists.umn.edu Assunto: Re: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] PC256 color images (I need more quality) I guess I still don't know what your problem is. If you're talking about quality in the sense of having compression artifacts, then you can add something like FORMATOPTION "QUALITY=100" in your OUTPUTFORMAT. Or perhaps you should be using PNG24 instead of JPEG. Read through http://mapserver.gis.umn.edu/doc/mapfile-reference.html#outputformat for more output related info. Also read http://mapserver.gis.umn.edu/doc/raster-howto.html for raster input stuff. -Perry On Monday 11 July 2005 13:36, Ezequias Rodrigues da Rocha wrote: > I commented the lines and the image got worst. > > And now ? > > -------Mensagem original------- > > De: Pericles S. Nacionales > Data: 07/08/05 16:59:20 > Para: MAPSERVER-USERS at LISTS.UMN.EDU > Assunto: Re: [UMN_MAPSERVER-USERS] PC256 color images (I need more quality) > > Ah, I should have looked further down on your message. Comment out the > PROCESSING parameters and see what happens. > > -Perry > > On Friday 08 July 2005 15:07, Ezequias Rodrigues da Rocha wrote: > > Good afternoon (for some of you) > > > > > > I am trying to make Mapserver render a 24bits but it only send to me a > > 256 colors image. > > > > > > Here some of my Map file: > > ___________________________________________________________________________ > > >__ ________________ > > fontset "/usr/java/jre1.5.0_01/lib/fonts/LucidaTypewriterRegular.ttf" > > imagecolor 255 255 255 > > imagetype jpeg > > shapepath "/var/www/cgi-bin/" > > size 600 440 > > units meters > > projection > > "int=epsg:29185" > > end > > > > > > > > LAYER > > NAME "Imagem56" > > data "raster/recorte_56.tif" > > STATUS off > > TYPE RASTER > > PROCESSING "DITHER=YES" > > PROCESSING "BANDS=1,2,3" > > PROCESSING "COLOR_MATCH_THRESHOLD=3" > > END > > OUTPUTFORMAT > > NAME jpeg > > DRIVER "GD/JPEG" > > MIMETYPE "image/jpeg" > > IMAGEMODE RGB > > EXTENSION "jpg" > > END > > > > end # End Map > > > > > > Best regards to all > > > > Ezequias > > -- > Pericles S. Nacionales > > Conservation Biology Program > University of Minnesota > 1530 Cleveland Ave. N., 115GrnH > St. Paul, MN 55108 -- Pericles S. Nacionales Conservation Biology Program University of Minnesota 1530 Cleveland Ave. N., 115GrnH St. Paul, MN 55108 -------------- next part -------------- An HTML attachment was scrubbed... URL: From pramsey at REFRACTIONS.NET Tue Jul 12 07:49:55 2005 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Tue, 12 Jul 2005 07:49:55 -0700 Subject: Question re: PostGIS and MapScript getExtent() function In-Reply-To: <02ed01c586c8$452040d0$520a0a0a@scorpio> Message-ID: msPOSTGISLayerGetExtent() is potentially extremely inefficient, depending on how it is implemented, so I would have to see your patch to judge if it does more harm than good. It may be doing good things for you and bad things for others. One thing it *could* do without harm is read the wms_extent meta-parameter and use that if it is provided by the user. There are also a few version specific fast extent functions available in PostGIS, but they are not guaranteed to work in all cases, at all times, correctly. On 12-Jul-05, at 2:58 AM, Steve Hall wrote: > Hi All, > > I'm using MapServer 4.6.0 with Oracle Spatial and PostGIS data > sources via PHP/MapScript. Part of my application code looks like > this pseudo-code : > > $map->setLayerFilter("ThematicData", "REQUEST_ID=121"); > $map->zoomToLayer("ThematicData"); > Here i'm setting a specific FILTER expression for a layer, and then > zooming to the extent of the (now filtered) layer. I use the > layerObj->getExtent() and then mapObj->setExtent() functions to > achieve this behind the scenes. This works great for Oracle, the > query is fast and makes for nice, tidy code in my application > without the need for Oracle specific SQL statements to derive the > new extent. > > However when I try this on PostGIS I just get a massive (useless) > extent returned. Digging into the code I can see that the > msPOSTGISLayerGetExtent() function in mappostgis.c is effectively > doing nothing although a lot of code is commented out. > > Working on my local code I have re-enabled this code, fixed the > compilation errors and changed it so that when a FILTER is applied > to the layer this is used as part of the SQL call to PG. It seems > to work great (from PHP/MapScript) and performance is fine and is > really useful for me meaning I don't need to calculate the extents > for a map myself - MapServer can supply the information in a > generic and abstract fashion. > > Ideally I would like to get this code fed back into MapServer, but > of course only if it's acceptable to you all. So, should I > instead post this to mapserver-dev or can I pass on the new code to > someone from here? > > There may be good, historical, reasons why this wasn't ever > implemented though so please let me know! > > Many thanks, > > Steve Hall > > From sc0rp10nau at YAHOO.COM.AU Tue Jul 12 07:57:04 2005 From: sc0rp10nau at YAHOO.COM.AU (Ajay Ranipeta) Date: Tue, 12 Jul 2005 09:57:04 -0500 Subject: Java Mapscript map draw error Message-ID: Hi list (and Sean Gillies), Got a (known) problem, and (desperately and urgently) need a fix (or even info). I'm using java mapscript on windows, and after zooming in a few times, i get the following error under the tomcat logs: ================================================== java.lang.UnknownError: Failed to parse expression at edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(Native Method) at edu.umn.gis.mapscript.mapObj.draw(mapObj.java:397) ================================================== Now I know there is a similar error with layers (bug 1266: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1266), but i suspect it is the same problem. I'm using Java/Mapscript v.4.4 (from hobu's site). While the bug report says that it'll be fixed with version 4.6, I was just wondering if it is fixed with the new version? If so, does anyone have a copy of new version of java mapscript? If not, anyone kind enough to let me know how to compile one. I don't have a copy of Visual C++, (and hence a pre-compiled version would be much appritiated). Any help would be greatly appritiated. tia cheers, Ajay From nacional at CBS.UMN.EDU Tue Jul 12 08:38:10 2005 From: nacional at CBS.UMN.EDU (Pericles S. Nacionales) Date: Tue, 12 Jul 2005 10:38:10 -0500 Subject: Mapfile TOLERANCE/ Mouse-click accuracy? In-Reply-To: <42D38DD5.90903@maich.gr> Message-ID: Nikos, Why is your TOLERANCE set so high? When you don't specify TOLERANCEUNITS, the default unit is in pixel. So, you have a TOLERANCE of 70 pixels and that's quite high in a small image specially if you are showing a good part of Europe. Set the TOLERANCEUNITS to kilometers or lower TOLERANCE value to something like 5 (pixels) or lower. See http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#layer. -Perry On Tuesday 12 July 2005 04:31, Nikos wrote: > se a bit of help here. > Using a simple shapefile of France, about 20 regions, under windows, > ms3.6 cgi, and standard html interface... > > My problem is accuarcy when querying a polygon, e.g when I click on what > should be Corsica, I get the alps.. > > I've cranked up the TOLERANCE in my layer definition.. but all that does > is return more regions when "querying multiple" that does not really help.. > No projection is set in mapfile > I've checked the shapefile with shpdump, and it reports the extents as > are in the mapfile > The shape file queries correctly in Arcview... > > could use a bit of help here.. -- Pericles S. Nacionales Conservation Biology Program University of Minnesota 1530 Cleveland Ave. N., 115GrnH St. Paul, MN 55108 From lists at WEBMAPIT.COM.BR Tue Jul 12 09:26:22 2005 From: lists at WEBMAPIT.COM.BR (Eduardo Patto Kanegae) Date: Tue, 12 Jul 2005 13:26:22 -0300 Subject: ANNOUNCE: 2nd Brazilian MapServer user meeting Message-ID: An HTML attachment was scrubbed... URL: From sc0rp10nau at YAHOO.COM.AU Tue Jul 12 09:41:35 2005 From: sc0rp10nau at YAHOO.COM.AU (Ajay Ranipeta) Date: Tue, 12 Jul 2005 11:41:35 -0500 Subject: Displaying Point on the Map if Co-ordinates are send by user ??? Message-ID: Hi Mann, You can choose to do either. This has been previously answered on the LIST, so just search the archives. But to start you off, here is a link to the MapServer CGI doc, where you can add a few move name/value pairs to the url and create a point on the map. http://mapserver.gis.umn.edu/doc44/cgi-reference.html#mapfileURL Basically, you need an acetate (a dummy) layer with its STATUS OFF. Then from the url, just create a new feature point and mapserver will draw it on the map for you. You can also achieve this with PHP Mapscript, but that'll take you more coding. hth. cheers, Ajay On Mon, 11 Jul 2005 18:46:41 -0700, Mandar sarlashkar wrote: >Dear All ! > >If User sends the co-ordinates - is it possible to display the Position as a point on the Map. > >Is it possible through CGI implementation of Mapserver ? > > or > >Is it possible, Using PHP MapScript ??? > >I have just started getting an idea of how Mapserver works. The task might be accomplished very easily or the question might be stupid but its very important for me... > >Thanking you in advance. > >Mann > > > >--------------------------------- > Sell on Yahoo! Auctions - No fees. Bid on great items. From jeff2005 at SVS.GSFC.NASA.GOV Tue Jul 12 09:55:29 2005 From: jeff2005 at SVS.GSFC.NASA.GOV (Jeff de La Beaujardiere) Date: Tue, 12 Jul 2005 12:55:29 -0400 Subject: Labeling of multi-polygon(?) states In-Reply-To: <42D3C928.4020900@swoodbridge.com> Message-ID: Stephen Woodbridge wrote: > There is no automatic way that I know of, but to get the most control I > would create a point layer for the label points. That sounds like a good idea--thanks for the suggestion. I wonder if there isn't a shapefile already available with these 50 points. -Jeff DLB From pramsey at REFRACTIONS.NET Tue Jul 12 10:09:28 2005 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Tue, 12 Jul 2005 10:09:28 -0700 Subject: Question re: PostGIS and MapScript getExtent() function In-Reply-To: <035201c58702$25d33450$520a0a0a@scorpio> Message-ID: Steve, If you grep through the source, you'll see the calls, which are mainly in the WMS code (pulling extents for capabilities). The problem is that the return time for the call can be very large for very large tables. Which is not really acceptable for a capabilities return. Maybe it is acceptable for your application. This is the real problem. We want something with very low return times (as a shapefile extents call is) but we cannot get it with the extent() function, because that requires a sequence scan. So basically, we cannot simply stick in your implementation, or we are building a big obscure "gotcha" into mapserver. ("Why does it take forever to return a capabilities file for my PostGIS backed WMS? Everything else is fast.") Perhaps the folks on -DEV can return some zen wisdom on the correct approach to this. Paul On 12-Jul-05, at 9:52 AM, Steve Hall wrote: > Hi Paul, > > Exactly right - it definitely needs reviewing by those that know > more about MapServer internals than I do. (which is most of you I > expect). > > How is this function used my MapServer itself then? The context in > which I am using it is via an explicit $layerObj->getExtent() call > from PHP/MapScript, so in this respect the current implementation > is not much use, but I suspect there is more to this function than > just an implementation for this call. The main issue I had was > that this function worked as I expected for Oracle, yet not for > PostGIS, meaning I'd need some ugly code in my app to deal with the > inconsistency... > > Anyway, i've attached my version of the function for you to take a > look at. My implemenation is basically the version that was > commented out, with the compilcation errors & warning resolved, > added support for the FILTER expression and support for either BOX > or BOX3D return clauses from PostGIS extent(). > > Many thanks, > > Steve > > > > ----- Original Message ----- From: "Paul Ramsey" > > To: "Steve Hall" > Cc: > Sent: Tuesday, July 12, 2005 3:49 PM > Subject: Re: [UMN_MAPSERVER-USERS] Question re: PostGIS and > MapScript getExtent() function > > > >> msPOSTGISLayerGetExtent() is potentially extremely inefficient, >> depending on how it is implemented, so I would have to see your >> patch to judge if it does more harm than good. It may be doing >> good things for you and bad things for others. One thing it >> *could* do without harm is read the wms_extent meta-parameter and >> use that if it is provided by the user. There are also a few >> version specific fast extent functions available in PostGIS, but >> they are not guaranteed to work in all cases, at all times, >> correctly. >> >> On 12-Jul-05, at 2:58 AM, Steve Hall wrote: >> >> >>> Hi All, >>> >>> I'm using MapServer 4.6.0 with Oracle Spatial and PostGIS data >>> sources via PHP/MapScript. Part of my application code looks >>> like this pseudo-code : >>> >>> $map->setLayerFilter("ThematicData", "REQUEST_ID=121"); >>> $map->zoomToLayer("ThematicData"); >>> Here i'm setting a specific FILTER expression for a layer, and >>> then zooming to the extent of the (now filtered) layer. I use >>> the layerObj->getExtent() and then mapObj->setExtent() functions >>> to achieve this behind the scenes. This works great for Oracle, >>> the query is fast and makes for nice, tidy code in my >>> application without the need for Oracle specific SQL statements >>> to derive the new extent. >>> >>> However when I try this on PostGIS I just get a massive >>> (useless) extent returned. Digging into the code I can see that >>> the msPOSTGISLayerGetExtent() function in mappostgis.c is >>> effectively doing nothing although a lot of code is commented out. >>> >>> Working on my local code I have re-enabled this code, fixed the >>> compilation errors and changed it so that when a FILTER is >>> applied to the layer this is used as part of the SQL call to >>> PG. It seems to work great (from PHP/MapScript) and performance >>> is fine and is really useful for me meaning I don't need to >>> calculate the extents for a map myself - MapServer can supply >>> the information in a generic and abstract fashion. >>> >>> Ideally I would like to get this code fed back into MapServer, >>> but of course only if it's acceptable to you all. So, should >>> I instead post this to mapserver-dev or can I pass on the new >>> code to someone from here? >>> >>> There may be good, historical, reasons why this wasn't ever >>> implemented though so please let me know! >>> >>> Many thanks, >>> >>> Steve Hall >>> >>> >>> > From dps1 at UALBERTA.CA Tue Jul 12 10:27:24 2005 From: dps1 at UALBERTA.CA (David Shorthouse) Date: Tue, 12 Jul 2005 11:27:24 -0600 Subject: Specify file name? Message-ID: Hello folks, Is it possible to specify the image file name generated with the MapServer cgi? Rather than clients having to rename the generated map once saved to their disks from mapserv.xxx, I'd rather have this file name be something else. Thanks, Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Hunter at FNF.COM Tue Jul 12 10:42:40 2005 From: David.Hunter at FNF.COM (Hunter, David - St. Louis Park, MN) Date: Tue, 12 Jul 2005 12:42:40 -0500 Subject: client-side image map Message-ID: I'd like to add a client-side image map for a layer of point features. I found the documentation for this in the wiki, and it basically works, except the '%s' variable gets replaced with the layer name. How can I write out the contents of a field, for instance each point's name, instead of the layer name? This is line from the output: This is what my .map file looks like: MAP OUTPUTFORMAT NAME imagemap DRIVER imagemap MIMETYPE "text/html" FORMATOPTION "SYMBOLHREF=alert('%s');" FORMATOPTION "MAPNAME=stations" FORMATOPTION "SYMBOLMOUSEOUT=return nd();" FORMATOPTION "SYMBOLMOUSEOVER=return overlib('%s');" END EXTENT -80.2204 35.8442 -79.7739 36.1308 SIZE 670 536 UNITS DD PROJECTION "init=epsg:4267" END # fire stations LAYER NAME "FireStations" CONNECTIONTYPE OGR CONNECTION "FD/NC0505AFS.tab" STATUS DEFAULT TYPE POINT PROJECTION "init=epsg:4267" END CLASS COLOR 0 0 0 END END END David S. Hunter Sr. Software Engineer Fidelity National Geographic Solutions division of Fidelity National Financial 5353 Gamble Drive, Suite 201 St. Louis Park, MN 55416 * Email: david.hunter at fnf.com ' Phone: 952.542.1440 ext. 256 * Fax: 952.542.3859 -------------- next part -------------- An HTML attachment was scrubbed... URL: From pramsey at REFRACTIONS.NET Tue Jul 12 11:07:10 2005 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Tue, 12 Jul 2005 11:07:10 -0700 Subject: Need help: Annotation layer from Postgis using php In-Reply-To: Message-ID: Best to ask the users list, Sergey, one-on-one support wears out half the partners pretty quick :) Oh, and read the mapfile reference. :) Paul On 12-Jul-05, at 11:07 AM, Sergey Miltchakov wrote: > Hello! I fixed all the problems and cleared just about everything out. > I managed to define and draw a point on the map and to highlight > the shape > which contains that point. (Querybypoint helped me). > > Now I added the date field to my 'vydely' table and want to color the > shapes depending on the year of this date. Here is my expression > $tmpclass2[$i]->setexpression("(date_part('year',data_rubki) as > [foo] = > 2004)"); > But it returns blank image. > When instead I use > $tmpclass2[$i]->setexpression("([id] = 23)"); > Everything works fine. > > Where do I read on using EXPRESSION? Could you please help me or > give me a > hint? > > Regards, > Sergey > > > >> Why is your data statement set to "id from vydely"? Even though it is >> an annotation layer, the data statement should still point at the >> geometry column (the_geom in your case). >> On a related note: why have an annotation layer, if you are already >> drawing the polygons? Just add a label object to your polygon layer. >> On a related, related note: if you want to label using a >> combination of >> two columns for the label, a SQL based data statement could be >> useful. >> For example: >> DATA "the_geom from (select gid,the_geom,kvartal || ' ' || id as >> label >> from vydely) as foo using unique gid" >> > > > From steve.hall at MERCATORGEOSYSTEMS.CO.UK Tue Jul 12 11:30:46 2005 From: steve.hall at MERCATORGEOSYSTEMS.CO.UK (Steve Hall) Date: Tue, 12 Jul 2005 19:30:46 +0100 Subject: Question re: PostGIS and MapScript getExtent() function Message-ID: Thanks Paul, This all sounds very reasonable to me.... I'll keep this to myself for now then. I'm curious about the fact that this is implemented for Oracle which is performing a very similar operation (i.e a spatial aggregate, SDO_AGGR_MBR). Is Oracle more efficient than PostGIS in this area or is there a difference in approach that i'm missing...? For my two-pennorth a function like this is very useful, as it allows me to change the filter for a layer, and alter the map extent to match the extent of the "new" layer, without needing to do any "dirty" SQL on the back-end database manually to find the new extent. Perhaps if it can't / shouldn't be done via these msXXXLayerGetExtent() functions there is another way, or could it be listed as an enhancement? Thanks again, i'm new to the contributing side of Open Source so forgive my early mistakes! Steve ----- Original Message ----- From: "Paul Ramsey" To: "Steve Hall" Cc: ; Sent: Tuesday, July 12, 2005 6:09 PM Subject: Re: [UMN_MAPSERVER-USERS] Question re: PostGIS and MapScript getExtent() function > Steve, > > If you grep through the source, you'll see the calls, which are mainly in > the WMS code (pulling extents for capabilities). The problem is that the > return time for the call can be very large for very large tables. Which > is not really acceptable for a capabilities return. Maybe it is > acceptable for your application. This is the real problem. We want > something with very low return times (as a shapefile extents call is) but > we cannot get it with the extent() function, because that requires a > sequence scan. > > So basically, we cannot simply stick in your implementation, or we are > building a big obscure "gotcha" into mapserver. ("Why does it take > forever to return a capabilities file for my PostGIS backed WMS? > Everything else is fast.") > > Perhaps the folks on -DEV can return some zen wisdom on the correct > approach to this. > > Paul > > On 12-Jul-05, at 9:52 AM, Steve Hall wrote: > >> Hi Paul, >> >> Exactly right - it definitely needs reviewing by those that know more >> about MapServer internals than I do. (which is most of you I expect). >> >> How is this function used my MapServer itself then? The context in >> which I am using it is via an explicit $layerObj->getExtent() call from >> PHP/MapScript, so in this respect the current implementation is not much >> use, but I suspect there is more to this function than just an >> implementation for this call. The main issue I had was that this >> function worked as I expected for Oracle, yet not for PostGIS, meaning >> I'd need some ugly code in my app to deal with the inconsistency... >> >> Anyway, i've attached my version of the function for you to take a look >> at. My implemenation is basically the version that was commented out, >> with the compilcation errors & warning resolved, added support for the >> FILTER expression and support for either BOX or BOX3D return clauses >> from PostGIS extent(). >> >> Many thanks, >> >> Steve >> >> >> >> ----- Original Message ----- From: "Paul Ramsey" >> >> To: "Steve Hall" >> Cc: >> Sent: Tuesday, July 12, 2005 3:49 PM >> Subject: Re: [UMN_MAPSERVER-USERS] Question re: PostGIS and MapScript >> getExtent() function >> >> >> >>> msPOSTGISLayerGetExtent() is potentially extremely inefficient, >>> depending on how it is implemented, so I would have to see your patch >>> to judge if it does more harm than good. It may be doing good things >>> for you and bad things for others. One thing it *could* do without >>> harm is read the wms_extent meta-parameter and use that if it is >>> provided by the user. There are also a few version specific fast >>> extent functions available in PostGIS, but they are not guaranteed to >>> work in all cases, at all times, correctly. >>> >>> On 12-Jul-05, at 2:58 AM, Steve Hall wrote: >>> >>> >>>> Hi All, >>>> >>>> I'm using MapServer 4.6.0 with Oracle Spatial and PostGIS data >>>> sources via PHP/MapScript. Part of my application code looks like >>>> this pseudo-code : >>>> >>>> $map->setLayerFilter("ThematicData", "REQUEST_ID=121"); >>>> $map->zoomToLayer("ThematicData"); >>>> Here i'm setting a specific FILTER expression for a layer, and then >>>> zooming to the extent of the (now filtered) layer. I use the >>>> layerObj->getExtent() and then mapObj->setExtent() functions to >>>> achieve this behind the scenes. This works great for Oracle, the >>>> query is fast and makes for nice, tidy code in my application without >>>> the need for Oracle specific SQL statements to derive the new extent. >>>> >>>> However when I try this on PostGIS I just get a massive (useless) >>>> extent returned. Digging into the code I can see that the >>>> msPOSTGISLayerGetExtent() function in mappostgis.c is effectively >>>> doing nothing although a lot of code is commented out. >>>> >>>> Working on my local code I have re-enabled this code, fixed the >>>> compilation errors and changed it so that when a FILTER is applied to >>>> the layer this is used as part of the SQL call to PG. It seems to >>>> work great (from PHP/MapScript) and performance is fine and is really >>>> useful for me meaning I don't need to calculate the extents for a map >>>> myself - MapServer can supply the information in a generic and >>>> abstract fashion. >>>> >>>> Ideally I would like to get this code fed back into MapServer, but of >>>> course only if it's acceptable to you all. So, should I instead >>>> post this to mapserver-dev or can I pass on the new code to someone >>>> from here? >>>> >>>> There may be good, historical, reasons why this wasn't ever >>>> implemented though so please let me know! >>>> >>>> Many thanks, >>>> >>>> Steve Hall >>>> >>>> >>>> >> From pramsey at REFRACTIONS.NET Tue Jul 12 11:37:24 2005 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Tue, 12 Jul 2005 11:37:24 -0700 Subject: Question re: PostGIS and MapScript getExtent() function In-Reply-To: <035901c5870f$d1d8e940$520a0a0a@scorpio> Message-ID: Steve, Try it on a 20M record table in Oracle. Both implementations, Oracle's and your uncommented PostGIS one, do the same functional thing, which is a full table scan. It is possible that Oracle is slightly smarter about reading the index for the AGGR_MBR case, which might make it work better on large tables: one for the testing range. I think your tuppence might be right on the money: - Enable ms*GetLayerExtent() to provide the "right" answer in all cases, even if it is expensive. - Add a ms*GetLayerExtentFast() that for the easy data sources just calls GetLayerExtent, and for the hard data sources does whatever combination of fast hacks and cop-outs are required. WMS GetCapabilities should call GetLayerExtentFast and mapscript should call GetLayerExtent. Unrelated question for the gurus: does GetLayerExtent respect filters for all data sources? Paul On 12-Jul-05, at 11:30 AM, Steve Hall wrote: > Thanks Paul, > > This all sounds very reasonable to me.... I'll keep this to myself > for now then. > > I'm curious about the fact that this is implemented for Oracle > which is performing a very similar operation (i.e a spatial > aggregate, SDO_AGGR_MBR). Is Oracle more efficient than PostGIS in > this area or is there a difference in approach that i'm missing...? > > For my two-pennorth a function like this is very useful, as it > allows me to change the filter for a layer, and alter the map > extent to match the extent of the "new" layer, without needing to > do any "dirty" SQL on the back-end database manually to find the > new extent. Perhaps if it can't / shouldn't be done via these > msXXXLayerGetExtent() functions there is another way, or could it > be listed as an enhancement? > > Thanks again, i'm new to the contributing side of Open Source so > forgive my early mistakes! > > Steve > > > > ----- Original Message ----- From: "Paul Ramsey" > > To: "Steve Hall" > Cc: ; > Sent: Tuesday, July 12, 2005 6:09 PM > Subject: Re: [UMN_MAPSERVER-USERS] Question re: PostGIS and > MapScript getExtent() function > > > >> Steve, >> >> If you grep through the source, you'll see the calls, which are >> mainly in the WMS code (pulling extents for capabilities). The >> problem is that the return time for the call can be very large >> for very large tables. Which is not really acceptable for a >> capabilities return. Maybe it is acceptable for your >> application. This is the real problem. We want something with >> very low return times (as a shapefile extents call is) but we >> cannot get it with the extent() function, because that requires a >> sequence scan. >> >> So basically, we cannot simply stick in your implementation, or >> we are building a big obscure "gotcha" into mapserver. ("Why does >> it take forever to return a capabilities file for my PostGIS >> backed WMS? Everything else is fast.") >> >> Perhaps the folks on -DEV can return some zen wisdom on the >> correct approach to this. >> >> Paul >> >> On 12-Jul-05, at 9:52 AM, Steve Hall wrote: >> >> >>> Hi Paul, >>> >>> Exactly right - it definitely needs reviewing by those that know >>> more about MapServer internals than I do. (which is most of you >>> I expect). >>> >>> How is this function used my MapServer itself then? The context >>> in which I am using it is via an explicit $layerObj->getExtent() >>> call from PHP/MapScript, so in this respect the current >>> implementation is not much use, but I suspect there is more to >>> this function than just an implementation for this call. The >>> main issue I had was that this function worked as I expected for >>> Oracle, yet not for PostGIS, meaning I'd need some ugly code in >>> my app to deal with the inconsistency... >>> >>> Anyway, i've attached my version of the function for you to take >>> a look at. My implemenation is basically the version that was >>> commented out, with the compilcation errors & warning resolved, >>> added support for the FILTER expression and support for either >>> BOX or BOX3D return clauses from PostGIS extent(). >>> >>> Many thanks, >>> >>> Steve >>> >>> >>> >>> ----- Original Message ----- From: "Paul Ramsey" >>> >>> To: "Steve Hall" >>> Cc: >>> Sent: Tuesday, July 12, 2005 3:49 PM >>> Subject: Re: [UMN_MAPSERVER-USERS] Question re: PostGIS and >>> MapScript getExtent() function >>> >>> >>> >>> >>>> msPOSTGISLayerGetExtent() is potentially extremely inefficient, >>>> depending on how it is implemented, so I would have to see your >>>> patch to judge if it does more harm than good. It may be doing >>>> good things for you and bad things for others. One thing it >>>> *could* do without harm is read the wms_extent meta-parameter >>>> and use that if it is provided by the user. There are also a >>>> few version specific fast extent functions available in >>>> PostGIS, but they are not guaranteed to work in all cases, at >>>> all times, correctly. >>>> >>>> On 12-Jul-05, at 2:58 AM, Steve Hall wrote: >>>> >>>> >>>> >>>>> Hi All, >>>>> >>>>> I'm using MapServer 4.6.0 with Oracle Spatial and PostGIS data >>>>> sources via PHP/MapScript. Part of my application code looks >>>>> like this pseudo-code : >>>>> >>>>> $map->setLayerFilter("ThematicData", "REQUEST_ID=121"); >>>>> $map->zoomToLayer("ThematicData"); >>>>> Here i'm setting a specific FILTER expression for a layer, and >>>>> then zooming to the extent of the (now filtered) layer. I use >>>>> the layerObj->getExtent() and then mapObj->setExtent() >>>>> functions to achieve this behind the scenes. This works great >>>>> for Oracle, the query is fast and makes for nice, tidy code in >>>>> my application without the need for Oracle specific SQL >>>>> statements to derive the new extent. >>>>> >>>>> However when I try this on PostGIS I just get a massive >>>>> (useless) extent returned. Digging into the code I can see >>>>> that the msPOSTGISLayerGetExtent() function in mappostgis.c >>>>> is effectively doing nothing although a lot of code is >>>>> commented out. >>>>> >>>>> Working on my local code I have re-enabled this code, fixed the >>>>> compilation errors and changed it so that when a FILTER is >>>>> applied to the layer this is used as part of the SQL call to >>>>> PG. It seems to work great (from PHP/MapScript) and >>>>> performance is fine and is really useful for me meaning I >>>>> don't need to calculate the extents for a map myself - >>>>> MapServer can supply the information in a generic and >>>>> abstract fashion. >>>>> >>>>> Ideally I would like to get this code fed back into MapServer, >>>>> but of course only if it's acceptable to you all. So, >>>>> should I instead post this to mapserver-dev or can I pass on >>>>> the new code to someone from here? >>>>> >>>>> There may be good, historical, reasons why this wasn't ever >>>>> implemented though so please let me know! >>>>> >>>>> Many thanks, >>>>> >>>>> Steve Hall >>>>> >>>>> >>>>> >>>>> > > From redddis at BK.RU Tue Jul 12 11:54:06 2005 From: redddis at BK.RU (Sergey Miltchakov) Date: Tue, 12 Jul 2005 22:54:06 +0400 Subject: Using functions with EXPRESSION Message-ID: Hello! I have a 'mydate' and 'the_geom' fields in my table and want to color the shapes on my layer depending on the year of the 'mydate' value. What expression do I use in order to do that? Is it possible to use postgre 'date_part' function at all? I tried several ways but none helped me. It just returns blank image (without the layer). Other expressions work fine. Regards, Sergey From woodbri at SWOODBRIDGE.COM Tue Jul 12 12:12:14 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 12 Jul 2005 15:12:14 -0400 Subject: Using functions with EXPRESSION In-Reply-To: Message-ID: Sergey Miltchakov wrote: > Hello! > > I have a 'mydate' and 'the_geom' fields in my table and want to color the > shapes on my layer depending on the year of the 'mydate' value. What > expression do I use in order to do that? Is it possible to use postgre > 'date_part' function at all? > > I tried several ways but none helped me. It just returns blank image > (without the layer). Other expressions work fine. Hi Sergey, You might want to post your mapfile so we can help with that. In general, I have been doing thematic mapping with postGIS and I usually try to classify the data in SQL and return back a normalized theme value between 1 and N, then I make my LAYER like: LAYER CONNECTIONTYPE postgis CONNECTION "...." DATA "the_geom from (select the_geom, () as theme from data_table where ) as foo using unique gid using srid 4326" CLASSEXPRESSION theme CLASS EXPRESSION 1 .... END CLASS EXPRESSION 2 ... END ... CLASS # no EXPRESSION is default catch all ... END END YMMV, -Steve W. From fwarmerdam at GMAIL.COM Tue Jul 12 12:17:58 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Tue, 12 Jul 2005 15:17:58 -0400 Subject: Formal MapServer Technical Committee Proposal Message-ID: Folks, Well, it look me several extra weeks to get back and revise the Technical Steering Committee proposal, but it is now updated and available at: http://ms.gis.umn.edu/development/rfc/ms-rfc-1/view For those (ie. in the user community) who haven't heard of this effort before, it is an attempt to add some formality and process to how the developers decide technical issues. I don't think the technical folks have had many arguments so far, but I have felt it is hard for us to actually make decisions on some things. I hope this will improve that. I think this takes into account most of the advise received. A few notes: o For the time being I have explicitly removed the web site and documentation from the purview of the Technical Steering Committee to keep things minimalist. o I have removed discussion of how we will manage proposal documents other than that they should initially be announced and voted on mapserver-dev. I think we will use some mixture of bugzilla and the web site for this, but I am leaving it for the committee to define how that will work. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From redddis at BK.RU Tue Jul 12 12:45:28 2005 From: redddis at BK.RU (Sergey Miltchakov) Date: Tue, 12 Jul 2005 23:45:28 +0400 Subject: Using functions with EXPRESSION In-Reply-To: <42D4160E.3090305@swoodbridge.com> Message-ID: > You might want to post your mapfile so we can help with that. Okay, I'll try. I did a query in the beginning of my php file, which returned an array 'my_years' with the year values. $Layer = ms_newLayerObj($map); $Layer->set("name", "test"); $Layer->set("type", MS_LAYER_POLYGON); $Layer->set("connectiontype", MS_POSTGIS); $Layer->set("connection","host=localhost port=5432 user=postgres password='' dbname=testgis"); $Layer->set("data","the_geom from vydely"); $Layer->set("status", MS_ON); for ($i=0;$iset("status", MS_ON); $tmpstyle2[$i] = ms_newStyleObj($tmpclass2[$i]); $tmpstyle2[$i]->color->setRGB($i*40,$i*40,100); // to somehow differentiate //$tmpclass2[$i]->setexpression("([id] = $i)"); (this works with my current query (the_geom from vydely)!!! //$tmpclass2[$i]->setexpression("(date_part('year',data_rubki) as [foo] = 2004)"); - I want it to work like this! $tmpclass2[$i]->setexpression("([data_rubki] = '2000-04-13')"); //this does not work either! }; Regards, Sergey From steve.hall at MERCATORGEOSYSTEMS.CO.UK Tue Jul 12 11:52:04 2005 From: steve.hall at MERCATORGEOSYSTEMS.CO.UK (Steve Hall) Date: Tue, 12 Jul 2005 19:52:04 +0100 Subject: Question re: PostGIS and MapScript getExtent() function Message-ID: In my experience with Oracle it too can be pretty slow getting an MBR on a table that big ;-) I don't know much about other data sources, but Oracle's spatial metadata registry (USER_SDO_GEOM_METADATA) does maintain layer extent data in the DIMINFO column so could be retrieved without needing to perform a spatial aggregate, and hence would be a suitable candidate for the *Fast function you descibe here. Like you say PostGIS also has a couple of choices in this area. I guess by definition the *Fast functions would just ignore, (or fail?) if a filter was specified...? Or perhaps if a filter is specified, the *Fast functions could call the non-Fast functions to get the answer in the (blind?) hope that the filter makes them sufficiently performant. Thanks, Steve ----- Original Message ----- From: "Paul Ramsey" To: "Steve Hall" Cc: ; Sent: Tuesday, July 12, 2005 7:37 PM Subject: Re: [UMN_MAPSERVER-USERS] Question re: PostGIS and MapScript getExtent() function > Steve, > > Try it on a 20M record table in Oracle. Both implementations, Oracle's > and your uncommented PostGIS one, do the same functional thing, which is > a full table scan. It is possible that Oracle is slightly smarter about > reading the index for the AGGR_MBR case, which might make it work better > on large tables: one for the testing range. > > I think your tuppence might be right on the money: > > - Enable ms*GetLayerExtent() to provide the "right" answer in all cases, > even if it is expensive. > - Add a ms*GetLayerExtentFast() that for the easy data sources just calls > GetLayerExtent, and for the hard data sources does whatever combination > of fast hacks and cop-outs are required. > > WMS GetCapabilities should call GetLayerExtentFast and mapscript should > call GetLayerExtent. > > Unrelated question for the gurus: does GetLayerExtent respect filters for > all data sources? > > Paul > > On 12-Jul-05, at 11:30 AM, Steve Hall wrote: > >> Thanks Paul, >> >> This all sounds very reasonable to me.... I'll keep this to myself for >> now then. >> >> I'm curious about the fact that this is implemented for Oracle which is >> performing a very similar operation (i.e a spatial aggregate, >> SDO_AGGR_MBR). Is Oracle more efficient than PostGIS in this area or is >> there a difference in approach that i'm missing...? >> >> For my two-pennorth a function like this is very useful, as it allows me >> to change the filter for a layer, and alter the map extent to match the >> extent of the "new" layer, without needing to do any "dirty" SQL on the >> back-end database manually to find the new extent. Perhaps if it can't >> / shouldn't be done via these msXXXLayerGetExtent() functions there is >> another way, or could it be listed as an enhancement? >> >> Thanks again, i'm new to the contributing side of Open Source so forgive >> my early mistakes! >> >> Steve >> >> >> >> ----- Original Message ----- From: "Paul Ramsey" >> >> To: "Steve Hall" >> Cc: ; >> Sent: Tuesday, July 12, 2005 6:09 PM >> Subject: Re: [UMN_MAPSERVER-USERS] Question re: PostGIS and MapScript >> getExtent() function >> >> >> >>> Steve, >>> >>> If you grep through the source, you'll see the calls, which are mainly >>> in the WMS code (pulling extents for capabilities). The problem is >>> that the return time for the call can be very large for very large >>> tables. Which is not really acceptable for a capabilities return. >>> Maybe it is acceptable for your application. This is the real >>> problem. We want something with very low return times (as a shapefile >>> extents call is) but we cannot get it with the extent() function, >>> because that requires a sequence scan. >>> >>> So basically, we cannot simply stick in your implementation, or we are >>> building a big obscure "gotcha" into mapserver. ("Why does it take >>> forever to return a capabilities file for my PostGIS backed WMS? >>> Everything else is fast.") >>> >>> Perhaps the folks on -DEV can return some zen wisdom on the correct >>> approach to this. >>> >>> Paul >>> >>> On 12-Jul-05, at 9:52 AM, Steve Hall wrote: >>> >>> >>>> Hi Paul, >>>> >>>> Exactly right - it definitely needs reviewing by those that know more >>>> about MapServer internals than I do. (which is most of you I >>>> expect). >>>> >>>> How is this function used my MapServer itself then? The context in >>>> which I am using it is via an explicit $layerObj->getExtent() call >>>> from PHP/MapScript, so in this respect the current implementation is >>>> not much use, but I suspect there is more to this function than just >>>> an implementation for this call. The main issue I had was that this >>>> function worked as I expected for Oracle, yet not for PostGIS, >>>> meaning I'd need some ugly code in my app to deal with the >>>> inconsistency... >>>> >>>> Anyway, i've attached my version of the function for you to take a >>>> look at. My implemenation is basically the version that was commented >>>> out, with the compilcation errors & warning resolved, added support >>>> for the FILTER expression and support for either BOX or BOX3D return >>>> clauses from PostGIS extent(). >>>> >>>> Many thanks, >>>> >>>> Steve >>>> >>>> >>>> >>>> ----- Original Message ----- From: "Paul Ramsey" >>>> >>>> To: "Steve Hall" >>>> Cc: >>>> Sent: Tuesday, July 12, 2005 3:49 PM >>>> Subject: Re: [UMN_MAPSERVER-USERS] Question re: PostGIS and MapScript >>>> getExtent() function >>>> >>>> >>>> >>>> >>>>> msPOSTGISLayerGetExtent() is potentially extremely inefficient, >>>>> depending on how it is implemented, so I would have to see your >>>>> patch to judge if it does more harm than good. It may be doing good >>>>> things for you and bad things for others. One thing it *could* do >>>>> without harm is read the wms_extent meta-parameter and use that if >>>>> it is provided by the user. There are also a few version specific >>>>> fast extent functions available in PostGIS, but they are not >>>>> guaranteed to work in all cases, at all times, correctly. >>>>> >>>>> On 12-Jul-05, at 2:58 AM, Steve Hall wrote: >>>>> >>>>> >>>>> >>>>>> Hi All, >>>>>> >>>>>> I'm using MapServer 4.6.0 with Oracle Spatial and PostGIS data >>>>>> sources via PHP/MapScript. Part of my application code looks like >>>>>> this pseudo-code : >>>>>> >>>>>> $map->setLayerFilter("ThematicData", "REQUEST_ID=121"); >>>>>> $map->zoomToLayer("ThematicData"); >>>>>> Here i'm setting a specific FILTER expression for a layer, and then >>>>>> zooming to the extent of the (now filtered) layer. I use the >>>>>> layerObj->getExtent() and then mapObj->setExtent() functions to >>>>>> achieve this behind the scenes. This works great for Oracle, the >>>>>> query is fast and makes for nice, tidy code in my application >>>>>> without the need for Oracle specific SQL statements to derive the >>>>>> new extent. >>>>>> >>>>>> However when I try this on PostGIS I just get a massive (useless) >>>>>> extent returned. Digging into the code I can see that the >>>>>> msPOSTGISLayerGetExtent() function in mappostgis.c is effectively >>>>>> doing nothing although a lot of code is commented out. >>>>>> >>>>>> Working on my local code I have re-enabled this code, fixed the >>>>>> compilation errors and changed it so that when a FILTER is applied >>>>>> to the layer this is used as part of the SQL call to PG. It seems >>>>>> to work great (from PHP/MapScript) and performance is fine and is >>>>>> really useful for me meaning I don't need to calculate the extents >>>>>> for a map myself - MapServer can supply the information in a >>>>>> generic and abstract fashion. >>>>>> >>>>>> Ideally I would like to get this code fed back into MapServer, but >>>>>> of course only if it's acceptable to you all. So, should I >>>>>> instead post this to mapserver-dev or can I pass on the new code to >>>>>> someone from here? >>>>>> >>>>>> There may be good, historical, reasons why this wasn't ever >>>>>> implemented though so please let me know! >>>>>> >>>>>> Many thanks, >>>>>> >>>>>> Steve Hall >>>>>> >>>>>> >>>>>> >>>>>> >> >> From steve.hall at MERCATORGEOSYSTEMS.CO.UK Tue Jul 12 09:52:54 2005 From: steve.hall at MERCATORGEOSYSTEMS.CO.UK (Steve Hall) Date: Tue, 12 Jul 2005 17:52:54 +0100 Subject: Question re: PostGIS and MapScript getExtent() function Message-ID: Hi Paul, Exactly right - it definitely needs reviewing by those that know more about MapServer internals than I do. (which is most of you I expect). How is this function used my MapServer itself then? The context in which I am using it is via an explicit $layerObj->getExtent() call from PHP/MapScript, so in this respect the current implementation is not much use, but I suspect there is more to this function than just an implementation for this call. The main issue I had was that this function worked as I expected for Oracle, yet not for PostGIS, meaning I'd need some ugly code in my app to deal with the inconsistency... Anyway, i've attached my version of the function for you to take a look at. My implemenation is basically the version that was commented out, with the compilcation errors & warning resolved, added support for the FILTER expression and support for either BOX or BOX3D return clauses from PostGIS extent(). Many thanks, Steve ----- Original Message ----- From: "Paul Ramsey" To: "Steve Hall" Cc: Sent: Tuesday, July 12, 2005 3:49 PM Subject: Re: [UMN_MAPSERVER-USERS] Question re: PostGIS and MapScript getExtent() function > msPOSTGISLayerGetExtent() is potentially extremely inefficient, depending > on how it is implemented, so I would have to see your patch to judge if > it does more harm than good. It may be doing good things for you and bad > things for others. One thing it *could* do without harm is read the > wms_extent meta-parameter and use that if it is provided by the user. > There are also a few version specific fast extent functions available in > PostGIS, but they are not guaranteed to work in all cases, at all times, > correctly. > > On 12-Jul-05, at 2:58 AM, Steve Hall wrote: > >> Hi All, >> >> I'm using MapServer 4.6.0 with Oracle Spatial and PostGIS data sources >> via PHP/MapScript. Part of my application code looks like this >> pseudo-code : >> >> $map->setLayerFilter("ThematicData", "REQUEST_ID=121"); >> $map->zoomToLayer("ThematicData"); >> Here i'm setting a specific FILTER expression for a layer, and then >> zooming to the extent of the (now filtered) layer. I use the >> layerObj->getExtent() and then mapObj->setExtent() functions to achieve >> this behind the scenes. This works great for Oracle, the query is fast >> and makes for nice, tidy code in my application without the need for >> Oracle specific SQL statements to derive the new extent. >> >> However when I try this on PostGIS I just get a massive (useless) extent >> returned. Digging into the code I can see that the >> msPOSTGISLayerGetExtent() function in mappostgis.c is effectively doing >> nothing although a lot of code is commented out. >> >> Working on my local code I have re-enabled this code, fixed the >> compilation errors and changed it so that when a FILTER is applied to >> the layer this is used as part of the SQL call to PG. It seems to work >> great (from PHP/MapScript) and performance is fine and is really useful >> for me meaning I don't need to calculate the extents for a map myself - >> MapServer can supply the information in a generic and abstract fashion. >> >> Ideally I would like to get this code fed back into MapServer, but of >> course only if it's acceptable to you all. So, should I instead post >> this to mapserver-dev or can I pass on the new code to someone from >> here? >> >> There may be good, historical, reasons why this wasn't ever implemented >> though so please let me know! >> >> Many thanks, >> >> Steve Hall >> >> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: msPOSTGISLayerGetExtent.c URL: From David.Fawcett at STATE.MN.US Tue Jul 12 13:14:02 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Tue, 12 Jul 2005 15:14:02 -0500 Subject: place a point in the map Message-ID: To answer my own question, OGRINFO will return an extent from a VRT ODBC connection. I used this command in the FWTools shell: C:\Program Files\FWTools0.9.6>ogrinfo c:\maps\vrttest\facilities.ovf facilities -so (the -so option provides 'summary only', adding a -ro would open the data in 'read only' mode and prevent the 'Error 4: Update access not supported...' message) Here is the data that I got back: ERROR 4: Update access not supported for VRT datasources. Had to open data source read-only. INFO: Open of `c:\cfusionmx\wwwroot\maps\vrttest\facilities.ovf' using driver `VRT' successful. Layer name: facilities Geometry: Point Feature Count: 91 Extent: (0.000000, 0.000000) - (659989.000000, 5410447.000000) Layer SRS WKT: PROJCS["WGS 84 / UTM zone 15N", GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.257223563, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0, AUTHORITY["EPSG","8901"]], UNIT["degree",0.01745329251994328, AUTHORITY["EPSG","9122"]], AUTHORITY["EPSG","4326"]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",-93], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",500000], PARAMETER["false_northing",0], UNIT["metre",1, AUTHORITY["EPSG","9001"]], AUTHORITY["EPSG","32615"]] DestFacID: String (8.0) DestFac: String (50.0) DestFacType: String (20.0) OGRINFO documentation can be found at http://www.remotesensing.org/gdal/ogr/ogrinfo.html FWTools Suite can be found at: http://fwtools.maptools.org/ Hope this helps. David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett at moea.state.mn.us 651.215.0200 -----Original Message----- From: Fawcett, David Sent: Tuesday, July 12, 2005 8:39 AM To: 'N M'; MAPSERVER-USERS at lists.umn.edu Subject: RE: [UMN_MAPSERVER-USERS] place a point in the map The EXTENT line in the MAP object sets the initial extent of your map when you start your application. How do you want your map to look when you start up? Do you want it to show the full extent of your background raster? If so, use that extent. Just make sure that UNITS matches the units used by your projection, and that either both layers are in the same projection, OR add projection information so that you can display both layers at the same time. I don't have a virtual data layer handy, so I can't quickly test it, but does anyone know if running ogrinfo on a text data source will return the extent? David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett at moea.state.mn.us 651.215.0200 -----Original Message----- From: N M [mailto:mapserver at hotmail.com] Sent: Tuesday, July 12, 2005 6:13 AM To: David.Fawcett at state.mn.us; MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] place a point in the map Hi David, I follow all steps in the information on the URL you send me, I think that DSN runs perfectly, I created the TXT database, the OVF file and I modifed my .map file with the parameters of the example. My question now is, how can I calculate the EXTENT coordinates. When I had a shapefile I used it to do it. Which could be my .map file so I could display it? Have I to change anything in my .map file so it runs? My EXTEND is the one of my old shapefile. Thank you MAP IMAGETYPE PNG EXTENT 0.000000 -205.000000 300.000000 0.000000 SIZE 585 400 SHAPEPATH "data" IMAGECOLOR 255 180 0 #PROJECTION # "proj=laea" # "ellps=clrk66" # "lat_0=45" # "lon_0=-100" # # Alternatively, you can specify an EPSG code. # "init=epsg:2163" # #END # Start of LAYER DEFINITIONS --------------------------------------------- LAYER # Capa de raster NAME mapafig DATA "raster/figueres.tif" STATUS DEFAULT TYPE RASTER PROCESSING "BANDS=1" #OFFSITE 71 74 65 #Color que ha de ser transparent #PROJECTION # "init=epsg:4326" #END END # Fi capa de raster LAYER CONNECTION "mapa21.ovf" CONNECTIONTYPE OGR DATA "prova" METADATA "wms_srs" "4326" "wms_title" "prova" END NAME "prova" SIZEUNITS PIXELS STATUS ON TOLERANCE 0 TOLERANCEUNITS PIXELS TYPE POINT UNITS METERS CLASS STYLE COLOR 0 0 0 MAXSIZE 100 MINSIZE 1 SIZE 6 SYMBOL "symbols/prova.gif" END END END # End of LAYER DEFINITIONS ------------------------------- END # end of map file >If you don't want to place your data in ESRI shapefiles or a database, you >can use a simple text file as the data source for a layer. > >If your Mapserver binary has been compiled with OGR support (quite likely), >you can use a virtual data source. Take a look at the Vector Data Access >Reference >http://ms.gis.umn.edu:8081/ms_plone/docs/reference/vector_data/VirtualSpatialData > >If you search the list archives for OGR and VRT, you will most likely find >some example map file layers. > >David. > >David Fawcett >Minnesota Office of Environmental Assistance >david.fawcett at moea.state.mn.us >651.215.0200 > > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On >Behalf Of SUBSCRIBE MAPSERVER-USERS Nuri >Sent: Monday, July 11, 2005 4:52 AM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] place a point in the map > > >Recently I managed to create my own map and placed a symbol in it from a >database. > >Now I need to place several points in the map. My database contains gps >coordinates like this: > >4216 9669 259 > >Latitude: 42? 16'N >Longitude: 258?E > >I translated this gps coordinates to UTM coordinates to obtain: > >Zone: 14 >Easting: 252608 >Norting: 4683531 > >I need to show this point in the map. > >Someone could explain my how to do it? Thank you. > >My present .map file is: > >MAP > IMAGETYPE PNG > EXTENT 0.000000 -205.000000 300.000000 0.000000 > SIZE 600 410 > SHAPEPATH "data" > IMAGECOLOR 255 180 0 > FONTSET "fonts/fonts.list" > > #PROJECTION > # "proj=laea" > # "ellps=clrk66" > # "lat_0=45" > # "lon_0=-100" > # > # Alternatively, you can specify an EPSG code. > # "init=epsg:2163" > # > #END > > # Start of LAYER DEFINITIONS >-------------------------------------------- >- > > LAYER # Capa de raster > NAME mapafig > DATA "raster/figueres.tif" > STATUS DEFAULT > TYPE RASTER > PROCESSING "BANDS=1" > #OFFSITE 71 74 65 #Color que ha de ser transparent > > #PROJECTION > # "init=epsg:4326" > #END > END # Fi capa de raster > > > > LAYER > NAME simbols > GROUP grup > STATUS DEFAULT > DATA mapa > TYPE ANNOTATION > LABELITEM "SIMB" > CLASSITEM "C" > CLASS > EXPRESSION "2" > STYLE > COLOR 0 0 0 # dummy color > SYMBOL 'symbols/prova.gif' > END > LABEL > MINFEATURESIZE 20 > MINDISTANCE 50 > POSITION CC > SIZE TINY > COLOR 255 255 255 > END > END > > PROJECTION > "init=epsg:4326" > END > END > > > > # End of LAYER DEFINITIONS ------------------------------- >END # end of map file _________________________________________________________________ Descarga gratis la Barra de Herramientas de MSN http://www.msn.es/usuario/busqueda/barra?XAPID=2031&DI=1055&SU=http%3A//www.hotmail.com&HL=LINKTAG1OPENINGTEXT_MSNBH From varun00157 at YAHOO.COM Tue Jul 12 13:42:19 2005 From: varun00157 at YAHOO.COM (pavan muthyala) Date: Tue, 12 Jul 2005 13:42:19 -0700 Subject: any one from ann arbor michigan Message-ID: Hello all, Is some one from ann arbor michigan or near by knows mapserver could help me in installing the software and building a website regards varun __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From pgiencke at GLC.ORG Tue Jul 12 14:14:58 2005 From: pgiencke at GLC.ORG (Peter Giencke) Date: Tue, 12 Jul 2005 17:14:58 -0400 Subject: any one from ann arbor michigan In-Reply-To: <20050712204219.50198.qmail@web30811.mail.mud.yahoo.com> Message-ID: Varun, I've actually just moved to Ann Arbor and can perhaps be of some assistance. -pete Pete Giencke Product Specialist Data and Information Management Great Lakes Commission _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of pavan muthyala Sent: Tuesday, July 12, 2005 4:42 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] any one from ann arbor michigan Hello all, Is some one from ann arbor michigan or near by knows mapserver could help me in installing the software and building a website regards varun __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From fsimon at UNIVALI.BR Tue Jul 12 14:42:11 2005 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Tue, 12 Jul 2005 18:42:11 -0300 Subject: Question re: PostGIS and MapScript getExtent() function In-Reply-To: <038501c58712$cba42320$520a0a0a@scorpio> Message-ID: Hi folks, I added the support for getExtent function in 4.4 version and can run using two ways: using MBR and CONVEXHULL database function. The bugs: 1136 and 1112 is related about this issue. The column DIMINFO can store the extent for the table, but it's don't guarantee that it is the real extent, in many cases it's store: +180, -180, -90 and +90. So, when an user apply a filter or any restriction this values can be very wrong. Of course that I can use this for a fast extent, but it's not guarantee that it's real, many users can report in the future that the extents it is not real.... The MBR function can be very slow when the table store many data, I needed to use it for 9i version and geodetic values. Convexhull function is more fast, but cannot be apply for 9i version. I used these functions because an user can change a layer filter and call the getextent function without need to change the data parameter for the layer. The performance is very good for the most requests, and increase with a good spatial index. The idea about the fast extent is very nice, more hints for this issue? Only for WMS, like Paul suggest? What is the impact for this change in the others Mapserv modules? Hints? Thanks again. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://g10.cttmar.univali.br - UNIVALI/CTTMAR ------------------------------------------------------------------------ Steve Hall wrote: > In my experience with Oracle it too can be pretty slow getting an MBR > on a table that big ;-) > > I don't know much about other data sources, but Oracle's spatial > metadata registry (USER_SDO_GEOM_METADATA) does maintain layer extent > data in the DIMINFO column so could be retrieved without needing to > perform a spatial aggregate, and hence would be a suitable candidate > for the *Fast function you descibe here. > > Like you say PostGIS also has a couple of choices in this area. > > I guess by definition the *Fast functions would just ignore, (or > fail?) if a filter was specified...? Or perhaps if a filter is > specified, the *Fast functions could call the non-Fast functions to > get the answer in the (blind?) hope that the filter makes them > sufficiently performant. > > Thanks, > > Steve > > > ----- Original Message ----- From: "Paul Ramsey" > > To: "Steve Hall" > Cc: ; > Sent: Tuesday, July 12, 2005 7:37 PM > Subject: Re: [UMN_MAPSERVER-USERS] Question re: PostGIS and MapScript > getExtent() function > > >> Steve, >> >> Try it on a 20M record table in Oracle. Both implementations, >> Oracle's and your uncommented PostGIS one, do the same functional >> thing, which is a full table scan. It is possible that Oracle is >> slightly smarter about reading the index for the AGGR_MBR case, >> which might make it work better on large tables: one for the testing >> range. >> >> I think your tuppence might be right on the money: >> >> - Enable ms*GetLayerExtent() to provide the "right" answer in all >> cases, even if it is expensive. >> - Add a ms*GetLayerExtentFast() that for the easy data sources just >> calls GetLayerExtent, and for the hard data sources does whatever >> combination of fast hacks and cop-outs are required. >> >> WMS GetCapabilities should call GetLayerExtentFast and mapscript >> should call GetLayerExtent. >> >> Unrelated question for the gurus: does GetLayerExtent respect >> filters for all data sources? >> >> Paul >> >> On 12-Jul-05, at 11:30 AM, Steve Hall wrote: >> >>> Thanks Paul, >>> >>> This all sounds very reasonable to me.... I'll keep this to myself >>> for now then. >>> >>> I'm curious about the fact that this is implemented for Oracle >>> which is performing a very similar operation (i.e a spatial >>> aggregate, SDO_AGGR_MBR). Is Oracle more efficient than PostGIS in >>> this area or is there a difference in approach that i'm missing...? >>> >>> For my two-pennorth a function like this is very useful, as it >>> allows me to change the filter for a layer, and alter the map >>> extent to match the extent of the "new" layer, without needing to >>> do any "dirty" SQL on the back-end database manually to find the >>> new extent. Perhaps if it can't / shouldn't be done via these >>> msXXXLayerGetExtent() functions there is another way, or could it >>> be listed as an enhancement? >>> >>> Thanks again, i'm new to the contributing side of Open Source so >>> forgive my early mistakes! >>> >>> Steve >>> >>> >>> >>> ----- Original Message ----- From: "Paul Ramsey" >>> >>> To: "Steve Hall" >>> Cc: ; >>> Sent: Tuesday, July 12, 2005 6:09 PM >>> Subject: Re: [UMN_MAPSERVER-USERS] Question re: PostGIS and >>> MapScript getExtent() function >>> >>> >>> >>>> Steve, >>>> >>>> If you grep through the source, you'll see the calls, which are >>>> mainly in the WMS code (pulling extents for capabilities). The >>>> problem is that the return time for the call can be very large >>>> for very large tables. Which is not really acceptable for a >>>> capabilities return. Maybe it is acceptable for your >>>> application. This is the real problem. We want something with >>>> very low return times (as a shapefile extents call is) but we >>>> cannot get it with the extent() function, because that requires a >>>> sequence scan. >>>> >>>> So basically, we cannot simply stick in your implementation, or >>>> we are building a big obscure "gotcha" into mapserver. ("Why does >>>> it take forever to return a capabilities file for my PostGIS >>>> backed WMS? Everything else is fast.") >>>> >>>> Perhaps the folks on -DEV can return some zen wisdom on the >>>> correct approach to this. >>>> >>>> Paul >>>> >>>> On 12-Jul-05, at 9:52 AM, Steve Hall wrote: >>>> >>>> >>>>> Hi Paul, >>>>> >>>>> Exactly right - it definitely needs reviewing by those that know >>>>> more about MapServer internals than I do. (which is most of you >>>>> I expect). >>>>> >>>>> How is this function used my MapServer itself then? The context >>>>> in which I am using it is via an explicit $layerObj->getExtent() >>>>> call from PHP/MapScript, so in this respect the current >>>>> implementation is not much use, but I suspect there is more to >>>>> this function than just an implementation for this call. The >>>>> main issue I had was that this function worked as I expected for >>>>> Oracle, yet not for PostGIS, meaning I'd need some ugly code in >>>>> my app to deal with the inconsistency... >>>>> >>>>> Anyway, i've attached my version of the function for you to take >>>>> a look at. My implemenation is basically the version that was >>>>> commented out, with the compilcation errors & warning resolved, >>>>> added support for the FILTER expression and support for either >>>>> BOX or BOX3D return clauses from PostGIS extent(). >>>>> >>>>> Many thanks, >>>>> >>>>> Steve >>>>> >>>>> >>>>> >>>>> ----- Original Message ----- From: "Paul Ramsey" >>>>> >>>>> To: "Steve Hall" >>>>> Cc: >>>>> Sent: Tuesday, July 12, 2005 3:49 PM >>>>> Subject: Re: [UMN_MAPSERVER-USERS] Question re: PostGIS and >>>>> MapScript getExtent() function >>>>> >>>>> >>>>> >>>>> >>>>>> msPOSTGISLayerGetExtent() is potentially extremely inefficient, >>>>>> depending on how it is implemented, so I would have to see your >>>>>> patch to judge if it does more harm than good. It may be doing >>>>>> good things for you and bad things for others. One thing it >>>>>> *could* do without harm is read the wms_extent meta-parameter >>>>>> and use that if it is provided by the user. There are also a >>>>>> few version specific fast extent functions available in >>>>>> PostGIS, but they are not guaranteed to work in all cases, at >>>>>> all times, correctly. >>>>>> >>>>>> On 12-Jul-05, at 2:58 AM, Steve Hall wrote: >>>>>> >>>>>> >>>>>> >>>>>>> Hi All, >>>>>>> >>>>>>> I'm using MapServer 4.6.0 with Oracle Spatial and PostGIS data >>>>>>> sources via PHP/MapScript. Part of my application code looks >>>>>>> like this pseudo-code : >>>>>>> >>>>>>> $map->setLayerFilter("ThematicData", "REQUEST_ID=121"); >>>>>>> $map->zoomToLayer("ThematicData"); >>>>>>> Here i'm setting a specific FILTER expression for a layer, and >>>>>>> then zooming to the extent of the (now filtered) layer. I use >>>>>>> the layerObj->getExtent() and then mapObj->setExtent() >>>>>>> functions to achieve this behind the scenes. This works great >>>>>>> for Oracle, the query is fast and makes for nice, tidy code in >>>>>>> my application without the need for Oracle specific SQL >>>>>>> statements to derive the new extent. >>>>>>> >>>>>>> However when I try this on PostGIS I just get a massive >>>>>>> (useless) extent returned. Digging into the code I can see >>>>>>> that the msPOSTGISLayerGetExtent() function in mappostgis.c >>>>>>> is effectively doing nothing although a lot of code is >>>>>>> commented out. >>>>>>> >>>>>>> Working on my local code I have re-enabled this code, fixed the >>>>>>> compilation errors and changed it so that when a FILTER is >>>>>>> applied to the layer this is used as part of the SQL call to >>>>>>> PG. It seems to work great (from PHP/MapScript) and >>>>>>> performance is fine and is really useful for me meaning I >>>>>>> don't need to calculate the extents for a map myself - >>>>>>> MapServer can supply the information in a generic and abstract >>>>>>> fashion. >>>>>>> >>>>>>> Ideally I would like to get this code fed back into MapServer, >>>>>>> but of course only if it's acceptable to you all. So, should >>>>>>> I instead post this to mapserver-dev or can I pass on the new >>>>>>> code to someone from here? >>>>>>> >>>>>>> There may be good, historical, reasons why this wasn't ever >>>>>>> implemented though so please let me know! >>>>>>> >>>>>>> Many thanks, >>>>>>> >>>>>>> Steve Hall >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>> >>> > From steve.hall at MERCATORGEOSYSTEMS.CO.UK Tue Jul 12 15:11:12 2005 From: steve.hall at MERCATORGEOSYSTEMS.CO.UK (Steve Hall) Date: Tue, 12 Jul 2005 23:11:12 +0100 Subject: Question re: PostGIS and MapScript getExtent() function Message-ID: Hi, It sounds like for Oracle adding the "Fast" option is pretty easy - read the metadata table and return that (with the caveat described below that it's only as good as the metadata used to create the layer in Oracle in the first place). As Fernando points out this can be wrong - it is not validated by Oracle in anyway. The Oracle "shp2sdo" tool however will populate the table correctly so any loads based on Shape files should (to begin with anyway!) have correct values. I guess the easiest way to do this is to add "Fast" functions for all data sources, which, to begin with at least, could simply call the existing implementations (i.e the new ms*LayerGetExtentFast() simply calls the current ms*LayerGetExtent(). For Oracle and PostGIS though the Fast and "non-Fast" functions would have significantly different implementations re: what we've discussed. I know nothing about the WMS code but I would guess that could be changed pretty easily to call the new *Fast functions without fear of breakage, as to begin with all they would do is call the existing implementations.... Would the *Fast functions need to be exposed to MapScript in anyway or would they really only be useful in a WMS context? Steve ----- Original Message ----- From: "Fernando Simon" To: "Steve Hall" Cc: ; Sent: Tuesday, July 12, 2005 10:42 PM Subject: Re: [UMN_MAPSERVER-USERS] Question re: PostGIS and MapScript getExtent() function > Hi folks, > I added the support for getExtent function in 4.4 version and can run > using two ways: using MBR and CONVEXHULL database function. The bugs: 1136 > and 1112 is related about this issue. > The column DIMINFO can store the extent for the table, but it's don't > guarantee that it is the real extent, in many cases it's store: > +180, -180, -90 and +90. So, when an user apply a filter or any > restriction this values can be very wrong. Of course that I can use this > for a fast extent, but it's not guarantee that it's real, many users can > report in the future that the extents it is not real.... > The MBR function can be very slow when the table store many data, I > needed to use it for 9i version and geodetic values. Convexhull function > is more fast, but cannot be apply for 9i version. I used these functions > because an user can change a layer filter and call the getextent function > without need to change the data parameter for the layer. The performance > is very good for the most requests, and increase with a good spatial > index. > The idea about the fast extent is very nice, more hints for this issue? > Only for WMS, like Paul suggest? What is the impact for this change in the > others Mapserv modules? Hints? > Thanks again. > > ------------------------------------------------------------------------ > Fernando Simon > Mapserver and Oracle Spatial developer > G10 - Laboratorio de Computacao Aplicada - Brazil > http://g10.cttmar.univali.br - UNIVALI/CTTMAR > ------------------------------------------------------------------------ > > > Steve Hall wrote: > >> In my experience with Oracle it too can be pretty slow getting an MBR on >> a table that big ;-) >> >> I don't know much about other data sources, but Oracle's spatial metadata >> registry (USER_SDO_GEOM_METADATA) does maintain layer extent data in the >> DIMINFO column so could be retrieved without needing to perform a spatial >> aggregate, and hence would be a suitable candidate for the *Fast function >> you descibe here. >> >> Like you say PostGIS also has a couple of choices in this area. >> >> I guess by definition the *Fast functions would just ignore, (or fail?) >> if a filter was specified...? Or perhaps if a filter is specified, the >> *Fast functions could call the non-Fast functions to get the answer in >> the (blind?) hope that the filter makes them sufficiently performant. >> >> Thanks, >> >> Steve >> >> >> ----- Original Message ----- From: "Paul Ramsey" >> >> To: "Steve Hall" >> Cc: ; >> Sent: Tuesday, July 12, 2005 7:37 PM >> Subject: Re: [UMN_MAPSERVER-USERS] Question re: PostGIS and MapScript >> getExtent() function >> >> >>> Steve, >>> >>> Try it on a 20M record table in Oracle. Both implementations, Oracle's >>> and your uncommented PostGIS one, do the same functional thing, which >>> is a full table scan. It is possible that Oracle is slightly smarter >>> about reading the index for the AGGR_MBR case, which might make it work >>> better on large tables: one for the testing range. >>> >>> I think your tuppence might be right on the money: >>> >>> - Enable ms*GetLayerExtent() to provide the "right" answer in all >>> cases, even if it is expensive. >>> - Add a ms*GetLayerExtentFast() that for the easy data sources just >>> calls GetLayerExtent, and for the hard data sources does whatever >>> combination of fast hacks and cop-outs are required. >>> >>> WMS GetCapabilities should call GetLayerExtentFast and mapscript should >>> call GetLayerExtent. >>> >>> Unrelated question for the gurus: does GetLayerExtent respect filters >>> for all data sources? >>> >>> Paul >>> >>> On 12-Jul-05, at 11:30 AM, Steve Hall wrote: >>> >>>> Thanks Paul, >>>> >>>> This all sounds very reasonable to me.... I'll keep this to myself >>>> for now then. >>>> >>>> I'm curious about the fact that this is implemented for Oracle which >>>> is performing a very similar operation (i.e a spatial aggregate, >>>> SDO_AGGR_MBR). Is Oracle more efficient than PostGIS in this area or >>>> is there a difference in approach that i'm missing...? >>>> >>>> For my two-pennorth a function like this is very useful, as it allows >>>> me to change the filter for a layer, and alter the map extent to match >>>> the extent of the "new" layer, without needing to do any "dirty" SQL >>>> on the back-end database manually to find the new extent. Perhaps if >>>> it can't / shouldn't be done via these msXXXLayerGetExtent() functions >>>> there is another way, or could it be listed as an enhancement? >>>> >>>> Thanks again, i'm new to the contributing side of Open Source so >>>> forgive my early mistakes! >>>> >>>> Steve >>>> >>>> >>>> >>>> ----- Original Message ----- From: "Paul Ramsey" >>>> >>>> To: "Steve Hall" >>>> Cc: ; >>>> Sent: Tuesday, July 12, 2005 6:09 PM >>>> Subject: Re: [UMN_MAPSERVER-USERS] Question re: PostGIS and MapScript >>>> getExtent() function >>>> >>>> >>>> >>>>> Steve, >>>>> >>>>> If you grep through the source, you'll see the calls, which are >>>>> mainly in the WMS code (pulling extents for capabilities). The >>>>> problem is that the return time for the call can be very large for >>>>> very large tables. Which is not really acceptable for a capabilities >>>>> return. Maybe it is acceptable for your application. This is the >>>>> real problem. We want something with very low return times (as a >>>>> shapefile extents call is) but we cannot get it with the extent() >>>>> function, because that requires a sequence scan. >>>>> >>>>> So basically, we cannot simply stick in your implementation, or we >>>>> are building a big obscure "gotcha" into mapserver. ("Why does it >>>>> take forever to return a capabilities file for my PostGIS backed WMS? >>>>> Everything else is fast.") >>>>> >>>>> Perhaps the folks on -DEV can return some zen wisdom on the correct >>>>> approach to this. >>>>> >>>>> Paul >>>>> >>>>> On 12-Jul-05, at 9:52 AM, Steve Hall wrote: >>>>> >>>>> >>>>>> Hi Paul, >>>>>> >>>>>> Exactly right - it definitely needs reviewing by those that know >>>>>> more about MapServer internals than I do. (which is most of you I >>>>>> expect). >>>>>> >>>>>> How is this function used my MapServer itself then? The context in >>>>>> which I am using it is via an explicit $layerObj->getExtent() call >>>>>> from PHP/MapScript, so in this respect the current implementation >>>>>> is not much use, but I suspect there is more to this function than >>>>>> just an implementation for this call. The main issue I had was >>>>>> that this function worked as I expected for Oracle, yet not for >>>>>> PostGIS, meaning I'd need some ugly code in my app to deal with the >>>>>> inconsistency... >>>>>> >>>>>> Anyway, i've attached my version of the function for you to take a >>>>>> look at. My implemenation is basically the version that was >>>>>> commented out, with the compilcation errors & warning resolved, >>>>>> added support for the FILTER expression and support for either BOX >>>>>> or BOX3D return clauses from PostGIS extent(). >>>>>> >>>>>> Many thanks, >>>>>> >>>>>> Steve >>>>>> >>>>>> >>>>>> >>>>>> ----- Original Message ----- From: "Paul Ramsey" >>>>>> >>>>>> To: "Steve Hall" >>>>>> Cc: >>>>>> Sent: Tuesday, July 12, 2005 3:49 PM >>>>>> Subject: Re: [UMN_MAPSERVER-USERS] Question re: PostGIS and >>>>>> MapScript getExtent() function >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> msPOSTGISLayerGetExtent() is potentially extremely inefficient, >>>>>>> depending on how it is implemented, so I would have to see your >>>>>>> patch to judge if it does more harm than good. It may be doing >>>>>>> good things for you and bad things for others. One thing it >>>>>>> *could* do without harm is read the wms_extent meta-parameter and >>>>>>> use that if it is provided by the user. There are also a few >>>>>>> version specific fast extent functions available in PostGIS, but >>>>>>> they are not guaranteed to work in all cases, at all times, >>>>>>> correctly. >>>>>>> >>>>>>> On 12-Jul-05, at 2:58 AM, Steve Hall wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>>> Hi All, >>>>>>>> >>>>>>>> I'm using MapServer 4.6.0 with Oracle Spatial and PostGIS data >>>>>>>> sources via PHP/MapScript. Part of my application code looks >>>>>>>> like this pseudo-code : >>>>>>>> >>>>>>>> $map->setLayerFilter("ThematicData", "REQUEST_ID=121"); >>>>>>>> $map->zoomToLayer("ThematicData"); >>>>>>>> Here i'm setting a specific FILTER expression for a layer, and >>>>>>>> then zooming to the extent of the (now filtered) layer. I use >>>>>>>> the layerObj->getExtent() and then mapObj->setExtent() functions >>>>>>>> to achieve this behind the scenes. This works great for Oracle, >>>>>>>> the query is fast and makes for nice, tidy code in my application >>>>>>>> without the need for Oracle specific SQL statements to derive the >>>>>>>> new extent. >>>>>>>> >>>>>>>> However when I try this on PostGIS I just get a massive (useless) >>>>>>>> extent returned. Digging into the code I can see that the >>>>>>>> msPOSTGISLayerGetExtent() function in mappostgis.c is effectively >>>>>>>> doing nothing although a lot of code is commented out. >>>>>>>> >>>>>>>> Working on my local code I have re-enabled this code, fixed the >>>>>>>> compilation errors and changed it so that when a FILTER is >>>>>>>> applied to the layer this is used as part of the SQL call to PG. >>>>>>>> It seems to work great (from PHP/MapScript) and performance is >>>>>>>> fine and is really useful for me meaning I don't need to >>>>>>>> calculate the extents for a map myself - MapServer can supply the >>>>>>>> information in a generic and abstract fashion. >>>>>>>> >>>>>>>> Ideally I would like to get this code fed back into MapServer, >>>>>>>> but of course only if it's acceptable to you all. So, should I >>>>>>>> instead post this to mapserver-dev or can I pass on the new code >>>>>>>> to someone from here? >>>>>>>> >>>>>>>> There may be good, historical, reasons why this wasn't ever >>>>>>>> implemented though so please let me know! >>>>>>>> >>>>>>>> Many thanks, >>>>>>>> >>>>>>>> Steve Hall >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>> >>>> >> > From steve.lime at DNR.STATE.MN.US Tue Jul 12 15:32:02 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 12 Jul 2005 17:32:02 -0500 Subject: client-side image map Message-ID: David: I've not used the IMAGEMAP driver so I don't know how flexible it is. You might need to use MapServer queries and the [shpxy] tag. With that approach you get access to all attributes (plus joins) and the spatial data. You can build image maps. GML, SVG or whatever. The approach is to do a MapServer query of the CGI (e.g. get all firestations for a particular extent) and build the page from templates. Here's an SVG example: http://noah.dnr.state.mn.us/cgi-bin/mapserv46?map=/usr/local/www/docs_maps/testing/svg/test.map&qlayer=county&qitem=cty_name&qstring=/./&mode=itemnquery Templates are at: http://noah.dnr.state.mn.us/testing/svg/ The example outputs coordinates as UTM coordinates with no decimals, but you can also output data with respect to an image. Steve >>> "Hunter, David - St. Louis Park, MN" 07/12/05 12:42 PM >>> I'd like to add a client-side image map for a layer of point features. I found the documentation for this in the wiki, and it basically works, except the '%s' variable gets replaced with the layer name. How can I write out the contents of a field, for instance each point's name, instead of the layer name? This is line from the output: This is what my .map file looks like: MAP OUTPUTFORMAT NAME imagemap DRIVER imagemap MIMETYPE "text/html" FORMATOPTION "SYMBOLHREF=alert('%s');" FORMATOPTION "MAPNAME=stations" FORMATOPTION "SYMBOLMOUSEOUT=return nd();" FORMATOPTION "SYMBOLMOUSEOVER=return overlib('%s');" END EXTENT -80.2204 35.8442 -79.7739 36.1308 SIZE 670 536 UNITS DD PROJECTION "init=epsg:4267" END # fire stations LAYER NAME "FireStations" CONNECTIONTYPE OGR CONNECTION "FD/NC0505AFS.tab" STATUS DEFAULT TYPE POINT PROJECTION "init=epsg:4267" END CLASS COLOR 0 0 0 END END END David S. Hunter Sr. Software Engineer Fidelity National Geographic Solutions division of Fidelity National Financial 5353 Gamble Drive, Suite 201 St. Louis Park, MN 55416 * Email: david.hunter at fnf.com ' Phone: 952.542.1440 ext. 256 * Fax: 952.542.3859 From Tom.Kralidis at EC.GC.CA Tue Jul 12 17:18:49 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Tue, 12 Jul 2005 20:18:49 -0400 Subject: MySQL integration Message-ID: We have compiled MapServer with --with-mygis support (MySQL 4.1), and are trying to add some data from MySQL tables. The data was loaded using libmygis (http://jcole.us/software/libmygis/). Can MapServer interact with data loaded in MySQL in this manner? I tried running a few tests with shp2img but was met with segfaults as well as "bad query" statements as I fiddled around (mapfile syntax based on info at: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MySQL. Any advice or info would be much appreciated. Thanks ..Tom From jacob.delfos at MAUNSELL.COM Tue Jul 12 17:40:21 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Wed, 13 Jul 2005 08:40:21 +0800 Subject: Apache on Port 81 Message-ID: Hi Leopold, In the default configuration file if Apache, that sits around line 120. It should say something like: Listen 12.34.56.78:80 So change the port to 81. e.g.: listen 12.34.56.78:81 or listen 81 regards, Jacob -------------------------------------------------------------------------------- From: Leopold Schefcik (MULTIMEDIAPLAN.AT) [mailto:leopold.schefcik at multimediaplan.at] Sent: 12 July 2005 17:17 To: Jacob Delfos Subject: AW: [UMN_MAPSERVER-USERS] Apache on Port 81 hi Jacob, thank you for you comment. How can I configure the apache server to listen on port 81? I tried to change the files httpd.conf and httpd.default.conf Apache/conf/. but this doesn?t seems correct...!? Leop. -----Urspr?ngliche Nachricht----- Von: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Im Auftrag von Jacob Delfos Gesendet: Dienstag, 12. Juli 2005 10:34 An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] Apache on Port 81 Hi Leopold, Should work fine, as long as you make sure all absolute links point to port 80 (http://localhost:80/.....), so best to use relative links whereever possible, so you don't have to hardcode the port. But be aware that many users may not have access to port 81 (because often company firewalls are set to block all non-standard ports). regards, Jacob -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Leopold Schefcik (MULTIMEDIAPLAN.AT) Sent: 12 July 2005 16:30 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Apache on Port 81 hi list! My ms4w is running on my local computer. Now I want to install it on the windows server there on port 80 is an IIS installed I copyed the ms4w directory with e.g. C:/ms4w/apache/... and C:/ms4w/apache-install.bat) on the server and startet the apache-install.bat. But with http://localhost I don?t get the ms4w starting page, but the iis start page. So I tried to switch in Apache/conf/ in the files httpd.conf and httpd.default.conf all 80 to 81. But local nothing changed. How can I get my ms4w starting page running? greatings, Leopold -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at EC.GC.CA Tue Jul 12 18:32:10 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Tue, 12 Jul 2005 21:32:10 -0400 Subject: perl mapscript error Message-ID: Hi, I've been trying to install mapscript for Perl from latest CVS on a Fedora box. Note that mapscript/perl/README provides swig command: $ swig -perl5 -shadow -outdir . -o mapscript_wrap.c ../mapscript.i -outdir is not a valid flag (swig 1.3.19) ...so I removed it and ran: $ swig -perl5 -shadow -o mapscript_wrap.c ../mapscript.i ..and things worked. Now, when I try to run a Perl script, I get errors: $ perl -Mmapscript -e 'print "hi"\n' Can't load '/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/auto/mapscript/m apscript.so' for module mapscript: libpq.so.3: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.3/i386-linux-thread-multi/DynaLoader.pm line 229. at /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/mapscript.pm line 7 Compilation failed in require. BEGIN failed--compilation aborted. My system does not have a libpq.so.3, but I have libpq* in: /usr/local/pgsql/lib/libpq.so.4 /usr/local/pgsql/lib/libpq.a /usr/local/pgsql/lib/libpq.so.4.0 /usr/local/pgsql/lib/libpq.so /usr/local/lib/libpq.a /usr/local/lib/libpq.so.4.0 /usr/local/lib/libpq.so /usr/local/lib/libpq.so.4 Any suggestions? Thanks ..Tom From Tom.Kralidis at EC.GC.CA Tue Jul 12 18:46:39 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Tue, 12 Jul 2005 21:46:39 -0400 Subject: perl mapscript error Message-ID: Duh! I forgot to run make install after perl Makefile.PL && make. The old mapscript was built off an older (since removed) libpq. Sorry for the fuss. Must go for drink now. ..Tom > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of > Kralidis,Tom [Burlington] > Sent: Tuesday, 12 July, 2005 21:32 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] perl mapscript error > > > Hi, > > I've been trying to install mapscript for Perl from latest > CVS on a Fedora box. > > Note that mapscript/perl/README provides swig command: > > $ swig -perl5 -shadow -outdir . -o mapscript_wrap.c ../mapscript.i > > -outdir is not a valid flag (swig 1.3.19) > > ...so I removed it and ran: > > $ swig -perl5 -shadow -o mapscript_wrap.c ../mapscript.i > > ..and things worked. Now, when I try to run a Perl script, I get > errors: > > $ perl -Mmapscript -e 'print "hi"\n' > Can't load > '/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/auto/m > apscript/m > apscript.so' for module mapscript: libpq.so.3: cannot open > shared object > file: No such file or directory at > /usr/lib/perl5/5.8.3/i386-linux-thread-multi/DynaLoader.pm > line 229. at > /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/mapscript.pm > line 7 > Compilation failed in require. > BEGIN failed--compilation aborted. > > My system does not have a libpq.so.3, but I have libpq* in: > > /usr/local/pgsql/lib/libpq.so.4 > /usr/local/pgsql/lib/libpq.a /usr/local/pgsql/lib/libpq.so.4.0 > /usr/local/pgsql/lib/libpq.so > /usr/local/lib/libpq.a > /usr/local/lib/libpq.so.4.0 > /usr/local/lib/libpq.so > /usr/local/lib/libpq.so.4 > > Any suggestions? > > Thanks > > ..Tom > From sc0rp10nau at YAHOO.COM.AU Tue Jul 12 19:43:27 2005 From: sc0rp10nau at YAHOO.COM.AU (a j) Date: Wed, 13 Jul 2005 12:43:27 +1000 Subject: Displaying Point on the Map if Co-ordinates are send by user ??? In-Reply-To: <20050712164822.22918.qmail@web30709.mail.mud.yahoo.com> Message-ID: FROM RANDY... --- Randy James wrote: > I am using a html form to input data into a postgis > database. It seems to work > pretty good, the user just puts in utm corridinates > and i use a sql statement to > instert it into the database. > > Randy > > --- Ajay Ranipeta wrote: > > > Hi Mann, > > > > You can choose to do either. This has been > previously answered on the LIST, > > so just search the archives. But to start you off, > here is a link to the > > MapServer CGI doc, where you can add a few move > name/value pairs to the url > > and create a point on the map. > > > > > http://mapserver.gis.umn.edu/doc44/cgi-reference.html#mapfileURL > > > > Basically, you need an acetate (a dummy) layer > with its STATUS OFF. Then > > from the url, just create a new feature point and > mapserver will draw it on > > the map for you. > > > > You can also achieve this with PHP Mapscript, but > that'll take you more coding. > > > > hth. > > > > cheers, > > Ajay > > > > > > On Mon, 11 Jul 2005 18:46:41 -0700, Mandar > sarlashkar > > wrote: > > > > >Dear All ! > > > > > >If User sends the co-ordinates - is it possible > to display the Position as > > a point on the Map. > > > > > >Is it possible through CGI implementation of > Mapserver ? > > > > > > or > > > > > >Is it possible, Using PHP MapScript ??? > > > > > >I have just started getting an idea of how > Mapserver works. The task might > > be accomplished very easily or the question might > be stupid but its very > > important for me... > > > > > >Thanking you in advance. > > > > > >Mann > > > > > > > > > > > >--------------------------------- > > > Sell on Yahoo! Auctions - No fees. Bid on great > items. > > > > > > > ____________________________________________________ > Sell on Yahoo! Auctions ? no fees. Bid on great > items. > http://auctions.yahoo.com/ > Send instant messages to your online friends http://au.messenger.yahoo.com From sgillies at FRII.COM Tue Jul 12 19:46:12 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 12 Jul 2005 20:46:12 -0600 Subject: perl mapscript error In-Reply-To: Message-ID: Tom, We're using swig 1.3.21 to generate wrappers for the releases, you might want to consider an upgrade. Sean On Jul 12, 2005, at 7:46 PM, Kralidis,Tom [Burlington] wrote: > Duh! I forgot to run make install after perl Makefile.PL && make. The > old mapscript was built off an older (since removed) libpq. > > Sorry for the fuss. Must go for drink now. > > ..Tom > > >> -----Original Message----- >> From: UMN MapServer Users List >> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of=20 >> Kralidis,Tom [Burlington] >> Sent: Tuesday, 12 July, 2005 21:32 >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: [UMN_MAPSERVER-USERS] perl mapscript error >> =20 >> =20 >> Hi, >> =20 >> I've been trying to install mapscript for Perl from latest >> CVS on a Fedora box. >> =20 >> Note that mapscript/perl/README provides swig command: >> =20 >> $ swig -perl5 -shadow -outdir . -o mapscript_wrap.c ../mapscript.i >> =20 >> -outdir is not a valid flag (swig 1.3.19) >> =20 >> ...so I removed it and ran: >> =20 >> $ swig -perl5 -shadow -o mapscript_wrap.c ../mapscript.i >> =20 >> ..and things worked. Now, when I try to run a Perl script, I get >> errors: >> =20 >> $ perl -Mmapscript -e 'print "hi"\n' >> Can't load >> '/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/auto/m >> apscript/m >> apscript.so' for module mapscript: libpq.so.3: cannot open=20 >> shared object >> file: No such file or directory at=20 >> /usr/lib/perl5/5.8.3/i386-linux-thread-multi/DynaLoader.pm=20 >> line 229. at=20 >> /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/mapscript.pm >> line 7 >> Compilation failed in require. >> BEGIN failed--compilation aborted. >> =20 >> My system does not have a libpq.so.3, but I have libpq* in: >> =20 >> /usr/local/pgsql/lib/libpq.so.4 >> /usr/local/pgsql/lib/libpq.a /usr/local/pgsql/lib/libpq.so.4.0 >> /usr/local/pgsql/lib/libpq.so >> /usr/local/lib/libpq.a >> /usr/local/lib/libpq.so.4.0 >> /usr/local/lib/libpq.so >> /usr/local/lib/libpq.so.4 >> =20 >> Any suggestions? >> =20 >> Thanks >> =20 >> ..Tom >> =20 > From abe.gillespie at GMAIL.COM Tue Jul 12 20:05:05 2005 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Tue, 12 Jul 2005 23:05:05 -0400 Subject: Closest Feature Query Message-ID: Is there an easy way to query for the closest feature to another feature. Take for example the classic "closest ATM" query. I know where I'm at (an address point or building feature) and want the closest ATM. Can I avoid having to create a line to each ATM point from the starting point, comparing the length of each line, and keeping the shortest? Thanks. -Abe From steve.lime at DNR.STATE.MN.US Tue Jul 12 22:04:27 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 13 Jul 2005 00:04:27 -0500 Subject: Closest Feature Query Message-ID: The normal MapServer query will do this but only using "as the crow flies" distances. You use the layer tolerance to set a maximum distance. If you need to need to compute distances along an established route then that's a different story and is not something MapServer can do out of the box. Steve >>> Abe Gillespie 07/12/05 10:05 PM >>> Is there an easy way to query for the closest feature to another feature. Take for example the classic "closest ATM" query. I know where I'm at (an address point or building feature) and want the closest ATM. Can I avoid having to create a line to each ATM point from the starting point, comparing the length of each line, and keeping the shortest? Thanks. -Abe From higon_jos at GVA.ES Tue Jul 12 21:32:10 2005 From: higon_jos at GVA.ES (=?ISO-8859-1?Q?Jos=E9_Vicente_Hig=F3n_Valero?=) Date: Wed, 13 Jul 2005 06:32:10 +0200 Subject: WCS: red image when resx is different resy Message-ID: Hi Norman, I have downloaded the patch and recompiled mapserver with the new mapresample.c and now works well! Thanks. -- Jos? Vicente Hig?n gvSIG development Team Conselleria de Infraestructuras y Transporte Generalitat Valenciana Valencia - Spain tlf. 963862397 http://www.gvsig.gva.es From mapserver at HOTMAIL.COM Wed Jul 13 00:23:26 2005 From: mapserver at HOTMAIL.COM (N M) Date: Wed, 13 Jul 2005 07:23:26 +0000 Subject: place a point in the map In-Reply-To: Message-ID: Hi David, I know I'm doing something wrong but I don't know what. I created my DSN link named mapa21 to my database file with controller Microsoft Text Driver (*.txt; *.cvs) (I think it is the correct one) My database file mapa21.txt contains: unknown,na,id,id2,mark,coalkey,coalkey2,long,lat 0.000,0.000,1,1,7,87,87,76.90238,51.07161 0.000,0.000,2,2,7,110,110,78.53851,50.69403 0.000,0.000,3,3,3,112,112,83.22586,71.24420 0.000,0.000,4,4,6,114,114,80.79896,73.41175 My file mapa21.ovf is: ODBC:mapa21 mapa21.txt wkbPoint Then I execute ogrinfo d:\webserver\mapserver2\mapa21.ovf -so And the result is: ERROR 4: Update access not supported for VRT datasources. ERROR 1: Unable to identify source X or Y field for PointFromColumns encoding. FAILURE: Unable to open datasource `d:\webserver\mapserver2\mapa21.ovf' with the following drivers. -> ESRI Shapefile -> UK .NTF -> SDTS -> TIGER -> S57 -> MapInfo File -> DGN -> VRT -> AVCBin -> REC -> Memory -> CSV -> GML -> SQLite -> ODBC -> OGDI -> PostgreSQL -> FMEObjects Gateway What am I doing wrong? Thank you for your help. Nuri > >To answer my own question, OGRINFO will return an extent from a VRT ODBC >connection. > >I used this command in the FWTools shell: > >C:\Program Files\FWTools0.9.6>ogrinfo c:\maps\vrttest\facilities.ovf >facilities -so > >(the -so option provides 'summary only', adding a -ro would open the data >in 'read only' mode and prevent the 'Error 4: Update access not >supported...' message) > >Here is the data that I got back: > >ERROR 4: Update access not supported for VRT datasources. >Had to open data source read-only. >INFO: Open of `c:\cfusionmx\wwwroot\maps\vrttest\facilities.ovf' >using driver `VRT' successful. > >Layer name: facilities >Geometry: Point >Feature Count: 91 >Extent: (0.000000, 0.000000) - (659989.000000, 5410447.000000) >Layer SRS WKT: >PROJCS["WGS 84 / UTM zone 15N", > GEOGCS["WGS 84", > DATUM["WGS_1984", > SPHEROID["WGS 84",6378137,298.257223563, > AUTHORITY["EPSG","7030"]], > AUTHORITY["EPSG","6326"]], > PRIMEM["Greenwich",0, > AUTHORITY["EPSG","8901"]], > UNIT["degree",0.01745329251994328, > AUTHORITY["EPSG","9122"]], > AUTHORITY["EPSG","4326"]], > PROJECTION["Transverse_Mercator"], > PARAMETER["latitude_of_origin",0], > PARAMETER["central_meridian",-93], > PARAMETER["scale_factor",0.9996], > PARAMETER["false_easting",500000], > PARAMETER["false_northing",0], > UNIT["metre",1, > AUTHORITY["EPSG","9001"]], > AUTHORITY["EPSG","32615"]] >DestFacID: String (8.0) >DestFac: String (50.0) >DestFacType: String (20.0) > >OGRINFO documentation can be found at >http://www.remotesensing.org/gdal/ogr/ogrinfo.html > >FWTools Suite can be found at: http://fwtools.maptools.org/ > >Hope this helps. > >David. > > >David Fawcett >Minnesota Office of Environmental Assistance >david.fawcett at moea.state.mn.us >651.215.0200 > > >-----Original Message----- >From: Fawcett, David >Sent: Tuesday, July 12, 2005 8:39 AM >To: 'N M'; MAPSERVER-USERS at lists.umn.edu >Subject: RE: [UMN_MAPSERVER-USERS] place a point in the map > > >The EXTENT line in the MAP object sets the initial extent of your map when >you start your application. How do you want your map to look when you >start up? Do you want it to show the full extent of your background >raster? If so, use that extent. > >Just make sure that UNITS matches the units used by your projection, and >that either both layers are in the same projection, OR add projection >information so that you can display both layers at the same time. > >I don't have a virtual data layer handy, so I can't quickly test it, but >does anyone know if running ogrinfo on a text data source will return the >extent? > >David. > >David Fawcett >Minnesota Office of Environmental Assistance >david.fawcett at moea.state.mn.us >651.215.0200 > > >-----Original Message----- >From: N M [mailto:mapserver at hotmail.com] >Sent: Tuesday, July 12, 2005 6:13 AM >To: David.Fawcett at state.mn.us; MAPSERVER-USERS at lists.umn.edu >Subject: Re: [UMN_MAPSERVER-USERS] place a point in the map > > > >Hi David, > >I follow all steps in the information on the URL you send me, I think that >DSN runs perfectly, I created the TXT database, the OVF file and I modifed >my .map file with the parameters of the example. My question now is, how >can >I calculate the EXTENT coordinates. When I had a shapefile I used it to do >it. Which could be my .map file so I could display it? > >Have I to change anything in my .map file so it runs? My EXTEND is the one >of my old shapefile. Thank you > >MAP > IMAGETYPE PNG > EXTENT 0.000000 -205.000000 300.000000 0.000000 > SIZE 585 400 > SHAPEPATH "data" > IMAGECOLOR 255 180 0 > > #PROJECTION > # "proj=laea" > # "ellps=clrk66" > # "lat_0=45" > # "lon_0=-100" > # > # Alternatively, you can specify an EPSG code. > # "init=epsg:2163" > # > #END > > # Start of LAYER DEFINITIONS >--------------------------------------------- > > LAYER # Capa de raster > NAME mapafig > DATA "raster/figueres.tif" > STATUS DEFAULT > TYPE RASTER > PROCESSING "BANDS=1" > > > #OFFSITE 71 74 65 #Color que ha de ser transparent > > #PROJECTION > # "init=epsg:4326" > #END > END # Fi capa de raster > > >LAYER > CONNECTION "mapa21.ovf" > CONNECTIONTYPE OGR > DATA "prova" > METADATA > "wms_srs" "4326" > "wms_title" "prova" > END > NAME "prova" > SIZEUNITS PIXELS > STATUS ON > TOLERANCE 0 > TOLERANCEUNITS PIXELS > TYPE POINT > UNITS METERS > CLASS > STYLE > COLOR 0 0 0 > MAXSIZE 100 > MINSIZE 1 > SIZE 6 > SYMBOL "symbols/prova.gif" > END > END > END > > > > # End of LAYER DEFINITIONS ------------------------------- >END # end of map file > > >If you don't want to place your data in ESRI shapefiles or a database, >you > >can use a simple text file as the data source for a layer. > > > >If your Mapserver binary has been compiled with OGR support (quite >likely), > >you can use a virtual data source. Take a look at the Vector Data Access > >Reference > >http://ms.gis.umn.edu:8081/ms_plone/docs/reference/vector_data/VirtualSpatialData > > > >If you search the list archives for OGR and VRT, you will most likely >find > >some example map file layers. > > > >David. > > > >David Fawcett > >Minnesota Office of Environmental Assistance > >david.fawcett at moea.state.mn.us > >651.215.0200 > > > > > >-----Original Message----- > >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > >Behalf Of SUBSCRIBE MAPSERVER-USERS Nuri > >Sent: Monday, July 11, 2005 4:52 AM > >To: MAPSERVER-USERS at LISTS.UMN.EDU > >Subject: [UMN_MAPSERVER-USERS] place a point in the map > > > > > >Recently I managed to create my own map and placed a symbol in it from a > >database. > > > >Now I need to place several points in the map. My database contains gps > >coordinates like this: > > > >4216 9669 259 > > > >Latitude: 42? 16'N > >Longitude: 258?E > > > >I translated this gps coordinates to UTM coordinates to obtain: > > > >Zone: 14 > >Easting: 252608 > >Norting: 4683531 > > > >I need to show this point in the map. > > > >Someone could explain my how to do it? Thank you. > > > >My present .map file is: > > > >MAP > > IMAGETYPE PNG > > EXTENT 0.000000 -205.000000 300.000000 0.000000 > > SIZE 600 410 > > SHAPEPATH "data" > > IMAGECOLOR 255 180 0 > > FONTSET "fonts/fonts.list" > > > > #PROJECTION > > # "proj=laea" > > # "ellps=clrk66" > > # "lat_0=45" > > # "lon_0=-100" > > # > > # Alternatively, you can specify an EPSG code. > > # "init=epsg:2163" > > # > > #END > > > > # Start of LAYER DEFINITIONS > >-------------------------------------------- > >- > > > > LAYER # Capa de raster > > NAME mapafig > > DATA "raster/figueres.tif" > > STATUS DEFAULT > > TYPE RASTER > > PROCESSING "BANDS=1" > > #OFFSITE 71 74 65 #Color que ha de ser transparent > > > > #PROJECTION > > # "init=epsg:4326" > > #END > > END # Fi capa de raster > > > > > > > > LAYER > > NAME simbols > > GROUP grup > > STATUS DEFAULT > > DATA mapa > > TYPE ANNOTATION > > LABELITEM "SIMB" > > CLASSITEM "C" > > CLASS > > EXPRESSION "2" > > STYLE > > COLOR 0 0 0 # dummy color > > SYMBOL 'symbols/prova.gif' > > END > > LABEL > > MINFEATURESIZE 20 > > MINDISTANCE 50 > > POSITION CC > > SIZE TINY > > COLOR 255 255 255 > > END > > END > > > > PROJECTION > > "init=epsg:4326" > > END > > END > > > > > > > > # End of LAYER DEFINITIONS ------------------------------- > >END # end of map file > >_________________________________________________________________ >Descarga gratis la Barra de Herramientas de MSN >http://www.msn.es/usuario/busqueda/barra?XAPID=2031&DI=1055&SU=http%3A//www.hotmail.com&HL=LINKTAG1OPENINGTEXT_MSNBH _________________________________________________________________ Acepta el reto MSN Premium: Correos m?s divertidos con fotos y textos incre?bles en MSN Premium. Desc?rgalo y pru?balo 2 meses gratis. http://join.msn.com?XAPID=1697&DI=1055&HL=Footer_mailsenviados_correosmasdivertidos From mapserver at HOTMAIL.COM Wed Jul 13 01:57:39 2005 From: mapserver at HOTMAIL.COM (N M) Date: Wed, 13 Jul 2005 08:57:39 +0000 Subject: place a point in the map In-Reply-To: Message-ID: Hi David, I tested my application with an Access database. It contains a table named taula long lat 15 28 25 50 28 75 60 100 I created a DSN link named mapa21mdb My mapa21.ovf file is: ODBC:mapa21mdb taula wkbPoint Then I tryed connection executing: ogrinfo d:\webserver\mapserver2\mapa21.ovf -ro and result was: INFO: Open of `d:\webserver\mapserver2\mapa21.ovf' using driver `VRT' successful. 1: mapa21 (Point) Later I tried: ogrinfo d:\webserver\mapserver2\mapa21.ovf mapa21 -ro and result was: INFO: Open of `d:\webserver\mapserver2\mapa21.ovf' using driver `VRT' successful. Layer name: mapa21 Geometry: Point Feature Count: 4 Extent: (15.000000, 28.000000) - (60.000000, 100.000000) Layer SRS WKT: (unknown) long: String (50.0) lat: String (50.0) OGRFeature(mapa21):0 long (String) = 15 lat (String) = 28 POINT (15 28) OGRFeature(mapa21):1 long (String) = 25 lat (String) = 50 POINT (25 50) OGRFeature(mapa21):2 long (String) = 38 lat (String) = 75 POINT (38 75) OGRFeature(mapa21):3 long (String) = 60 lat (String) = 100 POINT (60 100) Then I created my map: MAP IMAGETYPE PNG EXTENT 15.000000 28.000000 60.000000 100.000000 SIZE 500 350 #SHAPEPATH "data" IMAGECOLOR 255 180 0 # Start of LAYER DEFINITIONS --------------------------------------------- LAYER NAME "MyVirtualLayer" TYPE POINT CONNECTIONTYPE OGR CONNECTION "mapa21.ovf" DATA "taula" # the name of the OGRVrtLayer STATUS ON LABELITEM long #may need to use table.name or just name depending on your OVF file. PROJECTION "init=epsg:4326" END CLASS SYMBOL 1 SIZE 6 COLOR 255 0 0 LABEL SIZE MEDIUM TYPE BITMAP COLOR 0 0 0 END END END # End of LAYER DEFINITIONS ------------------------------- END # end of map file The only thing that appears in the screen is a yellow rectangle, nothing else. Could be the wrong extent values? I thank you for your help. Nuri _________________________________________________________________ Moda para esta temporada. Ponte al d?a de todas las tendencias. http://www.msn.es/Mujer/moda/default.asp From plists at PROMETHEUS.ORG.YU Wed Jul 13 01:38:49 2005 From: plists at PROMETHEUS.ORG.YU (Attila Csipa) Date: Wed, 13 Jul 2005 10:38:49 +0200 Subject: MySQL integration In-Reply-To: <2576812186CDD411BF1500508B6DCE950972FDC2@ecnwri1.ontario.int.ec.gc.ca> Message-ID: On Wednesday 13 July 2005 02:18, Kralidis,Tom [Burlington] wrote: > We have compiled MapServer with --with-mygis support (MySQL 4.1), and > are trying to add some data from MySQL tables. The data was loaded > using libmygis (http://jcole.us/software/libmygis/). --with-mygis does _not_ use the spatial extension of MySQL 4.1 and thus cannot use spatial data from 4.1 tables. It relies on standard mysql column types like int, varchar, blob, etc and acts as a wrapper providing the needed spatial functions itself (that's why it works even with mysql 3.x). It stores data according to the OpenGIS simple features SQL standard (for which shp2mysql is a converter). From stefan.schwarzer at GRID.UNEP.CH Wed Jul 13 02:24:54 2005 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Wed, 13 Jul 2005 11:24:54 +0200 Subject: Splitting/tiling a raster - gdaladdo - [Summary] In-Reply-To: Message-ID: Well, this was very useful. Just for the records (and other users with similar questions): 1) I used a 200 MB JPEG image for building the overviews as indicated below by Bart. 2) gdaladdo -r average xxx.jpg 2 4 8 16 (Small error message here. But still it worked its way through. ERROR 6: The JPEG driver does not support update access to existing datasets. Corrupt JPEG data: 14964 extraneous bytes before marker 0xed 0...10...20...30...40...50...60...70...80...90...100 - done.) 3) An additional file with the extension xxx.jpg.ovr was created. 4) This file name should appear in the map file for that specific layer. 5) The total extent display is really fast. And the zooms are being generated very quickly too. 6) Nice, really nice. Thanks a lot... > You can build overviews with gdaladdo: > > http://www.gdal.org/gdal_utilities.html#gdaladdo > > Eg: > > gdaladdo -r average abc.tif 2 4 8 16 > > Try that first I would say. > > Best regards, > Bart > > Bart van den Eijnden > Syncera IT Solutions > Postbus 270 > 2600 AG DELFT > > tel.nr.: 015-7512436 > email: BEN at Syncera-ITSolutions.nl > > >>>> Stefan Schwarzer 07/12/05 >>>> 12:02pm >>> >>>> > > >> Which format is your raster currently in? >> > > TIF or JPEG > > >> >> If it is performance, building overviews could also help for >> certain situations. >> > > So, how can I build overviews then? > > >> >> At which scales do you display your raster? Also at full extent? >> > > From full extent (at the beginning - a couple of hundreds km wide) > to then, when zooming, a couple of km wide. > > >> >> Best regards, >> Bart >> >> Bart van den Eijnden >> Syncera IT Solutions >> Postbus 270 >> 2600 AG DELFT >> >> tel.nr.: 015-7512436 >> email: BEN at Syncera-ITSolutions.nl >> >> >> >>>>> Stefan Schwarzer 07/12/05 >>>>> 11:55am >>> >>>>> >>>>> >> Thanks Bart for the quick response, >> >> aehh, yes, performance. But perhaps there is no need to split it up? >> Is it that what you mean? Gush, somehow I don't really get it how >> this tiling works, stupid me.... >> >> Stef >> >> >> >> >>> Hi Stefan, >>> >>> since gdal_translate has the option to select a subwindow (srcwin) >>> from your sourcefile, you can use it to split your raster file into >>> subimages. >>> >>> http://www.gdal.org/gdal_utilities.html#gdal_translate >>> >>> After that, you do use gdaltindex to create a tileindex. That part >>> is described in the raster howto: >>> >>> http://mapserver.gis.umn.edu/doc44/raster-howto.html >>> >>> Btw, what is the exact reason you want to split up your raster? >>> Performance? >>> >>> Best regards, >>> Bart >>> >>> Bart van den Eijnden >>> Syncera IT Solutions >>> Postbus 270 >>> 2600 AG DELFT >>> >>> tel.nr.: 015-7512436 >>> email: BEN at Syncera-ITSolutions.nl >>> >>> >>> >>> >>>>>> Stefan Schwarzer 07/12/05 >>>>>> 11:39am >>> >>>>>> >>>>>> >>>>>> >>> Hi, >>> >>> this subject is really not new. But I haven't found any real how-to >>> for the whole story. Perhaps somebody could clarify the steps >>> needed. >>> when starting with an image of some larger size and when ending with >>> a tiled raster. Cause I guess that' what has to be done. >>> - At least I have now one single big raster. As far as I >>> understood I >>> need to split the big image into smaller ones. But how? >>> - And then I can use gdaltindex to build the shapefile to define the >>> tiles. Right? >>> >>> Thanks for clarification. >>> >>> >>> >> >> > From ycnyon at PD.JARING.MY Wed Jul 13 02:53:04 2005 From: ycnyon at PD.JARING.MY (YC Nyon) Date: Wed, 13 Jul 2005 17:53:04 +0800 Subject: Users adding point Message-ID: Hi, I am requested to built a neighbourhood complaints application where users (login required) can add a point to the map and this will correspond to their description of the problem such as un-cut grass, burst pipes, etc.. Wondering anyone done this before? What would be the best way to keep the points? shape files or a SQL database. I'm running php-ms. Regards Nyon From mapserver at HOTMAIL.COM Wed Jul 13 03:03:04 2005 From: mapserver at HOTMAIL.COM (N M) Date: Wed, 13 Jul 2005 10:03:04 +0000 Subject: place a point in the map In-Reply-To: Message-ID: Hi, Executing my OVF file, mapa21.ovf, in OpenEV_FW it place the points perfecly, so I supose that there is a problem with my .map file but I can't find it. Nuri _________________________________________________________________ Descubre la descarga digital con MSN Music. M?s de medio mill?n de canciones. http://music.msn.es/ From gsw at GLOBEXPLORER.COM Wed Jul 13 03:05:09 2005 From: gsw at GLOBEXPLORER.COM (Gregory S. Williamson) Date: Wed, 13 Jul 2005 03:05:09 -0700 Subject: Users adding point Message-ID: I think that shape files may have locking issues if simultaneous users try to update them; a database solution might avoid -- or at least minimize -- this problem. Most databses allow for timestamps and the like, which might also help in keeping track of current entries and other such house-keeping. Greg Williamson DBA GlobeXplorer LLC -----Original Message----- From: UMN MapServer Users List on behalf of YC Nyon Sent: Wed 7/13/2005 2:53 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Cc: Subject: Re: [UMN_MAPSERVER-USERS] Users adding point Hi, I am requested to built a neighbourhood complaints application where users (login required) can add a point to the map and this will correspond to their description of the problem such as un-cut grass, burst pipes, etc.. Wondering anyone done this before? What would be the best way to keep the points? shape files or a SQL database. I'm running php-ms. Regards Nyon !DSPAM:42d4e4da144181283315096! From raxpl at ANGLESEY.GOV.UK Wed Jul 13 04:16:23 2005 From: raxpl at ANGLESEY.GOV.UK (Richard Alexander) Date: Wed, 13 Jul 2005 06:16:23 -0500 Subject: newbe- mapscript /pil Message-ID: hi I want to open an image created by mapscript using PIL... I'm using python2.3 on Suse Linux Enterprise Server 9 (not this windows machine so there may be some minor punctuation errors below) from Tkinter import * import mapscript import Image theMap = mapscript.mapObj('/srv/www/htdocs/workshop/itasca.map') theMapImage = theMap.draw() theMapImage.save('srv/www/htdocs/workshop/tmp.png') #the above line produces a png image in the correct folder theImage = Image.open('srv/www/htdocs/workshop/tmp.png') #the above line causes an IOError to be thrown which seems to #be triggered by the Load function... #end After the program finishes I can open the png image tmp.png in all other graphics programs - Pil continues to refuse to open it ! any ideas ? cheers RA From dpinte at ITAE.BE Wed Jul 13 05:10:27 2005 From: dpinte at ITAE.BE (Didrik Pinte) Date: Wed, 13 Jul 2005 14:10:27 +0200 Subject: newbe- mapscript /pil In-Reply-To: Message-ID: Le mercredi 13 juillet 2005 ? 06:16 -0500, Richard Alexander a ?crit : > hi > I want to open an image created by mapscript using PIL... > > I'm using python2.3 on Suse Linux Enterprise Server 9 (not this windows > machine so there may be some minor punctuation errors below) > > from Tkinter import * > import mapscript > import Image > > theMap = mapscript.mapObj('/srv/www/htdocs/workshop/itasca.map') > theMapImage = theMap.draw() > > theMapImage.save('srv/www/htdocs/workshop/tmp.png') > #the above line produces a png image in the correct folder > > theImage = Image.open('srv/www/htdocs/workshop/tmp.png') > #the above line causes an IOError to be thrown which seems to > #be triggered by the Load function... > > #end > > After the program finishes I can open the png image tmp.png in all > other graphics programs - Pil continues to refuse to open it ! > > any ideas ? > > cheers > RA It seems that you need to use absolute path everywhere in your code. theImage = Image.open('srv/www/htdocs/workshop/tmp.png') needs to be theImage = Image.open('/srv/www/htdocs/workshop/tmp.png') No ? Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From raxpl at ANGLESEY.GOV.UK Wed Jul 13 05:26:56 2005 From: raxpl at ANGLESEY.GOV.UK (Richard Alexander) Date: Wed, 13 Jul 2005 07:26:56 -0500 Subject: newbe- mapscript /pil Message-ID: thanks Didrik, yes it is a fault in the code - but not the one that causes the PIL error...I copied out the code wrongly ! The PIL problem with the PNG seems very odd to me because the PNG image produced does open in Gimp...and if I save it as tmp2.png from Gimp, it will then open from PIL ! If I use file objects instead of images I get the same problem. Does the code work for you at all with mapscript ? RA From luca76 at GMAIL.COM Wed Jul 13 05:42:35 2005 From: luca76 at GMAIL.COM (Luca Manganelli) Date: Wed, 13 Jul 2005 14:42:35 +0200 Subject: How to change Scalebar style Message-ID: Hi, I would like to have a scalebar as following : 0 --------------- 10 Km and NOT the default: 0 -------- 2 ------- 4 ---- 6 --- etc how can I do? From d.huisman at INGBCC.NL Wed Jul 13 05:48:23 2005 From: d.huisman at INGBCC.NL (Dirk-Jan Huisman) Date: Wed, 13 Jul 2005 14:48:23 +0200 Subject: How to change Scalebar style Message-ID: Read the website... http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#scalebar Regards, -----Oorspronkelijk bericht----- Van: Luca Manganelli [mailto:luca76 at GMAIL.COM] Verzonden: woensdag 13 juli 2005 14:43 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] How to change Scalebar style Hi, I would like to have a scalebar as following : 0 --------------- 10 Km and NOT the default: 0 -------- 2 ------- 4 ---- 6 --- etc how can I do? ------------------------------------------------------------------------------ Prins Mauritsstraat 17, Postbus 75, 4140 AB Leerdam Telefoon (0345) 63 96 96, Fax (0345) 63 96 66, E-mail post at ingbcc.nl Internet www.ingbcc.nl ------------------------------------------------------------------------------ Deze e-mail en de eventuele bestanden die meegezonden zijn, zijn vertrouwelijk en alleen bedoeld voor het gebruik door de individu of instelling aan wie deze e-mail geadresseerd is. Als u deze e-mail onterecht ontvangen heeft wilt u het ons dan laten weten. ------------------------------------------------------------------------------ This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the system manager. ------------------------------------------------------------------------------ From dpinte at ITAE.BE Wed Jul 13 05:56:09 2005 From: dpinte at ITAE.BE (Didrik Pinte) Date: Wed, 13 Jul 2005 14:56:09 +0200 Subject: newbe- mapscript /pil In-Reply-To: Message-ID: Le mercredi 13 juillet 2005 ? 07:26 -0500, Richard Alexander a ?crit : > thanks Didrik, > > yes it is a fault in the code - but not the one that causes the PIL > error...I copied out the code wrongly ! > > The PIL problem with the PNG seems very odd to me because the PNG image > produced does open in Gimp...and if I save it as tmp2.png from Gimp, it will > then open from PIL ! > > If I use file objects instead of images I get the same problem. > > Does the code work for you at all with mapscript ? > > RA Got it --> PIL does not support PNG that are interlaced ! You need to change your outputformat to : # PIL does not support interlaced images !!! OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" FORMATOPTION "INTERLACE=OFF" END Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From pmoen at STATE.ND.US Wed Jul 13 06:00:49 2005 From: pmoen at STATE.ND.US (Paul Moen) Date: Wed, 13 Jul 2005 08:00:49 -0500 Subject: Raster zoom problem with ERDAS Imagine Files Message-ID: Greetings, We seem to be having some problems with our color orthophotography. Our map service is using tiled county mosaics in an ERDAS Imagine (.img) (24 bit, RGB file) format. Errors will pop up in our 4.4 Mapserver instance when I try to zoom in past a scale of 1:9500 and color shifts occur after zooming past certain scales. You can view the problems by visiting HTTP://mapservice.swc.state.nd.us/indexmap.phtml. Click on log on in the upper right corner, and login as mapuser with mappass as the password. Choose the drop down list that says select your extent and select McKenzie Normal. This shows the ortho photo displayed properly. McKenzie Bad Color zooms in to a 1:18034 scale and it is no longer displayed. Mountrail Color Ok moves to Mountrail County at a 1:18034 scale, but the colors are displayed properly at the same scale with a different imagine file. Finally, select Mountrail No Image. This is where the following error occurs and no image is displayed. The error is: PHP Warning: [MapServer Error]: IReadBlock failed at X offset 703, Y offset 675: GDALRasterIO() failed: drawGDAL() in drawmappm.php on line 105 PHP Fatal error: Call to a member function on a non-object in drawmappm.php on line 228 I can zoom in to any scale with tiff files just not the Imagine files. I cannot use tiff files since there is a 2GB maximum file size, and the sizes of the county mosaics are running in the 10Gb to 25Gb range. Additionally, we?ve found color shifts to blue or red anytime we zoom to scales greater than about 1:20,000. However, this only seems to occur on the largest county mosaic (approx 25Gb). If we move the locator box on the locator map to another location with a smaller county mosaic, we don?t have the color shift problem, but the error messages still occur below 1:10,000. My map file is below and the rasters are ERDAS imagine files. The layer "Ortho Photos" causes the error. The only conclusion that we have come to is that: a) there might be a problem displaying Imagine files b) there might be a problem with the size of the files being displayed c) there might be a problem with full color, as opposed to single band (256) color images (all the Tifs are 256 color and we have no problems with them at any scale). Has anyone run into a similar problem besides me? I have not found anything by searching the archives. The same results occur with Mapserver 4.4 and 4.6 compiled with gdal-1.2.5. An excerpt from our map file follows. MAP NAME SWC IMAGETYPE PNG24 EXTENT 1000000 0 3000000 1500000 # State Plane Coordinates (Feet) SIZE 524 524 UNITS FEET SHAPEPATH "../mapdata" IMAGECOLOR 255 255 230 TEMPLATEPATTERN "swc" SYMBOLSET "symbols.dat" FONTSET "../mapfiles/fonts/fonts.list" #********************************************************************** # Start of web interface definition (including WMS enabling metadata) * #********************************************************************** WEB HEADER templates/header.html TEMPLATE "set in indexwells.html" FOOTER "templates/footer.html" MINSCALE 9000 MAXSCALE 10000000 IMAGEPATH "/Applications/4DWebSTAR/WebServer/Defaultsite/tmp/" IMAGEURL "/tmp/" END REFERENCE IMAGE "../graphics/ndreference.png" EXTENT 1000000 160000 3000000 1200000 SIZE 120 75 STATUS ON MINBOXSIZE 5 MAXBOXSIZE 100 MARKERSIZE 8 MARKER 'star' END #************** # Map Queries * #************** QUERYMAP COLOR 255 255 0 STYLE hilite END #****************** # Start of legend * #****************** LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END #******************** # Start of scalebar * #******************** SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE TINY END STYLE 1 SIZE 100 2 COLOR 0 0 0 UNITS MILES INTERVALS 1 TRANSPARENT false STATUS ON END LAYER GROUP "Raster Images" TYPE RASTER STATUS OFF NAME "Ortho Photos" PROCESSING "BANDS=1,2,3" OFFSITE 0 0 0 TILEINDEX CountyIndex TILEITEM "Orthos" END END thank you, Paul Moen From pneal at MBL.EDU Wed Jul 13 06:13:36 2005 From: pneal at MBL.EDU (Phillip Neal) Date: Wed, 13 Jul 2005 08:13:36 -0500 Subject: My getLayerByName doesn't work Message-ID: Dear All, I am trying to use the code from http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptAddPoint to generate a dynamic point. But everytime I hit the $layer = $map->getLayerByName('INLINE'); I get a segmentation fault. Any suggestions ? Phil From raxpl at ANGLESEY.GOV.UK Wed Jul 13 06:24:42 2005 From: raxpl at ANGLESEY.GOV.UK (Richard Alexander) Date: Wed, 13 Jul 2005 08:24:42 -0500 Subject: newbe- mapscript /pil Message-ID: well done ! - now i'm back on track (using Tkinter to construct a lightweight, desktop mapviewer) have a very good day......no, have a very good week ! thanks Richard ------------------------------------------------------------------ Got it --> PIL does not support PNG that are interlaced ! You need to change your outputformat to : # PIL does not support interlaced images !!! OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" FORMATOPTION "INTERLACE=OFF" END ---------------------------------------------------------------------- Le mercredi 13 juillet 2005 a 07:26 -0500, Richard Alexander a Tcrit : > thanks Didrik, > > yes it is a fault in the code - but not the one that causes the PIL > error...I copied out the code wrongly ! > > The PIL problem with the PNG seems very odd to me because the PNG image > produced does open in Gimp...and if I save it as tmp2.png from Gimp, it will > then open from PIL ! > > If I use file objects instead of images I get the same problem. > > Does the code work for you at all with mapscript ? > > RA From pneal at MBL.EDU Wed Jul 13 06:15:11 2005 From: pneal at MBL.EDU (Phillip Neal) Date: Wed, 13 Jul 2005 08:15:11 -0500 Subject: PHP MAPSCRIPT dynamic point again Message-ID: Dear All, Does anyone have a simple example of how to click and set a dynamic point on a map ? If so, would they please send me the map file, the php and the data. Or at least tell me where I can get them ? Thanks, Phil From David.Fawcett at STATE.MN.US Wed Jul 13 06:28:40 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Wed, 13 Jul 2005 08:28:40 -0500 Subject: How to change Scalebar style Message-ID: http://ms.gis.umn.edu:8081/ms_plone/docs/reference/mapfile/scalebar You want INTERVALS 1 David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett at moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Luca Manganelli Sent: Wednesday, July 13, 2005 7:43 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] How to change Scalebar style Hi, I would like to have a scalebar as following : 0 --------------- 10 Km and NOT the default: 0 -------- 2 ------- 4 ---- 6 --- etc how can I do? From fwarmerdam at GMAIL.COM Wed Jul 13 06:40:28 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 13 Jul 2005 09:40:28 -0400 Subject: My getLayerByName doesn't work In-Reply-To: Message-ID: On 7/13/05, Phillip Neal wrote: > Dear All, > > I am trying to use the code from > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptAddPoint > > to generate a dynamic point. But everytime I hit the > > $layer = $map->getLayerByName('INLINE'); > > I get a segmentation fault. Phil, I got a similar problem with I built PHP MapScript myself for a client. Where did you get your PHP MapScript? Our problems could be unrelated of course, but it seems a coincidence that we both have problems with crashes in getLayerByName(). Let me know if you figure anything out. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From pneal at MBL.EDU Wed Jul 13 06:47:54 2005 From: pneal at MBL.EDU (Phillip Neal) Date: Wed, 13 Jul 2005 08:47:54 -0500 Subject: My getLayerByName doesn't work Message-ID: Hi Frank I downloaded the latest version 4.6 of mapserver from umn. It has the mapscript stuff inside it. On Wed, 13 Jul 2005 09:40:28 -0400, Frank Warmerdam wrote: >On 7/13/05, Phillip Neal wrote: >> Dear All, >> >> I am trying to use the code from >> http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptAddPoint >> >> to generate a dynamic point. But everytime I hit the >> >> $layer = $map->getLayerByName('INLINE'); >> >> I get a segmentation fault. > >Phil, > >I got a similar problem with I built PHP MapScript myself for a client. >Where did you get your PHP MapScript? Our problems could be >unrelated of course, but it seems a coincidence that we both have >problems with crashes in getLayerByName(). Let me know if you >figure anything out. > >Best regards, > >-- >---------------------------------------+-------------------------------------- >I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com >light and sound - activate the windows | http://pobox.com/~warmerdam >and watch the world go round - Rush | Geospatial Programmer for Rent From fwarmerdam at GMAIL.COM Wed Jul 13 06:47:38 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 13 Jul 2005 09:47:38 -0400 Subject: Raster zoom problem with ERDAS Imagine Files In-Reply-To: Message-ID: On 7/13/05, Paul Moen wrote: > Greetings, > > We seem to be having some problems with our color orthophotography. Our map service is using > tiled county mosaics in an ERDAS Imagine (.img) (24 bit, RGB file) format. Errors will pop up in our > 4.4 Mapserver instance when I try to zoom in past a scale of 1:9500 and color shifts occur after > zooming past certain scales. ... > The error is: > > PHP Warning: [MapServer Error]: IReadBlock failed at X offset 703, Y offset 675: GDALRasterIO() > failed: drawGDAL() in drawmappm.php on line 105 > PHP Fatal error: Call to a member function on a non-object in drawmappm.php on line 228 Paul, What platform are you working on? GDAL 1.2.5 is a bit old now. It is possible an upgrade to GDAL 1.2.6 or GDAL CVS will help. There have been a few fixes in the decompression code in GDAL's Imagine reader in the last year or two. Also, what platform are you on? I am wondering if "large file" support might not have been enabled at build time. For instance, large files were not supported on MacOS X with GDAL till quite recently (post 1.2.6). This is clearly a GDAL problem, so you might just want to open a GDAL bugzilla entry for the issue and we can pursue it from there. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From Tom.Kralidis at EC.GC.CA Wed Jul 13 06:47:38 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Wed, 13 Jul 2005 09:47:38 -0400 Subject: MySQL integration Message-ID: > > On Wednesday 13 July 2005 02:18, Kralidis,Tom [Burlington] wrote: > > We have compiled MapServer with --with-mygis support (MySQL > 4.1), and > > are trying to add some data from MySQL tables. The data was loaded > > using libmygis (http://jcole.us/software/libmygis/). > > --with-mygis does _not_ use the spatial extension of MySQL > 4.1 and thus cannot > use spatial data from 4.1 tables. It relies on standard mysql > column types > like int, varchar, blob, etc and acts as a wrapper providing > the needed > spatial functions itself (that's why it works even with mysql > 3.x). It stores > data according to the OpenGIS simple features SQL standard (for which > shp2mysql is a converter). > > Thanks. I'm a bit confused. So the libmygis is not supported in MapServer? So shp2mysql.pl will work but libmygis will not work? Underlying question is how can one with a MySQL 4.1 database store and retrieve spatial data with MapServer? Thanks ..Tom From David.Fawcett at STATE.MN.US Wed Jul 13 06:50:00 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Wed, 13 Jul 2005 08:50:00 -0500 Subject: place a point in the map Message-ID: Nuri, What URL are you using to call your map? If it doesn't include '&layer=myvirtuallayer', you should set the LAYER STATUS to DEFAULT in the Map file. Also, the layer name in your map file doesn't match the one in your ogrinfo output (mapa21). I realize that you may have renamed the layer, but make sure that the names match. I also don't see a SYMBOLSET or FONTSET line in your map file to tell MapServer where to look for symbols or fonts. David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett at moea.state.mn.us 651.215.0200 -----Original Message----- From: N M [mailto:mapserver at hotmail.com] Sent: Wednesday, July 13, 2005 3:58 AM To: David.Fawcett at state.mn.us; MAPSERVER-USERS at lists.umn.edu Subject: RE: [UMN_MAPSERVER-USERS] place a point in the map Hi David, I tested my application with an Access database. It contains a table named taula long lat 15 28 25 50 28 75 60 100 I created a DSN link named mapa21mdb My mapa21.ovf file is: ODBC:mapa21mdb taula wkbPoint Then I tryed connection executing: ogrinfo d:\webserver\mapserver2\mapa21.ovf -ro and result was: INFO: Open of `d:\webserver\mapserver2\mapa21.ovf' using driver `VRT' successful. 1: mapa21 (Point) Later I tried: ogrinfo d:\webserver\mapserver2\mapa21.ovf mapa21 -ro and result was: INFO: Open of `d:\webserver\mapserver2\mapa21.ovf' using driver `VRT' successful. Layer name: mapa21 Geometry: Point Feature Count: 4 Extent: (15.000000, 28.000000) - (60.000000, 100.000000) Layer SRS WKT: (unknown) long: String (50.0) lat: String (50.0) OGRFeature(mapa21):0 long (String) = 15 lat (String) = 28 POINT (15 28) OGRFeature(mapa21):1 long (String) = 25 lat (String) = 50 POINT (25 50) OGRFeature(mapa21):2 long (String) = 38 lat (String) = 75 POINT (38 75) OGRFeature(mapa21):3 long (String) = 60 lat (String) = 100 POINT (60 100) Then I created my map: MAP IMAGETYPE PNG EXTENT 15.000000 28.000000 60.000000 100.000000 SIZE 500 350 #SHAPEPATH "data" IMAGECOLOR 255 180 0 # Start of LAYER DEFINITIONS --------------------------------------------- LAYER NAME "MyVirtualLayer" TYPE POINT CONNECTIONTYPE OGR CONNECTION "mapa21.ovf" DATA "taula" # the name of the OGRVrtLayer STATUS ON LABELITEM long #may need to use table.name or just name depending on your OVF file. PROJECTION "init=epsg:4326" END CLASS SYMBOL 1 SIZE 6 COLOR 255 0 0 LABEL SIZE MEDIUM TYPE BITMAP COLOR 0 0 0 END END END # End of LAYER DEFINITIONS ------------------------------- END # end of map file The only thing that appears in the screen is a yellow rectangle, nothing else. Could be the wrong extent values? I thank you for your help. Nuri _________________________________________________________________ Moda para esta temporada. Ponte al d?a de todas las tendencias. http://www.msn.es/Mujer/moda/default.asp From pmoen at STATE.ND.US Wed Jul 13 07:33:01 2005 From: pmoen at STATE.ND.US (Moen, Paul T.) Date: Wed, 13 Jul 2005 09:33:01 -0500 Subject: Raster zoom problem with ERDAS Imagine Files In-Reply-To: <931f8ea905071306474788a64b@mail.gmail.com> Message-ID: Thank you Frank, We are using Mac OS X. I just got the latest gdal via cvs and I will build and test to see if the problem is solved. If not I will submit a bug. But first, I want to make sure that I have large file format support configured. My previous configure was as follows. /configure --prefix=/MapServer --exec-prefix=/MapServer --mandir=/MapServer/man --with-libz=/usr --with-libtiff=/MapServer --with-geotiff=/MapServer --with-jpeg=/MapServer --with-jasper=/MapServer --with-gif=/MapServer --with-png=/MapServer --without-python --without-ogdi --with-threads --with-grass=/MapServer/src/grass57_exp_2004_11_27/dist.powerpc-apple-darwin 7.6.0 I looked at ./configure -help and did not see any reference to imagine files or large file support. Do I have what I need in the configure that I have above? Will I have large file support enabled using the above configure? On 7/13/05 8:47 AM, "Frank Warmerdam" wrote: Paul, What platform are you working on? GDAL 1.2.5 is a bit old now. It is possible an upgrade to GDAL 1.2.6 or GDAL CVS will help. There have been a few fixes in the decompression code in GDAL's Imagine reader in the last year or two. Also, what platform are you on? I am wondering if "large file" support might not have been enabled at build time. For instance, large files were not supported on MacOS X with GDAL till quite recently (post 1.2.6). This is clearly a GDAL problem, so you might just want to open a GDAL bugzilla entry for the issue and we can pursue it from there. Best regards, Thank you, Paul T. Moen pmoen at state.nd.us ND State Water Commission -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Wed Jul 13 07:50:36 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 13 Jul 2005 10:50:36 -0400 Subject: MySQL integration In-Reply-To: <2576812186CDD411BF1500508B6DCE9508A7DDFF@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Kralidis,Tom [Burlington] wrote: >>On Wednesday 13 July 2005 02:18, Kralidis,Tom [Burlington] wrote: >> >>>We have compiled MapServer with --with-mygis support (MySQL >> >>4.1), and >> >>>are trying to add some data from MySQL tables. The data was loaded >>>using libmygis (http://jcole.us/software/libmygis/). >> >>--with-mygis does _not_ use the spatial extension of MySQL >>4.1 and thus cannot >>use spatial data from 4.1 tables. It relies on standard mysql >>column types >>like int, varchar, blob, etc and acts as a wrapper providing >>the needed >>spatial functions itself (that's why it works even with mysql >>3.x). It stores >>data according to the OpenGIS simple features SQL standard (for which >>shp2mysql is a converter). >> >> > > > Thanks. I'm a bit confused. So the libmygis is not supported in > MapServer? > > So shp2mysql.pl will work but libmygis will not work? > > Underlying question is how can one with a MySQL 4.1 database store and > retrieve spatial data with MapServer? I think the answer is they can't. This is why I finally made the jump to PostGIS and I have been VERY happy with it once I got over the 2-4 day learning curve. -Steve W. From fwarmerdam at GMAIL.COM Wed Jul 13 08:23:36 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 13 Jul 2005 11:23:36 -0400 Subject: Raster zoom problem with ERDAS Imagine Files In-Reply-To: Message-ID: On 7/13/05, Moen, Paul T. wrote: > Thank you Frank, > > We are using Mac OS X. I just got the latest gdal via cvs and I will build > and test to see if the problem is solved. If not I will submit a bug. > > But first, I want to make sure that I have large file format support > configured. My previous configure was as follows. > > /configure --prefix=/MapServer --exec-prefix=/MapServer > --mandir=/MapServer/man --with-libz=/usr --with-libtiff=/MapServer > --with-geotiff=/MapServer --with-jpeg=/MapServer --with-jasper=/MapServer > --with-gif=/MapServer --with-png=/MapServer --without-python --without-ogdi > --with-threads > --with-grass=/MapServer/src/grass57_exp_2004_11_27/dist.powerpc-apple-darwin7.6.0 > > I looked at ./configure ?help and did not see any reference to imagine > files or large file support. Do I have what I need in the configure that I > have above? Will I have large file support enabled using the above > configure? Paul, Recent CVS snapshots of GDAL should enable large file support on MacOS X by default. In the configure output you should see a line like "checking for 64bit file io... yes" and in gdal/port/cpl_config.h you should see VSI_FSEEK64 set to fseeko on MacOS X. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From abe.gillespie at GMAIL.COM Wed Jul 13 08:43:32 2005 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Wed, 13 Jul 2005 11:43:32 -0400 Subject: Closest Feature Query In-Reply-To: Message-ID: Yes, "as the crow flies" is fine; no routing needed. How is this done in PHP MapScript? Thanks. -Abe On 7/13/05, Steve Lime wrote: > The normal MapServer query will do this but only using "as the crow flies" distances. You use the layer tolerance to set a maximum distance. If you need to need to compute distances along an established route then that's a different story and is not something MapServer can do out of the box. > > Steve > > >>> Abe Gillespie 07/12/05 10:05 PM >>> > Is there an easy way to query for the closest feature to another > feature. Take for example the classic "closest ATM" query. I know > where I'm at (an address point or building feature) and want the > closest ATM. Can I avoid having to create a line to each ATM point > from the starting point, comparing the length of each line, and > keeping the shortest? > > Thanks. > -Abe > From nbarker at RSINC.COM Wed Jul 13 09:22:53 2005 From: nbarker at RSINC.COM (Norman Barker) Date: Wed, 13 Jul 2005 17:22:53 +0100 Subject: volumetric data from a WCS Message-ID: Hi, I am really asking this question on behalf of Andrew Woolf, after he raised it in a meeting today. In the WCS spec it should be possible to request BBOX as x,y,z (if the data format in the describe coverage) supports it. This is kind of important for weather data, currently we work around this using the bands to be a z dimension. This isn't really true though, and leads to problems with generalised clients interpreting the data. Is it possible to extend GDAL (and hence MapServer) to use 3D/4D+ data sets? The bands and temporal subsetting are great, and are really fast, just a BBOX of x,y,z would be useful. Am happy to take on work, if given a pointer :-) Norman Barker -------------- next part -------------- An HTML attachment was scrubbed... URL: From abe.gillespie at GMAIL.COM Wed Jul 13 09:42:20 2005 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Wed, 13 Jul 2005 12:42:20 -0400 Subject: Closest Feature Query In-Reply-To: Message-ID: Are you sure this can be done? I'm not finding this specific type of query in the docs. There is queryByPoint - which seems to be the *closest* to what I'm looking for - but this is a classic buffer query. I'm looking for sorta the reverse of a buffer query. Buffer - Start point known / distance known -> returns all features w/i the distance from the start point. Closest Feature - Start point known / distance unknown -> returns one feature that's closer than all the other features to the start point. -Abe On 7/13/05, Abe Gillespie wrote: > Yes, "as the crow flies" is fine; no routing needed. How is this done > in PHP MapScript? > > Thanks. > -Abe > > On 7/13/05, Steve Lime wrote: > > The normal MapServer query will do this but only using "as the crow flies" distances. You use the layer tolerance to set a maximum distance. If you need to need to compute distances along an established route then that's a different story and is not something MapServer can do out of the box. > > > > Steve > > > > >>> Abe Gillespie 07/12/05 10:05 PM >>> > > Is there an easy way to query for the closest feature to another > > feature. Take for example the classic "closest ATM" query. I know > > where I'm at (an address point or building feature) and want the > > closest ATM. Can I avoid having to create a line to each ATM point > > from the starting point, comparing the length of each line, and > > keeping the shortest? > > > > Thanks. > > -Abe > > > From woodbri at SWOODBRIDGE.COM Wed Jul 13 09:57:36 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 13 Jul 2005 12:57:36 -0400 Subject: Closest Feature Query In-Reply-To: Message-ID: Abe Gillespie wrote: > Are you sure this can be done? I'm not finding this specific type of > query in the docs. There is queryByPoint - which seems to be the > *closest* to what I'm looking for - but this is a classic buffer > query. I'm looking for sorta the reverse of a buffer query. > > Buffer - Start point known / distance known -> returns all features > w/i the distance from the start point. You can get this by requesting multiple results instead of just on result. Set mode=MS_MULTIPLE. -Steve W. > Closest Feature - Start point known / distance unknown -> returns one > feature that's closer than all the other features to the start point. > > -Abe > > On 7/13/05, Abe Gillespie wrote: > >>Yes, "as the crow flies" is fine; no routing needed. How is this done >>in PHP MapScript? >> >>Thanks. >>-Abe >> >>On 7/13/05, Steve Lime wrote: >> >>>The normal MapServer query will do this but only using "as the crow flies" distances. You use the layer tolerance to set a maximum distance. If you need to need to compute distances along an established route then that's a different story and is not something MapServer can do out of the box. >>> >>>Steve >>> >>> >>>>>>Abe Gillespie 07/12/05 10:05 PM >>> >>> >>>Is there an easy way to query for the closest feature to another >>>feature. Take for example the classic "closest ATM" query. I know >>>where I'm at (an address point or building feature) and want the >>>closest ATM. Can I avoid having to create a line to each ATM point >>>from the starting point, comparing the length of each line, and >>>keeping the shortest? >>> >>>Thanks. >>>-Abe >>> >> > From abe.gillespie at GMAIL.COM Wed Jul 13 10:10:36 2005 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Wed, 13 Jul 2005 13:10:36 -0400 Subject: Closest Feature Query In-Reply-To: <42D54800.5020409@swoodbridge.com> Message-ID: Not quite. It's still just a regular buffer query but instead of returning multiple results it now returns only one. The one it returns is not the same as the closest. -Abe On 7/13/05, Stephen Woodbridge wrote: > Abe Gillespie wrote: > > Are you sure this can be done? I'm not finding this specific type of > > query in the docs. There is queryByPoint - which seems to be the > > *closest* to what I'm looking for - but this is a classic buffer > > query. I'm looking for sorta the reverse of a buffer query. > > > > Buffer - Start point known / distance known -> returns all features > > w/i the distance from the start point. > > You can get this by requesting multiple results instead of just on > result. Set mode=MS_MULTIPLE. > > -Steve W. > > > Closest Feature - Start point known / distance unknown -> returns one > > feature that's closer than all the other features to the start point. > > > > -Abe > > > > On 7/13/05, Abe Gillespie wrote: > > > >>Yes, "as the crow flies" is fine; no routing needed. How is this done > >>in PHP MapScript? > >> > >>Thanks. > >>-Abe > >> > >>On 7/13/05, Steve Lime wrote: > >> > >>>The normal MapServer query will do this but only using "as the crow flies" distances. You use the layer tolerance to set a maximum distance. If you need to need to compute distances along an established route then that's a different story and is not something MapServer can do out of the box. > >>> > >>>Steve > >>> > >>> > >>>>>>Abe Gillespie 07/12/05 10:05 PM >>> > >>> > >>>Is there an easy way to query for the closest feature to another > >>>feature. Take for example the classic "closest ATM" query. I know > >>>where I'm at (an address point or building feature) and want the > >>>closest ATM. Can I avoid having to create a line to each ATM point > >>>from the starting point, comparing the length of each line, and > >>>keeping the shortest? > >>> > >>>Thanks. > >>>-Abe > >>> > >> > > > > From info at POGGENSEE.NET Wed Jul 13 11:30:11 2005 From: info at POGGENSEE.NET (poggensee.net) Date: Wed, 13 Jul 2005 19:30:11 +0100 Subject: Postgis-connection Message-ID: I want to use a postgis database. the geometry lies in column 'the_geom' of table 'test'. Now I got this error message: msDrawMap(): Image handling error. Failed to draw layer named 'TEST'. prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from test WHERE the_geom && setSRID('BOX3D(4494500 5258000,4680500 5444000)'::BOX3D, find_srid('','test','the_geom') )' Postgresql reports the error as 'ERROR: could not load library "C:/ms4w/apps/pgsql75win/lib/libpostgis.dll": error ' what is my mistake ??? the mapfile seems to be OK. From fwarmerdam at GMAIL.COM Wed Jul 13 10:39:42 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 13 Jul 2005 13:39:42 -0400 Subject: volumetric data from a WCS In-Reply-To: Message-ID: On 7/13/05, Norman Barker wrote: > > Hi, > > I am really asking this question on behalf of Andrew Woolf, after he raised > it in a meeting today. > > In the WCS spec it should be possible to request BBOX as x,y,z (if the data > format in the describe > coverage) supports it. This is kind of important for weather data, > currently we work around this using > the bands to be a z dimension. This isn't really true though, and leads to > problems with generalised > clients interpreting the data. > > Is it possible to extend GDAL (and hence MapServer) to use 3D/4D+ data sets? > > The bands and temporal subsetting are great, and are really fast, just a > BBOX of x,y,z would be useful. Norman, I don't think it is practical for GDAL to be truely 3D. So for the forseeable future 3D or 4D datasets will end up being treated as stacks of bands, or some other sort of collection of 2D bands or datasets. The image objects that MapServer draws into are also essentially a stack of 2D bands. In theory MapServer is more malleable in this regard, but it isn't a direction I am eager to pursue. To be honest if you want a true volumetric WCS and the "stack of bands" approach doesn't work for you, you might be better off implementing from scratch rather than trying to change the MapServer data model appropriately. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From godwin.liz at GMAIL.COM Wed Jul 13 10:53:37 2005 From: godwin.liz at GMAIL.COM (Liz Godwin) Date: Wed, 13 Jul 2005 13:53:37 -0400 Subject: Conference Materials Message-ID: Just inquiring.... When will the presentations and workshop materials be posted online from the OSGIS 2005 conference? There were often times I didn't take thorough notes because I knew the materials were coming. I simply wrote: see xxxx presentation. And often too I missed presentations because of concurrent interests. Cheers, Liz Godwin -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdport at VERITIME.COM Wed Jul 13 11:02:15 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Wed, 13 Jul 2005 14:02:15 -0400 Subject: Querying points Message-ID: My mapscript application reads in coordinates from a table and plots them on a map. I'd like to be able to use the point querying abilities of mapserver so that I can click on those points and bring up another point specific web page. In the previous version of mapserver, this wasn't possible because (at least how I understood it) points added to a map via mapscript did not have DB entries and thus could not be queried. At the time when I posed this question, I believe somebody wrote that this was fixed in the next version and I was just curious if anybody can verify that this is in fact possible in the newest version? I'm currently running mapserver version 4.4.1 For a work around, I was converting the locations of the plotted points to their pixel coordinates and making the image into a client side image map with those pixel regions mapped to the pages I wanted to bring up. I've re-written my application though using Rosa and made it much nicer but now my work around isn't really an option so I'm hoping I can use the point query function in mapscript to do what I need. Thanks for any input, Jeff From osgis.lists at GMAIL.COM Wed Jul 13 12:08:33 2005 From: osgis.lists at GMAIL.COM (David Bitner) Date: Wed, 13 Jul 2005 14:08:33 -0500 Subject: Map size dependent label/feature size Message-ID: Is there anyway that parameters for label and feature size in class definitions can be made to be dependent on the size of the image? When requesting a map at large width and heights in order to create pdf printouts, the labels and line/point features get very tiny. In this case, I would like them to be about the same when showing the map at 300dpi as when showing them at 72dpi. This would also solve the dilema when using Mapserver as a WMS using ArcMap as a WMS client by allowing the printout to use the scaled text rather than everything ending up miniscule. Thanks From teb at MALLIT.FR.UMN.EDU Wed Jul 13 12:13:18 2005 From: teb at MALLIT.FR.UMN.EDU (Thomas E Burk) Date: Wed, 13 Jul 2005 14:13:18 -0500 Subject: Conference Materials Message-ID: I am sure others are wondering too so I'll send to the list. We are working on getting everything we have up on the "new" web site, and trying again to get what we don't have. Unfortunately the task can't be given the priority we'd like to give it at the moment. So, I hesitate to give a date. We are working on it and it will get done. Thanks for your patience. Tom >X-Umn-Remote-Mta: [N] lsv-m.tc.umn.edu [160.94.23.1] #+HF+LO+NM >X-Umn-Remote-Mta: [N] zproxy.gmail.com [64.233.162.197] #+IX+NR+UF+CP (A,-) >X-Umn-Report-As-Spam: >DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type; b=QqoQ+7EU4CxzeNcbCj8I3K3BShfXis3V1kjOvqcdy1jZ+4sT3spQFlIYbdkw3+kMuSVeiDbSsZP6v 32AzEwqvwaj784I1QIrJ+aG49C0zfWP9yMYhP6ZIWh6RQG5EOrkEXuAIENpmhqNa7zsZT65YRBPjT8F DQWF3Btls+2jUys= >Mime-Version: 1.0 >Date: Wed, 13 Jul 2005 13:53:37 -0400 >From: Liz Godwin >Subject: [UMN_MAPSERVER-USERS] Conference Materials >To: MAPSERVER-USERS at lists.umn.edu > >Just inquiring.... > >When will the presentations and workshop materials be posted online from the >OSGIS 2005 conference? > >There were often times I didn't take thorough notes because I knew the >materials were coming. I simply wrote: see xxxx presentation. And often too >I missed presentations because of concurrent interests. > >Cheers, > >Liz Godwin From abe.gillespie at GMAIL.COM Wed Jul 13 12:21:28 2005 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Wed, 13 Jul 2005 15:21:28 -0400 Subject: Closest Feature Query In-Reply-To: Message-ID: Oh, great! That's not clear in the docs. And I was just finishing up my own recursive query ... heh. :) Thanks. -Abe On 7/13/05, Steve Lime wrote: > I'm not sure the exact syntax but you basically: > > 1) load the mapfile (or create in memory) > 2) create the query point > 3) use the map or layer queryByPoint methods with MS_SINGLE as the query type (returns closest feature instead of all features) > 4) process the result > > Again, you can search one layer or multiple layers. MapServer will search through multiple layers in reverse mapfile order. If nothing is found in the first then the second is searched and so on. Use layer tolerances to control fuzzy selection... > > You can easily do something like this with just the CGI and save the programming headache in many cases. > > Steve > > >>> Abe Gillespie 07/13/05 10:43 AM >>> > Yes, "as the crow flies" is fine; no routing needed. How is this done > in PHP MapScript? > > Thanks. > -Abe > > On 7/13/05, Steve Lime wrote: > > The normal MapServer query will do this but only using "as the crow flies" distances. You use the layer tolerance to set a maximum distance. If you need to need to compute distances along an established route then that's a different story and is not something MapServer can do out of the box. > > > > Steve > > > > >>> Abe Gillespie 07/12/05 10:05 PM >>> > > Is there an easy way to query for the closest feature to another > > feature. Take for example the classic "closest ATM" query. I know > > where I'm at (an address point or building feature) and want the > > closest ATM. Can I avoid having to create a line to each ATM point > > from the starting point, comparing the length of each line, and > > keeping the shortest? > > > > Thanks. > > -Abe > > > > From pmoen at STATE.ND.US Wed Jul 13 13:40:05 2005 From: pmoen at STATE.ND.US (Moen, Paul T.) Date: Wed, 13 Jul 2005 15:40:05 -0500 Subject: Raster zoom problem with ERDAS Imagine Files In-Reply-To: <931f8ea905071308236b6028f0@mail.gmail.com> Message-ID: Frank, I was able to recompile the gdal from cvs and then recompile mapserver, but the mapserv cgi no longer worked. The compile and installation seemed to go well up until the browser wouldn't load the page. The configure output and cpl_config.h file were as you said they should be. I tried the GDAL 1.2.6( not from cvs) and it worked as gdal 1.2.5 did, without the large file support. When I use cvs version, I receive no errors when hitting the site and browser just hangs and does not load the page. With no errors to go on, I guess I will update my gdal via cvs later and try again. Does that sound like my only option at the moment? On 7/13/05 10:23 AM, "Frank Warmerdam" wrote: Paul, Recent CVS snapshots of GDAL should enable large file support on MacOS X by default. In the configure output you should see a line like "checking for 64bit file io... yes" and in gdal/port/cpl_config.h you should see VSI_FSEEK64 set to fseeko on MacOS X. Best regards, Thank you for your hard work, Paul T. Moen pmoen at state.nd.us ND State Water Commission -------------- next part -------------- An HTML attachment was scrubbed... URL: From delhorbe.david at LIBERTYSURF.FR Wed Jul 13 13:41:47 2005 From: delhorbe.david at LIBERTYSURF.FR (David Delhorbe) Date: Wed, 13 Jul 2005 15:41:47 -0500 Subject: real coordinates in the SVG output ? Message-ID: Hello World ! I work with svg, PHP and PostGIS with my own scripts, because SVG in MapServer is a little hard. But the power of Mapserver to serve raster is amazing and give me hopes for the SVG output. So I have 3 questions about SVG in Mapserver : - is it possible to have the real X and Y in the svg and not the positions of the objects in the screen ? If yes, how (without template) ? I have others stuffs how need the real coodinates. - is it possible to group the object by layer, with ... (without template) - How have more than 1 layer in my SVG, (without template & query) ? I know, it?s possible to do this with template and query, but I would like do this automaticaly with WMS request Thanks again ! David Delhorbe ___________________________________ D?partement de Seine-Saint-Denis Syst?me d'information G?ographique D?paremental From fwarmerdam at GMAIL.COM Wed Jul 13 14:14:33 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 13 Jul 2005 17:14:33 -0400 Subject: Raster zoom problem with ERDAS Imagine Files In-Reply-To: Message-ID: On 7/13/05, Moen, Paul T. wrote: > Frank, > > I was able to recompile the gdal from cvs and then recompile mapserver, but > the mapserv cgi no longer worked. The compile and installation seemed to go > well up until the browser wouldn't load the page. The configure output and > cpl_config.h file were as you said they should be. > > I tried the GDAL 1.2.6( not from cvs) and it worked as gdal 1.2.5 did, > without the large file support. > > When I use cvs version, I receive no errors when hitting the site and > browser just hangs and does not load the page. With no errors to go on, I > guess I will update my gdal via cvs later and try again. Does that sound > like my only option at the moment? Paul, Sorry, I am not sure what this would be related to. Did you rebuild MapServer with the new GDAL too? C++ ABI changes in OGR mean that you can't generally substitute different versions of GDAL without rebuilding MapServer. Also, does shp2img work at the commandline? Does "mapserv -v"? When running into web environment problems, my first effort is to see if they can be reproduced in a non web environment where better error messages are often available. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From plists at PROMETHEUS.ORG.YU Wed Jul 13 14:09:54 2005 From: plists at PROMETHEUS.ORG.YU (Attila Csipa) Date: Wed, 13 Jul 2005 23:09:54 +0200 Subject: MySQL integration In-Reply-To: <2576812186CDD411BF1500508B6DCE9508A7DDFF@ecnwri1.ontario.int.ec.gc.ca> Message-ID: On Wednesday 13 July 2005 15:47, Kralidis,Tom [Burlington] wrote: > Thanks. I'm a bit confused. So the libmygis is not supported in > MapServer? AFAIK it isn't. > So shp2mysql.pl will work but libmygis will not work? Exactly - the two are very different things even though their names are similar. > Underlying question is how can one with a MySQL 4.1 database store and > retrieve spatial data with MapServer? This is described in the Wiki in detail. However - it looks that this wasn't clear enough in the wiki article - the mygis module in mapserver is _NOT_ a postgis equivalent for mysql NOR does it support mysql 4.1 native spatial operations. It is a poor man's sql connector which allows use of attribute data in any version of mysql or if you are proficient with SFSQL tools and libraries (like JTS for example), editing very simple spatial information, most certainly not for maps with large amount of geometries. Another aspect is that the mygis module in mapserver also provides join functionality for attribute data in mysql tables for template queries. So basically if you want mysql 4.1 spatial functions, or simply wish to use mysql instead of having postgis, this may not be what you need. In that case, IIRC there are two choices - GDAL/OGR via an ODBC connector, or Postgis. From ed at TOPOZONE.COM Wed Jul 13 17:25:37 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 13 Jul 2005 20:25:37 -0400 Subject: Splitting/tiling a raster - gdaladdo - [Summary] Message-ID: Stefan - If you really care about performance, get rid of that JPEG. It's just about the poorest-performing raster data type for mapping applications. Converting it to TIFF will help, especially for map views that display a portion of the image from each file. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Stefan Schwarzer Sent: Wednesday, July 13, 2005 5:25 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Splitting/tiling a raster - gdaladdo - [Summary] Well, this was very useful. Just for the records (and other users with similar questions): 1) I used a 200 MB JPEG image for building the overviews as indicated below by Bart. 2) gdaladdo -r average xxx.jpg 2 4 8 16 (Small error message here. But still it worked its way through. ERROR 6: The JPEG driver does not support update access to existing datasets. Corrupt JPEG data: 14964 extraneous bytes before marker 0xed 0...10...20...30...40...50...60...70...80...90...100 - done.) 3) An additional file with the extension xxx.jpg.ovr was created. 4) This file name should appear in the map file for that specific layer. 5) The total extent display is really fast. And the zooms are being generated very quickly too. 6) Nice, really nice. Thanks a lot... > You can build overviews with gdaladdo: > > http://www.gdal.org/gdal_utilities.html#gdaladdo > > Eg: > > gdaladdo -r average abc.tif 2 4 8 16 > > Try that first I would say. > > Best regards, > Bart > > Bart van den Eijnden > Syncera IT Solutions > Postbus 270 > 2600 AG DELFT > > tel.nr.: 015-7512436 > email: BEN at Syncera-ITSolutions.nl > > >>>> Stefan Schwarzer 07/12/05 12:02pm >>>> >>> >>>> > > >> Which format is your raster currently in? >> > > TIF or JPEG > > >> >> If it is performance, building overviews could also help for certain >> situations. >> > > So, how can I build overviews then? > > >> >> At which scales do you display your raster? Also at full extent? >> > > From full extent (at the beginning - a couple of hundreds km wide) to > then, when zooming, a couple of km wide. > > >> >> Best regards, >> Bart >> >> Bart van den Eijnden >> Syncera IT Solutions >> Postbus 270 >> 2600 AG DELFT >> >> tel.nr.: 015-7512436 >> email: BEN at Syncera-ITSolutions.nl >> >> >> >>>>> Stefan Schwarzer 07/12/05 11:55am >>>>> >>> >>>>> >>>>> >> Thanks Bart for the quick response, >> >> aehh, yes, performance. But perhaps there is no need to split it up? >> Is it that what you mean? Gush, somehow I don't really get it how >> this tiling works, stupid me.... >> >> Stef >> >> >> >> >>> Hi Stefan, >>> >>> since gdal_translate has the option to select a subwindow (srcwin) >>> from your sourcefile, you can use it to split your raster file into >>> subimages. >>> >>> http://www.gdal.org/gdal_utilities.html#gdal_translate >>> >>> After that, you do use gdaltindex to create a tileindex. That part >>> is described in the raster howto: >>> >>> http://mapserver.gis.umn.edu/doc44/raster-howto.html >>> >>> Btw, what is the exact reason you want to split up your raster? >>> Performance? >>> >>> Best regards, >>> Bart >>> >>> Bart van den Eijnden >>> Syncera IT Solutions >>> Postbus 270 >>> 2600 AG DELFT >>> >>> tel.nr.: 015-7512436 >>> email: BEN at Syncera-ITSolutions.nl >>> >>> >>> >>> >>>>>> Stefan Schwarzer 07/12/05 11:39am >>>>>> >>> >>>>>> >>>>>> >>>>>> >>> Hi, >>> >>> this subject is really not new. But I haven't found any real how-to >>> for the whole story. Perhaps somebody could clarify the steps >>> needed. >>> when starting with an image of some larger size and when ending with >>> a tiled raster. Cause I guess that' what has to be done. >>> - At least I have now one single big raster. As far as I understood >>> I need to split the big image into smaller ones. But how? >>> - And then I can use gdaltindex to build the shapefile to define the >>> tiles. Right? >>> >>> Thanks for clarification. >>> >>> >>> >> >> > From ajr at BRS.GOV.AU Wed Jul 13 22:19:25 2005 From: ajr at BRS.GOV.AU (Antti Roppola) Date: Thu, 14 Jul 2005 00:19:25 -0500 Subject: Google maps as a Mapserver interface Message-ID: Hi all, Has anybody looked at using Google maps as a UI for Mapserver or WMS? I had a look through the API and ended up re-purposing the marker PNG sice there was no apparent way of importing base layers different to those Google provides. I'll post a URL once I start experimentally serving some data in the same projection as Google's base and fix up a few warts in the example, i.e. it Currently doesn?t clean up after itself or handle zoom events properly. WFS ought to be a case of an XSLT to munge features into Google's format. Cheers, Antti var map = new GMap(document.getElementById("map")); map.addControl(new GSmallMapControl()); map.centerAndZoom(new GPoint(139.2, -34), 9); function importMS() { map.removeOverlay(marker); var bounds = map.getBoundsLatLng(); var myxmax = bounds.maxX; var myymax = bounds.maxY; var myxmin = bounds.minX; var myymin = bounds.minY; var myext = '&mapext=' + myxmin + '+' + myymin + '+' + myxmax + '+' + myymax; var icon = new GIcon(); var mapserv = 'http://www.some.mapserv/url' + myext; var markershadurl = "http://labs.google.com/ridefinder/images/mm_20_shadow.png"; icon.image = mapserv; icon.shadow = markershadurl; icon.iconSize = new GSize(500,400); icon.shadowSize = new GSize(22,20); icon.iconAnchor = new GPoint(250,200); icon.infoWindowAnchor = new GPoint(5,1); var marker = new GMarker(new GPoint((myxmin + ((myxmax - myxmin)/2)), (myymax - ((myymax - myymin)/2))), icon); map.addOverlay(marker); } importMS(); GEvent.addListener(map, "moveend", function() { importMS(); }); From sc0rp10nau at YAHOO.COM.AU Wed Jul 13 23:19:14 2005 From: sc0rp10nau at YAHOO.COM.AU (Ajay Ranipeta) Date: Thu, 14 Jul 2005 01:19:14 -0500 Subject: Java Mapscript version 4.6 Message-ID: Hi list, Anyone help me out here, I'm running windows, and I don't have a copy of VC++, so I'm in a bind here. Has someone pre-compiled the new version of java mapscript for mapserver 4.6. I would like to fix the problem specified below, and i'm hoping the new version will fix it. thx Ajay On Tue, 12 Jul 2005 09:57:04 -0500, Ajay Ranipeta wrote: >Hi list (and Sean Gillies), > >Got a (known) problem, and (desperately and urgently) need a fix (or even >info). I'm using java mapscript on windows, and after zooming in a few >times, i get the following error under the tomcat logs: > >================================================== >java.lang.UnknownError: Failed to parse expression > at edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(Native Method) > at edu.umn.gis.mapscript.mapObj.draw(mapObj.java:397) >================================================== > >Now I know there is a similar error with layers (bug 1266: >http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1266), but i suspect it is >the same problem. > >I'm using Java/Mapscript v.4.4 (from hobu's site). While the bug report says >that it'll be fixed with version 4.6, I was just wondering if it is fixed >with the new version? If so, does anyone have a copy of new version of java >mapscript? If not, anyone kind enough to let me know how to compile one. I >don't have a copy of Visual C++, (and hence a pre-compiled version would be >much appritiated). > >Any help would be greatly appritiated. > >tia > >cheers, >Ajay From Dejan.Gambin at PULA.HR Wed Jul 13 23:20:12 2005 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Thu, 14 Jul 2005 08:20:12 +0200 Subject: Generating reference map image Message-ID: Hi, I have a problem that my reference map position is not identical to the position on the main map. The difference is not big but I would like to know why. Adn I would like to know what is the best and simplest way to create the reference map image? I have created it as follows: 1. I opened my main map, selecting some layers I would like to be seen on the reference map (such as my city borders) 2. I have zoomed out to the full extent 3. I have copied this last created image from mapserver image folder (IMAGEPATH) to the folder where the reference map image resides and renamed it to the name of reference image. So I let the browser reduce the reference image size to that set in mapfile. Any suggestions? thanks dg From mapserver at HOTMAIL.COM Wed Jul 13 23:42:40 2005 From: mapserver at HOTMAIL.COM (N M) Date: Thu, 14 Jul 2005 06:42:40 +0000 Subject: place a point in the map In-Reply-To: Message-ID: Thanks a lot David, Now it runs perfectly!!! I used de EXTENT coordinates that appears in ogrinfo and thats all. Thank you very much. Nuri > >Nuri, > >What URL are you using to call your map? If it doesn't include >'&layer=myvirtuallayer', you should set the LAYER STATUS to DEFAULT in the >Map file. > >Also, the layer name in your map file doesn't match the one in your ogrinfo >output (mapa21). I realize that you may have renamed the layer, but make >sure that the names match. > >I also don't see a SYMBOLSET or FONTSET line in your map file to tell >MapServer where to look for symbols or fonts. > >David. > >David Fawcett >Minnesota Office of Environmental Assistance >david.fawcett at moea.state.mn.us >651.215.0200 > > >-----Original Message----- >From: N M [mailto:mapserver at hotmail.com] >Sent: Wednesday, July 13, 2005 3:58 AM >To: David.Fawcett at state.mn.us; MAPSERVER-USERS at lists.umn.edu >Subject: RE: [UMN_MAPSERVER-USERS] place a point in the map > > >Hi David, > >I tested my application with an Access database. > >It contains a table named taula >long lat >15 28 >25 50 >28 75 >60 100 > >I created a DSN link named mapa21mdb > >My mapa21.ovf file is: > > > > ODBC:mapa21mdb > taula > > wkbPoint > > > > > >Then I tryed connection executing: ogrinfo >d:\webserver\mapserver2\mapa21.ovf -ro >and result was: > >INFO: Open of `d:\webserver\mapserver2\mapa21.ovf' >using driver `VRT' successful. >1: mapa21 (Point) > > > >Later I tried: ogrinfo d:\webserver\mapserver2\mapa21.ovf mapa21 -ro >and result was: > >INFO: Open of `d:\webserver\mapserver2\mapa21.ovf' >using driver `VRT' successful. > >Layer name: mapa21 >Geometry: Point >Feature Count: 4 >Extent: (15.000000, 28.000000) - (60.000000, 100.000000) >Layer SRS WKT: >(unknown) >long: String (50.0) >lat: String (50.0) >OGRFeature(mapa21):0 > long (String) = 15 > lat (String) = 28 > POINT (15 28) > >OGRFeature(mapa21):1 > long (String) = 25 > lat (String) = 50 > POINT (25 50) > >OGRFeature(mapa21):2 > long (String) = 38 > lat (String) = 75 > POINT (38 75) > >OGRFeature(mapa21):3 > long (String) = 60 > lat (String) = 100 > POINT (60 100) > > > >Then I created my map: > >MAP > IMAGETYPE PNG > EXTENT 15.000000 28.000000 60.000000 100.000000 > SIZE 500 350 > #SHAPEPATH "data" > IMAGECOLOR 255 180 0 > > # Start of LAYER DEFINITIONS >--------------------------------------------- > > LAYER > NAME "MyVirtualLayer" > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "mapa21.ovf" > DATA "taula" # the name of the OGRVrtLayer > STATUS ON > LABELITEM long #may need to use table.name or just name depending on >your OVF file. > PROJECTION > "init=epsg:4326" > END > > CLASS > SYMBOL 1 > SIZE 6 > COLOR 255 0 0 > LABEL > SIZE MEDIUM > TYPE BITMAP > COLOR 0 0 0 > END > END >END > > # End of LAYER DEFINITIONS ------------------------------- >END # end of map file > > >The only thing that appears in the screen is a yellow rectangle, nothing >else. Could be the wrong extent values? > >I thank you for your help. > >Nuri > >_________________________________________________________________ >Moda para esta temporada. Ponte al d?a de todas las tendencias. >http://www.msn.es/Mujer/moda/default.asp > _________________________________________________________________ Hor?scopo, tarot, numerolog?a... Escucha lo que te dicen los astros. http://astrocentro.msn.es/ From nbarker at RSINC.COM Thu Jul 14 01:14:45 2005 From: nbarker at RSINC.COM (Norman Barker) Date: Thu, 14 Jul 2005 09:14:45 +0100 Subject: Google maps as a Mapserver interface Message-ID: Attached is a stylesheet to take a layer from a WMS and put it in Google Earth (I did this very quickly, so it isn't that polished). The only required parameter is layer so if you have capabilities document on disk the use with Xalan is java -cp lib\xalan.jar;lib\xercesImpl.jar;lib\xml-apis.jar org.apache.xalan.xslt.Process -XSL earthWMS.xsl -IN wms_capabilities.xml -PARAM layer global_mosaic -OUT result.kml I tested it with the OnEarth global mosaic. Hope you have fun, Norman -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Antti Roppola Sent: Thursday, July 14, 2005 6:19 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Google maps as a Mapserver interface Hi all, Has anybody looked at using Google maps as a UI for Mapserver or WMS? I had a look through the API and ended up re-purposing the marker PNG sice there was no apparent way of importing base layers different to those Google provides. I'll post a URL once I start experimentally serving some data in the same projection as Google's base and fix up a few warts in the example, i.e. it Currently doesn't clean up after itself or handle zoom events properly. WFS ought to be a case of an XSLT to munge features into Google's format. Cheers, Antti var map = new GMap(document.getElementById("map")); map.addControl(new GSmallMapControl()); map.centerAndZoom(new GPoint(139.2, -34), 9); function importMS() { map.removeOverlay(marker); var bounds = map.getBoundsLatLng(); var myxmax = bounds.maxX; var myymax = bounds.maxY; var myxmin = bounds.minX; var myymin = bounds.minY; var myext = '&mapext=' + myxmin + '+' + myymin + '+' + myxmax + '+' + myymax; var icon = new GIcon(); var mapserv = 'http://www.some.mapserv/url' + myext; var markershadurl = "http://labs.google.com/ridefinder/images/mm_20_shadow.png"; icon.image = mapserv; icon.shadow = markershadurl; icon.iconSize = new GSize(500,400); icon.shadowSize = new GSize(22,20); icon.iconAnchor = new GPoint(250,200); icon.infoWindowAnchor = new GPoint(5,1); var marker = new GMarker(new GPoint((myxmin + ((myxmax - myxmin)/2)), (myymax - ((myymax - myymin)/2))), icon); map.addOverlay(marker); } importMS(); GEvent.addListener(map, "moveend", function() { importMS(); }); -------------- next part -------------- A non-text attachment was scrubbed... Name: earthWMS.xsl Type: application/octet-stream Size: 2609 bytes Desc: earthWMS.xsl URL: From mapserver at HOTMAIL.COM Thu Jul 14 01:16:14 2005 From: mapserver at HOTMAIL.COM (N M) Date: Thu, 14 Jul 2005 08:16:14 +0000 Subject: place a point in the map In-Reply-To: Message-ID: Hi David, Only one more question, do you know how could I find the coordinates of tiff file to georeference it? Now it runs because I tried values until I found the good ones, but I supose that there is a method to obtain the results that match database and tiff file. Thank you. Nuri _________________________________________________________________ M?viles, DVD, c?maras digitales, coleccionismo... Con unas ofertas que ni te imaginas. http://www.msn.es/Subastas/ From piero.cavalieri at HEIDI.IT Thu Jul 14 03:21:19 2005 From: piero.cavalieri at HEIDI.IT (Piero Cavalieri) Date: Thu, 14 Jul 2005 05:21:19 -0500 Subject: OGRVRTDataSource and password Message-ID: Hi all, I use VRT datasource to connect to a MSSQL Server. If password is set wrong I have output from MapServer: ...Unable to initialize ODBC connection to DSN for **/****@Archimp_STAGE... Where **/**** are userID/wrongPasswd. i suppose if there is somelse problem in OGRVRTDataSource settings, correct user/password are send to web page. How can I suppress errors ? Thanks Piero From BEN at SYNCERA-ITSOLUTIONS.NL Thu Jul 14 05:15:49 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Thu, 14 Jul 2005 14:15:49 +0200 Subject: OGR styleitem auto and legends Message-ID: Hi list, can legendgraphics be produced from OGR styleitem "auto" layers? I can't get this to work. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl From woodbri at SWOODBRIDGE.COM Thu Jul 14 05:31:39 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 14 Jul 2005 08:31:39 -0400 Subject: [Fwd: ostgresql reports the error as 'ERROR: could not load library] Message-ID: This is a good example of why you need to reply to the list. I know this is a common problem but I'm not a windows user for the most part. -------- Original Message -------- Subject: ostgresql reports the error as 'ERROR: could not load library Date: Thu, 14 Jul 2005 09:22:54 +0100 From: poggensee.net To: thank you for your answer. the file is located on my system. But I have no experience with Apache. How can I change permissions ??? Martin From pgiencke at GLC.ORG Thu Jul 14 05:59:21 2005 From: pgiencke at GLC.ORG (Peter Giencke) Date: Thu, 14 Jul 2005 08:59:21 -0400 Subject: real coordinates in the SVG output ? In-Reply-To: Message-ID: David, With regards to your real-world coordinates issue, a little Javascript can help you with this, carto.net has a handy JS example to show you the way: http://www.carto.net/papers/svg/samples/show_coordinates.js -pete Pete Giencke Product Specialist Data and Information Management Great Lakes Commission -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of David Delhorbe Sent: Wednesday, July 13, 2005 4:42 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] real coordinates in the SVG output ? Hello World ! I work with svg, PHP and PostGIS with my own scripts, because SVG in MapServer is a little hard. But the power of Mapserver to serve raster is amazing and give me hopes for the SVG output. So I have 3 questions about SVG in Mapserver : - is it possible to have the real X and Y in the svg and not the positions of the objects in the screen ? If yes, how (without template) ? I have others stuffs how need the real coodinates. - is it possible to group the object by layer, with ... (without template) - How have more than 1 layer in my SVG, (without template & query) ? I know, it?s possible to do this with template and query, but I would like do this automaticaly with WMS request Thanks again ! David Delhorbe ___________________________________ D?partement de Seine-Saint-Denis Syst?me d'information G?ographique D?paremental From pmoen at STATE.ND.US Thu Jul 14 06:00:05 2005 From: pmoen at STATE.ND.US (Moen, Paul T.) Date: Thu, 14 Jul 2005 08:00:05 -0500 Subject: Raster zoom problem with ERDAS Imagine Files In-Reply-To: <931f8ea9050713141479cca9f8@mail.gmail.com> Message-ID: Frank, On 7/13/05 4:14 PM, "Frank Warmerdam" wrote: Paul, Sorry, I am not sure what this would be related to. Did you rebuild MapServer with the new GDAL too? C++ ABI changes in OGR mean that you can't generally substitute different versions of GDAL without rebuilding MapServer. Also, does shp2img work at the commandline? Does "mapserv -v"? When running into web environment problems, my first effort is to see if they can be reproduced in a non web environment where better error messages are often available. Best regards, I rebuild MapServer after every time I build and install a different GDAL. I tried your suggestions from the command line and "mapserv -v" gave me MapServer version 4.6.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT INPUT=TIFF INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE But, shp2img doesn't produce any output it just hangs. The following is the terminal output. [swc2:/MapServerSource/src/mapserver-4.6.0] pmoen% ./shp2img -m /Applications/4DWebSTAR/WebServer/DefaultSite/mapfiles/test.map -l North -o test.png The command prompt never returns when running shp2img. The only way to get the command prompt back is to ctrl-c. If I try the GDAL 1.2.6 (non cvs version) shp2img works fine. It returns me to the command prompt immediately and exports the attached image. It is only with the cvs version that the problem occurs. test.map is a very simple mapfile with one layer, "North" which is a polygon of North Dakota. Thank you for your patience and time, Paul T. Moen pmoen at state.nd.us ND State Water Commission -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test.png Type: application/octet-stream Size: 4045 bytes Desc: not available URL: From David.Fawcett at STATE.MN.US Thu Jul 14 06:18:53 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Thu, 14 Jul 2005 08:18:53 -0500 Subject: place a point in the map Message-ID: Nuri, I don't work with rasters much, but GDALINFO should be able to extract this information from your tiff file. http://www.gdal.org/gdal_utilities.html#gdalinfo David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett at moea.state.mn.us 651.215.0200 -----Original Message----- From: N M [mailto:mapserver at hotmail.com] Sent: Thursday, July 14, 2005 3:16 AM To: David.Fawcett at state.mn.us; MAPSERVER-USERS at lists.umn.edu Subject: RE: [UMN_MAPSERVER-USERS] place a point in the map Hi David, Only one more question, do you know how could I find the coordinates of tiff file to georeference it? Now it runs because I tried values until I found the good ones, but I supose that there is a method to obtain the results that match database and tiff file. Thank you. Nuri _________________________________________________________________ M?viles, DVD, c?maras digitales, coleccionismo... Con unas ofertas que ni te imaginas. http://www.msn.es/Subastas/ From BEN at SYNCERA-ITSOLUTIONS.NL Thu Jul 14 06:47:28 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Thu, 14 Jul 2005 15:47:28 +0200 Subject: tileindex for MapInfo TAB files Message-ID: Hi list, I am trying to use a tileindex I created with ogrtindex with Mapserver. The tileindex references 7 Mapinfo TAB files. I get the following errors: [14-Jul-2005 15:25:26] PHP Warning: [MapServer Error]: msSHPOpenFile(): (D:\ms4w\apps\stragisweb\htdocs\sites\westland\data\accres\groen\GroenDeLier_text.tab) in D:\ms4w\apps\stragisweb\htdocs\common\chameleon\htdocs\common\wrapper\drawmap.php on line 533 The files do exist there, is Mapserver trying to open it up through the native shapefile driver instead of through OGR? I use the following LAYER definition: TYPE ANNOTATION TILEINDEX "accres\groen\groen_text" CONNECTIONTYPE OGR Thanks in advance. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl From ezequias at RECIFE.PE.GOV.BR Thu Jul 14 07:39:32 2005 From: ezequias at RECIFE.PE.GOV.BR (Ezequias Rodrigues da Rocha) Date: Thu, 14 Jul 2005 11:39:32 -0300 Subject: Problem to load images Message-ID: Hi list, My browser reported the error above: msDrawRaster(): Unable to access file. (raster/recorte_01.tif) Any suggestions ? all my files are -rwxrwxrwx =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Atenciosamente (Sincerely) Ezequias Rodrigues da Rocha * www.recife.pe.gov.br =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- A pior das democracias ainda ? melhor do que a melhor das ditaduras The worst of democracies is still better than the better of dictatorships MSN Messenger: ezequias at hotmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: msn.JPG Type: image/jpeg Size: 1111 bytes Desc: not available URL: From margottid at COMUNE.LUGO.RA.IT Thu Jul 14 07:30:17 2005 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Thu, 14 Jul 2005 16:30:17 +0200 Subject: Generating reference map image In-Reply-To: Message-ID: I suggest you to manually resize the image you copied (from the full extent map) to widht & height you specified in your mapfile. Or, if you want the image resized by the browser, you should modify the values of the reference image size in the mapfile. In any case, width and height declared in the mapfile should reflect the real values of the "real" reference image (I mean, the .GIF, .PNG or .JPG file used by Mapserver to generate the reference map), and have the same proportion as the mapsize. Daniele -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gambin Dejan Sent: Thursday, July 14, 2005 8:20 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Generating reference map image Hi, I have a problem that my reference map position is not identical to the position on the main map. The difference is not big but I would like to know why. Adn I would like to know what is the best and simplest way to create the reference map image? I have created it as follows: 1. I opened my main map, selecting some layers I would like to be seen on the reference map (such as my city borders) 2. I have zoomed out to the full extent 3. I have copied this last created image from mapserver image folder (IMAGEPATH) to the folder where the reference map image resides and renamed it to the name of reference image. So I let the browser reduce the reference image size to that set in mapfile. Any suggestions? thanks dg From lluisgm at GMAIL.COM Thu Jul 14 07:54:27 2005 From: lluisgm at GMAIL.COM (=?ISO-8859-1?Q?Llu=EDs_Garcia_i_Mestres?=) Date: Thu, 14 Jul 2005 16:54:27 +0200 Subject: Generating reference map image In-Reply-To: Message-ID: Hi, The way to get the reference is ok for me, I've done the same. You should reduce the size of the image to the expected size of the reference, and keeping the same proportion from your main map. As an example, my main map is 500x400 and the reference is 150x120 (3,333 less times the original size) 2005/7/14, Gambin Dejan : > > Hi, > > I have a problem that my reference map position is not identical to the > position on the main map. The difference is not big but I would like to > know why. Adn I would like to know what is the best and simplest way to > create the reference map image? > > I have created it as follows: > > 1. I opened my main map, selecting some layers I would like to be seen > on the reference map (such as my city borders) > 2. I have zoomed out to the full extent > 3. I have copied this last created image from mapserver image folder > (IMAGEPATH) to the folder where the reference map image resides and > renamed it to the name of reference image. So I let the browser reduce > the reference image size to that set in mapfile. > > Any suggestions? > > thanks > > dg > -- Llu?s Garcia i Mestres, lluisgm at gmail.com lluisgm at hotmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Thu Jul 14 08:00:07 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 14 Jul 2005 11:00:07 -0400 Subject: Problem to load images Message-ID: Ezequias - This is probably due to the paths to the data. Your error message reports a relative path, which depends on the "current directory" on your server. It is easier to always use full pathnames (starting with a "/") to your data files when you're getting started. Try putting the whole path in your map file to see if that solves the problem. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ezequias Rodrigues da Rocha Sent: Thursday, July 14, 2005 10:40 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Problem to load images Hi list, My browser reported the error above: msDrawRaster(): Unable to access file. (raster/recorte_01.tif) Any suggestions ? all my files are -rwxrwxrwx =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Atenciosamente (Sincerely) Ezequias Rodrigues da Rocha * www.recife.pe.gov.br =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- A pior das democracias ainda ? melhor do que a melhor das ditaduras The worst of democracies is still better than the better of dictatorships MSN Messenger: ezequias at hotmail.com Add FUN to your email - CLICK HERE! -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: msn.JPG Type: image/jpeg Size: 1111 bytes Desc: msn.JPG URL: From ed at TOPOZONE.COM Thu Jul 14 08:48:12 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 14 Jul 2005 11:48:12 -0400 Subject: Problem to load images Message-ID: Ezequias - Please always reply to the whole list, so everyone can help - thanks! MapServer may be strange but it should be consistent. Do you have a TILEINDEX for these 116 images or are they each specified in a separate LAYER in your map file? It doesn't matter where the images are (if the permissions are OK) but you should start by putting the full path to each image in either the map file LAYER block or in the TILEINDEX shapefile. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 ________________________________ From: Ezequias Rodrigues da Rocha [mailto:ezequias at recife.pe.gov.br] Sent: Thursday, July 14, 2005 11:59 AM To: Ed McNierney Subject: Res: Re: [UMN_MAPSERVER-USERS] Problem to load images Ed, Mapsever works strange. Some file works on the cgi-bin folder others on cgi-bin/raster. I am working with 116 images too. I don't know if it makes any difference. Sincerely Ezequias -------Mensagem original------- De: Ed McNierney Data: 07/14/05 11:44:53 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] Problem to load images Ezequias - This is probably due to the paths to the data. Your error message reports a relative path, which depends on the "current directory" on your server. It is easier to always use full pathnames (starting with a "/") to your data files when you're getting started. Try putting the whole path in your map file to see if that solves the problem. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ezequias Rodrigues da Rocha Sent: Thursday, July 14, 2005 10:40 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Problem to load images Hi list, My browser reported the error above: msDrawRaster(): Unable to access file. (raster/recorte_01.tif) Any suggestions ? all my files are -rwxrwxrwx =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Atenciosamente (Sincerely) Ezequias Rodrigues da Rocha * www.recife.pe.gov.br =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- A pior das democracias ainda ? melhor do que a melhor das ditaduras The worst of democracies is still better than the better of dictatorships MSN Messenger: ezequias at hotmail.com Add FUN to your email - CLICK HERE! -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: msn1.JPG Type: image/jpeg Size: 1111 bytes Desc: msn1.JPG URL: From ezequias at RECIFE.PE.GOV.BR Thu Jul 14 09:07:45 2005 From: ezequias at RECIFE.PE.GOV.BR (Ezequias Rodrigues da Rocha) Date: Thu, 14 Jul 2005 13:07:45 -0300 Subject: Res: Re: [UMN_MAPSERVER-USERS] Problem to load images Message-ID: I have no TILEINDEX and I don't know how to use it on mapserver. My map file have yes 116 layers. Sincerely Ezequias -------Mensagem original------- De: Ed McNierney Data: 07/14/05 12:33:15 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] Problem to load images Ezequias - Please always reply to the whole list, so everyone can help - thanks! MapServer may be strange but it should be consistent. Do you have a TILEINDEX for these 116 images or are they each specified in a separate LAYER in your map file? It doesn't matter where the images are (if the permissions are OK) but you should start by putting the full path to each image in either the map file LAYER block or in the TILEINDEX shapefile. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 From: Ezequias Rodrigues da Rocha [mailto:ezequias at recife.pe.gov.br] Sent: Thursday, July 14, 2005 11:59 AM To: Ed McNierney Subject: Res: Re: [UMN_MAPSERVER-USERS] Problem to load images Ed, Mapsever works strange. Some file works on the cgi-bin folder others on cgi-bin/raster. I am working with 116 images too. I don't know if it makes any difference. Sincerely Ezequias -------Mensagem original------- De: Ed McNierney Data: 07/14/05 11:44:53 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] Problem to load images Ezequias - This is probably due to the paths to the data. Your error message reports a relative path, which depends on the "current directory" on your server. It is easier to always use full pathnames (starting with a "/") to your data files when you're getting started. Try putting the whole path in your map file to see if that solves the problem. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ezequias Rodrigues da Rocha Sent: Thursday, July 14, 2005 10:40 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Problem to load images Hi list, My browser reported the error above: msDrawRaster(): Unable to access file. (raster/recorte_01.tif) Any suggestions ? all my files are -rwxrwxrwx =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Atenciosamente (Sincerely) Ezequias Rodrigues da Rocha * www.recife.pe.gov.br =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- A pior das democracias ainda ? melhor do que a melhor das ditaduras The worst of democracies is still better than the better of dictatorships MSN Messenger: ezequias at hotmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: msn11.JPG Type: image/jpeg Size: 1111 bytes Desc: not available URL: From ed at TOPOZONE.COM Thu Jul 14 08:57:27 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 14 Jul 2005 11:57:27 -0400 Subject: Res: Re: [UMN_MAPSERVER-USERS] Problem to load images Message-ID: Ezequias - OK - you will want to get to a TILEINDEX, I think, if your layers are simply separate images that all belong together as a single set of one type of image. But you don't need to worry about that now. Just make sure the DATA statement in each LAYER specifies the full pathname. I suggest you try to get ONE image working properly first, then get the other 115 working. Did you have one working at all? - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ezequias Rodrigues da Rocha Sent: Thursday, July 14, 2005 12:08 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] Problem to load images I have no TILEINDEX and I don't know how to use it on mapserver. My map file have yes 116 layers. Sincerely Ezequias -------Mensagem original------- De: Ed McNierney Data: 07/14/05 12:33:15 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] Problem to load images Ezequias - Please always reply to the whole list, so everyone can help - thanks! MapServer may be strange but it should be consistent. Do you have a TILEINDEX for these 116 images or are they each specified in a separate LAYER in your map file? It doesn't matter where the images are (if the permissions are OK) but you should start by putting the full path to each image in either the map file LAYER block or in the TILEINDEX shapefile. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 ________________________________ From: Ezequias Rodrigues da Rocha [mailto:ezequias at recife.pe.gov.br] Sent: Thursday, July 14, 2005 11:59 AM To: Ed McNierney Subject: Res: Re: [UMN_MAPSERVER-USERS] Problem to load images Ed, Mapsever works strange. Some file works on the cgi-bin folder others on cgi-bin/raster. I am working with 116 images too. I don't know if it makes any difference. Sincerely Ezequias -------Mensagem original------- De: Ed McNierney Data: 07/14/05 11:44:53 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] Problem to load images Ezequias - This is probably due to the paths to the data. Your error message reports a relative path, which depends on the "current directory" on your server. It is easier to always use full pathnames (starting with a "/") to your data files when you're getting started. Try putting the whole path in your map file to see if that solves the problem. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ezequias Rodrigues da Rocha Sent: Thursday, July 14, 2005 10:40 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Problem to load images Hi list, My browser reported the error above: msDrawRaster(): Unable to access file. (raster/recorte_01.tif) Any suggestions ? all my files are -rwxrwxrwx =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Atenciosamente (Sincerely) Ezequias Rodrigues da Rocha * www.recife.pe.gov.br =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- A pior das democracias ainda ? melhor do que a melhor das ditaduras The worst of democracies is still better than the better of dictatorships MSN Messenger: ezequias at hotmail.com Add FUN to your email - CLICK HERE! -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: msn11.JPG Type: image/jpeg Size: 1111 bytes Desc: msn11.JPG URL: From ezequias at RECIFE.PE.GOV.BR Thu Jul 14 09:34:23 2005 From: ezequias at RECIFE.PE.GOV.BR (Ezequias Rodrigues da Rocha) Date: Thu, 14 Jul 2005 13:34:23 -0300 Subject: Res: RE: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] Problem to load images Message-ID: Ed, It is working now, but let me say what occours: 1- I have the image on the cgi-bin folder 2- My map file is: shapepath "/var/www/cgi-bin/" LAYER NAME "Imagem23" data "recorte_23.tif" STATUS default TYPE RASTER PROCESSING "DITHER=YES" PROCESSING "BANDS=1,2,3" END 3 - The error reported when I try to load on the Browser is: msDrawMap(): Image handling error. Failed to draw layer named Imagem23'. msDrawRaster(): Unable to access file. (recorte_23.tif) 4 - a) I copy the image to the folder /raster b) Change the LAYER parameter to: data "raster/recorte_23.tif" 5- The image appears on browser If I didn't make the step 4a the message on step 3 will be repeated. Does it make any sense ? Sincerely Ezequias -------Mensagem original------- De: Ed McNierney Data: 07/14/05 12:41:47 Para: Ezequias Rodrigues da Rocha Cc: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: RE: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] Problem to load images Ezequias - OK - you will want to get to a TILEINDEX, I think, if your layers are simply separate images that all belong together as a single set of one type of image. But you don't need to worry about that now. Just make sure the DATA statement in each LAYER specifies the full pathname. I suggest you try to get ONE image working properly first, then get the other 115 working. Did you have one working at all? - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ezequias Rodrigues da Rocha Sent: Thursday, July 14, 2005 12:08 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] Problem to load images I have no TILEINDEX and I don't know how to use it on mapserver. My map file have yes 116 layers. Sincerely Ezequias -------Mensagem original------- De: Ed McNierney Data: 07/14/05 12:33:15 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] Problem to load images Ezequias - Please always reply to the whole list, so everyone can help - thanks! MapServer may be strange but it should be consistent. Do you have a TILEINDEX for these 116 images or are they each specified in a separate LAYER in your map file? It doesn't matter where the images are (if the permissions are OK) but you should start by putting the full path to each image in either the map file LAYER block or in the TILEINDEX shapefile. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 From: Ezequias Rodrigues da Rocha [mailto:ezequias at recife.pe.gov.br] Sent: Thursday, July 14, 2005 11:59 AM To: Ed McNierney Subject: Res: Re: [UMN_MAPSERVER-USERS] Problem to load images Ed, Mapsever works strange. Some file works on the cgi-bin folder others on cgi-bin/raster. I am working with 116 images too. I don't know if it makes any difference. Sincerely Ezequias -------Mensagem original------- De: Ed McNierney Data: 07/14/05 11:44:53 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] Problem to load images Ezequias - This is probably due to the paths to the data. Your error message reports a relative path, which depends on the "current directory" on your server. It is easier to always use full pathnames (starting with a "/") to your data files when you're getting started. Try putting the whole path in your map file to see if that solves the problem. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ezequias Rodrigues da Rocha Sent: Thursday, July 14, 2005 10:40 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Problem to load images Hi list, My browser reported the error above: msDrawRaster(): Unable to access file. (raster/recorte_01.tif) Any suggestions ? all my files are -rwxrwxrwx =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Atenciosamente (Sincerely) Ezequias Rodrigues da Rocha * www.recife.pe.gov.br =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- A pior das democracias ainda ? melhor do que a melhor das ditaduras The worst of democracies is still better than the better of dictatorships MSN Messenger: ezequias at hotmail.com From rjames57 at YAHOO.COM Thu Jul 14 09:32:10 2005 From: rjames57 at YAHOO.COM (Randy James) Date: Thu, 14 Jul 2005 09:32:10 -0700 Subject: Res: RE: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] Problem to load images In-Reply-To: <42D6940F.000009.02212@DC_EZEQUIAS> Message-ID: could be the permissions of the cgi-bin folder? Are the permissions different for the /raster folder? Randy --- Ezequias Rodrigues da Rocha wrote: > Ed, > > It is working now, but let me say what occours: > > 1- I have the image on the cgi-bin folder > 2- My map file is: > shapepath "/var/www/cgi-bin/" > LAYER > NAME "Imagem23" > data "recorte_23.tif" > STATUS default > TYPE RASTER > PROCESSING "DITHER=YES" > PROCESSING "BANDS=1,2,3" > END > 3 - The error reported when I try to load on the Browser is: > > msDrawMap(): Image handling error. Failed to draw layer named > Imagem23'. > msDrawRaster(): Unable to access file. (recorte_23.tif) > > 4 - a) I copy the image to the folder /raster > b) Change the LAYER parameter to: > data "raster/recorte_23.tif" > > 5- The image appears on browser > > If I didn't make the step 4a the message on step 3 will be repeated. > > Does it make any sense ? > > Sincerely > Ezequias > > > > > > -------Mensagem original------- > > De: Ed McNierney > Data: 07/14/05 12:41:47 > Para: Ezequias Rodrigues da Rocha > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Assunto: RE: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] Problem to > load images > > Ezequias - > > OK - you will want to get to a TILEINDEX, I think, if your layers are simply > separate images that all belong together as a single set of one type of > image. > > But you don't need to worry about that now. Just make sure the DATA > statement in each LAYER specifies the full pathname. > > I suggest you try to get ONE image working properly first, then get the > other 115 working. Did you have one working at all? > > - Ed > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > (978) 251-4242 > > > > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Ezequias Rodrigues da Rocha > Sent: Thursday, July 14, 2005 12:08 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] Problem to > load images > > > > I have no TILEINDEX and I don't know how to use it on mapserver. > > My map file have yes 116 layers. > > Sincerely > Ezequias > -------Mensagem original------- > > De: Ed McNierney > Data: 07/14/05 12:33:15 > Para: MAPSERVER-USERS at LISTS.UMN.EDU > Assunto: Re: [UMN_MAPSERVER-USERS] Problem to load images > > Ezequias - > > Please always reply to the whole list, so everyone can help - thanks! > > MapServer may be strange but it should be consistent. Do you have a > TILEINDEX for these 116 images or are they each specified in a separate > LAYER in your map file? It doesn't matter where the images are (if the > permissions are OK) but you should start by putting the full path to each > image in either the map file LAYER block or in the TILEINDEX shapefile. > > - Ed > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > (978) 251-4242 > > > > > From: Ezequias Rodrigues da Rocha [mailto:ezequias at recife.pe.gov.br] > Sent: Thursday, July 14, 2005 11:59 AM > To: Ed McNierney > Subject: Res: Re: [UMN_MAPSERVER-USERS] Problem to load images > > > Ed, > > > Mapsever works strange. Some file works on the cgi-bin folder others on > cgi-bin/raster. > > I am working with 116 images too. I don't know if it makes any difference. > > Sincerely > Ezequias > > -------Mensagem original------- > > De: Ed McNierney > Data: 07/14/05 11:44:53 > Para: MAPSERVER-USERS at LISTS.UMN.EDU > Assunto: Re: [UMN_MAPSERVER-USERS] Problem to load images > > Ezequias - > > This is probably due to the paths to the data. Your error message reports a > relative path, which depends on the "current directory" on your server. It > is easier to always use full pathnames (starting with a "/") to your data > files when you're getting started. Try putting the whole path in your map > file to see if that solves the problem. > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > (978) 251-4242 > > > > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Ezequias Rodrigues da Rocha > Sent: Thursday, July 14, 2005 10:40 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Problem to load images > > > Hi list, > > My browser reported the error above: > > msDrawRaster(): Unable to access file. (raster/recorte_01.tif) > > Any suggestions ? > > all my files are -rwxrwxrwx > > > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > Atenciosamente (Sincerely) > Ezequias Rodrigues da Rocha > * www.recife.pe.gov.br > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > A pior das democracias ainda ? melhor do que a melhor das ditaduras > The worst of democracies is still better than the better of dictatorships > MSN Messenger: ezequias at hotmail.com > > > > > > > > > > > > > ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs From raphael.teixeira at GMAIL.COM Thu Jul 14 09:45:34 2005 From: raphael.teixeira at GMAIL.COM (Raphael Teixeira) Date: Thu, 14 Jul 2005 13:45:34 -0300 Subject: Map file as database Message-ID: Hello All, Has anyone modeled the dot map file as database?? I wanna access my map definition from a database not a dot map file. Thanks in advice, -- Raphael da Silva Teixeira Sun Certified Programmer for the Java 2 Plataform 1.4 Sun Certified Web Component Developer for the Java 2 Platform, Enterprise Edition Tecn?logo em Processamento de Dados - UEG Mestrando em Inform?tica - UNB -------------- next part -------------- An HTML attachment was scrubbed... URL: From tylermitchell at SHAW.CA Thu Jul 14 09:54:39 2005 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Thu, 14 Jul 2005 09:54:39 -0700 Subject: Map file as database Message-ID: Hi Raphael, I know there is a semi-annual debate about moving map files into an XML format. Perhaps one of those past discussions also talked about schemas and might give you some ideas. Tyler ----- Original Message ----- From: Raphael Teixeira Date: Thursday, July 14, 2005 9:45 am Subject: [UMN_MAPSERVER-USERS] Map file as database > Hello All, > > Has anyone modeled the dot map file as database?? I wanna access > my map > definition from a database not a dot map file. > > Thanks in advice, > > -- > Raphael da Silva Teixeira > Sun Certified Programmer for the Java 2 Plataform 1.4 > Sun Certified Web Component Developer for the Java 2 Platform, > Enterprise > Edition > Tecn??logo em Processamento de Dados - UEG > Mestrando em Inform??tica - UNB > From ezequias at RECIFE.PE.GOV.BR Thu Jul 14 10:13:06 2005 From: ezequias at RECIFE.PE.GOV.BR (Ezequias Rodrigues da Rocha) Date: Thu, 14 Jul 2005 14:13:06 -0300 Subject: Res: Re: [UMN_MAPSERVER-USERS] Res: RE: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] Problem to load images Message-ID: There is no difference. Thake a look on the image I attached and make your conclusions. Sincerely Ezequias ps.: I did all the process and the service is running. -------Mensagem original------- De: Randy James Data: 07/14/05 13:16:31 Para: Ezequias Rodrigues da Rocha Cc: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] Res: RE: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] Problem to load images could be the permissions of the cgi-bin folder? Are the permissions different for the /raster folder? Randy --- Ezequias Rodrigues da Rocha wrote: > Ed, > > It is working now, but let me say what occours: > > 1- I have the image on the cgi-bin folder > 2- My map file is: > shapepath "/var/www/cgi-bin/" > LAYER > NAME "Imagem23" > data "recorte_23.tif" > STATUS default > TYPE RASTER > PROCESSING "DITHER=YES" > PROCESSING "BANDS=1,2,3" > END > 3 - The error reported when I try to load on the Browser is: > > msDrawMap(): Image handling error. Failed to draw layer named > Imagem23'. > msDrawRaster(): Unable to access file. (recorte_23.tif) > > 4 - a) I copy the image to the folder /raster > b) Change the LAYER parameter to: > data "raster/recorte_23.tif" > > 5- The image appears on browser > > If I didn't make the step 4a the message on step 3 will be repeated. > > Does it make any sense ? > > Sincerely > Ezequias > > > > > > -------Mensagem original------- > > De: Ed McNierney > Data: 07/14/05 12:41:47 > Para: Ezequias Rodrigues da Rocha > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Assunto: RE: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] Problem to > load images > > Ezequias - > > OK - you will want to get to a TILEINDEX, I think, if your layers are simply > separate images that all belong together as a single set of one type of > image. > > But you don't need to worry about that now. Just make sure the DATA > statement in each LAYER specifies the full pathname. > > I suggest you try to get ONE image working properly first, then get the > other 115 working. Did you have one working at all? > > - Ed > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > (978) 251-4242 > > > > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Ezequias Rodrigues da Rocha > Sent: Thursday, July 14, 2005 12:08 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] Problem to > load images > > > > I have no TILEINDEX and I don't know how to use it on mapserver. > > My map file have yes 116 layers. > > Sincerely > Ezequias > -------Mensagem original------- > > De: Ed McNierney > Data: 07/14/05 12:33:15 > Para: MAPSERVER-USERS at LISTS.UMN.EDU > Assunto: Re: [UMN_MAPSERVER-USERS] Problem to load images > > Ezequias - > > Please always reply to the whole list, so everyone can help - thanks! > > MapServer may be strange but it should be consistent. Do you have a > TILEINDEX for these 116 images or are they each specified in a separate > LAYER in your map file? It doesn't matter where the images are (if the > permissions are OK) but you should start by putting the full path to each > image in either the map file LAYER block or in the TILEINDEX shapefile. > > - Ed > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > (978) 251-4242 > > > > > From: Ezequias Rodrigues da Rocha [mailto:ezequias at recife.pe.gov.br] > Sent: Thursday, July 14, 2005 11:59 AM > To: Ed McNierney > Subject: Res: Re: [UMN_MAPSERVER-USERS] Problem to load images > > > Ed, > > > Mapsever works strange. Some file works on the cgi-bin folder others on > cgi-bin/raster. > > I am working with 116 images too. I don't know if it makes any difference. > > Sincerely > Ezequias > > -------Mensagem original------- > > De: Ed McNierney > Data: 07/14/05 11:44:53 > Para: MAPSERVER-USERS at LISTS.UMN.EDU > Assunto: Re: [UMN_MAPSERVER-USERS] Problem to load images > > Ezequias - > > This is probably due to the paths to the data. Your error message reports a > relative path, which depends on the "current directory" on your server. It > is easier to always use full pathnames (starting with a "/") to your data > files when you're getting started. Try putting the whole path in your map > file to see if that solves the problem. > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > (978) 251-4242 > > > > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Ezequias Rodrigues da Rocha > Sent: Thursday, July 14, 2005 10:40 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Problem to load images > > > Hi list, > > My browser reported the error above: > > msDrawRaster(): Unable to access file. (raster/recorte_01.tif) > > Any suggestions ? > > all my files are -rwxrwxrwx > > > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > Atenciosamente (Sincerely) > Ezequias Rodrigues da Rocha > * www.recife.pe.gov.br > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > A pior das democracias ainda ? melhor do que a melhor das ditaduras > The worst of democracies is still better than the better of dictatorships > MSN Messenger: ezequias at hotmail.com > > > > > > > > > > > > > ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: rasterProblemWMS.JPG Type: image/jpeg Size: 123627 bytes Desc: not available URL: From ezequias at RECIFE.PE.GOV.BR Thu Jul 14 10:14:31 2005 From: ezequias at RECIFE.PE.GOV.BR (Ezequias Rodrigues da Rocha) Date: Thu, 14 Jul 2005 14:14:31 -0300 Subject: Res: Re: [UMN_MAPSERVER-USERS] Map file as database Message-ID: Could you tell me abut schemas. I don't know notthing about it. mapfile in xml is a nice idea. Sincerely Ezequias -------Mensagem original------- De: Tyler Mitchell Data: 07/14/05 13:39:46 Para: MAPSERVER-USERS at lists.umn.edu Assunto: Re: [UMN_MAPSERVER-USERS] Map file as database Hi Raphael, I know there is a semi-annual debate about moving map files into an XML format. Perhaps one of those past discussions also talked about schemas and might give you some ideas. Tyler ----- Original Message ----- From: Raphael Teixeira Date: Thursday, July 14, 2005 9:45 am Subject: [UMN_MAPSERVER-USERS] Map file as database > Hello All, > > Has anyone modeled the dot map file as database?? I wanna access > my map > definition from a database not a dot map file. > > Thanks in advice, > > -- > Raphael da Silva Teixeira > Sun Certified Programmer for the Java 2 Plataform 1.4 > Sun Certified Web Component Developer for the Java 2 Platform, > Enterprise > Edition > Tecn??logo em Processamento de Dados - UEG > Mestrando em Inform??tica - UNB > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at EC.GC.CA Thu Jul 14 10:00:11 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Thu, 14 Jul 2005 13:00:11 -0400 Subject: Map file as database Message-ID: I've been thinking about this for awhile now. It would be great to have a database with at least common objects which can get perl'd into a mapfile on demand. We have many mapfiles working off of one server. If we want to change our LEGEND object globally, it'd be alot easier to do this from a db2mapfile routine. ..Tom -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Raphael Teixeira Sent: Thursday, 14 July, 2005 12:46 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Map file as database Hello All, Has anyone modeled the dot map file as database?? I wanna access my map definition from a database not a dot map file. Thanks in advice, -- Raphael da Silva Teixeira Sun Certified Programmer for the Java 2 Plataform 1.4 Sun Certified Web Component Developer for the Java 2 Platform, Enterprise Edition Tecn?logo em Processamento de Dados - UEG Mestrando em Inform?tica - UNB From ezequias at RECIFE.PE.GOV.BR Thu Jul 14 11:43:34 2005 From: ezequias at RECIFE.PE.GOV.BR (Ezequias Rodrigues da Rocha) Date: Thu, 14 Jul 2005 15:43:34 -0300 Subject: How to use links reference to pass a small URL Message-ID: Hi list, I would like to know how to use links (ln "on linux") to make the process of call a mapserver via Browser or Client Application more easy. my URL today is: http://server.machine/cgi-bin/mapserv?map=/var/www/cgi-bin/myMapFile map&mode=map or http://server.machine/cgi-bin/mapserv?map=/var/www/cgi-bin/myMapFile.map& (for Jump) Does anyone knows how to make it easy (small) ? I tryed to put the map file in other folder without sucess. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Atenciosamente (Sincerely) Ezequias Rodrigues da Rocha * www.recife.pe.gov.br =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- A pior das democracias ainda ? melhor do que a melhor das ditaduras The worst of democracies is still better than the better of dictatorships MSN Messenger: ezequias at hotmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: msn.JPG Type: image/jpeg Size: 1111 bytes Desc: not available URL: From ed at TOPOZONE.COM Thu Jul 14 12:07:46 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 14 Jul 2005 15:07:46 -0400 Subject: Res: RE: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] Problem to load images Message-ID: Ezequias - Be sure to be VERY careful about paths, even in email! You said you moved the image to the folder "/raster" - did you mean to "/var/www/cgi-bin/raster"? That would make sense. And I would agree that if that is what is happening, it is probably a permissions problem on the directory and/or file. The cgi-bin folder is probably not a good place to store your raster data, as it may be accessible to HTTP clients. Most users put their data in a local folder that is accessible to the mapserv CGI program when it is running, but which is NOT accessible via an HTTP request to the Web server. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ezequias Rodrigues da Rocha Sent: Thursday, July 14, 2005 12:34 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Res: RE: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] Problem to load images Ed, It is working now, but let me say what occours: 1- I have the image on the cgi-bin folder 2- My map file is: shapepath "/var/www/cgi-bin/" LAYER NAME "Imagem23" data "recorte_23.tif" STATUS default TYPE RASTER PROCESSING "DITHER=YES" PROCESSING "BANDS=1,2,3" END 3 - The error reported when I try to load on the Browser is: msDrawMap(): Image handling error. Failed to draw layer named Imagem23'. msDrawRaster(): Unable to access file. (recorte_23.tif) 4 - a) I copy the image to the folder /raster b) Change the LAYER parameter to: data "raster/recorte_23.tif" 5- The image appears on browser If I didn't make the step 4a the message on step 3 will be repeated. Does it make any sense ? Sincerely Ezequias -------Mensagem original------- De: Ed McNierney Data: 07/14/05 12:41:47 Para: Ezequias Rodrigues da Rocha Cc: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: RE: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] Problem to load images Ezequias - OK - you will want to get to a TILEINDEX, I think, if your layers are simply separate images that all belong together as a single set of one type of image. But you don't need to worry about that now. Just make sure the DATA statement in each LAYER specifies the full pathname. I suggest you try to get ONE image working properly first, then get the other 115 working. Did you have one working at all? - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ezequias Rodrigues da Rocha Sent: Thursday, July 14, 2005 12:08 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] Problem to load images I have no TILEINDEX and I don't know how to use it on mapserver. My map file have yes 116 layers. Sincerely Ezequias -------Mensagem original------- De: Ed McNierney Data: 07/14/05 12:33:15 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] Problem to load images Ezequias - Please always reply to the whole list, so everyone can help - thanks! MapServer may be strange but it should be consistent. Do you have a TILEINDEX for these 116 images or are they each specified in a separate LAYER in your map file? It doesn't matter where the images are (if the permissions are OK) but you should start by putting the full path to each image in either the map file LAYER block or in the TILEINDEX shapefile. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 From: Ezequias Rodrigues da Rocha [mailto:ezequias at recife.pe.gov.br] Sent: Thursday, July 14, 2005 11:59 AM To: Ed McNierney Subject: Res: Re: [UMN_MAPSERVER-USERS] Problem to load images Ed, Mapsever works strange. Some file works on the cgi-bin folder others on cgi-bin/raster. I am working with 116 images too. I don't know if it makes any difference. Sincerely Ezequias -------Mensagem original------- De: Ed McNierney Data: 07/14/05 11:44:53 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] Problem to load images Ezequias - This is probably due to the paths to the data. Your error message reports a relative path, which depends on the "current directory" on your server. It is easier to always use full pathnames (starting with a "/") to your data files when you're getting started. Try putting the whole path in your map file to see if that solves the problem. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ezequias Rodrigues da Rocha Sent: Thursday, July 14, 2005 10:40 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Problem to load images Hi list, My browser reported the error above: msDrawRaster(): Unable to access file. (raster/recorte_01.tif) Any suggestions ? all my files are -rwxrwxrwx =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Atenciosamente (Sincerely) Ezequias Rodrigues da Rocha * www.recife.pe.gov.br =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- A pior das democracias ainda ? melhor do que a melhor das ditaduras The worst of democracies is still better than the better of dictatorships MSN Messenger: ezequias at hotmail.com From ezequias at RECIFE.PE.GOV.BR Thu Jul 14 12:46:21 2005 From: ezequias at RECIFE.PE.GOV.BR (Ezequias Rodrigues da Rocha) Date: Thu, 14 Jul 2005 16:46:21 -0300 Subject: Res: RE: [UMN_MAPSERVER-USERS] Res: RE: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] Problem to load images Message-ID: Thank you Ed, I found a folder to store all my images. Some folders others don't. Actually, my server is in a Intranet. Thank you for the advice Ezequias -------Mensagem original------- De: Ed McNierney Data: 07/14/05 15:52:02 Para: Ezequias Rodrigues da Rocha; MAPSERVER-USERS at LISTS.UMN.EDU Assunto: RE: [UMN_MAPSERVER-USERS] Res: RE: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] Problem to load images Ezequias - Be sure to be VERY careful about paths, even in email! You said you moved the image to the folder "/raster" - did you mean to "/var/www/cgi-bin/raster ? That would make sense. And I would agree that if that is what is happening, it is probably a permissions problem on the directory and/or file. The cgi-bin folder is probably not a good place to store your raster data, as it may be accessible to HTTP clients. Most users put their data in a local folder that is accessible to the mapserv CGI program when it is running, but which is NOT accessible via an HTTP request to the Web server. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ezequias Rodrigues da Rocha Sent: Thursday, July 14, 2005 12:34 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Res: RE: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] Problem to load images Ed, It is working now, but let me say what occours: 1- I have the image on the cgi-bin folder 2- My map file is: shapepath "/var/www/cgi-bin/" LAYER NAME "Imagem23" data "recorte_23.tif" STATUS default TYPE RASTER PROCESSING "DITHER=YES" PROCESSING "BANDS=1,2,3" END 3 - The error reported when I try to load on the Browser is: msDrawMap(): Image handling error. Failed to draw layer named Imagem23'. msDrawRaster(): Unable to access file. (recorte_23.tif) 4 - a) I copy the image to the folder /raster b) Change the LAYER parameter to: data "raster/recorte_23.tif" 5- The image appears on browser If I didn't make the step 4a the message on step 3 will be repeated. Does it make any sense ? Sincerely Ezequias -------Mensagem original------- De: Ed McNierney Data: 07/14/05 12:41:47 Para: Ezequias Rodrigues da Rocha Cc: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: RE: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] Problem to load images Ezequias - OK - you will want to get to a TILEINDEX, I think, if your layers are simply separate images that all belong together as a single set of one type of image. But you don't need to worry about that now. Just make sure the DATA statement in each LAYER specifies the full pathname. I suggest you try to get ONE image working properly first, then get the other 115 working. Did you have one working at all? - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ezequias Rodrigues da Rocha Sent: Thursday, July 14, 2005 12:08 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] Problem to load images I have no TILEINDEX and I don't know how to use it on mapserver. My map file have yes 116 layers. Sincerely Ezequias -------Mensagem original------- De: Ed McNierney Data: 07/14/05 12:33:15 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] Problem to load images Ezequias - Please always reply to the whole list, so everyone can help - thanks! MapServer may be strange but it should be consistent. Do you have a TILEINDEX for these 116 images or are they each specified in a separate LAYER in your map file? It doesn't matter where the images are (if the permissions are OK) but you should start by putting the full path to each image in either the map file LAYER block or in the TILEINDEX shapefile. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 From: Ezequias Rodrigues da Rocha [mailto:ezequias at recife.pe.gov.br] Sent: Thursday, July 14, 2005 11:59 AM To: Ed McNierney Subject: Res: Re: [UMN_MAPSERVER-USERS] Problem to load images Ed, Mapsever works strange. Some file works on the cgi-bin folder others on cgi-bin/raster. I am working with 116 images too. I don't know if it makes any difference. Sincerely Ezequias -------Mensagem original------- De: Ed McNierney Data: 07/14/05 11:44:53 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] Problem to load images Ezequias - This is probably due to the paths to the data. Your error message reports a relative path, which depends on the "current directory" on your server. It is easier to always use full pathnames (starting with a "/") to your data files when you're getting started. Try putting the whole path in your map file to see if that solves the problem. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ezequias Rodrigues da Rocha Sent: Thursday, July 14, 2005 10:40 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Problem to load images Hi list, My browser reported the error above: msDrawRaster(): Unable to access file. (raster/recorte_01.tif) Any suggestions ? all my files are -rwxrwxrwx =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Atenciosamente (Sincerely) Ezequias Rodrigues da Rocha * www.recife.pe.gov.br =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- A pior das democracias ainda ? melhor do que a melhor das ditaduras The worst of democracies is still better than the better of dictatorships MSN Messenger: ezequias at hotmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From erich at MUSEUM.STATE.IL.US Thu Jul 14 12:29:50 2005 From: erich at MUSEUM.STATE.IL.US (Erich Schroeder) Date: Thu, 14 Jul 2005 14:29:50 -0500 Subject: Map file as database In-Reply-To: Message-ID: The "mapstorer" project might be what you are looking for. I personally have not yet tried it, but it looks mighty good. http://www.mapstorer.org/ Erich Raphael Teixeira wrote: > Hello All, > > Has anyone modeled the dot map file as database?? I wanna access my > map definition from a database not a dot map file. > > Thanks in advice, > > -- > Raphael da Silva Teixeira > Sun Certified Programmer for the Java 2 Plataform 1.4 > Sun Certified Web Component Developer for the Java 2 Platform, > Enterprise Edition > Tecn?logo em Processamento de Dados - UEG > Mestrando em Inform?tica - UNB From ezequias at RECIFE.PE.GOV.BR Thu Jul 14 13:08:25 2005 From: ezequias at RECIFE.PE.GOV.BR (Ezequias Rodrigues da Rocha) Date: Thu, 14 Jul 2005 17:08:25 -0300 Subject: Specifications do a Developing Team Message-ID: Hi list, Does anyone can tell me what softwares should be installed on a local machine to developer applications with mapserver (php or Java)? You should know that we have the mapserver installed in a server machine running PostGIS too. What software should be installed to implement applications and witch others don't. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Atenciosamente (Sincerely) Ezequias Rodrigues da Rocha * www.recife.pe.gov.br =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- A pior das democracias ainda ? melhor do que a melhor das ditaduras The worst of democracies is still better than the better of dictatorships MSN Messenger: ezequias at hotmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: msn.JPG Type: image/jpeg Size: 1111 bytes Desc: not available URL: From David.Hunter at FNF.COM Thu Jul 14 13:03:08 2005 From: David.Hunter at FNF.COM (Hunter, David - St. Louis Park, MN) Date: Thu, 14 Jul 2005 15:03:08 -0500 Subject: dynamic base image for refernce map? Message-ID: Using CGI Mapserver, I would like to create reference maps that have their base images dynamically generated. The app would be serving up maps of fire districts. I know the bounding boxes for each district, so the user would select from a list and go to a map of that district. Since there are approximately 40,000 fire districts in the U.S., it won't be very practical to generate a .gif base image for each district. What I really need is a thumbnail of the initial map extent, with an overlay that shows the current view area. It doesn't look like I can pass the name of the base image file to a reference map file, so I was wondering if there was another way to do this. Can I dynamically create an overlay layer with a transparent polygon? If so, which CGI parameter would I pass the overlay's vertices in? Or, do I have to do this all on the client side, drawing the box in a layer over my thumbnail? Can this be done with dbox.js? David S. Hunter Sr. Software Engineer Fidelity National Geographic Solutions division of Fidelity National Financial 5353 Gamble Drive, Suite 201 St. Louis Park, MN 55416 * Email: david.hunter at fnf.com ' Phone: 952.542.1440 ext. 256 * Fax: 952.542.3859 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jim.downing at WAYTO.COM Thu Jul 14 12:53:40 2005 From: jim.downing at WAYTO.COM (Jim Downing) Date: Thu, 14 Jul 2005 13:53:40 -0600 Subject: Novice with Tutorial Question. Message-ID: This is my first exposure to Mapserver, and I'm working through the tutorial. I'm having a problem with Example1-6 which is meant to display data from another WMS service. The mapfile has a line: CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?REQUEST=map&LAYERS=us_landsat7&STYLES=&FORM AT=png&TRANSPARENT=true" which doesn't seem to do anything. So I sent the request through the browser and got a response that includes: Unknown value for key 'request' I'm I doing something wrong here, or is there an error in thr tutorial? I should probably be able to work this out for myself with some sort of 'discover' command, but I've not got that far yet. Regards, Jim Downing WayTo Integration Edmonton, Alberta From David.Fawcett at STATE.MN.US Thu Jul 14 13:12:49 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Thu, 14 Jul 2005 15:12:49 -0500 Subject: Novice with Tutorial Question. Message-ID: Jim, There is an error with 1-6 and 1-7 in the tutorial. Perry is in the process of updating the tutorial. If you want more information specific to WMS, there is a HowTo at: http://ms.gis.umn.edu/docs/howto/howtofolder_view David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett at moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Jim Downing Sent: Thursday, July 14, 2005 2:54 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Novice with Tutorial Question. This is my first exposure to Mapserver, and I'm working through the tutorial. I'm having a problem with Example1-6 which is meant to display data from another WMS service. The mapfile has a line: CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?REQUEST=map&LAYERS=us_landsat7&STYLES=&FORM AT=png&TRANSPARENT=true" which doesn't seem to do anything. So I sent the request through the browser and got a response that includes: Unknown value for key 'request' I'm I doing something wrong here, or is there an error in thr tutorial? I should probably be able to work this out for myself with some sort of 'discover' command, but I've not got that far yet. Regards, Jim Downing WayTo Integration Edmonton, Alberta From Debbie.Pagurek at EC.GC.CA Thu Jul 14 13:18:29 2005 From: Debbie.Pagurek at EC.GC.CA (Pagurek,Debbie [NCR]) Date: Thu, 14 Jul 2005 16:18:29 -0400 Subject: Novice with Tutorial Question. Message-ID: I guess they are in the process of updating the tutorial. But in order to get something back from the service you tried to access - use the following: http://wms.jpl.nasa.gov/wms.cgi?REQUEST=GetMap&LAYERS=us_landsat_wgs84&S TYLES=&FORMAT=image/png&TRANSPARENT=TRUE&srs=EPSG:4326&bbox=-180,-90,180 ,90&width=600&height=300 I did a GetCapabilities request first: http://wms.jpl.nasa.gov/wms.cgi?REQUEST=GetCapabilities And that showed me that the layer names are different than expected. Also - the request needed is request=GetMap, and this service seems to require the other parameters listed here. I think this service also requires case sensitivity? Good luck, D. Pagurek -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jim Downing Sent: Thursday, July 14, 2005 3:54 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Novice with Tutorial Question. This is my first exposure to Mapserver, and I'm working through the tutorial. I'm having a problem with Example1-6 which is meant to display data from another WMS service. The mapfile has a line: CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?REQUEST=map&LAYERS=us_landsat7&STYLES=& FORM AT=png&TRANSPARENT=true" which doesn't seem to do anything. So I sent the request through the browser and got a response that includes: Unknown value for key 'request' I'm I doing something wrong here, or is there an error in thr tutorial? I should probably be able to work this out for myself with some sort of 'discover' command, but I've not got that far yet. Regards, Jim Downing WayTo Integration Edmonton, Alberta From David.Fawcett at STATE.MN.US Thu Jul 14 14:02:02 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Thu, 14 Jul 2005 16:02:02 -0500 Subject: Novice with Tutorial Question. Message-ID: As a layer in your map file, it could look like this: LAYER NAME landsat STATUS DEFAULT TYPE RASTER CONNECTIONTYPE WMS CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?" PROJECTION "init=epsg:4326" END METADATA "wms_name" "us_landsat_wgs84" "wms_server_version" "1.1.1" "wms_srs" "EPSG:4326" "wms_format" "image/png" END END David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett at moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Pagurek,Debbie [NCR] Sent: Thursday, July 14, 2005 3:18 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Novice with Tutorial Question. I guess they are in the process of updating the tutorial. But in order to get something back from the service you tried to access - use the following: http://wms.jpl.nasa.gov/wms.cgi?REQUEST=GetMap&LAYERS=us_landsat_wgs84&S TYLES=&FORMAT=image/png&TRANSPARENT=TRUE&srs=EPSG:4326&bbox=-180,-90,180 ,90&width=600&height=300 I did a GetCapabilities request first: http://wms.jpl.nasa.gov/wms.cgi?REQUEST=GetCapabilities And that showed me that the layer names are different than expected. Also - the request needed is request=GetMap, and this service seems to require the other parameters listed here. I think this service also requires case sensitivity? Good luck, D. Pagurek -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jim Downing Sent: Thursday, July 14, 2005 3:54 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Novice with Tutorial Question. This is my first exposure to Mapserver, and I'm working through the tutorial. I'm having a problem with Example1-6 which is meant to display data from another WMS service. The mapfile has a line: CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?REQUEST=map&LAYERS=us_landsat7&STYLES=& FORM AT=png&TRANSPARENT=true" which doesn't seem to do anything. So I sent the request through the browser and got a response that includes: Unknown value for key 'request' I'm I doing something wrong here, or is there an error in thr tutorial? I should probably be able to work this out for myself with some sort of 'discover' command, but I've not got that far yet. Regards, Jim Downing WayTo Integration Edmonton, Alberta From nate at SEASTAR.JPL.NASA.GOV Thu Jul 14 14:17:38 2005 From: nate at SEASTAR.JPL.NASA.GOV (Nate Reed) Date: Thu, 14 Jul 2005 14:17:38 -0700 Subject: base map of north america Message-ID: Forgive me if this is a bit off-topic, but can someone point me to a map of North America in ESRI shapefile format for our coastal ocean observing site (just a prototype at this point)? http://seamap.jpl.nasa.gov/sccoos I know there are free maps out there but I can't seem to find the right ones, and Canada is just too important to be missing. :) Thanks, Nate -- Nate Reed Physical Oceanography DAAC Jet Propulsion Lab / Raytheon ITSS (626)744-5528 nate at seastar.jpl.nasa.gov From ldorileo at GMAIL.COM Thu Jul 14 18:40:45 2005 From: ldorileo at GMAIL.COM (Leandro Dorileo) Date: Fri, 15 Jul 2005 01:40:45 +0000 Subject: Map file as database In-Reply-To: <42D6BD2E.4010103@museum.state.il.us> Message-ID: Hi Erich This is a very good thing to use. I was thinking to write a program to read a XML file(generated from a system of mine) and then write a dot map file. But, having a look at the mapstorer I think this is a prety good option to work with. ;-) -- Dorileo On Thursday 14 July 2005 07:29 pm, Erich Schroeder wrote: > The "mapstorer" project might be what you are looking for. I personally > have not yet tried it, but it looks mighty good. > > http://www.mapstorer.org/ > > Erich > > Raphael Teixeira wrote: > > Hello All, > > > > Has anyone modeled the dot map file as database?? I wanna access my > > map definition from a database not a dot map file. > > > > Thanks in advice, > > > > -- > > Raphael da Silva Teixeira > > Sun Certified Programmer for the Java 2 Plataform 1.4 > > Sun Certified Web Component Developer for the Java 2 Platform, > > Enterprise Edition > > Tecn?logo em Processamento de Dados - UEG > > Mestrando em Inform?tica - UNB From ldorileo at GMAIL.COM Thu Jul 14 18:45:26 2005 From: ldorileo at GMAIL.COM (Leandro Dorileo) Date: Fri, 15 Jul 2005 01:45:26 +0000 Subject: Res: Re: [UMN_MAPSERVER-USERS] Problem to load images In-Reply-To: <42D69D22.000001.00196@DC_EZEQUIAS> Message-ID: Hi Ezequias Are you working on a unix system? or is it a windows system? -- Dorileo On Thursday 14 July 2005 05:13 pm, Ezequias Rodrigues da Rocha wrote: > There is no difference. Thake a look on the image I attached and make your > conclusions. > > Sincerely > Ezequias > > ps.: I did all the process and the service is running. > > -------Mensagem original------- > > De: Randy James > Data: 07/14/05 13:16:31 > Para: Ezequias Rodrigues da Rocha > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Assunto: Re: [UMN_MAPSERVER-USERS] Res: RE: [UMN_MAPSERVER-USERS] Res: Re: > [UMN_MAPSERVER-USERS] Problem to load images > > could be the permissions of the cgi-bin folder? Are the permissions > different for > the /raster folder? > > Randy > > --- Ezequias Rodrigues da Rocha wrote: > > Ed, > > > > It is working now, but let me say what occours: > > > > 1- I have the image on the cgi-bin folder > > 2- My map file is: > > shapepath "/var/www/cgi-bin/" > > LAYER > > NAME "Imagem23" > > data "recorte_23.tif" > > STATUS default > > TYPE RASTER > > PROCESSING "DITHER=YES" > > PROCESSING "BANDS=1,2,3" > > END > > 3 - The error reported when I try to load on the Browser is: > > > > msDrawMap(): Image handling error. Failed to draw layer named > > Imagem23'. > > msDrawRaster(): Unable to access file. (recorte_23.tif) > > > > 4 - a) I copy the image to the folder /raster > > b) Change the LAYER parameter to: > > data "raster/recorte_23.tif" > > > > 5- The image appears on browser > > > > If I didn't make the step 4a the message on step 3 will be repeated. > > > > Does it make any sense ? > > > > Sincerely > > Ezequias > > > > > > > > > > > > -------Mensagem original------- > > > > De: Ed McNierney > > Data: 07/14/05 12:41:47 > > Para: Ezequias Rodrigues da Rocha > > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > > Assunto: RE: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] Problem > > to > > > load images > > > > Ezequias - > > > > OK - you will want to get to a TILEINDEX, I think, if your layers are > > simply > > > separate images that all belong together as a single set of one type of > > image. > > > > But you don't need to worry about that now. Just make sure the DATA > > statement in each LAYER specifies the full pathname. > > > > I suggest you try to get ONE image working properly first, then get the > > other 115 working. Did you have one working at all? > > > > - Ed > > Ed McNierney > > President and Chief Mapmaker > > TopoZone.com / Maps a la carte, Inc. > > 73 Princeton Street, Suite 305 > > North Chelmsford, MA 01863 > > ed at topozone.com > > (978) 251-4242 > > > > > > > > > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > > Behalf Of Ezequias Rodrigues da Rocha > > Sent: Thursday, July 14, 2005 12:08 PM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] Problem to > > load images > > > > > > > > I have no TILEINDEX and I don't know how to use it on mapserver. > > > > My map file have yes 116 layers. > > > > Sincerely > > Ezequias > > -------Mensagem original------- > > > > De: Ed McNierney > > Data: 07/14/05 12:33:15 > > Para: MAPSERVER-USERS at LISTS.UMN.EDU > > Assunto: Re: [UMN_MAPSERVER-USERS] Problem to load images > > > > Ezequias - > > > > Please always reply to the whole list, so everyone can help - thanks! > > > > MapServer may be strange but it should be consistent. Do you have a > > TILEINDEX for these 116 images or are they each specified in a separate > > LAYER in your map file? It doesn't matter where the images are (if the > > permissions are OK) but you should start by putting the full path to each > > image in either the map file LAYER block or in the TILEINDEX shapefile. > > > > - Ed > > Ed McNierney > > President and Chief Mapmaker > > TopoZone.com / Maps a la carte, Inc. > > 73 Princeton Street, Suite 305 > > North Chelmsford, MA 01863 > > ed at topozone.com > > (978) 251-4242 > > > > > > > > > > From: Ezequias Rodrigues da Rocha [mailto:ezequias at recife.pe.gov.br] > > Sent: Thursday, July 14, 2005 11:59 AM > > To: Ed McNierney > > Subject: Res: Re: [UMN_MAPSERVER-USERS] Problem to load images > > > > > > Ed, > > > > > > Mapsever works strange. Some file works on the cgi-bin folder others on > > cgi-bin/raster. > > > > I am working with 116 images too. I don't know if it makes any > > difference. > > > > Sincerely > > Ezequias > > > > -------Mensagem original------- > > > > De: Ed McNierney > > Data: 07/14/05 11:44:53 > > Para: MAPSERVER-USERS at LISTS.UMN.EDU > > Assunto: Re: [UMN_MAPSERVER-USERS] Problem to load images > > > > Ezequias - > > > > This is probably due to the paths to the data. Your error message reports > > a > > > relative path, which depends on the "current directory" on your server. > > It is easier to always use full pathnames (starting with a "/") to your > > data files when you're getting started. Try putting the whole path in > > your map file to see if that solves the problem. > > > > - Ed > > > > Ed McNierney > > President and Chief Mapmaker > > TopoZone.com / Maps a la carte, Inc. > > 73 Princeton Street, Suite 305 > > North Chelmsford, MA 01863 > > ed at topozone.com > > (978) 251-4242 > > > > > > > > > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > > Behalf Of Ezequias Rodrigues da Rocha > > Sent: Thursday, July 14, 2005 10:40 AM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] Problem to load images > > > > > > Hi list, > > > > My browser reported the error above: > > > > msDrawRaster(): Unable to access file. (raster/recorte_01.tif) > > > > Any suggestions ? > > > > all my files are -rwxrwxrwx > > > > > > > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > > Atenciosamente (Sincerely) > > Ezequias Rodrigues da Rocha > > * www.recife.pe.gov.br > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > > A pior das democracias ainda ? melhor do que a melhor das ditaduras > > The worst of democracies is still better than the better of dictatorships > > MSN Messenger: ezequias at hotmail.com > > ____________________________________________________ > Start your day with Yahoo! - make it your home page > http://www.yahoo.com/r/hs From ldorileo at GMAIL.COM Thu Jul 14 18:50:40 2005 From: ldorileo at GMAIL.COM (Leandro Dorileo) Date: Fri, 15 Jul 2005 01:50:40 +0000 Subject: Specifications do a Developing Team In-Reply-To: <42D6C639.000003.02448@DC_EZEQUIAS> Message-ID: Hi Ezequias what do you mean by "softwares shoud be installed on a local machine to developer applications with mapserver(php or Java)"? If you are talking about tools to develop an application in java you could use Eclipse or Netbeans. But, if you mean "how to write an application in java or php to access a WMS" you could see something about mapscript. -- Dorileo On Thursday 14 July 2005 08:08 pm, Ezequias Rodrigues da Rocha wrote: > Hi list, > > Does anyone can tell me what softwares should be installed on a local > machine to developer applications with mapserver (php or Java)? > > You should know that we have the mapserver installed in a server machine > running PostGIS too. > > What software should be installed to implement applications and witch > others don't. > > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > Atenciosamente (Sincerely) > Ezequias Rodrigues da Rocha > * www.recife.pe.gov.br > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > A pior das democracias ainda ? melhor do que a melhor das ditaduras > The worst of democracies is still better than the better of dictatorships > MSN Messenger: ezequias at hotmail.com From mapserver at HOTMAIL.COM Fri Jul 15 00:30:50 2005 From: mapserver at HOTMAIL.COM (SUBSCRIBE MAPSERVER-USERS Nuri) Date: Fri, 15 Jul 2005 02:30:50 -0500 Subject: Georeferenced coordinates for a tiff file Message-ID: Hi, I have a map file that displays a raster image (tif) and several points over it from an Access database. I calculated my EXTENT coordinates from OVF file. Does someone know how could I calculate the exact georeferenced coordinates for the tif file to match with the EXTENT of my .map? Thank you. Nuri From Dejan.Gambin at PULA.HR Fri Jul 15 00:36:58 2005 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Fri, 15 Jul 2005 09:36:58 +0200 Subject: Georeferenced coordinates for a tiff file Message-ID: Maybe this can help you: ............................... tfw files Most image files are stored in units of inches. However, there are two ways in which an image can know its geographic coordinates. The first option is to imbed special tags in a tif file with the GeoTIFF format. The second option is to have a world file, a 6-line ASCII file file such as 2.4384 0.0000 0.0000 -2.4384 441794.4342 5094101.4520 These are the 6 coefficients of a three-by-three transformation matrix. They indicate that a pixel is 2.4384 meters square, and that the center of the upper left pixel has an easting (x coordinate) of 441794.4342 and a northing of 5094101.4520. For fans of the matrix: x = 2.4384 * column + 0.0 * row + 441794.4342 y = (-2.4384) * row + 0.0 * column + 5094101.4520 The second and third values are zero because there is no rotation or skew. ..................... regards, dejan gambin -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of SUBSCRIBE MAPSERVER-USERS Nuri Sent: Friday, July 15, 2005 9:31 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Georeferenced coordinates for a tiff file Hi, I have a map file that displays a raster image (tif) and several points over it from an Access database. I calculated my EXTENT coordinates from OVF file. Does someone know how could I calculate the exact georeferenced coordinates for the tif file to match with the EXTENT of my .map? Thank you. Nuri From adams at TERRESTRIS.DE Fri Jul 15 01:14:08 2005 From: adams at TERRESTRIS.DE (Till Adams) Date: Fri, 15 Jul 2005 10:14:08 +0200 Subject: Map file as database In-Reply-To: <2576812186CDD411BF1500508B6DCE950B01E82F@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Kralidis,Tom [Burlington] wrote: > I've been thinking about this for awhile now. It would be great to have a database with at least common objects which can get perl'd into a mapfile on demand. We have many mapfiles working off of one server. If we want to change our LEGEND object globally, it'd be alot easier to do this from a db2mapfile routine. > > ..Tom > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Raphael Teixeira > Sent: Thursday, 14 July, 2005 12:46 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Map file as database > > > Hello All, > > Has anyone modeled the dot map file as database?? I wanna access my map definition from a database not a dot map file. > > Thanks in advice, > Tom (and all), as Dorileo pointed out a few minutes ago, there is the "mapstorer project" (right now there is v 0.3), which stores the whole mapfile in a mysql database. So maybe it's worth giving it a try. Go to www.mapstorer.org or look at sourceforge (or contact Olaf - look in "CC", he's the project-coordinator) Greets, Till -- Mit freundlichen Gr?ssen aus Bonn, Till Adams ****************************************** * released: AmeiN! ArcMap-Export-2-UMN * * LiveLinux 'WebGIS on CD' * * http://www.terrestris.de * ****************************************** ------------------------------------------ Dipl. Geogr. Till Adams terrestris, H. Paulsen& T. Adams GbR Siemensstr. 8 * 53121 Bonn Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 info at terrestris.de * http://www.terrestris.de From mapserver at HOTMAIL.COM Fri Jul 15 01:33:33 2005 From: mapserver at HOTMAIL.COM (N M) Date: Fri, 15 Jul 2005 08:33:33 +0000 Subject: Georeferenced coordinates for a tiff file In-Reply-To: Message-ID: Hi Gambin, I think it is not what I was asking for. I know how to insert georeferenced coordinates in a tiff file that is what you are telling me I undertand, but, my problem, is that I have defined my EXTENT with the coordinates provided by my OVF file and I need that my raster image (a tiff file) matches with them, so I need to calculate the georeferenced coordinates to insert in tiff file, from the existing ones. I have two layers one of them calls to a database to insert several points in the map and the other is the raster image that have to be displayed under the points. I found the present georeferenced coordinates of tiff file trying a lot of values until it match with the existing image but I supose that there is a method to calculate it exactly. I hope I explained my problem so you could understand me. Thank you. Nuri > >Maybe this can help you: >............................... >tfw files >Most image files are stored in units of inches. However, there are two >ways in which an image can know its geographic coordinates. The first >option is to imbed special tags in a tif file with the GeoTIFF format. >The second option is to have a world file, a 6-line ASCII file file such >as > > 2.4384 > 0.0000 > 0.0000 > -2.4384 > 441794.4342 > 5094101.4520 > >These are the 6 coefficients of a three-by-three transformation matrix. >They indicate that a pixel is 2.4384 meters square, and that the center >of the upper left pixel has an easting (x coordinate) of 441794.4342 and >a northing of 5094101.4520. For fans of the matrix: > >x = 2.4384 * column + 0.0 * row + 441794.4342 >y = (-2.4384) * row + 0.0 * column + 5094101.4520 > >The second and third values are zero because there is no rotation or >skew. >..................... > >regards, dejan gambin > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >Behalf Of SUBSCRIBE MAPSERVER-USERS Nuri >Sent: Friday, July 15, 2005 9:31 AM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] Georeferenced coordinates for a tiff file > > >Hi, > >I have a map file that displays a raster image (tif) and several points >over it from an Access database. > >I calculated my EXTENT coordinates from OVF file. Does someone know how >could I calculate the exact georeferenced coordinates for the tif file >to match with the EXTENT of my .map? > >Thank you. > >Nuri _________________________________________________________________ Acepta el reto MSN Premium: Protecci?n para tus hijos en internet. Desc?rgalo y pru?balo 2 meses gratis. http://join.msn.com?XAPID=1697&DI=1055&HL=Footer_mailsenviados_proteccioninfantil From nbarker at RSINC.COM Fri Jul 15 02:05:34 2005 From: nbarker at RSINC.COM (Norman Barker) Date: Fri, 15 Jul 2005 10:05:34 +0100 Subject: Map file as database Message-ID: -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Till Adams Sent: Friday, July 15, 2005 9:14 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Map file as database Kralidis,Tom [Burlington] wrote: > I've been thinking about this for awhile now. It would be great to have a database with at least common objects which can get perl'd into a mapfile on demand. We have many mapfiles working off of one server. If we want to change our LEGEND object globally, it'd be alot easier to do this from a db2mapfile routine. > > ..Tom > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Raphael Teixeira > Sent: Thursday, 14 July, 2005 12:46 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Map file as database > > > Hello All, > > Has anyone modeled the dot map file as database?? I wanna access my map definition from a database not a dot map file. > > Thanks in advice, > Tom (and all), as Dorileo pointed out a few minutes ago, there is the "mapstorer project" (right now there is v 0.3), which stores the whole mapfile in a mysql database. So maybe it's worth giving it a try. Go to www.mapstorer.org or look at sourceforge (or contact Olaf - look in "CC", he's the project-coordinator) Greets, Till -- Mit freundlichen Gr?ssen aus Bonn, Till Adams Depending on your needs, it can be really easy just to create a database and use a XSL Stylesheet. Using Apache Xalan you can query directly into your database from the XSL file (http://xml.apache.org/xalan-j/extensionslib.html#sql) making life really easy. For our project we have used Hypersonic SQL database, and Xalan, and a simple data ingestion tool that collects some simple metadata about the experiment files, the associated user priveleges that are set up in Apache by the tool, and then when it converts the file to geotiff it inserts a row in the database table. To ensure the map file integrity, the stylesheet is run against the whole table every time to create the map file. Mapstorer looks really good though, will have to try it on our next project. Norman From mashby at STANADYNE.COM Fri Jul 15 05:40:41 2005 From: mashby at STANADYNE.COM (Ashby, Matthew) Date: Fri, 15 Jul 2005 08:40:41 -0400 Subject: U.S Census Tiger file and MAPSERVER Message-ID: Hello everyone: This is my first time using Mapserver and I was wondering if it is possible, how do you convert U.S Census tiger files to map files that can be read by Mapserver? --Matthew From fwarmerdam at GMAIL.COM Fri Jul 15 06:48:33 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri, 15 Jul 2005 09:48:33 -0400 Subject: MapServer Technical Steering Committee Guidelines Message-ID: Folks, The MapServer Technical Steering Committee Guidelines have passed with unanimous support from the initial members, if with some concerns about details of scope and process. http://ms.gis.umn.edu/development/rfc/ms-rfc-1/view We already have a couple of proposals percolating! Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From kmulka at GLC.ORG Fri Jul 15 07:35:43 2005 From: kmulka at GLC.ORG (Kyle Mulka) Date: Fri, 15 Jul 2005 10:35:43 -0400 Subject: Google maps as a Mapserver interface Message-ID: I don't know if anyone has pointed this out yet, but there is an opensource javascript API that looked very similar to Google Maps. I haven't looked into the details though, and don't really know what you are looking for, but here it is: http://ka-map.maptools.org/ -Kyle Mulka http://www.kylemulka.com -----Original Message----- From: Antti Roppola [mailto:ajr at BRS.GOV.AU] Sent: Thursday, July 14, 2005 1:19 AM Subject: Google maps as a Mapserver interface Hi all, Has anybody looked at using Google maps as a UI for Mapserver or WMS? I had a look through the API and ended up re-purposing the marker PNG sice there was no apparent way of importing base layers different to those Google provides. I'll post a URL once I start experimentally serving some data in the same projection as Google's base and fix up a few warts in the example, i.e. it Currently doesn't clean up after itself or handle zoom events properly. WFS ought to be a case of an XSLT to munge features into Google's format. Cheers, Antti var map = new GMap(document.getElementById("map")); map.addControl(new GSmallMapControl()); map.centerAndZoom(new GPoint(139.2, -34), 9); function importMS() { map.removeOverlay(marker); var bounds = map.getBoundsLatLng(); var myxmax = bounds.maxX; var myymax = bounds.maxY; var myxmin = bounds.minX; var myymin = bounds.minY; var myext = '&mapext=' + myxmin + '+' + myymin + '+' + myxmax + '+' + myymax; var icon = new GIcon(); var mapserv = 'http://www.some.mapserv/url' + myext; var markershadurl = "http://labs.google.com/ridefinder/images/mm_20_shadow.png"; icon.image = mapserv; icon.shadow = markershadurl; icon.iconSize = new GSize(500,400); icon.shadowSize = new GSize(22,20); icon.iconAnchor = new GPoint(250,200); icon.infoWindowAnchor = new GPoint(5,1); var marker = new GMarker(new GPoint((myxmin + ((myxmax - myxmin)/2)), (myymax - ((myymax - myymin)/2))), icon); map.addOverlay(marker); } importMS(); GEvent.addListener(map, "moveend", function() { importMS(); }); From piero.cavalieri at HEIDI.IT Fri Jul 15 07:40:33 2005 From: piero.cavalieri at HEIDI.IT (Piero Cavalieri) Date: Fri, 15 Jul 2005 09:40:33 -0500 Subject: ODBC/OVF connection Message-ID: Hi all, on my devel machine I successfully connect to a layer via ODBC/OVF connection. Layer is a MSSQL table on Win2k. I done the same thing on production machine (Win2003) => problems. ArchimpXP_SIAT.ovf file: ODBC:xx/xxxx at Archimp_HEIDI Impianti wkbPoint epsg:26591 .map file: LAYER GROUP i_dep_grp CONNECTION "ArchimpXP_SIAT.ovf" CONNECTIONTYPE OGR DATA "impianti" NAME "impianti" METADATA "wms_title" "Impianti Depurazione" "wms_srs" "26591" END PROJECTION "init=epsg:26591" END STATUS ON ... ... web page: ... Depurazione ... ODBC connection test: ogrinfo ODBC:xx/xxxx at Archimp_HEIDI returns the list of db tables, so seems ok. Error messages when requesting the web page: msDrawMap(): Image handling error. Failed to draw layer named 'impianti'. msOGRFileOpen(): OGR error. Open failed for OGR connection `Archimp_HEIDI.ovf'. Failed to import LayerSRS `epsg:26591'. " msDrawMap(): Image handling error. Failed to draw layer named 'impianti'. msOGRFileOpen(): OGR error. Open failed for OGR connection `Archimp_HEIDI.ovf'. Failed to import LayerSRS `epsg:26591'. " I don't understand if errors occurs during connection open or it's layer related. The only difference beteween development environment seems to be that in production machine data files are in different drive (web application in C:, data in D:; of course SHAPEPATH is set right). Help please P. From patrick at PURPLEMARTIN.ORG Fri Jul 15 07:52:30 2005 From: patrick at PURPLEMARTIN.ORG (Pat Kramer) Date: Fri, 15 Jul 2005 09:52:30 -0500 Subject: installing mapserver 4.6.0 with php 5 with bundled gd Message-ID: I was hoping to install this program but I have been stuck at the configuration step for weeks. I have read plenty about recompiling php or installing modules into apache or php but my hosting package does not allow me to access those program directories. Is it possible to configure mapserver use php's bundled version of gd? Info from phpinfo(): GD Support enabled GD Version bundled (2.0.28 compatible) FreeType Support enabled FreeType Linkage with freetype FreeType Version 2.1.9 GIF Read Support enabled GIF Create Support enabled JPG Support enabled PNG Support enabled WBMP Support enabled XBM Support enabled From numerous at GMAIL.COM Fri Jul 15 08:04:59 2005 From: numerous at GMAIL.COM (Yar Doroshenko) Date: Fri, 15 Jul 2005 10:04:59 -0500 Subject: Need help with TIF TILE SIZE Message-ID: Brent, I have tried the mosaicking feature of gdalwarp. I tried it on 5 images out of the 52 that I have. I started with the gdalwarp -s_srs "+proj=utm +zone=15 +datum=NAD83" -t_srs "+proj=latlong +datum=WGS84" 10_1_1.tif latlong.tif on the top left image, and then I did gdalwarp -s_srs "+proj=utm +zone=15 +datum=NAD83" 10_1_2.tif latlong.tif gdalwarp -s_srs "+proj=utm +zone=15 +datum=NAD83" 10_1_3.tif latlong.tif gdalwarp -s_srs "+proj=utm +zone=15 +datum=NAD83" 10_1_4.tif latlong.tif gdalwarp -s_srs "+proj=utm +zone=15 +datum=NAD83" 10_1_5.tif latlong.tif to the four consecutive images on the right. I next tried to display them and what I got seemed like the first image with somewhat distorted edges. Should I start with a center image first? Would these instructions only work for 5 images (1 centerpiece and 4 border images)? How should I handle the 52 ones? They are arranged in a rectangular pattern. Thank you, Yar From fwarmerdam at GMAIL.COM Fri Jul 15 08:08:06 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri, 15 Jul 2005 11:08:06 -0400 Subject: Raster zoom problem with ERDAS Imagine Files In-Reply-To: Message-ID: On 7/14/05, Moen, Paul T. wrote: > I rebuild MapServer after every time I build and install a different GDAL. > > I tried your suggestions from the command line and "mapserv ?v" gave me > MapServer version 4.6.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT INPUT=TIFF INPUT=EPPL7 INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE > > But, shp2img doesn't produce any output it just hangs. The following is > the terminal output. > > [swc2:/MapServerSource/src/mapserver-4.6.0] pmoen% > ./shp2img -m > /Applications/4DWebSTAR/WebServer/DefaultSite/mapfiles/test.map > ?l North -o test.png > > The command prompt never returns when running shp2img. The only way to get > the command prompt back is to ctrl-c. If I try the GDAL 1.2.6 (non cvs > version) shp2img works fine. It returns me to the command prompt > immediately and exports the attached image. It is only with the cvs version > that the problem occurs. > > test.map is a very simple mapfile with one layer, "North" which is a > polygon of North Dakota. Paul, I'm afraid I don't know what is going wrong. If you are handy with a debugger, then you could run shp2img, break it when it hangs, and get a traceback with the "where" command. Alternatively, if you are in a position to provide "ssh" access to your machine, I could do some investigation. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From fwarmerdam at GMAIL.COM Fri Jul 15 08:23:21 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri, 15 Jul 2005 11:23:21 -0400 Subject: OGRVRTDataSource and password In-Reply-To: Message-ID: On 7/14/05, Piero Cavalieri wrote: > Hi all, > I use VRT datasource to connect to a MSSQL Server. > If password is set wrong I have output from MapServer: > > ...Unable to initialize ODBC connection to DSN for **/****@Archimp_STAGE... > > Where **/**** are userID/wrongPasswd. i suppose if there is somelse problem > in OGRVRTDataSource settings, correct user/password are send to web page. > > How can I suppress errors ? Piero, I am not aware of a way to supress this currently, other than preconfiguring the DSN to include the password so it is never visible to OGR or MapServer. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From bfraser at GEOANALYTIC.COM Fri Jul 15 09:03:57 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Fri, 15 Jul 2005 10:03:57 -0600 Subject: Need help with TIF TILE SIZE Message-ID: Yar, The procedure in my previous email is for a single tile. At the beginning of your process you have 52 tiff files in a UTM zone 15 coordinate system (see attached utm.gif). At the end of the process you will have 52 tiff files in a geographic coordinate system (un-projected). If you simply issued 52 gdalwarp commands (on for each input file), you would end up with "wedges" of no-data around the perimeter of each of the 52 new tiff files (see the red wedges in the attached latlon1.gif) due to the projection of the data. To fill in the four wedges you must issue the gdalwarp command with the four images on the four sides of the first image (see the utm23.gif). Fro example: gdalwarp -s_srs "+proj=utm +zone=15 +datum=NAD83" -t_srs "+proj=latlong +datum=WGS84" 7.tif 7_latlong.tif gdalwarp -s_srs "+proj=utm +zone=15 +datum=NAD83" 2.tif 7_latlong.tif gdalwarp -s_srs "+proj=utm +zone=15 +datum=NAD83" 6.tif 7_latlong.tif gdalwarp -s_srs "+proj=utm +zone=15 +datum=NAD83" 8.tif 7_latlong.tif gdalwarp -s_srs "+proj=utm +zone=15 +datum=NAD83" 10.tif 7_latlong.tif The resulting graphic is ONLY the area of the first tiff (#7 in my example) with the wedges of no-data filled in. You must now repeat the process for the other 51 tiles. gdalwarp does not automatically expand the extent of the target tiff to include the total area of the four adjacent tiffs; it only uses the data from the overlap region (the red wedges). Some notes: gdalwarp automatically calculates the extent of the new tiff based on the old tiff (and the projection parameters). You can tell it to create a tiff covering a larger area (or smaller) by calculating the the new extent yourself and using the -te option. The most difficult part of the process is deciding which tiles are adjacent. One solution is to just issue the gdalwarp command 52 times for each of the 52 tiles. gdalwarp will not copy any data if it does not overlap the target tiff (you may get a warning message). An alternative to filling in the wedges is to use the OFFSITE keyword in Mapserver's map file to specify that you want the no-data pixels to be transparent when Mapserver reads the tiffs and renders the web image. But this adds to Mapserver's processing time. Brent ----- Original Message ----- From: "Yar Doroshenko" To: Sent: Friday, July 15, 2005 9:04 AM Subject: Re: [UMN_MAPSERVER-USERS] Need help with TIF TILE SIZE > Brent, > > I have tried the mosaicking feature of gdalwarp. I tried it on 5 images out > of the 52 that I have. I started with the > > gdalwarp -s_srs "+proj=utm +zone=15 +datum=NAD83" -t_srs "+proj=latlong > +datum=WGS84" 10_1_1.tif latlong.tif > > on the top left image, and then I did > > gdalwarp -s_srs "+proj=utm +zone=15 +datum=NAD83" 10_1_2.tif latlong.tif > gdalwarp -s_srs "+proj=utm +zone=15 +datum=NAD83" 10_1_3.tif latlong.tif > gdalwarp -s_srs "+proj=utm +zone=15 +datum=NAD83" 10_1_4.tif latlong.tif > gdalwarp -s_srs "+proj=utm +zone=15 +datum=NAD83" 10_1_5.tif latlong.tif > > to the four consecutive images on the right. I next tried to display them > and what I got seemed like the first image with somewhat distorted edges. > > Should I start with a center image first? Would these instructions only > work for 5 images (1 centerpiece and 4 border images)? How should I handle > the 52 ones? They are arranged in a rectangular pattern. > > > Thank you, > > > Yar -------------- next part -------------- A non-text attachment was scrubbed... Name: utm.gif Type: image/gif Size: 1864 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: latlon1.gif Type: image/gif Size: 2930 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: latlon2.gif Type: image/gif Size: 3578 bytes Desc: not available URL: From osgis.lists at GMAIL.COM Fri Jul 15 09:29:36 2005 From: osgis.lists at GMAIL.COM (David Bitner) Date: Fri, 15 Jul 2005 11:29:36 -0500 Subject: Mapfile %% notation variables and PHP Mapscript Message-ID: I am using Mapserver CGI for my map interface, but am using FPDF and PHP Mapscript to create my printouts. Is there a way that I can pass on my CGI variables that are set in my mapfile using the %var% notation through mapscript? Thanks, David From ezequias at RECIFE.PE.GOV.BR Fri Jul 15 12:48:58 2005 From: ezequias at RECIFE.PE.GOV.BR (Ezequias Rodrigues da Rocha) Date: Fri, 15 Jul 2005 16:48:58 -0300 Subject: Res: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] Problem to load images Message-ID: I am on linux System. -------Mensagem original------- De: Leandro Dorileo Data: 07/15/05 03:38:07 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] Problem to load images Hi Ezequias Are you working on a unix system? or is it a windows system? -- Dorileo On Thursday 14 July 2005 05:13 pm, Ezequias Rodrigues da Rocha wrote: > There is no difference. Thake a look on the image I attached and make your > conclusions. > > Sincerely > Ezequias > > ps.: I did all the process and the service is running. > > -------Mensagem original------- > > De: Randy James > Data: 07/14/05 13:16:31 > Para: Ezequias Rodrigues da Rocha > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Assunto: Re: [UMN_MAPSERVER-USERS] Res: RE: [UMN_MAPSERVER-USERS] Res: Re: > [UMN_MAPSERVER-USERS] Problem to load images > > could be the permissions of the cgi-bin folder? Are the permissions > different for > the /raster folder? > > Randy > > --- Ezequias Rodrigues da Rocha wrote: > > Ed, > > > > It is working now, but let me say what occours: > > > > 1- I have the image on the cgi-bin folder > > 2- My map file is: > > shapepath "/var/www/cgi-bin/" > > LAYER > > NAME "Imagem23" > > data "recorte_23.tif" > > STATUS default > > TYPE RASTER > > PROCESSING "DITHER=YES" > > PROCESSING "BANDS=1,2,3" > > END > > 3 - The error reported when I try to load on the Browser is: > > > > msDrawMap(): Image handling error. Failed to draw layer named > > Imagem23'. > > msDrawRaster(): Unable to access file. (recorte_23.tif) > > > > 4 - a) I copy the image to the folder /raster > > b) Change the LAYER parameter to: > > data "raster/recorte_23.tif" > > > > 5- The image appears on browser > > > > If I didn't make the step 4a the message on step 3 will be repeated. > > > > Does it make any sense ? > > > > Sincerely > > Ezequias > > > > > > > > > > > > -------Mensagem original------- > > > > De: Ed McNierney > > Data: 07/14/05 12:41:47 > > Para: Ezequias Rodrigues da Rocha > > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > > Assunto: RE: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] Problem > > to > > > load images > > > > Ezequias - > > > > OK - you will want to get to a TILEINDEX, I think, if your layers are > > simply > > > separate images that all belong together as a single set of one type of > > image. > > > > But you don't need to worry about that now. Just make sure the DATA > > statement in each LAYER specifies the full pathname. > > > > I suggest you try to get ONE image working properly first, then get the > > other 115 working. Did you have one working at all? > > > > - Ed > > Ed McNierney > > President and Chief Mapmaker > > TopoZone.com / Maps a la carte, Inc. > > 73 Princeton Street, Suite 305 > > North Chelmsford, MA 01863 > > ed at topozone.com > > (978) 251-4242 > > > > > > > > > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > > Behalf Of Ezequias Rodrigues da Rocha > > Sent: Thursday, July 14, 2005 12:08 PM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] Problem to > > load images > > > > > > > > I have no TILEINDEX and I don't know how to use it on mapserver. > > > > My map file have yes 116 layers. > > > > Sincerely > > Ezequias > > -------Mensagem original------- > > > > De: Ed McNierney > > Data: 07/14/05 12:33:15 > > Para: MAPSERVER-USERS at LISTS.UMN.EDU > > Assunto: Re: [UMN_MAPSERVER-USERS] Problem to load images > > > > Ezequias - > > > > Please always reply to the whole list, so everyone can help - thanks! > > > > MapServer may be strange but it should be consistent. Do you have a > > TILEINDEX for these 116 images or are they each specified in a separate > > LAYER in your map file? It doesn't matter where the images are (if the > > permissions are OK) but you should start by putting the full path to each > > image in either the map file LAYER block or in the TILEINDEX shapefile. > > > > - Ed > > Ed McNierney > > President and Chief Mapmaker > > TopoZone.com / Maps a la carte, Inc. > > 73 Princeton Street, Suite 305 > > North Chelmsford, MA 01863 > > ed at topozone.com > > (978) 251-4242 > > > > > > > > > > From: Ezequias Rodrigues da Rocha [mailto:ezequias at recife.pe.gov.br] > > Sent: Thursday, July 14, 2005 11:59 AM > > To: Ed McNierney > > Subject: Res: Re: [UMN_MAPSERVER-USERS] Problem to load images > > > > > > Ed, > > > > > > Mapsever works strange. Some file works on the cgi-bin folder others on > > cgi-bin/raster. > > > > I am working with 116 images too. I don't know if it makes any > > difference. > > > > Sincerely > > Ezequias > > > > -------Mensagem original------- > > > > De: Ed McNierney > > Data: 07/14/05 11:44:53 > > Para: MAPSERVER-USERS at LISTS.UMN.EDU > > Assunto: Re: [UMN_MAPSERVER-USERS] Problem to load images > > > > Ezequias - > > > > This is probably due to the paths to the data. Your error message reports > > a > > > relative path, which depends on the "current directory" on your server. > > It is easier to always use full pathnames (starting with a "/") to your > > data files when you're getting started. Try putting the whole path in > > your map file to see if that solves the problem. > > > > - Ed > > > > Ed McNierney > > President and Chief Mapmaker > > TopoZone.com / Maps a la carte, Inc. > > 73 Princeton Street, Suite 305 > > North Chelmsford, MA 01863 > > ed at topozone.com > > (978) 251-4242 > > > > > > > > > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > > Behalf Of Ezequias Rodrigues da Rocha > > Sent: Thursday, July 14, 2005 10:40 AM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] Problem to load images > > > > > > Hi list, > > > > My browser reported the error above: > > > > msDrawRaster(): Unable to access file. (raster/recorte_01.tif) > > > > Any suggestions ? > > > > all my files are -rwxrwxrwx > > > > > > > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > > Atenciosamente (Sincerely) > > Ezequias Rodrigues da Rocha > > * www.recife.pe.gov.br > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > > A pior das democracias ainda ?? melhor do que a melhor das ditaduras > > The worst of democracies is still better than the better of dictatorships > > MSN Messenger: ezequias at hotmail.com > > ____________________________________________________ > Start your day with Yahoo! - make it your home page > http://www.yahoo.com/r/hs -------------- next part -------------- An HTML attachment was scrubbed... URL: From klement at VATI.HU Fri Jul 15 23:20:27 2005 From: klement at VATI.HU (Klement Szabolcs) Date: Sat, 16 Jul 2005 01:20:27 -0500 Subject: symbols in mapscript Message-ID: I have mapscript symbology problem. The setsymbol method is not working in styleObj. In styleObj.java the setSymbol method pointing to mapscriptJNI.set_styleObj_symbol(swigCPtr, symbol), but this is missing from file mapscript/swiginc/style.i. Why? and how can i make dynamic symbology without the setsymbol function in mapscript ? From gireddy at GMAIL.COM Sun Jul 17 00:28:17 2005 From: gireddy at GMAIL.COM (Shashi Gireddy) Date: Sun, 17 Jul 2005 02:28:17 -0500 Subject: Warning: Failed to open map file Message-ID: I installed ms4w on my windows xp (professional & home both) machienes. I had a simple program to display a map, It was working fine on Linux, When I tested on windows it is giving me following error. Warning: [MapServer Error]: msLoadMap(): (C:\ms4w mp\ms_tmp\Newcounty.map) in C:\ms4w\apps\maps\map1.php on line 15 Warning: Failed to open map file C:\ms4w mp\ms_tmp\Newcounty.map in C:\ms4w\apps\maps\map1.php on line 15 Fatal error: Call to a member function on a non-object in C:\ms4w\apps\maps\map1.php on line 160 I thought it was a windows security issue, I granted "full control" permission to almost every available user on the advanced tab. It seems it is not a security issue. can any body help me. here is the map file MAP NAME FIRSTMAP SIZE 500 500 STATUS ON SYMBOLSET "c:\ms\symbols\symbols35.sym" EXTENT -98.54 29.26 -96.35 27.15 UNITS MILES SHAPEPATH "c:\ms\data\" WEB IMAGEPATH "C:\ms4w\tmp\ms_tmp" IMAGEURL "http://localhost/ms_tmp/" END END and here is a part of the code dl('php_mapscript_44.dll'); $test = $HTTP_SESSION_VARS["test"]; //$map_path="C:\ms4w\tmp\ms_tmp\"; // $map_file="Newcounty.map"; //$map = ms_newMapObj($map_path.$map_file); $map = ms_newMapObj("C:\ms4w\tmp\ms_tmp\Newcounty.map"); // $map_path="/home/census/WWW/ms/map_files/"; // $map_file="Newcounty.map"; //$map = ms_newMapObj($map_path.$map_file); $map->{name} = 'Test'; $map->{status} = MS_ON; $map->{interlace} = MS_OFF; $map->{transparent} = MS_OFF; .... $layer = ms_newLayerObj($map); $layer->set(name,"Surface_Type"); $layer->set(type,MS_LAYER_LINE); $layer->set(status,MS_ON); $layer->set(data,"Surface_Type"); $layer->set(tolerance,10); $layer->set(classitem,"SURFACETYP"); $layer->set(transparency, 90); $layer->set(labelitem,"HWY"); $prm="SURFACETYP"; $pop_undr_1500 = ms_newClassObj($layer); $pop_undr_1500->set(status, MS_ON); $pop_undr_1500->set(name, "51"); $pop_undr_1500->setexpression('([SURFACETYP]==51)'); // create style $style = ms_newStyleObj($pop_undr_1500); $style->color->setRGB(255, 185, 215); $style->outlinecolor->setRGB(0, 0, 0); Thanks alot in advance. thank you, shashi. -- Shashi Kiran Reddy. Gireddy, Graduate Assistant, CBER, University of Alabama. http://www.cs.ua.edu/shashi Home: 205-752-5137 Cell: 205-657-1438 From pykacz1 at YAHOO.COM Sun Jul 17 09:50:11 2005 From: pykacz1 at YAHOO.COM (Karol Such) Date: Sun, 17 Jul 2005 11:50:11 -0500 Subject: MS4W Error Message-ID: I instaled MS4W and I am having troubles running Mapserver. When I click on the mapserv 42 or 44 link I get the message "No query information to decode. QUERY_STRING is set, but empty." How can I overcome this and start building maps. PS. All the other applications such as Maplab and Chameleon work flawlessly. Thank You Karol From pykacz1 at YAHOO.COM Sun Jul 17 10:03:43 2005 From: pykacz1 at YAHOO.COM (Pykacz Pykacz) Date: Sun, 17 Jul 2005 10:03:43 -0700 Subject: MS4W Error Message-ID: How can I overcome the "No query information to decode. QUERY_STRING is set, but empty." error in MS4W and start building Maps? Thank You Karol __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From pykacz1 at YAHOO.COM Sun Jul 17 09:59:00 2005 From: pykacz1 at YAHOO.COM (Pykacz Pykacz) Date: Sun, 17 Jul 2005 09:59:00 -0700 Subject: MS4W Error Message-ID: How can I overcome the "No query information to decode. QUERY_STRING is set, but empty." error in MS4W and start building Maps? Thank You Karol --------------------------------- Yahoo! Mail Stay connected, organized, and protected. Take the tour -------------- next part -------------- An HTML attachment was scrubbed... URL: From nacional at CBS.UMN.EDU Sun Jul 17 10:28:52 2005 From: nacional at CBS.UMN.EDU (Pericles S. Nacionales) Date: Sun, 17 Jul 2005 12:28:52 -0500 Subject: MS4W Error In-Reply-To: Message-ID: Check out http://ms.gis.umn.edu/new_users/ and http://hypnos.cbs.umn.edu/tutorial/ to get started. On Sunday 17 July 2005 11:50, Karol Such wrote: > I instaled MS4W and I am having troubles running Mapserver. When I click > on the mapserv 42 or 44 link I get the message "No query information to > decode. QUERY_STRING is set, but empty." > > How can I overcome this and start building maps. > > PS. All the other applications such as Maplab and Chameleon work > flawlessly. > > Thank You > Karol From nacional at CBS.UMN.EDU Sun Jul 17 10:34:14 2005 From: nacional at CBS.UMN.EDU (Pericles S. Nacionales) Date: Sun, 17 Jul 2005 12:34:14 -0500 Subject: Warning: Failed to open map file In-Reply-To: <5f447e350507170028346da151@mail.gmail.com> Message-ID: Shashi, Look at your IMAGEURL. The value for that keyword is the temp path relative to the web server's root (http://localhost in your case)--it should just be "/tmp/". While this will probably work on your application, it's not recommended. Also, your IMAGEPATH value is lacking the extra slash "\" at the end. One more thing, if all your MapServer related files are in the same hard disk (C:), you don't need to specify the drive letter. You'll also be better off using the Unix slash "/" instead Windows' "\". The idea is that you can port your mapfile to either Windows and Linux/Unix/OSX without having to change the paths. For example, your IMAGEPATH should be rewritten from IMAGEPATH "C:\ms4w\tmp\ms_tmp\" to IMAGEPATH "/ms4w/tmp/ms_tmp/". Now if you move your application from Windows to Linux (or the other way around), you won't have to change anything unless your files are stored in different hard drive partitions on Windows. Anyway, it's probably the IMAGEPATH and IMAGEURL in your mapfile that's causing the problem. Good luck! -Perry On Sunday 17 July 2005 02:28, Shashi Gireddy wrote: > I installed ms4w on my windows xp (professional & home both) > machienes. I had a simple program to display a map, It was working > fine on Linux, When I tested on windows it is giving me following > error. > > Warning: [MapServer Error]: msLoadMap(): (C:\ms4w > mp\ms_tmp\Newcounty.map) in C:\ms4w\apps\maps\map1.php on line 15 > > Warning: Failed to open map file C:\ms4w mp\ms_tmp\Newcounty.map in > C:\ms4w\apps\maps\map1.php on line 15 > > Fatal error: Call to a member function on a non-object in > C:\ms4w\apps\maps\map1.php on line 160 > > > I thought it was a windows security issue, I granted "full control" > permission to almost every available user on the advanced tab. It > seems it is not a security issue. > can any body help me. > > here is the map file > > MAP > NAME FIRSTMAP > SIZE 500 500 > STATUS ON > SYMBOLSET "c:\ms\symbols\symbols35.sym" > EXTENT -98.54 29.26 -96.35 27.15 > UNITS MILES > SHAPEPATH "c:\ms\data\" > WEB > IMAGEPATH "C:\ms4w\tmp\ms_tmp" > IMAGEURL "http://localhost/ms_tmp/" > END > END > > > > and here is a part of the code > > > dl('php_mapscript_44.dll'); > > $test = $HTTP_SESSION_VARS["test"]; > //$map_path="C:\ms4w\tmp\ms_tmp\"; > // $map_file="Newcounty.map"; > //$map = ms_newMapObj($map_path.$map_file); > $map = ms_newMapObj("C:\ms4w\tmp\ms_tmp\Newcounty.map"); > > // $map_path="/home/census/WWW/ms/map_files/"; > // $map_file="Newcounty.map"; > //$map = ms_newMapObj($map_path.$map_file); > > $map->{name} = 'Test'; > $map->{status} = MS_ON; > > $map->{interlace} = MS_OFF; > $map->{transparent} = MS_OFF; > > .... > > > $layer = ms_newLayerObj($map); > $layer->set(name,"Surface_Type"); > $layer->set(type,MS_LAYER_LINE); > $layer->set(status,MS_ON); > $layer->set(data,"Surface_Type"); > $layer->set(tolerance,10); > $layer->set(classitem,"SURFACETYP"); > $layer->set(transparency, 90); > $layer->set(labelitem,"HWY"); > $prm="SURFACETYP"; > > $pop_undr_1500 = ms_newClassObj($layer); > $pop_undr_1500->set(status, MS_ON); > $pop_undr_1500->set(name, "51"); > $pop_undr_1500->setexpression('([SURFACETYP]==51)'); > // create style > $style = ms_newStyleObj($pop_undr_1500); > $style->color->setRGB(255, 185, 215); > $style->outlinecolor->setRGB(0, 0, 0); > > > Thanks alot in advance. > > thank you, > shashi. -- Pericles S. Nacionales Conservation Biology Program University of Minnesota 1530 Cleveland Ave. N., 115GrnH St. Paul, MN 55108 From pykacz1 at YAHOO.COM Sun Jul 17 11:43:27 2005 From: pykacz1 at YAHOO.COM (Karol Such) Date: Sun, 17 Jul 2005 13:43:27 -0500 Subject: Demo Problems Message-ID: I unziped the the recent demo, and edited the index page to point to "C:\ms4w\Apache\cgi-bin" where the files mapserv, mapserv_42 and mapserv_44 are located. Then I renamed the mapserv file to mapserv40 as the tutorial suggests. But when I click on the Basic Operations link (or any other) in the demo index I get the error message that the page can't be found. How can I fix this and get the demo to work? Thank You Karol From m.tomko at PGRAD.UNIMELB.EDU.AU Sun Jul 17 18:03:27 2005 From: m.tomko at PGRAD.UNIMELB.EDU.AU (Martin Tomko) Date: Mon, 18 Jul 2005 11:03:27 +1000 Subject: googlemaps as wms GUI In-Reply-To: Message-ID: A recent post on the Geowanking mailing list pointed to this: http://www.spatialdatalogic.com/cs/blogs/brian_flood/archive/2005/07/11/39.aspx But it seems that the download of the code is passw. protected :( Worth to have a look. Martin From BEN at SYNCERA-ITSOLUTIONS.NL Sun Jul 17 23:47:23 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Mon, 18 Jul 2005 08:47:23 +0200 Subject: "best" data format for attribute searches Message-ID: Hi list, AFAIK Mapserver does not use the Mapinfo attribute indexes. I am trying to perform attribute searches on a 25 Mb Mapinfo file and am worried about performance, since the indexes won't be used which will mean scanning the whole data file for every attribute search. What would be a wise format to shift to for this type of operation? Or doesn't it make any sense to shift to eg PostGIS because of the way Mapserver does queries to RDBMS's? Thanks in advance for any insight on this. Btw the data is polygon data. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl From BEN at SYNCERA-ITSOLUTIONS.NL Mon Jul 18 01:45:14 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Mon, 18 Jul 2005 10:45:14 +0200 Subject: WFS: 4.6 and name of the geometry element (msGeometry) Message-ID: Hi list, probably a question for Steve Lime. Mapserver used to ignore the name of the geometry column. So the following request would work (using Geometry, but one could also use blabla as the name for the Geometry element): Geometry104030.047950,498012.127900 104030.263050,498036.333900 104055.456000,498041.950000 104056.623000,498042.210050 104056.669950,498041.993050 104059.873950,498027.176150 104061.607050,498019.162900 104030.047950,498012.127900 0.01 Now Mapserver 4.6 crashed on this request (internal server error), it used to work a few months ago with one of the beta versions, it took me a while to find out why. I found out this is caused by using Geometry instead of msGeometry. Apparently msGeometry is now the default name expected by Mapserver WFS for the Geometry column. Anyway, good to know for people who want to port their Mapserver WFS requests to 4.6. Btw, the error handling of Mapserver WFS could use some improving, I run into internal server errors all the time :-) I have opened up 2 bug reports to hopefully improve error reporting :-) http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1423 http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1422 Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl From mapserver at HOTMAIL.COM Mon Jul 18 01:53:43 2005 From: mapserver at HOTMAIL.COM (SUBSCRIBE MAPSERVER-USERS Nuri) Date: Mon, 18 Jul 2005 03:53:43 -0500 Subject: hyperlink in a map Message-ID: Hi, I have my own map that places several symbols in it through a database. I need to create a hyperlink for every symbol. Is it possible to do it? This is my present map: MAP IMAGETYPE PNG EXTENT 20.000000 18.000000 50.000000 110.000000 SIZE 500 350 SHAPEPATH "data" IMAGECOLOR 255 180 0 SYMBOLSET "symbols/symbols35.sym" FONTSET "fonts/fonts.list" # Start of LAYER DEFINITIONS -------------------------------------------- - LAYER NAME "prova" TYPE POINT CONNECTIONTYPE OGR CONNECTION "mapa21.ovf" DATA "mapa21" LABELITEM "id" #PROJECTION # "init=epsg:4326" #END CLASS SYMBOL 'symbols/prova.gif' #SIZE 6 COLOR 255 0 0 LABEL SIZE MEDIUM TYPE BITMAP COLOR 0 0 0 END END END # End of LAYER DEFINITIONS ------------------------------- END # end of map file It would be ok to insert the link in the symbol or in the ID (labelitem), it's no matter, to call to another URL like http://www.mysite.com Thank you. Nuri From woodbri at SWOODBRIDGE.COM Mon Jul 18 05:27:19 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 18 Jul 2005 08:27:19 -0400 Subject: "best" data format for attribute searches In-Reply-To: Message-ID: Bart van den Eijnden wrote: > Hi list, > > AFAIK Mapserver does not use the Mapinfo attribute indexes. > > I am trying to perform attribute searches on a 25 Mb Mapinfo file and > am worried about performance, since the indexes won't be used which > will mean scanning the whole data file for every attribute search. > > What would be a wise format to shift to for this type of operation? > Or doesn't it make any sense to shift to eg PostGIS because of the > way Mapserver does queries to RDBMS's? Bart, PostGIS works wonderfully. Fully indexed searches (if you have the indexes), and you can do joins to classify data on rendering, and it has spatial indexes which speed up rendering like tileindexes do for shape data. I have been very happy with it. Oh and you can keep some data in .tab files and some in postGIS if you wish to easy migration. -Steve W. > Thanks in advance for any insight on this. > > Btw the data is polygon data. > > Best regards, Bart > > Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT > > tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl > From humberto at PASTORALDACRIANCA.ORG.BR Mon Jul 18 06:05:32 2005 From: humberto at PASTORALDACRIANCA.ORG.BR (Humberto Cereser Ibanez) Date: Mon, 18 Jul 2005 10:05:32 -0300 Subject: Specifications do a Developing Team In-Reply-To: <42D6C639.000003.02448@DC_EZEQUIAS> Message-ID: > Hi list, > > Does anyone can tell me what softwares should be installed on a local > machine to developer applications with mapserver (php or Java)? I suggest you to use php and php_mapscript. Do you use Linux in your host? > > You should know that we have the mapserver installed in a server machine > running PostGIS too. > > What software should be installed to implement applications and witch > others > don't. > > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > Atenciosamente (Sincerely) > Ezequias Rodrigues da Rocha > * www.recife.pe.gov.br > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > A pior das democracias ainda ? melhor do que a melhor das ditaduras > The worst of democracies is still better than the better of dictatorships > MSN Messenger: ezequias at hotmail.com Humberto Cereser Ibanez Pastoral da Crian?a Curitiba - PR From jmckenna at DMSOLUTIONS.CA Mon Jul 18 06:23:16 2005 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Mon, 18 Jul 2005 09:23:16 -0400 Subject: MS4W Error In-Reply-To: Message-ID: The first thing i would suggest is to upgrade your MS4W, the recent versions contain MapServer 4.6 and 4.4. Please try that and see if you get the same error. thanks. jeff Karol Such wrote: > I instaled MS4W and I am having troubles running Mapserver. When I click > on the mapserv 42 or 44 link I get the message "No query information to > decode. QUERY_STRING is set, but empty." > > How can I overcome this and start building maps. > > PS. All the other applications such as Maplab and Chameleon work > flawlessly. > > Thank You > Karol > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From jmckenna at DMSOLUTIONS.CA Mon Jul 18 06:25:09 2005 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Mon, 18 Jul 2005 09:25:09 -0400 Subject: MS4W Error In-Reply-To: Message-ID: sorry i just realized that this is not an error at all...Perry is right, those tutorials will help you. jeff Karol Such wrote: > I instaled MS4W and I am having troubles running Mapserver. When I click > on the mapserv 42 or 44 link I get the message "No query information to > decode. QUERY_STRING is set, but empty." > > How can I overcome this and start building maps. > > PS. All the other applications such as Maplab and Chameleon work > flawlessly. > > Thank You > Karol > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From Tom.Kralidis at EC.GC.CA Mon Jul 18 06:48:58 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Mon, 18 Jul 2005 09:48:58 -0400 Subject: mapscript python build test error Message-ID: Hi, I am trying to build python mapscript from MapServer CVS and encounter errors when running the tests. I have not installed the package yet as root. An earlier message I sent on another mapscript topic suggested upgrading swig, but I have not done so yet (FYI I had to removed the -modern option from the swig command below); however I'm not sure if this is the cause of the test errors? Thanks alot ..Tom OS: Linux Fedora MapServer: latest CVS (18 July 2005) SWIG: 1.3.19 MapServer already compiled: MapServer version 4.7 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPO RTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT= OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG $ cd mapscript/ $ cd mapscript/python $ swig -python -shadow -modern -o mapscript_wrap.c ../mapscript.i swig error : Unrecognized option -modern Use 'swig -help' for available options. $ swig -python -shadow -o mapscript_wrap.c ../mapscript.i $ python setup.py build running build running build_py copying mapscript.py -> build/lib.linux-i686-2.3 running build_ext building '_mapscript' extension creating build/temp.linux-i686-2.3 creating build/temp.linux-i686-2.3/pygdioctx gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -march=i386 -mcpu=i686 -D_GNU_SOURCE -fPIC -fPIC -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR - DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR -I/usr/includ e/python2.3 -I. -I/usr/local/include -I/usr/include/python2.3 -c pygdioctx/pygdioctx.c -o build/temp.linux-i686-2.3/pygdioctx/p ygdioctx.o gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -march=i386 -mcpu=i686 -D_GNU_SOURCE -fPIC -fPIC -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR - DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR -I/usr/includ e/python2.3 -I. -I/usr/local/include -I/usr/include/python2.3 -c mapscript_wrap.c -o build/temp.linux-i686-2.3/mapscript_wrap.o $ cd tests/cases $ python runalltests.py -v ====================================================================== ERROR: OWSRequestTestCase.testGetParameter: OWS can get request parameters by index ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/src/mapserver/cvs/mapserver/mapscript/python/tests/cases/ows test.py", line 57, in testGetParameter request = mapscript.OWSRequest() AttributeError: 'module' object has no attribute 'OWSRequest' ====================================================================== ERROR: OWSRequestTestCase.testGetParameterByName: OWS can get request parameters by name ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/src/mapserver/cvs/mapserver/mapscript/python/tests/cases/ows test.py", line 63, in testGetParameterByName request = mapscript.OWSRequest() AttributeError: 'module' object has no attribute 'OWSRequest' ====================================================================== ERROR: OWSRequestTestCase.testInit: OWS initializer works right ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/src/mapserver/cvs/mapserver/mapscript/python/tests/cases/ows test.py", line 49, in testInit request = mapscript.OWSRequest() AttributeError: 'module' object has no attribute 'OWSRequest' ====================================================================== ERROR: OWSRequestTestCase.testLoadWMSRequest: OWS can load a WMS request ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/src/mapserver/cvs/mapserver/mapscript/python/tests/cases/ows test.py", line 78, in testLoadWMSRequest request = mapscript.OWSRequest() AttributeError: 'module' object has no attribute 'OWSRequest' ====================================================================== ERROR: OWSRequestTestCase.testResetParam: OWS can reset parameters by name ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/src/mapserver/cvs/mapserver/mapscript/python/tests/cases/ows test.py", line 69, in testResetParam request = mapscript.OWSRequest() AttributeError: 'module' object has no attribute 'OWSRequest' ====================================================================== FAIL: numpoints is immutable, this should raise error ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/src/mapserver/cvs/mapserver/mapscript/python/tests/cases/lin etest.py", line 71, in testAlterNumPoints self.assertRaises(AttributeError, setattr, self.line, 'numpoints', 3) File "/usr/src/build/394694-i386/install/usr/lib/python2.3/unittest.py", line 295, in failUnlessRaises raise self.failureException, excName AssertionError: AttributeError ====================================================================== FAIL: testCreateUnsupported (outputformattest.UnsupportedFormatTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/src/mapserver/cvs/mapserver/mapscript/python/tests/cases/out putformattest.py", line 117, in testCreateUnsupp orted 'PDF') File "/usr/src/build/394694-i386/install/usr/lib/python2.3/unittest.py", line 295, in failUnlessRaises raise self.failureException, excName AssertionError: MapServerError ---------------------------------------------------------------------- Ran 242 tests in 20.785s FAILED (failures=2, errors=5) From fwarmerdam at GMAIL.COM Mon Jul 18 07:15:29 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Mon, 18 Jul 2005 10:15:29 -0400 Subject: "best" data format for attribute searches In-Reply-To: Message-ID: On 7/18/05, Bart van den Eijnden wrote: > Hi list, > > AFAIK Mapserver does not use the Mapinfo attribute indexes. > > I am trying to perform attribute searches on a 25 Mb Mapinfo file and am worried about performance, since the indexes won't be used which will mean scanning the whole data file for every attribute search. > > What would be a wise format to shift to for this type of operation? Or doesn't it make any sense to shift to eg PostGIS because of the way Mapserver does queries to RDBMS's? > > Thanks in advance for any insight on this. Bart, The only non-RDBMS driver in OGR that supports indexed attribute queries is Shapefiles, and there only exact lookups are indexable. If you don't want the hassle of setting up a complex RDBMS like PostGIS you might consider a lightweight equivelent like SQLite but I do think Postgresql/PostGIS would be the ideal option. PS. I do have a vague intention of implementing indexed attribute query support for mapinfo tab files at some point, and the underlying MITAB does support the index files so it shouldn't be too hard. But no timeline on such work. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From David.Hunter at FNF.COM Mon Jul 18 07:19:38 2005 From: David.Hunter at FNF.COM (Hunter, David - St. Louis Park, MN) Date: Mon, 18 Jul 2005 09:19:38 -0500 Subject: annotating PDF output Message-ID: Is there any way to annotate PDF output using MapServer CGI? I thought perhaps using templates, but it looks like it's sending html text when I do that. Is PHP my only option, or could I do this with Java MapScript? David S. Hunter Sr. Software Engineer Fidelity National Geographic Solutions division of Fidelity National Financial 5353 Gamble Drive, Suite 201 St. Louis Park, MN 55416 * Email: david.hunter at fnf.com ' Phone: 952.542.1440 ext. 256 * Fax: 952.542.3859 -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill at POCONOGIS.COM Mon Jul 18 08:34:45 2005 From: bill at POCONOGIS.COM (Bill Chappell) Date: Mon, 18 Jul 2005 11:34:45 -0400 Subject: Where to install Mapserver? Message-ID: Ok, I'm a new user and I'm confused trying to find a clue. Basically I've in inherited a few mapserver projects that I have to update and move from a UNIX to a windows platform. I'm currently playing with it on an XP-pro platform before I move it to a win2003 server using IIs. While I understand the map files and I can modify them on the UNIX server, the windows install has been a nightmare. I have tried so many things (shotgun approach) now that if I get it running, I'm not sure what files are really in the right place. I've been through the permissions hell and believe I'm ok with that. I've also tried the MS4W app on my laptop but that is not helping with my current question. A quick search showed I had mapserv.exe located in c:\mapserver, c:\mapserver\bin, c:\Inetpub\wwwroot, c:\Inetpub\wwwroot\cgi-bin. A http://localhost/cgi-bin/mapserv.exe? Gives me a run/save/cancel dialog, not the "No query information to decode. QUERY_STRING is set, but empty." I expected. Yet because of a path variable mapserv.exe -v appears to be correct. I plan on using PHP/ chameleon-2.2 and a clue where to place these files/folders would also help. Any help would be appreciated. Thanks, Bill Bill Chappell 570-402-5064 Bill at PoconoGIS.com www.PoconoGIS.com From logicalgenetics at GMAIL.COM Mon Jul 18 08:49:55 2005 From: logicalgenetics at GMAIL.COM (Dan Taylor) Date: Mon, 18 Jul 2005 16:49:55 +0100 Subject: Powered by... Message-ID: Is there such thing as a "Powered by Mapserver" graphic/button? If so, where can I find it? Cheers, Dan -- Dan Taylor Software Development Engineer, JTL Systems Ltd PhD Student, Reading University, UK http://www.logicalgenetics.com From abe.gillespie at GMAIL.COM Mon Jul 18 09:39:01 2005 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Mon, 18 Jul 2005 12:39:01 -0400 Subject: Powered by... In-Reply-To: <830dd37405071808497a2c046@mail.gmail.com> Message-ID: I think the story goes: no one could agree on one official logo. But DM Solutions has the closest to "official" logos here: http://www2.dmsolutions.on.ca/mapserver/logo/ -Abe On 7/18/05, Dan Taylor wrote: > Is there such thing as a "Powered by Mapserver" graphic/button? If > so, where can I find it? > > Cheers, > > Dan > > -- > Dan Taylor > > Software Development Engineer, JTL Systems Ltd > PhD Student, Reading University, UK > > http://www.logicalgenetics.com > From Jay.D.Austin at NWO02.USACE.ARMY.MIL Mon Jul 18 09:52:01 2005 From: Jay.D.Austin at NWO02.USACE.ARMY.MIL (Jay Austin) Date: Mon, 18 Jul 2005 11:52:01 -0500 Subject: MapServer .swf decompile Message-ID: Hi, I've been unsuccessfully trying to implement the ElementSelected feature of Mapserver's swf output and I'm curious if any of you have a .swf decompiler you could use to send me a copy of the ActionScript placed in a Mapserver swf. Also, if anyone could point me to documentation about Mapserver's swf output other than http://www2.dmsolutions.ca/mapserver/dl/FlashMapserverUserDoc.html that would be helpful too. Thanks, Jay Austin From David.Hunter at FNF.COM Mon Jul 18 11:57:52 2005 From: David.Hunter at FNF.COM (Hunter, David - St. Louis Park, MN) Date: Mon, 18 Jul 2005 13:57:52 -0500 Subject: mapserver bug? Message-ID: I am using the CGI version 4.4.1 on Win2000. Whenever I have a layer of the type ANNOTATION in my map file and the output type is PDF, I get a fatal error. Visual Studio says it's an unhandled exception in libmap.dll, line 1001730E. David S. Hunter Sr. Software Engineer Fidelity National Geographic Solutions division of Fidelity National Financial 5353 Gamble Drive, Suite 201 St. Louis Park, MN 55416 * Email: david.hunter at fnf.com ' Phone: 952.542.1440 ext. 256 * Fax: 952.542.3859 -------------- next part -------------- An HTML attachment was scrubbed... URL: From antaborda at YAHOO.COM Mon Jul 18 12:08:42 2005 From: antaborda at YAHOO.COM (Andres Taborda) Date: Mon, 18 Jul 2005 14:08:42 -0500 Subject: how to select image zoom, rectangle, move,etc in the map. Message-ID: hello users, some users can help me with examples of javascript of functions for operate the images or maps display in the web. By example with mouse to mover maps, zoom on map, select an area, click area, etc.. thanks very much. __________________________________________________ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ?gratis! Reg?strate ya - http://correo.espanol.yahoo.com/ From dls at INFORMGIS.COM Mon Jul 18 13:18:00 2005 From: dls at INFORMGIS.COM (David Stajan) Date: Mon, 18 Jul 2005 15:18:00 -0500 Subject: catch Query result - No matching record(s) found Message-ID: Hi Group, I was wondering if there is any flexability in what you can do with the output that is generated when a query results in no features found. Currently I get this type of output: msQueryByPoint(): Search returned no results. No matching record(s) found.
Mapserver seems to completely ignore any of the defined templates if the users query returns no results. Is there another type of template that can be defined? I personally don't like this default output and would like to be able to customize it or be able to trap it and deal with it through code somehow. I'm currently not using mapscripts, only cgi and javascript, but am intrested in any solutions that one might have. Thanks, DaviD From jalfarid at GMAIL.COM Mon Jul 18 13:45:12 2005 From: jalfarid at GMAIL.COM (Farid Vakilzadeh) Date: Mon, 18 Jul 2005 16:45:12 -0400 Subject: How to pretent a repeatation? Message-ID: Hi All, I have, I believe, a basic question. I have different layers in my map file. Some of them belong to one group and I want to classify the appearance of the colors in these layers. I know how to classify the colors but at this time I have to repeat the classification part in each layer. Can some one tell me how I can design one classification part for all layers in the same group. Thanks Farid From Tom.Kralidis at EC.GC.CA Mon Jul 18 15:28:35 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Mon, 18 Jul 2005 18:28:35 -0400 Subject: problems with shapefile Message-ID: Hi, We're having some problems with some (what we think is) simple shapefile polygon data. ogrinfo -al .shp works on the file. When I add to my .map file and try to interact via OGC:WMS, the data does not display. When I do a OGC:WMS GetCapabilities, the bounding coordinates per LatLonBoundingBox are not reflective of the data extents. When I try with shp2img, I get the following error: $ shp2img -m config.map -all_debug 1 -l pda_al83_polygon2 Mon Jul 18 19:04:34 2005 - msSearchDiskTree(): Unable to access file. Unable to open spatial index f or /usr/local/wwwsites/apache/devgeo.cciw.ca/apps/mapserv/services/ecows/./ pyrtmp/pda_al83_polygon2. qix. In most cases you can safely ignore this message, otherwise check file names and permissions. (Why is it looking for a .qix?) When I generate the .qix with shptree and run shp2img again with the same args, no error is given (although it provides debug info on a layer I didn't ask for on the command line [all my LAYERs are STATUS ON). To confirm, I am able to eyeball and query the data using uDig and (sigh) ArcExplorer. I'm using latest CVS. What gives? Thanks ..Tom From tylermitchell at SHAW.CA Mon Jul 18 15:57:59 2005 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Mon, 18 Jul 2005 15:57:59 -0700 Subject: catch Query result - No matching record(s) found Message-ID: Hi David, There are templates you can provide in the WEB object, called EMPTY or ERROR. See: http://ms.gis.umn.edu/docs/reference/mapfile/web Tyler ----- Original Message ----- From: David Stajan Date: Monday, July 18, 2005 1:18 pm Subject: [UMN_MAPSERVER-USERS] catch Query result - No matching record(s) found > Hi Group, > > I was wondering if there is any flexability in what you can do > with the > output that is generated when a query results in no features found. > > Currently I get this type of output: > > msQueryByPoint(): Search returned no results. No matching > record(s) found. >
> > > Mapserver seems to completely ignore any of the defined templates > if the > users query returns no results. Is there another type of template > thatcan be defined? I personally don't like this default output > and would > like to be able to customize it or be able to trap it and deal > with it > through code somehow. I'm currently not using mapscripts, only > cgi and > javascript, but am intrested in any solutions that one might have. > > Thanks, > DaviD > From ealpert at DIGITALGLOBE.COM Mon Jul 18 16:02:58 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Mon, 18 Jul 2005 17:02:58 -0600 Subject: problems with shapefile Message-ID: What is the Extent printed out by ogrinfo -al? Is that different than the GetCapabilities? What is the tag returned in the GetCapabilities? What is your EXTENT and PROJECTION specified in your mapfile? What is the projection specified in your layer? These are the usual culprits when nothing shows up. -e From Tom.Kralidis at EC.GC.CA Mon Jul 18 17:50:58 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Mon, 18 Jul 2005 20:50:58 -0400 Subject: problems with shapefile Message-ID: > -----Original Message----- > From: Ethan Alpert [mailto:ealpert at digitalglobe.com] > Sent: Monday, 18 July, 2005 19:03 > To: Kralidis,Tom [Burlington]; MAPSERVER-USERS at LISTS.UMN.EDU > Subject: RE: [UMN_MAPSERVER-USERS] problems with shapefile > > > > > What is the Extent printed out by ogrinfo -al? > ogrinfo -al output: Extent: (3668545.746945, 620284.375175) - (9021698.683472, 5271375.948747) GetCapabilities Layer chunk: > Is that different than the GetCapabilities? What is the > tag returned in the GetCapabilities? > SRS tag is EPSG:42304, as defined in LAYER/PROJECTION object. > What is your EXTENT and PROJECTION specified in your mapfile? > What is the projection specified in your layer? These are the > usual culprits when nothing shows up. > No extent defined in mapfile. PROJECTION is: PROJECTION "init=epsg:42304" END 43204 is defined correctly in /usr/local/share/proj/epsg Upon further investigation, doing a GetMap with EPSG:4326 (zoomed out to the world now), shows the image flipped around: http://devgeo.cciw.ca/cgi-bin/mapserv/ecows?SERVICE=WMS&VERSION=1.1.1&RE QUEST=GetMap&SRS=EPSG%3A4326&BBOX=-180.0000000309986,-112.5000000193741, 180.0000000309986,112.5000000193741&WIDTH=560&HEIGHT=350&LAYERS=pda_al83 _polygon2&STYLES=&FORMAT=image%2Fpng&BGCOLOR=0xFFFFFF&TRANSPARENT=FALSE& EXCEPTIONS=application%2Fvnd.ogc.se_inimage Doing a GetMap with EPSG:42304 zoomed out to the world (even though 42304 is best suited for Canadian views): http://devgeo.cciw.ca/cgi-bin/mapserv/ecows?SERVICE=WMS&VERSION=1.1.1&RE QUEST=GetMap&SRS=EPSG%3A42304&BBOX=-8831758.337197961,-8736410.016254073 ,31243258.35528204,16310475.41654593&WIDTH=560&HEIGHT=350&LAYERS=pda_al8 3_polygon2&STYLES=&FORMAT=image%2Fpng&BGCOLOR=0xFFFFFF&TRANSPARENT=FALSE &EXCEPTIONS=application%2Fvnd.ogc.se_inimage So, it appears that the image, in 42304, has an incorrect extent. I'll fix that first and hopefully that will take care of the subsequent issues. ..Tom > > > > > -e > > From jacob.delfos at MAUNSELL.COM Mon Jul 18 19:21:25 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Tue, 19 Jul 2005 10:21:25 +0800 Subject: GEOS support for php_mapscript Message-ID: Hi List, Just wondering whether anyone knows the state of GEOS support in php_mapscript (bug: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1327). But hey, no pressure :-) Regards, Jacob JACOB DELFOS SPATIAL INFORMATION ANALYST Maunsell Australia Pty Ltd 629 Newcastle Street, Leederville, WA 6007 PO Box 81, Leederville, WA 6902 Western Australia ABN 20 093 846 925 Tel + 61 8 9281 6185 Fax + 61 8 9281 6297 jacob.delfos at maunsell.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jim at JIMDONAGHY.COM Mon Jul 18 21:51:42 2005 From: jim at JIMDONAGHY.COM (Jim Donaghy) Date: Mon, 18 Jul 2005 21:51:42 -0700 Subject: imagemap output format Message-ID: Does anyone have an example map file working with the imagemap output format that they would not mind sharing? I'm using the ms4w binaries, and when I specify the imagemap format on an otherwise working mapfile with polygons defined, it outputs the html file with map tags but no areas defined. Thanks in advance. From sgillies at FRII.COM Mon Jul 18 22:32:06 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Mon, 18 Jul 2005 22:32:06 -0700 Subject: mapscript python build test error In-Reply-To: Message-ID: On Jul 18, 2005, at 6:48 AM, Kralidis,Tom [Burlington] wrote: > Hi, > > I am trying to build python mapscript from MapServer CVS and encounter > errors when running the tests. I have not installed the package yet as > root. > > An earlier message I sent on another mapscript topic suggested > upgrading > swig, but I have not done so yet (FYI I had to removed the -modern > option from the swig command below); however I'm not sure if this is > the > cause of the test errors? > > Thanks alot > > ..Tom > Tom, Usually, such OWSRequest errors are due to MapServer not configured with WMS client/server support, but it seems that you are configuring it properly. The final two test failures are due to bugs in the test suite. I think you are probably good to go, it's unlikely that you will be using the OWSRequest class. What's your interest in the Python mapscript? You really ought to upgrade to SWIG 1.3.21+ if you are going to try to use it with Python versions 2.2 or higher. The -modern option results in a higher performance module. Sean -- Sean Gillies sgillies at frii dot com http://zcologia.com From luca76 at GMAIL.COM Mon Jul 18 22:55:16 2005 From: luca76 at GMAIL.COM (Luca Manganelli) Date: Tue, 19 Jul 2005 07:55:16 +0200 Subject: Mapserver viewer framework with tool tip (hint box)? Message-ID: Hi, I'm in the searching for a framework (Chamaleon, Mapbuilder, Mapbender, etc) that gives the possibility to show a tip box ("hint box" for someone else) [*] showing the fields of a attribute over the mouse. The main page of mapbender http://www.mapbender.org/ gives a demonstration with a tipbox (pass your mouse over the blue points). But mapbender has the documentation and mailing list written mainly in german, which I don't understand a lot. Someone suggested me Chamaleon and Mapbuilder, but I don't know if they does support for tip box. I.e.: when I pass the mouse over a point, I would like to know some attributes (fields) of that point... [*] http://www.cvs-ext.com/tooltip.gif - the tool tip is the yellow box From BEN at SYNCERA-ITSOLUTIONS.NL Tue Jul 19 00:12:54 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Tue, 19 Jul 2005 09:12:54 +0200 Subject: Mapserver viewer framework with tool tip (hint box)? Message-ID: Hi, Chameleon does support this, it is called the MapTips widget. If you install Chameleon, you'll get sample applications, the MapTips widget is used in the "Sample using widgets from the Enhanced widget group". For further questions you can refer to the chameleon-users list. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Luca Manganelli 07/19/05 07:55am >>> Hi, I'm in the searching for a framework (Chamaleon, Mapbuilder, Mapbender, etc) that gives the possibility to show a tip box ("hint box" for someone else) [*] showing the fields of a attribute over the mouse. The main page of mapbender http://www.mapbender.org/ gives a demonstration with a tipbox (pass your mouse over the blue points). But mapbender has the documentation and mailing list written mainly in german, which I don't understand a lot. Someone suggested me Chamaleon and Mapbuilder, but I don't know if they does support for tip box. I.e.: when I pass the mouse over a point, I would like to know some attributes (fields) of that point... [*] http://www.cvs-ext.com/tooltip.gif - the tool tip is the yellow box From pimpoumvlan at HOTMAIL.COM Tue Jul 19 00:39:26 2005 From: pimpoumvlan at HOTMAIL.COM (Selim Hernandez) Date: Tue, 19 Jul 2005 02:39:26 -0500 Subject:
(html) and Itemquery Message-ID: Hello everybody, I have problems with the itemquery parameter and there must be somthing I have misunderstood. I have a layer on which there are 'parcelles' (areas). Each county has 2 parameters ('planche' and 'numero') I want to make a html in which I could put these 2 parameters, in order to display the right 'parcelle' (area), with the right information. But with Itemquery, it seems that the qstring parameter is compulsory otherwise this message is displayed : msQueryByAttributes(): Query error. No query expression defined How can I put in the qstring parameter the values of the 'planche' and 'numero' like this : ('[planche]'='xxxxxxx' and '[numero]'='xxxxxxx') ?? I tried to do as in the TestSuite (http://maps.dnr.state.mn.us/mapserver_demos/tests/itemquery/test.html) but it use the FILTER parameter that is no more used in MapServer 4.xx If you have any information or any example of working Itemquery application (without FILTER), it would be great. Thank you From eywitteveen at GMAIL.COM Tue Jul 19 00:39:12 2005 From: eywitteveen at GMAIL.COM (E Witteveen) Date: Tue, 19 Jul 2005 09:39:12 +0200 Subject: Commercial support for mapserver / "resellers" Message-ID: Hello list, We, our company, noticed that in comparisions for geographical viewers, mapserver is not mentioned in the list of products. We think that mapserver could also be used in situations where now commercial sollutions are chosen, and sometimes mapserver would even be a better choise. Is there a list of companies which offer support based upon country (resellers)? Are there any promotional materials (targetgroup: managers)? More important, what is the overall opinion about this(being commercial with mapserver)? -- Ing. Eduard Yeb Witteveen Software Engineer Hawar Information Technology bv lid Dijkoraad Groep De Wymerts 7 8701 WT Bolsward Tel: +31 (0)515 570333 Fax: +31 (0)515 570335 http://www.hawarit.com/ nl_NL fy_NL en_US From taatuut at PLANET.NL Tue Jul 19 00:59:47 2005 From: taatuut at PLANET.NL (Emil Zegers) Date: Tue, 19 Jul 2005 09:59:47 +0200 Subject: Commercial support for mapserver / "resellers" In-Reply-To: <42DCAE20.6080204@gmail.com> Message-ID: Hello Eduard, A list of companies offering commercial support can be found in Tyler Mitchell's book 'Web Mapping Illustrated' on page 58: In the Netherlands commercial support is offered by Syncera IT Solutions (www.syncera-itsolutions.nl) and Geodan (www.geodan.nl). This list does not claim to be complete since also other dutch companies like ARIS, Nieuwland and more offer MapServer solutions. Maybe it is an idea to put such a list on the MapServer site? Regards, Emil Zegers -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of E Witteveen Sent: dinsdag 19 juli 2005 9:39 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Commercial support for mapserver / "resellers" Hello list, We, our company, noticed that in comparisions for geographical viewers, mapserver is not mentioned in the list of products. We think that mapserver could also be used in situations where now commercial sollutions are chosen, and sometimes mapserver would even be a better choise. Is there a list of companies which offer support based upon country (resellers)? Are there any promotional materials (targetgroup: managers)? More important, what is the overall opinion about this(being commercial with mapserver)? -- Ing. Eduard Yeb Witteveen Software Engineer Hawar Information Technology bv lid Dijkoraad Groep De Wymerts 7 8701 WT Bolsward Tel: +31 (0)515 570333 Fax: +31 (0)515 570335 http://www.hawarit.com/ nl_NL fy_NL en_US From BEN at SYNCERA-ITSOLUTIONS.NL Tue Jul 19 00:58:25 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Tue, 19 Jul 2005 09:58:25 +0200 Subject: Commercial support for mapserver / "resellers" Message-ID: Hi, the recently published book by Tyler Mitchel, Web Mapping Illustrated using Open Source GIS Toolkits, contains a list of companies who offer support for Mapserver on page 58. Tyler, are you allowed to publish this list on the user list??? Ofcourse, there are different levels of support. Advanced user support, or support where things have to be bugfixed or even enhancements to the source code. With the latter category, the developers who work on the source code daily will be the best and the fastest. I have been using Mapserver in GIS projects in Netherlands for the last 3 years and have been more than satisfied with it, and also with the commercial support available. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> E Witteveen 07/19/05 09:39am >>> Hello list, We, our company, noticed that in comparisions for geographical viewers, mapserver is not mentioned in the list of products. We think that mapserver could also be used in situations where now commercial sollutions are chosen, and sometimes mapserver would even be a better choise. Is there a list of companies which offer support based upon country (resellers)? Are there any promotional materials (targetgroup: managers)? More important, what is the overall opinion about this(being commercial with mapserver)? -- Ing. Eduard Yeb Witteveen Software Engineer Hawar Information Technology bv lid Dijkoraad Groep De Wymerts 7 8701 WT Bolsward Tel: +31 (0)515 570333 Fax: +31 (0)515 570335 http://www.hawarit.com/ nl_NL fy_NL en_US From piero.cavalieri at HEIDI.IT Tue Jul 19 01:18:06 2005 From: piero.cavalieri at HEIDI.IT (Piero Cavalieri) Date: Tue, 19 Jul 2005 03:18:06 -0500 Subject: Where to install Mapserver? Message-ID: Bill Chappell wrote: >Ok, I'm a new user and I'm confused trying to find a clue. > >Basically I've in inherited a few mapserver projects that I have to update >and move from a UNIX to a windows platform. I'm currently playing with it on >an XP-pro platform before I move it to a win2003 server using IIs. While I >understand the map files and I can modify them on the UNIX server, the >windows install has been a nightmare. I have tried so many things (shotgun >approach) now that if I get it running, I'm not sure what files are really >in the right place. I've been through the permissions hell and believe I'm >ok with that. I've also tried the MS4W app on my laptop but that is not >helping with my current question. > >A quick search showed I had mapserv.exe located in c:\mapserver, >c:\mapserver\bin, c:\Inetpub\wwwroot, c:\Inetpub\wwwroot\cgi-bin. On Win2k and Win2003 should be: c:\Inetpub\wwwroot\scripts (if you have cgi-bin, ok) You can remove remaining mapserv.exe With win2003, you should add a "Predifinied web site" (I translated from Italian, so maybe the name is not correct) called Scripts (cgi-bin in your case). Inside, you have maserv.exe. Try to give full permissions at the beginning, and downgrade till the things still work (this is what you do when You don't know what are you doing...). You must give permissions to mapserv.exe (they are not inerited from Mapserv). To have HttWebRequest to mapserv.exe I gave "Anonimous access" to maserv.exe, but this should not be necessary if you use "pure" templates (I use ASP.NET). You also need to add the mapserver's lib dir to your PATH environment variable. >A http://localhost/cgi-bin/mapserv.exe? Gives me a run/save/cancel dialog, Maybe few permissions on mapeserv.exe Probably you'll need Proj lib. For this to work add PROJ_LIB to environment varables, which points to the proj's "nad" dir. Piero. From piero.cavalieri at HEIDI.IT Tue Jul 19 01:24:27 2005 From: piero.cavalieri at HEIDI.IT (Piero Cavalieri) Date: Tue, 19 Jul 2005 03:24:27 -0500 Subject: Where to install Mapserver? Message-ID: ... ... You must give permissions to mapserv.exe (they are not inerited from Mapserv). ... ... Sorry...they are not inherited from Scripts (cgi-bin)... Piero. From Wolfgang.Qual at MUENCHEN.DE Tue Jul 19 02:17:11 2005 From: Wolfgang.Qual at MUENCHEN.DE (Wolfgang Qual) Date: Tue, 19 Jul 2005 11:17:11 +0200 Subject: polygon outline with styles Message-ID: Hello List, currently, we are using mapserver 4.4.1.. Using this version of the mapserver, we realized that the outline color of polygons have disappeared. In a former mail of mapserver-users, I read that the OVERLAYOUTLINECOLOR-tag is depricated for newer versions of the mapserver in favour of styles (see (http://lists.dmsolutions.ca/pipermail/mapserver-users/2003-December/014530.html). Until now, outline color was defined like this in our mapfiles: CLASS NAME "Wohnfl?che" EXPRESSION ([EBENE] == 81.00000000000000) COLOR 195 195 195 OVERLAYSYMBOL line0 OVERLAYOUTLINECOLOR 170 170 170 OVERLAYSIZE 0.10000000000000 #_# LAYER l0 CLASS 0 ANNOTATION END # class How can I define the outline color/style using styles? Examples would be great! Thanks, Wolfgang -- Wolfgang Qual Landeshauptstadt M?nchen Referat f?r Gesundheit und Umwelt RGU-UW 11 Sg. 1 Gesundheits- und Umweltberichterstattung, Energie und Klimaschutz Bayerstr. 28a, 80335 M?nchen Tel.: +49 (0)89 233-477 17 Fax.: +49 (0)89 233-477 05 E-Mail: wolfgang.qual at muenchen.de From tim.boothby at ORS.ORG.UK Tue Jul 19 02:07:31 2005 From: tim.boothby at ORS.ORG.UK (Tim Boothby) Date: Tue, 19 Jul 2005 04:07:31 -0500 Subject: MapServer .swf decompile Message-ID: Hi Jay, This link contains the source of MultiViewer, a basic flash viewer with some explanation of how it works - http://mapserver.gis.umn.edu/user_utilities/fmv.zip http://www.flash-decompiler.com/ have a demo of a flash decompiler which is mostly functional and allows you to see the generated flashscript. I've wound this very useful in trying to figure out the out output from Mpaserver. Hope this helps, Tim From luca76 at GMAIL.COM Tue Jul 19 02:20:47 2005 From: luca76 at GMAIL.COM (Luca Manganelli) Date: Tue, 19 Jul 2005 11:20:47 +0200 Subject: Examples of MapServer SVG maps? Message-ID: Hi, does anybody know some examples of MapServer SVG maps? From BEN at SYNCERA-ITSOLUTIONS.NL Tue Jul 19 02:27:48 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Tue, 19 Jul 2005 11:27:48 +0200 Subject: Mapserver workshop at the SVGOpen 2005 Message-ID: For anybody in the neighbourhood of the Netherlands the following might be interesting: At the SVG Open 2005 (15-18 August) in Enschede, Netherlands, there is a full-day workshop about building a SVG Webmapping Application Using Postgis, PHP and the UMN Mapserver by Andreas Neumann, Juliana Williams and Olaf Schnabel. http://www.svgopen.org/2005/courses.do#course2 Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl From piero.cavalieri at HEIDI.IT Tue Jul 19 02:51:00 2005 From: piero.cavalieri at HEIDI.IT (Piero Cavalieri) Date: Tue, 19 Jul 2005 04:51:00 -0500 Subject: Mapserver workshop at the SVGOpen 2005 Message-ID: Reference site is this: http://www.carto.net/ Here http://www.carto.net/papers/svg/ogc_wms_integration/ there is a tutorial on integrating WMS Services in SVG applications. Maybe most people are interested in contrary: integrating svg output from WMS into HTML interfaces. Am I wrong ? P. Bart van den Eijnden wrote: >For anybody in the neighbourhood of the Netherlands the following might be interesting: > >At the SVG Open 2005 (15-18 August) in Enschede, Netherlands, there is a full-day workshop about building a SVG Webmapping Application Using Postgis, PHP and the UMN Mapserver by Andreas Neumann, Juliana Williams and Olaf Schnabel. > >http://www.svgopen.org/2005/courses.do#course2 > >Best regards, >Bart > >Bart van den Eijnden >Syncera IT Solutions >Postbus 270 >2600 AG DELFT > >tel.nr.: 015-7512436 >email: BEN at Syncera-ITSolutions.nl > From taatuut at PLANET.NL Tue Jul 19 03:02:06 2005 From: taatuut at PLANET.NL (Emil Zegers) Date: Tue, 19 Jul 2005 12:02:06 +0200 Subject: ODBC/OVF connection In-Reply-To: Message-ID: Hello Piero, Have you checked if the PROJ folder containing projection files is set up and available on the production machine too? Regards, Emil -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Piero Cavalieri Sent: vrijdag 15 juli 2005 16:41 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] ODBC/OVF connection Hi all, on my devel machine I successfully connect to a layer via ODBC/OVF connection. Layer is a MSSQL table on Win2k. I done the same thing on production machine (Win2003) => problems. ArchimpXP_SIAT.ovf file: ODBC:xx/xxxx at Archimp_HEIDI Impianti wkbPoint epsg:26591 .map file: LAYER GROUP i_dep_grp CONNECTION "ArchimpXP_SIAT.ovf" CONNECTIONTYPE OGR DATA "impianti" NAME "impianti" METADATA "wms_title" "Impianti Depurazione" "wms_srs" "26591" END PROJECTION "init=epsg:26591" END STATUS ON ... ... web page: ... Depurazione ... ODBC connection test: ogrinfo ODBC:xx/xxxx at Archimp_HEIDI returns the list of db tables, so seems ok. Error messages when requesting the web page: msDrawMap(): Image handling error. Failed to draw layer named 'impianti'. msOGRFileOpen(): OGR error. Open failed for OGR connection `Archimp_HEIDI.ovf'. Failed to import LayerSRS `epsg:26591'. " msDrawMap(): Image handling error. Failed to draw layer named 'impianti'. msOGRFileOpen(): OGR error. Open failed for OGR connection `Archimp_HEIDI.ovf'. Failed to import LayerSRS `epsg:26591'. " I don't understand if errors occurs during connection open or it's layer related. The only difference beteween development environment seems to be that in production machine data files are in different drive (web application in C:, data in D:; of course SHAPEPATH is set right). Help please P. From BEN at SYNCERA-ITSOLUTIONS.NL Tue Jul 19 03:04:54 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Tue, 19 Jul 2005 12:04:54 +0200 Subject: ODBC/OVF connection Message-ID: Actually, OVF aka Virtual Spatial Data needs the GDAL_DATA stuff for projections AFAIK (it does not use PROJ files). I use the following in my MAP file (MAP object) for OVF: CONFIG GDAL_DATA /ms4w/apps/stragisweb/gdal_data and then put the GDAL_DATA files (wkt and csv files) in that path, or choose your own path ofcourse. GDAL_DATA could also be an environment variable. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Emil Zegers 07/19/05 12:02pm >>> Hello Piero, Have you checked if the PROJ folder containing projection files is set up and available on the production machine too? Regards, Emil -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Piero Cavalieri Sent: vrijdag 15 juli 2005 16:41 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] ODBC/OVF connection Hi all, on my devel machine I successfully connect to a layer via ODBC/OVF connection. Layer is a MSSQL table on Win2k. I done the same thing on production machine (Win2003) => problems. ArchimpXP_SIAT.ovf file: ODBC:xx/xxxx at Archimp_HEIDI Impianti wkbPoint epsg:26591 ..map file: LAYER GROUP i_dep_grp CONNECTION "ArchimpXP_SIAT.ovf" CONNECTIONTYPE OGR DATA "impianti" NAME "impianti" METADATA "wms_title" "Impianti Depurazione" "wms_srs" "26591" END PROJECTION "init=epsg:26591" END STATUS ON .... .... web page: .... Depurazione .... ODBC connection test: ogrinfo ODBC:xx/xxxx at Archimp_HEIDI returns the list of db tables, so seems ok. Error messages when requesting the web page: msDrawMap(): Image handling error. Failed to draw layer named 'impianti'. msOGRFileOpen(): OGR error. Open failed for OGR connection `Archimp_HEIDI.ovf'. Failed to import LayerSRS `epsg:26591'. " msDrawMap(): Image handling error. Failed to draw layer named 'impianti'. msOGRFileOpen(): OGR error. Open failed for OGR connection `Archimp_HEIDI.ovf'. Failed to import LayerSRS `epsg:26591'. " I don't understand if errors occurs during connection open or it's layer related. The only difference beteween development environment seems to be that in production machine data files are in different drive (web application in C:, data in D:; of course SHAPEPATH is set right). Help please P. From piero.cavalieri at HEIDI.IT Tue Jul 19 03:17:27 2005 From: piero.cavalieri at HEIDI.IT (Piero Cavalieri) Date: Tue, 19 Jul 2005 05:17:27 -0500 Subject: ODBC/OVF connection Message-ID: Hello Emil, Yes PROJ is set right. MapServer app was working fine without OGR/OVF. I removed SRS key form ovf file, and solved the problem (I have SRS code also in .map, so maybe it's ok so). Frank suggested me that maybe is necessary for GDAL_DATA to point to the GDAL files like gcs.csv and pcs.csv. I had this files on devel machine from OpenEV installation (which set GDAL_DATA, I think), which I didn't installed on production machine. However it seems to me that "normal" installation of MapServer does not require separate GDAL installation, so this thing, if true, should be written somewhere (I installed OpenEV on production machine before deleting SRS key form ovf, but had the same error; maybe a reboot was needed, but I wanted reboot production machine). Thanks P. Emil Zegers wrote: >Hello Piero, > >Have you checked if the PROJ folder containing projection files is set up >and available on the production machine too? > >Regards, > >Emil > > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On >Behalf Of Piero Cavalieri >Sent: vrijdag 15 juli 2005 16:41 >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] ODBC/OVF connection > > >Hi all, > >on my devel machine I successfully connect to a layer via ODBC/OVF >connection. Layer is a MSSQL table on Win2k. > >I done the same thing on production machine (Win2003) => problems. > >ArchimpXP_SIAT.ovf file: > > > > ODBC:xx/xxxx at Archimp_HEIDI > Impianti > wkbPoint > epsg:26591 > y="Longitudine"x="Latitudine" /> > > > >.map file: > >LAYER > GROUP i_dep_grp > CONNECTION "ArchimpXP_SIAT.ovf" > CONNECTIONTYPE OGR > DATA "impianti" > NAME "impianti" > METADATA > "wms_title" "Impianti Depurazione" > "wms_srs" "26591" > END > PROJECTION > "init=epsg:26591" > END > STATUS ON >... >... > >web page: > >... >Depurazione >... > >ODBC connection test: >ogrinfo ODBC:xx/xxxx at Archimp_HEIDI >returns the list of db tables, so seems ok. > >Error messages when requesting the web page: > >msDrawMap(): Image handling error. Failed to draw layer named 'impianti'. >msOGRFileOpen(): OGR error. Open failed for OGR connection >`Archimp_HEIDI.ovf'. Failed to import LayerSRS `epsg:26591'. >" msDrawMap(): Image handling error. Failed to draw layer named 'impianti'. >msOGRFileOpen(): OGR error. Open failed for OGR connection >`Archimp_HEIDI.ovf'. Failed to import LayerSRS `epsg:26591'. >" > > >I don't understand if errors occurs during connection open or it's layer >related. > >The only difference beteween development environment seems to be that in >production machine data files are in different drive (web application in >C:, data in D:; of course SHAPEPATH is set right). > >Help please > P. > > From piero.cavalieri at HEIDI.IT Tue Jul 19 03:42:56 2005 From: piero.cavalieri at HEIDI.IT (Piero Cavalieri) Date: Tue, 19 Jul 2005 05:42:56 -0500 Subject: ODBC/OVF connection Message-ID: Piero Cavalieri wrote: >...However it seems to me that "normal" installation of >MapServer does not require separate GDAL installation ... I mean, on Windows P. From taatuut at PLANET.NL Tue Jul 19 03:46:49 2005 From: taatuut at PLANET.NL (Emil Zegers) Date: Tue, 19 Jul 2005 12:46:49 +0200 Subject: ODBC/OVF connection In-Reply-To: Message-ID: Hello Pierro and Bart, Good input Bart, I didn't know yet the CONFIG parameter could be used for this. Comes in handy when youy don't want to set environment variables. But it seems for OVF it is never necessary to use LayerSRS as long as you put the PROJECTION parameter in the LAYER object in the map file or am I missing something? Regards, Emil -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Piero Cavalieri Sent: dinsdag 19 juli 2005 12:17 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] ODBC/OVF connection Hello Emil, Yes PROJ is set right. MapServer app was working fine without OGR/OVF. I removed SRS key form ovf file, and solved the problem (I have SRS code also in .map, so maybe it's ok so). Frank suggested me that maybe is necessary for GDAL_DATA to point to the GDAL files like gcs.csv and pcs.csv. I had this files on devel machine from OpenEV installation (which set GDAL_DATA, I think), which I didn't installed on production machine. However it seems to me that "normal" installation of MapServer does not require separate GDAL installation, so this thing, if true, should be written somewhere (I installed OpenEV on production machine before deleting SRS key form ovf, but had the same error; maybe a reboot was needed, but I wanted reboot production machine). Thanks P. Emil Zegers wrote: >Hello Piero, > >Have you checked if the PROJ folder containing projection files is set up >and available on the production machine too? > >Regards, > >Emil > > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On >Behalf Of Piero Cavalieri >Sent: vrijdag 15 juli 2005 16:41 >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] ODBC/OVF connection > > >Hi all, > >on my devel machine I successfully connect to a layer via ODBC/OVF >connection. Layer is a MSSQL table on Win2k. > >I done the same thing on production machine (Win2003) => problems. > >ArchimpXP_SIAT.ovf file: > > > > ODBC:xx/xxxx at Archimp_HEIDI > Impianti > wkbPoint > epsg:26591 > y="Longitudine"x="Latitudine" /> > > > >.map file: > >LAYER > GROUP i_dep_grp > CONNECTION "ArchimpXP_SIAT.ovf" > CONNECTIONTYPE OGR > DATA "impianti" > NAME "impianti" > METADATA > "wms_title" "Impianti Depurazione" > "wms_srs" "26591" > END > PROJECTION > "init=epsg:26591" > END > STATUS ON >... >... > >web page: > >... >Depurazione >... > >ODBC connection test: >ogrinfo ODBC:xx/xxxx at Archimp_HEIDI >returns the list of db tables, so seems ok. > >Error messages when requesting the web page: > >msDrawMap(): Image handling error. Failed to draw layer named 'impianti'. >msOGRFileOpen(): OGR error. Open failed for OGR connection >`Archimp_HEIDI.ovf'. Failed to import LayerSRS `epsg:26591'. >" msDrawMap(): Image handling error. Failed to draw layer named 'impianti'. >msOGRFileOpen(): OGR error. Open failed for OGR connection >`Archimp_HEIDI.ovf'. Failed to import LayerSRS `epsg:26591'. >" > > >I don't understand if errors occurs during connection open or it's layer >related. > >The only difference beteween development environment seems to be that in >production machine data files are in different drive (web application in >C:, data in D:; of course SHAPEPATH is set right). > >Help please > P. > > From flavio at TYDAC.CH Tue Jul 19 04:08:49 2005 From: flavio at TYDAC.CH (Flavio Hendry) Date: Tue, 19 Jul 2005 13:08:49 +0200 Subject: Commercial support for mapserver / "resellers" In-Reply-To: <42DCAE20.6080204@gmail.com> Message-ID: Hi Eduard We created a "commercial" CMS on top of MapServer which makes life a lot easier. For infos see http://www.neapoljs.com. In addition we try to "commercialize" as well the documentation: see http://umn.mapserver.ch ... Of course we offer commercial support. > More important, what is the overall opinion about this(being > commercial with mapserver)? some oss "purists" don't like it ... however I do not see a difference in selling services or software (which is at the end a service as well if it saves you time and money .....). Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- From BEN at SYNCERA-ITSOLUTIONS.NL Tue Jul 19 05:36:06 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Tue, 19 Jul 2005 14:36:06 +0200 Subject: tileindex for MapInfo TAB files Message-ID: Okay, I have solved this by creating Mapinfo seamless layers in the meantime. But still wondering if there is a way to do this with ogrtindex and Mapserver, ie to use a tileindex pointing to Mapinfo TAB files created with ogrtindex in Mapserver? Anybody knows? Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Bart van den Eijnden 07/14/05 03:47pm >>> Hi list, I am trying to use a tileindex I created with ogrtindex with Mapserver. The tileindex references 7 Mapinfo TAB files. I get the following errors: [14-Jul-2005 15:25:26] PHP Warning: [MapServer Error]: msSHPOpenFile(): (D:\ms4w\apps\stragisweb\htdocs\sites\westland\data\accres\groen\GroenDeLier_text.tab) in D:\ms4w\apps\stragisweb\htdocs\common\chameleon\htdocs\common\wrapper\drawmap.php on line 533 The files do exist there, is Mapserver trying to open it up through the native shapefile driver instead of through OGR? I use the following LAYER definition: TYPE ANNOTATION TILEINDEX "accres\groen\groen_text" CONNECTIONTYPE OGR Thanks in advance. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl From pmoen at STATE.ND.US Tue Jul 19 05:57:47 2005 From: pmoen at STATE.ND.US (Paul Moen) Date: Tue, 19 Jul 2005 07:57:47 -0500 Subject: Raster zoom problem with ERDAS Imagine Files In-Reply-To: <931f8ea90507150808105cd5a0@mail.gmail.com> Message-ID: Frank, The problem was in our build. I was using external libraries for the images instead of the built in libraries. I still haven?t gotten everything to work, but I do not believe it is a problem with GDAL. The version running at http://mapservice.swc.state.nd.us/indexmap.phtml has GDAL 1.2.6 and the raster images work fine at all scales for some counties and not for others. We are looking into the problem assuming it is due to the clipping process, since most the counties we have clipped to the county boundaries do not function properly. For instance, McKenzie, Mountrail, Ramsey, and Benson counties do not display correctly at all scales, but Billings and Burleigh look as they should. All those counties have been clipped with ERDAS. Every county that has not been clipped display as I would expect, no matter the size. > > Paul, > > I'm afraid I don't know what is going wrong. If you are handy with a > debugger, then you could run shp2img, break it when it hangs, and > get a traceback with the "where" command. > > Alternatively, if you are in a position to provide "ssh" access to your > machine, I could do some investigation. > > Best regards, > Thank you for your time and for your software, Paul T. Moen pmoen at state.nd.us ND State Water Commission -------------- next part -------------- An HTML attachment was scrubbed... URL: From fwarmerdam at GMAIL.COM Tue Jul 19 06:25:00 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Tue, 19 Jul 2005 09:25:00 -0400 Subject: tileindex for MapInfo TAB files In-Reply-To: Message-ID: On 7/19/05, Bart van den Eijnden wrote: > Okay, I have solved this by creating Mapinfo seamless layers in the meantime. > > But still wondering if there is a way to do this with ogrtindex and Mapserver, ie to use a tileindex pointing to Mapinfo TAB files created with ogrtindex in Mapserver? > > Anybody knows? Bart, I think things are supposed to work as you set them up. I have a vague suspicion that when Steve improved tileindex handling a year or two ago he may have broken something in the OGR layer with it's tileindex support. If you could file a bug with a supporting test case, and assign it to me I will take a look ... at some point. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From tdenis at CVRB.QC.CA Tue Jul 19 06:50:19 2005 From: tdenis at CVRB.QC.CA (Tony Denis) Date: Tue, 19 Jul 2005 09:50:19 -0400 Subject: help for installation Message-ID: Hi, i want to install mapserver but i don't find information that can help me for the installation. If somebody can help me you can reach me at tdenis at cvrb.qc.ca (sorry for the english mistake i'm a french user) Tony Denis Coordonnateur Comit? de valorisation de la rivi?re Beauport tdenis at cvrb.qc.ca From BEN at SYNCERA-ITSOLUTIONS.NL Tue Jul 19 07:08:06 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Tue, 19 Jul 2005 16:08:06 +0200 Subject: help for installation Message-ID: If you are on Windows, use MS4W. If you are on Linux, use FGS. See http://www.maptools.org Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Tony Denis 07/19/05 03:50pm >>> Hi, i want to install mapserver but i don't find information that can help me for the installation. If somebody can help me you can reach me at tdenis at cvrb.qc.ca (sorry for the english mistake i'm a french user) Tony Denis Coordonnateur Comit? de valorisation de la rivi?re Beauport tdenis at cvrb.qc.ca From David.Fawcett at STATE.MN.US Tue Jul 19 07:10:13 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Tue, 19 Jul 2005 09:10:13 -0500 Subject: help for installation Message-ID: Tony, Take a look at this page: http://ms.gis.umn.edu/new_users/. This page will give you background on MapServer, hardware requirements, software requirements, installation info, and links to the tutorial. The easiest way to get started is probably to download the Windows binaries that are part of the MS4W package from maptools.org http://maptools.org/ms4w/. If you are on Linux, you can use the FGS package from maptools.org http://maptools.org/fgs/. David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett at moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Tony Denis Sent: Tuesday, July 19, 2005 8:50 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] help for installation Hi, i want to install mapserver but i don't find information that can help me for the installation. If somebody can help me you can reach me at tdenis at cvrb.qc.ca (sorry for the english mistake i'm a french user) Tony Denis Coordonnateur Comit? de valorisation de la rivi?re Beauport tdenis at cvrb.qc.ca From piero.cavalieri at HEIDI.IT Tue Jul 19 07:17:35 2005 From: piero.cavalieri at HEIDI.IT (Piero Cavalieri) Date: Tue, 19 Jul 2005 09:17:35 -0500 Subject: help for installation Message-ID: Which O.S. ? Tony Denis wrote: >Hi, > >i want to install mapserver but i don't find information that can help me >for the installation. If somebody can help me you can reach me at >tdenis at cvrb.qc.ca > >(sorry for the english mistake i'm a french user) > >Tony Denis >Coordonnateur >Comit? de valorisation de la rivi?re Beauport >tdenis at cvrb.qc.ca > From pimpoumvlan at HOTMAIL.COM Tue Jul 19 08:00:26 2005 From: pimpoumvlan at HOTMAIL.COM (Selim HERNANDEZ) Date: Tue, 19 Jul 2005 15:00:26 +0000 Subject: Multiple Layers Query with qlayer Message-ID: Hello, Does anyone know if it is possible to make a query on several layers when I am in itemfeaturequery mode ? I have a layer containing areas and 2 others that contain areas. I want to know if I can know, with 1 query, whether the selected area (with a form) interacts with any of the areas of the 2 other layers. According to the CGI reference, if the qlayer parameter is not set, all the layers are "queried" but It doesn't work. thank you From geoffrey.rowland at NOAA.GOV Tue Jul 19 09:36:02 2005 From: geoffrey.rowland at NOAA.GOV (Geoff Rowland) Date: Tue, 19 Jul 2005 12:36:02 -0400 Subject: PHP MapScript / dynamic points from MySQL / possible to query? Message-ID: I am pulling some lat/lon coordinates out of a database and drawing them on a map using code like this (not sure if this is really the best way, but it's the code I came up with, heh) $map= ms_newMapObj('world.map'); $layer = $map->getLayerByName('alerts'); for ($j=0; $j < mysql_num_rows($result); $j++) { $row = mysql_fetch_assoc($result); ${$pt} = ms_newPointObj(); ${$pt}->setXY($row[lat],$row[lon]); ${$pt}->draw($map, $layer, $img, 0 ,$row[location]); } $url = $img->saveWebImage(); works great. However I really want to make it so that when a user clicks on the point, information about the point will come up. I assume this is not possible with the way I currently have this setup, is that correct? What would be the best way to go about doing this? Cheers, Geoff -- Geoffrey Rowland Technical Officer Climate Information Project NOAA Research Office of Global Programs http://www.cip.noaa.gov http://www.ranetproject.net Contractor, RGII Technologies, Inc., a Computer Horizons Company http://www.rg2.com Phone: 301-427-2344 Fax : 301-427-2082 geoffrey.rowland at noaa.gov From pgiencke at GLC.ORG Tue Jul 19 09:53:51 2005 From: pgiencke at GLC.ORG (Peter Giencke) Date: Tue, 19 Jul 2005 12:53:51 -0400 Subject: PHP MapScript / dynamic points from MySQL / possible to query? In-Reply-To: <42DD2BF2.4050908@noaa.gov> Message-ID: Jeff, One idea is by writing those points to a javascript array, you could implement a js function to access the array (via mouseclick or whatever) and present the data in any number of ways. You could keep your code relatively intact for this by having the php write all the javascript necessary for this. -pete Pete Giencke Data and Information Management Great Lakes Commission -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Geoff Rowland Sent: Tuesday, July 19, 2005 12:36 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] PHP MapScript / dynamic points from MySQL / possible to query? I am pulling some lat/lon coordinates out of a database and drawing them on a map using code like this (not sure if this is really the best way, but it's the code I came up with, heh) $map= ms_newMapObj('world.map'); $layer = $map->getLayerByName('alerts'); for ($j=0; $j < mysql_num_rows($result); $j++) { $row = mysql_fetch_assoc($result); ${$pt} = ms_newPointObj(); ${$pt}->setXY($row[lat],$row[lon]); ${$pt}->draw($map, $layer, $img, 0 ,$row[location]); } $url = $img->saveWebImage(); works great. However I really want to make it so that when a user clicks on the point, information about the point will come up. I assume this is not possible with the way I currently have this setup, is that correct? What would be the best way to go about doing this? Cheers, Geoff -- Geoffrey Rowland Technical Officer Climate Information Project NOAA Research Office of Global Programs http://www.cip.noaa.gov http://www.ranetproject.net Contractor, RGII Technologies, Inc., a Computer Horizons Company http://www.rg2.com Phone: 301-427-2344 Fax : 301-427-2082 geoffrey.rowland at noaa.gov From listario at GMAIL.COM Tue Jul 19 11:07:06 2005 From: listario at GMAIL.COM (J. Parapar) Date: Tue, 19 Jul 2005 20:07:06 +0200 Subject: Testing Message-ID: Sorry, only testing. From tdenis at CVRB.QC.CA Tue Jul 19 11:53:41 2005 From: tdenis at CVRB.QC.CA (Tony Denis) Date: Tue, 19 Jul 2005 14:53:41 -0400 Subject: information about ms4w Message-ID: hi, i try to install ms4w. when i click on apache install i receive this message: error 57 of C:/Program Files/ms4w/apache/conf/http.conf:serverroot must be a valid directory somebody can help me Tony Denis tdenis at cvrb.qc.ca From jmckenna at DMSOLUTIONS.CA Tue Jul 19 12:02:53 2005 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Tue, 19 Jul 2005 15:02:53 -0400 Subject: information about ms4w In-Reply-To: Message-ID: Hmm, did you extract MS4W to the root of a drive (for example at C: or D:)? (meaning your directory structure should be something like C:/ms4w or D:/ms4w) Note that you should use the MS4W mailing list for MS4W configure questions (join at http://lists.maptools.org/mailman/listinfo/ms4w-users) so other MS4W users can help. thanks. jeff Tony Denis wrote: > hi, > > i try to install ms4w. when i click on apache install i receive this > message: error 57 of C:/Program Files/ms4w/apache/conf/http.conf:serverroot > must be a valid directory > > somebody can help me > > > Tony Denis > tdenis at cvrb.qc.ca > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From tdenis at CVRB.QC.CA Tue Jul 19 12:19:20 2005 From: tdenis at CVRB.QC.CA (Tony Denis) Date: Tue, 19 Jul 2005 15:19:20 -0400 Subject: still me Message-ID: thank you for the answer but there's another problem. When i put the ms4w directly in C drive,and i try to install the apache that's the problem occur. (OS 10048)Une seule utilisation de chaque adresse de socket (protocole/adresse r ?seau/port) est habituellement autoris?e. : make_sock: could not bind to addres s 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs thank you very much for your help Tony tdenis at cvrb.qc.ca From temiz at DEPREM.GOV.TR Tue Jul 19 12:27:24 2005 From: temiz at DEPREM.GOV.TR (orkun) Date: Tue, 19 Jul 2005 22:27:24 +0300 Subject: transparency using php-mapscript Message-ID: hello Could you tell me how I can make transparent my map using php-mapscript ? regards Ahmet Temiz ______________________________________ XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From kumar at NEWFIELDS.COM Tue Jul 19 12:31:28 2005 From: kumar at NEWFIELDS.COM (Kumar) Date: Tue, 19 Jul 2005 15:31:28 -0400 Subject: still me In-Reply-To: Message-ID: Check if you have IIS or any other server running. This would block port 80, which is the default server port listening and sending port. If it is running Stop the server and try installing Apache. - kumar -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Tony Denis Sent: Tuesday, July 19, 2005 3:19 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] still me thank you for the answer but there's another problem. When i put the ms4w directly in C drive,and i try to install the apache that's the problem occur. (OS 10048)Une seule utilisation de chaque adresse de socket (protocole/adresse r ?seau/port) est habituellement autoris?e. : make_sock: could not bind to addres s 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs thank you very much for your help Tony tdenis at cvrb.qc.ca From rjames57 at YAHOO.COM Tue Jul 19 12:46:33 2005 From: rjames57 at YAHOO.COM (Randy James) Date: Tue, 19 Jul 2005 12:46:33 -0700 Subject: still me In-Reply-To: <20050719193123.F3CA943C00B@aphrodite.newfields.com> Message-ID: Is the network set up properly, it appears that the server does not have a IP address? Randy --- Kumar wrote: > Check if you have IIS or any other server running. This would block port 80, > which is the default server port listening and sending port. If it is > running Stop the server and try installing Apache. > > - kumar > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Tony Denis > Sent: Tuesday, July 19, 2005 3:19 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] still me > > thank you for the answer but there's another problem. When i put the ms4w > directly in C drive,and i try to install the apache that's the problem > occur. > > (OS 10048)Une seule utilisation de chaque adresse de socket > (protocole/adresse r > ?seau/port) est habituellement autoris?e. : make_sock: could not bind to > addres > s 0.0.0.0:80 > no listening sockets available, shutting down > Unable to open logs > > thank you very much for your help > > Tony > tdenis at cvrb.qc.ca > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From Ralph_Plugowsky at PHAC-ASPC.GC.CA Tue Jul 19 13:10:17 2005 From: Ralph_Plugowsky at PHAC-ASPC.GC.CA (Ralph Plugowsky) Date: Tue, 19 Jul 2005 16:10:17 -0400 Subject: still me Message-ID: Hi Tony, I've just replicated that same problem on my machine. If some other application is using port 80, then that port will be unavailable to ms4w. I had to free up port 80 in order to start the apache web server (you may want to try the same thing). Cheers, Ralph Ralph Plugowsky, GIS Informatics Analyst, Office of Public Health Practice, Public Health Agency of Canada |---------+-------------------------------> | | Tony Denis | | | | | | Sent by: UMN | | | MapServer Users List| | | | | | | | | | | | 2005-07-19 03:19 PM | | | Please respond to | | | Tony Denis | | | | |---------+-------------------------------> >-----------------------------------------------------------------------------------------------------------------------------| | | | To: MAPSERVER-USERS at LISTS.UMN.EDU | | cc: | | Subject: [UMN_MAPSERVER-USERS] still me | >-----------------------------------------------------------------------------------------------------------------------------| thank you for the answer but there's another problem. When i put the ms4w directly in C drive,and i try to install the apache that's the problem occur. (OS 10048)Une seule utilisation de chaque adresse de socket (protocole/adresse r ?seau/port) est habituellement autoris?e. : make_sock: could not bind to addres s 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs thank you very much for your help Tony tdenis at cvrb.qc.ca From tkirstine at JDBARNES.COM Tue Jul 19 14:48:12 2005 From: tkirstine at JDBARNES.COM (Travis Kirstine GIS Tech) Date: Tue, 19 Jul 2005 17:48:12 -0400 Subject: Transparency in classes Message-ID: Hi All Is it possible to have a layer with two classes with one class being transparent and one class being a solid fill. Travis From listario at GMAIL.COM Tue Jul 19 15:07:59 2005 From: listario at GMAIL.COM (J. Parapar) Date: Wed, 20 Jul 2005 00:07:59 +0200 Subject: Problem with spatial filters and SLD parsing Message-ID: Hi all. I am having problems with spatial filters (DWithin,Intersects) in SLD files. The SLD files in question have two rules (see below), one with the spatial filter and the other with an ElseFilter, each one with its respective symbolizer. The problem is that only the features resulting from the spatial filter are represented, the "else features" do not appear. So, I wonder if I am doing something wrong or there is a Mapserver problem with the ElseFilter rule when a spatial filter is applied. It seems like the ElseFilter rule was not taken into account. I have tried with an IsEqualTo filter instead of the spatial one and it works well. I am using Mapserver 4.6.0. The sld files are like this: Provincias geometria 10 632266.666667,4800799.999999 #0000FF #0000FF #FF0000 #000000 The following sld, with an "IsEqualTo" filter, works well: Provincias ine_prov 27 #0000FF #000000 #FF0000 #000000 Thank you very much in advance, Jorge From kumar at NEWFIELDS.COM Tue Jul 19 15:08:26 2005 From: kumar at NEWFIELDS.COM (Kumar) Date: Tue, 19 Jul 2005 18:08:26 -0400 Subject: Mapserver/PHP5 Linux compatibility Message-ID: Hi, I am trying to install mapserver in a Linux box and was wondering if mapserver is compatible with PHP5??. Thanks, -kumar -------------- next part -------------- An HTML attachment was scrubbed... URL: From ealpert at DIGITALGLOBE.COM Tue Jul 19 15:09:31 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Tue, 19 Jul 2005 16:09:31 -0600 Subject: Transparency in classes Message-ID: Transparency unfortunately is a LAYER attribute. My suggestion is to define two layers. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Travis Kirstine GIS Tech Sent: Tuesday, July 19, 2005 3:48 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Transparency in classes Hi All Is it possible to have a layer with two classes with one class being transparent and one class being a solid fill. Travis From nate at SEASTAR.JPL.NASA.GOV Tue Jul 19 17:04:40 2005 From: nate at SEASTAR.JPL.NASA.GOV (Nate Reed) Date: Tue, 19 Jul 2005 17:04:40 -0700 Subject: change output format of image object? Message-ID: Is there a way to change my output format from PNG to GIF at runtime? Thanks, Nate -- Nate Reed Physical Oceanography DAAC Jet Propulsion Lab / Raytheon ITSS (626)744-5528 nate at seastar.jpl.nasa.gov From akrherz at IASTATE.EDU Tue Jul 19 17:46:14 2005 From: akrherz at IASTATE.EDU (Daryl Herzmann) Date: Tue, 19 Jul 2005 19:46:14 -0500 Subject: change output format of image object? In-Reply-To: Message-ID: On Tue, 19 Jul 2005, Nate Reed wrote: > Is there a way to change my output format from PNG to GIF at runtime? Hi Nate, You will want to specify your possible output formats in your mapfile: http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#outputformat If you are then using CGI mapserver, you will want to specify the output format via the "format" CGI variable. If you are using mapscript, you will use something like "selectOutputFormat" HTH, daryl -- /** * Daryl Herzmann (akrherz at iastate.edu) * Program Assistant -- Iowa Environmental Mesonet * http://mesonet.agron.iastate.edu */ From lists at WEBMAPIT.COM.BR Tue Jul 19 18:17:03 2005 From: lists at WEBMAPIT.COM.BR (Eduardo Patto Kanegae) Date: Tue, 19 Jul 2005 22:17:03 -0300 Subject: {off-topic} What is "com_dotnet" at PHP5 ? Message-ID: Hi folks, I just finished my first PHP 5.x setup on WinXP Pro and then after run phpinfo() I had a surprise while getting a "com_dotnet COM support enabled DCOM support disabled .Net support enabled " at the middle of phpinfo page. The strange fact: I didnt see anything about .NET at php.ini file. What does it mean? Does it mean that PHP 5.x for Windows has .NET support out-of-the-box ??? And what this extension brings up? May I use .NET components from PHP scripts, per example? thanks in advance. Eduardo Patto Kanegae http://www.webmapit.com.br From tibben at OCF.BERKELEY.EDU Tue Jul 19 18:18:31 2005 From: tibben at OCF.BERKELEY.EDU (Tim Norris) Date: Tue, 19 Jul 2005 20:18:31 -0500 Subject: SELinux Apache and php/mapscript Message-ID: Hi all, I am trying with little luck to get mapserver running under apache with php/mapscript (running as cgi) AND SELinux . . . (Fedora Core 4 i386) I know this is probably somwhat similar to running my head into a brick wall, but I have to try. does anyone have any ideas . . . ??? php is working, mysql is working, I can even get the php_mapscript.so to partially load, but then when it looks for other shared objects (specificially libgdal and libproj) I run into the error 'cannot restore segment prot after reloc: Permission denied' further info about the SELinux types: php is set to httpd_sys_script_exec_t php_mapscript.so is set to httpd_sys_script_exec_t libgdal is sset to shlib_t the actual error I get is: Warning: dl()[function.dl]: Unable to load dynamic library '/usr/local/lib/php_mapscript.so' - /usr/local/lib/libgdal.so.1: cannot restore segment prot after reloc: Permission denied in /var/www/html/php_info.php on line 2 any ideas would be great and I'll post something if I get it working . . . :) thanks tim From steveb at BUNDABERG.QLD.GOV.AU Tue Jul 19 18:51:53 2005 From: steveb at BUNDABERG.QLD.GOV.AU (Steven Bowden) Date: Wed, 20 Jul 2005 11:51:53 +1000 Subject: SELinux Apache and php/mapscript In-Reply-To: Message-ID: Hi Tim, I had similar problems when I was trying to install mapserver on CentOS 4. I have pretty much got it working but SELinux is still giving a few errors. How I did it. complied and installed all of the dependencies that I was going to use, ie gdal, geos, gd etc with a prefix=/usr/local/mapserver4 Then created a file /etc/ld.so.conf.d/mapserver.conf and inserted the full path to the lib directory, ie /usr/local/mapserver4/lib Ran ldconfig Compiled and installed php into /var/www/cgi-bin/mapserver4/php4311 Specified the extensions directory in php.ini to be /var/www/cgi-bin/mapserver4/php4311/extensions and copied the php_mapscript.so to there. Then when I run phpinfo() it should show you the mapscript version and compile options. It works but I am getting the following the /var/log/messages Jul 20 21:30:42 localhost kernel: audit(1121859042.011:0): avc: denied { getattr } for pid=21646 comm=php path=/var dev=dm-0 ino=4964353 scontext=root:system_r:httpd_sys_script_t tcontext=system_u:object_r:var_t tclass=dir So I don't know if this relates running php as a cgi or when php loads the php_mapscript.so module. Steve On Wednesday 20 July 2005 11:18, Tim Norris wrote: > Hi all, > > I am trying with little luck to get mapserver running under apache with > php/mapscript (running as cgi) AND SELinux . . . (Fedora Core 4 i386) I > know this is probably somwhat similar to running my head into a brick wall, > but I have to try. > > does anyone have any ideas . . . ??? > > php is working, mysql is working, I can even get the php_mapscript.so to > partially load, but then when it looks for other shared objects > (specificially libgdal and libproj) I run into the error 'cannot restore > segment prot after reloc: Permission denied' > > further info about the SELinux types: > > php is set to httpd_sys_script_exec_t > php_mapscript.so is set to httpd_sys_script_exec_t > libgdal is sset to shlib_t > > the actual error I get is: > Warning: dl()[function.dl]: Unable to load dynamic library > '/usr/local/lib/php_mapscript.so' - /usr/local/lib/libgdal.so.1: cannot > restore segment prot after reloc: Permission denied in > /var/www/html/php_info.php on line 2 > > any ideas would be great and I'll post something if I get it working . . . > :) > > thanks > tim From dylan at IICI.NO-IP.ORG Tue Jul 19 21:15:33 2005 From: dylan at IICI.NO-IP.ORG (Dylan Beaudette) Date: Tue, 19 Jul 2005 21:15:33 -0700 Subject: PHP MapScript / dynamic points from MySQL / possible to query? In-Reply-To: <20050719165138.2F1B424F1@superior.great-lakes.net> Message-ID: Pete, Are there any examples of this on the web? Also, is there any way to use javascript to bring up information on features in the returned images- i.e. with some sort of image map? thanks! -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 On Jul 19, 2005, at 9:53 AM, Peter Giencke wrote: > Jeff, > > One idea is by writing those points to a javascript array, you could > implement a js function to access the array (via mouseclick or > whatever) and > present the data in any number of ways. You could keep your code > relatively > intact for this by having the php write all the javascript necessary > for > this. > > -pete > > Pete Giencke > Data and Information Management > Great Lakes Commission > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On > Behalf Of Geoff Rowland > Sent: Tuesday, July 19, 2005 12:36 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] PHP MapScript / dynamic points from > MySQL / > possible to query? > > I am pulling some lat/lon coordinates out of a database and drawing > them on > a map using code like this (not sure if this is really the best way, > but > it's the code I came up with, heh) > > $map= ms_newMapObj('world.map'); > $layer = $map->getLayerByName('alerts'); > > for ($j=0; $j < mysql_num_rows($result); $j++) > { > $row = mysql_fetch_assoc($result); > ${$pt} = ms_newPointObj(); > ${$pt}->setXY($row[lat],$row[lon]); > ${$pt}->draw($map, $layer, $img, 0 ,$row[location]); > } > $url = $img->saveWebImage(); > > works great. However I really want to make it so that when a user > clicks on > the point, information about the point will come up. I assume this is > not > possible with the way I currently have this setup, is that correct? > What > would be the best way to go about doing this? > > Cheers, > Geoff > > -- > Geoffrey Rowland > Technical Officer > Climate Information Project > NOAA Research > Office of Global Programs > http://www.cip.noaa.gov > http://www.ranetproject.net > Contractor, > RGII Technologies, Inc., a Computer Horizons Company http://www.rg2.com > Phone: 301-427-2344 > Fax : 301-427-2082 > geoffrey.rowland at noaa.gov > > From m.tomko at PGRAD.UNIMELB.EDU.AU Tue Jul 19 22:21:02 2005 From: m.tomko at PGRAD.UNIMELB.EDU.AU (Martin Tomko) Date: Wed, 20 Jul 2005 15:21:02 +1000 Subject: Mapserver workshop at the SVGOpen 2005 In-Reply-To: Message-ID: Piero, exactly, that is what I have been looking for for some time! I want to integrate an WMS SVG output in my html interface from mapserver (templates), and be able to manipulate with tyhe SVG output there. I had a post on this previously, but without much feedback. Especially, I would like to know if: - it is possible to interact with the SVG output through javascript in the HTML, without having the javascript INSIDE the SVG. - Is it possible to integrate additional data in the SVG output from WMS (attributes, for instance time stamps), so that one could e.g. highlight a polygon in the WMS SVG output without posting a request. Thanks MArtin ---------------------------------------------- !!!!!!!!Do not send any emails to mtomko at sunrise.sli.unimelb.edu.au anymore!!! Use m.tomko at pgrad.unimelb.edu.au as my main email address. ---------------------------------------------- Ing. Martin Tomko PhD. candidate CRC for Spatial Information Department of Geomatics University of Melbourne Victoria 3010 Australia phone +61 3 8344 9179 fax +61 3 9349 5185 email m.tomko at pgrad.unimelb.edu.au url http://www.geom.unimelb.edu.au/tomko url http://www.spatialinformationscience.org url http://www.crcsi.com.au ---------------------------------------------- From mapserver at HOTMAIL.COM Tue Jul 19 23:55:15 2005 From: mapserver at HOTMAIL.COM (SUBSCRIBE MAPSERVER-USERS Nuri) Date: Wed, 20 Jul 2005 01:55:15 -0500 Subject: scanned map Message-ID: Hi, I scanned a map and I need to place 2 symbols in their appropiate coordinates, does someone how can I calculate the exact place? Thank you. Nuri From burnsy at VIVIDFISH.CO.UK Tue Jul 19 23:53:37 2005 From: burnsy at VIVIDFISH.CO.UK (Carl Burn) Date: Wed, 20 Jul 2005 07:53:37 +0100 Subject: still me In-Reply-To: Message-ID: Hi, think that you might have a conflict on port 80 if you are running a windows web server. You can get the two to co-exist quite happily, all you need to do is to edit the httpd.conf file within the ms4w/apache part of your installation and set it to run on an unoccupied port....eg 8073. If you have a firewall running locally then you may also need to modify this to cope with the usage of the new port number. Hope this helps Carl Tony Denis wrote: >thank you for the answer but there's another problem. When i put the ms4w >directly in C drive,and i try to install the apache that's the problem >occur. > >(OS 10048)Une seule utilisation de chaque adresse de socket >(protocole/adresse r >?seau/port) est habituellement autoris?e. : make_sock: could not bind to >addres >s 0.0.0.0:80 >no listening sockets available, shutting down >Unable to open logs > >thank you very much for your help > >Tony >tdenis at cvrb.qc.ca > > > -- Carl Burn Technical Director Vividfish Limited. t: 0845 8900876 w: www.vividfish.co.uk e: burnsy at vividfish.co.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: burnsy.vcf Type: text/x-vcard Size: 120 bytes Desc: not available URL: From mapserver at HOTMAIL.COM Wed Jul 20 00:32:18 2005 From: mapserver at HOTMAIL.COM (SUBSCRIBE MAPSERVER-USERS Nuri) Date: Wed, 20 Jul 2005 02:32:18 -0500 Subject: TEMPLATE in map file doesn't run, why? Message-ID: Hi, I inserted a TEMPLATE instruction in my map file but the link doesn't run in the map. Someone could tell me why I'm doing wrong? Thank you. This is my map file: MAP IMAGETYPE PNG EXTENT 20.000000 18.000000 50.000000 110.000000 SIZE 500 350 SHAPEPATH "data" IMAGECOLOR 255 180 0 SYMBOLSET "symbols/symbols35.sym" FONTSET "fonts/fonts.list" # Start of LAYER DEFINITIONS -------------------------------------------- - LAYER # Capa de raster NAME mapafig DATA "raster/figueres.tif" STATUS DEFAULT TYPE RASTER PROCESSING "BANDS=1,2,3" OFFSITE 0 0 255 END # Fi capa de raster LAYER NAME "prova" TEMPLATE "http://www.nusvirtual.com" <-------- ???????????????????? TYPE POINT CONNECTIONTYPE OGR CONNECTION "mapa21.ovf" DATA "mapa21" LABELITEM "id" #PROJECTION # "init=epsg:4326" #END CLASS SYMBOL 'symbols/prova.gif' #SIZE 6 COLOR 255 0 0 LABEL SIZE MEDIUM TYPE BITMAP COLOR 0 0 0 END END END # End of LAYER DEFINITIONS ------------------------------- END # end of map file From margottid at COMUNE.LUGO.RA.IT Wed Jul 20 00:58:27 2005 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Wed, 20 Jul 2005 09:58:27 +0200 Subject: TEMPLATE in map file doesn't run, why? In-Reply-To: Message-ID: A TEMPLATE is an existing .html file that is used by CGI Mapserver as a "skeleton" page: in this page, there are some fields that Mapserver substitutes with the image of the map, the scalebar, the reference map, and other variables (current scale, current extent, and so on). This TEMPLATE must be defined in the WEB section of the mapfile (http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#web). You can also use a TEMPLATE in the CLASS section (http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#class) or - if you want the same template for each class of a layer - in the LAYER section (http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#layer) of the mapfile. In this case, the TEMPLATE (this also must be an existing .html file) is used by CGI Mapserver when you query the map: the template contains field that are substituted with vaules of the queried attributes. In your example mapfile, the TEMPLATE instruction as the following meaning: "When you query the map, show results (for this layer) using http://www.nusvirtual.com as template". The question is: is this a good template file? But I suggest you to use a "local" .html file as a template. Daniele -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of SUBSCRIBE MAPSERVER-USERS Nuri Sent: Wednesday, July 20, 2005 9:32 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] TEMPLATE in map file doesn't run, why? Hi, I inserted a TEMPLATE instruction in my map file but the link doesn't run in the map. Someone could tell me why I'm doing wrong? Thank you. This is my map file: MAP IMAGETYPE PNG EXTENT 20.000000 18.000000 50.000000 110.000000 SIZE 500 350 SHAPEPATH "data" IMAGECOLOR 255 180 0 SYMBOLSET "symbols/symbols35.sym" FONTSET "fonts/fonts.list" # Start of LAYER DEFINITIONS -------------------------------------------- - LAYER # Capa de raster NAME mapafig DATA "raster/figueres.tif" STATUS DEFAULT TYPE RASTER PROCESSING "BANDS=1,2,3" OFFSITE 0 0 255 END # Fi capa de raster LAYER NAME "prova" TEMPLATE "http://www.nusvirtual.com" <-------- ???????????????????? TYPE POINT CONNECTIONTYPE OGR CONNECTION "mapa21.ovf" DATA "mapa21" LABELITEM "id" #PROJECTION # "init=epsg:4326" #END CLASS SYMBOL 'symbols/prova.gif' #SIZE 6 COLOR 255 0 0 LABEL SIZE MEDIUM TYPE BITMAP COLOR 0 0 0 END END END # End of LAYER DEFINITIONS ------------------------------- END # end of map file From gsw at GLOBEXPLORER.COM Wed Jul 20 01:25:45 2005 From: gsw at GLOBEXPLORER.COM (Gregory S. Williamson) Date: Wed, 20 Jul 2005 01:25:45 -0700 Subject: inline feature -- adding a point by URL Message-ID: Dear list, I've got a basic mapfile of street data derived from TIGER sources which seems to display correctly. I need to add an ability to display a point derived from a geocoding process. I can do this with a point added to a shapefile, but doing it dynamically eludes me. I have a DATA statement in the layer that I am trying to add my temporary point(s) to. I've tried removing to no apparent effect. Help with this would be muchly appreciated. Also, if anyone sees any other glaring issues in this map fragment, I'd be glad to hear about them. This is Mapserver 4.6, running under Windows 2000, Apache 2.054 (the current MapTools "ms4w" build). All of my shapefiles seem to be working ok. Thanks, Greg Williamson DBA GlobeXplorer LLC Various relevant snippets: Map File # SSF map file NAME SSF STATUS ON SIZE 600 600 EXTENT -122.5131 37.7095 -122.3509 37.8258 UNITS DD SHAPEPATH "DATA" FONTSET "C:\ms4w\Apache\htdocs\ssf\fonts\fonts.list" IMAGECOLOR 0 0 0 IMAGETYPE PNG PROJECTION "+proj=latlong +ellps=GRS80" END <...snip...> SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END <...snip...> LAYER NAME ssfmappnts DEBUG ON STATUS ON DATA geopnt1 TYPE ANNOTATION LABELITEM "POINT_NAME" LABELCACHE ON CLASS NAME "SSF Map Points" SYMBOL 'circle' SIZE 6 COLOR 255 0 0 LABEL ANTIALIAS TRUE TYPE TRUETYPE FONT garamond-bold SIZE 12 COLOR 50 20 20 OUTLINECOLOR 255 225 90 POSITION AUTO BUFFER 2 FORCE TRUE END TEMPLATE "ssf_m_query.html" END HEADER "ssf_mhdr.html" FOOTER "ssf_mftr.html" TOLERANCE 8 END # map points END # Map File =============================== A test URL (apologies for the length) http://localhost/cgi-bin/mapserv_46.exe?mode=browse&layer=ssfmappnts&zoomdir=0&zoomsize=2&imgxy=299.5+299.5&map_ssfmappnts_feature=new&map_ssfmappnts_feature_points=-122.438131+37.777319&map_ssfmappnts_feature_text=Old848&imgext=-122.454911+37.782652+-122.414361+37.823203&map=C%3A%2Fms4w%2FApache%2Fhtdocs%2Fssf%2Fssf5.map&savequery=true&program=%2Fcgi-bin%2Fmapserv_46.exe&map_web_imagepath=..%2Ftmp%2F&map_web_imageurl=..%2Ftmp%2F =============================== Mapserver log: Wed Jul 20 01:21:03 2005,1736,127.0.0.1,SSF,0,-122.513100 37.686550 -122.350900 37.848750,-1.000000 -1.000000,ssfmappnts ,normal execution ============================== A point in a shapefile that displays correctly: geopnt1 FID 15503 MULTIPOINT (-122.41202545997528 37.78057859726695) From mapserver at HOTMAIL.COM Wed Jul 20 01:42:32 2005 From: mapserver at HOTMAIL.COM (N M) Date: Wed, 20 Jul 2005 08:42:32 +0000 Subject: TEMPLATE in map file doesn't run, why? In-Reply-To: <000701c58d00$cfe169e0$041410ac@comune.lugo.ra.it> Message-ID: Hi Daniele, I understand what you are telling me but the problem is that although I had an .html page when I execute mapserver, I can't click anywhere in the map, any clicking zone appears. I tried using TEMPLATE in LAYER section, in WEB section and in CLASS section but nothing occurs. > >A TEMPLATE is an existing .html file that is used by CGI Mapserver as a >"skeleton" page: in this page, there are some fields that Mapserver >substitutes with the image of the map, the scalebar, the reference map, >and other variables (current scale, current extent, and so on). > >This TEMPLATE must be defined in the WEB section of the mapfile >(http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#web). > > >You can also use a TEMPLATE in the CLASS section >(http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#class) or - >if you want the same template for each class of a layer - in the LAYER >section >(http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#layer) of the >mapfile. > >In this case, the TEMPLATE (this also must be an existing .html file) is >used by CGI Mapserver when you query the map: the template contains >field that are substituted with vaules of the queried attributes. > > >In your example mapfile, the TEMPLATE instruction as the following >meaning: >"When you query the map, show results (for this layer) using >http://www.nusvirtual.com as template". >The question is: is this a good template file? > >But I suggest you to use a "local" .html file as a template. > > Daniele > > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >Behalf Of SUBSCRIBE MAPSERVER-USERS Nuri >Sent: Wednesday, July 20, 2005 9:32 AM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] TEMPLATE in map file doesn't run, why? > > >Hi, > >I inserted a TEMPLATE instruction in my map file but the link doesn't >run in the map. > >Someone could tell me why I'm doing wrong? Thank you. > >This is my map file: > > >MAP > IMAGETYPE PNG > EXTENT 20.000000 18.000000 50.000000 110.000000 > SIZE 500 350 > SHAPEPATH "data" > IMAGECOLOR 255 180 0 > SYMBOLSET "symbols/symbols35.sym" > FONTSET "fonts/fonts.list" > > # Start of LAYER DEFINITIONS >-------------------------------------------- >- > > LAYER # Capa de raster > NAME mapafig > DATA "raster/figueres.tif" > STATUS DEFAULT > TYPE RASTER > PROCESSING "BANDS=1,2,3" > OFFSITE 0 0 255 > END # Fi capa de raster > > LAYER > NAME "prova" > TEMPLATE "http://www.nusvirtual.com" <-------- >???????????????????? > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "mapa21.ovf" > DATA "mapa21" > LABELITEM "id" > #PROJECTION > # "init=epsg:4326" > #END > > CLASS > SYMBOL 'symbols/prova.gif' > #SIZE 6 > COLOR 255 0 0 > LABEL > SIZE MEDIUM > TYPE BITMAP > COLOR 0 0 0 > END > END >END > > # End of LAYER DEFINITIONS ------------------------------- END # end >of map file > > _________________________________________________________________ Descubre la descarga digital con MSN Music. M?s de medio mill?n de canciones. http://music.msn.es/ From jacob.delfos at MAUNSELL.COM Wed Jul 20 01:51:37 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Wed, 20 Jul 2005 16:51:37 +0800 Subject: TEMPLATE in map file doesn't run, why? Message-ID: What form input elements do you have in your template? When you say "any clicking zone appears", does that mean when you click, the map disappears? Normally when you click, the page submits. If your input elements in your template are not correct, or missing, it may submit to an incorrect link, or with incorrect parameters. Maybe you can post the relevant bits of your template. regards, Jacob -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of N M Sent: 20 July 2005 16:43 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] TEMPLATE in map file doesn't run, why? Hi Daniele, I understand what you are telling me but the problem is that although I had an .html page when I execute mapserver, I can't click anywhere in the map, any clicking zone appears. I tried using TEMPLATE in LAYER section, in WEB section and in CLASS section but nothing occurs. > >A TEMPLATE is an existing .html file that is used by CGI Mapserver as a >"skeleton" page: in this page, there are some fields that Mapserver >substitutes with the image of the map, the scalebar, the reference map, >and other variables (current scale, current extent, and so on). > >This TEMPLATE must be defined in the WEB section of the mapfile >(http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#web). > > >You can also use a TEMPLATE in the CLASS section >(http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#class) or - >if you want the same template for each class of a layer - in the LAYER >section >(http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#layer) of the >mapfile. > >In this case, the TEMPLATE (this also must be an existing .html file) is >used by CGI Mapserver when you query the map: the template contains >field that are substituted with vaules of the queried attributes. > > >In your example mapfile, the TEMPLATE instruction as the following >meaning: >"When you query the map, show results (for this layer) using >http://www.nusvirtual.com as template". >The question is: is this a good template file? > >But I suggest you to use a "local" .html file as a template. > > Daniele > > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >Behalf Of SUBSCRIBE MAPSERVER-USERS Nuri >Sent: Wednesday, July 20, 2005 9:32 AM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] TEMPLATE in map file doesn't run, why? > > >Hi, > >I inserted a TEMPLATE instruction in my map file but the link doesn't >run in the map. > >Someone could tell me why I'm doing wrong? Thank you. > >This is my map file: > > >MAP > IMAGETYPE PNG > EXTENT 20.000000 18.000000 50.000000 110.000000 > SIZE 500 350 > SHAPEPATH "data" > IMAGECOLOR 255 180 0 > SYMBOLSET "symbols/symbols35.sym" > FONTSET "fonts/fonts.list" > > # Start of LAYER DEFINITIONS >-------------------------------------------- >- > > LAYER # Capa de raster > NAME mapafig > DATA "raster/figueres.tif" > STATUS DEFAULT > TYPE RASTER > PROCESSING "BANDS=1,2,3" > OFFSITE 0 0 255 > END # Fi capa de raster > > LAYER > NAME "prova" > TEMPLATE "http://www.nusvirtual.com" <-------- >???????????????????? > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "mapa21.ovf" > DATA "mapa21" > LABELITEM "id" > #PROJECTION > # "init=epsg:4326" > #END > > CLASS > SYMBOL 'symbols/prova.gif' > #SIZE 6 > COLOR 255 0 0 > LABEL > SIZE MEDIUM > TYPE BITMAP > COLOR 0 0 0 > END > END >END > > # End of LAYER DEFINITIONS ------------------------------- END # end >of map file > > _________________________________________________________________ Descubre la descarga digital con MSN Music. M?s de medio mill?n de canciones. http://music.msn.es/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.riff at CERENE.FR Wed Jul 20 02:38:38 2005 From: stephane.riff at CERENE.FR (=?ISO-8859-1?Q?St=E9phane_RIFF?=) Date: Wed, 20 Jul 2005 11:38:38 +0200 Subject: Log error question Message-ID: Hello, I have some problem on a phpmapscript application. Some time it seems that $map->draw() crash for unknown reason. It's not logical (I think), it happened randomly but only when a specific layer is on. What i want to know is to debug phpmapscript, so i made an error_handler for my php script but i didn't log the phpmapscript errors. So i tried map DEBUG but the informations are very orientated for time performance. Is it possible to log only crash ??? Hope this clear... Thanks Steff From vito.detoma at COMUNE.BIELLA.IT Wed Jul 20 03:15:28 2005 From: vito.detoma at COMUNE.BIELLA.IT (Vito De Toma - CED-) Date: Wed, 20 Jul 2005 12:15:28 +0200 Subject: Compile error Message-ID: I'm trying to compile mapserver 4.6.0 but i've an error when i type make.The error is "php_mapscript.c: In function `php3_ms_img_saveImage': php_mapscript.c:6007: error: too many arguments to function `php_header' make[1]: *** [php_mapscript.o] Error 1 make[1]: Leaving directory `/root/mapserver-4.6.0/mapscript/php3'" Can anyone help me???? My linuxbox is a debian stable with kernel 2.6.8.2. I compile php4 with : "./configure --prefix=/usr --with-gd --with-mysql --enable-ftp --enable-force-cgi-redirect --with-ttf --with-jpeg --with-png --enable-gd-native-ttf --enable-dbase --enable-dba --with-dbase --with-zlib --with-freetype --enable-cli --with-apxs2=/usr/bin/apxs2 --with-config-file-path=/etc/php4/apache2 --enable-memory-limit --disable-debug --with-regex=php --disable-rpath --disable-static --with-pic --with-layout=GNU --with-pear=/usr/share/php --enable-calendar --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-track-vars --enable-trans-sid --enable-bcmath --with-bz2 --enable-ctype --with-db4 --with-iconv --enable-exif --enable-filepro --with-gettex --enable-mbstring --with-pcre-regex=/usr --enable-shmop --enable-sockets --enable-wddx --disable-xml --with-expath-dir=/usr --with-xmlrpc --enable-yp --with-pgsql --with-kerberos=/usr --with-openssl=/usr --with-zip=/usr --enable-dbx --with-mime-magic=/usr/share/misc/file/magic.mime --with-exec-dir=/usr/lib/php4/libexec --with-t1lib=shared,/usr --with-freetype-dir=shared,/usr --without-mm --without-sybase-ct" and i've got no error... I compile mapserver with:"./configure --with-gd --with-jpeg --with-png --with-php=/root/php-4.4.0/ --with-tiff --with-freetype --with-postgis --with-proj --with-ogr --with-gdal" with no error but when i make i've the error... Sorry for my english, but i'm italian :):) From stephane.riff at CERENE.FR Wed Jul 20 05:11:50 2005 From: stephane.riff at CERENE.FR (=?ISO-8859-1?Q?St=E9phane_RIFF?=) Date: Wed, 20 Jul 2005 14:11:50 +0200 Subject: Log error question In-Reply-To: <42DE1B9E.7070704@cerene.fr> Message-ID: I really don't understand because when i turn DEBUG ON my never crash I know it's really strange but it's what i see.... I use php 4.3.9 and i saw on php.net that php 4.4.0 release had resolve some bug on references : Do you think that i had to update my php version ??? St?phane RIFF wrote: > Hello, > > I have some problem on a phpmapscript application. Some time it seems > that > $map->draw() crash for unknown reason. It's not logical (I think), it > happened > randomly but only when a specific layer is on. > > What i want to know is to debug phpmapscript, so i made an > error_handler for my php script > but i didn't log the phpmapscript errors. So i tried map DEBUG but the > informations > are very orientated for time performance. Is it possible to log only > crash ??? > > Hope this clear... > Thanks > Steff > > From woodbri at SWOODBRIDGE.COM Wed Jul 20 05:21:12 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 20 Jul 2005 08:21:12 -0400 Subject: Log error question In-Reply-To: <42DE3F86.5060301@cerene.fr> Message-ID: This sounds like it might be a data problem with the layer you are having problems with. If you have a bad file or a bad object in the file it would work most of the time but only crash when you are at the correct zoom scale and at the correct spatial extents to cause the object to be rendered. There used to be a utility called chkshp or checkshp or something like that that you can run on shape files to check them. You might want to consider doing that to make sure it is not a data problem. -Steve W. St?phane RIFF wrote: > I really don't understand because when i turn DEBUG ON my never crash > I know it's really strange but it's what i see.... > I use php 4.3.9 and i saw on php.net that php 4.4.0 release had resolve > some > bug on references : Do you think that i had to update my php version ??? > > St?phane RIFF wrote: > >> Hello, >> >> I have some problem on a phpmapscript application. Some time it seems >> that >> $map->draw() crash for unknown reason. It's not logical (I think), it >> happened >> randomly but only when a specific layer is on. >> >> What i want to know is to debug phpmapscript, so i made an >> error_handler for my php script >> but i didn't log the phpmapscript errors. So i tried map DEBUG but the >> informations >> are very orientated for time performance. Is it possible to log only >> crash ??? >> >> Hope this clear... >> Thanks >> Steff >> >> > From stephane.riff at CERENE.FR Wed Jul 20 05:55:44 2005 From: stephane.riff at CERENE.FR (=?ISO-8859-1?Q?St=E9phane_RIFF?=) Date: Wed, 20 Jul 2005 14:55:44 +0200 Subject: Log error question In-Reply-To: <42DE41B8.7050201@swoodbridge.com> Message-ID: Thanks for your answer. All my data are stored in POSTGIS so i can't use your utility. About the scale i tried at the same scale with DEBUG ON and OFF When it's ON -> no crash When it's OFF -> crash Maybe my layer def is bad, i have post about my layer definition but had no answer I resend it here. This layer represent some car track on one day, i use gps date to delimitate each path. It a bit long but hope someone could tell me if it's really bad to do this : The data table structure is : | gps_date | speed | altitude | heading | engine_onoff | geom | 2005-06-27 04:58:20 | 100 | 350 | 159 | 1 | SRID=4326;POINT(2.315729 48.777176) 2005-06-27 04:59:19 | 90 | 345 | 120 | 1 | SRID=4326;POINT(2.314061 48.771334) - | - | - | - | 0 | - - | - | - | - | 0 | - - | - | - | - | 0 | - - | - | - | - | 1 | - and so on ..... The field engine_onoff represent each track when it's 1 the engine is power on when it's 0 the engine is power off. My goal is that all path (engine_onoff == 1) are represents in a different color. ( I use seven colors and rotate ) At this time i use a sql query to determinate all tracks starts and ends, then create a dynamic layer via phpmapscript. Here is the layer definition LAYER CLASSITEM "gps_date" CONNECTION "host=localhost dbname=database1 port=5432 user=usr1 password=pwd1" CONNECTIONTYPE POSTGIS DATA "geom from history" FILTER ( (natural_id=1002514153) AND (TIMESTAMP '2005-06-27 00:00:01',TIMESTAMP '2005-06-27 23:59:59') OVERLAPS (gps_date,INTERVAL '0 days')) GROUP "G.P.S" LABELANGLEITEM "heading" LABELCACHE OFF METADATA END NAME "GPS_REM" PROJECTION "init=epsg:4326" END SIZEUNITS PIXELS STATUS ON TOLERANCE 6 TOLERANCEUNITS PIXELS TRANSPARENCY 1000 TYPE ANNOTATION UNITS METERS CLASS NAME "0" EXPRESSION ( ('[gps_date]' >= '2005-07-11 06:57:06' AND '[gps_date]' < '2005-07-11 07:02:36') OR ('[gps_date]' >= '2005-07-11 12:16:09' AND '[gps_date]' < '2005-07-11 12:18:49') OR ('[gps_date]' >= '2005-07-11 17:29:04' AND '[gps_date]' < '2005-07-11 17:37:54') OR ('[gps_date]' >= '2005-07-11 19:18:58' AND '[gps_date]' < '2005-07-11 19:19:13') OR ('[gps_date]' >= '2005-07-11 20:24:25' AND '[gps_date]' < '2005-07-11 20:38:05') ) LABEL ANGLE -21.000000 ANTIALIAS TRUE FONT Symbols MAXSIZE 256 MINSIZE 4 SIZE 14 TYPE TRUETYPE BUFFER 0 COLOR 0 128 128 FORCE TRUE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE POSITION CC END METADATA END STYLE COLOR 0 0 255 MAXSIZE 500 MINSIZE 1 SIZE 14 SYMBOL "point" END TEMPLATE "dummy" TEXT "b" END CLASS NAME "1" EXPRESSION ( ('[gps_date]' >= '2005-07-11 07:10:19' AND '[gps_date]' < '2005-07-11 07:48:45') OR ('[gps_date]' >= '2005-07-11 12:18:49' AND '[gps_date]' < '2005-07-11 12:34:15') OR ('[gps_date]' >= '2005-07-11 17:37:54' AND '[gps_date]' < '2005-07-11 18:00:53') OR ('[gps_date]' >= '2005-07-11 19:29:20' AND '[gps_date]' < '2005-07-11 19:30:05') OR ('[gps_date]' >= '2005-07-11 20:38:05' AND '[gps_date]' < '2005-07-11 20:44:50') ) LABEL ANGLE -21.000000 ANTIALIAS TRUE FONT Symbols MAXSIZE 256 MINSIZE 4 SIZE 14 TYPE TRUETYPE BUFFER 0 COLOR 0 0 128 FORCE TRUE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE POSITION CC END METADATA END STYLE COLOR 0 0 255 MAXSIZE 500 MINSIZE 1 SIZE 14 SYMBOL "point" END TEMPLATE "dummy" TEXT "b" END CLASS NAME "2" EXPRESSION ( ('[gps_date]' >= '2005-07-11 07:56:22' AND '[gps_date]' < '2005-07-11 08:00:22') OR ('[gps_date]' >= '2005-07-11 12:37:30' AND '[gps_date]' < '2005-07-11 12:44:30') OR ('[gps_date]' >= '2005-07-11 18:00:53' AND '[gps_date]' < '2005-07-11 18:33:29') OR ('[gps_date]' >= '2005-07-11 19:37:37' AND '[gps_date]' < '2005-07-11 19:39:52') OR ('[gps_date]' >= '2005-07-11 20:44:50' AND '[gps_date]' < '2005-07-11 20:46:35') ) LABEL ANGLE -168.000000 ANTIALIAS TRUE FONT Symbols MAXSIZE 256 MINSIZE 4 SIZE 14 TYPE TRUETYPE BUFFER 0 COLOR 128 0 128 FORCE TRUE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE POSITION CC END METADATA END STYLE COLOR 0 0 255 MAXSIZE 500 MINSIZE 1 SIZE 14 SYMBOL "point" END TEMPLATE "dummy" TEXT "b" END CLASS NAME "3" EXPRESSION ( ('[gps_date]' >= '2005-07-11 08:02:07' AND '[gps_date]' < '2005-07-11 08:19:54') OR ('[gps_date]' >= '2005-07-11 15:21:47' AND '[gps_date]' < '2005-07-11 15:38:00') OR ('[gps_date]' >= '2005-07-11 18:33:29' AND '[gps_date]' < '2005-07-11 18:42:53') OR ('[gps_date]' >= '2005-07-11 19:52:07' AND '[gps_date]' < '2005-07-11 20:05:55') OR ('[gps_date]' >= '2005-07-11 20:47:35' AND '[gps_date]' < '2005-07-11 20:47:50') ) LABEL ANGLE -261.000000 ANTIALIAS TRUE FONT Symbols MAXSIZE 256 MINSIZE 4 SIZE 14 TYPE TRUETYPE BUFFER 0 COLOR 128 128 128 FORCE TRUE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE POSITION CC END METADATA END STYLE COLOR 0 0 255 MAXSIZE 500 MINSIZE 1 SIZE 14 SYMBOL "point" END TEMPLATE "dummy" TEXT "b" END CLASS NAME "4" EXPRESSION ( ('[gps_date]' >= '2005-07-11 08:20:09' AND '[gps_date]' < '2005-07-11 08:21:24') OR ('[gps_date]' >= '2005-07-11 15:41:45' AND '[gps_date]' < '2005-07-11 16:53:00') OR ('[gps_date]' >= '2005-07-11 18:42:53' AND '[gps_date]' < '2005-07-11 18:46:38') OR ('[gps_date]' >= '2005-07-11 20:05:55' AND '[gps_date]' < '2005-07-11 20:10:40') OR ('[gps_date]' >= '2005-07-11 21:24:58' AND '[gps_date]' < '2005-07-11 21:25:28') ) LABEL ANGLE -286.000000 ANTIALIAS TRUE FONT Symbols MAXSIZE 256 MINSIZE 4 SIZE 14 TYPE TRUETYPE BUFFER 0 COLOR 0 0 0 FORCE TRUE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE POSITION CC END METADATA END STYLE COLOR 0 0 255 MAXSIZE 500 MINSIZE 1 SIZE 14 SYMBOL "point" END TEMPLATE "dummy" TEXT "b" END CLASS NAME "5" EXPRESSION ( ('[gps_date]' >= '2005-07-11 08:46:27' AND '[gps_date]' < '2005-07-11 09:15:20') OR ('[gps_date]' >= '2005-07-11 16:53:00' AND '[gps_date]' < '2005-07-11 17:20:19') OR ('[gps_date]' >= '2005-07-11 18:55:38' AND '[gps_date]' < '2005-07-11 18:59:08') OR ('[gps_date]' >= '2005-07-11 20:10:40' AND '[gps_date]' < '2005-07-11 20:20:10') ) LABEL ANGLE -11.000000 ANTIALIAS TRUE FONT Symbols MAXSIZE 256 MINSIZE 4 SIZE 14 TYPE TRUETYPE BUFFER 0 COLOR 128 128 0 FORCE TRUE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE POSITION CC END METADATA END STYLE COLOR 0 0 255 MAXSIZE 500 MINSIZE 1 SIZE 14 SYMBOL "point" END TEMPLATE "dummy" TEXT "b" END CLASS NAME "6" EXPRESSION ( ('[gps_date]' >= '2005-07-11 11:21:04' AND '[gps_date]' < '2005-07-11 11:50:10') OR ('[gps_date]' >= '2005-07-11 17:20:19' AND '[gps_date]' < '2005-07-11 17:29:04') OR ('[gps_date]' >= '2005-07-11 19:12:43' AND '[gps_date]' < '2005-07-11 19:16:58') OR ('[gps_date]' >= '2005-07-11 20:20:10' AND '[gps_date]' < '2005-07-11 20:21:25') ) LABEL ANGLE -6.000000 ANTIALIAS TRUE FONT Symbols MAXSIZE 256 MINSIZE 4 SIZE 14 TYPE TRUETYPE BUFFER 0 COLOR 255 0 255 FORCE TRUE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE POSITION CC END METADATA END STYLE COLOR 0 0 255 MAXSIZE 500 MINSIZE 1 SIZE 14 SYMBOL "point" END TEMPLATE "dummy" TEXT "b" END CLASS NAME "stop" EXPRESSION ( ('[gps_date]' eq '2005-07-10 23:04:48') OR ('[gps_date]' eq '2005-07-11 07:02:36') OR ('[gps_date]' eq '2005-07-11 07:48:45') OR ('[gps_date]' eq '2005-07-11 07:53:52') OR ('[gps_date]' eq '2005-07-11 08:00:22') OR ('[gps_date]' eq '2005-07-11 08:19:54') OR ('[gps_date]' eq '2005-07-11 08:21:24') OR ('[gps_date]' eq '2005-07-11 08:22:24') OR ('[gps_date]' eq '2005-07-11 09:15:20') OR ('[gps_date]' eq '2005-07-11 11:50:10') OR ('[gps_date]' eq '2005-07-11 12:34:15') OR ('[gps_date]' eq '2005-07-11 12:44:30') OR ('[gps_date]' eq '2005-07-11 13:39:04') OR ('[gps_date]' eq '2005-07-11 15:38:00') OR ('[gps_date]' eq '2005-07-11 18:46:38') OR ('[gps_date]' eq '2005-07-11 18:59:08') OR ('[gps_date]' eq '2005-07-11 19:16:58') OR ('[gps_date]' eq '2005-07-11 19:19:13') OR ('[gps_date]' eq '2005-07-11 19:30:05') OR ('[gps_date]' eq '2005-07-11 19:34:37') OR ('[gps_date]' eq '2005-07-11 19:34:52') OR ('[gps_date]' eq '2005-07-11 19:39:52') OR ('[gps_date]' eq '2005-07-11 19:41:52') OR ('[gps_date]' eq '2005-07-11 19:45:22') OR ('[gps_date]' eq '2005-07-11 19:45:37') OR ('[gps_date]' eq '2005-07-11 19:48:37') OR ('[gps_date]' eq '2005-07-11 19:48:52') OR ('[gps_date]' eq '2005-07-11 19:50:07') OR ('[gps_date]' eq '2005-07-11 20:21:25') OR ('[gps_date]' eq '2005-07-11 20:23:55') OR ('[gps_date]' eq '2005-07-11 20:46:35') OR ('[gps_date]' eq '2005-07-11 20:47:50') OR ('[gps_date]' eq '2005-07-11 21:25:28') OR ('[gps_date]' eq '2005-07-11 22:38:02') ) LABEL ANGLE -244.000000 ANTIALIAS TRUE FONT Symbols MAXSIZE 256 MINSIZE 4 SIZE 14 TYPE TRUETYPE BUFFER 0 COLOR 255 0 0 FORCE TRUE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE POSITION CC END METADATA END TEMPLATE "dummy" TEXT "f" END END Stephen Woodbridge wrote: > This sounds like it might be a data problem with the layer you are > having problems with. If you have a bad file or a bad object in the > file it would work most of the time but only crash when you are at the > correct zoom scale and at the correct spatial extents to cause the > object to be rendered. > > There used to be a utility called chkshp or checkshp or something like > that that you can run on shape files to check them. You might want to > consider doing that to make sure it is not a data problem. > > -Steve W. > > St?phane RIFF wrote: > >> I really don't understand because when i turn DEBUG ON my never crash >> I know it's really strange but it's what i see.... >> I use php 4.3.9 and i saw on php.net that php 4.4.0 release had >> resolve some >> bug on references : Do you think that i had to update my php version ??? >> >> St?phane RIFF wrote: >> >>> Hello, >>> >>> I have some problem on a phpmapscript application. Some time it >>> seems that >>> $map->draw() crash for unknown reason. It's not logical (I think), >>> it happened >>> randomly but only when a specific layer is on. >>> >>> What i want to know is to debug phpmapscript, so i made an >>> error_handler for my php script >>> but i didn't log the phpmapscript errors. So i tried map DEBUG but >>> the informations >>> are very orientated for time performance. Is it possible to log only >>> crash ??? >>> >>> Hope this clear... >>> Thanks >>> Steff >>> >>> >> > > From covariance at SHAW.CA Wed Jul 20 05:55:46 2005 From: covariance at SHAW.CA (Bob Bruce) Date: Wed, 20 Jul 2005 07:55:46 -0500 Subject: imagemap output format Message-ID: Jim: it looks like you have either got a problem with your layer definitions in your map file or else you have an error in your definitions in your OUTPUTFORMAT section since you are getting the map tags in your output imagemap. Anyway, below is an imagemap map file that I was using to test both areas and points. Bob Bruce, Winnipeg, Manitoba MAP NAME WinnipegMuralsImageMapSmall STATUS ON EXTENT 617000 5507400 647500 5539500 SIZE 400 400 SHAPEPATH "c:/Apache/htdocs/WinnipegStreets/FullData" FONTSET "c:/winnt/fonts/fonts.list" # IMAGETYPE imagemap # uncommenting this will cause the FORMATOPTIONs to stop working IMAGECOLOR 240 240 224 UNITS METERS PROJECTION "datum=NAD83" "proj=utm" "ellps=GRS80" "zone=14" "north" "no_defs" END OUTPUTFORMAT NAME "TheSmallImageMap" DRIVER imagemap FORMATOPTION "MAPNAME=TheSmallImageMap" FORMATOPTION "POLYHREF=click_area('%s')" FORMATOPTION "POLYMOUSEOUT=mouseOutArea('%s')" FORMATOPTION "POLYMOUSEOVER=mouseOverArea('%s')" FORMATOPTION "SYMBOLHREF=javascript:ChangeTheMural(%s)" FORMATOPTION "SYMBOLMOUSEOUT=popDown('popUp%s')" FORMATOPTION "SYMBOLMOUSEOVER=popUp(event,'popUp%s')" END WEB IMAGEPATH "c:/Apache/htdocs/temp/" IMAGEURL "/temp/" MAXSCALE 228000 MINSCALE 200 TEMPLATE "c:/Apache/htdocs/Mpages/TestImageMap.htm" END LAYER NAME "MuralBox" STATUS DEFAULT DATA "WinnipegMurals" TYPE POINT MINSCALE 1 MAXSCALE 25000 CLASSITEM 'MURALID' CLASS NAME "AMuralBox" SYMBOL 'rectangleNew' COLOR 255 0 0 SIZE 14 END END SYMBOL NAME 'rectangleNew' TYPE VECTOR FILLED TRUE POINTS 0 0 4 0 4 2 0 2 0 0 END END LAYER NAME "WinnipegGreenSpaces" STATUS DEFAULT TYPE POLYGON DATA "WinnipegGreenSpaces" CLASSITEM "TYPE" LABELITEM "NAME" MAXSCALE 25000 CLASS NAME "Local Green Space" EXPRESSION "" STYLE COLOR 0 251 125 END END CLASS NAME "School" EXPRESSION "SY" STYLE COLOR 0 251 125 END LABEL TYPE truetype FONT 'arial' SIZE 10 END END CLASS NAME "Community Center" EXPRESSION "CC" STYLE COLOR 0 251 125 END LABEL TYPE truetype FONT 'arial' SIZE 10 END END CLASS NAME "Local Park" EXPRESSION "PK" STYLE COLOR 0 251 125 END LABEL TYPE truetype FONT 'arial' SIZE 10 END END CLASS NAME "Cemetery" EXPRESSION "CM" STYLE COLOR 179 179 0 END LABEL TYPE truetype FONT 'arial' SIZE 10 END END END END On Mon, 18 Jul 2005 21:51:42 -0700, Jim Donaghy wrote: >Does anyone have an example map file working with the imagemap output >format that they would not mind sharing? > >I'm using the ms4w binaries, and when I specify the imagemap format on >an otherwise working mapfile with polygons defined, it outputs the html >file with map tags but no areas defined. > >Thanks in advance. From pgiencke at GLC.ORG Wed Jul 20 06:35:05 2005 From: pgiencke at GLC.ORG (Peter Giencke) Date: Wed, 20 Jul 2005 09:35:05 -0400 Subject: PHP MapScript / dynamic points from MySQL / possible to query? In-Reply-To: Message-ID: Dylan, With regards to using mapserver for this, I have no specific examples. I did manage to dig up a a php|mysql|js example which illustrates how to do this (you would be using an array and a parsing function + onclick event, not options), which is here http://forums.devshed.com/archive/t-7293/PHP-and-drop-down-menus. I have a few examples of php->js from my own web-mapping work, but that too isn't done with mapserver. I can provide you with links to that if you want. As far as using js to return info on features/images it would be quite possible with vector features written in either flash or svg. For 'static' images/features such as those rendered as jpegs, the opposite would be true I think. -pete -----Original Message----- From: Dylan Beaudette [mailto:dylan at iici.no-ip.org] Sent: Wednesday, July 20, 2005 12:16 AM To: Peter Giencke Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] PHP MapScript / dynamic points from MySQL / possible to query? Pete, Are there any examples of this on the web? Also, is there any way to use javascript to bring up information on features in the returned images- i.e. with some sort of image map? thanks! -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 On Jul 19, 2005, at 9:53 AM, Peter Giencke wrote: > Jeff, > > One idea is by writing those points to a javascript array, you could > implement a js function to access the array (via mouseclick or > whatever) and > present the data in any number of ways. You could keep your code > relatively intact for this by having the php write all the javascript > necessary for this. > > -pete > > Pete Giencke > Data and Information Management > Great Lakes Commission > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On > Behalf Of Geoff Rowland > Sent: Tuesday, July 19, 2005 12:36 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] PHP MapScript / dynamic points from > MySQL / possible to query? > > I am pulling some lat/lon coordinates out of a database and drawing > them on a map using code like this (not sure if this is really the > best way, but it's the code I came up with, heh) > > $map= ms_newMapObj('world.map'); > $layer = $map->getLayerByName('alerts'); > > for ($j=0; $j < mysql_num_rows($result); $j++) > { > $row = mysql_fetch_assoc($result); > ${$pt} = ms_newPointObj(); > ${$pt}->setXY($row[lat],$row[lon]); > ${$pt}->draw($map, $layer, $img, 0 ,$row[location]); > } > $url = $img->saveWebImage(); > > works great. However I really want to make it so that when a user > clicks on the point, information about the point will come up. I > assume this is not possible with the way I currently have this setup, > is that correct? > What > would be the best way to go about doing this? > > Cheers, > Geoff > > -- > Geoffrey Rowland > Technical Officer > Climate Information Project > NOAA Research > Office of Global Programs > http://www.cip.noaa.gov > http://www.ranetproject.net > Contractor, > RGII Technologies, Inc., a Computer Horizons Company > http://www.rg2.com > Phone: 301-427-2344 > Fax : 301-427-2082 > geoffrey.rowland at noaa.gov > > From woodbri at SWOODBRIDGE.COM Wed Jul 20 06:53:27 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 20 Jul 2005 09:53:27 -0400 Subject: New google maps Message-ID: http://moon.google.com From osgis.lists at GMAIL.COM Wed Jul 20 06:59:18 2005 From: osgis.lists at GMAIL.COM (David Bitner) Date: Wed, 20 Jul 2005 08:59:18 -0500 Subject: New google maps In-Reply-To: <42DE5757.30703@swoodbridge.com> Message-ID: Try zooming in all the way ;) On 7/20/05, Stephen Woodbridge wrote: > http://moon.google.com > From listario at GMAIL.COM Wed Jul 20 06:59:39 2005 From: listario at GMAIL.COM (J. Parapar) Date: Wed, 20 Jul 2005 15:59:39 +0200 Subject: Questions about MN DNR Landview client Message-ID: Hi all. We are trying to use the MN DNR Landview client (http://www.dnr.state.mn.us/maps/landview.html) in a web application we are developing. It's very interesting and it will save us an important amount of work and time. First of all, we would like to confirm that the code of that site has some free license, so we can use it. Second, we have seen a problem with Mozilla Firefox (Linux and Windows). When the page is loaded or the map is redrawn by some actions (zoom,... ), the map and the other images get loaded completely but the status bar stays with the "Transferring data from noah.dnr.state.mn.us ....", the message doesn't disappear. We think the problem is with dbox.js and or mapserver.js but we can locate where. Does anybody know how to solve it or any clue about it? Thanks in advance for your help, Jorge From andy.canfield at GMAIL.COM Wed Jul 20 07:01:36 2005 From: andy.canfield at GMAIL.COM (Andy Canfield) Date: Wed, 20 Jul 2005 07:01:36 -0700 Subject: New google maps In-Reply-To: <42DE5757.30703@swoodbridge.com> Message-ID: That's awesome on the lowest zoom level!!! :) On 7/20/05, Stephen Woodbridge wrote: > http://moon.google.com > From dbkeon.ml at GMAIL.COM Wed Jul 20 07:06:06 2005 From: dbkeon.ml at GMAIL.COM (Dylan Keon) Date: Wed, 20 Jul 2005 07:06:06 -0700 Subject: New google maps In-Reply-To: <42DE5757.30703@swoodbridge.com> Message-ID: On 07/20/2005 06:53 AM Stephen Woodbridge wrote the following: > http://moon.google.com > Cool! I had a good chuckle after zooming in all the way :-) From assefa at DMSOLUTIONS.CA Wed Jul 20 07:07:49 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 20 Jul 2005 10:07:49 -0400 Subject: Problem with spatial filters and SLD parsing In-Reply-To: <4ac9926605071915075647b209@mail.gmail.com> Message-ID: Hi There, Effectivly the spatial filter won't work with the else filter. There is a note on that issue in the docs (http://mapserver.gis.umn.edu/doc/sld-howto.html) and also a bug related to that http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1427. It should be adressed before the next release. Later, J. Parapar wrote: > Hi all. > > I am having problems with spatial filters (DWithin,Intersects) in SLD > files. The SLD files in question have two rules (see below), one with > the spatial filter and the other with an ElseFilter, each one with its > respective symbolizer. The problem is that only the features resulting > from the spatial filter are represented, the "else features" do not appear. > So, I wonder if I am doing something wrong or there is a Mapserver > problem with the ElseFilter rule when a spatial filter is applied. It > seems like the ElseFilter rule was not taken into account. > > I have tried with an IsEqualTo filter instead of the spatial one and it > works well. > > > I am using Mapserver 4.6.0. > > The sld files are like this: > > > xsi:schemaLocation="http://www.opengis.net/sld > StyledLayerDescriptor.xsd" xmlns="http://www.opengis.net/sld" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > > Provincias > > > > > > > geometria > 10 > > > 632266.666667,4800799.999999 > > > > > > #0000FF > > > #0000FF > > > > > > > > #FF0000 > > > #000000 > > > > > > > > > > The following sld, with an "IsEqualTo" filter, works well: > > > > xsi:schemaLocation="http://www.opengis.net/sld > StyledLayerDescriptor.xsd" xmlns="http://www.opengis.net/sld" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > > Provincias > > > > > > > ine_prov > 27 > > > > > #0000FF > > > #000000 > > > > > > > > #FF0000 > > > #000000 > > > > > > > > > Thank you very much in advance, > Jorge > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From Richard_D_Levine at RAYTHEON.COM Wed Jul 20 07:32:59 2005 From: Richard_D_Levine at RAYTHEON.COM (Rick Levine) Date: Wed, 20 Jul 2005 09:32:59 -0500 Subject: New google maps In-Reply-To: <7425d08705072007015cfda5dd@mail.gmail.com> Message-ID: UMN MapServer Users List wrote on 07/20/2005 09:01:36 AM: > That's awesome on the lowest zoom level!!! :) SEE! The moon shots were faked! Another classic conspiracy theory laid to rest. Seriously though, that's a hoot! > > On 7/20/05, Stephen Woodbridge wrote: > > http://moon.google.com > > From jdport at VERITIME.COM Wed Jul 20 07:46:29 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Wed, 20 Jul 2005 10:46:29 -0400 Subject: New google maps Message-ID: hahahah, that is Funny! Somebody at google has a sense of humor... good to see they don't take themselves too seriously :) -Jeff ----- Original Message ----- From: "Andy Canfield" To: Sent: Wednesday, July 20, 2005 10:01 AM Subject: Re: [UMN_MAPSERVER-USERS] New google maps That's awesome on the lowest zoom level!!! :) On 7/20/05, Stephen Woodbridge wrote: > http://moon.google.com > From fredlucca at GMAIL.COM Wed Jul 20 08:14:04 2005 From: fredlucca at GMAIL.COM (Frederico Lucca) Date: Wed, 20 Jul 2005 12:14:04 -0300 Subject: Problems with gdal Message-ID: Hello list! I'm a new user from MapServer. After I compile it, I start to develop with java in linux. Well, I have some servlets creating maps and getting information from layers. My problem is with tomcat and gdal. I can create maps very quickly but when I put a program in looping to test the performance, tomcat stops and the last message in tomcat's log is: C [libgdal.so.1+0x195d04] _ZN7TABFile13GetFeatureRefEi+0x1b4 Well, any information or help... Thanks in advance... Fred Lucca -- "Everything under the sun is in tune But the sun is eclipsed by the moon" From covariance at SHAW.CA Wed Jul 20 10:22:04 2005 From: covariance at SHAW.CA (Bob Bruce) Date: Wed, 20 Jul 2005 12:22:04 -0500 Subject: hyperlink in a map Message-ID: Nuri: I use the imagemap feature of MapServer to do this. Right now there is only support for vector symbols and the 'out of the box' support only allows for a single URL to be referenced for all symbols. I have made my own MapServer modifications (which I still need to upload to the website) that allow for individual symbols to be mapped uniquely, if you are into building MapServer then I can provide those changes to you. In the meantime you should check out the MapServer imagemap page at: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?ImageMap and if you have a look at my reply to post #68 (imagemap output format) in the July 2005 MAPSERVER-USERS postings you will see an example of this useage. Bob Bruce, Winnipeg, Manitoba http://www.hwps.ca On Mon, 18 Jul 2005 03:53:43 -0500, SUBSCRIBE MAPSERVER-USERS Nuri wrote: >Hi, > >I have my own map that places several symbols in it through a database. I >need to create a hyperlink for every symbol. Is it possible to do it? > >This is my present map: > >MAP > IMAGETYPE PNG > EXTENT 20.000000 18.000000 50.000000 110.000000 > SIZE 500 350 > SHAPEPATH "data" > IMAGECOLOR 255 180 0 > SYMBOLSET "symbols/symbols35.sym" > FONTSET "fonts/fonts.list" > > # Start of LAYER DEFINITIONS ------------------------------------------- - >- > LAYER > NAME "prova" > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "mapa21.ovf" > DATA "mapa21" > > LABELITEM "id" > #PROJECTION > # "init=epsg:4326" > #END > > CLASS > SYMBOL 'symbols/prova.gif' > #SIZE 6 > COLOR 255 0 0 > LABEL > SIZE MEDIUM > TYPE BITMAP > COLOR 0 0 0 > END > END >END > > # End of LAYER DEFINITIONS ------------------------------- >END # end of map file > > > >It would be ok to insert the link in the symbol or in the ID (labelitem), >it's no matter, to call to another URL like http://www.mysite.com > >Thank you. > >Nuri From mapserver_konf at CENTRUM.SK Wed Jul 20 11:26:02 2005 From: mapserver_konf at CENTRUM.SK (Peter Misovic) Date: Wed, 20 Jul 2005 20:26:02 +0200 Subject: No subject Message-ID: Dear all, Is it possible to download all old messages from mail-conference? Because of HDD problem, I lost my archive in email client. Thanks, Peter From sergiodlopez at YAHOO.COM Wed Jul 20 14:19:14 2005 From: sergiodlopez at YAHOO.COM (Sergio Lopez) Date: Wed, 20 Jul 2005 16:19:14 -0500 Subject: problem with line layers Message-ID: I have a problem when trying to view map files via cgi-bin , they don?t show line or point layers included in the map file, just the polygons. However, when I use the same map file in maplab, everithing works as intended. what am I doing wrong? the url I use is: http://localhost/cgi-bin/mapserv_44.exe?map=/ms4w/apps/..../lp.map&mode=map I?m workin on win xp sp2. thanks in advance From nate at SEASTAR.JPL.NASA.GOV Wed Jul 20 14:49:00 2005 From: nate at SEASTAR.JPL.NASA.GOV (Nate Reed) Date: Wed, 20 Jul 2005 14:49:00 -0700 Subject: problem with line layers In-Reply-To: Message-ID: What is the name or IP address of your host? On Wed, 20 Jul 2005, Sergio Lopez wrote: > I have a problem when trying to view map files via cgi-bin , they don?t > show line or point layers included in the map file, just the polygons. > However, when I use the same map file in maplab, everithing works as > intended. what am I doing wrong? the url I use is: > http://localhost/cgi-bin/mapserv_44.exe?map=/ms4w/apps/..../lp.map&mode=map > I?m workin on win xp sp2. > thanks in advance > -- Nate Reed Physical Oceanography DAAC Jet Propulsion Lab / Raytheon ITSS (626)744-5528 nate at seastar.jpl.nasa.gov From mfioretti at MCLINK.IT Wed Jul 20 22:33:12 2005 From: mfioretti at MCLINK.IT (M. Fioretti) Date: Thu, 21 Jul 2005 07:33:12 +0200 Subject: Suggestions needed to get started In-Reply-To: Message-ID: Greetings, I have to build a new website, with a map section. Users must be able to say "show me path number X, and all the interest points distant less than 20 KMs from its starting point", where: "show me" means generate on demand a png image of the map with all the requested data. The image must be printable at the right resolution, that is when on paper must be in the exact scale (Hmmm, maybe pdf is better for this: which other tools may work with Image_GIS to do pdf?) the map comes from a complete GIS database, scale 1:25000, the same used for official topographic maps "path number X" is available as a series of GPS waypoints or is part of a road already included in the GIS database those waypoints and all interest points will be stored in a MySql or PostgreSql database My question is that obviously, I'd prefer to do the whole website with existing FOSS applications. Given the specs above, which other programs/PHP modules/tools do you recommend? I just need to be pointed in the right direction, so I can download everything, study it and start coding everything together by myself. Any feedback is welcome. Thank you in advance, Marco From piero.cavalieri at HEIDI.IT Thu Jul 21 01:04:48 2005 From: piero.cavalieri at HEIDI.IT (Piero Cavalieri) Date: Thu, 21 Jul 2005 03:04:48 -0500 Subject: Suggestions needed to get started Message-ID: M. Fioretti wrote: >Greetings, > >I have to build a new website, with a map section. Users must be able >to say "show me path number X, and all the interest points distant >less than 20 KMs from its starting point", where: > >"show me" means generate on demand a png image of the map with all the > requested data. The image must be printable at the right > resolution, that is when on paper must be in the exact scale > (Hmmm, maybe pdf is better for this: which other tools may > work with Image_GIS to do pdf?) Exact scale could be problematic; Probably you want the user select the area to be printed. In this case, scale will not be preserved. Good thing is that you can place images as percentage of paper's width and height. So you can print in A4, A3, A0, custom dimensions ecc with a unique code block (but scale will not be presereved...). For pdf there are various libraries. Pdflib is not free (pdfliblite is, but under certain circusances), but in php manual there are links to other free pdf libraries (if you use php...). > >the map comes from a complete GIS database, scale 1:25000, the same >used for official topographic maps > Tiff format is suppose. Gdal do the work. >"path number X" is available as a series of GPS waypoints or is part >of a road already included in the GIS database > >those waypoints and all interest points will be stored in a MySql or >PostgreSql database Postgre as a lot of geographic functions. Maybe Posgre will be useful on "show me path number X, and all the interest points distant less than 20 KMs from its starting point", but to simply zoom on an interest point you will no need that. > >My question is that obviously, I'd prefer to do the whole website with >existing FOSS applications. Given the specs above, which other >programs/PHP modules/tools do you recommend? Probably Mapserver + PHP + Postgre will be ok. I just need to be pointed >in the right direction, so I can download everything, study it and >start coding everything together by myself. > If you use software above you could have a look at GMAP application and DCMMS (which use also Postgre). >Any feedback is welcome. > >Thank you in advance, > Marco > P. From oubinny at HOTMAIL.COM Thu Jul 21 01:23:09 2005 From: oubinny at HOTMAIL.COM (Mehdi Kiman) Date: Thu, 21 Jul 2005 08:23:09 +0000 Subject: save polygon Message-ID: Hello, I use chameleon for making my application. I wish to save my drawing operations in a mapInfo file (.TAB) or in Oracle Database. For exemple, i draw a polygon in my map with chameleon ROI widgets and save it. Can you give me some help please ? Thanks Mehdi From jachym.cepicky at CENTRUM.CZ Thu Jul 21 01:34:48 2005 From: jachym.cepicky at CENTRUM.CZ (Jachym Cepicky) Date: Thu, 21 Jul 2005 10:34:48 +0200 Subject: postgis Message-ID: Hallo, I have following problem with mapserver: I can not load vector file stored in postgis. I use Debain (testing), with mapserver from official repository and postgis from the Debian-Gis project (http://pkg-grass.alioth.debian.org/cgi-bin/wiki.pl). I stored vector shape file with help of shp2pgsql apparently without problems. I can acces the file e.g. usin Qgis and I can load it to GRASS GIS. However mapserver gives me quite long report, about that he is not able to display the map. [...] msDrawMap(): Image handling error. Failed to draw layer named 'obrys'. prep_DB(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT kod::text,popis::text,asbinary(force_collection(force_2d()),'NDR'),OID::text from WHERE && setSRID('BOX3D(-599514.328920447 -1159983.83918495,-581875.449556553 -1142344.95982105)'::BOX3D, find_srid('','','') )' Postgresql reports the error as 'ERROR: syntax error at or near "WHERE" at character 126 ' [...] (I posted the whole file to http://les-ejk.cz/tmp/mapserver.html) The mapfile part for the layer follows: LAYER NAME obrys TYPE polygon METADATA "title" "LH SLP Krtiny" END CONNECTIONTYPE POSTGIS CONNECTION "host=10.0.0.24 dbname=krtiny user=jachym" DATA "the_geom FROM obrys" CLASSITEM kod LABELITEM popis MINSCALE 50000 CLASS EXPRESSION '1' NAME 'PUPFL "SLP Krtiny"' COLOR 49 135 32 END CLASS EXPRESSION '2' NAME 'Sidlo' COLOR 190 190 190 LABEL TYPE truetype FONT arialce SIZE 7 COLOR 0 0 0 BACKGROUNDCOLOR 255 255 255 END END END In /etc/postgresql/pg_hba.conf is: host krtiny jachym 10.0.0.24 255.255.255.0 trust What to do? Thank you Jachym -- Jachym Cepicky e-mail: jachym.cepicky at centrum.cz URL: http://les-ejk.cz GPG: http://les-ejk.cz/gnupg_public_key/ From uli.mueller at GMX.CH Thu Jul 21 02:18:00 2005 From: uli.mueller at GMX.CH (uli mueller) Date: Thu, 21 Jul 2005 11:18:00 +0200 Subject: postgis In-Reply-To: <20050721083448.GA16805@trava> Message-ID: Jachym Try changing FROM to lowercase from. Uli -- geOps GeoInformatics D-79100 Freiburg Jachym Cepicky wrote: > Hallo, > I have following problem with mapserver: I can not load vector file > stored in postgis. > > I use Debain (testing), with mapserver from official repository and > postgis from the Debian-Gis project > (http://pkg-grass.alioth.debian.org/cgi-bin/wiki.pl). > > I stored vector shape file with help of shp2pgsql apparently without > problems. I can acces the file e.g. usin Qgis and I can load it to > GRASS GIS. > > However mapserver gives me quite long report, about that he is not able > to display the map. > > [...] > msDrawMap(): Image handling error. Failed to draw layer named 'obrys'. > prep_DB(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT kod::text,popis::text,asbinary(force_collection(force_2d()),'NDR'),OID::text from WHERE && setSRID('BOX3D(-599514.328920447 -1159983.83918495,-581875.449556553 -1142344.95982105)'::BOX3D, find_srid('','','') )' > > Postgresql reports the error as 'ERROR: syntax error at or near "WHERE" at character 126 ' > [...] > (I posted the whole file to http://les-ejk.cz/tmp/mapserver.html) > > The mapfile part for the layer follows: > LAYER > NAME obrys > TYPE polygon > METADATA > "title" "LH SLP Krtiny" > END > CONNECTIONTYPE POSTGIS > CONNECTION "host=10.0.0.24 dbname=krtiny user=jachym" > DATA "the_geom FROM obrys" > CLASSITEM kod > LABELITEM popis > MINSCALE 50000 > CLASS > EXPRESSION '1' > NAME 'PUPFL "SLP Krtiny"' > COLOR 49 135 32 > END > CLASS > EXPRESSION '2' > NAME 'Sidlo' > COLOR 190 190 190 > LABEL > TYPE truetype > FONT arialce > SIZE 7 > COLOR 0 0 0 > BACKGROUNDCOLOR 255 255 255 > END > END > END > > In /etc/postgresql/pg_hba.conf is: > host krtiny jachym 10.0.0.24 255.255.255.0 trust > > > What to do? > > Thank you > > Jachym From stephane.riff at CERENE.FR Thu Jul 21 02:23:00 2005 From: stephane.riff at CERENE.FR (=?ISO-8859-2?Q?St=E9phane_RIFF?=) Date: Thu, 21 Jul 2005 11:23:00 +0200 Subject: postgis In-Reply-To: <20050721083448.GA16805@trava> Message-ID: Look in you geometry_columns table, Does your table is in because it seems that mapserver cannot find your geom column and the srid.... Jachym Cepicky wrote: >Hallo, >I have following problem with mapserver: I can not load vector file >stored in postgis. > >I use Debain (testing), with mapserver from official repository and >postgis from the Debian-Gis project >(http://pkg-grass.alioth.debian.org/cgi-bin/wiki.pl). > >I stored vector shape file with help of shp2pgsql apparently without >problems. I can acces the file e.g. usin Qgis and I can load it to >GRASS GIS. > >However mapserver gives me quite long report, about that he is not able >to display the map. > >[...] >msDrawMap(): Image handling error. Failed to draw layer named 'obrys'. >prep_DB(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT kod::text,popis::text,asbinary(force_collection(force_2d()),'NDR'),OID::text from WHERE && setSRID('BOX3D(-599514.328920447 -1159983.83918495,-581875.449556553 -1142344.95982105)'::BOX3D, find_srid('','','') )' > >Postgresql reports the error as 'ERROR: syntax error at or near "WHERE" at character 126 ' >[...] >(I posted the whole file to http://les-ejk.cz/tmp/mapserver.html) > >The mapfile part for the layer follows: >LAYER > NAME obrys > TYPE polygon > METADATA > "title" "LH SLP Krtiny" > END > CONNECTIONTYPE POSTGIS > CONNECTION "host=10.0.0.24 dbname=krtiny user=jachym" > DATA "the_geom FROM obrys" > CLASSITEM kod > LABELITEM popis > MINSCALE 50000 > CLASS > EXPRESSION '1' > NAME 'PUPFL "SLP Krtiny"' > COLOR 49 135 32 > END > CLASS > EXPRESSION '2' > NAME 'Sidlo' > COLOR 190 190 190 > LABEL > TYPE truetype > FONT arialce > SIZE 7 > COLOR 0 0 0 > BACKGROUNDCOLOR 255 255 255 > END > END >END > >In /etc/postgresql/pg_hba.conf is: >host krtiny jachym 10.0.0.24 255.255.255.0 trust > > >What to do? > >Thank you > >Jachym > > From umberto.nicoletti at GMAIL.COM Thu Jul 21 02:34:10 2005 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Thu, 21 Jul 2005 11:34:10 +0200 Subject: Suggestions needed to get started In-Reply-To: Message-ID: Ciao, On 7/21/05, Piero Cavalieri wrote: > M. Fioretti wrote: > > >Greetings, > > > >I have to build a new website, with a map section. Users must be able > >to say "show me path number X, and all the interest points distant > >less than 20 KMs from its starting point", where: > > > >"show me" means generate on demand a png image of the map with all the > > requested data. The image must be printable at the right > > resolution, that is when on paper must be in the exact scale > > (Hmmm, maybe pdf is better for this: which other tools may > > work with Image_GIS to do pdf?) > > Exact scale could be problematic; Probably you want the user select the > area to be printed. In this case, scale will not be preserved. Good thing > is that you can place images as percentage of paper's width and height. So > you can print in A4, A3, A0, custom dimensions ecc with a unique code block > (but scale will not be presereved...). > For pdf there are various libraries. Pdflib is not free (pdfliblite is, but > under certain circusances), but in php manual there are links to other free > pdf libraries (if you use php...). > I currently print to scale using a pdf output format. That is the most reliable way to make sure that the image will be printed correctly. It has a few drawbacks, though: it does not handle transparency (so raster layers will almost alway hidden below vector layers), it is not very customizable, it does not support scalebars as they use fixed fonts. Regards, Umberto > > > >the map comes from a complete GIS database, scale 1:25000, the same > >used for official topographic maps > > > > Tiff format is suppose. Gdal do the work. > > >"path number X" is available as a series of GPS waypoints or is part > >of a road already included in the GIS database > > > >those waypoints and all interest points will be stored in a MySql or > >PostgreSql database > > Postgre as a lot of geographic functions. Maybe Posgre will be useful on > "show me path number X, and all the interest points distant less than 20 > KMs from its starting point", but to simply zoom on an interest point you > will no need that. > > > > >My question is that obviously, I'd prefer to do the whole website with > >existing FOSS applications. Given the specs above, which other > >programs/PHP modules/tools do you recommend? > > Probably Mapserver + PHP + Postgre will be ok. > > I just need to be pointed > >in the right direction, so I can download everything, study it and > >start coding everything together by myself. > > > > If you use software above you could have a look at GMAP application and > DCMMS (which use also Postgre). > > > >Any feedback is welcome. > > > >Thank you in advance, > > Marco > > > > P. > From jachym.cepicky at CENTRUM.CZ Thu Jul 21 02:36:24 2005 From: jachym.cepicky at CENTRUM.CZ (Jachym Cepicky) Date: Thu, 21 Jul 2005 11:36:24 +0200 Subject: postgis In-Reply-To: <42DF6848.9010707@gmx.ch> Message-ID: hallo, that was it. Hmm.. I read the documentation (MapServer Reference Guide for Vector Data Access), where this but was described.. but it did not help.. Now it works. Any way, thank you for making me try it again. jachym On Thu, Jul 21, 2005 at 11:18:00AM +0200, uli mueller wrote: > Jachym > > Try changing FROM to lowercase from. > > Uli > > -- > geOps GeoInformatics > D-79100 Freiburg > > Jachym Cepicky wrote: > >Hallo, > >I have following problem with mapserver: I can not load vector file > >stored in postgis. > > > >I use Debain (testing), with mapserver from official repository and > >postgis from the Debian-Gis project > >(http://pkg-grass.alioth.debian.org/cgi-bin/wiki.pl). > > > >I stored vector shape file with help of shp2pgsql apparently without > >problems. I can acces the file e.g. usin Qgis and I can load it to > >GRASS GIS. > > > >However mapserver gives me quite long report, about that he is not able > >to display the map. > > > >[...] > >msDrawMap(): Image handling error. Failed to draw layer named 'obrys'. > >prep_DB(): Query error. Error executing POSTGIS DECLARE (the actual query) > >statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT > >kod::text,popis::text,asbinary(force_collection(force_2d()),'NDR'),OID::text from WHERE && setSRID('BOX3D(-599514.328920447 -1159983.83918495,-581875.449556553 -1142344.95982105)'::BOX3D, find_srid('','','') )' > > > >Postgresql reports the error as 'ERROR: syntax error at or near "WHERE" at > >character 126 ' > >[...] > >(I posted the whole file to http://les-ejk.cz/tmp/mapserver.html) > > > >The mapfile part for the layer follows: > >LAYER > > NAME obrys > > TYPE polygon > > METADATA > > "title" "LH SLP Krtiny" > > END > > CONNECTIONTYPE POSTGIS > > CONNECTION "host=10.0.0.24 dbname=krtiny user=jachym" > > DATA "the_geom FROM obrys" > > CLASSITEM kod > > LABELITEM popis > > MINSCALE 50000 > > CLASS > > EXPRESSION '1' > > NAME 'PUPFL "SLP Krtiny"' > > COLOR 49 135 32 > > END > > CLASS > > EXPRESSION '2' > > NAME 'Sidlo' > > COLOR 190 190 190 > > LABEL > > TYPE truetype > > FONT arialce > > SIZE 7 > > COLOR 0 0 0 > > BACKGROUNDCOLOR 255 255 255 > > END > > END > >END > > > >In /etc/postgresql/pg_hba.conf is: > >host krtiny jachym 10.0.0.24 255.255.255.0 trust > > > > > >What to do? > > > >Thank you > > > >Jachym > > -- Jachym Cepicky e-mail: jachym.cepicky at centrum.cz URL: http://les-ejk.cz GPG: http://les-ejk.cz/gnupg_public_key/ From jachym.cepicky at CENTRUM.CZ Thu Jul 21 02:43:53 2005 From: jachym.cepicky at CENTRUM.CZ (Jachym Cepicky) Date: Thu, 21 Jul 2005 11:43:53 +0200 Subject: perl mapscript and reference map Message-ID: Hallo, I would like to make reference map with help of perl mapscript. If I understand it well, I must do following steps: 1) Initialize the mapfile (what I need to do anyhow) my $mapObj = new mapscript::mapObj("/path/to/mapfile.map") or die("$mapscript::ms_error->{message}"); 2) Create the refMapObject: my $refImgObj = $mapObj->drawReferenceMap(); 3) Save it to disk and display it: $refImgObj->save("/path/to/web/images/refmap.png"); The reference map is there, however the current region borders are not showen. The mapfile part follows: REFERENCE IMAGE '/var/www/grassserv/imgs/krtiny_ref.gif' EXTENT -600069.70837995 -1160066.78650493 -581069.87592698 -1142015.20262403 OUTLINECOLOR 000 255 000 COLOR -1 -1 -1 SIZE 120 120 STATUS ON END Do I need to draw the region extend to to $refImgObj "manualy"? Thank you Jachym -- Jachym Cepicky e-mail: jachym.cepicky at centrum.cz URL: http://les-ejk.cz GPG: http://les-ejk.cz/gnupg_public_key/ From BEN at SYNCERA-ITSOLUTIONS.NL Thu Jul 21 04:46:48 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Thu, 21 Jul 2005 13:46:48 +0200 Subject: Virtual Spatial Data through OCI Message-ID: Hi list, probably a question for Frank. I am trying to use an Oracle X Y column table through virtual spatial data. I compiled GDAL against the Oracle client. I can access it through ODBC without any problems. When doing an ogrinfo on the ovf file I created, I get: D:\ms4w\apps\stragisweb\htdocs\sites\westland\data>ogrinfo adr4all.ovf ERROR 4: Update access not supported for VRT datasources. ERROR 1: Failed to find layer 'ADR5_ADRESCYCLUS' on datasource 'OCI:CAB/CAB at 10.1 5.7.7:1521/ONTW'. FAILURE: Unable to open datasource `adr4all.ovf' with the following drivers. -> ESRI Shapefile -> UK .NTF -> SDTS -> TIGER -> S57 -> MapInfo File -> DGN -> VRT -> AVCBin -> REC -> Memory -> CSV -> GML -> ODBC -> OCI My ovf file looks like: OCI:CAB/CAB at 10.15.7.7:1521/ONTW ADR5_ADRESCYCLUS wkbPoint epsg:28992 When I do a direct ogrinfo sql select command it works fine: D:\ms4w\apps\stragisweb\htdocs\sites\westland\data>ogrinfo -ro OCI:CAB/CAB at 10.15 ..7.7:1521/ONTW -sql "SELECT * FROM ADR5_ADRESCYCLUS WHERE ADRESNR=41812" INFO: Open of `OCI:CAB/CAB at 10.15.7.7:1521/ONTW' using driver `OCI' successful. Layer name: SELECT * FROM ADR5_ADRESCYCLUS WHERE ADRESNR=41812 Geometry: Unknown (any) Feature Count: 1 Layer SRS WKT: (unknown) ADRESNR: Integer (10.0) VOLGNR: Integer (3.0) LANDKODE: String (4.0) GEMEENTEKODE: String (4.0) WOONPLKODE: String (4.0) WOONPL_BOCO: String (24.0) WOONPL_BOCO_U: String (24.0) WOONPL_BOCO_D: String (30.0) STRAATKODE: String (5.0) STRAAT: String (40.0) STRAAT_U: String (40.0) STRAAT_D: String (50.0) AAND: String (2.0) HUISNR: Integer (5.0) HUISLT: String (1.0) TOEV: String (4.0) POSTK_A: String (2.0) POSTK_N: Integer (4.0) WIJKKODE: String (3.0) BUURTKODE: String (6.0) SRT_ADRESKODE: String (3.0) STATUSKODE: String (3.0) X_KOORD: Real (9.3) Y_KOORD: Real (9.3) Z_KOORD: Real (9.3) LOKATIE: String (40.0) LOKATIE_D: String (50.0) VRIJ_VELD1: String (10.0) VRIJ_VELD2: String (10.0) OGRFeature(SELECT * FROM ADR5_ADRESCYCLUS WHERE ADRESNR=41812):0 ADRESNR (Integer) = 41812 VOLGNR (Integer) = 1 LANDKODE (String) = 6030 GEMEENTEKODE (String) = 1783 WOONPLKODE (String) = 10 WOONPL_BOCO (String) = De Lier WOONPL_BOCO_U (String) = DE LIER WOONPL_BOCO_D (String) = De Lier STRAATKODE (String) = 13040 STRAAT (String) = Witte de Withstraat STRAAT_U (String) = WITTE DE WITHSTRAAT STRAAT_D (String) = Witte de Withstraat AAND (String) = (null) HUISNR (Integer) = 15 HUISLT (String) = TOEV (String) = POSTK_A (String) = GE POSTK_N (Integer) = 2678 WIJKKODE (String) = (null) BUURTKODE (String) = (null) SRT_ADRESKODE (String) = (null) STATUSKODE (String) = (null) X_KOORD (Real) = 77334.060 Y_KOORD (Real) = 443550.020 Z_KOORD (Real) = (null) LOKATIE (String) = (null) LOKATIE_D (String) = (null) VRIJ_VELD1 (String) = N VRIJ_VELD2 (String) = 5,27163 I am confused. Any ideas? Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl From oubinny at HOTMAIL.COM Thu Jul 21 04:53:42 2005 From: oubinny at HOTMAIL.COM (Mehdi Kiman) Date: Thu, 21 Jul 2005 11:53:42 +0000 Subject: FW: Re: [Chameleon] save polygons Message-ID: Hi, what the ExtractWFS widget does is make an extraction from a layer already in the map. Assuming you have got eg a provinces layer of your country, you can draw an ROI in the map, eg a rectangle, and then the provinces inside that rectangle can be saved into GML or a shapefile. So this is only extracting existing features, not putting newly digitized features into a file or database, which is what I assume you want to do. Best regards, Bart Btw please reply to the whole list. Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl > > >>> "Mehdi Kiman" 07/21/05 01:45pm >>> >Hello Bart, >Can i use ExtractWFSData widget. Is it possible ton export the XML file >(GML) directly to MapInfo. Prehaps by using WFS/WMS webservices. > >From chemeleon Help : >The Extract WFS Data widget allows the user to extract data based on the >current selected layer and ROI. Currently the following formats are >supported: GML Shape. > >Thanks a lot >Mehdi > > >From: "Bart van den Eijnden" > >To: , > >Subject: Re: [Chameleon] save polygons > >Date: Thu, 21 Jul 2005 13:12:53 +0200 > > > >Chameleon is not an edit application, so you will have to add this to > >Chameleon yourself or hire someone to do it. > > > >One option would be getting GML out of the ROI widget (I don't think it >can > >do this at the moment), and posting it to a Geoserver WFS which connects >to > >Oracle. Optionally you could also probably also use the php_ogr module to > >transform the GML into Mapinfo format or Oracle Spatial. > > > >Quite a difficult task though I think, maybe even something like a week's > >work. > > > >Best regards, > >Bart > > > >Bart van den Eijnden > >Syncera IT Solutions > >Postbus 270 > >2600 AG DELFT > > > >tel.nr.: 015-7512436 > >email: BEN at Syncera-ITSolutions.nl > > > > >>> "Mehdi Kiman" 07/21/05 12:56pm >>> > >Hello, > > > >I use chameleon for making my application. > >I wish to save my drawing operations in a mapInfo file (.TAB) or in >Oracle > >Database. > >For exemple, i draw a polygon in my map with chameleon ROI widget and >save > >it. > > > >Can you give me some help please ? > > > >Thanks > >Mehdi > > > > > >_______________________________________________ > >Chameleon mailing list > >Chameleon at lists.maptools.org > >http://lists.maptools.org/mailman/listinfo/chameleon > > > > > From oubinny at HOTMAIL.COM Thu Jul 21 05:04:36 2005 From: oubinny at HOTMAIL.COM (Mehdi Kiman) Date: Thu, 21 Jul 2005 12:04:36 +0000 Subject: [Chameleon] save polygons In-Reply-To: Message-ID: So, it's really impossible to save ROI objects. my goal is only to save current user work. I must to resolve this problem with Oracle database or WFS/WMS or MapInfo files. Any solutions ? thanks again Mehdi >From: "Bart van den Eijnden" >To: >CC: >Subject: Re: [Chameleon] save polygons >Date: Thu, 21 Jul 2005 13:50:34 +0200 > >Hi, > >what the ExtractWFS widget does is make an extraction from a layer already >in the map. Assuming you have got eg a provinces layer of your country, you >can draw an ROI in the map, eg a rectangle, and then the provinces inside >that rectangle can be saved into GML or a shapefile. > >So this is only extracting existing features, not putting newly digitized >features into a file or database, which is what I assume you want to do. > >Best regards, >Bart > >Btw please reply to the whole list. > >Bart van den Eijnden >Syncera IT Solutions >Postbus 270 >2600 AG DELFT > >tel.nr.: 015-7512436 >email: BEN at Syncera-ITSolutions.nl > > >>> "Mehdi Kiman" 07/21/05 01:45pm >>> >Hello Bart, >Can i use ExtractWFSData widget. Is it possible ton export the XML file >(GML) directly to MapInfo. Prehaps by using WFS/WMS webservices. > >From chemeleon Help : >The Extract WFS Data widget allows the user to extract data based on the >current selected layer and ROI. Currently the following formats are >supported: GML Shape. > >Thanks a lot >Mehdi > > >From: "Bart van den Eijnden" > >To: , > >Subject: Re: [Chameleon] save polygons > >Date: Thu, 21 Jul 2005 13:12:53 +0200 > > > >Chameleon is not an edit application, so you will have to add this to > >Chameleon yourself or hire someone to do it. > > > >One option would be getting GML out of the ROI widget (I don't think it >can > >do this at the moment), and posting it to a Geoserver WFS which connects >to > >Oracle. Optionally you could also probably also use the php_ogr module to > >transform the GML into Mapinfo format or Oracle Spatial. > > > >Quite a difficult task though I think, maybe even something like a week's > >work. > > > >Best regards, > >Bart > > > >Bart van den Eijnden > >Syncera IT Solutions > >Postbus 270 > >2600 AG DELFT > > > >tel.nr.: 015-7512436 > >email: BEN at Syncera-ITSolutions.nl > > > > >>> "Mehdi Kiman" 07/21/05 12:56pm >>> > >Hello, > > > >I use chameleon for making my application. > >I wish to save my drawing operations in a mapInfo file (.TAB) or in >Oracle > >Database. > >For exemple, i draw a polygon in my map with chameleon ROI widget and >save > >it. > > > >Can you give me some help please ? > > > >Thanks > >Mehdi > > > > > >_______________________________________________ > >Chameleon mailing list > >Chameleon at lists.maptools.org > >http://lists.maptools.org/mailman/listinfo/chameleon > > > > > From BEN at SYNCERA-ITSOLUTIONS.NL Thu Jul 21 05:07:52 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Thu, 21 Jul 2005 14:07:52 +0200 Subject: [Chameleon] save polygons Message-ID: Mehdi, did you notice you changed to the Mapserver-users list instead of the Chameleon list? It is not impossible, it requires some programming. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Mehdi Kiman 07/21/05 02:04pm >>> So, it's really impossible to save ROI objects. my goal is only to save current user work. I must to resolve this problem with Oracle database or WFS/WMS or MapInfo files. Any solutions ? thanks again Mehdi >From: "Bart van den Eijnden" >To: >CC: >Subject: Re: [Chameleon] save polygons >Date: Thu, 21 Jul 2005 13:50:34 +0200 > >Hi, > >what the ExtractWFS widget does is make an extraction from a layer already >in the map. Assuming you have got eg a provinces layer of your country, you >can draw an ROI in the map, eg a rectangle, and then the provinces inside >that rectangle can be saved into GML or a shapefile. > >So this is only extracting existing features, not putting newly digitized >features into a file or database, which is what I assume you want to do. > >Best regards, >Bart > >Btw please reply to the whole list. > >Bart van den Eijnden >Syncera IT Solutions >Postbus 270 >2600 AG DELFT > >tel.nr.: 015-7512436 >email: BEN at Syncera-ITSolutions.nl > > >>> "Mehdi Kiman" 07/21/05 01:45pm >>> >Hello Bart, >Can i use ExtractWFSData widget. Is it possible ton export the XML file >(GML) directly to MapInfo. Prehaps by using WFS/WMS webservices. > >From chemeleon Help : >The Extract WFS Data widget allows the user to extract data based on the >current selected layer and ROI. Currently the following formats are >supported: GML Shape. > >Thanks a lot >Mehdi > > >From: "Bart van den Eijnden" > >To: , > >Subject: Re: [Chameleon] save polygons > >Date: Thu, 21 Jul 2005 13:12:53 +0200 > > > >Chameleon is not an edit application, so you will have to add this to > >Chameleon yourself or hire someone to do it. > > > >One option would be getting GML out of the ROI widget (I don't think it >can > >do this at the moment), and posting it to a Geoserver WFS which connects >to > >Oracle. Optionally you could also probably also use the php_ogr module to > >transform the GML into Mapinfo format or Oracle Spatial. > > > >Quite a difficult task though I think, maybe even something like a week's > >work. > > > >Best regards, > >Bart > > > >Bart van den Eijnden > >Syncera IT Solutions > >Postbus 270 > >2600 AG DELFT > > > >tel.nr.: 015-7512436 > >email: BEN at Syncera-ITSolutions.nl > > > > >>> "Mehdi Kiman" 07/21/05 12:56pm >>> > >Hello, > > > >I use chameleon for making my application. > >I wish to save my drawing operations in a mapInfo file (.TAB) or in >Oracle > >Database. > >For exemple, i draw a polygon in my map with chameleon ROI widget and >save > >it. > > > >Can you give me some help please ? > > > >Thanks > >Mehdi > > > > > >_______________________________________________ > >Chameleon mailing list > >Chameleon at lists.maptools.org > >http://lists.maptools.org/mailman/listinfo/chameleon > > > > > From oubinny at HOTMAIL.COM Thu Jul 21 05:13:48 2005 From: oubinny at HOTMAIL.COM (Mehdi Kiman) Date: Thu, 21 Jul 2005 12:13:48 +0000 Subject: save polygons In-Reply-To: Message-ID: Sorry it's a mistake. It requires some programming, but i don't know how to do this ? I still searach a solution... Cordialement >From: "Bart van den Eijnden" >To: , >CC: >Subject: Re: [UMN_MAPSERVER-USERS] [Chameleon] save polygons >Date: Thu, 21 Jul 2005 14:07:52 +0200 > >Mehdi, did you notice you changed to the Mapserver-users list instead of >the Chameleon list? > >It is not impossible, it requires some programming. > >Best regards, >Bart > >Bart van den Eijnden >Syncera IT Solutions >Postbus 270 >2600 AG DELFT > >tel.nr.: 015-7512436 >email: BEN at Syncera-ITSolutions.nl > > >>> Mehdi Kiman 07/21/05 02:04pm >>> >So, it's really impossible to save ROI objects. >my goal is only to save current user work. I must to resolve this problem >with Oracle database or WFS/WMS or MapInfo files. > >Any solutions ? > >thanks again >Mehdi > > > > >From: "Bart van den Eijnden" > >To: > >CC: > >Subject: Re: [Chameleon] save polygons > >Date: Thu, 21 Jul 2005 13:50:34 +0200 > > > >Hi, > > > >what the ExtractWFS widget does is make an extraction from a layer >already > >in the map. Assuming you have got eg a provinces layer of your country, >you > >can draw an ROI in the map, eg a rectangle, and then the provinces inside > >that rectangle can be saved into GML or a shapefile. > > > >So this is only extracting existing features, not putting newly digitized > >features into a file or database, which is what I assume you want to do. > > > >Best regards, > >Bart > > > >Btw please reply to the whole list. > > > >Bart van den Eijnden > >Syncera IT Solutions > >Postbus 270 > >2600 AG DELFT > > > >tel.nr.: 015-7512436 > >email: BEN at Syncera-ITSolutions.nl > > > > >>> "Mehdi Kiman" 07/21/05 01:45pm >>> > >Hello Bart, > >Can i use ExtractWFSData widget. Is it possible ton export the XML file > >(GML) directly to MapInfo. Prehaps by using WFS/WMS webservices. > > > >From chemeleon Help : > >The Extract WFS Data widget allows the user to extract data based on the > >current selected layer and ROI. Currently the following formats are > >supported: GML Shape. > > > >Thanks a lot > >Mehdi > > > > >From: "Bart van den Eijnden" > > >To: , > > >Subject: Re: [Chameleon] save polygons > > >Date: Thu, 21 Jul 2005 13:12:53 +0200 > > > > > >Chameleon is not an edit application, so you will have to add this to > > >Chameleon yourself or hire someone to do it. > > > > > >One option would be getting GML out of the ROI widget (I don't think it > >can > > >do this at the moment), and posting it to a Geoserver WFS which >connects > >to > > >Oracle. Optionally you could also probably also use the php_ogr module >to > > >transform the GML into Mapinfo format or Oracle Spatial. > > > > > >Quite a difficult task though I think, maybe even something like a >week's > > >work. > > > > > >Best regards, > > >Bart > > > > > >Bart van den Eijnden > > >Syncera IT Solutions > > >Postbus 270 > > >2600 AG DELFT > > > > > >tel.nr.: 015-7512436 > > >email: BEN at Syncera-ITSolutions.nl > > > > > > >>> "Mehdi Kiman" 07/21/05 12:56pm >>> > > >Hello, > > > > > >I use chameleon for making my application. > > >I wish to save my drawing operations in a mapInfo file (.TAB) or in > >Oracle > > >Database. > > >For exemple, i draw a polygon in my map with chameleon ROI widget and > >save > > >it. > > > > > >Can you give me some help please ? > > > > > >Thanks > > >Mehdi > > > > > > > > >_______________________________________________ > > >Chameleon mailing list > > >Chameleon at lists.maptools.org > > >http://lists.maptools.org/mailman/listinfo/chameleon > > > > > > > > > > From lfilak at MEDINACO.ORG Thu Jul 21 05:16:09 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Thu, 21 Jul 2005 08:16:09 -0400 Subject: perl mapscript and reference map Message-ID: The following message was sent by Jachym Cepicky on Thu, 21 Jul 2005 11:43:53 +0200. > Hallo, > I would like to make reference map with help of perl mapscript. > > If I understand it well, I must do following steps: > > 1) Initialize the mapfile (what I need to do anyhow) > my $mapObj = new mapscript::mapObj("/path/to/mapfile.map") or die("$mapscript::ms_error->{message}"); > > 2) Create the refMapObject: > my $refImgObj = $mapObj->drawReferenceMap(); > > 3) Save it to disk and display it: > $refImgObj->save("/path/to/web/images/refmap.png"); > > The reference map is there, however the current region borders are not > showen. > > The mapfile part follows: > > REFERENCE > IMAGE '/var/www/grassserv/imgs/krtiny_ref.gif' > EXTENT -600069.70837995 -1160066.78650493 -581069.87592698 -1142015.20262403 > OUTLINECOLOR 000 255 000 > COLOR -1 -1 -1 > SIZE 120 120 > STATUS ON > END > > Do I need to draw the region extend to to $refImgObj "manualy"? Jachym, You must also verify that the extents of the 'map' are set properly. Lowell From fredlucca at GMAIL.COM Thu Jul 21 05:20:06 2005 From: fredlucca at GMAIL.COM (Frederico Lucca) Date: Thu, 21 Jul 2005 09:20:06 -0300 Subject: Problems with gdal Message-ID: Hello list! I'm a new user from MapServer. After I compile it, I start to develop with java in linux. Well, I have some servlets creating maps and getting information from layers. My problem is with tomcat and gdal. I can create maps very quickly but when I put a program in looping to test the performance, tomcat stops and the last message in tomcat's log is: C [libgdal.so.1+0x195d04] _ZN7TABFile13GetFeatureRefEi+0x1b4 Maybe is a problem with gdal??? Well, any information or help... Thanks in advance... Fred Lucca -- "Everything under the sun is in tune But the sun is eclipsed by the moon" From jachym.cepicky at CENTRUM.CZ Thu Jul 21 05:35:39 2005 From: jachym.cepicky at CENTRUM.CZ (Jachym Cepicky) Date: Thu, 21 Jul 2005 14:35:39 +0200 Subject: perl mapscript and reference map In-Reply-To: <20050721121552.139CF1A6BC8@mail.medinaco.org> Message-ID: hallo, On Thu, Jul 21, 2005 at 08:16:09AM -0400, Lowell Filak wrote: > The following message was sent by Jachym Cepicky > on Thu, 21 Jul 2005 11:43:53 +0200. > > > Hallo, > > [...] > > Jachym, > > You must also verify that the extents of the 'map' are set properly. > > Lowell Yes, $mapObj->{extent}->{minx} = $minx; $mapObj->{extent}->{miny} = $miny; $mapObj->{extent}->{maxx} = $maxx; $mapObj->{extent}->{maxy} = $maxy; was one line AFTER reference map. Thank you VERY much and have a nice day. Jachym -- Jachym Cepicky e-mail: jachym.cepicky at centrum.cz URL: http://les-ejk.cz GPG: http://les-ejk.cz/gnupg_public_key/ From flavio at TYDAC.CH Thu Jul 21 05:52:46 2005 From: flavio at TYDAC.CH (Flavio Hendry) Date: Thu, 21 Jul 2005 14:52:46 +0200 Subject: New google maps In-Reply-To: <42DE5757.30703@swoodbridge.com> Message-ID: we always said that the moon is a pice of swiss cheese. now it is proved! thank you google ... Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ ? ? ?Mit freundlichen Gruessen / Kind Regards ############? ? ? ? ? ? ?mailto:flavio at tydac.ch ############ ? ? ? ? TYDAC AG - http://www.tydac.ch #### ? ?#### ? ? ? ?Geographic Information Solutions #### ? ?#### ? ? ? ? Luternauweg 12 -- CH-3006 Bern ############ ? Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- -----Original Message----- From: Stephen Woodbridge To: MAPSERVER-USERS at LISTS.UMN.EDU Date: Wed, 20 Jul 2005 09:53:27 -0400 Subject: [UMN_MAPSERVER-USERS] New google maps > http://moon.google.com From piero.cavalieri at HEIDI.IT Thu Jul 21 06:05:03 2005 From: piero.cavalieri at HEIDI.IT (Piero Cavalieri) Date: Thu, 21 Jul 2005 08:05:03 -0500 Subject: Suggestions needed to get started Message-ID: Umberto Nicoletti wrote: >Ciao, > >On 7/21/05, Piero Cavalieri wrote: > >>M. Fioretti wrote: >> >>>Greetings, >>> >>>I have to build a new website, with a map section. Users must be able >>>to say "show me path number X, and all the interest points distant >>>less than 20 KMs from its starting point", where: >>> >>>"show me" means generate on demand a png image of the map with all the >>> requested data. The image must be printable at the right >>> resolution, that is when on paper must be in the exact scale >>> (Hmmm, maybe pdf is better for this: which other tools may >>> work with Image_GIS to do pdf?) >> >>Exact scale could be problematic; Probably you want the user select the >>area to be printed. In this case, scale will not be preserved. Good thing >>is that you can place images as percentage of paper's width and height. So >>you can print in A4, A3, A0, custom dimensions ecc with a unique code block >>(but scale will not be presereved...). >>For pdf there are various libraries. Pdflib is not free (pdfliblite is, but >>under certain circusances), but in php manual there are links to other free >>pdf libraries (if you use php...). >> > >I currently print to scale using a pdf output format. That is the most >reliable way to make sure that the image will be printed correctly. Priniting scale doesn't depends on paper size (if extents remain the same)? >It has a few drawbacks, though: it does not handle transparency (so >raster layers will almost alway hidden below vector layers), it is not >very customizable, it does not support scalebars as they use fixed >fonts. > I import into pdf images from MapServer (main image, scalebar, reference), where MapServer output is jpeg or png (transparency ok). With pdf libs you can place objects where you want (not all libs I tested supports transparency, however pdflib do it). If you look at chapter 5.3 on pdflib manual, you can see it's quite easy to embed images. Piero >Regards, >Umberto From jdport at VERITIME.COM Thu Jul 21 06:09:39 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Thu, 21 Jul 2005 09:09:39 -0400 Subject: Need some help with mapserver 4.6 Message-ID: I'm having a few problems with my mapserver 4.6 upgrade. In my application, I add some geocoded points onto the map. The points are marked simply with a colored circle on top of a white circle... so for example you get a blue dot with a white outline. In 4.4.1, this works fine. In v4.6, it shows the top circle offset from the bottome circle, so that the edge of the top circle on one side of the circle is tangent with the edge of the bottom circle. I can't really imagine why this happens. Here is my mapserv -v for both versions: MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG MapServer version 4.6.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=FREETYPE INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE This brings me to my next problem. I originally installed mapserver in debian using a debian package. So far as I am aware, v.4.6 isn't available to apt-get yet so I tried to compile it myself. My original included support for gdal and ogr, which I think I should have even if i'm not sure whether or not I need it... I tried adding those just in case that was the reason for my misaligned circle markers. I did an apt-get libgdal1 and libgdal1-dev and added the --with-gdal --with-ogr options to my configure and I get a bunch of errors that look like this: : undefined reference to `OGRSpatialReference::IsLocal(void) const' ./libmap.a(mapogr.o)(.text+0x7f): In function `msOGRSpatialRef2ProjectionObj(OGRSpatialReference *, projectionObj *, int)': : undefined reference to `OGRSpatialReference::exportToProj4(char **) const' ./libmap.a(mapogr.o)(.text+0x132): In function `msOGCWKT2ProjectionObj': : undefined reference to `OGRSpatialReference::OGRSpatialReference(char const *)' . . . Can anybody help me out with these two issues? I would just stick with 4.4.1 but I need to be able to do a query by point on points that have been added to my map in mapscript and as I understand it, this isn't possible in 4.4.1. Thanks, Jeff From fwarmerdam at GMAIL.COM Thu Jul 21 06:48:12 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 21 Jul 2005 09:48:12 -0400 Subject: Problems with gdal In-Reply-To: Message-ID: On 7/21/05, Frederico Lucca wrote: > Hello list! > > I'm a new user from MapServer. > After I compile it, I start to develop with java in linux. > Well, I have some servlets creating maps and getting information from layers. > My problem is with tomcat and gdal. > I can create maps very quickly but when I put a program in looping to > test the performance, tomcat stops and the last message in tomcat's > log is: > > C [libgdal.so.1+0x195d04] _ZN7TABFile13GetFeatureRefEi+0x1b4 > > Maybe is a problem with gdal??? > > Well, any information or help... Fred, GDAL and OGR are not really threadsafe, so you need to be somewhat careful how you use them in multithreaded environments like Java. There is a mutex around most use of GDAL for raster support in MapServer, but I believe that has not been done for OGR. If you wish, I could try and institute a mutex in the MapServer OGR module as well, if you would be willing to test it out deployed in your Java work environment. Of course, that might not be the actual problems. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From Silke.Reimer at INTEVATION.DE Thu Jul 21 06:39:56 2005 From: Silke.Reimer at INTEVATION.DE (Silke Reimer) Date: Thu, 21 Jul 2005 15:39:56 +0200 Subject: Need some help with mapserver 4.6 In-Reply-To: <006b01c58df5$85e50590$5ff2fbd0@solo> Message-ID: On Thu, Jul 21, 2005 at 09:09:39AM -0400, Jeff Portwine wrote: > I'm having a few problems with my mapserver 4.6 upgrade. > > In my application, I add some geocoded points onto the map. The points are > marked simply with a colored circle on top of a white circle... so for > example you get a blue dot with a white outline. In 4.4.1, this works > fine. In v4.6, it shows the top circle offset from the bottome circle, so > that the edge of the top circle on one side of the circle is tangent with > the edge of the bottom circle. I can't really imagine why this happens. > > Here is my mapserv -v for both versions: > MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=EPPL7 > INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG > > MapServer version 4.6.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SVG SUPPORTS=FREETYPE INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE > > > This brings me to my next problem. I originally installed mapserver in > debian using a debian package. So far as I am aware, v.4.6 isn't available > to apt-get yet so I tried to compile it myself. My original included > support for gdal and ogr, which I think I should have even if i'm not sure > whether or not I need it... I tried adding those just in case that was the > reason for my misaligned circle markers. I did an apt-get libgdal1 and > libgdal1-dev and added the --with-gdal --with-ogr options to my configure > and I get a bunch of errors that look like this: > > : undefined reference to `OGRSpatialReference::IsLocal(void) const' > ./libmap.a(mapogr.o)(.text+0x7f): In function > `msOGRSpatialRef2ProjectionObj(OGRSpatialReference *, projectionObj *, > int)': > : undefined reference to `OGRSpatialReference::exportToProj4(char **) const' > ./libmap.a(mapogr.o)(.text+0x132): In function `msOGCWKT2ProjectionObj': > : undefined reference to `OGRSpatialReference::OGRSpatialReference(char > const *)' Did you install the dev-package of gdal resp ogr? On debian sarge this package is called libgdal-dev or libgdal1-dev. Many greetings, Silke -- Intevation GmbH Georgstrasse 4 49074 Osnabr?ck, Germany http://intevation.de http://intevation.de/~silke FreeGIS.org http://freegis.org/ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From fwarmerdam at GMAIL.COM Thu Jul 21 06:54:37 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 21 Jul 2005 09:54:37 -0400 Subject: Virtual Spatial Data through OCI In-Reply-To: Message-ID: On 7/21/05, Bart van den Eijnden wrote: > Hi list, > > probably a question for Frank. > > I am trying to use an Oracle X Y column table through virtual spatial data. I compiled GDAL against the Oracle client. I can access it through ODBC without any problems. > > When doing an ogrinfo on the ovf file I created, I get: > > D:\ms4w\apps\stragisweb\htdocs\sites\westland\data>ogrinfo adr4all.ovf > ERROR 4: Update access not supported for VRT datasources. > ERROR 1: Failed to find layer 'ADR5_ADRESCYCLUS' on datasource 'OCI:CAB/CAB at 10.1 > 5.7.7:1521/ONTW'. Bart, You might want to do an ogrinfo request against the datasource to get a list of all the recognised layers. eg. ogrinfo OCI:CAB/CAB at 10.15.7.7:1521/ONTW If you don't provide an explicit list of tables to treat as layers, OGR is supposed to scan ALL_SDO_GEOM_METADATA for tables to expose. Perhaps your ADR5_ADRESCYCLUS table is not in ALL_SDO_GEOM_METADATA? Or perhap it is not being recognised for some other reason? An alternative would be to explicitly list it as a table you want exposed as a layer: ogrinfo OCI:CAB/CAB at 10.15.7.7:1521/ONTW,ADR5_ADRESCYCLUS I hope this helps. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From BEN at SYNCERA-ITSOLUTIONS.NL Thu Jul 21 07:07:49 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Thu, 21 Jul 2005 16:07:49 +0200 Subject: Virtual Spatial Data through OCI Message-ID: Frank, adding it to the ALL_SDO_GEOM_METADATA table with some dummy values did the trick. Altough ofcourse it is not a Spatial table in the Oracle spatial terms, just an X Y column type of table, but anyway, it works. Thanks. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Frank Warmerdam 07/21/05 03:54pm >>> On 7/21/05, Bart van den Eijnden wrote: > Hi list, > > probably a question for Frank. > > I am trying to use an Oracle X Y column table through virtual spatial data. I compiled GDAL against the Oracle client. I can access it through ODBC without any problems. > > When doing an ogrinfo on the ovf file I created, I get: > > D:\ms4w\apps\stragisweb\htdocs\sites\westland\data>ogrinfo adr4all.ovf > ERROR 4: Update access not supported for VRT datasources. > ERROR 1: Failed to find layer 'ADR5_ADRESCYCLUS' on datasource 'OCI:CAB/CAB at 10.1 > 5.7.7:1521/ONTW'. Bart, You might want to do an ogrinfo request against the datasource to get a list of all the recognised layers. eg. ogrinfo OCI:CAB/CAB at 10.15.7.7:1521/ONTW If you don't provide an explicit list of tables to treat as layers, OGR is supposed to scan ALL_SDO_GEOM_METADATA for tables to expose. Perhaps your ADR5_ADRESCYCLUS table is not in ALL_SDO_GEOM_METADATA? Or perhap it is not being recognised for some other reason? An alternative would be to explicitly list it as a table you want exposed as a layer: ogrinfo OCI:CAB/CAB at 10.15.7.7:1521/ONTW,ADR5_ADRESCYCLUS I hope this helps. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From Ryan.J.Owens at NWO02.USACE.ARMY.MIL Thu Jul 21 07:29:42 2005 From: Ryan.J.Owens at NWO02.USACE.ARMY.MIL (Owens, Ryan J NWD02 CONTRACTOR) Date: Thu, 21 Jul 2005 09:29:42 -0500 Subject: PNG Output. Message-ID: MS List Serve, I'm having difficulty producing a PNG output from a map file I made. Here is the error message that I am receiving: msPostMapParseOutputFormatSetup(): General error message. Unable to select IMAGETYPE `png'. Does anyone know what this means and how I can go about fixing it? Below is my code. Thank you, Ryan # # Start of map file # NAME EDOQ STATUS ON SIZE 600 600 # Extents from lower left to upper right (minx miny maxx maxy) # EXTENT -545712 26685 1428199 1537062 EXTENT -110 36 -90 46 #UNITS meters UNITS dd #SHAPEPATH "data" IMAGECOLOR 100 100 200 IMAGETYPE png #IMAGEQUALITY 96 OUTPUTFORMAT NAME jpeg DRIVER "GD/JPEG" FORMATOPTION "QUALITY=95" MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" END # # PROJECTION # MRR Albers projection #"proj=aea" #"Lat_1=40.3861111" #"lat_2=47.272222" #"lat_0=37.0" #"lon_0=-105.685556" #"x_0=0.0" #"y_0=0.0" #"ellps=clrk66" #"datum=NAD27" #"units=m" "init=epsg:4326" END # # Start of web interface definition (including WMS enabling metadata) # WEB TEMPLATE demo.html # MINSCALE 1000 # MAXSCALE 40000 IMAGEPATH "[edited for privacy]/" IMAGEURL "/tmp/" METADATA WMS_TITLE "NWD-PDM DRG" WMS_ABSTRACT "Water Management DRG of Omaha in TIF Format" WMS_ACCESSCONSTRAINTS "For US Army Corps of Engineers Use Only." WMS_ONLINERESOURCE "http://[domain information]/cgi-bin/mapserv?map=../htdocs/mapserver/drg/drg24.map&" WMS_SRS "EPSG:4326 AUTO:42003 " END END # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 255 255 255 SIZE tiny END STYLE 1 SIZE 80 2 COLOR 255 255 255 UNITS MILES INTERVALS 1 TRANSPARENT TRUE STATUS TRUE END ### DRG 24,000 ### LAYER # DRG data NAME drg24 TYPE raster TILEINDEX "oma24kqd.shp" MAXSCALE 40000 STATUS DEFAULT OFFSITE 0 0 0 PROJECTION "init=epsg:80000" END METADATA WMS_TITLE "DRG24000" WMS_ABSTRACT "DRG: MRR Albers" WMS_OPAQUE "1" END END ### INDEX DRG 250 #### LAYER NAME drg24ki TYPE line DATA "oma24kqd.shp" # MAXSCALE 40000 STATUS ON PROJECTION "init=epsg:80000" END METADATA WMS_TITLE "indexdrg24k" WMS_ABSTRACT "DRG: MRR Albers" WMS_OPAQUE "1" END CLASS SYMBOL 0 COLOR 185 211 238 OUTLINECOLOR 0 0 0 LABEL TYPE bitmap COLOR 255 255 0 OUTLINECOLOR 0 0 0 SIZE tiny POSITION cc WRAP "/" END END END LAYER # DOQQ data NAME doqq24 TYPE raster TILEINDEX "doqq.shp" MAXSCALE 60000 STATUS DEFAULT OFFSITE 0 0 0 PROJECTION "init=epsg:80000" END METADATA WMS_TITLE "DOQQ" WMS_ABSTRACT "DRG: MRR Albers" WMS_OPAQUE "1" END END ### INDEX DRG 250 #### LAYER NAME doqq24ki TYPE line DATA "doqq.shp" # MAXSCALE 40000 STATUS ON PROJECTION "init=epsg:80000" END METADATA WMS_TITLE "DOQQINDEX" WMS_ABSTRACT "DRG: MRR Albers" WMS_OPAQUE "1" END CLASS SYMBOL 0 COLOR 185 211 238 OUTLINECOLOR 0 0 0 LABEL TYPE bitmap COLOR 255 255 0 OUTLINECOLOR 0 0 0 SIZE tiny POSITION cc WRAP "/" END END END ############################### LAYER # DOQQ data NAME Oahe_Color TYPE raster TILEINDEX "oahe.shp" MAXSCALE 60000 STATUS DEFAULT OFFSITE 0 0 0 PROJECTION "init=epsg:26914" END METADATA WMS_TITLE "Oahe CLR" WMS_ABSTRACT "Oahe - UTM" WMS_OPAQUE "1" END END ### INDEX DRG 250 #### LAYER NAME Oahe_Col_IDX TYPE line DATA "oahe.shp" # MAXSCALE 40000 STATUS ON PROJECTION "init=epsg:26914" END METADATA WMS_TITLE "Oahe Index" WMS_ABSTRACT "Oahe - UTM" WMS_OPAQUE "1" END CLASS SYMBOL 0 COLOR 185 211 238 OUTLINECOLOR 0 0 0 LABEL TYPE bitmap COLOR 255 255 0 OUTLINECOLOR 0 0 0 SIZE tiny POSITION cc WRAP "/" END END END ################################ end # map file . -------------- next part -------------- An HTML attachment was scrubbed... URL: From BEN at SYNCERA-ITSOLUTIONS.NL Thu Jul 21 07:37:58 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Thu, 21 Jul 2005 16:37:58 +0200 Subject: PNG Output. Message-ID: Try this for 8 bit png: OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" END Or this for 24 bit png: OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" EXTENSION PNG IMAGEMODE RGBA TRANSPARENT ON END Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> "Owens, Ryan J NWD02 CONTRACTOR" 07/21/05 04:29pm >>> MS List Serve, I'm having difficulty producing a PNG output from a map file I made. Here is the error message that I am receiving: msPostMapParseOutputFormatSetup(): General error message. Unable to select IMAGETYPE `png'. Does anyone know what this means and how I can go about fixing it? Below is my code. Thank you, Ryan # # Start of map file # NAME EDOQ STATUS ON SIZE 600 600 # Extents from lower left to upper right (minx miny maxx maxy) # EXTENT -545712 26685 1428199 1537062 EXTENT -110 36 -90 46 #UNITS meters UNITS dd #SHAPEPATH "data" IMAGECOLOR 100 100 200 IMAGETYPE png #IMAGEQUALITY 96 OUTPUTFORMAT NAME jpeg DRIVER "GD/JPEG" FORMATOPTION "QUALITY=95" MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" END # # PROJECTION # MRR Albers projection #"proj=aea" #"Lat_1=40.3861111" #"lat_2=47.272222" #"lat_0=37.0" #"lon_0=-105.685556" #"x_0=0.0" #"y_0=0.0" #"ellps=clrk66" #"datum=NAD27" #"units=m" "init=epsg:4326" END # # Start of web interface definition (including WMS enabling metadata) # WEB TEMPLATE demo.html # MINSCALE 1000 # MAXSCALE 40000 IMAGEPATH "[edited for privacy]/" IMAGEURL "/tmp/" METADATA WMS_TITLE "NWD-PDM DRG" WMS_ABSTRACT "Water Management DRG of Omaha in TIF Format" WMS_ACCESSCONSTRAINTS "For US Army Corps of Engineers Use Only." WMS_ONLINERESOURCE "http://[domain information]/cgi-bin/mapserv?map=../htdocs/mapserver/drg/drg24.map&" WMS_SRS "EPSG:4326 AUTO:42003 " END END # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 255 255 255 SIZE tiny END STYLE 1 SIZE 80 2 COLOR 255 255 255 UNITS MILES INTERVALS 1 TRANSPARENT TRUE STATUS TRUE END ### DRG 24,000 ### LAYER # DRG data NAME drg24 TYPE raster TILEINDEX "oma24kqd.shp" MAXSCALE 40000 STATUS DEFAULT OFFSITE 0 0 0 PROJECTION "init=epsg:80000" END METADATA WMS_TITLE "DRG24000" WMS_ABSTRACT "DRG: MRR Albers" WMS_OPAQUE "1" END END ### INDEX DRG 250 #### LAYER NAME drg24ki TYPE line DATA "oma24kqd.shp" # MAXSCALE 40000 STATUS ON PROJECTION "init=epsg:80000" END METADATA WMS_TITLE "indexdrg24k" WMS_ABSTRACT "DRG: MRR Albers" WMS_OPAQUE "1" END CLASS SYMBOL 0 COLOR 185 211 238 OUTLINECOLOR 0 0 0 LABEL TYPE bitmap COLOR 255 255 0 OUTLINECOLOR 0 0 0 SIZE tiny POSITION cc WRAP "/" END END END LAYER # DOQQ data NAME doqq24 TYPE raster TILEINDEX "doqq.shp" MAXSCALE 60000 STATUS DEFAULT OFFSITE 0 0 0 PROJECTION "init=epsg:80000" END METADATA WMS_TITLE "DOQQ" WMS_ABSTRACT "DRG: MRR Albers" WMS_OPAQUE "1" END END ### INDEX DRG 250 #### LAYER NAME doqq24ki TYPE line DATA "doqq.shp" # MAXSCALE 40000 STATUS ON PROJECTION "init=epsg:80000" END METADATA WMS_TITLE "DOQQINDEX" WMS_ABSTRACT "DRG: MRR Albers" WMS_OPAQUE "1" END CLASS SYMBOL 0 COLOR 185 211 238 OUTLINECOLOR 0 0 0 LABEL TYPE bitmap COLOR 255 255 0 OUTLINECOLOR 0 0 0 SIZE tiny POSITION cc WRAP "/" END END END ############################### LAYER # DOQQ data NAME Oahe_Color TYPE raster TILEINDEX "oahe.shp" MAXSCALE 60000 STATUS DEFAULT OFFSITE 0 0 0 PROJECTION "init=epsg:26914" END METADATA WMS_TITLE "Oahe CLR" WMS_ABSTRACT "Oahe - UTM" WMS_OPAQUE "1" END END ### INDEX DRG 250 #### LAYER NAME Oahe_Col_IDX TYPE line DATA "oahe.shp" # MAXSCALE 40000 STATUS ON PROJECTION "init=epsg:26914" END METADATA WMS_TITLE "Oahe Index" WMS_ABSTRACT "Oahe - UTM" WMS_OPAQUE "1" END CLASS SYMBOL 0 COLOR 185 211 238 OUTLINECOLOR 0 0 0 LABEL TYPE bitmap COLOR 255 255 0 OUTLINECOLOR 0 0 0 SIZE tiny POSITION cc WRAP "/" END END END ################################ end # map file .. From BEN at SYNCERA-ITSOLUTIONS.NL Thu Jul 21 07:41:17 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Thu, 21 Jul 2005 16:41:17 +0200 Subject: Virtual Spatial Data: OCI versus ODBC Message-ID: Hi list, just wanted to report, I was having some troubles with OVF performance to an Oracle table of 45000 records. Frank already did a great improvement for performance by including the X and Y values in the WHERE clause in GDAL CVS version, but still I was having performance problems. I was using ODBC and Oracle instant client by that time. After compiling GDAL with OCI support and using OVF through OCI, everything works blazingly fast. In my situation with ODBC a map of a very small region took 7 seconds, now less than 2 seconds using OCI. Thanks Frank for this fantastic part of the software! Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl From fwarmerdam at GMAIL.COM Thu Jul 21 07:40:59 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 21 Jul 2005 10:40:59 -0400 Subject: PNG Output. In-Reply-To: <35ADA1929CF84D44A310F248121581AD01F9D9@NWO-ML3OMA.nwo.ds.usace.army.mil> Message-ID: On 7/21/05, Owens, Ryan J NWD02 CONTRACTOR wrote: > > > MS List Serve, > > I'm having difficulty producing a PNG output from a map file I made. Here > is the error message that I am receiving: > msPostMapParseOutputFormatSetup(): General error message. > Unable to select IMAGETYPE `png'. Ryan, Any chance your MapServer build lacks PNG support? What does your "mapserv -v" report look like? Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From joe at OTSYS.COM Thu Jul 21 09:02:16 2005 From: joe at OTSYS.COM (Joe Bussell) Date: Thu, 21 Jul 2005 08:02:16 -0800 Subject: historical political boundaries Message-ID: Just for fun I was toying with the idea of playing history back for my son by demonstrating the changing political boundaries. Are there data sets available for political boundaries for the ancient world? How about pre-WW1 or WW-2? How about military buildup like the position of Napoleon's army over time, or the extent of Atilla's military reach over time. Or Phiilip of Macedon and later his son Alexander's land acquisitions, and the later breakup as the satraps and princes struggled for primacy and the resulting divided principalities. Can you imagine watching the world's history playing out in an interactive map application? This would be very cool. Has this been done before professionally or privately? Cordially, Joe Bussell From BEN at SYNCERA-ITSOLUTIONS.NL Thu Jul 21 08:08:38 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Thu, 21 Jul 2005 17:08:38 +0200 Subject: Virtual Spatial Data and MySQL client Message-ID: Hi list, I can't connect to a MySQL database using the MySQL client in OGR. I am using MySQL client 4.1 on a 4.1 localhost database. It works fine through ODBC. It looks like GDAL/OGR is trying to log in with a different user than I specify, the Windows user logged on to the computer, how come? I get the following: D:\ms4w\apps\stragisweb\htdocs\sites\mdwh\data>ogrinfo bedrijven_mysqlclient.ovf ERROR 4: Update access not supported for VRT datasources. Warning 1: 'database=westholland' in MYSQL datasource definition not recognised and ignored. ERROR 1: MySQL connect failed for: user=root,password=psv9570,port=3306,database =westholland Access denied for user 'BEN'@'localhost' (using password: YES) FAILURE: Unable to open datasource `bedrijven_mysqlclient.ovf' with the following drivers .. -> ESRI Shapefile -> UK .NTF -> SDTS -> TIGER -> S57 -> MapInfo File -> DGN -> VRT -> AVCBin -> REC -> Memory -> CSV -> GML -> ODBC -> MySQL -> OCI With the following ovf file: MYSQL:user=root,password=psv9570,port=3306,database=westholland bedrijven wkbPoint epsg:28992 Thanks in advance (again :-) ). Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl From stevem at SPATIALMAPPING.COM Thu Jul 21 08:09:07 2005 From: stevem at SPATIALMAPPING.COM (Steven Monai) Date: Thu, 21 Jul 2005 10:09:07 -0500 Subject: New google maps Message-ID: Hmm. I always heard that the moon was made of GREEN cheese. It must be a false-colour image... perhaps to emphasize the perfectly round craters? Regards, -SM -- On Thu, 21 Jul 2005 14:52:46 +0200, Flavio Hendry wrote: >we always said that the moon is a pice of swiss cheese. now it is >proved! thank you google ... > >Mit freundlichem Gruss / Best Regards >Flavio Hendry > >---------------------------------------------------------------- >TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual >---------------------------------------------------------------- >############ Mit freundlichen Gruessen / Kind Regards >############ mailto:flavio at tydac.ch >############ TYDAC AG - http://www.tydac.ch >#### #### Geographic Information Solutions >#### #### Luternauweg 12 -- CH-3006 Bern >############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 >---------------------------------------------------------------- > > >-----Original Message----- >From: Stephen Woodbridge >To: MAPSERVER-USERS at LISTS.UMN.EDU >Date: Wed, 20 Jul 2005 09:53:27 -0400 >Subject: [UMN_MAPSERVER-USERS] New google maps > >> http://moon.google.com From Ryan.J.Owens at NWO02.USACE.ARMY.MIL Thu Jul 21 08:09:41 2005 From: Ryan.J.Owens at NWO02.USACE.ARMY.MIL (Owens, Ryan J NWD02 CONTRACTOR) Date: Thu, 21 Jul 2005 10:09:41 -0500 Subject: PNG Output. Message-ID: Frank, Thanks for responding so quickly. How do I look at the configuration file? So I can use the "mapserv -v" command. Ryan -----Original Message----- From: Frank Warmerdam [mailto:fwarmerdam at gmail.com] Sent: Thursday, July 21, 2005 9:41 AM To: Owens, Ryan J NWD02 CONTRACTOR Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] PNG Output. On 7/21/05, Owens, Ryan J NWD02 CONTRACTOR wrote: > > > MS List Serve, > > I'm having difficulty producing a PNG output from a map file I made. Here > is the error message that I am receiving: > msPostMapParseOutputFormatSetup(): General error message. > Unable to select IMAGETYPE `png'. Ryan, Any chance your MapServer build lacks PNG support? What does your "mapserv -v" report look like? Best regards, -- ---------------------------------------+------------------------------------- - I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From Ryan.J.Owens at NWO02.USACE.ARMY.MIL Thu Jul 21 08:11:09 2005 From: Ryan.J.Owens at NWO02.USACE.ARMY.MIL (Owens, Ryan J NWD02 CONTRACTOR) Date: Thu, 21 Jul 2005 10:11:09 -0500 Subject: PNG Output. Message-ID: Bart, Thanks for responding so quickly. I tried both of your settings and I received the following error message, which makes me think that Frank's response means that my version of MS is not configured to support PNG: loadOutputFormat(): General error message. OUTPUTFORMAT clause references driver GD/PNG, but this driver isn't configured. Ryan -----Original Message----- From: Bart van den Eijnden [mailto:BEN at Syncera-ITSolutions.NL] Sent: Thursday, July 21, 2005 9:38 AM To: MAPSERVER-USERS at LISTS.UMN.EDU; Owens, Ryan J NWD02 CONTRACTOR Subject: Re: [UMN_MAPSERVER-USERS] PNG Output. Try this for 8 bit png: OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" END Or this for 24 bit png: OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" EXTENSION PNG IMAGEMODE RGBA TRANSPARENT ON END Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> "Owens, Ryan J NWD02 CONTRACTOR" 07/21/05 04:29pm >>> MS List Serve, I'm having difficulty producing a PNG output from a map file I made. Here is the error message that I am receiving: msPostMapParseOutputFormatSetup(): General error message. Unable to select IMAGETYPE `png'. Does anyone know what this means and how I can go about fixing it? Below is my code. Thank you, Ryan # # Start of map file # NAME EDOQ STATUS ON SIZE 600 600 # Extents from lower left to upper right (minx miny maxx maxy) # EXTENT -545712 26685 1428199 1537062 EXTENT -110 36 -90 46 #UNITS meters UNITS dd #SHAPEPATH "data" IMAGECOLOR 100 100 200 IMAGETYPE png #IMAGEQUALITY 96 OUTPUTFORMAT NAME jpeg DRIVER "GD/JPEG" FORMATOPTION "QUALITY=95" MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" END # # PROJECTION # MRR Albers projection #"proj=aea" #"Lat_1=40.3861111" #"lat_2=47.272222" #"lat_0=37.0" #"lon_0=-105.685556" #"x_0=0.0" #"y_0=0.0" #"ellps=clrk66" #"datum=NAD27" #"units=m" "init=epsg:4326" END # # Start of web interface definition (including WMS enabling metadata) # WEB TEMPLATE demo.html # MINSCALE 1000 # MAXSCALE 40000 IMAGEPATH "[edited for privacy]/" IMAGEURL "/tmp/" METADATA WMS_TITLE "NWD-PDM DRG" WMS_ABSTRACT "Water Management DRG of Omaha in TIF Format" WMS_ACCESSCONSTRAINTS "For US Army Corps of Engineers Use Only." WMS_ONLINERESOURCE "http://[domain information]/cgi-bin/mapserv?map=../htdocs/mapserver/drg/drg24.map&" WMS_SRS "EPSG:4326 AUTO:42003 " END END # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 255 255 255 SIZE tiny END STYLE 1 SIZE 80 2 COLOR 255 255 255 UNITS MILES INTERVALS 1 TRANSPARENT TRUE STATUS TRUE END ### DRG 24,000 ### LAYER # DRG data NAME drg24 TYPE raster TILEINDEX "oma24kqd.shp" MAXSCALE 40000 STATUS DEFAULT OFFSITE 0 0 0 PROJECTION "init=epsg:80000" END METADATA WMS_TITLE "DRG24000" WMS_ABSTRACT "DRG: MRR Albers" WMS_OPAQUE "1" END END ### INDEX DRG 250 #### LAYER NAME drg24ki TYPE line DATA "oma24kqd.shp" # MAXSCALE 40000 STATUS ON PROJECTION "init=epsg:80000" END METADATA WMS_TITLE "indexdrg24k" WMS_ABSTRACT "DRG: MRR Albers" WMS_OPAQUE "1" END CLASS SYMBOL 0 COLOR 185 211 238 OUTLINECOLOR 0 0 0 LABEL TYPE bitmap COLOR 255 255 0 OUTLINECOLOR 0 0 0 SIZE tiny POSITION cc WRAP "/" END END END LAYER # DOQQ data NAME doqq24 TYPE raster TILEINDEX "doqq.shp" MAXSCALE 60000 STATUS DEFAULT OFFSITE 0 0 0 PROJECTION "init=epsg:80000" END METADATA WMS_TITLE "DOQQ" WMS_ABSTRACT "DRG: MRR Albers" WMS_OPAQUE "1" END END ### INDEX DRG 250 #### LAYER NAME doqq24ki TYPE line DATA "doqq.shp" # MAXSCALE 40000 STATUS ON PROJECTION "init=epsg:80000" END METADATA WMS_TITLE "DOQQINDEX" WMS_ABSTRACT "DRG: MRR Albers" WMS_OPAQUE "1" END CLASS SYMBOL 0 COLOR 185 211 238 OUTLINECOLOR 0 0 0 LABEL TYPE bitmap COLOR 255 255 0 OUTLINECOLOR 0 0 0 SIZE tiny POSITION cc WRAP "/" END END END ############################### LAYER # DOQQ data NAME Oahe_Color TYPE raster TILEINDEX "oahe.shp" MAXSCALE 60000 STATUS DEFAULT OFFSITE 0 0 0 PROJECTION "init=epsg:26914" END METADATA WMS_TITLE "Oahe CLR" WMS_ABSTRACT "Oahe - UTM" WMS_OPAQUE "1" END END ### INDEX DRG 250 #### LAYER NAME Oahe_Col_IDX TYPE line DATA "oahe.shp" # MAXSCALE 40000 STATUS ON PROJECTION "init=epsg:26914" END METADATA WMS_TITLE "Oahe Index" WMS_ABSTRACT "Oahe - UTM" WMS_OPAQUE "1" END CLASS SYMBOL 0 COLOR 185 211 238 OUTLINECOLOR 0 0 0 LABEL TYPE bitmap COLOR 255 255 0 OUTLINECOLOR 0 0 0 SIZE tiny POSITION cc WRAP "/" END END END ################################ end # map file .. From David.Fawcett at STATE.MN.US Thu Jul 21 08:23:54 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Thu, 21 Jul 2005 10:23:54 -0500 Subject: PNG Output. Message-ID: Ryan, Go to the commandline (or shell) and run your mapserver executable with the -v command. -cd to the directory that it is in then at the prompt, type 'mapserv -v' David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett at moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Owens, Ryan J NWD02 CONTRACTOR Sent: Thursday, July 21, 2005 10:10 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] PNG Output. Frank, Thanks for responding so quickly. How do I look at the configuration file? So I can use the "mapserv -v" command. Ryan -----Original Message----- From: Frank Warmerdam [mailto:fwarmerdam at gmail.com] Sent: Thursday, July 21, 2005 9:41 AM To: Owens, Ryan J NWD02 CONTRACTOR Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] PNG Output. On 7/21/05, Owens, Ryan J NWD02 CONTRACTOR wrote: > > > MS List Serve, > > I'm having difficulty producing a PNG output from a map file I made. Here > is the error message that I am receiving: > msPostMapParseOutputFormatSetup(): General error message. > Unable to select IMAGETYPE `png'. Ryan, Any chance your MapServer build lacks PNG support? What does your "mapserv -v" report look like? Best regards, -- ---------------------------------------+------------------------------------- - I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From saintsjd at YAHOO.COM Thu Jul 21 08:23:59 2005 From: saintsjd at YAHOO.COM (Jon Saints) Date: Thu, 21 Jul 2005 08:23:59 -0700 Subject: SVG output in real world coords In-Reply-To: Message-ID: SVG output from mapserver is very interesting. Is it possible to use mapserver to output SVG maps using geographic coordinates instead of pixel coordinates? Here is an example of a script that will do it: http://www.carto.net/papers/svg/utils/shp2svg/ Thanks Jon From David.Fawcett at STATE.MN.US Thu Jul 21 08:28:12 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Thu, 21 Jul 2005 10:28:12 -0500 Subject: historical political boundaries Message-ID: This reminds me of Schyler Erle's project to map places significant in the Peloponnesian War. He didn't map political boundaries, but instead came up with a 'semi-automated' way to extract place names and map them to give a geographic context to what was happening in the book. http://mappinghacks.com/projects/gutenmap/plpwr.cgi?x=0 David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett at moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Joe Bussell Sent: Thursday, July 21, 2005 11:02 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] historical political boundaries Just for fun I was toying with the idea of playing history back for my son by demonstrating the changing political boundaries. Are there data sets available for political boundaries for the ancient world? How about pre-WW1 or WW-2? How about military buildup like the position of Napoleon's army over time, or the extent of Atilla's military reach over time. Or Phiilip of Macedon and later his son Alexander's land acquisitions, and the later breakup as the satraps and princes struggled for primacy and the resulting divided principalities. Can you imagine watching the world's history playing out in an interactive map application? This would be very cool. Has this been done before professionally or privately? Cordially, Joe Bussell From piero.cavalieri at HEIDI.IT Thu Jul 21 08:34:59 2005 From: piero.cavalieri at HEIDI.IT (Piero Cavalieri) Date: Thu, 21 Jul 2005 10:34:59 -0500 Subject: Virtual Spatial Data and MySQL client Message-ID: Bart van den Eijnden wrote: >Hi list, > >I can't connect to a MySQL database using the MySQL client in OGR. I am using MySQL client 4.1 on a 4.1 localhost database. It works fine through ODBC. > >With the following ovf file: > > > > MYSQL:user=root,password=psv9570,port=3306,database=westholla nd > bedrijven > wkbPoint > epsg:28992 > > > > >Thanks in advance (again :-) ). Never used MySQL, however: where is the HOST name i SrcDataSource ? >Best regards, >Bart > >Bart van den Eijnden >Syncera IT Solutions >Postbus 270 >2600 AG DELFT > >tel.nr.: 015-7512436 >email: BEN at Syncera-ITSolutions.nl > From Ryan.J.Owens at NWO02.USACE.ARMY.MIL Thu Jul 21 08:48:02 2005 From: Ryan.J.Owens at NWO02.USACE.ARMY.MIL (Owens, Ryan J NWD02 CONTRACTOR) Date: Thu, 21 Jul 2005 10:48:02 -0500 Subject: PNG Output. Message-ID: David, Thanks for your assistance. And... ah ha! PNG is not supported. Correct? I don't see it anyway. Here is the output: MapServer version 4.4.2 OUTPUT=GIF OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=FASTCGI INPUT=SDE INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG I think I'll wait for my boss to get back from his vacation before I reconfigure anything. Thanks ya'll for your help! Ryan -----Original Message----- From: Fawcett, David [mailto:David.Fawcett at state.mn.us] Sent: Thursday, July 21, 2005 10:24 AM To: Owens, Ryan J NWD02 CONTRACTOR; MAPSERVER-USERS at lists.umn.edu Subject: RE: [UMN_MAPSERVER-USERS] PNG Output. Ryan, Go to the commandline (or shell) and run your mapserver executable with the -v command. -cd to the directory that it is in then at the prompt, type 'mapserv -v' David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett at moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Owens, Ryan J NWD02 CONTRACTOR Sent: Thursday, July 21, 2005 10:10 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] PNG Output. Frank, Thanks for responding so quickly. How do I look at the configuration file? So I can use the "mapserv -v" command. Ryan -----Original Message----- From: Frank Warmerdam [mailto:fwarmerdam at gmail.com] Sent: Thursday, July 21, 2005 9:41 AM To: Owens, Ryan J NWD02 CONTRACTOR Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] PNG Output. On 7/21/05, Owens, Ryan J NWD02 CONTRACTOR wrote: > > > MS List Serve, > > I'm having difficulty producing a PNG output from a map file I made. Here > is the error message that I am receiving: > msPostMapParseOutputFormatSetup(): General error message. > Unable to select IMAGETYPE `png'. Ryan, Any chance your MapServer build lacks PNG support? What does your "mapserv -v" report look like? Best regards, -- ---------------------------------------+------------------------------------- - I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From tylermitchell at SHAW.CA Thu Jul 21 08:50:51 2005 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Thu, 21 Jul 2005 08:50:51 -0700 Subject: historical political boundaries Message-ID: Great idea Joe. I'd love to find some keen students who want to learn mapping or love history and have them scrape some boundaries out of historic map images, e.g. from http://www.lib.utexas.edu/maps/historical/index.html Tyler ----- Original Message ----- From: Joe Bussell Date: Thursday, July 21, 2005 9:02 am Subject: [UMN_MAPSERVER-USERS] historical political boundaries > Just for fun I was toying with the idea of playing history back > for my > son by demonstrating the changing political boundaries. Are there > data > sets available for political boundaries for the ancient world? > How > about pre-WW1 or WW-2? How about military buildup like the > position of > Napoleon's army over time, or the extent of Atilla's military > reach over > time. Or Phiilip of Macedon and later his son Alexander's land > acquisitions, and the later breakup as the satraps and princes > struggled > for primacy and the resulting divided principalities. > > Can you imagine watching the world's history playing out in an > interactive map application? This would be very cool. > > Has this been done before professionally or privately? > > Cordially, > > Joe Bussell > From fredlucca at GMAIL.COM Thu Jul 21 08:58:16 2005 From: fredlucca at GMAIL.COM (Frederico Lucca) Date: Thu, 21 Jul 2005 12:58:16 -0300 Subject: Problems with gdal In-Reply-To: <931f8ea905072106484f601f0c@mail.gmail.com> Message-ID: On 7/21/05, Frank Warmerdam wrote: > On 7/21/05, Frederico Lucca wrote: > > Hello list! > > > > I'm a new user from MapServer. > > After I compile it, I start to develop with java in linux. > > Well, I have some servlets creating maps and getting information from layers. > > My problem is with tomcat and gdal. > > I can create maps very quickly but when I put a program in looping to > > test the performance, tomcat stops and the last message in tomcat's > > log is: > > > > C [libgdal.so.1+0x195d04] _ZN7TABFile13GetFeatureRefEi+0x1b4 > > > > Maybe is a problem with gdal??? > > > > Well, any information or help... > > Fred, > > GDAL and OGR are not really threadsafe, so you need to be > somewhat careful how you use them in multithreaded environments > like Java. There is a mutex around most use of GDAL for raster > support in MapServer, but I believe that has not been done for OGR. > > If you wish, I could try and institute a mutex in the MapServer OGR > module as well, if you would be willing to test it out deployed in your > Java work environment. > > Of course, that might not be the actual problems. > > Best regards, > Hello Frank, Let me see, if a use a shape file, without OGR, can I have a mutex? I use a Mapinfo file, but if I can translate this to shape and have a mutex, I can do this. I will test... But if you can do a mutex for OGR (and you think that it's important) I can test in my enviroment too. Thank you so much... Best Regards, Fred Lucca -- "Everything under the sun is in tune But the sun is eclipsed by the moon" From pgiencke at GLC.ORG Thu Jul 21 09:05:54 2005 From: pgiencke at GLC.ORG (Peter Giencke) Date: Thu, 21 Jul 2005 12:05:54 -0400 Subject: historical political boundaries In-Reply-To: <1f4332e1f4691e.1f4691e1f4332e@shaw.ca> Message-ID: All, This might be somewhat off-topic, but the National Historical GIS Project (nhgis.org) is doing this for historical (as far back as 1790) US political/census boundaries (state, county, tract level). Much of this data is already available (boundary data - http://www.nhgis.org/data/getBoundaryfiles.shtml and aggregate data - http://www.nhgis.org/data/getData.shtml). -pete PS the boundary application is my own :) -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Tyler Mitchell Sent: Thursday, July 21, 2005 11:51 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] historical political boundaries Great idea Joe. I'd love to find some keen students who want to learn mapping or love history and have them scrape some boundaries out of historic map images, e.g. from http://www.lib.utexas.edu/maps/historical/index.html Tyler ----- Original Message ----- From: Joe Bussell Date: Thursday, July 21, 2005 9:02 am Subject: [UMN_MAPSERVER-USERS] historical political boundaries > Just for fun I was toying with the idea of playing history back for my > son by demonstrating the changing political boundaries. Are there > data > sets available for political boundaries for the ancient world? > How > about pre-WW1 or WW-2? How about military buildup like the position > of Napoleon's army over time, or the extent of Atilla's military reach > over time. Or Phiilip of Macedon and later his son Alexander's land > acquisitions, and the later breakup as the satraps and princes > struggled for primacy and the resulting divided principalities. > > Can you imagine watching the world's history playing out in an > interactive map application? This would be very cool. > > Has this been done before professionally or privately? > > Cordially, > > Joe Bussell > From tylermitchell at SHAW.CA Thu Jul 21 09:28:13 2005 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Thu, 21 Jul 2005 09:28:13 -0700 Subject: historical political boundaries Message-ID: Thanks Peter. Had a look also at the GLC Great Lakes Map Explorer - very nice! Is that yours too? http://mds.glc.org/carol/mapper.php Tyler ----- Original Message ----- From: Peter Giencke Date: Thursday, July 21, 2005 9:05 am Subject: Re: [UMN_MAPSERVER-USERS] historical political boundaries > All, > > This might be somewhat off-topic, but the National Historical GIS > Project(nhgis.org) is doing this for historical (as far back as > 1790) US > political/census boundaries (state, county, tract level). Much of > this data > is already available (boundary data - > http://www.nhgis.org/data/getBoundaryfiles.shtml and aggregate > data - > http://www.nhgis.org/data/getData.shtml). > > -pete > > PS the boundary application is my own :) > > -----Original Message----- > From: UMN MapServer Users List [MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Tyler Mitchell > Sent: Thursday, July 21, 2005 11:51 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] historical political boundaries > > Great idea Joe. I'd love to find some keen students who want to learn > mapping or love history and have them scrape some boundaries out > of historic > map images, e.g. from > http://www.lib.utexas.edu/maps/historical/index.html > Tyler > > > ----- Original Message ----- > From: Joe Bussell > Date: Thursday, July 21, 2005 9:02 am > Subject: [UMN_MAPSERVER-USERS] historical political boundaries > > > Just for fun I was toying with the idea of playing history back > for my > > son by demonstrating the changing political boundaries. Are > there > > data > > sets available for political boundaries for the ancient world? > > How > > about pre-WW1 or WW-2? How about military buildup like the > position > > of Napoleon's army over time, or the extent of Atilla's military > reach > > over time. Or Phiilip of Macedon and later his son Alexander's > land > > acquisitions, and the later breakup as the satraps and princes > > struggled for primacy and the resulting divided principalities. > > > > Can you imagine watching the world's history playing out in an > > interactive map application? This would be very cool. > > > > Has this been done before professionally or privately? > > > > Cordially, > > > > Joe Bussell > > > From fwarmerdam at GMAIL.COM Thu Jul 21 09:49:40 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 21 Jul 2005 12:49:40 -0400 Subject: Problems with gdal In-Reply-To: Message-ID: On 7/21/05, Frederico Lucca wrote: > Hello Frank, > > Let me see, if a use a shape file, without OGR, can I have a mutex? > I use a Mapinfo file, but if I can translate this to shape and have a > mutex, I can do this. > I will test... Frederico, I believe the direct shapefile support in MapServer is threadsafe, so if you can easily translate to shapefiles that is likely prudent. > But if you can do a mutex for OGR (and you think that it's important) > I can test in my enviroment too. Well, it needs to be done eventually. There is already an open bug report on the issue, I believe. But I'm happy enough to leave it for another time. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From fwarmerdam at GMAIL.COM Thu Jul 21 09:56:20 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 21 Jul 2005 12:56:20 -0400 Subject: Virtual Spatial Data and MySQL client In-Reply-To: Message-ID: On 7/21/05, Bart van den Eijnden wrote: > Hi list, > > I can't connect to a MySQL database using the MySQL client in OGR. I am using MySQL client 4.1 on a 4.1 localhost database. It works fine through ODBC. > > It looks like GDAL/OGR is trying to log in with a different user than I specify, the Windows user logged on to the computer, how come? > > I get the following: > > D:\ms4w\apps\stragisweb\htdocs\sites\mdwh\data>ogrinfo bedrijven_mysqlclient.ovf > > ERROR 4: Update access not supported for VRT datasources. > Warning 1: 'database=westholland' in MYSQL datasource definition not recognised > and ignored. > ERROR 1: MySQL connect failed for: user=root,password=psv9570,port=3306,database > =westholland > Access denied for user 'BEN'@'localhost' (using password: YES) > FAILURE: Bart, Sorry, I don't know why that isn't working. As I read the code, it should have passed in root as the userid. In the module: gdal/ogr/ogrsf_frmts/mysql/ogrmysqldatasource.cpp there is a call like: if( hConn && mysql_real_connect( hConn, oHost.length() ? oHost.c_str() : NULL, oUser.length() ? oUser.c_str() : NULL, oPassword.length() ? oPassword.c_str() : NULL, oDB.length() ? oDB.c_str() : NULL, nPort, NULL, 0 ) == NULL ) { CPLError( CE_Failure, CPLE_AppDefined, "MySQL connect failed for: %s\n%s", pszNewName + 6, mysql_error( hConn ) ); mysql_close( hConn ); hConn = NULL; } My suggestion is that you add a printf() to report the actual arguments being passed to this functions for debugging purposes. eg. printf( "user=%s, password=%d\n", oUser.c_str(), oPassword.c_str() ); If the user reported by this is root then it is something funky deep inside the mysql API. If it is "BEN" or an empty string then we know that something is going wrong in the parsing logic for the datasource name (which you can follow up with me). Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From bartvde at XS4ALL.NL Thu Jul 21 10:37:04 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Thu, 21 Jul 2005 19:37:04 +0200 Subject: Virtual Spatial Data and MySQL client In-Reply-To: Message-ID: Hi Piero, the host parameter defaults to localhost and that's where my database is situated. Best regards, Bart On Thu, 21 Jul 2005 17:34:59 +0200, Piero Cavalieri wrote: > Bart van den Eijnden wrote: > >> Hi list, >> >> I can't connect to a MySQL database using the MySQL client in OGR. I am > using MySQL client 4.1 on a 4.1 localhost database. It works fine through > ODBC. >> >> With the following ovf file: >> >> >> >> > MYSQL:user=root,password=psv9570,port=3306,database=westholla > nd >> bedrijven >> wkbPoint >> epsg:28992 >> y="LCO_YCOORDINAAT"/> >> >> >> >> Thanks in advance (again :-) ). > > Never used MySQL, however: where is the HOST name i SrcDataSource ? > > >> Best regards, >> Bart >> >> Bart van den Eijnden >> Syncera IT Solutions >> Postbus 270 >> 2600 AG DELFT >> >> tel.nr.: 015-7512436 >> email: BEN at Syncera-ITSolutions.nl >> > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From gsw at GLOBEXPLORER.COM Thu Jul 21 12:48:31 2005 From: gsw at GLOBEXPLORER.COM (Gregory S. Williamson) Date: Thu, 21 Jul 2005 12:48:31 -0700 Subject: inline feature -- adding a point by URL does not work Message-ID: Apparently the documentation should be changed; this functionality does not work for me and judging by two days of silence from the list about this message, it does not for anyone else either. GSW -----Original Message----- From: UMN MapServer Users List on behalf of Gregory S. Williamson Sent: Wed 7/20/2005 1:25 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Cc: Subject: [UMN_MAPSERVER-USERS] inline feature -- adding a point by URL Dear list, I've got a basic mapfile of street data derived from TIGER sources which seems to display correctly. I need to add an ability to display a point derived from a geocoding process. I can do this with a point added to a shapefile, but doing it dynamically eludes me. I have a DATA statement in the layer that I am trying to add my temporary point(s) to. I've tried removing to no apparent effect. Help with this would be muchly appreciated. Also, if anyone sees any other glaring issues in this map fragment, I'd be glad to hear about them. This is Mapserver 4.6, running under Windows 2000, Apache 2.054 (the current MapTools "ms4w" build). All of my shapefiles seem to be working ok. Thanks, Greg Williamson DBA GlobeXplorer LLC Various relevant snippets: Map File # SSF map file NAME SSF STATUS ON SIZE 600 600 EXTENT -122.5131 37.7095 -122.3509 37.8258 UNITS DD SHAPEPATH "DATA" FONTSET "C:\ms4w\Apache\htdocs\ssf\fonts\fonts.list" IMAGECOLOR 0 0 0 IMAGETYPE PNG PROJECTION "+proj=latlong +ellps=GRS80" END <...snip...> SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END <...snip...> LAYER NAME ssfmappnts DEBUG ON STATUS ON DATA geopnt1 TYPE ANNOTATION LABELITEM "POINT_NAME" LABELCACHE ON CLASS NAME "SSF Map Points" SYMBOL 'circle' SIZE 6 COLOR 255 0 0 LABEL ANTIALIAS TRUE TYPE TRUETYPE FONT garamond-bold SIZE 12 COLOR 50 20 20 OUTLINECOLOR 255 225 90 POSITION AUTO BUFFER 2 FORCE TRUE END TEMPLATE "ssf_m_query.html" END HEADER "ssf_mhdr.html" FOOTER "ssf_mftr.html" TOLERANCE 8 END # map points END # Map File =============================== A test URL (apologies for the length) http://localhost/cgi-bin/mapserv_46.exe?mode=browse&layer=ssfmappnts&zoomdir=0&zoomsize=2&imgxy=299.5+299.5&map_ssfmappnts_feature=new&map_ssfmappnts_feature_points=-122.438131+37.777319&map_ssfmappnts_feature_text=Old848&imgext=-122.454911+37.782652+-122.414361+37.823203&map=C%3A%2Fms4w%2FApache%2Fhtdocs%2Fssf%2Fssf5.map&savequery=true&program=%2Fcgi-bin%2Fmapserv_46.exe&map_web_imagepath=..%2Ftmp%2F&map_web_imageurl=..%2Ftmp%2F =============================== Mapserver log: Wed Jul 20 01:21:03 2005,1736,127.0.0.1,SSF,0,-122.513100 37.686550 -122.350900 37.848750,-1.000000 -1.000000,ssfmappnts ,normal execution ============================== A point in a shapefile that displays correctly: geopnt1 FID 15503 MULTIPOINT (-122.41202545997528 37.78057859726695) !DSPAM:42de0aa2195381092533508! From David.Fawcett at STATE.MN.US Thu Jul 21 12:58:41 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Thu, 21 Jul 2005 14:58:41 -0500 Subject: inline feature -- adding a point by URL does not work Message-ID: Greg, I have never tried this functionality, but it appears that your point: -122.438131+37.777319 doesn't fall within your imgext of -122.454911+37.782652+-122.414361+37.823203 David. //localhost/cgi-bin/mapserv_46.exe?mode=browse&layer=ssfmappnts&zoomdir=0&zoomsize=2&imgxy=299.5+299.5&map_ssfmappnts_feature=new&map_ssfmappnts_feature_points=-122.438131+37.777319&map_ssfmappnts_feature_text=Old848&imgext=-122.454911+37.782652+-122.414361+37.823203&map=C%3A%2Fms4w%2FApache%2Fhtdocs%2Fssf%2Fssf5.map&savequery=true&program=%2Fcgi-bin%2Fmapserv_46.exe&map_web_imagepath=..%2Ftmp%2F&map_web_imageurl=..%2Ftmp%2F David Fawcett Minnesota Office of Environmental Assistance david.fawcett at moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Gregory S. Williamson Sent: Thursday, July 21, 2005 2:49 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] inline feature -- adding a point by URL does not work Apparently the documentation should be changed; this functionality does not work for me and judging by two days of silence from the list about this message, it does not for anyone else either. GSW -----Original Message----- From: UMN MapServer Users List on behalf of Gregory S. Williamson Sent: Wed 7/20/2005 1:25 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Cc: Subject: [UMN_MAPSERVER-USERS] inline feature -- adding a point by URL Dear list, I've got a basic mapfile of street data derived from TIGER sources which seems to display correctly. I need to add an ability to display a point derived from a geocoding process. I can do this with a point added to a shapefile, but doing it dynamically eludes me. I have a DATA statement in the layer that I am trying to add my temporary point(s) to. I've tried removing to no apparent effect. Help with this would be muchly appreciated. Also, if anyone sees any other glaring issues in this map fragment, I'd be glad to hear about them. This is Mapserver 4.6, running under Windows 2000, Apache 2.054 (the current MapTools "ms4w" build). All of my shapefiles seem to be working ok. Thanks, Greg Williamson DBA GlobeXplorer LLC Various relevant snippets: Map File # SSF map file NAME SSF STATUS ON SIZE 600 600 EXTENT -122.5131 37.7095 -122.3509 37.8258 UNITS DD SHAPEPATH "DATA" FONTSET "C:\ms4w\Apache\htdocs\ssf\fonts\fonts.list" IMAGECOLOR 0 0 0 IMAGETYPE PNG PROJECTION "+proj=latlong +ellps=GRS80" END <...snip...> SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END <...snip...> LAYER NAME ssfmappnts DEBUG ON STATUS ON DATA geopnt1 TYPE ANNOTATION LABELITEM "POINT_NAME" LABELCACHE ON CLASS NAME "SSF Map Points" SYMBOL 'circle' SIZE 6 COLOR 255 0 0 LABEL ANTIALIAS TRUE TYPE TRUETYPE FONT garamond-bold SIZE 12 COLOR 50 20 20 OUTLINECOLOR 255 225 90 POSITION AUTO BUFFER 2 FORCE TRUE END TEMPLATE "ssf_m_query.html" END HEADER "ssf_mhdr.html" FOOTER "ssf_mftr.html" TOLERANCE 8 END # map points END # Map File =============================== A test URL (apologies for the length) http://localhost/cgi-bin/mapserv_46.exe?mode=browse&layer=ssfmappnts&zoomdir=0&zoomsize=2&imgxy=299.5+299.5&map_ssfmappnts_feature=new&map_ssfmappnts_feature_points=-122.438131+37.777319&map_ssfmappnts_feature_text=Old848&imgext=-122.454911+37.782652+-122.414361+37.823203&map=C%3A%2Fms4w%2FApache%2Fhtdocs%2Fssf%2Fssf5.map&savequery=true&program=%2Fcgi-bin%2Fmapserv_46.exe&map_web_imagepath=..%2Ftmp%2F&map_web_imageurl=..%2Ftmp%2F =============================== Mapserver log: Wed Jul 20 01:21:03 2005,1736,127.0.0.1,SSF,0,-122.513100 37.686550 -122.350900 37.848750,-1.000000 -1.000000,ssfmappnts ,normal execution ============================== A point in a shapefile that displays correctly: geopnt1 FID 15503 MULTIPOINT (-122.41202545997528 37.78057859726695) !DSPAM:42de0aa2195381092533508! From fredlucca at GMAIL.COM Thu Jul 21 13:05:47 2005 From: fredlucca at GMAIL.COM (Frederico Lucca) Date: Thu, 21 Jul 2005 17:05:47 -0300 Subject: Problems with gdal In-Reply-To: <931f8ea9050721094913993207@mail.gmail.com> Message-ID: On 7/21/05, Frank Warmerdam wrote: > On 7/21/05, Frederico Lucca wrote: > > Hello Frank, > > > > Let me see, if a use a shape file, without OGR, can I have a mutex? > > I use a Mapinfo file, but if I can translate this to shape and have a > > mutex, I can do this. > > I will test... > > Frederico, > > I believe the direct shapefile support in MapServer is threadsafe, so > if you can easily translate to shapefiles that is likely prudent. > > > But if you can do a mutex for OGR (and you think that it's important) > > I can test in my enviroment too. > > Well, it needs to be done eventually. There is already an open bug > report on the issue, I believe. But I'm happy enough to leave it for > another time. > > Best regards, > -- Hello Frank, Well, I translate some TABs to SHPs using org2ogr. Then I return to my tests and loopings, and I get this error. C [libpthread.so.0+0x6a12] __pthread_mutex_lock+0x12 What can I do now? I call a jsp page which create a unique map, I call this application from another with a looping - for 1 to 100. Then, I put 3 or 4 of this applications running at same time. And I get the error. When I was using TABs I get the error (with gdal) with 2 applications running at same time. Thanks in advance. Best Regards, Fred -- "Everything under the sun is in tune But the sun is eclipsed by the moon" From dylan at IICI.NO-IP.ORG Thu Jul 21 13:35:26 2005 From: dylan at IICI.NO-IP.ORG (Dylan Beaudette) Date: Thu, 21 Jul 2005 13:35:26 -0700 Subject: hyperlink in a map In-Reply-To: Message-ID: On Wednesday 20 July 2005 10:22 am, Bob Bruce wrote: > Nuri: > I use the imagemap feature of MapServer to do this. Right now there > is only support for vector symbols and the 'out of the box' support only > allows for a single URL to be referenced for all symbols. I have made my > own MapServer modifications (which I still need to upload to the website) > that allow for individual symbols to be mapped uniquely, if you are into > building MapServer then I can provide those changes to you. Bob, Thanks for posting this very helpful link. I have successfully replicated the example on the Wiki. However, is there any way to manipulate the attribute that gets saved to the definition? i.e. is it possible to write a specific attribute from my vector data to the definition, as opposed to the default numbers (0,1,2...) ? thanks! -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From fwarmerdam at GMAIL.COM Thu Jul 21 13:31:39 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 21 Jul 2005 16:31:39 -0400 Subject: Problems with gdal In-Reply-To: Message-ID: On 7/21/05, Frederico Lucca wrote: > Hello Frank, > > Well, I translate some TABs to SHPs using org2ogr. > Then I return to my tests and loopings, and I get this error. > > C [libpthread.so.0+0x6a12] __pthread_mutex_lock+0x12 > > What can I do now? > I call a jsp page which create a unique map, I call this application > from another with a looping - for 1 to 100. Then, I put 3 or 4 of > this applications running at same time. And I get the error. When I > was using TABs I get the error (with gdal) with 2 applications running > at same time. Frederico, This is using mapserver and shapefiles, without using CONNECTIONTYPE OGR, right? I am not sure why you are running into problems. It isn't a configuration I can easily reproduce myself. Sorry, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From xwu2 at UTNET.UTOLEDO.EDU Thu Jul 21 13:51:49 2005 From: xwu2 at UTNET.UTOLEDO.EDU (Wu, Xiaochun) Date: Thu, 21 Jul 2005 16:51:49 -0400 Subject: how can I fix this error? Message-ID: Hi, all: Sorry to bother. I have got an error like this "loadForm(): Web application error. Not enough arguments for imgext. " Is it something wrong with the template file? and how can I fix it. Just give me a direction. thanks ahead! xiaochun -------------- next part -------------- An HTML attachment was scrubbed... URL: From jim at JIMDONAGHY.COM Thu Jul 21 13:51:57 2005 From: jim at JIMDONAGHY.COM (Jim Donaghy) Date: Thu, 21 Jul 2005 13:51:57 -0700 Subject: hyperlink in a map In-Reply-To: <200507211335.26364.dylan@iici.no-ip.org> Message-ID: > >I have successfully replicated the example on the Wiki. However, is there any >way to manipulate the attribute that gets saved to the definition? i.e. >is it possible to write a specific attribute from my vector data to the >definition, as opposed to the default numbers (0,1,2...) ? > > I'm just figuring out this feature too, but it looks like you can tell mapserver which attribute to output by specifying it in the CLASSITEM for that layer. Jim From jerl.simpso at GMAIL.COM Thu Jul 21 14:02:12 2005 From: jerl.simpso at GMAIL.COM (Jerl Simpson) Date: Thu, 21 Jul 2005 16:02:12 -0500 Subject: Layer Load time Message-ID: Hello, Is there a way to get the output of how long it takes to load each individual layer? I'm thinking of an output something like: Layer1 0.05s Layer2 0.3s Layer3 20.05s Layer4 0.2s Something like that, so I can pinpoint problem layers I may need to either create a tileindex on or refine the one I have. Thanks, jerl From dylan at IICI.NO-IP.ORG Thu Jul 21 15:53:05 2005 From: dylan at IICI.NO-IP.ORG (Dylan Beaudette) Date: Thu, 21 Jul 2005 15:53:05 -0700 Subject: client side image map: classitem Message-ID: Greetings, I have recently set up a working version of the image map example provided on the mapserver wiki here: http://169.237.35.250/~dylan/mapserver/dhtml/image_map_test.php However, the polygons are labeled as 0,1,2,3 ... is there some way for the image map to be constructed using an attribute in the original data source? Per Jim Donaghy's suggestion, I have tried adding CLASSITEM "NAME" to my mapfile, but it does not seem to affect the resulting image map... any ideas? -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From fredlucca at GMAIL.COM Thu Jul 21 16:00:09 2005 From: fredlucca at GMAIL.COM (Frederico Lucca) Date: Thu, 21 Jul 2005 20:00:09 -0300 Subject: Problems with gdal In-Reply-To: <931f8ea905072113313600f01f@mail.gmail.com> Message-ID: On 7/21/05, Frank Warmerdam wrote: > On 7/21/05, Frederico Lucca wrote: > > Hello Frank, > > > > Well, I translate some TABs to SHPs using org2ogr. > > Then I return to my tests and loopings, and I get this error. > > > > C [libpthread.so.0+0x6a12] __pthread_mutex_lock+0x12 > > > > What can I do now? > > I call a jsp page which create a unique map, I call this application > > from another with a looping - for 1 to 100. Then, I put 3 or 4 of > > this applications running at same time. And I get the error. When I > > was using TABs I get the error (with gdal) with 2 applications running > > at same time. > > Frederico, > > This is using mapserver and shapefiles, without using CONNECTIONTYPE > OGR, right? > > I am not sure why you are running into problems. It isn't a configuration > I can easily reproduce myself. > > Sorry, > -- > ---------------------------------------+-------------------------------------- Hello Frank, Yes, I'm just using DATA. I don't know, I'm just testing the application to put the server in production. I need to stress the software and hardware, but I found some problems. Well, this is the configuration in my PC, I will install mapserver into a really great server. I will try this and see what I get. It's not a big software, I don't use threads. I'm juts simulating the request from the client. There is something you want to know about the application? Could help you to help me. Well, thanks a lot for everything. Best Regards, Fred -- "Everything under the sun is in tune But the sun is eclipsed by the moon" From gsw at GLOBEXPLORER.COM Thu Jul 21 16:25:32 2005 From: gsw at GLOBEXPLORER.COM (Gregory S. Williamson) Date: Thu, 21 Jul 2005 16:25:32 -0700 Subject: inline feature -- adding a point by URL does not work Message-ID: David, >-----Original Message----- >From: Fawcett, David [mailto:David.Fawcett at state.mn.us] >Sent: Thu 7/21/2005 1:11 PM >To: Gregory S. Williamson >Cc: >Subject: RE: [UMN_MAPSERVER-USERS] inline feature -- adding a point by URL does not work >Hopefully that was it, let me know. > >For testing, I would probably put a lot of the args that you are passing in >the URL, directly in the Map file (image path, imageurl, etc.) You could >also test with just mode=map and not bother to include all of the form vars >like zoomdir, zoomsize, program, etc. > >David. Thank you for your help ... alas, still no sccess. I have stripped down the URL to a minimum, and placed some args into the map file. Alas, I just get a blank image. I am wondering if there is anything else that needs to be done to draw such a thing ? The error log says: Thu Jul 21 16:11:23 2005,1916,127.0.0.1,SSF,3,-122.513100 37.686550 -122.350900 37.848750,-1.000000 -1.000000,ssfmappnts ,normal execution The desired point does seem to fall within the indicated extent (url broken up for readability): http://localhost/cgi-bin/mapserv_46.exe?mode=map& map=C%3A%2Fms4w%2FApache%2Fhtdocs%2Fssf%2Fssf5.map& layer=ssfmappnts&map_ssfmappnts_feature=new& map_ssfmappnts_feature_points=-122.438131+37.777319& map_ssfmappnts_feature_text=Old848& program=%2Fcgi-bin%2Fmapserv.exe When I run this variant with a shapefile it paints a nice red dot; when I do it with the inline feature I just get a blank background. When I run this request with the browse mode the layer shows up in my legend, and zooming in with a streets layer does seem to indicate that I'm centered correctly. Amended map file is below. Thanks for any suggestions or advice! Greg W. (I have cut out the legend, query map and some layers that don't seem relvant) # SSF map file NAME SSF STATUS ON SIZE 600 600 EXTENT -122.5131 37.7095 -122.3509 37.8258 UNITS DD SHAPEPATH "DATA" FONTSET "C:\ms4w\Apache\htdocs\ssf\fonts\fonts.list" IMAGECOLOR 0 0 0 IMAGETYPE PNG PROJECTION "+proj=latlong +ellps=GRS80" END # # Start of web interface definition (including WMS enabling metadata) # WEB HEADER ssf_header.html TEMPLATE ssf.html FOOTER ssf_footer.html MINSCALE 1000 MAXSCALE 1550000 LOG "mapserver.log" # IMAGEPATH "set in ssf_init.html" IMAGEPATH "../tmp/" # IMAGEURL "set in ssf_init.html" IMAGEURL "../tmp/" END ... SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END ... LAYER NAME ssfmappnts DEBUG ON STATUS ON # DATA geopnt1 # doesn't matter for dynamic points if this exists or not TYPE ANNOTATION LABELITEM "POINT_NAME" LABELCACHE ON CLASS NAME "SSF Map Points" SYMBOL 'circle' SIZE 6 COLOR 255 0 0 LABEL ANTIALIAS TRUE TYPE TRUETYPE FONT garamond-bold SIZE 12 COLOR 50 20 20 OUTLINECOLOR 255 225 90 POSITION AUTO BUFFER 2 FORCE TRUE END TEMPLATE "ssf_m_query.html" END HEADER "ssf_mhdr.html" FOOTER "ssf_mftr.html" TOLERANCE 8 END # Rec Areas From flavio at TYDAC.CH Thu Jul 21 22:54:19 2005 From: flavio at TYDAC.CH (Flavio Hendry) Date: Fri, 22 Jul 2005 07:54:19 +0200 Subject: off topic: earth.google.com In-Reply-To: Message-ID: hi all as google is obviously a hot topic, have a look at http://earth.google.com/. just mindblowing. Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ ? ? ?Mit freundlichen Gruessen / Kind Regards ############? ? ? ? ? ? ?mailto:flavio at tydac.ch ############ ? ? ? ? TYDAC AG - http://www.tydac.ch #### ? ?#### ? ? ? ?Geographic Information Solutions #### ? ?#### ? ? ? ? Luternauweg 12 -- CH-3006 Bern ############ ? Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- -----Original Message----- From: Flavio Hendry To: MAPSERVER-USERS at LISTS.UMN.EDU Date: Thu, 21 Jul 2005 14:52:46 +0200 Subject: Re: [UMN_MAPSERVER-USERS] New google maps > we always said that the moon is a pice of swiss cheese. now it is > proved! thank you google ... > > Mit freundlichem Gruss / Best Regards > Flavio Hendry > > ---------------------------------------------------------------- > TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual > ---------------------------------------------------------------- > ############ ? ? ?Mit freundlichen Gruessen / Kind Regards > ############? ? ? ? ? ? ?mailto:flavio at tydac.ch > ############ ? ? ? ? TYDAC AG - http://www.tydac.ch > #### ? ?#### ? ? ? ?Geographic Information Solutions > #### ? ?#### ? ? ? ? Luternauweg 12 -- CH-3006 Bern > ############ ? Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 > ---------------------------------------------------------------- > > > -----Original Message----- > From: Stephen Woodbridge > To: MAPSERVER-USERS at LISTS.UMN.EDU > Date: Wed, 20 Jul 2005 09:53:27 -0400 > Subject: [UMN_MAPSERVER-USERS] New google maps > > > http://moon.google.com From flavio at TYDAC.CH Thu Jul 21 22:55:51 2005 From: flavio at TYDAC.CH (Flavio Hendry) Date: Fri, 22 Jul 2005 07:55:51 +0200 Subject: off topic: earth.google.com Message-ID: hi all as google is obviously a hot issue, have a look at http://earth.google.com/. just mindblowing. Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- From BEN at SYNCERA-ITSOLUTIONS.NL Fri Jul 22 00:35:44 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri, 22 Jul 2005 09:35:44 +0200 Subject: Virtual Spatial Data and MySQL client Message-ID: Hi Frank, I added the debug statement and the user is empty. Btw, on another note, how can one specify the schema to be used, or does one just prepend it to the tablename? D:\ms4w\apps\stragisweb\htdocs\sites\mdwh\data>ogrinfo bedrijven_mysqlclient.ovf ERROR 4: Update access not supported for VRT datasources. user=, password=16253249 ERROR 1: MySQL connect failed for: user=root,password=psv9570,port=3306 Access denied for user 'BEN'@'localhost' (using password: YES) FAILURE: Unable to open datasource `bedrijven_mysqlclient.ovf' with the following drivers .. -> ESRI Shapefile -> UK .NTF -> SDTS -> TIGER -> S57 -> MapInfo File -> DGN -> VRT -> AVCBin -> REC -> Memory -> CSV -> GML -> ODBC -> MySQL -> OCI Ovf file used: MYSQL:user=root,password=psv9570,port=3306 bedrijven wkbPoint epsg:28992 Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Frank Warmerdam 07/21/05 06:56pm >>> On 7/21/05, Bart van den Eijnden wrote: > Hi list, > > I can't connect to a MySQL database using the MySQL client in OGR. I am using MySQL client 4.1 on a 4.1 localhost database. It works fine through ODBC. > > It looks like GDAL/OGR is trying to log in with a different user than I specify, the Windows user logged on to the computer, how come? > > I get the following: > > D:\ms4w\apps\stragisweb\htdocs\sites\mdwh\data>ogrinfo bedrijven_mysqlclient.ovf > > ERROR 4: Update access not supported for VRT datasources. > Warning 1: 'database=westholland' in MYSQL datasource definition not recognised > and ignored. > ERROR 1: MySQL connect failed for: user=root,password=psv9570,port=3306,database > =westholland > Access denied for user 'BEN'@'localhost' (using password: YES) > FAILURE: Bart, Sorry, I don't know why that isn't working. As I read the code, it should have passed in root as the userid. In the module: gdal/ogr/ogrsf_frmts/mysql/ogrmysqldatasource.cpp there is a call like: if( hConn && mysql_real_connect( hConn, oHost.length() ? oHost.c_str() : NULL, oUser.length() ? oUser.c_str() : NULL, oPassword.length() ? oPassword.c_str() : NULL, oDB.length() ? oDB.c_str() : NULL, nPort, NULL, 0 ) == NULL ) { CPLError( CE_Failure, CPLE_AppDefined, "MySQL connect failed for: %s\n%s", pszNewName + 6, mysql_error( hConn ) ); mysql_close( hConn ); hConn = NULL; } My suggestion is that you add a printf() to report the actual arguments being passed to this functions for debugging purposes. eg. printf( "user=%s, password=%d\n", oUser.c_str(), oPassword.c_str() ); If the user reported by this is root then it is something funky deep inside the mysql API. If it is "BEN" or an empty string then we know that something is going wrong in the parsing logic for the datasource name (which you can follow up with me). Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From bvanmeul at EBE.UCT.AC.ZA Fri Jul 22 02:53:03 2005 From: bvanmeul at EBE.UCT.AC.ZA (Bas Vanmeulebrouk) Date: Fri, 22 Jul 2005 11:53:03 +0200 Subject: Installing Java MapScript on Windows Message-ID: Hi list, I am trying to install Java MapScript on a Windows XP Professional machine. I have downloaded a binary from http://hobu.stat.iastate.edu/mapserver/. When I try to load the MapScript dll in my Java class, it causes the following error: The procedure entry point CPLGetLastErrorMsg could not be located in the dynamic link library gdal12.dll and then Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program Files\MapServer\JavaMapScript\mapscript.dll: The specified procedure could not be found. I assume mapscript.dll can't find the additional dll's like gdal12.dll. I am positive there is only one instance of these dll's on my machine. I have tried to set the PATH environment variable and I have put all the dll's in the same directory as my Java class, none of which seem to work. Does anyone know how to solve this problem? I have read the instructions on http://ms.gis.umn.edu/docs/howto/java_mapscript_Tomcat_55 and the MapServer wiki, but these don't seem to help. The binary also contains a mapserv.exe CGI executable and this one is working fine, both mapserv.exe -v and when I invoke it through a webbrowser. Kind regards, Bas Vanmeulebrouk. import java.io.IOException; import edu.umn.gis.mapscript.*; public class myFirstMapMain { public static void main(String[] args) throws IOException { mapObj map = new mapObj("c:\\temp\\test.map"); imageObj image = map.draw(); image.save("c:\\temp\\test.png", map); } } From BEN at SYNCERA-ITSOLUTIONS.NL Fri Jul 22 04:16:36 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri, 22 Jul 2005 13:16:36 +0200 Subject: Virtual Spatial Data and MySQL client Message-ID: Frank, I have tracked down the issue by looking at the source code. There was a problem with my MYSQL connect statement, now I use the following which works, note the name of the schema in front of the connect string, this seems to make the big difference: MYSQL:westholland,user=root,password=psv9570,port=3306,tables=bedrijven I think an example would help on the MySQL driver page :-) : http://www.gdal.org/ogr/drv_mysql.html D:\ms4w\apps\stragisweb\htdocs\sites\mdwh\data>ogrinfo bedrijven_mysqlclient.ovf ERROR 4: Update access not supported for VRT datasources. user=root, password=16254705 Had to open data source read-only. INFO: Open of `bedrijven_mysqlclient.ovf' using driver `VRT' successful. 1: bedrijven (Point) Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Bart van den Eijnden 07/22/05 09:35am >>> Hi Frank, I added the debug statement and the user is empty. Btw, on another note, how can one specify the schema to be used, or does one just prepend it to the tablename? D:\ms4w\apps\stragisweb\htdocs\sites\mdwh\data>ogrinfo bedrijven_mysqlclient.ovf ERROR 4: Update access not supported for VRT datasources. user=, password=16253249 ERROR 1: MySQL connect failed for: user=root,password=psv9570,port=3306 Access denied for user 'BEN'@'localhost' (using password: YES) FAILURE: Unable to open datasource `bedrijven_mysqlclient.ovf' with the following drivers ... -> ESRI Shapefile -> UK .NTF -> SDTS -> TIGER -> S57 -> MapInfo File -> DGN -> VRT -> AVCBin -> REC -> Memory -> CSV -> GML -> ODBC -> MySQL -> OCI Ovf file used: MYSQL:user=root,password=psv9570,port=3306 bedrijven wkbPoint epsg:28992 Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Frank Warmerdam 07/21/05 06:56pm >>> On 7/21/05, Bart van den Eijnden wrote: > Hi list, > > I can't connect to a MySQL database using the MySQL client in OGR. I am using MySQL client 4.1 on a 4.1 localhost database. It works fine through ODBC. > > It looks like GDAL/OGR is trying to log in with a different user than I specify, the Windows user logged on to the computer, how come? > > I get the following: > > D:\ms4w\apps\stragisweb\htdocs\sites\mdwh\data>ogrinfo bedrijven_mysqlclient.ovf > > ERROR 4: Update access not supported for VRT datasources. > Warning 1: 'database=westholland' in MYSQL datasource definition not recognised > and ignored. > ERROR 1: MySQL connect failed for: user=root,password=psv9570,port=3306,database > =westholland > Access denied for user 'BEN'@'localhost' (using password: YES) > FAILURE: Bart, Sorry, I don't know why that isn't working. As I read the code, it should have passed in root as the userid. In the module: gdal/ogr/ogrsf_frmts/mysql/ogrmysqldatasource.cpp there is a call like: if( hConn && mysql_real_connect( hConn, oHost.length() ? oHost.c_str() : NULL, oUser.length() ? oUser.c_str() : NULL, oPassword.length() ? oPassword.c_str() : NULL, oDB.length() ? oDB.c_str() : NULL, nPort, NULL, 0 ) == NULL ) { CPLError( CE_Failure, CPLE_AppDefined, "MySQL connect failed for: %s\n%s", pszNewName + 6, mysql_error( hConn ) ); mysql_close( hConn ); hConn = NULL; } My suggestion is that you add a printf() to report the actual arguments being passed to this functions for debugging purposes. eg. printf( "user=%s, password=%d\n", oUser.c_str(), oPassword.c_str() ); If the user reported by this is root then it is something funky deep inside the mysql API. If it is "BEN" or an empty string then we know that something is going wrong in the parsing logic for the datasource name (which you can follow up with me). Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From Debbie.Pagurek at EC.GC.CA Fri Jul 22 05:52:25 2005 From: Debbie.Pagurek at EC.GC.CA (Pagurek,Debbie [NCR]) Date: Fri, 22 Jul 2005 08:52:25 -0400 Subject: inline feature -- adding a point by URL does not work Message-ID: Just a guess - I haven't tested this - but shouldn't your layer be TYPE POINT? Not annotation. D. Pagurek -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gregory S. Williamson Sent: Thursday, July 21, 2005 7:26 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] inline feature -- adding a point by URL does not work David, >-----Original Message----- >From: Fawcett, David [mailto:David.Fawcett at state.mn.us] >Sent: Thu 7/21/2005 1:11 PM >To: Gregory S. Williamson >Cc: >Subject: RE: [UMN_MAPSERVER-USERS] inline feature -- adding a point by URL does not work >Hopefully that was it, let me know. > >For testing, I would probably put a lot of the args that you are >passing in >the URL, directly in the Map file (image path, imageurl, etc.) You could >also test with just mode=map and not bother to include all of the form vars >like zoomdir, zoomsize, program, etc. > >David. Thank you for your help ... alas, still no sccess. I have stripped down the URL to a minimum, and placed some args into the map file. Alas, I just get a blank image. I am wondering if there is anything else that needs to be done to draw such a thing ? The error log says: Thu Jul 21 16:11:23 2005,1916,127.0.0.1,SSF,3,-122.513100 37.686550 -122.350900 37.848750,-1.000000 -1.000000,ssfmappnts ,normal execution The desired point does seem to fall within the indicated extent (url broken up for readability): http://localhost/cgi-bin/mapserv_46.exe?mode=map& map=C%3A%2Fms4w%2FApache%2Fhtdocs%2Fssf%2Fssf5.map& layer=ssfmappnts&map_ssfmappnts_feature=new& map_ssfmappnts_feature_points=-122.438131+37.777319& map_ssfmappnts_feature_text=Old848& program=%2Fcgi-bin%2Fmapserv.exe When I run this variant with a shapefile it paints a nice red dot; when I do it with the inline feature I just get a blank background. When I run this request with the browse mode the layer shows up in my legend, and zooming in with a streets layer does seem to indicate that I'm centered correctly. Amended map file is below. Thanks for any suggestions or advice! Greg W. (I have cut out the legend, query map and some layers that don't seem relvant) # SSF map file NAME SSF STATUS ON SIZE 600 600 EXTENT -122.5131 37.7095 -122.3509 37.8258 UNITS DD SHAPEPATH "DATA" FONTSET "C:\ms4w\Apache\htdocs\ssf\fonts\fonts.list" IMAGECOLOR 0 0 0 IMAGETYPE PNG PROJECTION "+proj=latlong +ellps=GRS80" END # # Start of web interface definition (including WMS enabling metadata) # WEB HEADER ssf_header.html TEMPLATE ssf.html FOOTER ssf_footer.html MINSCALE 1000 MAXSCALE 1550000 LOG "mapserver.log" # IMAGEPATH "set in ssf_init.html" IMAGEPATH "../tmp/" # IMAGEURL "set in ssf_init.html" IMAGEURL "../tmp/" END ... SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END ... LAYER NAME ssfmappnts DEBUG ON STATUS ON # DATA geopnt1 # doesn't matter for dynamic points if this exists or not TYPE ANNOTATION LABELITEM "POINT_NAME" LABELCACHE ON CLASS NAME "SSF Map Points" SYMBOL 'circle' SIZE 6 COLOR 255 0 0 LABEL ANTIALIAS TRUE TYPE TRUETYPE FONT garamond-bold SIZE 12 COLOR 50 20 20 OUTLINECOLOR 255 225 90 POSITION AUTO BUFFER 2 FORCE TRUE END TEMPLATE "ssf_m_query.html" END HEADER "ssf_mhdr.html" FOOTER "ssf_mftr.html" TOLERANCE 8 END # Rec Areas From assefa at DMSOLUTIONS.CA Fri Jul 22 07:19:14 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Fri, 22 Jul 2005 10:19:14 -0400 Subject: SVG output in real world coords In-Reply-To: <20050721152400.22450.qmail@web53909.mail.yahoo.com> Message-ID: Jon, Part of the code is actually there but commented out since It was not tested. I could quickly add it back if your are interested in helping with the testing. I have entered a bug on it : http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1429. Later, Jon Saints wrote: > SVG output from mapserver is very interesting. Is it > possible to use mapserver to output SVG maps using > geographic coordinates instead of pixel coordinates? > > Here is an example of a script that will do it: > http://www.carto.net/papers/svg/utils/shp2svg/ > > Thanks > Jon > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From ml.dje at GEOCONTENT.DE Fri Jul 22 07:27:36 2005 From: ml.dje at GEOCONTENT.DE (Dirk Jesko) Date: Fri, 22 Jul 2005 16:27:36 +0200 Subject: Problem with queryByShape Message-ID: Hi, I use the following code to query a layer in PHPMapscript: $shape->project($layerSRS, $mapSRS); $found = $layer->queryByShape($shape); This only works with PHPMapScript 4.4 and Shape-layers. If I use 4.4 with PostGIS-layers PHP crashes with an error in the mapscript module when executing queryByShape. Using version 4.6 the PHP process just runs for ever in both cases (Shape and PostGIS), i.e. the $layer->queryByShape($shape) does not return, but there is no crash and no error message. On the other hand, queryByRect works fine in all cases, i.e. there is no problem with $r = $shape->bounds; $r->project($layerSRS, $mapSRS); $found = $layer->queryByRect($r); except that it returns more results than desired. I found an older bug-report and some discussions on the list about queryByShape issues, but non really helped to solve the problem. Is this there still a know problem with that function and is there a possible solution? My configuration: Windows XP Pro Apache 2.0.54 PHP 4.4.0 (CGI) - same with 4.3.11 Mapserver/Mapscript 4.4.2/4.6.0 (binary from maptools.org) Thanks for any help, Dirk From BEN at SYNCERA-ITSOLUTIONS.NL Fri Jul 22 07:29:50 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri, 22 Jul 2005 16:29:50 +0200 Subject: does the size of the dbf file influence the size of the spatial index (qix)? Message-ID: Hi list, normally my spatial indexes are small compared to the size of my shapefiles.. Now I have the following situation: 04-07-2005 16:46 163.888.026 acn.dbf 04-07-2005 16:46 39.730.468 acn.shp 04-07-2005 16:46 4.966.396 acn.shx 22-07-2005 16:21 119.741.008 acn.qix So the spatial index is 119 Mb, while the shapefile is only 39 Mb. For another shapefile I have the same type of situation: 28-02-2005 10:58 22.805.942 hnrtekst_text.dbf 28-02-2005 10:58 1.793.808 hnrtekst_text.shp 28-02-2005 10:58 512.588 hnrtekst_text.shx 22-07-2005 16:24 6.434.784 hnrtekst_text.qix Does the dbf size influence the size of the spatial index? I can't make any sense out of that, but maybe somebody can ... ? Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl From saintsjd at YAHOO.COM Fri Jul 22 07:36:53 2005 From: saintsjd at YAHOO.COM (Jon Saints) Date: Fri, 22 Jul 2005 07:36:53 -0700 Subject: SVG output in real world coords In-Reply-To: <42E10062.3060402@dmsolutions.ca> Message-ID: I can definitly help with testing. You could uncomment the lines of code, or if you would like, let me know the line numbers and I could do it in my own source. Thanks --- Yewondwossen Assefa wrote: > Jon, > > Part of the code is actually there but commented > out since It was not > tested. I could quickly add it back if your are > interested in helping > with the testing. I have entered a bug on it : > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1429. > > Later, > > Jon Saints wrote: > > SVG output from mapserver is very interesting. Is > it > > possible to use mapserver to output SVG maps using > > geographic coordinates instead of pixel > coordinates? > > > > Here is an example of a script that will do it: > > http://www.carto.net/papers/svg/utils/shp2svg/ > > > > Thanks > > Jon > > > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- > > From bfraser at GEOANALYTIC.COM Fri Jul 22 07:57:56 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Fri, 22 Jul 2005 08:57:56 -0600 Subject: off topic: earth.google.com Message-ID: Flavio, Google Earth (not to be confused with Google Maps) is more than just mind blowing. In my business (Satellite imagery sales and service) it's world shaking. The top ten things I like about Google Earth: 1. It's free, with upgrades for a fee. 2. The entire world (almost) is covered with pan-sharpened Landsat (15m pixels). 3. All (most?, some?) of Digital Globe's Quickbird imagery is shown (0.6m pixels). 4. The user-interface is dead simple. 5. The fade-in/fade-out of vectors and annotation on zooming is great. 6. The performance fantastic (like streaming video). 7. It's 3d. You can tilt the world and fly thought canyons. 8. It's even more 3d. It will render 3d objects such as buildings. 9. You can overlay data (vectors and raster) from your computer. 10. You can connect to web data sources (like WMS with about 10 lines of server-based scripting). The application: http://earth.google.com (after install, do View -> Play Tour) The community: http://bbs.keyhole.com Brent Fraser ----- Original Message ----- From: "Flavio Hendry" To: Sent: Thursday, July 21, 2005 11:55 PM Subject: [UMN_MAPSERVER-USERS] off topic: earth.google.com > hi all > > as google is obviously a hot issue, have a look at http://earth.google.com/. > > just mindblowing. > > Mit freundlichem Gruss / Best Regards > Flavio Hendry > > ---------------------------------------------------------------- > TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual > ---------------------------------------------------------------- > ############ Mit freundlichen Gruessen / Kind Regards > ############ mailto:flavio at tydac.ch > ############ TYDAC AG - http://www.tydac.ch > #### #### Geographic Information Solutions > #### #### Luternauweg 12 -- CH-3006 Bern > ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 > ---------------------------------------------------------------- From bhudspeth at EDAC.UNM.EDU Fri Jul 22 07:48:22 2005 From: bhudspeth at EDAC.UNM.EDU (William Hudspeth) Date: Fri, 22 Jul 2005 08:48:22 -0600 Subject: Can't load WMS raster layer using Python Mapscript Message-ID: I am using Mapserver 4.4.1 on Fedora Core 3 and am having problems getting a WMS Raster Layer to display in my map. The error I am getting is: Traceback (most recent call last): File "/var/www/cgi-bin/reason/mapmodule4.py", line 675, in build_map self.map_image=self.currentMap.draw() File "/usr/local/lib/python2.4/site-packages/mapscript.py", line 1419, in draw def draw(*args): return _mapscript.mapObj_draw(*args) MapServerError: msRASTERLayerOpen(): General error message. Attempt to open a RASTER layer, but this is only supported after a raster query. In my map file, the WEB element looks like this: WEB IMAGEPATH "/var/www/html/tmp" IMAGEURL "/tmp/" METADA "wms_title" "REASoN WebMap Interface" "wms_onlineresource" "http://falstaff.unm.edu/cgi-bin/mapserv? map=reason/reason.map&" "wms_srs" "EPSG:4326" END #end metadata END #end web and, the layer element looks like this: LAYER NAME "global_mosaic" TYPE RASTER STATUS ON CONNECTION "http://onearth.jpl.nasa.gov/wms.cgi?" CONNECTIONTYPE WMS METADATA wms_abstract "JPL Landsat7 ETM+ Global Mosaic WMS" wms_keywordlist "Global Mosaic, JPL, Landsat7 ETM+, WMS" wms_opaque "0" wms_srs "EPSG:4326" wms_name "global_mosaic" wms_title "WMS Global Mosaic, pan sharpened" wms_formatlist "image/png,image/jpeg" wms_format "image/jpeg" END #end metadata PROJECTION "init=epsg:4326" END END #end layer I would appreciate any insight on the error message I am receiving. Thank you, Bill From nbarker at RSINC.COM Fri Jul 22 08:05:55 2005 From: nbarker at RSINC.COM (Norman Barker) Date: Fri, 22 Jul 2005 16:05:55 +0100 Subject: off topic: earth.google.com Message-ID: -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Brent Fraser Sent: Friday, July 22, 2005 3:58 PM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] off topic: earth.google.com Flavio, Google Earth (not to be confused with Google Maps) is more than just mind blowing. In my business (Satellite imagery sales and service) it's world shaking. The top ten things I like about Google Earth: 1. It's free, with upgrades for a fee. 2. The entire world (almost) is covered with pan-sharpened Landsat (15m pixels). 3. All (most?, some?) of Digital Globe's Quickbird imagery is shown (0.6m pixels). 4. The user-interface is dead simple. 5. The fade-in/fade-out of vectors and annotation on zooming is great. 6. The performance fantastic (like streaming video). 7. It's 3d. You can tilt the world and fly thought canyons. 8. It's even more 3d. It will render 3d objects such as buildings. 9. You can overlay data (vectors and raster) from your computer. 10. You can connect to web data sources (like WMS with about 10 lines of server-based scripting). The application: http://earth.google.com (after install, do View -> Play Tour) The community: http://bbs.keyhole.com Brent Fraser Everyone is saying it is amazing, and I like it, it is fun. But you can't really do that much with the KWL service provider interface, and the streaming technology is proprietary. When they release an API so that I can change the visual appearance of controls, add my own gui panels, add processing functionality, then I will be really impressed!! Norman From cdaily at GMAIL.COM Fri Jul 22 08:11:49 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Fri, 22 Jul 2005 10:11:49 -0500 Subject: off topic: earth.google.com In-Reply-To: <00cc01c58ecd$bed66a50$160002c0@shark> Message-ID: I can't remember the last time I had so much fun just playing with software. We managed to export our real estate listings here in Chicago to it. Feel free to check it out if you're interested: http://www2.prupref.com/announce/google-earth.php Awesome software. -Camden Daily Prudential Preferred Properties On 7/22/05, Brent Fraser wrote: > Flavio, > > Google Earth (not to be confused with Google Maps) is more than just mind > blowing. In my business (Satellite imagery sales and service) it's world > shaking. > > The top ten things I like about Google Earth: > > 1. It's free, with upgrades for a fee. > 2. The entire world (almost) is covered with pan-sharpened Landsat (15m > pixels). > 3. All (most?, some?) of Digital Globe's Quickbird imagery is shown (0.6m > pixels). > 4. The user-interface is dead simple. > 5. The fade-in/fade-out of vectors and annotation on zooming is great. > 6. The performance fantastic (like streaming video). > 7. It's 3d. You can tilt the world and fly thought canyons. > 8. It's even more 3d. It will render 3d objects such as buildings. > 9. You can overlay data (vectors and raster) from your computer. > 10. You can connect to web data sources (like WMS with about 10 lines of > server-based scripting). > > The application: http://earth.google.com (after install, do View -> Play > Tour) > The community: http://bbs.keyhole.com > > > Brent Fraser > > > ----- Original Message ----- > From: "Flavio Hendry" > To: > Sent: Thursday, July 21, 2005 11:55 PM > Subject: [UMN_MAPSERVER-USERS] off topic: earth.google.com > > > > hi all > > > > as google is obviously a hot issue, have a look at > http://earth.google.com/. > > > > just mindblowing. > > > > Mit freundlichem Gruss / Best Regards > > Flavio Hendry > > > > ---------------------------------------------------------------- > > TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual > > ---------------------------------------------------------------- > > ############ Mit freundlichen Gruessen / Kind Regards > > ############ mailto:flavio at tydac.ch > > ############ TYDAC AG - http://www.tydac.ch > > #### #### Geographic Information Solutions > > #### #### Luternauweg 12 -- CH-3006 Bern > > ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 > > ---------------------------------------------------------------- > From sgillies at FRII.COM Fri Jul 22 08:22:49 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Fri, 22 Jul 2005 09:22:49 -0600 Subject: Can't load WMS raster layer using Python Mapscript In-Reply-To: Message-ID: On Jul 22, 2005, at 8:48 AM, William Hudspeth wrote: > I am using Mapserver 4.4.1 on Fedora Core 3 and am having problems > getting a WMS Raster Layer to display in my map. The error I am getting > is: > > Traceback (most recent call last): > File "/var/www/cgi-bin/reason/mapmodule4.py", line 675, in build_map > self.map_image=self.currentMap.draw() > File "/usr/local/lib/python2.4/site-packages/mapscript.py", line > 1419, > in draw > def draw(*args): return _mapscript.mapObj_draw(*args) > MapServerError: msRASTERLayerOpen(): General error message. Attempt to > open a RASTER layer, but this is only supported after a raster query. > > In my map file, the WEB element looks like this: > > WEB > IMAGEPATH "/var/www/html/tmp" > IMAGEURL "/tmp/" > METADA > "wms_title" "REASoN WebMap Interface" > "wms_onlineresource" "http://falstaff.unm.edu/cgi-bin/mapserv? > map=reason/reason.map&" > "wms_srs" "EPSG:4326" > END #end metadata > END #end web > > and, the layer element looks like this: > > LAYER > NAME "global_mosaic" > TYPE RASTER > STATUS ON > CONNECTION "http://onearth.jpl.nasa.gov/wms.cgi?" > CONNECTIONTYPE WMS > METADATA > wms_abstract "JPL Landsat7 ETM+ Global Mosaic WMS" > wms_keywordlist "Global Mosaic, JPL, Landsat7 ETM+, WMS" > wms_opaque "0" > wms_srs "EPSG:4326" > wms_name "global_mosaic" > wms_title "WMS Global Mosaic, pan sharpened" > wms_formatlist "image/png,image/jpeg" > wms_format "image/jpeg" > END #end metadata > PROJECTION > "init=epsg:4326" > END > END #end layer > > > I would appreciate any insight on the error message I am receiving. > > Thank you, > > Bill > > Bill, this appears to be a bug in 4.4.1 that was fixed (IIRC) in 4.4.2 http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1118 cheers, Sean -- Sean Gillies sgillies at frii dot com http://zcologia.com From j.l.h.hartmann at UVA.NL Fri Jul 22 08:26:51 2005 From: j.l.h.hartmann at UVA.NL (Jan Hartmann) Date: Fri, 22 Jul 2005 17:26:51 +0200 Subject: off topic: earth.google.com In-Reply-To: Message-ID: A comparable application from NASA, more for scientific purposes: http://worldwind.arc.nasa.gov/ Lets you add and combine BlueMarble, Landsat, USGS, SRTM, Modis, Globe with your own place markers, WMS layers, addons, plugins, ... And this one is Open Source ... Jan Flavio Hendry wrote: > hi all > > as google is obviously a hot topic, have a look at > http://earth.google.com/. > > just mindblowing. From lfilak at MEDINACO.ORG Fri Jul 22 08:32:20 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Fri, 22 Jul 2005 11:32:20 -0400 Subject: off topic: earth.google.com Message-ID: The following message was sent by Jan Hartmann on Fri, 22 Jul 2005 17:26:51 +0200. > A comparable application from NASA, more for scientific purposes: > > http://worldwind.arc.nasa.gov/ > > Lets you add and combine BlueMarble, Landsat, USGS, SRTM, Modis, Globe > with your own place markers, WMS layers, addons, plugins, ... > > And this one is Open Source ... All, I guess I'm missing/does anyone know how this compares to: http://www.ossim.org/tiki-read_article.php?articleId=3 Lowell From tylermitchell at SHAW.CA Fri Jul 22 08:38:25 2005 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Fri, 22 Jul 2005 08:38:25 -0700 Subject: off topic: earth.google.com Message-ID: > > http://worldwind.arc.nasa.gov/ > > > > Lets you add and combine BlueMarble, Landsat, > > USGS, SRTM, Modis, > > with your own place markers, WMS layers, addons, > > plugins, ... > > And this one is Open Source ... > > All, > > I guess I'm missing/does anyone know how this compares to: > http://www.ossim.org/tiki-read_article.php?articleId=3 > > Lowell Lowell, The osgPlanet project is a cross-platform open source project. WorldWind is windows only. Norman can correct me and add to this statement :) Tyler From bfraser at GEOANALYTIC.COM Fri Jul 22 08:44:49 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Fri, 22 Jul 2005 09:44:49 -0600 Subject: off topic: earth.google.com Message-ID: Norman, Good points. It really is just a simple geographic data viewer, but it's the usability in that context that is impressive. And here's the Top Ten Things I DON'T Like about Google Earth (but then I haven't done much digging): 1. No direct support for WMS (and WFS, etc) 2. No map scale, no arrow pointer for mouse (which finger does that lat/lon reference?) 3. Rough vectors outside of U.S. 4. Thin API 5. No spec on Horizontal or Vertical datums 6. No transparency setting (e.g. white is transparent) on Network Link raster data sources 7. Streaming server (Keyhole) is proprietary 8. No ability to add your own DEM (without Keyhole server) 9. No min/max scale setting for layers (?) 10. Local images require manual warping (no support for Geotiff tags etc) On the other hand Google Earth could serve as a functionality to-do list for osgPlanet: http://www.ossim.org/tiki-read_article.php?articleId=3 Brent ----- Original Message ----- From: "Norman Barker" To: Sent: Friday, July 22, 2005 9:05 AM Subject: Re: [UMN_MAPSERVER-USERS] off topic: earth.google.com Everyone is saying it is amazing, and I like it, it is fun. But you can't really do that much with the KWL service provider interface, and the streaming technology is proprietary. When they release an API so that I can change the visual appearance of controls, add my own gui panels, add processing functionality, then I will be really impressed!! Norman From dylan at IICI.NO-IP.ORG Fri Jul 22 09:17:15 2005 From: dylan at IICI.NO-IP.ORG (Dylan Beaudette) Date: Fri, 22 Jul 2005 09:17:15 -0700 Subject: hyperlink in a map [solved] In-Reply-To: <000601c58e79$cb16e730$6401a8c0@cs41617> Message-ID: Bob and Jim, Thanks again for the help. It turns out that I was using a link to the image map file, and this changes to my mapserver .MAP file had no effect. The CLASSITEM keyword solved the problem! Thanks! On Jul 21, 2005, at 9:56 PM, Bob Bruce - Programmer wrote: > Dylan: > I see that Jim has already replied to your email and I believe that > he has your answer. > > I was glad to have been of some help to you, hopefully I will be able > to get my changes for point symbols implemented in the release of the > MapServer soon and vector symbols will be available for imagemapping > just like polygons are at the present. > > Bob Bruce > http://www.hwps.ca > > -----Original Message----- > From: Dylan Beaudette [mailto:dylan at iici.no-ip.org] > Sent: 21-Jul-05 3:35 PM > To: Bob Bruce > Cc: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] hyperlink in a map > > > On Wednesday 20 July 2005 10:22 am, Bob Bruce wrote: >> Nuri: >> I use the imagemap feature of MapServer to do this. Right now >> there >> is only support for vector symbols and the 'out of the box' support >> only >> allows for a single URL to be referenced for all symbols. I have made >> my >> own MapServer modifications (which I still need to upload to the >> website) >> that allow for individual symbols to be mapped uniquely, if you are >> into >> building MapServer then I can provide those changes to you. > > Bob, > > Thanks for posting this very helpful link. > > I have successfully replicated the example on the Wiki. However, is > there any > way to manipulate the attribute that gets saved to the > definition? i.e. > is it possible to write a specific attribute from my vector data to > the > definition, as opposed to the default numbers (0,1,2...) ? > > thanks! > > -- > Dylan Beaudette > Soils and Biogeochemistry Graduate Group > University of California at Davis > 530.754.7341 > > > -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From info at POGGENSEE.NET Fri Jul 22 09:26:37 2005 From: info at POGGENSEE.NET (Martin Poggensee) Date: Fri, 22 Jul 2005 11:26:37 -0500 Subject: database connection Message-ID: Is it possible to connect any database which supports the OGC standard with the mapserver ??? I need to visualize geeometric data from different database systems (Sybase, MS SQL Server, mySQL, etc.). From Richard_D_Levine at RAYTHEON.COM Fri Jul 22 09:28:57 2005 From: Richard_D_Levine at RAYTHEON.COM (Rick Levine) Date: Fri, 22 Jul 2005 11:28:57 -0500 Subject: off topic: earth.google.com In-Reply-To: <00ff01c58ed4$4b677710$160002c0@shark> Message-ID: You get a lot more functionality when you pay the subscription fee. We did for Keyhole, but have not yet done so for Google earth. Rick UMN MapServer Users List wrote on 07/22/2005 10:44:49 AM: > Norman, > > Good points. It really is just a simple geographic data viewer, but it's > the usability in that context that is impressive. > > And here's the Top Ten Things I DON'T Like about Google Earth (but then I > haven't done much digging): > > 1. No direct support for WMS (and WFS, etc) > 2. No map scale, no arrow pointer for mouse (which finger does that lat/lon > reference?) > 3. Rough vectors outside of U.S. > 4. Thin API > 5. No spec on Horizontal or Vertical datums > 6. No transparency setting (e.g. white is transparent) on Network Link > raster data sources > 7. Streaming server (Keyhole) is proprietary > 8. No ability to add your own DEM (without Keyhole server) > 9. No min/max scale setting for layers (?) > 10. Local images require manual warping (no support for Geotiff tags etc) > > On the other hand Google Earth could serve as a functionality to-do list for > osgPlanet: > > http://www.ossim.org/tiki-read_article.php?articleId=3 > > Brent > > > ----- Original Message ----- > From: "Norman Barker" > To: > Sent: Friday, July 22, 2005 9:05 AM > Subject: Re: [UMN_MAPSERVER-USERS] off topic: earth.google.com > > > > Everyone is saying it is amazing, and I like it, it is fun. But you can't > really > do that much with the KWL service provider interface, and the streaming > technology > is proprietary. > > When they release an API so that I can change the visual appearance of > controls, add > my own gui panels, add processing functionality, then I will be really > impressed!! > > Norman From lfilak at MEDINACO.ORG Fri Jul 22 10:18:18 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Fri, 22 Jul 2005 13:18:18 -0400 Subject: off topic: earth.google.com Message-ID: The following message was sent by Tyler Mitchell on Fri, 22 Jul 2005 08:38:25 -0700. > > > http://worldwind.arc.nasa.gov/ > > > > > > Lets you add and combine BlueMarble, Landsat, > > > USGS, SRTM, Modis, > > > with your own place markers, WMS layers, addons, > > > plugins, ... > > > And this one is Open Source ... > > > > All, > > > > I guess I'm missing/does anyone know how this compares to: > > http://www.ossim.org/tiki-read_article.php?articleId=3 > > > > Lowell > > Lowell, > The osgPlanet project is a cross-platform open source project. WorldWind is windows only. Norman can correct me and add to this statement :) Tyler, That was my take from the User Meeting also. At this point I can't test worldwind or google-earth to see what differences exist.? Lowell From hobu at IASTATE.EDU Fri Jul 22 10:58:37 2005 From: hobu at IASTATE.EDU (Howard Butler) Date: Fri, 22 Jul 2005 12:58:37 -0500 Subject: Kitchen Sink for 4.6 Message-ID: All, I finally got a chance to refresh my Kitchen Sink builds for MapServer 4.6. Highlights include: - Java MapScript for 1.4 - .NET MapScript for Visual Studio 2003 - Python MapScript for 2.3 and 2.4 - CVS GDAL (7/22/05) - Gobs of default formats - Special builds for Oracle (9.2) and ArcSDE (9.0) (you need to provide your own dlls for these) These builds include what will be 4.6.1 (it contains the latest patches to 4.6). The build most people will want (if they want to use such a thing as this) is . Otherwise, head to to read up on what you might need. WARNING! These builds are not for the faint of heart. They are little more than dlls and data files to get going. If you know that you need specific options in these builds, then use them. Otherwise, if you are looking for a more pleasant MapServer experience, look to MS4W for a complete MapServer and FWTools for a complete Python MapScript . Howard From tylermitchell at SHAW.CA Fri Jul 22 11:28:17 2005 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Fri, 22 Jul 2005 11:28:17 -0700 Subject: Kitchen Sink for 4.6 Message-ID: Howard, thanks for making these available. Just to clarify, these are Windows binaries specifically. For those looking for linux binaries, use the FGS installed (http://maptools.org/fgs). Tyler ----- Original Message ----- From: Howard Butler Date: Friday, July 22, 2005 10:58 am Subject: [UMN_MAPSERVER-USERS] Kitchen Sink for 4.6 > All, > > I finally got a chance to refresh my Kitchen Sink builds for > MapServer > 4.6. Highlights include: > - Java MapScript for 1.4 > - .NET MapScript for Visual Studio 2003 > - Python MapScript for 2.3 and 2.4 > - CVS GDAL (7/22/05) > - Gobs of default formats > - Special builds for Oracle (9.2) and ArcSDE (9.0) (you need to > provide > your own dlls for these) > > These builds include what will be 4.6.1 (it contains the latest > patches to > 4.6). > > The build most people will want (if they want to use such a thing > as this) > is > <." > target="l">http://hobu.stat.iastate.edu/mapserver/mapserver/build_output/4_6/debug.zip>. > Otherwise, head to <" > target="l">http://hobu.stat.iastate.edu/mapserver/> to read up on > what you might need. > > WARNING! > These builds are not for the faint of heart. They are little more > than > dlls and data files to get going. If you know that you need > specific > options in these builds, then use them. Otherwise, if you are > looking for > a more pleasant MapServer experience, look to MS4W > <" target="l">http://www.maptools.org/ms4w/index.phtml> for a > complete MapServer and > FWTools for a complete Python MapScript <." > target="l">http://fwtools.maptools.org/>. > Howard > From bartvde at XS4ALL.NL Fri Jul 22 11:28:40 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri, 22 Jul 2005 20:28:40 +0200 Subject: database connection In-Reply-To: Message-ID: Hi Martin, You probably can if it is supported by OGR, it includes ODBC support and direct MySQL support for your list of databases, I think you can store the geometry in WKT format and use what is called virtual spatial data. http://www.gdal.org/ogr/ogr_formats.html http://www.gdal.org/ogr/drv_vrt.html Best regards, Bart On Fri, 22 Jul 2005 18:26:37 +0200, Martin Poggensee wrote: > Is it possible to connect any database which supports the OGC standard > with > the mapserver ??? I need to visualize geeometric data from different > database systems (Sybase, MS SQL Server, mySQL, etc.). > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From dylan at IICI.NO-IP.ORG Fri Jul 22 11:49:25 2005 From: dylan at IICI.NO-IP.ORG (Dylan Beaudette) Date: Fri, 22 Jul 2005 11:49:25 -0700 Subject: highlight all matching features in CGI-style query Message-ID: Greetings, just wondering if it is possible to highlight all matching occurrences of a given polygon type after a user has queried a single polygon. for example, there are 5 polygons on the screen, the user clicks on poylgon type 1. A querymap image is returned with polygon 1 highlighted. Would it be possible for a similar operation to highlight all polygons of type 1 in the returned querymap image? ... or would this require mapscript... ? thanks in advance! -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From fwarmerdam at GMAIL.COM Fri Jul 22 11:52:14 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri, 22 Jul 2005 14:52:14 -0400 Subject: does the size of the dbf file influence the size of the spatial index (qix)? In-Reply-To: Message-ID: On 7/22/05, Bart van den Eijnden wrote: > Hi list, > > normally my spatial indexes are small compared to the size of my shapefiles.. > > Now I have the following situation: > > 04-07-2005 16:46 163.888.026 acn.dbf > 04-07-2005 16:46 39.730.468 acn.shp > 04-07-2005 16:46 4.966.396 acn.shx > 22-07-2005 16:21 119.741.008 acn.qix > > So the spatial index is 119 Mb, while the shapefile is only 39 Mb. > > For another shapefile I have the same type of situation: > > 28-02-2005 10:58 22.805.942 hnrtekst_text.dbf > 28-02-2005 10:58 1.793.808 hnrtekst_text.shp > 28-02-2005 10:58 512.588 hnrtekst_text.shx > 22-07-2005 16:24 6.434.784 hnrtekst_text.qix > > Does the dbf size influence the size of the spatial index? I can't make any sense out of that, but maybe somebody can ... ? Bart, Generally speaking the .qix file size is related to the number of features but not to the size of .dbf (more attributes make no difference). The depth you specify when building the .qix file will also have an effect. If you pick a high depth value, there will be alot of lightly populated "deep" leaves to the tree. Generally speaking point datasets are the worst case, and it might be helpful to manually pick a modest "depth" (like 4) rather than accept the default or pick a big number. I have sometimes felt that the .qix files were more bulky than is strictly necessary. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From xwu2 at UTNET.UTOLEDO.EDU Fri Jul 22 11:54:28 2005 From: xwu2 at UTNET.UTOLEDO.EDU (Wu, Xiaochun) Date: Fri, 22 Jul 2005 14:54:28 -0400 Subject: need help in the tutorial example Message-ID: Hi All: I met a problem going through the tutorial: My server address is http://131.183.83.101:8000/, and I donot know why my web page show nothing in the Browse mode. But it does work in the Map mode. And I have checked the image folder on my server and there are images created. I also paste my mapfile there. Anyone could help me out? Thanks to you all and Fred. xiaochun -------------- next part -------------- An HTML attachment was scrubbed... URL: From covariance at SHAW.CA Fri Jul 22 12:48:50 2005 From: covariance at SHAW.CA (Bob Bruce) Date: Fri, 22 Jul 2005 14:48:50 -0500 Subject: client side image map: classitem Message-ID: Dylan: I just had a look at your page that was in your post and the map looks just fine. The wrote: >Greetings, > >I have recently set up a working version of the image map example provided on >the mapserver wiki here: > >http://169.237.35.250/~dylan/mapserver/dhtml/image_map_test.php > >However, the polygons are labeled as 0,1,2,3 ... is there some way for the >image map to be constructed using an attribute in the original data source? > >Per Jim Donaghy's suggestion, I have tried adding CLASSITEM "NAME" to my >mapfile, but it does not seem to affect the resulting image map... > >any ideas? > > >-- >Dylan Beaudette >Soils and Biogeochemistry Graduate Group >University of California at Davis >530.754.7341 Dylan: I just had a look at your page that was in your post From gsw at GLOBEXPLORER.COM Fri Jul 22 13:07:08 2005 From: gsw at GLOBEXPLORER.COM (Gregory S. Williamson) Date: Fri, 22 Jul 2005 13:07:08 -0700 Subject: inline feature -- adding a point by URL does not work -- Solved! Message-ID: Debbie -- That seems to have done the trick. Thanks for catching this ! Greg W. -----Original Message----- From: Pagurek,Debbie [NCR] [mailto:Debbie.Pagurek at ec.gc.ca] Sent: Fri 7/22/2005 5:52 AM To: Gregory S. Williamson; MAPSERVER-USERS at LISTS.UMN.EDU Cc: Subject: RE: [UMN_MAPSERVER-USERS] inline feature -- adding a point by URL does not work Just a guess - I haven't tested this - but shouldn't your layer be TYPE POINT? Not annotation. D. Pagurek -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gregory S. Williamson Sent: Thursday, July 21, 2005 7:26 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] inline feature -- adding a point by URL does not work David, >-----Original Message----- >From: Fawcett, David [mailto:David.Fawcett at state.mn.us] >Sent: Thu 7/21/2005 1:11 PM >To: Gregory S. Williamson >Cc: >Subject: RE: [UMN_MAPSERVER-USERS] inline feature -- adding a point by URL does not work >Hopefully that was it, let me know. > >For testing, I would probably put a lot of the args that you are >passing in >the URL, directly in the Map file (image path, imageurl, etc.) You could >also test with just mode=map and not bother to include all of the form vars >like zoomdir, zoomsize, program, etc. > >David. Thank you for your help ... alas, still no sccess. I have stripped down the URL to a minimum, and placed some args into the map file. Alas, I just get a blank image. I am wondering if there is anything else that needs to be done to draw such a thing ? The error log says: Thu Jul 21 16:11:23 2005,1916,127.0.0.1,SSF,3,-122.513100 37.686550 -122.350900 37.848750,-1.000000 -1.000000,ssfmappnts ,normal execution The desired point does seem to fall within the indicated extent (url broken up for readability): http://localhost/cgi-bin/mapserv_46.exe?mode=map& map=C%3A%2Fms4w%2FApache%2Fhtdocs%2Fssf%2Fssf5.map& layer=ssfmappnts&map_ssfmappnts_feature=new& map_ssfmappnts_feature_points=-122.438131+37.777319& map_ssfmappnts_feature_text=Old848& program=%2Fcgi-bin%2Fmapserv.exe When I run this variant with a shapefile it paints a nice red dot; when I do it with the inline feature I just get a blank background. When I run this request with the browse mode the layer shows up in my legend, and zooming in with a streets layer does seem to indicate that I'm centered correctly. Amended map file is below. Thanks for any suggestions or advice! Greg W. (I have cut out the legend, query map and some layers that don't seem relvant) # SSF map file NAME SSF STATUS ON SIZE 600 600 EXTENT -122.5131 37.7095 -122.3509 37.8258 UNITS DD SHAPEPATH "DATA" FONTSET "C:\ms4w\Apache\htdocs\ssf\fonts\fonts.list" IMAGECOLOR 0 0 0 IMAGETYPE PNG PROJECTION "+proj=latlong +ellps=GRS80" END # # Start of web interface definition (including WMS enabling metadata) # WEB HEADER ssf_header.html TEMPLATE ssf.html FOOTER ssf_footer.html MINSCALE 1000 MAXSCALE 1550000 LOG "mapserver.log" # IMAGEPATH "set in ssf_init.html" IMAGEPATH "../tmp/" # IMAGEURL "set in ssf_init.html" IMAGEURL "../tmp/" END ... SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END ... LAYER NAME ssfmappnts DEBUG ON STATUS ON # DATA geopnt1 # doesn't matter for dynamic points if this exists or not TYPE ANNOTATION LABELITEM "POINT_NAME" LABELCACHE ON CLASS NAME "SSF Map Points" SYMBOL 'circle' SIZE 6 COLOR 255 0 0 LABEL ANTIALIAS TRUE TYPE TRUETYPE FONT garamond-bold SIZE 12 COLOR 50 20 20 OUTLINECOLOR 255 225 90 POSITION AUTO BUFFER 2 FORCE TRUE END TEMPLATE "ssf_m_query.html" END HEADER "ssf_mhdr.html" FOOTER "ssf_mftr.html" TOLERANCE 8 END # Rec Areas !DSPAM:42e0ec4c73252347855359! From kenlord at GMAIL.COM Fri Jul 22 13:09:08 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Fri, 22 Jul 2005 13:09:08 -0700 Subject: highlight all matching features in CGI-style query In-Reply-To: <200507221149.25971.dylan@iici.no-ip.org> Message-ID: Hi Dylan, I do something like what you are asking, with CGI mapserver, it may not be right for your needs and may not be the best way, but it may give you some ideas. You could have a pull down box of the polygon types on your website, some javascript passes the selected value from the box to a variable in a hidden input in your html form. Make the default value a value that it does not occur in your dataset. In your mapfile, have an extra layer for that data under the primary layer (so that it is drawn on top of the primary layer on the map), with a filter item whose value is the variable in your form input ... FILTER %polytype% or whatever. With a class that will show your selected polygons highlights however you want. You may need to set the hidden input value in your HTML form to your variable to keep your selection highlighted as you pan/zoom: and if you have an entry page to your website that sets up the initial map parameters, you should assign the default value there: In our case, we are using a Flash interface to keep track of everything, so the 'instancing' isn't a problem, and the variable goes into a WHERE clause in an SQL query in our layer's DATA parameter, accessing the spatial data from PostGIS. Cheers, Ken Lord Vancouver BC On 7/22/05, Dylan Beaudette wrote: > > Greetings, > > just wondering if it is possible to highlight all matching occurrences of > a > given polygon type after a user has queried a single polygon. > > for example, there are 5 polygons on the screen, the user clicks on > poylgon > type 1. A querymap image is returned with polygon 1 highlighted. Would it > be > possible for a similar operation to highlight all polygons of type 1 in > the > returned querymap image? ... or would this require mapscript... ? > > > thanks in advance! > > -- > Dylan Beaudette > Soils and Biogeochemistry Graduate Group > University of California at Davis > 530.754.7341 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From xwu2 at UTNET.UTOLEDO.EDU Fri Jul 22 13:12:28 2005 From: xwu2 at UTNET.UTOLEDO.EDU (Wu, Xiaochun) Date: Fri, 22 Jul 2005 16:12:28 -0400 Subject: Problem with tutorial, Thanks to Fred and list! Message-ID: xiaochun -------------- next part -------------- An HTML attachment was scrubbed... URL: From dps1 at UALBERTA.CA Fri Jul 22 13:07:18 2005 From: dps1 at UALBERTA.CA (David Shorthouse) Date: Fri, 22 Jul 2005 14:07:18 -0600 Subject: Embedding connection xml in mapfile Message-ID: Hello folks, I am making use of an OGR virtual data ODBC connection to SQL Server 2000. I have a separate xml file to handle the query (actually it's a call to a stored procedure). Ideally, I'd like to pass a variable from the mapfile to this query and make use of a parameterized stored procedure. I discovered that one can embed the xml within the mapfile, which should allow this. I can format the separate xml file for the call to the stored procedure to include a parameter and it works great. In this case however, I have no hope of passing a variable as the parameter. The xml must be in the map file. When I attempt to do this however, the layer just doesn't generate because the connection chokes. Here's what I have in the separate xml to handle the connection: ODBC:[connectionhere] SpeciesMapServer {CALL SpeciesMapServer} wkbPoint WGS84 I can change the stored procedure to include a parameter and the SrcSQL above to {CALL SpeciesMapServer ('parameter')} and it works great. But of course, this doesn't permit passing a variable such as %parameter% from the mapfile. So, here is what I tried in the mapfile: LAYER NAME spiders CONNECTIONTYPE OGR CONNECTION ' ODBC:[connectionhere] SpeciesMapServer {CALL SpeciesMapServer ('%FullName%')} wkbPoint WGS84 ' DATA SpiderData STATUS DEFAULT TYPE POINT etc. It's the SrcSQL above that chokes. Notice the required, either single or double quote around %FullName%. This is obviously results in a truncation of the remainder of the connection string in the case of a single quote or failure of a layer being returned in the case of a double quote. Anyone know how to get this to work? Is it just not possible to pass a mapfile variable to a stored procedure's parameter? Thanks, Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: From dps1 at UALBERTA.CA Fri Jul 22 13:52:55 2005 From: dps1 at UALBERTA.CA (David Shorthouse) Date: Fri, 22 Jul 2005 14:52:55 -0600 Subject: Embedding connection xml in mapfile In-Reply-To: A<200507222007.j6MK7JQA000555@pilsener.srv.ualberta.ca> Message-ID: Solved! In case anyone is interested, I just changed the embedded xml within the mapfile as follows: EXEC storedproc "%parameter%" This substantially speeds up the generation of a map if you happen to be using a parameterized stored procedure in SQL Server 2000. Dave _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of David Shorthouse Sent: Friday, July 22, 2005 2:07 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Embedding connection xml in mapfile Hello folks, I am making use of an OGR virtual data ODBC connection to SQL Server 2000. I have a separate xml file to handle the query (actually it's a call to a stored procedure). Ideally, I'd like to pass a variable from the mapfile to this query and make use of a parameterized stored procedure. I discovered that one can embed the xml within the mapfile, which should allow this. I can format the separate xml file for the call to the stored procedure to include a parameter and it works great. In this case however, I have no hope of passing a variable as the parameter. The xml must be in the map file. When I attempt to do this however, the layer just doesn't generate because the connection chokes. Here's what I have in the separate xml to handle the connection: ODBC:[connectionhere] SpeciesMapServer {CALL SpeciesMapServer} wkbPoint WGS84 I can change the stored procedure to include a parameter and the SrcSQL above to {CALL SpeciesMapServer ('parameter')} and it works great. But of course, this doesn't permit passing a variable such as %parameter% from the mapfile. So, here is what I tried in the mapfile: LAYER NAME spiders CONNECTIONTYPE OGR CONNECTION ' ODBC:[connectionhere] SpeciesMapServer {CALL SpeciesMapServer ('%FullName%')} wkbPoint WGS84 ' DATA SpiderData STATUS DEFAULT TYPE POINT etc. It's the SrcSQL above that chokes. Notice the required, either single or double quote around %FullName%. This is obviously results in a truncation of the remainder of the connection string in the case of a single quote or failure of a layer being returned in the case of a double quote. Anyone know how to get this to work? Is it just not possible to pass a mapfile variable to a stored procedure's parameter? Thanks, Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: From fwarmerdam at GMAIL.COM Fri Jul 22 14:18:30 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri, 22 Jul 2005 17:18:30 -0400 Subject: Virtual Spatial Data and MySQL client In-Reply-To: Message-ID: On 7/22/05, Bart van den Eijnden wrote: > Frank, > > I have tracked down the issue by looking at the source code. > > There was a problem with my MYSQL connect statement, now I use the following which works, note the name of the schema in front of the connect string, this seems to make the big difference: > > MYSQL:westholland,user=root,password=psv9570,port=3306,tables=bedrijven Bart, Ah yes, that explains it. The driver page did indicate this, but when I read it over to check your approach I didn't realize the issue either. I have added an example in the driver page now using your connection string, so you had better change your password. :-) Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From kenlord at GMAIL.COM Fri Jul 22 14:20:55 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Fri, 22 Jul 2005 14:20:55 -0700 Subject: Embedding connection xml in mapfile In-Reply-To: <200507222007.j6MK7JQA000555@pilsener.srv.ualberta.ca> Message-ID: Hi Dave, Have you tried using double quotes for the start and end of the CONNECTION, and single quotes for all of the quoted values within the xml, not just around the variable? or do the xml values require the double quotes you have given them? Cheers, Ken Lord Vancouver BC On 7/22/05, David Shorthouse wrote: > > Hello folks, > I am making use of an OGR virtual data ODBC connection to SQL Server > 2000. I have a separate xml file to handle the query (actually it's a call > to a stored procedure). Ideally, I'd like to pass a variable from the > mapfile to this query and make use of a parameterized stored procedure. I > discovered that one can embed the xml within the mapfile, which should allow > this. I can format the separate xml file for the call to the stored > procedure to include a parameter and it works great. In this case however, I > have no hope of passing a variable as the parameter. The xml must be in the > map file. When I attempt to do this however, the layer just doesn't generate > because the connection chokes. > Here's what I have in the separate xml to handle the connection: > > > ODBC:[connectionhere] > SpeciesMapServer > {CALL SpeciesMapServer} > wkbPoint > WGS84 > > > > I can change the stored procedure to include a parameter and the SrcSQL > above to {CALL SpeciesMapServer ('parameter')} and it works great. But of > course, this doesn't permit passing a variable such as %parameter% from the > mapfile. > So, here is what I tried in the mapfile: > LAYER > NAME spiders > CONNECTIONTYPE OGR > CONNECTION ' > ODBC:[connectionhere] > SpeciesMapServer > {CALL SpeciesMapServer ('%FullName%')} > wkbPoint > WGS84 > > > ' > DATA SpiderData > STATUS DEFAULT > TYPE POINT > etc. > It's the SrcSQL above that chokes. Notice the required, either single or > double quote around %FullName%. This is obviously results in a truncation of > the remainder of the connection string in the case of a single quote or > failure of a layer being returned in the case of a double quote. > Anyone know how to get this to work? Is it just not possible to pass a > mapfile variable to a stored procedure's parameter? > Thanks, > Dave > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dylan at IICI.NO-IP.ORG Fri Jul 22 14:40:08 2005 From: dylan at IICI.NO-IP.ORG (Dylan Beaudette) Date: Fri, 22 Jul 2005 14:40:08 -0700 Subject: client side image map: classitem [solved] In-Reply-To: Message-ID: Bob, Since that message I have found the problem. thanks! On Friday 22 July 2005 12:48 pm, Bob Bruce wrote: > Dylan: > I just had a look at your page that was in your post and the map > looks just fine. The clicking on the areas does the alert with the name. What is the problem? > > Bob Bruce, Winnipeg, Manitoba > http://www.hwps.ca > > On Thu, 21 Jul 2005 15:53:05 -0700, Dylan Beaudette > > wrote: > >Greetings, > > > >I have recently set up a working version of the image map example provided > > on the mapserver wiki here: > > > >http://169.237.35.250/~dylan/mapserver/dhtml/image_map_test.php > > > >However, the polygons are labeled as 0,1,2,3 ... is there some way for the > >image map to be constructed using an attribute in the original data > > source? > > > >Per Jim Donaghy's suggestion, I have tried adding CLASSITEM "NAME" to my > >mapfile, but it does not seem to affect the resulting image map... > > > >any ideas? > > > > > >-- > >Dylan Beaudette > >Soils and Biogeochemistry Graduate Group > >University of California at Davis > >530.754.7341 > > Dylan: > I just had a look at your page that was in your post -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From dps1 at UALBERTA.CA Fri Jul 22 14:44:54 2005 From: dps1 at UALBERTA.CA (David Shorthouse) Date: Fri, 22 Jul 2005 15:44:54 -0600 Subject: Embedding connection xml in mapfile In-Reply-To: A<55dd01fa0507221420332a3951@mail.gmail.com> Message-ID: Ken, Double quotes don't seem to work at all around the entire xml string after CONNECTION. It seems these must be single quotes. However, things are working now as I have changed the {CALL ....} to an EXEC. Dave _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ken Lord Sent: Friday, July 22, 2005 3:21 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Embedding connection xml in mapfile Hi Dave, Have you tried using double quotes for the start and end of the CONNECTION, and single quotes for all of the quoted values within the xml, not just around the variable? or do the xml values require the double quotes you have given them? Cheers, Ken Lord Vancouver BC -------------- next part -------------- An HTML attachment was scrubbed... URL: From gmanepal at GMAIL.COM Fri Jul 22 14:51:46 2005 From: gmanepal at GMAIL.COM (Giridhar Manepalli) Date: Fri, 22 Jul 2005 17:51:46 -0400 Subject: Mapscript Zooming Message-ID: Hello All, When I zoom using functions like zoomscale etc (php mapscript), it zooms well. The image after the zoom contains the zoomed map but the extent of the map is somewhat reduced. I could not figure out what is really affecting the extent. Now, how is it possible to have the entire extent at the specified zoom level. It really doesnot matter if the size of the image grows bigger as long as I know the size of the image created. Any suggestions? P.S. When I say I need the entire extent, I need the entire map to be displayed at the specified zoom level. I do not care about the output size From erics at AMERI-TITLE.COM Fri Jul 22 16:32:02 2005 From: erics at AMERI-TITLE.COM (Eric Shuman) Date: Fri, 22 Jul 2005 18:32:02 -0500 Subject: Labels using shape index Message-ID: I'm new to mapserver and am still trying to keep my head above water so maybe this is very simple, but I have not been able to find a solution so far... I have gotten as far as creating a map file, and PHP mapscript that will query a shapefile by feature and return a map. I would like to label the returned features with the index number of the shapes. (ie. 0, 1, 2...) I have only been able to get labels from the shapefile attributes themselves to work. Is there a way to define the LABELITEM as the ID or shapeindex of the returned features? Do I need to create an annotation layer with points for each shape and define a label value? How??? Can you add a field to the returned featureQuery and calculate the field to be used as the LABELITEM? Suggestions, examples, and guidance would be greatly appreciated! Thanks in advance. ~Eric From margottid at COMUNE.LUGO.RA.IT Sat Jul 23 00:39:10 2005 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Sat, 23 Jul 2005 09:39:10 +0200 Subject: off topic: earth.google.com In-Reply-To: <00cc01c58ecd$bed66a50$160002c0@shark> Message-ID: You said: 9. You can overlay data (vectors and raster) from your computer. 10. You can connect to web data sources (like WMS with about 10 lines of server-based scripting). So, how can overlay data? Can I overlay a shape file? How can I define colour, labels, and so on (as in a Mapserver mapfile)? And how can I connect to a web data source like WMS? I have a webserver with Mapserver configured for WMS/WFS requests, how can I tell Google Earth to connect to my Mapserver? Daniele -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Brent Fraser Sent: Friday, July 22, 2005 4:58 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] off topic: earth.google.com Flavio, Google Earth (not to be confused with Google Maps) is more than just mind blowing. In my business (Satellite imagery sales and service) it's world shaking. The top ten things I like about Google Earth: 1. It's free, with upgrades for a fee. 2. The entire world (almost) is covered with pan-sharpened Landsat (15m pixels). 3. All (most?, some?) of Digital Globe's Quickbird imagery is shown (0.6m pixels). 4. The user-interface is dead simple. 5. The fade-in/fade-out of vectors and annotation on zooming is great. 6. The performance fantastic (like streaming video). 7. It's 3d. You can tilt the world and fly thought canyons. 8. It's even more 3d. It will render 3d objects such as buildings. 9. You can overlay data (vectors and raster) from your computer. 10. You can connect to web data sources (like WMS with about 10 lines of server-based scripting). The application: http://earth.google.com (after install, do View -> Play Tour) The community: http://bbs.keyhole.com Brent Fraser ----- Original Message ----- From: "Flavio Hendry" To: Sent: Thursday, July 21, 2005 11:55 PM Subject: [UMN_MAPSERVER-USERS] off topic: earth.google.com > hi all > > as google is obviously a hot issue, have a look at http://earth.google.com/. > > just mindblowing. > > Mit freundlichem Gruss / Best Regards > Flavio Hendry > > ---------------------------------------------------------------- > TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual > ---------------------------------------------------------------- > ############ Mit freundlichen Gruessen / Kind Regards > ############ mailto:flavio at tydac.ch > ############ TYDAC AG - http://www.tydac.ch > #### #### Geographic Information Solutions > #### #### Luternauweg 12 -- CH-3006 Bern > ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 > ---------------------------------------------------------------- From andy.canfield at GMAIL.COM Sat Jul 23 10:17:29 2005 From: andy.canfield at GMAIL.COM (Andy Canfield) Date: Sat, 23 Jul 2005 10:17:29 -0700 Subject: off topic: earth.google.com In-Reply-To: <200507230924.58621.andy.canfield@gmail.com> Message-ID: I wrote a simple writer the other day to translate all my companies relevant telecom design from AutoCAD DWG's into kml format which is what Keyhole(Google Earth) uses. The file spec is here:http://www.keyhole.com/kml/kml_doc.html It reminds me a lot of SVG without all the weird path stuff you have to deal with in SVG. It's mostly a display format and there isn't a real good way to store much information so that the user can access it. Basically what you display on the screen in the form of labels or the little blurb you can put in as a description is about it. So writing a translator isn't hard you just bring the geometries over. Everything must be in WGS84 or it won't display correctly. Also you will have to break your data sets up if you have large ones because it gets really, really, really slow as it seems to have to parse the entire xml document in order to load it. Which is weird because they buffer the imagery as it comes in but they have to parse the entire document before they can load the geometry rather than draw it as it parses. Double buffering would be even better but it seems like everything in the interface other than the Satellite imagery was put in as an after thought. I put 1,400 boundaries into it and that dataset usually takes a second or two to load into MapInfo or ArcGIS takes 15 to 30 seconds to load into Keyhole. Just for fun I tried loading in 650,000 polylines that are aerial data routes in an eleven county area and that took 45 plus minutes to load on a dual Zeon processor machine. So definitely break up your data sets and let the users load them when they need them vice making seamless data sets. On Monday if anyone is interested I can put up some screen shots of what a telecom(VoIP and HSI) network loaded into Keyhole looks like. Thanks, Andy On Saturday 23 July 2005 00:39, Daniele Margotti wrote: > You said: > 9. You can overlay data (vectors and raster) from your computer. > 10. You can connect to web data sources (like WMS with about 10 lines of > server-based scripting). > > So, how can overlay data? Can I overlay a shape file? How can I define > colour, labels, and so on (as in a Mapserver mapfile)? > > And how can I connect to a web data source like WMS? > I have a webserver with Mapserver configured for WMS/WFS requests, how > can I tell Google Earth to connect to my Mapserver? > > Daniele > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Brent Fraser > Sent: Friday, July 22, 2005 4:58 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] off topic: earth.google.com > > > Flavio, > > Google Earth (not to be confused with Google Maps) is more than just > mind blowing. In my business (Satellite imagery sales and service) it's > world shaking. > > The top ten things I like about Google Earth: > > 1. It's free, with upgrades for a fee. > 2. The entire world (almost) is covered with pan-sharpened Landsat (15m > pixels). 3. All (most?, some?) of Digital Globe's Quickbird imagery is > shown (0.6m pixels). 4. The user-interface is dead simple. 5. The > fade-in/fade-out of vectors and annotation on zooming is great. 6. The > performance fantastic (like streaming video). 7. It's 3d. You can tilt > the world and fly thought canyons. 8. It's even more 3d. It will render > 3d objects such as buildings. 9. You can overlay data (vectors and > raster) from your computer. 10. You can connect to web data sources > (like WMS with about 10 lines of server-based scripting). > > The application: http://earth.google.com (after install, do View -> Play > Tour) > The community: http://bbs.keyhole.com > > > Brent Fraser > > > ----- Original Message ----- > From: "Flavio Hendry" > To: > Sent: Thursday, July 21, 2005 11:55 PM > Subject: [UMN_MAPSERVER-USERS] off topic: earth.google.com > > > hi all > > > > as google is obviously a hot issue, have a look at > > http://earth.google.com/. > > > just mindblowing. > > > > Mit freundlichem Gruss / Best Regards > > Flavio Hendry > > > > ---------------------------------------------------------------- > > TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual > > ---------------------------------------------------------------- > > ############ Mit freundlichen Gruessen / Kind Regards > > ############ mailto:flavio at tydac.ch > > ############ TYDAC AG - http://www.tydac.ch > > #### #### Geographic Information Solutions > > #### #### Luternauweg 12 -- CH-3006 Bern > > ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 > > ---------------------------------------------------------------- From cermak at SFOS.UAF.EDU Fri Jul 22 23:05:54 2005 From: cermak at SFOS.UAF.EDU (Rob Cermak) Date: Fri, 22 Jul 2005 22:05:54 -0800 Subject: MapHack for (Weather) data : Contouring (on-the-fly) Message-ID: Just happened to stumble on this quite by accident. We have been looking for a way to dynamically contour data for quite some time. Googling surfaces a lot of people attempting various means. Mapping Hacks shows how it can be done using GRASS. Most OOS (Ocean Observing System) mapserver sites can plot data rather easily...color filled circles for sea surface temperature... here is something to help you go the next step. I present a bare bones method to preparing data for contouring any data you've got. Making it dynamic is left as an exercise for the reader. TOOLS: Data (Longitude, Latitude, Value[Z]) GMT (http://gmt.soest.hawaii.edu/) - compiled with NetCDF - blockmean - surface - Unix util: awk gdal_contour (from GDAL 1.2.5) - must have: GMT (rw): GMT NetCDF Grid Format (as seen by --formats) Step 1: Get your data -- many many ways to do this. In this example, we have long, lat, and sea level pressure(Z). The Z values can be anything. 170.000000,50.000000,1026.400000 170.500000,50.000000,1026.320000 171.000000,50.000000,1026.210000 171.500000,50.000000,1026.080000 172.000000,50.000000,1025.910000 172.500000,50.000000,1025.720000 173.000000,50.000000,1025.510000 173.500000,50.000000,1025.260000 174.000000,50.000000,1025.000000 174.500000,50.000000,1024.710000 [..snip..] Step 2: Use GMT to convert the data to a GMT NetCDF gridded file # You will need to set the GRID REGION up properly for your use... GRID_REGION="-180/180/30/80"; # blockmean option -I put all our nice data into 0.5 degree bins for # the surface program awk -F, '{if ($3>0) printf "%f %f %f\n",$1,$2,$3}' ak.psl | blockmean -R$GRID_REGION -I0.5 > ak.grd # Take output from blockmean and grid it into a 1/2 by 1/2 degree grid and # stuff info a GMT (netcdf) grid file surface ak.grd -R$GRID_REGION -I0.5 -Gak2.grd The normal next step is to plot it up using a GMT tool that produces postscript! Ick! Step 3: Abuse of GDAL - gdal_contour Gdal is really for operating on raster data, but with the GMT Netcdf Grid driver, we can abuse it. Taking our above data, treat it like a raster or heights from a DEM. Now convert from GMT grid to shapefile. gdal_contour -a elev ak2.grd ak2s.shp -i 1.0 From bfraser at GEOANALYTIC.COM Sat Jul 23 13:25:10 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Sat, 23 Jul 2005 14:25:10 -0600 Subject: off topic: earth.google.com In-Reply-To: <005e01c58f59$9e069520$041410ac@comune.lugo.ra.it> Message-ID: Daniele, Google uses KML (Keyhole Markup Language, a XML-ish text format) to define the data source (and it can optionaly hold geometry). See http://www.keyhole.com/kml/kml_doc.html and http://www.keyhole.com/kml/kml_tut.html for details. Yes you can overlay data but unless you buy Google Earth Pro + GIS data module, you must convert the data to KML. Note that there is a "binary" version known as KMZ, which is simply a zip file of KML. As for styling, the KML doc covers some of that, but I haven't tried it yet. The steps for connecting a WMS server are: 1. Create a WMS server able to serve data in Geographic WGS84 (EPSG:4326) 2. Write a "shim"/"reflector" script on a web server to act as a translator between WMS and KML 3. Using Google Earth, do Add -> Network Link, and give the URL of your script in the "Location" text box (e.g. http://myserver.mydomain.com/mykml.asp). Be sure to set the View-Based Refresh setting to "After the Camera Stops" Here's a ASP/VBScript version of the script (you'll need to set your own values for the wms variable): <% bbox = Request.QueryString("BBOX") coords = split(bbox,",") wms = "http://myserver.mydomain.com/mycgi.asp?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&STYLES=&FORMAT=image/jpeg&SRS=EPSG:4326&LAYERS=LAYER1&WIDTH=1024&HEIGHT=1024&BGCOLOR=0xFFFFFF&EXCEPTIONS=application/vnd.ogc.se_xml" names = "My WMS" response.ContentType = "application/vnd.google-earth.kml+xml" url = wms + "&bbox=" + bbox response.write("") response.write(""+names+"") response.write(""+i+"") response.write("" + VBcrlf) response.write("" + VBcrlf) response.write("") response.write("") response.write("" + VBcrlf) response.write("" + VBcrlf) response.write("" + VBcrlf) response.write("") response.write(coords(3)) response.write("" + VBcrlf) response.write("") response.write(coords(1)) response.write("" + VBcrlf) response.write("") response.write(coords(2)) response.write("" + VBcrlf) response.write("") response.write(coords(0)) response.write("" + VBcrlf) response.write("" + VBcrlf) response.write("" + VBcrlf) response.write("") %> The above example is a modified version of James Macgill's posted at http://bbs.keyhole.com/ubb/showthreaded.php/Cat/0/Number/37249/an/0/page/10#37249 Have fun! Brent Fraser > You said: > 9. You can overlay data (vectors and raster) from your computer. > 10. You can connect to web data sources (like WMS with about 10 lines of > server-based scripting). > > So, how can overlay data? Can I overlay a shape file? How can I define > colour, labels, and so on (as in a Mapserver mapfile)? > > And how can I connect to a web data source like WMS? > I have a webserver with Mapserver configured for WMS/WFS requests, how > can I tell Google Earth to connect to my Mapserver? > > Daniele > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Brent Fraser > Sent: Friday, July 22, 2005 4:58 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] off topic: earth.google.com > > > Flavio, > > Google Earth (not to be confused with Google Maps) is more than just > mind blowing. In my business (Satellite imagery sales and service) it's > world shaking. > > The top ten things I like about Google Earth: > > 1. It's free, with upgrades for a fee. > 2. The entire world (almost) is covered with pan-sharpened Landsat (15m > pixels). 3. All (most?, some?) of Digital Globe's Quickbird imagery is > shown (0.6m pixels). 4. The user-interface is dead simple. 5. The > fade-in/fade-out of vectors and annotation on zooming is great. 6. The > performance fantastic (like streaming video). 7. It's 3d. You can tilt > the world and fly thought canyons. 8. It's even more 3d. It will render > 3d objects such as buildings. 9. You can overlay data (vectors and > raster) from your computer. 10. You can connect to web data sources > (like WMS with about 10 lines of server-based scripting). > > The application: http://earth.google.com (after install, do View -> Play > Tour) > The community: http://bbs.keyhole.com > > > Brent Fraser > > > ----- Original Message ----- > From: "Flavio Hendry" > To: > Sent: Thursday, July 21, 2005 11:55 PM > Subject: [UMN_MAPSERVER-USERS] off topic: earth.google.com > > >> hi all >> >> as google is obviously a hot issue, have a look at > http://earth.google.com/. >> >> just mindblowing. >> >> Mit freundlichem Gruss / Best Regards >> Flavio Hendry >> >> ---------------------------------------------------------------- >> TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual >> ---------------------------------------------------------------- >> ############ Mit freundlichen Gruessen / Kind Regards >> ############ mailto:flavio at tydac.ch >> ############ TYDAC AG - http://www.tydac.ch >> #### #### Geographic Information Solutions >> #### #### Luternauweg 12 -- CH-3006 Bern >> ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 >> ---------------------------------------------------------------- > From andy.canfield at GMAIL.COM Sat Jul 23 13:57:44 2005 From: andy.canfield at GMAIL.COM (Andy Canfield) Date: Sat, 23 Jul 2005 13:57:44 -0700 Subject: off topic: earth.google.com In-Reply-To: <42E28E9D.60002@ci.stpaul.mn.us> Message-ID: Bob, I did it using the OpenDesign libraries and C++ but it would be very easy to do from Lisp as well. I have used Lisp in the past to write HTML and SVG markups of drawing files. The hard part with Lisp would be re-projecting the data from whatever you map in to WGS84. We map in UTM because a single network can span multiple states so state plane doesn't work for us. I wrote a Lat/Lon <-> UTM library for C++ which is what I use. At the time I was unaware of Proj4 which had I known about it I would have just used that vice writting my own. You could always write a quick Arx that wraps simple coordinate conversions from Proj4 and exposes them to Lisp for whatever projection you map in if you were serious about wanting to do this on a continuous basis. You would just have to be sure you ran an appload for your custom arx before you started your Lisp routine. After that it's just List and String processing which which Lisp rocks at doing. You probably wouldn't even have to use any V-Lisp to accomplish it just plain old AutoLisp should work just fine. Andy On Saturday 23 July 2005 11:38, Blammo wrote: > Andy Canfield wrote: > >I wrote a simple writer the other day to translate all my companies > > relevan= t > >telecom design from AutoCAD DWG's into kml format which is what > >Keyhole(Google Earth) uses. The file spec is > >here:http://www.keyhole.com/kml/kml_doc.html > >It reminds me a lot of SVG without all the weird path stuff you have to > > dea= l > >with in SVG. > > Did you use AutoLISP to do the translation or ??? I would be interested > in doing something similar with our data as well, which is mostly > AutoCAD based. > > bobb > > >It's mostly a display format and there isn't a real good way t= > >o > >store much information so that the user can access it. Basically what you > >display on the screen in the form of labels or the little blurb you can > > put in as a description is about it. So writing a translator isn't hard > > you jus= t > >bring the geometries over. Everything must be in WGS84 or it won't display > >correctly. Also you will have to break your data sets up if you have large > >ones because it gets really, really, really slow as it seems to have to > > par= se > >the entire xml document in order to load it. Which is weird because they > >buffer the imagery as it comes in but they have to parse the entire > > documen= t > >before they can load the geometry rather than draw it as it parses. Double > >buffering would be even better but it seems like everything in the > > interfac= e > >other than the Satellite imagery was put in as an after thought. I put > > 1,40= 0 > >boundaries into it and that dataset usually takes a second or two to load > >into MapInfo or ArcGIS takes 15 to 30 seconds to load into Keyhole. Just > > fo= r > >fun I tried loading in 650,000 polylines that are aerial data routes in an > >eleven county area and that took 45 plus minutes to load on a dual Zeon > >processor machine. So definitely break up your data sets and let the users > >load them when they need them vice making seamless data sets. On Monday if > >anyone is interested I can put up some screen shots of what a telecom(VoIP > >and HSI) network loaded into Keyhole looks like. > >Thanks, > >Andy > > > >On Saturday 23 July 2005 00:39, Daniele Margotti wrote: > >>You said: > >>9. You can overlay data (vectors and raster) from your computer. > >>10. You can connect to web data sources (like WMS with about 10 lines of > >>server-based scripting). > >> > >>So, how can overlay data? Can I overlay a shape file? How can I define > >>colour, labels, and so on (as in a Mapserver mapfile)? > >> > >>And how can I connect to a web data source like WMS? > >>I have a webserver with Mapserver configured for WMS/WFS requests, how > >>can I tell Google Earth to connect to my Mapserver? > >> > >> Daniele > >> > >> > >>-----Original Message----- > >>From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > >>Behalf Of Brent Fraser > >>Sent: Friday, July 22, 2005 4:58 PM > >>To: MAPSERVER-USERS at LISTS.UMN.EDU > >>Subject: Re: [UMN_MAPSERVER-USERS] off topic: earth.google.com > >> > >> > >>Flavio, > >> > >> Google Earth (not to be confused with Google Maps) is more than just > >>mind blowing. In my business (Satellite imagery sales and service) it's > >>world shaking. > >> > >>The top ten things I like about Google Earth: > >> > >> 1. It's free, with upgrades for a fee. > >> 2. The entire world (almost) is covered with pan-sharpened Landsat (15m > >>pixels). 3. All (most?, some?) of Digital Globe's Quickbird imagery is > >>shown (0.6m pixels). 4. The user-interface is dead simple. 5. The > >>fade-in/fade-out of vectors and annotation on zooming is great. 6. The > >>performance fantastic (like streaming video). 7. It's 3d. You can tilt > >>the world and fly thought canyons. 8. It's even more 3d. It will render > >>3d objects such as buildings. 9. You can overlay data (vectors and > >>raster) from your computer. 10. You can connect to web data sources > >>(like WMS with about 10 lines of server-based scripting). > >> > >>The application: http://earth.google.com (after install, do View -> Play > >>Tour) > >>The community: http://bbs.keyhole.com > >> > >> > >>Brent Fraser > >> > >> > >>----- Original Message ----- > >>From: "Flavio Hendry" > >>To: > >>Sent: Thursday, July 21, 2005 11:55 PM > >>Subject: [UMN_MAPSERVER-USERS] off topic: earth.google.com > >> > >>>hi all > >>> > >>>as google is obviously a hot issue, have a look at > >> > >>http://earth.google.com/. > >> > >>>just mindblowing. > >>> > >>>Mit freundlichem Gruss / Best Regards > >>>Flavio Hendry > >>> > >>>---------------------------------------------------------------- > >>>TYDAC NEWS http://www.tydac.ch/german/index.php?menu=3DNews_actual > >>>---------------------------------------------------------------- > >>>############ Mit freundlichen Gruessen / Kind Regards > >>>############ mailto:flavio at tydac.ch > >>>############ TYDAC AG - http://www.tydac.ch > >>>#### #### Geographic Information Solutions > >>>#### #### Luternauweg 12 -- CH-3006 Bern > >>>############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 > >>>---------------------------------------------------------------- From andy.canfield at GMAIL.COM Sat Jul 23 17:34:31 2005 From: andy.canfield at GMAIL.COM (Andy Canfield) Date: Sat, 23 Jul 2005 17:34:31 -0700 Subject: off topic: earth.google.com In-Reply-To: <42E2CEDF.2020403@ci.stpaul.mn.us> Message-ID: Bob, As long as you have it reprojected already then you should be good to go. Just write a simple routine that writes the xml and put the coordinates in the appropriate places. Like SVG you can reference display styles so just put those at the start of the document and then you can make your lines and points appear as you want them displayed. You could probably knock out a real nice writer for your drawings in a day. Not exactly on the subject but you said you have used Mapserver and Proj4 from within Acad before? Can you programatically pass variables between Lisp and Proj4 (or Mapserver) to convert points then use those converted points within the Lisp routine that passed them to Proj4? Or does it require a user to read the output from Proj4/Mapserver and then use/enter those converted values? I had always thought that AutoLisp had to communicate with C programs via resbuf linked list structures if you wanted to use the variable again once the C routine was done with it. Is this not the case? I haven't done much Lisp <-> C cross application programming. In kind of a roundabout way using Map5 to reproject is interesting because Map5 uses FMEObjects to do file transformations and FMEObjects uses a lot of the code from Gdal/Ogr. I wonder if behind the scenes it's already using Proj4 in a very round about way. Andy On Saturday 23 July 2005 16:12, Blammo wrote: > Andy Canfield wrote: > >Bob, > > I did it using the OpenDesign libraries and C++ but it would be very easy > > to do from Lisp as well. I have used Lisp in the past to write HTML and > > SVG markups of drawing files. The hard part with Lisp would be > > re-projecting the data from whatever you map in to WGS84. > > I have AutoCAD MAP and reproject ahead of time, before KML conversion. > > > We map in UTM because a single > >network can span multiple states so state plane doesn't work for us. I > > wrote a Lat/Lon <-> UTM library for C++ which is what I use. At the time > > I was unaware of Proj4 which had I known about it I would have just used > > that vice writting my own. You could always write a quick Arx that wraps > > simple coordinate conversions from Proj4 > > I've used proj4 from the comandline in the past as well. > > > and exposes them to Lisp for whatever > >projection you map in if you were serious about wanting to do this on a > >continuous basis. You would just have to be sure you ran an appload for > > your custom arx before you started your Lisp routine. > > Actually I ran it with appstart from LISP, I've done the same with > Mapserver as a matter of fact, running Mapserver from inside of AutoCAD. > > > After that it's just List > >and String processing which which Lisp rocks at doing. You probably > > wouldn't even have to use any V-Lisp to accomplish it just plain old > > AutoLisp should work just fine. > >Andy > > I was kinda hoping you had used lisp. I've never gone beyond LISP > programming myself from inside of AutoCAD. > > bobb > > >On Saturday 23 July 2005 11:38, Blammo wrote: > >>Andy Canfield wrote: > >>>I wrote a simple writer the other day to translate all my companies > >>>relevan= t > >>>telecom design from AutoCAD DWG's into kml format which is what > >>>Keyhole(Google Earth) uses. The file spec is > >>>here:http://www.keyhole.com/kml/kml_doc.html > >>>It reminds me a lot of SVG without all the weird path stuff you have to > >>>dea= l > >>>with in SVG. > >> > >>Did you use AutoLISP to do the translation or ??? I would be interested > >>in doing something similar with our data as well, which is mostly > >>AutoCAD based. > >> > >>bobb > >> > >>>It's mostly a display format and there isn't a real good way t= > >>>o > >>>store much information so that the user can access it. Basically what > >>> you display on the screen in the form of labels or the little blurb you > >>> can put in as a description is about it. So writing a translator isn't > >>> hard you jus= t > >>>bring the geometries over. Everything must be in WGS84 or it won't > >>> display correctly. Also you will have to break your data sets up if you > >>> have large ones because it gets really, really, really slow as it seems > >>> to have to par= se > >>>the entire xml document in order to load it. Which is weird because they > >>>buffer the imagery as it comes in but they have to parse the entire > >>>documen= t > >>>before they can load the geometry rather than draw it as it parses. > >>> Double buffering would be even better but it seems like everything in > >>> the interfac= e > >>>other than the Satellite imagery was put in as an after thought. I put > >>>1,40= 0 > >>>boundaries into it and that dataset usually takes a second or two to > >>> load into MapInfo or ArcGIS takes 15 to 30 seconds to load into > >>> Keyhole. Just fo= r > >>>fun I tried loading in 650,000 polylines that are aerial data routes in > >>> an eleven county area and that took 45 plus minutes to load on a dual > >>> Zeon processor machine. So definitely break up your data sets and let > >>> the users load them when they need them vice making seamless data sets. > >>> On Monday if anyone is interested I can put up some screen shots of > >>> what a telecom(VoIP and HSI) network loaded into Keyhole looks like. > >>>Thanks, > >>>Andy > >>> > >>>On Saturday 23 July 2005 00:39, Daniele Margotti wrote: > >>>>You said: > >>>>9. You can overlay data (vectors and raster) from your computer. > >>>>10. You can connect to web data sources (like WMS with about 10 lines > >>>> of server-based scripting). > >>>> > >>>>So, how can overlay data? Can I overlay a shape file? How can I define > >>>>colour, labels, and so on (as in a Mapserver mapfile)? > >>>> > >>>>And how can I connect to a web data source like WMS? > >>>>I have a webserver with Mapserver configured for WMS/WFS requests, how > >>>>can I tell Google Earth to connect to my Mapserver? > >>>> > >>>> Daniele > >>>> > >>>> > >>>>-----Original Message----- > >>>>From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > >>>> On Behalf Of Brent Fraser > >>>>Sent: Friday, July 22, 2005 4:58 PM > >>>>To: MAPSERVER-USERS at LISTS.UMN.EDU > >>>>Subject: Re: [UMN_MAPSERVER-USERS] off topic: earth.google.com > >>>> > >>>> > >>>>Flavio, > >>>> > >>>> Google Earth (not to be confused with Google Maps) is more than just > >>>>mind blowing. In my business (Satellite imagery sales and service) > >>>> it's world shaking. > >>>> > >>>>The top ten things I like about Google Earth: > >>>> > >>>>1. It's free, with upgrades for a fee. > >>>>2. The entire world (almost) is covered with pan-sharpened Landsat (15m > >>>>pixels). 3. All (most?, some?) of Digital Globe's Quickbird imagery is > >>>>shown (0.6m pixels). 4. The user-interface is dead simple. 5. The > >>>>fade-in/fade-out of vectors and annotation on zooming is great. 6. The > >>>>performance fantastic (like streaming video). 7. It's 3d. You can tilt > >>>>the world and fly thought canyons. 8. It's even more 3d. It will > >>>> render 3d objects such as buildings. 9. You can overlay data (vectors > >>>> and raster) from your computer. 10. You can connect to web data > >>>> sources (like WMS with about 10 lines of server-based scripting). > >>>> > >>>>The application: http://earth.google.com (after install, do View -> > >>>> Play Tour) > >>>>The community: http://bbs.keyhole.com > >>>> > >>>> > >>>>Brent Fraser > >>>> > >>>> > >>>>----- Original Message ----- > >>>>From: "Flavio Hendry" > >>>>To: > >>>>Sent: Thursday, July 21, 2005 11:55 PM > >>>>Subject: [UMN_MAPSERVER-USERS] off topic: earth.google.com > >>>> > >>>>>hi all > >>>>> > >>>>>as google is obviously a hot issue, have a look at > >>>> > >>>>http://earth.google.com/. > >>>> > >>>>>just mindblowing. > >>>>> > >>>>>Mit freundlichem Gruss / Best Regards > >>>>>Flavio Hendry > >>>>> > >>>>>---------------------------------------------------------------- > >>>>>TYDAC NEWS http://www.tydac.ch/german/index.php?menu=3DNews_actual > >>>>>---------------------------------------------------------------- > >>>>>############ Mit freundlichen Gruessen / Kind Regards > >>>>>############ mailto:flavio at tydac.ch > >>>>>############ TYDAC AG - http://www.tydac.ch > >>>>>#### #### Geographic Information Solutions > >>>>>#### #### Luternauweg 12 -- CH-3006 Bern > >>>>>############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 > >>>>>---------------------------------------------------------------- From sc0rp10nau at YAHOO.COM.AU Sun Jul 24 04:31:57 2005 From: sc0rp10nau at YAHOO.COM.AU (Ajay Ranipeta) Date: Sun, 24 Jul 2005 06:31:57 -0500 Subject: Installing Java MapScript on Windows Message-ID: Hi Bas, Did you try the comment part at the http://ms.gis.umn.edu/docs/howto/java_mapscript_Tomcat_55 webpage? Follow that, and you should be set. Basically, make sure the files are under the C:\mapserver, make sure the folder is part of the System Environment path, and you should be ok. cheers, Ajay On Fri, 22 Jul 2005 11:53:03 +0200, Bas Vanmeulebrouk wrote: >Hi list, > >I am trying to install Java MapScript on a Windows XP Professional machine. >I have downloaded a binary from http://hobu.stat.iastate.edu/mapserver/. >When I try to load the MapScript dll in my Java class, it causes the >following error: The procedure entry point CPLGetLastErrorMsg could not be >located in the dynamic link library gdal12.dll and then Exception in thread >"main" java.lang.UnsatisfiedLinkError: C:\Program >Files\MapServer\JavaMapScript\mapscript.dll: The specified procedure could >not be found. > >I assume mapscript.dll can't find the additional dll's like gdal12.dll. I am >positive there is only one instance of these dll's on my machine. I have >tried to set the PATH environment variable and I have put all the dll's in >the same directory as my Java class, none of which seem to work. Does anyone >know how to solve this problem? I have read the instructions on >http://ms.gis.umn.edu/docs/howto/java_mapscript_Tomcat_55 and the MapServer >wiki, but these don't seem to help. > >The binary also contains a mapserv.exe CGI executable and this one is >working fine, both mapserv.exe -v and when I invoke it through a webbrowser. > > >Kind regards, > >Bas Vanmeulebrouk. > >import java.io.IOException; >import edu.umn.gis.mapscript.*; > >public class myFirstMapMain { > public static void main(String[] args) throws IOException { > mapObj map = new mapObj("c:\\temp\\test.map"); > imageObj image = map.draw(); > image.save("c:\\temp\\test.png", map); > } >} From pykacz1 at YAHOO.COM Sun Jul 24 13:20:48 2005 From: pykacz1 at YAHOO.COM (Karol Such) Date: Sun, 24 Jul 2005 15:20:48 -0500 Subject: Getting Mapserver to work Message-ID: I instaled MS4W, and I got some of the apps working (maplab, Chameleon..) But how can I start making new maps with mapserver, I went through many tutorials but did not see how to start mapserver and start making maps. From pykacz1 at YAHOO.COM Sun Jul 24 14:22:52 2005 From: pykacz1 at YAHOO.COM (Karol Such) Date: Sun, 24 Jul 2005 16:22:52 -0500 Subject: Getting Mapserver to Work Message-ID: I instaled MS4W, and I got some of the apps working (maplab, Chameleon..) But how can I start making new maps with mapserver, I went through many tutorials but did not see how to start mapserver and start making maps. From BEN at SYNCERA-ITSOLUTIONS.NL Mon Jul 25 00:01:47 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Mon, 25 Jul 2005 09:01:47 +0200 Subject: Getting Mapserver to Work Message-ID: If you want to make maps, you have to be familiar with the MAP file reference. http://ms.gis.umn.edu/docs/reference/mapfile Then you can start changing existing MAP files from eg Chameleon, and use your own data and projection system. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Karol Such 07/24/05 11:22pm >>> I instaled MS4W, and I got some of the apps working (maplab, Chameleon..) But how can I start making new maps with mapserver, I went through many tutorials but did not see how to start mapserver and start making maps. From jachym.cepicky at CENTRUM.CZ Mon Jul 25 04:14:34 2005 From: jachym.cepicky at CENTRUM.CZ (Jachym Cepicky) Date: Mon, 25 Jul 2005 13:14:34 +0200 Subject: coordinates with jBox Message-ID: Hallo, is there a way, how to get coordinates of mouse click with jBox set to "lineon()"? Example : document.jBox.lineon(); while (mouseclick) { document.form[0].points.value = document.form[0].points.value+minx+","+miny; } Thank you J?chym -- Jachym Cepicky e-mail: jachym.cepicky at centrum.cz URL: http://les-ejk.cz GPG: http://les-ejk.cz/gnupg_public_key/ From pneal at MBL.EDU Mon Jul 25 04:44:35 2005 From: pneal at MBL.EDU (Phillip Neal) Date: Mon, 25 Jul 2005 06:44:35 -0500 Subject: segmentation fault with a php mapscript layer Message-ID: Dear All, I have a simple dataset and php program that draws the basic map quite well. But as soon as I try to create a new 'layer' object , I get a ' segmentation fault ' message. Here is the code: set("name", "points"); //$layer->set("type", MS_LAYER_POINT); //$layer->set("status", MS_DEFAULT); $image=$map->draw(); $image_url=$image->saveWebImage(MS_PNG,1,1,0); ?> Map 2
I am running Linux microscope2.mbl.edu 2.6.9-1.667 #1 Tue Nov 2 14:41:25 EST 2004 i686 i686 i386 GNU/ Linux And my mapserver is MapServer version 4.4.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=GDAL INPUT=SHAPEFILE And I am using the mapscript so from that distribution. I am running php version 4.4 configured like: ./configure --with-gd=/usr/local --with-jpeg-dir=/usr/lib --with-png-d ir=/usr/lib --with-tiff-dir=/usr/lib --with-zlib-dir=/usr/lib --with-fr eetype-dir --without-ttf --with-mysql=/usr/local/mysql --enable-dbase --enable-dbx -with-apxs2=/usr/local/apache2/bin/apxs --prefix=/usr/local/p hp --with-mysqli=/usr/local/mysql Any suggestions ? Phil From olivieri.leo at TISCALI.IT Mon Jul 25 05:17:32 2005 From: olivieri.leo at TISCALI.IT (Leonardo Globo) Date: Mon, 25 Jul 2005 14:17:32 +0200 Subject: I: [UMN_MAPSERVER-USERS] hyperlink in a map Message-ID: Hello Bruce, I want to do you the compliments for your application. I wanted to ask you as it is possible to get the tooltips with the images and number on the the symbols. I used php /mapscript Thanks in advance leo -----Messaggio originale----- Da: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Per conto di Bob Bruce Inviato: mercoled? 20 luglio 2005 18.22 A: MAPSERVER-USERS at LISTS.UMN.EDU Oggetto: Re: [UMN_MAPSERVER-USERS] hyperlink in a map Nuri: I use the imagemap feature of MapServer to do this. Right now there is only support for vector symbols and the 'out of the box' support only allows for a single URL to be referenced for all symbols. I have made my own MapServer modifications (which I still need to upload to the website) that allow for individual symbols to be mapped uniquely, if you are into building MapServer then I can provide those changes to you. In the meantime you should check out the MapServer imagemap page at: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?ImageMap and if you have a look at my reply to post #68 (imagemap output format) in the July 2005 MAPSERVER-USERS postings you will see an example of this useage. Bob Bruce, Winnipeg, Manitoba http://www.hwps.ca On Mon, 18 Jul 2005 03:53:43 -0500, SUBSCRIBE MAPSERVER-USERS Nuri wrote: >Hi, > >I have my own map that places several symbols in it through a database. I >need to create a hyperlink for every symbol. Is it possible to do it? > >This is my present map: > >MAP > IMAGETYPE PNG > EXTENT 20.000000 18.000000 50.000000 110.000000 > SIZE 500 350 > SHAPEPATH "data" > IMAGECOLOR 255 180 0 > SYMBOLSET "symbols/symbols35.sym" > FONTSET "fonts/fonts.list" > > # Start of LAYER DEFINITIONS ------------------------------------------- - >- > LAYER > NAME "prova" > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "mapa21.ovf" > DATA "mapa21" > > LABELITEM "id" > #PROJECTION > # "init=epsg:4326" > #END > > CLASS > SYMBOL 'symbols/prova.gif' > #SIZE 6 > COLOR 255 0 0 > LABEL > SIZE MEDIUM > TYPE BITMAP > COLOR 0 0 0 > END > END >END > > # End of LAYER DEFINITIONS ------------------------------- >END # end of map file > > > >It would be ok to insert the link in the symbol or in the ID (labelitem), >it's no matter, to call to another URL like http://www.mysite.com > >Thank you. > >Nuri __________________________________________________________________ TISCALI ADSL 1.25 MEGA Solo con Tiscali Adsl navighi senza limiti e telefoni senza canone Telecom a partire da 19,95 Euro/mese. Attivala entro il 28 luglio, il primo MESE ? GRATIS! CLICCA QUI. http://abbonati.tiscali.it/adsl/sa/1e25flat_tc/ From pgiencke at GLC.ORG Mon Jul 25 06:06:49 2005 From: pgiencke at GLC.ORG (Peter Giencke) Date: Mon, 25 Jul 2005 09:06:49 -0400 Subject: Microsoft's Virtual Earth - Googlemaps Clone? In-Reply-To: <42D7AAB800019CC9@mail-4.mail.tiscali.sys> Message-ID: It appears to be Googlemaps' red-headed stepchild :) http://virtualearth.msn.com/ From Maarten.van.der.Hoeven at KNMI.NL Mon Jul 25 07:07:45 2005 From: Maarten.van.der.Hoeven at KNMI.NL (Hoeven, Maarten van der) Date: Mon, 25 Jul 2005 16:07:45 +0200 Subject: Line thickness with symbols Message-ID: Hi list, I am using a symbol file, with (part of) the symbol definition below. This is working okay, except the line thickness of this circle is (only) 1 pixel. Is there a way to make the line thickness more than 1? SYMBOL Name 'emptycircle' TYPE ELLIPSE FILLED FALSE POINTS 1 1 END Regards, Maarten From Debbie.Pagurek at EC.GC.CA Mon Jul 25 07:06:32 2005 From: Debbie.Pagurek at EC.GC.CA (Pagurek,Debbie [NCR]) Date: Mon, 25 Jul 2005 10:06:32 -0400 Subject: Character encoding problems Message-ID: Argh - hey everyone, I'm getting frustrated with a shapefile that I have that contains the word "Gasp?". When I query this shapefile using Chameleon I'm seeing GaspT or Gasp?. I've tried using Excel to update the dbf but that doesn't work. I've tried other DBF editors as well. I'm confused about character encoding etc. Please - does anyone have a clue as to how I can fix my shapefile attributes with proper french encoding (that will then appear properly when queried from a web mapping app)? Thanks in advance. D. Pagurek From BEN at SYNCERA-ITSOLUTIONS.NL Mon Jul 25 07:11:08 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Mon, 25 Jul 2005 16:11:08 +0200 Subject: Line thickness with symbols Message-ID: Use in your CLASS the following (5 is the width in pixels): CLASS .. STYLE SYMBOL "emptycircle" SIZE 5 END .. END Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> "Hoeven, Maarten van der" 07/25/05 04:07pm >>> Hi list, I am using a symbol file, with (part of) the symbol definition below. This is working okay, except the line thickness of this circle is (only) 1 pixel. Is there a way to make the line thickness more than 1? SYMBOL Name 'emptycircle' TYPE ELLIPSE FILLED FALSE POINTS 1 1 END Regards, Maarten From Maarten.van.der.Hoeven at KNMI.NL Mon Jul 25 07:27:34 2005 From: Maarten.van.der.Hoeven at KNMI.NL (Hoeven, Maarten van der) Date: Mon, 25 Jul 2005 16:27:34 +0200 Subject: Line thickness with symbols Message-ID: Yes, I worked with the size-parameter. But if my understanding is correct, this is the size of the symbol itself, and not the line thickness when plotting a 'not-filled' circle. As an example, see the attchment. In Switzerland, there are two blue 'empty circles', with size 17. The size is correct, only I want to 'thicken' the small blue line. Thanks! Maarten -----Oorspronkelijk bericht----- Van: Bart van den Eijnden [mailto:BEN at Syncera-ITSolutions.NL] Verzonden: Monday, July 25, 2005 4:11 PM Aan: Hoeven, Maarten van der; MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] Line thickness with symbols Use in your CLASS the following (5 is the width in pixels): CLASS .. STYLE SYMBOL "emptycircle" SIZE 5 END .. END Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> "Hoeven, Maarten van der" 07/25/05 >>> 04:07pm >>> Hi list, I am using a symbol file, with (part of) the symbol definition below. This is working okay, except the line thickness of this circle is (only) 1 pixel. Is there a way to make the line thickness more than 1? SYMBOL Name 'emptycircle' TYPE ELLIPSE FILLED FALSE POINTS 1 1 END Regards, Maarten -------------- next part -------------- A non-text attachment was scrubbed... Name: tryout.png Type: image/png Size: 40661 bytes Desc: tryout.png URL: From David.Fawcett at STATE.MN.US Mon Jul 25 07:37:33 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Mon, 25 Jul 2005 09:37:33 -0500 Subject: Line thickness with symbols Message-ID: Maarten, When you apply this symbol to a layer of TYPE LINE, increasing the size parameter will make the line thicker. If, as in your example, it is applied to a point layer, increasing size will increase the diameter of the circle. David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett at moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Hoeven, Maarten van der Sent: Monday, July 25, 2005 9:28 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Line thickness with symbols Yes, I worked with the size-parameter. But if my understanding is correct, this is the size of the symbol itself, and not the line thickness when plotting a 'not-filled' circle. As an example, see the attchment. In Switzerland, there are two blue 'empty circles', with size 17. The size is correct, only I want to 'thicken' the small blue line. Thanks! Maarten -----Oorspronkelijk bericht----- Van: Bart van den Eijnden [mailto:BEN at Syncera-ITSolutions.NL] Verzonden: Monday, July 25, 2005 4:11 PM Aan: Hoeven, Maarten van der; MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] Line thickness with symbols Use in your CLASS the following (5 is the width in pixels): CLASS .. STYLE SYMBOL "emptycircle" SIZE 5 END .. END Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> "Hoeven, Maarten van der" 07/25/05 >>> 04:07pm >>> Hi list, I am using a symbol file, with (part of) the symbol definition below. This is working okay, except the line thickness of this circle is (only) 1 pixel. Is there a way to make the line thickness more than 1? SYMBOL Name 'emptycircle' TYPE ELLIPSE FILLED FALSE POINTS 1 1 END Regards, Maarten From WalrechtG at VERTIS.NL Mon Jul 25 07:56:43 2005 From: WalrechtG at VERTIS.NL (Gerjan Walrecht) Date: Mon, 25 Jul 2005 16:56:43 +0200 Subject: Dynamic Maptitle Message-ID: Hi list, I am running into an issue which seems to me the same as Stefanie Weykam at 2004-08-23 I want to create a dynamic map title in the resulting image. Therefore I created a layer with one feature (point). With the class option 'TEXT' I would like to label that point, but the label will be based upon parameters send by the application, the same way one can use parameters in an class expression. Yet I cant get it working. Is it because of the limitation of the TEXT object? Or do I have to do this in a other way? I am using Mapserver 4.6.0 on a linux redhat machine. This is my layerdefinition: LAYER NAME "Titel" STATUS DEFAULT TRANSFORM OFF TYPE POINT FEATURE POINTS 240 10 END END CLASS SYMBOL 'driehoek' STYLE END TEXT 'Maptile' #how to use paramerters here? COLOR 0 0 0 LABEL COLOR 0 0 0 END END END Gerjan Walrecht Vertis bv. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nbest at SPEAKEASY.NET Mon Jul 25 09:15:07 2005 From: nbest at SPEAKEASY.NET (Neil Best) Date: Mon, 25 Jul 2005 11:15:07 -0500 Subject: wfs layer not appearing in arcmap Message-ID: Hi, everybody. I have set up a WFS service at http://geo.neiu.edu/~neiuveg/cgi-bin/trees after figuring out my PostGIS issues and doing a test with shp2img and starting at some XML with my browser and 'lynx -dump'. The new mystery is why I can't see it in Arc. I am using Arc9.0 with the Data Interoperability Extension and I can see the mswfs_gmap demo layers (from the HOWTO) just fine. Maybe I am missing some necessary metadata. My map file is at http://geo.neiu.edu/~neiuveg/trees.map which I basically filled in from the HOWTO. A fresh set of eyes looking at this would be appreciated if anyone is so inclined. Thanks. From Silke.Reimer at INTEVATION.DE Mon Jul 25 10:02:24 2005 From: Silke.Reimer at INTEVATION.DE (Silke Reimer) Date: Mon, 25 Jul 2005 19:02:24 +0200 Subject: Holes in polygons in some scales Message-ID: Hallo! I have a question concerning map rendering. Let me first describe the effect that I observed: If you have a look at [1] you see a part of map with a street going from southwest to northeast which is correctly shown as kind of a line. On [2] you see the same street on a smaller scale. Now the line is shown with some gaps inbetween which - in my opinion - shouldn't happen. First I thought that this happens because the road is defined as a very narrow polygon which becomes too small in some scales to be considered for rendering. So I changed the layers type from polygon to line. According to my theory the full outline of the polygon should be drawn. But the gaps still remained. Now my questions: Do you have any idea what happens here? And do you know how to avoid this effect by using a special configuration in the mapfile? Many thanks for your help, Silke [1] http://ftp.intevation.de/users/silke/mapserver/polywithoutholes.png [2] http://ftp.intevation.de/users/silke/mapserver/polywithholes.png -- Intevation GmbH Georgstrasse 4 49074 Osnabr?ck, Germany http://intevation.de http://intevation.de/~silke FreeGIS.org http://freegis.org/ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From andy.canfield at GMAIL.COM Mon Jul 25 11:20:05 2005 From: andy.canfield at GMAIL.COM (Andy Canfield) Date: Mon, 25 Jul 2005 11:20:05 -0700 Subject: off topic: earth.google.com In-Reply-To: <005e01c58f59$9e069520$041410ac@comune.lugo.ra.it> Message-ID: As promised here is a quick screen shot of some of our network laid into Google Earth. As you can see I still have to mess with the draw order and symbol sizes a bit to get it looking really nice. This was about a day worth of work to get it to this point. The XML doc is very easy to write so I expect many folks will come up with much cooler things very soon. Andy -------------- next part -------------- A non-text attachment was scrubbed... Name: Example.png Type: image/png Size: 624154 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Example_Tilted.png Type: image/png Size: 586815 bytes Desc: not available URL: From adam at JAMRADAR.COM Mon Jul 25 20:44:14 2005 From: adam at JAMRADAR.COM (Adam W) Date: Mon, 25 Jul 2005 22:44:14 -0500 Subject: What does compile with "--with-httpd" do? Message-ID: I searched the mailing list and documentation, but could't find what compiling mapserver with "--with-httpd" lets you do. What options do I get if I compile with "--with-httpd"? What extra things does compiling with "--with-httpd" do? From jacob.delfos at MAUNSELL.COM Mon Jul 25 21:59:10 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Tue, 26 Jul 2005 12:59:10 +0800 Subject: Holes in polygons in some scales Message-ID: Silke, I'm probably not the best person to answer this, but I think the reason for your polygon disappearing is that you're using 8bit png, which is indexed colour. When the map is rendered, each pixel is assigned a colour closest to what the colour table is filled up with. If your polygon is black, and its width is less than half a pixel, it is likely not to show up (because the majority of the invididual pixels consist of the surrounding colour, which is picked instead). The colour for that pixel will be whatever surrounds the polygon. It will not 'interpolate' the colour (make it grey, anti-aliased), like 24bit real-colour would. If you think that is not the case, maybe check your file's geometry. I have seen (parts of) polygons disappear if the geometry wasn't valid, e.g. if a shapefile was imported from CAD, which allows unclosed polygons. regards, Jacob -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Silke Reimer Sent: 26 July 2005 01:02 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Holes in polygons in some scales Hallo! I have a question concerning map rendering. Let me first describe the effect that I observed: If you have a look at [1] you see a part of map with a street going from southwest to northeast which is correctly shown as kind of a line. On [2] you see the same street on a smaller scale. Now the line is shown with some gaps inbetween which - in my opinion - shouldn't happen. First I thought that this happens because the road is defined as a very narrow polygon which becomes too small in some scales to be considered for rendering. So I changed the layers type from polygon to line. According to my theory the full outline of the polygon should be drawn. But the gaps still remained. Now my questions: Do you have any idea what happens here? And do you know how to avoid this effect by using a special configuration in the mapfile? Many thanks for your help, Silke [1] http://ftp.intevation.de/users/silke/mapserver/polywithoutholes.png [2] http://ftp.intevation.de/users/silke/mapserver/polywithholes.png -- Intevation GmbH Georgstrasse 4 49074 Osnabr?ck, Germany http://intevation.de http://intevation.de/~silke FreeGIS.org http://freegis.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From jachym.cepicky at CENTRUM.CZ Mon Jul 25 23:59:20 2005 From: jachym.cepicky at CENTRUM.CZ (Jachym Cepicky) Date: Tue, 26 Jul 2005 08:59:20 +0200 Subject: coordinates with jBox Message-ID: hallo, On Mon, Jul 25, 2005 at 09:17:54PM -0600, Richard Greenwood wrote: > > [...] > Hello J?chym, > > When lineon == true, measure_handler() will be called when user clicks > mouse. measure_handler() does not return mouse coordinates, but if you > set applet parameter verbose=true, then the javascript handler > mouseenter_handler() will be called each time the mouse moves more than > 'jitter' pixels. So save these coordinates in js variables, then fetch > them in measure_handler(). > > Regards, Good hint. But the measure_handler stores *all* the values, depending on jitter and *not* on mouse click. All the coordinates, over which I move the mouse will be saved. I need only those of them, which are "under" the mouse click. In measure_handler(): ... if (document.mapserv.tool.value == "analyze") { document.mapserv.points.value = document.forms[0].points.value + document.forms[0].curr_point.value; //console(document.mapserv.points.value ); } ... How to do this? Thanks Jachym -- Jachym Cepicky e-mail: jachym.cepicky at centrum.cz URL: http://les-ejk.cz GPG: http://les-ejk.cz/gnupg_public_key/ From sweykam at TELELINE.ES Tue Jul 26 00:18:40 2005 From: sweykam at TELELINE.ES (Stefanie Weykam) Date: Tue, 26 Jul 2005 09:18:40 +0200 Subject: Dynamic Maptitle In-Reply-To: Message-ID: Gerjan, this is how I did it: LAYER #-------subtitulo para especies--- NAME "subtitESP" STATUS OFF TYPE ANNOTATION TRANSFORM FALSE CLASS LABEL TYPE TRUETYPE FONT verdana-italic SIZE 12 POSITION LL COLOR 160 90 0 END END FEATURE TEXT "Merops apiaster" # "Abejaruco com?n" POINTS 635 10 END END END Remember this: TYPE is ANNOTATION Feature points refere to the image coordinates (not map coordinates!) Set the LABEL parameters to define colour and size of the text. I used POSITION LowerLeft since my titles are anchored close to the right border of the map and then extent to the left according to text length (you may wish to change that for your application). Do not use STATUS DEFAULT in case you want to toggle the title on and off. Hope this helps, Stefanie From jachym.cepicky at CENTRUM.CZ Tue Jul 26 02:55:26 2005 From: jachym.cepicky at CENTRUM.CZ (Jachym Cepicky) Date: Tue, 26 Jul 2005 11:55:26 +0200 Subject: perl mapscript and layer transparency Message-ID: Hallo, i would like to set transparency for some layers in my application and not in mapfile. First, I would like just to print the transparency value. [...] my $layerObj = $mapObj->getLayer($indxs[$i]); print "$layerObj->{trasparency}\n"; [...] The only thing I get, is: Can't locate auto/mapscript/layerObj/swig_traspa.al in @INC (@INC contains: /var/www/perl /etc/perl /usr/local/lib/perl/5.8.7 /usr/local/share/perl/5.8.7 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl . /etc/apache/ /etc/apache/lib/perl) at /usr/lib/perl5/mapscript.pm line 29 Does anybody know, what to do with this? Thank you Jachym -- Jachym Cepicky e-mail: jachym.cepicky at centrum.cz URL: http://les-ejk.cz GPG: http://les-ejk.cz/gnupg_public_key/ From albrecht at FIELAX.DE Tue Jul 26 03:44:17 2005 From: albrecht at FIELAX.DE (Sebastian Albrecht) Date: Tue, 26 Jul 2005 12:44:17 +0200 Subject: How to show lines between PostGIS data of type POINT Message-ID: Hello, is it possible to show lines between POINT data results from a PostGIS-DB? Is it possible to somehow convert one point and the next one following to a line on-the-fly each time the Mapserver queries the database? My problem is I have a lot of single latlon points which have different timestamps and further values. The user should be able to query these values of a single point but lines should be shown in the map. Using a LINE type would not be very consistent because the user would not know which end of the line is the point the values belong to. One knows something? ;) Best regards, Sebastian From WalrechtG at VERTIS.NL Tue Jul 26 05:05:32 2005 From: WalrechtG at VERTIS.NL (Gerjan Walrecht) Date: Tue, 26 Jul 2005 14:05:32 +0200 Subject: Dynamic Maptitle Message-ID: Hi Stefanie and List, I modified my layer configuration according to the hints of Sefanie (tnx fot that!). It seems a better way to configure the layer, but the maptile itself is still static. I would like to use a parameter in the Text like for instance: ... TEXT "Rainfall in the year %parameter_year%" ... Has anyone a suggestion? This is my layer configuration now: LAYER NAME "Titel" STATUS DEFAULT #title should always be on TRANSFORM FALSE TYPE ANNOTATION CLASS LABEL TYPE bitmap # FONT verdana-italic #Truetype fonts do not work yet on my machine # SIZE 12 POSITION CC COLOR 0 0 0 END END FEATURE POINTS 240 10 END TEXT "%year% Dynamic Title here" END END Gerjan -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Stefanie Weykam Sent: 26 juli 2005 9:19 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Dynamic Maptitle Gerjan, this is how I did it: LAYER #-------subtitulo para especies--- NAME "subtitESP" STATUS OFF TYPE ANNOTATION TRANSFORM FALSE CLASS LABEL TYPE TRUETYPE FONT verdana-italic SIZE 12 POSITION LL COLOR 160 90 0 END END FEATURE TEXT "Merops apiaster" # "Abejaruco com?n" POINTS 635 10 END END END Remember this: TYPE is ANNOTATION Feature points refere to the image coordinates (not map coordinates!) Set the LABEL parameters to define colour and size of the text. I used POSITION LowerLeft since my titles are anchored close to the right border of the map and then extent to the left according to text length (you may wish to change that for your application). Do not use STATUS DEFAULT in case you want to toggle the title on and off. Hope this helps, Stefanie -------------- next part -------------- An HTML attachment was scrubbed... URL: From lfilak at MEDINACO.ORG Tue Jul 26 05:10:14 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Tue, 26 Jul 2005 08:10:14 -0400 Subject: perl mapscript and layer transparency Message-ID: The following message was sent by Jachym Cepicky on Tue, 26 Jul 2005 11:55:26 +0200. > Hallo, > > i would like to set transparency for some layers in my application > and not in mapfile. > > First, I would like just to print the transparency value. > > [...] > my $layerObj = $mapObj->getLayer($indxs[$i]); > print "$layerObj->{trasparency}\n"; > [...] > > The only thing I get, is: > > Can't locate auto/mapscript/layerObj/swig_traspa.al in @INC (@INC contains: /var/www/perl /etc/perl /usr/local/lib/perl/5.8.7 /usr/local/share/perl/5.8.7 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl . /etc/apache/ /etc/apache/lib/perl) at /usr/lib/perl5/mapscript.pm line 29 > > Does anybody know, what to do with this? Jachym, What version of MS are you using? It looks like a typo somewhere. Lowell From markadams at CUESTASYS.COM Tue Jul 26 05:54:29 2005 From: markadams at CUESTASYS.COM (Mark Adams) Date: Tue, 26 Jul 2005 08:54:29 -0400 Subject: ANGLE keyword in MAP file Message-ID: Some time ago there was an announcement in this list that map rotation was being supported (in beta mode, I guess) - I think it was with 4.4 that this was announced. I haven't seen anything about it since, and don't find it in the documentation online. Can someone clarify the status of this functionality? I believe support was through the MAP level with the ANGLE keyword, and there was a mapscript function to set the angle as well? Thanx. ------------------------------ Mark Adams Senior Analyst & Project Manager Cuesta Systems (DPRA Canada) 5230 South Service Road Burlington, ON L7L 5K2 Phone: 905-333-4544 x14 Fax: 905-333-0455 Email: mark.adams at dpra.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at DMSOLUTIONS.CA Tue Jul 26 06:01:01 2005 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Tue, 26 Jul 2005 09:01:01 -0400 Subject: ANGLE keyword in MAP file In-Reply-To: Message-ID: Hi Mark, Notes were added on this to the 4.6 mapfile-reference doc at http://mapserver.gis.umn.edu/doc/mapfile-reference.html#map (and it also refers to the wiki page on this topic). jeff Mark Adams wrote: > Some time ago there was an announcement in this list that map rotation > was being supported (in beta mode, I guess) ? I think it was with 4.4 > that this was announced. I haven?t seen anything about it since, and > don?t find it in the documentation online. Can someone clarify the > status of this functionality? I believe support was through the MAP > level with the ANGLE keyword, and there was a mapscript function to set > the angle as well? > > > > Thanx. > > > > ------------------------------ > > Mark Adams > > Senior Analyst & Project Manager > > Cuesta Systems (DPRA Canada) > > 5230 South Service Road > > Burlington, ON L7L 5K2 > > Phone: 905-333-4544 x14 > > Fax: 905-333-0455 > > Email: mark.adams at dpra.com > > > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From markadams at CUESTASYS.COM Tue Jul 26 06:06:03 2005 From: markadams at CUESTASYS.COM (Mark Adams) Date: Tue, 26 Jul 2005 09:06:03 -0400 Subject: ANGLE keyword in MAP file In-Reply-To: <42E6340D.3050405@dmsolutions.ca> Message-ID: Excellent - thanks! A slightly off-topic follow-up though, there now seem to be 2 mapserver web sites with different versions of the documentation. If you go to the MAP object documentation at http://ms.gis.umn.edu/docs/reference/mapfile/mapObj, there is no mention of the ANGLE keyword. Can someone clarify the status of these 2 websites, i.e., where should a user be going to get this kind of information? Thanks again. ------------------------------ Mark Adams Senior Analyst & Project Manager Cuesta Systems (DPRA Canada) 5230 South Service Road Burlington, ON L7L 5K2 Phone: 905-333-4544 x14 Fax: 905-333-0455 Email: mark.adams at dpra.com -----Original Message----- From: Jeff McKenna [mailto:jmckenna at dmsolutions.ca] Sent: July 26, 2005 9:01 AM To: Mark Adams Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] ANGLE keyword in MAP file Hi Mark, Notes were added on this to the 4.6 mapfile-reference doc at http://mapserver.gis.umn.edu/doc/mapfile-reference.html#map (and it also refers to the wiki page on this topic). jeff Mark Adams wrote: > Some time ago there was an announcement in this list that map rotation > was being supported (in beta mode, I guess) - I think it was with 4.4 > that this was announced. I haven't seen anything about it since, and > don't find it in the documentation online. Can someone clarify the > status of this functionality? I believe support was through the MAP > level with the ANGLE keyword, and there was a mapscript function to set > the angle as well? > > > > Thanx. > > > > ------------------------------ > > Mark Adams > > Senior Analyst & Project Manager > > Cuesta Systems (DPRA Canada) > > 5230 South Service Road > > Burlington, ON L7L 5K2 > > Phone: 905-333-4544 x14 > > Fax: 905-333-0455 > > Email: mark.adams at dpra.com > > > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From Debbie.Pagurek at EC.GC.CA Tue Jul 26 06:24:38 2005 From: Debbie.Pagurek at EC.GC.CA (Pagurek,Debbie [NCR]) Date: Tue, 26 Jul 2005 09:24:38 -0400 Subject: SLD pointsymbolizer externalgraphic trouble Message-ID: I am having trouble with an SLD that should put an externalgraphic at a point. I am getting a blank map and when I do a view source I am seeing Gobbldygook: GIF87aX?? ...etc (this happens if I set imagetype GIF or PNG), and also if I don't set IMAGETYPE at all. An SLD that uses an external graphic for a polygon layer works fine. I am including the sld file and my mapfile as attachments, and the following is the URL I'm using. http://localhost/cgi-bin/mapserv.exe?map=c:\ms4w\apps\chameleon-2.2\cesi\map\pix.map&version=1.1.1&service=wms&request=getmap&layers=popplace&sld=http://localhost/chameleon/cesi/sldtest.xml I'm on Windows. MapServer version 4.6.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG Anybody have any ideas? Is this a bug? D. Pagurek -------------- next part -------------- A non-text attachment was scrubbed... Name: pix.map Type: application/octet-stream Size: 4243 bytes Desc: pix.map URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: sldtest.xml Type: text/xml Size: 1006 bytes Desc: sldtest.xml URL: From jachym.cepicky at CENTRUM.CZ Tue Jul 26 06:28:24 2005 From: jachym.cepicky at CENTRUM.CZ (Jachym Cepicky) Date: Tue, 26 Jul 2005 15:28:24 +0200 Subject: perl mapscript and layer transparency Message-ID: Ok, possible solution var n_old = 0; in measure_handler: if (n != old_n) document.forms[0].points.value=document.forms[0].points.value+document.forms[0].curr_points.value; old_n = n; Jachym -- Jachym Cepicky e-mail: jachym.cepicky at centrum.cz URL: http://les-ejk.cz GPG: http://les-ejk.cz/gnupg_public_key/ From David.Fawcett at STATE.MN.US Tue Jul 26 06:43:53 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Tue, 26 Jul 2005 08:43:53 -0500 Subject: ANGLE keyword in MAP file Message-ID: Mark, There is a project underway to build a new official MapServer Web site. http://ms.gis.umn.edu/ Howard Butler has put a lot of work into setting this up in a content management system (Plone). The people responsible for each document are working on converting the docs and bringing them to the new site. Eventually, this beta site will become 'officially official' and move to mapserver.gis.umn.edu. The Plone based site allows a user to log in and then add comments like, 'Why doesn't ANGLE appear in this version of the documentation'.... David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett at moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Mark Adams Sent: Tuesday, July 26, 2005 8:06 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] ANGLE keyword in MAP file Excellent - thanks! A slightly off-topic follow-up though, there now seem to be 2 mapserver web sites with different versions of the documentation. If you go to the MAP object documentation at http://ms.gis.umn.edu/docs/reference/mapfile/mapObj, there is no mention of the ANGLE keyword. Can someone clarify the status of these 2 websites, i.e., where should a user be going to get this kind of information? Thanks again. ------------------------------ Mark Adams Senior Analyst & Project Manager Cuesta Systems (DPRA Canada) 5230 South Service Road Burlington, ON L7L 5K2 Phone: 905-333-4544 x14 Fax: 905-333-0455 Email: mark.adams at dpra.com -----Original Message----- From: Jeff McKenna [mailto:jmckenna at dmsolutions.ca] Sent: July 26, 2005 9:01 AM To: Mark Adams Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] ANGLE keyword in MAP file Hi Mark, Notes were added on this to the 4.6 mapfile-reference doc at http://mapserver.gis.umn.edu/doc/mapfile-reference.html#map (and it also refers to the wiki page on this topic). jeff Mark Adams wrote: > Some time ago there was an announcement in this list that map rotation > was being supported (in beta mode, I guess) - I think it was with 4.4 > that this was announced. I haven't seen anything about it since, and > don't find it in the documentation online. Can someone clarify the > status of this functionality? I believe support was through the MAP > level with the ANGLE keyword, and there was a mapscript function to set > the angle as well? > > > > Thanx. > > > > ------------------------------ > > Mark Adams > > Senior Analyst & Project Manager > > Cuesta Systems (DPRA Canada) > > 5230 South Service Road > > Burlington, ON L7L 5K2 > > Phone: 905-333-4544 x14 > > Fax: 905-333-0455 > > Email: mark.adams at dpra.com > > > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From osgis.lists at GMAIL.COM Tue Jul 26 06:50:52 2005 From: osgis.lists at GMAIL.COM (David Bitner) Date: Tue, 26 Jul 2005 08:50:52 -0500 Subject: How to show lines between PostGIS data of type POINT In-Reply-To: <93412763.20050726124417@fielax.de> Message-ID: To show lines but query points, you would need to have your data in Mapserver as both lines and points. To convert your points to lines in Postgis (can be done on the fly) look into Collect(), MakeLine(), and AddPoint(). You'll need to be sure to order your points by timestamp before aggregating them to the line. On 7/26/05, Sebastian Albrecht wrote: > Hello, > > is it possible to show lines between POINT data results from a > PostGIS-DB? Is it possible to somehow convert one point and the next > one following to a line on-the-fly each time the Mapserver queries the > database? > > My problem is I have a lot of single latlon points which have > different timestamps and further values. The user should be able to > query these values of a single point but lines should be shown in the > map. Using a LINE type would not be very consistent because the user > would not know which end of the line is the point the values belong > to. > > One knows something? ;) > > Best regards, > Sebastian > From godwin.liz at GMAIL.COM Tue Jul 26 07:07:24 2005 From: godwin.liz at GMAIL.COM (Liz Godwin) Date: Tue, 26 Jul 2005 10:07:24 -0400 Subject: Microsoft's Virtual Earth - Googlemaps Clone? In-Reply-To: <20050725130411.2795A255C@superior.great-lakes.net> Message-ID: I saw this, but was thoroughly disappointed in it. No detailed images of Canada appeared. What good is a virtual earth if all that is displayed is the USA? I still love google. On 7/25/05, Peter Giencke wrote: > > It appears to be Googlemaps' red-headed stepchild :) > > http://virtualearth.msn.com/ > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fwarmerdam at GMAIL.COM Tue Jul 26 07:29:32 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Tue, 26 Jul 2005 10:29:32 -0400 Subject: What does compile with "--with-httpd" do? In-Reply-To: Message-ID: On 7/25/05, Adam W wrote: > I searched the mailing list and documentation, but could't find what > compiling mapserver with "--with-httpd" lets you do. > > What options do I get if I compile with "--with-httpd"? > What extra things does compiling with "--with-httpd" do? Adam, Looking through configure.in it seems that this option is used to determine if the server is Apache 2.x so that later on the --enable-debug switch can decide if extra work needs to be done to make stderr error logging "non-blocking". I'm not sure what bad things might happen if you don't make stderr logging non-blocking on Apache 2 though. If you aren't using --enable-debug or Apache 2 it shouldn't matter wether you use --with-httpd or not. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From sweykam at TELELINE.ES Tue Jul 26 07:33:41 2005 From: sweykam at TELELINE.ES (Stefanie Weykam) Date: Tue, 26 Jul 2005 16:33:41 +0200 Subject: Dynamic Maptitle In-Reply-To: Message-ID: Gerjan, Here comes an extract of my function. I took the database query part and some other conditions out, so things get hopefully clearer. I don't remember why I had to create a line object, but it works. Don't forget to draw the map after you modified the layer. You can see how it works here: http://www.vertebradosibericos.org/aves/atlas/presentacion.html (click on 'mapas de distribuci?n...') good luck! Stefanie ###### change the map title ####### # not shown here: # establish conection to the database to get the new parameter for the title # query result returns an array; $arrayVal[0] is the scientific name of the # species I am looking for (is 'year' for you) # $specname=$arrayVal[0] # get layer parameters from map file $subtitESP=$map->getLayerByName('subtitESP'); # create class object using the existing class parameters $oClass=$subtitESP->getClass(0); # ..and set label font and size (only if you wish to change them) $oClass->label->set('font', 'verdana-italic'); # create a point and a line object (line object will have only one point here) $oP=ms_newPointObj(); $oL=ms_newLineObj(); # create shape object $shape=ms_newShapeObj(MS_SHAPE_POINT); # set coords of the point and add it to the line, then add line to the shape-object $oP->setXY(352,5); $oL->add($oP); $shape->add($oL); # asign the new name (year in your case) $shape->set('text', $specname); # add the layer feature to the shape, switch layer on and draw it $subtitESP->addFeature($shape); $subtitESP->set('status', 1); $img=$map->draw(); $subtitESP->draw($img); From flavio at TYDAC.CH Tue Jul 26 07:32:47 2005 From: flavio at TYDAC.CH (Flavio Hendry) Date: Tue, 26 Jul 2005 16:32:47 +0200 Subject: Microsoft's Virtual Earth - Googlemaps Clone? In-Reply-To: Message-ID: > I saw this, but was thoroughly disappointed in it. No detailed images > of Canada appeared. What good is a virtual earth if all that is > displayed is the USA? eh? is there something outside the USA??? ;-) ciao flav From steve.lime at DNR.STATE.MN.US Tue Jul 26 07:40:58 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 26 Jul 2005 09:40:58 -0500 Subject: Labels using shape index Message-ID: Eric: This is not doable as the code sits now. You have to label with an attribute, unless, of course, you are drawing features individually using the shapeObj draw method. With that method you pass the label text as part of the method call so the text could be anything at all. There will be a performance and complexity hit should you decide to do that. I would recomend staying with an attribute if at all possible. My question would be why would you want to label with shape id? Since it's not a stable value in many cases. Steve >>> Eric Shuman 07/22/05 6:32 PM >>> I'm new to mapserver and am still trying to keep my head above water so maybe this is very simple, but I have not been able to find a solution so far... I have gotten as far as creating a map file, and PHP mapscript that will query a shapefile by feature and return a map. I would like to label the returned features with the index number of the shapes. (ie. 0, 1, 2...) I have only been able to get labels from the shapefile attributes themselves to work. Is there a way to define the LABELITEM as the ID or shapeindex of the returned features? Do I need to create an annotation layer with points for each shape and define a label value? How??? Can you add a field to the returned featureQuery and calculate the field to be used as the LABELITEM? Suggestions, examples, and guidance would be greatly appreciated! Thanks in advance. ~Eric From umberto.nicoletti at GMAIL.COM Tue Jul 26 07:52:44 2005 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Tue, 26 Jul 2005 16:52:44 +0200 Subject: Microsoft's Virtual Earth - Googlemaps Clone? In-Reply-To: Message-ID: On 7/26/05, Flavio Hendry wrote: > > I saw this, but was thoroughly disappointed in it. No detailed images > > of Canada appeared. What good is a virtual earth if all that is > > displayed is the USA? > > eh? is there something outside the USA??? ;-) > and even that is not really accurate... :-) http://www.theregister.co.uk/2005/07/25/msn_earth_deletes_aple/ > ciao > flav > From Ryan.J.Owens at NWO02.USACE.ARMY.MIL Tue Jul 26 07:52:50 2005 From: Ryan.J.Owens at NWO02.USACE.ARMY.MIL (Owens, Ryan J NWD02 CONTRACTOR) Date: Tue, 26 Jul 2005 09:52:50 -0500 Subject: Microsoft's Virtual Earth - Googlemaps Clone? Message-ID: Not the last time I checked. Ryan -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Flavio Hendry Sent: Tuesday, July 26, 2005 9:33 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Microsoft's Virtual Earth - Googlemaps Clone? > I saw this, but was thoroughly disappointed in it. No detailed images > of Canada appeared. What good is a virtual earth if all that is > displayed is the USA? eh? is there something outside the USA??? ;-) ciao flav From assefa at DMSOLUTIONS.CA Tue Jul 26 09:31:49 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Tue, 26 Jul 2005 12:31:49 -0400 Subject: SLD pointsymbolizer externalgraphic trouble In-Reply-To: <3F34A5A15450C74C813BA20E31DBB451ECCE75@ncrx3.ncr.int.ec.gc.ca> Message-ID: Debbie, I have tested your sld with local data and the only "problem" I found was that the format used is image/gif instead of gif. I have rechcked the sld specs and it specifies that the format should be of MIME type so your sld should be valid. I have corrected the test to test for GIF or image/gif (as well as PNG and image/png). (related bug is http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1430). If possible use the latest version from cvs or until you get a new build you can use GIF as the value of the format. Later, Pagurek,Debbie [NCR] wrote: > I am having trouble with an SLD that should put an externalgraphic at a point. > I am getting a blank map and when I do a view source I am seeing Gobbldygook: > GIF87aX?? ...etc (this happens if I set imagetype GIF or PNG), and also if I don't set IMAGETYPE at all. > An SLD that uses an external graphic for a polygon layer works fine. > > I am including the sld file and my mapfile as attachments, and the following is the URL I'm using. > > http://localhost/cgi-bin/mapserv.exe?map=c:\ms4w\apps\chameleon-2.2\cesi\map\pix.map&version=1.1.1&service=wms&request=getmap&layers=popplace&sld=http://localhost/chameleon/cesi/sldtest.xml > > I'm on Windows. > MapServer version 4.6.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG > > Anybody have any ideas? Is this a bug? > > D. Pagurek > > > ------------------------------------------------------------------------ > > > xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"> > dp_generated_sld > test sld for external graphic > test > > popplace > > Cities > Cities > 1 > > > > > > > image/gif > > 44 > > > > > > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From nmt at CS.STIR.AC.UK Tue Jul 26 09:51:18 2005 From: nmt at CS.STIR.AC.UK (Nhamoinesu Mtetwa) Date: Tue, 26 Jul 2005 17:51:18 +0100 Subject: Aerial photos Message-ID: Hello there, How do I form a mapfile base layer using Aerial photos? The files are in pairs with extensions .jpg and .jgw One of the .jgw has the following numbers: 0.250000 0.000000 0.000000 -0.250000 166000.000000 45000.000000 which I think are the extent values but I am not sure. The other question is that: is there anyway of getting the name of the image that CGI program mapserv creates when one is in browse mode? Cheers, Nhamo. -- The University of Stirling is a university established in Scotland by charter at Stirling, FK9 4LA. Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not disclose, copy or deliver this message to anyone and any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer do not consent to Internet email for messages of this kind. From numerous at GMAIL.COM Tue Jul 26 10:08:29 2005 From: numerous at GMAIL.COM (Yar Doroshenko) Date: Tue, 26 Jul 2005 12:08:29 -0500 Subject: ogr2ogr with file list Message-ID: Hi Guys, I'm working on automating my shapefile coordinate conversions. I know how to do single file conversion: ogr2ogr input.shp output.shp -t_srs WGS84 Now, can I automate the process? Let's say I have a list of shapefiles that I want to convert, would I do something like: for %f in (path_here\list.in) do ogr2ogr %f I tried this one in many different ways, but I do get errors. Would anyone have a correct syntax for multiple file conversions? Thank you Yar From kenlord at GMAIL.COM Tue Jul 26 10:19:26 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Tue, 26 Jul 2005 10:19:26 -0700 Subject: ESRI Geodatabase Connection for MapServer Message-ID: Hi List, I'm back from my holidays ... with many bottles of BC Okanagen wine, and a wicked farmer's tan. I would like to know if interest has increased or waned for the idea of developing a way for MapServer to read from ESRI personal geodatabases. From sergiodlopez at YAHOO.COM Tue Jul 26 10:26:14 2005 From: sergiodlopez at YAHOO.COM (Sergio Lopez) Date: Tue, 26 Jul 2005 12:26:14 -0500 Subject: problem with line layers Message-ID: Hi all: I have a problem with line layers. I use the following map file, and I call it using http://localhost/cgi-bin/mapas/lp.map&mode=map, but the line layers are not shown, just the background. But if I use this map file with mapedit or gmap everithing?s ok. what am I doing wrong? MAP NAME "lplineas" STATUS ON EXTENT 5656000 6090000 5707000 6149000 SIZE 300 300 SHAPEPATH "./data" SYMBOLSET "./etc/symbols.sym" FONTSET "./etc/fonts.txt" IMAGETYPE JPEG IMAGECOLOR 100 150 200 UNITS METERS #----OBJETO WEB---------------------------------------------------------- ----------- WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" END #----FORMATO DE SALIDA--------------------------------------------------- ------------------ OUTPUTFORMAT NAME "JPG" MIMETYPE "image/jpeg" DRIVER "GD/JPEG" EXTENSION "jpg" IMAGEMODE RGB TRANSPARENT OFF FORMATOPTION "QUALITY=80" END #----LAYER CALLES-------------------------------------------------------- ------------- LAYER #-------COMIENZA LAYER NAME "Calles" #GROUP "vias" STATUS ON DATA "./data/ejes" TYPE POLYGON #MINSCALE 25000 TOLERANCE 10 TOLERANCEUNITS PIXELS CLASS NAME "calle" #TEMPLATE "ttt_query.html" STYLE SYMBOL 13 COLOR 103 106 107 SIZE 3 MINSIZE 3 MAXSIZE 25 #MINSIZE 1 #MAXSIZE 100 ANTIALIAS TRUE END END END LAYER NAME "puntos" STATUS ON DATA "./data/cajeros" TYPE POINT UNITS METERS CLASS NAME "fff" STYLE SYMBOL 7 COLOR 172 0 0 SIZE 1 MINSIZE 3 MAXSIZE 25 END END END #---------TERMINA LAYER END From tylermitchell at SHAW.CA Tue Jul 26 10:27:53 2005 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Tue, 26 Jul 2005 10:27:53 -0700 Subject: ESRI Geodatabase Connection for MapServer Message-ID: Hi Ken, I'm interested in seeing this happen, but not sure about re$ources at this moment. Tyler ----- Original Message ----- From: Ken Lord Date: Tuesday, July 26, 2005 10:19 am Subject: [UMN_MAPSERVER-USERS] ESRI Geodatabase Connection for MapServer > Hi List, > I'm back from my holidays ... with many bottles of BC Okanagen > wine, and a > wicked farmer's tan. > I would like to know if interest has increased or waned for the > idea of > developing a way for MapServer to read from ESRI personal > geodatabases.From what I understand, the ESRI personal geodatabase > will not die with > version 9.2, but will in fact be enhanced. > More information about ESRI's plans is available here: > > http://www.esri.com/news/arcnews/summer05articles/managing-spatial- > data.html The new format they are creating, the 'file-based > geodatabase' is > advertised as being very similar in function to the old > geodatabase, but it > is something quite different in structure. The rumours I've heard > are that > it is not just a departure from an MS Access backbone, but > involves semantic > networks for storing and linking data instead of an RDBMS. > Basic information about semantic networks can be found here: > http://en.wikipedia.org/wiki/Semantic_network > In fact the file size limit ESRI mentions of MS Access may soon > be moot as > MS is changing to a SQL Server engine for Access which won't have > the limit. > Any limit remaining will be on ESRI's side. > My very very small knowledge (and great ignorance) of semantic > networks > tells me that the new format may require a lot of effort to setup > from > scratch for a new dataset, and that at the least the old > geodatabases will > still be used as an easier pathway to get data into the new > format. Besides, > didnt they say coverages were dead when geodatabases came out? > One of our employees is currently at an ESRI conference in San > Diego, and > is trying to find out more for us about which way the 800 pound > gorilla will > jump. > Please respond if you are still interested in seeing development > of a > MapServer personal geodatabase connection go ahead. If enough > parties are > willing to contribute to the funding it will be cheap enough that > we won't > need to be concerned about the new format. > Cheers, > Ken Lord > BGC Engineering Inc > Vancouver BC > From steve.lime at DNR.STATE.MN.US Tue Jul 26 10:31:17 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 26 Jul 2005 12:31:17 -0500 Subject: problem with line layers Message-ID: It's the STATUS values. The CGI program turns all layers that are not "STATUS DEFAULT" off and then requires you to explicitly request layers. MapScript-based applications will usually respect the STATUS value set in the mapfile. The solution? Either use STATUS DEFAULT or explicitly request those layers you want in your call to the CGI application (i.e. &layer=calles&layer=puntos). Steve >>> Sergio Lopez 07/26/05 12:26 PM >>> Hi all: I have a problem with line layers. I use the following map file, and I call it using http://localhost/cgi-bin/mapas/lp.map&mode=map, but the line layers are not shown, just the background. But if I use this map file with mapedit or gmap everithing?s ok. what am I doing wrong? MAP NAME "lplineas" STATUS ON EXTENT 5656000 6090000 5707000 6149000 SIZE 300 300 SHAPEPATH "./data" SYMBOLSET "./etc/symbols.sym" FONTSET "./etc/fonts.txt" IMAGETYPE JPEG IMAGECOLOR 100 150 200 UNITS METERS #----OBJETO WEB---------------------------------------------------------- ----------- WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" END #----FORMATO DE SALIDA--------------------------------------------------- ------------------ OUTPUTFORMAT NAME "JPG" MIMETYPE "image/jpeg" DRIVER "GD/JPEG" EXTENSION "jpg" IMAGEMODE RGB TRANSPARENT OFF FORMATOPTION "QUALITY=80" END #----LAYER CALLES-------------------------------------------------------- ------------- LAYER #-------COMIENZA LAYER NAME "Calles" #GROUP "vias" STATUS ON DATA "./data/ejes" TYPE POLYGON #MINSCALE 25000 TOLERANCE 10 TOLERANCEUNITS PIXELS CLASS NAME "calle" #TEMPLATE "ttt_query.html" STYLE SYMBOL 13 COLOR 103 106 107 SIZE 3 MINSIZE 3 MAXSIZE 25 #MINSIZE 1 #MAXSIZE 100 ANTIALIAS TRUE END END END LAYER NAME "puntos" STATUS ON DATA "./data/cajeros" TYPE POINT UNITS METERS CLASS NAME "fff" STYLE SYMBOL 7 COLOR 172 0 0 SIZE 1 MINSIZE 3 MAXSIZE 25 END END END #---------TERMINA LAYER END From tylermitchell at SHAW.CA Tue Jul 26 10:26:22 2005 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Tue, 26 Jul 2005 10:26:22 -0700 Subject: ogr2ogr with file list Message-ID: Hi Yar, I'm pretty sure I've done this before, but not sure I've done it to create a shapefile. Instead of specifying a single input shapefile as the dataset, specify a folder containing several shapefiles. Then also specify an alternate output layer name. Something like this might work... ogr2ogr -t_srs WGS84 /data/merged.shp /data/inputshp/ -nln merged I'm going to need to do the same thing shortly, so I will find out what mistakes I made here. Don't forget that it's: ogr2ogr [ optional] ----- Original Message ----- From: Yar Doroshenko Date: Tuesday, July 26, 2005 10:08 am Subject: [UMN_MAPSERVER-USERS] ogr2ogr with file list > Hi Guys, > > I'm working on automating my shapefile coordinate conversions. I > know how > to do single file conversion: > > ogr2ogr input.shp output.shp -t_srs WGS84 > > Now, can I automate the process? Let's say I have a list of > shapefiles that > I want to convert, would I do something like: > > for %f in (path_here\list.in) do ogr2ogr %f > > I tried this one in many different ways, but I do get errors. > > Would anyone have a correct syntax for multiple file conversions? > > Thank you > > Yar > From bill at BINKO.NET Tue Jul 26 10:49:09 2005 From: bill at BINKO.NET (Bill Binko) Date: Tue, 26 Jul 2005 13:49:09 -0400 Subject: ogr2ogr with file list In-Reply-To: Message-ID: What Operating System (and which Shell -- if Linux/Unix) are you using? If you're using Linux and bash (or something similar), you can do this: (Assuming list.in has a list of input filenames in it) for i in `cat list.in`; do ogr2ogr $i output_$i -t_srs WGS84 ; done Probably easier for automation would be to put all of your "input" shapefiles in an input directory and create an empty output directory. Then run something like this: for i in input/*.shp; do ogr2ogr $i output/`basename $i` -t_srs WGS84; done Hope this helps. Bill On Tue, 26 Jul 2005, Yar Doroshenko wrote: > Hi Guys, > > I'm working on automating my shapefile coordinate conversions. I know how > to do single file conversion: > > ogr2ogr input.shp output.shp -t_srs WGS84 > > Now, can I automate the process? Let's say I have a list of shapefiles that > I want to convert, would I do something like: > > for %f in (path_here\list.in) do ogr2ogr %f > > I tried this one in many different ways, but I do get errors. > > Would anyone have a correct syntax for multiple file conversions? > > Thank you > > Yar > > From bartvde at XS4ALL.NL Tue Jul 26 10:44:47 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Tue, 26 Jul 2005 19:44:47 +0200 Subject: ogr2ogr with file list In-Reply-To: <252212f2527625.2527625252212f@shaw.ca> Message-ID: I would do it like this: Start fwtools batch file. Go to the directory which contains your input files (my directory is C:\temp\input). Type: C:\temp\input>for %f in (*.shp) do ogr2ogr "c:\temp\output\%f" %f -s_srs "+init= epsg:42304" -t_srs WGS84 They will be created with the same name but in c:\temp\output. Best regards, Bart On Tue, 26 Jul 2005 19:26:22 +0200, Tyler Mitchell wrote: > Hi Yar, > I'm pretty sure I've done this before, but not sure I've done it to > create a shapefile. > > Instead of specifying a single input shapefile as the dataset, specify a > folder containing several shapefiles. Then also specify an alternate > output layer name. Something like this might work... > > ogr2ogr -t_srs WGS84 /data/merged.shp /data/inputshp/ -nln merged > > I'm going to need to do the same thing shortly, so I will find out what > mistakes I made here. Don't forget that it's: > > ogr2ogr [ optional] > > ----- Original Message ----- > From: Yar Doroshenko > Date: Tuesday, July 26, 2005 10:08 am > Subject: [UMN_MAPSERVER-USERS] ogr2ogr with file list > >> Hi Guys, >> >> I'm working on automating my shapefile coordinate conversions. I >> know how >> to do single file conversion: >> >> ogr2ogr input.shp output.shp -t_srs WGS84 >> >> Now, can I automate the process? Let's say I have a list of >> shapefiles that >> I want to convert, would I do something like: >> >> for %f in (path_here\list.in) do ogr2ogr %f >> >> I tried this one in many different ways, but I do get errors. >> >> Would anyone have a correct syntax for multiple file conversions? >> >> Thank you >> >> Yar >> > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From erics at AMERI-TITLE.COM Tue Jul 26 11:24:39 2005 From: erics at AMERI-TITLE.COM (Eric Shuman) Date: Tue, 26 Jul 2005 13:24:39 -0500 Subject: Labels using shape index Message-ID: The reason for wanting to use the Shape index is so that a report can be generated on the the results of the query and tied to the map shapes via that number, so result 1, 2, 3... in the report are labeled on the map as 1,2,3. Do you have any examples of using the ShapeObj draw method? From fr-ms at TOURDE.ORG Tue Jul 26 11:35:24 2005 From: fr-ms at TOURDE.ORG (=?iso-8859-15?q?Fran=E7ois_TOURDE?=) Date: Tue, 26 Jul 2005 20:35:24 +0200 Subject: Microsoft's Virtual Earth - Googlemaps Clone? In-Reply-To: (Flavio Hendry's message of "Tue, 26 Jul 2005 16:32:47 +0200") Message-ID: Le 12990i?me jour apr?s Epoch, Flavio Hendry ?crivait: >> I saw this, but was thoroughly disappointed in it. No detailed images >> of Canada appeared. What good is a virtual earth if all that is >> displayed is the USA? > > eh? is there something outside the USA??? ;-) Sorry, but... what is USA ? ;-) From abe.gillespie at GMAIL.COM Tue Jul 26 11:37:38 2005 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Tue, 26 Jul 2005 14:37:38 -0400 Subject: Labels using shape index In-Reply-To: Message-ID: Why not just create an ID column? -Abe On 7/26/05, Eric Shuman wrote: > The reason for wanting to use the Shape index is so that a report can be > generated on the the results of the query and tied to the map shapes via > that number, so result 1, 2, 3... in the report are labeled on the map as 1,2,3. > > Do you have any examples of using the ShapeObj draw method? > From ed at TOPOZONE.COM Tue Jul 26 11:48:10 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 26 Jul 2005 14:48:10 -0400 Subject: Microsoft's Virtual Earth - Googlemaps Clone? Message-ID: It is that place where the good bicyclists come from...... - Ed -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Fran?ois TOURDE Sent: Tuesday, July 26, 2005 2:35 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Microsoft's Virtual Earth - Googlemaps Clone? Le 12990i?me jour apr?s Epoch, Flavio Hendry ?crivait: >> I saw this, but was thoroughly disappointed in it. No detailed images >> of Canada appeared. What good is a virtual earth if all that is >> displayed is the USA? > > eh? is there something outside the USA??? ;-) Sorry, but... what is USA ? ;-) From markadams at CUESTASYS.COM Tue Jul 26 11:55:32 2005 From: markadams at CUESTASYS.COM (Mark Adams) Date: Tue, 26 Jul 2005 13:55:32 -0500 Subject: ESRI Geodatabase Connection for MapServer Message-ID: My company (Cuesta Systems) is interested. The quotation Frank provided was very reasonable, so we would be prepared to go ahead even knowing that the personal GDB format will be replaced in the future. It is not likely to disappear overnight in any case. - Mark Adams markadams at cuestasys.com From erics at AMERI-TITLE.COM Tue Jul 26 12:12:12 2005 From: erics at AMERI-TITLE.COM (Eric Shuman) Date: Tue, 26 Jul 2005 14:12:12 -0500 Subject: Labels using shape index Message-ID: Well the ID column would have to be for all the shapes in the shapefile. The query only returns 50 or so results. If I used the ID at that point the numbering would not be sequential. I'm thinking the best option at this point would be to create a temporary annotation layer by looping through the results of the query and getting the label point of the polygon shapes and drawing them on the map with the ShapeID. From steve.lime at DNR.STATE.MN.US Tue Jul 26 12:22:31 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 26 Jul 2005 14:22:31 -0500 Subject: Labels using shape index Message-ID: So you want to label with the result number NOT the the shape number- big difference. Then looping as you suggest is the best option but using the result counter as the label value not the shape id. Steve >>> Eric Shuman 07/26/05 2:12 PM >>> Well the ID column would have to be for all the shapes in the shapefile. The query only returns 50 or so results. If I used the ID at that point the numbering would not be sequential. I'm thinking the best option at this point would be to create a temporary annotation layer by looping through the results of the query and getting the label point of the polygon shapes and drawing them on the map with the ShapeID. From hjulien at NRCAN.GC.CA Tue Jul 26 12:17:13 2005 From: hjulien at NRCAN.GC.CA (Julien, Heryk) Date: Tue, 26 Jul 2005 15:17:13 -0400 Subject: USGS DEM and OGC WMS -- Bug Message-ID: Hi all, Has anyone succefully added a USGS DEM's to a Mapserver mapfile? I would like to build a wms service with some USGS DEM's but I keep on getting blank page when I do a wms getmap request. The getcapabilities request seems okay but the LatLonBoundingBox element doesn't show up for this layer. Anyone has an idea of what is going wrong? I checked my Mapserver executable using the "-v" flag and I have GDAL. I also checked out what formats are available using the "gdalinfo -formats" command and I found USGSDEM ( http://www.gdal.org/frmt_usgsdem.html ) in the list. Thanks ================================================================ H?ryk Julien -------------- next part -------------- An HTML attachment was scrubbed... URL: From erics at AMERI-TITLE.COM Tue Jul 26 12:49:51 2005 From: erics at AMERI-TITLE.COM (Eric Shuman) Date: Tue, 26 Jul 2005 14:49:51 -0500 Subject: Labels using shape index Message-ID: Sorry, yes the result ID is what I am interested in. So is there an easy way to get the label point of a shape? I think I have the other pieces of the puzzle from some other posts, but I'm not sure the best method to create my annotation point based off of the shape results label point. From Debbie.Pagurek at EC.GC.CA Tue Jul 26 13:22:05 2005 From: Debbie.Pagurek at EC.GC.CA (Pagurek,Debbie [NCR]) Date: Tue, 26 Jul 2005 16:22:05 -0400 Subject: SLD pointsymbolizer externalgraphic trouble Message-ID: Assefa, Are nightly builds available for Windows binaries? I changed my sld to show GIF instead of image/gif but it's still not working. I realized in the examples I sent earlier that my sld didn't contain a Geometry tag. What should this field "property name" contain? A name of a field in the shapefile? the word "msGeometry"? Can you think of anything else I can check on my system to test this? Am I missing something important in my mapfile? I've tried using my own mapfile and also the gmap75_wms.map file that comes with ms4w. At this point I'm just not getting any sld with an external graphic to work. Will keep trying. Debbie ------------------- Debbie, I have tested your sld with local data and the only "problem" I found was that the format used is image/gif instead of gif. I have rechcked the sld specs and it specifies that the format should be of MIME type so your sld should be valid. I have corrected the test to test for GIF or image/gif (as well as PNG and image/png). (related bug is http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1430). If possible use the latest version from cvs or until you get a new build you can use GIF as the value of the format. Later, Pagurek,Debbie [NCR] wrote: > I am having trouble with an SLD that should put an externalgraphic at > a point. I am getting a blank map and when I do a view source I am > seeing Gobbldygook: GIF87aX?? ...etc (this happens if I set > imagetype GIF or PNG), and also if I don't set IMAGETYPE at all. An > SLD that uses an external graphic for a polygon layer works fine. > > I am including the sld file and my mapfile as attachments, and the > following is the URL I'm using. > > http://localhost/cgi-bin/mapserv.exe?map=c:\ms4w\apps\chameleon-2.2\ce > si\map\pix.map&version=1.1.1&service=wms&request=getmap&layers=popplac > e&sld=http://localhost/chameleon/cesi/sldtest.xml > > I'm on Windows. > MapServer version 4.6.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=JPEG INPUT=POSTGIS > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG > > Anybody have any ideas? Is this a bug? > > D. Pagurek > > > ---------------------------------------------------------------------- > -- > > > xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"> > dp_generated_sld > test sld for external graphic > test > > popplace > > Cities > Cities > 1 > > > > > > > image/gif > > 44 > > > > > > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From assefa at DMSOLUTIONS.CA Tue Jul 26 13:45:46 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Tue, 26 Jul 2005 16:45:46 -0400 Subject: SLD pointsymbolizer externalgraphic trouble In-Reply-To: <3F34A5A15450C74C813BA20E31DBB451ECCE7C@ncrx3.ncr.int.ec.gc.ca> Message-ID: Debbie, Pagurek,Debbie [NCR] wrote: > Assefa, > > Are nightly builds available for Windows binaries? > I changed my sld to show GIF instead of image/gif but it's still not working. > I am not sure why It is not working for you. I basically took your mapfile and change few paths to adapt to my settings. The map file points to the gmap-ms40 data. The sld I used is basically yours (I don't think I modified anything). I have attached both files. There are no nightly builds although I can put a mapserver 4.7 cvs version on maptools if you need. > I realized in the examples I sent earlier that my sld didn't contain a Geometry tag. What should this field "property name" contain? A name of a field in the shapefile? the word "msGeometry"? > Should not matter. It is not used. > Can you think of anything else I can check on my system to test this? > > Am I missing something important in my mapfile? I've tried using my own mapfile and also the gmap75_wms.map file that comes with ms4w. > > At this point I'm just not getting any sld with an external graphic to work. Will keep trying. > > Debbie > Is your map returned with a somple getmap rquest without an sld ? I am also assuming that the temporaary directory and path are set properly in the map file (since the graphic is downloaded and copied in that directory) > ------------------- > Debbie, > > I have tested your sld with local data and the only "problem" I found > was that the format used is image/gif instead of > gif. I have rechcked the sld specs and it specifies > that the format should be of MIME type so your sld should be valid. I > have corrected the test to test for GIF or image/gif (as well as PNG and > image/png). (related bug is > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1430). > If possible use the latest version from cvs or until you get a new > build you can use GIF as the value of the format. > > Later, > > Pagurek,Debbie [NCR] wrote: > >>I am having trouble with an SLD that should put an externalgraphic at >>a point. I am getting a blank map and when I do a view source I am >>seeing Gobbldygook: GIF87aX?? ...etc (this happens if I set >>imagetype GIF or PNG), and also if I don't set IMAGETYPE at all. An >>SLD that uses an external graphic for a polygon layer works fine. >> >>I am including the sld file and my mapfile as attachments, and the >>following is the URL I'm using. >> >>http://localhost/cgi-bin/mapserv.exe?map=c:\ms4w\apps\chameleon-2.2\ce >>si\map\pix.map&version=1.1.1&service=wms&request=getmap&layers=popplac >>e&sld=http://localhost/chameleon/cesi/sldtest.xml >> >>I'm on Windows. >>MapServer version 4.6.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >>OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE >>SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER >>SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=JPEG INPUT=POSTGIS >>INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG >> >>Anybody have any ideas? Is this a bug? >> >>D. Pagurek >> >> >>---------------------------------------------------------------------- >>-- >> >> >>> xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"> >>dp_generated_sld >>test sld for external graphic >>test >> >> popplace >> >> Cities >> Cities >> 1 >> >> >> >> >> >> >> image/gif >> >> 44 >> >> >> >> >> >> >> > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: sldtest.xml Type: text/xml Size: 1003 bytes Desc: not available URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: pix.map URL: From steve.lime at DNR.STATE.MN.US Tue Jul 26 13:52:17 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 26 Jul 2005 15:52:17 -0500 Subject: Labels using shape index Message-ID: If you draw the shape using an annotation layer then MapServer will compute the label point for you. Steve >>> Eric Shuman 07/26/05 2:49 PM >>> Sorry, yes the result ID is what I am interested in. So is there an easy way to get the label point of a shape? I think I have the other pieces of the puzzle from some other posts, but I'm not sure the best method to create my annotation point based off of the shape results label point. From matt0177 at GMAIL.COM Tue Jul 26 14:03:55 2005 From: matt0177 at GMAIL.COM (Matthew Edmondson) Date: Tue, 26 Jul 2005 14:03:55 -0700 Subject: mapinfo trouble in mapserver Message-ID: I started using mapserver a few days ago (ith a kitchen sink binary" and have had great sucess with .shp's and .jpegs. I've tried to load in a few diffrent raster images from mapinfo and have yet to be able to get any to display. If i try to load the .tab, I get an error saying that it doesnt recognize that, and that eppl7 is not supported (again, im using a current kitchen sink binary). If i try to load the .tif, the map will display, but i wont have that layer. I've searched all over the net for 2 days, have set a projection value etc, and still no luck. Any help or ideas would be greatly appreciated. Thanks, Matt MAP IMAGETYPE PNG24 SIZE 500 500 EXTENT -110.06722222 31.18804936 -109.02110274 31.9625 IMAGECOLOR 255 255 255 PROJECTION "init=epsg:4326" END web template test_douglas.html imagepath "C:/Program Files/Apache Group/Apache2/htdocs/tmp/" imageurl "/tmp/" end UNITS DD SCALEBAR STATUS ON UNITS MILES INTERVALS 3 TRANSPARENT TRUE OUTLINECOLOR 0 0 0 END # # Start of legend # LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END # # Start of reference map # REFERENCE IMAGE graphics/douglas10.jpg EXTENT -110.06722222 31.18804936 -109.02110274 31.9625 SIZE 120 120 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END LAYER name douglas_raster1 type raster status off data "C:/Program Files/Apache Group/Apache2/htdocs/itasca/graphics/douglas.jpg" end LAYER name douglas_arial_1 type raster status default data "C:/Program Files/Apache Group/Apache2/htdocs/itasca/graphics/grid100a.tif" end LAYER name mexico_region type polygon status default data "C:/Program Files/Apache Group/Apache2/htdocs/itasca/data/mexico_region.shp" labelitem 'state_name' class name 'Mexico' color 120 120 120 outlinecolor 0 0 0 label color 0 0 0 outlinecolor 255 255 255 END END END From numerous at GMAIL.COM Tue Jul 26 14:20:51 2005 From: numerous at GMAIL.COM (Yar Doroshenko) Date: Tue, 26 Jul 2005 16:20:51 -0500 Subject: ogr2ogr with file list Message-ID: Bill, I'm using command prompt on Windows XP machine. On Tue, 26 Jul 2005 13:49:09 -0400, Bill Binko wrote: >What Operating System (and which Shell -- if Linux/Unix) are you using? > >If you're using Linux and bash (or something similar), you can do this: > >(Assuming list.in has a list of input filenames in it) > >for i in `cat list.in`; do ogr2ogr $i output_$i -t_srs WGS84 ; done > >Probably easier for automation would be to put all of your "input" >shapefiles in an input directory and create an empty output directory. > Then run something like this: > >for i in input/*.shp; do ogr2ogr $i output/`basename $i` -t_srs >WGS84; done > > >Hope this helps. >Bill > >On Tue, 26 Jul 2005, Yar Doroshenko wrote: > >> Hi Guys, >> >> I'm working on automating my shapefile coordinate conversions. I know how >> to do single file conversion: >> >> ogr2ogr input.shp output.shp -t_srs WGS84 >> >> Now, can I automate the process? Let's say I have a list of shapefiles that >> I want to convert, would I do something like: >> >> for %f in (path_here\list.in) do ogr2ogr %f >> >> I tried this one in many different ways, but I do get errors. >> >> Would anyone have a correct syntax for multiple file conversions? >> >> Thank you >> >> Yar >> >> From Debbie.Pagurek at EC.GC.CA Tue Jul 26 14:56:07 2005 From: Debbie.Pagurek at EC.GC.CA (Pagurek,Debbie [NCR]) Date: Tue, 26 Jul 2005 17:56:07 -0400 Subject: SLD pointsymbolizer externalgraphic trouble Message-ID: My maps returns fine with a simple getmap request. The tmp directory is set to c:/ms4w/tmp/ms_tmp Is there a way to check that mapserver is writing to that directory? Ie if I use mode=map, should it leave a temporary file there? Mode=map is giving me a map, but isn't leaving a file in that temp directory. Debbie -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Yewondwossen Assefa Sent: Tuesday, July 26, 2005 4:46 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] SLD pointsymbolizer externalgraphic trouble Debbie, Pagurek,Debbie [NCR] wrote: > Assefa, > > Are nightly builds available for Windows binaries? > I changed my sld to show GIF instead of image/gif but it's still not > working. > I am not sure why It is not working for you. I basically took your mapfile and change few paths to adapt to my settings. The map file points to the gmap-ms40 data. The sld I used is basically yours (I don't think I modified anything). I have attached both files. There are no nightly builds although I can put a mapserver 4.7 cvs version on maptools if you need. > I realized in the examples I sent earlier that my sld didn't contain a > Geometry tag. What should this field "property name" contain? A name > of a field in the shapefile? the word "msGeometry"? > Should not matter. It is not used. > Can you think of anything else I can check on my system to test this? > > Am I missing something important in my mapfile? I've tried using my > own mapfile and also the gmap75_wms.map file that comes with ms4w. > > At this point I'm just not getting any sld with an external graphic to > work. Will keep trying. > > Debbie > Is your map returned with a somple getmap rquest without an sld ? I am also assuming that the temporaary directory and path are set properly in the map file (since the graphic is downloaded and copied in that directory) > ------------------- > Debbie, > > I have tested your sld with local data and the only "problem" I > found > was that the format used is image/gif instead of > gif. I have rechcked the sld specs and it specifies > that the format should be of MIME type so your sld should be valid. I > have corrected the test to test for GIF or image/gif (as well as PNG and > image/png). (related bug is > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1430). > If possible use the latest version from cvs or until you get a new > build you can use GIF as the value of the format. > > Later, > > Pagurek,Debbie [NCR] wrote: > >>I am having trouble with an SLD that should put an externalgraphic at >>a point. I am getting a blank map and when I do a view source I am >>seeing Gobbldygook: GIF87aX?? ...etc (this happens if I set >>imagetype GIF or PNG), and also if I don't set IMAGETYPE at all. An >>SLD that uses an external graphic for a polygon layer works fine. >> >>I am including the sld file and my mapfile as attachments, and the >>following is the URL I'm using. >> >>http://localhost/cgi-bin/mapserv.exe?map=c:\ms4w\apps\chameleon-2.2\ce >>si\map\pix.map&version=1.1.1&service=wms&request=getmap&layers=popplac >>e&sld=http://localhost/chameleon/cesi/sldtest.xml >> >>I'm on Windows. >>MapServer version 4.6.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >>OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE >>SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER >>SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=JPEG INPUT=POSTGIS >>INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG >> >>Anybody have any ideas? Is this a bug? >> >>D. Pagurek >> >> >>---------------------------------------------------------------------- >>-- >> >> >>>xmlns="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" >> xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"> >>dp_generated_sld >>test sld for external graphic >>test >> >> popplace >> >> Cities >> Cities >> 1 >> >> >> >> >> >> >> image/gif >> >> 44 >> >> >> >> >> >> >> > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From mike.and.kerry at GMAIL.COM Tue Jul 26 15:31:38 2005 From: mike.and.kerry at GMAIL.COM (Mike Davis) Date: Tue, 26 Jul 2005 14:31:38 -0800 Subject: ESRI Geodatabase Connection for MapServer In-Reply-To: Message-ID: After news of the new GDB format for 9.2 I have been asked to hold off for a little while. We will definately be interested in funding support for the new file format... an I would personally like to try and include some money for support of the access based geodatabase. It is looking like we will need to hold off unitil the next fiscal year at least. -Mike On 7/26/05, Mark Adams wrote: > My company (Cuesta Systems) is interested. The quotation Frank provided was > very reasonable, so we would be prepared to go ahead even knowing that the > personal GDB format will be replaced in the future. It is not likely to > disappear overnight in any case. > > - Mark Adams > markadams at cuestasys.com > From siki at AGT.BME.HU Tue Jul 26 19:06:32 2005 From: siki at AGT.BME.HU (Siki Zoltan) Date: Wed, 27 Jul 2005 01:06:32 -0100 Subject: mapinfo trouble in mapserver {Scanned} In-Reply-To: <8e2cbd66050726140374d36778@mail.gmail.com> Message-ID: Dear MAtthew, To display a raster in mapserver you need georeference in a separate world file or a geotiff file. MapInfo uses different georeference style in tab files. As far as I know mapserver/gdal doesn't support it. You must read raster howto. I hope it helps you Zoltan On Tue, 26 Jul 2005, Matthew Edmondson wrote: > I started using mapserver a few days ago (ith a kitchen sink binary" > and have had great sucess with .shp's and .jpegs. I've tried to load > in a few diffrent raster images from mapinfo and have yet to be able > to get any to display. If i try to load the .tab, I get an error > saying that it doesnt recognize that, and that eppl7 is not supported > (again, im using a current kitchen sink binary). If i try to load the > .tif, the map will display, but i wont have that layer. I've searched > all over the net for 2 days, have set a projection value etc, and > still no luck. Any help or ideas would be greatly appreciated. > > Thanks, > > Matt > > MAP > > IMAGETYPE PNG24 > SIZE 500 500 > EXTENT -110.06722222 31.18804936 -109.02110274 31.9625 > IMAGECOLOR 255 255 255 > PROJECTION > "init=epsg:4326" > END > > > web > template test_douglas.html > imagepath "C:/Program Files/Apache Group/Apache2/htdocs/tmp/" > imageurl "/tmp/" > end > > UNITS DD > > > SCALEBAR > STATUS ON > UNITS MILES > INTERVALS 3 > TRANSPARENT TRUE > OUTLINECOLOR 0 0 0 > END > > # > # Start of legend > # > LEGEND > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > STATUS ON > END > # > # Start of reference map > # > REFERENCE > IMAGE graphics/douglas10.jpg > EXTENT -110.06722222 31.18804936 -109.02110274 31.9625 > SIZE 120 120 > STATUS ON > COLOR -1 -1 -1 > OUTLINECOLOR 255 0 0 > END > > LAYER > name douglas_raster1 > type raster > status off > data "C:/Program Files/Apache > Group/Apache2/htdocs/itasca/graphics/douglas.jpg" > > end > > LAYER > name douglas_arial_1 > type raster > status default > data "C:/Program Files/Apache > Group/Apache2/htdocs/itasca/graphics/grid100a.tif" > > > end > > LAYER name mexico_region > type polygon > status default > data "C:/Program Files/Apache > Group/Apache2/htdocs/itasca/data/mexico_region.shp" > labelitem 'state_name' > class > name 'Mexico' > color 120 120 120 > outlinecolor 0 0 0 > label > color 0 0 0 > outlinecolor 255 255 255 > END > END > END > From erics at AMERI-TITLE.COM Tue Jul 26 17:05:07 2005 From: erics at AMERI-TITLE.COM (Eric Shuman) Date: Tue, 26 Jul 2005 19:05:07 -0500 Subject: Labels using shape index Message-ID: So for anyone interested in my final solution... I ended up just using a blank annotation layer from my map file and adding the shapes from the query results then assigning the counter (+1) to it. The relevant PHP code and layer deffinition are below. ... $Results = $Layer->getNumResults(); $Anno_layer = $map->getLayerByName('QUERY_ANNO'); for ($x=0; $x<$Results; $x++) { $Result = $layer->getResult($x); $Layer->open(); $Shape = $Layer->GetShape($Result->tileindex,$Result->shapeindex); $Shape->set('text', $x+1); $Anno_layer->addFeature($Shape); } ... LAYER # Query Annotation NAME "QUERY_ANNO" TYPE ANNOTATION STATUS default CLASS LABEL COLOR 132 31 31 BACKGROUNDCOLOR 235 235 235 BACKGROUNDSHADOWCOLOR 0 0 0 SIZE 6 TYPE TRUETYPE FONT SANS POSITION CC BUFFER 2 FORCE TRUE END # end of label END END From richard.roger at AGRIC.NSW.GOV.AU Tue Jul 26 19:13:50 2005 From: richard.roger at AGRIC.NSW.GOV.AU (Richard Roger) Date: Wed, 27 Jul 2005 12:13:50 +1000 Subject: How to draw simple closed polygons at the client side ? Message-ID: Dear List I am after some advice, please. I want to know a good way to draw simple polygons (simply-connected polygons with no sides crossing each other) on the client side in a web browser. I see that Rosa does ellipses and polylines - does "polyline" in Rosa mean a closed polygon as it does in Mapserver? What about jbox? Geotools looks as if it might be a bit heavy. And I suppose that one could build upon Javascript "vectorgraphics" (e.g., the www.walterzorn.com/jsgraphics library or www.karlson.ru/jsgraphics ). Any advice gratefully received. Cheers Richard E. Roger Dr. R. E. Roger NSW Department of Primary Industries Spatial Information Officer Systems 161 Kite St Resource Information Unit Locked Bag 21 ORANGE NSW 2800 ph: (02) 6391 3697 fax: (02) 6391 3740 This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. -------------- next part -------------- An HTML attachment was scrubbed... URL: From kichi at REDIFFMAIL.COM Tue Jul 26 20:14:47 2005 From: kichi at REDIFFMAIL.COM (krishnaa sridharan) Date: Wed, 27 Jul 2005 03:14:47 -0000 Subject: Vewing Image in "Browse" mode Message-ID: Hi all, I am a new user of mapserver and was going throught the tutorial in the documentation section. When i was trying create a html file which display the map in the browse mode, I am not able to view the image though mapserver creates temporary PNG files in the directory were i wanted it too. I tried opening the map in 'map' mode and i could get the image . here is my html code
I am sure the mapserver initiates well as it creates temp images. I also made sure that the folder had full read/write acess. this is the map file i tried to acess. MAP IMAGETYPE PNG24 EXTENT -2217.186321 -3797.903064 1468.370211 -24.437500 SIZE 800 900 SHAPEPATH "\data" IMAGECOLOR 251 251 251 SYMBOLSET "\symbols\SYMBOLS35.SYM" WEB TEMPLATE '\mapexamples\map1.html' IMAGEPATH '\mapexamples\temp\' IMAGEURL '\mapexamples\temp\' END LAYER NAME SID DATA Da06 STATUS on ..... ... .. . . . . END Please help! Thanks for your help in advance Kichi -------------- next part -------------- An HTML attachment was scrubbed... URL: From jacob.delfos at MAUNSELL.COM Tue Jul 26 20:29:59 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Wed, 27 Jul 2005 11:29:59 +0800 Subject: Vewing Image in "Browse" mode Message-ID: Kichi, Please check out the following line: The src of the image should point to the map image. So set the src as follows: SRC="[img]" The [img] will be substituted with the URL. Also make sure there is a space between "img" and src, because it doesn't like like you have it. regards, Jacob -------------------------------------------------------------------------------- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of krishnaa sridharan Sent: 27 July 2005 11:15 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Vewing Image in "Browse" mode Hi all, I am a new user of mapserver and was going throught the tutorial in the documentation section. When i was trying create a html file which display the map in the browse mode, I am not able to view the image though mapserver creates temporary PNG files in the directory were i wanted it too. I tried opening the map in 'map' mode and i could get the image . here is my html code
I am sure the mapserver initiates well as it creates temp images. I also made sure that the folder had full read/write acess. this is the map file i tried to acess. MAP IMAGETYPE PNG24 EXTENT -2217.186321 -3797.903064 1468.370211 -24.437500 SIZE 800 900 SHAPEPATH "\data" IMAGECOLOR 251 251 251 SYMBOLSET "\symbols\SYMBOLS35.SYM" WEB TEMPLATE '\mapexamples\map1.html' IMAGEPATH '\mapexamples\temp\' IMAGEURL '\mapexamples\temp\' END LAYER NAME SID DATA Da06 STATUS on ..... ... .. . . . . END Please help! Thanks for your help in advance Kichi JACOB DELFOS SPATIAL INFORMATION ANALYST Maunsell Australia Pty Ltd 629 Newcastle Street, WA 6007 PO Box 81, WA 6902 Leederville Western Australia ABN 20 093 846 925 Tel + 61 8 9281 6185 Fax + 61 8 9281 6297 jacob.delfos at maunsell.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From donal_regan10 at YAHOO.CO.UK Tue Jul 26 22:56:51 2005 From: donal_regan10 at YAHOO.CO.UK (Donal Regan) Date: Wed, 27 Jul 2005 00:56:51 -0500 Subject: WFS and EPSG conversion Message-ID: Hello, After sending a getCapablities request I see that a WFS will return coordinates using EPSG:26986, but I want the coordinates to use EPSG:4326. Is there a way to write my getFeature request such that the data will come back using the EPSG I require or do I have to do the conversion myself after getting the data? Thanks, Donal From BEN at SYNCERA-ITSOLUTIONS.NL Tue Jul 26 23:07:56 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Wed, 27 Jul 2005 08:07:56 +0200 Subject: WFS and EPSG conversion Message-ID: Include &SRS=EPSG:4326 in your GetFeature request. Make sure you include it in your MAP file using wfs_srs METADATA See: http://mapserver.gis.umn.edu/doc46/wfs-server-howto.html Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Donal Regan 07/27/05 07:57 AM >>> Hello, After sending a getCapablities request I see that a WFS will return coordinates using EPSG:26986, but I want the coordinates to use EPSG:4326. Is there a way to write my getFeature request such that the data will come back using the EPSG I require or do I have to do the conversion myself after getting the data? Thanks, Donal From jachym.cepicky at CENTRUM.CZ Tue Jul 26 23:17:04 2005 From: jachym.cepicky at CENTRUM.CZ (Jachym Cepicky) Date: Wed, 27 Jul 2005 08:17:04 +0200 Subject: perl mapscript: Can't locate swig_numres.al Message-ID: Hallo, I use mapserver and perl-mapscript from debian package, version 4.4.1-2. I can not query layers by point, I try to approach by Mapscript Query HOWTO (http://zcologia.com/mapserver/querying-howto): $layerObj->queryByPoint($mapObj,$pntObj,$mapscript::MS_SINGLE,0); my $results = $layerObj->getResult(0); if ($results) { for ($i = 0; $i < $results->{numresults}; $i++) { my $result = $results->getResult($i); my $feature=$layerObj->getFeature($result->{shapeindex},$result->{tileindex}); } } But I get following message from my webserver: Can't locate auto/mapscript/resultCacheMemberObj/swig_numres.al in @INC (@INC contains: /var/www/perl /etc/perl /usr/local/lib/perl/5.8.7 /usr/local/share/perl/5.8.7 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl . /etc/apache/ /etc/apache/lib/perl) at /usr/lib/perl5/mapscript.pm line 29 What am I doing wrong? Is there some other howto, which would show me, what to do? Thank you for any help Jachym -- Jachym Cepicky e-mail: jachym.cepicky at centrum.cz URL: http://les-ejk.cz GPG: http://les-ejk.cz/gnupg_public_key/ From donal_regan10 at YAHOO.CO.UK Tue Jul 26 23:24:48 2005 From: donal_regan10 at YAHOO.CO.UK (Donal Regan) Date: Wed, 27 Jul 2005 07:24:48 +0100 Subject: WFS and EPSG conversion In-Reply-To: Message-ID: Thank you for your quick answer. I should have clarified that I am querying some remote WFS server whose mapfile I don't have access to. It seems though that if the owner of the mapfile hasn't specified the required wfs_srs metadata then I have to do the conversion myself. Cheers, Donal --- Bart van den Eijnden wrote: > Include &SRS=EPSG:4326 in your GetFeature request. > > Make sure you include it in your MAP file using > wfs_srs METADATA > > See: > > http://mapserver.gis.umn.edu/doc46/wfs-server-howto.html > > Best regards, > Bart > > Bart van den Eijnden > Syncera IT Solutions > Postbus 270 > 2600 AG DELFT > > tel.nr.: 015-7512436 > email: BEN at Syncera-ITSolutions.nl > >>> Donal Regan 07/27/05 > 07:57 AM >>> > Hello, > > After sending a getCapablities request I see that a > WFS will return > coordinates using EPSG:26986, but I want the > coordinates to use EPSG:4326. > > Is there a way to write my getFeature request such > that the data will come > back using the EPSG I require or do I have to do the > conversion myself after > getting the data? > > Thanks, > > Donal > > ___________________________________________________________ How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com From joe at OTSYS.COM Wed Jul 27 00:26:01 2005 From: joe at OTSYS.COM (Joe Bussell) Date: Tue, 26 Jul 2005 23:26:01 -0800 Subject: perl mapscript: Can't locate swig_numres.al In-Reply-To: <20050727061704.GA1077@trava> Message-ID: my $numResults = $layerObj->getNumResults(); :) Joe Bussell On Time Systems Jachym Cepicky wrote: >Hallo, > >I use mapserver and perl-mapscript from debian package, version 4.4.1-2. > >I can not query layers by point, I try to approach by Mapscript Query >HOWTO (http://zcologia.com/mapserver/querying-howto): > > >$layerObj->queryByPoint($mapObj,$pntObj,$mapscript::MS_SINGLE,0); > >my $results = $layerObj->getResult(0); > >if ($results) { > for ($i = 0; $i < $results->{numresults}; $i++) { > > my $result = $results->getResult($i); > my $feature=$layerObj->getFeature($result->{shapeindex},$result->{tileindex}); > > } >} > >But I get following message from my webserver: > >Can't locate auto/mapscript/resultCacheMemberObj/swig_numres.al in @INC (@INC contains: /var/www/perl /etc/perl /usr/local/lib/perl/5.8.7 /usr/local/share/perl/5.8.7 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl . /etc/apache/ /etc/apache/lib/perl) at /usr/lib/perl5/mapscript.pm line 29 > >What am I doing wrong? > >Is there some other howto, which would show me, what to do? > >Thank you for any help > >Jachym > > From BEN at SYNCERA-ITSOLUTIONS.NL Tue Jul 26 23:40:47 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Wed, 27 Jul 2005 08:40:47 +0200 Subject: WFS and EPSG conversion Message-ID: Is EPSG:4326 in the SRS list of the remote server's WFS capabilities? If so, the remote server should be able to do the conversion, you just need to specify the SRS in your request. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Donal Regan 07/27/05 08:25 AM >>> Thank you for your quick answer. I should have clarified that I am querying some remote WFS server whose mapfile I don't have access to. It seems though that if the owner of the mapfile hasn't specified the required wfs_srs metadata then I have to do the conversion myself. Cheers, Donal --- Bart van den Eijnden wrote: > Include &SRS=EPSG:4326 in your GetFeature request. > > Make sure you include it in your MAP file using > wfs_srs METADATA > > See: > > http://mapserver.gis.umn.edu/doc46/wfs-server-howto.html > > Best regards, > Bart > > Bart van den Eijnden > Syncera IT Solutions > Postbus 270 > 2600 AG DELFT > > tel.nr.: 015-7512436 > email: BEN at Syncera-ITSolutions.nl > >>> Donal Regan 07/27/05 > 07:57 AM >>> > Hello, > > After sending a getCapablities request I see that a > WFS will return > coordinates using EPSG:26986, but I want the > coordinates to use EPSG:4326. > > Is there a way to write my getFeature request such > that the data will come > back using the EPSG I require or do I have to do the > conversion myself after > getting the data? > > Thanks, > > Donal > > ___________________________________________________________ How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com From donal_regan10 at YAHOO.CO.UK Tue Jul 26 23:58:43 2005 From: donal_regan10 at YAHOO.CO.UK (Donal Regan) Date: Wed, 27 Jul 2005 07:58:43 +0100 Subject: WFS and EPSG conversion In-Reply-To: Message-ID: So if ESPG:4326 isn't listed in the server's capabilities, I have to do the conversion. Thanks for clarifying matters. Donal --- Bart van den Eijnden wrote: > Is EPSG:4326 in the SRS list of the remote server's > WFS capabilities? > > If so, the remote server should be able to do the > conversion, you just need to specify the SRS in your > request. > > Best regards, > Bart > > Bart van den Eijnden > Syncera IT Solutions > Postbus 270 > 2600 AG DELFT > > tel.nr.: 015-7512436 > email: BEN at Syncera-ITSolutions.nl > >>> Donal Regan 07/27/05 > 08:25 AM >>> > Thank you for your quick answer. > > I should have clarified that I am querying some > remote > WFS server whose mapfile I don't have access to. > > It seems though that if the owner of the mapfile > hasn't specified the required wfs_srs metadata then > I > have to do the conversion myself. > > Cheers, > > Donal > --- Bart van den Eijnden > > wrote: > > > Include &SRS=EPSG:4326 in your GetFeature request. > > > > Make sure you include it in your MAP file using > > wfs_srs METADATA > > > > See: > > > > > http://mapserver.gis.umn.edu/doc46/wfs-server-howto.html > > > > Best regards, > > Bart > > > > Bart van den Eijnden > > Syncera IT Solutions > > Postbus 270 > > 2600 AG DELFT > > > > tel.nr.: 015-7512436 > > email: BEN at Syncera-ITSolutions.nl > > >>> Donal Regan > 07/27/05 > > 07:57 AM >>> > > Hello, > > > > After sending a getCapablities request I see that > a > > WFS will return > > coordinates using EPSG:26986, but I want the > > coordinates to use EPSG:4326. > > > > Is there a way to write my getFeature request such > > that the data will come > > back using the EPSG I require or do I have to do > the > > conversion myself after > > getting the data? > > > > Thanks, > > > > Donal > > > > > > > > > ___________________________________________________________ > > How much free photo storage do you get? Store your > holiday > snaps for FREE with Yahoo! Photos > http://uk.photos.yahoo.com > > ___________________________________________________________ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com From margottid at COMUNE.LUGO.RA.IT Wed Jul 27 00:17:32 2005 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Wed, 27 Jul 2005 09:17:32 +0200 Subject: Microsoft's Virtual Earth - Googlemaps Clone? In-Reply-To: <75b4b93e050726075228d3ae40@mail.gmail.com> Message-ID: And what can you say about the World Trade Center? How it is now: http://maps.google.com/maps?ll=40.712516,-74.014839&spn=0.005756,0.00991 7&t=h&hl=en How it was (or how Microsoft wants we believe it is): http://virtualearth.msn.com/default.aspx?cp=40.712657|-74.014363&style=h &lvl=17&v=1 Daniele -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Umberto Nicoletti Sent: Tuesday, July 26, 2005 4:53 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Microsoft's Virtual Earth - Googlemaps Clone? On 7/26/05, Flavio Hendry wrote: > > I saw this, but was thoroughly disappointed in it. No detailed > > images of Canada appeared. What good is a virtual earth if all that > > is displayed is the USA? > > eh? is there something outside the USA??? ;-) > and even that is not really accurate... :-) http://www.theregister.co.uk/2005/07/25/msn_earth_deletes_aple/ > ciao > flav > From nbarker at RSINC.COM Wed Jul 27 00:52:19 2005 From: nbarker at RSINC.COM (Norman Barker) Date: Wed, 27 Jul 2005 08:52:19 +0100 Subject: USGS DEM and OGC WMS -- Bug Message-ID: -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Julien, Heryk Sent: Tuesday, July 26, 2005 8:17 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] USGS DEM and OGC WMS -- Bug Hi all, Has anyone succefully added a USGS DEM's to a Mapserver mapfile? I would like to build a wms service with some USGS DEM's but I keep on getting blank page when I do a wms getmap request. The getcapabilities request seems okay but the LatLonBoundingBox element doesn't show up for this layer. Anyone has an idea of what is going wrong? I checked my Mapserver executable using the "-v" flag and I have GDAL. I also checked out what formats are available using the "gdalinfo -formats" command and I found USGSDEM ( http://www.gdal.org/frmt_usgsdem.html ) in the list. Thanks ================================================================ H?ryk Julien Hi, why are you using a WMS to serve USGS DEMs, apart from a pretty black and white picture you aren't getting any data!! MapServer supports the Web Coverage Service (WCS) http://mapserver.gis.umn.edu/doc/wcs-server-howto.html and I am in the process of writing a document on how to use it for DEMs (USGS 16 bit geotiffs), and other formats, let me know if you get stuck. Norman Barker -------------- next part -------------- An HTML attachment was scrubbed... URL: From mn at BLOMINFO.DK Wed Jul 27 01:05:19 2005 From: mn at BLOMINFO.DK (Morten Nielsen) Date: Wed, 27 Jul 2005 10:05:19 +0200 Subject: Microsoft's Virtual Earth - Googlemaps Clone? Message-ID: >I saw this, but was thoroughly disappointed in it. No detailed images of Canada appeared. What good is a virtual earth if all that is displayed is the USA? Well Google have been running their app for quite some time now. VE has just been launched two days ago. They are still in the process of getting more and more data online, and more up-to-date imagery, as well-as eagle-eye imagery. Microsoft has decided to launch with only USA data, and then more data later. I can't see the big problem in that, and seems quite reasonable when you think about it. They are under pressure from Google, and shouldn't wait too long. I guess you always will be able to find spots where one is better than the other. Examples below: Dodgers stadium: http://maps.google.com/maps?ll=34.073759,-118.239949&spn=0.005859,0.0099 17&t=k&hl=en http://virtualearth.msn.com/default.aspx?cp=34.073559|-118.240567&style= h&lvl=19&v=1 Hollywood: http://maps.google.com/maps?ll=34.134057,-118.321670&spn=0.005855,0.0099 17&t=k&hl=en http://virtualearth.msn.com/default.aspx?cp=34.134057|-118.321673&style= h&lvl=19&v=1 Pentagon: http://maps.google.com/maps?ll=38.870871,-77.056400&spn=0.005507,0.00991 7&t=k&hl=en http://virtualearth.msn.com/default.aspx?cp=38.871234|-77.057875&style=h &lvl=19&v=1 And Google's own headquarters isn't visible in Google's map :-) http://maps.google.com/maps?q=google+mountain+view&ll=37.423406,-122.082 659&spn=0.011090,0.016919&t=k&num=10&start=0&hl=en And by the way, what good is imagery when you need driving directions or need to find something particular? Who cares about seeing your house? (I hope you already know what it looks like and where it is) >I still love google. Yeah its _still_ the coolest, but VE also has some nice features, and when it all gets brushed of, I think it can be just as cool. Check it out in a few months. Btw. The scratchpad and automatic updated search-result is pretty cool. I like the idea that queries corresponds to the area you are viewing. Oh yeah and the scroll-wheel can be used for zooming! There are plenty of kick-ass javascripts to steal from both apps :-) /Morten -------------- next part -------------- An HTML attachment was scrubbed... URL: From sweykam at TELELINE.ES Wed Jul 27 01:30:33 2005 From: sweykam at TELELINE.ES (Stefanie Weykam) Date: Wed, 27 Jul 2005 10:30:33 +0200 Subject: Aerial photos In-Reply-To: Message-ID: Nhamoinesu, this is the 'world file format' (jgw is just the same as tfw): ESRI World File Format Used as attribute file associated with corresponding image file. World files consist of 6 lines, denoting the following: sampleFile.tfw 5.000000000000 (size of pixel in x direction) 0.000000000000 (rotation term for row) 0.000000000000 (rotation term for column) -5.000000000000 (size of pixel in y direction) 492169.690845528910 (x coordinate of centre of upper left pixel in map units) 5426523.318065105000 (y coordinate of centre of upper left pixel in map units) If you open the image in Photoshop, PhotoEditor or similar, you may look up the image size in pixels (width and height) so that you can calculate the extension in UL, LL, LR, UR. Remember, you have the midpoint of the pixel and need to correct the values for half a pixel. Anyway, I thing that MapServers reads the world file automatically. As for the second question - simply echo the variable $imgURL $img=$map->draw(); $imgURL=$img->saveWebImage(); echo $imgURL; The result looks like this: /tmp/ms_tmp/11224525985001.PNG You can do the same with your legends and reference images... Stefanie ------------------------------ Date: Tue, 26 Jul 2005 17:51:18 +0100 From: Nhamoinesu Mtetwa Subject: Aerial photos Hello there, How do I form a mapfile base layer using Aerial photos? The files are in pairs with extensions .jpg and .jgw One of the .jgw has the following numbers: 0.250000 0.000000 0.000000 -0.250000 166000.000000 45000.000000 which I think are the extent values but I am not sure. The other question is that: is there anyway of getting the name of the image that CGI program mapserv creates when one is in browse mode? Cheers, Nhamo. -- The University of Stirling is a university established in Scotland by charter at Stirling, FK9 4LA. Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not disclose, copy or deliver this message to anyone and any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer do not consent to Internet email for messages of this kind. ------------------------------ From jachym.cepicky at CENTRUM.CZ Wed Jul 27 01:50:35 2005 From: jachym.cepicky at CENTRUM.CZ (Jachym Cepicky) Date: Wed, 27 Jul 2005 10:50:35 +0200 Subject: perl mapscript: Can't locate swig_numres.al In-Reply-To: <42E73709.5020202@otsys.com> Message-ID: huh, the documentation could be better some things are on http://mapserver.gis.umn.edu/doc44/perlmapscript-reference.html and some ohter on http://zcologia.com/mapserver/mapscript. Thank you for this suggestion. I would only ask, if there is better way, how to get attributes from table by point, than this: $layerObj->queryByPoint($mapObj,$pnt,$mapscript::MS_SINGLE,0); my $resultCacheObj = $layerObj->getResults(); if ($resultCacheObj) { $layerObj->open(); for ($i = 0; $i < $resultCacheObj->{numresults}; $i++) { my $resultCacheMemberObj = $resultCacheObj->getResult($i); my $shapeObj = $layerObj->getFeature($resultCacheMemberObj->{shapeindex}); for (my $k; $k <$shapeObj->{numvalues}; $k++) { printf ("$k: %s %s\n", $layerObj->getItem($k), $shapeObj->getValue($k)); } } $layerObj->close(); } # end if $resultCacheMemberObj have a nice day J?chym On Tue, Jul 26, 2005 at 11:26:01PM -0800, Joe Bussell wrote: > my $numResults = $layerObj->getNumResults(); > > :) > > Joe Bussell > On Time Systems > > > Jachym Cepicky wrote: > > >Hallo, > > > >I use mapserver and perl-mapscript from debian package, version 4.4.1-2. > > > >I can not query layers by point, I try to approach by Mapscript Query > >HOWTO (http://zcologia.com/mapserver/querying-howto): > > > > > >$layerObj->queryByPoint($mapObj,$pntObj,$mapscript::MS_SINGLE,0); > > > >my $results = $layerObj->getResult(0); > > > >if ($results) { > >for ($i = 0; $i < $results->{numresults}; $i++) { > > > > my $result = $results->getResult($i); > > my > > $feature=$layerObj->getFeature($result->{shapeindex},$result->{tileindex}); > > > >} > >} > > > >But I get following message from my webserver: > > > >Can't locate auto/mapscript/resultCacheMemberObj/swig_numres.al in @INC > >(@INC contains: /var/www/perl /etc/perl /usr/local/lib/perl/5.8.7 > >/usr/local/share/perl/5.8.7 /usr/lib/perl5 /usr/share/perl5 > >/usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl . > >/etc/apache/ /etc/apache/lib/perl) at /usr/lib/perl5/mapscript.pm line 29 > > > >What am I doing wrong? > > > >Is there some other howto, which would show me, what to do? > > > >Thank you for any help > > > >Jachym > > > > > -- Jachym Cepicky e-mail: jachym.cepicky at centrum.cz URL: http://les-ejk.cz GPG: http://les-ejk.cz/gnupg_public_key/ From sbeorchia at GI-LEMANS.COM Wed Jul 27 02:30:27 2005 From: sbeorchia at GI-LEMANS.COM (Sylvain Beorchia) Date: Wed, 27 Jul 2005 11:30:27 +0200 Subject: SPAM!!!: SPAM!!!: SPAM!!!: Re: SPAM!!!: Re: [UMN_MAPSERVER-USERS] Microsoft's Virtual Earth - Googlemaps Clone? Message-ID: Hi, "And by the way, what good is imagery when you need driving directions or need to find something particular? Who cares about seeing your house? (I hope you already know what it looks like and where it is)" In the Google earth application, what is really interesting for most of the people IS to see their house from the sky. I'm a mapserver developper, but i sometimes use google earth not to work, but just to have fun and watch the Great wall from the sky, the pyramids from the sky, new york from the sky... and with the good precision we can have in google earth that's really cool. I see google earth as a viewer just for fun more than a way to work. If you want some driving directions, no need of rasters, application like Mappy are good enought, i think. Thanks. Sylvain B. ----- Original Message ----- From: Morten Nielsen To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Wednesday, July 27, 2005 10:05 AM Subject: SPAM!!!: Re: [UMN_MAPSERVER-USERS] Microsoft's Virtual Earth - Googlemaps Clone? >I saw this, but was thoroughly disappointed in it. No detailed images of Canada appeared. What good is a virtual earth if all that is displayed is the USA? Well Google have been running their app for quite some time now. VE has just been launched two days ago. They are still in the process of getting more and more data online, and more up-to-date imagery, as well-as eagle-eye imagery. Microsoft has decided to launch with only USA data, and then more data later. I can't see the big problem in that, and seems quite reasonable when you think about it. They are under pressure from Google, and shouldn't wait too long. I guess you always will be able to find spots where one is better than the other. Examples below: Dodgers stadium: http://maps.google.com/maps?ll=34.073759,-118.239949&spn=0.005859,0.009917&t=k&hl=en http://virtualearth.msn.com/default.aspx?cp=34.073559|-118.240567&style=h&lvl=19&v=1 Hollywood: http://maps.google.com/maps?ll=34.134057,-118.321670&spn=0.005855,0.009917&t=k&hl=en http://virtualearth.msn.com/default.aspx?cp=34.134057|-118.321673&style=h&lvl=19&v=1 Pentagon: http://maps.google.com/maps?ll=38.870871,-77.056400&spn=0.005507,0.009917&t=k&hl=en http://virtualearth.msn.com/default.aspx?cp=38.871234|-77.057875&style=h&lvl=19&v=1 And Google's own headquarters isn't visible in Google's map :-) http://maps.google.com/maps?q=google+mountain+view&ll=37.423406,-122.082659&spn=0.011090,0.016919&t=k&num=10&start=0&hl=en And by the way, what good is imagery when you need driving directions or need to find something particular? Who cares about seeing your house? (I hope you already know what it looks like and where it is) >I still love google. Yeah its _still_ the coolest, but VE also has some nice features, and when it all gets brushed of, I think it can be just as cool. Check it out in a few months. Btw. The scratchpad and automatic updated search-result is pretty cool. I like the idea that queries corresponds to the area you are viewing. Oh yeah and the scroll-wheel can be used for zooming! There are plenty of kick-ass javascripts to steal from both apps :-) /Morten -------------- next part -------------- An HTML attachment was scrubbed... URL: From WalrechtG at VERTIS.NL Wed Jul 27 04:44:58 2005 From: WalrechtG at VERTIS.NL (Gerjan Walrecht) Date: Wed, 27 Jul 2005 13:44:58 +0200 Subject: Dynamic Maptitle Message-ID: List, With the help of Martin Meirink (Thank you, Martin) I've got what I needed. The solution is somewhat different then Sefanie's solution: In the mapfile add an empty feature layer: ----------------Begin part of mapfile ---------------------------- LAYER NAME titel STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION CLASS LABEL TYPE TRUETYPE FONT "arial" SIZE 11 ANTIALIAS TRUE COLOR 0 0 0 backgroundcolor 255 204 204 backgroundshadowcolor 255 153 204 backgroundshadowsize 5 3 END END END ----------------End part of mapfile ---------------------------- In the url you can add: &map_titel_feature=new To create a new feature Also add: &map_titel_feature_points=360+8 To place a (label) point in the new feature Last but not least add: &map_titel_feature_text=+your+title+here+++ To add the title In the last part, one can also use parameters which was what we needed In the mapfile you can define the label settings like color, etc. Gerjan -----Original Message----- From: Stefanie Weykam [mailto:sweykam at teleline.es] Sent: 26 juli 2005 16:34 To: UMN MapServer Users List Cc: Gerjan Walrecht Subject: [SPAM: 8.0/6.0] RE: Dynamic Maptitle Gerjan, Here comes an extract of my function. I took the database query part and some other conditions out, so things get hopefully clearer. I don't remember why I had to create a line object, but it works. Don't forget to draw the map after you modified the layer. You can see how it works here: http://www.vertebradosibericos.org/aves/atlas/presentacion.html (click on 'mapas de distribuci?n...') good luck! Stefanie ###### change the map title ####### # not shown here: # establish conection to the database to get the new parameter for the title # query result returns an array; $arrayVal[0] is the scientific name of the # species I am looking for (is 'year' for you) # $specname=$arrayVal[0] # get layer parameters from map file $subtitESP=$map->getLayerByName('subtitESP'); # create class object using the existing class parameters $oClass=$subtitESP->getClass(0); # ..and set label font and size (only if you wish to change them) $oClass->label->set('font', 'verdana-italic'); # create a point and a line object (line object will have only one point here) $oP=ms_newPointObj(); $oL=ms_newLineObj(); # create shape object $shape=ms_newShapeObj(MS_SHAPE_POINT); # set coords of the point and add it to the line, then add line to the shape-object $oP->setXY(352,5); $oL->add($oP); $shape->add($oL); # asign the new name (year in your case) $shape->set('text', $specname); # add the layer feature to the shape, switch layer on and draw it $subtitESP->addFeature($shape); $subtitESP->set('status', 1); $img=$map->draw(); $subtitESP->draw($img); -------------- next part -------------- An HTML attachment was scrubbed... URL: From lfilak at MEDINACO.ORG Wed Jul 27 05:55:37 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Wed, 27 Jul 2005 08:55:37 -0400 Subject: perl mapscript: Can't locate swig_numres.al Message-ID: The following message was sent by Jachym Cepicky on Wed, 27 Jul 2005 10:50:35 +0200. > huh, > > the documentation could be better some things are on > http://mapserver.gis.umn.edu/doc44/perlmapscript-reference.html and > some ohter on http://zcologia.com/mapserver/mapscript. > Thank you for this suggestion. > > I would only ask, if there is better way, how to get attributes from > table by point, than this: > > > > $layerObj->queryByPoint($mapObj,$pnt,$mapscript::MS_SINGLE,0); > > my $resultCacheObj = $layerObj->getResults(); > > if ($resultCacheObj) { > $layerObj->open(); > > for ($i = 0; $i < $resultCacheObj->{numresults}; $i++) { > > my $resultCacheMemberObj = $resultCacheObj->getResult($i); > > my $shapeObj = $layerObj->getFeature($resultCacheMemberObj->{shapeindex}); > > for (my $k; $k <$shapeObj->{numvalues}; $k++) { > printf ("$k: %s %s\n", $layerObj->getItem($k), $shapeObj->getValue($k)); > } > } > $layerObj->close(); > } # end if $resultCacheMemberObj J?chym, As of 4.6 there is/will only be a single source for SWIG MapScript documentation with appendices for particulars with different 'flavors'. Please use the 'MapScript Reference' link from the main documentation page and not the 'SWIGMapScript' link as it will not be updated. The 'MapScript Reference' has been stated as "official" for some time now. The attributes for a shapefile are housed in xbase (dbf) files and you can use any method you prefer to access those attributes. Such as XBase.pm, XBase.pm+DBI, or load the attributes into a RDBMS and use DBI to retrieve them. You are not forced to stick with '$layerObj->getItem($k), $shapeObj->getValue($k)'. HTH Lowell From sgillies at FRII.COM Wed Jul 27 06:33:30 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 27 Jul 2005 07:33:30 -0600 Subject: perl mapscript: Can't locate swig_numres.al In-Reply-To: Message-ID: On Jul 27, 2005, at 12:17 AM, Jachym Cepicky wrote: > Hallo, > > I use mapserver and perl-mapscript from debian package, version > 4.4.1-2. > > I can not query layers by point, I try to approach by Mapscript Query > HOWTO (http://zcologia.com/mapserver/querying-howto): > > > $layerObj->queryByPoint($mapObj,$pntObj,$mapscript::MS_SINGLE,0); > > my $results = $layerObj->getResult(0); This last line should be my $results = $layerObj->getResults(); though I think it's not a good idea to use $layerObj as a variable name. cheers, Sean -- Sean Gillies sgillies at frii dot com http://zcologia.com From assefa at DMSOLUTIONS.CA Wed Jul 27 06:35:09 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 27 Jul 2005 09:35:09 -0400 Subject: SLD pointsymbolizer externalgraphic trouble In-Reply-To: <3F34A5A15450C74C813BA20E31DBB451ECCE7F@ncrx3.ncr.int.ec.gc.ca> Message-ID: Pagurek,Debbie [NCR] wrote: > My maps returns fine with a simple getmap request. > > The tmp directory is set to c:/ms4w/tmp/ms_tmp > > Is there a way to check that mapserver is writing to that directory? Ie if I use mode=map, should it leave a temporary file there? Mode=map is giving me a map, but isn't leaving a file in that temp directory. > You can use mode=browse and that should create files in the tmp dir. You need to set the template in the web object : WEB TEMPLATE "template.html" template.html should exist but can be empy or have something like this Later, > Debbie > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Yewondwossen Assefa > Sent: Tuesday, July 26, 2005 4:46 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] SLD pointsymbolizer externalgraphic trouble > > > Debbie, > > > Pagurek,Debbie [NCR] wrote: > >>Assefa, >> >>Are nightly builds available for Windows binaries? >>I changed my sld to show GIF instead of image/gif but it's still not >>working. >> > > I am not sure why It is not working for you. I basically took your > mapfile and change few paths to adapt to my settings. The map file > points to the gmap-ms40 data. The sld I used is basically yours (I don't > think I modified anything). I have attached both files. > > There are no nightly builds although I can put a mapserver 4.7 cvs > version on maptools if you need. > > >>I realized in the examples I sent earlier that my sld didn't contain a >>Geometry tag. What should this field "property name" contain? A name >>of a field in the shapefile? the word "msGeometry"? >> > > > Should not matter. It is not used. > > >>Can you think of anything else I can check on my system to test this? >> >>Am I missing something important in my mapfile? I've tried using my >>own mapfile and also the gmap75_wms.map file that comes with ms4w. >> >>At this point I'm just not getting any sld with an external graphic to >>work. Will keep trying. >> >>Debbie >> > > > Is your map returned with a somple getmap rquest without an sld ? > > I am also assuming that the temporaary directory and path are set > properly in the map file (since the graphic is downloaded and copied in > that directory) > > > > >>------------------- >>Debbie, >> >> I have tested your sld with local data and the only "problem" I >>found >>was that the format used is image/gif instead of >>gif. I have rechcked the sld specs and it specifies >>that the format should be of MIME type so your sld should be valid. I >>have corrected the test to test for GIF or image/gif (as well as PNG and >>image/png). (related bug is >>http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1430). >> If possible use the latest version from cvs or until you get a new >>build you can use GIF as the value of the format. >> >> Later, >> >>Pagurek,Debbie [NCR] wrote: >> >> >>>I am having trouble with an SLD that should put an externalgraphic at >>>a point. I am getting a blank map and when I do a view source I am >>>seeing Gobbldygook: GIF87aX?? ...etc (this happens if I set >>>imagetype GIF or PNG), and also if I don't set IMAGETYPE at all. An >>>SLD that uses an external graphic for a polygon layer works fine. >>> >>>I am including the sld file and my mapfile as attachments, and the >>>following is the URL I'm using. >>> >>>http://localhost/cgi-bin/mapserv.exe?map=c:\ms4w\apps\chameleon-2.2\ce >>>si\map\pix.map&version=1.1.1&service=wms&request=getmap&layers=popplac >>>e&sld=http://localhost/chameleon/cesi/sldtest.xml >>> >>>I'm on Windows. >>>MapServer version 4.6.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >>>OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE >>>SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER >>>SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=JPEG INPUT=POSTGIS >>>INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG >>> >>>Anybody have any ideas? Is this a bug? >>> >>>D. Pagurek >>> >>> >>>---------------------------------------------------------------------- >>>-- >>> >>> >>>>>xmlns="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" >>>xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>>xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"> >>>dp_generated_sld >>>test sld for external graphic >>>test >>> >>> popplace >>> >>> Cities >>> Cities >>> 1 >>> >>> >>> >>> >>> >>> >>> image/gif >>> >>> 44 >>> >>> >>> >>> >>> >>> >>> >> >> > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From hjulien at NRCAN.GC.CA Wed Jul 27 06:39:52 2005 From: hjulien at NRCAN.GC.CA (Julien, Heryk) Date: Wed, 27 Jul 2005 09:39:52 -0400 Subject: USGS DEM and OGC WMS -- Bug Message-ID: Hi, This is the first time I get a request to add a USGS DEM to Mapserver. I would like to use the original USGS format to be able to query the DEM using the WMS getFeatureInfo. If I convert the USGSDEM to a simple raster (ex:*.tiff) don't I loose the elevation data? WCS is interesting but I can't use WCS for now since our web clients are not compatible with this format. Cheers H?ryk _____ De : Norman Barker Envoy? : 27 juillet 2005 03:52 ? : Julien, Heryk; MAPSERVER-USERS at LISTS.UMN.EDU Objet : RE: [UMN_MAPSERVER-USERS] USGS DEM and OGC WMS -- Bug -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Julien, Heryk Sent: Tuesday, July 26, 2005 8:17 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] USGS DEM and OGC WMS -- Bug Hi all, Has anyone succefully added a USGS DEM's to a Mapserver mapfile? I would like to build a wms service with some USGS DEM's but I keep on getting blank page when I do a wms getmap request. The getcapabilities request seems okay but the LatLonBoundingBox element doesn't show up for this layer. Anyone has an idea of what is going wrong? I checked my Mapserver executable using the "-v" flag and I have GDAL. I also checked out what formats are available using the "gdalinfo -formats" command and I found USGSDEM ( http://www.gdal.org/frmt_usgsdem.html ) in the list. Thanks ================================================================ H?ryk Julien Hi, why are you using a WMS to serve USGS DEMs, apart from apretty black and white picture you aren't getting any data!! MapServer supports the Web Coverage Service (WCS) http://mapserver.gis.umn.edu/doc/wcs-server-howto.html and I am in the process of writing a document on how to use it for DEMs (USGS 16 bit geotiffs), and other formats, let me know if you get stuck. NormanBarker -------------- next part -------------- An HTML attachment was scrubbed... URL: From g.lee at ORS.ORG.UK Wed Jul 27 06:21:31 2005 From: g.lee at ORS.ORG.UK (Geraint Lee) Date: Wed, 27 Jul 2005 14:21:31 +0100 Subject: Installation Message-ID: Hey all, I've been trying to install mapserver for several days now, coming accross a number of installation problems (with other programs like gd, jpeg-2b...) which i've overcome... now i'm stuck on mapserver. gd, jpeg, freetype2, libiconv and libpng are all installed on the server (FreeBSD 4.11)... anyway, here's the output from: ./configure --with-png=/usr/local --with-jpeg=/usr/local --with-freetype=/usr/local --without-xpm --with-libiconv=/usr/local --with-gd=/usr/local -- ... configure: checking where FreeType 2.x is installed... using libfreetype from -L/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib -lfreetype -lz checking for FT_Init_FreeType in -lfreetype... no using libfreetype -L/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib -lfreetype -lz from system libs. configure: checking where Zlib is installed... checking for zlibVersion in -lz... yes using libz from system libs. configure: checking where PNG is installed... using libpng from -L/usr/local/lib64 -lpng configure: checking whether we should include JPEG support... using libjpeg from system -L/usr/local/lib64 -ljpeg configure: checking where libiconv is installed... checking for iconv_open in -lc... no checking for libiconv_open in -liconv... yes using libiconv from -L/usr/local/lib64 -liconv libiconv found. Enabling internationalization (-DUSE_ICONV) configure: checking for GD 2.0.12 or higher... checking for gdImageSetAntiAliased in -lgd... no configure: checking whether GD needs libiconv... checking for gdImageSetAntiAliased in -lgd... no configure: error: Could not find gd.h or libgd.a/libgd.so in /usr/local. Make sure GD 2.0.12 or higher is compiled before calling configure. You may also get this error if you didn't specify the appropriate location for one of GD's dependencies (freetype, libpng, libjpeg or libiconv). -- all of those files exist in /usr/local/lib and /local - does anyone have any suggestions at all as to what the problem may be. Thanks Geraint From nbarker at RSINC.COM Wed Jul 27 06:59:12 2005 From: nbarker at RSINC.COM (Norman Barker) Date: Wed, 27 Jul 2005 14:59:12 +0100 Subject: USGS DEM and OGC WMS -- Bug Message-ID: -----Original Message----- From: Julien, Heryk [mailto:hjulien at nrcan.gc.ca] Sent: Wednesday, July 27, 2005 2:40 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] USGS DEM and OGC WMS -- Bug Hi, This is the first time I get a request to add a USGS DEM to Mapserver. I would like to use the original USGS format to be able to query the DEM using the WMS getFeatureInfo. If I convert the USGSDEM to a simple raster (ex:*.tiff) don't I loose the elevation data? WCS is interesting but I can't use WCS for now since our web clients are not compatible with this format. Cheers H?ryk Hi Heryk, I will reply to the whole group, since there is a bit of a UK mission to encourage WCS!! It is possible (indeed I would encourage it) to create a WCS, and then to make WMS calls to retrieve a display format of this data, so; http://host/my.map?REQUEST=GetCapabilities &Service=WMS .... or http://host/my.map?REQUEST=GetCapabilities &Service=WCS so the WMS can give you the map, and the WCS can give you the actual data, it is possible to do this with the same map file! This means that your current web clients can use the WMS, but you are also allowing access to actual coverages. Converting USGSDEM to 16 bit geotiff works well, and I have done this using gdal_translate. To quote the spec; Unlike WMS (OGC document 01-068r3), which filters and portrays spatial data to return static maps (rendered as pictures by the server), the Web Coverage Service provides available data together with their detailed descriptions; allows complex queries against these data; and returns data with its original semantics (instead of pictures) which can be interpreted, extrapolated, etc. -- and not just portrayed. I am about half way through writing a how to for this, capturing all the help I received from Steve Lime and Frank W when I approached this. Let me know if I can help further. Norman -------------- next part -------------- An HTML attachment was scrubbed... URL: From fwarmerdam at GMAIL.COM Wed Jul 27 07:04:05 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 27 Jul 2005 10:04:05 -0400 Subject: USGS DEM and OGC WMS -- Bug In-Reply-To: <06B403677C41D51194550002A55107D205DD4836@s5-stf1-r1.nrn.nrcan.gc.ca> Message-ID: On 7/27/05, Julien, Heryk wrote: > > > > Hi, > > This is the first time I get a request to add a USGS DEM to Mapserver. > > I would like to use the original USGS format to be able to query the DEM > using the WMS getFeatureInfo. > > If I convert the USGSDEM to a simple raster (ex:*.tiff) don't I loose the > elevation data? H?ryk, You can convert USGS DEMs to GeoTIFF without losing any precision of the original elevation data. The USGS DEM ASCII format is particularly inefficient to access, so conversion to GeoTIFF should give you some performance benefits. To serve the data via WMS you pretty much need to scale it to 8bit on the fly using the pixel data scaling options discussed in the Raster HOWTO (or classification). I would suggest you review these items in the raster howto. I would also encourage you to review the map file I recently provided to the fellow asking about SRTM WCS servers. That map file offers the elevation data as scaled WMS layers as well as for WCS access and can provide you some ideas. For raster query of the original data values I think you will need to have an extra "pure" layer to do the queries against. This query layer would not be scaled or classified. As opposed to the layer used for display purposes. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From adams at TERRESTRIS.DE Wed Jul 27 07:01:09 2005 From: adams at TERRESTRIS.DE (Till Adams) Date: Wed, 27 Jul 2005 16:01:09 +0200 Subject: Installation In-Reply-To: <42E78A5B.4090203@ors.org.uk> Message-ID: Geraint Lee wrote: > Hey all, > > I've been trying to install mapserver for several days now, coming > accross a number of installation problems (with other programs like gd, > jpeg-2b...) which i've overcome... now i'm stuck on mapserver. > > gd, jpeg, freetype2, libiconv and libpng are all installed on the server > (FreeBSD 4.11)... anyway, here's the output from: > ./configure --with-png=/usr/local --with-jpeg=/usr/local > --with-freetype=/usr/local --without-xpm --with-libiconv=/usr/local > --with-gd=/usr/local > -- > ... > configure: checking where FreeType 2.x is installed... > using libfreetype from -L/usr/local/lib -Wl,--rpath > -Wl,/usr/local/lib -lfreetype -lz > checking for FT_Init_FreeType in -lfreetype... no > using libfreetype -L/usr/local/lib -Wl,--rpath > -Wl,/usr/local/lib -lfreetype -lz from system libs. > configure: checking where Zlib is installed... > checking for zlibVersion in -lz... yes > using libz from system libs. > configure: checking where PNG is installed... > using libpng from -L/usr/local/lib64 -lpng > configure: checking whether we should include JPEG support... > using libjpeg from system -L/usr/local/lib64 -ljpeg > configure: checking where libiconv is installed... > checking for iconv_open in -lc... no > checking for libiconv_open in -liconv... yes > using libiconv from -L/usr/local/lib64 -liconv > libiconv found. Enabling internationalization (-DUSE_ICONV) > configure: checking for GD 2.0.12 or higher... > checking for gdImageSetAntiAliased in -lgd... no > configure: checking whether GD needs libiconv... > checking for gdImageSetAntiAliased in -lgd... no > configure: error: Could not find gd.h or libgd.a/libgd.so in > /usr/local. Make sure GD 2.0.12 or higher is compiled before calling > configure. You may also get this error if you didn't specify the > appropriate location for one of GD's dependencies (freetype, libpng, > libjpeg or libiconv). > -- > all of those files exist in /usr/local/lib and /local - does anyone have > any suggestions at all as to what the problem may be. > > Thanks > > Geraint Geraint, which OS (Debian Linux, Suse, edHat, etc.) do you use? We have several step-to-step descriptions (sorry for not making them open to everybody till now) for Win, Suse 9.x, Debian Woody and Sarge, Mandrake, RedHat and FreeBSD. I may send you the appropriate for you. Fiorst of all - the easiest may be just to try a # /sbin/ldconfig /usr/local/lib -v and # /sbin/ldconfig /local -v to make the libs known to your system. Also add these pathes to the file /etc/ld.so.config, so you don't have to do this every time you reboot. Greetings from Bonn, Till -- Mit freundlichen Gr?ssen aus Bonn, Till Adams ****************************************** * released: AmeiN! ArcMap-Export-2-UMN * * LiveLinux 'WebGIS on CD' * * http://www.terrestris.de * ****************************************** ------------------------------------------ Dipl. Geogr. Till Adams terrestris, H. Paulsen& T. Adams GbR Siemensstr. 8 * 53121 Bonn Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 info at terrestris.de * http://www.terrestris.de From adams at TERRESTRIS.DE Wed Jul 27 07:24:57 2005 From: adams at TERRESTRIS.DE (Till Adams) Date: Wed, 27 Jul 2005 16:24:57 +0200 Subject: Installation In-Reply-To: <42E79630.8060003@ors.org.uk> Message-ID: Geraint Lee wrote: > Till Adams wrote: > >> Geraint Lee wrote: >> >>> Hey all, >>> >>> I've been trying to install mapserver for several days now, coming >>> accross a number of installation problems (with other programs like gd, >>> jpeg-2b...) which i've overcome... now i'm stuck on mapserver. >>> >>> gd, jpeg, freetype2, libiconv and libpng are all installed on the server >>> (FreeBSD 4.11)... anyway, here's the output from: >>> ./configure --with-png=/usr/local --with-jpeg=/usr/local >>> --with-freetype=/usr/local --without-xpm --with-libiconv=/usr/local >>> --with-gd=/usr/local >>> -- >>> ... >>> configure: checking where FreeType 2.x is installed... >>> using libfreetype from -L/usr/local/lib -Wl,--rpath >>> -Wl,/usr/local/lib -lfreetype -lz >>> checking for FT_Init_FreeType in -lfreetype... no >>> using libfreetype -L/usr/local/lib -Wl,--rpath >>> -Wl,/usr/local/lib -lfreetype -lz from system libs. >>> configure: checking where Zlib is installed... >>> checking for zlibVersion in -lz... yes >>> using libz from system libs. >>> configure: checking where PNG is installed... >>> using libpng from -L/usr/local/lib64 -lpng >>> configure: checking whether we should include JPEG support... >>> using libjpeg from system -L/usr/local/lib64 -ljpeg >>> configure: checking where libiconv is installed... >>> checking for iconv_open in -lc... no >>> checking for libiconv_open in -liconv... yes >>> using libiconv from -L/usr/local/lib64 -liconv >>> libiconv found. Enabling internationalization (-DUSE_ICONV) >>> configure: checking for GD 2.0.12 or higher... >>> checking for gdImageSetAntiAliased in -lgd... no >>> configure: checking whether GD needs libiconv... >>> checking for gdImageSetAntiAliased in -lgd... no >>> configure: error: Could not find gd.h or libgd.a/libgd.so in >>> /usr/local. Make sure GD 2.0.12 or higher is compiled before calling >>> configure. You may also get this error if you didn't specify the >>> appropriate location for one of GD's dependencies (freetype, libpng, >>> libjpeg or libiconv). >>> -- >>> all of those files exist in /usr/local/lib and /local - does anyone have >>> any suggestions at all as to what the problem may be. >>> >>> Thanks >>> >>> Geraint >> >> >> >> >> Geraint, >> >> which OS (Debian Linux, Suse, edHat, etc.) do you use? >> >> We have several step-to-step descriptions (sorry for not making them >> open to everybody till now) for Win, Suse 9.x, Debian Woody and Sarge, >> Mandrake, RedHat and FreeBSD. I may send you the appropriate for you. >> >> Fiorst of all - the easiest may be just to try a >> >> # /sbin/ldconfig /usr/local/lib -v >> >> and >> >> # /sbin/ldconfig /local -v >> >> to make the libs known to your system. Also add these pathes to the >> file /etc/ld.so.config, so you don't have to do this every time you >> reboot. >> >> Greetings from Bonn, Till >> >> > Hi, > > i'm running FreeBSD-4.11. > > i've tried /sbin/ldconfig -v /usr/local/lib with no luck > > i would appreciate it if you could send the installation instructions > for freebsd. > > Thanks > > Geraint > Geraint, it's OpenOffice format - hope you may read this - if there are any comments, please add and send it back Send it in a minute direct, so I don't bory this list with attaschments - have fun! Till -- Mit freundlichen Gr?ssen aus Bonn, Till Adams ****************************************** * released: AmeiN! ArcMap-Export-2-UMN * * LiveLinux 'WebGIS on CD' * * http://www.terrestris.de * ****************************************** ------------------------------------------ Dipl. Geogr. Till Adams terrestris, H. Paulsen& T. Adams GbR Siemensstr. 8 * 53121 Bonn Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 info at terrestris.de * http://www.terrestris.de From v.schulze at CCGIS.DE Wed Jul 27 07:34:33 2005 From: v.schulze at CCGIS.DE (Vera Schulze) Date: Wed, 27 Jul 2005 16:34:33 +0200 Subject: Postgis-connection In-Reply-To: <002f01c587d8$ecab6b70$02b2a8c0@PC01> Message-ID: poggensee.net wrote: > I want to use a postgis database. the geometry lies in column 'the_geom' of > table 'test'. Now I got this error message: > > msDrawMap(): Image handling error. Failed to draw layer named 'TEST'. > prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual > query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT > asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from test > WHERE the_geom && setSRID('BOX3D(4494500 5258000,4680500 5444000)'::BOX3D, > find_srid('','test','the_geom') )' > > Postgresql reports the error as 'ERROR: could not load library > "C:/ms4w/apps/pgsql75win/lib/libpostgis.dll": error ' > > > what is my mistake ??? the mapfile seems to be OK. Hi, have you checked your SQL-statement directly in the database? Query error is most of the times a wrong sql-statement. Is your conf-file ok? If both are ok, post the layer code from your mapfile. Hth, Vera From jlee at BROOKES.AC.UK Wed Jul 27 07:52:57 2005 From: jlee at BROOKES.AC.UK (John Lee) Date: Wed, 27 Jul 2005 09:52:57 -0500 Subject: Raster question Message-ID: Hello all, I am brand new to Mapserver and I am having problems with displaying raster images. I am trying to add tiff files to the map but without success. Here is my setup: OS: RedHat 9.0 Mapserv -v MapServer version 4.0.2 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE ************************************************** gdal-config --version 1.2.0 gdal-config --formats gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 xpm sdts raw dted mem jdem envisat elas fit vrt usgsdem l1b nitf bmp pcidsk bsb gif jpeg png gdalinfo sp61sw gdalinfo sp61sw.tif Driver: GTiff/GeoTIFF Size is 7874, 7874 Coordinate System is `' GeoTransform = 459998.0849922193, 0.6352797811702, 3.944043093e-05 215000.6450375828, 1.074038916e-05, -0.63528696674458 Metadata: TIFFTAG_IMAGEDESCRIPTION=1:10000 TILE sp61sw TIFFTAG_DATETIME=1998:08:05 20:24:30 TIFFTAG_XRESOLUTION=400 TIFFTAG_YRESOLUTION=400 TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) Corner Coordinates: Upper Left ( 459998.085, 215000.645) Lower Left ( 459998.396, 209998.395) Upper Right ( 465000.278, 215000.730) Lower Right ( 465000.589, 209998.480) Center ( 462499.337, 212499.563) Band 1 Block=7874x8 Type=Byte, ColorInterp=Palette Color Table (RGB with 2 entries) 0: 255,255,255,255 1: 0,0,0,255 **************************************************************** MAP File MAP IMAGETYPE PNG EXTENT 459998.396 209998.395 465000.278 215000.730 SIZE 600 800 SHAPEPATH "data" # Start of Raster LAYER DEFINITIONS --------------------------------------------- LAYER # OS raster layer begins here NAME "OS_Raster" DATA "sp61sw_miniswhite.tif" # Raster file name STATUS On TYPE raster PROJECTION "init=epsg:4278" END PROCESSING "Bands=1,2,3,4" #PROCESSING "SCALE=AUTO" #PROCESSING "DITHER=YES" #PROCESSING "COLOR_MATCH_THRESHOLD=3" END # OS Raster layer ends here END # End of MAP object **************************************** I have tried lots of different approaches. I haven't re-installed Mapserver yet as it seems that I installed it with GTiff and GDAL support (and its a last resort!). It may be that I cannot display current GB Ordnance Survey maps because of some copyright, but I can display them in other applicatins (GIMP, ImageViewer etc.). My other thought is that Mapserver cannot deal with RGB TIFF files, but I'm unsure as to how to convert these to Mapserver readable types. I would really appreciate any help. Thanks in advance John Lee From Debbie.Pagurek at EC.GC.CA Wed Jul 27 09:07:00 2005 From: Debbie.Pagurek at EC.GC.CA (Pagurek,Debbie [NCR]) Date: Wed, 27 Jul 2005 12:07:00 -0400 Subject: SLD pointsymbolizer externalgraphic trouble Message-ID: Assefa, I'm quite sure that mapserver is finding the appropriate temp directory to write to because I got an SLD with polygonsymbolizer and external graphic to work just fine, and an image called H1.gif appears in that temp directory and my map is symbolized properly. However, I still can't get the same thing to work with a pointsymbolizer. My intention is to try to get little graphs on a map using SLD, pointsymbolizer and filters so that a layer that has centroids of provinces for instance can have a different graph at the centre of each province. What do you and others think of that approach for getting graphs on a map? Can anyone suggest anything else? Anyway, still need to get a point symbolizer working with external graphics. Attached is the sld that I'm using for points... I'm at a total loss. An SLD for polygons and external graphics works fine. Debbie -----Original Message----- From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] Sent: Wednesday, July 27, 2005 9:35 AM To: Pagurek,Debbie [NCR] Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] SLD pointsymbolizer externalgraphic trouble Pagurek,Debbie [NCR] wrote: > My maps returns fine with a simple getmap request. > > The tmp directory is set to c:/ms4w/tmp/ms_tmp > > Is there a way to check that mapserver is writing to that directory? > Ie if I use mode=map, should it leave a temporary file there? Mode=map > is giving me a map, but isn't leaving a file in that temp directory. > You can use mode=browse and that should create files in the tmp dir. You need to set the template in the web object : WEB TEMPLATE "template.html" template.html should exist but can be empy or have something like this Later, > Debbie > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On Behalf Of Yewondwossen Assefa > Sent: Tuesday, July 26, 2005 4:46 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] SLD pointsymbolizer externalgraphic trouble > > > Debbie, > > > Pagurek,Debbie [NCR] wrote: > >>Assefa, >> >>Are nightly builds available for Windows binaries? >>I changed my sld to show GIF instead of image/gif but it's still not >>working. >> > > I am not sure why It is not working for you. I basically took your > mapfile and change few paths to adapt to my settings. The map file > points to the gmap-ms40 data. The sld I used is basically yours (I don't > think I modified anything). I have attached both files. > > There are no nightly builds although I can put a mapserver 4.7 cvs > version on maptools if you need. > > >>I realized in the examples I sent earlier that my sld didn't contain a >>Geometry tag. What should this field "property name" contain? A name >>of a field in the shapefile? the word "msGeometry"? >> > > > Should not matter. It is not used. > > >>Can you think of anything else I can check on my system to test this? >> >>Am I missing something important in my mapfile? I've tried using my >>own mapfile and also the gmap75_wms.map file that comes with ms4w. >> >>At this point I'm just not getting any sld with an external graphic to >>work. Will keep trying. >> >>Debbie >> > > > Is your map returned with a somple getmap rquest without an sld ? > > I am also assuming that the temporaary directory and path are set > properly in the map file (since the graphic is downloaded and copied in > that directory) > > > > >>------------------- >>Debbie, >> >> I have tested your sld with local data and the only "problem" I >>found >>was that the format used is image/gif instead of >>gif. I have rechcked the sld specs and it specifies >>that the format should be of MIME type so your sld should be valid. I >>have corrected the test to test for GIF or image/gif (as well as PNG and >>image/png). (related bug is >>http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1430). >> If possible use the latest version from cvs or until you get a new >>build you can use GIF as the value of the format. >> >> Later, >> >>Pagurek,Debbie [NCR] wrote: >> >> >>>I am having trouble with an SLD that should put an externalgraphic at >>>a point. I am getting a blank map and when I do a view source I am >>>seeing Gobbldygook: GIF87aX?? ...etc (this happens if I set >>>imagetype GIF or PNG), and also if I don't set IMAGETYPE at all. An >>>SLD that uses an external graphic for a polygon layer works fine. >>> >>>I am including the sld file and my mapfile as attachments, and the >>>following is the URL I'm using. >>> >>>http://localhost/cgi-bin/mapserv.exe?map=c:\ms4w\apps\chameleon-2.2\c >>>e >>>si\map\pix.map&version=1.1.1&service=wms&request=getmap&layers=popplac >>>e&sld=http://localhost/chameleon/cesi/sldtest.xml >>> >>>I'm on Windows. >>>MapServer version 4.6.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >>>OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE >>>SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER >>>SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=JPEG INPUT=POSTGIS >>>INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG >>> >>>Anybody have any ideas? Is this a bug? >>> >>>D. Pagurek >>> >>> >>>--------------------------------------------------------------------- >>>- >>>-- >>> >>> >>>>>xmlns="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" >>>xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>>xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"> >>>dp_generated_sld >>>test sld for external graphic >>>test >>> >>> popplace >>> >>> Cities >>> Cities >>> 1 >>> >>> >>> >>> >>> >>> >>> image/gif >>> >>> 44 >>> >>> >>> >>> >>> >>> >>> >> >> > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: sldpoint3.xml Type: text/xml Size: 572 bytes Desc: sldpoint3.xml URL: From douglass_davis at EARTHLINK.NET Wed Jul 27 08:58:29 2005 From: douglass_davis at EARTHLINK.NET (Douglass Davis) Date: Wed, 27 Jul 2005 11:58:29 -0400 Subject: trying to get demo to run Message-ID: I am a new user, and I have been having troubles trying to get Mapserver to do anything meaningful, so I am now just trying to get a simple demo to work. The Demo is located here: http://ms.gis.umn.edu/new_users/index_html#mapserver-overview Whenever I run it, I get a 500 error. In my error log I get this: [Wed Jul 27 10:49:22 2005] [error] [client 127.0.0.1] Premature end of script headers: c:/program files/apache group/apache/cgi-bin/mapserv.exe I am using the Windows XP version of mapscript: C:\Documents and Settings\Douglass Davis>mapserv -v MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLI ENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=EPPL7 INPU T=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG C:\Documents and Settings\Douglass Davis>php --version PHP 4.4.0 (cgi-fcgi) (built: Jul 11 2005 16:13:04) Here is the first part of the mapfile # # Start of map file # NAME DEMO STATUS ON SIZE 600 600 EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897 UNITS METERS SHAPEPATH "data" IMAGECOLOR 255 255 255 # you may need to change this to match your MapServer build IMAGETYPE PNG # # Projection definition, consult the PROJ.4 documentation for parameter discussion # PROJECTION # "proj=utm" # "ellps=GRS80" # "zone=15" # "north" # "no_defs" # # OR: # # "init=epsg:26915" #END # # Start of web interface definition (including WMS enabling metadata) # WEB HEADER demo_header.html TEMPLATE demo.html FOOTER demo_footer.html MINSCALE 1000 MAXSCALE 1550000 IMAGEPATH "C:/tmp/ms_tmp/" IMAGEURL "http://127.0.0.1/ms_tmp/" METADATA WMS_TITLE "UMN MapServer Itasca Demo" WMS_ABSTRACT "This is the UMN MapServer demonstration application for Itasca County located in north central Minnesota." WMS_ACCESSCONSTRAINTS none # change this value to match your setup WMS_ONLINERESOURCE "http://127.0.0.1/mapserver/itasca/demo_init.html" WMS_SRS "EPSG:26915" END END ... I changed everything that the demo said needed to be changed. Here's part of the index file (the only part that it said needs changing):
Does any one know why this is not working? From margottid at COMUNE.LUGO.RA.IT Wed Jul 27 10:12:05 2005 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Wed, 27 Jul 2005 12:12:05 -0500 Subject: Join? Query? Select? Message-ID: Hi list, I have a point layer, based on a shapefile. I also have many .DBF files, which are reduced sets of the original .DBF of my shapefile (i.e., I have only one field, "ID", that corresponds to the "ID" field of the original shapefile, and only some records - not ALL of them). Now, the problem: When I browse the map, I want to see ONLY the points that are listed in my "reduced" .DBF (or, alternatively, see them in a different color - defining a CLASS item). Since I use CGI Mapserver, I also want to define a variable (%dbf%) that should be inserted in the mapfile, so I can modify it to change the view of my map (without modify my mapfile). Is it possible? What do I have to add to the mapfile? Thank you, Daniele From kenlord at GMAIL.COM Wed Jul 27 10:50:52 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Wed, 27 Jul 2005 10:50:52 -0700 Subject: Other spatial database development (PostGIS) In-Reply-To: Message-ID: I found more information that seems to confirm ESRI's intent to block direct writing (for example saving edits) of data from ArcGIS to PostGIS and many other formats. FME Suite by Safe Software can read and write directly to PostGIS and many other formats. It uses libpq to interact with PostGIS. However, ESRI's Data Interoperability Extention ... which is Safe's FME Suite beaten into submission (into ArcToolBox) ... gives you direct read and import capabilities for PostGIS, but no ability to save edits back to PostGIS or the other formats. Instead you must place your data into a geodatabase which you can then export back to PostGIS using their Export Tools. I assume you must then go back and delete your original PostGIS tables manually. In otherwords it offers almost no advantage over pgsql2shp / shp2pgsql, it is just a streamlined way to get your PostGIS tables into ArcGIS. Here's the link to ESRI's specs and FAQ on the extention: http://www.esri.com/software/arcgis/extensions/datainteroperability/about/faqs.html Has anyone tried using the Data Interoperability Extention with PostGIS? Cheers, Ken Lord Vancouver BC On 7/8/05, Paul Ramsey wrote: > > The plot thickens: > > > http://support.esri.com/index.cfm?fa=knowledgebase.techarticles.articleShow&d=16643 > > P > > > On Friday, July 8, 2005, at 08:00 AM, Paul Ramsey wrote: > > > Read-only OleDB would probably work fine. It would still be some > > effort to implement. Most people really consider read/write the gold > > standard they need for ArcMap, which is why I was focussing on it. > > > > Paul > > > > > > On 8-Jul-05, at 6:18 AM, uli mueller wrote: > > > >> Paul, why exactly are the signs not promising? Is > >> it "only" because OLEDB provides read-only access for ArcGIS? I did > >> not > >> really delve into the article you cited, but what I read sounded like > >> you can use PostGIS WKBs 1:1 with OLEDB for ArcGIS?? Has anybody > >> successfully implemented read-access from ArcGIS 9 to PG? Would this > >> be only an ugly or also a never-ending hack? > >> > >> Background: We also have a project where we are constrained to use a > >> personal geodatabase and would be happy to switch to PostGIS. > >> Read-only would be sufficient in this case. > >> > >> Uli > >> > >> -- > >> geOps GeoInformatics > >> D-79100 Freiburg > >> > >> Alex Smith wrote: > >> > >>> I'd like to preface this by acknowledging that my technical > >>> ineptitude may have been the cause of my unsuccessful attempts to > >>> write tabular data to external OLEDB databases from ArcGIS. And I'd > >>> also like to point out that it's been a while since I tried doing so > >>> - things may have changed. But my experiences have lead me to > >>> believe that ESRI has (or had) carefully implemented ArcGIS in a > >>> manner that prevents users from writing to external DBMS without > >>> using ArcSDE. We do alot of spatial processing that output and > >>> affects a considerable amount of tabular data that many other rely > >>> on and edit where necessary. Because we're already pushing the > >>> limits of Access, I looked into other options when we started some > >>> new projects....and an affordable option, such as Postgres or MySQL. > >>> Here's what I found > >>> In the original "Exploring ArcObjects" book, published near the > >>> release of ArcGIS 8.0, states that OLEDB connections to ArcGIS are > >>> read only. Hence, we couldn't directly output data to an external > >>> table joined to a Access based featureclass. Sure, we can later use > >>> ADO to update the 'enterprise' database from the Access geodatabase, > >>> but that starts to get messy or becomes, to use Paul's words, a > >>> "moderately ugly hack" (why have the middle-man Geodatabase tables - > >>> like pgArc had the middle-man shapefiles). So I tried linking in a > >>> MySQL table to via ODBC in a geodatabase .mdb file and attempted to > >>> edit that table (no spatial data) from ArcGIS - I got a message > >>> stating that linked tables cannot be written to. DAO tables (and > >>> I'm fairly certain that ArcGIS interacts with Access databases using > >>> DAO), have a property that returns true if they are linked tables. > >>> So it seems that the ArcGIS has code that tests this property and > >>> does not allow users to edit these tables. I fi > >>> > >> nd it very > >> > >>> hard to believe that this was accidental. And I later felt naive > >>> for thinking I could somehow 'outsmart' them - ESRI's software > >>> engineers are not dumb. Expect some resistance in attempting to > >>> circumnavigate their systems. I understand their need to protect > >>> their investment - the ArcGIS spatial editting tools (including > >>> topology and networks) and ArcSDE must have cost a lot of money to > >>> develop. And it's good software - ESRI has earned a lot of its > >>> success. It just sucks for those of us on a limited budget - SDE > >>> licenses on top of commercial RDBMS fees is simply unaffordable in > >>> our case. On the other hand, ESRI seems to be opening up. But > >>> they must continue to recover their development costs somehow. And > >>> I'd be surprised if they'd make it easy for other develop tools to > >>> compete with their systems. Yes, being able to directly edit > >>> PostGIS data using ArcGIS-like editing tools would be huge....but I > >>> don't think that it would be easy and would probably be > >>> cost-prohibitive. As Paul mentioned, if these things were easily > >>> and cost-effectively attainable, then it probably would have been > >>> done by now. But then again....look how successful mapserver has > >>> become. Just my thoughts...... > >>> Alex > >>> Paul Ramsey wrote: > >>> Guys, I am happy to spec this out again, but frankly I fear that > >>> most solutions will remain in the "moderately ugly hack" domain, ala > >>> PgArc. I have investigated more elegant things (oledb) but the signs > >>> are not promising (http://arcgisdeveloperonline.esri.com/ > >>> ArcGISDeveloper/ExtendingArcObjects/Ch07/AboutOLEDBProviders.htm). > >>> Principally, the continuing lack of an Oracle Spatial third party > >>> read/write extension on the market says to me that such a thing is > >>> just technically not possible to do attractively. If it were, > >>> someone would have written it by now and be making money on it. If > >>> anyone knows of such a thing, please do tell, it would be a good > >>> positive sign of possible success. > >>> Paul > >>> On 7-Jul-05, at 10:22 AM, Ken Lord wrote: > >>> > >>>> Hi Mike, > >>>> > >>>> This is a major interest to us, we would like to see a push for > >>>> this as well, in fact I was just asked to contact Tyler Mitchell > >>>> about pgArc when I return from my holidays. Tyler! are your ears > >>>> burning? hehe > >>>> > >>>> pgArc can be found at SourceForge if you want to check it out. It > >>>> has some functionality with ArcGIS 8, but I haven't had it work > >>>> with ArcGIS 9. > >>>> > >>>> We are locked into personal geodatabases for some of our clients, > >>>> development of a fully functional ArcGIS / PostGIS connection would > >>>> give us a lot more flexibility too. > >>>> > >>>> Cheers, > >>>> Ken Lord > >>>> Vancouver BC > >>>> > >>>> > >>>> > >>>> > >>>> On 7/7/05, Mike Davis wrote: Since we seem to be building some > >>>> momentum on the ESRI personal > >>>> geodatabase thing, it seems like a good time to bring up the other > >>>> database related item on our wishlist. > >>>> > >>>> What would be required to allow read/write to a PostGIS database > >>>> from > >>>> ArcGIS? I would love the ability to maintain our spatial data in > >>>> multiple datbase formats (must me my irrational fear of vendor > >>>> lock-in), but unless we can manage the data from within ArcGIS it > >>>> isn't really a practical option for us. > >>>> > >>>> -Mike > >>>> > >>> __________________________________________________ > >>> Do You Yahoo!? > >>> Tired of spam? Yahoo! Mail has the best spam protection around > >>> http://mail.yahoo.com > >>> > >> > >> > >> -- > >> geOps GeoInformatics > >> D-79100 Freiburg > >> > >> > Paul Ramsey > Refractions Research > Email: pramsey at refractions.net > Phone: (250) 885-0632 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jachym.cepicky at CENTRUM.CZ Wed Jul 27 10:55:32 2005 From: jachym.cepicky at CENTRUM.CZ (Jachym Cepicky) Date: Wed, 27 Jul 2005 19:55:32 +0200 Subject: jbox: uncaught exception Message-ID: Hallo, I use Mozilla-Firefox (1.0.4, debian package) with java 1.5 from Sun site. In my page, I have: [...] [...] When I click on the button, I get this message in JavaScript console: Error: uncaught exception: java.security.PrivilegedActionException: java.security.PrivilegedActionException: java.lang.reflect.InvocationTargetException I have to click twice, than it works. What to do? Thanks J?chym -- Jachym Cepicky e-mail: jachym.cepicky at centrum.cz URL: http://les-ejk.cz GPG: http://les-ejk.cz/gnupg_public_key/ From jdport at VERITIME.COM Wed Jul 27 11:32:01 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Wed, 27 Jul 2005 14:32:01 -0400 Subject: PHP/Mapserver Legend question Message-ID: Currently I have a map file where my roads layer has multiple classes with maxscale/minscale set so that roads appear differently at different zoom levels. The problem is that when I create a legend, all of the multiple classes show up in the list... for example I have: class name "interstates level 2" expression /Interstate/ maxscale 1600000 minscale 150000 style symbol 1 size 4 color 0 0 0 end style symbol 1 size 2 color 200 0 0 end end class name "us highways level 1" expression /US/ minscale 1600000 style symbol 1 size 1 color 255 204 0 end end And when the legend is generated it shows both "us highways level 1" and "use highways level 2" instead of just showing the one that is visible. Is there any way to set a min/max scale on legend keys/labels ? -Ea -------------- next part -------------- An HTML attachment was scrubbed... URL: From fwarmerdam at GMAIL.COM Wed Jul 27 12:44:24 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 27 Jul 2005 15:44:24 -0400 Subject: Other spatial database development (PostGIS) In-Reply-To: <55dd01fa050727105020201e51@mail.gmail.com> Message-ID: On 7/27/05, Ken Lord wrote: > I found more information that seems to confirm ESRI's intent to block direct > writing (for example saving edits) of data from ArcGIS to PostGIS and many > other formats. > > FME Suite by Safe Software can read and write directly to PostGIS and many > other formats. It uses libpq to interact with PostGIS. > > However, ESRI's Data Interoperability Extention ... which is Safe's FME > Suite beaten into submission (into ArcToolBox) ... gives you direct read and > import capabilities for PostGIS, but no ability to save edits back to > PostGIS or the other formats. Instead you must place your data into a > geodatabase which you can then export back to PostGIS using their Export > Tools. I assume you must then go back and delete your original PostGIS > tables manually. Ken, Generally speaking FME's format drivers are oriented to bulk reading, or bulk writing rather than update-in-place, which may explain why the Data Interoperability Extension using FMEObjects is setup this way. I don't know if it is ESRI policy to only do editing on ESRI databases or not, but there are certainly technical reasons why editing on external databases is hard for a big system with alot of expectations of data providers. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From dylan at IICI.NO-IP.ORG Wed Jul 27 13:56:11 2005 From: dylan at IICI.NO-IP.ORG (Dylan Beaudette) Date: Wed, 27 Jul 2005 13:56:11 -0700 Subject: artifacts at tiled image borders Message-ID: Greetings, I have been doing some research on better ways to store my aerial imagery, so that I can keep a higher resolution version of my source files. Until now I have been downsampling USGS DOQQ images from 1 meter resolution to 10 meters, saving the result as a geoTiff. With overviews, these file are about 1.5 mb per quarter quad. A shapefile tile index is used to render the images in Mapserver. Last night I re-created a section of the tiled dataset in JPEG format at 3 meter resolution. I am much happier with the resulting increase in detail, however I am now noticing some strange artifacts showing up at the "seams" of the tile index. here is an example of what I am talking about: http://169.237.35.250/~dylan/temp/mapserver/bad_edges.jpg the source data do not appear to have these type of "rough edges": http://169.237.35.250/~dylan/temp/mapserver/original_clean_edges.jpg I am using the OFFSITE operator in my map file to ignore pixels with an RGB value of '0 0 0'. Does anyone have any idea what could be causing these rough looking seams at the tileindex boundaries? thanks in advance! -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From ajackson at REALTORS.ORG Wed Jul 27 13:44:16 2005 From: ajackson at REALTORS.ORG (Aubrey Jackson) Date: Wed, 27 Jul 2005 15:44:16 -0500 Subject: CGI Variable String Length Limit Message-ID: I need to send a fairly long string variable to the MapServer CGI to render features on a map. The varible activates a layer which displays the features I desire. I?m sending the expression in a POST method due to the limitations on length in GET. My problem is that I can?t get the layer to display. I don?t get any error message that indicates a problem; I just don?t get a map. My call to the MapServer CGI is of the following form: /cgi-bin/mapserv?map=/var/www/html/maps/bridge.map&mapExt=-129.101818 22.000000 -63.898182 50.000000&mode=map&BOARDEXP ='[NRDS_ID]' eq '2415' or '[NRDS_ID]' eq '3505' or '[NRDS_ID]' eq '8600' or '[NRDS_ID]' eq '2960' , where the BOARDEXP variable can be extremely long. I have searched the archives to see if I could find any information concerning a limit, to no avail. Does anyone know if there is a limit? Thanks, Aubrey From douglass_davis at EARTHLINK.NET Wed Jul 27 14:00:26 2005 From: douglass_davis at EARTHLINK.NET (Douglass Davis) Date: Wed, 27 Jul 2005 17:00:26 -0400 Subject: newbie question about EXTENT Message-ID: Ok, I must admit, I am a PHP/Web programmer not a GIS expert... But, looking at the mapfile, what are the units used for EXTENT?? I mean, I know its x and y values, but what do they represent? For example. What does this mean exactly, and how does it relate to the shapefile, and the image output of the mapserver: EXTENT -2200000 -712631 3072800 3840000 The docs only say they are x and y values. From ealpert at DIGITALGLOBE.COM Wed Jul 27 14:01:04 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Wed, 27 Jul 2005 15:01:04 -0600 Subject: CGI Variable String Length Limit Message-ID: 1K is the parameter size limit for URL's using the "GET" method. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Aubrey Jackson Sent: Wednesday, July 27, 2005 2:44 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] CGI Variable String Length Limit I need to send a fairly long string variable to the MapServer CGI to render features on a map. The varible activates a layer which displays the features I desire. I'm sending the expression in a POST method due to the limitations on length in GET. My problem is that I can't get the layer to display. I don't get any error message that indicates a problem; I just don't get a map. My call to the MapServer CGI is of the following form: /cgi-bin/mapserv?map=/var/www/html/maps/bridge.map&mapExt=-129.101818 22.000000 -63.898182 50.000000&mode=map&BOARDEXP ='[NRDS_ID]' eq '2415' or '[NRDS_ID]' eq '3505' or '[NRDS_ID]' eq '8600' or '[NRDS_ID]' eq '2960' ..., where the BOARDEXP variable can be extremely long. I have searched the archives to see if I could find any information concerning a limit, to no avail. Does anyone know if there is a limit? Thanks, Aubrey From ealpert at DIGITALGLOBE.COM Wed Jul 27 14:07:55 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Wed, 27 Jul 2005 15:07:55 -0600 Subject: newbie question about EXTENT Message-ID: EXTENT is the extent of the map in the UNITS of the PROJECTION. The EXTENT you posted below is in METERS because the PROJECTION is a projected coordinate system like UTM, Polar Stereographic, State Plane, etc... If your map were using a latlong projection then you'd use decimal degrees for your extent. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Douglass Davis Sent: Wednesday, July 27, 2005 3:00 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] newbie question about EXTENT Ok, I must admit, I am a PHP/Web programmer not a GIS expert... But, looking at the mapfile, what are the units used for EXTENT?? I mean, I know its x and y values, but what do they represent? For example. What does this mean exactly, and how does it relate to the shapefile, and the image output of the mapserver: EXTENT -2200000 -712631 3072800 3840000 The docs only say they are x and y values. From fwarmerdam at GMAIL.COM Wed Jul 27 14:23:22 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 27 Jul 2005 17:23:22 -0400 Subject: artifacts at tiled image borders In-Reply-To: <200507271356.11403.dylan@iici.no-ip.org> Message-ID: On 7/27/05, Dylan Beaudette wrote: > Greetings, > > I have been doing some research on better ways to store my aerial imagery, so > that I can keep a higher resolution version of my source files. Until now I > have been downsampling USGS DOQQ images from 1 meter resolution to 10 meters, > saving the result as a geoTiff. With overviews, these file are about 1.5 mb > per quarter quad. A shapefile tile index is used to render the images in > Mapserver. > > Last night I re-created a section of the tiled dataset in JPEG format at 3 > meter resolution. I am much happier with the resulting increase in detail, > however I am now noticing some strange artifacts showing up at the "seams" of > the tile index. > > here is an example of what I am talking about: > http://169.237.35.250/~dylan/temp/mapserver/bad_edges.jpg > > the source data do not appear to have these type of "rough edges": > http://169.237.35.250/~dylan/temp/mapserver/original_clean_edges.jpg > > I am using the OFFSITE operator in my map file to ignore pixels with an RGB > value of '0 0 0'. > > Does anyone have any idea what could be causing these rough looking seams at > the tileindex boundaries? Dylan, The problem is that jpeg is a lossy format, and along the boundaries areas that should be black are in fact just very slightly non-black and so are not recognised as offsite. This will occur to varying degrees with any lossy format like jpeg, ecw, jpeg2000 and mrsid. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From ed at TOPOZONE.COM Wed Jul 27 14:43:04 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 27 Jul 2005 17:43:04 -0400 Subject: artifacts at tiled image borders Message-ID: Dylan - In addition to Frank's accurate description of the problem, I'll also note that JPEG is a very poorly-performing format for geospatial applications. Yes, you do lose something if you want to save space! How many DOQQs do you need to deal with? They're big, but they're not THAT big. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Dylan Beaudette Sent: Wednesday, July 27, 2005 4:56 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] artifacts at tiled image borders Greetings, I have been doing some research on better ways to store my aerial imagery, so that I can keep a higher resolution version of my source files. Until now I have been downsampling USGS DOQQ images from 1 meter resolution to 10 meters, saving the result as a geoTiff. With overviews, these file are about 1.5 mb per quarter quad. A shapefile tile index is used to render the images in Mapserver. Last night I re-created a section of the tiled dataset in JPEG format at 3 meter resolution. I am much happier with the resulting increase in detail, however I am now noticing some strange artifacts showing up at the "seams" of the tile index. here is an example of what I am talking about: http://169.237.35.250/~dylan/temp/mapserver/bad_edges.jpg the source data do not appear to have these type of "rough edges": http://169.237.35.250/~dylan/temp/mapserver/original_clean_edges.jpg I am using the OFFSITE operator in my map file to ignore pixels with an RGB value of '0 0 0'. Does anyone have any idea what could be causing these rough looking seams at the tileindex boundaries? thanks in advance! -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From dylan at IICI.NO-IP.ORG Wed Jul 27 15:00:28 2005 From: dylan at IICI.NO-IP.ORG (Dylan Beaudette) Date: Wed, 27 Jul 2005 15:00:28 -0700 Subject: artifacts at tiled image borders In-Reply-To: <4BF377919225F449BB097CB76FFE9BC818878E@ptolemy.topozone.com> Message-ID: Ed, Thanks for the input. Well, I actually have about 3,000 or more of them, at least enough to cover most of CA. Once we add NV and AZ, there are going to be a lot more. Since the DOQQ have a tremendous amount of overlap, i have been toying with the idea of merging the 4 quarter quads back into a single quad- potentially saving some space. I don't really need or want imagery that is much greater than 3m res, in fact 5 meter might be enough... the 10 meter downsampling has just resulted in images that are a bit too poor quality. Finally, if JPEG is a poorly performing image format, at the expense of some extra hard disk space, perhaps staying with geotiff is the thing to do.. any thoughts? thanks! Dylan On Wednesday 27 July 2005 02:43 pm, Ed McNierney wrote: > Dylan - > > In addition to Frank's accurate description of the problem, I'll also > note that JPEG is a very poorly-performing format for geospatial > applications. Yes, you do lose something if you want to save space! > > How many DOQQs do you need to deal with? They're big, but they're not > THAT big. > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > Phone: +1 (978) 251-4242 > Fax: +1 (978) 251-1396 > ed at topozone.com > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Dylan Beaudette > Sent: Wednesday, July 27, 2005 4:56 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] artifacts at tiled image borders > > Greetings, > > I have been doing some research on better ways to store my aerial > imagery, so that I can keep a higher resolution version of my source > files. Until now I have been downsampling USGS DOQQ images from 1 meter > resolution to 10 meters, saving the result as a geoTiff. With overviews, > these file are about 1.5 mb per quarter quad. A shapefile tile index is > used to render the images in Mapserver. > > Last night I re-created a section of the tiled dataset in JPEG format at > 3 meter resolution. I am much happier with the resulting increase in > detail, however I am now noticing some strange artifacts showing up at > the "seams" of the tile index. > > here is an example of what I am talking about: > http://169.237.35.250/~dylan/temp/mapserver/bad_edges.jpg > > the source data do not appear to have these type of "rough edges": > http://169.237.35.250/~dylan/temp/mapserver/original_clean_edges.jpg > > I am using the OFFSITE operator in my map file to ignore pixels with an > RGB value of '0 0 0'. > > Does anyone have any idea what could be causing these rough looking > seams at the tileindex boundaries? > > thanks in advance! > > > -- > Dylan Beaudette > Soils and Biogeochemistry Graduate Group University of California at > Davis > 530.754.7341 -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From nate at SEASTAR.JPL.NASA.GOV Wed Jul 27 17:55:08 2005 From: nate at SEASTAR.JPL.NASA.GOV (Nate Reed) Date: Wed, 27 Jul 2005 17:55:08 -0700 Subject: compatibility with PHP 5 Message-ID: Anyone know if recent versions of MapServer work with PHP5? From dbkeon.ml at GMAIL.COM Wed Jul 27 19:08:44 2005 From: dbkeon.ml at GMAIL.COM (Dylan Keon) Date: Wed, 27 Jul 2005 19:08:44 -0700 Subject: Raster question In-Reply-To: Message-ID: On 07/27/2005 07:52 AM John Lee wrote the following: > Hello all, I am brand new to Mapserver and I am having problems with > displaying raster images. I am trying to add tiff files to the map but > without success. Here is my setup: > > OS: RedHat 9.0 > Mapserv -v > MapServer version 4.0.2 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ > SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER INPUT=TIFF > INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > I have tried lots of different approaches. I haven't re-installed Mapserver > yet as it seems that I installed it with GTiff and GDAL support (and its a > last resort!). John, I would first try recompiling Mapserver, keeping --with-gdal but removing --with-tiff. There can be problems when you compile using both options, and it's usually better to just use GDAL's built-in tiff support anyway. --Dylan From gireddy at GMAIL.COM Wed Jul 27 23:32:21 2005 From: gireddy at GMAIL.COM (Shashi Gireddy) Date: Thu, 28 Jul 2005 01:32:21 -0500 Subject: weired zooming problem Message-ID: I have a weired zooming problem. I have two shape files with same image extent. 1. Roads with surface type, length, hwy etc.. for south texas (LINES) 2. Reference markers for the same roads (POINTS) I am creating two layers for each of them. the problem is It works If I zoom out or Pan (If I click on the upper left cornor Pan Doesn't work) It doesn't work If I click on zoom in (it works If I zoom out once and zoom in once, but after second click it gives me a blank map, but it still showing the legent, and scale) IF I use only surface type (LINES) it works perfect but If I use only reference markers It does't work(behaves as above) I guess It is the probmem with the extent of Reference Markers , i tried to change but didn't help me (I used ArcView to know the Extent) here are my extent values EXTENT -98.64 29.32 -96.35 27.15 I know there is an other way of representation, but I don't know how to convert or how to check tht in arcview. can anybody help me please. thanks in advance. shashi. -- Shashi Kiran Reddy. Gireddy, Graduate Assistant, CBER, University of Alabama. http://www.cs.ua.edu/shashi Cell: 205-239-6655 From margottid at COMUNE.LUGO.RA.IT Thu Jul 28 00:09:30 2005 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Thu, 28 Jul 2005 09:09:30 +0200 Subject: Join? Query? Select? In-Reply-To: Message-ID: I forgot to say that these .DBF are dinamically generated by an application server (which I query through a HTML form), so I can't hardcode the filename into my mapfile, since the filename changes everytime I want a map with different parameters. Daniele -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Daniele Margotti Sent: Wednesday, July 27, 2005 7:12 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Join? Query? Select? Hi list, I have a point layer, based on a shapefile. I also have many .DBF files, which are reduced sets of the original .DBF of my shapefile (i.e., I have only one field, "ID", that corresponds to the "ID" field of the original shapefile, and only some records - not ALL of them). Now, the problem: When I browse the map, I want to see ONLY the points that are listed in my "reduced" .DBF (or, alternatively, see them in a different color - defining a CLASS item). Since I use CGI Mapserver, I also want to define a variable (%dbf%) that should be inserted in the mapfile, so I can modify it to change the view of my map (without modify my mapfile). Is it possible? What do I have to add to the mapfile? Thank you, Daniele From Joe.Beales at NORTECHONLINE.CO.UK Thu Jul 28 01:26:35 2005 From: Joe.Beales at NORTECHONLINE.CO.UK (Beales, Joe) Date: Thu, 28 Jul 2005 09:26:35 +0100 Subject: Multiple dynamic points and cgi variables Message-ID: Hi, I'm trying to display multiple coordinates on a map using the Map server CGI. I'm using the form submission technique and by using php (and Mysql) I get a list of points and dynamically add them to the form, submit the form and all my points are displayed, great! My problem is that in the template file I do not know what the names of my new points are so I can't reproduce my original form. Unless I've missed a trick here, in order to say pan the map by clicking on the image I'd need to produce a form in the template so that when I clicked on the map and therefore submit the form all the original form variables are passed back to Map Server. Is there a way in the template file to get a complete list of the variables Map Server provides, like the $_POST variable in php, rather than reference them individually like [host]? Or am I going about this completely the wrong way? Any answers/thoughts would be most appreciated. Regards, Joe -------------- next part -------------- An HTML attachment was scrubbed... URL: From bluecarto at GMAIL.COM Thu Jul 28 02:53:54 2005 From: bluecarto at GMAIL.COM (Pierre GIRAUD) Date: Thu, 28 Jul 2005 11:53:54 +0200 Subject: How to draw simple closed polygons at the client side ? In-Reply-To: Message-ID: Sure it is possible. Using walterzorn drawing API is a good way for this. If you take a look at the Cartoweb online demo, you'll find a first sample of polygon drawing with the polygon outline or measure surface tools. At this time, we are redevelopping this in an API, in order to give the user a real editing interface. People will be able to draw, move features, add, move, delete vertices (with simple snapping functions). In this API, polygons are filled and I suppose they suit your needs. regards Pierre GIRAUD On 7/27/05, Richard Roger wrote: > > Dear List > > I am after some advice, please. I want to know a good way to draw simple > polygons (simply-connected polygons with no sides crossing each other) on > the client side in a web browser. I see that Rosa does ellipses and > polylines - does "polyline" in Rosa mean a closed polygon as it does in > Mapserver? What about jbox? Geotools looks as if it might be a bit heavy. > And I suppose that one could build upon Javascript "vectorgraphics" (e.g., > the www.walterzorn.com/jsgraphics library or www.karlson.ru/jsgraphics ). > > Any advice gratefully received. > > Cheers > > Richard E. Roger > > Dr. R. E. Roger NSW Department of > Primary Industries > Spatial Information Officer Systems 161 Kite St > Resource Information Unit Locked Bag 21 > ORANGE NSW 2800 > ph: (02) 6391 3697 fax: (02) 6391 3740 > > This message is intended for the addressee named and may contain > confidential information. If you are not the intended recipient or received > it in error, please delete the message and notify sender. Views expressed > are those of the individual sender and are not necessarily the views of > their organisation. From sbeorchia at GI-LEMANS.COM Thu Jul 28 05:00:28 2005 From: sbeorchia at GI-LEMANS.COM (Sylvain Beorchia) Date: Thu, 28 Jul 2005 14:00:28 +0200 Subject: SPAM!!!: Re: Nate reed Message-ID: Hi, just add @ before que query function, like this : @$oLayer->queryByAttributes(...) intead of $oLayer->queryByAttributes(...) Sylvain B. ----- Original Message ----- From: "Nate Reed" To: Sent: Monday, July 11, 2005 11:48 PM Subject: SPAM!!!: SPAM!!!: SPAM!!!: SPAM!!!: SPAM!!!: SPAM!!!: SPAM!!!: SPAM!!!: SPAM!!!: SPAM!!!: SPAM!!!: SPAM!!!: SPAM!!!: SPAM!!!: SPAM!!!: SPAM!!!: SPAM!!!: SPAM!!!: SPAM!!!: SPAM!!!: SPAM!!!: SPAM!!!: SPAM!!!: SPAM!!!: SPAM!!!: SPAM!!!: [UMN_MAPSERVER-USERS] how to suppress warning message? > When querying into a region that contains no data MapServer displays the > following error message: > > Warning: [MapServer Error]: msQueryByRect(): No matching record(s) found. > in /home/www/doc/nate/dev/MapController.php on line 498 > > Is there a way to turn this message off? I don't want to redirect to > another url as previously suggested and there is no reason to treat this > as an error. > > -- > Nate Reed > Physical Oceanography DAAC > Jet Propulsion Lab / Raytheon ITSS > (626)744-5528 nate at seastar.jpl.nasa.gov From gis at SCHNEGG.NET Thu Jul 28 06:47:13 2005 From: gis at SCHNEGG.NET (Frank Rittinger) Date: Thu, 28 Jul 2005 15:47:13 +0200 Subject: tiles and overview maps Message-ID: Hello list, I know this subject came up a hundred times, but I couldn't find an answer to my questions. I'm used to using gdaltindex if I have several raster images to create a tile index for them. But what if I want to tile one large image? I understand that when I have only one large image and I want it tiled, I have to use gdalwarp or gdal_transform with the TILED=YES switch. This produces only one large image. Is this it, or do I have to use gdaltindex for this somehow? Do I have to use a regular raster layer or a tileindex layer with this one large TIFF image? Or do I need other command line switches to get many TIFF-images? Second, if I use gdaladdo to produce overview images, I think they are all stored in the same file. Do I need only one layer and mapserver takes the right image according to the current zoom, or do I hav to use more than one layer with minscale, maxscale? But than, which image do I use for those layers? Regards, Frank From fwarmerdam at GMAIL.COM Thu Jul 28 07:07:18 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 28 Jul 2005 10:07:18 -0400 Subject: tiles and overview maps In-Reply-To: <42E8E1E1.5060203@schnegg.net> Message-ID: On 7/28/05, Frank Rittinger wrote: > Hello list, > > I know this subject came up a hundred times, but I couldn't find an > answer to my questions. > > I'm used to using gdaltindex if I have several raster images to create a > tile index for them. But what if I want to tile one large image? I > understand that when I have only one large image and I want it tiled, I > have to use gdalwarp or gdal_transform with the TILED=YES switch. This > produces only one large image. Is this it, or do I have to use > gdaltindex for this somehow? Frank, Converting a single large image into internally-tiled format can improve rendering speed for small local areas of the image. When gdal_translate'ing to GeoTIFF the "-co TILED=yes" causes the output TIFF file to be tiled. Doing so does not require any changes to your mapfile, nor any tileindex file. Conversely you can actually slice up a large file into regular small tile files, in which case you would need a tileindex and changes to your map file. I don't have a terribly handy way of doing this, and generally I would discourage doing it if you can work with just one large file instead. I call this "external tiling". > Second, if I use gdaladdo to produce overview images, I think they are > all stored in the same file. Do I need only one layer and mapserver > takes the right image according to the current zoom, or do I hav to use > more than one layer with minscale, maxscale? But than, which image do I > use for those layers? Internal overviews within a file are used automatically by GDAL when needed and you do not need to do anything special in your .map file to take advantage of them. A separate "overview" layer in your map file is typically only needed when working with tileindexed layers, to avoid having to open many tile files for requests for large areas. Don't feel bad. Lots of folks are uncertain about the two kinds of tiling and overview building. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From fwarmerdam at GMAIL.COM Thu Jul 28 07:23:59 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 28 Jul 2005 10:23:59 -0400 Subject: Raster question In-Reply-To: Message-ID: On 7/27/05, John Lee wrote: > Hello all, I am brand new to Mapserver and I am having problems with > displaying raster images. I am trying to add tiff files to the map but > without success. Here is my setup: > > OS: RedHat 9.0 > Mapserv -v > MapServer version 4.0.2 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ > SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER INPUT=TIFF > INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > ************************************************** > > gdal-config --version > 1.2.0 John, Dylan's advise on using --without-tiff should likely do the trick. I didn't notice that you were using such an ancient version of mapserver or I would have suggested it myself. PS MapServer 4.0 and GDAL 1.2.0 are pretty old by this point. I think you will find it easier to get good help from the list if you upgrade to current stable versions. I think you will find some problems (like this) also just "go away" in more recent versions. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From tkirstine at JDBARNES.COM Thu Jul 28 07:46:47 2005 From: tkirstine at JDBARNES.COM (Travis Kirstine GIS Tech) Date: Thu, 28 Jul 2005 10:46:47 -0400 Subject: gdallado edges Message-ID: List, After running gdallado on several adjacent raster hillshade tiff images, seams or edges became visible whereas pre gdallado no edges were visible. I assume that these values are the no data values but is there anyway to remove the seams and why do they appear in the first place. Thanks Travis -------------- next part -------------- A non-text attachment was scrubbed... Name: seams.JPG Type: image/jpeg Size: 203286 bytes Desc: not available URL: From fwarmerdam at GMAIL.COM Thu Jul 28 07:58:35 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 28 Jul 2005 10:58:35 -0400 Subject: gdallado edges In-Reply-To: Message-ID: On 7/28/05, Travis Kirstine GIS Tech wrote: > List, > After running gdallado on several adjacent raster hillshade tiff images, > seams or edges became visible whereas pre gdallado no edges were visible. I > assume that these values are the no data values but is there anyway to > remove the seams and why do they appear in the first place. Travis, Did you use -r average when building the overviews with gdaladdo? I think that gdaladdo does not know about "nodata" values, and would average nodata values into overview pixels which could give such an effect. You might want to rebuild overviews with the default "nearest" downsampling and see if they go away. If that is the issue you can open a bug in the GDAL bugzilla about the issue. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From tim at COMMENSPACE.ORG Thu Jul 28 08:56:13 2005 From: tim at COMMENSPACE.ORG (Tim Schaub) Date: Thu, 28 Jul 2005 08:56:13 -0700 Subject: compatibility with PHP 5 Message-ID: If you're wondering about PHP MapScript, I've been using http://www.maptools.org/dl/mapserver-4.5-win32-php5.0.3.zip without a problem. Tim -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Nate Reed Sent: Wednesday, July 27, 2005 6:55 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] compatibility with PHP 5 Anyone know if recent versions of MapServer work with PHP5? From Debbie.Pagurek at EC.GC.CA Thu Jul 28 09:01:42 2005 From: Debbie.Pagurek at EC.GC.CA (Pagurek,Debbie [NCR]) Date: Thu, 28 Jul 2005 12:01:42 -0400 Subject: SLD pointsymbolizer externalgraphic trouble Message-ID: Well, I've confirmed that my approach for getting charts on a map using SLD, pointsymbolizer and externalgraphics will work because I tested it against DMSolutions server with my own SLD and graph: http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?version=1.1.1&service=wms&request=getmap&layers=prov_bound,popplace&sld=http://devgeo.cciw.ca/ecesdi/sldpoint4.xml However, on my own installations of mapserver, I can't get this to work. I get the provincial boundaries with no point layer at all. I am looking in my apache error log and I see: [Thu Jul 28 11:58:12 2005] [error] [client 127.0.0.1] msDrawMap(): Layer 5 (prov_bound), 0.015s\r [Thu Jul 28 11:58:12 2005] [error] [client 127.0.0.1] msDrawMap(): Layer 9 (popplace), 0.016s\r [Thu Jul 28 11:58:12 2005] [error] [client 127.0.0.1] msDrawMap(): Drawing Label Cache, 0.000s\r [Thu Jul 28 11:58:12 2005] [error] [client 127.0.0.1] msDrawMap() total time: 0.031s\r This error occurs even just with only the prov_bound layer, no SLD. So - is it time for me to re-install mapserver 4.6 on my machine? Any other possible solutions? Debbie -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Pagurek,Debbie [NCR] Sent: Wednesday, July 27, 2005 12:07 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] SLD pointsymbolizer externalgraphic trouble Assefa, I'm quite sure that mapserver is finding the appropriate temp directory to write to because I got an SLD with polygonsymbolizer and external graphic to work just fine, and an image called H1.gif appears in that temp directory and my map is symbolized properly. However, I still can't get the same thing to work with a pointsymbolizer. My intention is to try to get little graphs on a map using SLD, pointsymbolizer and filters so that a layer that has centroids of provinces for instance can have a different graph at the centre of each province. What do you and others think of that approach for getting graphs on a map? Can anyone suggest anything else? Anyway, still need to get a point symbolizer working with external graphics. Attached is the sld that I'm using for points... I'm at a total loss. An SLD for polygons and external graphics works fine. Debbie -----Original Message----- From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] Sent: Wednesday, July 27, 2005 9:35 AM To: Pagurek,Debbie [NCR] Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] SLD pointsymbolizer externalgraphic trouble Pagurek,Debbie [NCR] wrote: > My maps returns fine with a simple getmap request. > > The tmp directory is set to c:/ms4w/tmp/ms_tmp > > Is there a way to check that mapserver is writing to that directory? > Ie if I use mode=map, should it leave a temporary file there? Mode=map > is giving me a map, but isn't leaving a file in that temp directory. > You can use mode=browse and that should create files in the tmp dir. You need to set the template in the web object : WEB TEMPLATE "template.html" template.html should exist but can be empy or have something like this Later, > Debbie > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On Behalf Of Yewondwossen Assefa > Sent: Tuesday, July 26, 2005 4:46 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] SLD pointsymbolizer externalgraphic trouble > > > Debbie, > > > Pagurek,Debbie [NCR] wrote: > >>Assefa, >> >>Are nightly builds available for Windows binaries? >>I changed my sld to show GIF instead of image/gif but it's still not >>working. >> > > I am not sure why It is not working for you. I basically took your > mapfile and change few paths to adapt to my settings. The map file > points to the gmap-ms40 data. The sld I used is basically yours (I don't > think I modified anything). I have attached both files. > > There are no nightly builds although I can put a mapserver 4.7 cvs > version on maptools if you need. > > >>I realized in the examples I sent earlier that my sld didn't contain a >>Geometry tag. What should this field "property name" contain? A name >>of a field in the shapefile? the word "msGeometry"? >> > > > Should not matter. It is not used. > > >>Can you think of anything else I can check on my system to test this? >> >>Am I missing something important in my mapfile? I've tried using my >>own mapfile and also the gmap75_wms.map file that comes with ms4w. >> >>At this point I'm just not getting any sld with an external graphic to >>work. Will keep trying. >> >>Debbie >> > > > Is your map returned with a somple getmap rquest without an sld ? > > I am also assuming that the temporaary directory and path are set > properly in the map file (since the graphic is downloaded and copied in > that directory) > > > > >>------------------- >>Debbie, >> >> I have tested your sld with local data and the only "problem" I >>found >>was that the format used is image/gif instead of >>gif. I have rechcked the sld specs and it specifies >>that the format should be of MIME type so your sld should be valid. I >>have corrected the test to test for GIF or image/gif (as well as PNG and >>image/png). (related bug is >>http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1430). >> If possible use the latest version from cvs or until you get a new >>build you can use GIF as the value of the format. >> >> Later, >> >>Pagurek,Debbie [NCR] wrote: >> >> >>>I am having trouble with an SLD that should put an externalgraphic at >>>a point. I am getting a blank map and when I do a view source I am >>>seeing Gobbldygook: GIF87aX?? ...etc (this happens if I set >>>imagetype GIF or PNG), and also if I don't set IMAGETYPE at all. An >>>SLD that uses an external graphic for a polygon layer works fine. >>> >>>I am including the sld file and my mapfile as attachments, and the >>>following is the URL I'm using. >>> >>>http://localhost/cgi-bin/mapserv.exe?map=c:\ms4w\apps\chameleon-2.2\c >>>e >>>si\map\pix.map&version=1.1.1&service=wms&request=getmap&layers=popplac >>>e&sld=http://localhost/chameleon/cesi/sldtest.xml >>> >>>I'm on Windows. >>>MapServer version 4.6.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >>>OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE >>>SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER >>>SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=JPEG INPUT=POSTGIS >>>INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG >>> >>>Anybody have any ideas? Is this a bug? >>> >>>D. Pagurek >>> >>> >>>--------------------------------------------------------------------- >>>- >>>-- >>> >>> >>>>>xmlns="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" >>>xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>>xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"> >>>dp_generated_sld >>>test sld for external graphic >>>test >>> >>> popplace >>> >>> Cities >>> Cities >>> 1 >>> >>> >>> >>> >>> >>> >>> image/gif >>> >>> 44 >>> >>> >>> >>> >>> >>> >>> >> >> > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From jlee at BROOKES.AC.UK Thu Jul 28 09:02:29 2005 From: jlee at BROOKES.AC.UK (John Lee) Date: Thu, 28 Jul 2005 17:02:29 +0100 Subject: Raster question In-Reply-To: <931f8ea90507280723600eabc0@mail.gmail.com> Message-ID: Many thanks Frank (and Dylan), on my cycle ride home the thought occurred to me that it might be because I am using an old version of Mapserver - for some reason I'd got it into my head that I was using version 4.4. I am now installing version 4.6 although I'm having trouble with a configure error regarding the version of libcurl on my machine!! configure: error: libcurl version 7.10.1 or more recent is required. I have installed libcurl 7.14 using rpm, but perhaps the answer lies in a more upto date version of gd. Anyway thanks for the help and from Dylan. Regards John > On 7/27/05, John Lee wrote: >> Hello all, I am brand new to Mapserver and I am having problems with >> displaying raster images. I am trying to add tiff files to the map but >> without success. Here is my setup: >> >> OS: RedHat 9.0 >> Mapserv -v >> MapServer version 4.0.2 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ >> SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER INPUT=TIFF >> INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >> >> ************************************************** >> >> gdal-config --version >> 1.2.0 > > John, > > Dylan's advise on using --without-tiff should likely do the trick. I > didn't notice that you were using such an ancient version of mapserver > or I would have suggested it myself. > > PS MapServer 4.0 and GDAL 1.2.0 are pretty old by this point. I think > you will find it easier to get good help from the list if you upgrade to > current stable versions. I think you will find some problems (like this) > also just "go away" in more recent versions. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > From cdaily at GMAIL.COM Thu Jul 28 10:36:45 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Thu, 28 Jul 2005 12:36:45 -0500 Subject: compatibility with PHP 5 In-Reply-To: Message-ID: We're running mapserver 4.6.0 on PHP 5.0.3 without any issues. -Camden Daily From Debbie.Pagurek at EC.GC.CA Thu Jul 28 10:57:40 2005 From: Debbie.Pagurek at EC.GC.CA (Pagurek,Debbie [NCR]) Date: Thu, 28 Jul 2005 13:57:40 -0400 Subject: SLD pointsymbolizer externalgraphic trouble Message-ID: Latest update is that I totally re-installed MS4W version 1.2.1 Same problem exists for version 4.6. However, it WORKS with the 4.4 version in the package. SLD with pointsymbolizer using external graphic works with 4.4. Bug? How should I proceed? What should I test? Debbie -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Pagurek,Debbie [NCR] Sent: Thursday, July 28, 2005 12:02 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] SLD pointsymbolizer externalgraphic trouble Well, I've confirmed that my approach for getting charts on a map using SLD, pointsymbolizer and externalgraphics will work because I tested it against DMSolutions server with my own SLD and graph: http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?version=1.1.1&service=wms&request=getmap&layers=prov_bound,popplace&sld=http://devgeo.cciw.ca/ecesdi/sldpoint4.xml However, on my own installations of mapserver, I can't get this to work. I get the provincial boundaries with no point layer at all. I am looking in my apache error log and I see: [Thu Jul 28 11:58:12 2005] [error] [client 127.0.0.1] msDrawMap(): Layer 5 (prov_bound), 0.015s\r [Thu Jul 28 11:58:12 2005] [error] [client 127.0.0.1] msDrawMap(): Layer 9 (popplace), 0.016s\r [Thu Jul 28 11:58:12 2005] [error] [client 127.0.0.1] msDrawMap(): Drawing Label Cache, 0.000s\r [Thu Jul 28 11:58:12 2005] [error] [client 127.0.0.1] msDrawMap() total time: 0.031s\r This error occurs even just with only the prov_bound layer, no SLD. So - is it time for me to re-install mapserver 4.6 on my machine? Any other possible solutions? Debbie -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Pagurek,Debbie [NCR] Sent: Wednesday, July 27, 2005 12:07 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] SLD pointsymbolizer externalgraphic trouble Assefa, I'm quite sure that mapserver is finding the appropriate temp directory to write to because I got an SLD with polygonsymbolizer and external graphic to work just fine, and an image called H1.gif appears in that temp directory and my map is symbolized properly. However, I still can't get the same thing to work with a pointsymbolizer. My intention is to try to get little graphs on a map using SLD, pointsymbolizer and filters so that a layer that has centroids of provinces for instance can have a different graph at the centre of each province. What do you and others think of that approach for getting graphs on a map? Can anyone suggest anything else? Anyway, still need to get a point symbolizer working with external graphics. Attached is the sld that I'm using for points... I'm at a total loss. An SLD for polygons and external graphics works fine. Debbie -----Original Message----- From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] Sent: Wednesday, July 27, 2005 9:35 AM To: Pagurek,Debbie [NCR] Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] SLD pointsymbolizer externalgraphic trouble Pagurek,Debbie [NCR] wrote: > My maps returns fine with a simple getmap request. > > The tmp directory is set to c:/ms4w/tmp/ms_tmp > > Is there a way to check that mapserver is writing to that directory? > Ie if I use mode=map, should it leave a temporary file there? Mode=map > is giving me a map, but isn't leaving a file in that temp directory. > You can use mode=browse and that should create files in the tmp dir. You need to set the template in the web object : WEB TEMPLATE "template.html" template.html should exist but can be empy or have something like this Later, > Debbie > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On Behalf Of Yewondwossen Assefa > Sent: Tuesday, July 26, 2005 4:46 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] SLD pointsymbolizer externalgraphic trouble > > > Debbie, > > > Pagurek,Debbie [NCR] wrote: > >>Assefa, >> >>Are nightly builds available for Windows binaries? >>I changed my sld to show GIF instead of image/gif but it's still not >>working. >> > > I am not sure why It is not working for you. I basically took your > mapfile and change few paths to adapt to my settings. The map file > points to the gmap-ms40 data. The sld I used is basically yours (I > don't think I modified anything). I have attached both files. > > There are no nightly builds although I can put a mapserver 4.7 cvs > version on maptools if you need. > > >>I realized in the examples I sent earlier that my sld didn't contain a >>Geometry tag. What should this field "property name" contain? A name >>of a field in the shapefile? the word "msGeometry"? >> > > > Should not matter. It is not used. > > >>Can you think of anything else I can check on my system to test this? >> >>Am I missing something important in my mapfile? I've tried using my >>own mapfile and also the gmap75_wms.map file that comes with ms4w. >> >>At this point I'm just not getting any sld with an external graphic to >>work. Will keep trying. >> >>Debbie >> > > > Is your map returned with a somple getmap rquest without an sld ? > > I am also assuming that the temporaary directory and path are set > properly in the map file (since the graphic is downloaded and copied > in that directory) > > > > >>------------------- >>Debbie, >> >> I have tested your sld with local data and the only "problem" I >>found was that the format used is image/gif instead >>of gif. I have rechcked the sld specs and it >>specifies that the format should be of MIME type so your sld should be >>valid. I have corrected the test to test for GIF or image/gif (as well >>as PNG and image/png). (related bug is >>http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1430). >> If possible use the latest version from cvs or until you get a new >>build you can use GIF as the value of the format. >> >> Later, >> >>Pagurek,Debbie [NCR] wrote: >> >> >>>I am having trouble with an SLD that should put an externalgraphic at >>>a point. I am getting a blank map and when I do a view source I am >>>seeing Gobbldygook: GIF87aX?? ...etc (this happens if I set >>>imagetype GIF or PNG), and also if I don't set IMAGETYPE at all. An >>>SLD that uses an external graphic for a polygon layer works fine. >>> >>>I am including the sld file and my mapfile as attachments, and the >>>following is the URL I'm using. >>> >>>http://localhost/cgi-bin/mapserv.exe?map=c:\ms4w\apps\chameleon-2.2\c >>>e >>>si\map\pix.map&version=1.1.1&service=wms&request=getmap&layers=poppla >>>c >>>e&sld=http://localhost/chameleon/cesi/sldtest.xml >>> >>>I'm on Windows. >>>MapServer version 4.6.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >>>OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE >>>SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER >>>SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=JPEG INPUT=POSTGIS >>>INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG >>> >>>Anybody have any ideas? Is this a bug? >>> >>>D. Pagurek >>> >>> >>>--------------------------------------------------------------------- >>>- >>>-- >>> >>> >>>>>xmlns="http://www.opengis.net/sld" >>>xmlns:ogc="http://www.opengis.net/ogc" >>>xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>>xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"> >>>dp_generated_sld >>>test sld for external graphic >>>test >>> >>> popplace >>> >>> Cities >>> Cities >>> 1 >>> >>> >>> >>> >>> >>> >>> image/gif >>> >>> 44 >>> >>> >>> >>> >>> >>> >>> >> >> > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From lluisgm at GMAIL.COM Thu Jul 28 11:13:37 2005 From: lluisgm at GMAIL.COM (=?ISO-8859-1?Q?Llu=EDs_Garcia_i_Mestres?=) Date: Thu, 28 Jul 2005 20:13:37 +0200 Subject: transparent symbol Message-ID: Hi list, I'm trying to implement pixmap symbols transparent. I was following the current documentation but it's a litlle confusing with the inde color. In my case, I have a white background that I want to skip. How can I figure out what is my index color for a white background? The outputformat of the map is the following: OUTPUTFORMAT NAME jpeg DRIVER "GD/JPEG" MIMETYPE "image/jpeg" IMAGEMODE RGBA EXTENSION "jpg" TRANSPARENT ON END and the symbol definition SYMBOL NAME 'eolica' TYPE PIXMAP IMAGE 'eolica2.png' TRANSPARENT 1 END -- Llu?s Garcia i Mestres, lluisgm at gmail.com lluisgm at hotmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From douglass_davis at EARTHLINK.NET Thu Jul 28 11:39:21 2005 From: douglass_davis at EARTHLINK.NET (Douglass Davis) Date: Thu, 28 Jul 2005 14:39:21 -0400 Subject: mapserver tif projections Message-ID: Hello All, I just got an elevation tif file (w/aux,prj, and tfw) from the seamless data distribution center: http://seamless.usgs.gov/. I am still trying to understand projections, I read through the tutorial and user manual and looked through the proj4 documentation, but I am still not really sure how to do this. Now, I know it uses Lambert Azimuthal Equal Area Projection. But, how do I represent this projection in a map file, and pass the needed parameters into proj4? I tried putting this in my Raster tif layer: PROJECTION "proj=laea" "lon_0=100.00w" "lat_0=45.00n" END But it didn't work. Can some one help me with getting the correct parameters to put in the map file? In the metadata it has: Spatial_Domain: Bounding_Coordinates: West_Bounding_Coordinate:-84.84957627 East_Bounding_Coordinate:-74.99646893 North_Bounding_Coordinate:37.47563559 South_Bounding_Coordinate:33.16490113 <> <> <> <> Spatial_Reference_Information: Horizontal_Coordinate_System_Definition: Planar: Map_Projection: Map_Projection_Name: Lambert Azimuthal Equal Area Lambert_Azimuthal_Equal_Area: Longitude_of_Projection_Center: -100.00 Latitude_of_Projection_Center: 45.00 False_Easting: 0.0 False_Northing: 0.0 Planar_Coordinate_Information: Planar_Coordinate_Encoding_Method: Row and column Coordinate_Representation: Abscissa_Resolution: 1000.0 Ordinate_Resolution: 1000.0 Planar_Distance_Units: Meters Geodetic_Model: Horizontal_Datum_Name: None Ellipsoid_Name: Sphere Semi-major_Axis: 6370997.0 Denominator_of_Flattening_Ratio: 1.0 -------------- next part -------------- An HTML attachment was scrubbed... URL: From fwarmerdam at GMAIL.COM Thu Jul 28 11:54:48 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 28 Jul 2005 14:54:48 -0400 Subject: mapserver tif projections In-Reply-To: <42E92659.6040902@earthlink.net> Message-ID: On 7/28/05, Douglass Davis wrote: > > Hello All, > > I just got an elevation tif file (w/aux,prj, and tfw) from the seamless > data distribution center: http://seamless.usgs.gov/. I am still trying to > understand projections, I read through the tutorial and user manual and > looked through the proj4 documentation, but I am still not really sure how > to do this. > > Now, I know it uses Lambert Azimuthal Equal Area Projection. But, how do I > represent this projection in a map file, and pass the needed parameters into > proj4? > > I tried putting this in my Raster tif layer: > > PROJECTION > "proj=laea" > "lon_0=100.00w" > "lat_0=45.00n" > END > > But it didn't work. Can some one help me with getting the correct > parameters to put in the map file? ... > Ellipsoid_Name: Sphere Semi-major_Axis: 6370997.0 > Denominator_of_Flattening_Ratio: 1.0 Douglass, In what way did it not work? Try adding "ellps=sphere" to your definition. Your current definition has no earthmodel definition and depending on your setup there may be no default. Note that most projections on a sphere don't map well to conventional ellpisoid coordinate systems. You may find you need to use "ellps=WGS84" instead to get good correspondence. Good luck, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From rick at INNIS.CA Thu Jul 28 12:07:59 2005 From: rick at INNIS.CA (Rick Innis) Date: Thu, 28 Jul 2005 15:07:59 -0400 Subject: [mapserver] Java VM Crashes using the Mapscript API In-Reply-To: <75b4b93e05062807155c297564@mail.gmail.com> Message-ID: Im revisiting this somewhat old thread to contribute a few insights I've found while dealing with the same issue, in the hope it saves someone else time and effort in the future. The thread "Mapscript API: for object manipulation, not object creation?" , from earlier this year, also has some info on this topic. >> >> Christian reported a crash in layerObj.delete() which I >> also detected. >> I think I understood the following: >> >> Let's say, we have an initialized mapObj mO; >> >> layerObj lO = new layerObj(mO); >> // Say lO is the 5th layer now. >> // Now lO.swigCMemOwn == true and >> // lO.swigCPtr points onto the mO.swigCPtr->layers[4] >> >> ... >> // now the mapObj is deleted but the Java-layerObj continues to live. >> // the C-layer-Object mO.swigCPtr->layers[4] will deleted and >> freed also! >> mO.delete() >> // From now on O.swigCPtr points into invalid piece of C-memory. >> ... I also encountered this a few months back but didn't have time to write it up so coherently. One workaround I was given by Sean was to use insertLayer() to add the layer, which makes a copy, allowing the allocated Java object to be disposed of cleanly. This also requires making and inserting styleObj and classObj instances: // initially, layer not associated with any map layerObj myLayer = new layerObj(null); // initialise layer classObj myClass = new classObj(null); styleObj myStyle = new styleObj(null); // initialize style, then insert into class myClass.insertStyle(styleObj, -1); // insert class into layer myLayer.insertClass(myClass, -1); // insert layer into map - makes copy! int ret = map.insertLayer(annos, -1); // get reference to inserted copy myLayer = map.getLayer(i); However, when I started labelling my dynamic layers I found that my labels ended up with a black background. The workaround I found was to define an empty layer in my map, including empty style info, and use cloneLayer() to make copies as needed. The layer definition looks like this: # Blank generic annotation layer LAYER NAME user_layer STATUS OFF TYPE POINT CLASS STYLE COLOR 255 255 255 END LABEL COLOR 255 255 255 END END END To use it, I grab the layer from the map, clone it, initialize it, and insert the clone into the map: layerObj myLayer = map.getLayerByName ("blank_layer").cloneLayer(); // initialise... int ret = map.insertLayer(annos, -1); The layer's type can be changed on the fly, so one definition suffices for all layers. --Rick. From bfraser at GEOANALYTIC.COM Thu Jul 28 12:28:39 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Thu, 28 Jul 2005 13:28:39 -0600 Subject: Slightly off topic: Sounds like Mapserver+GDAL+... Message-ID: This may be of interest to some: A new product from ESRI: http://www.esri.com/software/imageserver/ and move info at: http://www10.giscafe.com/nbc/articles/view_article.php?section=CorpNews&articleid=196297 Brent From fsimon at UNIVALI.BR Thu Jul 28 12:27:26 2005 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Thu, 28 Jul 2005 16:27:26 -0300 Subject: [mapserver] Java VM Crashes using the Mapscript API In-Reply-To: Message-ID: Hi all, I found the same problem with black blackground here some weeks ago, I solved the problem when I defined a blank color objects for backgoundcolor and backgoundshadowcolor. Like: lObjCor = new colorObj(-1, -1, -1, 0); lObjLabel.setBackgroundcolor(lObjCor); lObjLabel.setBackgroundshadowcolor(lObjCor); So, using this way I can define all my layer using JavaMapscript. To check the "mapscript mapfile" you can save it to see all the definitions. Thanks. Fernando Simon Citando Rick Innis : > Im revisiting this somewhat old thread to contribute a few insights > > I've found while dealing with the same issue, in the hope it saves > > someone else time and effort in the future. The thread "Mapscript > > API: for object manipulation, not object creation?" , from earlier > > this year, also has some info on this topic. > > >> > >> Christian reported a crash in layerObj.delete() which I > >> also detected. > >> I think I understood the following: > >> > >> Let's say, we have an initialized mapObj mO; > >> > >> layerObj lO = new layerObj(mO); > >> // Say lO is the 5th layer now. > >> // Now lO.swigCMemOwn == true and > >> // lO.swigCPtr points onto the mO.swigCPtr->layers[4] > >> > >> ... > >> // now the mapObj is deleted but the Java-layerObj continues to > live. > >> // the C-layer-Object mO.swigCPtr->layers[4] will deleted and > >> freed also! > >> mO.delete() > >> // From now on O.swigCPtr points into invalid piece of > C-memory. > >> ... > > I also encountered this a few months back but didn't have time to > > write it up so coherently. One workaround I was given by Sean was > to > use insertLayer() to add the layer, which makes a copy, allowing > the > allocated Java object to be disposed of cleanly. This also requires > > making and inserting styleObj and classObj instances: > > // initially, layer not associated with any map > layerObj myLayer = new layerObj(null); > // initialise layer > classObj myClass = new classObj(null); > styleObj myStyle = new styleObj(null); > // initialize style, then insert into class > myClass.insertStyle(styleObj, -1); > // insert class into layer > myLayer.insertClass(myClass, -1); > // insert layer into map - makes copy! > int ret = map.insertLayer(annos, -1); > // get reference to inserted copy > myLayer = map.getLayer(i); > > > However, when I started labelling my dynamic layers I found that > my > labels ended up with a black background. The workaround I found > was > to define an empty layer in my map, including empty style info, and > > use cloneLayer() to make copies as needed. > > The layer definition looks like this: > > # Blank generic annotation layer > LAYER > NAME user_layer > STATUS OFF > TYPE POINT > CLASS > STYLE > COLOR 255 255 255 > END > LABEL > COLOR 255 255 255 > END > END > END > > To use it, I grab the layer from the map, clone it, initialize it, > > and insert the clone into the map: > > layerObj myLayer = map.getLayerByName > ("blank_layer").cloneLayer(); > // initialise... > int ret = map.insertLayer(annos, -1); > > The layer's type can be changed on the fly, so one definition > suffices for all layers. > > --Rick. > ------------------------------------------------- Univali - Webmail - http://webmail.univali.br From sgillies at FRII.COM Thu Jul 28 12:37:07 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 28 Jul 2005 13:37:07 -0600 Subject: [mapserver] Java VM Crashes using the Mapscript API In-Reply-To: Message-ID: Fernando, This is improper usage and will result in memory leaks. An instance of labelObj already holds references to many allocated colorObjs, and if you bind new instances to the labelObj the originals will not be freed. An example of proper usage is label.color.setRGB(0, 0, 0); All colors should be undefined (-1,-1,-1) by default, so I am at a loss how you get a black label background. Sean On Jul 28, 2005, at 1:27 PM, Fernando Simon wrote: > Hi all, > I found the same problem with black blackground here some weeks > ago, I solved the problem when I defined a blank color objects for > backgoundcolor and backgoundshadowcolor. Like: > lObjCor = new colorObj(-1, -1, -1, 0); > lObjLabel.setBackgroundcolor(lObjCor); > lObjLabel.setBackgroundshadowcolor(lObjCor); > So, using this way I can define all my layer using JavaMapscript. > To check the "mapscript mapfile" you can save it to see all the > definitions. > Thanks. > > > Fernando Simon > > > Citando Rick Innis : > >> Im revisiting this somewhat old thread to contribute a few insights >> >> I've found while dealing with the same issue, in the hope it saves >> >> someone else time and effort in the future. The thread "Mapscript >> >> API: for object manipulation, not object creation?" , from earlier >> >> this year, also has some info on this topic. >> >>>> >>>> Christian reported a crash in layerObj.delete() which I >>>> also detected. >>>> I think I understood the following: >>>> >>>> Let's say, we have an initialized mapObj mO; >>>> >>>> layerObj lO = new layerObj(mO); >>>> // Say lO is the 5th layer now. >>>> // Now lO.swigCMemOwn == true and >>>> // lO.swigCPtr points onto the mO.swigCPtr->layers[4] >>>> >>>> ... >>>> // now the mapObj is deleted but the Java-layerObj continues to >> live. >>>> // the C-layer-Object mO.swigCPtr->layers[4] will deleted and >>>> freed also! >>>> mO.delete() >>>> // From now on O.swigCPtr points into invalid piece of >> C-memory. >>>> ... >> >> I also encountered this a few months back but didn't have time to >> >> write it up so coherently. One workaround I was given by Sean was >> to >> use insertLayer() to add the layer, which makes a copy, allowing >> the >> allocated Java object to be disposed of cleanly. This also requires >> >> making and inserting styleObj and classObj instances: >> >> // initially, layer not associated with any map >> layerObj myLayer = new layerObj(null); >> // initialise layer >> classObj myClass = new classObj(null); >> styleObj myStyle = new styleObj(null); >> // initialize style, then insert into class >> myClass.insertStyle(styleObj, -1); >> // insert class into layer >> myLayer.insertClass(myClass, -1); >> // insert layer into map - makes copy! >> int ret = map.insertLayer(annos, -1); >> // get reference to inserted copy >> myLayer = map.getLayer(i); >> >> >> However, when I started labelling my dynamic layers I found that >> my >> labels ended up with a black background. The workaround I found >> was >> to define an empty layer in my map, including empty style info, and >> >> use cloneLayer() to make copies as needed. >> >> The layer definition looks like this: >> >> # Blank generic annotation layer >> LAYER >> NAME user_layer >> STATUS OFF >> TYPE POINT >> CLASS >> STYLE >> COLOR 255 255 255 >> END >> LABEL >> COLOR 255 255 255 >> END >> END >> END >> >> To use it, I grab the layer from the map, clone it, initialize it, >> >> and insert the clone into the map: >> >> layerObj myLayer = map.getLayerByName >> ("blank_layer").cloneLayer(); >> // initialise... >> int ret = map.insertLayer(annos, -1); >> >> The layer's type can be changed on the fly, so one definition >> suffices for all layers. >> >> --Rick. >> > > > > > ------------------------------------------------- > Univali - Webmail - http://webmail.univali.br > > -- Sean Gillies sgillies at frii dot com http://zcologia.com From sgillies at FRII.COM Thu Jul 28 12:41:14 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 28 Jul 2005 13:41:14 -0600 Subject: Slightly off topic: Sounds like Mapserver+GDAL+... In-Reply-To: Message-ID: On Jul 28, 2005, at 1:28 PM, Brent Fraser wrote: > This may be of interest to some: > > A new product from ESRI: > http://www.esri.com/software/imageserver/ > and move info at: > > http://www10.giscafe.com/nbc/articles/view_article.php? > section=CorpNews&articleid=196297 > > Brent > > GDAL, at least, according to this: http://www.directionsmag.com/blog/archives/427-ESRI-UC-Introduction-to- the-new-ESRI-Image-Server-presented-by-Dave-McGuire-and-Peter- Becker.html Sean -- Sean Gillies sgillies at frii dot com http://zcologia.com From douglass_davis at EARTHLINK.NET Thu Jul 28 12:49:40 2005 From: douglass_davis at EARTHLINK.NET (Douglass Davis) Date: Thu, 28 Jul 2005 15:49:40 -0400 Subject: mapserver tif projections In-Reply-To: <931f8ea9050728115470ddd5c@mail.gmail.com> Message-ID: Frank Warmerdam wrote: >Douglass, > >In what way did it not work? > >Try adding "ellps=sphere" to your definition. Your current definition has >no earthmodel definition and depending on your setup there may be no >default. > >Note that most projections on a sphere don't map well to conventional >ellpisoid coordinate systems. You may find you need to use "ellps=WGS84" >instead to get good correspondence. > >Good luck, > > Thanks. Now I have: LAYER NAME elevation DATA "elevation/05539624.tif" TYPE RASTER STATUS ON PROJECTION "proj=laea" "lon_0=100w" "lat_0=45n" "ellps=sphere" END END Before, it gave an error when trying to do the projection. Warning: [MapServer Error]: msProcessProjection(): major axis or radius = 0 or not given in c:\program files\apache group\apache\htdocs\mapserver\nc.php on line 4 Now I get a map and that error went away (progress :-) . But, still, no tif layer. my (lat/lon) extent for the whole thing is: EXTENT -85 32 -75 38 Should the extent be in meters? Isn't putting the projection in the layer supposed to make that transformation? All of my other layers just use lat/lon not LAEA and they work fine. So, I'm mixing two types of coordinates here, and it's still a mystery to me as far as how this is supposed to work. Spatial_Domain: Bounding_Coordinates: West_Bounding_Coordinate:-84.84957627 East_Bounding_Coordinate:-74.99646893 North_Bounding_Coordinate:37.47563559 South_Bounding_Coordinate:33.16490113 <> <> <> <> Spatial_Reference_Information: Horizontal_Coordinate_System_Definition: Planar: Map_Projection: Map_Projection_Name: Lambert Azimuthal Equal Area Lambert_Azimuthal_Equal_Area: Longitude_of_Projection_Center: -100.00 Latitude_of_Projection_Center: 45.00 False_Easting: 0.0 False_Northing: 0.0 Planar_Coordinate_Information: Planar_Coordinate_Encoding_Method: Row and column Coordinate_Representation: Abscissa_Resolution: 1000.0 Ordinate_Resolution: 1000.0 Planar_Distance_Units: Meters Geodetic_Model: Horizontal_Datum_Name: None Ellipsoid_Name: Sphere Semi-major_Axis: 6370997.0 Denominator_of_Flattening_Ratio: 1.0 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ealpert at DIGITALGLOBE.COM Thu Jul 28 12:55:28 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Thu, 28 Jul 2005 13:55:28 -0600 Subject: mapserver tif projections Message-ID: You should be using the units of the laea projection rather than decimal degrees to set the EXTENT. It's very difficult to know from a lat/long box what the output of the projection will be. It's best to use the units of the projected coordinate system. -e EXTENT -85 32 -75 38 Should the extent be in meters? Isn't putting the projection in the layer supposed to make that transformation? All of my other layers just use lat/lon not LAEA and they work fine. So, I'm mixing two types of coordinates here, and it's still a mystery to me as far as how this is supposed to work. -------------- next part -------------- An HTML attachment was scrubbed... URL: From fsimon at UNIVALI.BR Thu Jul 28 12:59:20 2005 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Thu, 28 Jul 2005 16:59:20 -0300 Subject: [mapserver] Java VM Crashes using the Mapscript API In-Reply-To: Message-ID: Hi Sean, Thanks for your reply, I will check my code to improve it with your hints. The blank backgound appear when I define a labelobject by hand using JavaMapscript and set the it (setLabel) to my class. If I save the "mapscript mapfile" the label appear with a black definition for background. I solve this problem using the way that I wrote in the last e-mail. Any hints why occur this black backgound? Thanks. Fernando Simon Citando Sean Gillies : > Fernando, > > This is improper usage and will result in memory leaks. An instance > of > labelObj already holds references to many allocated colorObjs, and > if > you bind new instances to the labelObj the originals will not be > freed. > An example of proper usage is > > label.color.setRGB(0, 0, 0); > > All colors should be undefined (-1,-1,-1) by default, so I am at a > loss > how you get a black label background. > > Sean > > On Jul 28, 2005, at 1:27 PM, Fernando Simon wrote: > > > Hi all, > > I found the same problem with black blackground here some > weeks > > ago, I solved the problem when I defined a blank color objects > for > > backgoundcolor and backgoundshadowcolor. Like: > > lObjCor = new colorObj(-1, -1, -1, 0); > > lObjLabel.setBackgroundcolor(lObjCor); > > lObjLabel.setBackgroundshadowcolor(lObjCor); > > So, using this way I can define all my layer using > JavaMapscript. > > To check the "mapscript mapfile" you can save it to see all the > > definitions. > > Thanks. > > > > > > Fernando Simon > > > > > > Citando Rick Innis : > > > >> Im revisiting this somewhat old thread to contribute a few > insights > >> > >> I've found while dealing with the same issue, in the hope it > saves > >> > >> someone else time and effort in the future. The thread > "Mapscript > >> > >> API: for object manipulation, not object creation?" , from > earlier > >> > >> this year, also has some info on this topic. > >> > >>>> > >>>> Christian reported a crash in layerObj.delete() which I > >>>> also detected. > >>>> I think I understood the following: > >>>> > >>>> Let's say, we have an initialized mapObj mO; > >>>> > >>>> layerObj lO = new layerObj(mO); > >>>> // Say lO is the 5th layer now. > >>>> // Now lO.swigCMemOwn == true and > >>>> // lO.swigCPtr points onto the mO.swigCPtr->layers[4] > >>>> > >>>> ... > >>>> // now the mapObj is deleted but the Java-layerObj continues > to > >> live. > >>>> // the C-layer-Object mO.swigCPtr->layers[4] will deleted and > >>>> freed also! > >>>> mO.delete() > >>>> // From now on O.swigCPtr points into invalid piece of > >> C-memory. > >>>> ... > >> > >> I also encountered this a few months back but didn't have time > to > >> > >> write it up so coherently. One workaround I was given by Sean > was > >> to > >> use insertLayer() to add the layer, which makes a copy, > allowing > >> the > >> allocated Java object to be disposed of cleanly. This also > requires > >> > >> making and inserting styleObj and classObj instances: > >> > >> // initially, layer not associated with any > map > >> layerObj myLayer = new layerObj(null); > >> // initialise layer > >> classObj myClass = new classObj(null); > >> styleObj myStyle = new styleObj(null); > >> // initialize style, then insert into class > >> myClass.insertStyle(styleObj, -1); > >> // insert class into layer > >> myLayer.insertClass(myClass, -1); > >> // insert layer into map - makes copy! > >> int ret = map.insertLayer(annos, -1); > >> // get reference to inserted copy > >> myLayer = map.getLayer(i); > >> > >> > >> However, when I started labelling my dynamic layers I found > that > >> my > >> labels ended up with a black background. The workaround I > found > >> was > >> to define an empty layer in my map, including empty style info, > and > >> > >> use cloneLayer() to make copies as needed. > >> > >> The layer definition looks like this: > >> > >> # Blank generic annotation layer > >> LAYER > >> NAME user_layer > >> STATUS OFF > >> TYPE POINT > >> CLASS > >> STYLE > >> COLOR 255 255 255 > >> END > >> LABEL > >> COLOR 255 255 255 > >> END > >> END > >> END > >> > >> To use it, I grab the layer from the map, clone it, initialize > it, > >> > >> and insert the clone into the map: > >> > >> layerObj myLayer = map.getLayerByName > >> ("blank_layer").cloneLayer(); > >> // initialise... > >> int ret = map.insertLayer(annos, -1); > >> > >> The layer's type can be changed on the fly, so one definition > >> suffices for all layers. > >> > >> --Rick. > >> > > > > > > > > > > ------------------------------------------------- > > Univali - Webmail - http://webmail.univali.br > > > > > -- > Sean Gillies > sgillies at frii dot com > http://zcologia.com > ------------------------------------------------- Univali - Webmail - http://webmail.univali.br From TODD.M.BRENNINGMEYER at SAIC.COM Thu Jul 28 13:06:28 2005 From: TODD.M.BRENNINGMEYER at SAIC.COM (Brenningmeyer, Todd M.) Date: Thu, 28 Jul 2005 13:06:28 -0700 Subject: Slightly off topic: Sounds like Maps erver+GDAL+... Message-ID: This sounds like promptserver which is a product that has been out for a couple of years. Did ESRI purchase promptserver or just borrow their ideas? Todd -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Brent Fraser Sent: Thursday, July 28, 2005 2:29 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Slightly off topic: Sounds like Mapserver+GDAL+... This may be of interest to some: A new product from ESRI: http://www.esri.com/software/imageserver/ and move info at: http://www10.giscafe.com/nbc/articles/view_article.php?section=CorpNews&arti cleid=196297 Brent From sgillies at FRII.COM Thu Jul 28 13:15:56 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 28 Jul 2005 14:15:56 -0600 Subject: [mapserver] Java VM Crashes using the Mapscript API In-Reply-To: Message-ID: Now I understand. You should never bind a new labelObj to a classObj. All the MapServer classes exist primarily to support the CGI mapserv program, and therefore are complete. An new instance of classObj, for example, already contains a labelObj attribute named "label". To set a class's label color, you should do this class.label.color.setRGB(red, green, blue) Sean On Jul 28, 2005, at 1:59 PM, Fernando Simon wrote: > Hi Sean, > Thanks for your reply, I will check my code to improve it with > your hints. The blank backgound appear when I define a labelobject by > hand using JavaMapscript and set the it (setLabel) to my class. > If I save the "mapscript mapfile" the label appear with a black > definition for background. I solve this problem using the way that I > wrote in the last e-mail. Any hints why occur this black backgound? > Thanks. > > Fernando Simon > > Citando Sean Gillies : > >> Fernando, >> >> This is improper usage and will result in memory leaks. An instance >> of >> labelObj already holds references to many allocated colorObjs, and >> if >> you bind new instances to the labelObj the originals will not be >> freed. >> An example of proper usage is >> >> label.color.setRGB(0, 0, 0); >> >> All colors should be undefined (-1,-1,-1) by default, so I am at a >> loss >> how you get a black label background. >> >> Sean >> >> On Jul 28, 2005, at 1:27 PM, Fernando Simon wrote: >> >>> Hi all, >>> I found the same problem with black blackground here some >> weeks >>> ago, I solved the problem when I defined a blank color objects >> for >>> backgoundcolor and backgoundshadowcolor. Like: >>> lObjCor = new colorObj(-1, -1, -1, 0); >>> lObjLabel.setBackgroundcolor(lObjCor); >>> lObjLabel.setBackgroundshadowcolor(lObjCor); >>> So, using this way I can define all my layer using >> JavaMapscript. >>> To check the "mapscript mapfile" you can save it to see all the >>> definitions. >>> Thanks. >>> >>> >>> Fernando Simon >>> >>> >>> Citando Rick Innis : >>> >>>> Im revisiting this somewhat old thread to contribute a few >> insights >>>> >>>> I've found while dealing with the same issue, in the hope it >> saves >>>> >>>> someone else time and effort in the future. The thread >> "Mapscript >>>> >>>> API: for object manipulation, not object creation?" , from >> earlier >>>> >>>> this year, also has some info on this topic. >>>> >>>>>> >>>>>> Christian reported a crash in layerObj.delete() which I >>>>>> also detected. >>>>>> I think I understood the following: >>>>>> >>>>>> Let's say, we have an initialized mapObj mO; >>>>>> >>>>>> layerObj lO = new layerObj(mO); >>>>>> // Say lO is the 5th layer now. >>>>>> // Now lO.swigCMemOwn == true and >>>>>> // lO.swigCPtr points onto the mO.swigCPtr->layers[4] >>>>>> >>>>>> ... >>>>>> // now the mapObj is deleted but the Java-layerObj continues >> to >>>> live. >>>>>> // the C-layer-Object mO.swigCPtr->layers[4] will deleted and >>>>>> freed also! >>>>>> mO.delete() >>>>>> // From now on O.swigCPtr points into invalid piece of >>>> C-memory. >>>>>> ... >>>> >>>> I also encountered this a few months back but didn't have time >> to >>>> >>>> write it up so coherently. One workaround I was given by Sean >> was >>>> to >>>> use insertLayer() to add the layer, which makes a copy, >> allowing >>>> the >>>> allocated Java object to be disposed of cleanly. This also >> requires >>>> >>>> making and inserting styleObj and classObj instances: >>>> >>>> // initially, layer not associated with any >> map >>>> layerObj myLayer = new layerObj(null); >>>> // initialise layer >>>> classObj myClass = new classObj(null); >>>> styleObj myStyle = new styleObj(null); >>>> // initialize style, then insert into class >>>> myClass.insertStyle(styleObj, -1); >>>> // insert class into layer >>>> myLayer.insertClass(myClass, -1); >>>> // insert layer into map - makes copy! >>>> int ret = map.insertLayer(annos, -1); >>>> // get reference to inserted copy >>>> myLayer = map.getLayer(i); >>>> >>>> >>>> However, when I started labelling my dynamic layers I found >> that >>>> my >>>> labels ended up with a black background. The workaround I >> found >>>> was >>>> to define an empty layer in my map, including empty style info, >> and >>>> >>>> use cloneLayer() to make copies as needed. >>>> >>>> The layer definition looks like this: >>>> >>>> # Blank generic annotation layer >>>> LAYER >>>> NAME user_layer >>>> STATUS OFF >>>> TYPE POINT >>>> CLASS >>>> STYLE >>>> COLOR 255 255 255 >>>> END >>>> LABEL >>>> COLOR 255 255 255 >>>> END >>>> END >>>> END >>>> >>>> To use it, I grab the layer from the map, clone it, initialize >> it, >>>> >>>> and insert the clone into the map: >>>> >>>> layerObj myLayer = map.getLayerByName >>>> ("blank_layer").cloneLayer(); >>>> // initialise... >>>> int ret = map.insertLayer(annos, -1); >>>> >>>> The layer's type can be changed on the fly, so one definition >>>> suffices for all layers. >>>> >>>> --Rick. >>>> >>> >>> >>> >>> >>> ------------------------------------------------- >>> Univali - Webmail - http://webmail.univali.br >>> >>> >> -- >> Sean Gillies >> sgillies at frii dot com >> http://zcologia.com >> > > > > > ------------------------------------------------- > Univali - Webmail - http://webmail.univali.br > From rick at INNIS.CA Thu Jul 28 13:43:40 2005 From: rick at INNIS.CA (Rick Innis) Date: Thu, 28 Jul 2005 16:43:40 -0400 Subject: [mapserver] Java VM Crashes using the Mapscript API In-Reply-To: Message-ID: On Jul 28, 2005, at 16:15, Sean Gillies wrote: > All the MapServer classes exist primarily to support the CGI > mapserv program, and therefore are complete. An new instance of > classObj, for example, already contains a labelObj attribute named > "label". To set a class's label color, you should do this > > class.label.color.setRGB(red, green, blue) > So to get rid of the black background, would it be legitimate to do this? class.getLabel().getBackgroundcolor().setRGB(-1, -1, -1); class.getLabel().getBackgroundshadowcolor().setRGB(-1, -1, -1); --Rick. From sgillies at FRII.COM Thu Jul 28 14:02:06 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 28 Jul 2005 15:02:06 -0600 Subject: [mapserver] Java VM Crashes using the Mapscript API In-Reply-To: Message-ID: On Jul 28, 2005, at 2:43 PM, Rick Innis wrote: > On Jul 28, 2005, at 16:15, Sean Gillies wrote: > >> All the MapServer classes exist primarily to support the CGI >> mapserv program, and therefore are complete. An new instance of >> classObj, for example, already contains a labelObj attribute named >> "label". To set a class's label color, you should do this >> >> class.label.color.setRGB(red, green, blue) >> > > So to get rid of the black background, would it be legitimate to do > this? > > class.getLabel().getBackgroundcolor().setRGB(-1, -1, -1); > class.getLabel().getBackgroundshadowcolor().setRGB(-1, -1, -1); > > --Rick. > > Rick, I don't think that is necessary for a classObj's natural label member. Try this classObj co = new classObj(null); co.getLabel().getBackgroundcolor().getRed() .... should be -1 On the other hand, if you do this labelObj lo = new labelObj(); lo.getBackgroundcolor().getRed() .... will be 0 The second example is improper usage, the label's colors never get properly initialized in this case. Users ought to be better protected from these sharp edges of mapscript, but alas. Sean -- Sean Gillies sgillies at frii dot com http://zcologia.com From gmanepal at GMAIL.COM Thu Jul 28 14:42:54 2005 From: gmanepal at GMAIL.COM (Giridhar Manepalli) Date: Thu, 28 Jul 2005 17:42:54 -0400 Subject: Mapscript Zooming In-Reply-To: <6d675eda050722145164d2a89d@mail.gmail.com> Message-ID: Any Ideas? On 7/22/05, Giridhar Manepalli wrote: > Hello All, > When I zoom using functions like zoomscale etc (php mapscript), it > zooms well. The image after the zoom contains the zoomed map but the > extent of the map is somewhat reduced. I could not figure out what is > really affecting the extent. > > Now, how is it possible to have the entire extent at the specified > zoom level. It really doesnot matter if the size of the image grows > bigger as long as I know the size of the image created. > > Any suggestions? > > P.S. When I say I need the entire extent, I need the entire map to be > displayed at the specified zoom level. I do not care about the output > size > From douglass_davis at EARTHLINK.NET Thu Jul 28 16:08:41 2005 From: douglass_davis at EARTHLINK.NET (Douglass Davis) Date: Thu, 28 Jul 2005 19:08:41 -0400 Subject: mapserver tif projections In-Reply-To: <1FB6937A87F9074C9A2B8F9D9137EB1603A8CC96@COMAIL01.digitalglobe.com> Message-ID: Ethan Alpert wrote: > You should be using the units of the laea projection rather than > decimal degrees to set the EXTENT. > > It's very difficult to know from a lat/long box what the output of the > projection will be. It's best to use the units of the projected > coordinate system. > > -e Thanks. That worked.... For all the other newbies, and since this was so confusing to me, I thought I would post the solution for people to google later. My previous extent was in lat/lon EXTENT -85 32 -75 3 Since I just wanted the North Carolina area, so I used the cs2cs conversion program to convert from Lat Lon to Lambert Azimuthal Equal Area Projection coordinates. C:\mapserver\data>cs2cs +proj=latlong +datum=WGS84 +to +proj=laea +ellps=clrk66 +lat_0=45 +lon_0=-100 -85 32 <---type lower left coords here 1417368.72 -1316195.76 0.000 -75 38 <--- type upper right coords here 2159115.16 -450114.08 0.000 New extent is EXTENT 1417368.72 -1316195.76 2159115.16 -450114.08 # Projection (global, in Map object) PROJECTION # Projection parameters can be defined in two ways... # This is the traditional Proj.4 definition of Lambert Azimuthal Equal-Area # projection for the Continental U.S. "proj=laea" "ellps=clrk66" "lat_0=45" "lon_0=-100" END # My tif layer: LAYER NAME elevation DATA "elevation/05539624.tif" TYPE RASTER STATUS ON END # Another layer with the a projection: LAYER NAME counties DATA "counties/co37_d00" TYPE POLYGON STATUS ON CLASSITEM "STATE" CLASS NAME counties EXPRESSION "37" STYLE COLOR -1 -1 -1 OUTLINECOLOR 5 5 5 END END PROJECTION "init=epsg:4326" END END -- PHP Stuff: http://www.douglassdavis.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From my_massoo at LYCOS.COM Thu Jul 28 21:56:57 2005 From: my_massoo at LYCOS.COM (prashant n) Date: Thu, 28 Jul 2005 23:56:57 -0500 Subject: Installation Message-ID: hi list, is it possible to publish this document in either pdf / ps / open office format so that everyone can have a look at this and follow the instructions. Mr.Till Adams, can you publish this as it would be great help to mapserver newbees like me, who often run into installation problems Thanks & Regards Shann ----- Original Message ----- From: "Till Adams" To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Installation Date: Wed, 27 Jul 2005 16:24:57 +0200 > > Geraint Lee wrote: > > Till Adams wrote: > > > >> Geraint Lee wrote: > >> > >>> Hey all, > >>> > >>> I've been trying to install mapserver for several days now, coming > >>> accross a number of installation problems (with other programs like gd, > >>> jpeg-2b...) which i've overcome... now i'm stuck on mapserver. > >>> > >>> gd, jpeg, freetype2, libiconv and libpng are all installed on the server > >>> (FreeBSD 4.11)... anyway, here's the output from: > >>> ./configure --with-png=/usr/local --with-jpeg=/usr/local > >>> --with-freetype=/usr/local --without-xpm --with-libiconv=/usr/local > >>> --with-gd=/usr/local > >>> -- ... > >>> configure: checking where FreeType 2.x is installed... > >>> using libfreetype from -L/usr/local/lib -Wl,--rpath > >>> -Wl,/usr/local/lib -lfreetype -lz > >>> checking for FT_Init_FreeType in -lfreetype... no > >>> using libfreetype -L/usr/local/lib -Wl,--rpath > >>> -Wl,/usr/local/lib -lfreetype -lz from system libs. > >>> configure: checking where Zlib is installed... > >>> checking for zlibVersion in -lz... yes > >>> using libz from system libs. > >>> configure: checking where PNG is installed... > >>> using libpng from -L/usr/local/lib64 -lpng > >>> configure: checking whether we should include JPEG support... > >>> using libjpeg from system -L/usr/local/lib64 -ljpeg > >>> configure: checking where libiconv is installed... > >>> checking for iconv_open in -lc... no > >>> checking for libiconv_open in -liconv... yes > >>> using libiconv from -L/usr/local/lib64 -liconv > >>> libiconv found. Enabling internationalization (-DUSE_ICONV) > >>> configure: checking for GD 2.0.12 or higher... > >>> checking for gdImageSetAntiAliased in -lgd... no > >>> configure: checking whether GD needs libiconv... > >>> checking for gdImageSetAntiAliased in -lgd... no > >>> configure: error: Could not find gd.h or libgd.a/libgd.so in > >>> /usr/local. Make sure GD 2.0.12 or higher is compiled before calling > >>> configure. You may also get this error if you didn't specify the > >>> appropriate location for one of GD's dependencies (freetype, libpng, > >>> libjpeg or libiconv). > >>> -- all of those files exist in /usr/local/lib and /local - does anyone have > >>> any suggestions at all as to what the problem may be. > >>> > >>> Thanks > >>> > >>> Geraint > >> > >> > >> > >> > >> Geraint, > >> > >> which OS (Debian Linux, Suse, edHat, etc.) do you use? > >> > >> We have several step-to-step descriptions (sorry for not making > >> them open to everybody till now) for Win, Suse 9.x, Debian Woody > >> and Sarge, Mandrake, RedHat and FreeBSD. I may send you the > >> appropriate for you. > >> > >> Fiorst of all - the easiest may be just to try a > >> > >> # /sbin/ldconfig /usr/local/lib -v > >> > >> and > >> > >> # /sbin/ldconfig /local -v > >> > >> to make the libs known to your system. Also add these pathes to > >> the file /etc/ld.so.config, so you don't have to do this every > >> time you reboot. > >> > >> Greetings from Bonn, Till > >> > >> > > Hi, > > > > i'm running FreeBSD-4.11. > > > > i've tried /sbin/ldconfig -v /usr/local/lib with no luck > > > > i would appreciate it if you could send the installation > > instructions for freebsd. > > > > Thanks > > > > Geraint > > > Geraint, > > it's OpenOffice format - hope you may read this - if there are any > comments, please add and send it back > > Send it in a minute direct, so I don't bory this list with > attaschments - have fun! Till > > -- Mit freundlichen Gr?ssen aus Bonn, > > Till Adams > > ****************************************** > * released: AmeiN! ArcMap-Export-2-UMN * > * LiveLinux 'WebGIS on CD' * > * http://www.terrestris.de * > ****************************************** > > ------------------------------------------ > > Dipl. Geogr. Till Adams > terrestris, H. Paulsen& T. Adams GbR > Siemensstr. 8 * 53121 Bonn > Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 > info at terrestris.de * http://www.terrestris.de -- _______________________________________________ NEW! Lycos Dating Search. The only place to search multiple dating sites at once. http://datingsearch.lycos.com From adams at TERRESTRIS.DE Fri Jul 29 02:33:01 2005 From: adams at TERRESTRIS.DE (Till Adams) Date: Fri, 29 Jul 2005 11:33:01 +0200 Subject: Installation In-Reply-To: <20050729045657.A5EF3E5BC7@ws7-2.us4.outblaze.com> Message-ID: prashant n wrote: > hi list, > > is it possible to publish this document in either pdf / ps / open office format so that everyone can have a look at this and follow the instructions. > Mr.Till Adams, can you publish this as it would be great help to mapserver newbees like me, who often run into installation problems > > Thanks & Regards > Shann > > ----- Original Message ----- > From: "Till Adams" > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Installation > Date: Wed, 27 Jul 2005 16:24:57 +0200 > > >>Geraint Lee wrote: >> >>>Till Adams wrote: >>> >>> >>>>Geraint Lee wrote: >>>> >>>> >>>>>Hey all, >>>>> >>>>>I've been trying to install mapserver for several days now, coming >>>>>accross a number of installation problems (with other programs like gd, >>>>>jpeg-2b...) which i've overcome... now i'm stuck on mapserver. >>>>> >>>>>gd, jpeg, freetype2, libiconv and libpng are all installed on the server >>>>>(FreeBSD 4.11)... anyway, here's the output from: >>>>>./configure --with-png=/usr/local --with-jpeg=/usr/local >>>>>--with-freetype=/usr/local --without-xpm --with-libiconv=/usr/local >>>>>--with-gd=/usr/local >>>>>-- ... >>>>>configure: checking where FreeType 2.x is installed... >>>>> using libfreetype from -L/usr/local/lib -Wl,--rpath >>>>>-Wl,/usr/local/lib -lfreetype -lz >>>>>checking for FT_Init_FreeType in -lfreetype... no >>>>> using libfreetype -L/usr/local/lib -Wl,--rpath >>>>>-Wl,/usr/local/lib -lfreetype -lz from system libs. >>>>>configure: checking where Zlib is installed... >>>>>checking for zlibVersion in -lz... yes >>>>> using libz from system libs. >>>>>configure: checking where PNG is installed... >>>>> using libpng from -L/usr/local/lib64 -lpng >>>>>configure: checking whether we should include JPEG support... >>>>> using libjpeg from system -L/usr/local/lib64 -ljpeg >>>>>configure: checking where libiconv is installed... >>>>>checking for iconv_open in -lc... no >>>>>checking for libiconv_open in -liconv... yes >>>>> using libiconv from -L/usr/local/lib64 -liconv >>>>> libiconv found. Enabling internationalization (-DUSE_ICONV) >>>>>configure: checking for GD 2.0.12 or higher... >>>>>checking for gdImageSetAntiAliased in -lgd... no >>>>>configure: checking whether GD needs libiconv... >>>>>checking for gdImageSetAntiAliased in -lgd... no >>>>>configure: error: Could not find gd.h or libgd.a/libgd.so in >>>>>/usr/local. Make sure GD 2.0.12 or higher is compiled before calling >>>>>configure. You may also get this error if you didn't specify the >>>>>appropriate location for one of GD's dependencies (freetype, libpng, >>>>>libjpeg or libiconv). >>>>>-- all of those files exist in /usr/local/lib and /local - does anyone have >>>>>any suggestions at all as to what the problem may be. >>>>> >>>>>Thanks >>>>> >>>>>Geraint >>>> >>>> >>>> >>>> >>>>Geraint, >>>> >>>>which OS (Debian Linux, Suse, edHat, etc.) do you use? >>>> >>>>We have several step-to-step descriptions (sorry for not making >>>>them open to everybody till now) for Win, Suse 9.x, Debian Woody >>>>and Sarge, Mandrake, RedHat and FreeBSD. I may send you the >>>>appropriate for you. >>>> >>>>Fiorst of all - the easiest may be just to try a >>>> >>>># /sbin/ldconfig /usr/local/lib -v >>>> >>>>and >>>> >>>># /sbin/ldconfig /local -v >>>> >>>>to make the libs known to your system. Also add these pathes to >>>>the file /etc/ld.so.config, so you don't have to do this every >>>>time you reboot. >>>> >>>>Greetings from Bonn, Till >>>> >>>> >>> >>>Hi, >>> >>>i'm running FreeBSD-4.11. >>> >>>i've tried /sbin/ldconfig -v /usr/local/lib with no luck >>> >>>i would appreciate it if you could send the installation >>>instructions for freebsd. >>> >>>Thanks >>> >>>Geraint >>> >> >>Geraint, >> >>it's OpenOffice format - hope you may read this - if there are any >>comments, please add and send it back >> >>Send it in a minute direct, so I don't bory this list with >>attaschments - have fun! Till >> >>-- Mit freundlichen Gr?ssen aus Bonn, >> >>Till Adams >> >>****************************************** >>* released: AmeiN! ArcMap-Export-2-UMN * >>* LiveLinux 'WebGIS on CD' * >>* http://www.terrestris.de * >>****************************************** >> >>------------------------------------------ >> >>Dipl. Geogr. Till Adams >>terrestris, H. Paulsen& T. Adams GbR >>Siemensstr. 8 * 53121 Bonn >>Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 >>info at terrestris.de * http://www.terrestris.de > > > Dear Prashant, we will put these documents on the NEW mapserver website as Howto's. I think they will be there in the next two weeks. I send them to you personally now. Cheers, Till -- Mit freundlichen Gr?ssen aus Bonn, Till Adams ****************************************** * released: AmeiN! ArcMap-Export-2-UMN * * LiveLinux 'WebGIS on CD' * * http://www.terrestris.de * ****************************************** ------------------------------------------ Dipl. Geogr. Till Adams terrestris, H. Paulsen& T. Adams GbR Siemensstr. 8 * 53121 Bonn Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 info at terrestris.de * http://www.terrestris.de From adams at TERRESTRIS.DE Fri Jul 29 02:41:00 2005 From: adams at TERRESTRIS.DE (Till Adams) Date: Fri, 29 Jul 2005 11:41:00 +0200 Subject: New Mapserver page Message-ID: Dear guys developing the new Website. Good job!! But ... I want to participate, jut tried, but in the moment there seems to be a problem with the disk-space: I tried to insert a new HowTo new (ovf file with mysql-odbc connect on linux - horrable!!) but I couldn't do anything, because I always got them essage: Error Type IOError Error Value [Errno 28] No space left on device Thanks & have a nice weekend, Till -- Mit freundlichen Gr?ssen aus Bonn, Till Adams ****************************************** * released: AmeiN! ArcMap-Export-2-UMN * * LiveLinux 'WebGIS on CD' * * http://www.terrestris.de * ****************************************** ------------------------------------------ Dipl. Geogr. Till Adams terrestris, H. Paulsen& T. Adams GbR Siemensstr. 8 * 53121 Bonn Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 info at terrestris.de * http://www.terrestris.de From mvanrensburgnews at GMAIL.COM Fri Jul 29 03:02:41 2005 From: mvanrensburgnews at GMAIL.COM (magnus gmail) Date: Fri, 29 Jul 2005 12:02:41 +0200 Subject: Labeling Question Message-ID: Hi, First question: Does mapserver "label collision mediation" work per layer or is it done accross all the layers in the map? Second question: When you add a wms layer to a map file, in what format is the data from that wms service for that layer received? Is it in gml (vector data) or is it an image of the extent requested? Does mapserver do image composition from wms layers in a map or does it render the vector data from that layer on the server side? Sorry about all the compound questions. Hope you can inlighten me. Magnus Janse van Rensburg www.AgileWorks.co.za -------------- next part -------------- An HTML attachment was scrubbed... URL: From akoel at YAHOO.COM Fri Jul 29 03:19:35 2005 From: akoel at YAHOO.COM (akoel) Date: Fri, 29 Jul 2005 05:19:35 -0500 Subject: POST method to mapserv Message-ID: hi. I want to call the mapserv with POST method (becuse I have a long parameter list) from a php script. To do this I used the fsockopen() function. It almost worked, but... I got back the html page with some strange numbers and characters in it. randomly... It's really annoying. I cann't handle it and I couldn't fint the answer. has anybody get any idea what went wrong? I insert the important part of the source here n"; }else{ fputs($fp, $request); while(!feof($fp)) { echo fgets($fp, 2048); } fclose($fp); } ?> thanks akoel From BEN at SYNCERA-ITSOLUTIONS.NL Fri Jul 29 03:54:46 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri, 29 Jul 2005 12:54:46 +0200 Subject: Labeling Question Message-ID: I don't know the answer to your first question. But re question 2. WMS format can be an image format, so eg png or gif. Depends on what the WMS server supports, this is usually a list of available formats. Which one Mapserver uses is determined by the wms_format METADATA, see also: http://mapserver.gis.umn.edu/doc46/wms-client-howto.html Only WFS, ie Web Feature Service, provides GML and so actual features. They can be rendered then using Mapserver STYLES just as you would render shapefiles. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> magnus gmail 07/29/05 12:02pm >>> Hi, First question: Does mapserver "label collision mediation" work per layer or is it done accross all the layers in the map? Second question: When you add a wms layer to a map file, in what format is the data from that wms service for that layer received? Is it in gml (vector data) or is it an image of the extent requested? Does mapserver do image composition from wms layers in a map or does it render the vector data from that layer on the server side? Sorry about all the compound questions. Hope you can inlighten me. Magnus Janse van Rensburg www.AgileWorks.co.za From woodbri at SWOODBRIDGE.COM Fri Jul 29 05:21:52 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 29 Jul 2005 08:21:52 -0400 Subject: Labeling Question In-Reply-To: <003701c59424$aaa10520$1582320a@teora> Message-ID: magnus gmail wrote: > Hi, > > First question: > Does mapserver *"label collision mediation" *work per layer or is it > done accross all the layers in the map? It is done across all labels the are put in the label cache. This basically means Yes across all layers in the map. The priority is based on last into the cache is first out. The idea being that as you draw layers from the top of the mapfile to the bottom of the mapfile you are imaging the most important stuff last on the upper most visual layer of the map. These last layers being most important get their labels rendered first. As more and more labels get draw there is less and less free space for labels from the lower (less important layers so they tend to get bumped off the map. You a little control over this if you are willing to split rendering and annotation of a layer into two layers at the cost of scanning that data twice. Then you can place the annotation layer higher in the layer stack to get higher priority. -Steve W. From fsimon at UNIVALI.BR Fri Jul 29 08:20:07 2005 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Fri, 29 Jul 2005 12:20:07 -0300 Subject: [mapserver] Java VM Crashes using the Mapscript API In-Reply-To: Message-ID: Sean, Thanks for your reply. Now, after your hints, I have some doubts, using SWIG (Java support) if I do this code: lObjLabel = lObjClass.getLabel(); And after I change some attributes for the lObjLabel, these changes will affect the lObjClass.label? Is it the same objects, lObjLabel reference the same that lObjClass.getLabel(), or is a new copy? After I change the attributes I need to do a setLabel? The other doubt is about the delete() function for the objects. If I call this function the objects (in JavaSwig) will be release or clean the objects? In the lObjLabel, this function will be clean the lObjClass.label? The last doubt :) what is the objects that exist by default when I create a new class object or layer object? Thanks Fernando Simon Citando Sean Gillies : > Now I understand. You should never bind a new labelObj to a > classObj. > All the MapServer classes exist primarily to support the CGI > mapserv > program, and therefore are complete. An new instance of classObj, > for > example, already contains a labelObj attribute named "label". To > set a > class's label color, you should do this > > class.label.color.setRGB(red, green, blue) > > Sean > > On Jul 28, 2005, at 1:59 PM, Fernando Simon wrote: > > > Hi Sean, > > Thanks for your reply, I will check my code to improve it > with > > your hints. The blank backgound appear when I define a > labelobject by > > hand using JavaMapscript and set the it (setLabel) to my class. > > If I save the "mapscript mapfile" the label appear with a > black > > definition for background. I solve this problem using the way > that I > > wrote in the last e-mail. Any hints why occur this black > backgound? > > Thanks. > > > > Fernando Simon > > > > Citando Sean Gillies : > > > >> Fernando, > >> > >> This is improper usage and will result in memory leaks. An > instance > >> of > >> labelObj already holds references to many allocated colorObjs, > and > >> if > >> you bind new instances to the labelObj the originals will not > be > >> freed. > >> An example of proper usage is > >> > >> label.color.setRGB(0, 0, 0); > >> > >> All colors should be undefined (-1,-1,-1) by default, so I am at > a > >> loss > >> how you get a black label background. > >> > >> Sean > >> > >> On Jul 28, 2005, at 1:27 PM, Fernando Simon wrote: > >> > >>> Hi all, > >>> I found the same problem with black blackground here some > >> weeks > >>> ago, I solved the problem when I defined a blank color objects > >> for > >>> backgoundcolor and backgoundshadowcolor. Like: > >>> lObjCor = new colorObj(-1, -1, -1, 0); > >>> lObjLabel.setBackgroundcolor(lObjCor); > >>> lObjLabel.setBackgroundshadowcolor(lObjCor); > >>> So, using this way I can define all my layer using > >> JavaMapscript. > >>> To check the "mapscript mapfile" you can save it to see all > the > >>> definitions. > >>> Thanks. > >>> > >>> > >>> Fernando Simon > >>> > >>> > >>> Citando Rick Innis : > >>> > >>>> Im revisiting this somewhat old thread to contribute a few > >> insights > >>>> > >>>> I've found while dealing with the same issue, in the hope it > >> saves > >>>> > >>>> someone else time and effort in the future. The thread > >> "Mapscript > >>>> > >>>> API: for object manipulation, not object creation?" , from > >> earlier > >>>> > >>>> this year, also has some info on this topic. > >>>> > >>>>>> > >>>>>> Christian reported a crash in layerObj.delete() which I > >>>>>> also detected. > >>>>>> I think I understood the following: > >>>>>> > >>>>>> Let's say, we have an initialized mapObj mO; > >>>>>> > >>>>>> layerObj lO = new layerObj(mO); > >>>>>> // Say lO is the 5th layer now. > >>>>>> // Now lO.swigCMemOwn == true and > >>>>>> // lO.swigCPtr points onto the mO.swigCPtr->layers[4] > >>>>>> > >>>>>> ... > >>>>>> // now the mapObj is deleted but the Java-layerObj > continues > >> to > >>>> live. > >>>>>> // the C-layer-Object mO.swigCPtr->layers[4] will deleted > and > >>>>>> freed also! > >>>>>> mO.delete() > >>>>>> // From now on O.swigCPtr points into invalid piece of > >>>> C-memory. > >>>>>> ... > >>>> > >>>> I also encountered this a few months back but didn't have > time > >> to > >>>> > >>>> write it up so coherently. One workaround I was given by Sean > >> was > >>>> to > >>>> use insertLayer() to add the layer, which makes a copy, > >> allowing > >>>> the > >>>> allocated Java object to be disposed of cleanly. This also > >> requires > >>>> > >>>> making and inserting styleObj and classObj instances: > >>>> > >>>> // initially, layer not associated with any > >> map > >>>> layerObj myLayer = new layerObj(null); > >>>> // initialise layer > >>>> classObj myClass = new classObj(null); > >>>> styleObj myStyle = new styleObj(null); > >>>> // initialize style, then insert into class > >>>> myClass.insertStyle(styleObj, -1); > >>>> // insert class into layer > >>>> myLayer.insertClass(myClass, -1); > >>>> // insert layer into map - makes copy! > >>>> int ret = map.insertLayer(annos, -1); > >>>> // get reference to inserted copy > >>>> myLayer = map.getLayer(i); > >>>> > >>>> > >>>> However, when I started labelling my dynamic layers I found > >> that > >>>> my > >>>> labels ended up with a black background. The workaround I > >> found > >>>> was > >>>> to define an empty layer in my map, including empty style > info, > >> and > >>>> > >>>> use cloneLayer() to make copies as needed. > >>>> > >>>> The layer definition looks like this: > >>>> > >>>> # Blank generic annotation layer > >>>> LAYER > >>>> NAME user_layer > >>>> STATUS OFF > >>>> TYPE POINT > >>>> CLASS > >>>> STYLE > >>>> COLOR 255 255 255 > >>>> END > >>>> LABEL > >>>> COLOR 255 255 255 > >>>> END > >>>> END > >>>> END > >>>> > >>>> To use it, I grab the layer from the map, clone it, > initialize > >> it, > >>>> > >>>> and insert the clone into the map: > >>>> > >>>> layerObj myLayer = map.getLayerByName > >>>> ("blank_layer").cloneLayer(); > >>>> // initialise... > >>>> int ret = map.insertLayer(annos, -1); > >>>> > >>>> The layer's type can be changed on the fly, so one definition > >>>> suffices for all layers. > >>>> > >>>> --Rick. > >>>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------- > >>> Univali - Webmail - http://webmail.univali.br > >>> > >>> > >> -- > >> Sean Gillies > >> sgillies at frii dot com > >> http://zcologia.com > >> > > > > > > > > > > ------------------------------------------------- > > Univali - Webmail - http://webmail.univali.br > > > > ------------------------------------------------- Univali - Webmail - http://webmail.univali.br From sgillies at FRII.COM Fri Jul 29 09:02:28 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Fri, 29 Jul 2005 10:02:28 -0600 Subject: [mapserver] Java VM Crashes using the Mapscript API In-Reply-To: Message-ID: Fernando, A new layerObj instance is complete, except that 1) it contains no child classObjs, 2) it might need to be added to a map. Same situation for new instances of classObj: they are also complete except that they contain no child styleObjs. classObj.getLabel() returns a reference to the classObj's label attribute. It is not a copy. There is no need to delete any object that you have not explicitly created. getLabel() returns a reference to an object owned by the classObj. There is no need to delete the reference returned by getLabel(). Sean On Jul 29, 2005, at 9:20 AM, Fernando Simon wrote: > Sean, > Thanks for your reply. > Now, after your hints, I have some doubts, using SWIG (Java > support) if I do this code: lObjLabel = lObjClass.getLabel(); And > after I change some attributes for the lObjLabel, these changes will > affect the lObjClass.label? Is it the same objects, lObjLabel > reference the same that lObjClass.getLabel(), or is a new copy? After > I change the attributes I need to do a setLabel? > The other doubt is about the delete() function for the objects. If > I call this function the objects (in JavaSwig) will be release or > clean the objects? In the lObjLabel, this function will be clean the > lObjClass.label? > The last doubt :) what is the objects that exist by default when I > create a new class object or layer object? > Thanks > > Fernando Simon > > Citando Sean Gillies : > >> Now I understand. You should never bind a new labelObj to a >> classObj. >> All the MapServer classes exist primarily to support the CGI >> mapserv >> program, and therefore are complete. An new instance of classObj, >> for >> example, already contains a labelObj attribute named "label". To >> set a >> class's label color, you should do this >> >> class.label.color.setRGB(red, green, blue) >> >> Sean >> >> On Jul 28, 2005, at 1:59 PM, Fernando Simon wrote: >> >>> Hi Sean, >>> Thanks for your reply, I will check my code to improve it >> with >>> your hints. The blank backgound appear when I define a >> labelobject by >>> hand using JavaMapscript and set the it (setLabel) to my class. >>> If I save the "mapscript mapfile" the label appear with a >> black >>> definition for background. I solve this problem using the way >> that I >>> wrote in the last e-mail. Any hints why occur this black >> backgound? >>> Thanks. >>> >>> Fernando Simon >>> >>> Citando Sean Gillies : >>> >>>> Fernando, >>>> >>>> This is improper usage and will result in memory leaks. An >> instance >>>> of >>>> labelObj already holds references to many allocated colorObjs, >> and >>>> if >>>> you bind new instances to the labelObj the originals will not >> be >>>> freed. >>>> An example of proper usage is >>>> >>>> label.color.setRGB(0, 0, 0); >>>> >>>> All colors should be undefined (-1,-1,-1) by default, so I am at >> a >>>> loss >>>> how you get a black label background. >>>> >>>> Sean >>>> >>>> On Jul 28, 2005, at 1:27 PM, Fernando Simon wrote: >>>> >>>>> Hi all, >>>>> I found the same problem with black blackground here some >>>> weeks >>>>> ago, I solved the problem when I defined a blank color objects >>>> for >>>>> backgoundcolor and backgoundshadowcolor. Like: >>>>> lObjCor = new colorObj(-1, -1, -1, 0); >>>>> lObjLabel.setBackgroundcolor(lObjCor); >>>>> lObjLabel.setBackgroundshadowcolor(lObjCor); >>>>> So, using this way I can define all my layer using >>>> JavaMapscript. >>>>> To check the "mapscript mapfile" you can save it to see all >> the >>>>> definitions. >>>>> Thanks. >>>>> >>>>> >>>>> Fernando Simon >>>>> >>>>> >>>>> Citando Rick Innis : >>>>> >>>>>> Im revisiting this somewhat old thread to contribute a few >>>> insights >>>>>> >>>>>> I've found while dealing with the same issue, in the hope it >>>> saves >>>>>> >>>>>> someone else time and effort in the future. The thread >>>> "Mapscript >>>>>> >>>>>> API: for object manipulation, not object creation?" , from >>>> earlier >>>>>> >>>>>> this year, also has some info on this topic. >>>>>> >>>>>>>> >>>>>>>> Christian reported a crash in layerObj.delete() which I >>>>>>>> also detected. >>>>>>>> I think I understood the following: >>>>>>>> >>>>>>>> Let's say, we have an initialized mapObj mO; >>>>>>>> >>>>>>>> layerObj lO = new layerObj(mO); >>>>>>>> // Say lO is the 5th layer now. >>>>>>>> // Now lO.swigCMemOwn == true and >>>>>>>> // lO.swigCPtr points onto the mO.swigCPtr->layers[4] >>>>>>>> >>>>>>>> ... >>>>>>>> // now the mapObj is deleted but the Java-layerObj >> continues >>>> to >>>>>> live. >>>>>>>> // the C-layer-Object mO.swigCPtr->layers[4] will deleted >> and >>>>>>>> freed also! >>>>>>>> mO.delete() >>>>>>>> // From now on O.swigCPtr points into invalid piece of >>>>>> C-memory. >>>>>>>> ... >>>>>> >>>>>> I also encountered this a few months back but didn't have >> time >>>> to >>>>>> >>>>>> write it up so coherently. One workaround I was given by Sean >>>> was >>>>>> to >>>>>> use insertLayer() to add the layer, which makes a copy, >>>> allowing >>>>>> the >>>>>> allocated Java object to be disposed of cleanly. This also >>>> requires >>>>>> >>>>>> making and inserting styleObj and classObj instances: >>>>>> >>>>>> // initially, layer not associated with any >>>> map >>>>>> layerObj myLayer = new layerObj(null); >>>>>> // initialise layer >>>>>> classObj myClass = new classObj(null); >>>>>> styleObj myStyle = new styleObj(null); >>>>>> // initialize style, then insert into class >>>>>> myClass.insertStyle(styleObj, -1); >>>>>> // insert class into layer >>>>>> myLayer.insertClass(myClass, -1); >>>>>> // insert layer into map - makes copy! >>>>>> int ret = map.insertLayer(annos, -1); >>>>>> // get reference to inserted copy >>>>>> myLayer = map.getLayer(i); >>>>>> >>>>>> >>>>>> However, when I started labelling my dynamic layers I found >>>> that >>>>>> my >>>>>> labels ended up with a black background. The workaround I >>>> found >>>>>> was >>>>>> to define an empty layer in my map, including empty style >> info, >>>> and >>>>>> >>>>>> use cloneLayer() to make copies as needed. >>>>>> >>>>>> The layer definition looks like this: >>>>>> >>>>>> # Blank generic annotation layer >>>>>> LAYER >>>>>> NAME user_layer >>>>>> STATUS OFF >>>>>> TYPE POINT >>>>>> CLASS >>>>>> STYLE >>>>>> COLOR 255 255 255 >>>>>> END >>>>>> LABEL >>>>>> COLOR 255 255 255 >>>>>> END >>>>>> END >>>>>> END >>>>>> >>>>>> To use it, I grab the layer from the map, clone it, >> initialize >>>> it, >>>>>> >>>>>> and insert the clone into the map: >>>>>> >>>>>> layerObj myLayer = map.getLayerByName >>>>>> ("blank_layer").cloneLayer(); >>>>>> // initialise... >>>>>> int ret = map.insertLayer(annos, -1); >>>>>> >>>>>> The layer's type can be changed on the fly, so one definition >>>>>> suffices for all layers. >>>>>> >>>>>> --Rick. >>>>>> >>>>> >>>>> >>>>> >>>>> >>>>> ------------------------------------------------- >>>>> Univali - Webmail - http://webmail.univali.br >>>>> >>>>> >>>> -- >>>> Sean Gillies >>>> sgillies at frii dot com >>>> http://zcologia.com >>>> >>> >>> >>> >>> >>> ------------------------------------------------- >>> Univali - Webmail - http://webmail.univali.br >>> >> >> > > > > > ------------------------------------------------- > Univali - Webmail - http://webmail.univali.br > From dylan at IICI.NO-IP.ORG Fri Jul 29 11:44:44 2005 From: dylan at IICI.NO-IP.ORG (Dylan Beaudette) Date: Fri, 29 Jul 2005 11:44:44 -0700 Subject: landview DHTML interface: adding elements Message-ID: Greetings, I am interested in building on top of the excellent landview DHTML interface for mapserver. Specifically, I would like to add a bit of text just below the scale bars, with a message about the map scale. I would like this message to be updated with every interaction with the map. My attempts thus far are not updated after map interaction. So far i have created a function that creates a custom message based on the scale of the map like this: function display_current_message() { var current_scale = ms.getscale(); var message = ""; if(current_scale > 50001 ) { message = "You are currently working with scale A."; } else { message = "You are currently working with scale B."; } return message; }
Is there a general method of updating the contents of the landview DHTML page that i can use to update my custom bit of text? thanks in advance! -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From osgis.lists at GMAIL.COM Fri Jul 29 12:06:45 2005 From: osgis.lists at GMAIL.COM (David Bitner) Date: Fri, 29 Jul 2005 14:06:45 -0500 Subject: landview DHTML interface: adding elements In-Reply-To: <200507291144.45132.dylan@iici.no-ip.org> Message-ID: Use the postdraw() function to call your function then do something in your function like document.getElementById('message').innerHtml=message. On 7/29/05, Dylan Beaudette wrote: > Greetings, > > I am interested in building on top of the excellent landview DHTML interface > for mapserver. Specifically, I would like to add a bit of text just below the > scale bars, with a message about the map scale. I would like this message to > be updated with every interaction with the map. My attempts thus far are not > updated after map interaction. > > So far i have created a function that creates a custom message based on the > scale of the map like this: > > function display_current_message() > { > var current_scale = ms.getscale(); > var message = ""; > > if(current_scale > 50001 ) > { > message = "You are currently working with scale A."; > } > else > { > message = "You are currently working with scale B."; > } > > return message; > } > >
(put message here via JS) >
> > > Is there a general method of updating the contents of the landview DHTML page > that i can use to update my custom bit of text? > > thanks in advance! > > -- > Dylan Beaudette > Soils and Biogeochemistry Graduate Group > University of California at Davis > 530.754.7341 > From prof_gatto at YAHOO.COM.BR Fri Jul 29 12:45:05 2005 From: prof_gatto at YAHOO.COM.BR (Sandro Danilo Gatto) Date: Fri, 29 Jul 2005 16:45:05 -0300 Subject: SVG as imagetype Message-ID: Hello all I've been looking, for some time now, a way to use SVG as the output format for my mapserver configured as WMS server. Well, all I've found was an example using SVG as outputformat for a query layer and a (apparently) non official SVG HOWTO for version 4.5 on. I've made some tests using mapserver 4.6, but it generates all of my polygon objects filled in black. How is the SVG support in mapserver? Am I doing something wrong? In attach is my map file Sincerely Sandro -------------------------------------- Prof. Msc. Sandro Danilo Gatto Faculdades Integradas IPEP prof_gatto [at] yahoo.com.br __________________________________________________ Converse com seus amigos em tempo real com o Yahoo! Messenger http://br.download.yahoo.com/messenger/ -------------- next part -------------- A non-text attachment was scrubbed... Name: wms.map Type: application/octet-stream Size: 2477 bytes Desc: 875085737-wms.map URL: From rod.ferreira at BRTURBO.COM.BR Fri Jul 29 14:39:35 2005 From: rod.ferreira at BRTURBO.COM.BR (Rodrigo Ferreira Rodrigues) Date: Fri, 29 Jul 2005 16:39:35 -0500 Subject: problems using "set in Message-ID: Hi list. Im try to work whith dynamic template, but i can't make the "set in..." configuration. any sugestions? Thanks. From paceant at LIBERO.IT Fri Jul 29 15:16:57 2005 From: paceant at LIBERO.IT (Antonio Pace) Date: Fri, 29 Jul 2005 17:16:57 -0500 Subject: JavaMapScript howto delete a layer?. Message-ID: Hi, mapObj.removeLayer(int layerIndex) crash the Mapserver Instance, when i try to remove a dynamic added layer. Howto remove a layer from a map object? Alternatively howto clean a layer? thanks. From dibblethewrecker at JIWE.ORG Sat Jul 30 05:31:14 2005 From: dibblethewrecker at JIWE.ORG (Philip Dillon-Thiselton) Date: Sat, 30 Jul 2005 13:31:14 +0100 Subject: Error making mapscript tcl Message-ID: I'm just trying to get this set up so I can use mapscript-workbench - any help appreciated! looking for Tcl in /usr found lib/tclConfig.sh in /usr looking for Swig in /usr/local can not find swig.h in /usr/local/include using pre-built swig tcl interface tcl version = 8.4 creating Makefile swig -tcl8 -dhtml -namespace -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_GEOS -DUSE_WMS_SVR -I. -I/usr/include -I/usr/include -I/usr/include \ mapscript.i swig: Warning. -dhtml option deprecated. gcc -pipe -c -DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1 -DHAVE_PTHREAD_ATFORK=1 -DHAVE_READDIR_R=1 -DHAVE_THREE_ARG_READDIR_R=1 -DPEEK_XCLOSEIM=1 -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_TYPE=long long -DHAVE_STRUCT_STAT64=1 -DHAVE_OPEN64=1 -DHAVE_LSEEK64=1 -DHAVE_TYPE_OFF64_T=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_LANGINFO=1 -DHAVE_SYS_IOCTL_H=1 -fPIC \ -I/usr/include \ -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_GEOS -DUSE_WMS_SVR -I. -I/usr/include -I/usr/include -I/usr/include \ -DUSE_TCL_STUBS -DITCL_NAMESPACES -DItcl_Namespace=int -D"spaceId=spcid;Tcl_InitStubs(interp,\"8.1\",0)" \ mapscript_wrap.c gcc: long: No such file or directory mapscript_wrap.c: In function `imageObj_saveToString': mapscript_wrap.c:3078: warning: return makes pointer from integer without a cast make: *** [stublib] Error 1 mkdir /usr/lib/MapscriptTcl1.1 cp libMapscript11.so /usr/lib/MapscriptTcl1.1 cp: cannot stat `libMapscript11.so': No such file or directory make: *** [install] Error 1 Phil From ThoCar at FREE.FR Sun Jul 31 08:16:43 2005 From: ThoCar at FREE.FR (Thomas =?iso-8859-1?q?Carri=E9?=) Date: Sun, 31 Jul 2005 17:16:43 +0200 Subject: Newbie : where can I find national maps ? Message-ID: Hello, I have traveled to many countries around the world and I would like to create a map of the place I've been to ( ) I've found a lot of documentation of how to use different map format with mapserver, but I've'nt found a map repository freely available with countries I've been to (Mexico, India, Malaysia, Kenya, USA, ...) Thanks for your help -- Thomas Carri? http://www.gnu.org/philosophy/use-free-software.fr.html http://www.lebars.org/sec/tcpa-faq.fr.html http://petition.eurolinux.org/pr/fr/pr17.html http://aful.org/publi/articles/gilmore-copy-protection.html From BEN at SYNCERA-ITSOLUTIONS.NL Sun Jul 31 22:32:36 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Mon, 1 Aug 2005 07:32:36 +0200 Subject: WFS request using CVS version: mapserv(): Web application error. No template provided. Message-ID: Hi list, using the latest CVS version, when issuing a normal WFS GetFeature request, which used to work with 4.6 I get back: D:\sources\python>mapserver_getfeature.py MapServer Message mapserv(): Web application error. No template provided.
Any ideas? Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl From BEN at SYNCERA-ITSOLUTIONS.NL Sun Jul 31 22:52:41 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Mon, 1 Aug 2005 07:52:41 +0200 Subject: WFS request using CVS version: mapserv(): Web application error. No template p Message-ID: Sorry, I forgot to compile with WFS SERVER support ..... Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Bart van den Eijnden 08/01/05 07:32am >>> Hi list, using the latest CVS version, when issuing a normal WFS GetFeature request, which used to work with 4.6 I get back: D:\sources\python>mapserver_getfeature.py MapServer Message mapserv(): Web application error. No template provided.
Any ideas? Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl