From matt at aruke.com Mon Apr 1 02:00:30 2002 From: matt at aruke.com (Matt Carlson) Date: Mon, 1 Apr 2002 19:00:30 +0900 Subject: [mapserver-users] not unique image filenames problem References: <000b01c1d64d$a34098b0$7e3c2fc3@HSGIS> Message-ID: <000501c1d964$0f066980$0400a8c0@matt> i set the mime type to img/(image type) and wrote the image right on to the response print "Content-type: image/$ctext\r\n\r\n"; open(FILE,$mapfile); binmode(FILE); @buffer = ; foreach (@buffer){ print $_; } close(FILE); system("rm -f $mapfile"); i call this perl script right from the img src attribute. also for my variable mapfile i used a exclusively locked file counter as well as an application url token.. in case the filename was being generated at the same exact second. we did some serious stress testing and this is what worked best. hope it helps! matt ----- Original Message ----- From: "Stepan Kafka" To: ; Sent: Thursday, March 28, 2002 8:42 PM Subject: RE: [mapserver-users] not unique image filenames problem > I have had the same experience on some server. I solved it by using > > saveImage (where I generate the imagename from time) instead of > saveWebImage. Eg.: > > $imgname = $your_session_specific_string.time()."png"; > $img->saveImage($your_image_path.$imgname, MS_PNG, 0, 1, 0); > > then you can access the image via: > $url = $map->web->imageurl.$imgname; > > Stepan Kafka > > > -----P?vodn? zpr?va----- > > Od: owner-mapserver-users at lists.gis.umn.edu > > [mailto:owner-mapserver-users at lists.gis.umn.edu]za u?ivatele Vincent > > Schut > > Odesl?no: 28. b?ezna 2002 11:20 > > Komu: mapserver-users at lists.gis.umn.edu > > P?edm?t: [mapserver-users] not unique image filenames problem > > > > > > Hi folks, > > > > I'm running into a strange problem. Propably I'm doing something wrong :-) > > > > I'm using php/mapscript to create (quite simple) raster images > > and view them > > in a web page where you can zoom in/out and pan etc. > > Everything works well, except that sometimes not the desired image of the > > next zoom (or pan) operation appears, but an image that was created some > > steps ago. I found out that this happens because the > > $map->saveWebImage does > > *not* always create a new, unique name for the image to be saved > > in the temp > > directory. If an image with the same name already exists, the > > save apparently > > doesn't succeed and the old image is loaded. > > > > Something wrong with the way mapserver creates "unique" image file names? > > How to solve this? Anybody had the same experience? > > > > Curiously, > > > > Vincent Schut. > > > > > > From nacht at widerstand.org Mon Apr 1 03:16:35 2002 From: nacht at widerstand.org (:.d:.i:.z:.) Date: Mon, 1 Apr 2002 12:16:35 +0100 Subject: [mapserver-users] Problems.. In-Reply-To: <000501c1d964$0f066980$0400a8c0@matt> Message-ID: Programmatically everything with MapScript and everything is fine. But hey. I've done everything of the europa example files which comes with its own .map file. I've just downloaded some shape files off the ESRI website. Specifically one for San Francisco nad am inthe middle of trying to define a MAP file for it. Seems like nothing I do will get it to work. I just end up getting an empty graphic file. Not being particularly spacially minded, the .MAP file definition on the mapserver website doesn't make too much sense to me at the moment. is there a more concise referenceon the net covering both spatial concepts as well as defining a MAP file? any hints and tips regarding a map file would be much appreciated. Cheers .d. From mckenna at dmsolutions.ca Mon Apr 1 06:36:43 2002 From: mckenna at dmsolutions.ca (Jeff McKenna) Date: Mon, 01 Apr 2002 09:36:43 -0500 Subject: [mapserver-users] [Fwd: getFeatureInfo] Message-ID: <3CA8707B.513D0CF6@dmsolutions.ca> -------- Original Message -------- Subject: getFeatureInfo Date: Fri, 29 Mar 2002 12:11:10 -0500 From: Doug Nebert Reply-To: ddnebert at usgs.gov Organization: FGDC To: mckenna at dmsolutions.ca CC: Stephen Lime Jeff: How do I set up a getFeatureInfo on a mapserver layer? I looked on the website but did not see the particular example for this. But I did find your email link... Also, is there a way to slave the "STYLE" request in a WMS getMap request to go to one or another mapfile section? For example, I have set up a current conditions weather data server with both a WMS and WFS interface. Since it has many hourly parameters, I'd like to expose many possibilities to label. One convenient way to do this might be have one weather layer and have STYLEs for each parameter that would set the label item or symbol differently, requiring different mapfile blocks. Thus one could display temperature, dewpoint, wind direction, etc as "styles" of weather display. Is this possible, or must I treat these as distinct layers? Thanks. Doug. -- Douglas D. Nebert Geospatial Data Clearinghouse Coordinator FGDC/GSDI Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 Pager Messaging: http://clearinghouse3.fgdc.gov/dougmsg.html From hunt at zedxinc.com Mon Apr 1 10:31:42 2002 From: hunt at zedxinc.com (Aaron D. Hunt) Date: Mon, 1 Apr 2002 10:31:42 -0800 Subject: [mapserver-users] add a line of text at the bottom of each map generated Message-ID: <005801c1d9ab$78bfdf40$1805000a@helicity> Is there any way to have mapserver add a line of text and maybe a logo at the bottom of each map generated? Aaron D. Hunt -------------- next part -------------- An HTML attachment was scrubbed... URL: From pwpeterson at iesc.net Mon Apr 1 09:15:30 2002 From: pwpeterson at iesc.net (Paul Peterson) Date: Mon, 1 Apr 2002 09:15:30 -0800 Subject: [mapserver-users] Problems.. In-Reply-To: Message-ID: Are you using the correct extents/units? I had a smiliar problem... I had also downloaded some shapfiles to test with. I couldn't determine the extents to use until I found 'shpinfo', a util that gave me the numbers I needed. My copy of shpfile errored out after displaying the extents and I had to guess at the units to use. Through some minor tral and error with different units I was able to get it to work. I found shpinfo in ftp://gdal.velocet.ca/pub/outgoing/shapelib129_bin_win.zip This is for windows. I hope this helps... Paul -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of :.d:.i:.z:. Sent: Monday, April 01, 2002 3:17 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Problems.. Programmatically everything with MapScript and everything is fine. But hey. I've done everything of the europa example files which comes with its own .map file. I've just downloaded some shape files off the ESRI website. Specifically one for San Francisco nad am inthe middle of trying to define a MAP file for it. Seems like nothing I do will get it to work. I just end up getting an empty graphic file. Not being particularly spacially minded, the .MAP file definition on the mapserver website doesn't make too much sense to me at the moment. is there a more concise referenceon the net covering both spatial concepts as well as defining a MAP file? any hints and tips regarding a map file would be much appreciated. Cheers .d. From pushkar at ERC.MsState.Edu Mon Apr 1 09:48:30 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Mon, 1 Apr 2002 11:48:30 -0600 (CST) Subject: [mapserver-users] Problems with the Itasca demo and gifs/pngs. In-Reply-To: <20020331121753.A18789@wblogan.net> Message-ID: Ben, In the imagepath you need to give the absolute path to this tmp dir. while in the imageurl you will need to give the relative path to the tmp dir. from your map file. Also your tmp dir. must have write permissions. Also try checking the server's error log and mapserver's error log. > > I don't see that exact error message in the demo_readme > > troubleshooting section, but my version of GD doesn't support GIFs, so > > I thought that might be the problem anyway. So I converted all the > > GIFs in the "symbols" and "graphics" directories to PNGs, and changed > > all '.gif' extensions in "demo.map" to '.png'. Now the server will > > initialize, but I don't get any images. The images don't appear as > > broken, they just don't show up. I had similar problems once with a > > web script I was writing when I didn't send the correct image headers. > > Sorry, the images _are_ broken. The URIs for the images are > '/tmp/somerandomnumber.png' but there are no files under the server's > /tmp directory (which maps to /var/www/html/tmp on the filesystem). > Just wanted to clear that up. > > Thanks, > Ben > > -- > Ben Logan: ben at wblogan dot net > OpenPGP Key KeyID: A1ADD1F0 > > Would you *______really* want to get on a non-stop flight? > -- George Carlin > ------------------------------------------------------------------------------ PUSHKAR S. PRADHAN Research Assistant MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------------ From lfilak at medinaco.org Mon Apr 1 10:38:34 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Mon, 01 Apr 2002 13:38:34 -0500 Subject: [mapserver-users] add a line of text at the bottom of each map generated Message-ID: <200204011829.g31ITKQ06072@yogi.medinaco.net> This should help, check out: http://mapserver.gis.umn.edu/cgi-bin/wilma_hiliter/mapserver-users/0103/msg00026.html Lowell F The following message was sent by "Aaron D. Hunt" on Mon, 1 Apr 2002 10:31:42 -0800. > Is there any way to have mapserver add a line of text and maybe a logo > at the bottom of each map generated? > > > Aaron D. Hunt > > From michel at omnisystem.com.br Mon Apr 1 11:25:03 2002 From: michel at omnisystem.com.br (Michel M. dos Santos) Date: Mon, 1 Apr 2002 16:25:03 -0300 Subject: [mapserver-users] ANGLE AUTO labels with TRUETYPE and LINE features. The text isdisplayed wrong. In-Reply-To: References: <02032816121200.01389@cartman.omni> Message-ID: <02040116250300.01368@cartman.omni> Hi Dan, Yes, the version of GD is 1.8.4. I recompiled libgd 1.8.4 with -DHAVE_LIBTTF flag as you suggest. It works fine with freetype-1.3.1. Thanks a lot, -- []'s Michel M. dos Santos Em Qui 28 Mar 2002 21:11, Dan Keith escreveu: > Hi Michel, > > I have some more clues regarding this behavior... > > My MacOSX (which exhibits the bug) is using GD1.8.4 linked with Mapserver. > > My Linux box (running the most recent Debian software [unstable]) is > running GD2.0.1. > > I am almost certain that the bug is in the GD source file gdft.c in > the function gdImageStringFT(), which is responsible for invoking the > freetype library to draw a character at a time. The initial angle > calculated by mapserver is correct; mapserver appears to NOT be at > fault. > > gdImageStringFT() probably incorrectly computes the proper x/y > coordinates for the individual characters, resulting in the > appearance of a bad angle. > > My conjecture is that you are also running GD1.8.4. > > You may ask, "How come other people running 1.8.4 aren't experiencing > this bug?" The probable answer is that their GD is compiled with the > -DHAVE_LIBTTF flag on, which will enable mapserver to use an > alternate function, gdImageStringTTF(), which does not have the bug. > This is why people to build mapserver or GD for freetype 1.x do not > experience this bug (Steve Lime mentioned this last fact in a > previous message). > > Sooooo.... I am going to try to build GD2.0.1 and see if I can get > mapserver to link with it and see if it works. It may also be > possible to fix the bug directly in 1.8.4, which may be desirable if > GD2.0.1 is full of other bugs. > > Note that I was able to duplicate this bug without mapserver by > hacking the GD test file, gdtestft.c to draw angled text. The bug > reproduces quite nicely in isolation. > > later, > dan keith From vguzman at bigfoot.com Mon Apr 1 11:35:54 2002 From: vguzman at bigfoot.com (Vladimir =?ISO-8859-1?Q?Guzm=E1n?=) Date: Mon, 01 Apr 2002 14:35:54 -0500 Subject: [mapserver-users] add a line of text at the bottom of each map generated References: <005801c1d9ab$78bfdf40$1805000a@helicity> Message-ID: <3CA8B69A.80306@bigfoot.com> Aaron: You can defina a layer in your .map file like this: LAYER NAME credits STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 4 596 END #Coordinates in pixels where you want your text TEXT 'Type your text here' END CLASS LABEL TYPE TRUETYPE FONT Arial SIZE 7 ANTIALIAS TRUE COLOR 0 0 0 POSITION UR END END END Hope this helps. -- Vladimir Guzm?n R. ----------------- www.main-task.com Aaron D. Hunt wrote: > Is there any way to have mapserver add a line of text and maybe a logo > at the bottom of each map generated? > > > > > > Aaron D. Hunt > From hunt at zedxinc.com Mon Apr 1 14:43:02 2002 From: hunt at zedxinc.com (Aaron D. Hunt) Date: Mon, 1 Apr 2002 14:43:02 -0800 Subject: [mapserver-users] phpmapscript on feature text Message-ID: <00c201c1d9ce$95064130$1805000a@helicity> Thank you for the help on the credits. Is there a way to change the text in the feature area with php mapscript ? LAYER NAME release STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 555 260 END TEXT '© 2002 ' END CLASS LABEL TYPE TRUETYPE FONT Times SIZE 8 ANTIALIAS OUTLINECOLOR 255 255 255 COLOR 0 0 0 POSITION UL FORCE TRUE END END END Aaron D. Hunt Technical Manager ZedX Inc. Voice: 814-357-8490 Fax: 814-357-8499 -------------- next part -------------- An HTML attachment was scrubbed... URL: From morten at ngb.se Mon Apr 1 13:18:33 2002 From: morten at ngb.se (Morten Hulden) Date: Mon, 1 Apr 2002 23:18:33 +0200 (CEST) Subject: [mapserver-users] PHP-MapScript, Postgis & fills of polygons /w inner rings Message-ID: For some reason my mapserver does not honor inner rings of polygons, but fills everything, islands and all. Didn't find an explanation in tutorials or FAQs, so I though I should ask here. Is this specific to PHP-Mapscript? Or to Postgis (I use geometry POLYGON)? Does it work with CGI-version? Shapefiles? Or is it that GD can't do it? M. From TMitchell at lignum.com Mon Apr 1 13:35:39 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Mon, 1 Apr 2002 13:35:39 -0800 Subject: [mapserver-users] HTML image maps and PDF Message-ID: Hi guys, kinda off topic but not really. The terminology overlaps, but I'll try it anyhow :) I want to take an image of a map from mapserver and use HTML image maps (not to be confused with "image of a map") as web links to other documents. I know I could do the same sort of thing with Mapserver, but the target is for offline usage. If would be really nice to be able to do this kind of thing in a PDF file but even just straight HTML would do. Here's my (more direct) question. Anyone got any ideas for how I could take a shapefile or other vector data and use it as an HTML image map (aka hotspots?) on a web page. The input data would have some value in it that points to a URL or other file. Any ideas? Boy that's convoluted to explain. Tyler From steve.lime at dnr.state.mn.us Mon Apr 1 13:42:24 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Mon, 01 Apr 2002 15:42:24 -0600 Subject: [mapserver-users] PHP-MapScript, Postgis & fills of polygons /w inner rings Message-ID: Holes are supported, as are polygons with multiple outer rings. I'm not aware of any issues with shapefiles/SDE/inline features. The other authors would have to comment about their supported file formats. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Morten Hulden 04/01/02 03:18PM >>> For some reason my mapserver does not honor inner rings of polygons, but fills everything, islands and all. Didn't find an explanation in tutorials or FAQs, so I though I should ask here. Is this specific to PHP-Mapscript? Or to Postgis (I use geometry POLYGON)? Does it work with CGI-version? Shapefiles? Or is it that GD can't do it? M. From pkishor at GeoAnalytics.com Mon Apr 1 14:51:10 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Mon, 1 Apr 2002 16:51:10 -0600 Subject: [mapserver-users] mapscript 3.4->3.5 blues Message-ID: hi folks, I apologize, I must have been out smokin' sump'n and missed the following leap. In PHP/Mapscript 3.4 there was a queryUsingPoint that returned a queryObject. In fact, that still seems to be the case for Perl/Mapscript. But PHP/Mapscript now seems to have acquired a queryByPoint(pointObj point, int mode, double buffer) which returns an int. So, what do I do with this? In Perl I still have the queryObject that can give me the shapeIndex, etc. so I can have fun with the map. But I am now stuck in a cul-de-php-sac. As my daughter would say, "Like, wuzzup?" tia, pk/ From pkishor at GeoAnalytics.com Mon Apr 1 14:53:21 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Mon, 1 Apr 2002 16:53:21 -0600 Subject: [mapserver-users] RE: mapscript 3.4->3.5 blues Message-ID: never mind... pl. ignore this. duh! puneet. pk/ > -----Original Message----- > From: Puneet Kishor > Sent: Monday, April 01, 2002 4:51 PM > To: mapserver-users at lists.gis.umn.edu > Subject: mapscript 3.4->3.5 blues > > > hi folks, > > I apologize, I must have been out smokin' sump'n and missed > the following leap. > > In PHP/Mapscript 3.4 there was a queryUsingPoint that > returned a queryObject. In fact, that still seems to be the > case for Perl/Mapscript. But PHP/Mapscript now seems to have > acquired a queryByPoint(pointObj point, int mode, double > buffer) which returns an int. > > So, what do I do with this? In Perl I still have the > queryObject that can give me the shapeIndex, etc. so I can > have fun with the map. But I am now stuck in a cul-de-php-sac. > > As my daughter would say, "Like, wuzzup?" > > tia, > > pk/ > From imap at chesapeake.net Mon Apr 1 15:55:10 2002 From: imap at chesapeake.net (imap at chesapeake.net) Date: Mon, 01 Apr 2002 18:55:10 -0500 Subject: [mapserver-users] HTML image maps and PDF References: Message-ID: <3CA8F35E.9B4B785C@chesapeake.net> Tyler, The way I generated an HTML imagemap, was from mapscript... you have to loop thru all of the element of the labelCache and spit out all of the bounding polygonal data for the labels and markers that you place on the image. I have an example of this someplace, but cant locate it at the moment. I will try to locate it for you later when I get a chance... Regards, Chris Stuber (mapsurfer) Tyler Mitchell wrote: > > Hi guys, kinda off topic but not really. The terminology overlaps, but > I'll try it anyhow :) > I want to take an image of a map from mapserver and use HTML image maps > (not to be confused with "image of a map") as web links to other documents. > I know I could do the same sort of thing with Mapserver, but the target is > for offline usage. If would be really nice to be able to do this kind of > thing in a PDF file but even just straight HTML would do. > Here's my (more direct) question. Anyone got any ideas for how I could > take a shapefile or other vector data and use it as an HTML image map (aka > hotspots?) on a web page. The input data would have some value in it that > points to a URL or other file. > > Any ideas? Boy that's convoluted to explain. > > Tyler From pramsey at refractions.net Mon Apr 1 16:10:19 2002 From: pramsey at refractions.net (Paul Ramsey) Date: Mon, 01 Apr 2002 16:10:19 -0800 Subject: [mapserver-users] PHP-MapScript, Postgis & fills of polygons /w inner rings References: Message-ID: <3CA8F6EB.2A928209@refractions.net> Dollars to donuts says you have a degenerate Shape file. All it takes is a slight coordinate error, and the flood fill with get out of the boundaries and fill in everything. Unfortunately, files which display "just fine" in ArcView can occasionally have topology errors, because ArcView will paper over some error cases. Morten Hulden wrote: > > For some reason my mapserver does not honor inner rings of polygons, > but fills everything, islands and all. > > Didn't find an explanation in tutorials or FAQs, so I though I should ask > here. > > Is this specific to PHP-Mapscript? Or to Postgis (I use geometry POLYGON)? > Does it work with CGI-version? Shapefiles? Or is it that GD can't do it? > > M. -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From erwin at perik.nu Mon Apr 1 16:45:36 2002 From: erwin at perik.nu (E Perik) Date: Tue, 2 Apr 2002 02:45:36 +0200 Subject: [mapserver-users] HTML image maps and PDF In-Reply-To: Message-ID: <000001c1d9df$b7b6f600$967ba8c0@xp> Hi Tyler, How it can be done: 1) Retreive shape 2) Get it's extents (geo-coords!) 3) Determine it's Center point 4) Translate Center point to Pixel-coordinates 5) Retreive shape-info from dbf-file Looks something like this: ... When you load the image, use like: * HREF is your HTML or PDF you want to refer to * ALT is 'mouse-hovering' information Tip: use the overlib class from http://www.bosrup.com/web/overlib/ BTW, did some stuff on this earlier, and found out that it cannot be used on the PHP/Rosa combination. Bypassed this to use a popup and then use points of queried objects to use for the USEMAP (imagemap). Does anyone know if Rosa can handle USEMAPS ? Erwin -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of Tyler Mitchell Sent: Monday, April 01, 2002 11:36 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] HTML image maps and PDF Hi guys, kinda off topic but not really. The terminology overlaps, but I'll try it anyhow :) I want to take an image of a map from mapserver and use HTML image maps (not to be confused with "image of a map") as web links to other documents. I know I could do the same sort of thing with Mapserver, but the target is for offline usage. If would be really nice to be able to do this kind of thing in a PDF file but even just straight HTML would do. Here's my (more direct) question. Anyone got any ideas for how I could take a shapefile or other vector data and use it as an HTML image map (aka hotspots?) on a web page. The input data would have some value in it that points to a URL or other file. Any ideas? Boy that's convoluted to explain. Tyler From woodbri at swoodbridge.com Mon Apr 1 16:57:39 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 01 Apr 2002 19:57:39 -0500 Subject: [mapserver-users] phpmapscript on feature text References: <00c201c1d9ce$95064130$1805000a@helicity> Message-ID: <3CA90203.9A5FE661@swoodbridge.com> Aaron, Yes you can do that. Define the layer in the map file with an empty FEATURE END block. Then in PHP/Mapscript create a ShapeObj and add a point with the location where you want the label to go and add the text string to the ShapeObj. the get the Layer by name, and $oLayer->addFeature($oshape); and draw the layer. I haven't actually done this but I think it should work. Let us know the results. So something like this: $oPoint = ms_newLineObj(); # shape wants a line object as list of points $oPoint->setXY($myX, $myY); $oShape = ms_newShapeObj(MS_SHAPE_POINT); $oShape->set("text", "© 2002 Name of Copyright Owner"); $oShape->add($oPoint); $oLayer = $map->getLayerByName("release"); $oLayer->addFeature($oShape); $image = $map->draw(); $oLayer->draw($image); Or something very close to this anyway. -Steve W. > "Aaron D. Hunt" wrote: > > Thank you for the help on the credits. > > Is there a way to change the text in the feature area with php > mapscript ? > > LAYER > NAME release > STATUS DEFAULT > TRANSFORM FALSE > TYPE ANNOTATION > FEATURE > POINTS 555 260 END > TEXT '© 2002 ' > END > CLASS > LABEL > TYPE TRUETYPE > FONT Times > SIZE 8 > ANTIALIAS > OUTLINECOLOR 255 255 255 > COLOR 0 0 0 > POSITION UL > FORCE TRUE > END > END > END > > Aaron D. Hunt > Technical Manager > ZedX Inc. > Voice: 814-357-8490 > Fax: 814-357-8499 From robert at wotzhere.com Mon Apr 1 17:15:23 2002 From: robert at wotzhere.com (Robert Crossley) Date: Tue, 02 Apr 2002 11:15:23 +1000 Subject: [mapserver-users] Best way of returning data at a point and doing something with it? Message-ID: Hi, First posting, so firstly I'd like to compliment the developers on the progress so far. We've been trialling Mapserver for a month now, and have been able to make it do quite a lot thanks to the archives of this list and the docs so far. Very impressed with the product. This list is also pretty impressive. I've been on the MapInfo-L list for about 8 years now, and thought it was pretty good, but the correspondance that flows though this list overshadows that list greatly. Be a while before I'll be able to contribute much, but will probably develop some MapInfo apps to generate Map files etc. that I could share. Look forward to the development on being able to read Mapinfo files also. Anyway, we have reached a point in a project that we have to make some strategic decisions and we need some advice on the best way of proceeding from here. We have a Image Web Server (IWS) app delivering aerial and satellite imagery to clients and MapServer delivering vector data to the IWS server on request. We also have an ActiveX control on the client side to give a lot of functionality at the client end (possibly to be replaced by a java applet in the future when IWS goes java). The application is for a captive audience so can be as specific as we want. Once this one is over, we intend to port it to a linux server, and have a simpler client side app that isn't MS based, but for now it is on a M$oft site. Our issue is to how best allow clients to query a location and change this data. We have used the standard query tool to be able to extract the data from a shape file and display in a table with a map. Very cute. We also put some buttons on it to close the window and dummy submit button to a database that could contain code to write data back to the server. But the data in the production system will be on a SQL server database, so it seems that we have a couple of options: - making the data for the query layer to be a table, or preferably a view in the M$ SQL-server database (how hard is this?) - make the query templates ASP pages that uses the ID retreived from MapServer to then retrieve the data from the database and display it in a table. It seems that either way, the page can have a submit button that calls a subroutine to process any changes to the data on the client side and writes it back to the database. The first option seems conceptually simpler and may be more powerful than we are giving it credit for, but the second option may be more flexable and allow us to eventually use a dll to do the data retreival from the database. Like I said, am not sure of the implications of either, but would like any advice or pointers to docs on the subject. Thanks in advance Robert. Robert Crossley Robert Crossley & Associates 9 Short St New Brighton NSW 2483 AUSTRALIA P: 02 6680 1309 F: New Connection M: 0419 718 642 E: robert at wotzhere.com From matt at aruke.com Mon Apr 1 18:24:47 2002 From: matt at aruke.com (Matt Carlson) Date: Tue, 2 Apr 2002 11:24:47 +0900 Subject: No subject References: <00c201c1d9ce$95064130$1805000a@helicity> <3CA90203.9A5FE661@swoodbridge.com> Message-ID: <000b01c1d9ed$8fe65cc0$0400a8c0@matt> unsubscribe mapserver-users matt at aruke.com From pwpeterson at iesc.net Mon Apr 1 19:04:16 2002 From: pwpeterson at iesc.net (Paul Peterson) Date: Mon, 1 Apr 2002 19:04:16 -0800 Subject: [mapserver-users] Problems.. In-Reply-To: Message-ID: I tried to get the extents using arcExplore 3.1, but couldn't. I don't think it's meant to. Regarding the shpinfo memory error... Mine errored as well, but it displayed the extent info before crashing. I was able to continue my testing with these numbers, however, I had to guess at the units. If I get time I'll see if I can recompile shipinfo.c on my win2k box and get around the error. Paul -----Original Message----- From: :.d:.i:.z:. [mailto:nacht at widerstand.org] Sent: Monday, April 01, 2002 3:54 PM To: Paul Peterson Subject: RE: [mapserver-users] Problems.. hi there cheers for the quick reply. i've downloaded the shpinfo tools but it wont run on my win2000 box =( i keep getting a memory access error. do you happen to know how to get an extent of a shp file using ArcExplorer 2.0 ? Cheers for any help you could provide... .d. > > Are you using the correct extents/units? > > I had a smiliar problem... I had also downloaded some shapfiles to test > with. I couldn't determine the extents to use until I found 'shpinfo', a > util that gave me the numbers I needed. My copy of shpfile errored out > after displaying the extents and I had to guess at the units to use. > Through some minor tral and error with different units I was able > to get it > to work. > > I found shpinfo in > ftp://gdal.velocet.ca/pub/outgoing/shapelib129_bin_win.zip This is for > windows. > > I hope this helps... > > Paul > > > > > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of :.d:.i:.z:. > Sent: Monday, April 01, 2002 3:17 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] Problems.. > > > Programmatically everything with MapScript and everything is > fine. But hey. > > I've done everything of the europa example files which comes with its own > .map file. > > I've just downloaded some shape files off the ESRI website. > Specifically one > for San Francisco nad am inthe middle of trying to define a MAP > file for it. > Seems like nothing I do will get it to work. I just end up > getting an empty > graphic file. Not being particularly spacially minded, the .MAP file > definition on the mapserver website doesn't make too much sense > to me at the > moment. is there a more concise referenceon the net covering both spatial > concepts as well as defining a MAP file? > > any hints and tips regarding a map file would be much appreciated. > > Cheers > > .d. > > > > From shostko at ureach.com Mon Apr 1 22:07:56 2002 From: shostko at ureach.com (Alexander Shostko) Date: Tue, 2 Apr 2002 01:07:56 -0500 Subject: [mapserver-users] Mapserver and mapscript APIS for color changing Message-ID: <200204020607.BAA11466@www23.ureach.com> Dear Mapserver Users ! I need to change the colors dynamically for certain polygins and/or for layers (depends on how the image is composed). The mapfile provides color definition, but I would like to change it based on some time-dependent process. I plan to invoke the function (integrated into mapserver after processing the map file) or using mapscript. If anyone can suggest the APIs to use for -> layers color setting -> individual polygon color setting (based on the attributes in *.dbf file) I will very much appreciate it. Thanks in advance, Alexander Shostko shostko at ureach.com From Steffen_Macke at dorsch.com.jo Mon Apr 1 22:55:01 2002 From: Steffen_Macke at dorsch.com.jo (Steffen_Macke at dorsch.com.jo) Date: Tue, 2 Apr 2002 08:55:01 +0200 Subject: [mapserver-users] Problems.. Message-ID: Paul, try to switch on the scalebar in ArcExplorer, this shoul allow you to determine the extents of the map. Steffen From shayes at bigpond.net.au Mon Apr 1 23:18:43 2002 From: shayes at bigpond.net.au (Steven Hayes) Date: Tue, 2 Apr 2002 17:18:43 +1000 Subject: [mapserver-users] Changing the color of a point with Mapscript Message-ID: <000301c1da16$9fa52320$55458990@tndn151qlhf5gi> Hi All, I use mapscript to dynamically create a point layer with the results of a query to a MySQL table. Once a hash table is populated from a MySQL query the following subroutine runs: ################################################################ sub make_unlabled_points { my ($layer_name) = @_; $layer = $map->getLayerByName($layer_name); my $i = 1; # site counter foreach my $s (@sample_sites) { $point->{x} = $s->{lon}; $point->{y} = $s->{lat}; $point->draw($map, $layer, $img, undef, undef); $i++; } } ############################################################### Given a reference to an existing layer definition in the map file a nice field of points is rendered. The following is an example of one of the layers commonly used: ############################################################## LAYER NAME sw_sites_no_lab TYPE point STATUS DEFAULT DATA locations CLASS SYMBOL 3 SIZE 3 NAME "sample sites" COLOR 254 0 0 END END ############################################################## The reference to the DATA being in the locations shape file is irrelevant as the layer definition simply provides symbology. And here is my problem...I can now do more complex queries of my underlying data and would like to render points in varying colours reflecting value ranges. How can I do this with mapscript? The truly dumb and stupid way would be to define various layers with different symbology but that limits me severely and gives no real scope for user interaction like refining the colour ramp based on the range of values in the returned data. Regards Steven Hayes From lfilak at medinaco.org Tue Apr 2 04:24:42 2002 From: lfilak at medinaco.org (Lowell.Filak) Date: Tue, 2 Apr 2002 07:24:42 -0500 (EST) Subject: [mapserver-users] mapscript 3.4->3.5 blues In-Reply-To: Message-ID: You may still have an older version running, Perl/Mapscript should also return an integer on a query.? The resultCacheObj's now stay in the layerObj. Lowell F. On Mon, 1 Apr 2002, Puneet Kishor wrote: > hi folks, > > I apologize, I must have been out smokin' sump'n and missed the following > leap. > > In PHP/Mapscript 3.4 there was a queryUsingPoint that returned a > queryObject. In fact, that still seems to be the case for Perl/Mapscript. > But PHP/Mapscript now seems to have acquired a queryByPoint(pointObj point, > int mode, double buffer) which returns an int. > > So, what do I do with this? In Perl I still have the queryObject that can > give me the shapeIndex, etc. so I can have fun with the map. But I am now > stuck in a cul-de-php-sac. > > As my daughter would say, "Like, wuzzup?" > > tia, > > pk/ > From lfilak at medinaco.org Tue Apr 2 04:37:37 2002 From: lfilak at medinaco.org (Lowell.Filak) Date: Tue, 2 Apr 2002 07:37:37 -0500 (EST) Subject: [mapserver-users] Best way of returning data at a point and doing something with it? In-Reply-To: Message-ID: I don't know if you have looked at or used any mapscript yet but option 2 would be easily done using mapscript/Perl or PHP. Your second option seems to point more towards a PostGIS/SDE/SDO setup which could also incorporate mapscript but not need to. Lowell F. On Tue, 2 Apr 2002, Robert Crossley wrote: > Hi, > > First posting, so firstly I'd like to compliment the developers on the progress so far. We've been trialling Mapserver for a month now, and have been able to make it do > quite a lot thanks to the archives of this list and the docs so far. Very impressed with the product. > > This list is also pretty impressive. I've been on the MapInfo-L list for about 8 years now, and thought it was pretty good, but the correspondance that flows though this > list overshadows that list greatly. Be a while before I'll be able to contribute much, but will probably develop some MapInfo apps to generate Map files etc. that I could > share. Look forward to the development on being able to read Mapinfo files also. > > Anyway, we have reached a point in a project that we have to make some strategic decisions and we need some advice on the best way of proceeding from here. > > We have a Image Web Server (IWS) app delivering aerial and satellite imagery to clients and MapServer delivering vector data to the IWS server on request. We > also have an ActiveX control on the client side to give a lot of functionality at the client end (possibly to be replaced by a java applet in the future when IWS goes > java). The application is for a captive audience so can be as specific as we want. Once this one is over, we intend to port it to a linux server, and have a simpler > client side app that isn't MS based, but for now it is on a M$oft site. > > Our issue is to how best allow clients to query a location and change this data. > > We have used the standard query tool to be able to extract the data from a shape file and display in a table with a map. Very cute. We also put some buttons on it to > close the window and dummy submit button to a database that could contain code to write data back to the server. > > But the data in the production system will be on a SQL server database, so it seems that we have a couple of options: > - making the data for the query layer to be a table, or preferably a view in the M$ SQL-server database (how hard is this?) > - make the query templates ASP pages that uses the ID retreived from MapServer to then retrieve the data from the database and display it in a table. > > It seems that either way, the page can have a submit button that calls a subroutine to process any changes to the data on the client side and writes it back to the > database. > > The first option seems conceptually simpler and may be more powerful than we are giving it credit for, but the second option may be more flexable and allow us to > eventually use a dll to do the data retreival from the database. Like I said, am not sure of the implications of either, but would like any advice or pointers to docs on > the subject. > > Thanks in advance > Robert. > > Robert Crossley > Robert Crossley & Associates > 9 Short St > New Brighton NSW 2483 > AUSTRALIA > > P: 02 6680 1309 > F: New Connection > M: 0419 718 642 > E: robert at wotzhere.com > > > From Jan.Mantkowski at gmx.de Tue Apr 2 04:46:24 2002 From: Jan.Mantkowski at gmx.de (Jan Mantkowski) Date: Tue, 2 Apr 2002 14:46:24 +0200 (MEST) Subject: [mapserver-users] X-Priority: 3 (Normal) Message-ID: <31896.1017751584@www58.gmx.net> Hi all, i like to use a map at my website to map the registered users. I use php and mysql. I have a cgi-bin folder. You can see my first implementation at http://www.jan-mantkowski.de/modules.php?op=modload&name=map&file=index. The map part is not working, because there is no mapserver right now. Unfortunately the mapserver seem nbot to be available as a "ready to install" file like the windows binaries. Where can i get a compiled version? I do not have linux, unix whatever nor do i know how to use. Is there a version available that i can put into the cgi-bin folder and that will do the work? How can i get out what operating szstem is in use at my website? Thanks, Jan From steve.lime at dnr.state.mn.us Tue Apr 2 05:27:18 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Tue, 02 Apr 2002 07:27:18 -0600 Subject: [mapserver-users] Problems.. Message-ID: Go to google, search on shape checker. There's a utility out there by that name that will do exactly what you want. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 04/02/02 01:21 AM >>> Paul, try to switch on the scalebar in ArcExplorer, this shoul allow you to determine the extents of the map. Steffen From lfilak at medinaco.org Tue Apr 2 05:28:30 2002 From: lfilak at medinaco.org (Lowell.Filak) Date: Tue, 2 Apr 2002 08:28:30 -0500 (EST) Subject: [mapserver-users] Mapserver and mapscript APIS for color changing In-Reply-To: <200204020607.BAA11466@www23.ureach.com> Message-ID: The following two links may help give you an idea of how to do this: http://mapserver.gis.umn.edu/wilma/mapserver-users/0008/threads.html#00102 http://mapserver.gis.umn.edu/cgi-bin/wilma_hiliter/mapserver-users/0108/msg00057 .html I'm sure there are more links for that subject as it seems to come up from time to time. Lowell F. On Tue, 2 Apr 2002, Alexander Shostko wrote: > Dear Mapserver Users ! > > I need to change the colors dynamically for certain polygins > and/or for layers (depends on how the image is composed). The > mapfile provides color definition, but I would like to change > it based on some time-dependent process. > > I plan to invoke the function (integrated into mapserver after > processing the map file) or using mapscript. > > If anyone can suggest the APIs to use for > > -> layers color setting > -> individual polygon color setting (based on the attributes in > *.dbf file) > > I will very much appreciate it. > > Thanks in advance, > > Alexander Shostko > shostko at ureach.com > From Andreas.Maul at bgr.de Tue Apr 2 07:21:12 2002 From: Andreas.Maul at bgr.de (Maul, Andreas-Alexander) Date: Tue, 2 Apr 2002 16:21:12 +0100 Subject: [mapserver-users] datum transformation with php_proj.dll Message-ID: Hi, I have the following problem with php-proj.dll (from php4.1.2_php_mapscript_36-dev_libwww.zip) and similar with cs2cs (from proj-4.4.3): I want to perform a coordinate and datum transformation from geographic coordinates (WGS84 ellipsoid) to Gauss-Krueger coordinates (i.e. do a transversal Mercator projection with Bessel ellipsoid corresponding to epsg:31493) and using php. Applying this php code: Longitude: $lon
Latitude: $lat

"; echo "Output:
x: $x
y: $y
"; ?> I get the result: longitude 9 deg east -> x = 3500000. (ok) latitude 54 deg north -> y = 5985297.54 (that is Bessel -> Bessel ellipsoid) but it should be: latitude 54 deg north -> y = 5985234.24 (WGS84 -> Bessel ellipsoid) These results are the same when transforming 9 deg E, 54 deg N with cs2cs +proj=latlong +ellps=WGS84 +to +proj=tmerc +ellps=bessel +k=1. +lat_0=0. +lon_0=9. +x_0=3500000. +y_0=0. -v It seems that the transformation uses the same ellipsoid for both systems (Bessel in this case). Are there any hints? Regards, Andreas From morissette at dmsolutions.ca Tue Apr 2 07:07:54 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 02 Apr 2002 10:07:54 -0500 Subject: [mapserver-users] [Fwd: getFeatureInfo] References: <3CA8707B.513D0CF6@dmsolutions.ca> Message-ID: <3CA9C94A.1773F78D@dmsolutions.ca> Hi Doug, Doug Nebert wrote: > > How do I set up a getFeatureInfo on a mapserver layer? I looked > on the website but did not see the particular example for this. Do you mean making a layer queryable via GetFeatureInfo WMS requests? Simply setting a query template in your layer definition in the mapfile makes it queryable in the WMS Capabilities, and then you can use it in a GetFeatureInfo request. GetFeatureInfo supports up to three INFO_FORMATs in the latest version of MapServer depending on your configuration: - INFO_FORMAT=text/plain - List feature ids and attibute names value in plain text format - INFO_FORMAT=application/vnd.ogc.gml - returns selected features in GML format. You also have to set "DUMP TRUE" in your layer to enable this. - INFO_FORMAT=text/html - Uses the MapServer query template to produce query results in HTML format. Works exactly like the traditional mapserv CGI query templates. > Also, is there a way to slave the "STYLE" request in a WMS getMap > request to go to one or another mapfile section? For example, I > have set up a current conditions weather data server with both > a WMS and WFS interface. Since it has many hourly parameters, > I'd like to expose many possibilities to label. One convenient > way to do this might be have one weather layer and have STYLEs > for each parameter that would set the label item or symbol > differently, requiring different mapfile blocks. > Thus one could display temperature, dewpoint, wind direction, > etc as "styles" of weather display. Is this possible, or must > I treat these as distinct layers? > SLD and STYLEs are not supported by the current version. If I properly understood what you're trying to do, then it would seem that defining separate layers would be your best option for now. Best Regards, -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From warmerdam at pobox.com Tue Apr 2 08:17:36 2002 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 02 Apr 2002 11:17:36 -0500 Subject: [mapserver-users] datum transformation with php_proj.dll References: Message-ID: <3CA9D9A0.8080605@pobox.com> Maul, Andreas-Alexander wrote: > Hi, > I have the following problem with php-proj.dll (from > php4.1.2_php_mapscript_36-dev_libwww.zip) and similar with cs2cs (from > proj-4.4.3): > I want to perform a coordinate and datum transformation from geographic > coordinates (WGS84 ellipsoid) to Gauss-Krueger coordinates (i.e. do a > transversal Mercator projection with Bessel ellipsoid corresponding to > epsg:31493) and using php. > Applying this php code: > > $lat = doubleval(54.); > $lon = doubleval( 9.); > > $paramll[0] = "proj=latlong"; > $paramll[1] = "ellps=WGS84"; > $projll = pj_init($paramll); > > $paramgk[0] = "proj=tmerc"; > $paramgk[1] = "ellps=bessel"; > $paramgk[2] = "lat_0=0."; > $paramgk[3] = "lon_0=9."; > $paramgk[4] = "k=1."; > $paramgk[5] = "x_0=3500000."; > $paramgk[6] = "y_0=0."; > $paramgk[7] = "units=m"; > $projgk = pj_init($paramgk); Andreas, The problem is that you haven't specified the datums and PROJ.4 doesn't automatically convert between ellipsoids. If you want do the above translation and assuming no datum shift is needed (likely a bad assumption) you would just need to specify "0" datum shift parameters. Use +datum=WGS84 for WGS84, and "+ellps=bessel +towgs84=0,0,0" for the bessel indicating that no datum shift is required to shift to wgs84. Hopefully I will incorporate some improved warnings into PROJ.4 in the future as this is a frequently encountered problem. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From david.fawcett at moea.state.mn.us Tue Apr 2 08:28:50 2002 From: david.fawcett at moea.state.mn.us (Fawcett, David) Date: Tue, 2 Apr 2002 10:28:50 -0600 Subject: [mapserver-users] Listserv Problems? Message-ID: Is anyone else receiving multiple copies of posts? I seem to be getting second and third copies of some posts, delayed by a few days. David. David J. Fawcett GIS / Databases MN Office of Environmental Assistance 520 Lafayette Rd N St. Paul, MN 55155 651.215.0200 From pkishor at GeoAnalytics.com Tue Apr 2 08:28:43 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Tue, 2 Apr 2002 10:28:43 -0600 Subject: [mapserver-users] how come drawMap works? Message-ID: Daniel, You had a really funny quote in your email the other day... something to the tune of... "when we discover what we were doing wrong all this time, its a wonder it worked at all...." I quite accidentally had been using drawMap() for rendering my map, until I discovered that was not a part of PHP/Mapscript 3.5 anymore. So, how the heck does it still work? Did you folks leave it in there for backward-compatibility? :-) pk/ From morissette at dmsolutions.ca Tue Apr 2 09:03:27 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 02 Apr 2002 12:03:27 -0500 Subject: [mapserver-users] how come drawMap works? References: Message-ID: <3CA9E45F.3415FCB@dmsolutions.ca> Puneet Kishor wrote: > > I quite accidentally had been using drawMap() for rendering my map, until I > discovered that was not a part of PHP/Mapscript 3.5 anymore. So, how the > heck does it still work? Did you folks leave it in there for > backward-compatibility? > drawMap() is not there at all in PHP/Mapscript 3.5 ... you should get an error about this in your HTML source (do a "View Source" in your browser). -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From pkishor at GeoAnalytics.com Tue Apr 2 09:08:28 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Tue, 2 Apr 2002 11:08:28 -0600 Subject: [mapserver-users] how come drawMap works? Message-ID: dunno man... no error at all... it happily draws the map for me. go figure. pk/ > -----Original Message----- > From: Daniel Morissette [mailto:morissette at dmsolutions.ca] > Sent: Tuesday, April 02, 2002 11:03 AM > To: Puneet Kishor > Cc: MapServer-list > Subject: Re: [mapserver-users] how come drawMap works? > > > Puneet Kishor wrote: > > > > I quite accidentally had been using drawMap() for rendering > my map, until I > > discovered that was not a part of PHP/Mapscript 3.5 > anymore. So, how the > > heck does it still work? Did you folks leave it in there for > > backward-compatibility? > > > > drawMap() is not there at all in PHP/Mapscript 3.5 ... you > should get an > error about this in your HTML source (do a "View Source" in your > browser). > > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. > From jan.mantkowski at gmx.de Tue Apr 2 09:08:30 2002 From: jan.mantkowski at gmx.de (Jan Mantkowski) Date: Tue, 2 Apr 2002 18:08:30 +0100 Subject: [mapserver-users] Where to get MapServer "ready to run" for cgi-bin folder of cheap webspace? Message-ID: Hi, is there a chance to have a version of Mapserver that will run at real cheap webspace. With cheap i mean everything less than 90 US$/year. In general it is not possible to compile or to place files in the php extension folder or to change the php.ini file. Is there a version available that can be placed in the cgi-bin folder and will just run? Without any compiling etc. Thanks, Jan From franknelson at hotmail.com Tue Apr 2 17:27:54 2002 From: franknelson at hotmail.com (Frank Nelson) Date: Tue, 02 Apr 2002 17:27:54 Subject: [mapserver-users] Help with compiling on Windows? Message-ID: Hello, I'm new to MapServer and at this point I'm still evaluating it. So far I'm very impressed. However, one of the key items I need to evaluate is its WMS Client capabilities. I'm currently using the binaries on Windows 2000 that I downloaded from the homepage. Per the instructions, I executed "mapserv -v" to check out what capabilites it was compiled with. WMS Server is in there, but not WMS Client. So I thought, no big deal, I'll just recompile it and turn on WMS Client. I didn't know what I was getting myself into!!! I'm not a C programmer. I've followed instructions, searched mailing list archives and 3 days later I don't feel like I'm getting any closer. It seems that compiling MapServer itself is straight forward as there is documentation and a VC++ makefile. However it is all the supporting libraries that I'm having problems with... and it looks like the regex library wasn't even meant to compile on windows. I think it would've been very helpful if, whoever compiled those binares for windows, also made available the source that was compiled.. even without documenation. Then I could learn by looking at the changes that were made in order to compile on Windows. I need all the help I can get but I don't expect anyone to spend tremendous amounts of time with me. So maybe, at a minimum I could get someone who has successfully compiled version 3.5 on Windows to jot down a few clues. Some sample questions I have are.. My understanding is that I need to get ZLib, FreeType and LibPNG copmiled first. Then those three will be used to in the GD compiling process. Then all of the above will be used in the MapServer compiling process.... am I on the right track? Regardless, I can't get anything other than PROJ4 to compile. For those libraries that don't have a Makefile.vc that I can't use VC++ on, what do I use to compile? I downloaded a gcc compiler that has the "make" command, but that doesn't seem to work on any of the makefiles and gcc compiles .c files into .exe's when I really need .lib's... I think I could get MapServer compiled if I could just get all these supporting libraries how they need to be. I don't expect anyone to answer ALL my question, but any little bit of information would be GREATLY appreciated!! _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com From morissette at dmsolutions.ca Tue Apr 2 09:29:17 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 02 Apr 2002 12:29:17 -0500 Subject: [mapserver-users] Listserv Problems? References: Message-ID: <3CA9EA6D.EFD51EDD@dmsolutions.ca> "Fawcett, David" wrote: > > Is anyone else receiving multiple copies of posts? I seem to be getting second and third copies of some posts, delayed by a few days. > Yes, we have noticed the same problem as well... it seems to have started a few weeks ago. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From pwpeterson at iesc.net Tue Apr 2 08:11:24 2002 From: pwpeterson at iesc.net (Paul Peterson) Date: Tue, 2 Apr 2002 08:11:24 -0800 Subject: [mapserver-users] Problems.. In-Reply-To: Message-ID: It works... I was able to determine the extents and unit with ArcExplore 3.1 I'm still very new with Shapefiles and GIS in general. I was hoping shpinfo or shpdump would present whatever information contained in a file in an easy to read/understand tabular layout. Thanks for the info. Thanks. -----Original Message----- From: Steffen_Macke at dorsch.com.jo [mailto:Steffen_Macke at dorsch.com.jo] Sent: Monday, April 01, 2002 10:55 PM To: Paul Peterson; mapserver Subject: RE: [mapserver-users] Problems.. Paul, try to switch on the scalebar in ArcExplorer, this shoul allow you to determine the extents of the map. Steffen From cogansco at msu.edu Tue Apr 2 10:06:18 2002 From: cogansco at msu.edu (Scott D Cogan) Date: Tue, 2 Apr 2002 13:06:18 -0500 Subject: [mapserver-users] change image size for REAL References: <3CA8707B.513D0CF6@dmsolutions.ca> <3CA9C94A.1773F78D@dmsolutions.ca> Message-ID: <004401c1da71$19876db0$224d0823@whalon6> i am trying to change the image size that gets drawn with mapscript using the $image=$map->draw() function. i change the dimensions before drawing each time: $map->width=400; $map->height=400; and i have changed the dimensions of the image in the HTML code. this works, but the problem is that it doesnt REALLY change the output size of the actual GIF image i am using. all that happens is that the 600x600 image gets scaled down to whatever size i told it to. this is unacceptable because in scaling down, many border lines are lost and the image is confusing. any ideas? -scott From pkishor at GeoAnalytics.com Tue Apr 2 10:10:11 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Tue, 2 Apr 2002 12:10:11 -0600 Subject: [mapserver-users] Listserv Problems? Message-ID: yup... me too. first I thought it was a wayward echo in a really large canyon, but now I feel relieved there are others as well. pk/ > -----Original Message----- > From: Fawcett, David [mailto:david.fawcett at moea.state.mn.us] > Sent: Tuesday, April 02, 2002 10:29 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] Listserv Problems? > > > Is anyone else receiving multiple copies of posts? I seem to > be getting second and third copies of some posts, delayed by > a few days. > > David. > > David J. Fawcett > GIS / Databases > > MN Office of Environmental Assistance > 520 Lafayette Rd N > St. Paul, MN 55155 > 651.215.0200 > From morissette at dmsolutions.ca Tue Apr 2 10:13:11 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 02 Apr 2002 13:13:11 -0500 Subject: [mapserver-users] change image size for REAL References: <3CA8707B.513D0CF6@dmsolutions.ca> <3CA9C94A.1773F78D@dmsolutions.ca> <004401c1da71$19876db0$224d0823@whalon6> Message-ID: <3CA9F4B7.5F5FE26F@dmsolutions.ca> Scott D Cogan wrote: > > i am trying to change the image size that gets drawn with mapscript using > the $image=$map->draw() function. > > i change the dimensions before drawing each time: > $map->width=400; > $map->height=400; > You should use: $map->set("width", 400); $map->set("height", 400); -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From assefa at dmsolutions.ca Tue Apr 2 10:15:54 2002 From: assefa at dmsolutions.ca (Assefa Yewondwossen) Date: Tue, 02 Apr 2002 13:15:54 -0500 Subject: [mapserver-users] change image size for REAL References: <3CA8707B.513D0CF6@dmsolutions.ca> <3CA9C94A.1773F78D@dmsolutions.ca> <004401c1da71$19876db0$224d0823@whalon6> Message-ID: <3CA9F55A.FFBE140C@dmsolutions.ca> Hi There, try the following : $map->set("width", 400) before the the redraw. Best Regrads Scott D Cogan wrote: > i am trying to change the image size that gets drawn with mapscript using > the $image=$map->draw() function. > > i change the dimensions before drawing each time: > $map->width=400; > $map->height=400; > > and i have changed the dimensions of the image in the HTML code. > this works, but the problem is that it doesnt REALLY change the output size > of the actual GIF image i am using. all that happens is that the 600x600 > image gets scaled down to whatever size i told it to. this is unacceptable > because in scaling down, many border lines are lost and the image is > confusing. any ideas? > -scott -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 Fax: (613) 565-0925 ---------------------------------------------------------------- From morissette at dmsolutions.ca Tue Apr 2 10:21:04 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 02 Apr 2002 13:21:04 -0500 Subject: [mapserver-users] Help with compiling on Windows? References: Message-ID: <3CA9F690.DDBE32A0@dmsolutions.ca> Frank, There should be a mapserv CGI executable compiled with WMS Client enabled in the following archive from our download site: http://www2.dmsolutions.ca/mapserver/dl/php4.1.2_php_mapscript_36-dev_libwww.zip Daniel Frank Nelson wrote: > > Hello, > I'm new to MapServer and at this point I'm still evaluating it. So far I'm > very impressed. However, one of the key items I need to evaluate is its WMS > Client capabilities. I'm currently using the binaries on Windows 2000 that > I downloaded from the homepage. Per the instructions, I executed "mapserv > -v" to check out what capabilites it was compiled with. WMS Server is in > there, but not WMS Client. So I thought, no big deal, I'll just recompile > it and turn on WMS Client. I didn't know what I was getting myself into!!! > I'm not a C programmer. I've followed instructions, searched mailing list > archives and 3 days later I don't feel like I'm getting any closer. It > seems that compiling MapServer itself is straight forward as there is > documentation and a VC++ makefile. However it is all the supporting > libraries that I'm having problems with... and it looks like the regex > library wasn't even meant to compile on windows. I think it would've been > very helpful if, whoever compiled those binares for windows, also made > available the source that was compiled.. even without documenation. Then I > could learn by looking at the changes that were made in order to compile on > Windows. > I need all the help I can get but I don't expect anyone to spend tremendous > amounts of time with me. So maybe, at a minimum I could get someone who has > successfully compiled version 3.5 on Windows to jot down a few clues. Some > sample questions I have are.. > My understanding is that I need to get ZLib, FreeType and LibPNG copmiled > first. Then those three will be used to in the GD compiling process. Then > all of the above will be used in the MapServer compiling process.... am I on > the right track? > Regardless, I can't get anything other than PROJ4 to compile. For those > libraries that don't have a Makefile.vc that I can't use VC++ on, what do I > use to compile? I downloaded a gcc compiler that has the "make" command, > but that doesn't seem to work on any of the makefiles and gcc compiles .c > files into .exe's when I really need .lib's... > I think I could get MapServer compiled if I could just get all these > supporting libraries how they need to be. > > I don't expect anyone to answer ALL my question, but any little bit of > information would be GREATLY appreciated!! > > _________________________________________________________________ > Chat with friends online, try MSN Messenger: http://messenger.msn.com From assefa at dmsolutions.ca Tue Apr 2 10:28:41 2002 From: assefa at dmsolutions.ca (Assefa Yewondwossen) Date: Tue, 02 Apr 2002 13:28:41 -0500 Subject: [mapserver-users] Help with compiling on Windows? References: Message-ID: <3CA9F859.FFB0CA1B@dmsolutions.ca> Hi There, If you only need the binarries, the mapserver site provides windows binaries with the WMS server and client support : http://mapserver.gis.umn.edu/win32bin/ms35gif_gdal_wms.zip Later, Frank Nelson wrote: > Hello, > I'm new to MapServer and at this point I'm still evaluating it. So far I'm > very impressed. However, one of the key items I need to evaluate is its WMS > Client capabilities. I'm currently using the binaries on Windows 2000 that > I downloaded from the homepage. Per the instructions, I executed "mapserv > -v" to check out what capabilites it was compiled with. WMS Server is in > there, but not WMS Client. So I thought, no big deal, I'll just recompile > it and turn on WMS Client. I didn't know what I was getting myself into!!! > I'm not a C programmer. I've followed instructions, searched mailing list > archives and 3 days later I don't feel like I'm getting any closer. It > seems that compiling MapServer itself is straight forward as there is > documentation and a VC++ makefile. However it is all the supporting > libraries that I'm having problems with... and it looks like the regex > library wasn't even meant to compile on windows. I think it would've been > very helpful if, whoever compiled those binares for windows, also made > available the source that was compiled.. even without documenation. Then I > could learn by looking at the changes that were made in order to compile on > Windows. > I need all the help I can get but I don't expect anyone to spend tremendous > amounts of time with me. So maybe, at a minimum I could get someone who has > successfully compiled version 3.5 on Windows to jot down a few clues. Some > sample questions I have are.. > My understanding is that I need to get ZLib, FreeType and LibPNG copmiled > first. Then those three will be used to in the GD compiling process. Then > all of the above will be used in the MapServer compiling process.... am I on > the right track? > Regardless, I can't get anything other than PROJ4 to compile. For those > libraries that don't have a Makefile.vc that I can't use VC++ on, what do I > use to compile? I downloaded a gcc compiler that has the "make" command, > but that doesn't seem to work on any of the makefiles and gcc compiles .c > files into .exe's when I really need .lib's... > I think I could get MapServer compiled if I could just get all these > supporting libraries how they need to be. > > I don't expect anyone to answer ALL my question, but any little bit of > information would be GREATLY appreciated!! > > _________________________________________________________________ > Chat with friends online, try MSN Messenger: http://messenger.msn.com -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 Fax: (613) 565-0925 ---------------------------------------------------------------- From TMitchell at lignum.com Tue Apr 2 10:47:29 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Tue, 2 Apr 2002 10:47:29 -0800 Subject: [mapserver-users] Listserv Problems? Message-ID: Sometimes I do. I'll think that I just read a message, then get it the following morning again :) I thought it was only when someone would reply to all - both me and mapserver gets a copy. (like my response to you :). Are you getting something more than that? I noticed that you email said it was sent 8:28am - I received it at ~10:45 - strange. Tyler "Fawcett, David" cc: Sent by: Fax to: owner-mapserver-users at lists.g Subject: [mapserver-users] Listserv Problems? is.umn.edu 04/02/2002 08:28 AM Is anyone else receiving multiple copies of posts? I seem to be getting second and third copies of some posts, delayed by a few days. David. David J. Fawcett GIS / Databases MN Office of Environmental Assistance 520 Lafayette Rd N St. Paul, MN 55155 651.215.0200 From vatsavai at cs.umn.edu Tue Apr 2 11:12:11 2002 From: vatsavai at cs.umn.edu (Ranga Raju Vatsavai) Date: Tue, 2 Apr 2002 13:12:11 -0600 (CST) Subject: [mapserver-users] Listserv Problems? In-Reply-To: Message-ID: <200204021912.NAA06591@europa.cs.umn.edu> Hello Mapserver-users, I observed that this is happenning for last couple of weeks. Nothing is changed on this machine which might have caused this problem. One strange thing is that not all messages are duplicated. This is an unknown problem, so might take a while to fix it. If anyone knows more about majordomo administration and can share useful information, then please send me a mail (vrraju at gis.umn.edu). Thanks Raju ---- > > Sometimes I do. I'll think that I just read a message, then get it the > following morning again :) > I thought it was only when someone would reply to all - both me and > mapserver gets a copy. (like my response to you :). Are you getting > something more than that? > I noticed that you email said it was sent 8:28am - I received it at ~10:45 > - strange. > > Tyler > > > > "Fawcett, David" > us> cc: > Sent by: Fax to: > owner-mapserver-users at lists.g Subject: [mapserver-users] Listserv Problems? > is.umn.edu > > > 04/02/2002 08:28 AM > > > > > > > Is anyone else receiving multiple copies of posts? I seem to be getting > second and third copies of some posts, delayed by a few days. > > David. > > David J. Fawcett > GIS / Databases > > MN Office of Environmental Assistance > 520 Lafayette Rd N > St. Paul, MN 55155 > 651.215.0200 > > > > > From lfilak at medinaco.org Tue Apr 2 11:22:18 2002 From: lfilak at medinaco.org (Lowell.Filak) Date: Tue, 2 Apr 2002 14:22:18 -0500 (EST) Subject: [mapserver-users] Listserv Problems? In-Reply-To: Message-ID: Yes. But I don't consider it a problem as long as I receive all the postings. Lowell F. On Tue, 2 Apr 2002, Fawcett, David wrote: > Is anyone else receiving multiple copies of posts? I seem to be getting second and third copies of some posts, delayed by a few days. > > David. > > David J. Fawcett > GIS / Databases > > MN Office of Environmental Assistance > 520 Lafayette Rd N > St. Paul, MN 55155 > 651.215.0200 > From ayakar at globvision.com Tue Apr 2 11:24:20 2002 From: ayakar at globvision.com (Ari Yakar) Date: Tue, 2 Apr 2002 14:24:20 -0500 Subject: [mapserver-users] Mapinfo TAB file FeatureIDs Message-ID: Hi I am using OGR to access Mapinfo TAB files and access data. Is there any way to read the feature IDs? Thanks Ari Yakar Globvision Inc. From lfilak at medinaco.org Tue Apr 2 11:35:09 2002 From: lfilak at medinaco.org (Lowell.Filak) Date: Tue, 2 Apr 2002 14:35:09 -0500 (EST) Subject: [mapserver-users] Where to get MapServer "ready to run" for cgi-bin folder of cheap webspace? In-Reply-To: Message-ID: Using the straight 'mapserv' cgi may be your only option. Just make sure to compile it on the same os (with hopefully the correct options) as the web server before uploading it. Making sure the temporary files are cleared out on a regular basis so as to not exceed your space limits is a different matter. Lowell F. On Tue, 2 Apr 2002, Jan Mantkowski wrote: > Hi, > > is there a chance to have a version of Mapserver that will run at real cheap > webspace. > With cheap i mean everything less than 90 US$/year. > > In general it is not possible to compile or to place files in the php > extension folder or to change the php.ini file. > > Is there a version available that can be placed in the cgi-bin folder and > will just run? > Without any compiling etc. > > > Thanks, > > Jan > From david.fawcett at moea.state.mn.us Tue Apr 2 11:41:38 2002 From: david.fawcett at moea.state.mn.us (Fawcett, David) Date: Tue, 2 Apr 2002 13:41:38 -0600 Subject: [mapserver-users] Listserv Problems? Message-ID: Thanks Raju, Because I hadn't seen any postings about the problem, I assumed that it was either a chronic case of deja vu or a mail server problem on my end. Thanks for clarifying the problem. David. David J. Fawcett GIS / Databases MN Office of Environmental Assistance 520 Lafayette Rd N St. Paul, MN 55155 651.215.0200 > ---------- > From: Ranga Raju Vatsavai[SMTP:vatsavai at cs.umn.edu] > Sent: Tuesday, April 02, 2002 1:12 PM > To: Tyler Mitchell > Cc: mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] Listserv Problems? > > Hello Mapserver-users, > > I observed that this is happenning for last couple of weeks. > Nothing is changed on this machine which might have caused > this problem. One strange thing is that not all messages > are duplicated. This is an unknown problem, so might take > a while to fix it. If anyone knows more about majordomo > administration and can share useful information, then please > send me a mail (vrraju at gis.umn.edu). > > Thanks > Raju > ---- > > > > Sometimes I do. I'll think that I just read a message, then get it the > > following morning again :) > > I thought it was only when someone would reply to all - both me and > > mapserver gets a copy. (like my response to you :). Are you getting > > something more than that? > > I noticed that you email said it was sent 8:28am - I received it at ~10:45 > > - strange. > > > > Tyler > > > > > > > > "Fawcett, David" > > > us> cc: > > Sent by: Fax to: > > owner-mapserver-users at lists.g Subject: [mapserver-users] Listserv Problems? > > is.umn.edu > > > > > > 04/02/2002 08:28 AM > > > > > > > > > > > > > > Is anyone else receiving multiple copies of posts? I seem to be getting > > second and third copies of some posts, delayed by a few days. > > > > David. > > > > David J. Fawcett > > GIS / Databases > > > > MN Office of Environmental Assistance > > 520 Lafayette Rd N > > St. Paul, MN 55155 > > 651.215.0200 > > > > > > > > > > > From vu at sivell.com Tue Apr 2 11:53:59 2002 From: vu at sivell.com (Vu Pham) Date: Tue, 02 Apr 2002 13:53:59 -0600 Subject: [mapserver-users] Listserv Problems? References: Message-ID: <3CAA0C57.3040402@sivell.com> Fawcett, David wrote: > Is anyone else receiving multiple copies of posts? I seem to be getting second and third copies of some posts, delayed by a few days. > > I am having the same problem. The first time I got the 2nd same post, I thought I had not replied. Vu From pnaciona at gis.umn.edu Tue Apr 2 11:58:26 2002 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Tue, 2 Apr 2002 13:58:26 -0600 Subject: [mapserver-users] Help with compiling on Windows? In-Reply-To: Message-ID: <002501c1da80$c13a0a40$b24d5ea0@dicentra> Frank, There are several MapServer binaries for Win32 available in the MapServer site. Some of them have WMS client support turned on and some don't. If you really want to compile them on your own using VC/C++ 6.0, I've packaged my source tree awhile back and made it available for download at http://arbutus.gis.umn.edu/projects/ms35.zip. It's about 95 Mb so might take forever to download if you're using a 56K modem. Good luck! Perry N. -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of Frank Nelson Sent: Tuesday, April 02, 2002 5:28 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Help with compiling on Windows? Hello, I'm new to MapServer and at this point I'm still evaluating it. So far I'm very impressed. However, one of the key items I need to evaluate is its WMS Client capabilities. I'm currently using the binaries on Windows 2000 that I downloaded from the homepage. Per the instructions, I executed "mapserv -v" to check out what capabilites it was compiled with. WMS Server is in there, but not WMS Client. So I thought, no big deal, I'll just recompile it and turn on WMS Client. I didn't know what I was getting myself into!!! I'm not a C programmer. I've followed instructions, searched mailing list archives and 3 days later I don't feel like I'm getting any closer. It seems that compiling MapServer itself is straight forward as there is documentation and a VC++ makefile. However it is all the supporting libraries that I'm having problems with... and it looks like the regex library wasn't even meant to compile on windows. I think it would've been very helpful if, whoever compiled those binares for windows, also made available the source that was compiled.. even without documenation. Then I could learn by looking at the changes that were made in order to compile on Windows. I need all the help I can get but I don't expect anyone to spend tremendous amounts of time with me. So maybe, at a minimum I could get someone who has successfully compiled version 3.5 on Windows to jot down a few clues. Some sample questions I have are.. My understanding is that I need to get ZLib, FreeType and LibPNG copmiled first. Then those three will be used to in the GD compiling process. Then all of the above will be used in the MapServer compiling process.... am I on the right track? Regardless, I can't get anything other than PROJ4 to compile. For those libraries that don't have a Makefile.vc that I can't use VC++ on, what do I use to compile? I downloaded a gcc compiler that has the "make" command, but that doesn't seem to work on any of the makefiles and gcc compiles .c files into .exe's when I really need .lib's... I think I could get MapServer compiled if I could just get all these supporting libraries how they need to be. I don't expect anyone to answer ALL my question, but any little bit of information would be GREATLY appreciated!! _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com From erwin at perik.nu Tue Apr 2 11:59:30 2002 From: erwin at perik.nu (E Perik) Date: Tue, 2 Apr 2002 21:59:30 +0200 Subject: [mapserver-users] change image size for REAL In-Reply-To: <004401c1da71$19876db0$224d0823@whalon6> Message-ID: <000701c1da80$e74ae9c0$967ba8c0@xp> Scott, Think you need to use (PHP) something like this: $Map = ms_newMapObj("yadayada.map"); // Resize to specific size $Map->set("width",400); $Map->set("height",400); Erwin -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of Scott D Cogan Sent: Tuesday, April 02, 2002 8:06 PM To: MapServer-list Subject: [mapserver-users] change image size for REAL i am trying to change the image size that gets drawn with mapscript using the $image=$map->draw() function. i change the dimensions before drawing each time: $map->width=400; $map->height=400; and i have changed the dimensions of the image in the HTML code. this works, but the problem is that it doesnt REALLY change the output size of the actual GIF image i am using. all that happens is that the 600x600 image gets scaled down to whatever size i told it to. this is unacceptable because in scaling down, many border lines are lost and the image is confusing. any ideas? -scott From lfilak at medinaco.org Tue Apr 2 12:04:00 2002 From: lfilak at medinaco.org (Lowell.Filak) Date: Tue, 2 Apr 2002 15:04:00 -0500 (EST) Subject: [mapserver-users] change image size for REAL In-Reply-To: <004401c1da71$19876db0$224d0823@whalon6> Message-ID: $map->{width} = 400; $map->{height} = 400; Should fix it. Lowell F. On Tue, 2 Apr 2002, Scott D Cogan wrote: > i am trying to change the image size that gets drawn with mapscript using > the $image=$map->draw() function. > > i change the dimensions before drawing each time: > $map->width=400; > $map->height=400; > > and i have changed the dimensions of the image in the HTML code. > this works, but the problem is that it doesnt REALLY change the output size > of the actual GIF image i am using. all that happens is that the 600x600 > image gets scaled down to whatever size i told it to. this is unacceptable > because in scaling down, many border lines are lost and the image is > confusing. any ideas? > -scott > From pkishor at GeoAnalytics.com Tue Apr 2 13:15:00 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Tue, 2 Apr 2002 15:15:00 -0600 Subject: [mapserver-users] how come drawMap works? Message-ID: never mind. You are right Daniel, I was all messed up. I am just wasting bw here. puneet{mode}->lurking > -----Original Message----- > From: Daniel Morissette [mailto:morissette at dmsolutions.ca] > Sent: Tuesday, April 02, 2002 11:03 AM > To: Puneet Kishor > Cc: MapServer-list > Subject: Re: [mapserver-users] how come drawMap works? > > > Puneet Kishor wrote: > > > > I quite accidentally had been using drawMap() for rendering > my map, until I > > discovered that was not a part of PHP/Mapscript 3.5 > anymore. So, how the > > heck does it still work? Did you folks leave it in there for > > backward-compatibility? > > > > drawMap() is not there at all in PHP/Mapscript 3.5 ... you > should get an > error about this in your HTML source (do a "View Source" in your > browser). > > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. > From pushkar at ERC.MsState.Edu Tue Apr 2 13:25:42 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Tue, 2 Apr 2002 15:25:42 -0600 (CST) Subject: [mapserver-users] Listserv Problems? In-Reply-To: Message-ID: Yes I am also getting two emails many times, also I have another problem, generally if I post my mesg. at 10:00 in the morning it shows up in the list after 2-3 hrs. But it reaches Steve Lime and other people who are managing the list immediately. > > Sometimes I do. I'll think that I just read a message, then get it the > following morning again :) > I thought it was only when someone would reply to all - both me and > mapserver gets a copy. (like my response to you :). Are you getting > something more than that? > I noticed that you email said it was sent 8:28am - I received it at ~10:45 > - strange. > > Tyler > > > > "Fawcett, David" > us> cc: > Sent by: Fax to: > owner-mapserver-users at lists.g Subject: [mapserver-users] Listserv Problems? > is.umn.edu > > > 04/02/2002 08:28 AM > > > > > > > Is anyone else receiving multiple copies of posts? I seem to be getting > second and third copies of some posts, delayed by a few days. > > David. > > David J. Fawcett > GIS / Databases > > MN Office of Environmental Assistance > 520 Lafayette Rd N > St. Paul, MN 55155 > 651.215.0200 > > > > > ------------------------------------------------------------------------------ PUSHKAR S. PRADHAN Research Assistant MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------------ From ayakar at globvision.com Tue Apr 2 13:29:05 2002 From: ayakar at globvision.com (Ari Yakar) Date: Tue, 2 Apr 2002 16:29:05 -0500 Subject: [mapserver-users] Mapinfo TAB file FeatureIDs In-Reply-To: <3CAA15C7.7050705@pobox.com> Message-ID: Frank, In MapX they call it FeatureID and I guess it is the feature numbers (order) in table file. But anyway, it looks like it is going to be simpler and more reliable to use an ID field which is created by Mapinfo application. Thanks -----Original Message----- From: Frank Warmerdam [mailto:warmerdam at pobox.com] Sent: Tuesday, April 02, 2002 3:34 PM To: Ari Yakar Subject: Re: [mapserver-users] Mapinfo TAB file FeatureIDs Ari Yakar wrote: > Hi > > I am using OGR to access Mapinfo TAB files and access data. > Is there any way to read the feature IDs? Ari, I am not sure what you mean by feature id. The features in a tab file are numbered (at least by the OGR API). Is that the feature id you want? Are you wanting it from MapScript? Best regards, -- ---------------------------------------+------------------------------------ -- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From lfilak at medinaco.org Tue Apr 2 13:34:44 2002 From: lfilak at medinaco.org (Lowell.Filak) Date: Tue, 2 Apr 2002 16:34:44 -0500 (EST) Subject: [mapserver-users] Problems.. In-Reply-To: Message-ID: Hmmm... Good point. Attached is an update to the dump.pl in the mapscript/perl/examples directory that prints the bounding rectangle at the end of the printout. Note: If your running it on a big shapefile and are interested in more than just the final extent make sure to send the output to a file. perl dump.pl -file= > shapefile.dump On Tue, 2 Apr 2002, Paul Peterson wrote: > It works... I was able to determine the extents and unit with ArcExplore 3.1 > > I'm still very new with Shapefiles and GIS in general. I was hoping shpinfo > or shpdump would present whatever information contained in a file in an easy > to read/understand tabular layout. > > Thanks for the info. > > Thanks. > > -----Original Message----- > From: Steffen_Macke at dorsch.com.jo [mailto:Steffen_Macke at dorsch.com.jo] > Sent: Monday, April 01, 2002 10:55 PM > To: Paul Peterson; mapserver > Subject: RE: [mapserver-users] Problems.. > > > > Paul, > > try to switch on the scalebar in ArcExplorer, this shoul allow you to > determine the > extents of the map. > > Steffen > > -------------- next part -------------- #!/usr/bin/perl use mapscript; use Getopt::Long; %types = ( '1' => 'point', '3' => 'arc', '5' => 'polygon', '8' => 'multipoint' ); my $shapeminx = 0, my $shapeminy = 0; my $shapemaxx = 1; my $shapemaxy = 1; &GetOptions("file=s", \$file); if(!$file) { print "Syntax: dump.pl -file=[filename]\n"; exit 0; } $shapefile = new shapefileObj($file, -1) or die "Unable to open shapefile $file"; print "Shapefile opened (type=". $types{$shapefile->{type}} .") with ". $shapefile->{numshapes} ." shape(s)\n"; $shape = new shapeObj(-1); for($i=0; $i<$shapefile->{numshapes}; $i++) { $shapefile->get($i, $shape); print "Shape $i has ". $shape->{numlines} ." part(s) - "; # # Get the bounds. my $minx = $shape->{bounds}->{minx}; my $miny = $shape->{bounds}->{miny}; my $maxx = $shape->{bounds}->{maxx}; my $maxy = $shape->{bounds}->{maxy}; printf "bounds (%f,%f) (%f,%f)\n", $minx, $miny, $maxx, $maxy; # # Is this the first shape. if ( $i == 0 ) { # # Set the initial bounds. $shapeminx = $minx; $shapeminy = $miny; $shapemaxx = $maxx; $shapemaxy = $maxy; } else { # # Create compounded shapefile extent. if ($minx < $shapeminx) { $shapeminx = $minx; } if ($miny < $shapeminy) { $shapeminy = $miny; } if ($maxx > $shapemaxx) { $shapemaxx = $maxx; } if ($maxy > $shapemaxy) { $shapemaxy = $maxy; } } for($j=0; $j<$shape->{numlines}; $j++) { $part = $shape->get($j); print "Part $j has ". $part->{numpoints} ." point(s)\n"; for($k=0; $k<$part->{numpoints}; $k++) { $point = $part->get($k); print "$k: ". $point->{x} .", ". $point->{y} ."\n"; } } } # # Print the shapefiles bounding rectangle. print "$file\'s Bounding Rectangle is $shapeminx, $shapeminy, $shapemaxx, $shapemaxy\n"; From vatsavai at cs.umn.edu Tue Apr 2 13:50:48 2002 From: vatsavai at cs.umn.edu (Ranga Raju Vatsavai) Date: Tue, 2 Apr 2002 15:50:48 -0600 (CST) Subject: [mapserver-users] Listserv Problems? and Delay? In-Reply-To: Message-ID: <200204022150.PAA07105@europa.cs.umn.edu> Well, there is no priority here ... Mail processing is done sequentially, and this sequence is established in the order of subscription (i.e. first come first basis). Steve Lime gets it first becasue he is one of the first subscribers to the list. I explained the reason for the delay before, here goes it again. We have more than 500 subscribes now and some of them are defunct permenantly and some are temporarily. For these defunct users, mailing system tries several times before givingup and sending 100's of error messages to the people who are managing this list - and hence the delay. Well, it takes few weeks to establish these defunct users and remove them from the list. Any ideas on how to make things fast are welcome. Thanks Raju ---- > Yes I am also getting two emails many times, also I have another problem, > generally if I post my mesg. at 10:00 in the morning it shows up in the > list after 2-3 hrs. But it reaches Steve Lime and other people who are > managing the list immediately. > > > > > Sometimes I do. I'll think that I just read a message, then get it the > > following morning again :) > > I thought it was only when someone would reply to all - both me and > > mapserver gets a copy. (like my response to you :). Are you getting > > something more than that? > > I noticed that you email said it was sent 8:28am - I received it at ~10:45 > > - strange. > > > > Tyler > > > > > > > > "Fawcett, David" > > > us> cc: > > Sent by: Fax to: > > owner-mapserver-users at lists.g Subject: [mapserver-users] Listserv Problems? > > is.umn.edu > > > > > > 04/02/2002 08:28 AM > > > > > > > > > > > > > > Is anyone else receiving multiple copies of posts? I seem to be getting > > second and third copies of some posts, delayed by a few days. > > > > David. > > > > David J. Fawcett > > GIS / Databases > > > > MN Office of Environmental Assistance > > 520 Lafayette Rd N > > St. Paul, MN 55155 > > 651.215.0200 > > > > > > > > > > > > ------------------------------------------------------------------------------ > PUSHKAR S. PRADHAN > Research Assistant > MISSISSIPPI STATE UNIVERSITY, > STARKVILLE, MS 39759. > > Engineering Research Center > Box 9627 > Mississippi State, MS 39762-9627 > ------------------------------------------------------------------------------ > From pushkar at ERC.MsState.Edu Tue Apr 2 14:19:28 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Tue, 2 Apr 2002 16:19:28 -0600 (CST) Subject: [mapserver-users] displaying layers in php Message-ID: Hi, I am new to php, mapscript, I am having php successfully display all the layers in my map file, but I want to select one layer at a time and display it just like the simple mapserv CGI program does. How can I do it? It would be great if anyone could send sample code. Thanks, ------------------------------------------------------------------------------ PUSHKAR S. PRADHAN Research Assistant MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------------ From woodbri at swoodbridge.com Tue Apr 2 14:31:45 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 02 Apr 2002 17:31:45 -0500 Subject: [mapserver-users] Listserv Problems? and Delay? References: <200204022150.PAA07105@europa.cs.umn.edu> Message-ID: <3CAA3151.F8B08840@swoodbridge.com> NO this is a REAL problem! and it has been happening for over a month now!! I have checked the full headers like the one below, and in every case it is coming through taiwan.com. Could you see if we have a user subscribed from taiwan.com and unsubscribe them until they get there mail problems straightened out. or maybe you can make more sense out of the headers. It is a most annoying problem. Thanks for any help in fixing this problem. -Steve Return-path: Envelope-to: woodbri at swoodbridge.com Delivery-date: Tue, 02 Apr 2002 16:20:39 -0500 Received: from lists.gis.umn.edu ([128.101.73.109]) by swoodbridge.com with esmtp (Exim 3.33 #1) id 16sVhj-0004YX-00 for woodbri at swoodbridge.com; Tue, 02 Apr 2002 16:20:35 -0500 Received: (from majordom at localhost) by lists.gis.umn.edu (8.9.3+Sun/8.9.1) id PAA06682 for mapserver-users-list; Tue, 2 Apr 2002 15:06:23 -0600 (CST) Received: from taiwan.com ([210.59.146.163]) by lists.gis.umn.edu (8.9.3+Sun/8.9.1) with SMTP id PAA06677 for ; Tue, 2 Apr 2002 15:06:16 -0600 (CST) Received: from taiwan.com([127.0.0.1]) by taiwan.com(JetMail 2.5.3.0) with SMTP id jm73caa3a72; Tue, 2 Apr 2002 21:00:15 -0000 Received: from lists.gis.umn.edu([128.101.73.109]) by taiwan.com(JetMail 2.5.3.0) with SMTP id jmda3ca52b4c; Sat, 30 Mar 2002 02:58:51 -0000 Received: (from majordom at localhost) by lists.gis.umn.edu (8.9.3+Sun/8.9.1) id RAA01768 for mapserver-users-list; Fri, 29 Mar 2002 17:28:31 -0600 (CST) Received: from ERC.MsState.Edu (Sniper.ERC.MsState.Edu [130.18.14.12]) by lists.gis.umn.edu (8.9.3+Sun/8.9.1) with ESMTP id RAA01764 for ; Fri, 29 Mar 2002 17:28:30 -0600 (CST) Received: from Titan.ERC.MsState.Edu (daemon at Titan.ERC.MsState.Edu [130.18.14.18]); by ERC.MsState.Edu (8.12.2/8.12.2/ERC-Mailhost/1.13) with ESMTP; id g2TNRHBU026477 for ; Fri, 29 Mar 2002 17:27:17 -0600 (CST) Received: from localhost (pushkar at localhost); by Titan.ERC.MsState.Edu (8.12.2/8.12.2/ERC-Solaris2/1.7) with ESMTP; id g2TNRESD024725 for ; Fri, 29 Mar 2002 17:27:14 -0600 (CST) X-Authentication-Warning: Titan.ERC.MsState.Edu: pushkar owned process doing -bs Ranga Raju Vatsavai wrote: > > Well, there is no priority here ... > Mail processing is done sequentially, and this sequence is established > in the order of subscription (i.e. first come first basis). Steve Lime > gets it first becasue he is one of the first subscribers to the list. > > I explained the reason for the delay before, here goes it again. > We have more than 500 subscribes now and some of them are defunct > permenantly and some are temporarily. For these defunct users, > mailing system tries several times before givingup and sending 100's > of error messages to the people who are managing this list - and hence > the delay. > > Well, it takes few weeks to establish these defunct users and remove > them from the list. Any ideas on how to make things fast are welcome. > > Thanks > Raju > ---- > > > Yes I am also getting two emails many times, also I have another problem, > > generally if I post my mesg. at 10:00 in the morning it shows up in the > > list after 2-3 hrs. But it reaches Steve Lime and other people who are > > managing the list immediately. > > > > > > > > Sometimes I do. I'll think that I just read a message, then get it the > > > following morning again :) > > > I thought it was only when someone would reply to all - both me and > > > mapserver gets a copy. (like my response to you :). Are you getting > > > something more than that? > > > I noticed that you email said it was sent 8:28am - I received it at ~10:45 > > > - strange. > > > > > > Tyler > > > > > > > > > > > > "Fawcett, David" > > > > > us> cc: > > > Sent by: Fax to: > > > owner-mapserver-users at lists.g Subject: [mapserver-users] Listserv Problems? > > > is.umn.edu > > > > > > > > > 04/02/2002 08:28 AM > > > > > > > > > > > > > > > > > > > > > Is anyone else receiving multiple copies of posts? I seem to be getting > > > second and third copies of some posts, delayed by a few days. > > > > > > David. > > > > > > David J. Fawcett > > > GIS / Databases > > > > > > MN Office of Environmental Assistance > > > 520 Lafayette Rd N > > > St. Paul, MN 55155 > > > 651.215.0200 > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > PUSHKAR S. PRADHAN > > Research Assistant > > MISSISSIPPI STATE UNIVERSITY, > > STARKVILLE, MS 39759. > > > > Engineering Research Center > > Box 9627 > > Mississippi State, MS 39762-9627 > > ------------------------------------------------------------------------------ > > From woodbri at swoodbridge.com Tue Apr 2 14:37:14 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 02 Apr 2002 17:37:14 -0500 Subject: [mapserver-users] how come drawMap works? References: Message-ID: <3CAA329A.314687EA@swoodbridge.com> I think I have an idea about this. There is a serious bug in the build environment - when you build mapscript it does NOT link with the just built libmap.a!!!! It links with the installed version of libmap.a if it exists! The Makefile(s) for mapscript need to explicitly load ../..libmap.a so insure that the correct one is loaded. Puneet, see if you have a /usr/lib/libmap.a or /usr/local/lib/libmap.a and delete it then make clean; make and you will probably get the error. Could somebody chnage the Makefile(s). I will add this to bugzilla. -Steve Woodbridge Puneet Kishor wrote: > > dunno man... no error at all... it happily draws the map for me. go figure. > > pk/ > > > -----Original Message----- > > From: Daniel Morissette [mailto:morissette at dmsolutions.ca] > > Sent: Tuesday, April 02, 2002 11:03 AM > > To: Puneet Kishor > > Cc: MapServer-list > > Subject: Re: [mapserver-users] how come drawMap works? > > > > > > Puneet Kishor wrote: > > > > > > I quite accidentally had been using drawMap() for rendering > > my map, until I > > > discovered that was not a part of PHP/Mapscript 3.5 > > anymore. So, how the > > > heck does it still work? Did you folks leave it in there for > > > backward-compatibility? > > > > > > > drawMap() is not there at all in PHP/Mapscript 3.5 ... you > > should get an > > error about this in your HTML source (do a "View Source" in your > > browser). > > > > -- > > ------------------------------------------------------------ > > Daniel Morissette morissette at dmsolutions.ca > > DM Solutions Group http://www.dmsolutions.ca/ > > ------------------------------------------------------------ > > Don't put for tomorrow what you can do today, because if > > you enjoy it today you can do it again tomorrow. > > From pkishor at GeoAnalytics.com Tue Apr 2 14:40:16 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Tue, 2 Apr 2002 16:40:16 -0600 Subject: [mapserver-users] how come drawMap works? Message-ID: Steve, You could well be right, except in my case it was simply a case of my right brain not knowing what my left finger was doing. I had written a function and forgotten all about it, and was inadvertently calling it. Essentially, I got lost in my own code, and hence it was all my fault. That said, you may well be right about the bug you note below. I will check my server and see what all I've got. Thanks, pk/ > -----Original Message----- > From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] > Sent: Tuesday, April 02, 2002 4:37 PM > To: Puneet Kishor > Cc: 'Daniel Morissette'; MapServer-list > Subject: Re: [mapserver-users] how come drawMap works? > > > I think I have an idea about this. There is a serious bug in the build > environment - when you build mapscript it does NOT link with the just > built libmap.a!!!! It links with the installed version of > libmap.a if it > exists! The Makefile(s) for mapscript need to explicitly load > ../..libmap.a so insure that the correct one is loaded. > > Puneet, see if you have a /usr/lib/libmap.a or /usr/local/lib/libmap.a > and delete it then make clean; make and you will probably get > the error. > > Could somebody chnage the Makefile(s). I will add this to bugzilla. > > -Steve Woodbridge > > Puneet Kishor wrote: > > > > dunno man... no error at all... it happily draws the map > for me. go figure. > > > > pk/ > > > > > -----Original Message----- > > > From: Daniel Morissette [mailto:morissette at dmsolutions.ca] > > > Sent: Tuesday, April 02, 2002 11:03 AM > > > To: Puneet Kishor > > > Cc: MapServer-list > > > Subject: Re: [mapserver-users] how come drawMap works? > > > > > > > > > Puneet Kishor wrote: > > > > > > > > I quite accidentally had been using drawMap() for rendering > > > my map, until I > > > > discovered that was not a part of PHP/Mapscript 3.5 > > > anymore. So, how the > > > > heck does it still work? Did you folks leave it in there for > > > > backward-compatibility? > > > > > > > > > > drawMap() is not there at all in PHP/Mapscript 3.5 ... you > > > should get an > > > error about this in your HTML source (do a "View Source" in your > > > browser). > > > > > > -- > > > ------------------------------------------------------------ > > > Daniel Morissette morissette at dmsolutions.ca > > > DM Solutions Group http://www.dmsolutions.ca/ > > > ------------------------------------------------------------ > > > Don't put for tomorrow what you can do today, because if > > > you enjoy it today you can do it again tomorrow. > > > > From morten at ngb.se Tue Apr 2 16:10:35 2002 From: morten at ngb.se (Morten Hulden) Date: Wed, 3 Apr 2002 02:10:35 +0200 (CEST) Subject: [mapserver-users] [Solved] PHP-MapScript, Postgis & fills of polygons /w inner rings In-Reply-To: Message-ID: Yes, it works, even for 'lakes on islands in lakes'. The problem was that I did not realize that EOO files contain the polygons in the PAL section twice - once as inner rings inside other polygons and once as free outer rings. The holes were there, but covered with the second instance of the same polygons, now as free outer rings and thus of the same color. I changed my e00->postgis script so free outer rings are ignored unless they are on top level and, surprise, I got the topology out of the e00-files. My script (Perl) is available for anyone interested at http://untamo.ngb.se/download/e002pgis.pl It's nothing fancy - it will just extract polygons, nothing else, and (for now) only handles single precision data. But it will rebuild topology directly as a sequence of INSERT statements for Postgis. Thanks to all who responded. It's much easier to debug when you know something works for others. Then you know your own scripts are to blame. Morten Hulden On Mon, 1 Apr 2002, Steve Lime wrote: > Holes are supported, as are polygons with multiple outer rings. I'm not > aware of any issues with shapefiles/SDE/inline features. The other > authors would have to comment about their supported file formats. > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Morten Hulden 04/01/02 03:18PM >>> > > > For some reason my mapserver does not honor inner rings of polygons, > but fills everything, islands and all. > > Didn't find an explanation in tutorials or FAQs, so I though I should > ask > here. > > Is this specific to PHP-Mapscript? Or to Postgis (I use geometry > POLYGON)? > Does it work with CGI-version? Shapefiles? Or is it that GD can't do > it? > > M. > > > From vatsavai at cs.umn.edu Tue Apr 2 16:55:55 2002 From: vatsavai at cs.umn.edu (Ranga Raju Vatsavai) Date: Tue, 2 Apr 2002 18:55:55 -0600 (CST) Subject: [mapserver-users] Listserv Problems Message-ID: <200204030055.SAA17831@pluto.cs.umn.edu> Hello Mapserver-users, I have unsubscribed several users - based on compilation of bounced messages (due to several reasons - mostly problems at users end). This should help speeding up things (i.e., gap between users posting and reception). Coming to duplicates, still I couldn't assertain the problem, however, I unsubscribed the user pointed by Stephen Woodbridge. I will send a seperate mail to each of these users, but in case any genuine user stopped getting messages - please send me a mail at vrraju at gis.umn.edu. I will resubscribe them. Thanks for bringing this to notice and bearing with me. Best wishes, Raju ---- From shostko at ureach.com Tue Apr 2 21:16:35 2002 From: shostko at ureach.com (Alexander Shostko) Date: Wed, 3 Apr 2002 00:16:35 -0500 Subject: [mapserver-users] attributes from *.dbf file Message-ID: <200204030516.AAA31006@www20.ureach.com> Dear mapserver users! Thanks in advance for the help! If there are a attributes defined for each shape in *.dbf file, let's say STATE and LEVEL. State is a string and level is an integer. I need to use it from the map file to set the color. Is it sufficient to use the expression , for ezample: CLASS EXPRESSION ([STATE] = “Alaska” and [LEVEL] > 3 and [LEVEL] < 6 ) COLOR 255 0 0 END CLASS EXPRESSION ([STATE] = “Virginia” and [LEVEL] > 6 and [LEVEL] < 9 ) COLOR 0 255 0 END Well, I tried , it does not do anything. But even if it does, does it set the color for each shape in the layer? (Not sure) Thanks a lot Alexander Shostko shostko at ureach.com From stepan.kafka at centrum.cz Tue Apr 2 23:14:18 2002 From: stepan.kafka at centrum.cz (Stepan Kafka) Date: Wed, 3 Apr 2002 09:14:18 +0200 Subject: [mapserver-users] attributes from *.dbf file In-Reply-To: <200204030516.AAA31006@www20.ureach.com> Message-ID: <000801c1dadf$2b9bfd90$7e3c2fc3@HSGIS> The states must be quoted in the expression, e.g.: EXPRESSION ("[STATE]" = "Alaska" and [LEVEL] > 3 and [LEVEL] < 6 ) Stepan Kafka > -----P?vodn? zpr?va----- > Od: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]za u?ivatele Alexander > Shostko > Odesl?no: 3. dubna 2002 7:17 > Komu: mapserver-users at lists.gis.umn.edu > P?edm?t: [mapserver-users] attributes from *.dbf file > > > Dear mapserver users! > > Thanks in advance for the help! > > If there are a attributes defined for each shape in *.dbf file, > let's say STATE and LEVEL. State is a string and level is an > integer. I need to use it from the map file to set the color. > Is it sufficient to use the expression , for ezample: > > CLASS > EXPRESSION ([STATE] = “Alaska” and [LEVEL] > 3 and > [LEVEL] < > 6 ) > COLOR 255 0 0 > END > CLASS > EXPRESSION ([STATE] = “Virginia” and [LEVEL] > 6 > and [LEVEL] > < 9 ) > COLOR 0 255 0 > END > > Well, I tried , it does not do anything. But even if it does, > does it set the color for each shape in the layer? (Not sure) > > Thanks a lot > Alexander Shostko > shostko at ureach.com > > From Carine.Castillon at medias.cnes.fr Wed Apr 3 00:34:43 2002 From: Carine.Castillon at medias.cnes.fr (Carine Castillon) Date: Wed, 03 Apr 2002 10:34:43 +0200 Subject: [mapserver-users] mapserver and php 4.1.2 Message-ID: <200204030740.g337ers22354@cnes.fr> Hi everybody, I have a problem with mapserver and PHP 4.1.2 When I use mapserver with PHP 4.0.6, that functions. But with PHP 4.1.2, I get the following error : "Warning: Unknown list entry type in request shutdown (0) in Unknown on line 0" Somebody can help me ? thx Carine. From c.pittaway at ymi.co.uk Wed Apr 3 00:44:22 2002 From: c.pittaway at ymi.co.uk (Pittaway Craig) Date: Wed, 3 Apr 2002 09:44:22 +0100 Subject: [mapserver-users] unsubscribe Message-ID: <3DAE0DB6D69ED511A1FD00104B4F538114F4F5@thisaddressdoesnotexist> unsubscribe c.pittaway at ymi.co.uk -------------- next part -------------- An HTML attachment was scrubbed... URL: From akh at le34.dk Wed Apr 3 01:15:16 2002 From: akh at le34.dk (Anders Knudstrup hansen) Date: Wed, 3 Apr 2002 11:15:16 +0200 Subject: [mapserver-users] Problems displaying an ECW file Message-ID: Hello.... I've been trying to get mapserver to display an ecw file for several days now. My system is winNT I've tried several versions of the precompiled mapserver-cgi. None of them complain about any errors and none of them shows the ecw file. ms_35_ecw.zip LAYER NAME "Background" DATA "tab/61771-66.ecw" TYPE RASTER STATUS default END From c.pittaway at ymi.co.uk Wed Apr 3 01:36:47 2002 From: c.pittaway at ymi.co.uk (Pittaway Craig) Date: Wed, 3 Apr 2002 10:36:47 +0100 Subject: [mapserver-users] unsubscribe Message-ID: <3DAE0DB6D69ED511A1FD00104B4F538114F4F6@thisaddressdoesnotexist> unsubscribe c.pittaway at ymi.co.uk -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andreas.Maul at bgr.de Wed Apr 3 03:05:13 2002 From: Andreas.Maul at bgr.de (Maul, Andreas-Alexander) Date: Wed, 3 Apr 2002 12:05:13 +0100 Subject: AW: [mapserver-users] datum transformation with php_proj.dll Message-ID: Thanks Frank, it is good to know how to specify all necessary parameters for the datum shift to get the proper results. I am now able to add the Potsdam datum parameters to the transformation. Best regards, Andreas -----Urspr?ngliche Nachricht----- Von: Frank Warmerdam [mailto:warmerdam at pobox.com] Gesendet am: Dienstag, 2. April 2002 17:18 An: Maul, Andreas-Alexander Cc: UMN MapServer Betreff: Re: [mapserver-users] datum transformation with php_proj.dll Maul, Andreas-Alexander wrote: > Hi, > I have the following problem with php-proj.dll (from > php4.1.2_php_mapscript_36-dev_libwww.zip) and similar with cs2cs (from > proj-4.4.3): > I want to perform a coordinate and datum transformation from geographic > coordinates (WGS84 ellipsoid) to Gauss-Krueger coordinates (i.e. do a > transversal Mercator projection with Bessel ellipsoid corresponding to > epsg:31493) and using php. > Applying this php code: > > $lat = doubleval(54.); > $lon = doubleval( 9.); > > $paramll[0] = "proj=latlong"; > $paramll[1] = "ellps=WGS84"; > $projll = pj_init($paramll); > > $paramgk[0] = "proj=tmerc"; > $paramgk[1] = "ellps=bessel"; > $paramgk[2] = "lat_0=0."; > $paramgk[3] = "lon_0=9."; > $paramgk[4] = "k=1."; > $paramgk[5] = "x_0=3500000."; > $paramgk[6] = "y_0=0."; > $paramgk[7] = "units=m"; > $projgk = pj_init($paramgk); Andreas, The problem is that you haven't specified the datums and PROJ.4 doesn't automatically convert between ellipsoids. If you want do the above translation and assuming no datum shift is needed (likely a bad assumption) you would just need to specify "0" datum shift parameters. Use +datum=WGS84 for WGS84, and "+ellps=bessel +towgs84=0,0,0" for the bessel indicating that no datum shift is required to shift to wgs84. Hopefully I will incorporate some improved warnings into PROJ.4 in the future as this is a frequently encountered problem. Best regards, -- ---------------------------------------+------------------------------------ -- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From ben at wblogan.net Wed Apr 3 02:59:23 2002 From: ben at wblogan.net (Ben Logan) Date: Wed, 3 Apr 2002 05:59:23 -0500 Subject: [mapserver-users] Problems with the Itasca demo and gifs/pngs. In-Reply-To: ; from pushkar@ERC.MsState.Edu on Mon, Apr 01, 2002 at 11:48:30AM -0600 References: <20020331121753.A18789@wblogan.net> Message-ID: <20020403055923.A28733@wblogan.net> On Mon, Apr 01, 2002 at 11:48:30AM -0600, Pushkar Pradhan wrote: > Ben, > In the imagepath you need to give the absolute path to this tmp dir. while > in the imageurl you will need to give the relative path to the tmp dir. > from your map file. Also your tmp dir. must have write permissions. > Also try checking the server's error log and mapserver's error log. Thanks, now it works. The problem appears to have been the permissions on the tmp dir. I gave them 775, but they need 777 (the cgi doesn't run under my uid). Stupid mistake on my part...I've dealt with that problem a 100 times on my own CGI's. :) It also worked to convert all the GIFs to PNGs and replace all occurrences of .gif with .png in demo.map. Now the symbols all work. Thanks, Ben -- Ben Logan: ben at wblogan dot net OpenPGP Key KeyID: A1ADD1F0 Let's organize this thing and take all the fun out of it. From eduardo at scopotecnologia.com.br Wed Apr 3 08:47:16 2002 From: eduardo at scopotecnologia.com.br (Eduardo Patto Kanegae) Date: Wed, 3 Apr 2002 08:47:16 Subject: [mapserver-users] unsubscribe Message-ID: <20020403114716.19592.qmail@hm47.locaweb.com.br> unsubscribe From shpr at libero.it Wed Apr 3 04:56:53 2002 From: shpr at libero.it (Stefano Bonnin) Date: Wed, 3 Apr 2002 14:56:53 +0200 Subject: [mapserver-users] Problem with DD Message-ID: <047701c1db0f$0aca3160$0601a8c0@comai.loc> I have developed a MapServer application where the North Italy Map is displayed. My problem is the following: in the map file I have written the following code: NAME DEMO STATUS ON SIZE 600 600 EXTENT 6.174567 42.975424 14.815678 47.143435 UNITS DD SHAPEPATH "data" IMAGECOLOR 255 255 255 SYMBOLSET /Inetpub/wwwroot/Nord/symbols/symbol.sym FONTSET /WINNT/Fonts/fonts.list .... .... .... but the Italy Map doesn't appear entirely (only a piece) and if I try to increase the DD interval MapServer show me the same piece of map. Why? Thanks in advance. --- Outgoing mail is certified Virus Free. (FLASHH!) Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.343 / Virus Database: 190 - Release Date: 22/03/02 From mckenna at dmsolutions.ca Wed Apr 3 06:31:24 2002 From: mckenna at dmsolutions.ca (Jeff McKenna) Date: Wed, 03 Apr 2002 09:31:24 -0500 Subject: [mapserver-users] mapserver and php 4.1.2 References: <200204030740.g337ers22354@cnes.fr> Message-ID: <3CAB123C.172DBE41@dmsolutions.ca> Hi, There is a new php_mapscript_35.dll for php 4.1.2 on our site: http://www2.dmsolutions.on.ca/mapserver/dl/php4.1.2_php_mapscript_36-dev_libwww.zip Jeff Carine Castillon wrote: > > Hi everybody, > > I have a problem with mapserver and PHP 4.1.2 > > When I use mapserver with PHP 4.0.6, that functions. But with > PHP 4.1.2, I get the following error : > > "Warning: Unknown list entry type in request shutdown (0) in Unknown on > line 0" > > Somebody can help me ? > > thx > > Carine. -- Jeff McKenna GIS Specialist DM Solutions Group Inc. http://www.dmsolutions.ca/ From pkishor at GeoAnalytics.com Wed Apr 3 09:05:20 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 3 Apr 2002 11:05:20 -0600 Subject: [mapserver-users] msSearchDiskTree(): Errors Message-ID: i remember seeing this a few days ago! this is also from taiwan.com... > -----Original Message----- > From: Sean Gillies [mailto:sgillies at i3.com] > Sent: Saturday, March 30, 2002 12:48 PM > To: MapServer List > Subject: Re: [mapserver-users] msSearchDiskTree(): Errors > > > Stephen, > > I had the same symptoms when I first started using Python MapScript > on Win32. > > A shapefile that was working for me with the Mapserv program was > not accessible through the mapObj.draw() method. > > After pulling out half my hair I tried a different shape file and > had no problems. > > The difference between my shapefiles is that the accessible file > was generated from ArcView and the inaccessible file was produced > by PCI Geomatics software. I'm not certain why MapScript would > have higher standards for shapefiles than Mapserv (or ArcView). > > Sorry that I don't have an answer for your problem, but maybe you > can use my experience. > > cheers, > Sean > > Stephen Woodbridge wrote: > > Chris et al, > > > > Thanks,this is good to know, > > > > but I don't think this is the case with the data set I just > built. And > > if it is the case with this dataset, then I need to know what is the > > problem so I can fix it. I just built the tileindexes based on the > > exitance of the shp files. So I don't know how there can be missing > > data. > > > > If there is missing data then, > > > > HOW do I figure out what files are missing? > > > > Mapserver is clearly complaining about something, but the > error message > > is not adequate to figure out the problem. > > > > imap at chesapeake.net wrote: > > > >>Steve, > >> > >>I dont think these are errors... this occurs when you are missing > >>files in your tiles. (ie. county tile missing a feature layer) > >>They occur in the MS_ERRORLOG, but dont effect processing > >>unless you have not defined IGNORE_MISSING_DATA at compile time. > >> > >>This has been in the code for a long time... > >>There should probably be some logic coded into the source to > >>get rid of these messages if IGNORE_MISSING_DATA is defined. It > >>tends to fill up the logfile. > >> > >>-Chris Stuber (mapsurfer) > >> > >>Stephen Woodbridge wrote: > >> > >>>Hi all, > >>> > >>>I searched the archives, but could not find anything useful on this > >>>error message: > >>> > >>>Sat Mar 30 12:31:35 2002 - msSearchDiskTree(): Unable to > access file. > >>> > >>>I have a bunch of tileindexes referenced in my mapfile, I > have checked > >>>all the files and directories to make sure they are > accessible. I turned > >>>on error logging to a file but got nothing more useful > than what was get > >>>prionted in the scripts. > >>> > >>>How do I find out what file msSearchDiskTree() is > complaining about? > >>> > >>>I am running ms_3.5 release. I tried 3/20 nightly and > could not get any > >>>thing to display. the error is alway on the php/mapscript line > >>> > >>>$image = $map->draw(); > >>> > >>>I rebuilt all my tileindexes and there shptrees. > >>> > >>>So, I am at a total loss on how to proceed. > >>> > >>>Thanks again for any help or suggestions you might offer. > >>> > >>>-Steve > >> > > > > > > From erwin at perik.nu Wed Apr 3 09:30:34 2002 From: erwin at perik.nu (E Perik) Date: Wed, 3 Apr 2002 19:30:34 +0200 Subject: [mapserver-users] Map Viewer for use on laptop In-Reply-To: <000001c1d645$efd3b0c0$967ba8c0@xp> Message-ID: <001101c1db35$43502500$967ba8c0@xp> Regarding my first question I did get some useful answers, however ... Is there a low budget Viewer + database-editing option available? In general only ESRI shapefiles are used, so that should keep a lot of options open. The reason why I ask is because local resellers are referring to huge program's, often based on a webserver or the viewer uses a non-standard file-format. So if I go out in the field (uhu uhum) with a laptop/PDA and want to edit data of an object, what would be a simple program to use? Setting up mapserver+apache+PHP could do this, but I was looking for another (quicker) solution. Any tip is more then welcome! Erwin -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of E Perik Sent: Thursday, March 28, 2002 11:47 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Map Viewer for use on laptop Hi All, I know this is totally off topic, but are there some good GIS-viewers to view maps also used by Mapviewer on a laptop without a webserver ? Functionality should be no more like: * Zoom * Pan * Identify/Query * Search All data are ESRI shape-files and some GEOTIFF's. Did some searches on the internet, but did not come up with many results. Now I only use ArcExplorer from ESRI, but are there other low-price solutions available? Thanks in advance, Erwin From vatsavai at cs.umn.edu Wed Apr 3 09:40:07 2002 From: vatsavai at cs.umn.edu (Ranga Raju Vatsavai) Date: Wed, 3 Apr 2002 11:40:07 -0600 (CST) Subject: [mapserver-users] msSearchDiskTree(): Errors In-Reply-To: Message-ID: <200204031740.LAA18502@pluto.cs.umn.edu> I unsubscribed this user from the list, hope these duplicates will die in a couple of days. Thanks, Raju ---- [ Charset ISO-8859-1 unsupported, converting... ] > i remember seeing this a few days ago! this is also from taiwan.com... > > > > > -----Original Message----- > > From: Sean Gillies [mailto:sgillies at i3.com] > > Sent: Saturday, March 30, 2002 12:48 PM > > To: MapServer List > > Subject: Re: [mapserver-users] msSearchDiskTree(): Errors > > > > > > Stephen, > > > > I had the same symptoms when I first started using Python MapScript > > on Win32. > > > > A shapefile that was working for me with the Mapserv program was > > not accessible through the mapObj.draw() method. > > > > After pulling out half my hair I tried a different shape file and > > had no problems. > > > > The difference between my shapefiles is that the accessible file > > was generated from ArcView and the inaccessible file was produced > > by PCI Geomatics software. I'm not certain why MapScript would > > have higher standards for shapefiles than Mapserv (or ArcView). > > > > Sorry that I don't have an answer for your problem, but maybe you > > can use my experience. > > > > cheers, > > Sean > > > > Stephen Woodbridge wrote: > > > Chris et al, > > > > > > Thanks,this is good to know, > > > > > > but I don't think this is the case with the data set I just > > built. And > > > if it is the case with this dataset, then I need to know what is the > > > problem so I can fix it. I just built the tileindexes based on the > > > exitance of the shp files. So I don't know how there can be missing > > > data. > > > > > > If there is missing data then, > > > > > > HOW do I figure out what files are missing? > > > > > > Mapserver is clearly complaining about something, but the > > error message > > > is not adequate to figure out the problem. > > > > > > imap at chesapeake.net wrote: > > > > > >>Steve, > > >> > > >>I dont think these are errors... this occurs when you are missing > > >>files in your tiles. (ie. county tile missing a feature layer) > > >>They occur in the MS_ERRORLOG, but dont effect processing > > >>unless you have not defined IGNORE_MISSING_DATA at compile time. > > >> > > >>This has been in the code for a long time... > > >>There should probably be some logic coded into the source to > > >>get rid of these messages if IGNORE_MISSING_DATA is defined. It > > >>tends to fill up the logfile. > > >> > > >>-Chris Stuber (mapsurfer) > > >> > > >>Stephen Woodbridge wrote: > > >> > > >>>Hi all, > > >>> > > >>>I searched the archives, but could not find anything useful on this > > >>>error message: > > >>> > > >>>Sat Mar 30 12:31:35 2002 - msSearchDiskTree(): Unable to > > access file. > > >>> > > >>>I have a bunch of tileindexes referenced in my mapfile, I > > have checked > > >>>all the files and directories to make sure they are > > accessible. I turned > > >>>on error logging to a file but got nothing more useful > > than what was get > > >>>prionted in the scripts. > > >>> > > >>>How do I find out what file msSearchDiskTree() is > > complaining about? > > >>> > > >>>I am running ms_3.5 release. I tried 3/20 nightly and > > could not get any > > >>>thing to display. the error is alway on the php/mapscript line > > >>> > > >>>$image = $map->draw(); > > >>> > > >>>I rebuilt all my tileindexes and there shptrees. > > >>> > > >>>So, I am at a total loss on how to proceed. > > >>> > > >>>Thanks again for any help or suggestions you might offer. > > >>> > > >>>-Steve > > >> > > > > > > > > > > > From woodbri at swoodbridge.com Wed Apr 3 10:06:56 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 03 Apr 2002 13:06:56 -0500 Subject: [mapserver-users] Map Viewer for use on laptop References: <001101c1db35$43502500$967ba8c0@xp> Message-ID: <3CAB44C0.9A118E26@swoodbridge.com> I'm sorry, I haven't been following this thread but why not get ArcExplorer2 which is a free download from the ESRI site? Granted it is view only app. As soon as you want to edit files the problem become a little more complex. :) -Steve E Perik wrote: > > Regarding my first question I did get some useful answers, however ... > > Is there a low budget Viewer + database-editing option available? > In general only ESRI shapefiles are used, so that should keep a lot of > options open. > > The reason why I ask is because local resellers are referring to huge > program's, often based on a webserver or the viewer uses a non-standard > file-format. > > So if I go out in the field (uhu uhum) with a laptop/PDA and want to > edit data of an object, what would be a simple program to use? > > Setting up mapserver+apache+PHP could do this, but I was looking for > another (quicker) solution. > > Any tip is more then welcome! > > Erwin > > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of E Perik > Sent: Thursday, March 28, 2002 11:47 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] Map Viewer for use on laptop > > Hi All, > > I know this is totally off topic, but are there some good GIS-viewers to > view maps also used by Mapviewer on a laptop without a webserver ? > > Functionality should be no more like: > > * Zoom > * Pan > * Identify/Query > * Search > > All data are ESRI shape-files and some GEOTIFF's. > > Did some searches on the internet, but did not come up with many > results. > > Now I only use ArcExplorer from ESRI, but are there other low-price > solutions available? > > Thanks in advance, > > Erwin From erwin at perik.nu Wed Apr 3 10:15:13 2002 From: erwin at perik.nu (E Perik) Date: Wed, 3 Apr 2002 20:15:13 +0200 Subject: [mapserver-users] Map Viewer for use on laptop In-Reply-To: <3CAB44C0.9A118E26@swoodbridge.com> Message-ID: <001201c1db3b$80478a10$967ba8c0@xp> Hi Steve, ArcExplorer2 or 3 are both perfect,... but only for viewing. Agree, once it comes to editing it becomes quit a small selection ;-) Erwin -----Original Message----- From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Sent: Wednesday, April 03, 2002 8:07 PM To: E Perik Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] Map Viewer for use on laptop I'm sorry, I haven't been following this thread but why not get ArcExplorer2 which is a free download from the ESRI site? Granted it is view only app. As soon as you want to edit files the problem become a little more complex. :) -Steve E Perik wrote: > > Regarding my first question I did get some useful answers, however ... > > Is there a low budget Viewer + database-editing option available? > In general only ESRI shapefiles are used, so that should keep a lot of > options open. > > The reason why I ask is because local resellers are referring to huge > program's, often based on a webserver or the viewer uses a non-standard > file-format. > > So if I go out in the field (uhu uhum) with a laptop/PDA and want to > edit data of an object, what would be a simple program to use? > > Setting up mapserver+apache+PHP could do this, but I was looking for > another (quicker) solution. > > Any tip is more then welcome! > > Erwin > > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of E Perik > Sent: Thursday, March 28, 2002 11:47 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] Map Viewer for use on laptop > > Hi All, > > I know this is totally off topic, but are there some good GIS-viewers to > view maps also used by Mapviewer on a laptop without a webserver ? > > Functionality should be no more like: > > * Zoom > * Pan > * Identify/Query > * Search > > All data are ESRI shape-files and some GEOTIFF's. > > Did some searches on the internet, but did not come up with many > results. > > Now I only use ArcExplorer from ESRI, but are there other low-price > solutions available? > > Thanks in advance, > > Erwin From pkishor at GeoAnalytics.com Wed Apr 3 11:31:33 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 3 Apr 2002 13:31:33 -0600 Subject: [mapserver-users] perplexing error: msDrawShape(): Only polygon shapes can be... Message-ID: MapServer Error in msDrawShape(): Only polygon shapes can be drawn using a POLYGON layer definition I get the above error _only_ when I try to zoom around the map. That is, I am able to draw the map fine while identifying (by clicking) or by directly zooming to a known feature. I have a map file with 5 layers in it... 4 are polygons and 1 is lines. As I said, if I search for a feature using an attribute, or if I click on an existing map and identify and zoom to the selected feature, it draws just fine. This is driving me nuts. Many tia, pk/ From amorin at NRCan.gc.ca Wed Apr 3 11:26:57 2002 From: amorin at NRCan.gc.ca (Morin, Annie) Date: Wed, 3 Apr 2002 14:26:57 -0500 Subject: [mapserver-users] Why query don't cascade from client to server ? Message-ID: <06B403677C41D51194550002A55107D211BC69@S5-STF1-R1> Hi, I am developping a Web Mapping Service. And I have to cascade from a wms client to a wms server for a feature_info request. If I query directly the server, I get this: GetFeatureInfo results: Layer 'Quaternary' Feature 0: AREA = '8.09571119107E-001' PERIMETER = '8.97066357990E+001' GEO2005P_ = '2' GEO2005P_I = '1' GEO_SYM = '157' GEO_PAT = '0' GEO_PAT_CO = '0' GEO_MISC = '' GEO_LINK = '0' CODE = 'Tb' Feature 928: AREA = '3.59178653351E-004' PERIMETER = '1.14438188249E-001' GEO2005P_ = '930' GEO2005P_I = '929' GEO_SYM = '120' GEO_PAT = '0' GEO_PAT_CO = '0' GEO_MISC = '' GEO_LINK = '0' CODE = 'R' which is what I want to get. And from the client I receive this: : which is nothing in fact. I am searching for a way to get the same thing from the client as from the server. Someone has any idea ? Or any explanation on the reasons why it wouldn't cascade? Annie From TMitchell at lignum.com Wed Apr 3 11:42:54 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Wed, 3 Apr 2002 11:42:54 -0800 Subject: [mapserver-users] Map Viewer for use on laptop Message-ID: Erwin, do you need to do the database editing within the same application as the one that will do the viewing of the map data? If not, then you could simply you Excel or Access to do the database editing and use something like ArcExplorer or OpenEV to look at your shape files. Stephen Woodbridge To: E Perik Sent by: cc: mapserver-users at lists.gis.umn.edu owner-mapserver-users at lists.g Fax to: is.umn.edu Subject: Re: [mapserver-users] Map Viewer for use on laptop 04/03/2002 10:06 AM I'm sorry, I haven't been following this thread but why not get ArcExplorer2 which is a free download from the ESRI site? Granted it is view only app. As soon as you want to edit files the problem become a little more complex. :) -Steve E Perik wrote: > > Regarding my first question I did get some useful answers, however ... > > Is there a low budget Viewer + database-editing option available? > In general only ESRI shapefiles are used, so that should keep a lot of > options open. > > The reason why I ask is because local resellers are referring to huge > program's, often based on a webserver or the viewer uses a non-standard > file-format. > > So if I go out in the field (uhu uhum) with a laptop/PDA and want to > edit data of an object, what would be a simple program to use? > > Setting up mapserver+apache+PHP could do this, but I was looking for > another (quicker) solution. > > Any tip is more then welcome! > > Erwin > > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of E Perik > Sent: Thursday, March 28, 2002 11:47 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] Map Viewer for use on laptop > > Hi All, > > I know this is totally off topic, but are there some good GIS-viewers to > view maps also used by Mapviewer on a laptop without a webserver ? > > Functionality should be no more like: > > * Zoom > * Pan > * Identify/Query > * Search > > All data are ESRI shape-files and some GEOTIFF's. > > Did some searches on the internet, but did not come up with many > results. > > Now I only use ArcExplorer from ESRI, but are there other low-price > solutions available? > > Thanks in advance, > > Erwin From erwin at perik.nu Wed Apr 3 12:03:24 2002 From: erwin at perik.nu (E Perik) Date: Wed, 3 Apr 2002 22:03:24 +0200 Subject: [mapserver-users] Map Viewer for use on laptop In-Reply-To: Message-ID: <001301c1db4a$9d07ee10$967ba8c0@xp> Hi Tyler, It is important that it is a combined view/edit program because the user needs to select the object to be edited and then easily fill in a new value like house-number or alike. When using CDBFW, Access, Excel or alike, he then also needs to find the id-number and only then he can edit the value. Too much hassle for use on a laptop ;-( Thanks, Erwin -----Original Message----- From: Tyler Mitchell [mailto:TMitchell at lignum.com] Sent: Wednesday, April 03, 2002 9:43 PM To: Stephen Woodbridge Cc: E Perik; mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] Map Viewer for use on laptop Erwin, do you need to do the database editing within the same application as the one that will do the viewing of the map data? If not, then you could simply you Excel or Access to do the database editing and use something like ArcExplorer or OpenEV to look at your shape files. Stephen Woodbridge To: E Perik Sent by: cc: mapserver-users at lists.gis.umn.edu owner-mapserver-users at lists.g Fax to: is.umn.edu Subject: Re: [mapserver-users] Map Viewer for use on laptop 04/03/2002 10:06 AM I'm sorry, I haven't been following this thread but why not get ArcExplorer2 which is a free download from the ESRI site? Granted it is view only app. As soon as you want to edit files the problem become a little more complex. :) -Steve E Perik wrote: > > Regarding my first question I did get some useful answers, however ... > > Is there a low budget Viewer + database-editing option available? > In general only ESRI shapefiles are used, so that should keep a lot of > options open. > > The reason why I ask is because local resellers are referring to huge > program's, often based on a webserver or the viewer uses a non-standard > file-format. > > So if I go out in the field (uhu uhum) with a laptop/PDA and want to > edit data of an object, what would be a simple program to use? > > Setting up mapserver+apache+PHP could do this, but I was looking for > another (quicker) solution. > > Any tip is more then welcome! > > Erwin > > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of E Perik > Sent: Thursday, March 28, 2002 11:47 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] Map Viewer for use on laptop > > Hi All, > > I know this is totally off topic, but are there some good GIS-viewers to > view maps also used by Mapviewer on a laptop without a webserver ? > > Functionality should be no more like: > > * Zoom > * Pan > * Identify/Query > * Search > > All data are ESRI shape-files and some GEOTIFF's. > > Did some searches on the internet, but did not come up with many > results. > > Now I only use ArcExplorer from ESRI, but are there other low-price > solutions available? > > Thanks in advance, > > Erwin From cogansco at msu.edu Wed Apr 3 12:27:50 2002 From: cogansco at msu.edu (Scott D Cogan) Date: Wed, 3 Apr 2002 15:27:50 -0500 Subject: [mapserver-users] dynamically allocated points for MAP w/ PHP References: <000201c1d1f8$9b7fc0a0$967ba8c0@xp> Message-ID: <001601c1db4e$07c900b0$224d0823@whalon6> what is wrong with this PHP code? i am trying to create a layer of points using mapscript. i had this working previously, then somehow deleted the file. now i cant figure it out again: if ($init==1) { // recreate the site layer $shpFname = "C:\\Program Files\\Apache\\htdocs\\mich\\data\\shptest"; $shpFile = ms_newShapeFileObj($shpFname, MS_SHP_POINT); $def = array(array("PROG_ID", "N", 5, 0)); $dbfFile = dbase_create($shpFname . ".dbf", $def); createPoint( 14, 34, 111); createPoint( 33, 14, 222); createPoint( 10, 20, 333); // done... cleanup $shpFile->free(); dbase_close($dbfFile); } function createPoint($x, $y, $name){ GLOBAL $shpFile, $dbfFile; // Create shape $oShp = ms_newShapeObj(MS_SHP_POINT); $oLine = ms_newLineObj(); $oLine->addXY($x, $y); $oShp->add( $oLine ); $shpFile->addShape($oShp); // Write attribute record dbase_add_record($dbfFile, array($name)); } From mgiesbrecht at geoarctic.com Wed Apr 3 12:46:14 2002 From: mgiesbrecht at geoarctic.com (Mark Giesbrecht) Date: Wed, 03 Apr 2002 13:46:14 -0700 Subject: [mapserver-users] inconsistent PHP/Mapscript non-object error Message-ID: <3CAB6A16.498A5CBB@geoarctic.com> Hi All, My setup: IIS 5.0 PHP 4.06 as cgi PHP/Mapscript I've come across the wierdest of problems with a php script on two different IIS 5.0 machines. In my script, with no parameters passed, it displays a simple map. I then flag labels on, zoom to different extents, and the map still displays (on both machines). The problem lies with one machine, where I try to turn specific layers on with a php isset/switch combination, the script bails with an error with: Call to a member function on a non-object in C:\MYWEB\newsite\gedcomap\mapscript\postmap.php on line 164 My line 164 is: $img->saveImage('',MS_GIF, 1, 1, 75); Now, it is obvious in the error that the $img object no longer exists, but for the life of me can't explain why it works on one machine, and not the other. Any thoughts, ideas? setextent( -20000000.000, -8449750.000, 19900000.000, 16451325.000); break; case "WCANADA": $map->setextent( -15604189.866491, 5728697.158015,-10734609.241998, 10005187.834654); break; case "ECANADA": $map->setextent( -11447573.326271, 3978110.696705, -4032667.8763, 10005187.834654); break; case "NCANADA": $map->setextent( -16519817.840106, 7203994.832244, -1429834.819113, 15456095.305808); break; case "NAMERICA": $map->setextent( -19382823.018345, -188395.722636, -4553012.118403, 12835220.260005); break; case "SAMERICA": $map->setextent( -14217739.307468, -8744055.857217, 612071.592474, 4279560.125423); break; case "ASIA": $map->setextent( 7441033.846743, 356826.088735, 16937316.265127, 8696510.007443); break; case "EUROPE": $map->setextent( -1130748.06457, 4116806.988907, 3292177.993307, 11401043.334607); break; case "AFRICA": $map->setextent( -2407541.653016, -3764271.132892, 7220725.892471, 4691322.801285); break; case "SEASIA": $map->setextent( 10536970.90259, -7490309.75465, 20813769.684129, 1534827.636829); break; case "MEAST": $map->setextent( 3382237.573671, 1250936.253511, 7414905.449971, 5092445.862826); break; } } else { //to the whole world $map->setextent( -20000000.000, -8449750.000, 19900000.000, 16451325.000); } if (isset($LABELSON)) { $cntryLayer = $map->getLayerByName("country"); switch($LABELSON) { case "true": $cntryLayer->set("labelitem", "CNTRY_NAME"); break; case "false": $cntryLayer->set("labelitem", "NOLABEL"); break; } } if (isset($GEDCO)) { $jobLayer = $map->getLayerByName("jobs"); $jobLayer->set("classitem", "TYPE"); switch ($GEDCO) { case "OIL": $clsjobLayer = $jobLayer->getClass(0); $jobLayer->set("status", "1"); $clsjobLayer->setexpression(" 'O' "); $clsjobLayer->set("color", $map->addcolor(255, 173, 0)); break; case "MINING": $clsjobLayer = $jobLayer->getClass(0); $jobLayer->set("status", "1"); $clsjobLayer->setexpression(" 'X' "); break; //Create a new class object, display both O and X case "OIL-MINING": $clsjobLayer = $jobLayer->getClass(0); $jobLayer->set("status", "1"); $clsjobLayer->setexpression(" 'X' "); //Mining = X; Oil = O; $clsMiningLayer = ms_newClassObj($jobLayer); $clsMiningLayer->setexpression(" 'O' "); $clsMiningLayer->set("color", $map->addcolor(255, 173, 0)); $clsMiningLayer->set("size", 10); $clsMiningLayer->set("symbol", 2); $clsMiningLayer->set("name", ""); $clsMiningLayer->set("outlinecolor", $map->addcolor(128, 128, 128)); break; } } if (isset($SIS)) { $omniLayer = $map->getLayerByName("sis"); $omniLayer->set("classitem", "PROG"); switch ($SIS) { case "OMNI": $omniLayer->set("status", "1"); $clsomniLayer = $omniLayer->getClass(0); $clsomniLayer->setexpression(" 'OMNI' "); break; case "VISTAWIN": $omniLayer->set("status", "1"); $clsomniLayer = $omniLayer->getClass(0); $clsomniLayer->setexpression(" 'VISTAWIN' "); $clsomniLayer->set("color", $map->addcolor(128, 0, 128)); break; //Same as above; create a new class object (1), and display both OMNI and VISTAWIN, with //VISTAWIN as a new colour case "OMNI-VISTAWIN": //Show the regular layer $clsomniLayer = $omniLayer->getClass(0); $clsomniLayer->setexpression(" 'OMNI' "); $omniLayer->set("status", "1"); //Create new class $clsVistaLayer = ms_newClassObj($omniLayer); $clsVistaLayer->setexpression(" 'VISTAWIN' "); $clsVistaLayer->set("color", $map->addcolor(128, 0, 128)); $clsVistaLayer->set("size", 10); $clsVistaLayer->set("symbol", 2); $clsVistaLayer->set("name", ""); $clsVistaLayer->set("outlinecolor", $map->addcolor(128, 128, 128)); break; } } //Finalize the output $img = $map->draw(); $img->saveImage('',MS_GIF, 1, 1, 75); ?> -------------- next part -------------- A non-text attachment was scrubbed... Name: mgiesbrecht.vcf Type: text/x-vcard Size: 346 bytes Desc: Card for Mark Giesbrecht URL: From steve.lime at dnr.state.mn.us Wed Apr 3 12:46:27 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 03 Apr 2002 14:46:27 -0600 Subject: [mapserver-users] how come drawMap works? Message-ID: I don't believe this can be classified as a build bug. One could call it a feature of ld. If you "install" libmap.a in the system libraries then of course you need to install the new one before building mapscript. The same goes for GD, Freetype, libtiff etc... Changing the Makefile won't help. Libs in the system directories always override local copies. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Stephen Woodbridge 04/02/02 04:37PM >>> I think I have an idea about this. There is a serious bug in the build environment - when you build mapscript it does NOT link with the just built libmap.a!!!! It links with the installed version of libmap.a if it exists! The Makefile(s) for mapscript need to explicitly load ../..libmap.a so insure that the correct one is loaded. Puneet, see if you have a /usr/lib/libmap.a or /usr/local/lib/libmap.a and delete it then make clean; make and you will probably get the error. Could somebody chnage the Makefile(s). I will add this to bugzilla. -Steve Woodbridge Puneet Kishor wrote: > > dunno man... no error at all... it happily draws the map for me. go figure. > > pk/ > > > -----Original Message----- > > From: Daniel Morissette [mailto:morissette at dmsolutions.ca] > > Sent: Tuesday, April 02, 2002 11:03 AM > > To: Puneet Kishor > > Cc: MapServer-list > > Subject: Re: [mapserver-users] how come drawMap works? > > > > > > Puneet Kishor wrote: > > > > > > I quite accidentally had been using drawMap() for rendering > > my map, until I > > > discovered that was not a part of PHP/Mapscript 3.5 > > anymore. So, how the > > > heck does it still work? Did you folks leave it in there for > > > backward-compatibility? > > > > > > > drawMap() is not there at all in PHP/Mapscript 3.5 ... you > > should get an > > error about this in your HTML source (do a "View Source" in your > > browser). > > > > -- > > ------------------------------------------------------------ > > Daniel Morissette morissette at dmsolutions.ca > > DM Solutions Group http://www.dmsolutions.ca/ > > ------------------------------------------------------------ > > Don't put for tomorrow what you can do today, because if > > you enjoy it today you can do it again tomorrow. > > From pkishor at GeoAnalytics.com Wed Apr 3 13:07:30 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 3 Apr 2002 15:07:30 -0600 Subject: [mapserver-users] RE: perplexing error: msDrawShape(): Only polygon shapes can be.. . Message-ID: further info on this... I found a layer (the layer) that was causing the problem. When I take that layer out of the map file, the map draws fine. I changed the TYPE definition from polygon to line, and still got the above error. Changed it to point and it drew fine. Arcview shows it up as a polygon layer filled with all "area > 0" polygons. The weirdest thing is that the above error does not occur when I draw the map by clicking on it, such as when identifying a feature. Any ideas anyone? pk/ > -----Original Message----- > From: Puneet Kishor > Sent: Wednesday, April 03, 2002 1:32 PM > To: mapserver-users at lists.gis.umn.edu > Subject: perplexing error: msDrawShape(): Only polygon shapes > can be... > > > MapServer Error in msDrawShape(): Only polygon shapes can be > drawn using a POLYGON layer definition > > > I get the above error _only_ when I try to zoom around the > map. That is, I am able to draw the map fine while > identifying (by clicking) or by directly zooming to a known > feature. I have a map file with 5 layers in it... 4 are > polygons and 1 is lines. As I said, if I search for a feature > using an attribute, or if I click on an existing map and > identify and zoom to the selected feature, it draws just fine. > > This is driving me nuts. > > Many tia, > > pk/ > From erwin at perik.nu Wed Apr 3 13:22:33 2002 From: erwin at perik.nu (E Perik) Date: Wed, 3 Apr 2002 23:22:33 +0200 Subject: [mapserver-users] RE: dynamically allocated points for MAP w/ PHP In-Reply-To: <001601c1db4e$07c900b0$224d0823@whalon6> Message-ID: <001001c1db55$aba317a0$967ba8c0@xp> Hi Scott, There is nothing wrong with the PHP code, except it does not create a layer, but it creates a new shapefile ;-) So you want to create a layer, dynamicly, or ..... Example of creating a layer from a shapefile: 0) Create map-object 1) Get object/points from existing-shapefile or from database 2) Put it in new-shapefile (as you did in your php-script) 3) Create dbf-file with name of new-shapefile 4) Clear new-shapefile (as you did) 5) Add new-layer to map-object (default of this layer is set to OFF) 6) Show new-layer (turn it ON) 7) Draw the map (now includes newly created shapefile ;-) ) Explanation: *** In 0) you use like: $Map = ms_newMapObj("blabla.map"); *** In 1) you determine input. This could be the 3 points you have in your example, but also could be a shape or lat/lon from a database (eg. dbf/MySQL) *** Option 2) and 3) and 4) you have in your mapscript. This creates a shapefile + corresponding dbf-file. *** Option 5) and 6) is best done using a dummy-layer which is set to OFF in your map-file. You turn it on AND attach the new shapefile-data from by using: $Dummylayer = ms_newLayerObj($Map); // a new layerobject $Dummylayer = $Map->getLayerByName("MapLayer"); $Dummylayer->set("status", 1); // Turn it on $Dummylayer->set("data", $shpFname); // Add your created data While your map-layer looks something like: LAYER NAME "MapLayer" TYPE POINT STATUS OFF CLASS SYMBOL 'circle' COLOR 0 0 0 SIZE 3 END END *** Option 7) is something like: $ImgMap = $Map->draw(); This should do the trick. Erwin -----Original Message----- From: Scott D Cogan [mailto:cogansco at msu.edu] Sent: Wednesday, April 03, 2002 10:28 PM To: Consult IT!, E. Perik; mapserver-users at lists.gis.umn.edu Subject: dynamically allocated points for MAP w/ PHP what is wrong with this PHP code? i am trying to create a layer of points using mapscript. i had this working previously, then somehow deleted the file. now i cant figure it out again: if ($init==1) { // recreate the site layer $shpFname = "C:\\Program Files\\Apache\\htdocs\\mich\\data\\shptest"; $shpFile = ms_newShapeFileObj($shpFname, MS_SHP_POINT); $def = array(array("PROG_ID", "N", 5, 0)); $dbfFile = dbase_create($shpFname . ".dbf", $def); createPoint( 14, 34, 111); createPoint( 33, 14, 222); createPoint( 10, 20, 333); // done... cleanup $shpFile->free(); dbase_close($dbfFile); } function createPoint($x, $y, $name){ GLOBAL $shpFile, $dbfFile; // Create shape $oShp = ms_newShapeObj(MS_SHP_POINT); $oLine = ms_newLineObj(); $oLine->addXY($x, $y); $oShp->add( $oLine ); $shpFile->addShape($oShp); // Write attribute record dbase_add_record($dbfFile, array($name)); } From erwin at perik.nu Wed Apr 3 13:25:13 2002 From: erwin at perik.nu (E Perik) Date: Wed, 3 Apr 2002 23:25:13 +0200 Subject: [mapserver-users] RE: dynamically allocated points for MAP w/ PHP In-Reply-To: <001601c1db4e$07c900b0$224d0823@whalon6> Message-ID: <001101c1db56$0b0f5870$967ba8c0@xp> Just found an earlier example: http://mapserver.gis.umn.edu/wilma/mapserver-users/0203/msg00293.html In general the same as previous mail -----Original Message----- From: Scott D Cogan [mailto:cogansco at msu.edu] Sent: Wednesday, April 03, 2002 10:28 PM To: Consult IT!, E. Perik; mapserver-users at lists.gis.umn.edu Subject: dynamically allocated points for MAP w/ PHP what is wrong with this PHP code? i am trying to create a layer of points using mapscript. i had this working previously, then somehow deleted the file. now i cant figure it out again: if ($init==1) { // recreate the site layer $shpFname = "C:\\Program Files\\Apache\\htdocs\\mich\\data\\shptest"; $shpFile = ms_newShapeFileObj($shpFname, MS_SHP_POINT); $def = array(array("PROG_ID", "N", 5, 0)); $dbfFile = dbase_create($shpFname . ".dbf", $def); createPoint( 14, 34, 111); createPoint( 33, 14, 222); createPoint( 10, 20, 333); // done... cleanup $shpFile->free(); dbase_close($dbfFile); } function createPoint($x, $y, $name){ GLOBAL $shpFile, $dbfFile; // Create shape $oShp = ms_newShapeObj(MS_SHP_POINT); $oLine = ms_newLineObj(); $oLine->addXY($x, $y); $oShp->add( $oLine ); $shpFile->addShape($oShp); // Write attribute record dbase_add_record($dbfFile, array($name)); } From woodbri at swoodbridge.com Wed Apr 3 13:35:13 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 03 Apr 2002 16:35:13 -0500 Subject: [mapserver-users] how come drawMap works? References: Message-ID: <3CAB7591.B9D8EDAC@swoodbridge.com> But mapscript gets built as part of make with the wrong library. So what you are saying is ... 1) make to build libmap.a 2) make install to install the new lib 3) make clean to remove the bad mapscript that was built the first time 4) make again to build everything with the correct libmap.a OR change the Makefile to explicitly load the libmap.a you just built and expect to be loaded as part of the build process. AND if you don't know all about this in the first place you are basically screwed! I think the general expectation is that when I build mapserver and mapscript that it gets built with the current libraries not some left over thing that is just out there from the last time you installed software some 3, 6, 9 , 12, 18 months ago. I agree this is a good feature of ld, but I respectfully disagree that our Makefile(s) should pick up the old version when it is a simple change to force it to pick up the correct one. Libs in the system directory are only loaded based on the -L path and -lmap directives, if instead ../../libmap.a were explicitly loaded like a .o file this problem would go away. Here is the change I made to my Makefile: php_mapscript.so: $(PHPMS_OBJS) ../../libmap.a $(LD) -o $@ $(PHPMS_OBJS) $(MS_LIBS) which I think you will find solves this problem. -Steve W. Steve Lime wrote: > > I don't believe this can be classified as a build bug. One could call it > a feature of ld. If you > "install" libmap.a in the system libraries then of course you need to > install the new one > before building mapscript. The same goes for GD, Freetype, libtiff > etc... > > Changing the Makefile won't help. Libs in the system directories always > override local copies. > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Stephen Woodbridge 04/02/02 04:37PM >>> > I think I have an idea about this. There is a serious bug in the build > environment - when you build mapscript it does NOT link with the just > built libmap.a!!!! It links with the installed version of libmap.a if > it > exists! The Makefile(s) for mapscript need to explicitly load > ../..libmap.a so insure that the correct one is loaded. > > Puneet, see if you have a /usr/lib/libmap.a or /usr/local/lib/libmap.a > and delete it then make clean; make and you will probably get the > error. > > Could somebody chnage the Makefile(s). I will add this to bugzilla. > > -Steve Woodbridge > > Puneet Kishor wrote: > > > > dunno man... no error at all... it happily draws the map for me. go > figure. > > > > pk/ > > > > > -----Original Message----- > > > From: Daniel Morissette [mailto:morissette at dmsolutions.ca] > > > Sent: Tuesday, April 02, 2002 11:03 AM > > > To: Puneet Kishor > > > Cc: MapServer-list > > > Subject: Re: [mapserver-users] how come drawMap works? > > > > > > > > > Puneet Kishor wrote: > > > > > > > > I quite accidentally had been using drawMap() for rendering > > > my map, until I > > > > discovered that was not a part of PHP/Mapscript 3.5 > > > anymore. So, how the > > > > heck does it still work? Did you folks leave it in there for > > > > backward-compatibility? > > > > > > > > > > drawMap() is not there at all in PHP/Mapscript 3.5 ... you > > > should get an > > > error about this in your HTML source (do a "View Source" in your > > > browser). > > > > > > -- > > > ------------------------------------------------------------ > > > Daniel Morissette morissette at dmsolutions.ca > > > DM Solutions Group http://www.dmsolutions.ca/ > > > ------------------------------------------------------------ > > > Don't put for tomorrow what you can do today, because if > > > you enjoy it today you can do it again tomorrow. > > > From steve.lime at dnr.state.mn.us Wed Apr 3 14:15:43 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 03 Apr 2002 16:15:43 -0600 Subject: [mapserver-users] how come drawMap works? Message-ID: My point is that if you're going to install libmap.a in a system directory and don't replace it when appropriate then you're bound to run into problems at some point. There is no "make install" for libmap.a as part of the main makefile for just that reason. Unless there's a good reason to install libmap.a (you're building your own C/C++ code using it) then there's no reason to install it. Dan's the keeper of the PHP code so he'll have to make those changes... Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Stephen Woodbridge 04/03/02 03:35PM >>> But mapscript gets built as part of make with the wrong library. So what you are saying is ... 1) make to build libmap.a 2) make install to install the new lib 3) make clean to remove the bad mapscript that was built the first time 4) make again to build everything with the correct libmap.a OR change the Makefile to explicitly load the libmap.a you just built and expect to be loaded as part of the build process. AND if you don't know all about this in the first place you are basically screwed! I think the general expectation is that when I build mapserver and mapscript that it gets built with the current libraries not some left over thing that is just out there from the last time you installed software some 3, 6, 9 , 12, 18 months ago. I agree this is a good feature of ld, but I respectfully disagree that our Makefile(s) should pick up the old version when it is a simple change to force it to pick up the correct one. Libs in the system directory are only loaded based on the -L path and -lmap directives, if instead ../../libmap.a were explicitly loaded like a .o file this problem would go away. Here is the change I made to my Makefile: php_mapscript.so: $(PHPMS_OBJS) ../../libmap.a $(LD) -o $@ $(PHPMS_OBJS) $(MS_LIBS) which I think you will find solves this problem. -Steve W. Steve Lime wrote: > > I don't believe this can be classified as a build bug. One could call it > a feature of ld. If you > "install" libmap.a in the system libraries then of course you need to > install the new one > before building mapscript. The same goes for GD, Freetype, libtiff > etc... > > Changing the Makefile won't help. Libs in the system directories always > override local copies. > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Stephen Woodbridge 04/02/02 04:37PM >>> > I think I have an idea about this. There is a serious bug in the build > environment - when you build mapscript it does NOT link with the just > built libmap.a!!!! It links with the installed version of libmap.a if > it > exists! The Makefile(s) for mapscript need to explicitly load > ../..libmap.a so insure that the correct one is loaded. > > Puneet, see if you have a /usr/lib/libmap.a or /usr/local/lib/libmap.a > and delete it then make clean; make and you will probably get the > error. > > Could somebody chnage the Makefile(s). I will add this to bugzilla. > > -Steve Woodbridge > > Puneet Kishor wrote: > > > > dunno man... no error at all... it happily draws the map for me. go > figure. > > > > pk/ > > > > > -----Original Message----- > > > From: Daniel Morissette [mailto:morissette at dmsolutions.ca] > > > Sent: Tuesday, April 02, 2002 11:03 AM > > > To: Puneet Kishor > > > Cc: MapServer-list > > > Subject: Re: [mapserver-users] how come drawMap works? > > > > > > > > > Puneet Kishor wrote: > > > > > > > > I quite accidentally had been using drawMap() for rendering > > > my map, until I > > > > discovered that was not a part of PHP/Mapscript 3.5 > > > anymore. So, how the > > > > heck does it still work? Did you folks leave it in there for > > > > backward-compatibility? > > > > > > > > > > drawMap() is not there at all in PHP/Mapscript 3.5 ... you > > > should get an > > > error about this in your HTML source (do a "View Source" in your > > > browser). > > > > > > -- > > > ------------------------------------------------------------ > > > Daniel Morissette morissette at dmsolutions.ca > > > DM Solutions Group http://www.dmsolutions.ca/ > > > ------------------------------------------------------------ > > > Don't put for tomorrow what you can do today, because if > > > you enjoy it today you can do it again tomorrow. > > > From kridl at cs.und.edu Wed Apr 3 16:06:18 2002 From: kridl at cs.und.edu (Kent S Ridl) Date: Wed, 3 Apr 2002 18:06:18 -0600 (CST) Subject: [mapserver-users] odd... Message-ID: Something kinda weird... maybe someone knows what's going on... In my perl mapscript file, when I call a raster layer's draw method with a die clause attached to the end of it, it'll die every time. When i remove the die, it lives and my raster is drawn. I'm just curious if anyone knows why this is. Thanks! Kent Ridl From pkishor at GeoAnalytics.com Wed Apr 3 17:26:46 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 3 Apr 2002 19:26:46 -0600 Subject: [mapserver-users] getAllLayerNames() in PHP/Mapscript Message-ID: $arLayers = mapObj->getAllLayerNames() should yield an array of all layer names, no? I get an array with the correct number of elements in it... but the elements have no value... they are all empty. What am I missing? pk/ From joe at otsys.com Wed Apr 3 18:11:24 2002 From: joe at otsys.com (Joe Bussell) Date: Wed, 3 Apr 2002 18:11:24 -0800 Subject: [mapserver-users] multiple shapefiles in single layer Message-ID: <20020404021124.GA21163@extempore.otsys.com> Greetings, I am attempting to combine multiple shapefiles (data from different counties) into single layers. How can I do this without declaring multiple layers which must be handled seperately in the mapfile? Is there a standard method which will preserve the ability to querry the data? The mapfile syntax does not seem to allow multiple data tags for a given display layer. This leads me to wonder if there are tools which can merge shapefiles into a larger superset. Is anyone aware of such a tool? Joe Bussell On Time Systems From woodbri at swoodbridge.com Wed Apr 3 20:53:10 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 03 Apr 2002 23:53:10 -0500 Subject: [mapserver-users] multiple shapefiles in single layer References: <20020404021124.GA21163@extempore.otsys.com> Message-ID: <3CABDC36.7E2DBE5E@swoodbridge.com> Joe, I believe you want to use a tile index. See the utlities for a program called tile4ms. Say you have a roads layer for every country, then you can make a tileindex for all the roads file and then create one layer in the mapfile and reference TILEINDEX instead of DATA. You can create a separate tileindex for each kind of data set, like rivers, cities, landuse polygons, etc. -Steve W. Joe Bussell wrote: > > Greetings, > I am attempting to combine multiple shapefiles (data from different > counties) into single layers. How can I do this without declaring > multiple layers which must be handled seperately in the mapfile? Is > there a standard method which will preserve the ability to querry > the data? The mapfile syntax does not seem to allow multiple data tags > for a given display layer. This leads me to wonder if there are tools > which can merge shapefiles into a larger superset. Is anyone aware of > such a tool? > > Joe Bussell > On Time Systems From hwehr at hs-harz.de Wed Apr 3 22:40:10 2002 From: hwehr at hs-harz.de (Harald Wehr) Date: Thu, 04 Apr 2002 08:40:10 +0200 Subject: [mapserver-users] Threads and Mapscript References: <3C99A7F8.2010302@hs-harz.de> <3C99D3A2.2719FF17@swoodbridge.com> Message-ID: <3CABF54A.3030007@hs-harz.de> Stephen Woodbridge wrote: > Harald, > > mapserver is not thread-safe, I think the developers have start putting > mutex locking it but as you have found out it is not finnished. It also > crashes with PHP/mapscript if you do NOT build it as a CGI program. > > -Steve W. Hi Steve, I'm referring to our mails in march this year. You write that PHP/maspcript crashes too. How do other people handle this problem or is mapscript not used at all? Of course I can call the cgi-program from a java-servlet, but thats not so comfortable and not the intention of mapscript. THanks a lot for your help. Harald > > Harald Wehr wrote: > >>Using a cgi-script on a server for every request a new thread is opened, >>isn't it? >> >>I use mapscript in a servlet. Every request makes a new thread. I save >>one mapObject in one java-session. Several requests (from different >>browsers) produce different mapObjects. Everything works right until >>here. I have different objects with different c-pointers. >> >>Calling mapscript from one browser works fine. Calling it from another >>browser sometimes crashes my servlet-engine. It writes: >>"Unexpected exception outside virtual machine >>Function=msDrawRasterLayer+0x694 >>Library=/urs/local/lib/libmapscript.so" >>This happens when i call the map.draw()-method. Do you have any suggestions? >> >>What happens when i call >>"mapscipt.saveImage(pointer,"file.png",2,1,0,95)" from different >>threads? Is this thread-safe even in all depending libraries? >> >>Asking the "mapscript.get_ms_error" from different threads I always get >>the same c-pointer of the error. Is this right? Can I somehow get >>error-Objects related to specific thread? >> >>Harald >> > -- Hochschule Harz Projekt Mobiharz Tel. 03943/626654 Email: hwehr at hs-harz.de From woodbri at swoodbridge.com Thu Apr 4 04:31:31 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 04 Apr 2002 07:31:31 -0500 Subject: [mapserver-users] Threads and Mapscript References: <3C99A7F8.2010302@hs-harz.de> <3C99D3A2.2719FF17@swoodbridge.com> <3CABF54A.3030007@hs-harz.de> Message-ID: <3CAC47A3.FEDA0746@swoodbridge.com> Harald, I believe Frank or Dan responded to my message about mapserver thread safety and corrected my mis-informed statements. Please concided my statements erroronious - you need to review their response for the correct information. A lot of people use mapscript built as CGI without a problem. -Steve W. Harald Wehr wrote: > > Stephen Woodbridge wrote: > > > Harald, > > > > mapserver is not thread-safe, I think the developers have start putting > > mutex locking it but as you have found out it is not finnished. It also > > crashes with PHP/mapscript if you do NOT build it as a CGI program. > > > > -Steve W. > > Hi Steve, > > I'm referring to our mails in march this year. > > You write that PHP/maspcript crashes too. How do other people handle > this problem or is mapscript not used at all? > > Of course I can call the cgi-program from a java-servlet, but thats not > so comfortable and not the intention of mapscript. > > THanks a lot for your help. > > Harald > > > > > Harald Wehr wrote: > > > >>Using a cgi-script on a server for every request a new thread is opened, > >>isn't it? > >> > >>I use mapscript in a servlet. Every request makes a new thread. I save > >>one mapObject in one java-session. Several requests (from different > >>browsers) produce different mapObjects. Everything works right until > >>here. I have different objects with different c-pointers. > >> > >>Calling mapscript from one browser works fine. Calling it from another > >>browser sometimes crashes my servlet-engine. It writes: > >>"Unexpected exception outside virtual machine > >>Function=msDrawRasterLayer+0x694 > >>Library=/urs/local/lib/libmapscript.so" > >>This happens when i call the map.draw()-method. Do you have any suggestions? > >> > >>What happens when i call > >>"mapscipt.saveImage(pointer,"file.png",2,1,0,95)" from different > >>threads? Is this thread-safe even in all depending libraries? > >> > >>Asking the "mapscript.get_ms_error" from different threads I always get > >>the same c-pointer of the error. Is this right? Can I somehow get > >>error-Objects related to specific thread? > >> > >>Harald > >> > > > > -- > Hochschule Harz > Projekt Mobiharz > Tel. 03943/626654 > Email: hwehr at hs-harz.de From joao at pmpf.rs.gov.br Thu Apr 4 04:58:42 2002 From: joao at pmpf.rs.gov.br (joao at pmpf.rs.gov.br) Date: Thu, 4 Apr 2002 12:58:42 -0000 Subject: [mapserver-users] unsubscribe Message-ID: <20020404125843.DFDC546EF8@mail.passofundo.rs.gov.br> unsubscribe mapserver-users joao at pmpf.rs.gov.br -- www.pmpf.rs.gov.br From steve.lime at dnr.state.mn.us Wed Apr 3 21:26:07 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 03 Apr 2002 23:26:07 -0600 Subject: [mapserver-users] multiple shapefiles in single layer Message-ID: There is a mechanism in the MapServer that already supports this - tiling. Basically you create an index shapefile that contains boundaries for the various shapefiles in the layers (in you case counties). The index shapefile then references the individual shapefiles as an attribute. The default attribute is 'location' but you can call it what ever you'd like to (then use TILEITEM parameter) and can even use a single tile index for multiple layers (e.g. you have roads and lakes tiled by county). Support for query of tiled data is supported in version 3.5+. See the documentation (and perhaps the wiki) for more details. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Joe Bussell 04/03/02 20:21 PM >>> Greetings, I am attempting to combine multiple shapefiles (data from different counties) into single layers. How can I do this without declaring multiple layers which must be handled seperately in the mapfile? Is there a standard method which will preserve the ability to querry the data? The mapfile syntax does not seem to allow multiple data tags for a given display layer. This leads me to wonder if there are tools which can merge shapefiles into a larger superset. Is anyone aware of such a tool? Joe Bussell On Time Systems From lfilak at medinaco.org Thu Apr 4 05:29:27 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Thu, 04 Apr 2002 08:29:27 -0500 Subject: [mapserver-users] odd... Message-ID: <200204041320.g34DKuQ03774@yogi.medinaco.net> What does your draw line look like with the die clause added? Lowell F. The following message was sent by Kent S Ridl on Wed, 3 Apr 2002 18:06:18 -0600 (CST). > Something kinda weird... maybe someone knows what's going on... > > In my perl mapscript file, when I call a raster layer's draw method with a > die clause attached to the end of it, it'll die every time. When i remove > the die, it lives and my raster is drawn. > > I'm just curious if anyone knows why this is. Thanks! > > Kent Ridl From gabriel at ciasc.gov.br Thu Apr 4 05:30:45 2002 From: gabriel at ciasc.gov.br (gabriel) Date: Thu, 4 Apr 2002 10:30:45 -0300 Subject: [mapserver-users] Protect files Message-ID: <022301c1dbdc$ed28d9d0$12d713ac@ciasc.gov.br> How I can protect my files under "data" directory ? My MapServer is running on Linux and I try to change the "chmod", without success. Ferrari -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bjarni.Pjetursson at tietoenator.com Thu Apr 4 05:58:49 2002 From: Bjarni.Pjetursson at tietoenator.com (Bjarni Pjetursson) Date: Thu, 4 Apr 2002 15:58:49 +0200 Subject: [mapserver-users] Spatial data from Oracle - how? Message-ID: <18E0CC75605BD411907800508B8BB8D049E528@odin.enator.dk> Hi, I've succesfully run the Gmap and Itasca demo and managed to replace the old shp-files with my own, but now I want to retrieve data from a database. On the main page of MapServer it is said: "If the data has a spatial component and you can get to it via your favorite scripting enviroment then you can map it." But I can't find any documentation on data from a database. How can I pass the data on to MapServer? I want to use Perl or PHP on Apache HP Unix. I have my spatial data in an Oracle 8.1.6 database (not Oracle Spatial). What to do? Any suggestions will be highly appreciated. Regards Bjarni Thor Pjetursson From Chip.Hankley at GASAI.Com Thu Apr 4 06:27:21 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Thu, 4 Apr 2002 08:27:21 -0600 Subject: [mapserver-users] RE: perplexing error: msDrawShape(): Only p olygon shapes can be.. . Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010AB9CF@postoffice.GASAI.Com> Puneet... I had some similarly perplexing problems with a poly shapefile about 6 months ago. In my case, the polygon just wouldn't render in my MapServer app, and I couldn't query the polygon by "clicking" on it, but I could get it to show up based on a logical query (i.e. turn polygonid=32 red). On the other had, everything rendered fine in ArcView. For what it's worth, these were data sets that I had converted to shapefiles from DGN. I think what I finally ended up doing was converting the shapefiles to ArcInfo coverages, cleaning them, then converting them back to shapefiles. For some reason, this seemed to fix the problem, although I have no idea what the underlying cause was. Chip Hankley -----Original Message----- From: Puneet Kishor [mailto:pkishor at GeoAnalytics.com] Sent: Wednesday, April 03, 2002 3:08 PM To: 'mapserver-users at lists.gis.umn.edu' Subject: [mapserver-users] RE: perplexing error: msDrawShape(): Only polygon shapes can be.. . further info on this... I found a layer (the layer) that was causing the problem. When I take that layer out of the map file, the map draws fine. I changed the TYPE definition from polygon to line, and still got the above error. Changed it to point and it drew fine. Arcview shows it up as a polygon layer filled with all "area > 0" polygons. The weirdest thing is that the above error does not occur when I draw the map by clicking on it, such as when identifying a feature. Any ideas anyone? pk/ > -----Original Message----- > From: Puneet Kishor > Sent: Wednesday, April 03, 2002 1:32 PM > To: mapserver-users at lists.gis.umn.edu > Subject: perplexing error: msDrawShape(): Only polygon shapes > can be... > > > MapServer Error in msDrawShape(): Only polygon shapes can be > drawn using a POLYGON layer definition > > > I get the above error _only_ when I try to zoom around the > map. That is, I am able to draw the map fine while > identifying (by clicking) or by directly zooming to a known > feature. I have a map file with 5 layers in it... 4 are > polygons and 1 is lines. As I said, if I search for a feature > using an attribute, or if I click on an existing map and > identify and zoom to the selected feature, it draws just fine. > > This is driving me nuts. > > Many tia, > > pk/ > From stephane.morel at vanoise.com Thu Apr 4 07:23:37 2002 From: stephane.morel at vanoise.com (Stephane MOREL) Date: Thu, 04 Apr 2002 16:23:37 +0100 Subject: [mapserver-users] PROJ problems Message-ID: <3CAC6FF9.457846CE@vanoise.com> Hi, I ve installed mapserver 3.5 on a suse linux 7.2 with proj support. When I run ./mapserv -v i have : Mapserver version 3.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORT=PROJ SUPPORTS=TTF SUPPORT=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE. I understand that proj support is supported. But when I put a projection clause in may mapfile I got the following message : Warning: MapServer Error in loadProjection(): Projection support is not available If someone can explain this to me or tell where I can find something about using the proj clause even with mapscript.... Thanks Stef PS : excuse me for my poor english!!!!!;o)))) -------------- next part -------------- A non-text attachment was scrubbed... Name: stephane.morel.vcf Type: text/x-vcard Size: 344 bytes Desc: Carte pour Stephane MOREL URL: From Chip.Hankley at GASAI.Com Thu Apr 4 06:40:22 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Thu, 4 Apr 2002 08:40:22 -0600 Subject: [mapserver-users] getAllLayerNames() in PHP/Mapscript Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010AB9D0@postoffice.GASAI.Com> Do you have the NAME value filled in your map file (like below)? LAYER NAME "OP0" DATA o20_scale.tif MINSCALE 24600 STATUS DEFAULT OFFSITE 0 TYPE RASTER END LAYER NAME "OP1" MAXSCALE 24600 MINSCALE 9218 STATUS DEFAULT TILEINDEX "tile_test\s10images\o_10scale.shp" TILEITEM "Location" TYPE RASTER OFFSITE 0 END I ran the following code on a map file and it worked fine... getAllLayerNames(); foreach ($a as $v) { echo "$v
"; } ?> btw... I'm running 3.5 mapscript, php 4.06, win2K w/ IIS. Chip -----Original Message----- From: Puneet Kishor [mailto:pkishor at GeoAnalytics.com] Sent: Wednesday, April 03, 2002 7:27 PM To: 'mapserver-users at lists.gis.umn.edu' Subject: [mapserver-users] getAllLayerNames() in PHP/Mapscript $arLayers = mapObj->getAllLayerNames() should yield an array of all layer names, no? I get an array with the correct number of elements in it... but the elements have no value... they are all empty. What am I missing? pk/ From pkishor at GeoAnalytics.com Thu Apr 4 07:35:43 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Thu, 4 Apr 2002 09:35:43 -0600 Subject: [mapserver-users] getAllLayerNames() in PHP/Mapscript Message-ID: Thanks Chip, strange... $layers = $map->getAllLayerNames(); ==== following does not work ========== for($i=0; $i<=count($layers); $i++) { print "$layers[i]
"; } ==== does not work ========== ==== following does work ========== foreach ($layers as $v) { echo "$v
"; } ==== does work ========== what am I missing here... pk/ > -----Original Message----- > From: Hankley, Chip [mailto:Chip.Hankley at GASAI.Com] [snip] > I ran the following code on a map file and it worked fine... > > $map = ms_newMapObj("test.map"); > $a = $map->getAllLayerNames(); > > foreach ($a as $v) { > echo "$v
"; > } > ?> > > btw... I'm running 3.5 mapscript, php 4.06, win2K w/ IIS. > > Chip > > -----Original Message----- > From: Puneet Kishor [mailto:pkishor at GeoAnalytics.com] > Sent: Wednesday, April 03, 2002 7:27 PM > To: 'mapserver-users at lists.gis.umn.edu' > Subject: [mapserver-users] getAllLayerNames() in PHP/Mapscript > > > $arLayers = mapObj->getAllLayerNames() > > should yield an array of all layer names, no? > > I get an array with the correct number of elements in it... > but the elements > have no value... they are all empty. > > What am I missing? > > pk/ > From pkishor at GeoAnalytics.com Thu Apr 4 07:37:55 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Thu, 4 Apr 2002 09:37:55 -0600 Subject: [mapserver-users] RE: perplexing error: msDrawShape(): Only p olygon shapes can be.. . Message-ID: I guess I will have to do something like this as well. But, here's the funny thing. Exactly the same layer (same physical layer, same definition in the map file) works just fine in MS3.4, but croaks in MS3.5. Additionally, as I noted, as long as I don't use any of zoom methods, it draws ok as a polygon. As soon as I use a zoom method, it complains that it is not a polygon. Tested it in Arcview for unclean polys, or polys with area not greater 0... nothing out of the ordinary at all. pk/ > -----Original Message----- > From: Hankley, Chip [mailto:Chip.Hankley at GASAI.Com] > Sent: Thursday, April 04, 2002 8:27 AM > To: 'Puneet Kishor'; 'mapserver-users at lists.gis.umn.edu' > Subject: RE: [mapserver-users] RE: perplexing error: > msDrawShape(): Only > p olygon shapes can be.. . > > > Puneet... > > I had some similarly perplexing problems with a poly shapefile about 6 > months ago. In my case, the polygon just wouldn't render in > my MapServer > app, and I couldn't query the polygon by "clicking" on it, > but I could get > it to show up based on a logical query (i.e. turn polygonid=32 red). > > On the other had, everything rendered fine in ArcView. For > what it's worth, > these were data sets that I had converted to shapefiles from > DGN. I think > what I finally ended up doing was converting the shapefiles to ArcInfo > coverages, cleaning them, then converting them back to > shapefiles. For some > reason, this seemed to fix the problem, although I have no > idea what the > underlying cause was. > > Chip Hankley > > -----Original Message----- > From: Puneet Kishor [mailto:pkishor at GeoAnalytics.com] > Sent: Wednesday, April 03, 2002 3:08 PM > To: 'mapserver-users at lists.gis.umn.edu' > Subject: [mapserver-users] RE: perplexing error: msDrawShape(): Only > polygon shapes can be.. . > > > further info on this... > > I found a layer (the layer) that was causing the problem. > When I take that > layer out of the map file, the map draws fine. > > I changed the TYPE definition from polygon to line, and still > got the above > error. Changed it to point and it drew fine. > > Arcview shows it up as a polygon layer filled with all "area > > 0" polygons. > > The weirdest thing is that the above error does not occur > when I draw the > map by clicking on it, such as when identifying a feature. > > Any ideas anyone? > > pk/ > > > > > > > -----Original Message----- > > From: Puneet Kishor > > Sent: Wednesday, April 03, 2002 1:32 PM > > To: mapserver-users at lists.gis.umn.edu > > Subject: perplexing error: msDrawShape(): Only polygon shapes > > can be... > > > > > > MapServer Error in msDrawShape(): Only polygon shapes can be > > drawn using a POLYGON layer definition > > > > > > I get the above error _only_ when I try to zoom around the > > map. That is, I am able to draw the map fine while > > identifying (by clicking) or by directly zooming to a known > > feature. I have a map file with 5 layers in it... 4 are > > polygons and 1 is lines. As I said, if I search for a feature > > using an attribute, or if I click on an existing map and > > identify and zoom to the selected feature, it draws just fine. > > > > This is driving me nuts. > > > > Many tia, > > > > pk/ > > > From Chip.Hankley at GASAI.Com Thu Apr 4 08:26:40 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Thu, 4 Apr 2002 10:26:40 -0600 Subject: [mapserver-users] getAllLayerNames() in PHP/Mapscript Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010AB9D1@postoffice.GASAI.Com> I think the line: print "$layers[i]
"; should be print "$layers[$i]
"; ...I hate it when that happen ;) Cheers! Chip From pkishor at GeoAnalytics.com Thu Apr 4 08:30:18 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Thu, 4 Apr 2002 10:30:18 -0600 Subject: [mapserver-users] getAllLayerNames() in PHP/Mapscript Message-ID: DOH pUNEET. I am really sinking to the depths of fogginess nowadays. Am truly embarrassed. Thanks Chip. > -----Original Message----- > From: Hankley, Chip [mailto:Chip.Hankley at GASAI.Com] > Sent: Thursday, April 04, 2002 10:27 AM > To: 'Puneet Kishor' > Cc: 'mapserver-users at lists.gis.umn.edu' > Subject: RE: [mapserver-users] getAllLayerNames() in PHP/Mapscript > > > I think the line: > > print "$layers[i]
"; > > should be > > print "$layers[$i]
"; > > ...I hate it when that happen ;) > > Cheers! > > Chip > From morten at ngb.se Thu Apr 4 09:15:08 2002 From: morten at ngb.se (Morten Hulden) Date: Thu, 4 Apr 2002 19:15:08 +0200 (CEST) Subject: [mapserver-users] PROJ problems In-Reply-To: <3CAC6FF9.457846CE@vanoise.com> Message-ID: Get PROJ from ftp://ftp.remotesensing.org/pub/proj/proj-4.4.5.tar.gz compile and install it and then rebuild your mapserver --with-proj MHu On Thu, 4 Apr 2002, Stephane MOREL wrote: > Hi, > I ve installed mapserver 3.5 on a suse linux 7.2 with proj support. > When I run ./mapserv -v i have : > Mapserver version 3.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORT=PROJ > SUPPORTS=TTF SUPPORT=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE. > I understand that proj support is supported. > But when I put a projection clause in may mapfile I got the following > message : > > Warning: MapServer Error in loadProjection(): Projection support is not > available > > If someone can explain this to me or tell where I can find something > about using the proj clause even with mapscript.... > > Thanks > > Stef > > PS : excuse me for my poor english!!!!!;o)))) From pushkar at ERC.MsState.Edu Thu Apr 4 09:55:53 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Thu, 4 Apr 2002 11:55:53 -0600 (CST) Subject: [mapserver-users] RE: dynamically allocated points for MAP w/ PHP In-Reply-To: <001001c1db55$aba317a0$967ba8c0@xp> Message-ID: I have a related question, in php/mapscript I show the user a html list from which he/she can select layers to add to the current view, I am writing some code but it doesn't work can somebody provide me with the algorithm if not the code like the one given below: if ( isset($HTTP_POST_VARS["layer"]) ) { echo $HTTP_POST_VARS["layer"]; $layer = $map->getLayerByName($HTTP_POST_VARS["layer"]); $image = $map->prepareImage(); $layer->draw($image); $image_url = $image->saveWebImage(MS_PNG,1,1,0); } // end of if loop The above code doesn't work it creates a blank image, moreover if one selects multiple layers to display then only the last one selected is chosen. Thanks, > Hi Scott, > > There is nothing wrong with the PHP code, except it does not create a > layer, but it creates a new shapefile ;-) > > So you want to create a layer, dynamicly, or ..... > > Example of creating a layer from a shapefile: > > 0) Create map-object > 1) Get object/points from existing-shapefile or from database > 2) Put it in new-shapefile (as you did in your php-script) > 3) Create dbf-file with name of new-shapefile > 4) Clear new-shapefile (as you did) > 5) Add new-layer to map-object (default of this layer is set to OFF) > 6) Show new-layer (turn it ON) > 7) Draw the map (now includes newly created shapefile ;-) ) > > Explanation: > > *** In 0) you use like: $Map = ms_newMapObj("blabla.map"); > > *** In 1) you determine input. This could be the 3 points you have in > your example, but also could be a shape or lat/lon from a database (eg. > dbf/MySQL) > > *** Option 2) and 3) and 4) you have in your mapscript. This creates a > shapefile + corresponding dbf-file. > > *** Option 5) and 6) is best done using a dummy-layer which is set to > OFF in your map-file. You turn it on AND attach the new shapefile-data > from by using: > $Dummylayer = ms_newLayerObj($Map); // a new layerobject > $Dummylayer = $Map->getLayerByName("MapLayer"); > $Dummylayer->set("status", 1); // Turn it on > $Dummylayer->set("data", $shpFname); // Add your created > data > > While your map-layer looks something like: > > LAYER > NAME "MapLayer" > TYPE POINT > STATUS OFF > CLASS > SYMBOL 'circle' > COLOR 0 0 0 > SIZE 3 > END > END > > *** Option 7) is something like: > > $ImgMap = $Map->draw(); > > This should do the trick. > > Erwin > > > > -----Original Message----- > From: Scott D Cogan [mailto:cogansco at msu.edu] > Sent: Wednesday, April 03, 2002 10:28 PM > To: Consult IT!, E. Perik; mapserver-users at lists.gis.umn.edu > Subject: dynamically allocated points for MAP w/ PHP > > what is wrong with this PHP code? i am trying to create a layer of > points > using mapscript. i had this working previously, then somehow deleted > the > file. now i cant figure it out again: > > if ($init==1) { > // recreate the site layer > $shpFname = "C:\\Program Files\\Apache\\htdocs\\mich\\data\\shptest"; > $shpFile = ms_newShapeFileObj($shpFname, MS_SHP_POINT); > $def = array(array("PROG_ID", "N", 5, 0)); > $dbfFile = dbase_create($shpFname . ".dbf", $def); > createPoint( 14, 34, 111); > createPoint( 33, 14, 222); > createPoint( 10, 20, 333); > // done... cleanup > $shpFile->free(); > dbase_close($dbfFile); > } > > > function createPoint($x, $y, $name){ > GLOBAL $shpFile, $dbfFile; > // Create shape > $oShp = ms_newShapeObj(MS_SHP_POINT); > $oLine = ms_newLineObj(); > $oLine->addXY($x, $y); > $oShp->add( $oLine ); > $shpFile->addShape($oShp); > // Write attribute record > dbase_add_record($dbfFile, array($name)); > } > ------------------------------------------------------------------------------ PUSHKAR S. PRADHAN Research Assistant MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------------ From pkishor at GeoAnalytics.com Thu Apr 4 10:14:39 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Thu, 4 Apr 2002 12:14:39 -0600 Subject: [mapserver-users] RE: perplexing error: msDrawShape(): Only p olygon shapes can be.. . Message-ID: found it... there was a null shape. I guess, ms3.4 was forgiving where ms3.5 is not. thanks everyone. btw, if someone can explain to me what is a null shape I will find my curiosity satisfied. is it when there is no geog feature but a dbf row exists? it certainly is not a feature with area = 0. I mean, isn't the absence of a feature simply no feature? pk/ > -----Original Message----- > From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] > Sent: Thursday, April 04, 2002 12:03 PM > To: klehr1 at tampabay.rr.com > Cc: Hankley, Chip; 'Puneet Kishor'; Stephen Lime > Subject: Re: [mapserver-users] RE: perplexing error: > msDrawShape(): Only > polygon shapes can be.. . > > > Hi all, > > Steve Lehr makes a good point. > > If you download shp2tile from http://swoodbridge.com/tools/ > you can run > your shp file through it and create a 1x1 set of tiles. It will > basically copy the input file to the output but it eill also > remove any > null shape objects found in the file. If you have a null shape in the > file, mapserver does not like it. Give this a try and see of the new > file has better behavior. > > -Steve W. > > klehr1 at tampabay.rr.com wrote: > > > > Steve's -- is this the same problem I experienced with a null in the > > shapefile ? > > > > ----- Original Message ----- > > From: Hankley, Chip > > To: 'Puneet Kishor' ; > > > > Sent: Thursday, April 04, 2002 9:27 AM > > Subject: RE: [mapserver-users] RE: perplexing error: > msDrawShape(): Only > > polygon shapes can be.. . > > > > > Puneet... > > > > > > I had some similarly perplexing problems with a poly > shapefile about 6 > > > months ago. In my case, the polygon just wouldn't render > in my MapServer > > > app, and I couldn't query the polygon by "clicking" on > it, but I could get > > > it to show up based on a logical query (i.e. turn > polygonid=32 red). > > > > > > On the other had, everything rendered fine in ArcView. > For what it's > > worth, > > > these were data sets that I had converted to shapefiles > from DGN. I think > > > what I finally ended up doing was converting the > shapefiles to ArcInfo > > > coverages, cleaning them, then converting them back to > shapefiles. For > > some > > > reason, this seemed to fix the problem, although I have > no idea what the > > > underlying cause was. > > > > > > Chip Hankley > > > > > > -----Original Message----- > > > From: Puneet Kishor [mailto:pkishor at GeoAnalytics.com] > > > Sent: Wednesday, April 03, 2002 3:08 PM > > > To: 'mapserver-users at lists.gis.umn.edu' > > > Subject: [mapserver-users] RE: perplexing error: > msDrawShape(): Only > > > polygon shapes can be.. . > > > > > > > > > further info on this... > > > > > > I found a layer (the layer) that was causing the problem. > When I take that > > > layer out of the map file, the map draws fine. > > > > > > I changed the TYPE definition from polygon to line, and > still got the > > above > > > error. Changed it to point and it drew fine. > > > > > > Arcview shows it up as a polygon layer filled with all "area > 0" > > polygons. > > > > > > The weirdest thing is that the above error does not occur > when I draw the > > > map by clicking on it, such as when identifying a feature. > > > > > > Any ideas anyone? > > > > > > pk/ > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > From: Puneet Kishor > > > > Sent: Wednesday, April 03, 2002 1:32 PM > > > > To: mapserver-users at lists.gis.umn.edu > > > > Subject: perplexing error: msDrawShape(): Only polygon shapes > > > > can be... > > > > > > > > > > > > MapServer Error in msDrawShape(): Only polygon shapes can be > > > > drawn using a POLYGON layer definition > > > > > > > > > > > > I get the above error _only_ when I try to zoom around the > > > > map. That is, I am able to draw the map fine while > > > > identifying (by clicking) or by directly zooming to a known > > > > feature. I have a map file with 5 layers in it... 4 are > > > > polygons and 1 is lines. As I said, if I search for a feature > > > > using an attribute, or if I click on an existing map and > > > > identify and zoom to the selected feature, it draws just fine. > > > > > > > > This is driving me nuts. > > > > > > > > Many tia, > > > > > > > > pk/ > > > > > From pgigoux at munistgo.cl Thu Apr 4 11:23:35 2002 From: pgigoux at munistgo.cl (Patricio Gigoux) Date: Thu, 4 Apr 2002 15:23:35 -0400 Subject: [mapserver-users] legend Message-ID: <200204041923.g34JNbB02775@localhost.localdomain> I have the next in map file LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 255 255 255 END STATUS ON END and I define the next layers LAYER NAME pred TYPE POLYGON MAXSCALE 25000 DATA pred STATUS On CLASSITEM 'cod' CLASS NAME "pred" OUTLINECOLOR 181 181 145 END TOLERANCE 3 END and LAYER NAME pr1 TYPE POLYGON STATUS On DATA prc01 CLASSITEM 'cl_zna' CLASS EXPRESSION "A" COLOR 79 6 97 END CLASS EXPRESSION "A1" COLOR 79 6 97 END the problem is when I draw legend apear only first layer What is my wrong? Thank in advance Patricio From bud at cirl.uoregon.edu Thu Apr 4 11:56:29 2002 From: bud at cirl.uoregon.edu (Dan Keith) Date: Thu, 4 Apr 2002 11:56:29 -0800 Subject: [mapserver-users] multiple shapefiles in single layer In-Reply-To: References: Message-ID: Hi, I have a few more questions re: tiling. The tile4ms utility doesn't support the specification of the TILEITEM parameter (i.e., it is always LOCATION), nor does it allow the merging of a tile index into an existing tileindex file. I presume that the only way to create a multicolumn tile index (thus allowing the use of multiple TILEITEMs from within the .map file) is to write a separate program (e.g., using Perl's XBase module) to aggregate multiple tileindex files into a single .dbf file. Is this the correct way? What are the advantages to creating such a multicolumn tileindex, vs using separate tileindex file for each logical dataset? Is it more efficient? Also, is it better to create a spatial index from the individual shapefiles in a tileindex, or is it better (or even possible) to create a spatial index from the composite tileindex? Thanks At 11:26 PM -0600 4/3/02, Steve Lime wrote: >There is a mechanism in the MapServer that already supports this - >tiling. Basically you create an index shapefile that contains boundaries >for the various shapefiles in the layers (in you case counties). The >index shapefile then references the individual shapefiles as an >attribute. The default attribute is 'location' but you can call it what >ever you'd like to (then use TILEITEM parameter) and can even use a >single tile index for multiple layers (e.g. you have roads and lakes >tiled by county). Support for query of tiled data is supported in >version 3.5+. See the documentation (and perhaps the wiki) for more >details. > >Steve > >Stephen Lime >Data & Applications Manager > >Minnesota DNR >500 Lafayette Road >St. Paul, MN 55155 >651-297-2937 >>>> Joe Bussell 04/03/02 20:21 PM >>> >Greetings, > I am attempting to combine multiple shapefiles (data from different >counties) into single layers. How can I do this without declaring >multiple layers which must be handled seperately in the mapfile? Is >there a standard method which will preserve the ability to querry >the data? The mapfile syntax does not seem to allow multiple data tags >for a given display layer. This leads me to wonder if there are tools >which can merge shapefiles into a larger superset. Is anyone aware of >such a tool? > >Joe Bussell >On Time Systems -- Dan "Bud" Keith - bud at otsys.com From pkishor at GeoAnalytics.com Thu Apr 4 12:03:04 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Thu, 4 Apr 2002 14:03:04 -0600 Subject: [mapserver-users] legend Message-ID: legend depends on the existence of a CLASS NAME. Take away the NAME and the legend won't be created for that layer. > -----Original Message----- > From: Patricio Gigoux [mailto:pgigoux at munistgo.cl] > Sent: Thursday, April 04, 2002 1:24 PM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] legend > > > I have the next in map file > > LEGEND > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 255 255 255 > END > STATUS ON > END > > and I define the next layers > LAYER > NAME pred > TYPE POLYGON > MAXSCALE 25000 > DATA pred > STATUS On > CLASSITEM 'cod' > CLASS > NAME "pred" > OUTLINECOLOR 181 181 145 > END > TOLERANCE 3 > END > > and > > LAYER > NAME pr1 > TYPE POLYGON > STATUS On > DATA prc01 > CLASSITEM 'cl_zna' > CLASS > EXPRESSION "A" > COLOR 79 6 97 > END > CLASS > EXPRESSION "A1" > COLOR 79 6 97 > END > > the problem is when I draw legend apear only first layer > What is my wrong? > > Thank in advance > Patricio > From pgigoux at munistgo.cl Thu Apr 4 13:24:34 2002 From: pgigoux at munistgo.cl (Patricio Gigoux) Date: Thu, 4 Apr 2002 17:24:34 -0400 Subject: [mapserver-users] legend In-Reply-To: <048FBD219330D211B47000A0C9B3BAFD0361AA69@crl02.crrel.usace.army.mil> References: <048FBD219330D211B47000A0C9B3BAFD0361AA69@crl02.crrel.usace.army.mil> Message-ID: <200204042124.g34LOa801834@localhost.localdomain> Thanks a lot El Jue 04 Abr 2002 16:12, Stender, Amy ERDC-CRREL-NH escribi?: > you need that "NAME" keyword inside your classes. so you would have the > following: > > LAYER > NAME pr1 > TYPE POLYGON > STATUS On > DATA prc01 > CLASSITEM 'cl_zna' > CLASS > NAME "A" > EXPRESSION "A" > COLOR 79 6 97 > END > CLASS > NAME "A1" > EXPRESSION "A1" > COLOR 79 6 97 > END > END > > Amy L. Stender > Remote Sensing/GIS Center > Cold Regions Research and Engineering Laboratory > United States Army Corps of Engineers > 72 Lyme Road, Hanover, NH 03755-1290 > Tel: (603) 646-4733 > Fax: (603) 646-4730 > astender at crrel.usace.army.mil > > > -----Original Message----- > From: Patricio Gigoux [mailto:pgigoux at munistgo.cl] > Sent: Thursday, April 04, 2002 2:24 PM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] legend > > > I have the next in map file > > LEGEND > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 255 255 255 > END > STATUS ON > END > > and I define the next layers > LAYER > NAME pred > TYPE POLYGON > MAXSCALE 25000 > DATA pred > STATUS On > CLASSITEM 'cod' > CLASS > NAME "pred" > OUTLINECOLOR 181 181 145 > END > TOLERANCE 3 > END > > and > > LAYER > NAME pr1 > TYPE POLYGON > STATUS On > DATA prc01 > CLASSITEM 'cl_zna' > CLASS > EXPRESSION "A" > COLOR 79 6 97 > END > CLASS > EXPRESSION "A1" > COLOR 79 6 97 > END > > the problem is when I draw legend apear only first layer > What is my wrong? > > Thank in advance > Patricio From joe at otsys.com Thu Apr 4 13:51:00 2002 From: joe at otsys.com (Joe Bussell) Date: Thu, 4 Apr 2002 13:51:00 -0800 Subject: [mapserver-users] legend In-Reply-To: <200204041923.g34JNbB02775@localhost.localdomain> References: <200204041923.g34JNbB02775@localhost.localdomain> Message-ID: <20020404215100.GA3266@extempore.otsys.com> Unless you declare a NAME withing the CLASS it will not print in the legend. Good Luck Joe Bussell On Time Systems On Thu, Apr 04, 2002 at 03:23:35PM -0400, Patricio Gigoux wrote: > I have the next in map file > > LEGEND > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 255 255 255 > END > STATUS ON > END > > and I define the next layers > LAYER > NAME pred > TYPE POLYGON > MAXSCALE 25000 > DATA pred > STATUS On > CLASSITEM 'cod' > CLASS > NAME "pred" > OUTLINECOLOR 181 181 145 > END > TOLERANCE 3 > END > > and > > LAYER > NAME pr1 > TYPE POLYGON > STATUS On > DATA prc01 > CLASSITEM 'cl_zna' > CLASS > EXPRESSION "A" > COLOR 79 6 97 > END > CLASS > EXPRESSION "A1" > COLOR 79 6 97 > END > > the problem is when I draw legend apear only first layer > What is my wrong? > > Thank in advance > Patricio From erwin at perik.nu Thu Apr 4 15:02:35 2002 From: erwin at perik.nu (E Perik) Date: Fri, 5 Apr 2002 01:02:35 +0200 Subject: [mapserver-users] RE: dynamically allocated points for MAP w/ PHP In-Reply-To: Message-ID: <002001c1dc2c$cfbbfd00$967ba8c0@xp> Hi Pushkar, Just to check the obvious,.... 1) Does it echo the layername? 2) Should you not use 'explode' for $layer when multiple are selected? 3) Is the layername an existing one and not too long? 4) Is the layer STATUS set to: DEFAULT or ON ? 5) Is the layer set in your url like: http://localhost/.../name.php?zoom=1&layer="layer1 layer2 layer3" 6) You sure POST is correct? Did you check GET ? Option 2) should use a string like "layer1 layer2 layer3" (see option 5) and then you explode it using the space so you then use $layer[0] for your first layer of the 'original-string-array' For exploding use something like: $LayerArray = explode(" ", $HTTP_GET_VARS["layer"]); Then from the example above you get: $LayerArray[0] would be "layer1" $LayerArray[1] would be "layer2" $LayerArray[2] would be "layer3" Erwin -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of Pushkar Pradhan Sent: Thursday, April 04, 2002 7:56 PM To: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] RE: dynamically allocated points for MAP w/ PHP I have a related question, in php/mapscript I show the user a html list from which he/she can select layers to add to the current view, I am writing some code but it doesn't work can somebody provide me with the algorithm if not the code like the one given below: if ( isset($HTTP_POST_VARS["layer"]) ) { echo $HTTP_POST_VARS["layer"]; $layer = $map->getLayerByName($HTTP_POST_VARS["layer"]); $image = $map->prepareImage(); $layer->draw($image); $image_url = $image->saveWebImage(MS_PNG,1,1,0); } // end of if loop The above code doesn't work it creates a blank image, moreover if one selects multiple layers to display then only the last one selected is chosen. Thanks, > Hi Scott, > > There is nothing wrong with the PHP code, except it does not create a > layer, but it creates a new shapefile ;-) > > So you want to create a layer, dynamicly, or ..... > > Example of creating a layer from a shapefile: > > 0) Create map-object > 1) Get object/points from existing-shapefile or from database > 2) Put it in new-shapefile (as you did in your php-script) > 3) Create dbf-file with name of new-shapefile > 4) Clear new-shapefile (as you did) > 5) Add new-layer to map-object (default of this layer is set to OFF) > 6) Show new-layer (turn it ON) > 7) Draw the map (now includes newly created shapefile ;-) ) > > Explanation: > > *** In 0) you use like: $Map = ms_newMapObj("blabla.map"); > > *** In 1) you determine input. This could be the 3 points you have in > your example, but also could be a shape or lat/lon from a database (eg. > dbf/MySQL) > > *** Option 2) and 3) and 4) you have in your mapscript. This creates a > shapefile + corresponding dbf-file. > > *** Option 5) and 6) is best done using a dummy-layer which is set to > OFF in your map-file. You turn it on AND attach the new shapefile-data > from by using: > $Dummylayer = ms_newLayerObj($Map); // a new layerobject > $Dummylayer = $Map->getLayerByName("MapLayer"); > $Dummylayer->set("status", 1); // Turn it on > $Dummylayer->set("data", $shpFname); // Add your created > data > > While your map-layer looks something like: > > LAYER > NAME "MapLayer" > TYPE POINT > STATUS OFF > CLASS > SYMBOL 'circle' > COLOR 0 0 0 > SIZE 3 > END > END > > *** Option 7) is something like: > > $ImgMap = $Map->draw(); > > This should do the trick. > > Erwin > > > > -----Original Message----- > From: Scott D Cogan [mailto:cogansco at msu.edu] > Sent: Wednesday, April 03, 2002 10:28 PM > To: Consult IT!, E. Perik; mapserver-users at lists.gis.umn.edu > Subject: dynamically allocated points for MAP w/ PHP > > what is wrong with this PHP code? i am trying to create a layer of > points > using mapscript. i had this working previously, then somehow deleted > the > file. now i cant figure it out again: > > if ($init==1) { > // recreate the site layer > $shpFname = "C:\\Program Files\\Apache\\htdocs\\mich\\data\\shptest"; > $shpFile = ms_newShapeFileObj($shpFname, MS_SHP_POINT); > $def = array(array("PROG_ID", "N", 5, 0)); > $dbfFile = dbase_create($shpFname . ".dbf", $def); > createPoint( 14, 34, 111); > createPoint( 33, 14, 222); > createPoint( 10, 20, 333); > // done... cleanup > $shpFile->free(); > dbase_close($dbfFile); > } > > > function createPoint($x, $y, $name){ > GLOBAL $shpFile, $dbfFile; > // Create shape > $oShp = ms_newShapeObj(MS_SHP_POINT); > $oLine = ms_newLineObj(); > $oLine->addXY($x, $y); > $oShp->add( $oLine ); > $shpFile->addShape($oShp); > // Write attribute record > dbase_add_record($dbfFile, array($name)); > } > ------------------------------------------------------------------------ ------ PUSHKAR S. PRADHAN Research Assistant MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------ ------ From woodbri at swoodbridge.com Thu Apr 4 17:55:52 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 04 Apr 2002 20:55:52 -0500 Subject: [mapserver-users] multiple shapefiles in single layer References: Message-ID: <3CAD0428.5F1B2423@swoodbridge.com> Dan Keith wrote: > > Hi, > > I have a few more questions re: tiling. > > The tile4ms utility doesn't support the specification of the TILEITEM > parameter (i.e., it is always LOCATION), nor does it allow the > merging of a tile index into an existing tileindex file. Yup, this is correct. > I presume that the only way to create a multicolumn tile index (thus > allowing the use of multiple TILEITEMs from within the .map file) is > to write a separate program (e.g., using Perl's XBase module) to > aggregate multiple tileindex files into a single .dbf file. Is this > the correct way? Yes you could do this. I do a variation on this for Census data because it is organized in directories by county and each county has a full set of layers. So what I do is make the tileindex index the directories and then in my mapfile I use the tileindex and DATA roads or DATA rivers. There is an option that if I remember correctly is not well documented or I missed it that intedexes the directories instead of the files as records in the tileindex. I wrote some code to munge the indexes before I found the option to do it for me. (the programmers curse - if you can't find it, don't read the manual, just write some code :) > What are the advantages to creating such a multicolumn tileindex, vs > using separate tileindex file for each logical dataset? Is it more > efficient? I'm not sure I can help much here, but I would think it would depend on the data and how it is organized spatially. > Also, is it better to create a spatial index from the individual > shapefiles in a tileindex, or is it better (or even possible) to > create a spatial index from the composite tileindex? It is most effiecnt if ALL .shp files have a shptree index, otherwise mapserver falls back to a full scan of the file. -Steve W. > Thanks > > At 11:26 PM -0600 4/3/02, Steve Lime wrote: > >There is a mechanism in the MapServer that already supports this - > >tiling. Basically you create an index shapefile that contains boundaries > >for the various shapefiles in the layers (in you case counties). The > >index shapefile then references the individual shapefiles as an > >attribute. The default attribute is 'location' but you can call it what > >ever you'd like to (then use TILEITEM parameter) and can even use a > >single tile index for multiple layers (e.g. you have roads and lakes > >tiled by county). Support for query of tiled data is supported in > >version 3.5+. See the documentation (and perhaps the wiki) for more > >details. > > > >Steve > > > >Stephen Lime > >Data & Applications Manager > > > >Minnesota DNR > >500 Lafayette Road > >St. Paul, MN 55155 > >651-297-2937 > >>>> Joe Bussell 04/03/02 20:21 PM >>> > >Greetings, > > I am attempting to combine multiple shapefiles (data from different > >counties) into single layers. How can I do this without declaring > >multiple layers which must be handled seperately in the mapfile? Is > >there a standard method which will preserve the ability to querry > >the data? The mapfile syntax does not seem to allow multiple data tags > >for a given display layer. This leads me to wonder if there are tools > >which can merge shapefiles into a larger superset. Is anyone aware of > >such a tool? > > > >Joe Bussell > >On Time Systems > > -- > Dan "Bud" Keith - bud at otsys.com From stephane.morel at vanoise.com Fri Apr 5 00:27:16 2002 From: stephane.morel at vanoise.com (Stephane MOREL) Date: Fri, 05 Apr 2002 09:27:16 +0100 Subject: [mapserver-users] PROJ problems References: Message-ID: <3CAD5FE4.1933046B@vanoise.com> I got Proj from ftp://ftp.remotesensing.org/pub/proj/proj-4.4.5.tar.gz. I compile it 1)-with --prefix=/home/mapserver_3.5/proj-4.4.5/ ./configure make make install (ok) then I recompile mapserver --with-proj ./configure --with-proj=/home/mapserver_3.5/proj-4.4.5/ make (ok) when I run ./mapserv ./mapserv: error while loading shared libraries : libproj.so.0: cannot load share object file: No such file or directory 2)- without --prefix : ./configure make make install Evreything is fine. Then I recompile mapserver with --proj ./configure --with-proj=/usr/local/lib/ configure: error: couldn't find projects.h or libproj.a/libproj.so in /usr/local/lib/ libproj.a and libproj.so are in this directory BUT projects.h are in /usr/local/include/ What am I missing ? stef Morten Hulden a ?crit : > > Get PROJ from > ftp://ftp.remotesensing.org/pub/proj/proj-4.4.5.tar.gz > compile and install it and then rebuild your mapserver --with-proj > > MHu > > On Thu, 4 Apr 2002, Stephane MOREL wrote: > > > Hi, > > I ve installed mapserver 3.5 on a suse linux 7.2 with proj support. > > When I run ./mapserv -v i have : > > Mapserver version 3.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORT=PROJ > > SUPPORTS=TTF SUPPORT=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG > > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE. > > I understand that proj support is supported. > > But when I put a projection clause in may mapfile I got the following > > message : > > > > Warning: MapServer Error in loadProjection(): Projection support is not > > available > > > > If someone can explain this to me or tell where I can find something > > about using the proj clause even with mapscript.... > > > > Thanks > > > > Stef > > > > PS : excuse me for my poor english!!!!!;o)))) -------------- next part -------------- A non-text attachment was scrubbed... Name: stephane.morel.vcf Type: text/x-vcard Size: 344 bytes Desc: Carte pour Stephane MOREL URL: From stepan.kafka at centrum.cz Thu Apr 4 23:49:50 2002 From: stepan.kafka at centrum.cz (Stepan Kafka) Date: Fri, 5 Apr 2002 09:49:50 +0200 Subject: [mapserver-users] legend In-Reply-To: <200204041923.g34JNbB02775@localhost.localdomain> Message-ID: <000701c1dc76$77215790$7e3c2fc3@HSGIS> Please, specify NAME for the classes you want to be shown in the legend. Stepan Kafka > -----P?vodn? zpr?va----- > Od: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]za u?ivatele Patricio > Gigoux > Odesl?no: 4. dubna 2002 21:24 > Komu: mapserver-users at lists.gis.umn.edu > P?edm?t: [mapserver-users] legend > > > I have the next in map file > > LEGEND > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 255 255 255 > END > STATUS ON > END > > and I define the next layers > LAYER > NAME pred > TYPE POLYGON > MAXSCALE 25000 > DATA pred > STATUS On > CLASSITEM 'cod' > CLASS > NAME "pred" > OUTLINECOLOR 181 181 145 > END > TOLERANCE 3 > END > > and > > LAYER > NAME pr1 > TYPE POLYGON > STATUS On > DATA prc01 > CLASSITEM 'cl_zna' > CLASS > EXPRESSION "A" > COLOR 79 6 97 > END > CLASS > EXPRESSION "A1" > COLOR 79 6 97 > END > > the problem is when I draw legend apear only first layer > What is my wrong? > > Thank in advance > Patricio > > From morten at ngb.se Fri Apr 5 02:45:22 2002 From: morten at ngb.se (Morten Hulden) Date: Fri, 5 Apr 2002 12:45:22 +0200 (CEST) Subject: [mapserver-users] PROJ problems In-Reply-To: <3CAD5FE4.1933046B@vanoise.com> Message-ID: If you installed proj without changing the default prefix, libproj.so goes into /usr/local/lib You must let your system know where to find the dynamic library libproj.so. If you are root, it may be as simple as running ldconfig, if the path to the directory where libproj.so lives is already defined /etc/ld.conf. Otherwise you can edit /etc/ld.so.conf and add the path, then run ldconfig. If you are not root (unlikely), the programs you run will have to rely on the $LD_LIB_PATH environment variable to find dynamic libraries. MHu On Fri, 5 Apr 2002, Stephane MOREL wrote: > I got Proj from ftp://ftp.remotesensing.org/pub/proj/proj-4.4.5.tar.gz. > I compile it > 1)-with --prefix=/home/mapserver_3.5/proj-4.4.5/ > ./configure > make > make install (ok) > then I recompile mapserver --with-proj > ./configure --with-proj=/home/mapserver_3.5/proj-4.4.5/ > make (ok) > when I run ./mapserv > ./mapserv: error while loading shared libraries : libproj.so.0: cannot > load share object file: No such file or directory > > > 2)- without --prefix : > ./configure > make > make install > > Evreything is fine. > Then I recompile mapserver with --proj > ./configure --with-proj=/usr/local/lib/ > configure: error: couldn't find projects.h or libproj.a/libproj.so in > /usr/local/lib/ > libproj.a and libproj.so are in this directory BUT projects.h are in > /usr/local/include/ > > > What am I missing ? > > stef > > Morten Hulden a ?crit : > > > > Get PROJ from > > ftp://ftp.remotesensing.org/pub/proj/proj-4.4.5.tar.gz > > compile and install it and then rebuild your mapserver --with-proj > > > > MHu > > > > On Thu, 4 Apr 2002, Stephane MOREL wrote: > > > > > Hi, > > > I ve installed mapserver 3.5 on a suse linux 7.2 with proj support. > > > When I run ./mapserv -v i have : > > > Mapserver version 3.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORT=PROJ > > > SUPPORTS=TTF SUPPORT=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG > > > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE. > > > I understand that proj support is supported. > > > But when I put a projection clause in may mapfile I got the following > > > message : > > > > > > Warning: MapServer Error in loadProjection(): Projection support is not > > > available > > > > > > If someone can explain this to me or tell where I can find something > > > about using the proj clause even with mapscript.... > > > > > > Thanks > > > > > > Stef > > > > > > PS : excuse me for my poor english!!!!!;o)))) From morten at ngb.se Fri Apr 5 02:52:50 2002 From: morten at ngb.se (Morten Hulden) Date: Fri, 5 Apr 2002 12:52:50 +0200 (CEST) Subject: [mapserver-users] PROJ problems In-Reply-To: Message-ID: On Fri, 5 Apr 2002, Morten Hulden wrote: > > Then I recompile mapserver with --proj > > ./configure --with-proj=/usr/local/lib/ > > configure: error: couldn't find projects.h or libproj.a/libproj.so in > > /usr/local/lib/ > > libproj.a and libproj.so are in this directory BUT projects.h are in > > /usr/local/include/ > > > > > > What am I missing ? Just use --with-proj. ./configure is smart enough to find the headers and libraries in /usr/local/include and /usr/local/lib, respectively. If you want to specify a path, you should use --with-proj=/usr/local. MHu From topan at 3wsi.com Fri Apr 5 03:18:04 2002 From: topan at 3wsi.com (Topan) Date: Fri, 5 Apr 2002 18:18:04 +0700 Subject: [mapserver-users] convert Message-ID: <200204051121.g35BLAh01074@golbat.metro.net.id> Can i convert DTM (planet) data into shape file. if it can, where i can find the converter ? ths From mckenna at dmsolutions.ca Mon Apr 1 06:36:43 2002 From: mckenna at dmsolutions.ca (Jeff McKenna) Date: Mon, 01 Apr 2002 09:36:43 -0500 Subject: [mapserver-users] [Fwd: getFeatureInfo] Message-ID: <3CA8707B.513D0CF6@dmsolutions.ca> -------- Original Message -------- Subject: getFeatureInfo Date: Fri, 29 Mar 2002 12:11:10 -0500 From: Doug Nebert Reply-To: ddnebert at usgs.gov Organization: FGDC To: mckenna at dmsolutions.ca CC: Stephen Lime Jeff: How do I set up a getFeatureInfo on a mapserver layer? I looked on the website but did not see the particular example for this. But I did find your email link... Also, is there a way to slave the "STYLE" request in a WMS getMap request to go to one or another mapfile section? For example, I have set up a current conditions weather data server with both a WMS and WFS interface. Since it has many hourly parameters, I'd like to expose many possibilities to label. One convenient way to do this might be have one weather layer and have STYLEs for each parameter that would set the label item or symbol differently, requiring different mapfile blocks. Thus one could display temperature, dewpoint, wind direction, etc as "styles" of weather display. Is this possible, or must I treat these as distinct layers? Thanks. Doug. -- Douglas D. Nebert Geospatial Data Clearinghouse Coordinator FGDC/GSDI Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 Pager Messaging: http://clearinghouse3.fgdc.gov/dougmsg.html From hwehr at hs-harz.de Fri Apr 5 05:18:55 2002 From: hwehr at hs-harz.de (Harald Wehr) Date: Fri, 05 Apr 2002 15:18:55 +0200 Subject: [mapserver-users] Mapscript exception from java Message-ID: <3CADA43F.3050102@hs-harz.de> I wanted to try out the implemented thread-functionality. I downloaded a nightly build today (05.04.2002). Everything compiled well, even the java-classes were compiled without any error and the shared library is successfully build! Calling the mapObj.draw() method in a java-programm crashes my jvm. I narrowed down the error in the mapscript_wrap.c: --snip imageObj *mapObj_draw(mapObj *self){ imageObj *image=NULL; image = (imageObj *)malloc(sizeof(imageObj)); if(!image) return NULL; image->width = gdImageSX(image->bytes); <-- Exception image->height = gdImageSY(image->bytes); image->bytes = msDrawMap(self); image->imagepath = image->imageurl = NULL; return image; } --snip Can anyone help me out of this? Is it a mistake in the gd-library? Second question: Swigging the nightly build to java no "errorObject" is produced. In 3.5 there was this thing. Thanks in advance Harald From cabral at yadata.net Fri Apr 5 07:30:56 2002 From: cabral at yadata.net (Rodrigo Cabral) Date: Fri, 5 Apr 2002 12:30:56 -0300 Subject: [mapserver-users] Spatial data from Oracle - how? References: <18E0CC75605BD411907800508B8BB8D049E528@odin.enator.dk> Message-ID: <001201c1dcb6$e1b3cc60$0207a8c0@naumaki> There are two options... By your email I guess the 1st one you don't want to try, but anyway: 1) Install SDO (Oracle Spatial) which has a whole spatial data support implemented, including MDSYS.SDO_GEOMETRY type for storing the data in your shapefiles. Compile mapserver with Oracle Spatial support and migrate your shapefiles to Oracle using a shp2sdo program from OTN (don't have the URL with me right now). Create the mapfile with an oraclespatial layer, and it's done. 2) Split your data in two parts: static base layers are stored in standard shapefiles; while dynamic layers (which your database handles) are stored in Oracle in your private format (perhaps you have only lat/lons points and want to see them). You will have to work with PHP (using OCI) and MapScript to draw/query your points. Depending on your application, there's a lot of coding ahead. If data is complex or big, expect delays for delivering content to the web. Rod. ----- Original Message ----- From: "Bjarni Pjetursson" To: Sent: Thursday, April 04, 2002 10:58 AM Subject: [mapserver-users] Spatial data from Oracle - how? Hi, I've succesfully run the Gmap and Itasca demo and managed to replace the old shp-files with my own, but now I want to retrieve data from a database. On the main page of MapServer it is said: "If the data has a spatial component and you can get to it via your favorite scripting enviroment then you can map it." But I can't find any documentation on data from a database. How can I pass the data on to MapServer? I want to use Perl or PHP on Apache HP Unix. I have my spatial data in an Oracle 8.1.6 database (not Oracle Spatial). What to do? Any suggestions will be highly appreciated. Regards Bjarni Thor Pjetursson From erwin at perik.nu Fri Apr 5 08:53:37 2002 From: erwin at perik.nu (E Perik) Date: Fri, 5 Apr 2002 18:53:37 +0200 Subject: [mapserver-users] convert In-Reply-To: <200204051121.g35BLAh01074@golbat.metro.net.id> Message-ID: <001301c1dcc2$6e78ef30$967ba8c0@xp> Hi Topan, Assuming DTM is digital terrain model points in lat/lon/altitude type, ..... You could convert this using PHP + Mapscript like following: if ($init==1) { // recreate the site layer $shpFname = "C:\\Program Files\\Apache\\htdocs\\mich\\data\\shptest"; $shpFile = ms_newShapeFileObj($shpFname, MS_SHP_POINT); $def = array(array("PROG_ID", "N", 5, 0)); $dbfFile = dbase_create($shpFname . ".dbf", $def); createPoint( 14, 34, 111); createPoint( 33, 14, 222); createPoint( 10, 20, 333); // done... cleanup $shpFile->free(); dbase_close($dbfFile); } function createPoint($x, $y, $name){ GLOBAL $shpFile, $dbfFile; // Create shape $oShp = ms_newShapeObj(MS_SHP_POINT); $oLine = ms_newLineObj(); $oLine->addXY($x, $y); $oShp->add( $oLine ); $shpFile->addShape($oShp); // Write attribute record dbase_add_record($dbfFile, array($name)); } Createpoint adds point to shapefile and 'info' to dbf-file. You would do this for every point of your DTM file and that's it, shapefile is created. Code is from list, and there are more examples like this one, so a search could come up with a better example. Erwin -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of Topan Sent: Friday, April 05, 2002 1:18 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] convert Can i convert DTM (planet) data into shape file. if it can, where i can find the converter ? ths From vguzman at bigfoot.com Fri Apr 5 09:02:43 2002 From: vguzman at bigfoot.com (Vladimir =?ISO-8859-1?Q?Guzm=E1n?=) Date: Fri, 05 Apr 2002 12:02:43 -0500 Subject: [mapserver-users] adjacent lines Message-ID: <3CADD8B3.50401@bigfoot.com> Hello list. I'm trying to make a "two points path through a network" algorithm using php-mapscript. Is there a way in php mapscript to know the adjacent lines of a given line? Can mapscript recognize the shape's topology? Or it just can be done with postgis or Oracle spatial server? Thanks a lot, -- Vladimir Guzm?n R. ----------------- www.main-task.com From ben at wblogan.net Fri Apr 5 10:09:11 2002 From: ben at wblogan.net (Ben Logan) Date: Fri, 5 Apr 2002 13:09:11 -0500 Subject: [mapserver-users] No errors, but no lines on output map. Message-ID: <20020405130911.A20520@wblogan.net> Hello, I am just getting started with mapserver and am trying a very simple setup to begin with. My HTML files are modified versions of the Itasca demo files, and so is the map file (which I've included below). My data source is a single county's worth (Carroll county VA) of Tiger/LINE 2000 files. I compiled mapserver with projection support and OGR support, and the log doesn't show any errors when I run it. However, I don't get any lines in the output map. I also had this problem with a shapefile I was playing with, and think it is some sort of extents problem. The values for the map's extents (shown in the mapfile) are known to fall within the county I'm messing with. (Aren't Tiger/LINE files in lat/lon format? The extents I placed in my mapfile are in UTM/Meters.) I'm trying to generate a street map of the county, but I'm not sure I'm going about it in the correct way at all. :) How do I get the values I need for the map EXTENT? I was also wondering how to generate a reference image for the TIGER data. BTW, mapserv takes awhile to serve the data up when I specify layer 0 in the CONNECTION arg, so it seems to be doing something with the data. # # Start of map file # NAME TEST STATUS ON SIZE 600 600 #EXTENT -80 30 -81 40 EXTENT 533455 4053115 544725 4067075 UNITS METERS SHAPEPATH "data" IMAGECOLOR 255 255 255 # you may need to change this to match your MapServer build #IMAGETYPE PNG # # Projection definition, consult the PROJ.4 documentation for parameter discussion # #PROJECTION # "proj=utm" # "ellps=GRS80" # "zone=15" # "north" # "no_defs" # # OR: # # "init=epsg:26915" #END # # Start of web interface definition (including WMS enabling metadata) # WEB HEADER test_header.html TEMPLATE test.html FOOTER test_footer.html LOG "test.log" MINSCALE 1 MAXSCALE 400000 IMAGEPATH "set in test_init.html" IMAGEURL "set in test_init.html" METADATA WMS_TITLE "A test map." WMS_ABSTRACT "This is a test." WMS_ACCESSCONSTRAINTS none # change this value to match your setup WMS_ONLINERESOURCE "http://mach1.log.cabin/ben/mapserv_demo/test/test_init.html" WMS_SRS "EPSG:26915" END END QUERYMAP SIZE 200 200 STATUS ON STYLE HILITE COLOR 255 0 0 END # # Start of reference map # #REFERENCE # IMAGE 'graphics/ref.png' # #EXTENT -64 17 170 72 # EXTENT 533455 4053115 544725 4067075 # SIZE 120 120 # STATUS ON # COLOR -1 -1 -1 # OUTLINECOLOR 255 0 0 #END # # Start of legend # LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 255 0 SIZE tiny END STYLE 1 SIZE 80 2 COLOR 0 0 255 UNITS MILES INTERVALS 1 TRANSPARENT TRUE STATUS TRUE END # # Start of symbol definitions (we're only using a few) # SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END # # Start of layer definitions # LAYER NAME "Carroll" TYPE LINE STATUS ON CONNECTIONTYPE OGR CONNECTION "data/carroll, 1" #CLASSITEM 'STATES' CLASS NAME "Carroll" #EXPRESSION /.*/ OUTLINECOLOR 128 128 128 COLOR 225 0 0 END END END # Map File Thanks for your help, Ben -- Ben Logan: ben at wblogan dot net OpenPGP Key KeyID: A1ADD1F0 From pushkar at ERC.MsState.Edu Fri Apr 5 10:43:18 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Fri, 5 Apr 2002 12:43:18 -0600 (CST) Subject: [mapserver-users] RE: dynamically allocated points for MAP w/ PHP In-Reply-To: <002001c1dc2c$cfbbfd00$967ba8c0@xp> Message-ID: Hi Erwin, I wrote code to implement some of the things you suggested. If I use GET I get all the params. like zoomsize, layers etc. in my address window of IE, but for POST these params. do not appear in the address window. But for both these methods when I print out the vals. of layer field I get only the last element selected. Here is the code I use: if ( isset($HTTP_GET_VARS["layer"]) ) { reset($HTTP_GET_VARS); $selectLayers = explode(" ", $HTTP_GET_VARS["layer"]); echo "here"; foreach($selectLayers as $val) { echo "$val "; } } // end of if loop same goes if I try POST. My html: Select Layers to Display:
If anybody knows what's wrong? > Hi Pushkar, > > Just to check the obvious,.... > > 1) Does it echo the layername? > 2) Should you not use 'explode' for $layer when multiple are selected? > 3) Is the layername an existing one and not too long? > 4) Is the layer STATUS set to: DEFAULT or ON ? > 5) Is the layer set in your url like: > http://localhost/.../name.php?zoom=1&layer="layer1 layer2 layer3" > 6) You sure POST is correct? Did you check GET ? > > Option 2) should use a string like "layer1 layer2 layer3" (see option 5) > and then you explode it using the space so you then use $layer[0] for > your first layer of the 'original-string-array' > > For exploding use something like: > > $LayerArray = explode(" ", $HTTP_GET_VARS["layer"]); > > Then from the example above you get: > > $LayerArray[0] would be "layer1" > $LayerArray[1] would be "layer2" > $LayerArray[2] would be "layer3" > > Erwin > > > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of Pushkar > Pradhan > Sent: Thursday, April 04, 2002 7:56 PM > To: mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] RE: dynamically allocated points for MAP > w/ PHP > > I have a related question, in php/mapscript I show the user a html list > from which he/she can select layers to add to the current view, I am > writing some code but it doesn't work can somebody provide me with the > algorithm if not the code like the one given below: > if ( isset($HTTP_POST_VARS["layer"]) ) { > echo $HTTP_POST_VARS["layer"]; > $layer = $map->getLayerByName($HTTP_POST_VARS["layer"]); > $image = $map->prepareImage(); > $layer->draw($image); > $image_url = $image->saveWebImage(MS_PNG,1,1,0); > } // end of if loop > The above code doesn't work it creates a blank image, moreover if one > selects multiple layers to display then only the last one selected is > chosen. > Thanks, > > > Hi Scott, > > > There is nothing wrong with the PHP code, except it does not create a > > layer, but it creates a new shapefile ;-) > > > > So you want to create a layer, dynamicly, or ..... > > > > Example of creating a layer from a shapefile: > > > > 0) Create map-object > > 1) Get object/points from existing-shapefile or from database > > 2) Put it in new-shapefile (as you did in your php-script) > > 3) Create dbf-file with name of new-shapefile > > 4) Clear new-shapefile (as you did) > > 5) Add new-layer to map-object (default of this layer is set to OFF) > > 6) Show new-layer (turn it ON) > > 7) Draw the map (now includes newly created shapefile ;-) ) > > > > Explanation: > > > > *** In 0) you use like: $Map = ms_newMapObj("blabla.map"); > > > > *** In 1) you determine input. This could be the 3 points you have in > > your example, but also could be a shape or lat/lon from a database > (eg. > > dbf/MySQL) > > > > *** Option 2) and 3) and 4) you have in your mapscript. This creates a > > shapefile + corresponding dbf-file. > > > > *** Option 5) and 6) is best done using a dummy-layer which is set to > > OFF in your map-file. You turn it on AND attach the new shapefile-data > > from by using: > > $Dummylayer = ms_newLayerObj($Map); // a new layerobject > > $Dummylayer = $Map->getLayerByName("MapLayer"); > > $Dummylayer->set("status", 1); // Turn it on > > $Dummylayer->set("data", $shpFname); // Add your created > > data > > > > While your map-layer looks something like: > > > > LAYER > > NAME "MapLayer" > > TYPE POINT > > STATUS OFF > > CLASS > > SYMBOL 'circle' > > COLOR 0 0 0 > > SIZE 3 > > END > > END > > > > *** Option 7) is something like: > > > > $ImgMap = $Map->draw(); > > > > This should do the trick. > > > > Erwin > > > > > > > > -----Original Message----- > > From: Scott D Cogan [mailto:cogansco at msu.edu] > > Sent: Wednesday, April 03, 2002 10:28 PM > > To: Consult IT!, E. Perik; mapserver-users at lists.gis.umn.edu > > Subject: dynamically allocated points for MAP w/ PHP > > > > what is wrong with this PHP code? i am trying to create a layer of > > points > > using mapscript. i had this working previously, then somehow deleted > > the > > file. now i cant figure it out again: > > > > if ($init==1) { > > // recreate the site layer > > $shpFname = "C:\\Program > Files\\Apache\\htdocs\\mich\\data\\shptest"; > > $shpFile = ms_newShapeFileObj($shpFname, MS_SHP_POINT); > > $def = array(array("PROG_ID", "N", 5, 0)); > > $dbfFile = dbase_create($shpFname . ".dbf", $def); > > createPoint( 14, 34, 111); > > createPoint( 33, 14, 222); > > createPoint( 10, 20, 333); > > // done... cleanup > > $shpFile->free(); > > dbase_close($dbfFile); > > } > > > > > > function createPoint($x, $y, $name){ > > GLOBAL $shpFile, $dbfFile; > > // Create shape > > $oShp = ms_newShapeObj(MS_SHP_POINT); > > $oLine = ms_newLineObj(); > > $oLine->addXY($x, $y); > > $oShp->add( $oLine ); > > $shpFile->addShape($oShp); > > // Write attribute record > > dbase_add_record($dbfFile, array($name)); > > } > > > > ------------------------------------------------------------------------ > ------ > PUSHKAR S. PRADHAN > Research Assistant > MISSISSIPPI STATE UNIVERSITY, > STARKVILLE, MS 39759. > > Engineering Research Center > Box 9627 > Mississippi State, MS 39762-9627 > ------------------------------------------------------------------------ > ------ > ------------------------------------------------------------------------------ PUSHKAR S. PRADHAN Research Assistant MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------------ From erwin at perik.nu Fri Apr 5 11:11:00 2002 From: erwin at perik.nu (E Perik) Date: Fri, 5 Apr 2002 21:11:00 +0200 Subject: [mapserver-users] RE: dynamically allocated points for MAP w/ PHP In-Reply-To: Message-ID: <000c01c1dcd5$9faca0c0$967ba8c0@xp> Pushkar, What does $HTTP_GET_VARS["layer"] return? What does the url look like when you use GET ? Maybe rewrite your select list to PHP, so you can 'make' a url array like: LayerArrayString = "a c" Would look something like: Then you can call the LayerList-array using: $count=count($LayerList); for ($i=0; $i<$count; $i++) { echo $LayerList[$i]; $LayerArrayString = $LayerArrayString . " " . $LayerList[$i]; } Erwin -----Original Message----- From: Pushkar Pradhan [mailto:pushkar at ERC.MsState.Edu] Sent: Friday, April 05, 2002 8:43 PM To: E Perik Cc: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] RE: dynamically allocated points for MAP w/ PHP Hi Erwin, I wrote code to implement some of the things you suggested. If I use GET I get all the params. like zoomsize, layers etc. in my address window of IE, but for POST these params. do not appear in the address window. But for both these methods when I print out the vals. of layer field I get only the last element selected. Here is the code I use: if ( isset($HTTP_GET_VARS["layer"]) ) { reset($HTTP_GET_VARS); $selectLayers = explode(" ", $HTTP_GET_VARS["layer"]); echo "here"; foreach($selectLayers as $val) { echo "$val "; } } // end of if loop same goes if I try POST. My html: Select Layers to Display:
If anybody knows what's wrong? > Hi Pushkar, > > Just to check the obvious,.... > > 1) Does it echo the layername? > 2) Should you not use 'explode' for $layer when multiple are selected? > 3) Is the layername an existing one and not too long? > 4) Is the layer STATUS set to: DEFAULT or ON ? > 5) Is the layer set in your url like: > http://localhost/.../name.php?zoom=1&layer="layer1 layer2 layer3" > 6) You sure POST is correct? Did you check GET ? > > Option 2) should use a string like "layer1 layer2 layer3" (see option 5) > and then you explode it using the space so you then use $layer[0] for > your first layer of the 'original-string-array' > > For exploding use something like: > > $LayerArray = explode(" ", $HTTP_GET_VARS["layer"]); > > Then from the example above you get: > > $LayerArray[0] would be "layer1" > $LayerArray[1] would be "layer2" > $LayerArray[2] would be "layer3" > > Erwin > > > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of Pushkar > Pradhan > Sent: Thursday, April 04, 2002 7:56 PM > To: mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] RE: dynamically allocated points for MAP > w/ PHP > > I have a related question, in php/mapscript I show the user a html list > from which he/she can select layers to add to the current view, I am > writing some code but it doesn't work can somebody provide me with the > algorithm if not the code like the one given below: > if ( isset($HTTP_POST_VARS["layer"]) ) { > echo $HTTP_POST_VARS["layer"]; > $layer = $map->getLayerByName($HTTP_POST_VARS["layer"]); > $image = $map->prepareImage(); > $layer->draw($image); > $image_url = $image->saveWebImage(MS_PNG,1,1,0); > } // end of if loop > The above code doesn't work it creates a blank image, moreover if one > selects multiple layers to display then only the last one selected is > chosen. > Thanks, > > > Hi Scott, > > > There is nothing wrong with the PHP code, except it does not create a > > layer, but it creates a new shapefile ;-) > > > > So you want to create a layer, dynamicly, or ..... > > > > Example of creating a layer from a shapefile: > > > > 0) Create map-object > > 1) Get object/points from existing-shapefile or from database > > 2) Put it in new-shapefile (as you did in your php-script) > > 3) Create dbf-file with name of new-shapefile > > 4) Clear new-shapefile (as you did) > > 5) Add new-layer to map-object (default of this layer is set to OFF) > > 6) Show new-layer (turn it ON) > > 7) Draw the map (now includes newly created shapefile ;-) ) > > > > Explanation: > > > > *** In 0) you use like: $Map = ms_newMapObj("blabla.map"); > > > > *** In 1) you determine input. This could be the 3 points you have in > > your example, but also could be a shape or lat/lon from a database > (eg. > > dbf/MySQL) > > > > *** Option 2) and 3) and 4) you have in your mapscript. This creates a > > shapefile + corresponding dbf-file. > > > > *** Option 5) and 6) is best done using a dummy-layer which is set to > > OFF in your map-file. You turn it on AND attach the new shapefile-data > > from by using: > > $Dummylayer = ms_newLayerObj($Map); // a new layerobject > > $Dummylayer = $Map->getLayerByName("MapLayer"); > > $Dummylayer->set("status", 1); // Turn it on > > $Dummylayer->set("data", $shpFname); // Add your created > > data > > > > While your map-layer looks something like: > > > > LAYER > > NAME "MapLayer" > > TYPE POINT > > STATUS OFF > > CLASS > > SYMBOL 'circle' > > COLOR 0 0 0 > > SIZE 3 > > END > > END > > > > *** Option 7) is something like: > > > > $ImgMap = $Map->draw(); > > > > This should do the trick. > > > > Erwin > > > > > > > > -----Original Message----- > > From: Scott D Cogan [mailto:cogansco at msu.edu] > > Sent: Wednesday, April 03, 2002 10:28 PM > > To: Consult IT!, E. Perik; mapserver-users at lists.gis.umn.edu > > Subject: dynamically allocated points for MAP w/ PHP > > > > what is wrong with this PHP code? i am trying to create a layer of > > points > > using mapscript. i had this working previously, then somehow deleted > > the > > file. now i cant figure it out again: > > > > if ($init==1) { > > // recreate the site layer > > $shpFname = "C:\\Program > Files\\Apache\\htdocs\\mich\\data\\shptest"; > > $shpFile = ms_newShapeFileObj($shpFname, MS_SHP_POINT); > > $def = array(array("PROG_ID", "N", 5, 0)); > > $dbfFile = dbase_create($shpFname . ".dbf", $def); > > createPoint( 14, 34, 111); > > createPoint( 33, 14, 222); > > createPoint( 10, 20, 333); > > // done... cleanup > > $shpFile->free(); > > dbase_close($dbfFile); > > } > > > > > > function createPoint($x, $y, $name){ > > GLOBAL $shpFile, $dbfFile; > > // Create shape > > $oShp = ms_newShapeObj(MS_SHP_POINT); > > $oLine = ms_newLineObj(); > > $oLine->addXY($x, $y); > > $oShp->add( $oLine ); > > $shpFile->addShape($oShp); > > // Write attribute record > > dbase_add_record($dbfFile, array($name)); > > } > > > > ------------------------------------------------------------------------ > ------ > PUSHKAR S. PRADHAN > Research Assistant > MISSISSIPPI STATE UNIVERSITY, > STARKVILLE, MS 39759. > > Engineering Research Center > Box 9627 > Mississippi State, MS 39762-9627 > ------------------------------------------------------------------------ > ------ > ------------------------------------------------------------------------ ------ PUSHKAR S. PRADHAN Research Assistant MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------ ------ From pushkar at ERC.MsState.Edu Fri Apr 5 11:19:11 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Fri, 5 Apr 2002 13:19:11 -0600 (CST) Subject: [mapserver-users] RE: dynamically allocated points for MAP w/ PHP In-Reply-To: <000c01c1dcd5$9faca0c0$967ba8c0@xp> Message-ID: Erwin, Thanks, it's working. I just found out in a php tutorial that you have to use > > > > > > Then you can call the LayerList-array using: > > $count=count($LayerList); > for ($i=0; $i<$count; $i++) { > echo $LayerList[$i]; > $LayerArrayString = $LayerArrayString . " " . $LayerList[$i]; > } > > > Erwin > > > > > -----Original Message----- > From: Pushkar Pradhan [mailto:pushkar at ERC.MsState.Edu] > Sent: Friday, April 05, 2002 8:43 PM > To: E Perik > Cc: mapserver-users at lists.gis.umn.edu > Subject: RE: [mapserver-users] RE: dynamically allocated points for MAP > w/ PHP > > Hi Erwin, > I wrote code to implement some of the things you suggested. If I use GET > I > get all the params. like zoomsize, layers etc. in my address window of > IE, > but for POST these params. do not appear in the address window. > But for both these methods when I print out the vals. of layer field I > get > only the last element selected. > Here is the code I use: > if ( isset($HTTP_GET_VARS["layer"]) ) { > reset($HTTP_GET_VARS); > $selectLayers = explode(" ", $HTTP_GET_VARS["layer"]); > echo "here"; > foreach($selectLayers as $val) { > echo "$val "; > } > } // end of if loop > same goes if I try POST. > My html: > Select Layers to Display:
> > If anybody knows what's wrong? > > Hi Pushkar, > > > Just to check the obvious,.... > > > > 1) Does it echo the layername? > > 2) Should you not use 'explode' for $layer when multiple are selected? > > 3) Is the layername an existing one and not too long? > > 4) Is the layer STATUS set to: DEFAULT or ON ? > > 5) Is the layer set in your url like: > > http://localhost/.../name.php?zoom=1&layer="layer1 layer2 layer3" > > 6) You sure POST is correct? Did you check GET ? > > > > Option 2) should use a string like "layer1 layer2 layer3" (see option > 5) > > and then you explode it using the space so you then use $layer[0] for > > your first layer of the 'original-string-array' > > > > For exploding use something like: > > > > $LayerArray = explode(" ", $HTTP_GET_VARS["layer"]); > > > > Then from the example above you get: > > > > $LayerArray[0] would be "layer1" > > $LayerArray[1] would be "layer2" > > $LayerArray[2] would be "layer3" > > > > Erwin > > > > > > -----Original Message----- > > From: owner-mapserver-users at lists.gis.umn.edu > > [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of Pushkar > > Pradhan > > Sent: Thursday, April 04, 2002 7:56 PM > > To: mapserver-users at lists.gis.umn.edu > > Subject: Re: [mapserver-users] RE: dynamically allocated points for > MAP > > w/ PHP > > > > I have a related question, in php/mapscript I show the user a html > list > > from which he/she can select layers to add to the current view, I am > > writing some code but it doesn't work can somebody provide me with the > > algorithm if not the code like the one given below: > > if ( isset($HTTP_POST_VARS["layer"]) ) { > > echo $HTTP_POST_VARS["layer"]; > > $layer = $map->getLayerByName($HTTP_POST_VARS["layer"]); > > $image = $map->prepareImage(); > > $layer->draw($image); > > $image_url = $image->saveWebImage(MS_PNG,1,1,0); > > } // end of if loop > > The above code doesn't work it creates a blank image, moreover if one > > selects multiple layers to display then only the last one selected is > > chosen. > > Thanks, > > > > > Hi Scott, > > > > There is nothing wrong with the PHP code, except it does not create > a > > > layer, but it creates a new shapefile ;-) > > > > > > So you want to create a layer, dynamicly, or ..... > > > > > > Example of creating a layer from a shapefile: > > > > > > 0) Create map-object > > > 1) Get object/points from existing-shapefile or from database > > > 2) Put it in new-shapefile (as you did in your php-script) > > > 3) Create dbf-file with name of new-shapefile > > > 4) Clear new-shapefile (as you did) > > > 5) Add new-layer to map-object (default of this layer is set to OFF) > > > 6) Show new-layer (turn it ON) > > > 7) Draw the map (now includes newly created shapefile ;-) ) > > > > > > Explanation: > > > > > > *** In 0) you use like: $Map = ms_newMapObj("blabla.map"); > > > > > > *** In 1) you determine input. This could be the 3 points you have > in > > > your example, but also could be a shape or lat/lon from a database > > (eg. > > > dbf/MySQL) > > > > > > *** Option 2) and 3) and 4) you have in your mapscript. This creates > a > > > shapefile + corresponding dbf-file. > > > > > > *** Option 5) and 6) is best done using a dummy-layer which is set > to > > > OFF in your map-file. You turn it on AND attach the new > shapefile-data > > > from by using: > > > $Dummylayer = ms_newLayerObj($Map); // a new layerobject > > > $Dummylayer = $Map->getLayerByName("MapLayer"); > > > $Dummylayer->set("status", 1); // Turn it on > > > $Dummylayer->set("data", $shpFname); // Add your created > > > data > > > > > > While your map-layer looks something like: > > > > > > LAYER > > > NAME "MapLayer" > > > TYPE POINT > > > STATUS OFF > > > CLASS > > > SYMBOL 'circle' > > > COLOR 0 0 0 > > > SIZE 3 > > > END > > > END > > > > > > *** Option 7) is something like: > > > > > > $ImgMap = $Map->draw(); > > > > > > This should do the trick. > > > > > > Erwin > > > > > > > > > > > > -----Original Message----- > > > From: Scott D Cogan [mailto:cogansco at msu.edu] > > > Sent: Wednesday, April 03, 2002 10:28 PM > > > To: Consult IT!, E. Perik; mapserver-users at lists.gis.umn.edu > > > Subject: dynamically allocated points for MAP w/ PHP > > > > > > what is wrong with this PHP code? i am trying to create a layer of > > > points > > > using mapscript. i had this working previously, then somehow > deleted > > > the > > > file. now i cant figure it out again: > > > > > > if ($init==1) { > > > // recreate the site layer > > > $shpFname = "C:\\Program > > Files\\Apache\\htdocs\\mich\\data\\shptest"; > > > $shpFile = ms_newShapeFileObj($shpFname, MS_SHP_POINT); > > > $def = array(array("PROG_ID", "N", 5, 0)); > > > $dbfFile = dbase_create($shpFname . ".dbf", $def); > > > createPoint( 14, 34, 111); > > > createPoint( 33, 14, 222); > > > createPoint( 10, 20, 333); > > > // done... cleanup > > > $shpFile->free(); > > > dbase_close($dbfFile); > > > } > > > > > > > > > function createPoint($x, $y, $name){ > > > GLOBAL $shpFile, $dbfFile; > > > // Create shape > > > $oShp = ms_newShapeObj(MS_SHP_POINT); > > > $oLine = ms_newLineObj(); > > > $oLine->addXY($x, $y); > > > $oShp->add( $oLine ); > > > $shpFile->addShape($oShp); > > > // Write attribute record > > > dbase_add_record($dbfFile, array($name)); > > > } > > > > > > > > ------------------------------------------------------------------------ > > ------ > > PUSHKAR S. PRADHAN > > Research Assistant > > MISSISSIPPI STATE UNIVERSITY, > > STARKVILLE, MS 39759. > > > > Engineering Research Center > > Box 9627 > > Mississippi State, MS 39762-9627 > > > ------------------------------------------------------------------------ > > ------ > > > > ------------------------------------------------------------------------ > ------ > PUSHKAR S. PRADHAN > Research Assistant > MISSISSIPPI STATE UNIVERSITY, > STARKVILLE, MS 39759. > > Engineering Research Center > Box 9627 > Mississippi State, MS 39762-9627 > ------------------------------------------------------------------------ > ------ > ------------------------------------------------------------------------------ PUSHKAR S. PRADHAN Research Assistant MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------------ From ARyan at co.linn.or.us Fri Apr 5 11:29:26 2002 From: ARyan at co.linn.or.us (Ryan, Adam) Date: Fri, 5 Apr 2002 11:29:26 -0800 Subject: [mapserver-users] File paths for layer data Message-ID: <614FCE5F14A6D41180C200010240D6A2972070@LINNMS> > Hi all, > > I'm new at this and on a steep learning curve but I think I'm in love with > MapServer. It's so fast and, for the most part, easy to use. > > One problem: I want to set 'data' for a layer object in my map file to a > file on another drive, url, server, etc. I can't get mapserver to access > any layer files that are outside my server directory. I have images on > the htm template file that reference other drives and servers so it > doesn't seem to be a rights or permissions problem. > > Any suggestions? > > Thanks, > > Adam Ryan > Linn County GIS > Oregon From woodbri at swoodbridge.com Fri Apr 5 11:41:23 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 05 Apr 2002 14:41:23 -0500 Subject: [mapserver-users] No errors, but no lines on output map. References: <20020405130911.A20520@wblogan.net> Message-ID: <3CADFDE2.2FF578F9@swoodbridge.com> Ben, Change your map file to : UNITS DD # extents for all of Virginia EXTENT -83.682000 36.543600 -74.952000 39.769180 should fix your problem. -Steve Ben Logan wrote: > > Hello, > > I am just getting started with mapserver and am trying a very simple > setup to begin with. My HTML files are modified versions of the > Itasca demo files, and so is the map file (which I've included below). > > My data source is a single county's worth (Carroll county VA) of > Tiger/LINE 2000 files. I compiled mapserver with projection support > and OGR support, and the log doesn't show any errors when I run it. > However, I don't get any lines in the output map. I also had this > problem with a shapefile I was playing with, and think it is some sort > of extents problem. The values for the map's extents (shown in the > mapfile) are known to fall within the county I'm messing with. > (Aren't Tiger/LINE files in lat/lon format? The extents I placed in > my mapfile are in UTM/Meters.) I'm trying to generate a street map of > the county, but I'm not sure I'm going about it in the correct way at > all. :) > > How do I get the values I need for the map EXTENT? I was also > wondering how to generate a reference image for the TIGER data. > > BTW, mapserv takes awhile to serve the data up when I specify layer 0 > in the CONNECTION arg, so it seems to be doing something with the > data. > > # > # Start of map file > # > NAME TEST > STATUS ON > SIZE 600 600 > #EXTENT -80 30 -81 40 > EXTENT 533455 4053115 544725 4067075 > UNITS METERS > SHAPEPATH "data" > IMAGECOLOR 255 255 255 > > # you may need to change this to match your MapServer build > #IMAGETYPE PNG > > # > # Projection definition, consult the PROJ.4 documentation for parameter discussion > # > #PROJECTION > # "proj=utm" > # "ellps=GRS80" > # "zone=15" > # "north" > # "no_defs" > # > # OR: > # > # "init=epsg:26915" > #END > > # > # Start of web interface definition (including WMS enabling metadata) > # > WEB > HEADER test_header.html > TEMPLATE test.html > FOOTER test_footer.html > LOG "test.log" > MINSCALE 1 > MAXSCALE 400000 > IMAGEPATH "set in test_init.html" > IMAGEURL "set in test_init.html" > METADATA > WMS_TITLE "A test map." > WMS_ABSTRACT "This is a test." > WMS_ACCESSCONSTRAINTS none > > # change this value to match your setup > WMS_ONLINERESOURCE "http://mach1.log.cabin/ben/mapserv_demo/test/test_init.html" > > WMS_SRS "EPSG:26915" > END > END > > QUERYMAP > SIZE 200 200 > STATUS ON > STYLE HILITE > COLOR 255 0 0 > END > > # > # Start of reference map > # > #REFERENCE > # IMAGE 'graphics/ref.png' > # #EXTENT -64 17 170 72 > # EXTENT 533455 4053115 544725 4067075 > # SIZE 120 120 > # STATUS ON > # COLOR -1 -1 -1 > # OUTLINECOLOR 255 0 0 > #END > > # > # Start of legend > # > LEGEND > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > STATUS ON > END > > # > # Start of scalebar > # > SCALEBAR > IMAGECOLOR 255 255 255 > LABEL > COLOR 0 255 0 > SIZE tiny > END > STYLE 1 > SIZE 80 2 > COLOR 0 0 255 > UNITS MILES > INTERVALS 1 > TRANSPARENT TRUE > STATUS TRUE > END > > # > # Start of symbol definitions (we're only using a few) > # > SYMBOL > NAME 'circle' > TYPE ELLIPSE > POINTS 1 1 END > FILLED TRUE > END > > # > # Start of layer definitions > # > > LAYER > NAME "Carroll" > TYPE LINE > STATUS ON > CONNECTIONTYPE OGR > CONNECTION "data/carroll, 1" > > #CLASSITEM 'STATES' > CLASS > NAME "Carroll" > #EXPRESSION /.*/ > OUTLINECOLOR 128 128 128 > COLOR 225 0 0 > END > END > END # Map File > > Thanks for your help, > Ben > > -- > Ben Logan: ben at wblogan dot net > OpenPGP Key KeyID: A1ADD1F0 From shostko at ureach.com Fri Apr 5 12:12:13 2002 From: shostko at ureach.com (Alexander Shostko) Date: Fri, 5 Apr 2002 15:12:13 -0500 Subject: [mapserver-users] Mapserver Compilation Version runtime errors Message-ID: <200204052012.PAA32758@www22.ureach.com> Dear Map Server Users ! The opinion is appreciated on the following: The binary distribution of mapserver comes in both gif and png versions. I compiled the mapserver using the source code provided for windows 2000. The only problems encountered were: defining explicitly #define bcmp(s1, s2, n) memcmp ((s1), (s2), (n)) #define bcopy(s, d, n) memcpy ((d), (s), (n)) #define bzero(s, n) memset ((s), 0, (n)) #define alloca( par ) malloc( (par)) and skipping some *.obj defined in the makefile , but not found in regex distribution. in regex compilcation and replacing (as suggested in gd comments ) *gif functions by *png functions (there are no *Gif equivalents in gd source distribution). void gdImageGif(gdImagePtr im, FILE *outFile) { gdImagePng(im, outFile); } // eof // // gdImagePtr gdImageCreateFromGif(FILE *inFile) { return gdImageCreateFromPng(inFile); } // eof in gd-1.8.4 Well, when I placed the compiled version into cgi-bin\ instead of precompiled binaries. It gives the error that it can not initialize the image. ? What version is compiled in source distribution: gif or png, or anything else ? which flags I need to set to produce either gif or png version (gif is defined by USE_GD_GIF in the source ... ) Thanks a lot Alexander Shostko shostko at ureach.com From shostko at ureach.com Fri Apr 5 12:20:46 2002 From: shostko at ureach.com (Alexander Shostko) Date: Fri, 5 Apr 2002 15:20:46 -0500 Subject: [mapserver-users] run time error Message-ID: <200204052020.PAA07662@www22.ureach.com> Sorry, forgot to show the error: msDrawReferenceMap(): GD library error. Unable to initialize image. Thanks Alexander Shostko shostko at ureach.com From TMitchell at lignum.com Fri Apr 5 13:13:17 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Fri, 5 Apr 2002 13:13:17 -0800 Subject: [mapserver-users] File paths for layer data Message-ID: Adam, I had come across similar problems but am not sure if it was only on the windows platform or not. What is your "setup" - are you using windows, cygwin, unix and maybe you could tell us what version you are using. Tyler "Ryan, Adam" To: mapserver-users at lists.gis.umn.edu Sent by: cc: owner-mapserver-users at lists.g Fax to: is.umn.edu Subject: [mapserver-users] File paths for layer data 04/05/2002 11:29 AM > Hi all, > > I'm new at this and on a steep learning curve but I think I'm in love with > MapServer. It's so fast and, for the most part, easy to use. > > One problem: I want to set 'data' for a layer object in my map file to a > file on another drive, url, server, etc. I can't get mapserver to access > any layer files that are outside my server directory. I have images on > the htm template file that reference other drives and servers so it > doesn't seem to be a rights or permissions problem. > > Any suggestions? > > Thanks, > > Adam Ryan > Linn County GIS > Oregon From Chip.Hankley at GASAI.Com Fri Apr 5 13:33:31 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Fri, 5 Apr 2002 15:33:31 -0600 Subject: [mapserver-users] Multiple OFFSITE values Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010AB9E3@postoffice.GASAI.Com> I have some DRG's with collar's intact. The color values in the collar region have essentially had a value of 20 added to them (so white inside the color is 1, and 21 in the collar). I want everything >= 13 to be OFFSITE. Is there any way to do this? Chip Hankley From ARyan at co.linn.or.us Fri Apr 5 13:55:57 2002 From: ARyan at co.linn.or.us (Ryan, Adam) Date: Fri, 5 Apr 2002 13:55:57 -0800 Subject: [mapserver-users] File paths for layer data Message-ID: <614FCE5F14A6D41180C200010240D6A29720E3@LINNMS> Thanks Tyler. I'm running MapServer 3.5 on Windows 2000. I'm networked to a handful of county servers including the web server that my mapserver files are on. Adam -----Original Message----- From: Tyler Mitchell [mailto:TMitchell at lignum.com] Sent: Friday, April 05, 2002 1:13 PM To: mapserver-users at lists.gis.umn.edu Cc: aryan at co.linn.or.us Subject: Re: [mapserver-users] File paths for layer data Adam, I had come across similar problems but am not sure if it was only on the windows platform or not. What is your "setup" - are you using windows, cygwin, unix and maybe you could tell us what version you are using. Tyler "Ryan, Adam" To: mapserver-users at lists.gis.umn.edu Sent by: cc: owner-mapserver-users at lists.g Fax to: is.umn.edu Subject: [mapserver-users] File paths for layer data 04/05/2002 11:29 AM > Hi all, > > I'm new at this and on a steep learning curve but I think I'm in love with > MapServer. It's so fast and, for the most part, easy to use. > > One problem: I want to set 'data' for a layer object in my map file to a > file on another drive, url, server, etc. I can't get mapserver to access > any layer files that are outside my server directory. I have images on > the htm template file that reference other drives and servers so it > doesn't seem to be a rights or permissions problem. > > Any suggestions? > > Thanks, > > Adam Ryan > Linn County GIS > Oregon From pkishor at GeoAnalytics.com Fri Apr 5 14:41:04 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Fri, 5 Apr 2002 16:41:04 -0600 Subject: [mapserver-users] multiple matches in $classObj->setexpression Message-ID: with the following in my map file... LAYER NAME "parcels_highlight" TYPE polygon DATA parcel STATUS off CLASSITEM "OWNER" CLASS OUTLINECOLOR 255 0 0 COLOR 255 255 0 END TEMPLATE "parcels.php" END The following works fine... $str = "foo"; $classObj->setexpression("\"$str\""); $layerObj->set("status", 1); But I want to do the following, which, needless to say, does not work... $str = "([GIS_KEY] in (\"foo\", \"bar\", \"baz\"))"; $classObj->setexpression("\"$str \""); $layerObj->set("status", 1); In fact, I can't even get the following to work... $str = "([GIS_KEY] eq \"foo\")"; OR $str = "([GIS_KEY] == \"foo\")"; OR $str = "([GIS_KEY] eq 'foo')"; etc. What am I missing here? And if the "in" clause is not supported (doesn't seem to be per the docs), would I need to do the following... $str = "(([GIS_KEY] eq \"foo\") or ([GIS_KEY] eq \"bar\") or ([GIS_KEY] eq \"baz\"))"; Tia, pk/ From pkishor at GeoAnalytics.com Fri Apr 5 15:09:34 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Fri, 5 Apr 2002 17:09:34 -0600 Subject: [mapserver-users] update (regex solution) RE: multiple matches in $classObj->setexp ression Message-ID: the following works... $str = "/foo|bar|baz/"; I am still curious to know if a more traditional SQL-ish construct would work? And why my attempts below are failing. TIa, pk/ > -----Original Message----- > From: Puneet Kishor > Sent: Friday, April 05, 2002 4:41 PM > To: MapServer List (E-mail) > Subject: multiple matches in $classObj->setexpression > > > with the following in my map file... > > LAYER > NAME "parcels_highlight" > TYPE polygon > DATA parcel > STATUS off > CLASSITEM "OWNER" > CLASS > OUTLINECOLOR 255 0 0 > COLOR 255 255 0 > END > TEMPLATE "parcels.php" > END > > The following works fine... > > $str = "foo"; > $classObj->setexpression("\"$str\""); > $layerObj->set("status", 1); > > But I want to do the following, which, needless to say, does > not work... > > $str = "([GIS_KEY] in (\"foo\", \"bar\", \"baz\"))"; > $classObj->setexpression("\"$str \""); > $layerObj->set("status", 1); > > > In fact, I can't even get the following to work... > > $str = "([GIS_KEY] eq \"foo\")"; OR > $str = "([GIS_KEY] == \"foo\")"; OR > $str = "([GIS_KEY] eq 'foo')"; etc. > > > What am I missing here? And if the "in" clause is not > supported (doesn't seem to be per the docs), would I need to > do the following... > > $str = "(([GIS_KEY] eq \"foo\") or ([GIS_KEY] eq \"bar\") or > ([GIS_KEY] eq \"baz\"))"; > > Tia, > > pk/ > From TMitchell at lignum.com Fri Apr 5 15:20:35 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Fri, 5 Apr 2002 15:20:35 -0800 Subject: [mapserver-users] File paths for layer data Message-ID: I've had a similar problem Adam, again using MapServ 3.5 on Windows 2000. I couldn't access data on network/shared drives, only locally. It's been a while since I tried, but I hope someone else can shed some light on it for us. Any takers? "Ryan, Adam" To: Tyler Mitchell , Sent by: mapserver-users at lists.gis.umn.edu owner-mapserver-users at lists.g cc: is.umn.edu Fax to: Subject: RE: [mapserver-users] File paths for layer data 04/05/2002 01:55 PM Thanks Tyler. I'm running MapServer 3.5 on Windows 2000. I'm networked to a handful of county servers including the web server that my mapserver files are on. Adam -----Original Message----- From: Tyler Mitchell [mailto:TMitchell at lignum.com] Sent: Friday, April 05, 2002 1:13 PM To: mapserver-users at lists.gis.umn.edu Cc: aryan at co.linn.or.us Subject: Re: [mapserver-users] File paths for layer data Adam, I had come across similar problems but am not sure if it was only on the windows platform or not. What is your "setup" - are you using windows, cygwin, unix and maybe you could tell us what version you are using. Tyler "Ryan, Adam" To: mapserver-users at lists.gis.umn.edu Sent by: cc: owner-mapserver-users at lists.g Fax to: is.umn.edu Subject: [mapserver-users] File paths for layer data 04/05/2002 11:29 AM > Hi all, > > I'm new at this and on a steep learning curve but I think I'm in love with > MapServer. It's so fast and, for the most part, easy to use. > > One problem: I want to set 'data' for a layer object in my map file to a > file on another drive, url, server, etc. I can't get mapserver to access > any layer files that are outside my server directory. I have images on > the htm template file that reference other drives and servers so it > doesn't seem to be a rights or permissions problem. > > Any suggestions? > > Thanks, > > Adam Ryan > Linn County GIS > Oregon From ben at wblogan.net Fri Apr 5 16:08:20 2002 From: ben at wblogan.net (Ben Logan) Date: Fri, 5 Apr 2002 19:08:20 -0500 Subject: [mapserver-users] No errors, but no lines on output map. In-Reply-To: <3CADFDE2.2FF578F9@swoodbridge.com>; from woodbri@swoodbridge.com on Fri, Apr 05, 2002 at 02:41:23PM -0500 References: <20020405130911.A20520@wblogan.net> <3CADFDE2.2FF578F9@swoodbridge.com> Message-ID: <20020405190820.A24535@wblogan.net> On Fri, Apr 05, 2002 at 02:41:23PM -0500, Stephen Woodbridge wrote: > Ben, > > Change your map file to : > > UNITS DD > # extents for all of Virginia > EXTENT -83.682000 36.543600 -74.952000 39.769180 > > should fix your problem. Thanks, that did at least cause something to show up. However, I wanted to change the layer to represent landmark features, and now nothing will show up again (same EXTENT as you gave above). The output of ogrinfo on the Tiger data looks like this: INFO: Open of `web/mapserv_demo/test/data/carroll' using driver `TIGER' successful. 1: CompleteChain (Line String) 2: AltName (None) 3: FeatureIds (None) 4: ZipCodes (None) 5: Landmarks (Point) 6: AreaLandmarks (None) 7: KeyFeatures (None) 8: Polygon (None) 9: EntityNames (Point) 10: IDHistory (None) 11: PolyChainLink (None) 12: PIP (Point) 13: TLIDRange (None) 14: ZipPlus4 (None) Note: When I speak of layers below, I'm talking about the argument to CONNECTION in a LAYER definition. E.g., CONNECTON "data/carroll, 0" I have skimmed the Tiger/LINE 2000 spec (from the Census Bureau) and have some understanding (perhaps wrong :) of how the different record types relate. Based on that, I thought that I should get a map of the roads from layer 1 (CompleteChain). However, the only way I get any output at all is if I use 0. If I change the layer arg to 5 and the LAYER TYPE to POINT, I get nothing and the result is returned very quickly unlike what happens when I use 0 which takes quite a few seconds. I know that it would take a comination of layers to get the names of the landmark features (or road names, etc), but it seems like I should get a plot of the points. Thanks, Ben -- Ben Logan: ben at wblogan dot net OpenPGP Key KeyID: A1ADD1F0 Any stone in your boot always migrates against the pressure gradient to exactly the point of most pressure. -- Milt Barber From joe at otsys.com Fri Apr 5 16:33:33 2002 From: joe at otsys.com (Joe Bussell) Date: Fri, 5 Apr 2002 16:33:33 -0800 Subject: [mapserver-users] modifiing labels Message-ID: <20020406003332.GA28053@extempore.otsys.com> Greetings All, I would like to paint highways with the number of the interstate placed inside an interstate shield. The trouble that I am having is that the data vendor has named the highways similar to "I 5". The "ROUTENUM" field is also populated with the 'I' as well as the actual route number. Is there a way that I can express that the label should include all text after "I "? Another question I have relates to scaling. I am attempting to turn off different layers depending on the zoom level. The trouble I am having is that the MAXSCALE values I am pushing in do not have the desired effect. I am finding the thresholds are on the order of 1 - 5, clearly not in the range of scales I am used to seeing printed on a map. So the question is what is MAXSCALE and MINSCALE relative to? Thanks, Joe Bussell On Time Systems From woodbri at swoodbridge.com Fri Apr 5 17:07:32 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 05 Apr 2002 20:07:32 -0500 Subject: [mapserver-users] multiple matches in $classObj->setexpression References: Message-ID: <3CAE4A54.1A0B96F9@swoodbridge.com> Puneet, You want to use a regular expression so in your mapfile you would say: CLASSITEM "GIS_KEY" CLASS EXPRESSION /^foo$|^bar$|^baz$/ or in php you would say something like: $oLayer->set("classitem", "GIS_KEY"); ... $oClass->setexpression("/^foo$|^bar$|^baz$/"); I haven't tested this but it should be close to this syntax. Give it a try and let us know how it goes. -Steve W. Puneet Kishor wrote: > > with the following in my map file... > > LAYER > NAME "parcels_highlight" > TYPE polygon > DATA parcel > STATUS off > CLASSITEM "OWNER" > CLASS > OUTLINECOLOR 255 0 0 > COLOR 255 255 0 > END > TEMPLATE "parcels.php" > END > > The following works fine... > > $str = "foo"; > $classObj->setexpression("\"$str\""); > $layerObj->set("status", 1); > > But I want to do the following, which, needless to say, does not work... > > $str = "([GIS_KEY] in (\"foo\", \"bar\", \"baz\"))"; > $classObj->setexpression("\"$str \""); > $layerObj->set("status", 1); > > In fact, I can't even get the following to work... > > $str = "([GIS_KEY] eq \"foo\")"; OR > $str = "([GIS_KEY] == \"foo\")"; OR > $str = "([GIS_KEY] eq 'foo')"; etc. > > What am I missing here? And if the "in" clause is not supported (doesn't > seem to be per the docs), would I need to do the following... > > $str = "(([GIS_KEY] eq \"foo\") or ([GIS_KEY] eq \"bar\") or ([GIS_KEY] eq > \"baz\"))"; > > Tia, > > pk/ From woodbri at swoodbridge.com Fri Apr 5 17:08:58 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 05 Apr 2002 20:08:58 -0500 Subject: [mapserver-users] update (regex solution) RE: multiple matches in $classObj->setexpression References: Message-ID: <3CAE4AAA.2F3FA208@swoodbridge.com> Ooops, that's what I get for not reading all my email before I respond :), glad you got it working. -Steve Puneet Kishor wrote: > > the following works... > > $str = "/foo|bar|baz/"; > > I am still curious to know if a more traditional SQL-ish construct would > work? And why my attempts below are failing. > > TIa, > > pk/ > > > -----Original Message----- > > From: Puneet Kishor > > Sent: Friday, April 05, 2002 4:41 PM > > To: MapServer List (E-mail) > > Subject: multiple matches in $classObj->setexpression > > > > > > with the following in my map file... > > > > LAYER > > NAME "parcels_highlight" > > TYPE polygon > > DATA parcel > > STATUS off > > CLASSITEM "OWNER" > > CLASS > > OUTLINECOLOR 255 0 0 > > COLOR 255 255 0 > > END > > TEMPLATE "parcels.php" > > END > > > > The following works fine... > > > > $str = "foo"; > > $classObj->setexpression("\"$str\""); > > $layerObj->set("status", 1); > > > > But I want to do the following, which, needless to say, does > > not work... > > > > $str = "([GIS_KEY] in (\"foo\", \"bar\", \"baz\"))"; > > $classObj->setexpression("\"$str \""); > > $layerObj->set("status", 1); > > > > > > In fact, I can't even get the following to work... > > > > $str = "([GIS_KEY] eq \"foo\")"; OR > > $str = "([GIS_KEY] == \"foo\")"; OR > > $str = "([GIS_KEY] eq 'foo')"; etc. > > > > > > What am I missing here? And if the "in" clause is not > > supported (doesn't seem to be per the docs), would I need to > > do the following... > > > > $str = "(([GIS_KEY] eq \"foo\") or ([GIS_KEY] eq \"bar\") or > > ([GIS_KEY] eq \"baz\"))"; > > > > Tia, > > > > pk/ > > From woodbri at swoodbridge.com Fri Apr 5 17:21:28 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 05 Apr 2002 20:21:28 -0500 Subject: [mapserver-users] File paths for layer data References: Message-ID: <3CAE4D97.14DFEEF9@swoodbridge.com> This could be because the web server process does not have access to the network drives. This could be because of access rights, or it could be because you are using a mapped drive which only exists for you as a user after you log in. Since the web server does not log in it does not have any mapped drives and can only access the local drives. -Steve W. Tyler Mitchell wrote: > > I've had a similar problem Adam, again using MapServ 3.5 on Windows 2000. > I couldn't access data on network/shared drives, only locally. It's been > a while since I tried, but I hope someone else can shed some light on it > for us. Any takers? > > > "Ryan, Adam" > To: Tyler Mitchell , > Sent by: mapserver-users at lists.gis.umn.edu > owner-mapserver-users at lists.g cc: > is.umn.edu Fax to: > Subject: RE: [mapserver-users] File paths for layer data > > 04/05/2002 01:55 PM > > > > Thanks Tyler. > > I'm running MapServer 3.5 on Windows 2000. I'm networked to a handful of > county servers including the web server that my mapserver files are on. > > Adam > > -----Original Message----- > From: Tyler Mitchell [mailto:TMitchell at lignum.com] > Sent: Friday, April 05, 2002 1:13 PM > To: mapserver-users at lists.gis.umn.edu > Cc: aryan at co.linn.or.us > Subject: Re: [mapserver-users] File paths for layer data > > Adam, I had come across similar problems but am not sure if it was only on > the windows platform or not. What is your "setup" - are you using windows, > cygwin, unix and maybe you could tell us what version you are using. > > Tyler > > "Ryan, Adam" > > To: > mapserver-users at lists.gis.umn.edu > Sent by: cc: > > owner-mapserver-users at lists.g Fax to: > > is.umn.edu Subject: > [mapserver-users] File paths for layer data > > 04/05/2002 11:29 AM > > > Hi all, > > > > I'm new at this and on a steep learning curve but I think I'm in love > with > > MapServer. It's so fast and, for the most part, easy to use. > > > > One problem: I want to set 'data' for a layer object in my map file to a > > file on another drive, url, server, etc. I can't get mapserver to access > > any layer files that are outside my server directory. I have images on > > the htm template file that reference other drives and servers so it > > doesn't seem to be a rights or permissions problem. > > > > Any suggestions? > > > > Thanks, > > > > Adam Ryan > > Linn County GIS > > Oregon From woodbri at swoodbridge.com Fri Apr 5 17:29:46 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 05 Apr 2002 20:29:46 -0500 Subject: [mapserver-users] No errors, but no lines on output map. References: <20020405130911.A20520@wblogan.net> <3CADFDE2.2FF578F9@swoodbridge.com> <20020405190820.A24535@wblogan.net> Message-ID: <3CAE4F8A.9CBF731A@swoodbridge.com> Ben, Do you want shape files for Carroll Co.? It would probably work better than OGR. What is the tiger file name you are working with for Carrol county? Can you handle a big email or would you rather download it froma website? Assume you want it :) -Steve W. Ben Logan wrote: > > On Fri, Apr 05, 2002 at 02:41:23PM -0500, Stephen Woodbridge wrote: > > Ben, > > > > Change your map file to : > > > > UNITS DD > > # extents for all of Virginia > > EXTENT -83.682000 36.543600 -74.952000 39.769180 > > > > should fix your problem. > > Thanks, that did at least cause something to show up. However, I > wanted to change the layer to represent landmark features, and now > nothing will show up again (same EXTENT as you gave above). The > output of ogrinfo on the Tiger data looks like this: > > INFO: Open of `web/mapserv_demo/test/data/carroll' > using driver `TIGER' successful. > 1: CompleteChain (Line String) > 2: AltName (None) > 3: FeatureIds (None) > 4: ZipCodes (None) > 5: Landmarks (Point) > 6: AreaLandmarks (None) > 7: KeyFeatures (None) > 8: Polygon (None) > 9: EntityNames (Point) > 10: IDHistory (None) > 11: PolyChainLink (None) > 12: PIP (Point) > 13: TLIDRange (None) > 14: ZipPlus4 (None) > > Note: > When I speak of layers below, I'm talking about the argument to > CONNECTION in a LAYER definition. E.g., > > CONNECTON "data/carroll, 0" > > I have skimmed the Tiger/LINE 2000 spec (from the Census Bureau) and > have some understanding (perhaps wrong :) of how the different record > types relate. Based on that, I thought that I should get a map of the > roads from layer 1 (CompleteChain). However, the only way I get any > output at all is if I use 0. If I change the layer arg to 5 and the > LAYER TYPE to POINT, I get nothing and the result is returned very > quickly unlike what happens when I use 0 which takes quite a few > seconds. > > I know that it would take a comination of layers to get the names of > the landmark features (or road names, etc), but it seems like I should > get a plot of the points. > > Thanks, > Ben > > -- > Ben Logan: ben at wblogan dot net > OpenPGP Key KeyID: A1ADD1F0 > > Any stone in your boot always migrates against the pressure gradient to > exactly the point of most pressure. > -- Milt Barber From shostko at ureach.com Mon Apr 1 22:07:56 2002 From: shostko at ureach.com (Alexander Shostko) Date: Tue, 2 Apr 2002 01:07:56 -0500 Subject: [mapserver-users] Mapserver and mapscript APIS for color changing Message-ID: <200204020607.BAA11466@www23.ureach.com> Dear Mapserver Users ! I need to change the colors dynamically for certain polygins and/or for layers (depends on how the image is composed). The mapfile provides color definition, but I would like to change it based on some time-dependent process. I plan to invoke the function (integrated into mapserver after processing the map file) or using mapscript. If anyone can suggest the APIs to use for -> layers color setting -> individual polygon color setting (based on the attributes in *.dbf file) I will very much appreciate it. Thanks in advance, Alexander Shostko shostko at ureach.com From warmerdam at pobox.com Fri Apr 5 18:53:24 2002 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 05 Apr 2002 21:53:24 -0500 Subject: [mapserver-users] No errors, but no lines on output map. References: <20020405130911.A20520@wblogan.net> <3CADFDE2.2FF578F9@swoodbridge.com> <20020405190820.A24535@wblogan.net> <3CAE4F8A.9CBF731A@swoodbridge.com> Message-ID: <3CAE6324.9090206@pobox.com> >>INFO: Open of `web/mapserv_demo/test/data/carroll' >>using driver `TIGER' successful. >>1: CompleteChain (Line String) >>2: AltName (None) >>3: FeatureIds (None) >>4: ZipCodes (None) >>5: Landmarks (Point) >>6: AreaLandmarks (None) >>7: KeyFeatures (None) >>8: Polygon (None) >>9: EntityNames (Point) >>10: IDHistory (None) >>11: PolyChainLink (None) >>12: PIP (Point) >>13: TLIDRange (None) >>14: ZipPlus4 (None) >> >>Note: >>When I speak of layers below, I'm talking about the argument to >>CONNECTION in a LAYER definition. E.g., >> >>CONNECTON "data/carroll, 0" >> >>I have skimmed the Tiger/LINE 2000 spec (from the Census Bureau) and >>have some understanding (perhaps wrong :) of how the different record >>types relate. Based on that, I thought that I should get a map of the >>roads from layer 1 (CompleteChain). However, the only way I get any >>output at all is if I use 0. If I change the layer arg to 5 and the >>LAYER TYPE to POINT, I get nothing and the result is returned very >>quickly unlike what happens when I use 0 which takes quite a few >>seconds. It is a peculiarity of the OGR integration in MapServer vs. ogrinfo that the layer number is different. Ogrinfo is reporting 1 based numbers while MapServer requires zero based indexes. so CompleteChain is layer index 0. This is noted in the OGR-HOWTO but is somewhat unobvious. 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 Steffen_Macke at dorsch.com.jo Mon Apr 1 22:55:01 2002 From: Steffen_Macke at dorsch.com.jo (Steffen_Macke at dorsch.com.jo) Date: Tue, 2 Apr 2002 08:55:01 +0200 Subject: [mapserver-users] Problems.. Message-ID: Paul, try to switch on the scalebar in ArcExplorer, this shoul allow you to determine the extents of the map. Steffen From shayes at bigpond.net.au Mon Apr 1 23:18:43 2002 From: shayes at bigpond.net.au (Steven Hayes) Date: Tue, 2 Apr 2002 17:18:43 +1000 Subject: [mapserver-users] Changing the color of a point with Mapscript Message-ID: <000301c1da16$9fa52320$55458990@tndn151qlhf5gi> Hi All, I use mapscript to dynamically create a point layer with the results of a query to a MySQL table. Once a hash table is populated from a MySQL query the following subroutine runs: ################################################################ sub make_unlabled_points { my ($layer_name) = @_; $layer = $map->getLayerByName($layer_name); my $i = 1; # site counter foreach my $s (@sample_sites) { $point->{x} = $s->{lon}; $point->{y} = $s->{lat}; $point->draw($map, $layer, $img, undef, undef); $i++; } } ############################################################### Given a reference to an existing layer definition in the map file a nice field of points is rendered. The following is an example of one of the layers commonly used: ############################################################## LAYER NAME sw_sites_no_lab TYPE point STATUS DEFAULT DATA locations CLASS SYMBOL 3 SIZE 3 NAME "sample sites" COLOR 254 0 0 END END ############################################################## The reference to the DATA being in the locations shape file is irrelevant as the layer definition simply provides symbology. And here is my problem...I can now do more complex queries of my underlying data and would like to render points in varying colours reflecting value ranges. How can I do this with mapscript? The truly dumb and stupid way would be to define various layers with different symbology but that limits me severely and gives no real scope for user interaction like refining the colour ramp based on the range of values in the returned data. Regards Steven Hayes From morissette at dmsolutions.ca Tue Apr 2 10:21:04 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 02 Apr 2002 13:21:04 -0500 Subject: [mapserver-users] Help with compiling on Windows? References: Message-ID: <3CA9F690.DDBE32A0@dmsolutions.ca> Frank, There should be a mapserv CGI executable compiled with WMS Client enabled in the following archive from our download site: http://www2.dmsolutions.ca/mapserver/dl/php4.1.2_php_mapscript_36-dev_libwww.zip Daniel Frank Nelson wrote: > > Hello, > I'm new to MapServer and at this point I'm still evaluating it. So far I'm > very impressed. However, one of the key items I need to evaluate is its WMS > Client capabilities. I'm currently using the binaries on Windows 2000 that > I downloaded from the homepage. Per the instructions, I executed "mapserv > -v" to check out what capabilites it was compiled with. WMS Server is in > there, but not WMS Client. So I thought, no big deal, I'll just recompile > it and turn on WMS Client. I didn't know what I was getting myself into!!! > I'm not a C programmer. I've followed instructions, searched mailing list > archives and 3 days later I don't feel like I'm getting any closer. It > seems that compiling MapServer itself is straight forward as there is > documentation and a VC++ makefile. However it is all the supporting > libraries that I'm having problems with... and it looks like the regex > library wasn't even meant to compile on windows. I think it would've been > very helpful if, whoever compiled those binares for windows, also made > available the source that was compiled.. even without documenation. Then I > could learn by looking at the changes that were made in order to compile on > Windows. > I need all the help I can get but I don't expect anyone to spend tremendous > amounts of time with me. So maybe, at a minimum I could get someone who has > successfully compiled version 3.5 on Windows to jot down a few clues. Some > sample questions I have are.. > My understanding is that I need to get ZLib, FreeType and LibPNG copmiled > first. Then those three will be used to in the GD compiling process. Then > all of the above will be used in the MapServer compiling process.... am I on > the right track? > Regardless, I can't get anything other than PROJ4 to compile. For those > libraries that don't have a Makefile.vc that I can't use VC++ on, what do I > use to compile? I downloaded a gcc compiler that has the "make" command, > but that doesn't seem to work on any of the makefiles and gcc compiles .c > files into .exe's when I really need .lib's... > I think I could get MapServer compiled if I could just get all these > supporting libraries how they need to be. > > I don't expect anyone to answer ALL my question, but any little bit of > information would be GREATLY appreciated!! > > _________________________________________________________________ > Chat with friends online, try MSN Messenger: http://messenger.msn.com From ben at wblogan.net Sat Apr 6 06:33:39 2002 From: ben at wblogan.net (Ben Logan) Date: Sat, 6 Apr 2002 09:33:39 -0500 Subject: [mapserver-users] No errors, but no lines on output map. In-Reply-To: <3CAE6324.9090206@pobox.com>; from warmerdam@pobox.com on Fri, Apr 05, 2002 at 09:53:24PM -0500 References: <20020405130911.A20520@wblogan.net> <3CADFDE2.2FF578F9@swoodbridge.com> <20020405190820.A24535@wblogan.net> <3CAE4F8A.9CBF731A@swoodbridge.com> <3CAE6324.9090206@pobox.com> Message-ID: <20020406093339.A2389@wblogan.net> On Fri, Apr 05, 2002 at 09:53:24PM -0500, Frank Warmerdam wrote: > It is a peculiarity of the OGR integration in MapServer vs. ogrinfo that > the layer number is different. Ogrinfo is reporting 1 based numbers while > MapServer requires zero based indexes. so CompleteChain is layer index 0. > > This is noted in the OGR-HOWTO but is somewhat unobvious. Ahh. I didn't see that note, and thought that 0 stood for all layers. It does indeed work now. Thanks, Ben -- Ben Logan: ben at wblogan dot net OpenPGP Key KeyID: A1ADD1F0 From pkishor at GeoAnalytics.com Sat Apr 6 07:41:01 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Sat, 6 Apr 2002 09:41:01 -0600 Subject: [mapserver-users] multiple matches in $classObj->setexpression In-Reply-To: <3CAE4A54.1A0B96F9@swoodbridge.com> Message-ID: Thanks Steve for responding. As you know, I figured out the regexp solution like you also suggested... > $oClass->setexpression("/^foo$|^bar$|^baz$/"); actually, since I wanted a full string match of many strings, I did the following... $oClass->setexpression("/(foo)|(bar)|(baz)/"); it works peachy. For now my problem is solved. However, I still can't get logical expressions to works, not at all. I can imagine wanting to do inequality operations such as... $oClass->setexpression("(([CI] < 5) or ([CI] > 7) or ([CI] eq \"Puneet\"))"); but, no success. I have tried a variety of different syntactic constructs (including different case combinations as well, even though I know that the attributes are all upper-case), starting with the simplest possible ([CI] = 5) and failed. I _am_ using PHP/Mapscript right now, but also re-writing the entire application in Perl/Maspscript. Why are my logical expressions failing? Is there something very obvious that I am overlooking? > >> >> with the following in my map file... >> >> LAYER >> NAME "parcels_highlight" >> TYPE polygon >> DATA parcel >> STATUS off >> CLASSITEM "OWNER" >> CLASS >> OUTLINECOLOR 255 0 0 >> COLOR 255 255 0 >> END >> TEMPLATE "parcels.php" >> END >> >> The following works fine... >> >> $str = "foo"; >> $classObj->setexpression("\"$str\""); >> $layerObj->set("status", 1); >> >> But I want to do the following, which, needless to say, does not >> work... >> >> $str = "([GIS_KEY] in (\"foo\", \"bar\", \"baz\"))"; >> $classObj->setexpression("\"$str \""); >> $layerObj->set("status", 1); >> >> In fact, I can't even get the following to work... >> >> $str = "([GIS_KEY] eq \"foo\")"; OR >> $str = "([GIS_KEY] == \"foo\")"; OR >> $str = "([GIS_KEY] eq 'foo')"; etc. >> >> What am I missing here? And if the "in" clause is not supported >> (doesn't >> seem to be per the docs), would I need to do the following... >> >> $str = "(([GIS_KEY] eq \"foo\") or ([GIS_KEY] eq \"bar\") or >> ([GIS_KEY] eq >> \"baz\"))"; >> >> Tia, >> >> pk/ From david.fawcett at moea.state.mn.us Tue Apr 2 11:41:38 2002 From: david.fawcett at moea.state.mn.us (Fawcett, David) Date: Tue, 2 Apr 2002 13:41:38 -0600 Subject: [mapserver-users] Listserv Problems? Message-ID: Thanks Raju, Because I hadn't seen any postings about the problem, I assumed that it was either a chronic case of deja vu or a mail server problem on my end. Thanks for clarifying the problem. David. David J. Fawcett GIS / Databases MN Office of Environmental Assistance 520 Lafayette Rd N St. Paul, MN 55155 651.215.0200 > ---------- > From: Ranga Raju Vatsavai[SMTP:vatsavai at cs.umn.edu] > Sent: Tuesday, April 02, 2002 1:12 PM > To: Tyler Mitchell > Cc: mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] Listserv Problems? > > Hello Mapserver-users, > > I observed that this is happenning for last couple of weeks. > Nothing is changed on this machine which might have caused > this problem. One strange thing is that not all messages > are duplicated. This is an unknown problem, so might take > a while to fix it. If anyone knows more about majordomo > administration and can share useful information, then please > send me a mail (vrraju at gis.umn.edu). > > Thanks > Raju > ---- > > > > Sometimes I do. I'll think that I just read a message, then get it the > > following morning again :) > > I thought it was only when someone would reply to all - both me and > > mapserver gets a copy. (like my response to you :). Are you getting > > something more than that? > > I noticed that you email said it was sent 8:28am - I received it at ~10:45 > > - strange. > > > > Tyler > > > > > > > > "Fawcett, David" > > > us> cc: > > Sent by: Fax to: > > owner-mapserver-users at lists.g Subject: [mapserver-users] Listserv Problems? > > is.umn.edu > > > > > > 04/02/2002 08:28 AM > > > > > > > > > > > > > > Is anyone else receiving multiple copies of posts? I seem to be getting > > second and third copies of some posts, delayed by a few days. > > > > David. > > > > David J. Fawcett > > GIS / Databases > > > > MN Office of Environmental Assistance > > 520 Lafayette Rd N > > St. Paul, MN 55155 > > 651.215.0200 > > > > > > > > > > > From woodbri at swoodbridge.com Sat Apr 6 08:01:30 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sat, 06 Apr 2002 11:01:30 -0500 Subject: [mapserver-users] multiple matches in $classObj->setexpression References: Message-ID: <3CAF1BDA.F57D7DBB@swoodbridge.com> Puneet, Try something like this for the mapfile: EXPRESSION ('[CI]' =~ /^Puneet/ || length('[CI]') < 3) or EXPRESSION ('[CI]' > 3 && '[CI]' < 5) You can convert this to PHP or Perl -Steve Puneet Kishor wrote: > > Thanks Steve for responding. > > As you know, I figured out the regexp solution like you also suggested... > > > $oClass->setexpression("/^foo$|^bar$|^baz$/"); > > actually, since I wanted a full string match of many strings, I did the > following... > > $oClass->setexpression("/(foo)|(bar)|(baz)/"); > > it works peachy. > > For now my problem is solved. However, I still can't get logical > expressions to works, not at all. I can imagine wanting to do inequality > operations such as... > > $oClass->setexpression("(([CI] < 5) or ([CI] > 7) or ([CI] eq > \"Puneet\"))"); > > but, no success. I have tried a variety of different syntactic > constructs (including different case combinations as well, even though I > know that the attributes are all upper-case), starting with the simplest > possible ([CI] = 5) and failed. > > I _am_ using PHP/Mapscript right now, but also re-writing the entire > application in Perl/Maspscript. > > Why are my logical expressions failing? Is there something very obvious > that I am overlooking? > > > > >> > >> with the following in my map file... > >> > >> LAYER > >> NAME "parcels_highlight" > >> TYPE polygon > >> DATA parcel > >> STATUS off > >> CLASSITEM "OWNER" > >> CLASS > >> OUTLINECOLOR 255 0 0 > >> COLOR 255 255 0 > >> END > >> TEMPLATE "parcels.php" > >> END > >> > >> The following works fine... > >> > >> $str = "foo"; > >> $classObj->setexpression("\"$str\""); > >> $layerObj->set("status", 1); > >> > >> But I want to do the following, which, needless to say, does not > >> work... > >> > >> $str = "([GIS_KEY] in (\"foo\", \"bar\", \"baz\"))"; > >> $classObj->setexpression("\"$str \""); > >> $layerObj->set("status", 1); > >> > >> In fact, I can't even get the following to work... > >> > >> $str = "([GIS_KEY] eq \"foo\")"; OR > >> $str = "([GIS_KEY] == \"foo\")"; OR > >> $str = "([GIS_KEY] eq 'foo')"; etc. > >> > >> What am I missing here? And if the "in" clause is not supported > >> (doesn't > >> seem to be per the docs), would I need to do the following... > >> > >> $str = "(([GIS_KEY] eq \"foo\") or ([GIS_KEY] eq \"bar\") or > >> ([GIS_KEY] eq > >> \"baz\"))"; > >> > >> Tia, > >> > >> pk/ From nacht at widerstand.org Sat Apr 6 08:08:24 2002 From: nacht at widerstand.org (DIZ :: Running through the Highlands in a MicroSkirt) Date: Sat, 6 Apr 2002 17:08:24 +0100 Subject: [mapserver-users] OT: MS Terraservice References: <3CA9F690.DDBE32A0@dmsolutions.ca> Message-ID: <000c01c1dd85$49643f60$1f0a0a0a@dskstorm09> http://terraservice.net/ came across this while looking for something completely unrelated. mightbe off some interest to some of you.... From stepan.kafka at centrum.cz Sat Apr 6 10:42:48 2002 From: stepan.kafka at centrum.cz (Stepan Kafka) Date: Sat, 6 Apr 2002 20:42:48 +0200 Subject: [mapserver-users] adjacent lines In-Reply-To: <3CADD8B3.50401@bigfoot.com> Message-ID: <000301c1dd9a$d98998a0$7e3c2fc3@HSGIS> There is my approach which I used formerly for displaying the dangling/pseudo nodes in ArcView: - get the last/first point coordinate in the line - use selectByPoint with small tolerance (if the layer is indexed, the function would be speedy) - exclude processed line from the result - other shapes in the result set are adjacent lines (For network analysis is good to preprocess these data to get faster response.) Stepan Kafka > -----P?vodn? zpr?va----- > Od: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]za u?ivatele Vladimir > Guzm?n > Odesl?no: 5. dubna 2002 19:03 > Komu: mapserver-users > P?edm?t: [mapserver-users] adjacent lines > > > Hello list. > > I'm trying to make a "two points path through a network" algorithm using > php-mapscript. > > Is there a way in php mapscript to know the adjacent lines of a > given line? > Can mapscript recognize the shape's topology? > Or it just can be done with postgis or Oracle spatial server? > > Thanks a lot, > > -- > Vladimir Guzm?n R. > ----------------- > www.main-task.com > > > From johnhagstrand at interageresearch.com Sat Apr 6 11:26:14 2002 From: johnhagstrand at interageresearch.com (John Hagstrand) Date: Sat, 06 Apr 2002 13:26:14 -0600 Subject: [mapserver-users] MrSid Message-ID: <4.3.2.7.0.20020406132528.034a5898@pop.registeredsite.com> Hi, I have a MrSid file I want to display as a layer in MapServer. Does anyone have an interface to do that? Thanks John ------------------------------------------------- John Hagstrand Interage Research, Inc. 847 838 5371 Software Development Consulting for Internet Archive Retrieval We help archives make knowledge accessible, useful, and relevant for everyone. http://www.interageresearch.com From ben at wblogan.net Sat Apr 6 17:48:01 2002 From: ben at wblogan.net (Ben Logan) Date: Sat, 6 Apr 2002 20:48:01 -0500 Subject: [mapserver-users] MrSid In-Reply-To: <4.3.2.7.0.20020406132528.034a5898@pop.registeredsite.com>; from johnhagstrand@interageresearch.com on Sat, Apr 06, 2002 at 01:26:14PM -0600 References: <4.3.2.7.0.20020406132528.034a5898@pop.registeredsite.com> Message-ID: <20020406204801.A9596@wblogan.net> On Sat, Apr 06, 2002 at 01:26:14PM -0600, John Hagstrand wrote: > Hi, > I have a MrSid file I want to display as a layer in MapServer. Does anyone > have an interface to do that? I'm new to Mapserver and don't know whether there is a Mapserver interface or not--it would be very cool if there is. In the mean time... The MrSid Viewer is available for free download from the LizardTech website (http://www.lizardtech.com). The Windows version has the ability to export the whole MrSID file or a portion of it as GeoTIFF or, I think, TIFF with world files. If you use Linux (as I do) I suggest downloading the Windows version and running it under Wine. At least that worked well for me. The Unix version of the MrSID viewer doesn't have as many features and you can only save the currently viewed region. :-( BTW, there seem to be several different flavors of the viewer for the Windows platform. The one you want is the Standalone Viewer and the download is 6+ Mb. Hope this helps, Ben -- Ben Logan: ben at wblogan dot net OpenPGP Key KeyID: A1ADD1F0 From ben at wblogan.net Sun Apr 7 03:37:48 2002 From: ben at wblogan.net (Ben Logan) Date: Sun, 7 Apr 2002 06:37:48 -0400 Subject: [mapserver-users] Where's the QUERY object? Message-ID: <20020407063748.A22971@wblogan.net> In the mapfile reference it says that JOINs appear within a QUERY object, but I can't find a QUERY object anywhere in the reference. Is it refering to a QUERYMAP or is the QUERY object undocumented? If so, can anyone give me some info on it? Thanks, Ben -- Ben Logan: ben at wblogan dot net OpenPGP Key KeyID: A1ADD1F0 In order to live free and happily, you must sacrifice boredom. It is not always an easy sacrifice. From woodbri at swoodbridge.com Sun Apr 7 04:54:07 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sun, 07 Apr 2002 07:54:07 -0400 Subject: [mapserver-users] Where's the QUERY object? References: <20020407063748.A22971@wblogan.net> Message-ID: <3CB0335F.738C4689@swoodbridge.com> Ben, In my "MapFile Reference - Mapserver 3.5" doc, it is right after the Legend Object and imeadiately before the Join object. Check again ... -Steve Ben Logan wrote: > > In the mapfile reference it says that JOINs appear within a QUERY > object, but I can't find a QUERY object anywhere in the reference. Is > it refering to a QUERYMAP or is the QUERY object undocumented? If so, > can anyone give me some info on it? > > Thanks, > Ben > > -- > Ben Logan: ben at wblogan dot net > OpenPGP Key KeyID: A1ADD1F0 > > In order to live free and happily, you must sacrifice boredom. > It is not always an easy sacrifice. From klehr1 at tampabay.rr.com Sun Apr 7 07:29:16 2002 From: klehr1 at tampabay.rr.com (klehr1 at tampabay.rr.com) Date: Sun, 7 Apr 2002 10:29:16 -0400 Subject: [mapserver-users] MrSid References: <4.3.2.7.0.20020406132528.034a5898@pop.registeredsite.com> <20020406204801.A9596@wblogan.net> Message-ID: <004d01c1de40$990995e0$0300a8c0@p200> ----- Original Message ----- From: Ben Logan To: Sent: Saturday, April 06, 2002 9:48 PM Subject: Re: [mapserver-users] MrSid > On Sat, Apr 06, 2002 at 01:26:14PM -0600, John Hagstrand wrote: > > Hi, > > I have a MrSid file I want to display as a layer in MapServer. Does anyone > > have an interface to do that? > > I'm new to Mapserver and don't know whether there is a Mapserver > interface or not--it would be very cool if there is. In the mean > time... > > The MrSid Viewer is available for free download from the LizardTech > website (http://www.lizardtech.com). The Windows version has the > ability to export the whole MrSID file or a portion of it as GeoTIFF > or, I think, TIFF with world files. If you use Linux (as I do) I > suggest downloading the Windows version and running it under Wine. At > least that worked well for me. The Unix version of the MrSID viewer > doesn't have as many features and you can only save the currently > viewed region. :-( > > BTW, there seem to be several different flavors of the viewer for the > Windows platform. The one you want is the Standalone Viewer and the > download is 6+ Mb. > > Hope this helps, > Ben > > -- > Ben Logan: ben at wblogan dot net > OpenPGP Key KeyID: A1ADD1F0 From johnhagstrand at interageresearch.com Sun Apr 7 09:04:55 2002 From: johnhagstrand at interageresearch.com (John Hagstrand) Date: Sun, 07 Apr 2002 10:04:55 -0600 Subject: [mapserver-users] MrSid In-Reply-To: <20020406204801.A9596@wblogan.net> References: <4.3.2.7.0.20020406132528.034a5898@pop.registeredsite.com> <4.3.2.7.0.20020406132528.034a5898@pop.registeredsite.com> Message-ID: <4.3.2.7.0.20020407100310.034cb298@pop.registeredsite.com> Thanks for your suggestion, Ben. However, correct if I'm wrong, the GeoTIFF format is not multi-res like MrSid. John At 07:48 PM 4/6/2002, you wrote: >On Sat, Apr 06, 2002 at 01:26:14PM -0600, John Hagstrand wrote: > > Hi, > > I have a MrSid file I want to display as a layer in MapServer. Does > anyone > > have an interface to do that? > >I'm new to Mapserver and don't know whether there is a Mapserver >interface or not--it would be very cool if there is. In the mean >time... > >The MrSid Viewer is available for free download from the LizardTech >website (http://www.lizardtech.com). The Windows version has the >ability to export the whole MrSID file or a portion of it as GeoTIFF >or, I think, TIFF with world files. If you use Linux (as I do) I >suggest downloading the Windows version and running it under Wine. At >least that worked well for me. The Unix version of the MrSID viewer >doesn't have as many features and you can only save the currently >viewed region. :-( > >BTW, there seem to be several different flavors of the viewer for the >Windows platform. The one you want is the Standalone Viewer and the >download is 6+ Mb. > >Hope this helps, >Ben > >-- >Ben Logan: ben at wblogan dot net >OpenPGP Key KeyID: A1ADD1F0 ------------------------------------------------- John Hagstrand Interage Research, Inc. 847 838 5371 Software Development Consulting for Internet Archive Retrieval We help archives make knowledge accessible, useful, and relevant for everyone. http://www.interageresearch.com From woodbri at swoodbridge.com Sun Apr 7 08:27:55 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sun, 07 Apr 2002 11:27:55 -0400 Subject: [mapserver-users] MrSid References: <4.3.2.7.0.20020406132528.034a5898@pop.registeredsite.com> <4.3.2.7.0.20020406132528.034a5898@pop.registeredsite.com> <4.3.2.7.0.20020407100310.034cb298@pop.registeredsite.com> Message-ID: <3CB0657B.52493010@swoodbridge.com> FYI, There is no native support for MrSid in mapserver. Search the archives for "MrSid" for more info. -Steve John Hagstrand wrote: > > Thanks for your suggestion, Ben. However, correct if I'm wrong, the > GeoTIFF format is not multi-res like MrSid. > John > > At 07:48 PM 4/6/2002, you wrote: > >On Sat, Apr 06, 2002 at 01:26:14PM -0600, John Hagstrand wrote: > > > Hi, > > > I have a MrSid file I want to display as a layer in MapServer. Does > > anyone > > > have an interface to do that? > > > >I'm new to Mapserver and don't know whether there is a Mapserver > >interface or not--it would be very cool if there is. In the mean > >time... > > > >The MrSid Viewer is available for free download from the LizardTech > >website (http://www.lizardtech.com). The Windows version has the > >ability to export the whole MrSID file or a portion of it as GeoTIFF > >or, I think, TIFF with world files. If you use Linux (as I do) I > >suggest downloading the Windows version and running it under Wine. At > >least that worked well for me. The Unix version of the MrSID viewer > >doesn't have as many features and you can only save the currently > >viewed region. :-( > > > >BTW, there seem to be several different flavors of the viewer for the > >Windows platform. The one you want is the Standalone Viewer and the > >download is 6+ Mb. > > > >Hope this helps, > >Ben > > > >-- > >Ben Logan: ben at wblogan dot net > >OpenPGP Key KeyID: A1ADD1F0 > > ------------------------------------------------- > John Hagstrand > Interage Research, Inc. > 847 838 5371 > Software Development Consulting for Internet Archive Retrieval > We help archives make knowledge accessible, useful, and relevant for everyone. > http://www.interageresearch.com From morissette at dmsolutions.ca Sun Apr 7 09:28:19 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Sun, 07 Apr 2002 12:28:19 -0400 Subject: [mapserver-users] gmap demo problem References: Message-ID: <3CB073A3.B19955D0@dmsolutions.ca> Pushkar Pradhan wrote: > > Hi, > I am trying to use the gmap demo from DM soln. I have followed the > install. procedure but when I try to access any file under htdocs dir. in > IE I get the internal server error (500) > the error log is like this: > [Fri Mar 29 17:18:56 2002] [error] [client 130.18.13.234] Premature end of > script headers: /rstc/user1/erc/pushkar/apache_1.3.22/cgi-bin/php > You often get this error when you point your browser to a non-existing .php page on a system running PHP as a cGI. The server should return an error 404 (not found) but the PHP CGI seems to have a bug (http://bugs.php.net/bug.php?id=13035) and returns nothing in this case, which explains the error 500 that Apache returns. Try setting "log_errors = On" in your php.ini and you should (hopefully) get a more meaningfuil error messaqge in your apache error_log that will help figure the source of the problem. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From Rich at GreenwoodMap.com Sun Apr 7 10:16:45 2002 From: Rich at GreenwoodMap.com (Richard Greenwood) Date: Sun, 07 Apr 2002 11:16:45 -0600 Subject: [mapserver-users] MrSid In-Reply-To: <4.3.2.7.0.20020407100310.034cb298@pop.registeredsite.com> References: <20020406204801.A9596@wblogan.net> <4.3.2.7.0.20020406132528.034a5898@pop.registeredsite.com> <4.3.2.7.0.20020406132528.034a5898@pop.registeredsite.com> Message-ID: <5.1.0.14.0.20020407111135.024b32b0@mail.GreenwoodMap.com> At 10:04 AM 4/7/2002 -0600, you wrote: >Thanks for your suggestion, Ben. However, correct if I'm wrong, the >GeoTIFF format is not multi-res like MrSid. >John You can add overviews to tiff files with the gdaladdo utility. Tiff files are large, and overviews make them larger, but improve performance. You should also consider ecw if you are working with grayscale images. Ecw is very similar to MrSID and is supported by mapserver under windows (not Linux/UNIX). If you are working with color, I'd suggest that you stick with tiff because the color in mapserver-ecw doesn't look all that great. Rich >At 07:48 PM 4/6/2002, you wrote: >>On Sat, Apr 06, 2002 at 01:26:14PM -0600, John Hagstrand wrote: >> > Hi, >> > I have a MrSid file I want to display as a layer in MapServer. Does >> anyone >> > have an interface to do that? >> >>I'm new to Mapserver and don't know whether there is a Mapserver >>interface or not--it would be very cool if there is. In the mean >>time... >> >>The MrSid Viewer is available for free download from the LizardTech >>website (http://www.lizardtech.com). The Windows version has the >>ability to export the whole MrSID file or a portion of it as GeoTIFF >>or, I think, TIFF with world files. If you use Linux (as I do) I >>suggest downloading the Windows version and running it under Wine. At >>least that worked well for me. The Unix version of the MrSID viewer >>doesn't have as many features and you can only save the currently >>viewed region. :-( >> >>BTW, there seem to be several different flavors of the viewer for the >>Windows platform. The one you want is the Standalone Viewer and the >>download is 6+ Mb. >> >>Hope this helps, >>Ben >> >>-- >>Ben Logan: ben at wblogan dot net >>OpenPGP Key KeyID: A1ADD1F0 > > >------------------------------------------------- >John Hagstrand >Interage Research, Inc. >847 838 5371 >Software Development Consulting for Internet Archive Retrieval >We help archives make knowledge accessible, useful, and relevant for everyone. >http://www.interageresearch.com > > Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From steve.lime at dnr.state.mn.us Sun Apr 7 11:41:29 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Sun, 07 Apr 2002 13:41:29 -0500 Subject: [mapserver-users] multiple matches in $classObj->setexpression Message-ID: The MapServer parser isn't as smart as it probably could be and doesn't have the benefit of knowing the type of data being substituted using [] or %% replacement strings. Therefore you must tell it. Try quoting [GIS_KEY] in the expressions. That tells the parser that the value is a string. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Puneet Kishor 04/05/02 16:44 PM >>> with the following in my map file... LAYER NAME "parcels_highlight" TYPE polygon DATA parcel STATUS off CLASSITEM "OWNER" CLASS OUTLINECOLOR 255 0 0 COLOR 255 255 0 END TEMPLATE "parcels.php" END The following works fine... $str = "foo"; $classObj->setexpression("\"$str\""); $layerObj->set("status", 1); But I want to do the following, which, needless to say, does not work... $str = "([GIS_KEY] in (\"foo\", \"bar\", \"baz\"))"; $classObj->setexpression("\"$str \""); $layerObj->set("status", 1); In fact, I can't even get the following to work... $str = "([GIS_KEY] eq \"foo\")"; OR $str = "([GIS_KEY] == \"foo\")"; OR $str = "([GIS_KEY] eq 'foo')"; etc. What am I missing here? And if the "in" clause is not supported (doesn't seem to be per the docs), would I need to do the following... $str = "(([GIS_KEY] eq \"foo\") or ([GIS_KEY] eq \"bar\") or ([GIS_KEY] eq \"baz\"))"; Tia, pk/ From pushkar at ERC.MsState.Edu Sun Apr 7 15:51:08 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Sun, 7 Apr 2002 17:51:08 -0500 (CDT) Subject: [mapserver-users] displaying query problem Message-ID: Hi, I am trying to display query results, I am using code from the gmap demo. In short I do this, the gmapDumQueryResults() is unchanged from gmap demo. In my map file I have: METADATA "DESCRIPTION" "Buildings" "RESULT_FIELDS" "Area Perimeter" END Area and perimeter are the attribs I want displayed. When I query a point in my map I get: Nothing found at query location. even though I click on a layer. This happens because the numResults val. in gmapDumpQueryResults() is zero: $numResults = $oLayer->getNumResults(); if ($numResults == 0) continue; // No results in this layer php code: if ( isset($HTTP_POST_VARS["mode"]) ) { $nClickPixX = intval($HTTP_FORM_VARS[mapa_x]); $nClickPixY = intval($HTTP_FORM_VARS[mapa_y]); $dfWidthPix = 600; $dfHeightPix = 500; $dfMinX = $map->extent->minx; $dfMaxX = $map->extent->maxx; $dfMinY = $map->extent->miny; $dfMaxY = $map->extent->maxy; if( $HTTP_POST_VARS["mode"] == "query") { $nClickGeoX = GMapPix2Geo($nClickPixX, 0, $dfWidthPix, $dfMinX, $dfMaxX, 0); $nClickGeoY = GMapPix2Geo($nClickPixY, 0, $dfHeightPix, $dfMinY, $dfMaxY, 1); $oClickGeo = ms_newPointObj(); $oClickGeo->setXY($nClickGeoX, $nClickGeoY); // Use '@' to avoid warning if query found nothing @$map->queryByPoint($oClickGeo, MS_SINGLE, -1); gmapDumpQueryResults(); } } // end of if loop Do I need to call some other functions. ------------------------------------------------------------------------------ PUSHKAR S. PRADHAN Research Assistant MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------------ From robert at wotzhere.com Sun Apr 7 16:15:36 2002 From: robert at wotzhere.com (Robert Crossley) Date: Mon, 08 Apr 2002 09:15:36 +1000 Subject: [mapserver-users] Where's the QUERY object? In-Reply-To: <20020407063748.A22971@wblogan.net> Message-ID: The mapserver reference I am using also has only Querymap between Join and Legend. Is there more than one version of the docs? I am using the docs from http://mapserver.gis.umn.edu/doc/mapfile-reference.html The query object sounds like something I am looking for. Thanks R Robert Crossley Robert Crossley & Associates 9 Short St New Brighton NSW 2483 AUSTRALIA P: 02 6680 1309 F: New Connection M: 0419 718 642 E: robert at wotzhere.com From woodbri at swoodbridge.com Sun Apr 7 16:33:56 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sun, 07 Apr 2002 19:33:56 -0400 Subject: [mapserver-users] displaying query problem References: Message-ID: <3CB0D764.8CAAFEDB@swoodbridge.com> Pushkar, You MUST also have a TEMPLATE statement in the LAYER or CLASS definition or that layer will NOT be queried. It is sufficent to say TEMPLATE void -Steve Pushkar Pradhan wrote: > > Hi, > I am trying to display query results, I am using code from the gmap demo. > In short I do this, the gmapDumQueryResults() is unchanged from gmap demo. > In my map file I have: > METADATA > "DESCRIPTION" "Buildings" > "RESULT_FIELDS" "Area Perimeter" > END > Area and perimeter are the attribs I want displayed. > When I query a point in my map I get: > Nothing found at query location. even though I click on a layer. > This happens because the numResults val. in gmapDumpQueryResults() is > zero: > $numResults = $oLayer->getNumResults(); > > if ($numResults == 0) > continue; // No results in this layer > > php code: > if ( isset($HTTP_POST_VARS["mode"]) ) { > $nClickPixX = intval($HTTP_FORM_VARS[mapa_x]); > $nClickPixY = intval($HTTP_FORM_VARS[mapa_y]); > $dfWidthPix = 600; > $dfHeightPix = 500; > $dfMinX = $map->extent->minx; > $dfMaxX = $map->extent->maxx; > $dfMinY = $map->extent->miny; > $dfMaxY = $map->extent->maxy; > if( $HTTP_POST_VARS["mode"] == "query") { > $nClickGeoX = GMapPix2Geo($nClickPixX, 0, $dfWidthPix, $dfMinX, > $dfMaxX, 0); > $nClickGeoY = GMapPix2Geo($nClickPixY, 0, $dfHeightPix, $dfMinY, > $dfMaxY, 1); > > $oClickGeo = ms_newPointObj(); > $oClickGeo->setXY($nClickGeoX, $nClickGeoY); > > // Use '@' to avoid warning if query found nothing > @$map->queryByPoint($oClickGeo, MS_SINGLE, -1); > gmapDumpQueryResults(); > } > } // end of if loop > Do I need to call some other functions. > ------------------------------------------------------------------------------ > PUSHKAR S. PRADHAN > Research Assistant > MISSISSIPPI STATE UNIVERSITY, > STARKVILLE, MS 39759. > > Engineering Research Center > Box 9627 > Mississippi State, MS 39762-9627 > ------------------------------------------------------------------------------ From woodbri at swoodbridge.com Sun Apr 7 16:35:48 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sun, 07 Apr 2002 19:35:48 -0400 Subject: [mapserver-users] Where's the QUERY object? References: Message-ID: <3CB0D7D4.837FBA6E@swoodbridge.com> QUERYMAP signals the start of a Query object. I think that IS what you are looking for. -Steve Robert Crossley wrote: > > The mapserver reference I am using also has only Querymap between Join and Legend. Is there more than one version of the docs? > I am using the docs from http://mapserver.gis.umn.edu/doc/mapfile-reference.html The query object sounds like something I am looking for. > > Thanks > R > > Robert Crossley > Robert Crossley & Associates > 9 Short St > New Brighton NSW 2483 > AUSTRALIA > > P: 02 6680 1309 > F: New Connection > M: 0419 718 642 > E: robert at wotzhere.com From pushkar at ERC.MsState.Edu Sun Apr 7 19:41:49 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Sun, 7 Apr 2002 21:41:49 -0500 (CDT) Subject: [mapserver-users] displaying query problem In-Reply-To: <3CB0D764.8CAAFEDB@swoodbridge.com> Message-ID: Steven, Thank you for your response but it didn't work either. Just to make sure "RESULT_FIELDS" must contain the attribs. name, right? In doing a query do I need any other function besides gMapDumpQueryResults() in order to display the info. about the layers? > Pushkar, > > You MUST also have a TEMPLATE statement in the LAYER or CLASS definition > or that layer will NOT be queried. It is sufficent to say > > TEMPLATE void > > -Steve > > Pushkar Pradhan wrote: > > > > Hi, > > I am trying to display query results, I am using code from the gmap demo. > > In short I do this, the gmapDumQueryResults() is unchanged from gmap demo. > > In my map file I have: > > METADATA > > "DESCRIPTION" "Buildings" > > "RESULT_FIELDS" "Area Perimeter" > > END > > Area and perimeter are the attribs I want displayed. > > When I query a point in my map I get: > > Nothing found at query location. even though I click on a layer. > > This happens because the numResults val. in gmapDumpQueryResults() is > > zero: > > $numResults = $oLayer->getNumResults(); > > > > if ($numResults == 0) > > continue; // No results in this layer > > > > php code: > > if ( isset($HTTP_POST_VARS["mode"]) ) { > > $nClickPixX = intval($HTTP_FORM_VARS[mapa_x]); > > $nClickPixY = intval($HTTP_FORM_VARS[mapa_y]); > > $dfWidthPix = 600; > > $dfHeightPix = 500; > > $dfMinX = $map->extent->minx; > > $dfMaxX = $map->extent->maxx; > > $dfMinY = $map->extent->miny; > > $dfMaxY = $map->extent->maxy; > > if( $HTTP_POST_VARS["mode"] == "query") { > > $nClickGeoX = GMapPix2Geo($nClickPixX, 0, $dfWidthPix, $dfMinX, > > $dfMaxX, 0); > > $nClickGeoY = GMapPix2Geo($nClickPixY, 0, $dfHeightPix, $dfMinY, > > $dfMaxY, 1); > > > > $oClickGeo = ms_newPointObj(); > > $oClickGeo->setXY($nClickGeoX, $nClickGeoY); > > > > // Use '@' to avoid warning if query found nothing > > @$map->queryByPoint($oClickGeo, MS_SINGLE, -1); > > gmapDumpQueryResults(); > > } > > } // end of if loop > > Do I need to call some other functions. > > ------------------------------------------------------------------------------ > > PUSHKAR S. PRADHAN > > Research Assistant > > MISSISSIPPI STATE UNIVERSITY, > > STARKVILLE, MS 39759. > > > > Engineering Research Center > > Box 9627 > > Mississippi State, MS 39762-9627 > > ------------------------------------------------------------------------------ > ------------------------------------------------------------------------------ PUSHKAR S. PRADHAN Research Assistant MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------------ From trem at socialchange.net.au Sun Apr 7 19:55:36 2002 From: trem at socialchange.net.au (Trem Stamp) Date: Mon, 8 Apr 2002 12:55:36 +1000 Subject: [mapserver-users] digitalearth DTD Message-ID: <00dd01c1dea8$e1ac1df0$95020a0a@socialchange.net.au> Hi all, I noticed today that my application breaks when getting the mapserv WMS capabilities document in mapserv3.5. There appears to be a reference to: http://www.digitalearth.gov/wmt/xml/exception_1_0_0.dtd This no longer appears to be a valid url. I realise that http://www.digitalearth.gov/wmt/xml/exception_1_0_1.dtd is valid, but this isn't being requested. Using this url: http://maps-dev.socialchange.net.au/cgi-bin/mapserv?map=mapfiles/geoscience10m.map&WMTVER=1.0.1&request=capabilities&LAYERS= I get................... ]> Is this dtd going to be reliable or is it now not being used? Cheers, Trem -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Sun Apr 7 19:56:18 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sun, 07 Apr 2002 22:56:18 -0400 Subject: [mapserver-users] displaying query problem References: Message-ID: <3CB106D2.17FA1312@swoodbridge.com> Pushkar, The field names are case sensitive. You must match the case spelling of the field names. One the shp file in ArcExplorer2 and check the case of the names. You can not rely on "dbfdump --info file.dbf" from the Perl utility. -Steve Pushkar Pradhan wrote: > > Steven, > Thank you for your response but it didn't work either. > Just to make sure "RESULT_FIELDS" must contain the attribs. name, right? > In doing a query do I need any other function besides > gMapDumpQueryResults() in order to display the info. about the layers? > > > Pushkar, > > > > You MUST also have a TEMPLATE statement in the LAYER or CLASS definition > > or that layer will NOT be queried. It is sufficent to say > > > > TEMPLATE void > > > > -Steve > > > > Pushkar Pradhan wrote: > > > > > > Hi, > > > I am trying to display query results, I am using code from the gmap demo. > > > In short I do this, the gmapDumQueryResults() is unchanged from gmap demo. > > > In my map file I have: > > > METADATA > > > "DESCRIPTION" "Buildings" > > > "RESULT_FIELDS" "Area Perimeter" > > > END > > > Area and perimeter are the attribs I want displayed. > > > When I query a point in my map I get: > > > Nothing found at query location. even though I click on a layer. > > > This happens because the numResults val. in gmapDumpQueryResults() is > > > zero: > > > $numResults = $oLayer->getNumResults(); > > > > > > if ($numResults == 0) > > > continue; // No results in this layer > > > > > > php code: > > > if ( isset($HTTP_POST_VARS["mode"]) ) { > > > $nClickPixX = intval($HTTP_FORM_VARS[mapa_x]); > > > $nClickPixY = intval($HTTP_FORM_VARS[mapa_y]); > > > $dfWidthPix = 600; > > > $dfHeightPix = 500; > > > $dfMinX = $map->extent->minx; > > > $dfMaxX = $map->extent->maxx; > > > $dfMinY = $map->extent->miny; > > > $dfMaxY = $map->extent->maxy; > > > if( $HTTP_POST_VARS["mode"] == "query") { > > > $nClickGeoX = GMapPix2Geo($nClickPixX, 0, $dfWidthPix, $dfMinX, > > > $dfMaxX, 0); > > > $nClickGeoY = GMapPix2Geo($nClickPixY, 0, $dfHeightPix, $dfMinY, > > > $dfMaxY, 1); > > > > > > $oClickGeo = ms_newPointObj(); > > > $oClickGeo->setXY($nClickGeoX, $nClickGeoY); > > > > > > // Use '@' to avoid warning if query found nothing > > > @$map->queryByPoint($oClickGeo, MS_SINGLE, -1); > > > gmapDumpQueryResults(); > > > } > > > } // end of if loop > > > Do I need to call some other functions. > > > ------------------------------------------------------------------------------ > > > PUSHKAR S. PRADHAN > > > Research Assistant > > > MISSISSIPPI STATE UNIVERSITY, > > > STARKVILLE, MS 39759. > > > > > > Engineering Research Center > > > Box 9627 > > > Mississippi State, MS 39762-9627 > > > ------------------------------------------------------------------------------ > > > > ------------------------------------------------------------------------------ > PUSHKAR S. PRADHAN > Research Assistant > MISSISSIPPI STATE UNIVERSITY, > STARKVILLE, MS 39759. > > Engineering Research Center > Box 9627 > Mississippi State, MS 39762-9627 > ------------------------------------------------------------------------------ From pkishor at GeoAnalytics.com Sun Apr 7 20:24:47 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Sun, 7 Apr 2002 22:24:47 -0500 Subject: [mapserver-users] multiple matches in $classObj->setexpression In-Reply-To: <3CAE4A54.1A0B96F9@swoodbridge.com> Message-ID: <2D8CE6C2-4AA0-11D6-A351-0003936306C2@geoanalytics.com> thanks to sw and sdl, I now know how to do this (will try it out tomorrow at work). one thing though... the documentation makes a very cursory mention of this peculiarity without really pointing it out... Specifically, I could find only one passing references to attribs in shape files at http://mapserver.gis.umn.edu/doc/mapfile-reference.html > Logical expressions allow you to build fairly complex tests based on > one or more attributes and therefore are only available with > shapefiles. Logical expressions are delimited by parentheses > "(expression)". Attribute names are delimited by square brackets > "[ATTRIBUTE]". These names are case sensitive and must match the items > in the shapefile. For example: EXPRESSION ([POPULATION] > 50000 AND > '[LANGUAGE]' eq 'FRENCH') ... The following logical operators are > supported : =,>,<,<=,>=,=,or,and,lt,gt,ge,le,eq. As you might expect > this level of complexity is slower to process. see the '[LANGUAGE]' eq 'FRENCH' bit... that escaped me completely, and now is noticeable only because I have been educated about it. Nonetheless, many thanks, pk/ On Friday, April 5, 2002, at 07:07 PM, Stephen Woodbridge wrote: > Puneet, > > You want to use a regular expression so in your mapfile you would say: > > CLASSITEM "GIS_KEY" > CLASS > EXPRESSION /^foo$|^bar$|^baz$/ > > or in php you would say something like: > > $oLayer->set("classitem", "GIS_KEY"); > ... > $oClass->setexpression("/^foo$|^bar$|^baz$/"); > > I haven't tested this but it should be close to this syntax. Give it a > try and let us know how it goes. > > -Steve W. > > Puneet Kishor wrote: >> >> with the following in my map file... >> >> LAYER >> NAME "parcels_highlight" >> TYPE polygon >> DATA parcel >> STATUS off >> CLASSITEM "OWNER" >> CLASS >> OUTLINECOLOR 255 0 0 >> COLOR 255 255 0 >> END >> TEMPLATE "parcels.php" >> END >> >> The following works fine... >> >> $str = "foo"; >> $classObj->setexpression("\"$str\""); >> $layerObj->set("status", 1); >> >> But I want to do the following, which, needless to say, does not >> work... >> >> $str = "([GIS_KEY] in (\"foo\", \"bar\", \"baz\"))"; >> $classObj->setexpression("\"$str \""); >> $layerObj->set("status", 1); >> >> In fact, I can't even get the following to work... >> >> $str = "([GIS_KEY] eq \"foo\")"; OR >> $str = "([GIS_KEY] == \"foo\")"; OR >> $str = "([GIS_KEY] eq 'foo')"; etc. >> >> What am I missing here? And if the "in" clause is not supported >> (doesn't >> seem to be per the docs), would I need to do the following... >> >> $str = "(([GIS_KEY] eq \"foo\") or ([GIS_KEY] eq \"bar\") or >> ([GIS_KEY] eq >> \"baz\"))"; >> >> Tia, >> >> pk/ From ahallam at digitalearth.com.au Mon Apr 8 02:37:25 2002 From: ahallam at digitalearth.com.au (Andrew Hallam) Date: Mon, 08 Apr 2002 19:37:25 +1000 Subject: [mapserver-users] Patent Challenge Message-ID: <933843.1018294645@[192.168.0.11]> Chris, This might be just trivia. I picked up a copy of Mapping Websites: Digital Media Design (site maps, not map sites) last week. In Chapter 3 it contains screen shots of an application called NoteCards developed by Xerox PARC. The authors consider it one of the earliest hypertext systems and a predecessor to Apple's HyperCard. The images in the book are from a presentation at Hypertext '87 and they show map images being displayed as the result of selecting a hyperlink. The researchers giving the paper "Hypertext Habitats: Experience of Writers in NoteCards" were: Randall H. Trigg and Peggy M. Irish. Additional developers were Frank Halasz and Tom Moran. Regards Andrew Hallam Digital Earth Pty Ltd http://www.digitalearth.com.au From robert at wotzhere.com Mon Apr 8 02:59:18 2002 From: robert at wotzhere.com (Robert Crossley) Date: Mon, 08 Apr 2002 19:59:18 +1000 Subject: [mapserver-users] CGI Map changes Message-ID: <1V85WUTSTORN4Y75KJTQSMVP3X623Y1V.3cb169f6@rogers> Hi all, Hope this doesn't sound dumb, but am trying to understand how mapserver operates with CGI calls with multiple users. Have only been working with web map servers for a short period ( 2 weeks) so some of the concepts are a bit new. I have used a common map file to set up Mapserver for all users, but the data each user requires is different. I have been successful in using a URL to change the data string for the layers defined in a common map file, so I can customise the layer being displayed based on a variable in my app. Do I need to pass these parameters every time that I make a call to MapServer? One reference said that MapServer is stateless, so does this mean that once it renders and image it forgets what it has done for that user, and thus I would assume that it needs to have all parameters that are different to the Map file defined on each call? It would be easy enough for me to test this for one user, but what about with multiple sessions where each user has a different data value would require a bit more effort. THanks R Robert Crossley Robert Crossley & Associates 9 Short St New Brighton NSW 2483 AUSTRALIA P: 02 6680 1309 F: New Connection M: 0419 718 642 E: robert at wotzhere.com From ben at wblogan.net Mon Apr 8 03:26:29 2002 From: ben at wblogan.net (Ben Logan) Date: Mon, 8 Apr 2002 06:26:29 -0400 Subject: [mapserver-users] Where's the QUERY object? In-Reply-To: <3CB0D7D4.837FBA6E@swoodbridge.com>; from woodbri@swoodbridge.com on Sun, Apr 07, 2002 at 07:35:48PM -0400 References: <3CB0D7D4.837FBA6E@swoodbridge.com> Message-ID: <20020408062629.A11620@wblogan.net> On Sun, Apr 07, 2002 at 07:35:48PM -0400, Stephen Woodbridge wrote: > QUERYMAP signals the start of a Query object. > I think that IS what you are looking for. Oic. I wondered if that was the case because I'm looking at the same docs as Robert and only found QUERYMAP. The only problem is that I don't see why you would nest a JOIN inside a QUERYMAP object. Looks like QUERYMAP is simply a way to hilight the results of a query, whereas a QUERY object would determine how the query is performed. I do see that a LAYER can have a TYPE of "query" so perhaps that's what you nest a JOIN in. Thanks, Ben -- Ben Logan: ben at wblogan dot net OpenPGP Key KeyID: A1ADD1F0 If time heals all wounds, how come the belly button stays the same? From ben at wblogan.net Mon Apr 8 04:09:00 2002 From: ben at wblogan.net (Ben Logan) Date: Mon, 8 Apr 2002 07:09:00 -0400 Subject: [mapserver-users] Mapscript and Python: no mapscriptc module. Message-ID: <20020408070900.B11620@wblogan.net> I've been searching the docs and list archives, but haven't found much on getting the Python Mapscript wrapper to work. I changed to the mapscript/python directory, ran python, and tried to import mapscript.py, but got the following error: Python 1.5.2 (#1, Mar 3 2001, 01:35:43) [GCC 2.96 20000731 (Red Hat Linux 7.1 2 on linux-i386 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>> import mapscript Traceback (innermost last): File "", line 1, in ? File "mapscript.py", line 2, in ? import mapscriptc ImportError: No module named mapscriptc Here's the contents of the directory: CVS examples mapscript.i mapscript.py mapscript.pyc mapscript_wrap.c As you can see, there is no mapscriptc.* . From the messages in the list archives is appears that I need to compile mapscript_wrap.c into mapscriptcmodule.so (since I have a mapscript_wrap.c, I'm assuming that I don't need to run SWIG--if so I'll have to install it first). I ran gcc -c mapscript_wrap.c -I/usr/include/python1.5 -o mapscriptcmodule.o without any errors. I then ran ld -shared mapscriptcmodule.o -o mapscriptcmodule.so also successful. However, now I get the same error as the OP: Python 1.5.2 (#1, Mar 3 2001, 01:35:43) [GCC 2.96 20000731 (Red Hat Linux 7.1 2 on linux-i386 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>> import mapscript Traceback (innermost last): File "", line 1, in ? File "mapscript.py", line 2, in ? import mapscriptc ImportError: ./mapscriptcmodule.so: undefined symbol: ms_error Norman Vine responded to his post and attached a setup script to link the module with the necessary mapscript libraries, but the list archive software won't let me download it. I tried ld -o mapscriptcmodule.so mapscriptcmodule.o -shared ../../libmap.a and it seemed to work, but now I get this error: Python 1.5.2 (#1, Mar 3 2001, 01:35:43) [GCC 2.96 20000731 (Red Hat Linux 7.1 2 on linux-i386 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>> import mapscript Traceback (innermost last): File "", line 1, in ? File "mapscript.py", line 2, in ? import mapscriptc ImportError: ./mapscriptcmodule.so: undefined symbol: gdImageCreate I have a feeling this could go on for a while. As you can probably tell, I don't know too much about building libraries. :) Can anyone help me out? BTW, I'm using MapServer 3.5 and you can see my system setup from the errors above. Thanks, Ben -- Ben Logan: ben at wblogan dot net OpenPGP Key KeyID: A1ADD1F0 ((lambda (foo) (bar foo)) (baz)) From woodbri at swoodbridge.com Mon Apr 8 04:55:18 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 08 Apr 2002 07:55:18 -0400 Subject: [mapserver-users] multiple matches in $classObj->setexpression References: <2D8CE6C2-4AA0-11D6-A351-0003936306C2@geoanalytics.com> Message-ID: <3CB18526.833B11B4@swoodbridge.com> Puneet, You could help everyone if you would do a mini howto page on wiki. It could be just a bunch of examples of various expressions it a short explaination of what is important about each. I would then be easier to point other people to it in the future. Anyway, glad your up and running. -Steve Puneet Kishor wrote: > > thanks to sw and sdl, I now know how to do this (will try it out > tomorrow at work). one thing though... the documentation makes a very > cursory mention of this peculiarity without really pointing it out... > > Specifically, I could find only one passing references to attribs in > shape files at http://mapserver.gis.umn.edu/doc/mapfile-reference.html > > > Logical expressions allow you to build fairly complex tests based on > > one or more attributes and therefore are only available with > > shapefiles. Logical expressions are delimited by parentheses > > "(expression)". Attribute names are delimited by square brackets > > "[ATTRIBUTE]". These names are case sensitive and must match the items > > in the shapefile. For example: EXPRESSION ([POPULATION] > 50000 AND > > '[LANGUAGE]' eq 'FRENCH') ... The following logical operators are > > supported : =,>,<,<=,>=,=,or,and,lt,gt,ge,le,eq. As you might expect > > this level of complexity is slower to process. > > see the '[LANGUAGE]' eq 'FRENCH' bit... that escaped me completely, and > now is noticeable only because I have been educated about it. > > Nonetheless, many thanks, > > pk/ > > On Friday, April 5, 2002, at 07:07 PM, Stephen Woodbridge wrote: > > > Puneet, > > > > You want to use a regular expression so in your mapfile you would say: > > > > CLASSITEM "GIS_KEY" > > CLASS > > EXPRESSION /^foo$|^bar$|^baz$/ > > > > or in php you would say something like: > > > > $oLayer->set("classitem", "GIS_KEY"); > > ... > > $oClass->setexpression("/^foo$|^bar$|^baz$/"); > > > > I haven't tested this but it should be close to this syntax. Give it a > > try and let us know how it goes. > > > > -Steve W. > > > > Puneet Kishor wrote: > >> > >> with the following in my map file... > >> > >> LAYER > >> NAME "parcels_highlight" > >> TYPE polygon > >> DATA parcel > >> STATUS off > >> CLASSITEM "OWNER" > >> CLASS > >> OUTLINECOLOR 255 0 0 > >> COLOR 255 255 0 > >> END > >> TEMPLATE "parcels.php" > >> END > >> > >> The following works fine... > >> > >> $str = "foo"; > >> $classObj->setexpression("\"$str\""); > >> $layerObj->set("status", 1); > >> > >> But I want to do the following, which, needless to say, does not > >> work... > >> > >> $str = "([GIS_KEY] in (\"foo\", \"bar\", \"baz\"))"; > >> $classObj->setexpression("\"$str \""); > >> $layerObj->set("status", 1); > >> > >> In fact, I can't even get the following to work... > >> > >> $str = "([GIS_KEY] eq \"foo\")"; OR > >> $str = "([GIS_KEY] == \"foo\")"; OR > >> $str = "([GIS_KEY] eq 'foo')"; etc. > >> > >> What am I missing here? And if the "in" clause is not supported > >> (doesn't > >> seem to be per the docs), would I need to do the following... > >> > >> $str = "(([GIS_KEY] eq \"foo\") or ([GIS_KEY] eq \"bar\") or > >> ([GIS_KEY] eq > >> \"baz\"))"; > >> > >> Tia, > >> > >> pk/ From lfilak at medinaco.org Mon Apr 8 05:58:38 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Mon, 08 Apr 2002 08:58:38 -0400 Subject: [mapserver-users] MrSid Message-ID: <200204081250.g38Co0Q06563@yogi.medinaco.net> Correct, they are not multi-res however nothing says that you can't create multiple catalogs of multiple resolutions. Dating back to an older post (Ed M.) to the group: if a 1' pixel takes 20MB a 2' pixel only takes 5MB & etc. We did this for TIFF & WLD files using ImageMagick & Perl and produced 2', 4', 8', & 10' pixel versions of our original 1' photography and are very pleased with the result and speed of rendering. The only special thing that needed done during the map creation is to have a minscale & maxscale for the layers so the appropriate layer is displayed. If you can use it and are willing to hack the Perl code that has been written particular to our site let me know and I'll send it to you. Lowell F. The following message was sent by John Hagstrand on Sun, 07 Apr 2002 10:04:55 -0600. > Thanks for your suggestion, Ben. However, correct if I'm wrong, the > GeoTIFF format is not multi-res like MrSid. > John > > > At 07:48 PM 4/6/2002, you wrote: > >On Sat, Apr 06, 2002 at 01:26:14PM -0600, John Hagstrand wrote: > > > Hi, > > > I have a MrSid file I want to display as a layer in MapServer. Does > > anyone > > > have an interface to do that? > > > >I'm new to Mapserver and don't know whether there is a Mapserver > >interface or not--it would be very cool if there is. In the mean > >time... > > > >The MrSid Viewer is available for free download from the LizardTech > >website (http://www.lizardtech.com). The Windows version has the > >ability to export the whole MrSID file or a portion of it as GeoTIFF > >or, I think, TIFF with world files. If you use Linux (as I do) I > >suggest downloading the Windows version and running it under Wine. At > >least that worked well for me. The Unix version of the MrSID viewer > >doesn't have as many features and you can only save the currently > >viewed region. :-( > > > >BTW, there seem to be several different flavors of the viewer for the > >Windows platform. The one you want is the Standalone Viewer and the > >download is 6+ Mb. > > > >Hope this helps, > >Ben > > > >-- > >Ben Logan: ben at wblogan dot net > >OpenPGP Key KeyID: A1ADD1F0 > > > ------------------------------------------------- > John Hagstrand > Interage Research, Inc. > 847 838 5371 > Software Development Consulting for Internet Archive Retrieval > We help archives make knowledge accessible, useful, and relevant for everyone. > http://www.interageresearch.com > From hunt at zedxinc.com Mon Apr 8 10:00:54 2002 From: hunt at zedxinc.com (Aaron D. Hunt) Date: Mon, 8 Apr 2002 10:00:54 -0700 Subject: [mapserver-users] postscript Message-ID: <003c01c1df1e$f23224f0$1805000a@helicity> Are there any plans to have a postscript output from mapserver. Aaron D. Hunt -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at topozone.com Mon Apr 8 07:16:46 2002 From: ed at topozone.com (Ed McNierney) Date: Mon, 08 Apr 2002 10:16:46 -0400 Subject: [mapserver-users] File paths for layer data Message-ID: <13858AA1A74F30419F319ACB66A9D1220E7FBF@mercator.topozone.com> Steve et a. - That's not quite correct. The Web server runs under a user security context, like everything in Windows 2000. If you're running a Web server with a site that permits anonymous user access (as most do), your server will have a LOCAL user account named IUSR_; for example, if the machine is named FOO, then there is a local user account named IUSR_FOO that is used by the server for anonymous access. That means that the MapServer CGI runs as if it were run by the logged-in user IUSR_FOO, and it only has access to things that IUSR_FOO can access. The default setup is for IUSR_FOO to be created as a local machine account, NOT a domain account - it's an account that only exists on the Web server machine. As a result, since it's a local machine account, it has NO ACCESS to network resources. You have to be a domain user to get those. Therefore, you won't be able to see any network data files. You can change the Web server's user account to be a domain user account, and then you can get access to domain resources. Remember that this is a two-edged sword. The reason the default account is a local machine account is to prevent security problems; the default setup only permits access to the local machine, so the risk from a Web attack is minimized. If you change that account to a domain account you potentially expose your entire domain to an attack. There's nothing wrong with that; it just means you are increasing the benefits and increasing the risk, and you need to manage the security situation appropriately. - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Sent: Friday, April 05, 2002 8:21 PM To: Tyler Mitchell Cc: Ryan, Adam; mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] File paths for layer data This could be because the web server process does not have access to the network drives. This could be because of access rights, or it could be because you are using a mapped drive which only exists for you as a user after you log in. Since the web server does not log in it does not have any mapped drives and can only access the local drives. -Steve W. Tyler Mitchell wrote: > > I've had a similar problem Adam, again using MapServ 3.5 on Windows 2000. > I couldn't access data on network/shared drives, only locally. It's been > a while since I tried, but I hope someone else can shed some light on it > for us. Any takers? > > > "Ryan, Adam" > To: Tyler Mitchell , > Sent by: mapserver-users at lists.gis.umn.edu > owner-mapserver-users at lists.g cc: > is.umn.edu Fax to: > Subject: RE: [mapserver-users] File paths for layer data > > 04/05/2002 01:55 PM > > > > Thanks Tyler. > > I'm running MapServer 3.5 on Windows 2000. I'm networked to a handful of > county servers including the web server that my mapserver files are on. > > Adam > > -----Original Message----- > From: Tyler Mitchell [mailto:TMitchell at lignum.com] > Sent: Friday, April 05, 2002 1:13 PM > To: mapserver-users at lists.gis.umn.edu > Cc: aryan at co.linn.or.us > Subject: Re: [mapserver-users] File paths for layer data > > Adam, I had come across similar problems but am not sure if it was only on > the windows platform or not. What is your "setup" - are you using windows, > cygwin, unix and maybe you could tell us what version you are using. > > Tyler > > "Ryan, Adam" > > To: > mapserver-users at lists.gis.umn.edu > Sent by: cc: > > owner-mapserver-users at lists.g Fax to: > > is.umn.edu Subject: > [mapserver-users] File paths for layer data > > 04/05/2002 11:29 AM > > > Hi all, > > > > I'm new at this and on a steep learning curve but I think I'm in love > with > > MapServer. It's so fast and, for the most part, easy to use. > > > > One problem: I want to set 'data' for a layer object in my map file to a > > file on another drive, url, server, etc. I can't get mapserver to access > > any layer files that are outside my server directory. I have images on > > the htm template file that reference other drives and servers so it > > doesn't seem to be a rights or permissions problem. > > > > Any suggestions? > > > > Thanks, > > > > Adam Ryan > > Linn County GIS > > Oregon From woodbri at swoodbridge.com Mon Apr 8 07:17:41 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 08 Apr 2002 10:17:41 -0400 Subject: [mapserver-users] postscript References: <003c01c1df1e$f23224f0$1805000a@helicity> Message-ID: <3CB1A685.8770EF24@swoodbridge.com> Aaron, How do you plan to use this? Do you need dynamically generated postscript? or are you just looking to embed a high quality image in another document? Can you PDF output that you print to a postscript file? -Steve > "Aaron D. Hunt" wrote: > > Are there any plans to have a postscript output from mapserver. > > > Aaron D. Hunt From Chip.Hankley at GASAI.Com Mon Apr 8 07:29:23 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Mon, 8 Apr 2002 09:29:23 -0500 Subject: [mapserver-users] Multiple OFFSITE values Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010AB9E7@postoffice.GASAI.Com> Many thanks to Frank Warmerdam for helping me figure this one out. Basically, there doesn't appear to be anyway to specify more than one OFFSITE value in the mapfile. Ultimately, what he suggested, which worked great, was to use classes to define the colors that I want to show. Anything not specified in a class doesn't render, and is hence transparent. For this set of images, this was fairly simple, since they only contain 13 color (0 - 12). For a more complex set of images (or a less consistent color set), this would be a big pain. If anyone knows how to set a color to be "transparent" outside of the OFFSITE parameter, that would be a cool addition to this. One could specify a range of values as a class and color them as transparent: CLASS EXPRESSION ([pixel] >= 13 AND [pixel] <= 255) COLOR [transparent] #whatever [transparent] is... END For reference purposes, the resulting map file is below: LAYER NAME "DRG" MAXSCALE 500000 STATUS default TILEINDEX "DNR_GeoDISC\quadindx\qdrpw924\qdrppoly.shp" TILEITEM "Location" TYPE RASTER CLASS EXPRESSION ([pixel] = 0) COLOR 0 0 0 END CLASS EXPRESSION ([pixel] = 1) COLOR 255 255 255 END CLASS EXPRESSION ([pixel] = 2) COLOR 0 150 165 END CLASS EXPRESSION ([pixel] = 3) COLOR 206 0 16 END CLASS EXPRESSION ([pixel] = 4) COLOR 132 65 33 END CLASS EXPRESSION ([pixel] = 5) COLOR 206 235 156 END CLASS EXPRESSION ([pixel] = 6) COLOR 140 48 132 END CLASS EXPRESSION ([pixel] = 7) COLOR 255 235 0 END CLASS EXPRESSION ([pixel] = 8) COLOR 165 227 231 END CLASS EXPRESSION ([pixel] = 9) COLOR 255 186 189 END CLASS EXPRESSION ([pixel] = 10) COLOR 222 178 214 END CLASS EXPRESSION ([pixel] = 11) COLOR 214 211 214 END CLASS EXPRESSION ([pixel] = 12) COLOR 206 166 140 END END From ben at wblogan.net Mon Apr 8 08:10:16 2002 From: ben at wblogan.net (Ben Logan) Date: Mon, 8 Apr 2002 11:10:16 -0400 Subject: [mapserver-users] Mapscript and Python: no mapscriptc module. In-Reply-To: <20020408070900.B11620@wblogan.net>; from ben@wblogan.net on Mon, Apr 08, 2002 at 07:09:00AM -0400 References: <20020408070900.B11620@wblogan.net> Message-ID: <20020408111016.A15939@wblogan.net> On Mon, Apr 08, 2002 at 07:09:00AM -0400, Ben Logan wrote: > > I have a feeling this could go on for a while. As you can probably > tell, I don't know too much about building libraries. :) Can anyone > help me out? BTW, I'm using MapServer 3.5 and you can see my system > setup from the errors above. I thought I'd keep adding libraries to ld's commandline until I didn't get undefined symbol messages anymore. I got to ld -o mapscriptcmodule.so mapscriptcmodule.o -shared ../../libmap.a /usr/local/lib/libproj.a /usr/local/lib/libgdal.1.1.so and then when I tried to import the mapscript module, Python gave this message: Python 1.5.2 (#1, Mar 3 2001, 01:35:43) [GCC 2.96 20000731 (Red Hat Linux 7.1 2 on linux-i386 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>> import mapscript Traceback (innermost last): File "", line 1, in ? File "mapscript.py", line 2, in ? import mapscriptc ImportError: (?d at R6/lib/libX11.so.6: shared object not open Any suggestions? Thanks, Ben -- Ben Logan: ben at wblogan dot net OpenPGP Key KeyID: A1ADD1F0 He who has a shady past knows that nice guys finish last. From frank.koormann at intevation.de Mon Apr 8 08:26:42 2002 From: frank.koormann at intevation.de (Frank Koormann) Date: Mon, 8 Apr 2002 17:26:42 +0200 Subject: [mapserver-users] CGI Map changes In-Reply-To: <1V85WUTSTORN4Y75KJTQSMVP3X623Y1V.3cb169f6@rogers> References: <1V85WUTSTORN4Y75KJTQSMVP3X623Y1V.3cb169f6@rogers> Message-ID: <20020408152642.GA23782@intevation.de> Robert, * Robert Crossley (robert at wotzhere.com) [020408 13:24]: > Hi all, > [...] > > One reference said that MapServer is stateless, so does this mean that > once it renders and image it forgets what it has done for that user, > and thus I would assume that it needs to have all parameters that are > different to the Map file defined on each call? > > It would be easy enough for me to test this for one user, but what > about with multiple sessions where each user has a different data > value would require a bit more effort. Well, only the mechanism has to be proven. Once tested it can be used for multiple users: Template substitutions can be used to exchange parameters between cgi-binary and web browser. Something like layer1_data=someshape in the CGI parameter string will be picked up by the mapserver whic in trun will replace any occurence of [layer1_data] in a template by "someshape". On the other hand you may have a look at the SAVEMAP feature (http://mapserver.gis.umn.edu/doc/cgi-reference.html) Therewith you can store a new mapfile (for a session) and only have to ping-pong the mapfile name between server and browser. Regards, Frank -- Frank Koormann Professional Service around Free Software (http://intevation.net/) FreeGIS Project (http://freegis.org/) From pkishor at GeoAnalytics.com Mon Apr 8 09:18:15 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Mon, 8 Apr 2002 11:18:15 -0500 Subject: [mapserver-users] multiple matches in $classObj->setexpressio n Message-ID: good idea. I added a long-ish page at PHPMapScriptMySQLShapeFiles http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptMySQLShapeFiles (got carried away) under a meta heading of DevelopingApplicationsWithMapserver at http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?DevelopingApplicationsWithMapse rver the note about character fields in logical expressions is bold-italics (couldn't figure out a way to color the text red or something using wiki). will add more to it as a complete, step-by-step primer for developing a full app with session management, user auth, etc., as time permits. hope this helps someone. pk/ > -----Original Message----- > From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] > Sent: Monday, April 08, 2002 6:55 AM > To: Puneet Kishor > Cc: Steve Lime; MapServer List (E-mail) > Subject: Re: [mapserver-users] multiple matches in > $classObj->setexpression > > > Puneet, > > You could help everyone if you would do a mini howto page on wiki. > It could be just a bunch of examples of various expressions it a short > explaination of what is important about each. I would then be > easier to > point other people to it in the future. > > Anyway, glad your up and running. > -Steve > > Puneet Kishor wrote: > > > > thanks to sw and sdl, I now know how to do this (will try it out > > tomorrow at work). one thing though... the documentation > makes a very > > cursory mention of this peculiarity without really pointing > it out... > > > > Specifically, I could find only one passing references to attribs in > > shape files at > http://mapserver.gis.umn.edu/doc/mapfile-reference.html > > > > > Logical expressions allow you to build fairly complex > tests based on > > > one or more attributes and therefore are only available with > > > shapefiles. Logical expressions are delimited by parentheses > > > "(expression)". Attribute names are delimited by square brackets > > > "[ATTRIBUTE]". These names are case sensitive and must > match the items > > > in the shapefile. For example: EXPRESSION ([POPULATION] > > 50000 AND > > > '[LANGUAGE]' eq 'FRENCH') ... The following logical operators are > > > supported : =,>,<,<=,>=,=,or,and,lt,gt,ge,le,eq. As you > might expect > > > this level of complexity is slower to process. > > > > see the '[LANGUAGE]' eq 'FRENCH' bit... that escaped me > completely, and > > now is noticeable only because I have been educated about it. > > > > Nonetheless, many thanks, > > > > pk/ > > > > On Friday, April 5, 2002, at 07:07 PM, Stephen Woodbridge wrote: > > > > > Puneet, > > > > > > You want to use a regular expression so in your mapfile > you would say: > > > > > > CLASSITEM "GIS_KEY" > > > CLASS > > > EXPRESSION /^foo$|^bar$|^baz$/ > > > > > > or in php you would say something like: > > > > > > $oLayer->set("classitem", "GIS_KEY"); > > > ... > > > $oClass->setexpression("/^foo$|^bar$|^baz$/"); > > > > > > I haven't tested this but it should be close to this > syntax. Give it a > > > try and let us know how it goes. > > > > > > -Steve W. > > > > > > Puneet Kishor wrote: > > >> > > >> with the following in my map file... > > >> > > >> LAYER > > >> NAME "parcels_highlight" > > >> TYPE polygon > > >> DATA parcel > > >> STATUS off > > >> CLASSITEM "OWNER" > > >> CLASS > > >> OUTLINECOLOR 255 0 0 > > >> COLOR 255 255 0 > > >> END > > >> TEMPLATE "parcels.php" > > >> END > > >> > > >> The following works fine... > > >> > > >> $str = "foo"; > > >> $classObj->setexpression("\"$str\""); > > >> $layerObj->set("status", 1); > > >> > > >> But I want to do the following, which, needless to say, does not > > >> work... > > >> > > >> $str = "([GIS_KEY] in (\"foo\", \"bar\", \"baz\"))"; > > >> $classObj->setexpression("\"$str \""); > > >> $layerObj->set("status", 1); > > >> > > >> In fact, I can't even get the following to work... > > >> > > >> $str = "([GIS_KEY] eq \"foo\")"; OR > > >> $str = "([GIS_KEY] == \"foo\")"; OR > > >> $str = "([GIS_KEY] eq 'foo')"; etc. > > >> > > >> What am I missing here? And if the "in" clause is not supported > > >> (doesn't > > >> seem to be per the docs), would I need to do the following... > > >> > > >> $str = "(([GIS_KEY] eq \"foo\") or ([GIS_KEY] eq \"bar\") or > > >> ([GIS_KEY] eq > > >> \"baz\"))"; > > >> > > >> Tia, > > >> > > >> pk/ > From Doug_Newcomb at fws.gov Mon Apr 8 11:16:10 2002 From: Doug_Newcomb at fws.gov (Doug_Newcomb at fws.gov) Date: Mon, 8 Apr 2002 14:16:10 -0400 Subject: [mapserver-users] PNG raster tiles on mapserver 3.5 Message-ID: Hi Folks, I successfully implimented a raster tile of geotiff files (24k USGS drgs) on an internal web server , and then tried to impliment the same data layer as a png tile ( less hard drrive space available on the planned external server) with both .wld and .pgw files (copied from the tfw files that came with the drgs). The png tile does not display at all. The only difference in the png layer is that I had edited the location item in the dbf file of the shape file generated by gdaltindex (Great tool!) for the tiff image tile so that it now points to "image.png" instead of "image.tif" . Does this need to point to "image.wld"? I am using mapserver 3.5 on a Red Hat 7.2 box with GDAL 1.1.6, Proj-4.4.5. I have tried compiling --without-png , no difference. Doug Newcomb USFWS From cogansco at msu.edu Mon Apr 8 11:50:47 2002 From: cogansco at msu.edu (Scott D Cogan) Date: Mon, 8 Apr 2002 14:50:47 -0400 Subject: [mapserver-users] quickly finding which point on map is nearest to mouse click References: Message-ID: <002d01c1df2e$4c0c03b0$224d0823@whalon6> I have a map with certain lat/lon coordinates marked as sites. I would like users to be able to click on the map and have information for the nearest site become highlighted. To do this, I have converted the mouse click coordinates to lat/lon coordinates which are mapped. Then I am planning on calculating for each site, the distance between the click and the site, and storing the remembering the closest one. Is there a quicker way to do this? Would it be beneficial to use the distanceToPoint function in mapscript? -scott From shussain at atsincorp.com Mon Apr 8 12:02:43 2002 From: shussain at atsincorp.com (Shaik Anwar Hussain) Date: Mon, 8 Apr 2002 15:02:43 -0400 Subject: [mapserver-users] php-dbase replace error Message-ID: <4D25CDA67110D3119FFB0008C707D7A7051F5D@deathstar> Hello List, I am trying to replace the dbase records using php_mapscript. Here is my php code. Its rewriting the records with null values. i want to replace with different values. does any one can help me whats wrong in my code. Where photo is my shapefile name, it has 4 fields. i am using php4.06, mapserver3.5, apache,windows 2000. "; $pamscode = "1"; for($k=0; $k<$numrec; $k++) { $rec = dbase_get_record($dbfile,$k); //echo $rec[0],$rec[1],$rec[2],$rec[3],"
"; if (strtoupper(trim($rec[2])) == strtoupper($pamcode) ) { $f1 = $rec[0]; $f2 = $rec[1]; $f3 = $rec[3]; //echo $f1,$f2,"
",$rec[0].$rec[1].$rec[2]."
"; dbase_replace_record($dbfile, array($f1,$f2,$pamscode,$f3),$k); } } $shapef->free(); dbase_close($dbfile); } // End of the function photo delete # Begining of main program $shpfname1 = "E:/Program Files/Apache Group/Apache/htdocs/php406/data/photo"; $num='170A'; delete_photo($shpfname1,$num); exit; ?> Thanks, Anwar www.atsincorp.com From mckenna at dmsolutions.ca Mon Apr 8 12:47:39 2002 From: mckenna at dmsolutions.ca (Jeff McKenna) Date: Mon, 08 Apr 2002 15:47:39 -0400 Subject: [mapserver-users] php-dbase replace error References: <4D25CDA67110D3119FFB0008C707D7A7051F5D@deathstar> Message-ID: <3CB1F3DB.8083B411@dmsolutions.ca> Hello, There is a known bug in the php4.0.6 dbase_replace_record function. It has been fixed in php4.1.2, and you can get a phpmapscript dll for that version on our site at: http://www2.dmsolutions.on.ca/mapserver/dl/php4.1.2_php_mapscript_36-dev_libwww.zip Jeff Shaik Anwar Hussain wrote: > > Hello List, > > I am trying to replace the dbase records using php_mapscript. > Here is my php code. Its rewriting the records with null values. i want to > replace with different values. does any one can help me whats wrong in my > code. > > Where photo is my shapefile name, it has 4 fields. i am using php4.06, > mapserver3.5, apache,windows 2000. > > > dl('php_mapscript.dll'); > dl("php_dbase.dll"); > dl("php_proj.dll"); > > function delete_photo($shpfname, $pamcode) > { > $shapef = ms_newShapefileObj($shpfname,-2); > $dbfile = dbase_open($shpfname, 2); > > $numrec = dbase_numrecords($dbfile); > $nf = dbase_numfields($dbfile); > > echo $numrec," ",$nf,$pamcode,"
"; > > $pamscode = "1"; > > for($k=0; $k<$numrec; $k++) > { > $rec = dbase_get_record($dbfile,$k); > > //echo $rec[0],$rec[1],$rec[2],$rec[3],"
"; > > if (strtoupper(trim($rec[2])) == strtoupper($pamcode) ) > { > $f1 = $rec[0]; > $f2 = $rec[1]; > $f3 = $rec[3]; > //echo $f1,$f2,"
",$rec[0].$rec[1].$rec[2]."
"; > dbase_replace_record($dbfile, > array($f1,$f2,$pamscode,$f3),$k); > } > > } > > $shapef->free(); > dbase_close($dbfile); > > } // End of the function photo delete > > # Begining of main program > > $shpfname1 = "E:/Program Files/Apache > Group/Apache/htdocs/php406/data/photo"; > $num='170A'; > > delete_photo($shpfname1,$num); > > exit; > ?> > > Thanks, > Anwar > www.atsincorp.com -- Jeff McKenna GIS Specialist DM Solutions Group Inc. http://www.dmsolutions.ca/ From vguzman at bigfoot.com Mon Apr 8 13:05:11 2002 From: vguzman at bigfoot.com (Vladimir =?ISO-8859-1?Q?Guzm=E1n?=) Date: Mon, 08 Apr 2002 15:05:11 -0500 Subject: [mapserver-users] change address Message-ID: <3CB1F7F7.90007@bigfoot.com> Hello list. How do I change my e-mail address in the list? Should I unsubscribe and subscribe again with the new address?. Thank you. -- Vladimir Guzm?n R. ----------------- www.main-task.com From vguzman at bigfoot.com Mon Apr 8 13:22:19 2002 From: vguzman at bigfoot.com (Vladimir =?ISO-8859-1?Q?Guzm=E1n?=) Date: Mon, 08 Apr 2002 15:22:19 -0500 Subject: [mapserver-users] quickly finding which point on map is nearest to mouse click References: <002d01c1df2e$4c0c03b0$224d0823@whalon6> Message-ID: <3CB1FBFB.40602@bigfoot.com> Scott: I've resolved the same situation doing the following with php-mapscript: 1. Get the user's click 2. Get the desired layer 3. Turn it on 4. Create a point Object with the user's click 5. Make a querybypoint, single, and with a medium tolerance. - It will find the nearest point - 6. Create a new shape with the new found point My code looks like this: (If you have questions on this, you can mail me) $layer=$map->getLayerByName("transformadores"); $layer->set("status",1); // To convert pixel coordinates to map coordinates: $factor=($frm["maxx"]-$frm["minx"])/$ancho; $px=$frm["minx"]+($ZOOM_x*$factor); $py=$frm["maxy"]-($ZOOM_y*$factor); // Create the point object: $oPoint = ms_newPointObj(); $oPoint->setxy($px, $py); // Make the query over the layer @$results=$layer->queryByPoint($oPoint,MS_SINGLE,1000); $oRes = $layer->getResult(0); $map->setextent($frm["minx"], $frm["miny"], $frm["maxx"], $frm["maxy"]); // If there is no points: if($oRes=="") printf("There is no points near..."); else{ // Create the shapefile $layer->open($layer->shapepath); $oShape = $layer->getShape($oRes->tileindex,$oRes->shapeindex); $nuevo_id=$oShape->values["A02ID"]; $nueva_long=$oShape->values["A02LONGITU"]; $nueva_lat=$oShape->values["A02LATITUD"]; $shpFname = $CFG->tmppath . "ali_" . session_id(); $shpFile = ms_newShapeFileObj($shpFname, MS_SHP_POINT); $dbfFile = dbase_create($shpFname.".dbf", array(array("ID", "N", 10, 0))); include("funciones_shp.php"); $campos=dbase_numfields($dbfFile); createPoint($nueva_long, $nueva_lat, $nuevo_id, $shpFile, $dbfFile); $shpFile->free(); dbase_close($dbfFile); $shpFname = $CFG->tmppath . "ubi_" . session_id(); $shpFile = ms_newShapeFileObj($shpFname, MS_SHP_POINT); $dbfFile = dbase_create($shpFname.".dbf", array(array("PROG_ID", "N", 5, 0))); $campos=dbase_numfields($dbfFile); createPoint($px, $py, 1, $shpFile, $dbfFile); $shpFile->free(); dbase_close($dbfFile); } Hope this helps. -- Vladimir Guzm?n R. ----------------- www.main-task.com Scott D Cogan wrote: > I have a map with certain lat/lon coordinates marked as sites. I would like > users to be able to click on the map and have information for the nearest > site become highlighted. To do this, I have converted the mouse click > coordinates to lat/lon coordinates which are mapped. Then I am planning on > calculating for each site, the distance between the click and the site, and > storing the remembering the closest one. Is there a quicker way to do this? > Would it be beneficial to use the distanceToPoint function in mapscript? > -scott > > > From lfilak at medinaco.org Mon Apr 8 14:18:27 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Mon, 08 Apr 2002 17:18:27 -0400 Subject: [mapserver-users] quickly finding which point on map is nearest to mouse click Message-ID: <200204082109.g38L9lQ12876@yogi.medinaco.net> Sounds to me like your on the right path. If you use a buffer on the pick point to select any nearby points and then use distanceToPoint to decide which is closest. Lowell F. The following message was sent by "Scott D Cogan" on Mon, 8 Apr 2002 14:50:47 -0400. > I have a map with certain lat/lon coordinates marked as sites. I would like > users to be able to click on the map and have information for the nearest > site become highlighted. To do this, I have converted the mouse click > coordinates to lat/lon coordinates which are mapped. Then I am planning on > calculating for each site, the distance between the click and the site, and > storing the remembering the closest one. Is there a quicker way to do this? > Would it be beneficial to use the distanceToPoint function in mapscript? > -scott From pushkar at ERC.MsState.Edu Mon Apr 8 14:46:28 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Mon, 8 Apr 2002 16:46:28 -0500 (CDT) Subject: [mapserver-users] setlayersdrawingorder() Message-ID: hi, The above is a function name for map object, there is also getlayersdrawingorder(). I used getlayers... successfully but when I use setlayers.... I get the foll. error: Fatal error: Call to undefined function: setlayersdrawingorder() in /rstc/user1/erc/pushkar/gis/mcrgdl/view3.php on line 75 Here is my code: $layerOrder = array (); $layerOrder = $map->getlayersdrawingorder(); $noOfLayers = count($layerOrder); $tmp = $layerOrder[$noOfLayers-1]; $layerOrder[1] = $tmp; $layerOrder[$noOfLayers-1] = 1; /* to debug foreach($layerOrder as $val) { echo "$val "; } echo " and "; echo is_array($layerOrder); */ $r = $map->setlayersdrawingorder($layerOrder); These functions were not documented under mapscript I found them in the mailing list archive What I am trying to do is change the order of layers being drawn, can anybody give me the algorithm to do this and the related functions, I am new to mapscript. Thanks, ------------------------------------------------------------------------------ PUSHKAR S. PRADHAN Research Assistant MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------------ From pushkar at ERC.MsState.Edu Mon Apr 8 14:54:04 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Mon, 8 Apr 2002 16:54:04 -0500 (CDT) Subject: [mapserver-users] erdas img files Message-ID: Hi, We would like to display img files and already doing so using gdal compiled with mapserv. However we have multispectral img files with say 7 or more bands. We want to be able to display the bands we choose e.g. we should be able to say: band 2 - R band 4 - G band 7 - B Is this possible, if so where can I find more info. on this? Thanks, ------------------------------------------------------------------------------ PUSHKAR S. PRADHAN Research Assistant MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------------ From robert at wotzhere.com Mon Apr 8 16:52:53 2002 From: robert at wotzhere.com (Robert Crossley) Date: Tue, 09 Apr 2002 09:52:53 +1000 Subject: [mapserver-users] SUMM: CGI Map changes and question In-Reply-To: <20020408152642.GA23782@intevation.de> Message-ID: Thanks for your replies. This is an interesting experience participating in a list as a complete newbie. Form the replies, I understand that Mapserver doesn't maintain knowledge of each users current state, so it means that any changes to a map template need to be made for each call. No great problem. Alternatively I could use the SaveMap call to save the current settings in a temporary Map file for use in that user-session. At one point I thought I would have to generate the Map file dynamically prior to calling MapServer, so both of these options are much slicker. I thought that other web servers like MapExtreme and ARCIMS spawned new instances for a user/ session and built on previous changes, but thus had the potential to bog down under load. MapServer's stateless approach avoids this load, but does it have the disadvantage that it needs to redo operations like filters each time? My app has about 1500 farmers who each want to look at only their farm. There are 3 master tables of farm data: paddocks, harvested areas and labels, each with about ~ 30,000 records. Each record in these tables is tagged with the farm number. I have been able to change mapfile data parameters using a URL OK, so I can allow each farmer to look at only their data by pre-processing the master table and splitting it into separate farm tables that have the farm number as part of the file name, and changing the data reference for the farm layer for each farmer at run-time. Another option is to filter the master table in MapServer and change the filter string based on farm number. While the first option is messy terms of the number of files, it is fast. The filter option looks neater, but I am cautious that it will load the server substantially when a large number of farmers are using it as I gather that the filter has to be applied in each call. Does anyone have any comments on the performance of filters and the load it places on the server? The 3 master shape files are about 9MB each versus about < 10KB each for the shape files for each farm. Thanks R > Robert Crossley Robert Crossley & Associates 9 Short St New Brighton NSW 2483 AUSTRALIA P: 02 6680 1309 F: New Connection M: 0419 718 642 E: robert at wotzhere.com From steve.lime at dnr.state.mn.us Mon Apr 8 21:49:48 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Mon, 08 Apr 2002 23:49:48 -0500 Subject: [mapserver-users] Fwd: PostGIS problem.. Message-ID: -------------- next part -------------- An embedded message was scrubbed... From: "Brian Tomaszewski" Subject: PostGIS problem.. Date: Mon, 8 Apr 2002 20:45:06 -0400 Size: 1982 URL: From stepan.kafka at centrum.cz Mon Apr 8 23:25:46 2002 From: stepan.kafka at centrum.cz (Stepan Kafka) Date: Tue, 9 Apr 2002 08:25:46 +0200 Subject: [mapserver-users] php-dbase replace error In-Reply-To: <4D25CDA67110D3119FFB0008C707D7A7051F5D@deathstar> Message-ID: <000401c1df8f$625b1be0$7e3c2fc3@HSGIS> It is known error in the php-dbase modul. You have two possibilities: 1. patch the current dbase.c code according to attached document and recompile php. 2. use newer version of PHP where this error has been already fixed (PHP >= 4.1.) Stepan Kafka > -----P?vodn? zpr?va----- > Od: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]za u?ivatele Shaik Anwar > Hussain > Odesl?no: 8. dubna 2002 21:03 > Komu: Mapserver-Users (E-mail) > Kopie: Ben Lewis > P?edm?t: [mapserver-users] php-dbase replace error > > > Hello List, > > I am trying to replace the dbase records using php_mapscript. > Here is my php code. Its rewriting the records with null values. i want to > replace with different values. does any one can help me whats wrong in my > code. > > Where photo is my shapefile name, it has 4 fields. i am using php4.06, > mapserver3.5, apache,windows 2000. > > > dl('php_mapscript.dll'); > dl("php_dbase.dll"); > dl("php_proj.dll"); > > > function delete_photo($shpfname, $pamcode) > { > $shapef = ms_newShapefileObj($shpfname,-2); > $dbfile = dbase_open($shpfname, 2); > > $numrec = dbase_numrecords($dbfile); > $nf = dbase_numfields($dbfile); > > echo $numrec," ",$nf,$pamcode,"
"; > > $pamscode = "1"; > > for($k=0; $k<$numrec; $k++) > { > $rec = dbase_get_record($dbfile,$k); > > //echo $rec[0],$rec[1],$rec[2],$rec[3],"
"; > > if (strtoupper(trim($rec[2])) == strtoupper($pamcode) ) > { > $f1 = $rec[0]; > $f2 = $rec[1]; > $f3 = $rec[3]; > //echo $f1,$f2,"
",$rec[0].$rec[1].$rec[2]."
"; > dbase_replace_record($dbfile, > array($f1,$f2,$pamscode,$f3),$k); > } > > } > > $shapef->free(); > dbase_close($dbfile); > > } // End of the function photo delete > > > > # Begining of main program > > > > $shpfname1 = "E:/Program Files/Apache > Group/Apache/htdocs/php406/data/photo"; > $num='170A'; > > delete_photo($shpfname1,$num); > > exit; > ?> > > > Thanks, > Anwar > www.atsincorp.com > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.achtzehn at cui.de Tue Apr 9 01:36:02 2002 From: m.achtzehn at cui.de (Michael Achtzehn) Date: Tue, 9 Apr 2002 10:36:02 +0200 Subject: [mapserver-users] unsubscribe Message-ID: <000f01c1dfa1$95e07b10$fe78a8c0@MAchtzehn> unsubscribe From m.spring at gmx.de Tue Apr 9 03:43:03 2002 From: m.spring at gmx.de (Markus Spring) Date: 09 Apr 2002 12:43:03 +0200 Subject: [mapserver-users] splined text Message-ID: Hi list, beeing confronted again with mapobjects mapping facilities I saw that they have very nice splined text. As far as I know this is not possible with mapserver. Would this be something for a feature request? Markus From werner at spatialdimension.co.za Tue Apr 9 03:47:01 2002 From: werner at spatialdimension.co.za (Werner du Plessis) Date: Tue, 9 Apr 2002 12:47:01 +0200 Subject: [mapserver-users] unsubscribe Message-ID: <89E3039EC5D3BF4C9A74E4B997AC4969185B2F@mscpt-ser02.minserv.co.za> unsubscribe -------------- next part -------------- An HTML attachment was scrubbed... URL: From shpr at libero.it Tue Apr 9 04:44:23 2002 From: shpr at libero.it (Stefano Bonnin) Date: Tue, 9 Apr 2002 13:44:23 +0200 Subject: [mapserver-users] Mapserver and Windows Message-ID: <003801c1dfbb$e56d2ba0$0601a8c0@comai.loc> Hi, I have a simple question: which advantages I have if I use mapserver in a unix environment instead in a windows enviroment? In other words, are there more disadvantage if I use a windows environment (instead unix)? Thanks --- Outgoing mail is certified Virus Free. (FLASHH!) Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.343 / Virus Database: 190 - Release Date: 22/03/02 From lfilak at medinaco.org Tue Apr 9 05:40:57 2002 From: lfilak at medinaco.org (Lowell.Filak) Date: Tue, 9 Apr 2002 08:40:57 -0400 (EDT) Subject: [mapserver-users] SUMM: CGI Map changes and question In-Reply-To: Message-ID: What if your master shapefile(s) where created as a tile index that pointed to the individual farm shapefiles. If you included an item in the tile index for the farm number, you could set the index as a normal polygon layer and query against that item to quickly set the extents for a particular farm and then also have a layer that uses the index as a true tile index which would then point to the shapefiles of the individual farms. When doing a spatial query the tile index will limit the query to only the individual farm (roughly depending on shape) and an attribute query could be forced to query only the shapefile for a particular farm by setting the data for the layer to the individual shapefile that holds data for that farm. That should be less messy and still increase the speed. Lowell F. On Tue, 9 Apr 2002, Robert Crossley wrote: > > Thanks for your replies. This is an interesting experience participating in a list as a complete newbie. > > Form the replies, I understand that Mapserver doesn't maintain knowledge of each users current state, so it means that any changes to a map template need to be made for > each call. No great problem. Alternatively I could use the SaveMap call to save the current settings in a temporary Map file for use in that user-session. At one point I thought I > would have to generate the Map file dynamically prior to calling MapServer, so both of these options are much slicker. > > I thought that other web servers like MapExtreme and ARCIMS spawned new instances for a user/ session and built on previous changes, but thus had the potential to bog > down under load. MapServer's stateless approach avoids this load, but does it have the disadvantage that it needs to redo operations like filters each time? > > My app has about 1500 farmers who each want to look at only their farm. There are 3 master tables of farm data: paddocks, harvested areas and labels, each with about ~ > 30,000 records. Each record in these tables is tagged with the farm number. > > I have been able to change mapfile data parameters using a URL OK, so I can allow each farmer to look at only their data by pre-processing the master table and splitting it into > separate farm tables that have the farm number as part of the file name, and changing the data reference for the farm layer for each farmer at run-time. > > Another option is to filter the master table in MapServer and change the filter string based on farm number. > > While the first option is messy terms of the number of files, it is fast. The filter option looks neater, but I am cautious that it will load the server substantially when a large number > of farmers are using it as I gather that the filter has to be applied in each call. > > Does anyone have any comments on the performance of filters and the load it places on the server? The 3 master shape files are about 9MB each versus about < 10KB each > for the shape files for each farm. > > Thanks > > R > > > > > > Robert Crossley > Robert Crossley & Associates > 9 Short St > New Brighton NSW 2483 > AUSTRALIA > > P: 02 6680 1309 > F: New Connection > M: 0419 718 642 > E: robert at wotzhere.com > > > From raanders at acm.org Tue Apr 9 06:09:50 2002 From: raanders at acm.org (raanders at acm.org) Date: Tue, 9 Apr 2002 06:09:50 -0700 (PDT) Subject: [mapserver-users] Fwd: PostGIS problem.. In-Reply-To: Message-ID: On Mon, 8 Apr 2002, Steve Lime wrote: [A forwarded message] Most probably your PostgreSQL database doesn't have PostGIS installed. Rod -- Why is it so easy to throw caution to the wind. Shouldn't it be heavier and shaped like an anvil? Jon Anderson From pagameba at magma.ca Tue Apr 9 06:44:07 2002 From: pagameba at magma.ca (Paul Spencer) Date: Tue, 9 Apr 2002 09:44:07 -0400 Subject: [mapserver-users] setlayersdrawingorder() In-Reply-To: Message-ID: <006201c1dfcc$9f6edd90$a302a8c0@wizard> It seems to me that your php_mapscript is missing the function setlayersdrawingorder ... we are using this function in php_mapscript (with both PHP 4.0.6 and PHP 4.1.2), it was added to cvs around October/November last year so make sure that you have a recent mapscript/mapserver. Check the output of phpinfo(); after dl("php_mapscript.so"); to see what the date and version numbers are Paul Spencer Project Management & Application Development DM Solutions Group Inc http://www2.dmsolutions.ca -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of Pushkar Pradhan Sent: Monday, April 08, 2002 4:46 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] setlayersdrawingorder() hi, The above is a function name for map object, there is also getlayersdrawingorder(). I used getlayers... successfully but when I use setlayers.... I get the foll. error: Fatal error: Call to undefined function: setlayersdrawingorder() in /rstc/user1/erc/pushkar/gis/mcrgdl/view3.php on line 75 Here is my code: $layerOrder = array (); $layerOrder = $map->getlayersdrawingorder(); $noOfLayers = count($layerOrder); $tmp = $layerOrder[$noOfLayers-1]; $layerOrder[1] = $tmp; $layerOrder[$noOfLayers-1] = 1; /* to debug foreach($layerOrder as $val) { echo "$val "; } echo " and "; echo is_array($layerOrder); */ $r = $map->setlayersdrawingorder($layerOrder); These functions were not documented under mapscript I found them in the mailing list archive What I am trying to do is change the order of layers being drawn, can anybody give me the algorithm to do this and the related functions, I am new to mapscript. Thanks, ------------------------------------------------------------------------ ------ PUSHKAR S. PRADHAN Research Assistant MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------ ------ From Michael.Smith at erdc.usace.army.mil Tue Apr 9 07:10:05 2002 From: Michael.Smith at erdc.usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Tue, 9 Apr 2002 10:10:05 -0400 Subject: [mapserver-users] Design Changes (or Bug) in Mapscript 3.6 (development)? Message-ID: <048FBD219330D211B47000A0C9B3BAFD026273CA@crl02.crrel.usace.army.mil> I'm trying to setup the imsemu perl script with nightly (Apr 09) build of mapserver and I'm getting the following error: [08:46:10] Query: ServiceName=SPL%20GIS%20Test&CustomStream=False [08:46:10] Service: /htdocs/mikes/la_dist/latest.map [08:46:10] XML: [08:46:10] Doc: ARRAY(0x8499afc) Undefined subroutine &mapscriptc::mapObj_projection_get called at /usr/local/lib/perl5/site_perl/5.6.1/i686-linux/mapscript.pm line 2588, <> line 1. This seems to stem from the fact that Class:mapObj in mapscript.pm nolonger includes a projectionobj in its BlessedMembers -From Nightly build ############# Class : mapObj ############## package mapObj; @ISA = qw( mapscript ); %OWNER = (); %BLESSEDMEMBERS = ( layers => 'layerObj', labelcache => 'labelCacheObj', extent => 'rectObj', imagecolor => 'colorObj', latlon => 'projectionObj', reference => 'referenceMapObj', scalebar => 'scalebarObj', legend => 'legendObj', web => 'webObj', ); from MapServer 3.5 Build ############# Class : mapObj ############## package mapObj; @ISA = qw( mapscript ); %OWNER = (); %BLESSEDMEMBERS = ( layers => 'layerObj', labelcache => 'labelCacheObj', extent => 'rectObj', imagecolor => 'colorObj', projection => 'projectionObj', reference => 'referenceMapObj', scalebar => 'scalebarObj', legend => 'legendObj', querymap => 'queryMapObj', web => 'webObj', ); Is this being intentionally left out and the perl script for ArcIMS emulation need to be rewritten, or is my setup not quite right in some other area? I'd install 3.5 of mapscript but that means downgrading other files (PHP) to previous versions. Any other ideas. Mike Smith email: michael.smith at erdc.usace.army.mil RSGISC ERDC - CRREL Hanover, NH 03755 (603) 646-4765 From woodbri at swoodbridge.com Tue Apr 9 07:31:27 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 09 Apr 2002 10:31:27 -0400 Subject: [mapserver-users] splined text References: Message-ID: <3CB2FB3F.2436FD2C@swoodbridge.com> I believe this has already been requested. I sent some info to Steve Lime a while back on a possible way to do this, but I don't know where or if it is his queue. You might want to check and see if it is in bugzilla, -Steve W Markus Spring wrote: > > Hi list, > > beeing confronted again with mapobjects mapping facilities I saw that they have very nice splined text. > > As far as I know this is not possible with mapserver. Would this be something for a feature request? > > Markus From twan at twansoft.com Tue Apr 9 07:31:38 2002 From: twan at twansoft.com (Twan Kogels) Date: Tue, 09 Apr 2002 16:31:38 +0200 Subject: [mapserver-users] Advice requested: CGI Message-ID: <5.0.0.25.2.20020409162149.01991990@pop3.wish.nl> Hello, I've got a server online with mapserver 3.5 (stable release) and php4.0.x. I've installed php as DSO module in apache. Yesterday the systemadmin noticed that the current version of php4 has a major bug (the famous upload bug). So he wants to upgrade php4 to php4.1.2. Today i downloaded the nightly package of mapserver and php4.1.2 and installed everything local. php is now installed as CGI, but this is not ideal, cause my other php scripts are executing slow when accessed with a HTTP/1.1 browser. For example: ===begin.php=== test ============ ===pagina.php=== ============== When you click on the "test" link in "begin.php" it takes a whopping 6 seconds to execute when using a HTTP/1.1 browser (HTTP/1.0 goes smoothly). What should i do? I can't take the major performance hit on my scripts, i also can't keep a server with a major bug online. Best regards, - Twan -- http://www.twansoft.com From Andrew-wn.Chan at corp.sunday.com Tue Apr 9 07:12:42 2002 From: Andrew-wn.Chan at corp.sunday.com (Andrew, Chan Wing Nin) Date: Tue, 9 Apr 2002 22:12:42 +0800 Subject: [mapserver-users] How to add a symbol and a text dynamically onto a map? Message-ID: <942EFBC0CC0ED61186890008C7733BED929732@exchan01> I am trying to add a symbol (say, a filled circle) and a text dynamically onto a map with provided lat-long. Can I do that without using mapscript? Can I do that by CGI calls? I am very new to Mapserver and am sorry if this question is trivial. Thanks for helping Regs, Andrew From woodbri at swoodbridge.com Tue Apr 9 07:55:04 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 09 Apr 2002 10:55:04 -0400 Subject: [mapserver-users] Advice requested: CGI References: <5.0.0.25.2.20020409162149.01991990@pop3.wish.nl> Message-ID: <3CB300C8.E0E2B104@swoodbridge.com> Twan, You can have BOTH a DSO module for your regular scripts and a CGI for mapserver. Install PHP without mapscript as DSO module. Build PHP CGI with mapscript and copy it to the /cgi-bin directory Change the extension for mapscript files to something like .php4 or .phtml and configure Apache to run them as CGI I think there is more info on wiki and the list archives. -Steve Twan Kogels wrote: > > Hello, > > I've got a server online with mapserver 3.5 (stable release) and php4.0.x. > I've installed php as DSO module in apache. Yesterday the systemadmin > noticed that the current version of php4 has a major bug (the famous upload > bug). So he wants to upgrade php4 to php4.1.2. > > Today i downloaded the nightly package of mapserver and php4.1.2 and > installed everything local. php is now installed as CGI, but this is not > ideal, cause my other php scripts are executing slow when accessed with a > HTTP/1.1 browser. For example: > ===begin.php=== > #!/usr/local/apache/cgi-bin/php > if($todo=="go") > { > header("Location: pagina.php"); > exit; > } > ?> > test > ============ > > ===pagina.php=== > #!/usr/local/apache/cgi-bin/php > header("Location: begin.php"); > exit; > ?> > ============== > When you click on the "test" link in "begin.php" it takes a whopping 6 > seconds to execute when using a HTTP/1.1 browser (HTTP/1.0 goes smoothly). > > What should i do? I can't take the major performance hit on my scripts, i > also can't keep a server with a major bug online. > > Best regards, > - Twan > > -- > http://www.twansoft.com From Steffen_Macke at dorsch.com.jo Tue Apr 9 08:35:04 2002 From: Steffen_Macke at dorsch.com.jo (Steffen_Macke at dorsch.com.jo) Date: Tue, 9 Apr 2002 17:35:04 +0200 Subject: [mapserver-users] PHP Mapscript and Postgis OID Message-ID: Dear mapserver users, is there a way to obtain the OID(s) of the selected features when using spatial queries (e.g. the GMap identify tool) in PHP mapscript? I tried to specifiy "OID" in "RESULT_FIELDS" metadata entry, but nothing was returned (other fields are returned just fine). This would make it easy to edit feature attributes using the PHP Postgresql functions. Thank You Steffen Macke From TMitchell at lignum.com Tue Apr 9 08:30:02 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Tue, 9 Apr 2002 08:30:02 -0700 Subject: [mapserver-users] Fwd: PostGIS problem.. Message-ID: I have the exact same problem. I was able to insert shape data into my database though - doesn't that mean things are working okay at that end. I'm able to query the table okay too from psql. Has anyone else built the current CVS and experienced the same problem? Tyler "Steve Lime" To: Sent by: cc: owner-mapserver-users at lists.g Fax to: is.umn.edu Subject: [mapserver-users] Fwd: PostGIS problem.. 04/08/2002 09:49 PM ----- Message from "Brian Tomaszewski" on Mon, 8 Apr 2002 20:45:06 -0400 ----- To: Subject: PostGIS problem.. Hello Does anyone out there have any info on what might cause: msPOSTGISLayerOpen(): Query error. msPOSTGISLayerOpen called but unimplemented! I complied Mapserver 3.5 --with postGIS, and the rest of it is working fine, except when I try to add the postGIS layer Here is my map file snippet: LAYER CONNECTIONTYPE postgis NAME "river" CONNECTION "user=postgresql password=XXXXX dbname=gis host=192.168.1.101 port=5432" DATA "the_geom from genesse_river" STATUS ON TYPE LINE CLASS #NAME "RIVER" COLOR 205 92 82 END END Thanks you in advance for the help. I will send more info if need be. Brian Tomaszewski From TMitchell at lignum.com Tue Apr 9 08:33:56 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Tue, 9 Apr 2002 08:33:56 -0700 Subject: [mapserver-users] Mapserver and Windows Message-ID: The only three disadvantages I have to deal with are: -Buying a server with Windows 2000 usually costs more. -For some things you have to purchase software in order to compile or build your own mapserver, etc. executables on Windows. -One image format (ECW) that we use requires a software developers kit (SDK) to run within MapServer with GDAL and the SDK is only available for Windows and Solaris at present. Tyler "Stefano Bonnin" To: Sent by: cc: owner-mapserver-users at lists.g Fax to: is.umn.edu Subject: [mapserver-users] Mapserver and Windows 04/09/2002 04:44 AM Hi, I have a simple question: which advantages I have if I use mapserver in a unix environment instead in a windows enviroment? In other words, are there more disadvantage if I use a windows environment (instead unix)? Thanks --- Outgoing mail is certified Virus Free. (FLASHH!) Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.343 / Virus Database: 190 - Release Date: 22/03/02 From lfilak at medinaco.org Tue Apr 9 08:35:07 2002 From: lfilak at medinaco.org (Lowell.Filak) Date: Tue, 9 Apr 2002 11:35:07 -0400 (EDT) Subject: [mapserver-users] Mapserver and Windows In-Reply-To: <003801c1dfbb$e56d2ba0$0601a8c0@comai.loc> Message-ID: Our experience has been that: 1) Linux is cheaper if not altogether free. 2) Apache, Perl, libtiff, gd, PHP is usually installed as part of the system and if it isn't it seems to install easier than on other platforms. 3) A lot of the system commands built into *n*x are not as readily available on other platforms, ie. find & cron. Which may not seem like much to start with but sure helps when deleting those pesky temporary files. I would suspect there is a work-a-round or "add-on" that can be purchased to fix some of the above situations, however the more I work with it the more I realize how much is built-into the system that I take for granted. My $0.02 Lowell F. On Tue, 9 Apr 2002, Stefano Bonnin wrote: > Hi, > > I have a simple question: which advantages I have if I use mapserver in a > unix environment instead in a windows enviroment? > > In other words, are there more disadvantage if I use a windows environment > (instead unix)? > > Thanks > > > --- > Outgoing mail is certified Virus Free. (FLASHH!) > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.343 / Virus Database: 190 - Release Date: 22/03/02 > From ed at topozone.com Tue Apr 9 09:04:58 2002 From: ed at topozone.com (Ed McNierney) Date: Tue, 09 Apr 2002 12:04:58 -0400 Subject: [mapserver-users] Mapserver and Windows Message-ID: <13858AA1A74F30419F319ACB66A9D1220E7FD2@mercator.topozone.com> Stefano - A LOT depends on what operating systems you are experienced with and able to support. As has been mentioned, Windows doesn't include many of the development tools that come with Unix. But if you are already a Windows operation you're going to have those tools already. If you don't, it's not worth buying and learning them. The skill and expertise associated with running either Windows or Unix is VERY important for any Web server operation. If you know how to use and manage one system better than the other, that's likely to be the better choice. We run MapServer on Linux and Windows 2000, and they're mostly (in my opinion) just different. Each has advantages and disadvantages and neither one stands out as clearly better than the other. - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Stefano Bonnin [mailto:shpr at libero.it] Sent: Tuesday, April 09, 2002 7:44 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Mapserver and Windows Hi, I have a simple question: which advantages I have if I use mapserver in a unix environment instead in a windows enviroment? In other words, are there more disadvantage if I use a windows environment (instead unix)? Thanks --- Outgoing mail is certified Virus Free. (FLASHH!) Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.343 / Virus Database: 190 - Release Date: 22/03/02 From pgigoux at munistgo.cl Tue Apr 9 09:31:18 2002 From: pgigoux at munistgo.cl (Patricio Gigoux) Date: Tue, 9 Apr 2002 12:31:18 -0400 Subject: [mapserver-users] setextent Message-ID: <200204091631.g39GVQ402424@localhost.localdomain> Can somebody say me? why the next or what is my wrong $map->setextent($extent2_to_set[0],$extent2_to_set[1],$extent2_to_set[2],$extent2_to_set[3]); where: $extent2_to_set[0]=342733 $extent2_to_set[1]=6295000 $extent2_to_set[2]=349772 $extent2_to_set[3]=6300000 but $map->extent->minx=342733 $map->extent->miny=6293979.345 $map->extent->maxx=349772 $map->extent->maxy=6301020.655 Thank in advance Patricio From TMitchell at lignum.com Tue Apr 9 09:50:00 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Tue, 9 Apr 2002 09:50:00 -0700 Subject: [mapserver-users] How to add a symbol and a text dynamically onto a map? Message-ID: Hi Andrew, This link may help you: http://mapserver.gis.umn.edu/doc/cgi-reference.html "Andrew, Chan Wing Nin" Sent by: cc: owner-mapserver-users at lists.g Fax to: is.umn.edu Subject: [mapserver-users] How to add a symbol and a text dynamically onto a map? 04/09/2002 07:12 AM I am trying to add a symbol (say, a filled circle) and a text dynamically onto a map with provided lat-long. Can I do that without using mapscript? Can I do that by CGI calls? I am very new to Mapserver and am sorry if this question is trivial. Thanks for helping Regs, Andrew From pkishor at GeoAnalytics.com Tue Apr 9 10:01:53 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Tue, 9 Apr 2002 12:01:53 -0500 Subject: [mapserver-users] Mapserver and Windows Message-ID: ed makes the most sensible points here... there are a couple of issues though... and since no one else has mentioned them, I am wondering if I am wrong in assuming thus -- - If you want to use Perl/Mapscript, it has not been known to compile and run well on Windows. - If you want to use PHP/Mapscript, you have to make sure your Apache is capable of dynamically loading the php_mapscript.dll... in most cases (at least that's what I did), one just grabs the pre-built Apache binary from apache.org website, and that is built so it can't load dlls dynamically. and just to counter one of ed's assumptions... we are a primarily windows operation, however, I think only one machine in the entire company has the C compiler loaded. All *nix boxes by default have the compilers installed. my mapserver is running on a red hat box, and I do my application development on a Windoze 2k connected to the mapserver box that is sharing its drives using Samba. I use jEdit (from jedit.org) for development, and I can take the scripts home and work seamlessly on my iBook at home using jedit. > -----Original Message----- > From: Ed McNierney [mailto:ed at topozone.com] > Sent: Tuesday, April 09, 2002 11:05 AM > To: Stefano Bonnin; mapserver-users at lists.gis.umn.edu > Subject: RE: [mapserver-users] Mapserver and Windows > > > Stefano - > > A LOT depends on what operating systems you are experienced > with and able to support. As has been mentioned, Windows > doesn't include many of the development tools that come with > Unix. But if you are already a Windows operation you're > going to have those tools already. If you don't, it's not > worth buying and learning them. > > The skill and expertise associated with running either > Windows or Unix is VERY important for any Web server > operation. If you know how to use and manage one system > better than the other, that's likely to be the better choice. > > We run MapServer on Linux and Windows 2000, and they're > mostly (in my opinion) just different. Each has advantages > and disadvantages and neither one stands out as clearly > better than the other. > > - Ed > > Ed McNierney > Chief Mapmaker > TopoZone.com > ed at topozone.com > (978) 251-4242 > > > -----Original Message----- > From: Stefano Bonnin [mailto:shpr at libero.it] > Sent: Tuesday, April 09, 2002 7:44 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] Mapserver and Windows > > > Hi, > > I have a simple question: which advantages I have if I use > mapserver in a > unix environment instead in a windows enviroment? > > In other words, are there more disadvantage if I use a > windows environment > (instead unix)? > > Thanks > > > --- > Outgoing mail is certified Virus Free. (FLASHH!) > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.343 / Virus Database: 190 - Release Date: 22/03/02 > From erwin at perik.nu Tue Apr 9 11:48:30 2002 From: erwin at perik.nu (E Perik) Date: Tue, 9 Apr 2002 20:48:30 +0200 Subject: [mapserver-users] setextent In-Reply-To: <200204091631.g39GVQ402424@localhost.localdomain> Message-ID: <003601c1dff7$269a7f20$967ba8c0@xp> Hi Patricio, Think that your width/height ratio is different then the one in your map-file, so it will be 'adjusted' to that ratio. Also read the following: http://mapserver.gis.umn.edu/wilma/mapserver-users/0111/msg00111.html Erwin -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of Patricio Gigoux Sent: Tuesday, April 09, 2002 6:31 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] setextent Can somebody say me? why the next or what is my wrong $map->setextent($extent2_to_set[0],$extent2_to_set[1],$extent2_to_set[2] ,$extent2_to_set[3]); where: $extent2_to_set[0]=342733 $extent2_to_set[1]=6295000 $extent2_to_set[2]=349772 $extent2_to_set[3]=6300000 but $map->extent->minx=342733 $map->extent->miny=6293979.345 $map->extent->maxx=349772 $map->extent->maxy=6301020.655 Thank in advance Patricio From dblasby at refractions.net Tue Apr 9 11:57:11 2002 From: dblasby at refractions.net (Dave Blasby) Date: Tue, 09 Apr 2002 11:57:11 -0700 Subject: [mapserver-users] Fwd: PostGIS problem.. References: Message-ID: <3CB33987.2D11CCD7@refractions.net> Does anyone out there have any info on what might cause: > > msPOSTGISLayerOpen(): Query error. msPOSTGISLayerOpen called but > unimplemented! > > I complied Mapserver 3.5 --with postGIS, and the rest of it is working fine, > except when I try to add the postGIS layer This happens when you havent compiled mapserver without postgis support. You have to explictly tell mapserver to add in support. When you "./configure", you should do it like: ./configure --with-postgis=/usr/bin/pg_config Your pg_config program maybe in a different location. pg_config tells mapserver where the postgresql include and lib directories are. You should check your configure log and see if you specified where pg_config is correctly and that configure found it sucessfully. dave From pushkar at ERC.MsState.Edu Tue Apr 9 11:56:18 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Tue, 9 Apr 2002 13:56:18 -0500 (CDT) Subject: [mapserver-users] extents of the map, query in php mapscript Message-ID: Hi all, I am trying to query my maps using php/mapscript. I am using the function GMapPix2Geo to convert the mouse coords. clicked to georef. coords. However the conv. coordinates of the locn. clicked is different from those shown in arcview. How do I choose the extent of the map, I searched the archives but didn't find any. Right now I go to arcview and put my mouse on the farthest positions of the shapefile, and write down the values arcview displays on the top right. Thanks, -Pushkar S. Pradhan From woodbri at swoodbridge.com Tue Apr 9 12:22:38 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 09 Apr 2002 15:22:38 -0400 Subject: [mapserver-users] extents of the map, query in php mapscript References: Message-ID: <3CB33F7E.39D88029@swoodbridge.com> Pushkar, It is very important that you match the aspect ratio of your map extents to the aspect ratio of the image. For example on my map at http://swoodbridge.com/web2/nmap which has the whole world displayed which everyone knows is EXTENT -180 -90 180 90 and my image is 600X600 so what to we have: 360 600 --- is to --- or 2 to 1 this is BAD 180 600 the aspect ratio need to match! so I changed my map to EXTENT -180 -180 180 180 so 360 600 --- is to --- or 1 to 1 this is GOOD 360 600 This also has implications if you want to allow your user to change the size of the image and they don't maintain the aspect ratio match. There is code in the RectObj in phpmapscript to help manage this. Or you can write your own rescaling code like I did before I found the the $oRect->fit($width, $hieght) method. -Steve Pushkar Pradhan wrote: > > Hi all, > I am trying to query my maps using php/mapscript. I am using the function > GMapPix2Geo to convert the mouse coords. clicked to georef. coords. > However the conv. coordinates of the locn. clicked is different from those > shown in arcview. > How do I choose the extent of the map, I searched the archives but didn't > find any. Right now I go to arcview and put my mouse on the farthest > positions of the shapefile, and write down the values arcview displays on > the top right. > Thanks, > > -Pushkar S. Pradhan From steve.lime at dnr.state.mn.us Tue Apr 9 08:17:09 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Tue, 09 Apr 2002 10:17:09 -0500 Subject: [mapserver-users] User group meeting, a show of hands please! Message-ID: Hi Folks: Here we go again, more talk of a user group meeting. In order to seriously consider putting something together we need to understand the interest level amongst you folks. Please drop me a note with answers to the following: 1) Would you be interested in attending a MapServer users group meeting in St. Paul, Minnesota sometime in the fall (Sept/Oct) of 2002? 2) If yes, would you be willing to pay (approximately $300 to $400) in order to fund such a meeting? 3) If interested, what types of events and/or presentations would be most useful for you and your organization? Again, we're just trying to get a handle on potential demand. I personally would really like to see this happen. If you're not interested for whatever reason, let us know that as well. Thanks! Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From steve.lime at dnr.state.mn.us Tue Apr 9 12:41:55 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Tue, 09 Apr 2002 14:41:55 -0500 Subject: [mapserver-users] User group meeting, a show of hands please! Message-ID: Hi Folks: Here we go again, more talk of a user group meeting. In order to seriously consider putting something together we need to understand the interest level amongst you folks. Please drop me a note with answers to the following: 1) Would you be interested in attending a MapServer users group meeting in St. Paul, Minnesota sometime in the fall (Sept/Oct) of 2002? 2) If yes, would you be willing to pay (approximately $300 to $400) in order to fund such a meeting? 3) If interested, what types of events and/or presentations would be most useful for you and your organization? Again, we're just trying to get a handle on potential demand. I personally would really like to see this happen. If you're not interested for whatever reason, let us know that as well. Thanks! Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From erwin at perik.nu Tue Apr 9 14:19:31 2002 From: erwin at perik.nu (E Perik) Date: Tue, 9 Apr 2002 23:19:31 +0200 Subject: [mapserver-users] extents of the map, query in php mapscript In-Reply-To: Message-ID: <000701c1e00c$3dd31e80$967ba8c0@xp> Pushkar, You might want to use shapechk.exe if you want to get the extents of a shapefile. Look for info at: http://www.dnr.state.mn.us/mis/gis/tools/arcview/tipsheets/Tip5.html And download shapechk.exe from: http://www.geocities.com/SiliconValley/Haven/2295/howto_shapechk.html Erwin -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of Pushkar Pradhan Sent: Tuesday, April 09, 2002 8:56 PM To: mapserver-users at lists.gis.umn.edu Cc: Chuck O'Hara Subject: [mapserver-users] extents of the map, query in php mapscript Hi all, I am trying to query my maps using php/mapscript. I am using the function GMapPix2Geo to convert the mouse coords. clicked to georef. coords. However the conv. coordinates of the locn. clicked is different from those shown in arcview. How do I choose the extent of the map, I searched the archives but didn't find any. Right now I go to arcview and put my mouse on the farthest positions of the shapefile, and write down the values arcview displays on the top right. Thanks, -Pushkar S. Pradhan From pkishor at GeoAnalytics.com Tue Apr 9 15:00:07 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Tue, 9 Apr 2002 17:00:07 -0500 Subject: [mapserver-users] User group meeting, a show of hands please! Message-ID: Steve, I was looking at your mapplet code and found it does not support PNGs. Neither does DM Soln's Rosa applet. Searching through the list archives, I found the following message from July 2001. ========== I have a version of Steve's mapplet that does support PNG. Currently, I'm working finding a preprocessor that will help make the PNG mapplet code available to everyone. If you would like, I could forward to you the PNG libraries and mapplet source code. All you would need to do is compile the source and put all the class files in a web accessible directory. [snip] > I know that the rosa applet doesn't support png map at this time. > > Is there any plan to include png format support to the rosa applet. I'm not so > fluent in Java... > > I would like to use the applet, but I don't want use either of gif (licence > problem) or jpeg format (raster map I have don't render nice with jpeg, even with > high quality settings)? > > Does the mapplet class support png? ============ could you, or someone else, shed more light on this? Is there a version of either of these Java applets that does work with PNGs? if not, what would it take to compile that support in? Many thanks, pk/ From morissette at dmsolutions.ca Tue Apr 9 21:55:21 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 10 Apr 2002 00:55:21 -0400 Subject: [mapserver-users] User group meeting, a show of hands please! References: Message-ID: <3CB3C5B9.C6B288E@dmsolutions.ca> Hi Steve, Of course we (DM Solutions) would be glad to see such a meeting happen. So please count us in! BTW, we're planning to be at the GIS conference that will be taking place in Ottawa in the second week of July... and we were thinking about setting up some kind of MapServer get-together event around the conference. So MapServer users who are planning to attend this conference should keep this potential event in mind. Also, talking of conferences, this week the GeoTec 2002 is taking place in Toronto (Canada). This afternoon, Paul Ramsey, Frank Warmerdam and Dave McIlhagga gave a very interesting set of presentations on Open Source technologies, with a bit of focus on MapServer and PostGIS (of course!). And tomorrow (Wednesday) Dave is giving another presentation on Open Standards with a focus on implementations using MapServer... I guess it's a bit late to announce this, but if you happen to be in the conference (and read your mail in time) then please stop by to say Hi (13:30, room 206b)... Daniel Steve Lime wrote: > > Hi Folks: Here we go again, more talk of a user group meeting. In order > to seriously consider putting something together > we need to understand the interest level amongst you folks. Please drop > me a note with answers to the following: > > 1) Would you be interested in attending a MapServer users group meeting > in St. Paul, Minnesota sometime in the fall > (Sept/Oct) of 2002? > > 2) If yes, would you be willing to pay (approximately $300 to $400) in > order to fund such a meeting? > > 3) If interested, what types of events and/or presentations would be > most useful for you and your organization? > > Again, we're just trying to get a handle on potential demand. I > personally would really like to see this happen. If you're > not interested for whatever reason, let us know that as well. Thanks! > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 From stepan.kafka at centrum.cz Tue Apr 9 23:40:31 2002 From: stepan.kafka at centrum.cz (Stepan Kafka) Date: Wed, 10 Apr 2002 08:40:31 +0200 Subject: [mapserver-users] erdas img files In-Reply-To: Message-ID: <000001c1e05a$9be4dbf0$7e3c2fc3@HSGIS> I have modified the mapserver code to enable setting bands for RGB. If you are interested in it, I would send you a copy. I am planning do more things around it but today the conversion to 8-bits images heavily depresses the output quality. Probably it would be better to use pre-processed the 8-bits images for web presentation before the fullcolor output is enabled for MapServer. Steve, do you plan to incorporate bands selecting an other image-processing functions to MS in future? Stepan Kafka > -----P?vodn? zpr?va----- > Od: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]za u?ivatele Pushkar > Pradhan > Odesl?no: 8. dubna 2002 23:54 > Komu: mapserver-users at lists.gis.umn.edu > P?edm?t: [mapserver-users] erdas img files > > > Hi, > We would like to display img files and already doing so using gdal > compiled with mapserv. > However we have multispectral img files with say 7 or more bands. We want > to be able to display the bands we choose e.g. we should be able to say: > band 2 - R > band 4 - G > band 7 - B > Is this possible, if so where can I find more info. on this? > Thanks, > > ------------------------------------------------------------------ > ------------ > PUSHKAR S. PRADHAN > Research Assistant > MISSISSIPPI STATE UNIVERSITY, > STARKVILLE, MS 39759. > > Engineering Research Center > Box 9627 > Mississippi State, MS 39762-9627 > ------------------------------------------------------------------ > ------------ > > From ben at wblogan.net Wed Apr 10 02:59:34 2002 From: ben at wblogan.net (Ben Logan) Date: Wed, 10 Apr 2002 05:59:34 -0400 Subject: [mapserver-users] Please help with Python Mapscript module Message-ID: <20020410055934.A12630@wblogan.net> Perhaps no-one saw my last posts? Or does no-one know what to do? I'm trying to get the Python Mapscript module to compile/link. I have run the following commands: gcc -c mapscript_wrap.c -I/usr/include/python1.5 -o mapscriptcmodule.o ld -o mapscriptcmodule.so mapscriptcmodule.o -shared ../../libmap.a /usr/local/lib/libproj.a /usr/local/lib/libgdal.1.1.so and then when I tried to import the mapscript module, Python gave this message: Python 1.5.2 (#1, Mar 3 2001, 01:35:43) [GCC 2.96 20000731 (Red Hat Linux 7.1 2 on linux-i386 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>> import mapscript Traceback (innermost last): File "", line 1, in ? File "mapscript.py", line 2, in ? import mapscriptc ImportError: (?d at R6/lib/libX11.so.6: shared object not open Can anyone tell me what I am doing wrong, or is the Python module just broken? Thanks, Ben -- Ben Logan: ben at wblogan dot net OpenPGP Key KeyID: A1ADD1F0 From nicolasb at maich.gr Wed Apr 10 04:11:18 2002 From: nicolasb at maich.gr (Nicolas Boretos) Date: Wed, 10 Apr 2002 14:11:18 +0300 Subject: [mapserver-users] Zooming with Mapscript Message-ID: <3CB41DD6.7020905@maich.gr> Hello, I am a new user to mapserver as well as this list. I am using the tcl mapscript interface to play with maps. I am able to draw a map... My question, as I am trying to wade through the mapscript methods is how to pan and zoom a map.. The following draws a map.. (from the msworkbench code..) set mapFile kaz_34.map set map [mapscript::mapObj -args $mapFile] set img [$map prepareImage] for {set i 0} {$i < [$map cget -numlayers]} {incr i} { set layer [$map getLayer $i] mapscript::layerObjRef $layer draw $map $img } $map drawLabelCache $img mapscript::labelCacheObjRef [$map cget -labelcache] freeCache mapscript::msSaveImage $img "$mapFile.gif" 1 1 mapscript::msFreeImage $img I assume that the mapobject has to be re-configured (zoomed/panned) and re-drawn... I could probbaly cross ref a perl example... Sincerely, nicolas boretos From nhv at cape.com Wed Apr 10 05:12:25 2002 From: nhv at cape.com (Norman Vine) Date: Wed, 10 Apr 2002 08:12:25 -0400 Subject: [mapserver-users] Please help with Python Mapscript module In-Reply-To: <20020410055934.A12630@wblogan.net> Message-ID: <001301c1e088$fb00eb00$a300a8c0@nhv> Ben Logan writes: > >I'm trying to get the Python Mapscript module to compile/link. I have >run the following commands: Try the following search phrase at www.google.com python mapserver linking site:gis.umn.edu From lfilak at medinaco.org Wed Apr 10 05:40:23 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Wed, 10 Apr 2002 08:40:23 -0400 Subject: [mapserver-users] Please help with Python Mapscript module Message-ID: <200204101231.g3ACVgQ28706@yogi.medinaco.net> Here are some links I found that may point you towards an answer or someone with an answer, however I can not answer your question directly. http://mapserver.gis.umn.edu/wilma/mapserver-users/0006/msg00135.html http://mapserver.gis.umn.edu/wilma/mapserver-users/0108/msg00280.html Lowell F. The following message was sent by Ben Logan on Wed, 10 Apr 2002 05:59:34 -0400. > Perhaps no-one saw my last posts? Or does no-one know what to do? > > I'm trying to get the Python Mapscript module to compile/link. I have > run the following commands: > > gcc -c mapscript_wrap.c -I/usr/include/python1.5 -o mapscriptcmodule.o > > ld -o mapscriptcmodule.so mapscriptcmodule.o -shared ../../libmap.a /usr/local/lib/libproj.a /usr/local/lib/libgdal.1.1.so > > and then when I tried to import the mapscript module, Python gave this > message: > > Python 1.5.2 (#1, Mar 3 2001, 01:35:43) [GCC 2.96 20000731 (Red Hat > Linux 7.1 > 2 on linux-i386 > Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam > >>> import mapscript > Traceback (innermost last): > File "", line 1, in ? > File "mapscript.py", line 2, in ? > import mapscriptc > ImportError: (?d at R6/lib/libX11.so.6: shared object not open > > Can anyone tell me what I am doing wrong, or is the Python module just > broken? > > Thanks, > Ben > > -- > Ben Logan: ben at wblogan dot net > OpenPGP Key KeyID: A1ADD1F0 From lfilak at medinaco.org Wed Apr 10 06:03:44 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Wed, 10 Apr 2002 09:03:44 -0400 Subject: [mapserver-users] User group meeting, a show of hands please! Message-ID: <200204101255.g3ACt0Q28926@yogi.medinaco.net> The following message was sent by "Steve Lime" on Tue, 09 Apr 2002 14:41:55 -0500. > Hi Folks: Here we go again, more talk of a user group meeting. In order > to seriously consider putting something together we need to understand > the interest level amongst you folks. Please drop me a note with answers > to the following: > > 1) Would you be interested in attending a MapServer users group meeting > in St. Paul, Minnesota sometime in the fall (Sept/Oct) of 2002? Deffinitely! FYI: The only notes I see on the calendar for that time are URISA 10-26 to 10-30 & ION GPS 9-24 to 9-27 > > 2) If yes, would you be willing to pay (approximately $300 to $400) in > order to fund such a meeting? Yes. > > 3) If interested, what types of events and/or presentations would be > most useful for you and your organization? Howto on reading SWIG code for documentor's ;-) > > Again, we're just trying to get a handle on potential demand. I > personally would really like to see this happen. If you're not > interested for whatever reason, let us know that as well. Thanks! > > Steve > > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 From pkishor at GeoAnalytics.com Wed Apr 10 07:23:31 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 10 Apr 2002 09:23:31 -0500 Subject: [mapserver-users] User group meeting, a show of hands please! In-Reply-To: Message-ID: <88D0E705-4C8E-11D6-8446-0003936306C2@geoanalytics.com> Hi sent my response directly to Steve (and in the process, sent a message to the list with the wrong address :-( Anyway, I resending the following to the list... On Tuesday, April 9, 2002, at 02:41 PM, Steve Lime wrote: > Hi Folks: Here we go again, more talk of a user group meeting. In order > >3) If interested, what types of events and/or presentations would be >most useful for you and your organization? application development scripting in various environments applications under heavy-load future development From pgigoux at munistgo.cl Wed Apr 10 08:26:02 2002 From: pgigoux at munistgo.cl (Patricio Gigoux) Date: Wed, 10 Apr 2002 11:26:02 -0400 Subject: [mapserver-users] setextent In-Reply-To: <003601c1dff7$269a7f20$967ba8c0@xp> References: <003601c1dff7$269a7f20$967ba8c0@xp> Message-ID: <200204101526.g3AFQ6d10896@localhost.localdomain> Thanks a lot, now work well Patricio El Mar 09 Abr 2002 14:48, E Perik escribi?: > Hi Patricio, > > Think that your width/height ratio is different then the one in your > map-file, so it will be 'adjusted' to that ratio. > > Also read the following: > http://mapserver.gis.umn.edu/wilma/mapserver-users/0111/msg00111.html > > Erwin > > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of Patricio > Gigoux > Sent: Tuesday, April 09, 2002 6:31 PM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] setextent > > Can somebody say me? why the next or what is my wrong > $map->setextent($extent2_to_set[0],$extent2_to_set[1],$extent2_to_set[2] > ,$extent2_to_set[3]); > where: > $extent2_to_set[0]=342733 > $extent2_to_set[1]=6295000 > $extent2_to_set[2]=349772 > $extent2_to_set[3]=6300000 > but > $map->extent->minx=342733 > $map->extent->miny=6293979.345 > $map->extent->maxx=349772 > $map->extent->maxy=6301020.655 > > Thank in advance > Patricio From sgillies at i3.com Wed Apr 10 08:25:12 2002 From: sgillies at i3.com (Sean Gillies) Date: Wed, 10 Apr 2002 09:25:12 -0600 Subject: [mapserver-users] Please help with Python Mapscript module References: <20020410055934.A12630@wblogan.net> Message-ID: <3CB45958.1070005@i3.com> Ben, My recommendation is that you build the Python mapscript module using Python distutils rather than manually compiling. Here is a great intro document to building Python extension mods. An hour or so of reading this will reward you many times over: http://www.python.org/doc/current/ext/ext.html Next, upgrade to Python 2.1+ so you can use the newest Python distutils. Read all about distutils at: http://www.python.org/doc/current/lib/module-distutils.html Steve Lime has written a setup.py file that should be included in your Python mapscript source. After reading the documents I've referenced, you'll be able to adapt this setup file to your own needs and will build the module easily. Hope this helps you. I've only built Python mapscript on Win32 so don't have any Redhat specifics. cheers, Sean Ben Logan wrote: > Perhaps no-one saw my last posts? Or does no-one know what to do? > > I'm trying to get the Python Mapscript module to compile/link. I have > run the following commands: > > gcc -c mapscript_wrap.c -I/usr/include/python1.5 -o mapscriptcmodule.o > > ld -o mapscriptcmodule.so mapscriptcmodule.o -shared ../../libmap.a /usr/local/lib/libproj.a /usr/local/lib/libgdal.1.1.so > > and then when I tried to import the mapscript module, Python gave this > message: > > Python 1.5.2 (#1, Mar 3 2001, 01:35:43) [GCC 2.96 20000731 (Red Hat > Linux 7.1 > 2 on linux-i386 > Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam > >>>>import mapscript >>> > Traceback (innermost last): > File "", line 1, in ? > File "mapscript.py", line 2, in ? > import mapscriptc > ImportError: (?d at R6/lib/libX11.so.6: shared object not open > > Can anyone tell me what I am doing wrong, or is the Python module just > broken? > > Thanks, > Ben > -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: sig_business.txt URL: From lfilak at medinaco.org Wed Apr 10 08:36:01 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Wed, 10 Apr 2002 11:36:01 -0400 Subject: [mapserver-users] Zooming with Mapscript Message-ID: <200204101527.g3AFRJQ30716@yogi.medinaco.net> This is a perl example as you would expect most of the variables are taken from the cgi call to start with: Lowell F. Cut............................... my $zmdir = 0; my $zmsize = 5; my $imgszx = 1; my $imgszy = 1; my $minx = 1; my $miny = 1; my $maxx = 2; my $maxy = 2; my $dx = 1; my $dy = 1; my $pickx = 1; my $picky = 1; my $ndx = 1; my $ndy = 1; my $nminx = 1; my $nminy = 1; my $nmaxx = 2; my $nmaxy = 2; # # Pull in values passed to cgi. .. # # Find the delta distances. $dx = $maxx - $minx; $dy = $maxy - $miny; # # Find real world coordinate for picked point. # # Open map using map file. my $map = new mapObj('map.map') or die('Unable to Open Default MapFile!'); # # Subtract one pixel. $imgx = $map->{width} - 1; $imgy = $map->{height} - 1; # # Divide delta x & y by pixel extents to find factor x & y. $fctrx = $dx / $imgx; $fctry = $dy / $imgy; # # Adjust to real world coordinates. $pickx = $pickx * $fctrx; $picky = $picky * $fctry; $pickx = $pickx + $minx; $picky = $maxy - $picky; # # Is this zoom in, out, or pan. if ($zmdir == 1) { $ndx = ($dx / $zmsize) / 2; $ndy = ($dy / $zmsize) / 2; $nminx = $pickx - $ndx; $nminy = $picky - $ndy; $nmaxx = $pickx + $ndx; $nmaxy = $picky + $ndy; } elsif ($zmdir == -1) { $ndx = ($dx * $zmsize) / 2; $ndy = ($dy * $zmsize) / 2; $nminx = $pickx - $ndx; $nminy = $picky - $ndy; $nmaxx = $pickx + $ndx; $nmaxy = $picky + $ndy; } elsif ($zmdir == 0) { $ndx = $dx / 2; $ndy = $dy / 2; $nminx = $pickx - $ndx; $nminy = $picky - $ndy; $nmaxx = $pickx + $ndx; $nmaxy = $picky + $ndy; } # # Create image of map. $map->{extent}->{minx} = $nminx; $map->{extent}->{miny} = $nminy; $map->{extent}->{maxx} = $nmaxx; $map->{extent}->{maxy} = $nmaxy; $img = $map->draw(); mapscript::msSaveImage($img,"../html/tmp/$image_name",$mapscript::MS_PNG,$map->{transparent},$map->{interlace},0); The following message was sent by Nicolas Boretos on Wed, 10 Apr 2002 14:11:18 +0300. > Hello, > > I am a new user to mapserver as well as this list. I am using the tcl > mapscript interface to play with maps. I am able to draw a map... > > My question, as I am trying to wade through the mapscript methods is how > to pan and zoom a map.. > The following draws a map.. (from the msworkbench code..) > > set mapFile kaz_34.map > set map [mapscript::mapObj -args $mapFile] > set img [$map prepareImage] > for {set i 0} {$i < [$map cget -numlayers]} {incr i} { > set layer [$map getLayer $i] > mapscript::layerObjRef $layer draw $map $img > } > $map drawLabelCache $img > mapscript::labelCacheObjRef [$map cget -labelcache] freeCache > mapscript::msSaveImage $img "$mapFile.gif" 1 1 > mapscript::msFreeImage $img > > I assume that the mapobject has to be re-configured (zoomed/panned) and > re-drawn... > > I could probbaly cross ref a perl example... > > Sincerely, > nicolas boretos > From TMitchell at lignum.com Wed Apr 10 08:49:37 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Wed, 10 Apr 2002 08:49:37 -0700 Subject: [mapserver-users] Fwd: PostGIS problem.. Message-ID: Thank you Dave, you were right on the money of course. This round of installations on my new computer just seemed to be a bit more difficult (or I'm just a bit too confident and not diligent enough). After I properly installed postgis support in mapserver I was having any difficulties relating to user permissions. I always forget that the web server user has to exist and have permission to select from these tables. In case someone has made it this far and is getting frustrated. Remember, you need to create a database user for your web server and mapserver to use. I.e. I used >createuser apache Then in psql you need grant them priviledges to access the data in your postgis tables. >psql mydb >>grant select on mypostgistable to apache I'm not sure if you have to or not, but I also did the following grants too: >>grant select on geometry_columns to apache >>grant select on spatial_ref_sys to apache Tyler Dave Blasby To: Sent by: cc: mapserver-users at lists.gis.umn.edu owner-mapserver-users at lists.g Fax to: is.umn.edu Subject: Re: [mapserver-users] Fwd: PostGIS problem.. 04/09/2002 11:57 AM Does anyone out there have any info on what might cause: > > msPOSTGISLayerOpen(): Query error. msPOSTGISLayerOpen called but > unimplemented! > > I complied Mapserver 3.5 --with postGIS, and the rest of it is working fine, > except when I try to add the postGIS layer This happens when you havent compiled mapserver without postgis support. You have to explictly tell mapserver to add in support. When you "./configure", you should do it like: ./configure --with-postgis=/usr/bin/pg_config Your pg_config program maybe in a different location. pg_config tells mapserver where the postgresql include and lib directories are. You should check your configure log and see if you specified where pg_config is correctly and that configure found it sucessfully. dave From theflan at gofree.indigo.ie Wed Apr 10 10:08:09 2002 From: theflan at gofree.indigo.ie (Marie Flanagan) Date: Wed, 10 Apr 2002 18:08:09 +0100 Subject: [mapserver-users] Projection question - Australia Message-ID: <00a001c1e0b2$71925320$2a42a8c0@marie> Hi all, I have a question about projection. My map data of the NSW area of Australia uses WGS84 datum and spheroid. Units are in geographic Digital Degrees. This looks fine when displayed in mapserver. I also have a flat file of x,y co-ordinates from the AMG zone 55 which I want to overlay on the map. I have managed to figure out how to generate a shape file for this. But I am now left with the question of how to convert from AMG cartesian co-ords to WGS longitude and latitude. I think it may be possible to convert these using PROJ4 before I create the shape file, but I am not sure if it's possible to convert from AMG to WGS. I will continue to search for PROJ4 examples to see if this is possible but in the meantime if anyone could advise I would be most grateful. I am not a cartographer so excuse any obvious ignorance in the wording of my question! Regards, Marie -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at dnr.state.mn.us Wed Apr 10 10:17:50 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 10 Apr 2002 12:17:50 -0500 Subject: [mapserver-users] applets and PNG Message-ID: The person who posted the message you refer to does have a version of the mapplet that supports PNG. He had to use a 3rd party class library for PNG support. I believe he will provide the code (I don't have it here). Your other option would be to require users to use a new version of Java. I believe the most recent versions support PNG natively. Of course that will require the use of a plugin on the client side. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Puneet Kishor 04/09/02 05:00PM >>> Steve, I was looking at your mapplet code and found it does not support PNGs. Neither does DM Soln's Rosa applet. Searching through the list archives, I found the following message from July 2001. ========== I have a version of Steve's mapplet that does support PNG. Currently, I'm working finding a preprocessor that will help make the PNG mapplet code available to everyone. If you would like, I could forward to you the PNG libraries and mapplet source code. All you would need to do is compile the source and put all the class files in a web accessible directory. [snip] > I know that the rosa applet doesn't support png map at this time. > > Is there any plan to include png format support to the rosa applet. I'm not so > fluent in Java... > > I would like to use the applet, but I don't want use either of gif (licence > problem) or jpeg format (raster map I have don't render nice with jpeg, even with > high quality settings)? > > Does the mapplet class support png? ============ could you, or someone else, shed more light on this? Is there a version of either of these Java applets that does work with PNGs? if not, what would it take to compile that support in? Many thanks, pk/ From assefa at dmsolutions.ca Wed Apr 10 10:34:50 2002 From: assefa at dmsolutions.ca (Assefa Yewondwossen) Date: Wed, 10 Apr 2002 13:34:50 -0400 Subject: [mapserver-users] applets and PNG References: Message-ID: <3CB477BA.AF3ED114@dmsolutions.ca> Hi There, We have used the same 3rd party library to add support to PNG in the Rosa applet. You can download it at : http://www2.dmsolutions.ca/webtools/rosa/rosa_downloads.html PS : download the developpment version. Later, Steve Lime wrote: > The person who posted the message you refer to does have a version of > the > mapplet that supports PNG. He had to use a 3rd party class library for > PNG > support. I believe he will provide the code (I don't have it here). > Your other > option would be to require users to use a new version of Java. I > believe the > most recent versions support PNG natively. Of course that will require > the > use of a plugin on the client side. > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Puneet Kishor 04/09/02 05:00PM >>> > Steve, > > I was looking at your mapplet code and found it does not support PNGs. > Neither does DM Soln's Rosa applet. > > Searching through the list archives, I found the following message from > July > 2001. > > ========== > I have a version of Steve's mapplet that does support PNG. Currently, > I'm > working finding a preprocessor that will help make the PNG mapplet > code > available to everyone. > > If you would like, I could forward to you the PNG libraries and > mapplet > source code. All you would need to do is compile the source and put > all the > class files in a web accessible directory. > > [snip] > > > I know that the rosa applet doesn't support png map at this time. > > > > Is there any plan to include png format support to the rosa applet. > I'm > not so > > fluent in Java... > > > > I would like to use the applet, but I don't want use either of gif > (licence > > problem) or jpeg format (raster map I have don't render nice with > jpeg, > even with > > high quality settings)? > > > > Does the mapplet class support png? > ============ > > could you, or someone else, shed more light on this? Is there a version > of > either of these Java applets that does work with PNGs? if not, what > would it > take to compile that support in? > > Many thanks, > > pk/ -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at dnr.state.mn.us Wed Apr 10 10:41:12 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 10 Apr 2002 12:41:12 -0500 Subject: [mapserver-users] Looking for global raster dataset... Message-ID: Hi Folks: I'm looking for a global (or just north and south america) raster dataset to add context for a visualization I'm working on. This layer would be draped over a DEM to add context. Something like veg. cover, land use or an AVHRR mosaic would be great. Needs to be fairly hi rez (2 minute+). Any one run into such a beast? Thanks in advance! Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From nhv at cape.com Wed Apr 10 11:09:09 2002 From: nhv at cape.com (Norman Vine) Date: Wed, 10 Apr 2002 14:09:09 -0400 Subject: [mapserver-users] Looking for global raster dataset... In-Reply-To: Message-ID: <001d01c1e0ba$d0ecc000$a300a8c0@nhv> Steve Lime writes: >I'm looking for a global (or just north and south america) >raster dataset to add context for a visualization I'm working on. This >layer would be draped over a DEM to add context. Something like veg. >cover, land use or an AVHRR mosaic would be great. Needs to be >fairly hi rez (2 minute+). http://earthobservatory.nasa.gov/Newsroom/BlueMarble/ Cheers Norman From sgillies at i3.com Wed Apr 10 11:56:10 2002 From: sgillies at i3.com (Sean Gillies) Date: Wed, 10 Apr 2002 12:56:10 -0600 Subject: [mapserver-users] Shapefile indices and Mapserv vs Mapscript Message-ID: <3CB48ACA.1030500@i3.com> Greetings, I'm finding a quirk between mapserv and mapscript and am hoping that someone can enlighten me. Using mapserver and mapscript 3.5 I am finding that mapscript cannot access a shapefile without the presence of a shptree index, while mapserv can access the same shapefile without a shptree index, even when using the same map (produced from map.save()). Why would mapscript produce a msSearchDiskTree() error when there is no error from mapserv? Do mapserv.exe and mapserver.lib not use the same code to access shapefiles? I'm using mapserver and mapscript that I've built on Win2k from the 3.5 source. Am setting the shapefile layer to connection type MS_SHAPEFILE. thanks, Sean -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: sig_business.txt URL: From woodbri at swoodbridge.com Wed Apr 10 12:29:05 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 10 Apr 2002 15:29:05 -0400 Subject: [mapserver-users] Shapefile indices and Mapserv vs Mapscript References: <3CB48ACA.1030500@i3.com> Message-ID: <3CB49281.66AC45E2@swoodbridge.com> Sean, The msSearchDiskTree() error is only informational. It means that some of your shapefiles do not have spatial indexes built for them (ie: not all *.shp have a *.qix file. You can suppress the message in mapscript by putting an '@' in front of the call to draw the map, or build the indexes using shptree. Mapserver has probably been built with ignore missing data option so it ignores this fact. the error report by mapscript is from the mapscript wrapper and not mapserver. So that should explain the difference. I have written a bug/enhance request to include the file name that is generating the error to make it easier to chase these down. -Steve Sean Gillies wrote: > > Greetings, > > I'm finding a quirk between mapserv and mapscript and > am hoping that someone can enlighten me. > > Using mapserver and mapscript 3.5 I am finding that > mapscript cannot access a shapefile without the > presence of a shptree index, while mapserv can > access the same shapefile without a shptree index, > even when using the same map (produced from map.save()). > > Why would mapscript produce a msSearchDiskTree() error > when there is no error from mapserv? Do mapserv.exe > and mapserver.lib not use the same code to access > shapefiles? > > I'm using mapserver and mapscript that I've built on > Win2k from the 3.5 source. Am setting the shapefile > layer to connection type MS_SHAPEFILE. > > thanks, > Sean > > ------------------------------------------------------------------------ > Name: sig_business.txt > sig_business.txt Type: Plain Text (text/plain) > Encoding: 7bit From teb at mallit.fr.umn.edu Wed Apr 10 13:20:27 2002 From: teb at mallit.fr.umn.edu (Thomas E. Burk) Date: Wed, 10 Apr 2002 15:20:27 -0500 (CDT) Subject: [mapserver-users] itemquery in version 3.5 (FWD) Message-ID: <200204102020.g3AKKSR07644@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- Date: Wed, 10 Apr 2002 02:17:55 -0700 (PDT) From: laurentiu lionte Subject: itemquery in version 3.5 To: mapserver-info at lists.gis.umn.edu MIME-Version: 1.0 I have an web application using MapServer version 3.11. I've tryed to upgrade to MapServer 3.5 but itemquery does not work at all. Example 3 for itemquery in MapServer test suite uses version 3.11. I've modified the map file by removing QUERY and moving template in CLASS body. Following message appears: "msQueryByAttributes(): Query error. Requested layer has no filter defined. " Could anyone make http://maps.dnr.state.mn.us/mapserver_demos/tests/itemquery/test.html to work under 3.5 version ?? my map file looks like this: NAME locadr SIZE 600 500 FONTSET fonts/fonts.list SHAPEPATH "data" SIZE 384 401 EXTENT -2475.0 280.0 20000.0 16546.0 WEB IMAGEPATH "../tmp/" IMAGEURL "/~laur/tmp/" END QUERYMAP STATUS ON STYLE HILITE COLOR 255 255 0 END REFERENCE STATUS ON IMAGE graphics/iasiref.png SIZE 314 213 EXTENT 9000.00 9000.00 10000.00 10000.00 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END # # Start of symbol definitions (we're only using a few) # SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END LAYER NAME "clcar" DATA clcar STATUS ON TYPE POLYGON CLASS NAME "cladiri" OUTLINECOLOR 194 193 101 SIZE 4 COLOR 0 0 155 END # end of class object END # end of layer object LAYER NAME "carosabil" DATA carosabil STATUS OFF TYPE POLYGON CLASS NAME "carosabil" OUTLINECOLOR 131 130 129 SIZE 4 COLOR 222 221 221 END # end of class object END # end of layer object LAYER NAME "adrese" DATA adrese # FILTER "cod eq ^[cod]$" STATUS OFF TYPE POINT CLASS NAME "adrese" SYMBOL 'circle' MINSIZE 4 MAXSIZE 10 SIZE 7 COLOR 43 14 114 OUTLINECOLOR 220 43 25 TEMPLATE "findadr_template.html" END # end of class object END END thank you in advance L.Lawrence --------------------------------- Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax ------------- End Forwarded Message ------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From TMitchell at lignum.com Wed Apr 10 13:39:06 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Wed, 10 Apr 2002 13:39:06 -0700 Subject: [mapserver-users] Looking for global raster dataset... Message-ID: Hi Steve, you may find a good pointer here: http://www.geoconnections.ca/english/index.html "Steve Lime" To: Sent by: cc: owner-mapserver-users at lists.g Fax to: is.umn.edu Subject: [mapserver-users] Looking for global raster dataset... 04/10/2002 10:41 AM Hi Folks: I'm looking for a global (or just north and south america) raster dataset to add context for a visualization I'm working on. This layer would be draped over a DEM to add context. Something like veg. cover, land use or an AVHRR mosaic would be great. Needs to be fairly hi rez (2 minute+). Any one run into such a beast? Thanks in advance! Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From bfischer at mpls.houstoneng.com Wed Apr 10 14:38:02 2002 From: bfischer at mpls.houstoneng.com (Brian Fischer) Date: Wed, 10 Apr 2002 16:38:02 -0500 Subject: [mapserver-users] itemquery in version 3.5 (FWD) Message-ID: <8879CCE0F0187742B7302A93A8B87B0902993E@mpls.houstoneng.com> Lawrence, I just went through this same issue upgrading one of my applications to version 3.5. You need to add in the &qlayer=layername&map_layername_filter=itemname =,>,<,etc. value in the URL Also make sure you have the filteritem defined in the layer you are querying. Also see message: http://mapserver.gis.umn.edu/wilma/mapserver-users/0202/msg00184.html Hope this helps, Brian -----Original Message----- From: Thomas E. Burk [mailto:teb at mallit.fr.umn.edu] Sent: Wednesday, April 10, 2002 3:20 PM To: mapserver-users at lists.gis.umn.edu Cc: llionte at yahoo.com; pnaciona at gis.umn.edu Subject: [mapserver-users] itemquery in version 3.5 (FWD) ------------- Begin Forwarded Message ------------- Date: Wed, 10 Apr 2002 02:17:55 -0700 (PDT) From: laurentiu lionte Subject: itemquery in version 3.5 To: mapserver-info at lists.gis.umn.edu MIME-Version: 1.0 I have an web application using MapServer version 3.11. I've tryed to upgrade to MapServer 3.5 but itemquery does not work at all. Example 3 for itemquery in MapServer test suite uses version 3.11. I've modified the map file by removing QUERY and moving template in CLASS body. Following message appears: "msQueryByAttributes(): Query error. Requested layer has no filter defined. " Could anyone make http://maps.dnr.state.mn.us/mapserver_demos/tests/itemquery/test.html to work under 3.5 version ?? my map file looks like this: NAME locadr SIZE 600 500 FONTSET fonts/fonts.list SHAPEPATH "data" SIZE 384 401 EXTENT -2475.0 280.0 20000.0 16546.0 WEB IMAGEPATH "../tmp/" IMAGEURL "/~laur/tmp/" END QUERYMAP STATUS ON STYLE HILITE COLOR 255 255 0 END REFERENCE STATUS ON IMAGE graphics/iasiref.png SIZE 314 213 EXTENT 9000.00 9000.00 10000.00 10000.00 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END # # Start of symbol definitions (we're only using a few) # SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END LAYER NAME "clcar" DATA clcar STATUS ON TYPE POLYGON CLASS NAME "cladiri" OUTLINECOLOR 194 193 101 SIZE 4 COLOR 0 0 155 END # end of class object END # end of layer object LAYER NAME "carosabil" DATA carosabil STATUS OFF TYPE POLYGON CLASS NAME "carosabil" OUTLINECOLOR 131 130 129 SIZE 4 COLOR 222 221 221 END # end of class object END # end of layer object LAYER NAME "adrese" DATA adrese # FILTER "cod eq ^[cod]$" STATUS OFF TYPE POINT CLASS NAME "adrese" SYMBOL 'circle' MINSIZE 4 MAXSIZE 10 SIZE 7 COLOR 43 14 114 OUTLINECOLOR 220 43 25 TEMPLATE "findadr_template.html" END # end of class object END END thank you in advance L.Lawrence --------------------------------- Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax ------------- End Forwarded Message ------------- From lyndon.zimmermann at adelaide.edu.au Wed Apr 10 17:21:14 2002 From: lyndon.zimmermann at adelaide.edu.au (Lyndon Zimmermann) Date: Thu, 11 Apr 2002 09:51:14 +0930 Subject: [mapserver-users] Projection question - Australia References: <00a001c1e0b2$71925320$2a42a8c0@marie> Message-ID: <3CB4D6FA.3673C501@adelaide.edu.au> Marie, I would say that the AMG Zone 55 you refer to is equivalent to UTM Zone 55, so the various desktop packages should provide that translation. ArcView and ArcTOOLBOX do. There are other point by point conversion tools around. Note the new GDA94 is close enough to WGS84 with a vertical translation. Lyndon Z > Marie Flanagan wrote: > > Hi all, > > I have a question about projection. My map data of the NSW area of > Australia uses WGS84 datum and spheroid. Units are in geographic > Digital Degrees. This looks fine when displayed in mapserver. > > I also have a flat file of x,y co-ordinates from the AMG zone 55 which > I want to overlay on the map. I have managed to figure out how to > generate a shape file for this. But I am now left with the question > of how to convert from AMG cartesian co-ords to WGS longitude and > latitude. I think it may be possible to convert these using > PROJ4 before I create the shape file, but I am not sure if it's > possible to convert from AMG to WGS. > > I will continue to search for PROJ4 examples to see if this is > possible but in the meantime if anyone could advise I would be most > grateful. I am not a cartographer so excuse any obvious ignorance in > the wording of my question! > > Regards, > > Marie -- Lyndon Zimmermann BE (Mech Adelaide) Grad Dip Bus Admin (UniSA) LOW RAINFALL AGROFORESTRY RESEARCH UNIT PhD Researcher CRC for Plant-Based Management of Dryland Salinity University of Adelaide Department of Agronomy and Farming Systems Physical address: Hannaford Building (via Gate 3) Waite Campus, South Australia Postal: Adelaide University, PMB1 Glen Osmond, SA 5064, Australia Dir (Soil and Water) +61-8-8303 6571 Mob 0414 91 4577 Fax +61-8-8303 6717 email lyndon.zimmermann at adelaide.edu.au Unless otherwise stated, the content of this message and attachments may be forwarded or quoted, with due acknowledgement. No representation is made that this email is free of viruses. Virus scanning is recommended and is the responsibility of the recipient. From Andrew.Loughhead at csiro.au Wed Apr 10 19:46:41 2002 From: Andrew.Loughhead at csiro.au (Andrew.Loughhead at csiro.au) Date: Thu, 11 Apr 2002 12:46:41 +1000 Subject: [mapserver-users] Projection question - Australia Message-ID: My take on this: AMG55 == UTM zone 55 projection on the AGD66 datum. (AMG meaning Australian Map Grid, AGD Australian Geodetic Datum). MGA55 == UTM zone 55 projection on the GDA94 datum. (MGA meaning Map Grid of Australia, GDA Geocentric Datum of Australia). GDA94 and WGS84 are apparently the same for most purposes. Note that if the flat file is correctly described, AMG must mean AGD66 datum. Anyway, to answer your question I think you need to use the Projection Utility that comes with Arcview 3.2 (NOT the 'projector' extension, Projection Utility is a standalone program). This will do the datum conversion for you. If you don't have Arcview there are other programs that will do it for you, I'm not familiar with PROJ4 but would be suprised if it can't do this. my AUD $0.04 worth, hth, Andrew > -----Original Message----- > From: Lyndon Zimmermann [mailto:lyndon.zimmermann at adelaide.edu.au] > Sent: Thursday, 11 April 2002 10:21 AM > To: Marie Flanagan > Cc: mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] Projection question - Australia > > > Marie, > > I would say that the AMG Zone 55 you refer to is equivalent > to UTM Zone > 55, so the various desktop packages should provide that translation. > ArcView and ArcTOOLBOX do. There are other point by point conversion > tools around. Note the new GDA94 is close enough to WGS84 with a > vertical translation. > > Lyndon Z > > > > Marie Flanagan wrote: > > > > Hi all, > > > > I have a question about projection. My map data of the NSW area of > > Australia uses WGS84 datum and spheroid. Units are in geographic > > Digital Degrees. This looks fine when displayed in mapserver. > > > > I also have a flat file of x,y co-ordinates from the AMG > zone 55 which > > I want to overlay on the map. I have managed to figure out how to > > generate a shape file for this. But I am now left with the question > > of how to convert from AMG cartesian co-ords to WGS longitude and > > latitude. I think it may be possible to convert these using > > PROJ4 before I create the shape file, but I am not sure if it's > > possible to convert from AMG to WGS. > > > > I will continue to search for PROJ4 examples to see if this is > > possible but in the meantime if anyone could advise I would be most > > grateful. I am not a cartographer so excuse any obvious > ignorance in > > the wording of my question! > > > > Regards, > > > > Marie > > -- > Lyndon Zimmermann > BE (Mech Adelaide) Grad Dip Bus Admin (UniSA) > > LOW RAINFALL AGROFORESTRY RESEARCH UNIT > PhD Researcher > CRC for Plant-Based Management of Dryland Salinity > > University of Adelaide Department of Agronomy and Farming Systems > Physical address: Hannaford Building (via Gate 3) Waite Campus, South > Australia > Postal: Adelaide University, PMB1 Glen Osmond, SA 5064, Australia > Dir (Soil and Water) +61-8-8303 6571 Mob 0414 91 4577 > Fax +61-8-8303 6717 email lyndon.zimmermann at adelaide.edu.au > > Unless otherwise stated, the content of this message and > attachments may > be forwarded or quoted, with due acknowledgement. No > representation is > made that this email is free of viruses. Virus scanning is recommended > and is the responsibility of the recipient. > From morissette at dmsolutions.ca Wed Apr 10 21:05:33 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 11 Apr 2002 00:05:33 -0400 Subject: [mapserver-users] Looking for global raster dataset... References: <001d01c1e0ba$d0ecc000$a300a8c0@nhv> Message-ID: <3CB50B8D.A188BFA@dmsolutions.ca> I think it may point to the same image as Norman's link below, but just in case: http://visibleearth.nasa.gov/cgi-bin/viewrecord?11656 Daniel Norman Vine wrote: > > Steve Lime writes: > > >I'm looking for a global (or just north and south america) > >raster dataset to add context for a visualization I'm working on. This > >layer would be draped over a DEM to add context. Something like veg. > >cover, land use or an AVHRR mosaic would be great. Needs to be > >fairly hi rez (2 minute+). > > http://earthobservatory.nasa.gov/Newsroom/BlueMarble/ > > Cheers > > Norman From nhv at cape.com Wed Apr 10 21:41:42 2002 From: nhv at cape.com (Norman Vine) Date: Thu, 11 Apr 2002 00:41:42 -0400 Subject: [mapserver-users] Looking for global raster dataset... In-Reply-To: <3CB50B8D.A188BFA@dmsolutions.ca> Message-ID: <002901c1e113$2defc100$a300a8c0@nhv> Daniel Morissette writes: > >I think it may point to the same image as Norman's link below, but just >in case: > http://visibleearth.nasa.gov/cgi-bin/viewrecord?11656 Yes, this is the best 'free' whole earth image I know of :-) >> Steve Lime writes: >> >> >I'm looking for a global (or just north and south america) >> >raster dataset to add context for a visualization I'm working on. This >> >layer would be draped over a DEM to add context. Something like veg. >> >cover, land use or an AVHRR mosaic would be great. Needs to be >> >fairly hi rez (2 minute+). >> >> http://earthobservatory.nasa.gov/Newsroom/BlueMarble/ >> >> Cheers >> >> Norman > From Tom.Kralidis at ccrs.nrcan.gc.ca Wed Apr 10 21:58:11 2002 From: Tom.Kralidis at ccrs.nrcan.gc.ca (Kralidis, Tom) Date: Thu, 11 Apr 2002 00:58:11 -0400 Subject: [mapserver-users] Looking for global raster dataset... Message-ID: <7CDD7B94357FD5119E800002A537C46E2267BB@s5-ccr-r1.ccrs.nrcan.gc.ca> Hi Steve, Check out http://geogratis.gc.ca/ All data from this site is free of charge. Cheers ..Tom -----Original Message----- From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Wednesday, April 10, 2002 1:41 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Looking for global raster dataset... Hi Folks: I'm looking for a global (or just north and south america) raster dataset to add context for a visualization I'm working on. This layer would be draped over a DEM to add context. Something like veg. cover, land use or an AVHRR mosaic would be great. Needs to be fairly hi rez (2 minute+). Any one run into such a beast? Thanks in advance! Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From robert at wotzhere.com Wed Apr 10 23:18:09 2002 From: robert at wotzhere.com (Robert Crossley) Date: Thu, 11 Apr 2002 16:18:09 +1000 Subject: [mapserver-users] Adding points to existing shapefile Message-ID: Hi all, I am now trying to add a point and data to an existing shapefile. The archives suggest this can be achieved using perl or php using the shapeobj I am getting the point location and data from an ActiveX control, not from the browser itself. I can probably raise an event that will allow me to interact with MapServer as I have done to produce a querymap using CGI calls, but am unsure of how to deal with it. (very new at this whole browser Active X thing). The CGI mapscript does not have the shapeobj as a class, so what are my options to achive this? Is there a way of interacting with Mapserver that I am missing? R Robert Crossley Robert Crossley & Associates 9 Short St New Brighton NSW 2483 AUSTRALIA P: 02 6680 1309 F: New Connection M: 0419 718 642 E: robert at wotzhere.com From giorgio at nauta.it Thu Apr 11 02:28:50 2002 From: giorgio at nauta.it (Giorgio Volpe) Date: Thu, 11 Apr 2002 11:28:50 +0200 Subject: [mapserver-users] proj problem? Message-ID: <3CB55752.A4323AF@nauta.it> I used mapserver & mapscript without proj support and it was perfect! Now i'm tring to add proj: I installed debian proj package (v 4.4.5) and compiled mapserver with: ./configure --with-postgis=/usr/lib/postgresql/bin/pg_config --with-tiff --with-jpeg --with-freetype --with-png --with-gd=static,/home/giorgio/work/map/gd-1.8.4/ --with-proj everything seems ok but ... when I try to see itasca demo in the browser, i can see the first map but if i try to zoom or pan then the script dies with no output at all. No trace in apache error log, (only a "Premature end of script headers") I also log error (with SetEnv MS_ERRORFILE /var/tmp/map_error.log) but there is no output there! What can i do to find out the problem? This is my mapserv -v MapServer version 3.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=SHAPEFILE thank in advance ... -- Giorgio ----------------------------------------- From lfilak at medinaco.org Thu Apr 11 05:26:44 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Thu, 11 Apr 2002 08:26:44 -0400 Subject: [mapserver-users] Adding points to existing shapefile Message-ID: <200204111218.g3BCI0Q06662@yogi.medinaco.net> I'm not familiar with ActiveX however shapeObj is most deffinitely object that can be referenced from mapscript. http://mapserver.gis.umn.edu/doc/perlmapscript-reference.html#shapeobj Lowell F. The following message was sent by Robert Crossley on Thu, 11 Apr 2002 16:18:09 +1000. > Hi all, > > I am now trying to add a point and data to an existing shapefile. > > The archives suggest this can be achieved using perl or php using the shapeobj > > I am getting the point location and data from an ActiveX control, not from the browser itself. > I can probably raise an event that will allow me to interact with MapServer as I have done > to produce a querymap using CGI calls, but am unsure of how to deal with it. (very new at this whole > browser Active X thing). > > The CGI mapscript does not have the shapeobj as a class, so what are my options to achive this? > > Is there a way of interacting with Mapserver that I am missing? > > R > > > Robert Crossley > Robert Crossley & Associates > 9 Short St > New Brighton NSW 2483 > AUSTRALIA > > P: 02 6680 1309 > F: New Connection > M: 0419 718 642 > E: robert at wotzhere.com > > From llionte at yahoo.com Thu Apr 11 07:07:18 2002 From: llionte at yahoo.com (laurentiu lionte) Date: Thu, 11 Apr 2002 07:07:18 -0700 (PDT) Subject: [mapserver-users] zooming to a point feature in 3.5 version Message-ID: <20020411140718.61151.qmail@web9906.mail.yahoo.com> Ok, thanks to Brian Fischer for advice regarding itemquery. Finally I've found query examples for 3.5 version at http://maps.dnr.state.mn.us/mapserver_demos/tests3.5/itemquery/test.html and all goes ok for polygon features. I have trouble zooming to a point feature instead a polygon feature. I need to make the same query like in example 1 using points features instead polygons. using: src="/cgi-bin/mapserv?map=[map]&codent=1000&mode=itemquerymap&mapext=shapes&qlayer=[qlayer]" height="300" width="300" in my template, works for polygons I've tryed this for point features in my template: src="/cgi-bin/mapserv?map=[map]&codent=1000&mode=itemquerymap&mapext=shapes&qlayer=[qlayer]&scale=5000&mapxy=[shpmid]" height="300" width="300" and doesn't work my map is: MAP NAME testzoom SHAPEPATH "data" SIZE 300 300 EXTENT 0 0 1 1 WEB IMAGEPATH "../tmp/ IMAGEURL "/~laur/tmp/" END QUERYMAP STATUS ON STYLE HILITE COLOR 255 255 0 END SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END LAYER NAME testpoint DATA testpoint STATUS DEFAULT TYPE POINT FILTERITEM cod FILTER "%codent%" CLASS SYMBOL 'circle' MINSIZE 4 MAXSIZE 10 SIZE 7 COLOR 212 212 212 OUTLINECOLOR 0 0 0 TEMPLATE testzoom.htm END END END Thank you for any help, Lawrence --------------------------------- Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax -------------- next part -------------- An HTML attachment was scrubbed... URL: From shayes at bigpond.net.au Thu Apr 11 07:14:48 2002 From: shayes at bigpond.net.au (Steven Hayes) Date: Fri, 12 Apr 2002 00:14:48 +1000 Subject: [mapserver-users] unsubscribe Message-ID: <000001c1e163$3d8a99f0$93538990@tndn151qlhf5gi> From giorgio at nauta.it Thu Apr 11 07:25:26 2002 From: giorgio at nauta.it (Giorgio Volpe) Date: Thu, 11 Apr 2002 16:25:26 +0200 Subject: [mapserver-users] Hacking Mappostgis.c to allow Views as Mapserver Data Source References: <3C968AB9.30400@i3.com> Message-ID: <3CB59CD6.EB04C12@nauta.it> > Sean, > > Thanks a lot for your comments and work on the mappostgis.c > connector! > Its always great to see someone contributing! > > Sean Gillies wrote: > > 1. Querying a unique row ID called "URID" instead of the Postgres > > OID. > > The reason why I used OID was because it is always available in every > table, and is always unique. Relying on a column called "URID" to > exist, > be an integer, and be unique is a pretty hefty assumption. Plus it > requires people to manually add this column to every table. I'm a new mapserver user, older user of postgres. I think it's very usefull the possibility of using a key field different from oid, normally a relational db programmer defines a "primary key" for quite every table, and a primary key is for definition unique (not integer ... ok). The most usefull think is that postgres automatically creates an index over a primary key field so access is faster when filtering over that field ( if you want index over oid you must create it by yourself). You create primary key simply writing CREATE TABLE table_name (key integer PRIMARY KEY, other_field text,other_field2 text); So i would like to suggest the possibilty of using a primary key field if it exists in the db (may be controlling wheter it is integer or not). (From postgres 7.x oid column can be disabled so it's no more sure that oid column exists!) The simplest way is the one you suggested, that is let user specify which column to use. It's also possible to query system table to discover if our table has a primary key but this is quite complicated expecially for views! For normal table the following query return all integer attributes (column name) that are primary keys (always returns 0 record for views): select attname from pg_type,pg_index,pg_attribute,pg_class where pg_type.oid = atttypid and indrelid=attrelid and indkey[0]=attnum and indkey[1]=0 and indisunique and pg_class.oid = attrelid and attnum > 0 and typname in ('int2','int4','int8','integer') and relname='table_name'; ( indkey[1]=0 to discard multicolumn keys ) Obviously a column can be a "unique integer identifier" also if it's not defined as a primary key in the db .. but only users nows it! Finally the strategy for defining SRID coud be: 1) if user suggest the column use it 2) Otherwise look for an integer primary key, if found use it 3) Use oid (may be control if oid exist or raise an error!) (select attname from pg_attribute,pg_class where pg_class.oid = attrelid and attname='oid' and relname='p'; return a record only if oid exist) An other suggestion: to get all field's names (and their types) of a table you can use the following query: select attname,typname from pg_class,pg_type,pg_attribute where pg_class.oid = attrelid and pg_type.oid = atttypid and attnum > 0 and relname='table_name'; more simple of "verbouse explain" and valid also for views ... PS: can someone send me the path for using "USING UNIQUE ID urid"? Thanks a lot! -- Giorgio ----------------------------------------- From lfilak at medinaco.org Thu Apr 11 07:33:09 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Thu, 11 Apr 2002 10:33:09 -0400 Subject: [mapserver-users] proj problem? Message-ID: <200204111424.g3BEOQQ07963@yogi.medinaco.net> Take a look at the html source in the browser (View->Page Source) the "Premature" statement is actually returned from the client itself. Lowell F The following message was sent by Giorgio Volpe on Thu, 11 Apr 2002 11:28:50 +0200. > I used mapserver & mapscript without proj support and it was perfect! > Now i'm tring to add proj: I installed debian proj package (v 4.4.5) > and compiled mapserver with: > > ./configure --with-postgis=/usr/lib/postgresql/bin/pg_config > --with-tiff --with-jpeg --with-freetype --with-png > --with-gd=static,/home/giorgio/work/map/gd-1.8.4/ --with-proj > > everything seems ok but ... when I try to see itasca demo in the > browser, i can see the first map but if i try to zoom or pan then the > script dies with no output at all. > No trace in apache error log, (only a "Premature end of script headers") > I also log error (with SetEnv MS_ERRORFILE /var/tmp/map_error.log) but > there is no output there! > > What can i do to find out the problem? > > This is my mapserv -v > MapServer version 3.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 > INPUT=JPEG INPUT=POSTGIS INPUT=SHAPEFILE > > thank in advance ... > -- > > Giorgio > > ----------------------------------------- From shpr at libero.it Thu Apr 11 07:28:39 2002 From: shpr at libero.it (Stefano Bonnin) Date: Thu, 11 Apr 2002 16:28:39 +0200 Subject: [mapserver-users] PHP/Mapscript Examples Message-ID: <06d501c1e165$2c96a060$0601a8c0@comai.loc> Hi, one question: where can I find PHP/Mascript examples? So far I have only find this: http://mapserver.gis.umn.edu/doc/phpmapscript-byexample-howto.html Thanks. --- Outgoing mail is certified Virus Free. (FLASHH!) Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.345 / Virus Database: 193 - Release Date: 09/04/02 From shpr at libero.it Thu Apr 11 07:42:32 2002 From: shpr at libero.it (Stefano Bonnin) Date: Thu, 11 Apr 2002 16:42:32 +0200 Subject: [mapserver-users] MAP EXTENT Message-ID: <06df01c1e167$1d6c4340$0601a8c0@comai.loc> I have yet presented this problem but nobody answered me, please: say me if this is a too stupid question ... I have a map (North Italy) and I'm trying to display it with Mapserver. The map is displayed but only a "fragment" of the map appear on the screen. If I want to see the remainder of the map I have to use the pan function. How can I do in orther to view all the map? This is my map file (a fragment): NAME DEMO STATUS ON SIZE 600 600 EXTENT 6.174567 42.975424 14.815678 47.143435 UNITS DD SHAPEPATH "data" IMAGECOLOR 255 255 255 SYMBOLSET "/Program Files/Apache Group/Apache/htdocs/Nord/symbols/symbol.sym" FONTSET "/WINNT/Fonts/fonts.list" If I try to modify the EXTENT nothing happen, another fragment of the map is displayed (but not the entire map) Somebody can help me? I hope so ...... Thanks, Stefano B. --- Outgoing mail is certified Virus Free. (FLASHH!) Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.345 / Virus Database: 193 - Release Date: 09/04/02 From TMitchell at lignum.com Thu Apr 11 08:50:48 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Thu, 11 Apr 2002 08:50:48 -0700 Subject: [mapserver-users] Mapserver, WMS and XML/GML Message-ID: Hello, I was just wondering if anyone out is using Mapserver with XML and/or GML to communicate with other (non MapServer) applications? Do you have any comments on the future of this. The reason I am asking is that we have a desktop application that I want to be able to "speak" to a MapServer (i.e. request a map) and I'm trying to get a handle on how complex of an issue this may truly be. Tyler From woodbri at swoodbridge.com Thu Apr 11 08:48:49 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 11 Apr 2002 11:48:49 -0400 Subject: [mapserver-users] MAP EXTENT References: <06df01c1e167$1d6c4340$0601a8c0@comai.loc> Message-ID: <3CB5B060.AE5BDA0E@swoodbridge.com> Stefano, I am not sure if this is the problem but you aspect ratio of image size to map EXTENTS is not 1:1 image dH=600 dW=600 ratio=600/600 = 1 extents dx=(14.82- 6.17)=8.65 dy=(47.14-42.98)=4.84 ratio=8.65/4.84=1.79 which != 1 above so try: EXTENTS 6.17 40.735 14.82 49.385 -Steve Stefano Bonnin wrote: > > I have yet presented this problem but nobody answered me, please: > > say me if this is a too stupid question ... > > I have a map (North Italy) and I'm trying to display it with Mapserver. > The map is displayed but only a "fragment" of the map appear on the screen. > If I want to see the remainder of the map I have to use the pan function. > > How can I do in orther to view all the map? > > This is my map file (a fragment): > > NAME DEMO > STATUS ON > SIZE 600 600 > EXTENT 6.174567 42.975424 14.815678 47.143435 > > UNITS DD > SHAPEPATH "data" > IMAGECOLOR 255 255 255 > SYMBOLSET "/Program Files/Apache > Group/Apache/htdocs/Nord/symbols/symbol.sym" > FONTSET "/WINNT/Fonts/fonts.list" > > If I try to modify the EXTENT nothing happen, another fragment of the map is > displayed (but not the entire map) > > Somebody can help me? I hope so ...... > > Thanks, > > Stefano B. > > --- > Outgoing mail is certified Virus Free. (FLASHH!) > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.345 / Virus Database: 193 - Release Date: 09/04/02 From vguzman at bigfoot.com Thu Apr 11 09:07:11 2002 From: vguzman at bigfoot.com (Vladimir =?ISO-8859-1?Q?Guzm=E1n?=) Date: Thu, 11 Apr 2002 11:07:11 -0500 Subject: [mapserver-users] postgres question Message-ID: <3CB5B4AF.705@bigfoot.com> Hello, list. I know this is not the place to put this question, so please forgive me. (Besides I think I'm asking the obvious): I've got a table in postgres with a field called 'arc' of type 'lseg'. If I need to query for the start point, I call it this way: SELECT arc[0] FROM entities; If I need the end point, I use: SELECT arc[1] FROM entities; But if I need the x coordinate from the start point? How do I query for it? Thanks in advance, -- Vladimir Guzm?n R. ----------------- www.main-task.com From Pietro.Musella at Informsrl.it Thu Apr 11 08:56:58 2002 From: Pietro.Musella at Informsrl.it (Musella Pietro) Date: Thu, 11 Apr 2002 17:56:58 +0200 Subject: [mapserver-users] unsubscribe Message-ID: From pnaciona at gis.umn.edu Thu Apr 11 09:27:01 2002 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Thu, 11 Apr 2002 11:27:01 -0500 Subject: [mapserver-users] MAP EXTENT In-Reply-To: <06df01c1e167$1d6c4340$0601a8c0@comai.loc> Message-ID: <000001c1e175$b5b6bdc0$b24d5ea0@ecology.umn.edu> Stefano, You need to provide more info. Are you displaying your layers in lat/lon or is it being reprojected? Are you using shapefiles or some other vector format? I'm asking these questions to establish a context to your problem. If you are using shapefiles, it could be that your data has different "regions"... if this is the case, I don't know how to fix it other than running shapearc and regionpoly in arc/info before exporting it as shapefile again. Anyway, that's a wild guess but I've seen it happen to a lot of people. If it is projection issues, you'll need to tell us more about your projection. -Perry N. -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of Stefano Bonnin Sent: Thursday, April 11, 2002 9:43 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] MAP EXTENT I have yet presented this problem but nobody answered me, please: say me if this is a too stupid question ... I have a map (North Italy) and I'm trying to display it with Mapserver. The map is displayed but only a "fragment" of the map appear on the screen. If I want to see the remainder of the map I have to use the pan function. How can I do in orther to view all the map? This is my map file (a fragment): NAME DEMO STATUS ON SIZE 600 600 EXTENT 6.174567 42.975424 14.815678 47.143435 UNITS DD SHAPEPATH "data" IMAGECOLOR 255 255 255 SYMBOLSET "/Program Files/Apache Group/Apache/htdocs/Nord/symbols/symbol.sym" FONTSET "/WINNT/Fonts/fonts.list" If I try to modify the EXTENT nothing happen, another fragment of the map is displayed (but not the entire map) Somebody can help me? I hope so ...... Thanks, Stefano B. --- Outgoing mail is certified Virus Free. (FLASHH!) Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.345 / Virus Database: 193 - Release Date: 09/04/02 From ARyan at co.linn.or.us Thu Apr 11 09:43:41 2002 From: ARyan at co.linn.or.us (Ryan, Adam) Date: Thu, 11 Apr 2002 09:43:41 -0700 Subject: [mapserver-users] File paths for layer data Message-ID: <614FCE5F14A6D41180C200010240D6A2972937@LINNMS> Ed McNierney, Stephen Woodbridge, Tyler Mitchell, etc.. Thank you very much for the responses below. Our IT director and I went 'round and 'round with this thing. We're using IIS and apparently there are a few ways around this problem. We made some changes that allowed me to use a UNC format and map directly to other servers. We lost a little speed but avoided duplicating 55 GBs of ortho photos. Folks may want to refer to Microsoft knowledge base article Q207671 - Accessing Network Files from IIS Applications. Thanks again, Adam Ryan Linn County GIS -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Monday, April 08, 2002 7:17 AM To: Stephen Woodbridge; Tyler Mitchell Cc: Ryan, Adam; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] File paths for layer data Steve et a. - That's not quite correct. The Web server runs under a user security context, like everything in Windows 2000. If you're running a Web server with a site that permits anonymous user access (as most do), your server will have a LOCAL user account named IUSR_; for example, if the machine is named FOO, then there is a local user account named IUSR_FOO that is used by the server for anonymous access. That means that the MapServer CGI runs as if it were run by the logged-in user IUSR_FOO, and it only has access to things that IUSR_FOO can access. The default setup is for IUSR_FOO to be created as a local machine account, NOT a domain account - it's an account that only exists on the Web server machine. As a result, since it's a local machine account, it has NO ACCESS to network resources. You have to be a domain user to get those. Therefore, you won't be able to see any network data files. You can change the Web server's user account to be a domain user account, and then you can get access to domain resources. Remember that this is a two-edged sword. The reason the default account is a local machine account is to prevent security problems; the default setup only permits access to the local machine, so the risk from a Web attack is minimized. If you change that account to a domain account you potentially expose your entire domain to an attack. There's nothing wrong with that; it just means you are increasing the benefits and increasing the risk, and you need to manage the security situation appropriately. - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Sent: Friday, April 05, 2002 8:21 PM To: Tyler Mitchell Cc: Ryan, Adam; mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] File paths for layer data This could be because the web server process does not have access to the network drives. This could be because of access rights, or it could be because you are using a mapped drive which only exists for you as a user after you log in. Since the web server does not log in it does not have any mapped drives and can only access the local drives. -Steve W. Tyler Mitchell wrote: > > I've had a similar problem Adam, again using MapServ 3.5 on Windows 2000. > I couldn't access data on network/shared drives, only locally. It's been > a while since I tried, but I hope someone else can shed some light on it > for us. Any takers? > > > "Ryan, Adam" > To: Tyler Mitchell , > Sent by: mapserver-users at lists.gis.umn.edu > owner-mapserver-users at lists.g cc: > is.umn.edu Fax to: > Subject: RE: [mapserver-users] File paths for layer data > > 04/05/2002 01:55 PM > > > > Thanks Tyler. > > I'm running MapServer 3.5 on Windows 2000. I'm networked to a handful of > county servers including the web server that my mapserver files are on. > > Adam > > -----Original Message----- > From: Tyler Mitchell [mailto:TMitchell at lignum.com] > Sent: Friday, April 05, 2002 1:13 PM > To: mapserver-users at lists.gis.umn.edu > Cc: aryan at co.linn.or.us > Subject: Re: [mapserver-users] File paths for layer data > > Adam, I had come across similar problems but am not sure if it was only on > the windows platform or not. What is your "setup" - are you using windows, > cygwin, unix and maybe you could tell us what version you are using. > > Tyler > > "Ryan, Adam" > > To: > mapserver-users at lists.gis.umn.edu > Sent by: cc: > > owner-mapserver-users at lists.g Fax to: > > is.umn.edu Subject: > [mapserver-users] File paths for layer data > > 04/05/2002 11:29 AM > > > Hi all, > > > > I'm new at this and on a steep learning curve but I think I'm in love > with > > MapServer. It's so fast and, for the most part, easy to use. > > > > One problem: I want to set 'data' for a layer object in my map file to a > > file on another drive, url, server, etc. I can't get mapserver to access > > any layer files that are outside my server directory. I have images on > > the htm template file that reference other drives and servers so it > > doesn't seem to be a rights or permissions problem. > > > > Any suggestions? > > > > Thanks, > > > > Adam Ryan > > Linn County GIS > > Oregon From steve.lime at dnr.state.mn.us Thu Apr 11 10:22:19 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Thu, 11 Apr 2002 12:22:19 -0500 Subject: [mapserver-users] zooming to a point feature in 3.5 version Message-ID: The problem probably is that the results of the [shpmid] replacement are not being escaped properly. Without being escaped there will be a space between the coordinate values which may bust certain browsers. You can get an escaped version of most parameters by appending _esc to the end of the term to be replaced. Try [shpmid_esc] and see if that helps. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> laurentiu lionte 04/11/02 09:07AM >>> Ok, thanks to Brian Fischer for advice regarding itemquery. Finally I've found query examples for 3.5 version at http://maps.dnr.state.mn.us/mapserver_demos/tests3.5/itemquery/test.html and all goes ok for polygon features. I have trouble zooming to a point feature instead a polygon feature. I need to make the same query like in example 1 using points features instead polygons. using: src="/cgi-bin/mapserv?map=[map]&codent=1000&mode=itemquerymap&mapext=shapes&qlayer=[qlayer]" height="300" width="300" in my template, works for polygons I've tryed this for point features in my template: src="/cgi-bin/mapserv?map=[map]&codent=1000&mode=itemquerymap&mapext=shapes&qlayer=[qlayer]&scale=5000&mapxy=[shpmid]" height="300" width="300" and doesn't work my map is: MAP NAME testzoom SHAPEPATH "data" SIZE 300 300 EXTENT 0 0 1 1 WEB IMAGEPATH "../tmp/ IMAGEURL "/~laur/tmp/" END QUERYMAP STATUS ON STYLE HILITE COLOR 255 255 0 END SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END LAYER NAME testpoint DATA testpoint STATUS DEFAULT TYPE POINT FILTERITEM cod FILTER "%codent%" CLASS SYMBOL 'circle' MINSIZE 4 MAXSIZE 10 SIZE 7 COLOR 212 212 212 OUTLINECOLOR 0 0 0 TEMPLATE testzoom.htm END END END Thank you for any help, Lawrence --------------------------------- Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax From steve.lime at dnr.state.mn.us Thu Apr 11 10:25:57 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Thu, 11 Apr 2002 12:25:57 -0500 Subject: [mapserver-users] Adding points to existing shapefile Message-ID: The CGI (mapserv) program has no facilities for adding data to a shapefile. It's a display/query tool only. You'll have to use mapscript or some other tool to append/edit a shapefile. You can pass information to a script in a similar manner as you've done with mapserv, but since you have full reign on what that script does you can invent variables as necessary to pass the data. Steve >>> Robert Crossley 04/11/02 01:18AM >>> Hi all, I am now trying to add a point and data to an existing shapefile. The archives suggest this can be achieved using perl or php using the shapeobj I am getting the point location and data from an ActiveX control, not from the browser itself. I can probably raise an event that will allow me to interact with MapServer as I have done to produce a querymap using CGI calls, but am unsure of how to deal with it. (very new at this whole browser Active X thing). The CGI mapscript does not have the shapeobj as a class, so what are my options to achive this? Is there a way of interacting with Mapserver that I am missing? R Robert Crossley Robert Crossley & Associates 9 Short St New Brighton NSW 2483 AUSTRALIA P: 02 6680 1309 F: New Connection M: 0419 718 642 E: robert at wotzhere.com From theflan at gofree.indigo.ie Thu Apr 11 10:47:20 2002 From: theflan at gofree.indigo.ie (Marie Flanagan) Date: Thu, 11 Apr 2002 18:47:20 +0100 Subject: [mapserver-users] Projection question - Australia References: Message-ID: <007501c1e181$17a98160$2a42a8c0@marie> Thanks everyone for the replies so far. I was very pleasantly surprised that my question got answers so quickly! I've managed to create a file (using Mapinfo) with the projection I want i.e. MGA55 on the GDA94 datum. But I need the units to be in lat and longitude degrees - as opposed to x,y meters. For example take a point 888070 6248580 I want this to be represented as 151.1925896 -33.83179046 I 've tried using PROJ4 to covert to degrees, but am not having any luck (possibly because I don't really understand what I'm doing and the documentation doesn't help me much). This is my PROJ4 command .... proj -v -I -f "%d" +proj=utm +ellps=WGS84 +a=6378137 +rf=298.25 888070 6248580 I get ... 1080240235 1078729873 Can anyone advise or suggest an alternative approach? Thanks a lot. Marie ----- Original Message ----- From: To: Cc: Sent: Thursday, April 11, 2002 3:46 AM Subject: RE: [mapserver-users] Projection question - Australia > My take on this: > > AMG55 == UTM zone 55 projection on the AGD66 datum. > (AMG meaning Australian Map Grid, AGD Australian Geodetic Datum). > > MGA55 == UTM zone 55 projection on the GDA94 datum. > (MGA meaning Map Grid of Australia, GDA Geocentric Datum of Australia). > > GDA94 and WGS84 are apparently the same for most purposes. > > Note that if the flat file is correctly described, AMG must mean > AGD66 datum. > > Anyway, to answer your question I think you need to use the Projection > Utility that comes with Arcview 3.2 (NOT the 'projector' extension, > Projection Utility is a standalone program). This will do the > datum conversion for you. If you don't have Arcview there are other > programs that will do it for you, I'm not familiar with PROJ4 but > would be suprised if it can't do this. > > my AUD $0.04 worth, hth, > Andrew > > > -----Original Message----- > > From: Lyndon Zimmermann [mailto:lyndon.zimmermann at adelaide.edu.au] > > Sent: Thursday, 11 April 2002 10:21 AM > > To: Marie Flanagan > > Cc: mapserver-users at lists.gis.umn.edu > > Subject: Re: [mapserver-users] Projection question - Australia > > > > > > Marie, > > > > I would say that the AMG Zone 55 you refer to is equivalent > > to UTM Zone > > 55, so the various desktop packages should provide that translation. > > ArcView and ArcTOOLBOX do. There are other point by point conversion > > tools around. Note the new GDA94 is close enough to WGS84 with a > > vertical translation. > > > > Lyndon Z > > > > > > > Marie Flanagan wrote: > > > > > > Hi all, > > > > > > I have a question about projection. My map data of the NSW area of > > > Australia uses WGS84 datum and spheroid. Units are in geographic > > > Digital Degrees. This looks fine when displayed in mapserver. > > > > > > I also have a flat file of x,y co-ordinates from the AMG > > zone 55 which > > > I want to overlay on the map. I have managed to figure out how to > > > generate a shape file for this. But I am now left with the question > > > of how to convert from AMG cartesian co-ords to WGS longitude and > > > latitude. I think it may be possible to convert these using > > > PROJ4 before I create the shape file, but I am not sure if it's > > > possible to convert from AMG to WGS. > > > > > > I will continue to search for PROJ4 examples to see if this is > > > possible but in the meantime if anyone could advise I would be most > > > grateful. I am not a cartographer so excuse any obvious > > ignorance in > > > the wording of my question! > > > > > > Regards, > > > > > > Marie > > > > -- > > Lyndon Zimmermann > > BE (Mech Adelaide) Grad Dip Bus Admin (UniSA) > > > > LOW RAINFALL AGROFORESTRY RESEARCH UNIT > > PhD Researcher > > CRC for Plant-Based Management of Dryland Salinity > > > > University of Adelaide Department of Agronomy and Farming Systems > > Physical address: Hannaford Building (via Gate 3) Waite Campus, South > > Australia > > Postal: Adelaide University, PMB1 Glen Osmond, SA 5064, Australia > > Dir (Soil and Water) +61-8-8303 6571 Mob 0414 91 4577 > > Fax +61-8-8303 6717 email lyndon.zimmermann at adelaide.edu.au > > > > Unless otherwise stated, the content of this message and > > attachments may > > be forwarded or quoted, with due acknowledgement. No > > representation is > > made that this email is free of viruses. Virus scanning is recommended > > and is the responsibility of the recipient. > > > From erwin at perik.nu Thu Apr 11 10:51:17 2002 From: erwin at perik.nu (E Perik) Date: Thu, 11 Apr 2002 19:51:17 +0200 Subject: [mapserver-users] MAP EXTENT In-Reply-To: <06df01c1e167$1d6c4340$0601a8c0@comai.loc> Message-ID: <001001c1e181$7b39a250$967ba8c0@xp> Stefano, You might want to use shapechk.exe if you want to get the extents of a shapefile. Look for info at: http://www.dnr.state.mn.us/mis/gis/tools/arcview/tipsheets/Tip5.html And download shapechk.exe from: http://www.geocities.com/SiliconValley/Haven/2295/howto_shapechk.html Then take the 'biggest' shape file and get the EXTENT using shapechk.exe and put those settings in your map-file. Erwin -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of Stefano Bonnin Sent: Thursday, April 11, 2002 4:43 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] MAP EXTENT I have yet presented this problem but nobody answered me, please: say me if this is a too stupid question ... I have a map (North Italy) and I'm trying to display it with Mapserver. The map is displayed but only a "fragment" of the map appear on the screen. If I want to see the remainder of the map I have to use the pan function. How can I do in orther to view all the map? This is my map file (a fragment): NAME DEMO STATUS ON SIZE 600 600 EXTENT 6.174567 42.975424 14.815678 47.143435 UNITS DD SHAPEPATH "data" IMAGECOLOR 255 255 255 SYMBOLSET "/Program Files/Apache Group/Apache/htdocs/Nord/symbols/symbol.sym" FONTSET "/WINNT/Fonts/fonts.list" If I try to modify the EXTENT nothing happen, another fragment of the map is displayed (but not the entire map) Somebody can help me? I hope so ...... Thanks, Stefano B. --- Outgoing mail is certified Virus Free. (FLASHH!) Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.345 / Virus Database: 193 - Release Date: 09/04/02 From bart at atsence.nl Thu Apr 11 11:13:10 2002 From: bart at atsence.nl (Bart van Heijningen) Date: Thu, 11 Apr 2002 20:13:10 +0200 Subject: [mapserver-users] unsubscribe Message-ID: <000201c1e184$8d003be0$9600000a@atsencehome1xp> -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.spring at gmx.de Thu Apr 11 12:35:12 2002 From: m.spring at gmx.de (Markus Spring) Date: 11 Apr 2002 21:35:12 +0200 Subject: [mapserver-users] title as reserved word in mapfile Message-ID: Hi list, playing with the nightly build //by the way: todays doesn't compile :-( I found out that "title" seems to be a reserved word in the upcoming version. Is this by purpose or by accident? With 3.5 I use title inside meta sections without problems, but if it's going to stay reservered I have to change my maps in time. Any explanation will be appreciated Markus From woodbri at swoodbridge.com Thu Apr 11 13:05:33 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 11 Apr 2002 16:05:33 -0400 Subject: [mapserver-users] [Fwd: Help] Message-ID: <3CB5EC8D.5ABF12FC@swoodbridge.com> Jaqueline, You can simplify the problem because your javascript code is generating a GET to send the form. So what you need to look at is: 1) What does the URL look like that the javascript is generating? It is to hard to figure that out by reading the javascript :) 2) What does you mapfile look like? 3) What version of Mapserver are you using? If you post this information to the list, I'm sure someone can help figure out the problem. -Steve W. -------- Original Message -------- Subject: Help Date: Thu, 11 Apr 2002 14:21:05 -0600 (CST) From: "Jaqueline Diaz Vazquez (Tesista)" To: Hello I'm Sorry by the annoyance, but we have a small problem executing an example of "itemquery" that is in the page of MapServer in the following direction: http://maps.dnr.state.mn.us/mapserver_demos/tests/itemquery/ What we are trying to do is to view our layer with some areas iluminated, but this areas depend on a query, and we are having troubles with it. We already modified the code with our own data, and when we execute this code, it shows the following error: msQueryByAttributes(): Query error. Requested layer has no filter defined. We have reviewed all the documentation and we have not been able to solve the problem. The code that we have is the following: (like test.html) html> MapServer Test Suite - ItemQuery

Case 1: Simple ItemQuery With QueryMap

map file
query template file

Pick one: ________________________________________________________________________ We do not understand where is happening with our filter, what are we doing wrong? We have checked the template (the html file) and the map file, we believe they are correct. We'd like to know what are we doing wrong and where? Could you help us? Where we can find information or other examples about "itemquery" using "querybyfeatures"? Thank you. =) From steve.lime at dnr.state.mn.us Thu Apr 11 12:54:48 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Thu, 11 Apr 2002 14:54:48 -0500 Subject: [mapserver-users] title as reserved word in mapfile Message-ID: Will check on build issue. But regarding 'title' as a keyword. This is on purpose. One of the problems that needs to be addressed is the unique naming of classes. Since 'name' is used elsewhere in mapfiles for that purpose it should probably be used in classes as well. That means we need another attribute to handle a prettier class name for legending, hence the keyword title. Naming classes allows us to add capability for turning classes on/off, retrieving them by name in mapscript and bunch of other things. At this point the title keyword has been reserved but not implemented. Please update map files (just quote the word title) accordingly. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Markus Spring 04/11/02 02:35PM >>> Hi list, playing with the nightly build //by the way: todays doesn't compile :-( I found out that "title" seems to be a reserved word in the upcoming version. Is this by purpose or by accident? With 3.5 I use title inside meta sections without problems, but if it's going to stay reservered I have to change my maps in time. Any explanation will be appreciated Markus From David_Kriske at Hilton.com Thu Apr 11 18:57:43 2002 From: David_Kriske at Hilton.com (David Kriske) Date: Thu, 11 Apr 2002 18:57:43 -0700 Subject: [mapserver-users] PHP Mapscript 3.4 to 3.5 - shptree layers no longer work Message-ID: <86256B99.00093728.00@hhcfmapp13.hilton.com> I recently have been in the process of upgrading my PHP Mapscriptapplication from version 3.4 under PHP 4.0.4p1 to version 3.5 under PHP 4.0.6, using the precompiled dlldated 10.15.2001.? Using this version, layers indexed using SHPTREE no longer display;? theapp hangs indefinitely.? Renaming all the .qix files allows the layer to work.? I saw mention of a bug that was fixed involving PHP Mapscript3.5 and shapetree.? How can I get around this problem? Thanks for your help. David L. Kriske Database Analyst, G.I.S. Hilton Hotels Corporation 310.205.4602 310.205.3289 (fax) mailto:david_kriske at hilton.com From ben at wblogan.net Fri Apr 12 02:51:46 2002 From: ben at wblogan.net (Ben Logan) Date: Fri, 12 Apr 2002 05:51:46 -0400 Subject: [mapserver-users] Please help with Python Mapscript module In-Reply-To: <3CB45958.1070005@i3.com>; from sgillies@i3.com on Wed, Apr 10, 2002 at 09:25:12AM -0600 References: <20020410055934.A12630@wblogan.net> <3CB45958.1070005@i3.com> Message-ID: <20020412055146.A10990@wblogan.net> On Wed, Apr 10, 2002 at 09:25:12AM -0600, Sean Gillies wrote: > Ben, > > My recommendation is that you build the Python mapscript module > using Python distutils rather than manually compiling. > > Here is a great intro document to building Python extension mods. > An hour or so of reading this will reward you many times over: > > http://www.python.org/doc/current/ext/ext.html > > Next, upgrade to Python 2.1+ so you can use the newest Python > distutils. Read all about distutils at: > > http://www.python.org/doc/current/lib/module-distutils.html > > Steve Lime has written a setup.py file that should be included > in your Python mapscript source. After reading the documents > I've referenced, you'll be able to adapt this setup file to > your own needs and will build the module easily. > > Hope this helps you. I've only built Python mapscript on Win32 > so don't have any Redhat specifics. Thanks to everyone who responded, I finally got it to work. I didn't have a setup.py in my MapServer distro, but I found one at http://www.vso.cape.com/~nhv/files/python/mapscript/setup.py by searching the list archives. After modifying it for my setup, I was still getting an error about a missing __init__. In setup.py, mapscript and mapscriptc are spelled using studly caps and that is apparently what was causing the problem. Substituting MapScript for mapscript in setup.py fixed the problem, and the module is now successfully imported. Now if I can just figure out how to use it... :) Thanks again, Ben -- Ben Logan: ben at wblogan dot net OpenPGP Key KeyID: A1ADD1F0 From robert at wotzhere.com Fri Apr 12 05:07:23 2002 From: robert at wotzhere.com (Robert Crossley) Date: Fri, 12 Apr 2002 22:07:23 +1000 Subject: [mapserver-users] SUMM:Best way of returning data at a point and doing something with it? In-Reply-To: Message-ID: Thanks to those who did reply and offer suggestions. In the end I just put a javascript redirection in the query template. This was simply a call to an asp page, but I was able to pass the ID of the object that was pointed to on the map. This then allowed me to do database calls to extract data from SQLServer, etc. The standard query template with scripting looks pretty good for most instances, but this was a good workaround in this case as I wanted to reteive data from a non-connected SQL database for the paddock that was pointed to. In the process was also able to get CGI mapscript calls from an ActiveX control if anyone needs that useless bit of info. When this job is over, I will be installing PostreSQL to try it out. R Robert Crossley Robert Crossley & Associates 9 Short St New Brighton NSW 2483 AUSTRALIA P: 02 6680 1309 F: New Connection M: 0419 718 642 E: robert at wotzhere.com From v at w.cl Fri Apr 12 08:19:42 2002 From: v at w.cl (Vinko Vrsalovic) Date: Fri, 12 Apr 2002 11:19:42 -0400 Subject: [mapserver-users] Transparent layers Message-ID: <20020412111942.A18156@landsat.cprsig.cl> Hi folks, I need to apply a polygon layer over a raster and/or DEM layer, the problem is the filled polygons cover the image, so it turns to be useless. I guess i can use the 'pseudopolyline' feature (that is, ommiting the color sentence in the map file), but what i'd really like is to draw the polygons with transparence. Is it possible with the actual mapserver code? thanks a lot, -- Vinko Vrsalovic http://www.cprsig.cl From steve.lime at dnr.state.mn.us Fri Apr 12 08:32:35 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Fri, 12 Apr 2002 10:32:35 -0500 Subject: [mapserver-users] Transparent layers Message-ID: It is possible in the development version for 3.6. It now supports a "TRANSPARENCY" parameter (at the LAYER level) that takes an integer argument representing the % of transparency to use. 100 is completely opaque, 50 is 50% transparent and so on. Color limitations will definitely affect the quality of the output. The samples I've seen are pretty good though. For earlier versions you're limited to hatched fills... Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Vinko Vrsalovic 04/12/02 10:19AM >>> Hi folks, I need to apply a polygon layer over a raster and/or DEM layer, the problem is the filled polygons cover the image, so it turns to be useless. I guess i can use the 'pseudopolyline' feature (that is, ommiting the color sentence in the map file), but what i'd really like is to draw the polygons with transparence. Is it possible with the actual mapserver code? thanks a lot, -- Vinko Vrsalovic http://www.cprsig.cl From btolka at gtcomputing.com Fri Apr 12 08:30:16 2002 From: btolka at gtcomputing.com (Bryan Tolka) Date: Fri, 12 Apr 2002 11:30:16 -0400 Subject: [mapserver-users] php_mapscript compile errors Message-ID: <3CB6FD88.2010901@gtcomputing.com> Can anyone help me with the mapscript and php error. gcc: cannot specify -o with -c or -S and multiple compilations make[1]: *** [php_mapscript_util.o] Error 1 make[1]: Leaving directory `/home/btolka/mapserver/mapserver_3.5/mapscript/php3' Any help is greatly appreciated. Bryan Tolka From steve.lime at dnr.state.mn.us Fri Apr 12 08:36:27 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Fri, 12 Apr 2002 10:36:27 -0500 Subject: [mapserver-users] Fwd: Examples using tiffs Message-ID: An embedded message was scrubbed... From: =?iso-8859-1?Q?Nicole_B=F6meke?= Subject: Examples using tiffs Date: Fri, 12 Apr 2002 08:48:46 +0200 Size: 2239 URL: From havard.tveite at ikf.nlh.no Fri Apr 12 09:21:39 2002 From: havard.tveite at ikf.nlh.no (Havard Tveite) Date: Fri, 12 Apr 2002 18:21:39 +0200 Subject: [mapserver-users] WMS Client - access to non-Mapserver WMS Servers Message-ID: <3CB70993.7F2670A0@ikf.nlh.no> I have had some problems connecting to ESRI WMS servers. I am not a WMS expert, but I have briefly looked at the WMS 1.0.0 specification. My Mapserver setup is: >MapServer version 3.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT >INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SDE INPUT=GDAL INPUT=SHAPEFILE I have successfully connected my WMS Client to Mapserver-based WMS Servers. I have not succeeded in connecting to ESRI-based WMS Servers. I have tested against "www.geographynetwork.com/servlet/com.esri.wms.Esrimap?ServiceName=ESRI_World" and have used cubewerx to check the expected output. I have tried the following CONNECTION string: "http://www.geographynetwork.com/servlet/com.esri.wms.Esrimap?ServiceName=ESRI_World&WMTVER=1.0.0&LAYERS=rivers&STYLE=default&SRS=4326&Format=image/gif&TRANSPARENT=false" This is my LAYER definition ------------------------------------------------------------------------ LAYER NAME "esri" METADATA "wms_title" "ESRI - World" "wms_srs" "epsg:4326" "wms_connectiontimeout" "1000" END TYPE RASTER STATUS DEFAULT CONNECTION "http://www.geographynetwork.com/servlet/com.esri.wms.Esrimap?ServiceName=ESRI_World&WMTVER=1.0.0&LAYERS=rivers&STYLE=default&SRS=4326&Format=PNG&TRANSPARENT=false" CONNECTIONTYPE WMS PROJECTION "init=epsg:4326" END END #layer esri ------------------------------------------------------------------------ The message is: msDrawRaster(): Image handling error. Unrecognized or unsupported image format If I use only Mapserver WMS Servers, everything works fine... If I include a "request=map" in the CONNECTION, I get a blank image at scales where the rivers show up at cubewerx's client. I must be missing something... These are the capabilities of: http://www.geographynetwork.com/servlet/com.esri.wms.Esrimap?ServiceName=ESRI_World&WMTVER=1.0.0&request=capabilities ------------------------------------------------------------------------ ]> GetMap ESRI Inc. Map Server WMT Map Server maintained by ESRI Inc. http://www.geographynetwork.com:80/servlet/com.esri.wms.Esrimap? none none ArcIMS Map Server EPSG:4326 Oceans and Seas Oceans and Seas EPSG:4326 Continents Continents EPSG:4326 Country Boundaries Country Boundaries EPSG:4326 Country Boundaries Country Boundaries EPSG:4326 Country Boundaries Country Boundaries EPSG:4326 Water Bodies Water Bodies EPSG:4326 Water Bodies Water Bodies EPSG:4326 Streets and Railroads Streets and Railroads EPSG:4326 Major Cities Major Cities EPSG:4326 Major Cities Major Cities EPSG:4326 Major Cities Major Cities EPSG:4326 Boundary Lines Boundary Lines EPSG:4326 Land and Oceans Land and Oceans EPSG:4326 Water Bodies Water Bodies EPSG:4326 Rivers Rivers EPSG:4326 Populated Places Populated Places EPSG:4326 Drainage Lines Drainage Lines EPSG:4326 Boundaries Boundaries EPSG:4326 Major Roads Major Roads EPSG:4326 Major Railroads Major Railroads EPSG:4326 Airports Airports EPSG:4326 Place names Place names EPSG:4326 Populated Places Populated Places EPSG:4326 ------------------------------------------------------------------------ -- H?vard Tveite Phone: +47 64948857 Department of Mapping Sciences Fax: +47 64948856 Agricultural University of Norway POBox 5034, N-1432 ?s, NORWAY http://www.nlh.no/ikf/ From Chip.Hankley at GASAI.Com Fri Apr 12 10:24:29 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Fri, 12 Apr 2002 12:24:29 -0500 Subject: [mapserver-users] SDE Layers, CAD Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABA0C@postoffice.GASAI.Com> Has anyone out there using SDE used the "CAD client" feature of SDE to bring in CAD data (dxf, dgn, or dwg) to MapServer? I *frequently* have the need to include such files in my apps, and am looking for options (besides converting to shape). Cheers! Chip From TMitchell at lignum.com Fri Apr 12 10:42:27 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Fri, 12 Apr 2002 10:42:27 -0700 Subject: [mapserver-users] Using MapServer with ERMapper's Image Web Server (IWS) Message-ID: Is anyone using MapServer with ERMappers IWS? I see a MapServer demo on their site about integrating MapServer with IWS, but I was wondering if anyone can tell me how I could add a layer into my map file that would grab an image from IWS (I assume using WMS). Tyler From pushkar at ERC.MsState.Edu Fri Apr 12 11:11:08 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Fri, 12 Apr 2002 13:11:08 -0500 (CDT) Subject: [mapserver-users] PHP/Mapscript Examples In-Reply-To: <06d501c1e165$2c96a060$0601a8c0@comai.loc> Message-ID: Hi Stefano, On the same page you'll find a link to the dm solns. website: http://www2.dmsolutions.on.ca/mapserver/dl/ here you'll find some downloads, use gmap-ms35-release.tar.gz or .zip as your platform requirements, this will let you use the gmap demo, the working demo can be found on their website: http://www2.dmsolutions.on.ca/gmap/gmap75.phtml > Hi, one question: > > where can I find PHP/Mascript examples? > > So far I have only find this: > > http://mapserver.gis.umn.edu/doc/phpmapscript-byexample-howto.html > > > Thanks. > > > --- > Outgoing mail is certified Virus Free. (FLASHH!) > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.345 / Virus Database: 193 - Release Date: 09/04/02 > -Pushkar S. Pradhan From sfournier at dmsolutions.ca Fri Apr 12 11:22:22 2002 From: sfournier at dmsolutions.ca (Sacha Fournier) Date: Fri, 12 Apr 2002 14:22:22 -0400 Subject: [mapserver-users] php_mapscript compile errors In-Reply-To: <3CB6FD88.2010901@gtcomputing.com> References: <3CB6FD88.2010901@gtcomputing.com> Message-ID: <200204121823.NAA18482@lists.gis.umn.edu> Edit your MakeFile from mapserver/mapscript/php3/ and remove one of the two gcc on line starting by: CC= gcc gcc -I. ....... There is two gcc on that line. Remove one. On April 12, 2002 11:30 am, Bryan Tolka wrote: > Can anyone help me with the mapscript and php error. > > gcc: cannot specify -o with -c or -S and multiple compilations > make[1]: *** [php_mapscript_util.o] Error 1 > make[1]: Leaving directory > `/home/btolka/mapserver/mapserver_3.5/mapscript/php3' > > > Any help is greatly appreciated. > > Bryan Tolka -- --------------------------------------------------------- Sacha Fournier sfournier at dmsolutions.ca --------------------------------------------------------- DM Solutions Group Inc. 930 Jacques Cartier Est Chicoutimi, QC G7H 7K9 Tel.: (418) 696-5056 -=-=-=- 116 Lisgar Street, Suite 400 Ottawa, ON K2P 0C2 Tel.: (613) 565-5056 Fax.: (613) 565-0925 WEB.: http://www.dmsolutions.ca From TMitchell at lignum.com Fri Apr 12 11:25:39 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Fri, 12 Apr 2002 11:25:39 -0700 Subject: [mapserver-users] Transparent layers Message-ID: I wonder if others could comment on the use a fill symbol that could have a "transparent" component to it - i.e. a semi-solid shading rather than a completely transparent fill like offset does? Vinko Vrsalovic Sent by: To: "'mapserver-users at lists.gis.umn.edu'" owner-mapserver-users at lists. gis.umn.edu cc: Subject: [mapserver-users] Transparent layers 04/12/2002 08:19 AM Hi folks, I need to apply a polygon layer over a raster and/or DEM layer, the problem is the filled polygons cover the image, so it turns to be useless. I guess i can use the 'pseudopolyline' feature (that is, ommiting the color sentence in the map file), but what i'd really like is to draw the polygons with transparence. Is it possible with the actual mapserver code? thanks a lot, -- Vinko Vrsalovic http://www.cprsig.cl From sfournier at dmsolutions.ca Fri Apr 12 11:26:42 2002 From: sfournier at dmsolutions.ca (Sacha Fournier) Date: Fri, 12 Apr 2002 14:26:42 -0400 Subject: [mapserver-users] php_mapscript compile errors In-Reply-To: <3CB6FD88.2010901@gtcomputing.com> References: <3CB6FD88.2010901@gtcomputing.com> Message-ID: <200204121827.NAA18556@lists.gis.umn.edu> Edit your MakeFile from mapserver/mapscript/php3/ and remove one of the two gcc on line starting by: CC= gcc gcc -I. ....... There is two gcc on that line. Remove one. On April 12, 2002 11:30 am, you wrote: > Can anyone help me with the mapscript and php error. > > gcc: cannot specify -o with -c or -S and multiple compilations > make[1]: *** [php_mapscript_util.o] Error 1 > make[1]: Leaving directory > `/home/btolka/mapserver/mapserver_3.5/mapscript/php3' > > > Any help is greatly appreciated. > > Bryan Tolka -- --------------------------------------------------------- Sacha Fournier sfournier at dmsolutions.ca --------------------------------------------------------- DM Solutions Group Inc. 930 Jacques Cartier Est Chicoutimi, QC G7H 7K9 Tel.: (418) 696-5056 -=-=-=- 116 Lisgar Street, Suite 400 Ottawa, ON K2P 0C2 Tel.: (613) 565-5056 Fax.: (613) 565-0925 WEB.: http://www.dmsolutions.ca From morissette at dmsolutions.ca Fri Apr 12 11:34:29 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 12 Apr 2002 14:34:29 -0400 Subject: [mapserver-users] PHP Mapscript 3.4 to 3.5 - shptree layers no longer work References: <86256B99.00093728.00@hhcfmapp13.hilton.com> Message-ID: <3CB728B5.FD84B465@dmsolutions.ca> David Kriske wrote: > > I recently have been in the process of upgrading my PHP Mapscriptapplication > from version 3.4 under PHP 4.0.4p1 to version 3.5 under PHP 4.0.6, using the > precompiled dlldated 10.15.2001. Using this version, layers indexed using > SHPTREE no longer display; theapp hangs indefinitely. Renaming all the .qix > files allows the layer to work. I saw mention of a bug that was fixed involving > PHP Mapscript3.5 and shapetree. How can I get around this problem? > David, This bug was fixed after the 3.5 release, around the end of January, so you need a DLL built after that date. The following one should do: http://www2.dmsolutions.ca/mapserver/dl/php4.1.2_php_mapscript_36-dev_libwww.zip -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From lfilak at medinaco.org Fri Apr 12 12:06:59 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Fri, 12 Apr 2002 15:06:59 -0400 Subject: [mapserver-users] Fwd: Examples using tiffs Message-ID: <200204121858.g3CIwCQ23246@yogi.medinaco.net> I think there are quite a few sites out there that use tiff's. If you end up needing a sample just ask, but I think your problem may be in the data somewhere. If you have ImageMagick available do 'display ' and then Miscellany->Image Info and look under the Image: portion for colors: if it is over 256 then do 'convert -colors 256 '. We had a similar problem where our images where specified as 8-bit but were not classified down to 256 colors and the raster layer would not display. The best part about it was that we could not detect ANY visual difference between images but yet the reclassified image was 1/3 the size of the original (which was nice after starting out at 38GB). Hope that helps. Lowell F. The following message was sent by "Steve Lime" on Fri, 12 Apr 2002 10:36:27 -0500. > Received: from mail.state.mn.us > (state.mn.us [156.99.125.109]) > by co5.dnr.state.mn.us; Fri, 12 Apr 2002 01:48:53 -0500 > Return-Path: > Received: from aixtra1.aixtra.net by mail.state.mn.us with ESMTP for steve.lime at dnr.state.mn.us; Fri, 12 Apr 2002 01:48:52 -0500 > Received: from [194.121.123.151] by aixtra1.aixtranet.de (NTMail 7.02.3028/NU1009.00.56ec5294) with ESMTP id necbdcaa for steve.lime at dnr.state.mn.us; Fri, 12 Apr 2002 08:48:45 +0200 > Received: from BON01 (192.168.1.62) > by mail.ivv-aachen.de with MERCUR Mailserver (v4.01.11 MTA3LTI0MzktNjY2Nw==) > for ; Fri, 12 Apr 2002 08:48:45 +0200 > From: =?iso-8859-1?Q?Nicole_B=F6meke?= > To: > Subject: Examples using tiffs > Date: Fri, 12 Apr 2002 08:48:46 +0200 > Message-Id: <000101c1e1ee$18907170$3e01a8c0 at ivvaachen.de> > X-Priority: 3 (Normal) > X-MSMail-Priority: Normal > X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) > Importance: Normal > X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 > Reply-To: bon at ivv-aachen.de > MIME-Version: 1.0 > Content-Type: text/plain; charset="iso-8859-1" > Content-Transfer-Encoding: 8bit > > 1.) I read about an example called landsat (that uses tiffs), but I > can't find a link to it anywhere. > Can anybody tell me where I can get it or send a zipped copy of > it to my mail adress? > > 2.) Are there other examples using tiffs available? I need a tiff and > a corresponding word file > that is known to work with mapserver. > > 3.) I have the problem that my tiff does not show up. > It is an 8 Bit uncompressed tiff with size 600 x 600. > > I used a world file like this: > 0.6 > 0.0000000000 > 0.0000000000 > -0.6 > 400000.00 > 5255555.00 > > To try it, I replaces the background layer of the itasca example by this > layer definition: > LAYER > NAME ctybdpy2 > TYPE RASTER > STATUS DEFAULT > DATA test.tif > END > > Has anybody an idear what I can do? > > Thanks, Nicole. > > ---------------------------------------------------------------------------- > ------------------------------------------------------------------ > > Nicole B?meke > IVV Aachen > Germany > bon at ivv-aachen.de > From robert at wotzhere.com Fri Apr 12 13:57:12 2002 From: robert at wotzhere.com (Robert Crossley) Date: Sat, 13 Apr 2002 06:57:12 +1000 Subject: [mapserver-users] Using MapServer with ERMapper's Image Web Server (IWS) In-Reply-To: Message-ID: <98LGNILIA7OKC71ZSPSM3VRPA9LFEC9.3cb74a28@rogers> Tyler, We are currently implementing a IWS/ Mapserver app. But, the integration works the other way around to what you think I'm afraid. IWS delivers the images as layers to the client and when vectors are also used, the vectors are also delivered by IWS as an image layer overlay to the client. The image layers are handled by a client-side plugin. On a change of extent, the plug-in triggers a request for new parts of the image that it doesn't already have and a new vector layer overlay. The procedure is quite well explained in their docs, and even code for the integration of Mapserver. Its disadvanage is its requirement for an 400K ActiveX download or an plugin for Netscape, but if you have to deliver images, it has a lot of advantages. For a start, an aerial photo / satellite base is only streamed down once, rather than for each separate request, and thus a change of extent or zoom means only a download of a small gif rather than a large jpg. Then it only requests the parts of the image that it doesn't have already, meaning that if you come back to a part of an image that you looked at before, it is already on the client machine. Its also not freeware for reasonable sized installations. One advantage with the download, is that if the client already has to download a plugin, then they may as well download a full client side app, and you can incorporate a lot of client side functionality that would be difficult otherwise. IWS plan on releasing a java version of their plugin later this year that may change the options though. Robert. 13/04/2002 03:42:27, "Tyler Mitchell" wrote: >Is anyone using MapServer with ERMappers IWS? I see a MapServer demo on >their site about integrating MapServer with IWS, but I was wondering if >anyone can tell me how I could add a layer into my map file that would grab >an image from IWS (I assume using WMS). > >Tyler > > > Robert Crossley Robert Crossley & Associates 9 Short St New Brighton NSW 2483 AUSTRALIA P: 02 6680 1309 F: New Connection M: 0419 718 642 E: robert at wotzhere.com From ahallam at digitalearth.com.au Fri Apr 12 17:08:43 2002 From: ahallam at digitalearth.com.au (Andrew Hallam) Date: Sat, 13 Apr 2002 10:08:43 +1000 Subject: [mapserver-users] Using MapServer with ERMapper's Image Web Server (IWS) In-Reply-To: References: Message-ID: <1747921.1018692523@[192.168.0.11]> Hi Tyler, --On Friday, April 12, 2002 10:42 -0700 Tyler Mitchell wrote: > Is anyone using MapServer with ERMappers IWS? I see a MapServer demo on > their site about integrating MapServer with IWS, but I was wondering if > anyone can tell me how I could add a layer into my map file that would > grab an image from IWS (I assume using WMS). I'm writing a WMS 1.0.0 and 1.1.x interface to do this at the moment. It will provide a WMS interface to ECW data from Image Web Server and from local file. (Windows only at this stage.) In the meantime, there are two possible approaches: ** Client Side ** The ECW viewer plug-in, in your browser, would request an image from MapServer and overlay it on the ECW raster data. All you need to do it write some Javascript and tell the plug-in which colour in the MapServer image to make transparent. There are examples of this in the Image Web Server documentation, and you can view some working examples at www.earthetc.com. I wrote a Javascript WMS 1.0.0 library to do this a while ago. If anyone is interested I'll see if I can dig it up. ** Server Side ** The usual approach is to run MapServer on Windows and compile it with ECW support. That lets you read ECW data from a local file. If you want to use Image Web Server (over HTTP) instead of a local ECW file you should be able to replace the ECW file path in the map file with an ecwp URL (I haven't actually tried this with MapServer but it works fine on my image server). e.g. Replace "d:\ecwfiles\yourimage.ecw" with "ecwp://someserver/ecw/yourimage.ecw" Note: As previously discussed on this list, MapServer's handling of 24bit colour still needs a bit of work so the quality of the output is not optimum when reading ECW data. Regards Andrew Hallam Digital Earth Pty Ltd http://www.digitalearth.com.au From joe at otsys.com Sat Apr 13 00:39:59 2002 From: joe at otsys.com (Joe Bussell) Date: Sat, 13 Apr 2002 00:39:59 -0700 Subject: [mapserver-users] speed performance question Message-ID: <20020413073959.GA6762@extempore.otsys.com> Greetings, What is the real story on hardware requirements? Is anyone putting mapserver through heavy load tests? I have read two threads in the mailing list archives requesting the same. There are no replies. Any information would be helpful. Cordially, Joe Bussell On Time Systems From giorgio at nauta.it Sat Apr 13 02:01:37 2002 From: giorgio at nauta.it (Giorgio Volpe) Date: Sat, 13 Apr 2002 11:01:37 +0200 Subject: [mapserver-users] ms_error question References: <200203211343.g2LDhnv32644@yogi.medinaco.net> Message-ID: <3CB7F3F1.AF94A137@nauta.it> Some time passed ... I've studied the matter a bit! The error is generated when msSHPWhichShapes tries to look for an index (.qix file) to retrieve shapes for layers ... I've no qix file so it is right ... but it should be a "warning", On the contrary, when I call $img=$map->draw() then I found $mapscript::ms_error->{code} = 1 (Unable to access file) so i cannot use it to understand if draw() was ok. I didn't found written anywhere that we have to look ms_error after calling draw method ... is it correct? I tried to assume that all is ok if $img is defined but in some cases that was wrong because also if $img was defined than system crashed when i tried to save the img. Lowell Filak wrote: > > Strange I expected that call ($mapscript::ms_error->{message}) to produce something like MS_IOERR or MS_NOTFOUND... > Is there any chance that the (new mapObj()) call has a typo for the mapfile path? > Lowell F. > > The following message was sent by Giorgio Volpe on Thu, 21 Mar 2002 12:26:39 +0100. > > > Lowell Filak wrote: > > > > > > Could you provide additional information? > > > You say that the error shows up in the error log after the execution of "draw" and that the error code is 1 (MS_FAILURE). > > > What does $mapscript::ms_error->{message} say after the draw? > > > Lowell F. > > > > > > > The message says: > > msSearchDiskTree(): Unable to access file > > > > > > -- > > > > Giorgio > > > > ----------------------------------------- -- Giorgio ----------------------------------------- From ed at topozone.com Sat Apr 13 05:20:42 2002 From: ed at topozone.com (Ed McNierney) Date: Sat, 13 Apr 2002 08:20:42 -0400 Subject: [mapserver-users] speed performance question Message-ID: <13858AA1A74F30419F319ACB66A9D122019339@mercator.topozone.com> Joe - I think the problem is in definig "heavy load tests". I don't see any of the commercial Internet map server providers publishing detailed hardware requirements (although I may have missed something) because it's a very complicated question. That's probably why there's a lack of replies. Do you have a specific set of requirements in mind? If so, let us know and we'll help. Creating a document describing all possible hardware requirements for all possible sets of performance criteria is a massive task, and isn't likely to happen any time soon. - Ed Ed McNierney Chief Mapmaker TopoZone.com -----Original Message----- From: Joe Bussell [mailto:joe at otsys.com] Sent: Saturday, April 13, 2002 3:40 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] speed performance question Greetings, What is the real story on hardware requirements? Is anyone putting mapserver through heavy load tests? I have read two threads in the mailing list archives requesting the same. There are no replies. Any information would be helpful. Cordially, Joe Bussell On Time Systems From woodbri at swoodbridge.com Sat Apr 13 06:23:59 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sat, 13 Apr 2002 09:23:59 -0400 Subject: [mapserver-users] speed performance question References: <20020413073959.GA6762@extempore.otsys.com> Message-ID: <3CB8316F.37EDBBA8@swoodbridge.com> Joe, I'm not sure if there is any definitive document, but here is some information that you might find useful in sizing your own implementation. If you haven't seen or used: http://www.joedog.org/ I would recommend getting it (its free) or something like it. I just did some analysis on a site that will be migrated to a production server at some point. Here is what I did and some of my insights. My goal was not to get optimum performance out of the box. It was to prove the the mapserver configuration was as optimimal as I could make it and to demonstrate that the mapserver times were consistanly in the 2-6 sec range and be able to explain why the large numbers where system configuration issue and not mapserver issues. I wanted to be able to know two things, mainly: 1) what was user response times under load 2) what was mapserver response times under load These are both important and tell you different things. 1) talks more to the system configuration and tuning and 2) tells you how well you have mapserver configured. How I did my testing using joedog: With joedog you create a file of urls that you want multiple joedog "users" to lay seige on the server, so you can tell it to attach the server with 5, 10, 100, whatever simulated users. Each user grabs a random url from the file and hits the server then sleep a specified amount of time and repeats until the end criteria are met. So I created urls, secifically picking locations that were in each of my different shapefiles and at 3-5 different zoom scales. The idea being to avoid all the users hitting the same location and getting the benefit of the system cache a small number of files in its system cache. I then ran the test with 1, 2, 3, 5, 10, 15, 20, ... users until a swampped the system. I also ran some sample test running joedog on the server and running it remote (from the US to Europe) to see if I was getting internet lag in the results (if it was there it was not measurable. Oh, you need to run enough samples at each user count to get a good average that is above the noise. You can test this by rerunning a sample and seeing it the numbers change significantly. Here is what I found out using a 1-GHz Athalon, 1GB mem, running RH 7.2: 1) it is critically important that EVERY *.shp in your configuration have a corresponding *.qix file. 2) I was able to get mapserver response time to be consistantly in the 2-6 sec range if the system file cache was working for me. If not this time could go as high 20 - 40 secs with an occasional 60 sec outlier when the system was heavly swamped. This difference I attribute to how well the urls are hitting the system cache and the fact that one CPU can only process data as fast as one CPU can do it. 3) Summary of some of user response times from joedog: run users delay length response time ------------------------------------------- 1) 10 15s 15m 39.78 secs 2) 10 5s 5m 40.48 secs 3) 5 5s 5m 22.04 secs 4) 3 5s 5m 18.57 secs 5) 1 5s 5m 16.96 secs 6) 1 0s 5m 9.80 secs 7) 1 5s 5m 14.27 secs (repeat of 5) 8) 1 0s 30m 15.10 secs (repeat of 6 for 30m) Remember my comment about getting a large enough sample size? compare 5 and 7, 6 and 8 above. For all the horsepower of this system, I was not impressed by the performance. In fact it seemed significantly slower than my 450 MHz AMD-K2 box and compiling seemed to take longer (but I did not run any comparision timing tests), but it may mean that whomever set it up, or the out of the box setup was not aimed at a server. If I were setting up a server it would definitely be multi-process before any thing else. Fast disks come next, this mapserver had like 18 GB of data that it had to romp through for every image, so have tileindexes and shptree indexes made a huge difference. A fast SCSI raid array is expensive, but if you expect lots of hits you are going to need it. I'm not sure I have answered your question, but I hope I have given you the tools or ideas so you can size your own config up and document your server requires. -Steve Woodbridge http://web-maps.org/ Joe Bussell wrote: > > Greetings, > What is the real story on hardware requirements? Is anyone putting > mapserver through heavy load tests? I have read two threads in the > mailing list archives requesting the same. There are no replies. > > Any information would be helpful. > > Cordially, > > Joe Bussell > On Time Systems From imap at chesapeake.net Sat Apr 13 09:33:01 2002 From: imap at chesapeake.net (imap at chesapeake.net) Date: Sat, 13 Apr 2002 12:33:01 -0400 Subject: [mapserver-users] Fwd: Examples using tiffs References: <200204121858.g3CIwCQ23246@yogi.medinaco.net> Message-ID: <3CB85DBD.559C877D@chesapeake.net> If you convert to 256 color, you arent allowing room for any other mapserver layer colors. I had to go down to 200 colors, to allow for layer color table allocation.. and if you use antialiased fonts, that bitch eats up a few colors too. Just my 2 cents.. mapsurfer Lowell Filak wrote: > > I think there are quite a few sites out there that use tiff's. If you end up needing a sample just ask, but I think your problem may be in the data somewhere. If you have ImageMagick available do 'display ' and then Miscellany->Image Info and look under the Image: portion for colors: if it is over 256 then do 'convert -colors 256 '. > We had a similar problem where our images where specified as 8-bit but were not classified down to 256 colors and the raster layer would not display. The best part about it was that we could not detect ANY visual difference between images but yet the reclassified image was 1/3 the size of the original (which was nice after starting out at 38GB). > Hope that helps. > Lowell F. > > The following message was sent by "Steve Lime" on Fri, 12 Apr 2002 10:36:27 -0500. > > > Received: from mail.state.mn.us > > (state.mn.us [156.99.125.109]) > > by co5.dnr.state.mn.us; Fri, 12 Apr 2002 01:48:53 -0500 > > Return-Path: > > Received: from aixtra1.aixtra.net by mail.state.mn.us with ESMTP for steve.lime at dnr.state.mn.us; Fri, 12 Apr 2002 01:48:52 -0500 > > Received: from [194.121.123.151] by aixtra1.aixtranet.de (NTMail 7.02.3028/NU1009.00.56ec5294) with ESMTP id necbdcaa for steve.lime at dnr.state.mn.us; Fri, 12 Apr 2002 08:48:45 +0200 > > Received: from BON01 (192.168.1.62) > > by mail.ivv-aachen.de with MERCUR Mailserver (v4.01.11 MTA3LTI0MzktNjY2Nw==) > > for ; Fri, 12 Apr 2002 08:48:45 +0200 > > From: =?iso-8859-1?Q?Nicole_B=F6meke?= > > To: > > Subject: Examples using tiffs > > Date: Fri, 12 Apr 2002 08:48:46 +0200 > > Message-Id: <000101c1e1ee$18907170$3e01a8c0 at ivvaachen.de> > > X-Priority: 3 (Normal) > > X-MSMail-Priority: Normal > > X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) > > Importance: Normal > > X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 > > Reply-To: bon at ivv-aachen.de > > MIME-Version: 1.0 > > Content-Type: text/plain; charset="iso-8859-1" > > Content-Transfer-Encoding: 8bit > > > > 1.) I read about an example called landsat (that uses tiffs), but I > > can't find a link to it anywhere. > > Can anybody tell me where I can get it or send a zipped copy of > > it to my mail adress? > > > > 2.) Are there other examples using tiffs available? I need a tiff and > > a corresponding word file > > that is known to work with mapserver. > > > > 3.) I have the problem that my tiff does not show up. > > It is an 8 Bit uncompressed tiff with size 600 x 600. > > > > I used a world file like this: > > 0.6 > > 0.0000000000 > > 0.0000000000 > > -0.6 > > 400000.00 > > 5255555.00 > > > > To try it, I replaces the background layer of the itasca example by this > > layer definition: > > LAYER > > NAME ctybdpy2 > > TYPE RASTER > > STATUS DEFAULT > > DATA test.tif > > END > > > > Has anybody an idear what I can do? > > > > Thanks, Nicole. > > > > ---------------------------------------------------------------------------- > > ------------------------------------------------------------------ > > > > Nicole B?meke > > IVV Aachen > > Germany > > bon at ivv-aachen.de > > From steve.lime at dnr.state.mn.us Sat Apr 13 09:43:21 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Sat, 13 Apr 2002 11:43:21 -0500 Subject: [mapserver-users] Fwd: Examples using tiffs Message-ID: One trick we've tried is sorting the palette in the TIFFs so that the most frequent colors appear first in the palette. ERDAS Imagine was used but there must be other ways of doing this. The reason to do this stems from the way colors are allocated. Initially a pass is made through the map file and all defined colors are allocated in the map. Then colors are added as pixmap symbols are encountered and raster layers are processed. With raster layers the palette is stepped through initially and allocated in the output map. If there's no room some color matching algorithms are applied. It can make quite a difference if common colors are allocated first. If possible you should also remove colors from the palette that are not used. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 04/13/02 11:34 AM >>> If you convert to 256 color, you arent allowing room for any other mapserver layer colors. I had to go down to 200 colors, to allow for layer color table allocation.. and if you use antialiased fonts, that bitch eats up a few colors too. Just my 2 cents.. mapsurfer Lowell Filak wrote: > > I think there are quite a few sites out there that use tiff's. If you end up needing a sample just ask, but I think your problem may be in the data somewhere. If you have ImageMagick available do 'display ' and then Miscellany->Image Info and look under the Image: portion for colors: if it is over 256 then do 'convert -colors 256 '. > We had a similar problem where our images where specified as 8-bit but were not classified down to 256 colors and the raster layer would not display. The best part about it was that we could not detect ANY visual difference between images but yet the reclassified image was 1/3 the size of the original (which was nice after starting out at 38GB). > Hope that helps. > Lowell F. > > The following message was sent by "Steve Lime" on Fri, 12 Apr 2002 10:36:27 -0500. > > > Received: from mail.state.mn.us > > (state.mn.us [156.99.125.109]) > > by co5.dnr.state.mn.us; Fri, 12 Apr 2002 01:48:53 -0500 > > Return-Path: > > Received: from aixtra1.aixtra.net by mail.state.mn.us with ESMTP for steve.lime at dnr.state.mn.us; Fri, 12 Apr 2002 01:48:52 -0500 > > Received: from [194.121.123.151] by aixtra1.aixtranet.de (NTMail 7.02.3028/NU1009.00.56ec5294) with ESMTP id necbdcaa for steve.lime at dnr.state.mn.us; Fri, 12 Apr 2002 08:48:45 +0200 > > Received: from BON01 (192.168.1.62) > > by mail.ivv-aachen.de with MERCUR Mailserver (v4.01.11 MTA3LTI0MzktNjY2Nw==) > > for ; Fri, 12 Apr 2002 08:48:45 +0200 > > From: =?iso-8859-1?Q?Nicole_B=F6meke?= > > To: > > Subject: Examples using tiffs > > Date: Fri, 12 Apr 2002 08:48:46 +0200 > > Message-Id: <000101c1e1ee$18907170$3e01a8c0 at ivvaachen.de> > > X-Priority: 3 (Normal) > > X-MSMail-Priority: Normal > > X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) > > Importance: Normal > > X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 > > Reply-To: bon at ivv-aachen.de > > MIME-Version: 1.0 > > Content-Type: text/plain; charset="iso-8859-1" > > Content-Transfer-Encoding: 8bit > > > > 1.) I read about an example called landsat (that uses tiffs), but I > > can't find a link to it anywhere. > > Can anybody tell me where I can get it or send a zipped copy of > > it to my mail adress? > > > > 2.) Are there other examples using tiffs available? I need a tiff and > > a corresponding word file > > that is known to work with mapserver. > > > > 3.) I have the problem that my tiff does not show up. > > It is an 8 Bit uncompressed tiff with size 600 x 600. > > > > I used a world file like this: > > 0.6 > > 0.0000000000 > > 0.0000000000 > > -0.6 > > 400000.00 > > 5255555.00 > > > > To try it, I replaces the background layer of the itasca example by this > > layer definition: > > LAYER > > NAME ctybdpy2 > > TYPE RASTER > > STATUS DEFAULT > > DATA test.tif > > END > > > > Has anybody an idear what I can do? > > > > Thanks, Nicole. > > > > ---------------------------------------------------------------------------- > > ------------------------------------------------------------------ > > > > Nicole B?meke > > IVV Aachen > > Germany > > bon at ivv-aachen.de > > From pushkar at ERC.MsState.Edu Sat Apr 13 14:32:46 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Sat, 13 Apr 2002 16:32:46 -0500 (CDT) Subject: [mapserver-users] tile index = -1!!!! In-Reply-To: <3CB33F7E.39D88029@swoodbridge.com> Message-ID: Stephen, Your explanation helped a lot, now I am able to get the correct georef. coords. of my map when I click on the image in my browser. However still I am not getting any query results, I use the func. GMapDumpQueryResults() from gmap demo. The table appears with the result fields I specify in my map file, but no results are shown. In my GMapDumpQueryResults() I o/p some info: $oRes = $oLayer->getResult($iRes); echo "$oRes->tileindex $oRes->shapeindex"; $oShape = $oLayer->getShape($oRes->tileindex,$oRes->shapeindex); this gives me a tile index = -1 every time. I don't have a tile index defined in my map file, and I don't think it is necessary since it is not in the gmap demo map file. What I do in short is as follows: 1. detect query mode 2. convert pixel position to georef. coords. 3. create point obj.: $oClickGeo = ms_newPointObj(); $oClickGeo->setXY($nClickGeoX, $nClickGeoY); 4. queryByPoint: @$map->queryByPoint($oClickGeo, MS_SINGLE, -1); 5. dump results $gbShowQueryResults = TRUE; GMapDumpQueryResults(); Can anyone help me? Thanks, > Pushkar, > > It is very important that you match the aspect ratio of your map extents > to the aspect ratio of the image. For example on my map at > http://swoodbridge.com/web2/nmap which has the whole world displayed > which everyone knows is EXTENT -180 -90 180 90 and my image is 600X600 > so what to we have: > > 360 600 > --- is to --- or 2 to 1 this is BAD > 180 600 > > the aspect ratio need to match! so I changed my map to > EXTENT -180 -180 180 180 so > > 360 600 > --- is to --- or 1 to 1 this is GOOD > 360 600 > > This also has implications if you want to allow your user to change the > size of the image and they don't maintain the aspect ratio match. > > There is code in the RectObj in phpmapscript to help manage this. Or you > can write your own rescaling code like I did before I found the the > $oRect->fit($width, $hieght) method. > > -Steve > > Pushkar Pradhan wrote: > > > > Hi all, > > I am trying to query my maps using php/mapscript. I am using the function > > GMapPix2Geo to convert the mouse coords. clicked to georef. coords. > > However the conv. coordinates of the locn. clicked is different from those > > shown in arcview. > > How do I choose the extent of the map, I searched the archives but didn't > > find any. Right now I go to arcview and put my mouse on the farthest > > positions of the shapefile, and write down the values arcview displays on > > the top right. > > Thanks, > > > > -Pushkar S. Pradhan > -Pushkar S. Pradhan From imap at chesapeake.net Sat Apr 13 14:42:17 2002 From: imap at chesapeake.net (imap at chesapeake.net) Date: Sat, 13 Apr 2002 17:42:17 -0400 Subject: [mapserver-users] speed performance question References: <20020413073959.GA6762@extempore.otsys.com> Message-ID: <3CB8A639.1709212B@chesapeake.net> joe, performance can be a problem if you have a ton of concurrent users... what we do for our applications is load balance tween 3-4 machines, and our normal load is about about 25k-30k map images per day/per CPU using resonably fast processors and fast/wide scsi and/or raid. some of machines are stronger than others, but the load balancing takes care of the issue. once you get above a certain threshold the machine response lags pretty bad, so you need to be able to scale the machines as the concurrent load increases. that configuration uses the rack mounted Dell machines (last years model) running RedHat linux which seemed to be a pretty good bang for the buck, although you could probably get away with a cheaper/faster configuration. At the time we bought these machines, state-of-the-art was still below the 1Ghz milestone, so things may have changed. It keeps getting better... I have also tested on a 8 processor SGI Challege XL (about 3-4 yrs old) and that machine was doing about 125k-150k per day and pretty much consumed the machine. This config was not as flexiable or cost effective as the cheap PCs. I seem to recall the IO became saturated somewhere around 4 processors... so if you go this route, you may have to design some kinda redundant storage technique.. I never could get the level of performance I expected from the big machine. My recommendation to anyone building a large system is to use rack mounted (pizza box) PCs w/fast scsi disk on linux (I am biased)... and to stay away from the monolithic architecture. Regards, Chris Stuber (mapsurfer) Joe Bussell wrote: > > Greetings, > What is the real story on hardware requirements? Is anyone putting > mapserver through heavy load tests? I have read two threads in the > mailing list archives requesting the same. There are no replies. > > Any information would be helpful. > > Cordially, > > Joe Bussell > On Time Systems From havard.tveite at ikf.nlh.no Mon Apr 15 03:56:34 2002 From: havard.tveite at ikf.nlh.no (Havard Tveite) Date: Mon, 15 Apr 2002 12:56:34 +0200 Subject: [mapserver-users] WMS Client - access to non-Mapserver WMS Servers References: <3CB70993.7F2670A0@ikf.nlh.no> Message-ID: <3CBAB1E2.3282C76C@ikf.nlh.no> It turned out that my problems were syntactical. I changed to the following "minimal" CONNECTION: "http://www.geographynetwork.com/servlet/com.esri.wms.Esrimap?ServiceName=ESRI_World&VERSION=1.0.0&REQUEST=map&Layers=Rivers&Format=png" And that worked! The "REQUEST=map" has to be present, "REQUEST" has to be uppercase and "map" must be lowercase (this case requirement seems to come from Mapserver). "VERSION" must be either uppercase or lowercase (not mixedcase) (this case requirement seems to come from Mapserver). "LAYERS" can be any case ("Layers", "layers", ...), but the layer names are case sensitive. "FORMAT" can be any case (Format, format, ...), and so can the format ("PNG", "png", "Png", ...). Mime types (e.g. "image/png") can not be used. Mapserver took care of SRS and the STYLES parameter was not necessary. A suggestion to the developers could be to modify the code to use "request=map" (instead of "getmap"?) when the WMTVER/VERSION value is 1.0.0. WMS Client support could perhaps also be made easier for the users by making mapserver translate from MIME types ("image/png") to the 1.0.0 types ("png"), and by relaxing the case requirements for "VERSION" and "REQUEST" ? I hope my experiences can be useful to other users :-) Regards, H. Tveite Havard Tveite wrote: > > I have had some problems connecting to ESRI WMS servers. > I am not a WMS expert, but I have briefly looked at the > WMS 1.0.0 specification. > > My Mapserver setup is: > >MapServer version 3.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > >SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > >INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SDE INPUT=GDAL INPUT=SHAPEFILE > > I have successfully connected my WMS Client to Mapserver-based > WMS Servers. I have not succeeded in connecting to ESRI-based > WMS Servers. > > I have tested against > "www.geographynetwork.com/servlet/com.esri.wms.Esrimap?ServiceName=ESRI_World" > and have used cubewerx to check the expected output. > > I have tried the following CONNECTION string: > "http://www.geographynetwork.com/servlet/com.esri.wms.Esrimap?ServiceName=ESRI_World&WMTVER=1.0.0&LAYERS=rivers&STYLE=default&SRS=4326&Format=image/gif&TRANSPARENT=false" > > This is my LAYER definition > ------------------------------------------------------------------------ > LAYER > NAME "esri" > METADATA > "wms_title" "ESRI - World" > "wms_srs" "epsg:4326" > "wms_connectiontimeout" "1000" > END > TYPE RASTER > STATUS DEFAULT > CONNECTION "http://www.geographynetwork.com/servlet/com.esri.wms.Esrimap?ServiceName=ESRI_World&WMTVER=1.0.0&LAYERS=rivers&STYLE=default&SRS=4326&Format=PNG&TRANSPARENT=false" > CONNECTIONTYPE WMS > PROJECTION > "init=epsg:4326" > END > END #layer esri > ------------------------------------------------------------------------ > > The message is: > msDrawRaster(): Image handling error. Unrecognized or unsupported image format > > If I use only Mapserver WMS Servers, everything works fine... > > If I include a "request=map" in the CONNECTION, I get a blank image at > scales where the rivers show up at cubewerx's client. > > I must be missing something... > > These are the capabilities of: > http://www.geographynetwork.com/servlet/com.esri.wms.Esrimap?ServiceName=ESRI_World&WMTVER=1.0.0&request=capabilities > > ------------------------------------------------------------------------ > > > > > > ]> > > > GetMap > ESRI Inc. Map Server > WMT Map Server maintained by ESRI Inc. > http://www.geographynetwork.com:80/servlet/com.esri.wms.Esrimap? > none > none > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ... > > Rivers > Rivers > EPSG:4326 > > ... > > > ------------------------------------------------------------------------ -- Havard Tveite Phone: +47 64948857 Department of Mapping Sciences Fax: +47 64948856 Agricultural University of Norway POBox 5034, N-1432 ?s, NORWAY http://www.nlh.no/ikf/ From frank.koormann at intevation.de Mon Apr 15 06:30:07 2002 From: frank.koormann at intevation.de (Frank Koormann) Date: Mon, 15 Apr 2002 15:30:07 +0200 Subject: [mapserver-users] Fwd: Examples using tiffs In-Reply-To: <200204121858.g3CIwCQ23246@yogi.medinaco.net> References: <200204121858.g3CIwCQ23246@yogi.medinaco.net> Message-ID: <20020415133007.GA32705@intevation.de> Nicole, * Lowell Filak (lfilak at medinaco.org) [020412 22:59]: > I think there are quite a few sites out there that use tiff's. If you > end up needing a sample just ask, but I think your problem may be in > the data somewhere. > > > > 1.) I read about an example called landsat (that uses > > tiffs), but I can't find a link to it anywhere. Can anybody tell > > me where I can get it or send a zipped copy of it to my mail > > adress? A landsat example was in the old mapserver demo set for version 3.3. A copy of it is part of a rpm-package under ftp://ftp.linux-magazin.de/pub/GIS/mapserver-3.3.011-1.i586.rpm This out-dated out-of-the-box packages for Mapserver was part of an article I wrote for the German LinuxMagazin http://www.linux-community.de/Neues/story?storyid=135 Maybe it helps, please note that the old demo will not work with recent versions of mapserver since the mapfile syntax has changed slightly. Regards, Frank -- Frank Koormann Professional Service around Free Software (http://intevation.net/) FreeGIS Project (http://freegis.org/) From Andrew.Simpson at ssc.nasa.gov Mon Apr 15 12:35:17 2002 From: Andrew.Simpson at ssc.nasa.gov (Simpson, Andrew) Date: Mon, 15 Apr 2002 14:35:17 -0500 Subject: [mapserver-users] OFFSITE for RGB images with GDAL Message-ID: What value should be used for the OFFSITE parameter when displaying 24bit RGB images? 0,0,0 is the color I would like to make transparent. MapServer version 3.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS= TTF SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=JPEG INPUT=GDAL INPUT=SHAPEFILE on Linux 2.4.2-2smp -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Mon Apr 15 13:14:35 2002 From: warmerdam at pobox.com (Frank Warmerdam) Date: Mon, 15 Apr 2002 16:14:35 -0400 Subject: [mapserver-users] OFFSITE for RGB images with GDAL References: Message-ID: <3CBB34AB.3060705@pobox.com> Simpson, Andrew wrote: > What value should be used for the OFFSITE parameter when displaying > 24bit RGB images? > > > > 0,0,0 is the color I would like to make transparent. > Andrew, Unfortunately, it does not currently appear to be possible to utilize the OFFSITE capability with RGB (24bit) GDAL images in MapServer. However, the GDAL code does support alpha bands, so if you can produce PNG or TIFF files with an Alpha layer, and set the alpha to 0 for areas you want to be transparent, and if you ensure the files are treated by GDAL (not the builtin PNG or TIFF drivers) then you can get transparency. Of course, if you are bold you can easily hack the inner RGB loop to do what you want in drawGDAL() in mapraster.c. 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 m.spring at gmx.de Sun Apr 14 13:16:45 2002 From: m.spring at gmx.de (Markus Spring) Date: 14 Apr 2002 22:16:45 +0200 Subject: [mapserver-users] nightly build: problem with mapscript Message-ID: Hi list, the nightly build of April 14 returns the following error: Type error in argument 1 of msSaveImage. Expected gdImagePtrPtr. at ms.pl line 22. running this code (fragment) my $img = $map->prepareImage(); ... mapscript::msSaveImage($img, '/tmp/example.gif', 1, $map->{transparent}, $map->{interlace}, 95); mapscript was built with these options (and a gif enabled gd): cc -c -I/build/server/mapserver_dev -I/build/server/mapserver_dev/../gd-1.8.4 -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -pipe -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -fpic -I/usr/lib/perl5/5.6.1/i586-linux/CORE -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR mapscript_wrap.c Anything wrong with this code? Any help will be appreciated Markus From Bjarni.Pjetursson at tietoenator.com Tue Apr 16 02:39:08 2002 From: Bjarni.Pjetursson at tietoenator.com (Bjarni Pjetursson) Date: Tue, 16 Apr 2002 11:39:08 +0200 Subject: [mapserver-users] Can the map be stretched vertically? Message-ID: <18E0CC75605BD411907800508B8BB8D049E542@odin.enator.dk> I've taken a tab-file from MapInfo, saved it as a shp-file, and put it into MapServer. In MapInfo the map is square but when displaying the same map in MapServer the map is rectangle. The height of the map has halfed. Why is that? It seems that different companies have different idears as to how to display GIS data. I tried Geographic Explorer from Blue Marble Software (freeware), and it showed the map like MapServer do. Actually, I can only get MapInfo to show the map square. My customer has gotten used to the way MapInfo shows the map. Can I make MapServer show the map the same way? You can see the two different maps here: http://www.dynameks.com/cwu-btp/mapserv Image 1 is from MapInfo and Image 2 is from MapServer. Regards Bjarni Thor Pjetursson From marin at here.is Tue Apr 16 03:17:04 2002 From: marin at here.is (Ma) Date: Tue, 16 Apr 2002 10:17:04 +0000 Subject: [mapserver-users] Can the map be stretched vertically? References: <18E0CC75605BD411907800508B8BB8D049E542@odin.enator.dk> Message-ID: <3CBBFA20.B6524D73@here.is> and do you use the same map projection in MapInfo? -- Ma Bjarni Pjetursson wrote: > I've taken a tab-file from MapInfo, saved it as a shp-file, and put it into > MapServer. > > In MapInfo the map is square but when displaying the same map in MapServer > the map is rectangle. The height of the map has halfed. Why is that? > > It seems that different companies have different idears as to how to display > GIS data. I tried Geographic Explorer from Blue Marble Software (freeware), > and it showed the map like MapServer do. Actually, I can only get MapInfo to > show the map square. > > My customer has gotten used to the way MapInfo shows the map. Can I make > MapServer show the map the same way? > > You can see the two different maps here: > http://www.dynameks.com/cwu-btp/mapserv > Image 1 is from MapInfo and Image 2 is from MapServer. > > Regards > Bjarni Thor Pjetursson -- ************************************************************************ The information in this e-mail together with any attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any form of review, disclosure, modification, distribution and/or publication of this e-mail message is prohibited. If you have received this message in error, you are asked to inform the sender as quickly as possible and delete this message and any copies of this message from your computer and/or your computer system network. ************************************************************************ From llionte at yahoo.com Tue Apr 16 03:34:48 2002 From: llionte at yahoo.com (laurentiu lionte) Date: Tue, 16 Apr 2002 03:34:48 -0700 (PDT) Subject: [mapserver-users] itemquerymap attributes Message-ID: <20020416103448.19047.qmail@web9901.mail.yahoo.com> Hello everybody!!! I have finally solved the problem "zooming to a point feature in itemquerymap". If anybody want help for the problem above just send me an e-mail. And now my problem: Does anybody know how to obtain [mapext], [imgxy]and[imgbox] values for an itemquerymap? Actually [mapext] is the most important. Thank you, Lawrence --------------------------------- Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bjarni.Pjetursson at tietoenator.com Tue Apr 16 04:12:07 2002 From: Bjarni.Pjetursson at tietoenator.com (Bjarni Pjetursson) Date: Tue, 16 Apr 2002 13:12:07 +0200 Subject: SV: [mapserver-users] Can the map be stretched vertically? Message-ID: <18E0CC75605BD411907800508B8BB8D049E543@odin.enator.dk> Ma, I use the default projection in MapInfo (or maybe the projection, the map was created with). There is perhaps 50 different projections to choose from in my MapInfo, but neither one seems to change the projection like described below. Anyway, I wanted MapServer to show the map like MapInfo do - not the other way 'round. Do you know a projection to specify in the map-file that can do the trick? /Bjarni PS: I come from the database world - not the spatial world. Bare with me... :-) > -----Oprindelig meddelelse----- > Fra: Ma [SMTP:marin at here.is] > Sendt: 16. april 2002 12:17 > Til: Bjarni Pjetursson > Cc: mapserver-users at lists.gis.umn.edu > Emne: Re: [mapserver-users] Can the map be stretched vertically? > > and do you use the same map projection in MapInfo? > > -- > Ma > > > > > Bjarni Pjetursson wrote: > > > I've taken a tab-file from MapInfo, saved it as a shp-file, and put it > into > > MapServer. > > > > In MapInfo the map is square but when displaying the same map in > MapServer > > the map is rectangle. The height of the map has halfed. Why is that? > > > > It seems that different companies have different idears as to how to > display > > GIS data. I tried Geographic Explorer from Blue Marble Software > (freeware), > > and it showed the map like MapServer do. Actually, I can only get > MapInfo to > > show the map square. > > > > My customer has gotten used to the way MapInfo shows the map. Can I make > > MapServer show the map the same way? > > > > You can see the two different maps here: > > http://www.dynameks.com/cwu-btp/mapserv > > Image 1 is from MapInfo and Image 2 is from MapServer. > > > > Regards > > Bjarni Thor Pjetursson > > -- > From lfilak at medinaco.org Tue Apr 16 04:40:11 2002 From: lfilak at medinaco.org (Lowell.Filak) Date: Tue, 16 Apr 2002 07:40:11 -0400 (EDT) Subject: [mapserver-users] nightly build: problem with mapscript In-Reply-To: Message-ID: It appears that prepareImage now creates an imageObj (as do all the draw methods) as opposed to a gdImagePtr. Try the following change to your code: $img->saveImage('/tmp/example.gif', $mapscript::MS_GIF, $map->{transparent}, $map->{interlace}, 0); Lowell F. On 14 Apr 2002, Markus Spring wrote: > Hi list, > > the nightly build of April 14 returns the following error: > > Type error in argument 1 of msSaveImage. Expected gdImagePtrPtr. at ms.pl line 22. > > running this code (fragment) > > my $img = $map->prepareImage(); > ... > mapscript::msSaveImage($img, '/tmp/example.gif', 1, $map->{transparent}, $map->{interlace}, 95); > > mapscript was built with these options (and a gif enabled gd): > > cc -c -I/build/server/mapserver_dev -I/build/server/mapserver_dev/../gd-1.8.4 -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -pipe -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -fpic -I/usr/lib/perl5/5.6.1/i586-linux/CORE -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR mapscript_wrap.c > > Anything wrong with this code? Any help will be appreciated > > Markus > From lfilak at medinaco.org Tue Apr 16 05:09:16 2002 From: lfilak at medinaco.org (Lowell.Filak) Date: Tue, 16 Apr 2002 08:09:16 -0400 (EDT) Subject: [mapserver-users] Can the map be stretched vertically? In-Reply-To: <18E0CC75605BD411907800508B8BB8D049E542@odin.enator.dk> Message-ID: If you happened to compile mapserver using --with-ogr you can use the OGR libraries to access the TAB file directly which should point to out any errors in the coversion to shape. Lowell F. On Tue, 16 Apr 2002, Bjarni Pjetursson wrote: > > I've taken a tab-file from MapInfo, saved it as a shp-file, and put it into > MapServer. > > In MapInfo the map is square but when displaying the same map in MapServer > the map is rectangle. The height of the map has halfed. Why is that? > > It seems that different companies have different idears as to how to display > GIS data. I tried Geographic Explorer from Blue Marble Software (freeware), > and it showed the map like MapServer do. Actually, I can only get MapInfo to > show the map square. > > My customer has gotten used to the way MapInfo shows the map. Can I make > MapServer show the map the same way? > > You can see the two different maps here: > http://www.dynameks.com/cwu-btp/mapserv > Image 1 is from MapInfo and Image 2 is from MapServer. > > Regards > Bjarni Thor Pjetursson > From Bjarni.Pjetursson at tietoenator.com Tue Apr 16 05:12:48 2002 From: Bjarni.Pjetursson at tietoenator.com (Bjarni Pjetursson) Date: Tue, 16 Apr 2002 14:12:48 +0200 Subject: SV: [mapserver-users] Can the map be stretched vertically? Message-ID: <18E0CC75605BD411907800508B8BB8D049E545@odin.enator.dk> It displays the same using OGR. /Bjarni > -----Oprindelig meddelelse----- > Fra: Lowell.Filak [SMTP:lfilak at medinaco.org] > Sendt: 16. april 2002 14:09 > Til: Bjarni Pjetursson > Cc: mapserver-users at lists.gis.umn.edu > Emne: Re: [mapserver-users] Can the map be stretched vertically? > > If you happened to compile mapserver using --with-ogr you can use the OGR > libraries to access the TAB file directly which should point to out any > errors in the coversion to shape. > Lowell F. > > On Tue, 16 Apr 2002, Bjarni Pjetursson wrote: > > > > > I've taken a tab-file from MapInfo, saved it as a shp-file, and put it > into > > MapServer. > > > > In MapInfo the map is square but when displaying the same map in > MapServer > > the map is rectangle. The height of the map has halfed. Why is that? > > > > It seems that different companies have different idears as to how to > display > > GIS data. I tried Geographic Explorer from Blue Marble Software > (freeware), > > and it showed the map like MapServer do. Actually, I can only get > MapInfo to > > show the map square. > > > > My customer has gotten used to the way MapInfo shows the map. Can I make > > MapServer show the map the same way? > > > > You can see the two different maps here: > > http://www.dynameks.com/cwu-btp/mapserv > > Image 1 is from MapInfo and Image 2 is from MapServer. > > > > Regards > > Bjarni Thor Pjetursson > > From pnaciona at gis.umn.edu Tue Apr 16 05:17:04 2002 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Tue, 16 Apr 2002 07:17:04 -0500 Subject: [mapserver-users] Can the map be stretched vertically? In-Reply-To: <18E0CC75605BD411907800508B8BB8D049E542@odin.enator.dk> Message-ID: <000201c1e540$9ed76b30$b24d5ea0@ecology.umn.edu> It looks like MapInfo stretches the data to fit a square view... at least from the way the images look. Of course, I'm assuming geographic projection. :) Do you happen to know what the default projection in MapInfo is? Perhaps you can reproject it to something like Lambert Azimuthal Equal-Area, with a central meridian that crosses Scotland and Denmark (?) and a reference latitude that passes between Iceland and Ireland. I'm guessing somewhere between -11 and -12 for the meridian and 56 and 57 for latitude. If you reproject, remember to give your map extent in meters. Good luck! -Perry N. -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of Bjarni Pjetursson Sent: Tuesday, April 16, 2002 4:39 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Can the map be stretched vertically? I've taken a tab-file from MapInfo, saved it as a shp-file, and put it into MapServer. In MapInfo the map is square but when displaying the same map in MapServer the map is rectangle. The height of the map has halfed. Why is that? It seems that different companies have different idears as to how to display GIS data. I tried Geographic Explorer from Blue Marble Software (freeware), and it showed the map like MapServer do. Actually, I can only get MapInfo to show the map square. My customer has gotten used to the way MapInfo shows the map. Can I make MapServer show the map the same way? You can see the two different maps here: http://www.dynameks.com/cwu-btp/mapserv Image 1 is from MapInfo and Image 2 is from MapServer. Regards Bjarni Thor Pjetursson From Bjarni.Pjetursson at tietoenator.com Tue Apr 16 05:24:28 2002 From: Bjarni.Pjetursson at tietoenator.com (Bjarni Pjetursson) Date: Tue, 16 Apr 2002 14:24:28 +0200 Subject: SV: [mapserver-users] Can the map be stretched vertically? Message-ID: <18E0CC75605BD411907800508B8BB8D049E547@odin.enator.dk> (I'm very impressed with all the good advise to my problem - thanks guys!) Pericles, I will try the below. But I'm more interested in getting the same view as MapInfo into MapServer. Everybody I talk to seems to think that MapInfo's (stretched) version looks more accurate - including my customer. Hmmm.... /Bjarni > -----Oprindelig meddelelse----- > Fra: Pericles S. Nacionales [SMTP:pnaciona at gis.umn.edu] > Sendt: 16. april 2002 14:17 > Til: Bjarni Pjetursson; mapserver-users at lists.gis.umn.edu > Emne: RE: [mapserver-users] Can the map be stretched vertically? > > It looks like MapInfo stretches the data to fit a square view... at > least from the way the images look. Of course, I'm assuming geographic > projection. :) Do you happen to know what the default projection in > MapInfo is? Perhaps you can reproject it to something like Lambert > Azimuthal Equal-Area, with a central meridian that crosses Scotland and > Denmark (?) and a reference latitude that passes between Iceland and > Ireland. I'm guessing somewhere between -11 and -12 for the meridian > and 56 and 57 for latitude. > > If you reproject, remember to give your map extent in meters. > > Good luck! > -Perry N. > > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of Bjarni > Pjetursson > Sent: Tuesday, April 16, 2002 4:39 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] Can the map be stretched vertically? > > > I've taken a tab-file from MapInfo, saved it as a shp-file, and put it > into > MapServer. > > In MapInfo the map is square but when displaying the same map in > MapServer > the map is rectangle. The height of the map has halfed. Why is that? > > It seems that different companies have different idears as to how to > display > GIS data. I tried Geographic Explorer from Blue Marble Software > (freeware), > and it showed the map like MapServer do. Actually, I can only get > MapInfo to > show the map square. > > My customer has gotten used to the way MapInfo shows the map. Can I make > MapServer show the map the same way? > > You can see the two different maps here: > http://www.dynameks.com/cwu-btp/mapserv > Image 1 is from MapInfo and Image 2 is from MapServer. > > Regards > Bjarni Thor Pjetursson From m.spring at gmx.de Tue Apr 16 06:28:10 2002 From: m.spring at gmx.de (Markus Spring) Date: 16 Apr 2002 15:28:10 +0200 Subject: [mapserver-users] nightly build: problem with mapscript In-Reply-To: References: Message-ID: Thank you - this works! Now there are two more questions arising: * is msFreeImage obsolete now? This is more or less a question for any kind of documentation for the version 3.6... * is there any mailinglist/webpage informing about upcoming changes (I think Frank Warmerdam asked a question like this some time ago) Markus From lfilak at medinaco.org Tue Apr 16 06:46:23 2002 From: lfilak at medinaco.org (Lowell.Filak) Date: Tue, 16 Apr 2002 09:46:23 -0400 (EDT) Subject: [mapserver-users] nightly build: problem with mapscript In-Reply-To: Message-ID: 1) I believe so. It has been replaced by $img->free(). 2) I will attempt to integrate the changes into the documentation (perl mapscript) as I become aware of them. At this point the documentation is for 3.5 and there will be a rewrite for 3.7(?) but 3.6 being development and changing rapidly you may need to ask for now and someone should track down the answer. Lowell F. On 16 Apr 2002, Markus Spring wrote: > Thank you - this works! > > Now there are two more questions arising: > > * is msFreeImage obsolete now? > This is more or less a question for any kind of documentation for > the version 3.6... > > * is there any mailinglist/webpage informing about upcoming changes (I > think Frank Warmerdam asked a question like this some time ago) > > Markus > From Bjarni.Pjetursson at tietoenator.com Tue Apr 16 06:49:04 2002 From: Bjarni.Pjetursson at tietoenator.com (Bjarni Pjetursson) Date: Tue, 16 Apr 2002 15:49:04 +0200 Subject: SV: SV: [mapserver-users] Can the map be stretched vertically? Message-ID: <18E0CC75605BD411907800508B8BB8D049E549@odin.enator.dk> The range is 0-90 (degrees). The projection must be "longitude/latitude" as far as I can tell in MapInfo. /Bjarni > -----Oprindelig meddelelse----- > Fra: Ian Turton [SMTP:i.turton at geography.leeds.ac.uk] > Sendt: 16. april 2002 15:42 > Til: Bjarni Pjetursson; 'Ma' > Cc: mapserver-users at lists.gis.umn.edu > Emne: Re: SV: [mapserver-users] Can the map be stretched vertically? > > At 12:12 PM 4/16/02, Bjarni Pjetursson wrote: > >Ma, > > > >I use the default projection in MapInfo (or maybe the projection, the map > >was created with). There is perhaps 50 different projections to choose > from > >in my MapInfo, but neither one seems to change the projection like > described > >below. > > > >Anyway, I wanted MapServer to show the map like MapInfo do - not the > other > >way 'round. Do you know a projection to specify in the map-file that can > do > >the trick? > > The short answer is no I don't know what the projections are but the > mapserver one looks like a lat-long grid and looks the way I'd expect a > map > of Europe to look. Since I don't use mapinfo (and if thats how it > displays > maps I guess I never will) I can't say what the default projection it uses > > is. What sort of coordinates does your map have? are they in the range > 0-90 > or say 0-10000's? > > Ian > > Ian Turton, Centre for Computational Geography, School of Geography, > University of Leeds, Leeds, LS2 9JT. ***0113 3433392 - New Phone No*** > URL: http://www.geog.leeds.ac.uk/staff/i.turton/ From LEllenbecker at co.winnebago.wi.us Tue Apr 16 06:59:28 2002 From: LEllenbecker at co.winnebago.wi.us (Ellenbecker, Larry) Date: Tue, 16 Apr 2002 08:59:28 -0500 Subject: [mapserver-users] zoom to query on shape attribute Message-ID: HI, I've been checking query/filter listings and have not found a snippit that does what I want. I'm using ms 3.5 in basic cgi. I need help with: 1. I want to use a itemtype text prompt to have a user enter a parcel id number from my webpage.html. Everything I find seems to be derived from a select list. 2. Select the parcel from the parcel layer .dbf attribute table. Need syntax for the webpage.map file. 3. Zoom to that parcel and outline or shade it with a contrasting color from the normal parcel layer in the normal webpage map display area. Thanks in advance. Larry GIS System Analyst Winnebago County From klehr1 at tampabay.rr.com Tue Apr 16 07:02:30 2002 From: klehr1 at tampabay.rr.com (klehr1 at tampabay.rr.com) Date: Tue, 16 Apr 2002 10:02:30 -0400 Subject: [mapserver-users] Process Monitoring Message-ID: <005c01c1e54f$59f21920$0300a8c0@p200> Good morning: I run Red Hat Linux and Mapserver 3.5, I was wondering if any of you could point me to some free server monitoring software (PERL, C, C++). I run the UNIX command `top` every now and again to see how long my processes take and how much memory, but I'm looking for something automated and configurable-not me sitting and watching processes float to the top of the process control manager. Basically I want to make a process that continually monitors the web related processes (maybe by username or command), printing a process log similar to the apache logs. This process-watcher might kill process that use to much memory, then write the process information to a log so that I could review the culprit processes and how they were instantiated. The more I think about this email, its probably already a module for Apache--any feedback would be appreciated. I know this a mapping community, I apologize to anyone who disagrees with the context, but I know we are all concerned about web server performance. Thank you for your time. Steve Lehr -------------- next part -------------- An HTML attachment was scrubbed... URL: From joe at otsys.com Tue Apr 16 07:25:16 2002 From: joe at otsys.com (Joe Bussell) Date: Tue, 16 Apr 2002 07:25:16 -0700 Subject: [mapserver-users] PERL MINSCALE MAXSCALE display control Message-ID: <20020416142516.GA10432@extempore.otsys.com> Is there anything about data which could override decalred MINSCALE and MAXSCALE? I have road data for Los Angeles County and the four surrounding counties. I declare the layer in my map file and set the scale range to cover every zoom level I am using and I observe an odd behavior. The default map does not show me the roads in LA, but the surrounding counties display correctly. When I zoom out all the data is painted. At any zoom level out away from that point I can observe the road network. If I try to zoom in the LA roads do not get painted. What are the right questions to ask debugging this? I have verified that the MAP, LAYER and CLASS definitions are correct in my map file by replacing the DATA value with other randomly selected data sets which do not demonstrate this behavior. Any insight would be helpful. Cordially, Joe Bussell -------------- next part -------------- # # Start of map file # NAME CA STATUS ON SIZE 300 300 PROJECTION "proj=latlong" END EXTENT -118.236313 34.013892 -118.201033 34.049172 SHAPEPATH "/mnt/data/td/la/shapefiles/" IMAGECOLOR 161 161 161 FONTSET fonts/fonts.list TRANSPARENT OFF UNITS dd # you may need to change this to match your MapServer build IMAGETYPE PNG # # The Reference map is the thumbnail map that allows users to # quickly navigate over the 'zoomed-out' map. # REFERENCE IMAGE graphics/reference_ca.png EXTENT -124.39263784515 32.5357813439163 -114.125230507624 42.0021917751363 SIZE 120 120 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END # # The legend # LEGEND STATUS ON KEYSIZE 18 12 LABEL TYPE TRUETYPE FONT Arial SIZE 8 COLOR 0 0 89 END END # # Scalebar # SCALEBAR STATUS ON COLOR 255 255 255 IMAGECOLOR 255 255 255 LABEL COLOR 255 255 255 SIZE tiny END STYLE 1 SIZE 80 10 UNITS MILES INTERVALS 5 TRANSPARENT TRUE END # # Start of symbol definitions (we're only using a few) # SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END SYMBOL NAME 'star' TYPE VECTOR FILLED TRUE POINTS 0 .375 .35 .375 .5 0 .65 .375 1 .375 .75 .625 .875 1 .5 .75 .125 1 .25 .625 END END SYMBOL NAME "fill" TYPE vector FILLED TRUE POINTS 0 1 1 1 END END # # td_* are layers derived from tileing the TANA shapefiles # order is important as the first layer declared is painted first. LAYER NAME country GROUP defaultLayer TYPE POLYGON TILEINDEX td_a9.shp STATUS OFF LABELITEM "NAME" CLASSITEM "NAME" MAXSCALE 15550000 CLASS COLOR 255 239 219 OUTLINECOLOR 0 0 0 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION AUTO SIZE MEDIUM TYPE TRUETYPE END END END LAYER NAME county GROUP defaultLayer TYPE POLYGON TILEINDEX td_a8.shp STATUS OFF LABELITEM "NAME" CLASSITEM "NAME" MAXSCALE 15550000 CLASS NAME "County Boundary" COLOR 255 239 219 OUTLINECOLOR 97 97 97 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION AUTO SIZE MEDIUM TYPE TRUETYPE END END END LAYER NAME majorWater GROUP defaultLayer TYPE POLYGON TILEINDEX td_wa.shp STATUS ON LABELITEM "NAME" CLASSITEM "NAME" MAXSCALE 50000 CLASS COLOR 0 0 255 OUTLINECOLOR 71 60 139 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION AUTO SIZE MEDIUM TYPE TRUETYPE END END END LAYER NAME minorWater GROUP defaultLayer TYPE LINE TILEINDEX td_wl.shp STATUS ON LABELITEM "NAME" CLASSITEM "NAME" MAXSCALE 10000 MINSCALE 0.01 CLASS NAME "River" COLOR 99 184 255 OUTLINECOLOR 0 0 0 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION AUTO SIZE MEDIUM TYPE TRUETYPE END END END LAYER NAME landUse GROUP defaultLayer TYPE POLYGON TILEINDEX td_lu.shp STATUS ON LABELITEM "NAME" CLASSITEM "DISPLTYP" MAXSCALE 10000 MINSCALE 0.01 CLASS NAME "Land use" COLOR 0 126 0 OUTLINECOLOR 0 0 0 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION AUTO SIZE MEDIUM TYPE TRUETYPE END END END LAYER NAME urbanAreas GROUP defaultLayer TYPE POLYGON TILEINDEX td_oa2.shp STATUS ON LABELITEM "NAME" CLASSITEM "FEATTYP" MAXSCALE 10000 MINSCALE 0.01 CLASS NAME "Urban Area" EXPRESSION ( ( [FEATTYP] == 9342 ) ) COLOR 250 235 215 OUTLINECOLOR 250 235 215 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION AUTO SIZE MEDIUM TYPE TRUETYPE END END END LAYER NAME pointsOfInterrest GROUP defaultLayer TYPE POINT TILEINDEX td_pi.shp STATUS OFF LABELITEM "NAME" CLASSITEM "FEATTYP" MAXSCALE 150000 MINSCALE 0.01 CLASS # museum EXPRESSION ( ( [FEATTYP] = 7317 ) ) NAME "Museum" BACKGROUNDCOLOR 255 255 255 COLOR 126 126 126 OUTLINECOLOR 0 0 0 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION AUTO SIZE MEDIUM TYPE TRUETYPE END END CLASS # shopping center EXPRESSION ( ( [FEATTYP] = 7373 ) ) NAME "Shopping Center" BACKGROUNDCOLOR 255 255 255 COLOR 126 126 126 OUTLINECOLOR 0 0 0 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION AUTO SIZE MEDIUM TYPE TRUETYPE END END CLASS # outdoor stadium EXPRESSION ( ( [FEATTYP] == 7374 ) ) NAME "Stadium" BACKGROUNDCOLOR 255 255 255 COLOR 126 126 126 OUTLINECOLOR 0 0 0 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION AUTO SIZE MEDIUM TYPE TRUETYPE END END CLASS # tourist attractions EXPRESSION ( ( [FEATTYP] == 7376 ) ) NAME "Attraction" COLOR 126 0 0 OUTLINECOLOR 0 0 0 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION AUTO SIZE MEDIUM TYPE TRUETYPE END END CLASS # university & college EXPRESSION ( ( [FEATTYP] == 7377 ) ) NAME "University" BACKGROUNDCOLOR 255 255 255 COLOR 126 126 126 OUTLINECOLOR 0 0 0 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION AUTO SIZE MEDIUM TYPE TRUETYPE END END CLASS # railway station EXPRESSION ( ( [FEATTYP] == 7380 ) ) NAME "Rail Station" BACKGROUNDCOLOR 255 255 255 COLOR 126 126 126 OUTLINECOLOR 0 0 0 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION AUTO SIZE MEDIUM TYPE TRUETYPE END END CLASS # airport EXPRESSION ( ( [FEATTYP] == 7383 ) ) NAME "Airport" BACKGROUNDCOLOR 255 255 255 COLOR 126 126 126 OUTLINECOLOR 0 0 0 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION AUTO SIZE MEDIUM TYPE TRUETYPE END END CLASS # conference and exhibition centers EXPRESSION ( ( [FEATTYP] == 7385 ) ) NAME "Conference Center" BACKGROUNDCOLOR 255 255 255 COLOR 126 126 126 OUTLINECOLOR 0 0 0 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION AUTO SIZE MEDIUM TYPE TRUETYPE END END CLASS # rest areas EXPRESSION ( ( [FEATTYP] = 7395 ) ) NAME "Rest Area" BACKGROUNDCOLOR 255 255 255 COLOR 0 126 0 OUTLINECOLOR 0 0 0 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION AUTO SIZE MEDIUM TYPE TRUETYPE END END CLASS # zoo EXPRESSION ( ( [FEATTYP] == 9927 ) ) NAME "Zoo" BACKGROUNDCOLOR 255 255 255 COLOR 126 126 126 OUTLINECOLOR 0 0 0 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION AUTO SIZE MEDIUM TYPE TRUETYPE END END END LAYER NAME cityCenter GROUP defaultLayer TYPE POINT TILEINDEX td_sm.shp STATUS ON LABELITEM "NAME" CLASSITEM "DISPCLASS" MAXSCALE 100000 CLASS EXPRESSION ( ( [DISPCLASS] = 3 ) ) #NAME "Big City" COLOR 126 126 126 MAXSIZE 50 MINSIZE 1 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 126 126 126 FONT Arial FORCE TRUE MAXSIZE 256 MINDISTANCE 10 MINSIZE 4 OFFSET 0 0 PARTIALS TRUE POSITION AUTO SIZE 5 TYPE TRUETYPE END END CLASS EXPRESSION ( ( [DISPCLASS] = 6 ) ) #NAME "Medium City" COLOR 126 126 126 MAXSIZE 50 MINSIZE 1 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 126 126 126 FONT Arial FORCE TRUE MAXSIZE 256 MINDISTANCE 10 MINSIZE 4 OFFSET 0 0 PARTIALS TRUE POSITION AUTO SIZE 4 TYPE TRUETYPE END END CLASS EXPRESSION ( ( [DISPCLASS] = 7 ) ) #NAME "Small City" COLOR 126 126 126 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 126 126 126 FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 MINSIZE 4 OFFSET 0 0 PARTIALS TRUE POSITION AUTO SIZE 3 TYPE TRUETYPE END END CLASS EXPRESSION ( ( [DISPCLASS] = 8 ) ) #NAME "Big Town" COLOR 126 126 126 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 126 126 126 FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 MINSIZE 4 OFFSET 0 0 PARTIALS TRUE POSITION AUTO SIZE 2 TYPE TRUETYPE END END CLASS EXPRESSION ( ( [DISPCLASS] = 9 ) ) #NAME "Medium Town" COLOR 126 126 126 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 126 126 126 FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 MINSIZE 4 OFFSET 0 0 PARTIALS TRUE POSITION AUTO SIZE 2 TYPE TRUETYPE END END CLASS EXPRESSION ( ( [DISPCLASS] = 10 ) ) #NAME "Village" COLOR 126 126 126 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 126 126 126 FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 MINSIZE 4 OFFSET 0 0 PARTIALS TRUE POSITION AUTO SIZE 2 TYPE TRUETYPE END END CLASS EXPRESSION ( ( [DISPCLASS] = 11 ) ) #NAME "Community" COLOR 126 126 126 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 126 126 126 FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 MINSIZE 4 OFFSET 0 0 PARTIALS TRUE POSITION AUTO SIZE 1 TYPE TRUETYPE END END CLASS EXPRESSION ( ( [DISPCLASS] = "12" ) ) #NAME "Small Community" COLOR 126 126 126 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 126 126 126 FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 MINSIZE 4 OFFSET 0 0 PARTIALS TRUE POSITION AUTO SIZE 1 TYPE TRUETYPE END END END LAYER NAME bridges GROUP defaultLayer TYPE LINE TILEINDEX td_ls.shp STATUS ON LABELITEM "NAME" CLASSITEM "STRUCTTYP" MAXSCALE 10000 MINSCALE 0.01 CLASS NAME "Bridge" COLOR 126 126 126 OUTLINECOLOR 0 0 0 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 OVERLAYBACKGROUNDCOLOR 255 255 255 OVERLAYCOLOR 126 126 126 OVERLAYOUTLINECOLOR 0 0 0 OVERLAYSIZE 1 OVERLAYMINSIZE 0 OVERLAYMAXSIZE 50 OVERLAYSYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION AUTO SIZE MEDIUM TYPE TRUETYPE END END END LAYER NAME ferries GROUP defaultLayer TYPE LINE TILEINDEX td_fe.shp STATUS ON LABELITEM "NAME" CLASSITEM "FRC" MAXSCALE 10000 MINSCALE 0.01 CLASS NAME "Ferry" BACKGROUNDCOLOR 255 255 255 COLOR 126 126 126 OUTLINECOLOR 0 0 0 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 OVERLAYBACKGROUNDCOLOR 255 255 255 OVERLAYCOLOR 126 126 126 OVERLAYOUTLINECOLOR 0 0 0 OVERLAYSIZE 1 OVERLAYMINSIZE 0 OVERLAYMAXSIZE 50 OVERLAYSYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION AUTO SIZE MEDIUM TYPE TRUETYPE END END END LAYER NAME street8 GROUP defaultLayer TYPE LINE TILEINDEX td_08.shp STATUS OFF LABELITEM "NAME" CLASSITEM "FRC" MAXSCALE 10000 CLASS NAME "Allies & Small Streets" BACKGROUNDCOLOR 255 255 255 COLOR 126 126 126 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 OVERLAYBACKGROUNDCOLOR 255 255 255 OVERLAYCOLOR 126 126 126 OVERLAYOUTLINECOLOR 0 0 0 OVERLAYSIZE 1 OVERLAYMINSIZE 0 OVERLAYMAXSIZE 50 OVERLAYSYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION AUTO SIZE MEDIUM TYPE TRUETYPE END END END LAYER NAME street7 GROUP defaultLayer TYPE LINE TILEINDEX td_07.shp STATUS OFF LABELITEM "NAME" CLASSITEM "FRC" MAXSCALE 10000 CLASS NAME "Small Streets" BACKGROUNDCOLOR 255 255 255 COLOR 126 126 126 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 OVERLAYBACKGROUNDCOLOR 255 255 255 OVERLAYCOLOR 126 126 126 OVERLAYOUTLINECOLOR 0 0 0 OVERLAYSIZE 1 OVERLAYMINSIZE 0 OVERLAYMAXSIZE 50 OVERLAYSYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION AUTO SIZE MEDIUM TYPE TRUETYPE END END END LAYER NAME street6 GROUP defaultLayer TYPE LINE TILEINDEX td_06.shp STATUS OFF LABELITEM "NAME" CLASSITEM "FRC" MAXSCALE 100000 CLASS NAME "Small surface streets" BACKGROUNDCOLOR 255 255 255 COLOR 126 126 126 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 OVERLAYBACKGROUNDCOLOR 255 255 255 OVERLAYCOLOR 126 126 126 OVERLAYOUTLINECOLOR 0 0 0 OVERLAYSIZE 1 OVERLAYMINSIZE 0 OVERLAYMAXSIZE 50 OVERLAYSYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION AUTO SIZE MEDIUM TYPE TRUETYPE END END END LAYER NAME street5 GROUP defaultLayer TYPE LINE TILEINDEX td_05.shp STATUS OFF LABELITEM "NAME" CLASSITEM "FRC" MAXSCALE 200000 MINSCALE 0.01 CLASS NAME "Streets" BACKGROUNDCOLOR 255 255 255 COLOR 126 126 126 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 OVERLAYBACKGROUNDCOLOR 255 255 255 OVERLAYCOLOR 126 126 126 OVERLAYOUTLINECOLOR 0 0 0 OVERLAYSIZE 1 OVERLAYMINSIZE 0 OVERLAYMAXSIZE 50 OVERLAYSYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION AUTO SIZE MEDIUM TYPE TRUETYPE END END END LAYER NAME street4 GROUP defaultLayer TYPE LINE TILEINDEX td_04.shp STATUS OFF LABELITEM "NAME" CLASSITEM "FRC" MAXSCALE 150000 CLASS NAME "Major Streets" BACKGROUNDCOLOR 255 255 255 COLOR 126 126 126 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 OVERLAYBACKGROUNDCOLOR 255 255 255 OVERLAYCOLOR 126 126 126 OVERLAYOUTLINECOLOR 0 0 0 OVERLAYSIZE 1 OVERLAYMINSIZE 0 OVERLAYMAXSIZE 50 OVERLAYSYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION AUTO SIZE MEDIUM TYPE TRUETYPE END END END LAYER NAME street3 GROUP defaultLayer TYPE LINE TILEINDEX td_03.shp STATUS OFF LABELITEM "NAME" CLASSITEM "FRC" #MAXSCALE 1550000 #MINSCALE 0.001 CLASS NAME "Highways" BACKGROUNDCOLOR 255 255 255 COLOR 126 126 126 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION AUTO SIZE 12 TYPE TRUETYPE END END END LAYER NAME street1 GROUP defaultLayer TYPE LINE TILEINDEX td_01.shp #DATA usa06037______00 STATUS ON LABELITEM "NAME" MAXSCALE 15550000.0 MINSCALE 0.00001 CLASS NAME "US Highways" BACKGROUNDCOLOR 255 255 255 COLOR 0 255 0 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION AUTO SIZE 12 TYPE TRUETYPE END END END LAYER NAME street0 GROUP defaultLayer TYPE LINE TILEINDEX td_00.shp STATUS OFF LABELITEM "NAME" #MAXSCALE 15550000 #MINSCALE 0.001 CLASS NAME "Interstates" COLOR 255 0 0 SIZE 3 SYMBOL 0 END END LAYER NAME street01_annotation GROUP defaultLayer STATUS OFF TILEINDEX td_01.shp TYPE ANNOTATION LABELITEM "ROUTENUM" CLASSITEM "ROUTENUM" CLASS EXPRESSION /HWY.*/ COLOR 0 0 0 SYMBOL 'symbols/sthwy.png' LABEL COLOR 0 0 0 WRAP "/" #MINFEATURESIZE 40 MINDISTANCE 150 POSITION CC SIZE tiny END END CLASS EXPRESSION /US.*/ COLOR 0 0 0 SYMBOL 'symbols/ushwy.png' LABEL COLOR 0 0 0 WRAP "/" #MINFEATURESIZE 40 MINDISTANCE 150 POSITION CC SIZE tiny END END CLASS EXPRESSION /I.*/ COLOR 0 0 0 SYMBOL 'symbols/interstate.png' LABEL COLOR 255 255 255 WRAP "/" #MINFEATURESIZE 40 MINDISTANCE 150 POSITION CC SIZE tiny END END END LAYER NAME street00_annotation GROUP defaultLayer STATUS OFF TILEINDEX td_00.shp TYPE ANNOTATION LABELITEM "NAME" CLASS COLOR 200 0 0 SYMBOL 'symbols/interstate.png' LABEL COLOR 255 255 255 WRAP "/" #MINFEATURESIZE 40 MINDISTANCE 150 POSITION CC SIZE TINY END END END LAYER NAME SensorPoint TYPE POINT STATUS ON CLASS NAME 'Slow' COLOR 255 0 0 OUTLINECOLOR 255 0 0 SYMBOL 'circle' SIZE 6 LABEL END END CLASS NAME 'Medium' COLOR 255 255 0 OUTLINECOLOR 255 255 0 SYMBOL 'circle' SIZE 6 LABEL END END CLASS NAME 'Fast' COLOR 0 255 0 OUTLINECOLOR 0 255 0 SYMBOL 'circle' SIZE 6 LABEL END END CLASS NAME 'Start' COLOR 0 255 0 OUTLINECOLOR 255 255 255 SYMBOL 'star' SIZE 15 LABEL END END CLASS NAME 'Finish' COLOR 255 0 0 OUTLINECOLOR 255 255 255 SYMBOL 'star' SIZE 15 LABEL END END CLASS NAME 'Unknown' COLOR 128 128 128 OUTLINECOLOR 0 0 0 SYMBOL 'circle' SIZE 6 LABEL END END END LAYER NAME SensorLine TYPE LINE STATUS ON FEATURE END CLASS NAME 'Slow' COLOR 255 0 0 OUTLINECOLOR 0 0 0 SYMBOL 'circle' SIZE 5 LABEL COLOR 0 0 255 TYPE BITMAP SIZE LARGE PARTIALS TRUE END END CLASS NAME 'Medium' COLOR 255 255 0 OUTLINECOLOR 0 0 0 SYMBOL 'circle' SIZE 5 LABEL COLOR 0 0 255 TYPE BITMAP SIZE LARGE PARTIALS TRUE END END CLASS NAME 'Fast' COLOR 0 255 0 OUTLINECOLOR 0 0 0 SYMBOL 'circle' SIZE 5 LABEL COLOR 0 0 255 TYPE BITMAP SIZE LARGE PARTIALS TRUE END END END LAYER NAME new_route TYPE LINE STATUS ON FEATURE END CLASS NAME 'segment' OUTLINECOLOR 128 0 0 COLOR 30 144 255 SYMBOL 'circle' SIZE 5 END CLASS NAME 'segment2' OUTLINECOLOR 128 128 128 COLOR 255 255 255 SYMBOL 'circle' SIZE 5 END END LAYER NAME Labelling TYPE LINE STATUS OFF TRANSFORM FALSE LABELCACHE FALSE CLASS NAME 'gray' SIZE 1 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT Arial SIZE 7 POSITION UC END END FEATURE END END # # Start of web interface definition (including WMS enabling metadata) # WEB HEADER ca_header.html TEMPLATE ca.html FOOTER ca_footer.html MINSCALE 0.001 MAXSCALE 15550000 LOG "/home/dodger/public_html/mapsite/tmp/log.txt" #IMAGEPATH "/a/perforce/ots/traffic/mapsite/tmp/" #IMAGEURL "/~bud/mapsite/tmp/" METADATA WMS_TITLE "TrafficDodger Demo" WMS_ABSTRACT "This is the TrafficDodger Demo application for Los Angeles Metro." WMS_ACCESSCONSTRAINTS none # change this value to match your setup WMS_ONLINERESOURCE "http://extempore.otsys.com/~dodger/mapsite/" WMS_SRS "EPSG:26915" END END END # Map File From woodbri at swoodbridge.com Tue Apr 16 08:00:20 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 16 Apr 2002 11:00:20 -0400 Subject: [mapserver-users] PERL MINSCALE MAXSCALE display control References: <20020416142516.GA10432@extempore.otsys.com> Message-ID: <3CBC3C84.5B0436E6@swoodbridge.com> Joe this sounds like you might have one of the following problems: 1) your tileindex is not right 2) the extents on your shp file are wrong 3) your shp file units or mapfile units or projection are not all compatible 4) you have an out of data *.qix file Try setting up a test mapfile with mimimal data to make it easier to diagnose the problem. Hope this helps, -Steve Joe Bussell wrote: > > Is there anything about data which could override decalred MINSCALE and > MAXSCALE? I have road data for Los Angeles County and the four > surrounding counties. I declare the layer in my map file and set the > scale range to cover every zoom level I am using and I observe an odd > behavior. The default map does not show me the roads in LA, but the > surrounding counties display correctly. When I zoom out all the data is > painted. At any zoom level out away from that point I can observe the > road network. If I try to zoom in the LA roads do not get painted. > > What are the right questions to ask debugging this? I have verified > that the MAP, LAYER and CLASS definitions are correct in my map file by > replacing the DATA value with other randomly selected data sets which do > not demonstrate this behavior. Any insight would be helpful. > > Cordially, > > Joe Bussell > > ------------------------------------------------------------------------ > > td.mapName: td.map > Type: Plain Text (text/plain) From LEllenbecker at co.winnebago.wi.us Tue Apr 16 08:57:24 2002 From: LEllenbecker at co.winnebago.wi.us (Ellenbecker, Larry) Date: Tue, 16 Apr 2002 10:57:24 -0500 Subject: [mapserver-users] zoom to query on shape attribute Message-ID: HI, I've been checking query/filter listings and have not found a snippit that does what I want. I'm using ms 3.5 in basic cgi. I need help with: 1. I want to use a itemtype text prompt to have a user enter a parcel id number from my webpage.html. Everything I find seems to be derived from a select list. 2. Select the parcel from the parcel layer .dbf attribute table. Need syntax for the webpage.map file. 3. Zoom to that parcel and outline or shade it with a contrasting color from the normal parcel layer in the normal webpage map display area. Thanks in advance. Larry GIS System Analyst Winnebago County From morissette at dmsolutions.ca Tue Apr 16 10:36:17 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 16 Apr 2002 13:36:17 -0400 Subject: [mapserver-users] PERL MINSCALE MAXSCALE display control References: <20020416142516.GA10432@extempore.otsys.com> <3CBC3C84.5B0436E6@swoodbridge.com> Message-ID: <3CBC6111.32EDC786@dmsolutions.ca> Joe, Steve, Also note that there was a bug in the 3.5 release of MapServer (that was there since the beginning of times) which caused this type of problem with some .qix files. This has been fixed a little while ago and the fix is present in the current CVS version. Try deleting your .qix file if you have one, and if the problem goes away then you have run into this bug. You'll have to get a recent 3.6-dev build in which this is fixed. Daniel Stephen Woodbridge wrote: > > Joe this sounds like you might have one of the following problems: > > 1) your tileindex is not right > 2) the extents on your shp file are wrong > 3) your shp file units or mapfile units or projection are not all > compatible > 4) you have an out of data *.qix file > > Try setting up a test mapfile with mimimal data to make it easier to > diagnose the problem. > > Hope this helps, > -Steve > > Joe Bussell wrote: > > > > Is there anything about data which could override decalred MINSCALE and > > MAXSCALE? I have road data for Los Angeles County and the four > > surrounding counties. I declare the layer in my map file and set the > > scale range to cover every zoom level I am using and I observe an odd > > behavior. The default map does not show me the roads in LA, but the > > surrounding counties display correctly. When I zoom out all the data is > > painted. At any zoom level out away from that point I can observe the > > road network. If I try to zoom in the LA roads do not get painted. > > > > What are the right questions to ask debugging this? I have verified > > that the MAP, LAYER and CLASS definitions are correct in my map file by > > replacing the DATA value with other randomly selected data sets which do > > not demonstrate this behavior. Any insight would be helpful. > > > > Cordially, > > > > Joe Bussell > > > > ------------------------------------------------------------------------ > > > > td.mapName: td.map > > Type: Plain Text (text/plain) From ARyan at co.linn.or.us Tue Apr 16 11:08:03 2002 From: ARyan at co.linn.or.us (Ryan, Adam) Date: Tue, 16 Apr 2002 11:08:03 -0700 Subject: [mapserver-users] Accessing external files using javascript (other) Message-ID: <614FCE5F14A6D41180C200010240D6A29A3F4D@LINNMS> Hi folks, I'm new to HTML/JavaScript. Is there a simple way to make calls to an external file using javascript (other script)? Access, dBase, text file, anything? I want to manipulate my returned template according to some values saved elsewhere. Thanks, Adam Ryan Linn County GIS From steve.lime at dnr.state.mn.us Tue Apr 16 12:28:48 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Tue, 16 Apr 2002 14:28:48 -0500 Subject: [mapserver-users] itemquerymap attributes Message-ID: If you're just retrieving the map there's no way to get at the extent coordinates too. I've tinkered with encoding them in image headers, but that doesn't help all that much. Other work arounds would depend on what you're actually trying to do in your application. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> laurentiu lionte 04/16/02 05:34AM >>> Hello everybody!!! I have finally solved the problem "zooming to a point feature in itemquerymap". If anybody want help for the problem above just send me an e-mail. And now my problem: Does anybody know how to obtain [mapext], [imgxy]and[imgbox] values for an itemquerymap? Actually [mapext] is the most important. Thank you, Lawrence --------------------------------- Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax From steve.lime at dnr.state.mn.us Tue Apr 16 12:29:24 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Tue, 16 Apr 2002 14:29:24 -0500 Subject: [mapserver-users] Fwd: zoom to query on shape attributeHI, Message-ID: An embedded message was scrubbed... From: "Ellenbecker, Larry" Subject: zoom to query on shape attributeHI, Date: Tue, 16 Apr 2002 08:24:20 -0500 Size: 1742 URL: From mistcat at eudoramail.com Tue Apr 16 13:13:06 2002 From: mistcat at eudoramail.com (nate parsons) Date: Tue, 16 Apr 2002 16:13:06 -0400 Subject: [mapserver-users] PHP 4.12 Unix MapScript ETA Message-ID: Dear List, Does anyone know what the timeline is for a Unix/PHP/Mapscript release for PHP 4.12? Is this release tied to the release of mapserver 3.6, and if so what is the timeline on its release? Is PHP-Mapscript being readied for the release of PHP 4.2? (which will be released sometime in the next two months I would imagine...) Thanks, Nate Parsons Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at http://www.eudoramail.com From pushkar at ERC.MsState.Edu Tue Apr 16 13:25:15 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Tue, 16 Apr 2002 15:25:15 -0500 (CDT) Subject: [mapserver-users] Accessing external files using javascript (other) In-Reply-To: <614FCE5F14A6D41180C200010240D6A29A3F4D@LINNMS> Message-ID: Hi Ryan, I think you might have to pursue php or perl etc. Can you give more details on what you need to do? > > Hi folks, > > I'm new to HTML/JavaScript. Is there a simple way to make calls to an > external file using javascript (other script)? Access, dBase, text file, > anything? I want to manipulate my returned template according to some > values saved elsewhere. > > Thanks, > > Adam Ryan > Linn County GIS > -Pushkar S. Pradhan From robert at wotzhere.com Tue Apr 16 14:53:56 2002 From: robert at wotzhere.com (Robert Crossley) Date: Wed, 17 Apr 2002 07:53:56 +1000 Subject: [mapserver-users] Accessing external files using javascript (other) In-Reply-To: <614FCE5F14A6D41180C200010240D6A29A3F4D@LINNMS> Message-ID: 17/04/2002 04:08:03, "Ryan, Adam" wrote: > >Hi folks, > >I'm new to HTML/JavaScript. Is there a simple way to make calls to an >external file using javascript (other script)? Access, dBase, text file, >anything? I want to manipulate my returned template according to some >values saved elsewhere. > Adam, I had a similar dilema. The problem a I saw it was there was a limited amount you could do on the template in terms of server side processing. I ended up doing this by putting a redirection to an asp page on the template, and getting data from a database using server side scripting. In this way I was able to pass a value of the ID for an object selected from the map to that page and do what I wanted with it. The template code for the body is provided blelow, and you do not need to specify a web header, footer or template header in the map file. In this example, the PadID is replaced by mapserver to be the value of C_LINKCODE found for the object in the search, and a second parameter is also passed for query type. Once on an asp page, you can access databases using standard asp scripting if your on a windows server. Others may be able to tell you options on unix etc. using other scripting languages that can call databases. Good Luck Rob Template code follows.

If JavaScript is disabled in your browser, please turn it back on then reload this page.

Or, if your browser does not support JavaScript, click here. > Robert Crossley Robert Crossley & Associates 9 Short St New Brighton NSW 2483 AUSTRALIA P: 02 6680 1309 F: New Connection M: 0419 718 642 E: robert at wotzhere.com From pushkar at ERC.MsState.Edu Tue Apr 16 15:11:15 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Tue, 16 Apr 2002 17:11:15 -0500 (CDT) Subject: [mapserver-users] OFFSITE for RGB images with GDAL In-Reply-To: <3CBB34AB.3060705@pobox.com> Message-ID: Frank, I am also wanting to do the same thing: - i've erdas img. files, I want to set to x'parent the black sides of the image doing OFFSITE 0 doesn't work in the layer object. >From your email I understand that to set x'parency options on 24bit images you must have tiffs/pngs that too which have alpha channels, right? I have erdas .img files and need to choose from the various bands which 3 to load (this has been done by using modified code of mapserver from stepan kapka). This means I've to do a "hack" in mapraster.c as you suggest? Thanks. > Simpson, Andrew wrote: > > What value should be used for the OFFSITE parameter when displaying > > 24bit RGB images? > > > > > > > > 0,0,0 is the color I would like to make transparent. > > > > Andrew, > > Unfortunately, it does not currently appear to be possible to utilize the > OFFSITE capability with RGB (24bit) GDAL images in MapServer. However, the > GDAL code does support alpha bands, so if you can produce PNG or TIFF files > with an Alpha layer, and set the alpha to 0 for areas you want to be > transparent, and if you ensure the files are treated by GDAL (not the builtin > PNG or TIFF drivers) then you can get transparency. > > Of course, if you are bold you can easily hack the inner RGB loop to do what > you want in drawGDAL() in mapraster.c. > > 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 > > -Pushkar S. Pradhan From llionte at yahoo.com Tue Apr 16 22:43:18 2002 From: llionte at yahoo.com (laurentiu lionte) Date: Tue, 16 Apr 2002 22:43:18 -0700 (PDT) Subject: [mapserver-users] paning around a queryed location Message-ID: <20020417054318.59481.qmail@web9904.mail.yahoo.com> Steve Lime wrote: If you're just retrieving the map there's no way to get at the extent coordinates too. I've tinkered with encoding them in image headers, but that doesn't help all that much. Other work arounds would depend on what you're actually trying to do in your application. Steve Oh, seems to be a very bad issue!!! I need to locate a point using itemquerymap (does anybody know another method?). Then I need to pan around this location. This is a basic functionality for any GIS-like application. According to this, I need to obtain the selected point coordinates (at least), or, for more than one selected point ,the extent or extent center of all selected features. If anybody knows how to obtain the coordinates of a selected feature or other information how to obtain this, please let me know. Thank you, Lawrence --------------------------------- Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax -------------- next part -------------- An HTML attachment was scrubbed... URL: From guillaume.sueur at khi2.fr Wed Apr 17 00:18:07 2002 From: guillaume.sueur at khi2.fr (Guillaume SUEUR) Date: Wed, 17 Apr 2002 09:18:07 +0200 Subject: [mapserver-users] PHP module Message-ID: <39C3B358D4E29A418FEC50B4FD75E663068364@khi2-msg.khi2.fr> Hi folks, I've just installed php 4.1.2 on a W2000 Server and it works fine. But after installing MapScript module I get this error message: Unable to load dynamic library 'c:\php\extensions\php_mapscript_35.dll' - The file is located into the correct directory... Any idea ? Thanks ------------------------------ Guillaume SUEUR Ing?nieur d?veloppement GEOSIGNAL 25 bis avenue Marcel Dassault BP 5836 31505 TOULOUSE CEDEX 5 T?l : 05 61 17 47 17 Fax : 05 61 54 30 14 ------------------------------- From akh at le34.dk Wed Apr 17 00:59:15 2002 From: akh at le34.dk (Anders Knudstrup Hansen LE34) Date: Wed, 17 Apr 2002 09:59:15 +0200 Subject: [mapserver-users] Problem with SIZEUNITS Message-ID: When I try yo use the sizeunits identifier I get the following error msg. loadClass(): Unknown identifier. (SIZEUNITS):(73) This is the output from my mapserver: \cgi-bin>mapserv -v MapServer version 3.5 OUTPUT=GIF OUTPUT=PNG SUPPORTS=TTF INPUT=TIFF INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Shouldn't sizeunits be supported by the version i'm using????? Thanks. Anders Knudstrup Hansen From urasidin at email.com Wed Apr 17 01:41:38 2002 From: urasidin at email.com (Untung Rasidin) Date: Wed, 17 Apr 2002 03:41:38 -0500 Subject: [mapserver-users] itemquery using dynamic expressions Message-ID: <20020417084138.3947.qmail@email.com> Hi all, I am new to mapserver. I use mapserver3.5 With Reference to mail: Subject: Re: point file filter From: "Stephen Lime" Date: Mon, 05 Feb 2001 09:28:22 -0600 I am having problem with itemquery using dynamic expressions (from Mr.Steve Lime) in html form. The problems are: - the attribute QUERYMAP (in map file) have no influence, why? .So the result image just display an area/region that was selected/queried and others region not shown. But I want to use QUERYMAP to display the result of query in html template with hilite color. - the result of query (a field from dbf file) not shown, noquery result. here is my map fie: NAME DEMO STATUS ON SIZE 600 600 #world94 EXTENT -194.32 120.82 194.32 -120.47 SHAPEPATH "data" IMAGECOLOR 255 255 255 WEB TEMPLATE world.html IMAGEPATH "/var/www/html/tmp/" IMAGEURL "/tmp/" END QUERYMAP #No influence ,why ? SIZE 200 200 STATUS ON COLOR 255 255 0 STYLE HILITE END LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END # LAYER NAME world94 TYPE POLYGON STATUS DEFAULT DATA world94 CLASS OUTLINECOLOR 250 0 0 END TEMPLATE "world.html" END END # LAYER world94 END # Map File Here is my form:

PICK A COUNTRY:
Version :[version] COUNTRYAREALIFE EXPECTATION
[ABBREVNAME] [AREA][LIFE_EXP] Maybe some one can find what wrong with this? Would you give me a simple axample of html form/map file for 'itemquery' please,please ! Thanks in advance Untung Rasidin Web Programmer PT.Virtuon Technologies,Bandung,Indonesia www.virtuontech.com -- _______________________________________________ Sign-up for your own FREE Personalized E-mail at Email.com http://www.email.com/?sr=signup From dbarron at ddive.com Wed Apr 17 01:48:01 2002 From: dbarron at ddive.com (Dan Barron) Date: Wed, 17 Apr 2002 01:48:01 -0700 Subject: [mapserver-users] Help with Java MapScript Compile for Windows Message-ID: <5.1.0.14.0.20020417014013.0351f678@pop-server.san.rr.com> Hi, Can anyone provide a brief description of the steps needed to compile MapScript Java on Windows? I use Win2000 and have downloaded the Borland free C++ compiler as well as the SWIG 1.3.11 for windows. I have made mods to the Java Mapscript Makefile provided with the nightly build and end up with errors when running make, but also get .java files out. What should I expect to see? Thanks, Dan Barron From diego at torno.ing.unico.it Wed Apr 17 01:45:44 2002 From: diego at torno.ing.unico.it (Diego Magni) Date: Wed, 17 Apr 2002 10:45:44 +0200 Subject: [mapserver-users] Multiple queries with PostGIS Message-ID: <200204170901.g3H91vP0002599@geomatica.ing.unico.it> Dear List, I'm working with MapServer 3.5.1 (downloaded with Windows32 binary), PostgreSQL 7.1.1 and PostGIS 0.6.2. I have problems for implementing multiple queries (CGI mode: "FEATUREQUERY" or "ITEMNQUERY") because I can't modify the filter SQL string via a form or a URL. After the selection of a new map file FILTER parameter, the PostGIS connection doesn't open the database and the error message appearing is msPOSTGISLayerWhichShapes(): Query error. prep_DB:Error executing POSTGIS DECLARE statement (0.6 failed - retried 0.5 and it failed too). I've tried also to build multiple queries using the CLASSITEM and EXPRESSION map file parameters and changing them via form. I've seen that it's possible to do it, but in this way you can't use complex SQL strings available in case of the filter change. How can I make multiple query with the possibility of selecting item and value to be searched by the user? In other words, can I create queries using an association item-value like it was possible with MapServer 3.3? Thank you Best regards Diego Magni From guillaume.sueur at khi2.fr Wed Apr 17 02:32:30 2002 From: guillaume.sueur at khi2.fr (Guillaume SUEUR) Date: Wed, 17 Apr 2002 11:32:30 +0200 Subject: [mapserver-users] php module Message-ID: <39C3B358D4E29A418FEC50B4FD75E66301962D@khi2-msg.khi2.fr> Forget my previous message, it's been fixed up. Thx ------------------------------ Guillaume SUEUR Ing?nieur d?veloppement GEOSIGNAL 25 bis avenue Marcel Dassault BP 5836 31505 TOULOUSE CEDEX 5 T?l : 05 61 17 47 17 Fax : 05 61 54 30 14 ------------------------------- From woodbri at swoodbridge.com Wed Apr 17 03:06:14 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 17 Apr 2002 06:06:14 -0400 Subject: [mapserver-users] paning around a queryed location References: <20020417054318.59481.qmail@web9904.mail.yahoo.com> Message-ID: <3CBD4916.CDA7E65B@swoodbridge.com> I think most people do this using mapscript. -Steve laurentiu lionte wrote: > > Steve Lime wrote: > > If you're just retrieving the map there's no way to get at the extent > coordinates too. I've tinkered with encoding them in image headers, > but that doesn't help all that much. Other work arounds would depend > on what you're actually trying to do in your application. > > Steve > > > > Oh, seems to be a very bad issue!!! > I need to locate a point using itemquerymap (does anybody know another > method?). > Then I need to pan around this location. This is a basic functionality > for any GIS-like application. > According to this, I need to obtain the selected point coordinates (at > least), or, > for more than one selected point ,the extent or extent center of all > selected features. > If anybody knows how to obtain the coordinates of a selected feature > or other information > how to obtain this, please let me know. > > Thank you, > > Lawrence > > ---------------------------------------------------------------------- > Do You Yahoo!? > Yahoo! Tax Center - online filing with TurboTax From woodbri at swoodbridge.com Wed Apr 17 03:16:38 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 17 Apr 2002 06:16:38 -0400 Subject: [mapserver-users] Problem with SIZEUNITS References: Message-ID: <3CBD4B86.516023C4@swoodbridge.com> Anders, There is a SIZE and a UNITS as two separate items in the map file but I am not aware of a SIZEUNITS item. Please check your map file reference again. What section are you trying to use this in? -Steve Anders Knudstrup Hansen LE34 wrote: > > When I try yo use the sizeunits identifier I get the following error msg. > > loadClass(): Unknown identifier. (SIZEUNITS):(73) > > This is the output from my mapserver: > \cgi-bin>mapserv -v > MapServer version 3.5 OUTPUT=GIF OUTPUT=PNG SUPPORTS=TTF INPUT=TIFF INPUT=EPPL7 > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > Shouldn't sizeunits be supported by the version i'm using????? > > Thanks. > > Anders Knudstrup Hansen From diego at torno.ing.unico.it Wed Apr 17 03:11:53 2002 From: diego at torno.ing.unico.it (Diego Magni) Date: Wed, 17 Apr 2002 12:11:53 +0200 Subject: [mapserver-users] Problem with DD Message-ID: <200204171028.g3HAS6P0002734@geomatica.ing.unico.it> [mapserver-users] Problem with DD To: Subject: [mapserver-users] Problem with DD From: "Stefano Bonnin" Date: Wed, 3 Apr 2002 14:56:53 +0200 Organization: comai abitat s.r.l. I have developed a MapServer application where the North Italy Map is displayed. My problem is the following: in the map file I have written the following code: NAME DEMO STATUS ON SIZE 600 600 EXTENT 6.174567 42.975424 14.815678 47.143435 UNITS DD SHAPEPATH "data" IMAGECOLOR 255 255 255 SYMBOLSET /Inetpub/wwwroot/Nord/symbols/symbol.sym FONTSET /WINNT/Fonts/fonts.list .... .... .... but the Italy Map doesn't appear entirely (only a piece) and if I try to increase the DD interval MapServer show me the same piece of map. Why? Thanks in advance. --- ****** ****** Good morning, maybe the problem is that the SIZE image is a square (600 x 600 pixels), the EXTENTisn't (8,641111 x 4,168011 DD). You can try to change the SIZE according the EXTENTION dimensions. Diego Magni From stepan.kafka at centrum.cz Wed Apr 17 03:38:10 2002 From: stepan.kafka at centrum.cz (Stepan Kafka) Date: Wed, 17 Apr 2002 12:38:10 +0200 Subject: [mapserver-users] Problem with SIZEUNITS In-Reply-To: Message-ID: <000401c1e5fb$f8588f70$7e3c2fc3@HSGIS> What do you have on the line above this one? Maybe there is the error. :-) Stepan Kafka > -----P?vodn? zpr?va----- > Od: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]za u?ivatele Anders > Knudstrup Hansen LE34 > Odesl?no: 17. dubna 2002 9:59 > Komu: mapserver-users at lists.gis.umn.edu > P?edm?t: [mapserver-users] Problem with SIZEUNITS > > > When I try yo use the sizeunits identifier I get the following error msg. > > loadClass(): Unknown identifier. (SIZEUNITS):(73) > > This is the output from my mapserver: > \cgi-bin>mapserv -v > MapServer version 3.5 OUTPUT=GIF OUTPUT=PNG SUPPORTS=TTF > INPUT=TIFF INPUT=EPPL7 > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > Shouldn't sizeunits be supported by the version i'm using????? > > Thanks. > > Anders Knudstrup Hansen > > From johnhagstrand at interageresearch.com Wed Apr 17 03:37:06 2002 From: johnhagstrand at interageresearch.com (John Hagstrand) Date: Wed, 17 Apr 2002 05:37:06 -0500 Subject: [mapserver-users] line width Message-ID: <4.3.2.7.0.20020417053519.00b9b758@pop.registeredsite.com> Hello, How do I specify line width for line shape files? Mine are coming up two pixels wide, and I want it to be one. Thanks John ------------------------------------------------- John Hagstrand Interage Research, Inc. 847 838 5371 Software Development Consulting for Internet Archive Retrieval We help archives make knowledge accessible, useful, and relevant for everyone. http://www.interageresearch.com From akh at le34.dk Wed Apr 17 04:06:08 2002 From: akh at le34.dk (Anders Knudstrup Hansen LE34) Date: Wed, 17 Apr 2002 13:06:08 +0200 Subject: [mapserver-users] Problem with SIZEUNITS Message-ID: The problem was that I was using sizeunits on the class object.... The layer in the mapfile should've looked like this: layer NAME "Search_areas" TYPE Point STATUS on connectiontype ogr connection "data/tab/Radier.TAB" classitem "Op" SIZEUNITS meters class EXPRESSION "80" SYMBOL "circle" SIZE 160 color 255 0 0 end end Thanks Anders Knudstrup Hansen -----Oprindelig meddelelse----- Fra: Stepan Kafka [mailto:stepan.kafka at centrum.cz] Sendt: 17. april 2002 12:38 Til: Anders Knudstrup Hansen LE34; mapserver-users at lists.gis.umn.edu Emne: RE: [mapserver-users] Problem with SIZEUNITS What do you have on the line above this one? Maybe there is the error. :-) Stepan Kafka > -----P?vodn? zpr?va----- > Od: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]za uzivatele Anders > Knudstrup Hansen LE34 > Odesl?no: 17. dubna 2002 9:59 > Komu: mapserver-users at lists.gis.umn.edu > P?edm?t: [mapserver-users] Problem with SIZEUNITS > > > When I try yo use the sizeunits identifier I get the following error msg. > > loadClass(): Unknown identifier. (SIZEUNITS):(73) > > This is the output from my mapserver: > \cgi-bin>mapserv -v > MapServer version 3.5 OUTPUT=GIF OUTPUT=PNG SUPPORTS=TTF > INPUT=TIFF INPUT=EPPL7 > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > Shouldn't sizeunits be supported by the version i'm using????? > > Thanks. > > Anders Knudstrup Hansen > > From lfilak at medinaco.org Wed Apr 17 06:02:12 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Wed, 17 Apr 2002 09:02:12 -0400 Subject: [mapserver-users] Fwd: zoom to query on shape attributeHI, Message-ID: <200204171253.g3HCrGQ01224@yogi.medinaco.net> I'm not sure that everything on your list can be done without the use of Mapscript. However if you decide to check into Mapscript there should be quite a bit of discussion on those subjects. Lowell F. The following message was sent by "Steve Lime" on Tue, 16 Apr 2002 14:29:24 -0500. > Received: from mail.state.mn.us > (state.mn.us [156.99.125.109]) > by co5.dnr.state.mn.us; Tue, 16 Apr 2002 08:26:49 -0500 > Return-Path: > Received: from lists.gis.umn.edu by mail.state.mn.us with ESMTP for steve.lime at dnr.state.mn.us; Tue, 16 Apr 2002 08:25:19 -0500 > Received: from wcmail.co.winnebago.wi.us (co.winnebago.wi.us [205.213.24.35]) > by lists.gis.umn.edu (8.9.3+Sun/8.9.1) with ESMTP id IAA21862 > for ; Tue, 16 Apr 2002 08:26:27 -0500 (CDT) > Received: by WCMAIL with Internet Mail Service (5.5.2653.19) > id ; Tue, 16 Apr 2002 08:24:20 -0500 > Message-Id: > From: "Ellenbecker, Larry" > To: "'mapserver-info at lists.gis.umn.edu'" > Subject: zoom to query on shape attributeHI, > Date: Tue, 16 Apr 2002 08:24:20 -0500 > Return-Receipt-To: "Ellenbecker, Larry" > X-Mailer: Internet Mail Service (5.5.2653.19) > MIME-Version: 1.0 > Content-Type: text/plain; charset="iso-8859-1" > > HI, > > I've been checking query/filter listings and have not found a snippit that > does what I want. I'm using ms 3.5 in basic cgi. I need help with: > > 1. I want to use a itemtype text prompt to have a user enter a parcel > id number from my webpage.html. Everything I find seems to be derived from a > select list. > 2. Select the parcel from the parcel layer .dbf attribute table. Need > syntax for the webpage.map file. > 3. Zoom to that parcel and outline it with a contrasting color from the > normal parcel layer in the normal webpage map display area. > > Thanks in advance. > > Larry > GIS System Analyst > Winnebago County From kames at keyspanenergy.com Wed Apr 17 06:41:44 2002 From: kames at keyspanenergy.com (Kieran J. Ames) Date: Wed, 17 Apr 2002 09:41:44 -0400 Subject: [mapserver-users] Finding pixel location from decimal degrees Message-ID: <3CBD7B98.57D6E357@keyspanenergy.com> Hello list, I'd like to know if anyone can share some wisdom with me. I typically would make a map of a polygon and a point, using a decimal degrees. I'd like to now look at the resulting gif image from a pixel perspective and, knowing the latitude and longitude of the point I originally made, again find that point by referencing its location by the number of pixels right and down of the top-left pixel in the image (or whatever other referencing means is appropriate). Any guidance appreciated. Thanks, Kieran From Michael.Smith at erdc.usace.army.mil Wed Apr 17 06:43:32 2002 From: Michael.Smith at erdc.usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Wed, 17 Apr 2002 09:43:32 -0400 Subject: [mapserver-users] Mapscript Changes in 3.6 Message-ID: <048FBD219330D211B47000A0C9B3BAFD026273D4@crl02.crrel.usace.army.mil> using Perl, I am trying to get the projection of a map file using my $project = $map->{projection}; This worked in 3.5. How do you now get the projection of a map file in 3.6. Thanks Mike Smith Mike Smith email: michael.smith at erdc.usace.army.mil RSGISC ERDC - CRREL Hanover, NH 03755 (603) 646-4765 From woodbri at swoodbridge.com Wed Apr 17 07:04:44 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 17 Apr 2002 10:04:44 -0400 Subject: [mapserver-users] line width References: <4.3.2.7.0.20020417053519.00b9b758@pop.registeredsite.com> Message-ID: <3CBD80FC.89F9D7EE@swoodbridge.com> John, can you post the section of your map file that controls the shapefiles in question. Typically, it is the SIZE parameter often used in conjunction with SYMBOL 'circle' -Steve John Hagstrand wrote: > > Hello, > How do I specify line width for line shape files? Mine are coming up two > pixels wide, and I want it to be one. > Thanks > John > > ------------------------------------------------- > John Hagstrand > Interage Research, Inc. > 847 838 5371 > Software Development Consulting for Internet Archive Retrieval > We help archives make knowledge accessible, useful, and relevant for everyone. > http://www.interageresearch.com From Regina.Obe.PFD at ci.boston.ma.us Wed Apr 17 07:06:45 2002 From: Regina.Obe.PFD at ci.boston.ma.us (Obe, Regina DND\MIS) Date: Wed, 17 Apr 2002 10:06:45 -0400 Subject: [mapserver-users] Multiple queries with PostGIS Message-ID: I don't know if this helps - here is a sample from my postgis map file that searches by form fields named StNum and Street and Zip LAYER STATUS OFF NAME "parcelsq" CONNECTIONTYPE postgis CONNECTION "user=robedev dbname=dnddts host=dnd1" DATA "the_geom from streets" TYPE LINE FILTER "upper(street) Like upper('%Street%%') AND zip LIKE '%zip%%' AND ('%StNum%'='' or '%StNum%' between fromleft and toleft or '%StNum%' between fromright and toright) " CLASS SYMBOL 0 OUTLINECOLOR 25 25 0 END HEADER parcelfinder.htm #TEMPLATE parcelstreetsds.htm TEMPLATE blank.htm FOOTER parcelfooter.htm END My html form looks like this
Query By Address
Street Num: Street: Zip:
-----Original Message----- From: Diego Magni [mailto:diego at torno.ing.unico.it] Sent: Wednesday, April 17, 2002 4:46 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Multiple queries with PostGIS Dear List, I'm working with MapServer 3.5.1 (downloaded with Windows32 binary), PostgreSQL 7.1.1 and PostGIS 0.6.2. I have problems for implementing multiple queries (CGI mode: "FEATUREQUERY" or "ITEMNQUERY") because I can't modify the filter SQL string via a form or a URL. After the selection of a new map file FILTER parameter, the PostGIS connection doesn't open the database and the error message appearing is msPOSTGISLayerWhichShapes(): Query error. prep_DB:Error executing POSTGIS DECLARE statement (0.6 failed - retried 0.5 and it failed too). I've tried also to build multiple queries using the CLASSITEM and EXPRESSION map file parameters and changing them via form. I've seen that it's possible to do it, but in this way you can't use complex SQL strings available in case of the filter change. How can I make multiple query with the possibility of selecting item and value to be searched by the user? In other words, can I create queries using an association item-value like it was possible with MapServer 3.3? Thank you Best regards Diego Magni From woodbri at swoodbridge.com Wed Apr 17 07:16:06 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 17 Apr 2002 10:16:06 -0400 Subject: [mapserver-users] Problem with SIZEUNITS References: Message-ID: <3CBD83A6.6F2B48DC@swoodbridge.com> Anders, Well, I learn something new every day. :) I had not noticed SIZEUNITS in my work with mapserver and the way you are trying to use it is very interesting. I'll have to try that also. I don't see anything obviously wrong with your LAYER definition, hopefully someone else can help you. Best regards, -Steve Anders Knudstrup Hansen LE34 wrote: > > The problem was that I was using sizeunits on the class object.... > The layer in the mapfile should've looked like this: > > layer > NAME "Search_areas" > TYPE Point > STATUS on > connectiontype ogr > connection "data/tab/Radier.TAB" > classitem "Op" > SIZEUNITS meters > class > EXPRESSION "80" > SYMBOL "circle" > SIZE 160 > color 255 0 0 > end > end > > Thanks > > Anders Knudstrup Hansen > > -----Oprindelig meddelelse----- > Fra: Stepan Kafka [mailto:stepan.kafka at centrum.cz] > Sendt: 17. april 2002 12:38 > Til: Anders Knudstrup Hansen LE34; mapserver-users at lists.gis.umn.edu > Emne: RE: [mapserver-users] Problem with SIZEUNITS > > What do you have on the line above this one? Maybe there is the error. :-) > > Stepan Kafka > > > -----P?vodn? zpr?va----- > > Od: owner-mapserver-users at lists.gis.umn.edu > > [mailto:owner-mapserver-users at lists.gis.umn.edu]za uzivatele Anders > > Knudstrup Hansen LE34 > > Odesl?no: 17. dubna 2002 9:59 > > Komu: mapserver-users at lists.gis.umn.edu > > P?edm?t: [mapserver-users] Problem with SIZEUNITS > > > > > > When I try yo use the sizeunits identifier I get the following error msg. > > > > loadClass(): Unknown identifier. (SIZEUNITS):(73) > > > > This is the output from my mapserver: > > \cgi-bin>mapserv -v > > MapServer version 3.5 OUTPUT=GIF OUTPUT=PNG SUPPORTS=TTF > > INPUT=TIFF INPUT=EPPL7 > > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > > > Shouldn't sizeunits be supported by the version i'm using????? > > > > Thanks. > > > > Anders Knudstrup Hansen > > > > From woodbri at swoodbridge.com Wed Apr 17 07:29:53 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 17 Apr 2002 10:29:53 -0400 Subject: [mapserver-users] Finding pixel location from decimal degrees References: <3CBD7B98.57D6E357@keyspanenergy.com> Message-ID: <3CBD86E1.98549CC0@swoodbridge.com> You should be able to find it by simple ratios. Your map EXTENTS are minx miny maxx maxy so your width = maxx - minx; height = maxy -miny; your image is SIZE ix iy so: px = (long - minx) / width * ix py = (lat - miny) / height * iy Should do it. You might need to deal with the fact that LAT increase moving up the map and pixel address increases moving down the map. -Steve "Kieran J. Ames" wrote: > > Hello list, > > I'd like to know if anyone can share some wisdom with me. > > I typically would make a map of a polygon and a point, using a decimal > degrees. I'd like to now look at the resulting gif image from a pixel > perspective and, knowing the latitude and longitude of the point I > originally made, again find that point by referencing its location by > the number of pixels right and down of the top-left pixel in the image > (or whatever other referencing means is appropriate). > > Any guidance appreciated. > > Thanks, > Kieran From teb at mallit.fr.umn.edu Wed Apr 17 07:48:25 2002 From: teb at mallit.fr.umn.edu (Thomas E. Burk) Date: Wed, 17 Apr 2002 09:48:25 -0500 (CDT) Subject: [mapserver-users] Help with compiling on Suse7.3 (FWD) Message-ID: <200204171448.g3HEmPR12373@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- X-Originating-IP: [217.233.76.149] From: "Andreas Hirner" To: mapserver-info at lists.gis.umn.edu Subject: Help with compiling on Suse7.3 Date: Wed, 17 Apr 2002 10:24:37 +0200 Mime-Version: 1.0 X-OriginalArrivalTime: 17 Apr 2002 08:24:37.0404 (UTC) FILETIME=[4FEB35C0:01C1E5E9] Hello, I'm new to MapServer and at this point I'm still evaluating it. I am also not very familiar with the configure and make tools. I tried to compile version 3.5 with the basic configuration. Configure runs without any error messages, but make prompts the following error: gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT mapbits.c -o mapbits.o In file included from map.h:28, from mapbits.c:1: mapsymbol.h:4: gd.h: No such file or directory In file included from mapbits.c:1: map.h:34: gd.h: No such file or directory make: *** [mapbits.o] Error 1 Does anybody know what's going wrong? The output of configure is listed below. Regards Andreas Hirner Configure loading cache ./config.cache checking for gcc... (cached) gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for c++... (cached) c++ checking whether the C++ compiler (c++ ) works... yes checking whether the C++ compiler (c++ ) is a cross-compiler... no checking whether we are using GNU C++... (cached) yes checking whether c++ accepts -g... (cached) yes checking for ranlib... (cached) ranlib checking for flex... (cached) flex checking for yywrap in -lfl... (cached) yes checking for bison... (cached) bison -y checking if compiler supports -R... (cached) no checking if compiler supports -Wl,-rpath,... (cached) yes checking for exp in -lm... (cached) yes checking how to run the C preprocessor... (cached) gcc -E checking for ANSI C header files... (cached) yes checking for strcasecmp... (cached) yes checking for strncasecmp... (cached) yes checking for strdup... (cached) yes checking whether we should include JPEG support... checking for jpeg_read_header in -ljpeg... yes using libjpeg from system libs. checking which version of GD to use... checking where FreeType is installed... checking for FT_Init_FreeType in -lfreetype... no checking for TT_Init_FreeType in -lttf... yes using libfreetype -lttf from system libs. checking where Zlib is installed... checking for zlibVersion in -lz... yes using libz from system libs. checking where PNG is installed... checking for png_init_io in -lpng... yes using libpng from system libs. checking for gdImageCreate in -lgd... yes checking for gdImageGif in -lgd... no checking for gdImagePng in -lgd... yes checking for gdImageJpeg in -lgd... yes checking for gdImageWBMP in -lgd... yes checking for gdImageStringFT in -lgd... yes checking for gdImageString16 in -lgd... yes checking for gdImageGifPtr in -lgd... no using GD ( -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT) from system libs. checking whether we should include PDF support... checking for PDF_setlinewidth in -lpdf... no checking for PDF_setrgbcolor in -lpdf... no checking for PDF_moveto in -lpdf... no checking for PDF_curveto in -lpdf... no checking for PDF_show_xy in -lpdf... (cached) no libpdf not found... PDF support not included. checking whether we should include TIFF support... checking for TIFFOpen in -ltiff... yes using libtiff from system libs. checking whether we should include EPPL7 support... including EPPL7 support. checking whether we should include PROJ.4 support... PROJ.4 support not requested. checking whether we should include ESRI SDE support... ESRI SDE support not requested. checking whether we should compile in MPATROL support... MPATROL support not requested. checking whether we should include OGR support... OGR support not requested. checking if GDAL support requested... no checking if PostGIS support requested... no checking if OracleSpatial support requested... no checking whether we should include WMS support... OGC WMS Compatibility not enabled (PROJ.4 is required for WMS). checking whether we should include WMS Client Connections support... OGC WMS Client Connections not enabled (PROJ.4 and libwww required). Compiling with -DIGNORE_MISSING_DATA. checking for PHP/MapScript module options... PHP/MapScript module not configured. creating ./config.status creating Makefile _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com ------------- End Forwarded Message ------------- From mgiesbrecht at geoarctic.com Wed Apr 17 07:58:51 2002 From: mgiesbrecht at geoarctic.com (Mark Giesbrecht) Date: Wed, 17 Apr 2002 08:58:51 -0600 Subject: [mapserver-users] PHP/Mapscript project shapefile Message-ID: <3CBD8DAB.7E3D513D@geoarctic.com> Hi All, Is this close to being the right method in projecting the entire shapefile using PHP/Mapscript? function projectShapefile() { $projInObj = ms_newprojectionobj("proj=latlong,ellps=GRS80"); $projOutObj = ms_newprojectionobj("proj=stere,lat_0=46.500000000,lon_0=-66.500000000,k=0.999912,x_0=2500000.000,y_0=7500000.000,ellps=GRS80,towgs84=0,0,0,0,0,0,0,units=m,no_defs"); //re-write the existing file? $shpfileObj = ms_newShapefileObj("E:/software/apache/htdocs/tmp/to_stere/nb_rivers2", MS_SHP_ARC); $shpfileObj = $shpfileObj->project($projInObj, $projOutObj); } Thanks in advance, Mark -------------- next part -------------- A non-text attachment was scrubbed... Name: mgiesbrecht.vcf Type: text/x-vcard Size: 346 bytes Desc: Card for Mark Giesbrecht URL: From pagurekd at em.agr.ca Wed Apr 17 08:07:22 2002 From: pagurekd at em.agr.ca (Debbie Pagurek) Date: Wed, 17 Apr 2002 11:07:22 -0400 Subject: [mapserver-users] WINNT + PROJ question Message-ID: Hi all, I'm having a problem with PROJ on WINNT. Here is the configuration: MapServer version 3.5.1 (development) OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE I am getting the error: msProcessProjection(): Projection library error. no system list, errno: 289940991 Anybody know what this means and how to fix it? Thanks, D. Pagurek From gmader at GeoAnalytics.com Wed Apr 17 08:17:52 2002 From: gmader at GeoAnalytics.com (Greg Mader) Date: Wed, 17 Apr 2002 10:17:52 -0500 Subject: [mapserver-users] Help with Java MapScript Compile for Window s Message-ID: Hi Dan, I need to back up a bit, and ask what the current status of Java MapScript is? I know that Steve has been working on it, and I would like to use it for a class project with some classmates. The instructor is using JSP, beans, and lots of other java stuff, not PHP :( Here is the deal that I will offer: There is a team of five of us that need to get a simple project done for class. We would use Java Mapscript to do this, and document the heck out of it, and contribute this doc back to the project. What we need now is some guidance on the status of Java Mapscript, the limitations, etc, as well as any general guidance for how to proceed. Thoughts? Greg Mader GIS consultant, and semi-miserable Comp Sci masters student. -----Original Message----- From: Dan Barron [mailto:dbarron at ddive.com] Sent: Wednesday, April 17, 2002 3:48 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Help with Java MapScript Compile for Windows Hi, Can anyone provide a brief description of the steps needed to compile MapScript Java on Windows? I use Win2000 and have downloaded the Borland free C++ compiler as well as the SWIG 1.3.11 for windows. I have made mods to the Java Mapscript Makefile provided with the nightly build and end up with errors when running make, but also get .java files out. What should I expect to see? Thanks, Dan Barron From steve.lime at dnr.state.mn.us Wed Apr 17 08:35:21 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 17 Apr 2002 10:35:21 -0500 Subject: [mapserver-users] Fwd: Help with compiling on Suse7.3 Message-ID: An embedded message was scrubbed... From: "Andreas Hirner" Subject: Help with compiling on Suse7.3 Date: Wed, 17 Apr 2002 10:24:37 +0200 Size: 5667 URL: From steve.lime at dnr.state.mn.us Wed Apr 17 08:53:46 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 17 Apr 2002 10:53:46 -0500 Subject: [mapserver-users] Help with Java MapScript Compile for Windows Message-ID: Hi Greg, The Java version compiles clean and I know some folks are having a bit of luck with it. I myself am struggling with installation issues but should over come those soon. Most issues will be related to the "maturity" of SWIG java module. Version 1.3.11 produces seemingly working code although that remains to be seen since not many folks have used it. The other gotchas will revolve around threading issues. Many of these have already been addressed when enabling --with-threads (or whatever it's called) when building the source, however, I'm sure there are other hurdles to be overcome. I'd certainly appreciate the feedback and documentation but you need to be aware that this is really an alpha version. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Greg Mader 04/17/02 10:17AM >>> Hi Dan, I need to back up a bit, and ask what the current status of Java MapScript is? I know that Steve has been working on it, and I would like to use it for a class project with some classmates. The instructor is using JSP, beans, and lots of other java stuff, not PHP :( Here is the deal that I will offer: There is a team of five of us that need to get a simple project done for class. We would use Java Mapscript to do this, and document the heck out of it, and contribute this doc back to the project. What we need now is some guidance on the status of Java Mapscript, the limitations, etc, as well as any general guidance for how to proceed. Thoughts? Greg Mader GIS consultant, and semi-miserable Comp Sci masters student. -----Original Message----- From: Dan Barron [mailto:dbarron at ddive.com] Sent: Wednesday, April 17, 2002 3:48 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Help with Java MapScript Compile for Windows Hi, Can anyone provide a brief description of the steps needed to compile MapScript Java on Windows? I use Win2000 and have downloaded the Borland free C++ compiler as well as the SWIG 1.3.11 for windows. I have made mods to the Java Mapscript Makefile provided with the nightly build and end up with errors when running make, but also get .java files out. What should I expect to see? Thanks, Dan Barron From pagurekd at em.agr.ca Wed Apr 17 08:50:41 2002 From: pagurekd at em.agr.ca (Debbie Pagurek) Date: Wed, 17 Apr 2002 11:50:41 -0400 Subject: [mapserver-users] zoom in problem, PHP, winnt Message-ID: Hi, I have been starting to use php/mapscript and have had some success although right now I have a frustrating problem with the following code. I took the php/mapscript example that uses a map of Europe and I substituted my own map of Canada, in decimal degrees. The pan and zoom out work fine, but the zoom in results in my browser just sitting there spinning its wheels. In my map file, the extent is set to: EXTENT -145.0 40.0 -50.0 85.0 and SIZE is set to 600 284. Can anyone see what is wrong that would cause zoom in to fail? I get no error messages, and eventually PHP responds with a time out message. Below is my code. Thanks, D. Pagurek setextent($extent_to_set[0],$extent_to_set[1],$extent_to_set[2],$extent_to_set[3]); $my_point = ms_newpointObj(); $my_point->setXY($HTTP_POST_VARS["mapa_x"],$HTTP_POST_VARS["mapa_y"]); $my_extent = ms_newrectObj(); $my_extent->setextent($extent_to_set[0],$extent_to_set[1],$extent_to_set[2],$extent_to_set[3]); $zoom_factor = $HTTP_POST_VARS["zoom"]*$HTTP_POST_VARS["zsize"]; if ($zoom_factor == 0) { $zoom_factor = 1; $check_pan = "CHECKED"; $check_zout = ""; $check_zin = ""; } else if ($zoom_factor < 0) { $check_pan = ""; $check_zout = "CHECKED"; $check_zin = ""; } else { $check_pan = ""; $check_zout = ""; $check_zin = "CHECKED"; } $val_zsize = abs($zoom_factor); $map->zoompoint($zoom_factor,$my_point,$map->width,$map->height,$my_extent); } $image=$map->draw(); $image_url=$image->saveWebImage(MS_PNG,1,1,0); $extent_to_html = $map->extent->minx." ".$map->extent->miny." ".$map->extent->maxx." ".$map->extent->maxy; ?> Butterflies of Canada

>
Pan >
Zoom In >
Zoom Out >
Zoom Size
Full Extent
Change taxon From morissette at dmsolutions.ca Wed Apr 17 09:05:09 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 17 Apr 2002 12:05:09 -0400 Subject: [mapserver-users] WINNT + PROJ question References: Message-ID: <3CBD9D35.8363E5FF@dmsolutions.ca> Debbie Pagurek wrote: > > I am getting the error: > msProcessProjection(): Projection library error. no system list, errno: 289940991 > > Anybody know what this means and how to fix it? > This can happen if you use EPSG projection codes (e.g. init=epsg:4326) but the file "epsg" is missing in the proj directory (/usr/local/share/proj/epsg on Unix), or if you try to use an epsg:XXXX code that doesn't exist in that file. You may want to upgrade to the latest version of PROJ.4 on the machine that gives this error (the latest PROJ should include the 'epsg' file). Or you can download a copy of the epsg file from http://www2.dmsolutions.ca/mapserver/dl/proj4-epsg.zip If your server runs on Windows, then the epsg file is searched in either C:\PROJ, or C:\PROJ\NAD depending on the version of PROJ that was used to compile MapServer. Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From steve.lime at dnr.state.mn.us Wed Apr 17 09:09:39 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 17 Apr 2002 11:09:39 -0500 Subject: [mapserver-users] Mapscript Changes in 3.6 Message-ID: It shouldn't have worked in 3.5. Projections are not simple structures and really shouldn't be mucked with. So in 3.6 direct access to that was blocked and getProjection and setProjection methods were added to mapObj and layerObj. The methods take/return PROJ.4 projection definition strings. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Smith, Michael ERDC-CRREL-NH" 04/17/02 08:43AM >>> using Perl, I am trying to get the projection of a map file using my $project = $map->{projection}; This worked in 3.5. How do you now get the projection of a map file in 3.6. Thanks Mike Smith Mike Smith email: michael.smith at erdc.usace.army.mil RSGISC ERDC - CRREL Hanover, NH 03755 (603) 646-4765 From lfilak at medinaco.org Wed Apr 17 11:04:40 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Wed, 17 Apr 2002 14:04:40 -0400 Subject: [mapserver-users] Mapscript Changes in 3.6 Message-ID: <200204171755.g3HHtiQ04885@yogi.medinaco.net> It appears member projection is gone, try: my $project = $map->getProjection(); That should return the character string of parameters directly. Whereas before it should have been similiar to: my $project = $map->{projection}; my $projstring = $project->{args}; Lowell F. The following message was sent by "Smith, Michael ERDC-CRREL-NH" on Wed, 17 Apr 2002 09:43:32 -0400. > using Perl, I am trying to get the projection of a map file using > > my $project = $map->{projection}; > > > This worked in 3.5. How do you now get the projection of a map file in 3.6. > > Thanks > > Mike Smith > Mike Smith > email: michael.smith at erdc.usace.army.mil > RSGISC > ERDC - CRREL > Hanover, NH 03755 > (603) 646-4765 > From assefa at dmsolutions.ca Wed Apr 17 11:01:22 2002 From: assefa at dmsolutions.ca (Assefa Yewondwossen) Date: Wed, 17 Apr 2002 14:01:22 -0400 Subject: [mapserver-users] zoom in problem, PHP, winnt References: Message-ID: <3CBDB871.B14D6047@dmsolutions.ca> Hi There, I just tested your code (using my own map file) and things seems to be working properly whne zooming in. So there seems to be no problem with the code here. I am assuming it might be related to your map file, so If you send me your map file and some sample data, I can do a test and let you know how it goes. Best Regards Debbie Pagurek wrote: > Hi, > I have been starting to use php/mapscript and have had some success although right now I have a frustrating problem with the following code. I took the php/mapscript example that uses a map of Europe and I substituted my own map of Canada, in decimal degrees. The pan and zoom out work fine, but the zoom in results in my browser just sitting there spinning its wheels. In my map file, the extent is set to: EXTENT -145.0 40.0 -50.0 85.0 and SIZE is set to 600 284. > > Can anyone see what is wrong that would cause zoom in to fail? I get no error messages, and eventually PHP responds with a time out message. > > Below is my code. > > Thanks, > D. Pagurek > > dl("php_mapscript_35.dll"); > > // Default values and configuration > $val_zsize=3; > $check_pan="CHECKED"; > $map_path=""; > $map_file="feat.map"; > > $map = ms_newMapObj($map_path.$map_file); > > if ( isset($HTTP_POST_VARS["mapa_x"]) && isset($HTTP_POST_VARS["mapa_y"]) && !isset($HTTP_POST_VARS["full"]) ) { > > $extent_to_set = explode(" ",$HTTP_POST_VARS["extent"]); > > $map->setextent($extent_to_set[0],$extent_to_set[1],$extent_to_set[2],$extent_to_set[3]); > > $my_point = ms_newpointObj(); > $my_point->setXY($HTTP_POST_VARS["mapa_x"],$HTTP_POST_VARS["mapa_y"]); > > $my_extent = ms_newrectObj(); > > $my_extent->setextent($extent_to_set[0],$extent_to_set[1],$extent_to_set[2],$extent_to_set[3]); > > $zoom_factor = $HTTP_POST_VARS["zoom"]*$HTTP_POST_VARS["zsize"]; > if ($zoom_factor == 0) { > $zoom_factor = 1; > $check_pan = "CHECKED"; > $check_zout = ""; > $check_zin = ""; > } else if ($zoom_factor < 0) { > $check_pan = ""; > $check_zout = "CHECKED"; > $check_zin = ""; > } else { > $check_pan = ""; > $check_zout = ""; > $check_zin = "CHECKED"; > } > > $val_zsize = abs($zoom_factor); > > $map->zoompoint($zoom_factor,$my_point,$map->width,$map->height,$my_extent); > > } > > $image=$map->draw(); > $image_url=$image->saveWebImage(MS_PNG,1,1,0); > > $extent_to_html = $map->extent->minx." ".$map->extent->miny." ".$map->extent->maxx." ".$map->extent->maxy; > > ?> > > > Butterflies of Canada > > >
>

> >
> > > > > > > > > > > > > > > > > > > > > > > > > >
> >
> Pan > > > >
> Zoom In > > > >
> Zoom Out > > > >
> Zoom Size > > >
> Full Extent > > >
> >
>
> Change taxon > > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From gsathis at hashprompt.com Wed Apr 17 13:08:01 2002 From: gsathis at hashprompt.com (Sathiskumar Govindasamy) Date: Wed, 17 Apr 2002 15:08:01 -0500 Subject: [mapserver-users] Help with Java MapScript Compile for Windows References: Message-ID: <3CBDD621.5030805@hashprompt.com> Hi Steve, I am not using the latest of everything, but I have compiled sometimes back and am still using it. Dan wanted help in Windows which I don't have access to. Under Linux, it compiles without any problem except on Stable mapserver 3.5 & SWIG 1.3.11, I changed the java files little bit. But, when I did it check the nightly build a while back it compiled clean and working wonderful. I am using Java mapscript on Linux for a while now and didn't have any problem. I can help anyone on this, if they are on Linux. Sathis Steve Lime wrote: >Hi Greg, The Java version compiles clean and I know some folks are having a bit of luck with it. I myself am struggling with installation issues but should over come those soon. Most issues will be related to the "maturity" of SWIG java module. Version 1.3.11 produces seemingly working code although that remains to be seen since not many folks have used it. The other gotchas will revolve around threading issues. Many of these have already been addressed when enabling --with-threads (or whatever it's called) when building the source, however, I'm sure there are other hurdles to be overcome. I'd certainly appreciate the feedback and documentation but you need to be aware that this is really an alpha version. > >Steve > >Stephen Lime >Data & Applications Manager > >Minnesota DNR >500 Lafayette Road >St. Paul, MN 55155 >651-297-2937 > >>>>Greg Mader 04/17/02 10:17AM >>> >>>> >Hi Dan, > >I need to back up a bit, and ask what the current status of Java MapScript >is? I know that Steve has been working on it, and I would like to use it >for a class project with some classmates. The instructor is using JSP, >beans, and lots of other java stuff, not PHP :( > >Here is the deal that I will offer: There is a team of five of us that need >to get a simple project done for class. We would use Java Mapscript to do >this, and document the heck out of it, and contribute this doc back to the >project. What we need now is some guidance on the status of Java Mapscript, >the limitations, etc, as well as any general guidance for how to proceed. > >Thoughts? > >Greg Mader >GIS consultant, and semi-miserable Comp Sci masters student. > > > >-----Original Message----- >From: Dan Barron [mailto:dbarron at ddive.com] >Sent: Wednesday, April 17, 2002 3:48 AM >To: mapserver-users at lists.gis.umn.edu >Subject: [mapserver-users] Help with Java MapScript Compile for Windows > > >Hi, > >Can anyone provide a brief description of the steps needed to compile >MapScript Java on Windows? I use Win2000 and have downloaded the Borland >free C++ compiler as well as the SWIG 1.3.11 for windows. I have made mods >to the Java Mapscript Makefile provided with the nightly build and end up >with errors when running make, but also get .java files out. What should I >expect to see? > >Thanks, > >Dan Barron > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeffb at erlandsen.com Wed Apr 17 13:23:44 2002 From: jeffb at erlandsen.com (Jeff Berry) Date: Wed, 17 Apr 2002 15:23:44 -0500 (CDT) Subject: [mapserver-users] Date: Wed, 17 Apr 2002 13:18:08 -0700 Message-ID: I've just installed MapServer on a RedHat 7.2 server and am trying to get the demo working. After clicking the Initialize button, I get this error and am having trouble determining how to fix it. Any ideas? msLoadMap() General error message: Undefined symbol "symbols/ctyhwy.gif" in class 0 of layer ctyrdln3_anno Jeff Berry Erlandsen & Associates P.O. Box 2029 Chelan, WA 98816 (509) 682-4189 jeffb at erlandsen.com From pgigoux at munistgo.cl Wed Apr 17 14:15:36 2002 From: pgigoux at munistgo.cl (Patricio Gigoux) Date: Wed, 17 Apr 2002 17:15:36 -0400 Subject: [mapserver-users] one layer over another Message-ID: <200204172115.g3HLFc302326@localhost.localdomain> I need show 2 layer, where I can view one over other one, but when I do it I can't watch the layer rear, both are polygon, and I need wahtch both Is there something that allow me set transparent one of them? Thanks in advance Patricio From morissette at dmsolutions.ca Wed Apr 17 14:55:45 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 17 Apr 2002 17:55:45 -0400 Subject: [mapserver-users] Date: Wed, 17 Apr 2002 13:18:08 -0700 References: Message-ID: <3CBDEF61.C53F875E@dmsolutions.ca> Jeff, We ran into this ourselves a few minutes ago, it's a result of a recent change. We're looking into it and will let you know once it's fixed. Daniel Jeff Berry wrote: > > I've just installed MapServer on a RedHat 7.2 server and am trying to get > the demo working. After clicking the Initialize button, I get this error > and am having trouble determining how to fix it. Any ideas? > > msLoadMap() General error message: Undefined symbol "symbols/ctyhwy.gif" in > class 0 of layer ctyrdln3_anno > > Jeff Berry > Erlandsen & Associates > P.O. Box 2029 > Chelan, WA 98816 > (509) 682-4189 > jeffb at erlandsen.com From keon at nacse.org Wed Apr 17 17:37:04 2002 From: keon at nacse.org (Dylan Keon) Date: Wed, 17 Apr 2002 17:37:04 -0700 Subject: [mapserver-users] single CLASS object to label all polygons? References: <3CBDEF61.C53F875E@dmsolutions.ca> Message-ID: <010501c1e671$29b8e2c0$4622c180@widberry> I have a polygon layer that I've classified using CLASSITEM and a set of CLASS objects. I also want to display labels for each polygon. Do I need to use a separate LABEL within each class object (I know this will work), or is it possible to apply a single class object to label all polygons (I'm having trouble getting this to work)? I can successfully use an expression to label all polygons from one class object, but if I put that class object before the rest of the class objects, it disables the color rendering of those polygons. If I put it at the end of the other class objects, the labels are hidden beneath the rendered colors. Thanks, Dylan From woodbri at swoodbridge.com Wed Apr 17 18:02:58 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 17 Apr 2002 21:02:58 -0400 Subject: [mapserver-users] single CLASS object to label all polygons? References: <3CBDEF61.C53F875E@dmsolutions.ca> <010501c1e671$29b8e2c0$4622c180@widberry> Message-ID: <3CBE1B42.9598A9FE@swoodbridge.com> Dylan, You need to use a separate LABEL in every CLASS. Here is why ... I think CLASS works like a SWITCH or CASE in that as soon a one class section is executed no more are looked at. So if you put your label at the bottom only the polygons that are not colored are labeled and if you put it at the top the they are all labeles but not colored. You will have to put the label block in every class section if you want them colored and labeled. -Steve Dylan Keon wrote: > > I have a polygon layer that I've classified using CLASSITEM and a set of > CLASS objects. I also want to display labels for each polygon. Do I need > to use a separate LABEL within each class object (I know this will work), or > is it possible to apply a single class object to label all polygons (I'm > having trouble getting this to work)? I can successfully use an expression > to label all polygons from one class object, but if I put that class object > before the rest of the class objects, it disables the color rendering of > those polygons. If I put it at the end of the other class objects, the > labels are hidden beneath the rendered colors. > > Thanks, > Dylan From keon at nacse.org Wed Apr 17 18:53:32 2002 From: keon at nacse.org (Dylan Keon) Date: Wed, 17 Apr 2002 18:53:32 -0700 Subject: [mapserver-users] single CLASS object to label all polygons? References: <3CBDEF61.C53F875E@dmsolutions.ca> <010501c1e671$29b8e2c0$4622c180@widberry> <3CBE1B42.9598A9FE@swoodbridge.com> Message-ID: <000e01c1e67b$d874e570$0a00a8c0@vulture> OK, that makes sense. Thanks for the reply. --Dylan Stephen Woodbridge wrote: > > You need to use a separate LABEL in every CLASS. Here is why ... > > I think CLASS works like a SWITCH or CASE in that as soon a one class > section is executed no more are looked at. So if you put your label at > the bottom only the polygons that are not colored are labeled and if you > put it at the top the they are all labeles but not colored. You will > have to put the label block in every class section if you want them > colored and labeled. > > -Steve > > Dylan Keon wrote: > > > > I have a polygon layer that I've classified using CLASSITEM and a set of > > CLASS objects. I also want to display labels for each polygon. Do I need > > to use a separate LABEL within each class object (I know this will work), or > > is it possible to apply a single class object to label all polygons (I'm > > having trouble getting this to work)? I can successfully use an expression > > to label all polygons from one class object, but if I put that class object > > before the rest of the class objects, it disables the color rendering of > > those polygons. If I put it at the end of the other class objects, the > > labels are hidden beneath the rendered colors. From shpr at libero.it Thu Apr 18 00:00:15 2002 From: shpr at libero.it (Stefano Bonnin) Date: Thu, 18 Apr 2002 09:00:15 +0200 Subject: [mapserver-users] PHP and SCALE Message-ID: <003601c1e6a6$b16c29e0$0601a8c0@comai.loc> Hi, one question: why, after the assignment $scale = -1 ? I'd like to use $scale in order to display a map only for a particular scale range but its value is always -1. $gpoMap = ms_newMapObj("mymapfile.map"); : : : $poLayer = $gpoMap->getlayer(1); $scale = $gpoMap->scale; Thanks. Stefano B. --- Outgoing mail is certified Virus Free. (FLASHH!) Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.350 / Virus Database: 196 - Release Date: 17/04/02 From urasidin at email.com Thu Apr 18 00:05:26 2002 From: urasidin at email.com (Untung Rasidin) Date: Thu, 18 Apr 2002 02:05:26 -0500 Subject: [mapserver-users] Problem with TestSuite itemquery/ Message-ID: <20020418070526.23748.qmail@email.com> Hi, All I have tried TestSuite from http://maps.dnr.state.mn.us/mapserver_demos/tests using mapserv_3.3,mapserv_3.4,and mapserv_3.5, but all failed. Here are the error messages: -using mapserv_3.3/mapserv_3.4: Error message: msQueryUsingItem(): Search returned no results. No matching record(s) found here is my input form:
MAPSERVER VERSION 3.3
PICK A COUNTRY:
ABBREVNAME IS the attrribute in world94.shp (world94.shp from Esri tutorial/Arcview) shape file. -using mapserv_3.5: Error massage: loadLayer(): Unknown identifier. (QUERY):(58) I have modified the map file for mapserv_3.5, without attribute QUERY, and the result is: msQueryByAttributes(): General error message. No query layer defined. I try to add this input to the form: the result is: msQueryByAttributes(): Query error. Requested layer has no filter defined. Myquestion is: - what version of mapserver should be used for that Test Suite, or what wrong with these? - how to use attribute FILTER in map file? I have tried alot of trial and error, but never success. Would you give me a similar example (just a simple test for itemquery ) for mapserver version 3.5, please. -- _______________________________________________ Sign-up for your own FREE Personalized E-mail at Email.com http://www.email.com/?sr=signup From urasidin at email.com Thu Apr 18 00:28:51 2002 From: urasidin at email.com (Untung Rasidin) Date: Thu, 18 Apr 2002 02:28:51 -0500 Subject: [mapserver-users] Problem with TestSuite itemquery/ Message-ID: <20020418072851.15543.qmail@email.com> Hi, All I have tried TestSuite from http://maps.dnr.state.mn.us/mapserver_demos/tests using mapserv_3.3,mapserv_3.4,and mapserv_3.5, but all failed. Here are the error messages: -using mapserv_3.3/mapserv_3.4: Error message: msQueryUsingItem(): Search returned no results. No matching record(s) found here is my input form:
MAPSERVER VERSION 3.3
PICK A COUNTRY:
ABBREVNAME IS the attrribute in world94.shp (world94.shp from Esri tutorial/Arcview) shape file. -using mapserv_3.5: Error massage: loadLayer(): Unknown identifier. (QUERY):(58) I have modified the map file for mapserv_3.5, without attribute QUERY, and the result is: msQueryByAttributes(): General error message. No query layer defined. I try to add this input to the form: the result is: msQueryByAttributes(): Query error. Requested layer has no filter defined. Myquestion is: - what version of mapserver should be used for that Test Suite, or what wrong with these? - how to use attribute FILTER in map file? I have tried alot of trial and error, but never success. Would you give me a similar example (just a simple test for itemquery ) for mapserver version 3.5, please. I never success to connect this link:http://arachnid.dnr.state.mn.us/ms_test/index.html (reaction from Stephen Lime) Thanks in advance Untung Rasidin -- _______________________________________________ Sign-up for your own FREE Personalized E-mail at Email.com http://www.email.com/?sr=signup From shpr at libero.it Thu Apr 18 00:55:59 2002 From: shpr at libero.it (Stefano Bonnin) Date: Thu, 18 Apr 2002 09:55:59 +0200 Subject: [mapserver-users] PHP and SCALE *CORRECTION* Message-ID: <05d001c1e6ae$7a39f080$0601a8c0@comai.loc> CORRECTION: Hi, one question: why, after the assignment $scale = -1 ? I'd like to use $scale in order to display a map only for a particular scale range but its value is always -1. $gpoMap = ms_newMapObj("mymapfile.map"); : : : $poLayer = $gpoMap->getlayer(1); $gpoMap->preparequery(); // in the previuos e-mail I missed this line $scale = $gpoMap->scale; Thanks. Stefano B. --- Outgoing mail is certified Virus Free. (FLASHH!) Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.350 / Virus Database: 196 - Release Date: 17/04/02 From giorgio at nauta.it Thu Apr 18 01:14:35 2002 From: giorgio at nauta.it (Giorgio Volpe) Date: Thu, 18 Apr 2002 10:14:35 +0200 Subject: [mapserver-users] Accessing external files using javascript (other) References: Message-ID: <3CBE806B.B8F499C7@nauta.it> Robert Crossley wrote: > > 17/04/2002 04:08:03, "Ryan, Adam" wrote: > > > > >Hi folks, > > > >I'm new to HTML/JavaScript. Is there a simple way to make calls to an > >external file using javascript (other script)? Access, dBase, text file, > >anything? I want to manipulate my returned template according to some > >values saved elsewhere. > > > > Adam, > I had a similar dilema. The problem a I saw it was there was a limited amount you could do on the template in terms of server side processing. > I ended up doing this by putting a redirection to an asp page on the template, and getting data from a database using server side scripting. > This solution, is a "server side" ... Ryan asked for a client side one! That is something that can be executed from javascript running in the browser to retrive information dinamically ... The example could be a static page that loads a map , a javascript in the page retrives the extent for elaboration of following "views" of the map. Is it so, Ryan? I studied this possibility and concluded that is very complicated! The main problem is making it compatible for different browser! Netscale has some method for loading a new file in a layer so you could use it for loading a new javascript that "comunicates" some data to your runnig javascript! But this is not approved by w3c so not implemeted fro ather browser .. I don't know MS-explorer but I heard about a "data-binding" for such things ... Other posibility could be: 1) using cookies ( cgi that sends the image could send a cooky too whith required data) 2) Loading a file in a new window than accessing data in it from your javascript ... 3) Use java -- Giorgio ----------------------------------------- From shpr at libero.it Thu Apr 18 02:11:54 2002 From: shpr at libero.it (Stefano Bonnin) Date: Thu, 18 Apr 2002 11:11:54 +0200 Subject: [mapserver-users] Shape too big Message-ID: <001601c1e6b9$15b05360$0601a8c0@comai.loc> Hi, I have a Shape file (streets layer) that is too big (> 200Mb) When I query to this shape Mapserver works a lot of seconds (30 - 40) before to diplay the map. How can I do for reduce the query time? Thanks. --- Outgoing mail is certified Virus Free. (FLASHH!) Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.350 / Virus Database: 196 - Release Date: 17/04/02 From stepan.kafka at centrum.cz Thu Apr 18 04:13:52 2002 From: stepan.kafka at centrum.cz (Stepan Kafka) Date: Thu, 18 Apr 2002 13:13:52 +0200 Subject: [mapserver-users] single CLASS object to label all polygons? In-Reply-To: <3CBE1B42.9598A9FE@swoodbridge.com> Message-ID: <000101c1e6ca$1f6f61a0$7e3c2fc3@HSGIS> THe simplest solution is putting the layer twice into the mapfile. The first one with your color coding, the second one for labeling (it may be annotation type with one class). You can switch them ON/OFF together with using the same GROUP name for both. Stepan Kafka > -----P?vodn? zpr?va----- > Od: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]za u?ivatele Stephen > Woodbridge > Odesl?no: 18. dubna 2002 3:03 > Komu: Dylan Keon > Kopie: mapserver-users at lists.gis.umn.edu > P?edm?t: Re: [mapserver-users] single CLASS object to label all > polygons? > > > Dylan, > > You need to use a separate LABEL in every CLASS. Here is why ... > > I think CLASS works like a SWITCH or CASE in that as soon a one class > section is executed no more are looked at. So if you put your label at > the bottom only the polygons that are not colored are labeled and if you > put it at the top the they are all labeles but not colored. You will > have to put the label block in every class section if you want them > colored and labeled. > > -Steve > > Dylan Keon wrote: > > > > I have a polygon layer that I've classified using CLASSITEM and a set of > > CLASS objects. I also want to display labels for each polygon. > Do I need > > to use a separate LABEL within each class object (I know this > will work), or > > is it possible to apply a single class object to label all polygons (I'm > > having trouble getting this to work)? I can successfully use > an expression > > to label all polygons from one class object, but if I put that > class object > > before the rest of the class objects, it disables the color rendering of > > those polygons. If I put it at the end of the other class objects, the > > labels are hidden beneath the rendered colors. > > > > Thanks, > > Dylan > > From stepan.kafka at centrum.cz Thu Apr 18 04:25:24 2002 From: stepan.kafka at centrum.cz (Stepan Kafka) Date: Thu, 18 Apr 2002 13:25:24 +0200 Subject: [mapserver-users] one layer over another In-Reply-To: <200204172115.g3HLFc302326@localhost.localdomain> Message-ID: <000201c1e6cb$bb745f00$7e3c2fc3@HSGIS> There are two ways to allow this in MS: 1. Using hatched symbols or only outlines for polygon fills (see mapfile/symbolset documentation page) 2. Using TRANSPARENCY parameter to set the layer semi-transparent (also can be found in documentation) Stepan > -----P?vodn? zpr?va----- > Od: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]za u?ivatele Patricio > Gigoux > Odesl?no: 17. dubna 2002 23:16 > Komu: mapserver-users at lists.gis.umn.edu > P?edm?t: [mapserver-users] one layer over another > > > I need show 2 layer, where I can view one over other one, but > when I do it I > can't watch the layer rear, both are polygon, and I need wahtch both > Is there something that allow me set transparent one of them? > > Thanks in advance > > Patricio > > From woodbri at swoodbridge.com Thu Apr 18 04:35:50 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 18 Apr 2002 07:35:50 -0400 Subject: [mapserver-users] Shape too big References: <001601c1e6b9$15b05360$0601a8c0@comai.loc> Message-ID: <3CBEAF96.EEC0E949@swoodbridge.com> make sure you have a spatial index file. See utilities for shptree and make sure you have *.qix for every *.shp. -Steve Stefano Bonnin wrote: > > Hi, > > I have a Shape file (streets layer) that is too big (> 200Mb) > > When I query to this shape Mapserver works a lot of seconds (30 - 40) before > to diplay the map. How can I do for reduce the query time? > > Thanks. > > --- > Outgoing mail is certified Virus Free. (FLASHH!) > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.350 / Virus Database: 196 - Release Date: 17/04/02 From lfilak at medinaco.org Thu Apr 18 05:17:39 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Thu, 18 Apr 2002 08:17:39 -0400 Subject: [mapserver-users] Shape too big Message-ID: <200204181208.g3IC8iQ11963@yogi.medinaco.net> Have you tried creating an index or tiling the data? Lowell F. The following message was sent by "Stefano Bonnin" on Thu, 18 Apr 2002 11:11:54 +0200. > Hi, > > I have a Shape file (streets layer) that is too big (> 200Mb) > > When I query to this shape Mapserver works a lot of seconds (30 - 40) before > to diplay the map. How can I do for reduce the query time? > > Thanks. > > > > > --- > Outgoing mail is certified Virus Free. (FLASHH!) > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.350 / Virus Database: 196 - Release Date: 17/04/02 From lfilak at medinaco.org Thu Apr 18 05:33:47 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Thu, 18 Apr 2002 08:33:47 -0400 Subject: [mapserver-users] Problem with TestSuite itemquery/ Message-ID: <200204181224.g3ICOpQ12148@yogi.medinaco.net> Judging by the demos page I believe the demos are for 3.5. Could you send your mapfile to the list for debugging? Is the html you sent a direct copy->paste? If so value= on the ABBREVNAME line shouldn't be quoted and Cina should possibly be China. Lowell F. The following message was sent by "Untung Rasidin" on Thu, 18 Apr 2002 02:05:26 -0500. > Hi, All > > I have tried TestSuite from http://maps.dnr.state.mn.us/mapserver_demos/tests > using mapserv_3.3,mapserv_3.4,and mapserv_3.5, but all failed. Here are the error messages: > > -using mapserv_3.3/mapserv_3.4: > Error message: > msQueryUsingItem(): Search returned no results. No matching record(s) found > > here is my input form: > >
> MAPSERVER VERSION 3.3
> > > > PICK A COUNTRY:
> > >
> > ABBREVNAME IS the attrribute in world94.shp (world94.shp from Esri tutorial/Arcview) shape file. > > -using mapserv_3.5: > Error massage: > loadLayer(): Unknown identifier. (QUERY):(58) > > I have modified the map file for mapserv_3.5, without attribute QUERY, and the result is: > msQueryByAttributes(): General error message. No query layer defined. > > I try to add this input to the form: > > the result is: > msQueryByAttributes(): Query error. Requested layer has no filter defined. > > Myquestion is: > - what version of mapserver should be used for that Test Suite, or what wrong with these? > - how to use attribute FILTER in map file? I have tried alot of trial and error, but never success. > Would you give me a similar example (just a simple test for itemquery ) for mapserver version 3.5, please. > > -- > > _______________________________________________ > Sign-up for your own FREE Personalized E-mail at Email.com > http://www.email.com/?sr=signup From mcherve at cirad.fr Thu Apr 18 05:36:13 2002 From: mcherve at cirad.fr (marie-christine herve) Date: Thu, 18 Apr 2002 14:36:13 +0200 Subject: [mapserver-users] Compiling Mapserver on Windows Message-ID: <3CBEBDBD.F895C97E@cirad.fr> Hello, Could you help me resolve my problem please : When compiling MapServer3.5 using makefile.vc including freetype, jpeg, lpng, gdal, gd, zlib, options , with MSVisual C++ , I have those errors : maplexer.obj : error LNK2001: unresolved external symbol _msyylval maplexer.obj : error LNK2001: unresolved external symbol _msSetError LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Sorry but I'm not a professionnal with C++, and I have to explore the capabilities of Mapserver in use with Mapinfo datas during 3 months . I just finish my studies. Thanks for your help. From lfilak at medinaco.org Thu Apr 18 05:49:17 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Thu, 18 Apr 2002 08:49:17 -0400 Subject: [mapserver-users] one layer over another Message-ID: <200204181240.g3ICeKQ12359@yogi.medinaco.net> Check out: http://mapserver.gis.umn.edu/wilma/mapserver-users/0204/msg00292.html Lowell F. The following message was sent by Patricio Gigoux on Wed, 17 Apr 2002 17:15:36 -0400. > I need show 2 layer, where I can view one over other one, but when I do it I > can't watch the layer rear, both are polygon, and I need wahtch both > Is there something that allow me set transparent one of them? > > Thanks in advance > > Patricio From nicolasb at maich.gr Thu Apr 18 06:35:16 2002 From: nicolasb at maich.gr (Nicolas Boretos) Date: Thu, 18 Apr 2002 16:35:16 +0300 Subject: [mapserver-users] Itasca 3.4 Demo files Message-ID: <3CBECB94.5040608@maich.gr> Hi, Are the 3.4 version of the Itasca demo arounf anywhere? I did not see them in the download areas... tia, nicolas boretos From Chip.Hankley at GASAI.Com Thu Apr 18 07:26:38 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Thu, 18 Apr 2002 09:26:38 -0500 Subject: [mapserver-users] PHP, OGR, DGN help... Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABA22@postoffice.GASAI.Com> I need help integrating a DGN file in a MapServer app using PHP MapScript. Configuration: Win2K, IIS PHP 4.06 php_mapscript_35.dll (1/11/2002) from DMSolutions site (this is in the PHP4.06_ms5_final distribution folder) Problem: The DGN doesn't render... No errors are returned, I just get a blank map window. The OGR part seems to be working b/c if I change the source to shapefile, I can get a shapefile to render (I converted the DGN to a shapefile in ArcView, and put it in the same directory, if I toggle the CONNECTION lines in the mapfile below, the shapefile works, the DGN doesn't). As an aside, I can't seem to get the OGRINFO command to work... I downloaded the GDAL binary for WINNT (http://www.remotesensing.org/gdal/). This is somewhat confusing b/c the gdal documentation focuses on raster data. Is there an OGRINFO utility that is different than the OGRINFO that is in the GDAL distribution? TIA Chip Hankley MAPFILE - # -------------------------------------------------------------- # Start of map file # -------------------------------------------------------------- SIZE 400 400 EXTENT 263269 169782 285819 210757 UNITS FEET SHAPEPATH "C:\Inetpub\wwwroot\OGR" IMAGECOLOR 204 204 255 # -------------------------------------------------------------- # Start of web interface definition # -------------------------------------------------------------- WEB IMAGEPATH "C:\Inetpub\wwwroot\tmp\" IMAGEURL "/tmp/" END # -------------------------------------------------------------- # Start of layer definitions # -------------------------------------------------------------- LAYER NAME CAD1 TYPE LINE STATUS ON Connectiontype OGR CONNECTION "C:\Inetpub\wwwroot\OGR\junk.dgn" #CONNECTION "C:\Inetpub\wwwroot\OGR\test_cad.shp" CLASS COLOR 0 255 0 END END # CAD1 END # End of MapFile From Bjarni.Pjetursson at tietoenator.com Thu Apr 18 07:55:28 2002 From: Bjarni.Pjetursson at tietoenator.com (Bjarni Pjetursson) Date: Thu, 18 Apr 2002 16:55:28 +0200 Subject: [mapserver-users] OracleSpatial limitations Message-ID: <18E0CC75605BD411907800508B8BB8D049E54E@odin.enator.dk> Hi all, I've been playing around with MapServer for a couple of weeks now, doing mapping of SHP-files, OGR-files and spatial data from Oracle. MapServer is pretty impressive! I'm using version 3.5 for Windows with OracleSpatial support (got the binary from http:parvillers.homeip.net/mapserver). Since (I think) I found a couple of bugs/limitations in the OracleSpatial support, I was wondering if anyone knows the current status on the following issues: 1. labeling of OracleSpatial shapes not working (Dr. Watson crash on NT) try doing a LABELITEM "MyOracleSpatialColumnName" 2. multi-column expressions not working (Dr. Watson crash on NT) try doing a: EXPRESSION ([Column1] > 225 AND [Column2] > 315) 3. item query of OracleSpatial shapes not working see Rodrigo's mail from 11. Jan. 2002 in the mailing list Any links to MapServer with OracleSpatial support would also be appreciated. Regards Bjarni Thor Pjetursson From pgigoux at munistgo.cl Thu Apr 18 08:05:43 2002 From: pgigoux at munistgo.cl (Patricio Gigoux) Date: Thu, 18 Apr 2002 11:05:43 -0400 Subject: [mapserver-users] one layer over another In-Reply-To: <000201c1e6cb$bb745f00$7e3c2fc3@HSGIS> References: <000201c1e6cb$bb745f00$7e3c2fc3@HSGIS> Message-ID: <200204181505.g3IF5ie01685@localhost.localdomain> I think the same, but I have troubles with symbols because ms don't take me .gif, do you know if I can define symbols as .png? thanks El Jue 18 Abr 2002 07:25, Stepan Kafka escribi?: > There are two ways to allow this in MS: > > 1. Using hatched symbols or only outlines for polygon fills (see > mapfile/symbolset documentation page) > 2. Using TRANSPARENCY parameter to set the layer semi-transparent (also can > be found in documentation) > > Stepan > > > -----P?vodn? zpr?va----- > > Od: owner-mapserver-users at lists.gis.umn.edu > > [mailto:owner-mapserver-users at lists.gis.umn.edu]za u?ivatele Patricio > > Gigoux > > Odesl?no: 17. dubna 2002 23:16 > > Komu: mapserver-users at lists.gis.umn.edu > > P?edm?t: [mapserver-users] one layer over another > > > > > > I need show 2 layer, where I can view one over other one, but > > when I do it I > > can't watch the layer rear, both are polygon, and I need wahtch both > > Is there something that allow me set transparent one of them? > > > > Thanks in advance > > > > Patricio From warmerdam at pobox.com Thu Apr 18 08:16:36 2002 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 18 Apr 2002 11:16:36 -0400 Subject: [mapserver-users] PHP, OGR, DGN help... References: <3DFF131E4E6D2D4198CDD758F35A5353010ABA22@postoffice.GASAI.Com> Message-ID: <3CBEE354.7000903@pobox.com> Hankley, Chip wrote: > I need help integrating a DGN file in a MapServer app using PHP MapScript. > > Configuration: > > Win2K, IIS > PHP 4.06 > php_mapscript_35.dll (1/11/2002) from DMSolutions site (this is in the > PHP4.06_ms5_final distribution folder) > > Problem: > > The DGN doesn't render... > > No errors are returned, I just get a blank map window. The OGR part seems to > be working b/c if I change the source to shapefile, I can get a shapefile to > render (I converted the DGN to a shapefile in ArcView, and put it in the > same directory, if I toggle the CONNECTION lines in the mapfile below, the > shapefile works, the DGN doesn't). > > As an aside, I can't seem to get the OGRINFO command to work... I downloaded > the GDAL binary for WINNT (http://www.remotesensing.org/gdal/). This is > somewhat confusing b/c the gdal documentation focuses on raster data. Is > there an OGRINFO utility that is different than the OGRINFO that is in the > GDAL distribution? Chip, It's hard to know why this isn't working, but I would suggesting getting ogrinfo working is the critical first step. They you can verify the extents and types of features available. The ogrinfo within the GDAL tree is the real and only one. Have you been able to build or download a recent ogrinfo? Does it work? If not how does it fail? I suggest you take this up directly with me by email. I have just released GDAL/OGR 1.1.7 a few minutes ago, and perhaps I should prepare a corresponding binary release for Windows since the most recent binary release is rather out of date, and likely predates alot of my work integrating DGN in OGR properly. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From assefa at dmsolutions.ca Thu Apr 18 08:32:29 2002 From: assefa at dmsolutions.ca (Assefa Yewondwossen) Date: Thu, 18 Apr 2002 11:32:29 -0400 Subject: [mapserver-users] PHP, OGR, DGN help... References: <3DFF131E4E6D2D4198CDD758F35A5353010ABA22@postoffice.GASAI.Com> Message-ID: <3CBEE70D.6F1FE847@dmsolutions.ca> Hi There, We have used recently here DGN files through OGR support and It was working ok. I think that the dll you got did not include the latest GDAL/OGR library (with proper support of DGN). I could send you directly the latest php_mapscript.dll compiled for php4.1.2 if you are able to updgrade your php. I am also going to put a new version on our download site later today. Best Regadrs, "Hankley, Chip" wrote: > I need help integrating a DGN file in a MapServer app using PHP MapScript. > > Configuration: > > Win2K, IIS > PHP 4.06 > php_mapscript_35.dll (1/11/2002) from DMSolutions site (this is in the > PHP4.06_ms5_final distribution folder) > > Problem: > > The DGN doesn't render... > > No errors are returned, I just get a blank map window. The OGR part seems to > be working b/c if I change the source to shapefile, I can get a shapefile to > render (I converted the DGN to a shapefile in ArcView, and put it in the > same directory, if I toggle the CONNECTION lines in the mapfile below, the > shapefile works, the DGN doesn't). > > As an aside, I can't seem to get the OGRINFO command to work... I downloaded > the GDAL binary for WINNT (http://www.remotesensing.org/gdal/). This is > somewhat confusing b/c the gdal documentation focuses on raster data. Is > there an OGRINFO utility that is different than the OGRINFO that is in the > GDAL distribution? > > TIA > > Chip Hankley > > MAPFILE - > > # -------------------------------------------------------------- > # Start of map file > # -------------------------------------------------------------- > SIZE 400 400 > EXTENT 263269 169782 285819 210757 > UNITS FEET > SHAPEPATH "C:\Inetpub\wwwroot\OGR" > IMAGECOLOR 204 204 255 > # -------------------------------------------------------------- > # Start of web interface definition > # -------------------------------------------------------------- > WEB > IMAGEPATH "C:\Inetpub\wwwroot\tmp\" > IMAGEURL "/tmp/" > END > > # -------------------------------------------------------------- > # Start of layer definitions > # -------------------------------------------------------------- > LAYER > NAME CAD1 > TYPE LINE > STATUS ON > Connectiontype OGR > CONNECTION "C:\Inetpub\wwwroot\OGR\junk.dgn" > #CONNECTION "C:\Inetpub\wwwroot\OGR\test_cad.shp" > CLASS > COLOR 0 255 0 > END > END # CAD1 > END # End of MapFile -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From guillaume.sueur at khi2.fr Thu Apr 18 09:13:07 2002 From: guillaume.sueur at khi2.fr (Guillaume SUEUR) Date: Thu, 18 Apr 2002 18:13:07 +0200 Subject: [mapserver-users] php code for % Message-ID: <39C3B358D4E29A418FEC50B4FD75E663019631@khi2-msg.khi2.fr> Hi all, I'm using Rosa applet like in Gmap demo, using an external file which prints into a main one. When writing the rosa parameters i'm using printf. But how can I printf a "%" as it is immediatly interpretated ? I've tried using chr(37), but the result is the same, php answers too few parameter. Thanks for help ------------------------------ Guillaume SUEUR Ing?nieur d?veloppement GEOSIGNAL 25 bis avenue Marcel Dassault BP 5836 31505 TOULOUSE CEDEX 5 T?l : 05 61 17 47 17 Fax : 05 61 54 30 14 ------------------------------- From andreas_hirner at hotmail.com Thu Apr 18 09:31:27 2002 From: andreas_hirner at hotmail.com (Andreas Hirner) Date: Thu, 18 Apr 2002 18:31:27 +0200 Subject: [mapserver-users] Java Mapscript Message-ID: Hello, I have been able to compile mapserver 3.5 on Linux/Suse 7.3 and got the demo running. Now I am thinking of using Java mapscript within Jsp Pages. Does anybody know how to go about this. Do I have to use Swig to create the Java sources from the nightly builds or are there other Java sources available. Is the functionality or reliability of Java mapscript similar to that of the Perl or PHP versions or are there any limitations. Are there any manuals covering the usage of Java mapscript. And so on.. I would appreciate any information or hints concerning the compilation and usage of Java mapscript in the linux environment. Thanks in advance Andreas Hirner _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com From pushkar at ERC.MsState.Edu Thu Apr 18 10:00:06 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Thu, 18 Apr 2002 12:00:06 -0500 (CDT) Subject: [mapserver-users] Help with compiling on Suse7.3 (FWD) In-Reply-To: <200204171448.g3HEmPR12373@mallit.fr.umn.edu> Message-ID: >From your configure messages it seems you're trying to use GIF support also and your gd version doesn't support it or you have multiple gds on your system and mapserver is not finding the right one, if so then you have to point it for mapserver using the --with options. > > ------------- Begin Forwarded Message ------------- > > X-Originating-IP: [217.233.76.149] > From: "Andreas Hirner" > To: mapserver-info at lists.gis.umn.edu > Subject: Help with compiling on Suse7.3 > Date: Wed, 17 Apr 2002 10:24:37 +0200 > Mime-Version: 1.0 > X-OriginalArrivalTime: 17 Apr 2002 08:24:37.0404 (UTC) > FILETIME=[4FEB35C0:01C1E5E9] > > Hello, > I'm new to MapServer and at this point I'm still evaluating it. I am also > not very familiar with the configure and make tools. I tried to compile > version 3.5 with the basic configuration. Configure runs without any error > messages, but make prompts the following error: > > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG > -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > mapbits.c -o mapbits.o > In file included from map.h:28, > from mapbits.c:1: > mapsymbol.h:4: gd.h: No such file or directory > In file included from mapbits.c:1: > map.h:34: gd.h: No such file or directory > make: *** [mapbits.o] Error 1 > > Does anybody know what's going wrong? The output of configure is listed > below. > > Regards > Andreas Hirner > > Configure > loading cache ./config.cache > checking for gcc... (cached) gcc > checking whether the C compiler (gcc ) works... yes > checking whether the C compiler (gcc ) is a cross-compiler... no > checking whether we are using GNU C... (cached) yes > checking whether gcc accepts -g... (cached) yes > checking for c++... (cached) c++ > checking whether the C++ compiler (c++ ) works... yes > checking whether the C++ compiler (c++ ) is a cross-compiler... no > checking whether we are using GNU C++... (cached) yes > checking whether c++ accepts -g... (cached) yes > checking for ranlib... (cached) ranlib > checking for flex... (cached) flex > checking for yywrap in -lfl... (cached) yes > checking for bison... (cached) bison -y > checking if compiler supports -R... (cached) no > checking if compiler supports -Wl,-rpath,... (cached) yes > checking for exp in -lm... (cached) yes > checking how to run the C preprocessor... (cached) gcc -E > checking for ANSI C header files... (cached) yes > checking for strcasecmp... (cached) yes > checking for strncasecmp... (cached) yes > checking for strdup... (cached) yes > checking whether we should include JPEG support... > checking for jpeg_read_header in -ljpeg... yes > using libjpeg from system libs. > checking which version of GD to use... > checking where FreeType is installed... > checking for FT_Init_FreeType in -lfreetype... no > checking for TT_Init_FreeType in -lttf... yes > using libfreetype -lttf from system libs. > checking where Zlib is installed... > checking for zlibVersion in -lz... yes > using libz from system libs. > checking where PNG is installed... > checking for png_init_io in -lpng... yes > using libpng from system libs. > checking for gdImageCreate in -lgd... yes > checking for gdImageGif in -lgd... no > checking for gdImagePng in -lgd... yes > checking for gdImageJpeg in -lgd... yes > checking for gdImageWBMP in -lgd... yes > checking for gdImageStringFT in -lgd... yes > checking for gdImageString16 in -lgd... yes > checking for gdImageGifPtr in -lgd... no > using GD ( -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT) > from system libs. > checking whether we should include PDF support... > checking for PDF_setlinewidth in -lpdf... no > checking for PDF_setrgbcolor in -lpdf... no > checking for PDF_moveto in -lpdf... no > checking for PDF_curveto in -lpdf... no > checking for PDF_show_xy in -lpdf... (cached) no > libpdf not found... PDF support not included. > checking whether we should include TIFF support... > checking for TIFFOpen in -ltiff... yes > using libtiff from system libs. > checking whether we should include EPPL7 support... > including EPPL7 support. > checking whether we should include PROJ.4 support... > PROJ.4 support not requested. > checking whether we should include ESRI SDE support... > ESRI SDE support not requested. > checking whether we should compile in MPATROL support... > MPATROL support not requested. > checking whether we should include OGR support... > OGR support not requested. > checking if GDAL support requested... no > checking if PostGIS support requested... no > checking if OracleSpatial support requested... no > checking whether we should include WMS support... > OGC WMS Compatibility not enabled (PROJ.4 is required for WMS). > checking whether we should include WMS Client Connections support... > OGC WMS Client Connections not enabled (PROJ.4 and libwww required). > Compiling with -DIGNORE_MISSING_DATA. > checking for PHP/MapScript module options... > PHP/MapScript module not configured. > creating ./config.status > creating Makefile > > > > > _________________________________________________________________ > Send and receive Hotmail on your mobile device: http://mobile.msn.com > > > ------------- End Forwarded Message ------------- > > -Pushkar S. Pradhan From pushkar at ERC.MsState.Edu Thu Apr 18 10:05:16 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Thu, 18 Apr 2002 12:05:16 -0500 (CDT) Subject: [mapserver-users] PHP and SCALE In-Reply-To: <003601c1e6a6$b16c29e0$0601a8c0@comai.loc> Message-ID: Hi Stefano, I think $gpoMap->scale is only a read only function, and must be assigning this values to your $scale variable which is not part of the $gpoMap object, I think you should trying using the set method: $gpoMap->set("scalebar", "value of scale you want"); Please check the correct syntax for scalebar. > Hi, > one question: why, after the assignment $scale = -1 ? > I'd like to use $scale in order to display a map only for a particular scale > range but its value is always -1. > > > $gpoMap = ms_newMapObj("mymapfile.map"); > : > : > : > $poLayer = $gpoMap->getlayer(1); > $scale = $gpoMap->scale; > > > Thanks. > > Stefano B. > > > --- > Outgoing mail is certified Virus Free. (FLASHH!) > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.350 / Virus Database: 196 - Release Date: 17/04/02 > -Pushkar S. Pradhan From ychen at yorktel.com Thu Apr 18 10:18:54 2002 From: ychen at yorktel.com (Yu-Hsin Chen) Date: Thu, 18 Apr 2002 13:18:54 -0400 Subject: [mapserver-users] oraclespatial query through CGI Message-ID: <4C5998A3E78C674A92183D4813806E82035CA0@ytcmail.yorktel.com> I'm running the mapserver 3.5 CGI version and HTML template on a Linux system. I followed Rod's guidance of Feb 11 and put a javascript function called DoQuery in my HTML file to call a Perl program (Rod's original version calls a PHP program, I figured it should work with Perl). Now my question is how do I specify when this DoQuery function is called. I'm still getting the error message of function not implemented when I execute the new HTML. Yu-Hsin Chen GIS Capabilities

SSA IVT 289 Site Cut-Over Status


 Powered by MapServer

Refresh Map
Query Data


Zoom In
Pan
Zoom Out

Zoom Size

Legend




From vguzman at bigfoot.com Thu Apr 18 10:36:15 2002 From: vguzman at bigfoot.com (Vladimir =?ISO-8859-15?Q?Guzm=E1n?=) Date: Thu, 18 Apr 2002 12:36:15 -0500 Subject: [mapserver-users] one layer over another References: <000201c1e6cb$bb745f00$7e3c2fc3@HSGIS> <200204181505.g3IF5ie01685@localhost.localdomain> Message-ID: <3CBF040F.6040007@bigfoot.com> Patricio: I use polygon hatch this way (and it works perfect for me): In the .map file: LAYER NAME "cobertura" TYPE POLYGON STATUS ON DATA cubrimiento TOLERANCE 5 CLASSITEM 'Nombre' CLASS EXPRESSION /./ OUTLINECOLOR 0 102 0 COLOR 102 102 102 SYMBOL diagonal_hash TEMPLATE "ttt" END END # Cobertura And in the symbol file: ---------------------- Symbol Name 'diagonal_hash' Type VECTOR Points 3 3 3 3 END END #diagonal_hash Hope that helps, -- Vladimir Guzm?n R. ----------------- www.main-task.com Patricio Gigoux wrote: > I think the same, but I have troubles with symbols because ms don't take me > .gif, do you know if I can define symbols as .png? > > thanks > > > El Jue 18 Abr 2002 07:25, Stepan Kafka escribi?: > >>There are two ways to allow this in MS: >> >>1. Using hatched symbols or only outlines for polygon fills (see >>mapfile/symbolset documentation page) >>2. Using TRANSPARENCY parameter to set the layer semi-transparent (also can >>be found in documentation) >> >>Stepan >> >> >>>-----P?vodn? zpr?va----- >>>Od: owner-mapserver-users at lists.gis.umn.edu >>>[mailto:owner-mapserver-users at lists.gis.umn.edu]za u?ivatele Patricio >>>Gigoux >>>Odesl?no: 17. dubna 2002 23:16 >>>Komu: mapserver-users at lists.gis.umn.edu >>>P?edm?t: [mapserver-users] one layer over another >>> >>> >>>I need show 2 layer, where I can view one over other one, but >>>when I do it I >>>can't watch the layer rear, both are polygon, and I need wahtch both >>>Is there something that allow me set transparent one of them? >>> >>>Thanks in advance >>> >>>Patricio >>> > > From ychen at yorktel.com Thu Apr 18 10:25:20 2002 From: ychen at yorktel.com (Yu-Hsin Chen) Date: Thu, 18 Apr 2002 13:25:20 -0400 Subject: [mapserver-users] mapscript 3.5 and perl Message-ID: <4C5998A3E78C674A92183D4813806E8202334B@ytcmail.yorktel.com> I'm running Mapserver 3.5 on a Linux system. When I run the CGI version and HTML template with map file I have the display of maps without any problem. I compiled and installed mapscript perl version. When I run dump.pl from examples I get can't load '......mapscript.so' for module mapscript: ......mapscript.so: undefined symbol: OCIErrorGet at ......DynaLoader.pm line 200. at .....mapscript.pm line 7 What am I missing? Yu-Hsin Chen From ychen at yorktel.com Thu Apr 18 10:32:35 2002 From: ychen at yorktel.com (Yu-Hsin Chen) Date: Thu, 18 Apr 2002 13:32:35 -0400 Subject: [mapserver-users] OracleSpatial limitations Message-ID: <4C5998A3E78C674A92183D4813806E82035CA1@ytcmail.yorktel.com> Bjarni: It is interesting that I just sent off a question related with your item 3. I'm running the Mapserver on a Linux system and I don't have any problem with what you described as in 1 and 2. Since you got our favorite Dr. Watson involved, do you want to try to recompile your Mapserver or if you can find another Windows box with less applications and try on it? This may be a good incentive for you to get your hands wet on Linux/Unix system and it probably benefits in the long run. Yu-Hsin Chen -----Original Message----- From: Bjarni Pjetursson [mailto:Bjarni.Pjetursson at tietoenator.com] Sent: Thursday, April 18, 2002 10:55 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] OracleSpatial limitations Hi all, I've been playing around with MapServer for a couple of weeks now, doing mapping of SHP-files, OGR-files and spatial data from Oracle. MapServer is pretty impressive! I'm using version 3.5 for Windows with OracleSpatial support (got the binary from http:parvillers.homeip.net/mapserver). Since (I think) I found a couple of bugs/limitations in the OracleSpatial support, I was wondering if anyone knows the current status on the following issues: 1. labeling of OracleSpatial shapes not working (Dr. Watson crash on NT) try doing a LABELITEM "MyOracleSpatialColumnName" 2. multi-column expressions not working (Dr. Watson crash on NT) try doing a: EXPRESSION ([Column1] > 225 AND [Column2] > 315) 3. item query of OracleSpatial shapes not working see Rodrigo's mail from 11. Jan. 2002 in the mailing list Any links to MapServer with OracleSpatial support would also be appreciated. Regards Bjarni Thor Pjetursson From TMitchell at lignum.com Thu Apr 18 11:03:13 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Thu, 18 Apr 2002 11:03:13 -0700 Subject: [mapserver-users] PHP, OGR, DGN help... Message-ID: Hi Chip, one thing to keep in mind is that STYLEITEM "AUTO" may not always give you the results you were anticipating (if you are using this feature). It was kind of funny because this automatic styling was working great - but I thought I kept getting a blank screen. Indeed, this was a "user-related issue" :) What was happening was that MapServer was rendering the linework properly but it was colouring it white - which was the same colour as my map background...you guessed it...my map looked blank. Once I went into the map file and change the IMAGECOLOR setting to something other than white - oddly enough the map started to appear :) So, you may want to try the same to make sure that it's not something that simple. Also, does it appear that MapServer is taking time to render the DGN data? I mean, does it take any longer to draw your map with or without the DGN layer loading? If there is no "time" difference, I would assume it's not loading at all. But even if the background is the same colour as the features, it probably would still take a tad bit longer to render your map. Enjoy. Tyler "Hankley, Chip" To: "MapServer List (E-mail)" Sent by: cc: owner-mapserver-users at lists. Fax to: gis.umn.edu Subject: [mapserver-users] PHP, OGR, DGN help... 04/18/2002 07:26 AM I need help integrating a DGN file in a MapServer app using PHP MapScript. Configuration: Win2K, IIS PHP 4.06 php_mapscript_35.dll (1/11/2002) from DMSolutions site (this is in the PHP4.06_ms5_final distribution folder) Problem: The DGN doesn't render... No errors are returned, I just get a blank map window. The OGR part seems to be working b/c if I change the source to shapefile, I can get a shapefile to render (I converted the DGN to a shapefile in ArcView, and put it in the same directory, if I toggle the CONNECTION lines in the mapfile below, the shapefile works, the DGN doesn't). As an aside, I can't seem to get the OGRINFO command to work... I downloaded the GDAL binary for WINNT (http://www.remotesensing.org/gdal/). This is somewhat confusing b/c the gdal documentation focuses on raster data. Is there an OGRINFO utility that is different than the OGRINFO that is in the GDAL distribution? TIA Chip Hankley MAPFILE - # -------------------------------------------------------------- # Start of map file # -------------------------------------------------------------- SIZE 400 400 EXTENT 263269 169782 285819 210757 UNITS FEET SHAPEPATH "C:\Inetpub\wwwroot\OGR" IMAGECOLOR 204 204 255 # -------------------------------------------------------------- # Start of web interface definition # -------------------------------------------------------------- WEB IMAGEPATH "C:\Inetpub\wwwroot\tmp\" IMAGEURL "/tmp/" END # -------------------------------------------------------------- # Start of layer definitions # -------------------------------------------------------------- LAYER NAME CAD1 TYPE LINE STATUS ON Connectiontype OGR CONNECTION "C:\Inetpub\wwwroot\OGR\junk.dgn" #CONNECTION "C:\Inetpub\wwwroot\OGR\test_cad.shp" CLASS COLOR 0 255 0 END END # CAD1 END # End of MapFile From gsathis at hashprompt.com Thu Apr 18 11:37:04 2002 From: gsathis at hashprompt.com (Sathiskumar Govindasamy) Date: Thu, 18 Apr 2002 13:37:04 -0500 Subject: [mapserver-users] Re: Java Mapscript References: Message-ID: <3CBF1250.5030104@hashprompt.com> Andreas, This is what I did. I got the mapserver source code and untarred it and did the following ./configure --with-jpeg --with-gd --with-proj --with-gdal=/usr/local/bin/gdal-config make Then I got the SWIG Version 1.3.11 source. ./configure --with-javac=/usr/java/j2sdk1.4.0/bin/ --with-java=/usr/java/j2sdk1.4.0/bin/ --with-javaincl=/usr/java/j2sdk1.4.0/include/ make make install I created a directory called java in mapserver-src/mapscript and created a symlink for mapscript.i inside it. (In the new nightly builds, you might not need this step since it should be already in there) /usr/local/bin/swig -java -shadow -package mapscript mapscript.i It created some java files. Then I did FLAGS="-DUSE_PROJ -DUSE_PROJ_API_H -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_WMS -DUSE_TIFF -DUSE_JPEG -DUSE_EPPL -DUSE_GDAL"gcc -fpic -c $FLAGS -I/usr/java/j2sdk1.4.0/include -I/usr/java/j2sdk1.4.0/include/linux mapscript_wrap.c gcc -fpic -shared -o libmapscript.so -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -ltiff -L/usr/local/lib -lgdal.1.1 -lproj mapscript_wrap.o ../../libmap.a Java programs didn't compile right off the bat. I need to correct all those 'long' variable types and return types. Then it compiled. (New nightly build should compile clean) In tomcat, I added the following line in /etc/tomcat4/conf/tomcat4.conf export LD_LIBRARY_PATH=/opt/mapserver/mapscript/java:$LD_LIBRARY_PATH I have the mapserver installed on /opt/ I have attached a servlet sample . Thanks Sathis Andreas Hirner wrote: > Hello, > > I have been able to compile mapserver 3.5 on Linux/Suse 7.3 and got > the demo running. Now I am thinking of using Java mapscript within Jsp > Pages. > Does anybody know how to go about this. Do I have to use Swig to > create the Java sources from the nightly builds or are there other > Java sources available. Is the functionality or reliability of Java > mapscript similar to that of the Perl or PHP versions or are there any > limitations. Are there any manuals covering the usage of Java > mapscript. And so on.. > I would appreciate any information or hints concerning the compilation > and usage of Java mapscript in the linux environment. > > Thanks in advance > Andreas Hirner > > > _________________________________________________________________ > Chat with friends online, try MSN Messenger: http://messenger.msn.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: map.java URL: From ARyan at co.linn.or.us Thu Apr 18 11:59:45 2002 From: ARyan at co.linn.or.us (Ryan, Adam) Date: Thu, 18 Apr 2002 11:59:45 -0700 Subject: [mapserver-users] Accessing external files using javascript ( other) Message-ID: <614FCE5F14A6D41180C200010240D6A29A44FA@LINNMS> Thanks to Giorgio, Robert Crossley, Pushkar S. Pradhan, Bud etc. for help on accessing external files. MapServer and this mailing list are the bomb! I love this stuff. I'm working on a slick interface for public access to county records. I had wanted to access files on the client and server side. On the server side, I'm going with asp in one frame to control the other (as long as our IT guys stick with ms server). On the client side, I haven't gotten there yet and I'm not sure if I need to but I explored the data-binding in explorer and it looks sweet. I demo'd an easy way to use a delimited text file (as a url path) as a data source. Very nice and easy on IE but of course this doesn't work on Netscape. Is anyone out there surprised? Thanks again, Adam Ryan Linn County GIS From gabriel at ciasc.gov.br Thu Apr 18 12:18:01 2002 From: gabriel at ciasc.gov.br (gabriel) Date: Thu, 18 Apr 2002 16:18:01 -0300 Subject: [mapserver-users] Problem with TestSuite itemquery/ References: <20020418070526.23748.qmail@email.com> Message-ID: <01cf01c1e70d$c3da2890$12d713ac@ciasc.gov.br> Hi "Untung Rasidin" I use to convert MAPINFO file to SHAPE, using Universal Translator in MapInfo. I have perceived that a described attribute with more than eight characters the MapServer does not recognize. Thus, transforms ABBREVNAME for ABBRNAME, and try again. I do not know explain why. Ferrari, Gabriel ----- Original Message ----- From: "Untung Rasidin" To: Cc: Sent: Thursday, April 18, 2002 4:05 AM Subject: [mapserver-users] Problem with TestSuite itemquery/ > Hi, All > > I have tried TestSuite from http://maps.dnr.state.mn.us/mapserver_demos/tests > using mapserv_3.3,mapserv_3.4,and mapserv_3.5, but all failed. Here are the error messages: > > -using mapserv_3.3/mapserv_3.4: > Error message: > msQueryUsingItem(): Search returned no results. No matching record(s) found > > here is my input form: > >

> MAPSERVER VERSION 3.3
> > > > PICK A COUNTRY:
> > >
> > ABBREVNAME IS the attrribute in world94.shp (world94.shp from Esri tutorial/Arcview) shape file. > > -using mapserv_3.5: > Error massage: > loadLayer(): Unknown identifier. (QUERY):(58) > > I have modified the map file for mapserv_3.5, without attribute QUERY, and the result is: > msQueryByAttributes(): General error message. No query layer defined. > > I try to add this input to the form: > > the result is: > msQueryByAttributes(): Query error. Requested layer has no filter defined. > > Myquestion is: > - what version of mapserver should be used for that Test Suite, or what wrong with these? > - how to use attribute FILTER in map file? I have tried alot of trial and error, but never success. > Would you give me a similar example (just a simple test for itemquery ) for mapserver version 3.5, please. > > -- > > _______________________________________________ > Sign-up for your own FREE Personalized E-mail at Email.com > http://www.email.com/?sr=signup From Chip.Hankley at GASAI.Com Thu Apr 18 12:23:07 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Thu, 18 Apr 2002 14:23:07 -0500 Subject: [mapserver-users] PHP, OGR, DGN help... Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABA2F@postoffice.GASAI.Com> OK, The problem was that the DLL I was using - php_mapscript_35.dll (1/11/2002) from DMSolutions site (this is in the PHP4.06_ms5_final distribution folder) - was apparently compiled with an earlier version of GDAL that did not support DGN. I upgraded to 4.12 and used the mapscript dll from the php4.1.2_php_mapscript_36-dev_libwww.zip on DMSolutions site and it works great. Thanks for everyone's help. Chip Hankley From lfilak at medinaco.org Thu Apr 18 13:27:16 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Thu, 18 Apr 2002 16:27:16 -0400 Subject: [mapserver-users] mapscript 3.5 and perl Message-ID: <200204182018.g3IKIIQ20971@yogi.medinaco.net> I believe that error points to a problem while compiling with the --with-oraclespatial argument. Try recompiling & installing without it and see if the error is gone. Lowell F. The following message was sent by "Yu-Hsin Chen" on Thu, 18 Apr 2002 13:25:20 -0400. > I'm running Mapserver 3.5 on a Linux system. When I run the CGI version and HTML template with map file I have the display of maps without any problem. > > I compiled and installed mapscript perl version. > > When I run dump.pl from examples I get can't load '......mapscript.so' for module mapscript: ......mapscript.so: undefined symbol: OCIErrorGet at ......DynaLoader.pm line 200. > at .....mapscript.pm line 7 > > What am I missing? > > Yu-Hsin Chen From morissette at dmsolutions.ca Thu Apr 18 13:35:48 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 18 Apr 2002 16:35:48 -0400 Subject: [mapserver-users] php code for % References: <39C3B358D4E29A418FEC50B4FD75E663019631@khi2-msg.khi2.fr> Message-ID: <3CBF2E24.28054D84@dmsolutions.ca> Guillaume SUEUR wrote: > > I'm using Rosa applet like in Gmap demo, using an external file which prints into a main one. When writing the rosa parameters i'm using printf. But how can I printf a "%" as it is immediatly interpretated ? I've tried using chr(37), but the result is the same, php answers too few parameter. > You can use '%%' in a printf format string to output a '%' char, e.g. printf("Apache runs on more than 50%% of the servers on the Internet"); -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From Chip.Hankley at GASAI.Com Thu Apr 18 13:56:03 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Thu, 18 Apr 2002 15:56:03 -0500 Subject: [mapserver-users] PHP, OGR, Labeling Features Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABA32@postoffice.GASAI.Com> I want to render labels out of a DGN file, using OGR. I can get the labels to show up if I simply define an annotation layer, however, they are not rotated or scaled at all (they are in the original DGN). I get lost in the documentation if I try to use any of the following: LABELITEM "string" LABELSIZEITEM "size" LABELANGLEITEM "angle" The HOW-TO (http://mapserver.gis.umn.edu/doc/ogr-howto.html#d41e528) says the following: The text string is mapped to CLASS.TEXT Text color is mapped to CLASS.LABEL.COLOR Text background color is mapped to CLASS.LABEL.BACKGROUNDCOLOR Text height is mapped to CLASS.LABEL.SIZE Text angle is mapped to CLASS.LABEL.ANGLE What does this translate to in a map file? Here's a snippet of OGRINFO for one of the features I want to label: OGRFeature(elements):28877 DGNId (Integer) = 28877 Type (Integer) = 17 Level (Integer) = 5 GraphicGroup (Integer) = 0 ColorIndex (Integer) = 3 Weight (Integer) = 2 Style (Integer) = 0 _gv_color (String) = 1.000000 0.000000 0.000000 1.0 _gv_ogrfs (String) = LABEL(t:"AP141") POINT (-1045674.733 -93744.598) TIA Chip Hankley From kridl at cs.und.edu Thu Apr 18 14:55:19 2002 From: kridl at cs.und.edu (Kent S Ridl) Date: Thu, 18 Apr 2002 16:55:19 -0500 (CDT) Subject: [mapserver-users] perl - zooming, panning, and such Message-ID: greetings! i have a couple things... first, when i run my script, everything displays as it should initially, but if i look in my web log, there are a couple references to "(in cleanup) not a hash reference...(blah).../mapscript.pm line 1801" i've seen other lines pop up every now and then for other objects, but 1801 is the only consistent one. just wondering if anybody in mapscript land might know what's causing that. the only thing i can think of is i'm using mapscript to build everything from scratch without a mapfile or anything else. is that a valid possibility?? second, i need guidance on getting a pan-and-zoom interface to work. i've toyed with porting the php example from the online docs to perl and also with a recent post from lowell, but to no avail. methinks most of my problem is because i don't really understand extents and what they represent well enough to manipulate them the way i need. if anyone has any good references or comments on that, i'd appreciate it greatly. also, is it possible that the aforementioned problem may be affecting my pan/zoom logic? just a thought... anyhoo, thanks in advance for your help! sorry for being so long-winded! :-D kent ridl From vguzman at bigfoot.com Thu Apr 18 17:58:05 2002 From: vguzman at bigfoot.com (Vladimir =?ISO-8859-1?Q?Guzm=E1n?=) Date: Thu, 18 Apr 2002 19:58:05 -0500 Subject: [mapserver-users] solaris compile problem Message-ID: <3CBF6B9D.6050204@bigfoot.com> Hello list. I've been a hard work trying to get mapserver to work in solaris. After many problems I've had, now I'm blocked. The server is Solaris SPARC 8 Configure order: ./configure --with-gd=/usr/local/maintask/gd-1.8.4 --with-php=/usr/local/maintask/php-4.0.6 --with-apxs=/usr/local/apache/bin/apxs --with-ttf When I'm building it dies with the error: gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/maintask/gd-1.8.4 shp2img.c -o shp2img.o gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/maintask/gd-1.8.4 shp2img.o -L. -lmap -L/usr/local/maintask/gd-1.8.4 -lgd -ljpeg -lfreetype -lpng -L/lib -lz -ljpeg -lfreetype -lpng -L/lib -lz -ljpeg -lm -o shp2img ./libmap.a(mapogr.o)(.eh_frame+0x11): undefined reference to `__gxx_personality_v0' collect2: ld returned 1 exit status make: *** [shp2img] Error 1 I've updated gcc from solaris's site: * gcc-3.0.3-sol8-sparc-local.gz I've updated make from solaris's site: * make-3.79.1-sol8-sparc-local.gz with no luck. Please, if anyone can help me, it would be very-very apreciated. Thanks in advance, -- Vladimir Guzm?n R. ----------------- www.main-task.com From johnhagstrand at interageresearch.com Thu Apr 18 19:41:32 2002 From: johnhagstrand at interageresearch.com (John Hagstrand) Date: Thu, 18 Apr 2002 21:41:32 -0500 Subject: [mapserver-users] line width In-Reply-To: <3CBD80FC.89F9D7EE@swoodbridge.com> References: <4.3.2.7.0.20020417053519.00b9b758@pop.registeredsite.com> Message-ID: <4.3.2.7.0.20020418213938.03c26eb8@pop.registeredsite.com> Hi Stephen, Thanks for responding. Yes I can post the map file. It is included below. John At 09:04 AM 4/17/2002, you wrote: >John, > >can you post the section of your map file that controls the shapefiles >in question. Typically, it is the SIZE parameter often used in >conjunction with SYMBOL 'circle' > >-Steve > >John Hagstrand wrote: > > > > Hello, > > How do I specify line width for line shape files? Mine are coming up two > > pixels wide, and I want it to be one. > > Thanks > > John > > # # Start of map file # NAME DEMO STATUS ON SIZE 600 260 #EXTENT -88.128 42.436 -87.991 42.497 EXTENT -88.128 42.436 -87.991 42.497 UNITS dd SHAPEPATH "data" IMAGECOLOR 255 255 255 # # Start of web interface definition (including WMS enabling metadata) # WEB HEADER demo_header.html TEMPLATE demo.html FOOTER demo_footer.html MINSCALE 1000 MAXSCALE 1550000 IMAGEPATH "set in demo_init.html" IMAGEURL "set in demo_init.html" METADATA WMS_TITLE "UMN MapServer Itasca Demo" WMS_ABSTRACT "This is the UMN MapServer demonstration application for Itasca County located in north central Minnesota." WMS_ACCESSCONSTRAINTS none # change this value to match your setup WMS_ONLINERESOURCE "http://localhost/itasca/demo_init.html" WMS_SRS "EPSG:26915" END END QUERYMAP SIZE 200 200 STATUS ON STYLE HILITE COLOR 255 0 0 END # # Start of layer definitions # LAYER NAME aerial TYPE RASTER STATUS OFF DATA aerial00.tif CLASS NAME 'aerial' COLOR 49 117 185 END END # aerial LAYER NAME lakes TYPE POLYGON STATUS OFF DATA wbd17097 CLASS NAME 'Lakes' COLOR 49 117 185 END TOLERANCE 3 END # lakes LAYER NAME railroads TYPE LINE STATUS OFF DATA lnb17097 CLASS NAME 'Railroads' COLOR 0 0 0 END TOLERANCE 3 END # railroads LAYER NAME streets TYPE LINE STATUS OFF DATA str17097 CLASS NAME 'Streets' COLOR 0 255 0 SIZE 0 MAXSIZE 1 END TOLERANCE 5 END # streets LAYER NAME streams TYPE LINE STATUS OFF DATA lnh17097 CLASS NAME 'Streams' COLOR 0 0 255 END TOLERANCE 3 END # Streams END # Map File ------------------------------------------------- John Hagstrand Interage Research, Inc. 847 838 5371 Software Development Consulting for Internet Archive Retrieval We help archives make knowledge accessible, useful, and relevant for everyone. http://www.interageresearch.com From bon at ivv-aachen.de Fri Apr 19 01:13:25 2002 From: bon at ivv-aachen.de (=?iso-8859-1?Q?Nicole_B=F6meke?=) Date: Fri, 19 Apr 2002 10:13:25 +0200 Subject: [mapserver-users] Examples using tiffs Message-ID: <000a01c1e77a$14ffcf60$3e01a8c0@ivvaachen.de> Thank you very much for the links. The article has some new aspects, even though it is only an introduction that can of cause not go into details. For example it mentiones that there can occure problems displaying an image that has been resized. Maybe I have exactly the problem that the extend of my image does not fit to the other data. And what about the demo? I unpacked it and tried to display the landsat.tif with Paint Shop Pro. But I got the message "this is not a valid tiff image". ArcExplorer gave me a similar error message, but displayed the shapefiles without any problems. Seems that I do not have any luck with tiffs :-( Nicole -----original message----- From: Frank Koormann [mailto:frank.koormann at intevation.de] Send: Montag, 15. April 2002 15:30 To: bon at ivv-aachen.de Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] Fwd: Examples using tiffs > Nicole, > * Lowell Filak (lfilak at medinaco.org) [020412 22:59]: > > I think there are quite a few sites out there that use tiff's. If you > > end up needing a sample just ask, but I think your problem may be in > > the data somewhere. > > > > > > > 1.) I read about an example called landsat (that uses > > > tiffs), but I can't find a link to it anywhere. Can anybody tell > > > me where I can get it or send a zipped copy of it to my mail > > > adress? > > A landsat example was in the old mapserver demo set for version 3.3. > > A copy of it is part of a rpm-package under > ftp://ftp.linux-magazin.de/pub/GIS/mapserver-3.3.011-1.i586.rpm > This out-dated out-of-the-box packages for Mapserver was part > of an article I wrote for the German LinuxMagazin > http://www.linux-community.de/Neues/story?storyid=135 > > Maybe it helps, please note that the old demo will not work with recent > versions of mapserver since the mapfile syntax has changed slightly. > > Regards, > > Frank > > -- > Frank Koormann > Professional Service around Free Software (http://intevation.net/) > FreeGIS Project (http://freegis.org/) From bon at ivv-aachen.de Fri Apr 19 01:07:34 2002 From: bon at ivv-aachen.de (=?iso-8859-1?Q?Nicole_B=F6meke?=) Date: Fri, 19 Apr 2002 10:07:34 +0200 Subject: [mapserver-users] Re: Problem with TestSuite itemquery Message-ID: <000901c1e779$43a6aba0$3e01a8c0@ivvaachen.de> Their is a testsuite version for mapserver 3.5 under http://maps.dnr.state.mn.us/mapserver_demos/tests3.5/. Untung Rasidin wrote: ---------------------- > Hi, All > > I have tried TestSuite from http://maps.dnr.state.mn.us/mapserver_demos/tests > using mapserv_3.3,mapserv_3.4,and mapserv_3.5, but all failed. Here are the error messages: > > -using mapserv_3.5: > Error massage: > loadLayer(): Unknown identifier. (QUERY):(58) This error is corrected by the testsuite version for mapserver 3.5. Insead of LAYER : CLASS : END QUERY TEMPLATE name.html END END for mapserver 3.5 you have to write LAYER : CLASS : TEMPLATE name.html END END Even using the testsuite version for mapserver 3.5 you might have to correct something. I had to add the following to all map files that had no web object defined: WEB TEMPLATE name.html END Because I have no truetype support I also commented out the following lines: #FONSET ../fonts/fonts.list #TYPE TRUETYPE #FONT arial Now the Item/value queries and the dynamic queries work correct with my mapserver. But I have still a problem with the point query examples and the pan and zoom example. For them I get the following error message: msGetBitmapFont(): GD library error. Invalid bitmap font. Must be one of tiny, small, medium, large or giant Has someone an idear how I can correct this? Nicole ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- -------------- Nicole B?meke IVV-Aachen Germany bon at ivv-aachen.de From bon at ivv-aachen.de Fri Apr 19 05:07:07 2002 From: bon at ivv-aachen.de (=?iso-8859-1?Q?Nicole_B=F6meke?=) Date: Fri, 19 Apr 2002 14:07:07 +0200 Subject: [mapserver-users] Problems displaying tiffs and jpegs Message-ID: <000f01c1e79a$baa1cbb0$3e01a8c0@ivvaachen.de> Just for testing, I now tried to display images in .jpg format instead of .tif format. But I got the same result - nothing shows up. I think I'm doing something really wrong. I used the jpegs created through mapserver in the /temp/ directory (output IMAGETYPE JPEG). After converting them to greyscale images with Paint Shop Pro, I had two jpeg images country.jpg and lakes.jpg. In the world files for these jpegs, I used the minx and the maxy extend from the shapefiles. country.wld: ----------------- 0.6 0.0000000000 0.0000000000 -0.6 388107.634400379 5310243.30613897 lakes.wld: ----------------- 0.6 0.0000000000 0.0000000000 -0.6 393234.393701 5303964.87675 To display the jpegs I modified the .map file from the demo like this: # # Start of layer definitions # LAYER NAME ctybdpy2 TYPE RASTER STATUS DEFAULT DATA country.jpg END LAYER NAME lakespy2 TYPE RASTER STATUS OFF DATA lakes.jpg CLASS COLOR 49 117 185 END END It would be gread, if you could help me, because by now I'm really stuck. Thanks, Nicole. -------------------------------------------------------------------------- Nicole B?meke IVV Aachen Germany bon at ivv-aachen.de -----Original message----- >>> Nicole B?meke 04/12/02 01:48 AM >>> > > 1.) I read about an example called landsat (that uses tiffs), but I > can't find a link to it anywhere. > Can anybody tell me where I can get it or send a zipped copy of > it to my mail adress? > > 2.) Are there other examples using tiffs available? I need a tiff and > a corresponding word file > that is known to work with mapserver. > > 3.) I have the problem that my tiff does not show up. > It is an 8 Bit uncompressed tiff with size 600 x 600. > > I used a world file like this: > 0.6 > 0.0000000000 > 0.0000000000 > -0.6 > 400000.00 > 5255555.00 > > To try it, I replaces the background layer of the itasca example > by this layer definition: > LAYER > NAME ctybdpy2 > TYPE RASTER > STATUS DEFAULT > DATA test.tif > END > > Has anybody an idear what I can do? > Thanks, Nicole. > > -------------------------------------------------------------------------- -- > Nicole B?meke > IVV Aachen > Germany > bon at ivv-aachen.de From cabral at yadata.net Fri Apr 19 05:27:58 2002 From: cabral at yadata.net (Rodrigo Cabral) Date: Fri, 19 Apr 2002 09:27:58 -0300 Subject: [mapserver-users] OracleSpatial limitations References: <18E0CC75605BD411907800508B8BB8D049E54E@odin.enator.dk> Message-ID: <009001c1e79d$ab050840$0207a8c0@naumaki> Hey there: Answering your questions: 1. labeling of OracleSpatial shapes not working (Dr. Watson crash on NT) try doing a LABELITEM "MyOracleSpatialColumnName" The problem with the labelitem, actually, is the way I'm fecthing data in a buffer when querying the database for it. This is not an infamous hard-to-find bug. I'll have it fixed soon. I my last post, I mentioned I have separated some time in the end of this month to make things work. Do you have other *item statements in the mapfile? Like classitem? That's usually when this bug appears, when 2 or more *items are used. 2. multi-column expressions not working (Dr. Watson crash on NT) try doing a: EXPRESSION ([Column1] > 225 AND [Column2] > 315) Same reason as above. 3. item query of OracleSpatial shapes not working see Rodrigo's mail from 11. Jan. 2002 in the mailing list Wait for the end of the month =) Regarding some documentation, I would be pleased to help anyone who'd wish to create a tutorial. I think this tutorial could extend the one that is presented in the Oracle Spatial reference (section 2.1 - cola markets). Starts with data creation using SDO SQL and ends up with MapServer display & query. Rod. ----- Original Message ----- From: "Bjarni Pjetursson" To: Sent: Thursday, April 18, 2002 11:55 AM Subject: [mapserver-users] OracleSpatial limitations Hi all, I've been playing around with MapServer for a couple of weeks now, doing mapping of SHP-files, OGR-files and spatial data from Oracle. MapServer is pretty impressive! I'm using version 3.5 for Windows with OracleSpatial support (got the binary from http:parvillers.homeip.net/mapserver). Since (I think) I found a couple of bugs/limitations in the OracleSpatial support, I was wondering if anyone knows the current status on the following issues: Any links to MapServer with OracleSpatial support would also be appreciated. Regards Bjarni Thor Pjetursson From woodbri at swoodbridge.com Fri Apr 19 05:43:08 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 19 Apr 2002 08:43:08 -0400 Subject: [mapserver-users] Problems displaying tiffs and jpegs References: <000f01c1e79a$baa1cbb0$3e01a8c0@ivvaachen.de> Message-ID: <3CC010DC.B615F763@swoodbridge.com> Nicole, The .wld files are in some kind of projection in METERS. What does the top of your mapfile look like? Have you specified a PROJECTION .. END? What are your EXTENTS? What are your UNITS? I think maybe these do not match your images. Which would account for your images not showing up. -Steve Nicole B?meke wrote: > > Just for testing, I now tried to display images in .jpg format instead of > .tif format. > But I got the same result - nothing shows up. I think I'm doing something > really wrong. > > I used the jpegs created through mapserver in the /temp/ directory (output > IMAGETYPE JPEG). > After converting them to greyscale images with Paint Shop Pro, I had two > jpeg images > country.jpg and lakes.jpg. In the world files for these jpegs, I used the > minx and the > maxy extend from the shapefiles. > > country.wld: > ----------------- > 0.6 > 0.0000000000 > 0.0000000000 > -0.6 > 388107.634400379 > 5310243.30613897 > > lakes.wld: > ----------------- > 0.6 > 0.0000000000 > 0.0000000000 > -0.6 > 393234.393701 > 5303964.87675 > > To display the jpegs I modified the .map file from the demo like this: > > # > # Start of layer definitions > # > > LAYER > NAME ctybdpy2 > TYPE RASTER > STATUS DEFAULT > DATA country.jpg > END > > LAYER > NAME lakespy2 > TYPE RASTER > STATUS OFF > DATA lakes.jpg > CLASS > COLOR 49 117 185 > END > END > > It would be gread, if you could help me, because by now I'm really stuck. > Thanks, Nicole. > > -------------------------------------------------------------------------- > Nicole B?meke > IVV Aachen > Germany > bon at ivv-aachen.de > > -----Original message----- > >>> Nicole B?meke 04/12/02 01:48 AM >>> > > > > 1.) I read about an example called landsat (that uses tiffs), but I > > can't find a link to it anywhere. > > Can anybody tell me where I can get it or send a zipped copy of > > it to my mail adress? > > > > 2.) Are there other examples using tiffs available? I need a tiff and > > a corresponding word file > > that is known to work with mapserver. > > > > 3.) I have the problem that my tiff does not show up. > > It is an 8 Bit uncompressed tiff with size 600 x 600. > > > > I used a world file like this: > > 0.6 > > 0.0000000000 > > 0.0000000000 > > -0.6 > > 400000.00 > > 5255555.00 > > > > To try it, I replaces the background layer of the itasca example > > by this layer definition: > > LAYER > > NAME ctybdpy2 > > TYPE RASTER > > STATUS DEFAULT > > DATA test.tif > > END > > > > Has anybody an idear what I can do? > > Thanks, Nicole. > > > > -------------------------------------------------------------------------- > -- > > Nicole B?meke > > IVV Aachen > > Germany > > bon at ivv-aachen.de From cabral at yadata.net Fri Apr 19 06:22:16 2002 From: cabral at yadata.net (Rodrigo Cabral) Date: Fri, 19 Apr 2002 10:22:16 -0300 Subject: [mapserver-users] oraclespatial query through CGI References: <4C5998A3E78C674A92183D4813806E82035CA0@ytcmail.yorktel.com> Message-ID: <00ba01c1e7a5$3b83d480$0207a8c0@naumaki> Hey there: What you need to do is to send the query to your querymap.pl, instead of sending it to mapserver's CGI. My HTML coding is quite different from yours. Go to http://g10.cttmar.univali.br/rastro/, click in "vers?o de demonstra??o", and you'll see what I mean. Anyway, I'll try to give you some hints on how you can proceed from the code you have now. 1) You will have to change the action in your form accordingly, using javascript. If the user selects "query" for "mode", then your action is "/cgi-bin/querymap.pl"; likewise, when "mode" is "browse" action is set to "/cgi-bin/mapserver/mapserv". You may use the onclick event in both of your "mode" radio button tags. 2) You will have to change querymap.pl to work with the physical (image), not logical (map) coordinates. This means that you remove DoQuery from your HTML, and put its "idea" in perl. In your case you won't have a rectangle to query, but a point (img.x and img.y must be used for qx1 and qy1), and imgext is the variable which's holding your extent values for translating physical to logical units. nx and ny are constants based on the size in pixels of your image. I'd love to give code samples, but kinda in a hurry right now... Cheers, Rod. ----- Original Message ----- From: "Yu-Hsin Chen" To: Sent: Thursday, April 18, 2002 2:18 PM Subject: [mapserver-users] oraclespatial query through CGI I'm running the mapserver 3.5 CGI version and HTML template on a Linux system. I followed Rod's guidance of Feb 11 and put a javascript function called DoQuery in my HTML file to call a Perl program (Rod's original version calls a PHP program, I figured it should work with Perl). Now my question is how do I specify when this DoQuery function is called. I'm still getting the error message of function not implemented when I execute the new HTML. Yu-Hsin Chen GIS Capabilities

SSA IVT 289 Site Cut-Over Status


 Powered by MapServer

Refresh Map
Query Data


Zoom In
Pan
Zoom Out

Zoom Size

Legend




From lfilak at medinaco.org Fri Apr 19 06:56:14 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Fri, 19 Apr 2002 09:56:14 -0400 Subject: [mapserver-users] Problem with TestSuite itemquery/ Message-ID: <200204191347.g3JDlGQ28098@yogi.medinaco.net> I believe that the problem relates back to: shapefiles store data in DBF files and a DBF file's column/item name is limited to 10 characters. Lowell F. The following message was sent by "gabriel" on Thu, 18 Apr 2002 16:18:01 -0300. > Hi "Untung Rasidin" > > I use to convert MAPINFO file to SHAPE, using Universal Translator in > MapInfo. > I have perceived that a described attribute with more than eight characters > the MapServer does not recognize. > Thus, transforms ABBREVNAME for ABBRNAME, and try again. > > I do not know explain why. > > Ferrari, Gabriel > > > ----- Original Message ----- > From: "Untung Rasidin" > To: > Cc: > Sent: Thursday, April 18, 2002 4:05 AM > Subject: [mapserver-users] Problem with TestSuite itemquery/ > > > > Hi, All > > > > I have tried TestSuite from > http://maps.dnr.state.mn.us/mapserver_demos/tests > > using mapserv_3.3,mapserv_3.4,and mapserv_3.5, but all failed. Here are > the error messages: > > > > -using mapserv_3.3/mapserv_3.4: > > Error message: > > msQueryUsingItem(): Search returned no results. No matching record(s) > found > > > > here is my input form: > > > >

> > MAPSERVER VERSION 3.3
> > value="/var/www/html/ms_demo/baleendah/world3_3.map"> > > > > > > PICK A COUNTRY:
> > > > > >
> > > > ABBREVNAME IS the attrribute in world94.shp (world94.shp from Esri > tutorial/Arcview) shape file. > > > > -using mapserv_3.5: > > Error massage: > > loadLayer(): Unknown identifier. (QUERY):(58) > > > > I have modified the map file for mapserv_3.5, without attribute QUERY, and > the result is: > > msQueryByAttributes(): General error message. No query layer defined. > > > > I try to add this input to the form: > > > > the result is: > > msQueryByAttributes(): Query error. Requested layer has no filter defined. > > > > Myquestion is: > > - what version of mapserver should be used for that Test Suite, or what > wrong with these? > > - how to use attribute FILTER in map file? I have tried alot of trial and > error, but never success. > > Would you give me a similar example (just a simple test for itemquery ) > for mapserver version 3.5, please. > > > > -- > > > > _______________________________________________ > > Sign-up for your own FREE Personalized E-mail at Email.com > > http://www.email.com/?sr=signup From lfilak at medinaco.org Fri Apr 19 07:25:52 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Fri, 19 Apr 2002 10:25:52 -0400 Subject: [mapserver-users] Examples using tiffs Message-ID: <200204191416.g3JEGsQ28458@yogi.medinaco.net> I extracted the landsat.tif from the link and it came up fine in Gimp & ImageMagick. I noticed it is LZW compressed and I'm not sure that ArcExplorer supports LZW compression due to copyrights and for some reason I can't reach ESRI's site. If you have a good internet connection I can e-mail the landsat.tif saved with packbits compression instead off-list. Lowell F. The following message was sent by =?iso-8859-1?Q?Nicole_B=F6meke?= on Fri, 19 Apr 2002 10:13:25 +0200. > Thank you very much for the links. > > The article has some new aspects, even though it is only an introduction > that can of cause not > go into details. For example it mentiones that there can occure problems > displaying an image that > has been resized. Maybe I have exactly the problem that the extend of my > image does not fit to > the other data. > > And what about the demo? I unpacked it and tried to display the landsat.tif > with Paint Shop Pro. > But I got the message "this is not a valid tiff image". ArcExplorer gave me > a similar error message, > but displayed the shapefiles without any problems. Seems that I do not have > any luck with tiffs :-( > > Nicole > > > -----original message----- > From: Frank Koormann [mailto:frank.koormann at intevation.de] > Send: Montag, 15. April 2002 15:30 > To: bon at ivv-aachen.de > Cc: mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] Fwd: Examples using tiffs > > > Nicole, > > > * Lowell Filak (lfilak at medinaco.org) [020412 22:59]: > > > I think there are quite a few sites out there that use tiff's. If you > > > end up needing a sample just ask, but I think your problem may be in > > > the data somewhere. > > > > > > > > > > 1.) I read about an example called landsat (that uses > > > > tiffs), but I can't find a link to it anywhere. Can anybody tell > > > > me where I can get it or send a zipped copy of it to my mail > > > > adress? > > > > A landsat example was in the old mapserver demo set for version 3.3. > > > > A copy of it is part of a rpm-package under > > ftp://ftp.linux-magazin.de/pub/GIS/mapserver-3.3.011-1.i586.rpm > > This out-dated out-of-the-box packages for Mapserver was part > > of an article I wrote for the German LinuxMagazin > > http://www.linux-community.de/Neues/story?storyid=135 > > > > Maybe it helps, please note that the old demo will not work with recent > > versions of mapserver since the mapfile syntax has changed slightly. > > > > Regards, > > > > Frank > > > > -- > > Frank Koormann > > Professional Service around Free Software (http://intevation.net/) > > FreeGIS Project (http://freegis.org/) From lfilak at medinaco.org Fri Apr 19 07:39:11 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Fri, 19 Apr 2002 10:39:11 -0400 Subject: [mapserver-users] perl - zooming, panning, and such Message-ID: <200204191430.g3JEUDQ28577@yogi.medinaco.net> Whithout diving into it further to eliminate the messages a quick fix is to exclude the perl -w option when running the script AFTER you are sure your code is clean and any warnings point elsewhere. As far as your zoom/pan problem goes could you explain exactly what is happening/what isn't happening. I'm afraid I'm not following what the problem/error is. Lowell F. The following message was sent by Kent S Ridl on Thu, 18 Apr 2002 16:55:19 -0500 (CDT). > greetings! i have a couple things... > > first, when i run my script, everything displays as it should initially, > but if i look in my web log, there are a couple references to "(in > cleanup) not a hash reference...(blah).../mapscript.pm line 1801" i've > seen other lines pop up every now and then for other objects, but 1801 is > the only consistent one. just wondering if anybody in mapscript land > might know what's causing that. the only thing i can think of is i'm > using mapscript to build everything from scratch without a mapfile or > anything else. is that a valid possibility?? > > second, i need guidance on getting a pan-and-zoom interface to work. i've > toyed with porting the php example from the online docs to perl and also > with a recent post from lowell, but to no avail. methinks most of my > problem is because i don't really understand extents and what they > represent well enough to manipulate them the way i need. if anyone > has any good references or comments on that, i'd appreciate it greatly. > also, is it possible that the aforementioned problem may be affecting my > pan/zoom logic? just a thought... > > anyhoo, thanks in advance for your help! sorry for being so long-winded! > :-D > > kent ridl From havard.tveite at ikf.nlh.no Fri Apr 19 07:45:48 2002 From: havard.tveite at ikf.nlh.no (Havard Tveite) Date: Fri, 19 Apr 2002 16:45:48 +0200 Subject: [mapserver-users] Limiting WMS GetFeatureInfo response Message-ID: <3CC02D9C.6A0F849@ikf.nlh.no> Is there a way to specify which attributes should be returned on a WMS GetFeatureInfo request? I am currently using the 3.5 Mapserver release. The support that I have found is: DUMP=false stops attributes from being shown when the request is for GML but not when the request is for something else (plain text return). Perhaps a mapserver "wms-tag" would do, something like: "ms-wms-public_attributes" "Name, Hair Color, Job" -- H?vard Tveite Phone: +47 64948857 Department of Mapping Sciences Fax: +47 64948856 Agricultural University of Norway POBox 5034, N-1432 ?s, NORWAY http://www.nlh.no/ikf/ From ychen at yorktel.com Fri Apr 19 10:46:21 2002 From: ychen at yorktel.com (Yu-Hsin Chen) Date: Fri, 19 Apr 2002 13:46:21 -0400 Subject: [mapserver-users] mapscript 3.5 and perl Message-ID: <4C5998A3E78C674A92183D4813806E82035CA3@ytcmail.yorktel.com> Thanks, Lowell and Steve. It took me quite a few tries to recompile and I finally got both oraclespatial and perl mapscript working. Well, my map based on oraclespatial is still running, as far as the perl mapscript, I havn't been able to have a display from mapquakes yet but at least we got rid of the mapscript.so error message. Yu-Hsin Chen -----Original Message----- From: Lowell Filak [mailto:lfilak at medinaco.org] Sent: Thursday, April 18, 2002 4:27 PM To: Yu-Hsin Chen; mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] mapscript 3.5 and perl I believe that error points to a problem while compiling with the --with-oraclespatial argument. Try recompiling & installing without it and see if the error is gone. Lowell F. The following message was sent by "Yu-Hsin Chen" on Thu, 18 Apr 2002 13:25:20 -0400. > I'm running Mapserver 3.5 on a Linux system. When I run the CGI version and HTML template with map file I have the display of maps without any problem. > > I compiled and installed mapscript perl version. > > When I run dump.pl from examples I get can't load '......mapscript.so' for module mapscript: ......mapscript.so: undefined symbol: OCIErrorGet at ......DynaLoader.pm line 200. > at .....mapscript.pm line 7 > > What am I missing? > > Yu-Hsin Chen From steve.lime at dnr.state.mn.us Fri Apr 19 11:16:50 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Fri, 19 Apr 2002 13:16:50 -0500 Subject: [mapserver-users] Limiting WMS GetFeatureInfo response Message-ID: Not at the moment. I don't recall seeing that level of control in the WMS spec or I imagine it would already have been added. The DUMP parameter is there simply to prevent wholesale download of the raw data (i.e. coordinate data). It has no effect otherwise. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Havard Tveite 04/19/02 09:45AM >>> Is there a way to specify which attributes should be returned on a WMS GetFeatureInfo request? I am currently using the 3.5 Mapserver release. The support that I have found is: DUMP=false stops attributes from being shown when the request is for GML but not when the request is for something else (plain text return). Perhaps a mapserver "wms-tag" would do, something like: "ms-wms-public_attributes" "Name, Hair Color, Job" -- H?vard Tveite Phone: +47 64948857 Department of Mapping Sciences Fax: +47 64948856 Agricultural University of Norway POBox 5034, N-1432 ?s, NORWAY http://www.nlh.no/ikf/ From pkishor at GeoAnalytics.com Fri Apr 19 11:23:01 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Fri, 19 Apr 2002 13:23:01 -0500 Subject: [mapserver-users] perl - zooming, panning, and such Message-ID: Kent, here's my conceptual $0.02. > > second, i need guidance on getting a pan-and-zoom interface > to work. i've > > toyed with porting the php example from the online docs to > perl and also > > with a recent post from lowell, but to no avail. methinks > most of my > > problem is because i don't really understand extents and what they > > represent well enough to manipulate them the way i need 1. everytime you draw the map, you need to set the mapextent. 2. if you are doing this for the very first time, you would usually start with the maximum extent of your map. otherwise, you would start with the current extent of the map. 3. so, let's reiterate... the first time is easy because you start with the maxextents. at that point in time, you send the current extent (which happens to be maxextents right now) to the client. you usually do that as hidden form fields. 4. now the map is sitting on the client. the user chooses to zoomin. the act of zooming in sends back to the server the point-of-click of zoomin, a (usually) preset zoomfactor, and the current extents that were in the hidden fields. 5. back at the server, you now start with these current extents and apply the zoomfactor to get the new current extents. and the process in #1 above restarts. did this make sense? pk/ From michel at omnisystem.com.br Fri Apr 19 11:28:58 2002 From: michel at omnisystem.com.br (Michel M. dos Santos) Date: Fri, 19 Apr 2002 15:28:58 -0300 Subject: [mapserver-users] how to do a simbol of arrow Message-ID: <02041915285801.02309@cartman.omni> Hello All, I need to represent a simbol like a arrow , for point a way. Example: point 1 -> -> -> -> -> -> -> -> -> -> -> -> point 2 point 4 <- <- <- <- <- <- <- <- <- <- <- <- point 3 Others angles too, always point a direction. This simbol should have a angle. How to do it ? -- []'s Michel M. dos Santos From steve.lime at dnr.state.mn.us Fri Apr 19 11:36:55 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Fri, 19 Apr 2002 13:36:55 -0500 Subject: [mapserver-users] perl - zooming, panning, and such Message-ID: Here's a 3.5 version of the mapquakes.pl script. It shows how to do a perl-based pan/zoom interface. Hope it helps. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Puneet Kishor 04/19/02 01:23PM >>> Kent, here's my conceptual $0.02. > > second, i need guidance on getting a pan-and-zoom interface > to work. i've > > toyed with porting the php example from the online docs to > perl and also > > with a recent post from lowell, but to no avail. methinks > most of my > > problem is because i don't really understand extents and what they > > represent well enough to manipulate them the way i need 1. everytime you draw the map, you need to set the mapextent. 2. if you are doing this for the very first time, you would usually start with the maximum extent of your map. otherwise, you would start with the current extent of the map. 3. so, let's reiterate... the first time is easy because you start with the maxextents. at that point in time, you send the current extent (which happens to be maxextents right now) to the client. you usually do that as hidden form fields. 4. now the map is sitting on the client. the user chooses to zoomin. the act of zooming in sends back to the server the point-of-click of zoomin, a (usually) preset zoomfactor, and the current extents that were in the hidden fields. 5. back at the server, you now start with these current extents and apply the zoomfactor to get the new current extents. and the process in #1 above restarts. did this make sense? pk/ -------------- next part -------------- A non-text attachment was scrubbed... Name: mapquakes.pl Type: application/octet-stream Size: 6468 bytes Desc: not available URL: From sgillies at i3.com Fri Apr 19 13:28:23 2002 From: sgillies at i3.com (Sean Gillies) Date: Fri, 19 Apr 2002 14:28:23 -0600 Subject: [mapserver-users] Problem setting name attribute of classObj with Python Mapscript References: <4C5998A3E78C674A92183D4813806E82035CA3@ytcmail.yorktel.com> Message-ID: <3CC07DE7.60908@i3.com> Have any Python (or other) Mapscript users found trouble with setting the "name" attribute of a classObj? I've been through the list archives but haven't found anything of help. In short, I'm unable to set the name attribute of a classObj by statements like myclass.name = "FOO" Am using Python Mapscript built from the 3.5 Win32 distribution. Here is the relevant code of my script. Am looping over several layers in a list and ftab['name'] is bound to a different value each time. ... class_OK = classObj(layer) class_OK.setExpression("/1/") class_OK.name = ftab['name'] + "_OK" class_OK.outlinecolor = purple # 255,0,255 class_DEF = classObj(layer) class_DEF.name = ftab['name'] + "_DEF" class_DEF.color = red class_DEF.outlinecolor = purple class_DEF.label.color = black class_DEF.label.type = MS_BITMAP class_DEF.label.size = MS_TINY class_DEF.label.position = MS_CC class_DEF.label.force = MS_TRUE ... map.save(...) The map is drawn and looks fine, but no legend. Examining the map file that was written, I see that everything is in its place except that there is no NAME for either of the two classes I've defined for every layer. Here is an excerpt from the map file: CLASS EXPRESSION /1/ MAXSIZE 100 MINSIZE 1 OUTLINECOLOR 255 0 255 SIZE 1 SYMBOL 0 END CLASS COLOR 255 0 0 LABEL SIZE TINY TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE TRUE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE POSITION CC END MAXSIZE 100 MINSIZE 1 OUTLINECOLOR 255 0 255 SIZE 1 SYMBOL 0 END Am stumped and grateful for any suggestions. thanks, Sean -- Sean Gillies Applications Developer i-cubed : information integration & imaging LLC 970-482-4400 voice 970-482-4499 fax http://www.i3.com From stepan.kafka at centrum.cz Fri Apr 19 13:36:14 2002 From: stepan.kafka at centrum.cz (Stepan Kafka) Date: Fri, 19 Apr 2002 22:36:14 +0200 Subject: [mapserver-users] how to do a simbol of arrow In-Reply-To: <02041915285801.02309@cartman.omni> Message-ID: <000201c1e7e1$d95c3080$7e3c2fc3@HSGIS> You can use truetype line symbols for it: 1. Define true type symbol, e.g.: SYMBOL NAME "arrow" TYPE "truetype" FONT "tahoma" #or what you have set in your fontset file GAP -10 #the value MUST be negative to enforce "as digitized" orientation CHARACTER ">" #or your own defined arrow symbol END 2. then in your map file layer class definition CLASS SYMBOL "arrow" SIZE 10 COLOR etc... END You can also set OVERLAYSYMBOL to combine arrows with lines etc... You can also use POSITION parameter in the symbol definition to set the symbol above/under line etc... Stepan Kafka > -----P?vodn? zpr?va----- > Od: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]za u?ivatele Michel M. > dos Santos > Odesl?no: 19. dubna 2002 20:29 > Komu: mapserver-users at lists.gis.umn.edu > P?edm?t: [mapserver-users] how to do a simbol of arrow > > > > > > Hello All, > > I need to represent a simbol like a arrow , for point a way. > > Example: > > point 1 -> -> -> -> -> -> -> -> -> -> -> -> point 2 > > point 4 <- <- <- <- <- <- <- <- <- <- <- <- point 3 > > Others angles too, always point a direction. > > This simbol should have a angle. How to do it ? > > > -- > []'s > Michel M. dos Santos > > From ychen at yorktel.com Fri Apr 19 13:31:09 2002 From: ychen at yorktel.com (Yu-Hsin Chen) Date: Fri, 19 Apr 2002 16:31:09 -0400 Subject: [mapserver-users] oraclespatial query through CGI Message-ID: <4C5998A3E78C674A92183D4813806E82023352@ytcmail.yorktel.com> Thanks, Rod. Took me a while to realize it doesn't work with Netscape. I got in with IE. I'll study it a little and see what I can do. Yu-Hsin Chen -----Original Message----- From: Rodrigo Cabral [mailto:cabral at yadata.net] Sent: Friday, April 19, 2002 9:22 AM To: Yu-Hsin Chen; mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] oraclespatial query through CGI Hey there: What you need to do is to send the query to your querymap.pl, instead of sending it to mapserver's CGI. My HTML coding is quite different from yours. Go to http://g10.cttmar.univali.br/rastro/, click in "vers?o de demonstra??o", and you'll see what I mean. Anyway, I'll try to give you some hints on how you can proceed from the code you have now. 1) You will have to change the action in your form accordingly, using javascript. If the user selects "query" for "mode", then your action is "/cgi-bin/querymap.pl"; likewise, when "mode" is "browse" action is set to "/cgi-bin/mapserver/mapserv". You may use the onclick event in both of your "mode" radio button tags. 2) You will have to change querymap.pl to work with the physical (image), not logical (map) coordinates. This means that you remove DoQuery from your HTML, and put its "idea" in perl. In your case you won't have a rectangle to query, but a point (img.x and img.y must be used for qx1 and qy1), and imgext is the variable which's holding your extent values for translating physical to logical units. nx and ny are constants based on the size in pixels of your image. I'd love to give code samples, but kinda in a hurry right now... Cheers, Rod. ----- Original Message ----- From: "Yu-Hsin Chen" To: Sent: Thursday, April 18, 2002 2:18 PM Subject: [mapserver-users] oraclespatial query through CGI I'm running the mapserver 3.5 CGI version and HTML template on a Linux system. I followed Rod's guidance of Feb 11 and put a javascript function called DoQuery in my HTML file to call a Perl program (Rod's original version calls a PHP program, I figured it should work with Perl). Now my question is how do I specify when this DoQuery function is called. I'm still getting the error message of function not implemented when I execute the new HTML. Yu-Hsin Chen GIS Capabilities

SSA IVT 289 Site Cut-Over Status


 Powered by MapServer

Refresh Map
Query Data


Zoom In
Pan
Zoom Out

Zoom Size

Legend




From pkishor at GeoAnalytics.com Fri Apr 19 15:24:30 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Fri, 19 Apr 2002 17:24:30 -0500 Subject: [mapserver-users] perl - zooming, panning, and such Message-ID: [cc-ing to the list for archival purposes] > that's pretty much what i thought the process was. what i > don't know from > here is how do i actually apply the zoom factor/pan to the old extent > and create the desired new extent. and how do i do that in > relation to > the mouse coordinates that were clicked on? I did leave out some of the details from my explanation. Here is a more detailed explanation. I am using PHP methods here, but they should be very similar to the Perl methods... compare the docs, or better yet, parse through the mapquakes.pl SDL sent you. 1. everytime you draw the map, you need to set the mapextent. 2. if you are doing this for the very first time, you would usually start with the maximum extent of your map. otherwise, you would start with the current extent of the map. The best way to determine that is to use sessions (something like Session.pm on Perl should do the trick). Else, you could set/get cookies or some http_var to the same effect. Using sessions, assuming $maxextent is a session array if(!isset($maxextent) ) { $curextent[minx] = $mapObj->extent->minx; // array to hold the curextent $curextent[miny] = $mapObj->extent->miny; $curextent[maxx] = $mapObj->extent->maxx; $curextent[maxy] = $mapObj->extent->maxy; $maxextent = $curextent; // copy curextent to maxextent // set the mapObj to the current extent $mapObj->setextent($curextent[minx], $curextent[miny], $curextent[maxx], $curextent[maxy]); } // if form variables are defined... // $maxextent is set, so this is a return view. // set the curextent using the values received from // the form variables if(isset($minx)) { $curextent[minx] = $minx; $curextent[miny] = $miny; $curextent[maxx] = $maxx; $curextent[maxy] = $maxy; } // set the mapObj to the current extent $mapObj->setextent($curextent[minx], $curextent[miny], $curextent[maxx], $curextent[maxy]); // create a rectObj with curextent $curExtObj = ms_newRectObj(); 3. now you can do whatever else you want to do to the map... zoomin, zoomout, pan, etc. for example, if you wanted to zoom in using a zoomfactor of 3 you would use the following code // create a point object at the point of click // point of click is usually returned by the browser // keep in mind, the x,y are in screen pixel coords // you have to create a point using geog coords, so // apply the requisite transformation $pointObj = getMouseClick($x, $y); // now set new extent using the zoompoint method $mapObj->zoompoint(3, $pointObj, $map_width, $map_height, $curExtObj); // now draw the map $imgObj = $mapObj->draw(); $imgUrl = $imgObj->saveWebImage(MS_PNG, 0, 0, -1); make sure when you send the above image back to the user that you send the bounding box (minx, miny, maxx, maxy) as hidden form fields so you can reuse them the next time. 3. so, let's reiterate... the first time is easy because you start with the maxextents. at that point in time, you send the current extent (which happens to be maxextents right now) to the client. you usually do that as hidden form fields. 4. now the map is sitting on the client. the user chooses to zoomin. the act of zooming in sends back to the server the point-of-click of zoomin, a (usually) preset zoomfactor, and the current extents that were in the hidden fields. 5. back at the server, you now start with these current extents and apply the zoomfactor to get the new current extents. and the process continues... this should get you going. As I said, the Perl logic will be similar (in fact, any scripting logic will be similar... the syntax is all documented). Hth. pk/ From cabral at yadata.net Fri Apr 19 16:05:57 2002 From: cabral at yadata.net (Rodrigo Cabral) Date: Fri, 19 Apr 2002 20:05:57 -0300 Subject: [mapserver-users] oraclespatial query through CGI References: <4C5998A3E78C674A92183D4813806E82023352@ytcmail.yorktel.com> Message-ID: <003801c1e7f6$c4d44020$0207a8c0@naumaki> Oops.. gave you the wrong URL. This one doesn't make queries.... Try this: http://g10.cttmar.univali.br/sipesca/mapas/dhn1501.php It also was designed for IE only. The square dots you see are stored in Oracle Spatial columns. Rod. ----- Original Message ----- From: "Yu-Hsin Chen" To: "Rodrigo Cabral" ; Sent: Friday, April 19, 2002 5:31 PM Subject: RE: [mapserver-users] oraclespatial query through CGI Thanks, Rod. Took me a while to realize it doesn't work with Netscape. I got in with IE. I'll study it a little and see what I can do. Yu-Hsin Chen -----Original Message----- From: Rodrigo Cabral [mailto:cabral at yadata.net] Sent: Friday, April 19, 2002 9:22 AM To: Yu-Hsin Chen; mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] oraclespatial query through CGI Hey there: What you need to do is to send the query to your querymap.pl, instead of sending it to mapserver's CGI. My HTML coding is quite different from yours. Go to http://g10.cttmar.univali.br/rastro/, click in "vers?o de demonstra??o", and you'll see what I mean. Anyway, I'll try to give you some hints on how you can proceed from the code you have now. 1) You will have to change the action in your form accordingly, using javascript. If the user selects "query" for "mode", then your action is "/cgi-bin/querymap.pl"; likewise, when "mode" is "browse" action is set to "/cgi-bin/mapserver/mapserv". You may use the onclick event in both of your "mode" radio button tags. 2) You will have to change querymap.pl to work with the physical (image), not logical (map) coordinates. This means that you remove DoQuery from your HTML, and put its "idea" in perl. In your case you won't have a rectangle to query, but a point (img.x and img.y must be used for qx1 and qy1), and imgext is the variable which's holding your extent values for translating physical to logical units. nx and ny are constants based on the size in pixels of your image. I'd love to give code samples, but kinda in a hurry right now... Cheers, Rod. ----- Original Message ----- From: "Yu-Hsin Chen" To: Sent: Thursday, April 18, 2002 2:18 PM Subject: [mapserver-users] oraclespatial query through CGI I'm running the mapserver 3.5 CGI version and HTML template on a Linux system. I followed Rod's guidance of Feb 11 and put a javascript function called DoQuery in my HTML file to call a Perl program (Rod's original version calls a PHP program, I figured it should work with Perl). Now my question is how do I specify when this DoQuery function is called. I'm still getting the error message of function not implemented when I execute the new HTML. Yu-Hsin Chen GIS Capabilities

SSA IVT 289 Site Cut-Over Status


 Powered by MapServer

Refresh Map
Query Data


Zoom In
Pan
Zoom Out

Zoom Size

Legend




From ychen at yorktel.com Fri Apr 19 18:15:15 2002 From: ychen at yorktel.com (Yu-Hsin Chen) Date: Fri, 19 Apr 2002 21:15:15 -0400 Subject: [mapserver-users] oraclespatial query through CGI Message-ID: <4C5998A3E78C674A92183D4813806E82035CA4@ytcmail.yorktel.com> Thanks, Rod. Yu-Hsin -----Original Message----- From: Rodrigo Cabral [mailto:cabral at yadata.net] Sent: Fri 4/19/2002 7:05 PM To: Yu-Hsin Chen; mapserver-users at lists.gis.umn.edu Cc: Subject: Re: [mapserver-users] oraclespatial query through CGI Oops.. gave you the wrong URL. This one doesn't make queries.... Try this: http://g10.cttmar.univali.br/sipesca/mapas/dhn1501.php It also was designed for IE only. The square dots you see are stored in Oracle Spatial columns. Rod. ----- Original Message ----- From: "Yu-Hsin Chen" To: "Rodrigo Cabral" ; Sent: Friday, April 19, 2002 5:31 PM Subject: RE: [mapserver-users] oraclespatial query through CGI Thanks, Rod. Took me a while to realize it doesn't work with Netscape. I got in with IE. I'll study it a little and see what I can do. Yu-Hsin Chen -----Original Message----- From: Rodrigo Cabral [mailto:cabral at yadata.net] Sent: Friday, April 19, 2002 9:22 AM To: Yu-Hsin Chen; mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] oraclespatial query through CGI Hey there: What you need to do is to send the query to your querymap.pl, instead of sending it to mapserver's CGI. My HTML coding is quite different from yours. Go to http://g10.cttmar.univali.br/rastro/, click in "vers?o de demonstra??o", and you'll see what I mean. Anyway, I'll try to give you some hints on how you can proceed from the code you have now. 1) You will have to change the action in your form accordingly, using javascript. If the user selects "query" for "mode", then your action is "/cgi-bin/querymap.pl"; likewise, when "mode" is "browse" action is set to "/cgi-bin/mapserver/mapserv". You may use the onclick event in both of your "mode" radio button tags. 2) You will have to change querymap.pl to work with the physical (image), not logical (map) coordinates. This means that you remove DoQuery from your HTML, and put its "idea" in perl. In your case you won't have a rectangle to query, but a point (img.x and img.y must be used for qx1 and qy1), and imgext is the variable which's holding your extent values for translating physical to logical units. nx and ny are constants based on the size in pixels of your image. I'd love to give code samples, but kinda in a hurry right now... Cheers, Rod. ----- Original Message ----- From: "Yu-Hsin Chen" To: Sent: Thursday, April 18, 2002 2:18 PM Subject: [mapserver-users] oraclespatial query through CGI I'm running the mapserver 3.5 CGI version and HTML template on a Linux system. I followed Rod's guidance of Feb 11 and put a javascript function called DoQuery in my HTML file to call a Perl program (Rod's original version calls a PHP program, I figured it should work with Perl). Now my question is how do I specify when this DoQuery function is called. I'm still getting the error message of function not implemented when I execute the new HTML. Yu-Hsin Chen GIS Capabilities

SSA IVT 289 Site Cut-Over Status


 Powered by MapServer

Refresh Map
Query Data


Zoom In
Pan
Zoom Out

Zoom Size

Legend




From llionte at yahoo.com Fri Apr 19 23:24:18 2002 From: llionte at yahoo.com (laurentiu lionte) Date: Fri, 19 Apr 2002 23:24:18 -0700 (PDT) Subject: [mapserver-users] using Mapscript to pan around a querymap Message-ID: <20020420062418.8702.qmail@web9903.mail.yahoo.com> I need to locate a point using itemquerymap (does anybody know another method?). Then I need to pan around this location. This is a basic functionality for any GIS-like application. According to this, I need to obtain the selected point coordinates (at least), or, for more than one selected point ,the extent or extent center of all selected features. Stephen Woodbridge says that most people do this using mapscript. OK, can anybody be more specific? I need some pieces of code, if this is possible or more substantial advices. Thanks for any help. Lawrence --------------------------------- Do You Yahoo!? Yahoo! Games - play chess, backgammon, pool and more -------------- next part -------------- An HTML attachment was scrubbed... URL: From hwehr at hs-harz.de Sat Apr 20 04:15:59 2002 From: hwehr at hs-harz.de (Harald Wehr) Date: Sat, 20 Apr 2002 13:15:59 +0200 Subject: [mapserver-users] Postgis and Mapscript Message-ID: <3CC14DEF.7020007@hs-harz.de> I got the last nightly-build working. When I try to display roads from a Postgis-Table with java-mapscript I get the following error: "prep_DB:Error executing POSTGIS DECLARE statement (0.6 failed - retried 0.5 and it failed too)" Looking in the Logfile from the PostgresqlDB following is written twice: "ERROR: BOX3D parser - number of points should be exactly 2" Using the exactly the same map-File with mapserver-cgi everything is working fine. Specified roads are drawn in the png. Can anyone give some hints why it does not work with java-mapscript? Thanks Harald From woodbri at swoodbridge.com Sat Apr 20 13:08:27 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sat, 20 Apr 2002 16:08:27 -0400 Subject: [mapserver-users] using Mapscript to pan around a querymap References: <20020420062418.8702.qmail@web9903.mail.yahoo.com> Message-ID: <3CC1CABB.B8F7E180@swoodbridge.com> Lawrence, I am not sure I understand clearly what you are trying to do. Can you give me an example of the input to "locate a point using itemquerymap". Are referring to enter and address and have the map zoom to the address point? Or something else. -Steve laurentiu lionte wrote: > > I need to locate a point using itemquerymap (does anybody know > another method?). > Then I need to pan around this location. This is a basic > functionality > for any GIS-like application. According to this, I need to obtain the > selected point coordinates > (at least), or, for more than one selected point ,the extent or > extent center of all > selected features. > Stephen Woodbridge says that most people do this using mapscript. OK, > can anybody be more > specific? I need some pieces of code, if this is possible or more > substantial advices. > > Thanks for any help. > > Lawrence > > ---------------------------------------------------------------------- > Do You Yahoo!? > Yahoo! Games - play chess, backgammon, pool and more From m.spring at gmx.de Sat Apr 20 13:33:42 2002 From: m.spring at gmx.de (Markus Spring) Date: 20 Apr 2002 22:33:42 +0200 Subject: [mapserver-users] Q: dotted line symbol Message-ID: Hi, does anybody now a symbol for a dotted line which allows scaling of its with and gap simultaneously? example: having a dot - space - dot - space .... symbol, and giving a size of 5, I would like to have 5 px sized (circular) dots and 5 px wide gaps between them. Any help will be appreciated Markus From pkishor at GeoAnalytics.com Sat Apr 20 22:31:34 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Sun, 21 Apr 2002 00:31:34 -0500 Subject: [mapserver-users] oraclespatial query through CGI In-Reply-To: <003801c1e7f6$c4d44020$0207a8c0@naumaki> Message-ID: <0B192DF4-54E9-11D6-8FE6-0003936306C2@geoanalytics.com> I am trying to build ms_3.5 with PHP 4.0.6. I have Apache 1.3.24 compiled with apxs. When I `make' it churns for a while and then issues the following error... cd mapscript/php3; make; cd ../.. cc cc -I. -I.. -O2 -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_WMS -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_JPEG -I/Users/pkishor/Projects/mapserver_3.5 -I/usr/local/include -I/Users/pkishor/Projects/php-4.0.6 -I/Users/pkishor/Projects/php-4.0.6/dl -I/Users/pkishor/Projects/php-4.0.6/main -I/Users/pkishor/Projects/php-4.0.6/Zend -I/Users/pkishor/Projects/php-4.0.6/include -I/Users/pkishor/Projects/php-4.0.6/TSRM -I/usr/local/apache/include -c -o php_mapscript_util.o php_mapscript_util.c cc: cannot specify -o with -c or -S and multiple compilations make[1]: *** [php_mapscript_util.o] Error 1 mapserv itself gets compiled and is sitting in the mapserver src directory. Here is the version info [localhost:~/Projects/mapserver_3.5] pkishor% ./mapserv -v MapServer version 3.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE It seems the error is only when building PHP/Mapscript module. Any help will be much appreciated. Tia, pk/ From pkishor at GeoAnalytics.com Sun Apr 21 00:40:30 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Sun, 21 Apr 2002 02:40:30 -0500 Subject: [mapserver-users] Cannot dynamically load php_mapscript.so In-Reply-To: <0B192DF4-54E9-11D6-8FE6-0003936306C2@geoanalytics.com> Message-ID: <0E25DA06-54FB-11D6-8FE6-0003936306C2@geoanalytics.com> Warning: Cannot dynamically load php_mapscript.so - dynamic modules are not supported I get the above error trying to load the so. My phpinfo() shows me that enable_dl is "on", yet it also says the "Dynamic Library Support is not available" What is it that I am missing? PHP 4.0.6 is compiled --with-apxs against Apache 1.3.24. Tia, pk/ From grit.schuster at uni-vechta.de Sun Apr 21 01:36:57 2002 From: grit.schuster at uni-vechta.de (grit schuster) Date: Sun, 21 Apr 2002 10:36:57 +0200 Subject: [mapserver-users] dotted line symbol for highlighting in php mapscript Message-ID: <3.0.6.32.20020421103657.00902410@pop.uni-vechta.de> Dear listers, does anybody know if it is possible to flag a polygon with a dotted line symbol, instead of highlithing it using colors? Is it possible to do this with php-mapscript? I would be very grateful for some hints :) Grit From woodbri at swoodbridge.com Sun Apr 21 05:35:18 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sun, 21 Apr 2002 08:35:18 -0400 Subject: [mapserver-users] Cannot dynamically load php_mapscript.so References: <0E25DA06-54FB-11D6-8FE6-0003936306C2@geoanalytics.com> Message-ID: <3CC2B206.FA542DDE@swoodbridge.com> Puneet Kishor wrote: > > Warning: Cannot dynamically load php_mapscript.so - dynamic modules are > not supported > > I get the above error trying to load the so. My phpinfo() shows me that > enable_dl is "on", yet it also says the "Dynamic Library Support is not > available" > > What is it that I am missing? PHP 4.0.6 is compiled --with-apxs against > Apache 1.3.24. Well this does not answer your question, but points at another problem. Your PHP is an apache DSO (because you compiled it --with-apxs) this is not PHP was a CGI which is required for PHP/Mapscript. You will get all kinds of runaway process issues, random PHP crashes and other issues if you use your system in this configuration. If you want PHP as a DSO for other applications that is fine, but you need to build a CGI version for use with Mapscript and change you php file extensions to be different and configure apache to use the CGI for PHP/mapscript file extension. There has been a lot writen about this in the archives and DM Solutions has a detailed instructions on their site. Also look at wiki which is probably the best starting point. -Steve W. From llionte at yahoo.com Sun Apr 21 07:40:23 2002 From: llionte at yahoo.com (laurentiu lionte) Date: Sun, 21 Apr 2002 07:40:23 -0700 (PDT) Subject: [mapserver-users] locate a point using Mapscript Message-ID: <20020421144023.97797.qmail@web9902.mail.yahoo.com> Yes, I want to enter an address, have the map zoom to the address point, then to pan around this location, using the same template (map). I understand that this is not possible using regular MapServer features. How can I do this using MapScript ? Lawrence. Stephen Woodbridge wrote: Lawrence, I am not sure I understand clearly what you are trying to do. Can you give me an example of the input to "locate a point using itemquerymap". Are referring to enter and address and have the map zoom to the address point? Or something else. -Steve laurentiu lionte wrote: > > I need to locate a point using itemquerymap (does anybody know > another method?). > Then I need to pan around this location. This is a basic > functionality > for any GIS-like application. According to this, I need to obtain the > selected point coordinates > (at least), or, for more than one selected point ,the extent or > extent center of all > selected features. > Stephen Woodbridge says that most people do this using mapscript. OK, > can anybody be more > specific? I need some pieces of code, if this is possible or more > substantial advices. > > Thanks for any help. > > Lawrence --------------------------------- Do You Yahoo!? Yahoo! Games - play chess, backgammon, pool and more -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Sun Apr 21 08:32:20 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sun, 21 Apr 2002 11:32:20 -0400 Subject: [mapserver-users] using Mapscript to pan around a querymap References: <20020421143828.52816.qmail@web9903.mail.yahoo.com> Message-ID: <3CC2DB84.18C8A749@swoodbridge.com> Lawrence, > Yes, I want to enter an address, have the map zoom to the address > point, then to pan around this location, using the same template (map). > I understand that this is not possible using regular MapServer > features. > How can I do this using MapScript ? This feature is not implemented in directly in Mapserver. MapScript has a queryByAttributes() function that might work, but I am not sure how it works. Can someone from DM Solutions comment on this? I wrote my own GeoCoder in C that works off the shape files but it is somewhat targeted at US Census data. You can see it at http://swoodbridge.com/cgi-bin/geo enter and address east of the Mississippi in the US. Some other people were working on an OpenSource version - you might want to check the list archives for more information. You could build something to do this with shapefiles in Perl or PHP/Mapscript because both of these can open *.dbf files where all the attributes are stored and scan the records. I hope this helps, -Steve From agnieszka_zak at interia.pl Sun Apr 21 08:35:49 2002 From: agnieszka_zak at interia.pl (=?iso-8859-2?Q?Agnieszka_=AFak?=) Date: Sun, 21 Apr 2002 17:35:49 +0200 Subject: [mapserver-users] Labels and MapInfo Message-ID: <000901c1e94a$36fdf7f0$0200a8c0@Agnieszka> Hi, I want to add labels from column in .dbf file. I am using MapServer 3.5, PHP/Script and MapInfo files (.tab, .map, .dbf, .id) with OGR. I have tried to write in .map file LABELITEM 'name_of_column' but it hasn't worked. I would be very grateful for any example. How can I add some text on map at run-time? Thanks for any help. Regards, Agnieszka ?ak ---------------------------------------------------------------------- Wiadomosci z ostatniej chwili... >>> http://link.interia.pl/f158b From steve.lime at dnr.state.mn.us Sun Apr 21 13:38:32 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Sun, 21 Apr 2002 15:38:32 -0500 Subject: [mapserver-users] Q: dotted line symbol Message-ID: There's a design flaw that doesn't allow scaling of dashed patterns (that is, it's my fault). Should be fixed in an upcoming release. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Markus Spring 04/20/02 15:37 PM >>> Hi, does anybody now a symbol for a dotted line which allows scaling of its with and gap simultaneously? example: having a dot - space - dot - space .... symbol, and giving a size of 5, I would like to have 5 px sized (circular) dots and 5 px wide gaps between them. Any help will be appreciated Markus From ychen at yorktel.com Sun Apr 21 14:53:10 2002 From: ychen at yorktel.com (Yu-Hsin Chen) Date: Sun, 21 Apr 2002 17:53:10 -0400 Subject: [mapserver-users] oraclespatial query through CGI Message-ID: <4C5998A3E78C674A92183D4813806E82035CA5@ytcmail.yorktel.com> PK: I'm using mapscript with Perl because I'm having trouble with my PHP. Given a little more time I'll try to resolve my PHP and Oracle issue (not related with Mapserver). Sorry can't be any assistance right now. Yu-Hsin Chen -----Original Message----- From: Puneet Kishor [mailto:pkishor at GeoAnalytics.com] Sent: Sun 4/21/2002 1:31 AM To: mapserver-users at lists.gis.umn.edu Cc: Subject: Re: [mapserver-users] oraclespatial query through CGI I am trying to build ms_3.5 with PHP 4.0.6. I have Apache 1.3.24 compiled with apxs. When I `make' it churns for a while and then issues the following error... cd mapscript/php3; make; cd ../.. cc cc -I. -I.. -O2 -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_WMS -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_JPEG -I/Users/pkishor/Projects/mapserver_3.5 -I/usr/local/include -I/Users/pkishor/Projects/php-4.0.6 -I/Users/pkishor/Projects/php-4.0.6/dl -I/Users/pkishor/Projects/php-4.0.6/main -I/Users/pkishor/Projects/php-4.0.6/Zend -I/Users/pkishor/Projects/php-4.0.6/include -I/Users/pkishor/Projects/php-4.0.6/TSRM -I/usr/local/apache/include -c -o php_mapscript_util.o php_mapscript_util.c cc: cannot specify -o with -c or -S and multiple compilations make[1]: *** [php_mapscript_util.o] Error 1 mapserv itself gets compiled and is sitting in the mapserver src directory. Here is the version info [localhost:~/Projects/mapserver_3.5] pkishor% ./mapserv -v MapServer version 3.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE It seems the error is only when building PHP/Mapscript module. Any help will be much appreciated. Tia, pk/ From bon at ivv-aachen.de Mon Apr 22 01:00:17 2002 From: bon at ivv-aachen.de (=?iso-8859-1?Q?Nicole_B=F6meke?=) Date: Mon, 22 Apr 2002 10:00:17 +0200 Subject: AW: [mapserver-users] Problems displaying tiffs and jpegs In-Reply-To: <3CC010DC.B615F763@swoodbridge.com> Message-ID: <000601c1e9d3$be042b00$3e01a8c0@ivvaachen.de> I did not change the top of the demo makefile, that means I used the following settings with no PROJECTION defined: NAME DEMO STATUS ON SIZE 600 600 EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897 UNITS METERS SHAPEPATH "data" IMAGECOLOR 255 255 255 WEB HEADER demo_header.html TEMPLATE demo.html FOOTER demo_footer.html MINSCALE 1000 MAXSCALE 1550000 IMAGEPATH "set in demo_init.html" IMAGEURL "set in demo_init.html" END Nicole -------------------------------------------------------------------------- Nicole B?meke IVV Aachen Germany bon at ivv-aachen.de -----Urspr?ngliche Nachricht----- Von: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]Im Auftrag von Stephen Woodbridge Gesendet: Freitag, 19. April 2002 14:43 An: bon at ivv-aachen.de Cc: mapserver-users at lists.gis.umn.edu Betreff: Re: [mapserver-users] Problems displaying tiffs and jpegs Nicole, The .wld files are in some kind of projection in METERS. What does the top of your mapfile look like? Have you specified a PROJECTION .. END? What are your EXTENTS? What are your UNITS? I think maybe these do not match your images. Which would account for your images not showing up. -Steve Nicole B?meke wrote: > > Just for testing, I now tried to display images in .jpg format instead of > .tif format. > But I got the same result - nothing shows up. I think I'm doing something > really wrong. > > I used the jpegs created through mapserver in the /temp/ directory (output > IMAGETYPE JPEG). > After converting them to greyscale images with Paint Shop Pro, I had two > jpeg images > country.jpg and lakes.jpg. In the world files for these jpegs, I used the > minx and the > maxy extend from the shapefiles. > > country.wld: > ----------------- > 0.6 > 0.0000000000 > 0.0000000000 > -0.6 > 388107.634400379 > 5310243.30613897 > > lakes.wld: > ----------------- > 0.6 > 0.0000000000 > 0.0000000000 > -0.6 > 393234.393701 > 5303964.87675 > > To display the jpegs I modified the .map file from the demo like this: > > # > # Start of layer definitions > # > > LAYER > NAME ctybdpy2 > TYPE RASTER > STATUS DEFAULT > DATA country.jpg > END > > LAYER > NAME lakespy2 > TYPE RASTER > STATUS OFF > DATA lakes.jpg > CLASS > COLOR 49 117 185 > END > END > > It would be gread, if you could help me, because by now I'm really stuck. > Thanks, Nicole. > > -------------------------------------------------------------------------- > Nicole B?meke > IVV Aachen > Germany > bon at ivv-aachen.de > > -----Original message----- > >>> Nicole B?meke 04/12/02 01:48 AM >>> > > > > 1.) I read about an example called landsat (that uses tiffs), but I > > can't find a link to it anywhere. > > Can anybody tell me where I can get it or send a zipped copy of > > it to my mail adress? > > > > 2.) Are there other examples using tiffs available? I need a tiff and > > a corresponding word file > > that is known to work with mapserver. > > > > 3.) I have the problem that my tiff does not show up. > > It is an 8 Bit uncompressed tiff with size 600 x 600. > > > > I used a world file like this: > > 0.6 > > 0.0000000000 > > 0.0000000000 > > -0.6 > > 400000.00 > > 5255555.00 > > > > To try it, I replaces the background layer of the itasca example > > by this layer definition: > > LAYER > > NAME ctybdpy2 > > TYPE RASTER > > STATUS DEFAULT > > DATA test.tif > > END > > > > Has anybody an idear what I can do? > > Thanks, Nicole. > > > > -------------------------------------------------------------------------- > -- > > Nicole B?meke > > IVV Aachen > > Germany > > bon at ivv-aachen.de From pkishor at GeoAnalytics.com Mon Apr 22 05:24:18 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Mon, 22 Apr 2002 07:24:18 -0500 Subject: [mapserver-users] cc: cannot specify -o with -c or -S and multiple compilations In-Reply-To: <0B192DF4-54E9-11D6-8FE6-0003936306C2@geoanalytics.com> Message-ID: Something weird with the listserv... I sent this message yesterday about 10 mins after my initial incorrectly titled message. This one never appeared on the list. Many other messages were very late in coming (several hours). Anyway, I am re-sending this for the archives for the solution (see below). And a big thanks to everyone who responded to me directly. ========== I sent this message earlier with the wrong subject line. This is for the archives with the correct subject. I also found the answer to this... > On Sunday, April 21, 2002, at 12:31 AM, Puneet Kishor wrote: > > I am trying to build ms_3.5 with PHP 4.0.6. When I `make' it churns for > a while and then issues the following error... > > -I/usr/local/apache/include -c -o php_mapscript_util.o > php_mapscript_util.c > cc: cannot specify -o with -c or -S and multiple compilations > make[1]: *** [php_mapscript_util.o] Error 1 seems to be a platform-specific peculiarity. I am using cc on OS X, but reported on a few other platforms as well. The very first uncommented line in the Makefile under the mapscript/php3 directory was like so... CC = cc cc -I. -I.. I deleted one of the two cc so the line became CC = cc -I. -I.. everything worked after that. hth someone. pk/ From pkishor at GeoAnalytics.com Mon Apr 22 05:48:28 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Mon, 22 Apr 2002 07:48:28 -0500 Subject: [mapserver-users] recomm. for OS X (was Re: Cannot dynamically load php_mapscript.so) In-Reply-To: <3CC2B206.FA542DDE@swoodbridge.com> Message-ID: <3E35075C-55EF-11D6-8FE6-0003936306C2@geoanalytics.com> Thanks Steve. Your answer set me on the correct path, however, I am still not close to nirvana. I looked at your notes on the wiki. While it says that PHP as a CGI is required for Mapscript, you also note that I could run with PHP as a DSO... just that I would experience random weird behaviour. I am assuming though that PHP as a CGI _is required_ for Mapscript. Anyway, I rebuilt PHP as a CGI but I still get a perplexing behaviour from Apache. It simply refuses to run the php scripts. I get the famous (8)Exec format error: exec of /Library/WebServer/Documents/phpinfo.php failed [client 192.168.123.253] Premature end of script headers: /Library/WebServer/Documents/phpinfo.php Yes, I have the requisite AddType and AddHandler statements present, and yes, my scripts are chmod-ed to be executable. Apache just doesn't seem to know where my php bin is. I even put a ScriptAlias to the php bin, and turned on Options +ExecCGI... no luck. Of course, if I put a shebang line (#!/usr/local/bin/php -q) at the top of the script it works. The "-q" is important so the script doesn't spit out the shebang line itself. I have spent two entire sleepless nights on this now (well, including all the thousand prerequisites that I had to recompile... what a house of cards). I am sure I will find an answer to this sooner or later. But at this time I can't possibly recommend PHP/Mapscript for MacOS X users. They would be much, much better off sticking with Perl/Mapscript which compiles like s*** through goose, and works splendidly with mod_perl. The problem is the OS X comes with Apache and PHP (as DSO) precompiled and installed. Since, PHP/Mapscript can only work as a CGI, one has to recompile Apache as well and then compile PHP. Recompiling Apache means that one has to recompile Perl as well (and mod_perl, if desired) in order to make everything else work smoothly. Uggghhhhhh! Still crazy after all these years, pk/ On Sunday, April 21, 2002, at 07:35 AM, Stephen Woodbridge wrote: > Puneet Kishor wrote: >> >> Warning: Cannot dynamically load php_mapscript.so - dynamic modules >> are >> not supported >> >> I get the above error trying to load the so. My phpinfo() shows me that >> enable_dl is "on", yet it also says the "Dynamic Library Support is not >> available" >> >> What is it that I am missing? PHP 4.0.6 is compiled --with-apxs against >> Apache 1.3.24. > > Well this does not answer your question, but points at another problem. > Your PHP is an apache DSO (because you compiled it --with-apxs) this is > not PHP was a CGI which is required for PHP/Mapscript. You will get all > kinds of runaway process issues, random PHP crashes and other issues if > you use your system in this configuration. > > If you want PHP as a DSO for other applications that is fine, but you > need to build a CGI version for use with Mapscript and change you php > file extensions to be different and configure apache to use the CGI for > PHP/mapscript file extension. > > There has been a lot writen about this in the archives and DM Solutions > has a detailed instructions on their site. Also look at wiki which is > probably the best starting point. > > -Steve W. From topan at 3wsi.com Mon Apr 22 06:05:26 2002 From: topan at 3wsi.com (Topan) Date: Mon, 22 Apr 2002 20:05:26 +0700 Subject: [mapserver-users] Perl MapScript syntax for MapServer version 3.4 Message-ID: <200204221305.g3MD5Ah03490@golbat.metro.net.id> where i can find documentation for perl mapscript 3.4 ? because in mapserver site (perlmapscript-reference.html) only contents perlmapscript document for 3.5 ths -- From lfilak at medinaco.org Mon Apr 22 06:19:56 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Mon, 22 Apr 2002 09:19:56 -0400 Subject: [mapserver-users] using Mapscript to pan around a querymap Message-ID: <200204221310.g3MDAqQ20712@yogi.medinaco.net> I believe Steve is correct. You will need to select the point by attribute first then read the coordinates for the point and buffer them and use that buffer as your new mapextent. From that you can create a drawQuery map that can be panned & etc. This link has example code regarding the DBFInfo Object: http://mapserver.gis.umn.edu/doc/perlmapscript-reference.html#dbfinfo This link has example code regarding reading the extents for a selected shape: http://mapserver.gis.umn.edu/doc/perlmapscript-reference.html#shapefileobj Lowell F. The following message was sent by laurentiu lionte on Fri, 19 Apr 2002 23:24:18 -0700 (PDT). > > I need to locate a point using itemquerymap (does anybody know > another method?). > Then I need to pan around this location. This is a basic functionality > for any GIS-like application. According to this, I need to obtain the selected point coordinates > (at least), or, for more than one selected point ,the extent or extent center of all > selected features. > Stephen Woodbridge says that most people do this using mapscript. OK, can anybody be more > specific? I need some pieces of code, if this is possible or more substantial advices. > > Thanks for any help. > > Lawrence > > > > --------------------------------- > Do You Yahoo!? > Yahoo! Games - play chess, backgammon, pool and more From morissette at dmsolutions.ca Mon Apr 22 06:34:47 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 22 Apr 2002 09:34:47 -0400 Subject: [mapserver-users] recomm. for OS X (was Re: Cannot dynamically load php_mapscript.so) References: <3E35075C-55EF-11D6-8FE6-0003936306C2@geoanalytics.com> Message-ID: <3CC41177.4EE41925@dmsolutions.ca> Puneet Kishor wrote: > > But at this time I can't possibly recommend PHP/Mapscript for MacOS X > users. They would be much, much better off sticking with Perl/Mapscript > which compiles like s*** through goose, and works splendidly with > mod_perl. The problem is the OS X comes with Apache and PHP (as DSO) > precompiled and installed. Since, PHP/Mapscript can only work as a CGI, > one has to recompile Apache as well and then compile PHP. Recompiling > Apache means that one has to recompile Perl as well (and mod_perl, if > desired) in order to make everything else work smoothly. Uggghhhhhh! > Note that it is not mandatory to recompile Apache in order to run PHP as a CGI even if it was compiled with the PHP DSO already... you can keep your original Apache and bypass the PHP DSO, see the section "If your server came preloaded with PHP as an Apache DSO" at the bottom of the following Wiki page: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From berend.veldkamp at aris.nl Mon Apr 22 07:14:07 2002 From: berend.veldkamp at aris.nl (Berend Veldkamp) Date: Mon, 22 Apr 2002 16:14:07 +0200 Subject: [mapserver-users] zoom in -> raster shifts Message-ID: <3CC41AAF.9AD28C67@aris.nl> Hi, When I zoom in on a tif-raster, it is shifted. Looks like the amount of shift depends on cell size of the raster. When I check the same dataset in ArcView, all looks normal. Have a look at http://www.webmap.nl/webmap/pub/berend/index.html to see what I mean. I'd like to know if this is a bug, and if so, if it's fixed in 3.5 (We're using 3.4 now). Thx, Berend -- From lfilak at medinaco.org Mon Apr 22 07:35:49 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Mon, 22 Apr 2002 10:35:49 -0400 Subject: [mapserver-users] Perl MapScript syntax for MapServer version 3.4 Message-ID: <200204221426.g3MEQiQ21679@yogi.medinaco.net> I'm not sure there ever was any. Is there a reason not to use 3.5? Lowell F. The following message was sent by Topan on Mon, 22 Apr 2002 20:05:26 +0700. > > where i can find documentation for perl mapscript 3.4 ? > because in mapserver site (perlmapscript-reference.html) only contents > perlmapscript document for 3.5 > > ths > -- From lfilak at medinaco.org Mon Apr 22 07:53:12 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Mon, 22 Apr 2002 10:53:12 -0400 Subject: AW: [mapserver-users] Problems displaying tiffs and jpegs Message-ID: <200204221444.g3MEi7Q22016@yogi.medinaco.net> This may seem to be a silly question but is country.jpg & country.wld in /data/country.jpg or in /temp/country.jpg ? Unless I'm missing something, I don't see a problem comparing the wld's & the extent. Lowell F. The following message was sent by =?iso-8859-1?Q?Nicole_B=F6meke?= on Mon, 22 Apr 2002 10:00:17 +0200. > I did not change the top of the demo makefile, > that means I used the following settings with no PROJECTION defined: > > NAME DEMO > STATUS ON > SIZE 600 600 > EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897 > UNITS METERS > SHAPEPATH "data" > IMAGECOLOR 255 255 255 > > WEB > HEADER demo_header.html > TEMPLATE demo.html > FOOTER demo_footer.html > MINSCALE 1000 > MAXSCALE 1550000 > IMAGEPATH "set in demo_init.html" > IMAGEURL "set in demo_init.html" > END > > Nicole > > -------------------------------------------------------------------------- > Nicole B?meke > IVV Aachen > Germany > bon at ivv-aachen.de > > > -----Urspr?ngliche Nachricht----- > Von: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]Im Auftrag von Stephen > Woodbridge > Gesendet: Freitag, 19. April 2002 14:43 > An: bon at ivv-aachen.de > Cc: mapserver-users at lists.gis.umn.edu > Betreff: Re: [mapserver-users] Problems displaying tiffs and jpegs > > > Nicole, > > The .wld files are in some kind of projection in METERS. What does the > top of your mapfile look like? Have you specified a PROJECTION .. END? > What are your EXTENTS? What are your UNITS? > > I think maybe these do not match your images. Which would account for > your images not showing up. > > -Steve > > Nicole B?meke wrote: > > > > Just for testing, I now tried to display images in .jpg format instead of > > .tif format. > > But I got the same result - nothing shows up. I think I'm doing something > > really wrong. > > > > I used the jpegs created through mapserver in the /temp/ directory (output > > IMAGETYPE JPEG). > > After converting them to greyscale images with Paint Shop Pro, I had two > > jpeg images > > country.jpg and lakes.jpg. In the world files for these jpegs, I used the > > minx and the > > maxy extend from the shapefiles. > > > > country.wld: > > ----------------- > > 0.6 > > 0.0000000000 > > 0.0000000000 > > -0.6 > > 388107.634400379 > > 5310243.30613897 > > > > lakes.wld: > > ----------------- > > 0.6 > > 0.0000000000 > > 0.0000000000 > > -0.6 > > 393234.393701 > > 5303964.87675 > > > > To display the jpegs I modified the .map file from the demo like this: > > > > # > > # Start of layer definitions > > # > > > > LAYER > > NAME ctybdpy2 > > TYPE RASTER > > STATUS DEFAULT > > DATA country.jpg > > END > > > > LAYER > > NAME lakespy2 > > TYPE RASTER > > STATUS OFF > > DATA lakes.jpg > > CLASS > > COLOR 49 117 185 > > END > > END > > > > It would be gread, if you could help me, because by now I'm really stuck. > > Thanks, Nicole. > > > > -------------------------------------------------------------------------- > > Nicole B?meke > > IVV Aachen > > Germany > > bon at ivv-aachen.de > > > > -----Original message----- > > >>> Nicole B?meke 04/12/02 01:48 AM >>> > > > > > > 1.) I read about an example called landsat (that uses tiffs), but I > > > can't find a link to it anywhere. > > > Can anybody tell me where I can get it or send a zipped copy of > > > it to my mail adress? > > > > > > 2.) Are there other examples using tiffs available? I need a tiff and > > > a corresponding word file > > > that is known to work with mapserver. > > > > > > 3.) I have the problem that my tiff does not show up. > > > It is an 8 Bit uncompressed tiff with size 600 x 600. > > > > > > I used a world file like this: > > > 0.6 > > > 0.0000000000 > > > 0.0000000000 > > > -0.6 > > > 400000.00 > > > 5255555.00 > > > > > > To try it, I replaces the background layer of the itasca example > > > by this layer definition: > > > LAYER > > > NAME ctybdpy2 > > > TYPE RASTER > > > STATUS DEFAULT > > > DATA test.tif > > > END > > > > > > Has anybody an idear what I can do? > > > Thanks, Nicole. > > > > > > > -------------------------------------------------------------------------- > > -- > > > Nicole B?meke > > > IVV Aachen > > > Germany > > > bon at ivv-aachen.de From morissette at dmsolutions.ca Mon Apr 22 08:23:36 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 22 Apr 2002 11:23:36 -0400 Subject: [mapserver-users] recomm. for OS X (was Re: Cannot dynamically load php_mapscript.so) References: <4F4F29BD-5603-11D6-8FE6-0003936306C2@geoanalytics.com> Message-ID: <3CC42AF8.E59D7EC3@dmsolutions.ca> Puneet Kishor wrote: > > I read the notes on the wiki. Even if I follow those instructions, don't > I have to compile PHP as a CGI as well... after all, how will I get the > php binary unless I compile it, no? And to compile PHP as a CGI, I need > the Apache src to compile it against, no? The problem is that the stock > OS X comes pre-installed with Apache 1.3.24 and PHP 4.1.2, no src tree. > So, I have to ditch all of that and restart. Which, then involves > compiling Perl and mod_perl, because they go out of sync. > You do not need access to an Apache source tree in order to compile PHP as a CGI. A CGI is by definition a standalone executable, and for this reason has no depency on any web server. Try removing the --with-apxs and/or --with-apache directives in your PHP configure options and it will then build as a CGI without any dependency on an Apache source tree (I never rebuild Apache myself). > Anyway, I did all of the above, and finally got php_mapsript.so to > compile. Now I face additional problems... I still get the message that > dynamic library is not supported. Enable_dl is on, yet I can't seem to > get dynamic libraries going. There seems to be no configuration option > in PHP to enable or disable this, except via the php.ini file, which I > have done. > This looks like another problem that we used to have with PHP3 because loading of shared libraries was not enabled by default in the PHP3 compilation process... I never ran into that problem myself with PHP4, but you may want to read the following FAQ and try to make the proposed change to the LDFLAGS in your PHP4 makefile: http://mapserver.gis.umn.edu/doc/phpmapscript-install-howto.html#d41e558 There may also be an option in the PHP4 configure to enable dl ... you should probably look for that first. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From bon at ivv-aachen.de Mon Apr 22 08:44:25 2002 From: bon at ivv-aachen.de (=?iso-8859-1?Q?Nicole_B=F6meke?=) Date: Mon, 22 Apr 2002 17:44:25 +0200 Subject: AW: [mapserver-users] Problems displaying tiffs and jpegs In-Reply-To: <200204221444.g3MEi7Q22016@yogi.medinaco.net> Message-ID: <000701c1ea14$954f6b20$3e01a8c0@ivvaachen.de> country.jpg and country.wld are in the same directory as the shapefiles /../htdocs/demo/data/country.jpg. That seems correct to me, because when I rename the .wld files so that mapserver can not find them I get an error message. The error disapears when the names of the .wld files are correct. Seems mapserver looks for them in the directory I put them. Nicole -----Urspr?ngliche Nachricht----- Von: Lowell Filak [mailto:lfilak at medinaco.org] Gesendet: Montag, 22. April 2002 16:53 An: Nicole B?meke; mapserver-users at lists.gis.umn.edu Betreff: Re: AW: [mapserver-users] Problems displaying tiffs and jpegs This may seem to be a silly question but is country.jpg & country.wld in /data/country.jpg or in /temp/country.jpg ? Unless I'm missing something, I don't see a problem comparing the wld's & the extent. Lowell F. The following message was sent by =?iso-8859-1?Q?Nicole_B=F6meke?= on Mon, 22 Apr 2002 10:00:17 +0200. > I did not change the top of the demo makefile, > that means I used the following settings with no PROJECTION defined: > > NAME DEMO > STATUS ON > SIZE 600 600 > EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897 > UNITS METERS > SHAPEPATH "data" > IMAGECOLOR 255 255 255 > > WEB > HEADER demo_header.html > TEMPLATE demo.html > FOOTER demo_footer.html > MINSCALE 1000 > MAXSCALE 1550000 > IMAGEPATH "set in demo_init.html" > IMAGEURL "set in demo_init.html" > END > > Nicole > > -------------------------------------------------------------------------- > Nicole B?meke > IVV Aachen > Germany > bon at ivv-aachen.de > > -----Urspr?ngliche Nachricht----- > Von: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]Im Auftrag von Stephen > Woodbridge > Gesendet: Freitag, 19. April 2002 14:43 > An: bon at ivv-aachen.de > Cc: mapserver-users at lists.gis.umn.edu > Betreff: Re: [mapserver-users] Problems displaying tiffs and jpegs > > Nicole, > > The .wld files are in some kind of projection in METERS. What does the > top of your mapfile look like? Have you specified a PROJECTION .. END? > What are your EXTENTS? What are your UNITS? > > I think maybe these do not match your images. Which would account for > your images not showing up. > > -Steve > > Nicole B?meke wrote: > > > > Just for testing, I now tried to display images in .jpg format instead of > > .tif format. > > But I got the same result - nothing shows up. I think I'm doing something > > really wrong. > > > > I used the jpegs created through mapserver in the /temp/ directory (output > > IMAGETYPE JPEG). > > After converting them to greyscale images with Paint Shop Pro, I had two > > jpeg images > > country.jpg and lakes.jpg. In the world files for these jpegs, I used the > > minx and the > > maxy extend from the shapefiles. > > > > country.wld: > > ----------------- > > 0.6 > > 0.0000000000 > > 0.0000000000 > > -0.6 > > 388107.634400379 > > 5310243.30613897 > > > > lakes.wld: > > ----------------- > > 0.6 > > 0.0000000000 > > 0.0000000000 > > -0.6 > > 393234.393701 > > 5303964.87675 > > > > To display the jpegs I modified the .map file from the demo like this: > > > > # > > # Start of layer definitions > > # > > > > LAYER > > NAME ctybdpy2 > > TYPE RASTER > > STATUS DEFAULT > > DATA country.jpg > > END > > > > LAYER > > NAME lakespy2 > > TYPE RASTER > > STATUS OFF > > DATA lakes.jpg > > CLASS > > COLOR 49 117 185 > > END > > END > > > > It would be gread, if you could help me, because by now I'm really stuck. > > Thanks, Nicole. > > > > -------------------------------------------------------------------------- > > Nicole B?meke > > IVV Aachen > > Germany > > bon at ivv-aachen.de > > > > -----Original message----- > > >>> Nicole B?meke 04/12/02 01:48 AM >>> > > > > > > 1.) I read about an example called landsat (that uses tiffs), but I > > > can't find a link to it anywhere. > > > Can anybody tell me where I can get it or send a zipped copy of > > > it to my mail adress? > > > > > > 2.) Are there other examples using tiffs available? I need a tiff and > > > a corresponding word file > > > that is known to work with mapserver. > > > > > > 3.) I have the problem that my tiff does not show up. > > > It is an 8 Bit uncompressed tiff with size 600 x 600. > > > > > > I used a world file like this: > > > 0.6 > > > 0.0000000000 > > > 0.0000000000 > > > -0.6 > > > 400000.00 > > > 5255555.00 > > > > > > To try it, I replaces the background layer of the itasca example > > > by this layer definition: > > > LAYER > > > NAME ctybdpy2 > > > TYPE RASTER > > > STATUS DEFAULT > > > DATA test.tif > > > END > > > > > > Has anybody an idear what I can do? > > > Thanks, Nicole. > > > > > > -------------------------------------------------------------------------- > > > Nicole B?meke > > > IVV Aachen > > > Germany > > > bon at ivv-aachen.de From pkishor at GeoAnalytics.com Mon Apr 22 08:53:53 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Mon, 22 Apr 2002 10:53:53 -0500 Subject: [mapserver-users] recomm. for OS X (was Re: Cannot dynamically load php_mapscript.so) In-Reply-To: <3CC42AF8.E59D7EC3@dmsolutions.ca> Message-ID: <2586EEC2-5609-11D6-8FE6-0003936306C2@geoanalytics.com> Daniel, Thanks for your response. I have finally discovered that dynamic loading of libraries is not supported on PHP on OS X as of yet. Thanks to Steve W for pointing the following link to me http://developer.apple.com/internet/macosx/php.html I have updated the wiki appropriately. pk/ On Monday, April 22, 2002, at 10:23 AM, Daniel Morissette wrote: > Puneet Kishor wrote: >> >> I read the notes on the wiki. Even if I follow those instructions, >> don't >> I have to compile PHP as a CGI as well... after all, how will I get the >> php binary unless I compile it, no? And to compile PHP as a CGI, I need >> the Apache src to compile it against, no? The problem is that the stock >> OS X comes pre-installed with Apache 1.3.24 and PHP 4.1.2, no src tree. >> So, I have to ditch all of that and restart. Which, then involves >> compiling Perl and mod_perl, because they go out of sync. >> > > > You do not need access to an Apache source tree in order to compile PHP > as a CGI. A CGI is by definition a standalone executable, and for this > reason has no depency on any web server. Try removing the --with-apxs > and/or --with-apache directives in your PHP configure options and it > will then build as a CGI without any dependency on an Apache source tree > (I never rebuild Apache myself). > > >> Anyway, I did all of the above, and finally got php_mapsript.so to >> compile. Now I face additional problems... I still get the message that >> dynamic library is not supported. Enable_dl is on, yet I can't seem to >> get dynamic libraries going. There seems to be no configuration option >> in PHP to enable or disable this, except via the php.ini file, which I >> have done. >> > > This looks like another problem that we used to have with PHP3 because > loading of shared libraries was not enabled by default in the PHP3 > compilation process... I never ran into that problem myself with PHP4, > but you may want to read the following FAQ and try to make the proposed > change to the LDFLAGS in your PHP4 makefile: > http://mapserver.gis.umn.edu/doc/phpmapscript-install-howto.html#d41e558 > > There may also be an option in the PHP4 configure to enable dl ... you > should probably look for that first. > > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. From pushkar at ERC.MsState.Edu Mon Apr 22 09:45:52 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Mon, 22 Apr 2002 11:45:52 -0500 (CDT) Subject: [mapserver-users] recomm. for OS X (was Re: Cannot dynamically load php_mapscript.so) In-Reply-To: <3CC42AF8.E59D7EC3@dmsolutions.ca> Message-ID: Kishor, The foll. config. should be sufficient: ./configure --prefix=/rstc/user1/erc/pushkar/php-4.0.6 --with-regex=system --enable-discard-path --enable-dbase you may need dbase to write dbf files, I think you also better use system reg. exs. as the inbuilt regexs of php have some problems. > Puneet Kishor wrote: > > > > I read the notes on the wiki. Even if I follow those instructions, don't > > I have to compile PHP as a CGI as well... after all, how will I get the > > php binary unless I compile it, no? And to compile PHP as a CGI, I need > > the Apache src to compile it against, no? The problem is that the stock > > OS X comes pre-installed with Apache 1.3.24 and PHP 4.1.2, no src tree. > > So, I have to ditch all of that and restart. Which, then involves > > compiling Perl and mod_perl, because they go out of sync. > > > > > You do not need access to an Apache source tree in order to compile PHP > as a CGI. A CGI is by definition a standalone executable, and for this > reason has no depency on any web server. Try removing the --with-apxs > and/or --with-apache directives in your PHP configure options and it > will then build as a CGI without any dependency on an Apache source tree > (I never rebuild Apache myself). > > > > Anyway, I did all of the above, and finally got php_mapsript.so to > > compile. Now I face additional problems... I still get the message that > > dynamic library is not supported. Enable_dl is on, yet I can't seem to > > get dynamic libraries going. There seems to be no configuration option > > in PHP to enable or disable this, except via the php.ini file, which I > > have done. > > > > This looks like another problem that we used to have with PHP3 because > loading of shared libraries was not enabled by default in the PHP3 > compilation process... I never ran into that problem myself with PHP4, > but you may want to read the following FAQ and try to make the proposed > change to the LDFLAGS in your PHP4 makefile: > http://mapserver.gis.umn.edu/doc/phpmapscript-install-howto.html#d41e558 > > There may also be an option in the PHP4 configure to enable dl ... you > should probably look for that first. > > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. > -Pushkar S. Pradhan From woodbri at swoodbridge.com Mon Apr 22 10:04:07 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 22 Apr 2002 13:04:07 -0400 Subject: AW: [mapserver-users] Problems displaying tiffs and jpegs References: <000701c1ea14$954f6b20$3e01a8c0@ivvaachen.de> Message-ID: <3CC44287.C83E5DBE@swoodbridge.com> Nicole, I the tiff being covered up by subsequent layers? Objects are layered from the top of the map file to the bottom, so object placed in the file first are under objects later in the file. Try a simple test. copy the mapfile and remove all the other layers except the one you are trying to include and see if it shows up. Test two. with the test mapfile, remove the EXTENTS line so mapserver is forced to comput the extents for the shape file and then see if it is visible. -Steve Nicole B?meke wrote: > > country.jpg and country.wld are in the same directory as the shapefiles > /../htdocs/demo/data/country.jpg. That seems correct to me, > because when I rename the .wld files so that mapserver can not find them > I get an error message. The error disapears when the names of the .wld files > are correct. Seems mapserver looks for them in the directory I put them. > > Nicole > > -----Urspr?ngliche Nachricht----- > Von: Lowell Filak [mailto:lfilak at medinaco.org] > Gesendet: Montag, 22. April 2002 16:53 > An: Nicole B?meke; mapserver-users at lists.gis.umn.edu > Betreff: Re: AW: [mapserver-users] Problems displaying tiffs and jpegs > > This may seem to be a silly question but is country.jpg & country.wld in > /data/country.jpg or in /temp/country.jpg ? > Unless I'm missing something, I don't see a problem comparing the wld's & > the extent. > Lowell F. > > The following message was sent by =?iso-8859-1?Q?Nicole_B=F6meke?= > on Mon, 22 Apr 2002 10:00:17 +0200. > > > I did not change the top of the demo makefile, > > that means I used the following settings with no PROJECTION defined: > > > > NAME DEMO > > STATUS ON > > SIZE 600 600 > > EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897 > > UNITS METERS > > SHAPEPATH "data" > > IMAGECOLOR 255 255 255 > > > > WEB > > HEADER demo_header.html > > TEMPLATE demo.html > > FOOTER demo_footer.html > > MINSCALE 1000 > > MAXSCALE 1550000 > > IMAGEPATH "set in demo_init.html" > > IMAGEURL "set in demo_init.html" > > END > > > > Nicole > > > > -------------------------------------------------------------------------- > > Nicole B?meke > > IVV Aachen > > Germany > > bon at ivv-aachen.de > > > > -----Urspr?ngliche Nachricht----- > > Von: owner-mapserver-users at lists.gis.umn.edu > > [mailto:owner-mapserver-users at lists.gis.umn.edu]Im Auftrag von Stephen > > Woodbridge > > Gesendet: Freitag, 19. April 2002 14:43 > > An: bon at ivv-aachen.de > > Cc: mapserver-users at lists.gis.umn.edu > > Betreff: Re: [mapserver-users] Problems displaying tiffs and jpegs > > > > Nicole, > > > > The .wld files are in some kind of projection in METERS. What does the > > top of your mapfile look like? Have you specified a PROJECTION .. END? > > What are your EXTENTS? What are your UNITS? > > > > I think maybe these do not match your images. Which would account for > > your images not showing up. > > > > -Steve > > > > Nicole B?meke wrote: > > > > > > Just for testing, I now tried to display images in .jpg format instead > of > > > .tif format. > > > But I got the same result - nothing shows up. I think I'm doing > something > > > really wrong. > > > > > > I used the jpegs created through mapserver in the /temp/ directory > (output > > > IMAGETYPE JPEG). > > > After converting them to greyscale images with Paint Shop Pro, I had two > > > jpeg images > > > country.jpg and lakes.jpg. In the world files for these jpegs, I used > the > > > minx and the > > > maxy extend from the shapefiles. > > > > > > country.wld: > > > ----------------- > > > 0.6 > > > 0.0000000000 > > > 0.0000000000 > > > -0.6 > > > 388107.634400379 > > > 5310243.30613897 > > > > > > lakes.wld: > > > ----------------- > > > 0.6 > > > 0.0000000000 > > > 0.0000000000 > > > -0.6 > > > 393234.393701 > > > 5303964.87675 > > > > > > To display the jpegs I modified the .map file from the demo like this: > > > > > > # > > > # Start of layer definitions > > > # > > > > > > LAYER > > > NAME ctybdpy2 > > > TYPE RASTER > > > STATUS DEFAULT > > > DATA country.jpg > > > END > > > > > > LAYER > > > NAME lakespy2 > > > TYPE RASTER > > > STATUS OFF > > > DATA lakes.jpg > > > CLASS > > > COLOR 49 117 185 > > > END > > > END > > > > > > It would be gread, if you could help me, because by now I'm really > stuck. > > > Thanks, Nicole. > > > > > > > -------------------------------------------------------------------------- > > > Nicole B?meke > > > IVV Aachen > > > Germany > > > bon at ivv-aachen.de > > > > > > -----Original message----- > > > >>> Nicole B?meke 04/12/02 01:48 AM >>> > > > > > > > > 1.) I read about an example called landsat (that uses tiffs), but I > > > > can't find a link to it anywhere. > > > > Can anybody tell me where I can get it or send a zipped copy of > > > > it to my mail adress? > > > > > > > > 2.) Are there other examples using tiffs available? I need a tiff and > > > > a corresponding word file > > > > that is known to work with mapserver. > > > > > > > > 3.) I have the problem that my tiff does not show up. > > > > It is an 8 Bit uncompressed tiff with size 600 x 600. > > > > > > > > I used a world file like this: > > > > 0.6 > > > > 0.0000000000 > > > > 0.0000000000 > > > > -0.6 > > > > 400000.00 > > > > 5255555.00 > > > > > > > > To try it, I replaces the background layer of the itasca example > > > > by this layer definition: > > > > LAYER > > > > NAME ctybdpy2 > > > > TYPE RASTER > > > > STATUS DEFAULT > > > > DATA test.tif > > > > END > > > > > > > > Has anybody an idear what I can do? > > > > Thanks, Nicole. > > > > > > > > > -------------------------------------------------------------------------- > > > > Nicole B?meke > > > > IVV Aachen > > > > Germany > > > > bon at ivv-aachen.de From steve.lime at dnr.state.mn.us Mon Apr 22 10:12:16 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Mon, 22 Apr 2002 12:12:16 -0500 Subject: [mapserver-users] using Mapscript to pan around a querymap Message-ID: It is possible with the main CGI mapserver assuming you can to the address lookup. That tends to be a rather sophiticated query (or series of queries) and that's why you would need MapScript. Actually you wouldn't even need MapScript. You could just use a helper program to do the address lookup and then intialize a CGI MapServer session from that output. Attribute queries that start a pan/zoom interface can be done without MapScript, you just need to have a normal pan/zoom interface as a part of your query template. You also might use saved queries to keep a particular feature hi-lighted as you pan/zoom but there are ways around that as well using a dynamic expression. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Stephen Woodbridge 04/21/02 10:32AM >>> Lawrence, > Yes, I want to enter an address, have the map zoom to the address > point, then to pan around this location, using the same template (map). > I understand that this is not possible using regular MapServer > features. > How can I do this using MapScript ? This feature is not implemented in directly in Mapserver. MapScript has a queryByAttributes() function that might work, but I am not sure how it works. Can someone from DM Solutions comment on this? I wrote my own GeoCoder in C that works off the shape files but it is somewhat targeted at US Census data. You can see it at http://swoodbridge.com/cgi-bin/geo enter and address east of the Mississippi in the US. Some other people were working on an OpenSource version - you might want to check the list archives for more information. You could build something to do this with shapefiles in Perl or PHP/Mapscript because both of these can open *.dbf files where all the attributes are stored and scan the records. I hope this helps, -Steve From pramsey at refractions.net Mon Apr 22 11:48:24 2002 From: pramsey at refractions.net (Paul Ramsey) Date: Mon, 22 Apr 2002 14:48:24 -0400 Subject: [mapserver-users] using Mapscript to pan around a querymap In-Reply-To: References: Message-ID: <20020422184826.90564102873@lion.animals> For an example of this kind of thing in action, see http://office.refractions.net/dra_roads/main.php The roads live in a PostGIS database, so we do the geocoding against the same database as we do the map rendering. On Monday 22 April 2002 01:12 pm, Steve Lime wrote: > It is possible with the main CGI mapserver assuming you can to the address > lookup. That tends to be a rather sophiticated query (or series of queries) > and that's why you would need MapScript. Actually you wouldn't even need > MapScript. You could just use a helper program to do the address lookup and > then intialize a CGI MapServer session from that output. Attribute queries > that start a pan/zoom interface can be done without MapScript, you just > need to have a normal pan/zoom interface as a part of your query template. > You also might use saved queries to keep a particular feature hi-lighted as > you pan/zoom but there are ways around that as well using a dynamic > expression. > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Stephen Woodbridge 04/21/02 10:32AM >>> > > Lawrence, > > > Yes, I want to enter an address, have the map zoom to the address > > point, then to pan around this location, using the same template (map). > > I understand that this is not possible using regular MapServer > > > features. How can I do this using MapScript ? > > This feature is not implemented in directly in Mapserver. MapScript has > a queryByAttributes() function that might work, but I am not sure how it > works. > > Can someone from DM Solutions comment on this? > > I wrote my own GeoCoder in C that works off the shape files but it is > somewhat targeted at US Census data. You can see it at > http://swoodbridge.com/cgi-bin/geo enter and address east of the > Mississippi in the US. > > Some other people were working on an OpenSource version - you might want > to check the list archives for more information. > > You could build something to do this with shapefiles in Perl or > PHP/Mapscript because both of these can open *.dbf files where all the > attributes are stored and scan the records. > > I hope this helps, > -Steve From lfilak at medinaco.org Mon Apr 22 12:11:16 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Mon, 22 Apr 2002 15:11:16 -0400 Subject: AW: [mapserver-users] Problems displaying tiffs and jpegs Message-ID: <200204221902.g3MJ2BQ25663@yogi.medinaco.net> I think there may be an error there. The mapfile you posted puts the data in /data/country.jpg whereas your data is really in /htdocs/demo/data/country.jpg or am I missing something? Lowell F. The following message was sent by =?iso-8859-1?Q?Nicole_B=F6meke?= on Mon, 22 Apr 2002 17:44:25 +0200. > country.jpg and country.wld are in the same directory as the shapefiles > /../htdocs/demo/data/country.jpg. That seems correct to me, > because when I rename the .wld files so that mapserver can not find them > I get an error message. The error disapears when the names of the .wld files > are correct. Seems mapserver looks for them in the directory I put them. > > Nicole > > -----Urspr?ngliche Nachricht----- > Von: Lowell Filak [mailto:lfilak at medinaco.org] > Gesendet: Montag, 22. April 2002 16:53 > An: Nicole B?meke; mapserver-users at lists.gis.umn.edu > Betreff: Re: AW: [mapserver-users] Problems displaying tiffs and jpegs > > This may seem to be a silly question but is country.jpg & country.wld in > /data/country.jpg or in /temp/country.jpg ? > Unless I'm missing something, I don't see a problem comparing the wld's & > the extent. > Lowell F. > > The following message was sent by =?iso-8859-1?Q?Nicole_B=F6meke?= > on Mon, 22 Apr 2002 10:00:17 +0200. > > > I did not change the top of the demo makefile, > > that means I used the following settings with no PROJECTION defined: > > > > NAME DEMO > > STATUS ON > > SIZE 600 600 > > EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897 > > UNITS METERS > > SHAPEPATH "data" > > IMAGECOLOR 255 255 255 > > > > WEB > > HEADER demo_header.html > > TEMPLATE demo.html > > FOOTER demo_footer.html > > MINSCALE 1000 > > MAXSCALE 1550000 > > IMAGEPATH "set in demo_init.html" > > IMAGEURL "set in demo_init.html" > > END > > > > Nicole > > > > -------------------------------------------------------------------------- > > Nicole B?meke > > IVV Aachen > > Germany > > bon at ivv-aachen.de > > > > -----Urspr?ngliche Nachricht----- > > Von: owner-mapserver-users at lists.gis.umn.edu > > [mailto:owner-mapserver-users at lists.gis.umn.edu]Im Auftrag von Stephen > > Woodbridge > > Gesendet: Freitag, 19. April 2002 14:43 > > An: bon at ivv-aachen.de > > Cc: mapserver-users at lists.gis.umn.edu > > Betreff: Re: [mapserver-users] Problems displaying tiffs and jpegs > > > > Nicole, > > > > The .wld files are in some kind of projection in METERS. What does the > > top of your mapfile look like? Have you specified a PROJECTION .. END? > > What are your EXTENTS? What are your UNITS? > > > > I think maybe these do not match your images. Which would account for > > your images not showing up. > > > > -Steve > > > > Nicole B?meke wrote: > > > > > > Just for testing, I now tried to display images in .jpg format instead > of > > > .tif format. > > > But I got the same result - nothing shows up. I think I'm doing > something > > > really wrong. > > > > > > I used the jpegs created through mapserver in the /temp/ directory > (output > > > IMAGETYPE JPEG). > > > After converting them to greyscale images with Paint Shop Pro, I had two > > > jpeg images > > > country.jpg and lakes.jpg. In the world files for these jpegs, I used > the > > > minx and the > > > maxy extend from the shapefiles. > > > > > > country.wld: > > > ----------------- > > > 0.6 > > > 0.0000000000 > > > 0.0000000000 > > > -0.6 > > > 388107.634400379 > > > 5310243.30613897 > > > > > > lakes.wld: > > > ----------------- > > > 0.6 > > > 0.0000000000 > > > 0.0000000000 > > > -0.6 > > > 393234.393701 > > > 5303964.87675 > > > > > > To display the jpegs I modified the .map file from the demo like this: > > > > > > # > > > # Start of layer definitions > > > # > > > > > > LAYER > > > NAME ctybdpy2 > > > TYPE RASTER > > > STATUS DEFAULT > > > DATA country.jpg > > > END > > > > > > LAYER > > > NAME lakespy2 > > > TYPE RASTER > > > STATUS OFF > > > DATA lakes.jpg > > > CLASS > > > COLOR 49 117 185 > > > END > > > END > > > > > > It would be gread, if you could help me, because by now I'm really > stuck. > > > Thanks, Nicole. > > > > > > > -------------------------------------------------------------------------- > > > Nicole B?meke > > > IVV Aachen > > > Germany > > > bon at ivv-aachen.de > > > > > > -----Original message----- > > > >>> Nicole B?meke 04/12/02 01:48 AM >>> > > > > > > > > 1.) I read about an example called landsat (that uses tiffs), but I > > > > can't find a link to it anywhere. > > > > Can anybody tell me where I can get it or send a zipped copy of > > > > it to my mail adress? > > > > > > > > 2.) Are there other examples using tiffs available? I need a tiff and > > > > a corresponding word file > > > > that is known to work with mapserver. > > > > > > > > 3.) I have the problem that my tiff does not show up. > > > > It is an 8 Bit uncompressed tiff with size 600 x 600. > > > > > > > > I used a world file like this: > > > > 0.6 > > > > 0.0000000000 > > > > 0.0000000000 > > > > -0.6 > > > > 400000.00 > > > > 5255555.00 > > > > > > > > To try it, I replaces the background layer of the itasca example > > > > by this layer definition: > > > > LAYER > > > > NAME ctybdpy2 > > > > TYPE RASTER > > > > STATUS DEFAULT > > > > DATA test.tif > > > > END > > > > > > > > Has anybody an idear what I can do? > > > > Thanks, Nicole. > > > > > > > > > -------------------------------------------------------------------------- > > > > Nicole B?meke > > > > IVV Aachen > > > > Germany > > > > bon at ivv-aachen.de From steve.lime at dnr.state.mn.us Mon Apr 22 12:11:12 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Mon, 22 Apr 2002 14:11:12 -0500 Subject: [mapserver-users] Re: MapServer Meeting Message-ID: Sure. ! recieved 25 responses everyone of them positive (but not all could attend). Not much from the international group though, which is understandable (unfourtunately). From these messages I would guess about 25-40 people would attend with some of those being students. I don't know if that's large enough a group to warrant a meeting or not. Our mailing list has around 500 members so I guess I'm a bit disappointed in the overall response. Attendance would definitely be impacted by budget woes around the country/world and cost was a major issue brought up in many of the responders. Note that $300 to $400 was a guess, but unless some form of support could be identified some cost would be incurred since the UMN has no budget to put this on. Attendance would also be impacted by other events going on in the fall. These were other events in the fall that were mentioned: - URISA 10-26 to 10-30 - ION GPS 9-24 to 9-27 - MN GIS/LIS 10-2 to 10-4 - GRASS (Italy) 9-11 to 9-13 (Wouldn't the GRASS conference be a nice one to piggyback onto.) In terms of topics, those that commented mentioned 3 primary areas of interest: - future development - current applications (what are people up to) - hands on workshops With the hands on stuff drawing the most attention. Of course that makes getting a program in place all the more difficult because much more material needs to be developed. On the bright side several folks offered to help. What next, I don't know. The UMN ultimately will have to make the decision. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Hankley, Chip" 04/22/02 01:04PM >>> Steve... What was the result of your inquiry about a MapServer meeting sometime in the fall... do you think you could give us (the list) a preliminary progress report / thought? Cheers! Chip From kames at keyspanenergy.com Mon Apr 22 12:43:14 2002 From: kames at keyspanenergy.com (Kieran J. Ames) Date: Mon, 22 Apr 2002 15:43:14 -0400 Subject: [mapserver-users] dynamic point with reference map Message-ID: <3CC467D2.CDF5DE9F@keyspanenergy.com> I'd like to inquire about this functionality on the Image being rendered... not on any reference map. I've taken a regular map file and added the same kind of arguments as follows to the URL, but cannot find any change in the map I've created. I use decimal degrees, so I chose LAT/LON values that are approximately in the center of the image. (I switched the order of LAT/LON to see if I was wrong there.) &map_webuser_feature=new&map_webuser_feature_points=-71.965000+43.254000&map_webuser_feature_text=My+House &map_webuser_feature=new&map_webuser_feature_points=43.254000+-71.965000&map_webuser_feature_text=My+House Should the above additions to the URL work? Here's the full URL, but it's behind our firewall and not accessable on the net. http://mi.keyspanenergy.com:81/mapserv/mapserv.exe?map=%2Fmaps%2Ftmp%2F1019503669885.map&imgext=-71.969000+43.250000+-71.961000+43.258000&imgbox=5+16+477+492&imgxy=5+16&mode=browse&zoom=1&map_webuser_feature=new&map_webuser_feature_points=43.254000+-71.965000&map_webuser_feature_text=My+House Thanks for any help. Kieran http://mapserver.gis.umn.edu/wilma/mapserver-users/0203/msg00182.html > > Re: [mapserver-users] dynamic point with reference map > > ------------------------------------------------------------------------ > > * To: , > * Subject: Re: [mapserver-users] dynamic point with reference map > * From: "Steve Lime" > * Date: Mon, 11 Mar 2002 17:07:21 -0600 > * Content-Disposition: inline > > ------------------------------------------------------------------------ > > You can't add points to a reference map. You can create a map that looks > like a reference map with a normal call to the mapserver (mode=map). I think > there may be some confusion as to what a reference map is or isn't. A > reference map is a component of a web app- period. > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Chuck Bokath 03/11/02 03:48PM >>> > > Hello, > > Can I use a reference map to add points on top of? > > In the cgi world, should I use mode=reference? Such a cgi request would > look > something like > http://someserver/cgi-bin/mapserv?mode=reference&map_webuser_feature=new&map > > _webuser_feature_points=-84.33333+33.333333+map_webuser_feature_text=My+Hous > e!&... > > Any help would be greatly appreciated. > > br > chuck > > ------------------------------------------------------------------------ > > * Prev by Date: RE: [mapserver-users] ?a red blinking point > * Next by Date: [mapserver-users] binary does not work with gdal?! > * Index(es): > o Chronological > o Thread From tokr at tmapy.cz Mon Apr 22 12:41:01 2002 From: tokr at tmapy.cz (Tomas Krecmer) Date: Mon, 22 Apr 2002 21:41:01 +0200 Subject: [mapserver-users] zoom in -> raster shifts References: <3CC41AAF.9AD28C67@aris.nl> Message-ID: <3CC4674D.6030404@tmapy.cz> Berend Veldkamp wrote: > Hi, > > When I zoom in on a tif-raster, it is shifted. Looks like the amount > of shift depends on cell size of the raster. When I check the same > dataset in ArcView, all looks normal. > Have a look at http://www.webmap.nl/webmap/pub/berend/index.html to > see what I mean. > I'd like to know if this is a bug, and if so, if it's fixed in 3.5 > (We're using 3.4 now). > > Thx, Berend > > -- Fixed in 3.6 development version (CVS). Tomas -- Tomas Krecmer, tokr at tmapy.cz T-Mapy spol. s r. o., Nezvalova 850, 500 03 Hradec Kralove, Czech Republic, phone: + 420 49 5513335 , fax + 420 49 5513371 From tokr at tmapy.cz Mon Apr 22 12:43:56 2002 From: tokr at tmapy.cz (=?iso-8859-1?Q?Tom=E1s_Krecmer?=) Date: Mon, 22 Apr 2002 21:43:56 +0200 Subject: [mapserver-users] zoom in -> raster shifts References: <3CC41AAF.9AD28C67@aris.nl> Message-ID: <000701c1ea36$1174b7c0$dd01a8c0@home221> Fixed in 3.6 development version (CVS). Tomas ----- Original Message ----- From: "Berend Veldkamp" To: "Mapserver" Sent: Monday, April 22, 2002 4:14 PM Subject: [mapserver-users] zoom in -> raster shifts > Hi, > > When I zoom in on a tif-raster, it is shifted. Looks like the amount > of shift depends on cell size of the raster. When I check the same > dataset in ArcView, all looks normal. > Have a look at http://www.webmap.nl/webmap/pub/berend/index.html to > see what I mean. > I'd like to know if this is a bug, and if so, if it's fixed in 3.5 > (We're using 3.4 now). > > Thx, Berend > > -- > From pagurekd at em.agr.ca Mon Apr 22 13:56:15 2002 From: pagurekd at em.agr.ca (Debbie Pagurek) Date: Mon, 22 Apr 2002 16:56:15 -0400 Subject: [mapserver-users] WMS Client difficulties Message-ID: Hi, I'm trying to set up a Mapserver .map file that will make use of the WMS client capabilities, but I'm having difficulty. I will include my mapfile. The error I am getting is located in the image area itself and it says: msProcessProjection():no system list, errno: 2 I take this to mean that it is looking for the epsg file, which, on my system, is located in the proj/nad directory where it should be and I have no problems with projections in my other work. I can also see the layer that I want to connect to if I just type the connection URL into my browser. Works fine. If anyone could shed some light on this I'd really appreciate it. Thanks, D. Pagurek Here's my map file: NAME ITISFEAT STATUS ON SIZE 600 300 UNITS DD SHAPEPATH "data" IMAGECOLOR 255 255 255 #SYMBOLSET symset.sym EXTENT -180.0 -90 180.0 90.0 PROJECTION "init=epsg:4269" END WEB IMAGEPATH "/usr/www/httpd/htdocs/mapdata/tmp/" IMAGEURL "/mapdata/tmp/" TEMPLATE "itisfeat.html" METADATA "wms_title" "WMS ITIS" "wms_onlineresource" "http://linuxgurrl.agr.ca/cgi-bin/mapitis?" "wms_srs" "EPSG:4269" "wms_abstract" "Point mapping" "wms_accesscontraints" "none" "wms_addresstype" "postal" "wms_address" "960 Carling Ave." "wms_city" "Ottawa" "wms_stateorprovince" "Ontario" "wms_postcode" "K1A 0C6" "wms_country" "Canada" "wms_contactelectronicmailaddress" "pagurekd at em.agr.ca" "wms_contactfacsimiletelephone" "613-759-1937" "wms_contactperson" "D. Pagurek" "wms_contactorganization" "Agriculture and Agri-Food Canada" "wms_contactposition" "" "wms_fees" "none" "wms_keywordlist" "ITIS" END END LAYER NAME world TYPE RASTER STATUS DEFAULT CONNECTIONTYPE WMS CONNECTION "http://tsadev.speciesanalyst.net/cgi-bin/mapserv.exe?map=cntryBound.map&VERSION=1.1.0&REQUEST=GetMap&layers=world" PROJECTION "init=epsg:4269" END METADATA "wms_title" "World" "wms_srs" "EPSG:4269" "wms_abstract" "world" "wms_extent" "-95.0025 48.9992 -94.9975 49.0008" "wms_opaque" "1" END END # LAYER END # MAPFILE From woodbri at swoodbridge.com Mon Apr 22 16:22:19 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 22 Apr 2002 19:22:19 -0400 Subject: [mapserver-users] Utilities Doc Update Needed Message-ID: <3CC49B2B.78C29787@swoodbridge.com> Mapserver Documentarians, Could I get some one to make a minor update to the Utilities doc page at http://mapserver.gis.umn.edu/utils.html For the tile4ms utility, please document: tile4ms -h usage: tile4ms [-tile-path-only] INPUT file containing list of shapefile names (complete paths 255 chars max, no extension) OUTPUT shape file of extent rectangles and names of tiles in .dbf -tile-path-only Optional flag. If specified then only the path to the shape files will be stored in the LOCATION field instead of storing the full filename. The -tile-path-only is missing and even knowing it existed I have to look at the source to find it. OK, it didn't occur to me to look at the command line help until after I looked at the source - so call me a programmer :) Anyway, it would be a big help, Thanks. Oh, I will update wiki. -Steve Woodbridge From woodbri at swoodbridge.com Mon Apr 22 17:36:52 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 22 Apr 2002 20:36:52 -0400 Subject: [mapserver-users] Ack! shptree bug???? Message-ID: <3CC4ACA3.B4187395@swoodbridge.com> Help Steve, Carl, anyone, I have run into a bizzare situation that might be a bug (probably mine), but you never know! Here is the scenario: 1) I build a tile4ms of my tiger data files. 2) I wrote a C program to read the tileindex and compress the entries so I only have one entry per directory. (I'll come back to this) 3) I create a shptree of the tileindex. This was working fine except, I had a minor bug in my utility and did not write the last directory info to the new tileindex so I had a county that never showed up on the map. So a add a few lines of code, to add the last entry before closing the files. Reprocess the tileindex and create the shptree index and NOTHING shows up on my map! Comment out the new code and repeat the process and the map works minus the missing last directory. OK, scrates head, checks the code, the process, tries again and gets the same results. I check the new tileindex using shapechk it says it fine and dandy. dbfdump and shpdump looks great. Ok, I use the new tileindex but delete the tileindex.qix file and every thing works great. The map shows up along with the previously missing county. Make a new shptree index and everything in the tileindex vanishes again! Seems like a shptree problem. mapserver 3.5 and I do get an image back with other layers that are not in this tileindex. Is this the a variation on the hanging bug that a patch was released for? I will go find patch and try that. Any other ideas. -Steve W. From woodbri at swoodbridge.com Mon Apr 22 18:08:05 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 22 Apr 2002 21:08:05 -0400 Subject: [mapserver-users] shptree followup Message-ID: <3CC4B3F5.503E684@swoodbridge.com> I did a shptreevis on the tileindex and got: shptreevis tgrindex tgrindex-new This old MSB index supports a shapefile with 524288 shapes, 150994944 depth doesn't a depth of 150994944 seem excessive!!!! And when I try to view the file in ArcExplorer I just get a line across the image. -Steve From woodbri at swoodbridge.com Mon Apr 22 18:29:11 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 22 Apr 2002 21:29:11 -0400 Subject: [mapserver-users] Ack! shptree bug???? References: <13858AA1A74F30419F319ACB66A9D1220E806E@mercator.topozone.com> Message-ID: <3CC4B8E7.25C70B34@swoodbridge.com> That is a possibility, but when I ran shptreevis on the bad index it had a depth of over 150,000,000 which is a problem. when I ran shptree tileindex 13 NM I get a good file. [woodbri at linus mdata]$ shptree tgrindex creating index of old native format [woodbri at linus mdata]$ shptreevis tgrindex tgrindex-new This old MSB index supports a shapefile with 524288 shapes, 150994944 depth [woodbri at linus mdata]$ shptree tgrindex 13 creating index of old native format [woodbri at linus mdata]$ shptreevis tgrindex tgrindex-new This old MSB index supports a shapefile with 524288 shapes, 218103808 depth [woodbri at linus mdata]$ shptree tgrindex 13 NM creating index of new MSB format [woodbri at linus mdata]$ shptreevis tgrindex tgrindex-new This old LSB index supports a shapefile with 2048 shapes, 13 depth This looks more and more like shptree bug. It is possible that I have created a bad record with my compression utility. I'll check on that, but if that is the case, it would be nice if shptree did some basic data checking. BTW, the compression utility just reads successive records and accumulates the extents until the LOCATION field changes and then writes out the record, clears the accumulators and repeats. At the end of the file it writes the data in the accumulators as the final record and that record is good data. Could it be that I have exactly 2048 records which is a power of 2? -Steve Ed McNierney wrote: > > Steve - > > That's an odd one! You didn't say much about your "compression" step - is it possible that you're creating a superficially valid but odd shapefile? Not closing that last polygon? > > - Ed > > Ed McNierney > Chief Mapmaker > TopoZone.com > > -----Original Message----- > From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] > Sent: Monday, April 22, 2002 8:37 PM > To: MapServer List > Subject: [mapserver-users] Ack! shptree bug???? > > Help Steve, Carl, anyone, > > I have run into a bizzare situation that might be a bug (probably mine), > but you never know! > > Here is the scenario: > > 1) I build a tile4ms of my tiger data files. > 2) I wrote a C program to read the tileindex and compress the entries so > I only have one entry per directory. (I'll come back to this) > 3) I create a shptree of the tileindex. > > This was working fine except, I had a minor bug in my utility and did > not write the last directory info to the new tileindex so I had a county > that never showed up on the map. So a add a few lines of code, to add > the last entry before closing the files. Reprocess the tileindex and > create the shptree index and NOTHING shows up on my map! > > Comment out the new code and repeat the process and the map works minus > the missing last directory. OK, scrates head, checks the code, the > process, tries again and gets the same results. I check the new > tileindex using shapechk it says it fine and dandy. dbfdump and shpdump > looks great. > > Ok, I use the new tileindex but delete the tileindex.qix file and every > thing works great. The map shows up along with the previously missing > county. Make a new shptree index and everything in the tileindex > vanishes again! Seems like a shptree problem. mapserver 3.5 and I do get > an image back with other layers that are not in this tileindex. > > Is this the a variation on the hanging bug that a patch was released > for? I will go find patch and try that. > > Any other ideas. > > -Steve W. From warmerdam at pobox.com Mon Apr 22 20:13:07 2002 From: warmerdam at pobox.com (Frank Warmerdam) Date: Mon, 22 Apr 2002 23:13:07 -0400 Subject: [mapserver-users] Ack! shptree bug???? References: <13858AA1A74F30419F319ACB66A9D1220E806E@mercator.topozone.com> <3CC4B8E7.25C70B34@swoodbridge.com> Message-ID: <3CC4D143.4070405@pobox.com> Stephen Woodbridge wrote: > That is a possibility, but when I ran shptreevis on the bad index it had > a depth of over 150,000,000 which is a problem. when I ran shptree > tileindex 13 NM I get a good file. > > [woodbri at linus mdata]$ shptree tgrindex > creating index of old native format > [woodbri at linus mdata]$ shptreevis tgrindex tgrindex-new > This old MSB index supports a shapefile with 524288 shapes, 150994944 > depth > > [woodbri at linus mdata]$ shptree tgrindex > 13 > creating index of old native format > [woodbri at linus mdata]$ shptreevis tgrindex tgrindex-new > This old MSB index supports a shapefile with 524288 shapes, 218103808 > depth > > [woodbri at linus mdata]$ shptree tgrindex 13 > NM > creating index of new MSB format > [woodbri at linus mdata]$ shptreevis tgrindex tgrindex-new > This old LSB index supports a shapefile with 2048 shapes, 13 depth > > This looks more and more like shptree bug. It is possible that I have > created a bad record with my compression utility. I'll check on that, > but if that is the case, it would be nice if shptree did some basic data > checking. Stephen, Are you working with a recent MapServer and tools from CVS? There was a bug related to correctly determining the byte order of "old native format" quadtrees that was fixed Jan 22 in maptree.c version 1.8. If you don't have that 1 in 256 old style quadtree indexes will be read as "corrupt" because of a mistake in guessing the byte order. The problem is not encountered in the new format indexes and is fixed in CVS. 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 Mark.Wilson at rohoel.at Mon Apr 22 23:29:04 2002 From: Mark.Wilson at rohoel.at (Mark.Wilson at rohoel.at) Date: Tue, 23 Apr 2002 08:29:04 +0200 Subject: [mapserver-users] Problem installing PHP Mapscript Message-ID: I'm having a problem installing PHP/MapScript. As I have a third party hosting my site, I have been forced to use the workaround which involves configuring a copy of the PHP source before compiling mapscript. Everything seems to go OK. I have a working mapserv executable, and I get a php_mapscript.so. However, when I place php_mapscript.so in my extensions directory and do a phpinfo() from a test page, I get the following error: Warning: Unable to load dynamic library '/usr/local/lib/php/20010901/php_mapscript.so' - /usr/local/lib/php/20010901/php_mapscript.so: Undefined symbol "PQconnectdb" in /usr/local/etc/httpd/htdocs/test.php3 on line 11 I searched the archives and found one other occurrence of this problem, but no follow up messages. Anyone have a clue as to what is wrong here? My PHP config and Mapserver config parameters are below, in case they shed any light on the situation: PHP Config: ?./configure --enable-inline-optimization --with- apxs=/usr/local/apache/1.3.22/bin/apxs --with-config-file- path=/usr/local/lib --disable-debug --enable-memory-limit --without-pear --with-regex=system --enable-mbstring --enable-mbstr-enc-trans --with-gdbm=/usr/local --enable-sockets --enable-versioning --with-ttf=/usr/local --enable-ftp --with-gd=/usr/local --enable-gd-native-ttf --with-zlib --with-zlib-dir=/usr --with- mysql=/usr/home/wwholida/usr/local/mysql --with- pgsql=/usr/home/wwholida/usr/local Mapserver Config: ./configure --prefix=/usr/home/wwholida/usr/local --with- jpeg=/usr/home/wwholida/usr/local/jpeg-6b --with- gd=/usr/home/wwholida/usr/local/gd-1.8.4 --with- png=/usr/home/wwholida/usr/local/lib --with-freetype --with-zlib --with-proj=/usr/home/wwholida/usr/local/proj-4.4.3 --with- ogr=/usr/home/wwholida/usr/local/gdal-1.1.6/ogr --without-gdal --with-postgis=/usr/home/wwholida/usr/local/bin/pg_config --without-wmsclient --enable-runpath --with- php=/usr/home/wwholida/usr/local/php-4.1.2 --with- apxs=/usr/local/apache/1.3.22/bin/apxs mapserv -v output: MapServer version 3.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=SHAPEFILE Thanks in advance for any help. I'm stumped. Mark From nicolasb at maich.gr Tue Apr 23 03:29:15 2002 From: nicolasb at maich.gr (Nicolas Boretos) Date: Tue, 23 Apr 2002 13:29:15 +0300 Subject: [mapserver-users] Postgis and mapscript Message-ID: <3CC5377B.2030209@maich.gr> Hi, Is postgis functionality available in mapscript, or in another way does postgis support get "swigified".. sincerely, nicolas boretos From rburghol at vt.edu Tue Apr 23 04:21:53 2002 From: rburghol at vt.edu (Robert Burgholzer) Date: Tue, 23 Apr 2002 07:21:53 -0400 Subject: [mapserver-users] Problem installing PHP Mapscript References: Message-ID: <3CC543D1.9F85BA5D@vt.edu> Marc, I just ran into a very similar problem myself. Except that in the folloowing: Undefined symbol "PQconnectdb" in /usr/local/etc/httpd/htdocs/test.php3 on line 11 I had: Undefined symbol "ShowError .... " in /usr/local/etc/httpd/htdocs/test.php3 on line 11 This was caused by the fact that I had to compile PHP as a CGI, but my mapscript compile was done with the following option (in addition tothe --with-php and a couple others): --with-apxs Removing "--with-apxs" cured my problem. Hope this helps, Rob -- Robert Burgholzer al?go?rithm n. A step-by-step problem-solving procedure, especially an established, recursive computational procedure for solving a problem in a finite number of steps. Invented by Al Gore. rburghol at vt.edu http://www.soulswimmer.net/ From morissette at dmsolutions.ca Tue Apr 23 05:08:33 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 23 Apr 2002 08:08:33 -0400 Subject: [mapserver-users] WMS Client difficulties References: Message-ID: <3CC54EC1.7C973F47@dmsolutions.ca> Hi Debbie, The error seems to come from the tsadev.speciesanalyst.net server that you are cascading... it probably doesn't have an "epsg" file (or it's not found by mapserv.exe). See what you get when you connect to the server directly and specify an EPSG SRS: http://tsadev.speciesanalyst.net/cgi-bin/mapserv.exe?map=cntryBound.map&VERSION=1.1.0&REQUEST=GetMap&layers=world&SRS=EPSG:4326 Daniel Debbie Pagurek wrote: > > Hi, I'm trying to set up a Mapserver .map file that will make use of the WMS client capabilities, but I'm having difficulty. > > I will include my mapfile. The error I am getting is located in the image area itself and it says: msProcessProjection():no system list, errno: 2 > > I take this to mean that it is looking for the epsg file, which, on my system, is located in the proj/nad directory where it should be and I have no problems with projections in my other work. > > I can also see the layer that I want to connect to if I just type the connection URL into my browser. Works fine. > > If anyone could shed some light on this I'd really appreciate it. > Thanks, > D. Pagurek > > Here's my map file: > NAME ITISFEAT > STATUS ON > SIZE 600 300 > UNITS DD > SHAPEPATH "data" > IMAGECOLOR 255 255 255 > #SYMBOLSET symset.sym > EXTENT -180.0 -90 180.0 90.0 > > PROJECTION > "init=epsg:4269" > END > > WEB > IMAGEPATH "/usr/www/httpd/htdocs/mapdata/tmp/" > IMAGEURL "/mapdata/tmp/" > TEMPLATE "itisfeat.html" > METADATA > "wms_title" "WMS ITIS" > "wms_onlineresource" "http://linuxgurrl.agr.ca/cgi-bin/mapitis?" > "wms_srs" "EPSG:4269" > "wms_abstract" "Point mapping" > "wms_accesscontraints" "none" > "wms_addresstype" "postal" > "wms_address" "960 Carling Ave." > "wms_city" "Ottawa" > "wms_stateorprovince" "Ontario" > "wms_postcode" "K1A 0C6" > "wms_country" "Canada" > "wms_contactelectronicmailaddress" "pagurekd at em.agr.ca" > "wms_contactfacsimiletelephone" "613-759-1937" > "wms_contactperson" "D. Pagurek" > "wms_contactorganization" "Agriculture and Agri-Food Canada" > "wms_contactposition" "" > "wms_fees" "none" > "wms_keywordlist" "ITIS" > END > END > > LAYER > NAME world > TYPE RASTER > STATUS DEFAULT > CONNECTIONTYPE WMS > CONNECTION "http://tsadev.speciesanalyst.net/cgi-bin/mapserv.exe?map=cntryBound.map&VERSION=1.1.0&REQUEST=GetMap&layers=world" > > PROJECTION > "init=epsg:4269" > END > METADATA > "wms_title" "World" > "wms_srs" "EPSG:4269" > "wms_abstract" "world" > "wms_extent" "-95.0025 48.9992 -94.9975 49.0008" > "wms_opaque" "1" > END > END # LAYER > > END # MAPFILE From mcherve at cirad.fr Tue Apr 23 07:11:11 2002 From: mcherve at cirad.fr (marie-christine herve) Date: Tue, 23 Apr 2002 16:11:11 +0200 Subject: [mapserver-users] Mapserver 3.5 QUERY Message-ID: <3CC56B7F.CFEFCAB9@cirad.fr> bonjour, Je d?bute avec MAPSERVER 3.5, j'ai besoin d'afficher des informations de la base. L'objet QUERY ne semble pas etre utilis? dans MAPSERVER 3.5 . Comment peut-on faire des requ?tes ? avec MAPSCRIPT ? Est-ce que je peux avoir un exemple ? J'utilise des donn?es de MAPINFO 6.5. Merci de votre aide ... MC From jsmedsmo at gis.umn.edu Tue Apr 23 07:40:14 2002 From: jsmedsmo at gis.umn.edu (Jamie Smedsmo) Date: Tue, 23 Apr 2002 09:40:14 -0500 Subject: [mapserver-users] Utilities Doc Update Needed References: <3CC49B2B.78C29787@swoodbridge.com> Message-ID: <3CC5724E.7040203@gis.umn.edu> It has been updated. Jamie Stephen Woodbridge wrote: >Mapserver Documentarians, > >Could I get some one to make a minor update to the Utilities doc page at >http://mapserver.gis.umn.edu/utils.html > >For the tile4ms utility, please document: > >tile4ms -h > >usage: tile4ms [-tile-path-only] > INPUT file containing list of shapefile names > (complete paths 255 chars max, no extension) > OUTPUT shape file of extent rectangles and names > of tiles in .dbf >-tile-path-only Optional flag. If specified then only the path to the > shape files will be stored in the LOCATION field > instead of storing the full filename. > > >The -tile-path-only is missing and even knowing it existed I have to >look at the source to find it. OK, it didn't occur to me to look at the >command line help until after I looked at the source - so call me a >programmer :) > >Anyway, it would be a big help, Thanks. > >Oh, I will update wiki. > >-Steve Woodbridge > > From michel at omnisystem.com.br Tue Apr 23 07:40:51 2002 From: michel at omnisystem.com.br (Michel M. dos Santos) Date: Tue, 23 Apr 2002 11:40:51 -0300 Subject: [mapserver-users] inserting features by mapscript_php Message-ID: <02042311405100.01737@cartman.omni> Hello, I have been inserting features inside layers in file .map and it working well. See: LAYER #dash CLASS NAME "dash" COLOR 0 0 255 SIZE 1 SYMBOL "dash-long" END NAME "dash" STATUS ON TYPE LINE FEATURE POINTS -49.257175 -25.476774 -49.257644 -25.479567 -49.253964 -25.479262 -49.253644 -25.477567 END END #dash When I try do it by mapscript_php , it doesn't work. See: $figura2 = ms_newShapeObj(MS_SHAPE_LINE); <--- here for($i=0;$i<$N;$i++){ $figura = ms_newShapeObj(MS_SHAPE_POINT); $ponto_obj = ms_newLineObj(); $ponto_obj->add($ponto[$i]); $figura->add($ponto_obj); $figura->set("text",$label[$i]); $layer_rota = $map->getLayerByName("rota"); $layer_rota->addFeature($figura); // adicionando tracejado $figura2->add($ponto_obj); <--- here } $layer_dash = $map->getLayerByName("dash"); <---- here $layer_dash->addFeature($figura2); <----- here The problem is the TYPE LINE, with TYPE POINT works. Thanks for any help, -- []'s Michel M. dos Santos From woodbri at swoodbridge.com Tue Apr 23 08:17:19 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 23 Apr 2002 11:17:19 -0400 Subject: [mapserver-users] Mapserver 3.5 QUERY References: <3CC56B7F.CFEFCAB9@cirad.fr> Message-ID: <3CC57AFF.F10D46A7@swoodbridge.com> Translation by google: hello, I begin with MAPSERVER 3.5, I need to post information of the base. Object QUERY does not seem to be used in MAPSERVER 3.5. How can one make requests? with MAPSCRIPT? Can I have an example? I use data of MAPINFO 6.5. marie-christine herve wrote: > > bonjour, > Je d?bute avec MAPSERVER 3.5, j'ai besoin d'afficher des informations de > la base. > L'objet QUERY ne semble pas etre utilis? dans MAPSERVER 3.5 . > Comment peut-on faire des requ?tes ? avec MAPSCRIPT ? > Est-ce que je peux avoir un exemple ? > J'utilise des donn?es de MAPINFO 6.5. > > Merci de votre aide ... > MC From Jean-Francois.Doyon at ccrs.nrcan.gc.ca Tue Apr 23 08:16:24 2002 From: Jean-Francois.Doyon at ccrs.nrcan.gc.ca (Doyon, Jean-Francois) Date: Tue, 23 Apr 2002 11:16:24 -0400 Subject: [mapserver-users] Mapserver 3.5 QUERY Message-ID: <7CDD7B94357FD5119E800002A537C46E230051@s5-ccr-r1.ccrs.nrcan.gc.ca> Marie-christine, Non l'object QUERY n'est plus utilis?. Tu doit tout simplement definir un TEMPLATE dans ton LAYER, le reste est fait dans le template en tant que tel. Exemple: LAYER NAME park_p1649 GROUP base TYPE POLYGON STATUS DEFAULT DATA park_p MINSCALE 1398433.17556762 MAXSCALE 10488257.3167571 CLASSITEM "AREA" METADATA "lay_title" "National Parks" "checkable" "0" "query_attributes" "AREA_KMSQ; NAME; YEAR_EST" "legend_order" "2" END CLASS NAME "Park Area" OUTLINECOLOR 0 153 0 SYMBOL 0 COLOR 0 153 0 END TOLERANCEUNITS pixels TOLERANCE 9 TEMPLATE /home/mapdata/aoc_v3/queries/park_p1649.html END et le fichier du template:
National Parks
AREA_KMSQ[AREA_KMSQ]
NAME[NAME]
YEAR_EST[YEAR_EST]

Le reste de l'HTML est defini dans les HEADER et FOOTER du WEB object ... A+ J.F. -----Original Message----- From: marie-christine herve [mailto:mcherve at cirad.fr] Sent: Tuesday, April 23, 2002 10:11 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Mapserver 3.5 QUERY bonjour, Je d?bute avec MAPSERVER 3.5, j'ai besoin d'afficher des informations de la base. L'objet QUERY ne semble pas etre utilis? dans MAPSERVER 3.5 . Comment peut-on faire des requ?tes ? avec MAPSCRIPT ? Est-ce que je peux avoir un exemple ? J'utilise des donn?es de MAPINFO 6.5. Merci de votre aide ... MC From cabral at yadata.net Tue Apr 23 09:25:11 2002 From: cabral at yadata.net (Rodrigo Cabral) Date: Tue, 23 Apr 2002 13:25:11 -0300 Subject: [mapserver-users] Brazilian MapServer users: Last Call Message-ID: <009101c1eae3$727aa2c0$0207a8c0@naumaki> Dear all, This email is for the Brazilian MapServer users. It's about an event that's going to be held in Brazil on WebGIS, starring MapServer - of course. Details follow in Portuguese. I apologize for the inconvenience to non-Portuguese speakers. Best regards, Rod. == Palestra sobre WebGIS e MapServer == Sauda??es, Esta ? a ?ltima circular para o evento sobre o MapServer que ocorrer? aqui no Brasil. A data do evento foi alterada para quarta-feira que vem. Segue a chamada: Aos amigos usu?rios do MapServer, venho por meio desta informar sobre o I Simp?sio Brasileiro de Engenharia Ambiental, que ocorrer? na Universidade do Vale do Itaja?, Itaja? / SC, no per?odo de 28 de Abril a 1o de Maio. Neste evento, teremos uma palestra sobre WebGIS e MapServer, ministrada por nosso ilustre colega Stephen Lime, mentor e gestor do projeto MapServer. Aqueles que quiserem conhecer de primeira m?o a hist?ria, o presente, e as perspectivas do projeto MapServer, est?o convidados a virem ao Simp?sio. No endere?o http://www.cttmar.univali.br/~sbea/ existem maiores informa??es sobre a inscri??o. A palestra ser? ministrada em Ingl?s, sem tradu??o simult?nea, no dia 1o de Maio, quarta-feira, ?s 14:45. Uma mesa redonda poder? ser providenciada dependendo do interesse e presen?a dos usu?rios MapServer. Imagino que esta ser? uma boa oportunidade para todos se conhecerem e trocar id?ias. Cordialmente, Rodrigo Becke Cabral Centro de Ci?ncias Tecnol?gicas da Terra e do Mar Universidade do Vale do Itaja? Tel: (47) 341-7960 From shostko at ureach.com Tue Apr 23 11:11:31 2002 From: shostko at ureach.com (Alexander Shostko) Date: Tue, 23 Apr 2002 14:11:31 -0400 Subject: [mapserver-users] dynamic labeling Message-ID: <200204231811.OAA20670@www21.ureach.com> Dear Mapserver Users! 1. Thanks in advance for help and suggestions. I need to dynamically turn labels on/off the map when certain events happen (attributes are changed in dbf file). I set the colors dynamically already (I introduced an extra field in dbf file and use expression statement to change the color ) Can I use the same EXPRESSION statements to turn the labels on/off based on certain dbf fields values? Do the labels scale in size when the map is scaled ? Do I need php/mapscript or I can use straight CGI module ? Any pointers to examples are appreciated. 2. Also any chance to prezoom the image when displaying it the first time (appear too small and changing the extent parameters does not do much ) Thanks again Alexander Shostko shostko at ureach.com From janderson at PacificDataServices.com Tue Apr 23 13:38:06 2002 From: janderson at PacificDataServices.com (Jessica Anderson) Date: Tue, 23 Apr 2002 13:38:06 -0700 Subject: [mapserver-users] Cold Fusion application... Message-ID: <000601c1eb06$c6ebfc50$6601a8c0@janderson> Hello Everyone, It would be very helpful if someone could email me an example of a cold fusion page using mapserver and the map file along with it. I am trying to present a map where a person could click on an individual area containing an id and pass that id to another page. Jessica Anderson From lfilak at medinaco.org Tue Apr 23 13:39:37 2002 From: lfilak at medinaco.org (Lowell.Filak) Date: Tue, 23 Apr 2002 16:39:37 -0400 (EDT) Subject: [mapserver-users] dynamic labeling In-Reply-To: <200204231811.OAA20670@www21.ureach.com> Message-ID: This link should help: http://mapserver.gis.umn.edu/wilma/mapserver-users/0101/threads.html#00085 Lowell F. On Tue, 23 Apr 2002, Alexander Shostko wrote: > Dear Mapserver Users! > > 1. Thanks in advance for help and suggestions. I need to > dynamically turn labels on/off the map when > certain events happen (attributes are changed in dbf file). > I set the colors dynamically already (I introduced an extra > field in dbf file > and use expression statement to change the color ) > > Can I use the same EXPRESSION statements to turn the labels > on/off based on certain dbf fields values? > > Do the labels scale in size when the map is scaled ? Do I need > php/mapscript or I can use straight CGI module ? > > > Any pointers to examples are appreciated. > > > 2. Also any chance to prezoom the image when displaying it the > first time (appear too small and > changing the extent parameters does not do much ) > > > Thanks again > Alexander Shostko > shostko at ureach.com > From lfilak at medinaco.org Tue Apr 23 15:06:11 2002 From: lfilak at medinaco.org (Lowell.Filak) Date: Tue, 23 Apr 2002 18:06:11 -0400 (EDT) Subject: [mapserver-users] Re: MapServer Meeting Message-ID: It's surprising the numbers aren't higher but then, is my memory slipping or do I recall another application-specific GIS conference that started out with attendees in the teens some time ago? From TMitchell at lignum.com Tue Apr 23 16:56:23 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Tue, 23 Apr 2002 16:56:23 -0700 Subject: [mapserver-users] Re: MapServer Meeting Message-ID: If I lived within 500km or so I'd be there, but man, I'm on the other side of the country :( But I echo Lowell's implied sentiments - go team go!! "Lowell.Filak" To: , Sent by: owner-mapserver-users at lists. cc: gis.umn.edu Fax to: Subject: [mapserver-users] Re: MapServer Meeting 04/23/2002 03:06 PM It's surprising the numbers aren't higher but then, is my memory slipping or do I recall another application-specific GIS conference that started out with attendees in the teens some time ago? From Stuart.Row at brs.gov.au Tue Apr 23 18:29:07 2002 From: Stuart.Row at brs.gov.au (Stuart.Row at brs.gov.au) Date: Wed, 24 Apr 2002 11:29:07 +1000 Subject: [mapserver-users] Problem with setlayersdrawingorder Message-ID: <595FE28AB1EBD111920F0060B06B3DD709A08B27@ACTMAIL2> I have the getlayersdrawingorder function working without drama, but get the following error when I use the setlayersdrawingorder function using MapServer 3.5 and PHP 4.06. Call to undefined function: setlayersdrawingorder() in /var/www/mapserv/test.php My code is as follows: $layerord = array(); $layerord = $map->getlayersdrawingorder(); $success = $map->setlayersdrawingorder($layerord); I'm not bothering with actually changing the layer order until I can get this going. Any advice or help on this issue would be appreciated. Thanks in advance, Stuart Row Bureau of Rural Sciences PO Box E11 Kingston ACT Ph: +61 2 6272 4640 Fax: +61 2 6272 4687 Email: stuart.row at brs.gov.au From shpr at libero.it Wed Apr 24 00:44:08 2002 From: shpr at libero.it (Stefano Bonnin) Date: Wed, 24 Apr 2002 09:44:08 +0200 Subject: [mapserver-users] Zoom Problem with Rosa Applet Message-ID: <001101c1eb63$d1879d60$0601a8c0@comai.loc> Hi, I have tryed the GMAP example with Rosa Applet and all works correctly. Then I have inserted my new layers in the map file and obviuosly I have changed the extend. Now, the *first time* that I try to do a ZOOM IN operation, this operation "fail". In other words the first ZOOM IN operation zooms in a wrong area (zooms near the area that I have selected but not exactly in this area). The following Zoom In operations work correctly. Can Someone help me? PS: I have only inserted my new layer and changed some parameters in the map file! Thanks, Stefano B. --- Outgoing mail is certified Virus Free. (FLASHH!) Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.350 / Virus Database: 196 - Release Date: 17/04/02 From llionte at yahoo.com Wed Apr 24 00:58:45 2002 From: llionte at yahoo.com (laurentiu lionte) Date: Wed, 24 Apr 2002 00:58:45 -0700 (PDT) Subject: [mapserver-users] using Mapscript to pan around a querymap In-Reply-To: <20020422184826.90564102873@lion.animals> Message-ID: <20020424075845.42521.qmail@web9902.mail.yahoo.com> Hello everybody! Seems something was misunderstood. I want to enter a point attribute (no geocoding), have the map zoom to the corresponding point , then to pan around this location, using the same template (map). I want to locate a feature whose attributes matches my search criteria, attributes which exists in shape database, zoom to the corresponding point, then pan arround. Querymap is a good mechanism, but I need to know somehow, the extent of querymap to transfer these coordinates to a regular map. > > I understand that this is not possible using regular MapServer > > > features. How can I do this using MapScript ? Lawrence Paul Ramsey wrote: For an example of this kind of thing in action, see http://office.refractions.net/dra_roads/main.php The roads live in a PostGIS database, so we do the geocoding against the same database as we do the map rendering. On Monday 22 April 2002 01:12 pm, Steve Lime wrote: > It is possible with the main CGI mapserver assuming you can to the address > lookup. That tends to be a rather sophiticated query (or series of queries) > and that's why you would need MapScript. Actually you wouldn't even need > MapScript. You could just use a helper program to do the address lookup and > then intialize a CGI MapServer session from that output. Attribute queries > that start a pan/zoom interface can be done without MapScript, you just > need to have a normal pan/zoom interface as a part of your query template. > You also might use saved queries to keep a particular feature hi-lighted as > you pan/zoom but there are ways around that as well using a dynamic > expression. > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Stephen Woodbridge 04/21/02 10:32AM >>> > > Lawrence, > > > Yes, I want to enter an address, have the map zoom to the address > > point, then to pan around this location, using the same template (map). > > I understand that this is not possible using regular MapServer > > > features. How can I do this using MapScript ? > > This feature is not implemented in directly in Mapserver. MapScript has > a queryByAttributes() function that might work, but I am not sure how it > works. > > Can someone from DM Solutions comment on this? > > I wrote my own GeoCoder in C that works off the shape files but it is > somewhat targeted at US Census data. You can see it at > http://swoodbridge.com/cgi-bin/geo enter and address east of the > Mississippi in the US. > > Some other people were working on an OpenSource version - you might want > to check the list archives for more information. > > You could build something to do this with shapefiles in Perl or > PHP/Mapscript because both of these can open *.dbf files where all the > attributes are stored and scan the records. > > I hope this helps, > -Steve --------------------------------- Do You Yahoo!? Yahoo! Games - play chess, backgammon, pool and more -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.morel at vanoise.com Wed Apr 24 02:56:50 2002 From: stephane.morel at vanoise.com (Stephane MOREL) Date: Wed, 24 Apr 2002 10:56:50 +0100 Subject: [mapserver-users] Mapscript and proj4 support ? Message-ID: <3CC68162.471CDFB5@vanoise.com> Hi, Mapscript is installed on my computer. ( Linux suse 7.2 Mapserver 3.5) ./mapserver -v -> Mapserver verion 3.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=GDAL INPUT=SHAPEFILE As you can see proj is installed. When I put phpinfo(); in a php page I get: MapScript Version (Nov 27, 2001) MapServer version 3.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=TTF INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE As you can see proj is not installed !!! What am I missing ? Why proj support is not include in my phpinfo() result ? Thanks stef From morissette at dmsolutions.ca Wed Apr 24 04:53:00 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 24 Apr 2002 07:53:00 -0400 Subject: [mapserver-users] Problem with setlayersdrawingorder References: <595FE28AB1EBD111920F0060B06B3DD709A08B27@ACTMAIL2> Message-ID: <3CC69C9C.435F3F9A@dmsolutions.ca> Stuart, By looking at the CVS logs, it seems that setLayersDrawingOrder() was added on 2002-01-17, which is after the 3.5 release. I can't explain why it wasn't added at the same time as getLayersDrawingOrder(), but it seems that you'll have to upgrade to the 3.6 development version if you want to use it. Daniel Stuart.Row at brs.gov.au wrote: > > I have the getlayersdrawingorder function working without drama, but get the following error when I use the setlayersdrawingorder function using MapServer 3.5 and PHP 4.06. > Call to undefined function: setlayersdrawingorder() in /var/www/mapserv/test.php > > My code is as follows: > $layerord = array(); > $layerord = $map->getlayersdrawingorder(); > $success = $map->setlayersdrawingorder($layerord); > > I'm not bothering with actually changing the layer order until I can get this going. > Any advice or help on this issue would be appreciated. > > Thanks in advance, > > Stuart Row > Bureau of Rural Sciences > PO Box E11 > Kingston ACT > Ph: +61 2 6272 4640 Fax: +61 2 6272 4687 > Email: stuart.row at brs.gov.au From morissette at dmsolutions.ca Wed Apr 24 05:27:47 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 24 Apr 2002 08:27:47 -0400 Subject: [mapserver-users] Mapscript and proj4 support ? References: <3CC68162.471CDFB5@vanoise.com> Message-ID: <3CC6A4C3.7D74C31B@dmsolutions.ca> Stephane, You seem to be missing OGR support as well (in addition to PROJ) in your PHP Mapscript... I suspect that you are either pointing to the wrong copy of php_mapscript.so, of your build environment got screwed up somehow. I suggest that you first delete php_mapscript.so from your extension_dir, and try running your test script again to verify that PHP will complain about php_mapscript.so not being found... if you don't get an error then the problem is likely that you have two copies of php_mapscript.so around... you should fix that problem first. Then reconfigure mapserver, and 'make clean ; make' ... and then reinstall php_mapscript.so Daniel Stephane MOREL wrote: > > Hi, > > Mapscript is installed on my computer. ( Linux suse 7.2 Mapserver 3.5) > ./mapserver -v -> Mapserver verion 3.5 OUTPUT=PNG OUTPUT=JPEG > OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF INPUT=TIFF INPUT=EPPL7 INPUT=JPEG > INPUT=GDAL INPUT=SHAPEFILE > As you can see proj is installed. > > When I put phpinfo(); in a php page I get: > MapScript Version (Nov 27, 2001) > MapServer version 3.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=TTF > INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > As you can see proj is not installed !!! > > What am I missing ? > Why proj support is not include in my phpinfo() result ? > > Thanks > stef From woodbri at swoodbridge.com Wed Apr 24 05:59:35 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 24 Apr 2002 08:59:35 -0400 Subject: [mapserver-users] Mapscript and proj4 support ? References: <3CC68162.471CDFB5@vanoise.com> Message-ID: <3CC6AC37.FC7C31C0@swoodbridge.com> Stef, Did you do a make install from the mapserver build environment? Check and see if you have a /usr/local/lib/libmap.a and delete it if you do. Do NOT do a make install! If it was there, do a make clean; make and try again. Also check that all of your libraries are accessable at runtime with /sbin/ldconfig -pX and make sure the proj and GDAL libraries if listed in the ldd command also so up on this list. If they don't then you need to make sure the /usr/local/lib is included in /etc/ld.so.conf and run /sbin/ldconfig as root. -Steve W. Stephane MOREL wrote: > > Hi, > > Mapscript is installed on my computer. ( Linux suse 7.2 Mapserver 3.5) > ./mapserver -v -> Mapserver verion 3.5 OUTPUT=PNG OUTPUT=JPEG > OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF INPUT=TIFF INPUT=EPPL7 INPUT=JPEG > INPUT=GDAL INPUT=SHAPEFILE > As you can see proj is installed. > > When I put phpinfo(); in a php page I get: > MapScript Version (Nov 27, 2001) > MapServer version 3.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=TTF > INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > As you can see proj is not installed !!! > > What am I missing ? > Why proj support is not include in my phpinfo() result ? > > Thanks > stef From teb at mallit.fr.umn.edu Wed Apr 24 06:13:34 2002 From: teb at mallit.fr.umn.edu (Thomas E. Burk) Date: Wed, 24 Apr 2002 08:13:34 -0500 (CDT) Subject: [mapserver-users] serializing mapobject with php (FWD) Message-ID: <200204241313.g3ODDYR17210@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "Vincent Jansen" To: Subject: serializing mapobject with php Date: Wed, 24 Apr 2002 10:53:53 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Hi, I've been trying to store a complete mapObject in the session vars in php. Every time I try to perform a task on the unserialized object I get Fatal error: Object has an invalid _handle_ property in .... Also a complete serialized mapObject of 40 layers looks something like the stuff you see below, while one serialized layerObject allready looks like O:5:"layer":33:{s:8:"_handle_";i:0;s:12:"_map_handle_";i:0;s:10:"numclasses" ;i:1;s:5:"index";i:39;s:6:"status";i:2;s:9:"classitem";s:0:"";s:4:"name";s:1 2:"wegen_totaal";s:5:"group";s:0:"";s:4:"data";s:12:"wegen_totaal";s:4:"type ";i:1;s:9:"tolerance";d:3;s:14:"toleranceunits";i:6;s:11:"symbolscale";d:-1; s:8:"minscale";d:-1;s:8:"maxscale";d:1000;s:13:"labelminscale";d:-1;s:13:"la belmaxscale";d:-1;s:11:"maxfeatures";i:-1;s:7:"offsite";i:-1;s:9:"transform" ;i:1;s:10:"labelcache";i:1;s:14:"postlabelcache";i:0;s:9:"labelitem";s:0:""; s:13:"labelsizeitem";s:0:"";s:14:"labelangleitem";s:0:"";s:8:"tileitem";s:8: "location";s:9:"tileindex";s:0:"";s:6:"header";s:0:"";s:6:"footer";s:0:"";s: 10:"connection";s:0:"";s:14:"connectiontype";i:1;s:10:"filteritem";s:0:"";s: 8:"template";s:0:"";} Seems like something's going wrong. I use mapserver 3.5 an PHP 4.0.6 and hope someone can help me. Thanks Vincent Jansen Javel BV Westvest 47-53 2611 AZ Delft The Netherlands Phone: +31 (0)15 2128234 vincent.jansen at javel.nl http://www.javel.nl ****************************** * Begin serialized mapObject * ****************************** O:3:"map":22:{s:8:"_handle_";i:0;s:9:"numlayers";i:40;s:4:"name";s:5:"zwaan" ;s:6:"status";i:1;s:5:"width";i:612;s:6:"height";i:512;s:11:"transparent";i: 0;s:9:"interlace";i:1;s:6:"extent";O:4:"rect":5:{s:8:"_handle_";i:0;s:4:"min x";d:81331.2785;s:4:"miny";d:440492.5836;s:4:"maxx";d:88460.0667;s:4:"maxy"; d:450525.049;}s:8:"cellsize";d:0;s:5:"units";i:3;s:5:"scale";d:-1;s:9:"shape path";s:25:"/gisdata/shapes/delft";s:8:"keysizex";i:20;s:8:"keysizey";i:10;s :11:"keyspacingx";i:5;s:11:"keyspacingy";i:5;s:10:"imagecolor";O:5:"color":4 :{s:8:"_handle_";i:0;s:3:"red";i:255;s:5:"green";i:255;s:4:"blue";i:255;}s:3 :"web";O:3:"web":14:{s:8:"_handle_";i:0;s:3:"log";s:0:"";s:9:"imagepath";s:7 5:"/local/slash/apache/vhosts/zwaan.demo.javel.nl/httpdocs/include/images/"; s:8:"template";s:0:"";s:8:"imageurl";s:16:"/include/images/";s:6:"header";s: 0:"";s:6:"footer";s:0:"";s:5:"empty";s:0:"";s:5:"error";s:0:"";s:11:"mintemp late";s:0:"";s:11:"maxtemplate";s:0:"";s:8:"minscale";d:200;s:8:"maxscale";d :50000;s:6:"extent";O:4:"rect":5:{s:8:"_handle_";i:0;s:4:"minx";d:-1;s:4:"mi ny";d:-1;s:4:"maxx";d:-1;s:4:"maxy";d:-1;}}s:9:"reference";O:9:"reference":8 :{s:8:"_handle_";i:0;s:5:"image";s:78:"/local/slash/apache/vhosts/zwaan.demo .javel.nl/httpdocs/images/minimap.gif";s:5:"width";i:140;s:6:"height";i:190; s:6:"status";i:1;s:6:"extent";O:4:"rect":5:{s:8:"_handle_";i:0;s:4:"minx";d: 82085;s:4:"miny";d:441889;s:4:"maxx";d:88012;s:4:"maxy";d:449852;}s:5:"color ";O:5:"color":4:{s:8:"_handle_";i:0;s:3:"red";i:-1;s:5:"green";i:-1;s:4:"blu e";i:-1;}s:12:"outlinecolor";O:5:"color":4:{s:8:"_handle_";i:0;s:3:"red";i:0 ;s:5:"green";i:0;s:4:"blue";i:0;}}s:8:"scalebar";O:8:"scalebar":16:{s:8:"_ha ndle_";i:0;s:6:"height";i:3;s:5:"width";i:200;s:5:"style";i:0;s:9:"intervals ";i:4;s:5:"color";i:2;s:15:"backgroundcolor";i:1;s:12:"outlinecolor";i:-1;s: 5:"units";i:2;s:6:"status";i:0;s:8:"position";i:3;s:11:"transparent";i:0;s:9 :"interlace";i:1;s:14:"postlabelcache";i:0;s:5:"label";O:5:"label":28:{s:8:" _handle_";i:0;s:4:"font";s:0:"";s:4:"type";i:1;s:5:"color";i:2;s:12:"outline color";i:-1;s:11:"shadowcolor";i:-1;s:11:"shadowsizex";i:1;s:11:"shadowsizey ";i:1;s:15:"backgroundcolor";i:-1;s:21:"backgroundshadowcolor";i:-1;s:21:"ba ckgroundshadowsizex";i:1;s:21:"backgroundshadowsizey";i:1;s:4:"size";i:2;s:7 :"minsize";i:4;s:7:"maxsize";i:256;s:8:"position";i:0;s:7:"offsetx";i:0;s:7: "offsety";i:0;s:5:"angle";d:0;s:9:"autoangle";i:0;s:6:"buffer";i:0;s:9:"anti alias";i:-1;s:4:"wrap";i:0;s:14:"minfeaturesize";i:-1;s:18:"autominfeaturesi ze";i:0;s:11:"mindistance";i:-1;s:8:"partials";i:1;s:5:"force";i:0;}s:10:"im agecolor";O:5:"color":4:{s:8:"_handle_";i:0;s:3:"red";i:255;s:5:"green";i:25 5;s:4:"blue";i:255;}}s:6:"legend";O:6:"legend":15:{s:8:"_handle_";i:0;s:6:"h eight";i:0;s:5:"width";i:0;s:8:"keysizex";i:20;s:8:"keysizey";i:10;s:11:"key spacingx";i:5;s:11:"keyspacingy";i:5;s:12:"outlinecolor";i:-1;s:6:"status";i :0;s:8:"position";i:3;s:11:"transparent";i:0;s:9:"interlace";i:1;s:14:"postl abelcache";i:0;s:5:"label";O:5:"label":28:{s:8:"_handle_";i:0;s:4:"font";s:0 :"";s:4:"type";i:1;s:5:"color";i:1;s:12:"outlinecolor";i:-1;s:11:"shadowcolo r";i:-1;s:11:"shadowsizex";i:1;s:11:"shadowsizey";i:1;s:15:"backgroundcolor" ;i:-1;s:21:"backgroundshadowcolor";i:-1;s:21:"backgroundshadowsizex";i:1;s:2 1:"backgroundshadowsizey";i:1;s:4:"size";i:2;s:7:"minsize";i:4;s:7:"maxsize" ;i:256;s:8:"position";i:8;s:7:"offsetx";i:0;s:7:"offsety";i:0;s:5:"angle";d: 0;s:9:"autoangle";i:0;s:6:"buffer";i:0;s:9:"antialias";i:-1;s:4:"wrap";i:0;s :14:"minfeaturesize";i:-1;s:18:"autominfeaturesize";i:0;s:11:"mindistance";i :-1;s:8:"partials";i:1;s:5:"force";i:0;}s:10:"imagecolor";O:5:"color":4:{s:8 :"_handle_";i:0;s:3:"red";i:255;s:5:"green";i:255;s:4:"blue";i:255;}}} ------------- End Forwarded Message ------------- From pkishor at GeoAnalytics.com Wed Apr 24 06:32:39 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 24 Apr 2002 08:32:39 -0500 Subject: [mapserver-users] Problem with setlayersdrawingorder In-Reply-To: <3CC69C9C.435F3F9A@dmsolutions.ca> Message-ID: a question... On Wednesday, April 24, 2002, at 06:53 AM, Daniel Morissette wrote: > By looking at the CVS logs, it seems that setLayersDrawingOrder() was > [..] > why it wasn't added at the same time as getLayersDrawingOrder(), but it > [..] > > > Stuart.Row at brs.gov.au wrote: >> >> I have the getlayersdrawingorder function working without drama, but >> get the following error when I use the setlayersdrawingorder function >> using MapServer 3.5 and PHP 4.06. >> [..] does case matter? is setLayersDrawingOrder different from setlayersdrawingorder? I have been noticing several such variations in the docs, and am not sure if they are intentional or a mistake. I have flagged the ones I have come across, and will send them to Jamie (or whoever is in charge of the docs). There are also a few (very few) spelling errors in the docs. If the case does matter, would it be possible to bring all the methods to conform to one convention? perhaps 'all lower case' is better than 'mixed case' because then we don't have to guess which it is? Many thanks, pk/ From morissette at dmsolutions.ca Wed Apr 24 06:42:05 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 24 Apr 2002 09:42:05 -0400 Subject: [mapserver-users] serializing mapobject with php (FWD) References: <200204241313.g3ODDYR17210@mallit.fr.umn.edu> Message-ID: <3CC6B62D.14D1E832@dmsolutions.ca> > From: "Vincent Jansen" > > Hi, > > I've been trying to store a complete mapObject in the session vars in php. > Every time I try to perform a task on the unserialized object I get > > Fatal error: Object has an invalid _handle_ property in .... > Vincent, You cannot serialize a mapObj or any PHP MapScript object... this is because those objects are not pure PHP objects, they are really just wrappers on top of the MapServer C data structures, and PHP serializes only the PHP wrapper but not the underlying C objects... that's why you get this error. So you'll have to either reload the original map using ms_newMapObj() in every request and reapply your changes to the mapObj in every request, or if the number of changes is very large and this is not an option, then you can save the mapObj to a temporary file using $map->save("/tmp/tmp123.map"), and store the temp filename in your session variables and reload the temp mapfile at the beginning of the next request. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.ca Wed Apr 24 06:49:12 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 24 Apr 2002 09:49:12 -0400 Subject: [mapserver-users] Problem with setlayersdrawingorder References: Message-ID: <3CC6B7D8.1D2FB681@dmsolutions.ca> Puneet Kishor wrote: > > does case matter? is setLayersDrawingOrder different from > setlayersdrawingorder? > > I have been noticing several such variations in the docs, and am not > sure if they are intentional or a mistake. I have flagged the ones I > have come across, and will send them to Jamie (or whoever is in charge > of the docs). There are also a few (very few) spelling errors in the > docs. > > If the case does matter, would it be possible to bring all the methods > to conform to one convention? perhaps 'all lower case' is better than > 'mixed case' because then we don't have to guess which it is? > In PHP, function names are case-insensitive, but variable names are case-sensitive. That's why in the docs you'll notice that we use mixed cases for method names, but someone could really use all uppercase or all lowercase and the function calls would still work. OTOH, for class member variables we always use all-lowercase since they are case-sensitive. Now, it is quite possible that the PHP MapScript docs could contain some errors or typos, so if you noticed errors in the PHP MapScript docs then please file them in bugzilla, under the PHP MapScript component and we'll fix them. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From berend.veldkamp at aris.nl Wed Apr 24 07:44:54 2002 From: berend.veldkamp at aris.nl (Berend Veldkamp) Date: Wed, 24 Apr 2002 16:44:54 +0200 Subject: [mapserver-users] configure with gdal Message-ID: <3CC6C4E6.6690308C@aris.nl> Has anyone seen this error before when compiling ms with gdal ./libmap.a(mapraster.o): In function `drawGDAL': mapraster.o(.text+0x504): undefined reference to `GDALReadWorldFile' Here's how I configured: ./configure --with-ogr=../gdal-1.1.7/ogr --with-gdal=../gdal-1.1.7/apps/gdal-config --with-php=../php-4.1.2 --without-tiff (also tried as seen in another posting: ./configure --with-ogr=../gdal-1.1.7/apps/gdal-config --with-gdal= --with-php=../php-4.1.2 --without-tiff ) Berend -- From jeffb at erlandsen.com Wed Apr 24 08:52:29 2002 From: jeffb at erlandsen.com (Jeff Berry) Date: Wed, 24 Apr 2002 10:52:29 -0500 (CDT) Subject: [mapserver-users] Date: Wed, 24 Apr 2002 08:46:43 -0700 Message-ID: Newb question - I want to display polygons with no fill symbol, just the outlines and am having trouble with it. How do I set up the layer in the map file to do this? Jeff Berry Erlandsen & Associates P.O. Box 2029 Chelan, WA 98816 (509) 682-4189 jeffb at erlandsen.com From woodbri at swoodbridge.com Wed Apr 24 09:21:04 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 24 Apr 2002 12:21:04 -0400 Subject: [mapserver-users] Date: Wed, 24 Apr 2002 08:46:43 -0700 References: Message-ID: <3CC6DB70.6831B3B0@swoodbridge.com> Try: COLOR -1 -1 -1 OUTLINECOLOR 0 0 0 -1 -1 -1 for transparent 0 0 0 for black -Steve Jeff Berry wrote: > > Newb question - I want to display polygons with no fill symbol, just the > outlines and am having trouble with it. How do I set up the layer in the > map file to do this? > > Jeff Berry > Erlandsen & Associates > P.O. Box 2029 > Chelan, WA 98816 > (509) 682-4189 > jeffb at erlandsen.com From matthew.g.krusemark at co.multnomah.or.us Wed Apr 24 10:04:59 2002 From: matthew.g.krusemark at co.multnomah.or.us (KRUSEMARK Matthew G) Date: Wed, 24 Apr 2002 10:04:59 -0700 Subject: [mapserver-users] Date: Wed, 24 Apr 2002 08:46:43 -0700 Message-ID: <9D07D10FA5CAD21192620008C7B14D29030757FF@isdexch-1.co.multnomah.or.us> Hi Jeff, Under your Layer definition in the Map file try the following: LAYER NAME quads DATA "D:\gisdata\quads" STATUS DEFAULT TYPE POLYGON CLASS NAME "100K Quads" OUTLINECOLOR 0 0 0 # black outline # COLOR 225 225 185 (here the fill color is commented out) END END END ... Instead of using a fill color and outline color like the following: CLASS NAME "100K Quads" OUTLINECOLOR 0 0 0 COLOR 225 225 185 END -----Original Message----- From: Jeff Berry [mailto:jeffb at erlandsen.com] Sent: Wednesday, April 24, 2002 8:52 AM To: MapServer Subject: [mapserver-users] Date: Wed, 24 Apr 2002 08:46:43 -0700 Newb question - I want to display polygons with no fill symbol, just the outlines and am having trouble with it. How do I set up the layer in the map file to do this? Jeff Berry Erlandsen & Associates P.O. Box 2029 Chelan, WA 98816 (509) 682-4189 jeffb at erlandsen.com From michel at omnisystem.com.br Wed Apr 24 12:08:17 2002 From: michel at omnisystem.com.br (Michel M. dos Santos) Date: Wed, 24 Apr 2002 16:08:17 -0300 Subject: [mapserver-users] problem with mapscript/php Message-ID: <02042416081700.03900@cartman.omni> Hi, I'm with a problem with mapscript php. I try putting a shape line, but it doesn't draw. If I change the type to POINT, the points are draw, when I put the type to LINE , the line aren't draw. Can anyone help me. Map file: ##################################### OK dash LAYER #dash CLASS NAME "dash" COLOR 0 0 255 SIZE 5 SYMBOL "dash-long" END NAME "dash" STATUS ON TYPE LINE <--- if I change to POINT , the points are draw. END #dash #################################### OK dash code php: -----------8<-------------------------------------- $figura = ms_newShapeObj(MS_SHAPE_LINE); <-- shape type LINE for($i=0;$i<$N;$i++){ $ponto_obj = ms_newLineObj(); <- object point $ponto_obj->add($ponto[$i]); <- get the point $figura->add($ponto_obj); <- put in the shape } $layer = $map->getLayerByName("dash"); <- get the layer to put shape $layer->addFeature($figura); <- put shape in layer ----------8<-------------------------------------- -- []'s Michel M. dos Santos From alfred.kleva at siol.net Wed Apr 24 12:42:48 2002 From: alfred.kleva at siol.net (Alfred Kleva) Date: Wed, 24 Apr 2002 21:42:48 +0200 Subject: [mapserver-users] NQUERYMAP Message-ID: <004f01c1ebc8$37d9c610$1a00000a@3port.si> Hi ! I try to execute : http://localhost/cgi-bin/mapserv3.6?map=/data/www/gis_ms/demo5_krem_test/parcele.map&imgsize=489+367&mapsize=489+367&imgext=399306+43548+400256+44259&layers=parcele&mode=nquerymap&qlayer=parcele&saveQuery=true&imgshape=100+100+200+200+100+200 MS returns : ##################################################################################### 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 gissrv.gis 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. ###################################################################################### Here is my map file : ##################################### NAME MITJA STATUS ON SIZE 600 480 SYMBOLSET ../symbols/symbols35.sym FONTSET /data/www/fonts/font.list EXTENT 387000 29000 420000 55400 UNITS METERS SHAPEPATH "/data/www/gis_ms/data" # # Start of web interface definition # WEB TEMPLATE "loadXML.html" MINSCALE 200 MAXSCALE 2500000 IMAGEPATH "/tmp/" IMAGEURL "/upload/" LOG "demo.log" END QUERYMAP SIZE 600 480 STATUS ON STYLE HILITE COLOR 200 200 0 END # # Start of reference map # REFERENCE STATUS ON IMAGE ../images/init_ref_mok.png EXTENT 387000 29000 419500 54500 SIZE 140 112 COLOR -1 -1 -1 OUTLINECOLOR 0 255 255 END # # Start of legend # LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 OUTLINECOLOR 0 0 0 POSITION ul LABEL COLOR 0 0 0 SIZE tiny END SIZE 200 3 COLOR 0 0 0 UNITS METERS INTERVALS 4 STATUS ON END # # Start of layer definitions # LAYER CONNECTIONTYPE postgis NAME "parcele" GROUP "parcele" CONNECTION "user=username password=pwd dbname=kata host=localhost" DATA "the_geom from katp" STATUS ON TYPE POLYGON MAXSCALE 15000 LABELITEM "parcela" LABELMAXSCALE 5000 CLASS #COLOR 255 255 255 NAME Parcele SYMBOL "PIKE" OUTLINECOLOR 0 255 0 LABEL MINFEATURESIZE 10 MINDISTANCE 2 POSITION CC SIZE SMALL COLOR 255 255 255 END END HEADER "loadXML.html" TEMPLATE "parcela_queryXML.html" TOLERANCE 0 END END # Map File ##################################### Thanks Lp Alfred Kleva >From Slovenia -------------- next part -------------- An HTML attachment was scrubbed... URL: From keon at nacse.org Wed Apr 24 14:28:25 2002 From: keon at nacse.org (Dylan Keon) Date: Wed, 24 Apr 2002 14:28:25 -0700 Subject: [mapserver-users] NQUERYMAP References: <004f01c1ebc8$37d9c610$1a00000a@3port.si> Message-ID: <003601c1ebd6$f7d318a0$4622c180@widberry> Did you check your server error log? Let us know what it says. I'm interested in this, because I'm also getting a 500 Internal Server Error. Apparently I compiled something against two different versions of libpng, and I'm getting an error because of it. Here's my error.log entry: ============================================================ libpng warning: Application was compiled with png.h from libpng-1.0.12 libpng warning: Application is running with png.c from libpng-1.2.2 gd-png: fatal libpng error: Incompatible libpng version in application and library ============================================================ Can anyone tell me which application(s) this error is referring to? I thought it was gd, so I recompiled gd making sure to reference just the newer version of libpng, but that didn't help. I did the same thing with MapServer, to no avail. This error is thrown when trying to load the Itasca demo. Thanks. ----- Original Message ----- From: "Alfred Kleva" To: Sent: Wednesday, April 24, 2002 12:42 PM Subject: [mapserver-users] NQUERYMAP Hi ! I try to execute : http://localhost/cgi-bin/mapserv3.6?map=/data/www/gis_ms/demo5_krem_test/par cele.map&imgsize=489+367&mapsize=489+367&imgext=399306+43548+400256+44259&la yers=parcele&mode=nquerymap&qlayer=parcele&saveQuery=true&imgshape=100+100+2 00+200+100+200 MS returns : ############################################################################ ######### 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 gissrv.gis 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. ############################################################################ ########## From jeffb at erlandsen.com Wed Apr 24 14:35:07 2002 From: jeffb at erlandsen.com (Jeff Berry) Date: Wed, 24 Apr 2002 16:35:07 -0500 (CDT) Subject: [mapserver-users] Date: Wed, 24 Apr 2002 14:29:21 -0700 Message-ID: I would like to open query results in a new browser window. Can I do this in the map file somewhere, say by pointing a query reference to _blank or something like that? Any help would be appreciated. Jeff Berry Erlandsen & Associates P.O. Box 2029 Chelan, WA 98816 (509) 682-4189 jeffb at erlandsen.com From stephane.morel at vanoise.com Thu Apr 25 03:57:47 2002 From: stephane.morel at vanoise.com (Stephane MOREL) Date: Thu, 25 Apr 2002 11:57:47 +0100 Subject: [mapserver-users] Mapscript and proj4 support ? References: <3CC68162.471CDFB5@vanoise.com> <3CC6A4C3.7D74C31B@dmsolutions.ca> Message-ID: <3CC7E12B.7535E530@vanoise.com> Thanks a lot Daniel, you were right I have two copies of php_mapscript.so. Now it works perfectly. Could tell me where I can find documentations or examples on how to use proj4 ? Thanks Daniel Morissette a ?crit : > > Stephane, > > You seem to be missing OGR support as well (in addition to PROJ) in your > PHP Mapscript... I suspect that you are either pointing to the wrong > copy of php_mapscript.so, of your build environment got screwed up > somehow. > > I suggest that you first delete php_mapscript.so from your > extension_dir, and try running your test script again to verify that PHP > will complain about php_mapscript.so not being found... if you don't get > an error then the problem is likely that you have two copies of > php_mapscript.so around... you should fix that problem first. > > Then reconfigure mapserver, and 'make clean ; make' ... and then > reinstall php_mapscript.so > > Daniel > > Stephane MOREL wrote: > > > > Hi, > > > > Mapscript is installed on my computer. ( Linux suse 7.2 Mapserver 3.5) > > ./mapserver -v -> Mapserver verion 3.5 OUTPUT=PNG OUTPUT=JPEG > > OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF INPUT=TIFF INPUT=EPPL7 INPUT=JPEG > > INPUT=GDAL INPUT=SHAPEFILE > > As you can see proj is installed. > > > > When I put phpinfo(); in a php page I get: > > MapScript Version (Nov 27, 2001) > > MapServer version 3.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=TTF > > INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > As you can see proj is not installed !!! > > > > What am I missing ? > > Why proj support is not include in my phpinfo() result ? > > > > Thanks > > stef -------------- next part -------------- A non-text attachment was scrubbed... Name: stephane.morel.vcf Type: text/x-vcard Size: 344 bytes Desc: Carte pour Stephane MOREL URL: From alfred.kleva at siol.net Thu Apr 25 05:12:31 2002 From: alfred.kleva at siol.net (Alfred Kleva) Date: Thu, 25 Apr 2002 14:12:31 +0200 Subject: [mapserver-users] NQUERYMAP References: <004f01c1ebc8$37d9c610$1a00000a@3port.si> <003601c1ebd6$f7d318a0$4622c180@widberry> Message-ID: <007301c1ec52$7abcc6f0$1a00000a@3port.si> error_log file: [Thu Apr 25 09:24:44 2002] [error] [client 10.0.0.26] Premature end of script headers: /data/www/cgi-bin/mapserv3.6 access_log file : 10.0.0.26 - - [25/Apr/2002:09:24:44 +0200] "GET /cgi-bin/mapserv3.6?map=/data/www/gis_ms/demo5_krem_test/parcele.map&imgsize =489+367&mapsize=489+367&imgext=399306+43548+400256+44259&layers=parcele&mod e=nquerymap&qlayer=parcele&saveQuery=true&imgshape=100+100+200+200+100+200 HTTP/1.0" 500 592 Lp Alfred ----- Original Message ----- From: "Dylan Keon" To: "Alfred Kleva" ; Sent: Wednesday, April 24, 2002 11:28 PM Subject: Re: [mapserver-users] NQUERYMAP > Did you check your server error log? Let us know what it says. I'm > interested in this, because I'm also getting a 500 Internal Server Error. > Apparently I compiled something against two different versions of libpng, > and I'm getting an error because of it. Here's my error.log entry: > > ============================================================ > libpng warning: Application was compiled with png.h from libpng-1.0.12 > libpng warning: Application is running with png.c from libpng-1.2.2 > gd-png: fatal libpng error: Incompatible libpng version in application and > library > ============================================================ > > Can anyone tell me which application(s) this error is referring to? I > thought it was gd, so I recompiled gd making sure to reference just the > newer version of libpng, but that didn't help. I did the same thing with > MapServer, to no avail. This error is thrown when trying to load the Itasca > demo. > > Thanks. > > > ----- Original Message ----- > From: "Alfred Kleva" > To: > Sent: Wednesday, April 24, 2002 12:42 PM > Subject: [mapserver-users] NQUERYMAP > > > Hi ! > > I try to execute : > > http://localhost/cgi-bin/mapserv3.6?map=/data/www/gis_ms/demo5_krem_test/par > cele.map&imgsize=489+367&mapsize=489+367&imgext=399306+43548+400256+44259&la > yers=parcele&mode=nquerymap&qlayer=parcele&saveQuery=true&imgshape=100+100+2 > 00+200+100+200 > > MS returns : > ############################################################################ > ######### > 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 gissrv.gis 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. > > ############################################################################ > ########## > > > From michel at omnisystem.com.br Thu Apr 25 10:34:56 2002 From: michel at omnisystem.com.br (Michel M. dos Santos) Date: Thu, 25 Apr 2002 14:34:56 -0300 Subject: [mapserver-users] problem with mapscript/php In-Reply-To: <02042416081700.03900@cartman.omni> References: <02042416081700.03900@cartman.omni> Message-ID: <02042514345600.04602@cartman.omni> Can anyone help me ? I'm get crazy with this !!! -- []'s Michel M. dos Santos Em Qua 24 Abr 2002 16:08, Michel M. dos Santos escreveu: > Hi, > > I'm with a problem with mapscript php. I try putting a shape line, but it > doesn't draw. If I change the type to POINT, the points are draw, when I > put the type to LINE , the line aren't draw. > > Can anyone help me. > > Map file: > > ##################################### OK dash > LAYER #dash > > CLASS > NAME "dash" > COLOR 0 0 255 > SIZE 5 > SYMBOL "dash-long" > END > > NAME "dash" > STATUS ON > TYPE LINE <--- if I change to POINT , the points are draw. > > END #dash > #################################### OK dash > > code php: > > -----------8<-------------------------------------- > $figura = ms_newShapeObj(MS_SHAPE_LINE); <-- shape type LINE > > for($i=0;$i<$N;$i++){ > > $ponto_obj = ms_newLineObj(); <- object point > $ponto_obj->add($ponto[$i]); <- get the point > $figura->add($ponto_obj); <- put in the shape > } > > $layer = $map->getLayerByName("dash"); <- get the layer to put shape > $layer->addFeature($figura); <- put shape in layer > > ----------8<-------------------------------------- > > -- > []'s > Michel M. dos Santos From klehr1 at tampabay.rr.com Thu Apr 25 10:38:45 2002 From: klehr1 at tampabay.rr.com (klehr1 at tampabay.rr.com) Date: Thu, 25 Apr 2002 13:38:45 -0400 Subject: [mapserver-users] Online Geocoding? Message-ID: <015901c1ec80$0d223840$0300a8c0@p200> Does anyone know of an online geo-coding service. i.e. they have an address form press submit and back comes the geo-code. I may process 10-1000 GeoCodes a day and need it in realtime. I've scene some sites that allow you to do 100 free geo-codes, but would like to use a subscription type service. I am planning to write a script that connects to their web page, posts the data to a form, captures the returned geo-code and then update my database record. Another wonderful job for PERL. Thanks Steve Lehr For those of you have not done such a thing-- here a nifty script that POSTS/GETS data from a web form. #!/usr/bin/perl -w use Socket; use strict; # these are the only pertinent variables my $ip ="www.wherver.com"; my $path = "geocode.pl"; my $content = "CMD=geoCode&Address=123+Seaseme+St&"; my ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) = localtime(tim e); my $timestr = sprintf("%4d%02d%02d%02d%02d", $year+1900, $mon+1, $mday, $hour, $ min); my $host = $ip; my $port = 80; my $socketaddr; print HTML "\nRetrieving page $path with $content"; print "\nRetrieving page $path with $content"; openSock(); post ($content); @wholePage = ; close SOCK; print HTML @wholePage; exit; ########### # subroutine: open a socket at SOCK ########### sub openSock { $socketaddr= sockaddr_in $port, inet_aton $host or die "Bad hostname\n"; #print "Connecting to $socketaddr $host, $port"; socket SOCK, PF_INET, SOCK_STREAM, getprotobyname('tcp') or die "Bad socket\n"; connect SOCK, $socketaddr or die "Bad connection\n"; select((select(SOCK), $| = 1)[0]); } ########### # subroutine: send post request to target web site ########### sub post { my $content = shift @_; print SOCK "POST http://$host/$path HTTP/1.0\n"; print SOCK "Content-type: application/x-www-form-urlencoded\n"; my $contentLength = length $content; print SOCK "Content-length: $contentLength\n"; print SOCK "\n"; print SOCK "$content"; } sub get { my $content = shift @_; print SOCK "GET http://$host/$path HTTP/1.0\n"; print SOCK "Content-type: text/html\n\n"; #my $contentLength = length $content; #print SOCK "Content-length: $contentLength\n"; #print SOCK "\n"; #print SOCK "$content"; } -------------- next part -------------- An HTML attachment was scrubbed... URL: From michel at omnisystem.com.br Thu Apr 25 13:10:39 2002 From: michel at omnisystem.com.br (Michel M. dos Santos) Date: Thu, 25 Apr 2002 17:10:39 -0300 Subject: [mapserver-users] problem with mapscript/php In-Reply-To: <02042514345600.04602@cartman.omni> References: <02042416081700.03900@cartman.omni> <02042514345600.04602@cartman.omni> Message-ID: <02042517103901.04602@cartman.omni> I put my brain to working and get to do it. Thanks -- []'s Michel M. dos Santos Em Qui 25 Abr 2002 14:34, Michel M. dos Santos escreveu: > Can anyone help me ? > > I'm get crazy with this !!! > > -- > []'s > Michel M. dos Santos > > Em Qua 24 Abr 2002 16:08, Michel M. dos Santos escreveu: > > Hi, > > > > I'm with a problem with mapscript php. I try putting a shape line, but > > it doesn't draw. If I change the type to POINT, the points are draw, when > > I put the type to LINE , the line aren't draw. > > > > Can anyone help me. > > > > Map file: > > > > ##################################### OK dash > > LAYER #dash > > > > CLASS > > NAME "dash" > > COLOR 0 0 255 > > SIZE 5 > > SYMBOL "dash-long" > > END > > > > NAME "dash" > > STATUS ON > > TYPE LINE <--- if I change to POINT , the points are draw. > > > > END #dash > > #################################### OK dash > > > > code php: > > > > -----------8<-------------------------------------- > > $figura = ms_newShapeObj(MS_SHAPE_LINE); <-- shape type LINE > > > > for($i=0;$i<$N;$i++){ > > > > $ponto_obj = ms_newLineObj(); <- object point > > $ponto_obj->add($ponto[$i]); <- get the point > > $figura->add($ponto_obj); <- put in the shape > > } > > > > $layer = $map->getLayerByName("dash"); <- get the layer to put shape > > $layer->addFeature($figura); <- put shape in layer > > > > ----------8<-------------------------------------- > > > > -- > > []'s > > Michel M. dos Santos From lfilak at medinaco.org Thu Apr 25 13:34:06 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Thu, 25 Apr 2002 16:34:06 -0400 Subject: [mapserver-users] problem with mapscript/php Message-ID: <200204252024.g3PKOuQ03950@yogi.medinaco.net> What is the output from: perl dump.pl -file=dash | head -10 ? Lowell F. The following message was sent by "Michel M. dos Santos" on Thu, 25 Apr 2002 14:34:56 -0300. > > > Can anyone help me ? > > I'm get crazy with this !!! > > -- > []'s > Michel M. dos Santos > > > Em Qua 24 Abr 2002 16:08, Michel M. dos Santos escreveu: > > Hi, > > > > I'm with a problem with mapscript php. I try putting a shape line, but it > > doesn't draw. If I change the type to POINT, the points are draw, when I > > put the type to LINE , the line aren't draw. > > > > Can anyone help me. > > > > Map file: > > > > ##################################### OK dash > > LAYER #dash > > > > CLASS > > NAME "dash" > > COLOR 0 0 255 > > SIZE 5 > > SYMBOL "dash-long" > > END > > > > NAME "dash" > > STATUS ON > > TYPE LINE <--- if I change to POINT , the points are draw. > > > > END #dash > > #################################### OK dash > > > > code php: > > > > -----------8<-------------------------------------- > > $figura = ms_newShapeObj(MS_SHAPE_LINE); <-- shape type LINE > > > > for($i=0;$i<$N;$i++){ > > > > $ponto_obj = ms_newLineObj(); <- object point > > $ponto_obj->add($ponto[$i]); <- get the point > > $figura->add($ponto_obj); <- put in the shape > > } > > > > $layer = $map->getLayerByName("dash"); <- get the layer to put shape > > $layer->addFeature($figura); <- put shape in layer > > > > ----------8<-------------------------------------- > > > > -- > > []'s > > Michel M. dos Santos From erwin at perik.nu Thu Apr 25 14:15:31 2002 From: erwin at perik.nu (E Perik) Date: Thu, 25 Apr 2002 23:15:31 +0200 Subject: [mapserver-users] problem with mapscript/php In-Reply-To: <02042514345600.04602@cartman.omni> Message-ID: <000901c1ec9e$552f0fa0$967ba8c0@xp> Did you check in eg ArcExplorer or in ArcView if it shows as a line? Erwin -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of Michel M. dos Santos Sent: Thursday, April 25, 2002 7:35 PM To: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] problem with mapscript/php Can anyone help me ? I'm get crazy with this !!! -- []'s Michel M. dos Santos Em Qua 24 Abr 2002 16:08, Michel M. dos Santos escreveu: > Hi, > > I'm with a problem with mapscript php. I try putting a shape line, but it > doesn't draw. If I change the type to POINT, the points are draw, when I > put the type to LINE , the line aren't draw. > > Can anyone help me. > > Map file: > > ##################################### OK dash > LAYER #dash > > CLASS > NAME "dash" > COLOR 0 0 255 > SIZE 5 > SYMBOL "dash-long" > END > > NAME "dash" > STATUS ON > TYPE LINE <--- if I change to POINT , the points are draw. > > END #dash > #################################### OK dash > > code php: > > -----------8<-------------------------------------- > $figura = ms_newShapeObj(MS_SHAPE_LINE); <-- shape type LINE > > for($i=0;$i<$N;$i++){ > > $ponto_obj = ms_newLineObj(); <- object point > $ponto_obj->add($ponto[$i]); <- get the point > $figura->add($ponto_obj); <- put in the shape > } > > $layer = $map->getLayerByName("dash"); <- get the layer to put shape > $layer->addFeature($figura); <- put shape in layer > > ----------8<-------------------------------------- > > -- > []'s > Michel M. dos Santos From pkishor at GeoAnalytics.com Thu Apr 25 15:01:17 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Thu, 25 Apr 2002 17:01:17 -0500 Subject: [mapserver-users] drawing acetate shapes with PHP/Mapscript Message-ID: once a map is drawn, I'd like to add a triangle, a circle, or a square, or whatever... (but, let's take the example of a triangle for now) on top of everything. the way I understand it, I would have to -- 1. have an "acetate" layer with 'STATUS off' in my map file like so... LAYER NAME "acetate" TYPE polygon STATUS off CLASS OUTLINECOLOR 255 0 0 # red outline COLOR 0 255 0 # green fill END END 2. and use Mapscript like so... $layerObj = $mapObj->getlayerbyname("acetate"); // new layerObj $classObj = $layerObj->getClass(0); // classObj $imgObj = $mapObj->draw(); // imgObj $shpObj = ms_newShapeObj(MS_SHAPE_LINE); // new shpObj $pointObj1 = ms_newPointObj(); // point1 $pointObj1->setXY(300, 300); $pointObj2 = ms_newPointObj(); // point2 $pointObj2->setXY(450, 600); $pointObj3 = ms_newPointObj(); // point3 $pointObj3->setXY(600, 300); $pointObj4 = ms_newPointObj(); // point4 $pointObj4->setXY(300, 300); $lineObj = ms_newLineObj(); // new line $lineObj->add($pointObj1); $lineObj->add($pointObj2); $lineObj->add($pointObj3); $lineObj->add($pointObj4); $shpObj->draw($mapObj, $layerObj, $imgObj, 0, "foo") $layerObj->set("status", 1); // turn on the layer ============== am I right or am I way off? Tia, pk/ From pkishor at GeoAnalytics.com Thu Apr 25 16:48:39 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Thu, 25 Apr 2002 18:48:39 -0500 Subject: [mapserver-users] RE: drawing acetate shapes with PHP/Mapscript Message-ID: sorry, instead of > $imgObj = $mapObj->draw(); // imgObj I intended > $imgObj = $mapObj->prepareImage(); // imgObj any advice on this would be much appreciated. Thanks. Puneet. > -----Original Message----- > From: Puneet Kishor > Sent: Thursday, April 25, 2002 5:01 PM > To: mapserver-users at lists.gis.umn.edu > Subject: drawing acetate shapes with PHP/Mapscript > > > once a map is drawn, I'd like to add a triangle, a circle, or > a square, or whatever... (but, let's take the example of a > triangle for now) on top of everything. > > the way I understand it, I would have to -- > > 1. have an "acetate" layer with 'STATUS off' in my map file like so... > > LAYER > NAME "acetate" > TYPE polygon > STATUS off > CLASS > OUTLINECOLOR 255 0 0 # red outline > COLOR 0 255 0 # green fill > END > END > > 2. and use Mapscript like so... > > $layerObj = $mapObj->getlayerbyname("acetate"); // new layerObj > $classObj = $layerObj->getClass(0); // classObj > $imgObj = $mapObj->draw(); // imgObj > $shpObj = ms_newShapeObj(MS_SHAPE_LINE); // new shpObj > > $pointObj1 = ms_newPointObj(); // point1 > $pointObj1->setXY(300, 300); > > $pointObj2 = ms_newPointObj(); // point2 > $pointObj2->setXY(450, 600); > > $pointObj3 = ms_newPointObj(); // point3 > $pointObj3->setXY(600, 300); > > $pointObj4 = ms_newPointObj(); // point4 > $pointObj4->setXY(300, 300); > > $lineObj = ms_newLineObj(); // new line > $lineObj->add($pointObj1); > $lineObj->add($pointObj2); > $lineObj->add($pointObj3); > $lineObj->add($pointObj4); > $shpObj->draw($mapObj, $layerObj, $imgObj, 0, "foo") > > $layerObj->set("status", 1); // turn on the layer > > > > ============== > > > am I right or am I way off? > > Tia, > > pk/ > From pkishor at GeoAnalytics.com Thu Apr 25 18:04:04 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Thu, 25 Apr 2002 20:04:04 -0500 Subject: [mapserver-users] RE: drawing acetate shapes with PHP/Mapscript Message-ID: ok... I figured it out... the code below works for drawing a triangle on an "acetate" layer... questions... 1. this worked for me... $lineObj1->addXY($x1, $y1); But this did not... $pointObj1 = setXY($x1, $y1); $lineObj1->add($pointObj1); why not? 2. How do I draw a circle around a given point? free beer at the mapserver users meeting in the twin cities (if and when it happens) to the first person who answers this. my eyes are hurting. tia, pk/ 1. have an "acetate" layer with 'STATUS off' in my map file like so... LAYER NAME "acetate" TYPE polygon STATUS off CLASS OUTLINECOLOR 255 0 0 # red outline COLOR 0 255 0 # green fill END END 2. and use Mapscript like so... $x1 = 250; $y1 = 250; $x2 = $x1 + 5000; $y2 = $y1 + 7000; $x3 = $x1 + 3000; $y3 = $y1; $x4 = $x1; $y4 = $y1; $layerObj = $mapObj->getlayerbyname("acetate"); $classObj = $layerObj->getClass(0); $imgObj = $mapObj->prepareImage(); $shpObj = ms_newShapeObj(2); $lineObj1 = ms_newLineObj(); $lineObj1->addXY($x1, $y1); $lineObj1->addXY($x2, $y2); $lineObj1->addXY($x2, $y2); $lineObj1->addXY($x3, $y3); $lineObj1->addXY($x3, $y3); $lineObj1->addXY($x4, $y4); $shpObj->add($lineObj1); $shpObj->draw($mapObj, $layerObj, $imgObj, 0, "foo"); $acUrl = $imgObj->saveWebImage(MS_PNG, 0, 0, -1); $layerObj->set("status", 1); $lineObj1->free(); $imgObj->free(); $shpObj->free(); From pkishor at GeoAnalytics.com Thu Apr 25 19:19:21 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Thu, 25 Apr 2002 21:19:21 -0500 Subject: [mapserver-users] RE: drawing acetate shapes with PHP/Mapscript Message-ID: one more... drawing a circle at origin x0, y0, with radius r the following code works for me... ========== $x0 = 250; $y0 = 250; $r = 5000; [.. create various objects ..] for($y = -$r; $y < $r; $y++) { $x = sqrt(($r*$r) - ($y*$y)); $xtemp = $x0 + $x; $ytemp = $y0 + $y; $lineObj->addXY($xtemp, $ytemp); } for($y = -$r; $y < $r; $y++) { $x = sqrt(($r*$r) - ($y*$y)); $xtemp = $x0 - $x; $ytemp = $y0 - $y; $lineObj->addXY($xtemp, $ytemp); } $shpObj->add($lineObj); ========== surely, there has to be some better way than this kludge. tia, pk/ From keon at nacse.org Thu Apr 25 22:07:31 2002 From: keon at nacse.org (Dylan Keon) Date: Thu, 25 Apr 2002 22:07:31 -0700 Subject: [mapserver-users] can't display TIFFs Message-ID: <002301c1ece0$4712fa20$0a00a8c0@vulture> I can't seem to get TIFFs to display using MapServer...I get either a blank page or a "server not found" error. I'm using a modified version of the Europe PHP example (nothing fancy), and I can display shapfiles just fine, unless the raster layer is included in the mapfile. If I comment out that raster layer, everything displays fine once again. I've tried three different TIFFs, with no luck. All TIFFs are in the correct projection & datum, are 8 bit images, and display fine with the associated shapefiles in other applications. The TIFFs were created using the GRIDIMAGE command in ArcInfo, and I renamed the .tfw extension to .wld (tried it both ways, actually). And it's not a permissions problem. I've tried both colormap and grayscale images, with no difference. I followed the "Raster HOWTO" instructions, and the "Converting ArcINFO Grids to Mapserver TIFFs" instructions in the Wiki, but neither helped. Am I missing a format from GDAL or something? (see below). I compiled Mapserver --without-tiff. Thanks for any help, not sure what to try next. --Dylan ============= machine stats ============= SuSE 7.3 Linux (on 550MHz PIII box) mapserver 3.5 apache 1.3.22 php 4.0.6 gdal 1.1.7 gd 1.8.4 libtiff 3.5.7 libgeotiff 1.1.4 ====================== output from mapserv -v ====================== > ./mapserv -v MapServer version 3.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE ================================= output from gdal-config --formats ================================= > ./gdal-config --formats gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 bsb xpm sdts raw dted mem jdem envisat elas fit vrt usgsdem gif jpeg png grass ============== mapfile sample ============== LAYER NAME testdrg TYPE raster DATA testdrg.tif STATUS on END ========================= ArcInfo GRIDIMAGE command ========================= Grid: GRIDIMAGE DRG1232 drg1232.clr testdrg TIFF NONE (I've also used the COMPRESSION option, no effect on the problem) ==================== output from tiffinfo ==================== > tiffinfo testdrg.tif testdrg.tif: Warning, unknown field with tag 33550 (0x830e) ignored. testdrg.tif: Warning, unknown field with tag 33922 (0x8482) ignored. TIFF Directory at offset 0x8 Subfile Type: (0 = 0x0) Image Width: 4433 Image Length: 5863 Resolution: 0.124, 0.124 (unitless) Bits/Sample: 8 Compression Scheme: None Photometric Interpretation: palette color (RGB from colormap) Software: "Arc/Info" Samples/Pixel: 1 Rows/Strip: 2 Planar Configuration: single image plane Color Map: (present) From stepan.kafka at centrum.cz Thu Apr 25 23:00:41 2002 From: stepan.kafka at centrum.cz (Stepan Kafka) Date: Fri, 26 Apr 2002 08:00:41 +0200 Subject: [mapserver-users] problem with mapscript/php In-Reply-To: <02042514345600.04602@cartman.omni> Message-ID: <000401c1ece7$b2175a80$7e3c2fc3@HSGIS> You make only a one-point line object for each line. Try to change the script as follows: $figura = ms_newShapeObj(MS_SHAPE_LINE); <-- shape type LINE $ponto_obj = ms_newLineObj(); <- object line for($i=0;$i<$N;$i++){ $ponto_obj->add($ponto[$i]); <- get the point } $figura->add($ponto_obj); <- put in the shape $layer = $map->getLayerByName("dash"); <- get the layer to put shape $layer->addFeature($figura); <- put shape in layer Stepan Kafka > > > Can anyone help me ? > > I'm get crazy with this !!! > > -- > []'s > Michel M. dos Santos > > > Em Qua 24 Abr 2002 16:08, Michel M. dos Santos escreveu: > > Hi, > > > > I'm with a problem with mapscript php. I try putting a > shape line, but it > > doesn't draw. If I change the type to POINT, the points are draw, when I > > put the type to LINE , the line aren't draw. > > > > Can anyone help me. > > > > Map file: > > > > ##################################### OK dash > > LAYER #dash > > > > CLASS > > NAME "dash" > > COLOR 0 0 255 > > SIZE 5 > > SYMBOL "dash-long" > > END > > > > NAME "dash" > > STATUS ON > > TYPE LINE <--- if I change to POINT , the points are draw. > > > > END #dash > > #################################### OK dash > > > > code php: > > > > -----------8<-------------------------------------- > > $figura = ms_newShapeObj(MS_SHAPE_LINE); <-- shape type LINE > > > > for($i=0;$i<$N;$i++){ > > > > $ponto_obj = ms_newLineObj(); <- object point > > $ponto_obj->add($ponto[$i]); <- get the point > > $figura->add($ponto_obj); <- put in the shape > > } > > > > $layer = $map->getLayerByName("dash"); <- get the layer to put shape > > $layer->addFeature($figura); <- put shape in layer > > > > ----------8<-------------------------------------- > > > > -- > > []'s > > Michel M. dos Santos > > From klehr1 at tampabay.rr.com Fri Apr 26 01:19:59 2002 From: klehr1 at tampabay.rr.com (klehr1 at tampabay.rr.com) Date: Fri, 26 Apr 2002 04:19:59 -0400 Subject: [mapserver-users] Online Geocoding? References: <20020425194046.20132.qmail@web13901.mail.yahoo.com> Message-ID: <008001c1ecfb$28722440$0300a8c0@p200> Thanks to all who replied: Can not beat www.geocode.com 60,000 for $935.00 use their software, do as many as you want when you want. Purchase how many you would like, get the service till you use up your purchase quantity. Thanks again. Steve Lehr ----- Original Message ----- From: Caffeinate The World To: Sent: Thursday, April 25, 2002 3:40 PM Subject: Re: [mapserver-users] Online Geocoding? > > --- klehr1 at tampabay.rr.com wrote: > > Does anyone know of an online geo-coding service. > > > > i.e. they have an address form press submit and back comes the > > geo-code. > > http://www.geocode.com/ > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Games - play chess, backgammon, pool and more > http://games.yahoo.com/ > From shpr at libero.it Fri Apr 26 02:25:31 2002 From: shpr at libero.it (Stefano Bonnin) Date: Fri, 26 Apr 2002 11:25:31 +0200 Subject: [mapserver-users] Question about GMAP application Message-ID: <002901c1ed04$52f49fa0$0601a8c0@comai.loc> Hi, I have a simple question about DM Solution Group GMap application. In the gmap75.map file there is a line like this TEMPLATE "ttt_query.html" what is this template. I don't find it in the application files. Where is it? Thanks. Stefano B. --- Outgoing mail is certified Virus Free. (FLASHH!) Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.350 / Virus Database: 196 - Release Date: 17/04/02 From shpr at libero.it Fri Apr 26 04:02:23 2002 From: shpr at libero.it (Stefano Bonnin) Date: Fri, 26 Apr 2002 13:02:23 +0200 Subject: [mapserver-users] Street Searching Message-ID: <014301c1ed11$d85bb400$0601a8c0@comai.loc> Hi, I have to develop a Street Searching function where the user can insert City and Street ( and number) and the application must display the map centered on this street. How can I do that with mapserver? Can you give me an Hint in order to do this. I read the PHP Map/documentation but I did't find any query of this type. My personal solution is the following: with a PHP application I get the user input (Street and City) and I query to the database in order to find the object ID, then, I "say" to mapserver to create a map with this object .... Someone can say me if this is a possible solution or if there are a more simple solution? Thanks. Stefano B. --- Outgoing mail is certified Virus Free. (FLASHH!) Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.350 / Virus Database: 196 - Release Date: 17/04/02 From woodbri at swoodbridge.com Fri Apr 26 05:04:56 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 26 Apr 2002 08:04:56 -0400 Subject: [mapserver-users] Question about GMAP application References: <002901c1ed04$52f49fa0$0601a8c0@comai.loc> Message-ID: <3CC94268.E75BC65C@swoodbridge.com> Stefano, You have to ahve a TEMPLATE line if you want to do a query on that layer or the layer will be ignored by mapserver. It is just a dummy file that does not exist. I use TEMPLATE "void" in my mapfiles to make this a little clearer. -Steve Stefano Bonnin wrote: > > Hi, > > I have a simple question about DM Solution Group GMap application. > > In the gmap75.map file there is a line like this > > TEMPLATE "ttt_query.html" > > what is this template. > > I don't find it in the application files. Where is it? > > Thanks. > > Stefano B. > > --- > Outgoing mail is certified Virus Free. (FLASHH!) > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.350 / Virus Database: 196 - Release Date: 17/04/02 From woodbri at swoodbridge.com Fri Apr 26 05:10:16 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 26 Apr 2002 08:10:16 -0400 Subject: [mapserver-users] Street Searching References: <014301c1ed11$d85bb400$0601a8c0@comai.loc> Message-ID: <3CC943A8.8D2625D9@swoodbridge.com> Stefano, I wrote a separate CGI program to do this. You could write it in C or Perl or whatever. It does the address lookup by scanning the approprate shape files and when it has a result it sends a client redirect to the browser to get it to load the map with the Lat/Long result for the search results. I think you will find this much easier to do if you think about doing it outside of mapserver/mapscript and only send the final result to get mapserver to display the answer. -Steve W. Stefano Bonnin wrote: > > Hi, > > I have to develop a Street Searching function where > > the user can insert City and Street ( and number) and the application must > display the map centered on this street. > > How can I do that with mapserver? > Can you give me an Hint in order to do this. > > I read the PHP Map/documentation but I did't find any query of this type. > My personal solution is the following: > > with a PHP application I get the user input (Street and City) and I query to > the database in order to find the object ID, then, I "say" to mapserver to > create a map with this object .... > > Someone can say me if this is a possible solution or if there are a more > simple solution? > > Thanks. > > Stefano B. > > --- > Outgoing mail is certified Virus Free. (FLASHH!) > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.350 / Virus Database: 196 - Release Date: 17/04/02 From TMitchell at lignum.com Fri Apr 26 08:44:47 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Fri, 26 Apr 2002 08:44:47 -0700 Subject: [mapserver-users] Street Searching Message-ID: Good idea. I guess it would be even easier to do just using a query to a database for returning the result? Stephen Woodbridge To: Stefano Bonnin Sent by: cc: mapserver-users at lists.gis.umn.edu owner-mapserver-users at lists. Fax to: gis.umn.edu Subject: Re: [mapserver-users] Street Searching 04/26/2002 05:10 AM Stefano, I wrote a separate CGI program to do this. You could write it in C or Perl or whatever. It does the address lookup by scanning the approprate shape files and when it has a result it sends a client redirect to the browser to get it to load the map with the Lat/Long result for the search results. I think you will find this much easier to do if you think about doing it outside of mapserver/mapscript and only send the final result to get mapserver to display the answer. -Steve W. Stefano Bonnin wrote: > > Hi, > > I have to develop a Street Searching function where > > the user can insert City and Street ( and number) and the application must > display the map centered on this street. > > How can I do that with mapserver? > Can you give me an Hint in order to do this. > > I read the PHP Map/documentation but I did't find any query of this type. > My personal solution is the following: > > with a PHP application I get the user input (Street and City) and I query to > the database in order to find the object ID, then, I "say" to mapserver to > create a map with this object .... > > Someone can say me if this is a possible solution or if there are a more > simple solution? > > Thanks. > > Stefano B. > > --- > Outgoing mail is certified Virus Free. (FLASHH!) > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.350 / Virus Database: 196 - Release Date: 17/04/02 From morissette at dmsolutions.ca Fri Apr 26 09:20:47 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 26 Apr 2002 12:20:47 -0400 Subject: [mapserver-users] drawing acetate shapes with PHP/Mapscript References: Message-ID: <3CC97E5F.B77F5942@dmsolutions.ca> Puneet, I think you're close. You'll at least need to add "TRANSFORM FALSE" in your layer definition since your shape is defined in pixel coordinates, and add a call to $shpObj->add($lineObj) before calling draw(), otherwise you are drawing a empty shape. Daniel Puneet Kishor wrote: > > once a map is drawn, I'd like to add a triangle, a circle, or a square, or > whatever... (but, let's take the example of a triangle for now) on top of > everything. > > the way I understand it, I would have to -- > > 1. have an "acetate" layer with 'STATUS off' in my map file like so... > > LAYER > NAME "acetate" > TYPE polygon > STATUS off > CLASS > OUTLINECOLOR 255 0 0 # red outline > COLOR 0 255 0 # green fill > END > END > > 2. and use Mapscript like so... > > $layerObj = $mapObj->getlayerbyname("acetate"); // new layerObj > $classObj = $layerObj->getClass(0); // classObj > $imgObj = $mapObj->draw(); // imgObj > $shpObj = ms_newShapeObj(MS_SHAPE_LINE); // new shpObj > > $pointObj1 = ms_newPointObj(); // point1 > $pointObj1->setXY(300, 300); > > $pointObj2 = ms_newPointObj(); // point2 > $pointObj2->setXY(450, 600); > > $pointObj3 = ms_newPointObj(); // point3 > $pointObj3->setXY(600, 300); > > $pointObj4 = ms_newPointObj(); // point4 > $pointObj4->setXY(300, 300); > > $lineObj = ms_newLineObj(); // new line > $lineObj->add($pointObj1); > $lineObj->add($pointObj2); > $lineObj->add($pointObj3); > $lineObj->add($pointObj4); > $shpObj->draw($mapObj, $layerObj, $imgObj, 0, "foo") > > $layerObj->set("status", 1); // turn on the layer > > ============== > > am I right or am I way off? > > Tia, > > pk/ From pushkar at ERC.MsState.Edu Fri Apr 26 09:48:07 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Fri, 26 Apr 2002 11:48:07 -0500 (CDT) Subject: [mapserver-users] can't display TIFFs In-Reply-To: <002301c1ece0$4712fa20$0a00a8c0@vulture> Message-ID: Check if your GDAL was compiled with TIFF support: gdal-config --formats gtiff should be there, if it's not then you have to install libtiffs on your system or configure gdal to use the internal tiff support: ./configure --with-libtiff=internal --with-geotiff=internal > I can't seem to get TIFFs to display using MapServer...I get either a blank > page or a "server not found" error. I'm using a modified version of the > Europe PHP example (nothing fancy), and I can display shapfiles just fine, > unless the raster layer is included in the mapfile. If I comment out that > raster layer, everything displays fine once again. > > I've tried three different TIFFs, with no luck. All TIFFs are in the > correct projection & datum, are 8 bit images, and display fine with the > associated shapefiles in other applications. The TIFFs were created using > the GRIDIMAGE command in ArcInfo, and I renamed the .tfw extension to .wld > (tried it both ways, actually). And it's not a permissions problem. I've > tried both colormap and grayscale images, with no difference. I followed > the "Raster HOWTO" instructions, and the "Converting ArcINFO Grids to > Mapserver TIFFs" instructions in the Wiki, but neither helped. Am I missing > a format from GDAL or something? (see below). I compiled > Mapserver --without-tiff. > > Thanks for any help, not sure what to try next. > > --Dylan > > > ============= > machine stats > ============= > SuSE 7.3 Linux (on 550MHz PIII box) > mapserver 3.5 apache 1.3.22 > php 4.0.6 gdal 1.1.7 > gd 1.8.4 libtiff 3.5.7 > libgeotiff 1.1.4 > > ====================== > output from mapserv -v > ====================== > > ./mapserv -v > MapServer version 3.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ > SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > ================================= > output from gdal-config --formats > ================================= > > ./gdal-config --formats > gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 bsb xpm sdts raw dted mem > jdem envisat elas fit vrt usgsdem gif jpeg png grass > > ============== > mapfile sample > ============== > LAYER > NAME testdrg > TYPE raster > DATA testdrg.tif > STATUS on > END > > ========================= > ArcInfo GRIDIMAGE command > ========================= > Grid: GRIDIMAGE DRG1232 drg1232.clr testdrg TIFF NONE > (I've also used the COMPRESSION option, no effect on the problem) > > ==================== > output from tiffinfo > ==================== > > tiffinfo testdrg.tif > testdrg.tif: Warning, unknown field with tag 33550 (0x830e) ignored. > testdrg.tif: Warning, unknown field with tag 33922 (0x8482) ignored. > TIFF Directory at offset 0x8 > Subfile Type: (0 = 0x0) > Image Width: 4433 Image Length: 5863 > Resolution: 0.124, 0.124 (unitless) > Bits/Sample: 8 > Compression Scheme: None > Photometric Interpretation: palette color (RGB from colormap) > Software: "Arc/Info" > Samples/Pixel: 1 > Rows/Strip: 2 > Planar Configuration: single image plane > Color Map: (present) > > -Pushkar S. Pradhan From joe at otsys.com Fri Apr 26 09:51:18 2002 From: joe at otsys.com (Joe Bussell) Date: Fri, 26 Apr 2002 09:51:18 -0700 Subject: [mapserver-users] background map image Message-ID: <20020426165117.GA28461@extempore.otsys.com> In an attempt to speed up map rendering for our site we opted to build a set of tiles for the static elements of the data (streets, cities, water) which would serve as background images for more frequently updated data. The dhtml route of creating a transparent PNG file to overlay on top of the map fails for Netscape4.* which apparently has poor support for transparent PNG files. The next choice would be to use other means to combine the images before they leave the server. Is there a method for creating a map with another image as its background using mapserver? Would this be better accomplished using GD.pm? Joe Bussell On Time Systems From woodbri at swoodbridge.com Fri Apr 26 10:01:06 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 26 Apr 2002 13:01:06 -0400 Subject: [mapserver-users] background map image References: <20020426165117.GA28461@extempore.otsys.com> Message-ID: <3CC987D2.D4BEFDB3@swoodbridge.com> Joe, This is a basic feature of mapserver just use it. See http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?BathymetryHowTo for more info. -Steve Joe Bussell wrote: > > In an attempt to speed up map rendering for our site we opted to build a > set of tiles for the static elements of the data (streets, cities, > water) which would serve as background images for more frequently > updated data. The dhtml route of creating a transparent PNG file to > overlay on top of the map fails for Netscape4.* which apparently has > poor support for transparent PNG files. > > The next choice would be to use other means to combine the images before > they leave the server. Is there a method for creating a map with > another image as its background using mapserver? Would this be better > accomplished using GD.pm? > > Joe Bussell > On Time Systems From pushkar at ERC.MsState.Edu Fri Apr 26 10:01:39 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Fri, 26 Apr 2002 12:01:39 -0500 (CDT) Subject: [mapserver-users] passing arrays betn. php and javascript Message-ID: Hi, In my maps I want to do the foll.: The user should be able to select the layers to display and change the order of the drawing. I think the fastest way is to do this using javascript, since it runs on client side it will be fast. So is it possible to pass an array containing the names of the layers from php to javascript, after changing the element positions in JS have it back in php? Some code snippets would also be appreciated. Thanks, -Pushkar S. Pradhan From woodbri at swoodbridge.com Fri Apr 26 10:13:41 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 26 Apr 2002 13:13:41 -0400 Subject: [mapserver-users] passing arrays betn. php and javascript References: Message-ID: <3CC98AC5.8F6FF27E@swoodbridge.com> Pushkar, Your php writes the page that is sent to the browser (or can write it) so just have your php output code to load a javascript array with values. let the user play with the values and when you are ready to refresh the display using the new values have your javascript assign the values to hidden form fields and post the form back to php with the submit button. You can use an onSubmit() javascript function to trap the users refresh click and then update the form fields -Steve Pushkar Pradhan wrote: > > Hi, > In my maps I want to do the foll.: > The user should be able to select the layers to display and change the > order of the drawing. > I think the fastest way is to do this using javascript, since it runs on > client side it will be fast. > So is it possible to pass an array containing the names of the layers from > php to javascript, after changing the element positions in JS have it back > in php? Some code snippets would also be appreciated. Thanks, > > -Pushkar S. Pradhan From woodbri at swoodbridge.com Fri Apr 26 11:08:07 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 26 Apr 2002 14:08:07 -0400 Subject: [mapserver-users] queryByAttribute() References: <014301c1ed11$d85bb400$0601a8c0@comai.loc> <3CC943A8.8D2625D9@swoodbridge.com> <005c01c1ed30$896204c0$0601a8c0@comai.loc> <3CC96CDB.6028AE7C@swoodbridge.com> <3CC99191.33DD5D26@dmsolutions.ca> Message-ID: <3CC99787.A195772F@swoodbridge.com> OK, does anyone know how queryByAttribute() is supposed to be used? I put my guess below, but I haven't tried it, and Stefano has been trying to get an answer on this for a few days without much success. -Steve Daniel Morissette wrote: > > Steve, > > I believe what you suggest should work in MapScript, but I never used > queryByAttribute() myself so I can't confirm anything. About the > ITEMQUERY and ITEMNQUERY CGI modes, I never used them directly so I > can't tell you much about them either > > Seems that you touched an area of MapServer that I'm less familiar > with... you may have more luck asking Steve Lime, or by Emailing the > list directly... :) > > Daniel > > Stephen Woodbridge wrote: > > > > Stefano, > > > > This might work for you, but I think (but I am not sure) that you can do > > the same thing in Mapscript by: > > > > 1) set the extents to the area you want to search > > 1a) make sure you have TEMPLATE defined for the layers you want to query > > 2) set the filteritem to the query you want to perform > > (this is the step I am guessing, otherwise I'm not sure how > > you would specify what the queryByAttribute query would be.) > > 3) call queryByAtrribute(mode) where mode = MS_SINGLE or MS_MULTILE > > 4) use getNumResult() and getResult(index) to fetch results. > > > > I think this is equivalent to ITEMQUERY and ITEMNQUERY > > > > Dan, can you confirm this for us? > > > > -Steve W. > > > > Stefano Bonnin wrote: > > > > > > Hi, > > > > > > I have just looked at this examples: > > > > > > http://maps.dnr.state.mn.us/mapserver_demos/tests/itemquery/test.html > > > > > > they use mapserver cgi functionality. > > > > > > ITEMQUERY and ITEMNQUERY are the right parameters for me. I think. > > > > > > What do you think about this way? > > > In my application I use Mapscript but only for this query I could use this > > > method. > > > > > > Stefano B. > > > > > > ----- Original Message ----- > > > From: "Stephen Woodbridge" > > > To: "Stefano Bonnin" > > > Cc: > > > Sent: Friday, April 26, 2002 2:10 PM > > > Subject: Re: [mapserver-users] Street Searching > > > > > > > Stefano, > > > > > > > > I wrote a separate CGI program to do this. You could write it in C or > > > > Perl or whatever. It does the address lookup by scanning the approprate > > > > shape files and when it has a result it sends a client redirect to the > > > > browser to get it to load the map with the Lat/Long result for the > > > > search results. > > > > > > > > I think you will find this much easier to do if you think about doing it > > > > outside of mapserver/mapscript and only send the final result to get > > > > mapserver to display the answer. > > > > > > > > -Steve W. > > > > > > > > Stefano Bonnin wrote: > > > > > > > > > > Hi, > > > > > > > > > > I have to develop a Street Searching function where > > > > > > > > > > the user can insert City and Street ( and number) and the application > > > must > > > > > display the map centered on this street. > > > > > > > > > > How can I do that with mapserver? > > > > > Can you give me an Hint in order to do this. > > > > > > > > > > I read the PHP Map/documentation but I did't find any query of this > > > type. > > > > > My personal solution is the following: > > > > > > > > > > with a PHP application I get the user input (Street and City) and I > > > query to > > > > > the database in order to find the object ID, then, I "say" to mapserver > > > to > > > > > create a map with this object .... > > > > > > > > > > Someone can say me if this is a possible solution or if there are a more > > > > > simple solution? > > > > > > > > > > Thanks. > > > > > > > > > > Stefano B. > > > > > > > > > > --- > > > > > Outgoing mail is certified Virus Free. (FLASHH!) > > > > > Checked by AVG anti-virus system (http://www.grisoft.com). > > > > > Version: 6.0.350 / Virus Database: 196 - Release Date: 17/04/02 > > > > > > --- > > > Outgoing mail is certified Virus Free. (FLASHH!) > > > Checked by AVG anti-virus system (http://www.grisoft.com). > > > Version: 6.0.350 / Virus Database: 196 - Release Date: 17/04/02 From kenboss at dilbert.dnr.state.mn.us Fri Apr 26 11:53:03 2002 From: kenboss at dilbert.dnr.state.mn.us (kenboss) Date: Fri, 26 Apr 2002 13:53:03 -0500 (CDT) Subject: [mapserver-users] queryByAttribute() Message-ID: <200204261853.g3QIr3G12166@philbert.dnr.state.mn.us> Steve's point about setting the map extent for the area you want to search is a valid and useful one. For the actual querying, try something like: $layer->{status} = $mapscript::MS_ON; # if it's not on already $class = new classObj($layer); # if you don't have one already $layer->{template} = $template; # if you don't have one (or a class template) already $layer->{filteritem} = "SOMEITEM"; $layer->setFilter("\"$var\""); # Assuming you're matching on a string $rv = $layer->queryByAttributes($map, $mapscript::MS_MULTIPLE); # or MS_SINGLE $rv == $mapscript::MS_SUCCESS or warn "No match found"; then get your results like: for ($i=0; $i<$layer->{resultcache}->{numresults}; $i++) { $result = $layer->getResult($i); ... (do something with the result) } See also: http://mapserver.gis.umn.edu/wilma/mapserver-users/0203/msg00413.html for some hints on how to use queryByAttributes with logical expressions. --Ken Boss > OK, does anyone know how queryByAttribute() is supposed to be used? > > I put my guess below, but I haven't tried it, and Stefano has been > trying to get an answer on this for a few days without much success. > > -Steve > > Daniel Morissette wrote: > > > > Steve, > > > > I believe what you suggest should work in MapScript, but I never used > > queryByAttribute() myself so I can't confirm anything. About the > > ITEMQUERY and ITEMNQUERY CGI modes, I never used them directly so I > > can't tell you much about them either > > > > Seems that you touched an area of MapServer that I'm less familiar > > with... you may have more luck asking Steve Lime, or by Emailing the > > list directly... :) > > > > Daniel > > > > Stephen Woodbridge wrote: > > > > > > Stefano, > > > > > > This might work for you, but I think (but I am not sure) that you can do > > > the same thing in Mapscript by: > > > > > > 1) set the extents to the area you want to search > > > 1a) make sure you have TEMPLATE defined for the layers you want to query > > > 2) set the filteritem to the query you want to perform > > > (this is the step I am guessing, otherwise I'm not sure how > > > you would specify what the queryByAttribute query would be.) > > > 3) call queryByAtrribute(mode) where mode = MS_SINGLE or MS_MULTILE > > > 4) use getNumResult() and getResult(index) to fetch results. > > > > > > I think this is equivalent to ITEMQUERY and ITEMNQUERY > > > > > > Dan, can you confirm this for us? > > > > > > -Steve W. > > > > > > Stefano Bonnin wrote: > > > > > > > > Hi, > > > > > > > > I have just looked at this examples: > > > > > > > > http://maps.dnr.state.mn.us/mapserver_demos/tests/itemquery/test.html > > > > > > > > they use mapserver cgi functionality. > > > > > > > > ITEMQUERY and ITEMNQUERY are the right parameters for me. I think. > > > > > > > > What do you think about this way? > > > > In my application I use Mapscript but only for this query I could use this > > > > method. > > > > > > > > Stefano B. > > > > > > > > ----- Original Message ----- > > > > From: "Stephen Woodbridge" > > > > To: "Stefano Bonnin" > > > > Cc: > > > > Sent: Friday, April 26, 2002 2:10 PM > > > > Subject: Re: [mapserver-users] Street Searching > > > > > > > > > Stefano, > > > > > > > > > > I wrote a separate CGI program to do this. You could write it in C or > > > > > Perl or whatever. It does the address lookup by scanning the approprate > > > > > shape files and when it has a result it sends a client redirect to the > > > > > browser to get it to load the map with the Lat/Long result for the > > > > > search results. > > > > > > > > > > I think you will find this much easier to do if you think about doing it > > > > > outside of mapserver/mapscript and only send the final result to get > > > > > mapserver to display the answer. > > > > > > > > > > -Steve W. > > > > > > > > > > Stefano Bonnin wrote: > > > > > > > > > > > > Hi, > > > > > > > > > > > > I have to develop a Street Searching function where > > > > > > > > > > > > the user can insert City and Street ( and number) and the application > > > > must > > > > > > display the map centered on this street. > > > > > > > > > > > > How can I do that with mapserver? > > > > > > Can you give me an Hint in order to do this. > > > > > > > > > > > > I read the PHP Map/documentation but I did't find any query of this > > > > type. > > > > > > My personal solution is the following: > > > > > > > > > > > > with a PHP application I get the user input (Street and City) and I > > > > query to > > > > > > the database in order to find the object ID, then, I "say" to mapserver > > > > to > > > > > > create a map with this object .... > > > > > > > > > > > > Someone can say me if this is a possible solution or if there are a more > > > > > > simple solution? > > > > > > > > > > > > Thanks. > > > > > > > > > > > > Stefano B. > > > > > > > > > > > > --- > > > > > > Outgoing mail is certified Virus Free. (FLASHH!) > > > > > > Checked by AVG anti-virus system (http://www.grisoft.com). > > > > > > Version: 6.0.350 / Virus Database: 196 - Release Date: 17/04/02 > > > > > > > > --- > > > > Outgoing mail is certified Virus Free. (FLASHH!) > > > > Checked by AVG anti-virus system (http://www.grisoft.com). > > > > Version: 6.0.350 / Virus Database: 196 - Release Date: 17/04/02 From lfilak at medinaco.org Fri Apr 26 12:17:22 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Fri, 26 Apr 2002 15:17:22 -0400 Subject: [mapserver-users] background map image Message-ID: <200204261908.g3QJ89Q15033@yogi.medinaco.net> If it is actually an image layer you should be able to use the offsite member/parameter to have mapserver merge the layers and assign the transparent color accordingly. Lowell F. The following message was sent by Joe Bussell on Fri, 26 Apr 2002 09:51:18 -0700. > In an attempt to speed up map rendering for our site we opted to build a > set of tiles for the static elements of the data (streets, cities, > water) which would serve as background images for more frequently > updated data. The dhtml route of creating a transparent PNG file to > overlay on top of the map fails for Netscape4.* which apparently has > poor support for transparent PNG files. > > The next choice would be to use other means to combine the images before > they leave the server. Is there a method for creating a map with > another image as its background using mapserver? Would this be better > accomplished using GD.pm? > > Joe Bussell > On Time Systems From pkishor at GeoAnalytics.com Fri Apr 26 12:20:03 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Fri, 26 Apr 2002 14:20:03 -0500 Subject: [mapserver-users] passing arrays betn. php and javascript Message-ID: you html code looks like so... (sorry, I just ate baklava at Husnu's) your php code automatically gets $arLayers with the checked layers as its elements that you can loop through. have fun. pk/ > -----Original Message----- > From: Pushkar Pradhan [mailto:pushkar at ERC.MsState.Edu] > Sent: Friday, April 26, 2002 12:02 PM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] passing arrays betn. php and javascript > > > Hi, > In my maps I want to do the foll.: > The user should be able to select the layers to display and change the > order of the drawing. > I think the fastest way is to do this using javascript, since > it runs on > client side it will be fast. > So is it possible to pass an array containing the names of > the layers from > php to javascript, after changing the element positions in JS > have it back > in php? Some code snippets would also be appreciated. Thanks, > > -Pushkar S. Pradhan > From m.spring at gmx.de Fri Apr 26 12:47:50 2002 From: m.spring at gmx.de (Markus Spring) Date: 26 Apr 2002 21:47:50 +0200 Subject: [mapserver-users] Street Searching In-Reply-To: References: Message-ID: That's exactly what I did for the digital regional atlas munich. I have all my adresses with their x/y coordinates as well es the streets in a mysql table which I query (staged: first street, then address) and then I return a link to the map. For performance reason I do this in mod_perl. Markus From pushkar at ERC.MsState.Edu Fri Apr 26 12:51:08 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Fri, 26 Apr 2002 14:51:08 -0500 (CDT) Subject: [mapserver-users] passing arrays betn. php and javascript (fwd) Message-ID: Puneet, Steve Thanks for your responses. I actually achieved the desired in php itself: I've a checkbox asking whether the user wants to change the drawing order of layers, if it's checked it redirects them to a new page with the chosen layers, the user plays around with this array (arranging elements) and when they submit they are redirected to the original page, then I plan to do setlayers....() etc. I suppose lot of people must have done this, actually I have to do this since one of our client wanted to specify his own drawing order? > you html code looks like so... > > > > > > > > (sorry, I just ate baklava at Husnu's) > > > your php code automatically gets $arLayers with the checked layers as its > elements that you can loop through. > > have fun. > > pk/ > > > > > -----Original Message----- > > From: Pushkar Pradhan [mailto:pushkar at ERC.MsState.Edu] > > Sent: Friday, April 26, 2002 12:02 PM > > To: mapserver-users at lists.gis.umn.edu > > Subject: [mapserver-users] passing arrays betn. php and javascript > > > > > > Hi, > > In my maps I want to do the foll.: > > The user should be able to select the layers to display and change the > > order of the drawing. > > I think the fastest way is to do this using javascript, since > > it runs on > > client side it will be fast. > > So is it possible to pass an array containing the names of > > the layers from > > php to javascript, after changing the element positions in JS > > have it back > > in php? Some code snippets would also be appreciated. Thanks, > > > > -Pushkar S. Pradhan > > > -Pushkar S. Pradhan From keon at nacse.org Fri Apr 26 16:33:59 2002 From: keon at nacse.org (Dylan Keon) Date: Fri, 26 Apr 2002 16:33:59 -0700 Subject: [mapserver-users] can't display TIFFs References: Message-ID: <001301c1ed7a$d75ace10$4622c180@widberry> I fixed the problem. Thanks to Frank, Pushkar, and Tyler for their help. gdalinfo and my server log both indicated a segmentation fault when I tried to display tiffs in my application. The problem was that gdal was not functioning correctly...either libtiff or libgeotiff was not behaving within gdal. When I first implemented gdal I tried compiling with the latest versions of libtiff and libgeotiff (not using gdal's internal support). I couldn't get it to accept that version of libtiff when compiling, so I configured gdal with: --with-libtiff=internal --with-libgeotiff=/usr/local/src/libgeotiff-1.1.4 This gave no errors during compilation, but did not allow gdal to function correctly (resulting in the segmentation errors I've been getting). Frank recommended compiling gdal with internal libtiff AND internal libgeotiff support, which is the safest approach. However, by that time I had already tried once again to compile with both newer versions... --with-libtiff=/usr/local/src/tiff-v3.5.7 --with-libgeotiff=/usr/local/src/libgeotiff-1.1.4 ...and this is now working fine! I can display rasters to my heart's content :-) I don't know why gdal accepted these configure parameters this particular time, after I had tried seemingly hundreds of other times (ok, maybe 10 times :-) The only thing I did differently was change the order of options in my ./configure statement, but I don't know why that would make any difference. Anyway, thanks to all for the help. I've been having a lot of fun experimenting with OFFSITE. --Dylan ------------------------------------------------- Original message: > > I can't seem to get TIFFs to display using MapServer...I get either a blank > > page or a "server not found" error. I'm using a modified version of the > > Europe PHP example (nothing fancy), and I can display shapfiles just fine, > > unless the raster layer is included in the mapfile. If I comment out that > > raster layer, everything displays fine once again. > > > > I've tried three different TIFFs, with no luck. All TIFFs are in the > > correct projection & datum, are 8 bit images, and display fine with the > > associated shapefiles in other applications. The TIFFs were created using > > the GRIDIMAGE command in ArcInfo, and I renamed the .tfw extension to .wld > > (tried it both ways, actually). And it's not a permissions problem. I've > > tried both colormap and grayscale images, with no difference. I followed > > the "Raster HOWTO" instructions, and the "Converting ArcINFO Grids to > > Mapserver TIFFs" instructions in the Wiki, but neither helped. Am I missing > > a format from GDAL or something? (see below). I compiled > > Mapserver --without-tiff. > > > > Thanks for any help, not sure what to try next. > > > > --Dylan > > > > > > ============= > > machine stats > > ============= > > SuSE 7.3 Linux (on 550MHz PIII box) > > mapserver 3.5 apache 1.3.22 > > php 4.0.6 gdal 1.1.7 > > gd 1.8.4 libtiff 3.5.7 > > libgeotiff 1.1.4 > > > > ====================== > > output from mapserv -v > > ====================== > > > ./mapserv -v > > MapServer version 3.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ > > SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS > > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > > > ================================= > > output from gdal-config --formats > > ================================= > > > ./gdal-config --formats > > gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 bsb xpm sdts raw dted mem > > jdem envisat elas fit vrt usgsdem gif jpeg png grass > > > > ============== > > mapfile sample > > ============== > > LAYER > > NAME testdrg > > TYPE raster > > DATA testdrg.tif > > STATUS on > > END > > > > ========================= > > ArcInfo GRIDIMAGE command > > ========================= > > Grid: GRIDIMAGE DRG1232 drg1232.clr testdrg TIFF NONE > > (I've also used the COMPRESSION option, no effect on the problem) > > > > ==================== > > output from tiffinfo > > ==================== > > > tiffinfo testdrg.tif > > testdrg.tif: Warning, unknown field with tag 33550 (0x830e) ignored. > > testdrg.tif: Warning, unknown field with tag 33922 (0x8482) ignored. > > TIFF Directory at offset 0x8 > > Subfile Type: (0 = 0x0) > > Image Width: 4433 Image Length: 5863 > > Resolution: 0.124, 0.124 (unitless) > > Bits/Sample: 8 > > Compression Scheme: None > > Photometric Interpretation: palette color (RGB from colormap) > > Software: "Arc/Info" > > Samples/Pixel: 1 > > Rows/Strip: 2 > > Planar Configuration: single image plane > > Color Map: (present) From kevinflanders at attbi.com Fri Apr 26 17:49:44 2002 From: kevinflanders at attbi.com (Kevin Flanders) Date: Fri, 26 Apr 2002 20:49:44 -0400 Subject: [mapserver-users] zoom to extent and zoom previous Message-ID: I am using the Rosa applet....and hoping to add "zoom to extent" and "zoom to previous" buttons, any ideas our experience out there? Kevin From pkishor at GeoAnalytics.com Sat Apr 27 08:52:40 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Sat, 27 Apr 2002 10:52:40 -0500 Subject: [mapserver-users] Perl/mapscript error In-Reply-To: Message-ID: I rebuilt Mapserver and mapsript. The stock examples (shpinfo.pl and dump.pl) work fine. But then... I am trying out the simplest of code (after sdl's mapquakes.pl)... 1: my $rootdir = "/Users/pkishor/Sites/ms"; 2: my $imgdir = "/$rootdir/tmp/"; 3: my $imgurl = "/~pkishor/ms/tmp/"; 4: my $map = "/$rootdir/map/my.map"; 5: my $imgid = $$ . time() . ".png"; 6: my $mapobj = new mapObj("$map"); 7: my $img = $mapobj->prepareImage(); 8: mapscript::msSaveImage($img, $imgdir . $imgid, $mapobj->{imagetype}, $mapobj->{transparent}, $mapobj->{interlace}, $mapobj->{imagequality}); I get the following error... obviously prepareImage is failing because $mapobj can't be created on line 6 to begin with. What is causing the following "Uncaught exception..." [Sat Apr 27 10:18:27 2002] [error] Uncaught exception from user code: Can't call method "prepareImage" on an undefined value at /Users/pkishor/Sites/palatine/perl/index.pl line 16. Apache::ROOT::_7epkishor::palatine::perl::index_2epl::handler('Apache=SCALAR( 0xcccd0)') called at /System/Library/Perl/darwin/Apache/Registry.pm line 143 eval {...} called at /System/Library/Perl/darwin/Apache/Registry.pm line 143 Apache::Registry::handler('Apache=SCALAR(0xcccd0)') called at /dev/null line 0 eval {...} called at /dev/null line 0 [Sat Apr 27 10:34:49 2002] [error] Can't call method "prepareImage" on an undefined value at /Users/pkishor/Sites/palatine/perl/index.pl line 16. From rburghol at vt.edu Sat Apr 27 10:46:25 2002 From: rburghol at vt.edu (Robert Burgholzer) Date: Sat, 27 Apr 2002 13:46:25 -0400 Subject: [mapserver-users] queryByAttribute() References: <200204261853.g3QIr3G12166@philbert.dnr.state.mn.us> Message-ID: <3CCAE3F0.98ADD948@vt.edu> > then get your results like: > > for ($i=0; $i<$layer->{resultcache}->{numresults}; $i++) { > $result = $layer->getResult($i); > ... (do something with the result) > } OK, I been lurking on this question, nd I really want to know some of the secrets too. I got as far as getting the result as indicated below (although I am using PHP mapscript), but it is the "do something with result" part which has me stumped. I can not get any action out of any of the variables listed in the php mapscript documentation for result, and trying to fetch each of the results by using $thisresult->next() gives me an "Fatal error: Call to undefined function: next()" error. basically, I am trying to iterate through each shape in a given layer, and do such things as query for adjacent neighbors, in the fashion of a neighborhood function. Any help would be appreciated. By the way, my query .numresult gives me the number of shapes int eh layer, which makes me think things are going OK till then. Code is as follows: $lq = $thislayer->queryByAttributes(MS_MULTIPLE); $ni = $thislayer->getNumResults(); $res = $thislayer->getResult($lq); $rsi = $res->numresults; $rti = $res->numquerylayers; $restr = $res->next(); -- Robert Burgholzer al?go?rithm n. A step-by-step problem-solving procedure, especially an established, recursive computational procedure for solving a problem in a finite number of steps. Invented by Al Gore. rburghol at vt.edu http://www.soulswimmer.net/ From woodbri at swoodbridge.com Sat Apr 27 13:18:15 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sat, 27 Apr 2002 16:18:15 -0400 Subject: [mapserver-users] Perl Mapscript -- CALL FOR EXAMPLES Message-ID: <3CCB0787.2BDB2354@swoodbridge.com> I has come to my attention because a feww people have asked me off list (and since I went looking and could not find any good examples) that we have a lack of examples Perl Mapscript! SOoooo, this is a CALL FOR EXAMPLES. The goal here is to get a broad set of samples that will help people getting started with Perl/Mapscript have a resource to look at and get them jump started. I would like anyone that has working examples of Perl/Mapscript, that would like to post them as examples for the fame, fortune and maybe infamy :) to: 1) post them on wiki at http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptExamples35 with a description, your contact info, a link to a working version if it is available somewhere. -- OR -- 2) email the same to me and I will be happy to add them to wiki if I don't get swampped with them :) This would be a good place for all levels of scripts from simple tools to full blown user interfaces like GMap75 is for PHP, examples of serving maps, map navigation, working with rasters, dynamic adding of points, lines, gps data, whatever or working with shapefiles, or database integration. Show us what you have been doing! If you have zips or tarballs I will try to get them loaded on mapserver also, provided sysadmins will support it. PLEASE DO NOT SEND me stuff that you do not have a right to post or offer to the public in general. Many thanks, -Steve Woodbridge From pkishor at GeoAnalytics.com Sat Apr 27 18:45:34 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Sat, 27 Apr 2002 20:45:34 -0500 Subject: [mapserver-users] Re: Perl/mapscript error In-Reply-To: Message-ID: ok... I have spent a good part of today battling this, and have discovered the following... one of the reasons I am getting these errors because I have -w switch on my shebang line. After much finagling, I can get the image to draw, but with the -w switch I get the following error as well -- (in cleanup) Not a HASH reference at /Library/Perl/darwin/mapscript.pm line 1468. that line in mapscript.pm is the one that is trying to clean up... and failing. Specifically, sub DESTROY { my $self = tied(%{$_[0]}); delete $ITERATORS{$self}; if (exists $OWNER{$self}) { mapscriptc::delete_mapObj($self); delete $OWNER{$self}; } } perhaps Lowell or Steves (L* and W*) shed some light on this. Many thanks, pk/ On Saturday, April 27, 2002, at 01:58 PM, Puneet Kishor wrote: > even more... > > I figured that "bus error" is occurring because Perl is trying to clean > up something that doesn't exist. This is (confirmed) by the following > message I get... > > (in cleanup) Uncaught exception from user code: > Not a HASH reference at /Library/Perl/darwin/mapscript.pm line > 1468. > mapObj::DESTROY('mapObj=SCALAR(0x6530)') called at ./index.pl > line 0 > eval {...} called at ./index.pl line 0 > > any ideas anyone? > > pk/ > > > On Saturday, April 27, 2002, at 11:37 AM, Puneet Kishor wrote: > >> further on this... I simplified it even more and ran it from the >> command line... now the test image is created, but with 0 bytes. I get >> the following >> >> % perl index.pl >> Bus error >> >> >> >> >> what's going on? >> >> tia. >> >> pk >> >> >> On Saturday, April 27, 2002, at 10:52 AM, Puneet Kishor wrote: >> >>> I rebuilt Mapserver and mapsript. The stock examples (shpinfo.pl and >>> dump.pl) work fine. But then... >>> >>> I am trying out the simplest of code (after sdl's mapquakes.pl)... >>> >>> 1: my $rootdir = "/Users/pkishor/Sites/ms"; >>> 2: my $imgdir = "/$rootdir/tmp/"; >>> 3: my $imgurl = "/~pkishor/ms/tmp/"; >>> 4: my $map = "/$rootdir/map/my.map"; >>> 5: my $imgid = $$ . time() . ".png"; >>> 6: my $mapobj = new mapObj("$map"); >>> 7: my $img = $mapobj->prepareImage(); >>> 8: mapscript::msSaveImage($img, >>> $imgdir . $imgid, >>> $mapobj->{imagetype}, >>> $mapobj->{transparent}, >>> $mapobj->{interlace}, >>> $mapobj->{imagequality}); >>> >>> I get the following error... obviously prepareImage is failing >>> because $mapobj can't be created on line 6 to begin with. What is >>> causing the following "Uncaught exception..." >>> >>> >>> >>> [Sat Apr 27 10:18:27 2002] [error] Uncaught exception from user code: >>> Can't call method "prepareImage" on an undefined value at >>> /Users/pkishor/Sites/palatine/perl/index.pl line 16. >>> Apache::ROOT::_7epkishor::palatine::perl::index_2epl::handler('Apache= >>> SCALAR( >>> 0xcccd0)') called at /System/Library/Perl/darwin/Apache/Registry.pm >>> line 143 >>> eval {...} called at >>> /System/Library/Perl/darwin/Apache/Registry.pm line 143 >>> Apache::Registry::handler('Apache=SCALAR(0xcccd0)') called at >>> /dev/null line 0 >>> eval {...} called at /dev/null line 0 >>> >>> [Sat Apr 27 10:34:49 2002] [error] Can't call method "prepareImage" >>> on an undefined value at /Users/pkishor/Sites/palatine/perl/index.pl >>> line 16. >>> >> > From rich at GreenwoodMap.com Sun Apr 28 08:22:05 2002 From: rich at GreenwoodMap.com (Richard Greenwood) Date: Sun, 28 Apr 2002 09:22:05 -0600 Subject: [mapserver-users] Re: MapServer Meeting Message-ID: <5.1.0.14.0.20020428092201.00b755d8@mail.greenwoodmap.com> Steve said "Wouldn't the GRASS conference be a nice one to piggyback onto". Actually the GRASS conference in Italy plans to have at least some mapserver content. The conference is called "Open source GIS - GRASS users conference 2002" and the conference web site is: http://www.ing.unitn.it/~grass/ And I first heard mention of the conference on this list, I think in a post by Paul Ramsey. I submitted an abstract to do a mapserver presentation. Is anyone else going? Rich From giorgio at nauta.it Sun Apr 28 08:24:08 2002 From: giorgio at nauta.it (Giorgio Volpe) Date: Sun, 28 Apr 2002 17:24:08 +0200 Subject: [mapserver-users] Re: Perl/mapscript error References: Message-ID: <3CCC1418.2F49EBC1@nauta.it> Puneet Kishor wrote: > > ok... I have spent a good part of today battling this, and have > discovered the following... > > one of the reasons I am getting these errors because I have -w switch on > my shebang line. After much finagling, I can get the image to draw, but > with the -w switch I get the following error as well -- > > (in cleanup) Not a HASH reference at /Library/Perl/darwin/mapscript.pm > line 1468. > > that line in mapscript.pm is the one that is trying to clean up... and > failing. Specifically, > > sub DESTROY { > my $self = tied(%{$_[0]}); > delete $ITERATORS{$self}; > if (exists $OWNER{$self}) { > mapscriptc::delete_mapObj($self); > delete $OWNER{$self}; > } > } I've the same problem! It is not a warning but a fatal error for perl. The problem, i guess, is related to the use of tied hash to support mapscript objects ... I've added a PRINT ... sub DESTROY { print STDERR "!!!! Destroing $_[0] ...\n"; my $self = tied(%{$_[0]}); ... The DESTRUCTOR is called two times! The first one with $_[0] that is a reference to an hash, the second to a scalar so function "tied" raises the error! !!!! Destroing layerObj=HASH(0x83e925c) ... !!!! Destroing layerObj=SCALAR(0x83d8ef4) ... Empirically i've seen that, if I undef the variable containing the reference to the object before returning from the sub where i use it, than the error disappears ... (also if the two call to the DESTRUCTOR are always there, but probably the undef value is passed) We need a PERL guru ...! -- Giorgio ----------------------------------------- From pkishor at GeoAnalytics.com Sun Apr 28 08:29:51 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Sun, 28 Apr 2002 10:29:51 -0500 Subject: Bus error -- Re: [mapserver-users] Re: Perl/mapscript error In-Reply-To: <3CCC134B.42C2B15F@nauta.it> Message-ID: thanks for analysis Giorgio... I will try out some of your shenanigans detailed here... since it has not been reported exhaustively, I guess there is something about our implementation that is bringing this out. My guess is so... if there is an error in the Perl script (because of our own programming mistake), the script goes kablooie and the map object vanishes without a warning. However, the coded garbage collector tries to clean it up, except it doesn't find anything. So, it croaks. > > We need a PERL guru ...! I think we already have a few on this list, probably starting with Steve Lime at the very top considering he wrote most of this wizardry to begin with... I am sure between him and Steve W and Lowell and Paul Ramsey, etc., we will be able to squash this. pk/ On Sunday, April 28, 2002, at 10:20 AM, Giorgio Volpe wrote: > Puneet Kishor wrote: >> >> ok... I have spent a good part of today battling this, and have >> discovered the following... >> >> one of the reasons I am getting these errors because I have -w switch >> on >> my shebang line. After much finagling, I can get the image to draw, but >> with the -w switch I get the following error as well -- >> >> (in cleanup) Not a HASH reference at /Library/Perl/darwin/mapscript.pm >> line 1468. >> >> that line in mapscript.pm is the one that is trying to clean up... and >> failing. Specifically, >> >> sub DESTROY { >> my $self = tied(%{$_[0]}); >> delete $ITERATORS{$self}; >> if (exists $OWNER{$self}) { >> mapscriptc::delete_mapObj($self); >> delete $OWNER{$self}; >> } >> } > > I've the same problem! > It is not a warning but a fatal error for perl. > > The problem, i guess, is related to the use of tied hash to support > mapscript objects ... > > I've added a PRINT ... > > sub DESTROY { > print STDERR "!!!! Destroing $_[0] ...\n"; > my $self = tied(%{$_[0]}); > ... > > The DESTRUCTOR is called two times! The first one with $_[0] that is a > reference to an hash, the second to a scalar so function "tied" raises > the error! > > !!!! Destroing layerObj=HASH(0x83e925c) ... > !!!! Destroing layerObj=SCALAR(0x83d8ef4) ... > > Empirically i've seen that, if I undef the variable containing the > reference to the object before returning from the sub where i use it, > than the error disappears ... (also if the two call to the DESTRUCTOR > are always there, but probably the undef value is passed) > > > We need a PERL guru ...! > > -- > > Giorgio > > ----------------------------------------- From rburghol at vt.edu Sun Apr 28 11:03:35 2002 From: rburghol at vt.edu (Robert Burgholzer) Date: Sun, 28 Apr 2002 14:03:35 -0400 Subject: [mapserver-users] getLayer dies without error, php mapscript References: <3CCC1418.2F49EBC1@nauta.it> Message-ID: <3CCC3976.4980BF83@vt.edu> Hello, I am trying to retrieve and work on a shape from a layer (see code below and map files snippet). All works well with my map, including showing the map, and verifying that I can grab layers objects, etc. When I try to retrieve a shape from a layer though, my script dies without warning. I know that the layer 'microhup' exists in my map, and I know that it has 125 data lines, which I assume are shapes (microhup is an esri polygon shape file, with all of its subordinate files, .dbf, .shx, etc.), and I also know that the column "ID" exists in this file. In the code below, I have queried for record 1 (see getShape(-1,1), it is an untiled layer), to see if I can view its props. Can anyone tell me what I am missing, or point me to something which might explain teh process of retrieving individual shapes from a layer? $map = ms_newMapObj($map_path.$map_file); $lname = "microhup"; $thislayer = $map->getLayerByName($lname); $lci = $thislayer->classitem; $data = $thislayer->data; $res = $thislayer->getShape(-1,1); $reso = $res->type; $resi = $res->values["ID"]; print("$reso: $resi,"); $res->free(); <... edn php mapscript snippet> LAYER NAME microhup TYPE POLYGON STATUS ON DATA microhup FILTER "1 = 1" TOLERANCE 10 CLASS TEMPLATE void COLOR -1 -1 -1 OUTLINECOLOR 200 200 200 #EXPRESSION ([ID] <= 20) END END <... end map file snip> -- Robert Burgholzer al?go?rithm n. A step-by-step problem-solving procedure, especially an established, recursive computational procedure for solving a problem in a finite number of steps. Invented by Al Gore. rburghol at vt.edu http://www.soulswimmer.net/ From johnhagstrand at interageresearch.com Sun Apr 28 21:08:55 2002 From: johnhagstrand at interageresearch.com (John Hagstrand) Date: Sun, 28 Apr 2002 23:08:55 -0500 Subject: [mapserver-users] ECW Message-ID: <4.3.2.7.0.20020428230331.03591448@pop.registeredsite.com> Hello, How do I use an ECW file? Here is what I'm doing: LAYER NAME aerial TYPE RASTER STATUS OFF DATA aerial00.ecw END # aerial I get an error message: msDrawRaster(): Image handling error. Unrecognized or unsupported image format I am using the binary built with the gdal option. Thanks, John ------------------------------------------------- John Hagstrand Interage Research, Inc. 847 838 5371 Software Development Consulting for Internet Archive Retrieval We help archives make knowledge accessible, useful, and relevant for everyone. http://www.interageresearch.com From morissette at dmsolutions.ca Mon Apr 29 05:22:12 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 29 Apr 2002 08:22:12 -0400 Subject: [mapserver-users] getLayer dies without error, php mapscript References: <3CCC1418.2F49EBC1@nauta.it> <3CCC3976.4980BF83@vt.edu> Message-ID: <3CCD3AF4.40CE30C8@dmsolutions.ca> Robert, I tried your script and couldn't produce a crash. All I got was an "invalid shape id" error from the getShape() call which was due to the fact that the layer was not opened before the call to getShape()... I added a call to $thislayer->open($map->shapepath); before the getShape() call, and the script works fine for me. I tested this on Linux with the MapServer CVS source from end of last week. Which version of MapServer are you using and on which OS? Daniel Robert Burgholzer wrote: > > Hello, > I am trying to retrieve and work on a shape from a layer (see code below > and map files snippet). All works well with my map, including showing > the map, and verifying that I can grab layers objects, etc. When I try > to retrieve a shape from a layer though, my script dies without warning. > I know that the layer 'microhup' exists in my map, and I know that it > has 125 data lines, which I assume are shapes (microhup is an esri > polygon shape file, with all of its subordinate files, .dbf, .shx, > etc.), and I also know that the column "ID" exists in this file. In the > code below, I have queried for record 1 (see getShape(-1,1), it is an > untiled layer), to see if I can view its props. Can anyone tell me what > I am missing, or point me to something which might explain teh process > of retrieving individual shapes from a layer? > > > $map = ms_newMapObj($map_path.$map_file); > $lname = "microhup"; > $thislayer = $map->getLayerByName($lname); > $lci = $thislayer->classitem; > $data = $thislayer->data; > $res = $thislayer->getShape(-1,1); > $reso = $res->type; > $resi = $res->values["ID"]; > print("$reso: $resi,"); > $res->free(); > <... edn php mapscript snippet> > > LAYER > NAME microhup > TYPE POLYGON > STATUS ON > DATA microhup > FILTER "1 = 1" > TOLERANCE 10 > CLASS > TEMPLATE void > COLOR -1 -1 -1 > OUTLINECOLOR 200 200 200 > #EXPRESSION ([ID] <= 20) > END > > END > <... end map file snip> > > -- > Robert Burgholzer > al?go?rithm n. > A step-by-step problem-solving procedure, especially an > established, recursive computational > procedure for solving a problem in a finite number of steps. > Invented by Al Gore. > rburghol at vt.edu > http://www.soulswimmer.net/ From Rich at GreenwoodMap.com Mon Apr 29 05:50:33 2002 From: Rich at GreenwoodMap.com (Richard Greenwood) Date: Mon, 29 Apr 2002 06:50:33 -0600 Subject: [mapserver-users] ECW In-Reply-To: <4.3.2.7.0.20020428230331.03591448@pop.registeredsite.com> Message-ID: <5.1.0.14.0.20020429064816.00b11338@mail.GreenwoodMap.com> I don't think that the binary with the GDAL option includes ECW support. I have a binary at www.greenwoodmap.com/mapserver that you are welcome to use. The zip file also includes some ER Mapper dll's that should be placed in your \winnt\system32 directory. Rich At 11:08 PM 4/28/2002 -0500, you wrote: >Hello, > >How do I use an ECW file? Here is what I'm doing: > >LAYER > NAME aerial > TYPE RASTER > STATUS OFF > DATA aerial00.ecw >END # aerial > >I get an error message: >msDrawRaster(): Image handling error. Unrecognized or unsupported image format > >I am using the binary built with the gdal option. > >Thanks, >John > >------------------------------------------------- >John Hagstrand >Interage Research, Inc. >847 838 5371 >Software Development Consulting for Internet Archive Retrieval >We help archives make knowledge accessible, useful, and relevant for everyone. >http://www.interageresearch.com > > Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From kenboss at dilbert.dnr.state.mn.us Mon Apr 29 08:23:17 2002 From: kenboss at dilbert.dnr.state.mn.us (kenboss) Date: Mon, 29 Apr 2002 10:23:17 -0500 (CDT) Subject: [mapserver-users] queryByAttribute() Message-ID: <200204291523.g3TFNHG16364@philbert.dnr.state.mn.us> I do these things in Perl, but I think for the most part the PHP setup parallels the Perl setup. That said, it looks to me like the PHP docs are missing a ResultCacheObj Class, which belongs to a layer and holds the results of a query on that layer. Also note that queryByAttributes (or any of the queryBy methods for that matter) returns success or failure, not an index variable. So generally, in Perl, you might say something like: $return_value = $thislayer->queryByAttributes($map, $mapscript::MS_MULTIPLE); if ($return_value == $mapscript::MS_SUCCESS) { for ($i=0; $i<$thislayer->{resultcache}->{numresults); $i++) { # resultcache is member of layer, numresults is member of resultcache $result = $thislayer->getResult($i); $rv = $thislayer->getShape($shape, $result->{tileindex}, $result->{shapeindex}); # Now do something with the shape... } } else { warn "Nothing Found."; } Hope this helps, --Ken Boss > > then get your results like: > > > > for ($i=0; $i<$layer->{resultcache}->{numresults}; $i++) { > > $result = $layer->getResult($i); > > ... (do something with the result) > > } > > OK, I been lurking on this question, nd I really want to know some of the secrets too. I got as far as > getting the result as indicated below (although I am using PHP mapscript), but it is the "do something > with result" part which has me stumped. I can not get any action out of any of the variables listed in > the php mapscript documentation for result, and trying to fetch each of the results by using > $thisresult->next() gives me an "Fatal error: Call to undefined function: next()" error. > > basically, I am trying to iterate through each shape in a given layer, and do such things as query for > adjacent neighbors, in the fashion of a neighborhood function. Any help would be appreciated. By the way, > my query .numresult gives me the number of shapes int eh layer, which makes me think things are going OK > till then. Code is as follows: > > $lq = $thislayer->queryByAttributes(MS_MULTIPLE); > $ni = $thislayer->getNumResults(); > $res = $thislayer->getResult($lq); > $rsi = $res->numresults; > $rti = $res->numquerylayers; > $restr = $res->next(); From JasonS at cassco.org Mon Apr 29 08:33:14 2002 From: JasonS at cassco.org (Jason Spangler) Date: Mon, 29 Apr 2002 11:33:14 -0400 Subject: [mapserver-users] colored lines Message-ID: A quick question. I think I already know the answer, but here goes.... Is it possible to have a multi-colored dashed line? Such as a road that is red-black-red-black, etc.?? Thanks, Jason Spangler Cass County Information Systems 616-445-4489 jasons at cassco.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Mon Apr 29 10:23:09 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 29 Apr 2002 13:23:09 -0400 Subject: [mapserver-users] colored lines References: Message-ID: <3CCD817D.D2DCF02E@swoodbridge.com> Yes, see: http://mapserver.gis.umn.edu/wilma/mapserver-users/0112/msg00142.html From lfilak at medinaco.org Mon Apr 29 12:33:26 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Mon, 29 Apr 2002 15:33:26 -0400 Subject: [mapserver-users] Perl/mapscript error Message-ID: <200204291924.g3TJO8Q09572@yogi.medinaco.net> Could you forward a copy of your mapfile? Lowell F. The following message was sent by Puneet Kishor on Sat, 27 Apr 2002 10:52:40 -0500. > I rebuilt Mapserver and mapsript. The stock examples (shpinfo.pl and > dump.pl) work fine. But then... > > I am trying out the simplest of code (after sdl's mapquakes.pl)... > > 1: my $rootdir = "/Users/pkishor/Sites/ms"; > 2: my $imgdir = "/$rootdir/tmp/"; > 3: my $imgurl = "/~pkishor/ms/tmp/"; > 4: my $map = "/$rootdir/map/my.map"; > 5: my $imgid = $$ . time() . ".png"; > 6: my $mapobj = new mapObj("$map"); > 7: my $img = $mapobj->prepareImage(); > 8: mapscript::msSaveImage($img, > $imgdir . $imgid, > $mapobj->{imagetype}, > $mapobj->{transparent}, > $mapobj->{interlace}, > $mapobj->{imagequality}); > > I get the following error... obviously prepareImage is failing because > $mapobj can't be created on line 6 to begin with. What is causing the > following "Uncaught exception..." > > > > [Sat Apr 27 10:18:27 2002] [error] Uncaught exception from user code: > Can't call method "prepareImage" on an undefined value at > /Users/pkishor/Sites/palatine/perl/index.pl line 16. > Apache::ROOT::_7epkishor::palatine::perl::index_2epl::handler('Apache=SCALAR( > 0xcccd0)') called at /System/Library/Perl/darwin/Apache/Registry.pm line > 143 > eval {...} called at /System/Library/Perl/darwin/Apache/Registry.pm > line 143 > Apache::Registry::handler('Apache=SCALAR(0xcccd0)') called at > /dev/null line 0 > eval {...} called at /dev/null line 0 > > [Sat Apr 27 10:34:49 2002] [error] Can't call method "prepareImage" on > an undefined value at /Users/pkishor/Sites/palatine/perl/index.pl line > 16. From lfilak at medinaco.org Mon Apr 29 12:43:36 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Mon, 29 Apr 2002 15:43:36 -0400 Subject: Bus error -- Re: [mapserver-users] Re: Perl/mapscript error Message-ID: <200204291934.g3TJYIQ09694@yogi.medinaco.net> Any gurus feel free to step forward, in the mean-time I have a couple of questions: Puneet - is "(in cleanup) Not a HASH reference at /Library/Perl/darwin/mapscript.pm ine 1468." the ONLY error message in your log? Are there ANY other messages in the log around the same time (within a second or so)? Giorgio - which DESTROY subroutine did you insert your print statement into, mapObj, layerObj, classObj, ...? It looks like layerObj as opposed to mapObj where Puneet is having trouble. Lowell F. The following message was sent by Puneet Kishor on Sun, 28 Apr 2002 10:29:51 -0500. > thanks for analysis Giorgio... I will try out some of your shenanigans > detailed here... > > since it has not been reported exhaustively, I guess there is something > about our implementation that is bringing this out. My guess is so... if > there is an error in the Perl script (because of our own programming > mistake), the script goes kablooie and the map object vanishes without a > warning. However, the coded garbage collector tries to clean it up, > except it doesn't find anything. So, it croaks. > > > > > We need a PERL guru ...! > > I think we already have a few on this list, probably starting with Steve > Lime at the very top considering he wrote most of this wizardry to begin > with... I am sure between him and Steve W and Lowell and Paul Ramsey, > etc., we will be able to squash this. > > pk/ > > > > > On Sunday, April 28, 2002, at 10:20 AM, Giorgio Volpe wrote: > > > Puneet Kishor wrote: > >> > >> ok... I have spent a good part of today battling this, and have > >> discovered the following... > >> > >> one of the reasons I am getting these errors because I have -w switch > >> on > >> my shebang line. After much finagling, I can get the image to draw, but > >> with the -w switch I get the following error as well -- > >> > >> (in cleanup) Not a HASH reference at /Library/Perl/darwin/mapscript.pm > >> line 1468. > >> > >> that line in mapscript.pm is the one that is trying to clean up... and > >> failing. Specifically, > >> > >> sub DESTROY { > >> my $self = tied(%{$_[0]}); > >> delete $ITERATORS{$self}; > >> if (exists $OWNER{$self}) { > >> mapscriptc::delete_mapObj($self); > >> delete $OWNER{$self}; > >> } > >> } > > > > I've the same problem! > > It is not a warning but a fatal error for perl. > > > > The problem, i guess, is related to the use of tied hash to support > > mapscript objects ... > > > > I've added a PRINT ... > > > > sub DESTROY { > > print STDERR "!!!! Destroing $_[0] ...\n"; > > my $self = tied(%{$_[0]}); > > ... > > > > The DESTRUCTOR is called two times! The first one with $_[0] that is a > > reference to an hash, the second to a scalar so function "tied" raises > > the error! > > > > !!!! Destroing layerObj=HASH(0x83e925c) ... > > !!!! Destroing layerObj=SCALAR(0x83d8ef4) ... > > > > Empirically i've seen that, if I undef the variable containing the > > reference to the object before returning from the sub where i use it, > > than the error disappears ... (also if the two call to the DESTRUCTOR > > are always there, but probably the undef value is passed) > > > > > > We need a PERL guru ...! > > > > -- > > > > Giorgio > > > > ----------------------------------------- From pkishor at GeoAnalytics.com Mon Apr 29 12:41:27 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Mon, 29 Apr 2002 14:41:27 -0500 Subject: Bus error -- Re: [mapserver-users] Re: Perl/mapscript error Message-ID: Hi Lowell, My problem is specifically in mapObj... the DESTROY sub in the mapObj. The error message you refer to is the only error message. You asked for my map file... I can send you the file, but it is really a very simple map file. The problem is not with that... the problem is with some error trapping... I have got my perl code/map file/data combo working now. However, if something goes wrong in my code, this error crops up. here is what I have gathered... if I make some mistake in my coding, mapscript.pm is unable to recover from it... in other words, while the actual error is not in the mapscript.pm code, it is the mapscript.pm code that croaks because the mapObj that it is trying to DESTROY doesn't exist anymore. Btw, this is not necessarily a mapscript.pm specific thing... that is, there are others who have experienced such an error with other scripts. This is also not an OS specific thing... I posted an inquiry about "bus error" on perl at macosx and a few there have seen this crop up here and there. But, note that Giorgio also experienced this error... I am assuming he is not using OS X. In other words, there is some assertion checking or error-trapping that can be implemented in mapscript.pm which will cause DESTROY to not fail if the object it is trying to destroy (in this case, mapObj) doesn't exist. This way mapscript.pm can fail gracefully, and not cause a fatal error for Perl altogether. Thanks, pk/ > -----Original Message----- > From: Lowell Filak [mailto:lfilak at medinaco.org] > Sent: Monday, April 29, 2002 2:44 PM > To: Puneet Kishor; Giorgio Volpe > Cc: mapserver-users at lists.gis.umn.edu > Subject: Re: Bus error -- Re: [mapserver-users] Re: > Perl/mapscript error > > > Any gurus feel free to step forward, in the mean-time I have > a couple of questions: > Puneet - is "(in cleanup) Not a HASH reference at > /Library/Perl/darwin/mapscript.pm ine 1468." the ONLY error > message in your log? Are there ANY other messages in the log > around the same time (within a second or so)? > Giorgio - which DESTROY subroutine did you insert your print > statement into, mapObj, layerObj, classObj, ...? It looks > like layerObj as opposed to mapObj where Puneet is having trouble. > Lowell F. > > The following message was sent by Puneet Kishor > on Sun, 28 Apr 2002 10:29:51 -0500. > > > thanks for analysis Giorgio... I will try out some of your > shenanigans > > detailed here... > > > > since it has not been reported exhaustively, I guess there > is something > > about our implementation that is bringing this out. My > guess is so... if > > there is an error in the Perl script (because of our own > programming > > mistake), the script goes kablooie and the map object > vanishes without a > > warning. However, the coded garbage collector tries to clean it up, > > except it doesn't find anything. So, it croaks. > > > > > > > > We need a PERL guru ...! > > > > I think we already have a few on this list, probably > starting with Steve > > Lime at the very top considering he wrote most of this > wizardry to begin > > with... I am sure between him and Steve W and Lowell and > Paul Ramsey, > > etc., we will be able to squash this. > > > > pk/ > > > > > > > > > > On Sunday, April 28, 2002, at 10:20 AM, Giorgio Volpe wrote: > > > > > Puneet Kishor wrote: > > >> > > >> ok... I have spent a good part of today battling this, and have > > >> discovered the following... > > >> > > >> one of the reasons I am getting these errors because I > have -w switch > > >> on > > >> my shebang line. After much finagling, I can get the > image to draw, but > > >> with the -w switch I get the following error as well -- > > >> > > >> (in cleanup) Not a HASH reference at > /Library/Perl/darwin/mapscript.pm > > >> line 1468. > > >> > > >> that line in mapscript.pm is the one that is trying to > clean up... and > > >> failing. Specifically, > > >> > > >> sub DESTROY { > > >> my $self = tied(%{$_[0]}); > > >> delete $ITERATORS{$self}; > > >> if (exists $OWNER{$self}) { > > >> mapscriptc::delete_mapObj($self); > > >> delete $OWNER{$self}; > > >> } > > >> } > > > > > > I've the same problem! > > > It is not a warning but a fatal error for perl. > > > > > > The problem, i guess, is related to the use of tied hash > to support > > > mapscript objects ... > > > > > > I've added a PRINT ... > > > > > > sub DESTROY { > > > print STDERR "!!!! Destroing $_[0] ...\n"; > > > my $self = tied(%{$_[0]}); > > > ... > > > > > > The DESTRUCTOR is called two times! The first one with > $_[0] that is a > > > reference to an hash, the second to a scalar so function > "tied" raises > > > the error! > > > > > > !!!! Destroing layerObj=HASH(0x83e925c) ... > > > !!!! Destroing layerObj=SCALAR(0x83d8ef4) ... > > > > > > Empirically i've seen that, if I undef the variable containing the > > > reference to the object before returning from the sub > where i use it, > > > than the error disappears ... (also if the two call to > the DESTRUCTOR > > > are always there, but probably the undef value is passed) > > > > > > > > > We need a PERL guru ...! > > > > > > -- > > > > > > Giorgio > > > > > > ----------------------------------------- > From bfischer at mpls.houstoneng.com Mon Apr 29 13:38:44 2002 From: bfischer at mpls.houstoneng.com (Brian Fischer) Date: Mon, 29 Apr 2002 15:38:44 -0500 Subject: [mapserver-users] zooming to a point with itemquerymap Message-ID: <8879CCE0F0187742B7302A93A8B87B09029962@mpls.houstoneng.com> Hi MapServer Users, I am trying to embed a mapserver generated image inside an ASP page and am having some problems. I don't even know if this is possible, but here it goes. I am trying to use the itemquerymap mode to produce a map of the selected point. I can get a map zoomed to the full extent of my map file, but I can not get a map zoomed in on the point. Here is the image tag inside the asp page. This produces a map at full extent. %22&item=SITEID&value=<%=rsSiteMap("siteid")%>"> As soon as I put parameters in to zoom to the point, I get an error. %22&item=SITEID&value=<%=rsSiteMap("siteid")%>&mapxy=[shpmid]&b uffer=50000"> I believe the reason why it does not work is because MapServer isn't replacing [shpmid] with it's value. I think this is a limitation of the itemquerymap or I am simply using it wrong. Has anyone done a similar thing using only Mapserv CGI not mapscript? Are there other modes I could use to produce the same map? Thanks, Brian -------------- next part -------------- An HTML attachment was scrubbed... URL: From lfilak at medinaco.org Mon Apr 29 14:58:32 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Mon, 29 Apr 2002 17:58:32 -0400 Subject: Bus error -- Re: [mapserver-users] Re: Perl/mapscript error Message-ID: <200204292149.g3TLnDQ11009@yogi.medinaco.net> I believe I have the full picture now. Here is what I'm looking at: The initial error is not in mapscript.pm but results in a fatal error because the type being sent back to DESTROY is a scalar instead of a hash and perl proceeds to try to handle it as a hash. I think the real problem is why did a scalar come back. Is it because of a misfire in mapscript_wrap.c via SWIG? I don't believe anything should return a scalar because the objects are built as hashes from the start. Lowell F. The following message was sent by Puneet Kishor on Mon, 29 Apr 2002 14:41:27 -0500. > Hi Lowell, > > My problem is specifically in mapObj... the DESTROY sub in the mapObj. The > error message you refer to is the only error message. > > You asked for my map file... I can send you the file, but it is really a > very simple map file. The problem is not with that... the problem is with > some error trapping... I have got my perl code/map file/data combo working > now. However, if something goes wrong in my code, this error crops up. > > here is what I have gathered... > > if I make some mistake in my coding, mapscript.pm is unable to recover from > it... in other words, while the actual error is not in the mapscript.pm > code, it is the mapscript.pm code that croaks because the mapObj that it is > trying to DESTROY doesn't exist anymore. > > Btw, this is not necessarily a mapscript.pm specific thing... that is, there > are others who have experienced such an error with other scripts. This is > also not an OS specific thing... I posted an inquiry about "bus error" on > perl at macosx and a few there have seen this crop up here and there. But, note > that Giorgio also experienced this error... I am assuming he is not using OS > X. > > In other words, there is some assertion checking or error-trapping that can > be implemented in mapscript.pm which will cause DESTROY to not fail if the > object it is trying to destroy (in this case, mapObj) doesn't exist. This > way mapscript.pm can fail gracefully, and not cause a fatal error for Perl > altogether. > > Thanks, > > pk/ > > > > > -----Original Message----- > > From: Lowell Filak [mailto:lfilak at medinaco.org] > > Sent: Monday, April 29, 2002 2:44 PM > > To: Puneet Kishor; Giorgio Volpe > > Cc: mapserver-users at lists.gis.umn.edu > > Subject: Re: Bus error -- Re: [mapserver-users] Re: > > Perl/mapscript error > > > > > > Any gurus feel free to step forward, in the mean-time I have > > a couple of questions: > > Puneet - is "(in cleanup) Not a HASH reference at > > /Library/Perl/darwin/mapscript.pm ine 1468." the ONLY error > > message in your log? Are there ANY other messages in the log > > around the same time (within a second or so)? > > Giorgio - which DESTROY subroutine did you insert your print > > statement into, mapObj, layerObj, classObj, ...? It looks > > like layerObj as opposed to mapObj where Puneet is having trouble. > > Lowell F. > > > > The following message was sent by Puneet Kishor > > on Sun, 28 Apr 2002 10:29:51 -0500. > > > > > thanks for analysis Giorgio... I will try out some of your > > shenanigans > > > detailed here... > > > > > > since it has not been reported exhaustively, I guess there > > is something > > > about our implementation that is bringing this out. My > > guess is so... if > > > there is an error in the Perl script (because of our own > > programming > > > mistake), the script goes kablooie and the map object > > vanishes without a > > > warning. However, the coded garbage collector tries to clean it up, > > > except it doesn't find anything. So, it croaks. > > > > > > > > > > > We need a PERL guru ...! > > > > > > I think we already have a few on this list, probably > > starting with Steve > > > Lime at the very top considering he wrote most of this > > wizardry to begin > > > with... I am sure between him and Steve W and Lowell and > > Paul Ramsey, > > > etc., we will be able to squash this. > > > > > > pk/ > > > > > > > > > > > > > > > On Sunday, April 28, 2002, at 10:20 AM, Giorgio Volpe wrote: > > > > > > > Puneet Kishor wrote: > > > >> > > > >> ok... I have spent a good part of today battling this, and have > > > >> discovered the following... > > > >> > > > >> one of the reasons I am getting these errors because I > > have -w switch > > > >> on > > > >> my shebang line. After much finagling, I can get the > > image to draw, but > > > >> with the -w switch I get the following error as well -- > > > >> > > > >> (in cleanup) Not a HASH reference at > > /Library/Perl/darwin/mapscript.pm > > > >> line 1468. > > > >> > > > >> that line in mapscript.pm is the one that is trying to > > clean up... and > > > >> failing. Specifically, > > > >> > > > >> sub DESTROY { > > > >> my $self = tied(%{$_[0]}); > > > >> delete $ITERATORS{$self}; > > > >> if (exists $OWNER{$self}) { > > > >> mapscriptc::delete_mapObj($self); > > > >> delete $OWNER{$self}; > > > >> } > > > >> } > > > > > > > > I've the same problem! > > > > It is not a warning but a fatal error for perl. > > > > > > > > The problem, i guess, is related to the use of tied hash > > to support > > > > mapscript objects ... > > > > > > > > I've added a PRINT ... > > > > > > > > sub DESTROY { > > > > print STDERR "!!!! Destroing $_[0] ...\n"; > > > > my $self = tied(%{$_[0]}); > > > > ... > > > > > > > > The DESTRUCTOR is called two times! The first one with > > $_[0] that is a > > > > reference to an hash, the second to a scalar so function > > "tied" raises > > > > the error! > > > > > > > > !!!! Destroing layerObj=HASH(0x83e925c) ... > > > > !!!! Destroing layerObj=SCALAR(0x83d8ef4) ... > > > > > > > > Empirically i've seen that, if I undef the variable containing the > > > > reference to the object before returning from the sub > > where i use it, > > > > than the error disappears ... (also if the two call to > > the DESTRUCTOR > > > > are always there, but probably the undef value is passed) > > > > > > > > > > > > We need a PERL guru ...! > > > > > > > > -- > > > > > > > > Giorgio > > > > > > > > ----------------------------------------- > > From joe at otsys.com Mon Apr 29 15:51:17 2002 From: joe at otsys.com (Joe Bussell) Date: Mon, 29 Apr 2002 15:51:17 -0700 Subject: [mapserver-users] creating/using raster layers Message-ID: <20020429225117.GA8783@extempore.otsys.com> I have made an attempt to create a raster layer for our traffic information site. I created the appropriate .tif files, created associated .wld files. I then ran shptree on the resulting combination. I recieved no indication that the conversion failed, but when I run shptreetst on the created files it fails. Any help would be appreciated. The specifics: joe at extempore:/mnt/data/td/la/shapefiles$ ./createIndexTiles -level 1 -- this is a PERL script I wrote to generate the tifs joe at extempore:/mnt/data/td/la/shapefiles$ gdaltindex level1.shp LA??.tif joe at extempore:/mnt/data/td/la/shapefiles$ shptree level1.shp 6 NM creating index of new MSB format joe at extempore:/mnt/data/td/la/shapefiles$ shptreetst level1.shp This new MSB index supports a shapefile with 4 shapes, 6 depth shapes 0, node 4, -118.271649,33.978678,-118.201089,34.049238 shapes 1, node 0, -118.271649,33.978678,-118.232841,34.017486 shapes 1, node 0, -118.239897,33.978678,-118.201089,34.017486 shapes 1, node 0, -118.271649,34.010430,-118.232841,34.049238 shapes 1, node 0, -118.239897,34.010430,-118.201089,34.049238 read entire file now at quad box rec 6 file pos 252 using last read box as a search Segmentation fault (core dumped) joe at extempore:~/p4/ots/traffic/tdxweb/bin$ dbfdump level1.dbf LA00.tif LA01.tif LA10.tif LA11.tif joe at extempore:~/p4/ots/traffic/tdxweb/bin$ ll LA??.tif -rw-r--r-- 1 joe joe 172032 Apr 29 11:41 LA00.tif -rw-r--r-- 1 joe joe 172032 Apr 29 11:45 LA01.tif -rw-r--r-- 1 joe joe 172032 Apr 29 11:50 LA10.tif -rw-r--r-- 1 joe joe 172032 Apr 29 11:55 LA11.tif Joe Bussell On Time Systems From llionte at yahoo.com Tue Apr 30 00:35:35 2002 From: llionte at yahoo.com (laurentiu lionte) Date: Tue, 30 Apr 2002 00:35:35 -0700 (PDT) Subject: [mapserver-users] panning around a queryed point Message-ID: <20020430073535.38680.qmail@web9902.mail.yahoo.com> Hello everybody! Thanks to Steve Lime, Stefan Woodbridge and all who had replyed to my questions. My problem is solved.I can now query a point by his attributes, have the map zoom to this selected point and use this map in a regular way. Lawrence --------------------------------- Do You Yahoo!? Yahoo! Health - your guide to health and wellness -------------- next part -------------- An HTML attachment was scrubbed... URL: From teb at mallit.fr.umn.edu Tue Apr 30 05:10:32 2002 From: teb at mallit.fr.umn.edu (Thomas E. Burk) Date: Tue, 30 Apr 2002 07:10:32 -0500 (CDT) Subject: [mapserver-users] help me (fwd) Message-ID: <200204301210.g3UCAXS21247@mallit.fr.umn.edu> From gerald_v at yahoo.com Tue Apr 30 01:35:18 2002 From: gerald_v at yahoo.com (gerald villacarlos) Date: Tue, 30 Apr 2002 01:35:18 -0700 (PDT) Subject: help me Message-ID: <20020430083518.79194.qmail@web10006.mail.yahoo.com> hello there im gerald, i dont know who's gonna read this mail but anyway hope u can help me with my problem im in a local GIS company here in the philippines, i have a project about web based gis and mapserver answer that problem of me in uploading ESRI's .shp files to the Internet, in using arcview, we can connect a separate .dbf file to the shapefile using join command, is there any possiblity that this would also work in Mapserver. i am plannig to use PostGres SQL as my database holder how would i possibly do that? if is sounds complicated then u can first help me with connecting it to a simple .DBF file using ODBC if possible. i am using -Windows 98 - OS -APache webserver with PHP support -Mapserver 4.5 for my GIS files, my webserver is not yet available on the internet, its still in our intranet for testing then after any approval from our boss, then we can upload it in the internet. i really need ur help, thank you and GOd Bless.. ===== Gerald G. Villacarlos System Administrator/DB Programmer GEOPLAN Cebu Foundation, Inc. c/o DOST-7 M.Cuenco Ave,Cebu City,Philippines,6000 Tel No.(032)231-6209 Cel 09176475540 http://www.geocities.com/gerald_v __________________________________________________ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com From morissette at dmsolutions.ca Tue Apr 30 05:47:54 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 30 Apr 2002 08:47:54 -0400 Subject: [mapserver-users] Re: www2.dmsolutions.ca - no route to host References: <3CCC1418.2F49EBC1@nauta.it> <3CCC3976.4980BF83@vt.edu> <3CCD3AF4.40CE30C8@dmsolutions.ca> <3CCDDF6E.34378BAB@vt.edu> Message-ID: <3CCE927A.16D5A021@dmsolutions.ca> Robert Burgholzer wrote: > > By the way, I was getting a 'no route to host' error when trying to > access anything on www2.dmsolutions.ca during my documentation search. > Perhaps there is a problem on my side, but I figured I'd drop a line > anyhow. > Robert, www2.dmsolutions.ca has been down since Friday afternoon due to some problems with our Internet connection, and it's not back yet... at this point the telco and the ISP are fighting on who's responsible for the problem, and we're stuck in the middle of this. I have setup a mirror of the HTML pages that used to be on www2 at http://www4.dmsolutions.ca/mapserver/index.html Note that most of the information about PHP MapScript from our site (and even more) can also be found in the following HOWTOs on the MapServer website: http://mapserver.gis.umn.edu/doc/phpmapscript-class-guide.html http://mapserver.gis.umn.edu/doc/phpmapscript-install-howto.html Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From ycnyon at pd.jaring.my Tue Apr 30 08:36:58 2002 From: ycnyon at pd.jaring.my (YC Nyon) Date: Tue, 30 Apr 2002 23:36:58 +0800 Subject: [mapserver-users] Connect to the Geography Network Message-ID: <006a01c1f05d$1ae7ace0$4991063d@fksg.utm.my> Hi, I got a few questions 1. Is Mapserver WMS compliant. If yes, starting from which version. 2. If I got an internet map running using Mapserver, how do I connect it to Geography Network. All I have to do is to register with GN. 3. What is the advantage of registering with GN? All I can see is that someone using ArcGIS software can call a image/ streaming vector from the map service. Like to hear from the list in regards of the benefits, compliance and security issues. Thanks Nyon -------------- next part -------------- An HTML attachment was scrubbed... URL: From franknelson at hotmail.com Tue Apr 30 08:54:17 2002 From: franknelson at hotmail.com (Frank Nelson) Date: Tue, 30 Apr 2002 15:54:17 +0000 Subject: [mapserver-users] Getting Lat/Lon and Units in template file Message-ID: Hi all, Two questions in one but might be related.... I searched the mailing list archives and didn't see anything, so I'm probably just missing some key ingredient.. I've tried the following parameters in my template file to get the extents in latitude/longitude but the tags never get replaced: [mapext_latlon], [minlon], [minlat], [maxlon] [maxlat] Projections are enabled and defined in my map file for each layer and for the map. When I say "enabled" I mean that PROJ4 is compiled into the mapserver executable. And it appears to be functional since my layers are actually lining up. Any ideas? Also, along the same lines, I'm not seeing how to extract the units (meters, feet, etc.) from the map file in the template file. Is this not possible?? Thanks!!!!! _________________________________________________________________ Join the world?s largest e-mail service with MSN Hotmail. http://www.hotmail.com From pagurekd at em.agr.ca Tue Apr 30 11:44:51 2002 From: pagurekd at em.agr.ca (Debbie Pagurek) Date: Tue, 30 Apr 2002 14:44:51 -0400 Subject: [mapserver-users] remove points that were added with addfeature Message-ID: Hi all, I have created an application that adds points to a map "on-the-fly" from an oracle database of lat long coords. I used the mapscript "addfeature" to a "dummy layer" that was set up in my map file. Hoever, I need to know how to then clear these added points from the layer, or make the layer void or something like that. Any ideas? Thanks, D. Pagurek From hassm at msue.msu.edu Tue Apr 30 12:06:31 2002 From: hassm at msue.msu.edu (Michael D. Hass) Date: Tue, 30 Apr 2002 15:06:31 -0400 Subject: [mapserver-users] query expression Message-ID: <3.0.1.32.20020430150631.00fefe98@msue.msu.edu> A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1230 bytes Desc: not available URL: From giorgio at nauta.it Tue Apr 30 12:10:49 2002 From: giorgio at nauta.it (Giorgio Volpe) Date: Tue, 30 Apr 2002 21:10:49 +0200 Subject: Bus error -- Re: [mapserver-users] Re: Perl/mapscript error References: <200204291934.g3TJYIQ09694@yogi.medinaco.net> Message-ID: <3CCEEC39.4417BCED@nauta.it> Lowell Filak wrote: > > Giorgio - which DESTROY subroutine did you insert your print statement into, mapObj, layerObj, classObj, ...? It looks like layerObj as opposed to mapObj where Puneet is having trouble. > Lowell F. I have the same problem with many different objects! It happened with rectObj, layerObj, classObj for eample ... never with mapObj. I'inserted my "debug" print before the line suggested in the error message ... I observed that: - the object being tied is a scalar, and this is why the destructor is called twice (i immagine !) one for the original variable and the other for the "tied" virtual variable - Not always the call to the destructor with a scalar value causes the error! - The problem seems connected to the use of a variable to store a reference to an object. If I undef that variable the error disappears (also if i have the same output in my debug ... see attached code ...) - In some case the same code works perfectly !!! (as says Lowell this suggest that the error is somewere else ... but I can't find it!!!) by Giorgio ---------------------------------------------------------------------- Here my "shenanigans" ... with rectObj Modified DESTROY as: (/usr/local/lib/perl/5.6.1/mapscript.pm line 1801) sub DESTROY { print STDERR "==== destroing: $_[0]\n"; #ADDED LINE my $self = tied(%{$_[0]}); delete $ITERATORS{$self}; Modified "constructor" TIEHASH (in "father" package) as : (/usr/local/lib/perl/5.6.1/mapscript.pm line 16) package mapscript; sub TIEHASH { my ($classname,$obj) = @_; print STDERR "==== Tieing: $classname,$obj\n"; #ADDED LINE return bless $obj, $classname; } Now execute ... sub ext_map { my $me=shift; my $mappa=$me->map(); # Here I've saved my map print STDERR ">>>>>> Start some debugging :-<\n"; print STDERR ">>>>>> map->extent is: ".$map->{extent}."\n"; print STDERR ">>>>>> now let's assign my \$ext=\$map->{extent}\n"; my $ext=$map->{extent}; print STDERR ">>>>>> my var ext is: $ext \n"; return; } This is the output in the error LOG!!! >>>>>> Start some debugging :-< ==== Tieing: rectObj,rectObj=SCALAR(0x846f1a8) >>>>>> map->extent is: rectObj=HASH(0x8472c84) ==== destroing: rectObj=HASH(0x8472c84) ==== destroing: rectObj=SCALAR(0x846f1a8) >>>>>> now let's assign my $ext=$mappa->{extent} ==== Tieing: rectObj,rectObj=SCALAR(0x84917c0) >>>>>> my var ext is: rectObj=HASH(0x84916dc) ==== destroing: rectObj=HASH(0x84916dc) ==== destroing: rectObj=SCALAR(0x84917c0) ERROR: (in cleanup) Not a HASH reference at /usr/local/lib/perl/5.6.1/mapscript.pm line 1805. NB: The error rise before return from sub to the caller. If I add "undef $ext" before "return" the error disappears! Other test ... Tring dumping the data before destroing ... all seems ok data are there, object is not silently "gone". added in DESTROY use Data::Dumper; print STDERR Dumper($_[0])."\n===========================\n"; OUTPUT: >>>>>> Start some debugging :-< ==== Tieing: rectObj,rectObj=SCALAR(0x8448714) >>>>>> map->extent is: rectObj=HASH(0x8491274) ==== destroing: rectObj=HASH(0x8491274) $VAR1 = bless( { 'minx' => '1811107', 'miny' => '5060718', 'maxx' => '1818823', 'maxy' => '5062904' }, 'rectObj' ); =========================== ==== destroing: rectObj=SCALAR(0x8448714) $VAR1 = bless( do{\(my $o = 139117832)}, 'rectObj' ); =========================== >>>>>> now let's assign my $ext=$mappa->{extent} ==== Tieing: rectObj,rectObj=SCALAR(0x84b0de4) >>>>>> my var ext is: rectObj=HASH(0x84b0300) ==== destroing: rectObj=HASH(0x84b0300) $VAR1 = bless( { 'minx' => '1811107', 'miny' => '5060718', 'maxx' => '1818823', 'maxy' => '5062904' }, 'rectObj' ); =========================== ==== destroing: rectObj=SCALAR(0x84b0de4) $VAR1 = bless( do{\(my $o = 139117832)}, 'rectObj' ); =========================== !!! Same output when it's ok or when error! From tesimap at hotmail.com Tue Apr 30 12:10:36 2002 From: tesimap at hotmail.com (Ivan Paoluzzi) Date: Tue, 30 Apr 2002 21:10:36 +0200 Subject: [mapserver-users] label with itemnquery Message-ID: Hi, I'm a new Mapsever user. If I do a query with itemnquery, is it possible to have the label, of resultd found, in a map? If yes, how? Yhank you Ivan _________________________________________________________________ Scarica GRATUITAMENTE MSN Explorer dall'indirizzo http://explorer.msn.it/intl.asp. From tesimap at hotmail.com Tue Apr 30 12:10:47 2002 From: tesimap at hotmail.com (Ivan Paoluzzi) Date: Tue, 30 Apr 2002 21:10:47 +0200 Subject: [mapserver-users] label with itemnquery Message-ID: Hi, I'm a new Mapsever user. If I do a query with itemnquery, is it possible to have the label, of resultd found, in a map? If yes, how? Thank you Ivan _________________________________________________________________ Entra a far parte del pi? grande servizio di posta elettronica del mondo con MSN Hotmail. http://www.hotmail.com From woodbri at swoodbridge.com Tue Apr 30 12:35:45 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 30 Apr 2002 15:35:45 -0400 Subject: [mapserver-users] remove points that were added with addfeature References: Message-ID: <3CCEF211.95975E8@swoodbridge.com> They should not be permanently stored, so the next time you should start with a void layer, unless you are actually saving the points to a shape file which is not required to display them. Can you show use how you are adding the points "on the fly"? This is probably the part that needs to be changed. -Steve W. Debbie Pagurek wrote: > > Hi all, > I have created an application that adds points to a map "on-the-fly" from an oracle database of lat long coords. I used the mapscript "addfeature" to a "dummy layer" that was set up in my map file. Hoever, I need to know how to then clear these added points from the layer, or make the layer void or something like that. > > Any ideas? > > Thanks, > D. Pagurek From pkishor at GeoAnalytics.com Tue Apr 30 13:08:17 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Tue, 30 Apr 2002 15:08:17 -0500 Subject: [mapserver-users] remove points that were added with addfeatu re Message-ID: well, you can't really clear the features unless you redraw the map. And if you are redrawing, just simply don't add those features again. Every object has a destructor method like so "obj->free()"; hth. > -----Original Message----- > From: Debbie Pagurek [mailto:pagurekd at em.agr.ca] > Sent: Tuesday, April 30, 2002 1:45 PM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] remove points that were added with > addfeature > > > Hi all, > I have created an application that adds points to a map > "on-the-fly" from an oracle database of lat long coords. I > used the mapscript "addfeature" to a "dummy layer" that was > set up in my map file. Hoever, I need to know how to then > clear these added points from the layer, or make the layer > void or something like that. > > Any ideas? > > Thanks, > D. Pagurek > From cogansco at msu.edu Tue Apr 30 13:46:24 2002 From: cogansco at msu.edu (Scott D Cogan) Date: Tue, 30 Apr 2002 16:46:24 -0400 Subject: [mapserver-users] unsubscribe References: Message-ID: <001101c1f088$18103b60$224d0823@whalon6> please unsubscribe cogansco at msu.edu END From pushkar at ERC.MsState.Edu Tue Apr 30 13:50:51 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Tue, 30 Apr 2002 15:50:51 -0500 (CDT) Subject: [mapserver-users] remove points that were added with addfeature In-Reply-To: Message-ID: Turning the dummy layer off using: $oLayer = $map->getLayerByName("dummy layer"); if ($oLayer->status == 1) { $oLayer->set("status", "0"); } should work? > Hi all, > I have created an application that adds points to a map "on-the-fly" from an oracle database of lat long coords. I used the mapscript "addfeature" to a "dummy layer" that was set up in my map file. Hoever, I need to know how to then clear these added points from the layer, or make the layer void or something like that. > > Any ideas? > > Thanks, > D. Pagurek > -Pushkar S. Pradhan From pkishor at GeoAnalytics.com Tue Apr 30 15:36:23 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Tue, 30 Apr 2002 17:36:23 -0500 Subject: Bus error -- Re: [mapserver-users] Re: Perl/mapscript error Message-ID: > Lowell Filak wrote: > > > > > Giorgio - which DESTROY subroutine did you insert your > print statement into, mapObj, layerObj, classObj, ...? It > looks like layerObj as opposed to mapObj where Puneet is > having trouble. > > Lowell F. > > I have the same problem with many different objects! > It happened with rectObj, layerObj, classObj for eample ... never with > mapObj. very interesting. So far, the only place I have experienced this is with mapObj, not anywhere else at all. I am going to try Giorgio's shenanigans tonight :-) Hopefully, I can make my scripts behave the same way. That should get us further along to solving this. One question for Giorgio... Could you please let us know what OS you are using? I see you are using Perl 5.6.1, but on what kind of computer. Thanks, pk/