From massimo at utilia.it Sun Apr 1 09:50:40 2001 From: massimo at utilia.it (massimo ambrosini) Date: Sun, 1 Apr 2001 18:50:40 +0200 Subject: problem compiling PHP mapscript module Message-ID: <002e01c0bacb$e2e8aa00$01010101@localdomain> Hi, I'm trying to compile mapserver with php mapscript module but I get an error. My os is linux and I have apache_1.3.12 and php-3.0.15. PHP3 is statically linked into Apache. When I run: ./configure --with-php3=../php-3.0.15 make I get: ap_config_auto.h: file not found ap_config.h: file not found .... and so on. I've read the faq about this problem but it regards the use of php as DSO. When I compile php3 source in apache building procedure I use "--with-apache=../apache_1.3.12" so the make process can find the header files like "ap_config_auto.h" etc. When I compile mapserver source what can I do to avoid the file not found error on these header files ? thanks max -------------- next part -------------- An HTML attachment was scrubbed... URL: From morissette at dmsolutions.ca Sun Apr 1 14:33:22 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Sun, 01 Apr 2001 17:33:22 -0400 Subject: problem compiling PHP mapscript module References: <002e01c0bacb$e2e8aa00$01010101@localdomain> Message-ID: <3AC79EA2.D4F415C8@dmsolutions.ca> Max, MapServer's configure also has the --with-apache=DIR option that should do exactly what you need. Daniel > massimo ambrosini wrote: > > Hi, > > I'm trying to compile mapserver with php mapscript module but I get an > error. > My os is linux and I have apache_1.3.12 and php-3.0.15. > PHP3 is statically linked into Apache. > > When I run: ./configure --with-php3=../php-3.0.15 > make > > I get: ap_config_auto.h: file not found > ap_config.h: file not found > .... and so on. > > I've read the faq about this problem but it regards the use of php as > DSO. > When I compile php3 source in apache building procedure I use > "--with-apache=../apache_1.3.12" so > the make process can find the header files like "ap_config_auto.h" > etc. > When I compile mapserver source what can I do to avoid the file not > found error on these header files ? > > thanks > > max -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca 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 jsmedsmo at gis.umn.edu Mon Apr 2 10:04:34 2001 From: jsmedsmo at gis.umn.edu (Jamie Smedsmo) Date: Mon, 02 Apr 2001 12:04:34 -0500 Subject: MapServer Documentation Project Message-ID: <3AC8B122.334FD74B@gis.umn.edu> Some of you may recall a discussion last fall about starting a volunteer-based MapServer Documentation Project to provide a complete set of free documentation for MapServer software. That project is underway and gaining momentum, but we are still looking for volunteers to help out. We have decided to develop a set of task-specific "HowTos" along with a smaller set of guides in DocBook XML format. For those of you interested in writing MapServer documentation there is now a MapServer Documentation Project homepage available at http://mapserver.gis.umn.edu/mdp/. I am coordinating the effort, so let me know if you have something to contribute. Thank You, Jamie Smedsmo jsmedsmo at gis.umn.edu Department of Forest Resources University of Minnesota From raanders at tincan.org Mon Apr 2 13:10:02 2001 From: raanders at tincan.org (Roderick A. Anderson) Date: Mon, 2 Apr 2001 13:10:02 -0700 (PDT) Subject: MapServer Documentation Project In-Reply-To: <3AC8B122.334FD74B@gis.umn.edu> Message-ID: On Mon, 2 Apr 2001, Jamie Smedsmo wrote: > MapServer Documentation Project homepage available at > http://mapserver.gis.umn.edu/mdp/. I am coordinating the effort, so > let me know if you have something to contribute. For now I'll be a test case. I have to get a demo up and running but have been delaying starting it because I've been lost in the documentation. I'm more a fan than an expert in GIS so terminology/concepts have been a bit of an uphill battle. Actually I'm the system administrator for a community based service so I ahve to pass the knowledge along as I go. This looks great and as soon as I figure out something new and exciting I'll contribute. Rod -- From Eric.Tang at arup.com Mon Apr 2 20:40:09 2001 From: Eric.Tang at arup.com (Eric Tang) Date: Tue, 3 Apr 2001 04:40:09 +0100 Subject: Template Sample Message-ID: Hi, I just make it run in Win NT. Presently I want find some map file template for my reference, create some special map file. It included function have: - Use the radio button for turn off/on the layer - search/ find location by the textbox input First step, It need search location by textbox or select menu. I am appreciate, if anyone give me map file sample. Cheers, Eric -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrpatton at northcoast.com Mon Apr 2 22:21:32 2001 From: jrpatton at northcoast.com (Jason R. Patton) Date: Mon, 02 Apr 2001 22:21:32 -0700 Subject: Template Sample References: Message-ID: <3AC95DDC.EE6EEECC@northcoast.com> here's a map file: http://humboldtbay.cnrs.humboldt.edu/humbay.map there's a radio box on/off, but no search / find location textbox input, but it does have a select type menu the web page is: http://humboldtbay.cnrs.humboldt.edu just click on onlineGIS. good luck, jay Eric Tang wrote: > > > Hi, > > I just make it run in Win NT. Presently I want find some map file > template for my reference, create some special map file. It included > function have: > > - Use the radio button for turn off/on the layer > - search/ find location by the textbox input > > First step, It need search location by textbox or select menu. I am > appreciate, if anyone give me map file sample. > > Cheers, > Eric -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt at aruke.com Tue Apr 3 01:28:46 2001 From: matt at aruke.com (matt) Date: Tue, 3 Apr 2001 17:28:46 +0900 Subject: inline feature in map file HOW??? References: <3AC95DDC.EE6EEECC@northcoast.com> Message-ID: <000e01c0bc18$1bbc82f0$0400a8c0@matt> mapserver version 3.3.011, platform linux red hat 6.2 hi, i'm trying to use a mapfile to draw an inline feature with no shapefile. my failed attempt is down below. i know my gif 'redarrow' is ok because i tested it on the demo by replacing all the symbols with 'redarrow' it showed up fine can anyone see anything wrong? once this works, i would like to include multiple instances of the same bitmap on the same map. i'm pretty sure this is done by simply adding more points, but i'm not sure of the format. also i'd like to have multiple bitmaps on my zzz layer, from the documentation this is done by a relation of the Feature class setting and the class expression string, but i'd like to see an example. thanks for any help, Matt --------MAPFILE ------------------------------------------------------------ ----------------------- NAME DEMO STATUS ON SIZE 600 600 MARKERSET symbols/marker.sym EXTENT 138.8663 35.5158 139.7185 36.2986 UNITS DD IMAGECOLOR 255 255 255 INTERLACE OFF WEB HEADER demo_header.html TEMPLATE demo.html FOOTER demo_footer.html MINSCALE 1000 MAXSCALE 1550000 IMAGEPATH "/usr/local/apache/htdocs/tmp/" IMAGEURL "/tmp/" # LOG "demo.log" END LAYER NAME zzz TYPE ANNOTATION STATUS DEFAULT CLASS NAME "testbm" SYMBOL 'redarrow' END FEATURE POINTS 138.9663 35.9158 END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From Horst.Duester at bd.so.ch Tue Apr 3 07:32:47 2001 From: Horst.Duester at bd.so.ch (=?iso-8859-1?Q?D=FCster_Horst?=) Date: Tue, 3 Apr 2001 15:32:47 +0100 Subject: Change Output Image Resolution Message-ID: <5B025B1F39D6D4119F5700508BEEEC66011FBD@srsofaioi4546.ktso.ch> Hi all Is it possible to change the resolution of an MapServer output image from 72 dpi to higher resolution via MapScript?? Best regards Dr. Horst D?ster Leiter GIS Koordinationsstelle SOGIS R?tihof 4500 Solothurn Tel.: 032 627 25 32 Fax: 032 627 22 14 mailto:horst.duester at bd.so.ch http://www.so.ch From jrpatton at northcoast.com Tue Apr 3 09:14:43 2001 From: jrpatton at northcoast.com (Jason R. Patton) Date: Tue, 03 Apr 2001 09:14:43 -0700 Subject: Change Output Image Resolution References: <5B025B1F39D6D4119F5700508BEEEC66011FBD@srsofaioi4546.ktso.ch> Message-ID: <3AC9F6F3.945D956D@northcoast.com> why would you want to do that? web pages display at 72 jay D?ster Horst wrote: > Hi all > > Is it possible to change the resolution of an MapServer output image from 72 > dpi to higher resolution via MapScript?? > > Best regards > > Dr. Horst D?ster > Leiter > GIS Koordinationsstelle SOGIS > R?tihof > 4500 Solothurn > > Tel.: 032 627 25 32 > Fax: 032 627 22 14 > mailto:horst.duester at bd.so.ch > http://www.so.ch > > From cnielsen at co.tillamook.or.us Tue Apr 3 10:46:29 2001 From: cnielsen at co.tillamook.or.us (Chad Nielsen) Date: Tue, 3 Apr 2001 10:46:29 -0700 Subject: zoom box Message-ID: <000901c0bc66$035c98a0$a14368aa@co.tillamook.or.us> Hi, Someone was asking me about being able to display a 'zoom' box within a map image with map server. sort of like a magnifying glass that can be moved around. The idea is that there would be a draggable box in the map display area that shows the area underneath the box shown at a larger scale than the map display. Seems to me like this would be possible using java. does anybody have any experience with this? Is it even possible to imbed images within images? Chad Chad M. Nielsen, GIS Programmer/Analyst Tillamook County Performance Partnership (TCPP) Tillamook Coastal Watershed Resource Center (TCWRC) GIS: http://gisweb.co.tillamook.or.us TCPP: http://www.co.tillamook.or.us/countygovernment/Estuary/homepage.htm TCWRC: http://www.tcwrc.org From steve.lime at dnr.state.mn.us Tue Apr 3 11:43:01 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 03 Apr 2001 13:43:01 -0500 Subject: Change Output Image Resolution Message-ID: Nope, the 72 DPI is a constant (although you could change it and recompile). Since all that the DPI value affects is scale you could fake a higher resolution by doing the following in MapScript: - do a $map->prepare() (this calculates scale) - change $map->{scale} to reflect your desired output resolution - now loop through the layers and do a $layer->draw() Steve >>> D?ster Horst 04/03/01 08:34 AM >>> Hi all Is it possible to change the resolution of an MapServer output image from 72 dpi to higher resolution via MapScript?? Best regards Dr. Horst D?ster Leiter GIS Koordinationsstelle SOGIS R?tihof 4500 Solothurn Tel.: 032 627 25 32 Fax: 032 627 22 14 mailto:horst.duester at bd.so.ch http://www.so.ch From cameron at socialchange.net.au Tue Apr 3 13:04:48 2001 From: cameron at socialchange.net.au (Cameron Shorter) Date: Wed, 04 Apr 2001 06:04:48 +1000 Subject: zoom box References: <000901c0bc66$035c98a0$a14368aa@co.tillamook.or.us> Message-ID: <3ACA2CE0.81330097@socialchange.net.au> We have similar requests, and have come up with 2 solutions. 1. Use the mapimage.java bean. (We have enhanced the original mapimage.java, but have not not got around to releasing it yet.) http://mapserver.gis.umn.edu/contributed.html 2. Use geotools. http://geotools.sourceforge.net/ Chad Nielsen wrote: > > Hi, > > Someone was asking me about being able to display a 'zoom' box within a map > image with map server. sort of like a magnifying glass that can be moved > around. The idea is that there would be a draggable box in the map display > area that shows the area underneath the box shown at a larger scale than the > map display. Seems to me like this would be possible using java. does > anybody have any experience with this? Is it even possible to imbed images > within images? -- Cameron Shorter Web Mapping Manager Social Change Online 248 Johnson St Tel: +61 (0) 2 9692 5115 Annandale NSW 2038 Fax: +61 (0) 2 9692 5192 Sydney, Australia http://webmap.socialchange.net.au From edathome at nbnet.nb.ca Tue Apr 3 15:52:12 2001 From: edathome at nbnet.nb.ca (Eddie Oldfield) Date: Tue, 3 Apr 2001 18:52:12 -0400 Subject: UNSUBSCRIBE Message-ID: <001001c0bc90$b93d78e0$6c54fea9@Default> UNSUBSCRIBE -------------- next part -------------- An HTML attachment was scrubbed... URL: From morissette at dmsolutions.ca Tue Apr 3 17:14:06 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 03 Apr 2001 20:14:06 -0400 Subject: Mapscript PHP References: <008501c0bc53$7a27a5a0$8b01a8c0@joe> Message-ID: <3ACA674E.C6C9CDCE@dmsolutions.ca> > Joseph Archibald wrote: > > Hi, > A couple of weeks ago, you told me about a new version of > Mapscript that is coming soon. It is to support mapinfo text layers. > Is it done yet? > The new OGR support is there in the CVS and is working quite well (including MapInfo text)... if you feel brave then you can get the CVS source and compile it (or I can get you a PHP DLL for Windoze)... but you should be aware that we are still making important changes, so the stability of the CVS source at any given time is not guaranteed. You should also be warned that there have been several changes to map file settings and to MapScript calls between version 3.4 and the current 3.5 development version... if you want to try it then let me know and I'll make available a copy of the new GMap Demo updated to use the new stuff so you can use it to learn about the changes. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca 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 teb at mallit.fr.umn.edu Wed Apr 4 08:42:10 2001 From: teb at mallit.fr.umn.edu (teb) Date: Wed, 4 Apr 2001 10:42:10 -0500 (CDT) Subject: Query Windows Problem (FWD) Message-ID: <200104041542.KAA21813@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: Eric Tang To: "'mapserver-info at lists.gis.umn.edu'" Subject: Query Windows Problem Date: Wed, 4 Apr 2001 01:57:14 +0100 Mime-Version: 1.0 Dear All, I using the demo map file for my application, but it can't shown the picture at above the cached query text. All the application included the demo also can't to show. It only can show the standard querymap picture. Cheers, Eric ------------- End Forwarded Message ------------- From teb at mallit.fr.umn.edu Wed Apr 4 08:43:27 2001 From: teb at mallit.fr.umn.edu (teb) Date: Wed, 4 Apr 2001 10:43:27 -0500 (CDT) Subject: demo_init.html file error (FWD) Message-ID: <200104041543.KAA21817@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: Robert Schmitz-H?bsch To: Subject: Date: Wed, 4 Apr 2001 16:23:40 +0200 MIME-Version: 1.0 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Importance: Normal ------------- End Forwarded Message ------------- -------------- next part -------------- Right now, I compiled and installed the MapServer on Sun Solaris 8, SPARC-20-architecture. As I run the "demo_init.html"-file, I get the error-message msLoadMap(): Premature End-of-File. Undefined symbol as described in your troubleshooting-section. I counted over the "END"-directives, but somehow, I think they are in the right place and enough of them as well as not too many of them. I sent you the config-file, so if you have the time you might be able to go over it and tell me what I did wrong. You would make me very happy :-)) Thank you in advance, Robert Schmitz-H?bsch Vahrenwalder Str. 171 30165 Hannover Germany Tel. +49-(0)511-3502011 e-mail huebschy at gmx.de ICQ: 84013702 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Schach.gif Type: image/gif Size: 2947 bytes Desc: Schach.gif URL: -------------- next part -------------- # # Start of map file # NAME DEMO STATUS ON SIZE 600 600 # RSH-config:: # versuche mal absolute Pfade!! SHADESET /arcims/mapserver/symbols/shade.sym MARKERSET /arcims/mapserver/symbols/marker.sym LINESET /arcims/mapserver/symbols/line.sym # SYMBOLSET symbols/symbol.sym # Warum erkennt der das bl?de "SymbolSet" nicht??? # jetzt schon, mit absoluten Pfaden! EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897 UNITS METERS SHAPEPATH "data" IMAGECOLOR 255 255 255 # # Projection definition, consult the PROJ.4 documentation for parameter discussion # #PROJECTION # "proj=utm" # "ellps=GRS80" # "zone=15" # "north" # "no_defs" #END # # Start of web interface definition # WEB HEADER demo_header.html TEMPLATE demo.html FOOTER demo_footer.html MINSCALE 1000 MAXSCALE 1550000 IMAGEPATH "/usr/apache/htdocs/tmp/" IMAGEURL "/tmp/" LOG "/arcims/mapserver/demo.log" END QUERYMAP SIZE 200 200 STATUS ON STYLE HILITE COLOR 255 0 0 END # # Start of reference map # REFERENCE IMAGE graphics/reference.gif EXTENT 393234.393701263 5205405.16440722 495769.579718949 5307959.02579127 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 255 255 255 SIZE tiny END STYLE 1 SIZE 50 2 COLOR 255 255 255 UNITS MILES INTERVALS 1 TRANSPARENT TRUE STATUS TRUE END # # Start of layer definitions # LAYER NAME county TYPE POLYGON STATUS DEFAULT DATA ctybdpy2 CLASSITEM 'cty_name' CLASS EXPRESSION 'Itasca' OUTLINECOLOR 128 128 128 COLOR 225 225 185 END CLASS # every other county in the state EXPRESSION /./ OUTLINECOLOR 128 128 128 COLOR 255 255 255 END END LAYER NAME cities TYPE POLYGON DATA mcd90py2 STATUS ON CLASSITEM city_name CLASS NAME "Cities & Towns" EXPRESSION /./ COLOR 255 225 90 END END LAYER NAME townships TYPE POLYLINE DATA twprgpy3 STATUS ON CLASS SYMBOL 1 SIZE 2 NAME 'Townships' COLOR 181 181 145 END END LAYER NAME lakes TYPE POLYGON STATUS ON DATA lakespy2 CLASS NAME 'Lakes & Rivers' COLOR 49 117 185 END HEADER "lakespy2_header.html" FOOTER "lakespy2_footer.html" QUERY TEMPLATE "lakespy2.html" END TOLERANCE 3 END # lakes LAYER NAME streams TYPE LINE STATUS ON DATA dlgstln2 CLASS NAME "Streams" COLOR 49 117 185 END HEADER "dlgstln2_header.html" FOOTER "dlgstln2_footer.html" QUERY TEMPLATE "dlgstln2.html" END TOLERANCE 5 END # streams LAYER NAME roads MAXSCALE 300000 STATUS ON DATA ctyrdln3 TYPE LINE CLASS COLOR 0 0 0 END END # county roads LAYER NAME roads MAXSCALE 300000 STATUS ON DATA ctyrdln3 TYPE ANNOTATION LABELITEM "road_name" CLASS COLOR 255 255 255 SYMBOL 'county_highway_shield' LABEL MINFEATURESIZE 40 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 0 0 0 END END END # county road annotation LAYER NAME roads MAXSCALE 600000 STATUS ON DATA majrdln3 TYPE LINE CLASS NAME "Roads" COLOR 0 0 0 END END # highways LAYER NAME roads MAXSCALE 600000 STATUS ON DATA majrdln3 TYPE ANNOTATION LABELITEM "road_num" CLASSITEM "road_class" CLASS EXPRESSION "3" COLOR 0 0 0 # dummy color SYMBOL 'state_highway_shield' LABEL MINFEATURESIZE 50 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 0 0 0 END END CLASS EXPRESSION "2" COLOR 0 0 0 # dummy color SYMBOL 'us_highway_shield' LABEL MINFEATURESIZE 50 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 0 0 0 END END CLASS EXPRESSION "1" COLOR 0 0 0 # dummy color SYMBOL 'interstate_shield' LABEL MINFEATURESIZE 50 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 255 255 255 END END END # highway annotation LAYER NAME cities TYPE ANNOTATION DATA mcd90py2 STATUS ON LABELITEM "city_name" CLASSITEM "city_name" LABELMAXSCALE 500000 CLASS EXPRESSION /./ COLOR -1 -1 -1 LABEL COLOR 0 0 0 SHADOWCOLOR 218 218 218 SHADOWSIZE 2 2 TYPE BITMAP SIZE MEDIUM POSITION CC PARTIALS FALSE BUFFER 2 END END END END From cinco at xs4all.nl Wed Apr 4 09:27:12 2001 From: cinco at xs4all.nl (cinco) Date: Wed, 4 Apr 2001 18:27:12 +0200 (CEST) Subject: large scale image tiling Message-ID: <200104041627.SAA02715@webmail1.xs4all.nl> Hi, i have a question about tiff photos I read the answer Steve gave to tom (see below) but i am not quite sure howe to create such a layer. I made a polygon shapefile and put in the corresponding dbf file the imagepath and name of the tiff files. I also made the world files. My question is how to put all of this in the mapfile? has anyone an example? thanks in advance Cinco ------------------------------------------------------------------------------- MapServer tile indexes are themselves shapefiles. You can use MapScript to build that index. From within perl/python or whatever you'd: 1) create a polygon shapefile 2) create a corresponding dbf file with at least one item to hold image path and name 3) for each world file - create a polygon object from the world file coordinates - write the polygon to the shapefile - write the location information to the dbf file 4) close the files From andreag at geoplan.ufl.edu Wed Apr 4 10:07:50 2001 From: andreag at geoplan.ufl.edu (Andrea Goethals) Date: Wed, 04 Apr 2001 13:07:50 -0400 Subject: large scale image tiling References: <200104041627.SAA02715@webmail1.xs4all.nl> Message-ID: <3ACB54E6.AD267AE6@geoplan.ufl.edu> Example map file showing tiled images: (Note that I have 2 entries referring to aerial photos, one for the index, one for the images so that people can choose to draw or not draw the index. Also, for the aerial images I set a scale to start drawing them so that our servers aren't slowed down by people trying to draw the aerials when they're zoomed out far.) ---------------------------------------------------------- MAP NAME aerial STATUS ON SIZE 500 500 SHADESET ../symbols/shade.sym MARKERSET ../symbols/marker.sym LINESET ../symbols/line.sym FONTSET ../../fonts/fonts.list EXTENT 52652.168 59428.989 793990.758 781582.706 UNITS METERS SHAPEPATH "/statedata/" IMAGECOLOR 255 255 255 # # Start of web interface definition # WEB IMAGEPATH /var/www/html/mapserver/temp/ IMAGEURL "../mapserver/temp/" TEMPLATE /var/www/html/mapserver/htmltemplates/d_aerial.html MINSCALE 12000 MAXSCALE 15500000 END QUERYMAP STATUS ON STYLE HILITE COLOR 255 255 0 END # # Start of reference map # REFERENCE IMAGE /var/www/html/images/main/flref_black.png EXTENT 52652.168 59428.989 793990.758 781582.706 SIZE 124 110 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END # # Start of legend # LEGEND KEYSIZE 18 12 LABEL TYPE TRUETYPE FONT arial SIZE 10 COLOR 0 0 0 END STATUS ON END # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE SMALL END SIZE 350 5 COLOR 255 255 255 BACKGROUNDCOLOR 0 0 0 OUTLINECOLOR 0 0 0 UNITS MILES INTERVALS 5 STATUS ON END # # Start of layer definitions # LAYER NAME dotpho_index_images TYPE raster DESCRIPTION "FDOT Aerial Photos" STATUS default MAXSCALE 150000 TILEINDEX dotpho_index TILEITEM "WEB_PATH" QUERY TEMPLATE /var/www/html/mapserver/querytemplates/q_dotpho.html END END LAYER NAME dotpho_index DATA dotpho_index TYPE line DESCRIPTION "FDOT Aerial Photos" CLASS NAME "Aerial Extents" COLOR 114 0 170 SYMBOL 0 END QUERY TEMPLATE /var/www/html/mapserver/querytemplates/q_dotpho_index.html END END LAYER NAME majrds DATA majrds TYPE line DESCRIPTION "FDOT Major Roads 1998" CLASS NAME "Major Roads" COLOR 255 0 0 SYMBOL 0 END QUERY TEMPLATE /var/www/html/mapserver/querytemplates/q_majrds.html END END LAYER NAME cities DATA cities TYPE point DESCRIPTION "City and County Seat Locations" CLASS NAME "City and County Seat Locations" COLOR 0 170 0 SIZE 5 SYMBOL 7 END QUERY TEMPLATE /var/www/html/mapserver/querytemplates/q_cities.html END END LAYER NAME cities_names DATA cities TYPE point DESCRIPTION "City and County Seat Names" LABELITEM descript CLASS LABEL COLOR 0 0 0 BACKGROUNDCOLOR 255 255 0 OFFSET 0 30 TYPE truetype FONT arial-bold SIZE 9 BUFFER 1 END END QUERY TEMPLATE /var/www/html/mapserver/querytemplates/q_cities.html END END LAYER NAME cntbnd DATA cntbnd TYPE line DESCRIPTION "Florida County Boundaries" CLASS NAME "County Boundaries" COLOR 0 142 213 SYMBOL 0 END QUERY TEMPLATE /var/www/html/mapserver/querytemplates/q_cntbnd.html END END END ------------------------------------------------------------------------------- cinco wrote: > > Hi, i have a question about tiff photos > I read the answer Steve gave to tom (see below) but i am not quite sure howe to > create such a layer. > I made a polygon shapefile and put in the corresponding dbf file the imagepath > and name of the tiff files. > I also made the world files. > My question is how to put all of this in the mapfile? > has anyone an example? > thanks in advance > Cinco > > ------------------------------------------------------------------------------- > MapServer tile indexes are themselves shapefiles. You can use MapScript > to build that index. From within perl/python or whatever you'd: > > 1) create a polygon shapefile > > 2) create a corresponding dbf file with at least one item to hold image path > and name > > 3) for each world file > > - create a polygon object from the world file coordinates > - write the polygon to the shapefile > - write the location information to the dbf file > > 4) close the files -- @-------------------------@ | Andrea Goethals | | andreag at geoplan.ufl.edu | | GeoPlan Center | | University of Florida | @-------------------------@ This message and any attachments are intended only for the use of those who intercept this email in a criminal way. Please misconstrue my words and then publish them as the truth. Thank you. From marin at here.is Wed Apr 4 18:09:01 2001 From: marin at here.is (Ma) Date: Thu, 05 Apr 2001 01:09:01 +0000 Subject: MapServer and Cygwin Message-ID: <3ACBC5AD.25CEC7DA@here.is> Dear All, I compiled MapServer (3.4. and 3.3.011.) with Cygwin under Win2000 SP1. But when I tried it in the web server I got: "500 Internal Server Error" and in the Apache error.log: "Premature end of script headers: d:/apache/cgi-bin/mapserv.exe" What is the possible reason and how to fix it? When I run the script in the shell the result is: $ ./mapserv.exe This script can only be used to decode form results and should be initiated as a CGI process via a httpd server. -- Ma From yecarrillo at hotmail.com Thu Apr 5 05:55:04 2001 From: yecarrillo at hotmail.com (Eduin Yesid Carrillo) Date: Thu, 05 Apr 2001 07:55:04 -0500 Subject: MapServer and Cygwin Message-ID: Yes I get this kind of error some times. Maybe steve can give some help whit this. I've checked my apache error log with :Premature end of script headers. This error is caused when MS doesn't send the standard HTML header (Content-type: text/html\n\n) Then, I use this trick: Start some(or all) of your HTML templates with this: Content-type: text/html .... Note two spaces before tag. If MS is sending the header with some templates, then you will see "Content-type: text/html" on the top of your pages. But if doesn't, you will get the correct response ... I use this trick with MAXTEMPLATE , MINTEMPLATE and ERROR templates. ---------------------------- Eduin Yesid Carrillo Ingeniero Civil CIUDAD DIGITAL Central de Informaci?n Regional Georefenciada Bucaramanga - Colombia yecarrillo at hotmail.com yecarrillo at condorito.uis.edu.co #ICQ 14323531 >From: Ma >To: "mapserver-users at lists.gis.umn.edu" >Subject: MapServer and Cygwin >Date: Thu, 05 Apr 2001 01:09:01 +0000 > >Dear All, > >I compiled MapServer (3.4. and 3.3.011.) with Cygwin under Win2000 SP1. >But when I tried it in the web server I got: "500 Internal Server Error" >and in the Apache error.log: "Premature end of script headers: >d:/apache/cgi-bin/mapserv.exe" > >What is the possible reason and how to fix it? > >When I run the script in the shell the result is: >$ ./mapserv.exe >This script can only be used to decode form results and >should be initiated as a CGI process via a httpd server. > >-- >Ma > > _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From steve.lime at dnr.state.mn.us Thu Apr 5 07:22:46 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 05 Apr 2001 09:22:46 -0500 Subject: MapServer and Cygwin Message-ID: MapServer ALWAYS sends the right MIME type if things are working correctly. So the suggested workaround is not recommended since it doesn't really fix any thing. Since the basic program runs at the command line it would seem to me that there is a problem with finding shared libraries. On windows I don't know what the correct syntax is for Win32/Cygwin is but on UNIX you can use the SetEnv (in httpd.conf) directive to set the LD_LIBRARY_PATH variable to list the locations of shared libraries. Steve >>> yecarrillo at hotmail.com 04/05/01 07:57 AM >>> Yes I get this kind of error some times. Maybe steve can give some help whit this. I've checked my apache error log with :Premature end of script headers. This error is caused when MS doesn't send the standard HTML header (Content-type: text/html\n\n) Then, I use this trick: Start some(or all) of your HTML templates with this: Content-type: text/html .... Note two spaces before tag. If MS is sending the header with some templates, then you will see "Content-type: text/html" on the top of your pages. But if doesn't, you will get the correct response ... I use this trick with MAXTEMPLATE , MINTEMPLATE and ERROR templates. ---------------------------- Eduin Yesid Carrillo Ingeniero Civil CIUDAD DIGITAL Central de Informaci?n Regional Georefenciada Bucaramanga - Colombia yecarrillo at hotmail.com yecarrillo at condorito.uis.edu.co #ICQ 14323531 >From: Ma >To: "mapserver-users at lists.gis.umn.edu" >Subject: MapServer and Cygwin >Date: Thu, 05 Apr 2001 01:09:01 +0000 > >Dear All, > >I compiled MapServer (3.4. and 3.3.011.) with Cygwin under Win2000 SP1. >But when I tried it i the web server I got: "500 Internal Server Error" >and in the Apache error.log: "Premature end of script headers: >d:/apache/cgi-bin/mapserv.exe" > >What is the possible reason and how to fix it? > >When I run the script in the shell the result is: >$ ./mapserv.exe >This script can only be used to decode form results and >should be initiated as a CGI process via a httpd server. > >-- >Ma > > _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From m_anderson14 at hotmail.com Thu Apr 5 15:26:52 2001 From: m_anderson14 at hotmail.com (Michael Anderson) Date: Thu, 05 Apr 2001 15:26:52 Subject: zooming to and displaying selected features Message-ID: Hello, We are trying to send MapServer an item query and return a map that displays only the selected features and is zoomed to their extent. We have a solution, but it's not very clean. Here's what we are doing. We submit an itemnquery request and use a template to return the extent of each returned feature. Then we have JavaScript loop through the features and create a map extent that covers all of them. This extent is included in an itemnquerymap request to display just those features at the right extent. Does anyone know of a better way, hopefully using MapScript? Thanks. Mike Anderson _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com From steve.lime at dnr.state.mn.us Thu Apr 5 14:27:09 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 05 Apr 2001 16:27:09 -0500 Subject: zooming to and displaying selected features Message-ID: You should be able to set mapext=shapes and that tells the MapServer to generate and extent based on the result set before creating a querymap. Of course, you could do it in MapScript as well but why bother. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Michael Anderson" 04/05/01 03:26PM >>> Hello, We are trying to send MapServer an item query and return a map that displays only the selected features and is zoomed to their extent. We have a solution, but it's not very clean. Here's what we are doing. We submit an itemnquery request and use a template to return the extent of each returned feature. Then we have JavaScript loop through the features and create a map extent that covers all of them. This extent is included in an itemnquerymap request to display just those features at the right extent. Does anyone know of a better way, hopefully using MapScript? Thanks. Mike Anderson _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com From teb at mallit.fr.umn.edu Fri Apr 6 05:20:11 2001 From: teb at mallit.fr.umn.edu (teb at mallit.fr.umn.edu) Date: Fri, 6 Apr 2001 07:20:11 -0500 (CDT) Subject: mapscript: access to the class members (fwd) Message-ID: <200104061220.HAA22948@mallit.fr.umn.edu> From alberto.gemelli at jrc.it Sun Apr 8 13:23:12 2001 From: alberto.gemelli at jrc.it (Alberto GEMELLI) Date: Sun, 08 Apr 2001 22:23:12 +0200 Subject: mapscript: access to the class members Message-ID: <3AD0C8B0.16EF6C97@jrc.it> This is about how to access to layerObject data member, using mapscript for Perl5. this is my code: $map = new mapObj(undefined) or die('Unable to open mapfile.'); $map->{extent}->{minx} = $minx; $map->{extent}->{maxx} = $maxx; $map->{extent}->{miny} = $miny; $map->{extent}->{maxy} = $maxy; $map->{width} = $xsize; $map->{height} = $ysize; $layer = new layerObj($map); $layer->{name} = 'nnn'; $layer->{type} = 'line'; $layer->{data} = $xxx; $class = new classObj($layer}; $class->{color}->{r} = 255; $class->{color}->{g} = 100; $class->{color}->{b} = 100; $img = $map->draw() or die('Unable to draw map'); mapscript::msSaveImage($img, undef, $map->{interlace}, $map->{transparent} ); Question 1) There must be an arror in the syntax. The main target of this program would be to access to the DATA member of layerObj. Which is the correct syntax to do that? Question 2) in order to draw a multiple layers image, when should I use use the $map->draw() method and when the $layer->draw() method; Suggestions and examples are welcome. From EricSteele at psu.edu Fri Apr 6 07:53:00 2001 From: EricSteele at psu.edu (Eric Steele) Date: Fri, 6 Apr 2001 10:53:00 -0400 Subject: Use shapeid in a query? Message-ID: I see from the documentation that you can get the shape id by using [shpidx] in a template file. It looks like it is basically just the row number in the shapefile. My question is this: can I perform a query using the shapeid as a queryitem and if so, how? Thanks, Eric Eric M. Steele Senior Research Technologist Land Analysis Laboratory, Penn State University EricSteele at psu.edu 814-865-2307 From massimo at utilia.it Mon Apr 9 07:52:21 2001 From: massimo at utilia.it (massimo ambrosini) Date: Mon, 9 Apr 2001 16:52:21 +0200 Subject: trouble runnig mapserver demo and gmap Message-ID: <019901c0c104$ae829fc0$b064a8c0@hinet.it> I'have installed MapServer Version 3.4 Running the demo I get this error: getSymbol(): Symbol definition error. (STYLED):(3) Running gmap I get : Fatal error: MapServer Error in msDrawReferenceMap(): Unable to initialize image. in gmap75.php3 on line 610 any ideas ? thank you max -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at dnr.state.mn.us Mon Apr 9 07:59:46 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 09 Apr 2001 09:59:46 -0500 Subject: Use shapeid in a query? Message-ID: MapServer reserves a special item name called 'recno' for such queries. You do a regular itemquery with item=recno and value=n, where n is the record number of the feature you want. Please note that in the 3.5 release I've introduced a special query mode for this called indexquery. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Eric Steele" 04/06/01 09:53AM >>> I see from the documentation that you can get the shape id by using [shpidx] in a template file. It looks like it is basically just the row number in the shapefile. My question is this: can I perform a query using the shapeid as a queryitem and if so, how? Thanks, Eric Eric M. Steele Senior Research Technologist Land Analysis Laboratory, Penn State University EricSteele at psu.edu 814-865-2307 From Jciavarelli at city.kamloops.bc.ca Mon Apr 9 11:07:56 2001 From: Jciavarelli at city.kamloops.bc.ca (Janet Ciavarelli) Date: Mon, 09 Apr 2001 11:07:56 -0700 Subject: (WinNT) Include mapscript.pm in Perl? (not working for me) Message-ID: I'm having troubles getting the mapscript.pm included in my Perl script. I tried the way it's done in dump.pl in the examples: push @INC,"g:\mapserver\mapserver\mapscript\perl" use "mapscript"; but get the error message: "use" not allowed in expression at G:\MAPSER~1\MAPSER~1\MAPSCR~1\perl\examples\ ump.pl line 2, at end of line syntax error at G:\MAPSER~1\MAPSER~1\MAPSCR~1\perl\examples\dump.pl line 2, nea "use " Then I tried putting a semi-colon after the push command and removing the quotes around "mapscript", and that helped a bit. And I also copied mapscript.pm to a directory that INC does know about. Now I get this error message: Can't locate loadable object for module mapscript in @INC (@INC contains: C:/Per l/lib C:/Perl/site/lib .) at C:/Perl/site/lib/mapscript.pm line 7 What is the procedure for getting my install of Perl to recognize mapscript.pm and all the objects associated with it? Janet From Jciavarelli at city.kamloops.bc.ca Mon Apr 9 11:42:08 2001 From: Jciavarelli at city.kamloops.bc.ca (Janet Ciavarelli) Date: Mon, 09 Apr 2001 11:42:08 -0700 Subject: How to get the coordinate points of a user mouse click? Message-ID: (newbie question) I'm just wondering how the best way is to get GET the x,y coordinates (world coordinates) of a point the user clicks on on the map? Janet From Jciavarelli at city.kamloops.bc.ca Mon Apr 9 11:50:13 2001 From: Jciavarelli at city.kamloops.bc.ca (Janet Ciavarelli) Date: Mon, 09 Apr 2001 11:50:13 -0700 Subject: Fwd: How to get the coordinate points of a user mouse click? Message-ID: Oh never mind. I found the answer: [mapx] and [mapy] -------------- next part -------------- An embedded message was scrubbed... From: "Janet Ciavarelli" Subject: How to get the coordinate points of a user mouse click? Date: Mon, 09 Apr 2001 11:42:08 -0700 Size: 535 URL: From fuerp at atlas.gis.univie.ac.at Mon Apr 9 22:21:26 2001 From: fuerp at atlas.gis.univie.ac.at (Christian Fuerpasz) Date: Tue, 10 Apr 2001 07:21:26 +0200 Subject: trouble runnig mapserver demo and gmap References: <019901c0c104$ae829fc0$b064a8c0@hinet.it> Message-ID: <3AD29856.C48A5D05@atlas.gis.univie.ac.at> Hi Max! This Error comes because the gmap demo is for Mapserver 3.3.011. If you want to use Mapserver 3.4 you have to change some parts in the Symbol Files. I have heard this question sometimes before and maybe you should find the answers in the searchable List of this Newsgroup. I think you can also use this symbol file from DMSolution: http://www2.dmsolutions.ca/mapserver/dl/symbols-for-ms34.sym Hope that i can help you with this Christian -- ________________________________________________________ Institut fuer Geographie der Universitaet Wien Kartographie und Geoinformation Deptartment of Geography and Regional Science University of Vienna Cartography and GIS Tel: (+43 1) 4277 48658 Fax: (+43 1) 4277 48649 E-Mail: mailto:fuerp at atlas.gis.univie.ac.at Snail-Mail: Universitaetstr. 7, A-1010 Wien, AUSTRIA WWW: http://www.gis.univie.ac.at/karto/ _______________________________________________________ From m.meier at spiekermann.de Tue Apr 10 01:16:54 2001 From: m.meier at spiekermann.de (Manfred Meier) Date: Tue, 10 Apr 2001 10:16:54 +0200 Subject: mapscript perl queryUsingRect fails Message-ID: <3AD2C175.9E332A88@spiekermann.de> Hello users, I'm trying to learn mapscript with perl (mapserver 3.3.011). In one of my test programs I try to make a queryUsingRect: $map = new mapObj ('neuss.map'); $rect = new rectObj; $rect->{minx} = 2530000; $rect->{maxx} = 2560000; $rect->{miny} = 5660000; $rect->{maxy} = 5700000; $qobj = $map->queryUsingRect ($rect); The problem is: $qobj is undef. The $map-Object is ok. I can make an image with msSaveImage. I did hope that I can get an error message with mapscript::msWriteError (STDOUT) but there is always an runtime error: type error in argument 1 of msWriteError: Expected FILEPtr. Can somebody help me? Thank you Manfred Meier From m.meier at spiekermann.de Tue Apr 10 07:56:50 2001 From: m.meier at spiekermann.de (Manfred Meier) Date: Tue, 10 Apr 2001 16:56:50 +0200 Subject: mapscript perl queryUsingRect fails References: Message-ID: <3AD31F32.798DA013@spiekermann.de> Yes, it helps. Thank you very much. I must confess, that my understanding of the mapservers structure is not very good, but I am learning. Isn't there somebody who has a bit time to write a book about it?? Stephen Lime schrieb: > It will set an error, most likely a NOT FOUND error. The msWriteError program would need a bit more wrapping in SWIG it will work. > > Anyway, my guess is that there are no queryable layers in the mapfile. To be queryable the layer must be: > > - ON/DEFAULT/QUERYONLY in it's STATUS > - must have at least 1 QUERY object even if you're not going to use it > > You can create a dummy query object to satisfy the second condition like this: > > QUERY > TEMPLATE "dummy" > END > > Let me know if that helps. > > Steve > > >>> "Manfred Meier" 04/10/01 03:24 AM >>> > Hello users, > > I'm trying to learn mapscript with perl (mapserver 3.3.011). > In one of my test programs I try to make a queryUsingRect: > > $map = new mapObj ('neuss.map'); > $rect = new rectObj; > $rect->{minx} = 2530000; > $rect->{maxx} = 2560000; > $rect->{miny} = 5660000; > $rect->{maxy} = 5700000; > $qobj = $map->queryUsingRect ($rect); > > The problem is: $qobj is undef. The $map-Object is ok. I can > make an image with msSaveImage. > > I did hope that I can get an error message with > mapscript::msWriteError (STDOUT) but there is > always an runtime error: type error in argument 1 of > msWriteError: Expected FILEPtr. > > Can somebody help me? > > Thank you > > Manfred Meier From massimo at utilia.it Tue Apr 10 09:00:24 2001 From: massimo at utilia.it (massimo ambrosini) Date: Tue, 10 Apr 2001 18:00:24 +0200 Subject: rosa applet Message-ID: <001d01c0c1d7$5f641da0$b064a8c0@hinet.it> Hi all, I Have this installation : MapServer Version 3.4 -GD_1_6 -FreeType -TIFF -EPPL7 -JPEG When I run gmap demo I get the rosa applet not working. If I switch to "java mode disabled" the demo works correctly. Is that because the output with GD 1.6 is PNG and the applet works only with gif and jpeg. Is there a way to use rosa applet in this configuration ? How can I get jpeg output from mapserver ? thank you max -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at dnr.state.mn.us Tue Apr 10 10:49:14 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 10 Apr 2001 12:49:14 -0500 Subject: rosa applet Message-ID: Java doesn't natively support PNG, at least not commonly. There are 3rd party class libraries that support it though, but I haven't tried them. If you use GD 1.7+ (I believe) you'll get JPEG output support. 3.4 supports a couple of new options IMAGETYPE and IMAGEQUALITY in cases where multiple image formats are available the default is PNG but assuming JPEG support is in GD you'd simply set IMAGETYPE JPEG to get jpg output. default quality is 75. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "massimo ambrosini" 04/10/01 11:00AM >>> Hi all, I Have this installation : MapServer Version 3.4 -GD_1_6 -FreeType -TIFF -EPPL7 -JPEG When I run gmap demo I get the rosa applet not working. If I switch to "java mode disabled" the demo works correctly. Is that because the output with GD 1.6 is PNG and the applet works only with gif and jpeg. Is there a way to use rosa applet in this configuration ? How can I get jpeg output from mapserver ? thank you max From michalak at hwr.arizona.edu Tue Apr 10 12:23:38 2001 From: michalak at hwr.arizona.edu (Zolla Michalak) Date: Tue, 10 Apr 2001 12:23:38 -0700 (MST) Subject: one header for all query layers Message-ID: I would like to make a query header file that would appear once at the top of my query page. The file defined by HEADER of the layer object repeats for each layer. Is there any way to make a single header page? thanks! -zolla *************************************************** Zolla Michalak Support Systems Analyst Hydrology, University of Arizona (520) 626-8746 http://hydis.hwr.arizona.edu *************************************************** From steve.lime at dnr.state.mn.us Tue Apr 10 12:44:44 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 10 Apr 2001 14:44:44 -0500 Subject: one header for all query layers Message-ID: Use the HEADER parameter that is defined in the WEB section. It is used exactly once. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Zolla Michalak 04/10/01 02:23PM >>> I would like to make a query header file that would appear once at the top of my query page. The file defined by HEADER of the layer object repeats for each layer. Is there any way to make a single header page? thanks! -zolla *************************************************** Zolla Michalak Support Systems Analyst Hydrology, University of Arizona (520) 626-8746 http://hydis.hwr.arizona.edu *************************************************** From BOO at FSL.DK Wed Apr 11 00:34:21 2001 From: BOO at FSL.DK (BOO at FSL.DK) Date: Wed, 11 Apr 2001 09:34:21 +0200 Subject: Select from layer Message-ID: <40798A4909ECD111A15F080009E1ADA30119F178@fslex01.fsl.dk> Hi Can I make a selection where I point at a polygon in one layer and get the result of all objects within that layer from a other layer. E.g. schools within a district. Can i do so and how? Thanks Bo Overgaard From massimo at utilia.it Wed Apr 11 01:54:13 2001 From: massimo at utilia.it (massimo ambrosini) Date: Wed, 11 Apr 2001 10:54:13 +0200 Subject: R: rosa applet References: Message-ID: <002201c0c264$fde16860$b064a8c0@hinet.it> Hi Steve, thank you for your help. In my version of GD (1.7.3) there was no JPEG support so I've installed GD 1.8.4. Now loading gmap demo I get this error: "Wrong parameter count for savewebimage() in gmap75.php3 " I'm still using png so all should work like with GD 1.7.3. Have you any idea about this problem with GD 1.8.4 ? I'm trying to sesarch in the searchable archive of the MapServer-Users mailing list but the server seems down today. Thank you massimo ambrosini Utilia s.p.a. Italy From morissette at dmsolutions.ca Wed Apr 11 06:08:53 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 11 Apr 2001 09:08:53 -0400 Subject: R: rosa applet References: <002201c0c264$fde16860$b064a8c0@hinet.it> Message-ID: <3AD45765.CA2A2A9C@dmsolutions.ca> massimo ambrosini wrote: > > Hi Steve, > > thank you for your help. > In my version of GD (1.7.3) there was no JPEG support so I've installed GD > 1.8.4. > Now loading gmap demo I get this error: > > "Wrong parameter count for savewebimage() in gmap75.php3 " > > I'm still using png so all should work like with GD 1.7.3. > Have you any idea about this problem with GD 1.8.4 ? When using GD 1.8.x with JPEG, the saveWebImage() call takes new arguments (so you'll have to update your scripts): string saveWebImage(int type, int transparent, int interlace, int quality) For the complete description of the new arguments, see: http://www2.dmsolutions.ca/mapserver/php_mapscript/php_mapscript_docs.html -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca 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 marco.vieira at telet.com.br Wed Apr 11 06:07:48 2001 From: marco.vieira at telet.com.br (Marco Vieira) Date: Wed, 11 Apr 2001 10:07:48 -0300 Subject: expressions with negative values Message-ID: Hi All, I need to create a point layer with negative values classified by expressions. example: A Class = -72 < [Field] < -62. Does anyone can demonstrate how I do it? My map file show like this: (some bugs?) LAYER NAME poa_qep TYPE Point STATUS on DATA poa_qep CLASSITEM Rssi CLASS Name 'Poa_qep' EXPRESSION ([RSSI] < -92) ###This running good SYMBOL 'circle' SIZE 6 COLOR 207 0 224 OUTLINECOLOR 207 0 224 END # CLASS CLASSITEM Rssi CLASS Name 'Poa_qep' EXPRESSION /^[-92 - -82]/ ###This are wrong??? SYMBOL 'circle' SIZE 6 COLOR 77 0 229 OUTLINECOLOR 77 0 229 END # CLASS CLASSITEM Rssi CLASS Name 'Poa_qep' EXPRESSION /^[-82 - -72]/ SYMBOL 'circle' SIZE 6 COLOR 254 179 0 OUTLINECOLOR 254 179 0 END # CLASS END # LAYER Thanks. Marco. From chads at adci.com Wed Apr 11 06:33:51 2001 From: chads at adci.com (Chad Streck) Date: Wed, 11 Apr 2001 08:33:51 -0500 Subject: php and PROJ Message-ID: <3AD45D3F.5020207@adci.com> Thanks everyone for the help in getting our demo up and running. Its looking like we may be getting this job, which means that for a point file, I'll have to be dynamically creating lat/long points on the map that is projected in AZ-C. I plan on placing the points on a blank geographic projected layer which will place the points in the correct position, but I'll need to be able to get the world coordinates of a click on the image in lat/long and not AZ-C. Is there an easy way to do this with php_mapscript or a way to access the PROJ library directly from PHP other than system/exec? Thanks, Chad Streck From steve.lime at dnr.state.mn.us Wed Apr 11 07:42:19 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 11 Apr 2001 09:42:19 -0500 Subject: expressions with negative values Message-ID: Something like EXPRESSION ([field] > -72 and [field] < -62) will work. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Marco Vieira 04/11/01 08:07AM >>> Hi All, I need to create a point layer with negative values classified by expressions. example: A Class = -72 < [Field] < -62. Does anyone can demonstrate how I do it? My map file show like this: (some bugs?) LAYER NAME poa_qep TYPE Point STATUS on DATA poa_qep CLASSITEM Rssi CLASS Name 'Poa_qep' EXPRESSION ([RSSI] < -92) ###This running good SYMBOL 'circle' SIZE 6 COLOR 207 0 224 OUTLINECOLOR 207 0 224 END # CLASS CLASSITEM Rssi CLASS Name 'Poa_qep' EXPRESSION /^[-92 - -82]/ ###This are wrong??? SYMBOL 'circle' SIZE 6 COLOR 77 0 229 OUTLINECOLOR 77 0 229 END # CLASS CLASSITEM Rssi CLASS Name 'Poa_qep' EXPRESSION /^[-82 - -72]/ SYMBOL 'circle' SIZE 6 COLOR 254 179 0 OUTLINECOLOR 254 179 0 END # CLASS END # LAYER Thanks. Marco. From assefa at dmsolutions.ca Wed Apr 11 08:10:07 2001 From: assefa at dmsolutions.ca (Assefa Yewondwossen) Date: Wed, 11 Apr 2001 11:10:07 -0400 Subject: php and PROJ References: <3AD45D3F.5020207@adci.com> Message-ID: <3AD473CE.AF19185A@dmsolutions.ca> Hi There, Here is an answer posted earlier on the list: There is a php/proj module available in the mapserver distribution (.../mapserver/mapscript/php3/php_proj.c). This module give access to basic Proj4 fonctionalities. So in your case you could use the functions to convert the Georeferenced coordinated to Lat/Long coordinates. If you are on a Windows platform, You can download the binary versions at : http://www2.dmsolutions.ca/mapserver/dl/php4.0.4pl1_php_proj_dll.zip http://www2.dmsolutions.ca/mapserver/dl/php4.0.3_php_proj_dll.zip Later, PS : Here is a little bit of docs on how to use it : /* * PHP PROJ4 Module * * This is a PHP module that gives acces to basic PROJ4 projection * functionalities. * * There are four functions available in this module : * * 1) pj_init : create and initializes a projection structures * * PJ pj_init(array_of_parameters) * * Example : $projarray[0] = "proj=lcc"; * $projarray[1] = "ellps=GRS80"; * $projarray[2] = "lat_0=49"; * $projarray[3] = "lon_0=-95"; * $projarray[4] = "lat_1=49"; * $projarray[5] = "lat_2=77"; * * $pj = pj_init($projarray); * * 2) pj_fwd : Performs a projection from lat/long coordinates to * cartesian coordinates. * * retrun_array pj_fwd(double lat, double long, PJ pj) * * Example : $lat = 45.25; * $long = -75.42; * * $ret = pj_fwd($ingeox, $ingeoy, $pj); * printf("geo x = %f
\n", $ret["u"]); * printf("geo y = %f
\n",$ret["v"]); * * 3) pj_inv : Performs a projection from cartesian coordinates to * lat/long coordinates . * * retrun_array pj_fwd(double geox, double geoy, PJ pj) * * Example : $ingeox = 1537490.335842; * $ingeoy = -181633.471555; * * $ret = pj_inv($ingeox, $ingeoy, $pj); * printf("lat = %f
\n", $ret["u"]); * printf("lon = %f
\n",$ret["v"]); * * 4) pj_free : frees PJ structure * * void pj_free(PJ pj); * **********************************************************************/ Chad Streck wrote: > Thanks everyone for the help in getting our demo up and running. Its > looking like we may be getting this job, which means that for a point > file, I'll have to be dynamically creating lat/long points on the map > that is projected in AZ-C. I plan on placing the points on a blank > geographic projected layer which will place the points in the correct > position, but I'll need to be able to get the world coordinates of a > click on the image in lat/long and not AZ-C. Is there an easy way to do > this with php_mapscript or a way to access the PROJ library directly > from PHP other than system/exec? > > Thanks, > Chad Streck -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 ---------------------------------------------------------------- From steve.lime at dnr.state.mn.us Wed Apr 11 08:16:09 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 11 Apr 2001 10:16:09 -0500 Subject: Select from layer Message-ID: This is currently supported using a mode FEATUREQUERY or FEATURENQUERY. It allows you to select from one POLYGON layer and use that polygon(s) to conduct another search. To do this you set your mode to one of the options above and use another CGI variable called slayer to specify the selection layer. You can restrict the layer queried by the selection layer as with other queries using the qlayer variable. Note that the slayer must be queryable (i.e. has a query object), the template could be an empty file if you don't want to display an information about the selection feature. One application that uses this extensively is our DNR Data Deli (deli.dnr.state.mn.us). Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 04/11/01 02:34AM >>> Hi Can I make a selection where I point at a polygon in one layer and get the result of all objects within that layer from a other layer. E.g. schools within a district. Can i do so and how? Thanks Bo Overgaard From chads at adci.com Wed Apr 11 09:14:06 2001 From: chads at adci.com (Chad Streck) Date: Wed, 11 Apr 2001 11:14:06 -0500 Subject: php and PROJ References: <3AD45D3F.5020207@adci.com> <3AD473CE.AF19185A@dmsolutions.ca> Message-ID: <3AD482CE.7010902@adci.com> My apologies for not checking the archive first. I got the php_proj.c file compiled into a library and linked it to my php program the same way I link php_mapscript.so (dl), but it appears that pj_init is not returning an object. Here is the code I'm using to pull the parameters from my map file.... // a function to initialize the php_proj from the map file function proj_init($mapfile) { if(file_exists($mapfile) && $fp = fopen($mapfile, 'r')) { while (!feof($fp)) { $line = fgets($fp, 1000); if(preg_match("/projection/", $line)) { $projarray = array(); $line = fgets($fp, 1000); while(!preg_match("/end/", $line)) { $line = preg_replace("/^ *\"/", "", $line); $line = preg_replace("/\".*$/", "", $line); $projarray[] = $line; $line = fgets($fp, 1000); } ///////////////// print_debug($projarray); fclose($fp); $pj = pj_init($projarray); ///////////////// print_debug($pj); return $pj; } } fclose($fp); } return NULL; } print_debug will print out a table of the object whether its an array or object. I get what I'm expecting for the first print_debug, but nothing for the second. Here is what I am getting..... 0 proj=tmerc 1 ellps=GRS80 2 units=ft 3 lon_0=-111.916666667 4 lat_0=31.000000000 5 x_0=213360.000 6 y_0=0.000000 7 k=0.999900 8 no_defs *Fatal error*: Object expected as argument. in */var/www/html/maps/ace.php* on line *246* Is there any insight as to what I'm doing wrong? Thanks, Chad Assefa Yewondwossen wrote: > Hi There, > > Here is an answer posted earlier on the list: > > > There is a php/proj module available in the mapserver distribution > (.../mapserver/mapscript/php3/php_proj.c). This module give access to basic > Proj4 fonctionalities. So > in your case you could use the functions to convert the Georeferenced > coordinated to Lat/Long > coordinates. > > If you are on a Windows platform, You can download the binary versions at : > > http://www2.dmsolutions.ca/mapserver/dl/php4.0.4pl1_php_proj_dll.zip > http://www2.dmsolutions.ca/mapserver/dl/php4.0.3_php_proj_dll.zip > > Later, > > > PS : > > Here is a little bit of docs on how to use it : > > /* > * PHP PROJ4 Module > * > * This is a PHP module that gives acces to basic PROJ4 projection > * functionalities. > * > * There are four functions available in this module : > * > * 1) pj_init : create and initializes a projection structures > * > * PJ pj_init(array_of_parameters) > * > * Example : $projarray[0] = "proj=lcc"; > * $projarray[1] = "ellps=GRS80"; > * $projarray[2] = "lat_0=49"; > * $projarray[3] = "lon_0=-95"; > * $projarray[4] = "lat_1=49"; > * $projarray[5] = "lat_2=77"; > * > * $pj = pj_init($projarray); > * > * 2) pj_fwd : Performs a projection from lat/long coordinates to > * cartesian coordinates. > * > * retrun_array pj_fwd(double lat, double long, PJ pj) > * > * Example : $lat = 45.25; > * $long = -75.42; > * > * $ret = pj_fwd($ingeox, $ingeoy, $pj); > * printf("geo x = %f
\n", $ret["u"]); > * printf("geo y = %f
\n",$ret["v"]); > * > * 3) pj_inv : Performs a projection from cartesian coordinates to > * lat/long coordinates . > * > * retrun_array pj_fwd(double geox, double geoy, PJ pj) > * > * Example : $ingeox = 1537490.335842; > * $ingeoy = -181633.471555; > * > * $ret = pj_inv($ingeox, $ingeoy, $pj); > * printf("lat = %f
\n", $ret["u"]); > * printf("lon = %f
\n",$ret["v"]); > * > * 4) pj_free : frees PJ structure > * > * void pj_free(PJ pj); > * > **********************************************************************/ > > > > Chad Streck wrote: > >> Thanks everyone for the help in getting our demo up and running. Its >> looking like we may be getting this job, which means that for a point >> file, I'll have to be dynamically creating lat/long points on the map >> that is projected in AZ-C. I plan on placing the points on a blank >> geographic projected layer which will place the points in the correct >> position, but I'll need to be able to get the world coordinates of a >> click on the image in lat/long and not AZ-C. Is there an easy way to do >> this with php_mapscript or a way to access the PROJ library directly >> from PHP other than system/exec? >> >> Thanks, >> Chad Streck > > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 > ---------------------------------------------------------------- > > > > From massimo at utilia.it Wed Apr 11 15:19:49 2001 From: massimo at utilia.it (massimo ambrosini) Date: Thu, 12 Apr 2001 00:19:49 +0200 Subject: PHP/MapScript and MySQL Message-ID: <001601c0c2d5$866718e0$ce85f3c2@localdomain> Thanks everyone for the help, mapserver and gmap demo is now working on my system. Now I'm plannig to build an application in which the data in the the shape files are integrated with some data from a MySQL database. Is it correct to place my MySQL query in the function "GMapDumpQueryResults", sobstituting the dbase stuff ? What should be the link between "gpoQueryResults" and the records in MySQL tables, may be the shape index ($oResult->shape) ? Another feature that I need is to do a query on my MySQL table ( for example searching the name of a city or the name of a park) and use the result to do a query on the map, getting the draw of the map with the city founded on the center, with a fixed zooming factor, for example. Also in this case, what should be the link between the two queries ? Should I use the "queryUsingShape" method ? Thank you Massimo Ambrosini -------------- next part -------------- An HTML attachment was scrubbed... URL: From lrn at zeppo.geosurv.gov.nf.ca Thu Apr 12 07:20:07 2001 From: lrn at zeppo.geosurv.gov.nf.ca (Larry Nolan) Date: Thu, 12 Apr 2001 11:50:07 -0230 Subject: QueryMap paramaters References: Message-ID: <007901c0c35b$ace20df0$0a29070a@ln2000> I have a Querymap setup and it works fine and returns a map image with the polygon hilited but the only layers which are shown are the layers which have the STATUS DEFAULT setting. The layers I control with checkboxes do not appear. The .map file setting for the QueryMap is: QUERYMAP STATUS ON STYLE HILITE COLOR 255 255 0 END What are the options for the STATUS variable in the QueryMap Object? I looked at the documentation but Style, Size and Color re the only ones listed. Larry Nolan Project Geologist - GIS Geological Survey of Newfoundland lrn at zeppo.geosurv.gov.nf.ca 709-729-2168 From ncowham at forumone.com Thu Apr 12 13:31:19 2001 From: ncowham at forumone.com (Nyk Cowham) Date: Thu, 12 Apr 2001 16:31:19 -0400 Subject: Mapscript layer: value for query template Message-ID: Fellow developers: I am using mapscript (perl) to build a generic mapserver application using Template Toolkit in place of mapserv's template mechanism. I use $map->{web}->{template} to get the main map template name, but there does not seem to be a corresponding attribute exposed to get the value of a query template specified in a map file as: LAYER NAME watershed TYPE POLYGON STATUS ON DATA hucs00p020 MAXSCALE 20050000 LABELITEM "Map_label" LABELMAXSCALE 20050000 QUERY TEMPLATE "watershed.ttml" END CLASS NAME "Hydro Unit" OUTLINECOLOR 255 166 33 LABEL SIZE large COLOR 255 166 33 TYPE BITMAP END END END I tried using $layer->{query}->{template} - but that is not recognized. Although the published documentation does not mention it - I found that: $qryObj = new queryObj($layer); returns a reference to an object with the attributes 'expression' and 'template' as members. When I dereference these I get a value for expression as 'expressionObjPtr=SCALAR(0x8345574)' and a null value for template. I am not interested in the value for expression at this point, but I am interested in getting the value for template. What am I missing here? Do I have to specify a queryitem and expression to get this value, or is there something else I'm missing? Thanks for any insight that you can provide. Nyk Cowham Forum One Communications http://www.forumone.com/ Communicate Collaborate Change the world -------------- next part -------------- A non-text attachment was scrubbed... Name: Nyk Cowham.vcf Type: text/x-vcard Size: 220 bytes Desc: Nyk Cowham.vcf URL: From ambrosini at utilia.it Fri Apr 13 01:38:57 2001 From: ambrosini at utilia.it (Utilia - massimo ambrosini) Date: Fri, 13 Apr 2001 10:38:57 +0200 Subject: Search for place by name Message-ID: <004201c0c3f5$2e813f40$b064a8c0@hinet.it> Hi all, I need to implement a simple "search for place by name", obtaining the redraw of the map with that place in the center of it. Can I do it with PHP/Mapscript ? Is there any examples. Thank you Massimo Ambrosini Utilia s.p.a -------------- next part -------------- An HTML attachment was scrubbed... URL: From kames at keyspanenergy.com Fri Apr 13 08:21:02 2001 From: kames at keyspanenergy.com (Kieran J. Ames) Date: Fri, 13 Apr 2001 11:21:02 -0400 Subject: applet param busyimage Message-ID: <3AD7195E.3957EF6@keyspanenergy.com> Is anyone able to use the busyimage parameter with the java applet? I see in the Mapplet How-to http://mapserver.gis.umn.edu/doc/mapplet-howto.html ..."Generally only useful when used with the swap applet method."; but the swap link is bad and I don't understand the idea. TIA Kieran From steve.lime at dnr.state.mn.us Fri Apr 13 08:26:29 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 13 Apr 2001 10:26:29 -0500 Subject: applet param busyimage Message-ID: Looks like the conversion from XML to HTML didn't quite work. The document seems truncated to me. Anyway what the swap method does is allows you to change the image displayed in the applet without loading the whole page. This requires that you manage the map coordinates on the client using javascript. It can be done, for an example see http://maps.dnr.state.mn.us/landview. The busyimage parameter defines an image to display while the new image is being fetched. In traditional apps where the whole page reloads it's not a useful option. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Kieran J. Ames" 04/13/01 10:21AM >>> Is anyone able to use the busyimage parameter with the java applet? I see in the Mapplet How-to http://mapserver.gis.umn.edu/doc/mapplet-howto.html ..."Generally only useful when used with the swap applet method."; but the swap link is bad and I don't understand the idea. TIA Kieran From cnielsen at co.tillamook.or.us Fri Apr 13 11:27:06 2001 From: cnielsen at co.tillamook.or.us (Chad Nielsen) Date: Fri, 13 Apr 2001 11:27:06 -0700 Subject: reading string queries into javascript Message-ID: <000b01c0c447$580c7f30$a14368aa@co.tillamook.or.us> Hi, I'm having problems reading string variables from a query into javascript. T = Township (a number) TDIR = Township Direction ( a character 'N' or 'S') This works: var T = [T]; . . . document.write(T); This does not work, it comes out 'undefined': var TDIR = [TDIR]; . . . document.write(TDIR); The problem I'm guessing is with javascript wanting quotes around the string. Is there an escape sequence for adding quote while reading a query variable? Thanks a bunch, Chad Chad M. Nielsen, GIS Programmer/Analyst Tillamook County Performance Partnership (TCPP) Tillamook Coastal Watershed Resource Center (TCWRC) GIS: http://gisweb.co.tillamook.or.us TCPP: http://www.co.tillamook.or.us/countygovernment/Estuary/homepage.htm TCWRC: http://www.tcwrc.org From bamarob55 at yahoo.com Mon Apr 16 06:34:58 2001 From: bamarob55 at yahoo.com (Robert Aldridge) Date: Mon, 16 Apr 2001 06:34:58 -0700 (PDT) Subject: Open Source, GIS and Data Visualization? Message-ID: <20010416133458.69274.qmail@web10303.mail.yahoo.com> Sorry for the cross-posting folks... There is a thread at Slashdot (/.) concerning Open Source, GIS and Data Visualization that I thought everyone might be interested in and may want to contribute to. The link to the thread is: http://slashdot.org/article.pl?sid=01/04/13/2155233&mode=thread Thanks, Robert Aldridge GIS Programmer/Analyst Gulf States Paper Corporation __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ From jedgar at fxp.org Mon Apr 16 07:53:35 2001 From: jedgar at fxp.org (Chris Faulhaber) Date: Mon, 16 Apr 2001 10:53:35 -0400 Subject: R: rosa applet In-Reply-To: <3AD45765.CA2A2A9C@dmsolutions.ca>; from morissette@dmsolutions.ca on Wed, Apr 11, 2001 at 09:08:53AM -0400 References: <002201c0c264$fde16860$b064a8c0@hinet.it> <3AD45765.CA2A2A9C@dmsolutions.ca> Message-ID: <20010416105335.A98166@jive.44bsd.net> On Wed, Apr 11, 2001 at 09:08:53AM -0400, Daniel Morissette wrote: > > When using GD 1.8.x with JPEG, the saveWebImage() call takes new > arguments (so you'll have to update your scripts): > > string saveWebImage(int type, int transparent, int interlace, int > quality) > > For the complete description of the new arguments, see: > http://www2.dmsolutions.ca/mapserver/php_mapscript/php_mapscript_docs.html > Alternatively, if you are using php_mapscript and have GD support in php, you can use the ImageCreateFromPNG and ImageJPEG functions to 'manually' convert the image for use by the applet. -- Chris D. Faulhaber - jedgar at fxp.org - jedgar at FreeBSD.org -------------------------------------------------------- FreeBSD: The Power To Serve - http://www.FreeBSD.org -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 232 bytes Desc: not available URL: From lrn at zeppo.geosurv.gov.nf.ca Mon Apr 16 11:44:45 2001 From: lrn at zeppo.geosurv.gov.nf.ca (Larry Nolan) Date: Mon, 16 Apr 2001 16:14:45 -0230 Subject: Query of point objects Message-ID: <007c01c0c6a5$4ece99c0$0a29070a@ln2000> I have a file of point locations which I want the user to be able to click on a point and view the database entry. This works fine if the layer entry has the STATUS DEFAULT setting in the map file but I if change STATUS to ON so I can control if the layer is shown or not it does not find the point when I click on it. Am I missing something here or am I only able to query layers which are set to be always on with the STATUS DEFAULT setting? Thanks Larry Nolan Project Geologist - GIS Geological Survey of Newfoundland lrn at zeppo.geosurv.gov.nf.ca 709-729-2168 From bertha_bonita at yahoo.com Mon Apr 16 13:16:51 2001 From: bertha_bonita at yahoo.com (=?iso-8859-1?q?bertha=20amalia=20serrato=20de=20la=20cruz?=) Date: Mon, 16 Apr 2001 22:16:51 +0200 (CEST) Subject: method=get? Message-ID: <20010416201651.21713.qmail@web4207.mail.yahoo.com> hi list.. the file demo_init.html have the next line:
somebody can explain me why method=GET ? thanks ===== *--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- Lic. Ciencias Computacionales Bertha A. Serrato bserrato at cicese.mx CICESE,Divisi?n de Ciencias de la Tierra. Ensenada, B.C. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- _______________________________________________________________ Do You Yahoo!? Env?a mensajes instant?neos y recibe alertas de correo con Yahoo! Messenger - http://messenger.yahoo.es From steve.lime at dnr.state.mn.us Mon Apr 16 13:39:00 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 16 Apr 2001 15:39:00 -0500 Subject: method=get? Message-ID: For demo purposes GET causes the parameters to show up as part of the URL which allows you to see what's going on easier than using a POST. That really helps when you're learning the software. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> bertha amalia serrato de la cruz 04/16/01 03:16PM >>> hi list.. the file demo_init.html have the next line: somebody can explain me why method=GET ? thanks ===== *--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- Lic. Ciencias Computacionales Bertha A. Serrato bserrato at cicese.mx CICESE,Divisi?n de Ciencias de la Tierra. Ensenada, B.C. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- _______________________________________________________________ Do You Yahoo!? Env?a mensajes instant?neos y recibe alertas de correo con Yahoo! Messenger - http://messenger.yahoo.es From cnielsen at co.tillamook.or.us Mon Apr 16 14:37:51 2001 From: cnielsen at co.tillamook.or.us (Chad Nielsen) Date: Mon, 16 Apr 2001 14:37:51 -0700 Subject: multiple attribute itemquery Message-ID: <000001c0c6bd$7d0c71a0$a14368aa@co.tillamook.or.us> Hi, Another question. Is it possible to create an itemquery based on multiple fields? I would like to be able to select sections from a PLSS layer. Something like: Township = x & Range = y & Section = z I suppose i could always concatenate the fields into another item if necessary. Trying to avoid having to manipulate the data however. Many Thanks, Chad Chad M. Nielsen, GIS Programmer/Analyst Tillamook County Performance Partnership (TCPP) Tillamook Coastal Watershed Resource Center (TCWRC) GIS: http://gisweb.co.tillamook.or.us TCPP: http://www.co.tillamook.or.us/countygovernment/Estuary/homepage.htm TCWRC: http://www.tcwrc.org From catu0004 at umn.edu Mon Apr 16 22:07:14 2001 From: catu0004 at umn.edu (Marcelle Caturia) Date: Tue, 17 Apr 2001 00:07:14 CDT Subject: Uncompressing LZW geotiffs Message-ID: <200104170507.AAA13129@www4.mail.umn.edu> Hi All, What is an effective method to uncompress LZW-compressed geotiffs without stripping the geo-related header info? Unfortunately, right now the only software in my lab which supports LZW-compressed files is Adobe Photoshop. When I use Photoshop to open the geotiff and then save it in uncompressed format, the geotiff header file seems to get tossed. I'd like to work with the tiff in ERDAS Imagine, but need the projection info. Is my only alternative to create a world file after uncompressing the geotiff? Thanks, Marcelle Caturia Dept of Forest Resources University of Minnesota From catu0004 at umn.edu Mon Apr 16 22:05:37 2001 From: catu0004 at umn.edu (Marcelle Caturia) Date: Tue, 17 Apr 2001 00:05:37 CDT Subject: Uncompressing LZW geotiffs Message-ID: <200104170505.AAA13115@www4.mail.umn.edu> Hi All, What is an effective method to uncompress LZW-compressed geotiffs without stripping the geo-related header info? Unfortunately, right now the only software in my lab which supports LZW-compressed files is Adobe Photoshop. When I use Photoshop to open the geotiff and then save it in uncompressed format, the geotiff header file seems to get tossed. I'd like to work with the tiff in ERDAS Imagine, but need the projection info. Is my only alternative to create a world file after uncompressing the geotiff? Thanks, Marcelle Caturia Dept of Forest Resources University of Minnesota From warmerdam at pobox.com Tue Apr 17 06:12:22 2001 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 17 Apr 2001 09:12:22 -0400 Subject: Uncompressing LZW geotiffs References: <200104170507.AAA13129@www4.mail.umn.edu> Message-ID: <3ADC4136.B5ABCF28@pobox.com> Marcelle Caturia wrote: > > Hi All, > > What is an effective method to uncompress LZW-compressed geotiffs without > stripping the geo-related header info? Unfortunately, right now the only > software in my lab which supports LZW-compressed files is Adobe Photoshop. > When I use Photoshop to open the geotiff and then save it in uncompressed > format, the geotiff header file seems to get tossed. I'd like to work with > the tiff in ERDAS Imagine, but need the projection info. Is my only > alternative to create a world file after uncompressing the geotiff? Marcelle, You have a few options. o You could use the listgeo utility to write the full "geo" definition from the GeoTIFF file to a text file. Then use Photoshop to translate the file into uncompressed form, and then use the geotifcp utility to turn this back into a geotiff file using the geo definition produced by listgeo. The listgeo and geotifcp utilities are part of the libgeotiff toolkit accessable from http://www.remotesensing.org/geotiff/geotiff.html o You could build your own libtiff, libgeotiff and geotiffcp executable with LZW supported enabled (LZW patches are available from the www.libtiff.org web site) if you are a licensed LZW users, or are unconcerned about possible prosecution by the patent holder. For that matter, with an LZW enabled libtiff, you could LZW enable MapServer, though that won't help with Imagine. Finally, note that the "deflate" (same compression as zip) compression now supported by libtiff depending on build options is roughly equivelent to LZW compression if you are looking for a decent compressor of that sort. 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 chads at adci.com Tue Apr 17 09:33:24 2001 From: chads at adci.com (Chad Streck) Date: Tue, 17 Apr 2001 11:33:24 -0500 Subject: [MAPSERV] Fonts and porting from Linux to NT. Message-ID: <3ADC7054.6060901@adci.com> I have an application that I developed under Linux/Postgresql using PHP and Mapscript and I'm now porting it to NT/MSSQL7. I grabbed the binaries of php from php.net and the binary dll for PHP_Mapscript from dmsolutions. I'm using MSDE for the database server. PHP appears to be working well, and Mapscript is giving me an error well after it reads in the map file. Now that you know the environment, here is what I'm getting.... *Fatal error*: MapServer Error in msGetLabelSize(): Could not find/open font in *C:\inetpub\wwwroot\lib/mapscript.php* on line *202* ...where line 202 is a $mapobj->draw(). I believe I changed all the paths. I included part of the map file and fonts.list file. I've played with the fonts list file to include only single back slashes, no quotes and relative paths. This is working fine under Linux. Do any of you have an idea of what could be wrong? Tanks, Chad Streck Map file parts.. ========================= map extent 263354 548123 967555 1108974 fontset "C:\InetPub\wwwroot\maps\etc\fontsw.list" name "Maricopa County" scale 6000000 shapepath "C:\InetPub\shape" size 600 400 symbolset "C:\InetPub\wwwroot\maps\etc\symbol.sym" units feet ...... layer data "etak\az\county" labelitem "feaname" minscale 75000 name "County" status default type polygon class color 225 225 225 outlinecolor 150 150 150 label antialias buffer 3 color 150 150 150 font "helv" mindistance 100 minfeaturesize 90 outlinecolor 255 255 255 position cc size 10 type TRUETYPE end end end fontsw.list ==================== arialbold "C:\\InetPub\\wwwroot\\maps\\fonts\\arib____.ttf" arial "C:\\InetPub\\wwwroot\\maps\\fonts\\arir____.ttf" helvbold "C:\\InetPub\\wwwroot\\maps\\fonts\\helb____.ttf" helvbolditalic "C:\\InetPub\\wwwroot\\maps\\fonts\\helbi___.ttf" helvitalic "C:\\InetPub\\wwwroot\\maps\\fonts\\heli____.ttf" helv "C:\\InetPub\\wwwroot\\maps\\fonts\\helr____.ttf" timesbold "C:\\InetPub\\wwwroot\\maps\\fonts\\timb____.ttf" timesbolditalic "C:\\InetPub\\wwwroot\\maps\\fonts\\timbi___.ttf" timesitalic "C:\\InetPub\\wwwroot\\maps\\fonts\\timi____.ttf" times "C:\\InetPub\\wwwroot\\maps\\fonts\\timr____.ttf" From david_raitzer at hotmail.com Tue Apr 17 09:56:10 2001 From: david_raitzer at hotmail.com (David Raitzer) Date: Tue, 17 Apr 2001 12:56:10 -0400 Subject: trouble displaying a symbol without a label Message-ID: Hello, When I use a parameter such as labelmaxscale to selectively apply labels to symbols, unlabeled symbols are not displayed. What do I need to do to ensure that unlabeled symbols are indeed displayed? Also, what are the units for labelmaxscale? The relevant section of my mapfile is as follows (without labelmaxscale): LAYER NAME "watershed" DATA "watershed" STATUS DEFAULT LABELITEM SITE_NAME TYPE ANNOTATION CLASS NAME "Watersheds" SYMBOL 'county_highway_shield' COLOR 0 0 0 LABEL BUFFER 2 ANTIALIAS FORCE TRUE SIZE SMALL MINSIZE 1 MINFEATURESIZE 2 COLOR 0 0 0 TYPE BITMAP POSITION CC END END # end of class object Thanks for any help. -David _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com From steve.lime at dnr.state.mn.us Tue Apr 17 10:22:44 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 17 Apr 2001 12:22:44 -0500 Subject: trouble displaying a symbol without a label Message-ID: With annotation layers the markers and text are considered a single entity. That is, you can't have one without the other. Sounds like you should be using TYPE POINT instead. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "David Raitzer" 04/17/01 11:56AM >>> Hello, When I use a parameter such as labelmaxscale to selectively apply labels to symbols, unlabeled symbols are not displayed. What do I need to do to ensure that unlabeled symbols are indeed displayed? Also, what are the units for labelmaxscale? The relevant section of my mapfile is as follows (without labelmaxscale): LAYER NAME "watershed" DATA "watershed" STATUS DEFAULT LABELITEM SITE_NAME TYPE ANNOTATION CLASS NAME "Watersheds" SYMBOL 'county_highway_shield' COLOR 0 0 0 LABEL BUFFER 2 ANTIALIAS FORCE TRUE SIZE SMALL MINSIZE 1 MINFEATURESIZE 2 COLOR 0 0 0 TYPE BITMAP POSITION CC END END # end of class object Thanks for any help. -David _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com From steve.lime at dnr.state.mn.us Tue Apr 17 13:26:59 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 17 Apr 2001 15:26:59 -0500 Subject: multiple attribute itemquery Message-ID: There's no way to do that at the moment. Although 3.5 does support this. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Chad Nielsen" 04/16/01 04:37PM >>> Hi, Another question. Is it possible to create an itemquery based on multiple fields? I would like to be able to select sections from a PLSS layer. Something like: Township = x & Range = y & Section = z I suppose i could always concatenate the fields into another item if necessary. Trying to avoid having to manipulate the data however. Many Thanks, Chad Chad M. Nielsen, GIS Programmer/Analyst Tillamook County Performance Partnership (TCPP) Tillamook Coastal Watershed Resource Center (TCWRC) GIS: http://gisweb.co.tillamook.or.us TCPP: http://www.co.tillamook.or.us/countygovernment/Estuary/homepage.htm TCWRC: http://www.tcwrc.org From steve.lime at dnr.state.mn.us Tue Apr 17 13:38:00 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 17 Apr 2001 15:38:00 -0500 Subject: Query of point objects Message-ID: Are you doing something funky in the interface? Queries, like map draws, are sensitive to layer status. A layer is off by default and must be explictly turned on to be queried or displayed (this applies to the CGI implementation only). In the course of normal browsing this is usually taken care of. The demo interface shows this: obviously you can't query anything that you can't see. However once lakes or streams are on then you can query them. Is there a public version that shows the problem? Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Larry Nolan" 04/16/01 01:44PM >>> I have a file of point locations which I want the user to be able to click on a point and view the database entry. This works fine if the layer entry has the STATUS DEFAULT setting in the map file but I if change STATUS to ON so I can control if the layer is shown or not it does not find the point when I click on it. Am I missing something here or am I only able to query layers which are set to be always on with the STATUS DEFAULT setting? Thanks Larry Nolan Project Geologist - GIS Geological Survey of Newfoundland lrn at zeppo.geosurv.gov.nf.ca 709-729-2168 From Michael.Hearne at noaa.gov Tue Apr 17 13:53:30 2001 From: Michael.Hearne at noaa.gov (Michael Hearne) Date: Tue, 17 Apr 2001 16:53:30 -0400 Subject: caching of query results References: <200104041627.SAA02715@webmail1.xs4all.nl> <3ACB54E6.AD267AE6@geoplan.ufl.edu> Message-ID: <3ADCAD4A.1A4F3BBB@noaa.gov> I'm having trouble with query results (seemingly) being cached. I'm using: MapServer 3.3.011 CGI Solaris Apache Steve's mapplet Here's whats happening: I zoom in to an extent. I set the mode to query. I click on a section of the data. My query results are returned, and they appear to be correct. I click on another area in the data (a different class). The same query results are returned. I tried to make each query request to the CGI unique by setting a hidden form element that I set with getTime in Javascript. I even print this out in my query results window to make sure that it's different every time, and it is. The query results, however, are still the same. When I zoom to a different area, and repeat my steps, I see the same behavior: First query gets the right result, every query after that gets that same result, regardless of where I click. I also printed out the value of [imgbox] in the results page, just to make sure my coordinates were being captured correctly. They are. Anybody know what's going on? Thanks, Mike -- Michael G. Hearne email: Michael.Hearne at noaa.gov Coastal Remote Sensing phone: 843 740-1281 TPMC/NOAA Coastal Services Center fax: 843 740-1312 2234 S. Hobson Ave., Charleston, SC 29407 From chads at adci.com Tue Apr 17 14:26:27 2001 From: chads at adci.com (Chad Streck) Date: Tue, 17 Apr 2001 16:26:27 -0500 Subject: Windows PHP Mapscript binary with libJpeg Message-ID: <3ADCB503.3030100@adci.com> I'm being a nuisance today. Is there anyone that could compile the php_mapscript.dll file to include GD, PROJ.4, FreeType and libJPEG support? The one from DM Solutions has all of these exept libJPEG. Or is there a way to dynamically link libJPEG in? Thanks, Chad From Matt.Wilkie at gov.yk.ca Tue Apr 17 17:05:12 2001 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Tue, 17 Apr 2001 17:05:12 -0700 Subject: Uncompressing LZW geotiffs Message-ID: <6DD7370C9452D31192A10008C75D075309A090B9@raptor.gov.yk.ca> > When I use Photoshop to open the geotiff and then save it in > uncompressed format, the geotiff header file seems to get tossed. > I'd like to work with the tiff in ERDAS Imagine, but need the > projection info. Is my only alternative to create a world file > after uncompressing the geotiff? On Windows, you can use the GeoTiff Examiner tool for reading/writing the header info: http://www.mentorsoftwareinc.com/freebie/free0699.htm -matt ----------------------------------------------------------------- Matt Wilkie * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ ----------------------------------------------------------------- From steve.lime at dnr.state.mn.us Tue Apr 17 21:18:37 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 17 Apr 2001 23:18:37 -0500 Subject: Fwd: Example for Expression Syntax Message-ID: -------------- next part -------------- An embedded message was scrubbed... From: Eric Tang Subject: Example for Expression Syntax Date: Wed, 18 Apr 2001 04:35:32 +0100 Size: 3464 URL: From kafka at email.cz Tue Apr 17 00:27:49 2001 From: kafka at email.cz (Stepan Kafka) Date: Tue, 17 Apr 2001 09:27:49 +0200 Subject: reading string queries into javascript In-Reply-To: <000b01c0c447$580c7f30$a14368aa@co.tillamook.or.us> Message-ID: <001601c0c70f$e7a37520$fb01a8c0@gis2.oku-kh.cz> You're probably right. The error is no quotes around [TDIR]. But you can simply write var TDIR = '[TDIR]'; because the terms in the brackets are evaluated on the server side, so client really gets e.g. var TDIR = 'S'; Be avare to put this javascript in external file (out of HTML template) because it is not evaluated by mapserver. Stepan Kafka Kutna Hora district council mailto:kafka at email.cz http://www.oku-kh.cz/gis > > Hi, > > I'm having problems reading string variables from a query into javascript. > > T = Township (a number) > TDIR = Township Direction ( a character 'N' or 'S') > > This works: > > var T = [T]; > . > . > . > document.write(T); > > > This does not work, it comes out 'undefined': > > var TDIR = [TDIR]; > . > . > . > document.write(TDIR); > > The problem I'm guessing is with javascript wanting quotes around the > string. Is there an escape sequence for adding quote while reading a query > variable? > > Thanks a bunch, > Chad > > Chad M. Nielsen, GIS Programmer/Analyst > Tillamook County Performance Partnership (TCPP) > Tillamook Coastal Watershed Resource Center (TCWRC) > > GIS: http://gisweb.co.tillamook.or.us > TCPP: > http://www.co.tillamook.or.us/countygovernment/Estuary/homepage.ht m TCWRC: http://www.tcwrc.org From LindaU at gis.nl Wed Apr 18 02:22:55 2001 From: LindaU at gis.nl (Linda Ursem) Date: Wed, 18 Apr 2001 11:22:55 +0200 Subject: maximum layers Message-ID: <01C0C7F9.EAABDDD0.LindaU@gis.nl> Hi all, Is there a layers limit in MapServer? I want to use more then 11 layers but my MapServer application works only with the maximum of 11 layers. When I use 12 layers, the application makes a gif file of the image (that file is oke) in the tmp directory. The application makes no scalebar, legend and reference files. The application is thinking but he's doing nothing. Maybe the maximumscale is a part of the problem, because when I use the maximumscale for a extra layer the application has the same problem: making a image file and is thinking.... In my mapfile, I can't create the layers 'wegnaam2' and /or 'kanaal'. I can create the layers 'wegnaam2' and /or 'kanaal' when I delete other layers. I can't use the maxscale for the layers 'bos', 'provincie' and 'wegnaam0'. Here is my mapfile, I hope someone can help me... Linda Ursem From chads at adci.com Wed Apr 18 06:26:44 2001 From: chads at adci.com (Chad Streck) Date: Wed, 18 Apr 2001 08:26:44 -0500 Subject: [MAPSERV] Fonts and porting from Linux to NT. References: <3ADC7054.6060901@adci.com> Message-ID: <3ADD9614.2080805@adci.com> Working. Played with the paths some more and what finally worked is when I used / and did not specify the drive. They looked like this.... helvbold /InetPub/wwwroot/maps/fonts/helb____.ttf helvbolditalic /InetPub/wwwroot/maps/fonts/helbi___.ttf helvitalic /InetPub/wwwroot/maps/fonts/heli____.ttf helv /InetPub/wwwroot/maps/fonts/helr____.ttf timesbold /InetPub/wwwroot/maps/fonts/timb____.ttf timesbolditalic /InetPub/wwwroot/maps/fonts/timbi___.ttf timesitalic /InetPub/wwwroot/maps/fonts/timi____.ttf times /InetPub/wwwroot/maps/fonts/timr____.ttf Thanks, Chad Chad Streck wrote: > I have an application that I developed under Linux/Postgresql using > PHP and Mapscript and I'm now porting it to NT/MSSQL7. I grabbed the > binaries of php from php.net and the binary dll for PHP_Mapscript from > dmsolutions. I'm using MSDE for the database server. PHP appears to > be working well, and Mapscript is giving me an error well after it > reads in the map file. > > Now that you know the environment, here is what I'm getting.... > > *Fatal error*: MapServer Error in msGetLabelSize(): Could not > find/open font in *C:\inetpub\wwwroot\lib/mapscript.php* on line *202* > > ...where line 202 is a $mapobj->draw(). I believe I changed all the > paths. I included part of the map file and fonts.list file. I've > played with the fonts list file to include only single back slashes, > no quotes and relative paths. This is working fine under Linux. Do > any of you have an idea of what could be wrong? > > Tanks, > Chad Streck > > Map file parts.. > ========================= > map > extent 263354 548123 967555 1108974 > fontset "C:\InetPub\wwwroot\maps\etc\fontsw.list" > name "Maricopa County" > scale 6000000 > shapepath "C:\InetPub\shape" > size 600 400 > symbolset "C:\InetPub\wwwroot\maps\etc\symbol.sym" > units feet > ...... > layer > data "etak\az\county" > labelitem "feaname" > minscale 75000 > name "County" > status default > type polygon > class > color 225 225 225 > outlinecolor 150 150 150 > label > antialias > buffer 3 > color 150 150 150 > font "helv" > mindistance 100 > minfeaturesize 90 > outlinecolor 255 255 255 > position cc > size 10 > type TRUETYPE > end > end > end > > > fontsw.list > ==================== > arialbold "C:\\InetPub\\wwwroot\\maps\\fonts\\arib____.ttf" > arial "C:\\InetPub\\wwwroot\\maps\\fonts\\arir____.ttf" > helvbold "C:\\InetPub\\wwwroot\\maps\\fonts\\helb____.ttf" > helvbolditalic "C:\\InetPub\\wwwroot\\maps\\fonts\\helbi___.ttf" > helvitalic "C:\\InetPub\\wwwroot\\maps\\fonts\\heli____.ttf" > helv "C:\\InetPub\\wwwroot\\maps\\fonts\\helr____.ttf" > timesbold "C:\\InetPub\\wwwroot\\maps\\fonts\\timb____.ttf" > timesbolditalic "C:\\InetPub\\wwwroot\\maps\\fonts\\timbi___.ttf" > timesitalic "C:\\InetPub\\wwwroot\\maps\\fonts\\timi____.ttf" > times "C:\\InetPub\\wwwroot\\maps\\fonts\\timr____.ttf" > > From assefa at dmsolutions.ca Wed Apr 18 06:59:55 2001 From: assefa at dmsolutions.ca (Assefa Yewondwossen) Date: Wed, 18 Apr 2001 09:59:55 -0400 Subject: Windows PHP Mapscript binary with libJpeg References: <3ADCB503.3030100@adci.com> Message-ID: <3ADD9DDB.D56267D8@dmsolutions.ca> Hi , There is a new dll of php_mapscript with JPEG support built in. I did not test the JPEG functionnalities but just include it in the build. So let me know if there is a problem. Versions used are : - mapscript 3.4 - php : php4.0.4pl1 http://www2.dmsolutions.ca/mapserver/dl/php4.0.4pl1_php_mapscript_34.zip Later, Chad Streck wrote: > I'm being a nuisance today. > > Is there anyone that could compile the php_mapscript.dll file to include > GD, PROJ.4, FreeType and libJPEG support? The one from DM Solutions has > all of these exept libJPEG. Or is there a way to dynamically link > libJPEG in? > > Thanks, > Chad -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 ---------------------------------------------------------------- From c.monteverde at gulch.pstsardegna.it Wed Apr 18 07:24:19 2001 From: c.monteverde at gulch.pstsardegna.it (Corrado Monteverde) Date: Wed, 18 Apr 2001 16:24:19 +0200 Subject: error on php_mapscript.dll Message-ID: <5.0.2.1.0.20010418161430.00a510f8@pop.tiscalinet.it> Warning: MapScript: Unable to initialize module Module compiled with debug=0, thread-safety=1 module API=20001214 PHP compiled with debug=0, thread-safety=1 module API=20000809 These options need to match in C:\program files\Apache Group\Apache\htdocs/mia/gmap3/htdocs/gmap75.php on line 34 does anyone know this kind of error message I get and how I can resolve it? thanks Corrado -------------- next part -------------- An HTML attachment was scrubbed... URL: From morissette at dmsolutions.ca Wed Apr 18 08:59:49 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 18 Apr 2001 11:59:49 -0400 Subject: [mapserver-users] Re: error on php_mapscript.dll References: <5.0.2.1.0.20010418161430.00a510f8@pop.tiscalinet.it> Message-ID: <3ADDB9F5.3079DC7D@dmsolutions.ca> Corrado Monteverde wrote: > > Warning: MapScript: Unable to initialize module Module compiled with > debug=0, thread-safety=1 module API=20001214 PHP compiled with > debug=0, thread-safety=1 module API=20000809 These options need to > match in C:\program files\Apache > Group\Apache\htdocs/mia/gmap3/htdocs/gmap75.php on line 34 > > does anyone know this kind of error message I get and how I can > resolve it? > It's because your PHP4 installation is not the same version as what the PHP_MAPSCRIPT.DLL was compiled for. Download and install PHP 4.0.4pl1 from the PHP web site and you'll be fine. -- ------------------------------------------------------------ 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 bitner at gyttja.org Wed Apr 18 10:53:24 2001 From: bitner at gyttja.org (David W Bitner) Date: Wed, 18 Apr 2001 12:53:24 -0500 Subject: [mapserver-users] Re: applet param busyimage Message-ID: <00e301c0c830$775330e0$6f6c2ec0@yardarm.nohrsc.nws.gov> Steve, Could you or someone else perhaps elaborate a little on the swap method? Are the .js files that you use in landview viewable? I've noticed that you've used document.write in javascript in order to call the applet, but how do you change that image then with each form call? Thanks, David ********************************************************************* David William Bitner -- GIS/ Remote Sensing Specialist National Operational Hydrologic Remote Sensing Center National Weather Service, Chanhassen, MN 55317 work: bitner at nws.gov, http://www.nohrsc.nws.gov 952-361-6610 x231, fax: 952-361-6634 ********************************************************************* -----Original Message----- From: Stephen Lime To: kames at keyspanenergy.com ; mapserver-users at lists.gis.umn.edu Cc: jsmedsmo at gis.umn.edu Date: Friday, April 13, 2001 12:32 PM Subject: Re: applet param busyimage >Looks like the conversion from XML to HTML didn't quite work. The document seems >truncated to me. Anyway what the swap method does is allows you to change the image >displayed in the applet without loading the whole page. This requires that you manage >the map coordinates on the client using javascript. It can be done, for an example see >http://maps.dnr.state.mn.us/landview. The busyimage parameter defines an image to >display while the new image is being fetched. In traditional apps where the whole page >reloads it's not a useful option. > >Steve > >Stephen Lime >Internet Applications Analyst > >Minnesota DNR >500 Lafayette Road >St. Paul, MN 55155 >651-297-2937 > >>>> "Kieran J. Ames" 04/13/01 10:21AM >>> >Is anyone able to use the busyimage parameter with the java applet? >I see in the Mapplet How-to >http://mapserver.gis.umn.edu/doc/mapplet-howto.html ..."Generally only >useful when used with the swap applet method."; but the swap link is bad >and I don't understand the idea. > >TIA >Kieran > > > From chads at adci.com Wed Apr 18 11:15:58 2001 From: chads at adci.com (Chad Streck) Date: Wed, 18 Apr 2001 13:15:58 -0500 Subject: [mapserver-users] Re: error on php_mapscript.dll References: <5.0.2.1.0.20010418161430.00a510f8@pop.tiscalinet.it> Message-ID: <3ADDD9DE.4040002@adci.com> I just ran across this and what I had to do is make sure that you have the most recent binary from php.net and the most recent binary from dmsolutions. At the very least, make sure the php and mapscript are from about the same time. chad Corrado Monteverde wrote: > > *Warning*: MapScript: Unable to initialize module Module compiled with > debug=0, thread-safety=1 module API=20001214 PHP compiled with > debug=0, thread-safety=1 module API=20000809 These options need to > match in *C:\program files\Apache > Group\Apache\htdocs/mia/gmap3/htdocs/gmap75.php* on line *34 > > > *does anyone know this kind of error message I get and how I can > resolve it? > > thanks > > Corrado > > > From chads at adci.com Wed Apr 18 11:20:16 2001 From: chads at adci.com (Chad Streck) Date: Wed, 18 Apr 2001 13:20:16 -0500 Subject: [mapserver-users] Re: FW: [MAPSERV] Fonts and porting from Linux to NT. References: Message-ID: <3ADDDAE0.4070406@adci.com> I will gladly share it once we get the job that it was built for, or I take out the jobs specific items in the demo. There is a paranoia that the competition will see it before then. Chad Jeremy wrote: > Any plans to share this when it's complete? Our GPS gaming site, > Geocaching.com, is looking for a mapserver that is inexpensive/free, and run > on the NT/MSSQL platform (which the site runs on). I'm very interested in > what you're working on. > > Thanks, > > Jeremy > > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Chad Streck > Sent: Wednesday, April 18, 2001 6:27 AM > To: Chad Streck > Cc: Mapserver > Subject: Re: [MAPSERV] Fonts and porting from Linux to NT. > > > Working. Played with the paths some more and what finally worked is > when I used / and did not specify the drive. They looked like this.... > > helvbold /InetPub/wwwroot/maps/fonts/helb____.ttf > helvbolditalic /InetPub/wwwroot/maps/fonts/helbi___.ttf > helvitalic /InetPub/wwwroot/maps/fonts/heli____.ttf > helv /InetPub/wwwroot/maps/fonts/helr____.ttf > timesbold /InetPub/wwwroot/maps/fonts/timb____.ttf > timesbolditalic /InetPub/wwwroot/maps/fonts/timbi___.ttf > timesitalic /InetPub/wwwroot/maps/fonts/timi____.ttf > times /InetPub/wwwroot/maps/fonts/timr____.ttf > > Thanks, > Chad > > Chad Streck wrote: > >> I have an application that I developed under Linux/Postgresql using >> PHP and Mapscript and I'm now porting it to NT/MSSQL7. I grabbed the >> binaries of php from php.net and the binary dll for PHP_Mapscript from >> dmsolutions. I'm using MSDE for the database server. PHP appears to >> be working well, and Mapscript is giving me an error well after it >> reads in the map file. >> >> Now that you know the environment, here is what I'm getting.... >> >> *Fatal error*: MapServer Error in msGetLabelSize(): Could not >> find/open font in *C:\inetpub\wwwroot\lib/mapscript.php* on line *202* >> >> ...where line 202 is a $mapobj->draw(). I believe I changed all the >> paths. I included part of the map file and fonts.list file. I've >> played with the fonts list file to include only single back slashes, >> no quotes and relative paths. This is working fine under Linux. Do >> any of you have an idea of what could be wrong? >> >> Tanks, >> Chad Streck >> >> Map file parts.. >> ========================= >> map >> extent 263354 548123 967555 1108974 >> fontset "C:\InetPub\wwwroot\maps\etc\fontsw.list" >> name "Maricopa County" >> scale 6000000 >> shapepath "C:\InetPub\shape" >> size 600 400 >> symbolset "C:\InetPub\wwwroot\maps\etc\symbol.sym" >> units feet >> ...... >> layer >> data "etak\az\county" >> labelitem "feaname" >> minscale 75000 >> name "County" >> status default >> type polygon >> class >> color 225 225 225 >> outlinecolor 150 150 150 >> label >> antialias >> buffer 3 >> color 150 150 150 >> font "helv" >> mindistance 100 >> minfeaturesize 90 >> outlinecolor 255 255 255 >> position cc >> size 10 >> type TRUETYPE >> end >> end >> end >> >> >> fontsw.list >> ==================== >> arialbold "C:\\InetPub\\wwwroot\\maps\\fonts\\arib____.ttf" >> arial "C:\\InetPub\\wwwroot\\maps\\fonts\\arir____.ttf" >> helvbold "C:\\InetPub\\wwwroot\\maps\\fonts\\helb____.ttf" >> helvbolditalic "C:\\InetPub\\wwwroot\\maps\\fonts\\helbi___.ttf" >> helvitalic "C:\\InetPub\\wwwroot\\maps\\fonts\\heli____.ttf" >> helv "C:\\InetPub\\wwwroot\\maps\\fonts\\helr____.ttf" >> timesbold "C:\\InetPub\\wwwroot\\maps\\fonts\\timb____.ttf" >> timesbolditalic "C:\\InetPub\\wwwroot\\maps\\fonts\\timbi___.ttf" >> timesitalic "C:\\InetPub\\wwwroot\\maps\\fonts\\timi____.ttf" >> times "C:\\InetPub\\wwwroot\\maps\\fonts\\timr____.ttf" >> >> From sylvain.speh at CLERMONT.cemagref.fr Thu Apr 19 00:48:15 2001 From: sylvain.speh at CLERMONT.cemagref.fr (Speh Sylvain) Date: Thu, 19 Apr 2001 09:48:15 +0200 Subject: [mapserver-users] display problems ( under NT ? ) Message-ID: Hi list, I ( try to ) run mapServer under NT/Apache and I would like to share some problems with you. 1) The mailing-list-file-size is limited at 8k, so, if your mail isn't dispatch, try to send a smaller one. 2) Scalebars, which are very basically written, with mapServer.exe or scalebar.exe are oftently shifted for some lines, my characters aren't well drawn. any idea ? 3) I used GeoTiffe-Examiner to make a header for a tif-file. I've got the tfw file, but when you use the box "<--" to set up the header, the values of the Y-pixel-Scale and Y-vector-Y are switched, and the sign is altered. tfw-file : 2.500 / 0 / 0 / -2.500 / 680001.250 / 2159998.750 with the tool : 2.5 / 2.5 / 0 / 0 / 680000 / 2160000 and that rounds the values too !! 4) I can't display any 8-bits tif pictures. What means the OFFSITE parameter for the raster layers ? Is there any matter to use a picture file independently of the EXTEND parameter ? Just for enhancing the background. any idea ? 5) using the mapimage java class in example #5. There's no information for example5 on the site. I couldn't use it with my server. I get off the CODEBASE parameter and put the mapimage.class in the HTML directory. I un-compiled the class, it uses a netscape.javascript package, which I found in the jaws.jar file on my system. Note that I couldn't unzip some classes with the jdk 1.3 jar file, there are some CRC problems, but none with the JDK 1.2 jar file. I unzipped 3 classes ( JSObject, JSException, JSContext ) in their relative sub-directories, in order to run the mapimage class, but I've still : netscape.javascript.JSException netscape.javascript.JSObject netscape.javascript.JSObject.getWindow(java.applet.Applet) void mapimage.init() void sun.applet.AppletPanel.run() void java.lang.Thread.run() any idea ? Thanks in advance Sylvain SPEH From sylvain.speh at CLERMONT.cemagref.fr Thu Apr 19 01:35:33 2001 From: sylvain.speh at CLERMONT.cemagref.fr (Speh Sylvain) Date: Thu, 19 Apr 2001 10:35:33 +0200 Subject: [mapserver-users] display problems ( under NT ? ) Message-ID: Hi list, I ( try to ) run mapServer under NT/Apache and I would like to share some problems with you. 1) The mailing-list-file-size is limited at 8k, so, if your mail isn't dispatch, try to send a smaller one. 2) Scalebars, which are very basically written, with mapServer.exe or scalebar.exe are oftently shifted for some lines, my characters aren't well drawn. any idea ? 3) I used GeoTiffe-Examiner to make a header for a tif-file. I've got the tfw file, but when you use the box "<--" to set up the header, the values of the Y-pixel-Scale and Y-vector-Y are switched, and the sign is altered. tfw-file : 2.500 / 0 / 0 / -2.500 / 680001.250 / 2159998.750 with the tool : 2.5 / 2.5 / 0 / 0 / 680000 / 2160000 and that rounds the values too !! 4) I can't display any 8-bits tif pictures. What means the OFFSITE parameter for the raster layers ? Is there any matter to use a picture file independently of the EXTEND parameter ? Just for enhancing the background. any idea ? 5) using the mapimage java class in example #5. There's no information for example5 on the site. I couldn't use it with my server. I get off the CODEBASE parameter and put the mapimage.class in the HTML directory. I un-compiled the class, it uses a netscape.javascript package, which I found in the jaws.jar file on my system. Note that I couldn't unzip some classes with the jdk 1.3 jar file, there are some CRC problems, but none with the JDK 1.2 jar file. I unzipped 3 classes ( JSObject, JSException, JSContext ) in their relative sub-directories, in order to run the mapimage class, but I've still : netscape.javascript.JSException netscape.javascript.JSObject netscape.javascript.JSObject.getWindow(java.applet.Applet) void mapimage.init() void sun.applet.AppletPanel.run() void java.lang.Thread.run() any idea ? Thanks in advance Sylvain SPEH From gert-jan.van.der.weijden at aris.nl Thu Apr 19 03:27:49 2001 From: gert-jan.van.der.weijden at aris.nl (Gert-Jan van der Weijden) Date: Thu, 19 Apr 2001 12:27:49 +0200 Subject: [mapserver-users] error in php_mapscript with prepareImage Message-ID: <3ADEBDA5.58B1DA13@aris.nl> Hi all, When I try to run my php_mapscript application I get the following error: Fatal error: Call to undefined function: prepareimage() in /project/webmap/www/pag/drawmap.php on line 291 The line in drawmap.php is: $img = $map->prepareImage(); All other functions (such as map->draw) work fine. I'm running: RedHat 6.1, Apache 1.3.19; PHP 4.0.4pl1; Mapscript 3.4 (GD 1.8, FreeType, EPPLY - JPEG -OGR) Any idea ? Gert-Jan -- Gert-Jan van der Weijden ________________________________________________________ ARIS - Adviesburo voor Ruimtelijke Informatie Systemen Hooghiemstraplein 126 Tel. +31-(0)30-2769180 3514 AZ UTRECHT Fax. +31-(0)30-2733578 The Netherlands E-mail gert-jan.van.der.weijden at aris.nl Http://www.aris.nl ________________________________________________________ From gert-jan.van.der.weijden at aris.nl Thu Apr 19 03:48:22 2001 From: gert-jan.van.der.weijden at aris.nl (Gert-Jan van der Weijden) Date: Thu, 19 Apr 2001 12:48:22 +0200 Subject: [mapserver-users] mapserver on apache Message-ID: <3ADEC276.1614571E@aris.nl> While running my mapscript application my I get the following error: Warning: MapServer Error in msLoadMap(): ():(0) in /project/webmap/www/pag/mapfile.php on line 44 Fatal error: Failed to open map file /project/webmap/www/pag/wm12.map in /project/webmap/www/pag/mapfile.php on line 44 This error occurs the fourth of fifth time I make a map-request. The line reads: $map = ms_newMapObj ("/pag/wm12.map"); Others PHP pages (without MapScript) work fine. opening the file wm12.map with PHP functions (fopen, fread and fclose), just before the error-line work fine as well! Has it something to do with Apache-caching ? I'm running: RedHat 6.1, Apache 1.3.19; PHP 4.0.4pl1 statically linked into httpd; Mapscript 3.4 (GD 1.8, FreeType, EPPLY - JPEG -OGR) Gert-Jan -- Gert-Jan van der Weijden ________________________________________________________ ARIS - Adviesburo voor Ruimtelijke Informatie Systemen Hooghiemstraplein 126 Tel. +31-(0)30-2769180 3514 AZ UTRECHT Fax. +31-(0)30-2733578 The Netherlands E-mail gert-jan.van.der.weijden at aris.nl Http://www.aris.nl ________________________________________________________ From morissette at dmsolutions.ca Thu Apr 19 05:39:32 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 19 Apr 2001 08:39:32 -0400 Subject: [mapserver-users] error in php_mapscript with prepareImage References: <3ADEBDA5.58B1DA13@aris.nl> Message-ID: <3ADEDC84.6467538A@dmsolutions.ca> Gert-Jan van der Weijden wrote: > > When I try to run my php_mapscript application > I get the following error: > > Fatal error: Call to undefined function: prepareimage() in > /project/webmap/www/pag/drawmap.php on line 291 > Hummm... the function prepareImage() was implemented but was not registered as a mapObj method. It was also the case for prepareQuery()... I'll fix this for v.3.5. If you want to patch your own copy, add the following lines in the php_map_class_functions[] array definition, around line 400 in php_mapscript.c: {"prepareimage", php3_ms_map_prepareImage, NULL}, {"preparequery", php3_ms_map_prepareQuery, NULL}, -- ------------------------------------------------------------ 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 Thu Apr 19 05:56:19 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 19 Apr 2001 08:56:19 -0400 Subject: [mapserver-users] mapserver on apache References: <3ADEC276.1614571E@aris.nl> Message-ID: <3ADEE073.334F641F@dmsolutions.ca> Gert-Jan van der Weijden wrote: > > While running my mapscript application my I get the following error: > > Warning: MapServer Error in msLoadMap(): ():(0) in > /project/webmap/www/pag/mapfile.php on line 44 > > Fatal error: Failed to open map file /project/webmap/www/pag/wm12.map in > /project/webmap/www/pag/mapfile.php on line 44 > > This error occurs the fourth of fifth time I make a map-request. > The line reads: > $map = ms_newMapObj ("/pag/wm12.map"); > This could be a parsing error on line 0 (top of map file)... unfortunately sometimes the error received from the parser is not very meaningful. However, if you say that this happens only on the 4th or 5th request then it can't be the case... are you sure that there is nothing that changes in the logic of your script between the 4th and 5th request prior to opening the map file? If you are sure that this same map file can be loaded by the same script 4 times but that on the 5th call it can't load, then it must be a memory leak or a problem of this type. If you can then please send me a copy of your map file and script and I'll try to reproduce and track the problem here. > This error occurs the fourth of fifth time I make a map-request. > The line reads: > $map = ms_newMapObj ("/pag/wm12.map"); > Have you tried using a relative path to open the map file: $map = ms_newMapObj ("wm12.map"); -- ------------------------------------------------------------ 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 chads at adci.com Thu Apr 19 06:49:18 2001 From: chads at adci.com (Chad Streck) Date: Thu, 19 Apr 2001 08:49:18 -0500 Subject: [mapserver-users] Random acts of display... Message-ID: <3ADEECDE.2010209@adci.com> Hopefully this will be my last issue for a while. Everyone has been great in helping keep this project going. I have 2 issues that seem rather random. One happens on both NT and Linux, and the other happens only on NT. The system is php_mapscript with php_proj. The Linux system is running Apache/php4.0.4pl1/Postgres and the NT system is running IIS/php4.0.4pl1/MSSQL7 (actually MSDE). 1) I have roughly 11 layers in my mapfile and when the script runs, I populate 4 of the layers with points from an SQL table, 1 layer gets one point to highlight if the user has clicked on one of the previous points, and 1 layer gets a copyright notice. They are populated in that order, and all other layers are county, highway, roads, hydro area and imagery. The highlight layer displays a triangle with the company name next to it, and this is the layer that concerns me. I have an addpoint function that plots the point, with annotation/name if its included, and then it does a drawLabelCache. The problem that exists is that it tends to only render the name when it feels like it. I can keep clicking on a point and it always renders the triangle, but only about 25%-50% of the time it renders the name. I can add and test add point with all static values for x, y, and name, and it works all the time. Finally, I do a drawLabelCache before I saveWebImage on the map file. Very frustrating and I'm unsure where to look. My only theory right now is that by running on smaller machines (333 and a 266) that they tend to drop things in an effort to speed up processing, but thats only a theory. (Programmers LOVE theory.) 2) On the NT port, I have the exact same application running, but it seems that about 50% of the time, no dots on the first 4 generated layers don't show. Most times I get no errors, and if I do get warnings, they are divide by 0 warnings. When looking at the what it is dividing by, the statment is a divide by extent->maxx - extent->minx. I have the same theory as above. Any help or hints would be appreciated. I attached my mapfile if it will help. Thanks, Chad Streck -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: acew.map URL: From david_raitzer at hotmail.com Thu Apr 19 13:07:35 2001 From: david_raitzer at hotmail.com (David Raitzer) Date: Thu, 19 Apr 2001 16:07:35 -0400 Subject: [mapserver-users] legend causing Mapserver to crash! Message-ID: Hello, Somehow it seems that my names for the legend are causing Mapserver to fail! Is Mapserver limited to 8 legend entries? Or is there something else that I'm doing wrong? My mapfile is below. When I added the elevation names for Guatemala, Mapserver started failing. Thanks for any help that can be provided. -David NAME WATERSHED SIZE 600 600 EXTENT -92.5 9 -67.75 20 SHAPEPATH "data" SHADESET symbols/shade.sym MARKERSET symbols/marker.sym LINESET symbols/line.sym UNITS DD WEB TEMPLATE watershed.html IMAGEPATH "C:\Inetpub\wwwroot\tmp\" IMAGEURL "/tmp/" #LOG "watershed.log" END REFERENCE IMAGE reference/central.gif EXTENT -92.4 6 -68 24 SIZE 128 95 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END LEGEND KEYSIZE 18 10 LABEL TYPE BITMAP SIZE SMALL COLOR 0 0 89 END STATUS ON END SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 255 255 255 SIZE small END STYLE 1 SIZE 50 2 COLOR 255 255 255 UNITS KILOMETERS INTERVALS 1 TRANSPARENT TRUE STATUS TRUE END LAYER NAME "labels" DATA "general/awscntry" STATUS DEFAULT LABELITEM CNTRY_NAME TYPE ANNOTATION CLASS COLOR 200 0 0 LABEL SIZE GIANT COLOR 0 0 0 POSITION CC END END # end of class object END # end of layer object LAYER NAME "general" DATA "general/awscntry" STATUS DEFAULT TYPE POLYGON CLASSITEM Cntry_name CLASS EXPRESSION 'Aruba' COLOR 107 103 97 OUTLINECOLOR 0 0 0 END # CLASS CLASSITEM Cntry_name CLASS EXPRESSION 'Bahamas, The' COLOR 107 103 97 OUTLINECOLOR 0 0 0 END # CLASS CLASSITEM Cntry_name CLASS EXPRESSION 'Belize' COLOR 107 103 97 OUTLINECOLOR 0 0 0 END # CLASS CLASSITEM Cntry_name CLASS EXPRESSION 'Cayman Islands' COLOR 107 103 97 OUTLINECOLOR 0 0 0 END # CLASS CLASSITEM Cntry_name CLASS EXPRESSION 'Colombia' COLOR 107 103 97 OUTLINECOLOR 0 0 0 END # CLASS CLASSITEM Cntry_name CLASS EXPRESSION 'Costa Rica' COLOR 107 103 97 OUTLINECOLOR 0 0 0 END # CLASS CLASSITEM Cntry_name CLASS EXPRESSION 'Cuba' COLOR 107 103 97 OUTLINECOLOR 0 0 0 END # CLASS CLASSITEM Cntry_name CLASS EXPRESSION 'Dominican Republic' COLOR 138 169 76 OUTLINECOLOR 0 0 0 END # CLASS CLASSITEM Cntry_name CLASS EXPRESSION 'El Salvador' COLOR 192 101 73 OUTLINECOLOR 0 0 0 END # CLASS CLASSITEM Cntry_name CLASS EXPRESSION 'Guatemala' COLOR 205 155 29 OUTLINECOLOR 0 0 0 END # CLASS CLASSITEM Cntry_name CLASS EXPRESSION 'Haiti' COLOR 125 171 176 OUTLINECOLOR 0 0 0 END # CLASS CLASSITEM Cntry_name CLASS EXPRESSION 'Honduras' COLOR 240 230 140 OUTLINECOLOR 0 0 0 END # CLASS CLASSITEM Cntry_name CLASS EXPRESSION 'Jamaica' COLOR 107 103 97 OUTLINECOLOR 0 0 0 END # CLASS CLASSITEM Cntry_name CLASS EXPRESSION 'Mexico' COLOR 107 103 97 OUTLINECOLOR 0 0 0 END # CLASS CLASSITEM Cntry_name CLASS EXPRESSION '' COLOR 107 103 97 OUTLINECOLOR 0 0 0 END # CLASS CLASSITEM Cntry_name CLASS EXPRESSION 'Netherlands Antilles' COLOR 107 103 97 OUTLINECOLOR 0 0 0 END # CLASS CLASSITEM Cntry_name CLASS EXPRESSION 'Nicaragua' COLOR 192 144 88 OUTLINECOLOR 0 0 0 END # CLASS CLASSITEM Cntry_name CLASS EXPRESSION 'Panama' COLOR 107 103 97 OUTLINECOLOR 0 0 0 END # CLASS CLASSITEM Cntry_name CLASS EXPRESSION 'Turks and Caicos Islands' COLOR 107 103 97 OUTLINECOLOR 0 0 0 END # CLASS CLASSITEM Cntry_name CLASS EXPRESSION 'United States' COLOR 107 103 97 OUTLINECOLOR 0 0 0 END # CLASS CLASSITEM Cntry_name CLASS EXPRESSION 'Venezuela' COLOR 107 103 97 OUTLINECOLOR 0 0 0 END # CLASS END # end of layer object LAYER NAME "cities" DATA "general/awscitie" STATUS DEFAULT TYPE POINT LABELITEM CITY_NAME MAXSCALE 5000000 LABELMAXSCALE 5000000 CLASS NAME "Major Cities" SYMBOL 'city' COLOR 0 0 0 LABEL BUFFER 2 ANTIALIAS FORCE TRUE SIZE SMALL MINSIZE 1 MINFEATURESIZE 2 COLOR 114 18 18 TYPE BITMAP POSITION AUTO END END # CLASS END # end of layer object LAYER NAME "polnames" DATA "general/awsadmin" STATUS DEFAULT LABELITEM ADMIN_NAME LABELMAXSCALE 5000000 TYPE ANNOTATION CLASS COLOR 0 98 0 LABEL SIZE MEDIUM COLOR 0 98 0 END END # end of class object END # end of layer object LAYER NAME "hon_river" DATA "honduras/awriv3ml" STATUS DEFAULT TYPE LINE CLASS NAME "Rivers" COLOR 100 100 150 END # end of class object END # end of layer object LAYER NAME "guat_river" DATA "guatemala/awriv3ml" STATUS DEFAULT TYPE LINE CLASS COLOR 100 100 150 END # end of class object END # end of layer object LAYER NAME "nic_river" DATA "nicaragua/awriv3ml" STATUS DEFAULT TYPE LINE CLASS COLOR 100 100 150 END # end of class object END # end of layer object LAYER NAME "dr_river" DATA "dr/awriv3ml" STATUS DEFAULT TYPE LINE CLASS COLOR 100 100 150 END # end of class object END # end of layer object LAYER NAME "haiti_river" DATA "haiti/awriv3ml" STATUS DEFAULT TYPE LINE CLASS COLOR 100 100 150 END # end of class object END # end of layer object LAYER NAME "borders" DATA "general/awscntry" STATUS DEFAULT TYPE POLYLINE CLASS COLOR 0 0 0 END # end of class object END # end of layer object LAYER NAME "dr_elev" DATA "dr/elevation2" TYPE POLYGON STATUS DEFAULT MAXSCALE 500000 CLASSITEM Elevation CLASS EXPRESSION '305' COLOR 139 140 76 OUTLINECOLOR 139 140 76 END # CLASS CLASSITEM Elevation CLASS EXPRESSION '914' COLOR 47 168 17 OUTLINECOLOR 47 168 17 END # CLASS CLASSITEM Elevation CLASS EXPRESSION '2134' COLOR 190 172 71 OUTLINECOLOR 190 172 71 END # CLASS CLASSITEM Elevation CLASS EXPRESSION '3353' COLOR 241 158 143 OUTLINECOLOR 241 158 143 END # CLASS END # end of layer object LAYER NAME "el_sal_elev" DATA "elsalvador/elevation2" TYPE POLYGON STATUS DEFAULT MAXSCALE 500000 CLASSITEM Elevation CLASS EXPRESSION '305' COLOR 139 140 76 OUTLINECOLOR 139 140 76 END # CLASS CLASSITEM Elevation CLASS EXPRESSION '914' COLOR 47 168 17 OUTLINECOLOR 47 168 17 END # CLASS CLASSITEM Elevation CLASS EXPRESSION '2134' COLOR 190 172 71 OUTLINECOLOR 190 172 71 END # CLASS CLASSITEM Elevation CLASS EXPRESSION '3353' COLOR 241 158 143 OUTLINECOLOR 241 158 143 END # CLASS END # end of layer object LAYER NAME "guat_elev" DATA "guatemala/elevation" TYPE POLYGON STATUS DEFAULT MAXSCALE 500000 CLASSITEM Elevation CLASS EXPRESSION '305' NAME '305-914 m elevation' COLOR 139 140 76 OUTLINECOLOR 139 140 76 END # CLASS CLASSITEM Elevation CLASS EXPRESSION '914' NAME '914-2134 m elevation' COLOR 47 168 17 OUTLINECOLOR 47 168 17 END # CLASS CLASSITEM Elevation CLASS EXPRESSION '2134' NAME '2134-3353 m elevation' COLOR 190 172 71 OUTLINECOLOR 190 172 71 END # CLASS CLASSITEM Elevation CLASS EXPRESSION '3353' NAME '3353+ m elevation' COLOR 241 158 143 OUTLINECOLOR 241 158 143 END # CLASS END # end of layer object LAYER NAME "haiti_elev" DATA "haiti/elevation" TYPE POLYGON STATUS DEFAULT MAXSCALE 500000 CLASSITEM Elevation CLASS EXPRESSION '305' COLOR 139 140 76 OUTLINECOLOR 139 140 76 END # CLASS CLASSITEM Elevation CLASS EXPRESSION '914' COLOR 47 168 17 OUTLINECOLOR 47 168 17 END # CLASS CLASSITEM Elevation CLASS Name '2134-3353 m' COLOR 190 172 71 OUTLINECOLOR 190 172 71 END # CLASS CLASSITEM Elevation CLASS EXPRESSION '3353' COLOR 241 158 143 OUTLINECOLOR 241 158 143 END # CLASS END # end of layer object LAYER NAME "honduras_elev" DATA "honduras/elevation" TYPE POLYGON STATUS DEFAULT MAXSCALE 500000 CLASSITEM Elevation CLASS EXPRESSION '305' COLOR 139 140 76 OUTLINECOLOR 139 140 76 END # CLASS CLASSITEM Elevation CLASS EXPRESSION '914' COLOR 47 168 17 OUTLINECOLOR 47 168 17 END # CLASS CLASSITEM Elevation CLASS Name '2134-3353 m' COLOR 190 172 71 OUTLINECOLOR 190 172 71 END # CLASS CLASSITEM Elevation CLASS EXPRESSION '3353' COLOR 241 158 143 OUTLINECOLOR 241 158 143 END # CLASS END # end of layer object LAYER NAME "nic_elev" DATA "nicaragua/elevation" TYPE POLYGON STATUS DEFAULT MAXSCALE 500000 CLASSITEM Elevation CLASS EXPRESSION '305' COLOR 139 140 76 OUTLINECOLOR 139 140 76 END # CLASS CLASSITEM Elevation CLASS EXPRESSION '914' COLOR 47 168 17 OUTLINECOLOR 47 168 17 END # CLASS CLASSITEM Elevation CLASS EXPRESSION '2134' COLOR 190 172 71 OUTLINECOLOR 190 172 71 END # CLASS CLASSITEM Elevation CLASS EXPRESSION '3353' COLOR 241 158 143 OUTLINECOLOR 241 158 143 END # CLASS END # end of layer object LAYER NAME "dr_roads" DATA "dr/roads" STATUS DEFAULT TYPE LINE MAXSCALE 1000000 CLASS Name "Roads" COLOR 83 0 0 OUTLINECOLOR 0 0 0 END # CLASS END # end of layer object LAYER NAME "el_sal_roads" DATA "elsalvador/roads" STATUS DEFAULT TYPE LINE MAXSCALE 1000000 CLASS COLOR 83 0 0 OUTLINECOLOR 0 0 0 END # CLASS END # end of layer object LAYER NAME "guat_roads" DATA "guatemala/roads" STATUS DEFAULT TYPE LINE MAXSCALE 1000000 CLASS COLOR 83 0 0 OUTLINECOLOR 0 0 0 END # CLASS END # end of layer object LAYER NAME "haiti_roads" DATA "haiti/roads" STATUS DEFAULT TYPE LINE MAXSCALE 1000000 CLASS COLOR 83 0 0 OUTLINECOLOR 0 0 0 END # CLASS END # end of layer object LAYER NAME "honduras_roads" DATA "honduras/roads" STATUS DEFAULT TYPE LINE MAXSCALE 1000000 CLASS COLOR 83 0 0 OUTLINECOLOR 0 0 0 END # CLASS END # end of layer object LAYER NAME "nicaragua_roads" DATA "nicaragua/roads" STATUS DEFAULT TYPE LINE MAXSCALE 1000000 CLASS COLOR 83 0 0 OUTLINECOLOR 0 0 0 END # CLASS END # end of layer object LAYER NAME "polboundries" DATA "general/awsadmin" STATUS DEFAULT MINSCALE 500000 TYPE LINE CLASS NAME "Municipalities" COLOR 0 98 0 END # end of class object END # end of layer object LAYER NAME "watershed" DATA "watershed" STATUS DEFAULT LABELITEM SITE_NAME TYPE POINT LABELMAXSCALE 2000000 CLASS NAME "USDA Sites" SYMBOL 'county_highway_shield' COLOR 0 0 0 LABEL BUFFER 2 ANTIALIAS FORCE TRUE SIZE SMALL MINSIZE 1 MINFEATURESIZE 2 COLOR 0 0 0 TYPE BITMAP POSITION CC END END # end of class object HEADER "watershed_header.html" FOOTER "watershed_footer.html" QUERY TEMPLATE "watershed_template.html" END TOLERANCE 20 END # end of layer object END # end of map file _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com From david_raitzer at hotmail.com Thu Apr 19 13:14:48 2001 From: david_raitzer at hotmail.com (David Raitzer) Date: Thu, 19 Apr 2001 16:14:48 -0400 Subject: [mapserver-users] correction to last message Message-ID: I found an error left in my mapfile previously, but the legend problem remains. Here is the version of the mapfile that fails, but seems to be coded correctly (at least from my novice perspective). Thanks again. NAME WATERSHED SIZE 600 600 EXTENT -92.5 9 -67.75 20 SHAPEPATH "data" SHADESET symbols/shade.sym MARKERSET symbols/marker.sym LINESET symbols/line.sym UNITS DD WEB TEMPLATE watershed.html IMAGEPATH "C:\Inetpub\wwwroot\tmp\" IMAGEURL "/tmp/" #LOG "watershed.log" END REFERENCE IMAGE reference/central.gif EXTENT -92.4 6 -68 24 SIZE 128 95 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END LEGEND KEYSIZE 18 10 LABEL TYPE BITMAP SIZE SMALL COLOR 0 0 89 END STATUS ON END SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 255 255 255 SIZE small END STYLE 1 SIZE 50 2 COLOR 255 255 255 UNITS KILOMETERS INTERVALS 1 TRANSPARENT TRUE STATUS TRUE END LAYER NAME "labels" DATA "general/awscntry" STATUS DEFAULT LABELITEM CNTRY_NAME TYPE ANNOTATION CLASS COLOR 200 0 0 LABEL SIZE GIANT COLOR 0 0 0 POSITION CC END END # end of class object END # end of layer object LAYER NAME "general" DATA "general/awscntry" STATUS DEFAULT TYPE POLYGON CLASSITEM Cntry_name CLASS EXPRESSION 'Aruba' COLOR 107 103 97 OUTLINECOLOR 0 0 0 END # CLASS CLASSITEM Cntry_name CLASS EXPRESSION 'Bahamas, The' COLOR 107 103 97 OUTLINECOLOR 0 0 0 END # CLASS CLASSITEM Cntry_name CLASS EXPRESSION 'Belize' COLOR 107 103 97 OUTLINECOLOR 0 0 0 END # CLASS CLASSITEM Cntry_name CLASS EXPRESSION 'Cayman Islands' COLOR 107 103 97 OUTLINECOLOR 0 0 0 END # CLASS CLASSITEM Cntry_name CLASS EXPRESSION 'Colombia' COLOR 107 103 97 OUTLINECOLOR 0 0 0 END # CLASS CLASSITEM Cntry_name CLASS EXPRESSION 'Costa Rica' COLOR 107 103 97 OUTLINECOLOR 0 0 0 END # CLASS CLASSITEM Cntry_name CLASS EXPRESSION 'Cuba' COLOR 107 103 97 OUTLINECOLOR 0 0 0 END # CLASS CLASSITEM Cntry_name CLASS EXPRESSION 'Dominican Republic' COLOR 138 169 76 OUTLINECOLOR 0 0 0 END # CLASS CLASSITEM Cntry_name CLASS EXPRESSION 'El Salvador' COLOR 192 101 73 OUTLINECOLOR 0 0 0 END # CLASS CLASSITEM Cntry_name CLASS EXPRESSION 'Guatemala' COLOR 205 155 29 OUTLINECOLOR 0 0 0 END # CLASS CLASSITEM Cntry_name CLASS EXPRESSION 'Haiti' COLOR 125 171 176 OUTLINECOLOR 0 0 0 END # CLASS CLASSITEM Cntry_name CLASS EXPRESSION 'Honduras' COLOR 240 230 140 OUTLINECOLOR 0 0 0 END # CLASS CLASSITEM Cntry_name CLASS EXPRESSION 'Jamaica' COLOR 107 103 97 OUTLINECOLOR 0 0 0 END # CLASS CLASSITEM Cntry_name CLASS EXPRESSION 'Mexico' COLOR 107 103 97 OUTLINECOLOR 0 0 0 END # CLASS CLASSITEM Cntry_name CLASS EXPRESSION '' COLOR 107 103 97 OUTLINECOLOR 0 0 0 END # CLASS CLASSITEM Cntry_name CLASS EXPRESSION 'Netherlands Antilles' COLOR 107 103 97 OUTLINECOLOR 0 0 0 END # CLASS CLASSITEM Cntry_name CLASS EXPRESSION 'Nicaragua' COLOR 192 144 88 OUTLINECOLOR 0 0 0 END # CLASS CLASSITEM Cntry_name CLASS EXPRESSION 'Panama' COLOR 107 103 97 OUTLINECOLOR 0 0 0 END # CLASS CLASSITEM Cntry_name CLASS EXPRESSION 'Turks and Caicos Islands' COLOR 107 103 97 OUTLINECOLOR 0 0 0 END # CLASS CLASSITEM Cntry_name CLASS EXPRESSION 'United States' COLOR 107 103 97 OUTLINECOLOR 0 0 0 END # CLASS CLASSITEM Cntry_name CLASS EXPRESSION 'Venezuela' COLOR 107 103 97 OUTLINECOLOR 0 0 0 END # CLASS END # end of layer object LAYER NAME "cities" DATA "general/awscitie" STATUS DEFAULT TYPE POINT LABELITEM CITY_NAME MAXSCALE 5000000 LABELMAXSCALE 5000000 CLASS NAME "Major Cities" SYMBOL 'city' COLOR 0 0 0 LABEL BUFFER 2 ANTIALIAS FORCE TRUE SIZE SMALL MINSIZE 1 MINFEATURESIZE 2 COLOR 114 18 18 TYPE BITMAP POSITION AUTO END END # CLASS END # end of layer object LAYER NAME "polnames" DATA "general/awsadmin" STATUS DEFAULT LABELITEM ADMIN_NAME LABELMAXSCALE 5000000 TYPE ANNOTATION CLASS COLOR 0 98 0 LABEL SIZE MEDIUM COLOR 0 98 0 END END # end of class object END # end of layer object LAYER NAME "hon_river" DATA "honduras/awriv3ml" STATUS DEFAULT TYPE LINE CLASS NAME "Rivers" COLOR 100 100 150 END # end of class object END # end of layer object LAYER NAME "guat_river" DATA "guatemala/awriv3ml" STATUS DEFAULT TYPE LINE CLASS COLOR 100 100 150 END # end of class object END # end of layer object LAYER NAME "nic_river" DATA "nicaragua/awriv3ml" STATUS DEFAULT TYPE LINE CLASS COLOR 100 100 150 END # end of class object END # end of layer object LAYER NAME "dr_river" DATA "dr/awriv3ml" STATUS DEFAULT TYPE LINE CLASS COLOR 100 100 150 END # end of class object END # end of layer object LAYER NAME "haiti_river" DATA "haiti/awriv3ml" STATUS DEFAULT TYPE LINE CLASS COLOR 100 100 150 END # end of class object END # end of layer object LAYER NAME "borders" DATA "general/awscntry" STATUS DEFAULT TYPE POLYLINE CLASS COLOR 0 0 0 END # end of class object END # end of layer object LAYER NAME "dr_elev" DATA "dr/elevation2" TYPE POLYGON STATUS DEFAULT MAXSCALE 500000 CLASSITEM Elevation CLASS EXPRESSION '305' COLOR 139 140 76 OUTLINECOLOR 139 140 76 END # CLASS CLASSITEM Elevation CLASS EXPRESSION '914' COLOR 47 168 17 OUTLINECOLOR 47 168 17 END # CLASS CLASSITEM Elevation CLASS EXPRESSION '2134' COLOR 190 172 71 OUTLINECOLOR 190 172 71 END # CLASS CLASSITEM Elevation CLASS EXPRESSION '3353' COLOR 241 158 143 OUTLINECOLOR 241 158 143 END # CLASS END # end of layer object LAYER NAME "el_sal_elev" DATA "elsalvador/elevation2" TYPE POLYGON STATUS DEFAULT MAXSCALE 500000 CLASSITEM Elevation CLASS EXPRESSION '305' COLOR 139 140 76 OUTLINECOLOR 139 140 76 END # CLASS CLASSITEM Elevation CLASS EXPRESSION '914' COLOR 47 168 17 OUTLINECOLOR 47 168 17 END # CLASS CLASSITEM Elevation CLASS EXPRESSION '2134' COLOR 190 172 71 OUTLINECOLOR 190 172 71 END # CLASS CLASSITEM Elevation CLASS EXPRESSION '3353' COLOR 241 158 143 OUTLINECOLOR 241 158 143 END # CLASS END # end of layer object LAYER NAME "guat_elev" DATA "guatemala/elevation" TYPE POLYGON STATUS DEFAULT MAXSCALE 500000 CLASSITEM Elevation CLASS EXPRESSION '305' NAME '305-914 m elevation' COLOR 139 140 76 OUTLINECOLOR 139 140 76 END # CLASS CLASSITEM Elevation CLASS EXPRESSION '914' NAME '914-2134 m elevation' COLOR 47 168 17 OUTLINECOLOR 47 168 17 END # CLASS CLASSITEM Elevation CLASS EXPRESSION '2134' NAME '2134-3353 m elevation' COLOR 190 172 71 OUTLINECOLOR 190 172 71 END # CLASS CLASSITEM Elevation CLASS EXPRESSION '3353' NAME '3353+ m elevation' COLOR 241 158 143 OUTLINECOLOR 241 158 143 END # CLASS END # end of layer object LAYER NAME "haiti_elev" DATA "haiti/elevation" TYPE POLYGON STATUS DEFAULT MAXSCALE 500000 CLASSITEM Elevation CLASS EXPRESSION '305' COLOR 139 140 76 OUTLINECOLOR 139 140 76 END # CLASS CLASSITEM Elevation CLASS EXPRESSION '914' COLOR 47 168 17 OUTLINECOLOR 47 168 17 END # CLASS CLASSITEM Elevation CLASS EXPRESSION '2134' COLOR 190 172 71 OUTLINECOLOR 190 172 71 END # CLASS CLASSITEM Elevation CLASS EXPRESSION '3353' COLOR 241 158 143 OUTLINECOLOR 241 158 143 END # CLASS END # end of layer object LAYER NAME "honduras_elev" DATA "honduras/elevation" TYPE POLYGON STATUS DEFAULT MAXSCALE 500000 CLASSITEM Elevation CLASS EXPRESSION '305' COLOR 139 140 76 OUTLINECOLOR 139 140 76 END # CLASS CLASSITEM Elevation CLASS EXPRESSION '914' COLOR 47 168 17 OUTLINECOLOR 47 168 17 END # CLASS CLASSITEM Elevation CLASS EXPRESSION '2134' COLOR 190 172 71 OUTLINECOLOR 190 172 71 END # CLASS CLASSITEM Elevation CLASS EXPRESSION '3353' COLOR 241 158 143 OUTLINECOLOR 241 158 143 END # CLASS END # end of layer object LAYER NAME "nic_elev" DATA "nicaragua/elevation" TYPE POLYGON STATUS DEFAULT MAXSCALE 500000 CLASSITEM Elevation CLASS EXPRESSION '305' COLOR 139 140 76 OUTLINECOLOR 139 140 76 END # CLASS CLASSITEM Elevation CLASS EXPRESSION '914' COLOR 47 168 17 OUTLINECOLOR 47 168 17 END # CLASS CLASSITEM Elevation CLASS EXPRESSION '2134' COLOR 190 172 71 OUTLINECOLOR 190 172 71 END # CLASS CLASSITEM Elevation CLASS EXPRESSION '3353' COLOR 241 158 143 OUTLINECOLOR 241 158 143 END # CLASS END # end of layer object LAYER NAME "dr_roads" DATA "dr/roads" STATUS DEFAULT TYPE LINE MAXSCALE 1000000 CLASS Name "Roads" COLOR 83 0 0 OUTLINECOLOR 0 0 0 END # CLASS END # end of layer object LAYER NAME "el_sal_roads" DATA "elsalvador/roads" STATUS DEFAULT TYPE LINE MAXSCALE 1000000 CLASS COLOR 83 0 0 OUTLINECOLOR 0 0 0 END # CLASS END # end of layer object LAYER NAME "guat_roads" DATA "guatemala/roads" STATUS DEFAULT TYPE LINE MAXSCALE 1000000 CLASS COLOR 83 0 0 OUTLINECOLOR 0 0 0 END # CLASS END # end of layer object LAYER NAME "haiti_roads" DATA "haiti/roads" STATUS DEFAULT TYPE LINE MAXSCALE 1000000 CLASS COLOR 83 0 0 OUTLINECOLOR 0 0 0 END # CLASS END # end of layer object LAYER NAME "honduras_roads" DATA "honduras/roads" STATUS DEFAULT TYPE LINE MAXSCALE 1000000 CLASS COLOR 83 0 0 OUTLINECOLOR 0 0 0 END # CLASS END # end of layer object LAYER NAME "nicaragua_roads" DATA "nicaragua/roads" STATUS DEFAULT TYPE LINE MAXSCALE 1000000 CLASS COLOR 83 0 0 OUTLINECOLOR 0 0 0 END # CLASS END # end of layer object LAYER NAME "polboundries" DATA "general/awsadmin" STATUS DEFAULT MINSCALE 500000 TYPE LINE CLASS NAME "Municipalities" COLOR 0 98 0 END # end of class object END # end of layer object LAYER NAME "watershed" DATA "watershed" STATUS DEFAULT LABELITEM SITE_NAME TYPE POINT LABELMAXSCALE 2000000 CLASS NAME "USDA Sites" SYMBOL 'county_highway_shield' COLOR 0 0 0 LABEL BUFFER 2 ANTIALIAS FORCE TRUE SIZE SMALL MINSIZE 1 MINFEATURESIZE 2 COLOR 0 0 0 TYPE BITMAP POSITION CC END END # end of class object HEADER "watershed_header.html" FOOTER "watershed_footer.html" QUERY TEMPLATE "watershed_template.html" END TOLERANCE 20 END # end of layer object END # end of map file _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com From sylvain.speh at CLERMONT.cemagref.fr Fri Apr 20 03:05:38 2001 From: sylvain.speh at CLERMONT.cemagref.fr (Speh Sylvain) Date: Fri, 20 Apr 2001 12:05:38 +0200 Subject: [mapserver-users] Oracle 8i and mapServer Message-ID: Hi list, We all know that mapServer is computing with shapefiles. But I would like use it with Oracle 8i, taking the benefit of its spatial cartridge or not. Did someone use an interface to connect and use this DBRM ? I'm interested in the way to use it, and to modify some datas ( geographical and not ). Thanks in advance Sylvain SPEH From gert-jan.van.der.weijden at aris.nl Fri Apr 20 04:37:33 2001 From: gert-jan.van.der.weijden at aris.nl (Gert-Jan van der Weijden) Date: Fri, 20 Apr 2001 13:37:33 +0200 Subject: [mapserver-users] mapserver on apache References: <3ADEC276.1614571E@aris.nl> <3ADEE073.334F641F@dmsolutions.ca> Message-ID: <3AE01F7D.148C0EAB@aris.nl> Daniel Morissette wrote: > > Gert-Jan van der Weijden wrote: > > > > While running my mapscript application my I get the following error: > > > > Warning: MapServer Error in msLoadMap(): ():(0) in > > /project/webmap/www/pag/mapfile.php on line 44 > > > > Fatal error: Failed to open map file /project/webmap/www/pag/wm12.map in > > /project/webmap/www/pag/mapfile.php on line 44 > > > > This error occurs the fourth of fifth time I make a map-request. > > The line reads: > > $map = ms_newMapObj ("/pag/wm12.map"); > > > > This could be a parsing error on line 0 (top of map file)... > unfortunately sometimes the error received from the parser is not very > meaningful. > > However, if you say that this happens only on the 4th or 5th request > then it can't be the case... are you sure that there is nothing that > changes in the logic of your script between the 4th and 5th request > prior to opening the map file? > > If you are sure that this same map file can be loaded by the same script > 4 times but that on the 5th call it can't load, then it must be a memory > leak or a problem of this type. If you can then please send me a copy > of your map file and script and I'll try to reproduce and track the > problem here. > > > This error occurs the fourth of fifth time I make a map-request. > > The line reads: > > $map = ms_newMapObj ("/pag/wm12.map"); > > > > Have you tried using a relative path to open the map file: > $map = ms_newMapObj ("wm12.map"); > Hi Daniel (and others), I've got some additional information: When running Apache from inetd instead of standalone the problem doesn't occur. The same for running the whole thing with another webserver (WN). Could it be something like the mapfile gets locked by Apache ? Gert-Jan Gert-Jan van der Weijden ________________________________________________________ ARIS - Adviesburo voor Ruimtelijke Informatie Systemen Hooghiemstraplein 126 Tel. +31-(0)30-2769180 3514 AZ UTRECHT Fax. +31-(0)30-2733578 The Netherlands E-mail gert-jan.van.der.weijden at aris.nl Http://www.aris.nl ________________________________________________________ From morissette at dmsolutions.ca Fri Apr 20 06:12:17 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 20 Apr 2001 09:12:17 -0400 Subject: [mapserver-users] mapserver on apache References: <3ADEC276.1614571E@aris.nl> <3ADEE073.334F641F@dmsolutions.ca> <3AE01F7D.148C0EAB@aris.nl> Message-ID: <3AE035B1.6D76724F@dmsolutions.ca> Gert-Jan van der Weijden wrote: > > I've got some additional information: > When running Apache from inetd instead of standalone the problem doesn't > occur. > The same for running the whole thing with another webserver (WN). > I'm very surprised of this, but it would kind of confirm the theory of some memory/resource leak or a buffer overflow somewhere and it may quite well not be in php_mapscript.so. Which other modules do you use? You don't use php_proj.so by any chance? I think it has a small leak in it... probably not enough to justify what happens here though. The reason why I think it's a leak of some sort is that when apache is run from inetd it is restarted for every request and the whole process dies after so leaks can't persist. Similar thing must happen with the WN server where you probably had to configure PHP as a CGI instead of as a module... so the PHP CGI restarts for every request and leaks cannot persist in that case either. Short term solution (i.e. workaround!) with Apache: you could configure PHP as a CGI under Apache and you probably would not get that error any more. Now, there is obviously a problem somewhere that is triggered by something you do or something you use in your script... without access to the scripts/mapfile/data I can't be of more help. > Could it be something like the mapfile gets locked by Apache ? > No. However it could be a leak of file handles in the first 4 requests that makes it impossible to open the mapfile on the 5th request because you ran out of available file handles. Maybe something you can try is to monitor the number of opened file handles after each request and see if it increases dramatically. Run the following command after each call to your script: $ lsof -c httpd | wc (list file handles opened by processes running the command httpd) -- ------------------------------------------------------------ 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 Fri Apr 20 06:22:25 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 20 Apr 2001 09:22:25 -0400 Subject: [mapserver-users] Oracle 8i and mapServer References: Message-ID: <3AE03811.1A6AF126@dmsolutions.ca> Speh Sylvain wrote: > > We all know that mapServer is computing with shapefiles. > But I would like use it with Oracle 8i, taking the benefit of its spatial > cartridge or not. > > Did someone use an interface to connect and use this DBRM ? > I'm interested in the way to use it, and to modify some datas ( geographical > and not ). > There is currently no way to read Oracle 8i spatial layers directly in MapServer but this could (and may) be added at some point in the future. Modifying layers is another story and is not really Mapserver's speciality but could be achieved using the Oracle module in PHP for instance to manipulate Oracle geometries with SQL statements. Actually, you could also read SDO geometries using PHP's Oracle module and create inline shapes in one of your map layers on the fly... that would not be very efficient but if you only need to display small number of objects on your map then that could be an option. -- ------------------------------------------------------------ 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 gert-jan.van.der.weijden at aris.nl Fri Apr 20 08:22:32 2001 From: gert-jan.van.der.weijden at aris.nl (Gert-Jan van der Weijden) Date: Fri, 20 Apr 2001 17:22:32 +0200 Subject: [mapserver-users] Re: mapserver on apache References: <3ADEC276.1614571E@aris.nl> <3ADEE073.334F641F@dmsolutions.ca> <3AE01F7D.148C0EAB@aris.nl> <3AE035B1.6D76724F@dmsolutions.ca> Message-ID: <3AE05438.F1D3DAFE@aris.nl> Daniel Morissette wrote: > > The reason why I think it's a leak of some sort is that when apache is > run from inetd it is restarted for every request and the whole process > dies after so leaks can't persist. Similar thing must happen with the > WN server where you probably had to configure PHP as a CGI instead of as > a module... so the PHP CGI restarts for every request and leaks cannot > persist in that case either. > > Short term solution (i.e. workaround!) with Apache: you could configure > PHP as a CGI under Apache and you probably would not get that error any > more. > > Now, there is obviously a problem somewhere that is triggered by > something you do or something you use in your script... without access > to the scripts/mapfile/data I can't be of more help. > > > Could it be something like the mapfile gets locked by Apache ? > > > > No. However it could be a leak of file handles in the first 4 requests > that makes it impossible to open the mapfile on the 5th request because > you ran out of available file handles. > > Maybe something you can try is to monitor the number of opened file > handles after each request and see if it increases dramatically. Run > the following command after each call to your script: > > $ lsof -c httpd | wc > > (list file handles opened by processes running the command httpd) > There's no PHP_PROJ involved. With lsof I noticed that the mapfile remains in use twice or more by one process. But....in the malfunctioning situation I loaded php_mapscript.so through php.ini (using extension=php_mapscript.so); After removing this line and loading mapscript with dl(php_mapscript.so) everything works fine! My next step will be to load MapScript.so through Apache directives, stay tuned, results will be available after the weekend! Gert-Jan -- Gert-Jan van der Weijden ________________________________________________________ ARIS - Adviesburo voor Ruimtelijke Informatie Systemen Hooghiemstraplein 126 Tel. +31-(0)30-2769180 3514 AZ UTRECHT Fax. +31-(0)30-2733578 The Netherlands E-mail gert-jan.van.der.weijden at aris.nl Http://www.aris.nl ________________________________________________________ From ghpark at hwr.arizona.edu Sat Apr 21 17:29:42 2001 From: ghpark at hwr.arizona.edu (Gi-Hyeon Park) Date: Sat, 21 Apr 2001 17:29:42 -0700 (MST) Subject: [mapserver-users] Java Script/Java Applet Help! In-Reply-To: <3AE03811.1A6AF126@dmsolutions.ca> Message-ID: Hi, mapserver-users! I am upgrading mapserver with gd-1.8 support and raster extension. I compiled mapserver successfully and it's working great if I don't use java script/applet. I used java script/applet (map_sdisplay.class and map_display.js), which were automatically generately from the maputil in Arc-View. It works great with gd-1.2 in our web, but I got an error when I tried new one with gd-1.8.4. Java.lang.NullPointerException error. It generates new map image in tmp directory but it can't load it. Does anyone know what I have to change in Java script/applet or have any working script/applet? Any suggestions? Thanks in advance! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ GI H. Park HyDIS LAB Department of Hydrology and Water Resources The University of Arizona Tucson, AZ 85721 From cameron at socialchange.net.au Sun Apr 22 00:01:23 2001 From: cameron at socialchange.net.au (Cameron Shorter) Date: Sun, 22 Apr 2001 17:01:23 +1000 Subject: [mapserver-users] Java Script/Java Applet Help! References: Message-ID: <3AE281C3.F74DE4B5@socialchange.net.au> I suspect that this is because: gd-1.2 supports .gif and not .png formats, and later version of gd (like gd-1.8) support .png and not .gif formats. Gi-Hyeon Park wrote: > > Hi, mapserver-users! > > I am upgrading mapserver with gd-1.8 support and raster extension. > I compiled mapserver successfully and it's working great if I don't use > java script/applet. > > I used java script/applet (map_sdisplay.class > and map_display.js), which were automatically generately from > the maputil in Arc-View. It works great with gd-1.2 in our web, but I > got an error when I tried new one with gd-1.8.4. > > Java.lang.NullPointerException error. > > It generates new map image in tmp directory but it can't load it. > > Does anyone know what I have to change in Java script/applet or have any > working script/applet? Any suggestions? > > Thanks in advance! > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > GI H. Park > > HyDIS LAB > Department of Hydrology and Water Resources > The University of Arizona > Tucson, AZ 85721 -- Cameron Shorter Web Mapping Manager Social Change Online 248 Johnson St Tel: +61 (0) 2 9692 5115 Annandale NSW 2038 Fax: +61 (0) 2 9692 5192 Sydney, Australia http://webmap.socialchange.net.au From yecarrillo at hotmail.com Sun Apr 22 08:34:56 2001 From: yecarrillo at hotmail.com (Eduin Yesid Carrillo) Date: Sun, 22 Apr 2001 10:34:56 -0500 Subject: [mapserver-users] Java Script/Java Applet Help! Message-ID: I have the same problem. And talking about Maputils... I?ve made some changes to the maputils scripts and now supports sde, marker, pen and fill symbols ... If anybody wants help me to test the alpha version of this upgrade please email me. ---------------------------- Eduin Yesid Carrillo Ingeniero Civil CIUDAD DIGITAL Central de Informaci?n Regional Georefenciada Bucaramanga - Colombia yecarrillo at hotmail.com yecarrillo at condorito.uis.edu.co #ICQ 14323531 >From: Cameron Shorter >To: Gi-Hyeon Park >CC: mapserver-users >Subject: Re: [mapserver-users] Java Script/Java Applet Help! >Date: Sun, 22 Apr 2001 17:01:23 +1000 > >I suspect that this is because: >gd-1.2 supports .gif and not .png formats, >and later version of gd (like gd-1.8) support .png and not .gif formats. > > > >Gi-Hyeon Park wrote: > > > > Hi, mapserver-users! > > > > I am upgrading mapserver with gd-1.8 support and raster extension. > > I compiled mapserver successfully and it's working great if I don't use > > java script/applet. > > > > I used java script/applet (map_sdisplay.class > > and map_display.js), which were automatically generately from > > the maputil in Arc-View. It works great with gd-1.2 in our web, but I > > got an error when I tried new one with gd-1.8.4. > > > > Java.lang.NullPointerException error. > > > > It generates new map image in tmp directory but it can't load it. > > > > Does anyone know what I have to change in Java script/applet or have any > > working script/applet? Any suggestions? > > > > Thanks in advance! > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > GI H. Park > > > > HyDIS LAB > > Department of Hydrology and Water Resources > > The University of Arizona > > Tucson, AZ 85721 > >-- >Cameron Shorter Web Mapping Manager >Social Change Online >248 Johnson St Tel: +61 (0) 2 9692 5115 >Annandale NSW 2038 Fax: +61 (0) 2 9692 5192 >Sydney, Australia http://webmap.socialchange.net.au _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From nwerneck at yahoo.com.br Sun Apr 22 12:05:02 2001 From: nwerneck at yahoo.com.br (=?iso-8859-1?q?Nicolau=20Werneck?=) Date: Sun, 22 Apr 2001 16:05:02 -0300 (ART) Subject: [mapserver-users] click-query Message-ID: <20010422190502.582.qmail@web4303.mail.yahoo.com> Hi... I'm performing that click query, to show information about some poit features in it. It happens that if the user clicks some 5 pixels away from the center of the point, mapserver returns: "msQueryUsingPoint(): Search returned no results. No matching record(s) found." In the CGI reference, it says that this query finds the closest feature... Is it just for lines or regions or what? How do I increase the distance away from the point that the user can click on? (I'll probably solve it creatting an invisible layer with circular areas around each point, but anyways...) --Nicolau _______________________________________________________________________________________________ Yahoo! GeoCities Tenha seu lugar na Web. Construa hoje mesmo sua home page no Yahoo! GeoCites. ? f?cil e gr?tis! http://br.geocities.yahoo.com/ From nwerneck at yahoo.com.br Sun Apr 22 12:11:46 2001 From: nwerneck at yahoo.com.br (=?iso-8859-1?q?Nicolau=20Werneck?=) Date: Sun, 22 Apr 2001 16:11:46 -0300 (ART) Subject: [mapserver-users] query 2 Message-ID: <20010422191146.3872.qmail@web4306.mail.yahoo.com> Sorry! I found it!! sorry!!! :) (I always send messages right before finding thing out... Damn!) --Nicolau _______________________________________________________________________________________________ Yahoo! GeoCities Tenha seu lugar na Web. Construa hoje mesmo sua home page no Yahoo! GeoCites. ? f?cil e gr?tis! http://br.geocities.yahoo.com/ From cameron at socialchange.net.au Sun Apr 22 16:45:08 2001 From: cameron at socialchange.net.au (Cameron Shorter) Date: Mon, 23 Apr 2001 09:45:08 +1000 Subject: [mapserver-users] XML interface for query templates Message-ID: <3AE36D04.84D632D8@socialchange.net.au> Hi, We are playing around with a perl wrapper for mapserv which will provide a GML interface to mapserv. However, we have run into a problem with queries. Query responses need to be returned in XML format. Some the the .dbf files we have contain ">" chars which needs to be converted to ">" if it used in an XML response. Currently, this option does not seem to be available in mapserv. So, what I'd like to add to the query object is an option like: * xml_conversion [true|false] which defaults to false When xml_conversion=true, data from the .dbf columns will be converted to be xml compliant. If this is OK by mapserv architects and our clients, then we will go ahead and implement it. -------- The logic required would be something like the following (example in perl) # Make the strings XML compliant: for (@_) { s/\&/&/g; s/\/>/g; # strip quotes if they are at wrapped around a term but don't # remove them if they are in the middle of a term. # Ie, "Towns" = Towns # Town's = Town's s/^\'(.*)\'$/$1/; s/^\"(.*)\"$/$1/; s/\'/'/g; s/\"/"/g; } -------- The extra parameter would need to be inserted in maplexer.l -------- My guess is that the xml conversion would need to be inserted in mapserv.c somewhere near line 1277: for(i=0;inumitems;i++) { sprintf(substr, "[%s]", Query->items[i]); if(strstr(outstr, substr) != NULL) { /* do substitution */ outstr = gsub(outstr, substr, Query->data[i]); } } /* next item */ ... -- Cameron Shorter Web Mapping Manager Social Change Online 248 Johnson St Tel: +61 (0) 2 9692 5115 Annandale NSW 2038 Fax: +61 (0) 2 9692 5192 Sydney, Australia http://webmap.socialchange.net.au From kafka at email.cz Sun Apr 22 23:06:12 2001 From: kafka at email.cz (Stepan Kafka) Date: Mon, 23 Apr 2001 08:06:12 +0200 Subject: [mapserver-users] click-query In-Reply-To: <20010422190502.582.qmail@web4303.mail.yahoo.com> Message-ID: <000401c0cbbb$7facd550$fb01a8c0@gis2.oku-kh.cz> Hi! There are the TOLERANCE and TOLERANCEUNITS parameters in the LAYER object. In adition, you can use the EMPTY parameter in the WEB object to show your page instead of the system message when mapserver finds nothing. 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 Nicolau > Werneck > Odesl?no: 22. dubna 2001 21:05 > Komu: mapserver-users at lists.gis.umn.edu > P?edm?t: [mapserver-users] click-query > > > Hi... > > I'm performing that click query, to show information > about some poit features in it. > > It happens that if the user clicks some 5 pixels away > from the center of the point, mapserver returns: > > "msQueryUsingPoint(): Search returned no results. No > matching record(s) found." > > In the CGI reference, it says that this query finds > the closest feature... Is it just for lines or regions > or what? > > How do I increase the distance away from the point > that the user can click on? > > (I'll probably solve it creatting an invisible layer > with circular areas around each point, but anyways...) > > --Nicolau > > > > __________________________________________________________________ > _____________________________ > Yahoo! GeoCities > Tenha seu lugar na Web. Construa hoje mesmo sua home page no > Yahoo! GeoCites. ? f?cil e gr?tis! > http://br.geocities.yahoo.com/ > From teb at mallit.fr.umn.edu Mon Apr 23 08:00:49 2001 From: teb at mallit.fr.umn.edu (teb) Date: Mon, 23 Apr 2001 10:00:49 -0500 (CDT) Subject: [mapserver-users] mapscript for java (fwd) Message-ID: <200104231500.KAA01958@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- Date: Mon, 23 Apr 2001 12:45:25 +0100 From: Riccardo Cohen X-Accept-Language: fr,en-US,af,sq,en,en-GB,fr-CA,de-CH,fi MIME-Version: 1.0 To: mapserver-info at lists.gis.umn.edu Subject: mapscript for java Content-Transfer-Encoding: 7bit Hi, I use MapServer for our new JavaServerPage web server. For the moment we call mapserver opening a socket and calling the webserver with /cgi-bin/mapserv requests. This behaviour works all right but is really not efficient and performant. I could not find any implementation of a java mapscript module, is there any Thanks for any information. -- Riccardo Cohen Articque Les Roches 37230 Fondettes France email = rcohen at dial.oleane.com web = http://www.articque.com tel: +33 02 47 49 90 49 fax: +33 02 47 49 91 49 ------------- End Forwarded Message ------------- From teb at mallit.fr.umn.edu Mon Apr 23 09:58:05 2001 From: teb at mallit.fr.umn.edu (teb) Date: Mon, 23 Apr 2001 11:58:05 -0500 (CDT) Subject: [mapserver-users] MSDemo symbol file problem (fwd) Message-ID: <200104231658.LAA02058@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- Date: Mon, 23 Apr 2001 11:53:52 -0500 From: "Sonia Dickerson" To: Subject: MSDemo symbol file problem Mime-Version: 1.0 I am using Windows NT and IIS 4.0. I downloaded and set up the windows binary ms34gif zip file. and copied the mapserve.exe to "D:\Inetpub\wwwroot\cgi-bin". Then I downloaded and set up the msdemo. But have come to a problem with the symbolset Based on the documentation: If you are using a MapServer Version 3.4 or newer, you will need to make one additional change. Newer versions use a unified symbol file format, which means you must store all symbols in one file. To do the switch: 1) The lines starting with SHADESET, MARKERSET, AND LINESET and the last END keyword should be deleted. 2) "SYMBOLSET symbol/symbol.sym" should be added 3) Make the new symbols.sym file by concatenating the three symbol files together. This is what I did: Step 1) I made a symbol.sym file by assimilating shade.sym, marker.sym, and line.sym. In order to do this, I cut and pasted the aforementioned files and deleted the SHADESET, MARKERSET, AND LINESET and the last END. Then I added a SYMBOLSET and END statement in the following fashion: SYMBOLSET END #end of symbolset Step 2) I made the following changes to the "demo.map" file: SYMBOLSET symbols/symbol.sym #LINESET symbols/line.sym #MARKERSET symbols/marker.sym #SHADESET symbols/shade.sym I got the following error: getSymbol(): Symbol definition error. (STYLED):(8) Can you tell me what I need to do to get the symbolset to work? Sonia Dickerson MN Department of Agriculture 90 West Plato Boulevard St. Paul, MN 55107-2094 phone: 651-284-3597 fax: 651-282-2442 sonia.dickerson at state.mn.us "If you wait until the wind and weather are just right you will never plant anything and never harvest anything" ------------- End Forwarded Message ------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From andreag at geoplan.ufl.edu Mon Apr 23 10:13:21 2001 From: andreag at geoplan.ufl.edu (Andrea Goethals) Date: Mon, 23 Apr 2001 13:13:21 -0400 Subject: [mapserver-users] mapserver logo Message-ID: <3AE462B1.31738329@geoplan.ufl.edu> I was thinking about the mapserver logo (need for one) this weekend. What seems to set Mapserver apart from the other map servers, other than open source, good mailing list, etc. is the speed of it. Because the fastest animal on Earth is the cheetah, that might make a good subject for a logo. Also, it would let us do a variety of logos that just have the same animal on them (similar to the penguin for Linux). Also, it would stand out from the rest of the GIS software logos which all seem to have globes. What do you all think? Andrea Goethals From steve.lime at dnr.state.mn.us Mon Apr 23 10:49:03 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 23 Apr 2001 12:49:03 -0500 Subject: [mapserver-users] mapserver logo Message-ID: Funny, but I kinda like the idea. I agree that the globe idea is kinda limiting since everyone else uses it. Now, who has the artistic talent to mock up something. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Andrea Goethals 04/23/01 12:13PM >>> I was thinking about the mapserver logo (need for one) this weekend. What seems to set Mapserver apart from the other map servers, other than open source, good mailing list, etc. is the speed of it. Because the fastest animal on Earth is the cheetah, that might make a good subject for a logo. Also, it would let us do a variety of logos that just have the same animal on them (similar to the penguin for Linux). Also, it would stand out from the rest of the GIS software logos which all seem to have globes. What do you all think? Andrea Goethals From bowenj at gaiaenv.com Mon Apr 23 11:21:10 2001 From: bowenj at gaiaenv.com (Jim T. Bowen) Date: Mon, 23 Apr 2001 12:21:10 -0600 Subject: [mapserver-users] mapserver logo In-Reply-To: Message-ID: <008e01c0cc22$2cc18bd0$0400a8c0@toro.gaiaenv.com> We have been using the name CheetahMap for quite some time here for our MapServer based products. In fact, we liked it so much, we registered cheetahmap.com! Have a peek at http://www.gaiaenv.com/images/logos/cheetah_map2.gif for the logo we have been using. We are not artists...but what we have conceptually stresses speed. Jim -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Stephen Lime Sent: Monday, April 23, 2001 11:49 AM To: andreag at geoplan.ufl.edu; mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] mapserver logo Funny, but I kinda like the idea. I agree that the globe idea is kinda limiting since everyone else uses it. Now, who has the artistic talent to mock up something. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Andrea Goethals 04/23/01 12:13PM >>> I was thinking about the mapserver logo (need for one) this weekend. What seems to set Mapserver apart from the other map servers, other than open source, good mailing list, etc. is the speed of it. Because the fastest animal on Earth is the cheetah, that might make a good subject for a logo. Also, it would let us do a variety of logos that just have the same animal on them (similar to the penguin for Linux). Also, it would stand out from the rest of the GIS software logos which all seem to have globes. What do you all think? Andrea Goethals From steve.lime at dnr.state.mn.us Mon Apr 23 11:40:30 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 23 Apr 2001 13:40:30 -0500 Subject: [mapserver-users] XML interface for query templates Message-ID: Hi Cameron: We're also working on XML output, initially as part of WMS compliance but then in a more general sense. I do see the need to allow XML (and even just HTML) output as part of general template usage. I assume that's where you're running into trouble. If you're accessing the features directly in perl and producing the XML from within the scripts (eg. not using templates) then it's easy enough to do the substitution in perl. Here's what I propose: 3.5 already allows you to change DBF item filtering in templates so you can request an item called NAME using [NAME] or [NAME_esc]. The first gets you the straight string, the second gets you the string escaped for inclusion in a GET request. It would be easy to add a third option [NAME_xml] or similar that would XML escaped equivilalent. If you could come up with the function to do the XML escaping, it's got to already exist someplace, then I could add this to 3.5 (which is really pretty stable) in a few minutes. Let me know what you think. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Cameron Shorter 04/22/01 06:45PM >>> Hi, We are playing around with a perl wrapper for mapserv which will provide a GML interface to mapserv. However, we have run into a problem with queries. Query responses need to be returned in XML format. Some the the .dbf files we have contain ">" chars which needs to be converted to ">" if it used in an XML response. Currently, this option does not seem to be available in mapserv. So, what I'd like to add to the query object is an option like: * xml_conversion [true|false] which defaults to false When xml_conversion=true, data from the .dbf columns will be converted to be xml compliant. If this is OK by mapserv architects and our clients, then we will go ahead and implement it. -------- The logic required would be something like the following (example in perl) # Make the strings XML compliant: for (@_) { s/\&/&/g; s/\/>/g; # strip quotes if they are at wrapped around a term but don't # remove them if they are in the middle of a term. # Ie, "Towns" = Towns # Town's = Town's s/^\'(.*)\'$/$1/; s/^\"(.*)\"$/$1/; s/\'/'/g; s/\"/"/g; } -------- The extra parameter would need to be inserted in maplexer.l -------- My guess is that the xml conversion would need to be inserted in mapserv.c somewhere near line 1277: for(i=0;inumitems;i++) { sprintf(substr, "[%s]", Query->items[i]); if(strstr(outstr, substr) != NULL) { /* do substitution */ outstr = gsub(outstr, substr, Query->data[i]); } } /* next item */ ... -- Cameron Shorter Web Mapping Manager Social Change Online 248 Johnson St Tel: +61 (0) 2 9692 5115 Annandale NSW 2038 Fax: +61 (0) 2 9692 5192 Sydney, Australia http://webmap.socialchange.net.au From david_raitzer at hotmail.com Mon Apr 23 12:56:22 2001 From: david_raitzer at hotmail.com (David Raitzer) Date: Mon, 23 Apr 2001 15:56:22 -0400 Subject: [mapserver-users] conflicts between MapServer and ColdFusion? Message-ID: Hello all, I appreciate the help that I've received over the past couple of days, but I do have another simple question. I believe that I'm ready to put MapServer onto our webserver, but the server administrator first wishes to receive some assurance that MapServer won't conflict with server's ColdFusion installation (under Windows NT Server with IIS). My site won't be using ColdFusion, but we want to be sure that MapServer won't impair any ColdFusion functionality. It would be very helpful if any users who have experience running both MapServer and ColdFusion could comment on this issue. Thanks for any help. -David P.S. On an unrelated subject, is there any way to specify line thickness in MapServer version 3.4? Thanks again. _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com From andreag at geoplan.ufl.edu Mon Apr 23 13:47:06 2001 From: andreag at geoplan.ufl.edu (Andrea Goethals) Date: Mon, 23 Apr 2001 16:47:06 -0400 Subject: [mapserver-users] recoloring raster images on-the-fly Message-ID: <3AE494CA.2D2ADA71@geoplan.ufl.edu> I have a need to create legends on-the-fly for raster images and to recolor the images on-the-fly. I found in the archive one way to do this: http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/0006/msg00083.html It works but there is not an item name to use for complex expressions like there is with shapefiles. If I put more than one class/end within a layer tag it wants to have a classitem, which I can't have for tiffs. So it seems that they have to be in separate layer/end tags. Is there a way to recolor and create a legend for an image without creating ~100 layer/end tags to symbolize an image into 10 ranges (1-10, 11-20, etc)? Regular expressions don't seem to be recognized for use in recoloring images... Thanks, Andrea -- @-------------------------@ | Andrea Goethals | | andreag at geoplan.ufl.edu | | GeoPlan Center | | University of Florida | @-------------------------@ From steve.lime at dnr.state.mn.us Mon Apr 23 13:45:45 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 23 Apr 2001 15:45:45 -0500 Subject: [mapserver-users] conflicts between MapServer and ColdFusion? Message-ID: With MapServer as a CGI I don't see how they could collide, but anything's possible under NT. ;-) On symbols: when using a scalable brush (either TYPE VECTOR or TYPE ELLIPSE) you can specify a SIZE for a class and that equates to line width. Here's how I do it (remember symbols can be defined in the mapfile): SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED END LAYER ... CLASS SYMBOL 'circle' COLOR 255 0 0 SIZE 5 END ... Will get you a 5 pixel wide line. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "David Raitzer" 04/23/01 02:56PM >>> Hello all, I appreciate the help that I've received over the past couple of days, but I do have another simple question. I believe that I'm ready to put MapServer onto our webserver, but the server administrator first wishes to receive some assurance that MapServer won't conflict with server's ColdFusion installation (under Windows NT Server with IIS). My site won't be using ColdFusion, but we want to be sure that MapServer won't impair any ColdFusion functionality. It would be very helpful if any users who have experience running both MapServer and ColdFusion could comment on this issue. Thanks for any help. -David P.S. On an unrelated subject, is there any way to specify line thickness in MapServer version 3.4? Thanks again. _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Mon Apr 23 14:01:07 2001 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Mon, 23 Apr 2001 17:01:07 -0400 Subject: [mapserver-users] conflicts between MapServer and ColdFusion? Message-ID: <2951561DB3DDD0118FEC00805FFE980504942351@s5-ccr-r1> David, You can rest assured, there will be no conflict of any kind! My main server runs CF 4.5.1 for Linux, PHP, MapScript for PHP and the CGI version of mapserver all without any problems. MapServer, natively, is a CGI application, I have a hard time figuring out why your sysadmin would even think that there could be a conflict! Oh wait, it's a Microsoft Platform, ok, that must be why :) J.F. > ---------- > From: David Raitzer[SMTP:david_raitzer at hotmail.com] > Sent: Monday, April 23, 2001 3:56 PM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] conflicts between MapServer and > ColdFusion? > > Hello all, > > I appreciate the help that I've received over the past couple of days, but > I > do have another simple question. I believe that I'm ready to put > MapServer > onto our webserver, but the server administrator first wishes to receive > some assurance that MapServer won't conflict with server's ColdFusion > installation (under Windows NT Server with IIS). My site won't be using > ColdFusion, but we want to be sure that MapServer won't impair any > ColdFusion functionality. It would be very helpful if any users who have > experience running both MapServer and ColdFusion could comment on this > issue. Thanks for any help. > > -David > > P.S. On an unrelated subject, is there any way to specify line thickness > in > MapServer version 3.4? Thanks again. > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com > From paul at tei.or.th Mon Apr 23 14:39:28 2001 From: paul at tei.or.th (Paul Hastings) Date: Tue, 24 Apr 2001 04:39:28 +0700 Subject: [mapserver-users] XML interface for query templates References: Message-ID: <006401c0cc3d$e10a3db0$0a729acb@tei.or.th> > If you could come up with the function to do the XML escaping, it's got to already > exist someplace, then I could add this to 3.5 (which is really pretty stable) in a few minutes. if WDDX flavored XML is ok, might try www.openWDDX.org we've got standalone vb programs (arcNT ODE) talking top web & app servers via its WDDX SDK rather painlessly. From cameron at socialchange.net.au Mon Apr 23 14:51:33 2001 From: cameron at socialchange.net.au (Cameron Shorter) Date: Tue, 24 Apr 2001 07:51:33 +1000 Subject: [mapserver-users] XML interface for query templates References: Message-ID: <3AE4A3E5.9732BABC@socialchange.net.au> Comments inline. Stephen Lime wrote: > > Hi Cameron: We're also working on XML output, initially as part of WMS compliance > but then in a more general sense. Ah yes, we are creating a WMS (web map server) by putting a perl wrapper on top of mapserv. (We have it working with a couple of minor bugs). It would be great to see it done properly within the mapserv baseline. How long to you expect it to take to develop the WMS interface? > I do see the need to allow XML (and even just HTML) > output as part of general template usage. I assume that's where you're running into > trouble. Yes. > If you're accessing the features directly in perl and producing the XML from > within the scripts (eg. not using templates) then it's easy enough to do the substitution > in perl. Here's what I propose: > > 3.5 already allows you to change DBF item filtering in templates so you can request > an item called NAME using [NAME] or [NAME_esc]. The first gets you the straight > string, the second gets you the string escaped for inclusion in a GET request. It would > be easy to add a third option [NAME_xml] or similar that would XML escaped equivilalent. Yes, that would do the job. > > If you could come up with the function to do the XML escaping, it's got to already > exist someplace, then I could add this to 3.5 (which is really pretty stable) in a few minutes. I will search around today (overnight for you people in the USA). -- Cameron Shorter Web Mapping Manager Social Change Online 248 Johnson St Tel: +61 (0) 2 9692 5115 Annandale NSW 2038 Fax: +61 (0) 2 9692 5192 Sydney, Australia http://webmap.socialchange.net.au From paul at tei.or.th Mon Apr 23 15:11:20 2001 From: paul at tei.or.th (Paul Hastings) Date: Tue, 24 Apr 2001 05:11:20 +0700 Subject: [mapserver-users] conflicts between MapServer and ColdFusion? References: Message-ID: <000e01c0cc42$549d59c0$0a729acb@tei.or.th> > installation (under Windows NT Server with IIS). My site won't be using > ColdFusion, but we want to be sure that MapServer won't impair any > ColdFusion functionality. It would be very helpful if any users who have > experience running both MapServer and ColdFusion could comment on this > issue. Thanks for any help. absolutely no conflicts so far with the CGI version. i've built several test/demo apps using mapserver & cf. From ncowham at forumone.com Mon Apr 23 15:14:59 2001 From: ncowham at forumone.com (Nyk Cowham) Date: Mon, 23 Apr 2001 18:14:59 -0400 Subject: [mapserver-users] conflicts between MapServer and ColdFusion? Message-ID: David: MapServer should in no way conflict with ColdFusion. We are currently running MapServer (using perl mapscript) with many regular CGI scripts in both perl and C. On the same server we are running ColdFusion, PHP, and Jakarta Tomcat (JSP/Servlet engine). All of these services are discrete and do not conflict with each other. Our configuration is that PHP handles pages with a .php/.php4/.php3 extention, ColdFusion handles files with a .cfm extention and Tomcat handles .jsp files. So long as you have no conflicts with filetype handlers (i.e. the webserver is not configured to run ColdFusion for all files including .htm/.html etc.) you should experience no conflicts. Hope that helps Nyk Cowham Forum One Communications http://www.forumone.com/ Communicate Collaborate Change the world > -----Original Message----- > From: David Raitzer [mailto:david_raitzer at hotmail.com] > Sent: Monday, April 23, 2001 3:56 PM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] conflicts between MapServer and ColdFusion? > > > Hello all, > > I appreciate the help that I've received over the past couple > of days, but I > do have another simple question. I believe that I'm ready to > put MapServer > onto our webserver, but the server administrator first wishes > to receive > some assurance that MapServer won't conflict with server's ColdFusion > installation (under Windows NT Server with IIS). My site > won't be using > ColdFusion, but we want to be sure that MapServer won't impair any > ColdFusion functionality. It would be very helpful if any > users who have > experience running both MapServer and ColdFusion could > comment on this > issue. Thanks for any help. > > -David > > P.S. On an unrelated subject, is there any way to specify > line thickness in > MapServer version 3.4? Thanks again. > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com > > -------------- next part -------------- A non-text attachment was scrubbed... Name: Nyk Cowham.vcf Type: text/x-vcard Size: 220 bytes Desc: Nyk Cowham.vcf URL: From morissette at dmsolutions.ca Mon Apr 23 18:10:22 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 23 Apr 2001 21:10:22 -0400 Subject: [mapserver-users] XML interface for query templates References: <3AE4A3E5.9732BABC@socialchange.net.au> Message-ID: <3AE4D27E.7001F1A4@dmsolutions.ca> Cameron Shorter wrote: > > Stephen Lime wrote: > > > > Hi Cameron: We're also working on XML output, initially as part of WMS compliance > > but then in a more general sense. > > Ah yes, we are creating a WMS (web map server) by putting a perl wrapper > on top of mapserv. (We have it working with a couple of minor bugs). > > It would be great to see it done properly within the mapserv baseline. > How long to you expect it to take to develop the WMS interface? > Cameron, There has been quite a bit of work on this recently (between Steve and us), and WMS compatibility is actually there now as part of the mapserv CGI and is being tested in a few places. Unfortunately we don't have a WMS client *publicly* accessible to demonstrate it, but I've setup a server with the GeoGratis GMap demo data at: http://www2.dmsolutions.ca:8099/cgi-bin/mswms_gmap If anyone has a WMS client then you're invited to try accessing the server and report any problem you notice. (Note: mswms_gmap in the URL above is just a simple shell script that presets the MS_MAPFILE variable and then calls the mapserv V3.5 CGI with WMS compiled in) The Capabilities URL is: http://www2.dmsolutions.ca:8099/cgi-bin/mswms_gmap?request=capabilities And I guess the simplest possible getMap URL would be: http://www2.dmsolutions.ca:8099/cgi-bin/mswms_gmap?wmtver=1.0.7&request=map (I know the above URL is missing some required WMS parameters, but MapServer forgives that and uses defaults from the map file :) Here are some of the current features/limitations of WMS support: - Support for both WMS v1.0.0 and WMS v1.0.7 (draft spec) - Support for getCapabilities, getMap, and getFeatureInfo - FeatureInfo currently supported only for type=MIME and returns a text/plain response (will be extended to return a text/html response using MapServer HTML templates). - GML FeatureInfo output will be supported but is not there yet. - Capabilities document contains nothing about Styles yet and the current implmentation ignores everything about styles. - Maps can be served in any PROJ.4 supported projection (including on-the-fly raster reprojection if mapserv is compiled with the GDAL raster library) If you feel brave then you can get the CVS source and compile it, then update your map file to version 3.5 (most changes are related to QUERY stuff and new METADATA object), and give it a try. The CVS source is in pretty good shape so compiling should not be a problem... it's just that there are a few things required in your MAP file for your server to generate a valid capabilities document. I'll try to list them here: - You need a METADATA object in the WEB object with at least the following: WEB ... METADATA "title" "My WMS Server" "wms_all_proj" "EPSG:4269 EPSG:4326" "onlineresource" "http://www2.dmsolutions.ca:8099/cgi-bin/mswms_gmap" END END - Then the MAP PROJECTION *must* be defined using an EPSG code: PROJECTION "init=epsg:4269" END (Note: "init=epsg:..." is possible because a new epsg translation file has been added to PROJ 4.4.3 that is required by MapServer 3.5) - And each layer must have a NAME, the following METADATA and a PROJECTION: LAYER NAME highways ... METADATA "title" "Highways" END PROJECTION "init=epsg:4269" END ... END Hopefully the above should be enough to get you going, but since you already have an understanding of the spec then it should not be too bad... this will all have to be documented before we officially release the thing and start supporting it. (That's probably why WMS support was not announced by Steve on the list yet... sorry if I sold the scoop, Steve ;) -- ------------------------------------------------------------ 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 hdhaan at Delft.nl Tue Apr 24 00:05:43 2001 From: hdhaan at Delft.nl (Herman Tjesse de Haan) Date: Tue, 24 Apr 2001 09:05:43 +0200 Subject: [mapserver-users] ecw Message-ID: <0D7CF4BC9122D4119E0C0008C78492E501D219B0@cs03-e.gemeente.delft.nl> Hi, Is there anyone using the ecw-format to display air photographs with mapserver? Best regards, Herman de Haan From warmerdam at pobox.com Tue Apr 24 05:52:00 2001 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 24 Apr 2001 08:52:00 -0400 Subject: [mapserver-users] ecw References: <0D7CF4BC9122D4119E0C0008C78492E501D219B0@cs03-e.gemeente.delft.nl> Message-ID: <3AE576F0.30609F82@pobox.com> Herman Tjesse de Haan wrote: > > Hi, > > Is there anyone using the ecw-format to display air photographs with > mapserver? Herman, Is there direct ECW support in MapServer? In any event, there is ECW support in GDAL and GDAL support has been incorporated into the current CVS tree for MapServer. If you are brave, you could build the current CVS MapServer, and build GDAL (carefully enabling ECW support) to get this capability. More information on GDAL is available at: http://www.remotesensing.org/gdal/ The downside is that I have had problems with the GDAL ECW supporting hanging processes on exit(), presumably because of some sort of threads issue on exit. So I don't know that this is ready for prime time yet. 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 kenboss at dilbert.dnr.state.mn.us Tue Apr 24 07:23:17 2001 From: kenboss at dilbert.dnr.state.mn.us (kenboss) Date: Tue, 24 Apr 2001 09:23:17 -0500 (CDT) Subject: [mapserver-users] ecw Message-ID: <200104241423.JAA05725@philbert.dnr.state.mn.us> Now this is welcome news. Our shop has to date steered clear of ECW owing to its apparent marriage to Microsoft operating systems. Given that we are primarily a Unix shop, and in particular that our web server is Unix-based, there didn't seem to be any reasonable means of fitting ECW into the mix. Can I assume that GDAL support for ECW means that we will (finally) be able to serve ECW images from Unix servers? --Ken Boss > Frank Warmerdam wrote: > > Is there direct ECW support in MapServer? > > In any event, there is ECW support in GDAL and GDAL support has been > incorporated into the current CVS tree for MapServer. If you are brave, you > could build the current CVS MapServer, and build GDAL (carefully enabling > ECW support) to get this capability. > > More information on GDAL is available at: > > http://www.remotesensing.org/gdal/ > > The downside is that I have had problems with the GDAL ECW supporting hanging > processes on exit(), presumably because of some sort of threads issue on > exit. So I don't know that this is ready for prime time yet. > > 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.armstrong at ntlworld.com Tue Apr 24 07:53:04 2001 From: david.armstrong at ntlworld.com (David Armstrong) Date: Tue, 24 Apr 2001 15:53:04 +0100 Subject: [mapserver-users] request example importing multiple tiff files Message-ID: <001401c0ccce$44b166a0$ac48fe3e@david> Could i please ask for an example of importing a large 400 + number of tiff raster files(along with the supporting tfw world files or geotiff format maps into mapserver i was looking along the lines of using an index dbf file etc, any ideas welcome regards Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: From yecarrillo at hotmail.com Tue Apr 24 10:47:50 2001 From: yecarrillo at hotmail.com (Eduin Yesid Carrillo) Date: Tue, 24 Apr 2001 12:47:50 -0500 Subject: [mapserver-users] MS3.5 and ArcSDE Message-ID: I fail again in my effort to get MS read arcsde layers... VC produces this errors: Microsoft (R) Program Maintenance Utility Version 6.00.8168.0 Copyright (C) Microsoft Corp 1988-1998. All rights reserved. cd .. cl /nologo /Zi -I./gd-1.2 -I./tiff-v3.5.6/libtiff -I./jpeg-6b -I./freety pe/lib -I./gdft -I./proj/src -I./regex-0.12 -I./arcsde/include -DHAVE_STRING _H -DREGEX_MALLOC -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_EPPL -DUSE_PROJ - DUSE_TTF -DUSE_TIFF -DUSE_JPEG -DUSE_GD_1_2 -DUSE_SDE /c mapsde.c /Fomapsde.obj mapsde.c ./arcsde/include\sg.h(346) : error C2054: expected '(' to follow 'SGGLOBAL' ./arcsde/include\sg.h(346) : error C2085: 'SgGlobalCoordinateTruncationFlag' : n ot in formal parameter list ./arcsde/include\sg.h(359) : error C2085: 'SgCoordRefCreate' : not in formal par ameter list ./arcsde/include\sg.h(360) : error C2085: 'SgCoordRefFree' : not in formal param eter list ./arcsde/include\sg.h(362) : error C2085: 'SgCoordRefDuplicate' : not in formal parameter list ./arcsde/include\sg.h(364) : error C2085: 'SgCoordRefGetCoordSys' : not in forma l parameter list ... ./arcsde/include\sg.h(660) : error C2085: 'SgShapeIsOverlapping' : not in formal parameter list ./arcsde/include\sg.h(661) : error C2085: 'SgShapeIsPoint' : not in formal param eter list ./arcsde/include\sg.h(662) : error C2085: 'SgShapeIsPolygon' : not in formal par ameter list ./arcsde/include\sg.h(662) : fatal error C1003: error count exceeds 100; stoppin g compilation NMAKE : fatal error U1077: 'cl' : return code '0x2' Stop. Any ideas? Thanks ---------------------------- Eduin Yesid Carrillo Ingeniero Civil CIUDAD DIGITAL Central de Informaci?n Regional Georefenciada Bucaramanga - Colombia yecarrillo at hotmail.com yecarrillo at condorito.uis.edu.co #ICQ 14323531 _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From Rich at GreenwoodMap.com Tue Apr 24 12:17:52 2001 From: Rich at GreenwoodMap.com (Richard Greenwood) Date: Tue, 24 Apr 2001 13:17:52 -0600 Subject: [mapserver-users] novice questions Message-ID: <5.1.0.14.0.20010424130946.00ac62c8@mail.GreenwoodMap.com> I've spent less than a day with MapServer, so please excuse my ignorance. It is possible to have a transparent fill, or cross hatching? Is it possible to connect to a client-server database for attribute queries? Is anybody using MapServer with (don't gag) Active Server Pages? TIA, Rich Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 fax: 733-4018 http://www.GreenwoodMap.com From spaske at kapur-assoc.com Tue Apr 24 14:30:22 2001 From: spaske at kapur-assoc.com (Sam Paske) Date: Tue, 24 Apr 2001 16:30:22 -0500 Subject: [mapserver-users] novice questions In-Reply-To: <5.1.0.14.0.20010424130946.00ac62c8@mail.GreenwoodMap.com> Message-ID: Rich, I have gotten transparent fills to work on one of my map sites: http://www.kapurgis.com/agsmaps/t-cdrbrg/zoning_init.html I used the ellipse symbol as follows to set up a layer class: CLASS NAME "A-1" EXPRESSION 'A-1' OUTLINECOLOR 0 0 0 SYMBOL 1 SIZE 1 COLOR 128 225 185 END I am really pleased with the results. Good luck! Sam Paske www.kapurgis.com -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Richard Greenwood Sent: Tuesday, April 24, 2001 2:18 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] novice questions I've spent less than a day with MapServer, so please excuse my ignorance. It is possible to have a transparent fill, or cross hatching? Is it possible to connect to a client-server database for attribute queries? Is anybody using MapServer with (don't gag) Active Server Pages? TIA, Rich Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 fax: 733-4018 http://www.GreenwoodMap.com From steve.lime at dnr.state.mn.us Tue Apr 24 14:47:11 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 24 Apr 2001 16:47:11 -0500 Subject: [mapserver-users] novice questions Message-ID: - Transparent fills aren't possible yet. GD-2.0 allows alpha channel blending so this wiil likely be supported in the future. You can achieve something kinda similar using hatched symbols. There was another reply to your message that goes into that. - MapServer cannot connect to external databases. I hope to add ODBC support at some level in 3.5, but not for the initial release. There are work arounds using small helper programs though that work very effectively. As long as you have a primary key in your shapefiles you can pretty easily link apps. - Not officially. There we're some folks maintaining similar functionally to MapScript in a COM interface but I've no idea the status of that development. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Richard Greenwood 04/24/01 02:17PM >>> I've spent less than a day with MapServer, so please excuse my ignorance. It is possible to have a transparent fill, or cross hatching? Is it possible to connect to a client-server database for attribute queries? Is anybody using MapServer with (don't gag) Active Server Pages? TIA, Rich Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 fax: 733-4018 http://www.GreenwoodMap.com From morissette at dmsolutions.ca Tue Apr 24 15:41:58 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 24 Apr 2001 18:41:58 -0400 Subject: [mapserver-users] novice questions References: Message-ID: <3AE60136.25578A62@dmsolutions.ca> Stephen Lime wrote: > > - Not officially. There we're some folks maintaining similar functionally to MapScript > in a COM interface but I've no idea the status of that development. > Interesting! Would it be possible to learn more on this from the maintainers of this COM interface? What's the status of this project? Is it Open Source? Is it available anywhere? -- ------------------------------------------------------------ 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 yecarrillo at hotmail.com Tue Apr 24 16:23:15 2001 From: yecarrillo at hotmail.com (Eduin Yesid Carrillo) Date: Tue, 24 Apr 2001 18:23:15 -0500 Subject: [mapserver-users] Too many symbols defined Message-ID: Where can I modify the symbols limit in the symbol file? Error: msLoadSymbolSet(): Symbol definition error. Too many symbols defined. Thanks. ---------------------------- Eduin Yesid Carrillo Ingeniero Civil CIUDAD DIGITAL Central de Informaci?n Regional Georefenciada Bucaramanga - Colombia yecarrillo at hotmail.com yecarrillo at condorito.uis.edu.co #ICQ 14323531 _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From yecarrillo at hotmail.com Tue Apr 24 16:55:45 2001 From: yecarrillo at hotmail.com (Eduin Yesid Carrillo) Date: Tue, 24 Apr 2001 18:55:45 -0500 Subject: [mapserver-users] MS3.5 and ArcSDE Message-ID: I tried to compile MS3.4 and 3.5 with sde support and gd 1.8.4 (patched) and 1.8.4 (patched+autoconf), but fails... Get similar problems with Freetype 2.01 . ---------------------------- Eduin Yesid Carrillo Ingeniero Civil CIUDAD DIGITAL Central de Informaci?n Regional Georefenciada Bucaramanga - Colombia yecarrillo at hotmail.com yecarrillo at condorito.uis.edu.co #ICQ 14323531 >From: "Stephen Lime" >To: >Subject: Re: [mapserver-users] MS3.5 and ArcSDE >Date: Tue, 24 Apr 2001 16:37:59 -0500 > >These are errors with the SDE headers themselves, so that kinda sucks. I'm >not a windows guy so I don't know what the best course of action is. ESRI >does >have compile instructions at: > > http://www.esri.com/devsupport/devconn/sde/index.html > >That's where I figured it out on the UNIX-side. One other thing, you can't >use >gd-1.2 anymore. It may work for shapefiles but definitely not with raster >data. >If you really need GIF support let me know and I'll send you the URL for a >patched version of GD-1.8.4 that gives you all the formats. I don't have it >handy at the moment. > >Steve > >Stephen Lime >Internet Applications Analyst > >Minnesota DNR >500 Lafayette Road >St. Paul, MN 55155 >651-297-2937 > _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From morissette at dmsolutions.ca Tue Apr 24 17:09:19 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 24 Apr 2001 20:09:19 -0400 Subject: [mapserver-users] mapserver logo References: <3AE462B1.31738329@geoplan.ufl.edu> Message-ID: <3AE615AF.AFECBF1A@dmsolutions.ca> Andrea Goethals wrote: > > I was thinking about the mapserver logo (need for one) this weekend. > What seems to set Mapserver apart from the other map servers, other > than open source, good mailing list, etc. is the speed of it. > Because the fastest animal on Earth is the cheetah, that might make > a good subject for a logo. Also, it would let us do a variety of > logos that just have the same animal on them (similar to the penguin > for Linux). Also, it would stand out from the rest of the GIS software > logos which all seem to have globes. What do you all think? > I love the idea! :) See attached below 2 sample designs that one of our guys came up with when he heard about the idea... we can't use those images right now unless we buy the rights for the base images (only 10$ for unlimited use)... but hopefully these will spark other artistic ideas. -- ------------------------------------------------------------ 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. -------------- next part -------------- A non-text attachment was scrubbed... Name: cheetah1.gif Type: image/gif Size: 5289 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: cheetah2.gif Type: image/gif Size: 4385 bytes Desc: not available URL: From yecarrillo at hotmail.com Tue Apr 24 17:33:06 2001 From: yecarrillo at hotmail.com (Eduin Yesid Carrillo) Date: Tue, 24 Apr 2001 19:33:06 -0500 Subject: [mapserver-users] Fill polygons with vertical lines Message-ID: How can define the symbol to fill polygons with vertical lines? ---------------------------- Eduin Yesid Carrillo Ingeniero Civil CIUDAD DIGITAL Central de Informaci?n Regional Georefenciada Bucaramanga - Colombia yecarrillo at hotmail.com yecarrillo at condorito.uis.edu.co #ICQ 14323531 _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From mark.wilson at rohoel.at Tue Apr 24 23:57:07 2001 From: mark.wilson at rohoel.at (mark.wilson at rohoel.at) Date: Wed, 25 Apr 2001 08:57:07 +0200 Subject: [mapserver-users] mapserver logo Message-ID: I have not had time to get my own concept into a logo mockup. I had envisaged the head and shoulders of a waiter, serving a stylised globe or rectangular map. The idea of speed is a good one, so I thought the waiter might be skewed to suggest fast service. Having outlined my own rather unoriginal concept, I have to say I really like the cheetah2.gif example. As well as being suggestive of a cheetah, I like the way it also looks like a map of surface relief. That one, or a similar concept, gets my vote. Mark Daniel Morissette on 25/04/2001 02:09:19 To: Andrea Goethals cc: mapserver-users at lists.gis.umn.edu (bcc: Mark H Wilson/RAG/AT) Subject: Re: [mapserver-users] mapserver logo Andrea Goethals wrote: > > I was thinking about the mapserver logo (need for one) this weekend. > What seems to set Mapserver apart from the other map servers, other > than open source, good mailing list, etc. is the speed of it. > Because the fastest animal on Earth is the cheetah, that might make > a good subject for a logo. Also, it would let us do a variety of > logos that just have the same animal on them (similar to the penguin > for Linux). Also, it would stand out from the rest of the GIS software > logos which all seem to have globes. What do you all think? > I love the idea! :) See attached below 2 sample designs that one of our guys came up with when he heard about the idea... we can't use those images right now unless we buy the rights for the base images (only 10$ for unlimited use)... but hopefully these will spark other artistic ideas. -- ------------------------------------------------------------ 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. -------------- next part -------------- A non-text attachment was scrubbed... Name: cheetah1.gif Type: image/gif Size: 5289 bytes Desc: Compuserve GIF URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: cheetah2.gif Type: image/gif Size: 4385 bytes Desc: Compuserve GIF URL: From Alan.Havermann at usertech.com Wed Apr 25 05:11:40 2001 From: Alan.Havermann at usertech.com (Havermann, Al) Date: Wed, 25 Apr 2001 07:11:40 -0500 (CDT) Subject: [mapserver-users] Date: Wed, 25 Apr 2001 08:11:36 -0400 Message-ID: <2150E7292579D411AB810008C7F41F2A3E575D@CTMS02> Map server users, I'm trying to locate some Jave code that controls the browser size and position so that it always launches to the same screen coordinates. Do you know where I can find this code? I'm not a programmer but I need to plug it into an HTML document. Thanks in advance. Al -------------- next part -------------- An HTML attachment was scrubbed... URL: From pich at spektra.de Wed Apr 25 05:13:06 2001 From: pich at spektra.de (Thomas Pich) Date: Wed, 25 Apr 2001 14:13:06 +0200 Subject: [mapserver-users] Proj4 Message-ID: <91531C2EF097D94ABD7C10E7E914D3C005A72E@victoria.spektra.de> Hello, does anybody know why the "city"-layers in the follow mapfile will not be included? The "country"-layer is visible. The city-layers only without projection are displayed. thanks Thomas ------------------------------------------------- NAME DEMO STATUS ON SIZE 800 800 FONTSET ../fonts/fonts.list SHADESET ../symbols/shade.sym MARKERSET ../symbols/marker.sym LINESET ../symbols/line.sym EXTENT 5.0 47.0 15.0 55.0 UNITS DD SHAPEPATH "../data/eur" IMAGECOLOR 130 200 234 PROJECTION "proj=merc" "ellps=GRS80" END #XXX Country XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX LAYER NAME country TYPE POLYGON STATUS DEFAULT DATA eurnuts0 CLASS COLOR 255 255 220 OUTLINECOLOR 0 0 0 END PROJECTION geographic END END #XXX City XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX #XXX Scale: 5.000.000 bis 15.000.000 XXXXXXXXXX LAYER NAME city TYPE POINT MAXSCALE 15000000 MINSCALE 5000000 STATUS ON DATA eur_city CLASS COLOR 153 153 153 SYMBOL "city_shield" END PROJECTION geographic END END #XXX Scale: 200.000 bis 5.000.000 XXXXXXXXXXXXX LAYER NAME city TYPE POINT MAXSCALE 5000000 MINSCALE 200000 STATUS ON DATA eur_city CLASS COLOR 153 153 153 SYMBOL "city_shield2" END PROJECTION geographic END END #XXX Scale: 200.000 bis 15.000.000 XXXXXXXXXXXX LAYER NAME city TYPE ANNOTATION MAXSCALE 15000000 MINSCALE 200000 STATUS ON DATA eur_city LABELITEM "Name" CLASS LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 0 POSITION LC FONT arial TYPE TRUETYPE SIZE 10 PARTIALS FALSE BUFFER 2 END END PROJECTION geographic END END From pich at spektra.de Wed Apr 25 06:30:52 2001 From: pich at spektra.de (Thomas Pich) Date: Wed, 25 Apr 2001 15:30:52 +0200 Subject: [mapserver-users] PROJ4 and Layers Message-ID: <91531C2EF097D94ABD7C10E7E914D3C00581E7@victoria.spektra.de> Hello, does anybody know why the "city"-layers in the follow mapfile will not be included? The "country"-layer is visible. The city-layers only without projection are displayed. thanks Thomas ------------------------------------------------- NAME DEMO STATUS ON SIZE 800 800 FONTSET ../fonts/fonts.list SHADESET ../symbols/shade.sym MARKERSET ../symbols/marker.sym LINESET ../symbols/line.sym EXTENT 5.0 47.0 15.0 55.0 UNITS DD SHAPEPATH "../data/eur" IMAGECOLOR 130 200 234 PROJECTION "proj=merc" "ellps=GRS80" END #XXX Country XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX LAYER NAME country TYPE POLYGON STATUS DEFAULT DATA eurnuts0 CLASS COLOR 255 255 220 OUTLINECOLOR 0 0 0 END PROJECTION geographic END END #XXX City XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX #XXX Scale: 5.000.000 bis 15.000.000 XXXXXXXXXX LAYER NAME city TYPE POINT MAXSCALE 15000000 MINSCALE 5000000 STATUS ON DATA eur_city CLASS COLOR 153 153 153 SYMBOL "city_shield" END PROJECTION geographic END END #XXX Scale: 200.000 bis 5.000.000 XXXXXXXXXXXXX LAYER NAME city TYPE POINT MAXSCALE 5000000 MINSCALE 200000 STATUS ON DATA eur_city CLASS COLOR 153 153 153 SYMBOL "city_shield2" END PROJECTION geographic END END #XXX Scale: 200.000 bis 15.000.000 XXXXXXXXXXXX LAYER NAME city TYPE ANNOTATION MAXSCALE 15000000 MINSCALE 200000 STATUS ON DATA eur_city LABELITEM "Name" CLASS LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 0 POSITION LC FONT arial TYPE TRUETYPE SIZE 10 PARTIALS FALSE BUFFER 2 END END PROJECTION geographic END END From steve.lime at dnr.state.mn.us Wed Apr 25 07:25:17 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 25 Apr 2001 09:25:17 -0500 Subject: [mapserver-users] PROJ4 and Layers Message-ID: Your units setting is wrong so scales are screwed up and since the city layers use MINSCALE/MAXSCALE who knows what you're going to get. Change the units from dd to whatever is appropriate for mercator and it should work. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Thomas Pich" 04/25/01 08:30AM >>> Hello, does anybody know why the "city"-layers in the follow mapfile will not be included? The "country"-layer is visible. The city-layers only without projection are displayed. thanks Thomas ------------------------------------------------- NAME DEMO STATUS ON SIZE 800 800 FONTSET ../fonts/fonts.list SHADESET ../symbols/shade.sym MARKERSET ../symbols/marker.sym LINESET ../symbols/line.sym EXTENT 5.0 47.0 15.0 55.0 UNITS DD SHAPEPATH "../data/eur" IMAGECOLOR 130 200 234 PROJECTION "proj=merc" "ellps=GRS80" END #XXX Country XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX LAYER NAME country TYPE POLYGON STATUS DEFAULT DATA eurnuts0 CLASS COLOR 255 255 220 OUTLINECOLOR 0 0 0 END PROJECTION geographic END END #XXX City XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX #XXX Scale: 5.000.000 bis 15.000.000 XXXXXXXXXX LAYER NAME city TYPE POINT MAXSCALE 15000000 MINSCALE 5000000 STATUS ON DATA eur_city CLASS COLOR 153 153 153 SYMBOL "city_shield" END PROJECTION geographic END END #XXX Scale: 200.000 bis 5.000.000 XXXXXXXXXXXXX LAYER NAME city TYPE POINT MAXSCALE 5000000 MINSCALE 200000 STATUS ON DATA eur_city CLASS COLOR 153 153 153 SYMBOL "city_shield2" END PROJECTION geographic END END #XXX Scale: 200.000 bis 15.000.000 XXXXXXXXXXXX LAYER NAME city TYPE ANNOTATION MAXSCALE 15000000 MINSCALE 200000 STATUS ON DATA eur_city LABELITEM "Name" CLASS LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 0 POSITION LC FONT arial TYPE TRUETYPE SIZE 10 PARTIALS FALSE BUFFER 2 END END PROJECTION geographic END END From steve.lime at dnr.state.mn.us Wed Apr 25 07:32:54 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 25 Apr 2001 09:32:54 -0500 Subject: [mapserver-users] mapserver logo Message-ID: I too like the second one. It's a bit to detailed for my taste, but it's getting close. Tom, can we contract with an artist to get something done? We have a good designer here that does contract work. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Daniel Morissette 04/24/01 07:09PM >>> Andrea Goethals wrote: > > I was thinking about the mapserver logo (need for one) this weekend. > What seems to set Mapserver apart from the other map servers, other > than open source, good mailing list, etc. is the speed of it. > Because the fastest animal on Earth is the cheetah, that might make > a good subject for a logo. Also, it would let us do a variety of > logos that just have the same animal on them (similar to the penguin > for Linux). Also, it would stand out from the rest of the GIS software > logos which all seem to have globes. What do you all think? > I love the idea! :) See attached below 2 sample designs that one of our guys came up with when he heard about the idea... we can't use those images right now unless we buy the rights for the base images (only 10$ for unlimited use)... but hopefully these will spark other artistic ideas. -- ------------------------------------------------------------ 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 25 07:44:08 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 25 Apr 2001 09:44:08 -0500 Subject: [mapserver-users] Fill polygons with vertical lines Message-ID: SYMBOL NAME 'vertical_hash' TYPE VECTOR POINTS 1 1 1 0 END END >>> yecarrillo at hotmail.com 04/24/01 07:33PM >>> How can define the symbol to fill polygons with vertical lines? ---------------------------- Eduin Yesid Carrillo Ingeniero Civil CIUDAD DIGITAL Central de Informaci?n Regional Georefenciada Bucaramanga - Colombia yecarrillo at hotmail.com yecarrillo at condorito.uis.edu.co #ICQ 14323531 _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From rcohen at dial.oleane.com Wed Apr 25 09:11:09 2001 From: rcohen at dial.oleane.com (Riccardo Cohen) Date: Wed, 25 Apr 2001 17:11:09 +0100 Subject: [mapserver-users] Java Web server with mapserver Message-ID: <3AE6F71D.A903CA3C@dial.oleane.com> Hi all, This is just a message to explain what I've done. I make a JSP server with apache/tomcat. I use mapserver to generate the maps. But as the whole application is controled by the jsp pages, I cannot let the cgi parse my jsp pages. I needed a java class like that : javamapserver.set_param("my_config.map"); javamapserver.set_param("my_map_to_use.shp"); javamapserver.set_param(...); imagename=javamapserver.makethemap() then the jsp page just have to get the image url from the javabean. To do that, first I called the cgi-bin through a java socket. But this was not efficient because for each map I do I need to connect to apache, then apache launches mapserv, then send back the html page where I can find the image name, then I parse that name. It worked all right but I tried to improve it. I wanted to call the main() function of mapserver directly through JNI call. This was marvelous (in the idea at least) because - I need not to change my application. It is only the channel that changes. All the parameters still remain in the market.sym, demo.map ... Everything is unchanged - I need not to build a whole java mapscript (anyway I do not know who to do that and even If it was already finished by Graham Sims I would need to change all my code to use it) - Apache is no more requested - the mapserv program (400kb) is not loaded at each request The compilation went all right and the first execution worked. but the second made exceptions and access violation. My debugging stopped when I understood that all works all right if I remove the lines at end of main() function that cleans everything (msFreeMap(Map); especially). And even with that, after 200 calls there is an exception. So I choose another way : Java will load mapserv instead of apache. It works all right now and I have the 3 first advantages written above. But not the last. My java code launches mapserv with an url as parameter. This url is the same as the one that mapserver would have received through apache. I changed a little function and thats it. Thats all, if anyone has a similar problem, I would be happy to hear him or her on the list. Thanks to have read all that. -- Riccardo Cohen Articque Les Roches 37230 Fondettes France email = rcohen at dial.oleane.com web = http://www.articque.com tel: +33 02 47 49 90 49 fax: +33 02 47 49 91 49 From steve.lime at dnr.state.mn.us Wed Apr 25 08:59:08 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 25 Apr 2001 10:59:08 -0500 Subject: [mapserver-users] Fwd: About Query Results Message-ID: An embedded message was scrubbed... From: =?iso-8859-1?q?bertha=20amalia=20serrato=20de=20la=20cruz?= Subject: About Query Results Date: Mon, 23 Apr 2001 22:58:57 +0200 (CEST) Size: 2038 URL: From tbauerulem at gmx.de Wed Apr 25 09:09:43 2001 From: tbauerulem at gmx.de (Thomas Bauer) Date: Wed, 25 Apr 2001 18:09:43 +0200 Subject: [mapserver-users] create world-file and rotate TIFF G4 Message-ID: <01C0CDB2.E8146F60@localhost> Hi, I have some TIFF G4 pictures and koordinates for any points in the pictures. I need a free tool to georeference (create a world-file) and rotate this pictures. (WIN 98) thanks Thomas From yeewen at divestco.com Wed Apr 25 09:54:35 2001 From: yeewen at divestco.com (Yeewen Sat) Date: Wed, 25 Apr 2001 10:54:35 -0600 Subject: [mapserver-users] True Type font Message-ID: I'm having problem using True Type fonts. I get this "msGetLabelSize(): TrueType Font error. Could not find/open font" error when I define LABEL to use TYPE TRUETYPE. If I just use the default Bitmap, the labels show up no problem. Please help. I'm running mapserver 4.3 on Linux. Here's a cut out of the mapfile: # # Start of map file # NAME SDB STATUS ON SIZE 450 450 SYMBOLSET "../symbol/newsym.sym" FONTSET "/web/sdbdev/packages/dv-mapping/fonts/fonts.list" EXTENT 10478669.720365 6193732.674832 10521330.299635 6282545.399534 UNITS METERS SHAPEPATH "../data/ywseis4" IMAGECOLOR 255 255 255 # # Start of web interface definition # WEB TEMPLATE "../www/java-template2.html" MINSCALE 25000 MAXSCALE 14000000 IMAGEPATH "../www/tmp/" IMAGEURL "/dv-mapping/tmp/" LOG "../www/tmp/logfile.log" END # # Start of layer definitions # LAYER NAME dgridt TYPE ANNOTATION STATUS DEFAULT DATA dgridt CLASSITEM 'ID' MAXSCALE 750000 LABELITEM "TEXT" LABELMAXSCALE 750000 SYMBOLSCALE 200000 CLASS EXPRESSION /./ LABEL COLOR 0 0 0 TYPE TRUETYPE FONT arial FORCE true SIZE 10 ANGLE 405.000000 POSITION lc MAXSIZE 24 MINSIZE 4 END END END The fonts.list file looks like this: arial arial.ttf arial-bold arialbd.ttf arial-italic ariali.ttf arial-bold-italic arialbi.ttf arial_black ariblk.ttf comic_sans comic.ttf comic_sans-bold comicbd.ttf courier cour.ttf courier-bold courbd.ttf courier-italic couri.ttf courier-bold-italic courbi.ttf georgia georgia.ttf georgia-bold georgiab.ttf georgia-italic georgiai.ttf georgia-bold-italic georgiaz.ttf impact impact.ttf monotype.com monotype.ttf recreation_symbols recreate.ttf times times.ttf times-bold timesbd.ttf times-italic timesi.ttf times-bold-italic timesbi.ttf trebuchet_ms trebuc.ttf trebuchet_ms-bold trebucbd.ttf trebuchet_ms-italic trebucit.ttf trebuchet_ms-bold-italic trebucbi.ttf verdana verdana.ttf verdana-bold verdanab.ttf verdana-italic verdanai.ttf verdana-bold-italic verdanaz.ttf Please help. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Wed Apr 25 10:42:51 2001 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 25 Apr 2001 13:42:51 -0400 Subject: Fw: [mapserver-users] request example importing multiple tiff files References: <001301c0cd93$81bb5b80$034dfe3e@david> Message-ID: <3AE70C9A.C701E61A@pobox.com> David, I have pepared a "gdaltindex" executable for you for NT that should be able to generate a MapServer compatible tile index file for a set of raster files. ftp://gdal.velocet.ca/pub/outgoing/gdaltindex.zip To run it you will also need to download the GDAL binaries for NT. ftp://ftp.remotesensing.org/gdal/gdal-1142-ntbin.zip Once you have set your path as indicated by the instructions in that file you should be able to run the gdaltindex.exe. If it doesn't work let me know. You would so something like: gdaltindex.exe out.shp data/*.tif To generate a tile index called out.shp with the default tileindex field name of "location" for all the files in the list. It will work for any GDAL supported file format. The program should have a helpful usage message. I had intended to contribute this program directly into the MapServer distribution, but I find that I am not "handy" with the optimized shapefile API in mapserver, so I wrote directly to my normal shapelib api. The source for gdaltindex.exe has been checked into GDAL as gdal/apps/gdaltindex.c. If someone needs to fine tune it they can modify and rebuild. Hopefully once the next rev of MapServer rolls out, I can arrange to have gdaltindex.exe distributed with any binary distributions that include GDAL support. 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 ksibson at matrix.net Wed Apr 25 16:08:41 2001 From: ksibson at matrix.net (Keith Sibson) Date: Wed, 25 Apr 2001 18:08:41 -0500 Subject: [mapserver-users] combining regular and boolean expressions Message-ID: Is there any way to do this? Ideally, what I'm looking for is multiple expressions in a single class, all of which have to be true for the layer to be of that class. I want to combine a boolean and regular expression because I need to check a couple of inequalities AND match a string. I take it boolean expressions don't allow nested regular expressions? I suspect this isn't possible, but my need is great and immediate, so could someone please point me to the expression parsing code. Thanks, Keith. From andrew.luger at daterra.ab.ca Wed Apr 25 17:51:35 2001 From: andrew.luger at daterra.ab.ca (Andrew Luger) Date: Wed, 25 Apr 2001 18:51:35 -0600 Subject: [mapserver-users] combining regular and boolean expressions In-Reply-To: Message-ID: <000001c0cdeb$0b94be80$fc004f18@stn1> -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Keith Sibson Sent: April 25, 2001 5:09 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] combining regular and boolean expressions Is there any way to do this? Ideally, what I'm looking for is multiple expressions in a single class, all of which have to be true for the layer to be of that class. I want to combine a boolean and regular expression because I need to check a couple of inequalities AND match a string. I take it boolean expressions don't allow nested regular expressions? I suspect this isn't possible, but my need is great and immediate, so could someone please point me to the expression parsing code. Thanks, Keith. From steve.lime at dnr.state.mn.us Wed Apr 25 22:09:43 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 26 Apr 2001 00:09:43 -0500 Subject: [mapserver-users] combining regular and boolean expressions Message-ID: You can do this in 3.4 and higher. I added a regular expression operator (=~) to logical expression support so you can write things like: ([AREA] > 50000 AND '[NAME]' =~ /^San.*/) Steve >>> "Keith Sibson" 04/25/01 18:12 PM >>> Is there any way to do this? Ideally, what I'm looking for is multiple expressions in a single class, all of which have to be true for the layer to be of that class. I want to combine a boolean and regular expression because I need to check a couple of inequalities AND match a string. I take it boolean expressions don't allow nested regular expressions? I suspect this isn't possible, but my need is great and immediate, so could someone please point me to the expression parsing code. Thanks, Keith. From cnielsen at co.tillamook.or.us Thu Apr 26 10:15:34 2001 From: cnielsen at co.tillamook.or.us (Chad Nielsen) Date: Thu, 26 Apr 2001 10:15:34 -0700 Subject: [mapserver-users] incomplete featurequery Message-ID: <000001c0ce74$816b8790$a14368aa@co.tillamook.or.us> Hi I'm selecting culverts by using a featurequery with PLSS sections as the slayer. Only a portion of the possible culverts within a section are being selected. Has anybody else had this problem? Is there a way to fix this? Am I doing something wrong? Thanks for the help, Chad Chad M. Nielsen, GIS Programmer/Analyst Tillamook County Performance Partnership (TCPP) Tillamook Coastal Watershed Resource Center (TCWRC) GIS: http://gisweb.co.tillamook.or.us TCPP: http://www.co.tillamook.or.us/countygovernment/Estuary/homepage.htm TCWRC: http://www.tcwrc.org From steve.lime at dnr.state.mn.us Thu Apr 26 10:26:13 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 26 Apr 2001 12:26:13 -0500 Subject: [mapserver-users] incomplete featurequery Message-ID: >From what you describe it sounds like a data issue. Everything within the section is selected correctly right? It sounds like you might need to do a spatial join by culvert id so that an entire culvert is considered a single feature, potentially with multiple parts. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Chad Nielsen" 04/26/01 12:15PM >>> Hi I'm selecting culverts by using a featurequery with PLSS sections as the slayer. Only a portion of the possible culverts within a section are being selected. Has anybody else had this problem? Is there a way to fix this? Am I doing something wrong? Thanks for the help, Chad Chad M. Nielsen, GIS Programmer/Analyst Tillamook County Performance Partnership (TCPP) Tillamook Coastal Watershed Resource Center (TCWRC) GIS: http://gisweb.co.tillamook.or.us TCPP: http://www.co.tillamook.or.us/countygovernment/Estuary/homepage.htm TCWRC: http://www.tcwrc.org From steve.lime at dnr.state.mn.us Thu Apr 26 11:07:58 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 26 Apr 2001 13:07:58 -0500 Subject: [mapserver-users] who mapserver-users Message-ID: who mapserver-users From rcohen at dial.oleane.com Thu Apr 26 16:26:53 2001 From: rcohen at dial.oleane.com (Riccardo Cohen) Date: Fri, 27 Apr 2001 00:26:53 +0100 Subject: [mapserver-users] Pb white image References: Message-ID: <3AE8AEBD.7B29BBE0@dial.oleane.com> Hi, I just recompiled libpng zlib gd1.8.3 and mapserver on Windows using nmake. I used /MT to be Multithreaded not DLL. The gddemo.exe produced a beautiful image, I suppose that it works all right. but all the map server images are white. map server works all right because there is no message, and when I click on the white image, the answer is good (good values requested). (anyway the image is really produced with the good size). Any idea (maybe should I use gd1.2) -- Riccardo Cohen Articque Les Roches 37230 Fondettes France email = rcohen at dial.oleane.com web = http://www.articque.com tel: +33 02 47 49 90 49 fax: +33 02 47 49 91 49 From cnielsen at co.tillamook.or.us Thu Apr 26 17:02:41 2001 From: cnielsen at co.tillamook.or.us (Chad Nielsen) Date: Thu, 26 Apr 2001 17:02:41 -0700 Subject: FW: [mapserver-users] incomplete featurequery Message-ID: <000101c0cead$60ef6660$a14368aa@co.tillamook.or.us> What it is doing is only returning a portion of the total number of culverts in a section. But then if I do a refresh of the query template it returns more (sometimes not all of the points). for instance I click the button to submit the feature query and the new window shows two culvert ids 74 664 If i refresh it returns 4 culvert ids 74 664 987 1004 close the query window and click the button to submit the feature query again and I get the same 2 culvert ids as before 74 664 and so on. its consistent like this as long as I use the same point on the image (using the mapdisplay applet). If I try different points sometimes I get more or less results, but it seems to stay the same for any given point. Chad -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of Stephen Lime Sent: Thursday, April 26, 2001 10:26 AM To: Chad Nielsen, Performance Partnership; mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] incomplete featurequery >From what you describe it sounds like a data issue. Everything within the section is selected correctly right? It sounds like you might need to do a spatial join by culvert id so that an entire culvert is considered a single feature, potentially with multiple parts. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Chad Nielsen" 04/26/01 12:15PM >>> Hi I'm selecting culverts by using a featurequery with PLSS sections as the slayer. Only a portion of the possible culverts within a section are being selected. Has anybody else had this problem? Is there a way to fix this? Am I doing something wrong? Thanks for the help, Chad Chad M. Nielsen, GIS Programmer/Analyst Tillamook County Performance Partnership (TCPP) Tillamook Coastal Watershed Resource Center (TCWRC) GIS: http://gisweb.co.tillamook.or.us TCPP: http://www.co.tillamook.or.us/countygovernment/Estuary/homepage.htm TCWRC: http://www.tcwrc.org From chads at adci.com Fri Apr 27 07:00:07 2001 From: chads at adci.com (Chad Streck) Date: Fri, 27 Apr 2001 09:00:07 -0500 Subject: [mapserver-users] True Type font References: Message-ID: <3AE97B67.7040704@adci.com> This may not be too helpful, but you must play with the paths in the font list. I've pointed all my font paths with full paths, such as.... arial /var/www/html/fonts/arial.ttf On windows, I do a similar thing, but I had problem with the drive letters, and had to use forward slashes, so it would look like this.... arial /inetpub/wwwroot/fonts/arial.ttf Chad Yeewen Sat wrote: > I'm having problem using True Type fonts. I get this > "msGetLabelSize(): TrueType Font error. Could not find/open font" > error when I define LABEL to use TYPE TRUETYPE. If I just use the > default Bitmap, the labels show up no problem. > > > > Please help. > > > > I'm running mapserver 4.3 on Linux. > > > > Here's a cut out of the mapfile: > > # > # Start of map file > # > NAME SDB > STATUS ON > SIZE 450 450 > SYMBOLSET "../symbol/newsym.sym" > FONTSET "/web/sdbdev/packages/dv-mapping/fonts/fonts.list" > EXTENT 10478669.720365 6193732.674832 10521330.299635 6282545.399534 > UNITS METERS > SHAPEPATH "../data/ywseis4" > IMAGECOLOR 255 255 255 > # > # Start of web interface definition > # > WEB > TEMPLATE "../www/java-template2.html" > MINSCALE 25000 > MAXSCALE 14000000 > IMAGEPATH "../www/tmp/" > IMAGEURL "/dv-mapping/tmp/" > LOG "../www/tmp/logfile.log" > END > > # > > # Start of layer definitions > # > LAYER > NAME dgridt > TYPE ANNOTATION > STATUS DEFAULT > DATA dgridt > CLASSITEM 'ID' > MAXSCALE 750000 > LABELITEM "TEXT" > LABELMAXSCALE 750000 > SYMBOLSCALE 200000 > CLASS > EXPRESSION /./ > LABEL > COLOR 0 0 0 > TYPE TRUETYPE > FONT arial > FORCE true > SIZE 10 > ANGLE 405.000000 > POSITION lc > MAXSIZE 24 > MINSIZE 4 > END > END > END > > > > The fonts.list file looks like this: > > arial arial.ttf > arial-bold arialbd.ttf > arial-italic ariali.ttf > arial-bold-italic arialbi.ttf > arial_black ariblk.ttf > comic_sans comic.ttf > comic_sans-bold comicbd.ttf > courier cour.ttf > courier-bold courbd.ttf > courier-italic couri.ttf > courier-bold-italic courbi.ttf > georgia georgia.ttf > georgia-bold georgiab.ttf > georgia-italic georgiai.ttf > georgia-bold-italic georgiaz.ttf > impact impact.ttf > monotype.com monotype.ttf > recreation_symbols recreate.ttf > times times.ttf > times-bold timesbd.ttf > times-italic timesi.ttf > times-bold-italic timesbi.ttf > trebuchet_ms trebuc.ttf > trebuchet_ms-bold trebucbd.ttf > trebuchet_ms-italic trebucit.ttf > trebuchet_ms-bold-italic trebucbi.ttf > verdana verdana.ttf > verdana-bold verdanab.ttf > verdana-italic verdanai.ttf > verdana-bold-italic verdanaz.ttf > > > > > > > > Please help. > > Thanks. > > > From yecarrillo at hotmail.com Fri Apr 27 08:15:26 2001 From: yecarrillo at hotmail.com (Eduin Yesid Carrillo) Date: Fri, 27 Apr 2001 10:15:26 -0500 Subject: [mapserver-users] True Type font Message-ID: I have the same problem. Full paths for font listing aren't supported on windows... ? >From: Chad Streck >Subject: Re: [mapserver-users] True Type font >Date: Fri, 27 Apr 2001 09:00:07 -0500 > >This may not be too helpful, but you must play with the paths in the >font list. I've pointed all my font paths with full paths, such as.... > >arial /var/www/html/fonts/arial.ttf > >On windows, I do a similar thing, but I had problem with the drive >letters, and had to use forward slashes, so it would look like this.... > >arial /inetpub/wwwroot/fonts/arial.ttf ---------------------------- Eduin Yesid Carrillo Ingeniero Civil CIUDAD DIGITAL Central de Informaci?n Regional Georefenciada Bucaramanga - Colombia yecarrillo at hotmail.com yecarrillo at condorito.uis.edu.co #ICQ 14323531 _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From Rich at GreenwoodMap.com Fri Apr 27 08:30:22 2001 From: Rich at GreenwoodMap.com (Richard Greenwood) Date: Fri, 27 Apr 2001 09:30:22 -0600 Subject: [mapserver-users] SUM: multiple image tiles Message-ID: <5.1.0.14.0.20010427092717.00b08198@mail.GreenwoodMap.com> Thanks to Frank Warmerdam, and David Armstrong, who supplied the tools and answers. There are two steps to displaying tiled images 1. Create a shape file index of the raster tiles. 2. Reference the index in the Map file. Step 1: Frank provided a great stand-alone tool to make the index shape file ftp//gdal.velocet.ca/pub/outgoing/gdaltindex.zip To run it you will also need to download the GDAL binaries for NT. ftp//ftp.remotesensing.org/gdal/gdal-1142-ntbin.zip To run it under UNIX would be something like gdaltindex out.shp data/*.tif To run it under DOS is a little more work, as you can not use a wildcard. You have to get all of your image file names on to the command line. My solution was less than elegant: First I did a dir *.tif > MakeIndex.bat /b. This made a list of all my image files. Next I edited the batch file; I removed the "Return" from the end of each line so that all the tif file names were on one line, and then I added "gdaltindex.exe ImageIndex.shp" to the beginning of the line. So I ended up with a DOS batch file that ran gdaltindex.exe with all of the tif file names. Alternately, there probably are ArcView and/or ArcInfo scripts that can make the image tile index. Step 2 Put a reference to the igmae tile index into your Map file. Mine looks like this: LAYER NAME "Aerial Photos" TYPE raster STATUS on # Image Tile Index Shape File created in Step 1, above TileIndex ImageIndex.shp # Name of Column containing the image file name, and optionally, path TileItem "Location" END # end of layer "Aerial Photos" Thanks, Frank and Dave, for all the help. Rich Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 fax: 733-4018 http://www.GreenwoodMap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Rich at GreenwoodMap.com Fri Apr 27 09:25:15 2001 From: Rich at GreenwoodMap.com (Richard Greenwood) Date: Fri, 27 Apr 2001 10:25:15 -0600 Subject: [mapserver-users] itemquery example? Message-ID: <5.1.0.14.0.20010427102006.032d56d0@mail.GreenwoodMap.com> Another question from a new user here - I'm looking for some example code for doing "find". I want to enter a person's name and zoom/pan on a polygon theme to the matching person's property. It looks like I need to use the itemquery with a item/value pair, but I haven't made any headway. Can anyone point me at an example? Thanks, Rich Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 fax: 733-4018 http://www.GreenwoodMap.com From yeewen at divestco.com Fri Apr 27 09:59:55 2001 From: yeewen at divestco.com (Yeewen Sat) Date: Fri, 27 Apr 2001 10:59:55 -0600 Subject: FW: [mapserver-users] True Type font Message-ID: here's the solution that solved my true type font problem. -----Original Message----- From: Yeewen Sat [mailto:yeewen at divestco.com] Sent: April 25, 2001 3:15 PM To: Stephen Lime Subject: RE: [mapserver-users] True Type font that was it. i had the file somewhere else, and the wrong case too (lower instead of upper case filename). thanks! -----Original Message----- From: Stephen Lime [mailto:steve.lime at dnr.state.mn.us] Sent: April 25, 2001 2:14 PM To: yeewen at divestco.com Subject: Re: [mapserver-users] True Type font Are the font files stored with the fontset? Have you tried putting fullpath font names in the fontset? Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Yeewen Sat" 04/25/01 11:54AM >>> I'm having problem using True Type fonts. I get this "msGetLabelSize(): TrueType Font error. Could not find/open font" error when I define LABEL to use TYPE TRUETYPE. If I just use the default Bitmap, the labels show up no problem. Please help. I'm running mapserver 4.3 on Linux. Here's a cut out of the mapfile: # # Start of map file # NAME SDB STATUS ON SIZE 450 450 SYMBOLSET "../symbol/newsym.sym" FONTSET "/web/sdbdev/packages/dv-mapping/fonts/fonts.list" EXTENT 10478669.720365 6193732.674832 10521330.299635 6282545.399534 UNITS METERS SHAPEPATH "../data/ywseis4" IMAGECOLOR 255 255 255 # # Start of web interface definition # WEB TEMPLATE "../www/java-template2.html" MINSCALE 25000 MAXSCALE 14000000 IMAGEPATH "../www/tmp/" IMAGEURL "/dv-mapping/tmp/" LOG "../www/tmp/logfile.log" END # # Start of layer definitions # LAYER NAME dgridt TYPE ANNOTATION STATUS DEFAULT DATA dgridt CLASSITEM 'ID' MAXSCALE 750000 LABELITEM "TEXT" LABELMAXSCALE 750000 SYMBOLSCALE 200000 CLASS EXPRESSION /./ LABEL COLOR 0 0 0 TYPE TRUETYPE FONT arial FORCE true SIZE 10 ANGLE 405.000000 POSITION lc MAXSIZE 24 MINSIZE 4 END END END The fonts.list file looks like this: arial arial.ttf arial-bold arialbd.ttf arial-italic ariali.ttf arial-bold-italic arialbi.ttf arial_black ariblk.ttf comic_sans comic.ttf comic_sans-bold comicbd.ttf courier cour.ttf courier-bold courbd.ttf courier-italic couri.ttf courier-bold-italic courbi.ttf georgia georgia.ttf georgia-bold georgiab.ttf georgia-italic georgiai.ttf georgia-bold-italic georgiaz.ttf impact impact.ttf monotype.com monotype.ttf recreation_symbols recreate.ttf times times.ttf times-bold timesbd.ttf times-italic timesi.ttf times-bold-italic timesbi.ttf trebuchet_ms trebuc.ttf trebuchet_ms-bold trebucbd.ttf trebuchet_ms-italic trebucit.ttf trebuchet_ms-bold-italic trebucbi.ttf verdana verdana.ttf verdana-bold verdanab.ttf verdana-italic verdanai.ttf verdana-bold-italic verdanaz.ttf Please help. Thanks. From ed at topozone.com Fri Apr 27 10:54:20 2001 From: ed at topozone.com (Ed McNierney) Date: Fri, 27 Apr 2001 13:54:20 -0400 Subject: [mapserver-users] SUM: multiple image tiles Message-ID: <13858AA1A74F30419F319ACB66A9D122CB48@mercator.topozone.com> Richard - The file name expansion you expect is not turned on by default in the Microsoft C compiler. To link with it turned on, you need to link explicitly with the setargv.obj module, as in: cl gdaltindex.c /link setargv.obj If Frank could be persuaded to relink the NT binary (assuming that this is the problem) then it should work as it does on UNIX. - Ed Ed McNierney Chief Mapmaker TopoZone.com (978) 251-4242 -----Original Message----- From: Richard Greenwood [mailto:Rich at GreenwoodMap.com] Sent: Friday, April 27, 2001 11:30 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] SUM: multiple image tiles Thanks to Frank Warmerdam, and David Armstrong, who supplied the tools and answers. There are two steps to displaying tiled images 1. Create a shape file index of the raster tiles. 2. Reference the index in the Map file. Step 1: Frank provided a great stand-alone tool to make the index shape file ftp//gdal.velocet.ca/pub/outgoing/gdaltindex.zip To run it you will also need to download the GDAL binaries for NT. ftp//ftp.remotesensing.org/gdal/gdal-1142-ntbin.zip To run it under UNIX would be something like gdaltindex out.shp data/*.tif To run it under DOS is a little more work, as you can not use a wildcard. You have to get all of your image file names on to the command line. My solution was less than elegant: First I did a dir *.tif > MakeIndex.bat /b. This made a list of all my image files. Next I edited the batch file; I removed the "Return" from the end of each line so that all the tif file names were on one line, and then I added "gdaltindex.exe ImageIndex.shp" to the beginning of the line. So I ended up with a DOS batch file that ran gdaltindex.exe with all of the tif file names. Alternately, there probably are ArcView and/or ArcInfo scripts that can make the image tile index. Step 2 Put a reference to the igmae tile index into your Map file. Mine looks like this: LAYER NAME "Aerial Photos" TYPE raster STATUS on # Image Tile Index Shape File created in Step 1, above TileIndex ImageIndex.shp # Name of Column containing the image file name, and optionally, path TileItem "Location" END # end of layer "Aerial Photos" Thanks, Frank and Dave, for all the help. Rich Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 fax: 733-4018 http://www.GreenwoodMap.com From m_anderson14 at hotmail.com Fri Apr 27 18:02:05 2001 From: m_anderson14 at hotmail.com (Michael Anderson) Date: Fri, 27 Apr 2001 18:02:05 Subject: [mapserver-users] itemquery example? Message-ID: Richard, If the layer was named "parcels" in the map file, the owner's name was in a field called "owner", and you were trying to zoom to your own property, the url fragment for the query would look like this: "qlayer=parcels&item=owner&value=Richard Greenwood&mapext=shapes". Mike Anderson >From: Richard Greenwood >To: mapserver-users at lists.gis.umn.edu >Subject: [mapserver-users] itemquery example? >Date: Fri, 27 Apr 2001 10:25:15 -0600 > >Another question from a new user here - I'm looking for some example code >for doing "find". I want to enter a person's name and zoom/pan on a polygon >theme to the matching person's property. > >It looks like I need to use the itemquery with a item/value pair, but I >haven't made any headway. Can anyone point me at an example? > >Thanks, >Rich > > > >Richard W. Greenwood, PLS >Greenwood Mapping, Inc. >Rich at GreenwoodMap.com >(307) 733-0203 fax: 733-4018 >http://www.GreenwoodMap.com > _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com From teb at mallit.fr.umn.edu Fri Apr 27 12:18:39 2001 From: teb at mallit.fr.umn.edu (teb) Date: Fri, 27 Apr 2001 14:18:39 -0500 (CDT) Subject: [mapserver-users] FW: Simply Expression!!! Message-ID: <200104271918.OAA03996@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: Eric Tang To: "'mapserver-info at lists.gis.umn.edu'" Subject: FW: Simply Expression!!! Date: Fri, 27 Apr 2001 07:52:57 +0100 Mime-Version: 1.0 Hi! I got the simply query, and it can run smooth. How about the systematic query as follow? For example: Place Population {{Field Name}} Hong Kong 55000 Kowloon 34500 NT 60000 Expression: Place > 40000 Color 152 152 152 Place = 60000 Color 84 85 85 What's the Mapserver Query Expression as above? Regards, Eric ------------- End Forwarded Message ------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddnebert at fgdc.gov Fri Apr 27 12:43:14 2001 From: ddnebert at fgdc.gov (Doug Nebert) Date: Fri, 27 Apr 2001 15:43:14 -0400 Subject: [mapserver-users] Rectangle on a map Message-ID: <3AE9CBD2.11F0B0B4@fgdc.gov> I'd like to be able to pass a request to a mapserver along with four bounding coordinates and have it display a map with a rectangle on it. I see this concept applied in the inset map example in some of the mapserver applications where it makes a .gif file with this on it. In fact the http://130.11.52.184/global.html does this but I'm not sure how to translate it to a GET response. What kind of arguments to the mapserv program would work, or does a special handler program need to be written? 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 yecarrillo at hotmail.com Fri Apr 27 14:10:48 2001 From: yecarrillo at hotmail.com (Eduin Yesid Carrillo) Date: Fri, 27 Apr 2001 16:10:48 -0500 Subject: [mapserver-users] Solo para hispanohablantes Message-ID: Just fos spanish speakers: Actualmente estoy interesado en hacer una traducci?n de los documentos oficiales del proyecto MDP (Mapserver Documentation Project) al espa?ol. Si hay mas usuarios de esta lista interesados , por favor contactarme. I?m intersting in make translation of the documents of the MDP into spanish. If anybody wants to help me, please contact me.! >From: "Jose L. Ornelas de Anda" >To: yecarrillo at condorito.uis.edu.co >Subject: Re: [mapserver-users] True Type font >Date: Fri, 27 Apr 2001 14:44:50 -0500 > > >>Full paths for font listing aren't supported on windows... > >Hola Eduin, > >He visto que eres muy activo en la lista de correo de Mapserver, a veces >exponiendo dudas y otras veces resolviendolas. > >Trabajo en la Direccion General de Geografia en Mexico, y hemos >implementado >algunos servicios de generacion de mapas con Mapserver. Estaras de acuerdo >que es un programa grandioso. > >Como te comentaba, tus participaciones en la lista de correo ma han >parecido >interesantes, lo unico decepcionante es que al parecer, usas windows. Aqui >definitivamente preferimos utilizar Linux: hemos probado su absoluta >superioridad: eficiencia, rendimiento, estabilidad, etc, etc. > >Ojala te decidas a probar el empleo de Linux para Mapserver (y otras >cosas). > >Saludos >Jose Luis Ornelas de Anda >Direccion General de Geografia - INEGI >Mexico > >P.D. Perdon por la falta de acentos, no puedo ponerlos con este teclado. _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From yecarrillo at hotmail.com Fri Apr 27 14:24:00 2001 From: yecarrillo at hotmail.com (Eduin Yesid Carrillo) Date: Fri, 27 Apr 2001 16:24:00 -0500 Subject: [mapserver-users] True Type font Message-ID: What if I have more than one disks or partitions? This paths are relative to the partition on wich MS are running? Why MS doesn't recognize partition letters (C:, D: E:)? ---------------------------- Eduin Yesid Carrillo Ingeniero Civil CIUDAD DIGITAL Central de Informaci?n Regional Georefenciada Bucaramanga - Colombia yecarrillo at hotmail.com yecarrillo at condorito.uis.edu.co #ICQ 14323531 >From: Chad Streck >To: yecarrillo at condorito.uis.edu.co >Subject: Re: [mapserver-users] True Type font >Date: Fri, 27 Apr 2001 12:41:36 -0500 > >This is the fonts.list file that I use on my IIS server, and it works >for me.... > >helvbold /InetPub/wwwroot/maps/fonts/helb____.ttf >helvbolditalic /InetPub/wwwroot/maps/fonts/helbi___.ttf >helvitalic /InetPub/wwwroot/maps/fonts/heli____.ttf >helv /InetPub/wwwroot/maps/fonts/helr____.ttf >timesbold /InetPub/wwwroot/maps/fonts/timb____.ttf >timesbolditalic /InetPub/wwwroot/maps/fonts/timbi___.ttf >timesitalic /InetPub/wwwroot/maps/fonts/timi____.ttf >times /InetPub/wwwroot/maps/fonts/timr____.ttf > >Notice the forward slash instead of a single or dual backslash. > >Chad > > _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From yecarrillo at hotmail.com Fri Apr 27 14:32:32 2001 From: yecarrillo at hotmail.com (Eduin Yesid Carrillo) Date: Fri, 27 Apr 2001 16:32:32 -0500 Subject: [mapserver-users] EXPRESSION question Message-ID: What is the difference between : EXPRESSION ([LENGTH] > 646.231 and [LENGTH] <= 1812.723) and CLASSITEM 'LENGTH' EXPRESSION '646.231 - 1812.723' Second option seems to work sometimes but not always. Thanks. ---------------------------- Eduin Yesid Carrillo Ingeniero Civil CIUDAD DIGITAL Central de Informaci?n Regional Georefenciada Bucaramanga - Colombia yecarrillo at hotmail.com yecarrillo at condorito.uis.edu.co #ICQ 14323531 _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From yecarrillo at hotmail.com Fri Apr 27 15:29:30 2001 From: yecarrillo at hotmail.com (Eduin Yesid Carrillo) Date: Fri, 27 Apr 2001 17:29:30 -0500 Subject: [mapserver-users] Layers order Message-ID: There is any "in line" way to change the order in which the layers are drawn? ---------------------------- Eduin Yesid Carrillo Ingeniero Civil CIUDAD DIGITAL Central de Informaci?n Regional Georefenciada Bucaramanga - Colombia yecarrillo at hotmail.com yecarrillo at condorito.uis.edu.co #ICQ 14323531 _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From steve.lime at dnr.state.mn.us Mon Apr 30 07:45:59 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 30 Apr 2001 09:45:59 -0500 Subject: [mapserver-users] EXPRESSION question Message-ID: The first does an actual boolean test based on LENGTH. The second does a string comparison (using strcmp) and should work only if LENGTH equals '646.231 - 1812.723' which should never happen. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Eduin Yesid Carrillo" 04/27/01 04:32PM >>> What is the difference between : EXPRESSION ([LENGTH] > 646.231 and [LENGTH] <= 1812.723) and CLASSITEM 'LENGTH' EXPRESSION '646.231 - 1812.723' Second option seems to work sometimes but not always. Thanks. ---------------------------- Eduin Yesid Carrillo Ingeniero Civil CIUDAD DIGITAL Central de Informaci?n Regional Georefenciada Bucaramanga - Colombia yecarrillo at hotmail.com yecarrillo at condorito.uis.edu.co #ICQ 14323531 _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From steve.lime at dnr.state.mn.us Mon Apr 30 07:50:12 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 30 Apr 2001 09:50:12 -0500 Subject: [mapserver-users] True Type font Message-ID: Someone on windows will have to verify a work around to use drive letters, MapServer uses the chdir function which could cause the problems, but I can't test since I'm not actively using that platform. ;-) Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Eduin Yesid Carrillo" 04/27/01 04:24PM >>> What if I have more than one disks or partitions? This paths are relative to the partition on wich MS are running? Why MS doesn't recognize partition letters (C:, D: E:)? ---------------------------- Eduin Yesid Carrillo Ingeniero Civil CIUDAD DIGITAL Central de Informaci?n Regional Georefenciada Bucaramanga - Colombia yecarrillo at hotmail.com yecarrillo at condorito.uis.edu.co #ICQ 14323531 >From: Chad Streck >To: yecarrillo at condorito.uis.edu.co >Subject: Re: [mapserver-users] True Type font >Date: Fri, 27 Apr 2001 12:41:36 -0500 > >This is the fonts.list file that I use on my IIS server, and it works >for me.... > >helvbold /InetPub/wwwroot/maps/fonts/helb____.ttf >helvbolditalic /InetPub/wwwroot/maps/fonts/helbi___.ttf >helvitalic /InetPub/wwwroot/maps/fonts/heli____.ttf >helv /InetPub/wwwroot/maps/fonts/helr____.ttf >timesbold /InetPub/wwwroot/maps/fonts/timb____.ttf >timesbolditalic /InetPub/wwwroot/maps/fonts/timbi___.ttf >timesitalic /InetPub/wwwroot/maps/fonts/timi____.ttf >times /InetPub/wwwroot/maps/fonts/timr____.ttf > >Notice the forward slash instead of a single or dual backslash. > >Chad > > _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From Horst.Duester at bd.so.ch Mon Apr 30 09:54:25 2001 From: Horst.Duester at bd.so.ch (=?iso-8859-1?Q?D=FCster_Horst?=) Date: Mon, 30 Apr 2001 17:54:25 +0100 Subject: [mapserver-users] How to create line symbols with ms 3.4 Message-ID: <5B025B1F39D6D4119F5700508BEEEC66011FF8@srsofaioi4546.ktso.ch> Hi There, is there an other example of the new version of symbol files than the gmap application. This example only creates point symbols. Does anyone knows how to create dashed lines etc.? Horst D?ster From ed at topozone.com Mon Apr 30 09:49:46 2001 From: ed at topozone.com (Ed McNierney) Date: Mon, 30 Apr 2001 12:49:46 -0400 Subject: [mapserver-users] MapServer Hosting Services from TopoZone Message-ID: <13858AA1A74F30419F319ACB66A9D122019029@mercator.topozone.com> Folks - We have been providing the TopoZone (www.topozone.com) service, with complete, interactive access to seamless topographic maps of the entire US, since November, 1999. We're about to expand that service with a number of new initiatives adding more interesting data layers and a richer mapping interface. We're doing that by building applications on MapServer, and using our experience in building and managing high-volume mapping sites on the Web. The TopoZone is visited by over 250,000 different people every month and we serve over 5 million maps a month. In addition to our own applications, we are offering a new hosting service for MapServer users. We've found a number of situations in which GIS consultants and developers are working with customers to develop MapServer applications, only to find that they don't have the interest or the means to host those applications on the Web after they're built. We're now offering that service, using our experience and skills to provide that last piece of the Web mapping puzzle. Our MapServer hosted sites run on the same production-level equipment in a fully managed data center environment that our TopoZone site uses. In addition, our hosting customers can take advantage of our complete topographic raster data as a basemap layer. This summer we'll be adding 1-meter DOQ coverage as well. There's no need to pay to acquire and store those data sets, because they can be served as part of TopoZone's hosting arrangement. My apologies for the "sales pitch" but I thought the users on this list would be interested in knowing about our hosting services. Let me know if there's any other information you might need about MapServer hosting - thanks! - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 From pnaciona at gis.umn.edu Mon Apr 30 11:20:43 2001 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Mon, 30 Apr 2001 13:20:43 -0500 Subject: [mapserver-users] True Type font In-Reply-To: Message-ID: Sorry to have disappeared for some time. I'm back and thought I could add a thing or two here. Here's what I do with FONTSET, fonts.list, and fonts on Windows: 1. I put the fonts and the fonts.list in the same directory. This directory can be anywhere, in any drive (partition), so long as MapServer have read access to it. In my case (and as an example), this directory resides in the E drive--E:\Projects\fonts. I can't quite understand why anyone would put fonts in several different directories and partitions. Here's a tidbit of my fonts.list--notice I don't have the paths included: andale-mono andalemo.ttf arial arial.ttf arial-bold arialbd.ttf arial-italic ariali.ttf arial-bold-italic arialbi.ttf arial_black ariblk.ttf arial_narrow arialn.ttf arial_narrow-bold arialnb.ttf arial_narrow-italic arialni.ttf arial_narrow-bold-italic arialnbi.ttf By the way, the projects directory (E:\Projects) is also mapped as a virtual directory (an alias) for the web server (/projects). I don't think this matters for the fonts and mapserver... I could be wrong. 2. On my map file, I add the line: FONTSET "E:\Projects\fonts" That's all and I hope it helps. -Perry Nacionales Pericles S. Nacionales Research Assistant GIS and Remote Sensing Lab Department of Forest Resources University of Minnesota (612) 624-3459 pnaciona at gis.umn.edu On Mon, 30 Apr 2001, Stephen Lime wrote: > Someone on windows will have to verify a work around to use drive letters, MapServer > uses the chdir function which could cause the problems, but I can't test since I'm not > actively using that platform. ;-) > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> "Eduin Yesid Carrillo" 04/27/01 04:24PM >>> > What if I have more than one disks or partitions? > This paths are relative to the partition on wich MS are running? > > Why MS doesn't recognize partition letters (C:, D: E:)? > > ---------------------------- > Eduin Yesid Carrillo > Ingeniero Civil > CIUDAD DIGITAL > Central de Informaci?n Regional Georefenciada > Bucaramanga - Colombia > yecarrillo at hotmail.com > yecarrillo at condorito.uis.edu.co > #ICQ 14323531 > > > >From: Chad Streck > >To: yecarrillo at condorito.uis.edu.co > >Subject: Re: [mapserver-users] True Type font > >Date: Fri, 27 Apr 2001 12:41:36 -0500 > > > >This is the fonts.list file that I use on my IIS server, and it works > >for me.... > > > >helvbold /InetPub/wwwroot/maps/fonts/helb____.ttf > >helvbolditalic /InetPub/wwwroot/maps/fonts/helbi___.ttf > >helvitalic /InetPub/wwwroot/maps/fonts/heli____.ttf > >helv /InetPub/wwwroot/maps/fonts/helr____.ttf > >timesbold /InetPub/wwwroot/maps/fonts/timb____.ttf > >timesbolditalic /InetPub/wwwroot/maps/fonts/timbi___.ttf > >timesitalic /InetPub/wwwroot/maps/fonts/timi____.ttf > >times /InetPub/wwwroot/maps/fonts/timr____.ttf > > > >Notice the forward slash instead of a single or dual backslash. > > > >Chad > > > > > > > > _________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > From yecarrillo at hotmail.com Mon Apr 30 14:51:42 2001 From: yecarrillo at hotmail.com (Eduin Yesid Carrillo) Date: Mon, 30 Apr 2001 16:51:42 -0500 Subject: [mapserver-users] How to create line symbols with ms 3.4 Message-ID: Normal lines: SYMBOL NAME 'vias_108 - 123' TYPE ellipse Filled POINTS 1 1 END #Points END #Symbol Dashed lines: SYMBOL NAME 'vias_124 - 151' TYPE ellipse Filled POINTS 1 1 END #Points STYLE 1 5 END END #Symbol Note that "1 5" means: fill one, hide five.. ---------------------------- Eduin Yesid Carrillo Ingeniero Civil CIUDAD DIGITAL Central de Informaci?n Regional Georefenciada Bucaramanga - Colombia yecarrillo at hotmail.com yecarrillo at condorito.uis.edu.co #ICQ 14323531 >From: D?ster Horst >To: "'mapserver-users at lists.gis.umn.edu'" > >Subject: [mapserver-users] How to create line symbols with ms 3.4 >Date: Mon, 30 Apr 2001 17:54:25 +0100 > >Hi There, > >is there an other example of the new version of symbol files than the gmap >application. This example only creates point symbols. Does anyone knows how >to create dashed lines etc.? > > >Horst D?ster > > _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From steve.lime at dnr.state.mn.us Mon Apr 30 11:39:18 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 30 Apr 2001 13:39:18 -0500 Subject: [mapserver-users] Fill polygons with vertical lines Message-ID: "1 1 1 0" defines a simple vector from 1,1 to 1,0. That vector is then rendered (and scaled) into a small image that is used for tiling. 0,0 to 1,1 gives you a diagonal hash and so on. You can develop very complex fills this way (using more than a single line of course). Vector drawings should be developed on the unit square. I use graph paper to lay them out most of the time. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> yecarrillo at hotmail.com 04/26/01 04:34PM >>> I'm trying to undestand what exactly means "1 1 1 0" to test other values, to make horizontal and diagonal lines. ---------------------------- Eduin Yesid Carrillo Ingeniero Civil CIUDAD DIGITAL Central de Informaci?n Regional Georefenciada Bucaramanga - Colombia yecarrillo at hotmail.com yecarrillo at condorito.uis.edu.co #ICQ 14323531 >From: "Stephen Lime" >To: >Subject: Re: [mapserver-users] MS3.5 and ArcSDE >Date: Thu, 26 Apr 2001 00:05:47 -0500 > SYMBOL NAME 'vertical_hash' TYPE VECTOR POINTS 1 1 1 0 END END >>>yecarrillo at hotmail.com 04/24/01 07:33PM >>> How can define the symbol to fill polygons with vertical lines? _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From steve.lime at dnr.state.mn.us Mon Apr 30 11:52:22 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 30 Apr 2001 13:52:22 -0500 Subject: [mapserver-users] Rectangle on a map Message-ID: It's easy to do. You have to use "inline" features to do this. There are a couple of steps: 1) create a layer (for example myrect) that holds the symbolization for the rectangle you want to draw. Notice there is no DATA element. LAYER NAME 'myrect' TYPE POLYLINE STATUS OFF CLASS COLOR 255 0 0 END END 2) add CGI variables to create a new feature in myrect, add to it and turn that layer on: ...&map_myrect_feature=new &map_myrect_feature_points=x1+y1+x2+y1+x2+y2+x1+y2+x1+y1 &layer=myrect That's it. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Doug Nebert 04/27/01 02:43PM >>> I'd like to be able to pass a request to a mapserver along with four bounding coordinates and have it display a map with a rectangle on it. I see this concept applied in the inset map example in some of the mapserver applications where it makes a .gif file with this on it. In fact the http://130.11.52.184/global.html does this but I'm not sure how to translate it to a GET response. What kind of arguments to the mapserv program would work, or does a special handler program need to be written? 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 cnielsen at co.tillamook.or.us Mon Apr 30 18:26:43 2001 From: cnielsen at co.tillamook.or.us (Chad Nielsen) Date: Mon, 30 Apr 2001 18:26:43 -0700 Subject: [mapserver-users] PHP/Mapscript Install Message-ID: <000e01c0d1dd$c7c2bda0$a14368aa@co.tillamook.or.us> Hi List, We are trying to install PHP on our NT 4.0 server running IIS 4.0. It seems there are two different ways of setting up PHP with IIS 4.0; ISAPI or CGI. Does it matter which we choose? Will this have any effect on our installation of the PHP/Mapscript module? Chad Chad M. Nielsen, GIS Programmer/Analyst Tillamook County Performance Partnership (TCPP) Tillamook Coastal Watershed Resource Center (TCWRC) GIS: http://gisweb.co.tillamook.or.us TCPP: http://www.co.tillamook.or.us/countygovernment/Estuary/homepage.htm TCWRC: http://www.tcwrc.org From morissette at dmsolutions.ca Mon Apr 30 19:26:07 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 30 Apr 2001 22:26:07 -0400 Subject: [mapserver-users] PHP/Mapscript Install References: <000e01c0d1dd$c7c2bda0$a14368aa@co.tillamook.or.us> Message-ID: <3AEE1EBF.7DBBD17E@dmsolutions.ca> Chad Nielsen wrote: > > We are trying to install PHP on our NT 4.0 server running IIS 4.0. It seems > there are two different ways of setting up PHP with IIS 4.0; ISAPI or CGI. > Does it matter which we choose? Will this have any effect on our > installation of the PHP/Mapscript module? > On NT, you must configure your PHP as a CGI. The ISAPI version of PHP requires that the modules be thread-safe, and since the core of MapServer, and some of the libs that it uses are not thread-safe, then the PHP MapScript module cannot be made thread-safe without quite a bit of effort. (On Unix it's a different story with fork() and it is safe to have PHP MapScript with PHP installed as an Apache module.) -- ------------------------------------------------------------ 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.