From Matt.Wilkie at gov.yk.ca Tue May 1 12:43:28 2001 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Tue, 1 May 2001 12:43:28 -0700 Subject: [mapserver-users] FW: [ESRI-L] shapefile .ixs format Message-ID: <6DD7370C9452D31192A10008C75D075309DB6198@raptor.gov.yk.ca> -----Original Message----- From: Jim Butcher [mailto:jbutcher at CI.COLLIERVILLE.TN.US] Sent: 30 April 2001 07:49 To: ESRI-L at ESRI.COM Subject: [ESRI-L] Hello all, I have a question about shapefiles if anyone is up to the task. When a shapefile is set up for geocoding ArcView creates a couple of files with a .ixs and .mxs extensions. I understand that both are geocoding indexes for read-write shapefiles. What I'm looking for are any file specifications on the .ixs type. Are there any published specs or does someone understand how it is structured. Thanks in advance and I will sum later. James Butcher GIS/Plans Manager Town of Collierville (P) 901-853-3271 (F) 901-853-5858 From timcera at earthlink.net Tue May 1 19:20:02 2001 From: timcera at earthlink.net (Tim Cera) Date: Tue, 1 May 2001 21:20:02 -0500 Subject: [mapserver-users] query timeout problem Message-ID: <01050121200202.00808@wanderer> I have a problem and I hope that someone can help me. Problem: Time-out for a basic query against a point shapefile. No error in apache error_log. No error from mapserv. No files in the mapserver tmp directory. Tried with 3.3.011, 3.4. Tried the 3.4 version on Linux and Solaris 2.5. All had the same result. Attached is the mapfile. Suspect that there might be a problem with the shapefile, but nothing that ArcView notices. Can forward the shapefile if needed to diagnose, didn't this time because of size. thanks Tim Cera -------------- next part -------------- map extent 1204767.875 -118660.570312 1295298.75 220208.359375 imagecolor 255 255 255 name "Uppergate" shapepath "shapefiles/data" size 600 600 status on units feet symbolset "symbols/all.sym" # markerset "symbols/marker.sym" # 1 scalebar #none scalebar backgroundcolor 128 128 128 color 255 255 255 imagecolor 255 255 255 intervals 4 outlinecolor 0 0 0 size 200 7 status on style 0 transparent true units feet end # 2 layer Counties layer data "countybnd" name "Counties" status default type polygon # 1 class Counties class color 255 255 128 name "Counties" outlinecolor 0 0 0 end end # 3 layer Municipalities layer data "cityboundries" name "Municipalities" status default type polygon # 1 class Municipalities class color 192 192 192 name "Municipalities" outlinecolor 0 0 0 end end # 4 layer Water layer data "water3" name "Water" status default type polygon # 1 class Water class color 0 0 255 name "Water" outlinecolor 0 0 0 end end # 5 layer Roads layer data "roads2" name "Roads" status default type line # 1 class Roads class color 0 0 0 name "Roads" outlinecolor 0 0 0 end end # 6 layer {Property Lines} layer data "propertylines" name "Property Lines" status default type line # 1 class {Property Lines} class color 255 0 0 name "Property Lines" outlinecolor 0 0 0 end end # 7 layer {Gates and Barricades} layer classitem "MGT_AGENCY" data "gates" footer "gates_footer.html" group "gates" header "gates_header.html" name "Gates and Barricades" status default type point # 1 class USCOE class backgroundcolor 128 128 128 color 255 128 0 expression "USCOE" name "USCOE" outlinecolor 0 0 0 symbol circle size 15 end # 2 class MDWFP class color 128 255 0 expression "MDWFP" name "MDWFP" outlinecolor 0 0 0 size 6 end # 3 class {Crow's Neck Environmental Center} class color 128 128 128 expression "CROWS NECK ENVIRONMENTAL CENTER" name "Crow's Neck Environmental Center" outlinecolor 0 0 0 size 6 end # 4 class {City of Burnsville} class color 128 128 255 expression "CITY OF BURNSVILLE" name "City of Burnsville" outlinecolor 0 0 0 size 6 end # 5 class Other class color 128 255 255 expression "OTHER" name "Other" outlinecolor 0 0 0 size 6 end # 6 query #none query template "gates_query.html" end end # 8 web uppergate.html web footer "uppergate_footer.html" header "uppergate_header.html" imagepath "/opt/htdocs/tmp/" imageurl "/tmp/" template "uppergate.html" end # 9 querymap hilite querymap color 255 0 0 size 200 200 status on style hilite end # 10 reference graphics/reference.gif reference color -1 -1 -1 extent 1140681.27478 -238916.044756 1339354.9618 249581.561545 image "graphics/reference.gif" outlinecolor 255 0 0 size 120 120 status on end # 11 legend #none legend keysize 18 12 status on # 1 label #none label color 0 0 89 size medium type bitmap end end end From chads at adci.com Wed May 2 12:51:40 2001 From: chads at adci.com (Chad Streck) Date: Wed, 02 May 2001 14:51:40 -0500 Subject: [mapserver-users] Finding the area of a polygon Message-ID: <3AF0654C.2090603@adci.com> Is there a way to compute the area of a polygon that has been created or pulled from a shape file? If not, does anyone know of an algorithm for computing the area based on a variable number of points? Any help would be appreciated. Thanks, Chad Streck From Jciavarelli at city.kamloops.bc.ca Wed May 2 14:37:36 2001 From: Jciavarelli at city.kamloops.bc.ca (Janet Ciavarelli) Date: Wed, 02 May 2001 14:37:36 -0700 Subject: [mapserver-users] Anyone have a Perl package for mapscript? Message-ID: Hi, Well I managed to get mapserver compiled in Windows NT, but now that I have mapscript.lib and the mapscript.pm, I am having a very hard time figuring how to get it into Perl. I'm just wondering if anyone out there has created a Perl package for it, and successfully used ppm to load it into Perl. I'm using Active State Perl for Win32. Any help would be appreciated (before I tear all my hair out over this). Thanx. Janet. From rcohen at dial.oleane.com Wed May 2 16:19:39 2001 From: rcohen at dial.oleane.com (Riccardo Cohen) Date: Thu, 03 May 2001 00:19:39 +0100 Subject: [mapserver-users] Finding the area of a polygon References: <3AF0654C.2090603@adci.com> Message-ID: <3AF0960B.1325E66E@dial.oleane.com> >> If not, does anyone know of an algorithm for computing the area based on a variable number of points? This is C code but really easy to read : points[] is an array of vectors, the first is the origin of the polygon, and the other are vectors relatives to the first point. To have the area, the first point is not needed. double surface=0; long idx; if (is_closed() && point_nb>2) { // all points are delta from first -> don't need first for (idx=2;idx Hi list, I am using the mapserver in a smoothly working CGI application, similar to the official example. It lets Netscape display a simple 'document contains no data' window after I made a change in projection. I have a .map file with roughly the following content: ----
PROJECTION "proj=merc" "ellps=sphere" END LAYER PROJECTION "geographic" "ellps=WGS84" END END ---- which works as it is supposed to. For some reasons, I have to switch the projection over to UTM, which I thought would be done by replacing the projection field with: PROJECTION "proj=utm" # projection "ellps=GRS80" # or whatever ellipsoid seems to fit "zone=32" # we are in germany "north" # northern hemisphere "no_defs" # ? END Please bear with me because I am not a cartographer. According to the usual lists germany is UTM zone 32, and I do not know what 'no_defs' means. The extents are set correctly (they do not differ much from the mercator projection, which, as far as I understand these things, is of no surprise). What am I doing wrong? On a completely unrelated note, it would me nice to have the syntax of the .map file's setions unified. I think it would be preferable to have something like PROJECTION TYPE merc ZONE 32 [ ... ] END instead of the syntax you all know about, which may be easier to pass to a call of the proj library without parsing but which is confusing the user (some of ours at least). Greetings from the sun-flooded places of northern Berlin, Thorsten -- Thorsten Fischer thfischer at mapmedia.de --------------------------------------------------------- MapMedia - Kartographie und raumbezogene Informationssysteme Am Borsigturm 42 13507 Berlin Deutschland http://www.mapmedia.de tel: +49 (0)30 43032102 --------------------------------------------------------- From ddnebert at fgdc.gov Thu May 3 07:09:31 2001 From: ddnebert at fgdc.gov (Doug Nebert) Date: Thu, 03 May 2001 10:09:31 -0400 Subject: [mapserver-users] Reference map solved, now choropleths Message-ID: <3AF1669B.795AF44E@fgdc.gov> Thanks to the comments I was able to make the reference map appear by itself with a GET-based rectangle imposed in the return. Looks great. 1. I was wondering recently about the ability and options for creating choropleth maps via mapserver. These would be the application of, say, a color ramp or set of many colors to values in a selected field and display the polygons (or lines, or points!) in different colors based on the user request. These would not be static colors but selected by the user via GUI. What would be needed to pull this off? A dynamic map file? Special color palette? 2. Is there any geocoding support within a mapserver application yet? Shapefiles can host attributes which define address ranges and direction on lines. Has anybody yet built a free parsing routine to create a points (event) layer based on a file of many addresses, or must ArcView be used for this? The obvious follow-on would be a routing application along networks. Checking the envelope... -- Douglas D. Nebert Geospatial Data Clearinghouse Coordinator FGDC/GSDI Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 Pager Messaging: http://clearinghouse3.fgdc.gov/dougmsg.html From thfischer at mapmedia.de Thu May 3 07:46:33 2001 From: thfischer at mapmedia.de (Thorsten Fischer) Date: Thu, 3 May 2001 16:46:33 +0200 Subject: [mapserver-users] UTM projection In-Reply-To: <01050314035803.00701@grobi> References: <01050314035803.00701@grobi> Message-ID: <01050316483604.00701@grobi> > Hi list, I am very sorry to follow up to my own mails, but the problem dissolved into nothing when some stupid typos in the map extents were removed. * blush * Again, I am sorry to have bothered you. Thorsten -- Thorsten Fischer thfischer at mapmedia.de --------------------------------------------------------- MapMedia - Kartographie und raumbezogene Informationssysteme Am Borsigturm 42 13507 Berlin Deutschland http://www.mapmedia.de tel: +49 (0)30 43032102 --------------------------------------------------------- From rfriedman at saucontech.com Thu May 3 07:47:21 2001 From: rfriedman at saucontech.com (rami friedman) Date: Thu, 03 May 2001 10:47:21 -0400 Subject: [mapserver-users] open src gis vs. mapinfo (comparison) Message-ID: <3AF16F79.F7BBE7CE@saucontech.com> I have been tasked with investigating mapping and geocoding solutions for my comapny, a consulting firm. Early in my research I found this open source project, but I ultimately opted to delve more heavily into mapinfo's products. That was because the problems we need to solve involve more than map rendering; they involve geocoding, spatial querying, and routing (in addition to map rendering). However, I would like to understand to what extent I might be able to replace pieces of the mapinfo 'total solution' with open source solutions. For instance, if I purchase mapinfo data, can I render it using mapserver? Does mapserver provide methods for adding annotation layers with labeled features? Does mapserver provide the ability to do thematic mapping? Is there an open source geocoding solution? Is there an open source solution that enables spatial queries in relational databases? Is there an open source vehicle routing solution? Is there good street data available for the United States that is in a format that mapXtremeJava understands (.mdf or .gst)? What about good street data that mapserver understands? Thanks in advance. From imap at chesapeake.net Thu May 3 10:01:13 2001 From: imap at chesapeake.net (Chris Stuber) Date: Thu, 03 May 2001 13:01:13 -0400 Subject: [mapserver-users] building mapserver/mapscript on Mac OS/X References: <3AF16F79.F7BBE7CE@saucontech.com> Message-ID: <3AF18ED9.3E63ABE4@chesapeake.net> I've got a client who ask me to try to get mapserver running on a powerpc running Max OS/X (Darwin) which smells like a BSD unix os. Mapserver and all of the supporting packages seem to compile OK, but it seems that swig and mapscript are giving trouble. The compiler is based on gcc 2.95.2 1 and it has trouble with data type defined with 'static' which used in swig and also generated in the mapscript_wrap.c output... I suspect there is a missing -D (define) or something not right with the swig build. Has anyone ever run across a problem like this? Any ideas would be extremely helpful. Thanks, Chris Stuber (mapsurfer) Silicon Mapping Solutions (410)257-3187 [localhost:mapserver/mapscript/perl] root# ls CVS README mapscript.bs mapscript_wrap.c Makefile blib mapscript.i mapscript_wrap.doc Makefile.PL examples mapscript.pm pm_to_blib [localhost:mapserver/mapscript/perl] root# make cc -c -I/usr/local/src/mapserver -I/usr/local/src/proj/src -I/usr/local/src/gd-1.2 -I/usr/local/src/mapserver/gdft -I/usr/local/src/freetype-1.2/lib -g -pipe -pipe -fno-common -DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing -O3 -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -I/System/Library/Perl/darwin/CORE -DIGNORE_MISSING_DATA -DUSE_PROJ -DUSE_TTF -DUSE_GD_1_2 mapscript_wrap.c mapscript_wrap.c: In function `SWIG_GetPtr': mapscript_wrap.c:292: `sv_undef' undeclared (first use in this function) mapscript_wrap.c:292: (Each undeclared identifier is reported only once mapscript_wrap.c:292: for each function it appears in.) mapscript_wrap.c: At top level: mapscript_wrap.c:474: redefinition of `_swig_setiv' mapscript_wrap.c:461: `_swig_setiv' previously defined here mapscript_wrap.c:487: redefinition of `_swig_setiv' mapscript_wrap.c:474: `_swig_setiv' previously defined here ... (stuff deleted, more of the same) {standard input}:2155:FATAL:Symbol __swig_setiv already defined. mapscript_wrap.c: In function `_swig_setiv': mapscript_wrap.c:1029: output pipe has been closed cpp-precomp: output pipe has been closed make: *** [mapscript_wrap.o] Error 1 From Matt.Wilkie at gov.yk.ca Thu May 3 12:58:21 2001 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Thu, 3 May 2001 12:58:21 -0700 Subject: [mapserver-users] offtopic: a site worthy of examination Message-ID: <6DD7370C9452D31192A10008C75D075309E9E145@raptor.gov.yk.ca> Hi Listers, Just ran across a site today which is worthy of examination. http://mapus.jpl.nasa.gov/, one arcscond LandSAT Map of United States It's not mapserver powered and could use some polish but it's still very nice. -matt ----------------------------------------------------------------- Matt Wilkie * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ ----------------------------------------------------------------- From cameron at socialchange.net.au Thu May 3 13:27:57 2001 From: cameron at socialchange.net.au (Cameron Shorter) Date: Fri, 04 May 2001 06:27:57 +1000 Subject: [mapserver-users] When will mapserv 3.5 be released? Message-ID: <3AF1BF4D.61FA6D04@socialchange.net.au> I have a client who wants some of the functionality in mapserv 3.5 (primarilly WMS support) and who is not prepared to use it unless it has been officially released. Does anyone has an estimate on when 3.5 is likely to be released? -- Cameron Shorter Web Mapping Manager Social Change Online 248 Johnson St Tel: +61 (0) 2 9692 5115 Annandale NSW 2038 Fax: +61 (0) 2 9692 5192 Sydney, Australia http://webmap.socialchange.net.au From agrubert at mainz-online.de Thu May 3 14:41:32 2001 From: agrubert at mainz-online.de (agrubert) Date: Thu, 03 May 2001 23:41:32 +0200 Subject: [mapserver-users] A Statik Mapserv Message-ID: <3AF1D08C.9F0A4284@mainz-online.de> Dear List-Users, I want to compile the mapserver as a static program (without using shared libraries - all sources should be implemented in the mapserv executable file). How can I do that ? Thanks in advance Armin ------- http://www.armin-grubert.de.vu ---------- Dipl.-Geol. A. Grubert Oppenheimer Stra?e 28 Tel.: 06737 - 809076 55278 K?ngernheim --------- agrubert at mainz-online.de -------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From chads at adci.com Thu May 3 13:54:28 2001 From: chads at adci.com (Chad Streck) Date: Thu, 03 May 2001 15:54:28 -0500 Subject: [mapserver-users] Finding area of polygon - Thanks. Message-ID: <3AF1C584.3080902@adci.com> Thanks to all that replied to the message. We took one of the C routines, converted it to PHP and have it working. We didn't get a chance to confirm the results, but it looks as if its in the ball park for finding square footage of a parking lot. Thank you, Chad From suttont at cncjnk.wcape.gov.za Thu May 3 14:37:51 2001 From: suttont at cncjnk.wcape.gov.za (Tim Sutton) Date: Thu, 3 May 2001 23:37:51 +0200 (SAST) Subject: [mapserver-users] unsubscribe Message-ID: unsubscribe From frank.koormann at intevation.de Thu May 3 23:24:04 2001 From: frank.koormann at intevation.de (Frank Koormann) Date: Fri, 4 May 2001 08:24:04 +0200 Subject: [mapserver-users] A Statik Mapserv In-Reply-To: <3AF1D08C.9F0A4284@mainz-online.de>; from agrubert@mainz-online.de on Thu, May 03, 2001 at 11:41:32PM +0200 References: <3AF1D08C.9F0A4284@mainz-online.de> Message-ID: <20010504082404.A20900@intevation.de> Hi, * agrubert (agrubert at mainz-online.de) [010503 23:18]: > > Dear List-Users, > > I want to compile the mapserver as a static program (without using > shared libraries - all sources should be implemented in the mapserv > executable file). Edit the top Makefile: - search for "LDFLAGS" and - add a "-static" after "$(RUNPATHS)" - rebuild the mapserv binary Regards, Frank -- Frank Koormann http://intevation.net/~frank/ Professional Service around Free Software http://intevation.net/ FreeGIS Project http://freegis.org/ From andreag at crs4.it Fri May 4 03:30:13 2001 From: andreag at crs4.it (A. Giacomelli) Date: Fri, 04 May 2001 12:30:13 +0200 Subject: [mapserver-users] problems from 3.4 to 3.5 Message-ID: <3AF284B5.741303A9@crs4.it> Hi, I am porting an application developed in php/mapscript from an installation using MapScript Version (Jan 8, 2001) MapServer Version 3.4 (pre-release) -GD_1_2 -PROJ.4 -FreeType -TIFF -EPPL7 -OGR to MapScript Version (Apr 3, 2001) MapServer Version 3.5 (pre-alpha) OUTPUT=GIF INPUT=SHAPEFILE (as read from phpinfo on the two machines) Should I expect any problems ? As a matter of fact, I am getting an error on the Rosa demo application: Warning: MapServer Error in loadLayer(): (DESCRIPTION):(88) in /usr/local/apache/htdocs/sard/gmap/htdocs/gmap75.php on line 51 Fatal error: Failed to open map file gmap75.map in /usr/local/apache/htdocs/sard/gmap/htdocs/gmap75.php on line 51 TIA for any suggestion, ========================================= Andrea Giacomelli Centre for Advanced Studies, Research and Development in Sardinia Environment Group http://www.crs4.it/~andreag ========================================= From gthornberry at sdimaps.com Fri May 4 08:49:08 2001 From: gthornberry at sdimaps.com (Gerald Thornberry) Date: Fri, 04 May 2001 11:49:08 -0400 Subject: [mapserver-users] open src gis vs. mapinfo (comparison) References: <3AF16F79.F7BBE7CE@saucontech.com> Message-ID: <3AF2CF74.A31A1198@sdimaps.com> rami friedman wrote: > Is there an open source geocoding solution? I searched not too long ago for an open source geocoding engine, but to no avail. > Is there good street data available for the United States > that is in a > format that mapXtremeJava understands (.mdf or .gst)? > > What about good street data that mapserver understands? After waiting a month and a half for GDT to contact me, I finally received pricing on their street data products for geocoding: $650.00 per US County (1 - 5 user license) $1300.00 per US County (6 - 15 user license) Annual maintenance and updates - 50% of original cost My guess is that they are in shapefile format, though they may have others. MapServer does handle shapefiles. -- Gerald Thornberry Spatial Data Integrations, Inc. Technical Support Manager 710 W. Main St. Suite 108 http://www.waterworksFM.com Louisville, KY 40202 Phone: (502)568-2062 http://www.sdimaps.com Phone: (502)568-3628 Phone: (502)568-2591 FAX: (502)568-2363 FAX: (502)568-6929 From ddnebert at fgdc.gov Fri May 4 07:47:17 2001 From: ddnebert at fgdc.gov (Doug Nebert) Date: Fri, 04 May 2001 10:47:17 -0400 Subject: [mapserver-users] open src gis vs. mapinfo (comparison) References: <3AF16F79.F7BBE7CE@saucontech.com> <3AF2CF74.A31A1198@sdimaps.com> Message-ID: <3AF2C0F5.B61992C4@fgdc.gov> Gerald Thornberry wrote: > > > What about good street data that mapserver understands? > > After waiting a month and a half for GDT to contact me, I finally > received pricing on their street data products for geocoding: > > $650.00 per US County (1 - 5 user license) > > $1300.00 per US County (6 - 15 user license) > > Annual maintenance and updates - 50% of original cost > > My guess is that they are in shapefile format, though they may have > others. MapServer does handle shapefiles. > With other tools (like ArcView) you might be able to live with the latest TIGER files for the US that are less than two years old. OK, so it doesn't have all the latest subdivisions, but it is basically free for download and unlimited re-use with full information sufficient to address geocoding. I know, I've used it them ArcINFO before... It is now valid as of 2000! http://www.census.gov/geo/www/tiger/rd_2ktiger/tgr2kweb.html Doug. From steve.lime at dnr.state.mn.us Fri May 4 08:30:39 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 04 May 2001 10:30:39 -0500 Subject: [mapserver-users] problems from 3.4 to 3.5 Message-ID: The error you're getting refers to a change in metadata support. 3.4 and earlier versions really provided no metadata support other than the layer DESCRIPTION field. That has been replaced with a general METADATA tag that can be used for lots of things. One example is that WMS compatabilty requires metadata to produce a capabilties document. So rather than adding a new field for each possible WMS need a generic solution was added. As a result the LAYER DECRIPTION tag is gone. You can now do something like: LAYER NAME "lake" METADATA description "!:24,000 USGS DLG Lakes Data" author "USGS" END .... END I still need to make these data available as template substitutions though. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "A. Giacomelli" 05/04/01 05:30AM >>> Hi, I am porting an application developed in php/mapscript from an installation using MapScript Version (Jan 8, 2001) MapServer Version 3.4 (pre-release) -GD_1_2 -PROJ.4 -FreeType -TIFF -EPPL7 -OGR to MapScript Version (Apr 3, 2001) MapServer Version 3.5 (pre-alpha) OUTPUT=GIF INPUT=SHAPEFILE (as read from phpinfo on the two machines) Should I expect any problems ? As a matter of fact, I am getting an error on the Rosa demo application: Warning: MapServer Error in loadLayer(): (DESCRIPTION):(88) in /usr/local/apache/htdocs/sard/gmap/htdocs/gmap75.php on line 51 Fatal error: Failed to open map file gmap75.map in /usr/local/apache/htdocs/sard/gmap/htdocs/gmap75.php on line 51 TIA for any suggestion, ========================================= Andrea Giacomelli Centre for Advanced Studies, Research and Development in Sardinia Environment Group http://www.crs4.it/~andreag ========================================= From Jciavarelli at city.kamloops.bc.ca Fri May 4 11:24:16 2001 From: Jciavarelli at city.kamloops.bc.ca (Janet Ciavarelli) Date: Fri, 04 May 2001 11:24:16 -0700 Subject: [mapserver-users] Missing one library Message-ID: I've almost got all of mapscript compiled (as in mapserver\mapscript\perl). I'm just missing one library it looks like. Just wondering if anyone knows what I have to include to resolve the following 2 references: Creating library blib\arch\auto\mapscript\mapscript.lib and object blib\arch\ auto\mapscript\mapscript.exp mapserver.lib(regex.obj) : error LNK2001: unresolved external symbol __pctype mapserver.lib(regex.obj) : error LNK2001: unresolved external symbol ___mb_cur_max blib\arch\auto\mapscript\mapscript.dll : fatal error LNK1120: 2 unresolved exter Janet. From steve.lime at dnr.state.mn.us Fri May 4 13:22:06 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 04 May 2001 15:22:06 -0500 Subject: [mapserver-users] query timeout problem Message-ID: I've got a feeling there was a bug in that specific query only (i.e. simple point vs point). I remember fixing something related to that in 3.5, but I don't remember the details. I know that I am doing that exact thing with 3.3 and 3.4 here. What mode are you using- nquery or query? Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Tim Cera 05/01/01 09:20PM >>> I have a problem and I hope that someone can help me. Problem: Time-out for a basic query against a point shapefile. No error in apache error_log. No error from mapserv. No files in the mapserver tmp directory. Tried with 3.3.011, 3.4. Tried the 3.4 version on Linux and Solaris 2.5. All had the same result. Attached is the mapfile. Suspect that there might be a problem with the shapefile, but nothing that ArcView notices. Can forward the shapefile if needed to diagnose, didn't this time because of size. thanks Tim Cera From davidclough at ntlworld.com Fri May 4 15:34:14 2001 From: davidclough at ntlworld.com (david clough) Date: Fri, 4 May 2001 23:34:14 +0100 Subject: [mapserver-users] html link in the demo In-Reply-To: Message-ID: Hi, probably a rela simple answer , but i am new to this . I would like an html link to be displayed in the query page. linking to a html based reports in the example i downloaded this page would be lakespy2 - so unser the line that returns area perimeter , usclass of the lake there would be another line with a link to maybe pdf or and html reports I hae tried adding a col to the dbf file, however it tells me the is not permitted within the dbf file many thanks for anybody who can help a newbie david clough cambridge england uk -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Stephen Lime Sent: 04 May 2001 16:31 To: andreag at crs4.it; mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] problems from 3.4 to 3.5 The error you're getting refers to a change in metadata support. 3.4 and earlier versions really provided no metadata support other than the layer DESCRIPTION field. That has been replaced with a general METADATA tag that can be used for lots of things. One example is that WMS compatabilty requires metadata to produce a capabilties document. So rather than adding a new field for each possible WMS need a generic solution was added. As a result the LAYER DECRIPTION tag is gone. You can now do something like: LAYER NAME "lake" METADATA description "!:24,000 USGS DLG Lakes Data" author "USGS" END .... END I still need to make these data available as template substitutions though. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "A. Giacomelli" 05/04/01 05:30AM >>> Hi, I am porting an application developed in php/mapscript from an installation using MapScript Version (Jan 8, 2001) MapServer Version 3.4 (pre-release) -GD_1_2 -PROJ.4 -FreeType -TIFF -EPPL7 -OGR to MapScript Version (Apr 3, 2001) MapServer Version 3.5 (pre-alpha) OUTPUT=GIF INPUT=SHAPEFILE (as read from phpinfo on the two machines) Should I expect any problems ? As a matter of fact, I am getting an error on the Rosa demo application: Warning: MapServer Error in loadLayer(): (DESCRIPTION):(88) in /usr/local/apache/htdocs/sard/gmap/htdocs/gmap75.php on line 51 Fatal error: Failed to open map file gmap75.map in /usr/local/apache/htdocs/sard/gmap/htdocs/gmap75.php on line 51 TIA for any suggestion, ========================================= Andrea Giacomelli Centre for Advanced Studies, Research and Development in Sardinia Environment Group http://www.crs4.it/~andreag ========================================= From timcera at earthlink.net Fri May 4 20:20:16 2001 From: timcera at earthlink.net (Tim Cera) Date: Fri, 4 May 2001 22:20:16 -0500 Subject: [mapserver-users] query timeout problem In-Reply-To: References: Message-ID: <01050422201600.04062@wanderer> On Friday 04 May 2001 15:22, Stephen Lime wrote: > I've got a feeling there was a bug in that specific query only (i.e. > simple point vs point). I remember fixing something related to that > in 3.5, but I don't remember the details. I know that I am doing that > exact thing with 3.3 and 3.4 here. What mode are you using- nquery or > query? Had only tried query, till you asked. Just tried nquery and same problem. What is the difference between 'simple point' and 'point'? I can pretty easily download the latest code and try it out. Thanks, Tim Cera From cameron at socialchange.net.au Sat May 5 04:10:04 2001 From: cameron at socialchange.net.au (Cameron Shorter) Date: Sat, 05 May 2001 21:10:04 +1000 Subject: [mapserver-users] Getting Browsers to cache mapserv URLs Message-ID: <3AF3DF8C.33BEA44@socialchange.net.au> mapserver-users, We would like to improve the speed of our applications by enabling the caching of mapserv maps. The idea is that you design your mapping application to encourage uses to use default map extents so that they can reuse map images from local cache. However, for caching to work, the mapserv cgi script needs to: 1. Return a "Last-Modified:" field in header. 2. Read the cgi request parameters, recognise the $HTTP_IF_MODIFIED_SINCE parameter, and return "Status: 304 Not Modified\n\n" if the map has not changed since the last query. (There are a few other network issues, but they can be addressed seperately.) I'm interested to know: 1. Would others find this feature useful? 2. How best to implement this? 3. How should we work out the date for the "Last-Modified:" timestamp? * The quick and dirty option would be to use the timestamp of the .map file. * A better solution would be to check the time stamps of all the layers and .map file, and take the latest. 4. Should caching be rolled into all versions, or be an option at compile time? 5. Does anyone have any experience with caching, or example C code that we could use? References ========== Short description of writing cache pages for CGI scripts http://vancouver-webpages.com/CacheNow/detail.html#CGI An example perl program which uses caching http://vancouver-webpages.com/proxy/log-tail.pl General Article on caching http://www.mnot.net/cache_docs/ In particular, how caching applies to CGI scripts http://www.mnot.net/cache_docs/#SCRIPT -- Cameron Shorter Web Mapping Manager Social Change Online 248 Johnson St Tel: +61 (0) 2 9692 5115 Annandale NSW 2038 Fax: +61 (0) 2 9692 5192 Sydney, Australia http://webmap.socialchange.net.au From mapadm at polsl.gliwice.pl Sun May 6 10:53:04 2001 From: mapadm at polsl.gliwice.pl (Grzegorz Myrda) Date: Sun, 6 May 2001 19:53:04 +0200 Subject: [mapserver-users] querymap mode Message-ID: Hi, Just wondering why querymaps can be used only in tags. This make it difficult to pass args from the URL :( Wouldn't it better to allow additional mode(s), for example: browseitemquerymap :) which would save image (querymap) and return template ? Mapscript (or even javascript) can be used to provide args to tag, but 'mode' would be simpler and also future posts with doubts that querymaps are not 'normal maps' can be avoided. Grzegorz From m_anderson14 at hotmail.com Mon May 7 02:13:48 2001 From: m_anderson14 at hotmail.com (Michael Anderson) Date: Mon, 07 May 2001 02:13:48 Subject: [mapserver-users] querymap mode Message-ID: Grzegorz, You could use the itemquery or itemnquery modes to get what you want. They both create the query map and return information to the client through a template. Mike >From: "Grzegorz Myrda" >Reply-To: >To: "Mapserver-Users" >Subject: [mapserver-users] querymap mode >Date: Sun, 6 May 2001 19:53:04 +0200 > >Hi, >Just wondering why querymaps can be used only in tags. This make >it difficult to pass args from the URL :( >Wouldn't it better to allow additional mode(s), for example: >browseitemquerymap :) which would save image (querymap) and return template >? >Mapscript (or even javascript) can be used to provide args to >tag, >but 'mode' would be simpler and also future posts with doubts that >querymaps >are not 'normal maps' can be avoided. > >Grzegorz > _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com From andreag at crs4.it Mon May 7 06:30:05 2001 From: andreag at crs4.it (A. Giacomelli) Date: Mon, 07 May 2001 15:30:05 +0200 Subject: [mapserver-users] other problems from 3.4 to 3.5 ? Message-ID: <3AF6A35D.950C1942@crs4.it> Dear Stephen, thanks for your previous reply on the addition of the METADATA tag. Having fixed this, from the 3.5 setup, I am getting other complaints from the mapserver, related to other tags in the map file (QUERY, QUERYITEM, HEADER...), always as a loadLayer error. plus another strange error reading a shapefile (which works clean on my first installation)... I have tried searching the mailing list archive for references to documentation to the 3.5 map files, without success (maybe I tried with the wrong search keys, or it's not there yet). Would you confirm that even the errors on QUERY, QUERYITEM etc. come from new map file definitions ? (in this case I think I'll stick to 3.4 also in the second server I am setting up...) Thank you and regards, -- ========================================= Andrea Giacomelli Centre for Advanced Studies, Research and Development in Sardinia Environment Group http://www.crs4.it/~andreag ========================================= From cinco at xs4all.nl Mon May 7 05:53:39 2001 From: cinco at xs4all.nl (cinco) Date: Mon, 7 May 2001 14:53:39 +0200 (CEST) Subject: [mapserver-users] A question about perl mapscript Message-ID: <200105071253.OAA25290@webmail1.xs4all.nl> Hi, i have a question about the perl save function. I use a layer for streetnames and this layer should not be antialiased. If i save my mapfile, this layer is antialiased. How can i stop this to happen? regards Cinco From morissette at dmsolutions.ca Mon May 7 07:37:14 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 07 May 2001 10:37:14 -0400 Subject: [mapserver-users] other problems from 3.4 to 3.5 ? References: <3AF6A35D.950C1942@crs4.it> Message-ID: <3AF6B31A.85A0CBED@dmsolutions.ca> "A. Giacomelli" wrote: > > Having fixed this, from the 3.5 setup, I am getting other complaints > from the mapserver, related to other tags in the map file (QUERY, > QUERYITEM, HEADER...), always as a loadLayer error. > plus another strange error reading a shapefile (which works clean on my > first installation)... > > I have tried searching the mailing list archive for references to > documentation to the 3.5 map files, without success (maybe I tried with > the wrong search keys, or it's not there yet). > > Would you confirm that even the errors on QUERY, QUERYITEM etc. come > from new map file definitions ? > (in this case I think I'll stick to 3.4 also in the second server I am > setting up...) > Andrea, Yes, the errors with the QUERY and QUERYITEM are also related to changes in the mapfiles for 3.5. I've attached below a list of changes in the mapfiles and in mapscript from 3.4 to 3.5. I realize this list does not contain much explanations about the changes, but hopefully it will help. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. -------------- next part -------------- MapServer - HISTORY.TXT ======================= Version 3.5 - March 2001 ------------------------ - In .map LAYER defns: QUERYITEM and QUERY objects (queryObj) are gone... their params moved inside classObj. The query is performed on all the shapes that are part of a CLASS that contains a TEMPLATE parameter. - Draw() method of pointObj, RectObj take class_index instead of class_name as argument pointObj->Draw(map, layer, img, class_index, label_string) rectObj->Draw(map, layer, img, class_index, label_string) - shapeObj: Draw changes to: shapeObj->Draw(map, layer, img) + new methods: shapeObj->setBounds() shapeObj->copy(shape) + values[] associative array - queryResultObj, shapeResultObj are gone, replaced by resultCacheObj new methods: layerObj->open(path) layerObj->close() layerObj->getShape(int tileindex, int shapeindex) layerObj->getResult(int i) layerObj->setFilter(string filter) - layerObj->classify() gone. - New layer->FILTERITEM - map->DrawQueryMap(queryResultObj) changed to map->DrawQuery(void) - New layer->DrawQuery(img) - QueryUsingPoint() / QueryUsingRect() do not return query result... info is stored inside layer instead. QueryUsingPoint() -> int QueryByPoint(point, mode, buffer) QueryUsingRect() -> int QueryByRect(rect) QueryUsingFeatures() -> int QueryByFeatures(int slayer) QueryUsingShape() -> int QueryByShape(shape) - image->saveImage()/saveWebImage() changed to: saveImage(string filename, int type, int transparent, int interlace, int quality) saveWebImage(int type, int transparent, int interlace, int quality) - New resultCacheMemberObj class... replaces queryResultObj - PHP: new ms_GetVersion() - New OGR support: - OGR style attributes: "OGR:LabelText", "OGR:LabelAngle", "OGR:LabelSize" - PROJECTION AUTO for layers - Changes to SHAPE_TYPE, LAYER_TYPE, SHAPEFILE_TYPE constants - Layer status MS_QUERY is gone (valid values are ON, OFF, DEFAULT. EMBED can also be used for legend/scalebar. - PROJ.4.4.3 is now required for PROJ support. - layerObj: "legend" and "description" moved into metadataObj - New METADATA object in map file + MapScript methods in mapObj + layerObj: getMetaData(name); setMetaData(name, value); Version 3.4 - February 2001 --------------------------- - SHADESET, LINESET, MARKERSET -> SYMBOLSET All symbols files should be combined by cat'ing them together. - STYLED removed in symbol definitions Brute force solution: flush all symbols with a STYLED from your .sym files. Version 3.3.011 - July 2000 --------------------------- - -------- $Id: $ From steve.lime at dnr.state.mn.us Mon May 7 07:45:48 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 07 May 2001 09:45:48 -0500 Subject: [mapserver-users] querymap mode Message-ID: Querymaps can be used just like normal maps. The only difference is how/when they are generated. You access them using the [img] replacement tag in templates associated with queries or using special modes like itemquerymap or nquerymap. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Grzegorz Myrda" 05/06/01 12:53PM >>> Hi, Just wondering why querymaps can be used only in tags. This make it difficult to pass args from the URL :( Wouldn't it better to allow additional mode(s), for example: browseitemquerymap :) which would save image (querymap) and return template ? Mapscript (or even javascript) can be used to provide args to tag, but 'mode' would be simpler and also future posts with doubts that querymaps are not 'normal maps' can be avoided. Grzegorz From steve.lime at dnr.state.mn.us Mon May 7 08:15:12 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 07 May 2001 10:15:12 -0500 Subject: [mapserver-users] other problems from 3.4 to 3.5 ? Message-ID: QUERY objects are gone and their contents have been moved into CLASS objects. Names of the fields have stayed the same HEADER, FOOTER and TEMPLATE. JOINs will also live there but have not been implemented in 3.5 yet. With QUERY gone QUERYITEM is no longer needed. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "A. Giacomelli" 05/07/01 08:30AM >>> Dear Stephen, thanks for your previous reply on the addition of the METADATA tag. Having fixed this, from the 3.5 setup, I am getting other complaints from the mapserver, related to other tags in the map file (QUERY, QUERYITEM, HEADER...), always as a loadLayer error. plus another strange error reading a shapefile (which works clean on my first installation)... I have tried searching the mailing list archive for references to documentation to the 3.5 map files, without success (maybe I tried with the wrong search keys, or it's not there yet). Would you confirm that even the errors on QUERY, QUERYITEM etc. come from new map file definitions ? (in this case I think I'll stick to 3.4 also in the second server I am setting up...) Thank you and regards, -- ========================================= Andrea Giacomelli Centre for Advanced Studies, Research and Development in Sardinia Environment Group http://www.crs4.it/~andreag ========================================= From steve.lime at dnr.state.mn.us Mon May 7 09:28:09 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 07 May 2001 11:28:09 -0500 Subject: [mapserver-users] Getting Browsers to cache mapserv URLs Message-ID: I've had a great deal of success with caching just by using GET urls. That seems to work just fine with browser caches although I don't know if server caching systems can use it. I would suspect yes. I suppose you could control timeouts etc with metadata in resulting templates. I know there there other issues that make this impractical for some applications especially when just retrieving images that have no metadata. One could add configure parameters to set "freshness" in the HTTP headers. Since the mapserv CGI is stateless caching is not a simple undertaking. Besides knowing if the application or data has changed the app would have to look at extent, layer and other settings. You want to serve old content only if the exact (or within some fudge factor) map or query has been processed before. I think that will take bookkeeping well beyond what the web server can handle and would have to be implemented within the MapServer itself not with HTTP headers. For a quick-and-dirty solution I think GET urls with addendums to the HTTP headers is the best bet. A more complex solution that would support things like approximate extents (i.e. a user requests a map *very*, 1 or 2 pixels, from a previously created map so send the old one) is a good idea but is a ways off unless other want to work on it as a separate module. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Cameron Shorter 05/05/01 06:10AM >>> mapserver-users, We would like to improve the speed of our applications by enabling the caching of mapserv maps. The idea is that you design your mapping application to encourage uses to use default map extents so that they can reuse map images from local cache. However, for caching to work, the mapserv cgi script needs to: 1. Return a "Last-Modified:" field in header. 2. Read the cgi request parameters, recognise the $HTTP_IF_MODIFIED_SINCE parameter, and return "Status: 304 Not Modified\n\n" if the map has not changed since the last query. (There are a few other network issues, but they can be addressed seperately.) I'm interested to know: 1. Would others find this feature useful? 2. How best to implement this? 3. How should we work out the date for the "Last-Modified:" timestamp? * The quick and dirty option would be to use the timestamp of the .map file. * A better solution would be to check the time stamps of all the layers and .map file, and take the latest. 4. Should caching be rolled into all versions, or be an option at compile time? 5. Does anyone have any experience with caching, or example C code that we could use? References ========== Short description of writing cache pages for CGI scripts http://vancouver-webpages.com/CacheNow/detail.html#CGI An example perl program which uses caching http://vancouver-webpages.com/proxy/log-tail.pl General Article on caching http://www.mnot.net/cache_docs/ In particular, how caching applies to CGI scripts http://www.mnot.net/cache_docs/#SCRIPT -- Cameron Shorter Web Mapping Manager Social Change Online 248 Johnson St Tel: +61 (0) 2 9692 5115 Annandale NSW 2038 Fax: +61 (0) 2 9692 5192 Sydney, Australia http://webmap.socialchange.net.au From Jciavarelli at city.kamloops.bc.ca Mon May 7 10:24:16 2001 From: Jciavarelli at city.kamloops.bc.ca (Janet Ciavarelli) Date: Mon, 07 May 2001 10:24:16 -0700 Subject: [mapserver-users] Mapscript Perl examples - XBase.pm Message-ID: Well, I finally got mapscript compiled and installed into Active X Perl on a WinNT system. Whew! Now, when I go to run the shpinfo.pl, I get an error message cause it can't find XBase.pm I searched my whole system for XBase.pm and it's nowhere to be found. Where do I get XBase.pm from? Anyone know? Janet. From Brian.Fischer at co.sherburne.mn.us Mon May 7 12:12:32 2001 From: Brian.Fischer at co.sherburne.mn.us (Brian Fischer) Date: Mon, 07 May 2001 14:12:32 -0500 Subject: [mapserver-users] Mapscript Perl examples - XBase.pm Message-ID: Janet, Is there anyway you can document, how you compiled mapscript on WinNT? From my knowledge you are the only person that has got mapscript compiled for WinNT. Maybe the rest of the list can confirm this. I would like to know how you complied mapscript on WinNT. Thanks, Brian Brian Fischer GIS Coordinator, Sherburne County 13880 US Hwy 10 Elk River, MN 55330 ph. (763) 241-7006 >>> "Janet Ciavarelli" 05/07/01 12:24PM >>> Well, I finally got mapscript compiled and installed into Active X Perl on a WinNT system. Whew! Now, when I go to run the shpinfo.pl, I get an error message cause it can't find XBase.pm I searched my whole system for XBase.pm and it's nowhere to be found. Where do I get XBase.pm from? Anyone know? Janet. From Jciavarelli at city.kamloops.bc.ca Mon May 7 14:01:17 2001 From: Jciavarelli at city.kamloops.bc.ca (Janet Ciavarelli) Date: Mon, 07 May 2001 14:01:17 -0700 Subject: [mapserver-users] Mapscript Perl examples - XBase.pm Message-ID: Just off of the top of my head, and please note that I used VC++ and Active X Perl. Also, you should have a similar directory structure to the following for install purposes: g:\mapserver \cvs \fonts (I don't have true type fonts installed yet) \gd-1.2 \gdft \mapscript \regex-0.12 (get this off the internet as in the install doc) \symbols \tmp So it would really depend on your environment but if you're using this same environment, here's all what I did. The key things that I did were: - upgraded VC++ to Service Pack 5 (available at msn support on Internet) - upgraded Active X Perl to the latest version (again on Internet) - Install SWIG 1.1 (available on Internet) - Make sure you add the VC98 lib, gd-1.2 lib and mapserver to your LIB system variable. (Do this in control panel-->System-->Environment) Here's what my Lib and INCLUDE values are set to: LIB=C:\Program Files\MTS\Lib;c:\Program Files\Microsoft Visual Studio\VC98\Lib;g:\mapserver\gd-1.2;g:\mapserver INCLUDE=C:\Program Files\MTS\Include;c:\Program Files\Microsoft Visual Studio\VC98\CRT\SRC;c:\Program Files\Microsoft Visual Studio\VC98\Include;g:\mapserver;g:\mapserver\regex-0.12 - build mapserver first. This one is fairly straightforward and works as in the documentation. Do nmake makefile.vc if I remember correctly. Adding the mapscript extension to Active X Perl - Now in your mapserver folder, you will need to run Makefile.in to create a perlvars file - del perlvars (if there's already one there) - copy Makefile.in Makefile - nmake perlvars (See my attached perlvars file below). This file is important for the build we will do in mapserver\mapscript\perl. Feel free to use my perlvars file and just edit it to your correct paths. - Go to your mapserver\mapscript\perl directory. This is where the fun begins: - Basically we need to do everything in the README file: perl Makefile.PL make make install The hard part is getting it all to work. I will include a copy of my Makefile and you can do a diff on it to see what I've all customized to get it to work. But I will highlight here what I remember were the key problems: - perl Makefile.PL This is fairly straightforward and I don't remember making changes to the Makefile.PL. It does use the perlvars file though and it is very important that this file exists 2 directories up in the mapserver directory. - The next thing is to figure out if you have to use nmake or dmake. The Active Perl web site has a good documenation page on this. For my system, nmake was the way to go, and I believe that was cause I was using VC++ compiler. However, notice the documentation says make. I tried this at first but it did not get me very far. - After running nmake about 2000 times, these are the things I had to change to get it to successfully compile. I had to do a lot of editting to the Makefile generated from the perl Makefile.PL. Key Problems - change the :: to : but not all of them though. Only the ones that are not used in Perl commands. See my attached Makefile. - had to make one change in the map.h file. I had to comment out the call to malloc.h It must have been called from somewhere else already or maybe VC++ includes it by default. Either way, the only way I could get a successful compile was by commenting it out. See my attached map.h file line 17. - I had to add a bunch of libraries. Again see my Makefile for this. In particular, see LDLOADLIBS and EXTRALIBS - I also had to comment out the pm_to_blib lines in the Makefile (near the bottom. See my Makefile). Not sure if this is important or not but mine works fine without it. - I might have made more changes than this, but don't remember. Checkout my makefile for all the details. Also, last but not least was the VC98 libc.lib library. Don't forget this one. It's needed at Link time. - Also, a successful build of the mapsciprt perl extension will create a bunch of subdirectories under your perl directory unless you have your INSTALLDIRS set to something different than site. Mine was set to site and created all of the following directory structure: blib-->arch-->auto-->mapscript which will be used in the next step to install the extension into Perl. To find more Information on the MakeMaker command, see the Perl\html\lib\ExtUtils\MakeMaker.html in your Perl installation. To install - Then the install is fairly straightforward, and don't forget to use the corrent make command, in my case nmake. So nmake install and it installed fine. And last but not least, don't forget patience. Hope this helps. Janet. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: perlvars URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: MAKEFILE Type: application/octet-stream Size: 25297 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: map.h Type: application/octet-stream Size: 21616 bytes Desc: not available URL: From don at dlsilvia.ne.mediaone.net Mon May 7 15:34:28 2001 From: don at dlsilvia.ne.mediaone.net (Don Silvia) Date: Mon, 07 May 2001 18:34:28 -0400 Subject: [mapserver-users] Mapscript Perl examples - XBase.pm In-Reply-To: Message-ID: <5.0.0.25.2.20010507180543.01ea2110@ratbert> Janet, You can download the module from http://theoryx5.uwinnipeg.ca/scripts/CPAN/authors/id/P/PR/PRATP/Xbase-1.07.tar.gz . See http://theoryx5.uwinnipeg.ca/CPAN/cpan-search.html for a good CPAN search engine. To build on NT, you'll need to have a make utility, and some modules require a C compiler. You'll already have nmake if you have Visual C++ installed. Don Silvia At 10:24 AM Monday 5/7/2001, Janet Ciavarelli wrote: >Well, I finally got mapscript compiled and installed into Active X Perl on >a WinNT system. Whew! Now, when I go to run the shpinfo.pl, I get an error >message cause it can't find XBase.pm I searched my whole system for >XBase.pm and it's nowhere to be found. Where do I get XBase.pm from? >Anyone know? > >Janet. From timcera at earthlink.net Mon May 7 18:36:59 2001 From: timcera at earthlink.net (Tim Cera) Date: Mon, 7 May 2001 20:36:59 -0500 Subject: [mapserver-users] query timeout problem In-Reply-To: References: Message-ID: <01050720365900.00816@wanderer> On Friday 04 May 2001 15:22, Stephen Lime wrote: > I've got a feeling there was a bug in that specific query only (i.e. > simple point vs point). I remember fixing something related to that > in 3.5, but I don't remember the details. I know that I am doing that > exact thing with 3.3 and 3.4 here. What mode are you using- nquery or > query? Downloaded the nightly build, changed map file accordingly, and ... same problem. Any ideas? thanks Tim Cera From hassm at msue.msu.edu Tue May 8 08:51:53 2001 From: hassm at msue.msu.edu (Michael D. Hass) Date: Tue, 08 May 2001 11:51:53 -0400 Subject: [mapserver-users] re-districting webGIS Message-ID: <3.0.1.32.20010508115153.00e406e8@127.0.0.1> Hi All- Is anyone aware of webGIS (MapServer-based or other....) voter redistricting sites that allow for community participation in the process. Or for that matter any webGIS sites that have the 2000 block population counts. Thanks for any comments. Mike Hass ============================= Michael Hass, GIS Agent Branch GIS - MSU Extension County Annex, 23 E. Pearl St. Coldwater, MI 49036 phone: (517) 279-4311 hassm at msue.msu.edu www.branchgis.org ============================= From steve.lime at dnr.state.mn.us Tue May 8 12:04:24 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 08 May 2001 14:04:24 -0500 Subject: [mapserver-users] Mapscript Perl examples - XBase.pm Message-ID: There are two modules Xbase and XBase. The scripts I wrote use the latter. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Don Silvia 05/07/01 05:34PM >>> Janet, You can download the module from http://theoryx5.uwinnipeg.ca/scripts/CPAN/authors/id/P/PR/PRATP/Xbase-1.07.tar.gz . See http://theoryx5.uwinnipeg.ca/CPAN/cpan-search.html for a good CPAN search engine. To build on NT, you'll need to have a make utility, and some modules require a C compiler. You'll already have nmake if you have Visual C++ installed. Don Silvia At 10:24 AM Monday 5/7/2001, Janet Ciavarelli wrote: >Well, I finally got mapscript compiled and installed into Active X Perl on >a WinNT system. Whew! Now, when I go to run the shpinfo.pl, I get an error >message cause it can't find XBase.pm I searched my whole system for >XBase.pm and it's nowhere to be found. Where do I get XBase.pm from? >Anyone know? > >Janet. From don at dlsilvia.ne.mediaone.net Tue May 8 15:17:41 2001 From: don at dlsilvia.ne.mediaone.net (Don Silvia) Date: Tue, 08 May 2001 18:17:41 -0400 Subject: [mapserver-users] Mapscript Perl examples - XBase.pm In-Reply-To: Message-ID: <5.0.0.25.2.20010508181248.00ad3a38@ratbert> Oops, sorry about that. Now I remember installing the wrong one first, so I should have remembered this. The correct module can be downloaded from http://theoryx5.uwinnipeg.ca/scripts/CPAN/authors/id/J/JA/JANPAZ/DBD-XBase-0.173.tar.gz . Don Silvia At 02:04 PM Tuesday 5/8/2001, Stephen Lime wrote: >There are two modules Xbase and XBase. The scripts I wrote use the latter. > >Steve > >Stephen Lime >Internet Applications Analyst > >Minnesota DNR >500 Lafayette Road >St. Paul, MN 55155 >651-297-2937 > > >>> Don Silvia 05/07/01 05:34PM >>> >Janet, > >You can download the module from >http://theoryx5.uwinnipeg.ca/scripts/CPAN/authors/id/P/PR/PRATP/Xbase-1.07.tar.gz > >. See http://theoryx5.uwinnipeg.ca/CPAN/cpan-search.html for a good CPAN >search engine. > >To build on NT, you'll need to have a make utility, and some modules >require a C compiler. You'll already have nmake if you have Visual C++ >installed. > >Don Silvia > >At 10:24 AM Monday 5/7/2001, Janet Ciavarelli wrote: > >Well, I finally got mapscript compiled and installed into Active X Perl on > >a WinNT system. Whew! Now, when I go to run the shpinfo.pl, I get an error > >message cause it can't find XBase.pm I searched my whole system for > >XBase.pm and it's nowhere to be found. Where do I get XBase.pm from? > >Anyone know? > > > >Janet. From imap at chesapeake.net Tue May 8 20:25:36 2001 From: imap at chesapeake.net (Chris Stuber) Date: Tue, 08 May 2001 23:25:36 -0400 Subject: [mapserver-users] Mapscript Perl examples - XBase.pm References: <5.0.0.25.2.20010508181248.00ad3a38@ratbert> Message-ID: <3AF8B8B0.E2726E19@chesapeake.net> On a windows machine w/ActivePerl, you can just do the following: C:\> ppm install XBase and that's it. It is one of the ActiveState installable modules. I had sent this directly to Janet when the message was posted and forgot to cc the list. Regards, Chris Stuber (mapsurfer) Don Silvia wrote: > > Oops, sorry about that. Now I remember installing the wrong one first, so > I should have remembered this. The correct module can be downloaded from > http://theoryx5.uwinnipeg.ca/scripts/CPAN/authors/id/J/JA/JANPAZ/DBD-XBase-0.173.tar.gz > . > > Don Silvia > > At 02:04 PM Tuesday 5/8/2001, Stephen Lime wrote: > >There are two modules Xbase and XBase. The scripts I wrote use the latter. > > > >Steve > > > >Stephen Lime > >Internet Applications Analyst > > > >Minnesota DNR > >500 Lafayette Road > >St. Paul, MN 55155 > >651-297-2937 > > > > >>> Don Silvia 05/07/01 05:34PM >>> > >Janet, > > > >You can download the module from > >http://theoryx5.uwinnipeg.ca/scripts/CPAN/authors/id/P/PR/PRATP/Xbase-1.07.tar.gz > > > >. See http://theoryx5.uwinnipeg.ca/CPAN/cpan-search.html for a good CPAN > >search engine. > > > >To build on NT, you'll need to have a make utility, and some modules > >require a C compiler. You'll already have nmake if you have Visual C++ > >installed. > > > >Don Silvia > > > >At 10:24 AM Monday 5/7/2001, Janet Ciavarelli wrote: > > >Well, I finally got mapscript compiled and installed into Active X Perl on > > >a WinNT system. Whew! Now, when I go to run the shpinfo.pl, I get an error > > >message cause it can't find XBase.pm I searched my whole system for > > >XBase.pm and it's nowhere to be found. Where do I get XBase.pm from? > > >Anyone know? > > > > > >Janet. From blackmail at snafu.de Tue May 8 23:52:10 2001 From: blackmail at snafu.de (Peter Brack) Date: Wed, 09 May 2001 08:52:10 +0200 Subject: [mapserver-users] how to highlight or label one point in a pointshape with the msdemo? Message-ID: <3AF8E91A.1F8C4822@snafu.de> Hi Listers, anybody out there who knows how to highlight or label one point in a pointshape with the msdemo? Thanks a lot Peter From mapadm at polsl.gliwice.pl Wed May 9 01:35:17 2001 From: mapadm at polsl.gliwice.pl (Grzegorz Myrda) Date: Wed, 9 May 2001 10:35:17 +0200 Subject: [mapserver-users] querymap mode In-Reply-To: Message-ID: Yap, I know. It was clarified a few times on the list. But In my opinion querymaps are not exactly normal maps. The way they are generated has some consequences. Differences are: -itemquerymap returns just image, not template, so mapserv is called 2 times (first to return template, second to return querymap which is not saved to temporary file) -map is generated from mapserv parameters used in [img] tag. So to modify map looks like, you have to modify template source. In case of normal maps you modify only URL. Grzegorz > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Stephen Lime > Sent: Monday, May 07, 2001 4:46 PM > To: mapserver-users at lists.gis.umn.edu; mapadm at polsl.gliwice.pl > Subject: Re: [mapserver-users] querymap mode > > > Querymaps can be used just like normal maps. The only difference > is how/when > they are generated. You access them using the [img] replacement > tag in templates > associated with queries or using special modes like itemquerymap > or nquerymap. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> "Grzegorz Myrda" 05/06/01 12:53PM >>> > Hi, > Just wondering why querymaps can be used only in tags. This make > it difficult to pass args from the URL :( > Wouldn't it better to allow additional mode(s), for example: > browseitemquerymap :) which would save image (querymap) and > return template > ? > Mapscript (or even javascript) can be used to provide args to > tag, > but 'mode' would be simpler and also future posts with doubts > that querymaps > are not 'normal maps' can be avoided. > > Grzegorz > > From kunkun at virtual-map.com Wed May 9 02:39:54 2001 From: kunkun at virtual-map.com (kunkun kurniawan) Date: Wed, 9 May 2001 16:39:54 +0700 Subject: [mapserver-users] how to configure References: <3AF8E91A.1F8C4822@snafu.de> Message-ID: <022201c0d86c$02ab4420$0501a8c0@kunkun> Hi Listers, I can't configure. I use web server Linux RH 7.0. messages bash: configure: command not found How to configure ??? Thank u kunkun -------------- next part -------------- An HTML attachment was scrubbed... URL: From gs01hqn at yahoo.com Wed May 9 05:20:36 2001 From: gs01hqn at yahoo.com (Hung Q. Nguyen) Date: Wed, 9 May 2001 05:20:36 -0700 (PDT) Subject: [mapserver-users] Putting GSP positions into mapserver Message-ID: <20010509122036.21701.qmail@web3203.mail.yahoo.com> Hello, I am a newbie to mapserver. I am looking for a way to plot the coordinates of GPS devices to mapserver for real-time truck tracking. The GPS data are stored in a PostGres database. I want to be able to connect to the database to get the GPS coordinates at certain time intervals and plot it to the mapserver for tracking. Would anyone please show me how to connect to the database, get the coordinates, and plot them to the mapserver? Thanks a lot. From Michael.Hearne at noaa.gov Wed May 9 05:29:34 2001 From: Michael.Hearne at noaa.gov (Michael Hearne) Date: Wed, 09 May 2001 08:29:34 -0400 Subject: [mapserver-users] how to configure References: <3AF8E91A.1F8C4822@snafu.de> <022201c0d86c$02ab4420$0501a8c0@kunkun> Message-ID: <3AF9382D.FEB02C00@noaa.gov> Kunkun - 1) cd to the directory containing MapServer installation 2) Type './configure'. That should work. -Mike > kunkun kurniawan wrote: > > Hi Listers, > I can't configure. I use web server Linux RH 7.0. > messages bash: configure: command not found > > How to configure ??? > > Thank u > kunkun -- Michael G. Hearne email: Michael.Hearne at noaa.gov Coastal Remote Sensing phone: 843 740-1281 TPMC/NOAA Coastal Services Center fax: 843 740-1312 2234 S. Hobson Ave., Charleston, SC 29407 From tomkralidis at hotmail.com Wed May 9 05:52:12 2001 From: tomkralidis at hotmail.com (Tom Kralidis) Date: Wed, 09 May 2001 08:52:12 -0400 Subject: [mapserver-users] how to configure Message-ID: Have you tried this page: http://mapserver.gis.umn.edu/doc/unix-install-howto.html Hope this helps ..Tom >From: "kunkun kurniawan" >To: "Mapserver" >Subject: [mapserver-users] how to configure >Date: Wed, 9 May 2001 16:39:54 +0700 >MIME-Version: 1.0 >Received: from [128.101.73.109] by hotmail.com (3.2) with ESMTP id >MHotMailBCC2642B0084400437168065496DA3050; Wed May 09 03:17:18 2001 >Received: (from majordom at localhost)by lists.gis.umn.edu (8.9.3+Sun/8.9.1) >id EAA16497for mapserver-users-list; Wed, 9 May 2001 04:39:19 -0500 (CDT) >Received: from corp4.cbn.net.id ([202.158.3.28])by lists.gis.umn.edu >(8.9.3+Sun/8.9.1) with ESMTP id EAA16493for >; Wed, 9 May 2001 04:39:13 -0500 (CDT) >Received: from kunkun (unknown [202.158.58.43])by corp4.cbn.net.id >(Postfix) with SMTP id D8EE75593Efor ; >Wed, 9 May 2001 16:37:06 +0700 (JAVT) >From owner-mapserver-users at lists.gis.umn.edu Wed May 09 03:17:35 2001 >Message-ID: <022201c0d86c$02ab4420$0501a8c0 at kunkun> >References: <3AF8E91A.1F8C4822 at snafu.de> >X-Priority: 3 >X-MSMail-Priority: Normal >X-Mailer: Microsoft Outlook Express 5.00.2919.6700 >X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 >Sender: owner-mapserver-users at lists.gis.umn.edu >Precedence: bulk > > Hi Listers, > >I can't configure. I use web server Linux RH 7.0. >messages bash: configure: command not found > >How to configure ??? > >Thank u >kunkun _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From teb at mallit.fr.umn.edu Wed May 9 07:23:59 2001 From: teb at mallit.fr.umn.edu (teb) Date: Wed, 9 May 2001 09:23:59 -0500 (CDT) Subject: [mapserver-users] Buffers (fwd) Message-ID: <200105091423.JAA11139@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "PSU" To: Subject: Buffers Date: Wed, 9 May 2001 09:34:36 -0400 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Is there any information available reguarding buffering? At a minimum, I would like to display data liked to objects within a buffer area that users will define. Thanks, Tom ------------- End Forwarded Message ------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at dnr.state.mn.us Wed May 9 08:39:13 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 09 May 2001 10:39:13 -0500 Subject: [mapserver-users] querymap mode Message-ID: So, is there a problem or not? I'm not quite sure what you're getting at. The different "querymap" modes behave just like the normal "map" modes in that only an image is returned. Other wise whenever you use the [img] tag in a template you're accessing a regular or query map. The only difference is in which template. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Grzegorz Myrda" 05/09/01 03:35AM >>> Yap, I know. It was clarified a few times on the list. But In my opinion querymaps are not exactly normal maps. The way they are generated has some consequences. Differences are: -itemquerymap returns just image, not template, so mapserv is called 2 times (first to return template, second to return querymap which is not saved to temporary file) -map is generated from mapserv parameters used in [img] tag. So to modify map looks like, you have to modify template source. In case of normal maps you modify only URL. Grzegorz > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Stephen Lime > Sent: Monday, May 07, 2001 4:46 PM > To: mapserver-users at lists.gis.umn.edu; mapadm at polsl.gliwice.pl > Subject: Re: [mapserver-users] querymap mode > > > Querymaps can be used just like normal maps. The only difference > is how/when > they are generated. You access them using the [img] replacement > tag in templates > associated with queries or using special modes like itemquerymap > or nquerymap. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> "Grzegorz Myrda" 05/06/01 12:53PM >>> > Hi, > Just wondering why querymaps can be used only in tags. This make > it difficult to pass args from the URL :( > Wouldn't it better to allow additional mode(s), for example: > browseitemquerymap :) which would save image (querymap) and > return template > ? > Mapscript (or even javascript) can be used to provide args to > tag, > but 'mode' would be simpler and also future posts with doubts > that querymaps > are not 'normal maps' can be avoided. > > Grzegorz > > From steve.lime at dnr.state.mn.us Wed May 9 10:57:43 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 09 May 2001 12:57:43 -0500 Subject: [mapserver-users] Buffers (fwd) Message-ID: It's an interesting question, one that has a number of possible answers depending on what exactly you want to do. MapServer has no formal buffering support. That is, there is no way to take a feature, buffer it and create a new feature. However, if you think about it many queries are themselves buffers. For example, a point query (nquery mode) with a tolerance other than 0 effectively creates a search buffer (i.e. find all features within x units of this point). Same goes for polygon features when using the featurequery modes. MapServer also supports searches based on arbitrary polygons passed in via a url or using MapScript. It's the users responsibility to get those features using java or whatever. Display of the selected (eg. buffered) features then is handled using querymaps. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> teb 05/09/01 09:23AM >>> ------------- Begin Forwarded Message ------------- From: "PSU" To: Subject: Buffers Date: Wed, 9 May 2001 09:34:36 -0400 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Is there any information available reguarding buffering? At a minimum, I would like to display data liked to objects within a buffer area that users will define. Thanks, Tom ------------- End Forwarded Message ------------- From LBallard at YesVirginia.org Wed May 9 11:45:52 2001 From: LBallard at YesVirginia.org (Ballard,Lowell) Date: Wed, 9 May 2001 14:45:52 -0400 Subject: [mapserver-users] Multiple fields for labelitem Message-ID: <509989F9E1D38D47ADA73ED9CF5BF32A16CA1F@communications> I can't seem to locate how to, if possible, use multiple items from a shapefile to label features. If anyone has done this please let me know. Preferably I would like to stack them. Thanks, Lowell Ballard Unix/Database Administrator Virginia Economic Development Partnership 901 E. Byrd St., Richmond, Va. 23218 http://gis.vedp.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at dnr.state.mn.us Wed May 9 12:47:22 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 09 May 2001 14:47:22 -0500 Subject: [mapserver-users] Multiple fields for labelitem Message-ID: You use text expressions within a class, for example: CLASS .. TEXT ([LAST_NAME], [FIRST_NAME]) END where LAST_NAME and FIRST_NAME are attributes. Note that you don't have to use a LABELITEM in this case. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Ballard,Lowell" 05/09/01 01:45PM >>> I can't seem to locate how to, if possible, use multiple items from a shapefile to label features. If anyone has done this please let me know. Preferably I would like to stack them. Thanks, Lowell Ballard Unix/Database Administrator Virginia Economic Development Partnership 901 E. Byrd St., Richmond, Va. 23218 http://gis.vedp.org From LBallard at YesVirginia.org Wed May 9 13:14:21 2001 From: LBallard at YesVirginia.org (Ballard,Lowell) Date: Wed, 9 May 2001 16:14:21 -0400 Subject: [mapserver-users] Nice option for help in Map Interfaces Message-ID: <509989F9E1D38D47ADA73ED9CF5BF32A16CA24@communications> Map interfaces tend to get crowded. I was asked to provide some online help for using the map interface. This is the solution I picked. http://gis.vedp.org/ Follow the Map Server link. Hold your mouse over the "Help" pseudo links. It should work in most browsers. To find out how to implement it go to: http://www.bosrup.com/web/overlib/ Hope it helps, Lowell Ballard Unix/Database Administrator Virginia Economic Development Partnership 901 E. Byrd St., Richmond, Va. 23218 http://gis.vedp.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt at aruke.com Wed May 9 23:50:27 2001 From: matt at aruke.com (matt) Date: Thu, 10 May 2001 15:50:27 +0900 Subject: [mapserver-users] memory leaks References: <509989F9E1D38D47ADA73ED9CF5BF32A16CA24@communications> Message-ID: <002301c0d91d$806d0040$0400a8c0@matt> hi, i'm using mapserver 3.3.011 on redhat 6.2. i'm generating my map image using mapscript perl module on mod_perl 1.25 on apache 1.3.9. i'm not doing anything complicated, just grabbing a map file and generating the image, my problem is that when i'm monitoring my memory usage increases pretty darn fast when printing heavy maps. i've included code that i'm using at the bottom, if anyone sees anything obviously stupid i'd be happy to hear what it is. i'm a cold fusion programmer a little new to mod perl. my goal right now is to share as much memory as possible, i've already done a perlrequire to a script that loads mapscript and all my other modules into the parent process, i'm guessing my $map and $img vars are my biggest concern, is there anyway that i can code this so that i am sharing these variables across all httpd processes(assuming i'm not already) like my modules? also rather than create new map objects on each request i tried if (!defined $map) {$map = new mapObj(file);} but when i printed the map it had garbled data from the prviously drawn map, is there a way to flush/clean out the image so this works? any help would be greatly appreciated, matt ------ here's a stripped version of my code, i call it from within an html img tag. -------------- #!/usr/bin/perl use mapscript; use XBase; require "glbLib/parse_form.pl"; require "glbLib/util.pl"; my %formdata; %formdata = parse_form(); my @ti = localtime(time); ###### parse query string for vars ########## my $key; my ($lat,$lon,$zoom); my $zm; my $filename; my $flvar = do_count("./","mapctr",1000); my $mapfile; my $numpoints = 0; ##### create a filename using time and file numbers #### $filename = "MS_". at ti[5]."-". at ti[4]."-". at ti[3]."--". at ti[2]."-". at ti[1]."-". at ti[0]."*".$fl var; $mapfile = "/usr/local/apache/htdocs/tmp/".$filename; foreach $key (sort keys(%formdata)){ if ($key =~m/mlat/){ $lat = $formdata{$key}; } elsif ($key =~m/mlon/){ $lon = $formdata{$key}; } elsif ($key =~m/zoom/){ $zoom = $formdata{$key}; } } $map = new mapObj('/usr/local/apache/perl/demo.map'); my ($CVlat,$CVlon) = latToMeter($lat); my $latdf = $zoom * 500 * $CVlat; my $londf = $zoom * 500 * $CVlon; $map->{extent}->{maxx} = $lon + $londf; $map->{extent}->{minx} = $lon - $londf; $map->{extent}->{maxy} = $lat + $latdf; $map->{extent}->{miny} = $lat - $latdf; $img = $map->draw() or die('unable to draw map'); ####################### draw map and save ################# $map->drawLabelCache($img); mapscript::msSaveImage($img,$mapfile,0,0); mapscript::msFreeImage($img); ##### read in file and stream it into page, set content type. #### print "Content-type: image/gif\r\n\r\n"; open(FILE,$mapfile); binmode(FILE); @buffer = ; foreach (@buffer){ print $_; } close(FILE); system("rm -f $mapfile"); undef $map; ############################ end ############################ -------------- next part -------------- An HTML attachment was scrubbed... URL: From JohnHockaday at auslig.gov.au Thu May 10 01:16:52 2001 From: JohnHockaday at auslig.gov.au (Hockaday, John) Date: Thu, 10 May 2001 18:16:52 +1000 Subject: [mapserver-users] Nice option for help in Map Interfaces Message-ID: <53273E187450D311ACF6009027927B1201C72038@smtpgate.auslig.gov.au> Lowell, I like your help pseudo links very much. Do you mind if I steal your idea? John Hockaday > -----Original Message----- > From: Ballard,Lowell [SMTP:LBallard at YesVirginia.org] > Sent: Thursday, May 10, 2001 6:14 AM > To: 'mapserver-users at lists.gis.umn.edu' > Subject: [mapserver-users] Nice option for help in Map Interfaces > > Map interfaces tend to get crowded. I was asked to provide some online > help for using the map interface. This is the solution I picked. > > Follow the Map Server link. > > Hold your mouse over the "Help" pseudo links. It should work in most > browsers. > > To find out how to implement it go to: > > > > Hope it helps, > > Lowell Ballard > Unix/Database Administrator > Virginia Economic Development Partnership > 901 E. Byrd St., Richmond, Va. 23218 > http://gis.vedp.org > From gs01hqn at yahoo.com Thu May 10 04:36:53 2001 From: gs01hqn at yahoo.com (Hung Q. Nguyen) Date: Thu, 10 May 2001 04:36:53 -0700 (PDT) Subject: Fwd: Re: [mapserver-users] Putting GSP positions into mapserver Message-ID: <20010510113653.10780.qmail@web3201.mail.yahoo.com> Note: forwarded message attached. -------------- next part -------------- An embedded message was scrubbed... From: Romi Hardiyanto Subject: Re: [mapserver-users] Putting GSP positions into mapserver Date: Wed, 9 May 2001 21:11:17 +0700 (JAVT) Size: 1967 URL: From gs01hqn at yahoo.com Thu May 10 04:38:26 2001 From: gs01hqn at yahoo.com (Hung Q. Nguyen) Date: Thu, 10 May 2001 04:38:26 -0700 (PDT) Subject: Fwd: Re: [mapserver-users] Putting GSP positions into mapserver Message-ID: <20010510113826.26511.qmail@web3205.mail.yahoo.com> Note: forwarded message attached. -------------- next part -------------- An embedded message was scrubbed... From: "David Armstrong" Subject: Re: [mapserver-users] Putting GSP positions into mapserver Date: Wed, 9 May 2001 15:25:10 +0100 Size: 2169 URL: From wgwallace at students.wisc.edu Thu May 10 09:06:16 2001 From: wgwallace at students.wisc.edu (Woody Wallace) Date: Thu, 10 May 2001 11:06:16 -0500 Subject: [mapserver-users] Re: send in your apps/demo's... Message-ID: <3AFABC78.F57B65D3@students.wisc.edu> We are still adding content, collecting metadata, and fine tuning, but here is our first shot at a digital orthophoto catalogue for Dane Co., WI. http://144.92.235.164/orthofinder/index.html Map is generated by MapServer. Catalogue is stored in a MySQL database. Footprints are stored in shapefiles. PHP is used to generate the table from an SQL query to the database based on a spatial query done in MapScript. Comments are appreciated. Woody Wallace Wisconsin State Cartographer's Office From steve.lime at dnr.state.mn.us Thu May 10 09:10:25 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 10 May 2001 11:10:25 -0500 Subject: [mapserver-users] memory leaks Message-ID: My guess is that the problem is related to Swig and mod_perl. I recall seeing messages on the Swig mailing list about problems that made Swig-based modules unusable within mod_perl. I'll drop a note to the Swig list to see if I can get an update. You might just running as a perl CGI (i.e. no mod_perl) and see if you see the same problems. That would help isolate things. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "matt" 05/10/01 01:50AM >>> hi, i'm using mapserver 3.3.011 on redhat 6.2. i'm generating my map image using mapscript perl module on mod_perl 1.25 on apache 1.3.9. i'm not doing anything complicated, just grabbing a map file and generating the image, my problem is that when i'm monitoring my memory usage increases pretty darn fast when printing heavy maps. i've included code that i'm using at the bottom, if anyone sees anything obviously stupid i'd be happy to hear what it is. i'm a cold fusion programmer a little new to mod perl. my goal right now is to share as much memory as possible, i've already done a perlrequire to a script that loads mapscript and all my other modules into the parent process, i'm guessing my $map and $img vars are my biggest concern, is there anyway that i can code this so that i am sharing these variables across all httpd processes(assuming i'm not already) like my modules? also rather than create new map objects on each request i tried if (!defined $map) {$map = new mapObj(file);} but when i printed the map it had garbled data from the prviously drawn map, is there a way to flush/clean out the image so this works? any help would be greatly appreciated, matt ------ here's a stripped version of my code, i call it from within an html img tag. -------------- #!/usr/bin/perl use mapscript; use XBase; require "glbLib/parse_form.pl"; require "glbLib/util.pl"; my %formdata; %formdata = parse_form(); my @ti = localtime(time); ###### parse query string for vars ########## my $key; my ($lat,$lon,$zoom); my $zm; my $filename; my $flvar = do_count("./","mapctr",1000); my $mapfile; my $numpoints = 0; ##### create a filename using time and file numbers #### $filename = "MS_". at ti[5]."-". at ti[4]."-". at ti[3]."--". at ti[2]."-". at ti[1]."-". at ti[0]."*".$fl var; $mapfile = "/usr/local/apache/htdocs/tmp/".$filename; foreach $key (sort keys(%formdata)){ if ($key =~m/mlat/){ $lat = $formdata{$key}; } elsif ($key =~m/mlon/){ $lon = $formdata{$key}; } elsif ($key =~m/zoom/){ $zoom = $formdata{$key}; } } $map = new mapObj('/usr/local/apache/perl/demo.map'); my ($CVlat,$CVlon) = latToMeter($lat); my $latdf = $zoom * 500 * $CVlat; my $londf = $zoom * 500 * $CVlon; $map->{extent}->{maxx} = $lon + $londf; $map->{extent}->{minx} = $lon - $londf; $map->{extent}->{maxy} = $lat + $latdf; $map->{extent}->{miny} = $lat - $latdf; $img = $map->draw() or die('unable to draw map'); ####################### draw map and save ################# $map->drawLabelCache($img); mapscript::msSaveImage($img,$mapfile,0,0); mapscript::msFreeImage($img); ##### read in file and stream it into page, set content type. #### print "Content-type: image/gif\r\n\r\n"; open(FILE,$mapfile); binmode(FILE); @buffer = ; foreach (@buffer){ print $_; } close(FILE); system("rm -f $mapfile"); undef $map; ############################ end ############################ From jrpatton at northcoast.com Thu May 10 11:31:16 2001 From: jrpatton at northcoast.com (Jason R. Patton) Date: Thu, 10 May 2001 11:31:16 -0700 Subject: [mapserver-users] Re: send in your apps/demo's... References: <3AFABC78.F57B65D3@students.wisc.edu> Message-ID: <3AFADE74.E5F8E7D4@northcoast.com> greetings, well, our site is now officially up and running. feel free to add this link to the gallery page. please send comments to me, jay patton asaf at humboldt.edu thanks for all of your help. i will be around for a while (working on another mapserver project as we speak) http://humboldtbay.cnrs.humboldt.edu (use this one for the gallery page, it has no banner ads like the second link: ) or http://humboldtbay.org (this link has banner ads since the domain is hosted for "free") jay From LBallard at YesVirginia.org Thu May 10 12:28:32 2001 From: LBallard at YesVirginia.org (Ballard,Lowell) Date: Thu, 10 May 2001 15:28:32 -0400 Subject: [mapserver-users] Linux SDE configure error..... Message-ID: <509989F9E1D38D47ADA73ED9CF5BF32A16CA30@communications> I pulled the ArcSDE Client for Red Hat from my SDE Pre-Release 8.1 disks. This is the error I got when I tried to configure. I put in my "path to SDE" the /include directory shown below. Mapserver Version = 3.4 RH = 7.0 Intel checking whether we should include ESRI SDE support... configure: error: Could not find sdetype.h or libsde80.a in /home/httpd/html/testweb/sdeexe81/include/. [root at castor mapserver]# locate sdetype.h /home/httpd/html/testweb/sdeexe81/include/sdetype.h [root at castor mapserver]# locate libsde80.a Any thoughts? Lowell Ballard Unix/Database Administrator Virginia Economic Development Partnership 901 E. Byrd St., Richmond, Va. 23218 http://gis.vedp.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt at aruke.com Thu May 10 18:48:55 2001 From: matt at aruke.com (matt) Date: Fri, 11 May 2001 10:48:55 +0900 Subject: [mapserver-users] memory leaks References: Message-ID: <002a01c0d9bc$8ad75220$0400a8c0@matt> thanks again Steve, everything is a lot more stable now that i'm not running on mod perl, although a little slower than when mod perl first starts up and hasn't built up a whole lot of memory. i am still hoping for the fix, though because i'm guessing if working right mod perl would perform better. matt ----- Original Message ----- From: "Stephen Lime" To: ; Sent: Friday, May 11, 2001 1:10 AM Subject: Re: [mapserver-users] memory leaks My guess is that the problem is related to Swig and mod_perl. I recall seeing messages on the Swig mailing list about problems that made Swig-based modules unusable within mod_perl. I'll drop a note to the Swig list to see if I can get an update. You might just running as a perl CGI (i.e. no mod_perl) and see if you see the same problems. That would help isolate things. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "matt" 05/10/01 01:50AM >>> hi, i'm using mapserver 3.3.011 on redhat 6.2. i'm generating my map image using mapscript perl module on mod_perl 1.25 on apache 1.3.9. i'm not doing anything complicated, just grabbing a map file and generating the image, my problem is that when i'm monitoring my memory usage increases pretty darn fast when printing heavy maps. i've included code that i'm using at the bottom, if anyone sees anything obviously stupid i'd be happy to hear what it is. i'm a cold fusion programmer a little new to mod perl. my goal right now is to share as much memory as possible, i've already done a perlrequire to a script that loads mapscript and all my other modules into the parent process, i'm guessing my $map and $img vars are my biggest concern, is there anyway that i can code this so that i am sharing these variables across all httpd processes(assuming i'm not already) like my modules? also rather than create new map objects on each request i tried if (!defined $map) {$map = new mapObj(file);} but when i printed the map it had garbled data from the prviously drawn map, is there a way to flush/clean out the image so this works? any help would be greatly appreciated, matt ------ here's a stripped version of my code, i call it from within an html img tag. -------------- #!/usr/bin/perl use mapscript; use XBase; require "glbLib/parse_form.pl"; require "glbLib/util.pl"; my %formdata; %formdata = parse_form(); my @ti = localtime(time); ###### parse query string for vars ########## my $key; my ($lat,$lon,$zoom); my $zm; my $filename; my $flvar = do_count("./","mapctr",1000); my $mapfile; my $numpoints = 0; ##### create a filename using time and file numbers #### $filename = "MS_". at ti[5]."-". at ti[4]."-". at ti[3]."--". at ti[2]."-". at ti[1]."-". at ti[0]."*".$fl var; $mapfile = "/usr/local/apache/htdocs/tmp/".$filename; foreach $key (sort keys(%formdata)){ if ($key =~m/mlat/){ $lat = $formdata{$key}; } elsif ($key =~m/mlon/){ $lon = $formdata{$key}; } elsif ($key =~m/zoom/){ $zoom = $formdata{$key}; } } $map = new mapObj('/usr/local/apache/perl/demo.map'); my ($CVlat,$CVlon) = latToMeter($lat); my $latdf = $zoom * 500 * $CVlat; my $londf = $zoom * 500 * $CVlon; $map->{extent}->{maxx} = $lon + $londf; $map->{extent}->{minx} = $lon - $londf; $map->{extent}->{maxy} = $lat + $latdf; $map->{extent}->{miny} = $lat - $latdf; $img = $map->draw() or die('unable to draw map'); ####################### draw map and save ################# $map->drawLabelCache($img); mapscript::msSaveImage($img,$mapfile,0,0); mapscript::msFreeImage($img); ##### read in file and stream it into page, set content type. #### print "Content-type: image/gif\r\n\r\n"; open(FILE,$mapfile); binmode(FILE); @buffer = ; foreach (@buffer){ print $_; } close(FILE); system("rm -f $mapfile"); undef $map; ############################ end ############################ From assefa at dmsolutions.ca Fri May 11 10:39:27 2001 From: assefa at dmsolutions.ca (Assefa Yewondwossen) Date: Fri, 11 May 2001 13:39:27 -0400 Subject: [mapserver-users] temporary files deletion Message-ID: <3AFC23CF.C5DDD2B1@dmsolutions.ca> Hi, Does any one has a bat file or an exe file (or other means) that I can use to delete files on windows based on the time of the files. I would like to be able to delete tmp gif files generated by mapserver that are older that x time. Thanks, -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 ---------------------------------------------------------------- From dharma_cowboy at hotmail.com Fri May 11 12:37:41 2001 From: dharma_cowboy at hotmail.com (Mike Law) Date: Fri, 11 May 2001 15:37:41 -0400 Subject: [mapserver-users] Choropleth Maps? Message-ID: Greetings, We are currently developing an online mapping system to examine smoking rates and are wondering if mapserver has the ability to produce choropleth maps. After experiementing with the program for a couple of days we haven't been able to find anything, but are hoping someone out there knows the answer. Thanks for your help. _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From Matt.Wilkie at gov.yk.ca Fri May 11 13:45:51 2001 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Fri, 11 May 2001 13:45:51 -0700 Subject: [mapserver-users] FW: MapServer and PWS Message-ID: <6DD7370C9452D31192A10008C75D07530A0999BA@raptor.gov.yk.ca> Sorry Chip, I don't know anything about PWS. Perhaps somebody on the list will. -matt ----------------------------------------------------------------- Matt Wilkie * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ ----------------------------------------------------------------- > -----Original Message----- > From: Hankley, Chip [mailto:Chip.Hankley at GASAI.Com] > Sent: 11 May 2001 11:49 > To: 'Matt.Wilkie at gov.yk.ca' > Subject: MapServer > > > Matt, > > Hopefully you can respond to questions about MapServer. > > I'm trying to set up the demonstration application on a WinNT > Workstation > machine running Personal Web Server. > > I have followed the directions, and don't think I have any errors. > > When I hit the initialize button, I get the following error: > > "The specified CGI application misbehaved by not returning a > complete set of > HTTP headers. The headers it did return are:" > > Any ideas? > > Cheers! > > Chip > > Chip Hankley, GIS Coordinator > Graef, Anhalt, Schloemer & Associates, Inc. > 5126 West Terrace Drive > Madison, Wisconsin 53718-8343 > Telephone: (608) 245-1969 > FAX: (608) 242-0787 > http://www.gasai.com/ > ChipHankley at GASAI.com > > From steve.lime at dnr.state.mn.us Fri May 11 14:48:27 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 11 May 2001 16:48:27 -0500 Subject: [mapserver-users] Another app to look at... Message-ID: We've got a new version of the DNR Recreation Compass in production. Please visit: http://maps.dnr.state.mn.us/cgi-bin/mapserv?map=/usr/local/www/docs/compass/view_java.map&zoomsize=3&zoomdir=1 Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From robert.schmitz-huebsch at web.de Sat May 12 05:28:14 2001 From: robert.schmitz-huebsch at web.de (=?iso-8859-1?Q?Robert_Schmitz-H=FCbsch?=) Date: Sat, 12 May 2001 14:28:14 +0200 Subject: [mapserver-users] OK, another blank gif-file... Message-ID: I setup a .map-file that creates a gif-file containing an orthophoto and a simple shapefile using "shp2img". This works just fine, but when I try to invoke the exact same .map-file with the "mapserv"-program using http://130.75.85.56/cgi-bin/mapserv?map=/home/httpd/cgi-bin/test2.map&templa te=/home/httpd/html/test1.htm&imgext=3480000.000+5399000.000+3481557.000+540 0740.000 ...for example, the gif-files stay white!!. There cannot be anything wrong with directories or missing files, since the .map-file is already tested on that same machine. This is also true for the map-EXTENT. I also tried to install binaries for GD, libtiff and libjpeg using the "rpm"-command on redhat 6.2 for SPARC, but it always said everything was in place just fine already, since I had compiled these before on that machine. I also tried to save the orthophoto as unpacked gif, greyscale, of course, but at least the shapefile should show up, right? It even works with the windows-"shp2img"!! -> Here is the .map-file: NAME TEST2- EXTENT 3480000.0 5399000.0 3481557.0 5400740.0 SIZE 400 400 SHAPEPATH "/home/arcims/Daten/shapes/" # PROJECTION # "proj=utm" # "ellps=GRS80" # "zone=15" # "north" # "no_defs" # END WEB IMAGEPATH "/home/httpd/MAPS/" IMAGEURL "http://130.75.85.56/MAPS/" LOG "/home/httpd/cgi-bin/test2.log" END LAYER NAME ortho-0 DATA "/home/arcims/Daten/orthos/ortho_a1_100cm_gk3_0_0_grey.tif" STATUS ON TYPE RASTER END # end of layer object LAYER NAME "bebauung1" DATA beb_freudenst_1a_erw_gk3 STATUS ON TYPE POLYGON CLASS COLOR 60 60 60 END # CLASS OBJECT END # end of layer object END # end of mapfile -> These are the last two log-entries: Sat May 12 11:03:32 2001,28358,217.80.69.247,TEST2-,0,3479908.421053 5399000.000000 3481648.578947 5400740.000000,-1. 000000 -1.000000,,normal execution Sat May 12 11:25:07 2001,28382,217.80.69.247,TEST2-,0,3479908.421053 5399000.000000 3481648.578947 5400740.000000,-1. 000000 -1.000000,,normal execution Any ideas on this one? What does the "0" after the map-name "TEST2-" mean? Regards, Robert -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Schach.gif Type: application/octet-stream Size: 2947 bytes Desc: not available URL: From Patrick.McGlamery at uconn.edu Sat May 12 08:18:03 2001 From: Patrick.McGlamery at uconn.edu (Patrick McGlamery) Date: Sat, 12 May 2001 11:18:03 -0400 Subject: [mapserver-users] unsubscribe Message-ID: <5D5ED9DBE60FD4118EA600D0B74450D6E08938@exchange.lib.uconn.edu> From david.fawcett at moea.state.mn.us Mon May 14 08:09:03 2001 From: david.fawcett at moea.state.mn.us (Fawcett, David) Date: Mon, 14 May 2001 10:09:03 -0500 Subject: [mapserver-users] FW: MapServer and PWS Message-ID: I briefly played around with PWS on my home computer before going to Apache. I got a similar error message due to a problem in my map file. It was at the same time that I was converting an application from 3.2 to 3.3, and my map file contained an item that was no longer valid for 3.3. What version of the binary are you running? Make sure that your map file works with the version that you are using. Check the paths, symbol sets, etc. Strip it down to the essentials. You could also post it to the list. There are plenty of people who could take a quick look at it and diagnose any common errors. David. David J. Fawcett GIS / Databases MN Office of Environmental Assistance 520 Lafayette Rd N St. Paul, MN 55155 651.215.0200 > ---------- > From: Matt.Wilkie[SMTP:Matt.Wilkie at gov.yk.ca] > Sent: Friday, May 11, 2001 3:45 PM > To: Hankley, Chip > Cc: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] FW: MapServer and PWS > > Sorry Chip, I don't know anything about PWS. Perhaps somebody on > the list will. > > > -matt > > ----------------------------------------------------------------- > Matt Wilkie * Yukon Renewable Resources GIS > http://renres.gov.yk.ca/pubs/rrgis/ > ----------------------------------------------------------------- > > > > -----Original Message----- > > From: Hankley, Chip [mailto:Chip.Hankley at GASAI.Com] > > Sent: 11 May 2001 11:49 > > To: 'Matt.Wilkie at gov.yk.ca' > > Subject: MapServer > > > > > > Matt, > > > > Hopefully you can respond to questions about MapServer. > > > > I'm trying to set up the demonstration application on a WinNT > > Workstation > > machine running Personal Web Server. > > > > I have followed the directions, and don't think I have any errors. > > > > When I hit the initialize button, I get the following error: > > > > "The specified CGI application misbehaved by not returning a > > complete set of > > HTTP headers. The headers it did return are:" > > > > Any ideas? > > > > Cheers! > > > > Chip > > > > Chip Hankley, GIS Coordinator > > Graef, Anhalt, Schloemer & Associates, Inc. > > 5126 West Terrace Drive > > Madison, Wisconsin 53718-8343 > > Telephone: (608) 245-1969 > > FAX: (608) 242-0787 > > http://www.gasai.com/ > > ChipHankley at GASAI.com > > > > > From tbauerulem at gmx.de Mon May 14 11:02:04 2001 From: tbauerulem at gmx.de (Thomas Bauer) Date: Mon, 14 May 2001 20:02:04 +0200 Subject: [mapserver-users] deutschsprachiger Informationsaustausch zu WebServer Message-ID: <01C0DCB0.C03DBC00@pD903E2B1.dip0.t-ipconnect.de> Hi, ich bin neu bei WebServer und habe einige Schwierigkeiten mit den vielen englischen Fachbegriffen. Kann mir jemand in deutscher Sprache weiterhelfen? Gru? Thomas From assefa at dmsolutions.ca Mon May 14 13:00:44 2001 From: assefa at dmsolutions.ca (Assefa Yewondwossen) Date: Mon, 14 May 2001 16:00:44 -0400 Subject: [mapserver-users] temporary files deletion References: <3AFC23CF.C5DDD2B1@dmsolutions.ca> Message-ID: <3B00396C.EC8C8FC4@dmsolutions.ca> Hi There, For those of you who use windows, there is an executable on our site that can be used to delete tmp files created by mapserver. http://www2.dmsolutions.on.ca/webtools/dl/deltmpfiles.zip Note : I did some initial testing but I will start testing it on our internal server begining today. Later, Assefa Yewondwossen wrote: > Hi, > > Does any one has a bat file or an exe file (or other means) that I can > use to delete files on windows based on the time of the files. I would > like to be able to delete tmp gif files generated by mapserver that are > older that x time. > > Thanks, > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 > ---------------------------------------------------------------- -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 ---------------------------------------------------------------- From steve.lime at dnr.state.mn.us Mon May 14 14:14:10 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 14 May 2001 16:14:10 -0500 Subject: [mapserver-users] OK, another blank gif-file... Message-ID: Remeber that layers are OFF by default with the CGI program unless they are defined as "STATUS DEFAULT". The shp2gif utility reads the map file "as-is". So, since none of you layers are ON for the CGI version you get a white image. To fix? Set their status to DEFAULT or explicitly turn them on in the URL (&layer=bebauung1&layer=ortho-1). Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Robert Schmitz-H?bsch 05/12/01 07:28AM >>> I setup a .map-file that creates a gif-file containing an orthophoto and a simple shapefile using "shp2img". This works just fine, but when I try to invoke the exact same .map-file with the "mapserv"-program using http://130.75.85.56/cgi-bin/mapserv?map=/home/httpd/cgi-bin/test2.map&templa te=/home/httpd/html/test1.htm&imgext=3480000.000+5399000.000+3481557.000+540 0740.000 ...for example, the gif-files stay white!!. There cannot be anything wrong with directories or missing files, since the .map-file is already tested on that same machine. This is also true for the map-EXTENT. I also tried to install binaries for GD, libtiff and libjpeg using the "rpm"-command on redhat 6.2 for SPARC, but it always said everything was in place just fine already, since I had compiled these before on that machine. I also tried to save the orthophoto as unpacked gif, greyscale, of course, but at least the shapefile should show up, right? It even works with the windows-"shp2img"!! -> Here is the .map-file: NAME TEST2- EXTENT 3480000.0 5399000.0 3481557.0 5400740.0 SIZE 400 400 SHAPEPATH "/home/arcims/Daten/shapes/" # PROJECTION # "proj=utm" # "ellps=GRS80" # "zone=15" # "north" # "no_defs" # END WEB IMAGEPATH "/home/httpd/MAPS/" IMAGEURL "http://130.75.85.56/MAPS/" LOG "/home/httpd/cgi-bin/test2.log" END LAYER NAME ortho-0 DATA "/home/arcims/Daten/orthos/ortho_a1_100cm_gk3_0_0_grey.tif" STATUS ON TYPE RASTER END # end of layer object LAYER NAME "bebauung1" DATA beb_freudenst_1a_erw_gk3 STATUS ON TYPE POLYGON CLASS COLOR 60 60 60 END # CLASS OBJECT END # end of layer object END # end of mapfile -> These are the last two log-entries: Sat May 12 11:03:32 2001,28358,217.80.69.247,TEST2-,0,3479908.421053 5399000.000000 3481648.578947 5400740.000000,-1. 000000 -1.000000,,normal execution Sat May 12 11:25:07 2001,28382,217.80.69.247,TEST2-,0,3479908.421053 5399000.000000 3481648.578947 5400740.000000,-1. 000000 -1.000000,,normal execution Any ideas on this one? What does the "0" after the map-name "TEST2-" mean? Regards, Robert From mweigel at tempestdg.com Mon May 14 15:08:55 2001 From: mweigel at tempestdg.com (Marc Weigel) Date: Mon, 14 May 2001 15:08:55 -0700 Subject: [mapserver-users] Getting mapxy to work with buffer or scale Message-ID: <60913C9AB7B1D411A9B6204C4F4F5020706F@MAINSERVER> Hi, Newbie alert! I am having trouble getting mapxy to work with buffer or scale. I want the picture to show more of the surrounding stuff, but can't seem to figure out the trick. Here are my two tags. The first one simply shows the extents of the item found. The second one should show more of the surrounding area. Unfortunately, they seem to do exactly the same thing. Using buffer=10 in place of scale=1.1 doesn't seem to do anything either. I read somewhere that the mapserv engine "Variable contents are checked for appropriate data types and magnitude as they are loaded". Are my values appropriate? If not, what are appropriate values? Does scale=2.0 mean zoom out by 2? I also tried scale=2000 and buffer = 150 (these values seem to work in ArcView). Maybe I have something else wrong in my code, and this scale/buffer thing is a red herring. Any help would be appreciated.   begin 600 winmail.dat M>)\^(C at 6`0:0"``$```````!``$``0>0!@`(````Y`0```````#H``$(@`<` M&````$E032Y-:6-R;W-O9G0 at 36%I;"Y.;W1E`#$(`06``P`.````T0<%``X` M#P`(`#<``0`Z`0$@@`,`#@```-$'!0`.``\`"``W``$`.@$!"8`!`"$````W M,CDW045",#A#-#9$-3$Q03E#,#(P-$,T1C1&-3`R,``2!P$$@`$`*P```$=E M='1I;F<@;6%P>'D@=&\@=V]R:R!W:71H(&)U9F9E%```!`````0`````` M```>`&2`""`&``````#`````````1@`````XA0```0````$``````````@$) M$`$```#/`P``RP,``)0%``!,6D9U(=,QP@,`"@!R8W!G,3(U%C(`^`M@;@X0 M,#,S3P'W`J0#XP(`8V@*P'/P970P(`<3`H,`4`-45Q#)!VT"@'T*@78(D'?2 M:PN`9#0,8&,`4`L#X0NU($AI+`JB"H0+,,QS8@]``4!S81=1![(:8 at B0(`=` M!)!T(2#D($D84&T@$/`4D`\@M"!T`V!U`F`80&<1,$9T&6(`P'!X>1F0;Q0@ M=P6P:QL@:71HV"!B=0$@!)`@!;$$\/4882X8PG<`<`5`&Z`80#IP#>!T"'`8 M0!L!4J,$(!UB97AT"?!T!"#_'O4; MD"%1`A`?L23%$2`%H.<4\"6$'F!U;"DP'E\?:N4C<6$`;YH&6$L$@"0&7$;U#T/0'$#<`?0 M/S01+R(LP!U3&J$1(')V;R;0#R`+@!A`(A'S"_`T_"!6"L`',!GB*0$G!"-R M>Q#@!9!K"8`H$07`&K!POP- at .>`',"<`+?`LP&$9D+QY<`>1`'`I,`#`9P,` M_QW0`0`84":#&N`C<@D`-+"_"8`W`175',$'$".3=@=`-PI0.*$YV#\8P2JP M;F_^="!P-2`UH2-R.``Y&L>F\#<"(38AK@,C^2 M_QA1-.`BDCE10G478!%0.S*A&]4](#$U$5`H'6$_$2`^9B$V&S,PP0<08U:% M%*$I',%-87EB&$!_&.`9,1]!-/$SA420&$!W_P-@&7$PP2.Q!:`!`"!P.S+[ M+T%"52\;U3.$3,$ZL`EQ;QD@!)`%$"]S03- at 3J%L_G`;(2G"2;$YP at 60.C(H M8#\6>A:#)"(;P`6P!($](IPQ(AQ at 2.!2\"]C-K#2+1@@;B\V%2XFX#^`81JA M/6,Z7`Q`):!T]G`9T%5`=U7P`V!``%5`^&US7P#`2.!50"<`("`*+AJA)B?2 M/6ED)L,^`#!` M`0````@```!-5T5)1T5,``,`&4``````"P#R$`$````#`(`0_____P(!1P`! M````-@```&,]0T$[83T at .W`]6$9)3$531$]-04E..VP]34%)3E-%4E9%4BTP M,3`U,30R,C`X-35:+3$X`````@'Y/P$```!3`````````-RG0,C`0A`:M+D( M`"LOX8(!`````````"]//5A&24Q%4T1/34%)3B]/53U-04E.4T525D52+T-. M/5)%0TE0245.5%,O0TX]35=%24=%3```'@#X/P$````,````36%R8R!796EG M96P`'@`X0`$````(````35=%24=%3``"`?L_`0```%,`````````W*=`R,!" M$!JTN0@`*R_A@@$`````````+T\]6$9)3$531$]-04E.+T]5/4U!24Y315)6 M15(O0TX]4D5#25!)14Y44R]#3CU-5T5)1T5,```>`/H_`0````P```!-87)C M(%=E:6=E;``>`#E``0````@```!-5T5)1T5,`$``!S!@\%YWPMS``4``"#!` M.&YWPMS``1X`/0`!`````0`````````>`!T.`0```"L```!'971T:6YG(&UA M<'AY('1O('=O``@0`0```&4```!(22Q.15="245!3$525$E!34A!5DE. M1U123U5"3$5'151424Y'34%06%E43U=/4DM7251(0E5&1D523U)30T%,14E7 M04Y45$A%4$E#5%52151/4TA/5TU/4D5/1E1(15-54E)/``````(!?P`!```` M,@```#PV,#DQ,T,Y04(W0C%$-#$Q03E"-C(P-$,T1C1&-3`R,# Message-ID: unsubscribe -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 1260 bytes Desc: not available URL: From m.meier at spiekermann.de Mon May 14 20:43:08 2001 From: m.meier at spiekermann.de (Manfred Meier) Date: Tue, 15 May 2001 05:43:08 +0200 Subject: [mapserver-users] deutschsprachiger Informationsaustausch zu WebServer References: <01C0DCB0.C03DBC00@pD903E2B1.dip0.t-ipconnect.de> Message-ID: <3B00A5CB.CD4DFB6A@spiekermann.de> Hallo Thomas, ich kann es versuchen. Frag' mich, ich werde soweit m?glich antworten. Manfred Meier Thomas Bauer schrieb: > Hi, > > ich bin neu bei WebServer und habe einige Schwierigkeiten mit den vielen englischen Fachbegriffen. Kann mir jemand in deutscher Sprache weiterhelfen? > > Gru? > > Thomas From mschulz at webgis.de Mon May 14 23:49:46 2001 From: mschulz at webgis.de (Michael Schulz) Date: Tue, 15 May 2001 08:49:46 +0200 Subject: [mapserver-users] deutschsprachiger Informationsaustausch zu WebServer References: <01C0DCB0.C03DBC00@pD903E2B1.dip0.t-ipconnect.de> Message-ID: <3B00D18A.615A85D7@webgis.de> Hallo Thomas, um welche Begriffe handelt es sich denn? Versuche gerne zu helfen. Gruss, Michael Thomas Bauer wrote: > Hi, > > ich bin neu bei WebServer und habe einige Schwierigkeiten mit den vielen englischen Fachbegriffen. Kann mir jemand in deutscher Sprache weiterhelfen? > > Gru? > > Thomas -- ----------------------------------------------------------- Michael Schulz in medias res Dipl.-Geologe Gesellschaft f?r Informationstechnologie mbH Sautierstr. 38, 79104 Freiburg 0761 55695-95 (Fax 96) mschulz at webgis.de www.webgis.de From riovescu at nec-center.ro Tue May 15 00:40:53 2001 From: riovescu at nec-center.ro (Radu Iovescu) Date: Tue, 15 May 2001 10:40:53 +0300 Subject: No subject Message-ID: <101712259.20010515104053@nec-center.ro> unsubscribe From frank.koormann at intevation.de Tue May 15 04:42:56 2001 From: frank.koormann at intevation.de (Frank Koormann) Date: Tue, 15 May 2001 13:42:56 +0200 Subject: [mapserver-users] deutschsprachiger Informationsaustausch zu WebServer In-Reply-To: <01C0DCB0.C03DBC00@pD903E2B1.dip0.t-ipconnect.de>; from tbauerulem@gmx.de on Mon, May 14, 2001 at 08:02:04PM +0200 References: <01C0DCB0.C03DBC00@pD903E2B1.dip0.t-ipconnect.de> Message-ID: <20010515134256.A25007@intevation.de> * Thomas Bauer (tbauerulem at gmx.de) [010514 20:44]: > Hi, > > ich bin neu bei WebServer und habe einige Schwierigkeiten mit den > vielen englischen Fachbegriffen. Kann mir jemand in deutscher Sprache > weiterhelfen? > Ja, schrieb mir 'ne Mail bei Fragen. Als Einstieg kann ich Dir meinen Artikel zum MapServer empfehlen, online unter: http://www.linux-community.de/Neues/story?storyid=135 Yes, feel free to mail me. As an entry point you may read my article on the mapserver (in german) online at: http://www.linux-community.de/Neues/story?storyid=135 Cheers, Frank -- Frank Koormann Professional Service around Free Software (http://intevation.net/) FreeGIS Project (http://freegis.org/) From Tom.Cadman at region.durham.on.ca Tue May 15 05:27:59 2001 From: Tom.Cadman at region.durham.on.ca (Tom Cadman) Date: Tue, 15 May 2001 08:27:59 -0400 Subject: [mapserver-users] Mapplet Zoom in Question Message-ID: Could some one tell me how to have the "Zoom In" rubber band box function activated upon the release of the left mouse button, rarther than having to click on a button to submit the request. I've looked at the Landview site and have actually tried to get it operational on my own Win98 machine but I can't seem to get any farther than to display the animated "working.gif" which locks-up and dosen't display the map. I know this is achieved with javascript but trying to figure it out by getting a copy of the Landview site operational on my PC is a liitle bit too much for me.....so if there is an easier way or some instructions it would be much appreciated Thanks From LBallard at YesVirginia.org Tue May 15 05:57:54 2001 From: LBallard at YesVirginia.org (Ballard,Lowell) Date: Tue, 15 May 2001 08:57:54 -0400 Subject: [mapserver-users] tmp files deletion Unix Message-ID: <509989F9E1D38D47ADA73ED9CF5BF32A16CA4C@communications> For *nix you can place this text below into a file and add it to your crontab file. I have put it in a file called cleanimg and stuck that file in /etc/cron.hourly on my Linux box. It will, on the hour, nuke files that are more than 5 minutes old. It's a variation of what exists on the Mapserver site. ** Please note, mine is set up to nuke everything in the /home/httpd/html/tmp directory so BE CAREFUL (i.e. *.*). ----cut here---- #!/bin/csh find /home/httpd/html/tmp -name "*.*" -type f -cmin +5 -exec rm -f {} \; ----cut here---- Lowell Ballard Unix/Database Administrator Virginia Economic Development Partnership 901 E. Byrd St., Richmond, Va. 23218 http://gis.vedp.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddnebert at fgdc.gov Tue May 15 06:51:24 2001 From: ddnebert at fgdc.gov (Doug Nebert) Date: Tue, 15 May 2001 09:51:24 -0400 Subject: [mapserver-users] Converting AVL files Message-ID: <3B01345C.E9CD73B9@fgdc.gov> Anyone have any experience translating an ArcView Legend file (ascii .avl) into a color palette assignment used in a .map file for mapserver? I assume this will get much easier as Arc 8 comes along and color assignments are done using ArcXML and RGB values (as in ArcExplorer 3.0 using in ArcIMS and Arc 8). Doug. -- Douglas D. Nebert Geospatial Data Clearinghouse Coordinator FGDC/GSDI Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 Pager Messaging: http://clearinghouse3.fgdc.gov/dougmsg.html From sylvain.speh at CLERMONT.cemagref.fr Tue May 15 06:56:12 2001 From: sylvain.speh at CLERMONT.cemagref.fr (Speh Sylvain) Date: Tue, 15 May 2001 15:56:12 +0200 Subject: [mapserver-users] temporary files deletion Message-ID: Yes, why not, but, what about mapServer under W95 which is not provided with a scheduler/chrontable ? Someone here was trying to use a VB script into an HTML page ( like some virus do ), but we could'nt achieve it. Any Idea ? -----Message d'origine----- De : Assefa Yewondwossen [mailto:assefa at dmsolutions.ca] Envoy? : lundi 14 mai 2001 22:01 ? : mapserver Objet : Re: [mapserver-users] temporary files deletion Hi There, For those of you who use windows, there is an executable on our site that can be used to delete tmp files created by mapserver. http://www2.dmsolutions.on.ca/webtools/dl/deltmpfiles.zip Note : I did some initial testing but I will start testing it on our internal server begining today. Later, Assefa Yewondwossen wrote: > Hi, > > Does any one has a bat file or an exe file (or other means) that I can > use to delete files on windows based on the time of the files. I would > like to be able to delete tmp gif files generated by mapserver that are > older that x time. > > Thanks, > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 > ---------------------------------------------------------------- -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 ---------------------------------------------------------------- From steve.lime at dnr.state.mn.us Tue May 15 07:59:22 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 15 May 2001 09:59:22 -0500 Subject: [mapserver-users] unsubscribe Message-ID: Just a reminder folks. Sending an unsubscribe message to the list won't get you unsubscribed. Send a message with "unsubscribe mapserver-users" in the body of the message (and nothing else) to "majordomo at lists.gis.umn.edu". Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From zquad at neca.com Tue May 15 08:23:22 2001 From: zquad at neca.com (Jonathan Lang) Date: Tue, 15 May 2001 11:23:22 -0400 Subject: [mapserver-users] UNSUBSCRIBE Message-ID: <3B0149EA.D52E0623@neca.com> UNSUBSCRIBE From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Tue May 15 08:21:25 2001 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Tue, 15 May 2001 11:21:25 -0400 Subject: [mapserver-users] temporary files deletion Message-ID: <2951561DB3DDD0118FEC00805FFE9805049423C9@s5-ccr-r1> I've discovered a small freeware implementation of "cron" for windows systems: http://www.kalab.com/freeware/cron/cron.htm Simple and to the point, runs great. For *nix's, on my Linux boxes I use the tmpwatch utility to clean out temporary directories, including the ones that hold temporary gif's ... RedHat comes with tmpwatch allready setup in it's default cron jobs anyways, so you only need add to it ... J.F. > ---------- > From: Speh Sylvain[SMTP:sylvain.speh at CLERMONT.cemagref.fr] > Sent: Tuesday, May 15, 2001 9:56 AM > To: Assefa Yewondwossen > Cc: mapserver-users at lists.gis.umn.edu > Subject: RE: [mapserver-users] temporary files deletion > > Yes, why not, but, what about mapServer under W95 which is not provided > with > a scheduler/chrontable ? > > Someone here was trying to use a VB script into an HTML page ( like some > virus do ), but we could'nt achieve it. > > Any Idea ? > > -----Message d'origine----- > De : Assefa Yewondwossen [mailto:assefa at dmsolutions.ca] > Envoy? : lundi 14 mai 2001 22:01 > ? : mapserver > Objet : Re: [mapserver-users] temporary files deletion > > > Hi There, > > For those of you who use windows, there is an executable on our site that > can be used to delete tmp files created by mapserver. > > http://www2.dmsolutions.on.ca/webtools/dl/deltmpfiles.zip > > Note : I did some initial testing but I will start testing it on our > internal server begining today. > > Later, > > Assefa Yewondwossen wrote: > > > Hi, > > > > Does any one has a bat file or an exe file (or other means) that I can > > use to delete files on windows based on the time of the files. I would > > like to be able to delete tmp gif files generated by mapserver that are > > older that x time. > > > > Thanks, > > > > -- > > ---------------------------------------------------------------- > > Assefa Yewondwossen > > Software Analyst > > > > Email: assefa at dmsolutions.ca > > http://www.dmsolutions.ca/ > > > > Phone: (613) 565-5056 > > ---------------------------------------------------------------- > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 > ---------------------------------------------------------------- > From vieglais at ukans.edu Tue May 15 08:43:25 2001 From: vieglais at ukans.edu (Dave Vieglais) Date: Tue, 15 May 2001 10:43:25 -0500 Subject: [mapserver-users] temporary files deletion In-Reply-To: Message-ID: We use a simple script that is called from a page that is hit fairly often by web users. The IIS script scans a specified directory and deletes any files older than so many minutes using the functionality provided by the FileSystemObject. Sort of a user rather timer driven event source. If you're worried about calling this function too often (it does use some resources), set a global variable in your Application object that tracks the last time the method was called. Java script source follows. good luck, Dave V. --- snip --- /*======================================================= Delete files from the directory path, with extenstion ext that are have not been accessed for t0Minutes or are were created more than t1Minutes ago. [in] t0Minutes: integer = number of minutes since last accessed to delete t1Minutes: integer = number of minutes since created to delete path: string = path to directory containing files to delete sExt: string = extension of files to remove (no "." included) ========================================================*/ function DeleteOldFiles(t0Minutes,t1Minutes,path,sExt) { var ofs = Server.CreateObject("Scripting.FileSystemObject"); sExt = sExt.toLowerCase(); try { var dt = new Date(); var oFolder = ofs.GetFolder(path); var oFile = null; var i=0; var fc = new Enumerator(oFolder.Files); for (; !fc.atEnd(); fc.moveNext()) { oFile = fc.item(); var afname = oFile.Name.split("."); if (afname[afname.length-1].toLowerCase() == sExt) { var fdt0 = oFile.DateLastAccessed; var fdt1 = oFile.DateCreated; var d0 = (dt-fdt0)/(1000*60); var d1 = (dt-fdt1)/(1000*60); if ((d0>t0Minutes) || (d1 > t1Minutes)) { ofs.DeleteFile(oFile.Path); } } } } catch (e) { } } --- snip --- >-----Original Message----- >From: owner-mapserver-users at lists.gis.umn.edu >[mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Speh >Sylvain >Sent: Tuesday, May 15, 2001 8:56 AM >To: Assefa Yewondwossen >Cc: mapserver-users at lists.gis.umn.edu >Subject: RE: [mapserver-users] temporary files deletion > > >Yes, why not, but, what about mapServer under W95 which is not >provided with >a scheduler/chrontable ? > >Someone here was trying to use a VB script into an HTML page ( like some >virus do ), but we could'nt achieve it. > >Any Idea ? > >-----Message d'origine----- >De : Assefa Yewondwossen [mailto:assefa at dmsolutions.ca] >Envoy? : lundi 14 mai 2001 22:01 >? : mapserver >Objet : Re: [mapserver-users] temporary files deletion > > >Hi There, > > For those of you who use windows, there is an executable on our site that >can be used to delete tmp files created by mapserver. > >http://www2.dmsolutions.on.ca/webtools/dl/deltmpfiles.zip > >Note : I did some initial testing but I will start testing it on our >internal server begining today. > >Later, > >Assefa Yewondwossen wrote: > >> Hi, >> >> Does any one has a bat file or an exe file (or other means) that I can >> use to delete files on windows based on the time of the files. I would >> like to be able to delete tmp gif files generated by mapserver that are >> older that x time. >> >> Thanks, >> >> -- >> ---------------------------------------------------------------- >> Assefa Yewondwossen >> Software Analyst >> >> Email: assefa at dmsolutions.ca >> http://www.dmsolutions.ca/ >> >> Phone: (613) 565-5056 >> ---------------------------------------------------------------- > >-- >---------------------------------------------------------------- >Assefa Yewondwossen >Software Analyst > >Email: assefa at dmsolutions.ca >http://www.dmsolutions.ca/ > >Phone: (613) 565-5056 >---------------------------------------------------------------- > From steve.lime at dnr.state.mn.us Tue May 15 11:29:18 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 15 May 2001 13:29:18 -0500 Subject: [mapserver-users] Fwd: Simple embedded features Message-ID: An embedded message was scrubbed... From: "Shane Covington" Subject: Simple embedded features Date: Tue, 15 May 2001 11:57:16 -0500 Size: 1620 URL: From mschulz at webgis.de Tue May 15 11:46:35 2001 From: mschulz at webgis.de (Michael Schulz) Date: Tue, 15 May 2001 20:46:35 +0200 Subject: [mapserver-users] Re: Fragen zu MapServer References: <01C0DD71.C6586A60@localhost> Message-ID: <3B01798A.7B1F6D2C@webgis.de> Dear list, i thought it might be useful to also archive those question and the answers even if they are posed and answered in german. Hallo Thomas, hier meine Gedanken zu den Fragen: Thomas Bauer wrote: > Hallo, > > zun?chst erst einmal vielen Dank f?r Eure Hilfbereitschaft! > > Ich habe zun?chst diese Fragen: > > 1) Gibt es deutschsprachige Informationen zu WebServer im Internet? Keine Dokumentation, aber einen Artikel im Linux-Magazin (s. Frank Koorman). Aber Howtos und die offiziele Doku nur in Englisch! Nebenbei: Map(!)Server! > 2) Ich m?chte eine gr??ere Anzahl (ca. 200) georeferenzierter Rasterbilder (Flurkarten, Tiff G4) in einem Layer speichern. Gibt es hierbei eine Beschr?nkung der Anzahl? F?hrt eine gro?e Anzahl zu Laufzeitproblemen? Gibt es ein Freeware - Produkt, mit welchem Tiff G4 - Dateien exakt rotiert und gespeichert werden k?nnen? Ich habe zwar noch nicht mit so vielen Bildern gearbeitet aber es ist auf jeden Fall m?glich. Wenn die Karten georeferenziert sind, dann werden sie von Mapserver auch korrekt dargestellt. Es sollte also kein "rotieren" n?tig sein. Ansonsten bietet MapServer eine "on-the-fly" Projektion an. Dazu muss in das ausf?hrbare MapServer-Programm die proj4-Bibliothek eincompiliert werden (oder ein mit proj4-Support Bin?rpaket benutzen) Bei dieser Menge an Rasterdaten ist das "Tiling" sicher n?tzlich. > 3) Bei der graphischen Selektion eines Objektes (z.B. Flurst?ck) werden die Ergebnisdaten an eine Template-Datei ?bergeben. Besteht die M?glichkeit diese Informationen auch an eine PHP-Scriptdatei zu ?bergeben? Hmm, habe ich mich auch schon mal gefragt, aber eine ?hnliche Frage wurde von Steve dahin gehend beantwortet, da? eine erneute Interpretation nach dem CGI-Aufruf nicht m?glich sei. Man m?sste eher die gesamte Anwendung ?ber PHP/MapScript steuern. > 4) Besteht die M?glichkeit f?r das querymap einen Zoomfaktor anzugeben. Wird z.B. eine Fl?che angew?hlt, so wird diese maximal in dem Bild dargestellt. Dabei ist der r?umliche Zusammenhang nicht zu erkennen. Es w?hre daher sinnvoll, ein Bild mit dem gew?hlte Objekt in der Mitte und einem bestimmten Vergr??erungsfaktor darzustellen. Wie kann dies realisiert werden? Nun, eigentlich sollte das mit den cgi-parametern mapxy und scale/buffer machbar sein. Wie oben beschrieben verwendest Du wahrscheinlich mapext=shapes um den Extent der neu zu erstellenden Karte zu berechnen. Ich glaube so etwas wie mapxy=[shpmid] und ein scale im template abschnitt des Queryobjektes k?nnte eher zu dem gew?nschten Ergebnis f?hren. > 5) Bestehen au?er dem Shape-Format und ArcSDE weitere M?glichkeiten zur Speicherung der Geometriedaten (z.B. in einer MySQL-Datenbank)? Neuerdings gibt es via OGR-Support Zugriff auf verschiedene andere Formate (MapServer Version 3.5). Au?erdem kann man per PHP/MapScript Daten aus einer Datenbank zur Darstellung mit MapServer in ein tempor?res Shapefile schreiben. Ansonsten ...? > > Gru? > > Thomas Hoffentlich konnte ich etwas helfen. Gruss, Michael From david.armstrong at ntlworld.com Tue May 15 11:48:26 2001 From: david.armstrong at ntlworld.com (David Armstrong) Date: Tue, 15 May 2001 19:48:26 +0100 Subject: [mapserver-users] request help on :- points to a shapefile Message-ID: <001201c0dd6f$a09b8930$0100a8c0@david> Looking for an example of how to make a shapefile from a XBase database of points I now have my gps positions x,y,id in a database, i would like to make the app faster by placing them into a shapefile, any example would be appriciated in perl or mapscript i would also wish to show the point's as a gif rather than as a font, i am using the following method unless you know of a better one dependant on a database field i.e. tractor , car, truck etc but stuck as to how to make the shapfile and also have different gif symbols per point in the shapefile symbol type PIXMAP image "truck.gif" end hope this makes sense ! any ideas,examples welcolme Regards Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at dnr.state.mn.us Tue May 15 13:12:16 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 15 May 2001 15:12:16 -0500 Subject: [mapserver-users] Mapplet Zoom in Question Message-ID: If the icon stops animating then there's a problem with the image being fed to the applet. Either it's a format problem (Java doesn't natively support PNG) , a problem with the URL (must be fully qualified, relative URLs won't work), or there could be a problem with a mapfile or something like that. If your using straight landview with all the javascript and so on then I imagine it's the later. Is there a public interface to look at? Steve >>> "Tom Cadman" 05/15/01 07:27AM >>> Could some one tell me how to have the "Zoom In" rubber band box function activated upon the release of the left mouse button, rarther than having to click on a button to submit the request. I've looked at the Landview site and have actually tried to get it operational on my own Win98 machine but I can't seem to get any farther than to display the animated "working.gif" which locks-up and dosen't display the map. I know this is achieved with javascript but trying to figure it out by getting a copy of the Landview site operational on my PC is a liitle bit too much for me.....so if there is an easier way or some instructions it would be much appreciated Thanks From scoving at cast.uark.edu Tue May 15 14:06:01 2001 From: scoving at cast.uark.edu (Shane Covington) Date: Tue, 15 May 2001 16:06:01 -0500 Subject: [mapserver-users] Simple embedded features. No Attachment Message-ID: <015c01c0dd82$d96fbe80$5172b882@SCOVING0> Well, I said I was new, including sending to the wrong email address. Here's a copy so the attachment will not have to be opened I have just recently started using MapServer and I am unfamiliar with one of the supported formats ... simple embedded features. How does this compare to the OpenGIS Well-known Text format? And, are there any examples which use simple embedded features instead of shapefiles? Any help on examples or more documentation would be appreciated. Thanks, Shane From steve.lime at dnr.state.mn.us Tue May 15 14:14:53 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 15 May 2001 16:14:53 -0500 Subject: [mapserver-users] Simple embedded features. No Attachment Message-ID: Not a problem. We're a tolerant bunch! Embedded features are a way to store information in the map file without having to create an external dataset. This was done to support things like placing logos or copyrights, drawing decorative boxes/neatlines and so on. Because you can create these features on-the-fly via a URL they are useful for allowing users to place their own markers on a map. (the reference map at http://maps.dnr.state.mn.us/cgi-bin/mapserv?map=/usr/local/www/docs/compass/view_java.map&zoomsize=3&zoomdir=1 uses this technique to create a map dependent on scale) They are not based on any standard and are not really meant for anything more than a few dozen features. I have to run now but will post examples this evening. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Shane Covington" 05/15/01 04:06PM >>> Well, I said I was new, including sending to the wrong email address. Here's a copy so the attachment will not have to be opened I have just recently started using MapServer and I am unfamiliar with one of the supported formats ... simple embedded features. How does this compare to the OpenGIS Well-known Text format? And, are there any examples which use simple embedded features instead of shapefiles? Any help on examples or more documentation would be appreciated. Thanks, Shane From yecarrillo at hotmail.com Tue May 15 14:57:29 2001 From: yecarrillo at hotmail.com (Eduin Yesid Carrillo) Date: Tue, 15 May 2001 16:57:29 -0500 Subject: [mapserver-users] Converting AVL files Message-ID: Actually I'm writing an mayor update for Maputils, a contributed ArcView extension from Ross Searle to create map files and html stuff for web sites using mapsever. This extensions reads all symbols from a view no matter if they are assigned from ArcView or readed from avl files. All colors are passed to map files as RGB values. This extension has limitations due to Avenue language it self for reading composite symbols, however, works really good for single symbols (lines, points, and polygons) with colors, line width, outline color, view background color, and other things. This upgrade read views with sde layers (with avp files loaded too), and add the correct parameters to the map file. I can send you this ext for testing purposes, before posting for public domain. ---------------------------- Eduin Yesid Carrillo Ingeniero Civil CIUDAD DIGITAL Central de Informaci?n Regional Georefenciada Bucaramanga - Colombia yecarrillo at hotmail.com yecarrillo at condorito.uis.edu.co #ICQ 14323531 >From: Doug Nebert >To: Mapserver Users >Subject: [mapserver-users] Converting AVL files >Date: Tue, 15 May 2001 09:51:24 -0400 > >Anyone have any experience translating an ArcView Legend file (ascii >.avl) into a color palette assignment used in a .map file for mapserver? >I assume this will get much easier as Arc 8 comes along and color >assignments are done using ArcXML and RGB values (as in ArcExplorer 3.0 >using in ArcIMS and Arc 8). > >Doug. > >-- >Douglas D. Nebert >Geospatial Data Clearinghouse Coordinator >FGDC/GSDI Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 >Pager Messaging: http://clearinghouse3.fgdc.gov/dougmsg.html > _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From danthony at iblden.com Tue May 15 19:39:55 2001 From: danthony at iblden.com (Dennis Anthony) Date: Tue, 15 May 2001 22:39:55 -0400 Subject: No subject Message-ID: <200105160239.WAA23821@lexa.myndsync.com> auth 90cde3a2 subscribe mapserver-users iblden at iblden.com From iblden at iblden.com Tue May 15 19:39:38 2001 From: iblden at iblden.com (Dennis Anthony) Date: Tue, 15 May 2001 22:39:38 -0400 Subject: [mapserver-users] auth 90cde3a2 subscribe mapserver-users iblden@iblden.com Message-ID: <3B01E86A.BD05F142@iblden.com> auth 90cde3a2 subscribe mapserver-users iblden at iblden.com From frank.koormann at intevation.de Tue May 15 23:45:31 2001 From: frank.koormann at intevation.de (Frank Koormann) Date: Wed, 16 May 2001 08:45:31 +0200 Subject: [mapserver-users] request help on :- points to a shapefile In-Reply-To: <001201c0dd6f$a09b8930$0100a8c0@david>; from david.armstrong@ntlworld.com on Tue, May 15, 2001 at 07:48:26PM +0100 References: <001201c0dd6f$a09b8930$0100a8c0@david> Message-ID: <20010516084531.A28899@intevation.de> Hi David, Listers, * David Armstrong (david.armstrong at ntlworld.com) [010515 21:30]: > > Looking for an example of how to make a shapefile from a XBase > database of points > > I now have my gps positions x,y,id in a database, i would like to make > the app faster by placing them into a shapefile, any example would be > appriciated in perl or mapscript > You may have a look at gen2shp http://intevation.de/~jan/gen2shp/gen2shp.html a small filter implemented in C, based on Frank Warmerdams shplib. It can convert the simple ArcInfo generate format (id, x, y) into shapefiles. Regards, Frank -- Frank Koormann Professional Service around Free Software (http://intevation.net/) FreeGIS Project (http://freegis.org/) From andreag at crs4.it Wed May 16 03:54:03 2001 From: andreag at crs4.it (A. Giacomelli) Date: Wed, 16 May 2001 12:54:03 +0200 Subject: [mapserver-users] php mapscript: annotating points drawn dynamically Message-ID: <3B025C4B.9DBB7ABC@crs4.it> hi, I am using the point->draw(map,layer,imageobj,class,text) to add points with coordinates retrieved from a database. everything works smoothly, apart from the fact that I can't get the annotation (which according to the documentation should be picked up from the 'text' parameter) to be displayed. the layer in which the points are drawn is defined as: name x type point status on class name "myclass" color 0 255 0 symbol 7 label color 255 0 0 end end any suggestions ? thanks! -- ========================================= Andrea Giacomelli Centre for Advanced Studies, Research and Development in Sardinia Environment Group http://www.crs4.it/~andreag ========================================= Mailing address: Sesta Strada Ovest, Z.I. Macchiareddu C.P. 94 09010 Uta (CA) ITALY From fuerp at atlas.gis.univie.ac.at Wed May 16 04:45:22 2001 From: fuerp at atlas.gis.univie.ac.at (Christian Fuerpass) Date: Wed, 16 May 2001 13:45:22 +0200 Subject: [mapserver-users] Possibility to display Buttons outside of the ROSA Applet? Message-ID: <3B026852.E733EE5C@atlas.gis.univie.ac.at> Greetings, I am using the Rosa Applet, but there is a questions, which i couldn?t solve alone. Is there a possibility to use the functions of the rosa applet, but display the buttons (Zoom,Pan,...) outside of the applet? This is because there are always some parts of the Map hidden under this Toolbar and also the whole layout of my application would look better, if the buttons are displayed outside. Thank you for your help Christian Fuerpass -- ________________________________________________________ Institut fuer Geographie der Universitaet Wien Kartographie und Geoinformation Deptartment of Geography and Regional Science University of Vienna Cartography and GIS Tel: (+43 1) 4277 48658 Fax: (+43 1) 4277 48649 E-Mail: mailto:fuerp at atlas.gis.univie.ac.at Snail-Mail: Universitaetstr. 7, A-1010 Wien, AUSTRIA WWW: http://www.gis.univie.ac.at/karto/ _______________________________________________________ From Markus.Spring at muenchen.de Wed May 16 06:37:05 2001 From: Markus.Spring at muenchen.de (Markus.Spring) Date: Wed, 16 May 2001 15:37:05 +0200 Subject: [mapserver-users] transparent cross hatches in mapserver Message-ID: <3B028281.F2E6F12@muenchen.de> Hello list, experimenting with cross hatches for polygons, I found no possibility to define a "transparent" one, which would allow overlaying different polygons while retaining the information of the lower layer. Has anyone find a way to define such a hatch? Kind regards - Markus From teb at mallit.fr.umn.edu Wed May 16 06:45:11 2001 From: teb at mallit.fr.umn.edu (teb) Date: Wed, 16 May 2001 08:45:11 -0500 (CDT) Subject: [mapserver-users] itemquery INQUIRY (fwd) Message-ID: <200105161345.IAA15165@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- Date: Wed, 16 May 2001 08:42:11 -0500 From: "Sonia Dickerson" To: Subject: itemquery INQUIRY Mime-Version: 1.0 Guten Tag. Ich bin neu bei WebServer und habe ein frage. (I don't know much German but I enjoy the interaction with this global mapserver community!) Here's the Deal: I tried to simulate the results of the Case 3 simple itemquery with querymap Test from the DNR test suite. I set up a directory that contains the data, graphics, perl, and symbols that are actually just copies from the msdemo that can be downloaded from the site. It also contains the iq.map file, test.htm file and the case3_template.htm file. The iq.map file is set up as follows: I copied the map file from the case3 sample and named it iq.map -it is also named test with in the file. I made a few modifications to represent the county data names and the correct imagepath. I have the same data set that the original case3 sample uses- so all of the fields and values are the same. The test.htm file is set up as follows: I copied the source code of the initial case3 html page and deleted all of the code except for the stuff that pertained to case3. I also made the value modifications. The case3_template.htm is set up as follows: I copied the template from the case3 sample and changed the imgsrc path for the itemquery map to: "/cgi-bin/mapserv.exe?map=d:\inetpub\wwwroot\iqdir\iq.map&item=ct y_name&value =[value]&mode=itemquery&mapext=shapes" height="300"width="300" The Test.htm page comes up and provides the user with a list of counties. When one of the counties is selected and the user selects GO! the following statement results: The three field values populate correctly. The full extent map comes up correctly. But the itemquery map only comes up as a box with a baby X icon in the left corner. How can I get my itemquery map to appear? Thanks so much in advance and I look forward to any help. Gracias. Sonia Dickerson MN Department of Agriculture 90 West Plato Boulevard St. Paul, MN 55107-2094 phone: 651-284-3597 fax: 651-282-2442 sonia.dickerson at state.mn.us "If you wait until the wind and weather are just right you will never plant anything and never harvest anything" ------------- End Forwarded Message ------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From morissette at dmsolutions.ca Wed May 16 06:49:39 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 16 May 2001 09:49:39 -0400 Subject: [mapserver-users] Possibility to display Buttons outside of the ROSA Applet? References: <3B026852.E733EE5C@atlas.gis.univie.ac.at> Message-ID: <3B028573.6D052B59@dmsolutions.ca> Christian Fuerpass wrote: > > I am using the Rosa Applet, but there is a questions, which i couldn?t > solve alone. > Is there a possibility to use the functions of the rosa applet, but > display the buttons (Zoom,Pan,...) outside of the applet? This is > because there are always some parts of the Map hidden under this Toolbar > and also the whole layout of my application would look better, if the > buttons are displayed outside. > Christian, You could create the applet bigger than your map image and then if you position the map image properly (see the IMG_XY applet param) then the toolbar wont be displayed on top of the map. If you set the applet's BG_COLOR parameter to the same color as your web page then users won't notice that the applet is bigger than the map. Also note that you can set the absolute position of a button anywhere in the applet area using the TB_BUT_..._XY parameter. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From serdula_jaroslav at vse.sk Wed May 16 07:12:40 2001 From: serdula_jaroslav at vse.sk (Jaroslav Serdula) Date: Wed, 16 May 2001 16:12:40 +0200 Subject: [mapserver-users] ROSA and IE Message-ID: <002c01c0de12$45050b70$5311a8c0@jaros> hi! I have problem with ROSA Applet and MSInternetExplorer 5.x. For each click in map IEXPLORE.EXE creates 4-5 new threads. After 100-150 clicks there are about more then 500 threads and >100MB memory allocate for Explorer and system becomes unstable. Thanks j.s. From berend.veldkamp at aris.nl Wed May 16 09:01:58 2001 From: berend.veldkamp at aris.nl (Berend Veldkamp) Date: Wed, 16 May 2001 18:01:58 +0200 Subject: [mapserver-users] transparent cross hatches in mapserver References: <3B028281.F2E6F12@muenchen.de> Message-ID: <3B02A476.B43DE380@aris.nl> Have you set TRANSPARENT in your symbol definition? Berend "Markus.Spring" wrote: > > Hello list, > > experimenting with cross hatches for polygons, I found no possibility to > define > a "transparent" one, which would allow overlaying different polygons > while retaining > the information of the lower layer. > > Has anyone find a way to define such a hatch? > > Kind regards - Markus -- _________________________________________________ ARIS - Hooghiemstraplein 126 - NL 3514 AZ Utrecht tel. +31 30 2769180 - fax. +31 30 2733578 URL: http://www.aris.nl/ _________________________________________________ From tbauerulem at gmx.de Wed May 16 10:40:11 2001 From: tbauerulem at gmx.de (Thomas Bauer) Date: Wed, 16 May 2001 19:40:11 +0200 Subject: [mapserver-users] Re: Fragen zu Mapserver Message-ID: <01C0DE40.05E76D60@localhost> Hallo Michael, danke erstmal f?r Deine Antworten. Kannst Du mir die Sache mit dem "Tiling" etwas genauer erkl?ren, bzw. gibt es daf?r eine Dokumentation oder ein einfaches Beispiel? Wo sind solche Funktione wie "mapxy=[shpmid]" und der OGR-Support dokumentiert? Gru? Thomas From assefa at dmsolutions.ca Wed May 16 12:01:31 2001 From: assefa at dmsolutions.ca (Assefa Yewondwossen) Date: Wed, 16 May 2001 15:01:31 -0400 Subject: [mapserver-users] ROSA and IE References: <002c01c0de12$45050b70$5311a8c0@jaros> Message-ID: <3B02CE8A.3CB49DAF@dmsolutions.ca> Hi There, I have updated the download site with the correction of the bug. Please give it a try and let me know how it goes. http://www2.dmsolutions.ca/webtools/rosa/rosa_downloads.html Best Regards Jaroslav Serdula wrote: > hi! > I have problem with ROSA Applet and MSInternetExplorer 5.x. > For each click in map IEXPLORE.EXE creates 4-5 new threads. > After 100-150 clicks there are about more then 500 threads and >100MB memory > allocate for Explorer and system becomes unstable. > > Thanks j.s. -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 ---------------------------------------------------------------- From cnielsen at co.tillamook.or.us Wed May 16 17:30:09 2001 From: cnielsen at co.tillamook.or.us (Chad Nielsen) Date: Wed, 16 May 2001 17:30:09 -0700 Subject: [mapserver-users] template initialization Message-ID: <000001c0de68$87a16400$a14368aa@co.tillamook.or.us> Hi List I'm working with Ross Searle's Arcview utility. I'm confused about how the template is initialized without an 'init' file. The generated template starts out with a bunch of form input tags with CGI variables yet there is no form tag. How is something like [img] retrieved if nothing is submited to the server? the template starts out like this ... Thanks, Chad Chad M. Nielsen, GIS Programmer/Analyst Tillamook County Performance Partnership (TCPP) Tillamook Coastal Watershed Resource Center (TCWRC) GIS: http://gisweb.co.tillamook.or.us TCPP: http://www.co.tillamook.or.us/countygovernment/Estuary/homepage.htm TCWRC: http://www.tcwrc.org From yecarrillo at hotmail.com Wed May 16 20:48:03 2001 From: yecarrillo at hotmail.com (Eduin Yesid Carrillo) Date: Wed, 16 May 2001 22:48:03 -0500 Subject: [mapserver-users] template initialization Message-ID: The utility just fire up the browser passing all values needed. ---------------------------- Eduin Yesid Carrillo Ingeniero Civil CIUDAD DIGITAL Central de Informaci?n Regional Georefenciada Bucaramanga - Colombia yecarrillo at hotmail.com yecarrillo at condorito.uis.edu.co #ICQ 14323531 >From: "Chad Nielsen" >To: "Mapserver Info" >Subject: [mapserver-users] template initialization >Date: Wed, 16 May 2001 17:30:09 -0700 > >Hi List > >I'm working with Ross Searle's Arcview utility. I'm confused about how the >template is initialized without an 'init' file. The generated template >starts out with a bunch of form input tags with CGI variables yet there is >no form tag. How is something like [img] retrieved if nothing is submited >to >the server? > >the template starts out like this > > > > > > > > > > >... > >Thanks, >Chad > > >Chad M. Nielsen, GIS Programmer/Analyst >Tillamook County Performance Partnership (TCPP) >Tillamook Coastal Watershed Resource Center (TCWRC) > > GIS: http://gisweb.co.tillamook.or.us > TCPP: >http://www.co.tillamook.or.us/countygovernment/Estuary/homepage.htm >TCWRC: http://www.tcwrc.org > > _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From mschulz at webgis.de Thu May 17 00:54:43 2001 From: mschulz at webgis.de (Michael Schulz) Date: Thu, 17 May 2001 09:54:43 +0200 Subject: [mapserver-users] Re: Fragen zu Mapserver References: <01C0DE40.05E76D60@localhost> Message-ID: <3B0383C3.900C6B8F@webgis.de> Hallo Thomas, Tiling: eine rasterlayer in MapServer wird folgendermassen definiert: LAYER NAME topo TYPE raster STATUS on DATA dateiname.tif (georeferenziert) END Damit kann man allerdings nur eine rasterdatei einbauen. Um mehrere Kacheln ("tiles") von rastern einzubauen, erstellt man ein Polygon-shapefile mit den Umrissen der Kacheln. In der zugeh?rigen dbf-datei erstellt man ein neues Feld "LOCATION" in das f?r jedes Polygon/Kachel der Pfad zu der entsprechenden Rasterdatei eingetragen wird. Im mapfile tr?gt man folgendes ein: LAYER NAME topo TYPE raster STATUS on TILEINDEX shapefile TILEITEM dbf-itemname (optional, da default LOCATION) END Wenn Du raster integrierst und es erscheint nicht, dann ist vermutlich der Pfad zu den rasterdaten in dem Tileindex falsch. Infos zu mapxy und shpmid oder OGR-Support gibt es haupts?chlich ?ber die Mailing-Liste. In Zukunft vielleicht auch durch das Documentation Project. Viel Spass, Michael P.S.: Wenn Du mit ArcView arbeitest, k?nnte ich Dir ein AV-Script schicken um aus einem Imagecatalog ein Tileindex-Shapefile zu erstellen. Thomas Bauer wrote: > Hallo Michael, > > danke erstmal f?r Deine Antworten. > > Kannst Du mir die Sache mit dem "Tiling" etwas genauer erkl?ren, bzw. gibt es daf?r eine Dokumentation oder ein einfaches Beispiel? > > Wo sind solche Funktione wie "mapxy=[shpmid]" und der OGR-Support dokumentiert? > > Gru? > > Thomas > > -- ----------------------------------------------------------- Michael Schulz in medias res Dipl.-Geologe Gesellschaft f?r Informationstechnologie mbH Sautierstr. 38, 79104 Freiburg 0761 55695-95 (Fax 96) mschulz at webgis.de www.webgis.de From iblden at iblden.com Thu May 17 04:17:48 2001 From: iblden at iblden.com (Dennis Anthony) Date: Thu, 17 May 2001 07:17:48 -0400 Subject: [mapserver-users] RH6.2 Install Message-ID: <3B03B35B.E7651552@iblden.com> hello list, i am attempting to compile mapserver 3.3.011 on my red hat 6.2 system. Each time i compile i encounter a number of errors as seen in the following config.log and output from the Configure execution. When I execute the Make following the "Configure" I encounter numerous message indicating GNU Make version 3.78.1 is being used., " gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TTF -DUSE_TIFF -DUSE_JPEG -DUSE_GD_1_3 -I/home/danthony/tools/mapserver/ms33/gdft -I/usr/include/freetype ........" I have attempted to compile with freetype installed via RPM as well as from source, P I have also installted the following components. The Configuration below does not include the PROJ4 or shpelib packages. Though several attempts were made with those ase well. PROJ.4-4.4.1-1.i586.rpm freetype-2.0.1.tar shapelib-1.2.8-1.i586.rpm jpegsrc.v6b.tar.gz ms_3.4.tar Any help or suggestions would be appreciated. dennis. ****************************** CONFIG.LOG This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. configure:569: checking for gcc configure:682: checking whether the C compiler (gcc ) works configure:698: gcc -o conftest conftest.c 1>&5 configure:724: checking whether the C compiler (gcc ) is a cross-compiler configure:729: checking whether we are using GNU C configure:757: checking whether gcc accepts -g configure:791: checking for ranlib configure:821: checking for flex configure:855: checking for yywrap in -lfl configure:901: checking for bison configure:933: checking if compiler supports -R configure:968: checking if compiler supports -Wl,-rpath, configure:1046: checking for exp in -lm configure:1090: checking how to run the C preprocessor configure:1170: checking for ANSI C header files configure:1275: checking for strcasecmp configure:1324: checking for strncasecmp configure:1373: checking for strdup configure:1430: checking which version of GD to use... configure:1610: checking for gdImageGif in -lgd configure:1629: gcc -o conftest -g -O2 conftest.c -lgd -lm 1>&5 configure:1650: checking for gdImageString16 in -lgd configure:1669: gcc -o conftest -g -O2 conftest.c -lgd -lm 1>&5 configure:1690: checking for gdImagePng in -lgd configure:1709: gcc -o conftest -g -O2 conftest.c -lgd -lpng -lz -lm 1>&5 /tmp/cc1svlmX.o: In function `main': /home/danthony/tools/mapserver/ms33/configure:1705: undefined reference to `gdImagePng' collect2: ld returned 1 exit status configure: failed program was: #line 1698 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char gdImagePng(); int main() { gdImagePng() ; return 0; } configure:1791: checking whether we should include TIFF support... configure:1942: checking for TIFFOpen in -ltiff configure:1961: gcc -o conftest -g -O2 conftest.c -ltiff -lm 1>&5 configure:2047: checking whether we should include JPEG support... configure:2106: checking for jpeg_read_header in -ljpeg configure:2125: gcc -o conftest -g -O2 conftest.c -ljpeg -lm 1>&5 configure:2165: checking whether we should include EPPL7 support... configure:2193: checking whether we should include Freetype (TTF) support... configure:2254: checking for TT_Init_FreeType in -lttf configure:2273: gcc -o conftest -g -O2 conftest.c -lttf -lm 1>&5 configure:2295: checking for freetype.h configure:2328: checking for TT_Init_FreeType in -lttf configure:2371: checking for the location of freetype.h configure:2452: checking whether we should include PROJ.4 support... configure:2574: checking whether we should include ESRI SDE support... configure:2801: checking for PHP3/MapScript module options... ************************** *** Tail end of Config output to screen checking for gdImageGif in -lgd... yes checking for gdImageString16 in -lgd... yes checking for gdImagePng in -lgd... no using GD (-DUSE_GD_1_3) from system libs. checking whether we should include TIFF support... checking for TIFFOpen in -ltiff... yes using libtiff from system libs. checking whether we should include JPEG support... checking for jpeg_read_header in -ljpeg... yes using libjpeg from system libs. checking whether we should include EPPL7 support... including EPPL7 support. checking whether we should include Freetype (TTF) support... checking for TT_Init_FreeType in -lttf... yes checking for freetype.h... (cached) no checking for TT_Init_FreeType in -lttf... (cached) yes checking for the location of freetype.h... /usr/include/freetype/freetype.h using libttf from system libs. checking whether we should include PROJ.4 support... PROJ.4 support not requested. checking whether we should include ESRI SDE support... ESRI SDE support not requested. Compiling with -DIGNORE_MISSING_DATA. checking for PHP3/MapScript module options... PHP3/MapScript module not configured. creating ./config.status creating Makefile creating gdft/Makefile From thfischer at mapmedia.de Thu May 17 04:10:21 2001 From: thfischer at mapmedia.de (Thorsten Fischer) Date: Thu, 17 May 2001 13:10:21 +0200 Subject: [mapserver-users] Projection of objects in mapscript Message-ID: <01051713301000.00739@grobi> Dear list, browsing through mapscript.i after updating it from CVS let me come across a new method in several objects, including for example pointObj. The method is called 'project', which appears to be a gift from heaven for me at the moment. But I can't figure out how to use it. It says, in the pointObj for example: int project (projectionObj *in, projectionObj *out) My questions are Java related: 1. How do I create a projectionObj? 2. How do I use this method, and what does it return, e.g. I want to project a single geographic coordinate to UTM/zone 32? I expected something like this pseudo-code: myPoint.project (, ); and the new coordinates being saved in myPoint, though it would be nice if it would return a new object without touching the original one. So how do I create a projectionObj to use all of this? Thanks in advance, Thorsten -- Thorsten Fischer thfischer at mapmedia.de --------------------------------------------------------- MapMedia - Kartographie und raumbezogene Informationssysteme Am Borsigturm 42 13507 Berlin Deutschland http://www.mapmedia.de tel: +49 (0)30 43032102 --------------------------------------------------------- From steve.lime at dnr.state.mn.us Thu May 17 08:24:35 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 17 May 2001 10:24:35 -0500 Subject: [mapserver-users] Projection of objects in mapscript Message-ID: The projection methods are intended (for the moment) to work off the projectionObj's attached to map and layer objects. I will add a generic projection object to mapscript so you can do something like: my $proj = new projectionObj("+init=epsg:11111"); but for now you have to use projection objects with maps and layers. So you can do something like: $status = $point.project($layer->projection, $map->projection); die "Projection failed." if $status != $mapscript::MS_SUCCESS; Note that you have setProjection methods available for both map and layer objects. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Thorsten Fischer 05/17/01 06:10AM >>> Dear list, browsing through mapscript.i after updating it from CVS let me come across a new method in several objects, including for example pointObj. The method is called 'project', which appears to be a gift from heaven for me at the moment. But I can't figure out how to use it. It says, in the pointObj for example: int project (projectionObj *in, projectionObj *out) My questions are Java related: 1. How do I create a projectionObj? 2. How do I use this method, and what does it return, e.g. I want to project a single geographic coordinate to UTM/zone 32? I expected something like this pseudo-code: myPoint.project (, ); and the new coordinates being saved in myPoint, though it would be nice if it would return a new object without touching the original one. So how do I create a projectionObj to use all of this? Thanks in advance, Thorsten -- Thorsten Fischer thfischer at mapmedia.de --------------------------------------------------------- MapMedia - Kartographie und raumbezogene Informationssysteme Am Borsigturm 42 13507 Berlin Deutschland http://www.mapmedia.de tel: +49 (0)30 43032102 --------------------------------------------------------- From frank.koormann at intevation.de Thu May 17 10:05:06 2001 From: frank.koormann at intevation.de (Frank Koormann) Date: Thu, 17 May 2001 19:05:06 +0200 Subject: [mapserver-users] RH6.2 Install In-Reply-To: <3B03B35B.E7651552@iblden.com>; from iblden@iblden.com on Thu, May 17, 2001 at 07:17:48AM -0400 References: <3B03B35B.E7651552@iblden.com> Message-ID: <20010517190506.A2953@intevation.de> Dear Dennis, Listers, * Dennis Anthony (iblden at iblden.com) [010517 13:59]: > hello list, > > i am attempting to compile mapserver 3.3.011 on my red hat 6.2 system. > Each time i compile i encounter a number of errors as seen in the > following config.log and output from the Configure execution. When I > execute the Make following the "Configure" I encounter numerous message > indicating > > GNU Make version 3.78.1 is being used., > > " gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TTF -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_1_3 -I/home/danthony/tools/mapserver/ms33/gdft > -I/usr/include/freetype ........" > I guess you have some problems with the freetype. On a RH 6.2 with a set of libs similar to yours (although I use gd 1.8.3) mapserver compiles without problems. Please post (or mail me personally) the error messages resulting from your make command. All the configure messages looks ok, because it is the way of configure to check your system by compile/link-attempts and to interpret errors as packages missed or not found. Regards, Frank -- Frank Koormann Professional Service around Free Software (http://intevation.net/) FreeGIS Project (http://freegis.org/) From yecarrillo at hotmail.com Thu May 17 10:16:52 2001 From: yecarrillo at hotmail.com (Eduin Yesid Carrillo) Date: Thu, 17 May 2001 12:16:52 -0500 Subject: [mapserver-users] VisualC++ Experts.. Message-ID: Hi list. Please give me any hint for this error in vc6 and mapsde.c. Micosoft Knowledge Base give some workarounds for this error, but I don't know how implement them for sg.h (ArcSDE). All 26 times that mapsde.c call SDE functions, generates this error: ******* Creating library mapserv.lib and object mapserv.exp mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_connection_free mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_shape_free ... mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_shape_get_num_parts mapserv.exe : fatal error LNK1120: 26 unresolved externals NMAKE : fatal error U1077: '"C:\Archivos de programa\Microsoft Visual Studio\VC98\BIN\link.exe"' : return code '0x460' Stop. Error executing NMAKE. ******* >From Microsoft: http://support.microsoft.com/support/kb/articles/Q123/7/68.asp?LN=EN-US&SD=gn&FR=0&qry=unresolved%20external%20symbol&rnk=6&src=DHCS_MSPSS_gn_SRCH&SPR=VCC CAUSE Inline functions are not visible outside of the source file where they are defined. The Inline Specifier section in the C++ Language Reference states, "Functions that are declared as inline and that are not class member functions have internal linkage unless otherwise specified." RESOLUTION Here are five possible workarounds: **Declare the inline function with the extern keyword to force external linkage. Note, however, that using extern with class member functions will cause a warning with /Ze, and an error with /Za. -or- **Move the function definition to the header file so it's included in each translation unit used. -or- **Remove the inline specification. -or- **Force a function version of the inline function to be created in the module that it is defined in. You can do this by referencing the address of the inline function, by assigning it to a function pointer, or by passing it to a function. -or- **Remove the /Ob1 (Only Inline) or /Ob2 (Any suitable) option from the command line and compile with /Ob0 (Disable). The /Ob0 option is the default if no options are specified. STATUS This behavior is by design. Thanks in advanced. Eduin Yesid Carrillo _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From spaske at kapur-assoc.com Thu May 17 09:06:34 2001 From: spaske at kapur-assoc.com (Sam Paske) Date: Thu, 17 May 2001 11:06:34 -0500 Subject: [mapserver-users] temporary files deletion In-Reply-To: Message-ID: On Windows 2000 Server we use a simple .cmd file that has one line: del C:/temp/*.gif The cmd file is run daily by the Task Scheduler service, which is available on Win98SE and above, I believe. The Task Scheduler is usually found in the Start Menu in Program Files->Accessories->System Tools. .cmd files are similar to batch files (.bat) so perhaps on Win98 a batch file would work when scheduled to run by the Task Scheduler. Since you have Win95, perhaps you could run the bat file automatically when the machine reboots. Assuming you reboot daily at the most and weekly at the least, this could meet your needs if the machine has enough disk space. Sam Paske Kapur & Assoc Milwaukee, WI, USA -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Speh Sylvain Sent: Tuesday, May 15, 2001 8:56 AM To: Assefa Yewondwossen Cc: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] temporary files deletion Yes, why not, but, what about mapServer under W95 which is not provided with a scheduler/chrontable ? Someone here was trying to use a VB script into an HTML page ( like some virus do ), but we could'nt achieve it. Any Idea ? -----Message d'origine----- De : Assefa Yewondwossen [mailto:assefa at dmsolutions.ca] Envoy? : lundi 14 mai 2001 22:01 ? : mapserver Objet : Re: [mapserver-users] temporary files deletion Hi There, For those of you who use windows, there is an executable on our site that can be used to delete tmp files created by mapserver. http://www2.dmsolutions.on.ca/webtools/dl/deltmpfiles.zip Note : I did some initial testing but I will start testing it on our internal server begining today. Later, Assefa Yewondwossen wrote: > Hi, > > Does any one has a bat file or an exe file (or other means) that I can > use to delete files on windows based on the time of the files. I would > like to be able to delete tmp gif files generated by mapserver that are > older that x time. > > Thanks, > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 > ---------------------------------------------------------------- -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 ---------------------------------------------------------------- From jsmedsmo at gis.umn.edu Thu May 17 11:51:57 2001 From: jsmedsmo at gis.umn.edu (Jamie Smedsmo) Date: Thu, 17 May 2001 13:51:57 -0500 Subject: [mapserver-users] VisualC++ Experts.. References: Message-ID: <3B041DCD.7159747B@gis.umn.edu> Here's an answer posted a while ago from Egon Kuster. UNRESOLVED SYMBOL ERRORS WHEN COMPILING MAPSERVER WITH SDE SUPPORT ON WIN32 THE PROBLEM: When compiling mapserver with SDE support in win32 the libraries provided by ESRI are not compatible with Microsoft Visual C++ as the symbol names in the ESRI SDE do not match the symbol names that mapserver needs when linking the project. When linking a C++ program together all the symbol names must match. When linking the mapserver project it is looking for symbol names like "_SE_connection_free" or "_SE_error_get_string" but can not find them. If you look through the SDE libraries you can easily find these symbols, so why doesn't it link?. Well the answer is simple, when Visual C++ creates the library file it strips the preceding "_" and following "@xxx" when it places the symbol name into the libraries export table. Therefore the name in the export table is "SE_connection_free" instead of "_SE_connection_free". The means that the symbol names are not matching and the linker can not find the correct symbols and produces the following errors when linking: mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_connection_free mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_shape_free mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_stream_free mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_shape_clip mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_shape_is_nil mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_stream_fetch mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_stream_execute mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_stream_describe_column mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_stream_bind_output_column mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_stream_set_spatial_constraints mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_stream_query mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_stream_create mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_sql_construct_alloc mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_shape_generate_rectangle mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_shape_create mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_layerinfo_get_envelope mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_layerinfo_get_coordref mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_coordref_create mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_layer_get_info mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_layerinfo_create mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_connection_create mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_error_get_string mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_shape_get_all_points mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_shape_get_num_points mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_shape_get_type mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_shape_get_num_parts mapserv.exe : fatal error LNK1120: 26 unresolved externals NMAKE : fatal error U1077: 'cl' : return code '0x2' Stop. THE SOLUTION: There is a solution to this problem and it is to creating a DEF file for the SDE library. In the DEF file, include an EXPORTS section that contains the names of the functions to be included in the library. Contents of SDE80.DEF: EXPORTS SE_connection_free =_SE_connection_free SE_shape_free = _SE_shape_free SE_stream_free = _SE_stream_free SE_shape_clip = _SE_shape_clip SE_shape_is_nil = _SE_shape_is_nil SE_stream_fetch = _SE_stream_fetch SE_stream_execute = _SE_stream_execute SE_stream_describe_column = _SE_stream_describe_column SE_stream_bind_output_column = _SE_stream_bind_output_column SE_stream_set_spatial_constraints = _SE_stream_set_spatial_constraints SE_stream_query = _SE_stream_query SE_stream_create = _SE_stream_create SE_sql_construct_alloc = _SE_sql_construct_alloc SE_shape_generate_rectangle = _SE_shape_generate_rectangle SE_shape_create = _SE_shape_create SE_layerinfo_get_envelope = _SE_layerinfo_get_envelope SE_layerinfo_get_coordref = _SE_layerinfo_get_coordref SE_coordref_create = _SE_coordref_create SE_layer_get_info = _SE_layer_get_info SE_layerinfo_create = _SE_layerinfo_create SE_connection_create = _SE_connection_create SE_error_get_string = _SE_error_get_string SE_shape_get_all_points = _SE_shape_get_all_points SE_shape_get_num_points = _SE_shape_get_num_points SE_shape_get_type = _SE_shape_get_type SE_shape_get_num_parts = _SE_shape_get_num_parts Place this file in the same directory as the SDE80.LIB file and use the Microsoft 32-bit LIB utility with the /MACHINE and /DEF switches eg. LIB /MACHINE:i386 /DEF:SDE80.DEF This will alter the SDE80.LIB library so when linking the library with the rest of mapserver the symbol reference are resolved and hence the problem is solved. Compile the program as before and all your problems should disappear. For more Information see: Microsoft Systems Journal July 1996 Under the Hood Written by Matt Pietrek (71774.362 at compuserve.com) Compiling Mapserver with SDE support on win32 written by Egon Kuster Defence Science & Technology Organisation egon.kuster at dsto.defence.gov.au -----Original Message----- From: Stephen Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Tuesday, 13 February 2001 7:15 AM To: Egon.Kuster at dsto.defence.gov.au Subject: Re: SDE HELP! Hi Egon: I've never tried it myself on NT. My development version is sde8 and platform is solaris 2.7. The conversion warnings are probably no big deal. The unresolved symbol problems are the big concern. What version of SDE are you running? You might check the ESRI SDE site for tips on compiling/linking win32 executables. Again this should work but I'm afraid this is virgin territory so it might be kinda painfull getting it to work. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Kuster, Egon" 02/11/01 10:16PM >>> I am trying to compile mapserver with the SDE support, I get the following compile errors: C:\mapserver\source\mapserver>nmake Makefile.vc Microsoft (R) Program Maintenance Utility Version 6.00.8168.0 Copyright (C) Microsoft Corp 1988-1998. All rights reserved. cd gd-1.2 nmake /f makefile.nt OPTFLAGS="/nologo /Zi /W3 /DDEBUG" Microsoft (R) Program Maintenance Utility Version 6.00.8168.0 Copyright (C) Microsoft Corp 1988-1998. All rights reserved. cl gddemo.obj -o gddemo /link /LIBPATH:. gd.lib Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86 Copyright (C) Microsoft Corp 1984-1998. All rights reserved. Microsoft (R) Incremental Linker Version 6.00.8447 Copyright (C) Microsoft Corp 1992-1998. All rights reserved. /out:gddemo.exe /out:gddemo.exe /LIBPATH:. gd.lib gddemo.obj cl giftogd.obj -o giftogd /link /LIBPATH:. gd.lib Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86 Copyright (C) Microsoft Corp 1984-1998. All rights reserved. Microsoft (R) Incremental Linker Version 6.00.8447 Copyright (C) Microsoft Corp 1992-1998. All rights reserved. /out:giftogd.exe /out:giftogd.exe /LIBPATH:. gd.lib giftogd.obj cl webgif.obj -o webgif /link /LIBPATH:. gd.lib Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86 Copyright (C) Microsoft Corp 1984-1998. All rights reserved. Microsoft (R) Incremental Linker Version 6.00.8447 Copyright (C) Microsoft Corp 1992-1998. All rights reserved. /out:webgif.exe /out:webgif.exe /LIBPATH:. gd.lib webgif.obj cd .. cd gdft nmake /f makefile.vc OPTFLAGS="/nologo /Zi /W3 /DDEBUG" Microsoft (R) Program Maintenance Utility Version 6.00.8168.0 Copyright (C) Microsoft Corp 1988-1998. All rights reserved. cd .. cl /nologo /Zi /W3 /DDEBUG -I./gd-1.2 -I../freetype/lib -I./gdft -I./regex-0.12 -IC:\arcgis\arcexe81\arcsde\include -DHAVE_STRING_H -DREGEX_MALLOC -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_EPPL -DUSE_TTF -DUSE_GD_1_2 -DUSE_SDE mapserv.c mapserver.lib gd-1.2/gd.lib ./freetype/lib/freetype.lib ./gdft/gdft.lib C:\arcgis\arcexe81\arcsde\lib\*.lib mapserv.c mapserv.c(165) : warning C4018: '!=' : signed/unsigned mismatch mapserv.c(230) : warning C4244: '=' : conversion from 'double ' to 'int ', possible loss of data mapserv.c(239) : warning C4244: '=' : conversion from 'double ' to 'int ', possible loss of data mapserv.c(579) : warning C4244: '=' : conversion from 'double ' to 'int ', possible loss of data mapserv.c(580) : warning C4244: '=' : conversion from 'double ' to 'int ', possible loss of data mapserv.c(605) : warning C4244: '=' : conversion from 'double ' to 'int ', possible loss of data mapserv.c(606) : warning C4244: '=' : conversion from 'double ' to 'int ', possible loss of data LIBC.lib(crt0init.obj) : warning LNK4098: defaultlib "libcd.lib" conflicts with use of other libs; use /NODEFAULTLIB:library mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_connection_free mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_shape_free mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_stream_free mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_shape_clip mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_shape_is_nil mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_stream_fetch mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_stream_execute mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_stream_describe_column mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_stream_bind_output_column mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_stream_set_spatial_constraints mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_stream_query mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_stream_create mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_sql_construct_alloc mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_shape_generate_rectangle mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_shape_create mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_layerinfo_get_envelope mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_layerinfo_get_coordref mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_coordref_create mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_layer_get_info mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_layerinfo_create mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_connection_create mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_error_get_string mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_shape_get_all_points mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_shape_get_num_points mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_shape_get_type mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol _SE_shape_get_num_parts mapserv.exe : fatal error LNK1120: 26 unresolved externals NMAKE : fatal error U1077: 'cl' : return code '0x2' Stop. What version of the SDE API did you use when writing mapserver, do you have a distribution of mapserver that I can use that contains SDE support or do you have any pointers for trying to run mapserver with connecting to the ESRI SDE. I have also attached a copy of the make file that I am using. <> Egon Kuster Defence, Science & Technology Organisation Information Technology Division Australia Phone: +61 8 8259 5175 Fax: +61 8 8259 5169 Email: egon.kuster at dsto.defence.gov.au Eduin Yesid Carrillo wrote: > > Hi list. > Please give me any hint for this error in vc6 and mapsde.c. Micosoft > Knowledge Base give some workarounds for this error, but I don't know how > implement them for sg.h (ArcSDE). > All 26 times that mapsde.c call SDE functions, generates this error: > > ******* > Creating library mapserv.lib and object mapserv.exp > mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol > _SE_connection_free > mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol > _SE_shape_free > ... > mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol > _SE_shape_get_num_parts > mapserv.exe : fatal error LNK1120: 26 unresolved externals > NMAKE : fatal error U1077: '"C:\Archivos de programa\Microsoft Visual > Studio\VC98\BIN\link.exe"' : return code '0x460' > Stop. > Error executing NMAKE. > ******* > > >From Microsoft: > http://support.microsoft.com/support/kb/articles/Q123/7/68.asp?LN=EN-US&SD=gn&FR=0&qry=unresolved%20external%20symbol&rnk=6&src=DHCS_MSPSS_gn_SRCH&SPR=VCC > > CAUSE > Inline functions are not visible outside of the source file where they are > defined. The Inline Specifier section in the C++ Language Reference states, > "Functions that are declared as inline and that are not class member > functions have internal linkage unless otherwise specified." > > RESOLUTION > Here are five possible workarounds: > **Declare the inline function with the extern keyword to force external > linkage. Note, however, that using extern with class member functions will > cause a warning with /Ze, and an error with /Za. > -or- > **Move the function definition to the header file so it's included in each > translation unit used. > -or- > **Remove the inline specification. > -or- > **Force a function version of the inline function to be created in the > module that it is defined in. You can do this by referencing the address of > the inline function, by assigning it to a function pointer, or by passing it > to a function. > -or- > **Remove the /Ob1 (Only Inline) or /Ob2 (Any suitable) option from the > command line and compile with /Ob0 (Disable). The /Ob0 option is the default > if no options are specified. > > STATUS > This behavior is by design. > > Thanks in advanced. > > Eduin Yesid Carrillo > > _________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From vieglais at ukans.edu Thu May 17 12:24:49 2001 From: vieglais at ukans.edu (Dave Vieglais) Date: Thu, 17 May 2001 14:24:49 -0500 Subject: [mapserver-users] VisualC++ Experts.. In-Reply-To: Message-ID: Are you including a reference to the sde libraries in your make file? The message indicates that the linker is not able to locate the entry points for those SDE routines- so either a different version of SDE or it couldn't find the lib files. Check that you have the libraries installed, and you are using the correct paths in your make file. Dave V. >-----Original Message----- >From: owner-mapserver-users at lists.gis.umn.edu >[mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Eduin Yesid >Carrillo >Sent: Thursday, May 17, 2001 12:17 PM >To: mapserver-users at lists.gis.umn.edu >Subject: [mapserver-users] VisualC++ Experts.. > > >Hi list. >Please give me any hint for this error in vc6 and mapsde.c. Micosoft >Knowledge Base give some workarounds for this error, but I don't know how >implement them for sg.h (ArcSDE). >All 26 times that mapsde.c call SDE functions, generates this error: > >******* > Creating library mapserv.lib and object mapserv.exp >mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol >_SE_connection_free >mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol >_SE_shape_free >... >mapserver.lib(mapsde.obj) : error LNK2001: unresolved external symbol >_SE_shape_get_num_parts >mapserv.exe : fatal error LNK1120: 26 unresolved externals >NMAKE : fatal error U1077: '"C:\Archivos de programa\Microsoft Visual >Studio\VC98\BIN\link.exe"' : return code '0x460' >Stop. >Error executing NMAKE. >******* From paul.jacobs at javel.nl Fri May 18 00:17:28 2001 From: paul.jacobs at javel.nl (Paul Jacobs) Date: Fri, 18 May 2001 09:17:28 +0200 Subject: [mapserver-users] a question about tiffimages Message-ID: <01051809172800.00763@paul> Hi, I have a question about tiff images and perl mapscript. When the tiff-pictures are rendered (256 color) sometimes the colors of the tiff images are changed into very different colors than the original. Does anyone know why this happens? regards, Paul Jacobs From imap at chesapeake.net Fri May 18 01:49:06 2001 From: imap at chesapeake.net (Chris Stuber) Date: Fri, 18 May 2001 04:49:06 -0400 Subject: [mapserver-users] a question about tiffimages References: <01051809172800.00763@paul> Message-ID: <3B04E202.A9E35F9B@chesapeake.net> Paul J, The output is 8-bit, and I guess you are allocating some other colors in your mapfile... which in effect over-allocates the color table. Since mapserver's limitation (last time I checked) is 8-bit output, I'd suggest that you decrease the number of colors used in your TIFF image so that you have colors for lines/polys/symbols, etc. Although PNG supports 24-bit, mapserver only deals with with an 8-bit color table.... Steve, correct? Any new developments along these lines? I have the same problems with my raster images/charts/topos, etc. It would be nice to somehow handle image resampling or some other magic to avoid this problem. Regards, Chris Stuber (mapsurfer) Paul Jacobs wrote: > > Hi, > I have a question about tiff images and perl mapscript. When the > tiff-pictures are rendered (256 color) sometimes the colors of the tiff > images are changed into very different colors than the original. Does anyone > know why this happens? > > regards, > Paul Jacobs From firth at troika.demon.co.uk Fri May 18 03:34:46 2001 From: firth at troika.demon.co.uk (Bob Firth) Date: Fri, 18 May 2001 11:34:46 +0100 (BST) Subject: [mapserver-users] Mapserver documentation Message-ID: Is there some kind of documentation package available for Mapserver? I realise that having the documentation online has many advantages, but being new to Mapserver I would like to browse at my leisure without having to be dialled up all the time. -- Bob Firth Troika International 1 Little Mount Sion, Tunbridge Wells, Kent TN1 1YS, UK Phone: +44-1892-543373 Fax: +44-1892-545585 From raanders at tincan.org Fri May 18 05:37:59 2001 From: raanders at tincan.org (Roderick A. Anderson) Date: Fri, 18 May 2001 05:37:59 -0700 (PDT) Subject: [mapserver-users] Mapserver documentation In-Reply-To: Message-ID: On Fri, 18 May 2001, Bob Firth wrote: > Is there some kind of documentation package available for Mapserver? > I realise that having the documentation online has many advantages, > but being new to Mapserver I would like to browse at my leisure without > having to be dialled up all the time. Over the next few days I'm going to convert the html files etc. to pdf. Until I can work out a resonable way to suck the whole documentation glob into one (html?) document they will have to remain as several files. I'll announce to the list when I have them ready and where to get them. Rod -- Remove the word 'try' from your vocabulary ... Don't try. Do it or don't do it ... Steers try! Don Aslett From teb at mallit.fr.umn.edu Fri May 18 06:53:03 2001 From: teb at mallit.fr.umn.edu (teb) Date: Fri, 18 May 2001 08:53:03 -0500 (CDT) Subject: [mapserver-users] mapserver problem (fwd) Message-ID: <200105181353.IAA16617@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "A.Venkatesan" To: Subject: mapserver problem Date: Fri, 18 May 2001 19:14:30 +0530 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Dear Friend, I installed mapserver s/w yesterday and downloaded demo progs also. Everything works ok with demo. I tried to include one of my shape files as a layer and it is not displaying. In order to verify the problem, I used jshape applet to display ctybdpy2 which is one of the shape files in the demo directory. This file did not display where as my shape file displayed in jshape. I made the mapscale parameter in jshape to 1 and then the demo-shape file displayed. With this I presumed that the EXTENT definition may have something to do with the problem. I am not able to find the way to give extent values for my shape file. Can U Pl help? Thanks in advance. Regards Venkat ------------- End Forwarded Message ------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From fabricio at cttmar.univali.br Fri May 18 06:57:36 2001 From: fabricio at cttmar.univali.br (Fabricio Bortoluzzi) Date: Fri, 18 May 2001 10:57:36 -0300 Subject: [mapserver-users] map extent References: Message-ID: <004c01c0dfa2$7ee7f280$f102a8c0@cttmar.univali.br> Hi, I don?t know how to discover the initial extent values to show my map. Can you help me? Regards Fabricio. From frank.koormann at intevation.de Fri May 18 06:57:11 2001 From: frank.koormann at intevation.de (Frank Koormann) Date: Fri, 18 May 2001 15:57:11 +0200 Subject: [mapserver-users] Mapserver documentation In-Reply-To: ; from raanders@tincan.org on Fri, May 18, 2001 at 05:37:59AM -0700 References: Message-ID: <20010518155711.B6738@intevation.de> Hi Rod, * Roderick A. Anderson (raanders at tincan.org) [010518 15:23]: > On Fri, 18 May 2001, Bob Firth wrote: > > > Is there some kind of documentation package available for Mapserver? > > I realise that having the documentation online has many advantages, > > but being new to Mapserver I would like to browse at my leisure without > > having to be dialled up all the time. > > Over the next few days I'm going to convert the html files etc. to > pdf. Until I can work out a resonable way to suck the whole > documentation glob into one (html?) document they will have to remain > as several files. I'll announce to the list when I have them ready > and where to get them. AFAIR htmldoc ( http://freshmeat.net/projects/htmldoc/ ) can bind seperate html-documents to one pdf-file, even with indices. Regards, Frank -- Frank Koormann Professional Service around Free Software (http://intevation.net/) FreeGIS Project (http://freegis.org/) From steve.lime at dnr.state.mn.us Fri May 18 08:52:09 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 18 May 2001 10:52:09 -0500 Subject: [mapserver-users] a question about tiffimages Message-ID: MapServer allocates a baisc palette based on the mapfile when it is parsed. Then images get access to whatever is left over and finally font anti-aliasing get any leftover space. Chris is right, decreasing the number of colors in the TIFF may help. On the 24-bit side, a new version of GD is out. It will be integrated after the initial 3.5 release. It's unclear how useful it will be though. It definitely reads (writes?) truecolor but it's gotta be slower so integration may be tricky especially when preserving GIF support. Note: there may be functionality in the new 3.5 GDAL support that replaces current TIFF support if compiled in. In know there's projection and resampling code in place but don't know if there's any color quantization code as well. Probably doesn't matter since there's still only 8-bit output. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Chris Stuber 05/18/01 03:49AM >>> Paul J, The output is 8-bit, and I guess you are allocating some other colors in your mapfile... which in effect over-allocates the color table. Since mapserver's limitation (last time I checked) is 8-bit output, I'd suggest that you decrease the number of colors used in your TIFF image so that you have colors for lines/polys/symbols, etc. Although PNG supports 24-bit, mapserver only deals with with an 8-bit color table.... Steve, correct? Any new developments along these lines? I have the same problems with my raster images/charts/topos, etc. It would be nice to somehow handle image resampling or some other magic to avoid this problem. Regards, Chris Stuber (mapsurfer) Paul Jacobs wrote: > > Hi, > I have a question about tiff images and perl mapscript. When the > tiff-pictures are rendered (256 color) sometimes the colors of the tiff > images are changed into very different colors than the original. Does anyone > know why this happens? > > regards, > Paul Jacobs From imap at chesapeake.net Fri May 18 11:48:23 2001 From: imap at chesapeake.net (Chris Stuber) Date: Fri, 18 May 2001 14:48:23 -0400 Subject: [mapserver-users] mapserver problem (fwd) References: <200105181353.IAA16617@mallit.fr.umn.edu> Message-ID: <3B056E77.3DF2CE46@chesapeake.net> Venkat, I suggest that you download Shapelib at http://gdal.velocet.ca/projects/shapelib/index.html and use 'shpdump |more '. The first thing it spits out is the extent of the shapefile. Over the years I have found the tool to be invaluable and I use it all the time (thanks Frank). Regards, Chris Stuber (mapsurfer) > teb wrote: > > ------------- Begin Forwarded Message ------------- > > From: "A.Venkatesan" > To: > Subject: mapserver problem > Date: Fri, 18 May 2001 19:14:30 +0530 > MIME-Version: 1.0 > X-Priority: 3 > X-MSMail-Priority: Normal > X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 > > Dear Friend, > I installed mapserver s/w yesterday and downloaded demo progs > also. Everything works ok with demo. I tried to include one of my > shape files as a layer and it is not displaying. In order to > verify the problem, I used jshape applet to display ctybdpy2 > which is one of the shape files in the demo directory. This file > did not display where as my shape file displayed in jshape. I > made the mapscale parameter in jshape to 1 and then the > demo-shape file displayed. With this I presumed that the EXTENT > definition may have something to do with the problem. I am not > able to find the way to give extent values for my shape file. Can > U Pl help? > Thanks in advance. > Regards > Venkat > > ------------- End Forwarded Message ------------- > > ----------------------------------------------------------------------- > Dear Friend, > I installed mapserver s/w yesterday and downloaded demo progs also. Everything > works ok with demo. I tried to include one of my shape files as a layer and it > is not displaying. In order to verify the problem, I used jshape applet to > display ctybdpy2 which is one of the shape files in the demo directory. This > file did not display where as my shape file displayed in jshape. I made the > mapscale parameter in jshape to 1 and then the demo-shape file displayed. With > this I presumed that the EXTENT definition may have something to do with the > problem. I am not able to find the way to give extent values for my shape > file. Can U Pl help? > Thanks in advance. > Regards > Venkat From warmerdam at pobox.com Fri May 18 12:15:25 2001 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 18 May 2001 15:15:25 -0400 Subject: [mapserver-users] a question about tiffimages References: Message-ID: <3B0574CD.B6052632@pobox.com> Stephen Lime wrote: > On the 24-bit side, a new version of GD is out. It will be integrated after the initial > 3.5 release. It's unclear how useful it will be though. It definitely reads (writes?) > truecolor but it's gotta be slower so integration may be tricky especially when > preserving GIF support. Steve, et al, Does anyone know if the new gd supports png alpha output? For WMS purposes it would be ideal to treat output with some transparent portions via an alpha value for each pixel rather than just the current approach of setting aside one palette value as transparent. > Note: there may be functionality in the new 3.5 GDAL support that replaces > current TIFF support if compiled in. In know there's projection and resampling > code in place but don't know if there's any color quantization code as well. Probably > doesn't matter since there's still only 8-bit output. There are algorithms in GDAL for colour quantization but they aren't directly used by MapServer. It seems to me that this sort of thing should be done as a preprocessing stage before putting up data for use with MapServer. Right? What do people use for preprocessing their raster images into paletted form? Is there interest in my providing some preparation tools for applying image enhancements, and doing colour quantization with detailed control? I have these in rough form already as part of GDAL. Best regards, ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From imap at chesapeake.net Sat May 19 01:34:40 2001 From: imap at chesapeake.net (Chris Stuber) Date: Sat, 19 May 2001 04:34:40 -0400 Subject: [mapserver-users] a question about tiffimages References: <3B0574CD.B6052632@pobox.com> Message-ID: <3B063020.7904AC84@chesapeake.net> Frank, Are you saying... that GDAL 3.5 can project and resample a TIFF raster? VERY COOL if it does. Is the tiff support replacement capable of dealing with a 24-bit TIFF, cause I don't think that libtiff will. Yep, the new versions of GD (2.0 and 2.01) support the TrueColor alpha channel/transparent blending, CopyResampled (copy with resampling), and TrueColorToPalette functions. Supports only JPG, PNG and WBMP formats... It would be nice if mapserver were capable of producing 24-bit images... alot more could be done with anti-aliasing with Truecolor. I preprocess my rasters with Adobe Illustrator or PaintShop Pro... Typically, I have to convert my 24-bit images to 8-bit (if they are not 8-bit already) and 2) decrease the image colors to around 150 to 200 colors. Sometime I still have trouble with filling up the color table with colors defined in my mapfile and or symbols which are pixmaps (gifs) that may contain a handful of colors. It would be great to have a tools capable preprocessing these rasters... using a GUI to do it, isnt much fun. Regards, Chris Stuber (mapsurfer) Frank Warmerdam wrote: > > Stephen Lime wrote: > > On the 24-bit side, a new version of GD is out. It will be integrated after the initial > > 3.5 release. It's unclear how useful it will be though. It definitely reads (writes?) > > truecolor but it's gotta be slower so integration may be tricky especially when > > preserving GIF support. > > Steve, et al, > > Does anyone know if the new gd supports png alpha output? For WMS purposes > it would be ideal to treat output with some transparent portions via > an alpha value for each pixel rather than just the current approach of setting > aside one palette value as transparent. > > > Note: there may be functionality in the new 3.5 GDAL support that replaces > > current TIFF support if compiled in. In know there's projection and resampling > > code in place but don't know if there's any color quantization code as well. Probably > > doesn't matter since there's still only 8-bit output. > > There are algorithms in GDAL for colour quantization but they aren't directly > used by MapServer. It seems to me that this sort of thing should be > done as a preprocessing stage before putting up data for use with MapServer. > Right? What do people use for preprocessing their raster images into > paletted form? Is there interest in my providing some preparation tools > for applying image enhancements, and doing colour quantization with > detailed control? I have these in rough form already as part of GDAL. > > Best regards, > > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent From pnaciona at gis.umn.edu Sat May 19 13:05:14 2001 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Sat, 19 May 2001 15:05:14 -0500 Subject: [mapserver-users] Problem Compiling MapServer and GD 1.8.4 on win32 In-Reply-To: <3B063020.7904AC84@chesapeake.net> Message-ID: Folks, This is a little off-topic but I've been having trouble compiling GD 1.8.4 (with and without the GIF patch) using Visual C++ 6 and Windows 2000. Am wondering if anybody can point me to the right direction... I can compile gd but the static library it creates fails when used with MapServer nightly build. I get a bunch of memory allocation error messages. I'm not near my work computer right now but if you want a detailed error message I'll be glad to provide it on Monday. Anyway, any suggestions as to how I might fix this problem would be appreciated. Thanks! Perry Nacionales University of Minnesota pnaciona at gis.umn.edu 612 625 5765 From david.armstrong at ntlworld.com Sun May 20 11:55:18 2001 From: david.armstrong at ntlworld.com (David Armstrong) Date: Sun, 20 May 2001 19:55:18 +0100 Subject: [mapserver-users] HELP shp2img showing wrong x,y Message-ID: <000901c0e15e$6a7dab10$0100a8c0@david> HI List, I am looking at producing a reference image of my tiled index shapefile using shp2img, the maps show correctly within mapserver perfectly. however the produced image is as i can see somehow reversed :- the correct line extent is EXTENT 399962.5 500012.5 499987.5 600037.5 the correct min-x (left edge) of the map becomes the top the correct min-y (bottom edge) of the map becomes the right the correct max-x(right edge ) of the map becomes the bottom the correct max-y ( top edge) of the map becomes the left as i can see it if you take a diagonal line from the top left to bottom right and rotate along this line it would then be correct Any idea's as to where I am wrong, as the map file must be correct as the map shows correctly within mapserver the gif here shows the problem also the small part of the map should be at the bottom http://www.adfv93.ukgateway.net/hpool.gif the map file & shp files are also here http://www.adfv93.ukgateway.net/ /map2.map /hp2.dbf /hp2.shx /hp2.shp Regards All David ---------------------------------------------------------------------------- ---- From ycnyon at pd.jaring.my Sun May 20 20:53:09 2001 From: ycnyon at pd.jaring.my (nyon) Date: Mon, 21 May 2001 11:53:09 +0800 Subject: [mapserver-users] Displaying a TIN in Mapserver Message-ID: <019a01c0e1a9$8e12e720$147a7ac0@tm.net.my> Hi, I created a TIN layer in Arcview 3d Analyst. What is the best way of putting this data in mapserver without losing the 'sharpness' ? Ideas that come to mind is to convert the TN to grid image or Erdas Lan. Nyon -------------- next part -------------- An HTML attachment was scrubbed... URL: From yecarrillo at hotmail.com Sun May 20 21:57:33 2001 From: yecarrillo at hotmail.com (Eduin Yesid Carrillo) Date: Sun, 20 May 2001 23:57:33 -0500 Subject: [mapserver-users] maplexer.c and mapparser.c Message-ID: I am trying to compile MS 3.5 but fails when VC tries to load maplexer.obj and mapparser.obj. Seems to do not exist maplexer.c and mapparser.c files. A workaround is copy maplexer.c and mapparser.c form MS3.4 but fails with this error: mapparser.c cl /nologo /Zi -I./gd-1.8.4 -I./tiff-v3.5.6-beta/libtiff -I./proj-4. 4.3/src -I./regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC -DNEED_STRCASECMP -DNEE D_STRNCASECMP -DUSE_EPPL -DUSE_PROJ -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG -DUS E_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF -DUSE_GD_TTF -DGD_HAS_GDIMAGEGIFPTR /c ma plexer.c /Fomaplexer.obj maplexer.c maplexer.l(172) : error C2065: 'TILE' : undeclared identifier maplexer.l(185) : error C2065: 'MS_ANNOTATION' : undeclared identifier maplexer.l(205) : error C2065: 'MS_LINE' : undeclared identifier maplexer.l(207) : error C2065: 'MS_LOCAL' : undeclared identifier maplexer.l(220) : error C2065: 'MS_POINT' : undeclared identifier maplexer.l(221) : error C2065: 'MS_POLYGON' : undeclared identifier maplexer.l(222) : error C2065: 'MS_POLYLINE' : undeclared identifier maplexer.l(223) : error C2065: 'MS_QUERY' : undeclared identifier maplexer.l(224) : error C2065: 'MS_RASTER' : undeclared identifier NMAKE : fatal error U1077: 'C:\ARCHIV~1\MICROS~3\VC98\BIN\cl.exe' : return code '0x2' Stop. Give me some hint.Where are this files? Thanks ---------------------------- Eduin Yesid Carrillo Ingeniero Civil CIUDAD DIGITAL Central de Informaci?n Regional Georefenciada Bucaramanga - Colombia yecarrillo at hotmail.com yecarrillo at condorito.uis.edu.co #ICQ 14323531 _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From yecarrillo at hotmail.com Mon May 21 06:59:16 2001 From: yecarrillo at hotmail.com (Eduin Yesid Carrillo) Date: Mon, 21 May 2001 08:59:16 -0500 Subject: [mapserver-users] Problem Compiling MapServer and GD 1.8.4 on win32 Message-ID: In my experience, you need make this changes to get a successful compilation: COMPILING MAPSERVER3.5 APLHA /WIN32 This info applies to: --------------------- MAPSERVER 3.5 ALPHA without php. And suppose this file structure: C:\mapserver\ARCSDE C:\mapserver\freetype-2.0.1 C:\mapserver\gd-1.8.4 C:\mapserver\gdft C:\mapserver\JPEG-6B C:\mapserver\libpng-1.0.9 C:\mapserver\PROJ C:\mapserver\REGEX-0.12 C:\mapserver\tiff-v3.5.6 C:\mapserver\zlib-1.1.3 Changes in /mapserver/makefile.vc --------------------------------- ***Note one sole dot instead of two dots in all relative paths. *LINES 38 y 39 PROJ_LIB=../proj/src/proj.lib PROJ_INC=-I../proj/src With: PROJ_LIB=./proj-4.4.3/src/proj.lib PROJ_INC=-I./proj-4.4.3/src *LINES 61-63 GD_INC= -I./gd-1.8.4 GD_LIB= ../gd-1.8.4/gd.lib ../jpeg-6b/libjpeg.lib ../libpng-1.0.8/libpng.lib \ ../zlib-1.1.3/zlibstat.lib ../freetype/lib/freetype.lib With: GD_INC= -I./gd-1.8.4 GD_LIB= ./gd-1.8.4/gd.lib ./jpeg-6b/libjpeg.lib ./lpng109/libpng.lib \ ./zlib-1.1.3/zlibstat.lib ./freetype-2.0.1/lib/freetype200b8.lib *LINE 69-70 TIFF_INC=-I../tiff-v3.5.4/libtiff TIFF_LIB=../tiff-v3.5.4/libtiff/libtiff.lib With: TIFF_INC=-I./tiff-v3.5.6-beta/libtiff TIFF_LIB=./tiff-v3.5.6-beta/libtiff/libtiff.lib *LINE 85 GDAL_DIR= ../gdal With: GDAL_DIR= ./gdal-1.1.4 *LINE 91-93: #SDE_OPT=-DUSE_SDE #SDE_INC=-I../arcsde/include #SDE_LIB=../arcsde/lib/sde80.lib ../arcsde/lib/sg80.lib ../arcsde/lib/pe80.lib With: SDE_OPT=-DUSE_SDE SDE_INC=-I./arcsde/include SDE_LIB=./arcsde/lib/sde80.lib ./arcsde/lib/sg80.lib ./arcsde/lib/pe80.lib *LINES 125 A 129: Comentarlas PHP_REGEX=..\php-4.0.4\regex REGEX_OBJ=$(PHP_REGEX)\regcomp.obj $(PHP_REGEX)\regerror.obj \ $(PHP_REGEX)\regexec.obj $(PHP_REGEX)\regfree.obj REGEX_INC=-I$(PHP_REGEX) -DPHP_NO_ALIASES With: #PHP_REGEX=..\php-4.0.4\regex #REGEX_OBJ=$(PHP_REGEX)\regcomp.obj $(PHP_REGEX)\regerror.obj \ # $(PHP_REGEX)\regexec.obj $(PHP_REGEX)\regfree.obj #REGEX_INC=-I$(PHP_REGEX) -DPHP_NO_ALIASES *LINE 160: LIBS = $(MS_LIB) $(GD_LIB) $(TIFF_LIB) $(JPEG_LIB) $(TTF_LIB) \ With: LIBS = $(MS_LIB) $(GD_LIB) $(TIFF_LIB) $(JPEG_LIB) $(TTF_LIB) $(SDE_LIB) \ *LINE 163: INCLUDES = $(GD_INC) $(TIFF_INC) $(JPEG_INC) $(TTF_INC) \ With: INCLUDES = $(GD_INC) $(TIFF_INC) $(JPEG_INC) $(TTF_INC) $(SDE_INC) \ *LINE 157: CFLAGS = $(BASE_CFLAGS) $(INCLUDES) $(REGEX_OPT) $(STRINGS) \ With: CFLAGS = $(BASE_CFLAGS) $(INCLUDES) $(REGEX_OPT) $(STRINGS) $(SDE_OPT) \ *LINE 182: cd gd-1.2 With: cd gd-1.8.4 *LINE 183: nmake /f makefile.nt OPTFLAGS="$(OPTFLAGS)" With: nmake /f makefile.nt gd.lib OPTFLAGS="$(OPTFLAGS)" Changes in /gd-1.8.4/makefile.nt -------------------------------- *LINE 21: #CFLAGS=-O -DHAVE_LIBXPM -DHAVE_LIBJPEG -DHAVE_LIBPNG -DHAVE_LIBTTF With: CFLAGS=-O -DHAVE_LIBJPEG -DHAVE_LIBPNG -DHAVE_LIBFREETYPE *LINE 27: LIBS=gd.lib libpng.lib zlib.lib With: LIBS=gd.lib ../lpng109/libpng.lib ../zlib-1.1.3/zlibstat.lib ../jpeg-6b/libjpeg.lib *LINE 31: GDLIBS=libpng.lib zlib.lib With: GDLIBS=../lpng109/libpng.lib ../zlib-1.1.3/zlibstat.lib ../jpeg-6b/libjpeg.lib ../freetype-2.0.1/lib/freetype200b8.lib *LINE 36: INCLUDEDIRS=-I d:\zlib -I d:\libpng -I d:\libjpeg -I d:\libttf With: INCLUDEDIRS=-I../zlib-1.1.3 -I../lpng109 -I../jpeg-6b -I../freetype-2.0.1/lib -I../freetype-2.0.1/include/freetype -I../freetype-2.0.1/include *LINE 46: LIB=d:\devstudio\vc\lib;d:\zlib;d:\libpng;d:\libjpeg;d:\libttf With: LIBDIRS= *LINE 66: LINK=$(CC) $(LIBS) With: LINK=$(CC) $(LIB) $(LIBS) *LINE 124: gdfontg.obj gdtables.obj gdttf.obj gdft.c gdcache.obj gdkanji.obj gd_jpeg.obj With: gdfontg.obj gdtables.obj gdttf.obj gdft.obj gdcache.obj gdkanji.obj gd_jpeg.obj Changes in /gd-1.8.4/gdft.c -------------------------- *LINE 15: #include With: #define R_OK 2 ---------------------------- Eduin Yesid Carrillo Ingeniero Civil CIUDAD DIGITAL Central de Informaci?n Regional Georefenciada Bucaramanga - Colombia yecarrillo at hotmail.com yecarrillo at condorito.uis.edu.co #ICQ 14323531 _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From morissette at dmsolutions.ca Mon May 21 07:29:05 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 21 May 2001 10:29:05 -0400 Subject: [mapserver-users] maplexer.c and mapparser.c References: Message-ID: <3B092631.E72E9CE6@dmsolutions.ca> Eduin Yesid Carrillo wrote: > > I am trying to compile MS 3.5 but fails when VC tries to load maplexer.obj > and mapparser.obj. Seems to do not exist maplexer.c and mapparser.c files. Those files are generated automatically from mapparser.y and maplexer.l by the bison and flex tools on Unix. Since you're on Windows you don't have easy access to these tools... normally the nightly build on the MapServer web site will contain them and that's what you should use, but I don't think the nightly.tar.gz that's there now is up-to-date. The other solution (that's what we always do) is to compile the source on Unix, and then copy the files mapparser.c, mapparser.h and maplexer.c from the Unix machine to your PC. In case you don't have access to a Unix box, I've placed a copy of the 3 files generated from the latest CVS source at http://www2.dmsolutions.ca/mapserver/dl/mapparser_maplexer_20010521.zip -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From steve.lime at dnr.state.mn.us Mon May 21 07:56:27 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 21 May 2001 09:56:27 -0500 Subject: [mapserver-users] maplexer.c and mapparser.c Message-ID: Nighties are being built again so you can download that file and it will have lexer and parser code in place. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Daniel Morissette 05/21/01 09:29AM >>> Eduin Yesid Carrillo wrote: > > I am trying to compile MS 3.5 but fails when VC tries to load maplexer.obj > and mapparser.obj. Seems to do not exist maplexer.c and mapparser.c files. Those files are generated automatically from mapparser.y and maplexer.l by the bison and flex tools on Unix. Since you're on Windows you don't have easy access to these tools... normally the nightly build on the MapServer web site will contain them and that's what you should use, but I don't think the nightly.tar.gz that's there now is up-to-date. The other solution (that's what we always do) is to compile the source on Unix, and then copy the files mapparser.c, mapparser.h and maplexer.c from the Unix machine to your PC. In case you don't have access to a Unix box, I've placed a copy of the 3 files generated from the latest CVS source at http://www2.dmsolutions.ca/mapserver/dl/mapparser_maplexer_20010521.zip -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From kenboss at dilbert.dnr.state.mn.us Mon May 21 10:12:45 2001 From: kenboss at dilbert.dnr.state.mn.us (kenboss) Date: Mon, 21 May 2001 12:12:45 -0500 (CDT) Subject: [mapserver-users] a question about tiffimages Message-ID: <200105211712.MAA16628@philbert.dnr.state.mn.us> We use an combination of ERDAS, Image Alchemy, and the geotif libraries for our raster image preprocessing. Alchemy does a nice job of implementing the Heckbert median cut algorithm for color quantization. It provides some fine-tuning options, including palette sorting by popularity, which is handy in a mapserver context in that you can use it to ensure that only the least-frequently used colors get swapped out for some approximation when the palette becomes over-allocated. The downside to Alchemy is that it's proprietary (about $500 per *nix license). I'm sure that public domain packages like Image Magick and the Gimp should be able to meet these needs as well, but haven't tried them since we've already got a working solution. Would it be nice if GDAL could handle all of our image preprocessing needs? Sure, especially since GDAL is spatially aware, so there would presumably be less need to muck around with map projection information than there is when working with spatially-unaware image processing packages. On the other hand, there are already public domain packages that can be employed for these purposes, so I'm not sure how high on the GDAL development priority list these things would need to go. --Ken ============================================================================= Ken Boss Digital Image Analysis / Web Stuff Forestry Resource Assessment kenboss at dilbert.dnr.state.mn.us Minnesota Dept. of Natural Resources Voice: 218 327 4449 ext. 237 413 SE 13th Street Fax: 218 327 4517 Grand Rapids, MN 55744 USA www.ra.dnr.state.mn.us ============================================================================= > There are algorithms in GDAL for colour quantization but they aren't directly > used by MapServer. It seems to me that this sort of thing should be > done as a preprocessing stage before putting up data for use with MapServer. > Right? What do people use for preprocessing their raster images into > paletted form? Is there interest in my providing some preparation tools > for applying image enhancements, and doing colour quantization with > detailed control? I have these in rough form already as part of GDAL. > > Best regards, > > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent From Chip.Hankley at GASAI.Com Mon May 21 14:13:48 2001 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Mon, 21 May 2001 16:13:48 -0500 Subject: [mapserver-users] Demo Application on PWS Message-ID: <3DFF131E4E6D2D4198CDD758F35A53536E3C7A@postoffice.GASAI.Com> Hello List, I'm brand-new to mapserver and just trying to get things up and running. I'm having a hard time getting the demo application to run. Matt Wilke forwarded my note to the list last week, but I only received one response... I thought I'd try to clarify the problem. Here are my hardware / software particulars: MapServer version 3.3.011 (windows binary) IE 5.5 Windows NT, SP 6a MS Personal Web Server I'm trying to set up the demonstration application (ms_demo.tar.gz) that is on the web-site. I have followed the instructions. I can bring up the demo_init.html with no problem, however, when I hit the "Initialize" button, I get a page with the following error: "The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:" There is nothing after this. Does anyone know if MapServer runs on PWS? I'm appending the map file below... Help is much appreciated. Cheers! Chip Chip Hankley #demo.map # # Start of map file # NAME DEMO STATUS ON SIZE 600 600 SHADESET symbols\shade.sym MARKERSET symbols\marker.sym LINESET symbols\line.sym EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897 UNITS METERS SHAPEPATH "data" IMAGECOLOR 255 255 255 # # Projection definition, consult the PROJ.4 documentation for parameter discussion # #PROJECTION # "proj=utm" # "ellps=GRS80" # "zone=15" # "north" # "no_defs" #END # # Start of web interface definition # WEB HEADER demo_header.html TEMPLATE demo.html FOOTER demo_footer.html MINSCALE 1000 MAXSCALE 1550000 IMAGEPATH "C:\Inetpub\wwwroot\tmp\" IMAGEURL "/tmp/" # LOG "demo.log" END QUERYMAP SIZE 200 200 STATUS ON STYLE HILITE COLOR 255 0 0 END # # Start of reference map # REFERENCE IMAGE graphics\reference.gif EXTENT 393234.393701263 5205405.16440722 495769.579718949 5307959.02579127 SIZE 120 120 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END # # Start of legend # LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 255 255 255 SIZE tiny END STYLE 1 SIZE 50 2 COLOR 255 255 255 UNITS MILES INTERVALS 1 TRANSPARENT TRUE STATUS TRUE END # # Start of layer definitions # LAYER NAME county TYPE POLYGON STATUS DEFAULT DATA ctybdpy2 CLASSITEM 'cty_name' CLASS EXPRESSION 'Itasca' OUTLINECOLOR 128 128 128 COLOR 225 225 185 END CLASS # every other county in the state EXPRESSION /./ OUTLINECOLOR 128 128 128 COLOR 255 255 255 END END LAYER NAME cities TYPE POLYGON DATA mcd90py2 STATUS ON CLASSITEM city_name CLASS NAME "Cities & Towns" EXPRESSION /./ COLOR 255 225 90 END END LAYER NAME townships TYPE POLYLINE DATA twprgpy3 STATUS ON CLASS SYMBOL 1 SIZE 2 NAME 'Townships' COLOR 181 181 145 END END LAYER NAME lakes TYPE POLYGON STATUS ON DATA lakespy2 CLASS NAME 'Lakes & Rivers' COLOR 49 117 185 END HEADER "lakespy2_header.html" FOOTER "lakespy2_footer.html" QUERY TEMPLATE "lakespy2.html" END TOLERANCE 3 END # lakes LAYER NAME streams TYPE LINE STATUS ON DATA dlgstln2 CLASS NAME "Streams" COLOR 49 117 185 END HEADER "dlgstln2_header.html" FOOTER "dlgstln2_footer.html" QUERY TEMPLATE "dlgstln2.html" END TOLERANCE 5 END # streams LAYER NAME roads MAXSCALE 300000 STATUS ON DATA ctyrdln3 TYPE LINE CLASS COLOR 0 0 0 END END # county roads LAYER NAME roads MAXSCALE 300000 STATUS ON DATA ctyrdln3 TYPE ANNOTATION LABELITEM "road_name" CLASS COLOR 255 255 255 SYMBOL 'county_highway_shield' LABEL MINFEATURESIZE 40 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 0 0 0 END END END # county road annotation LAYER NAME roads MAXSCALE 600000 STATUS ON DATA majrdln3 TYPE LINE CLASS NAME "Roads" COLOR 0 0 0 END END # highways LAYER NAME roads MAXSCALE 600000 STATUS ON DATA majrdln3 TYPE ANNOTATION LABELITEM "road_num" CLASSITEM "road_class" CLASS EXPRESSION "3" COLOR 0 0 0 # dummy color SYMBOL 'state_highway_shield' LABEL MINFEATURESIZE 50 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 0 0 0 END END CLASS EXPRESSION "2" COLOR 0 0 0 # dummy color SYMBOL 'us_highway_shield' LABEL MINFEATURESIZE 50 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 0 0 0 END END CLASS EXPRESSION "1" COLOR 0 0 0 # dummy color SYMBOL 'interstate_shield' LABEL MINFEATURESIZE 50 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 255 255 255 END END END # highway annotation LAYER NAME cities TYPE ANNOTATION DATA mcd90py2 STATUS ON LABELITEM "city_name" CLASSITEM "city_name" LABELMAXSCALE 500000 CLASS EXPRESSION /./ COLOR -1 -1 -1 LABEL COLOR 0 0 0 SHADOWCOLOR 218 218 218 SHADOWSIZE 2 2 TYPE BITMAP SIZE MEDIUM POSITION CC PARTIALS FALSE BUFFER 2 END END END END # Map File From steve.lime at dnr.state.mn.us Mon May 21 14:34:14 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 21 May 2001 16:34:14 -0500 Subject: [mapserver-users] Demo Application on PWS Message-ID: It should run on any web server capable of CGI. Why not use a real web server like apache or something else capable of handling beefier web apps? Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Hankley, Chip" 05/21/01 04:13PM >>> Hello List, I'm brand-new to mapserver and just trying to get things up and running. I'm having a hard time getting the demo application to run. Matt Wilke forwarded my note to the list last week, but I only received one response... I thought I'd try to clarify the problem. Here are my hardware / software particulars: MapServer version 3.3.011 (windows binary) IE 5.5 Windows NT, SP 6a MS Personal Web Server I'm trying to set up the demonstration application (ms_demo.tar.gz) that is on the web-site. I have followed the instructions. I can bring up the demo_init.html with no problem, however, when I hit the "Initialize" button, I get a page with the following error: "The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:" There is nothing after this. Does anyone know if MapServer runs on PWS? I'm appending the map file below... Help is much appreciated. Cheers! Chip Chip Hankley #demo.map # # Start of map file # NAME DEMO STATUS ON SIZE 600 600 SHADESET symbols\shade.sym MARKERSET symbols\marker.sym LINESET symbols\line.sym EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897 UNITS METERS SHAPEPATH "data" IMAGECOLOR 255 255 255 # # Projection definition, consult the PROJ.4 documentation for parameter discussion # #PROJECTION # "proj=utm" # "ellps=GRS80" # "zone=15" # "north" # "no_defs" #END # # Start of web interface definition # WEB HEADER demo_header.html TEMPLATE demo.html FOOTER demo_footer.html MINSCALE 1000 MAXSCALE 1550000 IMAGEPATH "C:\Inetpub\wwwroot\tmp\" IMAGEURL "/tmp/" # LOG "demo.log" END QUERYMAP SIZE 200 200 STATUS ON STYLE HILITE COLOR 255 0 0 END # # Start of reference map # REFERENCE IMAGE graphics\reference.gif EXTENT 393234.393701263 5205405.16440722 495769.579718949 5307959.02579127 SIZE 120 120 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END # # Start of legend # LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 255 255 255 SIZE tiny END STYLE 1 SIZE 50 2 COLOR 255 255 255 UNITS MILES INTERVALS 1 TRANSPARENT TRUE STATUS TRUE END # # Start of layer definitions # LAYER NAME county TYPE POLYGON STATUS DEFAULT DATA ctybdpy2 CLASSITEM 'cty_name' CLASS EXPRESSION 'Itasca' OUTLINECOLOR 128 128 128 COLOR 225 225 185 END CLASS # every other county in the state EXPRESSION /./ OUTLINECOLOR 128 128 128 COLOR 255 255 255 END END LAYER NAME cities TYPE POLYGON DATA mcd90py2 STATUS ON CLASSITEM city_name CLASS NAME "Cities & Towns" EXPRESSION /./ COLOR 255 225 90 END END LAYER NAME townships TYPE POLYLINE DATA twprgpy3 STATUS ON CLASS SYMBOL 1 SIZE 2 NAME 'Townships' COLOR 181 181 145 END END LAYER NAME lakes TYPE POLYGON STATUS ON DATA lakespy2 CLASS NAME 'Lakes & Rivers' COLOR 49 117 185 END HEADER "lakespy2_header.html" FOOTER "lakespy2_footer.html" QUERY TEMPLATE "lakespy2.html" END TOLERANCE 3 END # lakes LAYER NAME streams TYPE LINE STATUS ON DATA dlgstln2 CLASS NAME "Streams" COLOR 49 117 185 END HEADER "dlgstln2_header.html" FOOTER "dlgstln2_footer.html" QUERY TEMPLATE "dlgstln2.html" END TOLERANCE 5 END # streams LAYER NAME roads MAXSCALE 300000 STATUS ON DATA ctyrdln3 TYPE LINE CLASS COLOR 0 0 0 END END # county roads LAYER NAME roads MAXSCALE 300000 STATUS ON DATA ctyrdln3 TYPE ANNOTATION LABELITEM "road_name" CLASS COLOR 255 255 255 SYMBOL 'county_highway_shield' LABEL MINFEATURESIZE 40 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 0 0 0 END END END # county road annotation LAYER NAME roads MAXSCALE 600000 STATUS ON DATA majrdln3 TYPE LINE CLASS NAME "Roads" COLOR 0 0 0 END END # highways LAYER NAME roads MAXSCALE 600000 STATUS ON DATA majrdln3 TYPE ANNOTATION LABELITEM "road_num" CLASSITEM "road_class" CLASS EXPRESSION "3" COLOR 0 0 0 # dummy color SYMBOL 'state_highway_shield' LABEL MINFEATURESIZE 50 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 0 0 0 END END CLASS EXPRESSION "2" COLOR 0 0 0 # dummy color SYMBOL 'us_highway_shield' LABEL MINFEATURESIZE 50 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 0 0 0 END END CLASS EXPRESSION "1" COLOR 0 0 0 # dummy color SYMBOL 'interstate_shield' LABEL MINFEATURESIZE 50 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 255 255 255 END END END # highway annotation LAYER NAME cities TYPE ANNOTATION DATA mcd90py2 STATUS ON LABELITEM "city_name" CLASSITEM "city_name" LABELMAXSCALE 500000 CLASS EXPRESSION /./ COLOR -1 -1 -1 LABEL COLOR 0 0 0 SHADOWCOLOR 218 218 218 SHADOWSIZE 2 2 TYPE BITMAP SIZE MEDIUM POSITION CC PARTIALS FALSE BUFFER 2 END END END END # Map File From wgwallace at students.wisc.edu Mon May 21 15:14:58 2001 From: wgwallace at students.wisc.edu (Woody Wallace) Date: Mon, 21 May 2001 17:14:58 -0500 Subject: [mapserver-users] querymaps Message-ID: <3B099362.251F49B@students.wisc.edu> Hi. I know this has been discussed before and may be changing in v3.5. However, I was wondering if someone could clarify the follow things I have noticed in the querymap and nquerymap modes of the mapserv cgi. 1) Are query items required in the layer definitions of the query layers? 2) Even though I specify mapext, a querymap request returns a map that appears to be related to mapxy and buffer values. I suspect that it recenters the map to mapxy and sets the mapext to be mapxy +/- buffer. Is this the case? 3) Although querymap returns an image, nquerymap returns the following error: msSaveImage(): Unable to access file. (wliamap9904831364337.png) Why is this? I would prefer that mapserv processes the image in memory and then pipes it right back to browser. Is it trying to create a temp file? 4) I have the same problem with multiple labels that another person on the list was having. I realize there is a work around. However, I was wondering if this was a bug, or a problem with my .map file. Could it be that I'm requesting that it be drawn twice? 5) Producing the image in querymap mode is significantly slower than map mode. Obviously querying takes additional time, but it seems excessively slow for such a small layer (it contains a mere 10 features). Is there anyway I can improve performance? Here is the query I was using for the querymap request: http://144.92.235.164/cgi-bin/mapserv?mode=querymap&map=%2Fhome%2Fhttpd%2Fhtml%2Fof_mapserver%2Fwliamap.map&qlayer=seriesOutline&layer=seriesFilled&layer=hillshd&layer=great_lakes&layer=wi_water&layer=mcds&layer=dnrrail&layer=dnrrail2&layer=highways&layer=counties&layer=state&mapsize=460%20300&mapxy=564968+288907&buffer=10000 Here is the url to my .map file: http://144.92.235.164/of_mapserver/wliamap.map Thank you for your help. Woody Wallace Wisconsin State Cartographer's Office From imap at chesapeake.net Mon May 21 17:02:53 2001 From: imap at chesapeake.net (Chris Stuber) Date: Mon, 21 May 2001 20:02:53 -0400 Subject: [mapserver-users] Demo Application on PWS References: <3DFF131E4E6D2D4198CDD758F35A53536E3C7A@postoffice.GASAI.Com> Message-ID: <3B09ACAD.C1522D45@chesapeake.net> Chip, I am not sure if this will help, but take a look at this HOWTO... http://www.mapmining.com/HOWTO/MapServer_HOWTO_Win2k.htm -Chris From matthew.g.krusemark at co.multnomah.or.us Mon May 21 16:35:51 2001 From: matthew.g.krusemark at co.multnomah.or.us (KRUSEMARK Matthew G) Date: Mon, 21 May 2001 16:35:51 -0700 Subject: [mapserver-users] How-To Install GD, Freetype in Windows Message-ID: <9D07D10FA5CAD21192620008C7B14D2902088D94@isdexch-1.co.multnomah.or.us> Hi, I am wondering if any Windows admin/developers have put together a more-detailed FAQ or HOW-TO for installation of Freetype 2 and GD 1.8.4 in NT/Win2K with an Open Source build/compile methodology? Especially with regard to the Mapserver version 3.3.011 with PNG output? Is was no problem tracking down the dll's for libpng or libtiff, and the zlib dll came with the distribution of the current Win2K binary version of Mapserver. Thank you in advance,-matthew From Lars-goran.Edholm at sandviken.se Mon May 21 23:22:05 2001 From: Lars-goran.Edholm at sandviken.se (Lars-goran Edholm) Date: Tue, 22 May 2001 08:22:05 +0200 Subject: [mapserver-users] Mapserver and PWS Message-ID: Hi! I'm running Mapserver on PWS on Windows 95 and Windows 98 . In the beginning i also had some problems before i got it to work. When i look at your map-file i notice an errors like this: SHADESET symbols\shade.sym MARKERSET symbols\marker.sym LINESET symbols\line.sym should be SHADESET "symbols/shade.sym" MARKERSET "symbols/marker.sym" LINESET "symbols/line.sym" IMAGEPATH "C:\Inetpub\wwwroot\tmp\" should be IMAGEPATH "C:/Inetpub/wwwroot/tmp/" and so on Yoy have to change \ to / and use quotes ". Hope that this vill help you. Write me a line if you don't get it to work. Mvh Lars-G?ran Edholm tel 026/24 14 36 1:e byggnadsinspekt?r Bygg- och milj?kontoret 811 80 Sandviken lars-goran.edholm at sandviken.se From imap at chesapeake.net Tue May 22 00:26:12 2001 From: imap at chesapeake.net (Chris Stuber) Date: Tue, 22 May 2001 03:26:12 -0400 Subject: [mapserver-users] TIFF/GeoTIFF and World Files References: <3DFF131E4E6D2D4198CDD758F35A53536E3C7A@postoffice.GASAI.Com> Message-ID: <3B0A1494.72241233@chesapeake.net> MapServer Folks, Back on the topic of raster images... In the past, I have manually created a world file to go with my raster images. I ran across a dataset (actually it is software) that generates GeoTIFF output. The GeoTIFF file contains GeoKeyDirectories with the following keys/values defined for each image: KeyDirVersion: 1, KeyMaj/MinRev: 1/2 NumKeyDirKeys: 12 GTModelTypeGeoKey: 2 (ModelTypeGeographic) GTRasterTypeGeoKey: 1 (RasterPixelIsArea) GeographicTypeGeoKey: (value always NAD83 or WGS_84 [virtually the same datum]) GeogPrimeMeridianGeoKey: 8901 (PM_Greenwich) GeogAngularUnitsGeoKey: 9102 (Degrees) ProjectedCSTypeGeoKey: 32767 (UserDefinedVal) ProjectionGeoKey: 32767 (UserDefinedVal) ProjCoordTransGeoKey: 8 (currently always CT_LambertConfConic [could change]) ProjStdParallelGeoKey: (value = Standard Parallel closest to equator) ProjStdParallel2GeoKey: (value = Standard Parallel furtherest from equator) ProjNatOriginLatGeoKey: (value = Mid Latitude) ProjCenterLongGeoKey: (value = Central Meridian) Now, my question is... to what degree does mapserver support GeoTIFF? Will mapserver read these GeoTIFF attributes? Do I still need to create a world file to match the image? By default, no ".tfw" is generated from this software..... If a world file *is* required, can it computed from the GeoTIFF Header information?? There will be quite a few images, and I can't image having to manually create world files for each. Thanks, Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc. From bart at atsence.nl Tue May 22 01:49:21 2001 From: bart at atsence.nl (Bart van Heijningen) Date: Tue, 22 May 2001 10:49:21 +0200 Subject: [mapserver-users] Newbie question Message-ID: Hi all, I am new to the world of mapserver and was quite impressed by its features and the thingd I see in the gallery. Now I would like to make the demo run on WN Linux at my service provider. The result I get after compiling and installing accoding to the documentation is a lot of binary code after hitting the initialize button of the demo.\ You can see the result here: http://www.atsence.nl/mapserv/ms_demo/demo_init.html Is there anyone out there who thinks he or she knows what I could have done wrong? I for example kno that the servce provider has its own GD library/php4 etc installed, how can I compile the mapserver to use these libraries? Tia, Bart -------------- next part -------------- An HTML attachment was scrubbed... URL: From bertelli at charta.acme.com Tue May 22 03:44:37 2001 From: bertelli at charta.acme.com (Carlo A. Bertelli) Date: Tue, 22 May 2001 12:44:37 +0200 Subject: [mapserver-users] PDF output, what about? Message-ID: Hello fellows, GIF and PNG output are very good for mapserver, as the browser does not ask for a plug-in to see maps, but when you need printing, screen-resolution pictures are not so good. I think mapserver should use a PDF library to provide PDF output for printing purposes. Say, when you have the map you need (thematic mapping, scale, and so on), you would click on a 'PDF' button and presto! you get a print-ready image you could enhance or incorporate in documents. Ciao Carlo -------------------------------------------------------------------------- Carlo A. Bertelli Charta servizi e sistemi per il territorio e la storia ambientale srl Dipendenze del palazzo di Clemente Doria, vc. alla Chiesa della Maddalena 9/2 16124 Genova (Italy) tel. +39 010 2475439 fax +39 010 2475439 cell: 0333 2298345 e-mail: bertelli at charta.acme.com http://www.charta.acme.com -------------------------------------------------------------------------- From mschulz at webgis.de Tue May 22 05:16:06 2001 From: mschulz at webgis.de (Michael Schulz) Date: Tue, 22 May 2001 14:16:06 +0200 Subject: [mapserver-users] Newbie question References: Message-ID: <3B0A5886.372302FD@webgis.de> Hi Bart, i am not sure, but does your provider support self installed cgi's? What concerns webservers, i only know apache (the webserver on your site seems to be sambar?! When you stop loading the binary stuff and say show page source, at the bottom is a sambar standard error message) and there you have to define which directory can contain cgi's and who is allowed to execute them ..., by default this is often a directory called /cgi-bin. Perhaps you could check that. Cheers, Michael > Bart van Heijningen schrieb: > > Hi all, > I am new to the world of mapserver and was quite impressed by its > features and the thingd I see in the gallery. > Now I would like to make the demo run on WN Linux at my service > provider. > The result I get after compiling and installing accoding to the > documentation is a lot of binary code after hitting the initialize > button of the demo.\ > You can see the result here: > http://www.atsence.nl/mapserv/ms_demo/demo_init.html > > Is there anyone out there who thinks he or she knows what I could have > done wrong? > I for example kno that the servce provider has its own GD library/php4 > etc installed, how can I compile the mapserver to use these libraries? > > Tia, > > Bart -- ----------------------------------------------------------- Michael Schulz in medias res Dipl.-Geologe Gesellschaft f?r Informationstechnologie mbH Sautierstr. 38, 79104 Freiburg 0761 55695-95 (Fax 96) mschulz at webgis.de www.webgis.de From warmerdam at pobox.com Tue May 22 05:42:35 2001 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 22 May 2001 08:42:35 -0400 Subject: [mapserver-users] TIFF/GeoTIFF and World Files References: <3DFF131E4E6D2D4198CDD758F35A53536E3C7A@postoffice.GASAI.Com> <3B0A1494.72241233@chesapeake.net> Message-ID: <3B0A5EBB.A1D37814@pobox.com> Chris Stuber wrote: > > MapServer Folks, > > Back on the topic of raster images... In the past, I have manually created a > world file to go with my raster images. I ran across a dataset (actually it is > software) that generates GeoTIFF output. The GeoTIFF file contains > GeoKeyDirectories with the following keys/values defined for each image: > > KeyDirVersion: 1, KeyMaj/MinRev: 1/2 > NumKeyDirKeys: 12 > GTModelTypeGeoKey: 2 (ModelTypeGeographic) > GTRasterTypeGeoKey: 1 (RasterPixelIsArea) > GeographicTypeGeoKey: (value always NAD83 or WGS_84 [virtually the same > datum]) > GeogPrimeMeridianGeoKey: 8901 (PM_Greenwich) > GeogAngularUnitsGeoKey: 9102 (Degrees) > ProjectedCSTypeGeoKey: 32767 (UserDefinedVal) > ProjectionGeoKey: 32767 (UserDefinedVal) > ProjCoordTransGeoKey: 8 (currently always CT_LambertConfConic [could > change]) > ProjStdParallelGeoKey: (value = Standard Parallel closest to equator) > ProjStdParallel2GeoKey: (value = Standard Parallel furtherest from equator) > ProjNatOriginLatGeoKey: (value = Mid Latitude) > ProjCenterLongGeoKey: (value = Central Meridian) > > Now, my question is... to what degree does mapserver support GeoTIFF? Will > mapserver > read these GeoTIFF attributes? Do I still need to create a world file to match > the > image? By default, no ".tfw" is generated from this software..... If a > world file > *is* required, can it computed from the GeoTIFF Header information?? There > will be > quite a few images, and I can't image having to manually create world files for > each. Chris, My understanding is that MapServer's existing (pre 3.5) TIFF support will read the georeferencing coefficients from the .tif file if available, in which case no .tfw is required. However, it does not read the coordinate system definition, so you might need to define it using a PROJECTION section in your map file. If, for some reason, you want a .tfw file anyways and aren't sure how to create it by hand, the listgeo utility distributed with libgeotiff (http://www.remotesensing.org/geotiff/geotiff.html) includes the ability to create a .tfw file from a GeoTIFF file. In the CVS code my new GDAL code will even read the projection definition, removing the need for a user supplied conversion into PROJ.4 format. Best regards, ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From Brian.Fischer at co.sherburne.mn.us Tue May 22 06:26:35 2001 From: Brian.Fischer at co.sherburne.mn.us (Brian Fischer) Date: Tue, 22 May 2001 08:26:35 -0500 Subject: [mapserver-users] Permissions on Microsoft IIS web server Message-ID: Hi Mapserver users, I am setting up a site on Microsoft IIS 4.0. I was wondering if other mapserver users using IIS could confirm that the EVERYONE account on the webserver needs to have write permissions. Everything I have read in the documentation says the user account needs to have write access. Our IS department is worried about is security issues. Has anyone had problems with security using this setup? Is there any other account on the webserver that could be given write access, instead of the EVERYONE account? I have tried the EVERYONE account without write access and I get this error: saveImage(); Access to file denied. Thanks, Brian Brian Fischer GIS Coordinator, Sherburne County 13880 US Hwy 10 Elk River, MN 55330 ph. (763) 241-7006 From gmader at GeoAnalytics.com Tue May 22 06:25:39 2001 From: gmader at GeoAnalytics.com (Greg Mader) Date: Tue, 22 May 2001 08:25:39 -0500 Subject: [mapserver-users] PHP extension -rdynamic message Message-ID: Hi, Forgive me for the newbie question, but I am coming from the ArcIMS/IIS world. I get the following message after compiling Mapserver with PHP support. ------------------------- ----- IMPORTANT !!! ----- ------------------------- To use PHP extensions on your OS, you will need to recompile PHP. You need to edit the Makefile in the php3 directory and add -rdynamic to the start of the LDFLAGS line at the top of the Makefile. Then type: 'make clean; make' You can still go ahead and build the extensions now by typing 'make' in this directory. They just won't work correctly until you recompile your PHP. If you are compiling php as a module, you should also add -rdynamic to the start of the EXTRA_LDFLAGS in Apache Configuration file. Note that if you are using the APACI build mechanism you should make this change in the Configuration.tmpl file instead. ------------------------- ------------------------- ------------------------- I am using the apache and PHP rpms that came with Redhat 7.1 Do I need to do anything else? Is this error message telling me that Mapserv will not work with PHP? What do I need to do to fix this? Thanks, Greg Mader GIS Analyst, Chicago From winter at freytagberndt.at Tue May 22 06:43:31 2001 From: winter at freytagberndt.at (=?iso-8859-1?Q?Andr=E9as_M=2E_Winter?=) Date: Tue, 22 May 2001 15:43:31 +0200 Subject: [mapserver-users] PDF output, what about? Message-ID: <104C7BF941997546BAA68EC291625FBF02CBCA@webts.FuBWien.local> PDF is fine, SVG would be better when dealing with vector graphics on the web. have al look at http://www.karto.ethz.ch/cgi-bin/projection.pl and http://www.carto.net/papers/svg . first is a projection tool with pdf AND svg output, second a paper about the benefits of svg for cartography! regards andr? ____________________________________________ andr?as m. winter - freytag & berndt content management - new media & internet austria a1230 wien brunner str 69 tel +43.1.869.90.90.38 fax +43.1.869.90.90.62 mailto:winter at freytagberndt.at -----Urspr?ngliche Nachricht----- Von: Carlo A. Bertelli [mailto:bertelli at charta.acme.com] Gesendet: Dienstag, 22. Mai 2001 12:45 An: mapserver-users at lists.gis.umn.edu Betreff: [mapserver-users] PDF output, what about? Hello fellows, GIF and PNG output are very good for mapserver, as the browser does not ask for a plug-in to see maps, but when you need printing, screen-resolution pictures are not so good. I think mapserver should use a PDF library to provide PDF output for printing purposes. Say, when you have the map you need (thematic mapping, scale, and so on), you would click on a 'PDF' button and presto! you get a print-ready image you could enhance or incorporate in documents. Ciao Carlo ------------------------------------------------------------------------ -- Carlo A. Bertelli Charta servizi e sistemi per il territorio e la storia ambientale srl Dipendenze del palazzo di Clemente Doria, vc. alla Chiesa della Maddalena 9/2 16124 Genova (Italy) tel. +39 010 2475439 fax +39 010 2475439 cell: 0333 2298345 e-mail: bertelli at charta.acme.com http://www.charta.acme.com ------------------------------------------------------------------------ -- From kenboss at dilbert.dnr.state.mn.us Tue May 22 06:50:42 2001 From: kenboss at dilbert.dnr.state.mn.us (kenboss) Date: Tue, 22 May 2001 08:50:42 -0500 (CDT) Subject: [mapserver-users] PDF output, what about? Message-ID: <200105221350.IAA17883@philbert.dnr.state.mn.us> You can get there currently by using pdflib (http://www.pdflib.com) in combination with the mapserver/mapscript. pdflib is a full-featured set of open-source libraries distributed under the Aladdin Free Public License. It has lots of language bindings, making it particularly easy to integrate into mapscript-based applications. It should also be reasonably easy to integrate with mapserver cgi apps - just grab the needed parameters in your html template and roll them into a request fired through a "print" button on a form, though you'll likely want to do a bit of scripting in order to get a really nice-looking print version of your maps. Click on "print" in the Minnesota DNR quad map delivery application (http://maps.dnr.state.mn.us/tomo/) for an example. (If you don't know Minnesota, just use a search for "Grand Rapids" to get started from the front page). --Ken ============================================================================= Ken Boss Digital Image Analysis / Web Stuff Forestry Resource Assessment kenboss at dilbert.dnr.state.mn.us Minnesota Dept. of Natural Resources Voice: 218 327 4449 ext. 237 413 SE 13th Street Fax: 218 327 4517 Grand Rapids, MN 55744 USA www.ra.dnr.state.mn.us ============================================================================= > Hello fellows, > > GIF and PNG output are very good for mapserver, as the browser does not ask > for a plug-in to see maps, but when you need printing, screen-resolution > pictures are not so good. > > I think mapserver should use a PDF library to provide PDF output for > printing purposes. Say, when you have the map you need (thematic mapping, > scale, and so on), you would click on a 'PDF' button and presto! you get a > print-ready image you could enhance or incorporate in documents. > > Ciao > Carlo > > -------------------------------------------------------------------------- > Carlo A. Bertelli > Charta servizi e sistemi per il territorio e la storia ambientale srl > Dipendenze del palazzo di Clemente Doria, > vc. alla Chiesa della Maddalena 9/2 16124 Genova (Italy) > tel. +39 010 2475439 fax +39 010 2475439 cell: 0333 2298345 > e-mail: bertelli at charta.acme.com http://www.charta.acme.com > -------------------------------------------------------------------------- > > From kenboss at dilbert.dnr.state.mn.us Tue May 22 06:58:48 2001 From: kenboss at dilbert.dnr.state.mn.us (kenboss) Date: Tue, 22 May 2001 08:58:48 -0500 (CDT) Subject: [mapserver-users] TIFF/GeoTIFF and World Files Message-ID: <200105221358.IAA17894@philbert.dnr.state.mn.us> We use geotiffs in several mapserver apps here. We don't use .tfw files, and since all of our images and vector datasets are in the same projection system, we don't need PROJECTION sections in the mapfiles, either. --Ken > Chris Stuber wrote: > > > > MapServer Folks, > > > > Back on the topic of raster images... In the past, I have manually created a > > world file to go with my raster images. I ran across a dataset (actually it is > > software) that generates GeoTIFF output. The GeoTIFF file contains > > GeoKeyDirectories with the following keys/values defined for each image: > > > > KeyDirVersion: 1, KeyMaj/MinRev: 1/2 > > NumKeyDirKeys: 12 > > GTModelTypeGeoKey: 2 (ModelTypeGeographic) > > GTRasterTypeGeoKey: 1 (RasterPixelIsArea) > > GeographicTypeGeoKey: (value always NAD83 or WGS_84 [virtually the same > > datum]) > > GeogPrimeMeridianGeoKey: 8901 (PM_Greenwich) > > GeogAngularUnitsGeoKey: 9102 (Degrees) > > ProjectedCSTypeGeoKey: 32767 (UserDefinedVal) > > ProjectionGeoKey: 32767 (UserDefinedVal) > > ProjCoordTransGeoKey: 8 (currently always CT_LambertConfConic [could > > change]) > > ProjStdParallelGeoKey: (value = Standard Parallel closest to equator) > > ProjStdParallel2GeoKey: (value = Standard Parallel furtherest from equator) > > ProjNatOriginLatGeoKey: (value = Mid Latitude) > > ProjCenterLongGeoKey: (value = Central Meridian) > > > > Now, my question is... to what degree does mapserver support GeoTIFF? Will > > mapserver > > read these GeoTIFF attributes? Do I still need to create a world file to match > > the > > image? By default, no ".tfw" is generated from this software..... If a > > world file > > *is* required, can it computed from the GeoTIFF Header information?? There > > will be > > quite a few images, and I can't image having to manually create world files for > > each. > > Chris, > > My understanding is that MapServer's existing (pre 3.5) TIFF support will > read the georeferencing coefficients from the .tif file if available, in which > case no .tfw is required. However, it does not read the coordinate system > definition, so you might need to define it using a PROJECTION section in your > map file. If, for some reason, you want a .tfw file anyways and aren't sure > how to create it by hand, the listgeo utility distributed with libgeotiff > (http://www.remotesensing.org/geotiff/geotiff.html) includes the ability to > create a .tfw file from a GeoTIFF file. > > In the CVS code my new GDAL code will even read the projection definition, > removing the need for a user supplied conversion into PROJ.4 format. > > Best regards, > > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Tue May 22 07:14:01 2001 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Tue, 22 May 2001 10:14:01 -0400 Subject: [mapserver-users] RE: Mapserver 3.4 Ogr Message-ID: <2951561DB3DDD0118FEC00805FFE9805049423E6@s5-ccr-r1> Juan, OGR use will be officially available in the upcoming 3.5 version of MapServer. You can however obtain the development version of MapServer through CVS, this is the absolute latest version of MapServer, and it works just fine, it's just missing some features planned for 3.5 that haven't been added in yet. OGR and GDAL integration is mostly finished I think. Instructions on how to obtain the CVS version are available as a link from the MapServer download page. You can also try the nightly build version, although I don't know if they are currently being maintained. Also, there is no documentation for the 3.5/CVS series yet ... I'm working on it :) Here is an example on how to use OGR within the MapFile (This one uses a shapefile): CONNECTIONTYPE OGR CONNECTION "/home/mapdata/nac/shapefiles/pol75_p.shp" Hope this helps ... J.F. > ---------- > From: Geograf?a y Electr?nica, SA de > CV[SMTP:geografia at infosel.net.mx] > Sent: Monday, May 21, 2001 8:37 PM > To: jdoyon at nrcan.gc.ca > Subject: Mapserver 3.4 Ogr > > Hello, Jean-Francios. > > I've downloaded mapserver 3.3 and I'm making some tests. I think I now > have a grip of its syntax and processes. > > Now I want to try the ogr for tab files. But the doc you kindly wrote > doesn't include a reference to ogr. > Is ogr available in 3.4? > in 3.5? > Where can I find info on it? > > Thanks a lot and best regards. > > > --------------------------------- > Ing. Juan Pufleau C. > Geograf?a y Electr?nica, SA de CV > Aguascalientes, Mexico > --------------------------------- > From warmerdam at pobox.com Tue May 22 07:40:06 2001 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 22 May 2001 10:40:06 -0400 Subject: [mapserver-users] a question about tiffimages References: <3B0574CD.B6052632@pobox.com> <3B063020.7904AC84@chesapeake.net> Message-ID: <3B0A7A46.3141983C@pobox.com> Chris Stuber wrote: > > Frank, > > Are you saying... that GDAL 3.5 can project > and resample a TIFF raster? VERY COOL if it does. > Is the tiff support replacement capable of dealing with > a 24-bit TIFF, cause I don't think that libtiff will. Chris, MapServer in CVS (3.5?) with GDAL support enabled can reproject and resample TIFF (or any other GDAL supported format). Currently it is slow because I do the reprojection calculation for every pixel, but I will add polynomial approximations in the next few weeks. With this is should only be two or three times slower than direct processing of the raster, and overall map generation time shouldn't be too much higher. Looking through mapraster.c I don't see any drivers supporting 24bit images (not even JPEG which seems to assume greyscale). The current GDAL support assumes colormapped or greyscale, much like the old TIFF support. I could add 24bit RGB input support, but I would likely have to map it to a fixed color cube since it wouldn't be practical to do anything more intelligent on the fly. It should be pretty easy to use this, and this is the mechanism we used for 8bit display of 24bit images at PCI for years with relatively good results. > Yep, the new versions of GD (2.0 and 2.01) support the TrueColor > alpha channel/transparent blending, CopyResampled (copy > with resampling), and TrueColorToPalette functions. Supports > only JPG, PNG and WBMP formats... It would be nice if mapserver > were capable of producing 24-bit images... alot more could be > done with anti-aliasing with Truecolor. True, but it is a significant architectural change. Once/if Steve is ready for it, I would be happy to fixup the raster support to take advantage of it. Best regards, ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From wgwallace at students.wisc.edu Tue May 22 07:43:50 2001 From: wgwallace at students.wisc.edu (Woody Wallace) Date: Tue, 22 May 2001 09:43:50 -0500 Subject: [mapserver-users] RE: querymaps Message-ID: <3B0A7B26.7924414@students.wisc.edu> > 4) I have the same problem with multiple labels that another person on > the list was having. I realize there is a work around. However, I was > wondering if this was a bug, or a problem with my .map file. Could it > be that I'm requesting that it be drawn twice? > As a followup to question 4 I posed yesterday, I continued playing with the querymap request and layer combinations. It appears that: 1) using style=hilite: Mapserv draws all requested layers, the query layer (including the unhilited version of the higlited feature), then the hilited feature. Labels are drawn for all requested layers, the query layer, and then again for the hilited feature, resulting in duplicate labels for the hilited feature. 2) using style=selected: Mapserv draws all requested layers, then the selected feature. Labels are drawn for all requested layers, then the selected feature, resulting in a single instance of the label for that feature. 3) in both cases, if a layer is specified as a qlayer and a normal layer, it is only drawn as a qlayer. Otherwise, you could have tripple labels and there are none. Woody WI-SCO -------------- next part -------------- An HTML attachment was scrubbed... URL: From Brian.Fischer at co.sherburne.mn.us Tue May 22 08:20:23 2001 From: Brian.Fischer at co.sherburne.mn.us (Brian Fischer) Date: Tue, 22 May 2001 10:20:23 -0500 Subject: [mapserver-users] Permissions on Microsoft IIS web server Message-ID: Sorry I forgot to specify the folder I am talking about is the temp image folder. Does this folder need write access by the EVERYONE account? Thanks, Brian >>> "Brian Fischer" 05/22/01 08:26AM >>> Hi Mapserver users, I am setting up a site on Microsoft IIS 4.0. I was wondering if other mapserver users using IIS could confirm that the EVERYONE account on the webserver needs to have write permissions. Everything I have read in the documentation says the user account needs to have write access. Our IS department is worried about is security issues. Has anyone had problems with security using this setup? Is there any other account on the webserver that could be given write access, instead of the EVERYONE account? I have tried the EVERYONE account without write access and I get this error: saveImage(); Access to file denied. Thanks, Brian Brian Fischer GIS Coordinator, Sherburne County 13880 US Hwy 10 Elk River, MN 55330 ph. (763) 241-7006 From morissette at dmsolutions.ca Tue May 22 08:11:26 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 22 May 2001 11:11:26 -0400 Subject: [mapserver-users] PHP extension -rdynamic message References: Message-ID: <3B0A819E.A9C84727@dmsolutions.ca> Greg Mader wrote: > > Forgive me for the newbie question, but I am coming from the ArcIMS/IIS > world. I get the following message after compiling Mapserver with PHP > support. > ------------------------- > ----- IMPORTANT !!! ----- > ------------------------- > To use PHP extensions on your OS, you will need to recompile > PHP. > You need to edit the Makefile in the php3 directory and add > -rdynamic to the start of the LDFLAGS line at the top > ... Greg, This is not that bad a question... this message is very hard to understand and could be called misleading. It comes from the PHP3 script that was used as the base for the PHP part of MapServer's configure script... I think I should probably take it out of there. I haven't seen RH7.1 yet, but I'm almost sure that you can use the php_mapscript.so with the PHP RPM without any problems as long as you compiled using the --with-apxs switch. See the following FAQ, this should apply to RH7.1 as well: http://www2.dmsolutions.ca/mapserver/php_mapscript/php_mapscript_faq.html#4.1 -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From ed at topozone.com Tue May 22 09:58:31 2001 From: ed at topozone.com (Ed McNierney) Date: Tue, 22 May 2001 12:58:31 -0400 Subject: [mapserver-users] Permissions on Microsoft IIS web server Message-ID: <13858AA1A74F30419F319ACB66A9D122CC54@mercator.topozone.com> Brian - You do not need to give EVERYONE access. All IIS Web server requests are run under an NT security context. For anonymous access (i.e. public Web sites) there's no way to differentiate users, so everyone shares the same security account. This is normally the IUSR_machinename account (for example, on a server named FOO it would be the user account named IUSR_FOO). Everything done by IIS, including executing the MapServer CGI executable, is done as if it were being done by the IUSR_machinename user logged in and sitting at the console. The only user account that requires read/execute access to the entire MapServer site directories is the IUSR_machinename account. You will also want to leave full access for yourself and for administrators, of course. The "tmp" directory, where the images get written, is the only directory that requires the IUSR_machinename account to have write permission. The whole intent of the IUSR_machinename account is that it is ONLY used by anonymous Web users, and therefore is only given very tightly controlled access. It is a local machine account, not a domain account, so it can't possibly have access to resources outside the machine the Web server's on. It is not a member of any of the default groups (except EVERYONE) so it won't inadvertently be given access it shouldn't have. - Ed Ed McNierney Chief Mapmaker TopoZone.com (978) 251-4242 -----Original Message----- From: Brian Fischer [mailto:Brian.Fischer at co.sherburne.mn.us] Sent: Tuesday, May 22, 2001 11:20 AM To: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] Permissions on Microsoft IIS web server Sorry I forgot to specify the folder I am talking about is the temp image folder. Does this folder need write access by the EVERYONE account? Thanks, Brian >>> "Brian Fischer" 05/22/01 08:26AM >>> Hi Mapserver users, I am setting up a site on Microsoft IIS 4.0. I was wondering if other mapserver users using IIS could confirm that the EVERYONE account on the webserver needs to have write permissions. Everything I have read in the documentation says the user account needs to have write access. Our IS department is worried about is security issues. Has anyone had problems with security using this setup? Is there any other account on the webserver that could be given write access, instead of the EVERYONE account? I have tried the EVERYONE account without write access and I get this error: saveImage(); Access to file denied. Thanks, Brian Brian Fischer GIS Coordinator, Sherburne County 13880 US Hwy 10 Elk River, MN 55330 ph. (763) 241-7006 From vieglais at ukans.edu Tue May 22 10:27:05 2001 From: vieglais at ukans.edu (Dave Vieglais) Date: Tue, 22 May 2001 12:27:05 -0500 Subject: [mapserver-users] Permissions on Microsoft IIS web server In-Reply-To: Message-ID: Mapserver.exe is run in the security context of the IUSR_xxx (defaults to IUSR_machine name) account. Read and Write needs to be enabled for the temp folder for that user, since that user is trying to write to the temp directory. There should be no need to set it for "everyone" and is definately not recommended. cheers, Dave V. >-----Original Message----- >From: owner-mapserver-users at lists.gis.umn.edu >[mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Brian >Fischer >Sent: Tuesday, May 22, 2001 10:20 AM >To: mapserver-users at lists.gis.umn.edu >Subject: Re: [mapserver-users] Permissions on Microsoft IIS web server > > >Sorry I forgot to specify the folder I am talking about is the >temp image folder. Does this folder need write access by the >EVERYONE account? > >Thanks, >Brian > >>>> "Brian Fischer" 05/22/01 08:26AM >>> >Hi Mapserver users, > >I am setting up a site on Microsoft IIS 4.0. I was wondering if >other mapserver users using IIS could confirm that the EVERYONE >account on the webserver needs to have write permissions. >Everything I have read in the documentation says the user account >needs to have write access. Our IS department is worried about is >security issues. Has anyone had problems with security using this >setup? Is there any other account on the webserver that could be >given write access, instead of the EVERYONE account? > >I have tried the EVERYONE account without write access and I get >this error: saveImage(); Access to file denied. > > >Thanks, >Brian > > > >Brian Fischer >GIS Coordinator, Sherburne County >13880 US Hwy 10 >Elk River, MN 55330 >ph. (763) 241-7006 > > From andreag at geoplan.ufl.edu Tue May 22 13:07:51 2001 From: andreag at geoplan.ufl.edu (Andrea Goethals) Date: Tue, 22 May 2001 16:07:51 -0400 Subject: [mapserver-users] ArcSDE 8.1 for Linux Message-ID: <3B0AC717.A71096D5@geoplan.ufl.edu> Hi List, I have ArcSDE 8.1 which theoretically runs on Linux. I wanted to try it with mapserver to try to take advantage of the spatial analysis you can do with ArcSDE's C or Java APIs. I installed the client libraries on my machine but am having trouble compiling Mapserver with it. From what I can tell of my configure script (from mapserver 3.3.011) it is expecting ArcSDE to be version 8.0. I downloaded the mapserver nightly build and it appears that the newer configure script expects version 8.0 too. Anyone have some experience and/or suggestions for how to compile this? Thanks, Andrea -- @-------------------------@ | Andrea Goethals | | andreag at geoplan.ufl.edu | | GeoPlan Center | | University of Florida | @-------------------------@ From matthew.g.krusemark at co.multnomah.or.us Tue May 22 13:12:28 2001 From: matthew.g.krusemark at co.multnomah.or.us (KRUSEMARK Matthew G) Date: Tue, 22 May 2001 13:12:28 -0700 Subject: [mapserver-users] Permissions on Microsoft IIS web server Message-ID: <9D07D10FA5CAD21192620008C7B14D2902088D9B@isdexch-1.co.multnomah.or.us> I did notice that is was documented to set permissions for Everyone in the "HOW-TO - install for Win2K" doc: http://www.mapmining.com/HOWTO/MapServer_HOWTO_Win2k.htm It might just need an update to be set to the IUSR_ account methodology in the MDP. -matthew -----Original Message----- From: Dave Vieglais [mailto:vieglais at ukans.edu] Sent: Tuesday, May 22, 2001 10:27 AM To: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] Permissions on Microsoft IIS web server Mapserver.exe is run in the security context of the IUSR_xxx (defaults to IUSR_machine name) account. Read and Write needs to be enabled for the temp folder for that user, since that user is trying to write to the temp directory. There should be no need to set it for "everyone" and is definately not recommended. cheers, Dave V. >-----Original Message----- >From: owner-mapserver-users at lists.gis.umn.edu >[mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Brian >Fischer >Sent: Tuesday, May 22, 2001 10:20 AM >To: mapserver-users at lists.gis.umn.edu >Subject: Re: [mapserver-users] Permissions on Microsoft IIS web server > > >Sorry I forgot to specify the folder I am talking about is the >temp image folder. Does this folder need write access by the >EVERYONE account? > >Thanks, >Brian > >>>> "Brian Fischer" 05/22/01 08:26AM >>> >Hi Mapserver users, > >I am setting up a site on Microsoft IIS 4.0. I was wondering if >other mapserver users using IIS could confirm that the EVERYONE >account on the webserver needs to have write permissions. >Everything I have read in the documentation says the user account >needs to have write access. Our IS department is worried about is >security issues. Has anyone had problems with security using this >setup? Is there any other account on the webserver that could be >given write access, instead of the EVERYONE account? > >I have tried the EVERYONE account without write access and I get >this error: saveImage(); Access to file denied. > > >Thanks, >Brian > > > >Brian Fischer >GIS Coordinator, Sherburne County >13880 US Hwy 10 >Elk River, MN 55330 >ph. (763) 241-7006 > > From andreag at geoplan.ufl.edu Tue May 22 14:42:29 2001 From: andreag at geoplan.ufl.edu (Andrea Goethals) Date: Tue, 22 May 2001 17:42:29 -0400 Subject: [mapserver-users] ArcSDE 8.1 for Linux References: <2951561DB3DDD0118FEC00805FFE9805049423F3@s5-ccr-r1> Message-ID: <3B0ADD45.7F1C0FBE@geoplan.ufl.edu> Yes, the whole system. I think that it is impossible to find this out from the ESRI site, but being a university, we get all the ESRI software sent to us, and version 8.1 is supposed to run on Red Hat 6.2 or 'better'. Andrea > > Andrea, > > It runs on Linux ? The whole system, or just the client Librairies ? > > This is wonderfull news! > > J.F. > > > ---------- > > From: Andrea Goethals[SMTP:andreag at geoplan.ufl.edu] > > Sent: Tuesday, May 22, 2001 4:07 PM > > To: mapserver-users at lists.gis.umn.edu > > Subject: [mapserver-users] ArcSDE 8.1 for Linux > > > > Hi List, > > > > I have ArcSDE 8.1 which theoretically runs on Linux. I wanted to try it > > with > > mapserver to try to take advantage of the spatial analysis you can do > > with > > ArcSDE's C or Java APIs. I installed the client libraries on my machine > > but > > am having trouble compiling Mapserver with it. From what I can tell of > > my > > configure script (from mapserver 3.3.011) it is expecting ArcSDE to be > > version 8.0. > > I downloaded the mapserver nightly build and it appears that the newer > > configure > > script expects version 8.0 too. > > > > Anyone have some experience and/or suggestions for how to compile this? > > > > Thanks, > > Andrea > > From yecarrillo at hotmail.com Tue May 22 17:56:35 2001 From: yecarrillo at hotmail.com (Eduin Yesid Carrillo) Date: Tue, 22 May 2001 19:56:35 -0500 Subject: [mapserver-users] How-To Install GD, Freetype in Windows Message-ID: Look here: http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/0105/msg00133.html ---------------------------- Eduin Yesid Carrillo Ingeniero Civil CIUDAD DIGITAL Central de Informaci?n Regional Georefenciada Bucaramanga - Colombia yecarrillo at hotmail.com yecarrillo at condorito.uis.edu.co #ICQ 14323531 >From: KRUSEMARK Matthew G >To: "'mapserver-users at lists.gis.umn.edu'" > >Subject: [mapserver-users] How-To Install GD, Freetype in Windows >Date: Mon, 21 May 2001 16:35:51 -0700 > >Hi, > >I am wondering if any Windows admin/developers have put together a >more-detailed FAQ or HOW-TO for installation of Freetype 2 and GD 1.8.4 in >NT/Win2K with an Open Source build/compile methodology? Especially with >regard to the Mapserver version 3.3.011 with PNG output? > >Is was no problem tracking down the dll's for libpng or libtiff, and the >zlib dll came with the distribution of the current Win2K binary version of >Mapserver. > >Thank you in advance,-matthew > _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From ludovic at siterra.com Tue May 22 18:17:34 2001 From: ludovic at siterra.com (Ludovic Tenant) Date: Tue, 22 May 2001 18:17:34 -0700 Subject: [mapserver-users] installing mapscript with perl Message-ID: <5AFB399763BEAD4F8DBBB8FDA4F0CAA709B941@genoa.xippix.local> I've successfully build Mapserver on my Windows2000 environment (without all the options like freetype, Proj4...). Then I needed to build mapscript using Perl, but the compilation didn't work because the "perlvars" folder doesn't exist. This is probably because the Windows makefile doesn't create it. So, if anyone has some idea about that, or even an example of Windows makefile which actually create the "perlvars" folder, that would be a great help for me. Thanks, Ludovic From gmader at GeoAnalytics.com Tue May 22 18:43:06 2001 From: gmader at GeoAnalytics.com (Greg Mader) Date: Tue, 22 May 2001 20:43:06 -0500 Subject: [mapserver-users] ArcSDE 8.1 for Linux Message-ID: Hi Andrea, Wow, can you send me any info on this or post it to the list? What RDBMSs does it work with? I am guessing Oracle, Sybase, Informix, and maybe DB2? I have a client that really needs to hear this. Please give us more information. Thanks, Greg Mader GIS Analyst, Chicago, IL -----Original Message----- From: Andrea Goethals To: Doyon, Jean-Francois Cc: mapserver-users at lists.gis.umn.edu Sent: 5/22/01 4:42 PM Subject: Re: [mapserver-users] ArcSDE 8.1 for Linux Yes, the whole system. I think that it is impossible to find this out from the ESRI site, but being a university, we get all the ESRI software sent to us, and version 8.1 is supposed to run on Red Hat 6.2 or 'better'. Andrea > > Andrea, > > It runs on Linux ? The whole system, or just the client Librairies ? > > This is wonderfull news! > > J.F. > > > ---------- > > From: Andrea Goethals[SMTP:andreag at geoplan.ufl.edu] > > Sent: Tuesday, May 22, 2001 4:07 PM > > To: mapserver-users at lists.gis.umn.edu > > Subject: [mapserver-users] ArcSDE 8.1 for Linux > > > > Hi List, > > > > I have ArcSDE 8.1 which theoretically runs on Linux. I wanted to try it > > with > > mapserver to try to take advantage of the spatial analysis you can do > > with > > ArcSDE's C or Java APIs. I installed the client libraries on my machine > > but > > am having trouble compiling Mapserver with it. From what I can tell of > > my > > configure script (from mapserver 3.3.011) it is expecting ArcSDE to be > > version 8.0. > > I downloaded the mapserver nightly build and it appears that the newer > > configure > > script expects version 8.0 too. > > > > Anyone have some experience and/or suggestions for how to compile this? > > > > Thanks, > > Andrea > > From imap at chesapeake.net Wed May 23 01:33:40 2001 From: imap at chesapeake.net (Chris Stuber) Date: Wed, 23 May 2001 04:33:40 -0400 Subject: [mapserver-users] Permissions on Microsoft IIS web server References: <9D07D10FA5CAD21192620008C7B14D2902088D9B@isdexch-1.co.multnomah.or.us> Message-ID: <3B0B75E4.CB63D04A@chesapeake.net> OK, I made the correction to that document. -Chris KRUSEMARK Matthew G wrote: > > I did notice that is was documented to set permissions for Everyone in the > "HOW-TO - install for Win2K" doc: > > http://www.mapmining.com/HOWTO/MapServer_HOWTO_Win2k.htm > > It might just need an update to be set to the IUSR_ account methodology in > the MDP. > > -matthew > > -----Original Message----- > From: Dave Vieglais [mailto:vieglais at ukans.edu] > Sent: Tuesday, May 22, 2001 10:27 AM > To: mapserver-users at lists.gis.umn.edu > Subject: RE: [mapserver-users] Permissions on Microsoft IIS web server > > Mapserver.exe is run in the security context of the IUSR_xxx (defaults to > IUSR_machine name) account. Read and Write needs to be enabled for the > temp folder for that user, since that user is trying to write to the temp > directory. There should be no need to set it for "everyone" and is > definately not recommended. > > cheers, > Dave V. > > >-----Original Message----- > >From: owner-mapserver-users at lists.gis.umn.edu > >[mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Brian > >Fischer > >Sent: Tuesday, May 22, 2001 10:20 AM > >To: mapserver-users at lists.gis.umn.edu > >Subject: Re: [mapserver-users] Permissions on Microsoft IIS web server > > > > > >Sorry I forgot to specify the folder I am talking about is the > >temp image folder. Does this folder need write access by the > >EVERYONE account? > > > >Thanks, > >Brian > > > >>>> "Brian Fischer" 05/22/01 08:26AM >>> > >Hi Mapserver users, > > > >I am setting up a site on Microsoft IIS 4.0. I was wondering if > >other mapserver users using IIS could confirm that the EVERYONE > >account on the webserver needs to have write permissions. > >Everything I have read in the documentation says the user account > >needs to have write access. Our IS department is worried about is > >security issues. Has anyone had problems with security using this > >setup? Is there any other account on the webserver that could be > >given write access, instead of the EVERYONE account? > > > >I have tried the EVERYONE account without write access and I get > >this error: saveImage(); Access to file denied. > > > > > >Thanks, > >Brian > > > > > > > >Brian Fischer > >GIS Coordinator, Sherburne County > >13880 US Hwy 10 > >Elk River, MN 55330 > >ph. (763) 241-7006 > > > > From LBallard at YesVirginia.org Wed May 23 06:13:23 2001 From: LBallard at YesVirginia.org (Ballard,Lowell) Date: Wed, 23 May 2001 09:13:23 -0400 Subject: [mapserver-users] ArcSDE 8.1 for Linux Message-ID: <509989F9E1D38D47ADA73ED9CF5BF32A16CACD@communications> My understanding is that it's just the client libraries that are available. I have heard, unofficially, that full-blown Linux versions do exist but are not released. The best thing to do is provide feedback to your ESRI representatives. It will be a great solution once released (since Oracle and all other major RDBMS packages run on Linux). They will be on the disc labeled ArcSDE Client in a folder called red_hat_linux in your ArcGIS 8.1 box. The current Mapserv won't compile as-is with 8.1 client libs but Steve said he was going to work on it so....it's on the way. Lowell Ballard Unix/Database Administrator Virginia Economic Development Partnership 901 E. Byrd St., Richmond, Va. 23218 http://gis.vedp.org From AWOOLEY at mountainland.org Wed May 23 06:18:36 2001 From: AWOOLEY at mountainland.org (ANDREW WOOLEY) Date: Wed, 23 May 2001 07:18:36 -0600 Subject: [mapserver-users] PDF output, what about? Message-ID: I am looking for this very solution. The ToMo example is exactly what I would like to try on my site. I am new to mapserver, but part of the reason I am doing any map serving is to allow some of my planners that are offsite print maps that they can customize. Up to this point, I had resigned myself to the supposition that they would have to print a web map, but if a PDF or some other vector format is possible, I would really love to learn more. I am still working on learning how mapserver works and if someone could send me some example code that shows how to create a PDF with mapserver on Linux instead of a bitmap of some sort, I would really appreciate it. I am pretty familiar with PHP but am willing to learn anything. Thanks very much, Andrew Andrew Wooley GIS Operations Manager Mountainland Association of Governments Orem, UT phone: 801.229.3844 fax: 801.229.3801 email: awooley at mountainland.org >>> Andr?as M. Winter 05/22 7:43 AM >>> PDF is fine, SVG would be better when dealing with vector graphics on the web. have al look at http://www.karto.ethz.ch/cgi-bin/projection.pl and http://www.carto.net/papers/svg . first is a projection tool with pdf AND svg output, second a paper about the benefits of svg for cartography! regards andr? ____________________________________________ andr?as m. winter - freytag & berndt content management - new media & internet austria a1230 wien brunner str 69 tel +43.1.869.90.90.38 fax +43.1.869.90.90.62 mailto:winter at freytagberndt.at -----Urspr?ngliche Nachricht----- Von: Carlo A. Bertelli [mailto:bertelli at charta.acme.com] Gesendet: Dienstag, 22. Mai 2001 12:45 An: mapserver-users at lists.gis.umn.edu Betreff: [mapserver-users] PDF output, what about? Hello fellows, GIF and PNG output are very good for mapserver, as the browser does not ask for a plug-in to see maps, but when you need printing, screen-resolution pictures are not so good. I think mapserver should use a PDF library to provide PDF output for printing purposes. Say, when you have the map you need (thematic mapping, scale, and so on), you would click on a 'PDF' button and presto! you get a print-ready image you could enhance or incorporate in documents. Ciao Carlo ------------------------------------------------------------------------ -- Carlo A. Bertelli Charta servizi e sistemi per il territorio e la storia ambientale srl Dipendenze del palazzo di Clemente Doria, vc. alla Chiesa della Maddalena 9/2 16124 Genova (Italy) tel. +39 010 2475439 fax +39 010 2475439 cell: 0333 2298345 e-mail: bertelli at charta.acme.com http://www.charta.acme.com ------------------------------------------------------------------------ -- From yecarrillo at hotmail.com Wed May 23 07:23:39 2001 From: yecarrillo at hotmail.com (Eduin Yesid Carrillo) Date: Wed, 23 May 2001 09:23:39 -0500 Subject: [mapserver-users] ArcSDE 8.1 for Linux Message-ID: Check this links from ESRI: http://support.esri.com/kbase/View_Post.asp?id=99267 http://support.esri.com/kbase/View_Post.asp?id=95785 http://www.esri.com/events/uc/surveyanswers/q33.html ---------------------------- Eduin Yesid Carrillo Ingeniero Civil CIUDAD DIGITAL Central de Informaci?n Regional Georefenciada Bucaramanga - Colombia yecarrillo at hotmail.com yecarrillo at condorito.uis.edu.co #ICQ 14323531 >From: Greg Mader >To: "'Andrea Goethals '" >CC: "'mapserver-users at lists.gis.umn.edu '" > >Subject: RE: [mapserver-users] ArcSDE 8.1 for Linux >Date: Tue, 22 May 2001 20:43:06 -0500 > > Hi Andrea, > >Wow, can you send me any info on this or post it to the list? What RDBMSs >does it work with? I am guessing Oracle, Sybase, Informix, and maybe DB2? >I have a client that really needs to hear this. Please give us more >information. > > >Thanks, > >Greg Mader >GIS Analyst, >Chicago, IL > > >-----Original Message----- >From: Andrea Goethals >To: Doyon, Jean-Francois >Cc: mapserver-users at lists.gis.umn.edu >Sent: 5/22/01 4:42 PM >Subject: Re: [mapserver-users] ArcSDE 8.1 for Linux > >Yes, the whole system. I think that it is impossible to find this >out from the ESRI site, but being a university, we get all the ESRI >software sent to us, and version 8.1 is supposed to run on Red Hat 6.2 >or 'better'. > >Andrea > > > > > Andrea, > > > > It runs on Linux ? The whole system, or just the client Librairies ? > > > > This is wonderfull news! > > > > J.F. > > > > > ---------- > > > From: Andrea Goethals[SMTP:andreag at geoplan.ufl.edu] > > > Sent: Tuesday, May 22, 2001 4:07 PM > > > To: mapserver-users at lists.gis.umn.edu > > > Subject: [mapserver-users] ArcSDE 8.1 for Linux > > > > > > Hi List, > > > > > > I have ArcSDE 8.1 which theoretically runs on Linux. I wanted to try >it > > > with > > > mapserver to try to take advantage of the spatial analysis you can >do > > > with > > > ArcSDE's C or Java APIs. I installed the client libraries on my >machine > > > but > > > am having trouble compiling Mapserver with it. From what I can tell >of > > > my > > > configure script (from mapserver 3.3.011) it is expecting ArcSDE to >be > > > version 8.0. > > > I downloaded the mapserver nightly build and it appears that the >newer > > > configure > > > script expects version 8.0 too. > > > > > > Anyone have some experience and/or suggestions for how to compile >this? > > > > > > Thanks, > > > Andrea > > > _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From Chip.Hankley at GASAI.Com Wed May 23 07:52:53 2001 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Wed, 23 May 2001 09:52:53 -0500 Subject: [mapserver-users] Newbie Questions - the Demo Message-ID: <3DFF131E4E6D2D4198CDD758F35A53536E3C85@postoffice.GASAI.Com> Hi List, OK, I'm still trying to get the demo to work on PWS, and am making some progress. But have run into a few more problems. I'm new to web-mapping and CGI. Any help would be greatly appreciated. I am running: Win NT, SP6a PWS IE 5.5 ms33011 with PNG support 1ST PROBLEM: -------------------- Currently I've made it to the point where I was getting the following error: loadSymbol(): GD library error I'm guessing that I was getting this error b/c the demo uses GIF images and I have the PNG version of mapserv.exe. I tried converting the images to PNG files with the same name (in Photoshop), then I changed the references in the marker.sym file from GIF to PNG. When I did this, and hit the initialize button, it brought up the initial map. However, that's as far as I can go... if I try to pan, zoom, ANYTHING, I get a "The page cannot be found" error in IE. 2ND PROBLEM (Questions, really): -------------------- Throughout the documentation the term "library" is referred to... but I can't find any explanation of what this means (I assume it's a dll?). 1) The PNG support version came with a dll (zlib.dll). I put this is the cgi-bin directory with the mapserv.exe file... is this a sufficient location? 2) The GIF version of 33011 doesn't have a dll in the distribution... is this because of the license conflict with Unisys? It seems like the demo expects me to be using the GIF version of MapServer, is this right? Can the demo files be easily changed for PNG support? 3) How do I know if I have the right "library." Am I supposed to have several? In Windows, are these just dll's? Many Thanks! Chip Hankley From Chip.Hankley at GASAI.Com Wed May 23 07:59:31 2001 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Wed, 23 May 2001 09:59:31 -0500 Subject: [mapserver-users] Newbie Questions - the Demo, Revised Message-ID: <3DFF131E4E6D2D4198CDD758F35A53536E3C86@postoffice.GASAI.Com> Oops, I think I figured out the first thing. I hadn't put the ".exe" on mapserv in the template file. However, I still would like to know if there are other specific things I need to be aware of if I'm using the PNG version. I'm also still not clear about the libraries. Thanks! Chip ORIGNINAL MESSAGE: ************************************************ OK, I'm still trying to get the demo to work on PWS, and am making some progress. But have run into a few more problems. I'm new to web-mapping and CGI. Any help would be greatly appreciated. I am running: Win NT, SP6a PWS IE 5.5 ms33011 with PNG support 1ST PROBLEM: -------------------- Currently I've made it to the point where I was getting the following error: loadSymbol(): GD library error I'm guessing that I was getting this error b/c the demo uses GIF images and I have the PNG version of mapserv.exe. I tried converting the images to PNG files with the same name (in Photoshop), then I changed the references in the marker.sym file from GIF to PNG. When I did this, and hit the initialize button, it brought up the initial map. However, that's as far as I can go... if I try to pan, zoom, ANYTHING, I get a "The page cannot be found" error in IE. 2ND PROBLEM (Questions, really): -------------------- Throughout the documentation the term "library" is referred to... but I can't find any explanation of what this means (I assume it's a dll?). 1) The PNG support version came with a dll (zlib.dll). I put this is the cgi-bin directory with the mapserv.exe file... is this a sufficient location? 2) The GIF version of 33011 doesn't have a dll in the distribution... is this because of the license conflict with Unisys? It seems like the demo expects me to be using the GIF version of MapServer, is this right? Can the demo files be easily changed for PNG support? 3) How do I know if I have the right "library." Am I supposed to have several? In Windows, are these just dll's? Many Thanks! Chip Hankley From andreag at geoplan.ufl.edu Wed May 23 09:55:57 2001 From: andreag at geoplan.ufl.edu (Andrea Goethals) Date: Wed, 23 May 2001 12:55:57 -0400 Subject: [mapserver-users] ArcSDE 8.1 for Linux References: <509989F9E1D38D47ADA73ED9CF5BF32A16CACD@communications> Message-ID: <3B0BEB9D.5ED44546@geoplan.ufl.edu> You are right. Sorry if I got anybody's hopes up. The documentation that comes with it is very misleading. It says that they support all hardware platforms supported by Oracle, Informix and DB2 and tells you how to install it for Linux. But alas they did not provide the install directory for linux for the server, just the client libraries... Andrea > > My understanding is that it's just the client libraries that are available. > > I have heard, unofficially, that full-blown Linux versions do exist but are > not released. The best thing to do is provide feedback to your ESRI > representatives. It will be a great solution once released (since Oracle > and all other major RDBMS packages run on Linux). > > They will be on the disc labeled ArcSDE Client in a folder called > red_hat_linux in your ArcGIS 8.1 box. > > The current Mapserv won't compile as-is with 8.1 client libs but Steve said > he was going to work on it so....it's on the way. > > Lowell Ballard > Unix/Database Administrator > Virginia Economic Development Partnership > 901 E. Byrd St., Richmond, Va. 23218 > http://gis.vedp.org From Jciavarelli at city.kamloops.bc.ca Wed May 23 13:44:46 2001 From: Jciavarelli at city.kamloops.bc.ca (Janet Ciavarelli) Date: Wed, 23 May 2001 13:44:46 -0700 Subject: [mapserver-users] Mapscript - Adding shape to shapefile Message-ID: Hi, I am have a script where I create a point and then try to add the point to a shapefile. I keep getting the following error on the 'add' method for the shapefile Obj. Does anyone see what's wrong with my 'add' method in the code below? ===================================================================================================== #!c:/Perl/bin/perl use ENV; use Win32; use CGI; use mapscript; $query = CGI::new(); print $query->header(); if ($#ARGV == -1 && $ENV{'REQUEST_METHOD'} eq 'GET') { print "point b\n"; &GetGetArgs(); } $shapefile = new shapefileObj('potholes',$mapscript::MS_SHP_POINT); print "point w\n"; $point = new pointObj(); $point->{x} = $ar{mapx}; $point->{y} = $ar{mapy}; $shape = $point; print "$shape->{x}\n"; print "$shape->{y}\n"; $shapefile->add($shape); # This is the trouble line right here. It gives me the error message listed below $shapefile = ''; ============================================================================================ Usage: shapefileObj_add(self,shape); at c:/Perl/site/lib/mapscript.pm line 2386. I've tried putting 2 arguments as well, but that doesn't seem to help either. The mapscript documentation says it needs only 1 argument and that should be the shape. So I'm stuck. Any ideas? Janet. From morissette at dmsolutions.ca Wed May 23 14:52:46 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 23 May 2001 17:52:46 -0400 Subject: [mapserver-users] Mapscript - Adding shape to shapefile References: Message-ID: <3B0C312E.613C417@dmsolutions.ca> Janet Ciavarelli wrote: > > Hi, > I am have a script where I create a point and then try to add the point to a shapefile. I keep getting the following error on the 'add' method for the shapefile Obj. Does anyone see what's wrong with my 'add' method in the code below? > Janet, In MapScript, a shapeObj constituted of 1 or more lineObj, which are in turn constituted of a number of pointObj. So I think that to solve your problem you need to add your point into a lineObj, and then add the lineObj into the shapeObj ... and then pass the shape to the shapefileObj->add method... i.e. try this: $shapefile = new shapefileObj('potholes',$mapscript::MS_SHP_POINT); $point = new pointObj(); $point->{x} = $ar{mapx}; $point->{y} = $ar{mapy}; $line = new lineObj; $line->add($point); $shape = new shapeObj($mapscript::MS_SHP_POINT); $shape->add($line); $shapefile->add($shape); $shapefile = ''; -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From ludovic at siterra.com Wed May 23 17:09:43 2001 From: ludovic at siterra.com (Ludovic Tenant) Date: Wed, 23 May 2001 17:09:43 -0700 Subject: [mapserver-users] building mapscript with Perl on Win2000 Message-ID: <5AFB399763BEAD4F8DBBB8FDA4F0CAA709B945@genoa.xippix.local> Hi list, I have a hard time trying to build mapscript with Perl on Win2000 using VC++, and it seems only a very few users have succeed in it for now. I was wondering if it was possible to do that without having to change the makefile generated automatically by MakeMaker ( that would mean only add changes in Makefile.vc or Makefile.PL ). I will appreciate any tips, clue from users who actually succeed in that hard task ;-) Thanks Ludovic. From geografia at infosel.net.mx Wed May 23 17:34:32 2001 From: geografia at infosel.net.mx (Geografía y Electrónica, SA de CV) Date: Wed, 23 May 2001 19:34:32 -0500 Subject: [mapserver-users] Mapserver Search and Point Info In-Reply-To: <200105220029.TAA09453@lists.gis.umn.edu> Message-ID: <3.0.1.32.20010523193432.00f3db30@infosel.net.mx> Hi everybody. I just downloaded the example for mapserver, and I have a few issues. Can anybody answer these? 1.- I'll looking for an example for mapserver 3.4, with a 'Search' implementation (a string is given, and the map moves and zooms to the location of that item on the map.) 2.- Info window is ok for lines and regions, since it calculates the extents of the info window based on highlighted items. But for points, I get a blank info window with part of the point's .gif on a corner, I think that's because the extents are very small. How can I tell it to use a fixed zoom level, for that layer? 3.- I've noticed that every time a request is sent to mapserv, it reads the demo.map file again and again, allowing an updated file to be used, in case anything changes. But this is a time consuming process. Can it be skipped, so the file gets read once while launching/initializing, and not again for the session? Thanks a lot for your reply. --------------------------------- Ing. Juan Pufleau C. Geograf?a y Electr?nica, SA de CV Aguascalientes, Mexico --------------------------------- From teb at mallit.fr.umn.edu Wed May 23 21:41:17 2001 From: teb at mallit.fr.umn.edu (Thomas E. Burk) Date: Wed, 23 May 2001 23:41:17 -0500 Subject: [mapserver-users] [Fwd: Zoom to queried poly using PHP Mapscript] Message-ID: <3B0C90ED.DC74D4A2@mallit.fr.umn.edu> -------- Original Message -------- Subject: Zoom to queried poly using PHP Mapscript Date: Wed, 23 May 2001 16:27:26 -0700 From: "David Kriske" To: "'mapserver-info at lists.gis.umn.edu'" Can anyone provide me with info or a code snippet of how to implement a "zoom to extent" function using PHP Mapscript that would zoom to a queried polygon? Basically I am able to set up a querymap that, based on a click of the mouse, will highlight whatever polygon(s) the user clicks on. What I would like to do is not only highlight, but pan/zoom the map to the extent of the higlighted polygon(s). I know it is possible using the CGI version, but I can't seem to implement it in PHP Mapscript. How would one retrieve the extents of the highlighted polygons?? Thanks for any help you can provide. David * * * * * * * * * * * * * * * * * David L. Kriske Database Analyst, GIS Hilton Hotels Corporation 310.205.4602 mailto:david_kriske at hilton.com From gerry at cs.tamu.edu Wed May 23 21:49:11 2001 From: gerry at cs.tamu.edu (Gerry Creager N5JXS) Date: Wed, 23 May 2001 23:49:11 -0500 Subject: [mapserver-users] ArcSDE 8.1 for Linux References: <509989F9E1D38D47ADA73ED9CF5BF32A16CACD@communications> Message-ID: <3B0C92C7.46672C1A@cs.tamu.edu> "Ballard,Lowell" wrote: > > My understanding is that it's just the client libraries that are available. > > I have heard, unofficially, that full-blown Linux versions do exist but are > not released. The best thing to do is provide feedback to your ESRI > representatives. It will be a great solution once released (since Oracle > and all other major RDBMS packages run on Linux). > > They will be on the disc labeled ArcSDE Client in a folder called > red_hat_linux in your ArcGIS 8.1 box. > > The current Mapserv won't compile as-is with 8.1 client libs but Steve said > he was going to work on it so....it's on the way. I was assured last December at the OGC Technical Committee meeting that ArcGIS and ArcISM for Linux were to beta q1 or a2 this year for subsewuent release. Of course, I haven't seen anything yet to test, either. Gerry -- Gerry Creager -- gerry at cs.tamu.edu Network Engineering |Research focusing on Academy for Advanced Telecommunications |Satellite Geodesy and and Learning Technologies |Geodetic Control Texas A&M University 979.458.4020 (Phone) -- 979.847.8578 (Fax) From davidclough at ntlworld.com Wed May 23 22:49:26 2001 From: davidclough at ntlworld.com (david clough) Date: Thu, 24 May 2001 06:49:26 +0100 Subject: [mapserver-users] unsubscribe Message-ID: <001501c0e415$5572d8d0$0100a8c0@kray4> unsubscribe -------------- next part -------------- An HTML attachment was scrubbed... URL: From morissette at dmsolutions.ca Thu May 24 05:46:56 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 24 May 2001 08:46:56 -0400 Subject: [mapserver-users] [Fwd: Zoom to queried poly using PHP Mapscript] References: <3B0C90ED.DC74D4A2@mallit.fr.umn.edu> Message-ID: <3B0D02C0.857C18DD@dmsolutions.ca> "David Kriske" wrote: > > Can anyone provide me with info or a code snippet of how to implement a > "zoom to extent" function using PHP Mapscript that would zoom to a > queried > polygon? Basically I am able to set up a querymap that, based on a > click of > the mouse, will highlight whatever polygon(s) the user clicks on. What > I > would like to do is not only highlight, but pan/zoom the map to the > extent > of the higlighted polygon(s). I know it is possible using the CGI > version, > but I can't seem to implement it in PHP Mapscript. How would one > retrieve > the extents of the highlighted polygons?? > David, You can open the shapefiles that contain the selected polygons, read the extent of each selected shape, and use that to compute the MBR of all the selected polygons. Your code should look roughly like this (inspired of the function GMapDumpQueryResults() in the GMap PHP demo source code): // Perform query $query_res = $map->queryUsingPoint(...) // Scan all results and compute mbr of selected shapes $cur_layer = -1; for($i=0; $i<$query_res->numresults; $i++) { $result = $query_res->next(); if ($result->layer == -1) break; if ($cur_layer != $result->layer) { if ($cur_layer != -1) $shapefile->free(); $cur_layer = $result->layer; $layer = $map->getLayer($cur_layer); $shapefile=ms_newShapeFileObj($map->shapepath."/".$layer->data,-1); } $shp_ext = $shapefile->getExtent($result->shape); // $shp_ext is a rectObj... use it to compute MBR of selected // polygons ... } if ($cur_layer != -1) $shapefile->free(); -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From m_anderson14 at hotmail.com Thu May 24 14:14:46 2001 From: m_anderson14 at hotmail.com (Michael Anderson) Date: Thu, 24 May 2001 14:14:46 Subject: [mapserver-users] PDF output, what about? Message-ID: Andrew, I use a Python module called Reportlab (www.reportlab.com) to make pdfs. There is an example of the functionality at cegis1.cas.psu.edu/Centre. Hit the print button to print the map currently in the browser. You can enter a title, a short description, a legend, north arrow, and reference map. I'm not too good with graphics so it's not the prettiest map, but you can change the look with a template. I've gotten to the point where I know how to do everything but the map as vectors and the map is possible (except for imagery) but don't know when I'll get time to implement it. PHP also has a module for creating pdfs, but I've never used it. Mike Anderson Spatial Information Technologies, Inc. >From: "ANDREW WOOLEY" >To: >Subject: RE: [mapserver-users] PDF output, what about? >Date: Wed, 23 May 2001 07:18:36 -0600 > >I am looking for this very solution. The ToMo example is exactly what I >would like to try on my site. I am new to mapserver, but part of the >reason I am doing any map serving is to allow some of my planners that are >offsite print maps that they can customize. Up to this point, I had >resigned myself to the supposition that they would have to print a web map, >but if a PDF or some other vector format is possible, I would really love >to learn more. I am still working on learning how mapserver works and if >someone could send me some example code that shows how to create a PDF with >mapserver on Linux instead of a bitmap of some sort, I would really >appreciate it. I am pretty familiar with PHP but am willing to learn >anything. > >Thanks very much, > >Andrew > >Andrew Wooley >GIS Operations Manager >Mountainland Association of Governments >Orem, UT > >phone: 801.229.3844 >fax: 801.229.3801 >email: awooley at mountainland.org > > >>> Andr?as M. Winter 05/22 7:43 AM >>> >PDF is fine, SVG would be better when dealing with vector graphics on >the web. > >have al look at http://www.karto.ethz.ch/cgi-bin/projection.pl and >http://www.carto.net/papers/svg . first is a projection tool with pdf >AND svg output, second a paper about the benefits of svg for >cartography! > >regards > >andr? > >____________________________________________ >andr?as m. winter - freytag & berndt >content management - new media & internet >austria a1230 wien brunner str 69 >tel +43.1.869.90.90.38 >fax +43.1.869.90.90.62 >mailto:winter at freytagberndt.at > >-----Urspr?ngliche Nachricht----- >Von: Carlo A. Bertelli [mailto:bertelli at charta.acme.com] >Gesendet: Dienstag, 22. Mai 2001 12:45 >An: mapserver-users at lists.gis.umn.edu >Betreff: [mapserver-users] PDF output, what about? > > >Hello fellows, > >GIF and PNG output are very good for mapserver, as the browser does not >ask >for a plug-in to see maps, but when you need printing, screen-resolution >pictures are not so good. > >I think mapserver should use a PDF library to provide PDF output for >printing purposes. Say, when you have the map you need (thematic >mapping, >scale, and so on), you would click on a 'PDF' button and presto! you get >a >print-ready image you could enhance or incorporate in documents. > >Ciao > Carlo > >------------------------------------------------------------------------ >-- >Carlo A. Bertelli > Charta servizi e sistemi per il territorio e la storia ambientale >srl > Dipendenze del palazzo di Clemente Doria, > vc. alla Chiesa della Maddalena 9/2 16124 Genova >(Italy) > tel. +39 010 2475439 fax +39 010 2475439 cell: 0333 >2298345 > e-mail: bertelli at charta.acme.com http://www.charta.acme.com >------------------------------------------------------------------------ >-- > > > _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com From m_anderson14 at hotmail.com Thu May 24 15:42:52 2001 From: m_anderson14 at hotmail.com (Michael Anderson) Date: Thu, 24 May 2001 15:42:52 Subject: [mapserver-users] PDF output, what about? Message-ID: Sorry, I forgot it moved. Use cegis1.cas.psu.edu/BasePlatform/UI/Centre. It is also case sensitive for now. Mike >From: "Kieran J. Ames" >To: Michael Anderson >Subject: Re: [mapserver-users] PDF output, what about? >Date: Thu, 24 May 2001 11:25:13 -0400 > >Michael, >The link cegis1.cas.psu.edu/Centre did not work. (404) >Could you please repost the proper URL to the mapserver list? >Thanks very much. >Kieran > >Michael Anderson wrote: > > > Andrew, > > > > I use a Python module called Reportlab (www.reportlab.com) to make pdfs. > > There is an example of the functionality at cegis1.cas.psu.edu/Centre. >Hit > > the print button to print the map currently in the browser. You can >enter a > > title, a short description, a legend, north arrow, and reference map. >I'm > > not too good with graphics so it's not the prettiest map, but you can >change > > the look with a template. I've gotten to the point where I know how to >do > > everything but the map as vectors and the map is possible (except for > > imagery) but don't know when I'll get time to implement it. > > > > PHP also has a module for creating pdfs, but I've never used it. > > > > Mike Anderson > > Spatial Information Technologies, Inc. > > > > >From: "ANDREW WOOLEY" > > >To: > > >Subject: RE: [mapserver-users] PDF output, what about? > > >Date: Wed, 23 May 2001 07:18:36 -0600 > > > > > >I am looking for this very solution. The ToMo example is exactly what >I > > >would like to try on my site. I am new to mapserver, but part of the > > >reason I am doing any map serving is to allow some of my planners that >are > > >offsite print maps that they can customize. Up to this point, I had > > >resigned myself to the supposition that they would have to print a web >map, > > >but if a PDF or some other vector format is possible, I would really >love > > >to learn more. I am still working on learning how mapserver works and >if > > >someone could send me some example code that shows how to create a PDF >with > > >mapserver on Linux instead of a bitmap of some sort, I would really > > >appreciate it. I am pretty familiar with PHP but am willing to learn > > >anything. > > > > > >Thanks very much, > > > > > >Andrew > > > > > >Andrew Wooley > > >GIS Operations Manager > > >Mountainland Association of Governments > > >Orem, UT > > > > > >phone: 801.229.3844 > > >fax: 801.229.3801 > > >email: awooley at mountainland.org > > > > > > >>> Andr?as M. Winter 05/22 7:43 AM >>> > > >PDF is fine, SVG would be better when dealing with vector graphics on > > >the web. > > > > > >have al look at http://www.karto.ethz.ch/cgi-bin/projection.pl and > > >http://www.carto.net/papers/svg . first is a projection tool with pdf > > >AND svg output, second a paper about the benefits of svg for > > >cartography! > > > > > >regards > > > > > >andr? > > > > > >____________________________________________ > > >andr?as m. winter - freytag & berndt > > >content management - new media & internet > > >austria a1230 wien brunner str 69 > > >tel +43.1.869.90.90.38 > > >fax +43.1.869.90.90.62 > > >mailto:winter at freytagberndt.at > > > > > >-----Urspr?ngliche Nachricht----- > > >Von: Carlo A. Bertelli [mailto:bertelli at charta.acme.com] > > >Gesendet: Dienstag, 22. Mai 2001 12:45 > > >An: mapserver-users at lists.gis.umn.edu > > >Betreff: [mapserver-users] PDF output, what about? > > > > > > > > >Hello fellows, > > > > > >GIF and PNG output are very good for mapserver, as the browser does not > > >ask > > >for a plug-in to see maps, but when you need printing, >screen-resolution > > >pictures are not so good. > > > > > >I think mapserver should use a PDF library to provide PDF output for > > >printing purposes. Say, when you have the map you need (thematic > > >mapping, > > >scale, and so on), you would click on a 'PDF' button and presto! you >get > > >a > > >print-ready image you could enhance or incorporate in documents. > > > > > >Ciao > > > Carlo > > > > > > >------------------------------------------------------------------------ > > >-- > > >Carlo A. Bertelli > > > Charta servizi e sistemi per il territorio e la storia ambientale > > >srl > > > Dipendenze del palazzo di Clemente Doria, > > > vc. alla Chiesa della Maddalena 9/2 16124 Genova > > >(Italy) > > > tel. +39 010 2475439 fax +39 010 2475439 cell: 0333 > > >2298345 > > > e-mail: bertelli at charta.acme.com http://www.charta.acme.com > > > >------------------------------------------------------------------------ > > >-- > > > > > > > > > > > > > _________________________________________________________________ > > Get your FREE download of MSN Explorer at http://explorer.msn.com > _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com From Jciavarelli at city.kamloops.bc.ca Thu May 24 13:09:41 2001 From: Jciavarelli at city.kamloops.bc.ca (Janet Ciavarelli) Date: Thu, 24 May 2001 13:09:41 -0700 Subject: [mapserver-users] building mapscript with Perl on Win2000 Message-ID: Hi Ludovic, Here's how I did it in WinNT(see attached). Hope this helps. Janet. -------------- next part -------------- An embedded message was scrubbed... From: "Janet Ciavarelli" Subject: Re: [mapserver-users] Mapscript Perl examples - XBase.pm Date: Mon, 07 May 2001 14:01:17 -0700 Size: 69497 URL: From Jciavarelli at city.kamloops.bc.ca Thu May 24 14:24:10 2001 From: Jciavarelli at city.kamloops.bc.ca (Janet Ciavarelli) Date: Thu, 24 May 2001 14:24:10 -0700 Subject: [mapserver-users] PDF output, what about? Message-ID: So I've have a script that creates SHAPEfile now, however, there is no .dbf file. I figured that a blank .dbf would do but I get the following message: Error reading header of g:\apache~1\apache\cgi-bin\pothole7.dbf I'm just wondering what needs to be in the .dbf. Janet. From Jciavarelli at city.kamloops.bc.ca Thu May 24 14:28:15 2001 From: Jciavarelli at city.kamloops.bc.ca (Janet Ciavarelli) Date: Thu, 24 May 2001 14:28:15 -0700 Subject: [mapserver-users] SHAPE .dbf file header? Message-ID: So I have a script that creates a SHAPE file now, however, there is no .dbf file. I figured that a blank .dbf would do but I get the following message: Error reading header of g:\apache~1\apache\cgi-bin\pothole7.dbf I'm just wondering if anyone knows what needs to be in the .dbf? Janet. From BILLK at coj.net Thu May 24 08:50:38 2001 From: BILLK at coj.net (William B. Killingsworth) Date: Thu, 24 May 2001 11:50:38 -0400 Subject: [mapserver-users] PDF output, what about? Message-ID: Maybe we could get some examples posted on the list. I too would like to implement this very thing. William B. Killingsworth GIS Manager Planning and Development billk at coj.net >>> "ANDREW WOOLEY" 05/23/01 09:18AM >>> I am looking for this very solution. The ToMo example is exactly what I would like to try on my site. I am new to mapserver, but part of the reason I am doing any map serving is to allow some of my planners that are offsite print maps that they can customize. Up to this point, I had resigned myself to the supposition that they would have to print a web map, but if a PDF or some other vector format is possible, I would really love to learn more. I am still working on learning how mapserver works and if someone could send me some example code that shows how to create a PDF with mapserver on Linux instead of a bitmap of some sort, I would really appreciate it. I am pretty familiar with PHP but am willing to learn anything. Thanks very much, Andrew Andrew Wooley GIS Operations Manager Mountainland Association of Governments Orem, UT phone: 801.229.3844 fax: 801.229.3801 email: awooley at mountainland.org >>> Andr?as M. Winter 05/22 7:43 AM >>> PDF is fine, SVG would be better when dealing with vector graphics on the web. have al look at http://www.karto.ethz.ch/cgi-bin/projection.pl and http://www.carto.net/papers/svg . first is a projection tool with pdf AND svg output, second a paper about the benefits of svg for cartography! regards andr? ____________________________________________ andr?as m. winter - freytag & berndt content management - new media & internet austria a1230 wien brunner str 69 tel +43.1.869.90.90.38 fax +43.1.869.90.90.62 mailto:winter at freytagberndt.at -----Urspr?ngliche Nachricht----- Von: Carlo A. Bertelli [mailto:bertelli at charta.acme.com] Gesendet: Dienstag, 22. Mai 2001 12:45 An: mapserver-users at lists.gis.umn.edu Betreff: [mapserver-users] PDF output, what about? Hello fellows, GIF and PNG output are very good for mapserver, as the browser does not ask for a plug-in to see maps, but when you need printing, screen-resolution pictures are not so good. I think mapserver should use a PDF library to provide PDF output for printing purposes. Say, when you have the map you need (thematic mapping, scale, and so on), you would click on a 'PDF' button and presto! you get a print-ready image you could enhance or incorporate in documents. Ciao Carlo ------------------------------------------------------------------------ -- Carlo A. Bertelli Charta servizi e sistemi per il territorio e la storia ambientale srl Dipendenze del palazzo di Clemente Doria, vc. alla Chiesa della Maddalena 9/2 16124 Genova (Italy) tel. +39 010 2475439 fax +39 010 2475439 cell: 0333 2298345 e-mail: bertelli at charta.acme.com http://www.charta.acme.com ------------------------------------------------------------------------ -- From ycnyon at pd.jaring.my Thu May 24 23:39:53 2001 From: ycnyon at pd.jaring.my (nyon) Date: Fri, 25 May 2001 14:39:53 +0800 Subject: [mapserver-users] Fw: Displaying a TIN in Mapserver Message-ID: <006401c0e4e5$827c45c0$147a7ac0@tm.net.my> Hi, I created a TIN layer in Arcview 3d Analyst. What is the best way of putting this data in mapserver without losing the 'sharpness' ? Ideas that come to mind is to convert the TN to grid image or Erdas Lan. Nyon -------------- next part -------------- An HTML attachment was scrubbed... URL: From castro at recife.pe.gov.br Fri May 25 11:37:22 2001 From: castro at recife.pe.gov.br (Ronaldo Castro de Lima =?iso-8859-1?Q?J=FAnior?=) Date: Fri, 25 May 2001 15:37:22 -0300 Subject: [mapserver-users] gd1.8.4 Message-ID: <3B0EA661.449DF8AF@recife.pe.gov.br> Hi I installed Mapserver 3.3 in my linux Red Hat 6.2 with GD 1.8.4, but the demo didn't work: loadSymbol(): GD library error. This demo doesn't work with this GD version because it doesn't work with GIF. I don't understand why a new version doesn't accept file extensions from an earlier version. Is it true? I was looking for earlier versions of GD Lib to test my demo, and i found the 1.6 version but it was not 1.6 really. Inside the file there were 1.8 version files and the trouble was the same. Can you help me? Excuse my short english. Ronaldo Recife - Brasil . -------------- next part -------------- An HTML attachment was scrubbed... URL: From ludovic at siterra.com Fri May 25 12:12:06 2001 From: ludovic at siterra.com (Ludovic Tenant) Date: Fri, 25 May 2001 12:12:06 -0700 Subject: [mapserver-users] problems running mapscript perl example Message-ID: <5AFB399763BEAD4F8DBBB8FDA4F0CAA709B94A@genoa.xippix.local> Hi list, I just build mapscript with Perl on win2000, and now I was trying to test it. I'm totally new with Perl. So I run the dump.pl example : perl dump.pl -file=shapefile1 I have the following error : [1] + Done(139) perl dump.pl -file=shapefile1 1592 Segmentation violation perl does anybody have an idea to fix it ? Thanks. From wgwallace at students.wisc.edu Fri May 25 14:25:35 2001 From: wgwallace at students.wisc.edu (Woody Wallace) Date: Fri, 25 May 2001 16:25:35 -0500 Subject: [mapserver-users] querymaps References: <3B099362.251F49B@students.wisc.edu> Message-ID: <3B0ECDCF.8E19CF66@students.wisc.edu> Hi. I still have a few questions regarding querymaps. The most important of which follows. The rest were asked previously. In querymap mode, mapserv returns an image. In nquerymap mode, mapserv creates a temporary png file and then expects a template. In nquerymap mode I receive this error: Content-type: text/html returnHTML(): Web application error. Malformed template name. Which is, presumably, because it is expecting a template. Why doesn't it act like querymap? Will it in the future? Here is the query I was using for the querymap request: http://144.92.235.164/cgi-bin/mapserv?mode=nquerymap&map=%2Fhome%2Fhttpd%2Fhtml%2Fof_mapserver%2Fwliamap.map&qlayer=seriesOutline&layer=seriesFilled&layer=counties&layer=hillshd&layer=great_lakes&layer=wi_water&layer=mcds&layer=dnrrail&layer=dnrrail2&layer=highways&layer=state&mapsize=460%20237&mapxy=602654.808695652+302926.55217391305&buffer=21574.21304347826 Here is the url to my .map file: http://144.92.235.164/of_mapserver/wliamap.map Thanks again. Woody Wallace Wisconsin State Cartographer's Office From Matt.Wilkie at gov.yk.ca Fri May 25 14:35:49 2001 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Fri, 25 May 2001 14:35:49 -0700 Subject: [mapserver-users] gd1.8.4 Message-ID: <6DD7370C9452D31192A10008C75D07530A47D7DF@raptor.gov.yk.ca> Something which has worked for me (a couple of revisions ago. It may not work anymore): 1) Download gif2png from http://www.tuxedo.org/~esr/gif2png/ and run it on the ms_demo directory tree. Then go through all of the files in the demo (*.html, *.map, symbols\*) and replace any mention of .gif with .png Or, 2) See the 'Common Error Messages' section of http://mapserver.gis.umn.edu/demo_readme.html for commenting out the parts of the map file which use gifs. -matt ----------------------------------------------------------------- Matt Wilkie * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ ----------------------------------------------------------------- -----Original Message----- From: Ronaldo Castro de Lima J?nior [mailto:castro at recife.pe.gov.br] Sent: 2001 May 25 11:37 To: 'mapserver-users at lists.gis.umn.edu ' Subject: [mapserver-users] gd1.8.4 Hi I installed Mapserver 3.3 in my linux Red Hat 6.2 with GD 1.8.4, but the demo didn't work: loadSymbol(): GD library error. This demo doesn't work with this GD version because it doesn't work with GIF. I don't understand why a new version doesn't accept file extensions from an earlier version. Is it true? I was looking for earlier versions of GD Lib to test my demo, and i found the 1.6 version but it was not 1.6 really. Inside the file there were 1.8 version files and the trouble was the same. Can you help me? Excuse my short english. Ronaldo Recife - Brasil . From yecarrillo at hotmail.com Fri May 25 15:30:50 2001 From: yecarrillo at hotmail.com (Eduin Yesid Carrillo) Date: Fri, 25 May 2001 17:30:50 -0500 Subject: [mapserver-users] Mapplet and Status Bar coordinates Message-ID: First that all, thanks to Sthepen, Ken and Tom for Mapplet and its documentation. I've made some work to get Mapplet display real coordinates in the status bar here is the result and it's working fine. I really don't know how many mapplet versions are on the air, but my version has different javascript functions names, so be careful with yours. (In some versions mapplet_mouse_exited function doesn't exists and mapplet_mouse_moved works as mapOver. Parameters are different too!) You must add this inside tag. ---------------------------- Eduin Yesid Carrillo Ingeniero Civil CIUDAD DIGITAL Central de Informaci?n Regional Georefenciada Bucaramanga - Colombia yecarrillo at hotmail.com yecarrillo at condorito.uis.edu.co #ICQ 14323531 _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From Jciavarelli at city.kamloops.bc.ca Fri May 25 16:07:06 2001 From: Jciavarelli at city.kamloops.bc.ca (Janet Ciavarelli) Date: Fri, 25 May 2001 16:07:06 -0700 Subject: [mapserver-users] PHP3 or PHP4 ??? Message-ID: I would like to install PHP now. It says to install PHP3 in the documentation. I was just wondering if PHP4 will work with mapscript? Janet. From morissette at dmsolutions.ca Fri May 25 16:50:33 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 25 May 2001 19:50:33 -0400 Subject: [mapserver-users] PHP3 or PHP4 ??? References: Message-ID: <3B0EEFC9.F3CCD6D6@dmsolutions.ca> Janet Ciavarelli wrote: > > I would like to install PHP now. It says to install PHP3 in the documentation. I was just wondering if PHP4 will work with mapscript? > Yes. Both PHP3 and PHP4 will work, but you should be using MapServer version 3.4, it is much more stable and complete than 3.3.011 was. Also, if you're on Windows then you have to install your PHP4 as a CGI to use it with PHP_MAPSCRIPT.DLL. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From david.armstrong at ntlworld.com Sun May 27 11:31:40 2001 From: david.armstrong at ntlworld.com (David Armstrong) Date: Sun, 27 May 2001 19:31:40 +0100 Subject: [mapserver-users] HELP COMPILING UNDER WINDOWS GD-1.8.4 linker error Message-ID: <001101c0e6db$4639e700$d14dfe3e@david> has anyone come across this error while building gd-1.8.4 under windows any help with a fix would be appricated, i have followed the advice give by eduin in a earlier list message this week Regards All Dave /out:pngtogd.exe pngtogd.obj gd.lib ../lpng1011/libpng.lib ../zlib-1.1.3/zlib.lib gd.lib(gd.obj) : error LNK2001: unresolved external symbol _gdCalloc gd.lib(gd.obj) : error LNK2001: unresolved external symbol _gdMalloc gd.lib(gd_png.obj) : error LNK2001: unresolved external symbol _gdMalloc gd.lib(gd_io_file.obj) : error LNK2001: unresolved external symbol _gdMalloc gd.lib(gd_io_dp.obj) : error LNK2001: unresolved external symbol _gdMalloc gd.lib(gd.obj) : error LNK2001: unresolved external symbol _gdFree gd.lib(gd_png.obj) : error LNK2001: unresolved external symbol _gdFree gd.lib(gd_io_file.obj) : error LNK2001: unresolved external symbol _gdFree gd.lib(gd_io_dp.obj) : error LNK2001: unresolved external symbol _gdFree gd.lib(gd.obj) : error LNK2001: unresolved external symbol _gdRealloc gd.lib(gd_io_dp.obj) : error LNK2001: unresolved external symbol _gdRealloc pngtogd.exe : fatal error LNK1120: 4 unresolved externals From david.armstrong at ntlworld.com Mon May 28 03:02:10 2001 From: david.armstrong at ntlworld.com (David Armstrong) Date: Mon, 28 May 2001 11:02:10 +0100 Subject: [mapserver-users] solved follow up information in COMPILING UNDER WINDOWS GD-1.8.4 & gd-2.0.1 linker error's References: <001101c0e6db$4639e700$d14dfe3e@david> <3B11A815.8BBAA67A@dmsolutions.ca> Message-ID: <000501c0e75d$43c6ca10$0100a8c0@david> to mapserver list following on from my problems compiling under windows either of gd-1.8.4 & gd-2.0.1 with help from Daniel the following solved my compile problem's under windows 2000 & microsoft visual c using nmake add in to objs gdhelpers.obj gd_wbmp.obj wbmp.obj change :- OBJS=gd.obj gd_gd.obj gd_gd2.obj gd_io.obj gd_io_dp.obj gd_io_file.obj gd_ss.obj \ gd_io_ss.obj gd_png.obj gdxpm.obj gdfontt.obj gdfonts.obj gdfontmb.obj gdfontl.obj \ gdfontg.obj gdtables.obj gdttf.obj gdft.obj gdcache.obj gdkanji.obj gd_jpeg.obj to :- OBJS=gd.obj gdhelpers.obj gd_gd.obj gd_gd2.obj gd_io.obj gd_io_dp.obj gd_io_file.obj gd_ss.obj \ gd_io_ss.obj gd_png.obj gdxpm.obj gdfontt.obj gdfonts.obj gdfontmb.obj gdfontl.obj \ gdfontg.obj gdtables.obj gdttf.obj gdft.obj gdcache.obj gdkanji.obj gd_jpeg.obj gd_wbmp.obj wbmp.obj and in file gd_wbmp.c :- change the #include to #include "gd.h" #include to #include "gdfonts.h" hoping this may help others Regards All David From andreag at crs4.it Mon May 28 06:10:03 2001 From: andreag at crs4.it (A. Giacomelli) Date: Mon, 28 May 2001 15:10:03 +0200 Subject: [mapserver-users] displaying bitmaps generated directly via CGI: problems porting app. Message-ID: <3B124E2B.A5597569@crs4.it> Hi, I have an application running on an NT box where static images are generated directly via calls to the mapserv executable. It works fine. I have moved the installation to another machine (changing a few directories, and -of course- updating any relevant dirs. in my code), and the IMG is no longer displayed. in the original app. the image was generated with something like: /cgi-bin/mapserv?map=..\htdocs\mia\gmap3\htdocs\cat.map&mapext=1432280.22+4480118.85+1452280.22+4500118.85&mapsize=100+100&mode=map in the new version, for logistic reasons I have moved my apache htdocs dir out of the Apache tree, so now it looks like: /cgi-bin/mapserv?map=C:\something\htdocs\mia\gmap3\htdocs\cat.map&mapext=1432280.22+4480118.85+1452280.22+4500118.85&mapsize=100+100&mode=map Mapserv CGI reference states that the path specified in the map= parameter should be relative to the location of the executable; however, I have noted that absolute paths are also accepted (so my *second* example works on the *first* installation. The only difference I can see is that in my new installation data and apache reside currently on two different drives. Do you think I should move the data to the same drive as Apache ? (...can the problem be due to something hard-coded in the Windows binary ?). Thanks for any advice -- ========================================= Andrea Giacomelli Centre for Advanced Studies, Research and Development in Sardinia Environment Group http://www.crs4.it/~andreag ========================================= From Jciavarelli at city.kamloops.bc.ca Mon May 28 14:33:37 2001 From: Jciavarelli at city.kamloops.bc.ca (Janet Ciavarelli) Date: Mon, 28 May 2001 14:33:37 -0700 Subject: [mapserver-users] PHP3 or PHP4 ??? Message-ID: I installed PHP4 but now I'm having a hard time getting it to work (in Windows NT). I'm not sure what you mean by installing my PHP4 as a CGI. There seems to be very little about this in the installation manual. Do you mean just copy php.exe into the cgi-bin? >>> Daniel Morissette 05/25/01 04:50PM >>> Janet Ciavarelli wrote: > > I would like to install PHP now. It says to install PHP3 in the documentation. I was just wondering if PHP4 will work with mapscript? > Yes. Both PHP3 and PHP4 will work, but you should be using MapServer version 3.4, it is much more stable and complete than 3.3.011 was. Also, if you're on Windows then you have to install your PHP4 as a CGI to use it with PHP_MAPSCRIPT.DLL. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.ca Mon May 28 16:58:35 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 28 May 2001 19:58:35 -0400 Subject: [mapserver-users] PHP3 or PHP4 ??? References: Message-ID: <3B12E62B.67B3C20A@dmsolutions.ca> Janet Ciavarelli wrote: > > I installed PHP4 but now I'm having a hard time getting it to work (in Windows NT). I'm not sure what you mean by installing my PHP4 as a CGI. There seems to be very little about this in the installation manual. Do you mean just copy php.exe into the cgi-bin? > No it's not just a matter of copying the php.exe to cgi-bin, but it's not very complicated either. Assuming you're using Apache, follow the instructions attached below for the CGI case (i.e. skip the part about the Apache module)... it's a copy of what you find in the file install.txt in the PHP 4.0.4 Win32 distribution. There is also instructions for the other web servers in that same install.txt. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. Installtion instructions ------------------------ Apache: 1. Stop the Apache Webserver. Edit the httpd.conf and put in these lines, modified to your environment: 2. Unzip the Package to c:\php, now move php4ts.dll to the windows/system(32) directory, overwritte any older file! # for the apache module LoadModule php4_module c:/php/sapi/php4apache.dll AddType application/x-httpd-php .php4 #for the cgi binary (you can use that one compiled with force cgi redirect too) ScriptAlias /php4/ "C:/php/" Action application/x-httpd-php4 "/php4/php.exe" AddType application/x-httpd-php4 .php 3. Copy the php.ini-dist to your sysroot (directory where you installed windows), rename it to php.ini, and edit the php.ini to fit your needs. 4. Restart the Apache server. From jef.mony at free.fr Tue May 29 01:48:49 2001 From: jef.mony at free.fr (=?ISO-8859-1?Q?Jean-Fran=E7ois_MONY?=) Date: Tue, 29 May 2001 10:48:49 +0200 (MEST) Subject: [mapserver-users] 3.5 version // map file on the fly Message-ID: <991126129.3b1362719b50b@imp.free.fr> Hi everybody, I'm using mapserver 3.4 with PHP/MapScript to build a site. I have two questions : - the first is about the 3.5 version I saw the new functions or organisation of tis version and I find it very interresting. I' d like to know if there is a date for the release of this version, for me to know if I can plan to use this version for the last version of my site. - the second is to know if somebody have built a site that write a .map file based on a form answer and the informations in a database ? My first idea was to built a map object directly without a map file but it doesn't work ! Thanks, Jef From andreag at geoplan.ufl.edu Tue May 29 09:55:54 2001 From: andreag at geoplan.ufl.edu (Andrea Goethals) Date: Tue, 29 May 2001 12:55:54 -0400 Subject: [mapserver-users] Re: map file on the fly References: <991126129.3b1362719b50b@imp.free.fr> Message-ID: <3B13D49A.B4895012@geoplan.ufl.edu> > > - the second is to know if somebody have built a site that write a .map file > based on a form answer and the informations in a database ? > My first idea was to built a map object directly without a map file but it > doesn't work ! > > Thanks, > Jef On my site, I have an option that I called "Make your own Map" where the user selects any datasets from a list (generated from a mySQL database) and then it creates a .map file and .html template on the fly. Note that there is still a lot to do in this app (allow reordering of datasets, resymbolizing of datasets...) Right now I have it so that it is assigning symbol colors randomly, similar to what happens when you add a shapefile in ArcView. Andrea http://www.fgdl.org/ -- @-------------------------@ | Andrea Goethals | | andreag at geoplan.ufl.edu | | GeoPlan Center | | University of Florida | @-------------------------@ From agrubert at mainz-online.de Tue May 29 12:01:15 2001 From: agrubert at mainz-online.de (A. Grubert) Date: Tue, 29 May 2001 21:01:15 +0200 Subject: [mapserver-users] Transparent TIFFs Message-ID: <3B13F1FB.1C9D3478@mainz-online.de> Hi Listers in my map project I have the folling definition: LAYER NAME tk25 TYPE raster STATUS on DATA 6312.tif END the images is shown in black and white. How can I change white to transparent ? - Armin ------- http://www.armin-grubert.de.vu ---------- Dipl.-Geol. A. Grubert Oppenheimer Stra?e 28 Tel.: 06737 - 809076 55278 K?ngernheim --------- agrubert at mainz-online.de -------------- From steve.lime at dnr.state.mn.us Tue May 29 12:24:29 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 29 May 2001 14:24:29 -0500 Subject: [mapserver-users] Transparent TIFFs Message-ID: Use the OFFSITE parameter. (i.e. OFFSITE 1) Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "A. Grubert" 05/29/01 02:01PM >>> Hi Listers in my map project I have the folling definition: LAYER NAME tk25 TYPE raster STATUS on DATA 6312.tif END the images is shown in black and white. How can I change white to transparent ? - Armin ------- http://www.armin-grubert.de.vu ---------- Dipl.-Geol. A. Grubert Oppenheimer Stra?e 28 Tel.: 06737 - 809076 55278 K?ngernheim --------- agrubert at mainz-online.de -------------- From steve.lime at dnr.state.mn.us Tue May 29 12:47:49 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 29 May 2001 14:47:49 -0500 Subject: [mapserver-users] ArcSDE 8.1 for Linux Message-ID: I'll add code to the configure script to allow you to specify a version with the default being 8.0. You can work around that by editing configure and changing all instances of 8.0 to 8.1 and configuring as normal. You'll still run in to other issues with network functions. I've just recently got my hands on the linux client libs and will try and fix this soon. You're welcome to play with the Makefile produced by configure to try and get it working as well. Let me know if you have any luck. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Andrea Goethals 05/22/01 03:07PM >>> Hi List, I have ArcSDE 8.1 which theoretically runs on Linux. I wanted to try it with mapserver to try to take advantage of the spatial analysis you can do with ArcSDE's C or Java APIs. I installed the client libraries on my machine but am having trouble compiling Mapserver with it. From what I can tell of my configure script (from mapserver 3.3.011) it is expecting ArcSDE to be version 8.0. I downloaded the mapserver nightly build and it appears that the newer configure script expects version 8.0 too. Anyone have some experience and/or suggestions for how to compile this? Thanks, Andrea -- @-------------------------@ | Andrea Goethals | | andreag at geoplan.ufl.edu | | GeoPlan Center | | University of Florida | @-------------------------@ From yecarrillo at hotmail.com Tue May 29 12:58:18 2001 From: yecarrillo at hotmail.com (Eduin Yesid Carrillo) Date: Tue, 29 May 2001 14:58:18 -0500 Subject: [mapserver-users] displaying bitmaps generated directly via CGI: problems porting app. Message-ID: Try changing slages on map path: map=C:/something/htdocs/mia/gmap3/htdocs/cat.map ---------------------------- Eduin Yesid Carrillo Ingeniero Civil CIUDAD DIGITAL Central de Informaci?n Regional Georefenciada Bucaramanga - Colombia yecarrillo at hotmail.com yecarrillo at condorito.uis.edu.co #ICQ 14323531 >From: "A. Giacomelli" >To: "mapserver-users at lists.gis.umn.edu" >Subject: [mapserver-users] displaying bitmaps generated directly via CGI: >problems porting app. >Date: Mon, 28 May 2001 15:10:03 +0200 > >Hi, > >I have an application running on an NT box where static images are >generated directly via calls to the mapserv executable. It works fine. > >I have moved the installation to another machine (changing a few >directories, and -of course- updating any relevant dirs. in my code), >and the IMG is no longer displayed. > > >in the original app. the image was generated with something like: > >/cgi-bin/mapserv?map=..\htdocs\mia\gmap3\htdocs\cat.map&mapext=1432280.22+4480118.85+1452280.22+4500118.85&mapsize=100+100&mode=map > >in the new version, for logistic reasons I have moved my apache htdocs >dir out of the Apache tree, so now it looks like: > >/cgi-bin/mapserv?map=C:\something\htdocs\mia\gmap3\htdocs\cat.map&mapext=1432280.22+4480118.85+1452280.22+4500118.85&mapsize=100+100&mode=map > >Mapserv CGI reference states that the path specified in the map= >parameter should be relative to the location of the executable; >however, I have noted that absolute paths are also accepted (so my >*second* example works on the *first* installation. > >The only difference I can see is that in my new installation data and >apache reside currently on two different drives. Do you think I should >move the data to the same drive as Apache ? > >(...can the problem be due to something hard-coded in the Windows binary >?). > >Thanks for any advice > >-- >========================================= >Andrea Giacomelli >Centre for Advanced Studies, Research and >Development in Sardinia >Environment Group > >http://www.crs4.it/~andreag >========================================= _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From steve.lime at dnr.state.mn.us Tue May 29 14:17:20 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 29 May 2001 16:17:20 -0500 Subject: [mapserver-users] querymaps Message-ID: > >>> Woody Wallace 05/21/01 05:14PM >>> > Hi. > I know this has been discussed before and may be changing in v3.5. > However, I was wondering if someone could clarify the follow things I > have noticed in the querymap and nquerymap modes of the mapserv cgi. > 1) Are query items required in the layer definitions of the query layers? No. A layer is queryable if it is: - ON, either explicitly via a form or has STATUS DEFAULT or QUERYONLY and - has a QUERY object with a TEMPLATE defined. > 2) Even though I specify mapext, a querymap request returns a map that > appears to be related to mapxy and buffer values. I suspect that it > recenters the map to mapxy and sets the mapext to be mapxy +/- buffer. > Is this the case? It generates an extent based on the mapxy and buffer which take precedence over the mapext. > 3) Although querymap returns an image, nquerymap returns the following error: > msSaveImage(): Unable to access file. (wliamap9904831364337.png) > Why is this? I would prefer that mapserv processes the image in memory > and then pipes it right back to browser. Is it trying to create a temp > file? Dunno, I'll check on it. > 4) I have the same problem with multiple labels that another person on > the list was having. I realize there is a work around. However, I was > wondering if this was a bug, or a problem with my .map file. Could it > be that I'm requesting that it be drawn twice? What was the problem? I don't see how the two would be related. > 5) Producing the image in querymap mode is significantly slower than map > mode. Obviously querying takes additional time, but it seems > excessively slow for such a small layer (it contains a mere 10 > features). Is there anyway I can improve performance? I've not seen the performance hit. Usually queries are very fast and since they are done fairly infrequently the extra time isn't noticable. Are you using this in a pan/zoom context where the query map is also the main navigation map? If so there is a way to cache query results so that the query need not happen each time. Here is the query I was using for the querymap request: > http://144.92.235.164/cgi-bin/mapserv?mode=querymap&map=%2Fhome%2Fhttpd%2Fhtml%2Fof_mapserver%2Fwliamap.map&qlayer=seriesOutline&layer=seriesFilled&layer=hillshd&layer=great_lakes&layer=wi_water&layer=mcds&layer=dnrrail&layer=dnrrail2&layer=highways&layer=counties&layer=state&mapsize=460%20300&mapxy=564968+288907&buffer=10000 > Here is the url to my .map file: > http://144.92.235.164/of_mapserver/wliamap.map > Thank you for your help. > Woody Wallace > Wisconsin State Cartographer's Office Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From teb at mallit.fr.umn.edu Tue May 29 14:54:04 2001 From: teb at mallit.fr.umn.edu (teb) Date: Tue, 29 May 2001 16:54:04 -0500 (CDT) Subject: [mapserver-users] FWD: creating a color index Message-ID: <200105292154.QAA20722@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- X-UIDL: ddA"!*+*#!Q?X!!XD(#! From: "Stender, Amy ERDC-CRREL-NH" To: "'mapserver-info at lists.gis.umn.edu'" Subject: creating a color index Date: Fri, 25 May 2001 09:10:50 -0400 MIME-Version: 1.0 I'm marking some symbols on my map with: SYMBOL # 45 - Capital Buildings TYPE TRUETYPE NAME 'capital' FONT "esri-trans-civic" CHARACTER "c" ANTIALIAS END Unfortunately, the little image is transparent. I'm wondering if I can add TRANSPARENT # will work with font characters... Also, I don't know how or where to set/create the color index. I noticed RGB didn't work... Thanks, Amy Amy L. Stender Remote Sensing/GIS Center Cold Regions Research and Engineering Laboratory United States Army Corps of Engineers 72 Lyme Road, Hanover, NH 03755-1290 (603)646-4733 astender at crrel.usace.army.mil ------------- End Forwarded Message ------------- From teb at mallit.fr.umn.edu Tue May 29 14:57:44 2001 From: teb at mallit.fr.umn.edu (teb) Date: Tue, 29 May 2001 16:57:44 -0500 (CDT) Subject: [mapserver-users] fwd: IIS and demo files Message-ID: <200105292157.QAA20730@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- X-UIDL: %#0!!;6A"!AX5!!aMp"! From: siedlungundlandschaft at t-online.de (siedlungundlandschaft) To: Subject: IIS and demo files Date: Sun, 27 May 2001 21:16:17 +0200 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Sender: 320091474038-0001 at t-dialin.net i?ve made all, so requested in installing for NT instructions on mapserver.gis.umn.edu/demo.. the following message comes: msSaveImage(): Unable to access file. (C:\Inetpub\wwwroot\tmp\DEMO9909903032100.gif) but all write acces to the directories and to the path to the imagefiles are enable ?? system w2k mapserver 3.3 gifsupport IIS 5 thanks ( id would nice to have anyone in germany to talk with telephone) christian klaege ------------- End Forwarded Message ------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From teb at mallit.fr.umn.edu Tue May 29 15:01:50 2001 From: teb at mallit.fr.umn.edu (teb) Date: Tue, 29 May 2001 17:01:50 -0500 (CDT) Subject: [mapserver-users] FWD: Message-ID: <200105292201.RAA20739@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "PSU" To: Subject: Date: Tue, 29 May 2001 09:00:45 -0400 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 I have a label layer on which I would like to display *2* attribute values. How do I specify two attributes using LABELITEM? Any experience with this? I can post a snippet if that would help. Thanks, Tom ------------- End Forwarded Message ------------- From david.armstrong at ntlworld.com Tue May 29 15:26:24 2001 From: david.armstrong at ntlworld.com (David Armstrong) Date: Tue, 29 May 2001 23:26:24 +0100 Subject: [mapserver-users] UPDATED MS DEMO FOR VERSION 3.5 REQUESTED Message-ID: <001b01c0e88e$65b78560$0100a8c0@david> has anyone updated the ms_demo app to version 3.5 please or can send me an update Kind Regards Dave From ludovic at siterra.com Tue May 29 16:50:16 2001 From: ludovic at siterra.com (Ludovic Tenant) Date: Tue, 29 May 2001 16:50:16 -0700 Subject: [mapserver-users] problem creating shapefile Message-ID: <5AFB399763BEAD4F8DBBB8FDA4F0CAA709B954@genoa.xippix.local> Hi list ! I'm just beginning using mapscript with Perl on my win2000 environment. I'm trying to create a very basic shapefile containing 2 points. The script looks like that : %types = ( '1' => 'point', '3' => 'arc', '5' => 'polygon', '8' => 'multipoint' ); $shapefile = new shapefileObj('myShape1', 8) or die "Unable to open shapefile $file"; $point1 = new pointObj(); $point1->{x} = -122.0; $point1->{y} = 34.0; $point2 = new pointObj(); $point2->{x} = -116.0; $point2->{y} = 40.0; $line = new lineObj(); $line->add($point1); $line->add($point2); $shape = new shapeObj(3); $shape->add($line); $shapefile->add($shape); In fact, my problem is that I have a segmentation violation when I try to add "point2" at the line : $line->add($point2); If I comment out this line, the shapefile is correctly created with only one point. Does anyone have an idea about that ? Thanks, Ludovic. From ycnyon at pd.jaring.my Tue May 29 20:03:37 2001 From: ycnyon at pd.jaring.my (nyon) Date: Wed, 30 May 2001 11:03:37 +0800 Subject: [mapserver-users] Displaying Erdas image in Mapserver Message-ID: <010101c0e8b5$229e53e0$147a7ac0@tm.net.my> Hi, I have a Erdas image that would like to be displayed in Mapserver. In the MS website, it states Erdas image is supported. I am using MS on Windows NT 4.0. Tried but no success so far. Anyone mind sharing their experiences ? such as the entry in the MAP file and the version of Erdas img file supported. Thanks Nyon -------------- next part -------------- An HTML attachment was scrubbed... URL: From Chip.Hankley at GASAI.Com Wed May 30 06:29:59 2001 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Wed, 30 May 2001 08:29:59 -0500 Subject: [mapserver-users] PNG vs. GIF Message-ID: <3DFF131E4E6D2D4198CDD758F35A53536E3CA5@postoffice.GASAI.Com> I'm trying to come to grips with PNG vs. GIF support with MapServer. If I understand the information on the website and from the archives correctly, the next (pending?) release will not support GIF. I would assume then, that as a new user I should start working with the PNG version. OTH, I found that the Mapplet script apparently doesn't work with PNG files. Are there other unforeseen "pitfalls" of using PNG? Cheers! Chip Hankley From kenboss at dilbert.dnr.state.mn.us Wed May 30 06:36:57 2001 From: kenboss at dilbert.dnr.state.mn.us (kenboss) Date: Wed, 30 May 2001 08:36:57 -0500 (CDT) Subject: [mapserver-users] Displaying Erdas image in Mapserver Message-ID: <200105301336.IAA17657@philbert.dnr.state.mn.us> I believe ERDAS support is limited to the version 7.x single-band 8-bit .gis files. --Ken > From: "nyon" > To: > Subject: [mapserver-users] Displaying Erdas image in Mapserver > Date: Wed, 30 May 2001 11:03:37 +0800 > MIME-Version: 1.0 > X-Priority: 3 > X-MSMail-Priority: Normal > X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 > > Hi, > > I have a Erdas image that would like to be displayed in Mapserver. > In the MS website, it states Erdas image is supported. I am using MS on Windows NT 4.0. > > Tried but no success so far. Anyone mind sharing their experiences ? such as > the entry in the MAP file and the version of Erdas img file supported. > > Thanks > Nyon From steve.lime at dnr.state.mn.us Wed May 30 07:32:41 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 30 May 2001 09:32:41 -0500 Subject: [mapserver-users] PNG vs. GIF Message-ID: The new release WILL support gif (if you're licensed). There's a link to a patch for the new versions of GD on the docs section of the MapServer web site in the 3.5 compile how-to. The patch adds GIF support to the latest versions of GD. MapServer will detect the presence of the patch and can create GIFs then. The biggest deal with PNG is the general lack of support in Java and older browsers. Assume that will get better in the future... Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Hankley, Chip" 05/30/01 08:29AM >>> I'm trying to come to grips with PNG vs. GIF support with MapServer. If I understand the information on the website and from the archives correctly, the next (pending?) release will not support GIF. I would assume then, that as a new user I should start working with the PNG version. OTH, I found that the Mapplet script apparently doesn't work with PNG files. Are there other unforeseen "pitfalls" of using PNG? Cheers! Chip Hankley From steve.lime at dnr.state.mn.us Wed May 30 07:59:33 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 30 May 2001 09:59:33 -0500 Subject: [mapserver-users] Displaying Erdas image in Mapserver Message-ID: Ken is correct, just old 7.x and earlier file support is there. Now, OGR support may add .img support to 3.5 but Frank will have to comment on that. I have old code that runs against the Imagine C developers toolkit libs that will work too but needs integration. If someone wants to work on it... Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> kenboss 05/30/01 08:36AM >>> I believe ERDAS support is limited to the version 7.x single-band 8-bit .gis files. --Ken > From: "nyon" > To: > Subject: [mapserver-users] Displaying Erdas image in Mapserver > Date: Wed, 30 May 2001 11:03:37 +0800 > MIME-Version: 1.0 > X-Priority: 3 > X-MSMail-Priority: Normal > X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 > > Hi, > > I have a Erdas image that would like to be displayed in Mapserver. > In the MS website, it states Erdas image is supported. I am using MS on Windows NT 4.0. > > Tried but no success so far. Anyone mind sharing their experiences ? such as > the entry in the MAP file and the version of Erdas img file supported. > > Thanks > Nyon From morissette at dmsolutions.ca Wed May 30 08:05:57 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 30 May 2001 11:05:57 -0400 Subject: [mapserver-users] PNG vs. GIF References: <3DFF131E4E6D2D4198CDD758F35A53536E3CA5@postoffice.GASAI.Com> Message-ID: <3B150C55.991C3240@dmsolutions.ca> "Hankley, Chip" wrote: > > I'm trying to come to grips with PNG vs. GIF support with MapServer. > > If I understand the information on the website and from the archives > correctly, the next (pending?) release will not support GIF. I would assume > then, that as a new user I should start working with the PNG version. > Mapserver 3.5 won't be able to support freetype fonts if you use GD 1.2, but it should still work if you are happy without freetype. For sure if you use freetype fonts then you'll need a more recent GD and those versions do not include GIF support any more. However, if you live in some place where Unisys LZW patents don't apply (or if for any other reason the patent is not a problem for you) then you can get a 'patched' GD 1.8.4 that supports GIF and works with MapServer 3.5. See http://www.rime.com.au/gd/ > OTH, I found that the Mapplet script apparently doesn't work with PNG files. > Are there other unforeseen "pitfalls" of using PNG? > Mapplet is a Java applet, and my understanding is that Java applets support only GIF or JPEG. In order to support PNG you would have to compile your applet with JDK 1.3 and this is a bad idea because it's not widely supported in browsers. So your 2 options are: use the patched GD, or use JPEG with the mapplet. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From steve.lime at dnr.state.mn.us Wed May 30 09:45:17 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 30 May 2001 11:45:17 -0500 Subject: [mapserver-users] PDF output, what about? Message-ID: ToMO uses precomputed gifs (built with mapserver) to assemble the PDF. So it's not vector output. Another user has accomplished vector output but not in a general sense. I'm chatting with them about moving forward. Anyway, attached is the perl script that generates the ToMO output. Note that the images are named/stored using a simple grid system. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "William B. Killingsworth" 05/24/01 10:50AM >>> Maybe we could get some examples posted on the list. I too would like to implement this very thing. William B. Killingsworth GIS Manager Planning and Development billk at coj.net >>> "ANDREW WOOLEY" 05/23/01 09:18AM >>> I am looking for this very solution. The ToMo example is exactly what I would like to try on my site. I am new to mapserver, but part of the reason I am doing any map serving is to allow some of my planners that are offsite print maps that they can customize. Up to this point, I had resigned myself to the supposition that they would have to print a web map, but if a PDF or some other vector format is possible, I would really love to learn more. I am still working on learning how mapserver works and if someone could send me some example code that shows how to create a PDF with mapserver on Linux instead of a bitmap of some sort, I would really appreciate it. I am pretty familiar with PHP but am willing to learn anything. Thanks very much, Andrew Andrew Wooley GIS Operations Manager Mountainland Association of Governments Orem, UT phone: 801.229.3844 fax: 801.229.3801 email: awooley at mountainland.org >>> Andr?as M. Winter 05/22 7:43 AM >>> PDF is fine, SVG would be better when dealing with vector graphics on the web. have al look at http://www.karto.ethz.ch/cgi-bin/projection.pl and http://www.carto.net/papers/svg . first is a projection tool with pdf AND svg output, second a paper about the benefits of svg for cartography! regards andr? ____________________________________________ andr?as m. winter - freytag & berndt content management - new media & internet austria a1230 wien brunner str 69 tel +43.1.869.90.90.38 fax +43.1.869.90.90.62 mailto:winter at freytagberndt.at -----Urspr?ngliche Nachricht----- Von: Carlo A. Bertelli [mailto:bertelli at charta.acme.com] Gesendet: Dienstag, 22. Mai 2001 12:45 An: mapserver-users at lists.gis.umn.edu Betreff: [mapserver-users] PDF output, what about? Hello fellows, GIF and PNG output are very good for mapserver, as the browser does not ask for a plug-in to see maps, but when you need printing, screen-resolution pictures are not so good. I think mapserver should use a PDF library to provide PDF output for printing purposes. Say, when you have the map you need (thematic mapping, scale, and so on), you would click on a 'PDF' button and presto! you get a print-ready image you could enhance or incorporate in documents. Ciao Carlo ------------------------------------------------------------------------ -- Carlo A. Bertelli Charta servizi e sistemi per il territorio e la storia ambientale srl Dipendenze del palazzo di Clemente Doria, vc. alla Chiesa della Maddalena 9/2 16124 Genova (Italy) tel. +39 010 2475439 fax +39 010 2475439 cell: 0333 2298345 e-mail: bertelli at charta.acme.com http://www.charta.acme.com ------------------------------------------------------------------------ -- -------------- next part -------------- A non-text attachment was scrubbed... Name: drgprint.pl Type: application/octet-stream Size: 6084 bytes Desc: not available URL: From Jciavarelli at city.kamloops.bc.ca Wed May 30 10:37:00 2001 From: Jciavarelli at city.kamloops.bc.ca (Janet Ciavarelli) Date: Wed, 30 May 2001 10:37:00 -0700 Subject: [mapserver-users] PHP4 load library error Message-ID: I followed all the instructions for loading the php_mapscript.dll but get this error when I run phpinfo_mapscript.php4 Warning: Unable to load dynamic library './php_mapscript.dll' - The specified module could not be found. in g:\apache1319\apache\htdocs\phpinfo_mapscript.php4 on line 17 I'm wondering if there's another variable I have to set in the httpd.conf file to tell it where to look for it, cause it's looking for it in the wrong place. Janet. From Michael.Hearne at noaa.gov Wed May 30 10:45:19 2001 From: Michael.Hearne at noaa.gov (Michael Hearne) Date: Wed, 30 May 2001 13:45:19 -0400 Subject: [mapserver-users] JSObject in applet References: <3DFF131E4E6D2D4198CDD758F35A53536E3CA5@postoffice.GASAI.Com> <3B150C55.991C3240@dmsolutions.ca> Message-ID: <3B1531AF.C034CFD8@noaa.gov> I've just been testing a MapServer app, using Steve's mapimage applet, on some older browsers we have, and ran into this error on Internet Explorer 3.0: java.lang.ClassNotFoundException: netscape.javascript.JSObject I can guess _why_ it doesn't work [the "netscape" part might have something to do with it :)], but I'm curious if there is a workaround for older versions of IE, like including the JSObject as a jar file that the user downloads or something? (That would probably be a really horrendous solution, particularly for users w/ modem, but it's all I could think of.) Thanks, Mike Hearne -- Michael G. Hearne email: Michael.Hearne at noaa.gov Coastal Remote Sensing phone: 843 740-1281 TPMC/NOAA Coastal Services Center fax: 843 740-1312 2234 S. Hobson Ave., Charleston, SC 29407 From steve.lime at dnr.state.mn.us Wed May 30 11:24:04 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 30 May 2001 13:24:04 -0500 Subject: [mapserver-users] JSObject in applet Message-ID: IE 3.0 is not a web browser, a virtual doorstop. IE didn't start to support LiveConnect until 4.0. No workaround that I'm aware of. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Michael Hearne 05/30/01 12:45PM >>> I've just been testing a MapServer app, using Steve's mapimage applet, on some older browsers we have, and ran into this error on Internet Explorer 3.0: java.lang.ClassNotFoundException: netscape.javascript.JSObject I can guess _why_ it doesn't work [the "netscape" part might have something to do with it :)], but I'm curious if there is a workaround for older versions of IE, like including the JSObject as a jar file that the user downloads or something? (That would probably be a really horrendous solution, particularly for users w/ modem, but it's all I could think of.) Thanks, Mike Hearne -- Michael G. Hearne email: Michael.Hearne at noaa.gov Coastal Remote Sensing phone: 843 740-1281 TPMC/NOAA Coastal Services Center fax: 843 740-1312 2234 S. Hobson Ave., Charleston, SC 29407 From morissette at dmsolutions.ca Wed May 30 11:52:35 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 30 May 2001 14:52:35 -0400 Subject: [mapserver-users] PHP4 load library error References: Message-ID: <3B154173.C94097DA@dmsolutions.ca> Janet Ciavarelli wrote: > > I followed all the instructions for loading the php_mapscript.dll but get this error when I run phpinfo_mapscript.php4 > > Warning: Unable to load dynamic library './php_mapscript.dll' - The specified module could not be found. in g:\apache1319\apache\htdocs\phpinfo_mapscript.php4 on line 17 > > I'm wondering if there's another variable I have to set in the httpd.conf file to tell it where to look for it, cause it's looking for it in the wrong place. > The location of the PHP extensions (DLLs) is set in the php.ini file that you should have copied in your C:\windows directory. Look for the following line in php.ini: extension_dir = c:/apache/php4/extensions ; directory in which the loadable extensions (modules) reside ... and replace C:/apache/php4/extensions with whatever the location of your php4 extensions directory is, and then copy your php_mapscript.dll to that directory. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From teb at mallit.fr.umn.edu Wed May 30 12:46:22 2001 From: teb at mallit.fr.umn.edu (teb) Date: Wed, 30 May 2001 14:46:22 -0500 (CDT) Subject: [mapserver-users] FWD: Unpredictable re-center and point zoom Message-ID: <200105301946.OAA21619@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "PSU" To: Subject: Unpredictable re-center and point zoom Date: Wed, 30 May 2001 13:38:32 -0400 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 When I re-center or zoom by point (using mapplet), my map moves unpredictably. It does not center on the point picked, nor does it zoom to the point picked. Any ideas how I can troubleshoot this problem or what might be wrong? Thanks, Tom ------------- End Forwarded Message ------------- From millarj at lib.muohio.edu Wed May 30 14:03:53 2001 From: millarj at lib.muohio.edu (John Millard) Date: Wed, 30 May 2001 17:03:53 -0400 (EDT) Subject: [mapserver-users] PHP/Mapscript on Solaris? In-Reply-To: Message-ID: Hi, Has anyone gotten php/mapscript to work on Solaris 8 on UltraSparc? I've been able to install the latest stable versions of Apache, PHP4, PHP3, and they seem to work ok. (I've used the LD_INCLUDE_PATH trick) I can even get PHP mapscript to compile and install, but when I look at phpinfo_mapscript, I get the following error: Fatal error: Unable to load dynamic library 'php_mapscript.so' - ld.so.1: /usr/local/apache/bin/httpd: fatal: relocation error: file /usr/local/lib/php/extensions/php_mapscript.so: symbol _php3_hash_find: referenced symbol not found in /usr/local/apache/htdocs/phpinfo_mapscript.php3 on line 21 I've got PHP3 loaded as a DSO module in Apache and the .so is indeed where Apache says it isn't. I've heard that Solaris is a problem. Is it impossible or have I missed something obvious? If needed, I can send the specific configure arguments I used when compiling. Thanks in advance for any help. -John _________________________________________________________ John Millard Information Services Librarian Miami University, Oxford, OH 45056-1878 More Information: http://staff.lib.muohio.edu/~millarj/ gnupg public key: http://staff.lib.muohio.edu/~millarj/gpg/ From Jciavarelli at city.kamloops.bc.ca Wed May 30 14:34:56 2001 From: Jciavarelli at city.kamloops.bc.ca (Janet Ciavarelli) Date: Wed, 30 May 2001 14:34:56 -0700 Subject: [mapserver-users] PHP4 load library error Message-ID: Hi Daniel, I set the extensions_dir variable in the php.ini in my winnt directory as you said, but now I get this message: The procedure entry point_add_property_double could not be located in the dynamic link library php4ts.dll So it seems like something else is now messed up. Any ideas? Janet. >>> Daniel Morissette 05/30/01 11:52AM >>> Janet Ciavarelli wrote: > > I followed all the instructions for loading the php_mapscript.dll but get this error when I run phpinfo_mapscript.php4 > > Warning: Unable to load dynamic library './php_mapscript.dll' - The specified module could not be found. in g:\apache1319\apache\htdocs\phpinfo_mapscript.php4 on line 17 > > I'm wondering if there's another variable I have to set in the httpd.conf file to tell it where to look for it, cause it's looking for it in the wrong place. > The location of the PHP extensions (DLLs) is set in the php.ini file that you should have copied in your C:\windows directory. Look for the following line in php.ini: extension_dir = c:/apache/php4/extensions ; directory in which the loadable extensions (modules) reside ... and replace C:/apache/php4/extensions with whatever the location of your php4 extensions directory is, and then copy your php_mapscript.dll to that directory. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From sylvain.speh at CLERMONT.cemagref.fr Thu May 31 00:18:42 2001 From: sylvain.speh at CLERMONT.cemagref.fr (Speh Sylvain) Date: Thu, 31 May 2001 09:18:42 +0200 Subject: [mapserver-users] JSObject in applet Message-ID: Hi, 1) I sent a mail the 4th of April, because we couldn't run straightly the fifth example on our IE5/Apache system (IE5 doesn't cope with the Netscape libraries too ? ;-)) ). The JSObject is effectively provided with Netscape in it's java40.jar ( 1848k or so ) file. It's also in the jdk, in the jaws.jar file, but I had problems with the jdk 1.3 release of it. 2) I've heard (I don't use, so I'm not sure of that) that ArcView could generate some mapfile ( with UNIX line separators and slashes ;-() ), javascript and Java classes and files. I've some such files, so can I tell you that, if you'll use them, you'll have to cope with the netscape.javascript package with Java, or with the java40 jarfile. For my own, I gave up a fortnight ago, but I will have to make it run as soon as possible. -----Message d'origine----- De : Michael Hearne [mailto:Michael.Hearne at noaa.gov] Envoy? : mercredi 30 mai 2001 19:45 ? : mapserver-users at lists.gis.umn.edu Objet : [mapserver-users] JSObject in applet I've just been testing a MapServer app, using Steve's mapimage applet, on some older browsers we have, and ran into this error on Internet Explorer 3.0: java.lang.ClassNotFoundException: netscape.javascript.JSObject I can guess _why_ it doesn't work [the "netscape" part might have something to do with it :)], but I'm curious if there is a workaround for older versions of IE, like including the JSObject as a jar file that the user downloads or something? (That would probably be a really horrendous solution, particularly for users w/ modem, but it's all I could think of.) Thanks, Mike Hearne -- Michael G. Hearne email: Michael.Hearne at noaa.gov Coastal Remote Sensing phone: 843 740-1281 TPMC/NOAA Coastal Services Center fax: 843 740-1312 2234 S. Hobson Ave., Charleston, SC 29407 From kafka at email.cz Thu May 31 00:32:02 2001 From: kafka at email.cz (Stepan Kafka) Date: Thu, 31 May 2001 09:32:02 +0200 Subject: [mapserver-users] FWD: In-Reply-To: <200105292201.RAA20739@mallit.fr.umn.edu> Message-ID: <002c01c0e9a3$c8dfb8e0$fb01a8c0@gis2.oku-kh.cz> You can use TEXT item in the CLASS object, in the form: TEXT ([MYFIELD1],[MYFIELD2]) The complex label will be generated. Stepan Kafka > -----P?vodn? zpr?va----- > Od: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]za u?ivatele teb > Odesl?no: 30. kv?tna 2001 0:02 > Komu: mapserver-users at lists.gis.umn.edu > Kopie: tqm101 at psu.edu > P?edm?t: [mapserver-users] FWD: > > > > ------------- Begin Forwarded Message ------------- > > From: "PSU" > To: > Subject: > Date: Tue, 29 May 2001 09:00:45 -0400 > MIME-Version: 1.0 > Content-Transfer-Encoding: 7bit > X-Priority: 3 > X-MSMail-Priority: Normal > X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 > > I have a label layer on which I would like to display *2* > attribute values. How do I specify two attributes using LABELITEM? Any > experience with this? I can post a snippet if that would help. > > Thanks, > Tom > > > > ------------- End Forwarded Message ------------- > > From sylvain.speh at CLERMONT.cemagref.fr Thu May 31 01:04:44 2001 From: sylvain.speh at CLERMONT.cemagref.fr (Speh Sylvain) Date: Thu, 31 May 2001 10:04:44 +0200 Subject: [mapserver-users] JSObject in applet Message-ID: Hi, 1) I sent a mail the 19th of April, because we couldn't run straightly the fifth example on our IE5/Apache system (IE5 doesn't cope with the Netscape libraries too ? ;-)) ). The JSObject is effectively provided with Netscape in it's java40.jar ( 1848k or so ) file. It's also in the jdk, in the jaws.jar file, but I had problems with the jdk 1.3 release of it. 2) I've heard (I don't use, so I'm not sure of that) that ArcView could generate some mapfile ( with UNIX line separators and slashes ;-() ), javascript and Java classes and files. I've some such files, so can I tell you that, if you'll use them, you'll have to cope with the netscape.javascript package with Java, or with the java40 jarfile. For my own, I gave up a fortnight ago, but I will have to make it run as soon as possible. -----Message d'origine----- De : Michael Hearne [mailto:Michael.Hearne at noaa.gov] Envoy? : mercredi 30 mai 2001 19:45 ? : mapserver-users at lists.gis.umn.edu Objet : [mapserver-users] JSObject in applet I've just been testing a MapServer app, using Steve's mapimage applet, on some older browsers we have, and ran into this error on Internet Explorer 3.0: java.lang.ClassNotFoundException: netscape.javascript.JSObject I can guess _why_ it doesn't work [the "netscape" part might have something to do with it :)], but I'm curious if there is a workaround for older versions of IE, like including the JSObject as a jar file that the user downloads or something? (That would probably be a really horrendous solution, particularly for users w/ modem, but it's all I could think of.) Thanks, Mike Hearne -- Michael G. Hearne email: Michael.Hearne at noaa.gov Coastal Remote Sensing phone: 843 740-1281 TPMC/NOAA Coastal Services Center fax: 843 740-1312 2234 S. Hobson Ave., Charleston, SC 29407 From gregory_huchon at yahoo.fr Thu May 31 06:53:53 2001 From: gregory_huchon at yahoo.fr (=?iso-8859-1?q?Gr=E9gory=20Huchon?=) Date: Thu, 31 May 2001 15:53:53 +0200 (CEST) Subject: [mapserver-users] queries Message-ID: <20010531135353.33421.qmail@web10307.mail.yahoo.com> We are working at Reunion Island. We are starting in using Mapserver. These are my problems : I have about 20 layers in my Mapfile. I would like to query all these layers. When I click on the map I don't get all the informations. For example : I get only 4 results among 8. All the queries work. When I move in my mapfile a layer which showed no results (which is for example number 25 )to the top (for example number 5) , I get the results. Can you help me ? Sorry for my english Thank you for your help I give you the php function : function GMapDumpQueryResults() { GLOBAL $gpoMap, $gpoQueryResults; if (! $gpoQueryResults ) { printf(" "); return; } printf("\n"); printf("NumResults = %d, NumQueryLayers = %d\n", $gpoQueryResults->numresults, $gpoQueryResults->numquerylayers); $iCurLayer = -1; $aFields = ""; $gpoQueryResults->rewind(); for($iRes=0; $iRes < $gpoQueryResults->numresults; $iRes++) { $oResult = $gpoQueryResults->next(); //echo "[$oResult - $iRes]"; if ($oResult->layer == -1) break; if ($iCurLayer != $oResult->layer) { $iCurLayer = $oResult->layer; echo "**$iCurLayer**"; $oLayer = $gpoMap->GetLayer($iCurLayer); $dbfname = $gpoMap->shapepath . "/". $oLayer->data . ".dbf"; echo "
Fichier dbf: $dbfname - $oLayer - $iCurLayer
"; if ($db) dbase_close($db); $db = dbase_open($dbfname, 0); $selFields = explode(" ", $oLayer->header); if ($iCurLayer != -1) printf("
\n"); printf("\n"); printf("\n"); printf("\n"); /* name of the attributes. */ printf("\n"); for ($iField=0; $iField < sizeof($selFields); $iField++) { printf(""); } printf("\n"); } $rec = dbase_get_record_with_names($db, $oResult->shape+1); printf("\n"); //echo ">> "; //printf("%s",trim($rec[strtoupper(nom_alea[0])])); //echo " <<"; for($iField=0; $iField < sizeof($selFields); $iField++) { printf(""); } printf("\n"); } if ($db) dbase_close($db); printf("
", sizeof($selFields)); printf("
%s
", $oLayer->group); printf("
", sizeof($selFields)); printf("
%s
", $oLayer->description); printf("
"); printf("%s",$selFields[$iField]); printf("
"); printf("%s",trim($rec[strtoupper($selFields[$iField])])); echo "
trim(\$rec[strtoupper($selFields[$iField])])
"; //--- variable: %s printf("
\n"); ___________________________________________________________ Do You Yahoo!? -- Pour faire vos courses sur le Net, Yahoo! Shopping : http://fr.shopping.yahoo.com From steve.lime at dnr.state.mn.us Thu May 31 08:14:17 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 31 May 2001 10:14:17 -0500 Subject: [mapserver-users] JSObject in applet Message-ID: IE 5 as shipped has a brain-dead JRE. You can download a newer version from Microsoft that works with LiveConnect just fine. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Speh Sylvain 05/31/01 03:04AM >>> Hi, 1) I sent a mail the 19th of April, because we couldn't run straightly the fifth example on our IE5/Apache system (IE5 doesn't cope with the Netscape libraries too ? ;-)) ). The JSObject is effectively provided with Netscape in it's java40.jar ( 1848k or so ) file. It's also in the jdk, in the jaws.jar file, but I had problems with the jdk 1.3 release of it. 2) I've heard (I don't use, so I'm not sure of that) that ArcView could generate some mapfile ( with UNIX line separators and slashes ;-() ), javascript and Java classes and files. I've some such files, so can I tell you that, if you'll use them, you'll have to cope with the netscape.javascript package with Java, or with the java40 jarfile. For my own, I gave up a fortnight ago, but I will have to make it run as soon as possible. -----Message d'origine----- De : Michael Hearne [mailto:Michael.Hearne at noaa.gov] Envoy? : mercredi 30 mai 2001 19:45 ? : mapserver-users at lists.gis.umn.edu Objet : [mapserver-users] JSObject in applet I've just been testing a MapServer app, using Steve's mapimage applet, on some older browsers we have, and ran into this error on Internet Explorer 3.0: java.lang.ClassNotFoundException: netscape.javascript.JSObject I can guess _why_ it doesn't work [the "netscape" part might have something to do with it :)], but I'm curious if there is a workaround for older versions of IE, like including the JSObject as a jar file that the user downloads or something? (That would probably be a really horrendous solution, particularly for users w/ modem, but it's all I could think of.) Thanks, Mike Hearne -- Michael G. Hearne email: Michael.Hearne at noaa.gov Coastal Remote Sensing phone: 843 740-1281 TPMC/NOAA Coastal Services Center fax: 843 740-1312 2234 S. Hobson Ave., Charleston, SC 29407 From Chip.Hankley at GASAI.Com Thu May 31 08:43:27 2001 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Thu, 31 May 2001 10:43:27 -0500 Subject: [mapserver-users] Persistent Change from a Form Message-ID: <3DFF131E4E6D2D4198CDD758F35A53536E3CAB@postoffice.GASAI.Com> I have a SELECT element on a form that is populated with a bunch of values from a shapefile. The user can select a value, then hit a button, which sends a modification to mapserv using this type of syntax: Map__class_expression This works great. The polygon that is represented by the value in the list "lights up." Now I want it to stay "selected." If I understand this syntax right, it's kind of like I'm making a "virtual" change to the map file. If I zoom in or out, pan, anything, it reads the original (non-virtual) map file and the polygon is no longer "selected." How can I do this (I'm bucking for the easy solution... I haven't delved into MapScript or anything like that yet). Thanks! Chip From kenboss at dilbert.dnr.state.mn.us Thu May 31 08:49:21 2001 From: kenboss at dilbert.dnr.state.mn.us (kenboss) Date: Thu, 31 May 2001 10:49:21 -0500 (CDT) Subject: [mapserver-users] JSObject in applet Message-ID: <200105311549.KAA21021@philbert.dnr.state.mn.us> And just to save you the half hour I spent looking for it, it's at http://www.microsoft.com/java/vm/dl_vm40.htm. (It might not be that hard to find if you're familiar with the MS website, but searches for Java Virtual Machine or JVM turn up nothing useful. Funny, but on their website the Java Virtual Machine is known as the Microsoft Virtual Machine, and JVM = Microsoft VM. Sheesh.) --Ken > IE 5 as shipped has a brain-dead JRE. You can download a newer version from Microsoft > that works with LiveConnect just fine. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Speh Sylvain 05/31/01 03:04AM >>> > Hi, > > 1) > I sent a mail the 19th of April, because we couldn't run straightly the > fifth example on our IE5/Apache system (IE5 doesn't cope with the Netscape > libraries too ? ;-)) ). The JSObject is effectively provided with Netscape > in it's java40.jar ( 1848k or so ) file. > It's also in the jdk, in the jaws.jar file, but I had problems with the jdk > 1.3 release of it. > > 2) > I've heard (I don't use, so I'm not sure of that) that ArcView could > generate some mapfile ( with UNIX line separators and slashes ;-() ), > javascript and Java classes and files. I've some such files, so can I tell > you that, if you'll use them, you'll have to cope with the > netscape.javascript package with Java, or with the java40 jarfile. > > For my own, I gave up a fortnight ago, but I will have to make it run as > soon as possible. > > -----Message d'origine----- > De : Michael Hearne [mailto:Michael.Hearne at noaa.gov] > Envoy? : mercredi 30 mai 2001 19:45 > ? : mapserver-users at lists.gis.umn.edu > Objet : [mapserver-users] JSObject in applet > > > I've just been testing a MapServer app, using Steve's mapimage applet, > on some older browsers we have, and ran into this error on Internet > Explorer 3.0: > > java.lang.ClassNotFoundException: netscape.javascript.JSObject > > I can guess _why_ it doesn't work [the "netscape" part might have > something to do with it :)], but I'm curious if there is a workaround > for older versions of IE, like including the JSObject as a jar file that > the user downloads or something? (That would probably be a really > horrendous solution, particularly for users w/ modem, but it's all I > could think of.) > > Thanks, > > Mike Hearne > -- > Michael G. Hearne email: Michael.Hearne at noaa.gov > Coastal Remote Sensing phone: 843 740-1281 > TPMC/NOAA Coastal Services Center fax: 843 740-1312 > 2234 S. Hobson Ave., Charleston, SC 29407 > > > From steve.lime at dnr.state.mn.us Thu May 31 09:00:43 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 31 May 2001 11:00:43 -0500 Subject: [mapserver-users] 3.5 version // map file on the fly Message-ID: On 3.5, the release should come in early June. There are still a number of docs that need work and of course source is still undergoing final changes but it should be real soon. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Jean-Fran?ois MONY 05/29/01 03:48AM >>> Hi everybody, I'm using mapserver 3.4 with PHP/MapScript to build a site. I have two questions : - the first is about the 3.5 version I saw the new functions or organisation of tis version and I find it very interresting. I' d like to know if there is a date for the release of this version, for me to know if I can plan to use this version for the last version of my site. - the second is to know if somebody have built a site that write a .map file based on a form answer and the informations in a database ? My first idea was to built a map object directly without a map file but it doesn't work ! Thanks, Jef From tomkralidis at hotmail.com Thu May 31 09:59:05 2001 From: tomkralidis at hotmail.com (Tom Kralidis) Date: Thu, 31 May 2001 12:59:05 -0400 Subject: [mapserver-users] JSObject in applet Message-ID: List, Has anyone tried running a mapplet'd application on Netscape 6.01? I tried and the applet can't seem to get past the init() stage and just hangs. ..Tom >From: kenboss >Reply-To: kenboss >To: sylvain.speh at CLERMONT.cemagref.fr, mapserver-users at lists.gis.umn.edu >Subject: RE: [mapserver-users] JSObject in applet >Date: Thu, 31 May 2001 10:49:21 -0500 (CDT) >MIME-Version: 1.0 >Received: from [128.101.73.109] by hotmail.com (3.2) with ESMTP id >MHotMailBCDFC050006340042A198065496DFABE0; Thu May 31 09:46:16 2001 >Received: (from majordom at localhost)by lists.gis.umn.edu (8.9.3+Sun/8.9.1) >id KAA22191for mapserver-users-list; Thu, 31 May 2001 10:55:33 -0500 (CDT) >Received: from co5.dnr.state.mn.us (gwgate.dnr.state.mn.us >[156.98.35.249])by lists.gis.umn.edu (8.9.3+Sun/8.9.1) with ESMTP id >KAA22187for ; Thu, 31 May 2001 10:55:32 >-0500 (CDT) >Received: from dilbert.dnr.state.mn.usby co5.dnr.state.mn.us; Thu, 31 May >2001 10:51:02 -0500 >Received: from philbert.dnr.state.mn.us (philbert [156.99.191.240])by >dilbert.dnr.state.mn.us (8.9.3+Sun/8.9.1) with ESMTP id KAA20999;Thu, 31 >May 2001 10:51:09 -0500 (CDT) >Received: from philbert (philbert [156.99.191.240])by >philbert.dnr.state.mn.us (8.9.3+Sun/8.9.1) with SMTP id KAA21021;Thu, 31 >May 2001 10:49:21 -0500 (CDT) >From owner-mapserver-users at lists.gis.umn.edu Thu May 31 09:46:59 2001 >X-GWIA: Thu, 31 May 2001 10:51:02 -0500; dilbert.dnr.state.mn.us >Message-Id: <200105311549.KAA21021 at philbert.dnr.state.mn.us> >Content-MD5: WVLJRG+cl0DBz6fmXVlK8A== >X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.3.5 SunOS 5.7 sun4u sparc >X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by lists.gis.umn.edu id >KAA22188 >Sender: owner-mapserver-users at lists.gis.umn.edu >Precedence: bulk > >And just to save you the half hour I spent looking for it, it's at >http://www.microsoft.com/java/vm/dl_vm40.htm. > >(It might not be that hard to find if you're familiar with the MS website, >but >searches for Java Virtual Machine or JVM turn up nothing useful. Funny, but >on >their website the Java Virtual Machine is known as the Microsoft Virtual >Machine, and JVM = Microsoft VM. Sheesh.) > >--Ken > > > IE 5 as shipped has a brain-dead JRE. You can download a newer version >from >Microsoft > > that works with LiveConnect just fine. > > > > Steve > > > > Stephen Lime > > Internet Applications Analyst > > > > Minnesota DNR > > 500 Lafayette Road > > St. Paul, MN 55155 > > 651-297-2937 > > > > >>> Speh Sylvain 05/31/01 03:04AM > >>> > > Hi, > > > > 1) > > I sent a mail the 19th of April, because we couldn't run straightly the > > fifth example on our IE5/Apache system (IE5 doesn't cope with the >Netscape > > libraries too ? ;-)) ). The JSObject is effectively provided with >Netscape > > in it's java40.jar ( 1848k or so ) file. > > It's also in the jdk, in the jaws.jar file, but I had problems with the >jdk > > 1.3 release of it. > > > > 2) > > I've heard (I don't use, so I'm not sure of that) that ArcView could > > generate some mapfile ( with UNIX line separators and slashes ;-() ), > > javascript and Java classes and files. I've some such files, so can I >tell > > you that, if you'll use them, you'll have to cope with the > > netscape.javascript package with Java, or with the java40 jarfile. > > > > For my own, I gave up a fortnight ago, but I will have to make it run as > > soon as possible. > > > > -----Message d'origine----- > > De : Michael Hearne [mailto:Michael.Hearne at noaa.gov] > > Envoy? : mercredi 30 mai 2001 19:45 > > ? : mapserver-users at lists.gis.umn.edu > > Objet : [mapserver-users] JSObject in applet > > > > > > I've just been testing a MapServer app, using Steve's mapimage applet, > > on some older browsers we have, and ran into this error on Internet > > Explorer 3.0: > > > > java.lang.ClassNotFoundException: netscape.javascript.JSObject > > > > I can guess _why_ it doesn't work [the "netscape" part might have > > something to do with it :)], but I'm curious if there is a workaround > > for older versions of IE, like including the JSObject as a jar file that > > the user downloads or something? (That would probably be a really > > horrendous solution, particularly for users w/ modem, but it's all I > > could think of.) > > > > Thanks, > > > > Mike Hearne > > -- > > Michael G. Hearne email: Michael.Hearne at noaa.gov > > Coastal Remote Sensing phone: 843 740-1281 > > TPMC/NOAA Coastal Services Center fax: 843 740-1312 > > 2234 S. Hobson Ave., Charleston, SC 29407 > > > > > > > _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From steve.lime at dnr.state.mn.us Thu May 31 10:14:46 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 31 May 2001 12:14:46 -0500 Subject: [mapserver-users] JSObject in applet Message-ID: Netscape 6+ doesn't support LiveConnect yet. It is in the W3C scripting specs though so I don't think it's a dead technology. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Tom Kralidis" 05/31/01 11:59AM >>> List, Has anyone tried running a mapplet'd application on Netscape 6.01? I tried and the applet can't seem to get past the init() stage and just hangs. ..Tom >From: kenboss >Reply-To: kenboss >To: sylvain.speh at CLERMONT.cemagref.fr, mapserver-users at lists.gis.umn.edu >Subject: RE: [mapserver-users] JSObject in applet >Date: Thu, 31 May 2001 10:49:21 -0500 (CDT) >MIME-Version: 1.0 >Received: from [128.101.73.109] by hotmail.com (3.2) with ESMTP id >MHotMailBCDFC050006340042A198065496DFABE0; Thu May 31 09:46:16 2001 >Received: (from majordom at localhost)by lists.gis.umn.edu (8.9.3+Sun/8.9.1) >id KAA22191for mapserver-users-list; Thu, 31 May 2001 10:55:33 -0500 (CDT) >Received: from co5.dnr.state.mn.us (gwgate.dnr.state.mn.us >[156.98.35.249])by lists.gis.umn.edu (8.9.3+Sun/8.9.1) with ESMTP id >KAA22187for ; Thu, 31 May 2001 10:55:32 >-0500 (CDT) >Received: from dilbert.dnr.state.mn.usby co5.dnr.state.mn.us; Thu, 31 May >2001 10:51:02 -0500 >Received: from philbert.dnr.state.mn.us (philbert [156.99.191.240])by >dilbert.dnr.state.mn.us (8.9.3+Sun/8.9.1) with ESMTP id KAA20999;Thu, 31 >May 2001 10:51:09 -0500 (CDT) >Received: from philbert (philbert [156.99.191.240])by >philbert.dnr.state.mn.us (8.9.3+Sun/8.9.1) with SMTP id KAA21021;Thu, 31 >May 2001 10:49:21 -0500 (CDT) >From owner-mapserver-users at lists.gis.umn.edu Thu May 31 09:46:59 2001 >X-GWIA: Thu, 31 May 2001 10:51:02 -0500; dilbert.dnr.state.mn.us >Message-Id: <200105311549.KAA21021 at philbert.dnr.state.mn.us> >Content-MD5: WVLJRG+cl0DBz6fmXVlK8A== >X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.3.5 SunOS 5.7 sun4u sparc >X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by lists.gis.umn.edu id >KAA22188 >Sender: owner-mapserver-users at lists.gis.umn.edu >Precedence: bulk > >And just to save you the half hour I spent looking for it, it's at >http://www.microsoft.com/java/vm/dl_vm40.htm. > >(It might not be that hard to find if you're familiar with the MS website, >but >searches for Java Virtual Machine or JVM turn up nothing useful. Funny, but >on >their website the Java Virtual Machine is known as the Microsoft Virtual >Machine, and JVM = Microsoft VM. Sheesh.) > >--Ken > > > IE 5 as shipped has a brain-dead JRE. You can download a newer version >from >Microsoft > > that works with LiveConnect just fine. > > > > Steve > > > > Stephen Lime > > Internet Applications Analyst > > > > Minnesota DNR > > 500 Lafayette Road > > St. Paul, MN 55155 > > 651-297-2937 > > > > >>> Speh Sylvain 05/31/01 03:04AM > >>> > > Hi, > > > > 1) > > I sent a mail the 19th of April, because we couldn't run straightly the > > fifth example on our IE5/Apache system (IE5 doesn't cope with the >Netscape > > libraries too ? ;-)) ). The JSObject is effectively provided with >Netscape > > in it's java40.jar ( 1848k or so ) file. > > It's also in the jdk, in the jaws.jar file, but I had problems with the >jdk > > 1.3 release of it. > > > > 2) > > I've heard (I don't use, so I'm not sure of that) that ArcView could > > generate some mapfile ( with UNIX line separators and slashes ;-() ), > > javascript and Java classes and files. I've some such files, so can I >tell > > you that, if you'll use them, you'll have to cope with the > > netscape.javascript package with Java, or with the java40 jarfile. > > > > For my own, I gave up a fortnight ago, but I will have to make it run as > > soon as possible. > > > > -----Message d'origine----- > > De : Michael Hearne [mailto:Michael.Hearne at noaa.gov] > > Envoy? : mercredi 30 mai 2001 19:45 > > ? : mapserver-users at lists.gis.umn.edu > > Objet : [mapserver-users] JSObject in applet > > > > > > I've just been testing a MapServer app, using Steve's mapimage applet, > > on some older browsers we have, and ran into this error on Internet > > Explorer 3.0: > > > > java.lang.ClassNotFoundException: netscape.javascript.JSObject > > > > I can guess _why_ it doesn't work [the "netscape" part might have > > something to do with it :)], but I'm curious if there is a workaround > > for older versions of IE, like including the JSObject as a jar file that > > the user downloads or something? (That would probably be a really > > horrendous solution, particularly for users w/ modem, but it's all I > > could think of.) > > > > Thanks, > > > > Mike Hearne > > -- > > Michael G. Hearne email: Michael.Hearne at noaa.gov > > Coastal Remote Sensing phone: 843 740-1281 > > TPMC/NOAA Coastal Services Center fax: 843 740-1312 > > 2234 S. Hobson Ave., Charleston, SC 29407 > > > > > > > _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From rchavez at perseus.tufts.edu Thu May 31 10:34:31 2001 From: rchavez at perseus.tufts.edu (Robert Chavez) Date: Thu, 31 May 2001 13:34:31 -0400 Subject: [mapserver-users] JSObject in applet References: Message-ID: <006601c0e9f7$f3978000$38024082@perseus.tufts.edu> I've tried this too. The problem is that LiveConnect isn't fully supported in Netscape 6. According to their web site this issue is supposed to be addressed in "a future release", no specifics as to which release, unfortunately. Rob Chavez ----- Original Message ----- From: "Tom Kralidis" To: ; ; Sent: Thursday, May 31, 2001 12:59 PM Subject: RE: [mapserver-users] JSObject in applet > List, > > Has anyone tried running a mapplet'd application on Netscape 6.01? I tried > and the applet can't seem to get past the init() stage and just hangs. > > ..Tom > > > >From: kenboss > >Reply-To: kenboss > >To: sylvain.speh at CLERMONT.cemagref.fr, mapserver-users at lists.gis.umn.edu > >Subject: RE: [mapserver-users] JSObject in applet > >Date: Thu, 31 May 2001 10:49:21 -0500 (CDT) > >MIME-Version: 1.0 > >Received: from [128.101.73.109] by hotmail.com (3.2) with ESMTP id > >MHotMailBCDFC050006340042A198065496DFABE0; Thu May 31 09:46:16 2001 > >Received: (from majordom at localhost)by lists.gis.umn.edu (8.9.3+Sun/8.9.1) > >id KAA22191for mapserver-users-list; Thu, 31 May 2001 10:55:33 -0500 (CDT) > >Received: from co5.dnr.state.mn.us (gwgate.dnr.state.mn.us > >[156.98.35.249])by lists.gis.umn.edu (8.9.3+Sun/8.9.1) with ESMTP id > >KAA22187for ; Thu, 31 May 2001 10:55:32 > >-0500 (CDT) > >Received: from dilbert.dnr.state.mn.usby co5.dnr.state.mn.us; Thu, 31 May > >2001 10:51:02 -0500 > >Received: from philbert.dnr.state.mn.us (philbert [156.99.191.240])by > >dilbert.dnr.state.mn.us (8.9.3+Sun/8.9.1) with ESMTP id KAA20999;Thu, 31 > >May 2001 10:51:09 -0500 (CDT) > >Received: from philbert (philbert [156.99.191.240])by > >philbert.dnr.state.mn.us (8.9.3+Sun/8.9.1) with SMTP id KAA21021;Thu, 31 > >May 2001 10:49:21 -0500 (CDT) > >From owner-mapserver-users at lists.gis.umn.edu Thu May 31 09:46:59 2001 > >X-GWIA: Thu, 31 May 2001 10:51:02 -0500; dilbert.dnr.state.mn.us > >Message-Id: <200105311549.KAA21021 at philbert.dnr.state.mn.us> > >Content-MD5: WVLJRG+cl0DBz6fmXVlK8A== > >X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.3.5 SunOS 5.7 sun4u sparc > >X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by lists.gis.umn.edu id > >KAA22188 > >Sender: owner-mapserver-users at lists.gis.umn.edu > >Precedence: bulk > > > >And just to save you the half hour I spent looking for it, it's at > >http://www.microsoft.com/java/vm/dl_vm40.htm. > > > >(It might not be that hard to find if you're familiar with the MS website, > >but > >searches for Java Virtual Machine or JVM turn up nothing useful. Funny, but > >on > >their website the Java Virtual Machine is known as the Microsoft Virtual > >Machine, and JVM = Microsoft VM. Sheesh.) > > > >--Ken > > > > > IE 5 as shipped has a brain-dead JRE. You can download a newer version > >from > >Microsoft > > > that works with LiveConnect just fine. > > > > > > Steve > > > > > > Stephen Lime > > > Internet Applications Analyst > > > > > > Minnesota DNR > > > 500 Lafayette Road > > > St. Paul, MN 55155 > > > 651-297-2937 > > > > > > >>> Speh Sylvain 05/31/01 03:04AM > > >>> > > > Hi, > > > > > > 1) > > > I sent a mail the 19th of April, because we couldn't run straightly the > > > fifth example on our IE5/Apache system (IE5 doesn't cope with the > >Netscape > > > libraries too ? ;-)) ). The JSObject is effectively provided with > >Netscape > > > in it's java40.jar ( 1848k or so ) file. > > > It's also in the jdk, in the jaws.jar file, but I had problems with the > >jdk > > > 1.3 release of it. > > > > > > 2) > > > I've heard (I don't use, so I'm not sure of that) that ArcView could > > > generate some mapfile ( with UNIX line separators and slashes ;-() ), > > > javascript and Java classes and files. I've some such files, so can I > >tell > > > you that, if you'll use them, you'll have to cope with the > > > netscape.javascript package with Java, or with the java40 jarfile. > > > > > > For my own, I gave up a fortnight ago, but I will have to make it run as > > > soon as possible. > > > > > > -----Message d'origine----- > > > De : Michael Hearne [mailto:Michael.Hearne at noaa.gov] > > > Envoy? : mercredi 30 mai 2001 19:45 > > > ? : mapserver-users at lists.gis.umn.edu > > > Objet : [mapserver-users] JSObject in applet > > > > > > > > > I've just been testing a MapServer app, using Steve's mapimage applet, > > > on some older browsers we have, and ran into this error on Internet > > > Explorer 3.0: > > > > > > java.lang.ClassNotFoundException: netscape.javascript.JSObject > > > > > > I can guess _why_ it doesn't work [the "netscape" part might have > > > something to do with it :)], but I'm curious if there is a workaround > > > for older versions of IE, like including the JSObject as a jar file that > > > the user downloads or something? (That would probably be a really > > > horrendous solution, particularly for users w/ modem, but it's all I > > > could think of.) > > > > > > Thanks, > > > > > > Mike Hearne > > > -- > > > Michael G. Hearne email: Michael.Hearne at noaa.gov > > > Coastal Remote Sensing phone: 843 740-1281 > > > TPMC/NOAA Coastal Services Center fax: 843 740-1312 > > > 2234 S. Hobson Ave., Charleston, SC 29407 > > > > > > > > > > > > > _________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From steve.lime at dnr.state.mn.us Thu May 31 11:12:27 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 31 May 2001 13:12:27 -0500 Subject: [mapserver-users] RE: querymaps Message-ID: Drawing queried layers is a 2 step process depending on the style of the query map. Actually only style=hilite results in the two passes. That's where using a small value for MINDISTANCE in the label object will remove the duplicate. Styles normal or selected run through only once. The selected style just limits the set of features to be drawn up front. Only one label is shown in either case. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Woody Wallace 05/22/01 09:43AM >>> > 4) I have the same problem with multiple labels that another person on > the list was having. I realize there is a work around. However, I was > wondering if this was a bug, or a problem with my .map file. Could it > be that I'm requesting that it be drawn twice? > As a followup to question 4 I posed yesterday, I continued playing with the querymap request and layer combinations. It appears that: 1) using style=hilite: Mapserv draws all requested layers, the query layer (including the unhilited version of the higlited feature), then the hilited feature. Labels are drawn for all requested layers, the query layer, and then again for the hilited feature, resulting in duplicate labels for the hilited feature. 2) using style=selected: Mapserv draws all requested layers, then the selected feature. Labels are drawn for all requested layers, then the selected feature, resulting in a single instance of the label for that feature. 3) in both cases, if a layer is specified as a qlayer and a normal layer, it is only drawn as a qlayer. Otherwise, you could have tripple labels and there are none. Woody WI-SCO From steve.lime at dnr.state.mn.us Thu May 31 11:27:46 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 31 May 2001 13:27:46 -0500 Subject: [mapserver-users] Persistent Change from a Form Message-ID: Well, there is an experimental feature in 3.4 that allows you to cache queries and use them over and over again. Before I try to explain how it works let me work up a demo over the next couple of days to add to the test suite. It should address your problem nicely. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Hankley, Chip" 05/31/01 10:43AM >>> I have a SELECT element on a form that is populated with a bunch of values from a shapefile. The user can select a value, then hit a button, which sends a modification to mapserv using this type of syntax: Map__class_expression This works great. The polygon that is represented by the value in the list "lights up." Now I want it to stay "selected." If I understand this syntax right, it's kind of like I'm making a "virtual" change to the map file. If I zoom in or out, pan, anything, it reads the original (non-virtual) map file and the polygon is no longer "selected." How can I do this (I'm bucking for the easy solution... I haven't delved into MapScript or anything like that yet). Thanks! Chip From ed at topozone.com Thu May 31 12:06:04 2001 From: ed at topozone.com (Ed McNierney) Date: Thu, 31 May 2001 15:06:04 -0400 Subject: [mapserver-users] Standalone Image Catalog creation tool? Message-ID: <13858AA1A74F30419F319ACB66A9D122CCCF@mercator.topozone.com> Does anyone know of an Image Catalog creation tool that will run OUTSIDE of ArcView? I just want something that can be pointed to a directory of TIFF/TFW files and will write out the same DBF file that the imgcat.ave script will. It needs to run under Windows. I need to create some tile index shapefiles for thousands of images at a time; loading them all into ArcView just to write a DBF file is a waste of time. I'm about to just go ahead and write one, but I figured I'd ask first.... - Ed Ed McNierney Chief Mapmaker TopoZone.com (978) 251-4242 From Chip.Hankley at GASAI.Com Thu May 31 12:36:15 2001 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Thu, 31 May 2001 14:36:15 -0500 Subject: [mapserver-users] PHP4.0.5? Message-ID: <3DFF131E4E6D2D4198CDD758F35A53536E3CAD@postoffice.GASAI.Com> I'm trying to get PHP configured on my machine. I downloaded 4.0.5 and installed on PWS. Works fine. I downloaded the php_mapscript.dll (php4.0.4_mapscript_dll-20010108.zip) from the web site, and placed the dll in my C:\php\ directory. I've downloaded the 3.3 and 3.4 source to obtain the phpinfo_mapscritpt.phtml file. Here's by problem... When I try to load the php file, I get the following error: Warning: Unable to load dynamic library 'C:\php/php3_mapscript.dll' - The specified module could not be found. in C:\Inetpub\wwwroot\PHP_tests\MapScript\phpinfo_mapscript.php on line 17 The rest of the page loads. I've tried putting the *.dll in the same directory as the *.php file, the cgi-bin dirctory, and the c:\php directory. I've also tried changing the php.ini files extension_dir line to c:\php\. None of this seems to work. Any ideas on what I'm doing wrong? Chip Chip Hankley, GIS Coordinator Graef, Anhalt, Schloemer & Associates, Inc. 5126 West Terrace Drive Madison, Wisconsin 53718-8343 Telephone: (608) 245-1969 FAX: (608) 242-0787 http://www.gasai.com/ ChipHankley at GASAI.com From ed at topozone.com Thu May 31 13:54:49 2001 From: ed at topozone.com (Ed McNierney) Date: Thu, 31 May 2001 16:54:49 -0400 Subject: [mapserver-users] Standalone Image Catalog creation tool? Message-ID: <13858AA1A74F30419F319ACB66A9D122CCD2@mercator.topozone.com> Thanks. I knew I had stumbled across it - I cringed (just a bit) when I noticed my own name (replying to the thread) near the top of the page you referred me to! - Ed -----Original Message----- From: Andrea Goethals [mailto:andreag at geoplan.ufl.edu] Sent: Thursday, May 31, 2001 4:52 PM To: Ed McNierney Subject: Re: [mapserver-users] Standalone Image Catalog creation tool? Someone did write one. See the second email on: http://mapserver.gis.umn.edu/cgi-bin/wilma_hiliter/mapserver-users/0104/ msg00154.html?line=56#hilite > > Does anyone know of an Image Catalog creation tool that will run OUTSIDE > of ArcView? I just want something that can be pointed to a directory of > TIFF/TFW files and will write out the same DBF file that the imgcat.ave > script will. It needs to run under Windows. > > I need to create some tile index shapefiles for thousands of images at a > time; loading them all into ArcView just to write a DBF file is a waste > of time. > > I'm about to just go ahead and write one, but I figured I'd ask > first.... > > - Ed > > Ed McNierney > Chief Mapmaker > TopoZone.com > (978) 251-4242 -- @-------------------------@ | Andrea Goethals | | andreag at geoplan.ufl.edu | | GeoPlan Center | | University of Florida | @-------------------------@ From kafka at email.cz Thu May 31 22:58:13 2001 From: kafka at email.cz (Stepan Kafka) Date: Fri, 1 Jun 2001 07:58:13 +0200 Subject: [mapserver-users] PHP4.0.5? In-Reply-To: <3DFF131E4E6D2D4198CDD758F35A53536E3CAD@postoffice.GASAI.Com> Message-ID: <000b01c0ea5f$d7d5a730$fb01a8c0@gis2.oku-kh.cz> The script attempts load the old version of mapscript dll library named php3_mapscript.dll. The library name is php_mapscript.dll now. Please, rewrite it in your source code (dl() command) or PHP configuration file. Stepan Kafka > -----P?vodn? zpr?va----- > Od: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]za u?ivatele Hankley, > Chip > Odesl?no: 31. kv?tna 2001 21:36 > Komu: MapServer List (E-mail) > P?edm?t: [mapserver-users] PHP4.0.5? > > > I'm trying to get PHP configured on my machine. > > I downloaded 4.0.5 and installed on PWS. Works fine. > > I downloaded the php_mapscript.dll (php4.0.4_mapscript_dll-20010108.zip) > from the web site, and placed the dll in my C:\php\ directory. > > I've downloaded the 3.3 and 3.4 source to obtain the > phpinfo_mapscritpt.phtml file. > > Here's by problem... > > When I try to load the php file, I get the following error: > > Warning: Unable to load dynamic library 'C:\php/php3_mapscript.dll' - The > specified module could not be found. in > C:\Inetpub\wwwroot\PHP_tests\MapScript\phpinfo_mapscript.php on line 17 > > The rest of the page loads. > > I've tried putting the *.dll in the same directory as the *.php file, the > cgi-bin dirctory, and the c:\php directory. I've also tried changing the > php.ini files extension_dir line to c:\php\. None of this seems to work. > > Any ideas on what I'm doing wrong? > > Chip > > Chip Hankley, GIS Coordinator > Graef, Anhalt, Schloemer & Associates, Inc. > 5126 West Terrace Drive > Madison, Wisconsin 53718-8343 > Telephone: (608) 245-1969 > FAX: (608) 242-0787 > http://www.gasai.com/ > ChipHankley at GASAI.com > >