From mewsick@web.de Mon Sep 1 08:54:24 2003 From: mewsick@web.de (Michael Heldt) Date: Mon, 1 Sep 2003 09:54:24 +0200 Subject: [Mapserver-users] pdf output Message-ID: <200309010754.h817sOQ03580@mailgate5.cinetic.de>

Michael –

 

Does the map file/request work = correctly if you do NOT create PDF output?  That is, if you create a PNG or = JPEG image, for example?

 

      =       - Ed

 

Ed McNierney

President and Chief = Mapmaker

TopoZone.com / Maps a la carte, = Inc.

73 Princeton Street, Suite = 305

North Chelmsford, MA  = 01863

Phone: (978) 251-4242  Fax: = (978) 251-1396

ed@topozone.com

 

-----Original = Message-----
From: Michael Heldt [mailto:mewsick@web.de]
Sent: Monday, September = 01, 2003 3:54 AM
To: = mapserver-users@lists.gis.umn.edu
Subject: = [Mapserver-users] pdf output

 

 

Hi = List,

I was trying = to create a pdf using the outputformat tag, everything’s working fine until I = try to include an annotation layer… As long as i use polygon, line and = point layers a pdf is created. When I add the annotation layer Mapserver = is crashing... Can I use annotation layers at all? Or is there something = wrong in my mapfile? I'll add a rough sample of my mapfile below this = message. Maybe you can help me find the problem if there is one. =

Thanks in = advance

Micha

>>> = Mapserver 4.0, W2K, Apache

NAME = PDFTest
   IMAGETYPE pdf
   EXTENT -439.1858 -720.1234 523.3631 180.1234
   SIZE 1200 1050
   STATUS ON
   UNITS meters
   SHAPEPATH "daten"
   FONTSET   = "d:/my/path/to/the/fonts.list"

WEB
   TEMPLATE templ_bplan.html
   IMAGEPATH "d:\there\are\the\pics\"
   IMAGEURL "/the/pics/"
   LOG "log.txt"
END

 OUTPUTFORMAT
   NAME pdf
   MIMETYPE "application/x-pdf"
   DRIVER pdf
   EXTENSION "pdf"
 END

... ... = ...

LAYER
  NAME POLYLINES
  DATA oralllin
  STATUS DEFAULT
  TYPE LINE
   
  CLASS
    EXPRESSION /./ 
    COLOR 6 131 255
  END  
END 

... ... = ...

LAYER # = Label
  NAME LABELS
  DATA oralllabels
  STATUS DEFAULT
  TYPE ANNOTATION
 
  LABELITEM "LABEL"
  CLASSITEM "LAYER"
 
  CLASS 
    EXPRESSION ('[LAYER]' eq 'Verfahr' and '[LABEL]' ne 'RECHTSGRUNDLAGE' and '[LABEL]' ne 'VERFAHRENSVERMERKE:')
    #EXPRESSION /./
    LABEL
      COLOR 0 0 0
      TYPE TrueType
      FONT Arial
      Size 6
      POSITION cr
      PARTIALS TRUE
      ANTIALIAS TRUE
      FORCE TRUE
    END # end of label
  END # end of  class object
END
END   # end of mapfile

_________________________________________________________________________= _
Die sicherste Form der Kommunikation: E-Mails verschluesseln, = Spam-Filter,
Adressverifizierung, digitale Unterschrift: http://freemail.web.de _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users=00 ------_=_NextPart_001_01C370C5.626AA8B2-- From nf10@hotmail.com Mon Sep 1 21:30:31 2003 From: nf10@hotmail.com (Jeff L.) Date: Mon, 01 Sep 2003 20:30:31 +0000 Subject: [Mapserver-users] Zoom In to a defined area Message-ID: Hi, By knowing the map coordinates of a specific area (xMin, yMin, xMax and yMax), i would like to zoom in to such area. I have a combo box with defined areas to zoom in, i’m using CGI and JavaScript to change map extents, but no success so far. My question would be how to pass the map extents and may be the center of the image is also required to change? Here is my code snippet: ....
.... .... ....
Any help is appreciated Jeff Lacoste _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From palle@mail-online.dk Mon Sep 1 21:58:05 2003 From: palle@mail-online.dk (Palle Due Larsen) Date: Mon, 01 Sep 2003 22:58:05 +0200 Subject: [Mapserver-users] Zoom In to a defined area In-Reply-To: References: Message-ID: You should name your > > > > > > > .... > > > > .... > > > > Any help is appreciated > > Jeff Lacoste > > _________________________________________________________________ > Protect your PC - get McAfee.com VirusScan Online > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users Få en gratis emailkonto her: www.mail-online.dk ----------------------------------------------- Deltag i en lille konkurrence på nettet, og vind et gavekort på 50.000 kroner... KLIK HER: www.directoffice.dk/konkurrence From Armin Burger Mon Sep 1 23:22:56 2003 From: Armin Burger (Armin Burger) Date: Mon, 1 Sep 2003 23:22:56 +0100 Subject: [Mapserver-users] Zoom In to a defined area Message-ID: <20030901212327.LOKJ5266.viefep13-int.chello.at@libero.it> Jeff, try something like Armin > Hi, > By knowing the map coordinates of a specific area (xMin, yMin, xMax and > yMax), i would like to zoom in to such area. I have a combo box with defined > areas to zoom in, i’m using CGI and JavaScript to change map extents, but no > success so far. My question would be how to pass the map extents and may be > the center of the image is also required to change? Here is my code snippet: > .... > >
> .... > > .... > > > .... >
> Any help is appreciated > Jeff Lacoste > _________________________________________________________________ > Protect your PC - get McAfee.com VirusScan Online > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From woodbri@swoodbridge.com Tue Sep 2 00:02:41 2003 From: woodbri@swoodbridge.com (woodbri@swoodbridge.com) Date: Mon, 01 Sep 2003 19:02:41 -0400 Subject: [Mapserver-users] pdf output In-Reply-To: <13858AA1A74F30419F319ACB66A9D1222C0104@mercator.topozone.com> Message-ID: <3F5397D1.8933.18BA0654@localhost> Michael, I think I remember running into a problem with libpdf that had to do with the fact that I had pdf support built into PHP and into mapserver/mapscript. In my case, the PHP used its own internal libs and mapserver used the system libs which resulted in crashing. But I think this was specific to php_mapscript. Currently ./configure does not detect this and prevent you from building a bad configuration. For details see http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=370 If this turns out to be your problem also please make a note in this bug so we can track how big this problem is for other people. Thanks, -Steve W. > -----Original Message----- > From: Michael Heldt [mailto:mewsick@web.de] > Sent: Monday, September 01, 2003 3:54 AM > To: mapserver-users@lists.gis.umn.edu > Subject: [Mapserver-users] pdf output > > > > > > Hi List, > > I was trying to create a pdf using the outputformat tag, everything's > working fine until I try to include an annotation layer... As long as > i use polygon, line and point layers a pdf is created. When I add the > annotation layer Mapserver is crashing... Can I use annotation layers > at all? Or is there something wrong in my mapfile? I'll add a rough > sample of my mapfile below this message. Maybe you can help me find > the problem if there is one. > > Thanks in advance > > Micha > > >>> Mapserver 4.0, W2K, Apache > > NAME PDFTest > IMAGETYPE pdf > EXTENT -439.1858 -720.1234 523.3631 180.1234 > SIZE 1200 1050 > STATUS ON > UNITS meters > SHAPEPATH "daten" > FONTSET "d:/my/path/to/the/fonts.list" > > WEB > TEMPLATE templ_bplan.html > IMAGEPATH "d:\there\are\the\pics\" > IMAGEURL "/the/pics/" > LOG "log.txt" > END > > OUTPUTFORMAT > NAME pdf > MIMETYPE "application/x-pdf" > DRIVER pdf > EXTENSION "pdf" > END > > ... ... ... > > LAYER > NAME POLYLINES > DATA oralllin > STATUS DEFAULT > TYPE LINE > > CLASS > EXPRESSION /./ > COLOR 6 131 255 > END > END > > ... ... ... > > LAYER # Label > NAME LABELS > DATA oralllabels > STATUS DEFAULT > TYPE ANNOTATION > > LABELITEM "LABEL" > CLASSITEM "LAYER" > > CLASS > EXPRESSION ('[LAYER]' eq 'Verfahr' and '[LABEL]' ne > 'RECHTSGRUNDLAGE' and '[LABEL]' ne 'VERFAHRENSVERMERKE:') > #EXPRESSION /./ > LABEL > COLOR 0 0 0 > TYPE TrueType > FONT Arial > Size 6 > POSITION cr > PARTIALS TRUE > ANTIALIAS TRUE > FORCE TRUE > END # end of label > END # end of class object > END > END # end of mapfile > > ______________________________________________________________________ > __ __ Die sicherste Form der Kommunikation: E-Mails verschluesseln, > Spam-Filter, Adressverifizierung, digitale Unterschrift: > http://freemail.web.de > _______________________________________________ Mapserver-users > mailing list Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From nf10@hotmail.com Tue Sep 2 03:58:32 2003 From: nf10@hotmail.com (Jeff L.) Date: Tue, 02 Sep 2003 02:58:32 +0000 Subject: [Mapserver-users] Zoom In to a defined area Message-ID: Thank you Armin for your reply. I tried your suggestion and it works. However, setting the name to "mapext" makes the standard "zoom in" and "zoom out" functions unusable as "mapext" is now overriding the MapServer "mapext" variable. When I try zoom in, i have this error "loadForm(): Web application error. Not enough arguments for mapext". I tried to change the name of tha variable to "ViewArea" then setting mapext to "ViewArea" value, but no success. Here is my code snippet: function AreaSelected() { if (document.forms[0].ViewArea.selectedIndex != 0 && document.forms[0].ViewArea.selectedIndex !=1) { mapext = document.forms[0].ViewArea; // not sure about this document.forms[0].submit(); } } ... Jeff Lacoste >From: Armin Burger >Reply-To: Armin Burger >To: nf10@hotmail.com, mapserver-users@lists.gis.umn.edu >Subject: Re: [Mapserver-users] Zoom In to a defined area >Date: Mon, 1 Sep 2003 23:22:56 +0100 > >Jeff, > >try something like > > > >Armin > > > > Hi, > > > By knowing the map coordinates of a specific area (xMin, yMin, xMax and > > yMax), i would like to zoom in to such area. I have a combo box with >defined > > areas to zoom in, i’m using CGI and JavaScript to change map extents, >but no > > success so far. My question would be how to pass the map extents and >may be > > the center of the image is also required to change? Here is my code >snippet: > > .... > > > > > >
> > > .... > > > > > > .... > > > > > > > .... > >
> > > > Any help is appreciated > > > Jeff Lacoste > > > _________________________________________________________________ > > Protect your PC - get McAfee.com VirusScan Online > > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > > > _______________________________________________ > > Mapserver-users mailing list > > Mapserver-users@lists.gis.umn.edu > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From dell.yan@chinaquest.com Tue Sep 2 07:07:24 2003 From: dell.yan@chinaquest.com (DellYan) Date: Tue, 2 Sep 2003 14:07:24 +0800 Subject: [Mapserver-users] hi all:any one have binary python mapscript suit mapserver 4.0 running on windows version? Message-ID: <3847F35B08A3E342B56E79AD3393A6A20139AC92@nwcb-sh-mail.corp.nwcyberbase.com> This is a multi-part message in MIME format. ------_=_NextPart_001_01C37118.7A4D8D84 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable if have ,can distribute to public ?? =20 =20 =20 thanks a lot ------_=_NextPart_001_01C37118.7A4D8D84 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
if have ,can = distribute to=20 public ??
 
 
 
thanks a=20 lot
------_=_NextPart_001_01C37118.7A4D8D84-- From palle@mail-online.dk Tue Sep 2 07:20:29 2003 From: palle@mail-online.dk (Palle Due Larsen) Date: Tue, 02 Sep 2003 08:20:29 +0200 Subject: [Mapserver-users] Zoom In to a defined area In-Reply-To: References: Message-ID: Sorry for my last reply, I hadn't seen those where map coordinates. Now on to your present problem. The line mapext = document.forms[0].ViewArea should be mapext = document.forms[0].ViewArea.value; Best regards Palle Due Larsen Carl Bro GIS&IT -----Original Message----- From: "Jeff L." To: armin.burger@libero.it, mapserver-users@lists.gis.umn.edu Date: Tue, 02 Sep 2003 02:58:32 +0000 Subject: Re: [Mapserver-users] Zoom In to a defined area > Thank you Armin for your reply. > I tried your suggestion and it works. However, setting the name to > "mapext" > makes the standard "zoom in" and "zoom out" functions unusable as > "mapext" > is now overriding the MapServer "mapext" variable. When I try zoom > in, i > have this error "loadForm(): Web application error. Not enough > arguments for > mapext". > > I tried to change the name of tha variable to "ViewArea" then setting > mapext > to "ViewArea" value, but no success. Here is my code snippet: > > function AreaSelected() > { > if (document.forms[0].ViewArea.selectedIndex != 0 && > document.forms[0].ViewArea.selectedIndex !=1) > { > mapext = document.forms[0].ViewArea; // not sure about > this > document.forms[0].submit(); > } > } > > ... > > > > > Jeff Lacoste > > > > > >From: Armin Burger > >Reply-To: Armin Burger > >To: nf10@hotmail.com, mapserver-users@lists.gis.umn.edu > >Subject: Re: [Mapserver-users] Zoom In to a defined area > >Date: Mon, 1 Sep 2003 23:22:56 +0100 > > > >Jeff, > > > >try something like > > > > > > > >Armin > > > > > > > Hi, > > > > > By knowing the map coordinates of a specific area (xMin, yMin, > xMax and > > > yMax), i would like to zoom in to such area. I have a combo box > with > >defined > > > areas to zoom in, i’m using CGI and JavaScript to change map > extents, > >but no > > > success so far. My question would be how to pass the map extents > and > >may be > > > the center of the image is also required to change? Here is my > code > >snippet: > > > .... > > > > > > > > > >
> > > > > .... > > > > > > > > > > .... > > > > > > > > > > > .... > > >
> > > > > > > Any help is appreciated > > > > > Jeff Lacoste > > > > > _________________________________________________________________ > > > Protect your PC - get McAfee.com VirusScan Online > > > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > > > > > _______________________________________________ > > > Mapserver-users mailing list > > > Mapserver-users@lists.gis.umn.edu > > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > > _________________________________________________________________ > Protect your PC - get McAfee.com VirusScan Online > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users Få en gratis emailkonto her: www.mail-online.dk ----------------------------------------------- Deltag i en lille konkurrence på nettet, og vind et gavekort på 50.000 kroner... KLIK HER: www.directoffice.dk/konkurrence From stephane.riff@cerene.fr Tue Sep 2 07:42:29 2003 From: stephane.riff@cerene.fr (=?ISO-8859-1?Q?St=E9phane_RIFF?=) Date: Tue, 02 Sep 2003 08:42:29 +0200 Subject: [Mapserver-users] QUERYMAP SIZE ? Message-ID: <3F543BD5.2040408@cerene.fr> I want to change the querymap size parameters dynamically with php/mapscript but i didn't see any mapscript object related to querymap. How can i do this ??? THX From giorgio.plazzotta@sarasricerche.it Tue Sep 2 13:20:32 2003 From: giorgio.plazzotta@sarasricerche.it (Giorgio Plazzotta) Date: Tue, 2 Sep 2003 14:20:32 +0200 Subject: [Mapserver-users] problem installing php_mapscript_40.dll References: <20030830170003.16840.28221.Mailman@lists.gis.umn.edu> Message-ID: <003601c3714c$9ac94240$d570a8c0@GIS05> Hi all, i wanted to install and test the simple Gmap application found in the DM Solution download site. There are downloadable versions for 4.0, 3.6 and so on , therefore I decided to start with the last one (4.0) and test it in the my winXP system with apache. I also installed the mapserver-4.0-win32-php4.3.2 distribution, I updated the php to from 4.3.1 to 4.3.3 (probaby not necessary) and then I tried also to test the installation with the phpinfo and dl the php mapscript dll. Of course i also updated the httpd.conf to point at the new php directory and the php.ini under the windows directory to point at the new extension dir containing the dll. I got the error message unable to load the dll though it was there in the proper directory, so i tried to change the php version to 4.3.2 without any positive change. Only renouncing to the php_mapserver:40.dll library solved the problem and therefore I had to use the _36.dll library to make it work. I also had to install the _36 version of the gmap demo cause only changing the name of the library in the gmap75.phtml file was not enough to make it work. Now it all work with mapserver 4 but the mapscript and gmap 3.6 version. Does anybody have an idea of what i did wrong? thanx in advance Giorgio Plazzotta From dlowther@ou.edu Tue Sep 2 14:06:53 2003 From: dlowther@ou.edu (Lowther, David W) Date: Tue, 2 Sep 2003 08:06:53 -0500 Subject: [Mapserver-users] Zoom In to a defined area Message-ID: Jeff, Make a function for the onchange event of your combo box, grab the selected value, and write it to the mapext input element of your form. That should fix you up without messing up your other functions. David Lowther Software Engineer GEO Information Systems University of Oklahoma dlowther@ou.edu (405) 325-3131 http://www.geo.ou.edu > -----Original Message----- > From: Jeff L. [mailto:nf10@hotmail.com] > Sent: Monday, September 01, 2003 9:59 PM > To: armin.burger@libero.it; mapserver-users@lists.gis.umn.edu > Subject: Re: [Mapserver-users] Zoom In to a defined area > > > Thank you Armin for your reply. > I tried your suggestion and it works. However, setting the > name to "mapext" > makes the standard "zoom in" and "zoom out" functions > unusable as "mapext" > is now overriding the MapServer "mapext" variable. When I try > zoom in, i > have this error "loadForm(): Web application error. Not > enough arguments for > mapext". > > I tried to change the name of tha variable to "ViewArea" then > setting mapext > to "ViewArea" value, but no success. Here is my code snippet: > > function AreaSelected() > { > if (document.forms[0].ViewArea.selectedIndex != 0 && > document.forms[0].ViewArea.selectedIndex !=1) > { > mapext = document.forms[0].ViewArea; // not sure about this > document.forms[0].submit(); > } > } > > ... > > > > > Jeff Lacoste > > > > > >From: Armin Burger > >Reply-To: Armin Burger > >To: nf10@hotmail.com, mapserver-users@lists.gis.umn.edu > >Subject: Re: [Mapserver-users] Zoom In to a defined area > >Date: Mon, 1 Sep 2003 23:22:56 +0100 > > > >Jeff, > > > >try something like > > > > > > > >Armin > > > > > > > Hi, > > > > > By knowing the map coordinates of a specific area (xMin, > yMin, xMax > > > and yMax), i would like to zoom in to such area. I have a > combo box > > > with > >defined > > > areas to zoom in, i'm using CGI and JavaScript to change map > > > extents, > >but no > > > success so far. My question would be how to pass the map > extents and > >may be > > > the center of the image is also required to change? Here > is my code > >snippet: > > > .... > > > > > > > > > >
> > > > > .... > > > > > > > > > > .... > > > > > > > type="hidden" name="imgext" value="[mapext]"> .... > > >
> > > > > > > Any help is appreciated > > > > > Jeff Lacoste > > > > > _________________________________________________________________ > > > Protect your PC - get McAfee.com VirusScan Online > > > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > > > > > _______________________________________________ > > > Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu > > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > > _________________________________________________________________ > Protect your PC - get McAfee.com VirusScan Online > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/maps> erver-users > > > From nf10@hotmail.com Tue Sep 2 14:52:47 2003 From: nf10@hotmail.com (Jeff L.) Date: Tue, 02 Sep 2003 13:52:47 +0000 Subject: [Mapserver-users] Zoom In to a defined area Message-ID: Hi Palle, I tried your suggestion, but an error is posted: loadForm(): Web application error. Not enough arguments for imgbox Thanks Jeff You should name your > > > > > > > > > > > > > .... > > > > > > > .... > > > > > > Any help is appreciated > > > Jeff Lacoste > > > _________________________________________________________________ > > Protect your PC - get McAfee.com VirusScan Online > > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > > > _______________________________________________ > > Mapserver-users mailing list > > Mapserver-users@lists.gis.umn.edu > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail From MHoward@spaceimaging.com Tue Sep 2 15:22:09 2003 From: MHoward@spaceimaging.com (Howard Mark) Date: Tue, 2 Sep 2003 08:22:09 -0600 Subject: [Mapserver-users] GML? Message-ID: Are there any plans for mapserv to support GML (WFS) ? Thanks, Mark ******************************************************************************** This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify Space Imaging immediately. ******************************************************************************** From MHoward@spaceimaging.com Tue Sep 2 15:21:12 2003 From: MHoward@spaceimaging.com (Howard Mark) Date: Tue, 2 Sep 2003 08:21:12 -0600 Subject: [Mapserver-users] GetFeatureInfo from selected rectangle??? Message-ID: In the mapfile, set the toleranceunits = pixels tolerance = 1000 This will handle the extend of just about any display. The WMS call should specify the bbox, X,Y and radius. I'd make sure the radius (in pixels) is set high enough to cover the bbox extent, although this does not seem to have an effect on the final result. Make sure &FEATUREDOUNT=[Maximum Expected Features] Hope this helps, Mark -----Original Message----- From: Josef Stromský [mailto:Josef.Stromsky.hgf@vsb.cz] Sent: Wednesday, August 27, 2003 7:19 AM To: MAPSERVER MailingLIST Subject: [Mapserver-users] GetFeatureInfo from selected rectangle??? Hi folks. Im trying to prepare my WMS client to get informations about all geofeatures in selected rectangle. In getFeatureInfo request im able to pick info about features on coordinates X, Y, but I need all geofeatures in any rectangle. Thanks so much for any advice. yours sincerely Josef Stromsky _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users ******************************************************************************** This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify Space Imaging immediately. ******************************************************************************** From godwinl@agr.gc.ca Tue Sep 2 16:25:46 2003 From: godwinl@agr.gc.ca (Liz Godwin) Date: Tue, 02 Sep 2003 11:25:46 -0400 Subject: [Mapserver-users] SDE point query with version 4.0 Message-ID: I solved the problem! I'm hoping someone can tell me what changed in mapserver, and why it worked. In my older version of the mapfile that was used with Mapserver 3.6, I relied on default tolerances and thus did not list them in my map file. This file wouldn't work with mapserver 4.0. That is...it wouldn't query. The new mapfile works because I added tolerance and toleranceunits to my mapfile for my queryable layer. The tolerance could not be zero, else the same error would result. It was my understanding (from the docs) that the default tolerance was 3 pixels. Has it changed to zero? Does anyone know why SDE layers don't like a tolerance of 0? Cheers, Liz >>> "Liz Godwin" 08/28/03 03:00PM >>> Hello, I'm trying to upgrade a simple application to the new version of Mapserver (4.0) and I am running into an error I haven't seen before, and haven't been able to sort out. "msSDELayerWhichShapes(): SDE error. SE_shape_generate_rectangle(): The number of points is less than required for feature. (-148)" I get the same error with or without my template file. My mapfile is referencing only SDE layers. The error only occurs when I am trying to query a layer, not when I'm just navigating around the map. The application queries fine if I point to Mapserver 3.6 instead. Has anyone had any luck in upgrading sites using SDE that might have a clue into where I should poke? Thanks!! Liz Godwin _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From steve.lime@dnr.state.mn.us Tue Sep 2 17:24:07 2003 From: steve.lime@dnr.state.mn.us (Steve Lime) Date: Tue, 02 Sep 2003 11:24:07 -0500 Subject: [Mapserver-users] GML? Message-ID: GML (2.0) support is there for WMS now and I would imagine that WFS supports it using the same code.\ Steve >>> Howard Mark 09/02/03 09:22AM >>> Are there any plans for mapserv to support GML (WFS) ? Thanks, Mark ******************************************************************************** This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify Space Imaging immediately. ******************************************************************************** _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From msmith@sanangelompo.org Tue Sep 2 17:55:17 2003 From: msmith@sanangelompo.org (Michael Smith) Date: Tue, 2 Sep 2003 11:55:17 -0500 Subject: [Mapserver-users] Beginner -- What's wrong? Message-ID: I have installed a got working the 3.6 demo of MapServer (windows 2000/IIS 5). When I change the files to insert my shapefiles (tgrds and usa) nothing appears on the demo screen but I do get the reference map. Here are my files used can anyone see what I am doing wrong. Thanks. COSADEMO_INIT.HTML file: MapServer Demo Interface

MapServer Demo Interface


Click on the initialize button to fire up the demo with 3 layers turned on will be accessible for browsing. The data are of Itasca County, MN and were derived, for the most part, from USGS 1:24,000 quadrangles. Some things to note are:


COSADEMO.MAP file the last 2 layers are what I added (tgroads and USA): MAP # # Start of map file # NAME "DEMO" STATUS ON EXTENT -180.00 -90.0 180.00 90.0 #EXTENT -180.0 -90.0 180.0 90.0 SIZE 600 600 SHAPEPATH "data" IMAGECOLOR 255 255 255 UNITS DD # you may need to change this to match your MapServer build #IMAGETYPE PNG # # Projection definition, consult the PROJ.4 documentation for parameter discussion # #PROJECTION # "proj=utm" # "ellps=GRS80" # "zone=15" # "north" # "no_defs" # # OR: # # "init=epsg:26915" #END # # Start of web interface definition (including WMS enabling metadata) # WEB MINSCALE 1000 MAXSCALE 5550000 IMAGEPATH "set in cosademo_init.html" IMAGEURL "set in cosademo_init.html" HEADER "demo_header.html" FOOTER "demo_footer.html" TEMPLATE "cosademo.html" METADATA "WMS_TITLE" "UMN MapServer Itasca Demo" "WMS_ABSTRACT" "This is the UMN MapServer demonstration application for Itasca County located in north central Minnesota." "WMS_ACCESSCONSTRAINTS" "none" "WMS_ONLINERESOURCE" "http://192.168.110.21/itasca/cosademo_init.html" "WMS_SRS" "EPSG:26915" END END # # Start of reference map # REFERENCE STATUS ON IMAGE "graphics/cosarefer.gif" SIZE 120 120 EXTENT -180.0 -90.0 180.0 90.0 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END QUERYMAP STATUS ON SIZE 200 200 COLOR 255 0 0 STYLE HILITE END # # Start of legend # LEGEND STATUS ON KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END # # Start of scalebar # SCALEBAR STATUS TRUE COLOR 255 255 255 IMAGECOLOR 255 255 255 UNITS MILES INTERVALS 1 SIZE 80 2 STYLE 1 LABEL SIZE tiny COLOR 255 255 255 END END # # Start of symbol definitions (we're only using a few) # SYMBOL NAME "circle" TYPE ELLIPSE FILLED TRUE POINTS 1 1 END END # # Start of layer definitions # LAYER NAME "ctybdpy2" STATUS OFF DATA "ctybdpy2" TYPE POLYGON CLASSITEM "cty_name" METADATA "WMS_TITLE" "County Boundary" "WMS_ABSTRACT" "Itasca County boundary shapefile. See http://deli.dnr.state.mn.us/metadata/full/ctybdne2.html for more information." "WMS_SRS" "EPSG:26915" END CLASS EXPRESSION "Itasca" COLOR 225 225 185 OUTLINECOLOR 128 128 128 END CLASS # every other county in the state EXPRESSION /./ COLOR 255 255 255 OUTLINECOLOR 128 128 128 END END LAYER NAME "mcd90py2" GROUP "cities" STATUS OFF DATA "mcd90py2" TYPE POLYGON CLASSITEM "city_name" HEADER "mcd90py2_header.html" FOOTER "mcd90py2_footer.html" # allow GML export METADATA "WMS_TITLE" "Minor Civil Divisions" "WMS_ABSTRACT" "Minor civil divisions for Itasca County. (boundaries only)" "WMS_SRS" "EPSG:26915" END CLASS NAME "Cities & Towns" EXPRESSION /./ COLOR 255 225 90 TEMPLATE "mcd90py2.html" END END LAYER NAME "twprgpy3" STATUS OFF DATA "twprgpy3" TYPE POLYGON METADATA "WMS_TITLE" "Township Boundaries" "WMS_ABSTRACT" "Pulic Land Survey (PLS) township boundaries for Itasca County. See http://deli.dnr.state.mn.us/metadata/full/twprgne2.html for more information." "WMS_SRS" "EPSG:26915" END CLASS NAME "Townships" SYMBOL "circle" OUTLINECOLOR 181 181 145 SIZE 2 END END LAYER NAME "lakespy2" STATUS OFF DATA "lakespy2" TYPE POLYGON TOLERANCE 3 HEADER "lakespy2_header.html" FOOTER "lakespy2_footer.html" # allow GML export METADATA "WMS_TITLE" "Lakes and Rivers" "WMS_ABSTRACT" "DLG lake and river polygons for Itasca County. See http://deli.dnr.state.mn.us/metadata/full/dlglkpy2.html for more information." "WMS_SRS" "EPSG:26915" END CLASS NAME "Lakes & Rivers" COLOR 49 117 185 TEMPLATE "lakespy2.html" END END # lakes LAYER NAME "dlgstln2" STATUS OFF DATA "dlgstln2" TYPE LINE TOLERANCE 5 HEADER "dlgstln2_header.html" FOOTER "dlgstln2_footer.html" # allow GML export METADATA "WMS_TITLE" "Streams" "WMS_ABSTRACT" "DLG streams for Itasca County. See http://deli.dnr.state.mn.us/metadata/full/dlgstln2.html for more information." "WMS_SRS" "EPSG:26915" END CLASS NAME "Streams" COLOR 49 117 185 TEMPLATE "dlgstln2.html" END END # streams LAYER NAME "ctyrdln3" GROUP "roads" STATUS OFF DATA "ctyrdln3" TYPE LINE MAXSCALE 300000 METADATA "WMS_TITLE" "County Roads" "WMS_ABSTRACT" "County roads. (lines only) Derived from MNDOT roads layer, see http://deli.dnr.state.mn.us/metadata/full/dotrdln2.html for more information." "WMS_SRS" "EPSG:26915" END CLASS COLOR 0 0 0 END END # county roads LAYER NAME "ctyrdln3_anno" GROUP "roads" STATUS OFF DATA "ctyrdln3" TYPE ANNOTATION MAXSCALE 300000 LABELITEM "road_name" METADATA "WMS_TITLE" "County Roads" "WMS_ABSTRACT" "County roads. (shields only) Derived from MNDOT roads layer, see http://deli.dnr.state.mn.us/metadata/full/dotrdln2.html for more information." "WMS_SRS" "EPSG:26915" END CLASS SYMBOL "symbols/ctyhwy.gif" COLOR 255 255 255 LABEL SIZE TINY POSITION CC MINDISTANCE 150 MINFEATURESIZE 40 COLOR 0 0 0 END END END # county road annotation LAYER NAME "majrdln3" GROUP "roads" STATUS OFF DATA "majrdln3" TYPE LINE MAXSCALE 600000 METADATA "WMS_TITLE" "Highways" "WMS_ABSTRACT" "Highways- state, US and interstate. (lines only) Derived from MNDOT roads layer, see http://deli.dnr.state.mn.us/metadata/full/dotrdln2.html for more information." "WMS_SRS" "EPSG:26915" END CLASS NAME "Roads" COLOR 0 0 0 END END # highways LAYER NAME "majrdln3_anno" GROUP "roads" STATUS OFF DATA "majrdln3" TYPE ANNOTATION CLASSITEM "road_class" MAXSCALE 600000 LABELITEM "road_num" METADATA "WMS_TITLE" "Highways" "WMS_ABSTRACT" "Highways- state, US and interstate. (shields only) Derived from MNDOT roads layer, see http://deli.dnr.state.mn.us/metadata/full/dotrdln2.html for more information." "WMS_SRS" "EPSG:26915" END CLASS EXPRESSION "3" # dummy color SYMBOL "symbols/sthwy.gif" COLOR 0 0 0 LABEL SIZE TINY POSITION CC MINDISTANCE 150 MINFEATURESIZE 50 COLOR 0 0 0 END END CLASS EXPRESSION "2" # dummy color SYMBOL "symbols/ushwy.gif" COLOR 0 0 0 LABEL SIZE TINY POSITION CC MINDISTANCE 150 MINFEATURESIZE 50 COLOR 0 0 0 END END CLASS EXPRESSION "1" # dummy color SYMBOL "symbols/interstate.gif" COLOR 0 0 0 LABEL SIZE TINY POSITION CC MINDISTANCE 150 MINFEATURESIZE 50 COLOR 255 255 255 END END END # highway annotation LAYER NAME "airports" STATUS OFF DATA "airports" TYPE POINT TOLERANCE 5 HEADER "airports_header.html" FOOTER "airports_footer.html" METADATA "WMS_TITLE" "Airports" "WMS_ABSTRACT" "Airport runways for Itasca County." "WMS_SRS" "EPSG:26915" END CLASS NAME "Airports" SYMBOL "circle" COLOR 128 255 164 SIZE 7 TEMPLATE "airports.html" END END LAYER NAME "cities" STATUS OFF DATA "mcd90py2" TYPE ANNOTATION CLASSITEM "city_name" LABELITEM "city_name" LABELMAXSCALE 500000 METADATA "WMS_TITLE" "Minor Civil Divisions" "WMS_ABSTRACT" "Minor civil divisions for Itasca County. (annotation only)" "WMS_SRS" "EPSG:26915" END CLASS EXPRESSION /./ COLOR -1 -1 -1 LABEL TYPE BITMAP SIZE MEDIUM POSITION CC BUFFER 2 COLOR 0 0 0 SHADOWCOLOR 218 218 218 SHADOWSIZE 2 2 PARTIALS FALSE END END END LAYER NAME "tgroads" STATUS ON DATA "tgrds" TYPE LINE CLASSITEM "Street" UNITS DD END LAYER NAME "usa" STATUS DEFAULT DATA "usa" TYPE POLYGON UNITS DD END END COSADEMO.HTML template file: MapServer Demo Interface

MapServer Demo Interface


 Powered by MapServer

Browse map
Query feature
Query multiple features


Select Layers to Display:

Zoom In Pan Zoom Out

Zoom Size

Legend




Michael Smith, Planner II City of San Angelo Planning & Development 325.657.4210 Fax: 325.481.2648 Email: msmith@sanangelompo.org From gayathri@ou.edu Tue Sep 2 18:19:31 2003 From: gayathri@ou.edu (Swaminathan, Gayathri) Date: Tue, 2 Sep 2003 12:19:31 -0500 Subject: [Mapserver-users] Beginner -- What's wrong? Message-ID: Mike, See that you have only one "PROJECTION" definition and that is commented out.... Is this how the map file is on demo? Thanks, -----Original Message----- From: Michael Smith [mailto:msmith@sanangelompo.org] Sent: Tuesday, September 02, 2003 11:55 AM To: mapserver-users@lists.gis.umn.edu Subject: [Mapserver-users] Beginner -- What's wrong? I have installed a got working the 3.6 demo of MapServer (windows 2000/IIS 5). When I change the files to insert my shapefiles (tgrds and usa) nothing appears on the demo screen but I do get the reference map. Here are my files used can anyone see what I am doing wrong. Thanks. COSADEMO_INIT.HTML file: MapServer Demo Interface

MapServer Demo Interface


Click on the initialize button to fire up the demo with 3 layers turned on will be accessible for browsing. The data are of Itasca County, MN and were derived, for the most part, from USGS 1:24,000 quadrangles. Some things to note are:


COSADEMO.MAP file the last 2 layers are what I added (tgroads and USA): MAP # # Start of map file # NAME "DEMO" STATUS ON EXTENT -180.00 -90.0 180.00 90.0 #EXTENT -180.0 -90.0 180.0 90.0 SIZE 600 600 SHAPEPATH "data" IMAGECOLOR 255 255 255 UNITS DD # you may need to change this to match your MapServer build #IMAGETYPE PNG # # Projection definition, consult the PROJ.4 documentation for parameter discussion # #PROJECTION # "proj=utm" # "ellps=GRS80" # "zone=15" # "north" # "no_defs" # # OR: # # "init=epsg:26915" #END # # Start of web interface definition (including WMS enabling metadata) # WEB MINSCALE 1000 MAXSCALE 5550000 IMAGEPATH "set in cosademo_init.html" IMAGEURL "set in cosademo_init.html" HEADER "demo_header.html" FOOTER "demo_footer.html" TEMPLATE "cosademo.html" METADATA "WMS_TITLE" "UMN MapServer Itasca Demo" "WMS_ABSTRACT" "This is the UMN MapServer demonstration application for Itasca County located in north central Minnesota." "WMS_ACCESSCONSTRAINTS" "none" "WMS_ONLINERESOURCE" "http://192.168.110.21/itasca/cosademo_init.html" "WMS_SRS" "EPSG:26915" END END # # Start of reference map # REFERENCE STATUS ON IMAGE "graphics/cosarefer.gif" SIZE 120 120 EXTENT -180.0 -90.0 180.0 90.0 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END QUERYMAP STATUS ON SIZE 200 200 COLOR 255 0 0 STYLE HILITE END # # Start of legend # LEGEND STATUS ON KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END # # Start of scalebar # SCALEBAR STATUS TRUE COLOR 255 255 255 IMAGECOLOR 255 255 255 UNITS MILES INTERVALS 1 SIZE 80 2 STYLE 1 LABEL SIZE tiny COLOR 255 255 255 END END # # Start of symbol definitions (we're only using a few) # SYMBOL NAME "circle" TYPE ELLIPSE FILLED TRUE POINTS 1 1 END END # # Start of layer definitions # LAYER NAME "ctybdpy2" STATUS OFF DATA "ctybdpy2" TYPE POLYGON CLASSITEM "cty_name" METADATA "WMS_TITLE" "County Boundary" "WMS_ABSTRACT" "Itasca County boundary shapefile. See http://deli.dnr.state.mn.us/metadata/full/ctybdne2.html for more information." "WMS_SRS" "EPSG:26915" END CLASS EXPRESSION "Itasca" COLOR 225 225 185 OUTLINECOLOR 128 128 128 END CLASS # every other county in the state EXPRESSION /./ COLOR 255 255 255 OUTLINECOLOR 128 128 128 END END LAYER NAME "mcd90py2" GROUP "cities" STATUS OFF DATA "mcd90py2" TYPE POLYGON CLASSITEM "city_name" HEADER "mcd90py2_header.html" FOOTER "mcd90py2_footer.html" # allow GML export METADATA "WMS_TITLE" "Minor Civil Divisions" "WMS_ABSTRACT" "Minor civil divisions for Itasca County. (boundaries only)" "WMS_SRS" "EPSG:26915" END CLASS NAME "Cities & Towns" EXPRESSION /./ COLOR 255 225 90 TEMPLATE "mcd90py2.html" END END LAYER NAME "twprgpy3" STATUS OFF DATA "twprgpy3" TYPE POLYGON METADATA "WMS_TITLE" "Township Boundaries" "WMS_ABSTRACT" "Pulic Land Survey (PLS) township boundaries for Itasca County. See http://deli.dnr.state.mn.us/metadata/full/twprgne2.html for more information." "WMS_SRS" "EPSG:26915" END CLASS NAME "Townships" SYMBOL "circle" OUTLINECOLOR 181 181 145 SIZE 2 END END LAYER NAME "lakespy2" STATUS OFF DATA "lakespy2" TYPE POLYGON TOLERANCE 3 HEADER "lakespy2_header.html" FOOTER "lakespy2_footer.html" # allow GML export METADATA "WMS_TITLE" "Lakes and Rivers" "WMS_ABSTRACT" "DLG lake and river polygons for Itasca County. See http://deli.dnr.state.mn.us/metadata/full/dlglkpy2.html for more information." "WMS_SRS" "EPSG:26915" END CLASS NAME "Lakes & Rivers" COLOR 49 117 185 TEMPLATE "lakespy2.html" END END # lakes LAYER NAME "dlgstln2" STATUS OFF DATA "dlgstln2" TYPE LINE TOLERANCE 5 HEADER "dlgstln2_header.html" FOOTER "dlgstln2_footer.html" # allow GML export METADATA "WMS_TITLE" "Streams" "WMS_ABSTRACT" "DLG streams for Itasca County. See http://deli.dnr.state.mn.us/metadata/full/dlgstln2.html for more information." "WMS_SRS" "EPSG:26915" END CLASS NAME "Streams" COLOR 49 117 185 TEMPLATE "dlgstln2.html" END END # streams LAYER NAME "ctyrdln3" GROUP "roads" STATUS OFF DATA "ctyrdln3" TYPE LINE MAXSCALE 300000 METADATA "WMS_TITLE" "County Roads" "WMS_ABSTRACT" "County roads. (lines only) Derived from MNDOT roads layer, see http://deli.dnr.state.mn.us/metadata/full/dotrdln2.html for more information." "WMS_SRS" "EPSG:26915" END CLASS COLOR 0 0 0 END END # county roads LAYER NAME "ctyrdln3_anno" GROUP "roads" STATUS OFF DATA "ctyrdln3" TYPE ANNOTATION MAXSCALE 300000 LABELITEM "road_name" METADATA "WMS_TITLE" "County Roads" "WMS_ABSTRACT" "County roads. (shields only) Derived from MNDOT roads layer, see http://deli.dnr.state.mn.us/metadata/full/dotrdln2.html for more information." "WMS_SRS" "EPSG:26915" END CLASS SYMBOL "symbols/ctyhwy.gif" COLOR 255 255 255 LABEL SIZE TINY POSITION CC MINDISTANCE 150 MINFEATURESIZE 40 COLOR 0 0 0 END END END # county road annotation LAYER NAME "majrdln3" GROUP "roads" STATUS OFF DATA "majrdln3" TYPE LINE MAXSCALE 600000 METADATA "WMS_TITLE" "Highways" "WMS_ABSTRACT" "Highways- state, US and interstate. (lines only) Derived from MNDOT roads layer, see http://deli.dnr.state.mn.us/metadata/full/dotrdln2.html for more information." "WMS_SRS" "EPSG:26915" END CLASS NAME "Roads" COLOR 0 0 0 END END # highways LAYER NAME "majrdln3_anno" GROUP "roads" STATUS OFF DATA "majrdln3" TYPE ANNOTATION CLASSITEM "road_class" MAXSCALE 600000 LABELITEM "road_num" METADATA "WMS_TITLE" "Highways" "WMS_ABSTRACT" "Highways- state, US and interstate. (shields only) Derived from MNDOT roads layer, see http://deli.dnr.state.mn.us/metadata/full/dotrdln2.html for more information." "WMS_SRS" "EPSG:26915" END CLASS EXPRESSION "3" # dummy color SYMBOL "symbols/sthwy.gif" COLOR 0 0 0 LABEL SIZE TINY POSITION CC MINDISTANCE 150 MINFEATURESIZE 50 COLOR 0 0 0 END END CLASS EXPRESSION "2" # dummy color SYMBOL "symbols/ushwy.gif" COLOR 0 0 0 LABEL SIZE TINY POSITION CC MINDISTANCE 150 MINFEATURESIZE 50 COLOR 0 0 0 END END CLASS EXPRESSION "1" # dummy color SYMBOL "symbols/interstate.gif" COLOR 0 0 0 LABEL SIZE TINY POSITION CC MINDISTANCE 150 MINFEATURESIZE 50 COLOR 255 255 255 END END END # highway annotation LAYER NAME "airports" STATUS OFF DATA "airports" TYPE POINT TOLERANCE 5 HEADER "airports_header.html" FOOTER "airports_footer.html" METADATA "WMS_TITLE" "Airports" "WMS_ABSTRACT" "Airport runways for Itasca County." "WMS_SRS" "EPSG:26915" END CLASS NAME "Airports" SYMBOL "circle" COLOR 128 255 164 SIZE 7 TEMPLATE "airports.html" END END LAYER NAME "cities" STATUS OFF DATA "mcd90py2" TYPE ANNOTATION CLASSITEM "city_name" LABELITEM "city_name" LABELMAXSCALE 500000 METADATA "WMS_TITLE" "Minor Civil Divisions" "WMS_ABSTRACT" "Minor civil divisions for Itasca County. (annotation only)" "WMS_SRS" "EPSG:26915" END CLASS EXPRESSION /./ COLOR -1 -1 -1 LABEL TYPE BITMAP SIZE MEDIUM POSITION CC BUFFER 2 COLOR 0 0 0 SHADOWCOLOR 218 218 218 SHADOWSIZE 2 2 PARTIALS FALSE END END END LAYER NAME "tgroads" STATUS ON DATA "tgrds" TYPE LINE CLASSITEM "Street" UNITS DD END LAYER NAME "usa" STATUS DEFAULT DATA "usa" TYPE POLYGON UNITS DD END END COSADEMO.HTML template file: MapServer Demo Interface

MapServer Demo Interface


 Powered by MapServer

Browse map
Query feature
Query multiple features


Select Layers to Display:

Zoom In Pan Zoom Out

Zoom Size

Legend




Michael Smith, Planner II City of San Angelo Planning & Development 325.657.4210 Fax: 325.481.2648 Email: msmith@sanangelompo.org _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From msmith@sanangelompo.org Tue Sep 2 19:23:58 2003 From: msmith@sanangelompo.org (Michael Smith) Date: Tue, 2 Sep 2003 13:23:58 -0500 Subject: [Mapserver-users] Beginner -- What's wrong? In-Reply-To: Message-ID: Yes, this is the way it appears in the demo. -----Original Message----- From: mapserver-users-admin@lists.gis.umn.edu [mailto:mapserver-users-admin@lists.gis.umn.edu]On Behalf Of Swaminathan, Gayathri Sent: Tuesday, September 02, 2003 12:20 PM To: 'Michael Smith'; mapserver-users@lists.gis.umn.edu Subject: RE: [Mapserver-users] Beginner -- What's wrong? Mike, See that you have only one "PROJECTION" definition and that is commented out.... Is this how the map file is on demo? Thanks, -----Original Message----- From: Michael Smith [mailto:msmith@sanangelompo.org] Sent: Tuesday, September 02, 2003 11:55 AM To: mapserver-users@lists.gis.umn.edu Subject: [Mapserver-users] Beginner -- What's wrong? I have installed a got working the 3.6 demo of MapServer (windows 2000/IIS 5). When I change the files to insert my shapefiles (tgrds and usa) nothing appears on the demo screen but I do get the reference map. Here are my files used can anyone see what I am doing wrong. Thanks. COSADEMO_INIT.HTML file: MapServer Demo Interface

MapServer Demo Interface


Click on the initialize button to fire up the demo with 3 layers turned on will be accessible for browsing. The data are of Itasca County, MN and were derived, for the most part, from USGS 1:24,000 quadrangles. Some things to note are:


COSADEMO.MAP file the last 2 layers are what I added (tgroads and USA): MAP # # Start of map file # NAME "DEMO" STATUS ON EXTENT -180.00 -90.0 180.00 90.0 #EXTENT -180.0 -90.0 180.0 90.0 SIZE 600 600 SHAPEPATH "data" IMAGECOLOR 255 255 255 UNITS DD # you may need to change this to match your MapServer build #IMAGETYPE PNG # # Projection definition, consult the PROJ.4 documentation for parameter discussion # #PROJECTION # "proj=utm" # "ellps=GRS80" # "zone=15" # "north" # "no_defs" # # OR: # # "init=epsg:26915" #END # # Start of web interface definition (including WMS enabling metadata) # WEB MINSCALE 1000 MAXSCALE 5550000 IMAGEPATH "set in cosademo_init.html" IMAGEURL "set in cosademo_init.html" HEADER "demo_header.html" FOOTER "demo_footer.html" TEMPLATE "cosademo.html" METADATA "WMS_TITLE" "UMN MapServer Itasca Demo" "WMS_ABSTRACT" "This is the UMN MapServer demonstration application for Itasca County located in north central Minnesota." "WMS_ACCESSCONSTRAINTS" "none" "WMS_ONLINERESOURCE" "http://192.168.110.21/itasca/cosademo_init.html" "WMS_SRS" "EPSG:26915" END END # # Start of reference map # REFERENCE STATUS ON IMAGE "graphics/cosarefer.gif" SIZE 120 120 EXTENT -180.0 -90.0 180.0 90.0 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END QUERYMAP STATUS ON SIZE 200 200 COLOR 255 0 0 STYLE HILITE END # # Start of legend # LEGEND STATUS ON KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END # # Start of scalebar # SCALEBAR STATUS TRUE COLOR 255 255 255 IMAGECOLOR 255 255 255 UNITS MILES INTERVALS 1 SIZE 80 2 STYLE 1 LABEL SIZE tiny COLOR 255 255 255 END END # # Start of symbol definitions (we're only using a few) # SYMBOL NAME "circle" TYPE ELLIPSE FILLED TRUE POINTS 1 1 END END # # Start of layer definitions # LAYER NAME "ctybdpy2" STATUS OFF DATA "ctybdpy2" TYPE POLYGON CLASSITEM "cty_name" METADATA "WMS_TITLE" "County Boundary" "WMS_ABSTRACT" "Itasca County boundary shapefile. See http://deli.dnr.state.mn.us/metadata/full/ctybdne2.html for more information." "WMS_SRS" "EPSG:26915" END CLASS EXPRESSION "Itasca" COLOR 225 225 185 OUTLINECOLOR 128 128 128 END CLASS # every other county in the state EXPRESSION /./ COLOR 255 255 255 OUTLINECOLOR 128 128 128 END END LAYER NAME "mcd90py2" GROUP "cities" STATUS OFF DATA "mcd90py2" TYPE POLYGON CLASSITEM "city_name" HEADER "mcd90py2_header.html" FOOTER "mcd90py2_footer.html" # allow GML export METADATA "WMS_TITLE" "Minor Civil Divisions" "WMS_ABSTRACT" "Minor civil divisions for Itasca County. (boundaries only)" "WMS_SRS" "EPSG:26915" END CLASS NAME "Cities & Towns" EXPRESSION /./ COLOR 255 225 90 TEMPLATE "mcd90py2.html" END END LAYER NAME "twprgpy3" STATUS OFF DATA "twprgpy3" TYPE POLYGON METADATA "WMS_TITLE" "Township Boundaries" "WMS_ABSTRACT" "Pulic Land Survey (PLS) township boundaries for Itasca County. See http://deli.dnr.state.mn.us/metadata/full/twprgne2.html for more information." "WMS_SRS" "EPSG:26915" END CLASS NAME "Townships" SYMBOL "circle" OUTLINECOLOR 181 181 145 SIZE 2 END END LAYER NAME "lakespy2" STATUS OFF DATA "lakespy2" TYPE POLYGON TOLERANCE 3 HEADER "lakespy2_header.html" FOOTER "lakespy2_footer.html" # allow GML export METADATA "WMS_TITLE" "Lakes and Rivers" "WMS_ABSTRACT" "DLG lake and river polygons for Itasca County. See http://deli.dnr.state.mn.us/metadata/full/dlglkpy2.html for more information." "WMS_SRS" "EPSG:26915" END CLASS NAME "Lakes & Rivers" COLOR 49 117 185 TEMPLATE "lakespy2.html" END END # lakes LAYER NAME "dlgstln2" STATUS OFF DATA "dlgstln2" TYPE LINE TOLERANCE 5 HEADER "dlgstln2_header.html" FOOTER "dlgstln2_footer.html" # allow GML export METADATA "WMS_TITLE" "Streams" "WMS_ABSTRACT" "DLG streams for Itasca County. See http://deli.dnr.state.mn.us/metadata/full/dlgstln2.html for more information." "WMS_SRS" "EPSG:26915" END CLASS NAME "Streams" COLOR 49 117 185 TEMPLATE "dlgstln2.html" END END # streams LAYER NAME "ctyrdln3" GROUP "roads" STATUS OFF DATA "ctyrdln3" TYPE LINE MAXSCALE 300000 METADATA "WMS_TITLE" "County Roads" "WMS_ABSTRACT" "County roads. (lines only) Derived from MNDOT roads layer, see http://deli.dnr.state.mn.us/metadata/full/dotrdln2.html for more information." "WMS_SRS" "EPSG:26915" END CLASS COLOR 0 0 0 END END # county roads LAYER NAME "ctyrdln3_anno" GROUP "roads" STATUS OFF DATA "ctyrdln3" TYPE ANNOTATION MAXSCALE 300000 LABELITEM "road_name" METADATA "WMS_TITLE" "County Roads" "WMS_ABSTRACT" "County roads. (shields only) Derived from MNDOT roads layer, see http://deli.dnr.state.mn.us/metadata/full/dotrdln2.html for more information." "WMS_SRS" "EPSG:26915" END CLASS SYMBOL "symbols/ctyhwy.gif" COLOR 255 255 255 LABEL SIZE TINY POSITION CC MINDISTANCE 150 MINFEATURESIZE 40 COLOR 0 0 0 END END END # county road annotation LAYER NAME "majrdln3" GROUP "roads" STATUS OFF DATA "majrdln3" TYPE LINE MAXSCALE 600000 METADATA "WMS_TITLE" "Highways" "WMS_ABSTRACT" "Highways- state, US and interstate. (lines only) Derived from MNDOT roads layer, see http://deli.dnr.state.mn.us/metadata/full/dotrdln2.html for more information." "WMS_SRS" "EPSG:26915" END CLASS NAME "Roads" COLOR 0 0 0 END END # highways LAYER NAME "majrdln3_anno" GROUP "roads" STATUS OFF DATA "majrdln3" TYPE ANNOTATION CLASSITEM "road_class" MAXSCALE 600000 LABELITEM "road_num" METADATA "WMS_TITLE" "Highways" "WMS_ABSTRACT" "Highways- state, US and interstate. (shields only) Derived from MNDOT roads layer, see http://deli.dnr.state.mn.us/metadata/full/dotrdln2.html for more information." "WMS_SRS" "EPSG:26915" END CLASS EXPRESSION "3" # dummy color SYMBOL "symbols/sthwy.gif" COLOR 0 0 0 LABEL SIZE TINY POSITION CC MINDISTANCE 150 MINFEATURESIZE 50 COLOR 0 0 0 END END CLASS EXPRESSION "2" # dummy color SYMBOL "symbols/ushwy.gif" COLOR 0 0 0 LABEL SIZE TINY POSITION CC MINDISTANCE 150 MINFEATURESIZE 50 COLOR 0 0 0 END END CLASS EXPRESSION "1" # dummy color SYMBOL "symbols/interstate.gif" COLOR 0 0 0 LABEL SIZE TINY POSITION CC MINDISTANCE 150 MINFEATURESIZE 50 COLOR 255 255 255 END END END # highway annotation LAYER NAME "airports" STATUS OFF DATA "airports" TYPE POINT TOLERANCE 5 HEADER "airports_header.html" FOOTER "airports_footer.html" METADATA "WMS_TITLE" "Airports" "WMS_ABSTRACT" "Airport runways for Itasca County." "WMS_SRS" "EPSG:26915" END CLASS NAME "Airports" SYMBOL "circle" COLOR 128 255 164 SIZE 7 TEMPLATE "airports.html" END END LAYER NAME "cities" STATUS OFF DATA "mcd90py2" TYPE ANNOTATION CLASSITEM "city_name" LABELITEM "city_name" LABELMAXSCALE 500000 METADATA "WMS_TITLE" "Minor Civil Divisions" "WMS_ABSTRACT" "Minor civil divisions for Itasca County. (annotation only)" "WMS_SRS" "EPSG:26915" END CLASS EXPRESSION /./ COLOR -1 -1 -1 LABEL TYPE BITMAP SIZE MEDIUM POSITION CC BUFFER 2 COLOR 0 0 0 SHADOWCOLOR 218 218 218 SHADOWSIZE 2 2 PARTIALS FALSE END END END LAYER NAME "tgroads" STATUS ON DATA "tgrds" TYPE LINE CLASSITEM "Street" UNITS DD END LAYER NAME "usa" STATUS DEFAULT DATA "usa" TYPE POLYGON UNITS DD END END COSADEMO.HTML template file: MapServer Demo Interface

MapServer Demo Interface


 Powered by MapServer

Browse map
Query feature
Query multiple features


Select Layers to Display:

Zoom In Pan Zoom Out

Zoom Size

Legend




Michael Smith, Planner II City of San Angelo Planning & Development 325.657.4210 Fax: 325.481.2648 Email: msmith@sanangelompo.org _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From geoffrey.rowland@noaa.gov Tue Sep 2 19:46:40 2003 From: geoffrey.rowland@noaa.gov (Geoffrey Rowland) Date: Tue, 02 Sep 2003 14:46:40 -0400 Subject: [Mapserver-users] PHP MapScript problem (use of undefined constant) In-Reply-To: References: Message-ID: <3F54E590.5070709@noaa.gov> This is a multi-part message in MIME format. --------------020104020707010103090708 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Notice: Use of undefined constant MS_SWF - assumed 'MS_SWF' in D:\Inetpub\CIP ROOT BETA\wnv\wnv_pop.php on line 4 this will have the same notice no matter what type of file i try to output...and the image doesn't output (nothing is written in the directory that i specified to use in my map file). any idea what may be causing this? draw(); $image_url=$image->saveWebImage(MS_SWF,1,1,0); ?> Example 1: Displaying a map > map file # # Start of map file # NAME "PopTest" STATUS ON SIZE 600 600 EXTENT -178.227822 18.913826 -66.949831 71.38269 UNITS dd SHAPEPATH "data" IMAGECOLOR 255 255 255 #IMAGETYPE PNG OUTPUTFORMAT NAME swf MIMETYPE "application/x-shockwave-flash" DRIVER swf IMAGEMODE PC256 FORMATOPTION "OUTPUT_MOVIE=MULTIPLE" END #PROJECTION # "proj=latlong" #END WEB HEADER us_header.html TEMPLATE temp.html FOOTER us_footer.html LOG popmapserver.log MINSCALE 1 MAXSCALE 36335600 IMAGEPATH "d:/Inetpub/pop/swf/" IMAGEURL "http://localhost/pop/swf/" METADATA WMS_TITLE "United States County Data" WMS_ABSTRACT "This is a demonstration of using Mapserver to display the County data set." WMS_ACCESSCONSTRAINTS none WMS_SRS "EPSG:4269" END # End Metadata END # End Web QUERYMAP SIZE 200 200 STATUS ON STYLE HILITE COLOR 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 80 2 COLOR 255 255 255 UNITS MILES INTERVALS 1 TRANSPARENT TRUE STATUS TRUE END LAYER NAME states METADATA "DESCRIPTION" "States" "RESULT_FIELDS" "State_Name Pop1999" "SWFDUMPATTRIBUTES" "State_Name,Pop1999" END TYPE POLYGON STATUS ON DATA states CLASSITEM 'Pop1999' NAME Pop1999 TEMPLATE us_pop.html CLASS EXPRESSION ([Pop1999] > 0 and [Pop1999] < 2135252) COLOR 254 240 217 OUTLINECOLOR 128 128 128 END CLASS EXPRESSION ([Pop1999] > 2135251 and [Pop1999] < 4970311) COLOR 253 212 158 OUTLINECOLOR 128 128 128 END CLASS EXPRESSION ([Pop1999] > 4970310 and [Pop1999] < 9866640) COLOR 253 187 132 OUTLINECOLOR 128 128 128 END CLASS EXPRESSION ([Pop1999] > 9866639 and [Pop1999] < 20127338) COLOR 252 141 89 OUTLINECOLOR 128 128 128 END CLASS EXPRESSION ([Pop1999] > 20127337 ) COLOR 227 74 51 OUTLINECOLOR 128 128 128 END END # end class END # end layer END # end Map File -- Geoffrey Rowland Technical Officer Climate Information Project NOAA Research Office of Global Programs http://www.cip.ogp.noaa.gov Contractor, RGII Technologies, Inc., a Computer Horizons Company http://www.rg2.com Phone: 301-427-2089x186 Fax : 301-427-2082 geoffrey.rowland@noaa.gov --------------020104020707010103090708 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Notice: Use of undefined constant MS_SWF - assumed 'MS_SWF' in D:\Inetpub\CIP ROOT BETA\wnv\wnv_pop.php on line 4

this will have the same notice no matter what type of file i try to output...and the image doesn't output (nothing is written in the directory that i specified to use in my map file).  any idea what may be causing this?

<?
         $map = ms_newMapObj("pop.map");
         $image=$map->draw();
         $image_url=$image->saveWebImage(MS_SWF,1,1,0);
       
         ?>
       
          <HTML>
              <HEAD>
                 <TITLE>Example 1: Displaying a map</TITLE>
             </HEAD>
             <BODY>
                 <IMG SRC=<?php echo $image_url; ?> >
             </BODY>
         </HTML>

map file

#
# Start of map file
#
NAME "PopTest"
STATUS ON
SIZE 600 600
EXTENT -178.227822 18.913826 -66.949831 71.38269
UNITS dd
SHAPEPATH "data"
IMAGECOLOR 255 255 255


#IMAGETYPE PNG

OUTPUTFORMAT
        NAME swf
        MIMETYPE "application/x-shockwave-flash"
        DRIVER swf
        IMAGEMODE PC256
        FORMATOPTION "OUTPUT_MOVIE=MULTIPLE"
      END


#PROJECTION
#  "proj=latlong"
#END

WEB
  HEADER us_header.html
  TEMPLATE temp.html
  FOOTER us_footer.html
  LOG popmapserver.log
  MINSCALE 1
  MAXSCALE 36335600
  IMAGEPATH "d:/Inetpub/pop/swf/"
  IMAGEURL "http://localhost/pop/swf/"
  METADATA
   WMS_TITLE "United States County Data"
   WMS_ABSTRACT "This is a demonstration of using Mapserver to display the County data set."
   WMS_ACCESSCONSTRAINTS none
 
   WMS_SRS "EPSG:4269"
  END # End Metadata
END # End Web

QUERYMAP
  SIZE 200 200
  STATUS ON
  STYLE HILITE
  COLOR 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 80 2
  COLOR 255 255 255
  UNITS MILES
  INTERVALS 1
  TRANSPARENT TRUE
  STATUS TRUE
END

 


LAYER
  NAME states
  METADATA
    "DESCRIPTION" "States"
    "RESULT_FIELDS" "State_Name Pop1999"
    "SWFDUMPATTRIBUTES" "State_Name,Pop1999"
  END
  TYPE POLYGON
  STATUS ON
  DATA states
 

CLASSITEM 'Pop1999'
NAME Pop1999
TEMPLATE us_pop.html
CLASS
  EXPRESSION ([Pop1999] > 0 and [Pop1999] < 2135252)
  COLOR 254 240 217
  OUTLINECOLOR 128 128 128
END

CLASS
  EXPRESSION ([Pop1999] >   2135251 and [Pop1999] < 4970311)
  COLOR 253 212 158
  OUTLINECOLOR 128 128 128
END

CLASS
  EXPRESSION ([Pop1999] > 4970310 and [Pop1999] < 9866640)
  COLOR 253 187 132
  OUTLINECOLOR 128 128 128
END

CLASS
  EXPRESSION ([Pop1999] > 9866639 and [Pop1999] < 20127338)
  COLOR 252 141 89
  OUTLINECOLOR 128 128 128
END

CLASS
  EXPRESSION ([Pop1999] >   20127337 )
  COLOR 227 74 51
  OUTLINECOLOR 128 128 128
END



END # end class
 
END # end layer


END # end Map File

-- 
Geoffrey Rowland
Technical Officer
Climate Information Project
NOAA Research
Office of  Global Programs
http://www.cip.ogp.noaa.gov
Contractor, 
RGII Technologies, Inc., a Computer Horizons Company
http://www.rg2.com
Phone: 301-427-2089x186
Fax : 301-427-2082
geoffrey.rowland@noaa.gov












--------------020104020707010103090708-- From sgillies@frii.com Tue Sep 2 20:09:59 2003 From: sgillies@frii.com (Sean Gillies) Date: Tue, 2 Sep 2003 13:09:59 -0600 Subject: [Mapserver-users] hi all:any one have binary python mapscript suit mapserver 4.0 running on windows version? In-Reply-To: <3847F35B08A3E342B56E79AD3393A6A20139AC92@nwcb-sh-mail.corp.nwcyberbase.com> Message-ID: <0C027101-DD79-11D7-973F-000393B98B56@frii.com> On Tuesday, September 2, 2003, at 12:07 AM, DellYan wrote: > if have ,can distribute to public ?? >   >   >   > thanks a lot > Right before the 4.0 release, I discussed this with a maintainer of Win32 builds. I will see if he has time to put a Python MapScript together. When one is available, I willl make a link from the Python MapScript Wiki page http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PythonMapScript cheers, Sean -- Sean Gillies sgillies at frii dot com http://www.frii.com/~sgillies From rjames57@yahoo.com Tue Sep 2 20:31:18 2003 From: rjames57@yahoo.com (Randy James) Date: Tue, 2 Sep 2003 12:31:18 -0700 (PDT) Subject: [Mapserver-users] PHP MapScript problem (use of undefined constant) In-Reply-To: <3F54E590.5070709@noaa.gov> Message-ID: <20030902193118.92180.qmail@web12507.mail.yahoo.com> Hi Does it make a differance if you define your image type IMAGETYPE SWF Cheers Randy --- Geoffrey Rowland wrote: > Notice: Use of undefined constant MS_SWF - assumed > 'MS_SWF' in > D:\Inetpub\CIP ROOT BETA\wnv\wnv_pop.php on line 4 > > this will have the same notice no matter what type of > file i try to > output...and the image doesn't output (nothing is written > in the > directory that i specified to use in my map file). any > idea what may be > causing this? > > $map = ms_newMapObj("pop.map"); > $image=$map->draw(); > $image_url=$image->saveWebImage(MS_SWF,1,1,0); > > ?> > > > > Example 1: Displaying a > map > > > > > > > > map file > > # > # Start of map file > # > NAME "PopTest" > STATUS ON > SIZE 600 600 > EXTENT -178.227822 18.913826 -66.949831 71.38269 > UNITS dd > SHAPEPATH "data" > IMAGECOLOR 255 255 255 > > > #IMAGETYPE PNG > > OUTPUTFORMAT > NAME swf > MIMETYPE "application/x-shockwave-flash" > DRIVER swf > IMAGEMODE PC256 > FORMATOPTION "OUTPUT_MOVIE=MULTIPLE" > END > > > #PROJECTION > # "proj=latlong" > #END > > WEB > HEADER us_header.html > TEMPLATE temp.html > FOOTER us_footer.html > LOG popmapserver.log > MINSCALE 1 > MAXSCALE 36335600 > IMAGEPATH "d:/Inetpub/pop/swf/" > IMAGEURL "http://localhost/pop/swf/" > METADATA > WMS_TITLE "United States County Data" > WMS_ABSTRACT "This is a demonstration of using > Mapserver to display > the County data set." > WMS_ACCESSCONSTRAINTS none > > WMS_SRS "EPSG:4269" > END # End Metadata > END # End Web > > QUERYMAP > SIZE 200 200 > STATUS ON > STYLE HILITE > COLOR 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 80 2 > COLOR 255 255 255 > UNITS MILES > INTERVALS 1 > TRANSPARENT TRUE > STATUS TRUE > END > > > > > LAYER > NAME states > METADATA > "DESCRIPTION" "States" > "RESULT_FIELDS" "State_Name Pop1999" > "SWFDUMPATTRIBUTES" "State_Name,Pop1999" > END > TYPE POLYGON > STATUS ON > DATA states > > > CLASSITEM 'Pop1999' > NAME Pop1999 > TEMPLATE us_pop.html > CLASS > EXPRESSION ([Pop1999] > 0 and [Pop1999] < 2135252) > COLOR 254 240 217 > OUTLINECOLOR 128 128 128 > END > > CLASS > EXPRESSION ([Pop1999] > 2135251 and [Pop1999] < > 4970311) > COLOR 253 212 158 > OUTLINECOLOR 128 128 128 > END > > CLASS > EXPRESSION ([Pop1999] > 4970310 and [Pop1999] < > 9866640) > COLOR 253 187 132 > OUTLINECOLOR 128 128 128 > END > > CLASS > EXPRESSION ([Pop1999] > 9866639 and [Pop1999] < > 20127338) > COLOR 252 141 89 > OUTLINECOLOR 128 128 128 > END > > CLASS > EXPRESSION ([Pop1999] > 20127337 ) > COLOR 227 74 51 > OUTLINECOLOR 128 128 128 > END > > > > END # end class > > END # end layer > > > END # end Map File > > -- > Geoffrey Rowland > Technical Officer > Climate Information Project > NOAA Research > Office of Global Programs > http://www.cip.ogp.noaa.gov > Contractor, > RGII Technologies, Inc., a Computer Horizons Company > http://www.rg2.com > Phone: 301-427-2089x186 > Fax : 301-427-2082 > geoffrey.rowland@noaa.gov > > > > > > > > > > > > === message truncated === __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com From Armin Burger Tue Sep 2 22:11:31 2003 From: Armin Burger (Armin Burger) Date: Tue, 2 Sep 2003 22:11:31 +0100 Subject: [Mapserver-users] PHP MapScript problem (use of undefined constant) Message-ID: <20030902201201.DKLW16764.viefep12-int.chello.at@libero.it> Geoffrey, are you using Mapserver 4? Then you have to define the image format before: $map->selectOutputFormat("swf"); $image=$map->draw(); $image_url=$image->saveWebImage(); Armin > Notice: Use of undefined constant MS_SWF - assumed 'MS_SWF' in > D:\Inetpub\CIP ROOT BETA\wnv\wnv_pop.php on line 4 > this will have the same notice no matter what type of file i try to > output...and the image doesn't output (nothing is written in the > directory that i specified to use in my map file). any idea what may be > causing this? > $map = ms_newMapObj("pop.map"); > $image=$map->draw(); > $image_url=$image->saveWebImage(MS_SWF,1,1,0); > ?> > > > Example 1: Displaying a map > > > > > > > map file > # > # Start of map file > # > NAME "PopTest" > STATUS ON > SIZE 600 600 > EXTENT -178.227822 18.913826 -66.949831 71.38269 > UNITS dd > SHAPEPATH "data" > IMAGECOLOR 255 255 255 > #IMAGETYPE PNG > OUTPUTFORMAT > NAME swf > MIMETYPE "application/x-shockwave-flash" > DRIVER swf > IMAGEMODE PC256 > FORMATOPTION "OUTPUT_MOVIE=MULTIPLE" > END > #PROJECTION > # "proj=latlong" > #END > WEB > HEADER us_header.html > TEMPLATE temp.html > FOOTER us_footer.html > LOG popmapserver.log > MINSCALE 1 > MAXSCALE 36335600 > IMAGEPATH "d:/Inetpub/pop/swf/" > IMAGEURL "http://localhost/pop/swf/" > METADATA > WMS_TITLE "United States County Data" > WMS_ABSTRACT "This is a demonstration of using Mapserver to display > the County data set." > WMS_ACCESSCONSTRAINTS none > WMS_SRS "EPSG:4269" > END # End Metadata > END # End Web > QUERYMAP > SIZE 200 200 > STATUS ON > STYLE HILITE > COLOR 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 80 2 > COLOR 255 255 255 > UNITS MILES > INTERVALS 1 > TRANSPARENT TRUE > STATUS TRUE > END > LAYER > NAME states > METADATA > "DESCRIPTION" "States" > "RESULT_FIELDS" "State_Name Pop1999" > "SWFDUMPATTRIBUTES" "State_Name,Pop1999" > END > TYPE POLYGON > STATUS ON > DATA states > CLASSITEM 'Pop1999' > NAME Pop1999 > TEMPLATE us_pop.html > CLASS > EXPRESSION ([Pop1999] > 0 and [Pop1999] < 2135252) > COLOR 254 240 217 > OUTLINECOLOR 128 128 128 > END > CLASS > EXPRESSION ([Pop1999] > 2135251 and [Pop1999] < 4970311) > COLOR 253 212 158 > OUTLINECOLOR 128 128 128 > END > CLASS > EXPRESSION ([Pop1999] > 4970310 and [Pop1999] < 9866640) > COLOR 253 187 132 > OUTLINECOLOR 128 128 128 > END > CLASS > EXPRESSION ([Pop1999] > 9866639 and [Pop1999] < 20127338) > COLOR 252 141 89 > OUTLINECOLOR 128 128 128 > END > CLASS > EXPRESSION ([Pop1999] > 20127337 ) > COLOR 227 74 51 > OUTLINECOLOR 128 128 128 > END > END # end class > END # end layer > END # end Map File > -- > Geoffrey Rowland > Technical Officer > Climate Information Project > NOAA Research > Office of Global Programs > http://www.cip.ogp.noaa.gov > Contractor, > RGII Technologies, Inc., a Computer Horizons Company > http://www.rg2.com > Phone: 301-427-2089x186 > Fax : 301-427-2082 > geoffrey.rowland@noaa.gov From toomas.aas@raad.tartu.ee Tue Sep 2 21:57:56 2003 From: toomas.aas@raad.tartu.ee (Toomas Aas) Date: Tue, 2 Sep 2003 23:57:56 +0300 Subject: [Mapserver-users] Problems with umlauts in labels Message-ID: <200309022058.h82Kw5210548@lv.raad.tartu.ee> Hello! A couple of days ago, some developers who are writing an application in PHP/Mapscript (3.6.6) on our server told me that after they returned from vacation they discovered that labels in their application no longer display umlauts. It had worked fine when they went to vacation. The only thing I had done with the server while they were away was upgrading PHP from 4.2.3 to 4.3.3. I didn't rebuild the php_mapscript.so module at that time, since in brief (too brief I guess) testing the application "seemed" unaffected by the PHP upgrade. The first thing I tried was rebuilding PHP/Mapscript but that didn't help. What did help was rebuilding PHP using external GD library. As you may know, PHP includes its own "bundled" GD library, but it can also use external GD. My server is running FreeBSD and it seems that when building PHP from FreeBSD ports the build process now chooses to use bundled GD, whereas earlier it used external GD. Hence my problem (and the workaround). OK, so I got it working now, but I'm sure it will bite me again next time I upgrade PHP. I would like to find a more permanent fix. If someone is using PHP/Mapscript 3.6.6 and PHP 4.3.x with bundled GD library, are you able to display umlauts in labels? Just trying to make sure if the problem is in my server or somewhere else. -- Toomas Aas | toomas.aas@raad.tartu.ee | http://www.raad.tartu.ee/~toomas/ * Kindred: Fear that relatives are coming to stay. From geoffrey.rowland@noaa.gov Tue Sep 2 21:52:46 2003 From: geoffrey.rowland@noaa.gov (Geoffrey Rowland) Date: Tue, 02 Sep 2003 16:52:46 -0400 Subject: [Mapserver-users] PHP MapScript problem (use of undefined constant) In-Reply-To: <20030902201201.DKLW16764.viefep12-int.chello.at@libero.it> References: <20030902201201.DKLW16764.viefep12-int.chello.at@libero.it> Message-ID: <3F55031E.2050809@noaa.gov> This is a multi-part message in MIME format. --------------010304030609070602010607 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Yes, I am using Mapserver 4 and PHP 4.3.2, I tried using the selectOutputFormat and it still gives the same error. What is very strange is I have this same script running on a different server, set up (as far as I am aware) the same exact way as the server I am having problems with, and it works fine. Armin Burger wrote: >Geoffrey, > >are you using Mapserver 4? Then you have to define the image format >before: > >$map->selectOutputFormat("swf"); >$image=$map->draw(); >$image_url=$image->saveWebImage(); > >Armin > > > > >>Notice: Use of undefined constant MS_SWF - assumed 'MS_SWF' in >>D:\Inetpub\CIP ROOT BETA\wnv\wnv_pop.php on line 4 >> >> > > > >>this will have the same notice no matter what type of file i try to >>output...and the image doesn't output (nothing is written in the >>directory that i specified to use in my map file). any idea what may >> >> >be > > >>causing this? >> >> > > > >>> $map = ms_newMapObj("pop.map"); >> $image=$map->draw(); >> $image_url=$image->saveWebImage(MS_SWF,1,1,0); >> >> > > > >> ?> >> >> -- Geoffrey Rowland Technical Officer Climate Information Project NOAA Research Office of Global Programs http://www.cip.ogp.noaa.gov Contractor, RGII Technologies, Inc., a Computer Horizons Company http://www.rg2.com Phone: 301-427-2089x186 Fax : 301-427-2082 geoffrey.rowland@noaa.gov --------------010304030609070602010607 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Yes, I am using Mapserver 4 and PHP 4.3.2, I tried using the selectOutputFormat and it still gives the same error.  What is very strange is I have this same script running on a different server, set up (as far as I am aware) the same exact way as the server I am having problems with, and it works fine.

Armin Burger wrote:
Geoffrey,

are you using Mapserver 4? Then you have to define the image format
before:

$map->selectOutputFormat("swf");
$image=$map->draw();
$image_url=$image->saveWebImage();

Armin


  
Notice: Use of undefined constant MS_SWF - assumed 'MS_SWF' in
D:\Inetpub\CIP ROOT BETA\wnv\wnv_pop.php on line 4
    

  
this will have the same notice no matter what type of file i try to
output...and the image doesn't output (nothing is written in the
directory that i specified to use in my map file).  any idea what may
    
be
  
causing this?
    

  
<?
         $map = ms_newMapObj("pop.map");
         $image=$map->draw();
         $image_url=$image->saveWebImage(MS_SWF,1,1,0);
    

  
         ?>
    

-- 
Geoffrey Rowland
Technical Officer
Climate Information Project
NOAA Research
Office of  Global Programs
http://www.cip.ogp.noaa.gov
Contractor, 
RGII Technologies, Inc., a Computer Horizons Company
http://www.rg2.com
Phone: 301-427-2089x186
Fax : 301-427-2082
geoffrey.rowland@noaa.gov












--------------010304030609070602010607-- From fx.gamoy@mapxplore.com Tue Sep 2 23:08:38 2003 From: fx.gamoy@mapxplore.com (fx gamoy) Date: Tue, 2 Sep 2003 23:08:38 +0100 Subject: [Mapserver-users] exporting dxf file using php/mapscript Message-ID: <001101c3719e$c345aa40$0201a8c0@mapxplore.com> C'est un message de format MIME en plusieurs parties. ------=_NextPart_000_000E_01C371A7.24F97070 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable hello world, Is it a way to export dxf file with php/mapscript? I would like to enable a function which allow the end-user to export on = th fly a dxf file of the image map. any suggestion? thanks fx ------=_NextPart_000_000E_01C371A7.24F97070 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
hello world,
Is it a way to export dxf file with=20 php/mapscript?
I would like to enable a function which = allow=20 the end-user to export on th fly a dxf file of the image = map.
 
any suggestion?
thanks
fx
------=_NextPart_000_000E_01C371A7.24F97070-- From kgeurts@gis.umn.edu Tue Sep 2 23:49:23 2003 From: kgeurts@gis.umn.edu (Kari Geurts) Date: Tue, 02 Sep 2003 17:49:23 CDT Subject: [Mapserver-users] RE:MapServer Documentation Webpages Message-ID: <200309022249.h82MnNfg012323@firefox.software.umn.edu> Hello MapServer Users, I have made some changes to the MapServer Documentation Project webpages. These changes were made in an attempt to make the documentation of MapServer easier to find, more up-to-date, and to provide more explaination. You can visit the pages that have changed at the following URLs or just go to the MapServer home page and click on the Documentation link. http://mapserver.gis.umn.edu/doc.html http://mapserver.gis.umn.edu/mdp/mdp.html http://mapserver.gis.umn.edu/doc/develop_index.html http://mapserver.gis.umn.edu/mdp/current_projects.html http://mapserver.gis.umn.edu/doc/doc_es.html http://mapserver.gis.umn.edu/doc/doc_fr.html I would appreciate any and all feedback about the new webpages.   Thanks, Kari A. Geurts MDP Coordinator Department of Forest Resources University of Minnesota 115 Green Hall 1530 Cleveland Ave. N. St. Paul, MN 55108-6112 Phone: 612-624-3459 Email: kgeurts@gis.umn.edu From Ann.Keane@noaa.gov Wed Sep 3 00:54:03 2003 From: Ann.Keane@noaa.gov (Ann Keane) Date: Tue, 02 Sep 2003 17:54:03 -0600 Subject: [Mapserver-users] Tutorial raster examples on Mapserver 4.0? Message-ID: <3F552D9B.706@noaa.gov> I'm trying to run the 3.5 tutorial examples on a 4.0 mapserver to test the GDAL installation. I can't get the raster examples to work: http://terrasip.gis.umn.edu/projects/tutorial35/s2/s2ex3.html mapserv -v MapServer version 4.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE The example works if I remove the raster layer. I've set DEBUG on and tried logging it to a file, but I don't get any errors. Is there any other way to test the installation? Thanks- Ann From woodbri@swoodbridge.com Wed Sep 3 00:54:07 2003 From: woodbri@swoodbridge.com (woodbri@swoodbridge.com) Date: Tue, 02 Sep 2003 19:54:07 -0400 Subject: [Mapserver-users] exporting dxf file using php/mapscript In-Reply-To: <001101c3719e$c345aa40$0201a8c0@mapxplore.com> Message-ID: <3F54F55F.16815.1E0F7990@localhost> Well, aside from various difficulties you might face with respect to handling data that dxf may not handle well, like image data, I think the best way to do this would be to write an OUTFORMAT driver for DXF format. I think you be able to use the Flash driver as a start point and modify it to write DXF instead. Having never ventured into this code I may not know what I'm talking about but both Flash and DXF support vectors, polygons and annotation. Just a thought, -Steve W. On 2 Sep 2003 at 23:08, fx gamoy wrote: > hello world, > Is it a way to export dxf file with php/mapscript? > I would like to enable a function which allow the end-user to export > on th fly a dxf file of the image map. > > any suggestion? > thanks > fx > From warmerdam@pobox.com Wed Sep 3 03:20:39 2003 From: warmerdam@pobox.com (Frank Warmerdam) Date: Tue, 02 Sep 2003 22:20:39 -0400 Subject: [Mapserver-users] Tutorial raster examples on Mapserver 4.0? In-Reply-To: <3F552D9B.706@noaa.gov> References: <3F552D9B.706@noaa.gov> Message-ID: <3F554FF7.7060907@pobox.com> Ann Keane wrote: > > I'm trying to run the 3.5 tutorial examples on a 4.0 mapserver to test > the GDAL installation. I can't get the raster examples to work: > > http://terrasip.gis.umn.edu/projects/tutorial35/s2/s2ex3.html > > mapserv -v > > MapServer version 4.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ > SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > > The example works if I remove the raster layer. I've set DEBUG on and > tried logging it to a file, but I don't get any errors. Is there any > other way to test the installation? Ann, Things that may be different now: o The way paths to data files are resolved is different in subtle ways. Try an absolute path, or relative to SHAPEPATH or relative to the map. o World file handling may be slightly different. Does gdalinfo report proper georeferencing for the file in question? Georeferencing that makes sense relative to the map area? o Offsite handling is different, you may need OFFSITE r g b to get proper offsite handling. Good luck, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From plists@prometheus.org.yu Wed Sep 3 11:05:48 2003 From: plists@prometheus.org.yu (Attila Csipa) Date: Wed, 3 Sep 2003 12:05:48 +0200 Subject: [Mapserver-users] exporting dxf file using php/mapscript In-Reply-To: <3F54F55F.16815.1E0F7990@localhost> References: <3F54F55F.16815.1E0F7990@localhost> Message-ID: <200309031204.45543.plists@prometheus.org.yu> On Wednesday 03 September 2003 01:54, woodbri@swoodbridge.com wrote: > Well, aside from various difficulties you might face with respect to > handling data that dxf may not handle well, like image data, I think > the best way to do this would be to write an OUTFORMAT driver for DXF > format. I think you be able to use the Flash driver as a start point Actually there already is an (untested and just as undocumented) DXF OUTPUTFORMAT, not for the faint at heart. You can try it out if you have a v4 mapserver or newer cvs code. Do everything as usual, just drop the following in your mapfile to generate dxf-s instead of images: OUTPUTFORMAT NAME imagemap MIMETYPE "text/plain" DRIVER imagemap EXTENSION dxf FORMATOPTION DXF=ON END From nf10@hotmail.com Wed Sep 3 13:34:04 2003 From: nf10@hotmail.com (Jeff L.) Date: Wed, 03 Sep 2003 12:34:04 +0000 Subject: [Mapserver-users] Zoom In to a defined area Message-ID: Hi Palle and David, I tried to change my code by setting mapext to the ViewArea value, but no success so far. When i select an option from my combo box, the map is redrawed but with the old mapext value. It's seems that i'm not setting correctly the new mapext. MapServer is using it's mapext value not the one i'm setting. I'm using this code snippet. Any help how to set correctly mapext is appreciated. function AreaSelected() { if (document.forms[0].ViewArea.selectedIndex != 0 && document.forms[0].ViewArea.selectedIndex !=1) { mapext = document.forms[0].ViewArea.value; document.forms[0].submit(); } } ...
... ... // Is this is correct ? ....
Jeff Lacoste _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus From dlowther@ou.edu Wed Sep 3 13:56:46 2003 From: dlowther@ou.edu (Lowther, David W) Date: Wed, 3 Sep 2003 07:56:46 -0500 Subject: [Mapserver-users] Zoom In to a defined area Message-ID: Jeff, First - yes, it is correct to set IMGEXT. Your problem is with javascript - that was my biggest hurdle also. What you want to do is: A - get the value of the selected element of the combo box B - assign it to imgext in your mapserv form C - submit the form. Only javascript could make this difficult... Try this: function AreaSelected(){ msForm = document.myform; //a newExtent = msForm.ViewArea.options[msForm.ViewArea.selectedIndex].value; //b msForm.imgext.value = newExtent; //c msForm.submit(); } Dave > -----Original Message----- > From: Jeff L. [mailto:nf10@hotmail.com] > Sent: Wednesday, September 03, 2003 7:34 AM > To: dlowther@ou.edu; palle@mail-online.dk; > mapserver-users@lists.gis.umn.edu > Subject: Re: [Mapserver-users] Zoom In to a defined area > > > Hi Palle and David,