From tim at activeweb.co.za Tue Aug 1 00:17:01 2000 From: tim at activeweb.co.za (Tim and Marcelle Sutton) Date: Tue, 1 Aug 2000 09:17:01 +0200 Subject: Using geographic data in the southern hemisphere Message-ID: <00080110200402.15673@tim.timhome> Hi I am trying to get a simple test site going using two layers of geographic data. I generated the Map file using the arcview tool I found on the utilities page (this is a great tool). I know the php_mapserver.so works fine (thanks to Daniel). The data is in the southern hemisphere (ie. north/south coordinates are negative numbers in decimal degrees). The initial .map file had know projection section set, and the maps would generate, but the map image would always come up blank. I have set the display and scale bar units to decimal degrees (dd) and kilometers respectively. The scale bar indicates that the display is zoomed in to a really large scale. I have the proj4.4.4.1 rpm installed on the server (running redhat 6.1) and when I added the Projection "Geographic" End to my .map file, my web page prints out the following: Warning: MapServer Error in loadProjection(): Projection support is not available. in /home/httpd/html/Mapserver/cnc/cncmap.php3 on line 34 Fatal error: Failed to open map file cnc.map in /home/httpd/html/Mapserver/cnc/cncmap.php3 on line 34 So my questions are: 1) Does mapserver support southern hemispher geographic data? 2) Do I have the correct settings in my .map file (listed below this message)? 3) How can I get mapserver to recognise the proj library? 4) Could anyone send me /point me to some sample .php files which demonstrate a functional mapserver user inteface (implimenting query, zoom, pan etc)? Many thanks for any help you may be able to offer. -- ------------------------------------- Tim Sutton tim at activeweb.co.za ICQ: 6712273 Did you hear that there's a group of South American Indians that worship the number zero? Is nothing sacred? ------------------------------------- # # Start of map file - created Sat Jul 29 00:52:34 2000 # NAME cnc.map SIZE 550 370 EXTENT 17.434 -35.054 24.546 -30.210 UNITS dd PROJECTION "geographic" END # # Start of web interface definition # WEB TEMPLATE 'mapdisplay.html' IMAGEPATH '../tmp/' IMAGEURL '../tmp/' END #WEB # # Start of reference map # REFERENCE SIZE 150 160 IMAGE ref_map.gif EXTENT 17.757 -34.834 24.223 -30.430 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END #REFERENCE # # Start of legend # LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 POSITION UR END STATUS ON END #LEGEND # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE SMALL END #LABEL SIZE 350 5 COLOR 255 255 255 BACKGROUNDCOLOR 0 0 0 OUTLINECOLOR 0 0 0 UNITS kilometers INTERVALS 50 STATUS ON END #SCALEBAR # # Start of layer definitions # LAYER NAME ca_cnc.shp TYPE Polygon STATUS on DATA data/ HEADER 'ca_cnc.shp_header.html' QUERY TEMPLATE ca_cnc.shp_query.html END # QUERY CLASS Name 'WCNCB Reserves' COLOR 220 69 192 OUTLINECOLOR 0 0 0 END # CLASS END # LAYER LAYER NAME b_wcape_new.shp TYPE Polygon STATUS on DATA data/ CLASS Name 'Western Province' COLOR 210 210 210 OUTLINECOLOR 0 0 0 END # CLASS END # LAYER END # MAPFILE From rchavez at perseus.tufts.edu Tue Aug 1 06:04:02 2000 From: rchavez at perseus.tufts.edu (Robert Chavez) Date: Tue, 1 Aug 2000 09:04:02 -0400 (EDT) Subject: marker.sym file problem? Message-ID: Greetings, I downloaded 3.3.011 and grabbed a fresh copy of the symbol files (from the new demo) the other day and I've been having problems with the marker.sym file. I've been using mapscript (3.3.010) for a while now with no problems, but once I began using the new symbol files (both with 3.3.010 and 3.3.011) I've been getting the "unable to load/open mapfile error". I've narrowed the problem down to the marker.sym file (by commenting out LINE, SHADE, and MARKER sets as I went along). I've set all my point features in the map file to use the default (Symbol 0), but still no joy. Has anything changed in marker.sym or in the way symbols are handled since 3.3.010? Thanks, Rob Chavez Programmer Perseus Project From vanderwalm at peligroso.gaiaenv.com Tue Aug 1 07:34:14 2000 From: vanderwalm at peligroso.gaiaenv.com (Mel VanderWal) Date: Tue, 01 Aug 2000 08:34:14 -0600 Subject: Funny units for jpeg images References: <200007312258.IAA29465@eos.erin.gov.au> <39863D90.F3001C46@cc.usu.edu> <39866228.AB8DF34A@chesapeake.net> Message-ID: <3986DFE5.4C2D943D@gaiaenv.com> Hey all. If you need to create world files in ArcView, Todd Poston recently posted a good extension (and the source code) on the ESRI ArcScripts site (http://gis.esri.com/arcscripts/details.cfm?CFGRIDKEY=B718A422-5E5A-11D4-943200508B0CB419). I only tested it a little, but Todd knows what he's doing, so it's probably solid. For MapServer users, use the .apr instead of the extension, so you can change one line in the script QDIR.View.WriteWorldFile.Click. Then georeference your images in that apr. Change: theFN = FileName.Merge(theISrc.GetSrcName.GetFileName.ReturnDir.AsString,theISrc.GetSrcName.GetFileName.GetBaseName + "w") To: theFN = theISrc.GetSrcName.GetFileName theFN.SetExtension("tfw") or else the world file will get a .tifw extension instead of a .tfw extension, which is OK in ArcView, but MapServer won't recognize it. One ArcView world file convention is simply to add a "w" to the image's file extension, so that's the way many world files are named. It's probably minor for most MapServer users, but I spent awhile figuring out why an image wouldn't georeference. (Steve: Maybe to make using the same data a little easier... - wishlist item?) imap at chesapeake.net wrote: > Hello, This isnt exactly right... THe worldfile X/Y is the upper left > pixel, not bottom right. I have found that matching projections is not an > exact science. Sometime you need to adjust the X/Y and map units to stretch > the raster to get a tight fit. > > I have done a couple of these.. You have to begin with PROJ and knowing > the precise projection and central meridian. That should get it close, > then you can tweak the map units in the X/Y to shore up the edges. > > Also, keep in mind that rasters may never match their vector counterparts, > due to basemap mismatch and thinning etc. > > It very well could be, that your JPG is a different projection??? > > I have several *very* nice raster maps here (Mountain High Maps) that I am > unable > to match the base projection with anything in PROJ. Since there is no > metadata > for the images, it requires much guesswork. > > Regards, > > Chris Stuber (mapsurfer) > Silicon Mapping Solutions, Inc > > Jason Maestri wrote: > > > > John, > > > > I am not sure why your data don't line up. The world file is okay, the only > > coordinates that are specified in the esri type world > > files are the X and Y of the bottom right corner. They seem to be really > > close to what you think they should be, so I'd imagine > > that the world file is not your problem. Mapserver doen't care what > > projection your data are in, so there isn't any place to > > specify projections. I'd use arcview or grass or something to make sure they > > really do line up, and further explore the problem. > > > > --Jason > > > > John Hockaday wrote: > > > > > Hi, > > > > > > I am trying to get a jpeg to load as a background image with vector > > > data on top of it. Both are in geographical coodinates however, when I > > > load one on top of the other they seem to be in different projections. > > > > > > The world file for the jpeg looks like this: > > > > > > ------------------------ > > > 0.000450 > > > 0 > > > 0 > > > -0.000450 > > > 150.000914 > > > -33.998391 > > > ------------------------ > > > > > > The image is supposed to be from TL(150, -34) to BR(151.5, -35). That > > > is 1.5 degrees by 1 degree with the top left corner at 150 degrees long > > > and -34 degrees lat. > > > > > > Am I missing out on specifying a decimal degrees unit for my layers in > > > the map file? The map file is attached. > > > > > > I would be greatfull for any information if someone else has used > > > georeferenced jpegs and vector shapefiles in a geographic coordinate > > > system. > > > > > > Thanks in advance. > > > > > > John Hockaday > > > > > > ------------------------------------------------------------------------ > > > # > > > # Start of map file > > > # > > > NAME DEMO > > > STATUS ON > > > SIZE 600 600 > > > SHADESET /opt/contrib/src/ms_3.3.010/symbols/shade.sym > > > MARKERSET /opt/contrib/src/ms_3.3.010/symbols/marker.sym > > > LINESET /opt/contrib/src/ms_3.3.010/symbols/line.sym > > > EXTENT 149 -35 152 -32 > > > UNITS dd > > > SHAPEPATH "/info/cgi-data/atlas/fornet/" > > > IMAGECOLOR 255 255 255 > > > > > > #LABELOVERLAP FALSE > > > > > > # > > > # Start of web interface definition > > > # > > > WEB > > > #HEADER demo_header.html > > > TEMPLATE demo.html > > > #MINSCALE 1000 > > > #MAXSCALE 1550000 > > > END > > > > > > # > > > # Start of reference map > > > # > > > #REFERENCE > > > #IMAGE graphics/reference_base.gif > > > #EXTENT 481093.000000 4969319.036682 502271.000000 4997508.3073184 > > > #STATUS ON > > > #COLOR -1 -1 -1 > > > #OUTLINECOLOR 255 0 0 > > > #END > > > > > > # > > > # Start of legend > > > # > > > LEGEND > > > KEYSIZE 18 12 > > > LABEL > > > TYPE BITMAP > > > SIZE MEDIUM > > > COLOR 0 0 89 > > > END > > > STATUS ON > > > END > > > > > > # > > > # Start of scalebar > > > # > > > SCALEBAR > > > IMAGECOLOR 255 255 255 > > > LABEL > > > COLOR 0 0 0 > > > SIZE SMALL > > > END > > > SIZE 350 5 > > > COLOR 255 255 255 > > > BACKGROUNDCOLOR 0 0 0 > > > OUTLINECOLOR 0 0 0 > > > UNITS kilometers > > > INTERVALS 5 > > > STATUS ON > > > END > > > > > > # > > > # Start of layer definitions > > > # > > > > > > LAYER > > > NAME coast > > > TYPE POLYGON > > > STATUS DEFAULT > > > DATA coast > > > CLASS > > > SYMBOL 0 > > > OUTLINECOLOR 0 0 0 > > > COLOR 248 248 95 > > > END > > > END > > > > > > LAYER > > > NAME si5609g > > > TYPE RASTER > > > STATUS ON > > > DATA si5609g.jpg > > > OFFSITE 0 > > > END > > > > > > LAYER > > > NAME cocos > > > TYPE RASTER > > > STATUS ON > > > DATA cocos.tif > > > OFFSITE 0 > > > END > > > > > > LAYER > > > NAME soils > > > TYPE POLYGON > > > STATUS ON > > > DATA soils > > > TOLERANCE 3 > > > > > > CLASSITEM "symbol" > > > CLASS > > > NAME "Classification by Symbol" > > > EXPRESSION "7" > > > COLOR 204 096 085 > > > BACKGROUNDCOLOR 32 201 201 > > > OUTLINECOLOR 0 0 0 > > > END > > > CLASS > > > EXPRESSION "27" > > > COLOR 255 255 000 > > > OUTLINECOLOR 0 0 0 > > > END > > > CLASS > > > EXPRESSION "33" > > > COLOR 204 191 085 > > > OUTLINECOLOR 0 0 0 > > > END > > > CLASS > > > EXPRESSION "37" > > > COLOR 234 223 085 > > > OUTLINECOLOR 0 0 0 > > > END > > > CLASS > > > EXPRESSION "52" > > > COLOR 204 223 170 > > > OUTLINECOLOR 0 0 0 > > > END > > > CLASS > > > EXPRESSION "62" > > > COLOR 204 159 085 > > > OUTLINECOLOR 0 0 0 > > > END > > > CLASS > > > EXPRESSION "98" > > > COLOR 255 255 170 > > > OUTLINECOLOR 0 0 0 > > > END > > > CLASS > > > EXPRESSION "146" > > > COLOR 153 159 085 > > > OUTLINECOLOR 0 0 0 > > > END > > > CLASS > > > EXPRESSION "158" > > > COLOR 204 159 085 > > > OUTLINECOLOR 0 0 0 > > > END > > > CLASS > > > EXPRESSION "177" > > > COLOR 153 064 000 > > > OUTLINECOLOR 0 0 0 > > > END > > > CLASS > > > EXPRESSION "200" > > > COLOR 153 128 000 > > > OUTLINECOLOR 0 0 0 > > > END > > > CLASS > > > EXPRESSION "202" > > > COLOR 102 159 170 > > > OUTLINECOLOR 0 0 0 > > > END > > > CLASS > > > EXPRESSION "212" > > > COLOR 153 128 000 > > > OUTLINECOLOR 0 0 0 > > > END > > > CLASS > > > EXPRESSION "216" > > > COLOR 153 159 000 > > > OUTLINECOLOR 0 0 0 > > > END > > > > > > #QUERYITEM symbol > > > QUERY > > > #EXPRESSION "216" > > > TEMPLATE demo.html > > > #JOIN "data/lakejoin.dbf" islake "type" > > > END > > > #QUERY > > > #EXPRESSION "^-" > > > #TEMPLATE land.html > > > #JOIN "data/lakejoin.dbf" islake "type" > > > #END > > > END # Layer > > > > > > LAYER > > > NAME rne12030 > > > TYPE POLYGON > > > STATUS ON > > > DATA rne12030 > > > TOLERANCE 5 > > > > > > CLASS > > > NAME "rne12030" > > > COLOR 49 117 185 > > > END > > > > > > QUERY > > > TEMPLATE /info/cgi-data/atlas/fornet/rne12030.html > > > END > > > END # Layer > > > > > > LAYER > > > NAME rail > > > TYPE LINE > > > STATUS ON > > > DATA rail > > > SYMBOLSCALE 4 > > > CLASS > > > NAME "rail" > > > COLOR 212 212 212 > > > SYMBOL 13 > > > SIZE 2 > > > MAXSIZE 4 > > > END > > > > > > QUERY > > > TEMPLATE /info/cgi-data/atlas/fornet/rail.html > > > END > > > END # Layer > > > > > > #LAYER > > > # NAME primary_roads > > > # TYPE LINE > > > # STATUS OFF > > > # DATA primary > > > # SYMBOLSCALE 24000 > > > # > > > # CLASS > > > # NAME "Primary Roads" > > > # COLOR 128 128 128 > > > # SYMBOL 13 > > > # SIZE 3 > > > # MAXSIZE 5 > > > # END > > > #END # Layer > > > > > > #LAYER > > > # NAME runways > > > # TYPE LINE > > > # STATUS OFF > > > # DATA runways > > > # > > > # CLASS > > > # COLOR 30 94 30 > > > # NAME "Airport Runways" > > > # END > > > #END # Layer > > > > > > LAYER > > > NAME "points" > > > TYPE ANNOTATION > > > STATUS ON > > > MAXSCALE 6555555 > > > DATA "points" > > > TOLERANCE 10 > > > > > > LABELITEM "Place_name" > > > > > > CLASS > > > SIZE 8 > > > COLOR 255 0 0 > > > SYMBOL 6 > > > LABEL > > > BACKGROUNDCOLOR 200 255 255 > > > COLOR 30 94 94 > > > TYPE BITMAP > > > #JUSTIFY CENTER > > > SIZE GIANT > > > POSITION AUTO > > > WRAP " " > > > END # Label > > > END # Class > > > > > > QUERY > > > TEMPLATE /info/cgi-data/atlas/fornet/points.html > > > END # Query > > > END # Layer > > > > > > END # Map File -- Mel VanderWal GIS Programmer / Manager GAIA Consultants Inc. Suite 306, 822-11th Avenue SW Calgary, Alberta Canada T2R 0E5 Phone: (403) 571-7216 Fax: (403) 571-7211 www.gaiaenv.com vanderwalm at gaiaenv.com From danmo at videotron.ca Tue Aug 1 07:34:35 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Tue, 01 Aug 2000 10:34:35 -0400 Subject: Using geographic data in the southern hemisphere References: <00080110200402.15673@tim.timhome> Message-ID: <3986DFFB.447338AE@videotron.ca> Tim and Marcelle Sutton wrote: > > The data is in the southern hemisphere (ie. north/south coordinates are negative > numbers in decimal degrees). > > The initial .map file had know projection section set, and the maps would > generate, but the map image would always come up blank. I have set the display > and scale bar units to decimal degrees (dd) and kilometers respectively. The > scale bar indicates that the display is zoomed in to a really large scale. > See below the answer to your question #2... there appears to be a problem with your "DATA" definitions in the .map file. And BTW, you should see something on your map even without reprojecting your data. Just make sure that the "EXTENTS" value in the .map file is specified in the same units as what is found in the .SHP files (e.g. degrees if the shape files are in degrees, or meters if the files are in meters) and then you should see your map. Then you can start playing with reprojection. > I have the proj4.4.4.1 rpm installed on the server (running redhat 6.1) and > when I added the > > Projection > "Geographic" > End > > to my .map file, my web page prints out the following: > > Warning: MapServer Error in loadProjection(): Projection support is not > available. in /home/httpd/html/Mapserver/cnc/cncmap.php3 on line 34 > > Fatal error: Failed to open map file cnc.map in /home/httpd/html/Mapserver/cnc/cncmap.php3 on line 34 > This suggests that the php_mapscript.so that you are using was not compiled with PROJ4 support (--with-proj configure switch). Do a phpinfo(); and look for the MapScript module in the list of extensions. You should see something like: MapScript MapScript Version 1.0.011 (Jul 12, 2000) MapServer Version 3.3.011 -PROJ.4 -FreeType -TIFF -EPPL7 -JPEG If you don't see the "-PROJ.4" in the phpinfo() output then your php_mapscript.so was probably not compiled with the "--with-proj" configure switch. BTW, the RH6.1 php_mapscript.so that I placed on our web site for downloading did include PROJ4 support. Just to make sure, I tried specifying a PROJECTION in a .map file and it worked, so I suspect that you are using a different .so that was not compiled with the "--with-proj" configure switch. > So my questions are: > > 1) Does mapserver support southern hemispher geographic data? I can't see why it would not support it. > 2) Do I have the correct settings in my .map file (listed below this message)? Hummmmm... I should have looked at the .MAP before writing that long reply. There seems to be a problem with the "DATA" lines in your 2 layer definitions. They both are set to: DATA data/ But the value should be the name of the shp file without the shp extension and relative to the location of the .map file. So for layer 1 you should have: DATA data/ca_cnc And for layer 2: DATA data/b_wcape_new You could also have added 'SHAPEPATH "data"' at the top of the .map file to specify the name of the directory where all the shp files live and then you would not need to include "data/" in all the DATA values. > 3) How can I get mapserver to recognise the proj library? PROJ.4 is not included by default when you compile MapServer. You have to pass the "--with-proj" switch when you run configure. See also the file README.CONFIGURE in the source code distribution for the list of configure options. > 4) Could anyone send me /point me to some sample .php files which demonstrate a > functional mapserver user inteface (implimenting query, zoom, pan etc)? > See: http://www2.dmsolutions.on.ca/gmap/gmap75.phtml and you can download the PHP source and data from http://www2.dmsolutions.on.ca/mapserver/dl/gmap-20000515.tar.gz -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From lrn at zeppo.geosurv.gov.nf.ca Tue Aug 1 08:03:09 2000 From: lrn at zeppo.geosurv.gov.nf.ca (Larry Nolan) Date: Tue, 1 Aug 2000 12:33:09 -0230 Subject: getting my map extents right Message-ID: <004001bffbc9$9ad28770$0a188bc0@geosurv.gov.nf.ca> I downloaded NT binaries from the DMSOLUTIONS site and had mapserver running in no time. Like other NT users it took me a while to get the CRLF issue figured out. I can't seem to get my map to zoom out to it's full extents. I have set the EXTENTS variable in my .map file but does not seem to make any difference. If I change the pixel SIZE variable to 1000 1000 I get the whole image but it's large and the quality of the image decreases the larger I make it. Has anyone else had this problem, any hints or suggestions? Hats off to the University of Minnesota and other developers. Mapserver is a great tool. thanks Larry Nolan St. John's, Newfoundland, Canada voice (709) 729-2168 email lrn at zeppo.geosurv.gov.nf.ca From ender at titan.lab.csuchico.edu Tue Aug 1 01:41:22 2000 From: ender at titan.lab.csuchico.edu (ender at titan.lab.csuchico.edu) Date: Tue, 1 Aug 2000 08:41:22 +0000 (/etc/localtime) Subject: Funny units for jpeg images In-Reply-To: <3986DFE5.4C2D943D@gaiaenv.com> Message-ID: Steve, other developers: This brings up one of those little things that I've wanted to fix but haven't gotten around to. Mapserver really needs to follow the rules for reading world files. The rules are: if the extention has three characters, the world file will be the first and last character of the extention followed by a 'w'. For example: image.tif -> image.tfw, image.gif -> image.gfw, image.jpg -> image.jgw. If the extention has more than three characters, the 'w' is appended to the complete extention: image.tiff -> image.tiffw, image.jpeg -> image.jpegw. If the extention is missing, the 'w' is added to the filename: image -> imagew. I think many of our new users problems stem from the non-standard file names Mapserver uses. Another place where a change could be made is in the mapfile, when you are specifying the data for a shapefile base feature theme, the mapserver will not allow you to put the .shp extention on this file. All other data types allow the extention, except for the .shp. This is very easy to compensate for, so I wonder if there is a reason for this being the way it is... If not, I will submit diffs to implement this change. -Aaron On Tue, 1 Aug 2000, Mel VanderWal wrote: > Hey all. > > If you need to create world files in ArcView, Todd Poston recently posted a good > extension (and the source code) on the ESRI ArcScripts site > (http://gis.esri.com/arcscripts/details.cfm?CFGRIDKEY=B718A422-5E5A-11D4-943200508B0CB419). > > I only tested it a little, but Todd knows what he's doing, so it's probably solid. > For MapServer users, use the .apr instead of the extension, so you can change one > line in the script QDIR.View.WriteWorldFile.Click. Then georeference your images > in that apr. > > Change: > theFN = > FileName.Merge(theISrc.GetSrcName.GetFileName.ReturnDir.AsString,theISrc.GetSrcName.GetFileName.GetBaseName > + "w") > To: > theFN = theISrc.GetSrcName.GetFileName > theFN.SetExtension("tfw") > > or else the world file will get a .tifw extension instead of a .tfw extension, > which is OK in ArcView, but MapServer won't recognize it. One ArcView world file > convention is simply to add a "w" to the image's file extension, so that's the way > many world files are named. It's probably minor for most MapServer users, but I > spent awhile figuring out why an image wouldn't georeference. (Steve: Maybe to > make using the same data a little easier... - wishlist item?) > > > imap at chesapeake.net wrote: > > > Hello, This isnt exactly right... THe worldfile X/Y is the upper left > > pixel, not bottom right. I have found that matching projections is not an > > exact science. Sometime you need to adjust the X/Y and map units to stretch > > the raster to get a tight fit. > > > > I have done a couple of these.. You have to begin with PROJ and knowing > > the precise projection and central meridian. That should get it close, > > then you can tweak the map units in the X/Y to shore up the edges. > > > > Also, keep in mind that rasters may never match their vector counterparts, > > due to basemap mismatch and thinning etc. > > > > It very well could be, that your JPG is a different projection??? > > > > I have several *very* nice raster maps here (Mountain High Maps) that I am > > unable > > to match the base projection with anything in PROJ. Since there is no > > metadata > > for the images, it requires much guesswork. > > > > Regards, > > > > Chris Stuber (mapsurfer) > > Silicon Mapping Solutions, Inc > > > > Jason Maestri wrote: > > > > > > John, > > > > > > I am not sure why your data don't line up. The world file is okay, the only > > > coordinates that are specified in the esri type world > > > files are the X and Y of the bottom right corner. They seem to be really > > > close to what you think they should be, so I'd imagine > > > that the world file is not your problem. Mapserver doen't care what > > > projection your data are in, so there isn't any place to > > > specify projections. I'd use arcview or grass or something to make sure they > > > really do line up, and further explore the problem. > > > > > > --Jason > > > > > > John Hockaday wrote: > > > > > > > Hi, > > > > > > > > I am trying to get a jpeg to load as a background image with vector > > > > data on top of it. Both are in geographical coodinates however, when I > > > > load one on top of the other they seem to be in different projections. > > > > > > > > The world file for the jpeg looks like this: > > > > > > > > ------------------------ > > > > 0.000450 > > > > 0 > > > > 0 > > > > -0.000450 > > > > 150.000914 > > > > -33.998391 > > > > ------------------------ > > > > > > > > The image is supposed to be from TL(150, -34) to BR(151.5, -35). That > > > > is 1.5 degrees by 1 degree with the top left corner at 150 degrees long > > > > and -34 degrees lat. > > > > > > > > Am I missing out on specifying a decimal degrees unit for my layers in > > > > the map file? The map file is attached. > > > > > > > > I would be greatfull for any information if someone else has used > > > > georeferenced jpegs and vector shapefiles in a geographic coordinate > > > > system. > > > > > > > > Thanks in advance. > > > > > > > > John Hockaday > > > > > > > > ------------------------------------------------------------------------ > > > > # > > > > # Start of map file > > > > # > > > > NAME DEMO > > > > STATUS ON > > > > SIZE 600 600 > > > > SHADESET /opt/contrib/src/ms_3.3.010/symbols/shade.sym > > > > MARKERSET /opt/contrib/src/ms_3.3.010/symbols/marker.sym > > > > LINESET /opt/contrib/src/ms_3.3.010/symbols/line.sym > > > > EXTENT 149 -35 152 -32 > > > > UNITS dd > > > > SHAPEPATH "/info/cgi-data/atlas/fornet/" > > > > IMAGECOLOR 255 255 255 > > > > > > > > #LABELOVERLAP FALSE > > > > > > > > # > > > > # Start of web interface definition > > > > # > > > > WEB > > > > #HEADER demo_header.html > > > > TEMPLATE demo.html > > > > #MINSCALE 1000 > > > > #MAXSCALE 1550000 > > > > END > > > > > > > > # > > > > # Start of reference map > > > > # > > > > #REFERENCE > > > > #IMAGE graphics/reference_base.gif > > > > #EXTENT 481093.000000 4969319.036682 502271.000000 4997508.3073184 > > > > #STATUS ON > > > > #COLOR -1 -1 -1 > > > > #OUTLINECOLOR 255 0 0 > > > > #END > > > > > > > > # > > > > # Start of legend > > > > # > > > > LEGEND > > > > KEYSIZE 18 12 > > > > LABEL > > > > TYPE BITMAP > > > > SIZE MEDIUM > > > > COLOR 0 0 89 > > > > END > > > > STATUS ON > > > > END > > > > > > > > # > > > > # Start of scalebar > > > > # > > > > SCALEBAR > > > > IMAGECOLOR 255 255 255 > > > > LABEL > > > > COLOR 0 0 0 > > > > SIZE SMALL > > > > END > > > > SIZE 350 5 > > > > COLOR 255 255 255 > > > > BACKGROUNDCOLOR 0 0 0 > > > > OUTLINECOLOR 0 0 0 > > > > UNITS kilometers > > > > INTERVALS 5 > > > > STATUS ON > > > > END > > > > > > > > # > > > > # Start of layer definitions > > > > # > > > > > > > > LAYER > > > > NAME coast > > > > TYPE POLYGON > > > > STATUS DEFAULT > > > > DATA coast > > > > CLASS > > > > SYMBOL 0 > > > > OUTLINECOLOR 0 0 0 > > > > COLOR 248 248 95 > > > > END > > > > END > > > > > > > > LAYER > > > > NAME si5609g > > > > TYPE RASTER > > > > STATUS ON > > > > DATA si5609g.jpg > > > > OFFSITE 0 > > > > END > > > > > > > > LAYER > > > > NAME cocos > > > > TYPE RASTER > > > > STATUS ON > > > > DATA cocos.tif > > > > OFFSITE 0 > > > > END > > > > > > > > LAYER > > > > NAME soils > > > > TYPE POLYGON > > > > STATUS ON > > > > DATA soils > > > > TOLERANCE 3 > > > > > > > > CLASSITEM "symbol" > > > > CLASS > > > > NAME "Classification by Symbol" > > > > EXPRESSION "7" > > > > COLOR 204 096 085 > > > > BACKGROUNDCOLOR 32 201 201 > > > > OUTLINECOLOR 0 0 0 > > > > END > > > > CLASS > > > > EXPRESSION "27" > > > > COLOR 255 255 000 > > > > OUTLINECOLOR 0 0 0 > > > > END > > > > CLASS > > > > EXPRESSION "33" > > > > COLOR 204 191 085 > > > > OUTLINECOLOR 0 0 0 > > > > END > > > > CLASS > > > > EXPRESSION "37" > > > > COLOR 234 223 085 > > > > OUTLINECOLOR 0 0 0 > > > > END > > > > CLASS > > > > EXPRESSION "52" > > > > COLOR 204 223 170 > > > > OUTLINECOLOR 0 0 0 > > > > END > > > > CLASS > > > > EXPRESSION "62" > > > > COLOR 204 159 085 > > > > OUTLINECOLOR 0 0 0 > > > > END > > > > CLASS > > > > EXPRESSION "98" > > > > COLOR 255 255 170 > > > > OUTLINECOLOR 0 0 0 > > > > END > > > > CLASS > > > > EXPRESSION "146" > > > > COLOR 153 159 085 > > > > OUTLINECOLOR 0 0 0 > > > > END > > > > CLASS > > > > EXPRESSION "158" > > > > COLOR 204 159 085 > > > > OUTLINECOLOR 0 0 0 > > > > END > > > > CLASS > > > > EXPRESSION "177" > > > > COLOR 153 064 000 > > > > OUTLINECOLOR 0 0 0 > > > > END > > > > CLASS > > > > EXPRESSION "200" > > > > COLOR 153 128 000 > > > > OUTLINECOLOR 0 0 0 > > > > END > > > > CLASS > > > > EXPRESSION "202" > > > > COLOR 102 159 170 > > > > OUTLINECOLOR 0 0 0 > > > > END > > > > CLASS > > > > EXPRESSION "212" > > > > COLOR 153 128 000 > > > > OUTLINECOLOR 0 0 0 > > > > END > > > > CLASS > > > > EXPRESSION "216" > > > > COLOR 153 159 000 > > > > OUTLINECOLOR 0 0 0 > > > > END > > > > > > > > #QUERYITEM symbol > > > > QUERY > > > > #EXPRESSION "216" > > > > TEMPLATE demo.html > > > > #JOIN "data/lakejoin.dbf" islake "type" > > > > END > > > > #QUERY > > > > #EXPRESSION "^-" > > > > #TEMPLATE land.html > > > > #JOIN "data/lakejoin.dbf" islake "type" > > > > #END > > > > END # Layer > > > > > > > > LAYER > > > > NAME rne12030 > > > > TYPE POLYGON > > > > STATUS ON > > > > DATA rne12030 > > > > TOLERANCE 5 > > > > > > > > CLASS > > > > NAME "rne12030" > > > > COLOR 49 117 185 > > > > END > > > > > > > > QUERY > > > > TEMPLATE /info/cgi-data/atlas/fornet/rne12030.html > > > > END > > > > END # Layer > > > > > > > > LAYER > > > > NAME rail > > > > TYPE LINE > > > > STATUS ON > > > > DATA rail > > > > SYMBOLSCALE 4 > > > > CLASS > > > > NAME "rail" > > > > COLOR 212 212 212 > > > > SYMBOL 13 > > > > SIZE 2 > > > > MAXSIZE 4 > > > > END > > > > > > > > QUERY > > > > TEMPLATE /info/cgi-data/atlas/fornet/rail.html > > > > END > > > > END # Layer > > > > > > > > #LAYER > > > > # NAME primary_roads > > > > # TYPE LINE > > > > # STATUS OFF > > > > # DATA primary > > > > # SYMBOLSCALE 24000 > > > > # > > > > # CLASS > > > > # NAME "Primary Roads" > > > > # COLOR 128 128 128 > > > > # SYMBOL 13 > > > > # SIZE 3 > > > > # MAXSIZE 5 > > > > # END > > > > #END # Layer > > > > > > > > #LAYER > > > > # NAME runways > > > > # TYPE LINE > > > > # STATUS OFF > > > > # DATA runways > > > > # > > > > # CLASS > > > > # COLOR 30 94 30 > > > > # NAME "Airport Runways" > > > > # END > > > > #END # Layer > > > > > > > > LAYER > > > > NAME "points" > > > > TYPE ANNOTATION > > > > STATUS ON > > > > MAXSCALE 6555555 > > > > DATA "points" > > > > TOLERANCE 10 > > > > > > > > LABELITEM "Place_name" > > > > > > > > CLASS > > > > SIZE 8 > > > > COLOR 255 0 0 > > > > SYMBOL 6 > > > > LABEL > > > > BACKGROUNDCOLOR 200 255 255 > > > > COLOR 30 94 94 > > > > TYPE BITMAP > > > > #JUSTIFY CENTER > > > > SIZE GIANT > > > > POSITION AUTO > > > > WRAP " " > > > > END # Label > > > > END # Class > > > > > > > > QUERY > > > > TEMPLATE /info/cgi-data/atlas/fornet/points.html > > > > END # Query > > > > END # Layer > > > > > > > > END # Map File > > -- > Mel VanderWal > GIS Programmer / Manager > GAIA Consultants Inc. > Suite 306, 822-11th Avenue SW > Calgary, Alberta > Canada > T2R 0E5 > Phone: (403) 571-7216 > Fax: (403) 571-7211 > www.gaiaenv.com > vanderwalm at gaiaenv.com > > From steve.lime at dnr.state.mn.us Tue Aug 1 10:05:07 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 01 Aug 2000 12:05:07 -0500 Subject: Funny units for jpeg images Message-ID: I sort of agree. The ESRI naming standards are stupid with respect to world files. The .wld is now the ESRI standard and I see no real reason to support the old stuff. (.jpw and .tfw are already supported) We'll likely be moving from the current raster engine to a new one that supports a much wider variety of formats soon. Supporting the .shp extension is a good idea. The non-extension filename is a hold over from the shapelib library for reading shapefiles. Since a shapefile isn't a single file I suppose it made sense conceptually at the time. Send the diffs if you've got 'em. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 08/01/00 03:41AM >>> Steve, other developers: This brings up one of those little things that I've wanted to fix but haven't gotten around to. Mapserver really needs to follow the rules for reading world files. The rules are: if the extention has three characters, the world file will be the first and last character of the extention followed by a 'w'. For example: image.tif -> image.tfw, image.gif -> image.gfw, image.jpg -> image.jgw. If the extention has more than three characters, the 'w' is appended to the complete extention: image.tiff -> image.tiffw, image.jpeg -> image.jpegw. If the extention is missing, the 'w' is added to the filename: image -> imagew. I think many of our new users problems stem from the non-standard file names Mapserver uses. Another place where a change could be made is in the mapfile, when you are specifying the data for a shapefile base feature theme, the mapserver will not allow you to put the .shp extention on this file. All other data types allow the extention, except for the .shp. This is very easy to compensate for, so I wonder if there is a reason for this being the way it is... If not, I will submit diffs to implement this change. -Aaron On Tue, 1 Aug 2000, Mel VanderWal wrote: > Hey all. > > If you need to create world files in ArcView, Todd Poston recently posted a good > extension (and the source code) on the ESRI ArcScripts site > (http://gis.esri.com/arcscripts/details.cfm?CFGRIDKEY=B718A422-5E5A-11D4-943200508B0CB419). > > I only tested it a little, but Todd knows what he's doing, so it's probably solid. > For MapServer users, use the .apr instead of the extension, so you can change one > line in the script QDIR.View.WriteWorldFile.Click. Then georeference your images > in that apr. > > Change: > theFN = > FileName.Merge(theISrc.GetSrcName.GetFileName.ReturnDir.AsString,theISrc.GetSrcName.GetFileName.GetBaseName > + "w") > To: > theFN = theISrc.GetSrcName.GetFileName > theFN.SetExtension("tfw") > > or else the world file will get a .tifw extension instead of a .tfw extension, > which is OK in ArcView, but MapServer won't recognize it. One ArcView world file > convention is simply to add a "w" to the image's file extension, so that's the way > many world files are named. It's probably minor for most MapServer users, but I > spent awhile figuring out why an image wouldn't georeference. (Steve: Maybe to > make using the same data a little easier... - wishlist item?) > > > imap at chesapeake.net wrote: > > > Hello, This isnt exactly right... THe worldfile X/Y is the upper left > > pixel, not bottom right. I have found that matching projections is not an > > exact science. Sometime you need to adjust the X/Y and map units to stretch > > the raster to get a tight fit. > > > > I have done a couple of these.. You have to begin with PROJ and knowing > > the precise projection and central meridian. That should get it close, > > then you can tweak the map units in the X/Y to shore up the edges. > > > > Also, keep in mind that rasters may never match their vector counterparts, > > due to basemap mismatch and thinning etc. > > > > It very well could be, that your JPG is a different projection??? > > > > I have several *very* nice raster maps here (Mountain High Maps) that I am > > unable > > to match the base projection with anything in PROJ. Since there is no > > metadata > > for the images, it requires much guesswork. > > > > Regards, > > > > Chris Stuber (mapsurfer) > > Silicon Mapping Solutions, Inc > > > > Jason Maestri wrote: > > > > > > John, > > > > > > I am not sure why your data don't line up. The world file is okay, the only > > > coordinates that are specified in the esri type world > > > files are the X and Y of the bottom right corner. They seem to be really > > > close to what you think they should be, so I'd imagine > > > that the world file is not your problem. Mapserver doen't care what > > > projection your data are in, so there isn't any place to > > > specify projections. I'd use arcview or grass or something to make sure they > > > really do line up, and further explore the problem. > > > > > > --Jason > > > > > > John Hockaday wrote: > > > > > > > Hi, > > > > > > > > I am trying to get a jpeg to load as a background image with vector > > > > data on top of it. Both are in geographical coodinates however, when I > > > > load one on top of the other they seem to be in different projections. > > > > > > > > The world file for the jpeg looks like this: > > > > > > > > ------------------------ > > > > 0.000450 > > > > 0 > > > > 0 > > > > -0.000450 > > > > 150.000914 > > > > -33.998391 > > > > ------------------------ > > > > > > > > The image is supposed to be from TL(150, -34) to BR(151.5, -35). That > > > > is 1.5 degrees by 1 degree with the top left corner at 150 degrees long > > > > and -34 degrees lat. > > > > > > > > Am I missing out on specifying a decimal degrees unit for my layers in > > > > the map file? The map file is attached. > > > > > > > > I would be greatfull for any information if someone else has used > > > > georeferenced jpegs and vector shapefiles in a geographic coordinate > > > > system. > > > > > > > > Thanks in advance. > > > > > > > > John Hockaday > > > > > > > > ------------------------------------------------------------------------ > > > > # > > > > # Start of map file > > > > # > > > > NAME DEMO > > > > STATUS ON > > > > SIZE 600 600 > > > > SHADESET /opt/contrib/src/ms_3.3.010/symbols/shade.sym > > > > MARKERSET /opt/contrib/src/ms_3.3.010/symbols/marker.sym > > > > LINESET /opt/contrib/src/ms_3.3.010/symbols/line.sym > > > > EXTENT 149 -35 152 -32 > > > > UNITS dd > > > > SHAPEPATH "/info/cgi-data/atlas/fornet/" > > > > IMAGECOLOR 255 255 255 > > > > > > > > #LABELOVERLAP FALSE > > > > > > > > # > > > > # Start of web interface definition > > > > # > > > > WEB > > > > #HEADER demo_header.html > > > > TEMPLATE demo.html > > > > #MINSCALE 1000 > > > > #MAXSCALE 1550000 > > > > END > > > > > > > > # > > > > # Start of reference map > > > > # > > > > #REFERENCE > > > > #IMAGE graphics/reference_base.gif > > > > #EXTENT 481093.000000 4969319.036682 502271.000000 4997508.3073184 > > > > #STATUS ON > > > > #COLOR -1 -1 -1 > > > > #OUTLINECOLOR 255 0 0 > > > > #END > > > > > > > > # > > > > # Start of legend > > > > # > > > > LEGEND > > > > KEYSIZE 18 12 > > > > LABEL > > > > TYPE BITMAP > > > > SIZE MEDIUM > > > > COLOR 0 0 89 > > > > END > > > > STATUS ON > > > > END > > > > > > > > # > > > > # Start of scalebar > > > > # > > > > SCALEBAR > > > > IMAGECOLOR 255 255 255 > > > > LABEL > > > > COLOR 0 0 0 > > > > SIZE SMALL > > > > END > > > > SIZE 350 5 > > > > COLOR 255 255 255 > > > > BACKGROUNDCOLOR 0 0 0 > > > > OUTLINECOLOR 0 0 0 > > > > UNITS kilometers > > > > INTERVALS 5 > > > > STATUS ON > > > > END > > > > > > > > # > > > > # Start of layer definitions > > > > # > > > > > > > > LAYER > > > > NAME coast > > > > TYPE POLYGON > > > > STATUS DEFAULT > > > > DATA coast > > > > CLASS > > > > SYMBOL 0 > > > > OUTLINECOLOR 0 0 0 > > > > COLOR 248 248 95 > > > > END > > > > END > > > > > > > > LAYER > > > > NAME si5609g > > > > TYPE RASTER > > > > STATUS ON > > > > DATA si5609g.jpg > > > > OFFSITE 0 > > > > END > > > > > > > > LAYER > > > > NAME cocos > > > > TYPE RASTER > > > > STATUS ON > > > > DATA cocos.tif > > > > OFFSITE 0 > > > > END > > > > > > > > LAYER > > > > NAME soils > > > > TYPE POLYGON > > > > STATUS ON > > > > DATA soils > > > > TOLERANCE 3 > > > > > > > > CLASSITEM "symbol" > > > > CLASS > > > > NAME "Classification by Symbol" > > > > EXPRESSION "7" > > > > COLOR 204 096 085 > > > > BACKGROUNDCOLOR 32 201 201 > > > > OUTLINECOLOR 0 0 0 > > > > END > > > > CLASS > > > > EXPRESSION "27" > > > > COLOR 255 255 000 > > > > OUTLINECOLOR 0 0 0 > > > > END > > > > CLASS > > > > EXPRESSION "33" > > > > COLOR 204 191 085 > > > > OUTLINECOLOR 0 0 0 > > > > END > > > > CLASS > > > > EXPRESSION "37" > > > > COLOR 234 223 085 > > > > OUTLINECOLOR 0 0 0 > > > > END > > > > CLASS > > > > EXPRESSION "52" > > > > COLOR 204 223 170 > > > > OUTLINECOLOR 0 0 0 > > > > END > > > > CLASS > > > > EXPRESSION "62" > > > > COLOR 204 159 085 > > > > OUTLINECOLOR 0 0 0 > > > > END > > > > CLASS > > > > EXPRESSION "98" > > > > COLOR 255 255 170 > > > > OUTLINECOLOR 0 0 0 > > > > END > > > > CLASS > > > > EXPRESSION "146" > > > > COLOR 153 159 085 > > > > OUTLINECOLOR 0 0 0 > > > > END > > > > CLASS > > > > EXPRESSION "158" > > > > COLOR 204 159 085 > > > > OUTLINECOLOR 0 0 0 > > > > END > > > > CLASS > > > > EXPRESSION "177" > > > > COLOR 153 064 000 > > > > OUTLINECOLOR 0 0 0 > > > > END > > > > CLASS > > > > EXPRESSION "200" > > > > COLOR 153 128 000 > > > > OUTLINECOLOR 0 0 0 > > > > END > > > > CLASS > > > > EXPRESSION "202" > > > > COLOR 102 159 170 > > > > OUTLINECOLOR 0 0 0 > > > > END > > > > CLASS > > > > EXPRESSION "212" > > > > COLOR 153 128 000 > > > > OUTLINECOLOR 0 0 0 > > > > END > > > > CLASS > > > > EXPRESSION "216" > > > > COLOR 153 159 000 > > > > OUTLINECOLOR 0 0 0 > > > > END > > > > > > > > #QUERYITEM symbol > > > > QUERY > > > > #EXPRESSION "216" > > > > TEMPLATE demo.html > > > > #JOIN "data/lakejoin.dbf" islake "type" > > > > END > > > > #QUERY > > > > #EXPRESSION "^-" > > > > #TEMPLATE land.html > > > > #JOIN "data/lakejoin.dbf" islake "type" > > > > #END > > > > END # Layer > > > > > > > > LAYER > > > > NAME rne12030 > > > > TYPE POLYGON > > > > STATUS ON > > > > DATA rne12030 > > > > TOLERANCE 5 > > > > > > > > CLASS > > > > NAME "rne12030" > > > > COLOR 49 117 185 > > > > END > > > > > > > > QUERY > > > > TEMPLATE /info/cgi-data/atlas/fornet/rne12030.html > > > > END > > > > END # Layer > > > > > > > > LAYER > > > > NAME rail > > > > TYPE LINE > > > > STATUS ON > > > > DATA rail > > > > SYMBOLSCALE 4 > > > > CLASS > > > > NAME "rail" > > > > COLOR 212 212 212 > > > > SYMBOL 13 > > > > SIZE 2 > > > > MAXSIZE 4 > > > > END > > > > > > > > QUERY > > > > TEMPLATE /info/cgi-data/atlas/fornet/rail.html > > > > END > > > > END # Layer > > > > > > > > #LAYER > > > > # NAME primary_roads > > > > # TYPE LINE > > > > # STATUS OFF > > > > # DATA primary > > > > # SYMBOLSCALE 24000 > > > > # > > > > # CLASS > > > > # NAME "Primary Roads" > > > > # COLOR 128 128 128 > > > > # SYMBOL 13 > > > > # SIZE 3 > > > > # MAXSIZE 5 > > > > # END > > > > #END # Layer > > > > > > > > #LAYER > > > > # NAME runways > > > > # TYPE LINE > > > > # STATUS OFF > > > > # DATA runways > > > > # > > > > # CLASS > > > > # COLOR 30 94 30 > > > > # NAME "Airport Runways" > > > > # END > > > > #END # Layer > > > > > > > > LAYER > > > > NAME "points" > > > > TYPE ANNOTATION > > > > STATUS ON > > > > MAXSCALE 6555555 > > > > DATA "points" > > > > TOLERANCE 10 > > > > > > > > LABELITEM "Place_name" > > > > > > > > CLASS > > > > SIZE 8 > > > > COLOR 255 0 0 > > > > SYMBOL 6 > > > > LABEL > > > > BACKGROUNDCOLOR 200 255 255 > > > > COLOR 30 94 94 > > > > TYPE BITMAP > > > > #JUSTIFY CENTER > > > > SIZE GIANT > > > > POSITION AUTO > > > > WRAP " " > > > > END # Label > > > > END # Class > > > > > > > > QUERY > > > > TEMPLATE /info/cgi-data/atlas/fornet/points.html > > > > END # Query > > > > END # Layer > > > > > > > > END # Map File > > -- > Mel VanderWal > GIS Programmer / Manager > GAIA Consultants Inc. > Suite 306, 822-11th Avenue SW > Calgary, Alberta > Canada > T2R 0E5 > Phone: (403) 571-7216 > Fax: (403) 571-7211 > www.gaiaenv.com > vanderwalm at gaiaenv.com > > From sjohnston at satshot.com Tue Aug 1 10:30:45 2000 From: sjohnston at satshot.com (Shawn L Johnston) Date: Tue, 1 Aug 2000 12:30:45 -0500 Subject: Installation on NT 5.0 Message-ID: <003e01bffbde$39740700$4ce946cf@cel466> Kind of a beginners question... I'm trying to build mapserver on NT 5.0, using VC++ 5.0, with libTIFFand Freetype components (I also have downloaded the REGEX library). Do I need to build the libTIFF, Freetype and REGEX separately before I build the mapserver, or do I only need to include the source code for these components in the correct directories and everything will be taken care of when I build mapserver? Many thanks, Shawn -------------- next part -------------- An HTML attachment was scrubbed... URL: From sjohnston at satshot.com Tue Aug 1 15:01:16 2000 From: sjohnston at satshot.com (Shawn L Johnston) Date: Tue, 1 Aug 2000 17:01:16 -0500 Subject: Makefile and NT install Message-ID: <00a101bffc04$0460ba60$4ce946cf@cel466> Apologize for bringing up an old question. As I have been attempting to build mapserver (with VC++ 5.0) I've been running into the error message saying that it could not find freetype.h, though I know the header file is indeed there. Is this a problem I overcome in the makefile.vc? I would greatly appreciate any suggestions on how best to set paths or any other configuration options in building mapserver. thanks, Shawn -------------- next part -------------- An HTML attachment was scrubbed... URL: From assefa1 at yahoo.com Wed Aug 2 06:44:06 2000 From: assefa1 at yahoo.com (Assefa Yewondwossen) Date: Wed, 2 Aug 2000 06:44:06 -0700 (PDT) Subject: Installation on NT 5.0 Message-ID: <20000802134406.8895.qmail@web1302.mail.yahoo.com> Hi There, You actually have to build the librairies (libtiff, freetype ...) before building mapserver. If you do not want to support these functionnalities, you can desactivate them by editing the makefile.vc file. You can also download a zip file with MapServer version 3.3.011 executables for WinNT (tested on NT4) at : http://www2.dmsolutions.on.ca/mapserver/dl/ms_3.3.011-win32.zip Hope it helps. Later, --- Shawn L Johnston wrote: > Kind of a beginners question... I'm trying to build > mapserver on NT 5.0, using VC++ 5.0, with > libTIFFand Freetype components (I also have > downloaded the REGEX library). > > Do I need to build the libTIFF, Freetype and REGEX > separately before I build the mapserver, or do I > only need to include the source code for these > components in the correct directories and everything > will be taken care of when I build mapserver? > > Many thanks, > > Shawn > __________________________________________________ Do You Yahoo!? Kick off your party with Yahoo! Invites. http://invites.yahoo.com/ From aborruso at spaziogis.it Wed Aug 2 08:46:06 2000 From: aborruso at spaziogis.it (aborruso at spaziogis.it) Date: Wed, 2 Aug 2000 17:46:06 +0200 Subject: Label problems! Urgent Message-ID: Dear users, is it possible to put a label only in the object that I have searched? In example I have a city layer, every city has a point symbol, and every symbol is painted in the map: I would like to put a label only in the city that I have searched by a form, and that I see in the center of teh map. Thank you, Andrea From marin at here.is Wed Aug 2 10:03:57 2000 From: marin at here.is (Ma) Date: Wed, 02 Aug 2000 17:03:57 +0000 Subject: non case sensitive search Message-ID: <3988547D.8BCFB565@here.is> Dear All, Trying to search via form like this: <... Hi. We have a project in which we want the user through a browser to be able to create data (probably shapefiles). I'm already using mapserver for another project, but haven't explored its capabilities enough to know if this is something it could do. The user would need to be able to draw new point, line and polygon datasets, and add attribute information to them. We also have been playing with ArcIMS for another project, and I don't even think the user can do that with ArcIMS. Even if they could though, it's way too expensive for this project. Does anyone have any suggestions? Thanks, Andrea @-------------------------@ | Andrea Goethals | | andreag at geoplan.ufl.edu | | GeoPlan Center | | University of Florida | | 431 Architecture Bldg | | www.geoplan.ufl.edu | | Gainesville, FL 32611 | | Phone: (352)392-2351 | | Fax:(352)392-3308 | @-------------------------@ From bfischer at usgs.gov Wed Aug 2 10:25:44 2000 From: bfischer at usgs.gov (bfischer at usgs.gov) Date: Wed, 2 Aug 2000 12:25:44 -0500 Subject: users creating data Message-ID: I have also been playing around with ArcIMS. This is possible with ArcIMS, but only with the Feature Server. This uses Java to allow users, through a browser to edit shapefiles and add mapnotes to submit back to the server. The user also has to have a java enabled browser or ArcExployer (Java edition). This is also fairly efficient if you have large data sets, because it downloads to the client the shapefiles they need. It also cache's them on the client for future use. As for mapserver having this capability. I am pretty sure it is not possibly with the current version of mapserver. I think it would be possibly with some extensive Java programming. Points would definetly be easier to create then polygons, because you could capture a mouse click and transform image coordinates to map coordinates then use shapelib to create a shapefile. Just my thought on it, Brian Brian Fischer bfischer at usgs.gov USGS WRD 2280 Woodale Dr. Mounds View, MN (612) 783-3133 |--------+---------------------------------------> | | Andrea Goethals | | | | | | Sent by: | | | owner-mapserver-users at lists.g| | | is.umn.edu | | | | | | | | | 08/02/2000 12:06 PM | | | Please respond to Andrea | | | Goethals | | | | |--------+---------------------------------------> >-----------------------------------------------------------------------------------------------------------| | | | To: mapserver-users at lists.gis.umn.edu | | cc: | | Subject: users creating data | >-----------------------------------------------------------------------------------------------------------| Hi. We have a project in which we want the user through a browser to be able to create data (probably shapefiles). I'm already using mapserver for another project, but haven't explored its capabilities enough to know if this is something it could do. The user would need to be able to draw new point, line and polygon datasets, and add attribute information to them. We also have been playing with ArcIMS for another project, and I don't even think the user can do that with ArcIMS. Even if they could though, it's way too expensive for this project. Does anyone have any suggestions? Thanks, Andrea @-------------------------@ | Andrea Goethals | | andreag at geoplan.ufl.edu | | GeoPlan Center | | University of Florida | | 431 Architecture Bldg | | www.geoplan.ufl.edu | | Gainesville, FL 32611 | | Phone: (352)392-2351 | | Fax:(352)392-3308 | @-------------------------@ From anton.coetzee at vip.co.za Tue Aug 1 13:39:14 2000 From: anton.coetzee at vip.co.za (Anton Coetzee) Date: Tue, 01 Aug 2000 13:39:14 SAST Subject: Using geographic data in the southern hemisphere Message-ID: Hi I'm using mapserver (3.3.010) on Southern Hemisphere shapefiles (Gauteng area) with no problem. I'm *not* using proj at all, so maybe that is an issue? As an example, here's the extent from one of my maps: units dd extent 28.05 -26.15 28.12 -26.19 So I can answer #1 - yes, mapserver *does* work OK with Southern Hemisphere data. Sorry I can't be of help with the other stuff. Anton Coetzee On Tue, 1 Aug 2000, Tim and Marcelle Sutton wrote: > > The data is in the southern hemisphere (ie. north/south coordinates are > negative > numbers in decimal degrees). > 1) Does mapserver support southern hemispher geographic data? From jmaes at riparia.net Wed Aug 2 15:16:29 2000 From: jmaes at riparia.net (Jason Maestri) Date: Wed, 02 Aug 2000 16:16:29 -0600 Subject: users creating data References: <200008021706.e72H68917196@cosmos.geoplan.ufl.edu> Message-ID: <39889DBD.468C8371@riparia.net> Andrea, We have played with this a little here at USU. Mapserver cannot add data to the shapefile triplets. You'd need to use shapelib and DBD::XBase or something for that. We have developed our own libraries for editing shapefiles, they are in C++, right now, I just haven't had the time to port them to Perl. Maybe if there is enough interest, we could post them in the public domain. Esp. if somebody wants to port them to perl. Anyway... The conclusion that we came to was that it was easy to add points to a shapefile (description of algorithm to follow) using only html, JavaScript and mapserver, but in order to add line and polygon collections comfortably, you'd need a java applet. As far as just adding a point... What we wound up doing (there's probably a better way to do this. Hopefully somebody else will comment, but this was just a quick fix to get something running, and we haven't bothered to change it) was to create a layer with only one shape. A square polygon which was large enough to contain all of the other shapefiles. This was drawn transparently as the top layer (the user had no clue it was there), and a query template was set up which captured the coordinates of any click inside the polygon. Since it was on top, and it was bigger than everything else, a click anywhere on the map would be inside this polygon, and therefore would call it's query template. The user could then fill out a form on the query template, adding any data the wanted in the shapefile, then they would submit the form. The CGI script would then add a new point at the coordinates selected, and fill the database with the data entered. The url for this application is: http://riparia.riparia.net/teton/teton_init.html. To add a new comment, first turn on the comments layer, then check the box next to "add new comment". Finally, set the mode to select, and click away. There are a bunch of comments on here from people playing with it. Nothing really useful yet... I'll clean it up in about a week. Anyway I hope this helps. Sorry for the very long-winded answer. --Jason Maestri Andrea Goethals wrote: > Hi. > > We have a project in which we want the user through > a browser to be able to create data (probably shapefiles). > > I'm already using mapserver for another project, but > haven't explored its capabilities enough to know if > this is something it could do. The user would need > to be able to draw new point, line and polygon datasets, > and add attribute information to them. > > We also have been playing with ArcIMS for another project, > and I don't even think the user can do that with ArcIMS. > Even if they could though, it's way too expensive for > this project. > > Does anyone have any suggestions? > > Thanks, > Andrea > > @-------------------------@ > | Andrea Goethals | > | andreag at geoplan.ufl.edu | > | GeoPlan Center | > | University of Florida | > | 431 Architecture Bldg | > | www.geoplan.ufl.edu | > | Gainesville, FL 32611 | > | Phone: (352)392-2351 | > | Fax:(352)392-3308 | > @-------------------------@ From sdlime at mninter.net Wed Aug 2 16:32:30 2000 From: sdlime at mninter.net (Stephen Lime) Date: Wed, 2 Aug 2000 18:32:30 -0500 Subject: users creating data Message-ID: <000701bffcd9$eddd0150$c238b2d0@bob> Just to clear things up. MapServer (the CGI executable) can't write shapefiles and won't be able to do that. Too hard to do in general fashion. However, MapScript CAN write shapefiles (with the help of XBase module). All you'd really need is an applet capable of creating features and a MapScript program could handle the output. MapServer or MapScript can certainly be used to provide contex (i.e. maps) for use in digitizing. Note that there are lot's of potential issues in this (topology, editing existing features, data QA, etc...). Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From johnh at erin.gov.au Wed Aug 2 17:54:22 2000 From: johnh at erin.gov.au (John Hockaday) Date: Thu, 3 Aug 2000 10:54:22 +1000 (EST) Subject: Funny units for jpeg images Message-ID: <200008030054.KAA02069@eos.erin.gov.au> Hi, This is probably a summary for this subject as I can now successfully view greyscale jpegs and 8-bit colour tiffs using mapserv. First of all thanks very much to Jason Maestri and Chris Stuber for pointing me in the right direction to find the error. Also thanks to Mel VanderWal for pointing me to Todd Poston's arcview extension to generate world files and finally to Steve and Aaron for considering the future code aspects. The problem was that I used XV to convert a colour jpeg to a greyscale jpeg. XV resized the image to suit my screen size and therefore its pixel georeferencing was lost. I solved this problem by loading the jpeg image into ImageMagicks "display" X11 presentation tool and then saving it as a greyscale jpeg. ImageMagick did not resize the image to fit the screen and therefore the pixel georeferencing was maintained. The second problem was that my "imagine" tiff was 24-bit and did not have a georeferenced world file. The georeferencing was in the header file of the original tiff file. Again I used ImageMagick's "display" tool to "quantize" the tiff file into a 256 colour (8-bit) image. The next problem was the tiff world file. Todd Poston's Arcview extension allowed me to generate this file and I was finally able to view the colour tiff with mapserv. I greatly appreciate each persons help. It shows that the combination of each little suggestion can solve a problem. This is the most responsive list on which I have been subscribed and I can see that it is beneficial to many other people. Keep up the good work. Thanks again for all your help. John Hockaday > > From: "Stephen Lime" > > I sort of agree. The ESRI naming standards are stupid with respect to > world files. The .wld is now the ESRI standard and I see no real reason > to support the old stuff. (.jpw and .tfw are already supported) We'll likely > be moving from the current raster engine to a new one that supports a > much wider variety of formats soon. > > Supporting the .shp extension is a good idea. The non-extension filename > is a hold over from the shapelib library for reading shapefiles. Since a shapefile > isn't a single file I suppose it made sense conceptually at the time. Send the > diffs if you've got 'em. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> 08/01/00 03:41AM >>> > > Steve, other developers: > > This brings up one of those little things that I've wanted to fix but > haven't gotten around to. Mapserver really needs to follow the rules for > reading world files. The rules are: if the extention has three > characters, the world file will be the first and last character of the > extention followed by a 'w'. For example: image.tif -> image.tfw, > image.gif -> image.gfw, image.jpg -> image.jgw. > > If the extention has more than three characters, the 'w' is appended to > the complete extention: image.tiff -> image.tiffw, image.jpeg -> > image.jpegw. > > If the extention is missing, the 'w' is added to the filename: image -> > imagew. > > I think many of our new users problems stem from the non-standard file > names Mapserver uses. > > Another place where a change could be made is in the mapfile, when you > are specifying the data for a shapefile base feature theme, the mapserver > will not allow you to put the .shp extention on this file. All other data > types allow the extention, except for the .shp. This is very easy to > compensate for, so I wonder if there is a reason for this being the way it > is... If not, I will submit diffs to implement this change. > > -Aaron > > > On Tue, 1 Aug 2000, Mel VanderWal wrote: > > > Hey all. > > > > If you need to create world files in ArcView, Todd Poston recently posted a good > > extension (and the source code) on the ESRI ArcScripts site > > (http://gis.esri.com/arcscripts/details.cfm?CFGRIDKEY=B718A422-5E5A-11D4-9432005 08B0CB419). > > > > I only tested it a little, but Todd knows what he's doing, so it's probably solid. > > For MapServer users, use the .apr instead of the extension, so you can change one > > line in the script QDIR.View.WriteWorldFile.Click. Then georeference your images > > in that apr. > > > > Change: > > theFN = > > FileName.Merge(theISrc.GetSrcName.GetFileName.ReturnDir.AsString,theISrc.GetSrcN ame.GetFileName.GetBaseName > > + "w") > > To: > > theFN = theISrc.GetSrcName.GetFileName > > theFN.SetExtension("tfw") > > > > or else the world file will get a .tifw extension instead of a .tfw extension, > > which is OK in ArcView, but MapServer won't recognize it. One ArcView world file > > convention is simply to add a "w" to the image's file extension, so that's the way > > many world files are named. It's probably minor for most MapServer users, but I > > spent awhile figuring out why an image wouldn't georeference. (Steve: Maybe to > > make using the same data a little easier... - wishlist item?) > > > > > > imap at chesapeake.net wrote: > > > > > Hello, This isnt exactly right... THe worldfile X/Y is the upper left > > > pixel, not bottom right. I have found that matching projections is not an > > > exact science. Sometime you need to adjust the X/Y and map units to stretch > > > the raster to get a tight fit. > > > > > > I have done a couple of these.. You have to begin with PROJ and knowing > > > the precise projection and central meridian. That should get it close, > > > then you can tweak the map units in the X/Y to shore up the edges. > > > > > > Also, keep in mind that rasters may never match their vector counterparts, > > > due to basemap mismatch and thinning etc. > > > > > > It very well could be, that your JPG is a different projection??? > > > > > > I have several *very* nice raster maps here (Mountain High Maps) that I am > > > unable > > > to match the base projection with anything in PROJ. Since there is no > > > metadata > > > for the images, it requires much guesswork. > > > > > > Regards, > > > > > > Chris Stuber (mapsurfer) > > > Silicon Mapping Solutions, Inc > > > > > > Jason Maestri wrote: > > > > > > > > John, > > > > > > > > I am not sure why your data don't line up. The world file is okay, the only > > > > coordinates that are specified in the esri type world > > > > files are the X and Y of the bottom right corner. They seem to be really > > > > close to what you think they should be, so I'd imagine > > > > that the world file is not your problem. Mapserver doen't care what > > > > projection your data are in, so there isn't any place to > > > > specify projections. I'd use arcview or grass or something to make sure they > > > > really do line up, and further explore the problem. > > > > > > > > --Jason > > > > > > > > John Hockaday wrote: > > > > > > > > > Hi, > > > > > > > > > > I am trying to get a jpeg to load as a background image with vector > > > > > data on top of it. Both are in geographical coodinates however, when I > > > > > load one on top of the other they seem to be in different projections. > > > > > > > > > > The world file for the jpeg looks like this: > > > > > > > > > > ------------------------ > > > > > 0.000450 > > > > > 0 > > > > > 0 > > > > > -0.000450 > > > > > 150.000914 > > > > > -33.998391 > > > > > ------------------------ > > > > > > > > > > The image is supposed to be from TL(150, -34) to BR(151.5, -35). That > > > > > is 1.5 degrees by 1 degree with the top left corner at 150 degrees long > > > > > and -34 degrees lat. > > > > > > > > > > Am I missing out on specifying a decimal degrees unit for my layers in > > > > > the map file? The map file is attached. > > > > > > > > > > I would be greatfull for any information if someone else has used > > > > > georeferenced jpegs and vector shapefiles in a geographic coordinate > > > > > system. > > > > > > > > > > Thanks in advance. > > > > > > > > > > John Hockaday > > > > > > > > > > ------------------------------------------------------------------------ > > > > > # > > > > > # Start of map file > > > > > # > > > > > NAME DEMO > > > > > STATUS ON > > > > > SIZE 600 600 > > > > > SHADESET /opt/contrib/src/ms_3.3.010/symbols/shade.sym > > > > > MARKERSET /opt/contrib/src/ms_3.3.010/symbols/marker.sym > > > > > LINESET /opt/contrib/src/ms_3.3.010/symbols/line.sym > > > > > EXTENT 149 -35 152 -32 > > > > > UNITS dd > > > > > SHAPEPATH "/info/cgi-data/atlas/fornet/" > > > > > IMAGECOLOR 255 255 255 > > > > > > > > > > #LABELOVERLAP FALSE > > > > > > > > > > # > > > > > # Start of web interface definition > > > > > # > > > > > WEB > > > > > #HEADER demo_header.html > > > > > TEMPLATE demo.html > > > > > #MINSCALE 1000 > > > > > #MAXSCALE 1550000 > > > > > END > > > > > > > > > > # > > > > > # Start of reference map > > > > > # > > > > > #REFERENCE > > > > > #IMAGE graphics/reference_base.gif > > > > > #EXTENT 481093.000000 4969319.036682 502271.000000 4997508.3073184 > > > > > #STATUS ON > > > > > #COLOR -1 -1 -1 > > > > > #OUTLINECOLOR 255 0 0 > > > > > #END > > > > > > > > > > # > > > > > # Start of legend > > > > > # > > > > > LEGEND > > > > > KEYSIZE 18 12 > > > > > LABEL > > > > > TYPE BITMAP > > > > > SIZE MEDIUM > > > > > COLOR 0 0 89 > > > > > END > > > > > STATUS ON > > > > > END > > > > > > > > > > # > > > > > # Start of scalebar > > > > > # > > > > > SCALEBAR > > > > > IMAGECOLOR 255 255 255 > > > > > LABEL > > > > > COLOR 0 0 0 > > > > > SIZE SMALL > > > > > END > > > > > SIZE 350 5 > > > > > COLOR 255 255 255 > > > > > BACKGROUNDCOLOR 0 0 0 > > > > > OUTLINECOLOR 0 0 0 > > > > > UNITS kilometers > > > > > INTERVALS 5 > > > > > STATUS ON > > > > > END > > > > > > > > > > # > > > > > # Start of layer definitions > > > > > # > > > > > > > > > > LAYER > > > > > NAME coast > > > > > TYPE POLYGON > > > > > STATUS DEFAULT > > > > > DATA coast > > > > > CLASS > > > > > SYMBOL 0 > > > > > OUTLINECOLOR 0 0 0 > > > > > COLOR 248 248 95 > > > > > END > > > > > END > > > > > > > > > > LAYER > > > > > NAME si5609g > > > > > TYPE RASTER > > > > > STATUS ON > > > > > DATA si5609g.jpg > > > > > OFFSITE 0 > > > > > END > > > > > > > > > > LAYER > > > > > NAME cocos > > > > > TYPE RASTER > > > > > STATUS ON > > > > > DATA cocos.tif > > > > > OFFSITE 0 > > > > > END > > > > > > > > > > LAYER > > > > > NAME soils > > > > > TYPE POLYGON > > > > > STATUS ON > > > > > DATA soils > > > > > TOLERANCE 3 > > > > > > > > > > CLASSITEM "symbol" > > > > > CLASS > > > > > NAME "Classification by Symbol" > > > > > EXPRESSION "7" > > > > > COLOR 204 096 085 > > > > > BACKGROUNDCOLOR 32 201 201 > > > > > OUTLINECOLOR 0 0 0 > > > > > END > > > > > CLASS > > > > > EXPRESSION "27" > > > > > COLOR 255 255 000 > > > > > OUTLINECOLOR 0 0 0 > > > > > END > > > > > CLASS > > > > > EXPRESSION "33" > > > > > COLOR 204 191 085 > > > > > OUTLINECOLOR 0 0 0 > > > > > END > > > > > CLASS > > > > > EXPRESSION "37" > > > > > COLOR 234 223 085 > > > > > OUTLINECOLOR 0 0 0 > > > > > END > > > > > CLASS > > > > > EXPRESSION "52" > > > > > COLOR 204 223 170 > > > > > OUTLINECOLOR 0 0 0 > > > > > END > > > > > CLASS > > > > > EXPRESSION "62" > > > > > COLOR 204 159 085 > > > > > OUTLINECOLOR 0 0 0 > > > > > END > > > > > CLASS > > > > > EXPRESSION "98" > > > > > COLOR 255 255 170 > > > > > OUTLINECOLOR 0 0 0 > > > > > END > > > > > CLASS > > > > > EXPRESSION "146" > > > > > COLOR 153 159 085 > > > > > OUTLINECOLOR 0 0 0 > > > > > END > > > > > CLASS > > > > > EXPRESSION "158" > > > > > COLOR 204 159 085 > > > > > OUTLINECOLOR 0 0 0 > > > > > END > > > > > CLASS > > > > > EXPRESSION "177" > > > > > COLOR 153 064 000 > > > > > OUTLINECOLOR 0 0 0 > > > > > END > > > > > CLASS > > > > > EXPRESSION "200" > > > > > COLOR 153 128 000 > > > > > OUTLINECOLOR 0 0 0 > > > > > END > > > > > CLASS > > > > > EXPRESSION "202" > > > > > COLOR 102 159 170 > > > > > OUTLINECOLOR 0 0 0 > > > > > END > > > > > CLASS > > > > > EXPRESSION "212" > > > > > COLOR 153 128 000 > > > > > OUTLINECOLOR 0 0 0 > > > > > END > > > > > CLASS > > > > > EXPRESSION "216" > > > > > COLOR 153 159 000 > > > > > OUTLINECOLOR 0 0 0 > > > > > END > > > > > > > > > > #QUERYITEM symbol > > > > > QUERY > > > > > #EXPRESSION "216" > > > > > TEMPLATE demo.html > > > > > #JOIN "data/lakejoin.dbf" islake "type" > > > > > END > > > > > #QUERY > > > > > #EXPRESSION "^-" > > > > > #TEMPLATE land.html > > > > > #JOIN "data/lakejoin.dbf" islake "type" > > > > > #END > > > > > END # Layer > > > > > > > > > > LAYER > > > > > NAME rne12030 > > > > > TYPE POLYGON > > > > > STATUS ON > > > > > DATA rne12030 > > > > > TOLERANCE 5 > > > > > > > > > > CLASS > > > > > NAME "rne12030" > > > > > COLOR 49 117 185 > > > > > END > > > > > > > > > > QUERY > > > > > TEMPLATE /info/cgi-data/atlas/fornet/rne12030.html > > > > > END > > > > > END # Layer > > > > > > > > > > LAYER > > > > > NAME rail > > > > > TYPE LINE > > > > > STATUS ON > > > > > DATA rail > > > > > SYMBOLSCALE 4 > > > > > CLASS > > > > > NAME "rail" > > > > > COLOR 212 212 212 > > > > > SYMBOL 13 > > > > > SIZE 2 > > > > > MAXSIZE 4 > > > > > END > > > > > > > > > > QUERY > > > > > TEMPLATE /info/cgi-data/atlas/fornet/rail.html > > > > > END > > > > > END # Layer > > > > > > > > > > #LAYER > > > > > # NAME primary_roads > > > > > # TYPE LINE > > > > > # STATUS OFF > > > > > # DATA primary > > > > > # SYMBOLSCALE 24000 > > > > > # > > > > > # CLASS > > > > > # NAME "Primary Roads" > > > > > # COLOR 128 128 128 > > > > > # SYMBOL 13 > > > > > # SIZE 3 > > > > > # MAXSIZE 5 > > > > > # END > > > > > #END # Layer > > > > > > > > > > #LAYER > > > > > # NAME runways > > > > > # TYPE LINE > > > > > # STATUS OFF > > > > > # DATA runways > > > > > # > > > > > # CLASS > > > > > # COLOR 30 94 30 > > > > > # NAME "Airport Runways" > > > > > # END > > > > > #END # Layer > > > > > > > > > > LAYER > > > > > NAME "points" > > > > > TYPE ANNOTATION > > > > > STATUS ON > > > > > MAXSCALE 6555555 > > > > > DATA "points" > > > > > TOLERANCE 10 > > > > > > > > > > LABELITEM "Place_name" > > > > > > > > > > CLASS > > > > > SIZE 8 > > > > > COLOR 255 0 0 > > > > > SYMBOL 6 > > > > > LABEL > > > > > BACKGROUNDCOLOR 200 255 255 > > > > > COLOR 30 94 94 > > > > > TYPE BITMAP > > > > > #JUSTIFY CENTER > > > > > SIZE GIANT > > > > > POSITION AUTO > > > > > WRAP " " > > > > > END # Label > > > > > END # Class > > > > > > > > > > QUERY > > > > > TEMPLATE /info/cgi-data/atlas/fornet/points.html > > > > > END # Query > > > > > END # Layer > > > > > > > > > > END # Map File > > > > -- > > Mel VanderWal > > GIS Programmer / Manager > > GAIA Consultants Inc. > > Suite 306, 822-11th Avenue SW > > Calgary, Alberta > > Canada > > T2R 0E5 > > Phone: (403) 571-7216 > > Fax: (403) 571-7211 > > www.gaiaenv.com > > vanderwalm at gaiaenv.com > > > > > From tim at activeweb.co.za Wed Aug 2 18:30:12 2000 From: tim at activeweb.co.za (Tim and Marcelle Sutton) Date: Thu, 3 Aug 2000 03:30:12 +0200 Subject: Thanks Message-ID: <00080303321403.17083@tim.timhome> Just a quick note to everyone how dropped hints and took time out of their day to help me - I managed to get my data to display correctly at last. Now I will start exploring what I can do with php and Mapserver. Regards ------------------------------------- Tim Sutton tim at activeweb.co.za ICQ: 6712273 Did you hear that there's a group of South American Indians that worship the number zero? Is nothing sacred? ------------------------------------- From pgallen at randomlogic.com Thu Aug 3 01:26:29 2000 From: pgallen at randomlogic.com (Paul G. Allen) Date: Thu, 03 Aug 2000 01:26:29 -0700 Subject: users creating data References: <000701bffcd9$eddd0150$c238b2d0@bob> Message-ID: <39892CB5.F152010F@randomlogic.com> I am using DB2 for handling my data outside of that which is in the shapefiles. I am just learning DB2 and creating my database (it's created for the most part, but I need to import all my data into it). Then I'll have to learn the Perl DBD-DB2 module, etc. so I can access the data. I noticed when reading the DB2 documentation, there is a GIS extension available. When I saw this, I thought "Wouldn't it be great if MapServer and/or MapScript could handle interaction with a DB2 GIS database directly?" Maybe it can, maybe it can't, maybe it will, maybe it won't, but it is something I thought I'd pose on the list. PGA From kafka at email.cz Thu Aug 3 01:51:28 2000 From: kafka at email.cz (Stepan Kafka) Date: Thu, 3 Aug 2000 10:51:28 +0200 Subject: non case sensitive search In-Reply-To: <3988547D.8BCFB565@here.is> Message-ID: <000701bffd28$0322ba70$fb01a8c0@gis2.oku-kh.cz> Use the syntax "(R|r)i" . (Somebody suggested itformerly.) 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 Ma > Odesl?no: 2. srpna 2000 19:04 > Komu: mapserver-users at lists.gis.umn.edu > P?edm?t: non case sensitive search > > > Dear All, > > Trying to search via form like this: > <... > > > > > but in the shape file the names of the cities starts with capital letter > > Example: > > Madrid > Turin > Paris > Riga > > and if you search for "ri" - only first 3 will be listed, if you search > for "Ri" only the last will be listed. My question is: How to perform > search without matching the case? > > -- > Ma > > > > > From aborruso at spaziogis.it Thu Aug 3 02:40:52 2000 From: aborruso at spaziogis.it (aborruso at spaziogis.it) Date: Thu, 3 Aug 2000 11:40:52 +0200 Subject: Reload button Message-ID: Dear user, I'm developing a web page with mapserver (http://mapserver.spaziogis.it/cgi-bin/mapserv.exe?map=d%3A%5Clotus%5Cdomino%5Cdata%5Cdomino%5Cspaziogisit%5Cmapserver%5Ccartsic%5Cmap%5Cinsieme.map&imgext=13.305153+38.077841+13.407837+38.180401&imgxy=150+150&zoomsize=2&layer=Ristoranti_e_Trattorie&zoomdir -1&img.x=152&img.y=161) but I have a problem: if I put in this page a reload button (more exactly an Imagefield with this syntax ) it makes good its work, but if it is checked zoom botton (in example) the map is reloaded and also zoomed. I would like only to reload map to show (or not show) some layers. How can I do it? Thank you, --------------------------------------------- Andrea Borruso From kafka at email.cz Thu Aug 3 04:02:11 2000 From: kafka at email.cz (Stepan Kafka) Date: Thu, 3 Aug 2000 13:02:11 +0200 Subject: Reload button In-Reply-To: Message-ID: <000f01bffd3a$45fafb70$fb01a8c0@gis2.oku-kh.cz> You can use javascript code in the form (the simplest): But this change the focus from "ZoomIn" tool to "Pan" tool during reload. Please, try also this code (you must have defined mapext in the page) This wouldn't change the tool during reload. This also doesn't solve the query/browse changing mode. The better is put javascript scripts in the head fo the document. 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 > aborruso at spaziogis.it > Odesl?no: 3. srpna 2000 11:41 > Komu: mapserver-users at lists.gis.umn.edu > P?edm?t: Reload button > > > Dear user, > I'm developing a web page with mapserver > (http://mapserver.spaziogis.it/cgi-bin/mapserv.exe?map=d%3A%5Clotu > s%5Cdomino%5Cdata%5Cdomino%5Cspaziogisit%5Cmapserver%5Ccartsic%5Cm > ap%5Cinsieme.map&imgext=13.305153+38.077841+13.407837+38.180401&im > gxy=150+150&zoomsize=2&layer=Ristoranti_e_Trattorie&zoomdir > > -1&img.x=152&img.y=161) > but I have a problem: if I put in this page a reload button (more exactly > an Imagefield with this syntax ="images/icon_redraw.gif" width="19" height="19" name=redraw border=0>) it > makes good its work, but if it is checked zoom botton (in example) the map > is reloaded and also zoomed. I would like only to reload map to show (or > not show) some layers. How can I do it? > Thank you, > > > > > > > > > --------------------------------------------- > Andrea Borruso > > > From steve.lime at dnr.state.mn.us Thu Aug 3 07:25:19 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 03 Aug 2000 09:25:19 -0500 Subject: users creating data Message-ID: It won't, not for awhile anyway. Unless of course your using SDE to store your data. One could always write it themselves.... ;-> s. Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Paul G. Allen" 08/03/00 03:26AM >>> I am using DB2 for handling my data outside of that which is in the shapefiles. I am just learning DB2 and creating my database (it's created for the most part, but I need to import all my data into it). Then I'll have to learn the Perl DBD-DB2 module, etc. so I can access the data. I noticed when reading the DB2 documentation, there is a GIS extension available. When I saw this, I thought "Wouldn't it be great if MapServer and/or MapScript could handle interaction with a DB2 GIS database directly?" Maybe it can, maybe it can't, maybe it will, maybe it won't, but it is something I thought I'd pose on the list. PGA From steve.lime at dnr.state.mn.us Thu Aug 3 08:02:32 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 03 Aug 2000 10:02:32 -0500 Subject: Label problems! Urgent Message-ID: You might try using a query map with TYPE SELECTED. That'll draw only the selected city and label. There are other sneaky ways of doing it if that's not exactly what you want. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 08/02/00 10:46AM >>> Dear users, is it possible to put a label only in the object that I have searched? In example I have a city layer, every city has a point symbol, and every symbol is painted in the map: I would like to put a label only in the city that I have searched by a form, and that I see in the center of teh map. Thank you, Andrea From rravi at gis.umn.edu Thu Aug 3 13:44:36 2000 From: rravi at gis.umn.edu (Ravi Rajamani) Date: Thu, 3 Aug 2000 15:44:36 -0500 Subject: $mapscript::ms_error->{message} In-Reply-To: Message-ID: Hi Steve,All It may not be too late to ask this: What does $mapscript::ms_error->{message} tell us? for example when it outputs (0):(9) , what does it signify? Ravi Ravi Rajamani GIS Remote Sensing Lab Dept of Forest Resources University of Minnesota From aborruso at spaziogis.it Fri Aug 4 08:57:42 2000 From: aborruso at spaziogis.it (aborruso at spaziogis.it) Date: Fri, 4 Aug 2000 17:57:42 +0200 Subject: Radio button! Message-ID: Dear users, In my mapserver interface (http://mapserver.spaziogis.it/cgi-bin/mapserv.exe?map=d:%5Clotus%5Cdomino%5Cdata%5Cdomino%5Cspaziogisit%5Cmapserver%5Ccartsic%5Cmap%5Cinsieme.map), I have three radio button, zoomin, zoomout and pan, and a checkbox (info, query map), but I would like tu use info checkbox like a radiobotton, in other worlds I would like that when I check info radiobotton the other three bottons should become deselected. This is also to put in a wish list, because it's logical for me that an user or wish to zoomin or to zoomout or to pan or to have an info, and it isn't user friendly must remember to uncheck info checkbox before zoomin or paning in the map. How can I do to obtain this feature (if is it possible)? Thank you, Andrea From syurman at mindspring.com Fri Aug 4 09:42:19 2000 From: syurman at mindspring.com (Sara Yurman) Date: Fri, 04 Aug 2000 12:42:19 -0400 Subject: Radio button! References: Message-ID: <398AF26B.4C837502@mindspring.com> Hi Andrea, I copied radio buttons for zoom in, zoom out and pan from the demo. They look like this in my template file (*.html): Pan
Zoom In
Zoom Out Hope that helps. Sara aborruso at spaziogis.it wrote: > I have three radio button, zoomin, zoomout and pan, and a checkbox (info, > query map), but I would like tu use info checkbox like a radiobotton, in > other worlds I would like that when I check info radiobotton the other > three bottons should become deselected. > Andrea -- Sara Yurman Spatial Focus, Inc. syurman at spatialfocus.com Voice: 404-378-0989 Fax: 209-254-9531 -------------- next part -------------- A non-text attachment was scrubbed... Name: syurman.vcf Type: text/x-vcard Size: 326 bytes Desc: Card for Sara Yurman URL: From steve.lime at dnr.state.mn.us Fri Aug 4 09:46:33 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 04 Aug 2000 11:46:33 -0500 Subject: Radio button! Message-ID: (very attractive interface) Anyway, these aren't MapServer issues. You can achieve what you want using some javascript. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 08/04/00 10:57AM >>> Dear users, In my mapserver interface (http://mapserver.spaziogis.it/cgi-bin/mapserv.exe?map=d:%5Clotus%5Cdomino%5Cdata%5Cdomino%5Cspaziogisit%5Cmapserver%5Ccartsic%5Cmap%5Cinsieme.map), I have three radio button, zoomin, zoomout and pan, and a checkbox (info, query map), but I would like tu use info checkbox like a radiobotton, in other worlds I would like that when I check info radiobotton the other three bottons should become deselected. This is also to put in a wish list, because it's logical for me that an user or wish to zoomin or to zoomout or to pan or to have an info, and it isn't user friendly must remember to uncheck info checkbox before zoomin or paning in the map. How can I do to obtain this feature (if is it possible)? Thank you, Andrea From mjury at impsat1.com Fri Aug 4 11:25:35 2000 From: mjury at impsat1.com (marcelo jury) Date: Fri, 4 Aug 2000 15:25:35 -0300 Subject: mapimage applet Message-ID: <011101bffe41$62962680$b91c29c8@marcelo> Hi ALL, with the intention of make mapimage applet loads a new image, I tryied to use the " newMap(URLParam) " mapimage applet's method, but the first problem comes out trying to figure out how the URLParam should be set. Since it has to be just a url to a pic, I guess "URLParam" could be a URL kind of template instead of the HTML type, but I dont know how it works: /scripts/mapserver.exe?map=myMap.map?template=[img] /scripts/mapserver.exe?map=myMap.map?template="/scripts/mapserver.exe?map=my Map.map[img] after many attempts, the result is the same...: Content-type: text/html returnHTML(): Web application error. Malformed template name. so I run into another way: (Mode=map) but it brings nothing. >From the source code of one of the results I took the url and pasted it directly into the browser... and confirmed that the url works properly. If all this would work the idea was to move this button onclick's code to a APPLET Tag onmouseup event... but unffortunatly this event is not triggered. It should at least in IE5 as this page at MSDN confirm: http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/applet.asp Ok..thats all. THANKS A LOT FOR ANY COMMENT about this issues! -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at dnr.state.mn.us Fri Aug 4 12:24:53 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 04 Aug 2000 14:24:53 -0500 Subject: mapimage applet Message-ID: The url MUST be fully quallified, that is you need the website address before the reference to the script. http://www.dnr.state.mn.us/cgi-bin/mapserv?... The newMap method is intended for replacing the image without loading the whole page. You can actually create a single page that never refreses. This means you are NOT using templates. Rather the coordinates etc are managed on the client using javascript. MapServer is used just for images, nothing else. To make this work you need a fair amount of javascript on the client side to keep extents in order. The landview application (www.dnr.state.mn.us/mapping/landview) is an example app that does just this. Javascript source can be made available to those that are interested. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "marcelo jury" 08/04/00 01:25PM >>> Hi ALL, with the intention of make mapimage applet loads a new image, I tryied to use the " newMap(URLParam) " mapimage applet's method, but the first problem comes out trying to figure out how the URLParam should be set. Since it has to be just a url to a pic, I guess "URLParam" could be a URL kind of template instead of the HTML type, but I dont know how it works: /scripts/mapserver.exe?map=myMap.map?template=[img] /scripts/mapserver.exe?map=myMap.map?template="/scripts/mapserver.exe?map=my Map.map[img] after many attempts, the result is the same...: Content-type: text/html returnHTML(): Web application error. Malformed template name. so I run into another way: (Mode=map) but it brings nothing. >From the source code of one of the results I took the url and pasted it directly into the browser... and confirmed that the url works properly. If all this would work the idea was to move this button onclick's code to a APPLET Tag onmouseup event... but unffortunatly this event is not triggered. It should at least in IE5 as this page at MSDN confirm: http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/applet.asp Ok..thats all. THANKS A LOT FOR ANY COMMENT about this issues! From steve.lime at dnr.state.mn.us Fri Aug 4 13:47:00 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 04 Aug 2000 15:47:00 -0500 Subject: $mapscript::ms_error->{message} Message-ID: It's a general error code. The descriptive strings are can be found at the top of maperror.c. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Ravi Rajamani 08/03/00 03:44PM >>> Hi Steve,All It may not be too late to ask this: What does $mapscript::ms_error->{message} tell us? for example when it outputs (0):(9) , what does it signify? Ravi Ravi Rajamani GIS Remote Sensing Lab Dept of Forest Resources University of Minnesota From cameron at socialchange.net.au Sat Aug 5 20:58:43 2000 From: cameron at socialchange.net.au (Cameron Shorter) Date: Sun, 06 Aug 2000 13:58:43 +1000 Subject: Using geographic data in the southern hemisphere References: Message-ID: <398CE273.CAA055BC@socialchange.net.au> Yes, we also have mapserv running in the south. And we use projections almost successfully. (Trying to convert geographic->geographic causes a core dump as noted in a previous email). Sorry, I missed the original email so cannot answer specifics, but make sure you have PROJECTION set in both your layers and MAP sections of your mapfile. Anton Coetzee wrote: > > Hi > > I'm using mapserver (3.3.010) on Southern Hemisphere shapefiles (Gauteng > area) with no problem. I'm *not* using proj at all, so maybe that is an > issue? > > As an example, here's the extent from one of my maps: > > units dd > extent 28.05 -26.15 28.12 -26.19 > > So I can answer #1 - yes, mapserver *does* work OK with Southern Hemisphere > data. > > Sorry I can't be of help with the other stuff. > > Anton Coetzee > > On Tue, 1 Aug 2000, Tim and Marcelle Sutton wrote: > > > > The data is in the southern hemisphere (ie. north/south coordinates are > > negative > > numbers in decimal degrees). > > > 1) Does mapserver support southern hemispher geographic data? -- Cameron Shorter Web Mapping Manager Social Change Online 6A Nelson Street Tel: +61 (0) 2 9557 6500 Annandale NSW 2038 Fax: +61 (0) 2 9519 8940 Sydney, Australia http://online.socialchange.net.au From mutenda at tkl.iis.u-tokyo.ac.jp Tue Aug 8 01:55:46 2000 From: mutenda at tkl.iis.u-tokyo.ac.jp (Lawrence Mutenda) Date: Tue, 08 Aug 2000 17:55:46 +0900 Subject: Displaying Shape files Message-ID: <398FCB12.4C82FE85@tkl.iis.u-tokyo.ac.jp> Hi, I am new to mapserver. Here is my question. I would like to display a shape file on a web browser. How do I do. I tried to define a map file by copying a modifying the demo map file. But I cant get the shape file to display on a browser. Can somebody show me how to write a simple map file that simply displays a shape file. Thanks in advance Lawrence University of Tokyo From cameron at socialchange.net.au Tue Aug 8 06:28:34 2000 From: cameron at socialchange.net.au (Cameron Shorter) Date: Tue, 08 Aug 2000 23:28:34 +1000 Subject: Problems with queries and toleranceunits Message-ID: <39900B02.EB457E5D@socialchange.net.au> Hi, I'm having problems querying a points file which seem to be related to "tolerance" flag. Firstly, When my mapfile says "TOLERANCEUNITS pixels" I get the following error: getSymbol(): Incorrect symbol. (pixels):(245) Either there is a bug here, or the doco needs updating, see below: toleranceunits [pixels|feet|inches|kilometers|meters|miles|dd]: Units of the tolerance value. Default is pixels. So if I specify any other kind of unit, a multiple query returns all the points in my mapfile. I'm using mapserv 3.3.010 on redhat. -- Cameron Shorter Web Mapping Manager Social Change Online 6A Nelson Street Tel: +61 (0) 2 9557 6500 Annandale NSW 2038 Fax: +61 (0) 2 9519 8940 Sydney, Australia http://online.socialchange.net.au From steve.lime at dnr.state.mn.us Tue Aug 8 10:14:15 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 08 Aug 2000 12:14:15 -0500 Subject: Problems with queries and toleranceunits Message-ID: It's a bug. PIXELS is not recognized as a keyword. Probably was overlooked since PIXELS is the default and setting it is redundant. Will fix... Workaround is not to add that line. As for behavior with other units I'd have to see URLs showing how they are being used and with what buffer values. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Cameron Shorter 08/08/00 08:28AM >>> Hi, I'm having problems querying a points file which seem to be related to "tolerance" flag. Firstly, When my mapfile says "TOLERANCEUNITS pixels" I get the following error: getSymbol(): Incorrect symbol. (pixels):(245) Either there is a bug here, or the doco needs updating, see below: toleranceunits [pixels|feet|inches|kilometers|meters|miles|dd]: Units of the tolerance value. Default is pixels. So if I specify any other kind of unit, a multiple query returns all the points in my mapfile. I'm using mapserv 3.3.010 on redhat. -- Cameron Shorter Web Mapping Manager Social Change Online 6A Nelson Street Tel: +61 (0) 2 9557 6500 Annandale NSW 2038 Fax: +61 (0) 2 9519 8940 Sydney, Australia http://online.socialchange.net.au From cameron at socialchange.net.au Tue Aug 8 14:09:03 2000 From: cameron at socialchange.net.au (Cameron Shorter) Date: Wed, 09 Aug 2000 07:09:03 +1000 Subject: Problems with queries and toleranceunits References: Message-ID: <399076EF.2D76014F@socialchange.net.au> Have investigated pixel problems further. Not sure about other units. It seems that that the point query is not acurate in selecting its points. See: http://linuxdev.socialchange.net.au/webmap/museum/maps/demo_init.html the mapfile is linked from there. Try doing mutiple selections at various points on the map and you will notice that in some places you will many responses where you'd only expect one, and sometimes you will get none when you expect many. Stephen Lime wrote: > > It's a bug. PIXELS is not recognized as a keyword. Probably was overlooked > since PIXELS is the default and setting it is redundant. Will fix... Workaround > is not to add that line. > > As for behavior with other units I'd have to see URLs showing how they are > being used and with what buffer values. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Cameron Shorter 08/08/00 08:28AM >>> > Hi, > I'm having problems querying a points file which seem to be related to > "tolerance" flag. > > Firstly, > When my mapfile says "TOLERANCEUNITS pixels" I get the following error: > getSymbol(): Incorrect symbol. (pixels):(245) > > Either there is a bug here, or the doco needs updating, see below: > toleranceunits [pixels|feet|inches|kilometers|meters|miles|dd]: Units of > the tolerance value. Default is pixels. > > So if I specify any other kind of unit, a multiple query returns all the > points in my mapfile. > > I'm using mapserv 3.3.010 on redhat. > > -- > Cameron Shorter Web Mapping Manager > Social Change Online > 6A Nelson Street Tel: +61 (0) 2 9557 6500 > Annandale NSW 2038 Fax: +61 (0) 2 9519 8940 > Sydney, Australia http://online.socialchange.net.au -- Cameron Shorter Web Mapping Manager Social Change Online 6A Nelson Street Tel: +61 (0) 2 9557 6500 Annandale NSW 2038 Fax: +61 (0) 2 9519 8940 Sydney, Australia http://online.socialchange.net.au From suttont at cncjnk.wcape.gov.za Wed Aug 9 01:35:20 2000 From: suttont at cncjnk.wcape.gov.za (Tim Sutton) Date: Wed, 9 Aug 2000 01:35:20 -0700 Subject: Map transparency Message-ID: <000301c001dc$c092c150$30f9b80a@TimLaptop> Hi I tried to set TRANSPARENT ON in my .map file for the map object, but is just draws white. Is it possible to get the background to draw transparent? I had similar problems getting the scalebar to be transparent - how do I do it so it actually works? Many Thanks /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ TIM SUTTON - GIS TECHNICIAN Western Cape Nature Conservation Board P Bag x5014 Stellenbosch 7599 ph +27 (0)21 8891560 ph +27 (0)21 8891523 email suttont at cncjnk.wcape.gov.za \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ From suttont at cncjnk.wcape.gov.za Wed Aug 9 02:05:52 2000 From: suttont at cncjnk.wcape.gov.za (Tim Sutton) Date: Wed, 9 Aug 2000 02:05:52 -0700 Subject: RE Transparency Message-ID: <000401c001e1$04aba100$30f9b80a@TimLaptop> Please ignore my last question regarding transparency - I have worked it out Thanks /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ TIM SUTTON - GIS TECHNICIAN Western Cape Nature Conservation Board P Bag x5014 Stellenbosch 7599 ph +27 (0)21 8891560 ph +27 (0)21 8891523 email suttont at cncjnk.wcape.gov.za \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ From marin at here.is Wed Aug 9 03:21:40 2000 From: marin at here.is (Ma) Date: Wed, 09 Aug 2000 10:21:40 +0000 Subject: non case sensitive search References: <000701bffd28$0322ba70$fb01a8c0@gis2.oku-kh.cz> Message-ID: <399130B4.629EFDF4@here.is> This syntax is not what I want and I don't think it is useful. Is there other way to perform search without matching the case? --- Ma Stepan Kafka wrote: > Use the syntax "(R|r)i" . (Somebody suggested itformerly.) > > 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 Ma > > Odesl?no: 2. srpna 2000 19:04 > > Komu: mapserver-users at lists.gis.umn.edu > > P?edm?t: non case sensitive search > > > > > > Dear All, > > > > Trying to search via form like this: > > <... > > > > > > > > > > > but in the shape file the names of the cities starts with capital letter > > > > Example: > > > > Madrid > > Turin > > Paris > > Riga > > > > and if you search for "ri" - only first 3 will be listed, if you search > > for "Ri" only the last will be listed. My question is: How to perform > > search without matching the case? > > > > -- > > Ma > > From kenboss at dilbert.dnr.state.mn.us Wed Aug 9 06:55:17 2000 From: kenboss at dilbert.dnr.state.mn.us (kenboss) Date: Wed, 9 Aug 2000 08:55:17 -0500 (CDT) Subject: non case sensitive search Message-ID: <200008091355.IAA08203@philbert.dnr.state.mn.us> Since you are taking your input from an html form, you don't really have any control over what people might type in there. So your best bet is probably to use a bit of javascript to massage your users' input to a format that matches what's in the shapefile before the form is submitted. --Ken > Date: Wed, 09 Aug 2000 10:21:40 +0000 > From: Ma > X-Accept-Language: Ahora vengo mama chola mama chola > MIME-Version: 1.0 > To: "mapserver-users at lists.gis.umn.edu" > Subject: Re: non case sensitive search > Content-Transfer-Encoding: 8bit > > This syntax is not what I want and I don't think it is useful. Is there other > way to perform search without matching the case? > > --- > Ma > > > Stepan Kafka wrote: > > > Use the syntax "(R|r)i" . (Somebody suggested itformerly.) > > > > 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 Ma > > > Odesl?no: 2. srpna 2000 19:04 > > > Komu: mapserver-users at lists.gis.umn.edu > > > P?edm?t: non case sensitive search > > > > > > > > > Dear All, > > > > > > Trying to search via form like this: > > > <... > > > > > > > > > > > > > > > > > but in the shape file the names of the cities starts with capital letter > > > > > > Example: > > > > > > Madrid > > > Turin > > > Paris > > > Riga > > > > > > and if you search for "ri" - only first 3 will be listed, if you search > > > for "Ri" only the last will be listed. My question is: How to perform > > > search without matching the case? > > > > > > -- > > > Ma > > > > From steve.lime at dnr.state.mn.us Wed Aug 9 08:24:16 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 09 Aug 2000 10:24:16 -0500 Subject: non case sensitive search Message-ID: Not with mapserver directly. The lack of functionality on the attribute search is intentional at this point. There are much better tools available for that type of processing that can easily be integrated with the mapserver. Preprocessing the data before sending it is another option. Who knows what someone might type so some scrubbing of the search term is ALWAYS a good idea. Javascript can be used to turn a users string into a case insensitive regular expression without too much trouble. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Ma 08/09/00 05:21AM >>> This syntax is not what I want and I don't think it is useful. Is there other way to perform search without matching the case? --- Ma Stepan Kafka wrote: > Use the syntax "(R|r)i" . (Somebody suggested itformerly.) > > 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 Ma > > Odesl?no: 2. srpna 2000 19:04 > > Komu: mapserver-users at lists.gis.umn.edu > > P?edm?t: non case sensitive search > > > > > > Dear All, > > > > Trying to search via form like this: > > <... > > > > > > > > > > > but in the shape file the names of the cities starts with capital letter > > > > Example: > > > > Madrid > > Turin > > Paris > > Riga > > > > and if you search for "ri" - only first 3 will be listed, if you search > > for "Ri" only the last will be listed. My question is: How to perform > > search without matching the case? > > > > -- > > Ma > > From chetturv at sdhu.moh.gov.on.ca Thu Aug 10 08:12:15 2000 From: chetturv at sdhu.moh.gov.on.ca (Vinod Chettur) Date: Thu, 10 Aug 2000 11:12:15 -0400 Subject: Integrating attribute data from relational databases with MapServ er Message-ID: Hello everyone: Just wondering about the state of things with regards to relational database integration with mapserver. I am currently invoking a bunch of stored SQL procedures to generate tabular reports of statistical computations done at the database server (NT 4.0 /SQL Server). I hope to be able to represent these statistical rates for various counties in Ontario using MapServer. Wondering if any pointers or examples are out there perhaps with the new PHP module or otherwise. Thanks in advance, Vinod Chettur Senior Systems Consultant, NHIP Canada From ender at titan.lab.csuchico.edu Thu Aug 10 01:26:57 2000 From: ender at titan.lab.csuchico.edu (ender at titan.lab.csuchico.edu) Date: Thu, 10 Aug 2000 08:26:57 +0000 (/etc/localtime) Subject: diffs for .shp Message-ID: I made a little change to mapshape.c that allows you to use: DATA whatever/shapefile.shp in the mapfile, instead of these shapes just being ignored. I find that I still do this, even though I've been using mapserver for several years now. Anyway, here's the diff file. -Aaron 1166c1166,1167 < char *dbfFilename; --- > int i; > char * dbfFilename; 1195,1197c1196,1209 < < dbfFilename = (char *)malloc(strlen(filename)+5); < sprintf(dbfFilename, "%s.dbf", filename); --- > > dbfFilename = (char*)malloc(strlen(filename)+5); > strcpy(dbfFilename, filename); > > /* clean off any extention the filename might have */ > for (i = strlen(dbfFilename) - 1; > i > 0 && dbfFilename[i] != '.' && dbfFilename[i] != '/' > && dbfFilename[i] != '\\'; > i-- ) {} > > if( dbfFilename[i] == '.' ) > dbfFilename[i] = '\0'; > > strcat(dbfFilename, ".dbf"); -------------- next part -------------- 1166c1166,1167 < char *dbfFilename; --- > int i; > char * dbfFilename; 1195,1197c1196,1209 < < dbfFilename = (char *)malloc(strlen(filename)+5); < sprintf(dbfFilename, "%s.dbf", filename); --- > > dbfFilename = (char*)malloc(strlen(filename)+5); > strcpy(dbfFilename, filename); > > /* clean off any extention the filename might have */ > for (i = strlen(dbfFilename) - 1; > i > 0 && dbfFilename[i] != '.' && dbfFilename[i] != '/' > && dbfFilename[i] != '\\'; > i-- ) {} > > if( dbfFilename[i] == '.' ) > dbfFilename[i] = '\0'; > > strcat(dbfFilename, ".dbf"); From chetturv at sdhu.moh.gov.on.ca Thu Aug 10 10:39:40 2000 From: chetturv at sdhu.moh.gov.on.ca (Vinod Chettur) Date: Thu, 10 Aug 2000 13:39:40 -0400 Subject: Integrating attribute data from relational databases with Map Server Message-ID: Hi Stephen: The rates are dynamically computed using stored procedures based on user input. So for example, death rates/1000 by counties for cancer for a given year are obtained as a result set: County 1 - 4.2/1000 County 2 - 3.0/1000 and so on. So I would like to represent these rates by county as color coded categories such as blue = >0 and <1 green = >=1 and < 5 red >=5 etc. Categories could be done in SQL itself if needed. Just wondering what my strategy will be to merge this resultset with my counties shape file on the fly. Thanks, Vinod > -----Original Message----- > From: Stephen Lime [SMTP:steve.lime at dnr.state.mn.us] > Sent: Thursday, August 10, 2000 12:00 PM > To: Vinod Chettur > Subject: Re: Integrating attribute data from relational databases > with MapServer > > Do you want to map the rates or display the rates summaries based on > a users interaction with a map. Depending on what exactly you'd like to > do there are different stratagies you can use. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Vinod Chettur 08/10/00 10:12AM >>> > Hello everyone: > Just wondering about the state of things with regards to relational > database integration with mapserver. I am currently invoking a bunch of > stored SQL procedures to generate tabular reports of statistical > computations done at the database server (NT 4.0 /SQL Server). I hope to > be > able to represent these statistical rates for various counties in Ontario > using MapServer. Wondering if any pointers or examples are out there > perhaps > with the new PHP module or otherwise. > > Thanks in advance, > Vinod Chettur > Senior Systems Consultant, NHIP > Canada > From danmo at videotron.ca Thu Aug 10 12:03:37 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Thu, 10 Aug 2000 15:03:37 -0400 Subject: Integrating attribute data from relational databases with Map Server References: Message-ID: <3992FC89.5EAD7CFD@videotron.ca> Vinod Chettur wrote: > > Hi Stephen: > The rates are dynamically computed using stored procedures based on user > input. So for example, death rates/1000 by counties for cancer for a given > year are obtained as a result set: > County 1 - 4.2/1000 > County 2 - 3.0/1000 > and so on. > > So I would like to represent these rates by county as color coded categories > such as > > blue = >0 and <1 > green = >=1 and < 5 > red >=5 etc. > Categories could be done in SQL itself if needed. Just wondering what my > strategy will be to merge this resultset with my counties shape file on the > fly. > Hi Vinod, I have implemented an application that does exactly that using PHP/MapScript, and funny enough, it maps the same type of data as you: Cancer and other disease rates and the provincial and Census Division level. Unfortunately the web site is not publicly available yet, but here is the trick that I used: 1- Do the query to the database based on user selections and get a recordset. 2- Copy county.shp and county.shx to a new unique filename (e.g. 213545232.shp). If you're on Unix then use logical links since it's faster and will save you disk space! 3- Create a new DBF file with the same temporary filename (e.g. 213545232.dbf) with 1 field only: "RATE". Then for each record in the original county.dbf file, you write the actual rate value obtained from the database to the corresponding record in the temporary dbf file. Now you've got a shapefile dataset with all the rates to add to your map. Use MapScript to add a layer to your map, set the DATA value in the layer to point to the temporary shapefile, set the classes and redraw the map. Another advantage of creating the temporary DBF file is that if the user wants to zoom in, etc. then you do not need to redo the query to the SQL database... as long as the user does not change his selections (cancer site, year, etc.) you just redraw the map using the same temporary DBF file. The overhead of creating the temp. DBF file should be minimal compared to running a query on the database every time. Before implementing that trick I had discussed with Steve the possibility to add in mapserver a type of join that would allow us to "append" the temporary DBF to the original shapefile dataset's DBF. We decided to not add that feature yet since the trick described above is quite simple and works very well. I hope that helps, -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ 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 Thu Aug 10 12:09:50 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 10 Aug 2000 14:09:50 -0500 Subject: Integrating attribute data from relational databases with MapServer Message-ID: Here are a couple of ideas using mapscript: Assuming a key between the xbase file and the database you could do the query and store all results in a hash based on the key, then you could step through the shapefile pulling the classification value from the hash based on the current shapes key value, now draw the shape. You would probably draw ancillirary layers before and after. Another method would be to create a temp shapefile. Assuming you can produce a temporary xbase file (remember order MUST match that of the shapefile) you could pair that file with a copy of the .shp/.shx county data and draw the layer as normal. You need to put a dummy layer in the map file so it's in the right order and then edit it to match the temp data. Then a simple $map->draw() would be possible. Hard part is keeping the data in sync. You can use the sortshp utility to order the counties by some common field (i.e. county code) and then use an ORDER BY in the SQL statement. There may others but off the top of my head this is what I thought of. Both should work with fairly minimal coding. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Vinod Chettur 08/10/00 12:39PM >>> Hi Stephen: The rates are dynamically computed using stored procedures based on user input. So for example, death rates/1000 by counties for cancer for a given year are obtained as a result set: County 1 - 4.2/1000 County 2 - 3.0/1000 and so on. So I would like to represent these rates by county as color coded categories such as blue = >0 and <1 green = >=1 and < 5 red >=5 etc. Categories could be done in SQL itself if needed. Just wondering what my strategy will be to merge this resultset with my counties shape file on the fly. Thanks, Vinod > -----Original Message----- > From: Stephen Lime [SMTP:steve.lime at dnr.state.mn.us] > Sent: Thursday, August 10, 2000 12:00 PM > To: Vinod Chettur > Subject: Re: Integrating attribute data from relational databases > with MapServer > > Do you want to map the rates or display the rates summaries based on > a users interaction with a map. Depending on what exactly you'd like to > do there are different stratagies you can use. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Vinod Chettur 08/10/00 10:12AM >>> > Hello everyone: > Just wondering about the state of things with regards to relational > database integration with mapserver. I am currently invoking a bunch of > stored SQL procedures to generate tabular reports of statistical > computations done at the database server (NT 4.0 /SQL Server). I hope to > be > able to represent these statistical rates for various counties in Ontario > using MapServer. Wondering if any pointers or examples are out there > perhaps > with the new PHP module or otherwise. > > Thanks in advance, > Vinod Chettur > Senior Systems Consultant, NHIP > Canada > From sjohnston at satshot.com Fri Aug 11 12:04:35 2000 From: sjohnston at satshot.com (Shawn L Johnston) Date: Fri, 11 Aug 2000 14:04:35 -0500 Subject: MapServer Demo prob Message-ID: <003e01c003c6$fdbc5500$4ce946cf@cel466> I'm trying to run the demo on windows 2000 with IIS 5.0. When I try to initialize the mapserver I see the following message returned: msSaveImage(): Unable to access file. (c:\inetpub\wwwroot\ms_demo\DEMO966020405744.gif) Any ideas on what might need to be fixed? Many thanks, Shawn -------------- next part -------------- An HTML attachment was scrubbed... URL: From shayes at bigpond.net.au Tue Aug 15 02:16:36 2000 From: shayes at bigpond.net.au (shayes) Date: Tue, 15 Aug 2000 19:16:36 +1000 Subject: Mapserv in command line mode ? Message-ID: <002c01c00699$82e766a0$c5f98490@nsw.bigpond.net.au> Hi All, I need to save several hundred images generated by successive Mapserv queries to disk as GIFs. I'd ideally like to just call Mapserv from within a Perl script and write the output to file but I can't do this. Does anyone have any suggestions. Regards Steven Hayes From jedgar at fxp.org Tue Aug 15 04:20:51 2000 From: jedgar at fxp.org (Chris D. Faulhaber) Date: Tue, 15 Aug 2000 07:20:51 -0400 (EDT) Subject: Mapserv in command line mode ? In-Reply-To: <002c01c00699$82e766a0$c5f98490@nsw.bigpond.net.au> Message-ID: On Tue, 15 Aug 2000, shayes wrote: > Hi All, > > I need to save several hundred images generated by successive Mapserv > queries to disk as GIFs. I'd ideally like to just call Mapserv from within a > Perl script and write the output to file but I can't do this. Does anyone > have any suggestions. > Use the mapserver/perl interface (aka mapscript)? ----- Chris D. Faulhaber - jedgar at fxp.org - jedgar at FreeBSD.org -------------------------------------------------------- FreeBSD: The Power To Serve - http://www.FreeBSD.org From kenboss at dilbert.dnr.state.mn.us Tue Aug 15 06:54:00 2000 From: kenboss at dilbert.dnr.state.mn.us (kenboss) Date: Tue, 15 Aug 2000 08:54:00 -0500 (CDT) Subject: Mapserv in command line mode ? Message-ID: <200008151354.IAA01558@philbert.dnr.state.mn.us> Yes, perl mapscript is the answer you're looking for. You'll find it in your source distribution under mapscript/perl. You'll have to build it yourself; the current configure script doesn't handle mapscript yet. There are a couple of useful scripts in the examples subdirectory, documentation is online at http://mapserver.gis.umn.edu/mapscript.html, and a working app is available for inspection in the mapserver test suite at http://arachnid.dnr.state.mn.us/ms_test/. Have fun, Ken Boss > > Hi All, > > > > I need to save several hundred images generated by successive Mapserv > > queries to disk as GIFs. I'd ideally like to just call Mapserv from within a > > Perl script and write the output to file but I can't do this. Does anyone > > have any suggestions. > > > > Use the mapserver/perl interface (aka mapscript)? From chetturv at sdhu.moh.gov.on.ca Tue Aug 15 10:47:41 2000 From: chetturv at sdhu.moh.gov.on.ca (Vinod Chettur) Date: Tue, 15 Aug 2000 13:47:41 -0400 Subject: Integrating attribute data from relational databases with Map Server Message-ID: Thanks to Stephen and Daniel for their suggestions Vinod Chettur Senior Systems Consultant, NHIP From teb at mallit.fr.umn.edu Tue Aug 15 11:22:07 2000 From: teb at mallit.fr.umn.edu (teb at mallit.fr.umn.edu) Date: Tue, 15 Aug 2000 13:22:07 -0500 (CDT) Subject: offset symbols (fwd) Message-ID: <200008151822.NAA21241@mallit.fr.umn.edu> From johnh at erin.gov.au Mon Aug 14 22:55:03 2000 From: johnh at erin.gov.au (John Hockaday) Date: Tue, 15 Aug 2000 15:55:03 +1000 (EST) Subject: offset symbols Message-ID: <200008150555.PAA11567@eos.erin.gov.au> Hi, Does anyone know if symbols can be offsetted from the point location? OR Can labels use symbols for the text instead of fonts? I have to plot six different symbols, which could vary by six different colours, around some point data. The symbols need to be chosen by the "year" attribute in the attribute table and the colour needs be chosen by the "rate" attribute in the same table. I thought that I could have six layers, one for each year, and then colour the symbols by the "rate" attribute value. Each year layer could then be ploted on top of each other with the symbol at a different offset to the point for each year. Any thoughts to help me out? Thanks in advance. Johnh From christian at gottschling.net Tue Aug 15 11:50:52 2000 From: christian at gottschling.net (Christian) Date: Tue, 15 Aug 2000 20:50:52 +0200 Subject: Colorize a map Message-ID: <4.3.2.7.0.20000815204513.00aee9d0@ferklin> Hello, I have a map here and I want to colorize "counties" (german ones) depending on their values in the dbf-File. I have found out how to label them with that data, but not how to give them a color depending on the value. We have different amounts of deliveries to the "counties" and now I want to present them by different colors. Any possibility within the mapfile? One problem could be that I don't know the highest value, it can differ. Many thanks! Greetings! Christian PS: Does anybody know that the archive-server for this list only shows 2 messages for August? -- christian From shayes at bigpond.net.au Tue Aug 15 15:52:26 2000 From: shayes at bigpond.net.au (shayes) Date: Wed, 16 Aug 2000 08:52:26 +1000 Subject: Setting up MapScript on NT Message-ID: <000201c0070b$7b904120$c5f98490@nsw.bigpond.net.au> Has anyone successfully managed to make MapScript work on NT. If so could you explain how you did it ? Regards Steven Hayes From bfraser at geoanalytic.com Tue Aug 15 16:28:39 2000 From: bfraser at geoanalytic.com (Brent Fraser) Date: Tue, 15 Aug 2000 17:28:39 -0600 Subject: Setting up MapScript on NT References: <000201c0070b$7b904120$c5f98490@nsw.bigpond.net.au> Message-ID: <009a01c00710$8af9ed00$390002c0@servo> I got as far as a mapscript DLL. When attempting to use it with Perl (ActivePerl ) I get "Error: Parse Exception" from Perl. I've found no solution to the problem. I think it may be related to DLL calling convention (how the values are passed from the exe to the DLL). The DLL might not be using the one that the ActivePerl exe expects. The answer may be to get the NT version of Swig to produce an ActivePerl-friendly interface definition with the correct calling convention. This is just a guess. Not too much doc on extending Perl on NT using Swig... Brent Fraser bfraser at geoanalytic.com GeoAnalytic Inc. #300 , 700 - 4th Avenue SW Calgary, AB Canada T2P 3J4 Tel: (403)213-2700 Fax: (403)213-2707 www.geoanalytic.com ----- Original Message ----- From: "shayes" To: Sent: Tuesday, August 15, 2000 4:52 PM Subject: Setting up MapScript on NT > Has anyone successfully managed to make MapScript work on NT. If so could > you explain how you did it ? > > Regards > > Steven Hayes > From steve.lime at dnr.state.mn.us Wed Aug 16 15:06:12 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 16 Aug 2000 17:06:12 -0500 Subject: offset symbols Message-ID: No, symbols cannot be offset at persent although I don't see why not. I'll look into adding this. There are work arounds. You can use truetype fonts as labels right? So there's no reason you can't use font symbols (i.e. circles and other shapes) instead of text. Use the class "TEXT" parameter to map a keyboard value to a symbol. With labels you can use the normal 9 positions and can even offset futher with the OFFSET parameter. I've done this in the past and it works fine. Note that because your label is actually the symbol you can't label these symbols without another layer. Steve >>> John Hockaday 08/15/00 00:57 AM >>> Hi, Does anyone know if symbols can be offsetted from the point location? OR Can labels use symbols for the text instead of fonts? I have to plot six different symbols, which could vary by six different colours, around some point data. The symbols need to be chosen by the "year" attribute in the attribute table and the colour needs be chosen by the "rate" attribute in the same table. I thought that I could have six layers, one for each year, and then colour the symbols by the "rate" attribute value. Each year layer could then be ploted on top of each other with the symbol at a different offset to the point for each year. Any thoughts to help me out? Thanks in advance. Johnh From steve.lime at dnr.state.mn.us Thu Aug 17 08:33:29 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 17 Aug 2000 10:33:29 -0500 Subject: Colorize a map Message-ID: This is what classes are used for. You can set up expressions to classify each county according to a particular xbase attribute. You'll get better performance if you can preclassify values but it can be done on-the-fly if you have to. Here's a two class example CLASS EXPRESSION ([DELIVERIES] > 0 and [DELEVERIES] < 1.5) COLOR 255 0 0 END CLASS EXPRESSION ([DELIVERIES] > 1.5) COLOR 0 255 0 END Hope this helps... Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Christian 08/15/00 01:50PM >>> Hello, I have a map here and I want to colorize "counties" (german ones) depending on their values in the dbf-File. I have found out how to label them with that data, but not how to give them a color depending on the value. We have different amounts of deliveries to the "counties" and now I want to present them by different colors. Any possibility within the mapfile? One problem could be that I don't know the highest value, it can differ. Many thanks! Greetings! Christian PS: Does anybody know that the archive-server for this list only shows 2 messages for August? -- christian From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Thu Aug 17 10:58:02 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Thu, 17 Aug 2000 13:58:02 -0400 Subject: TrueType font support with PHP 3.0.15 on RH 6.2 ? Message-ID: <2951561DB3DDD0118FEC00805FFE98050380C13D@s5-ccr-r1> Goodday, Has any one successfully used the PHP module with FreeType support ? Mine seems to be bombing when I switch to true type fonts ...The exact same mapfile works fine with Bitmap fonts ... Do I need some special FreeType support built into PHP ? I'm just using the standard RPM's ... Here's the info on PHP/Mapscript : MapScript Version 1.0.011 (Jun 28, 2000) MapServer Version 3.3.011 (pre-release) -PROJ.4 -FreeType -TIFF -EPPL7 -JPEG Although ... This was probably a nightly build ... could that be it ? Is the latest stable release as featureful as the nightly builds/CVS ? I remember I switched to using those because of some feature I wanted ... Anyways ... Anybody have any ideas ? Thanks, From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Thu Aug 17 11:32:07 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Thu, 17 Aug 2000 14:32:07 -0400 Subject: FW: TrueType font support with PHP 3.0.15 on RH 6.2 ? Message-ID: <2951561DB3DDD0118FEC00805FFE98050380C13E@s5-ccr-r1> In further to this posting, looks like there's a sig11 from apache (Or does PHP run as a diffferent process ?) : Here is the error_log content : [Thu Aug 17 13:38:44 2000] [notice] child pid 14811 exit signal Segmentation fault (11) [Thu Aug 17 13:38:52 2000] [notice] child pid 19103 exit signal Segmentation fault (11) [Thu Aug 17 13:44:36 2000] [notice] child pid 14816 exit signal Segmentation fault (11) [Thu Aug 17 13:45:04 2000] [notice] child pid 14809 exit signal Segmentation fault (11) [Thu Aug 17 13:45:09 2000] [notice] child pid 20351 exit signal Segmentation fault (11) [Thu Aug 17 13:49:00 2000] [notice] child pid 18384 exit signal Segmentation fault (11) This bites, I really need the TTF support ! J.F. > ---------- > From: Doyon, Jean-Francois > Sent: Thursday, August 17, 2000 1:58 PM > To: mapserver-users at lists.gis.umn.edu > Subject: TrueType font support with PHP 3.0.15 on RH 6.2 ? > > Goodday, > > Has any one successfully used the PHP module with FreeType support ? > > Mine seems to be bombing when I switch to true type fonts ...The exact > same mapfile works fine with Bitmap fonts ... > > Do I need some special FreeType support built into PHP ? > > I'm just using the standard RPM's ... > > Here's the info on PHP/Mapscript : > > MapScript Version 1.0.011 (Jun 28, 2000) > MapServer Version 3.3.011 (pre-release) -PROJ.4 -FreeType -TIFF -EPPL7 > -JPEG > > Although ... This was probably a nightly build ... could that be it ? Is > the latest > stable release as featureful as the nightly builds/CVS ? I remember I > switched to > using those because of some feature I wanted ... Anyways ... > > Anybody have any ideas ? > > Thanks, > > From danmo at videotron.ca Thu Aug 17 12:27:40 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Thu, 17 Aug 2000 15:27:40 -0400 Subject: TrueType font support with PHP 3.0.15 on RH 6.2 ? References: <2951561DB3DDD0118FEC00805FFE98050380C13D@s5-ccr-r1> Message-ID: <399C3CAC.6534CAD3@videotron.ca> "Doyon, Jean-Francois" wrote: > > Goodday, > > Has any one successfully used the PHP module with FreeType support ? > > Mine seems to be bombing when I switch to true type fonts ...The exact > same mapfile works fine with Bitmap fonts ... > > Do I need some special FreeType support built into PHP ? > > I'm just using the standard RPM's ... > Bonjour Jean-Francois, I have php_mapscript.so displaying FreeType fonts on my RedHat 6.2 system. However I am not using the PHP that came with RH6.2... I had to recompile my own because I needed the DBase module linked in. And following your message I tried switching back to the original PHP that came with RH6.2 and my application started crashing like yours as soon as it tries to display TT Fonts. A quick compare of the 2 phpinfo() outputs tells me that the PHP that came with RH included FreeType support but my new one didn't. that could explain the bug. I can give you a copy of my new libphp3.so if you want... it should solve your problem for now, until I have time to look into the real source of the bug. Later, -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Thu Aug 17 13:25:25 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Thu, 17 Aug 2000 16:25:25 -0400 Subject: TrueType font support with PHP 3.0.15 on RH 6.2 ? Message-ID: <2951561DB3DDD0118FEC00805FFE98050380C13F@s5-ccr-r1> Dan, Much thanks for the offer, but I've figured it out ... I've managed to compile a version of PHP that suits my needs and works with proper TTf support ... I did however HAVE to specify --without-ttf ... So I'm ok for now ... this does seem strange though, good thing I don't need it :) Thanks for the help, J.F. > ---------- > From: Daniel Morissette[SMTP:danmo at videotron.ca] > Sent: Thursday, August 17, 2000 3:27 PM > To: Doyon, Jean-Francois > Cc: mapserver-users at lists.gis.umn.edu > Subject: Re: TrueType font support with PHP 3.0.15 on RH 6.2 ? > > "Doyon, Jean-Francois" wrote: > > > > Goodday, > > > > Has any one successfully used the PHP module with FreeType support ? > > > > Mine seems to be bombing when I switch to true type fonts ...The exact > > same mapfile works fine with Bitmap fonts ... > > > > Do I need some special FreeType support built into PHP ? > > > > I'm just using the standard RPM's ... > > > > Bonjour Jean-Francois, > > I have php_mapscript.so displaying FreeType fonts on my RedHat 6.2 > system. However I am not using the PHP that came with RH6.2... I had to > recompile my own because I needed the DBase module linked in. > > And following your message I tried switching back to the original PHP > that came with RH6.2 and my application started crashing like yours as > soon as it tries to display TT Fonts. > > A quick compare of the 2 phpinfo() outputs tells me that the PHP that > came with RH included FreeType support but my new one didn't. that > could explain the bug. > > I can give you a copy of my new libphp3.so if you want... it should > solve your problem for now, until I have time to look into the real > source of the bug. > > Later, > -- > ------------------------------------------------------------ > Daniel Morissette danmo at videotron.ca > http://pages.infinit.net/danmo/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. > From johnh at erin.gov.au Fri Aug 18 00:13:38 2000 From: johnh at erin.gov.au (John Hockaday) Date: Fri, 18 Aug 2000 17:13:38 +1000 (EST) Subject: offset symbols Message-ID: <200008180713.RAA14794@eos.erin.gov.au> Steve, That's been a big help. I've managed to get labels to use the Symbol.ttf font but I can't seem to work out the key mapping. All I seem to be able to get is a square. Does anyone know the syntax for the key mapping? I've tried character reference mapping eg. ¡ and hexadecimal mapping, such as, \161 and x161 but I either get an "incorrect symbol" error or a square. Thanks in advance. Johnh > Stephen Lime" writes > > No, symbols cannot be offset at persent although I don't see why not. I'll look into adding this. There are work arounds. You can use truetype fonts as labels right? So there's no reason you can't use font symbols (i.e. circles and other shapes) instead of text. Use the class "TEXT" parameter to map a keyboard value to a symbol. With labels you can use the normal 9 positions and can even offset futher with the OFFSET parameter. I've done this in the past and it works fine. Note that because your label is actually the symbol you can't label these symbols without another layer. > > Steve > > >>> John Hockaday 08/15/00 00:57 AM >>> > Hi, > > Does anyone know if symbols can be offsetted from the point location? > > OR > > Can labels use symbols for the text instead of fonts? > > I have to plot six different symbols, which could vary by six different > colours, around some point data. The symbols need to be chosen by the > "year" attribute in the attribute table and the colour needs be chosen > by the "rate" attribute in the same table. > > I thought that I could have six layers, one for each year, and then > colour the symbols by the "rate" attribute value. Each year layer > could then be ploted on top of each other with the symbol at a > different offset to the point for each year. > > Any thoughts to help me out? > > Thanks in advance. > > > Johnh > > From steve.lime at dnr.state.mn.us Fri Aug 18 06:21:13 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 18 Aug 2000 08:21:13 -0500 Subject: offset symbols Message-ID: The symbol fontsets generally don't have many characters so you can use just letters on your keyboard. I believe there is a utility included with NT for example that will let you preview all characters in a font. So if "g = circle" use "g" in the TEXT parameter. In most cases thats all there is to it. Freetype does recognize the ? type mapping but symbol fonts don't seem to contain those characters very often. Keep it simple. a=, b= and so on. Steve >>> John Hockaday 08/18/00 02:18 AM >>> Steve, That's been a big help. I've managed to get labels to use the Symbol.ttf font but I can't seem to work out the key mapping. All I seem to be able to get is a square. Does anyone know the syntax for the key mapping? I've tried character reference mapping eg. ? and hexadecimal mapping, such as, \161 and x161 but I either get an "incorrect symbol" error or a square. Thanks in advance. Johnh > Stephen Lime" writes > > No, symbols cannot be offset at persent although I don't see why not. I'll look into adding this. There are work arounds. You can use truetype fonts as labels right? So there's no reason you can't use font symbols (i.e. circles and other shapes) instead of text. Use the class "TEXT" parameter to map a keyboard value to a symbol. With labels you can use the normal 9 positions and can even offset futher with the OFFSET parameter. I've done this in the past and it works fine. Note that because your label is actually the symbol you can't label these symbols without another layer. > > Steve > > >>> John Hockaday 08/15/00 00:57 AM >>> > Hi, > > Does anyone know if symbols can be offsetted from the point location? > > OR > > Can labls use symbols for the text instead of fonts? > > I have to plot six different symbols, which could vary by six different > colours, around some point data. The symbols need to be chosen by the > "year" attribute in the attribute table and the colour needs be chosen > by the "rate" attribute in the same table. > > I thought that I could have six layers, one for each year, and then > colour the symbols by the "rate" attribute value. Each year layer > could then be ploted on top of each other with the symbol at a > different offset to the point for each year. > > Any thoughts to help me out? > > Thanks in advance. > > > Johnh > > From kafka at email.cz Fri Aug 18 06:52:54 2000 From: kafka at email.cz (Stepan Kafka) Date: Fri, 18 Aug 2000 09:52:54 -0400 Subject: Reload button In-Reply-To: Message-ID: You can use javascript code in the form (the simplest): But this change the focus from "ZoomIn" tool to "Pan" tool during reload. Please, try also this code (you must have defined mapext in the page) This wouldn't change the tool during reload. This also doesn't solve the query/browse changing mode. The better is put javascript scripts in the head fo the document. 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 > aborruso at spaziogis.it > Odesl?no: 3. srpna 2000 11:41 > Komu: mapserver-users at lists.gis.umn.edu > P?edm?t: Reload button > > > Dear user, > I'm developing a web page with mapserver > (http://mapserver.spaziogis.it/cgi-bin/mapserv.exe?map=d%3A%5Clotu > s%5Cdomino%5Cdata%5Cdomino%5Cspaziogisit%5Cmapserver%5Ccartsic%5Cm > ap%5Cinsieme.map&imgext=13.305153+38.077841+13.407837+38.180401&im > gxy=150+150&zoomsize=2&layer=Ristoranti_e_Trattorie&zoomdir > > -1&img.x=152&img.y=161) > but I have a problem: if I put in this page a reload button (more exactly > an Imagefield with this syntax ="images/icon_redraw.gif" width="19" height="19" name=redraw border=0>) it > makes good its work, but if it is checked zoom botton (in example) the map > is reloaded and also zoomed. I would like only to reload map to show (or > not show) some layers. How can I do it? > Thank you, > > > > > > > > > --------------------------------------------- > Andrea Borruso > > > From aborruso at spaziogis.it Fri Aug 18 06:52:54 2000 From: aborruso at spaziogis.it (aborruso at spaziogis.it) Date: Fri, 18 Aug 2000 09:52:54 -0400 Subject: Reload button Message-ID: Dear user, I'm developing a web page with mapserver (http://mapserver.spaziogis.it/cgi-bin/mapserv.exe?map=d%3A%5Clotus%5Cdomino%5Cdata%5Cdomino%5Cspaziogisit%5Cmapserver%5Ccartsic%5Cmap%5Cinsieme.map&imgext=13.305153+38.077841+13.407837+38.180401&imgxy=150+150&zoomsize=2&layer=Ristoranti_e_Trattorie&zoomdir -1&img.x=152&img.y=161) but I have a problem: if I put in this page a reload button (more exactly an Imagefield with this syntax ) it makes good its work, but if it is checked zoom botton (in example) the map is reloaded and also zoomed. I would like only to reload map to show (or not show) some layers. How can I do it? Thank you, --------------------------------------------- Andrea Borruso From tim at activeweb.co.za Fri Aug 18 06:52:50 2000 From: tim at activeweb.co.za (Tim and Marcelle Sutton) Date: Fri, 18 Aug 2000 09:52:50 -0400 Subject: Thanks Message-ID: Just a quick note to everyone how dropped hints and took time out of their day to help me - I managed to get my data to display correctly at last. Now I will start exploring what I can do with php and Mapserver. Regards ------------------------------------- Tim Sutton tim at activeweb.co.za ICQ: 6712273 Did you hear that there's a group of South American Indians that worship the number zero? Is nothing sacred? ------------------------------------- From steve.lime at dnr.state.mn.us Fri Aug 18 06:52:57 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 18 Aug 2000 09:52:57 -0400 Subject: Label problems! Urgent Message-ID: You might try using a query map with TYPE SELECTED. That'll draw only the selected city and label. There are other sneaky ways of doing it if that's not exactly what you want. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 08/02/00 10:46AM >>> Dear users, is it possible to put a label only in the object that I have searched? In example I have a city layer, every city has a point symbol, and every symbol is painted in the map: I would like to put a label only in the city that I have searched by a form, and that I see in the center of teh map. Thank you, Andrea From sdlime at mninter.net Fri Aug 18 06:52:50 2000 From: sdlime at mninter.net (Stephen Lime) Date: Fri, 18 Aug 2000 09:52:50 -0400 Subject: users creating data Message-ID: Just to? clear things up. MapServer (the CGI executable) can't write shapefiles and won't be able to do that. Too hard to do in general fashion. However, MapScript CAN write shapefiles (with the help of XBase module). All you'd really need is an applet capable of creating features and a MapScript program could handle the output. MapServer or MapScript can certainly be used to provide contex (i.e. maps) for use in digitizing. Note that there are lot's of potential issues in this (topology, editing existing features, data QA, etc...). Steve From pgallen at randomlogic.com Fri Aug 18 06:52:53 2000 From: pgallen at randomlogic.com (Paul G. Allen) Date: Fri, 18 Aug 2000 09:52:53 -0400 Subject: users creating data References: <000701bffcd9$eddd0150$c238b2d0@bob> Message-ID: I am using DB2 for handling my data outside of that which is in the shapefiles. I am just learning DB2 and creating my database (it's created for the most part, but I need to import all my data into it). Then I'll have to learn the Perl DBD-DB2 module, etc. so I can access the data. I noticed when reading the DB2 documentation, there is a GIS extension available. When I saw this, I thought "Wouldn't it be great if MapServer and/or MapScript could handle interaction with a DB2 GIS database directly?" Maybe it can, maybe it can't, maybe it will, maybe it won't, but it is something I thought I'd pose on the list. PGA From johnh at erin.gov.au Fri Aug 18 06:52:50 2000 From: johnh at erin.gov.au (John Hockaday) Date: Fri, 18 Aug 2000 09:52:50 -0400 Subject: Funny units for jpeg images Message-ID: Hi, This is probably a summary for this subject as I can now successfully view greyscale jpegs and 8-bit colour tiffs using mapserv. First of all thanks very much to Jason Maestri and Chris Stuber for pointing me in the right direction to find the error. Also thanks to Mel VanderWal for pointing me to Todd Poston's arcview extension to generate world files and finally to Steve and Aaron for considering the future code aspects. The problem was that I used XV to convert a colour jpeg to a greyscale jpeg. XV resized the image to suit my screen size and therefore its pixel georeferencing was lost. I solved this problem by loading the jpeg image into ImageMagicks "display" X11 presentation tool and then saving it as a greyscale jpeg. ImageMagick did not resize the image to fit the screen and therefore the pixel georeferencing was maintained. The second problem was that my "imagine" tiff was 24-bit and did not have a georeferenced world file. The georeferencing was in the header file of the original tiff file. Again I used ImageMagick's "display" tool to "quantize" the tiff file into a 256 colour (8-bit) image. The next problem was the tiff world file. Todd Poston's Arcview extension allowed me to generate this file and I was finally able to view the colour tiff with mapserv. I greatly appreciate each persons help. It shows that the combination of each little suggestion can solve a problem. This is the most responsive list on which I have been subscribed and I can see that it is beneficial to many other people. Keep up the good work. Thanks again for all your help. John Hockaday > > From: "Stephen Lime" > > I sort of agree. The ESRI naming standards are stupid with respect to > world files. The .wld is now the ESRI standard and I see no real reason > to support the old stuff. (.jpw and .tfw are already supported) We'll likely > be moving from the current raster engine to a new one that supports a > much wider variety of formats soon. > > Supporting the .shp extension is a good idea. The non-extension filename > is a hold over from the shapelib library for reading shapefiles. Since a shapefile > isn't a single file I suppose it made sense conceptually at the time. Send the > diffs if you've got 'em. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> 08/01/00 03:41AM >>> > > Steve, other developers: > > This brings up one of those little things that I've wanted to fix but > haven't gotten around to. Mapserver really needs to follow the rules for > reading world files. The rules are: if the extention has three > characters, the world file will be the first and last character of the > extention followed by a 'w'. For example: image.tif -> image.tfw, > image.gif -> image.gfw, image.jpg -> image.jgw. > > If the extention has more than three characters, the 'w' is appended to > the complete extention: image.tiff -> image.tiffw, image.jpeg -> > image.jpegw. > > If the extention is missing, the 'w' is added to the filename: image -> > imagew. > > I think many of our new users problems stem from the non-standard file > names Mapserver uses. > > Another place where a change could be made is in the mapfile, when you > are specifying the data for a shapefile base feature theme, the mapserver > will not allow you to put the .shp extention on this file. All other data > types allow the extention, except for the .shp. This is very easy to > compensate for, so I wonder if there is a reason for this being the way it > is... If not, I will submit diffs to implement this change. > > -Aaron > > > On Tue, 1 Aug 2000, Mel VanderWal wrote: > > > Hey all. > > > > If you need to create world files in ArcView, Todd Poston recently posted a good > > extension (and the source code) on the ESRI ArcScripts site > > (http://gis.esri.com/arcscripts/details.cfm?CFGRIDKEY=B718A422-5E5A-11D4-9432005 08B0CB419). > > > > I only tested it a little, but Todd knows what he's doing, so it's probably solid. > > For MapServer users, use the .apr instead of the extension, so you can change one > > line in the script QDIR.View.WriteWorldFile.Click. Then georeference your images > > in that apr. > > > > Change: > > theFN = > > FileName.Merge(theISrc.GetSrcName.GetFileName.ReturnDir.AsString,theISrc.GetSrcN ame.GetFileName.GetBaseName > > + "w") > > To: > > theFN = theISrc.GetSrcName.GetFileName > > theFN.SetExtension("tfw") > > > > or else the world file will get a .tifw extension instead of a .tfw extension, > > which is OK in ArcView, but MapServer won't recognize it. One ArcView world file > > convention is simply to add a "w" to the image's file extension, so that's the way > > many world files are named. It's probably minor for most MapServer users, but I > > spent awhile figuring out why an image wouldn't georeference. (Steve: Maybe to > > make using the same data a little easier... - wishlist item?) > > > > > > imap at chesapeake.net wrote: > > > > > Hello, This isnt exactly right... THe worldfile X/Y is the upper left > > > pixel, not bottom right. I have found that matching projections is not an > > > exact science. Sometime you need to adjust the X/Y and map units to stretch > > > the raster to get a tight fit. > > > > > > I have done a couple of these.. You have to begin with PROJ and knowing > > > the precise projection and central meridian. That should get it close, > > > then you can tweak the map units in the X/Y to shore up the edges. > > > > > > Also, keep in mind that rasters may never match their vector counterparts, > > > due to basemap mismatch and thinning etc. > > > > > > It very well could be, that your JPG is a different projection??? > > > > > > I have several *very* nice raster maps here (Mountain High Maps) that I am > > > unable > > > to match the base projection with anything in PROJ. Since there is no > > > metadata > > > for the images, it requires much guesswork. > > > > > > Regards, > > > > > > Chris Stuber (mapsurfer) > > > Silicon Mapping Solutions, Inc > > > > > > Jason Maestri wrote: > > > > > > > > John, > > > > > > > > I am not sure why your data don't line up. The world file is okay, the only > > > > coordinates that are specified in the esri type world > > > > files are the X and Y of the bottom right corner. They seem to be really > > > > close to what you think they should be, so I'd imagine > > > > that the world file is not your problem. Mapserver doen't care what > > > > projection your data are in, so there isn't any place to > > > > specify projections. I'd use arcview or grass or something to make sure they > > > > really do line up, and further explore the problem. > > > > > > > > --Jason > > > > > > > > John Hockaday wrote: > > > > > > > > > Hi, > > > > > > > > > > I am trying to get a jpeg to load as a background image with vector > > > > > data on top of it. Both are in geographical coodinates however, when I > > > > > load one on top of the other they seem to be in different projections. > > > > > > > > > > The world file for the jpeg looks like this: > > > > > > > > > > ------------------------ > > > > > 0.000450 > > > > > 0 > > > > > 0 > > > > > -0.000450 > > > > > 150.000914 > > > > > -33.998391 > > > > > ------------------------ > > > > > > > > > > The image is supposed to be from TL(150, -34) to BR(151.5, -35). That > > > > > is 1.5 degrees by 1 degree with the top left corner at 150 degrees long > > > > > and -34 degrees lat. > > > > > > > > > > Am I missing out on specifying a decimal degrees unit for my layers in > > > > > the map file? The map file is attached. > > > > > > > > > > I would be greatfull for any information if someone else has used > > > > > georeferenced jpegs and vector shapefiles in a geographic coordinate > > > > > system. > > > > > > > > > > Thanks in advance. > > > > > > > > > > John Hockaday > > > > > > > > > > ------------------------------------------------------------------------ > > > > > # > > > > > # Start of map file > > > > > # > > > > > NAME DEMO > > > > > STATUS ON > > > > > SIZE 600 600 > > > > > SHADESET /opt/contrib/src/ms_3.3.010/symbols/shade.sym > > > > > MARKERSET /opt/contrib/src/ms_3.3.010/symbols/marker.sym > > > > > LINESET /opt/contrib/src/ms_3.3.010/symbols/line.sym > > > > > EXTENT 149 -35 152 -32 > > > > > UNITS dd > > > > > SHAPEPATH "/info/cgi-data/atlas/fornet/" > > > > > IMAGECOLOR 255 255 255 > > > > > > > > > > #LABELOVERLAP FALSE > > > > > > > > > > # > > > > > # Start of web interface definition > > > > > # > > > > > WEB > > > > > #HEADER demo_header.html > > > > > TEMPLATE demo.html > > > > > #MINSCALE 1000 > > > > > #MAXSCALE 1550000 > > > > > END > > > > > > > > > > # > > > > > # Start of reference map > > > > > # > > > > > #REFERENCE > > > > > #IMAGE graphics/reference_base.gif > > > > > #EXTENT 481093.000000 4969319.036682 502271.000000 4997508.3073184 > > > > > #STATUS ON > > > > > #COLOR -1 -1 -1 > > > > > #OUTLINECOLOR 255 0 0 > > > > > #END > > > > > > > > > > # > > > > > # Start of legend > > > > > # > > > > > LEGEND > > > > > KEYSIZE 18 12 > > > > > LABEL > > > > > TYPE BITMAP > > > > > SIZE MEDIUM > > > > > COLOR 0 0 89 > > > > > END > > > > > STATUS ON > > > > > END > > > > > > > > > > # > > > > > # Start of scalebar > > > > > # > > > > > SCALEBAR > > > > > IMAGECOLOR 255 255 255 > > > > > LABEL > > > > > COLOR 0 0 0 > > > > > SIZE SMALL > > > > > END > > > > > SIZE 350 5 > > > > > COLOR 255 255 255 > > > > > BACKGROUNDCOLOR 0 0 0 > > > > > OUTLINECOLOR 0 0 0 > > > > > UNITS kilometers > > > > > INTERVALS 5 > > > > > STATUS ON > > > > > END > > > > > > > > > > # > > > > > # Start of layer definitions > > > > > # > > > > > > > > > > LAYER > > > > > NAME coast > > > > > TYPE POLYGON > > > > > STATUS DEFAULT > > > > > DATA coast > > > > > CLASS > > > > > SYMBOL 0 > > > > > OUTLINECOLOR 0 0 0 > > > > > COLOR 248 248 95 > > > > > END > > > > > END > > > > > > > > > > LAYER > > > > > NAME si5609g > > > > > TYPE RASTER > > > > > STATUS ON > > > > > DATA si5609g.jpg > > > > > OFFSITE 0 > > > > > END > > > > > > > > > > LAYER > > > > > NAME cocos > > > > > TYPE RASTER > > > > > STATUS ON > > > > > DATA cocos.tif > > > > > OFFSITE 0 > > > > > END > > > > > > > > > > LAYER > > > > > NAME soils > > > > > TYPE POLYGON > > > > > STATUS ON > > > > > DATA soils > > > > > TOLERANCE 3 > > > > > > > > > > CLASSITEM "symbol" > > > > > CLASS > > > > > NAME "Classification by Symbol" > > > > > EXPRESSION "7" > > > > > COLOR 204 096 085 > > > > > BACKGROUNDCOLOR 32 201 201 > > > > > OUTLINECOLOR 0 0 0 > > > > > END > > > > > CLASS > > > > > EXPRESSION "27" > > > > > COLOR 255 255 000 > > > > > OUTLINECOLOR 0 0 0 > > > > > END > > > > > CLASS > > > > > EXPRESSION "33" > > > > > COLOR 204 191 085 > > > > > OUTLINECOLOR 0 0 0 > > > > > END > > > > > CLASS > > > > > EXPRESSION "37" > > > > > COLOR 234 223 085 > > > > > OUTLINECOLOR 0 0 0 > > > > > END > > > > > CLASS > > > > > EXPRESSION "52" > > > > > COLOR 204 223 170 > > > > > OUTLINECOLOR 0 0 0 > > > > > END > > > > > CLASS > > > > > EXPRESSION "62" > > > > > COLOR 204 159 085 > > > > > OUTLINECOLOR 0 0 0 > > > > > END > > > > > CLASS > > > > > EXPRESSION "98" > > > > > COLOR 255 255 170 > > > > > OUTLINECOLOR 0 0 0 > > > > > END > > > > > CLASS > > > > > EXPRESSION "146" > > > > > COLOR 153 159 085 > > > > > OUTLINECOLOR 0 0 0 > > > > > END > > > > > CLASS > > > > > EXPRESSION "158" > > > > > COLOR 204 159 085 > > > > > OUTLINECOLOR 0 0 0 > > > > > END > > > > > CLASS > > > > > EXPRESSION "177" > > > > > COLOR 153 064 000 > > > > > OUTLINECOLOR 0 0 0 > > > > > END > > > > > CLASS > > > > > EXPRESSION "200" > > > > > COLOR 153 128 000 > > > > > OUTLINECOLOR 0 0 0 > > > > > END > > > > > CLASS > > > > > EXPRESSION "202" > > > > > COLOR 102 159 170 > > > > > OUTLINECOLOR 0 0 0 > > > > > END > > > > > CLASS > > > > > EXPRESSION "212" > > > > > COLOR 153 128 000 > > > > > OUTLINECOLOR 0 0 0 > > > > > END > > > > > CLASS > > > > > EXPRESSION "216" > > > > > COLOR 153 159 000 > > > > > OUTLINECOLOR 0 0 0 > > > > > END > > > > > > > > > > #QUERYITEM symbol > > > > > QUERY > > > > > #EXPRESSION "216" > > > > > TEMPLATE demo.html > > > > > #JOIN "data/lakejoin.dbf" islake "type" > > > > > END > > > > > #QUERY > > > > > #EXPRESSION "^-" > > > > > #TEMPLATE land.html > > > > > #JOIN "data/lakejoin.dbf" islake "type" > > > > > #END > > > > > END # Layer > > > > > > > > > > LAYER > > > > > NAME rne12030 > > > > > TYPE POLYGON > > > > > STATUS ON > > > > > DATA rne12030 > > > > > TOLERANCE 5 > > > > > > > > > > CLASS > > > > > NAME "rne12030" > > > > > COLOR 49 117 185 > > > > > END > > > > > > > > > > QUERY > > > > > TEMPLATE /info/cgi-data/atlas/fornet/rne12030.html > > > > > END > > > > > END # Layer > > > > > > > > > > LAYER > > > > > NAME rail > > > > > TYPE LINE > > > > > STATUS ON > > > > > DATA rail > > > > > SYMBOLSCALE 4 > > > > > CLASS > > > > > NAME "rail" > > > > > COLOR 212 212 212 > > > > > SYMBOL 13 > > > > > SIZE 2 > > > > > MAXSIZE 4 > > > > > END > > > > > > > > > > QUERY > > > > > TEMPLATE /info/cgi-data/atlas/fornet/rail.html > > > > > END > > > > > END # Layer > > > > > > > > > > #LAYER > > > > > # NAME primary_roads > > > > > # TYPE LINE > > > > > # STATUS OFF > > > > > # DATA primary > > > > > # SYMBOLSCALE 24000 > > > > > # > > > > > # CLASS > > > > > # NAME "Primary Roads" > > > > > # COLOR 128 128 128 > > > > > # SYMBOL 13 > > > > > # SIZE 3 > > > > > # MAXSIZE 5 > > > > > # END > > > > > #END # Layer > > > > > > > > > > #LAYER > > > > > # NAME runways > > > > > # TYPE LINE > > > > > # STATUS OFF > > > > > # DATA runways > > > > > # > > > > > # CLASS > > > > > # COLOR 30 94 30 > > > > > # NAME "Airport Runways" > > > > > # END > > > > > #END # Layer > > > > > > > > > > LAYER > > > > > NAME "points" > > > > > TYPE ANNOTATION > > > > > STATUS ON > > > > > MAXSCALE 6555555 > > > > > DATA "points" > > > > > TOLERANCE 10 > > > > > > > > > > LABELITEM "Place_name" > > > > > > > > > > CLASS > > > > > SIZE 8 > > > > > COLOR 255 0 0 > > > > > SYMBOL 6 > > > > > LABEL > > > > > BACKGROUNDCOLOR 200 255 255 > > > > > COLOR 30 94 94 > > > > > TYPE BITMAP > > > > > #JUSTIFY CENTER > > > > > SIZE GIANT > > > > > POSITION AUTO > > > > > WRAP " " > > > > > END # Label > > > > > END # Class > > > > > > > > > > QUERY > > > > > TEMPLATE /info/cgi-data/atlas/fornet/points.html > > > > > END # Query > > > > > END # Layer > > > > > > > > > > END # Map File > > > > -- > > Mel VanderWal > > GIS Programmer / Manager > > GAIA Consultants Inc. > > Suite 306, 822-11th Avenue SW > > Calgary, Alberta > > Canada > > T2R 0E5 > > Phone: (403) 571-7216 > > Fax: (403) 571-7211 > > www.gaiaenv.com > > vanderwalm at gaiaenv.com > > > > > From kafka at email.cz Fri Aug 18 06:52:53 2000 From: kafka at email.cz (Stepan Kafka) Date: Fri, 18 Aug 2000 09:52:53 -0400 Subject: non case sensitive search In-Reply-To: <3988547D.8BCFB565@here.is> Message-ID: Use the syntax "(R|r)i" . (Somebody suggested itformerly.) 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 Ma > Odesl?no: 2. srpna 2000 19:04 > Komu: mapserver-users at lists.gis.umn.edu > P?edm?t: non case sensitive search > > > Dear All, > > Trying to search via form like this: > <... > > > > > but in the shape file the names of the cities starts with capital letter > > Example: > > Madrid > Turin > Paris > Riga > > and if you search for "ri" - only first 3 will be listed, if you search > for "Ri" only the last will be listed. My question is: How to perform > search without matching the case? > > -- > Ma > > > > > From steve.lime at dnr.state.mn.us Fri Aug 18 06:52:56 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 18 Aug 2000 09:52:56 -0400 Subject: users creating data Message-ID: It won't, not for awhile anyway. Unless of course your using SDE to store your data. One could always write it themselves.... ;-> s. Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Paul G. Allen" 08/03/00 03:26AM >>> I am using DB2 for handling my data outside of that which is in the shapefiles. I am just learning DB2 and creating my database (it's created for the most part, but I need to import all my data into it). Then I'll have to learn the Perl DBD-DB2 module, etc. so I can access the data. I noticed when reading the DB2 documentation, there is a GIS extension available. When I saw this, I thought "Wouldn't it be great if MapServer and/or MapScript could handle interaction with a DB2 GIS database directly?" Maybe it can, maybe it can't, maybe it will, maybe it won't, but it is something I thought I'd pose on the list. PGA From rravi at gis.umn.edu Fri Aug 18 06:53:19 2000 From: rravi at gis.umn.edu (Ravi Rajamani) Date: Fri, 18 Aug 2000 09:53:19 -0400 Subject: $mapscript::ms_error->{message} In-Reply-To: Message-ID: Hi Steve,All It may not be too late to ask this: What does $mapscript::ms_error->{message} tell us? for example when it outputs (0):(9) , what does it signify? Ravi Ravi Rajamani GIS Remote Sensing Lab Dept of Forest Resources University of Minnesota From aborruso at spaziogis.it Fri Aug 18 06:54:18 2000 From: aborruso at spaziogis.it (aborruso at spaziogis.it) Date: Fri, 18 Aug 2000 09:54:18 -0400 Subject: Radio button! Message-ID: Dear users, In my mapserver interface (http://mapserver.spaziogis.it/cgi-bin/mapserv.exe?map=d:%5Clotus%5Cdomino%5Cdata%5Cdomino%5Cspaziogisit%5Cmapserver%5Ccartsic%5Cmap%5Cinsieme.map), I have three radio button, zoomin, zoomout and pan, and a checkbox (info, query map), but I would like tu use info checkbox like a radiobotton, in other worlds I would like that when I check info radiobotton the other three bottons should become deselected. This is also to put in a wish list, because it's logical for me that an user or wish to zoomin or to zoomout or to pan or to have an info, and it isn't user friendly must remember to uncheck info checkbox before zoomin or paning in the map. How can I do to obtain this feature (if is it possible)? Thank you, Andrea From syurman at mindspring.com Fri Aug 18 06:54:19 2000 From: syurman at mindspring.com (Sara Yurman) Date: Fri, 18 Aug 2000 09:54:19 -0400 Subject: Radio button! References: Message-ID: Hi Andrea, I copied radio buttons for zoom in, zoom out and pan from the demo. They look like this in my template file (*.html): Pan
Zoom In
Zoom Out Hope that helps. Sara aborruso at spaziogis.it wrote: > I have three radio button, zoomin, zoomout and pan, and a checkbox (info, > query map), but I would like tu use info checkbox like a radiobotton, in > other worlds I would like that when I check info radiobotton the other > three bottons should become deselected. > Andrea -- Sara Yurman Spatial Focus, Inc. syurman at spatialfocus.com Voice: 404-378-0989 Fax: 209-254-9531 (See attached file: syurman.vcf) -------------- next part -------------- A non-text attachment was scrubbed... Name: syurman.vcf Type: application/octet-stream Size: 340 bytes Desc: not available URL: From jmaes at riparia.net Fri Aug 18 06:52:48 2000 From: jmaes at riparia.net (Jason Maestri) Date: Fri, 18 Aug 2000 09:52:48 -0400 Subject: users creating data References: <200008021706.e72H68917196@cosmos.geoplan.ufl.edu> Message-ID: Andrea, We have played with this a little here at USU. Mapserver cannot add data to the shapefile triplets. You'd need to use shapelib and DBD::XBase or something for that. We have developed our own libraries for editing shapefiles, they are in C++, right now, I just haven't had the time to port them to Perl. Maybe if there is enough interest, we could post them in the public domain. Esp. if somebody wants to port them to perl. Anyway... The conclusion that we came to was that it was easy to add points to a shapefile (description of algorithm to follow) using only html, JavaScript and mapserver, but in order to add line and polygon collections comfortably, you'd need a java applet. As far as just adding a point... What we wound up doing (there's probably a better way to do this. Hopefully somebody else will comment, but this was just a quick fix to get something running, and we haven't bothered to change it) was to create a layer with only one shape. A square polygon which was large enough to contain all of the other shapefiles. This was drawn transparently as the top layer (the user had no clue it was there), and a query template was set up which captured the coordinates of any click inside the polygon. Since it was on top, and it was bigger than everything else, a click anywhere on the map would be inside this polygon, and therefore would call it's query template. The user could then fill out a form on the query template, adding any data the wanted in the shapefile, then they would submit the form. The CGI script would then add a new point at the coordinates selected, and fill the database with the data entered. The url for this application is: http://riparia.riparia.net/teton/teton_init.html. To add a new comment, first turn on the comments layer, then check the box next to "add new comment". Finally, set the mode to select, and click away. There are a bunch of comments on here from people playing with it. Nothing really useful yet... I'll clean it up in about a week. Anyway I hope this helps. Sorry for the very long-winded answer. --Jason Maestri Andrea Goethals wrote: > Hi. > > We have a project in which we want the user through > a browser to be able to create data (probably shapefiles). > > I'm already using mapserver for another project, but > haven't explored its capabilities enough to know if > this is something it could do. The user would need > to be able to draw new point, line and polygon datasets, > and add attribute information to them. > > We also have been playing with ArcIMS for another project, > and I don't even think the user can do that with ArcIMS. > Even if they could though, it's way too expensive for > this project. > > Does anyone have any suggestions? > > Thanks, > Andrea > > @-------------------------@ > | Andrea Goethals | > | andreag at geoplan.ufl.edu | > | GeoPlan Center | > | University of Florida | > | 431 Architecture Bldg | > | www.geoplan.ufl.edu | > | Gainesville, FL 32611 | > | Phone: (352)392-2351 | > | Fax:(352)392-3308 | > @-------------------------@ From steve.lime at dnr.state.mn.us Fri Aug 18 06:54:28 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 18 Aug 2000 09:54:28 -0400 Subject: $mapscript::ms_error->{message} Message-ID: It's a general error code. The descriptive strings are can be found at the top of maperror.c. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Ravi Rajamani 08/03/00 03:44PM >>> Hi Steve,All It may not be too late to ask this: What does $mapscript::ms_error->{message} tell us? for example when it outputs (0):(9) , what does it signify? Ravi Ravi Rajamani GIS Remote Sensing Lab Dept of Forest Resources University of Minnesota From cameron at socialchange.net.au Fri Aug 18 06:54:33 2000 From: cameron at socialchange.net.au (Cameron Shorter) Date: Fri, 18 Aug 2000 09:54:33 -0400 Subject: Using geographic data in the southern hemisphere References: Message-ID: Yes, we also have mapserv running in the south. And we use projections almost successfully. (Trying to convert geographic->geographic causes a core dump as noted in a previous email). Sorry, I missed the original email so cannot answer specifics, but make sure you have PROJECTION set in both your layers and MAP sections of your mapfile. Anton Coetzee wrote: > > Hi > > I'm using mapserver (3.3.010) on Southern Hemisphere shapefiles (Gauteng > area) with no problem. I'm *not* using proj at all, so maybe that is an > issue? > > As an example, here's the extent from one of my maps: > > units dd > extent 28.05 -26.15 28.12 -26.19 > > So I can answer #1 - yes, mapserver *does* work OK with Southern Hemisphere > data. > > Sorry I can't be of help with the other stuff. > > Anton Coetzee > > On Tue, 1 Aug 2000, Tim and Marcelle Sutton wrote: > > > > The data is in the southern hemisphere (ie. north/south coordinates are > > negative > > numbers in decimal degrees). > > > 1) Does mapserver support southern hemispher geographic data? -- Cameron Shorter Web Mapping Manager Social Change Online 6A Nelson Street Tel: +61 (0) 2 9557 6500 Annandale NSW 2038 Fax: +61 (0) 2 9519 8940 Sydney, Australia http://online.socialchange.net.au From steve.lime at dnr.state.mn.us Fri Aug 18 06:54:20 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 18 Aug 2000 09:54:20 -0400 Subject: Radio button! Message-ID: (very attractive interface) Anyway, these aren't MapServer issues. You can achieve what you want using some javascript. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 08/04/00 10:57AM >>> Dear users, In my mapserver interface (http://mapserver.spaziogis.it/cgi-bin/mapserv.exe?map=d:%5Clotus%5Cdomino%5Cdata%5Cdomino%5Cspaziogisit%5Cmapserver%5Ccartsic%5Cmap%5Cinsieme.map), I have three radio button, zoomin, zoomout and pan, and a checkbox (info, query map), but I would like tu use info checkbox like a radiobotton, in other worlds I would like that when I check info radiobotton the other three bottons should become deselected. This is also to put in a wish list, because it's logical for me that an user or wish to zoomin or to zoomout or to pan or to have an info, and it isn't user friendly must remember to uncheck info checkbox before zoomin or paning in the map. How can I do to obtain this feature (if is it possible)? Thank you, Andrea From mjury at impsat1.com Fri Aug 18 06:54:21 2000 From: mjury at impsat1.com (marcelo jury) Date: Fri, 18 Aug 2000 09:54:21 -0400 Subject: mapimage applet Message-ID: Hi ALL, with the intention of make mapimage applet loads a new image, I tryied to use the " newMap(URLParam) " mapimage applet's method, but the first problem comes out trying to figure out how the URLParam should be set. Since it has to be just a url to a pic, I guess "URLParam" could be a URL kind of template instead of the HTML type, but I dont know how it works: /scripts/mapserver.exe?map=myMap.map?template=[img] /scripts/mapserver.exe?map=myMap.map?template ="/scripts/mapserver.exe?map=my Map.map[img] after many attempts, the result is the same...: Content-type: text/html returnHTML(): Web application error. Malformed template name. so I run into another way: (Mode=map) but it brings nothing. >From the source code of one of the results I took the url and pasted it directly into the browser... and confirmed that the url works properly. If all this would work the idea was to move this button onclick's code to a APPLET Tag onmouseup event... but unffortunatly this event is not triggered. It should at least in IE5 as this page at MSDN confirm: http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/applet.asp Ok..thats all. THANKS? A LOT FOR ANY COMMENT about this issues! From steve.lime at dnr.state.mn.us Fri Aug 18 06:54:24 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 18 Aug 2000 09:54:24 -0400 Subject: mapimage applet Message-ID: The url MUST be fully quallified, that is you need the website address before the reference to the script. http://www.dnr.state.mn.us/cgi-bin/mapserv?... The newMap method is intended for replacing the image without loading the whole page. You can actually create a single page that never refreses. This means you are NOT using templates. Rather the coordinates etc are managed on the client using javascript. MapServer is used just for images, nothing else. To make this work you need a fair amount of javascript on the client side to keep extents in order. The landview application (www.dnr.state.mn.us/mapping/landview) is an example app that does just this. Javascript source can be made available to those that are interested. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "marcelo jury" 08/04/00 01:25PM >>> Hi ALL, with the intention of make mapimage applet loads a new image, I tryied to use the " newMap(URLParam) " mapimage applet's method, but the first problem comes out trying to figure out how the URLParam should be set. Since it has to be just a url to a pic, I guess "URLParam" could be a URL kind of template instead of the HTML type, but I dont know how it works: /scripts/mapserver.exe?map=myMap.map?template=[img] /scripts/mapserver.exe?map=myMap.map?template ="/scripts/mapserver.exe?map=my Map.map[img] after many attempts, the result is the same...: Content-type: text/html returnHTML(): Web application error. Malformed template name. so I run into another way: (Mode=map) but it brings nothing. >From the source code of one of the results I took the url and pasted it directly into the browser... and confirmed that the url works properly. If all this would work the idea was to move this button onclick's code to a APPLET Tag onmouseup event... but unffortunatly this event is not triggered. It should at least in IE5 as this page at MSDN confirm: http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/applet.asp Ok..thats all. THANKS A LOT FOR ANY COMMENT about this issues! From mutenda at tkl.iis.u-tokyo.ac.jp Fri Aug 18 06:55:49 2000 From: mutenda at tkl.iis.u-tokyo.ac.jp (Lawrence Mutenda) Date: Fri, 18 Aug 2000 09:55:49 -0400 Subject: Displaying Shape files Message-ID: Hi, I am new to mapserver. Here is my question. I would like to display a shape file on a web browser. How do I do. I tried to define a map file by copying a modifying the demo map file. But I cant get the shape file to display on a browser. Can somebody show me how to write a simple map file that simply displays a shape file. Thanks in advance Lawrence University of Tokyo From cameron at socialchange.net.au Fri Aug 18 06:55:50 2000 From: cameron at socialchange.net.au (Cameron Shorter) Date: Fri, 18 Aug 2000 09:55:50 -0400 Subject: Problems with queries and toleranceunits Message-ID: Hi, I'm having problems querying a points file which seem to be related to "tolerance" flag. Firstly, When my mapfile says "TOLERANCEUNITS pixels" I get the following error: getSymbol(): Incorrect symbol. (pixels):(245) Either there is a bug here, or the doco needs updating, see below: toleranceunits [pixels|feet|inches|kilometers|meters|miles|dd]: Units of the tolerance value. Default is pixels. So if I specify any other kind of unit, a multiple query returns all the points in my mapfile. I'm using mapserv 3.3.010 on redhat. -- Cameron Shorter Web Mapping Manager Social Change Online 6A Nelson Street Tel: +61 (0) 2 9557 6500 Annandale NSW 2038 Fax: +61 (0) 2 9519 8940 Sydney, Australia http://online.socialchange.net.au From kenboss at dilbert.dnr.state.mn.us Fri Aug 18 06:56:04 2000 From: kenboss at dilbert.dnr.state.mn.us (kenboss) Date: Fri, 18 Aug 2000 09:56:04 -0400 Subject: non case sensitive search Message-ID: Since you are taking your input from an html form, you don't really have any control over what people might type in there. So your best bet is probably to use a bit of javascript to massage your users' input to a format that matches what's in the shapefile before the form is submitted. --Ken > Date: Wed, 09 Aug 2000 10:21:40 +0000 > From: Ma > X-Accept-Language: Ahora vengo mama chola mama chola > MIME-Version: 1.0 > To: "mapserver-users at lists.gis.umn.edu" > Subject: Re: non case sensitive search > Content-Transfer-Encoding: 8bit > > This syntax is not what I want and I don't think it is useful. Is there other > way to perform search without matching the case? > > --- > Ma > > > Stepan Kafka wrote: > > > Use the syntax "(R|r)i" . (Somebody suggested itformerly.) > > > > 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 Ma > > > Odesl?no: 2. srpna 2000 19:04 > > > Komu: mapserver-users at lists.gis.umn.edu > > > P?edm?t: non case sensitive search > > > > > > > > > Dear All, > > > > > > Trying to search via form like this: > > > <... > > > > > > > > > > > > > > > > > but in the shape file the names of the cities starts with capital letter > > > > > > Example: > > > > > > Madrid > > > Turin > > > Paris > > > Riga > > > > > > and if you search for "ri" - only first 3 will be listed, if you search > > > for "Ri" only the last will be listed. My question is: How to perform > > > search without matching the case? > > > > > > -- > > > Ma > > > > From suttont at cncjnk.wcape.gov.za Fri Aug 18 06:56:00 2000 From: suttont at cncjnk.wcape.gov.za (Tim Sutton) Date: Fri, 18 Aug 2000 09:56:00 -0400 Subject: Map transparency Message-ID: Hi I tried to set TRANSPARENT ON in my .map file for the map object, but is just draws white. Is it possible to get the background to draw transparent? I had similar problems getting the scalebar to be transparent - how do I do it so it actually works? Many Thanks /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ TIM SUTTON - GIS TECHNICIAN Western Cape Nature Conservation Board P Bag x5014 Stellenbosch 7599 ph +27 (0)21 8891560 ph +27 (0)21 8891523 email suttont at cncjnk.wcape.gov.za \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ From steve.lime at dnr.state.mn.us Fri Aug 18 06:55:52 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 18 Aug 2000 09:55:52 -0400 Subject: Problems with queries and toleranceunits Message-ID: It's a bug. PIXELS is not recognized as a keyword. Probably was overlooked since PIXELS is the default and setting it is redundant. Will fix... Workaround is not to add that line. As for behavior with other units I'd have to see URLs showing how they are being used and with what buffer values. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Cameron Shorter 08/08/00 08:28AM >>> Hi, I'm having problems querying a points file which seem to be related to "tolerance" flag. Firstly, When my mapfile says "TOLERANCEUNITS pixels" I get the following error: getSymbol(): Incorrect symbol. (pixels):(245) Either there is a bug here, or the doco needs updating, see below: toleranceunits [pixels|feet|inches|kilometers|meters|miles|dd]: Units of the tolerance value. Default is pixels. So if I specify any other kind of unit, a multiple query returns all the points in my mapfile. I'm using mapserv 3.3.010 on redhat. -- Cameron Shorter Web Mapping Manager Social Change Online 6A Nelson Street Tel: +61 (0) 2 9557 6500 Annandale NSW 2038 Fax: +61 (0) 2 9519 8940 Sydney, Australia http://online.socialchange.net.au From cameron at socialchange.net.au Fri Aug 18 06:55:58 2000 From: cameron at socialchange.net.au (Cameron Shorter) Date: Fri, 18 Aug 2000 09:55:58 -0400 Subject: Problems with queries and toleranceunits References: Message-ID: Have investigated pixel problems further. Not sure about other units. It seems that that the point query is not acurate in selecting its points. See: http://linuxdev.socialchange.net.au/webmap/museum/maps/demo_init.html the mapfile is linked from there. Try doing mutiple selections at various points on the map and you will notice that in some places you will many responses where you'd only expect one, and sometimes you will get none when you expect many. Stephen Lime wrote: > > It's a bug. PIXELS is not recognized as a keyword. Probably was overlooked > since PIXELS is the default and setting it is redundant. Will fix... Workaround > is not to add that line. > > As for behavior with other units I'd have to see URLs showing how they are > being used and with what buffer values. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Cameron Shorter 08/08/00 08:28AM >>> > Hi, > I'm having problems querying a points file which seem to be related to > "tolerance" flag. > > Firstly, > When my mapfile says "TOLERANCEUNITS pixels" I get the following error: > getSymbol(): Incorrect symbol. (pixels):(245) > > Either there is a bug here, or the doco needs updating, see below: > toleranceunits [pixels|feet|inches|kilometers|meters|miles|dd]: Units of > the tolerance value. Default is pixels. > > So if I specify any other kind of unit, a multiple query returns all the > points in my mapfile. > > I'm using mapserv 3.3.010 on redhat. > > -- > Cameron Shorter Web Mapping Manager > Social Change Online > 6A Nelson Street Tel: +61 (0) 2 9557 6500 > Annandale NSW 2038 Fax: +61 (0) 2 9519 8940 > Sydney, Australia http://online.socialchange.net.au -- Cameron Shorter Web Mapping Manager Social Change Online 6A Nelson Street Tel: +61 (0) 2 9557 6500 Annandale NSW 2038 Fax: +61 (0) 2 9519 8940 Sydney, Australia http://online.socialchange.net.au From suttont at cncjnk.wcape.gov.za Fri Aug 18 06:56:01 2000 From: suttont at cncjnk.wcape.gov.za (Tim Sutton) Date: Fri, 18 Aug 2000 09:56:01 -0400 Subject: RE Transparency Message-ID: Please ignore my last question regarding transparency - I have worked it out Thanks /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ TIM SUTTON - GIS TECHNICIAN Western Cape Nature Conservation Board P Bag x5014 Stellenbosch 7599 ph +27 (0)21 8891560 ph +27 (0)21 8891523 email suttont at cncjnk.wcape.gov.za \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ From steve.lime at dnr.state.mn.us Fri Aug 18 06:56:06 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 18 Aug 2000 09:56:06 -0400 Subject: non case sensitive search Message-ID: Not with mapserver directly. The lack of functionality on the attribute search is intentional at this point. There are much better tools available for that type of processing that can easily be integrated with the mapserver. Preprocessing the data before sending it is another option. Who knows what someone might type so some scrubbing of the search term is ALWAYS a good idea. Javascript can be used to turn a users string into a case insensitive regular expression without too much trouble. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Ma 08/09/00 05:21AM >>> This syntax is not what I want and I don't think it is useful. Is there other way to perform search without matching the case? --- Ma Stepan Kafka wrote: > Use the syntax "(R|r)i" . (Somebody suggested itformerly.) > > 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 Ma > > Odesl?no: 2. srpna 2000 19:04 > > Komu: mapserver-users at lists.gis.umn.edu > > P?edm?t: non case sensitive search > > > > > > Dear All, > > > > Trying to search via form like this: > > <... > > > > > > > > > > > but in the shape file the names of the cities starts with capital letter > > > > Example: > > > > Madrid > > Turin > > Paris > > Riga > > > > and if you search for "ri" - only first 3 will be listed, if you search > > for "Ri" only the last will be listed. My question is: How to perform > > search without matching the case? > > > > -- > > Ma > > From marin at here.is Fri Aug 18 06:56:07 2000 From: marin at here.is (Ma) Date: Fri, 18 Aug 2000 09:56:07 -0400 Subject: non case sensitive search References: <000701bffd28$0322ba70$fb01a8c0@gis2.oku-kh.cz> Message-ID: This syntax is not what I want and I don't think it is useful. Is there other way to perform search without matching the case? --- Ma Stepan Kafka wrote: > Use the syntax "(R|r)i" . (Somebody suggested itformerly.) > > 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 Ma > > Odesl?no: 2. srpna 2000 19:04 > > Komu: mapserver-users at lists.gis.umn.edu > > P?edm?t: non case sensitive search > > > > > > Dear All, > > > > Trying to search via form like this: > > <... > > > > > > > > > > > but in the shape file the names of the cities starts with capital letter > > > > Example: > > > > Madrid > > Turin > > Paris > > Riga > > > > and if you search for "ri" - only first 3 will be listed, if you search > > for "Ri" only the last will be listed. My question is: How to perform > > search without matching the case? > > > > -- > > Ma > > From chetturv at sdhu.moh.gov.on.ca Fri Aug 18 06:56:33 2000 From: chetturv at sdhu.moh.gov.on.ca (Vinod Chettur) Date: Fri, 18 Aug 2000 09:56:33 -0400 Subject: Integrating attribute data from relational databases with MapServ er Message-ID: Hello everyone: Just wondering about the state of things with regards to relational database integration with mapserver. I am currently invoking a bunch of stored SQL procedures to generate tabular reports of statistical computations done at the database server (NT 4.0 /SQL Server). I hope to be able to represent these statistical rates for various counties in Ontario using MapServer. Wondering if any pointers or examples are out there perhaps with the new PHP module or otherwise. Thanks in advance, Vinod Chettur Senior Systems Consultant, NHIP Canada From ender at titan.lab.csuchico.edu Fri Aug 18 06:56:39 2000 From: ender at titan.lab.csuchico.edu (ender at titan.lab.csuchico.edu) Date: Fri, 18 Aug 2000 09:56:39 -0400 Subject: diffs for .shp Message-ID: I made a little change to mapshape.c that allows you to use: DATA whatever/shapefile.shp in the mapfile, instead of these shapes just being ignored. I find that I still do this, even though I've been using mapserver for several years now. Anyway, here's the diff file. -Aaron 1166c1166,1167 < char *dbfFilename; --- > int i; > char * dbfFilename; 1195,1197c1196,1209 < < dbfFilename = (char *)malloc(strlen(filename)+5); < sprintf(dbfFilename, "%s.dbf", filename); --- > > dbfFilename = (char*)malloc(strlen(filename)+5); > strcpy(dbfFilename, filename); > > /* clean off any extention the filename might have */ > for (i = strlen(dbfFilename) - 1; > i > 0 && dbfFilename[i] != '.' && dbfFilename[i] != '/' > && dbfFilename[i] != '\\'; > i-- ) {} > > if( dbfFilename[i] == '.' ) > dbfFilename[i] = '\0'; > > strcat(dbfFilename, ".dbf"); (See attached file: mapshape.dif) -------------- next part -------------- A non-text attachment was scrubbed... Name: mapshape.dif Type: application/octet-stream Size: 641 bytes Desc: not available URL: From chetturv at sdhu.moh.gov.on.ca Fri Aug 18 06:57:10 2000 From: chetturv at sdhu.moh.gov.on.ca (Vinod Chettur) Date: Fri, 18 Aug 2000 09:57:10 -0400 Subject: Integrating attribute data from relational databases with Map Server Message-ID: Hi Stephen: The rates are dynamically computed using stored procedures based on user input. So for example, death rates/1000 by counties for cancer for a given year are obtained as a result set: County 1 - 4.2/1000 County 2 - 3.0/1000 and so on. So I would like to represent these rates by county as color coded categories such as blue = >0 and <1 green = >=1 and < 5 red >=5 etc. Categories could be done in SQL itself if needed. Just wondering what my strategy will be to merge this resultset with my counties shape file on the fly. Thanks, Vinod > -----Original Message----- > From: Stephen Lime [SMTP:steve.lime at dnr.state.mn.us] > Sent: Thursday, August 10, 2000 12:00 PM > To: Vinod Chettur > Subject: Re: Integrating attribute data from relational databases > with MapServer > > Do you want to map the rates or display the rates summaries based on > a users interaction with a map. Depending on what exactly you'd like to > do there are different stratagies you can use. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Vinod Chettur 08/10/00 10:12AM >>> > Hello everyone: > Just wondering about the state of things with regards to relational > database integration with mapserver. I am currently invoking a bunch of > stored SQL procedures to generate tabular reports of statistical > computations done at the database server (NT 4.0 /SQL Server). I hope to > be > able to represent these statistical rates for various counties in Ontario > using MapServer. Wondering if any pointers or examples are out there > perhaps > with the new PHP module or otherwise. > > Thanks in advance, > Vinod Chettur > Senior Systems Consultant, NHIP > Canada > From danmo at videotron.ca Fri Aug 18 06:57:11 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Fri, 18 Aug 2000 09:57:11 -0400 Subject: Integrating attribute data from relational databases with Map Server References: Message-ID: Vinod Chettur wrote: > > Hi Stephen: > The rates are dynamically computed using stored procedures based on user > input. So for example, death rates/1000 by counties for cancer for a given > year are obtained as a result set: > County 1 - 4.2/1000 > County 2 - 3.0/1000 > and so on. > > So I would like to represent these rates by county as color coded categories > such as > > blue = >0 and <1 > green = >=1 and < 5 > red >=5 etc. > Categories could be done in SQL itself if needed. Just wondering what my > strategy will be to merge this resultset with my counties shape file on the > fly. > Hi Vinod, I have implemented an application that does exactly that using PHP/MapScript, and funny enough, it maps the same type of data as you: Cancer and other disease rates and the provincial and Census Division level. Unfortunately the web site is not publicly available yet, but here is the trick that I used: 1- Do the query to the database based on user selections and get a recordset. 2- Copy county.shp and county.shx to a new unique filename (e.g. 213545232.shp). If you're on Unix then use logical links since it's faster and will save you disk space! 3- Create a new DBF file with the same temporary filename (e.g. 213545232.dbf) with 1 field only: "RATE". Then for each record in the original county.dbf file, you write the actual rate value obtained from the database to the corresponding record in the temporary dbf file. Now you've got a shapefile dataset with all the rates to add to your map. Use MapScript to add a layer to your map, set the DATA value in the layer to point to the temporary shapefile, set the classes and redraw the map. Another advantage of creating the temporary DBF file is that if the user wants to zoom in, etc. then you do not need to redo the query to the SQL database... as long as the user does not change his selections (cancer site, year, etc.) you just redraw the map using the same temporary DBF file. The overhead of creating the temp. DBF file should be minimal compared to running a query on the database every time. Before implementing that trick I had discussed with Steve the possibility to add in mapserver a type of join that would allow us to "append" the temporary DBF to the original shapefile dataset's DBF. We decided to not add that feature yet since the trick described above is quite simple and works very well. I hope that helps, -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ 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 Fri Aug 18 06:57:12 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 18 Aug 2000 09:57:12 -0400 Subject: Integrating attribute data from relational databases with MapServer Message-ID: Here are a couple of ideas using mapscript: Assuming a key between the xbase file and the database you could do the query and store all results in a hash based on the key, then you could step through the shapefile pulling the classification value from the hash based on the current shapes key value, now draw the shape. You would probably draw ancillirary layers before and after. Another method would be to create a temp shapefile. Assuming you can produce a temporary xbase file (remember order MUST match that of the shapefile) you could pair that file with a copy of the .shp/.shx county data and draw the layer as normal. You need to put a dummy layer in the map file so it's in the right order and then edit it to match the temp data. Then a simple $map->draw() would be possible. Hard part is keeping the data in sync. You can use the sortshp utility to order the counties by some common field (i.e. county code) and then use an ORDER BY in the SQL statement. There may others but off the top of my head this is what I thought of. Both should work with fairly minimal coding. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Vinod Chettur 08/10/00 12:39PM >>> Hi Stephen: The rates are dynamically computed using stored procedures based on user input. So for example, death rates/1000 by counties for cancer for a given year are obtained as a result set: County 1 - 4.2/1000 County 2 - 3.0/1000 and so on. So I would like to represent these rates by county as color coded categories such as blue = >0 and <1 green = >=1 and < 5 red >=5 etc. Categories could be done in SQL itself if needed. Just wondering what my strategy will be to merge this resultset with my counties shape file on the fly. Thanks, Vinod > -----Original Message----- > From: Stephen Lime [SMTP:steve.lime at dnr.state.mn.us] > Sent: Thursday, August 10, 2000 12:00 PM > To: Vinod Chettur > Subject: Re: Integrating attribute data from relational databases > with MapServer > > Do you want to map the rates or display the rates summaries based on > a users interaction with a map. Depending on what exactly you'd like to > do there are different stratagies you can use. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Vinod Chettur 08/10/00 10:12AM >>> > Hello everyone: > Just wondering about the state of things with regards to relational > database integration with mapserver. I am currently invoking a bunch of > stored SQL procedures to generate tabular reports of statistical > computations done at the database server (NT 4.0 /SQL Server). I hope to > be > able to represent these statistical rates for various counties in Ontario > using MapServer. Wondering if any pointers or examples are out there > perhaps > with the new PHP module or otherwise. > > Thanks in advance, > Vinod Chettur > Senior Systems Consultant, NHIP > Canada > From sjohnston at satshot.com Fri Aug 18 06:57:45 2000 From: sjohnston at satshot.com (Shawn L Johnston) Date: Fri, 18 Aug 2000 09:57:45 -0400 Subject: MapServer Demo prob Message-ID: I'm trying to run the demo on windows 2000 with IIS 5.0. When I try to initialize the mapserver I see the following message returned: ??? msSaveImage(): Unable to access file. (c: \inetpub\wwwroot\ms_demo\DEMO966020405744.gif) Any ideas on what might need to be fixed? Many thanks, Shawn From jedgar at fxp.org Fri Aug 18 06:59:27 2000 From: jedgar at fxp.org (Chris D. Faulhaber) Date: Fri, 18 Aug 2000 09:59:27 -0400 Subject: Mapserv in command line mode ? In-Reply-To: <002c01c00699$82e766a0$c5f98490@nsw.bigpond.net.au> Message-ID: On Tue, 15 Aug 2000, shayes wrote: > Hi All, > > I need to save several hundred images generated by successive Mapserv > queries to disk as GIFs. I'd ideally like to just call Mapserv from within a > Perl script and write the output to file but I can't do this. Does anyone > have any suggestions. > Use the mapserver/perl interface (aka mapscript)? ----- Chris D. Faulhaber - jedgar at fxp.org - jedgar at FreeBSD.org -------------------------------------------------------- FreeBSD: The Power To Serve - http://www.FreeBSD.org From chetturv at sdhu.moh.gov.on.ca Fri Aug 18 07:00:00 2000 From: chetturv at sdhu.moh.gov.on.ca (Vinod Chettur) Date: Fri, 18 Aug 2000 10:00:00 -0400 Subject: Integrating attribute data from relational databases with Map Server Message-ID: Thanks to Stephen and Daniel for their suggestions Vinod Chettur Senior Systems Consultant, NHIP From shayes at bigpond.net.au Fri Aug 18 07:00:15 2000 From: shayes at bigpond.net.au (shayes) Date: Fri, 18 Aug 2000 10:00:15 -0400 Subject: Setting up MapScript on NT Message-ID: Has anyone successfully managed to make MapScript work on NT. If so could you explain how you did it ? Regards Steven Hayes From kenboss at dilbert.dnr.state.mn.us Fri Aug 18 06:59:39 2000 From: kenboss at dilbert.dnr.state.mn.us (kenboss) Date: Fri, 18 Aug 2000 09:59:39 -0400 Subject: Mapserv in command line mode ? Message-ID: Yes, perl mapscript is the answer you're looking for. You'll find it in your source distribution under mapscript/perl. You'll have to build it yourself; the current configure script doesn't handle mapscript yet. There are a couple of useful scripts in the examples subdirectory, documentation is online at http://mapserver.gis.umn.edu/mapscript.html, and a working app is available for inspection in the mapserver test suite at http://arachnid.dnr.state.mn.us/ms_test/. Have fun, Ken Boss > > Hi All, > > > > I need to save several hundred images generated by successive Mapserv > > queries to disk as GIFs. I'd ideally like to just call Mapserv from within a > > Perl script and write the output to file but I can't do this. Does anyone > > have any suggestions. > > > > Use the mapserver/perl interface (aka mapscript)? From shayes at bigpond.net.au Fri Aug 18 06:59:25 2000 From: shayes at bigpond.net.au (shayes) Date: Fri, 18 Aug 2000 09:59:25 -0400 Subject: Mapserv in command line mode ? Message-ID: Hi All, I need to save several hundred images generated by successive Mapserv queries to disk as GIFs. I'd ideally like to just call Mapserv from within a Perl script and write the output to file but I can't do this. Does anyone have any suggestions. Regards Steven Hayes From teb at mallit.fr.umn.edu Fri Aug 18 07:00:08 2000 From: teb at mallit.fr.umn.edu (teb at mallit.fr.umn.edu) Date: Fri, 18 Aug 2000 10:00:08 -0400 Subject: offset symbols (fwd) Message-ID: From bogus@does.not.exist.com Mon Aug 14 22:57:48 2000 From: bogus@does.not.exist.com () Date: Tue, 15 Aug 2000 05:57:48 -0000 Subject: No subject Message-ID: -0500 (CDT) Received: from gaea.erin.gov.au ([155.187.1.20]) by proxy.ea.gov.au (8.9.2/EAFWv1) with ESMTP id PAA29051 for ; Tue, 15 Aug 2000 15:58:30 +1000 (EST) Received: from eos.erin.gov.au (eos [155.187.1.96]) by gaea.erin.gov.au (8.9.3/8.9.3) with ESMTP id PAA15785 for ; Tue, 15 Aug 2000 15:55:05 +1000 (EST) Received: from eos (eos [155.187.1.96]) by eos.erin.gov.au (8.8.5/8.8.5) with SMTP id PAA11567 for ; Tue, 15 Aug 2000 15:55:03 +1000 (EST) Message-Id: <200008150555.PAA11567 at eos.erin.gov.au> Date: Tue, 15 Aug 2000 15:55:03 +1000 (EST) From: John Hockaday Reply-To: John Hockaday Subject: offset symbols To: mapserver-info at lists.gis.umn.edu MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Content-MD5: Li8Fkad1JuMZKv0aJBD0bA== X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.4 SunOS 5.8 sun4u sparc Content-Length: 695 Hi, Does anyone know if symbols can be offsetted from the point location? OR Can labels use symbols for the text instead of fonts? I have to plot six different symbols, which could vary by six different colours, around some point data. The symbols need to be chosen by the "year" attribute in the attribute table and the colour needs be chosen by the "rate" attribute in the same table. I thought that I could have six layers, one for each year, and then colour the symbols by the "rate" attribute value. Each year layer could then be ploted on top of each other with the symbol at a different offset to the point for each year. Any thoughts to help me out? Thanks in advance. Johnh From christian at gottschling.net Fri Aug 18 07:00:08 2000 From: christian at gottschling.net (Christian) Date: Fri, 18 Aug 2000 10:00:08 -0400 Subject: Colorize a map Message-ID: Hello, I have a map here and I want to colorize "counties" (german ones) depending on their values in the dbf-File. I have found out how to label them with that data, but not how to give them a color depending on the value. We have different amounts of deliveries to the "counties" and now I want to present them by different colors. Any possibility within the mapfile? One problem could be that I don't know the highest value, it can differ. Many thanks! Greetings! Christian PS: Does anybody know that the archive-server for this list only shows 2 messages for August? -- christian From bfraser at geoanalytic.com Fri Aug 18 07:00:15 2000 From: bfraser at geoanalytic.com (Brent Fraser) Date: Fri, 18 Aug 2000 10:00:15 -0400 Subject: Setting up MapScript on NT References: <000201c0070b$7b904120$c5f98490@nsw.bigpond.net.au> Message-ID: I got as far as a mapscript DLL. When attempting to use it with Perl (ActivePerl ) I get "Error: Parse Exception" from Perl. I've found no solution to the problem. I think it may be related to DLL calling convention (how the values are passed from the exe to the DLL). The DLL might not be using the one that the ActivePerl exe expects. The answer may be to get the NT version of Swig to produce an ActivePerl-friendly interface definition with the correct calling convention. This is just a guess. Not too much doc on extending Perl on NT using Swig... Brent Fraser bfraser at geoanalytic.com GeoAnalytic Inc. #300 , 700 - 4th Avenue SW Calgary, AB Canada T2P 3J4 Tel: (403)213-2700 Fax: (403)213-2707 www.geoanalytic.com ----- Original Message ----- From: "shayes" To: Sent: Tuesday, August 15, 2000 4:52 PM Subject: Setting up MapScript on NT > Has anyone successfully managed to make MapScript work on NT. If so could > you explain how you did it ? > > Regards > > Steven Hayes > From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Fri Aug 18 07:03:06 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Fri, 18 Aug 2000 10:03:06 -0400 Subject: TrueType font support with PHP 3.0.15 on RH 6.2 ? Message-ID: Goodday, Has any one successfully used the PHP module with FreeType support ? Mine seems to be bombing when I switch to true type fonts ...The exact same mapfile works fine with Bitmap fonts ... Do I need some special FreeType support built into PHP ? I'm just using the standard RPM's ... Here's the info on PHP/Mapscript : MapScript Version 1.0.011 (Jun 28, 2000) MapServer Version 3.3.011 (pre-release) -PROJ.4 -FreeType -TIFF -EPPL7 -JPEG Although ... This was probably a nightly build ... could that be it ? Is the latest stable release as featureful as the nightly builds/CVS ? I remember I switched to using those because of some feature I wanted ... Anyways ... Anybody have any ideas ? Thanks, From danmo at videotron.ca Fri Aug 18 07:03:15 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Fri, 18 Aug 2000 10:03:15 -0400 Subject: TrueType font support with PHP 3.0.15 on RH 6.2 ? References: <2951561DB3DDD0118FEC00805FFE98050380C13D@s5-ccr-r1> Message-ID: "Doyon, Jean-Francois" wrote: > > Goodday, > > Has any one successfully used the PHP module with FreeType support ? > > Mine seems to be bombing when I switch to true type fonts ...The exact > same mapfile works fine with Bitmap fonts ... > > Do I need some special FreeType support built into PHP ? > > I'm just using the standard RPM's ... > Bonjour Jean-Francois, I have php_mapscript.so displaying FreeType fonts on my RedHat 6.2 system. However I am not using the PHP that came with RH6.2... I had to recompile my own because I needed the DBase module linked in. And following your message I tried switching back to the original PHP that came with RH6.2 and my application started crashing like yours as soon as it tries to display TT Fonts. A quick compare of the 2 phpinfo() outputs tells me that the PHP that came with RH included FreeType support but my new one didn't. that could explain the bug. I can give you a copy of my new libphp3.so if you want... it should solve your problem for now, until I have time to look into the real source of the bug. Later, -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ 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 Fri Aug 18 07:01:34 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 18 Aug 2000 10:01:34 -0400 Subject: offset symbols Message-ID: No, symbols cannot be offset at persent although I don't see why not. I'll look into adding this. There are work arounds. You can use truetype fonts as labels right? So there's no reason you can't use font symbols (i.e. circles and other shapes) instead of text. Use the class "TEXT" parameter to map a keyboard value to a symbol. With labels you can use the normal 9 positions and can even offset futher with the OFFSET parameter. I've done this in the past and it works fine. Note that because your label is actually the symbol you can't label these symbols without another layer. Steve >>> John Hockaday 08/15/00 00:57 AM >>> Hi, Does anyone know if symbols can be offsetted from the point location? OR Can labels use symbols for the text instead of fonts? I have to plot six different symbols, which could vary by six different colours, around some point data. The symbols need to be chosen by the "year" attribute in the attribute table and the colour needs be chosen by the "rate" attribute in the same table. I thought that I could have six layers, one for each year, and then colour the symbols by the "rate" attribute value. Each year layer could then be ploted on top of each other with the symbol at a different offset to the point for each year. Any thoughts to help me out? Thanks in advance. Johnh From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Fri Aug 18 07:03:16 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Fri, 18 Aug 2000 10:03:16 -0400 Subject: TrueType font support with PHP 3.0.15 on RH 6.2 ? Message-ID: Dan, Much thanks for the offer, but I've figured it out ... I've managed to compile a version of PHP that suits my needs and works with proper TTf support ... I did however HAVE to specify --without-ttf ... So I'm ok for now ... this does seem strange though, good thing I don't need it :) Thanks for the help, J.F. > ---------- > From: Daniel Morissette[SMTP:danmo at videotron.ca] > Sent: Thursday, August 17, 2000 3:27 PM > To: Doyon, Jean-Francois > Cc: mapserver-users at lists.gis.umn.edu > Subject: Re: TrueType font support with PHP 3.0.15 on RH 6.2 ? > > "Doyon, Jean-Francois" wrote: > > > > Goodday, > > > > Has any one successfully used the PHP module with FreeType support ? > > > > Mine seems to be bombing when I switch to true type fonts ...The exact > > same mapfile works fine with Bitmap fonts ... > > > > Do I need some special FreeType support built into PHP ? > > > > I'm just using the standard RPM's ... > > > > Bonjour Jean-Francois, > > I have php_mapscript.so displaying FreeType fonts on my RedHat 6.2 > system. However I am not using the PHP that came with RH6.2... I had to > recompile my own because I needed the DBase module linked in. > > And following your message I tried switching back to the original PHP > that came with RH6.2 and my application started crashing like yours as > soon as it tries to display TT Fonts. > > A quick compare of the 2 phpinfo() outputs tells me that the PHP that > came with RH included FreeType support but my new one didn't. that > could explain the bug. > > I can give you a copy of my new libphp3.so if you want... it should > solve your problem for now, until I have time to look into the real > source of the bug. > > Later, > -- > ------------------------------------------------------------ > Daniel Morissette danmo at videotron.ca > http://pages.infinit.net/danmo/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. > From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Fri Aug 18 07:03:07 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Fri, 18 Aug 2000 10:03:07 -0400 Subject: FW: TrueType font support with PHP 3.0.15 on RH 6.2 ? Message-ID: In further to this posting, looks like there's a sig11 from apache (Or does PHP run as a diffferent process ?) : Here is the error_log content : [Thu Aug 17 13:38:44 2000] [notice] child pid 14811 exit signal Segmentation fault (11) [Thu Aug 17 13:38:52 2000] [notice] child pid 19103 exit signal Segmentation fault (11) [Thu Aug 17 13:44:36 2000] [notice] child pid 14816 exit signal Segmentation fault (11) [Thu Aug 17 13:45:04 2000] [notice] child pid 14809 exit signal Segmentation fault (11) [Thu Aug 17 13:45:09 2000] [notice] child pid 20351 exit signal Segmentation fault (11) [Thu Aug 17 13:49:00 2000] [notice] child pid 18384 exit signal Segmentation fault (11) This bites, I really need the TTF support ! J.F. > ---------- > From: Doyon, Jean-Francois > Sent: Thursday, August 17, 2000 1:58 PM > To: mapserver-users at lists.gis.umn.edu > Subject: TrueType font support with PHP 3.0.15 on RH 6.2 ? > > Goodday, > > Has any one successfully used the PHP module with FreeType support ? > > Mine seems to be bombing when I switch to true type fonts ...The exact > same mapfile works fine with Bitmap fonts ... > > Do I need some special FreeType support built into PHP ? > > I'm just using the standard RPM's ... > > Here's the info on PHP/Mapscript : > > MapScript Version 1.0.011 (Jun 28, 2000) > MapServer Version 3.3.011 (pre-release) -PROJ.4 -FreeType -TIFF -EPPL7 > -JPEG > > Although ... This was probably a nightly build ... could that be it ? Is > the latest > stable release as featureful as the nightly builds/CVS ? I remember I > switched to > using those because of some feature I wanted ... Anyways ... > > Anybody have any ideas ? > > Thanks, > > From steve.lime at dnr.state.mn.us Fri Aug 18 07:02:59 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 18 Aug 2000 10:02:59 -0400 Subject: Colorize a map Message-ID: This is what classes are used for. You can set up expressions to classify each county according to a particular xbase attribute. You'll get better performance if you can preclassify values but it can be done on-the-fly if you have to. Here's a two class example CLASS EXPRESSION ([DELIVERIES] > 0 and [DELEVERIES] < 1.5) COLOR 255 0 0 END CLASS EXPRESSION ([DELIVERIES] > 1.5) COLOR 0 255 0 END Hope this helps... Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Christian 08/15/00 01:50PM >>> Hello, I have a map here and I want to colorize "counties" (german ones) depending on their values in the dbf-File. I have found out how to label them with that data, but not how to give them a color depending on the value. We have different amounts of deliveries to the "counties" and now I want to present them by different colors. Any possibility within the mapfile? One problem could be that I don't know the highest value, it can differ. Many thanks! Greetings! Christian PS: Does anybody know that the archive-server for this list only shows 2 messages for August? -- christian From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Fri Aug 18 08:47:03 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Fri, 18 Aug 2000 11:47:03 -0400 Subject: TrueType font support with PHP 3.0.15 on RH 6.2 ? Message-ID: <2951561DB3DDD0118FEC00805FFE98050380C140@s5-ccr-r1> Goodday, I just have a basic PHP/Mapscript question .. this should be obvious but I can't seem to get it, maybe I'm not understanding PHP Objects well enough just yet ... I'm trying to get the extent of a map (as set in the map file) into variables for manipulation, but am not having any luck. I've tried things like : $minx = $map->extent->minx; $minx = $map->extent(minx); $extent = $map->extent; echo $extent->minx and a few more ... but I never get anything returned ! (No errors though). What am I missing here ? J.F. > ---------- > From: Daniel Morissette[SMTP:danmo at videotron.ca] > Sent: Friday, August 18, 2000 10:03 AM > To: Doyon, Jean-Francois; ddnebert at fgdc.gov > Cc: mapserver-users at lists.gis.umn.edu > Subject: Re: TrueType font support with PHP 3.0.15 on RH 6.2 ? > > > "Doyon, Jean-Francois" wrote: > > > > Goodday, > > > > Has any one successfully used the PHP module with FreeType support ? > > > > Mine seems to be bombing when I switch to true type fonts ...The exact > > same mapfile works fine with Bitmap fonts ... > > > > Do I need some special FreeType support built into PHP ? > > > > I'm just using the standard RPM's ... > > > > Bonjour Jean-Francois, > > I have php_mapscript.so displaying FreeType fonts on my RedHat 6.2 > system. However I am not using the PHP that came with RH6.2... I had to > recompile my own because I needed the DBase module linked in. > > And following your message I tried switching back to the original PHP > that came with RH6.2 and my application started crashing like yours as > soon as it tries to display TT Fonts. > > A quick compare of the 2 phpinfo() outputs tells me that the PHP that > came with RH included FreeType support but my new one didn't. that > could explain the bug. > > I can give you a copy of my new libphp3.so if you want... it should > solve your problem for now, until I have time to look into the real > source of the bug. > > Later, > -- > ------------------------------------------------------------ > Daniel Morissette danmo at videotron.ca > http://pages.infinit.net/danmo/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. > > From danmo at videotron.ca Fri Aug 18 09:31:35 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Fri, 18 Aug 2000 12:31:35 -0400 Subject: TrueType font support with PHP 3.0.15 on RH 6.2 ? References: <2951561DB3DDD0118FEC00805FFE98050380C140@s5-ccr-r1> Message-ID: <399D64E7.4F199E9@videotron.ca> "Doyon, Jean-Francois" wrote: > > I'm trying to get the extent of a map (as set in the map file) into > variables > for manipulation, but am not having any luck. > > I've tried things like : > > $minx = $map->extent->minx; > $minx = $map->extent(minx); > $extent = $map->extent; > echo $extent->minx > > and a few more ... but I never get anything returned ! (No errors though). > Assuming your Map Object is called "$map", then echo $map->extent->minx; or $minx = $map->extent->minx; should both work... we use it a lot. So it must be something else that you overlooked in your function. BTW, $extent = $map->extent; echo $extent->minx; should work too. -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From pgallen at randomlogic.com Fri Aug 18 17:19:14 2000 From: pgallen at randomlogic.com (Paul G. Allen) Date: Fri, 18 Aug 2000 17:19:14 -0700 Subject: users creating data References: <000701bffcd9$eddd0150$c238b2d0@bob> Message-ID: <399DD281.D8BA6A21@randomlogic.com> I'm wondering why this was posted again when I sent it a week ago (or more). I know I didn't send it again, and I know I saw it posted the first time I sent it. I even got an answer from Steve the first time. (and I see I got an answer from him again) Interesting. PGA "Paul G. Allen" wrote: > > I am using DB2 for handling my data outside of that which is in the > shapefiles. I am just learning DB2 and creating my database (it's > created for the most part, but I need to import all my data into it). > Then I'll have to learn the Perl DBD-DB2 module, etc. so I can access > the data. I noticed when reading the DB2 documentation, there is a GIS > extension available. When I saw this, I thought "Wouldn't it be great > if MapServer and/or MapScript could handle interaction with a DB2 GIS > database directly?" > > Maybe it can, maybe it can't, maybe it will, maybe it won't, but it is > something I thought I'd pose on the list. > > PGA From steve.lime at dnr.state.mn.us Fri Aug 18 20:47:06 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 18 Aug 2000 22:47:06 -0500 Subject: users creating data Message-ID: Seems to be a malfunction on the listserver someplace. May be related to some date problems the UMN had on their revamped machine. I recieved 30 or so old messages this morning. Hopefully that was isolated to me. The listserv seems to be running fine now... Steve >>> "Paul G. Allen" 08/18/00 19:20 PM >>> I'm wondering why this was posted again when I sent it a week ago (or more). I know I didn't send it again, and I know I saw it posted the first time I sent it. I even got an answer from Steve the first time. (and I see I got an answer from him again) Interesting. PGA "Paul G. Allen" wrote: > > I am using DB2 for handling my data outside of that which is in the > shapefiles. I am just learning DB2 and creating my database (it's > created for the most part, but I need to import all my data into it). > Then I'll have to learn the Perl DBD-DB2 module, etc. so I can access > the data. I noticed when reading the DB2 documentation, there is a GIS > extension available. When I saw this, I thought "Wouldn't it be great > if MapServer and/or MapScript could handle interaction with a DB2 GIS > database directly?" > > Maybe it can, maybe it can't, maybe it will, maybe it won't, but it is > something I thought I'd pose on the list. > > PGA From surveychula at yahoo.com Fri Aug 18 21:41:03 2000 From: surveychula at yahoo.com (Phisan Santitamnont) Date: Fri, 18 Aug 2000 21:41:03 -0700 (PDT) Subject: Trouble with mailing-list Message-ID: <20000819044103.19736.qmail@web5503.mail.yahoo.com> Hi Steve, What's wrong with the mailing-list. We are quite worry about this? Is there any continuation ? We are still faithful to Minnesota Mapserver. Plese notify us. Regards, Phisan Santitamnont __________________________________________________ Do You Yahoo!? Send instant messages & get email alerts with Yahoo! Messenger. http://im.yahoo.com/ From christian at gottschling.net Sat Aug 19 01:53:52 2000 From: christian at gottschling.net (Christian) Date: Sat, 19 Aug 2000 10:53:52 +0200 Subject: Colorize a map In-Reply-To: Message-ID: <4.3.2.7.0.20000819104857.00ae5ed0@ferklin> Hello! >How do you mean shading? For example, the county with the highest amount of deliveries should be dark red and the lowest should be white or whatever. That the map gets a kind of gradient color. But the highest value can differ and the lowest, too. Many thanks and greetings! -- Christian -- christian From bowenj at peligroso.gaiaenv.com Mon Aug 21 06:47:11 2000 From: bowenj at peligroso.gaiaenv.com (Jim T. Bowen (GAIA Consultants Inc.)) Date: Mon, 21 Aug 2000 07:47:11 -0600 Subject: users creating data References: Message-ID: <39A132DF.CBE2067@gaiaenv.com> We received the 'dump' here as well. Cheers, Jim Stephen Lime wrote: > > Seems to be a malfunction on the listserver someplace. May be related to some date problems the UMN had on their revamped machine. I recieved 30 or so old messages this morning. Hopefully that was isolated to me. The listserv seems to be running fine now... > > Steve > > >>> "Paul G. Allen" 08/18/00 19:20 PM >>> > I'm wondering why this was posted again when I sent it a week ago (or > more). I know I didn't send it again, and I know I saw it posted the > first time I sent it. > > I even got an answer from Steve the first time. (and I see I got an > answer from him again) > > Interesting. > > PGA > > "Paul G. Allen" wrote: > > > > I am using DB2 for handling my data outside of that which is in the > > shapefiles. I am just learning DB2 and creating my database (it's > > created for the most part, but I need to import all my data into it). > > Then I'll have to learn the Perl DBD-DB2 module, etc. so I can access > > the data. I noticed when reading the DB2 documentation, there is a GIS > > extension available. When I saw this, I thought "Wouldn't it be great > > if MapServer and/or MapScript could handle interaction with a DB2 GIS > > database directly?" > > > > Maybe it can, maybe it can't, maybe it will, maybe it won't, but it is > > something I thought I'd pose on the list. > > > > PGA -- _______________________________________ In order to reduce SPAM (i.e., junk e-mail), all e-mail to me must include the following somewhere in the body of the message: J*I*M _______________________________________ _______________________________________ Jim T. Bowen, M.Sc., President Suite 306, 822-11th Ave. S.W. Calgary, Alberta, Canada T2R 0E5 Ph: 403-571-7213 Fax: 403-571-7211 bowenj at gaiaenv.com http://www.gaiaenv.com _______________________________________ From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Mon Aug 21 08:53:24 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Mon, 21 Aug 2000 11:53:24 -0400 Subject: $map->extent->set method behavior Message-ID: <2951561DB3DDD0118FEC00805FFE98050380C143@s5-ccr-r1> Hello everyone ... I'm trying to set new extents for a map using PHP/Mapscript, and noticed that the set() method called on the extent of a map object seems to loose the decimal places. I determine new extents through some calculations, and then try to set them, but I keep loosing all the decimal places ! For instance, if I calculate MINX to be $newminx = 12345.67890 and then do : $map->extent->set(minx,$newminx); And then echo the result, I just get 12345 ! This is a problem for me when I zoom in ... I tried putting double quotes around "minx" the "string" property_name (as per docs), but no luck. I even tried putting them in around $newminx, but that of course didn't help. The values are described as "doubles" in the docs as well, so why am I loosing accuracy ? Thanks for the help ! J.F. > ---------- > From: Daniel Morissette[SMTP:danmo at videotron.ca] > Sent: Friday, August 18, 2000 12:31 PM > To: Doyon, Jean-Francois > Cc: mapserver-users at lists.gis.umn.edu > Subject: Re: TrueType font support with PHP 3.0.15 on RH 6.2 ? > > "Doyon, Jean-Francois" wrote: > > > > I'm trying to get the extent of a map (as set in the map file) into > > variables > > for manipulation, but am not having any luck. > > > > I've tried things like : > > > > $minx = $map->extent->minx; > > $minx = $map->extent(minx); > > $extent = $map->extent; > > echo $extent->minx > > > > and a few more ... but I never get anything returned ! (No errors > though). > > > > Assuming your Map Object is called "$map", then > > echo $map->extent->minx; > or > $minx = $map->extent->minx; > > should both work... we use it a lot. So it must be something else that > you overlooked in your function. > > BTW, $extent = $map->extent; > echo $extent->minx; > should work too. > > -- > ------------------------------------------------------------ > Daniel Morissette danmo at videotron.ca > http://pages.infinit.net/danmo/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. > From sjohnston at satshot.com Mon Aug 21 11:19:58 2000 From: sjohnston at satshot.com (Shawn L Johnston) Date: Mon, 21 Aug 2000 13:19:58 -0500 Subject: MapServer Demo Message-ID: <000e01c00b9c$6a1293e0$4ce946cf@cel466> Hi all, I'm working trying to get the demo running on Windows 2000 with IIS 5.0. When I attempt to run the demo I receive the following error: msSaveImage(): Unable to access file. (c:\inetpub\wwwroot\ms_demo\DEMO9668815781436.gif) I've looked through the mailing list archives (plus a few great suggestions from others) and it appears that I'm probably not setting the paths correctly in the mapfile. I've tried commenting out everything in the mapfile and playing with different ways to specify the paths but still without luck. I've also checked the permissions with IIS and believe that I have them set correctly. Basic problem I know, but any suggestions would be greatly appreciated. Thanks, Shawn ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- # # Start of map file # NAME DEMO STATUS ON SIZE 600 600 #SHADESET "c:\inetpub\wwwroot\ms_demo\symbols\shade.sym" #MARKERSET "c:\inetpub\wwwroot\ms_demo\symbols\marker.sym" #LINESET "c:\inetpub\wwwroot\ms_demo\symbols\line.sym" EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897 UNITS METERS SHAPEPATH "c:\inetpub\wwwroot\ms_demo\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 "c:\inetpub\wwwroot\ms_demo\demo_header.html" TEMPLATE "c:\inetpub\wwwroot\ms_demo\demo.html" FOOTER "c:\inetpub\wwwroot\ms_demo\demo_footer.html" MINSCALE 1000 MAXSCALE 1550000 IMAGEPATH "c:\inetpub\wwwroot\ms_demo\" # IMAGEURL "c:\inetpub\wwwroot\ms_demo\" # LOG "demo.log" END #QUERYMAP # SIZE 200 200 # STATUS ON # STYLE HILITE # COLOR 255 0 0 #END # # Start of reference map # REFERENCE IMAGE "c:\Inetpub\wwwroot\ms_demo\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 "c:\inetpub\wwwroot\ms_demo\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 # Map File -------------- next part -------------- An HTML attachment was scrubbed... URL: From johnh at erin.gov.au Mon Aug 21 21:50:04 2000 From: johnh at erin.gov.au (John Hockaday) Date: Tue, 22 Aug 2000 14:50:04 +1000 (EST) Subject: offset symbols Message-ID: <200008220450.OAA16219@eos.erin.gov.au> Steve, No matter what key strokes I use I either get an "getSymbol(): Incorrect symbol. (0):(376) " error or I get a square for the symbol. Do I need to generate a key map file? and if I do what is the format and name of the map file? I'm just using the Solaris openwindows Symbols.ttf file for the font file. Johnh > Date: Fri, 18 Aug 2000 08:21:13 -0500 > From: "Stephen Lime" > To: , > Subject: Re: offset symbols > Mime-Version: 1.0 > Content-Disposition: inline > Content-Transfer-Encoding: 8bit > X-MIME-Autoconverted: from quoted-printable to 8bit by gaea.erin.gov.au id XAA07834 > > The symbol fontsets generally don't have many characters so you can use just letters on your keyboard. I believe there is a utility included with NT for example that will let you preview all characters in a font. So if "g = circle" use "g" in the TEXT parameter. In most cases thats all there is to it. Freetype does recognize the ? type mapping but symbol fonts don't seem to contain those characters very often. Keep it simple. a=, b= and so on. > > Steve > > >>> John Hockaday 08/18/00 02:18 AM >>> > Steve, > > That's been a big help. I've managed to get labels to use the > Symbol.ttf font but I can't seem to work out the key mapping. All I > seem to be able to get is a square. > > Does anyone know the syntax for the key mapping? I've tried character > reference mapping eg. ? and hexadecimal mapping, such as, \161 and > x161 but I either get an "incorrect symbol" error or a square. > > Thanks in advance. > > > Johnh > > > Stephen Lime" writes > > > > No, symbols cannot be offset at persent although I don't see why not. I'll > look into adding this. There are work arounds. You can use truetype fonts as > labels right? So there's no reason you can't use font symbols (i.e. circles and > other shapes) instead of text. Use the class "TEXT" parameter to map a keyboard > value to a symbol. With labels you can use the normal 9 positions and can even > offset futher with the OFFSET parameter. I've done this in the past and it works > fine. Note that because your label is actually the symbol you can't label these > symbols without another layer. > > > > Steve > > > > >>> John Hockaday 08/15/00 00:57 AM >>> > > Hi, > > > > Does anyone know if symbols can be offsetted from the point location? > > > > OR > > > > Can labls use symbols for the text instead of fonts? > > > > I have to plot six different symbols, which could vary by six different > > colours, around some point data. The symbols need to be chosen by the > > "year" attribute in the attribute table and the colour needs be chosen > > by the "rate" attribute in the same table. > > > > I thought that I could have six layers, one for each year, and then > > colour the symbols by the "rate" attribute value. Each year layer > > could then be ploted on top of each other with the symbol at a > > different offset to the point for each year. > > > > Any thoughts to help me out? > > > > Thanks in advance. > > > > > > Johnh > > > > > > From danmo at videotron.ca Mon Aug 21 22:44:30 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Tue, 22 Aug 2000 01:44:30 -0400 Subject: $map->extent->set method behavior References: <2951561DB3DDD0118FEC00805FFE98050380C143@s5-ccr-r1> Message-ID: <39A2133E.77B4D09C@videotron.ca> "Doyon, Jean-Francois" wrote: > > Hello everyone ... > > I'm trying to set new extents for a map using PHP/Mapscript, and noticed > that > the set() method called on the extent of a map object seems to loose the > decimal places. > Jean-Francois, As Assefa pointed in an Email to you earlier, there was a bug in the PHP wrapper: the argument was treated as an integer and that explains the loss of decimal places that you experienced. Until the fixed version is available, you can use: $map->extent->setextent($minx, $miny, $maxx, $maxy); the setextent() method does not have the problem that set() has. The map class also has a setextent() method. The difference is that $map->setextent() will correct the extents (width/height ratio) before setting the minx,miny,maxx,maxy values ... it's a correction that MapServer does automatically anyways before redrawing the map. So immediately after the call to $map->setextent() you can look at the extent values ($map->extent->minx, etc.) to find out exactly what extents the lower-level MapServer will use when it will redraw the map. -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From sjohnston at satshot.com Tue Aug 22 13:35:10 2000 From: sjohnston at satshot.com (Shawn L Johnston) Date: Tue, 22 Aug 2000 15:35:10 -0500 Subject: mapserver runs! Message-ID: <002201c00c78$778aae40$4ce946cf@cel466> I'd like to give a note of thanks to the help from various people on this list. I finally managed to get mapserver running on windows 2000 though I dumped IIS 5.0 and switched to Apache. For whatever reason with IIS it appears that I wasn't setting the permissions correctly. Cheers, Shawn -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Tue Aug 22 15:19:22 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Tue, 22 Aug 2000 18:19:22 -0400 Subject: $map->extent->set method behavior Message-ID: <2951561DB3DDD0118FEC00805FFE98050380C145@s5-ccr-r1> Dan, Yup, I got his e-mail. He sent me the necessary corrections ot the code. I recompiled, and voila ! Now I'm having problems with the zoomrectangle function, I'm getting a sig11 on that too ! So far I've tried : $pixbox = ms_newPointObj($minpt[0],$minpt[1],$axpt[0],$maxpt[1]); $extent = ms_newPointObj($HTTP_POST_VARS["minx"],$HTTP_POST_VARS["miny"],$HTTP_POST_VA RS["maxx"],$HTTP_POST_VARS["maxy"]); $map->zoomrectangle($pixbox,$map->width,$map->height,$extent); And also putting all the variables straight into the zoomrectangle : $map->zoomrectangle($minpt[0],$minpt[1], .... I'm gonna try using the zoompoint to pan see if the same thing happens ... Also, the pixel coordinates, should they be passed with 0,0 top left (As the ROSA applet does it :) or bottom left ? Thanks, J.F. > ---------- > From: Daniel Morissette[SMTP:danmo at videotron.ca] > Sent: Tuesday, August 22, 2000 1:44 AM > To: Doyon, Jean-Francois > Cc: mapserver-users at lists.gis.umn.edu > Subject: Re: $map->extent->set method behavior > > "Doyon, Jean-Francois" wrote: > > > > Hello everyone ... > > > > I'm trying to set new extents for a map using PHP/Mapscript, and noticed > > that > > the set() method called on the extent of a map object seems to loose the > > decimal places. > > > > Jean-Francois, > > As Assefa pointed in an Email to you earlier, there was a bug in the PHP > wrapper: the argument was treated as an integer and that explains the > loss of decimal places that you experienced. > > Until the fixed version is available, you can use: > > $map->extent->setextent($minx, $miny, $maxx, $maxy); > > the setextent() method does not have the problem that set() has. > > The map class also has a setextent() method. The difference is that > $map->setextent() will correct the extents (width/height ratio) before > setting the minx,miny,maxx,maxy values ... it's a correction that > MapServer does automatically anyways before redrawing the map. So > immediately after the call to $map->setextent() you can look at the > extent values ($map->extent->minx, etc.) to find out exactly what > extents the lower-level MapServer will use when it will redraw the map. > > -- > ------------------------------------------------------------ > Daniel Morissette danmo at videotron.ca > http://pages.infinit.net/danmo/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. > From danmo at videotron.ca Tue Aug 22 16:31:55 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Tue, 22 Aug 2000 19:31:55 -0400 Subject: $map->extent->set method behavior References: <2951561DB3DDD0118FEC00805FFE98050380C145@s5-ccr-r1> Message-ID: <39A30D6B.7ABBB1BE@videotron.ca> "Doyon, Jean-Francois" wrote: > > Now I'm having problems with the zoomrectangle function, I'm getting a sig11 > on that too ! > > So far I've tried : > > $pixbox = ms_newPointObj($minpt[0],$minpt[1],$axpt[0],$maxpt[1]); > $extent = > ms_newPointObj($HTTP_POST_VARS["minx"],$HTTP_POST_VARS["miny"],$HTTP_POST_VA > RS["maxx"],$HTTP_POST_VARS["maxy"]); > $map->zoomrectangle($pixbox,$map->width,$map->height,$extent); > I'm not sure why you get a seg. fault (we'll have to look into that), but I suspect that the problem must be that you create $pixbox and $extent as pointObj instead of $rectObj: $pixbox = ms_newRectObj(); $pixbox->setextent($minpt[0],$minpt[1],$maxpt[0],$maxpt[1]); $extent = ms_newRectObj(); $extent->setextent($HTTP_POST_VARS["minx"],$HTTP_POST_VARS["miny"], $HTTP_POST_VARS["maxx"],$HTTP_POST_VARS["maxy"]); $map->zoomrectangle($pixbox,$map->width,$map->height,$extent); Also, the pointObj and rectObj constructors do not accept arguments to initialize the new object (like you tried to do), but that could be useful sometimes... I'll add that to the ToDo list. I just checked the PHP3 README documenting the classes and realized that the rectObj class is not properly documented in there. It's incomplete and contains a copy/paste error... I'll fix that. > > Also, the pixel coordinates, should they be passed with 0,0 top left > (As the > ROSA applet does it :) or bottom left ? Pixel coordinates passed to $map->zoomrectangle() or $map->zoompoint() are with (0,0) at the top-left. I'll add a note about that in the docs. Regards, -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Wed Aug 23 11:50:35 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Wed, 23 Aug 2000 14:50:35 -0400 Subject: ShapefileObj ? Message-ID: <2951561DB3DDD0118FEC00805FFE98050380C14C@s5-ccr-r1> Hello everyone, it's me again :) I was wondering if the the ms_newShapefileObj (PHP/Mapscript) only supports shapes .(shp,.shx), or also attributes (.dbf) ? I need to map the results of a search from a database, and I was thinking one easy way to do it might be to create a temporary shape file with the results (shapes and attributes), and then work from there (It just so happens that the results come in a different projection (Decimal Degrees instead of lambert), so I was going to take advantage of the Proj.4 features as well ) ... The only problem right now is that the method doesn't seem to talk about attribute data, only shapes. And even then, when I add a shape, I won't know or have the index value, so that maybe I could use the PHP built in DBase routines to handle the attribute part ... Meaning I can't maintain the relationship between a shape and it's attributes ... Has anybody come across this type of scenario ? Any suggestions on how best to proceed ? Thanks ! From steve.lime at dnr.state.mn.us Wed Aug 23 12:26:09 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 23 Aug 2000 14:26:09 -0500 Subject: ShapefileObj ? Message-ID: The main mapscript just considers the shapes, not the attributes. This is simply because there are much better tools available for accessing .dbf files. In perl I've just used mapscript and the xbase module to build the whole shapefile. When you write the shape, write the attributes. Haven't had any problems keeping things in sync. There is no relationship other than order so this is the easiest way to do it. Note that shapelib, the lib behind the scripting doesn't have a tight integration between the shape and the attributes so you have use the same processes in C as well. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Doyon, Jean-Francois" 08/23/00 01:50PM >>> Hello everyone, it's me again :) I was wondering if the the ms_newShapefileObj (PHP/Mapscript) only supports shapes .(shp,.shx), or also attributes (.dbf) ? I need to map the results of a search from a database, and I was thinking one easy way to do it might be to create a temporary shape file with the results (shapes and attributes), and then work from there (It just so happens that the results come in a different projection (Decimal Degrees instead of lambert), so I was going to take advantage of the Proj.4 features as well ) ... The only problem right now is that the method doesn't seem to talk about attribute data, only shapes. And even then, when I add a shape, I won't know or have the index value, so that maybe I could use the PHP built in DBase routines to handle the attribute part ... Meaning I can't maintain the relationship between a shape and it's attributes ... Has anybody come across this type of scenario ? Any suggestions on how best to proceed ? Thanks ! From danmo at videotron.ca Wed Aug 23 12:42:42 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Wed, 23 Aug 2000 15:42:42 -0400 Subject: ShapefileObj ? References: <2951561DB3DDD0118FEC00805FFE98050380C14C@s5-ccr-r1> Message-ID: <39A42932.F1D4D2DB@videotron.ca> "Doyon, Jean-Francois" wrote: > > Hello everyone, it's me again :) > > I was wondering if the the ms_newShapefileObj (PHP/Mapscript) only supports > shapes .(shp,.shx), or also attributes (.dbf) ? > Hello JF, me again! :) MapServer concentrates on the geographical stuff... you have to use the PHP DBase module to create your DBF file. On Windows there is a PHP3_DBASE.DLL that you can load, and on Unix you have to configure PHP with the --with-dbase switch before you compile it. > > And even then, when I add a shape, I won't know or have the index value, so > that maybe I could use the PHP > built in DBase routines to handle the attribute part ... Meaning I can't > maintain the relationship between a shape > and it's attributes ... > It's simple... every time you write a shape, write a record to the DBF file and you'll be OK. > Has anybody come across this type of scenario ? Any suggestions on how best > to proceed ? I attached at the end of this message a small PHP script that creates a SHP file and the corresponding DBF records. (Humm... I think this could be a nice one to include in the examples directory in the PHP source code distribution... I'll add it now.) -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. -------------- next part -------------- addXY($x, $y); $oShp->add( $oLine ); $shpFile->addShape($oShp); // Write attribute record dbase_add_record($dbfFile, array($programId)); } $shpFname = "/tmp/shptest"; $shpFile = ms_newShapeFileObj( $shpFname, MS_SHP_POINT); $dbfFile = dbase_create( $shpFname.".dbf", array(array("PROG_ID", "N", 5, 0))); createPoint( 12, 34, 111); createPoint( 22, 14, 222); createPoint( 10, 20, 333); echo "Shapes Created.
"; //---------------------------------------------------------- // done... cleanup //---------------------------------------------------------- $shpFile->free(); echo "Shape File ($shpFname) closed.
"; echo "Dbase file closed.
"; dbase_close($dbfFile); ?> From kames at keyspanenergy.com Thu Aug 24 07:05:05 2000 From: kames at keyspanenergy.com (Kieran J. Ames) Date: Thu, 24 Aug 2000 10:05:05 -0400 Subject: Off Topic Question Message-ID: <39A52B91.10C5FC85@keyspanenergy.com> Anyone have any ideas where I can find-license-purchase street data... as in geocoding (from to - left right, etc) that INCLUDES Cross Streets? I want to be able to input On-Street and Cross-Streets and return the valid house numbers that are in that segment. TIA Kieran From lrn at zeppo.geosurv.gov.nf.ca Thu Aug 24 07:06:44 2000 From: lrn at zeppo.geosurv.gov.nf.ca (Larry Nolan) Date: Thu, 24 Aug 2000 11:36:44 -0230 Subject: CLASS EXPRESSION using NOT or NE Message-ID: <006301c00dd4$88c84cf0$0a188bc0@geosurv.gov.nf.ca> Hi, I have a shape file with up to 20 possible feature codes and there is only 1 that I don't want displayed. I am trying to use the CLASS Expression functions but with out any luck. What I am trying to use is NE operator. Does one exist. CLASSITEM DESCRIPTIO CLASS EXPRESSION ([DESCRIPTIO] ne 'Virtual Line') SYMBOL 0 OUTLINECOLOR 0 0 255 COLOR 0 0 255 END # CLASS but this does not work. Any ideas. Larry Nolan St. John's, Newfoundland, Canada voice (709) 729-2168 email lrn at zeppo.geosurv.gov.nf.ca From lrn at zeppo.geosurv.gov.nf.ca Thu Aug 24 07:34:30 2000 From: lrn at zeppo.geosurv.gov.nf.ca (Larry Nolan) Date: Thu, 24 Aug 2000 12:04:30 -0230 Subject: line drawing errors Message-ID: <007301c00dd8$6a3180a0$0a188bc0@geosurv.gov.nf.ca> Has anyone noticed line drawing errors with mapserver 3.01 on NT. Sometimes there is an extra segment drawn connecting the beginning and end points of lines. I put a image on my website at http://gis.geosurv.gov.nf.ca/mrights/map/LineErrors.gif Larry Nolan St. John's, Newfoundland, Canada voice (709) 729-2168 email lrn at zeppo.geosurv.gov.nf.ca From steve.lime at dnr.state.mn.us Thu Aug 24 08:14:45 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 24 Aug 2000 10:14:45 -0500 Subject: line drawing errors Message-ID: Usually this is caused by drawing line shapefiles as TYPE POLYLINE instead of LINE. Polygons and polylines are forced to have the first point be the same as the last point. This is carryover from the ESRI shapefile spec. Can you check the map file you're using? Newish versions of the code catch this condition as an error. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Larry Nolan" 08/24/00 09:34AM >>> Has anyone noticed line drawing errors with mapserver 3.01 on NT. Sometimes there is an extra segment drawn connecting the beginning and end points of lines. I put a image on my website at http://gis.geosurv.gov.nf.ca/mrights/map/LineErrors.gif Larry Nolan St. John's, Newfoundland, Canada voice (709) 729-2168 email lrn at zeppo.geosurv.gov.nf.ca From steve.lime at dnr.state.mn.us Thu Aug 24 08:41:02 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 24 Aug 2000 10:41:02 -0500 Subject: CLASS EXPRESSION using NOT or NE Message-ID: You need to make sure all vars that need to be considered as strings are quoted if they contain special characters. So try: EXPRESSION ('[DESCRIPTIO]' ne 'Virtual Line') Yes, this could be done automatically but often users will store numbers as strings or want to reference numbers as strings so I've opted for flexibility. Note that CLASSITEM is not necessary when using logical expressions although I plan to add an optimization that will use it in the future. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Larry Nolan" 08/24/00 09:06AM >>> Hi, I have a shape file with up to 20 possible feature codes and there is only 1 that I don't want displayed. I am trying to use the CLASS Expression functions but with out any luck. What I am trying to use is NE operator. Does one exist. CLASSITEM DESCRIPTIO CLASS EXPRESSION ([DESCRIPTIO] ne 'Virtual Line') SYMBOL 0 OUTLINECOLOR 0 0 255 COLOR 0 0 255 END # CLASS but this does not work. Any ideas. Larry Nolan St. John's, Newfoundland, Canada voice (709) 729-2168 email lrn at zeppo.geosurv.gov.nf.ca From kafka at email.cz Thu Aug 24 22:16:52 2000 From: kafka at email.cz (Stepan Kafka) Date: Fri, 25 Aug 2000 07:16:52 +0200 Subject: line drawing errors In-Reply-To: <007301c00dd8$6a3180a0$0a188bc0@geosurv.gov.nf.ca> Message-ID: <000201c00e53$ade14530$fb01a8c0@gis2.oku-kh.cz> Use TYPE=LINE instead of POLYLINE in your MAP file to get right result. Stepan Kafka > Has anyone noticed line drawing errors with mapserver 3.01 on NT. > Sometimes > there is an extra segment drawn connecting the beginning and end points of > lines. I put a image on my website at > http://gis.geosurv.gov.nf.ca/mrights/map/LineErrors.gif > > > Larry Nolan > St. John's, Newfoundland, Canada > > voice (709) 729-2168 > email lrn at zeppo.geosurv.gov.nf.ca > > > From teb at mallit.fr.umn.edu Mon Aug 28 06:31:55 2000 From: teb at mallit.fr.umn.edu (teb) Date: Mon, 28 Aug 2000 08:31:55 -0500 (CDT) Subject: fwd: PHP/Mapscript Installation Message-ID: <200008281331.IAA26583@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: mark.wilson at rohoel.at X-Lotus-FromDomain: RAG To: mapserver-info at lists.gis.umn.edu Date: Mon, 28 Aug 2000 09:07:13 +0200 Subject: PHP/Mapscript Installation Mime-Version: 1.0 Content-Disposition: inline My site is hosted by a third party. Fortunately I have managed to successfully install Mapserver to work in my own cgi-bin. I was rather hoping I could do the same for PHP/Mapscript, but I think I may have reached the end of the road. My host provider had to restore the PHP and Apache src and build directories, but it looks like these do not exactly match their current environment and I get the following errors: >/usr/src/local/php/php.h:184: ap_config.h: No such file or directory >/usr/src/local/php/php.h:190: ap_compat.h: No such file or directory >/usr/src/local/php/php.h:192: httpd.h: No such file or directory >/usr/src/local/php/php.h:193: http_main.h: No such file or directory >/usr/src/local/php/php.h:194: http_core.h: No such file or directory >/usr/src/local/php/php.h:195: http_request.h: No such file or directory >/usr/src/local/php/php.h:196: http_protocol.h: No such file or directory >/usr/src/local/php/php.h:197: http_config.h: No such file or directory >/usr/src/local/php/php.h:198: http_log.h: No such file or directory When I reported this to them, they replied: >do an autoconf, ap_config.h and ap_compat.h are >not available. > >The http*.h files are in /usr/src/local/apache. I am now out of my depth! Is there anything feasible (not too complicated) to be done here, or do I need to start reading a good beginners guide to Perl (for the inbuilt Mapscript functionality)? I just need to know which is the most likely "path of least resistance"! TIA, Mark W. ------------- End Forwarded Message ------------- From danmo at videotron.ca Mon Aug 28 07:22:23 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Mon, 28 Aug 2000 10:22:23 -0400 Subject: fwd: PHP/Mapscript Installation References: <200008281331.IAA26583@mallit.fr.umn.edu> Message-ID: <39AA759F.24829B91@videotron.ca> teb wrote: > > My host provider had to restore the PHP and Apache src and build directories, > but it looks like these do not exactly match their current environment and I get > the following errors: > > >/usr/src/local/php/php.h:184: ap_config.h: No such file or directory > >/usr/src/local/php/php.h:190: ap_compat.h: No such file or directory > >/usr/src/local/php/php.h:192: httpd.h: No such file or directory > >/usr/src/local/php/php.h:193: http_main.h: No such file or directory > >/usr/src/local/php/php.h:194: http_core.h: No such file or directory > >/usr/src/local/php/php.h:195: http_request.h: No such file or directory > >/usr/src/local/php/php.h:196: http_protocol.h: No such file or directory > >/usr/src/local/php/php.h:197: http_config.h: No such file or directory > >/usr/src/local/php/php.h:198: http_log.h: No such file or directory > You usually get these errors when you forget to pass the --with-apxs switch to the MapServer configure and your PHP _WAS_ configured using the --with-apxs switch. Try re-running the MapServer configure and include the --with-apxs this time. If configure complains that it cannot find 'apxs' then try to locate it yourself and use --with-apxs=/path/to/apxs. Then your compilation should work. I've also found that in several cases, a php_mapscript.so build with or without apxs will work on any Apache/PHP server with the same version of PHP. This means that if you cannot find apxs, or if the required headers are not on your service provider's system, then you could get your own copy of the PHP3 source, run PHP3's configure without the apxs switch (no need to recompile PHP), then rerun the mapserver configure without the apxs switch and your MapServer build will work. IMPORTANT NOTE: This may not work on all systems. And especially on systems where Apache is compiled with the -DEAPI switch, such as RedHat 6.2. Good Luck! -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From ddnebert at fgdc.gov Mon Aug 28 07:22:40 2000 From: ddnebert at fgdc.gov (Doug Nebert) Date: Mon, 28 Aug 2000 10:22:40 -0400 Subject: Transparency Message-ID: <39AA75B0.E58E5F70@fgdc.gov> Steve, mapserv-users: The GD library seems to produce GIF87 and not GIF89a which is able to be transparent. We would like to exploit this feature in order to make the layers served usable in the OGC Web Mapping Service. Two ideas: 1. Can a converter be inlined in the output generation of every graphic? If so, then we could adapt the request to support possibly more than one output format. This is in the spirit of the WMS where the format is a request argument. Although only one format needs to be supplied, it is possible for a requestor to prefer a given format and for a map server to supply more than one for the same content. 2. Another way would be to make PNG and assign transparency that way, though I am reluctant to go to so new a graphics reference. My preference would be an architecture that supports the first case. What is your advice? Doug. -- Douglas D. Nebert Geospatial Data Clearinghouse Coordinator FGDC Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 Pager Messaging: http://clearinghouse3.fgdc.gov/dougmsg.html From christian at gottschling.net Wed Aug 30 09:52:09 2000 From: christian at gottschling.net (Christian) Date: Wed, 30 Aug 2000 18:52:09 +0200 Subject: php3-mapscript, how to use expression Message-ID: <4.3.2.7.0.20000830183743.00ae5a60@ferklin> Hello, finally I got php3 with mapserver-expansion on Mandrake running. Hint for all those that want to try it, too. The php3-module that came with Mandrake is compiled with gd1.7 (without gif), so take care to compile mapserver with the new gd-version. Or recompile the php with old gd. But back to my questions. Here is an excerpt from my mapfile: CLASSITEM 'VW' CLASS EXPRESSION '069' # City of Frankfurt COLOR 250 0 0 OUTLINECOLOR 10 240 10 END Short Info: This colorizes a region with the prefix 069 red. Now I like to colorize regions "dynamically", on the fly, within my php-script. Different colors for different prefixes. Any hints how to do that? The gmap-example is nice, but very large and not easy to understand for a rookie like me. Are there any more examples out? -- Christian -- christian From assefa1 at yahoo.com Wed Aug 30 11:09:12 2000 From: assefa1 at yahoo.com (Assefa Yewondwossen) Date: Wed, 30 Aug 2000 11:09:12 -0700 (PDT) Subject: php3-mapscript, how to use expression Message-ID: <20000830180912.15563.qmail@web1302.mail.yahoo.com> Hi, Here is an example that dynamically creates classes on a certain layer (assumes here that $gpoMap is the map object and there is a layer called classified in the .map file) : $poLayer = $gpoMap->getlayerbyname("classified"); $poLayer->set("classitem", "VW"); $nColorId = $gpoMap->addColor(255, 0, 0); $poClass = ms_newClassObj($poLayer); $poClass->set("color", $nColorId); $poClass->setExpression("069"); Hope it helps, --- Christian wrote: > Hello, > finally I got php3 with mapserver-expansion on > Mandrake running. Hint for > all those that want to try it, too. > The php3-module that came with Mandrake is compiled > with gd1.7 (without > gif), so take care to compile mapserver with the new > gd-version. Or > recompile the php with old gd. > > But back to my questions. Here is an excerpt from my > mapfile: > > CLASSITEM 'VW' > CLASS > EXPRESSION '069' # City of Frankfurt > COLOR 250 0 0 > OUTLINECOLOR 10 240 10 > END > > Short Info: This colorizes a region with the prefix > 069 red. > > Now I like to colorize regions "dynamically", on the > fly, within my > php-script. Different colors for different prefixes. > Any hints how to do that? > > The gmap-example is nice, but very large and not > easy to understand for a > rookie like me. > Are there any more examples out? > > -- > Christian > > > -- > christian > ===== __________________________________________________ Do You Yahoo!? Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ From christian at gottschling.net Wed Aug 30 11:22:47 2000 From: christian at gottschling.net (Christian) Date: Wed, 30 Aug 2000 20:22:47 +0200 Subject: php3-expression and zoom In-Reply-To: <20000830180912.15563.qmail@web1302.mail.yahoo.com> Message-ID: <4.3.2.7.0.20000830200953.00aeea90@ferklin> Hi, this answer was damn fast! Many thanks, I try it tomorrow when I am back in the office. This helps a lot! Has there anybody an example for the zooming-buttons, too? I haven't found out from the gmap-example. Can I even set a dynamic label to the regions selected by "expression"? > Here is an example that dynamically creates classes >on a certain layer (assumes here that $gpoMap is the >map object and there is a layer called classified in >the .map file) : > >$poLayer = $gpoMap->getlayerbyname("classified"); > >$poLayer->set("classitem", "VW"); > >$nColorId = $gpoMap->addColor(255, 0, 0); > >$poClass = ms_newClassObj($poLayer); > >$poClass->set("color", $nColorId); > >$poClass->setExpression("069"); What is the maximum number of classes and what is the practical maximum so that the map is served in time? I like to run this within a loop and in the worst case I would have more than 5000, (all prefixes of germany). -- Christian -- christian From michalak at hwr.arizona.edu Wed Aug 30 14:10:23 2000 From: michalak at hwr.arizona.edu (Zolla Michalak) Date: Wed, 30 Aug 2000 14:10:23 -0700 (MST) Subject: mapxy, imgxy Message-ID: Hello- To anyone who knows how to use mapxy and imgxy/ and or how to do a point query (mode=query). I'm having trouble using imgxy and mapxy. When I select a point on the map I get the error: mapserv(): Web application error. Query mode needs a point, imgxy and mapxy are not set. When I set imgxy and mapxy, I get loadForm(): Web application error. Not enough arguments for mapxy. Here is my code: printf("\n", $myQueryPoint->x, $myQueryPoint->y); printf("\n", $PixX, $PixY); Am I not using the right syntax? I can't find an example of this anywhere. Thanks- Zolla M. ************************************* Zolla Michalak Support Systems Analyst HWR, University of Arizona ************************************* From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Thu Aug 31 08:29:44 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Thu, 31 Aug 2000 11:29:44 -0400 Subject: php3-mapscript and projections Message-ID: <2951561DB3DDD0118FEC00805FFE98050380C15C@s5-ccr-r1> Hey guys, How do I setup projections using MapScript (PHP3) ? I have a temporary shapefile that is in a different porjection than the rest of my data ... I haven't seen anything in the docs talking about a "projection object" or anything like that ... When I create a new layer from scratch in mapscript, how do I specify PROJ.4 parameters ? Also, exactly where in the map file do I specify the projection for the "output image" ? So far I've done all the layers (except the temp one mentionned above), and everything works fine, but then as it stands no conversion is being done. Do I put it at the top, in no section in particular ? Or in the "Web" section ? Also, is it possible that specifying the projection for all your layers (even if they all have the exact same projection), makes things slightly faster ? Could be just an illusion though :) Thank you, J.F. > ---------- > From: Christian[SMTP:christian at gottschling.net] > Sent: Wednesday, August 30, 2000 2:22 PM > To: Assefa Yewondwossen > Cc: mapserver-users at lists.gis.umn.edu > Subject: php3-expression and zoom > > Hi, > this answer was damn fast! Many thanks, I try it tomorrow when I am back > in > the office. > This helps a lot! > Has there anybody an example for the zooming-buttons, too? I haven't found > > out from the gmap-example. > > Can I even set a dynamic label to the regions selected by "expression"? > > > > Here is an example that dynamically creates classes > >on a certain layer (assumes here that $gpoMap is the > >map object and there is a layer called classified in > >the .map file) : > > > >$poLayer = $gpoMap->getlayerbyname("classified"); > > > >$poLayer->set("classitem", "VW"); > > > >$nColorId = $gpoMap->addColor(255, 0, 0); > > > >$poClass = ms_newClassObj($poLayer); > > > >$poClass->set("color", $nColorId); > > > >$poClass->setExpression("069"); > > What is the maximum number of classes and what is the practical maximum so > > that the map is served in time? > I like to run this within a loop and in the worst case I would have more > than 5000, (all prefixes of germany). > > > -- > Christian > > -- > christian > From steve.lime at dnr.state.mn.us Thu Aug 31 09:35:55 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 31 Aug 2000 11:35:55 -0500 Subject: php3-mapscript and projections Message-ID: Projections are largely set up in the map file. You can set projections via mapscript. With mapscript proper there are setProjection methods for layer and map objects. The argument is just a single string made up of proj parameters separated by commas. For example $layer->setProjection("proj=utm,ellps=GRS80,zone=15,north,no_defs"); I don't know if Dan et al. has moved that to the php version or not. The output map projection goes in the map (i.e. outside every other object) section. If a layer has the same projection as the output projection you don't want to define it's projection as they are assumed to be the same. Projection definition degrades performance. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Doyon, Jean-Francois" 08/31/00 10:29AM >>> Hey guys, How do I setup projections using MapScript (PHP3) ? I have a temporary shapefile that is in a different porjection than the rest of my data ... I haven't seen anything in the docs talking about a "projection object" or anything like that ... When I create a new layer from scratch in mapscript, how do I specify PROJ.4 parameters ? Also, exactly where in the map file do I specify the projection for the "output image" ? So far I've done all the layers (except the temp one mentionned above), and everything works fine, but then as it stands no conversion is being done. Do I put it at the top, in no section in particular ? Or in the "Web" section ? Also, is it possible that specifying the projection for all your layers (even if they all have the exact same projection), makes things slightly faster ? Could be just an illusion though :) Thank you, J.F. > ---------- > From: Christian[SMTP:christian at gottschling.net] > Sent: Wednesday, August 30, 2000 2:22 PM > To: Assefa Yewondwossen > Cc: mapserver-users at lists.gis.umn.edu > Subject: php3-expression and zoom > > Hi, > this answer was damn fast! Many thanks, I try it tomorrow when I am back > in > the office. > This helps a lot! > Has there anybody an example for the zooming-buttons, too? I haven't found > > out from the gmap-example. > > Can I even set a dynamic label to the regions selected by "expression"? > > > > Here is an example that dynamically creates classes > >on a certain layer (assumes here that $gpoMap is the > >map object and there is a layer called classified in > >the .map file) : > > > >$poLayer = $gpoMap->getlayerbyname("classified"); > > > >$poLayer->set("classitem", "VW"); > > > >$nColorId = $gpoMap->addColor(255, 0, 0); > > > >$poClass = ms_newClassObj($poLayer); > > > >$poClass->set("color", $nColorId); > > > >$poClass->setExpression("069"); > > What is the maximum number of classes and what is the practical maximum so > > that the map is served in time? > I like to run this within a loop and in the worst case I would have more > than 5000, (all prefixes of germany). > > > -- > Christian > > -- > christian > From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Thu Aug 31 13:43:19 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Thu, 31 Aug 2000 16:43:19 -0400 Subject: php3-mapscript and TTF Symbology Message-ID: <2951561DB3DDD0118FEC00805FFE98050380C15F@s5-ccr-r1> Hello AGAIN :) Allright, got the projection stuff going great, thanks again :) Now I'm trying to get TTF Symbology working, and am running into some problems. I'm using a file called "geosymb.ttf", no idea where it came from. Then I define in marker.sym Symbol Name 'capital' Type TrueType Filled Antialias Character "e" END But nothing shows up ! Ever ! Even stranger, sometimes ALL my TTF stuff disappears off the chart (All city names and their symbols, which are vectors, I'm just trying to change the symbol on ONE city). In some instances, it seems that everything within a certain radius (the bigger the symbol size, the more disappears) of the said city disappears ! Things also seem to behave differently depending on extent/zoom level. Basically, the minute I try to put a TTF symbol in there things go bezerk. The Text (Labelling) is TTF, and that's been working fine all along. I even tried using my arial.ttf file (Which I use for labeling) to do symbols, but ... same thing. This is the TOP layer BTW, (i.e. the last one to be added) if that makes a difference. Oh , an dI've of course tried a variety of "Character" ... Also, when windows says a character is "Alt+0168", how do I use that with a symbol file ??? Anybody have any problems with this ? Any idea what I'm doing wrong ? Maybe I'll go try it with the Perl version if I have some time tomorrow ... Thanks again, and again, and again ...