From steve.lime at DNR.STATE.MN.US Sun Aug 1 20:15:06 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Sun, 1 Aug 2004 22:15:06 -0500 Subject: "set in index.html" value Message-ID: How are you trying to launch the application? It might help to post that page and the mapfile. I imagine it's something simple. Steve >>> ma_morin at sympatico.ca 07/31/04 12:54 PM >>> All I configured a map file according to my local data and I get the following error when I try to launch mapserver: "Content-type: text/html msReturnPage(): Unable to access file. set in index.html" The "set in index.html" value is related to the TEMPLATE parameter of the WEB class into the map file... Should I comment that line of change it for another? Thanks in advance for your support. regards, Marc-Andre From jdenisgiguere at FASTMAIL.FM Mon Aug 2 08:47:01 2004 From: jdenisgiguere at FASTMAIL.FM (Jean-Denis Giguere) Date: Mon, 2 Aug 2004 11:47:01 -0400 Subject: target for some bugs Message-ID: Hi everyone, This summer I had the great opportunity to work with the Mapserver. I learnt a lot and it was really fun. It was fun because many people work hard to make of Mapserver a good product, well documented. It was fun also because there is a fantastic community around Mapserver. Many people help others and this is great ! As my job placement is ending, I have to produce a report on Mapserver utilisability. I have found almost all informations needed, but I have to cite some bugs that doesn't have target milestone. If you have an idea of when some of them will be corrected, this info could help me very much. Here is a list of known bug. I really appreciate some of you could give me more info about their status that what we found in bugzilla. If you want, I may add you answer as new comments in the bugzilla database. A tiny comment: There are many bugs with state = new in Mapserver's bugzilla. It should be a good idea to change status more frequently. It is not bad to set state to WONTFIX or LATER if no action is considered for a bug. People who submitted bugs appreciate to know what will happen with their suggestions. (At least, it's true for me :-) ) Of course, you can always reopened a bug if new info make this pertinent. Bugzilla Bug 337 [WMS] Need a way to prevent layers from being served via WMS Bugzilla Bug 397 Color problems when using raster symbols and 8 bits PNG Bugzilla Bug 653 GetLegendGraphic only shows last class without label Bugzilla Bug 688 Enhance line symbolization Not in database Does someone work to support NULL value in Mapserver raster support. This may be usefull for query on raster. Thank you ! Jean-Denis Gigu?re From ma_morin at SYMPATICO.CA Mon Aug 2 08:14:03 2004 From: ma_morin at SYMPATICO.CA (=?US-ASCII?Q?Marc-Andre_Morin?=) Date: Mon, 2 Aug 2004 12:14:03 -0300 Subject: "set in index.html" value In-Reply-To: Message-ID: Steve, here are the two files... Thanks in advance, Marc-Andre -----Original Message----- From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] Sent: August 2, 2004 12:15 AM To: MAPSERVER-USERS at LISTS.UMN.EDU; ma_morin at sympatico.ca Subject: Re: [UMN_MAPSERVER-USERS] "set in index.html" value How are you trying to launch the application? It might help to post that page and the mapfile. I imagine it's something simple. Steve >>> ma_morin at sympatico.ca 07/31/04 12:54 PM >>> All I configured a map file according to my local data and I get the following error when I try to launch mapserver: "Content-type: text/html msReturnPage(): Unable to access file. set in index.html" The "set in index.html" value is related to the TEMPLATE parameter of the WEB class into the map file... Should I comment that line of change it for another? Thanks in advance for your support. regards, Marc-Andre -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: QC.map Type: application/octet-stream Size: 11294 bytes Desc: not available URL: From randy.page at TERRAVERGE.COM Mon Aug 2 19:23:50 2004 From: randy.page at TERRAVERGE.COM (Randy Page) Date: Mon, 2 Aug 2004 21:23:50 -0500 Subject: Problems with select by Polygon Message-ID: Hi All, I?m attempting to select a group of census tracts using a user defined polygon. As a test, I created a simple rectangle that I am using to select the tracts. The end result I need is a list of the tract IDs that fall within the supplied rectangle. Below is the URL I am using to execute the query: http://myserver.com/scripts/mapserv.exe?map=/maps/tiger.map&mapext=- 78.83+35.87+- 78.70+35.96&mode=nquery&mapsize=440+320&qlayer=tracts&layer=tracts&mapshape =-78.83+35.96+-78.70+35.96+-78.83+35.87+-78.70+35.87+-78.83+35.96 Below is the layer definition from the mapfile: LAYER NAME "tracts" STATUS DEFAULT CONNECTIONTYPE postgis CONNECTION "user=Administrator dbname=tiger host=localhost" DATA 'the_geom from tracts_c' TYPE QUERY TOLERANCE 5 CLASS TEMPLATE querytemplate.html END END I get two possible results: 1) If I include the TEMPLATE line, the server just sits there and eventually times out. 2) If I comment out the TEMPLATE line, I get: msQueryByShape(): Search returned no results. No matching record(s) found. Any ideas on what I am doing wrong? Thanks in advance, Randy From JCASTIL1 at TRAGSA.ES Tue Aug 3 00:29:15 2004 From: JCASTIL1 at TRAGSA.ES (Javier Castillejo) Date: Tue, 3 Aug 2004 02:29:15 -0500 Subject: nquery question Message-ID: Hi all I've found the way.... GREAT i've been almost 2 dais looking for the "pipe" to ask you all... :-) Well, let's go to work!!! I have some layers on a map.... I would like to "nquery" thats layers in order to get some id's (it's a field from the database)... On adition to this, one of the layes should be highlighted.... so, I haver (5 layers... roads, rivers, cyties, railways, info points. I need to highlight the infopoints and get the id's for all the layers, iincluding infopoints) I've used header (no infopoints layers) and template (in infopoint layer) keywords... and if I "clic" just on top of the infopoints... the thing appears to work... more or less I have what I need, but if I "clic" id other palce a balnc page appears and... that all, nothing to do... What I'm doing wrong I've tried using template in all layers, but... 5 differents pages in the same page are generated!!!!! any idea? thanks From james.reid at ED.AC.UK Tue Aug 3 04:58:33 2004 From: james.reid at ED.AC.UK (James Reid) Date: Tue, 3 Aug 2004 06:58:33 -0500 Subject: advice on applicability Message-ID: hi - my organisation is currently looking at options for delivering (viewing/panning/zoom) black and white raster maps. There are c. 500,000 individual images ranging in size from a few hundred K to 8-9 Mb. teh nature of teh maps is that teh same area could be covered by more than one image and several images for teh same area may exist. if I use tileindex to pint to the images and the index shapefile has several polys for the same area pointing to differnt images, is that permissible and if so is it possible to configure mapserver to select a specific one? we'd also apprciate pointers to some case studies or stats from other sites using mapserver to serve up lots of images, especially wrt to load balancing and performance. all comments appreciated : ) From randy.page at TERRAVERGE.COM Tue Aug 3 06:14:25 2004 From: randy.page at TERRAVERGE.COM (Randy Page) Date: Tue, 3 Aug 2004 08:14:25 -0500 Subject: Problems with select by Polygon - Update Message-ID: I have been doing some more experimentation with this problem, and have found that a point query (identify) works with the mapfile as it is currently setup, so there must be an issue with the url formatting I am passing into the CGI. I also tried using imgshape and passing in pixel coordinates, but that also produced the same results as the mapshape. So, if anyone has any suggestions, or could share an example of a working select by polygon, I would greatly appreciate it. Thanks! Randy Hi All, I?m attempting to select a group of census tracts using a user defined polygon. As a test, I created a simple rectangle that I am using to select the tracts. The end result I need is a list of the tract IDs that fall within the supplied rectangle. Below is the URL I am using to execute the query: http://myserver.com/scripts/mapserv.exe?map=/maps/tiger.map&mapext=- 78.83+35.87+- 78.70+35.96&mode=nquery&mapsize=440+320&qlayer=tracts&layer=tracts&mapshape =-78.83+35.96+-78.70+35.96+-78.83+35.87+-78.70+35.87+-78.83+35.96 Below is the layer definition from the mapfile: LAYER NAME "tracts" STATUS DEFAULT CONNECTIONTYPE postgis CONNECTION "user=Administrator dbname=tiger host=localhost" DATA 'the_geom from tracts_c' TYPE QUERY TOLERANCE 5 CLASS TEMPLATE querytemplate.html END END I get two possible results: 1) If I include the TEMPLATE line, the server just sits there and eventually times out. 2) If I comment out the TEMPLATE line, I get: msQueryByShape(): Search returned no results. No matching record(s) found. Any ideas on what I am doing wrong? Thanks in advance, Randy From ma_morin at SYMPATICO.CA Tue Aug 3 06:49:51 2004 From: ma_morin at SYMPATICO.CA (=?us-ascii?Q?Marc-Andre_Morin?=) Date: Tue, 3 Aug 2004 10:49:51 -0300 Subject: "set in index.html" value In-Reply-To: Message-ID: Steve, I don't think that the problem is into my map file... I changed the TEMPLATE paramater for the value "itasca_basic.html" and it works properly... So, probably you could find a solution into my index.html file or somewhere else... And for your info, I'm running Mapserver on Windows 2000 Pro. MapServer version 4.2.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 INPUT=POSTGIS INPUT=OGR INPUT=GDAL I NPUT=SHAPEFILE HTP Marc-Andre -----Original Message----- From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] Sent: August 2, 2004 12:15 AM To: MAPSERVER-USERS at LISTS.UMN.EDU; ma_morin at sympatico.ca Subject: Re: [UMN_MAPSERVER-USERS] "set in index.html" value How are you trying to launch the application? It might help to post that page and the mapfile. I imagine it's something simple. Steve >>> ma_morin at sympatico.ca 07/31/04 12:54 PM >>> All I configured a map file according to my local data and I get the following error when I try to launch mapserver: "Content-type: text/html msReturnPage(): Unable to access file. set in index.html" The "set in index.html" value is related to the TEMPLATE parameter of the WEB class into the map file... Should I comment that line of change it for another? Thanks in advance for your support. regards, Marc-Andre From steve.lime at DNR.STATE.MN.US Tue Aug 3 08:13:43 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 3 Aug 2004 10:13:43 -0500 Subject: "set in index.html" value Message-ID: Know it's in the index.html. That file was set up to change templates based on what demo was to be run. So a variable called 'map_web_template' was set and passed to MapServer. You removed that part and hence the error. The easiest fix is to do exactly what you did and add the template name into the map file. Alternatively set a hidden variable called 'map_web_template' in your index.html file. Steve >>> ma_morin at sympatico.ca 8/3/2004 8:49:51 AM >>> Steve, I don't think that the problem is into my map file... I changed the TEMPLATE paramater for the value "itasca_basic.html" and it works properly... So, probably you could find a solution into my index.html file or somewhere else... And for your info, I'm running Mapserver on Windows 2000 Pro. MapServer version 4.2.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 INPUT=POSTGIS INPUT=OGR INPUT=GDAL I NPUT=SHAPEFILE HTP Marc-Andre -----Original Message----- From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] Sent: August 2, 2004 12:15 AM To: MAPSERVER-USERS at LISTS.UMN.EDU; ma_morin at sympatico.ca Subject: Re: [UMN_MAPSERVER-USERS] "set in index.html" value How are you trying to launch the application? It might help to post that page and the mapfile. I imagine it's something simple. Steve >>> ma_morin at sympatico.ca 07/31/04 12:54 PM >>> All I configured a map file according to my local data and I get the following error when I try to launch mapserver: "Content-type: text/html msReturnPage(): Unable to access file. set in index.html" The "set in index.html" value is related to the TEMPLATE parameter of the WEB class into the map file... Should I comment that line of change it for another? Thanks in advance for your support. regards, Marc-Andre From steve.lime at DNR.STATE.MN.US Tue Aug 3 08:15:20 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 3 Aug 2004 10:15:20 -0500 Subject: Problems with select by Polygon Message-ID: What version are we talking? >>> randy.page at TERRAVERGE.COM 8/2/2004 9:23:50 PM >>> Hi All, I'm attempting to select a group of census tracts using a user defined polygon. As a test, I created a simple rectangle that I am using to select the tracts. The end result I need is a list of the tract IDs that fall within the supplied rectangle. Below is the URL I am using to execute the query: http://myserver.com/scripts/mapserv.exe?map=/maps/tiger.map&mapext=- 78.83+35.87+- 78.70+35.96&mode=nquery&mapsize=440+320&qlayer=tracts&layer=tracts&mapshape =-78.83+35.96+-78.70+35.96+-78.83+35.87+-78.70+35.87+-78.83+35.96 Below is the layer definition from the mapfile: LAYER NAME "tracts" STATUS DEFAULT CONNECTIONTYPE postgis CONNECTION "user=Administrator dbname=tiger host=localhost" DATA 'the_geom from tracts_c' TYPE QUERY TOLERANCE 5 CLASS TEMPLATE querytemplate.html END END I get two possible results: 1) If I include the TEMPLATE line, the server just sits there and eventually times out. 2) If I comment out the TEMPLATE line, I get: msQueryByShape(): Search returned no results. No matching record(s) found. Any ideas on what I am doing wrong? Thanks in advance, Randy From thomas at REDMILENIO.COM Tue Aug 3 08:51:50 2004 From: thomas at REDMILENIO.COM (Thomas Shaw) Date: Tue, 3 Aug 2004 11:51:50 -0400 Subject: Can't project a layer of a shp that uses a utm_ wgs84 projection Message-ID: Hello, I just assigned a utm_wgs84_zone14 projection to a shp file with arcinfo. The next thing I wanted to do is to use mapserver to project that shp as a layer. My mapfile is the following: # # Start of map file # MAP NAME mapa_de_mexico STATUS ON SIZE 575 468 SYMBOLSET /usr/local/mapserver_4/www/culiacan/temp/tracker/modules/Rastreo/symbols_mapinfo.sym EXTENT -117.53926633136 8.7749367751593 -86.256395549464 34.869751589975 FONTSET "data/fonts/fonts.list" UNITS DD SHAPEPATH "data/" IMAGECOLOR 107 181 255 TRANSPARENT off IMAGETYPE PNG PROJECTION "proj=utm" "zone=14" "ellps=WGS84" "datum=WGS84" "units=m" "no_defs" END # # Start of web interface definition # WEB IMAGEPATH "/usr/local/mapserver_4/www/culiacan/temp/tracker/modules/Rastreo/tmp/" IMAGEURL "modules/Rastreo/tmp/" END ############################################################################## # # Leon City layer # LAYER NAME manchaleon GROUP "mex" TYPE polygon STATUS on CONNECTIONTYPE OGR CONNECTION "data/leoncalles_Polygon.shp" PROJECTION "proj=utm" "zone=14" "ellps=WGS84" "datum=WGS84" "units=m" "no_defs" END CLASS NAME "mancha" COLOR 0 OUTLINECOLOR 0 END TOLERANCE 5 END #----------------------------------------- END #map The thing is that mapserver is not displaying that layer..., but it is not displaying any error either. I'll appreciate if anyone can help me with it. Thank you Thomas Shaw. From kgeurts at GIS.UMN.EDU Tue Aug 3 10:46:53 2004 From: kgeurts at GIS.UMN.EDU (Kari Geurts) Date: Tue, 3 Aug 2004 12:46:53 -0500 Subject: testing the new listserv Message-ID: Sorry for this test but I changed some options on my account and wanted to make sure it was working. Kari From steve.lime at DNR.STATE.MN.US Tue Aug 3 17:04:25 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 3 Aug 2004 19:04:25 -0500 Subject: Testy... Message-ID: Just trying to see if this stupid thing is working. Steve From steve.lime at DNR.STATE.MN.US Tue Aug 3 17:08:55 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 3 Aug 2004 19:08:55 -0500 Subject: Testy... Message-ID: Ok, showed up. I worried that activity on the list is light, too light. Please contact me if you're having trouble signing up or posting messages... Steve >>> steve.lime at dnr.state.mn.us 08/03/04 7:04 PM >>> Just trying to see if this stupid thing is working. Steve From steve.lime at DNR.STATE.MN.US Tue Aug 3 22:14:59 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 4 Aug 2004 00:14:59 -0500 Subject: Testy... Message-ID: Wasn't a joke, ok the signing up part was stupid. Most folks are having trouble posting, not signing up and reading messages... >>> "Delfos, Jacob" 08/03/04 7:55 PM >>> Good one.... That's like..... 'Call me if your phone is broken'. Maybe post that message to the old list. Cheers, Jacob -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Steve Lime Sent: 4 August 2004 08:09 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Testy... Ok, showed up. I worried that activity on the list is light, too light. Please contact me if you're having trouble signing up or posting messages... Steve >>> steve.lime at dnr.state.mn.us 08/03/04 7:04 PM >>> Just trying to see if this stupid thing is working. Steve From bob.basques at CI.STPAUL.MN.US Tue Aug 3 22:28:15 2004 From: bob.basques at CI.STPAUL.MN.US (Blammo) Date: Wed, 4 Aug 2004 00:28:15 -0500 Subject: Testy... In-Reply-To: Message-ID: Steve Lime wrote: >Ok, showed up. I worried that activity on the list is light, too light. >Please contact me if you're having trouble signing up or posting >messages... > >Steve > > > >>>>steve.lime at dnr.state.mn.us 08/03/04 7:04 PM >>> >>>> >>>> >Just trying to see if this stupid thing is working. > >Steve > > > > I do see all of your replies though. Weird. bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From nicolas.fortin at EC.GC.CA Wed Aug 4 03:53:11 2004 From: nicolas.fortin at EC.GC.CA (Nicolas Fortin) Date: Wed, 4 Aug 2004 05:53:11 -0500 Subject: A simple test... Message-ID: A simple posting test directly from the site since when I post from outlook It doesn't work... Nicolas From lfilak at MEDINACO.ORG Wed Aug 4 05:06:40 2004 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Wed, 4 Aug 2004 08:06:40 -0400 Subject: Testy... Message-ID: Posting 123, Posting... Lowell The following message was sent by Steve Lime on Wed, 4 Aug 2004 00:14:59 -0500. > Wasn't a joke, ok the signing up part was stupid. Most folks are having > trouble posting, not signing up and reading messages... > > >>> "Delfos, Jacob" 08/03/04 7:55 PM >>> > Good one.... That's like..... 'Call me if your phone is broken'. > Maybe post that message to the old list. > > Cheers, > > Jacob > > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Steve Lime > Sent: 4 August 2004 08:09 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Testy... > > > Ok, showed up. I worried that activity on the list is light, too light. > Please contact me if you're having trouble signing up or posting > messages... > > Steve > > >>> steve.lime at dnr.state.mn.us 08/03/04 7:04 PM >>> > Just trying to see if this stupid thing is working. > > Steve From Godwinl at AGR.GC.CA Wed Aug 4 05:55:40 2004 From: Godwinl at AGR.GC.CA (Godwin, Elizabeth) Date: Wed, 4 Aug 2004 08:55:40 -0400 Subject: test post using outlook Message-ID: I thought I would try testing myself since others are having difficulty. Liz Godwin -------------- next part -------------- An HTML attachment was scrubbed... URL: From Eric.Hancock at DEP.STATE.FL.US Wed Aug 4 06:28:50 2004 From: Eric.Hancock at DEP.STATE.FL.US (Hancock, Eric) Date: Wed, 4 Aug 2004 09:28:50 -0400 Subject: Testy... Message-ID: test test, I might as well join in the fun. Eric -----Original Message----- From: Lowell Filak [mailto:lfilak at MEDINACO.ORG] Sent: Wednesday, August 04, 2004 7:07 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Testy... Posting 123, Posting... Lowell The following message was sent by Steve Lime on Wed, 4 Aug 2004 00:14:59 -0500. > Wasn't a joke, ok the signing up part was stupid. Most folks are having > trouble posting, not signing up and reading messages... > > >>> "Delfos, Jacob" 08/03/04 7:55 PM >>> > Good one.... That's like..... 'Call me if your phone is broken'. > Maybe post that message to the old list. > > Cheers, > > Jacob > > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Steve Lime > Sent: 4 August 2004 08:09 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Testy... > > > Ok, showed up. I worried that activity on the list is light, too light. > Please contact me if you're having trouble signing up or posting > messages... > > Steve > > >>> steve.lime at dnr.state.mn.us 08/03/04 7:04 PM >>> > Just trying to see if this stupid thing is working. > > Steve From simon at INF.UNIVALI.BR Wed Aug 4 06:47:03 2004 From: simon at INF.UNIVALI.BR (Fernando Simon) Date: Wed, 4 Aug 2004 08:47:03 -0500 Subject: Testy... Message-ID: Hi, I received the message, but only after I sigoff the old list and subscribed with the listserv. After this, I received the messages in my mail but I can't reply using the thunderbird, only posting here. ------------------------------ Fernando Simon - G10 (Brazil) From alberto.cavalli at SINTRANET.IT Wed Aug 4 06:48:28 2004 From: alberto.cavalli at SINTRANET.IT (Alberto Cavalli) Date: Wed, 4 Aug 2004 15:48:28 +0200 Subject: query modification .. how to? Message-ID: hi dear, I need a big hand. I need to modify the result of query, I have to see only two fields of two different layers. Could someone tell to me what I have to do and what are the files that I have to change? thanks in advance Alberto From dmorissette at DMSOLUTIONS.CA Wed Aug 4 06:59:01 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Wed, 4 Aug 2004 09:59:01 -0400 Subject: Testy... In-Reply-To: Message-ID: Steve Lime wrote: > Wasn't a joke, ok the signing up part was stupid. Most folks are having > trouble posting, not signing up and reading messages... > > >>>>"Delfos, Jacob" 08/03/04 7:55 PM >>> > > Good one.... That's like..... 'Call me if your phone is broken'. > Maybe post that message to the old list. > > Cheers, > > Jacob > Actually,it might not hurt to send a post to the old list to remind everyone who missed the announcement from last week that the list has moved. I almost missed the announcement myself. Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From bz at CESMAIL.NET Wed Aug 4 07:24:01 2004 From: bz at CESMAIL.NET (Barbara Zack) Date: Wed, 4 Aug 2004 09:24:01 -0500 Subject: Testy... In-Reply-To: Message-ID: Testing with Thunderbird. Fernando Simon wrote: >---------------------- Information from the mail header ----------------------- >Sender: UMN MapServer Users List >Poster: Fernando Simon >Subject: Re: Testy... >------------------------------------------------------------------------------- > >Hi, > I received the message, but only after I sigoff the old list and >subscribed with the listserv. After this, I received the messages in my mail >but I can't reply using the thunderbird, only posting here. > >------------------------------ >Fernando Simon - G10 (Brazil) > > > From Ken.Boss at DNR.STATE.MN.US Wed Aug 4 07:29:53 2004 From: Ken.Boss at DNR.STATE.MN.US (Ken Boss) Date: Wed, 4 Aug 2004 09:29:53 -0500 Subject: Testy... Message-ID: Here's a straight MN DNR GroupWise "Reply" to your post, Steve. --Ken >>> steve.lime at dnr.state.mn.us 8/4/2004 12:14:59 AM >>> Wasn't a joke, ok the signing up part was stupid. Most folks are having trouble posting, not signing up and reading messages... >>> "Delfos, Jacob" 08/03/04 7:55 PM >>> Good one.... That's like..... 'Call me if your phone is broken'. Maybe post that message to the old list. Cheers, Jacob -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Steve Lime Sent: 4 August 2004 08:09 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Testy... Ok, showed up. I worried that activity on the list is light, too light. Please contact me if you're having trouble signing up or posting messages... Steve >>> steve.lime at dnr.state.mn.us 08/03/04 7:04 PM >>> Just trying to see if this stupid thing is working. Steve From simon at INF.UNIVALI.BR Wed Aug 4 07:46:28 2004 From: simon at INF.UNIVALI.BR (Fernando S.) Date: Wed, 4 Aug 2004 11:46:28 -0300 Subject: Testy... In-Reply-To: <4110F181.2080304@cesmail.net> Message-ID: Testing with thunderbird ----------------------------- Fernando Simon Barbara Zack wrote: > Testing with Thunderbird. > > Fernando Simon wrote: > >> ---------------------- Information from the mail header >> ----------------------- >> Sender: UMN MapServer Users List >> Poster: Fernando Simon >> Subject: Re: Testy... >> ------------------------------------------------------------------------------- >> >> >> Hi, >> I received the message, but only after I sigoff the old list and >> subscribed with the listserv. After this, I received the messages in >> my mail >> but I can't reply using the thunderbird, only posting here. >> >> ------------------------------ >> Fernando Simon - G10 (Brazil) >> >> >> > From kgeurts at GIS.UMN.EDU Wed Aug 4 09:47:19 2004 From: kgeurts at GIS.UMN.EDU (Kari Geurts) Date: Wed, 4 Aug 2004 11:47:19 -0500 Subject: RE problems posting Message-ID: This is a test to see if this will be posted. From steve.lime at DNR.STATE.MN.US Wed Aug 4 09:55:13 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 4 Aug 2004 11:55:13 -0500 Subject: query modification .. how to? Message-ID: Where are you starting from? Your own app? Something derived from one of the Itasca demos? It sort of sounds like you are wanting to modify the C code. You shouldn't have to do that. MapServer will gladly search 2 layers for you. Post a little more detail and I or others will help you out... Steve >>> alberto.cavalli at SINTRANET.IT 8/4/2004 8:48:28 AM >>> hi dear, I need a big hand. I need to modify the result of query, I have to see only two fields of two different layers. Could someone tell to me what I have to do and what are the files that I have to change? thanks in advance Alberto From lfilak at MEDINACO.ORG Wed Aug 4 10:16:22 2004 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Wed, 4 Aug 2004 13:16:22 -0400 Subject: Fwd: Re: [Mapserver-users] Fw: help on mygis Message-ID: The following message was sent by "pablo" on Wed, 4 Aug 2004 14:04:50 -0300. > EXAMPLE: > =========== > PLEASE SEND EXAMPLE THIS IN MYSQL (MYGIS) > por favor envieme un ejemplo de esto para mysql, o bien como tradusco esto a > mi MAP > yo quise hacer esto y no pude no encuentro forma de hacerlo. > > DATA "the_geom from > (select nut3.the_geom, > case when un3rt.unit > 16 then 1 > when un3rt.unit > 10 and un3rt.unit < 16 then 2 > when un3rt.unit > 5 and un3rt.unit < 10 then 3 > when un3rt.unit > 0 and un3rt.unit < 5 then 4 > else 5 > end as myclass > from nut3,un3rt > where nut3.nurgcd=un3rt.geo > ) as foo" > > > CLASSITEM myclass > CLASS > EXPRESSION 1 > COLOR 255 0 0 > END > CLASS > EXPRESSION 2 > COLOR 250 100 100 > END > CLASS > EXPRESSION 3 > COLOR 250 200 200 > END > CLASS > EXPRESSION 4 > COLOR 250 220 220 > END > CLASS > EXPRESSION 5 > COLOR 210 210 210 > END > > > ----- Original Message ----- > From: "Lowell Filak" > To: "pablo" > Sent: Monday, August 02, 2004 10:36 AM > Subject: Re: [Mapserver-users] Fw: help on mygis > > > > Unfortunately the new list server doesn't appear to be working, however > > you need to submit this to the list. I only have limited knowledge of > > what your trying to accomplish. My original suggestion was to combine > > all your attributes into a single MySQL table so you could work on the > > labelling issues without the added complexity of relating two tables in > > MySQL. > > > > HTH > > > > Lowell > > > > The following message was sent by "pablo" > > on Fri, 30 Jul 2004 18:00:33 -0300. > > > > > Hello again, > > > > > > This is a piece of my MAP FILE : > > > > > > LAYER > > > NAME "grupos2002" > > > STATUS ON > > > CONNECTIONTYPE mygis > > > CONECTION "localhost:gisusr:gis:gisdb:bin:" > > > DATA "geometry from grupos2002 feature, grupos2002_bin geometry" > > > > > > CLASS > > > NAME "Zona Geo" > > > OUTLINECOLOR 60 60 60 > > > COLOR 255 255 0 > > > SYMBOL 0 > > > END > > > END > > > > > > LAYER > > > STATUS ON > > > CONNECTIONTYPE mygis > > > CONECTION "localhost:gisusr:gis:gisdb:bin:" > > > DATA ???????????????????????????????? > > > TYPE ANNOTATION > > > LABELITEM ?????????????????????? > > > CLASS > > > ANGLE AUTO > > > SIZE 8 > > > COLOR 0 192 0 > > > TYPE TRUETYPE > > > FONT ARIAL > > > END > > > END > > > > > > I have a table zonas with the following fields: > > > 1- f_Zona ( olso located in grupos2002 ) > > > 2- Description > > > 3- Atributos > > > > > > Questions : > > > > > > - What do I have to do to link the f_zona field (Zonas Table) to f_zona > > > (Grupos2002 table)?. I need to use Description field (Zonas table) as > > label > > > of the LAYER ANNOTATION. > > > > > > - I don't know how to make the query that map server needs to link or > join > > > the data of my zona table with the data of the map. > > > > > > - How should i write this query ? > > > > > > - Could I use a custom query to get the geometric data of grupos2002, > > > grupos2002.bin? > > > DATA "geometry from grupos2002 feature, grupos2002_bin > > geometry"---- >>> > > > Is it posible to write this in ANSI query( select xxx from xxx where > > > ..etc.) ? Example please!!! > > > > > > - Do I need more extra fields in the zonas table to get this work well? > > > > > > thank you very much!!! > > > Pablo > > > > > > > > > ----- Original Message ----- > > > From: "Lowell Filak" > > > To: "pablo_schmitt_" ; > > > > > > Sent: Thursday, July 29, 2004 11:09 AM > > > Subject: Re: [Mapserver-users] Fw: help on mygis > > > > > > > > > > I don't know mygis but as a quick fix you could join all the > attributes > > > > into the first layer so there is no relate required to do the > > labelling.? > > > > > > > > Lowell > > > > > > > > The following message was sent by "pablo_schmitt_" > > > > on Thu, 29 Jul 2004 09:47:43 -0300. > > > > > > > > > > > > > > ----- Original Message ----- > > > > > From: pablo_schmitt_ > > > > > To: mapserver-users at lists.gis.umn.edu > > > > > Sent: Wednesday, July 28, 2004 6:59 PM > > > > > Subject: help on mygis > > > > > > > > > > > > > > > hello friends > > > > > i need some help from you > > > > > > > > > > this is a brief description of my problem: > > > > > > > > > > i have a grupos2002.shp file uploaded into mysql using the > > > > shp2mysql.lp, > and it is working properly > > > > > > > > > > this script generated the following tables geometry_columns, > > > > grupos2002, > grupos2002_bin, grupos2002_num > > > > > , spatial_ref_sys > > > > > > > > > > in the map file i have this definition for the connection and data: > > > > > CONNECTION "localhost:gisusr:gis:gisdb:bin:" > > > > > DATA "geometry from grupos2002 feature, grupos2002_bin geometry" > > > > > and it is working fine > > > > > > > > > > my problem is: > > > > > i have a table zonas with the following fields: > > > > > 1- f_Zona ( olso located in grupos2002 ) > > > > > 2- Description > > > > > 3- Atributos > > > > > > > > > > so, i need to use the field number 2 ( Description) as Label in the > > > > map > and i need to apply some filters using the field number > > > > > 3 (Atributos). > > > > > > > > > > THE BIG CUESTION IS: how should i contruct my DATA definition in the > > > > map > file ???? > > > > > > > > > > i hope you could understand me > > > > > > > > > > thank you very much > > > > > by > > > > > > > > > > pablo schmitt > > > > > municipalidad de malvinas argentinas > > > > > dep. inform?tica > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > From woodbri at SWOODBRIDGE.COM Wed Aug 4 10:24:27 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 4 Aug 2004 12:24:27 -0500 Subject: more testy Message-ID: ignore this ... testing From aflorio at GISPLAN.COM.BR Wed Aug 4 10:39:34 2004 From: aflorio at GISPLAN.COM.BR (Alexandre Florio) Date: Wed, 4 Aug 2004 14:39:34 -0300 Subject: Mapserver's WFS-client problems - Can't get it to work Message-ID: I'm having problems while trying to access a WFS-server (Geoserver 1.2.0-rc2) through Mapserver's WFS-client support. Mapserver's version is 4.2.1. This is how my WFS-client layer is set up: LAYER NAME "acervo_espacial" TYPE POLYGON CONNECTIONTYPE WFS CONNECTION "http://localhost:8080/geoserver/wfs" STATUS ON METADATA "wfs_version" "1.0.0" "wfs_service" "WFS" "wfs_typename" "gisplan:acervo_espacial" END PROJECTION "init=epsg:4291" END END This is the error message from Mapserver: msDrawMap(): Image handling error. Failed to draw layer named 'acervo_espacial'. msWFSLayerWhichShapes(): WFS connection error. WFS request produced unexpected output (junk?) for layer acervo_espacial. I have already tried setting up the layer passing the WFS parameters (version and typename) directly in the CONNECTION parameter, via GET, without success. The "junk" that Mapserver talks about is a .gml file containing a "ServiceExceptionReport" node: XML getFeature request SAX parsing error: org.xml.sax.SAXException: Attempted to construct illegal filter: Got to the end state of an incomplete filter, current state is rightValue (java stack trace) Geoserver returns correct GML when I send a 'GetFeature' request using a browser: (http://localhost:8080/geoserver/wfs?request=GetFeature&typename=gisplan:acervo_espacial returns valid GML) This is the request that Mapserver is sending to Geoserver (I got it using netcat, listening in a different port set up in the CONNECTION parameter): POST /geoserver/wfs HTTP/1.1 Host: localhost:5555 Pragma: no-cache Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */* Content-Type: text/xml Content-Length: 305 Geometry -77.038333,-37.435044 -31.038333,8.511622 Which seems good to me, but Geoserver complains that the Filter is invalid (see the exception description above). Does anybody know what can be wrong here? Alexandre From woodbri at SWOODBRIDGE.COM Wed Aug 4 09:45:28 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 4 Aug 2004 12:45:28 -0400 Subject: and more testing Message-ID: ignore - more testing From woodbri at SWOODBRIDGE.COM Wed Aug 4 11:31:20 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 4 Aug 2004 14:31:20 -0400 Subject: Can't project a layer of a shp that uses a utm_ wgs84 projection Message-ID: I looks like your EXTENTS and UNITS are in DD and not in utm zone14 units. Also if the data is projected then you can remove both the projection blocks as they are not needed unless you plan to mix data source that are in different projections. -Steve W. Thomas Shaw wrote: > Hello, I just assigned a utm_wgs84_zone14 projection to a shp file with > arcinfo. The next thing I wanted to do is to use mapserver to project that > shp as a layer. My mapfile is the following: > > > > # > # Start of map file > # > MAP > NAME mapa_de_mexico > STATUS ON > SIZE 575 468 > SYMBOLSET > /usr/local/mapserver_4/www/culiacan/temp/tracker/modules/Rastreo/symbols_mapinfo.sym > EXTENT -117.53926633136 8.7749367751593 -86.256395549464 34.869751589975 > FONTSET "data/fonts/fonts.list" UNITS DD > SHAPEPATH "data/" > IMAGECOLOR 107 181 255 > TRANSPARENT off > IMAGETYPE PNG > > PROJECTION > "proj=utm" > "zone=14" > "ellps=WGS84" > "datum=WGS84" > "units=m" > "no_defs" > END > > > > # > # Start of web interface definition > # > > WEB > IMAGEPATH > "/usr/local/mapserver_4/www/culiacan/temp/tracker/modules/Rastreo/tmp/" > IMAGEURL "modules/Rastreo/tmp/" > END > > > ############################################################################## > # > # Leon City layer > # > > > LAYER > > NAME manchaleon > GROUP "mex" > TYPE polygon > STATUS on > CONNECTIONTYPE OGR > CONNECTION "data/leoncalles_Polygon.shp" > > PROJECTION > "proj=utm" > "zone=14" > "ellps=WGS84" > "datum=WGS84" > "units=m" > "no_defs" > END > > > CLASS > NAME "mancha" > COLOR 0 > OUTLINECOLOR 0 > END > TOLERANCE 5 > END > > #----------------------------------------- > END #map > > > > The thing is that mapserver is not displaying that layer..., but it is not > displaying any error either. > > I'll appreciate if anyone can help me with it. Thank you > > Thomas Shaw. > From colwell at GEOG.UMN.EDU Wed Aug 4 11:22:30 2004 From: colwell at GEOG.UMN.EDU (Rebecca Colwell) Date: Wed, 4 Aug 2004 13:22:30 -0500 Subject: Legend Titles/Sub-titles Message-ID: Hi all, I am working on a mapping app with multiple thematic layers viewable at one time. I'm trying to title each map layer within the legend in bold and then have the text next to each color be in plain text. My mapfile legend looks like this: # # Start of legend # LEGEND STATUS ON KEYSIZE 25 18 LABEL TYPE TRUETYPE FONT times COLOR 0 0 0 SIZE 11 ANTIALIAS TRUE END END Each layer has a metadata tag like this: METADATA "TITLE" "All Disenfranchised Felons" END And in my html code, I have the following for the legend:

Legend:
[TotalDisRate_TITLE][AfrAmerDisRate_TITLE] [StateVotingRights_TITLE]

Right now, the layers and titles appear in the legend, but all the titles appear one after the other, and are then followed by all the titleless layers. Does anyone know how I could modify the legend to have a title/layer/title/layer appearance as opposed to a title/title/layer/layer appearance? Thanks! ~Becky From kgeurts at GIS.UMN.EDU Wed Aug 4 12:08:26 2004 From: kgeurts at GIS.UMN.EDU (kgeurts) Date: Wed, 4 Aug 2004 14:08:26 CDT Subject: No subject Message-ID: Hello MS-Users, We will be shutting this mail listserv down so you will need to re-subscribe to the MapServer User list if you would like to continue to participate. Please go to (http://lists.umn.edu/archives/mapserver-users.html) and click on "Join or leave the list" to re-subscribe. Then follow the instructions. Thank you for your cooperation and we hope to see you on the new list. Kari A. Geurts Department of Forest Resources University of Minnesota 1530 Cleveland Ave N. St. Paul, MN. 55108 Phone: 612-624-3459 Fax: 612-625-5212 From kgeurts at GIS.UMN.EDU Wed Aug 4 12:15:06 2004 From: kgeurts at GIS.UMN.EDU (kgeurts) Date: Wed, 4 Aug 2004 14:15:06 CDT Subject: OOPs Message-ID: Please ignore the last email I sent out about this list being shut down. I meant to send it to the old list. Kari A. Geurts Department of Forest Resources University of Minnesota 1530 Cleveland Ave N. St. Paul, MN. 55108 Phone: 612-624-3459 Fax: 612-625-5212 From bob.basques at CI.STPAUL.MN.US Wed Aug 4 14:28:36 2004 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Wed, 4 Aug 2004 16:28:36 -0500 Subject: Testing from Thunderbird. . . . . Message-ID: Does it work now? (don't reply, I just wat to see if it works) bobb From teb at MALLIT.FR.UMN.EDU Wed Aug 4 14:14:11 2004 From: teb at MALLIT.FR.UMN.EDU (Thomas E Burk) Date: Wed, 4 Aug 2004 16:14:11 -0500 Subject: Highlighting items in map (FWD) Message-ID: Forwarding this to the new list. ------------- Begin Forwarded Message ------------- From: Jeremy Wiebe To: "Mapserver-Users (E-mail)" MIME-Version: 1.0 Subject: [Mapserver-users] Highlighting items in map X-BeenThere: mapserver-users at lists.gis.umn.edu X-Mailman-Version: 2.0.13 List-Unsubscribe: , List-Id: Mapserver Users Mailing List (Appropriate for general users) List-Post: List-Help: List-Subscribe: , List-Archive: Date: Wed, 4 Aug 2004 15:10:27 -0500 Hi there, I posted to this list a while ago about a problem I was having using SLD to style some items in a layer and leave the rest as their default style. The problem I was having was that the SLD was growing to be quite big and slowing down the mapserver response time. I'm wondering if this is the best way to accomplish this. Does anyone have suggestions for other ways to accomplish selective highlighting of items within a layer. I want all items in the layer to still be drawn onto the map, but the items that match the users search to be styled differently. Tom Kralidis suggested using a FilterExpression with a SQL 'IN' clause, but I have come up empty searching the mapserver-users archives as well as Google. Any help would be _greatly_ appreciated. P.S. The layer data is stored in a SQL Server database and is accessed using an OGR .ovf file. Jeremy Wiebe Application Developer Linnet - The Land Systems Company 1600-444 St. Mary Avenue, Winnipeg, Manitoba, Canada, R3C 3T1 Tel: 1-204-957-6452 Fax: 1-204-957-7568 email: jwiebe at linnet.ca http://www.linnet.ca _______________________________________________ Mapserver-users mailing list Mapserver-users at lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users ------------- End Forwarded Message ------------- From teb at MALLIT.FR.UMN.EDU Wed Aug 4 14:14:12 2004 From: teb at MALLIT.FR.UMN.EDU (Thomas E Burk) Date: Wed, 4 Aug 2004 16:14:12 -0500 Subject: confused about QueryByPoint (FWD) Message-ID: Forwarding this to the new list. ------------- Begin Forwarded Message ------------- From: "Michael McGrath" To: mapserver-users at lists.gis.umn.edu X-Sender: mmcgrath MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by lists.gis.umn.edu id i74IW7xA007380 Subject: [Mapserver-users] confused about QueryByPoint X-BeenThere: mapserver-users at lists.gis.umn.edu X-Mailman-Version: 2.0.13 List-Unsubscribe: , List-Id: Mapserver Users Mailing List (Appropriate for general users) List-Post: List-Help: List-Subscribe: , List-Archive: Date: Wed, 04 Aug 2004 14:31:55 -0400 Hi, I'm new to Mapserver and PHP/Mapscript, and I'm currently in the process of figuring out how to perform queries. I have a simple map file with 3 layers and a small php script for zooming/panning and performing queries. Zooming and panning works fine, but when I perform queries I get strange results. If I set the query mode to MS_MULTIPLE, the function always returns every feature in the layer. If I change it to MS_SINGLE, I always get a feature that is nowhere near the feature I clicked on. Changing the UNITS attribute for the MAP results in no features being returned at all, and changing the TOLERANCEUNITS to anything besides miles also results in no features being returned. Here is my mapfile: MAP STATUS ON IMAGETYPE PNG EXTENT -79.487152 37.911423 -75.045898 39.724014 SIZE 800 600 SHAPEPATH "maps" IMAGECOLOR 255 255 255 SYMBOLSET '/var/www/htmldocs/mapfiles/etc/symbols/symbols.sym' #UNITS meters WEB IMAGEPATH "/var/www/htmldocs/mapfiles/tmp/" IMAGEURL "/mapfiles/tmp/" END #PROJECTION # "proj=utm" # "ellps=GRS80" # "zone=18x" # "north" # "no defs" #END LAYER NAME "counties" METADATA "DESCRIPTION" "CNAME" "RESULT_FIELDS" "COUNTY" END DATA "counties" STATUS ON TYPE POLYGON CLASS COLOR 168 214 138 OUTLINECOLOR 56 32 11 TEMPLATE 'dummy' END TOLERANCE 3 TOLERANCEUNITS miles #PROJECTION # "proj=utm" # "ellps=GRS80" # "zone=15" # "north" # "no defs" #END END LAYER NAME "interstate" DATA "interstate" STATUS ON TYPE LINE CLASS COLOR 0 0 0 SIZE 2 END TOLERANCE 10 END LAYER NAME "detectors" METADATA "DESCRIPTION" "Lat" "RESULT_FIELDS" 'Latitude' END DATA "detectors" STATUS ON TYPE POINT CLASS COLOR 255 0 0 SYMBOL 'circle' SYMBOL 'circle' SIZE 3 TEMPLATE "dummy" END TOLERANCE 3 TOLERANCEUNITS miles END OUTPUTFORMAT NAME png DRIVER "GD/png" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" END END And here is the php code responsible for performing the query: $detLayer = $map->getLayerByName("counties"); $detLayer->queryByPoint($my_point, MS_SINGLE, -1); $count_results = $detLayer->getNumResults(); echo $count_results . '
'; if ($count_results > 0) { $detLayer->open(); $selFields = explode(" ", $detLayer->getMetaData("CNAME")); $oRes = $detLayer->getResult(0); $oShape = $detLayer->getShape($oRes->tileindex,$oRes->shapeindex); $aResBoundBox = array($oShape->bounds->minx, $oShape->bounds->miny, $oShape->bounds->maxx, $oShape->bounds->maxy); $ID = $oShape->values['COUNTY']; echo $ID; $oShape->free(); } else { echo "nothing found
"; } The version of mapserver we are using here was compiled without proj4 support, which is why all the projection sections in the mapfile are commented out. Could that be my problem? Any light you could shed on this problem would be greatly appreciated Thanks, Mike McGrath mmcgrath AT umd DOT edu _______________________________________________ Mapserver-users mailing list Mapserver-users at lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users ------------- End Forwarded Message ------------- From huub at GEODAN.NL Wed Aug 4 14:41:29 2004 From: huub at GEODAN.NL (huub fleuren) Date: Wed, 4 Aug 2004 23:41:29 +0200 Subject: [Mapserver-users] Highlighting items in map In-Reply-To: <3CA510AEAB8DD411B66B0090273FA099041B107C@LINNET_SRV_10> Message-ID: Hi Jeremy, You could preprocess the entire operation by updating all the database records with a mark first and then make a simple IsEqual-filter on the mark. Mapserver supports 250 classes (or Rules). 250 classes is too much for any decent map. Of course you 'group' selected records by using lots of filters and only one symbol in a Rule. If you start to use the binary Filter operator for even only a few individual values, the XML becomes a laugh almost immediately. Maybe Mapserver users really should make an official RFC on the OGC Filter standard so, that the elements may be multary, or whatever the correct name for that is. Still, the SLD becomes large and mapserver sooner times out than that is crashes it seems to me. Mapserver should be able to handle (a large) sld much quicker. Regards, Huub Fleuren Wednesday, August 4, 2004, 10:10:27 PM, you wrote: JW> Hi there, JW> I posted to this list a while ago about a problem I was having using SLD to JW> style some items in a layer and leave the rest as their default style. The JW> problem I was having was that the SLD was growing to be quite big and JW> slowing down the mapserver response time. I'm wondering if this is the best JW> way to accomplish this. JW> Does anyone have suggestions for other ways to accomplish selective JW> highlighting of items within a layer. I want all items in the layer to JW> still be drawn onto the map, but the items that match the users search to be JW> styled differently. Tom Kralidis suggested using a FilterExpression with a JW> SQL 'IN' clause, but I have come up empty searching the mapserver-users JW> archives as well as Google. JW> Any help would be _greatly_ appreciated. JW> P.S. The layer data is stored in a SQL Server database and is accessed JW> using an OGR .ovf file. JW> Jeremy Wiebe JW> Application Developer JW> Linnet - The Land Systems Company JW> 1600-444 St. Mary Avenue, Winnipeg, Manitoba, Canada, R3C 3T1 JW> Tel: 1-204-957-6452 Fax: 1-204-957-7568 email: jwiebe at linnet.ca JW> http://www.linnet.ca JW> _______________________________________________ JW> Mapserver-users mailing list JW> Mapserver-users at lists.gis.umn.edu JW> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users -- Huub Fleuren Geodan IT Vestiging Zuid Buitenhaven 27A 5711 TP 's-Hertogenbosch huub at geodan.nl Tel. +31 (0)73 - 6925 160 Fax. +31 (0)73 - 6925 150 Website http://www.vz.geodan.nl/ -- Geodan IT b.v. President Kennedylaan 1 1079 MB Amsterdam (NL) Tel. +31 (0)20 - 5711 311 Fax +31 (0)20 - 5711 333 Website http://www.geodan.nl/ From dabner at OPTUSNET.COM.AU Wed Aug 4 16:12:19 2004 From: dabner at OPTUSNET.COM.AU (Nick Dabner) Date: Thu, 5 Aug 2004 09:12:19 +1000 Subject: GDAL Results Interpret for Australian Raster Message-ID: Hello all, I have a rasterset covering parts of Australia. TatukGis and other products can view it, but I cannot even get it to simply display in mapserver - usually just a blank screen. Furthermore, the information provided by gdalinfo with respect to the datum is unknown, so I am not sure if a projection is required etc. Can anyone suggest the portions of the mapfile which would allow this raster to load? I have included most of gdalinfo details below, TIA: C:\gdal120\bin>gdalinfo.exe C:\ms4w\apps\MELWAY31\hgrtif\ADELBRIS.TIF Driver: GTiff/GeoTIFF Size is 4809, 4075 Coordinate System is: PROJCS["unnamed", GEOGCS["unnamed", DATUM["unknown", SPHEROID["unretrievable - using WGS84",6378137,298.257223563]], PRIMEM["Greenwich",0], UNIT[,0.0174532925199433], AUTHORITY["EPSG","0"]], UNIT["unknown",1], AUTHORITY["EPSG","0"]] Origin = (1857716.251568,5544261.870844) Pixel Size = (317.52333125,-317.52333125) Metadata: TIFFTAG_IMAGEDESCRIPTION= TIFFTAG_DATETIME=2004:01:05 22:39:05 TIFFTAG_XRESOLUTION=300 TIFFTAG_YRESOLUTION=300 TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) Corner Coordinates: Upper Left ( 1857716.252, 5544261.871) (106439300d44'382252089395.85"E,31766280 5d42'1142461300788.73"N) Lower Left ( 1857716.252, 4250354.296) (106439300d44'382252089395.85"E,24352736 2d35'876173328429.93"N) Upper Right ( 3384685.952, 5544261.871) (193928220d 0'700079669251.66"E,31766280 5d42'1142461300788.73"N) Lower Right ( 3384685.952, 4250354.296) (193928220d 0'700079669251.66"E,24352736 2d35'876173328429.93"N) Center ( 2621201.102, 4897308.083) (150183760d22'541165879323.76"E,28059508 4d 9'1009317314579.33"N) Band 1 Block=4809x1 Type=Byte, ColorInterp=Palette Color Table (RGB with 256 entries) 0: 0,0,0,255 From jacob.delfos at MAUNSELL.COM Wed Aug 4 17:15:13 2004 From: jacob.delfos at MAUNSELL.COM (J. Delfos) Date: Thu, 5 Aug 2004 08:15:13 +0800 Subject: GDAL Results Interpret for Australian Raster Message-ID: Those are pretty unusual bounding X coordinates. Where in Oz are you? Check out this page: http://mapserver.gis.umn.edu/doc40/raster-howto.html#formats It has examples. I'd say your file is in UTM, but projected in the wrong zone (2 zones too many to the east, or something). Your projection is probably MGA, but possibly AMG. You better find out, because they differ 200m. Jacob -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Nick Dabner Sent: 5 August 2004 07:12 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] GDAL Results Interpret for Australian Raster Hello all, I have a rasterset covering parts of Australia. TatukGis and other products can view it, but I cannot even get it to simply display in mapserver - usually just a blank screen. Furthermore, the information provided by gdalinfo with respect to the datum is unknown, so I am not sure if a projection is required etc. Can anyone suggest the portions of the mapfile which would allow this raster to load? I have included most of gdalinfo details below, TIA: C:\gdal120\bin>gdalinfo.exe C:\ms4w\apps\MELWAY31\hgrtif\ADELBRIS.TIF Driver: GTiff/GeoTIFF Size is 4809, 4075 Coordinate System is: PROJCS["unnamed", GEOGCS["unnamed", DATUM["unknown", SPHEROID["unretrievable - using WGS84",6378137,298.257223563]], PRIMEM["Greenwich",0], UNIT[,0.0174532925199433], AUTHORITY["EPSG","0"]], UNIT["unknown",1], AUTHORITY["EPSG","0"]] Origin = (1857716.251568,5544261.870844) Pixel Size = (317.52333125,-317.52333125) Metadata: TIFFTAG_IMAGEDESCRIPTION= TIFFTAG_DATETIME=2004:01:05 22:39:05 TIFFTAG_XRESOLUTION=300 TIFFTAG_YRESOLUTION=300 TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) Corner Coordinates: Upper Left ( 1857716.252, 5544261.871) (106439300d44'382252089395.85"E,31766280 5d42'1142461300788.73"N) Lower Left ( 1857716.252, 4250354.296) (106439300d44'382252089395.85"E,24352736 2d35'876173328429.93"N) Upper Right ( 3384685.952, 5544261.871) (193928220d 0'700079669251.66"E,31766280 5d42'1142461300788.73"N) Lower Right ( 3384685.952, 4250354.296) (193928220d 0'700079669251.66"E,24352736 2d35'876173328429.93"N) Center ( 2621201.102, 4897308.083) (150183760d22'541165879323.76"E,28059508 4d 9'1009317314579.33"N) Band 1 Block=4809x1 Type=Byte, ColorInterp=Palette Color Table (RGB with 256 entries) 0: 0,0,0,255 From jacob.delfos at MAUNSELL.COM Wed Aug 4 17:19:35 2004 From: jacob.delfos at MAUNSELL.COM (J. Delfos) Date: Thu, 5 Aug 2004 08:19:35 +0800 Subject: Do others' messages bounce too? Message-ID: Whenever I try sending messages to the new list from Outlook, it bounces. It says: --- The message cannot be delivered to the following address. --- MAPSERVER-USERS at LISTS.UMN.EDU Remote host not found. Do others have that? The SMTP server works fine... Is our exchange server having issues? Does anyone know of anything that could cause an incompatibility with exchange? JACOB DELFOS SPATIAL INFORMATION ANALYST Maunsell Australia Pty Ltd 629 Newcastle Street PO Box 81 Leederville 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 blaine_hack1 at YAHOO.COM Wed Aug 4 20:12:58 2004 From: blaine_hack1 at YAHOO.COM (Blaine Hackett) Date: Wed, 4 Aug 2004 20:12:58 -0700 Subject: [Mapserver-users] OGR Layer with SQL In-Reply-To: <20040803163317.44185.qmail@web52504.mail.yahoo.com> Message-ID: NOE Thanks but that did not work either. I can't even get the date field working with a single date. I even changed the date field to military, short time so that it did not have the last two numbers and no AM or PM. Strangely enough if I write something like: SELECT * FROM subset WHERE tim_time=7 It does not give me an error. I get nothing on the map but it does not give me an error. If I change it ever so slightly and add the colon like this SELECT * FROM subset WHERE tim_time=7: MapServer gives me the msOGRFileOpen(): OGR error I have described. Also, I cannot use double quotes in the SrcSQL statement. It gives me a parsing error every time I try that. So, for some reason the colon is giving it fits and it must have something to do with the quotes. I also tried a semi-colon in place of the colon and that did NOT give me an error. I am at a loss. Thanks for your help. I am still hoping to figure this out soon if anyone else has ideas. Blaine --- NOE CELESTINO wrote: > Have you tried something like this: > SELECT * FROM subset > WHERE time BETWEEN ('6:00:00 AM', '7:30:00 AM') > > > but be careful 'cause maybe you'll need to write all > without capital letters. > > --- Blaine Hackett wrote: > > > All > > > > I am having a problem using SQL with OGR. The > > following SQL statement works: > > SELECT * FROM subset (time > '6:00:00 AM' > > > > > > but if I make it complex like this: > > SELECT * FROM subset (time > '6:00:00 AM') > > AND > > (time < '7:30:00 AM') > > > > It throws this error: > > msOGRFileOpen(): OGR error. Open failed for OGR > > connection ` ODBC:ODBC:user/pass at minnesotadata > > SELECT > > * FROM subset (time > '6:00:00 AM') AND (time < > > '7:30:00 AM') wkbPoint WGS84 '. File not found or > > unsupported format. > > > > The SQL syntax I am using is exactly like the > syntax > > shown on > > > http://www.remotesensing.org/gdal/ogr/ogr_sql.html. > > > > I have tried every combination of quotes and > > parenthesis and uppercase and lowercase without > > success. I have also tried copying and pasting > from > > the Access SQL window since that is the database I > > am > > linking to but that does not work at all. > > > > Anyone have any ideas what I am doing wrong? > > > > Blaine > > > > > > > > __________________________________ > > Do you Yahoo!? > > Y! Messenger - Communicate in real time. Download > > now. > > http://messenger.yahoo.com > > _______________________________________________ > > Mapserver-users mailing list > > Mapserver-users at lists.gis.umn.edu > > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > > > > > __________________________________ > Do you Yahoo!? > New and Improved Yahoo! Mail - Send 10MB messages! > http://promotions.yahoo.com/new_mail > __________________________________ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail From robert-fritz at WEB.DE Thu Aug 5 02:45:22 2004 From: robert-fritz at WEB.DE (robert fritz) Date: Thu, 5 Aug 2004 11:45:22 +0200 Subject: msDrawMap(): layer not found ??? Message-ID: Hello, My mapserver (V 4.2.0 on W2000) configuration causes a strange problem : the raster files in an image catalog are sometimes drawn, sometimes not. If there are drawn and I move the map a little bit, I get the error message : Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'RasterKat'. in D:\MS_WEB\demo4. This problem is new, I did not change anything in the mapfile or in the catalog. Robert ____________________________________________________ Aufnehmen, abschicken, nah sein - So einfach ist WEB.DE Video-Mail: http://freemail.web.de/?mc=021200 From huub at GEODAN.NL Thu Aug 5 02:57:01 2004 From: huub at GEODAN.NL (Huub Fleuren) Date: Thu, 5 Aug 2004 11:57:01 +0200 Subject: msDrawMap(): layer not found ??? Message-ID: Geachte mailer, Ik ben op vakantie van vrijdag 30 juli t/m vrijdag 27 augustus. U kunt, als u denkt dat iemand anders bij Geodan u verder kan helpen, ook contact opnemen met het algemene nummer van Geodan: 020- 5711311 of mailen naar info at geodan.nl Vriendelijke groeten, Huub Fleuren From bartvde at XS4ALL.NL Thu Aug 5 03:21:35 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Thu, 5 Aug 2004 12:21:35 +0200 Subject: out of office notices In-Reply-To: Message-ID: Hi, Because the new list now has the list e-mail address as the "reply-to address", out of office notices come to the list. They used to go only to the person posting the message. Can anything be changed on the listserver so that out of office notices don't make it to the list? Or is this inevitable? Best regards, Bart From valen at LABEIN.ES Thu Aug 5 03:49:38 2004 From: valen at LABEIN.ES (Valentin Sanchez) Date: Thu, 5 Aug 2004 05:49:38 -0500 Subject: Changing colors of features based on attribute Message-ID: Hi, I would like to change the color of a feature according to an attribute. But the value is not in the shapefile. It is stored in a different dbf. Can I use JOIN and EXPRESSION to do it? I have use this to change the color according to an attribute: CLASS COLOR 0 255 0 SYMBOL 0 EXPRESSION "Madrid" NAME "Pepito Madrid" END From bartvde at XS4ALL.NL Thu Aug 5 05:05:22 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Thu, 5 Aug 2004 14:05:22 +0200 Subject: symbol question Message-ID: Hi list, can the following symbol (see the attached png file) be made by mapserver? If yes could somebody please help me with the symbol definition? Thanks in advance. Best regards, Bart -------------- next part -------------- A non-text attachment was scrubbed... Name: linestyle.png Type: image/png Size: 5686 bytes Desc: not available URL: From EZS at DESTRAAT.NL Thu Aug 5 05:06:23 2004 From: EZS at DESTRAAT.NL (Emil Zegers) Date: Thu, 5 Aug 2004 14:06:23 +0200 Subject: Changing colors of features based on attribute Message-ID: Hello, At the moment it is not possible to classiy items based on a joined atribute. See bug 674 for more info on this. http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=674 Best regards, Emil Zegers >>> valen at LABEIN.ES 08/05/04 12:49pm >>> Hi, I would like to change the color of a feature according to an attribute. But the value is not in the shapefile. It is stored in a different dbf. Can I use JOIN and EXPRESSION to do it? I have use this to change the color according to an attribute: CLASS COLOR 0 255 0 SYMBOL 0 EXPRESSION "Madrid" NAME "Pepito Madrid" END ______________________________________________________ This message has been checked for all known viruses ______________________________________________________ From EZS at DESTRAAT.NL Thu Aug 5 05:16:19 2004 From: EZS at DESTRAAT.NL (Emil Zegers) Date: Thu, 5 Aug 2004 14:16:19 +0200 Subject: symbol question Message-ID: Hello Bart, Try something like: SYMBOL NAME "hek" TYPE vector POINTS 0 0 2 2 -99 -99 0 2 2 0 -99 -99 1 1 6 1 -99 -99 5 0 7 2 -99 -99 5 2 7 0 END END Regards, Emil Zegers >>> bartvde at XS4ALL.NL 08/05/04 02:05pm >>> Hi list, can the following symbol (see the attached png file) be made by mapserver? If yes could somebody please help me with the symbol definition? Thanks in advance. Best regards, Bart __________ VChecked ______________________________________________________ This message has been checked for all known viruses ______________________________________________________ From EZS at DESTRAAT.NL Thu Aug 5 05:39:56 2004 From: EZS at DESTRAAT.NL (Emil Zegers) Date: Thu, 5 Aug 2004 14:39:56 +0200 Subject: RV: [UMN_MAPSERVER-USERS] symbol question Message-ID: Hello Javier, I've included an image to show how it looks on my machine. I'm working with MapServer 4.2. I don't know from what version up symbols with -99 -99 coding are supported but I suppose you have an older version? Probably updating MapServer will fix it. Here the layer definition I use with the "hek" symbol: LAYER NAME ACN METADATA "wms_title" "ACN" END PROJECTION "init=epsg:28992" END TYPE POINT STATUS ON MAXSCALE 25000 DATA "acn" CLASS SIZE 8 SYMBOL "hek" NAME 'ACN' COLOR 255 0 0 END # CLASS END # LAYER Regards, Emil Zegers >>> Javier Castillejo Montes 08/05/04 02:25pm >>> -----Mensaje original----- De: Javier Castillejo Montes Enviado el: jueves, 05 de agosto de 2004 14:25 Para: 'UMN MapServer Users List' Asunto: RE: [UMN_MAPSERVER-USERS] symbol question Hi Emil I tried your simbol, but how can i do to show one simbol after other, i mean, instead on have the simbol X--X--X--X (more or less is the simbol, isn't it? :-) What I get is in each piont of the line a simbols is drawn so it does not appear as a simbol, just a line a bit bigger that if I don't use the simbol Below is the result i had!! any ideas? ______________________________________________________ This message has been checked for all known viruses ______________________________________________________ -------------- next part -------------- A non-text attachment was scrubbed... Name: mapserv.gif Type: image/gif Size: 1748 bytes Desc: not available URL: From gerry.creager at TAMU.EDU Thu Aug 5 05:50:27 2004 From: gerry.creager at TAMU.EDU (Gerry Creager N5JXS) Date: Thu, 5 Aug 2004 07:50:27 -0500 Subject: out of office notices In-Reply-To: <14359.212.238.227.182.1091701295.squirrel@webmail.xs4all.nl> Message-ID: While we encourage folks to reply to the list, it's annoying, as well, to find something that REALLY should have been sent directly to the originator went to the world. Could we PLEASE set reply to go to originator? It's a much better arrangement. It doesn't take any more effort to do a 'reply-all' when we're answering e-mail and prevents 'oopses'. Thanks Gerry Bart van den Eijnden wrote: > Hi, > > Because the new list now has the list e-mail address as the "reply-to > address", out of office notices come to the list. They used to go only to > the person posting the message. > > Can anything be changed on the listserver so that out of office notices > don't make it to the list? Or is this inevitable? > > Best regards, > Bart -- Gerry Creager -- gerry.creager at tamu.edu Network Engineering -- 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 bartvde at XS4ALL.NL Thu Aug 5 06:07:02 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Thu, 5 Aug 2004 15:07:02 +0200 Subject: symbol question In-Reply-To: Message-ID: Hi Emil, Javier, I also experience the same behaviour Javier describes, and I use Mapserver 4.2.1. The difference is Emil uses a POINT layer, whereas I use a LINE layer and Javier probably also. Any ideas? Best regards, Bart > Hello Javier, > > I've included an image to show how it looks on my machine. > > I'm working with MapServer 4.2. > > I don't know from what version up symbols with -99 -99 coding are > supported but I suppose you have an older version? > > Probably updating MapServer will fix it. > > Here the layer definition I use with the "hek" symbol: > > LAYER > NAME ACN > METADATA > "wms_title" "ACN" > END > PROJECTION > "init=epsg:28992" > END > TYPE POINT > STATUS ON > MAXSCALE 25000 > DATA "acn" > CLASS > SIZE 8 > SYMBOL "hek" > NAME 'ACN' > COLOR 255 0 > END # CLASS > END # LAYER > > Regards, > > Emil Zegers > > >>>> Javier Castillejo Montes 08/05/04 02:25pm >>> > > > -----Mensaje original----- > De: Javier Castillejo Montes > Enviado el: jueves, 05 de agosto de 2004 14:25 > Para: 'UMN MapServer Users List' > Asunto: RE: [UMN_MAPSERVER-USERS] symbol question > > > Hi Emil > > I tried your simbol, but how can i do to show one simbol after other, i > mean, instead on have the simbol X--X--X--X (more or less is the simbol, > isn't it? :-) What I get is in each piont of the line a simbols is drawn > so it does not appear as a simbol, just a line a bit bigger that if I > don't > use the simbol > > > Below is the result i had!! > > any ideas? > > > ______________________________________________________ > > This message has been checked for all known viruses > ______________________________________________________ From EZS at DESTRAAT.NL Thu Aug 5 06:18:45 2004 From: EZS at DESTRAAT.NL (Emil Zegers) Date: Thu, 5 Aug 2004 15:18:45 +0200 Subject: symbol question Message-ID: Hello Bart, A few ideas, consider them workarounds, not solutions: 1. Add an extra POINT layer with 'centroids' based on the line elements, maybe move them to be on the line when necessary. (Question from my side: Is it logical for a layer containing fences to be a LINE layer? I think symbol work 'best' on POINT layers, don't know how they behave exactly on LINE and POLYGON layers) 2. Use an image instead of a symbol (haven't tried this for LINE layers so don't know what the result will be). Regards, Emil >>> bartvde at XS4ALL.NL 08/05/04 03:07pm >>> Hi Emil, Javier, I also experience the same behaviour Javier describes, and I use Mapserver 4.2.1. The difference is Emil uses a POINT layer, whereas I use a LINE layer and Javier probably also. Any ideas? Best regards, Bart ______________________________________________________ This message has been checked for all known viruses ______________________________________________________ From huub at GEODAN.NL Thu Aug 5 06:16:01 2004 From: huub at GEODAN.NL (huub fleuren) Date: Thu, 5 Aug 2004 15:16:01 +0200 Subject: out of office notices In-Reply-To: <41122D13.1060302@tamu.edu> Message-ID: Hallo UMN, a better advice would be to encourage people with a day off to really stay away from work, that is to say, from lists ;-) sorry to be trespassing again... Huub (still on vacation) Thursday, August 5, 2004, 2:50:27 PM, you wrote: GCN> While we encourage folks to reply to the list, it's annoying, as well, GCN> to find something that REALLY should have been sent directly to the GCN> originator went to the world. GCN> Could we PLEASE set reply to go to originator? It's a much better GCN> arrangement. GCN> It doesn't take any more effort to do a 'reply-all' when we're answering GCN> e-mail and prevents 'oopses'. GCN> Thanks GCN> Gerry GCN> Bart van den Eijnden wrote: >> Hi, >> >> Because the new list now has the list e-mail address as the "reply-to >> address", out of office notices come to the list. They used to go only to >> the person posting the message. >> >> Can anything be changed on the listserver so that out of office notices >> don't make it to the list? Or is this inevitable? >> >> Best regards, >> Bart GCN> -- GCN> Gerry Creager -- gerry.creager at tamu.edu GCN> Network Engineering -- AATLT, Texas A&M University GCN> Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 GCN> Page: 979.228.0173 GCN> Office: 903A Eller Bldg, TAMU, College Station, TX 77843 -- Huub Fleuren Geodan IT Vestiging Zuid Buitenhaven 27A 5711 TP 's-Hertogenbosch huub at geodan.nl Tel. +31 (0)73 - 6925 160 Fax. +31 (0)73 - 6925 150 Website http://www.vz.geodan.nl/ -- Geodan IT b.v. President Kennedylaan 1 1079 MB Amsterdam (NL) Tel. +31 (0)20 - 5711 311 Fax +31 (0)20 - 5711 333 Website http://www.geodan.nl/ From edspremolla at ANTEL.COM.UY Thu Aug 5 05:51:55 2004 From: edspremolla at ANTEL.COM.UY (Eduardo Spremolla) Date: Thu, 5 Aug 2004 09:51:55 -0300 Subject: RV: [UMN_MAPSERVER-USERS] symbol question In-Reply-To: Message-ID: If I understand correct what he wants is to draw a line with the symbol. In that case you have to use a overlay of 2 symbols. Search the archive or the wiki for a railway lines examples. LALO El jue, 05-08-2004 a las 09:39, Emil Zegers escribi?: > Hello Javier, > > I've included an image to show how it looks on my machine. > > I'm working with MapServer 4.2. > > I don't know from what version up symbols with -99 -99 coding are supported but I suppose you have an older version? > > Probably updating MapServer will fix it. > > Here the layer definition I use with the "hek" symbol: > > LAYER > NAME ACN > METADATA > "wms_title" "ACN" > END > PROJECTION > "init=epsg:28992" > END > TYPE POINT > STATUS ON > MAXSCALE 25000 > DATA "acn" > CLASS > SIZE 8 > SYMBOL "hek" > NAME 'ACN' > COLOR 255 0 0 > END # CLASS > END # LAYER > > Regards, > > Emil Zegers > > > >>> Javier Castillejo Montes 08/05/04 02:25pm >>> > > > -----Mensaje original----- > De: Javier Castillejo Montes > Enviado el: jueves, 05 de agosto de 2004 14:25 > Para: 'UMN MapServer Users List' > Asunto: RE: [UMN_MAPSERVER-USERS] symbol question > > > Hi Emil > > I tried your simbol, but how can i do to show one simbol after other, i > mean, instead on have the simbol X--X--X--X (more or less is the simbol, > isn't it? :-) What I get is in each piont of the line a simbols is drawn > so it does not appear as a simbol, just a line a bit bigger that if I don't > use the simbol > > > Below is the result i had!! > > any ideas? > > > ______________________________________________________ > > This message has been checked for all known viruses > ______________________________________________________ -- Eduardo Spremolla Antel I+D From craig.gould at BT.COM Thu Aug 5 06:34:47 2004 From: craig.gould at BT.COM (C Gould) Date: Thu, 5 Aug 2004 14:34:47 +0100 Subject: TileIndex & Raster Images Problem Message-ID: Folks, I have several layers using TileIndexes which link to georeferenced tif images. The layers show happily (when in zoom range) when one of the images is displayed on the map image being requested but mapserver fails with the following error message if there is no tile being displayed on the reqeusted map image: msDrawMap(): Image handling error. Failed to draw layer named 'Blah' I'm probably doing something quite stupid, but can anyone suggest what? Ta C Craig Gould __________________________________________ British Telecommunications plc Registered office: 81 Newgate Street London EC1A 7AJ Registered in England no. 1800000 This electronic message contains information from British Telecommunications plc which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone or email (to the number or address above) immediately. Activity and use of the British Telecommunications plc email system is monitored to secure its effective operation and for other lawful business purposes. Communications using this system will also be monitored and may be recorded to secure effective operation and for other lawful business purposes -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Thu Aug 5 07:09:59 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Thu, 5 Aug 2004 16:09:59 +0200 Subject: symbol question In-Reply-To: <1091710314.8508.2.camel@fly.in.iantel.com.uy> Message-ID: Hi, Thanks. Your tip got it working. Here's the solution for the record. SYMBOL NAME "fence" TYPE truetype FONT "monospace" CHARACTER "X" GAP 10 END CLASS EXPRESSION /8192|8191|8190/ NAME "fence" STYLE SYMBOL "circle" COLOR 0 0 0 SIZE 1 END OVERLAYSYMBOL 'fence' OVERLAYCOLOR 0 0 0 OVERLAYSIZE 10 END Best regards, Bart > If I understand correct what he wants is to draw a line with the symbol. > In that case you have to use a overlay of 2 symbols. > Search the archive or the wiki for a railway lines examples. > > > LALO > > El jue, 05-08-2004 a las 09:39, Emil Zegers escribi??: >> Hello Javier, >> >> I've included an image to show how it looks on my machine. >> >> I'm working with MapServer 4.2. >> >> I don't know from what version up symbols with -99 -99 coding are >> supported but I suppose you have an older version? >> >> Probably updating MapServer will fix it. >> >> Here the layer definition I use with the "hek" symbol: >> >> LAYER >> NAME ACN >> METADATA >> "wms_title" "ACN" >> END >> PROJECTION >> "init=epsg:28992" >> END >> TYPE POINT >> STATUS ON >> MAXSCALE 25000 >> DATA "acn" >> CLASS >> SIZE 8 >> SYMBOL "hek" >> NAME 'ACN' >> COLOR 255 0 >> END # CLASS >> END # LAYER >> >> Regards, >> >> Emil Zegers >> >> >> >>> Javier Castillejo Montes 08/05/04 02:25pm >>> >> >> >> -----Mensaje original----- >> De: Javier Castillejo Montes >> Enviado el: jueves, 05 de agosto de 2004 14:25 >> Para: 'UMN MapServer Users List' >> Asunto: RE: [UMN_MAPSERVER-USERS] symbol question >> >> >> Hi Emil >> >> I tried your simbol, but how can i do to show one simbol after other, i >> mean, instead on have the simbol X--X--X--X (more or less is the >> simbol, >> isn't it? :-) What I get is in each piont of the line a simbols is >> drawn >> so it does not appear as a simbol, just a line a bit bigger that if I >> don't >> use the simbol >> >> >> Below is the result i had!! >> >> any ideas? >> >> >> ______________________________________________________ >> >> This message has been checked for all known viruses >> ______________________________________________________ > -- > Eduardo Spremolla > Antel I+D > > From ed at TOPOZONE.COM Thu Aug 5 06:47:57 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 5 Aug 2004 09:47:57 -0400 Subject: TileIndex & Raster Images Problem Message-ID: Craig - I'm not quite sure I exactly understand the symptom. Does the error happen when the layer has valid images but none of them are currently in view, or when you view a layer with no images defined in it? If it's the first case, can you create the problem by scrolling/panning off the edge of the data until it appears, and then pan back on to the map correctly? - Ed Ed McNierney President and Chief Mapmaker TopoZone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of C Gould Sent: Thursday, August 05, 2004 9:35 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] TileIndex & Raster Images Problem Folks, I have several layers using TileIndexes which link to georeferenced tif images. The layers show happily (when in zoom range) when one of the images is displayed on the map image being requested but mapserver fails with the following error message if there is no tile being displayed on the reqeusted map image: msDrawMap(): Image handling error. Failed to draw layer named 'Blah' I'm probably doing something quite stupid, but can anyone suggest what? Ta C Craig Gould __________________________________________ British Telecommunications plc Registered office: 81 Newgate Street London EC1A 7AJ Registered in England no. 1800000 This electronic message contains information from British Telecommunications plc which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone or email (to the number or address above) immediately. Activity and use of the British Telecommunications plc email system is monitored to secure its effective operation and for other lawful business purposes. Communications using this system will also be monitored and may be recorded to secure effective operation and for other lawful business purposes From adams at TERRESTRIS.DE Thu Aug 5 06:52:52 2004 From: adams at TERRESTRIS.DE (Till Adams) Date: Thu, 5 Aug 2004 15:52:52 +0200 Subject: symbol question In-Reply-To: <6172.212.238.227.182.1091707522.squirrel@webmail.xs4all.nl> Message-ID: Bart, (I guess you mean the "x---x" symbol) Define two symbols, the "line" as usual and the "x" and include a "GAP" in the definition of the x-symbol, e.g. SYMBOL NAME "frontier" TYPE truetype FONT ttf_1 FILLED True ANTIALIAS True GAP 30 Character "D" END The GAP is the distance ms uses between the drawing of the single crosses. Then use sth. like: CLASS NAME 'Object' EXPRESSION /^sth/ STYLE SYMBOL 'line' SIZE 3 COLOR 0 0 0 END STYLE SYMBOL 'frontier' SIZE 12 COLOR 0 0 0 END END # CLASS Cheers, Till ;-) Bart van den Eijnden schrieb: > Hi list, > > can the following symbol (see the attached png file) be made by mapserver? > > If yes could somebody please help me with the symbol definition? > > Thanks in advance. > > Best regards, > Bart > > > ------------------------------------------------------------------------ > -- best reagrds, Till Adams ****************************************** * 14.09.2004 ** 14.09.2004 ** 14.09.2004 * * * * deutschsprachige UMN Anwenderkonferenz * * Info&Anmeldung: www.umn-mapserver.de * * * * 14.09.2004 ** 14.09.2004 ** 14.09.2004 * ****************************************** ------------------------------------------ Dipl. Geogr. Till Adams terrestris, Paulsen&Adams GbR Siemensstr. 8 * 53121 Bonn Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 info at terrestris.de * www.terrestris.de From craig.gould at BT.COM Thu Aug 5 07:27:05 2004 From: craig.gould at BT.COM (C Gould) Date: Thu, 5 Aug 2004 15:27:05 +0100 Subject: TileIndex & Raster Images Problem Message-ID: Ed It's the first case, and I can create the error just as you describe. My layer defs are like this: LAYER NAME "ASubject" GROUP "PRM" TYPE RASTER TILEINDEX "C:\MyPath\ASubject.shp" TILEITEM "location" MAXSCALE 100000 STATUS OFF OFFSITE 255 255 255 CLASS NAME "ASubject" END END I'm using the windows binaries for 4.2 Thanks, C -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney Sent: 05 August 2004 14:48 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] TileIndex & Raster Images Problem Craig - I'm not quite sure I exactly understand the symptom. Does the error happen when the layer has valid images but none of them are currently in view, or when you view a layer with no images defined in it? If it's the first case, can you create the problem by scrolling/panning off the edge of the data until it appears, and then pan back on to the map correctly? - Ed Ed McNierney President and Chief Mapmaker TopoZone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of C Gould Sent: Thursday, August 05, 2004 9:35 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] TileIndex & Raster Images Problem Folks, I have several layers using TileIndexes which link to georeferenced tif images. The layers show happily (when in zoom range) when one of the images is displayed on the map image being requested but mapserver fails with the following error message if there is no tile being displayed on the reqeusted map image: msDrawMap(): Image handling error. Failed to draw layer named 'Blah' I'm probably doing something quite stupid, but can anyone suggest what? Ta C Craig Gould __________________________________________ British Telecommunications plc Registered office: 81 Newgate Street London EC1A 7AJ Registered in England no. 1800000 This electronic message contains information from British Telecommunications plc which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone or email (to the number or address above) immediately. Activity and use of the British Telecommunications plc email system is monitored to secure its effective operation and for other lawful business purposes. Communications using this system will also be monitored and may be recorded to secure effective operation and for other lawful business purposes From dmorissette at DMSOLUTIONS.CA Thu Aug 5 07:44:20 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Thu, 5 Aug 2004 10:44:20 -0400 Subject: out of office notices In-Reply-To: <14359.212.238.227.182.1091701295.squirrel@webmail.xs4all.nl> Message-ID: Bart van den Eijnden wrote: > Hi, > > Because the new list now has the list e-mail address as the "reply-to > address", out of office notices come to the list. They used to go only to > the person posting the message. > > Can anything be changed on the listserver so that out of office notices > don't make it to the list? Or is this inevitable? > Another reason may be that this new list server doesn't seem to set the "Precedence: bulk" that mailman and other list servers usually set in the email headers. Auto-reply programsusually look for that kind of stuff too before sendinga reply. The header from this listserv contains "Precedence: fm-user", does anyone know what that means? Here is an excerpt from the man page of the one and only "vacation" program: "No message is sent if the `To:' or the `Cc:' line does not list the user to whom the original message was sent or one of a number of aliases for them, if the initial From line includes one of the strings -request@, postmaster, uucp, mailer-daemon, mailer or -relay or if a `Precedence: bulk' or `Precedence: junk' or `Precedence: list' line is included in the header. The search for special senders is made case-independant." Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From dmorissette at DMSOLUTIONS.CA Thu Aug 5 07:52:12 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Thu, 5 Aug 2004 10:52:12 -0400 Subject: out of office notices In-Reply-To: <411247C4.1060106@dmsolutions.ca> Message-ID: Daniel Morissette wrote: > > Another reason may be that this new list server doesn't seem to set the > "Precedence: bulk" that mailman and other list servers usually set in > the email headers. Oh wait. I was partly wrong: - Most of the time the listserv sets "Precedence: list" in the header which is fine and will prevent vacation and similar programs from sending a reply. - There was an exception: the first email in this thread where an out of office message popped up did contain "Precedence: fm-user" instead, and that's the only one that I could find with that. Anybody know why the behavior is not always consistent? Keep the MapServer questions going, the ratio of MapServer posts vs listserv tests/posts on the new list is soon going to be to the advantage of MapServer. ;) Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From aflorio at GISPLAN.COM.BR Thu Aug 5 07:57:21 2004 From: aflorio at GISPLAN.COM.BR (Alexandre Florio) Date: Thu, 5 Aug 2004 11:57:21 -0300 Subject: SLD Question Message-ID: Hi, I can't get SLD to work. What are the requirements? Isn't it enough to have Mapserver compiled with support to WMS? Do I have to put some metadata information in the .map file? This is the request I'm using to test: http://localhost/cgi-bin/mapserv?SERVICE=WMS&VERSION=1.1.1&Request=GetMap&LAYERS=uf&SLD=http://localhost/prototipo-gis/test.xml&map=prototipo-gis/prototipo-gis-wms.map I should be able to see, in the webserver's logs, Mapserver trying to fetch the file "test.xml", right? Nothing shows up there, except the request above... I'm using latest Mapserver version 4.2.2. Thanks in advance Alexandre From bhudspeth at EDAC.UNM.EDU Thu Aug 5 08:02:44 2004 From: bhudspeth at EDAC.UNM.EDU (Bill Hudspeth) Date: Thu, 5 Aug 2004 09:02:44 -0600 Subject: Saving legend icon images with python mapscript Message-ID: Hello, I am building a dictionary that loops through map file layers and stores information about layer attributes. One attribute I want to store is the URL of the legend icon image for each layer class. In the past, I have used PHP mapscript to do this with two functions, createLegendIcon() and saveWebImage(): $legend_image = $current_class->createLegendIcon(12,12); // Class Legend Image object $legend_info[$ii]['image_url'] = $legend_image->saveWebImage(MS_PNG,1,1,0); I have found documentation for createLegendIcon() in Python mapscript, which creates a new image object. I cannot, however, find information on something analogous to saveWebImage() in Python mapscript. There is some information regarding the save() and saveImage() functions that operate on image objects. I am a little unclear about how to use them in such a way as to avoid passing in a static image filename, as I am processing these images in a loop structure and don't want to overwrite files. I would appreciate any information on how I might solve this problem. Thanks, Bill From ed at TOPOZONE.COM Thu Aug 5 08:14:14 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 5 Aug 2004 10:14:14 -0500 Subject: advice on applicability Message-ID: James - Try www.topozone.com - we are currently serving about 575,000 individual color and black and white raster images with quite a few more coming soon. About half the images are less than 5 MB, while the rest are about three-quarters ~50 MB files and one-quarter ~150 MB files. The entire data set is slightly under 20 Terabytes. We do have a similar sort of overlap, in which one spot may be covered by black and white or color images or both, and where there may be more than one version (current/historical) of each image. In a simple MapServer application the order of image display is controlled by the ordering of the layers in the map file. We serve all our imagery through the OGC WMS interface, and that interface allows the order of layers to be explicitly specified for each request. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. On Tue, 3 Aug 2004 06:58:33 -0500, James Reid wrote: >hi - my organisation is currently looking at options for delivering >(viewing/panning/zoom) black and white raster maps. There are c. 500,000 >individual images ranging in size from a few hundred K to 8-9 Mb. > >teh nature of teh maps is that teh same area could be covered by more than >one image and several images for teh same area may exist. > >if I use tileindex to pint to the images and the index shapefile has several >polys for the same area pointing to differnt images, is that permissible and >if so is it possible to configure mapserver to select a specific one? > >we'd also apprciate pointers to some case studies or stats from other sites >using mapserver to serve up lots of images, especially wrt to load balancing >and performance. > >all comments appreciated : ) From lfilak at MEDINACO.ORG Thu Aug 5 08:21:48 2004 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Thu, 5 Aug 2004 11:21:48 -0400 Subject: Saving legend icon images with python mapscript Message-ID: You can save to any image name you create to avoid overwriting files. In perl I use parts of localtime + process id (hmmm... which I supose will need to change for mod_perl): my $sfile = "T$hr$min$sec$spid"; $image->save("$sfile.png"); HTH Lowell The following message was sent by Bill Hudspeth on Thu, 5 Aug 2004 09:02:44 -0600. > Hello, > > I am building a dictionary that loops through map file layers and stores > information about layer attributes. One attribute I want to store is the > URL of the legend icon image for each layer class. In the past, I have > used PHP mapscript to do this with two functions, createLegendIcon() and > saveWebImage(): > > $legend_image = $current_class->createLegendIcon(12,12); // Class > Legend Image object > $legend_info[$ii]['image_url'] = $legend_image->saveWebImage(MS_PNG,1,1,0); > > I have found documentation for createLegendIcon() in Python mapscript, > which creates a new image object. I cannot, however, find information on > something analogous to saveWebImage() in Python mapscript. There is some > information regarding the save() and saveImage() functions that operate > on image objects. I am a little unclear about how to use them in such a > way as to avoid passing in a static image filename, as I am processing > these images in a loop structure and don't want to overwrite files. I > would appreciate any information on how I might solve this problem. > > Thanks, Bill From Jwiebe at LINNET.CA Thu Aug 5 08:11:24 2004 From: Jwiebe at LINNET.CA (Jeremy Wiebe) Date: Thu, 5 Aug 2004 10:11:24 -0500 Subject: SLD Question Message-ID: Our application uses SLD successfully. Here's an example mapserver query using SLD: http://realestate/scripts/mapserv.exe?version=1.1.0&map=d:\website\mapsample s\wms_server\map\realestate.linnet.com\wms.map&request=getmap&srs=epsg:26914 &bbox=633777,5514480,641839,5522542&layers=regions,majorroads,hydrography,ne ighborhoods,churches,schools,cadastral,roads,property&SLD=http://realestate/ SldFiles/dfc0c904-b0c7-49e2-9ff5-26108199a7f9.xml&WIDTH=350&HEIGHT=350 Below is the example SLD also: property PropertyFilter PROPERTY_ID 101063 locatedAt star #00ff00 8.0 locatedAt circle #ff8484 5.0 And yes, you should be able to see the mapserv.exe fetching the xml file from the web server. One other thing to test would be to send the actual SLD to the mapserv.exe using the SLD_BODY CGI variable as opposed to using the SLD CGI variable. Hope that helps, Jeremy Wiebe Application Developer -----Original Message----- From: Alexandre Florio [mailto:aflorio at GISPLAN.COM.BR] Sent: August 5, 2004 9:57 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] SLD Question Hi, I can't get SLD to work. What are the requirements? Isn't it enough to have Mapserver compiled with support to WMS? Do I have to put some metadata information in the .map file? This is the request I'm using to test: http://localhost/cgi-bin/mapserv?SERVICE=WMS&VERSION=1.1.1&Request=GetMap&LA YERS=uf&SLD=http://localhost/prototipo-gis/test.xml&map=prototipo-gis/protot ipo-gis-wms.map I should be able to see, in the webserver's logs, Mapserver trying to fetch the file "test.xml", right? Nothing shows up there, except the request above... I'm using latest Mapserver version 4.2.2. Thanks in advance Alexandre From Eric.Hancock at DEP.STATE.FL.US Thu Aug 5 08:30:40 2004 From: Eric.Hancock at DEP.STATE.FL.US (Hancock, Eric) Date: Thu, 5 Aug 2004 11:30:40 -0400 Subject: prj to epsg Message-ID: Hey all, I'm wondering if there is a script, program or if someone can tell me how to convert an esri prj file to an epsg entry. -Eric Hancock From matt2 at ROFFS.COM Thu Aug 5 08:52:00 2004 From: matt2 at ROFFS.COM (Matt Upton) Date: Thu, 5 Aug 2004 11:52:00 -0400 Subject: Does MapServe handle HDF files? Message-ID: Greetings, let me explain my situation and I would like to get your input and suggestions. I need to take raw satellite imagery HDF files (from saa.noaa.gov for example) extract the band we need (chlorophyll, sst, etc...) and convert them to tiff files (or geotiff) so they can be used in GIS and Photoshop. Most importantly, we have to transform them to Mercator Cylindrical projection in a WGS 72 datum. Do you have any ideas on the best way to tackle this? I have some ideas, but we do not have the resources here (no UNIX machine or IDL or MATLAB (yet)). We have Windows (PC) and mainly Mac?s. I have played around with downloading and experimenting with different software (CDAT, HDFview, Hdf-EOS to GIS conversion, and HDFLook (which I can?t even get to work)) with no luck yet. Thanks so much for your time and let me know if MapServer does this sort of task. Matt Upton ------------ Matthew A. Upton Satellite Imagery Analyst/Fisheries Oceanographer Roffer?s Ocean Fishing Forecasting Service, Inc. (ROFFS) 2871 S.W. 69th Court, Miami, FL 33155 office:305-262-8336 matt2 at roffs.com ------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at DNR.STATE.MN.US Thu Aug 5 11:06:00 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 5 Aug 2004 13:06:00 -0500 Subject: Does MapServe handle HDF files? Message-ID: MapServer doesn't do this per se. However, one of the toolsets MapServer is built on top of probably can. I would recommend you checkout GDAL at: http://gdal.maptools.org/index.html Steve >>> matt2 at ROFFS.COM 8/5/2004 10:52:00 AM >>> Greetings, let me explain my situation and I would like to get your input and suggestions. I need to take raw satellite imagery HDF files (from saa.noaa.gov for example) extract the band we need (chlorophyll, sst, etc...) and convert them to tiff files (or geotiff) so they can be used in GIS and Photoshop. Most importantly, we have to transform them to Mercator Cylindrical projection in a WGS 72 datum. Do you have any ideas on the best way to tackle this? I have some ideas, but we do not have the resources here (no UNIX machine or IDL or MATLAB (yet)). We have Windows (PC) and mainly Mac?s. I have played around with downloading and experimenting with different software (CDAT, HDFview, Hdf-EOS to GIS conversion, and HDFLook (which I can?t even get to work)) with no luck yet. Thanks so much for your time and let me know if MapServer does this sort of task. Matt Upton ------------ Matthew A. Upton Satellite Imagery Analyst/Fisheries Oceanographer Roffer?s Ocean Fishing Forecasting Service, Inc. (ROFFS) 2871 S.W. 69th Court, Miami, FL 33155 office:305-262-8336 matt2 at roffs.com ------------ From assefa at DMSOLUTIONS.CA Thu Aug 5 10:58:13 2004 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Thu, 5 Aug 2004 13:58:13 -0400 Subject: SLD Question In-Reply-To: <20040805115721.41acf18a.aflorio@gisplan.com.br> Message-ID: Hi There, You could also check few examples of sld usage on the mapserver's wiki page, that might help you if the problem is with sld syntax : http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?SLDMapServer Later, Alexandre Florio wrote: > Hi, > > I can't get SLD to work. What are the requirements? > Isn't it enough to have Mapserver compiled with support to WMS? Do I have to put some > metadata information in the .map file? > This is the request I'm using to test: > > http://localhost/cgi-bin/mapserv?SERVICE=WMS&VERSION=1.1.1&Request=GetMap&LAYERS=uf&SLD=http://localhost/prototipo-gis/test.xml&map=prototipo-gis/prototipo-gis-wms.map > > I should be able to see, in the webserver's logs, Mapserver trying to fetch the file "test.xml", right? Nothing shows up there, except the request above... > > I'm using latest Mapserver version 4.2.2. > > Thanks in advance > Alexandre > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From David.Fawcett at STATE.MN.US Thu Aug 5 11:57:11 2004 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Thu, 5 Aug 2004 13:57:11 -0500 Subject: DHTML - CBE - Workshop - Itemquery Message-ID: Is there anyone using Steve Lime's DHTML Workshop demo who has implemented itemquery functionality through the interface. I understand how to an itemquery works through a URL, I am just not sure how to pass an itemquery request through the workshop/CBE interface? Thanks, David. David J. Fawcett MN Office of Environmental Assistance From steve.lime at DNR.STATE.MN.US Thu Aug 5 12:35:14 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 5 Aug 2004 14:35:14 -0500 Subject: Fwd: US-CERT Technical Cyber Security Alert TA04-217A -- Multiple Vulnerabilities in libpng Message-ID: In case folks missed it... Steve -------------- next part -------------- An embedded message was scrubbed... From: CERT Advisory Subject: US-CERT Technical Cyber Security Alert TA04-217A -- Multiple Vulnerabilities in libpng Date: Wed, 4 Aug 2004 13:47:56 -0400 Size: 7746 URL: From Andrew.Koebrick at STATE.MN.US Thu Aug 5 14:15:38 2004 From: Andrew.Koebrick at STATE.MN.US (Andrew Koebrick) Date: Thu, 5 Aug 2004 16:15:38 -0500 Subject: dynamic content in template file? Message-ID: A developer in our office is hoping to include scripting in her mapserver template file. Either PHP or Apache::ASP (Perl) would do. However, I am unable to get a handler to work on the file, presumably because the CGI version of mapserver being used bypasses those content handlers. We are using the Apache 2.0 server, so it seems like I should be able to get this to work using output filters, but so far nothing but frustration. Has anyone tried and succeeded in running php or embedded perl in a template file? Andrew Koebrick Web Coordinator / Librarian Dept. of Administration State of Minnesota 658 Cedar St. St. Paul, MN 55155 651-296-4156 http://server.admin.state.mn.us -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Thu Aug 5 14:35:14 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 5 Aug 2004 17:35:14 -0400 Subject: dynamic content in template file? Message-ID: Andrew - This will not work. A given HTTP request (e.g. http://www.yourserver.com/cgi-bin/mapserv?foo=foo...) gets sent to a target handler based on the server setup, etc. In the MapServer CGI case, you're telling the Web server to generate the HTML (note that I said HTML) output back to the requesting client by executing the MapServer CGI binary and passing parameters to it. If you're making a request to a PHP resource, the Web server will be configured to run the PHP handler (often another CGI program) and pass some parameters to it, including the name of the script source file. The PHP binary runs, processes the PHP script and (optionally) the HTTP request parameters, and generates HTML output to return to the browser. Every HTTP request is handled by one resource. You can't, for example, write a PHP script that generates an ASP script to be run through the ASP processor to generate the output. Likewise, you can't have a CGI program (like MapServer) write PHP script that's run through the PHP processor to create the output. I suppose it is theoretically possible to create a PHP script that takes MapServer parameters as input, constructs a MapServer HTTP request, passes that to MapServer, catches the PHP output, and runs that output through the PHP processor. I'm not even sure that's possible (I couldn't think just how you would do it, but I'm not a PHP expert). If you want to include scripting - a very reasonable thing to want - you're better off with MapScript. Write your PHP application and have it use the MapScript bindings to create maps. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Andrew Koebrick Sent: Thursday, August 05, 2004 5:16 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] dynamic content in template file? A developer in our office is hoping to include scripting in her mapserver template file. Either PHP or Apache::ASP (Perl) would do. However, I am unable to get a handler to work on the file, presumably because the CGI version of mapserver being used bypasses those content handlers. We are using the Apache 2.0 server, so it seems like I should be able to get this to work using output filters, but so far nothing but frustration. Has anyone tried and succeeded in running php or embedded perl in a template file? Andrew Koebrick Web Coordinator / Librarian Dept. of Administration State of Minnesota 658 Cedar St. St. Paul, MN 55155 651-296-4156 http://server.admin.state.mn.us From dabner at OPTUSNET.COM.AU Thu Aug 5 15:02:51 2004 From: dabner at OPTUSNET.COM.AU (Nick Dabner) Date: Fri, 6 Aug 2004 08:02:51 +1000 Subject: GDAL Results Interpret for Australian Raster In-Reply-To: <000501c47a81$47af57e0$5d2815ac@auper1pc364> Message-ID: Thanks Jacob. As the path may have indicated. These are Ausways maps. I believe they are in AMG66 format, although my associated vectors are in WGS84 so I am told. The map covers Adelaide to Brisbane which is potentially providing the conflicting zone info you noted. I am personally in Melbourne. How can you tell what zone - by the longitude? Would you use the centroid as this is a large map? regards, Nick On 05/08/2004, at 10:15 AM, J. Delfos wrote: > Those are pretty unusual bounding X coordinates. Where in Oz are you? > Check out this page: > http://mapserver.gis.umn.edu/doc40/raster-howto.html#formats > > It has examples. I'd say your file is in UTM, but projected in the > wrong > zone (2 zones too many to the east, or something). Your projection is > probably MGA, but possibly AMG. You better find out, because they > differ > 200m. > > Jacob > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On > Behalf Of Nick Dabner > Sent: 5 August 2004 07:12 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] GDAL Results Interpret for Australian > Raster > > > Hello all, > > I have a rasterset covering parts of Australia. TatukGis and other > products can view it, but I cannot even get it to simply display in > mapserver - usually just a blank screen. Furthermore, the information > provided by gdalinfo with respect to the datum is unknown, so I am not > sure if a projection is required etc. > > Can anyone suggest the portions of the mapfile which would allow this > raster to load? I have included most of gdalinfo details below, TIA: > > C:\gdal120\bin>gdalinfo.exe C:\ms4w\apps\MELWAY31\hgrtif\ADELBRIS.TIF > Driver: GTiff/GeoTIFF > Size is 4809, 4075 > Coordinate System is: > PROJCS["unnamed", > GEOGCS["unnamed", > DATUM["unknown", > SPHEROID["unretrievable - using > WGS84",6378137,298.257223563]], > PRIMEM["Greenwich",0], > UNIT[,0.0174532925199433], > AUTHORITY["EPSG","0"]], > UNIT["unknown",1], > AUTHORITY["EPSG","0"]] > Origin = (1857716.251568,5544261.870844) > Pixel Size = (317.52333125,-317.52333125) > Metadata: > TIFFTAG_IMAGEDESCRIPTION= > > TIFFTAG_DATETIME=2004:01:05 22:39:05 > TIFFTAG_XRESOLUTION=300 > TIFFTAG_YRESOLUTION=300 > TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) > Corner Coordinates: > Upper Left ( 1857716.252, 5544261.871) > (106439300d44'382252089395.85"E,31766280 > 5d42'1142461300788.73"N) > Lower Left ( 1857716.252, 4250354.296) > (106439300d44'382252089395.85"E,24352736 > 2d35'876173328429.93"N) > Upper Right ( 3384685.952, 5544261.871) (193928220d > 0'700079669251.66"E,31766280 > 5d42'1142461300788.73"N) > Lower Right ( 3384685.952, 4250354.296) (193928220d > 0'700079669251.66"E,24352736 > 2d35'876173328429.93"N) > Center ( 2621201.102, 4897308.083) > (150183760d22'541165879323.76"E,28059508 > 4d 9'1009317314579.33"N) > Band 1 Block=4809x1 Type=Byte, ColorInterp=Palette > Color Table (RGB with 256 entries) > 0: 0,0,0,255 > > From ARyan at CO.LINN.OR.US Thu Aug 5 15:07:56 2004 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Thu, 5 Aug 2004 15:07:56 -0700 Subject: symbol question Message-ID: Bart, I suggested the use of the STYLE TYPE parameter. See http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=756 This would solve your problem as you could have two styles, one point style and one line style, in a single layer. Don't know if it's doable. Or, add an extra layer. Adam -----Original Message----- From: Bart van den Eijnden [mailto:bartvde at XS4ALL.NL] Sent: Thursday, August 05, 2004 5:05 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] symbol question Hi list, can the following symbol (see the attached png file) be made by mapserver? If yes could somebody please help me with the symbol definition? Thanks in advance. Best regards, Bart From ARyan at CO.LINN.OR.US Thu Aug 5 15:15:16 2004 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Thu, 5 Aug 2004 15:15:16 -0700 Subject: dynamic content in template file? Message-ID: Andrew, Unless things have changed or I'm out of it, templates don't work that way. If you're using CGI mapserver the only scripting you'll be able to do is client side using the substitution strings mapserver provides. Adam -----Original Message----- From: Andrew Koebrick [mailto:Andrew.Koebrick at STATE.MN.US] Sent: Thursday, August 05, 2004 2:16 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] dynamic content in template file? A developer in our office is hoping to include scripting in her mapserver template file. Either PHP or Apache::ASP (Perl) would do. However, I am unable to get a handler to work on the file, presumably because the CGI version of mapserver being used bypasses those content handlers. We are using the Apache 2.0 server, so it seems like I should be able to get this to work using output filters, but so far nothing but frustration. Has anyone tried and succeeded in running php or embedded perl in a template file? Andrew Koebrick Web Coordinator / Librarian Dept. of Administration State of Minnesota 658 Cedar St. St. Paul, MN 55155 651-296-4156 http://server.admin.state.mn.us From jclabaugh at MAC.COM Thu Aug 5 15:36:58 2004 From: jclabaugh at MAC.COM (Jerod Clabaugh) Date: Thu, 5 Aug 2004 17:36:58 -0500 Subject: MapScript (centering a dynamic point layer) Message-ID: Hi: I am just working my into the PHP/Mpascript world so bear with me. I am working to show a list of information about a biological specimen, displaying the locality of the specimen as a point on a small map. I can generate such a small map on-the fly by generating a dynamic point layer pulling UTM coordinates from PostgreSQL/PostGIS db (with dummy point layer in map file). No problems so far. My problem is that some species aren't showing up on these maps b/c they are not in the 'frame' (further south or north of the area of the map being drawn). I need to readjust the map to center on the point being drawn. I know that this likely requires adjusting the extents and using the zoompoint method, but other than that I'm lost. [Specs: Mapserver 4.2.2, PHP 4.3.7 CGI, Apache2, PostgreSQL 7.4.2 with PostGIS 0.81; all functional.] I have looked online and at the mapscript wiki but all the examples I find are trying to capture a user's click on a ma and my attempts to modify that code have failed. Any help you can give me is much appreciated. Cheers, Jerod Clabaugh =-=-=PHP CODE=-=-= //load Mapscript dl('php_mapscript.so'); // generate and execute the query $connection = pg_connect("user=xxxx dbname=xxxx host=localhost"); $query = "SELECT data_specimen.easting, data_specimen.northing from data_specimen WHERE data_specimen.specimen_id = '$dcid'"; $result = pg_exec($connection, $query); // get the number of rows in the resultset $rows = pg_numrows($result); // MapObj and ImageObj settings $map_path="/Library/Apache2/htdocs/demo1.map"; $map = ms_newMapObj($map_path); $img = $map->draw(); //get dummy point layer $layer = $map->getLayerByName("species"); ///turn dummy point layer status to ON $layer->set('status', MS_ON); //loop through resultset, generating the points for ($i=0; $i<$rows; ++$i) { $row = pg_fetch_row($result, $i); $pt = ms_newPointObj(); $pt->setXY($row[0],$row[1]); $pt->draw($map, $layer, $img, 0, "TEST"); } //create map image $img_url=$img->saveWebImage(MS_PNG,1,1,0); // close database connection pg_close($connection); =-=-=HTML CODE =-=-= =-=-=MAP FILE DUMMY POINT LAYER=-=-= LAYER NAME species TYPE POINT STATUS OFF CLASS COLOR 255 255 0 OUTLINECOLOR 0 0 0 SYMBOL 'triangle' SIZE 8 END END From avartabedian at WEBSERVICES.COM.UY Thu Aug 5 16:27:53 2004 From: avartabedian at WEBSERVICES.COM.UY (Alejandro Vartabedian) Date: Thu, 5 Aug 2004 18:27:53 -0500 Subject: test from listserv interface Message-ID: is it the only way to me? From jmalczyk at YAHOO.COM Thu Aug 5 17:32:52 2004 From: jmalczyk at YAHOO.COM (Jeremy Malczyk) Date: Thu, 5 Aug 2004 17:32:52 -0700 Subject: Drawing lines with Virtual Spatial Data via OGR In-Reply-To: Message-ID: Yeah, I know that it says right there in the wiki that "this currently only works for POINT data", but is there any chance/hope that this will be possible soon? If so, what kind of table structure would be needed to support it? Jeremy __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From jacob.delfos at MAUNSELL.COM Thu Aug 5 19:38:46 2004 From: jacob.delfos at MAUNSELL.COM (J. Delfos) Date: Fri, 6 Aug 2004 10:38:46 +0800 Subject: GDAL Results Interpret for Australian Raster Message-ID: I'll send the EPSG definitions to your address, not to the list so I won't bug everyone with it! -----Original Message----- From: dabner at optusnet.com.au [mailto:dabner at optusnet.com.au] Sent: 6 August 2004 10:31 To: Delfos, Jacob Cc: 'Nick Dabner' Subject: Re: RE: [UMN_MAPSERVER-USERS] GDAL Results Interpret for Australian Raster Thanks for your offer jacob. Would like to get it in WGS84 projection so better info to run through gdalwarp would be good. It is a shame it is so easy to load this stuff on many of the GIS products but mapserver returns a blank screen. TFYH. > Delfos, Jacob wrote: > > Nick, > > Adelaide is in zone 53. Brisbane zone 56. There is a file that comes > with > ESRI software that tells you. > > For such a large map it might be wise to use lattitude longitude. > Otherwise > maybe use a zone in the middle of it. It would be good to re- project > your > data to be in the same projection, because reprojecting on the fly in > mapserver can take a while with large datasets and images. If you want > to > use AMG66 in your actual mapfile, let me know. I'll send you the > correct > EPSG definitions of them. The ones that are standard in there are way > off, > and I have no idea how they got in there (same for AMG84). > > Regards, > > Jacob > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER- USERS at LISTS.UMN.EDU] > On > Behalf Of Nick Dabner > Sent: 6 August 2004 06:03 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] GDAL Results Interpret for > Australian > Raster > > > Thanks Jacob. > > As the path may have indicated. These are Ausways maps. I believe they > are in AMG66 format, although my associated vectors are in WGS84 so I > am told. > The map covers Adelaide to Brisbane which is potentially providing the > conflicting zone info you noted. I am personally in Melbourne. > > How can you tell what zone - by the longitude? Would you use the > centroid as this is a large map? > > regards, Nick > > On 05/08/2004, at 10:15 AM, J. Delfos wrote: > > > Those are pretty unusual bounding X coordinates. Where in Oz are you? > > Check out this page: > > http://mapserver.gis.umn.edu/doc40/raster- howto.html#formats > > > > It has examples. I'd say your file is in UTM, but projected in the > > wrong > > zone (2 zones too many to the east, or something). Your projection is > > probably MGA, but possibly AMG. You better find out, because they > > differ > > 200m. > > > > Jacob > > > > -----Original Message----- > > From: UMN MapServer Users List [mailto:MAPSERVER- USERS at LISTS.UMN.EDU] > > On > > Behalf Of Nick Dabner > > Sent: 5 August 2004 07:12 > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] GDAL Results Interpret for Australian > > Raster > > > > > > Hello all, > > > > I have a rasterset covering parts of Australia. TatukGis and other > > products can view it, but I cannot even get it to simply display in > > mapserver - usually just a blank screen. Furthermore, the information > > provided by gdalinfo with respect to the datum is unknown, so I am > not > > sure if a projection is required etc. > > > > Can anyone suggest the portions of the mapfile which would allow this > > raster to load? I have included most of gdalinfo details below, TIA: > > > > C:\gdal120\bin>gdalinfo.exe C: \ms4w\apps\MELWAY31\hgrtif\ADELBRIS.TIF > > Driver: GTiff/GeoTIFF > > Size is 4809, 4075 > > Coordinate System is: > > PROJCS["unnamed", > > GEOGCS["unnamed", > > DATUM["unknown", > > SPHEROID["unretrievable - using > > WGS84",6378137,298.257223563]], > > PRIMEM["Greenwich",0], > > UNIT[,0.0174532925199433], > > AUTHORITY["EPSG","0"]], > > UNIT["unknown",1], > > AUTHORITY["EPSG","0"]] > > Origin = (1857716.251568,5544261.870844) > > Pixel Size = (317.52333125,-317.52333125) > > Metadata: > > TIFFTAG_IMAGEDESCRIPTION= > > > > TIFFTAG_DATETIME=2004:01:05 22:39:05 > > TIFFTAG_XRESOLUTION=300 > > TIFFTAG_YRESOLUTION=300 > > TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) > > Corner Coordinates: > > Upper Left ( 1857716.252, 5544261.871) > > (106439300d44'382252089395.85"E,31766280 > > 5d42'1142461300788.73"N) > > Lower Left ( 1857716.252, 4250354.296) > > (106439300d44'382252089395.85"E,24352736 > > 2d35'876173328429.93"N) > > Upper Right ( 3384685.952, 5544261.871) (193928220d > > 0'700079669251.66"E,31766280 > > 5d42'1142461300788.73"N) > > Lower Right ( 3384685.952, 4250354.296) (193928220d > > 0'700079669251.66"E,24352736 > > 2d35'876173328429.93"N) > > Center ( 2621201.102, 4897308.083) > > (150183760d22'541165879323.76"E,28059508 > > 4d 9'1009317314579.33"N) > > Band 1 Block=4809x1 Type=Byte, ColorInterp=Palette > > Color Table (RGB with 256 entries) > > 0: 0,0,0,255 > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lfilak at MEDINACO.ORG Fri Aug 6 05:32:05 2004 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Fri, 6 Aug 2004 08:32:05 -0400 Subject: Fwd: Re: [Mapserver-users] Fw: help on mygis Message-ID: http://dev.mysql.com/doc/mysql/en/Spatial_extensions_in_MySQL.html The following message was sent by "pablo" on Thu, 5 Aug 2004 19:42:49 -0300. > i need mygis manual,,,, exists ????? > > ----- Original Message ----- > From: "Lowell Filak" > To: "pablo_schmitt_" ; > > Sent: Thursday, July 29, 2004 11:09 AM > Subject: Re: [Mapserver-users] Fw: help on mygis > > > > I don't know mygis but as a quick fix you could join all the attributes > > into the first layer so there is no relate required to do the labelling.? > > > > Lowell > > > > The following message was sent by "pablo_schmitt_" > > on Thu, 29 Jul 2004 09:47:43 -0300. > > > > > > > > ----- Original Message ----- > > > From: pablo_schmitt_ > > > To: mapserver-users at lists.gis.umn.edu > > > Sent: Wednesday, July 28, 2004 6:59 PM > > > Subject: help on mygis > > > > > > > > > hello friends > > > i need some help from you > > > > > > this is a brief description of my problem: > > > > > > i have a grupos2002.shp file uploaded into mysql using the > > shp2mysql.lp, > and it is working properly > > > > > > this script generated the following tables geometry_columns, > > grupos2002, > grupos2002_bin, grupos2002_num > > > , spatial_ref_sys > > > > > > in the map file i have this definition for the connection and data: > > > CONNECTION "localhost:gisusr:gis:gisdb:bin:" > > > DATA "geometry from grupos2002 feature, grupos2002_bin geometry" > > > and it is working fine > > > > > > my problem is: > > > i have a table zonas with the following fields: > > > 1- f_Zona ( olso located in grupos2002 ) > > > 2- Description > > > 3- Atributos > > > > > > so, i need to use the field number 2 ( Description) as Label in the > > map > and i need to apply some filters using the field number > > > 3 (Atributos). > > > > > > THE BIG CUESTION IS: how should i contruct my DATA definition in the > > map > file ???? > > > > > > i hope you could understand me > > > > > > thank you very much > > > by > > > > > > pablo schmitt > > > municipalidad de malvinas argentinas > > > dep. inform?tica > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > From lfilak at MEDINACO.ORG Fri Aug 6 05:32:21 2004 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Fri, 6 Aug 2004 08:32:21 -0400 Subject: Fwd: Re: [Mapserver-users] Fw: help on mygis Message-ID: The following message was sent by "pablo" on Thu, 5 Aug 2004 19:35:15 -0300. > So, we have done a couple of interesting things using only mapserver > functionality, but our DATA SQL statement has remained simple. ppose that > the name of the road is stored in another table (for whatever reason) and we > need to do a join to get it and label our roads. > > LAYER > > CONNECTION "user=theuser password=thepass dbname=thedb host=theserver" > > DATA "the_geom FROM (SELECT roads.oid AS oid, roads.the_geom AS the_geom, > road_names.name as name > > FROM roads LEFT JOIN road_names ON roads.road_name_id = > road_names.road_name_id) AS named_roads > > USING UNIQUE oid USING SRID=-1" > > MAXSCALE 20000 > > STATUS ON > > TYPE ANNOTATION > > LABELITEM name > > CLASS > > LABEL > > ANGLE auto > > SIZE 8 > > COLOR 0 192 0 > > TYPE truetype > > FONT arial > > END > > END > > END > > HOW TO MAKE IN MYGIS ? > > ----- Original Message ----- > From: "Lowell Filak" > To: "pablo" > Sent: Monday, August 02, 2004 10:36 AM > Subject: Re: [Mapserver-users] Fw: help on mygis > > > > Unfortunately the new list server doesn't appear to be working, however > > you need to submit this to the list. I only have limited knowledge of > > what your trying to accomplish. My original suggestion was to combine > > all your attributes into a single MySQL table so you could work on the > > labelling issues without the added complexity of relating two tables in > > MySQL. > > > > HTH > > > > Lowell > > > > The following message was sent by "pablo" > > on Fri, 30 Jul 2004 18:00:33 -0300. > > > > > Hello again, > > > > > > This is a piece of my MAP FILE : > > > > > > LAYER > > > NAME "grupos2002" > > > STATUS ON > > > CONNECTIONTYPE mygis > > > CONECTION "localhost:gisusr:gis:gisdb:bin:" > > > DATA "geometry from grupos2002 feature, grupos2002_bin geometry" > > > > > > CLASS > > > NAME "Zona Geo" > > > OUTLINECOLOR 60 60 60 > > > COLOR 255 255 0 > > > SYMBOL 0 > > > END > > > END > > > > > > LAYER > > > STATUS ON > > > CONNECTIONTYPE mygis > > > CONECTION "localhost:gisusr:gis:gisdb:bin:" > > > DATA ???????????????????????????????? > > > TYPE ANNOTATION > > > LABELITEM ?????????????????????? > > > CLASS > > > ANGLE AUTO > > > SIZE 8 > > > COLOR 0 192 0 > > > TYPE TRUETYPE > > > FONT ARIAL > > > END > > > END > > > > > > I have a table zonas with the following fields: > > > 1- f_Zona ( olso located in grupos2002 ) > > > 2- Description > > > 3- Atributos > > > > > > Questions : > > > > > > - What do I have to do to link the f_zona field (Zonas Table) to f_zona > > > (Grupos2002 table)?. I need to use Description field (Zonas table) as > > label > > > of the LAYER ANNOTATION. > > > > > > - I don't know how to make the query that map server needs to link or > join > > > the data of my zona table with the data of the map. > > > > > > - How should i write this query ? > > > > > > - Could I use a custom query to get the geometric data of grupos2002, > > > grupos2002.bin? > > > DATA "geometry from grupos2002 feature, grupos2002_bin > > geometry"---- >>> > > > Is it posible to write this in ANSI query( select xxx from xxx where > > > ..etc.) ? Example please!!! > > > > > > - Do I need more extra fields in the zonas table to get this work well? > > > > > > thank you very much!!! > > > Pablo > > > > > > > > > ----- Original Message ----- > > > From: "Lowell Filak" > > > To: "pablo_schmitt_" ; > > > > > > Sent: Thursday, July 29, 2004 11:09 AM > > > Subject: Re: [Mapserver-users] Fw: help on mygis > > > > > > > > > > I don't know mygis but as a quick fix you could join all the > attributes > > > > into the first layer so there is no relate required to do the > > labelling.? > > > > > > > > Lowell > > > > > > > > The following message was sent by "pablo_schmitt_" > > > > on Thu, 29 Jul 2004 09:47:43 -0300. > > > > > > > > > > > > > > ----- Original Message ----- > > > > > From: pablo_schmitt_ > > > > > To: mapserver-users at lists.gis.umn.edu > > > > > Sent: Wednesday, July 28, 2004 6:59 PM > > > > > Subject: help on mygis > > > > > > > > > > > > > > > hello friends > > > > > i need some help from you > > > > > > > > > > this is a brief description of my problem: > > > > > > > > > > i have a grupos2002.shp file uploaded into mysql using the > > > > shp2mysql.lp, > and it is working properly > > > > > > > > > > this script generated the following tables geometry_columns, > > > > grupos2002, > grupos2002_bin, grupos2002_num > > > > > , spatial_ref_sys > > > > > > > > > > in the map file i have this definition for the connection and data: > > > > > CONNECTION "localhost:gisusr:gis:gisdb:bin:" > > > > > DATA "geometry from grupos2002 feature, grupos2002_bin geometry" > > > > > and it is working fine > > > > > > > > > > my problem is: > > > > > i have a table zonas with the following fields: > > > > > 1- f_Zona ( olso located in grupos2002 ) > > > > > 2- Description > > > > > 3- Atributos > > > > > > > > > > so, i need to use the field number 2 ( Description) as Label in the > > > > map > and i need to apply some filters using the field number > > > > > 3 (Atributos). > > > > > > > > > > THE BIG CUESTION IS: how should i contruct my DATA definition in the > > > > map > file ???? > > > > > > > > > > i hope you could understand me > > > > > > > > > > thank you very much > > > > > by > > > > > > > > > > pablo schmitt > > > > > municipalidad de malvinas argentinas > > > > > dep. inform?tica > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > From Eric.Hancock at DEP.STATE.FL.US Fri Aug 6 08:20:40 2004 From: Eric.Hancock at DEP.STATE.FL.US (Hancock, Eric) Date: Fri, 6 Aug 2004 11:20:40 -0400 Subject: Can't find libgd? Message-ID: Hey all I'm having a problem with the configure script. Its unable to find libgd even when I specify where its located: ./configure --with-gd=/usr/lib --without-tiff --with-freetype --with-proj --with-ogr --with-gdal --with-wmsclient --with-sde=/home/eric/sdeexe83/ --with-sde-version=83 debian:~eric/mapservsrc/mapserver-4.2.2# ./configure --with-gd=/usr/lib --without-tiff --with-freetype --with-proj --with-ogr --with-gdal --with-wmsclient --with-sde=/home/eric/sdeexe83/ --with-sde-version=83 checking for gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for ranlib... ranlib checking for flex... flex checking for yywrap in -lfl... yes checking lex output file root... lex.yy checking whether yytext is a pointer... yes checking for bison... bison -y checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking for exp in -lm... yes checking for __gxx_personality_v0 in -lstdc++... no checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for strcasecmp... yes checking for strncasecmp... yes checking for strdup... yes checking for strlcat... no configure: checking where FreeType 2.x is installed...... checking for freetype-config... no ./configure: no: command not found ./configure: no: command not found using libfreetype from checking for FT_Init_FreeType in -lfreetype... no freetype-config or libfreetype cannot be found, possibly needed for GD configure: checking where Zlib is installed...... checking for zlibVersion in -lz... no Zlib (libz) library cannot be found, possibly needed for GD configure: checking where PNG is installed...... checking for png_init_io in -lpng... no PNG (libpng) library cannot be found, possibly needed for GD configure: checking whether we should include JPEG support...... checking for jpeg_read_header in -ljpeg... no libjpeg not found. JPEG support not included, possibly needed for GD. configure: checking where libXpm is installed...... checking for XpmFreeXpmImage in -lXpm... no XPM (libXpm) library cannot be found, possibly needed for GD configure: checking where libiconv is installed...... checking for libiconv_open in -liconv... no libiconv library cannot be found, possibly needed for GD configure: checking for GD 2.0.12 or higher...... checking for gdImageSetAntiAliased in -lgd... no configure: error: "Could not find gd.h or libgd.a/libgd.so in /usr/lib. Make sure GD 2.0.12 or higher is compiled before calling configure." debian:~eric/mapservsrc/mapserver-4.2.2# locate libgd.so /usr/lib/libgd.so.1 /usr/lib/libgd.so.1.8.4 /usr/lib/libgd.so.2 /usr/lib/libgd.so.2.0.16 Any idea's??? -Eric From Jwiebe at LINNET.CA Fri Aug 6 08:31:48 2004 From: Jwiebe at LINNET.CA (Jeremy Wiebe) Date: Fri, 6 Aug 2004 10:31:48 -0500 Subject: Can't find libgd? Message-ID: Actually, looks like it can't find FreeType, Zlib, libpng, libjpeg, libXpm, and libiconv... -----Original Message----- From: Hancock, Eric [mailto:Eric.Hancock at DEP.STATE.FL.US] Sent: August 6, 2004 10:21 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Can't find libgd? Hey all I'm having a problem with the configure script. Its unable to find libgd even when I specify where its located: ./configure --with-gd=/usr/lib --without-tiff --with-freetype --with-proj --with-ogr --with-gdal --with-wmsclient --with-sde=/home/eric/sdeexe83/ --with-sde-version=83 debian:~eric/mapservsrc/mapserver-4.2.2# ./configure --with-gd=/usr/lib --without-tiff --with-freetype --with-proj --with-ogr --with-gdal --with-wmsclient --with-sde=/home/eric/sdeexe83/ --with-sde-version=83 checking for gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for ranlib... ranlib checking for flex... flex checking for yywrap in -lfl... yes checking lex output file root... lex.yy checking whether yytext is a pointer... yes checking for bison... bison -y checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking for exp in -lm... yes checking for __gxx_personality_v0 in -lstdc++... no checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for strcasecmp... yes checking for strncasecmp... yes checking for strdup... yes checking for strlcat... no configure: checking where FreeType 2.x is installed...... checking for freetype-config... no ./configure: no: command not found ./configure: no: command not found using libfreetype from checking for FT_Init_FreeType in -lfreetype... no freetype-config or libfreetype cannot be found, possibly needed for GD configure: checking where Zlib is installed...... checking for zlibVersion in -lz... no Zlib (libz) library cannot be found, possibly needed for GD configure: checking where PNG is installed...... checking for png_init_io in -lpng... no PNG (libpng) library cannot be found, possibly needed for GD configure: checking whether we should include JPEG support...... checking for jpeg_read_header in -ljpeg... no libjpeg not found. JPEG support not included, possibly needed for GD. configure: checking where libXpm is installed...... checking for XpmFreeXpmImage in -lXpm... no XPM (libXpm) library cannot be found, possibly needed for GD configure: checking where libiconv is installed...... checking for libiconv_open in -liconv... no libiconv library cannot be found, possibly needed for GD configure: checking for GD 2.0.12 or higher...... checking for gdImageSetAntiAliased in -lgd... no configure: error: "Could not find gd.h or libgd.a/libgd.so in /usr/lib. Make sure GD 2.0.12 or higher is compiled before calling configure." debian:~eric/mapservsrc/mapserver-4.2.2# locate libgd.so /usr/lib/libgd.so.1 /usr/lib/libgd.so.1.8.4 /usr/lib/libgd.so.2 /usr/lib/libgd.so.2.0.16 Any idea's??? -Eric From aflorio at GISPLAN.COM.BR Fri Aug 6 08:32:21 2004 From: aflorio at GISPLAN.COM.BR (Alexandre Florio) Date: Fri, 6 Aug 2004 12:32:21 -0300 Subject: Can't find libgd? In-Reply-To: <3EC542D9EE49214AB78E236669EDB9A5BD8167@tlhexsmb4.floridadep.net> Message-ID: It seems that you don't have the symbolic link. Do ln -s /usr/lib/libgd.so.2.0.0 /usr/lib/libgd.so and try again. On Fri, 6 Aug 2004 11:20:40 -0400 "Hancock, Eric" wrote: > Hey all I'm having a problem with the configure script. Its unable to find > libgd even when I specify where its located: > > > ./configure --with-gd=/usr/lib --without-tiff --with-freetype --with-proj > --with-ogr --with-gdal --with-wmsclient --with-sde=/home/eric/sdeexe83/ > --with-sde-version=83 > > debian:~eric/mapservsrc/mapserver-4.2.2# ./configure --with-gd=/usr/lib > --without-tiff --with-freetype --with-proj --with-ogr --with-gdal > --with-wmsclient --with-sde=/home/eric/sdeexe83/ --with-sde-version=83 > checking for gcc... gcc > checking for C compiler default output... a.out > checking whether the C compiler works... yes > checking whether we are cross compiling... no > checking for suffix of executables... > checking for suffix of object files... o > checking whether we are using the GNU C compiler... yes > checking whether gcc accepts -g... yes > checking for gcc option to accept ANSI C... none needed > checking for g++... g++ > checking whether we are using the GNU C++ compiler... yes > checking whether g++ accepts -g... yes > checking for ranlib... ranlib > checking for flex... flex > checking for yywrap in -lfl... yes > checking lex output file root... lex.yy > checking whether yytext is a pointer... yes > checking for bison... bison -y > checking if compiler supports -R... no > checking if compiler supports -Wl,-rpath,... yes > checking for exp in -lm... yes > checking for __gxx_personality_v0 in -lstdc++... no > checking how to run the C preprocessor... gcc -E > checking for egrep... grep -E > checking for ANSI C header files... yes > checking for strcasecmp... yes > checking for strncasecmp... yes > checking for strdup... yes > checking for strlcat... no > configure: checking where FreeType 2.x is installed...... > checking for freetype-config... no > ./configure: no: command not found > ./configure: no: command not found > using libfreetype from > checking for FT_Init_FreeType in -lfreetype... no > freetype-config or libfreetype cannot be found, possibly needed for > GD > configure: checking where Zlib is installed...... > checking for zlibVersion in -lz... no > Zlib (libz) library cannot be found, possibly needed for GD > configure: checking where PNG is installed...... > checking for png_init_io in -lpng... no > PNG (libpng) library cannot be found, possibly needed for GD > configure: checking whether we should include JPEG support...... > checking for jpeg_read_header in -ljpeg... no > libjpeg not found. JPEG support not included, possibly needed for GD. > configure: checking where libXpm is installed...... > checking for XpmFreeXpmImage in -lXpm... no > XPM (libXpm) library cannot be found, possibly needed for GD > configure: checking where libiconv is installed...... > checking for libiconv_open in -liconv... no > libiconv library cannot be found, possibly needed for GD > configure: checking for GD 2.0.12 or higher...... > checking for gdImageSetAntiAliased in -lgd... no > configure: error: "Could not find gd.h or libgd.a/libgd.so in /usr/lib. Make > sure GD 2.0.12 or higher is compiled before calling configure." > debian:~eric/mapservsrc/mapserver-4.2.2# locate libgd.so > /usr/lib/libgd.so.1 > /usr/lib/libgd.so.1.8.4 > /usr/lib/libgd.so.2 > /usr/lib/libgd.so.2.0.16 > > Any idea's??? > > -Eric > From Eric.Hancock at DEP.STATE.FL.US Fri Aug 6 08:38:27 2004 From: Eric.Hancock at DEP.STATE.FL.US (Hancock, Eric) Date: Fri, 6 Aug 2004 11:38:27 -0400 Subject: Can't find libgd? Message-ID: Still can't find it.... debian:~eric/mapservsrc/mapserver-4.2.2# ls /usr/lib/libgd* -la lrwxrwxrwx 1 root root 24 Aug 6 11:35 /usr/lib/libgd.so -> /usr/lib/libgd.so.2.0.16 lrwxrwxrwx 1 root root 14 Aug 2 15:53 /usr/lib/libgd.so.1 -> libgd.so.1.8.4 -rw-r--r-- 1 root root 183204 Sep 21 2002 /usr/lib/libgd.so.1.8.4 lrwxrwxrwx 1 root root 15 Aug 2 16:47 /usr/lib/libgd.so.2 -> libgd.so.2.0.16 -rw-r--r-- 1 root root 208452 Dec 30 2003 /usr/lib/libgd.so.2.0.16 -Eric -----Original Message----- From: Alexandre Florio [mailto:aflorio at gisplan.com.br] Sent: Friday, August 06, 2004 10:32 AM To: Hancock, Eric Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Can't find libgd? It seems that you don't have the symbolic link. Do ln -s /usr/lib/libgd.so.2.0.0 /usr/lib/libgd.so and try again. On Fri, 6 Aug 2004 11:20:40 -0400 "Hancock, Eric" wrote: > Hey all I'm having a problem with the configure script. Its unable to find > libgd even when I specify where its located: > > > ./configure --with-gd=/usr/lib --without-tiff --with-freetype --with-proj > --with-ogr --with-gdal --with-wmsclient --with-sde=/home/eric/sdeexe83/ > --with-sde-version=83 > > debian:~eric/mapservsrc/mapserver-4.2.2# ./configure --with-gd=/usr/lib > --without-tiff --with-freetype --with-proj --with-ogr --with-gdal > --with-wmsclient --with-sde=/home/eric/sdeexe83/ --with-sde-version=83 > checking for gcc... gcc > checking for C compiler default output... a.out > checking whether the C compiler works... yes > checking whether we are cross compiling... no > checking for suffix of executables... > checking for suffix of object files... o > checking whether we are using the GNU C compiler... yes > checking whether gcc accepts -g... yes > checking for gcc option to accept ANSI C... none needed > checking for g++... g++ > checking whether we are using the GNU C++ compiler... yes > checking whether g++ accepts -g... yes > checking for ranlib... ranlib > checking for flex... flex > checking for yywrap in -lfl... yes > checking lex output file root... lex.yy > checking whether yytext is a pointer... yes > checking for bison... bison -y > checking if compiler supports -R... no > checking if compiler supports -Wl,-rpath,... yes > checking for exp in -lm... yes > checking for __gxx_personality_v0 in -lstdc++... no > checking how to run the C preprocessor... gcc -E > checking for egrep... grep -E > checking for ANSI C header files... yes > checking for strcasecmp... yes > checking for strncasecmp... yes > checking for strdup... yes > checking for strlcat... no > configure: checking where FreeType 2.x is installed...... > checking for freetype-config... no > ./configure: no: command not found > ./configure: no: command not found > using libfreetype from > checking for FT_Init_FreeType in -lfreetype... no > freetype-config or libfreetype cannot be found, possibly needed for > GD > configure: checking where Zlib is installed...... > checking for zlibVersion in -lz... no > Zlib (libz) library cannot be found, possibly needed for GD > configure: checking where PNG is installed...... > checking for png_init_io in -lpng... no > PNG (libpng) library cannot be found, possibly needed for GD > configure: checking whether we should include JPEG support...... > checking for jpeg_read_header in -ljpeg... no > libjpeg not found. JPEG support not included, possibly needed for GD. > configure: checking where libXpm is installed...... > checking for XpmFreeXpmImage in -lXpm... no > XPM (libXpm) library cannot be found, possibly needed for GD > configure: checking where libiconv is installed...... > checking for libiconv_open in -liconv... no > libiconv library cannot be found, possibly needed for GD > configure: checking for GD 2.0.12 or higher...... > checking for gdImageSetAntiAliased in -lgd... no > configure: error: "Could not find gd.h or libgd.a/libgd.so in /usr/lib. Make > sure GD 2.0.12 or higher is compiled before calling configure." > debian:~eric/mapservsrc/mapserver-4.2.2# locate libgd.so > /usr/lib/libgd.so.1 > /usr/lib/libgd.so.1.8.4 > /usr/lib/libgd.so.2 > /usr/lib/libgd.so.2.0.16 > > Any idea's??? > > -Eric > From craig.gould at BT.COM Fri Aug 6 08:43:01 2004 From: craig.gould at BT.COM (C Gould) Date: Fri, 6 Aug 2004 16:43:01 +0100 Subject: TileIndex & Raster Images Problem Message-ID: Update: If I place a dummy raster tile into my tileindex which covers the full extent of my map, and is filled with the transparent colour then the error is worked around. However, it does tend to suggest that if the cgi script gets no image back from the raster tileindex it then fails rather than just realising that there is nothing to draw and skipping over it. Should I report this as a bug? Thanks C -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of C Gould Sent: 05 August 2004 15:27 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] TileIndex & Raster Images Problem Ed It's the first case, and I can create the error just as you describe. My layer defs are like this: LAYER NAME "ASubject" GROUP "PRM" TYPE RASTER TILEINDEX "C:\MyPath\ASubject.shp" TILEITEM "location" MAXSCALE 100000 STATUS OFF OFFSITE 255 255 255 CLASS NAME "ASubject" END END I'm using the windows binaries for 4.2 Thanks, C -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney Sent: 05 August 2004 14:48 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] TileIndex & Raster Images Problem Craig - I'm not quite sure I exactly understand the symptom. Does the error happen when the layer has valid images but none of them are currently in view, or when you view a layer with no images defined in it? If it's the first case, can you create the problem by scrolling/panning off the edge of the data until it appears, and then pan back on to the map correctly? - Ed Ed McNierney President and Chief Mapmaker TopoZone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of C Gould Sent: Thursday, August 05, 2004 9:35 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] TileIndex & Raster Images Problem Folks, I have several layers using TileIndexes which link to georeferenced tif images. The layers show happily (when in zoom range) when one of the images is displayed on the map image being requested but mapserver fails with the following error message if there is no tile being displayed on the reqeusted map image: msDrawMap(): Image handling error. Failed to draw layer named 'Blah' I'm probably doing something quite stupid, but can anyone suggest what? Ta C Craig Gould __________________________________________ British Telecommunications plc Registered office: 81 Newgate Street London EC1A 7AJ Registered in England no. 1800000 This electronic message contains information from British Telecommunications plc which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone or email (to the number or address above) immediately. Activity and use of the British Telecommunications plc email system is monitored to secure its effective operation and for other lawful business purposes. Communications using this system will also be monitored and may be recorded to secure effective operation and for other lawful business purposes From stevem at SPATIALMAPPING.COM Fri Aug 6 08:37:42 2004 From: stevem at SPATIALMAPPING.COM (Steven Monai) Date: Fri, 6 Aug 2004 10:37:42 -0500 Subject: MapScript (centering a dynamic point layer) Message-ID: Jerod: Check out the mapObj->setextent() method, here: http://mapserver.gis.umn.edu/doc42/phpmapscript-class-guide.html#MapObj (you'll have to scroll down the page a bit to find it). My suggestion: What you'll want to do is to get the minimum and maximum x and y coordinates from your set of points, call the setextent() method with those values, and then, finally, call the draw() methods to draw the map. A PHP implementation is left as an exercise for the reader, but the code below looks like a good starting point. Hope this helps, -SM -- On Thu, 5 Aug 2004 17:36:58 -0500, Jerod Clabaugh wrote: >Hi: > >I am just working my into the PHP/Mpascript world so bear with me. > >I am working to show a list of information about a biological >specimen, displaying the locality of the specimen as a point on a >small map. > >I can generate such a small map on-the fly by generating a dynamic >point layer pulling UTM coordinates from PostgreSQL/PostGIS db (with >dummy point layer in map file). No problems so far. > >My problem is that some species aren't showing up on these maps b/c >they are not in the 'frame' (further south or north of the area of >the map being drawn). I need to readjust the map to center on the >point being drawn. > >I know that this likely requires adjusting the extents and using the >zoompoint method, but other than that I'm lost. > >[Specs: Mapserver 4.2.2, PHP 4.3.7 CGI, Apache2, PostgreSQL 7.4.2 >with PostGIS 0.81; all functional.] > >I have looked online and at the mapscript wiki but all the examples I >find are trying to capture a user's click on a ma and my attempts to >modify that code have failed. Any help you can give me is much >appreciated. > >Cheers, > >Jerod Clabaugh > >=-=-=PHP CODE=-=-= > > //load Mapscript > dl('php_mapscript.so'); > > // generate and execute the query > $connection = pg_connect("user=xxxx dbname=xxxx host=localhost"); > $query = "SELECT data_specimen.easting, >data_specimen.northing from data_specimen WHERE > data_specimen.specimen_id = '$dcid'"; > $result = pg_exec($connection, $query); > > > // get the number of rows in the resultset > $rows = pg_numrows($result); > > // MapObj and ImageObj settings > $map_path="/Library/Apache2/htdocs/demo1.map"; > $map = ms_newMapObj($map_path); > $img = $map->draw(); > > //get dummy point layer > $layer = $map->getLayerByName("species"); > > ///turn dummy point layer status to ON > $layer->set('status', MS_ON); > > //loop through resultset, generating the points > for ($i=0; $i<$rows; ++$i) { > $row = pg_fetch_row($result, $i); > $pt = ms_newPointObj(); > $pt->setXY($row[0],$row[1]); > $pt->draw($map, $layer, $img, 0, "TEST"); > } > > //create map image > $img_url=$img->saveWebImage(MS_PNG,1,1,0); > > // close database connection > pg_close($connection); > >=-=-=HTML CODE =-=-= > > > > >=-=-=MAP FILE DUMMY POINT LAYER=-=-= >LAYER > NAME species > TYPE POINT > STATUS OFF > CLASS > COLOR 255 255 0 > OUTLINECOLOR 0 0 0 > SYMBOL 'triangle' > SIZE 8 > END >END From ed at TOPOZONE.COM Fri Aug 6 08:56:31 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 6 Aug 2004 11:56:31 -0400 Subject: TileIndex & Raster Images Problem Message-ID: What version of MapServer are you using? I cannot reproduce this problem, and I certainly encounter this situation all the time. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of C Gould Sent: Friday, August 06, 2004 11:43 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] TileIndex & Raster Images Problem Update: If I place a dummy raster tile into my tileindex which covers the full extent of my map, and is filled with the transparent colour then the error is worked around. However, it does tend to suggest that if the cgi script gets no image back from the raster tileindex it then fails rather than just realising that there is nothing to draw and skipping over it. Should I report this as a bug? Thanks C -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of C Gould Sent: 05 August 2004 15:27 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] TileIndex & Raster Images Problem Ed It's the first case, and I can create the error just as you describe. My layer defs are like this: LAYER NAME "ASubject" GROUP "PRM" TYPE RASTER TILEINDEX "C:\MyPath\ASubject.shp" TILEITEM "location" MAXSCALE 100000 STATUS OFF OFFSITE 255 255 255 CLASS NAME "ASubject" END END I'm using the windows binaries for 4.2 Thanks, C -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney Sent: 05 August 2004 14:48 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] TileIndex & Raster Images Problem Craig - I'm not quite sure I exactly understand the symptom. Does the error happen when the layer has valid images but none of them are currently in view, or when you view a layer with no images defined in it? If it's the first case, can you create the problem by scrolling/panning off the edge of the data until it appears, and then pan back on to the map correctly? - Ed Ed McNierney President and Chief Mapmaker TopoZone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of C Gould Sent: Thursday, August 05, 2004 9:35 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] TileIndex & Raster Images Problem Folks, I have several layers using TileIndexes which link to georeferenced tif images. The layers show happily (when in zoom range) when one of the images is displayed on the map image being requested but mapserver fails with the following error message if there is no tile being displayed on the reqeusted map image: msDrawMap(): Image handling error. Failed to draw layer named 'Blah' I'm probably doing something quite stupid, but can anyone suggest what? Ta C Craig Gould __________________________________________ British Telecommunications plc Registered office: 81 Newgate Street London EC1A 7AJ Registered in England no. 1800000 This electronic message contains information from British Telecommunications plc which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone or email (to the number or address above) immediately. Activity and use of the British Telecommunications plc email system is monitored to secure its effective operation and for other lawful business purposes. Communications using this system will also be monitored and may be recorded to secure effective operation and for other lawful business purposes From LESSARDST at DFO-MPO.GC.CA Fri Aug 6 08:55:28 2004 From: LESSARDST at DFO-MPO.GC.CA (Stephane Lessard) Date: Fri, 6 Aug 2004 11:55:28 -0400 Subject: Problem with Mapserver 4.2 Message-ID: Hey list, Anyone had a problem with version 4.2 for Win32? I get the following error in the Apache log: malformed header from script. Bad header=?PNG: c:/program files/apache group/apache/cgi-bin/mapserv.exe My app works great with version 4.2 beta 2, but now it doesn't display any map. Any ideas? Thank you! St?phane Lessard, ing. jr. Ing?nieur Syst?mes Ordin?s Syst?mes ?lectroniques et Informatiques Garde C?ti?re Canadienne From Zamil.Murji at DIVESTCO.COM Fri Aug 6 12:16:00 2004 From: Zamil.Murji at DIVESTCO.COM (Zamil Murji) Date: Fri, 6 Aug 2004 13:16:00 -0600 Subject: TTF label wrong Message-ID: Hello list, I've got a weird problem. I have a layer that is labeled using a TTF. At small sizes, these labels come out sharp for everything but diagonal lines. If I bump up the size of the label, then everything comes out black (just as expected). I've attached two images, one is with the label set to size 10 and the other with the label set to size 20. Ideally what I'd like is the diagonal lines to show up black instead of grey at size 10. Here is my layer definition: LAYER NAME "wells" TYPE ANNOTATION STATUS off MAXSCALE 800000 CONNECTIONTYPE postgis CONNECTION "user=idc dbname=idc host=idcmap port=5432" DATA "the_geom from (select oid, *, chr(glyph_index(plot_symbol)) as well_symbol from main_well2) as new_table" CLASSITEM uwi LABELITEM "well_symbol" CLASS LABEL COLOR 0 0 0 TYPE TRUETYPE FONT wells # ANTIALIAS true FORCE on SIZE 10 POSITION cc MAXSIZE 10 MINSIZE 10 END END PROJECTION "init=epsg:4269" END END I'm using: MapServer version 4.2-beta2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=GDAL INPUT=SHAPEFILE Thanks in advance, Zamil From Zamil.Murji at DIVESTCO.COM Fri Aug 6 12:27:39 2004 From: Zamil.Murji at DIVESTCO.COM (Zamil Murji) Date: Fri, 6 Aug 2004 13:27:39 -0600 Subject: TTF label wrong Message-ID: Sorry here are the images... -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Zamil Murji Sent: Friday, August 06, 2004 1:16 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] TTF label wrong Hello list, I've got a weird problem. I have a layer that is labeled using a TTF. At small sizes, these labels come out sharp for everything but diagonal lines. If I bump up the size of the label, then everything comes out black (just as expected). I've attached two images, one is with the label set to size 10 and the other with the label set to size 20. Ideally what I'd like is the diagonal lines to show up black instead of grey at size 10. Here is my layer definition: LAYER NAME "wells" TYPE ANNOTATION STATUS off MAXSCALE 800000 CONNECTIONTYPE postgis CONNECTION "user=idc dbname=idc host=idcmap port=5432" DATA "the_geom from (select oid, *, chr(glyph_index(plot_symbol)) as well_symbol from main_well2) as new_table" CLASSITEM uwi LABELITEM "well_symbol" CLASS LABEL COLOR 0 0 0 TYPE TRUETYPE FONT wells # ANTIALIAS true FORCE on SIZE 10 POSITION cc MAXSIZE 10 MINSIZE 10 END END PROJECTION "init=epsg:4269" END END I'm using: MapServer version 4.2-beta2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=GDAL INPUT=SHAPEFILE Thanks in advance, Zamil -------------- next part -------------- A non-text attachment was scrubbed... Name: blackwells.bmp Type: image/bmp Size: 328830 bytes Desc: blackwells.bmp URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: greywell.bmp Type: image/bmp Size: 339878 bytes Desc: greywell.bmp URL: From chinobrusatti at YAHOO.COM.AR Fri Aug 6 13:44:32 2004 From: chinobrusatti at YAHOO.COM.AR (=?iso-8859-1?q?Franco=20Brusatti?=) Date: Fri, 6 Aug 2004 17:44:32 -0300 Subject: Problem with python mapscript Message-ID: Hi list: I have a problem with python mapscrip. I use MapServer version 4.2.2 OUTPUT=PNG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Python 2.3.4 to install i use this: $> swig -python -modern -o mapscript_wrap.c ../mapscript.i $> python setup.py build $> su $> python setup.py install When run the test, obtain this: $> python tests/testMapScript.py -v ====================================================================== ERROR: testDrawLargeJPEG (__main__.DrawLargeJPEGTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/testMapScript.py", line 422, in testDrawLargeJPEG self.mapobj1.setImageType('JPEG') File "build/lib.linux-i686-2.3/mapscript.py", line 1757, in setImageType def setImageType(*args): return _mapscript.mapObj_setImageType(*args) MapServerError: setImageType(): General error message. Unable to find IMAGETYPE 'JPEG'. ====================================================================== ERROR: testConstructorUrlStream (__main__.ImageObjTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/testMapScript.py", line 822, in testConstructorUrlStream imgobj = mapscript.imageObj(0, 0, 'GD/JPEG', url) File "build/lib.linux-i686-2.3/mapscript.py", line 1837, in __init__ _swig_setattr(self, imageObj, 'this', _mapscript.new_imageObj(*args)) MapServerError: msLoadImageGDStream(): GD library error. Unable to initialize image ====================================================================== FAIL: numpoints is immutable, this should raise error ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/testMapScript.py", line 690, in testAlterNumPoints self.assertRaises(AttributeError, setattr, self.line, 'numpoints', 3) File "/usr/lib/python2.3/unittest.py", line 295, in failUnlessRaises raise self.failureException, excName AssertionError: AttributeError ====================================================================== FAIL: testRemoveOutputFormat may error without GDAL ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/testMapScript.py", line 988, in testRemoveOutputFormat assert num == 6, num AssertionError: 5 ---------------------------------------------------------------------- Ran 115 tests in 2.380s FAILED (failures=2, errors=2) I try use this with Zope (ZMapServer 0.7.5), this problem is after two o free request crash server Zope. Any idea? sorry for my bad english. ===== Chino Prefiero morir de pie, antes que vivir una vida agachado. Ernesto Che Guevara Correo Yahoo! - 6 MB, tecnolog?a antispam ?gratis! Suscribite ya http://correo.yahoo.com.ar/ From mhln25 at YAHOO.COM Sat Aug 7 00:54:58 2004 From: mhln25 at YAHOO.COM (Mahalakshmi Narayanan) Date: Sat, 7 Aug 2004 00:54:58 -0700 Subject: Installation on RedHat AS - gdal version? Message-ID: Hi! We have been working on Windows-MapServer for some time and created a few applications. We are proposing to conduct a OpenSource GIS workshop at Chennai for our organization on which many of our colleagues from other states would participate. We are trying to install on Linux our application Mapserver/php-mapscript compiles fine. But when I try to do shp2img -m (mapfile), I get an error that says ERROR 1: /usr/local/lib/gdal_alg.h: invalid ELF header ERROR 1: /usr/local/lib/gdal_alg.h: invalid ELF header ERROR 1: /usr/local/lib/gdal_frmts.h: invalid ELF header ERROR 1: /usr/local/lib/gdal_frmts.h: invalid ELF header ERROR 1: /usr/local/lib/gdal_priv.h: invalid ELF header ERROR 1: /usr/local/lib/gdal_priv.h: invalid ELF header I tried both gdal-1.1.8 and gdal-1.2.0. I need PostgreSQL/PostGIS support also. So, my gdal was configured with LDFLAGS=-lstdc++ ./configure --with-grass --with-png --with-libtiff=internal --with-geotiff=internal --with-jpeg --with-pg --with-libz --without-jasper and mapserver -4.2.2 was configured with ./configure \ --with-curl=/usr/bin \ --without-tiff \ --without-eppl \ --with-jpeg \ --with-threads \ --with-proj \ --with-gdal \ --with-php=/usr/local/include/php/ \ --with-gd=/usr/local/lib \ --with-freetype \ --with-ogr \ --with-ming \ --with-wmsclient \ --with-wfs \ --with-wfsclient \ --with-png \ --with-postgis Kindly give me some clues to sort this issue as we have limited time to prepare for the workshop. Thanks a lot in advance. With regards, Mahalakshmi Narayanan __________________________________ Do you Yahoo!? Y! Messenger - Communicate in real time. Download now. http://messenger.yahoo.com From lists at WEBMAPIT.COM.BR Sat Aug 7 21:34:19 2004 From: lists at WEBMAPIT.COM.BR (Eduardo Patto Kanegae) Date: Sun, 8 Aug 2004 01:34:19 -0300 Subject: maximum shapefile objects Message-ID: What is the maximum number of objects that a shapefile supports? best. -- Eduardo Patto Kanegae http://www.webmapit.com.br UIN: 303747254 Valinhos/SP/Brasil +55(19)3871-4875 Treinamento em UMN MapServer - http://www.webmapit.eti.br/ptbr/?menuoption=mapserver I Encontro Nacional de Usu?rios MapServer - http://mapserver.cttmar.univali.br/encontro2004 F?rum MapServer Brasil - http://mapserver.cttmar.univali.br/forum ***Fim da Mensagem / End of Message *** From cz_toh at YAHOO.COM Sun Aug 8 00:23:52 2004 From: cz_toh at YAHOO.COM (=?iso-8859-1?q?TOH=20CZ?=) Date: Sun, 8 Aug 2004 08:23:52 +0100 Subject: Upgrading from 4.0 - 4.2.2(Mapserver Windows Binary) Message-ID: Hi I have some problems upgrading from Mapserver 4.0 to 4.2.2 I have followed the instructions to install the new version and my old examples that used to work with 4.0 are unable to work with 4.2.2 Also this is the error found in my Apache web server log "[Sun Aug 08 15:22:00 2004] [error] [client 127.0.0.1] Premature end of script headers: mapserv.exe" I am unable to find any difference in the coding between 4.0 and 4.2.2 could someone please help? ___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com From ishrarh at YAHOO.COM Sun Aug 8 06:37:06 2004 From: ishrarh at YAHOO.COM (Ishrar Hussain) Date: Sun, 8 Aug 2004 06:37:06 -0700 Subject: Need Urgent Help on adding Labels to the dynamic points created with ms_newPointObj() Message-ID: I need to dynamically add labels to the points, which I plotted with ms_newPointObj() following the code by Merlos (available at http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptAddPoint). The annotation string, which I put in the draw() function of PointObj, does not appear as Label of the point. Please, also let me know, if I have to add anything to my Map file for this, and if so, then how. Thank you. Regards, Ishrar __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail From cz_toh at YAHOO.COM Sun Aug 8 21:58:50 2004 From: cz_toh at YAHOO.COM (Toh Chun Zheng) Date: Sun, 8 Aug 2004 23:58:50 -0500 Subject: Problem with Mapserver 4.2 Message-ID: "[Sun Aug 08 15:22:00 2004] [error] [client 127.0.0.1] Premature end of script headers: mapserv.exe" I have a similar error I reinstalled 4.2.2 over 4.0 and I got this error when I was trying to test the installation (http://127.0.0.1/cgi- bin/mapserv.exe) From mhln25 at YAHOO.COM Sun Aug 8 23:12:26 2004 From: mhln25 at YAHOO.COM (Mahalakshmi Narayanan) Date: Sun, 8 Aug 2004 23:12:26 -0700 Subject: Installation on RedHat AS - gdal version? In-Reply-To: <20040807075458.47879.qmail@web50401.mail.yahoo.com> Message-ID: Hi! For PostgreSQL 7.4, PostGIS 0.8.0 and MapServer 4.2.2 what version of gdal should be used.. I am getting the following error when I try to open a PostGIS layer using MapServer 4.2.2 on my browser: msDrawMap(): Image handling error. Failed to draw layer named 'tndistricts'. msPOSTGISLayerOpen(): Query error. msPOSTGISLayerOpen called but unimplemented! (mapserver not compiled with postgis support) Kindly help me get over this problem. I tried digging out the right version of gdal that should be used but could not find. Thanks in advance. With regards, Mahalakshmi Narayanan __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail From bartvde at XS4ALL.NL Mon Aug 9 01:11:18 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Mon, 9 Aug 2004 10:11:18 +0200 Subject: Problem with Mapserver 4.2 In-Reply-To: Message-ID: Can you run mapserv.exe -v in a dos box to see if all the dependencies (dll's) are on the system? Best regards, Bart > "[Sun Aug 08 15:22:00 2004] [error] [client 127.0.0.1] > Premature end of script headers: mapserv.exe" > I have a similar error I reinstalled 4.2.2 over 4.0 and I got this error > when I was trying to test the installation (http://127.0.0.1/cgi- > bin/mapserv.exe) > From craig.gould at BT.COM Mon Aug 9 01:30:29 2004 From: craig.gould at BT.COM (C Gould) Date: Mon, 9 Aug 2004 09:30:29 +0100 Subject: TileIndex & Raster Images Problem Message-ID: Ed, I'm running Mapserver 4.2 for Win32 on Win2K. The -v option gives the following output: MapServer version 4.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Thanks Craig -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney Sent: 06 August 2004 16:57 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] TileIndex & Raster Images Problem What version of MapServer are you using? I cannot reproduce this problem, and I certainly encounter this situation all the time. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of C Gould Sent: Friday, August 06, 2004 11:43 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] TileIndex & Raster Images Problem Update: If I place a dummy raster tile into my tileindex which covers the full extent of my map, and is filled with the transparent colour then the error is worked around. However, it does tend to suggest that if the cgi script gets no image back from the raster tileindex it then fails rather than just realising that there is nothing to draw and skipping over it. Should I report this as a bug? Thanks C -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of C Gould Sent: 05 August 2004 15:27 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] TileIndex & Raster Images Problem Ed It's the first case, and I can create the error just as you describe. My layer defs are like this: LAYER NAME "ASubject" GROUP "PRM" TYPE RASTER TILEINDEX "C:\MyPath\ASubject.shp" TILEITEM "location" MAXSCALE 100000 STATUS OFF OFFSITE 255 255 255 CLASS NAME "ASubject" END END I'm using the windows binaries for 4.2 Thanks, C -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney Sent: 05 August 2004 14:48 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] TileIndex & Raster Images Problem Craig - I'm not quite sure I exactly understand the symptom. Does the error happen when the layer has valid images but none of them are currently in view, or when you view a layer with no images defined in it? If it's the first case, can you create the problem by scrolling/panning off the edge of the data until it appears, and then pan back on to the map correctly? - Ed Ed McNierney President and Chief Mapmaker TopoZone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of C Gould Sent: Thursday, August 05, 2004 9:35 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] TileIndex & Raster Images Problem Folks, I have several layers using TileIndexes which link to georeferenced tif images. The layers show happily (when in zoom range) when one of the images is displayed on the map image being requested but mapserver fails with the following error message if there is no tile being displayed on the reqeusted map image: msDrawMap(): Image handling error. Failed to draw layer named 'Blah' I'm probably doing something quite stupid, but can anyone suggest what? Ta C Craig Gould __________________________________________ British Telecommunications plc Registered office: 81 Newgate Street London EC1A 7AJ Registered in England no. 1800000 This electronic message contains information from British Telecommunications plc which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone or email (to the number or address above) immediately. Activity and use of the British Telecommunications plc email system is monitored to secure its effective operation and for other lawful business purposes. Communications using this system will also be monitored and may be recorded to secure effective operation and for other lawful business purposes From temiz at DEPREM.GOV.TR Mon Aug 9 04:30:32 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Mon, 9 Aug 2004 14:30:32 +0300 Subject: Internal Server Error Message-ID: hello this is my first question. what might have happened ? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, root at midas.slackware.lan and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ------------------------------------------------------------------------ Apache/1.3.28 Server at landslide.deprem.gov.tr Port 80 ______________________________________ Inflex - 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From temiz at DEPREM.GOV.TR Mon Aug 9 04:13:18 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Mon, 9 Aug 2004 14:13:18 +0300 Subject: test Message-ID: ______________________________________ Inflex - 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 barnes at WATERSHEDS.CA Mon Aug 9 06:20:15 2004 From: barnes at WATERSHEDS.CA (Shawn Barnes) Date: Mon, 9 Aug 2004 09:20:15 -0400 Subject: problems loading php_mapscript.so Message-ID: Hey All, I'm unable to load php_mapscript.so into php Here is the basic system the system is debian woody, packages installed via apt-get -apache ver. 1.3.26.0woody -apache-dev ver. 1.3.26.0woody -libxml2-dev ver. 1:1.8.17-2woody -libpng2-dev ver. 1.0.112-3woody -libreadline4-dev ver. 4.2a-5 -libperl-dev ver. 5.6.1-8.7 installed via source curl-7.12.0 freetype-2.1.9 tiff-v3.6.1 libgeotiff-1.2.2 gd-22.0.28 proj4 gdal-1.2.1 geos-1.0 postgres-7.4.3 postgis-0.8.2 php-4.3.3 configured mapserver with, (minus the DIR paths to php, postgis etc.) ./configure --with-proj --with-gdal --with-ogr --with-wmsclient --with-wfs-client --with-wfs --with-httpd --with-php --with-tiff --with-postgis --with-gd --with-freetype When i point my browser to a phpinfo.php file with dl(php_mapscript.so) line i get the folowing errors Notice: Use of undefined constant php_mapscript - assumed 'php_mapscript' in /var/www/phpinfo.php on line 2 Notice: Use of undefined constant so - assumed 'so' in /var/www/phpinfo.php on line 2 Warning: dl(): Unable to load dynamic library '/usr/local/lib/php_mapscriptso' - /usr/local/lib/php_mapscriptso: cannot open shared object file: No such file or directory in /var/www/phpinfo.php on line 2 I've built mapscript before without this problem I've searched the mailing list archives, and i still can't find where i have gone wrong :( Shawn From gayathri at OU.EDU Mon Aug 9 06:34:25 2004 From: gayathri at OU.EDU (Swaminathan, Gayathri) Date: Mon, 9 Aug 2004 08:34:25 -0500 Subject: Installation on RedHat AS - gdal version? Message-ID: Hi: This does not seem tobe a GDAL version handling error. It seems like that your mapserv binaries were not compiled with Postgis support, or your DATA statement is not formed correctly. Can you post the source of your mapserver binaries, the layer accessing postgres.. That will help, troubleshoot. Gayathri > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of > Mahalakshmi Narayanan > Sent: Monday, August 09, 2004 1:12 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Installation on RedHat AS - > gdal version? > > > Hi! > > For PostgreSQL 7.4, PostGIS 0.8.0 and MapServer 4.2.2 > what version of gdal should be used.. > > I am getting the following error when I try to open a > PostGIS layer using MapServer 4.2.2 on my browser: > > msDrawMap(): Image handling error. Failed to draw > layer named 'tndistricts'. > msPOSTGISLayerOpen(): Query error. msPOSTGISLayerOpen > called but unimplemented! (mapserver not compiled with > postgis support) > > Kindly help me get over this problem. I tried digging > out the right version of gdal that should be used but > could not find. > > Thanks in advance. > > With regards, > Mahalakshmi Narayanan > > > > > __________________________________ > Do you Yahoo!? > New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail From bluecarto at FREE.FR Mon Aug 9 06:37:54 2004 From: bluecarto at FREE.FR (GIRAUD Pierre) Date: Mon, 9 Aug 2004 15:37:54 +0200 Subject: problems loading php_mapscript.so In-Reply-To: <1092057614.2863.9.camel@localhost> Message-ID: / Warning: dl(): Unable to load dynamic library '/usr/local/lib/php_mapscriptso' - /usr/local/lib/php_mapscriptso: cannot open shared object file: No such file or directory in /var/www/phpinfo.php on line 2/ Isn't a "." missing ? Assumed dl(php_mapscript.so) !! ^^^^ Shawn Barnes wrote: >Hey All, > >I'm unable to load php_mapscript.so into php > >Here is the basic system > >the system is debian woody, > >packages installed via apt-get > -apache ver. 1.3.26.0woody > -apache-dev ver. 1.3.26.0woody > -libxml2-dev ver. 1:1.8.17-2woody > -libpng2-dev ver. 1.0.112-3woody > -libreadline4-dev ver. 4.2a-5 > -libperl-dev ver. 5.6.1-8.7 > >installed via source > curl-7.12.0 > freetype-2.1.9 > tiff-v3.6.1 > libgeotiff-1.2.2 > gd-22.0.28 > proj4 > gdal-1.2.1 > geos-1.0 > postgres-7.4.3 > postgis-0.8.2 > php-4.3.3 > >configured mapserver with, (minus the DIR paths to php, postgis etc.) >./configure --with-proj --with-gdal --with-ogr --with-wmsclient >--with-wfs-client --with-wfs --with-httpd --with-php --with-tiff >--with-postgis --with-gd --with-freetype > >When i point my browser to a phpinfo.php file with dl(php_mapscript.so) >line i get the folowing errors > >Notice: Use of undefined constant php_mapscript - assumed >'php_mapscript' in /var/www/phpinfo.php on line 2 > >Notice: Use of undefined constant so - assumed 'so' in >/var/www/phpinfo.php on line 2 > >Warning: dl(): Unable to load dynamic library >'/usr/local/lib/php_mapscriptso' - /usr/local/lib/php_mapscriptso: >cannot open shared object file: No such file or directory in >/var/www/phpinfo.php on line 2 > > > >I've built mapscript before without this problem > >I've searched the mailing list archives, and i still can't find where i >have gone wrong :( > >Shawn > > > > From Eric.Hancock at DEP.STATE.FL.US Mon Aug 9 07:35:54 2004 From: Eric.Hancock at DEP.STATE.FL.US (Hancock, Eric) Date: Mon, 9 Aug 2004 10:35:54 -0400 Subject: debian missing gd.h Message-ID: > Hello all, > > Does Debian put out a package with gd.h? For some reason the libgd package > in the debian repository does not include this header file. > > Thanks, > Eric From sgillies at FRII.COM Mon Aug 9 09:20:16 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Mon, 9 Aug 2004 10:20:16 -0600 Subject: Problem with python mapscript In-Reply-To: <20040806204432.81355.qmail@web53808.mail.yahoo.com> Message-ID: On Aug 6, 2004, at 2:44 PM, Franco Brusatti wrote: > Hi list: > > I have a problem with python mapscrip. I use > > MapServer version 4.2.2 OUTPUT=PNG OUTPUT=WBMP > SUPPORTS=PROJ > SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 > INPUT=OGR INPUT=GDAL > INPUT=SHAPEFILE > > Python 2.3.4 > > to install i use this: > > $> swig -python -modern -o mapscript_wrap.c > .../mapscript.i > $> python setup.py build > $> su > $> python setup.py install > > > When run the test, obtain this: > > $> python tests/testMapScript.py -v > > ====================================================================== > ERROR: testDrawLargeJPEG > (__main__.DrawLargeJPEGTestCase) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "tests/testMapScript.py", line 422, in > testDrawLargeJPEG > self.mapobj1.setImageType('JPEG') > File "build/lib.linux-i686-2.3/mapscript.py", line > 1757, in setImageType > def setImageType(*args): return > _mapscript.mapObj_setImageType(*args) > MapServerError: setImageType(): General error message. > Unable to find > IMAGETYPE 'JPEG'. > > ====================================================================== > ERROR: testConstructorUrlStream > (__main__.ImageObjTestCase) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "tests/testMapScript.py", line 822, in > testConstructorUrlStream > imgobj = mapscript.imageObj(0, 0, 'GD/JPEG', url) > File "build/lib.linux-i686-2.3/mapscript.py", line > 1837, in __init__ > _swig_setattr(self, imageObj, 'this', > _mapscript.new_imageObj(*args)) > MapServerError: msLoadImageGDStream(): GD library > error. Unable to > initialize image > > ====================================================================== > FAIL: numpoints is immutable, this should raise error > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "tests/testMapScript.py", line 690, in > testAlterNumPoints > self.assertRaises(AttributeError, setattr, > self.line, 'numpoints', 3) > File "/usr/lib/python2.3/unittest.py", line 295, in > failUnlessRaises > raise self.failureException, excName > AssertionError: AttributeError > > ====================================================================== > FAIL: testRemoveOutputFormat may error without GDAL > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "tests/testMapScript.py", line 988, in > testRemoveOutputFormat > assert num == 6, num > AssertionError: 5 > > ---------------------------------------------------------------------- > Ran 115 tests in 2.380s > > FAILED (failures=2, errors=2) > This errors occur because you have not configured MapServer for JPEG output. I suggest that you re-configure, you will eventually want to use JPEG as well as PNG. BTW, the ZMapServer does not yet work with MapServer 4.2. Soon ... cheers, Sean From Eric.Hancock at DEP.STATE.FL.US Mon Aug 9 10:33:31 2004 From: Eric.Hancock at DEP.STATE.FL.US (Hancock, Eric) Date: Mon, 9 Aug 2004 13:33:31 -0400 Subject: debian missing gd.h Message-ID: Thanks, That works. Now I'm having difficulties getting the executable to find my sde libs. After compiling (with no errors about sde libs) I get the fallowing error when running the mapserv executable: debian:/home/eric/mapservsrc/mapserver-4.2.2# ./mapserv --help ./mapserv: error while loading shared libraries: libsde83.so: cannot open shared object file: No such file or directory Any idea's? I thought I passed the correct path when running configure, and I would've thought that it would complain about it if I had the wrong path. -Eric -----Original Message----- From: Vladimir Guzm?n [mailto:bigfoot at main-task.com] Sent: Monday, August 09, 2004 11:46 AM To: Hancock, Eric Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] debian missing gd.h Hancock, Eric wrote: >>Hello all, >> >>Does Debian put out a package with gd.h? For some reason the libgd package >>in the debian repository does not include this header file. >> >>Thanks, >>Eric >> >> > > > > Try: apt-get install libgd2-dev Regards, -- Vladimir Ilich Guzm?n R. ------------------------ http://maintask.com From bigfoot at MAIN-TASK.COM Mon Aug 9 09:45:45 2004 From: bigfoot at MAIN-TASK.COM (=?ISO-8859-1?Q?Vladimir_Guzm=E1n?=) Date: Mon, 9 Aug 2004 11:45:45 -0500 Subject: debian missing gd.h In-Reply-To: <3EC542D9EE49214AB78E236669EDB9A5BD816F@tlhexsmb4.floridadep.net> Message-ID: Hancock, Eric wrote: >>Hello all, >> >>Does Debian put out a package with gd.h? For some reason the libgd package >>in the debian repository does not include this header file. >> >>Thanks, >>Eric >> >> > > > > Try: apt-get install libgd2-dev Regards, -- Vladimir Ilich Guzm?n R. ------------------------ http://maintask.com From eric at GOMOOS.ORG Mon Aug 9 10:38:44 2004 From: eric at GOMOOS.ORG (Eric Bridger) Date: Mon, 9 Aug 2004 13:38:44 -0400 Subject: Need Urgent Help on adding Labels to the dynamic points created with ms_newPointObj() In-Reply-To: <20040808133706.96242.qmail@web54006.mail.yahoo.com> Message-ID: On Sun, 2004-08-08 at 09:37, Ishrar Hussain wrote: > I need to dynamically add labels to the points, which > I > plotted with ms_newPointObj() following the code by > Merlos (available at > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptAddPoint). > > The annotation string, which I put in the draw() > function of PointObj, does not appear as Label of the > point. > > Please, also let me know, if I have to add anything to > my Map file for this, and if so, then how. > You will need to add a LABEL section to your CLASS. E.g. LABEL COLOR 255 0 0 SIZE TINY END From tim.pascoe at EC.GC.CA Mon Aug 9 12:52:55 2004 From: tim.pascoe at EC.GC.CA (Tim Pascoe) Date: Mon, 9 Aug 2004 14:52:55 -0500 Subject: Problem Loading Mapscript DLL (IIS) Message-ID: I'm relatively new to the MapServer world, and I'm having a little trouble. I am currently settin up a desktop development machine, running Windows XP, and IIS. The mapping application is being developed as part of a bigger application requiring IIS, so running the MSW4 (or other preconfigured installers) with Apache is not an option. I currently have: Mapserver 4.2.2 (the Itasca demo data set works just fine) PHP 5.0 MapScript 4.2, from the MapTools.org site The problem is that I have been unable to load the mapscript dll. When the DLL is turned on in the PHP.ini file, I receive the error: "Unable to load dynamic link library c:\inetpub\php\extensions\php_mapscript_42.dll The specified module can not be found" Other PHP modules load just fine. Anyone have any ideas? I have all of the DLL's listed in the DM Solutions documentation (gdal, pdf, etc) for this build in my scripts directory, which part of the system PATH. Thanks for any suggestions, Tim From Jwiebe at LINNET.CA Mon Aug 9 13:19:16 2004 From: Jwiebe at LINNET.CA (Jeremy Wiebe) Date: Mon, 9 Aug 2004 15:19:16 -0500 Subject: debian missing gd.h Message-ID: Hi Eric, Have you checked if the SDE libraries are in your LD_LIBRARY_PATH environment variable. Alternatively, some linux distro's use a file that tells the linker (ld) where to find libraries. It is usually called /etc/ld.so.conf. You might need to add the SDE library path into this file and run ldconfig. (use ldconfig -v to see all the libraries that are found). Hope that helps, Jeremy -----Original Message----- From: Hancock, Eric [mailto:Eric.Hancock at DEP.STATE.FL.US] Sent: August 9, 2004 12:34 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] debian missing gd.h Thanks, That works. Now I'm having difficulties getting the executable to find my sde libs. After compiling (with no errors about sde libs) I get the fallowing error when running the mapserv executable: debian:/home/eric/mapservsrc/mapserver-4.2.2# ./mapserv --help ./mapserv: error while loading shared libraries: libsde83.so: cannot open shared object file: No such file or directory Any idea's? I thought I passed the correct path when running configure, and I would've thought that it would complain about it if I had the wrong path. -Eric -----Original Message----- From: Vladimir Guzm?n [mailto:bigfoot at main-task.com] Sent: Monday, August 09, 2004 11:46 AM To: Hancock, Eric Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] debian missing gd.h Hancock, Eric wrote: >>Hello all, >> >>Does Debian put out a package with gd.h? For some reason the libgd package >>in the debian repository does not include this header file. >> >>Thanks, >>Eric >> >> > > > > Try: apt-get install libgd2-dev Regards, -- Vladimir Ilich Guzm?n R. ------------------------ http://maintask.com From Eric.Hancock at DEP.STATE.FL.US Mon Aug 9 13:17:33 2004 From: Eric.Hancock at DEP.STATE.FL.US (Hancock, Eric) Date: Mon, 9 Aug 2004 16:17:33 -0400 Subject: debian missing gd.h Message-ID: I ended up adding the variables to apache.conf and it seems to be working fine now. However, since then I've ran into an error... msDrawMap(): Image handling error. Failed to draw layer named 'shoreline'. msSDELayerWhichShapes(): SDE error. SE_queryinfo_set_columns(): Invalid parameter value passed to function. (-66) Which parameter is it refering to? Could it be something in my mapfile? -Eric -----Original Message----- From: Jeremy Wiebe [mailto:Jwiebe at linnet.ca] Sent: Monday, August 09, 2004 3:19 PM To: Hancock, Eric; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] debian missing gd.h Hi Eric, Have you checked if the SDE libraries are in your LD_LIBRARY_PATH environment variable. Alternatively, some linux distro's use a file that tells the linker (ld) where to find libraries. It is usually called /etc/ld.so.conf. You might need to add the SDE library path into this file and run ldconfig. (use ldconfig -v to see all the libraries that are found). Hope that helps, Jeremy -----Original Message----- From: Hancock, Eric [mailto:Eric.Hancock at DEP.STATE.FL.US] Sent: August 9, 2004 12:34 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] debian missing gd.h Thanks, That works. Now I'm having difficulties getting the executable to find my sde libs. After compiling (with no errors about sde libs) I get the fallowing error when running the mapserv executable: debian:/home/eric/mapservsrc/mapserver-4.2.2# ./mapserv --help ./mapserv: error while loading shared libraries: libsde83.so: cannot open shared object file: No such file or directory Any idea's? I thought I passed the correct path when running configure, and I would've thought that it would complain about it if I had the wrong path. -Eric -----Original Message----- From: Vladimir Guzm?n [mailto:bigfoot at main-task.com] Sent: Monday, August 09, 2004 11:46 AM To: Hancock, Eric Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] debian missing gd.h Hancock, Eric wrote: >>Hello all, >> >>Does Debian put out a package with gd.h? For some reason the libgd package >>in the debian repository does not include this header file. >> >>Thanks, >>Eric >> >> > > > > Try: apt-get install libgd2-dev Regards, -- Vladimir Ilich Guzm?n R. ------------------------ http://maintask.com From ARyan at CO.LINN.OR.US Mon Aug 9 13:20:32 2004 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Mon, 9 Aug 2004 13:20:32 -0700 Subject: Problem Loading Mapscript DLL (IIS) Message-ID: Tim, Instead of adding it to your ini file, try adding it in your php file like: dl('php_mapscript.dll'); If that doesn't help, try using DEPENDS.EXE to be sure you have all the required dlls. This is likely on the web somewhere if you don't have it. Best regards, Adam -----Original Message----- From: Tim Pascoe [mailto:tim.pascoe at EC.GC.CA] Sent: Monday, August 09, 2004 12:53 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Problem Loading Mapscript DLL (IIS) I'm relatively new to the MapServer world, and I'm having a little trouble. I am currently settin up a desktop development machine, running Windows XP, and IIS. The mapping application is being developed as part of a bigger application requiring IIS, so running the MSW4 (or other preconfigured installers) with Apache is not an option. I currently have: Mapserver 4.2.2 (the Itasca demo data set works just fine) PHP 5.0 MapScript 4.2, from the MapTools.org site The problem is that I have been unable to load the mapscript dll. When the DLL is turned on in the PHP.ini file, I receive the error: "Unable to load dynamic link library c:\inetpub\php\extensions\php_mapscript_42.dll The specified module can not be found" Other PHP modules load just fine. Anyone have any ideas? I have all of the DLL's listed in the DM Solutions documentation (gdal, pdf, etc) for this build in my scripts directory, which part of the system PATH. Thanks for any suggestions, Tim From mark at REFRACTIONS.NET Mon Aug 9 15:48:39 2004 From: mark at REFRACTIONS.NET (Mark Leslie) Date: Mon, 9 Aug 2004 15:48:39 -0700 Subject: Win32 Mapserver build failure Message-ID: I am having trouble with a building Mapserver 4.2.2 on a Windows 2000 machine. I built it with Proj, freetype compiled from source and gd windows binaries dist using the attached makefile. I'm using MS's build tools (cl, nmake, lib, link). Once compiled, mapserv -v returns what is expected, but accessing it through via Apache gives an application error: "memory could not be written". Running mapserv QUERY_STRING="..." was not helpful, since QUERY_STRING was not recognized, but shp2img produced the same error. The map file I'm attempting to use (attached) is from the mapserver recipes page, and runs fine on a linux build. I'm at my wits end with this, and would really appreciate any thoughts you might have. Mark -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: Makefile.vc URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: hello.map URL: From cz_toh at YAHOO.COM Mon Aug 9 22:18:21 2004 From: cz_toh at YAHOO.COM (Toh Chun Zheng) Date: Tue, 10 Aug 2004 00:18:21 -0500 Subject: Problem with Mapserver 4.2 Message-ID: I have the following error message "This application has failed to start because MSVCR71.dll was not found. Re-installing the application may fix this problem" From bartvde at XS4ALL.NL Mon Aug 9 23:04:22 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Tue, 10 Aug 2004 08:04:22 +0200 Subject: Problem with Mapserver 4.2 In-Reply-To: Message-ID: Hi, you have 2 options: 1) see: http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0406/msg00232.html 2) try the Windows binaries from www.maptools.org, i.e.: http://www.maptools.org/php_mapscript/index.phtml?page=downloads.html Best regards, Bart > I have the following error message > "This application has failed to start because MSVCR71.dll was not found. > Re-installing the application may fix this problem" > From mhln25 at YAHOO.COM Mon Aug 9 23:57:50 2004 From: mhln25 at YAHOO.COM (Mahalakshmi Narayanan) Date: Mon, 9 Aug 2004 23:57:50 -0700 Subject: Installation on RedHat AS - gdal version? In-Reply-To: <3FC4483968B5A048BBD9F3387EBFF5C001A1D75E@XMAIL1.sooner.net.ou.edu> Message-ID: Hi Gayathri! Thanks for showing interest in solving my problem. MapServer was compiled with PostGIS option only. The following was how it was configured: ./configure \ --with-curl=/usr/bin \ --without-tiff \ --without-eppl \ --with-jpeg \ --with-threads \ --with-proj \ --with-gdal \ --with-php=/usr/local/include/php/ \ --with-gd=/usr/local/lib \ --with-freetype \ --with-ogr \ --with-ming \ --with-wmsclient \ --with-wfs \ --with-wfsclient \ --with-png \ --with-postgis and my mapserv -v returns the following: ./mapserv -v MapServer version 4.2.2 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE What could be the problem please? With kind regards, Mahalakhsmi Narayanan --- "Swaminathan, Gayathri" wrote: > Hi: > > This does not seem tobe a GDAL version handling > error. > > It seems like that your mapserv binaries were not > compiled with Postgis support, or your DATA > statement is not formed correctly. > > Can you post the source of your mapserver binaries, > the layer accessing postgres.. > > That will help, troubleshoot. > > Gayathri > > > -----Original Message----- > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf > Of > > Mahalakshmi Narayanan > > Sent: Monday, August 09, 2004 1:12 AM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] Installation on > RedHat AS - > > gdal version? > > > > > > Hi! > > > > For PostgreSQL 7.4, PostGIS 0.8.0 and MapServer > 4.2.2 > > what version of gdal should be used.. > > > > I am getting the following error when I try to > open a > > PostGIS layer using MapServer 4.2.2 on my browser: > > > > msDrawMap(): Image handling error. Failed to draw > > layer named 'tndistricts'. > > msPOSTGISLayerOpen(): Query error. > msPOSTGISLayerOpen > > called but unimplemented! (mapserver not compiled > with > > postgis support) > > > > Kindly help me get over this problem. I tried > digging > > out the right version of gdal that should be used > but > > could not find. > > > > Thanks in advance. > > > > With regards, > > Mahalakshmi Narayanan > > > > > > > > > > __________________________________ > > Do you Yahoo!? > > New and Improved Yahoo! Mail - 100MB free storage! > > http://promotions.yahoo.com/new_mail > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From mhln25 at YAHOO.COM Tue Aug 10 00:15:23 2004 From: mhln25 at YAHOO.COM (Mahalakshmi Narayanan) Date: Tue, 10 Aug 2004 00:15:23 -0700 Subject: Installation on RedHat AS - gdal version? In-Reply-To: <3FC4483968B5A048BBD9F3387EBFF5C001A1D75E@XMAIL1.sooner.net.ou.edu> Message-ID: Hi Gayathri! I solved it. I didn't link C++ library while configuring. After I added LDFLAGS=-lstc++ before my configure, now it seems to work. Thanks a lot! With kind regards, Mahalakshmi Narayanan --- "Swaminathan, Gayathri" wrote: > Hi: > > This does not seem tobe a GDAL version handling > error. > > It seems like that your mapserv binaries were not > compiled with Postgis support, or your DATA > statement is not formed correctly. > > Can you post the source of your mapserver binaries, > the layer accessing postgres.. > > That will help, troubleshoot. > > Gayathri > > > -----Original Message----- > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf > Of > > Mahalakshmi Narayanan > > Sent: Monday, August 09, 2004 1:12 AM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] Installation on > RedHat AS - > > gdal version? > > > > > > Hi! > > > > For PostgreSQL 7.4, PostGIS 0.8.0 and MapServer > 4.2.2 > > what version of gdal should be used.. > > > > I am getting the following error when I try to > open a > > PostGIS layer using MapServer 4.2.2 on my browser: > > > > msDrawMap(): Image handling error. Failed to draw > > layer named 'tndistricts'. > > msPOSTGISLayerOpen(): Query error. > msPOSTGISLayerOpen > > called but unimplemented! (mapserver not compiled > with > > postgis support) > > > > Kindly help me get over this problem. I tried > digging > > out the right version of gdal that should be used > but > > could not find. > > > > Thanks in advance. > > > > With regards, > > Mahalakshmi Narayanan > > > > > > > > > > __________________________________ > > Do you Yahoo!? > > New and Improved Yahoo! Mail - 100MB free storage! > > http://promotions.yahoo.com/new_mail > __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail From temiz at DEPREM.GOV.TR Tue Aug 10 00:51:49 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Tue, 10 Aug 2004 10:51:49 +0300 Subject: mapserver from localhost Message-ID: when I tried to run mapserver from localhost as http://localhost/cgi-bin/mapserv?z...... I encounter this problem : ----- Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, root at midas.slackware.lan and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. ---- anyone can tell me why ? kind regards Ahmet Temiz ______________________________________ Inflex - 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Tue Aug 10 01:04:40 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Tue, 10 Aug 2004 10:04:40 +0200 Subject: mapserver from localhost In-Reply-To: <41187E95.4080309@deprem.gov.tr> Message-ID: Hi, You are likely missing a dependency, if you are using Windows as your platform look at the e-mail thread from today named: "Problem with Mapserver 4.2". What is your platform? What is your Mapserver version number? Best regards, Bart > when I tried to run mapserver from localhost as > http://localhost/cgi-bin/mapserv?z...... > > I encounter this problem : > ----- > Internal Server Error > The server encountered an internal error or misconfiguration and was > unable to complete your request. > > Please contact the server administrator, root at midas.slackware.lan and > inform them of the time the error occurred, and anything you might have > done that may have caused the error. > > More information about this error may be available in the server error > log. > > ---- > anyone can tell me why ? > > kind regards > > Ahmet Temiz > > > > ______________________________________ > Inflex - 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 cz_toh at YAHOO.COM Tue Aug 10 01:40:18 2004 From: cz_toh at YAHOO.COM (Toh Chun Zheng) Date: Tue, 10 Aug 2004 03:40:18 -0500 Subject: Problem with Mapserver 4.2 Message-ID: Thanks bart I have solved the dependacy problem but I have an error that is almost the same as the one posted first "[Tue Aug 10 16:36:51 2004] [error] [client 127.0.0.1] malformed header from script. Bad header=GIF87a? ? ?: mapserv.exe" I am using TIF images not GIF images... From bartvde at XS4ALL.NL Tue Aug 10 02:07:34 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Tue, 10 Aug 2004 11:07:34 +0200 Subject: Problem with Mapserver 4.2 In-Reply-To: Message-ID: Hi, are you using the windows binaries from mapserver.gis.umn.edu or the binaries from maptools.org? I would suggest to try the maptools.org binaries and see if they fix your problem. http://www.maptools.org/dl/mapserver-4.2.2-win32-php4.3.7.zip Best regards, Bart > Thanks bart I have solved the dependacy problem but I have an error that > is almost the same as the one posted first > "[Tue Aug 10 16:36:51 2004] [error] [client 127.0.0.1] malformed header > from script. Bad header=GIF87a? ? ?: mapserv.exe" > > I am using TIF images not GIF images... > > From gheysen.t at SKYNET.BE Tue Aug 10 02:46:33 2004 From: gheysen.t at SKYNET.BE (Gheysen Thibaut) Date: Tue, 10 Aug 2004 11:46:33 +0200 Subject: Symbol and querymap in MapServer 4.2 Message-ID: Hi, I have a problem with symbol and querymap in Mapserver 4.2. With this definition of the layer, all was good but the line are too small : ...... QUERYMAP STATUS ON STYLE HILITE COLOR 255 255 0 END ..... LAYER NAME "cadastre" DATA "utilisateur/%Num_Dsg%/cadastre/cadastre_%Num_Propri?t?%_%Num_Bloc%" TYPE polygon STATUS OFF METADATA "DESCRIPTION" "Cadastre" "RESULT_FIELDS" "DIV_NOM SECTION RADICAL BIS EXPOSANT PUISSANCE" "QUERY_FIELDS" "DIV_NOM SECTION RADICAL BIS EXPOSANT PUISSANCE" END CLASS NAME "Cadastre" OUTLINECOLOR 255 0 0 TEMPLATE "query" END END Thus I have add "size 2" and "symbol 4" in the mapfile. With this the selected polygon are not highlighted. Here is the new definition of the layer and the definition of the symbol I used. LAYER NAME "cadastre" DATA "utilisateur/%Num_Dsg%/cadastre/cadastre_%Num_Propri?t?%_%Num_Bloc%" TYPE polygon STATUS OFF METADATA "DESCRIPTION" "Cadastre" "RESULT_FIELDS" "DIV_NOM SECTION RADICAL BIS EXPOSANT PUISSANCE" "QUERY_FIELDS" "DIV_NOM SECTION RADICAL BIS EXPOSANT PUISSANCE" END CLASS NAME "Cadastre" SYMBOL 4 SIZE 2 OUTLINECOLOR 255 0 0 TEMPLATE "query" END END Symbol Name 'plus' Type VECTOR Points .5 0 .5 1 -99 -99 0 .5 1 .5 END END This problem are new in MapServer : only in MapServer 4.2. Anyone can help me ? Bests regards. Thibaut. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cz_toh at YAHOO.COM Tue Aug 10 03:40:14 2004 From: cz_toh at YAHOO.COM (Toh Chun Zheng) Date: Tue, 10 Aug 2004 05:40:14 -0500 Subject: Problem with Mapserver 4.2 Message-ID: This is the one I used http://mapserver.gis.umn.edu/win32binaries.html This is a normal windows mapserver without PHP From nicolas.fortin at EC.GC.CA Tue Aug 10 04:23:16 2004 From: nicolas.fortin at EC.GC.CA (Nicolas Fortin) Date: Tue, 10 Aug 2004 06:23:16 -0500 Subject: I can't post from outlook yet! Message-ID: Hi list, I post this message from the mapserver listserv directly. I can't post from outlook, I always got this message back: Impossible de contacter le(s) destinataire(s) suivant(s) : MAPSERVER-USERS at LISTS.UMN.EDU le 8/10/2004 7:17 AM You do not have permission to send to this recipient. For assistance, contact your system administrator. ... Rejected by user; see: > It's annoying...I can post my problem from the site but I can't reply to others... Any idea? Nicolas Fortin From temiz at DEPREM.GOV.TR Tue Aug 10 05:16:32 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Tue, 10 Aug 2004 15:16:32 +0300 Subject: Unable to access file ? Message-ID: hello I have encountered this error message: "msSaveImage(): Unable to access file. (/var/www/htdocs/tmp/karabuk1092140031695.png)" what might be the solution ? regards Ahmet Temiz ______________________________________ Inflex - 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 lfilak at MEDINACO.ORG Tue Aug 10 05:25:44 2004 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Tue, 10 Aug 2004 08:25:44 -0400 Subject: Unable to access file ? Message-ID: Does /var/www/htdocs/tmp exist and is it either owned by the apache process user or does is have permissions 777? HTH Lowell The following message was sent by temiz on Tue, 10 Aug 2004 15:16:32 +0300. > hello > > I have encountered this error message: > > "msSaveImage(): Unable to access file. > (/var/www/htdocs/tmp/karabuk1092140031695.png)" > > what might be the solution ? > > regards > > Ahmet Temiz > > > ______________________________________ > Inflex - 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 bartvde at XS4ALL.NL Tue Aug 10 05:35:06 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Tue, 10 Aug 2004 14:35:06 +0200 Subject: raster legends Message-ID: Hi list, I want to add legends to my pre-classified raster layers. I tried adding CLASS objects to the RASTER LAYER, but this ofcourse also affects the map drawing process which I would not want to influence. Is there a way to add a classification just for legend purposes? Thanks in advance. Best regards, Bart From temiz at DEPREM.GOV.TR Tue Aug 10 05:44:43 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Tue, 10 Aug 2004 15:44:43 +0300 Subject: Unable to access file ? In-Reply-To: <20040810122536.192801A65A9@mail.medinaco.org> Message-ID: thank you all people who answered my question after checking whether the directory is writable, the problem is solved regards Lowell Filak wrote: >Does /var/www/htdocs/tmp exist and is it either owned by the apache >process user or does is have permissions 777? > >HTH > >Lowell > >The following message was sent by temiz on Tue, 10 >Aug 2004 15:16:32 +0300. > > > >>hello >> >>I have encountered this error message: >> >>"msSaveImage(): Unable to access file. >>(/var/www/htdocs/tmp/karabuk1092140031695.png)" >> >>what might be the solution ? >> >>regards >> >>Ahmet Temiz >> >> >>______________________________________ >>Inflex - 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. > > > > ______________________________________ Inflex - 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pram at PRAMCENTRAL.COM Tue Aug 10 05:51:20 2004 From: pram at PRAMCENTRAL.COM (Prashanth Ram) Date: Tue, 10 Aug 2004 08:51:20 -0400 Subject: Unable to access file ? Message-ID: Temiz: Make sure that the file is chmod to 644, and the username that runs the server (usually apache or nobody) has read access to the file and the directory. -Prashanth On Tue, 10 Aug 2004 15:16:32 +0300, temiz wrote: > > hello > > I have encountered this error message: > > "msSaveImage(): Unable to access file. > (/var/www/htdocs/tmp/karabuk1092140031695.png)" > > what might be the solution ? > > regards > > Ahmet Temiz > > > ______________________________________ > Inflex - 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 temiz at DEPREM.GOV.TR Tue Aug 10 06:15:03 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Tue, 10 Aug 2004 16:15:03 +0300 Subject: No display Message-ID: hello I am trying to display one shp file (line) Although I don't get any error message, map cannot be displayed. What may be the problem ? kind rgards Ahmet Temiz ______________________________________ Inflex - 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 wlazlowski at IGPIK.WAW.PL Tue Aug 10 06:20:01 2004 From: wlazlowski at IGPIK.WAW.PL (=?ISO-8859-2?Q?Tomasz_Wlaz=B3owski?=) Date: Tue, 10 Aug 2004 15:20:01 +0200 Subject: working demo? Message-ID: Hello developers! I have already installed Mapserver ver. 4.0.1 and I have worked on workshop and itasca demo. It's pretty easy to run it and changing some of the components. Now I try to handle with QUERY ITEM AND FEATUREQUERY. Does anybody have working demo (example) with those modes? Actually I looking the way to zooming to selected feature in the map window (not in the query window). Thanks for any suggestions....... Wlazlowski Tomasz Wlazlowski at igpik.waw.pl From pagameba at MAGMA.CA Tue Aug 10 06:11:21 2004 From: pagameba at MAGMA.CA (Paul Spencer) Date: Tue, 10 Aug 2004 09:11:21 -0400 Subject: raster legends In-Reply-To: <15053.212.238.227.182.1092141306.squirrel@webmail.xs4all.nl> Message-ID: try KEYIMAGE in a class on the raster layer, dunno if it will work or not :) Paul Bart van den Eijnden wrote: > Hi list, > > I want to add legends to my pre-classified raster layers. I tried adding > CLASS objects to the RASTER LAYER, but this ofcourse also affects the map > drawing process which I would not want to influence. > > Is there a way to add a classification just for legend purposes? > > Thanks in advance. > > Best regards, > Bart > -- ----------------------------------------------------------------- |Paul Spencer pspencer at dmsolutions.ca | |-----------------------------------------------------------------| |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| ----------------------------------------------------------------- From lehrs at ERAU.EDU Tue Aug 10 10:06:27 2004 From: lehrs at ERAU.EDU (Steve Lehr) Date: Tue, 10 Aug 2004 13:06:27 -0400 Subject: Decoding Blob Object in Microsoft Access Database personal Geodatabase Message-ID: Anyone broken the decoding on the text object for ESRI Geodatabases? I'd like to support the programmer that wishes to tackle the job. Here is a Sample of a Road Name table in the Geo database OBJECTID SHAPE FeatureID ZOrder AnnotationClassID Element SHAPE_Length SHAPE_Area ROADNAME_ ROADNAME_ID ANNOTATIONCLASSI 1 0 0 397.72200370989 5202.26409780489 1 1 0 The road name it self if a labeled as a long binary object. If you export to a shape file, its all blank. I need the label to have its elemental information something like x_position, y_position, rotational angle, text. Thoughts, successes? I'm hoping not to have to buy map objects and prefer using perl/php to decode it rather then going to visual basic with map objects which would surely have the answer embedded in their. If someone needs to see a sample data set, I have it available. Thanks Steven Lehr Assistant Professor College of Engineering Embry-Riddle Aeronautical University (LB159) 600 S. Clyde Morris Blvd. Daytona Beach, FL 32114-3900 386-226-7740 From steve.lime at DNR.STATE.MN.US Tue Aug 10 11:02:55 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 10 Aug 2004 13:02:55 -0500 Subject: raster legends Message-ID: There's a way to add a single legend icon using KEYIMAGE but that's only useful for single classes. Hmmmm.... How did you try adding classes? With or without expressions? Steve >>> Bart van den Eijnden 8/10/2004 7:35:06 AM >>> Hi list, I want to add legends to my pre-classified raster layers. I tried adding CLASS objects to the RASTER LAYER, but this ofcourse also affects the map drawing process which I would not want to influence. Is there a way to add a classification just for legend purposes? Thanks in advance. Best regards, Bart From randy.page at TERRAVERGE.COM Tue Aug 10 14:14:23 2004 From: randy.page at TERRAVERGE.COM (Randy Page) Date: Tue, 10 Aug 2004 16:14:23 -0500 Subject: Overlaying vectors on raster Message-ID: Hi All, I?m working with Tiger data in the standard old geographic non-projection, and am attempting to overlay streets on top of aerials pulled in via WGS from USGS. The problem I am having is that the streets are WAY off in every location I try. I realize the Tiger data is not terribly accurate, but I have seen others do a much better job of overlaying the data. The aerials I am requesting are in EPSG 4326 (which is I believe WGS84 geographic) while the Tiger data is in EPSG 4269 (which is I believe NAD83 geographic.) I wouldn?t think the datum would make that much of a difference. The link below is to an example map that shows how far off the streets are: http://viewer.terraverge.net/viewer_mi/maps/sample.jpg Any ideas or suggestions? Thanks, Randy From woodbri at SWOODBRIDGE.COM Tue Aug 10 14:57:33 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 10 Aug 2004 17:57:33 -0400 Subject: Overlaying vectors on raster In-Reply-To: Message-ID: It is easy to set the output projection to to that of you images and add the same to all the image layers, then you can set the tiger layers to have a different projection block. This will only cause the vector layers to be reprojected. I get pretty good registration between GPS tracks in the north-east and tiger data without the need for any projection and the GPS is returning data in WGS84 and the TIGER data is in NAD83 See here: http://swoodbridge.com/moto/ Tiger data was collect in different ways in different areas. There are some areas the that have poor registration and other with good. Check an area in the north-east and see how it lines up. Tiger is going through a modernization program and will be making a lot of updates over the next few years so it will be ready for the 2010 census. -Steve W Randy Page wrote: > Hi All, > > I?m working with Tiger data in the standard old geographic non-projection, > and am attempting to overlay streets on top of aerials pulled in via WGS > from USGS. The problem I am having is that the streets are WAY off in > every location I try. I realize the Tiger data is not terribly accurate, > but I have seen others do a much better job of overlaying the data. The > aerials I am requesting are in EPSG 4326 (which is I believe WGS84 > geographic) while the Tiger data is in EPSG 4269 (which is I believe NAD83 > geographic.) I wouldn?t think the datum would make that much of a > difference. > > The link below is to an example map that shows how far off the streets are: > > http://viewer.terraverge.net/viewer_mi/maps/sample.jpg > > Any ideas or suggestions? > > Thanks, > > Randy > From avartabedian at WEBSERVICES.COM.UY Tue Aug 10 16:04:24 2004 From: avartabedian at WEBSERVICES.COM.UY (Alejandro Vartabedian) Date: Tue, 10 Aug 2004 20:04:24 -0300 Subject: test Message-ID: not empty ;-) From mike at BARRODALE.COM Tue Aug 10 17:03:38 2004 From: mike at BARRODALE.COM (Mike Dunham-Wilkie) Date: Tue, 10 Aug 2004 19:03:38 -0500 Subject: mapserv.exe - file not found error under Windows 2003 Message-ID: We are trying to run Mapserver under Windows 2003 / IIS. I have it running successfully in a Windows XP environment, but when I follow the same installation process / IIS setup on the Windows 2003 box and point to http://website/cgi-bin/mapserv.exe?.... I get a 404 - Page not found error, even though when I go to http://website/cgi-bin/ (without the mapserv.exe) I get a directory listing showing mapserv.exe The file mapserv.exe appears to have appropriate permissions set. Does this ring a bell with anyone? Thanks very much Mike Dunham-Wilkie From ed at TOPOZONE.COM Tue Aug 10 17:18:03 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 10 Aug 2004 20:18:03 -0400 Subject: mapserv.exe - file not found error under Windows 2003 Message-ID: Mike - Is the virtual directory for "cgi-bin" in that Web site set up under IIS with permission to execute programs? Remember that there are several layers of "appropriate permissions". - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Mike Dunham-Wilkie Sent: Tuesday, August 10, 2004 7:04 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] mapserv.exe - file not found error under Windows 2003 We are trying to run Mapserver under Windows 2003 / IIS. I have it running successfully in a Windows XP environment, but when I follow the same installation process / IIS setup on the Windows 2003 box and point to http://website/cgi-bin/mapserv.exe?.... I get a 404 - Page not found error, even though when I go to http://website/cgi-bin/ (without the mapserv.exe) I get a directory listing showing mapserv.exe The file mapserv.exe appears to have appropriate permissions set. Does this ring a bell with anyone? Thanks very much Mike Dunham-Wilkie From ARyan at CO.LINN.OR.US Tue Aug 10 17:19:14 2004 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Tue, 10 Aug 2004 17:19:14 -0700 Subject: mapserv.exe - file not found error unde r Windows 2003 Message-ID: Mike, I'll probably be no help. Are your sure you set your Execute Permissions in your IIS setup for that directory? Adam Ryan GIS Analyst Linn County GIS Department County Courthouse / Room 25 300 SW Fourth Ave. Albany, OR 97321 541.812.8760 aryan at co.linn.or.us -----Original Message----- From: Mike Dunham-Wilkie [mailto:mike at BARRODALE.COM] Sent: Tuesday, August 10, 2004 5:04 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] mapserv.exe - file not found error under Windows 2003 We are trying to run Mapserver under Windows 2003 / IIS. I have it running successfully in a Windows XP environment, but when I follow the same installation process / IIS setup on the Windows 2003 box and point to http://website/cgi-bin/mapserv.exe?.... I get a 404 - Page not found error, even though when I go to http://website/cgi-bin/ (without the mapserv.exe) I get a directory listing showing mapserv.exe The file mapserv.exe appears to have appropriate permissions set. Does this ring a bell with anyone? Thanks very much Mike Dunham-Wilkie From richard.greenwood at GMAIL.COM Tue Aug 10 17:44:30 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Tue, 10 Aug 2004 18:44:30 -0600 Subject: mapserv.exe - file not found error under Windows 2003 In-Reply-To: Message-ID: On Tue, 10 Aug 2004 19:03:38 -0500, Mike Dunham-Wilkie wrote: > We are trying to run Mapserver under Windows 2003 / IIS. I have it running > successfully in a Windows XP environment, but when I follow the same > installation process / IIS setup on the Windows 2003 box and point to > > http://website/cgi-bin/mapserv.exe?.... > > I get a 404 - Page not found error, even though when I go to > > http://website/cgi-bin/ (without the mapserv.exe) I get a directory > listing showing mapserv.exe > > The file mapserv.exe appears to have appropriate permissions set. > > Does this ring a bell with anyone? > > Thanks very much > > Mike Dunham-Wilkie > Windows 2003 has a new top-level permissions "branch" in IIS Manager called "Web Service Extensions" which caused me endless grief. Once you know where to look it's pretty straight forward. There is some discussion at: http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechnol/windowsserver2003/proddocs/standard/ca_configcgi.asp And the 404 error is totally misleading! HTH -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From richard.greenwood at GMAIL.COM Tue Aug 10 17:51:25 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Tue, 10 Aug 2004 18:51:25 -0600 Subject: gmane Message-ID: I am using gmane to view the mapserver-users list and I don't see any posts since 4 Aug. Maybe gmane never got re-subscribed to the new mapserver-users? Is anybody more a little more up to speed with this than me? -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From jacob.delfos at MAUNSELL.COM Tue Aug 10 18:06:45 2004 From: jacob.delfos at MAUNSELL.COM (J. Delfos) Date: Wed, 11 Aug 2004 09:06:45 +0800 Subject: I can't post from outlook yet! Message-ID: Neither can I. I always get it back saying the remote host can't be found. I keep having to paste stuff into outlook express and use a POP server. I have it for the chameleon maptools list as well. I just asked the system administrator to look into it, but I don't think the problem is on my end. Jacob -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Nicolas Fortin Sent: 10 August 2004 19:23 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] I can't post from outlook yet! Hi list, I post this message from the mapserver listserv directly. I can't post from outlook, I always got this message back: Impossible de contacter le(s) destinataire(s) suivant(s) : MAPSERVER-USERS at LISTS.UMN.EDU le 8/10/2004 7:17 AM You do not have permission to send to this recipient. For assistance, contact your system administrator. ... Rejected by user; see: > It's annoying...I can post my problem from the site but I can't reply to others... Any idea? Nicolas Fortin -------------- next part -------------- An HTML attachment was scrubbed... URL: From John.Hockaday at GA.GOV.AU Tue Aug 10 18:11:49 2004 From: John.Hockaday at GA.GOV.AU (John Hockaday) Date: Wed, 11 Aug 2004 11:11:49 +1000 Subject: Test post from M$ Outlook Message-ID: Please ignore. This is a test email from M$ Outlook Thanks. From brant at MUDLABS.COM Tue Aug 10 19:48:27 2004 From: brant at MUDLABS.COM (Brant Anderson) Date: Tue, 10 Aug 2004 21:48:27 -0500 Subject: Zoom To Message-ID: I was wondering if somebody had an example of how to Zoom To an extent based on an attribute query. If I could grab the extent of a shape such as a parcel (by querying on the ParcelID attribute), I could zoom the map to that location. But right now I am stuck. Does anybody have experience doing this through the CGI interface? Thanks, Brant From tylermitchell at SHAW.CA Tue Aug 10 20:16:33 2004 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Tue, 10 Aug 2004 20:16:33 -0700 Subject: Building polygons from a polylines Message-ID: Anyone have nifty tricks for some basic building of polygons from lines in a shape file? Let's assume my data is good and clean - any tips? Tyler From cz_toh at YAHOO.COM Tue Aug 10 21:43:02 2004 From: cz_toh at YAHOO.COM (=?iso-8859-1?q?TOH=20CZ?=) Date: Wed, 11 Aug 2004 05:43:02 +0100 Subject: Flash example compatibility Message-ID: Hi I would like to ask if the Flash example on the website is able to work with Mapserver Windows Binary Version 4.0.1 I have tried downloading and opening it but it takes a long time to load and then it gives an error page could not be loaded I did a mapserv40.exe -v in command prompt and I saw that the outputs include SWF(the flash output extension) Thanks ___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com From stefan.schwarzer at GRID.UNEP.CH Tue Aug 10 23:51:24 2004 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Wed, 11 Aug 2004 08:51:24 +0200 Subject: ArcINFO GRIDs Message-ID: Hi there, I am a bit lost on the subject of GRIDs and their use with Mapserver. I read a message that it is possible - but with binaries ( http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0404/msg00750.html ). But then, this is probably not the normal format. In short: I have an ArcInfo GRID (Population density) which I would like to have displayed, with a given color schema. As I tried - in vain - a couple of transformations into TIFs and the like, I am now seeking help from the experts. Can anyone describe how or if such a GRID can be used, and in combination with a color schema?! Thanks for any help, Stefan _______________________________________ Stefan Schwarzer GIS & Data Management UNEP/DEWA/GRID-Geneva Chemin des Anemones 11 CH - 1219 Chatelaine Switzerland Tel: (+41) 22.917.83.49 Fax: (+41) 22.917.80.29 Internet: http://geodata.grid.unep.ch/ _______________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From alberto.cavalli at SINTRANET.IT Wed Aug 11 00:56:10 2004 From: alberto.cavalli at SINTRANET.IT (Alberto Cavalli) Date: Wed, 11 Aug 2004 09:56:10 +0200 Subject: MIGRATING SHAPE IN MYSQL Message-ID: I found this interesting way to work and I'd like to do this to menage a big amount of data. I've read the instruction on mapserver.wiki but I don't understand correctly how I can make it. Did someone make it? can someone help for the migration from shape to mysql? What i've to do? thanks a lot Alberto From bartvde at XS4ALL.NL Wed Aug 11 01:55:53 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Wed, 11 Aug 2004 10:55:53 +0200 Subject: MIGRATING SHAPE IN MYSQL In-Reply-To: <5C364C28DF05D611A03200E01832693FC43D6B@sintraweb.sintranet.it> Message-ID: Hi Alberto, did you consider migrating to PostGIS (postgis.refractions.net) instead? IMHO that would be a far better option. Best regards, Bart > I found this interesting way to work and I'd like to do this to menage a > big > amount of data. I've read the instruction on mapserver.wiki but I don't > understand correctly how I can make it. Did someone make it? > can someone help for the migration from shape to mysql? What i've to do? > thanks a lot > Alberto > From bartvde at XS4ALL.NL Wed Aug 11 02:07:21 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Wed, 11 Aug 2004 11:07:21 +0200 Subject: R: [UMN_MAPSERVER-USERS] MIGRATING SHAPE IN MYSQL In-Reply-To: <5C364C28DF05D611A03200E01832693FC43D6C@sintraweb.sintranet.it> Message-ID: Hi Alberto, MySQL has spatial datatypes in 4.1 (alpha) if I am not mistaken, but Mapserver does not have a data connector for that. See also this link for a review: http://postgis.refractions.net/pipermail/postgis-users/2003-June/002651.html So I assume you are talking about the MyGIS option, there is a Perl utility which can write your shapefile to the MyGIS format, but all that I know is from the Wiki page. PostGIS is a spatial extension for PostgreSQL, and is a lot more mature. There are several tools to get your shapefile data into postgis, shp2pgsql or ogr2ogr from Frank Warmerdam. There are also very good tutorials (see the proceeding from the Ottawa meeting) to get you started with PostGIS. I found it easy to get started. http://www.omsug.ca/osgis2004/proceedings.html Hope this helps. Best regards, Bart > > THANKS FOR YOUR REPLY BART, I'D LIKE TO WORK WITH MYSQL ONLY BECAUSE THIS > IS > THE WAY THAT I'VE FOUND AND ALSO BECAUSE I KNOW MYSQL BUT I DON'T KNOW > POSTGIS. CA YOU TELL ME MORE ABOUT POSTGIS AND THE MIGRATION OF SHAPE? > THANKS IN ADVANCE > ALBERTO > > > > -----Messaggio originale----- > Da: bartvde at xs4all.nl > A: Alberto Cavalli > Cc: mapserver-users at lists.umn.edu > Inviato: 11/08/04 10.55 > Oggetto: Re: [UMN_MAPSERVER-USERS] MIGRATING SHAPE IN MYSQL > > Hi Alberto, > > did you consider migrating to PostGIS (postgis.refractions.net) instead? > IMHO that would be a far better option. > > Best regards, > Bart > >> I found this interesting way to work and I'd like to do this to menage > a >> big >> amount of data. I've read the instruction on mapserver.wiki but I > don't >> understand correctly how I can make it. Did someone make it? >> can someone help for the migration from shape to mysql? What i've to > do? >> thanks a lot >> Alberto >> > From bartvde at XS4ALL.NL Wed Aug 11 04:14:58 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Wed, 11 Aug 2004 13:14:58 +0200 Subject: 3D shapefile: OGR Message-ID: Hi list, I am trying to use a 3D shapefile with Mapserver, and found in the archive that this is only supported through the OGR connection. It works, but it does not use the quadtree index, which makes it very slow. What do I need to do to make it faster? Or is this is known limitation? Best regards, Bart From plists at PROMETHEUS.ORG.YU Wed Aug 11 04:15:27 2004 From: plists at PROMETHEUS.ORG.YU (Attila Csipa) Date: Wed, 11 Aug 2004 13:15:27 +0200 Subject: MIGRATING SHAPE IN MYSQL In-Reply-To: <5C364C28DF05D611A03200E01832693FC43D6B@sintraweb.sintranet.it> Message-ID: On Wednesday 11 August 2004 09:56, Alberto Cavalli wrote: > I found this interesting way to work and I'd like to do this to menage a > big amount of data. I've read the instruction on mapserver.wiki but I don't The MyGIS extension as it is now does not use the spatial types so it is not really fitted for large amounts of data... Since there has been a lot of interest in converting the data and some people had problems making the perl converter work I'll probably make some minor modifications to the shp2pgsql program from the postgis project so it can generate mygis compatible tables as well, that should be easier to use then the perl program and probably easier to port to windows too. From woodbri at SWOODBRIDGE.COM Wed Aug 11 06:13:43 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 11 Aug 2004 09:13:43 -0400 Subject: Building polygons from a polylines In-Reply-To: <200408102016.33887.tylermitchell@shaw.ca> Message-ID: Tyler Mitchell wrote: > Anyone have nifty tricks for some basic building of polygons from lines in a > shape file? Let's assume my data is good and clean - any tips? The (an) algorithm for this is as follows: 1) convert end points into nodes with unique ids based on unique points in space (define unique points in space based on a tolerance to avoid numerical rounding issues. 2) build a connectivity graph, i.e.. for any node A it is connected to B,C,... by taking each line (node A to node B) and associating A is connected to B and B is connected to A. 3) pick and arbitrary node (like node A) and build a chain A connected to N, remove A-N and N-A from the graph, then N connected to X, remove N-X and X-N NOTE: you can have more then one connections between nodes, so you should be prepared to handle multiple X-N instances. When you run out of connection in the chain above. Scan the graph for Additional start nodes (as you may have more than one loop. and generate additional loops. If there are no additional loops then you are done. This does not account for right-handed or left-handed ordering of the polygons, so if you care you will need to add a step to order them before you output them. There are also some degenerate cases that this will handle but that you might want to deal with, like: What is a polygon with one edge? what is the shape doing? Holes in polygons? Two polygons connected at a single point like a doughnut with the hole touching the outer edge or a figure eight. In general mapserver handles these pretty well but you should test these to make sure you are building usable polygons. Hope this helps, -Steve W. From gerry.creager at TAMU.EDU Wed Aug 11 07:43:50 2004 From: gerry.creager at TAMU.EDU (Gerry Creager N5JXS) Date: Wed, 11 Aug 2004 09:43:50 -0500 Subject: Overlaying vectors on raster In-Reply-To: Message-ID: It has the appearance of a datum shift. There's precious little difference for street overlays between NAD83 and WGS84 datums. So what if you were to declare the Tiger data NAD27 (EPSG 4267)? An idea of where, geographically, the image and vector data are from would help in calculating the datum shift. gerry Randy Page wrote: > Hi All, > > I?m working with Tiger data in the standard old geographic non-projection, > and am attempting to overlay streets on top of aerials pulled in via WGS > from USGS. The problem I am having is that the streets are WAY off in > every location I try. I realize the Tiger data is not terribly accurate, > but I have seen others do a much better job of overlaying the data. The > aerials I am requesting are in EPSG 4326 (which is I believe WGS84 > geographic) while the Tiger data is in EPSG 4269 (which is I believe NAD83 > geographic.) I wouldn?t think the datum would make that much of a > difference. > > The link below is to an example map that shows how far off the streets are: > > http://viewer.terraverge.net/viewer_mi/maps/sample.jpg > > Any ideas or suggestions? > > Thanks, > > Randy -- Gerry Creager -- gerry.creager at tamu.edu Network Engineering -- 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 tylermitchell at SHAW.CA Wed Aug 11 07:37:01 2004 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Wed, 11 Aug 2004 07:37:01 -0700 Subject: ArcINFO GRIDs In-Reply-To: <6.0.1.1.2.20040811084607.030b5f98@gridg.grid.unep.ch> Message-ID: Hi Stefan, Have you tried using any GDAL related utilities? Where did you get the version of MapServer you are using? Tyler On August 10, 2004 11:51 pm, Stefan Schwarzer wrote: > Hi there, > > I am a bit lost on the subject of GRIDs and their use with Mapserver. I > read a message that it is possible - but with binaries ( > http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0404/msg00750.html > ). But then, this is probably not the normal format. In short: > > I have an ArcInfo GRID (Population density) which I would like to have > displayed, with a given color schema. As I tried - in vain - a couple of > transformations into TIFs and the like, I am now seeking help from the > experts. Can anyone describe how or if such a GRID can be used, and in > combination with a color schema?! > > Thanks for any help, > > Stefan > > > _______________________________________ > > Stefan Schwarzer > GIS & Data Management > > UNEP/DEWA/GRID-Geneva > Chemin des Anemones 11 > CH - 1219 Chatelaine > Switzerland > > Tel: (+41) 22.917.83.49 > Fax: (+41) 22.917.80.29 > > Internet: http://geodata.grid.unep.ch/ > _______________________________________ From dmorissette at DMSOLUTIONS.CA Wed Aug 11 08:14:58 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Wed, 11 Aug 2004 11:14:58 -0400 Subject: 3D shapefile: OGR In-Reply-To: <12922.212.238.227.182.1092222898.squirrel@webmail.xs4all.nl> Message-ID: Bart van den Eijnden wrote: > Hi list, > > I am trying to use a 3D shapefile with Mapserver, and found in the archive > that this is only supported through the OGR connection. > > It works, but it does not use the quadtree index, which makes it very > slow. What do I need to do to make it faster? Or is this is known > limitation? > OGR doesn't support the .qix files, this is a MapServer-specific extension. The options I can think of are: 1- convert the shapefiles to 2D using OGR2OGR 2- try tiling your shapefiles using Steve Woodbridge's shp2tile utility 3- if #1 and #2 can't work for you then perhaps you'll have to dive into mapshape.c and make it support the 3D types (and just dropping the Z values). That shouldn't be too hard since the latest shapelib source already handles 3D types and can be used as a guide. Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From stephen.clark at FOCUS.CA Wed Aug 11 08:28:57 2004 From: stephen.clark at FOCUS.CA (Stephen Clark) Date: Wed, 11 Aug 2004 08:28:57 -0700 Subject: Building polygons from a polylines Message-ID: Tyler, Using FME there is a function called "polygon builder" that will work just fine. Regards, Stephen Clark Date: Tue, 10 Aug 2004 20:16:33 -0700 From: Tyler Mitchell Subject: Building polygons from a polylines Anyone have nifty tricks for some basic building of polygons from lines in a shape file? Let's assume my data is good and clean - any tips? Tyler -------------- next part -------------- An HTML attachment was scrubbed... URL: From bskarger at STUDENTS.WISC.EDU Wed Aug 11 08:30:55 2004 From: bskarger at STUDENTS.WISC.EDU (BONNER S KARGER) Date: Wed, 11 Aug 2004 10:30:55 -0500 Subject: test Message-ID: test from web client From stigmata at BLACKANGEL.NET Wed Aug 11 08:37:15 2004 From: stigmata at BLACKANGEL.NET (Gregor Mosheh) Date: Wed, 11 Aug 2004 08:37:15 -0700 Subject: HostGIS Linux Message-ID: We're proud to announce the initial release of HostGIS Linux! It's a new Linux distribution that comes with an already-working map-service system: PHP, Postgres/PostGIS, MapServer, PDF support, MapScript for Perl, Python, and PHP, and so on. So, just run through the setup, wait a few minutes for it to install, reboot, and start uploading map files... Being a Linux, it is of course both free and Free. http://maps.hostgis.com/linux/HostGIS_Linux.zip Please consider this a "1.0 final beta" release. Everything seems to work just perfectly, but there will undoubtedly be a bug or two, or a feature that's generally useful that I didn't think to include - so you may want to test it a bit before changing your live servers over to it. ;) Please give it a try and let me know of any problems you encounter. After folks have stomped on this version for a while to make sure it's all good, the goal is for v2 to offer a windows system: KDE, JUMP, GRASS, MapLab, and other GIS tools. Those optional components would be for folks who want to make GIS information, as opposed to just serving the maps. -- Gregor Mosheh, B.S. http://www.blackangel.net/ 43rd Law of Computing: Anything that can go wr fortune: Segmentation violation -- Core dumped From kgeurts at GIS.UMN.EDU Wed Aug 11 10:02:19 2004 From: kgeurts at GIS.UMN.EDU (Kari Geurts) Date: Wed, 11 Aug 2004 12:02:19 -0500 Subject: kgeurts@gis.umn.edu Message-ID: Hello MS-Users, On the weekend of August 14-15, 2004 the University of Minnesota will implement a new routing platform as part of its campus-wide, gigabit network upgrade. Access to servers on campus may be disrupted during this time. For example the posting of messages may be delayed at times. Please do not send messages to the list regarding such issues; if you believe there is a more major problem, please e-mail geur0006umn.edu. We appreciate your understanding should this impact your use of UMN MapServer resources. Kari A. Geurts MDP Coordinator Department of Forest Resources University of Minnesota 1530 Cleveland Ave N. St. Paul, MN. 55108 Phone: 612-624-3459 Fax: 612-625-5212 From mholger at OPTERA.NET Wed Aug 11 09:58:08 2004 From: mholger at OPTERA.NET (Matthew Holger) Date: Wed, 11 Aug 2004 11:58:08 -0500 Subject: Problem using OGR VRT data Message-ID: I've been trying to get an OGR VRT layer to work under mapserver 4.2.2, but I keep running into trouble. Using ogrinfo to view the individual layers specified in my .ovf file, I have no problems, but when trying to access the data with mapserver I get an internal server error, with no diagnostics in my Apache error logs, and the only thing seen in my apache trace logs being a query for geometry_columns (which I created by finessing the shp2mysql.pl script, using ogr2ogr to dump the layer using the ovf file to a shape file, then reimporting the shapefile, finessing the newly create geometry_columns table, then dropping the other tables created by shp2mysql). Messy, but it worked... (The specific query I see is: SELECT f_table_name, f_geometry_column, geometry_type FROM geometry_columns limit 136662716 But...the last number (136662716) changes from time to time...) What I find curious is that the geometry_columns table isn't referenced by ogrinfo, and in the mapserver source I only see it referenced in MyGIS and PostGIS, of which I'm using neither. Anyone have any thoughts? I've been banging my head on this one for awhile. The OVF file reads as follows: ODBC:webuser/tItb2Ur!@Keyori Waypoints wkbPoint WGS84 ODBC:mholger/ph1r3d at Keyori ZipTable wkbPoint WGS84 The layer in the MAP file is: LAYER NAME caches TYPE point CONNECTIONTYPE OGR CONNECTION "keyori.ovf" DATA Geocaches STATUS on PROJECTION "init=epsg:4326" END CLASS SYMBOL "triangle" SIZE 5 COLOR 128 45 45 END END there are several other layers in the map file as well, but they work flawlessly, and the problem only arises when the status for this layer is set to 'on' or 'default' (ie: I turn it off, everything works fine). mapserv -v says: MapServer version 4.2.2 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE And of course, GDAL/OGR was compiled with ODBC support, and works fine in and of itself.... Thanks in advance for any assistance! Cheers! -Matt. -- _ Matthew Holger (mholger at optera.net) || ASCII ribbon campaign ( ) Unix Systems Administrator || against HTML Email X http://www.Optera.NET/ :: m:651.271.3248 || http://arc.pasp.de/ / \ From ishrarh at YAHOO.COM Wed Aug 11 10:10:15 2004 From: ishrarh at YAHOO.COM (Ishrar Hussain) Date: Wed, 11 Aug 2004 10:10:15 -0700 Subject: Labels DO NOT appear on ms_newPointObj()? In-Reply-To: <1092073129.1522.8.camel@ubet.gomoos.org> Message-ID: I am using the code below to plot a dynamic point using ms_newPointObj(). Though I have added the LABEL object inside the CLASS object of the LAYER which contains the point, the label does not appear at all. Please go through the code, and let me know if it needs any change for making the label appear. I'm also not sure whether the parameter for the annotation string in ms_newPointObj() will be the one holding the LABEL of the point. The code is as follows: draw(); $myPoint = ms_newPointObj(); $myPoint->setXY(542800.6235, 626730.4673); $myLayer = $oMap->getLayerByName("Points"); $myPoint->draw($oMap, $myLayer, $oImage, 0, "The LABEL of This Point"); //....continues ?> # Part of my Map File LAYER NAME "Points" STATUS DEFAULT TYPE POINT UNITS METERS SIZEUNITS PIXELS # LABELITEM "Labels" # <-- I'm not sure about LABELITEM here LABELMINSCALE 1e+04 LABELMAXSCALE 4300000 TOLERANCE 0 TOLERANCEUNITS PIXELS CLASS NAME "Vehicle Class" LABEL TYPE TRUETYPE FONT "fritqat" SIZE 7 MINSIZE 4 MAXSIZE 256 POSITION CC OFFSET 0 0 ANGLE 0 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 102 51 51 OUTLINECOLOR 204 255 204 ANTIALIAS TRUE PARTIALS FALSE FORCE FALSE END #LABEL STYLE SYMBOL 2 COLOR 171 60 219 SIZE 10 MINSIZE 1 MAXSIZE 100 END #STYLE END #CLASS END #LAYER # ----- I hope this will be enough for you to understand the problem. looking forward to your early response. Thank you. Regards, Ishrar --- Eric Bridger wrote: > On Sun, 2004-08-08 at 09:37, Ishrar Hussain wrote: > > I need to dynamically add labels to the points, > which I > > plotted with ms_newPointObj() following the code > by > > Merlos (available at > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptAddPoint). > > > > The annotation string, which I put in the draw() > > function of PointObj, does not appear as Label of > the point. > > > > Please, also let me know, if I have to add > anything to > > my Map file for this, and if so, then how. > > > > > You will need to add a LABEL section to your CLASS. > E.g. > LABEL > COLOR 255 0 0 > SIZE TINY > END > __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail From eric at GOMOOS.ORG Wed Aug 11 11:10:14 2004 From: eric at GOMOOS.ORG (Eric Bridger) Date: Wed, 11 Aug 2004 14:10:14 -0400 Subject: Labels DO NOT appear on ms_newPointObj()? In-Reply-To: <20040811171015.39039.qmail@web54006.mail.yahoo.com> Message-ID: I would try adding, after your $point->draw() $oMap->drawLableCache($oImage); Eric On Wed, 2004-08-11 at 13:10, Ishrar Hussain wrote: > I am using the code below to plot a dynamic point > using ms_newPointObj(). Though I have added the LABEL > object inside the CLASS object of the LAYER which > contains the point, the label does not appear at all. > > Please go through the code, and let me know if it > needs any change for making the label appear. I'm also > not sure whether the parameter for the annotation > string in ms_newPointObj() will be the one holding the > LABEL of the point. > > The code is as follows: > > //....Part of my PHP Code > > $oImage = $oMap->draw(); > > $myPoint = ms_newPointObj(); > $myPoint->setXY(542800.6235, 626730.4673); > $myLayer = $oMap->getLayerByName("Points"); > > $myPoint->draw($oMap, $myLayer, $oImage, 0, "The LABEL > of This Point"); > > //....continues > ?> > > > # Part of my Map File > > LAYER > NAME "Points" > STATUS DEFAULT > TYPE POINT > UNITS METERS > SIZEUNITS PIXELS > # LABELITEM "Labels" # <-- I'm not sure about > LABELITEM here > LABELMINSCALE 1e+04 > LABELMAXSCALE 4300000 > TOLERANCE 0 > TOLERANCEUNITS PIXELS > CLASS > NAME "Vehicle Class" > LABEL > TYPE TRUETYPE > FONT "fritqat" > SIZE 7 > MINSIZE 4 > MAXSIZE 256 > POSITION CC > OFFSET 0 0 > ANGLE 0 > BUFFER 0 > MINDISTANCE -1 > MINFEATURESIZE -1 > COLOR 102 51 51 > OUTLINECOLOR 204 255 204 > ANTIALIAS TRUE > PARTIALS FALSE > FORCE FALSE > END #LABEL > STYLE > SYMBOL 2 > COLOR 171 60 219 > SIZE 10 > MINSIZE 1 > MAXSIZE 100 > END #STYLE > END #CLASS > END #LAYER > > # ----- > > > I hope this will be enough for you to understand the > problem. looking forward to your early response. > > Thank you. > > Regards, > Ishrar > > > > > --- Eric Bridger wrote: > > > On Sun, 2004-08-08 at 09:37, Ishrar Hussain wrote: > > > I need to dynamically add labels to the points, > > which I > > > plotted with ms_newPointObj() following the code > > by > > > Merlos (available at > > > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptAddPoint). > > > > > > The annotation string, which I put in the draw() > > > function of PointObj, does not appear as Label of > > the point. > > > > > > Please, also let me know, if I have to add > > anything to > > > my Map file for this, and if so, then how. > > > > > > > > > You will need to add a LABEL section to your CLASS. > > E.g. > > LABEL > > COLOR 255 0 0 > > SIZE TINY > > END > > From bernd.deckert at WANADOO.FR Wed Aug 11 11:08:30 2004 From: bernd.deckert at WANADOO.FR (Bernd Deckert) Date: Wed, 11 Aug 2004 20:08:30 +0200 Subject: MIGRATING SHAPE IN MYSQL crossposting from : [svg-developers] ArcView Shapefile 2 SVG Message-ID: > ----- Original Message ----- > From: "Barend K?bben" > To: > Sent: Wednesday, August 11, 2004 9:29 AM > Subject: RE: [svg-developers] ArcView Shapefile 2 SVG converter posted > > > Hi andreas and others, > > Thank you for you donation! As a follow-up, I'll make available shp2mysql > loader 0.4 [get it from http://kartoweb.itc.nl/RIMapper]. This program is a > quick hack of the original shp2pgsql loader 0.7 for PostGIS you also use. It > takes in ESRI shape files and outputs SQL command files suitable for use in > the MySQL spatial database from version 4.1.0-alpha (first version to > support OpenGIS geometry). Windows executable and C source code included. > > ____________________________ > Barend K?bben > International Institute for Geo-information Sciences and Earth Observation > (ITC) > PO Box 6, 7500AA Enschede (The Netherlands) > ph: +31 (0)53 4874253; fax: +31 (0)53 4874335 > _____________________________ > > > > -----Original Message----- > > From: Andreas Neumann [mailto:neumann at karto.baug.ethz.ch] > > Sent: Tuesday, 10 August 2004 22:42 > > To: svg-developers at yahoogroups.com > > Subject: [svg-developers] ArcView Shapefile 2 SVG converter posted > > > > Hi, > > > > I frequently use a perl script that can convert GIS data (arcview > > shapefiles) to SVG. My script makes use of the Postgis shp2pgsql > > tool. > > > > I decided to make my script available to others and document it. I > > hope it is useful for other persons as well. > > > > Both the shp2pgsql and my script are available for free. > > > > Further infos at: > > http://www.carto.net/papers/svg/utils/shp2svg/ > > > > Feedback and suggestions are always welcome. > > > > Andreas > > > > > > > > ------------------------ Yahoo! Groups Sponsor > > --------------------~--> > > Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar. > > Now with Pop-Up Blocker. Get it for free! > > http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/1U_rlB/TM > > -------------------------------------------------------------- > > ------~-> > > > > ----- > > To unsubscribe send a message to: > > svg-developers-unsubscribe at yahoogroups.com > > -or- > > visit http://groups.yahoo.com/group/svg-developers and click > > "edit my membership" > > ---- > > Yahoo! Groups Links > > > > > > > > > > > > > > > ------------------------ Yahoo! Groups Sponsor --------------------~--> > Yahoo! Domains - Claim yours for only $14.70 > http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/1U_rlB/TM > --------------------------------------------------------------------~-> > > ----- > To unsubscribe send a message to: svg-developers-unsubscribe at yahoogroups.com > -or- > visit http://groups.yahoo.com/group/svg-developers and click "edit my > membership" > ---- > Yahoo! Groups Links > > <*> To visit your group on the web, go to: > http://groups.yahoo.com/group/svg-developers/ > > <*> To unsubscribe from this group, send an email to: > svg-developers-unsubscribe at yahoogroups.com > > <*> Your use of Yahoo! Groups is subject to: > http://docs.yahoo.com/info/terms/ > > > > From warmerdam at POBOX.COM Wed Aug 11 11:55:52 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 11 Aug 2004 14:55:52 -0400 Subject: Problem using OGR VRT data In-Reply-To: <20040811165808.GB10367@Optera.NET> Message-ID: Matthew Holger wrote: > I've been trying to get an OGR VRT layer to work under mapserver 4.2.2, but I > keep running into trouble. > > Using ogrinfo to view the individual layers specified in my .ovf file, I have > no problems, but when trying to access the data with mapserver I get an > internal server error, with no diagnostics in my Apache error logs, and the > only thing seen in my apache trace logs being a query for geometry_columns > (which I created by finessing the shp2mysql.pl script, using ogr2ogr to dump > the layer using the ovf file to a shape file, then reimporting the shapefile, > finessing the newly create geometry_columns table, then dropping the other > tables created by shp2mysql). Messy, but it worked... > > (The specific query I see is: > SELECT f_table_name, f_geometry_column, geometry_type FROM geometry_columns > limit 136662716 > But...the last number (136662716) changes from time to time...) > > What I find curious is that the geometry_columns table isn't referenced by > ogrinfo, and in the mapserver source I only see it referenced in MyGIS and > PostGIS, of which I'm using neither. Matthew, The SELECT statement you reference is normal with the ODBC driver. If it finds a GEOMETRY_COLUMNS table it will try to define a set of spatial layers based on that table rather than the list of all tables (or a list provided in the dataset name). I don't know where the "limit 136662716" part is coming from. I can't see anything in my code that generates that. Perhaps something in the ODBC middle where adds it? As for why things are working with ogrinfo, and not within MapServer, I really don't know. All the "usual" reasons could apply: o did you *really* rebuild MapServer with the new OGR? Replacing the DLL is not sufficient. o Are you sure you understand all the ODBC and file permissions issues involved? o Are you sure the .ovf file is even being found? o Are you sure you are escaping things properly in the .ovf file? ie. Does the ovf file work properly with ogrinfo or just the direct ODBC connection? 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 kgeurts at GIS.UMN.EDU Wed Aug 11 12:08:23 2004 From: kgeurts at GIS.UMN.EDU (Kari Geurts) Date: Wed, 11 Aug 2004 14:08:23 -0500 Subject: I can't post from outlook yet! Message-ID: Hello MS-Users, It seems that some of you are having problems posting from other hosts such as Outlook. I contactd the computer services about this and below is the responce I received. I believe that email is being blocked from some hosts in order to limit spam. You can contact the Academic & Distributed Computing Services directly if you have further questions or concerns. Thank you, Kari A. Geurts Department of Forest Resources University of Minnesota 1530 Cleveland Ave N. St. Paul, MN. 55108 Phone: 612-624-3459 Fax: 612-625-5212 ----- Forwarded message from Jane Gehan ----- >From jkg at tc.umn.edu Tue Aug 10 13:31:34 2004 Message-Id: From: Jane Gehan Subject: RE: MAPSERVER-USERS list (fwd) To: nicol at nicol.info Date: Tue, 10 Aug 2004 13:31:27 -0500 (CDT) Cc: Jane Gehan (Jane K Gehan), hermann at gdv.com, mapserver at geoworld.de X-Mailer: ELM [version 2.4ME+ PL49 (25)] I received email from Kari regarding the problem that you are having with the mapServer-users listserv. First of all I notice that your mail server has some problems that will prevent you from sending any email to the UofM. You should inform your network admin about this, and also tell your syadmin that you are listed in MAPS. We use this database to block incoming email. You also will have problems because your DNS entry is not set up properly. I have included some information about this. Jane K. Gehan Academic & Distributed Computing Services E-mail: jkg at tc.umn.edu Office of Information Technology Phone: (612) 626-1810 University of Minnesota Fax: (612) 626-7593 From keon at NACSE.ORG Wed Aug 11 12:16:34 2004 From: keon at NACSE.ORG (Dylan Keon) Date: Wed, 11 Aug 2004 12:16:34 -0700 Subject: trouble displaying ortho Message-ID: I'm having trouble displaying a TIFF image (merged orthophoto). It looks pretty noisy in my mapserver app. Bad image: http://gis.nacse.org/mstemp/109224912061641.png What it should look like: http://gis.nacse.org/mstemp/ortho_small.png I tried displaying it as both 8-bit and 24-bit with no difference, but it should display ok as 8-bit anyway. The funny thing is it looks correct in an existing ArcIMS app, and in the eog and kview image viewers. But then it looks noisy in the mapserver app, in gimp, and also when I view it in Irfanview on Windows. Not sure what's up. Thanks, Dylan === Here's some info on the image === $ identify ortho.tif ortho.tif TIFF 3428x2573+0+0 PseudoClass 256c 8-bit 8.4m 0.100u 0:01 identify: unknown field with tag 33922 (0x8482) ignored. (ortho.tif). $ gdalinfo ortho.tif Driver: GTiff/GeoTIFF Size is 3428, 2573 Coordinate System is `' Origin = (558466.500000,4903753.000000) Pixel Size = (4.00000000,-4.00000000) Metadata: TIFFTAG_SOFTWARE=Arc/Info TIFFTAG_XRESOLUTION=0.25 TIFFTAG_YRESOLUTION=0.25 TIFFTAG_RESOLUTIONUNIT=1 (unitless) Corner Coordinates: Upper Left ( 558466.500, 4903753.000) Lower Left ( 558466.500, 4893461.000) Upper Right ( 572178.500, 4903753.000) Lower Right ( 572178.500, 4893461.000) Center ( 565322.500, 4898607.000) Band 1 Block=3428x3 Type=Byte, ColorInterp=Palette Color Table (RGB with 256 entries) 0: 0,0,0,255 1: 1,1,1,255 2: 2,2,2,255 ... etc ... === Minimal mapfile, works with shp2img === SIZE 480 320 EXTENT 558788 4893725 572143 4903558 IMAGETYPE png8 #IMAGETYPE png24 OUTPUTFORMAT NAME png8 DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 FORMATOPTION "INTERLACE=ON" END OUTPUTFORMAT NAME png24 DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB FORMATOPTION "INTERLACE=ON" END LAYER NAME 'ortho' DATA /gis/data/temp/ortho.tif STATUS ON TYPE RASTER END END From mike at BARRODALE.COM Wed Aug 11 11:23:10 2004 From: mike at BARRODALE.COM (Mike Dunham-Wilkie) Date: Wed, 11 Aug 2004 11:23:10 -0700 Subject: mapserv.exe - file not found error under Windows 2003 In-Reply-To: Message-ID: Thanks Richard - this was it. Cheers,... Mike At 05:44 PM 8/10/04, Richard Greenwood wrote: >On Tue, 10 Aug 2004 19:03:38 -0500, Mike Dunham-Wilkie > wrote: > > We are trying to run Mapserver under Windows 2003 / IIS. I have it running > > successfully in a Windows XP environment, but when I follow the same > > installation process / IIS setup on the Windows 2003 box and point to > > > > http://website/cgi-bin/mapserv.exe?.... > > > > I get a 404 - Page not found error, ... > > > > >Windows 2003 has a new top-level permissions "branch" in IIS Manager >called "Web Service Extensions" which caused me endless grief. Once >you know where to look it's pretty straight forward. There is some >discussion at: >http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechnol/windowsserver2003/proddocs/standard/ca_configcgi.asp > >And the 404 error is totally misleading! > >HTH >-- >Richard Greenwood >richard.greenwood at gmail.com >www.greenwoodmap.com From mholger at OPTERA.NET Wed Aug 11 12:53:36 2004 From: mholger at OPTERA.NET (Matthew Holger) Date: Wed, 11 Aug 2004 14:53:36 -0500 Subject: Problem using OGR VRT data In-Reply-To: <411A6BB8.9070907@pobox.com> Message-ID: On Wed, Aug 11, 2004 at 02:55:52PM -0400, Frank Warmerdam wrote: > Matthew, > > The SELECT statement you reference is normal with the ODBC driver. If it > finds a GEOMETRY_COLUMNS table it will try to define a set of spatial layers > based on that table rather than the list of all tables (or a list provided > in > the dataset name). I don't know where the "limit 136662716" part is coming > from. I can't see anything in my code that generates that. Perhaps > something > in the ODBC middle where adds it? Could be -- but since I couldn't find reference of a similar query outside of the mapmygis.c and mappostgis.c files, I was curious about it's nature...Doesn't seem to have any impact on anything though... > As for why things are working with ogrinfo, and not within MapServer, I > really don't know. All the "usual" reasons could apply: > o did you *really* rebuild MapServer with the new OGR? Replacing the > DLL is not sufficient. Yes. Twice, just to be sure. ldd confirms I'm not on drugs, and ogr confirms ODBC support. Unfortunately, I'm building on a Debian box (...) so I'm only 99% sure that the previous (Debian packaged) installations of gdal/ogr and related bits were completely nuked, but every test I can think of is showing that mapserv is referencing the installation I built from source. For that matter, I shutdown MySQL and Apache and started them both fresh, just for fun, but really -- this should have no bearing on a dynamically linked library being run from a CGI that isn't staying resident between calls.... > o Are you sure you understand all the ODBC and file permissions issues > involved? This is a possibility... It's connecting to a mysql database, and I'm certain that the users and passwords involved are correct and have the necessary permissions to query the db.. Using ogrinfo to connect and view data succeeds, using the ODBC connection defined in the .ovf file, and the user running the CGI has no trouble reading the odbc ini files or the .ovf files.... > o Are you sure the .ovf file is even being found? Yes. If I move the file, I get 'msOGRFileOpen(): OGR error. Open failed for OGR connection `keyori.ovf'. File not found or unsupported format.' If I put the ovf file back, I get your typical 500 from the server. I suppose in this context, it's possible I've botched something internal to the .ovf file; but I don't believe that to be the case, given that ogrinfo parses it alright.. > o Are you sure you are escaping things properly in the .ovf file? ie. > Does the > ovf file work properly with ogrinfo or just the direct ODBC connection? Using the .ovf file (and not 'ODBC:' directly) via ogrinfo works fine... Hence, my confusion.. :( Cheers! -Matt. From sobomsawin at KASSINI.COM Wed Aug 11 12:47:20 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Wed, 11 Aug 2004 15:47:20 -0400 Subject: Labels Problem Message-ID: Hi list! I have a weird label problem with Mapserver. I try to display street names with an angle set to auto. My map file looks like this: CLASS Name 'road_labels' LABEL TYPE TRUETYPE FONT "arial" SIZE 7 MINSIZE 4 MAXSIZE 256 POSITION UC ANGLE AUTO BUFFER 2 MINDISTANCE 150 MINFEATURESIZE 20 COLOR 100 50 0 SHADOWCOLOR 0 0 0 SHADOWSIZE 0 0 PARTIALS FALSE END END # Class As you can see on the picture I have sent, I am unable to get the labels centered on the street lines. Some names are as far as 400m from the center of the street and the translation seems to be always parallel to the street line. I'm using Mapserver 4.0 with Postgis 0.7 on a Whitebox Linux with gd 1.8.4-12 and freetype 2.1.4-4. Thanks! Skweda O'Bomsawin sobomsawin at kassini.com --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.735 / Virus Database: 489 - Release Date: 2004-08-06 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: CAGPARSL.jpg Type: image/jpeg Size: 72496 bytes Desc: not available URL: From lfilak at MEDINACO.ORG Wed Aug 11 12:38:47 2004 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Wed, 11 Aug 2004 15:38:47 -0400 Subject: I can't post from outlook yet! Message-ID: Note: You can be added to the MAPS list if your machine (or another machine if you're masqueraded behind a single IP address) is infected with a virus that is sending out spam or trying to spread. Lowell The following message was sent by Kari Geurts on Wed, 11 Aug 2004 14:08:23 -0500. > Hello MS-Users, > > It seems that some of you are having problems posting from other hosts such > as Outlook. I contactd the computer services about this and below is the > responce I received. I believe that email is being blocked from some hosts > in order to limit spam. You can contact the Academic & Distributed > Computing Services directly if you have further questions or concerns. > > Thank you, > > Kari A. Geurts > > Department of Forest Resources > University of Minnesota > 1530 Cleveland Ave N. > St. Paul, MN. 55108 > Phone: 612-624-3459 > Fax: 612-625-5212 > > ----- Forwarded message from Jane Gehan ----- > > >From jkg at tc.umn.edu Tue Aug 10 13:31:34 2004 > Message-Id: > From: Jane Gehan > Subject: RE: MAPSERVER-USERS list (fwd) > To: nicol at nicol.info > Date: Tue, 10 Aug 2004 13:31:27 -0500 (CDT) > Cc: Jane Gehan (Jane K Gehan), > hermann at gdv.com, > mapserver at geoworld.de > X-Mailer: ELM [version 2.4ME+ PL49 (25)] > > I received email from Kari regarding the problem that you > are having with the mapServer-users listserv. First of all I > notice that your mail server has some problems that will > prevent you from sending any email to the UofM. You > should inform your network admin about this, and also tell > your syadmin that you are listed in MAPS. We use this database > to block incoming email. You also will have problems because > your DNS entry is not set up properly. I have included some > information about this. > > Jane K. Gehan > Academic & Distributed Computing Services E-mail: jkg at tc.umn.edu > Office of Information Technology Phone: (612) 626-1810 > University of Minnesota Fax: (612) 626-7593 From warmerdam at POBOX.COM Wed Aug 11 13:07:08 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 11 Aug 2004 16:07:08 -0400 Subject: trouble displaying ortho In-Reply-To: <411A7092.1080105@nacse.org> Message-ID: Dylan Keon wrote: > I'm having trouble displaying a TIFF image (merged orthophoto). It > looks pretty noisy in my mapserver app. > > Bad image: http://gis.nacse.org/mstemp/109224912061641.png > What it should look like: http://gis.nacse.org/mstemp/ortho_small.png > > I tried displaying it as both 8-bit and 24-bit with no difference, but > it should display ok as 8-bit anyway. The funny thing is it looks > correct in an existing ArcIMS app, and in the eog and kview image > viewers. But then it looks noisy in the mapserver app, in gimp, and > also when I view it in Irfanview on Windows. Not sure what's up. Dylan, MapServer uses nearest neighbour sampling when downsampling image data. This is much faster than averaging or other techniques but can produce "noisy" effects under some circumstances. It isn't wrong, but it can be less appealing. One thing you can do is to pre-build overviews on the file in question with averaging. This can be done with the "gdaladdo" utility from the GDAL distribution. eg. gdaladdo -r average ortho.tif 2 4 8 16 32 64 There are various "issues" that can arise but hopefully this will work out of the box for you. 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 keon at NACSE.ORG Wed Aug 11 13:17:35 2004 From: keon at NACSE.ORG (Dylan Keon) Date: Wed, 11 Aug 2004 13:17:35 -0700 Subject: trouble displaying ortho In-Reply-To: <411A7C6C.9050800@pobox.com> Message-ID: Frank Warmerdam wrote: > Dylan Keon wrote: > >> I'm having trouble displaying a TIFF image (merged orthophoto). It >> looks pretty noisy in my mapserver app. >> >> Bad image: http://gis.nacse.org/mstemp/109224912061641.png >> What it should look like: http://gis.nacse.org/mstemp/ortho_small.png >> >> I tried displaying it as both 8-bit and 24-bit with no difference, but >> it should display ok as 8-bit anyway. The funny thing is it looks >> correct in an existing ArcIMS app, and in the eog and kview image >> viewers. But then it looks noisy in the mapserver app, in gimp, and >> also when I view it in Irfanview on Windows. Not sure what's up. > > > Dylan, > > MapServer uses nearest neighbour sampling when downsampling image data. > This is much faster than averaging or other techniques but can produce > "noisy" effects under some circumstances. It isn't wrong, but it can be > less appealing. > > One thing you can do is to pre-build overviews on the file in question > with averaging. This can be done with the "gdaladdo" utility from the > GDAL distribution. > > eg. > > gdaladdo -r average ortho.tif 2 4 8 16 32 64 > > There are various "issues" that can arise but hopefully this will work out > of the box for you. Worked perfectly out of the box. And it's nice to understand why it was happening. Thanks Frank! --Dylan From aflorio at GISPLAN.COM.BR Wed Aug 11 13:38:39 2004 From: aflorio at GISPLAN.COM.BR (Alexandre Florio) Date: Wed, 11 Aug 2004 17:38:39 -0300 Subject: SVG support Message-ID: Hi, Does Mapserver support, stably, map output in SVG format? I couldn't find anything, neither in the docs nor in the source, but I found this post, http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0403/msg00054.html, in which a guy seems to make it work. Alexandre From woodbri at SWOODBRIDGE.COM Wed Aug 11 14:07:26 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 11 Aug 2004 17:07:26 -0400 Subject: Labels Problem In-Reply-To: <000701c47fdc$04319ef0$6702a8c0@jebediah> Message-ID: Try removing the "POSITION UC" -Steve Skweda O'Bomsawin wrote: > Hi list! > > > > I have a weird label problem with Mapserver. I try to display street names > with an angle set to auto. My map file looks like this: > > > > CLASS > > Name 'road_labels' > > LABEL > > TYPE TRUETYPE > > FONT "arial" > > SIZE 7 > > MINSIZE 4 > > MAXSIZE 256 > > POSITION UC > > ANGLE AUTO > > BUFFER 2 > > MINDISTANCE 150 > > MINFEATURESIZE 20 > > COLOR 100 50 0 > > SHADOWCOLOR 0 0 0 > > SHADOWSIZE 0 0 > > PARTIALS FALSE > > END > > END # Class > > > > As you can see on the picture I have sent, I am unable to get the labels > centered on the street lines. Some names are as far as 400m from the center > of the street and the translation seems to be always parallel to the street > line. I'm using Mapserver 4.0 with Postgis 0.7 on a Whitebox Linux with gd > 1.8.4-12 and freetype 2.1.4-4. > > > > Thanks! > > > > Skweda O'Bomsawin > > sobomsawin at kassini.com > > > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.735 / Virus Database: 489 - Release Date: 2004-08-06 > > > From sobomsawin at KASSINI.COM Wed Aug 11 14:23:44 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Wed, 11 Aug 2004 17:23:44 -0400 Subject: [UMN_MAPSERVER-USERS] Labels Problem In-Reply-To: <411A8A8E.30708@swoodbridge.com> Message-ID: Thanks Steve, but that doesn't resolve my problem... I keep searching! Skweda -----Message d'origine----- De?: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Envoy??: 11 ao?t 2004 17:07 ??: Skweda O'Bomsawin Cc?: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: Re: [UMN_MAPSERVER-USERS] Labels Problem Try removing the "POSITION UC" -Steve Skweda O'Bomsawin wrote: > Hi list! > > > > I have a weird label problem with Mapserver. I try to display street names > with an angle set to auto. My map file looks like this: > > > > CLASS > > Name 'road_labels' > > LABEL > > TYPE TRUETYPE > > FONT "arial" > > SIZE 7 > > MINSIZE 4 > > MAXSIZE 256 > > POSITION UC > > ANGLE AUTO > > BUFFER 2 > > MINDISTANCE 150 > > MINFEATURESIZE 20 > > COLOR 100 50 0 > > SHADOWCOLOR 0 0 0 > > SHADOWSIZE 0 0 > > PARTIALS FALSE > > END > > END # Class > > > > As you can see on the picture I have sent, I am unable to get the labels > centered on the street lines. Some names are as far as 400m from the center > of the street and the translation seems to be always parallel to the street > line. I'm using Mapserver 4.0 with Postgis 0.7 on a Whitebox Linux with gd > 1.8.4-12 and freetype 2.1.4-4. > > > > Thanks! > > > > Skweda O'Bomsawin > > sobomsawin at kassini.com > > > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.735 / Virus Database: 489 - Release Date: 2004-08-06 > > > --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.735 / Virus Database: 489 - Release Date: 2004-08-06 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.735 / Virus Database: 489 - Release Date: 2004-08-06 From lehrs at ERAU.EDU Wed Aug 11 14:29:00 2004 From: lehrs at ERAU.EDU (Steve Lehr) Date: Wed, 11 Aug 2004 17:29:00 -0400 Subject: [UMN_MAPSERVER-USERS] Labels Problem In-Reply-To: <001101c47fe9$7baed760$6702a8c0@jebediah> Message-ID: Skweda: Its hard to tell from your map file you've given. Is the data you have an annotation or is it a line type. If its a line type it should work, but if its an annotation, the labels go where they have placed them. I always try to get road center lines with a road name attribute. Perhaps if you have a line_id with your road names and a matching attribute in the annotation you can alter your DBF and merge in the road name attribute. Steven Lehr Assistant Professor College of Engineering Embry-Riddle Aeronautical University (LB159) 600 S. Clyde Morris Blvd. Daytona Beach, FL 32114-3900 386-226-7740 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Skweda O'Bomsawin Sent: Wednesday, August 11, 2004 5:24 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] Labels Problem Thanks Steve, but that doesn't resolve my problem... I keep searching! Skweda -----Message d'origine----- De : Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Envoy? : 11 ao?t 2004 17:07 ? : Skweda O'Bomsawin Cc : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] Labels Problem Try removing the "POSITION UC" -Steve Skweda O'Bomsawin wrote: > Hi list! > > > > I have a weird label problem with Mapserver. I try to display street names > with an angle set to auto. My map file looks like this: > > > > CLASS > > Name 'road_labels' > > LABEL > > TYPE TRUETYPE > > FONT "arial" > > SIZE 7 > > MINSIZE 4 > > MAXSIZE 256 > > POSITION UC > > ANGLE AUTO > > BUFFER 2 > > MINDISTANCE 150 > > MINFEATURESIZE 20 > > COLOR 100 50 0 > > SHADOWCOLOR 0 0 0 > > SHADOWSIZE 0 0 > > PARTIALS FALSE > > END > > END # Class > > > > As you can see on the picture I have sent, I am unable to get the labels > centered on the street lines. Some names are as far as 400m from the center > of the street and the translation seems to be always parallel to the street > line. I'm using Mapserver 4.0 with Postgis 0.7 on a Whitebox Linux with gd > 1.8.4-12 and freetype 2.1.4-4. > > > > Thanks! > > > > Skweda O'Bomsawin > > sobomsawin at kassini.com > > > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.735 / Virus Database: 489 - Release Date: 2004-08-06 > > > --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.735 / Virus Database: 489 - Release Date: 2004-08-06 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.735 / Virus Database: 489 - Release Date: 2004-08-06 From sobomsawin at KASSINI.COM Wed Aug 11 15:05:07 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Wed, 11 Aug 2004 18:05:07 -0400 Subject: [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] Labels Problem In-Reply-To: Message-ID: Sorry for the ambiguity of my first mail. Here is a more exhaustive part of my map file: LAYER #Roads Labels CONNECTIONTYPE postgis NAME "roads_labels" # Connect to a remote spatial database CONNECTION "user=XXXX password=XXXX dbname=roads host=localhost port=5432" # Get the lines from the 'geom' column of the table DATA "wkb_geometry from roads" STATUS OFF TYPE LINE MAXSCALE 200000 # Of the lines in the extents, only render the wide highways UNITS DD PROJECTION "proj=latlong" "datum=NAD83" "ellps=GRS80" END # In the table, the label column name must be in smallcaps LABELITEM "street" LABELMAXSCALE 30000 CLASS Name 'road_labels' LABEL TYPE TRUETYPE FONT "arial" SIZE 7 MINSIZE 4 MAXSIZE 256 POSITION CC ANGLE AUTO BUFFER 2 MINDISTANCE 150 MINFEATURESIZE 20 COLOR 100 50 0 SHADOWCOLOR 0 0 0 SHADOWSIZE 0 0 PARTIALS FALSE END END # Class END #Layer Hope this will help... -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Steve Lehr Envoy??: 11 ao?t 2004 17:29 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: Re: [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] Labels Problem Skweda: Its hard to tell from your map file you've given. Is the data you have an annotation or is it a line type. If its a line type it should work, but if its an annotation, the labels go where they have placed them. I always try to get road center lines with a road name attribute. Perhaps if you have a line_id with your road names and a matching attribute in the annotation you can alter your DBF and merge in the road name attribute. Steven Lehr Assistant Professor College of Engineering Embry-Riddle Aeronautical University (LB159) 600 S. Clyde Morris Blvd. Daytona Beach, FL 32114-3900 386-226-7740 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Skweda O'Bomsawin Sent: Wednesday, August 11, 2004 5:24 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] Labels Problem Thanks Steve, but that doesn't resolve my problem... I keep searching! Skweda -----Message d'origine----- De : Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Envoy? : 11 ao?t 2004 17:07 ? : Skweda O'Bomsawin Cc : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] Labels Problem Try removing the "POSITION UC" -Steve Skweda O'Bomsawin wrote: > Hi list! > > > > I have a weird label problem with Mapserver. I try to display street names > with an angle set to auto. My map file looks like this: > > > > CLASS > > Name 'road_labels' > > LABEL > > TYPE TRUETYPE > > FONT "arial" > > SIZE 7 > > MINSIZE 4 > > MAXSIZE 256 > > POSITION UC > > ANGLE AUTO > > BUFFER 2 > > MINDISTANCE 150 > > MINFEATURESIZE 20 > > COLOR 100 50 0 > > SHADOWCOLOR 0 0 0 > > SHADOWSIZE 0 0 > > PARTIALS FALSE > > END > > END # Class > > > > As you can see on the picture I have sent, I am unable to get the labels > centered on the street lines. Some names are as far as 400m from the center > of the street and the translation seems to be always parallel to the street > line. I'm using Mapserver 4.0 with Postgis 0.7 on a Whitebox Linux with gd > 1.8.4-12 and freetype 2.1.4-4. > > > > Thanks! > > > > Skweda O'Bomsawin > > sobomsawin at kassini.com > > > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.735 / Virus Database: 489 - Release Date: 2004-08-06 > > > --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.735 / Virus Database: 489 - Release Date: 2004-08-06 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.735 / Virus Database: 489 - Release Date: 2004-08-06 --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.735 / Virus Database: 489 - Release Date: 2004-08-06 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.735 / Virus Database: 489 - Release Date: 2004-08-06 From jesko at GEOCONTENT.DE Wed Aug 11 22:53:21 2004 From: jesko at GEOCONTENT.DE (Dirk Jesko) Date: Thu, 12 Aug 2004 07:53:21 +0200 Subject: OGR JOIN performance problem on Linux Message-ID: Hello, I have two machines running Apache 2 with MapServer 4.2.* (all necessary libraries are the current stable versions). One map server is running on Windows XP the other on Linux. Both systems contain the same data and mapfiles (besides the paths of course). One of the layers is an OGR connection to two shape files which are joined. One file contains approx. 200 rows with information the other approx. 30000 points with references to the information. The points are displayed. Both shapes have indexes associated (created separately on the according machine). While the join-query is very fast on Windows (it takes only a few seconds to display all points if the index is present), it takes ages on Linux (it makes no difference whether there is an index or not). Sometimes the web server even returns an error since the query takes to long. My guess would be that map server (resp. OGR) does not use the index on Linux. I would like to know whether someone observed a similar behavior and whether there is a possibility to speed up the query on Linux. Thanks in advance, Dirk Jesko -- --[ Dipl-Inf. Dirk Jesko ]---------- GeoContent GmbH Hegelstra?e 39 D-39104 Magdeburg Germany Phone ++49 (0)391-4000 2132 Fax ++49 (0)391-4000 2199 www.geocontent.de --[ mailto:jesko at geocontent.de ]---- From warmerdam at POBOX.COM Wed Aug 11 23:55:50 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 12 Aug 2004 02:55:50 -0400 Subject: OGR JOIN performance problem on Linux In-Reply-To: <411B05D1.3080004@geocontent.de> Message-ID: Dirk Jesko wrote: > Hello, > > I have two machines running Apache 2 with MapServer 4.2.* (all necessary > libraries are the current stable versions). One map server is running on > Windows XP the other on Linux. Both systems contain the same data and > mapfiles (besides the paths of course). One of the layers is an OGR > connection to two shape files which are joined. One file contains > approx. 200 rows with information the other approx. 30000 points with > references to the information. The points are displayed. Both shapes > have indexes associated (created separately on the according machine). > While the join-query is very fast on Windows (it takes only a few > seconds to display all points if the index is present), it takes ages on > Linux (it makes no difference whether there is an index or not). > Sometimes the web server even returns an error since the query takes to > long. My guess would be that map server (resp. OGR) does not use the > index on Linux. > > I would like to know whether someone observed a similar behavior and > whether there is a possibility to speed up the query on Linux. Dirk, There is no *fundamental* reason the index shouldn't work as well on linux as on windows. Did you create the index on linux? When you index a shapefile a .idm file should be created with information on what indexes are in effect and a .ind file with the actual indexes. The .idm file is just XML. Take a look at it and verify that the information seems sensible ... particularly that there is nothing funny about the filename used for the MIIDFilename. You might want to try making it an absolute path to the file. The development and performance testing was done on Linux. 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 Aug 12 00:27:11 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Thu, 12 Aug 2004 09:27:11 +0200 Subject: OGR JOIN performance problem on Linux In-Reply-To: <411B1476.7050808@pobox.com> Message-ID: Hi Frank, Seems like a silly question, but how do you index shapefiles with ogr? I can't seem to find it anywhere. Thanks in advance. Best regards, Bart > Dirk Jesko wrote: >> Hello, >> >> I have two machines running Apache 2 with MapServer 4.2.* (all necessary >> libraries are the current stable versions). One map server is running on >> Windows XP the other on Linux. Both systems contain the same data and >> mapfiles (besides the paths of course). One of the layers is an OGR >> connection to two shape files which are joined. One file contains >> approx. 200 rows with information the other approx. 30000 points with >> references to the information. The points are displayed. Both shapes >> have indexes associated (created separately on the according machine). >> While the join-query is very fast on Windows (it takes only a few >> seconds to display all points if the index is present), it takes ages on >> Linux (it makes no difference whether there is an index or not). >> Sometimes the web server even returns an error since the query takes to >> long. My guess would be that map server (resp. OGR) does not use the >> index on Linux. >> >> I would like to know whether someone observed a similar behavior and >> whether there is a possibility to speed up the query on Linux. > > Dirk, > > There is no *fundamental* reason the index shouldn't work as well on linux > as on windows. Did you create the index on linux? When you index a > shapefile > a .idm file should be created with information on what indexes are in > effect > and a .ind file with the actual indexes. The .idm file is just XML. Take > a > look at it and verify that the information seems sensible ... particularly > that > there is nothing funny about the filename used for the MIIDFilename. You > might > want to try making it an absolute path to the file. > > The development and performance testing was done on Linux. > > 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 warmerdam at POBOX.COM Thu Aug 12 01:00:52 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 12 Aug 2004 04:00:52 -0400 Subject: OGR JOIN performance problem on Linux In-Reply-To: <22436.212.238.227.182.1092295631.squirrel@webmail.xs4all.nl> Message-ID: bartvde at xs4all.nl wrote: > Hi Frank, > > Seems like a silly question, but how do you index shapefiles with ogr? I > can't seem to find it anywhere. Bart, It is covered briefly in the OGR SQL document: http://www.remotesensing.org:16080/gdal/ogr/ogr_sql.html A command like this will do it: ogrinfo idlink.dbf -sql 'create index on idlink using eas_id' 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 l_gnemmi at YAHOO.FR Thu Aug 12 00:52:19 2004 From: l_gnemmi at YAHOO.FR (=?iso-8859-1?q?ludovic=20gnemmi?=) Date: Thu, 12 Aug 2004 09:52:19 +0200 Subject: jBox & Mozilla Message-ID: Hi all, i'm working with Mozilla 0.93, php-mapscript, jBox 1.1.1 and Java VM 1.4.2-05. I'm testing Jbox applet with Mozilla Firefox and i've noticed that Mozilla hangs each time the page is submitted with zoom out or drag control. It seems that a call to any of the applet functions while the applet is still loading cause mozilla to hang. I've tried to delay my call in my code but i can't anymore. Is there a way to make my app available with Mozilla? Regards, Ludovic Gnemmmi DESS DCISS - Grenoble Vous manquez d?espace pour stocker vos mails ? Yahoo! Mail vous offre GRATUITEMENT 100 Mo ! Cr?ez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/ Le nouveau Yahoo! Messenger est arriv? ! D?couvrez toutes les nouveaut?s pour dialoguer instantan?ment avec vos amis. A t?l?charger gratuitement sur http://fr.messenger.yahoo.com From jesko at GEOCONTENT.DE Thu Aug 12 05:32:28 2004 From: jesko at GEOCONTENT.DE (Dirk Jesko) Date: Thu, 12 Aug 2004 14:32:28 +0200 Subject: OGR JOIN performance problem on Linux In-Reply-To: <22436.212.238.227.182.1092295631.squirrel@webmail.xs4all.nl> Message-ID: Hi Bart, You can build indexes on attributes in the dbf file using the ogrinfo tool from the OGR library. Have a look at the OGR documentation (http://gdal.maptools.org/ogr/ogr_sql.html) and the "OGR Join index" Thread in this mailing list (http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0406/msg00776.html). Best regards, Dirk >Hi Frank, > >Seems like a silly question, but how do you index shapefiles with ogr? I >can't seem to find it anywhere. > >Thanks in advance. > >Best regards, >Bart > > > -- --[ Dipl-Inf. Dirk Jesko ]---------- GeoContent GmbH Hegelstra?e 39 D-39104 Magdeburg Germany Phone ++49 (0)391-4000 2132 Fax ++49 (0)391-4000 2199 www.geocontent.de --[ mailto:jesko at geocontent.de ]---- From temiz at DEPREM.GOV.TR Thu Aug 12 00:47:44 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Thu, 12 Aug 2004 10:47:44 +0300 Subject: error in php_mapscript.so Message-ID: hello dl("php_mapscript.so") command gives in log file: ~~~~~~~~~~~~~~~ [Wed Aug 11 17:03:49 2004] [error] PHP Warning: dl(): (null): Unable to initialize module Module compiled with module API=20040412, debug=0, thread-safety=0 PHP compiled with module API=20020429, debug=0, thread-safety=0 ~~~~~~~~~~~~~~~ I am not clear what it means. regards Ahmet Temiz ______________________________________ Inflex - 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 temiz at DEPREM.GOV.TR Wed Aug 11 06:37:37 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Wed, 11 Aug 2004 16:37:37 +0300 Subject: problem in loading php_mapscript.so Message-ID: hello I want to load a file that resides in "/usr/local/lib/php/extensions/" ~~~~~~~~~~~~~~~~ if (dl("php_mapscript.so") ) { echo "ok \n"; } else { echo "not loaded"; } ~~~~~~~~~~~~~~~~~~ this script loads the module if it runs in a file from console like php sil.php but from browser "http://localhost/dene6.php" it des not load themodule can you tell me why ? regards Ahmet Temiz ______________________________________ Inflex - 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 temiz at DEPREM.GOV.TR Wed Aug 11 00:07:00 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Wed, 11 Aug 2004 10:07:00 +0300 Subject: wrong with "php_mapscript.so" Message-ID: hello I want to run mapserver with php. But it seem to be something wrong with "php_mapscript.so". It recides in /usr/local/lib/php/extensions. dl("php_mapscript.so") is not functioning How can I know whether it has been compiled properly works functionally ? regards Ahmet Temiz ______________________________________ Inflex - 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 richard.greenwood at GMAIL.COM Thu Aug 12 05:55:16 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Thu, 12 Aug 2004 06:55:16 -0600 Subject: jBox & Mozilla In-Reply-To: <20040812075219.4047.qmail@web25404.mail.ukl.yahoo.com> Message-ID: On Thu, 12 Aug 2004 09:52:19 +0200, ludovic gnemmi wrote: > Hi all, > i'm working with Mozilla 0.93, php-mapscript, jBox > 1.1.1 and Java VM 1.4.2-05. > I'm testing Jbox applet with Mozilla Firefox and i've > noticed that Mozilla hangs each time the page is > submitted with zoom out or drag control. > > It seems that a call to any of the applet functions > while the applet is still loading cause mozilla to > hang. > > I've tried to delay my call in my code but i can't > anymore. > > Is there a way to make my app available with Mozilla? > > Regards, > > Ludovic Gnemmmi > DESS DCISS - Grenoble Yes. I added the parameters "drag" and "box" document.write("\ \ \ \ \ \ \ "); -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From plists at PROMETHEUS.ORG.YU Thu Aug 12 05:55:23 2004 From: plists at PROMETHEUS.ORG.YU (Attila Csipa) Date: Thu, 12 Aug 2004 14:55:23 +0200 Subject: error in php_mapscript.so In-Reply-To: <411B20A0.8050601@deprem.gov.tr> Message-ID: On Thursday 12 August 2004 09:47, temiz wrote: > ~~~~~~~~~~~~~~~ > [Wed Aug 11 17:03:49 2004] [error] PHP Warning: dl(): (null): Unable to > initialize module > Module compiled with module API=20040412, debug=0, thread-safety=0 > PHP compiled with module API=20020429, debug=0, thread-safety=0 > ~~~~~~~~~~~~~~~ It seems that the PHP you are trying to run mapserver with is not the same version as the one you specified when compiling mapserver (the --with-php switch). Either upgrade the PHP apache is running, or recompile mapscript with the same version of PHP as apache is using now. Also note that AFAIK mapscript will not work when PHP is used as a module, only as CGI. From David.Fawcett at STATE.MN.US Thu Aug 12 07:01:09 2004 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Thu, 12 Aug 2004 09:01:09 -0500 Subject: HTML Legend Example - Thanks DM! Message-ID: I was doing a little reading on HTML legends and found the 'How To' maintained by DM Solutions. http://mapserver.gis.umn.edu/doc40/html-legend-howto.html The on-line demo for various html legend options is very helpful. Thank you DM... David. David J. Fawcett MN Office of Environmental Assistance From andy_canfield at HOTMAIL.COM Thu Aug 12 07:29:43 2004 From: andy_canfield at HOTMAIL.COM (ANDY CANFIELD) Date: Thu, 12 Aug 2004 07:29:43 -0700 Subject: Carlson .crd files Message-ID: I am pretty sure Mapserver doesn't currently read this file format but if it does could somebody point me in the right direction as to how to use it to read these files. If it doesn't does anyone know where I can get the documentation on the file structure so I can write a reader for it? _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From richard.greenwood at GMAIL.COM Thu Aug 12 09:15:51 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Thu, 12 Aug 2004 10:15:51 -0600 Subject: Carlson .crd files In-Reply-To: Message-ID: On Thu, 12 Aug 2004 07:29:43 -0700, ANDY CANFIELD wrote: > I am pretty sure Mapserver doesn't currently read this file format but if it > does could somebody point me in the right direction as to how to use it to > read these files. If it doesn't does anyone know where I can get the > documentation on the file structure so I can write a reader for it? I am pretty sure that is the old C&G Survey Software, which is (or at least, was) based in Faricom's C-Tree. Years ago C&G provided me with the coordinate file reader library, but I can't find it any more. I'd suggest checking with Carlson and with Faircom. Regards, -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From sobomsawin at KASSINI.COM Thu Aug 12 10:24:45 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Thu, 12 Aug 2004 13:24:45 -0400 Subject: [UMN_MAPSERVER-USERS] wrong with "php_mapscript.so" In-Reply-To: <4119C594.8070706@deprem.gov.tr> Message-ID: Hi Ahmet! Did you try that: To verify that PHP and PHP/Mapscript were installed properly, create a '.php' file containing the following code and try to access it through your web server: If PHP and PHP/Mapscript were installed properly, several tables should be displayed on your page, and 'Mapscript' should be listed in the 'Extensions' table. You can find these informations on the Mapserver web page http://mapserver.gis.umn.edu/doc/phpmapscript-install-howto.html Cheers! Skweda -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de temiz Envoy??: 11 ao?t 2004 03:07 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: [UMN_MAPSERVER-USERS] wrong with "php_mapscript.so" hello I want to run mapserver with php. But it seem to be something wrong with "php_mapscript.so". It recides in /usr/local/lib/php/extensions. dl("php_mapscript.so") is not functioning How can I know whether it has been compiled properly works functionally ? regards Ahmet Temiz ______________________________________ Inflex - 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. --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.735 / Virus Database: 489 - Release Date: 2004-08-06 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.735 / Virus Database: 489 - Release Date: 2004-08-06 From jhblankenship at YAHOO.COM Thu Aug 12 10:56:44 2004 From: jhblankenship at YAHOO.COM (Jacob Blankenship) Date: Thu, 12 Aug 2004 10:56:44 -0700 Subject: Start with any lat/long and end with a map Message-ID: All, How would I go about resolving a lat/long (for any point in N. America or the world) to display a map using MapServer 4.2? Geocoding? Is there a WMS that can help with this? If necessary I can host the GIS data and a DBMS. Thanks, Jacob Blankenship __________________________________ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail From ed at TOPOZONE.COM Thu Aug 12 11:21:04 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 12 Aug 2004 14:21:04 -0400 Subject: Start with any lat/long and end with a map Message-ID: Jacob - You'll need to explain what you mean by "resolving". What data do you have that you're trying to map? - 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 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jacob Blankenship Sent: Thursday, August 12, 2004 12:57 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Start with any lat/long and end with a map All, How would I go about resolving a lat/long (for any point in N. America or the world) to display a map using MapServer 4.2? Geocoding? Is there a WMS that can help with this? If necessary I can host the GIS data and a DBMS. Thanks, Jacob Blankenship __________________________________ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail From ealpert at DIGITALGLOBE.COM Thu Aug 12 11:09:06 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Thu, 12 Aug 2004 12:09:06 -0600 Subject: Solved one of my long standing postgis problems Message-ID: For the longest time I couldn't figure out why I couldn't define views and have them as layers in my maps. Well it turns out they work if I add an entry into geometry_columns for each view. just and FYI for the record. -e -------------- next part -------------- An HTML attachment was scrubbed... URL: From mholger at OPTERA.NET Thu Aug 12 11:27:59 2004 From: mholger at OPTERA.NET (Matthew Holger) Date: Thu, 12 Aug 2004 13:27:59 -0500 Subject: Problem using OGR VRT data In-Reply-To: <20040811165808.GB10367@Optera.NET> Message-ID: I have managed to solve my problems in regards to this issue...unfortunately, there's no "quick" fix or explanation, but here's as much of a summary as I can provide at the moment (silly me, didn't document what I did or how many times, but this should get you going): The system is an Intel x86 box running Debian 3.0 ("sarge" as it were). I had installed unixodbc, MySQL, and the associated MyODBC software via Debian's packages, built gdal-1.2.1 (including OGR) from source, and then built mapserver 4.2.2 from source. Tracing back through where things were breaking, I ended up removing the Debian unixodbc and building unixODBC-2.2.9 from source. Included with unixODBC-2.2.9 is MyODBC v3.51, which unfortunately, doesn't compile out of the box. There was a spurious line of "garbage" at the very top of catalog.c that needed to be removed, and a reference to dbc->mysql.net.timeout, to which the compiler complains about 'timeout' not being an existing member of the structure. I just commented that whole block out. Once I had unixODBC installed (in /usr/local), and MyODBC installed (again in /usr/local), I copied my odbc.ini and odbcinst.ini files from /etc to /usr/local/etc, and changed the references in odbcinst.ini from: Driver = /usr/lib/odbc/libmyodbc.so Setup = /usr/lib/odbc/libodbcmyS.so to: Driver = /usr/local/lib/libmyodbc3.so Setup = /usr/local/lib/libodbcmyS.so I made sure to run ldconfig after building/installing unixODBC, again after building/installing MyODBC, then rebuilt gdal-1.2.1, ldconfig, and rebuilt mapserv. *poof* -- ODBC/VRT using OGR under mapserv works flawlessly! During my testing, I found that it probably wasn't necessary to rebuild gdal or mapserv after replacing libraries and running ldconfig, but it never hurts... Cheers! -Matt. On Wed, Aug 11, 2004 at 11:58:08AM -0500, Matthew Holger wrote: > I've been trying to get an OGR VRT layer to work under mapserver 4.2.2, but I > keep running into trouble. > > Using ogrinfo to view the individual layers specified in my .ovf file, I have > no problems, but when trying to access the data with mapserver I get an > internal server error, with no diagnostics in my Apache error logs, and the > only thing seen in my apache trace logs being a query for geometry_columns > (which I created by finessing the shp2mysql.pl script, using ogr2ogr to dump > the layer using the ovf file to a shape file, then reimporting the shapefile, > finessing the newly create geometry_columns table, then dropping the other > tables created by shp2mysql). Messy, but it worked... > > (The specific query I see is: > SELECT f_table_name, f_geometry_column, geometry_type FROM geometry_columns > limit 136662716 > But...the last number (136662716) changes from time to time...) > > What I find curious is that the geometry_columns table isn't referenced by > ogrinfo, and in the mapserver source I only see it referenced in MyGIS and > PostGIS, of which I'm using neither. > > Anyone have any thoughts? I've been banging my head on this one for awhile. > > The OVF file reads as follows: > > > ODBC:webuser/tItb2Ur!@Keyori > Waypoints > wkbPoint > WGS84 > y="latitude"/> > > > > ODBC:mholger/ph1r3d at Keyori > ZipTable > wkbPoint > WGS84 > > > > > > The layer in the MAP file is: > LAYER > NAME caches > TYPE point > CONNECTIONTYPE OGR > CONNECTION "keyori.ovf" > DATA Geocaches > STATUS on > PROJECTION > "init=epsg:4326" > END > CLASS > SYMBOL "triangle" > SIZE 5 > COLOR 128 45 45 > END > END > > there are several other layers in the map file as well, but they work > flawlessly, and the problem only arises when the status for this layer is set > to 'on' or 'default' (ie: I turn it off, everything works fine). > > mapserv -v says: > MapServer version 4.2.2 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ > SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > And of course, GDAL/OGR was compiled with ODBC support, and works fine in and > of itself.... > > Thanks in advance for any assistance! > > Cheers! > -Matt. > -- > _ > Matthew Holger (mholger at optera.net) || ASCII ribbon campaign ( ) > Unix Systems Administrator || against HTML Email X > http://www.Optera.NET/ :: m:651.271.3248 || http://arc.pasp.de/ / \ -- _ Matthew Holger (mholger at optera.net) || ASCII ribbon campaign ( ) Unix Systems Administrator || against HTML Email X http://www.Optera.NET/ :: m:651.271.3248 || http://arc.pasp.de/ / \ From lists at WEBMAPIT.COM.BR Thu Aug 12 11:53:04 2004 From: lists at WEBMAPIT.COM.BR (Eduardo Patto Kanegae) Date: Thu, 12 Aug 2004 15:53:04 -0300 Subject: Can't view Envi HDR file... Message-ID: Hi, I'm trying to use MapServer version 4.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE to display a raster layer based on a ENVI HDR file. the 'gldainfo' result of this file is: --------- Driver: ENVI/ENVI .hdr Labelled Size is 8401, 7201 Coordinate System is: LOCAL_CS["Geographic Lat/Lon", UNIT["Meter",1]] Origin = (-183604.500000,-64798.500000) Pixel Size = (3.00000000,-3.00000000) Corner Coordinates: Upper Left ( -183604.500, -64798.500) Lower Left ( -183604.500, -86401.500) Upper Right ( -158401.500, -64798.500) Lower Right ( -158401.500, -86401.500) Center ( -171003.000, -75600.000) Band 1 Block=8401x1 Type=Int16, ColorInterp=Undefined Description = Mosaic (Band 1) ------- Using OpenEV 1.80 I got a view like shown at the 'dem-openev.png' attached. But using MapServer I got only an image like shown in 'dem-mapserver.png' attached. My mapfile is: MAP EXTENT -183604.500 -86401.500 -158401.500 -64798.500 IMAGETYPE dem SIZE 736 632 OUTPUTFORMAT NAME dem DRIVER "GD/PNG" IMAGEMODE RGB END LAYER # imagem NAME "imagem" TYPE RASTER DATA "C:\local\mapas\envi\MOSAICOHGT" END END What is wrong? What should I change to display in MapServer just like the way it appears in OpenEV? best regards. -- Eduardo Patto Kanegae http://www.webmapit.com.br UIN: 303747254 Valinhos/SP/Brasil +55(19)3871-4875 Treinamento em UMN MapServer - http://www.webmapit.eti.br/ptbr/?menuoption=mapserver I Encontro Nacional de Usu?rios MapServer - http://mapserver.cttmar.univali.br/encontro2004 F?rum MapServer Brasil - http://mapserver.cttmar.univali.br/forum ***Fim da Mensagem / End of Message *** -------------- next part -------------- A non-text attachment was scrubbed... Name: dem-openev.PNG Type: image/png Size: 476081 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: dem-mapserver.png Type: image/png Size: 26923 bytes Desc: not available URL: From sobomsawin at KASSINI.COM Thu Aug 12 11:50:25 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Thu, 12 Aug 2004 14:50:25 -0400 Subject: [UMN_MAPSERVER-USERS] Partly solved Labels Problem In-Reply-To: <411A8A8E.30708@swoodbridge.com> Message-ID: Hi list! I finally partly solved my label problem. Actually, I bypassed it by using POSITION UR instead of UC. The upper center position seems to cause a problem with a postgis line layer. The workaround is to use another position like upper right which gives me satisfactory results. Have a nice day! Skweda -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Stephen Woodbridge Envoy??: 11 ao?t 2004 17:07 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: Re: [UMN_MAPSERVER-USERS] Labels Problem Try removing the "POSITION UC" -Steve Skweda O'Bomsawin wrote: > Hi list! > > > > I have a weird label problem with Mapserver. I try to display street names > with an angle set to auto. My map file looks like this: > > > > CLASS > > Name 'road_labels' > > LABEL > > TYPE TRUETYPE > > FONT "arial" > > SIZE 7 > > MINSIZE 4 > > MAXSIZE 256 > > POSITION UC > > ANGLE AUTO > > BUFFER 2 > > MINDISTANCE 150 > > MINFEATURESIZE 20 > > COLOR 100 50 0 > > SHADOWCOLOR 0 0 0 > > SHADOWSIZE 0 0 > > PARTIALS FALSE > > END > > END # Class > > > > As you can see on the picture I have sent, I am unable to get the labels > centered on the street lines. Some names are as far as 400m from the center > of the street and the translation seems to be always parallel to the street > line. I'm using Mapserver 4.0 with Postgis 0.7 on a Whitebox Linux with gd > 1.8.4-12 and freetype 2.1.4-4. > > > > Thanks! > > > > Skweda O'Bomsawin > > sobomsawin at kassini.com > > > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.735 / Virus Database: 489 - Release Date: 2004-08-06 > > > --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.735 / Virus Database: 489 - Release Date: 2004-08-06 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.735 / Virus Database: 489 - Release Date: 2004-08-06 From jvanulde at NRCAN.GC.CA Thu Aug 12 11:45:18 2004 From: jvanulde at NRCAN.GC.CA (Van Ulden, Joost) Date: Thu, 12 Aug 2004 14:45:18 -0400 Subject: OGR - wkbLineString? Message-ID: Hi all, Is there any way that one could store coordinate pairs that represent arcs in a database and have mapserver draw them? Using OGR? Any suggestions would be helpful. Cheers, ============================================ Joost van Ulden Programmer/Analyst Natural Resources Canada / Ressources naturelles Canada Geological Survey of Canada / Commission geologique du Canada 101 - 605 Robson Street / 101 - 605 rue Robson Vancouver, B.C. / Vancouver (C.B.) V6B 5J3 Office/Bureau: 604.666.7525 fax/telecopieur: 604.666.1124 jvanulde at nrcan.gc.ca ============================================ From brant at MUDLABS.COM Thu Aug 12 12:24:00 2004 From: brant at MUDLABS.COM (Brant Anderson) Date: Thu, 12 Aug 2004 14:24:00 -0500 Subject: wrong with "php_mapscript.so" In-Reply-To: <4119C594.8070706@deprem.gov.tr> Message-ID: temiz wrote: > hello > > I want to run mapserver with php. > But it seem to be something wrong with "php_mapscript.so". It recides in > /usr/local/lib/php/extensions. > > dl("php_mapscript.so") is not functioning > > How can I know whether it has been compiled properly works functionally ? > > > regards > > Ahmet Temiz > > > ______________________________________ > Inflex - 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. > Hi Ahmet! I haven't done much with dynamic libraries in PHP, but I think this command might be useful: php-config --extension-dir It should tell you the directory where the extensions for PHP reside. Try moving php_mapscript.so to that directory, then restart the web-server and run your code again. Hope it works, Brant Anderson From Chris.Judd at DEP.STATE.FL.US Thu Aug 12 12:52:02 2004 From: Chris.Judd at DEP.STATE.FL.US (Judd, Chris) Date: Thu, 12 Aug 2004 15:52:02 -0400 Subject: Multiple geometry types in single layer Message-ID: MapServer folks, We are looking to use MapServer to serve Oracle Spatial data that has multiple geometry types (points, lines and polygons) in a single layer. Many databases support multiple geometry types in the same layer. This is a quote from the SDE wiki (http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MapServerSDE) "SDE techically allows for storage of multiple geometry types in the same layer..." I believe PostGIS has also added this feature. We were able to mine Google and find this post from Paul Ramsey dated 2001, stating at that time MapServer could only render one geometry type per layer. http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0110/msg00187.html My questions are: 1) Does the current version of MapServer support the rendering of more than one geometry type in a single layer? 2) Is there an example of this? Any example would be helpful. Thanks for your support. Chris Judd Florida DEP From steve.lime at DNR.STATE.MN.US Thu Aug 12 13:35:13 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 12 Aug 2004 15:35:13 -0500 Subject: Multiple geometry types in single layer Message-ID: MapServer relies on the layer TYPE to decide how to render a feature. The feature type (obtained from that datasource) is used for error checking. You can draw a polygon feature using a line layer and a line or polygon feature using a point layer. You can't draw a point as a polygon though. So, if the Oracle Spatial driver in MapServer allows access to multiple feature you probably can do some simple stuff, but you couldn't set up EXPRESSIONs to capitalize on the type of a feature. At this point you'd have to filter based on feature type at the connection level, that is, just deal with all the points in one layer and so on. Steve >>> "Judd, Chris" 8/12/2004 2:52:02 PM >>> MapServer folks, We are looking to use MapServer to serve Oracle Spatial data that has multiple geometry types (points, lines and polygons) in a single layer. Many databases support multiple geometry types in the same layer. This is a quote from the SDE wiki (http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MapServerSDE) "SDE techically allows for storage of multiple geometry types in the same layer..." I believe PostGIS has also added this feature. We were able to mine Google and find this post from Paul Ramsey dated 2001, stating at that time MapServer could only render one geometry type per layer. http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0110/msg00187.html My questions are: 1) Does the current version of MapServer support the rendering of more than one geometry type in a single layer? 2) Is there an example of this? Any example would be helpful. Thanks for your support. Chris Judd Florida DEP From jhblankenship at YAHOO.COM Thu Aug 12 13:36:51 2004 From: jhblankenship at YAHOO.COM (Jacob Blankenship) Date: Thu, 12 Aug 2004 13:36:51 -0700 Subject: Start with any lat/long and end with a map In-Reply-To: <2A6FDD75AE04BE4A9E8C918D3C09FB0721CBDC@ptolemy.topozone.com> Message-ID: Tom, I appreciate your reply. I'm starting with a lat/long coordinate in the U.S.A and wanting to display a map of the local area at this point with various layers of GIS data. But the data a have from ESRI is by state and county and I don't know how load the correct file for display. Thank you for your thoughts, Jacob --- Ed McNierney wrote: > Jacob - > > You'll need to explain what you mean by "resolving". > What data do you > have that you're trying to map? > > - 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 > > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Jacob Blankenship > Sent: Thursday, August 12, 2004 12:57 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Start with any > lat/long and end with a > map > > All, How would I go about resolving a lat/long (for > any point in N. > America or the world) to display a map using > MapServer 4.2? Geocoding? > Is there a WMS that can help with this? If necessary > I can host the GIS > data and a DBMS. > > Thanks, > Jacob Blankenship > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail is new and improved - Check it out! > http://promotions.yahoo.com/new_mail > __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail From lists at WEBMAPIT.COM.BR Thu Aug 12 13:35:04 2004 From: lists at WEBMAPIT.COM.BR (Eduardo Patto Kanegae) Date: Thu, 12 Aug 2004 17:35:04 -0300 Subject: how to start griding from a given point Message-ID: Is there a way to define GRID object so that this can start drawing lines from a given point...eg.: starting from -45 and goes spliting for each 6 ( -51, -57, ...) ? best -- Eduardo Patto Kanegae http://www.webmapit.com.br UIN: 303747254 Valinhos/SP/Brasil +55(19)3871-4875 Treinamento em UMN MapServer - http://www.webmapit.eti.br/ptbr/?menuoption=mapserver I Encontro Nacional de Usu?rios MapServer - http://mapserver.cttmar.univali.br/encontro2004 F?rum MapServer Brasil - http://mapserver.cttmar.univali.br/forum ***Fim da Mensagem / End of Message *** From ed at TOPOZONE.COM Thu Aug 12 13:46:50 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 12 Aug 2004 16:46:50 -0400 Subject: Start with any lat/long and end with a map Message-ID: Jacob - Let's (for the sake of the example) assume you have two data layers, named STATES and RIVERS. One is a set of data files, one per state, each with one or more polygons describing the outline of that particular state. The second is another set of data files, one per county, with line features showing streams and rivers. In the first case you have some 50+ files and in the second you have a little under 4,000 files. The *data* inside of each of these files is in latitude/longitude coordinates, so MapServer will correctly display it. So I think your question is "How do I know which data file(s) to turn on in response to a particular location?". The answer is, "You don't - MapServer will do that". Look in the online documentation for the TILEINDEX keyword. By creating a tile index, you will create a new ESRI shapefile that contains two bits of information for each input file - the rectangular bounding box that encloses all the data in that file, and the filename of that data file. It is, literally, an index to all the individual data files that make up the layer. For the STATES and RIVERS cases you would create one TILEINDEX file for each. One would have 50+ rectangles in it, and the other would have nearly 4,000 rectangles. You then create two data layers and instead of using the DATA keyword to indicate the direct filename to use, you use the TILEINDEX keyword to specify an indirect index. MapServer will look at the rectangular extent of the requested output map (not just the center point) and can quickly determine which rectangles in the TILEINDEX file intersect the output extent (computing rectangular intersections is very easy). MapServer will then know which few input files could possibly contribute to the output image (for irregular shapes, the bounding rectangle may intersect but the actual data doesn't). MapServer will then draw only those data files in that list, and you don't have to worry or know which ones they are. The tile4ms tool will create the TILEINDEX files for you. - 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 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jacob Blankenship Sent: Thursday, August 12, 2004 3:37 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Start with any lat/long and end with a map Tom, I appreciate your reply. I'm starting with a lat/long coordinate in the U.S.A and wanting to display a map of the local area at this point with various layers of GIS data. But the data a have from ESRI is by state and county and I don't know how load the correct file for display. Thank you for your thoughts, Jacob --- Ed McNierney wrote: > Jacob - > > You'll need to explain what you mean by "resolving". > What data do you > have that you're trying to map? > > - 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 > > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jacob Blankenship > Sent: Thursday, August 12, 2004 12:57 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Start with any lat/long and end with a > map > > All, How would I go about resolving a lat/long (for any point in N. > America or the world) to display a map using MapServer 4.2? Geocoding? > Is there a WMS that can help with this? If necessary I can host the > GIS data and a DBMS. > > Thanks, > Jacob Blankenship > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail is new and improved - Check it out! > http://promotions.yahoo.com/new_mail > __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail From bz at CESMAIL.NET Thu Aug 12 15:29:21 2004 From: bz at CESMAIL.NET (Barbara Zack) Date: Thu, 12 Aug 2004 17:29:21 -0500 Subject: What's Wrong With This Picture? In-Reply-To: Message-ID: My apologies for bothering the list with this, but I'm running out of time. I'm primarily a programmer with almost no GIS background. Being the only available entity, I was asked to get MapServer up and running as a WMS server. Obviously I have no business doing this, but here I am. I managed to get a Linux server (Debian sarge) up and running, GDAL compiled with mrsid support, MapServer compiled, and the demo working. The map file part is beyond my comprehension. The one I put together, only half of which I actually understands, produces an XML capabilities document with no warning messages. However, GetMap gives me a blank png as output. Below are the results of mapserv -v and gdalinfo in case that's important. Following that is my first attempt at a map file, for your amusement. I don't understand about half of what I have in there. Any pointers would be so greatly appreciated. Thanks! Barbara Z ./mapserv -v MapServer version 4.2.2 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE ======================================== gdalinfo /var/www/aviano/aviano.sid Driver: MrSID/Multi-resolution Seamless Image Database (MrSID) Size is 89286, 111281 Coordinate System is `' Origin = (311999.989722,5105471.083134) Pixel Size = (0.06720000,0.06720000) Metadata: IMAGE__COLOR_SCHEME=0 IMAGE__DATA_TYPE=0 IMAGE__INPUT_FILE_SIZE=0.000000 IMAGE__WIDTH=89286 IMAGE__HEIGHT=111281 IMAGE__XY_ORIGIN=312000.023322,5105471.116734 IMAGE__X_RESOLUTION=0.067200 IMAGE__Y_RESOLUTION=0.067200 Corner Coordinates: Upper Left ( 311999.990, 5105471.083) Lower Left ( 311999.990, 5112949.166) Upper Right ( 318000.009, 5105471.083) Lower Right ( 318000.009, 5112949.166) Center ( 314999.999, 5109210.125) Band 1 Block=89286x64 Type=Byte, ColorInterp=Red Band 2 Block=89286x64 Type=Byte, ColorInterp=Green Band 3 Block=89286x64 Type=Byte, ColorInterp=Blue =========================================== MAP EXTENT 311999.990 5112949.166 318000.009 5105471.083 IMAGETYPE png SIZE 783 976 PROJECTION "init=epsg:4326" END OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" END WEB METADATA "wms_title" "Aviano Map" "wms_onlineresource" "http://sid/cgi-bin/mapserv?map=/var/www/aviano/aviano.map&" "wms_srs" "EPSG:4326" END END LAYER NAME "Aviano1" DATA "/var/www/aviano/aviano.sid" TYPE raster STATUS on METADATA "wms_title" "Aviano Raster" "wms_onlineresource" "http://sid/cgi-bin/mapserv?map=/var/www/aviano/aviano.map&" END CLASSITEM "[pixel]" CLASS EXPRESSION ([pixel] < 64) COLOR 0 0 0 END CLASS EXPRESSION ([pixel] >= 64 AND [pixel] < 128) COLOR 255 0 0 END CLASS EXPRESSION ([pixel] >= 128 AND [pixel] < 196) COLOR 0 255 0 END CLASS EXPRESSION ([pixel] >= 196 AND [pixel] < 256) COLOR 0 0 255 END END END From ed at TOPOZONE.COM Thu Aug 12 16:09:03 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 12 Aug 2004 19:09:03 -0400 Subject: What's Wrong With This Picture? Message-ID: Barbara - It looks like you did pretty well! Your EXTENT line in the map file should be MINX MINY MAXX MAXY - you've got the two Y values reversed, which means you're asking for nothing (and getting it ). Try just swapping those two numbers. - 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 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Barbara Zack Sent: Thursday, August 12, 2004 5:29 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] What's Wrong With This Picture? My apologies for bothering the list with this, but I'm running out of time. I'm primarily a programmer with almost no GIS background. Being the only available entity, I was asked to get MapServer up and running as a WMS server. Obviously I have no business doing this, but here I am. I managed to get a Linux server (Debian sarge) up and running, GDAL compiled with mrsid support, MapServer compiled, and the demo working. The map file part is beyond my comprehension. The one I put together, only half of which I actually understands, produces an XML capabilities document with no warning messages. However, GetMap gives me a blank png as output. Below are the results of mapserv -v and gdalinfo in case that's important. Following that is my first attempt at a map file, for your amusement. I don't understand about half of what I have in there. Any pointers would be so greatly appreciated. Thanks! Barbara Z ./mapserv -v MapServer version 4.2.2 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE ======================================== gdalinfo /var/www/aviano/aviano.sid Driver: MrSID/Multi-resolution Seamless Image Database (MrSID) Size is 89286, 111281 Coordinate System is `' Origin = (311999.989722,5105471.083134) Pixel Size = (0.06720000,0.06720000) Metadata: IMAGE__COLOR_SCHEME=0 IMAGE__DATA_TYPE=0 IMAGE__INPUT_FILE_SIZE=0.000000 IMAGE__WIDTH=89286 IMAGE__HEIGHT=111281 IMAGE__XY_ORIGIN=312000.023322,5105471.116734 IMAGE__X_RESOLUTION=0.067200 IMAGE__Y_RESOLUTION=0.067200 Corner Coordinates: Upper Left ( 311999.990, 5105471.083) Lower Left ( 311999.990, 5112949.166) Upper Right ( 318000.009, 5105471.083) Lower Right ( 318000.009, 5112949.166) Center ( 314999.999, 5109210.125) Band 1 Block=89286x64 Type=Byte, ColorInterp=Red Band 2 Block=89286x64 Type=Byte, ColorInterp=Green Band 3 Block=89286x64 Type=Byte, ColorInterp=Blue =========================================== MAP EXTENT 311999.990 5112949.166 318000.009 5105471.083 IMAGETYPE png SIZE 783 976 PROJECTION "init=epsg:4326" END OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" END WEB METADATA "wms_title" "Aviano Map" "wms_onlineresource" "http://sid/cgi-bin/mapserv?map=/var/www/aviano/aviano.map&" "wms_srs" "EPSG:4326" END END LAYER NAME "Aviano1" DATA "/var/www/aviano/aviano.sid" TYPE raster STATUS on METADATA "wms_title" "Aviano Raster" "wms_onlineresource" "http://sid/cgi-bin/mapserv?map=/var/www/aviano/aviano.map&" END CLASSITEM "[pixel]" CLASS EXPRESSION ([pixel] < 64) COLOR 0 0 0 END CLASS EXPRESSION ([pixel] >= 64 AND [pixel] < 128) COLOR 255 0 0 END CLASS EXPRESSION ([pixel] >= 128 AND [pixel] < 196) COLOR 0 255 0 END CLASS EXPRESSION ([pixel] >= 196 AND [pixel] < 256) COLOR 0 0 255 END END END From blaine_hack1 at YAHOO.COM Thu Aug 12 16:22:53 2004 From: blaine_hack1 at YAHOO.COM (Blaine Hackett) Date: Thu, 12 Aug 2004 16:22:53 -0700 Subject: TrueType Font Error Message-ID: All I have been wrestling with an issue and hope you can help. I have an XP computer running MapServer 3.6.6 and Apache 2. Truetype fonts work fine. I have another XP computer running 4.0.2 and Apache 2. Truetype fonts do not work. Here is the scenario: If I use the default, my labels come out fine. However if I use "TYPE TRUETYPE" I get the following error. msGetLabelSize(): TrueType Font error. Could not find/open font In my map file I have tried all different ways to access the fontset.list file. I know that it is finding the file because if I mess with the file in any way, it gives me a different error msLoadFontset(): Unable to access file. Error opening fontset font/fonts.list. I have exhaustively searched the archive and tried every suggestion but I cannot come up with a solution. Thanks Blaine __________________________________ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail From ed at TOPOZONE.COM Thu Aug 12 16:27:09 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 12 Aug 2004 19:27:09 -0400 Subject: TrueType Font Error Message-ID: Blaine - Yes, but that error means MapServer can't find the specific font that's listed in the fonts.list file. Look at the name of the font you're using, then find that name in the fonts.list file, and follow the path to the font 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 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Blaine Hackett Sent: Thursday, August 12, 2004 6:23 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] TrueType Font Error All I have been wrestling with an issue and hope you can help. I have an XP computer running MapServer 3.6.6 and Apache 2. Truetype fonts work fine. I have another XP computer running 4.0.2 and Apache 2. Truetype fonts do not work. Here is the scenario: If I use the default, my labels come out fine. However if I use "TYPE TRUETYPE" I get the following error. msGetLabelSize(): TrueType Font error. Could not find/open font In my map file I have tried all different ways to access the fontset.list file. I know that it is finding the file because if I mess with the file in any way, it gives me a different error msLoadFontset(): Unable to access file. Error opening fontset font/fonts.list. I have exhaustively searched the archive and tried every suggestion but I cannot come up with a solution. Thanks Blaine __________________________________ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail From ishrarh at YAHOO.COM Thu Aug 12 16:39:30 2004 From: ishrarh at YAHOO.COM (Ishrar Hussain) Date: Thu, 12 Aug 2004 16:39:30 -0700 Subject: Labels DO NOT appear on ms_newPointObj()? In-Reply-To: <1092247820.1928.53.camel@ubet.gomoos.org> Message-ID: Dear Eric, I tried using drawLableCache() as you've mentioned. But it gives error (returns -1). Thus, the problem still persists. Seeing the code, can anyone also suggest me what I should put in LABELITEM of LAYER object in the map file, when using ms_newPointObj() to draw label on a dynamic point? Thank you. Regards, Ishrar --- Eric Bridger wrote: > I would try adding, after your $point->draw() > > $oMap->drawLableCache($oImage); > > Eric > > > > On Wed, 2004-08-11 at 13:10, Ishrar Hussain wrote: > > I am using the code below to plot a dynamic point > > using ms_newPointObj(). Though I have added the > LABEL > > object inside the CLASS object of the LAYER which > > contains the point, the label does not appear at > all. > > > > Please go through the code, and let me know if it > > needs any change for making the label appear. I'm > also > > not sure whether the parameter for the annotation > > string in ms_newPointObj() will be the one holding > the > > LABEL of the point. > > > > The code is as follows: > > > > > //....Part of my PHP Code > > > > $oImage = $oMap->draw(); > > > > $myPoint = ms_newPointObj(); > > $myPoint->setXY(542800.6235, 626730.4673); > > $myLayer = $oMap->getLayerByName("Points"); > > > > $myPoint->draw($oMap, $myLayer, $oImage, 0, "The > LABEL > > of This Point"); > > > > //....continues > > ?> > > > > > > # Part of my Map File > > > > LAYER > > NAME "Points" > > STATUS DEFAULT > > TYPE POINT > > UNITS METERS > > SIZEUNITS PIXELS > > # LABELITEM "Labels" # <-- I'm not sure about > > LABELITEM here > > LABELMINSCALE 1e+04 > > LABELMAXSCALE 4300000 > > TOLERANCE 0 > > TOLERANCEUNITS PIXELS > > CLASS > > NAME "Vehicle Class" > > LABEL > > TYPE TRUETYPE > > FONT "fritqat" > > SIZE 7 > > MINSIZE 4 > > MAXSIZE 256 > > POSITION CC > > OFFSET 0 0 > > ANGLE 0 > > BUFFER 0 > > MINDISTANCE -1 > > MINFEATURESIZE -1 > > COLOR 102 51 51 > > OUTLINECOLOR 204 255 204 > > ANTIALIAS TRUE > > PARTIALS FALSE > > FORCE FALSE > > END #LABEL > > STYLE > > SYMBOL 2 > > COLOR 171 60 219 > > SIZE 10 > > MINSIZE 1 > > MAXSIZE 100 > > END #STYLE > > END #CLASS > > END #LAYER > > > > # ----- > > > > > > I hope this will be enough for you to understand > the > > problem. looking forward to your early response. > > > > Thank you. > > > > Regards, > > Ishrar > > > > > > > > > > --- Eric Bridger wrote: > > > > > On Sun, 2004-08-08 at 09:37, Ishrar Hussain > wrote: > > > > I need to dynamically add labels to the > points, > > > which I > > > > plotted with ms_newPointObj() following the > code > > > by > > > > Merlos (available at > > > > > > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptAddPoint). > > > > > > > > The annotation string, which I put in the > draw() > > > > function of PointObj, does not appear as Label > of > > > the point. > > > > > > > > Please, also let me know, if I have to add > > > anything to > > > > my Map file for this, and if so, then how. > > > > > > > > > > > > > You will need to add a LABEL section to your > CLASS. > > > E.g. > > > LABEL > > > COLOR 255 0 0 > > > SIZE TINY > > > END > > > > > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From eric at GOMOOS.ORG Thu Aug 12 17:07:44 2004 From: eric at GOMOOS.ORG (Eric Bridger) Date: Thu, 12 Aug 2004 20:07:44 -0400 Subject: Labels DO NOT appear on ms_newPointObj()? In-Reply-To: <20040812233930.67026.qmail@web54002.mail.yahoo.com> Message-ID: If $map->drawLabelCache() is returning an error you should check the mapserver error log. You should not need a LABELITEM, you are providing the text. I would also try removing the LABELMAXSCALE, LABELMINSCALE items and try setting FORCE TRUE in you LABEL. At 04:39 PM 08/12/2004 -0700, Ishrar Hussain wrote: >Dear Eric, > >I tried using drawLableCache() as you've mentioned. >But it gives error (returns -1). Thus, the problem >still persists. > >Seeing the code, can anyone also suggest me what I >should put in LABELITEM of LAYER object in the map >file, when using ms_newPointObj() to draw label on a >dynamic point? > >Thank you. > >Regards, >Ishrar > > > >--- Eric Bridger wrote: > >> I would try adding, after your $point->draw() >> >> $oMap->drawLableCache($oImage); >> >> Eric >> >> >> >> On Wed, 2004-08-11 at 13:10, Ishrar Hussain wrote: >> > I am using the code below to plot a dynamic point >> > using ms_newPointObj(). Though I have added the >> LABEL >> > object inside the CLASS object of the LAYER which >> > contains the point, the label does not appear at >> all. >> > >> > Please go through the code, and let me know if it >> > needs any change for making the label appear. I'm >> also >> > not sure whether the parameter for the annotation >> > string in ms_newPointObj() will be the one holding >> the >> > LABEL of the point. >> > >> > The code is as follows: >> > >> > > > //....Part of my PHP Code >> > >> > $oImage = $oMap->draw(); >> > >> > $myPoint = ms_newPointObj(); >> > $myPoint->setXY(542800.6235, 626730.4673); >> > $myLayer = $oMap->getLayerByName("Points"); >> > >> > $myPoint->draw($oMap, $myLayer, $oImage, 0, "The >> LABEL >> > of This Point"); >> > >> > //....continues >> > ?> >> > >> > >> > # Part of my Map File >> > >> > LAYER >> > NAME "Points" >> > STATUS DEFAULT >> > TYPE POINT >> > UNITS METERS >> > SIZEUNITS PIXELS >> > # LABELITEM "Labels" # <-- I'm not sure about >> > LABELITEM here >> > LABELMINSCALE 1e+04 >> > LABELMAXSCALE 4300000 >> > TOLERANCE 0 >> > TOLERANCEUNITS PIXELS >> > CLASS >> > NAME "Vehicle Class" >> > LABEL >> > TYPE TRUETYPE >> > FONT "fritqat" >> > SIZE 7 >> > MINSIZE 4 >> > MAXSIZE 256 >> > POSITION CC >> > OFFSET 0 0 >> > ANGLE 0 >> > BUFFER 0 >> > MINDISTANCE -1 >> > MINFEATURESIZE -1 >> > COLOR 102 51 51 >> > OUTLINECOLOR 204 255 204 >> > ANTIALIAS TRUE >> > PARTIALS FALSE >> > FORCE FALSE >> > END #LABEL >> > STYLE >> > SYMBOL 2 >> > COLOR 171 60 219 >> > SIZE 10 >> > MINSIZE 1 >> > MAXSIZE 100 >> > END #STYLE >> > END #CLASS >> > END #LAYER >> > >> > # ----- >> > >> > >> > I hope this will be enough for you to understand >> the >> > problem. looking forward to your early response. >> > >> > Thank you. >> > >> > Regards, >> > Ishrar >> > >> > >> > >> > >> > --- Eric Bridger wrote: >> > >> > > On Sun, 2004-08-08 at 09:37, Ishrar Hussain >> wrote: >> > > > I need to dynamically add labels to the >> points, >> > > which I >> > > > plotted with ms_newPointObj() following the >> code >> > > by >> > > > Merlos (available at >> > > >> > >> >http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptAddPoint). >> > > > >> > > > The annotation string, which I put in the >> draw() >> > > > function of PointObj, does not appear as Label >> of >> > > the point. >> > > > >> > > > Please, also let me know, if I have to add >> > > anything to >> > > > my Map file for this, and if so, then how. >> > > > >> > > >> > > >> > > You will need to add a LABEL section to your >> CLASS. >> > > E.g. >> > > LABEL >> > > COLOR 255 0 0 >> > > SIZE TINY >> > > END >> > > >> >> >> > > >__________________________________________________ >Do You Yahoo!? >Tired of spam? Yahoo! Mail has the best spam protection around >http://mail.yahoo.com From ed at TOPOZONE.COM Thu Aug 12 18:29:34 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 12 Aug 2004 21:29:34 -0400 Subject: TrueType Font Error Message-ID: Blaine - Don't rely on what the "current directory" is for paths - if possible, use fully-qualified pathnames. Try adding the complete path to each font file to see if that fixes the problem, and always please reply to the whole list - thanks! - Ed -----Original Message----- From: Blaine Hackett [mailto:blaine_hack1 at yahoo.com] Sent: Thu 8/12/2004 9:00 PM To: Ed McNierney Subject: Re: [UMN_MAPSERVER-USERS] TrueType Font Error Ed So your saying it can't find the font the fonlist file is directing it to? I have the fonts in the same directory as the fontset file. I have tried hardcoding the path in the fons.list file to the .ttf file and it still gives me the same error. Blaine --- Ed McNierney wrote: > Blaine - > > Yes, but that error means MapServer can't find the > specific font that's > listed in the fonts.list file. Look at the name of > the font you're > using, then find that name in the fonts.list file, > and follow the path > to the font 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 > > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Blaine Hackett > Sent: Thursday, August 12, 2004 6:23 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] TrueType Font Error > > All > > I have been wrestling with an issue and hope you can > help. > > I have an XP computer running MapServer 3.6.6 and > Apache 2. Truetype > fonts work fine. I have another XP computer running > 4.0.2 and Apache 2. > Truetype fonts do not work. > > Here is the scenario: > If I use the default, my labels come out fine. > However if I use "TYPE TRUETYPE" I get the following > error. > msGetLabelSize(): TrueType Font error. Could not > find/open font > > In my map file I have tried all different ways to > access the > fontset.list file. I know that it is finding the > file because if I mess > with the file in any way, it gives me a different > error > msLoadFontset(): Unable to access file. Error > opening fontset > font/fonts.list. > > I have exhaustively searched the archive and tried > every suggestion but > I cannot come up with a solution. > > Thanks > Blaine > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail is new and improved - Check it out! > http://promotions.yahoo.com/new_mail > __________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail From jesko at GEOCONTENT.DE Thu Aug 12 22:32:43 2004 From: jesko at GEOCONTENT.DE (Dirk Jesko) Date: Fri, 13 Aug 2004 07:32:43 +0200 Subject: TrueType Font Error In-Reply-To: <20040812232253.64811.qmail@web41115.mail.yahoo.com> Message-ID: Blaine, Make sure the path to your font files does not have any blanks. I had the same problem. Finally I moved the font directory including the fontset.list from "C:\Programme\Apache Group\htdocs\..." to "C:\fonts" and specified the full path to the fontset.list within the mapfile. This works perfectly, even with relative paths in fontset.list. On a different machine I installed Apache in "C:\Programme\ApacheGroup\..." (without the blank). I that case it works even if the fontfiles reside somewhere under that path. Regards, Dirk Blaine Hackett wrote: >All > >I have been wrestling with an issue and hope you can >help. > >I have an XP computer running MapServer 3.6.6 and >Apache 2. Truetype fonts work fine. I have another >XP computer running 4.0.2 and Apache 2. Truetype >fonts do not work. > >Here is the scenario: >If I use the default, my labels come out fine. >However if I use "TYPE TRUETYPE" I get the following >error. >msGetLabelSize(): TrueType Font error. Could not >find/open font > >In my map file I have tried all different ways to >access the fontset.list file. I know that it is >finding the file because if I mess with the file in >any way, it gives me a different error >msLoadFontset(): Unable to access file. Error opening >fontset font/fonts.list. > >I have exhaustively searched the archive and tried >every suggestion but I cannot come up with a solution. > >Thanks >Blaine > > > > >__________________________________ >Do you Yahoo!? >Yahoo! Mail is new and improved - Check it out! >http://promotions.yahoo.com/new_mail > > > -- --[ Dipl-Inf. Dirk Jesko ]---------- GeoContent GmbH www.geocontent.de --[ mailto:jesko at geocontent.de ]---- From tylermitchell at SHAW.CA Thu Aug 12 22:51:43 2004 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Thu, 12 Aug 2004 22:51:43 -0700 Subject: Start with any lat/long and end with a map In-Reply-To: <20040812175644.70294.qmail@web11803.mail.yahoo.com> Message-ID: On August 12, 2004 10:56 am, Jacob Blankenship wrote: > All, How would I go about resolving a lat/long (for > any point in N. America or the world) to display a map > using MapServer 4.2? Geocoding? Is there a WMS that > can help with this? If necessary I can host the GIS > data and a DBMS. I'm not exactly sure what you're after. Do you have a list of this points that you can make available? If so, I could add them to my global map and you could see them. It uses various global base maps/images. http://spatialguru.com/maps/apps/global Tyler From asteele at BERKELEY.EDU Fri Aug 13 00:22:17 2004 From: asteele at BERKELEY.EDU (Aaron Steele) Date: Fri, 13 Aug 2004 00:22:17 -0700 Subject: mapserver 4.2.2 compile problem on redhat as3 Message-ID: dear readers, i'm running redhat enterprise as3 and cannot compile mapserver 4.2.2: > ./configure --with-wfs --with-wmsclient --with-wfsclient --with-proj=/usr/local/proj-4.4.8 --with-gdal=/usr/local/gdal-1.2.1/apps/gdal-config --with-postgis=/usr/local/postgresql-7.4.3/contrib/postgis-0.8.2 --with-ogr=/usr/local/gdal-1.2.1/apps/gdal-config > make gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/usr/local/include -I/usr/local/proj-4.4.8/src -I/usr/local/gdal-1.2.1/port -I/usr/local/gdal-1.2.1/gcore -I/usr/local/gdal-1.2.1/alg -I/usr/local/gdal-1.2.1/ogr -I/usr/local/gdal-1.2.1/ogr/ogrsf_frmts -I maptemplate.c -o maptemplate.o gcc: no input files make: *** [maptemplate.o] Error 1 any initial thoughts? thanks, aaron ps - here's the config.log: This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by configure, which was generated by GNU Autoconf 2.57. Invocation command line was $ ./configure --with-wfs --with-wmsclient --with-wfsclient --with-proj=/usr/local/proj-4.4.8 --with-gdal=/usr/local/gdal-1.2.1/apps/gdal-config --with-postgis=/usr/local/postgresql-7.4.3/contrib/postgis-0.8.2 --with-ogr=/usr/local/gdal-1.2.1/apps/gdal-config ## --------- ## ## Platform. ## ## --------- ## hostname = wur-401-004 uname -m = i686 uname -r = 2.4.21-15.0.4.ELsmp uname -s = Linux uname -v = #1 SMP Sat Jul 31 01:25:25 EDT 2004 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = i686 /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /usr/kerberos/sbin PATH: /usr/kerberos/bin PATH: /bin PATH: /sbin PATH: /usr/bin PATH: /usr/sbin PATH: /usr/local/bin PATH: /usr/local/sbin PATH: /usr/bin/X11 PATH: /usr/X11R6/bin PATH: /usr/java/j2sdk1.4.2_04/bin PATH: /usr/local/ant1.6.2/bin PATH: /usr/local/pgsql/bin PATH: /root/bin ## ----------- ## ## Core tests. ## ## ----------- ## configure:1349: checking for gcc configure:1365: found /usr/bin/gcc configure:1375: result: gcc configure:1619: checking for C compiler version configure:1622: gcc --version &5 gcc (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-39) Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:1625: $? = 0 configure:1627: gcc -v &5 Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux Thread model: posix gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-39) configure:1630: $? = 0 configure:1632: gcc -V &5 gcc: argument to `-V' is missing configure:1635: $? = 1 configure:1659: checking for C compiler default output configure:1662: gcc conftest.c >&5 configure:1665: $? = 0 configure:1711: result: a.out configure:1716: checking whether the C compiler works configure:1722: ./a.out configure:1725: $? = 0 configure:1742: result: yes configure:1749: checking whether we are cross compiling configure:1751: result: no configure:1754: checking for suffix of executables configure:1756: gcc -o conftest conftest.c >&5 configure:1759: $? = 0 configure:1784: result: configure:1790: checking for suffix of object files configure:1812: gcc -c conftest.c >&5 configure:1815: $? = 0 configure:1837: result: o configure:1841: checking whether we are using the GNU C compiler configure:1866: gcc -c conftest.c >&5 configure:1869: $? = 0 configure:1872: test -s conftest.o configure:1875: $? = 0 configure:1888: result: yes configure:1894: checking whether gcc accepts -g configure:1916: gcc -c -g conftest.c >&5 configure:1919: $? = 0 configure:1922: test -s conftest.o configure:1925: $? = 0 configure:1936: result: yes configure:1953: checking for gcc option to accept ANSI C configure:2014: gcc -c -g -O2 conftest.c >&5 configure:2017: $? = 0 configure:2020: test -s conftest.o configure:2023: $? = 0 configure:2041: result: none needed configure:2059: gcc -c -g -O2 conftest.c >&5 conftest.c:2: syntax error before "me" configure:2062: $? = 1 configure: failed program was: | #ifndef __cplusplus | choke me | #endif configure:2223: checking for g++ configure:2239: found /usr/bin/g++ configure:2249: result: g++ configure:2265: checking for C++ compiler version configure:2268: g++ --version &5 g++ (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-39) Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:2271: $? = 0 configure:2273: g++ -v &5 Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux Thread model: posix gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-39) configure:2276: $? = 0 configure:2278: g++ -V &5 g++: argument to `-V' missing configure:2281: $? = 1 configure:2284: checking whether we are using the GNU C++ compiler configure:2309: g++ -c conftest.cc >&5 configure:2312: $? = 0 configure:2315: test -s conftest.o configure:2318: $? = 0 configure:2331: result: yes configure:2337: checking whether g++ accepts -g configure:2359: g++ -c -g conftest.cc >&5 configure:2362: $? = 0 configure:2365: test -s conftest.o configure:2368: $? = 0 configure:2379: result: yes configure:2423: g++ -c -g -O2 conftest.cc >&5 configure:2426: $? = 0 configure:2429: test -s conftest.o configure:2432: $? = 0 configure:2459: g++ -c -g -O2 conftest.cc >&5 configure: In function `int main()': configure:2454: `exit' undeclared (first use this function) configure:2454: (Each undeclared identifier is reported only once for each function it appears in.) configure:2462: $? = 1 configure: failed program was: | #line 2442 "configure" | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | /* end confdefs.h. */ | | int | main () | { | exit (42); | ; | return 0; | } configure:2423: g++ -c -g -O2 conftest.cc >&5 configure:2426: $? = 0 configure:2429: test -s conftest.o configure:2432: $? = 0 configure:2459: g++ -c -g -O2 conftest.cc >&5 configure:2462: $? = 0 configure:2465: test -s conftest.o configure:2468: $? = 0 configure:2532: checking for ranlib configure:2548: found /usr/bin/ranlib configure:2559: result: ranlib configure:2576: checking for flex configure:2592: found /usr/bin/flex configure:2602: result: flex configure:2615: checking for yywrap in -lfl configure:2646: gcc -o conftest -g -O2 conftest.c -lfl >&5 configure:2649: $? = 0 configure:2652: test -s conftest configure:2655: $? = 0 configure:2667: result: yes configure:2735: checking lex output file root configure:2746: flex conftest.l configure:2749: $? = 0 configure:2761: result: lex.yy configure:2766: checking whether yytext is a pointer configure:2782: gcc -o conftest -g -O2 conftest.c -lfl >&5 configure:2785: $? = 0 configure:2788: test -s conftest configure:2791: $? = 0 configure:2804: result: yes configure:2819: checking for bison configure:2835: found /usr/bin/bison configure:2845: result: bison -y configure:2857: checking if compiler supports -R configure:2882: gcc -o conftest -g -O2 conftest.c -R /usr/lib >&5 gcc: unrecognized option `-R' /usr/lib: file not recognized: Is a directory collect2: ld returned 1 exit status configure:2885: $? = 1 configure: failed program was: | #line 2865 "configure" | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #ifdef __cplusplus | #include | #endif | #define YYTEXT_POINTER 1 | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:2904: result: no configure:2911: checking if compiler supports -Wl,-rpath, configure:2936: gcc -o conftest -g -O2 conftest.c -Wl,-rpath,/usr/lib >&5 configure:2939: $? = 0 configure:2942: test -s conftest configure:2945: $? = 0 configure:2958: result: yes configure:3027: checking for exp in -lm configure:3058: gcc -o conftest -g -O2 conftest.c -lm >&5 configure:3061: $? = 0 configure:3064: test -s conftest configure:3067: $? = 0 configure:3079: result: yes configure:3088: checking for __gxx_personality_v0 in -lstdc++ configure:3119: gcc -o conftest -g -O2 conftest.c -lstdc++ >&5 configure:3122: $? = 0 configure:3125: test -s conftest configure:3128: $? = 0 configure:3140: result: yes configure:3156: checking how to run the C preprocessor configure:3192: gcc -E conftest.c configure:3198: $? = 0 configure:3230: gcc -E conftest.c configure:3233:28: ac_nonexistent.h: No such file or directory configure:3236: $? = 1 configure: failed program was: | #line 3221 "configure" | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #ifdef __cplusplus | #include | #endif | #define YYTEXT_POINTER 1 | /* end confdefs.h. */ | #include configure:3274: result: gcc -E configure:3299: gcc -E conftest.c configure:3305: $? = 0 configure:3337: gcc -E conftest.c configure:3340:28: ac_nonexistent.h: No such file or directory configure:3343: $? = 1 configure: failed program was: | #line 3328 "configure" | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #ifdef __cplusplus | #include | #endif | #define YYTEXT_POINTER 1 | /* end confdefs.h. */ | #include configure:3386: checking for egrep configure:3396: result: grep -E configure:3401: checking for ANSI C header files configure:3427: gcc -c -g -O2 conftest.c >&5 configure:3430: $? = 0 configure:3433: test -s conftest.o configure:3436: $? = 0 configure:3525: gcc -o conftest -g -O2 conftest.c -lm -lstdc++ >&5 configure:3528: $? = 0 configure:3530: ./conftest configure:3533: $? = 0 configure:3548: result: yes configure:3559: checking for strcasecmp configure:3609: gcc -o conftest -g -O2 conftest.c -lm -lstdc++ >&5 configure:3612: $? = 0 configure:3615: test -s conftest configure:3618: $? = 0 configure:3629: result: yes configure:3637: checking for strncasecmp configure:3687: gcc -o conftest -g -O2 conftest.c -lm -lstdc++ >&5 configure:3690: $? = 0 configure:3693: test -s conftest configure:3696: $? = 0 configure:3707: result: yes configure:3715: checking for strdup configure:3765: gcc -o conftest -g -O2 conftest.c -lm -lstdc++ >&5 configure:3768: $? = 0 configure:3771: test -s conftest configure:3774: $? = 0 configure:3785: result: yes configure:3793: checking for strlcat configure:3843: gcc -o conftest -g -O2 conftest.c -lm -lstdc++ >&5 /tmp/ccMx6seh.o(.text+0x11): In function `main': /usr/local/mapserver4.2.2/configure:3843: undefined reference to `strlcat' /tmp/ccMx6seh.o(.data+0x0):/usr/local/mapserver4.2.2/configure:3842: undefined reference to `strlcat' collect2: ld returned 1 exit status configure:3846: $? = 1 configure: failed program was: | #line 3798 "configure" | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #ifdef __cplusplus | #include | #endif | #define YYTEXT_POINTER 1 | #define STDC_HEADERS 1 | /* end confdefs.h. */ | /* System header to define __stub macros and hopefully few prototypes, | which can conflict with char strlcat (); below. | Prefer to if __STDC__ is defined, since | exists even on freestanding compilers. */ | #ifdef __STDC__ | # include | #else | # include | #endif | /* Override any gcc2 internal prototype to avoid an error. */ | #ifdef __cplusplus | extern "C" | { | #endif | /* We use char because int might match the return type of a gcc2 | builtin and then its argument prototype would still apply. */ | char strlcat (); | /* The GNU C library defines this for functions which it implements | to always fail with ENOSYS. Some functions are actually named | something starting with __ and the normal name is an alias. */ | #if defined (__stub_strlcat) || defined (__stub___strlcat) | choke me | #else | char (*f) () = strlcat; | #endif | #ifdef __cplusplus | } | #endif | | int | main () | { | return f != strlcat; | ; | return 0; | } configure:3863: result: no configure:3895: checking where FreeType 2.x is installed...... configure:4013: checking for FT_Init_FreeType in -lfreetype configure:4044: gcc -o conftest -g -O2 conftest.c -lfreetype -lm -lstdc++ >&5 configure:4047: $? = 0 configure:4050: test -s conftest configure:4053: $? = 0 configure:4065: result: yes configure:4073: result: using libfreetype -lfreetype from system libs. configure:4101: checking where Zlib is installed...... configure:4140: checking for zlibVersion in -lz configure:4171: gcc -o conftest -g -O2 conftest.c -lz -lm -lstdc++ >&5 configure:4174: $? = 0 configure:4177: test -s conftest configure:4180: $? = 0 configure:4192: result: yes configure:4200: result: using libz from system libs. configure:4229: checking where PNG is installed...... configure:4268: checking for png_init_io in -lpng configure:4299: gcc -o conftest -g -O2 conftest.c -lpng -lz -lm -lstdc++ >&5 configure:4302: $? = 0 configure:4305: test -s conftest configure:4308: $? = 0 configure:4320: result: yes configure:4328: result: using libpng from system libs. configure:4340: checking whether we should include JPEG support...... configure:4488: checking for jpeg_read_header in -ljpeg configure:4519: gcc -o conftest -g -O2 conftest.c -ljpeg -lm -lstdc++ >&5 /usr/bin/ld: cannot find -ljpeg collect2: ld returned 1 exit status configure:4522: $? = 1 configure: failed program was: | #line 4495 "configure" | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #ifdef __cplusplus | #include | #endif | #define YYTEXT_POINTER 1 | #define STDC_HEADERS 1 | /* end confdefs.h. */ | | /* Override any gcc2 internal prototype to avoid an error. */ | #ifdef __cplusplus | extern "C" | #endif | /* We use char because int might match the return type of a gcc2 | builtin and then its argument prototype would still apply. */ | char jpeg_read_header (); | int | main () | { | jpeg_read_header (); | ; | return 0; | } configure:4540: result: no configure:4552: result: libjpeg not found. JPEG support not included, possibly needed for GD. configure:4586: checking where libXpm is installed...... configure:4625: checking for XpmFreeXpmImage in -lXpm configure:4656: gcc -o conftest -g -O2 conftest.c -lXpm -lX11 -lm -lstdc++ >&5 /usr/bin/ld: cannot find -lXpm collect2: ld returned 1 exit status configure:4659: $? = 1 configure: failed program was: | #line 4632 "configure" | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #ifdef __cplusplus | #include | #endif | #define YYTEXT_POINTER 1 | #define STDC_HEADERS 1 | /* end confdefs.h. */ | | /* Override any gcc2 internal prototype to avoid an error. */ | #ifdef __cplusplus | extern "C" | #endif | /* We use char because int might match the return type of a gcc2 | builtin and then its argument prototype would still apply. */ | char XpmFreeXpmImage (); | int | main () | { | XpmFreeXpmImage (); | ; | return 0; | } configure:4677: result: no configure:4688: result: XPM (libXpm) library cannot be found, possibly needed for GD configure:4716: checking where libiconv is installed...... configure:4755: checking for libiconv_open in -liconv configure:4786: gcc -o conftest -g -O2 conftest.c -liconv -lm -lstdc++ >&5 /usr/bin/ld: cannot find -liconv collect2: ld returned 1 exit status configure:4789: $? = 1 configure: failed program was: | #line 4762 "configure" | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #ifdef __cplusplus | #include | #endif | #define YYTEXT_POINTER 1 | #define STDC_HEADERS 1 | /* end confdefs.h. */ | | /* Override any gcc2 internal prototype to avoid an error. */ | #ifdef __cplusplus | extern "C" | #endif | /* We use char because int might match the return type of a gcc2 | builtin and then its argument prototype would still apply. */ | char libiconv_open (); | int | main () | { | libiconv_open (); | ; | return 0; | } configure:4807: result: no configure:4818: result: libiconv library cannot be found, possibly needed for GD configure:4854: checking for GD 2.0.12 or higher...... configure:5067: checking for gdImageSetAntiAliased in -lgd configure:5098: gcc -o conftest -g -O2 conftest.c -lgd -lfreetype -lpng -lz -lm -lstdc++ >&5 configure:5101: $? = 0 configure:5104: test -s conftest configure:5107: $? = 0 configure:5119: result: yes configure:5067: checking for gdImageSetAntiAliased in -lgd configure:5119: result: yes configure:5195: result: using libgd 2.0.12 (or higher) from system libs (-L/usr/local/lib -lgd -lfreetype -lpng -lz ). configure:5610: checking for gdImageCreate in -lgd configure:5641: gcc -o conftest -g -O2 conftest.c -lgd -lfreetype -lpng -lz -lm -lstdc++ >&5 configure:5644: $? = 0 configure:5647: test -s conftest configure:5650: $? = 0 configure:5662: result: yes configure:5674: checking for gdImageGif in -lgd configure:5705: gcc -o conftest -g -O2 conftest.c -lgd -L/usr/local/lib -lgd -lfreetype -lpng -lz -lm -lstdc++ >&5 configure:5708: $? = 0 configure:5711: test -s conftest configure:5714: $? = 0 configure:5726: result: yes configure:5732: checking for gdImagePng in -lgd configure:5763: gcc -o conftest -g -O2 conftest.c -lgd -L/usr/local/lib -lgd -lfreetype -lpng -lz -lm -lstdc++ >&5 configure:5766: $? = 0 configure:5769: test -s conftest configure:5772: $? = 0 configure:5784: result: yes configure:5790: checking for gdImageJpeg in -lgd configure:5821: gcc -o conftest -g -O2 conftest.c -lgd -L/usr/local/lib -lgd -lfreetype -lpng -lz -lm -lstdc++ >&5 /tmp/ccm2xPK9.o(.text+0xa): In function `main': /usr/local/mapserver4.2.2/configure:5821: undefined reference to `gdImageJpeg' collect2: ld returned 1 exit status configure:5824: $? = 1 configure: failed program was: | #line 5797 "configure" | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #ifdef __cplusplus | #include | #endif | #define YYTEXT_POINTER 1 | #define STDC_HEADERS 1 | /* end confdefs.h. */ | | /* Override any gcc2 internal prototype to avoid an error. */ | #ifdef __cplusplus | extern "C" | #endif | /* We use char because int might match the return type of a gcc2 | builtin and then its argument prototype would still apply. */ | char gdImageJpeg (); | int | main () | { | gdImageJpeg (); | ; | return 0; | } configure:5842: result: no configure:5848: checking for gdImageWBMP in -lgd configure:5879: gcc -o conftest -g -O2 conftest.c -lgd -L/usr/local/lib -lgd -lfreetype -lpng -lz -lm -lstdc++ >&5 configure:5882: $? = 0 configure:5885: test -s conftest configure:5888: $? = 0 configure:5900: result: yes configure:5907: checking for gdImageStringFT in -lgd configure:5938: gcc -o conftest -g -O2 conftest.c -lgd -L/usr/local/lib -lgd -lfreetype -lpng -lz -lm -lstdc++ >&5 configure:5941: $? = 0 configure:5944: test -s conftest configure:5947: $? = 0 configure:5959: result: yes configure:5966: checking for gdImageGifPtr in -lgd configure:5997: gcc -o conftest -g -O2 conftest.c -lgd -L/usr/local/lib -lgd -lfreetype -lpng -lz -lm -lstdc++ >&5 configure:6000: $? = 0 configure:6003: test -s conftest configure:6006: $? = 0 configure:6018: result: yes configure:6027: result: using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR) from system libs. configure:6064: checking whether we should include PDF support...... configure:6137: checking for PDF_setlinewidth in -lpdf configure:6168: gcc -o conftest -g -O2 conftest.c -lpdf -lm -lstdc++ >&5 /usr/bin/ld: cannot find -lpdf collect2: ld returned 1 exit status configure:6171: $? = 1 configure: failed program was: | #line 6144 "configure" | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #ifdef __cplusplus | #include | #endif | #define YYTEXT_POINTER 1 | #define STDC_HEADERS 1 | /* end confdefs.h. */ | | /* Override any gcc2 internal prototype to avoid an error. */ | #ifdef __cplusplus | extern "C" | #endif | /* We use char because int might match the return type of a gcc2 | builtin and then its argument prototype would still apply. */ | char PDF_setlinewidth (); | int | main () | { | PDF_setlinewidth (); | ; | return 0; | } configure:6189: result: no configure:6195: checking for PDF_setrgbcolor in -lpdf configure:6226: gcc -o conftest -g -O2 conftest.c -lpdf -lm -lstdc++ >&5 /usr/bin/ld: cannot find -lpdf collect2: ld returned 1 exit status configure:6229: $? = 1 configure: failed program was: | #line 6202 "configure" | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #ifdef __cplusplus | #include | #endif | #define YYTEXT_POINTER 1 | #define STDC_HEADERS 1 | /* end confdefs.h. */ | | /* Override any gcc2 internal prototype to avoid an error. */ | #ifdef __cplusplus | extern "C" | #endif | /* We use char because int might match the return type of a gcc2 | builtin and then its argument prototype would still apply. */ | char PDF_setrgbcolor (); | int | main () | { | PDF_setrgbcolor (); | ; | return 0; | } configure:6247: result: no configure:6253: checking for PDF_moveto in -lpdf configure:6284: gcc -o conftest -g -O2 conftest.c -lpdf -lm -lstdc++ >&5 /usr/bin/ld: cannot find -lpdf collect2: ld returned 1 exit status configure:6287: $? = 1 configure: failed program was: | #line 6260 "configure" | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #ifdef __cplusplus | #include | #endif | #define YYTEXT_POINTER 1 | #define STDC_HEADERS 1 | /* end confdefs.h. */ | | /* Override any gcc2 internal prototype to avoid an error. */ | #ifdef __cplusplus | extern "C" | #endif | /* We use char because int might match the return type of a gcc2 | builtin and then its argument prototype would still apply. */ | char PDF_moveto (); | int | main () | { | PDF_moveto (); | ; | return 0; | } configure:6305: result: no configure:6311: checking for PDF_curveto in -lpdf configure:6342: gcc -o conftest -g -O2 conftest.c -lpdf -lm -lstdc++ >&5 /usr/bin/ld: cannot find -lpdf collect2: ld returned 1 exit status configure:6345: $? = 1 configure: failed program was: | #line 6318 "configure" | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #ifdef __cplusplus | #include | #endif | #define YYTEXT_POINTER 1 | #define STDC_HEADERS 1 | /* end confdefs.h. */ | | /* Override any gcc2 internal prototype to avoid an error. */ | #ifdef __cplusplus | extern "C" | #endif | /* We use char because int might match the return type of a gcc2 | builtin and then its argument prototype would still apply. */ | char PDF_curveto (); | int | main () | { | PDF_curveto (); | ; | return 0; | } configure:6363: result: no configure:6369: checking for PDF_show_xy in -lpdf configure:6400: gcc -o conftest -g -O2 conftest.c -lpdf -lm -lstdc++ >&5 /usr/bin/ld: cannot find -lpdf collect2: ld returned 1 exit status configure:6403: $? = 1 configure: failed program was: | #line 6376 "configure" | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #ifdef __cplusplus | #include | #endif | #define YYTEXT_POINTER 1 | #define STDC_HEADERS 1 | /* end confdefs.h. */ | | /* Override any gcc2 internal prototype to avoid an error. */ | #ifdef __cplusplus | extern "C" | #endif | /* We use char because int might match the return type of a gcc2 | builtin and then its argument prototype would still apply. */ | char PDF_show_xy (); | int | main () | { | PDF_show_xy (); | ; | return 0; | } configure:6421: result: no configure:6432: result: libpdf not found... PDF support not included. configure:6454: checking whether we should include EPPL7 support...... configure:6470: result: including EPPL7 support. configure:6487: checking whether we should include PROJ.4 support...... configure:6745: checking for pj_transform in -lproj configure:6776: gcc -o conftest -g -O2 conftest.c -lproj -L/usr/local/proj-4.4.8/src/.libs -lproj -lm -lstdc++ >&5 configure:6779: $? = 0 configure:6782: test -s conftest configure:6785: $? = 0 configure:6797: result: yes configure:6805: checking for pj_latlong_from_proj in -lproj configure:6836: gcc -o conftest -g -O2 conftest.c -lproj -L/usr/local/proj-4.4.8/src/.libs -lproj -lm -lstdc++ >&5 configure:6839: $? = 0 configure:6842: test -s conftest configure:6845: $? = 0 configure:6857: result: yes configure:6872: result: using PROJ.4 from /usr/local/proj-4.4.8. configure:6900: checking whether we should include thread safe support...... configure:6989: result: thread safe support disabled. configure:7002: checking whether we should include ESRI SDE support...... configure:7462: result: ESRI SDE support not requested. configure:7478: checking whether we should compile in MPATROL support...... configure:7611: result: MPATROL support not requested. configure:7627: checking whether we should include OGR support...... configure:7694: result: OGR enabled (-DUSE_OGR). configure:7708: checking if GDAL support requested configure:7783: result: yes, user supplied gdal-config (/usr/local/gdal-1.2.1/apps/gdal-config) configure:7841: checking whether we should include TIFF support...... configure:7850: result: disabled since gdal is in use configure:8002: checking if PostGIS support requested configure:8068: result: yes, user supplied pg_config configure:8087: checking if MyGIS support requested configure:8098: result: no configure:8175: checking if OracleSpatial support requested configure:8185: result: no configure:8227: checking if MING/Flash support requested configure:8237: result: no configure:8268: checking whether we should include WMS Server support...... configure:8290: result: OGC WMS compatibility enabled (-DUSE_WMS_SVR). configure:8302: checking whether we should include WFS Server support...... configure:8331: result: OGC WFS Server support enabled (-DUSE_WFS_SVR). configure:8343: checking whether we should include WMS Client Connections support...... configure:8369: checking whether we should include WFS Client Connections support...... configure:8395: checking for curl-config... configure:8413: checking for curl-config configure:8431: found /usr/bin/curl-config configure:8444: result: /usr/bin/curl-config configure:8462: result: found libcurl version 7.10.6 configure:8473: result: OGC WMS Client Connections enabled (-DUSE_WMS_LYR). configure:8479: result: OGC WFS Client Connections enabled (-DUSE_WFS_LYR). configure:8503: checking HTTPD server (Apache) version... configure:8539: checking for httpd configure:8558: found /usr/sbin/httpd configure:8571: result: /usr/sbin/httpd configure:8587: result: /usr/sbin/httpd version is Apache/2.0.46 (2000046). configure:8635: result: Compiling with -DIGNORE_MISSING_DATA. configure:8643: checking whether we should enable debug features...... configure:8723: checking for PHP/MapScript module options...... configure:9040: result: PHP/MapScript module not configured. configure:9299: creating ./config.status ## ---------------------- ## ## Running config.status. ## ## ---------------------- ## This file was extended by config.status, which was generated by GNU Autoconf 2.57. Invocation command line was CONFIG_FILES = CONFIG_HEADERS = CONFIG_LINKS = CONFIG_COMMANDS = $ ./config.status on wur-401-004 config.status:691: creating Makefile ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_c_compiler_gnu=yes ac_cv_cxx_compiler_gnu=yes ac_cv_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set= ac_cv_env_CFLAGS_value= ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_CXXFLAGS_set= ac_cv_env_CXXFLAGS_value= ac_cv_env_CXX_set= ac_cv_env_CXX_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_exeext= ac_cv_func_strcasecmp=yes ac_cv_func_strdup=yes ac_cv_func_strlcat=no ac_cv_func_strncasecmp=yes ac_cv_header_stdc=yes ac_cv_lib_Xpm_XpmFreeXpmImage=no ac_cv_lib_fl_yywrap=yes ac_cv_lib_freetype_FT_Init_FreeType=yes ac_cv_lib_gd_gdImageCreate=yes ac_cv_lib_gd_gdImageGif=yes ac_cv_lib_gd_gdImageGifPtr=yes ac_cv_lib_gd_gdImageJpeg=no ac_cv_lib_gd_gdImagePng=yes ac_cv_lib_gd_gdImageSetAntiAliased=yes ac_cv_lib_gd_gdImageStringFT=yes ac_cv_lib_gd_gdImageWBMP=yes ac_cv_lib_iconv_libiconv_open=no ac_cv_lib_jpeg_jpeg_read_header=no ac_cv_lib_m_exp=yes ac_cv_lib_pdf_PDF_curveto=no ac_cv_lib_pdf_PDF_moveto=no ac_cv_lib_pdf_PDF_setlinewidth=no ac_cv_lib_pdf_PDF_setrgbcolor=no ac_cv_lib_pdf_PDF_show_xy=no ac_cv_lib_png_png_init_io=yes ac_cv_lib_proj_pj_latlong_from_proj=yes ac_cv_lib_proj_pj_transform=yes ac_cv_lib_stdcpp___gxx_personality_v0=yes ac_cv_lib_z_zlibVersion=yes ac_cv_objext=o ac_cv_path_HTTPD=/usr/sbin/httpd ac_cv_path_LIBCURL_CONFIG=/usr/bin/curl-config ac_cv_prog_CPP='gcc -E' ac_cv_prog_LEX=flex ac_cv_prog_YACC='bison -y' ac_cv_prog_ac_ct_CC=gcc ac_cv_prog_ac_ct_CXX=g++ ac_cv_prog_ac_ct_RANLIB=ranlib ac_cv_prog_cc_g=yes ac_cv_prog_cc_stdc= ac_cv_prog_cxx_g=yes ac_cv_prog_egrep='grep -E' ac_cv_prog_lex_root=lex.yy ac_cv_prog_lex_yytext_pointer=yes php_cv_cc_dashr=no php_cv_cc_rpath=yes ## ----------------- ## ## Output variables. ## ## ----------------- ## ALL_ENABLED=' -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_WFS_SVR -DUSE_WMS_SVR -DUSE_POSTGIS -DUSE_GDAL -DUSE_OGR -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_EPPL -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR ' ALL_INC=' -I -I/usr/local/gdal-1.2.1/port -I/usr/local/gdal-1.2.1/gcore -I/usr/local/gdal-1.2.1/alg -I/usr/local/gdal-1.2.1/ogr -I/usr/local/gdal-1.2.1/ogr/ogrsf_frmts -I/usr/local/proj-4.4.8/src -I/usr/local/include ' ALL_LIB='-lcurl -L/usr/kerberos/lib -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -L/usr/kerberos/lib -lz -lssl -lcrypto -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lz -L -lpq -lfreetype -lpng -lz /usr/local/gdal-1.2.1/libgdal.la -L/usr/local/proj-4.4.8/src/.libs -lproj -lgd -L/usr/local/lib -lgd -lfreetype -lpng -lz ' ALL_STATIC_LIB=' ' APACHE_INC='' CC='gcc' CFLAGS='-O2 -Wall' CPP='gcc -E' CPPFLAGS='' CURL_INC='' CURL_LIB='-lcurl -L/usr/kerberos/lib -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -L/usr/kerberos/lib -lz -lssl -lcrypto -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lz' CXX='g++' CXXFLAGS='-O2 -Wall' CXX_WFLAGS='-Wall' C_PIC='' C_WFLAGS='-Wall' DEBUG_FLAGS='' DEFS='-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DYYTEXT_POINTER=1 -DSTDC_HEADERS=1 -DUSE_GNUCC=1 -DUSE_GNUCC=1 ' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='grep -E' EPPL_ENABLED='-DUSE_EPPL' EPPL_OBJ='epplib.o' EXEEXT='' FT_BIN='' GDAL_CONFIG='/usr/local/gdal-1.2.1/apps/gdal-config' GDAL_ENABLED='-DUSE_GDAL' GDAL_INC='-I/usr/local/gdal-1.2.1/port -I/usr/local/gdal-1.2.1/gcore -I/usr/local/gdal-1.2.1/alg -I/usr/local/gdal-1.2.1/ogr -I/usr/local/gdal-1.2.1/ogr/ogrsf_frmts' GDAL_LIB='/usr/local/gdal-1.2.1/libgdal.la' GD_DEF=' -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR' GD_INC='-I/usr/local/include' GD_LIB='-lgd -L/usr/local/lib -lgd -lfreetype -lpng -lz ' GD_STATIC='' HTTPD='/usr/sbin/httpd' IGNORE_MISSING_DATA='-DIGNORE_MISSING_DATA' JPEG_ENABLED='' JPEG_INC='' JPEG_LIB='' LDFLAGS='' LD_SHARED='' LEX='flex' LEXLIB='-lfl' LEX_OUTPUT_ROOT='lex.yy' LIBCURL_CONFIG='/usr/bin/curl-config' LIBOBJS='' LIBS=' -lm -lstdc++ ' LTLIBOBJS='' MAKE_GD='' MAKE_GD_CLEAN='' MAKE_PHPMS='' MAKE_PHPMS_CLEAN='' MING_ENABLED='' MING_INC='' MING_LIB='' MPATROL_ENABLED='' MPATROL_INC='' MPATROL_LIB='' MS_INC='-I/usr/local/mapserver4.2.2' MS_LIB='-L/usr/local/mapserver4.2.2 -lmap' MYGIS_ENABLED='' MYGIS_INC='' MYGIS_LIB='' MY_CONFIG='no' OBJEXT='o' OGR_ENABLED='-DUSE_OGR' ORACLESPATIAL_ENABLED='' ORACLESPATIAL_INC='' ORACLESPATIAL_LIB='' PACKAGE_BUGREPORT='' PACKAGE_NAME='' PACKAGE_STRING='' PACKAGE_TARNAME='' PACKAGE_VERSION='' PATH_SEPARATOR=':' PDF_ENABLED='' PDF_INC='' PDF_LIB='' PDF_OBJ='' PG_CONFIG='/usr/local/postgresql-7.4.3/contrib/postgis-0.8.2' PHP_CC='' PHP_LD='' PHP_REGEX_INC='' PHP_REGEX_OBJ='' PHP_SRC_DIR='' PHP_VERSION_FLAG='' POSTGIS_ENABLED='-DUSE_POSTGIS' POSTGIS_INC='-I' POSTGIS_LIB='-L -lpq' PROJ_ENABLED='-DUSE_PROJ -DUSE_PROJ_API_H' PROJ_INC='-I/usr/local/proj-4.4.8/src' PROJ_LIB='-L/usr/local/proj-4.4.8/src/.libs -lproj' RANLIB='ranlib' RPATHS='' SDE_ENABLED='' SDE_INC='' SDE_LIB='' SHELL='/bin/sh' SO_EXT='' STRINGS='-DNEED_STRLCAT ' THREAD_FLAG='' THREAD_LIB='' TIFF_ENABLED='' TIFF_INC='' TIFF_LIB=' -lfreetype -lpng -lz ' WFS_LYR_ENABLED='-DUSE_WFS_LYR' WFS_SVR_ENABLED='-DUSE_WFS_SVR' WMS_LYR_ENABLED='-DUSE_WMS_LYR' WMS_SVR_ENABLED='-DUSE_WMS_SVR' XTRALIBS=' -lm -lstdc++' YACC='bison -y' ac_ct_CC='gcc' ac_ct_CXX='g++' ac_ct_RANLIB='ranlib' bindir='${exec_prefix}/bin' build_alias='' datadir='${prefix}/share' exec_prefix='${prefix}' host_alias='' includedir='${prefix}/include' infodir='${prefix}/info' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localstatedir='${prefix}/var' mandir='${prefix}/man' oldincludedir='/usr/include' prefix='/usr/local' program_transform_name='s,x,x,' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' target_alias='' ## ----------- ## ## confdefs.h. ## ## ----------- ## #define PACKAGE_BUGREPORT "" #define PACKAGE_NAME "" #define PACKAGE_STRING "" #define PACKAGE_TARNAME "" #define PACKAGE_VERSION "" #define STDC_HEADERS 1 #define USE_GNUCC 1 #define USE_GNUCC 1 #define YYTEXT_POINTER 1 #endif #ifdef __cplusplus #include configure: exit 0 From akrherz at IASTATE.EDU Fri Aug 13 00:41:16 2004 From: akrherz at IASTATE.EDU (Daryl Herzmann) Date: Fri, 13 Aug 2004 02:41:16 -0500 Subject: mapserver 4.2.2 compile problem on redhat as3 In-Reply-To: <81D10F5F-ECF9-11D8-A857-000A95C0C442@berkeley.edu> Message-ID: Hi Aaron, On Fri, 13 Aug 2004, Aaron Steele wrote: >dear readers, > >i'm running redhat enterprise as3 and cannot compile mapserver 4.2.2: > > > ./configure >--with-wfs >--with-wmsclient >--with-wfsclient >--with-proj=/usr/local/proj-4.4.8 >--with-gdal=/usr/local/gdal-1.2.1/apps/gdal-config >--with-postgis=/usr/local/postgresql-7.4.3/contrib/postgis-0.8.2 >--with-ogr=/usr/local/gdal-1.2.1/apps/gdal-config I am not sure that your --with-postgis is correct. I think it should point to the location of pg_config, for example --with-postgis=/usr/local/postgresql-7.4.3/bin/pg_config If pg_config is not found, you wind up with a blank include in the Makefile and hence this error gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/usr/local/include -I/usr/local/proj-4.4.8/src -I/usr/local/gdal-1.2.1/port -I/usr/local/gdal-1.2.1/gcore -I/usr/local/gdal-1.2.1/alg -I/usr/local/gdal-1.2.1/ogr -I/usr/local/gdal-1.2.1/ogr/ogrsf_frmts -I maptemplate.c -o maptemplate.o gcc: no input files make: *** [maptemplate.o] Error 1 Notice the blank after the last '-I' HTH, daryl From lolivieri at IMTEAM.IT Fri Aug 13 05:39:48 2004 From: lolivieri at IMTEAM.IT (leo) Date: Fri, 13 Aug 2004 14:39:48 +0200 Subject: legend Message-ID: hello list, i have the layer with many CLASS Is it possible to have the legend (gif) with name of the layer ("hello world") other than with name of the class this is the my mapfile: LAYER NAME "classi_iff" TYPE line DATA "classi_iff" METADATA "DESCRIPTION" "hello world" "RESULT_FIELDS" "ENTITY,LAYERS_TYPE,ELEVATION,THICKNESS,COLOR" "RESULT_HEADERS" "Entity,Layer_type,Elevation,Thickness,Color" END # Metadata CLASSITEM Layer_type CLASS NAME "Elevato" EXPRESSION "Elevato" COLOR 192 101 73 TEMPLATE void END # Class CLASS END # Layer thanks Leo -------------- next part -------------- An HTML attachment was scrubbed... URL: From Chris.Judd at DEP.STATE.FL.US Fri Aug 13 06:12:48 2004 From: Chris.Judd at DEP.STATE.FL.US (Judd, Chris) Date: Fri, 13 Aug 2004 09:12:48 -0400 Subject: Multiple geometry types in singlelayer Message-ID: Steve, Many thanks for your reply. -Chris -----Original Message----- From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Thursday, August 12, 2004 4:35 PM To: Judd, Chris; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Multiple geometry types in singlelayer MapServer relies on the layer TYPE to decide how to render a feature. The feature type (obtained from that datasource) is used for error checking. You can draw a polygon feature using a line layer and a line or polygon feature using a point layer. You can't draw a point as a polygon though. So, if the Oracle Spatial driver in MapServer allows access to multiple feature you probably can do some simple stuff, but you couldn't set up EXPRESSIONs to capitalize on the type of a feature. At this point you'd have to filter based on feature type at the connection level, that is, just deal with all the points in one layer and so on. Steve >>> "Judd, Chris" 8/12/2004 2:52:02 PM >>> MapServer folks, We are looking to use MapServer to serve Oracle Spatial data that has multiple geometry types (points, lines and polygons) in a single layer. Many databases support multiple geometry types in the same layer. This is a quote from the SDE wiki (http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MapServerSDE) "SDE techically allows for storage of multiple geometry types in the same layer..." I believe PostGIS has also added this feature. We were able to mine Google and find this post from Paul Ramsey dated 2001, stating at that time MapServer could only render one geometry type per layer. http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0110/msg00187.html My questions are: 1) Does the current version of MapServer support the rendering of more than one geometry type in a single layer? 2) Is there an example of this? Any example would be helpful. Thanks for your support. Chris Judd Florida DEP From PAGUREKD at AGR.GC.CA Fri Aug 13 06:15:50 2004 From: PAGUREKD at AGR.GC.CA (Pagurek, Debbie) Date: Fri, 13 Aug 2004 09:15:50 -0400 Subject: What's Wrong With This Picture? Message-ID: I have a feeling that you might have another problem, because your Projection is: PROJECTION "init=epsg:4326" END which is a Geographic Projection (latitude and longitude), but the EXTENT you've indicated looks like it's in meters or something other than Decimal Degrees. In addition to what Ed said, you probably need to find out what the projection your data is in. Then you need to find the corresponding epsg code. After you've done that, it is possible to reproject the data on the fly using other epsg codes. Debbie -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney Sent: Thursday, August 12, 2004 7:09 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] What's Wrong With This Picture? Barbara - It looks like you did pretty well! Your EXTENT line in the map file should be MINX MINY MAXX MAXY - you've got the two Y values reversed, which means you're asking for nothing (and getting it ). Try just swapping those two numbers. - 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 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Barbara Zack Sent: Thursday, August 12, 2004 5:29 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] What's Wrong With This Picture? My apologies for bothering the list with this, but I'm running out of time. I'm primarily a programmer with almost no GIS background. Being the only available entity, I was asked to get MapServer up and running as a WMS server. Obviously I have no business doing this, but here I am. I managed to get a Linux server (Debian sarge) up and running, GDAL compiled with mrsid support, MapServer compiled, and the demo working. The map file part is beyond my comprehension. The one I put together, only half of which I actually understands, produces an XML capabilities document with no warning messages. However, GetMap gives me a blank png as output. Below are the results of mapserv -v and gdalinfo in case that's important. Following that is my first attempt at a map file, for your amusement. I don't understand about half of what I have in there. Any pointers would be so greatly appreciated. Thanks! Barbara Z ./mapserv -v MapServer version 4.2.2 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE ======================================== gdalinfo /var/www/aviano/aviano.sid Driver: MrSID/Multi-resolution Seamless Image Database (MrSID) Size is 89286, 111281 Coordinate System is `' Origin = (311999.989722,5105471.083134) Pixel Size = (0.06720000,0.06720000) Metadata: IMAGE__COLOR_SCHEME=0 IMAGE__DATA_TYPE=0 IMAGE__INPUT_FILE_SIZE=0.000000 IMAGE__WIDTH=89286 IMAGE__HEIGHT=111281 IMAGE__XY_ORIGIN=312000.023322,5105471.116734 IMAGE__X_RESOLUTION=0.067200 IMAGE__Y_RESOLUTION=0.067200 Corner Coordinates: Upper Left ( 311999.990, 5105471.083) Lower Left ( 311999.990, 5112949.166) Upper Right ( 318000.009, 5105471.083) Lower Right ( 318000.009, 5112949.166) Center ( 314999.999, 5109210.125) Band 1 Block=89286x64 Type=Byte, ColorInterp=Red Band 2 Block=89286x64 Type=Byte, ColorInterp=Green Band 3 Block=89286x64 Type=Byte, ColorInterp=Blue =========================================== MAP EXTENT 311999.990 5112949.166 318000.009 5105471.083 IMAGETYPE png SIZE 783 976 PROJECTION "init=epsg:4326" END OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" END WEB METADATA "wms_title" "Aviano Map" "wms_onlineresource" "http://sid/cgi-bin/mapserv?map=/var/www/aviano/aviano.map&" "wms_srs" "EPSG:4326" END END LAYER NAME "Aviano1" DATA "/var/www/aviano/aviano.sid" TYPE raster STATUS on METADATA "wms_title" "Aviano Raster" "wms_onlineresource" "http://sid/cgi-bin/mapserv?map=/var/www/aviano/aviano.map&" END CLASSITEM "[pixel]" CLASS EXPRESSION ([pixel] < 64) COLOR 0 0 0 END CLASS EXPRESSION ([pixel] >= 64 AND [pixel] < 128) COLOR 255 0 0 END CLASS EXPRESSION ([pixel] >= 128 AND [pixel] < 196) COLOR 0 255 0 END CLASS EXPRESSION ([pixel] >= 196 AND [pixel] < 256) COLOR 0 0 255 END END END From ed at TOPOZONE.COM Fri Aug 13 06:37:34 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 13 Aug 2004 09:37:34 -0400 Subject: What's Wrong With This Picture? Message-ID: Debbie - Thanks! Yes, that's definitely a problem, too. Barbara, getting a black image means that everything is basically working fine, but you are requesting a map using parameters that result in none of your source data being used. What Debbie and I both noticed were two separate problems that both will cause you to ask for a map of someplace far away from your data. Your coordinates resemble UTM coordinates for Aviano, Italy, which is in UTM Zone 33. I can't tell what datum you're using, but WGS84 is a safe guess. The EPSG code for UTM Zone 33N / WGS84 is 32633, so changing "init=epsg:4326" to "init=epsg:32633" will probably help. - 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 Pagurek, Debbie Sent: Friday, August 13, 2004 9:16 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] What's Wrong With This Picture? I have a feeling that you might have another problem, because your Projection is: PROJECTION "init=epsg:4326" END which is a Geographic Projection (latitude and longitude), but the EXTENT you've indicated looks like it's in meters or something other than Decimal Degrees. In addition to what Ed said, you probably need to find out what the projection your data is in. Then you need to find the corresponding epsg code. After you've done that, it is possible to reproject the data on the fly using other epsg codes. Debbie -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney Sent: Thursday, August 12, 2004 7:09 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] What's Wrong With This Picture? Barbara - It looks like you did pretty well! Your EXTENT line in the map file should be MINX MINY MAXX MAXY - you've got the two Y values reversed, which means you're asking for nothing (and getting it ). Try just swapping those two numbers. - 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 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Barbara Zack Sent: Thursday, August 12, 2004 5:29 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] What's Wrong With This Picture? My apologies for bothering the list with this, but I'm running out of time. I'm primarily a programmer with almost no GIS background. Being the only available entity, I was asked to get MapServer up and running as a WMS server. Obviously I have no business doing this, but here I am. I managed to get a Linux server (Debian sarge) up and running, GDAL compiled with mrsid support, MapServer compiled, and the demo working. The map file part is beyond my comprehension. The one I put together, only half of which I actually understands, produces an XML capabilities document with no warning messages. However, GetMap gives me a blank png as output. Below are the results of mapserv -v and gdalinfo in case that's important. Following that is my first attempt at a map file, for your amusement. I don't understand about half of what I have in there. Any pointers would be so greatly appreciated. Thanks! Barbara Z ./mapserv -v MapServer version 4.2.2 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE ======================================== gdalinfo /var/www/aviano/aviano.sid Driver: MrSID/Multi-resolution Seamless Image Database (MrSID) Size is 89286, 111281 Coordinate System is `' Origin = (311999.989722,5105471.083134) Pixel Size = (0.06720000,0.06720000) Metadata: IMAGE__COLOR_SCHEME=0 IMAGE__DATA_TYPE=0 IMAGE__INPUT_FILE_SIZE=0.000000 IMAGE__WIDTH=89286 IMAGE__HEIGHT=111281 IMAGE__XY_ORIGIN=312000.023322,5105471.116734 IMAGE__X_RESOLUTION=0.067200 IMAGE__Y_RESOLUTION=0.067200 Corner Coordinates: Upper Left ( 311999.990, 5105471.083) Lower Left ( 311999.990, 5112949.166) Upper Right ( 318000.009, 5105471.083) Lower Right ( 318000.009, 5112949.166) Center ( 314999.999, 5109210.125) Band 1 Block=89286x64 Type=Byte, ColorInterp=Red Band 2 Block=89286x64 Type=Byte, ColorInterp=Green Band 3 Block=89286x64 Type=Byte, ColorInterp=Blue =========================================== MAP EXTENT 311999.990 5112949.166 318000.009 5105471.083 IMAGETYPE png SIZE 783 976 PROJECTION "init=epsg:4326" END OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" END WEB METADATA "wms_title" "Aviano Map" "wms_onlineresource" "http://sid/cgi-bin/mapserv?map=/var/www/aviano/aviano.map&" "wms_srs" "EPSG:4326" END END LAYER NAME "Aviano1" DATA "/var/www/aviano/aviano.sid" TYPE raster STATUS on METADATA "wms_title" "Aviano Raster" "wms_onlineresource" "http://sid/cgi-bin/mapserv?map=/var/www/aviano/aviano.map&" END CLASSITEM "[pixel]" CLASS EXPRESSION ([pixel] < 64) COLOR 0 0 0 END CLASS EXPRESSION ([pixel] >= 64 AND [pixel] < 128) COLOR 255 0 0 END CLASS EXPRESSION ([pixel] >= 128 AND [pixel] < 196) COLOR 0 255 0 END CLASS EXPRESSION ([pixel] >= 196 AND [pixel] < 256) COLOR 0 0 255 END END END From asteele at BERKELEY.EDU Fri Aug 13 10:21:21 2004 From: asteele at BERKELEY.EDU (Aaron Steele) Date: Fri, 13 Aug 2004 10:21:21 -0700 Subject: mapserver 4.2.2 compile problem on redhat as3 In-Reply-To: Message-ID: hi daryl, yes, that was the culprit. the following change to my configure invocation satisfied the compile: --with-postgis=/usr/local/pgsql/bin/pg_config thanks, aaron On Aug 13, 2004, at 12:41 AM, Daryl Herzmann wrote: > Hi Aaron, > > On Fri, 13 Aug 2004, Aaron Steele wrote: > >> dear readers, >> >> i'm running redhat enterprise as3 and cannot compile mapserver 4.2.2: >> >>> ./configure >> --with-wfs >> --with-wmsclient >> --with-wfsclient >> --with-proj=/usr/local/proj-4.4.8 >> --with-gdal=/usr/local/gdal-1.2.1/apps/gdal-config >> --with-postgis=/usr/local/postgresql-7.4.3/contrib/postgis-0.8.2 >> --with-ogr=/usr/local/gdal-1.2.1/apps/gdal-config > > I am not sure that your --with-postgis is correct. I think it should > point to the location of pg_config, for example > > --with-postgis=/usr/local/postgresql-7.4.3/bin/pg_config > > If pg_config is not found, you wind up with a blank include in the > Makefile and hence this error > > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL > -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR > -DUSE_WFS_LYR -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT > -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS > -I/usr/local/include -I/usr/local/proj-4.4.8/src > -I/usr/local/gdal-1.2.1/port -I/usr/local/gdal-1.2.1/gcore > -I/usr/local/gdal-1.2.1/alg -I/usr/local/gdal-1.2.1/ogr > -I/usr/local/gdal-1.2.1/ogr/ogrsf_frmts -I maptemplate.c -o > maptemplate.o > gcc: no input files > make: *** [maptemplate.o] Error 1 > > > Notice the blank after the last '-I' > > HTH, > daryl > From asteele at BERKELEY.EDU Fri Aug 13 10:28:38 2004 From: asteele at BERKELEY.EDU (Aaron Steele) Date: Fri, 13 Aug 2004 10:28:38 -0700 Subject: mapserver 4.2.2 compile problem on redhat as3 In-Reply-To: <32495459-ED4D-11D8-80FA-000A95C0C442@berkeley.edu> Message-ID: i spoke too soon. : } the compile bailed out: -L/usr/local/pgsql/lib -lpq -lcurl -L/usr/kerberos/lib -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -L/usr/kerberos/lib -lz -lssl -lcrypto -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lz -lm -lstdc++ -o shp2img /usr/local/gdal-1.2.1/libgdal.la: file not recognized: File format not recognized collect2: ld returned 1 exit status make: *** [shp2img] Error 1 shp2img.o is in the mapserver directory where i'm compiling... thanks, aaron > hi daryl, > > yes, that was the culprit. the following change to my configure > invocation satisfied the compile: > > --with-postgis=/usr/local/pgsql/bin/pg_config > > thanks, > aaron > > On Aug 13, 2004, at 12:41 AM, Daryl Herzmann wrote: > >> Hi Aaron, >> >> On Fri, 13 Aug 2004, Aaron Steele wrote: >> >>> dear readers, >>> >>> i'm running redhat enterprise as3 and cannot compile mapserver 4.2.2: >>> >>>> ./configure >>> --with-wfs >>> --with-wmsclient >>> --with-wfsclient >>> --with-proj=/usr/local/proj-4.4.8 >>> --with-gdal=/usr/local/gdal-1.2.1/apps/gdal-config >>> --with-postgis=/usr/local/postgresql-7.4.3/contrib/postgis-0.8.2 >>> --with-ogr=/usr/local/gdal-1.2.1/apps/gdal-config >> >> I am not sure that your --with-postgis is correct. I think it should >> point to the location of pg_config, for example >> >> --with-postgis=/usr/local/postgresql-7.4.3/bin/pg_config >> >> If pg_config is not found, you wind up with a blank include in the >> Makefile and hence this error >> >> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL >> -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR >> -DUSE_WFS_LYR -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT >> -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS >> -I/usr/local/include -I/usr/local/proj-4.4.8/src >> -I/usr/local/gdal-1.2.1/port -I/usr/local/gdal-1.2.1/gcore >> -I/usr/local/gdal-1.2.1/alg -I/usr/local/gdal-1.2.1/ogr >> -I/usr/local/gdal-1.2.1/ogr/ogrsf_frmts -I maptemplate.c -o >> maptemplate.o >> gcc: no input files >> make: *** [maptemplate.o] Error 1 >> >> >> Notice the blank after the last '-I' >> >> HTH, >> daryl >> > From manfred.thuering at SUPSI.CH Fri Aug 13 11:35:31 2004 From: manfred.thuering at SUPSI.CH (Manfred) Date: Fri, 13 Aug 2004 13:35:31 -0500 Subject: Raster data Mapserver 4.0 -> 4.2 Message-ID: Hello I made an application with mapserver 4.0, with raster data in it (esri raster produced with ArcGIS 8.x) and everything worked fine (Windows2000, apache2). Then I upgraded to mapserver 4.2: now my raster data does not show anymore in the web-application. Strange, isn't it? Did something change from 4.0 to 4.2 regarding esri rasters visualization?? Thanks for help! manfred From bz at CESMAIL.NET Fri Aug 13 12:02:12 2004 From: bz at CESMAIL.NET (Barbara Zack) Date: Fri, 13 Aug 2004 14:02:12 -0500 Subject: What's Wrong With This Picture? In-Reply-To: Message-ID: Thanks to Paul, Ed, and Debbie I seem to be on the right track, but still no picture. Ed was correct about the location, so EPSG:32633 is what I needed. I also flipped the min and max y. I wondered if the size (941 MB) could be a problem, but I can view the file using LizardTech's browser plugin. Following is the corrected map file. Can anyone see something else wrong with it? Barbara ====================================== MAP EXTENT 311999.90 5105471.083 318000.009 5112949.166 IMAGETYPE png SIZE 932 576 PROJECTION "init=epsg:32633" END OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" END WEB METADATA "wms_title" "Aviano Map" "wms_onlineresource" "http://sid/cgi-bin/mapserv?map=/var/www/aviano/aviano.map&" "wms_srs" "epsg:32633" END END LAYER NAME "Aviano1" DATA "/var/www/aviano/aviano.sid" STATUS on TYPE raster METADATA "wms_title" "Aviano Raster" "wms_srs" "epsg:32633" "wms_onlineresource" "http://sid/cgi-bin/mapserv?map=/var/www/aviano/aviano.map&" END END END ========================================= Ed McNierney wrote: >---------------------- Information from the mail header ----------------------- >Sender: UMN MapServer Users List >Poster: Ed McNierney >Subject: Re: What's Wrong With This Picture? >------------------------------------------------------------------------------- > >Debbie - > >Thanks! Yes, that's definitely a problem, too. > >Barbara, getting a black image means that everything is basically >working fine, but you are requesting a map using parameters that result >in none of your source data being used. What Debbie and I both noticed >were two separate problems that both will cause you to ask for a map of >someplace far away from your data. > >Your coordinates resemble UTM coordinates for Aviano, Italy, which is in >UTM Zone 33. I can't tell what datum you're using, but WGS84 is a safe >guess. The EPSG code for UTM Zone 33N / WGS84 is 32633, so changing >"init=3Depsg:4326" to "init=3Depsg:32633" will probably help. > > - 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=20 > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >Behalf Of Pagurek, Debbie >Sent: Friday, August 13, 2004 9:16 AM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] What's Wrong With This Picture? > >I have a feeling that you might have another problem, because your >Projection is: > PROJECTION > "init=3Depsg:4326" > END >which is a Geographic Projection (latitude and longitude), but the >EXTENT you've indicated looks like it's in meters or something other >than Decimal Degrees. > >In addition to what Ed said, you probably need to find out what the >projection your data is in. Then you need to find the corresponding >epsg code. After you've done that, it is possible to reproject the data >on the fly using other epsg codes. > >Debbie > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >Behalf Of Ed McNierney >Sent: Thursday, August 12, 2004 7:09 PM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] What's Wrong With This Picture? > >Barbara - > >It looks like you did pretty well! > >Your EXTENT line in the map file should be MINX MINY MAXX MAXY - you've >got the two Y values reversed, which means you're asking for nothing >(and getting it ). Try just swapping those two numbers. > > - 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=20 > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >Behalf Of Barbara Zack >Sent: Thursday, August 12, 2004 5:29 PM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] What's Wrong With This Picture? > >My apologies for bothering the list with this, but I'm running out of >time. I'm primarily a programmer with almost no GIS background. Being >the only available entity, I was asked to get MapServer up and running >as a WMS server. Obviously I have no business doing this, but here I am. >I managed to get a Linux server (Debian sarge) up and running, GDAL >compiled with mrsid support, MapServer compiled, and the demo working. >The map file part is beyond my comprehension. The one I put together, >only half of which I actually understands, produces an XML capabilities >document with no warning messages. However, GetMap gives me a blank png >as output. Below are the results of mapserv -v and gdalinfo in case >that's important. Following that is my first attempt at a map file, for >your amusement. I don't understand about half of what I have in there. >Any pointers would be so greatly appreciated. > >Thanks! >Barbara Z > >./mapserv -v > >MapServer version 4.2.2 OUTPUT=3DPNG OUTPUT=3DJPEG OUTPUT=3DWBMP = >SUPPORTS=3DPROJ >SUPPORTS=3DFREETYPE SUPPORTS=3DWMS_SERVER SUPPORTS=3DWFS_SERVER = >INPUT=3DEPPL7 >INPUT=3DOGR INPUT=3DGDAL INPUT=3DSHAPEFILE >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >gdalinfo /var/www/aviano/aviano.sid > >Driver: MrSID/Multi-resolution Seamless Image Database (MrSID) Size is >89286, 111281 Coordinate System is `' >Origin =3D (311999.989722,5105471.083134) >Pixel Size =3D (0.06720000,0.06720000) >Metadata: > IMAGE__COLOR_SCHEME=3D0 > IMAGE__DATA_TYPE=3D0 > IMAGE__INPUT_FILE_SIZE=3D0.000000 > IMAGE__WIDTH=3D89286 > IMAGE__HEIGHT=3D111281 > IMAGE__XY_ORIGIN=3D312000.023322,5105471.116734 > IMAGE__X_RESOLUTION=3D0.067200 > IMAGE__Y_RESOLUTION=3D0.067200 >Corner Coordinates: >Upper Left ( 311999.990, 5105471.083) >Lower Left ( 311999.990, 5112949.166) >Upper Right ( 318000.009, 5105471.083) >Lower Right ( 318000.009, 5112949.166) >Center ( 314999.999, 5109210.125) >Band 1 Block=3D89286x64 Type=3DByte, ColorInterp=3DRed Band 2 = >Block=3D89286x64 >Type=3DByte, ColorInterp=3DGreen Band 3 Block=3D89286x64 Type=3DByte, >ColorInterp=3DBlue = >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >MAP > EXTENT 311999.990 5112949.166 318000.009 5105471.083 > IMAGETYPE png > SIZE 783 976 > PROJECTION > "init=3Depsg:4326" > END > OUTPUTFORMAT > NAME png > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE PC256 > EXTENSION "png" > END > WEB > METADATA > "wms_title" "Aviano Map" > "wms_onlineresource" >"http://sid/cgi-bin/mapserv?map=3D/var/www/aviano/aviano.map&" > "wms_srs" "EPSG:4326" > END > END > > LAYER > NAME "Aviano1" > DATA "/var/www/aviano/aviano.sid" > TYPE raster > STATUS on > METADATA > "wms_title" "Aviano Raster" > "wms_onlineresource" >"http://sid/cgi-bin/mapserv?map=3D/var/www/aviano/aviano.map&" > END > CLASSITEM "[pixel]" > CLASS > EXPRESSION ([pixel] < 64) > COLOR 0 0 0 > END > CLASS > EXPRESSION ([pixel] >=3D 64 AND [pixel] < 128) > COLOR 255 0 0 > END > CLASS > EXPRESSION ([pixel] >=3D 128 AND [pixel] < 196) > COLOR 0 255 0 > END > CLASS > EXPRESSION ([pixel] >=3D 196 AND [pixel] < 256) > COLOR 0 0 255 > END > END >END > > > From warmerdam at POBOX.COM Fri Aug 13 12:17:36 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 13 Aug 2004 15:17:36 -0400 Subject: Raster data Mapserver 4.0 -> 4.2 In-Reply-To: Message-ID: Manfred wrote: > Hello > > I made an application with mapserver 4.0, with raster data in it (esri > raster produced with ArcGIS 8.x) and everything worked fine (Windows2000, > apache2). > > Then I upgraded to mapserver 4.2: now my raster data does not show anymore > in the web-application. > > Strange, isn't it? Did something change from 4.0 to 4.2 regarding esri > rasters visualization?? Manfred, A variety of things have changed, but nothing comes to mind that would break a 4.0 map with raster data. I would encourage you to provide details including your .map file (preferrably a minimal one demonstrating the problem), and a gdalinfo report on the file in question. You should also try and verify the issue with "shp2img", with debugging turned on. The most common issue encountered is the file not being found due to apparent subtle changes in the path-to-file defaults in the software. Try an absolute path to your raster file and see if that 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 warmerdam at POBOX.COM Fri Aug 13 12:21:20 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 13 Aug 2004 15:21:20 -0400 Subject: Can't view Envi HDR file... In-Reply-To: <411BBC90.1050800@webmapit.com.br> Message-ID: Eduardo Patto Kanegae wrote: > Band 1 Block=8401x1 Type=Int16, ColorInterp=Undefined > Description = Mosaic (Band 1) > ------- > > Using OpenEV 1.80 I got a view like shown at the 'dem-openev.png' attached. > > But using MapServer I got only an image like shown in > 'dem-mapserver.png' attached. > > My mapfile is: > > MAP > EXTENT -183604.500 -86401.500 -158401.500 -64798.500 > IMAGETYPE dem > SIZE 736 632 > > OUTPUTFORMAT > NAME dem > DRIVER "GD/PNG" > IMAGEMODE RGB > END > > LAYER # imagem > NAME "imagem" > TYPE RASTER > DATA "C:\local\mapas\envi\MOSAICOHGT" > END > > END Eduardo, The issue here is that it is 16 bit data. By default MapServer just reads non-8bit data by setting all values greater than 255 to 255 and all values less than 0 to 0. I think you will want auto-scaling. Try adding the following line to your raster layer definition: PROCESSING "SCALE=AUTO" 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 warmerdam at POBOX.COM Fri Aug 13 12:26:48 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 13 Aug 2004 15:26:48 -0400 Subject: OGR - wkbLineString? In-Reply-To: <8AE17DD6AA4FD51191CD0002A551168101B897D5@s5-van1-r1.ess.nrcan.gc.ca> Message-ID: Van Ulden, Joost wrote: > Hi all, > > Is there any way that one could store coordinate pairs that represent arcs > in a database and have mapserver draw them? Using OGR? Any suggestions > would be helpful. Joost, There isn't currently any mechanism for this though it could be developed. But my suggestion would be to convert the arcs into line string approximations and then render those. Amoung other mechanisms, I am sure this could be accomplished in mapscript. It would also be possible to implement this capability within MapServer itself if you really wanted it, but it seems like an unecessary complication to 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 Eric.Hancock at DEP.STATE.FL.US Fri Aug 13 12:32:36 2004 From: Eric.Hancock at DEP.STATE.FL.US (Hancock, Eric) Date: Fri, 13 Aug 2004 15:32:36 -0400 Subject: ArcGIS WMS Interop Tools.... Message-ID: Hey all, I have a few questions that have to do with ESRI's interoperability tools connecting to Mapserver. With a WMS connection is it possible to do an identify with ArcMap ArcExplorer and other ESRI products? What about a WFS Server. Can an ArcMap buffer selection be made with WMS and WFS? And lastly you set a predefined symbology in the mapfile or shp and have it brought up in the ESRI product using the WFS or WMS connector? Any information on this would be greatly appreciated. Eric Hancock Florida DEP From akrherz at IASTATE.EDU Fri Aug 13 12:57:36 2004 From: akrherz at IASTATE.EDU (Daryl Herzmann) Date: Fri, 13 Aug 2004 14:57:36 -0500 Subject: mapserver 4.2.2 compile problem on redhat as3 In-Reply-To: <365C5752-ED4E-11D8-80FA-000A95C0C442@berkeley.edu> Message-ID: Aaron, On Fri, 13 Aug 2004, Aaron Steele wrote: > i spoke too soon. : } > > the compile bailed out: > > -L/usr/local/pgsql/lib -lpq -lcurl -L/usr/kerberos/lib -lssl -lcrypto > -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz > -L/usr/kerberos/lib -lz -lssl -lcrypto -lssl -lcrypto -lgssapi_krb5 > -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lz -lm -lstdc++ -o > shp2img > /usr/local/gdal-1.2.1/libgdal.la: file not recognized: File format not > recognized > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 A couple of things here. The gdal location looks very suspicous. How did you install GDAL? Or did you just compile there and never do a make install? I am not sure you want to do it that way, but if you have a reason.... Also, please include the entire compile command starting with the gcc. Not everything, just the command for shp2img HTH, daryl -- /** * Daryl Herzmann (akrherz at iastate.edu) * Program Assistant -- Iowa Environmental Mesonet * http://mesonet.agron.iastate.edu */ From huey.brantley at VANDERBILT.EDU Fri Aug 13 12:48:27 2004 From: huey.brantley at VANDERBILT.EDU (Huey Brantley) Date: Fri, 13 Aug 2004 14:48:27 -0500 Subject: Couple of questions on MapScript and the Map File Message-ID: 1) Is there a way to apply a rotation to the map with mapscript? I have found references to a "ANGLE" member but I don't think mapscript supports it. 2) Can you label using multiple fields from a data source? I'd like to concatenate two or more fields to form the label. Thanks, Huey Brantley Vanderbilt University From asteele at BERKELEY.EDU Fri Aug 13 13:08:44 2004 From: asteele at BERKELEY.EDU (Aaron Steele) Date: Fri, 13 Aug 2004 13:08:44 -0700 Subject: mapserver 4.2.2 compile problem on redhat as3 In-Reply-To: Message-ID: hi daryl, my gdal install procedure (if suspicious, what is a more appropriate location...): in /usr/local/gdal-1.2.1/ > ./configure > make > make install the entire compile command string starting with gcc: gcc -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/usr/local/include -I/usr/local/proj-4.4.8/src -I/usr/local/gdal-1.2.1/port -I/usr/local/gdal-1.2.1/gcore -I/usr/local/gdal-1.2.1/alg -I/usr/local/gdal-1.2.1/ogr -I/usr/local/gdal-1.2.1/ogr/ogrsf_frmts -I/usr/local/pgsql/include shp2img.o -L. -lmap -lgd -L/usr/local/lib -lgd -lfreetype -lpng -lz -lfreetype -lpng -lz -L/usr/local/proj-4.4.8/src/.libs -lproj /usr/local/gdal-1.2.1/libgdal.la -L/usr/local/pgsql/lib -lpq -lcurl -L/usr/kerberos/lib -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -L/usr/kerberos/lib -lz -lssl -lcrypto -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lz -lm -lstdc++ -o shp2img /usr/local/gdal-1.2.1/libgdal.la: file not recognized: File format not recognized collect2: ld returned 1 exit status make: *** [shp2img] Error 1 thanks, aaron On Aug 13, 2004, at 12:57 PM, Daryl Herzmann wrote: > Aaron, > > On Fri, 13 Aug 2004, Aaron Steele wrote: > >> i spoke too soon. : } >> >> the compile bailed out: >> >> -L/usr/local/pgsql/lib -lpq -lcurl -L/usr/kerberos/lib -lssl -lcrypto >> -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz >> -L/usr/kerberos/lib -lz -lssl -lcrypto -lssl -lcrypto -lgssapi_krb5 >> -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lz -lm -lstdc++ -o >> shp2img >> /usr/local/gdal-1.2.1/libgdal.la: file not recognized: File format not >> recognized >> collect2: ld returned 1 exit status >> make: *** [shp2img] Error 1 > > A couple of things here. The gdal location looks very suspicous. How > did > you install GDAL? Or did you just compile there and never do a make > install? I am not sure you want to do it that way, but if you have a > reason.... > > Also, please include the entire compile command starting with the gcc. > Not everything, just the command for shp2img > > HTH, > daryl > > -- > /** > * Daryl Herzmann (akrherz at iastate.edu) > * Program Assistant -- Iowa Environmental Mesonet > * http://mesonet.agron.iastate.edu > */ > From keon at NACSE.ORG Fri Aug 13 13:08:55 2004 From: keon at NACSE.ORG (Dylan Keon) Date: Fri, 13 Aug 2004 13:08:55 -0700 Subject: Couple of questions on MapScript and the Map File In-Reply-To: <411D1B0B.2000202@vanderbilt.edu> Message-ID: On 08/13/2004 12:48 PM, Huey Brantley wrote: > 1) Is there a way to apply a rotation to the map with mapscript? I have > found references to a "ANGLE" member but I don't think mapscript > supports it. Not sure about this, but someone else will know. > 2) Can you label using multiple fields from a data source? I'd like to > concatenate two or more fields to form the label. Yes, using the TEXT parameter within the CLASS object. Here's an example that concatenates two fields from a dbf file: TEXT ([ID] - [NAME]) See http://mapserver.gis.umn.edu/doc42/mapfile-reference.html --Dylan From akrherz at IASTATE.EDU Fri Aug 13 13:11:56 2004 From: akrherz at IASTATE.EDU (Daryl Herzmann) Date: Fri, 13 Aug 2004 15:11:56 -0500 Subject: mapserver 4.2.2 compile problem on redhat as3 In-Reply-To: <94546D3A-ED64-11D8-80FA-000A95C0C442@berkeley.edu> Message-ID: howdy, On Fri, 13 Aug 2004, Aaron Steele wrote: > my gdal install procedure (if suspicious, what is a more appropriate > location...): > > in /usr/local/gdal-1.2.1/ >> ./configure >> make >> make install The make install then installed the libraries and what not in /usr/local and not /usr/local/gdal-1.2.1 , so your mapserver flag should be --with-gdal=/usr/local/bin/gdal-config Does /usr/local/bin/gdal-config work? If so, what does this report? /usr/local/bin/gdal-config --libs daryl -- /** * Daryl Herzmann (akrherz at iastate.edu) * Program Assistant -- Iowa Environmental Mesonet * http://mesonet.agron.iastate.edu */ From PAGUREKD at AGR.GC.CA Fri Aug 13 13:19:44 2004 From: PAGUREKD at AGR.GC.CA (Pagurek, Debbie) Date: Fri, 13 Aug 2004 16:19:44 -0400 Subject: What's Wrong With This Picture? Message-ID: Hi Barbara, A question: What URL are you using to try to show your map? You might be missing a couple of things at the top of your mapfile, such as UNITS And in your WEB section, you might need IMAGEPATH and IMAGEURL. In your layer definition, you could try to put the epsg part of "wms_srs" "epsg:32633" in capital letters. Seems strange, but I seem to recall reading something about that. I will send you a couple of mapfiles that you can compare yours to. Keep trying - I think you're getting closer to succeeding! Debbie -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Barbara Zack Sent: Friday, August 13, 2004 3:02 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] What's Wrong With This Picture? Thanks to Paul, Ed, and Debbie I seem to be on the right track, but still no picture. Ed was correct about the location, so EPSG:32633 is what I needed. I also flipped the min and max y. I wondered if the size (941 MB) could be a problem, but I can view the file using LizardTech's browser plugin. Following is the corrected map file. Can anyone see something else wrong with it? Barbara ====================================== MAP EXTENT 311999.90 5105471.083 318000.009 5112949.166 IMAGETYPE png SIZE 932 576 PROJECTION "init=epsg:32633" END OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" END WEB METADATA "wms_title" "Aviano Map" "wms_onlineresource" "http://sid/cgi-bin/mapserv?map=/var/www/aviano/aviano.map&" "wms_srs" "epsg:32633" END END LAYER NAME "Aviano1" DATA "/var/www/aviano/aviano.sid" STATUS on TYPE raster METADATA "wms_title" "Aviano Raster" "wms_srs" "epsg:32633" "wms_onlineresource" "http://sid/cgi-bin/mapserv?map=/var/www/aviano/aviano.map&" END END END ========================================= Ed McNierney wrote: >---------------------- Information from the mail header ----------------------- >Sender: UMN MapServer Users List >Poster: Ed McNierney >Subject: Re: What's Wrong With This Picture? >----------------------------------------------------------------------- -------- > >Debbie - > >Thanks! Yes, that's definitely a problem, too. > >Barbara, getting a black image means that everything is basically >working fine, but you are requesting a map using parameters that result >in none of your source data being used. What Debbie and I both noticed >were two separate problems that both will cause you to ask for a map of >someplace far away from your data. > >Your coordinates resemble UTM coordinates for Aviano, Italy, which is in >UTM Zone 33. I can't tell what datum you're using, but WGS84 is a safe >guess. The EPSG code for UTM Zone 33N / WGS84 is 32633, so changing >"init=3Depsg:4326" to "init=3Depsg:32633" will probably help. > > - 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=20 > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >Behalf Of Pagurek, Debbie >Sent: Friday, August 13, 2004 9:16 AM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] What's Wrong With This Picture? > >I have a feeling that you might have another problem, because your >Projection is: > PROJECTION > "init=3Depsg:4326" > END >which is a Geographic Projection (latitude and longitude), but the >EXTENT you've indicated looks like it's in meters or something other >than Decimal Degrees. > >In addition to what Ed said, you probably need to find out what the >projection your data is in. Then you need to find the corresponding >epsg code. After you've done that, it is possible to reproject the data >on the fly using other epsg codes. > >Debbie > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >Behalf Of Ed McNierney >Sent: Thursday, August 12, 2004 7:09 PM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] What's Wrong With This Picture? > >Barbara - > >It looks like you did pretty well! > >Your EXTENT line in the map file should be MINX MINY MAXX MAXY - you've >got the two Y values reversed, which means you're asking for nothing >(and getting it ). Try just swapping those two numbers. > > - 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=20 > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >Behalf Of Barbara Zack >Sent: Thursday, August 12, 2004 5:29 PM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] What's Wrong With This Picture? > >My apologies for bothering the list with this, but I'm running out of >time. I'm primarily a programmer with almost no GIS background. Being >the only available entity, I was asked to get MapServer up and running >as a WMS server. Obviously I have no business doing this, but here I am. >I managed to get a Linux server (Debian sarge) up and running, GDAL >compiled with mrsid support, MapServer compiled, and the demo working. >The map file part is beyond my comprehension. The one I put together, >only half of which I actually understands, produces an XML capabilities >document with no warning messages. However, GetMap gives me a blank png >as output. Below are the results of mapserv -v and gdalinfo in case >that's important. Following that is my first attempt at a map file, for >your amusement. I don't understand about half of what I have in there. >Any pointers would be so greatly appreciated. > >Thanks! >Barbara Z > >./mapserv -v > >MapServer version 4.2.2 OUTPUT=3DPNG OUTPUT=3DJPEG OUTPUT=3DWBMP = >SUPPORTS=3DPROJ >SUPPORTS=3DFREETYPE SUPPORTS=3DWMS_SERVER SUPPORTS=3DWFS_SERVER = >INPUT=3DEPPL7 >INPUT=3DOGR INPUT=3DGDAL INPUT=3DSHAPEFILE >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D= >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >gdalinfo /var/www/aviano/aviano.sid > >Driver: MrSID/Multi-resolution Seamless Image Database (MrSID) Size is >89286, 111281 Coordinate System is `' >Origin =3D (311999.989722,5105471.083134) >Pixel Size =3D (0.06720000,0.06720000) >Metadata: > IMAGE__COLOR_SCHEME=3D0 > IMAGE__DATA_TYPE=3D0 > IMAGE__INPUT_FILE_SIZE=3D0.000000 > IMAGE__WIDTH=3D89286 > IMAGE__HEIGHT=3D111281 > IMAGE__XY_ORIGIN=3D312000.023322,5105471.116734 > IMAGE__X_RESOLUTION=3D0.067200 > IMAGE__Y_RESOLUTION=3D0.067200 >Corner Coordinates: >Upper Left ( 311999.990, 5105471.083) >Lower Left ( 311999.990, 5112949.166) >Upper Right ( 318000.009, 5105471.083) >Lower Right ( 318000.009, 5112949.166) >Center ( 314999.999, 5109210.125) >Band 1 Block=3D89286x64 Type=3DByte, ColorInterp=3DRed Band 2 = >Block=3D89286x64 >Type=3DByte, ColorInterp=3DGreen Band 3 Block=3D89286x64 Type=3DByte, >ColorInterp=3DBlue = >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D= >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >MAP > EXTENT 311999.990 5112949.166 318000.009 5105471.083 > IMAGETYPE png > SIZE 783 976 > PROJECTION > "init=3Depsg:4326" > END > OUTPUTFORMAT > NAME png > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE PC256 > EXTENSION "png" > END > WEB > METADATA > "wms_title" "Aviano Map" > "wms_onlineresource" >"http://sid/cgi-bin/mapserv?map=3D/var/www/aviano/aviano.map&" > "wms_srs" "EPSG:4326" > END > END > > LAYER > NAME "Aviano1" > DATA "/var/www/aviano/aviano.sid" > TYPE raster > STATUS on > METADATA > "wms_title" "Aviano Raster" > "wms_onlineresource" >"http://sid/cgi-bin/mapserv?map=3D/var/www/aviano/aviano.map&" > END > CLASSITEM "[pixel]" > CLASS > EXPRESSION ([pixel] < 64) > COLOR 0 0 0 > END > CLASS > EXPRESSION ([pixel] >=3D 64 AND [pixel] < 128) > COLOR 255 0 0 > END > CLASS > EXPRESSION ([pixel] >=3D 128 AND [pixel] < 196) > COLOR 0 255 0 > END > CLASS > EXPRESSION ([pixel] >=3D 196 AND [pixel] < 256) > COLOR 0 0 255 > END > END >END > > > From sgillies at FRII.COM Fri Aug 13 13:26:24 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Fri, 13 Aug 2004 14:26:24 -0600 Subject: Couple of questions on MapScript and the Map File In-Reply-To: <411D1B0B.2000202@vanderbilt.edu> Message-ID: On Aug 13, 2004, at 1:48 PM, Huey Brantley wrote: > 1) Is there a way to apply a rotation to the map with mapscript? I > have > found references to a "ANGLE" member but I don't think mapscript > supports it. > > 2) Can you label using multiple fields from a data source? I'd like to > concatenate two or more fields to form the label. > > Thanks, > Huey Brantley > Vanderbilt University > > Answer to 1 is yes, for the SWIG and PHP mapscripts, version 4.3 (in CVS only). You never asked the question so directly on IRC this morning. :) Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From asteele at BERKELEY.EDU Fri Aug 13 13:27:26 2004 From: asteele at BERKELEY.EDU (Aaron Steele) Date: Fri, 13 Aug 2004 13:27:26 -0700 Subject: mapserver 4.2.2 compile problem on redhat as3 In-Reply-To: Message-ID: hi daryl, the gdal flag was the culprit. the following change to my configure invocation was the fix: --with-gdal=/usr/local/bin/gdal-config mapserver now compiles! : ) here is the report from /usr/local/bin/gdal-config: > /usr/local/bin/gdal-config --libs > -L/usr/local/lib -lgdal is this at all interesting? thanks again, aaron On Aug 13, 2004, at 1:11 PM, Daryl Herzmann wrote: > howdy, > > On Fri, 13 Aug 2004, Aaron Steele wrote: > >> my gdal install procedure (if suspicious, what is a more appropriate >> location...): >> >> in /usr/local/gdal-1.2.1/ >>> ./configure >>> make >>> make install > > The make install then installed the libraries and what not in > /usr/local > and not /usr/local/gdal-1.2.1 , so your mapserver flag should be > > --with-gdal=/usr/local/bin/gdal-config > > Does /usr/local/bin/gdal-config work? If so, what does this report? > > /usr/local/bin/gdal-config --libs > > daryl > > -- > /** > * Daryl Herzmann (akrherz at iastate.edu) > * Program Assistant -- Iowa Environmental Mesonet > * http://mesonet.agron.iastate.edu > */ > From blaine_hack1 at YAHOO.COM Fri Aug 13 13:49:57 2004 From: blaine_hack1 at YAHOO.COM (Blaine Hackett) Date: Fri, 13 Aug 2004 13:49:57 -0700 Subject: TrueType Font Error In-Reply-To: <2A6FDD75AE04BE4A9E8C918D3C09FB07E536@ptolemy.topozone.com> Message-ID: Sorry Ed. Sometimes I forget to "reply all". Anyway. I have successfully accessed the TrueType font by hardcoding the path to the "C:/windows/font" directory in the font.list file. Dirk Jesko wrote that he had the same problem and fixed it by copying the fonts to C:/font. The thing that gets me is that I have virtually the same setup on two computers and one works fine but the other doesn't. I guess I will go with this solution for now. Thanks to everyone for the help. Blaine --- Ed McNierney wrote: > Blaine - > > Don't rely on what the "current directory" is for > paths - if possible, use fully-qualified pathnames. > Try adding the complete path to each font file to > see if that fixes the problem, and always please > reply to the whole list - thanks! > > - Ed > > -----Original Message----- > From: Blaine Hackett [mailto:blaine_hack1 at yahoo.com] > Sent: Thu 8/12/2004 9:00 PM > To: Ed McNierney > Subject: Re: [UMN_MAPSERVER-USERS] TrueType Font > Error > > Ed > > So your saying it can't find the font the fonlist > file > is directing it to? > > I have the fonts in the same directory as the > fontset > file. I have tried hardcoding the path in the > fons.list file to the .ttf file and it still gives > me > the same error. > > Blaine > --- Ed McNierney wrote: > > > Blaine - > > > > Yes, but that error means MapServer can't find the > > specific font that's > > listed in the fonts.list file. Look at the name > of > > the font you're > > using, then find that name in the fonts.list file, > > and follow the path > > to the font 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 > > > > -----Original Message----- > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > > Behalf Of Blaine Hackett > > Sent: Thursday, August 12, 2004 6:23 PM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] TrueType Font Error > > > > All > > > > I have been wrestling with an issue and hope you > can > > help. > > > > I have an XP computer running MapServer 3.6.6 and > > Apache 2. Truetype > > fonts work fine. I have another XP computer > running > > 4.0.2 and Apache 2. > > Truetype fonts do not work. > > > > Here is the scenario: > > If I use the default, my labels come out fine. > > However if I use "TYPE TRUETYPE" I get the > following > > error. > > msGetLabelSize(): TrueType Font error. Could not > > find/open font > > > > In my map file I have tried all different ways to > > access the > > fontset.list file. I know that it is finding the > > file because if I mess > > with the file in any way, it gives me a different > > error > > msLoadFontset(): Unable to access file. Error > > opening fontset > > font/fonts.list. > > > > I have exhaustively searched the archive and tried > > every suggestion but > > I cannot come up with a solution. > > > > Thanks > > Blaine > > > > > > > > > > __________________________________ > > Do you Yahoo!? > > Yahoo! Mail is new and improved - Check it out! > > http://promotions.yahoo.com/new_mail > > > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail - Helps protect you from nasty viruses. > http://promotions.yahoo.com/new_mail > > __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail From temiz at DEPREM.GOV.TR Mon Aug 16 00:30:28 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Mon, 16 Aug 2004 10:30:28 +0300 Subject: changing the pattern Message-ID: hello how can I change the pattern of the ploygon dynamically in mapserver ? kind regards Ahmet Temiz TURKEY ______________________________________ Inflex - 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 mike.mannomann at GMX.NET Mon Aug 16 05:10:10 2004 From: mike.mannomann at GMX.NET (Mike) Date: Mon, 16 Aug 2004 07:10:10 -0500 Subject: query using two items Message-ID: Hi List. I want to do a query of a shape with polygons that have more than one item. One item is "Gemarkung" the other is "Nr". I want to do it like Gemarkung = " x" and Nr = 19. for example. I dont know how to do it. I already did a query using one item which works quite ok and even zooms the result. To do the query with two items I have no idea. Thank you for any help Mike From Mike.Mannomann at GMX.NET Mon Aug 16 05:28:54 2004 From: Mike.Mannomann at GMX.NET (Mike Mannomann) Date: Mon, 16 Aug 2004 14:28:54 +0200 Subject: querying two attributes at once Message-ID: Hi List. My problems is, I want to do a query using two items in one shape. I want to query a polygon with an expression kind of: town = Berlin and streetname = abc or something like this and I want to have the result zoomed. I have no idea how this should work. Wiht one item I could get a reasonable result. (made a query layer, did a query via html and so on) an it zoomed on the polygon. I am sure, there must be a way, but I have not found solutions in the archive so far. Thanks in advance M. -- NEU: WLAN-Router f?r 0,- EUR* - auch f?r DSL-Wechsler! GMX DSL = superg?nstig & kabellos http://www.gmx.net/de/go/dsl From woodbri at SWOODBRIDGE.COM Mon Aug 16 06:07:32 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 16 Aug 2004 09:07:32 -0400 Subject: querying two attributes at once In-Reply-To: <27129.1092659334@www34.gmx.net> Message-ID: Mike Mannomann wrote: > Hi List. > > My problems is, I want to do a query using two items in one shape. I want > to query a polygon with an expression kind of: town = Berlin and > streetname = abc or something like this and I want to have the result > zoomed. Mike, Try setting your query string to: "[TOWN]='Berlin' && [STREETNAME]='abc'" -Steve W. From jesko at GEOCONTENT.DE Mon Aug 16 08:16:18 2004 From: jesko at GEOCONTENT.DE (Dirk Jesko) Date: Mon, 16 Aug 2004 17:16:18 +0200 Subject: Label and Symbol question Message-ID: Hi, Two short questions: 1. Is it possible to create a label that consists of more than one item, e.g. streetname and number or postal code and city name? Since a layer can have one LABELITEM only, I don't see a way to achieve this. 2. I have a point-shape and would like to draw a circle with a fixed radius, e.g. 500m, for each point. As far as I under stand it, symbols have a fixed size, so they would not work. Further, the documentation states, that a layer of type circle requires the bounding box. So this would not work either, since the shape just contains the center point. Is there another way? Thanks, Dirk From jhblankenship at YAHOO.COM Mon Aug 16 08:15:27 2004 From: jhblankenship at YAHOO.COM (Jacob Blankenship) Date: Mon, 16 Aug 2004 08:15:27 -0700 Subject: querying two attributes at once In-Reply-To: <4120B194.8000301@swoodbridge.com> Message-ID: Will the query string also support latitude and longitude? --- Stephen Woodbridge wrote: > Mike Mannomann wrote: > > Hi List. > > > > My problems is, I want to do a query using two > items in one shape. I want > > to query a polygon with an expression kind of: > town = Berlin and > > streetname = abc or something like this and I want > to have the result > > zoomed. > > Mike, > > Try setting your query string to: > > "[TOWN]='Berlin' && [STREETNAME]='abc'" > > -Steve W. > __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail From jmckenna at DMSOLUTIONS.CA Mon Aug 16 08:26:09 2004 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Mon, 16 Aug 2004 11:26:09 -0400 Subject: Label and Symbol question Message-ID: Dirk, > > 1. Is it possible to create a label that consists of more than one item, > e.g. streetname and number or postal code and city name? Since a layer > can have one LABELITEM only, I don't see a way to achieve this. look at the TEXT parameter of the CLASS object, it's what u need. e.g. TEXT ([NUMBER] [STREETNAME]) jeff -- Jeff McKenna GIS Specialist DM Solutions Group Inc. http://www.dmsolutions.ca From edspremolla at ANTEL.COM.UY Mon Aug 16 08:50:31 2004 From: edspremolla at ANTEL.COM.UY (Eduardo Spremolla) Date: Mon, 16 Aug 2004 12:50:31 -0300 Subject: Label and Symbol question In-Reply-To: <4120CFC2.5060109@geocontent.de> Message-ID: El lun, 16-08-2004 a las 12:16, Dirk Jesko escribi?: > Hi, > > Two short questions: > > 1. Is it possible to create a label that consists of more than one item, > e.g. streetname and number or postal code and city name? Since a layer > can have one LABELITEM only, I don't see a way to achieve this. > > 2. I have a point-shape and would like to draw a circle with a fixed > radius, e.g. 500m, for each point. As far as I under stand it, symbols > have a fixed size, so they would not work. Further, the documentation > states, that a layer of type circle requires the bounding box. So this > would not work either, since the shape just contains the center point. > Is there another way? > See the Layer atribute SIZEUNITS for a 500 km circle, but the problems for me is that the legend simbol also grows as you zoom in. LALO > Thanks, > Dirk -- Eduardo Spremolla Antel I+D From woodbri at SWOODBRIDGE.COM Mon Aug 16 08:57:27 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 16 Aug 2004 11:57:27 -0400 Subject: querying two attributes at once In-Reply-To: <20040816151527.8759.qmail@web11807.mail.yahoo.com> Message-ID: OK, my bad! I'll try to correct and clarify. There are a bunch of query function in mapscript: queryByPoint queryByRect queryByShape queryByFeature queryByAttributes -- not available via CGI interface?? If you are trying to select items by there attributes you probably want to use queryByAttributes but this does not seem to be available in my CGI reference doc. The other strategy would be to set up a FILTER and then queryByRect to cover the area you are interested in. Both of these methods may be very slow depending on the amount of data you are look at. the other queryBy* function expect spatial coordinates (like lat/lon) as input. Sorry if I confused anyone. -Steve Jacob Blankenship wrote: > Will the query string also support latitude and > longitude? > > --- Stephen Woodbridge > wrote: > > >>Mike Mannomann wrote: >> >>>Hi List. >>> >>>My problems is, I want to do a query using two >> >>items in one shape. I want >> >>>to query a polygon with an expression kind of: >> >>town = Berlin and >> >>>streetname = abc or something like this and I want >> >>to have the result >> >>>zoomed. >> >>Mike, >> >>Try setting your query string to: >> >>"[TOWN]='Berlin' && [STREETNAME]='abc'" >> >>-Steve W. >> > > > > > > __________________________________ > Do you Yahoo!? > New and Improved Yahoo! Mail - Send 10MB messages! > http://promotions.yahoo.com/new_mail > From kgeurts at GIS.UMN.EDU Mon Aug 16 09:04:17 2004 From: kgeurts at GIS.UMN.EDU (Kari Geurts) Date: Mon, 16 Aug 2004 11:04:17 -0500 Subject: just another test Message-ID: Just needed to test this out. Thanks, Kari From keon at NACSE.ORG Mon Aug 16 09:07:33 2004 From: keon at NACSE.ORG (Dylan Keon) Date: Mon, 16 Aug 2004 09:07:33 -0700 Subject: projection trouble - Michigan GeoRef Message-ID: Hi, I'm trying to use a layer that's projected in the "Michigan GeoRef" projection, but I can't get it to line up with other data. I'm using the projection parameters provided by the state of Michigan (http://www.michigan.gov/documents/DNR_Map_Proj_and_MI_Georef_Info_20889_7.pdf). Here's what I get when trying to line up a Michigan layer (GeoRef projection) with a national 24k quad index (geographic), putting everything into geographic for now: http://gis.nacse.org/mstemp/109267161738211.png I haven't found examples of this online, and wonder if I messed up a PROJ definition or something. Thanks for any help. Mapfile is below. --Dylan NAME 'test' SIZE 640 480 STATUS ON EXTENT -126 34 -66 46 UNITS DD IMAGETYPE png WEB IMAGEPATH '/www/temp/' IMAGEURL '/temp/' END PROJECTION 'init=epsg:4326' #latlon END LAYER NAME 'quad_index' DATA '/gis/data/us/24kgrid.shp' STATUS DEFAULT TYPE POLYGON CLASS COLOR -1 -1 -1 OUTLINECOLOR 0 0 255 END PROJECTION 'init=epsg:4326' #latlon END END LAYER NAME 'ecoregions' DATA '/gis/data/mi/ecoreg100' STATUS DEFAULT TYPE POLYGON CLASS #simple for now COLOR 198 123 48 END PROJECTION #NAD 1983 Michigan GeoRef Meters <102123> 'proj=omerc' 'k_0=0.9996' 'lat_0=45.30916666666666' 'alpha=337.255555555556' 'lonc=-86' #'x_0=2546731.496' # PROJ #'y_0=-4354009.816' # manual #'ellps=GRS80' # says these are not #'datum=NAD83' # needed for oblique mercator, #'units=m' # but I tried them too, #'no_defs' # in various combinations END END END From lfilak at MEDINACO.ORG Mon Aug 16 09:41:45 2004 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Mon, 16 Aug 2004 12:41:45 -0400 Subject: Couple of questions on MapScript and the Map File Message-ID: There is an angle member for the label object but it will not rotate the entire map. Is that what your looking for? Lowell The following message was sent by Huey Brantley on Fri, 13 Aug 2004 14:48:27 -0500. > 1) Is there a way to apply a rotation to the map with mapscript? I have > found references to a "ANGLE" member but I don't think mapscript > supports it. > > 2) Can you label using multiple fields from a data source? I'd like to > concatenate two or more fields to form the label. > > Thanks, > Huey Brantley > Vanderbilt University From huey.brantley at VANDERBILT.EDU Mon Aug 16 10:03:21 2004 From: huey.brantley at VANDERBILT.EDU (Huey Brantley) Date: Mon, 16 Aug 2004 12:03:21 -0500 Subject: Couple of questions on MapScript and the Map File In-Reply-To: <20040816164139.F41711A65A5@mail.medinaco.org> Message-ID: No. Sean's reply was the answer I was looking for. /Answer to 1 is yes, for the SWIG and PHP mapscripts, version 4.3 (in CVS only). You never asked the question so directly on IRC this morning. :) Sean / Huey Lowell Filak wrote: >There is an angle member for the label object but it will not rotate the >entire map. >Is that what your looking for? > >Lowell > >The following message was sent by Huey Brantley > on Fri, 13 Aug 2004 14:48:27 -0500. > > > >>1) Is there a way to apply a rotation to the map with mapscript? I have >>found references to a "ANGLE" member but I don't think mapscript >>supports it. >> >>2) Can you label using multiple fields from a data source? I'd like to >>concatenate two or more fields to form the label. >> >>Thanks, >>Huey Brantley >>Vanderbilt University >> >> > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sweykam at TELELINE.ES Mon Aug 16 10:17:37 2004 From: sweykam at TELELINE.ES (Stefanie Weykam) Date: Mon, 16 Aug 2004 19:17:37 +0200 Subject: Feature Object and text Message-ID: Hi all, I have an annotation layer, it contains a point (feature) and a string to label this point. Actually, the string is the title of the map and I want to change it according to the currently displayed theme. Is there any feature object which can be set by MapScript? The Class Reference doesn't mention any. And, how do I change the color of the label? I always get error messages saying that the property (both color and text) don't exist or that the function setRGB() is undefined....??? Which objects do have these properties - do I nedd colorObjects? styleObjects?? How do I create them? Thanks, Stefanie LAYER NAME "subtit" STATUS ON TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 635 10 END TEXT "Species Richness" # "a species name" END CLASS LABEL TYPE TRUETYPE FONT verdana # verdana-italic SIZE 12 POSITION LL COLOR 80 130 0 # 160 90 0 END END END From sgillies at FRII.COM Mon Aug 16 10:44:14 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Mon, 16 Aug 2004 11:44:14 -0600 Subject: Feature Object and text In-Reply-To: Message-ID: On Aug 16, 2004, at 11:17 AM, Stefanie Weykam wrote: > Hi all, > I have an annotation layer, it contains a point (feature) and a string > to > label this point. > Actually, the string is the title of the map and I want to change it > according to the currently displayed theme. > Is there any feature object which can be set by MapScript? The Class > Reference doesn't mention any. And, how do I change the color of the > label? > I always get error messages saying that the property (both color and > text) > don't exist or that the function setRGB() is undefined....??? > Which objects do have these properties - do I nedd colorObjects? > styleObjects?? How do I create them? > Thanks, > Stefanie > > LAYER > NAME "subtit" > STATUS ON > TRANSFORM FALSE > TYPE ANNOTATION > FEATURE > POINTS 635 10 END > TEXT "Species Richness" # "a species name" > END > CLASS > LABEL > TYPE TRUETYPE > FONT verdana # verdana-italic > SIZE 12 > POSITION LL > COLOR 80 130 0 # 160 90 0 > END > END > END > > Stephanie, Support for inline features is currently limited. You cannot access a feature once it is in the feature "set". The thing to do is to leave out the FEATURE block in your map file, and insert a new feature as needed: p = mapscript.pointObj(635, 10) # the point s = mapscript.shapeObj(layer.type) # new shape to hold point l = mapscript.lineObj() # point must be in a line l.add(p) # add point to line s.add(l) # add line to shape s.text = 'Species Richness' # label for point layer.addFeature(s) layer.draw(map, image) cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From eric at GOMOOS.ORG Mon Aug 16 10:56:00 2004 From: eric at GOMOOS.ORG (Eric Bridger) Date: Mon, 16 Aug 2004 13:56:00 -0400 Subject: Feature Object and text In-Reply-To: Message-ID: On Mon, 2004-08-16 at 13:44, Sean Gillies wrote: > On Aug 16, 2004, at 11:17 AM, Stefanie Weykam wrote: > > > Hi all, > > I have an annotation layer, it contains a point (feature) and a string > > to > > label this point. > > Actually, the string is the title of the map and I want to change it > > according to the currently displayed theme. > > Is there any feature object which can be set by MapScript? The Class > > Reference doesn't mention any. And, how do I change the color of the > > label? > > I always get error messages saying that the property (both color and > > text) > > don't exist or that the function setRGB() is undefined....??? > > Which objects do have these properties - do I nedd colorObjects? > > styleObjects?? How do I create them? > > Thanks, > > Stefanie > > > > LAYER > > NAME "subtit" > > STATUS ON > > TRANSFORM FALSE > > TYPE ANNOTATION > > FEATURE > > POINTS 635 10 END > > TEXT "Species Richness" # "a species name" > > END > > CLASS > > LABEL > > TYPE TRUETYPE > > FONT verdana # verdana-italic > > SIZE 12 > > POSITION LL > > COLOR 80 130 0 # 160 90 0 > > END > > END > > END > > > > > > Stephanie, > > Support for inline features is currently limited. You cannot > access a feature once it is in the feature "set". > > The thing to do is to leave out the FEATURE block in your map > file, and insert a new feature as needed: > > p = mapscript.pointObj(635, 10) # the point > s = mapscript.shapeObj(layer.type) # new shape to hold point > l = mapscript.lineObj() # point must be in a line > l.add(p) # add point to line > s.add(l) # add line to shape > > s.text = 'Species Richness' # label for point > layer.addFeature(s) > > layer.draw(map, image) > To continue Sean's excellent and concise (Python) example (in Perl/PHP): I've found that even though the FEATURE is at the layer level, it will use the LABLE COLOR from the first CLASS. So before your layer.draw() $class = $layer->getClass(0); $class->{label}->{color}->setRGB(255,0,0); Alternatively: $red = new mapscript::colorObj(255,0,0); $class->{label}->{color} = $red; Eric From c-rbinns at STATE.PA.US Mon Aug 16 10:52:05 2004 From: c-rbinns at STATE.PA.US (Rich Binns) Date: Mon, 16 Aug 2004 12:52:05 -0500 Subject: Benchmarks Message-ID: Was wondering if anyone could direct me to where I could find benchmark info comparing Mapserver to proprietary solutions, specifically ArcIMS. From sgillies at FRII.COM Mon Aug 16 11:16:09 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Mon, 16 Aug 2004 12:16:09 -0600 Subject: Feature Object and text In-Reply-To: <1092678965.1520.21.camel@ubet.gomoos.org> Message-ID: On Aug 16, 2004, at 11:56 AM, Eric Bridger wrote: > On Mon, 2004-08-16 at 13:44, Sean Gillies wrote: >> On Aug 16, 2004, at 11:17 AM, Stefanie Weykam wrote: >> >>> Hi all, >>> I have an annotation layer, it contains a point (feature) and a >>> string >>> to >>> label this point. >>> Actually, the string is the title of the map and I want to change it >>> according to the currently displayed theme. >>> Is there any feature object which can be set by MapScript? The Class >>> Reference doesn't mention any. And, how do I change the color of the >>> label? >>> I always get error messages saying that the property (both color and >>> text) >>> don't exist or that the function setRGB() is undefined....??? >>> Which objects do have these properties - do I nedd colorObjects? >>> styleObjects?? How do I create them? >>> Thanks, >>> Stefanie >>> >>> LAYER >>> NAME "subtit" >>> STATUS ON >>> TRANSFORM FALSE >>> TYPE ANNOTATION >>> FEATURE >>> POINTS 635 10 END >>> TEXT "Species Richness" # "a species name" >>> END >>> CLASS >>> LABEL >>> TYPE TRUETYPE >>> FONT verdana # verdana-italic >>> SIZE 12 >>> POSITION LL >>> COLOR 80 130 0 # 160 90 0 >>> END >>> END >>> END >>> >>> >> >> Stephanie, >> >> Support for inline features is currently limited. You cannot >> access a feature once it is in the feature "set". >> >> The thing to do is to leave out the FEATURE block in your map >> file, and insert a new feature as needed: >> >> p = mapscript.pointObj(635, 10) # the point >> s = mapscript.shapeObj(layer.type) # new shape to hold point >> l = mapscript.lineObj() # point must be in a line >> l.add(p) # add point to line >> s.add(l) # add line to shape >> >> s.text = 'Species Richness' # label for point >> layer.addFeature(s) >> >> layer.draw(map, image) >> > > To continue Sean's excellent and concise (Python) example (in > Perl/PHP): > I've found that even though the FEATURE is at the layer level, it will > use the LABLE COLOR from the first CLASS. So before your layer.draw() > $class = $layer->getClass(0); > $class->{label}->{color}->setRGB(255,0,0); > > Alternatively: > > $red = new mapscript::colorObj(255,0,0); > $class->{label}->{color} = $red; > > Eric > Thanks for the follow up, Eric. My example is no good without styles and colors! Related: shapeObj has a classindex attribute, and ideally we should be able to set s.classindex = 0 to use the first (index=0) class to style a shape. However, this hasn't been working for me in my latest tests of MapServer 4.3. Anybody else seeing the same problem? Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From ed at TOPOZONE.COM Mon Aug 16 11:26:14 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 16 Aug 2004 14:26:14 -0400 Subject: Benchmarks Message-ID: Rich - Are you aware of any benchmarks that compare ArcIMS to anything? Benchmarking Internet map servers is a extremely complicated subject, and I have not seen anyone make a serious attempt at doing it for ANY products. - 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 Rich Binns Sent: Monday, August 16, 2004 1:52 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Benchmarks Was wondering if anyone could direct me to where I could find benchmark info comparing Mapserver to proprietary solutions, specifically ArcIMS. From Ken.Waters at NOAA.GOV Mon Aug 16 11:33:29 2004 From: Ken.Waters at NOAA.GOV (Ken Waters) Date: Mon, 16 Aug 2004 08:33:29 -1000 Subject: Benchmarks Message-ID: All, Last weekend I was at an ESRI seminar, in conjunction with their annual conference. Somehow this question came up. The ESRI "unofficial" answer was that they have such statistics but have elected to not share them. Fair enough. I think it would be great for someone who is not associated with any company or other interests to do an objective test of the different solutions. Maybe this hasn't happened due to the complexity that Ed refers to here. Ken Ed McNierney wrote: > Rich - > > Are you aware of any benchmarks that compare ArcIMS to anything? > Benchmarking Internet map servers is a extremely complicated subject, > and I have not seen anyone make a serious attempt at doing it for ANY > products. > > - 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 Rich Binns > Sent: Monday, August 16, 2004 1:52 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Benchmarks > > Was wondering if anyone could direct me to where I could find benchmark > info comparing Mapserver to proprietary solutions, specifically ArcIMS. From ed at TOPOZONE.COM Mon Aug 16 11:53:10 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 16 Aug 2004 14:53:10 -0400 Subject: Benchmarks Message-ID: Ken - I think the complexity is one issue. I think the other issue is that these are expensive products, and it's hard to see an independent lab doing the tests unless the vendors donate their software. And if ESRI is unwilling to publish the results of the tests they control, I'd doubt very much that they'd be willing to give free software so someone else could publish tests they DON'T control! - Ed -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ken Waters Sent: Monday, August 16, 2004 2:33 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Benchmarks All, Last weekend I was at an ESRI seminar, in conjunction with their annual conference. Somehow this question came up. The ESRI "unofficial" answer was that they have such statistics but have elected to not share them. Fair enough. I think it would be great for someone who is not associated with any company or other interests to do an objective test of the different solutions. Maybe this hasn't happened due to the complexity that Ed refers to here. Ken Ed McNierney wrote: > Rich - > > Are you aware of any benchmarks that compare ArcIMS to anything? > Benchmarking Internet map servers is a extremely complicated subject, > and I have not seen anyone make a serious attempt at doing it for ANY > products. > > - 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 Rich Binns > Sent: Monday, August 16, 2004 1:52 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Benchmarks > > Was wondering if anyone could direct me to where I could find > benchmark info comparing Mapserver to proprietary solutions, specifically ArcIMS. From markadams at CUESTASYS.COM Mon Aug 16 11:39:15 2004 From: markadams at CUESTASYS.COM (Mark Adams) Date: Mon, 16 Aug 2004 14:39:15 -0400 Subject: method to retrieve field types Message-ID: Hi all, is there a way with mapscript/mapserver to get the field types for fields in a shape file? We can get the field names using PHP, and if we were able to use PHP 5 we could get the types that way too, but since we?re using mapscript we can?t use PHP 5. Any suggestions? Thanks in advance. ------------------------------ Mark Adams Business & Systems Analyst Cuesta Systems Inc. 5230 South Service Road Burlington, ON L7L 5K2 Phone: 905-333-4544 x14 Fax: 905-333-0455 Email: markadams at cuestasys.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ARyan at CO.LINN.OR.US Mon Aug 16 12:06:06 2004 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Mon, 16 Aug 2004 12:06:06 -0700 Subject: method to retrieve field types Message-ID: Mark, This is kind of ugly but it spits back an array of information from the dbf header file. // $f is a dbf file path, returns an array of field arrays function dbf_fields($file){ $h = fopen($file,"rb"); $a = unpack("cversion/cyy/cmm/cdd/inumrecs/sheadsize/srecsize",fread($h,12)); fread($h,20);//skip some reserved space for($i=0;$i<($a["headsize"]-33)/32;$i++){ $f = array(); $fname = trim(fread($h,11)); $f["type"] = fread($h,1); fread($h,4); $f = array_merge($f,unpack("Clen/Cpre",fread($h,2))); fread($h,14); $flds[$fname] = $f; } fclose($h); return $flds; } Hope it helps, Adam -----Original Message----- From: Mark Adams [mailto:markadams at CUESTASYS.COM] Sent: Monday, August 16, 2004 11:39 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] method to retrieve field types Hi all, is there a way with mapscript/mapserver to get the field types for fields in a shape file? We can get the field names using PHP, and if we were able to use PHP 5 we could get the types that way too, but since we're using mapscript we can't use PHP 5. Any suggestions? Thanks in advance. ------------------------------ Mark Adams Business & Systems Analyst Cuesta Systems Inc. 5230 South Service Road Burlington, ON L7L 5K2 Phone: 905-333-4544 x14 Fax: 905-333-0455 Email: markadams at cuestasys.com From sgillies at FRII.COM Mon Aug 16 12:17:21 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Mon, 16 Aug 2004 13:17:21 -0600 Subject: method to retrieve field types In-Reply-To: <006601c483c0$589ead10$1300a8c0@cuestasys.com> Message-ID: On Aug 16, 2004, at 12:39 PM, Mark Adams wrote: > Hi all, is there a way with mapscript/mapserver to get the field types > for fields in a shape file? We can get the field names using PHP, and > if we were able to use PHP 5 we could get the types that way too, but > since we?re using mapscript we can?t use PHP 5. Any suggestions? > Mark, Add a feature enhancement request to Bugzilla ... shouldn't be too difficult to implement a method to return attribute types in a way that's similar to getting attribute names and values. Please cc me or assign the bug to me. Meanwhile, all attribute values returned by shapeObj::getValue() are strings. You could try to coerce them into ints and floats and check for exceptions or errors? Or take Ryan's suggestion and go through a PHP dbf module. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From kgrootendorst at BAIRD.COM Mon Aug 16 12:50:03 2004 From: kgrootendorst at BAIRD.COM (Kevin Grootendorst) Date: Mon, 16 Aug 2004 14:50:03 -0500 Subject: using query templates Message-ID: hello list, I'm trying to setup a mapfile so that when I use the query tool on a point, the info in the point attribute table is displayed in a customized template (actually, I want to set up a hotlink to a photo, with the path defined in the point attribute table, but for now I'm content with just understanding the basics). It was my understanding that I could just use the syntax TEMPLATE "photo.html" in the layer definition, and that template would automatically be used. However, when I perform the query, the results are displayed in the default query window (which I think is defined in query.phtml). Do I need to somehow make the layer 'query-able'? Do I need to set the map into a query mode? Or does that automatically happen when I select the query tool (I'm assuming it does)? Do I have to learn php programming in order to make new templates? Using Win 2000, MS 4.2 Kevin From bskarger at STUDENTS.WISC.EDU Mon Aug 16 13:52:37 2004 From: bskarger at STUDENTS.WISC.EDU (BONNER S KARGER) Date: Mon, 16 Aug 2004 15:52:37 -0500 Subject: CGI Mapserver: php template? Message-ID: Hello listers, When using the CGI MapServer, is it possible to send query results to multiple files? I'm trying to send CGI query results to two different files, one .html and one .php. Can this be done? According to the TEMPLATE documentation, it can take only 1 file, or a URI. I'm trying to grab a query result (from a .dbf) and use php to send that result to MySQL for a DB query. I cannot use ODBC connection, hence the use of php. Any ideas? Thanks ------------------------------------- Bonner Karger Soils Extension, UW-Madison 1525 Observatory Drive Madison, WI 53706 bskarger at wisc.edu From steve.lime at DNR.STATE.MN.US Mon Aug 16 14:29:08 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 16 Aug 2004 16:29:08 -0500 Subject: CGI Mapserver: php template? Message-ID: You'd do this using a URL template. Let's say you want to click on a polygon, get its ID and then generate a report out of MySQL. Well, MapServer will get you the right ID and can pass that along to another script (in PHP), but you'll have to right the PHP script. Sounds like you know that part. So, if you have a script called report.phtml you could write a template like: TEMPLATE "http://yourserver.wisc.edu/report.phtml?id=[ID]" You basically end up stringing queries together. Make sense? Steve >>> BONNER S KARGER 8/16/2004 3:52:37 PM >>> Hello listers, When using the CGI MapServer, is it possible to send query results to multiple files? I'm trying to send CGI query results to two different files, one .html and one .php. Can this be done? According to the TEMPLATE documentation, it can take only 1 file, or a URI. I'm trying to grab a query result (from a .dbf) and use php to send that result to MySQL for a DB query. I cannot use ODBC connection, hence the use of php. Any ideas? Thanks ------------------------------------- Bonner Karger Soils Extension, UW-Madison 1525 Observatory Drive Madison, WI 53706 bskarger at wisc.edu From oliver_ishmael at HOTMAIL.COM Mon Aug 16 15:31:16 2004 From: oliver_ishmael at HOTMAIL.COM (Oliver Ishmael) Date: Mon, 16 Aug 2004 23:31:16 +0100 Subject: problematic map file Message-ID: Hi All, I have been trying to display a map of the world using the attached .MAP file (also displayed below), however, this has met with limited success. All that i have managed to display is the .HTML template, unfortunately no image is displayed and no error messages are displayed. It might be a lot to ask but if you can see anything i've missed i would really appreciate any help you can provide. Cheers Oliver Ishmael MAP NAME world_tm IMAGETYPE PNG EXTENT 148.3 198.0 198.0 120.7 SIZE 600 400 SHAPEPATH "mapserver/data/" # Index of colours...http://webmonkey.wired.com/webmonkey/reference/color_codes/ IMAGECOLOR 95 158 180 WEB TEMPLATE 'world_tm.html' IMAGEPATH '../mapserver/data/tmp/' IMAGEURL '../mapserver/data/tmp/' END PROJECTION # this code can be found in the "epsg.file" (when opened in txt ed. it lists every projection # and their respective epsg codes) "init=epsg:2156" # for some reason this projection is usually dif from the layer projection...why?! END SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE TINY END STYLE 1 SIZE 200 2 COLOR 0 0 0 UNITS MILES INTERVALS 2 TRANSPARENT FALSE STATUS ON END # Start of LAYER DEFINITIONS --------------------------------------------- LAYER # African continent polygon layer begins here NAME Africa DATA Africa STATUS OFF TYPE POLYGON PROJECTION # this is the exact code for Egypt using UTM (just picked a country in Africa at random!) "init=epsg:4198" END CLASS COLOR 255 255 0 OUTLINECOLOR 255 255 0 END END # African continent polygon layer ends here LAYER # Asian continent polygon layer begins here NAME Asia DATA Asia STATUS OFF TYPE POLYGON PROJECTION # this is the exact code for India (just picked a country in Asia at random!) "init=epsg:4238" END CLASS COLOR 178 34 34 OUTLINECOLOR 255 255 0 END END # Asian continent polygon layer ends here LAYER # Australasian continent polygon layer begins here NAME Australasia DATA Australasia STATUS OFF TYPE POLYGON PROJECTION # this is the exact code for Australia (just picked a country in Australasia at random!) "init=epsg:4002" END CLASS COLOR 178 34 34 OUTLINECOLOR 255 255 0 END END # Australian continent polygon layer ends here LAYER # European continent polygon layer begins here NAME Europe DATA Europe STATUS OFF TYPE POLYGON PROJECTION # this is the exact code for Ireland using UTM (just picked a country in Europe at random!) "init=epsg:2156" END CLASS COLOR 178 34 34 OUTLINECOLOR 255 255 0 END END # European continent polygon layer ends here LAYER # North American continent polygon layer begins here NAME NorthA DATA NorthA STATUS DEFAULT TYPE POLYGON PROJECTION # this is the exact code for Illinois (just picked a state in North America at random!) "init=epsg:26770" END CLASS COLOR 178 34 34 OUTLINECOLOR 255 255 0 END END # North American continent polygon layer ends here LAYER # South American continent polygon layer begins here NAME SouthA DATA SouthA STATUS OFF TYPE POLYGON PROJECTION # this is the exact code for Brazil (just picked a country in South America at random!) "init=epsg:28992" END CLASS COLOR 178 34 34 OUTLINECOLOR 255 255 0 END END # South American continent polygon layer ends here # End of LAYER DEFINITIONS --------------------------------------------- END # end of map file/object _________________________________________________________________ Use MSN Messenger to send music and pics to your friends http://www.msn.co.uk/messenger -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: World_TM.map URL: From bskarger at STUDENTS.WISC.EDU Mon Aug 16 15:43:57 2004 From: bskarger at STUDENTS.WISC.EDU (BONNER S KARGER) Date: Mon, 16 Aug 2004 17:43:57 -0500 Subject: CGI Mapserver: php template? Message-ID: Thanks Steve, I'll give it a try. So, to use [ID] in the "report.phtml" page, I would create a php variable such as: $id = $_GET['ID']; correct? I'm planning to put the "report.phtml" page in an