From deabelle@agro.uba.ar Wed Oct 1 08:25:10 2003 From: deabelle@agro.uba.ar (Diego de Abelleyra) Date: Wed, 1 Oct 2003 04:25:10 -0300 Subject: [Mapserver-users] Isolines References: <1064590442.2000.39.camel@localhost> Message-ID: <001b01c387ed$25cb8680$0100a8c0@agro.uba.ar> Hello, Have someone worked with isolines in mapserver, like for example temperature isolines? Is it posible to do with mapserver? Thamks, Diego de Abelleyra. Buenos Aires, Argentina ----- Original Message ----- From: "Patrick J Barabe" To: "Umberto Nicoletti" Cc: < > Sent: Tuesday, September 30, 2003 3:10 PM Subject: Re: [Mapserver-users] Java mapserver HOWTO and questions > > Hi Umberto, > > Your HOWTO was very useful to me in compiling java mapscript on Solaris. > Thanks for submitting this to the list. > > Now that I'm looking at the javadocs I compiled, I'm exactly sure how to > implement the java module. Do you have some sample JSP code I could > take a look at that demos just bit of core functionality? Also, should > libmapscript.so from the java build directory go anywhere in particular, > or is is sufficient to add this directory to $LD_LIBRARY_PATH? > > Thanks in advance, > Patrick Barabe > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From collao_andres@hotmail.com Wed Oct 1 00:36:24 2003 From: collao_andres@hotmail.com (collao_andres) Date: Tue, 30 Sep 2003 23:36:24 -0000 Subject: [Mapserver-users] problem with mapserver4 and postgres Message-ID: hello I have compiled to mapserver 4, and I can use LABEL and SHAPE without problems, but when trying to read from the data base in Postgres 7.3.2/PostGIS 0,7,5 does not show respective layer. I have tried of everything, but nothing seems to give result; only stranger who happens is that when making this consultation in postgres appears the following message parse error at or near "geom" at character in the past, this aplication run without problem over mapserver 3.6.6 and when start with version 4 I modified the Mapfile You have any idea?? MAP NAME "FIRSTMAP" STATUS ON #EXTENT -5696501 1923039 5696501 11022882 EXTENT 251537 6338840 258665 6344780 SIZE 400 400 SHAPEPATH "/usr/local/apache2/htdocs/alberto/" IMAGETYPE png IMAGECOLOR 255 255 255 UNITS METERS WEB IMAGEPATH "/usr/local/apache2/htdocs/tmp/" IMAGEURL "/tmp/" END OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE PC256 TRANSPARENT FALSE END PROJECTION "proj=utm" "zone=19" "south" "ellps=intl" "towgs84=-288,175,-376,0,0,0,0" "units=m" "no_defs" END LAYER NAME "SAMPLE GRID" PROJECTION "proj=utm" "zone=19" "south" "ellps=intl" "towgs84=-288,175,-376,0,0,0,0" "units=m" "no_defs" END TYPE LINE STATUS ON CLASS COLOR 255 255 128 LABEL TYPE BITMAP SIZE MEDIUM COLOR 255 100 50 END END GRID MINSUBDIVIDE 64 MAXSUBDIVIDE 64 #ABELFORMAT "DDMM" END END LAYER NAME "ssd" STATUS ON DATA "comunas" TYPE POLYGON UNITS METERS SIZEUNITS PIXELS TOLERANCE 0 TOLERANCEUNITS PIXELS CLASS TEMPLATE "void" STYLE SYMBOL 0 COLOR 255 255 255 OUTLINECOLOR 200 200 200 SIZE 1 MINSIZE 1 MAXSIZE 100 END END END LAYER NAME "ejes_calles" STATUS ON DATA "the_geom from ejes_calles" TYPE LINE CONNECTIONTYPE POSTGIS CONNECTION "user=admin password=admin dbname=valparaiso host=localhost port=5432" UNITS METERS SIZEUNITS METERS TOLERANCE 0 TOLERANCEUNITS PIXELS CLASS NAME "calles_zoom_5" STYLE #SYMBOL 0 COLOR 0 0 0 SIZE 10 END END END END From John.Hockaday@ga.gov.au Wed Oct 1 01:01:33 2003 From: John.Hockaday@ga.gov.au (John.Hockaday@ga.gov.au) Date: Wed, 1 Oct 2003 10:01:33 +1000 Subject: [Mapserver-users] OGC implementing and conforming products for mapserv Message-ID: Hi, I was having a look at the OGC list of "Products Conforming to or Implementing OGC Specs or Interfaces" at URL: http://www.opengis.org/testing/product/ I noticed that Mapserv 3.5 is the only mapserv product mentioned on this site. If one checks the "Conforming Only" checkbox, mapserv doesn't show up in the list. This doesn't build up one's confidence in the mapserv product as being OGC compliant. Wouldn't it be a good idea if each time a mapserv product/version was released, it was somehow submitted to this OGC list to advertise if it was compliant or not? Thanks. John From vguzman@maintask.com Wed Oct 1 02:00:53 2003 From: vguzman@maintask.com (=?ISO-8859-1?Q?Vladimir_Guzm=E1n?=) Date: Tue, 30 Sep 2003 20:00:53 -0500 Subject: [Mapserver-users] Interlaced Reference Message-ID: <3F7A2745.6050701@maintask.com> Hello. I'm trying to use fpdf to get a "printable" map with phpmapscript. Everything is fine, except that when I try to generate the Reference Map, I get the following error: *FPDF error: *Interlacing not supported: /usr/local/apache/htdocs/tmp/MS_CTzMgP.png This is because phpmapscript is producing an interlaced png, and FPDF can't handle it. But I have the following in my .map file: OUTPUTFORMAT NAME png MIMETYPE "image/png" DRIVER "GD/PNG" FORMATOPTION "INTERLACE=OFF" END # # Start of reference map # REFERENCE IMAGE "/usr/local/apache/htdocs/sig_curaduria/graphics/reference7.png" EXTENT 983737 984000 1007778 1026000 SIZE 183 320 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END And it works perfect for the legend, the scale and the map itself. The file /usr/local/apache/htdocs/sig_curaduria/graphics/reference7.png is not interlaced. My phpmapscript configuration: MapServer Version MapServer version 4.0-beta1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE PHP MapScript Version ($Revision: 1.168 $ $Date: 2003/06/04 17:57:12 $) Any hints? Thanks a lot, -- Vladimir Ilich Guzmán R. ------------------------ http://www.maintask.com From warmerdam@pobox.com Wed Oct 1 04:10:31 2003 From: warmerdam@pobox.com (Frank Warmerdam) Date: Tue, 30 Sep 2003 23:10:31 -0400 Subject: [Mapserver-users] OGC implementing and conforming products for mapserv In-Reply-To: References: Message-ID: <3F7A45A7.8030801@pobox.com> John.Hockaday@ga.gov.au wrote: > Hi, > > I was having a look at the OGC list of "Products > Conforming to or Implementing OGC Specs or > Interfaces" at URL: > > http://www.opengis.org/testing/product/ > > I noticed that Mapserv 3.5 is the only mapserv > product mentioned on this site. If one checks > the "Conforming Only" checkbox, mapserv doesn't > show up in the list. This doesn't build up one's > confidence in the mapserv product as being OGC > compliant. > > Wouldn't it be a good idea if each time a mapserv > product/version was released, it was somehow > submitted to this OGC list to advertise if it was > compliant or not? John, I agree that more recent versions should be included as well as mention of WFS and "web map context" support. However, to be conforming I *believe* we have to put the server through a not-too-cheap conformance testing process. I am not sure anyone is prepared to pay for that though one of the government clients who feel strongly about OGC conformance might step up to pay for conformance testing. I thought Steve or UMN was now responsible for registering MapServer with the OGC products list? Best regards, -- ---------------------------------------+-------------------------------------- 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 ms57@streamyx.com Wed Oct 1 04:12:50 2003 From: ms57@streamyx.com (Steve McCrone) Date: Wed, 01 Oct 2003 11:12:50 +0800 Subject: [Mapserver-users] Find and ZoomTo shape file record Message-ID: <000f01c387c9$f3c89150$403c5edb@clickntrac> On my previous application the user was able to find a record in the shape file and the map would zoom into that record and colour it red. I did this by having a java script function - function findBuilding(inBuilding){ var aForm = document.forms[0] aForm.building.value = inBuilding; aForm.mode.value = "itemquery"; aForm.qlayer.value = "building_query"; aForm.mapext.value = "shapes"; aForm.buffer.value = "0.005"; aForm.submit() } and in my map file - LAYER # this layer just displays one building when it has been queried NAME "building_query" DATA Build TYPE POLYGON STATUS OFF FILTERITEM Bldg_name FILTER "%building%" CLASS TEMPLATE "demo.html" # Use to display map #COLOR 255 0 0 #OUTLINECOLOR 255 0 0 END # CLASS END # LAYER And it works fine. ======================================== Now, I am working with the sample - DHTML rubber-band zoom sample from http://maps.dnr.state.mn.us/mapserver_demos/workshop An I am trying to achive the same functionality. Note: I cannot "fix" the extents of the map area I want to zoom because the spatial coordinates of the shape fuile records are constantly changing. Thanks From burntmage@yahoo.com Wed Oct 1 06:09:29 2003 From: burntmage@yahoo.com (Michael Roach) Date: Tue, 30 Sep 2003 22:09:29 -0700 (PDT) Subject: [Mapserver-users] problem with mapserver4 and postgres In-Reply-To: Message-ID: <20031001050930.21748.qmail@web14809.mail.yahoo.com> --0-619328017-1064984969=:21616 Content-Type: text/plain; charset=us-ascii Has the db changed at all? Make sure the (column) f_geometry_column in the geometry_columns (table) points to the correct column name with the geometry column in the table you want to open "ejes_calles" . Pgadmin II make doing this easy. collao_andres wrote:hello I have compiled to mapserver 4, and I can use LABEL and SHAPE without problems, but when trying to read from the data base in Postgres 7.3.2/PostGIS 0,7,5 does not show respective layer. I have tried of everything, but nothing seems to give result; only stranger who happens is that when making this consultation in postgres appears the following message parse error at or near "geom" at character in the past, this aplication run without problem over mapserver 3.6.6 and when start with version 4 I modified the Mapfile You have any idea?? MAP NAME "FIRSTMAP" STATUS ON #EXTENT -5696501 1923039 5696501 11022882 EXTENT 251537 6338840 258665 6344780 SIZE 400 400 SHAPEPATH "/usr/local/apache2/htdocs/alberto/" IMAGETYPE png IMAGECOLOR 255 255 255 UNITS METERS WEB IMAGEPATH "/usr/local/apache2/htdocs/tmp/" IMAGEURL "/tmp/" END OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE PC256 TRANSPARENT FALSE END PROJECTION "proj=utm" "zone=19" "south" "ellps=intl" "towgs84=-288,175,-376,0,0,0,0" "units=m" "no_defs" END LAYER NAME "SAMPLE GRID" PROJECTION "proj=utm" "zone=19" "south" "ellps=intl" "towgs84=-288,175,-376,0,0,0,0" "units=m" "no_defs" END TYPE LINE STATUS ON CLASS COLOR 255 255 128 LABEL TYPE BITMAP SIZE MEDIUM COLOR 255 100 50 END END GRID MINSUBDIVIDE 64 MAXSUBDIVIDE 64 #ABELFORMAT "DDMM" END END LAYER NAME "ssd" STATUS ON DATA "comunas" TYPE POLYGON UNITS METERS SIZEUNITS PIXELS TOLERANCE 0 TOLERANCEUNITS PIXELS CLASS TEMPLATE "void" STYLE SYMBOL 0 COLOR 255 255 255 OUTLINECOLOR 200 200 200 SIZE 1 MINSIZE 1 MAXSIZE 100 END END END LAYER NAME "ejes_calles" STATUS ON DATA "the_geom from ejes_calles" TYPE LINE CONNECTIONTYPE POSTGIS CONNECTION "user=admin password=admin dbname=valparaiso host=localhost port=5432" UNITS METERS SIZEUNITS METERS TOLERANCE 0 TOLERANCEUNITS PIXELS CLASS NAME "calles_zoom_5" STYLE #SYMBOL 0 COLOR 0 0 0 SIZE 10 END END END END _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users --------------------------------- Do you Yahoo!? The New Yahoo! Shopping - with improved product search --0-619328017-1064984969=:21616 Content-Type: text/html; charset=us-ascii
Has the db changed at all? Make sure the (column) f_geometry_column in the geometry_columns (table) points to the correct column name with the geometry column in the table you want to open "ejes_calles" . Pgadmin II make doing this easy.

collao_andres <collao_andres@hotmail.com> wrote:
hello I have compiled to mapserver 4, and I can use LABEL and SHAPE
without problems, but when trying to read from the data base in
Postgres 7.3.2/PostGIS 0,7,5 does not show respective layer. I have
tried of everything, but nothing seems to give result; only stranger
who happens is that when making this consultation in postgres appears
the following message

parse error at or near "geom" at character

in the past, this aplication run without problem over mapserver 3.6.6
and when start with version 4 I modified the Mapfile

You have any idea??

MAP
NAME "FIRSTMAP"
STATUS ON
#EXTENT -5696501 1923039 5696501 11022882
EXTENT 251537 6338840 258665 6344780
SIZE 400 400
SHAPEPATH "/usr/local/apache2/htdocs/alberto/"
IMAGETYPE png
IMAGECOLOR 255 255 255
UNITS METERS
WEB
IMAGEPATH "/usr/local/apache2/htdocs/tmp/"
IMAGEURL "/tmp/"
END
OUTPUTFORMAT
NAME "png"
MIMETYPE "image/png"
DRIVER "GD/PNG"
EXTENSION "png"
IMAGEMODE PC256
TRANSPARENT FALSE
END

PROJECTION
"proj=utm"
"zone=19"
"south"
"ellps=intl"
"towgs84=-288,175,-376,0,0,0,0"
"units=m"
"no_defs"
END
LAYER
NAME "SAMPLE GRID"
PROJECTION
"proj=utm"
"zone=19"
"south"
"ellps=intl"
"towgs84=-288,175,-376,0,0,0,0"
"units=m"
"no_defs"
END
TYPE LINE
STATUS ON
CLASS
COLOR 255 255 128
LABEL
TYPE BITMAP
SIZE MEDIUM
COLOR 255 100 50
END
END

GRID
MINSUBDIVIDE 64
MAXSUBDIVIDE 64
#ABELFORMAT "DDMM"
END
END
LAYER
NAME "ssd"
STATUS ON
DATA "comunas"
TYPE POLYGON
UNITS METERS
SIZEUNITS PIXELS
TOLERANCE 0
TOLERANCEUNITS PIXELS
CLASS
TEMPLATE "void"
STYLE
SYMBOL 0
COLOR 255 255 255
OUTLINECOLOR 200 200 200
SIZE 1
MINSIZE 1
MAXSIZE 100
END
END
END
LAYER
NAME "ejes_calles"
STATUS ON
DATA "the_geom from ejes_calles"
TYPE LINE
CONNECTIONTYPE POSTGIS
CONNECTION "user=admin password=admin dbname=valparaiso
host=localhost port=5432"
UNITS METERS
SIZEUNITS METERS
TOLERANCE 0
TOLERANCEUNITS PIXELS
CLASS
NAME "calles_zoom_5"
STYLE
#SYMBOL 0
COLOR 0 0 0
SIZE 10
END
END
END
END


_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users


Do you Yahoo!?
The New Yahoo! Shopping - with improved product search --0-619328017-1064984969=:21616-- From mamwake@yahoo.com Wed Oct 1 07:16:57 2003 From: mamwake@yahoo.com (ronny) Date: Tue, 30 Sep 2003 23:16:57 -0700 (PDT) Subject: [Mapserver-users] errors In-Reply-To: <3F797EF6.4020308@dmsolutions.ca> Message-ID: <20031001061657.48402.qmail@web40310.mail.yahoo.com> thanks for ur reply but i don't see no word grid on this demo's mapfile! --- Daniel Morissette wrote: > ronny wrote: > > > when i try to laod gmap demo below is what am > getting; > > and nothing diplays!! > > > > Warning: MapServer Error in getString(): > (grid):(273) > > in /var/www/html/gmap/htdocs/gmap75.phtml on line > 71 > > > > In version 4.0, there is a new mapfile keyword > called GRID. You need to > add quotes around the word "grid" on the layer name > and data lines in > your mapfile so that the word grid is treated as a > string and not as a > mapfile keyword. > ===== ronny __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From mamwake@yahoo.com Wed Oct 1 07:31:09 2003 From: mamwake@yahoo.com (ronny) Date: Tue, 30 Sep 2003 23:31:09 -0700 (PDT) Subject: [Mapserver-users] errors In-Reply-To: <3F797EF6.4020308@dmsolutions.ca> Message-ID: <20031001063109.62009.qmail@web40302.mail.yahoo.com> sorry i got it! but now another errors comes up Warning: MapServer Error in loadClass(): (Lands):(105) in /var/www/html/gmap/htdocs/gmap75.phtml on line 71 Warning: Failed to open map file gmap75.map in /var/www/html/gmap/htdocs/gmap75.phtml on line 71 Fatal error: Call to a member function on a non-object in /var/www/html/gmap/htdocs/gmap75.php3 on line 525 --- Daniel Morissette wrote: > ronny wrote: > > > when i try to laod gmap demo below is what am > getting; > > and nothing diplays!! > > > > Warning: MapServer Error in getString(): > (grid):(273) > > in /var/www/html/gmap/htdocs/gmap75.phtml on line > 71 > > > > In version 4.0, there is a new mapfile keyword > called GRID. You need to > add quotes around the word "grid" on the layer name > and data lines in > your mapfile so that the word grid is treated as a > string and not as a > mapfile keyword. > > -- > ------------------------------------------------------------ > Daniel Morissette > morissette@dmsolutions.ca > DM Solutions Group > http://www.dmsolutions.ca/ > ------------------------------------------------------------ > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users ===== ronny __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From unicoletti@prometeo.it Wed Oct 1 07:58:51 2003 From: unicoletti@prometeo.it (Umberto Nicoletti) Date: 01 Oct 2003 08:58:51 +0200 Subject: [Mapserver-users] Java mapserver HOWTO and questions In-Reply-To: References: <1064590442.2000.39.camel@localhost> Message-ID: <1064991529.1951.7.camel@localhost> On Tue, 2003-09-30 at 20:10, Patrick J Barabe wrote: > Hi Umberto, > > Your HOWTO was very useful to me in compiling java mapscript on Solaris. > Thanks for submitting this to the list. > You're welcome. Could you please post to the list if there were differencies between linux and solaris? I could add them to the howto. > Now that I'm looking at the javadocs I compiled, I'm exactly sure how to > implement the java module. Do you have some sample JSP code I could > take a look at that demos just bit of core functionality? This is the most difficult part, as there is very little docs around. I am planning to add some demo jsps, but they will not be ready any soon (those that i have are very messy, definitely not ready for public scrutiny). What might help you is the php docs. Php classes are rather similar to Java ones. > Also, should > libmapscript.so from the java build directory go anywhere in particular, > or is is sufficient to add this directory to $LD_LIBRARY_PATH? > For this see the Q&A at the end of the HOWTO. PLease remember that your system path (linux/windows) is different from that searched for java. As i said in the q&a there is a reference to an excellent thread on tomcat-users that should help you out. > Thanks in advance, > Patrick Barabe HTH, Umberto > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From ms57@streamyx.com Wed Oct 1 08:00:51 2003 From: ms57@streamyx.com (Steve McCrone) Date: Wed, 01 Oct 2003 15:00:51 +0800 Subject: [Mapserver-users] Find and ZoomTo shape file record Message-ID: <000001c387ee$25ba04e0$41845fdb@clickntrac> This is a multi-part message in MIME format. --Boundary_(ID_Np4G7A8NpGVZU5fFEswMBw) Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT On my previous application the user was able to find a record in the shape file and the map would zoom into that record and colour it red. I did this by having a java script function - function findBuilding(inBuilding){ var aForm = document.forms[0] aForm.building.value = inBuilding; aForm.mode.value = "itemquery"; aForm.qlayer.value = "building_query"; aForm.mapext.value = "shapes"; aForm.buffer.value = "0.005"; aForm.submit() } and in my map file - LAYER # this layer just displays one building when it has been queried NAME "building_query" DATA Build TYPE POLYGON STATUS OFF FILTERITEM Bldg_name FILTER "%building%" CLASS TEMPLATE "demo.html" # Use to display map #COLOR 255 0 0 #OUTLINECOLOR 255 0 0 END # CLASS END # LAYER And it works fine. ======================================== Now, I am working with the sample - DHTML rubber-band zoom sample from http://maps.dnr.state.mn.us/mapserver_demos/workshop An I am trying to achive the same functionality. Note: I cannot "fix" the extents of the map area I want to zoom because the spatial coordinates of the shape fuile records are constantly changing. Thanks --Boundary_(ID_Np4G7A8NpGVZU5fFEswMBw) Content-type: text/html; charset=iso-8859-1 Content-transfer-encoding: 7BIT
On my previous application the user was able to find a record in the shape
file and the map would zoom into that record and colour it red. I did this
by having a java script function -

function findBuilding(inBuilding){
  var aForm = document.forms[0]
  aForm.building.value  = inBuilding;

  aForm.mode.value = "itemquery";
  aForm.qlayer.value = "building_query";
  aForm.mapext.value = "shapes";
  aForm.buffer.value = "0.005";
  aForm.submit()
}

and in my map file -

LAYER   # this layer just displays one building when it has been queried
  NAME "building_query"
  DATA Build
  TYPE  POLYGON
  STATUS OFF
  FILTERITEM Bldg_name
  FILTER "%building%"
  CLASS
    TEMPLATE "demo.html"        # Use to display map
    #COLOR 255 0 0
    #OUTLINECOLOR 255 0 0
  END # CLASS
END # LAYER

And it works fine.
========================================
Now, I am working with the sample - DHTML rubber-band zoom sample from
http://maps.dnr.state.mn.us/mapserver_demos/workshop

An I am trying to achive the same functionality. Note: I cannot "fix" the
extents of the map area I want to zoom because the spatial coordinates of
the shape fuile records are constantly changing. Thanks

--Boundary_(ID_Np4G7A8NpGVZU5fFEswMBw)-- From Thomas E Burk Wed Oct 1 16:06:23 2003 From: Thomas E Burk (Thomas E Burk) Date: Wed, 1 Oct 2003 10:06:23 -0500 (CDT) Subject: [Mapserver-users] OGC implementing and conforming products for mapserv Message-ID: <200310011506.h91F6N6M008985@mallit.fr.umn.edu> It's one of those things that just gets overlooked. Thanks for the reminder. We'll get 4.0 added to the "implements" list. Previously the decision was to not spend the time, etc. to prove conformance. We can revisit that again. Tom ======================= Dr. Thomas E. Burk University of Minnesota 1530 Cleveland Avenue North St. Paul, MN 55108 612-624-6741 612-625-5212 (FAX) tburk@umn.edu >From: Frank Warmerdam >User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5a) Gecko/20030718 >X-Accept-Language: en-us, en >MIME-Version: 1.0 >To: John.Hockaday@ga.gov.au >Cc: mapserver-users@lists.gis.umn.edu >Subject: Re: [Mapserver-users] OGC implementing and conforming products for mapserv >Content-Transfer-Encoding: 7bit >X-BeenThere: mapserver-users@lists.gis.umn.edu >X-Mailman-Version: 2.0.13 >List-Unsubscribe: , >List-Id: Mapserver Users Mailing List (Appropriate for general users) >List-Post: >List-Help: >List-Subscribe: , >List-Archive: >Date: Tue, 30 Sep 2003 23:10:31 -0400 > >John.Hockaday@ga.gov.au wrote: >> Hi, >> >> I was having a look at the OGC list of "Products >> Conforming to or Implementing OGC Specs or >> Interfaces" at URL: >> >> http://www.opengis.org/testing/product/ >> >> I noticed that Mapserv 3.5 is the only mapserv >> product mentioned on this site. If one checks >> the "Conforming Only" checkbox, mapserv doesn't >> show up in the list. This doesn't build up one's >> confidence in the mapserv product as being OGC >> compliant. >> >> Wouldn't it be a good idea if each time a mapserv >> product/version was released, it was somehow >> submitted to this OGC list to advertise if it was >> compliant or not? > >John, > >I agree that more recent versions should be included as well as mention of >WFS and "web map context" support. However, to be conforming I *believe* we >have to put the server through a not-too-cheap conformance testing process. >I am not sure anyone is prepared to pay for that though one of the government >clients who feel strongly about OGC conformance might step up to pay for >conformance testing. > >I thought Steve or UMN was now responsible for registering MapServer with the >OGC products list? > >Best regards, > >-- >---------------------------------------+-------------------------------------- >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 > > >_______________________________________________ >Mapserver-users mailing list >Mapserver-users@lists.gis.umn.edu >http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From ter-haseborg@sf-datentechnik.de Wed Oct 1 17:08:58 2003 From: ter-haseborg@sf-datentechnik.de (Frieso ter Haseborg) Date: Wed, 1 Oct 2003 18:08:58 +0200 Subject: [Mapserver-users] user-defined URL-Variables in MapFile Message-ID: <0DF955F15A102E4F81B948D44A45015A06922E@nt-sf-exchange.Windows2000> Hi, is there any way to let MS pass user-defined url-variables through to a PHP/MapScript embedded as a wms-layer in a mapfile? I'm working on a PHP/MapScript-component for creating dynamic layers. The PHP shall be used in a mapfile as ogc-compliant wms-layer. It's implemented this way: [...] LAYER NAME "wms" TYPE RASTER STATUS OFF CONNECTION "http://[...]/mapscript/dynamic-layer.php" CONNECTIONTYPE WMS METADATA [...] END END [...] I need to give the PHP specific instructions e.g. for authorization-purposes but all the php get's are the ogc-variables. Any ideas? TIA, Frieso ter Haseborg - Software Development - -- -------------------------------------------------- S&F Datentechnik GmbH&Co.KG Reimersstr. 41b 26789 Leer, Germany From blaine@plansight.com Wed Oct 1 17:08:44 2003 From: blaine@plansight.com (blaine@plansight.com) Date: Wed, 01 Oct 2003 11:08:44 -0500 Subject: [Mapserver-users] Changing Layer Colors on-the-fly Message-ID: <20031001160844.30306.qmail@mx3.webblake.com> All I would like to change the colors of a layer when another layer is turned on. (Specifically when I turn on air photos I want other layers to change to a color that can be seen easier.) Anyone have suggestions on how to do that? Blaine From bhudspeth@edac.unm.edu Wed Oct 1 17:07:53 2003 From: bhudspeth@edac.unm.edu (William Hudspeth) Date: Wed, 01 Oct 2003 10:07:53 -0600 Subject: [Mapserver-users] No layer colors In-Reply-To: <3F721098.8080009@edac.unm.edu> References: <3F721098.8080009@edac.unm.edu> Message-ID: <3F7AFBD9.6050307@edac.unm.edu> William Hudspeth wrote: > Hello all, > > I have recently set up Mapscript 4.0 (which otherwise is working > great) on a new server , and I am trying to run a script and > associated mapfile that I know works on an older installation. My > problem is, when I try to display data layers, whether point, line, or > polygon, their defined colors (as specified in the mapfile) do not > appear. They are all displayed as shades of gray. > > I suspect that it may have something to do with my system and > Mapserver configuration parameters. They are as follows: > > ./configure --with-postgis --with-proj --with-gdal --with-wmsclient > --with-pdf --with-pgsql --with-gd=/usr/local/src/gd-2.0.15 > --with-php=/usr/local/src/php-4.3.3 --with-wms --without-tiff > > Newly installed packages include: > > gd-2.0.15 > gdal-1.1.9 > curl-7.10.7 > libgeotiff-1.2.1 > PDFlib-5.0.1 > php-4.3.3 > proj 4.4.7 > postgis-0.7.5 > postgresql-7.3.4 > > Thanks in advance for the help, > > Bill > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From rusty@main.nc.us Wed Oct 1 21:06:35 2003 From: rusty@main.nc.us (Rusty Holleman) Date: Wed, 01 Oct 2003 16:06:35 -0400 Subject: [Mapserver-users] raster layers in PDF output don't get cropped Message-ID: <3F7B33CB.30702@main.nc.us> Curious if anyone else has seen this sort of behavior. I'm running mapserver 4.0, gd 2.0.12, PDFlib Lite 5.0.1. I have a map that composites several images, then draws roads on top. It works great when I render to PNG, but if I render to PDF the raster data spills all over the page. Watching acroread display the file, as it displays each raster layer the image is intact but all of the page outside the image bounding box gets colored with some color from the image, overwriting previous raster layers. If I add the formatoption OUTPUT_TYPE=RASTER, then I get mostly what I want except that places that are transparent (i.e. it falls on an offsite pixel for all of the raster layers) end up red rather than white. This can be circumvented by placing a small all-white image at the lowest layer, with no offsite value. Of course, setting OUTPUT_TYPE=RASTER defeats much of the purpose of rendering to PDF anyway, so this is not really a solution. Any ideas? Any other details I should post? thanks, rusty From scottf@secr.com Wed Oct 1 21:12:18 2003 From: scottf@secr.com (Scott Ferguson) Date: Wed, 1 Oct 2003 15:12:18 -0500 Subject: [Mapserver-users] new user Message-ID: <4F03BF4B4F2AD311919B00A0C9A7A1918D38BC@64.19.25.70.nw.nuvox.net> Hi - just found out about Mapserver. I'm running RedHat 9.0/Apache2.0 and am trying to install Mapserver 4.0. I'm a little confused as to why the "make" command is not creating the mapserv executable file. I've compiled and configured the mandatory utilities, but am not successful in creating the executable file. Any ideas?? thanks Scott Ferguson GIS Manager Global Routing Technologies 636.449.3212 scottf@secr.com www.grti.net From steve.lime@dnr.state.mn.us Wed Oct 1 21:35:21 2003 From: steve.lime@dnr.state.mn.us (Steve Lime) Date: Wed, 01 Oct 2003 15:35:21 -0500 Subject: [Mapserver-users] Show Big-5 with new version of GD Message-ID: I will look into it. How hard it is to add really depends how the GD stuff works. I could simply boil down to a configure check, or it could be much more complex. Please file this as a feature request in Bugzilla (http://mapserver.gis.umn.edu/bugs)... Steve >>> "phli" 9/29/2003 8:03:24 AM >>> Dear all, The new version of GD has included the capability in showing "Shift_JIS" (japanese) and "Big-5" (traditional chinese) fonts with the new function gdImageStringFTEx, instead of gdImageStringFT. It would be great if the next release of mapserver can include this capability. Or a patch for adding this capability will be greatly appreciated. (If anyone can provide such a patch, we are willing to pay for it, if the price is affordable.) Sincerely, Pei-Hwao Li --------------------------------------------------------------------------------------------- | Pei-Hwao Li, PhD Student Email: phli@ev076.ev.nctu.edu.tw | Inst. of Environ. Engrg. Tel/mobile:+886-3-5731947/0958415217 | National Chiao Tung Univ., 75 Po-Ai St., Hsinchu, Taiwan 30090, ROC. --------------------------------------------------------------------------------------------- From steve.lime@dnr.state.mn.us Wed Oct 1 21:41:11 2003 From: steve.lime@dnr.state.mn.us (Steve Lime) Date: Wed, 01 Oct 2003 15:41:11 -0500 Subject: [Mapserver-users] Changing Layer Colors on-the-fly Message-ID: You can use the REQUIRES parameter to toggle between 2 seperate layer definitions. For example: LAYER NAME 'photos' ... END LAYER NAME 'county_without_photo' GROUP 'county' REQUIRES '![photos]' ... END LAYER NAME 'county_with_photo' GROUP 'county' REQUIRES '[photos]' ... END Depending on the status of the photos layer only one of the county layers will be used. Steve >>> 10/1/2003 11:08:44 AM >>> All I would like to change the colors of a layer when another layer is turned on. (Specifically when I turn on air photos I want other layers to change to a color that can be seen easier.) Anyone have suggestions on how to do that? Blaine _______________________________________________ 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 Wed Oct 1 21:42:15 2003 From: steve.lime@dnr.state.mn.us (Steve Lime) Date: Wed, 01 Oct 2003 15:42:15 -0500 Subject: [Mapserver-users] No layer colors Message-ID: Are you displaying these over the top of greyscale imagery? >>> William Hudspeth 10/1/2003 11:07:53 AM >>> William Hudspeth wrote: > Hello all, > > I have recently set up Mapscript 4.0 (which otherwise is working > great) on a new server , and I am trying to run a script and > associated mapfile that I know works on an older installation. My > problem is, when I try to display data layers, whether point, line, or > polygon, their defined colors (as specified in the mapfile) do not > appear. They are all displayed as shades of gray. > > I suspect that it may have something to do with my system and > Mapserver configuration parameters. They are as follows: > > ./configure --with-postgis --with-proj --with-gdal --with-wmsclient > --with-pdf --with-pgsql --with-gd=/usr/local/src/gd-2.0.15 > --with-php=/usr/local/src/php-4.3.3 --with-wms --without-tiff > > Newly installed packages include: > > gd-2.0.15 > gdal-1.1.9 > curl-7.10.7 > libgeotiff-1.2.1 > PDFlib-5.0.1 > php-4.3.3 > proj 4.4.7 > postgis-0.7.5 > postgresql-7.3.4 > > Thanks in advance for the help, > > Bill > > _______________________________________________ > 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 gayathri@ou.edu Wed Oct 1 21:51:45 2003 From: gayathri@ou.edu (Swaminathan, Gayathri) Date: Wed, 1 Oct 2003 15:51:45 -0500 Subject: [Mapserver-users] new user Message-ID: Are you doing these steps, "[user@host mapserver]$ ./configure --help You will note the ability to specify which library to use, and from which location. Under normal circumstances the configuration script will automatically find all the libraries on your system and use them: [user@host mapserver]$ ./configure " Mentioned in the compile how to at http://mapserver.gis.umn.edu/doc40/unix-install-howto.html Thanks, Gayathri -----Original Message----- From: Scott Ferguson [mailto:scottf@secr.com] Sent: Wednesday, October 01, 2003 3:12 PM To: mapserver-users@lists.gis.umn.edu Subject: [Mapserver-users] new user Hi - just found out about Mapserver. I'm running RedHat 9.0/Apache2.0 and am trying to install Mapserver 4.0. I'm a little confused as to why the "make" command is not creating the mapserv executable file. I've compiled and configured the mandatory utilities, but am not successful in creating the executable file. Any ideas?? thanks Scott Ferguson GIS Manager Global Routing Technologies 636.449.3212 scottf@secr.com www.grti.net _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From rjames57@yahoo.com Wed Oct 1 22:12:12 2003 From: rjames57@yahoo.com (Randy James) Date: Wed, 1 Oct 2003 14:12:12 -0700 (PDT) Subject: [Mapserver-users] new user In-Reply-To: <4F03BF4B4F2AD311919B00A0C9A7A1918D38BC@64.19.25.70.nw.nuvox.net> Message-ID: <20031001211212.10635.qmail@web12507.mail.yahoo.com> Hi Post the error message you get when the compile stops. Cheers Randy --- Scott Ferguson wrote: > Hi - just found out about Mapserver. I'm running RedHat > 9.0/Apache2.0 and > am trying to install Mapserver 4.0. I'm a little > confused as to why the > "make" command is not creating the mapserv executable > file. I've compiled > and configured the mandatory utilities, but am not > successful in creating > the executable file. Any ideas?? > thanks > > Scott Ferguson > GIS Manager > Global Routing Technologies > 636.449.3212 > scottf@secr.com > www.grti.net > > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From gayathri@ou.edu Wed Oct 1 22:17:05 2003 From: gayathri@ou.edu (Swaminathan, Gayathri) Date: Wed, 1 Oct 2003 16:17:05 -0500 Subject: [Mapserver-users] new user Message-ID: Hi: Also forgot to ask in my last email.... Are you just doing "./configure" Or including libraries using "--with-" A very detailed help on "configure" appears when you do "./configure --help". That may be handy when trying to Build this. Also, do you have your required libraries compiled already? That is your library ".so" files should be there in Their respective folders before you proceed to compile mapserver. HTH, Gayathri From gayathri@ou.edu Wed Oct 1 22:36:05 2003 From: gayathri@ou.edu (Swaminathan, Gayathri) Date: Wed, 1 Oct 2003 16:36:05 -0500 Subject: [Mapserver-users] new user Message-ID: Ya should be but don't bother about the ".so" files. So, if you are trying to compile mapserver with GD, PROJ say, you will have to compile GD first and then proj and then Do "./configure --with-proj[=DIR for PROJ where lib was created] --with GD [=DIR for GD where lib was created] And then do make. Cheers, Gayathri -----Original Message----- From: Scott Ferguson [mailto:scottf@secr.com] Sent: Wednesday, October 01, 2003 4:23 PM To: 'Swaminathan, Gayathri' Subject: RE: [Mapserver-users] new user this could be my problem. I tried the "./configure" only, then I tried including the "--with-" as well. I received the same results. Maybe I don't have the ".so" files in their respective folders. I believe all of the ".so" files are in my /usr/local/lib/ directory. -----Original Message----- From: Swaminathan, Gayathri [mailto:gayathri@ou.edu] Sent: Wednesday, October 01, 2003 4:17 PM To: 'scottf@secr.com' Cc: Mapserver List (mapserver-users@lists.gis.umn.edu) Subject: RE: [Mapserver-users] new user Hi: Also forgot to ask in my last email.... Are you just doing "./configure" Or including libraries using "--with-" A very detailed help on "configure" appears when you do "./configure --help". That may be handy when trying to Build this. Also, do you have your required libraries compiled already? That is your library ".so" files should be there in Their respective folders before you proceed to compile mapserver. HTH, Gayathri From rjames57@yahoo.com Wed Oct 1 22:45:47 2003 From: rjames57@yahoo.com (Randy James) Date: Wed, 1 Oct 2003 14:45:47 -0700 (PDT) Subject: [Mapserver-users] new user In-Reply-To: <4F03BF4B4F2AD311919B00A0C9A7A1918D38C1@64.19.25.70.nw.nuvox.net> Message-ID: <20031001214547.61728.qmail@web12501.mail.yahoo.com> Hi You must not have configured the compile, i do not think there is a makefile until you make one with: ./configure Cheers Randy --- Scott Ferguson wrote: > this is the error message after typing the "make" > command: > > "make: ***No target specified and no makefile found. > Stop." > > thanks > > -----Original Message----- > From: Randy James [mailto:rjames57@yahoo.com] > Sent: Wednesday, October 01, 2003 4:12 PM > To: scottf@secr.com > Cc: Mapserver-users@lists.gis.umn.edu > Subject: Re: [Mapserver-users] new user > > > Hi > > Post the error message you get when the compile stops. > > Cheers > Randy > > --- Scott Ferguson wrote: > > Hi - just found out about Mapserver. I'm running > RedHat > > 9.0/Apache2.0 and > > am trying to install Mapserver 4.0. I'm a little > > confused as to why the > > "make" command is not creating the mapserv executable > > file. I've compiled > > and configured the mandatory utilities, but am not > > successful in creating > > the executable file. Any ideas?? > > thanks > > > > Scott Ferguson > > GIS Manager > > Global Routing Technologies > > 636.449.3212 > > scottf@secr.com > > www.grti.net > > > > > > > > _______________________________________________ > > Mapserver-users mailing list > > Mapserver-users@lists.gis.umn.edu > > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > > __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From gayathri@ou.edu Wed Oct 1 23:14:29 2003 From: gayathri@ou.edu (Swaminathan, Gayathri) Date: Wed, 1 Oct 2003 17:14:29 -0500 Subject: [Mapserver-users] new user Message-ID: Scott, The compilation with GD and Proj alone was an example. Here is the list of mandatory libraries needed: GD 2.0.12 or greater PROJ4 -yes the 4.4.7 is good from www.remotesensing.org Freetype-version 2 or greater You will have to obtain these seperately and then compile each one of them successfully. Then do, "./configure --with-gd --with-proj --with-freetype " Now, Additional libraries such as jpeg library, Libtiff, Postgis, Libcurl for WMS etc., can be added., and then their respective --with- Can be added to "./configure" step Then after you sucessfully generate a makefile using this step., (the makefile will be in the same path where configure is), do "make" More help should be available in Mapserver Wiki Cheers, Gayathri -----Original Message----- From: Scott Ferguson [mailto:scottf@secr.com] Sent: Wednesday, October 01, 2003 4:57 PM To: 'Swaminathan, Gayathri' Subject: RE: [Mapserver-users] new user ok, the with GD compile was successful, but the with proj was not. I found a couple different files to download for the "proj4". One is for "openev" and the other is labeled as "proj4.4.7 tar.gz" Are these the correct files? thanks -----Original Message----- From: Swaminathan, Gayathri [mailto:gayathri@ou.edu] Sent: Wednesday, October 01, 2003 4:36 PM To: 'scottf@secr.com' Cc: Mapserver List (mapserver-users@lists.gis.umn.edu) Subject: RE: [Mapserver-users] new user Ya should be but don't bother about the ".so" files. So, if you are trying to compile mapserver with GD, PROJ say, you will have to compile GD first and then proj and then Do "./configure --with-proj[=DIR for PROJ where lib was created] --with GD [=DIR for GD where lib was created] And then do make. Cheers, Gayathri -----Original Message----- From: Scott Ferguson [mailto:scottf@secr.com] Sent: Wednesday, October 01, 2003 4:23 PM To: 'Swaminathan, Gayathri' Subject: RE: [Mapserver-users] new user this could be my problem. I tried the "./configure" only, then I tried including the "--with-" as well. I received the same results. Maybe I don't have the ".so" files in their respective folders. I believe all of the ".so" files are in my /usr/local/lib/ directory. -----Original Message----- From: Swaminathan, Gayathri [mailto:gayathri@ou.edu] Sent: Wednesday, October 01, 2003 4:17 PM To: 'scottf@secr.com' Cc: Mapserver List (mapserver-users@lists.gis.umn.edu) Subject: RE: [Mapserver-users] new user Hi: Also forgot to ask in my last email.... Are you just doing "./configure" Or including libraries using "--with-" A very detailed help on "configure" appears when you do "./configure --help". That may be handy when trying to Build this. Also, do you have your required libraries compiled already? That is your library ".so" files should be there in Their respective folders before you proceed to compile mapserver. HTH, Gayathri From TMitchell@lignum.com Wed Oct 1 23:29:31 2003 From: TMitchell@lignum.com (Tyler Mitchell) Date: Wed, 1 Oct 2003 15:29:31 -0700 Subject: [Mapserver-users] SOT: Historical Event Markup and Linking Message-ID: Came across this very interesting application. Uses SVG for maps, timelines, animations, etc. Select one of the "local documents" in the left side of the page to see it in action. I thought you'd be interested in case you are thinking about animations and alternative representations of map or location-based information. http://heml.mta.ca/heml-cocoon/ It looks like it could use mapserver - anyone from Mount Alison University on this list? >From the FAQ: "How do you make the SVG maps that underlie Heml map views? These are created by a php script called Nimue. Quite simply, it passes lat/long and colour values to pscoast, a part of the GMT mapping tools; the resulting postscript is converted to SVG with pstoedit; and the SVG document is translated to the origin with a xslt transformation. Nimue is entirely based on free software, and it works well on a RH Linux 7.3 box. I don't have a dedicated machine for Nimue, so I can't provide an address. The process is so CPU-intensive that it would overwhelm the other uses that a machine was being put to" From dbarron@ddive.com Thu Oct 2 01:41:35 2003 From: dbarron@ddive.com (Dan Barron) Date: Wed, 01 Oct 2003 17:41:35 -0700 Subject: [Mapserver-users] State & National Park Boundary Data Message-ID: <6.0.0.22.0.20031001174003.03e38358@arctictern.ddive.com> Hi, Can anyone point me to a source for state and national park boundary data in shp format? Thanks, Dan From burntmage@yahoo.com Thu Oct 2 03:28:22 2003 From: burntmage@yahoo.com (Michael Roach) Date: Wed, 1 Oct 2003 19:28:22 -0700 (PDT) Subject: [Mapserver-users] State & National Park Boundary Data In-Reply-To: <6.0.0.22.0.20031001174003.03e38358@arctictern.ddive.com> Message-ID: <20031002022822.67851.qmail@web14802.mail.yahoo.com> --0-1274135920-1065061702=:67572 Content-Type: text/plain; charset=us-ascii Funny place to find this data but @ Bureau of Transportation Statistics 2002. http://www.bts.gov/gis/download_sites/ntad02/newusdownloadform.html Dan Barron wrote:Hi, Can anyone point me to a source for state and national park boundary data in shp format? Thanks, Dan _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users --------------------------------- Do you Yahoo!? The New Yahoo! Shopping - with improved product search --0-1274135920-1065061702=:67572 Content-Type: text/html; charset=us-ascii
Funny place to find this data but @ Bureau of Transportation Statistics 2002.
 
http://www.bts.gov/gis/download_sites/ntad02/newusdownloadform.html

Dan Barron <dbarron@ddive.com> wrote:
Hi,

Can anyone point me to a source for state and national park boundary data
in shp format?

Thanks,

Dan

_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users


Do you Yahoo!?
The New Yahoo! Shopping - with improved product search --0-1274135920-1065061702=:67572-- From ter-haseborg@sf-datentechnik.de Thu Oct 2 07:48:04 2003 From: ter-haseborg@sf-datentechnik.de (Frieso ter Haseborg) Date: Thu, 2 Oct 2003 08:48:04 +0200 Subject: [Mapserver-users] user-defined URL-Variables in MapFile Message-ID: <0DF955F15A102E4F81B948D44A45015A06922F@nt-sf-exchange.Windows2000> Hi, okay embarrassing - the correct answer is: "RTFM"! ;-) >From the "MapFile Reference - MapServer 4.0": [...] New in MapServer 4.0, variables can be substituted within mapfile parameter values. At this time, cookie and CGI parameter values are supported. This allows mapserver mapfiles to be aware of a user's cookies (Good for implementing security), or non-mapserver request parameters (Good for integrating with other systems). Syntax: '%' + variable name + '%' [...] Works great! Sorry for the annoyance, Frieso >-----Original Message----- >From: Frieso ter Haseborg >Sent: Wednesday, October 01, 2003 6:09 PM >To: mapserver-users@lists.gis.umn.edu >Subject: [Mapserver-users] user-defined URL-Variables in MapFile > > >Hi, > >is there any way to let MS pass user-defined url-variables through to a >PHP/MapScript embedded as a wms-layer in a mapfile? > >I'm working on a PHP/MapScript-component for creating dynamic layers. >The PHP shall be used in a mapfile as ogc-compliant wms-layer. It's >implemented this way: > >[...] >LAYER > NAME "wms" > TYPE RASTER > STATUS OFF > CONNECTION "http://[...]/mapscript/dynamic-layer.php" >passthrough!> > CONNECTIONTYPE WMS > METADATA > [...] > END >END >[...] > >I need to give the PHP specific instructions e.g. for >authorization-purposes but all the php get's are the ogc-variables. > >Any ideas? > >TIA, > >Frieso ter Haseborg >- Software Development - > >-- > >-------------------------------------------------- >S&F Datentechnik GmbH&Co.KG >Reimersstr. 41b >26789 Leer, Germany > >_______________________________________________ >Mapserver-users mailing list >Mapserver-users@lists.gis.umn.edu >http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > From shpr@libero.it Thu Oct 2 09:46:59 2003 From: shpr@libero.it (Stefano Bonnin) Date: Thu, 2 Oct 2003 10:46:59 +0200 Subject: [Mapserver-users] Problem with Mascript ShapeObj.values array Message-ID: <000701c388c1$bf5525c0$0601a8c0@comai.loc> Hi, I'm trying to get information from Postgis with PHPMapscript This is my layer definition: LAYER NAME "Percolato" METADATA "LYRNAME" "Percolato" "DESCRIPTION" "P.O.I2" "TABLE" "edtlyr_percolato_1" "QUERY_FIELDS" "gid,name,value,type" "RESULT_FIELDS" "Nome,ID,Tipo" END GROUP "P.O.I" STATUS ON DATA "the_geom from edtlyr_percolato_1" TYPE point CONNECTIONTYPE POSTGIS CONNECTION "user=user dbname=dbname" MAXSCALE 7000 MINSCALE 0 LABELITEM "name" LABELMAXSCALE 3500 CLASSITEM "type" CLASS CLASS NAME "a" EXPRESSION 'a' SYMBOL "prelievoperco" COLOR 255 255 255 SIZE 15 TEMPLATE "blank.html" LABEL BACKGROUNDCOLOR 0 0 0 FONT "arial" TYPE TRUETYPE POSITION lc MINSIZE 10 MAXSIZE 25 COLOR 255 255 255 BACKGROUNDSHADOWCOLOR 128 128 128 ANTIALIAS true END END END And this is my PHPMapscript code (It can be wrong because I have extracted some line with cut and past): ..... ..... $oLayer = $gpoMap->GetLayer($iLayer); $numResults = $oLayer->getNumResults(); $oLayer->open(); $resultFields = explode(",", $oLayer->getMetaData("RESULT_FIELDS")); for ($iRes=0; $iRes < $numResults; $iRes++) { $oRes = $oLayer->getResult($iRes); $oShape = $oLayer->getShape($oRes->tileindex,$oRes->shapeindex); fwrite($fp, "\n"); for($iField=0; $iField < sizeof($queryFields); $iField++) { if ($queryFields[$iField] == 'gid') { $gid = $oShape->values[$queryFields[$iField]]; } else if ($queryFields[$iField] == 'name') { $pname = $oShape->values[$queryFields[$iField]]; } else if ($queryFields[$iField] == 'type') { $pname = $oShape->values[$queryFields[$iField]]; } else if ($queryFields[$iField] == "value") { $vl = $oShape->values[$queryFields[$iField]]; } } } ...... ...... The tree first variables $gid, $pname and $vl has a correct value BUT the last one ($vl) has NO VALUE. The $oShape->values length is 3. Why the array length is only 3? My postgres table has the following attributes: "the_geom", "value","type", "name" and "gid". Thanks in advance. --- Outgoing mail is certified Virus Free. (FLASHH!) Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.522 / Virus Database: 320 - Release Date: 29/09/03 From mschepel@gis.nl Thu Oct 2 12:34:28 2003 From: mschepel@gis.nl (Menno Schepel) Date: Thu, 2 Oct 2003 13:34:28 +0200 Subject: [Mapserver-users] Oracle Spatial error Message-ID: Rodrigo, I have read your messages in the mapserv lists regarding the error messages generated from within the Mapserv (v4.0) environment when trying to connect to Oracle Spatial through a map file. I believe that my problem is similar to the problem that Yu Hsin had before (http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0202/msg00317. html through http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0202/msg00333.h tml). I am able to connect to OracleSpatial using SQLPLUS or when I start up Mapserv form the DOS prompt using the QUERY_STRING command with the same arguments as the ones used in the CGI environment. I am also able to generate an image from the Oracle Spatial layers using the map file and shp2img from the prompt. However, when I try to connect to Oracle Spatial using the CGI I am receiving the following errors: msDrawMap(): Image handling error. Failed to draw layer named 'weg'. msOCIConnect() in msOracleSpatialLayerOpen(): OracleSpatial error. I saw a lot of solutions mentioning setting some environment var's within Apache. I am working on a WinXP platform and I am using IIS as webserver. Oracle and the Oracle Spatial database is stored locally. It may be a stupid question, but it seems that if I am using IIS, there is no need for me to get access through Apache? All the CGI processes run under IIS. If so, then I should add somewhere the path or the reference to the tnsnames.ora I guess, but where? I would appreciate it if you could help sort this mess out. Regards, Menno Schepel From mcilhagga@dmsolutions.ca Thu Oct 2 13:25:25 2003 From: mcilhagga@dmsolutions.ca (Dave McIlhagga) Date: Thu, 02 Oct 2003 08:25:25 -0400 Subject: [Mapserver-users] OGC implementing and conforming products for mapserv In-Reply-To: <200310011506.h91F6N6M008985@mallit.fr.umn.edu> References: <200310011506.h91F6N6M008985@mallit.fr.umn.edu> Message-ID: <3F7C1935.4070103@dmsolutions.ca> Since we've (DM Solutions) been looking after all implementation of OGC specifications in MapServer, I think it's reasonable that we would take responsibility for ensuring we are properly registered at OGC for implemenation and/or conformance of OGC specs. We've discussed this internally recently. Assefa is responsible at our end for our OGC implementations -- he will follow-up with OGC at each MapServer release to identify any further implementations or conformance of mapServer to the specs. Re. WMS support in mapServer, we are striving for conformance and are going through conformance testing at the moment. With any luck, we'll pass the conformance test by the release of MapServer 4.1. Dave Thomas E Burk wrote: > It's one of those things that just gets overlooked. Thanks for the reminder. > We'll get 4.0 added to the "implements" list. Previously the decision was to not > spend the time, etc. to prove conformance. We can revisit that again. > > Tom > ======================= > Dr. Thomas E. Burk > University of Minnesota > 1530 Cleveland Avenue North > St. Paul, MN 55108 > 612-624-6741 > 612-625-5212 (FAX) > tburk@umn.edu > > >>From: Frank Warmerdam >>User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5a) Gecko/20030718 >>X-Accept-Language: en-us, en >>MIME-Version: 1.0 >>To: John.Hockaday@ga.gov.au >>Cc: mapserver-users@lists.gis.umn.edu >>Subject: Re: [Mapserver-users] OGC implementing and conforming products for > > mapserv > >>Content-Transfer-Encoding: 7bit >>X-BeenThere: mapserver-users@lists.gis.umn.edu >>X-Mailman-Version: 2.0.13 >>List-Unsubscribe: , > > > >>List-Id: Mapserver Users Mailing List (Appropriate for general users) > > > >>List-Post: >>List-Help: >>List-Subscribe: , > > > >>List-Archive: >>Date: Tue, 30 Sep 2003 23:10:31 -0400 >> >>John.Hockaday@ga.gov.au wrote: >> >>>Hi, >>> >>>I was having a look at the OGC list of "Products >>>Conforming to or Implementing OGC Specs or >>>Interfaces" at URL: >>> >>>http://www.opengis.org/testing/product/ >>> >>>I noticed that Mapserv 3.5 is the only mapserv >>>product mentioned on this site. If one checks >>>the "Conforming Only" checkbox, mapserv doesn't >>>show up in the list. This doesn't build up one's >>>confidence in the mapserv product as being OGC >>>compliant. >>> >>>Wouldn't it be a good idea if each time a mapserv >>>product/version was released, it was somehow >>>submitted to this OGC list to advertise if it was >>>compliant or not? >> >>John, >> >>I agree that more recent versions should be included as well as mention of >>WFS and "web map context" support. However, to be conforming I *believe* we >>have to put the server through a not-too-cheap conformance testing process. >>I am not sure anyone is prepared to pay for that though one of the government >>clients who feel strongly about OGC conformance might step up to pay for >>conformance testing. >> >>I thought Steve or UMN was now responsible for registering MapServer with the >>OGC products list? >> >>Best regards, >> >>-- >>---------------------------------------+-------------------------------------- >>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 >> >> >>_______________________________________________ >>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 > -- Dave McIlhagga President, DM Solutions Group http://www.dmsolutions.ca EMail : mcilhagga@dmsolutions.ca Phone : 613-565-5056 x15 Fax : 613-565-0925 From gerry.creager@tamu.edu Thu Oct 2 13:55:01 2003 From: gerry.creager@tamu.edu (Gerry Creager) Date: Thu, 02 Oct 2003 07:55:01 -0500 Subject: [Mapserver-users] OGC implementing and conforming products for mapserv In-Reply-To: <3F7C1935.4070103@dmsolutions.ca> References: <200310011506.h91F6N6M008985@mallit.fr.umn.edu> <3F7C1935.4070103@dmsolutions.ca> Message-ID: <3F7C2025.6070102@tamu.edu> Excellent news. Thanks, Gerry Creager Texas A&M University Dave McIlhagga wrote: > Since we've (DM Solutions) been looking after all implementation of OGC > specifications in MapServer, I think it's reasonable that we would take > responsibility for ensuring we are properly registered at OGC for > implemenation and/or conformance of OGC specs. > > We've discussed this internally recently. Assefa is responsible at our > end for our OGC implementations -- he will follow-up with OGC at each > MapServer release to identify any further implementations or conformance > of mapServer to the specs. > > Re. WMS support in mapServer, we are striving for conformance and are > going through conformance testing at the moment. With any luck, we'll > pass the conformance test by the release of MapServer 4.1. > > Dave > > > Thomas E Burk wrote: > >> It's one of those things that just gets overlooked. Thanks for the >> reminder. We'll get 4.0 added to the "implements" list. Previously the >> decision was to not spend the time, etc. to prove conformance. We can >> revisit that again. >> >> Tom >> ======================= >> Dr. Thomas E. Burk >> University of Minnesota >> 1530 Cleveland Avenue North >> St. Paul, MN 55108 >> 612-624-6741 >> 612-625-5212 (FAX) >> tburk@umn.edu >> >> >>> From: Frank Warmerdam >>> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5a) >>> Gecko/20030718 >>> X-Accept-Language: en-us, en >>> MIME-Version: 1.0 >>> To: John.Hockaday@ga.gov.au >>> Cc: mapserver-users@lists.gis.umn.edu >>> Subject: Re: [Mapserver-users] OGC implementing and conforming >>> products for >> >> >> mapserv >> >>> Content-Transfer-Encoding: 7bit >>> X-BeenThere: mapserver-users@lists.gis.umn.edu >>> X-Mailman-Version: 2.0.13 >>> List-Unsubscribe: >>> , >> >> >> >> >>> List-Id: Mapserver Users Mailing List (Appropriate for general users) >> >> >> >> >>> List-Post: >>> List-Help: >>> >>> List-Subscribe: >>> , >> >> >> >> >>> List-Archive: >>> Date: Tue, 30 Sep 2003 23:10:31 -0400 >>> >>> John.Hockaday@ga.gov.au wrote: >>> >>>> Hi, >>>> >>>> I was having a look at the OGC list of "Products Conforming to or >>>> Implementing OGC Specs or Interfaces" at URL: >>>> >>>> http://www.opengis.org/testing/product/ >>>> >>>> I noticed that Mapserv 3.5 is the only mapserv product mentioned on >>>> this site. If one checks the "Conforming Only" checkbox, mapserv >>>> doesn't show up in the list. This doesn't build up one's confidence >>>> in the mapserv product as being OGC compliant. >>>> Wouldn't it be a good idea if each time a mapserv product/version >>>> was released, it was somehow submitted to this OGC list to advertise >>>> if it was compliant or not? >>> >>> >>> John, >>> >>> I agree that more recent versions should be included as well as >>> mention of >>> WFS and "web map context" support. However, to be conforming I >>> *believe* we >>> have to put the server through a not-too-cheap conformance testing >>> process. >>> I am not sure anyone is prepared to pay for that though one of the >>> government >>> clients who feel strongly about OGC conformance might step up to pay for >>> conformance testing. >>> >>> I thought Steve or UMN was now responsible for registering MapServer >>> with the >>> OGC products list? >>> >>> Best regards, >>> >>> -- >>> ---------------------------------------+-------------------------------------- >>> >>> 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 >>> >>> >>> _______________________________________________ >>> 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 gayathri@ou.edu Thu Oct 2 16:12:20 2003 From: gayathri@ou.edu (Swaminathan, Gayathri) Date: Thu, 2 Oct 2003 10:12:20 -0500 Subject: [Mapserver-users] new user Message-ID: Hi: libgd.so.2 is the GD lib file., guess that will be problem :) Can you find it? Do you have it in your gd directory? Did you make gd and install it? Post this information to the list as well. You will have several pointers that way, and will lead to a quicker solution. Thanks, Gayathri -----Original Message----- From: Scott Ferguson [mailto:scottf@secr.com] Sent: Thursday, October 02, 2003 10:00 AM To: 'Swaminathan, Gayathri' Subject: RE: [Mapserver-users] new user Gayathri- well I made it through the 'make' command with your instructions, but received this message("./mapserv: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory") when typing this command "./mapserv" at the mapserver prompt. The mapserv executable binary file was created, but wasn't sure if this error message was acceptable to move forward with the install. thanks, Scott -----Original Message----- From: Swaminathan, Gayathri [mailto:gayathri@ou.edu] Sent: Wednesday, October 01, 2003 5:14 PM To: 'scottf@secr.com' Cc: Mapserver List (mapserver-users@lists.gis.umn.edu) Subject: RE: [Mapserver-users] new user Scott, The compilation with GD and Proj alone was an example. Here is the list of mandatory libraries needed: GD 2.0.12 or greater PROJ4 -yes the 4.4.7 is good from www.remotesensing.org Freetype-version 2 or greater You will have to obtain these seperately and then compile each one of them successfully. Then do, "./configure --with-gd --with-proj --with-freetype " Now, Additional libraries such as jpeg library, Libtiff, Postgis, Libcurl for WMS etc., can be added., and then their respective --with- Can be added to "./configure" step Then after you sucessfully generate a makefile using this step., (the makefile will be in the same path where configure is), do "make" More help should be available in Mapserver Wiki Cheers, Gayathri -----Original Message----- From: Scott Ferguson [mailto:scottf@secr.com] Sent: Wednesday, October 01, 2003 4:57 PM To: 'Swaminathan, Gayathri' Subject: RE: [Mapserver-users] new user ok, the with GD compile was successful, but the with proj was not. I found a couple different files to download for the "proj4". One is for "openev" and the other is labeled as "proj4.4.7 tar.gz" Are these the correct files? thanks -----Original Message----- From: Swaminathan, Gayathri [mailto:gayathri@ou.edu] Sent: Wednesday, October 01, 2003 4:36 PM To: 'scottf@secr.com' Cc: Mapserver List (mapserver-users@lists.gis.umn.edu) Subject: RE: [Mapserver-users] new user Ya should be but don't bother about the ".so" files. So, if you are trying to compile mapserver with GD, PROJ say, you will have to compile GD first and then proj and then Do "./configure --with-proj[=DIR for PROJ where lib was created] --with GD [=DIR for GD where lib was created] And then do make. Cheers, Gayathri -----Original Message----- From: Scott Ferguson [mailto:scottf@secr.com] Sent: Wednesday, October 01, 2003 4:23 PM To: 'Swaminathan, Gayathri' Subject: RE: [Mapserver-users] new user this could be my problem. I tried the "./configure" only, then I tried including the "--with-" as well. I received the same results. Maybe I don't have the ".so" files in their respective folders. I believe all of the ".so" files are in my /usr/local/lib/ directory. -----Original Message----- From: Swaminathan, Gayathri [mailto:gayathri@ou.edu] Sent: Wednesday, October 01, 2003 4:17 PM To: 'scottf@secr.com' Cc: Mapserver List (mapserver-users@lists.gis.umn.edu) Subject: RE: [Mapserver-users] new user Hi: Also forgot to ask in my last email.... Are you just doing "./configure" Or including libraries using "--with-" A very detailed help on "configure" appears when you do "./configure --help". That may be handy when trying to Build this. Also, do you have your required libraries compiled already? That is your library ".so" files should be there in Their respective folders before you proceed to compile mapserver. HTH, Gayathri From TMCNEIL@arinc.com Thu Oct 2 16:31:22 2003 From: TMCNEIL@arinc.com (McNeil, Todd W. (TMCNEIL)) Date: Thu, 2 Oct 2003 11:31:22 -0400 Subject: [Mapserver-users] MapServer 3.5: Error Message Message-ID: <0734A2B8CF21D711B98B00080224869C062D9FEA@exanpmb3.arinc.com> Hi All, I'm new to this list and new to using MapServer, but I was hoping to learn about it and possibly use it. I'm a GIS user, specifically with ESRI and MapInfo products and have used ArcIMS a little. Someone pointed me to MapServer because it willl use shapefiles natively to create maps and it's free. I downloaded version 3.5 and installed it using the instructions. Everything seems to be working so far. I've tested the CGI executable using the instructions: http://localhost/scripts/mapserv.exe (localhost is not actually my machine name) and get this message: No query information to decode. QUERY_STRING not set. I also downloaded the Tutorial and have come across an error message that does not make sense to me. I am going through the 1st example of section 1 of the tutorial. I use this URL to retrieve a map image: http://tmcneil1/Scripts/mapserv.exe?map=e:/projects/tutorial35/s1/s1ex1.map& amp;mode=map , and the resulting error message is: mapserv(): Web application error. No template provided. I'm not sure what's going on or if I am just plain missing something. I have read that there are three files that I don't have, the application initialization html file (demo_init.html), the map file (demo.map), and the main html template file (demo.html). Where can I find these and will it make my MapServer work? Any help will be greatly appreciated. Thanks, ********************************** Todd McNeil ARINC Annapolis, MD Tel: 410.266.2302 Email: tmcneil@arinc.com Fax: 410.573.3170 Web: http://www.arinc.com From scottf@secr.com Thu Oct 2 16:40:36 2003 From: scottf@secr.com (Scott Ferguson) Date: Thu, 2 Oct 2003 10:40:36 -0500 Subject: [Mapserver-users] installation Message-ID: <4F03BF4B4F2AD311919B00A0C9A7A1918D38CC@64.19.25.70.nw.nuvox.net> after compiling the source code and creating the 'mapserv' file I received this message when typing the ./mapserv command at the prompt to test it: "./mapserv: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory" I've already compiled these librabries GD, Proj, and Freetype with success. Although, the 'libgd.so.2' file was not in my GD directory. any ideas as to the problem?? thanks Scott Ferguson GIS Manager Global Routing Technologies 636.449.3212 scottf@secr.com www.grti.net From rjames57@yahoo.com Thu Oct 2 17:17:26 2003 From: rjames57@yahoo.com (Randy James) Date: Thu, 2 Oct 2003 09:17:26 -0700 (PDT) Subject: [Mapserver-users] MapServer 3.5: Error Message In-Reply-To: <0734A2B8CF21D711B98B00080224869C062D9FEA@exanpmb3.arinc.com> Message-ID: <20031002161726.79441.qmail@web12504.mail.yahoo.com> Hi I found that the best way to get started was to download the demo and get that running first. The demo has examples of all the files you need. Cheers Randy --- "McNeil, Todd W. (TMCNEIL)" wrote: > Hi All, > > I'm new to this list and new to using MapServer, but I > was hoping to learn > about it and possibly use it. I'm a GIS user, > specifically with ESRI and > MapInfo products and have used ArcIMS a little. Someone > pointed me to > MapServer because it willl use shapefiles natively to > create maps and it's > free. I downloaded version 3.5 and installed it using > the instructions. > Everything seems to be working so far. I've tested the > CGI executable using > the instructions: http://localhost/scripts/mapserv.exe > (localhost is not > actually my > machine name) and get this message: > No query information to decode. QUERY_STRING not set. > > I also downloaded the Tutorial and have come across an > error message that > does not make sense to me. I am going through the 1st > example of section 1 > of the tutorial. I use this URL to retrieve a map image: > http://tmcneil1/Scripts/mapserv.exe?map=e:/projects/tutorial35/s1/s1ex1.map& > amp;mode=map > &mode=map> , and the resulting error message is: > mapserv(): Web application error. No template provided. > I'm not sure what's going on or if I am just plain > missing something. I > have read that there are three files that I don't have, > the application > initialization html file (demo_init.html), the map file > (demo.map), and the > main html template file (demo.html). Where can I find > these and will it > make my MapServer work? Any help will be greatly > appreciated. > Thanks, > ********************************** > Todd McNeil > ARINC > Annapolis, MD > Tel: 410.266.2302 Email: tmcneil@arinc.com > Fax: 410.573.3170 Web: http://www.arinc.com > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From rjames57@yahoo.com Thu Oct 2 17:27:15 2003 From: rjames57@yahoo.com (Randy James) Date: Thu, 2 Oct 2003 09:27:15 -0700 (PDT) Subject: [Mapserver-users] installation In-Reply-To: <4F03BF4B4F2AD311919B00A0C9A7A1918D38CC@64.19.25.70.nw.nuvox.net> Message-ID: <20031002162715.93331.qmail@web12505.mail.yahoo.com> Hi Have you checked in /usr/local/lib if your compiled GD yourself it would be in there, but if you are using a rpm it is in /usr/lib you may need to add the path to /usr/local/lib in your ld.so.conf and run ldconfig Cheers Randy --- Scott Ferguson wrote: > after compiling the source code and creating the > 'mapserv' file I received > this message when typing the ./mapserv command at the > prompt to test it: > > "./mapserv: error while loading shared libraries: > libgd.so.2: cannot open > shared object file: No such file or directory" > > I've already compiled these librabries GD, Proj, and > Freetype with success. > Although, the 'libgd.so.2' file was not in my GD > directory. > any ideas as to the problem?? > thanks > > Scott Ferguson > GIS Manager > Global Routing Technologies > 636.449.3212 > scottf@secr.com > www.grti.net > > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From adams@terrestris.de Thu Oct 2 17:44:33 2003 From: adams@terrestris.de (Till Adams) Date: Thu, 02 Oct 2003 18:44:33 +0200 Subject: [Mapserver-users] installation References: <4F03BF4B4F2AD311919B00A0C9A7A1918D38CC@64.19.25.70.nw.nuvox.net> Message-ID: <3F7C55F1.7030006@terrestris.de> Scott, I guess you have to re-read your ld.so.conf table, probably you'll find it in /etc There are two ways to go: 1. Edit the file ld.so.conf and add the line /usr/lib Then restart your server or run '/sbin/ldconfig' 2. Run the command '/sbin/ldconfig /usr/local' (Both as 'root') If you choose way 2 please remember, that you'll have to give this command every time you restart your server. Hope that's it, have a nice weekend (yes, we in germany have bank-holiday tomorrow and I'm NOT going to work ...) Till Scott Ferguson schrieb: > after compiling the source code and creating the 'mapserv' file I received > this message when typing the ./mapserv command at the prompt to test it: > > "./mapserv: error while loading shared libraries: libgd.so.2: cannot open > shared object file: No such file or directory" > > I've already compiled these librabries GD, Proj, and Freetype with success. > Although, the 'libgd.so.2' file was not in my GD directory. > any ideas as to the problem?? > thanks > > Scott Ferguson > GIS Manager > Global Routing Technologies > 636.449.3212 > scottf@secr.com > www.grti.net > > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > -- ***** Besuchen Sie uns auf der acqua alta ***** ***** vom 24.-27. November in München ***** ----- Dipl. Geogr. Till Adams terrestris, Paulsen&Adams GbR Siemensstr. 8 * 53121 Bonn Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 info@terrestris.de * www.terrestris.de From markadams@cuestasys.com Thu Oct 2 17:59:54 2003 From: markadams@cuestasys.com (Mark Adams) Date: Thu, 2 Oct 2003 12:59:54 -0400 Subject: [Mapserver-users] SLD support? Message-ID: <000a01c38906$9a9e2390$1300a8c0@cuestasys.com> This is a multi-part message in MIME format. ------=_NextPart_000_000B_01C388E5.138C8390 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Does anyone know if MapServer includes support for the Styled Layer Descriptors (SLD) specification at this point? Thanks in advance. ------------------------------ Mark Adams Business & Systems Analyst Cuesta Systems Inc. Email: markadams@cuestasys.com ------=_NextPart_000_000B_01C388E5.138C8390 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Does anyone know if MapServer includes support for the Styled Layer Descriptors (SLD) specification at = this point?

 

Thanks in advance.

 

------------------= ------------

Mark = Adams

Business & = Systems Analyst

Cuesta Systems = Inc.

Email: = markadams@cuestasys.com

 

------=_NextPart_000_000B_01C388E5.138C8390-- From morissette@dmsolutions.ca Thu Oct 2 19:02:08 2003 From: morissette@dmsolutions.ca (Daniel Morissette) Date: Thu, 02 Oct 2003 14:02:08 -0400 Subject: [Mapserver-users] SLD support? In-Reply-To: <000a01c38906$9a9e2390$1300a8c0@cuestasys.com> References: <000a01c38906$9a9e2390$1300a8c0@cuestasys.com> Message-ID: <3F7C6820.1010701@dmsolutions.ca> Mark Adams wrote: > Does anyone know if MapServer includes support for the Styled Layer > Descriptors (SLD) specification at this point? > Not yet, but we're working on it. This work is scheduled to be completed end of November, so expect it in a release around the end of the year. -- ------------------------------------------------------------ Daniel Morissette morissette@dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From m_anderson14@hotmail.com Thu Oct 2 19:32:11 2003 From: m_anderson14@hotmail.com (Michael Anderson) Date: Thu, 02 Oct 2003 18:32:11 +0000 Subject: [Mapserver-users] No scalebar, legend, or ref map images when I use 4.0 Message-ID: If I use 4.0 instead of 3.6.3 no legend, reference map, or scalebar images are created. The template still returns paths to where they should be, but the images never get written out. I've looked through the documented changes and don't see anything that explains it. What am I missing? Thanks. Mike Michael Anderson Spatial Information Technologies, Inc. _________________________________________________________________ Share your photos without swamping your Inbox. Get Hotmail Extra Storage today! http://join.msn.com/?PAGE=features/es From assefa@dmsolutions.ca Thu Oct 2 19:34:52 2003 From: assefa@dmsolutions.ca (Yewondwossen Assefa) Date: Thu, 02 Oct 2003 14:34:52 -0400 Subject: [Mapserver-users] SLD support? In-Reply-To: <000a01c38906$9a9e2390$1300a8c0@cuestasys.com> References: <000a01c38906$9a9e2390$1300a8c0@cuestasys.com> Message-ID: <3F7C6FCC.40507@dmsolutions.ca> It is not supported at this point. It is our intention to have the SLD support sometimes this fall (around end of November). Best Regards. Mark Adams wrote: > Does anyone know if MapServer includes support for the Styled Layer > Descriptors (SLD) specification at this point? > > > > Thanks in advance. > > > > ------------------------------ > > Mark Adams > > Business & Systems Analyst > > Cuesta Systems Inc. > > Email: markadams@cuestasys.com > > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From scottf@secr.com Thu Oct 2 19:44:46 2003 From: scottf@secr.com (Scott Ferguson) Date: Thu, 2 Oct 2003 13:44:46 -0500 Subject: [Mapserver-users] installation In-Reply-To: <4F03BF4B4F2AD311919B00A0C9A7A191948A67@64.19.25.70.nw.nuvox.net> Message-ID: <4F03BF4B4F2AD311919B00A0C9A7A1918D38D0@64.19.25.70.nw.nuvox.net> thanks i've got mapserver running now. I'm testing the 'demo' map file now. Looks like the demo file uses gif images. I'll probably get an error message since I don't have the gif licensing. Scott -----Original Message----- From: Randy James [mailto:rjames57@yahoo.com] Sent: Thursday, October 02, 2003 11:27 AM To: scottf@secr.com Cc: Mapserver-users@lists.gis.umn.edu Subject: Re: [Mapserver-users] installation Hi Have you checked in /usr/local/lib if your compiled GD yourself it would be in there, but if you are using a rpm it is in /usr/lib you may need to add the path to /usr/local/lib in your ld.so.conf and run ldconfig Cheers Randy --- Scott Ferguson wrote: > after compiling the source code and creating the > 'mapserv' file I received > this message when typing the ./mapserv command at the > prompt to test it: > > "./mapserv: error while loading shared libraries: > libgd.so.2: cannot open > shared object file: No such file or directory" > > I've already compiled these librabries GD, Proj, and > Freetype with success. > Although, the 'libgd.so.2' file was not in my GD > directory. > any ideas as to the problem?? > thanks > > Scott Ferguson > GIS Manager > Global Routing Technologies > 636.449.3212 > scottf@secr.com > www.grti.net > > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From doug@moximedia.com Thu Oct 2 20:55:08 2003 From: doug@moximedia.com (Doug Cates) Date: 02 Oct 2003 12:55:08 -0700 Subject: [Mapserver-users] Building GDAL with Xerces on Redhat 9 Message-ID: <1065124507.28157.21.camel@moxi-rh9> Hi, I'm trying to build a development version of MapServer 4.1 with WFS SERVER support so I can test using complex filters. I'd use a Windows binary if one was available, but since it isn't, I'm trying to put it on a RH9 box here, the only Linux box that I have available. I can't seem to get GDAL to build with Xerces-C. I noticed a thread earlier this year about this that seemed to indicate that GDAL 1.1.8 must be used with Xerces-C 1.6.0. Is that the only valid combination allowed, or has GDAL been updated to support newer versions of Xerces? An idea: The installation docs should have a version matrix, specifying the exact versions of all the supporting libraries that should be used when building a specific version of MapServer. Does anyone have any tips on installing this? Would anytone be willing to look at my installation logs to see if anything jumps out at them? Regards, Doug -- Doug Cates Moxi Media Inc. 757 - 1641 Lonsdale Avenue North Vancouver, BC, Canada V7M 2J5 Phone: 604-984-8109 Fax: 604-608-4764 E-mail: doug@moximedia.com Web: www.moximedia.com From morissette@dmsolutions.ca Thu Oct 2 21:07:20 2003 From: morissette@dmsolutions.ca (Daniel Morissette) Date: Thu, 02 Oct 2003 16:07:20 -0400 Subject: [Mapserver-users] Problem with Mascript ShapeObj.values array In-Reply-To: <000701c388c1$bf5525c0$0601a8c0@comai.loc> References: <000701c388c1$bf5525c0$0601a8c0@comai.loc> Message-ID: <3F7C8578.7000700@dmsolutions.ca> I am no PostGIS expert, but I would expect that the values[] array would return only the fields that are explicitly selected either via your DATA string or via things like CLASSITEM, LABELITEM, etc. In your case, your DATA statement selects only the geometry, and then CLASSITEM and LABELITEM add "name" and "type". "gid" may be pulled by default by the postgis driver I'm not sure. If you want "value" then you'll probably have to add it to the DATA statement. Daniel Stefano Bonnin wrote: > Hi, > > I'm trying to get information from Postgis with PHPMapscript > > This is my layer definition: > > LAYER > NAME "Percolato" > METADATA > "LYRNAME" "Percolato" > "DESCRIPTION" "P.O.I2" > "TABLE" "edtlyr_percolato_1" > "QUERY_FIELDS" "gid,name,value,type" > "RESULT_FIELDS" "Nome,ID,Tipo" > END > GROUP "P.O.I" > STATUS ON > DATA "the_geom from edtlyr_percolato_1" > TYPE point > CONNECTIONTYPE POSTGIS > CONNECTION "user=user dbname=dbname" > MAXSCALE 7000 > MINSCALE 0 > LABELITEM "name" > LABELMAXSCALE 3500 > CLASSITEM "type" > CLASS > CLASS > NAME "a" > EXPRESSION 'a' > SYMBOL "prelievoperco" > COLOR 255 255 255 > SIZE 15 > TEMPLATE "blank.html" > LABEL > BACKGROUNDCOLOR 0 0 0 > FONT "arial" > TYPE TRUETYPE > POSITION lc > MINSIZE 10 > MAXSIZE 25 > COLOR 255 255 255 > BACKGROUNDSHADOWCOLOR 128 128 128 > ANTIALIAS true > END > END > END > > And this is my PHPMapscript code (It can be wrong because I have extracted > some line with cut and past): > > ..... > ..... > $oLayer = $gpoMap->GetLayer($iLayer); > $numResults = $oLayer->getNumResults(); > > $oLayer->open(); > $resultFields = explode(",", $oLayer->getMetaData("RESULT_FIELDS")); > > for ($iRes=0; $iRes < $numResults; $iRes++) { > $oRes = $oLayer->getResult($iRes); > $oShape = $oLayer->getShape($oRes->tileindex,$oRes->shapeindex); > > fwrite($fp, "\n"); > for($iField=0; $iField < sizeof($queryFields); $iField++) { > > if ($queryFields[$iField] == 'gid') { > $gid = > $oShape->values[$queryFields[$iField]]; > } > else if ($queryFields[$iField] == 'name') { > $pname = > $oShape->values[$queryFields[$iField]]; > } > else if ($queryFields[$iField] == 'type') { > $pname = > $oShape->values[$queryFields[$iField]]; > } > else if ($queryFields[$iField] == "value") { > $vl = > $oShape->values[$queryFields[$iField]]; > } > > } > } > ...... > ...... > > > The tree first variables $gid, $pname and $vl has a correct value > > BUT > > the last one ($vl) has NO VALUE. > > The $oShape->values length is 3. > Why the array length is only 3? > > My postgres table has the following attributes: "the_geom", "value","type", > "name" and "gid". > > Thanks in advance. > > From mservin@tecnoaccion.com.ar Thu Oct 2 21:21:04 2003 From: mservin@tecnoaccion.com.ar (Mario Servin) Date: Thu, 2 Oct 2003 17:21:04 -0300 Subject: [Mapserver-users] How to convert a CSV data to shapefile Message-ID: <025101c38922$b476e510$9105a8c0@mariolaptop> This is a multi-part message in MIME format. ------=_NextPart_000_024E_01C38909.8F12C9B0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I have aset of points in lat, lon format that i want to represent a = plygon in a shapefile. Is there any free tool I can use for that? Regards, Mario ------=_NextPart_000_024E_01C38909.8F12C9B0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
    I have aset of = points in lat,=20 lon format that i want to represent a plygon in a shapefile. Is there = any free=20 tool I can use for that?
    = Regards,
       =20         Mario
------=_NextPart_000_024E_01C38909.8F12C9B0-- From mschepel@gis.nl Thu Oct 2 21:23:35 2003 From: mschepel@gis.nl (Menno Schepel) Date: Thu, 2 Oct 2003 22:23:35 +0200 Subject: [Mapserver-users] RE: Oracle 8.1.7 & MapServer HowTo XP/2000 In-Reply-To: <8240822375.20031002180952@tydac.ch> Message-ID: <000201c38923$16dd04f0$02001aac@xpmenno> Hi Flavio, Thanks for the response. I did not have so much trouble getting Oracle 9i installed (I think). The main features are running, so I think I can skip the first part of your mail. The part about MapServer. I guess this was before MapServer published a precompiled Win32 executable on their website (v4.0 with Oracle support), or does the situation that you describe still exists? I will look into the thing about the SQLNET_AUTHENTICATION. Although I am not sure if this still exists in Oracle 9i. The structure that you describe for the mapfile I implemented already, with the only difference that the geometry column that you describe (geom etc.) seems to have changed. Also I am not sure yet what to do with the srid number. It seems that most of the "peculiarities" that you describe about Oracle Spatial have changed with the new version. I will post results if I have found something. Thanks for now, Menno. -----Original Message----- From: Flavio Hendry [mailto:flavio@tydac.ch] Sent: 02 October 2003 18:10 To: mschepel@gis.nl Subject: Fwd: Oracle 8.1.7 & MapServer HowTo XP/2000 Hi Menno Maybe the below helps (see especially MapServer Part, Item 2) ===8<==============Original message text=============== Hi List First many thanks to Assefa, Daniel and ... Google ... Daniel Morisette told me to report the way to get the monster running with XP/2000 and MapServer. No guarantee whatsoever that your computer won't explode .... ;-) ... The Oracle part: A: You will not be able to install Oracle on a PC under Win 2000 or Win XP - just won't do anything - known bug, do as follows: ******* 1 - Copy your Oracle CD into hard disk in your machine. For example Copy from oracle8i CD into "C:\tmp\orainst" ... (on some sites I found not to call this dir "oracle") 2 - Search the two files named Symcjit.dll in the dir where you have copied Oracle8i. You can found them in (example): C:\tmp\orainst\stage\Components\oracle.swd.jre\1.1.7.30\1 \DataFiles\Expanded\jre\win32\bin\symcjit.dll or use search option in the c:\oracle directory to find 2 files symcjit.dll to 3 - Rename this file (Example): symcjit_back.dll (make sure to find two files and rename them) 4 - Execute the Oracle setup.exe from C:\Oracle\setup.exe and follow the instructions ... B: on Win XP, when rebooting you might get the constantly showing up ugly error that java.exe crashed. To stop that go into the win admin toool / services and stop the "Oracle HTTPServer" Service and set it to manual. ********* The MapServer Part: 1. Download and install MapServer Oracle Compilation from DM Solutions (I don't know it DM leaves the files there however, worst case contact me ...): mapserver/php_mapscript (php4.3.2) build with Oracle oci librairies (8.1.7) at http://www2.dmsolutions.ca/tmp/mapserver_ora8.1.7.zip The zip contains the exe file of mapserver, php_mapscript_40.dll and oci.dll. Note that php_mapscript_40.dll is build with links to other libraries like xerces, pdf, .... So you need to download those dll and install them. The best approch is to download and install first the zip at http://www2.dmsolutions.ca/mapserver/dl/mapserver-4.0-win32-php4.3.2.zip and then replace the exe and the php_mapscript_40.dll with the new ones. 2. there will be an additional thing to fix in oracle: ****** Obviously this is a well know feature (bug). After a successfull installation of Oracle 8.1.7 you have to change SQLNET.AUTHENTICATION_SERVICE=(NTS) to SQLNET.AUTHENTICATION_SERVICE=() in sqlnet.ora (search for this file in the dir where you installed Oracle). ******* 3. Map-File, looks i.e. like that: LAYER CONNECTION "chur/chur@demo" CONNECTIONTYPE oraclespatial DATA "geoloc from Bodenbedeckung using srid 262148" GROUP "AV" NAME "Bodenbedeckung" SIZEUNITS PIXELS STATUS ON TOLERANCE 0 TOLERANCEUNITS PIXELS TYPE POLYGON UNITS METERS CLASSITEM "ART" CLASS NAME "Gebaeude" EXPRESSION "Gebaeude" COLOR 255 255 220 OUTLINECOLOR 0 0 0 TEMPLATE ttt.htm END END Some things to be explained: - chur/chur@demo are userid/password@service - "geoloc" is the Geometry column Oracle uses (sometimes GEOM or whatever ...) - the srid number you'll find in the table called SDO_GEOM_METADAT_TABLE or in any Table under the register called "Spatial". Hope it helps if somebody has to go through the same nightmare ... Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- ++++++++++ Neue Neapoljs Seiten auf www.neapoljs.com +++++++++++ ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ Flavio Hendry- mailto:flavio@tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- From eric@gomoos.org Thu Oct 2 18:34:01 2003 From: eric@gomoos.org (Eric Bridger) Date: Thu, 02 Oct 2003 13:34:01 -0400 Subject: [Mapserver-users] MapServer 3.5: Error Message In-Reply-To: <0734A2B8CF21D711B98B00080224869C062D9FEA@exanpmb3.arinc.co m> Message-ID: <4.3.2.7.2.20031002132336.00ac0720@mail.gomoos.org> At 11:31 AM 10/02/2003 -0400, McNeil, Todd W. (TMCNEIL) wrote: >Hi All, >I also downloaded the Tutorial and have come across an error message that >does not make sense to me. I am going through the 1st example of section 1 >of the tutorial. I use this URL to retrieve a map image: >http://tmcneil1/Scripts/mapserv.exe?map=e:/projects/tutorial35/s1/s1ex1.map& >amp;mode=map >&mode=map> , and the resulting error message is: >mapserv(): Web application error. No template provided. You will most likely need to edit the html files you downloaded in the Tutorial. You may also need to edit the s1ex1.map file to change any paths to paths suiting your setup. From spencer@dmsolutions.ca Thu Oct 2 21:38:35 2003 From: spencer@dmsolutions.ca (Paul Spencer) Date: 02 Oct 2003 16:38:35 -0400 Subject: [Mapserver-users] Building GDAL with Xerces on Redhat 9 In-Reply-To: <1065124507.28157.21.camel@moxi-rh9> References: <1065124507.28157.21.camel@moxi-rh9> Message-ID: <1065127114.7413.17.camel@beaker.localdomain> Doug, Frank will likely have a comment, but the last time I did this (a few days ago on, on a RH9 box) I had to use 1.6.0. The gdal configure was ./configure --with-xerces after running configure/make/make install on xercesc ... which puts it in /usr/local/ The build on this version of xercesc is slightly different from the current build instructions on the apache web site because they changed the directory structure slightly, but I think it was only one directory different then everything else worked the same as the current build instructions (too bad they don't include the build instructions with the tarball!) Cheers, Paul On Thu, 2003-10-02 at 15:55, Doug Cates wrote: > Hi, > > I'm trying to build a development version of MapServer 4.1 with WFS > SERVER support so I can test using complex filters. I'd use a Windows > binary if one was available, but since it isn't, I'm trying to put it on > a RH9 box here, the only Linux box that I have available. > > I can't seem to get GDAL to build with Xerces-C. I noticed a thread > earlier this year about this that seemed to indicate that GDAL 1.1.8 > must be used with Xerces-C 1.6.0. Is that the only valid combination > allowed, or has GDAL been updated to support newer versions of Xerces? > > An idea: The installation docs should have a version matrix, specifying > the exact versions of all the supporting libraries that should be used > when building a specific version of MapServer. > > Does anyone have any tips on installing this? Would anytone be willing > to look at my installation logs to see if anything jumps out at them? > > Regards, > Doug From Armin Burger Thu Oct 2 23:34:19 2003 From: Armin Burger (Armin Burger) Date: Thu, 2 Oct 2003 23:34:19 +0100 Subject: [Mapserver-users] Building GDAL with Xerces on Redhat 9 Message-ID: <20031002213427.BCVL26816.viefep11-int.chello.at@libero.it> Doug, I compiled Gdal 1.1.9 with Xerces 1.7.0 using --with-xerces --with-xerces-lib="-L/usr/local/lib -lxerces-c1_7_0 -lpthread" and it worked fine. I don't know if the '--with-xerces-lib' is absolutely necessary. Armin > Hi, > I'm trying to build a development version of MapServer 4.1 with WFS > SERVER support so I can test using complex filters. I'd use a Windows > binary if one was available, but since it isn't, I'm trying to put it on > a RH9 box here, the only Linux box that I have available. > I can't seem to get GDAL to build with Xerces-C. I noticed a thread > earlier this year about this that seemed to indicate that GDAL 1.1.8 > must be used with Xerces-C 1.6.0. Is that the only valid combination > allowed, or has GDAL been updated to support newer versions of Xerces? > An idea: The installation docs should have a version matrix, specifying > the exact versions of all the supporting libraries that should be used > when building a specific version of MapServer. > Does anyone have any tips on installing this? Would anytone be willing > to look at my installation logs to see if anything jumps out at them? > Regards, > Doug > -- > Doug Cates > Moxi Media Inc. > 757 - 1641 Lonsdale Avenue > North Vancouver, BC, Canada V7M 2J5 > Phone: 604-984-8109 > Fax: 604-608-4764 > E-mail: doug@moximedia.com > Web: www.moximedia.com > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From jeff@planyukon.ca Thu Oct 2 22:42:38 2003 From: jeff@planyukon.ca (Jeff Hamm) Date: Thu, 02 Oct 2003 14:42:38 -0700 Subject: [Mapserver-users] raster layers in PDF output don't get cropped Message-ID: <3F7C9BCE.B4E12733@planyukon.ca> Rusty; Does your application provide explicit extents to Mapserver to (re)process the map as PDF output? I don't believe Mapserver is capable of reading the extents from a raster layer ( see http://mapserver.gis.umn.edu/doc/wms-server-howto.htm ) : Note: wms_extent MUST be provided for raster layers in the current version since MapServer probing rasters for their extents is on the TODO list! I wonder if Mapserver has to reprocess the PNG to create a PDF output, and in so doing loses the EXTENTS for your output. Jeff Hamm GIS & Planning Advisor Yukon Land Use Planning Council Whitehorse, Yukon From Jean-Francois.Doyon@CCRS.NRCan.gc.ca Thu Oct 2 22:47:56 2003 From: Jean-Francois.Doyon@CCRS.NRCan.gc.ca (Jean-Francois.Doyon@CCRS.NRCan.gc.ca) Date: Thu, 2 Oct 2003 17:47:56 -0400 Subject: [Mapserver-users] Building GDAL with Xerces on Redhat 9 Message-ID: <7CDD7B94357FD5119E800002A537C46E230A16@s5-ccr-r1.ccrs.nrcan.gc.ca> Yeah, I've run into this as well. This is a dependency of GDAL though, not mapserver. The MapServer UNIX compile HOW-TO does list minimum library version requirements for the libraries it cares about directly. I'm not going to start going down further than that into the dependcy tree however! J.F. -----Original Message----- From: Doug Cates [mailto:doug@moximedia.com] Sent: Thursday, October 02, 2003 3:55 PM To: mapserver-users@lists.gis.umn.edu Subject: [Mapserver-users] Building GDAL with Xerces on Redhat 9 Hi, I'm trying to build a development version of MapServer 4.1 with WFS SERVER support so I can test using complex filters. I'd use a Windows binary if one was available, but since it isn't, I'm trying to put it on a RH9 box here, the only Linux box that I have available. I can't seem to get GDAL to build with Xerces-C. I noticed a thread earlier this year about this that seemed to indicate that GDAL 1.1.8 must be used with Xerces-C 1.6.0. Is that the only valid combination allowed, or has GDAL been updated to support newer versions of Xerces? An idea: The installation docs should have a version matrix, specifying the exact versions of all the supporting libraries that should be used when building a specific version of MapServer. Does anyone have any tips on installing this? Would anytone be willing to look at my installation logs to see if anything jumps out at them? Regards, Doug -- Doug Cates Moxi Media Inc. 757 - 1641 Lonsdale Avenue North Vancouver, BC, Canada V7M 2J5 Phone: 604-984-8109 Fax: 604-608-4764 E-mail: doug@moximedia.com Web: www.moximedia.com _______________________________________________ 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 Thu Oct 2 23:21:35 2003 From: steve.lime@dnr.state.mn.us (Steve Lime) Date: Thu, 02 Oct 2003 17:21:35 -0500 Subject: [Mapserver-users] State & National Park Boundary Data Message-ID: I sincerely doubt you'll find a single source for state park boundaries. Minnesota's are available at deli.dnr.state.mn.us. Steve >>> Dan Barron 10/1/2003 7:41:35 PM >>> Hi, Can anyone point me to a source for state and national park boundary data in shp format? Thanks, Dan _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From maskellp@ntlworld.com Thu Oct 2 23:44:43 2003 From: maskellp@ntlworld.com (Phil Maskell) Date: Thu, 2 Oct 2003 23:44:43 +0100 Subject: [Mapserver-users] Using OGR with tab files Message-ID: <000701c38936$c5f71710$2002a8c0@mobile> Hi, I have set MapServer 4.0 up with the demo, I have used OGR to load a POLYGON type layer from a tab, but cannot get it to work with LINE or POINT. This is a sample of the layer in my map file: # This works LAYER NAME Counties_region TYPE POLYGON STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "data/Counties.TAB" STYLEITEM "AUTO" CLASS NAME "Counties" END PROJECTION "AUTO" END END # Layer # This doesn't work LAYER NAME Motorways TYPE LINE STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "data/Motorways.TAB" STYLEITEM "AUTO" CLASS NAME "Motorways" END PROJECTION "AUTO" END END # Layer I hope someone can explain what I'm doing wrong. Thanks in advance Phil Maskell --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.521 / Virus Database: 319 - Release Date: 23/09/2003 From doug@moximedia.com Fri Oct 3 02:12:24 2003 From: doug@moximedia.com (Doug Cates) Date: 02 Oct 2003 18:12:24 -0700 Subject: [Mapserver-users] Re: Building GDAL with Xerces on Redhat 9 In-Reply-To: <1065124507.28157.21.camel@moxi-rh9> References: <1065124507.28157.21.camel@moxi-rh9> Message-ID: <1065143543.15396.39.camel@moxi-rh9> Hi, Thanks to assistance from Armin Burger, I've successfully got the WFS SERVER going on RH9 using xerces 1.7.0 and gdal 1.1.9, configuring gdal with the following options: --with-xerces --with-xerces-lib="-L/usr/local/lib -lxerces-c1_7_0 -lpthread" Great user support around here. Thanks. Doug On Thu, 2003-10-02 at 12:55, Doug Cates wrote: > Hi, > > I'm trying to build a development version of MapServer 4.1 with WFS > SERVER support so I can test using complex filters. I'd use a Windows > binary if one was available, but since it isn't, I'm trying to put it on > a RH9 box here, the only Linux box that I have available. > > I can't seem to get GDAL to build with Xerces-C. I noticed a thread > earlier this year about this that seemed to indicate that GDAL 1.1.8 > must be used with Xerces-C 1.6.0. Is that the only valid combination > allowed, or has GDAL been updated to support newer versions of Xerces? > > An idea: The installation docs should have a version matrix, specifying > the exact versions of all the supporting libraries that should be used > when building a specific version of MapServer. > > Does anyone have any tips on installing this? Would anytone be willing > to look at my installation logs to see if anything jumps out at them? > > Regards, > Doug From maskellp@ntlworld.com Fri Oct 3 04:21:59 2003 From: maskellp@ntlworld.com (Phil Maskell) Date: Fri, 3 Oct 2003 04:21:59 +0100 Subject: [Mapserver-users] Using OGR with tab files In-Reply-To: Message-ID: <003a01c3895d$81c856e0$2002a8c0@mobile> Thanks for this, I tried it, still no joy. Being new to MapServer, do you think this has anything to do with my projection settings? The tabs are using "British National Grid". I use the following: PROJECTION "init=epsg:27700" END Phil -----Original Message----- From: Matthew Haines [mailto:mhaines94108@hotmail.com] Sent: 03 October 2003 03:30 To: maskellp@ntlworld.com Subject: Re: [Mapserver-users] Using OGR with tab files I have the line "FORCE TRUE" in my LAYER declaration for a POINT type layer. Matthew ----Original Message Follows---- From: "Phil Maskell" To: Subject: [Mapserver-users] Using OGR with tab files Date: Thu, 2 Oct 2003 23:44:43 +0100 Hi, I have set MapServer 4.0 up with the demo, I have used OGR to load a POLYGON type layer from a tab, but cannot get it to work with LINE or POINT. This is a sample of the layer in my map file: # This works LAYER NAME Counties_region TYPE POLYGON STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "data/Counties.TAB" STYLEITEM "AUTO" CLASS NAME "Counties" END PROJECTION "AUTO" END END # Layer # This doesn't work LAYER NAME Motorways TYPE LINE STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "data/Motorways.TAB" STYLEITEM "AUTO" CLASS NAME "Motorways" END PROJECTION "AUTO" END END # Layer I hope someone can explain what I'm doing wrong. Thanks in advance Phil Maskell --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.521 / Virus Database: 319 - Release Date: 23/09/2003 _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users _________________________________________________________________ Frustrated with dial-up? Get high-speed for as low as $29.95/month (depending on the local service providers in your area). https://broadband.msn.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.521 / Virus Database: 319 - Release Date: 23/09/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.521 / Virus Database: 319 - Release Date: 23/09/2003 From maskellp@ntlworld.com Fri Oct 3 04:30:16 2003 From: maskellp@ntlworld.com (Phil Maskell) Date: Fri, 3 Oct 2003 04:30:16 +0100 Subject: [Mapserver-users] Does MapServer support "OpenGIS Simple Features For SQL" Message-ID: <003b01c3895e$aa148af0$2002a8c0@mobile> Hi, Being new to MapServer I have read a bit about OGR Simple Features Library supporting multiple Vector format, does MapServer support getting Simple Features from an SQL database like MySQL? Thanks in advance. Phil Maskell --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.521 / Virus Database: 319 - Release Date: 23/09/2003 From eduardo_islas@hotmail.com Fri Oct 3 04:46:53 2003 From: eduardo_islas@hotmail.com (Eduardo Islas) Date: Thu, 02 Oct 2003 22:46:53 -0500 Subject: [Mapserver-users] mode=map & FILTER Message-ID:
I have programmed my own application that works importing images to flash and VB applications using the CGI executable in mode=map. I want to use a label layer but filtering and showing only some labels. If I use FILTER & FILTERITEM in the mapfile I get no labels at all (never). I read that in order to use FILTER I need to specify other mode in the CGI Script but I want to keep the mode=map to get the image directly. This is my script:
 
LAYER
  MAXSCALE 150
  NAME "texto"
  DATA texto
  STATUS DEFAULT
  TYPE POINT
  LABELITEM "Label"
  LABELANGLEITEM "Angle"
  FILTERITEM "Hierarchy"
  FILTER "Hierarchy >0"
  CLASS
    SIZE 6
    COLOR 0 0 0
  LABEL
    TYPE TRUETYPE
    FONT "TAHOMA"
    ANTIALIAS TRUE
    OUTLINECOLOR 255 255 255
    COLOR 0 0 0
    POSITION UR
    MINSIZE 6
    FORCE true
  END
  END # end of class object
END # end of layer object


MSN 8 with e-mail virus protection service: 2 months FREE* From pramsey@refractions.net Fri Oct 3 05:57:56 2003 From: pramsey@refractions.net (Paul Ramsey) Date: Thu, 02 Oct 2003 21:57:56 -0700 Subject: [Mapserver-users] Does MapServer support "OpenGIS Simple Features For SQL" In-Reply-To: <003b01c3895e$aa148af0$2002a8c0@mobile> References: <003b01c3895e$aa148af0$2002a8c0@mobile> Message-ID: <200310022157.56862.pramsey@refractions.net> Sure. You can pull SFSQL features from PostGIS (postgis.refractions.net) and OracleSpatial. You can also pull pseudo geometric data from MySQL 3.6 using BLOBs to store your data. PostGIS and Oracle both have spatial indexes, so they can scale to very large data sets. The 3.6 MySQL hack does not. P. On Thursday 02 October 2003 20:30, Phil Maskell wrote: > > Being new to MapServer I have read a bit about OGR Simple Features > Library supporting multiple Vector format, does MapServer support > getting Simple Features from an SQL database like MySQL? From marc.jacquin@geosys-inc.com Fri Oct 3 09:28:54 2003 From: marc.jacquin@geosys-inc.com (Marc Jacquin) Date: Fri, 3 Oct 2003 10:28:54 +0200 Subject: [Mapserver-users] Just for fun In-Reply-To: <200310022157.56862.pramsey@refractions.net> Message-ID: http://www.googlefight.com/cgi-bin/compare.pl?q1=Mapserver&q2=ArcIMS&B1=Make +a+fight%21&compare=1&langue=us Marc From plists@prometheus.org.yu Fri Oct 3 10:17:51 2003 From: plists@prometheus.org.yu (Attila Csipa) Date: Fri, 3 Oct 2003 11:17:51 +0200 Subject: [Mapserver-users] Does MapServer support "OpenGIS Simple Features For SQL" In-Reply-To: <003b01c3895e$aa148af0$2002a8c0@mobile> References: <003b01c3895e$aa148af0$2002a8c0@mobile> Message-ID: <200310031117.51875.plists@prometheus.org.yu> On Friday 03 October 2003 05:30, Phil Maskell wrote: > Being new to MapServer I have read a bit about OGR Simple Features > Library supporting multiple Vector format, does MapServer support > getting Simple Features from an SQL database like MySQL? Yes, you might want to visit the Wiki for details ( http:// mapserver.gis.umn.edu/cgi-bin/wiki.pl?MySQL ) From morissette@dmsolutions.ca Fri Oct 3 15:11:29 2003 From: morissette@dmsolutions.ca (Daniel Morissette) Date: Fri, 03 Oct 2003 10:11:29 -0400 Subject: [Mapserver-users] Re: [Fwd: Fwd: PHPMapscript] In-Reply-To: <3F7D73D4.9000008@dmsolutions.ca> References: <3F7D73D4.9000008@dmsolutions.ca> Message-ID: <3F7D8391.90708@dmsolutions.ca> (I've CC'd this to the mapserver-users list since this question comes up often there.) Hi Steve, This is a known issue which has been in PHP for a while. If you configure PHP as a CGI as the documentation says then it shouldn't affect you. (This happens only if your PHP is configured as an Apache module which is not supported for MapScript version 4.0 anyway) We also have our own bug on this: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=252 As you can see when you read the bug, the problem is not directly related to MapScript even though it affects it. Unfortunately the PHP guys probably won't recognize the issue until we show them the faulty code. I've been through that before with other PHP bugs and the only way to get the bug fixed has been to submit a patch, very frustrating! Of course sniper@php.net is right in his comment saying that the mapscript module was written for PHP3 and then ported to PHP4, but even if it was rewritten today using only PHP4 stuff the issue would remain since it is in PHP and not in MapScript. So where does that take you? We blame PHP and they blame us and you're stuck in the middle. Well for the time being you should configure your PHP as a CGI as suggested in http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScript and the issue will go away. Also, I've been working on removing that PHP CGI limitation for version 4.1 and one of the issues I need to resolve is this regex issue. I have a few ideas on how we can resolve this... just need time to work on this now. Best Regards, Daniel -- ------------------------------------------------------------ Daniel Morissette morissette@dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ > ------------------------------------------------------------------------ > > Subject: > PHPMapscript > From: > "Stephen Irven" > Date: > Thu, 02 Oct 2003 17:46:16 +0100 > To: > > > > Hi, > > I understand your organisation develops and maintains the PHPMapscript > utility, and just thought you should be aware of a bug/configuration > issue in the section which ships with mapserver 4.0. > > The current versions (certainly 4.3..3 or higher) of PHP won't allow > themselves to be configured with system regex when used with apache, and > PHPMapscript seems to require system regex to compile. This seems to > mean that it can't be used with any recent version of PHP/Apache > > See: http://bugs.php.net/bug.php?id=25704 > > I'll let you know if I find any good solutions to this > > Cheers, > steve > From burntmage@yahoo.com Fri Oct 3 19:19:30 2003 From: burntmage@yahoo.com (Michael Roach) Date: Fri, 3 Oct 2003 11:19:30 -0700 (PDT) Subject: [Mapserver-users] Using OGR with tab files In-Reply-To: <003a01c3895d$81c856e0$2002a8c0@mobile> Message-ID: <20031003181930.69399.qmail@web14812.mail.yahoo.com> --0-1062273278-1065205170=:65292 Content-Type: text/plain; charset=us-ascii This format works for me under MS4.0 when using TAB files. As far as projections go, giving no projection is better than the wrong one. But, I don't believe projection is your issue here. LAYER NAME interstate TYPE line PROJECTION "init=epsg:4269" #LONG/LAT NAD83 END #PROJECTION CONNECTIONTYPE OGR CONNECTION "/opt/mapdata/interstate.TAB" STATUS DEFAULT CLASS COLOR 0 0 0 END #CLASSEND #LAYER Phil Maskell wrote:Thanks for this, I tried it, still no joy. Being new to MapServer, do you think this has anything to do with my projection settings? The tabs are using "British National Grid". I use the following: PROJECTION "init=epsg:27700" END Phil -----Original Message----- From: Matthew Haines [mailto:mhaines94108@hotmail.com] Sent: 03 October 2003 03:30 To: maskellp@ntlworld.com Subject: Re: [Mapserver-users] Using OGR with tab files I have the line "FORCE TRUE" in my LAYER declaration for a POINT type layer. Matthew ----Original Message Follows---- From: "Phil Maskell" To: Subject: [Mapserver-users] Using OGR with tab files Date: Thu, 2 Oct 2003 23:44:43 +0100 Hi, I have set MapServer 4.0 up with the demo, I have used OGR to load a POLYGON type layer from a tab, but cannot get it to work with LINE or POINT. This is a sample of the layer in my map file: # This works LAYER NAME Counties_region TYPE POLYGON STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "data/Counties.TAB" STYLEITEM "AUTO" CLASS NAME "Counties" END PROJECTION "AUTO" END END # Layer # This doesn't work LAYER NAME Motorways TYPE LINE STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "data/Motorways.TAB" STYLEITEM "AUTO" CLASS NAME "Motorways" END PROJECTION "AUTO" END END # Layer I hope someone can explain what I'm doing wrong. Thanks in advance Phil Maskell --------------------------------- Do you Yahoo!? The New Yahoo! Shopping - with improved product search --0-1062273278-1065205170=:65292 Content-Type: text/html; charset=us-ascii
 This format works for me under MS4.0 when using TAB files. As far as projections go, giving no projection is better than the wrong one. But, I don't believe projection is your issue here.
LAYER
	NAME interstate 
	TYPE line 
        PROJECTION
	  "init=epsg:4269" #LONG/LAT NAD83
	END #PROJECTION
CONNECTIONTYPE OGR CONNECTION "/opt/mapdata/interstate.TAB" STATUS DEFAULT CLASS COLOR 0 0 0 END #CLASS END #LAYER


Phil Maskell <maskellp@ntlworld.com> wrote:
Thanks for this, I tried it, still no joy.

Being new to MapServer, do you think this has anything to do with my
projection settings? The tabs are using "British National Grid".

I use the following:

PROJECTION
"init=epsg:27700"
END

Phil

-----Original Message-----
From: Matthew Haines [mailto:mhaines94108@hotmail.com]
Sent: 03 October 2003 03:30
To: maskellp@ntlworld.com
Subject: Re: [Mapserver-users] Using OGR with tab files


I have the line "FORCE TRUE" in my LAYER declaration for a POINT type
layer.

Matthew

----Original Message Follows----
From: "Phil Maskell"
To:
Subject: [Mapserver-users] Using OGR with tab files
Date: Thu, 2 Oct 2003 23:44:43 +0100

Hi,

I have set MapServer 4.0 up with the demo, I have used OGR to load a
POLYGON type layer from a tab, but cannot get it to work with LINE or
POINT.

This is a sample of the layer in my map file:

# This works
LAYER
NAME Counties_region
TYPE POLYGON
STATUS DEFAULT
CONNECTIONTYPE OGR
CONNECTION "data/Counties.TAB"
STYLEITEM "AUTO"
CLASS
NAME "Counties"
END
PROJECTION
"AUTO"
END
END # Layer

# This doesn't work
LAYER
NAME Motorways
TYPE LINE
STATUS DEFAULT
CONNECTIONTYPE OGR
CONNECTION "data/Motorways.TAB"
STYLEITEM "AUTO"
CLASS
NAME "Motorways"
END
PROJECTION
"AUTO"
END
END # Layer

I hope someone can explain what I'm doing wrong.

Thanks in advance

Phil Maskell


Do you Yahoo!?
The New Yahoo! Shopping - with improved product search --0-1062273278-1065205170=:65292-- From kgeurts@gis.umn.edu Fri Oct 3 20:21:39 2003 From: kgeurts@gis.umn.edu (Kari Geurts) Date: Fri, 03 Oct 2003 14:21:39 CDT Subject: [Mapserver-users] Fwd: Using OGR with tab files Message-ID: <200310031921.h93JLdwG009199@dingo.software.umn.edu> Phil Maskell wrote: > Hi, > > I have set MapServer 4.0 up with the demo, I have used OGR to load a > POLYGON type layer from a tab, but cannot get it to work with LINE or > POINT. > > This is a sample of the layer in my map file: > > # This works > LAYER > NAME Counties_region > TYPE POLYGON > STATUS DEFAULT > CONNECTIONTYPE OGR > CONNECTION "data/Counties.TAB" > STYLEITEM "AUTO" > CLASS > NAME "Counties" > END > PROJECTION > "AUTO" > END > END # Layer > > # This doesn't work > LAYER > NAME Motorways > TYPE LINE > STATUS DEFAULT > CONNECTIONTYPE OGR > CONNECTION "data/Motorways.TAB" > STYLEITEM "AUTO" > CLASS > NAME "Motorways" > END > PROJECTION > "AUTO" > END > END # Layer > > Thanks in advance > > Phil Maskell > Phil Maskell > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.521 / Virus Database: 319 - Release Date: 23/09/2003 > > > Kari A. Geurts 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 sgudda1@uic.edu Fri Oct 3 20:27:59 2003 From: sgudda1@uic.edu (Swapna Guddanti) Date: Fri, 3 Oct 2003 14:27:59 -0500 Subject: [Mapserver-users] PHP and shp files Message-ID: <3FA3760F@webmail.uic.edu> hi, I'm developing a PHP client where I need to use some maps which are available as SHP files. I was wondering if there is any way in which I can include these clickable maps in my PHP client so that , on clicking the image I can get the features of the position clicked on the map.I've tried using tools like ArcExplorer which produce clickable images but I can only save the images formed as bitmap images which are not clickable and do not have any embedded information. I was wondering if map server would meet my needs. Any help would be greatly appreciated. Thanks. regards, swapna Swapna Guddanti Research Assistant Laboratory for Advanced Computing, UIC 312-996-0305(lab) 312-622-2619(cell) From nicolas.fortin@ec.gc.ca Fri Oct 3 21:01:50 2003 From: nicolas.fortin@ec.gc.ca (nicolas.fortin@ec.gc.ca) Date: Fri, 3 Oct 2003 16:01:50 -0400 Subject: [Mapserver-users] New User : Mapserver connection to Oracle 9i Message-ID: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C389E9.2F2205D0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, =20 I'm new to Mapserver. Could someone give me an example of simple but complete Map File to connect to Oracle with Mapserver CGI? =20 I tried this but Mapserver asked me for a Template file... =20 # Mapserver test 1 for Oracle # Nicolas Fortin, Env Can nicolas.foritn@ec.gc.ca =20 =20 NAME MS_ORA_TEST_1 EXTENT 330630 5097000 342000 5103000 SIZE 400 300 =20 LAYER # Test table NAME "PolygonTest" CONNECTIONTYPE oraclespatial CONNECTION "usr_lidar/******@bayfield = " DATA "GEOLOC FROM USR_LIDAR.POLY1" STATUS DEFAULT TYPE POLYGON =20 PROJECTION "init=3Depsg:2144" END =20 CLASS # PolyClass NAME "Polygon" COLOR 240 240 240 OUTLINECOLOR 0 0 0 END # end of PolyClasse END # end of layer object END # end of map file =20 Nicolas Fortin=20 Math=E9maticien, Programmeur, Analyste de donn=E9es=20 SMC-Qu=E9bec Hydrologie, Environnement Canada=20 1141, Rte de l'=C9glise, Sainte-Foy(QC) G1V 4H5=20 (418)648-2516=20 nicolas.fortin@ec.gc.ca >=20 =20 ------_=_NextPart_001_01C389E9.2F2205D0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message
Hi,
 
I'm = new to=20 Mapserver.  Could someone give me an example of simple but = complete Map=20 File to connect to Oracle with Mapserver CGI?
 
I = tried this but=20 Mapserver asked me for a Template file...
 
# = Mapserver test 1=20 for Oracle
# Nicolas Fortin, Env Can nicolas.foritn@ec.gc.ca
 
NAME=20 MS_ORA_TEST_1
EXTENT 330630 5097000 342000 5103000
SIZE 400=20 300
 
LAYER = # Test=20 table
  NAME "PolygonTest"
  CONNECTIONTYPE=20 oraclespatial
  CONNECTION "usr_lidar/******@bayfield"=
 =20 DATA "GEOLOC FROM USR_LIDAR.POLY1"
  STATUS DEFAULT
  = TYPE=20 POLYGON
 
  PROJECTION
   =20 "init=3Depsg:2144"
  END
 
  CLASS #=20 PolyClass
    NAME "Polygon"
    = COLOR 240=20 240 240
    OUTLINECOLOR 0 0 0
  END # end of = PolyClasse
END # end of layer object
END # end of map=20 file
 

Nicolas=20 Fortin
Math=E9maticien,=20 Programmeur, Analyste de donn=E9es
SMC-Qu=E9bec Hydrologie, Environnement Canada =
1141, Rte de l'=C9glise, Sainte-Foy(QC) G1V = 4H5
=20
(418)648-2516 =
nicolas.fortin@ec.gc.ca <mailto:nicolas.fortin@ec.gc.ca>=20

 
------_=_NextPart_001_01C389E9.2F2205D0-- From eric@gomoos.org Fri Oct 3 17:30:49 2003 From: eric@gomoos.org (Eric Bridger) Date: 03 Oct 2003 16:30:49 +0000 Subject: [Mapserver-users] How to convert a CSV data to shapefile In-Reply-To: <025101c38922$b476e510$9105a8c0@mariolaptop> References: <025101c38922$b476e510$9105a8c0@mariolaptop> Message-ID: <1065198663.1792.21.camel@ubet.gomoos.org> I have some perl scripts, which use mapscript.pm, that do this. I could send you some (I create point, line and polygon shape files). You will need Perl, Mapscript and XBase installed. On Thu, 2003-10-02 at 20:21, Mario Servin wrote: > Hi, > I have aset of points in lat, lon format that i want to represent a plygon in a shapefile. Is there any free tool I can use for that? > Regards, > Mario From TMitchell@lignum.com Fri Oct 3 22:43:47 2003 From: TMitchell@lignum.com (Tyler Mitchell) Date: Fri, 3 Oct 2003 14:43:47 -0700 Subject: [Mapserver-users] How to convert a CSV data to shapefile In-Reply-To: <1065198663.1792.21.camel@ubet.gomoos.org> Message-ID: I'm working on something that will help to do just that using Python and OGR (http://gdal.maptools.org/ogr/) or maybe just Python and Shapelib directly. I think it would be great if OGR supported reading/writing CSV format, then you could use it to go between all the supported formats: http://www.remotesensing.org/gdal/ogr/ogr_formats.html Tyler > On Thu, 2003-10-02 at 20:21, Mario Servin wrote: > > Hi, > > I have aset of points in lat, lon format that i want to > represent a plygon in a shapefile. Is there any free tool I can use for that? > > Regards, > > Mario > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From karas1974@wp.pl Sat Oct 4 07:22:21 2003 From: karas1974@wp.pl (Karas1974) Date: Sat, 4 Oct 2003 08:22:21 +0200 Subject: [Mapserver-users] Mapserver @ PGHoster. Message-ID: <001c01c38a3f$efef0e60$0207030a@jarek> This is a multi-part message in MIME format. ------=_NextPart_000_0017_01C38A50.A1D34460 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Hello, I have just set up an account at pghoster ISP (PostGIS, mapserver, = mapscript etc..). The problem is, that if I try to execute any file with = "gis" extension I get Internal Server Error. When I try phpinfo() I = cannot see mapscript module. I know that there are people who have mapserver applications running at = pghoster, any maybe you can tell me what I am doing wrong, and how to = start any simple application. Any examples? Maybe URL's to working = mapserver applications @ pghoster? Thank you, Jaroslaw Kowalczyk www.ekoprojekt.pl=20 ------=_NextPart_000_0017_01C38A50.A1D34460 Content-Type: text/html; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable
Hello,
 
I have just set up an account at = pghoster ISP=20 (PostGIS, mapserver, mapscript etc..). The problem is, that if I try to = execute=20 any file with "gis" extension I get Internal Server Error. When I try = phpinfo()=20 I cannot see mapscript module.
 
I know that there are people who have = mapserver=20 applications running at pghoster, any maybe you can tell me what I am = doing=20 wrong, and how to start any simple application. Any examples? Maybe = URL's to=20 working mapserver applications @ pghoster?
 
Thank you,
Jaroslaw Kowalczyk
www.ekoprojekt.pl=20
------=_NextPart_000_0017_01C38A50.A1D34460-- From mamwake@yahoo.com Sat Oct 4 09:57:35 2003 From: mamwake@yahoo.com (ronny) Date: Sat, 4 Oct 2003 01:57:35 -0700 (PDT) Subject: [Mapserver-users] help needed Message-ID: <20031004085735.71738.qmail@web40301.mail.yahoo.com> am trying to draw a map but am getting: msDrawMap(): Image handling error. Failed to draw layer named 'Nakuru_region'. i sincerely don't know what that means since am very new to maps drawing and mapserver! the layer is as follows: LAYER NAME Nakuru_region TYPE POINT STATUS DEFAULT DATA nakuru_region CLASSITEM 'cty_name' CLASS EXPRESSION 'Nakuru' OUTLINECOLOR 128 128 128 COLOR 225 225 185 END CLASS # every other towns in the region EXPRESSION /./ OUTLINECOLOR 128 128 128 COLOR 255 255 255 END METADATA WMS_TITLE "Nakuru Towns" WMS_ABSTRACT "Nakuru Region shapfile." WMS_SRS "EPSG:26915" END END am on redhat linux 8.0 mapserver 4.0 ===== ronny __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From bartvde@xs4all.nl Sat Oct 4 11:40:45 2003 From: bartvde@xs4all.nl (Bart van den Eijnden) Date: Sat, 04 Oct 2003 12:40:45 +0200 Subject: [Mapserver-users] New User : Mapserver connection to Oracle 9i In-Reply-To: References: Message-ID: Hi Nicolas, you could take a look at the mapserver wiki. http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?OracleSpatial Best regards, Bart On Fri, 3 Oct 2003 16:01:50 -0400, wrote: > Hi, > I'm new to Mapserver. Could someone give me an example of simple but > complete Map File to connect to Oracle with Mapserver CGI? > I tried this but Mapserver asked me for a Template file... > # Mapserver test 1 for Oracle > # Nicolas Fortin, Env Can nicolas.foritn@ec.gc.ca > > NAME MS_ORA_TEST_1 > EXTENT 330630 5097000 342000 5103000 > SIZE 400 300 > LAYER # Test table > NAME "PolygonTest" > CONNECTIONTYPE oraclespatial > CONNECTION "usr_lidar/******@bayfield > " > DATA "GEOLOC FROM USR_LIDAR.POLY1" > STATUS DEFAULT > TYPE POLYGON > PROJECTION > "init=epsg:2144" > END > CLASS # PolyClass > NAME "Polygon" > COLOR 240 240 240 > OUTLINECOLOR 0 0 0 > END # end of PolyClasse > END # end of layer object > END # end of map file > > > > Nicolas Fortin Mathématicien, Programmeur, Analyste de données SMC-Québec > Hydrologie, Environnement Canada 1141, Rte de l'Église, Sainte-Foy(QC) > G1V 4H5 (418)648-2516 nicolas.fortin@ec.gc.ca > > > > -- From eduardo@consultoria.eti.br Sat Oct 4 13:22:14 2003 From: eduardo@consultoria.eti.br (Eduardo Patto Kanegae) Date: Sat, 4 Oct 2003 09:22:14 -0300 Subject: [Mapserver-users] Can't generate .QIX files on-the-fly Message-ID: <000c01c38a72$284bd8b0$6600a8c0@vcp.advcp.br> This is a multi-part message in MIME format. ------=_NextPart_000_0009_01C38A58.FFCD0FD0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I'm trying to use 'exec' or 'system' or 'shell_exe' to run "shptree.exe" = under a Win2000+IIS+PHP4.3.3+MapServer 4.0 and generate .qix files on-the-fly but it doesn't work.... and even under a Apache on Windows it still doesn't work. Note: my PHP is not configured with the option "disabled functions" What could be wrong? Eduardo Patto Kanegae eduardo@consultoria.eti.br http://www.consultoria.eti.br - Brasil ------=_NextPart_000_0009_01C38A58.FFCD0FD0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I'm trying to use 'exec' or 'system' or = 'shell_exe'=20 to run "shptree.exe" under a Win2000+IIS+PHP4.3.3+MapServer = 4.0
    and generate .qix = files=20 on-the-fly but it doesn't work....
 
        = and even=20 under a Apache on Windows it still doesn't work.
 
   Note: my PHP is not = configured=20 with the option "disabled functions"
 
What could be wrong?
 
Eduardo Patto Kanegae
eduardo@consultoria.eti.br=
http://www.consultoria.eti.br = -=20 Brasil
------=_NextPart_000_0009_01C38A58.FFCD0FD0-- From twan@twansoft.com Sat Oct 4 13:28:08 2003 From: twan@twansoft.com (Twan Kogels) Date: Sat, 04 Oct 2003 14:28:08 +0200 Subject: [Mapserver-users] $map->numlayers always return zero? Message-ID: <6.0.0.22.2.20031004142028.03136988@pop.xs4all.nl> Hello, I think i've found a bug. When building a map dynamic (ms_newlayerobject) with mapscript $map->numlayers always returns zero . I've found a message on the mailinglist: which describes the problem. I tested this with the stable 4.0 version and the cvs version (from yesterday). Is there a solution to this problem? Best regards, Twan Kogels From carl.anderson@vadose.org Sat Oct 4 15:49:54 2003 From: carl.anderson@vadose.org (Carl Anderson) Date: Sat, 4 Oct 2003 10:49:54 -0400 Subject: [Mapserver-users] Can't generate .QIX files on-the-fly In-Reply-To: <000c01c38a72$284bd8b0$6600a8c0@vcp.advcp.br>; from eduardo@consultoria.eti.br on Sat, Oct 04, 2003 at 08:22:14 -0400 References: <000c01c38a72$284bd8b0$6600a8c0@vcp.advcp.br> Message-ID: <20031004144954.GA9105@vadose.dvg> This should work, can you give more info on the exact php line used. It should have the full path to the binary (don't rely on the %PATH% to find it for you). also turn on php debugging, what does that report. BTW Shapefiles are static (at least they can only be appended to without rewriting the entire file). It would be better to run shptree at the same time that the shapefiles are written to. If you are using very dynamic content maybe PostGIS, or Oracle Spatial, or MySQL 4.0, or ESRI SDE would be a better solution On 10/04/2003 08:22:14 AM, Eduardo Patto Kanegae wrote: > I'm trying to use 'exec' or 'system' or 'shell_exe' to run > "shptree.exe" under a Win2000+IIS+PHP4.3.3+MapServer 4.0 > and generate .qix files on-the-fly but it doesn't work.... > > and even under a Apache on Windows it still doesn't work. > > Note: my PHP is not configured with the option "disabled > functions" > > What could be wrong? > > Eduardo Patto Kanegae > eduardo@consultoria.eti.br > http://www.consultoria.eti.br - Brasil From eduardo@consultoria.eti.br Sat Oct 4 16:55:49 2003 From: eduardo@consultoria.eti.br (Eduardo Patto Kanegae) Date: Sat, 4 Oct 2003 12:55:49 -0300 Subject: [Mapserver-users] Can someone test a MapServer site? Message-ID: <001701c38a8f$fc2eae60$6600a8c0@vcp.advcp.br> This is a multi-part message in MIME format. ------=_NextPart_000_0014_01C38A76.D614B080 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I have a CGI MapServer application at = www.consultoria.eti.br/clickbrasil/ ( click at "INICIAR ClickBrasil" to = launch . First and default radio button is HTML version, and the second radiobutton is a JAVA ROSA version) It has two options for TEMPLATE: HTML version ( the default one) and = Java Version ( with ROSA applet). but the strange thing is that the ROSA version is not loading the image, = just show a blank space, when I use the Microsoft JVM, but if I set my Internet Explorer to use SUN JRE it works. and when I'm using this locally at my machine it works with MS JVM but = doesn't with SUN JRE. Does my internet web server( Aache1.3.27) have something to do with = this? My plataform at internet: Apache 1.3.27 on Linux My local plataform: Apache 2.0.47 on WinXP professional thanks Eduardo Patto Kanegae eduardo@consultoria.eti.br http://www.consultoria.eti.br - Brasil ------=_NextPart_000_0014_01C38A76.D614B080 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I have a CGI MapServer application at = www.consultoria.eti.b= r/clickbrasil/=20 ( click at "INICIAR ClickBrasil" to launch . First and default radio = button is=20 HTML version,
and the second radiobutton is a JAVA = ROSA=20 version)
It has two options for TEMPLATE: = HTML version=20 ( the default one) and Java Version ( with ROSA applet).
 
but the strange thing is that the ROSA = version is=20 not loading the image, just show a blank space, when I use the Microsoft = JVM,
    but if I set my = Internet=20 Explorer to use SUN JRE it works.
 
and when I'm using this locally at my = machine it=20 works with MS JVM but doesn't with SUN JRE.
 
Does my internet web server( = Aache1.3.27)=20 have something to do with this?
 
My plataform at internet: Apache 1.3.27 = on=20 Linux
 
My local plataform: Apache 2.0.47 on = WinXP=20 professional
 
thanks
 
Eduardo Patto Kanegae
eduardo@consultoria.eti.br=
http://www.consultoria.eti.br = -=20 Brasil
------=_NextPart_000_0014_01C38A76.D614B080-- From Rich@GreenwoodMap.com Sat Oct 4 17:18:39 2003 From: Rich@GreenwoodMap.com (Richard Greenwood) Date: Sat, 04 Oct 2003 10:18:39 -0600 Subject: [Mapserver-users] reference map in 4.0 Message-ID: <5.2.0.9.0.20031004095237.01f74498@mail.GreenwoodMap.com> --=======31F06D72======= Content-Type: text/plain; x-avg-checked=avg-ok-12EF3EAC; charset=us-ascii; format=flowed Content-Transfer-Encoding: 8bit I am using the same reference map definition in 3.6 and 4.0 (see below) In 3.6 the box is not filled, it is just an outline. In 4.0 the box is filled. I want just an outline like I had in 3.6, so I set the color to -1 -1 -1. This does the trick for the box, but then I get no marker when I'm zoomed in below the MINBOXSIZE threshold. Am I missing something, is this a catch 22? Rich REFERENCE IMAGE "/inetpub/wwwroot/mapserver/graphics/jh_ref_map.gif" EXTENT 2365000 1320000 2555000 1600000 SIZE 153 226 STATUS OFF # gets turned on by URL OUTLINECOLOR 255 0 0 COLOR 255 0 0 MARKER star MARKERSIZE 20 MAXBOXSIZE 150 MINBOXSIZE 25 END Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich GreenwoodMap com (307) 733-0203 http://www.GreenwoodMap.com --=======31F06D72=======-- From mail@whitegis.com Sat Oct 4 17:50:38 2003 From: mail@whitegis.com (whiteGIS) Date: Sat, 4 Oct 2003 17:50:38 +0100 Subject: [Mapserver-users] dll's and remote server Message-ID: <000201c38a97$a6d94ee0$0200000a@compass> Dear All Please excuse me if this question has already been answered on this forum. I am overjoyed that I have just managed to install MapServer 4.0 (Windows XP, IIS 5) on my local machine. What I would like to do is install Mapserver on a remote server where I don't have administrative access to the Windows/System32 directory and therefore I can not install all the necessary dll's. Is this a correct statement? Please can someone suggest a way of getting around this? Thanks very much in advance Will From bartvde@xs4all.nl Sat Oct 4 18:19:09 2003 From: bartvde@xs4all.nl (Bart van den Eijnden) Date: Sat, 04 Oct 2003 19:19:09 +0200 Subject: [Mapserver-users] dll's and remote server In-Reply-To: <000201c38a97$a6d94ee0$0200000a@compass> References: <000201c38a97$a6d94ee0$0200000a@compass> Message-ID: Hi Will, do you have access on the remote server to the cgi-bin directory? It is also possible to install the dll's at the exact same location as the mapserv.exe CGI, so you do not need to install them in the system32 directory. Best regards, Bart On Sat, 4 Oct 2003 17:50:38 +0100, whiteGIS wrote: > Dear All > > Please excuse me if this question has already been answered on this > forum. > > I am overjoyed that I have just managed to install MapServer 4.0 > (Windows XP, IIS 5) on my local machine. What I would like to do is > install Mapserver on a remote server where I don't have administrative > access to the Windows/System32 directory and therefore I can not install > all the necessary dll's. Is this a correct statement? Please can someone > suggest a way of getting around this? > > Thanks very much in advance > > Will > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > -- From eduardo@consultoria.eti.br Sat Oct 4 18:53:01 2003 From: eduardo@consultoria.eti.br (Eduardo Patto Kanegae) Date: Sat, 4 Oct 2003 14:53:01 -0300 Subject: [Mapserver-users] Can't generate .QIX files on-the-fly References: <000c01c38a72$284bd8b0$6600a8c0@vcp.advcp.br> <20031004144954.GA9105@vadose.dvg> Message-ID: <000c01c38aa0$613130c0$6600a8c0@vcp.advcp.br> # answers after # ----- Original Message ----- From: "Carl Anderson" To: "Eduardo Patto Kanegae" Cc: Sent: Saturday, October 04, 2003 11:49 AM Subject: Re: [Mapserver-users] Can't generate .QIX files on-the-fly > > This should work, > > can you give more info on the exact php line used. > It should have the full path to the binary (don't rely on the %PATH% to > find it for you). # like this.: # this is the result of the an echo of my run-string: "D:\local\bin\shapelib\shptree.exe" "D:\local\apache_htdocs\msc\mapasVCP\LA\Altinopolis\C732_Fibra II\C732.shp" #and taking a look at the error.log of Apache, it seems a path problems to the second part of the string.... #is there any way of avoiding this path error without modifing the path?? > > also turn on php debugging, what does that report. > > BTW > Shapefiles are static (at least they can only be appended to without > rewriting the entire file). It would be better to run shptree at the > same time that the shapefiles are written to. > > If you are using very dynamic content maybe PostGIS, or Oracle Spatial, > or MySQL 4.0, or ESRI SDE would be a better solution # sure it will be, but we cannot use this by this time. #thanks # Eduardo > > On 10/04/2003 08:22:14 AM, Eduardo Patto Kanegae wrote: > > I'm trying to use 'exec' or 'system' or 'shell_exe' to run > > "shptree.exe" under a Win2000+IIS+PHP4.3.3+MapServer 4.0 > > and generate .qix files on-the-fly but it doesn't work.... > > > > and even under a Apache on Windows it still doesn't work. > > > > Note: my PHP is not configured with the option "disabled > > functions" > > > > What could be wrong? > > > > Eduardo Patto Kanegae > > eduardo@consultoria.eti.br > > http://www.consultoria.eti.br - Brasil > From sgillies@frii.com Sat Oct 4 19:13:01 2003 From: sgillies@frii.com (Sean Gillies) Date: Sat, 4 Oct 2003 12:13:01 -0600 Subject: [Mapserver-users] How to convert a CSV data to shapefile In-Reply-To: Message-ID: <63EA594A-F696-11D7-A1EF-000393B98B56@frii.com> Tyler, For OGR to support vectors in a CSV format, there would have to be some standard schema. Which column has x, which y, is there a z coordinate? And what to do about attributes? It's so simple to run the Python interpreter, import OGR, re, sys and start converting. I highly recommend this to Mario. Sean On Friday, October 3, 2003, at 03:43 PM, Tyler Mitchell wrote: > > > > > > I'm working on something that will help to do just that using Python > and > OGR (http://gdal.maptools.org/ogr/) or maybe just Python and Shapelib > directly. > > I think it would be great if OGR supported reading/writing CSV format, > then > you could use it to go between all the supported formats: > http://www.remotesensing.org/gdal/ogr/ogr_formats.html > > Tyler > >> On Thu, 2003-10-02 at 20:21, Mario Servin wrote: >>> Hi, >>> I have aset of points in lat, lon format that i want to >> represent a plygon in a shapefile. Is there any free tool I can use >> for > that? >>> Regards, >>> Mario >> >> -- Sean Gillies sgillies at frii dot com http://www.frii.com/~sgillies From carl.anderson@vadose.org Sat Oct 4 21:38:42 2003 From: carl.anderson@vadose.org (Carl Anderson) Date: Sat, 4 Oct 2003 16:38:42 -0400 Subject: [Mapserver-users] Can't generate .QIX files on-the-fly In-Reply-To: <000c01c38aa0$613130c0$6600a8c0@vcp.advcp.br>; from eduardo@consultoria.eti.br on Sat, Oct 04, 2003 at 13:53:01 -0400 References: <000c01c38a72$284bd8b0$6600a8c0@vcp.advcp.br> <20031004144954.GA9105@vadose.dvg> <000c01c38aa0$613130c0$6600a8c0@vcp.advcp.br> Message-ID: <20031004203842.GC10938@vadose.dvg> On 10/04/2003 01:53:01 PM, Eduardo Patto Kanegae wrote: > > # this is the result of the an echo of my run-string: > > "D:\local\bin\shapelib\shptree.exe" > "D:\local\apache_htdocs\msc\mapasVCP\LA\Altinopolis\C732_Fibra > II\C732.shp" > exec should take 1 string to execute. can you post the exact php line. I wrote this done
"; ?> and I get a QIX index. this is under Linux but change it and it will work under Win32. error messages are meaningful posting them may help. with no other info i suspect a user permissions problem check the user id that runs apache / IIS and make sure that the user can (over)write the QIX index and can read the SHP and SHX files. alternatively set the permissions to the QIX file, and directory to allow read and write by everyone. C. From maskellp@ntlworld.com Sat Oct 4 22:16:21 2003 From: maskellp@ntlworld.com (Phil Maskell) Date: Sat, 4 Oct 2003 22:16:21 +0100 Subject: [Mapserver-users] Using OGR with tab files In-Reply-To: <20031003181930.69399.qmail@web14812.mail.yahoo.com> Message-ID: <008a01c38abc$c255e640$c800c0c0@mobile> This is a multi-part message in MIME format. ------=_NextPart_000_008B_01C38AC5.241A4E40 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit Cheers for this, I had to remove the projection to get it to work; I also found I needed the COLOR in the class. I have another newbie question, RASTERs, I have tried to display these as a tab with OGR and as a tif with a data connection. Does anyone have an example I can use to try and get this working. Thanks Phil Maskell -----Original Message----- From: mapserver-users-admin@lists.gis.umn.edu [mailto:mapserver-users-admin@lists.gis.umn.edu] On Behalf Of Michael Roach Sent: 03 October 2003 19:19 To: Mapserver-users@lists.gis.umn.edu Subject: RE: [Mapserver-users] Using OGR with tab files This format works for me under MS4.0 when using TAB files. As far as projections go, giving no projection is better than the wrong one. But, I don't believe projection is your issue here. LAYER NAME interstate TYPE line PROJECTION "init=epsg:4269" #LONG/LAT NAD83 END #PROJECTION CONNECTIONTYPE OGR CONNECTION "/opt/mapdata/interstate.TAB" STATUS DEFAULT CLASS COLOR 0 0 0 END #CLASS END #LAYER Phil Maskell wrote: Thanks for this, I tried it, still no joy. Being new to MapServer, do you think this has anything to do with my projection settings? The tabs are using "British National Grid". I use the following: PROJECTION "init=epsg:27700" END Phil -----Original Message----- From: Matthew Haines [mailto:mhaines94108@hotmail.com] Sent: 03 October 2003 03:30 To: maskellp@ntlworld.com Subject: Re: [Mapserver-users] Using OGR with tab files I have the line "FORCE TRUE" in my LAYER declaration for a POINT type layer. Matthew ----Original Message Follows---- From: "Phil Maskell" To: Subject: [Mapserver-users] Using OGR with tab files Date: Thu, 2 Oct 2003 23:44:43 +0100 Hi, I have set MapServer 4.0 up with the demo, I have us! ed OGR to load a POLYGON type layer from a tab, but cannot get it to work with LINE or POINT. This is a sample of the layer in my map file: # This works LAYER NAME Counties_region TYPE POLYGON STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "data/Counties.TAB" STYLEITEM "AUTO" CLASS NAME "Counties" END PROJECTION "AUTO" END END # Layer # This doesn't work LAYER NAME Motorways TYPE LINE STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "data/Motorways.TAB" STYLEITEM "AUTO" CLASS NAME "Motorways" END PROJECTION "AUTO" END END # Layer I hope someone can explain what I'm doing wrong. Thanks in advance Phil Maskell _____ Do you Yahoo!? HYPERLINK "http://shopping.yahoo.com/?__yltc=s%3A150000443%2Cd%3A22708228%2Cslk%3A text%2Csec%3Amail"The New Yahoo! Shopping - with improved product search --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.521 / Virus Database: 319 - Release Date: 23/09/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.521 / Virus Database: 319 - Release Date: 23/09/2003 ------=_NextPart_000_008B_01C38AC5.241A4E40 Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable

Cheers for this, I had to remove = the projection to get it to work; I also found I needed the COLOR in the = class.

 

I have another newbie question, = RASTERs, I have tried to display these as a tab = with OGR and as a tif with a data connection. Does anyone have an example I can use = to try and get this working.

 

Thanks

 

Phil = Maskell

 

---= --Original Message-----
From: mapserver-users-admin@lists.gis.umn.edu [mailto:mapserver-users-admin@lists.gis.umn.edu] On Behalf Of Michael Roach
Sent: 03 October 2003 = 19:19
To: Mapserver-users@lists.gis.umn.edu
Subject: RE: = [Mapserver-users] Using OGR with tab files

 

 This = format works for me under MS4.0 when using TAB files. As far as projections go, = giving no projection is better than the wrong one. But, I don't believe projection = is your issue here.

LAYER
  =
NAME interstate 
  =
TYPE line =
       &nbs=
p;PROJECTION
  =
  =
"init=3Depsg:4269" #LONG/LAT =
NAD83
  =
END #PROJECTION
        =
CONNECTIONTYPE OGR
  =
CONNECTION =
"/opt/mapdata/interstate.TAB"
  = STATUS DEFAULT
  =
CLASS
  =
  COLOR 0 0 0 =
  =
END #CLASS
END #LAYER



Phil Maskell <maskellp@ntlworld.com> wrote: =

Thanks for = this, I tried it, still no joy.

Being new to MapServer, do you think this has anything to do with my
projection settings? The tabs are using "British National = Grid".

I use the following:

PROJECTION
"init=3Depsg:27700"
END

Phil

-----Original Message-----
From: Matthew Haines [mailto:mhaines94108@hotmail.com]
Sent: 03 October 2003 03:30
To: maskellp@ntlworld.com
Subject: Re: [Mapserver-users] Using OGR with tab files


I have the line "FORCE TRUE" in my LAYER declaration for a = POINT type
layer.

Matthew

----Original Message Follows----
From: "Phil Maskell"
To:
Subject: [Mapserver-users] Using OGR = with tab files
Date: Thu, 2 Oct 2003 23:44:43 +0100

Hi,

I have set MapServer 4.0 up with the demo, I have us! ed OGR to load = a
POLYGON type layer from a tab, but cannot get it to work with LINE = or
POINT.

This is a sample of the layer in my map file:

# This works
LAYER
NAME Counties_region
TYPE POLYGON
STATUS DEFAULT
CONNECTIONTYPE OGR
CONNECTION "data/Counties.TAB"
STYLEITEM "AUTO"
CLASS
NAME "Counties"
END
PROJECTION
"AUTO"
END
END # Layer

# This doesn't work
LAYER
NAME Motorways
TYPE LINE
STATUS DEFAULT
CONNECTIONTYPE OGR
CONNECTION "data/Motorways.TAB"
STYLEITEM "AUTO"
CLASS
NAME "Motorways"
END
PROJECTION
"AUTO"
END
END # Layer

I hope someone can explain what I'm doing wrong.

Thanks in advance

Phil Maskell


Do you = Yahoo!?
The New Yahoo! Shopping - with improved product = search

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.521 / Virus Database: 319 - Release Date: = 23/09/2003


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.521 / Virus Database: 319 - Release Date: 23/09/2003

------=_NextPart_000_008B_01C38AC5.241A4E40-- From geoffrey.rowland@noaa.gov Sat Oct 4 22:57:27 2003 From: geoffrey.rowland@noaa.gov (Geoffrey Rowland) Date: Sat, 04 Oct 2003 17:57:27 -0400 Subject: [Mapserver-users] PHP and shp files Message-ID: <7efa49e6.49e67efa@ogp.noaa.gov> If I understand you correctly, yes this is possible. You can set the image produced as an input type, that way when you click on it, it will produce pixel x and y coords. Then you can write a function (check out the gmap demo for one that is already written) that converts the pixel position into georeferenced position. You can then retrieve the information you need from the shape file. Does that help? ----- Original Message ----- From: Swapna Guddanti Date: Friday, October 3, 2003 3:27 pm Subject: [Mapserver-users] PHP and shp files > hi, > I'm developing a PHP client where I need to use some maps which > are available > as SHP files. I was wondering if there is any way in which I can > include these > clickable maps in my PHP client so that , on clicking the image I > can get the > features of the position clicked on the map.I've tried using tools > like > ArcExplorer which produce clickable images but I can only save the > images > formed as bitmap images which are not clickable and do not have > any embedded > information. I was wondering if map server would meet my needs. > Any help would > be greatly appreciated. Thanks. > regards, > swapna > > > > Swapna Guddanti > Research Assistant > Laboratory for Advanced Computing, UIC > 312-996-0305(lab) > 312-622-2619(cell) > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From denlalonde@yahoo.com Sun Oct 5 00:48:02 2003 From: denlalonde@yahoo.com (Denis Lalonde) Date: Sat, 4 Oct 2003 16:48:02 -0700 (PDT) Subject: [Mapserver-users] MapWidth and queryByRect... Message-ID: <20031004234802.53979.qmail@web41605.mail.yahoo.com> --0-168151693-1065311282=:52216 Content-Type: text/plain; charset=us-ascii Hello all, I tried posting this yesterday as a Newbie, but I think it may have gotten lost in cyberspace. My appologies if the lost post suddenly re-appears. Anyway, I have a couple of questions. Using the map file below: --------------------------------------------------------------------------- NAME FIRSTMAP SIZE 468 320 STATUS ON EXTENT -145 41 -50 83 SHAPEPATH "" UNITS DD OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" END # Start of scalebar #''''''''''''''''''''''''''''''''''''' SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE SMALL END SIZE 150 4 COLOR 0 0 255 BACKGROUNDCOLOR 0 0 0 OUTLINECOLOR 0 0 0 UNITS KILOMETERS INTERVALS 2 STATUS EMBED END LAYER NAME "Canada" TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "canada.tab" STATUS ON DATA "canada" STYLEITEM "AUTO" End --------------------------------------------------------------------------- I am trying to query by rectangle using the following code: $rect = ms_newrectObj(); $rect->setextent($map->extent->minx,$map->extent->miny,$map->extent->maxx,$map->extent->maxy); $results=$lyr->queryByRect($rect); I get the following error: Warning: [MapServer Error]: msQueryByRect(): No matching record(s) found What am I missing? And how would I get a number of records count when I do eventually get it to return something? ------------------------------ Ok, and my last Newbie question: I try to get the MapWidth of the map using the following code: #$MapOBJ->units="KILOMETERS"; # tried changing to kilometers, but nothing... $bottomleftpoint=ms_newpointObj(); $bottomleftpoint->setXY($extent_to_set[0],$extent_to_set[1]); $bottomrightpoint=ms_newpointObj(); $bottomrightpoint->setXY($extent_to_set[2],$extent_to_set[1]); $distanceToPoint=$bottomleftpoint->distanceToPoint($bottomrightpoint); But what I get is 112 "some units" for something that should give me 6000 kms. (?) Thanks in advance, Denis --------------------------------- Do you Yahoo!? The New Yahoo! Shopping - with improved product search --0-168151693-1065311282=:52216 Content-Type: text/html; charset=us-ascii
Hello all,
I tried posting this yesterday as a Newbie, but I think it may have gotten lost in cyberspace. My appologies if the lost post suddenly re-appears.
 
Anyway, I have a couple of questions.
 
Using the map file below:
---------------------------------------------------------------------------
NAME FIRSTMAP
SIZE 468 320
STATUS ON
EXTENT -145 41 -50 83
SHAPEPATH ""
UNITS DD
OUTPUTFORMAT
  NAME png
  DRIVER "GD/PNG"
  MIMETYPE "image/png"
  IMAGEMODE PC256
  EXTENSION "png"
END
 
# Start of scalebar
#'''''''''''''''''''''''''''''''''''''
SCALEBAR
  IMAGECOLOR 255 255 255
  LABEL
    COLOR 0 0 0
    SIZE SMALL
  END
  SIZE 150 4
  COLOR 0 0 255
  BACKGROUNDCOLOR 0 0 0
  OUTLINECOLOR 0 0 0
  UNITS KILOMETERS
  INTERVALS 2
  STATUS EMBED
END
 
LAYER
  NAME "Canada"
  TYPE POLYGON
  CONNECTIONTYPE OGR
  CONNECTION "canada.tab"
  STATUS ON
  DATA "canada"
 STYLEITEM "AUTO"
End
---------------------------------------------------------------------------
 
I am trying to query by rectangle using the following code:
$rect = ms_newrectObj();
$rect->setextent($map->extent->minx,$map->extent->miny,$map->extent->maxx,$map->extent->maxy);
$results=$lyr->queryByRect($rect);
 
I get the following error:
Warning: [MapServer Error]: msQueryByRect(): No matching record(s) found
 
What am I missing? And how would I get a number of records count when I do eventually get it to return something?
 
------------------------------
 
Ok, and my last Newbie question:
I try to get the MapWidth of the map using the following code:
#$MapOBJ->units="KILOMETERS"; # tried changing to kilometers, but nothing...
$bottomleftpoint=ms_newpointObj();
$bottomleftpoint->setXY($extent_to_set[0],$extent_to_set[1]);
$bottomrightpoint=ms_newpointObj();
$bottomrightpoint->setXY($extent_to_set[2],$extent_to_set[1]);
$distanceToPoint=$bottomleftpoint->distanceToPoint($bottomrightpoint);
 
But what I get is 112 "some units" for something that should give me 6000 kms. (?)
 
Thanks in advance,
Denis
 


Do you Yahoo!?
The New Yahoo! Shopping - with improved product search --0-168151693-1065311282=:52216-- From ycnyon@pd.jaring.my Sat Oct 4 17:28:26 2003 From: ycnyon@pd.jaring.my (YC Nyon) Date: Sun, 5 Oct 2003 00:28:26 +0800 Subject: [Mapserver-users] Installshield for installation Message-ID: <001e01c38b3f$1e8614d0$5340ba66@gis> I'm looking to deploy MS to remote sites for use in the intranet. For this, I am planning to use Installshield to automate this. The task are 1. Install PHP 2. Copy PHP-MS files to the correct directories 3. Copy Project and data files 4. Permissions settings in IIS Has anyone done this before? Comments/advice are also welcomed. Regards Nyon --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.522 / Virus Database: 320 - Release Date: 29/09/2003 From woodbri@swoodbridge.com Sun Oct 5 14:11:43 2003 From: woodbri@swoodbridge.com (woodbri@swoodbridge.com) Date: Sun, 05 Oct 2003 09:11:43 -0400 Subject: [Mapserver-users] Installshield for installation In-Reply-To: <001e01c38b3f$1e8614d0$5340ba66@gis> Message-ID: <3F7FE04F.3981.2B40180@localhost> Nyon, While I haven't done this with mapserver, I have done it with some other applications in the past. I would encourage you to look at http://www.jrsoftware.org/ For the Inno installer, that is freely available if you would be inclined to contribute your results back to the mapserver CVS tree. -Steve W On 5 Oct 2003 at 0:28, YC Nyon wrote: > I'm looking to deploy MS to remote sites for use in the intranet. For > this, I am planning to use Installshield to automate this. The task > are 1. Install PHP 2. Copy PHP-MS files to the correct directories 3. > Copy Project and data files 4. Permissions settings in IIS > > Has anyone done this before? Comments/advice are also welcomed. > > Regards > Nyon > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.522 / Virus Database: 320 - Release Date: 29/09/2003 > _______________________________________________ Mapserver-users > mailing list Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From eduardo_islas@hotmail.com Sun Oct 5 21:41:34 2003 From: eduardo_islas@hotmail.com (Eduardo Islas) Date: Sun, 05 Oct 2003 15:41:34 -0500 Subject: [Mapserver-users] Using mode=map & FILTER Message-ID: I have programmed my own application that works importing images to flash and VB applications using the CGI executable in mode=map. I want to use a label layer but filtering and showing only some labels. If I use FILTER & FILTERITEM in the mapfile I get no labels at all (never). I read that in order to use FILTER I need to specify other mode in the CGI Script but I want to keep the mode=map to get the image directly. This is my script: LAYER MAXSCALE 150 NAME "texto" DATA texto STATUS DEFAULT TYPE POINT LABELITEM "Label" LABELANGLEITEM "Angle" FILTERITEM "Hierarchy" FILTER "Hierarchy >0" CLASS SIZE 6 COLOR 0 0 0 LABEL TYPE TRUETYPE FONT "TAHOMA" ANTIALIAS TRUE OUTLINECOLOR 255 255 255 COLOR 0 0 0 POSITION UR MINSIZE 6 FORCE true END END # end of class object END # end of layer object _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus From mamwake@yahoo.com Mon Oct 6 07:22:37 2003 From: mamwake@yahoo.com (ronny) Date: Sun, 5 Oct 2003 23:22:37 -0700 (PDT) Subject: [Mapserver-users] help needed Message-ID: <20031006062237.76607.qmail@web40304.mail.yahoo.com> am trying to draw a map but am getting: msDrawMap(): Image handling error. Failed to draw layer named 'Nakuru_region'. i sincerely don't know what that means since am very new to maps drawing and mapserver! the layer is as follows: LAYER NAME Nakuru_region TYPE POINT STATUS DEFAULT DATA nakuru_region CLASSITEM 'cty_name' CLASS EXPRESSION 'Nakuru' OUTLINECOLOR 128 128 128 COLOR 225 225 185 END CLASS # every other towns in the region EXPRESSION /./ OUTLINECOLOR 128 128 128 COLOR 255 255 255 END METADATA WMS_TITLE "Nakuru Towns" WMS_ABSTRACT "Nakuru Region shapfile." WMS_SRS "EPSG:26915" END END am on redhat linux 8.0 mapserver 4.0 ===== ronny __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From ter-haseborg@sf-datentechnik.de Mon Oct 6 07:54:14 2003 From: ter-haseborg@sf-datentechnik.de (Frieso ter Haseborg) Date: Mon, 6 Oct 2003 08:54:14 +0200 Subject: [Mapserver-users] No scalebar, legend, or ref map images when I use 4.0 Message-ID: <0DF955F15A102E4F81B948D44A45015A069234@nt-sf-exchange.Windows2000> Hi Mike, I experienced the same problem when using a relative path. If you use relative path in your mapfile try to change to an absolute one. HTH, Frieso ter Haseborg - Software Development - -- -------------------------------------------------- S&F Datentechnik GmbH&Co.KG Reimersstr. 41b 26789 Leer, Germany >-----Original Message----- >From: Michael Anderson [mailto:m_anderson14@hotmail.com] >Sent: Thursday, October 02, 2003 8:32 PM >To: mapserver-users@lists.gis.umn.edu >Subject: [Mapserver-users] No scalebar, legend, or ref map >images when I >use 4.0 > > >If I use 4.0 instead of 3.6.3 no legend, reference map, or >scalebar images >are created. The template still returns paths to where they >should be, but >the images never get written out. I've looked through the >documented changes >and don't see anything that explains it. What am I missing? > >Thanks. > >Mike > > >Michael Anderson >Spatial Information Technologies, Inc. > >_________________________________________________________________ >Share your photos without swamping your Inbox. Get Hotmail >Extra Storage >today! http://join.msn.com/?PAGE=features/es > >_______________________________________________ >Mapserver-users mailing list >Mapserver-users@lists.gis.umn.edu >http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > From maskellp@ntlworld.com Mon Oct 6 13:45:49 2003 From: maskellp@ntlworld.com (maskellp@ntlworld.com) Date: Mon, 6 Oct 2003 12:45:49 +0000 Subject: [Mapserver-users] Using MapServer (MapScript) with Java Message-ID: <20031006124550.MDXA2197.mta05-svc.ntlworld.com@[10.137.100.72]> Hi, I’m new to MapServer and am hoping to connect to MapServer from a Java servlet, there is info on the web about using Perl or PHP to communicate with the MapServer API, and does anyone have any info or examples of this in Java? Any ideas of how to communicate with MapServer using CGI from a Java Servlet? Thanks in advance. Phil Maskell. ----------------------------------------- Email provided by http://www.ntlhome.com/ From msmith@sanangelompo.org Mon Oct 6 14:06:22 2003 From: msmith@sanangelompo.org (Michael Smith) Date: Mon, 6 Oct 2003 08:06:22 -0500 Subject: [Mapserver-users] help needed In-Reply-To: <20031006062237.76607.qmail@web40304.mail.yahoo.com> Message-ID: Not sure if this is the problem, but your shapefile seems to be a region and your mapfile type is set to point rather than region. -----Original Message----- From: mapserver-users-admin@lists.gis.umn.edu [mailto:mapserver-users-admin@lists.gis.umn.edu]On Behalf Of ronny Sent: Monday, October 06, 2003 1:23 AM To: MapsHelp Subject: [Mapserver-users] help needed am trying to draw a map but am getting: msDrawMap(): Image handling error. Failed to draw layer named 'Nakuru_region'. i sincerely don't know what that means since am very new to maps drawing and mapserver! the layer is as follows: LAYER NAME Nakuru_region TYPE POINT STATUS DEFAULT DATA nakuru_region CLASSITEM 'cty_name' CLASS EXPRESSION 'Nakuru' OUTLINECOLOR 128 128 128 COLOR 225 225 185 END CLASS # every other towns in the region EXPRESSION /./ OUTLINECOLOR 128 128 128 COLOR 255 255 255 END METADATA WMS_TITLE "Nakuru Towns" WMS_ABSTRACT "Nakuru Region shapfile." WMS_SRS "EPSG:26915" END END am on redhat linux 8.0 mapserver 4.0 ===== ronny __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From thorne@dmsolutions.ca Mon Oct 6 14:13:47 2003 From: thorne@dmsolutions.ca (Christopher R. Thorne) Date: Mon, 06 Oct 2003 09:13:47 -0400 Subject: [Mapserver-users] help needed In-Reply-To: <20031004085735.71738.qmail@web40301.mail.yahoo.com> References: <20031004085735.71738.qmail@web40301.mail.yahoo.com> Message-ID: <3F816A8B.9020600@dmsolutions.ca> Ronny, Yes, the error message is a little ambiguous. From your layer description I am assuming that you are using php_mapscript_36.dll If you were using php_mapscript_40.dll or higher you will need a STYLE object within the CLASS Object to hold your styling parameters eg. CLASS EXPRESSION 'Nakuru' STYLE OUTLINECOLOR 128 128 128 COLOR 225 225 185 END END I have a question, I noticed that you have a Metadata Object with WMS variables in it. Are you trying to connect to a WMS Server? If so, you do not have a Connection Object, that contains the location of the data you wish to display. If it is local data you are using please make sure that path to your SHAPEPATH in your Main MAP object is defined correctly, with respect to the your DATA object found in this LAYER. One last comment, I notice also that the path to your layer is not in quotes DATA nakuru_region should be: DATA "nakuru_region" I am not sure if this is the issue, but it is good practice to place quotes around the strings you will be passing in your mapfile. Thanks Chris ronny wrote: > am trying to draw a map but am getting: > > msDrawMap(): Image handling error. Failed to draw > layer named 'Nakuru_region'. > > i sincerely don't know what that means since am very > new to maps drawing and mapserver! > > the layer is as follows: > > LAYER > NAME Nakuru_region > TYPE POINT > STATUS DEFAULT > DATA nakuru_region > > CLASSITEM 'cty_name' > CLASS > EXPRESSION 'Nakuru' > OUTLINECOLOR 128 128 128 > COLOR 225 225 185 > END > CLASS # every other towns in the region > EXPRESSION /./ > OUTLINECOLOR 128 128 128 > COLOR 255 255 255 > END > METADATA > WMS_TITLE "Nakuru Towns" > WMS_ABSTRACT "Nakuru Region shapfile." > WMS_SRS "EPSG:26915" > END > END > > am on redhat linux 8.0 > mapserver 4.0 > > > ===== > ronny > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > -- Christopher R. Thorne GIS Specialist, DM Solutions Group Inc. http://www.dmsolutions.ca email: thorne@dmsolutions.ca Phone: (613) 565-5056 ext.22 Fax : (613) 565-0925 ------------------------------ From mamwake@yahoo.com Mon Oct 6 14:30:43 2003 From: mamwake@yahoo.com (ronny) Date: Mon, 6 Oct 2003 06:30:43 -0700 (PDT) Subject: [Mapserver-users] help needed In-Reply-To: Message-ID: <20031006133043.22112.qmail@web40311.mail.yahoo.com> effected the changes as per your suggestion but now am getting getSymbol(): Symbol definition error. (REGION):(118) thanks. --- Michael Smith wrote: > Not sure if this is the problem, but your shapefile > seems to be a region and > your mapfile type is set to point rather than > region. > > -----Original Message----- > From: mapserver-users-admin@lists.gis.umn.edu > [mailto:mapserver-users-admin@lists.gis.umn.edu]On > Behalf Of ronny > Sent: Monday, October 06, 2003 1:23 AM > To: MapsHelp > Subject: [Mapserver-users] help needed > > > > am trying to draw a map but am getting: > > msDrawMap(): Image handling error. Failed to draw > layer named 'Nakuru_region'. > > i sincerely don't know what that means since am > very > new to maps drawing and mapserver! > > the layer is as follows: > > LAYER > NAME Nakuru_region > TYPE POINT > STATUS DEFAULT > DATA nakuru_region > > CLASSITEM 'cty_name' > CLASS > EXPRESSION 'Nakuru' > OUTLINECOLOR 128 128 128 > COLOR 225 225 185 > END > CLASS # every other towns in the region > EXPRESSION /./ > OUTLINECOLOR 128 128 128 > COLOR 255 255 255 > END > METADATA > WMS_TITLE "Nakuru Towns" > WMS_ABSTRACT "Nakuru Region shapfile." > WMS_SRS "EPSG:26915" > END > END > > am on redhat linux 8.0 > mapserver 4.0 > > ===== > ronny > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product > search > http://shopping.yahoo.com > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > ===== ronny __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From assefa@dmsolutions.ca Mon Oct 6 14:40:40 2003 From: assefa@dmsolutions.ca (Yewondwossen Assefa) Date: Mon, 06 Oct 2003 09:40:40 -0400 Subject: [Mapserver-users] raster layers in PDF output don't get cropped In-Reply-To: <3F7B33CB.30702@main.nc.us> References: <3F7B33CB.30702@main.nc.us> Message-ID: <3F8170D8.9000800@dmsolutions.ca> I havn't really seen this with the test files that I am using with Mapserver 4.1-dev gd-2.0.15 and pdflib-4.0.3 (on a Windows platform). Is it possible to isolate this to one or so raster layer and send me directly the map file and the data so I do additional tests ? Later Rusty Holleman wrote: > > Curious if anyone else has seen this sort of behavior. I'm > running mapserver 4.0, gd 2.0.12, PDFlib Lite 5.0.1. > > I have a map that composites several images, then draws roads > on top. It works great when I render to PNG, but if I render > to PDF the raster data spills all over the page. Watching > acroread display the file, as it displays each raster layer > the image is intact but all of the page outside the image > bounding box gets colored with some color from the image, > overwriting previous raster layers. > > If I add the formatoption OUTPUT_TYPE=RASTER, then I get mostly > what I want except that places that are transparent (i.e. it > falls on an offsite pixel for all of the raster layers) end > up red rather than white. This can be circumvented by placing > a small all-white image at the lowest layer, with no offsite > value. Of course, setting OUTPUT_TYPE=RASTER defeats much of > the purpose of rendering to PDF anyway, so this is not really > a solution. > > Any ideas? Any other details I should post? > > thanks, > rusty > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From siki@bme-geod.agt.bme.hu Mon Oct 6 18:05:56 2003 From: siki@bme-geod.agt.bme.hu (Siki Zoltan) Date: Mon, 6 Oct 2003 16:05:56 -0100 (GMT+1) Subject: [Mapserver-users] help needed In-Reply-To: <20031006062237.76607.qmail@web40304.mail.yahoo.com> Message-ID: Hi Ronny, Did you set the SHAPEPATH variable at the begining of the map file? e.g. NAME SAMPLE SIZE ... STATUS ... UNITS ... SHAPEPATH If you don't set the SHAPEPATH, you must give the absoute path + shape name in the DATA for the layer. I haven't try it :( On Sun, 5 Oct 2003, ronny wrote: > > am trying to draw a map but am getting: > > msDrawMap(): Image handling error. Failed to draw > layer named 'Nakuru_region'. > > i sincerely don't know what that means since am very > new to maps drawing and mapserver! > > the layer is as follows: > > LAYER > NAME Nakuru_region > TYPE POINT > STATUS DEFAULT > DATA nakuru_region > > CLASSITEM 'cty_name' > CLASS > EXPRESSION 'Nakuru' > OUTLINECOLOR 128 128 128 > COLOR 225 225 185 > END > CLASS # every other towns in the region > EXPRESSION /./ > OUTLINECOLOR 128 128 128 > COLOR 255 255 255 > END > METADATA > WMS_TITLE "Nakuru Towns" > WMS_ABSTRACT "Nakuru Region shapfile." > WMS_SRS "EPSG:26915" > END > END > > am on redhat linux 8.0 > mapserver 4.0 > > ===== > ronny > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > cheers -- Zoltan Siki Tel:+36 1 463 1146 +36 70 3199092 Fax:+36 1 463 3209 Mail: siki@agt.bme.hu ------------------------------------------------------------------------------- Assistant professor at egyetemi adjunktus Department of Geodesy and Surveying Altalanos es Felsogeodezia tanszek Budapest University of Technology Hungary Budapesti Muszaki Gazd. Tud. Egyetem ------------------------------------------------------------------------------- From mamwake@yahoo.com Mon Oct 6 16:02:44 2003 From: mamwake@yahoo.com (ronny) Date: Mon, 6 Oct 2003 08:02:44 -0700 (PDT) Subject: [Mapserver-users] help needed In-Reply-To: Message-ID: <20031006150244.82607.qmail@web40305.mail.yahoo.com> ya i did exactly that! thanks --- Siki Zoltan wrote: > Hi Ronny, > > Did you set the SHAPEPATH variable at the begining > of the map file? > e.g. > NAME SAMPLE > SIZE ... > STATUS ... > UNITS ... > SHAPEPATH > > If you don't set the SHAPEPATH, you must give the > absoute path + shape > name in the DATA for the layer. I haven't try it :( > > On Sun, 5 Oct 2003, ronny wrote: > > > > > am trying to draw a map but am getting: > > > > msDrawMap(): Image handling error. Failed to draw > > layer named 'Nakuru_region'. > > > > i sincerely don't know what that means since am > very > > new to maps drawing and mapserver! > > > > the layer is as follows: > > > > LAYER > > NAME Nakuru_region > > TYPE POINT > > STATUS DEFAULT > > DATA nakuru_region > > > > CLASSITEM 'cty_name' > > CLASS > > EXPRESSION 'Nakuru' > > OUTLINECOLOR 128 128 128 > > COLOR 225 225 185 > > END > > CLASS # every other towns in the region > > EXPRESSION /./ > > OUTLINECOLOR 128 128 128 > > COLOR 255 255 255 > > END > > METADATA > > WMS_TITLE "Nakuru Towns" > > WMS_ABSTRACT "Nakuru Region shapfile." > > WMS_SRS "EPSG:26915" > > END > > END > > > > am on redhat linux 8.0 > > mapserver 4.0 > > > > ===== > > ronny > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product > search > > http://shopping.yahoo.com > > _______________________________________________ > > Mapserver-users mailing list > > Mapserver-users@lists.gis.umn.edu > > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > > cheers > -- > Zoltan Siki > > Tel:+36 1 463 1146 +36 70 3199092 Fax:+36 1 463 > 3209 > Mail: siki@agt.bme.hu > ------------------------------------------------------------------------------- > Assistant professor at egyetemi > adjunktus > Department of Geodesy and Surveying Altalanos > es Felsogeodezia tanszek > Budapest University of Technology Hungary Budapesti > Muszaki Gazd. Tud. Egyetem > ------------------------------------------------------------------------------- > ===== ronny __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From CJPRYOR@sandia.gov Mon Oct 6 17:16:18 2003 From: CJPRYOR@sandia.gov (Pryor, Clayton J) Date: Mon, 6 Oct 2003 10:16:18 -0600 Subject: [Mapserver-users] mapserv SDE 8.3 interface Message-ID: I am putting together a mapserver prototype for a current application that I implemented in ArcIMS. I have searched the web and the MapServer email list archives for help with this problem to no avail. I am trying to get mapserver up and running with an ArcSDE interface. I have been able to compile mapserver with SDE libraries but when I try to run mapserv from the command line or the web server I get the following message: ./mapserv: error while loading shared libraries: libsde83.so: cannot open shared object file: No such file or directory. When I execute ldd ./mapserv I get the following ArcSDE library related messages: libsde83.so => not found libpe83.so => not found libssg83.so => not found I am running all of this on Linux RedHat 9 on an IBM Thinkpad model A31. FYI, here are my configuration options for mapserv: ./configure --with-sde=/usr/local/arcsde/sdeexe83 --with-sde-version=83 --with-sde=/usr/local --with-gd=/usr/local --with-php=/usr/local/php-4.3.3 --with-proj=/usr/local One thing I have not done is set up an ArcSDE connection to the database on the prototype machine. I will be looking into that next. Could that be the problem? I am posting this message now in case I am missing something other than an ArcSDE connection to the database. Any help is appreciated. Sincerely, Clay ------------------------------------------------------------ Clayton J. Pryor phone (505) 845-3557 Sandia National Laboratories Critical Infrastructure Surety fax (505) 844-9641 PO Box 5800 MS 0451 Albuquerque NM 87185-0451 email cjpryor@sandia.gov ------------------------------------------------------------ From Jean-Francois.Doyon@CCRS.NRCan.gc.ca Mon Oct 6 17:57:55 2003 From: Jean-Francois.Doyon@CCRS.NRCan.gc.ca (Jean-Francois.Doyon@CCRS.NRCan.gc.ca) Date: Mon, 6 Oct 2003 12:57:55 -0400 Subject: [Mapserver-users] mapserv SDE 8.3 interface Message-ID: <7CDD7B94357FD5119E800002A537C46E230A2B@s5-ccr-r1.ccrs.nrcan.gc.ca> Clayton, You most likely haven't added the SDE client's library directory into your library path. If there's no security/multi-user concerns, just add said path to /etc/ld.so.conf, and run ldconfig ... This makes the libs globally available. Otherwise, look at the environment variable LD_LIBRARY_PATH ... if you have one, add the path to the SDE lib files to it, or create/export it with said path in it. If you do this in your own shell environment, ldd will now work and find the libraries. Note that if you go this route, you will also need to make sure the webserver has the environment variable set, which is done in Apache usin the SetEnv or PassEnv directives. Good luck! J.F. -----Original Message----- From: Pryor, Clayton J [mailto:CJPRYOR@sandia.gov] Sent: Monday, October 06, 2003 12:16 PM To: 'mapserver-users@lists.gis.umn.edu' Subject: [Mapserver-users] mapserv SDE 8.3 interface I am putting together a mapserver prototype for a current application that I implemented in ArcIMS. I have searched the web and the MapServer email list archives for help with this problem to no avail. I am trying to get mapserver up and running with an ArcSDE interface. I have been able to compile mapserver with SDE libraries but when I try to run mapserv from the command line or the web server I get the following message: ./mapserv: error while loading shared libraries: libsde83.so: cannot open shared object file: No such file or directory. When I execute ldd ./mapserv I get the following ArcSDE library related messages: libsde83.so => not found libpe83.so => not found libssg83.so => not found I am running all of this on Linux RedHat 9 on an IBM Thinkpad model A31. FYI, here are my configuration options for mapserv: ./configure --with-sde=/usr/local/arcsde/sdeexe83 --with-sde-version=83 --with-sde=/usr/local --with-gd=/usr/local --with-php=/usr/local/php-4.3.3 --with-proj=/usr/local One thing I have not done is set up an ArcSDE connection to the database on the prototype machine. I will be looking into that next. Could that be the problem? I am posting this message now in case I am missing something other than an ArcSDE connection to the database. Any help is appreciated. Sincerely, Clay ------------------------------------------------------------ Clayton J. Pryor phone (505) 845-3557 Sandia National Laboratories Critical Infrastructure Surety fax (505) 844-9641 PO Box 5800 MS 0451 Albuquerque NM 87185-0451 email cjpryor@sandia.gov ------------------------------------------------------------ _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From CJPRYOR@sandia.gov Mon Oct 6 19:21:14 2003 From: CJPRYOR@sandia.gov (Pryor, Clayton J) Date: Mon, 6 Oct 2003 12:21:14 -0600 Subject: [Mapserver-users] mapserv SDE 8.3 interface Message-ID: Yes! That did it. Thank you very much. I had seen a suggestion like this before but I could not make sense out of it (I am a Windows programmer and have only been working on this Linux Open Source project since last Monday (1 week) and have had to learn Linux (from installation to configuration to installation of applications to reconfiguration, etc.) as I go). Your description was very clear to me. BTW, I do not have email on my Linux box so I hand typed my configuration in my earlier email and made a mistake. Below is what I really used to configure mapserver. Sorry if my original message causes confusion to anyone trying to use it. ./configure --with-sde=/usr/local/arcsde/sdeexe83 --with-sde-version=83 --with-gd=/usr/local --with-php=/usr/local/php-4.3.3 --with-proj=/usr/local Sincerely, Clay -----Original Message----- From: Jean-Francois.Doyon@CCRS.NRCan.gc.ca [mailto:Jean-Francois.Doyon@CCRS.NRCan.gc.ca] Sent: Monday, October 06, 2003 10:58 AM To: CJPRYOR@sandia.gov; mapserver-users@lists.gis.umn.edu Subject: RE: [Mapserver-users] mapserv SDE 8.3 interface Clayton, You most likely haven't added the SDE client's library directory into your library path. If there's no security/multi-user concerns, just add said path to /etc/ld.so.conf, and run ldconfig ... This makes the libs globally available. Otherwise, look at the environment variable LD_LIBRARY_PATH ... if you have one, add the path to the SDE lib files to it, or create/export it with said path in it. If you do this in your own shell environment, ldd will now work and find the libraries. Note that if you go this route, you will also need to make sure the webserver has the environment variable set, which is done in Apache usin the SetEnv or PassEnv directives. Good luck! J.F. -----Original Message----- From: Pryor, Clayton J [mailto:CJPRYOR@sandia.gov] Sent: Monday, October 06, 2003 12:16 PM To: 'mapserver-users@lists.gis.umn.edu' Subject: [Mapserver-users] mapserv SDE 8.3 interface I am putting together a mapserver prototype for a current application that I implemented in ArcIMS. I have searched the web and the MapServer email list archives for help with this problem to no avail. I am trying to get mapserver up and running with an ArcSDE interface. I have been able to compile mapserver with SDE libraries but when I try to run mapserv from the command line or the web server I get the following message: ./mapserv: error while loading shared libraries: libsde83.so: cannot open shared object file: No such file or directory. When I execute ldd ./mapserv I get the following ArcSDE library related messages: libsde83.so => not found libpe83.so => not found libssg83.so => not found I am running all of this on Linux RedHat 9 on an IBM Thinkpad model A31. FYI, here are my configuration options for mapserv: ./configure --with-sde=/usr/local/arcsde/sdeexe83 --with-sde-version=83 --with-sde=/usr/local --with-gd=/usr/local --with-php=/usr/local/php-4.3.3 --with-proj=/usr/local One thing I have not done is set up an ArcSDE connection to the database on the prototype machine. I will be looking into that next. Could that be the problem? I am posting this message now in case I am missing something other than an ArcSDE connection to the database. Any help is appreciated. Sincerely, Clay ------------------------------------------------------------ Clayton J. Pryor phone (505) 845-3557 Sandia National Laboratories Critical Infrastructure Surety fax (505) 844-9641 PO Box 5800 MS 0451 Albuquerque NM 87185-0451 email cjpryor@sandia.gov ------------------------------------------------------------ _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From map_surfer@yahoo.com Mon Oct 6 20:07:28 2003 From: map_surfer@yahoo.com (Map Surfers) Date: Mon, 6 Oct 2003 12:07:28 -0700 (PDT) Subject: [Mapserver-users] querybyattributes with PostGIS layer Message-ID: <20031006190728.70643.qmail@web80703.mail.yahoo.com> Hello all, I am using Mapserver 4.0 and Postgres/PostGIS running on RedHat 9.0. I have no problems with PostGIS layers as far as viewing or querying (by rect or point). I created a "zoom to department" tool with the querybyattributes function. Basically, it gets the the shape objects bounds and zooms to that extent. It was successful using shapefile layers. However when replacing the shapefile layer with a PostGIS layer this fuction fails. The attribute I am querying is the "query" field in the data base. //DEBUG print $oLayer->name //layer object is good print $department //returns a valid value //no problems until if ($oLayer->queryByAttributes("query", $department, MS_SINGLE) == MS_SUCCESS){ print "i'm in!"; } else{ print "i'm not in."; } of course it returns "i'm not in." This is the exact syntax I used with the shapefile layer. Does PHP/Mapscript support the querybyattributes function with PostGIS layers. Here excerpt for querybyattributes from the mapserver4+ PHP/Mapscript README: int queryByAttributes(string qitem, string qstring, int mode) Query layer for shapes that intersect current map extents. qitem is the item (attribute) on which the query is performed, and qstring is the expression to match. The query is performed on all the shapes that are part of a CLASS that contains a TEMPLATE value or that match any class in a layer that contains a LAYER TEMPLATE value. Note that the layer's FILTER/FILTERITEM are ignored by this function. Mode is MS_SINGLE or MS_MULTIPLE depending on number of results you want. Returns MS_SUCCESS if shapes were found or MS_FAILURE if nothing was found or if some other error happened (note that the error message in case nothing was found can be avoided in PHP using the '@' control operator). Any clues would greatly be appreciated, Damian __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From map_surfer@yahoo.com Mon Oct 6 20:24:22 2003 From: map_surfer@yahoo.com (Map Surfers) Date: Mon, 6 Oct 2003 12:24:22 -0700 (PDT) Subject: [Mapserver-users] mapserver 4.0 : queryByRect problem In-Reply-To: <004601c3869b$07b80860$0201a8c0@mapxplore.com> Message-ID: <20031006192422.75111.qmail@web80702.mail.yahoo.com> fx- try remming out $oShape->free(); just to see what happens. you may want to post your mapfile, it may help to answer your question. Damian --- fx gamoy wrote: > hello, > i ve got a problem with the querybyrect method with > mapserv4.0 > > for ($i=0;$i<$nblayer;$i++) > { > $oLayer = $oMap->getLayer( $i ); > if (@$oLayer->queryByRect($oRect) == > MS_SUCCESS) > { > $oLayer->open(); > > $szResults=$oLayer->getNumResults(); > if ( $szResults > 0) //i find 14 shapes > { > for ($j=0;$j<$szResults;$j++) > { > $oResults=$oLayer->getResult($j); > > $oShape=$oLayer->getShape($oResults->tileindex,$oResults->shapeindex); > $oShape->free(); > } > }// if ( $szResults >0 > $oLayer->close(); > } //if (@$oLayer->quer > }// for > i find 14 shapes but the getshape method crash > PHP Fatal error: [MapServer Error]: > msOGRLayerNextShape(): Assertion failed: OGR layer > not opened!!! > Any idea? > thanks > fx > __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From steve.lime@dnr.state.mn.us Mon Oct 6 23:17:24 2003 From: steve.lime@dnr.state.mn.us (Steve Lime) Date: Mon, 06 Oct 2003 17:17:24 -0500 Subject: [Mapserver-users] MapWidth and queryByRect... Message-ID: The layer is not queryable because there is no layer template defined. You need to set one even if you're not going to use it. Adding TEMPLATE 'dummy' should suffice. As for number of results, the layer object has a results member, which in turn has a numresults member. Check that value. >>> Denis Lalonde 10/4/2003 6:48:02 PM >>> Hello all, I tried posting this yesterday as a Newbie, but I think it may have gotten lost in cyberspace. My appologies if the lost post suddenly re-appears. Anyway, I have a couple of questions. Using the map file below: --------------------------------------------------------------------------- NAME FIRSTMAP SIZE 468 320 STATUS ON EXTENT -145 41 -50 83 SHAPEPATH "" UNITS DD OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" END # Start of scalebar #''''''''''''''''''''''''''''''''''''' SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE SMALL END SIZE 150 4 COLOR 0 0 255 BACKGROUNDCOLOR 0 0 0 OUTLINECOLOR 0 0 0 UNITS KILOMETERS INTERVALS 2 STATUS EMBED END LAYER NAME "Canada" TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "canada.tab" STATUS ON DATA "canada" STYLEITEM "AUTO" End --------------------------------------------------------------------------- I am trying to query by rectangle using the following code: $rect = ms_newrectObj(); $rect->setextent($map->extent->minx,$map->extent->miny,$map->extent->maxx,$map->extent->maxy); $results=$lyr->queryByRect($rect); I get the following error: Warning: [MapServer Error]: msQueryByRect(): No matching record(s) found What am I missing? And how would I get a number of records count when I do eventually get it to return something? ------------------------------ Ok, and my last Newbie question: I try to get the MapWidth of the map using the following code: #$MapOBJ->units="KILOMETERS"; # tried changing to kilometers, but nothing... $bottomleftpoint=ms_newpointObj(); $bottomleftpoint->setXY($extent_to_set[0],$extent_to_set[1]); $bottomrightpoint=ms_newpointObj(); $bottomrightpoint->setXY($extent_to_set[2],$extent_to_set[1]); $distanceToPoint=$bottomleftpoint->distanceToPoint($bottomrightpoint); But what I get is 112 "some units" for something that should give me 6000 kms. (?) Thanks in advance, Denis --------------------------------- Do you Yahoo!? The New Yahoo! Shopping - with improved product search From steve.lime@dnr.state.mn.us Mon Oct 6 23:21:41 2003 From: steve.lime@dnr.state.mn.us (Steve Lime) Date: Mon, 06 Oct 2003 17:21:41 -0500 Subject: [Mapserver-users] reference map in 4.0 Message-ID: There are no seperate controls for the box versus the marker. You have to have filled for both or outlines for both. Sorry. Steve BTW Please fill out a bug report for this one. Ideally you'd want seperate styles for each, in fact that's probably the best solution. Add a BOXSTYLE and a MARKERSTYLE... Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Richard Greenwood 10/4/2003 11:18:39 AM >>> I am using the same reference map definition in 3.6 and 4.0 (see below) In 3.6 the box is not filled, it is just an outline. In 4.0 the box is filled. I want just an outline like I had in 3.6, so I set the color to -1 -1 -1. This does the trick for the box, but then I get no marker when I'm zoomed in below the MINBOXSIZE threshold. Am I missing something, is this a catch 22? Rich REFERENCE IMAGE "/inetpub/wwwroot/mapserver/graphics/jh_ref_map.gif" EXTENT 2365000 1320000 2555000 1600000 SIZE 153 226 STATUS OFF # gets turned on by URL OUTLINECOLOR 255 0 0 COLOR 255 0 0 MARKER star MARKERSIZE 20 MAXBOXSIZE 150 MINBOXSIZE 25 END Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich GreenwoodMap com (307) 733-0203 http://www.GreenwoodMap.com From pramsey@refractions.net Tue Oct 7 01:26:16 2003 From: pramsey@refractions.net (Paul Ramsey) Date: Mon, 06 Oct 2003 17:26:16 -0700 Subject: [Mapserver-users] WMS Cllient for ArcView 3.X Message-ID: <3F820828.5000207@refractions.net> Hello, Mapserver'ers, Refractions is happy to announce the beta release of our WMS Client software for ArcView 3.X. We will be maintaining a free-to-download WMS Client for ArcView 3.X and this is the initial release. We would be happy to hear back from you with bug reports, strange servers, etc. Please give it a try! The beta download page is at http://www.refractions.net/wms If the market appears to warrant it, we will be releasing a "Pro" version, with support for some more fiddly advanced features, like ArcIMS, printing, overlays, reprojection, etc. Paul -- __ / | Paul Ramsey | Refractions Research | Email: pramsey@refractions.net | Phone: (250) 885-0632 \_ From vguzman@maintask.com Tue Oct 7 01:34:42 2003 From: vguzman@maintask.com (=?ISO-8859-1?Q?Vladimir_Guzm=E1n?=) Date: Mon, 06 Oct 2003 19:34:42 -0500 Subject: [Mapserver-users] Interlaced Reference Message-ID: <3F820A22.3080401@maintask.com> Hello again. I'm trying to use fpdf to get a "printable" map with phpmapscript. Everything is fine, except that when I try to generate the Reference Map, I get the following error: *FPDF error: *Interlacing not supported: /usr/local/apache/htdocs/tmp/MS_CTzMgP.png This is because phpmapscript is producing an interlaced png, and FPDF can't handle it. But I have the following in my .map file: OUTPUTFORMAT NAME png MIMETYPE "image/png" DRIVER "GD/PNG" FORMATOPTION "INTERLACE=OFF" END # # Start of reference map # REFERENCE IMAGE "/usr/local/apache/htdocs/sig_curaduria/graphics/reference7.png" EXTENT 983737 984000 1007778 1026000 SIZE 183 320 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END And it works perfect for the legend, the scale and the map itself. The file /usr/local/apache/htdocs/sig_curaduria/graphics/reference7.png is not interlaced. My phpmapscript configuration: MapServer Version MapServer version 4.0-beta1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE PHP MapScript Version ($Revision: 1.168 $ $Date: 2003/06/04 17:57:12 $) Any hints? Thanks a lot, -- Vladimir Ilich Guzmán R. ------------------------ http://www.maintask.com From Tom.Kralidis@CCRS.NRCan.gc.ca Tue Oct 7 02:06:54 2003 From: Tom.Kralidis@CCRS.NRCan.gc.ca (Tom.Kralidis@CCRS.NRCan.gc.ca) Date: Mon, 6 Oct 2003 21:06:54 -0400 Subject: [Mapserver-users] WMS Cllient for ArcView 3.X Message-ID: <7CDD7B94357FD5119E800002A537C46E04FA2683@s5-ccr-r1.ccrs.nrcan.gc.ca> Paul, Thanks for this info, for what is surely a valuable resource!! One comment / suggestion: can the *.ogc files could support the OGC Web Map Context Documents specification? This would be a perfect fit for this extension to save/reuse WMS targets. ..Tom ================================= Tom Kralidis Systems Scientist Canada Centre for Remote Sensing Tel: (613) 947-1828 http://www.cgdi.ca/ ================================= > -----Original Message----- > From: Paul Ramsey [mailto:pramsey@refractions.net] > Sent: Monday, October 06, 2003 8:26 PM > To: mapserver-users > Subject: [Mapserver-users] WMS Cllient for ArcView 3.X > > > > Hello, Mapserver'ers, > > Refractions is happy to announce the beta release of our WMS Client > software for ArcView 3.X. We will be maintaining a > free-to-download WMS > Client for ArcView 3.X and this is the initial release. We would be > happy to hear back from you with bug reports, strange servers, etc. > Please give it a try! > > The beta download page is at http://www.refractions.net/wms > > If the market appears to warrant it, we will be releasing a "Pro" > version, with support for some more fiddly advanced features, like > ArcIMS, printing, overlays, reprojection, etc. > > Paul > > -- > __ > / > | Paul Ramsey > | Refractions Research > | Email: pramsey@refractions.net > | Phone: (250) 885-0632 > \_ > > > _______________________________________________ > 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 Oct 7 04:47:04 2003 From: steve.lime@dnr.state.mn.us (Steve Lime) Date: Mon, 06 Oct 2003 22:47:04 -0500 Subject: [Mapserver-users] Interlaced Reference Message-ID: I may be wrong, but older versions of MapServer respected the settings of the input reference map. If it was a transparent image then so was the output image, same for interlacing. By chance is the input reference image interlaced? Steve >>> Vladimir Guzmán 10/06/03 7:34 PM >>> Hello again. I'm trying to use fpdf to get a "printable" map with phpmapscript. Everything is fine, except that when I try to generate the Reference Map, I get the following error: *FPDF error: *Interlacing not supported: /usr/local/apache/htdocs/tmp/MS_CTzMgP.png This is because phpmapscript is producing an interlaced png, and FPDF can't handle it. But I have the following in my .map file: OUTPUTFORMAT NAME png MIMETYPE "image/png" DRIVER "GD/PNG" FORMATOPTION "INTERLACE=OFF" END # # Start of reference map # REFERENCE IMAGE "/usr/local/apache/htdocs/sig_curaduria/graphics/reference7.png" EXTENT 983737 984000 1007778 1026000 SIZE 183 320 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END And it works perfect for the legend, the scale and the map itself. The file /usr/local/apache/htdocs/sig_curaduria/graphics/reference7.png is not interlaced. My phpmapscript configuration: MapServer Version MapServer version 4.0-beta1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE PHP MapScript Version ($Revision: 1.168 $ $Date: 2003/06/04 17:57:12 $) Any hints? Thanks a lot, -- Vladimir Ilich Guzmán R. ------------------------ http://www.maintask.com _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From e_talis@yahoo.com Tue Oct 7 07:04:18 2003 From: e_talis@yahoo.com (Edward Waithaka) Date: Mon, 6 Oct 2003 23:04:18 -0700 (PDT) Subject: [Mapserver-users] Shape-Files For Kenya In-Reply-To: <20031006170003.14337.73842.Mailman@lists.gis.umn.edu> Message-ID: <20031007060418.10137.qmail@web40909.mail.yahoo.com> --0-1745502829-1065506658=:9188 Content-Type: text/plain; charset=us-ascii Hi All? I am new to Mapserver and i have just setup MS4.0 on a RH Linux 7.2. Now, does anyone know where I can download shapefiles for the Country Kenya? Thank you, Edward. --------------------------------- Do you Yahoo!? The New Yahoo! Shopping - with improved product search --0-1745502829-1065506658=:9188 Content-Type: text/html; charset=us-ascii

Hi All?

I am new to Mapserver and i have just setup MS4.0 on a RH Linux 7.2. Now, does anyone know where I can download shapefiles for the Country Kenya?

Thank you,
Edward.


Do you Yahoo!?
The New Yahoo! Shopping - with improved product search --0-1745502829-1065506658=:9188-- From Sebastian Albrecht Tue Oct 7 07:55:09 2003 From: Sebastian Albrecht (Sebastian Albrecht) Date: Tue, 7 Oct 2003 08:55:09 +0200 Subject: [Mapserver-users] Shape-Files For Kenya In-Reply-To: <20031007060418.10137.qmail@web40909.mail.yahoo.com> References: <20031007060418.10137.qmail@web40909.mail.yahoo.com> Message-ID: <111602414.20031007085509@justapi.de> Hi, > I am new to Mapserver and i have just setup MS4.0 on a RH Linux 7.2. > Now, does anyone know where I can download shapefiles for the > Country Kenya? http://www.freegis.org would be a good start. There are several websites where you can download free map data. There is a free map service of ESRI, too, at http://www.esri.com/data/download/index.html. You have to select your wanted area and it will be generated for you. Regards, Sebastian From frank.koormann@intevation.de Tue Oct 7 08:44:58 2003 From: frank.koormann@intevation.de (Frank Koormann) Date: Tue, 7 Oct 2003 09:44:58 +0200 Subject: [Mapserver-users] How to convert a CSV data to shapefile In-Reply-To: <025101c38922$b476e510$9105a8c0@mariolaptop> References: <025101c38922$b476e510$9105a8c0@mariolaptop> Message-ID: <20031007074458.GA19293@intevation.de> Hi, * Mario Servin [031002 23:24]: > Hi, > I have aset of points in lat, lon format that i want to represent a > plygon in a shapefile. Is there any free tool I can use for that? > Regards, > Mario a bit late, but gen2shp http://intevation.de/~jan/gen2shp/gen2shp.html might be another option. Shouldn't be too hard to extract the columns with coordinates from your files to fulfill the input requirements. Regards, Frank -- Frank Koormann Professional Service around Free Software (http://intevation.net/) FreeGIS Project (http://freegis.org/) From maskellp@ntlworld.com Tue Oct 7 09:38:15 2003 From: maskellp@ntlworld.com (maskellp@ntlworld.com) Date: Tue, 7 Oct 2003 8:38:15 +0000 Subject: [Mapserver-users] Getting RASTERs to work with MapServer 4 Message-ID: <20031007083815.GRLH2197.mta05-svc.ntlworld.com@[10.137.100.72]> Hi, I am new to MapServer and have got the demo working with vector tab files, I am now trying to get RASTER to work, I've tried using a OGR and a tab file and a data connection to the tif file, neither worked. If someone has a working example or links to examples that would be great. Thanks in advance. Phil Maskell ----------------------------------------- Email provided by http://www.ntlhome.com/ From maskellp@ntlworld.com Tue Oct 7 09:46:34 2003 From: maskellp@ntlworld.com (maskellp@ntlworld.com) Date: Tue, 7 Oct 2003 8:46:34 +0000 Subject: [Mapserver-users] Getting Java to work with MapServer 4 Message-ID: <20031007084634.HKOT2197.mta05-svc.ntlworld.com@[10.137.100.72]> Hi, I have a couple of questions, has anyone got a Java Servlet to communicate with MapServer 4? If so do they mind sharing how? My next question is does anyone have or know where I can get a compiled windows binary with Java MapScript support as I'm a Java developer struggling to get my head round Visual C++. Thanks in advance. Phil Maskell ----------------------------------------- Email provided by http://www.ntlhome.com/ From mukta@darya.nio.org Tue Oct 7 15:10:13 2003 From: mukta@darya.nio.org (Mukta Telang) Date: Tue, 07 Oct 2003 14:10:13 +0000 Subject: [Mapserver-users] Alternatives for Image maps Message-ID: <3F82C945.9F93F6A1@darya.nio.org> Hi, I want to display various points on a map where the data was collected. Clicking on any of the points should display data from postgres database. One way would be to create an Image map. Is there any feature of mapserver which could be used instead of using an Image map? Thanks in advance, Mukta From Sebastian Albrecht Tue Oct 7 11:38:42 2003 From: Sebastian Albrecht (Sebastian Albrecht) Date: Tue, 7 Oct 2003 12:38:42 +0200 Subject: [Mapserver-users] Include mapserver in PHP web application Message-ID: <2215016322.20031007123842@justapi.de> Hello, first of all many thanks for your hundreds of mailings in the archiv. Those helped me a lot installing a mapserver and developing a web interface for my project. At the moment I use the mapserver as a cgi-bin. Required features for my project are a PHP user/login management and displaying dynamic data (lat/lon points with other data attributes). I know this all, especially the last part can be done using mapscript. I already used it to create my dynamic point shapefile for mapserver. But I don't like to invent the wheel once again and develop a whole mapserver application which fits for my layers in PHP/Mapscript, although the .map-file/cgi-bin solution works great for now. I do only have a few weeks experience in mapserver and therefor I would like to ask you how you would include the mapserver in PHP? Or are there already solutions which parse map-files so you don't have to describe every single layer in your PHP Mapscript? Regards, Sebastian Albrecht From mservin@tecnoaccion.com.ar Tue Oct 7 13:47:00 2003 From: mservin@tecnoaccion.com.ar (Mario Servin) Date: Tue, 7 Oct 2003 09:47:00 -0300 Subject: [Mapserver-users] How to convert a CSV data to shapefile References: <025101c38922$b476e510$9105a8c0@mariolaptop> <20031007074458.GA19293@intevation.de> Message-ID: <004b01c38cd1$19c796b0$9105a8c0@mariolaptop> Frank, In spanish they say "Nunca es tarde cuando la dicha es buena!" which can be translated as "It's not too late if the news are so good!". Spanish speaking suscriber in this list could confirm it. gen2shp is exactly what I was looking for!!. I have shapelib 1.2.9 so I hope I could use it without any problem. In any case can I refer to you for additional help?. Thanks, Mario ----- Original Message ----- From: "Frank Koormann" To: "Mario Servin" Cc: Sent: Tuesday, October 07, 2003 4:44 AM Subject: Re: [Mapserver-users] How to convert a CSV data to shapefile > Hi, > > * Mario Servin [031002 23:24]: > > Hi, > > I have aset of points in lat, lon format that i want to represent a > > plygon in a shapefile. Is there any free tool I can use for that? > > Regards, > > Mario > > a bit late, but gen2shp > http://intevation.de/~jan/gen2shp/gen2shp.html > might be another option. > Shouldn't be too hard to extract the columns with coordinates from your > files to fulfill the input requirements. > > Regards, > > Frank > > -- > Frank Koormann > Professional Service around Free Software (http://intevation.net/) > FreeGIS Project (http://freegis.org/) > From denlalonde@yahoo.com Tue Oct 7 14:11:52 2003 From: denlalonde@yahoo.com (Denis Lalonde) Date: Tue, 7 Oct 2003 06:11:52 -0700 (PDT) Subject: [Mapserver-users] Are layer labels visible? Message-ID: <20031007131152.64704.qmail@web41603.mail.yahoo.com> --0-1295119827-1065532312=:62480 Content-Type: text/plain; charset=us-ascii Hello All, Is there any way of telling what labels of a particular layer are currently being displayed in a map? And/Or, can the currently displayed labels be saved into a new layer? Thanks Denis --------------------------------- Do you Yahoo!? The New Yahoo! Shopping - with improved product search --0-1295119827-1065532312=:62480 Content-Type: text/html; charset=us-ascii
Hello All,
 
Is there any way of telling what labels of a particular layer are currently being displayed in a map?  And/Or, can the currently displayed labels be saved into a new layer?
 
Thanks
Denis


Do you Yahoo!?
The New Yahoo! Shopping - with improved product search --0-1295119827-1065532312=:62480-- From lfilak@medinaco.org Tue Oct 7 14:44:19 2003 From: lfilak@medinaco.org (Lowell Filak) Date: Tue, 07 Oct 2003 09:44:19 -0400 Subject: [Mapserver-users] Are layer labels visible? Message-ID: <20031007134415.2C45F1A6599@mail.medinaco.org> Right off-hand the answer is yes - using MapScript - as you can programatically loop through the label cache and perform both operations. There is a sample of looping through the label cache here: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlLabelCacheMemberObj However there may be another way to do it which doesn't require MapScript that I don't know of. Lowell The following message was sent by Denis Lalonde on Tue, 7 Oct 2003 06:11:52 -0700 (PDT). > Hello All, > > Is there any way of telling what labels of a particular layer are currently being displayed in a map? And/Or, can the currently displayed labels be saved into a new layer? > > Thanks > Denis > > > --------------------------------- > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search From CJPRYOR@sandia.gov Tue Oct 7 15:19:46 2003 From: CJPRYOR@sandia.gov (Pryor, Clayton J) Date: Tue, 7 Oct 2003 08:19:46 -0600 Subject: [Mapserver-users] Joining geospatial data to attribute data as basis for layer defi nition Message-ID: Hi all, I am building a prototype application in MapServer to evaluate whether we should migrate from ArcIMS or not. One of the requirements of this application is to render colors of geospatial data based on attributes in a table outside of the geospatial data. In ArcIMS I defined these types of layers as a SPATIALQUERY in the layer definition (as shown below). In my review of the MapServer documentation and discussions, I found a post in 2001 that addresses the subject. In part, it reads as follows: "No joins are supported for classification purposes. You can only use directly attached attributes. This was done for performance reasons." I have a few questions. 1) Is this statement still true? 2) What exactly are "directly attached attributes?" I did a search for this term and could find nothing. I am assuming this means that the attributes must be part of the geospatial data table. 3) How would you go about defining the equivalent to the above ArcIMS layer definition in a MapServer application? In this question, I am concerned about the join. I have seen examples of how to reference a singe geospatial table and how to set up color classifications based on attribute values. 4) One thing I haven't explored is the possibility of handling the join at the database level and then referencing the resulting join in the map definition. Will that work? Thanks in advance for any help. Sincerely, Clay ------------------------------------------------------------ Clayton J. Pryor phone (505) 845-3557 Sandia National Laboratories Critical Infrastructure Surety fax (505) 844-9641 PO Box 5800 MS 0451 Albuquerque NM 87185-0451 email cjpryor@sandia.gov ------------------------------------------------------------ From e_talis@yahoo.com Tue Oct 7 15:57:49 2003 From: e_talis@yahoo.com (Edward Waithaka) Date: Tue, 7 Oct 2003 07:57:49 -0700 (PDT) Subject: [Mapserver-users] Determining Shapefile EXTENT Message-ID: <20031007145749.75312.qmail@web40907.mail.yahoo.com> --0-1827529903-1065538669=:74591 Content-Type: text/plain; charset=us-ascii From: MS Newbie I have managed to download some shapefiles, when I try to load a mapfile, I get a blank image. For one, I don't know which EXTENT to use and again I don't have ArcView (can't afford) to determine the shapefile's Extent. Is there another way of determining the extent of a shapefile without ArcView? The shapefiles I have downloaded come with Word Docs describing the data a little bit e.g ---------------------------------------------------------------------------------- Additional attribute information Shape: Internally generated by Arc/infoArea Internally generated by Arc/info Perimeter: Internally generated by Arc/info Town_name: Name of the town represented by the points Unique identification for each town class. The towns have been classified into 6 categories namely: (1) Municipality (2) Township/Town (3) Trading center (4) Market center (6) Lodges/camps (11) City Town type: Class in which the particular towns fall Layer Characteristics Projection: Geographic Theme: Administrative Layer type: Arc View shape Feature type: Point ---------------------------------------------------------------------------------------------------- Can anyone translate this for me? (atleast 'point' I can use e.g TYPE POINT in the mapfile ...) Thank you, Edward. --------------------------------- Do you Yahoo!? The New Yahoo! Shopping - with improved product search --0-1827529903-1065538669=:74591 Content-Type: text/html; charset=us-ascii
From: MS Newbie
I have managed to download some shapefiles, when I try to load a mapfile, I get a blank image. For one, I don't know which EXTENT to use and again I don't have ArcView (can't afford) to determine the shapefile's Extent. Is there another way of determining the extent of a shapefile without ArcView? The shapefiles I have downloaded come with Word Docs describing the data a little bit e.g
 
----------------------------------------------------------------------------------
 Additional attribute information
Shape:              Internally generated by Arc/infoArea         
      Internally generated by Arc/info
Perimeter:         Internally generated by Arc/info

Town_name:     Name of the town represented by the points         Unique identification for each town class. The towns have been classified into 6 categories namely:

 
(1)
Municipality (2) Township/Town (3) Trading center (4) Market center
(6) Lodges/camps (11) City
Town type:       Class in which the particular towns fall

Layer Characteristics
Projection:        Geographic

Theme:             Administrative

Layer type:       Arc View shape

Feature type:    Point
----------------------------------------------------------------------------------------------------
Can anyone translate this for me? (atleast 'point' I can use e.g TYPE POINT in the mapfile ...)
Thank you,
Edward.



Do you Yahoo!?
The New Yahoo! Shopping - with improved product search --0-1827529903-1065538669=:74591-- From sgillies@frii.com Tue Oct 7 16:03:09 2003 From: sgillies@frii.com (Sean Gillies) Date: Tue, 7 Oct 2003 09:03:09 -0600 Subject: [Mapserver-users] Joining geospatial data to attribute data as basis for layer defi nition In-Reply-To: Message-ID: <5D59B09A-F8D7-11D7-B863-000393B98B56@frii.com> On Tuesday, October 7, 2003, at 08:19 AM, Pryor, Clayton J wrote: > > Hi all, > > I am building a prototype application in MapServer to evaluate whether > we > should migrate from ArcIMS or not. One of the requirements of this > application is to render colors of geospatial data based on attributes > in a > table outside of the geospatial data. In ArcIMS I defined these types > of > layers as a SPATIALQUERY in the layer definition (as shown below). > ... > In my review of the MapServer documentation and discussions, I found a > post > in 2001 that addresses the subject. In part, it reads as follows: > > "No joins are supported for classification purposes. You can only use > directly attached attributes. This was done for performance reasons." > > I have a few questions. > > 1) Is this statement still true? > > 2) What exactly are "directly attached attributes?" I did a search > for > this term and could find nothing. I am assuming this means that the > attributes must be part of the geospatial data table. > > 3) How would you go about defining the equivalent to the above ArcIMS > layer > definition in a MapServer application? In this question, I am > concerned > about the join. I have seen examples of how to reference a singe > geospatial > table and how to set up color classifications based on attribute > values. > > 4) One thing I haven't explored is the possibility of handling the > join at > the database level and then referencing the resulting join in the map > definition. Will that work? > > Thanks in advance for any help. > > Sincerely, > > Clay > Clay, Go in the direction that you mention in your #4. Even if MapServer was enhanced to allow joins for classification, it's highly doubtful that the implementation would ever match the performance of a join in your RDBMS. cheers, Sean -- Sean Gillies sgillies at frii dot com http://www.frii.com/~sgillies From TMitchell@lignum.com Tue Oct 7 16:26:16 2003 From: TMitchell@lignum.com (Tyler Mitchell) Date: Tue, 7 Oct 2003 08:26:16 -0700 Subject: [Mapserver-users] Determining Shapefile EXTENT In-Reply-To: <20031007145749.75312.qmail@web40907.mail.yahoo.com> Message-ID: Edward, I would highly recommend the "ogr" utility called "ogrinfo". You can read more about it here: http://gdal.velocet.ca/projects/opengis/ and see examples here: http://gdal.velocet.ca/projects/opengis/ogrhtml/ogr_utilities.html You can basically run ogrinfo against a shapefile and get all the details you want (and more). It runs like: >ogrinfo c:\path\to\folder\ which will give you a list of the "layers" in the folder. This will include all the shape files you have. Then you can request info for a particular layer/shape file like this: >ogrinfo c:\path\to\folder\ i.e ogrinfo c:\tmp\shapefiles cities And you will get a listing of all the fields, their values and the geometries for each shape. Note, using " | more " or " | head " to the end of the command (if available) will save you from viewing all the details which you may not want :) If you are interested in just getting extents, then I use "grep" (I can provide pointers to that utility if needed) to only give me the extent information. > ogrinfo c:\tmp\shapefiles cities | grep Extent If you need more info, let us know. OGR and it's mother project GDAL are an integral part of a robust Mapserver installation and used by many on this list. Tyler mapserver-users-admin@lists.gis.umn.edu wrote on 10/07/2003 07:57:49 AM: > From: MS Newbie > I have managed to download some shapefiles, when I try to load a > mapfile, I get a blank image. For one, I don't know which EXTENT to > use and again I don't have ArcView (can't afford) to determine the > shapefile's Extent. Is there another way of determining the extent > of a shapefile without ArcView? The shapefiles I have downloaded > come with Word Docs describing the data a little bit e.g > > ---------------------------------------------------------------------------------- > Additional attribute information > Shape: Internally generated by Arc/infoArea > Internally generated by Arc/info > Perimeter: Internally generated by Arc/info > Town_name: Name of the town represented by the points > Unique identification for each town class. The towns have been > classified into 6 categories namely: > (1) Municipality (2) Township/Town (3) Trading center (4) Market center > (6) Lodges/camps (11) City > Town type: Class in which the particular towns fall > Layer Characteristics > Projection: Geographic > Theme: Administrative > Layer type: Arc View shape > Feature type: Point > ---------------------------------------------------------------------------------------------------- > Can anyone translate this for me? (atleast 'point' I can use e.g > TYPE POINT in the mapfile ...) > Thank you, > Edward. > > [image removed] > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search From bfraser@geoanalytic.com Wed Oct 8 06:38:11 2003 From: bfraser@geoanalytic.com (Brent Fraser) Date: Tue, 7 Oct 2003 23:38:11 -0600 Subject: [Mapserver-users] WMS Cllient for ArcView 3.X References: <3F820828.5000207@refractions.net> Message-ID: <18bf01c38d5e$5cb20a40$020002c0@SHARK> Paul, The following is likely a Mapserver issue, but Mapserver 4.0 spits out GetMap> image/png image/jpeg text/html image/tiff when asked for REQUEST=GETCAPABILITIES The Refractions WMS Client generates an error of Error Creating Image: Unknown filetype returned by server: text/html I'm not clear why Mapserver says it can supply a map in html format. I'll have to look into that. In any case, I would expect the client to be tolerant of formats it can't use, especially since I stated in the Client .ogc file to use only jpeg: image/jpeg Brent Fraser bfraser@geoanalytic.com ----- Original Message ----- From: "Paul Ramsey" To: "mapserver-users" Sent: Monday, October 06, 2003 6:26 PM Subject: [Mapserver-users] WMS Cllient for ArcView 3.X > > Hello, Mapserver'ers, > > Refractions is happy to announce the beta release of our WMS Client > software for ArcView 3.X. We will be maintaining a free-to-download WMS > Client for ArcView 3.X and this is the initial release. We would be > happy to hear back from you with bug reports, strange servers, etc. > Please give it a try! > > The beta download page is at http://www.refractions.net/wms > > If the market appears to warrant it, we will be releasing a "Pro" > version, with support for some more fiddly advanced features, like > ArcIMS, printing, overlays, reprojection, etc. > > Paul > > -- > __ > / > | Paul Ramsey > | Refractions Research > | Email: pramsey@refractions.net > | Phone: (250) 885-0632 > \_ > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From pramsey@refractions.net Tue Oct 7 19:02:04 2003 From: pramsey@refractions.net (Paul Ramsey) Date: Tue, 07 Oct 2003 11:02:04 -0700 Subject: [Mapserver-users] WMS Cllient for ArcView 3.X In-Reply-To: <18bf01c38d5e$5cb20a40$020002c0@SHARK> References: <3F820828.5000207@refractions.net> <18bf01c38d5e$5cb20a40$020002c0@SHARK> Message-ID: <3F82FF9C.4060209@refractions.net> Brent, Shane will tell you where teh magic log file lives. The magic log file contains the URL of the latest request. So when you get an error, you can plug the URL from the magic log file into your favourite browser and see what it returns. It seems likely that Mapserver is returning an error in HTML format, not a map, and that is throwing the client for a loop. Paul Brent Fraser wrote: > Paul, > > The following is likely a Mapserver issue, but Mapserver 4.0 spits out > > GetMap> > image/png > image/jpeg > text/html > image/tiff > > when asked for REQUEST=GETCAPABILITIES > > The Refractions WMS Client generates an error of > Error Creating Image: Unknown filetype returned by server: text/html > > I'm not clear why Mapserver says it can supply a map in html format. I'll > have to look into that. In any case, I would expect the client to be > tolerant of formats it can't use, especially since I stated in the Client > .ogc file to use only jpeg: > > > image/jpeg > > > Brent Fraser > bfraser@geoanalytic.com > > ----- Original Message ----- > From: "Paul Ramsey" > To: "mapserver-users" > Sent: Monday, October 06, 2003 6:26 PM > Subject: [Mapserver-users] WMS Cllient for ArcView 3.X > > > >>Hello, Mapserver'ers, >> >>Refractions is happy to announce the beta release of our WMS Client >>software for ArcView 3.X. We will be maintaining a free-to-download WMS >>Client for ArcView 3.X and this is the initial release. We would be >>happy to hear back from you with bug reports, strange servers, etc. >>Please give it a try! >> >>The beta download page is at http://www.refractions.net/wms >> >>If the market appears to warrant it, we will be releasing a "Pro" >>version, with support for some more fiddly advanced features, like >>ArcIMS, printing, overlays, reprojection, etc. >> >>Paul >> >>-- >> __ >> / >> | Paul Ramsey >> | Refractions Research >> | Email: pramsey@refractions.net >> | Phone: (250) 885-0632 >> \_ >> >> >>_______________________________________________ >>Mapserver-users mailing list >>Mapserver-users@lists.gis.umn.edu >>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > -- __ / | Paul Ramsey | Refractions Research | Email: pramsey@refractions.net | Phone: (250) 885-0632 \_ From snelson@refractions.net Tue Oct 7 19:07:15 2003 From: snelson@refractions.net (snelson@refractions.net) Date: Tue, 7 Oct 2003 11:07:15 -0700 Subject: [Mapserver-users] WMS Cllient for ArcView 3.X In-Reply-To: <3F82FF9C.4060209@refractions.net> References: <3F820828.5000207@refractions.net> <18bf01c38d5e$5cb20a40$020002c0@SHARK> <3F82FF9C.4060209@refractions.net> Message-ID: <1065550035.3f8300d36fc35@hydra> The log file is currenty at c:\log.txt. Shane Quoting Paul Ramsey : > Brent, > Shane will tell you where teh magic log file lives. The magic log file > contains the URL of the latest request. So when you get an error, you > can plug the URL from the magic log file into your favourite browser and > see what it returns. It seems likely that Mapserver is returning an > error in HTML format, not a map, and that is throwing the client for a loop. > Paul > > Brent Fraser wrote: > > > Paul, > > > > The following is likely a Mapserver issue, but Mapserver 4.0 spits out > > > > GetMap> > > image/png > > image/jpeg > > text/html > > image/tiff > > > > when asked for REQUEST=GETCAPABILITIES > > > > The Refractions WMS Client generates an error of > > Error Creating Image: Unknown filetype returned by server: text/html > > > > I'm not clear why Mapserver says it can supply a map in html format. I'll > > have to look into that. In any case, I would expect the client to be > > tolerant of formats it can't use, especially since I stated in the Client > > .ogc file to use only jpeg: > > > > > > image/jpeg > > > > > > Brent Fraser > > bfraser@geoanalytic.com > > > > ----- Original Message ----- > > From: "Paul Ramsey" > > To: "mapserver-users" > > Sent: Monday, October 06, 2003 6:26 PM > > Subject: [Mapserver-users] WMS Cllient for ArcView 3.X > > > > > > > >>Hello, Mapserver'ers, > >> > >>Refractions is happy to announce the beta release of our WMS Client > >>software for ArcView 3.X. We will be maintaining a free-to-download WMS > >>Client for ArcView 3.X and this is the initial release. We would be > >>happy to hear back from you with bug reports, strange servers, etc. > >>Please give it a try! > >> > >>The beta download page is at http://www.refractions.net/wms > >> > >>If the market appears to warrant it, we will be releasing a "Pro" > >>version, with support for some more fiddly advanced features, like > >>ArcIMS, printing, overlays, reprojection, etc. > >> > >>Paul > >> > >>-- > >> __ > >> / > >> | Paul Ramsey > >> | Refractions Research > >> | Email: pramsey@refractions.net > >> | Phone: (250) 885-0632 > >> \_ > >> > >> > >>_______________________________________________ > >>Mapserver-users mailing list > >>Mapserver-users@lists.gis.umn.edu > >>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > > > > > -- > __ > / > | Paul Ramsey > | Refractions Research > | Email: pramsey@refractions.net > | Phone: (250) 885-0632 > \_ > > From bfraser@geoanalytic.com Wed Oct 8 07:17:56 2003 From: bfraser@geoanalytic.com (Brent Fraser) Date: Wed, 8 Oct 2003 00:17:56 -0600 Subject: [Mapserver-users] WMS Cllient for ArcView 3.X References: <3F820828.5000207@refractions.net> <18bf01c38d5e$5cb20a40$020002c0@SHARK> <3F82FF9C.4060209@refractions.net> Message-ID: <18dc01c38d63$e9dd9ec0$020002c0@SHARK> Paul, You are right. I already log all of my site's wms requests for debugging purposes and sure enough, an error was being generated by Mapserver, totally unrelated to the WMS server (or the Client). The error was related to TILEIDEX and missing data raster data that GDAL was trying to find. When crafting the ogc file I had guessed at the extents and was trying to map more data than I had. (Now I need to see why Mapserver/GDAL did not IGNORE_MISSING_DATA like it was supposed to.) Thanks! Brent ----- Original Message ----- From: "Paul Ramsey" To: "Brent Fraser" Cc: "mapserver-users" ; "Shane Nelson" Sent: Tuesday, October 07, 2003 12:02 PM Subject: Re: [Mapserver-users] WMS Cllient for ArcView 3.X > Brent, > Shane will tell you where teh magic log file lives. The magic log file > contains the URL of the latest request. So when you get an error, you > can plug the URL from the magic log file into your favourite browser and > see what it returns. It seems likely that Mapserver is returning an > error in HTML format, not a map, and that is throwing the client for a loop. > Paul > > Brent Fraser wrote: > > > Paul, > > > > The following is likely a Mapserver issue, but Mapserver 4.0 spits out > > > > GetMap> > > image/png > > image/jpeg > > text/html > > image/tiff > > > > when asked for REQUEST=GETCAPABILITIES > > > > The Refractions WMS Client generates an error of > > Error Creating Image: Unknown filetype returned by server: text/html > > > > I'm not clear why Mapserver says it can supply a map in html format. I'll > > have to look into that. In any case, I would expect the client to be > > tolerant of formats it can't use, especially since I stated in the Client > > .ogc file to use only jpeg: > > > > > > image/jpeg > > > > > > Brent Fraser > > bfraser@geoanalytic.com > > > > ----- Original Message ----- > > From: "Paul Ramsey" > > To: "mapserver-users" > > Sent: Monday, October 06, 2003 6:26 PM > > Subject: [Mapserver-users] WMS Cllient for ArcView 3.X > > > > > > > >>Hello, Mapserver'ers, > >> > >>Refractions is happy to announce the beta release of our WMS Client > >>software for ArcView 3.X. We will be maintaining a free-to-download WMS > >>Client for ArcView 3.X and this is the initial release. We would be > >>happy to hear back from you with bug reports, strange servers, etc. > >>Please give it a try! > >> > >>The beta download page is at http://www.refractions.net/wms > >> > >>If the market appears to warrant it, we will be releasing a "Pro" > >>version, with support for some more fiddly advanced features, like > >>ArcIMS, printing, overlays, reprojection, etc. > >> > >>Paul > >> > >>-- > >> __ > >> / > >> | Paul Ramsey > >> | Refractions Research > >> | Email: pramsey@refractions.net > >> | Phone: (250) 885-0632 > >> \_ > >> > >> > >>_______________________________________________ > >>Mapserver-users mailing list > >>Mapserver-users@lists.gis.umn.edu > >>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > > > > > -- > __ > / > | Paul Ramsey > | Refractions Research > | Email: pramsey@refractions.net > | Phone: (250) 885-0632 > \_ > From Tom.Kralidis@CCRS.NRCan.gc.ca Tue Oct 7 19:31:27 2003 From: Tom.Kralidis@CCRS.NRCan.gc.ca (Tom.Kralidis@CCRS.NRCan.gc.ca) Date: Tue, 7 Oct 2003 14:31:27 -0400 Subject: [Mapserver-users] WMS Cllient for ArcView 3.X Message-ID: <7CDD7B94357FD5119E800002A537C46E04FA2698@s5-ccr-r1.ccrs.nrcan.gc.ca> Paul, What is the implied order of layers within your .ogc files if more than one layer exists? Is the first layer element the bottom most layer in the stack, or the top most? I see .ogc files with both. Thanks ..Tom > -----Original Message----- > From: Paul Ramsey [mailto:pramsey@refractions.net] > Sent: Monday, October 06, 2003 8:26 PM > To: mapserver-users > Subject: [Mapserver-users] WMS Cllient for ArcView 3.X > > > > Hello, Mapserver'ers, > > Refractions is happy to announce the beta release of our WMS Client > software for ArcView 3.X. We will be maintaining a > free-to-download WMS > Client for ArcView 3.X and this is the initial release. We would be > happy to hear back from you with bug reports, strange servers, etc. > Please give it a try! > > The beta download page is at http://www.refractions.net/wms > > If the market appears to warrant it, we will be releasing a "Pro" > version, with support for some more fiddly advanced features, like > ArcIMS, printing, overlays, reprojection, etc. > > Paul > > -- > __ > / > | Paul Ramsey > | Refractions Research > | Email: pramsey@refractions.net > | Phone: (250) 885-0632 > \_ > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From snelson@refractions.net Tue Oct 7 20:01:41 2003 From: snelson@refractions.net (snelson@refractions.net) Date: Tue, 7 Oct 2003 12:01:41 -0700 Subject: [Mapserver-users] WMS Cllient for ArcView 3.X In-Reply-To: <7CDD7B94357FD5119E800002A537C46E04FA2698@s5-ccr-r1.ccrs.nrcan.gc.ca> References: <7CDD7B94357FD5119E800002A537C46E04FA2698@s5-ccr-r1.ccrs.nrcan.gc.ca> Message-ID: <1065553301.3f830d95be055@hydra> The layers are appended to the query in the same order they appear in the OGC file For example, if the OGC file contains this: Bathymetry Roads Rivers Then the query sent to the WMS server will look like this: http://www.geographynetwork.ca/servlet/com.esri.wms.Esrimap? ... &Layers=Bathymetry,Roads,Rivers&Styles=&Request=getmap ... I'm not certain what order the map server will choose to render the layers. Shane Quoting Tom.Kralidis@CCRS.NRCan.gc.ca: > > Paul, > > What is the implied order of layers within your .ogc files if more than one > layer exists? > > Is the first layer element the bottom most layer in the stack, or the top > most? I see .ogc files with both. > > Thanks > > ..Tom > > From bartvde@xs4all.nl Tue Oct 7 20:11:41 2003 From: bartvde@xs4all.nl (Bart van den Eijnden) Date: Tue, 07 Oct 2003 21:11:41 +0200 Subject: [Mapserver-users] WMS Cllient for ArcView 3.X In-Reply-To: <3F820828.5000207@refractions.net> References: <3F820828.5000207@refractions.net> Message-ID: Hi Paul, great software! I have a few questions about it: * which WMS versions are supported? * are there plans to support GetFeatureInfo (i-tool)? * do you have any idea what will be the release dates for the free and the pro version and what would approximately be the cost of the pro version? I guess this won't be released as open source in the future :-) ? Best regards, Bart On Mon, 06 Oct 2003 17:26:16 -0700, Paul Ramsey wrote: > > Hello, Mapserver'ers, > > Refractions is happy to announce the beta release of our WMS Client > software for ArcView 3.X. We will be maintaining a free-to-download WMS > Client for ArcView 3.X and this is the initial release. We would be happy > to hear back from you with bug reports, strange servers, etc. > Please give it a try! > > The beta download page is at http://www.refractions.net/wms > > If the market appears to warrant it, we will be releasing a "Pro" > version, with support for some more fiddly advanced features, like > ArcIMS, printing, overlays, reprojection, etc. > > Paul > -- From pramsey@refractions.net Tue Oct 7 20:38:54 2003 From: pramsey@refractions.net (Paul Ramsey) Date: Tue, 07 Oct 2003 12:38:54 -0700 Subject: [Mapserver-users] WMS Cllient for ArcView 3.X In-Reply-To: <18dc01c38d63$e9dd9ec0$020002c0@SHARK> References: <3F820828.5000207@refractions.net> <18bf01c38d5e$5cb20a40$020002c0@SHARK> <3F82FF9C.4060209@refractions.net> <18dc01c38d63$e9dd9ec0$020002c0@SHARK> Message-ID: <3F83164E.3060809@refractions.net> This brings up an unrelated but important issue: Mapserver when running in WMS mode should always report its errors in the proper OpenGIS XML format. I wonder why we got an error in text/html? Shane, are we always requesting our errors in XML, or are we just taking whatever the server provides us? Paul Brent Fraser wrote: > Paul, > > You are right. I already log all of my site's wms requests for debugging > purposes and sure enough, an error was being generated by Mapserver, totally > unrelated to the WMS server (or the Client). > > The error was related to TILEIDEX and missing data raster data that GDAL was > trying to find. When crafting the ogc file I had guessed at the extents and > was trying to map more data than I had. (Now I need to see why > Mapserver/GDAL did not IGNORE_MISSING_DATA like it was supposed to.) > > Thanks! > Brent > > > ----- Original Message ----- > From: "Paul Ramsey" > To: "Brent Fraser" > Cc: "mapserver-users" ; "Shane Nelson" > > Sent: Tuesday, October 07, 2003 12:02 PM > Subject: Re: [Mapserver-users] WMS Cllient for ArcView 3.X > > > >>Brent, >>Shane will tell you where teh magic log file lives. The magic log file >>contains the URL of the latest request. So when you get an error, you >>can plug the URL from the magic log file into your favourite browser and >>see what it returns. It seems likely that Mapserver is returning an >>error in HTML format, not a map, and that is throwing the client for a > > loop. > >>Paul >> >>Brent Fraser wrote: >> >> >>>Paul, >>> >>> The following is likely a Mapserver issue, but Mapserver 4.0 spits out >>> >>>GetMap> >>> image/png >>> image/jpeg >>> text/html >>> image/tiff >>> >>>when asked for REQUEST=GETCAPABILITIES >>> >>>The Refractions WMS Client generates an error of >>> Error Creating Image: Unknown filetype returned by server: text/html >>> >>>I'm not clear why Mapserver says it can supply a map in html format. > > I'll > >>>have to look into that. In any case, I would expect the client to be >>>tolerant of formats it can't use, especially since I stated in the > > Client > >>>.ogc file to use only jpeg: >>> >>> >>> image/jpeg >>> >>> >>>Brent Fraser >>>bfraser@geoanalytic.com >>> >>>----- Original Message ----- >>>From: "Paul Ramsey" >>>To: "mapserver-users" >>>Sent: Monday, October 06, 2003 6:26 PM >>>Subject: [Mapserver-users] WMS Cllient for ArcView 3.X >>> >>> >>> >>> >>>>Hello, Mapserver'ers, >>>> >>>>Refractions is happy to announce the beta release of our WMS Client >>>>software for ArcView 3.X. We will be maintaining a free-to-download WMS >>>>Client for ArcView 3.X and this is the initial release. We would be >>>>happy to hear back from you with bug reports, strange servers, etc. >>>>Please give it a try! >>>> >>>>The beta download page is at http://www.refractions.net/wms >>>> >>>>If the market appears to warrant it, we will be releasing a "Pro" >>>>version, with support for some more fiddly advanced features, like >>>>ArcIMS, printing, overlays, reprojection, etc. >>>> >>>>Paul >>>> >>>>-- >>>> __ >>>> / >>>> | Paul Ramsey >>>> | Refractions Research >>>> | Email: pramsey@refractions.net >>>> | Phone: (250) 885-0632 >>>> \_ >>>> >>>> >>>>_______________________________________________ >>>>Mapserver-users mailing list >>>>Mapserver-users@lists.gis.umn.edu >>>>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users >>> >>> >> >>-- >> __ >> / >> | Paul Ramsey >> | Refractions Research >> | Email: pramsey@refractions.net >> | Phone: (250) 885-0632 >> \_ >> > > -- __ / | Paul Ramsey | Refractions Research | Email: pramsey@refractions.net | Phone: (250) 885-0632 \_ From snelson@refractions.net Tue Oct 7 20:45:53 2003 From: snelson@refractions.net (snelson@refractions.net) Date: Tue, 7 Oct 2003 12:45:53 -0700 Subject: [Mapserver-users] WMS Client for ArcView 3.X In-Reply-To: <3F83164E.3060809@refractions.net> References: <3F820828.5000207@refractions.net> <18bf01c38d5e$5cb20a40$020002c0@SHARK> <3F82FF9C.4060209@refractions.net> <18dc01c38d63$e9dd9ec0$020002c0@SHARK> <3F83164E.3060809@refractions.net> Message-ID: <1065555953.3f8317f183a48@hydra> Errors are always requested like this: Exceptions=application/vnd.ogc.se_xml. The client will parse "application/vnd.ogc.se_xml" and "text/xml". To display text/html I would either have to open a web browser to display the error, or display the HTML source in a message box. Shane Quoting Paul Ramsey : > This brings up an unrelated but important issue: > Mapserver when running in WMS mode should always report its errors in > the proper OpenGIS XML format. I wonder why we got an error in > text/html? Shane, are we always requesting our errors in XML, or are we > just taking whatever the server provides us? > > Paul > > Brent Fraser wrote: > > > Paul, > > > > You are right. I already log all of my site's wms requests for debugging > > purposes and sure enough, an error was being generated by Mapserver, > totally > > unrelated to the WMS server (or the Client). > > > > The error was related to TILEIDEX and missing data raster data that GDAL > was > > trying to find. When crafting the ogc file I had guessed at the extents > and > > was trying to map more data than I had. (Now I need to see why > > Mapserver/GDAL did not IGNORE_MISSING_DATA like it was supposed to.) > > > > Thanks! > > Brent > > > > > > ----- Original Message ----- > > From: "Paul Ramsey" > > To: "Brent Fraser" > > Cc: "mapserver-users" ; "Shane Nelson" > > > > Sent: Tuesday, October 07, 2003 12:02 PM > > Subject: Re: [Mapserver-users] WMS Cllient for ArcView 3.X > > > > > > > >>Brent, > >>Shane will tell you where teh magic log file lives. The magic log file > >>contains the URL of the latest request. So when you get an error, you > >>can plug the URL from the magic log file into your favourite browser and > >>see what it returns. It seems likely that Mapserver is returning an > >>error in HTML format, not a map, and that is throwing the client for a > > > > loop. > > > >>Paul > >> > >>Brent Fraser wrote: > >> > >> > >>>Paul, > >>> > >>> The following is likely a Mapserver issue, but Mapserver 4.0 spits out > >>> > >>>GetMap> > >>> image/png > >>> image/jpeg > >>> text/html > >>> image/tiff > >>> > >>>when asked for REQUEST=GETCAPABILITIES > >>> > >>>The Refractions WMS Client generates an error of > >>> Error Creating Image: Unknown filetype returned by server: text/html > >>> > >>>I'm not clear why Mapserver says it can supply a map in html format. > > > > I'll > > > >>>have to look into that. In any case, I would expect the client to be > >>>tolerant of formats it can't use, especially since I stated in the > > > > Client > > > >>>.ogc file to use only jpeg: > >>> > >>> > >>> image/jpeg > >>> > >>> > >>>Brent Fraser > >>>bfraser@geoanalytic.com > >>> > >>>----- Original Message ----- > >>>From: "Paul Ramsey" > >>>To: "mapserver-users" > >>>Sent: Monday, October 06, 2003 6:26 PM > >>>Subject: [Mapserver-users] WMS Cllient for ArcView 3.X > >>> > >>> > >>> > >>> > >>>>Hello, Mapserver'ers, > >>>> > >>>>Refractions is happy to announce the beta release of our WMS Client > >>>>software for ArcView 3.X. We will be maintaining a free-to-download WMS > >>>>Client for ArcView 3.X and this is the initial release. We would be > >>>>happy to hear back from you with bug reports, strange servers, etc. > >>>>Please give it a try! > >>>> > >>>>The beta download page is at http://www.refractions.net/wms > >>>> > >>>>If the market appears to warrant it, we will be releasing a "Pro" > >>>>version, with support for some more fiddly advanced features, like > >>>>ArcIMS, printing, overlays, reprojection, etc. > >>>> > >>>>Paul > >>>> > >>>>-- > >>>> __ > >>>> / > >>>> | Paul Ramsey > >>>> | Refractions Research > >>>> | Email: pramsey@refractions.net > >>>> | Phone: (250) 885-0632 > >>>> \_ > >>>> > >>>> > >>>>_______________________________________________ > >>>>Mapserver-users mailing list > >>>>Mapserver-users@lists.gis.umn.edu > >>>>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > >>> > >>> > >> > >>-- > >> __ > >> / > >> | Paul Ramsey > >> | Refractions Research > >> | Email: pramsey@refractions.net > >> | Phone: (250) 885-0632 > >> \_ > >> > > > > > > > -- > __ > / > | Paul Ramsey > | Refractions Research > | Email: pramsey@refractions.net > | Phone: (250) 885-0632 > \_ > > From pramsey@refractions.net Tue Oct 7 21:04:17 2003 From: pramsey@refractions.net (Paul Ramsey) Date: Tue, 07 Oct 2003 13:04:17 -0700 Subject: [Mapserver-users] WMS Cllient for ArcView 3.X In-Reply-To: References: <3F820828.5000207@refractions.net> Message-ID: <3F831C41.8040106@refractions.net> Bart van den Eijnden wrote: > Hi Paul, > > great software! Hi Bart, Thanks! > I have a few questions about it: > > * which WMS versions are supported? We are trying to support them all. In terms of version strings, we support 1.0, 1.1.0, 1.1.1. > * are there plans to support GetFeatureInfo (i-tool)? Yes. Don't know whether that is a Pro or regular feature. Probably regular. Will be interesting to see how good (and standard) the GML query response support is for various servers :/ > * do you have any idea what will be the release dates for the free and > the pro version and what would approximately be the cost of the pro > version? We would like to do final release of the standard version in a couple weeks. That should give us some time to kill bugs (come on beta testers!) and add on whatever other functionality makes sense. We have not decided on cost for the Pro version (overlays, transparency, config tool, printing support, ArcIMS support, etc etc). We are trying to figure out the approximate market size and demand. Given the cost conciousness of the ArcView user population, it might be a challenge just to make back development costs. In general though my answer would be "somewhere in 3 figures". (Anyone with software budget who can quantify for me what they think such a thing is "worth", I would appreciate a private email. The irony of the extension market place is that ESRI sells theirs for $3000CA and everyone else is lucky to get $300CA :) > I guess this won't be released as open source in the future :-) ? Well, the future is a big place, but not in the immediate future. Paul -- __ / | Paul Ramsey | Refractions Research | Email: pramsey@refractions.net | Phone: (250) 885-0632 \_ From sgillies@frii.com Wed Oct 8 02:03:46 2003 From: sgillies@frii.com (Sean Gillies) Date: Tue, 7 Oct 2003 19:03:46 -0600 Subject: [Mapserver-users] Getting attributes of tiled shapefile data Message-ID: <45077766-F92B-11D7-B863-000393B98B56@frii.com> I'm using a layer with tiled shapefile data in a MapScript app. When using the query* methods I get set of results and each result has tileindex and shapeindex attributes so that I can get get the appropriate shape from the shapefile. However, how about the shape attributes? With untiled data in one shapefile, I'd just get the appropriate record from the single dbf file using dbflib (Python) or XBase (Perl). But now that the attributes are spread across N dbf files, I'm at a loss on which dbf file and which record given the pair of tileindex and shapeindex. Perhaps it's possible to access the result.tileindex (or tileindex-1) record of the layer's tileindex dbf file to find the appropriate shapefile and then get the result.shapeindex record from that shapefile's dbf? I'd be grateful to hear about a less convoluted way! cheers, Sean -- Sean Gillies sgillies at frii dot com http://www.frii.com/~sgillies From sgillies@frii.com Wed Oct 8 03:09:30 2003 From: sgillies@frii.com (Sean Gillies) Date: Tue, 7 Oct 2003 20:09:30 -0600 Subject: [Mapserver-users] Getting attributes of tiled shapefile data In-Reply-To: <3F8332A0.27119.FAD8D2D@localhost> Message-ID: <73F6C0D9-F934-11D7-B863-000393B98B56@frii.com> Steve, Thanks for the tip! There's also a 'values' attribute for the SWIGged shapeObj, but it's not as useful since it returns a SWIG pointer rather than a hash. You did point me in the right direction. Best I could come up with uses Python's list comprehensions. res = layerobj.getResult(j) shp = layerobj.getShape(res.tileindex, res.shapeindex) items = [layerobj.getItem(i) for i in range(layerobj.numitems)] values = [s.getValue(i) for i in range(layerobj.numitems)] cfcc = values[items.index('CFCC')] Not as nice as PHP ... yet one more thing to catch up with. thanks again, Sean On Tuesday, October 7, 2003, at 07:39 PM, Stephen Woodbridge wrote: > Sean, > > In PHP mapscript, I do it like this: > > $res = $layer->getResult($j); > $shp = $layer->getShape($res->tileindex, $res->shapeindex); > $cfcc = $shp->values['CFCC']; > > where CFCC is the field name. > > -Steve W. > > On 7 Oct 2003 at 19:03, Sean Gillies wrote: > >> I'm using a layer with tiled shapefile data in a MapScript app. When >> using the query* methods I get set of results and each result has >> tileindex and shapeindex attributes so that I can get get the >> appropriate shape from the shapefile. >> >> However, how about the shape attributes? With untiled data in one >> shapefile, I'd just get the appropriate record from the single dbf >> file using dbflib (Python) or XBase (Perl). But now that the >> attributes are spread across N dbf files, I'm at a loss on which dbf >> file and which record given the pair of tileindex and shapeindex. >> >> Perhaps it's possible to access the result.tileindex (or tileindex-1) >> record of the layer's tileindex dbf file to find the appropriate >> shapefile and then get the result.shapeindex record from that >> shapefile's dbf? I'd be grateful to hear about a less convoluted way! >> >> cheers, >> Sean >> >> -- >> Sean Gillies >> sgillies at frii dot com >> http://www.frii.com/~sgillies >> >> _______________________________________________ >> Mapserver-users mailing list >> Mapserver-users@lists.gis.umn.edu >> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users >> > > From mukta@darya.nio.org Wed Oct 8 11:05:30 2003 From: mukta@darya.nio.org (Mukta Telang) Date: Wed, 08 Oct 2003 10:05:30 +0000 Subject: [Mapserver-users] tiff with world files? Message-ID: <3F83E16A.FF16EF11@darya.nio.org> Hi, I have got an Image in postcript format which I can convert to tiff format. But what is a world file? How to write one? Thanks, Mukta From siki@bme-geod.agt.bme.hu Wed Oct 8 10:21:27 2003 From: siki@bme-geod.agt.bme.hu (Siki Zoltan) Date: Wed, 8 Oct 2003 08:21:27 -0100 (GMT+1) Subject: [Mapserver-users] tiff with world files? In-Reply-To: <3F83E16A.FF16EF11@darya.nio.org> Message-ID: Hi, On Wed, 8 Oct 2003, Mukta Telang wrote: > I have got an Image in postcript format which I can convert to tiff > format. > But what is a world file? How to write one? The world file gives the georeference to the image. It is a text file with 6 numbers 1st row: pixel size in x (east) direction 2nd row: 0 3rd row: 0 4th row: -pixel size in y (north) direction 5th row: x co-ordinate for upper left corner 6th row: y co-ordinate for upper left corner 2nd and 3rd row depend on the rotation, but few sotfware can handle it. Here is a sample world file. Use .wld or tfw extension to the file name. the image and world file must be in the same directory and must have the same name (e.g. raster.tif raster.wld). 0.3395 0 0 -0.3395 650375 238050 Cheers, -- Zoltan Siki From adams@terrestris.de Wed Oct 8 07:25:44 2003 From: adams@terrestris.de (Till Adams) Date: Wed, 08 Oct 2003 08:25:44 +0200 Subject: [Mapserver-users] writing world files References: <3F83E16A.FF16EF11@darya.nio.org> Message-ID: <3F83ADE8.2040900@terrestris.de> Dear Mukta, hello list, here is something like a worldfile using any ascii-editor: 4.0 0 0 -4.0 2516600.41 5674001.68 The value [4.0] is the amount of pixels per unit in x/y direction (-4.0 is downwards y-direction, therefore the negative value, 4 means that 4 pixels are one [unit], e.g. 1 meter). The two values between are correction parameters inx/y direction, in this case they are set to 0. The last two are the coordinates of the upper left corner. You may write a worldfile on your own like this: x-extent/x-pixelsize 0 0 y-extent/y-pixelsize x of upper left corner y of upper left corner Save this as .tfw in the same folder as your image is in. If you have no idea about the upper left corner, set the x and y to 0 and try something like this: 1 0 0 1 0 y-pixelsize and save it as described above. Then set your extent in the mapfile to MAPEXTENT 0 0 x-pixelsize y-pixelsize so you have your own local coordinate system. This should work for the moment. ;-) Till Mukta Telang schrieb: > Hi, > I have got an Image in postcript format which I can convert to tiff > format. > But what is a world file? How to write one? > Thanks, > Mukta > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > -- ***** Besuchen Sie uns auf der acqua alta ***** ***** vom 24.-27. November in München ***** ----- Dipl. Geogr. Till Adams terrestris, Paulsen&Adams GbR Siemensstr. 8 * 53121 Bonn Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 info@terrestris.de * www.terrestris.de From MSchepel@gis.nl Wed Oct 8 10:15:02 2003 From: MSchepel@gis.nl (Menno Schepel) Date: Wed, 08 Oct 2003 11:15:02 +0200 Subject: [Mapserver-users] Windows NT vs. Windows 2000 / Windows XP Message-ID: Hello list, Some days ago I posted questions about the connection of MapServer v4.0 with an Oracle 9i database. I received some usefull tips, thanks for that. After some experiments something else has surfaced however. If I am testing my application using an Windows NT4 (SP6) server with IIS4 installed everything runs smoothly. I can connect to the database and I am receiving a nice image of the layers within the web page. However when I use the same application on a server with either Windows 2000 Server or Windows XP Pro installed in combination with IIS5 I am getting the famous: "CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:" The temp files are written and look fine, but they do not show up in the web page. I am using the same database connection, map file, template, etc. The connection seems to work since the temp files are generated. Anyone that can share their insights about this matter or that has some experience with this?? Thanks, Menno From gayathri@ou.edu Wed Oct 8 14:42:18 2003 From: gayathri@ou.edu (Swaminathan, Gayathri) Date: Wed, 8 Oct 2003 08:42:18 -0500 Subject: [Mapserver-users] Windows NT vs. Windows 2000 / Windows XP Message-ID: Hi: There may be some missing dlls you forgot to register... The way to test which dlls are missing is to enter "mapserv -v" in your command prompt., it will Come up with a list of dlls that it requires., copy the same to "c:\windows\system32" and register... HTH, Gayathri -----Original Message----- From: Menno Schepel [mailto:MSchepel@gis.nl] Sent: Wednesday, October 08, 2003 4:15 AM To: mapserver-users@lists.gis.umn.edu Subject: [Mapserver-users] Windows NT vs. Windows 2000 / Windows XP Hello list, Some days ago I posted questions about the connection of MapServer v4.0 with an Oracle 9i database. I received some usefull tips, thanks for that. After some experiments something else has surfaced however. If I am testing my application using an Windows NT4 (SP6) server with IIS4 installed everything runs smoothly. I can connect to the database and I am receiving a nice image of the layers within the web page. However when I use the same application on a server with either Windows 2000 Server or Windows XP Pro installed in combination with IIS5 I am getting the famous: "CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:" The temp files are written and look fine, but they do not show up in the web page. I am using the same database connection, map file, template, etc. The connection seems to work since the temp files are generated. Anyone that can share their insights about this matter or that has some experience with this?? Thanks, Menno _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From MSchepel@gis.nl Wed Oct 8 15:17:48 2003 From: MSchepel@gis.nl (Menno Schepel) Date: Wed, 08 Oct 2003 16:17:48 +0200 Subject: [Mapserver-users] Windows NT vs. Windows 2000 / Windows XP In-Reply-To: References: Message-ID: Gayathri, Thank you for your suggestion. I checked this already, but everything seems to be OK. Since I can run mapserv QUERY_STRING=map=... from the command prompt with good output I guess there is no problem with the dll files. I can also run shp2img without problems. I am investigating right now if it has something to do with ports that are blocked (firewall & proxy). The server in question is a server that is accessible for the public and has almost all of its ports blocked. I will let you know how things are going, regards, Menno. -----Original Message----- From: "Swaminathan, Gayathri" To: "'MSchepel@gis.nl'" , mapserver- users@lists.gis.umn.edu Date: Wed, 8 Oct 2003 08:42:18 -0500 Subject: RE: [Mapserver-users] Windows NT vs. Windows 2000 / Windows XP > Hi: > > There may be some missing dlls you forgot to register... > > The way to test which dlls are missing is to enter "mapserv -v" in your > command prompt., it will > Come up with a list of dlls that it requires., copy the same to > "c:\windows\system32" and register... > > HTH, > Gayathri > > -----Original Message----- > From: Menno Schepel [mailto:MSchepel@gis.nl] > Sent: Wednesday, October 08, 2003 4:15 AM > To: mapserver-users@lists.gis.umn.edu > Subject: [Mapserver-users] Windows NT vs. Windows 2000 / Windows XP > > > Hello list, > > Some days ago I posted questions about the connection of MapServer v4.0 > with an Oracle 9i database. I received some usefull tips, thanks for > that. After some experiments something else has surfaced however. If I > am > testing my application using an Windows NT4 (SP6) server with IIS4 > installed everything runs smoothly. I can connect to the database and I > am receiving a nice image of the layers within the web page. However > when > I use the same application on a server with either Windows 2000 Server > or > Windows XP Pro installed in combination with IIS5 I am getting the > famous: > > "CGI Error > The specified CGI application misbehaved by not returning a complete > set > of HTTP headers. The headers it did return are:" > > The temp files are written and look fine, but they do not show up in > the > web page. > I am using the same database connection, map file, template, etc. The > connection seems to work since the temp files are generated. > > Anyone that can share their insights about this matter or that has some > experience with this?? > > Thanks, > > Menno > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From msoto002@eresmas.com Wed Oct 8 15:26:36 2003 From: msoto002@eresmas.com (m soto .) Date: Wed, 08 Oct 2003 14:26:36 GMT Subject: [Mapserver-users] PanNorth, PanSouth, PanEast, PanWest Message-ID: <22800f2257d2.2257d222800f@ma12.eresmas.com>

I would like to include in my MapServer client the Pan with straight directions (PanNorth, PanSouth, PanEast, PanWest).

Can anyone help me on how to do this?

Thank you very much. Maria.

From morissette@dmsolutions.ca Wed Oct 8 15:47:43 2003 From: morissette@dmsolutions.ca (Daniel Morissette) Date: Wed, 08 Oct 2003 10:47:43 -0400 Subject: [Mapserver-users] WMS Cllient for ArcView 3.X In-Reply-To: <1065553301.3f830d95be055@hydra> References: <7CDD7B94357FD5119E800002A537C46E04FA2698@s5-ccr-r1.ccrs.nrcan.gc.ca> <1065553301.3f830d95be055@hydra> Message-ID: <3F84238F.1010201@dmsolutions.ca> snelson@refractions.net wrote: > The layers are appended to the query in the same order they appear in the OGC > file For example, if the OGC file contains this: > > Bathymetry > Roads > Rivers > > > Then the query sent to the WMS server will look like this: > > http://www.geographynetwork.ca/servlet/com.esri.wms.Esrimap? ... > &Layers=Bathymetry,Roads,Rivers&Styles=&Request=getmap ... > > I'm not certain what order the map server will choose to render the layers. > The spec says that WMS servers should render the layers in the order in which they are listed in the LAYERS parameter. Older versions of MapServer's WMS interface used to ignore the order of the LAYERS param and used the default mapfile order instead. This is fixed now and version 4.0 follows the order specified by the client (this may have been fixed in 3.6 as well I don't remember). -- ------------------------------------------------------------ Daniel Morissette morissette@dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From Lars-goran.Edholm@sandviken.se Wed Oct 8 16:00:08 2003 From: Lars-goran.Edholm@sandviken.se (Lars-goran Edholm) Date: Wed, 08 Oct 2003 17:00:08 +0200 Subject: [Mapserver-users] Mapclient - create new window Message-ID: Is it possible to create a new window in runtime? Say you have a menu: m2 = new menu ( "zoomin.jpg",setZoomAll, "zoomout.jpg",setZoomOutAll, "pan.jpg",setPanAll, "zoomall.jpg",submitZoomAll, "Add a new window", newwin ) and a function: function newwin(){ w1 = new win(10,200,600,450,"Karta 1") w1.setServerURL(MSURL) w1.setVar("map",MSMAP) var wins = new Array(w1) w1.setExecOnResize(submitwin) w1.setVar("mapsize",w1.contentWidth + " " + w1.contentHeight) w1.setVar("mapext","1551957 6714299 1552357 6714699") w1.setVar("map_fastvisa_class_expression","([FNR]=210176493)") w1.submit() } This will not 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@sandviken.se From morissette@dmsolutions.ca Wed Oct 8 16:02:00 2003 From: morissette@dmsolutions.ca (Daniel Morissette) Date: Wed, 08 Oct 2003 11:02:00 -0400 Subject: [Mapserver-users] WMS Cllient for ArcView 3.X In-Reply-To: <18bf01c38d5e$5cb20a40$020002c0@SHARK> References: <3F820828.5000207@refractions.net> <18bf01c38d5e$5cb20a40$020002c0@SHARK> Message-ID: <3F8426E8.2080602@dmsolutions.ca> Brent Fraser wrote: > > The following is likely a Mapserver issue, but Mapserver 4.0 spits out > > GetMap> > image/png > image/jpeg > text/html > image/tiff > > when asked for REQUEST=GETCAPABILITIES > This text/html is likely coming from one of MapServer's new output formats, but it didn't work in my quick tests so I filed a bug to investigate this whole format issue: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=455 -- ------------------------------------------------------------ Daniel Morissette morissette@dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From morissette@dmsolutions.ca Wed Oct 8 16:11:36 2003 From: morissette@dmsolutions.ca (Daniel Morissette) Date: Wed, 08 Oct 2003 11:11:36 -0400 Subject: [Mapserver-users] WMS Cllient for ArcView 3.X In-Reply-To: <3F83164E.3060809@refractions.net> References: <3F820828.5000207@refractions.net> <18bf01c38d5e$5cb20a40$020002c0@SHARK> <3F82FF9C.4060209@refractions.net> <18dc01c38d63$e9dd9ec0$020002c0@SHARK> <3F83164E.3060809@refractions.net> Message-ID: <3F842928.7020008@dmsolutions.ca> Paul Ramsey wrote: > This brings up an unrelated but important issue: > Mapserver when running in WMS mode should always report its errors in > the proper OpenGIS XML format. I wonder why we got an error in > text/html? Shane, are we always requesting our errors in XML, or are we > just taking whatever the server provides us? > MapServer should return the exceptions in the requested format unless the error happens *before* it enters the WMS dispatch code. The only type of exception that could happen before that point would be mapfile parsing errors, but this is really a non-issue since your mapfile should be valid before you deploy a WMS server instance. All other exceptions should be returned in the requested format, either XML or INIMAGE, if you have a reproduceable test case where the exception format is not respected by MapServer 4.x then please file a bug with all the details. Thanks Daniel -- ------------------------------------------------------------ Daniel Morissette morissette@dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From eduardo@consultoria.eti.br Wed Oct 8 16:12:51 2003 From: eduardo@consultoria.eti.br (Eduardo Patto Kanegae) Date: Wed, 8 Oct 2003 12:12:51 -0300 Subject: [Mapserver-users] why ROSA is not working? Message-ID: <20031008151251.27396.qmail@hm47.locaweb.com.br> I am not understanding why my application www.consultoria.eti.br/clickbrasil/ ( please select the down radiobutton and press "INICIAR" button to start the application in ROSA mode) is not working ( map appears as a blank space). I though that this was a ROSA bug, but looking at a DM's application at http://www.mapsherpa.com/make_a_map/mam.phtml it's working fine in my Internet Explorer 6 with Microsoft JAVA Virtual Machine. thanks Eduardo Patto Kanegae eduardo@consultoria.eti.br http://www.consultoria.eti.br - BRASIL *************************************** ***Fim da Mensagem / End of Message *** *************************************** From denlalonde@yahoo.com Wed Oct 8 16:27:49 2003 From: denlalonde@yahoo.com (Denis Lalonde) Date: Wed, 8 Oct 2003 08:27:49 -0700 (PDT) Subject: [Mapserver-users] PanNorth, PanSouth, PanEast, PanWest In-Reply-To: <22800f2257d2.2257d222800f@ma12.eresmas.com> Message-ID: <20031008152749.12668.qmail@web41605.mail.yahoo.com> --0-828525050-1065626869=:12049 Content-Type: text/plain; charset=us-ascii hey, not sure if this is the best way to do it...but this is how I managed to get it to work... } else if ($_REQUEST["task"]=="pan") { If ($_REQUEST["dir"]=="n") { //NORTH $CenterX=$MapOBJ->width/2; $CenterY=$MapOBJ->height/2*0.75; } else if ($_REQUEST["dir"]=="s") { //SOUTH $CenterX=$MapOBJ->width/2; $CenterY=$MapOBJ->height/2*1.25; } else if ($_REQUEST["dir"]=="e") { //EAST $CenterX=$MapOBJ->width/2*1.25; $CenterY=$MapOBJ->height/2; } else if ($_REQUEST["dir"]=="o") { //WEST $CenterX=$MapOBJ->width/2*0.75; $CenterY=$MapOBJ->height/2 ; } else if ($_REQUEST["dir"]=="sw") { //SOUTH WEST $CenterX=$MapOBJ->width/2*0.75; $CenterY=$MapOBJ->height/2*1.25; } else if ($_REQUEST["dir"]=="se") { //SOUTH EAST $CenterX=$MapOBJ->width/2*1.25; $CenterY=$MapOBJ->height/2*1.25; } else if ($_REQUEST["dir"]=="ne") { //NORTH EAST $CenterX=$MapOBJ->width/2*1.25; $CenterY=$MapOBJ->height/2*0.75 ; } else if ($_REQUEST["dir"]=="no") { //NORTH WEST $CenterX=$MapOBJ->width/2*0.75; $CenterY=$MapOBJ->height/2*0.75 ; } $pan_extent = ms_newrectObj(); $pan_extent->setextent($extent_to_set[0],$extent_to_set[1],$extent_to_set[2],$extent_to_set[3]); //OLD EXTENTS $pan_point = ms_newpointObj(); $pan_point->setXY($CenterX,$CenterY); $MapOBJ->zoompoint(1,$pan_point,$MapOBJ->width,$MapOBJ->height,$pan_extent); good luck, Denis "m soto ." wrote: I would like to include in my MapServer client the Pan with straight directions (PanNorth, PanSouth, PanEast, PanWest). Can anyone help me on how to do this? Thank you very much. Maria. _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users --------------------------------- Do you Yahoo!? The New Yahoo! Shopping - with improved product search --0-828525050-1065626869=:12049 Content-Type: text/html; charset=us-ascii
hey, not sure if this is the best way to do it...but this is how I managed to get it to work...
                       } else if ($_REQUEST["task"]=="pan") {
                                If ($_REQUEST["dir"]=="n") {
                                        //NORTH
                                        $CenterX=$MapOBJ->width/2;
                                        $CenterY=$MapOBJ->height/2*0.75;
                                }  else if ($_REQUEST["dir"]=="s") {
                                        //SOUTH
                                        $CenterX=$MapOBJ->width/2;
                                        $CenterY=$MapOBJ->height/2*1.25;
                                }  else if ($_REQUEST["dir"]=="e") {
                                        //EAST
                                        $CenterX=$MapOBJ->width/2*1.25;
                                        $CenterY=$MapOBJ->height/2;
                                }  else if ($_REQUEST["dir"]=="o") {
                                        //WEST
                                        $CenterX=$MapOBJ->width/2*0.75;
                                        $CenterY=$MapOBJ->height/2 ;
                                }  else if ($_REQUEST["dir"]=="sw") {
                                        //SOUTH WEST
                                        $CenterX=$MapOBJ->width/2*0.75;
                                        $CenterY=$MapOBJ->height/2*1.25;
                                }  else if ($_REQUEST["dir"]=="se") {
                                        //SOUTH EAST
                                        $CenterX=$MapOBJ->width/2*1.25;
                                        $CenterY=$MapOBJ->height/2*1.25;
                                }  else if ($_REQUEST["dir"]=="ne") {
                                        //NORTH EAST
                                        $CenterX=$MapOBJ->width/2*1.25;
                                        $CenterY=$MapOBJ->height/2*0.75 ;
                                 }  else if ($_REQUEST["dir"]=="no") {
                                        //NORTH WEST
                                        $CenterX=$MapOBJ->width/2*0.75;
                                        $CenterY=$MapOBJ->height/2*0.75 ;
                                }
 
                                $pan_extent = ms_newrectObj();
                                $pan_extent->setextent($extent_to_set[0],$extent_to_set[1],$extent_to_set[2],$extent_to_set[3]); //OLD EXTENTS
                                $pan_point = ms_newpointObj();
                                $pan_point->setXY($CenterX,$CenterY);
                                $MapOBJ->zoompoint(1,$pan_point,$MapOBJ->width,$MapOBJ->height,$pan_extent);
 
good luck,
Denis

"m soto ." <msoto002@eresmas.com> wrote:

I would like to include in my MapServer client the Pan with straight directions (PanNorth, PanSouth, PanEast, PanWest).

Can anyone help me on how to do this?

Thank you very much. Maria.

_______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users


Do you Yahoo!?
The New Yahoo! Shopping - with improved product search --0-828525050-1065626869=:12049-- From mamwake@yahoo.com Wed Oct 8 16:30:37 2003 From: mamwake@yahoo.com (ronny) Date: Wed, 8 Oct 2003 08:30:37 -0700 (PDT) Subject: [Mapserver-users] no image(s) Message-ID: <20031008153037.24665.qmail@web40302.mail.yahoo.com> --0-117431429-1065627037=:23992 Content-Type: text/plain; charset=us-ascii Content-Id: Content-Disposition: inline am trying to load map but am getting blank image map,,i sincerely don't know what am doing wrong..my map file is attached herein. redhat linux 8.0.. MS4.0. ===== ronny __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com --0-117431429-1065627037=:23992 Content-Type: application/octet-stream; name="test.map" Content-Transfer-Encoding: base64 Content-Description: test.map Content-Disposition: attachment; filename="test.map" TUFQCiAgRk9OVFNFVCAuLi9mb250cy9mb250cy5saXN0CiAgTkFNRSAnQVVU T19ST1RBVEUnCiAgU1RBVFVTIE9GRgogIEVYVEVOVCAwIDAgMjk5IDM5OSAj IGR1bW15CiAgU0laRSAzMDAgMzAwCQoKICBMQVlFUgogICAgTkFNRSB0ZXN0 CiAgICBUWVBFIExJTkUKICAgIFNUQVRVUyBERUZBVUxUCiAgICBEQVRBICIu Li9kYXRhL2xpbmVzIgogICAgTEFCRUxJVEVNICJhbm5vIiAgICAKICAgIFRS QU5TRk9STSBPRkYKICAgIENMQVNTCiAgICAgIENPTE9SIDI1NSAwIDAKICAg ICAgTEFCRUwKICAgICAgICBUWVBFIFRSVUVUWVBFCiAgICAgICAgQU5USUFM SUFTIFRSVUUKCUZPTlQgYXJpYWwKICAgICAgICBDT0xPUiAwIDAgMAoJT1VU TElORUNPTE9SIDIyMCAyMjAgMjIwCglTSVpFIDExCQoJQU5HTEUgQVVUTwoJ UE9TSVRJT04gVUMKCU9GRlNFVCAwIDIgICAgICAgIAoJYnVmZmVyIDIKICAg ICAgRU5ECQogICAgRU5ECiAgRU5ECgpFTkQK --0-117431429-1065627037=:23992-- From pramsey@refractions.net Wed Oct 8 16:50:58 2003 From: pramsey@refractions.net (Paul Ramsey) Date: Wed, 08 Oct 2003 08:50:58 -0700 Subject: [Mapserver-users] WMS Cllient for ArcView 3.X In-Reply-To: <3F842928.7020008@dmsolutions.ca> References: <3F820828.5000207@refractions.net> <18bf01c38d5e$5cb20a40$020002c0@SHARK> <3F82FF9C.4060209@refractions.net> <18dc01c38d63$e9dd9ec0$020002c0@SHARK> <3F83164E.3060809@refractions.net> <3F842928.7020008@dmsolutions.ca> Message-ID: <3F843262.6070207@refractions.net> The error reported turned out to be caused by the following: "The error was related to TILEIDEX and missing data raster data that GDAL was trying to find. When crafting the ogc file I had guessed at the extents and was trying to map more data than I had. (Now I need to see why Mapserver/GDAL did not IGNORE_MISSING_DATA like it was supposed to.)" I do not know where in the cycle that falls. Sounds like after mapfile parsing but before data (or during) eading. Paul Daniel Morissette wrote: > Paul Ramsey wrote: > >> This brings up an unrelated but important issue: >> Mapserver when running in WMS mode should always report its errors in >> the proper OpenGIS XML format. I wonder why we got an error in >> text/html? Shane, are we always requesting our errors in XML, or are >> we just taking whatever the server provides us? >> > > MapServer should return the exceptions in the requested format unless > the error happens *before* it enters the WMS dispatch code. The only > type of exception that could happen before that point would be mapfile > parsing errors, but this is really a non-issue since your mapfile should > be valid before you deploy a WMS server instance. > > All other exceptions should be returned in the requested format, either > XML or INIMAGE, if you have a reproduceable test case where the > exception format is not respected by MapServer 4.x then please file a > bug with all the details. > > Thanks > > Daniel -- __ / | Paul Ramsey | Refractions Research | Email: pramsey@refractions.net | Phone: (250) 885-0632 \_ From morissette@dmsolutions.ca Wed Oct 8 17:27:51 2003 From: morissette@dmsolutions.ca (Daniel Morissette) Date: Wed, 08 Oct 2003 12:27:51 -0400 Subject: [Mapserver-users] WMS Cllient for ArcView 3.X In-Reply-To: <3F843262.6070207@refractions.net> References: <3F820828.5000207@refractions.net> <18bf01c38d5e$5cb20a40$020002c0@SHARK> <3F82FF9C.4060209@refractions.net> <18dc01c38d63$e9dd9ec0$020002c0@SHARK> <3F83164E.3060809@refractions.net> <3F842928.7020008@dmsolutions.ca> <3F843262.6070207@refractions.net> Message-ID: <3F843B07.80007@dmsolutions.ca> Paul Ramsey wrote: > The error reported turned out to be caused by the following: > > "The error was related to TILEIDEX and missing data raster data that > GDAL was trying to find. When crafting the ogc file I had guessed at > the extents and was trying to map more data than I had. (Now I need to > see why Mapserver/GDAL did not IGNORE_MISSING_DATA like it was supposed > to.)" > > I do not know where in the cycle that falls. Sounds like after mapfile > parsing but before data (or during) eading. > This should have been caught since based on this description it seems like this is a map rendering error. However it may be a misinterpretation of the error message, what was the exact error message? Is this WMS server public? -- ------------------------------------------------------------ Daniel Morissette morissette@dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From map_surfer@yahoo.com Wed Oct 8 17:35:17 2003 From: map_surfer@yahoo.com (Map Surfers) Date: Wed, 8 Oct 2003 09:35:17 -0700 (PDT) Subject: [Mapserver-users] Select of a element and draw with MapScript In-Reply-To: <002d01c3a4d4$26d8a4a0$7d00a8c0@investigacion> Message-ID: <20031008163517.62087.qmail@web80701.mail.yahoo.com> Mr. Rojas Here is an example for mapserver 4.0. The parameters for querybyattribute are different for 3.6 and below (refer to PHP/Mapscript README). $name = $http_form_vars["name"];//set up user input variable $oMap = ms_newMapObj("d:\dondeEstaTuMapa\tuMapa.map");//set your map object $oLayer = $oMap->getLayerbyName("yourlayer"); if ($oLayer->queryByAttributes("Name", $name, MS_SINGLE) == MS_SUCCESS){ $image = $oMap->drawQuery(); $image_url=$image->saveWebImage(MS_GIF,1,1,0); } Hope this helps, Damian --- Wilman Rojas wrote: > Hi. > > I need select a element in the map. But whit a > attribute and de draw the > map with element select. > How realize this? > > > Wilman Rojas. > Jefe Investigación y Desarrollo. > Geoweb S.A > www.geoweb.com.co > > __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From Michael.Smith@erdc.usace.army.mil Wed Oct 8 17:33:11 2003 From: Michael.Smith@erdc.usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Wed, 8 Oct 2003 11:33:11 -0500 Subject: [Mapserver-users] WMS Cllient for ArcView 3.X Message-ID: <048FBD219330D211B47000A0C9B3BAFD03CD1AB7@crl02.crrel.usace.army.mil> This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C38DB9.DD0DEF50 Content-Type: text/plain On the next beta, can libcurl be compiled with ssl to contact wms servers on https? Mike Smith email: michael.smith@erdc.usace.army.mil RSGISC ERDC - CRREL Hanover, NH 03755 (603) 646-4765 -----Original Message----- From: Paul Ramsey [mailto:pramsey@refractions.net] Sent: Wednesday, October 08, 2003 11:51 AM To: Daniel Morissette Cc: mapserver-users Subject: Re: [Mapserver-users] WMS Cllient for ArcView 3.X The error reported turned out to be caused by the following: "The error was related to TILEIDEX and missing data raster data that GDAL was trying to find. When crafting the ogc file I had guessed at the extents and was trying to map more data than I had. (Now I need to see why Mapserver/GDAL did not IGNORE_MISSING_DATA like it was supposed to.)" I do not know where in the cycle that falls. Sounds like after mapfile parsing but before data (or during) eading. Paul Daniel Morissette wrote: > Paul Ramsey wrote: > >> This brings up an unrelated but important issue: >> Mapserver when running in WMS mode should always report its errors in >> the proper OpenGIS XML format. I wonder why we got an error in >> text/html? Shane, are we always requesting our errors in XML, or are >> we just taking whatever the server provides us? >> > > MapServer should return the exceptions in the requested format unless > the error happens *before* it enters the WMS dispatch code. The only > type of exception that could happen before that point would be mapfile > parsing errors, but this is really a non-issue since your mapfile should > be valid before you deploy a WMS server instance. > > All other exceptions should be returned in the requested format, either > XML or INIMAGE, if you have a reproduceable test case where the > exception format is not respected by MapServer 4.x then please file a > bug with all the details. > > Thanks > > Daniel -- __ / | Paul Ramsey | Refractions Research | Email: pramsey@refractions.net | Phone: (250) 885-0632 \_ _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users ------_=_NextPart_001_01C38DB9.DD0DEF50 Content-Type: text/html RE: [Mapserver-users] WMS Cllient for ArcView 3.X

On the next beta, can libcurl be compiled with ssl to contact wms servers on https?

Mike Smith
email: michael.smith@erdc.usace.army.mil
RSGISC
ERDC - CRREL
Hanover, NH  03755
(603) 646-4765



-----Original Message-----
From: Paul Ramsey [mailto:pramsey@refractions.net]
Sent: Wednesday, October 08, 2003 11:51 AM
To: Daniel Morissette
Cc: mapserver-users
Subject: Re: [Mapserver-users] WMS Cllient for ArcView 3.X


The error reported turned out to be caused by the following:

"The error was related to TILEIDEX and missing data raster data that
GDAL was trying to find.  When crafting the ogc file I had guessed at
the extents and was trying to map more data than I had. (Now I need to
see why Mapserver/GDAL did not IGNORE_MISSING_DATA like it was supposed
to.)"

I do not know where in the cycle that falls. Sounds like after mapfile
parsing but before data (or during) eading.

Paul

Daniel Morissette wrote:
> Paul Ramsey wrote:
>
>> This brings up an unrelated but important issue:
>> Mapserver when running in WMS mode should always report its errors in
>> the proper OpenGIS XML format. I wonder why we got an error in
>> text/html? Shane, are we always requesting our errors in XML, or are
>> we just taking whatever the server provides us?
>>
>
> MapServer should return the exceptions in the requested format unless
> the error happens *before* it enters the WMS dispatch code.  The only
> type of exception that could happen before that point would be mapfile
> parsing errors, but this is really a non-issue since your mapfile should
> be valid before you deploy a WMS server instance.
>
> All other exceptions should be returned in the requested format, either
> XML or INIMAGE, if you have a reproduceable test case where the
> exception format is not respected by MapServer 4.x then please file a
> bug with all the details.
>
> Thanks
>
> Daniel


--
       __
      /
      | Paul Ramsey
      | Refractions Research
      | Email: pramsey@refractions.net
      | Phone: (250) 885-0632
      \_

_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users

------_=_NextPart_001_01C38DB9.DD0DEF50-- From bfraser@geoanalytic.com Thu Oct 9 05:59:50 2003 From: bfraser@geoanalytic.com (Brent Fraser) Date: Wed, 8 Oct 2003 22:59:50 -0600 Subject: [Mapserver-users] WMS Cllient for ArcView 3.X References: <3F820828.5000207@refractions.net> <18bf01c38d5e$5cb20a40$020002c0@SHARK> <3F82FF9C.4060209@refractions.net> <18dc01c38d63$e9dd9ec0$020002c0@SHARK> <3F83164E.3060809@refractions.net> <3F842928.7020008@dmsolutions.ca> <3F843262.6070207@refractions.net> <3F843B07.80007@dmsolutions.ca> Message-ID: <01ab01c38e22$2b2b0de0$020002c0@SHARK> Daniel, The errors reported were AFTER the map file parsing. Some background: In fact Mapserver failed to create an image because the IMAGEPATH in the WEB object was not set to an existing directory. This does not generate a error during map file parsing. That's ok since I was using Mapserver as a WMS server, it doesn't need a temp dir for the images as it sends them as a data stream to the web server and on to the browser (or so I thought). However, msWMSGetMap attempts to do a msSaveImage, which does a msSaveImageGDAL (I had switched my outputformat from GD to the GDAL driver), which tries to write a temp file to IMAGEPATH. That failed, and displayed an error showing all the tiles it couldn't find in the tile index. So the rule is: Make sure IMAGEPATH is set to a valid directory if you are using GDAL drivers for output. I agree that the map file should be valid before site deployment, but anything we can do to make the pre-deployment step easier would be a very good thing. Some suggestions for Mapserver (and associated utilities): 1. Fix the XML error reporting. Internet Explorer complains that it's not valid XML (I then do a "view source" to see the text generated from Mapserver). 2. Report Mapfile errors as XML. We should be able to check if "Request=" is a CGI parameter. Or use some other non-mapfile mechanism to determine if the protocol is OGC. 3. Build a "lint"-like utility for map files to report errors, and other less serious issues. This has been requested a few times over the years. And a suggestion for WMS clients: Show the XML returned from the server (even when expecting an image) Thanks to all.. Brent ----- Original Message ----- From: "Daniel Morissette" To: "Paul Ramsey" Cc: "mapserver-users" Sent: Wednesday, October 08, 2003 10:27 AM Subject: Re: [Mapserver-users] WMS Cllient for ArcView 3.X > Paul Ramsey wrote: > > The error reported turned out to be caused by the following: > > > > "The error was related to TILEIDEX and missing data raster data that > > GDAL was trying to find. When crafting the ogc file I had guessed at > > the extents and was trying to map more data than I had. (Now I need to > > see why Mapserver/GDAL did not IGNORE_MISSING_DATA like it was supposed > > to.)" > > > > I do not know where in the cycle that falls. Sounds like after mapfile > > parsing but before data (or during) eading. > > > > This should have been caught since based on this description it seems > like this is a map rendering error. However it may be a > misinterpretation of the error message, what was the exact error > message? Is this WMS server public? > > -- > ------------------------------------------------------------ > Daniel Morissette morissette@dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From jhart@frw.uva.nl Wed Oct 8 18:03:16 2003 From: jhart@frw.uva.nl (Jan Hartmann) Date: Wed, 08 Oct 2003 19:03:16 +0200 Subject: [Mapserver-users] Mapclient - create new window In-Reply-To: References: Message-ID: <3F844354.4000801@frw.uva.nl> Lars-goran Edholm wrote: > Is it possible to create a new window in runtime? > Say you have a menu: > > m2 = new menu ( > "zoomin.jpg",setZoomAll, > "zoomout.jpg",setZoomOutAll, > "pan.jpg",setPanAll, > "zoomall.jpg",submitZoomAll, > "Add a new window", newwin > ) > > and a function: > > function newwin(){ > w1 = new win(10,200,600,450,"Karta 1") > w1.setServerURL(MSURL) > w1.setVar("map",MSMAP) > var wins = new Array(w1) > w1.setExecOnResize(submitwin) > w1.setVar("mapsize",w1.contentWidth + " " + w1.contentHeight) > w1.setVar("mapext","1551957 6714299 1552357 6714699") > w1.setVar("map_fastvisa_class_expression","([FNR]=210176493)") > w1.submit() > } > > This will not 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@sandviken.se > Could you say what exactly goes wrong? I tried it out and got it working without problems. Jan From stephen.clark@focus.ca Wed Oct 8 18:23:58 2003 From: stephen.clark@focus.ca (Stephen Clark) Date: Wed, 8 Oct 2003 10:23:58 -0700 Subject: [Mapserver-users] Mapserver 4 Makefile for VC References: Message-ID: <018401c38dc0$f59f9760$6c000a0a@sclark> Could someone post their makefile.vc and nmake.opt files. I would like a version that has the minimum set of options set whichI can then modify. thanks Stephen ----- Original Message ----- From: "Swaminathan, Gayathri" To: "'Yewondwossen Assefa'" Cc: Sent: Friday, September 19, 2003 8:03 AM Subject: RE: [Mapserver-users] Mapserver 4 Makefile for VC > :) > Missed that when looking, but after careful examination saw this file., > > Thanks all as always for your patience and time on this. > > Gayathri > > -----Original Message----- > From: Yewondwossen Assefa [mailto:assefa@dmsolutions.ca] > Sent: Thursday, September 18, 2003 9:26 PM > To: Swaminathan, Gayathri > Cc: mapserver-users@lists.gis.umn.edu > Subject: Re: [Mapserver-users] Mapserver 4 Makefile for VC > > > Hi There, > > There are now 2 files involved in the process, makefile.vc and > nmake.opt where all the options are included. This separation makes > things clearer and the option file can be used by sub projects like > php/mapscript. > All settings for necessary libraries + optional libraries are inside the > nmake.opt. > > Later, > > Swaminathan, Gayathri wrote: > > Hi all: > > > > After being content with mapserver-3.6.5 for a long time now, I was > > getting ready to compile mapserver 4.0 and test it. > > > > There are several changes that I notice between mapserver-3.6.5 and > > mapserver-4.0. The makefile.vc in the package shrinked. I assumed this > > is not the One that I should be using and proceeded with alterations > > to my old makefile.vc that came from mapserver-3.6.5 > > > > I was finally sucessful in building a mapserver with the following > > enabled. > > > > MapServer version 4.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ > > INPUT=EPP L7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > > > I need WMS server and WMS Client with this. I see that libcurl is > > being used somehow and keep getting errors on the same. > > > > Please, indicate to me the right corrections to makefile.vc (or) tell > > me where am I going wrong in this process. > > > > Thanks so much for your time on this. > > Gayathri > > _______________________________________________ > > Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa@dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- > > > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From CJPRYOR@sandia.gov Wed Oct 8 18:14:22 2003 From: CJPRYOR@sandia.gov (Pryor, Clayton J) Date: Wed, 8 Oct 2003 11:14:22 -0600 Subject: [Mapserver-users] Help with ArcSDE Layer Connection/Data specification Message-ID: I am struggling with getting my connection and data specifications right for an ArcSDE (Oracle database) layer that I am trying to bring into my MapServer application. Here is the relevant data and code: Relevant demo_init contents:
ArcSDE server information (per our ArcSDE/Oracle database manager): host name: orca-wks-1 instance name: port:5151 database name: insistdb ArcSDE database Structure (per ArcCatalog): Database Connections |-Connection to orca-wks-1 |-SDE.NorthAmerica |-SDE.nercSubRegions Map File Connection Definition: NAME nercsbrgnstatus CONNECTION "orca-wks-1,port:5151,insistdb,userid,userpwd" CONNECTIONTYPE sde Map File Data definitions and the results: Definition 1: DATA "SDE.nercSubRegions,shape" Definition 1 Result: Internal Server Error: (from apache web server log) "Premature end of script headers: mapserv, referer: http://.../demoSNL/demo_init.html" Definition 1 Comments: I understand that this error indicates that the mapserv application ended in an error condition that was not passed back to the caller. Definition 2: DATA "insistdb.SDE.nercSubRegions,shape" Definition 2 Result: Web page result: "MapServer Message msDrawMap():Image handling error. Failed to draw layer named 'nercsubrgnstatus'. msSDELayerOpen(): SDE error. SE_layer_get_infor(): Layer not found. (-20)" Definition 2 Comments: Searching the mapserver-users archives and the web turned up little help for these messages. The closest I found was similar, but not the same. It was an Oracle Spatial error that was apparently due to no spatial index being created for the shape column. General Comment: Since the Connection information has been confirmed to be correct by my ArcSDE/Oracle expert, my guess is that I am not correctly specifying the layer. Trying different layer naming options generates either the error in Definition 1 or the error in Definition 2. Any suggestions from you the members of the mapserver-users community as to how to proceed with this? Your help will be greatly appreciated. Sincerely, Clay Pryor ------------------------------------------------------------ Clayton J. Pryor phone (505) 845-3557 Sandia National Laboratories Critical Infrastructure Surety fax (505) 844-9641 PO Box 5800 MS 0451 Albuquerque NM 87185-0451 email cjpryor@sandia.gov ------------------------------------------------------------ From snelson@refractions.net Wed Oct 8 19:03:16 2003 From: snelson@refractions.net (snelson@refractions.net) Date: Wed, 8 Oct 2003 11:03:16 -0700 Subject: [Mapserver-users] WMS Cllient for ArcView 3.X In-Reply-To: <048FBD219330D211B47000A0C9B3BAFD03CD1AB7@crl02.crrel.usace.army.mil> References: <048FBD219330D211B47000A0C9B3BAFD03CD1AB7@crl02.crrel.usace.army.mil> Message-ID: <1065636196.3f845164af586@hydra> Yes, we will compile libcurl with ssl support for the next free release of the WMS Client. Shane Quoting "Smith, Michael ERDC-CRREL-NH" : > On the next beta, can libcurl be compiled with ssl to contact wms servers on > https? > > Mike Smith > email: michael.smith@erdc.usace.army.mil > RSGISC > ERDC - CRREL > Hanover, NH 03755 > (603) 646-4765 > > > > -----Original Message----- > From: Paul Ramsey [mailto:pramsey@refractions.net] > Sent: Wednesday, October 08, 2003 11:51 AM > To: Daniel Morissette > Cc: mapserver-users > Subject: Re: [Mapserver-users] WMS Cllient for ArcView 3.X > > > The error reported turned out to be caused by the following: > > "The error was related to TILEIDEX and missing data raster data that > GDAL was trying to find. When crafting the ogc file I had guessed at > the extents and was trying to map more data than I had. (Now I need to > see why Mapserver/GDAL did not IGNORE_MISSING_DATA like it was supposed > to.)" > > I do not know where in the cycle that falls. Sounds like after mapfile > parsing but before data (or during) eading. > > Paul > > Daniel Morissette wrote: > > Paul Ramsey wrote: > > > >> This brings up an unrelated but important issue: > >> Mapserver when running in WMS mode should always report its errors in > >> the proper OpenGIS XML format. I wonder why we got an error in > >> text/html? Shane, are we always requesting our errors in XML, or are > >> we just taking whatever the server provides us? > >> > > > > MapServer should return the exceptions in the requested format unless > > the error happens *before* it enters the WMS dispatch code. The only > > type of exception that could happen before that point would be mapfile > > parsing errors, but this is really a non-issue since your mapfile should > > be valid before you deploy a WMS server instance. > > > > All other exceptions should be returned in the requested format, either > > XML or INIMAGE, if you have a reproduceable test case where the > > exception format is not respected by MapServer 4.x then please file a > > bug with all the details. > > > > Thanks > > > > Daniel > > > -- > __ > / > | Paul Ramsey > | Refractions Research > | Email: pramsey@refractions.net > | Phone: (250) 885-0632 > \_ > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From pramsey@refractions.net Wed Oct 8 19:18:25 2003 From: pramsey@refractions.net (Paul Ramsey) Date: Wed, 08 Oct 2003 11:18:25 -0700 Subject: [Mapserver-users] Help with ArcSDE Layer Connection/Data specification In-Reply-To: References: Message-ID: <3F8454F1.1010408@refractions.net> Pryor, Clayton J wrote: > ArcSDE server information (per our ArcSDE/Oracle database manager): > > host name: orca-wks-1 > instance name: port:5151 > database name: insistdb > > > Map File Connection Definition: > > NAME nercsbrgnstatus > CONNECTION "orca-wks-1,port:5151,insistdb,userid,userpwd" > CONNECTIONTYPE sde Two possible things, firstly, are you sure that 'port:5151' is what you want for your instance? You could try a bare '5151'. Or you could edit /etc/services and add esri_sde there as a tcp service on port 5151, then use 'esri_sde' as the instance. SDE is wierd. Secondly, it looks like your table name is right, but you can never be too sure. Tables I have used have almost always been inside schemas, and were referenced as SCHEMANAME.TABLENAME. Paul -- __ / | Paul Ramsey | Refractions Research | Email: pramsey@refractions.net | Phone: (250) 885-0632 \_ From TMCNEIL@arinc.com Wed Oct 8 19:25:07 2003 From: TMCNEIL@arinc.com (McNeil, Todd W. (TMCNEIL)) Date: Wed, 8 Oct 2003 14:25:07 -0400 Subject: [Mapserver-users] Section 3 - Example 2 of MS 3.5 Tutorial Message-ID: <0734A2B8CF21D711B98B00080224869C062DA017@exanpmb3.arinc.com> This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_000_01C38DC9.80199910 Content-Type: text/plain Hi fellow MS'ers, I'm trying the tutorial for MS 3.5 and it's a great way to start learning MapServer. I can see that labeling is and will always be a major concern to folks that use this. So far, I've made it up to Section 3, but have found my way into something that I can't figure out. This is what my page is supposed to look like according to the tutorial web-site. http://terrasip.gis.umn.edu/cgi-bin/mapserv35?map=/data/projects/tutorial35/ s3/s3ex2.map However, I am not getting all three images that you see here. My html page comes up blank without the map image, legend image and the overview image. I can assume that it's a problem in my map file and that I am not using the correct temporary directory to where these images are being created. I think my html file is ok, but I'll attach it to the bottom as well as the map file. Does anybody know where IIS temporarily stores the gif images so that I can put the correct directory paths into the template file? (IMAGEPATH and IMAGEURL). Thanks in advance. <> <> Thanks in advance, ********************************** Todd McNeil ARINC Annapolis, MD Tel: 410.266.2302 Email: tmcneil@arinc.com Fax: 410.573.3170 Web: http://www.arinc.com ------_=_NextPart_000_01C38DC9.80199910 Content-Type: application/octet-stream; name="s3ex2.map" Content-Disposition: attachment; filename="s3ex2.map" NAME S3EX2 EXTENT -97.5 41.619778 -82.122902 49.38562 SIZE 400 300 SHAPEPATH "E:\Projects\tutorial35\data" FONTSET "E:\Projects\tutorial35\data\fonts.list" SYMBOLSET "E:\Projects\tutorial35\symbols\symbols35.sym" WEB TEMPLATE s3ex2.html IMAGEPATH "data\tmp\" IMAGEURL "tmp\" END LEGEND STATUS ON LABEL TYPE TRUETYPE FONT arial COLOR 0 0 0 SIZE 12 ANTIALIAS TRUE END END REFERENCE STATUS ON IMAGE "..\images\ref1.gif" SIZE 150 113 EXTENT -97.5 41.619778 -82.122902 49.38562 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END # LAYER DEFINITIONS --------------------------------------------- LAYER # Shaded Relief Raster NAME "relief" DATA "raster\shdrlfi020g_ugl.tif" STATUS DEFAULT TYPE RASTER # OFFSITE 0 END LAYER # States NAME "states" DATA states_ugl STATUS OFF TYPE POLYGON # CLASSITEM "CLASS" CLASS # States class NAME "States" EXPRESSION ('[CLASS]' eq 'land') # EXPRESSION 'land' COLOR 240 240 240 OUTLINECOLOR 0 0 0 END # end of States class object END # end of layer object LAYER # water features layer NAME "water features" DATA hydrop_ugl STATUS DEFAULT TYPE POLYGON CLASSITEM "FEATURE" CLASS NAME "Bay/Estuarine" EXPRESSION /Bay*/ COLOR 164 164 255 END CLASS NAME "Lakes/Reservoir" EXPRESSION ('[FEATURE]' eq 'Lake' or '[FEATURE]' = 'Reservoir') COLOR 64 64 255 END CLASS NAME "Marsh/Swamp" EXPRESSION /Sw*/ COLOR 210 235 255 END CLASS NAME "Major Rivers" EXPRESSION 'Stream' COLOR 128 128 220 END CLASS NAME "Canal" EXPRESSION 'Canal' COLOR 200 128 255 END END # end of water features layer #LAYER # Roads # NAME "roads" # DATA roads_ugl # TYPE LINE # STATUS DEFAULT # # CLASSITEM "CLASS" # CLASS # NAME "Interstate Highways" # EXPRESSION 'Interstate' # COLOR 128 0 0 # SYMBOL 'circle' # SIZE 2 # END # CLASS # NAME "US Highways" # EXPRESSION 'US' # COLOR 255 128 0 # SYMBOL 'line1' # SIZE 1 # END #END LAYER # States NAME "states" DATA states_ugl STATUS DEFAULT TYPE LINE # CLASSITEM "CLASS" CLASS # States class NAME "States" EXPRESSION ('[CLASS]' eq 'land') # EXPRESSION 'land' COLOR 0 0 0 END # end of States class object END # end of layer object LAYER # States NAME "states" DATA states_ugl STATUS DEFAULT TYPE ANNOTATION LABELITEM "STATE" CLASSITEM "CLASS" CLASS # States class EXPRESSION 'land' COLOR -1 -1 -1 LABEL COLOR 132 31 31 SHADOWCOLOR 218 218 218 SHADOWSIZE 2 2 TYPE TRUETYPE FONT arial-bold SIZE 14 ANTIALIAS TRUE POSITION CL PARTIALS FALSE MINDISTANCE 250 BUFFER 4 END # end of label END # end of States class object END # end of layer object END # end of map file ------_=_NextPart_000_01C38DC9.80199910 Content-Type: text/html; name="s3ex2.html" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="s3ex2.html" MapServer 3.5 Tutorial

Section 3
Example 2 – Zoom Controls

[map file = listing] [template = file listing]
Map Controls

Set your zoom option:

Legend

=20

Back to Section 3 | Proceed=20 to Example 3=20

------_=_NextPart_000_01C38DC9.80199910-- From stephen.clark@focus.ca Wed Oct 8 19:31:35 2003 From: stephen.clark@focus.ca (Stephen Clark) Date: Wed, 8 Oct 2003 11:31:35 -0700 Subject: [Mapserver-users] Mapserver 4 Makefile for VC References: <018401c38dc0$f59f9760$6c000a0a@sclark> Message-ID: <023e01c38dca$67d701c0$6c000a0a@sclark> This is a multi-part message in MIME format. ------=_NextPart_000_023B_01C38D8F.BB3EF150 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit I have included my makefile.vc and nmake.opt files as well as the compile errors foer your consideration. thanks, Stephen ----- Original Message ----- From: "Stephen Clark" To: "Swaminathan, Gayathri" ; "'Yewondwossen Assefa'" Cc: Sent: Wednesday, October 08, 2003 10:23 AM Subject: Re: [Mapserver-users] Mapserver 4 Makefile for VC > Could someone post their makefile.vc and nmake.opt files. > > I would like a version that has the minimum set of options set whichI can > then modify. > > thanks > Stephen > > > > ----- Original Message ----- > From: "Swaminathan, Gayathri" > To: "'Yewondwossen Assefa'" > Cc: > Sent: Friday, September 19, 2003 8:03 AM > Subject: RE: [Mapserver-users] Mapserver 4 Makefile for VC > > > > :) > > Missed that when looking, but after careful examination saw this file., > > > > Thanks all as always for your patience and time on this. > > > > Gayathri > > > > -----Original Message----- > > From: Yewondwossen Assefa [mailto:assefa@dmsolutions.ca] > > Sent: Thursday, September 18, 2003 9:26 PM > > To: Swaminathan, Gayathri > > Cc: mapserver-users@lists.gis.umn.edu > > Subject: Re: [Mapserver-users] Mapserver 4 Makefile for VC > > > > > > Hi There, > > > > There are now 2 files involved in the process, makefile.vc and > > nmake.opt where all the options are included. This separation makes > > things clearer and the option file can be used by sub projects like > > php/mapscript. > > All settings for necessary libraries + optional libraries are inside the > > nmake.opt. > > > > Later, > > > > Swaminathan, Gayathri wrote: > > > Hi all: > > > > > > After being content with mapserver-3.6.5 for a long time now, I was > > > getting ready to compile mapserver 4.0 and test it. > > > > > > There are several changes that I notice between mapserver-3.6.5 and > > > mapserver-4.0. The makefile.vc in the package shrinked. I assumed this > > > is not the One that I should be using and proceeded with alterations > > > to my old makefile.vc that came from mapserver-3.6.5 > > > > > > I was finally sucessful in building a mapserver with the following > > > enabled. > > > > > > MapServer version 4.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ > > > INPUT=EPP L7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > > > > > I need WMS server and WMS Client with this. I see that libcurl is > > > being used somehow and keep getting errors on the same. > > > > > > Please, indicate to me the right corrections to makefile.vc (or) tell > > > me where am I going wrong in this process. > > > > > > Thanks so much for your time on this. > > > Gayathri > > > _______________________________________________ > > > Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu > > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > > > > > > > -- > > ---------------------------------------------------------------- > > Assefa Yewondwossen > > Software Analyst > > > > Email: assefa@dmsolutions.ca > > http://www.dmsolutions.ca/ > > > > Phone: (613) 565-5056 (ext 14) > > Fax: (613) 565-0925 > > ---------------------------------------------------------------- > > > > > > > > > > _______________________________________________ > > 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 > ------=_NextPart_000_023B_01C38D8F.BB3EF150 Content-Type: text/plain; name="compile-errors.txt" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="compile-errors.txt" cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c mapbits.c = /Fomapbits.obj mapbits.c cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c maphash.c = /Fomaphash.obj maphash.c cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c mapshape.c = /Fomapshape.obj mapshape.c mapshape.c(512) : warning C4244: '=3D' : conversion from 'double ' to = 'int ', possible loss of data mapshape.c(600) : warning C4244: '=3D' : conversion from 'double ' to = 'int ', possible loss of data cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c mapxbase.c = /Fomapxbase.obj mapxbase.c mapxbase.c(496) : warning C4018: '<' : signed/unsigned mismatch mapxbase.c(662) : warning C4018: '>' : signed/unsigned mismatch mapxbase.c(668) : warning C4018: '>' : signed/unsigned mismatch mapxbase.c(675) : warning C4018: '>' : signed/unsigned mismatch cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c mapparser.c = /Fomapparser.obj mapparser.c cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c maplexer.c = /Fomaplexer.obj maplexer.c mapfile.h(185) : warning C4005: 'DEBUG' : macro redefinition unknown(0) : see previous definition of 'DEBUG' cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c mapindex.c = /Fomapindex.obj mapindex.c cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c maptree.c = /Fomaptree.obj maptree.c cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c mapsearch.c = /Fomapsearch.obj mapsearch.c cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c mapstring.c = /Fomapstring.obj mapstring.c mapstring.c(130) : warning C4018: '<' : signed/unsigned mismatch cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c mapsymbol.c = /Fomapsymbol.obj mapsymbol.c mapfile.h(185) : warning C4005: 'DEBUG' : macro redefinition unknown(0) : see previous definition of 'DEBUG' mapsymbol.c(547) : warning C4244: '=3D' : conversion from 'double ' to = 'int ', possible loss of data mapsymbol.c(548) : warning C4244: '=3D' : conversion from 'double ' to = 'int ', possible loss of data mapsymbol.c(499) : warning C4101: 'rect' : unreferenced local variable cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c mapfile.c = /Fomapfile.obj mapfile.c mapfile.h(185) : warning C4005: 'DEBUG' : macro redefinition unknown(0) : see previous definition of 'DEBUG' mapfile.c(1050) : warning C4244: '=3D' : conversion from 'double ' to = 'int ', possible loss of data cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c maplegend.c = /Fomaplegend.obj maplegend.c maplegend.c(287) : warning C4244: 'function' : conversion from 'double ' = to 'int ', possible loss of data maplegend.c(287) : warning C4761: integral size mismatch in argument; = conversion supplied cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c maputil.c = /Fomaputil.obj maputil.c maputil.c(981) : warning C4013: 'getpid' undefined; assuming extern = returning int cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c mapscale.c = /Fomapscale.obj mapscale.c cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c mapquery.c = /Fomapquery.obj mapquery.c cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c maplabel.c = /Fomaplabel.obj maplabel.c maplabel.c(281) : warning C4018: '>' : signed/unsigned mismatch maplabel.c(233) : warning C4101: 'size' : unreferenced local variable cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c maperror.c = /Fomaperror.obj maperror.c cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c mapprimitive.c = /Fomapprimitive.obj mapprimitive.c cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c mapproject.c = /Fomapproject.obj mapproject.c mapproject.c(429) : warning C4047: 'return' : 'const char *' differs in = levels of indirection from 'int ' cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c mapraster.c = /Fomapraster.obj mapraster.c cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c cgiutil.c = /Focgiutil.obj cgiutil.c cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c mapsde.c = /Fomapsde.obj mapsde.c cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c mapogr.cpp = /Fomapogr.obj mapogr.cpp cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c maptemplate.c = /Fomaptemplate.obj maptemplate.c cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c mappostgis.c = /Fomappostgis.obj mappostgis.c cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c maplayer.c = /Fomaplayer.obj maplayer.c maplayer.c(629) : warning C4101: 'i' : unreferenced local variable cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c mapresample.c = /Fomapresample.obj mapresample.c cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c mapwms.c = /Fomapwms.obj mapwms.c cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c mapwmslayer.c = /Fomapwmslayer.obj mapwmslayer.c cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c mapgml.c = /Fomapgml.obj mapgml.c cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c maporaclespatial.c = /Fomaporaclespatial.obj maporaclespatial.c cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c mapprojhack.c = /Fomapprojhack.obj mapprojhack.c cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c mapdraw.c = /Fomapdraw.obj mapdraw.c mapdraw.c(1055) : warning C4700: local variable 'length' used without = having been initialized cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c mapgd.c = /Fomapgd.obj mapgd.c mapgd.c(388) : warning C4244: '=3D' : conversion from 'double ' to 'int = ', possible loss of data mapgd.c(389) : warning C4244: '=3D' : conversion from 'double ' to 'int = ', possible loss of data mapgd.c(395) : warning C4244: '=3D' : conversion from 'double ' to 'int = ', possible loss of data mapgd.c(396) : warning C4244: '=3D' : conversion from 'double ' to 'int = ', possible loss of data mapgd.c(409) : warning C4305: 'initializing' : truncation from 'const = double ' to 'float ' mapgd.c(417) : warning C4244: '=3D' : conversion from 'double ' to 'int = ', possible loss of data mapgd.c(418) : warning C4244: '=3D' : conversion from 'double ' to 'int = ', possible loss of data mapgd.c(429) : warning C4244: '=3D' : conversion from 'float ' to 'int = ', possible loss of data mapgd.c(430) : warning C4244: '=3D' : conversion from 'float ' to 'int = ', possible loss of data mapgd.c(466) : warning C4244: 'function' : conversion from 'double ' to = 'int ', possible loss of data mapgd.c(466) : warning C4244: 'function' : conversion from 'double ' to = 'int ', possible loss of data mapgd.c(523) : warning C4244: '=3D' : conversion from 'double ' to 'int = ', possible loss of data mapgd.c(535) : warning C4244: '=3D' : conversion from 'double ' to = 'float ', possible loss of data mapgd.c(537) : warning C4244: '=3D' : conversion from 'double ' to 'int = ', possible loss of data mapgd.c(538) : warning C4244: '=3D' : conversion from 'double ' to 'int = ', possible loss of data mapgd.c(573) : warning C4244: '=3D' : conversion from 'double ' to 'int = ', possible loss of data mapgd.c(575) : warning C4244: '=3D' : conversion from 'double ' to 'int = ', possible loss of data mapgd.c(580) : warning C4244: '=3D' : conversion from 'double ' to 'int = ', possible loss of data mapgd.c(611) : warning C4244: 'function' : conversion from 'double ' to = 'int ', possible loss of data mapgd.c(611) : warning C4244: 'function' : conversion from 'double ' to = 'int ', possible loss of data mapgd.c(611) : warning C4244: 'function' : conversion from 'double ' to = 'int ', possible loss of data mapgd.c(686) : warning C4244: 'function' : conversion from 'double ' to = 'int ', possible loss of data mapgd.c(697) : warning C4244: 'function' : conversion from 'double ' to = 'int ', possible loss of data mapgd.c(717) : warning C4244: 'function' : conversion from 'double ' to = 'int ', possible loss of data mapgd.c(727) : warning C4244: 'function' : conversion from 'double ' to = 'int ', possible loss of data mapgd.c(811) : warning C4244: 'function' : conversion from 'double ' to = 'int ', possible loss of data mapgd.c(849) : warning C4244: 'function' : conversion from 'double ' to = 'int ', possible loss of data mapgd.c(877) : warning C4244: 'function' : conversion from 'double ' to = 'int ', possible loss of data mapgd.c(925) : warning C4244: 'function' : conversion from 'double ' to = 'int ', possible loss of data mapgd.c(782) : warning C4101: 'rect' : unreferenced local variable mapgd.c(781) : warning C4101: 'bbox' : unreferenced local variable mapgd.c(977) : warning C4244: 'function' : conversion from 'double ' to = 'int ', possible loss of data mapgd.c(977) : warning C4244: 'function' : conversion from 'double ' to = 'int ', possible loss of data mapgd.c(1021) : warning C4244: 'function' : conversion from 'double ' to = 'int ', possible loss of data mapgd.c(1021) : warning C4244: 'function' : conversion from 'double ' to = 'int ', possible loss of data mapgd.c(953) : warning C4101: 'rect' : unreferenced local variable mapgd.c(952) : warning C4101: 'bbox' : unreferenced local variable mapgd.c(1149) : warning C4244: '=3D' : conversion from 'double ' to 'int = ', possible loss of data mapgd.c(1178) : warning C4244: 'function' : conversion from 'double ' to = 'int ', possible loss of data mapgd.c(1189) : warning C4244: 'function' : conversion from 'double ' to = 'int ', possible loss of data mapgd.c(1209) : warning C4244: 'function' : conversion from 'double ' to = 'int ', possible loss of data mapgd.c(1219) : warning C4244: 'function' : conversion from 'double ' to = 'int ', possible loss of data mapgd.c(1274) : warning C4101: 'rect' : unreferenced local variable mapgd.c(1273) : warning C4101: 'bbox' : unreferenced local variable mapgd.c(1550) : warning C4244: '=3D' : conversion from 'double ' to 'int = ', possible loss of data mapgd.c(2078) : warning C4101: 'bbox' : unreferenced local variable mapgd.c(2451) : warning C4090: 'function' : different 'const' qualifiers mapgd.c(2451) : warning C4024: 'strcasecmp' : different types for formal = and actual parameter 2 mapgd.c(2522) : warning C4098: 'msFixedImageCopy' : 'void' function = returning a value mapgd.c(2557) : warning C4098: 'msImageCopyMerge' : 'void' function = returning a value mapgd.c(686) : warning C4761: integral size mismatch in argument; = conversion supplied mapgd.c(697) : warning C4761: integral size mismatch in argument; = conversion supplied mapgd.c(717) : warning C4761: integral size mismatch in argument; = conversion supplied mapgd.c(727) : warning C4761: integral size mismatch in argument; = conversion supplied mapgd.c(811) : warning C4761: integral size mismatch in argument; = conversion supplied mapgd.c(849) : warning C4761: integral size mismatch in argument; = conversion supplied mapgd.c(877) : warning C4761: integral size mismatch in argument; = conversion supplied mapgd.c(925) : warning C4761: integral size mismatch in argument; = conversion supplied mapgd.c(977) : warning C4761: integral size mismatch in argument; = conversion supplied mapgd.c(977) : warning C4761: integral size mismatch in argument; = conversion supplied mapgd.c(1021) : warning C4761: integral size mismatch in argument; = conversion supplied mapgd.c(1021) : warning C4761: integral size mismatch in argument; = conversion supplied mapgd.c(1178) : warning C4761: integral size mismatch in argument; = conversion supplied mapgd.c(1189) : warning C4761: integral size mismatch in argument; = conversion supplied mapgd.c(1209) : warning C4761: integral size mismatch in argument; = conversion supplied mapgd.c(1219) : warning C4761: integral size mismatch in argument; = conversion supplied mapgd.c(466) : warning C4761: integral size mismatch in argument; = conversion supplied mapgd.c(466) : warning C4761: integral size mismatch in argument; = conversion supplied mapgd.c(611) : warning C4761: integral size mismatch in argument; = conversion supplied mapgd.c(611) : warning C4761: integral size mismatch in argument; = conversion supplied mapgd.c(611) : warning C4761: integral size mismatch in argument; = conversion supplied cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c mapoutput.c = /Fomapoutput.obj mapoutput.c mapoutput.c(197) : warning C4090: 'function' : different 'const' = qualifiers mapoutput.c(197) : warning C4024: 'strcasecmp' : different types for = formal and actual parameter 1 mapoutput.c(220) : warning C4090: 'function' : different 'const' = qualifiers mapoutput.c(220) : warning C4024: 'strcasecmp' : different types for = formal and actual parameter 1 mapoutput.c(232) : warning C4090: 'function' : different 'const' = qualifiers mapoutput.c(232) : warning C4024: 'strcasecmp' : different types for = formal and actual parameter 1 mapoutput.c(303) : warning C4090: 'function' : different 'const' = qualifiers mapoutput.c(303) : warning C4024: 'strcasecmp' : different types for = formal and actual parameter 1 mapoutput.c(453) : warning C4090: 'function' : different 'const' = qualifiers mapoutput.c(453) : warning C4024: 'strcasecmp' : different types for = formal and actual parameter 1 mapoutput.c(460) : warning C4090: 'function' : different 'const' = qualifiers mapoutput.c(460) : warning C4024: 'strcasecmp' : different types for = formal and actual parameter 1 mapoutput.c(522) : warning C4090: 'function' : different 'const' = qualifiers mapoutput.c(522) : warning C4024: 'strcasecmp' : different types for = formal and actual parameter 1 mapoutput.c(618) : warning C4090: 'function' : different 'const' = qualifiers mapoutput.c(618) : warning C4024: 'strncasecmp' : different types for = formal and actual parameter 2 mapoutput.c(656) : warning C4090: 'function' : different 'const' = qualifiers mapoutput.c(656) : warning C4024: 'strncasecmp' : different types for = formal and actual parameter 2 cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c mapswf.c = /Fomapswf.obj mapswf.c cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c mapgdal.c = /Fomapgdal.obj mapgdal.c cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c mapwfs.c = /Fomapwfs.obj mapwfs.c cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c mapwfslayer.c = /Fomapwfslayer.obj mapwfslayer.c cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c mapows.c = /Fomapows.obj mapows.c cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c maphttp.c = /Fomaphttp.obj maphttp.c cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c mappdf.c = /Fomappdf.obj mappdf.c cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c mapcontext.c = /Fomapcontext.obj mapcontext.c cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c mapdrawgdal.c = /Fomapdrawgdal.obj mapdrawgdal.c cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c mapjoin.c = /Fomapjoin.obj mapjoin.c cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c mapgraticule.c = /Fomapgraticule.obj mapgraticule.c cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c mapmygis.c = /Fomapmygis.obj mapmygis.c cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c mapimagemap.c = /Fomapimagemap.obj mapimagemap.c mapimagemap.c(15) : warning C4005: 'DEBUG' : macro redefinition unknown(0) : see previous definition of 'DEBUG' mapimagemap.c(159) : warning C4090: 'function' : different 'const' = qualifiers mapimagemap.c(159) : warning C4024: 'strcasecmp' : different types for = formal and actual parameter 2 mapimagemap.c(1604) : warning C4244: '*=3D' : conversion from 'double ' = to 'int ', possible loss of data mapimagemap.c(1619) : warning C4244: '*=3D' : conversion from 'double ' = to 'int ', possible loss of data mapimagemap.c(1620) : warning C4244: '*=3D' : conversion from 'double ' = to 'int ', possible loss of data mapimagemap.c(1631) : warning C4244: '*=3D' : conversion from 'double ' = to 'int ', possible loss of data mapimagemap.c(1863) : warning C4090: 'function' : different 'const' = qualifiers mapimagemap.c(1863) : warning C4024: 'strcasecmp' : different types for = formal and actual parameter 2 cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -Ic:/projects/gd-2.0.15 = -Ic:/projects/regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC = -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_GD_PNG = -DIGNORE_MISSING_DATA -DFEATURE_INFO_HTML /c mapcopy.c = /Fomapcopy.obj mapcopy.c mapcopy.c(1036) : warning C4034: sizeof returns 0 mapcopy.c(1038) : warning C4034: sizeof returns 0 mapcopy.c(1040) : warning C4034: sizeof returns 0 mapcopy.c(1048) : warning C4034: sizeof returns 0 copy \gdal.pdb . The system cannot find the file specified. ------=_NextPart_000_023B_01C38D8F.BB3EF150 Content-Type: application/octet-stream; name="nmake.opt" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="nmake.opt" # # nmake.opt - MapServer 4.x configuration for MSVC++ # # This VC++ configuration is used in building MAPSERVER.LIB, = MAPSERV.EXE, # and the other MapServer command-line programs. # # To use the makefile: # - Open a DOS prompt window # - Run the VCVARS32.BAT script to initialize the VC++ environment = variables # - Start the build with: nmake /f makefile.vc # # $Id: nmake.opt,v 1.2 2003/06/13 13:28:38 assefa Exp $ # # Contents: # Section I: Mapserver Options (you may want to edit) # Section II: Support Libraries (you must edit) # Section III: Debug Flags (no need to edit) # Section IV: Variable Setup (should not need to edit) # Section V: UMN GIS System Setup (should not need to edit) # Section VI: Collect compiler flags # ######################################################################## # Section I: Mapserver Options ######################################################################## # Input raster format options: # # The lite version of mapserver 4.x supports only PNG and JPEG data for = input. # # If you wish to support any of the following raster formats you will = need # the GDAL support library from http://www.remotesensing.org/gdal. # Once you have the library, set the flag below to compile with GDAL and # provide the full path to GDAL project directory # # Format Name # Arc/Info ASCII Grid AAIGrid # Arc/Info Binary Grid (.adf) AIG # Microsoft Windows Device Independent Bitmap (.bmp) BMP # BSB Nautical Chart Format (.kap) BSB # CEOS (Spot for instance) CEOS # First Generation USGS DOQ (.doq) DOQ1 # New Labelled USGS DOQ (.doq) DOQ2 # Military Elevation Data (.dt0, .dt1) DTED # ERMapper Compressed Wavelets (.ecw) ECW # ESRI .hdr Labelled EHdr # ENVI .hdr Labelled Raster ENVI # Envisat Image Product (.n1) Envisat # EOSAT FAST Format FAST # FITS (.fits) FITS # Graphics Interchange Format (.gif) GIF # Arc/Info Binary Grid (.adf) GIO # GRASS Rasters GRASS # TIFF / GeoTIFF (.tif) GTiff # Hierarchical Data Format Release 4 (HDF4) HDF4 # Erdas Imagine (.img) HFA # Atlantis MFF2e HKV # Japanese DEM (.mem) JDEM # JPEG2000 (.jp2, .j2k) JPEG2000 # JPEG2000 (.jp2, .j2k) JP2KAK # NOAA Polar Orbiter Level 1b Data Set (AVHRR) L1B # Atlantis MFF MFF # NITF NITF # OGDI Bridge OGDI # PCI .aux Labelled PAux Yes # Netpbm (.ppm,.pgm) PNM Yes # USGS SDTS DEM (*CATD.DDF) SDTS # SAR CEOS SAR_CEOS # USGS ASCII DEM (.dem) USGSDEM # X11 Pixmap (.xpm) XPM #GDAL=3D-DUSE_GDAL #GDAL_DIR=3Dc:\projects\gdal-1.1.9 # # Input vector format options # # The lite version of Mapserver 4.x only suports ESRI shapefiles for = input. # # If you wish to support any of the following vector formats you will = need # the GDAL support library with OGR from = http://www.remotesensing.org/gdal. # Once you have the library, set the flag below to compile with OGR and # provide the full path to GDAL project directory # # Format Name # Arc/Info Binary Coverage # FMEObjects Gateway # IHO S-57 (ENC) # Mapinfo File # Microstation DGN # OGDI Vectors # Oracle Spatial # PostgreSQL # SDTS # UK .NTF # U.S. Census TIGER/Line # #OGR=3D-DUSE_OGR #GDAL_DIR=3Dc:\projects\gdal-1.1.9 #ECW support # #ECW is one of the formats supported through GDAL. If you have built #gdal with ECW support, you need to link it with the ECW librarires. #uncommnet the following lines to have the ECW support. #ECW_DIR=3D C:\projects\ECW_SDK #Xerces support # #If GDAL was compoiled with the Xerces support, you need to use the=20 #xerces library. #uncommnet the following line to have the Xerces = support #XERCES_DIR =3D c:\projects\xerces-c1_6_0-win32 # Tiff Input #=20 # Tiff input is also available through GDAL. If you wish to build to = support # TIFF input without GDAL you will need to unccomment the following flag = # and set the full path to the project directory containing libtiff. # See http://www.libtiff.org/ for support library #TIFF=3D-DUSE_TIFF #TIFFDIR=3Dc:/my_path_to/tiff-v3.5.4 # JPEG Input: # JPEG input for raster layers is also available through GDAL, If you = wish=20 # to build support for JPEG without GDAL, uncomment the following flag # and provide the full path to the jpeg support library project = directory. # See http://www.ijg.org/ for support library. #JPEG=3D-DUSE_JPEG #JPEG_DIR=3Dc:/projects/gdal/frmts/jpeg/libjpeg # Output format options: # If you wish to allow JPEG output maps, uncomment the following flag # and provide the full path to the jpeg support library project = directory. # See http://www.ijg.org/ for support library. #OUTPUT_JPEG=3D-DUSE_GD_JPEG #JPEG_DIR=3Dc:/projects/gdal-1.1.9/frmts/jpeg/libjpeg # If you wish to allow PNG output maps, uncomment the following flag # and provide the full path to the png and zlib support library project # directories. # See http://www.libpng.org/pub/png/libpng.html for support library. # See http://www.gzip.org/zlib/ for support library. OUTPUT_PNG=3D-DUSE_GD_PNG PNG_DIR=3Dc:/projects/libpng-1.2.5 ZLIB_DIR=3Dc:/projects/zlib-1.1.4 # If you wish to allow Windows BMP output maps, uncomment the following = flag. #OUTPUT_WBMP=3D-DUSE_GD_WBMP # If you wish to have FLASH output, uncomment the following flag and = provide # the full path to the MING support library project directory. # See http://ming.sourceforge.net/ for support library. #MING=3D-DUSE_MING_FLASH #MING_DIR=3Dc:/projects/ming-0.2a # If you wish to have PDF output, uncomment the following flag and = provide the # full path to the PDF support library project directory. # See http://www.pdflib.com/ for support library. #PDF=3D-DUSE_PDF #PDF_DIR=3Dc:/projects/pdflib-5.0.2 # Annotation fonts. # # If you wish to annotate your maps with true type fonts unccomment the # following flag. Provide the full path to the FreeType 2.x external # supprt library. See http://www.freetype.org for support library. #ANNOTATION_FT=3D-DUSE_GD_FT #FT_DIR=3Dc:/projects/freetype-2.1.3 # Direct connectivity to Postgresql PostGIS. #=20 # To turn on direct connectivity to Postgresql PostGIS uncomment the = following # flag and set the full path name to the project directory for the=20 # Postgresql native Win32 client library. # See http://www.postgresql.org for support library. #POSTGIS =3D-DUSE_POSTGIS #POSTGIS_DIR =3Dc:/projects/libpqxx-1.5.1 # Direct connectivity to ArcSDE. #=20 # To turn on direct connectivity to ArcSDE uncomment the following # flag and set the full path name to the project directory for ArcSDE. # Since ESRI includes the version number in the name of their libraries # you may need to change that number in Section III of this = configuration # file. # See http://www.esri.com/software/arcgis/arcinfo/arcsde/index.html for # support library #SDE_OPT=3D-DUSE_SDE -DWIN32 #SDE_DIR=3Dc:/my_path_to/arcsde # EPPL7 Support # # This activates ERDAS as well. It is included in the distribution.=20 # Probably the best raster alternative if # you've got EPPL7 laying around. See http://www.lmic.state.mn.us/ for=20 # more information. # Uncomment out the following flag and set the full path name to the # epplib.obj file. #EPPL=3D-DUSE_EPPL #EPPL_OBJ=3Dc:/my_path/epplib.obj # If you want to ignore missing datafile errors uncomment the following # line. This is especially useful with large tiled datasets that may not # have complete data for each tile. IGNORE_MISSING_DATA=3D-DIGNORE_MISSING_DATA # If you want antialiasing (note that It requires gd2) #USE_GD_ANTIALIAS=3D-DUSE_GD_ANTIALIAS # Use this flag to compile with WMS Server support. # To find out more about the OpenGIS Web Map Server Specification go to # http://www.opengis.org/ #WMS=3D-DUSE_WMS_SVR # Use this flag to compile with WMS Client support. WMS Client support # allows you to pull layers from other OGIS WMS servers on the interent = and # incorporate them into your map. # To find out more about the OpenGIS Web Map Server Specification go to # http://www.opengis.org/ # you need the libcurl library from http://curl.haxx.se/library/c/ # Set the full path to the curl project directory. # You will also need to set the full path to the Microsoft Visual C++ = windows # socket library. #WMSCLIENT=3D -DUSE_WMS_LYR #CURL_DIR=3Dc:/projects/curl-7.10.7 #WINSOCK_LIB =3D "C:\Program Files\Microsoft Visual = Studio\VC98\Lib\WSOCK32.LIB" # Use -DUSE_WFS_SVR to compile with WFS server support, requires OGR and = PROJ4 # Use -DUSE_WFS_LYR to compile with WFS client support, requires libcurl #WFS=3D-DUSE_WFS_SVR #WFSCLIENT=3D -DUSE_WFS_LYR # Reprojecting. # If you would like mapserver to be able to reproject data from one # geographic projection to another, uncomment the following flag # Proj.4 distribution (cartographic projection routines).=20 # Not required for normal use. (EXPERIMENTAL) # For PROJ_DIR use full path to Proj.4 distribution #PROJ=3D-DUSE_PROJ -DUSE_PROJ_API_H #PROJ_DIR=3Dc:\projects\proj-4.4.7 # PHP Mapscript. # If you plan to build PHP mapscript uncomment the following flag and # set the full path to the PHP project directory #PHP=3D1 #PHP_DIR=3Dc:\projects\php-4.3.2 # Apparently these aren't as commonplace. Edit the # following line to reflect the missing functions on your platform. # #STRINGS=3D-DNEED_STRCASECMP -DNEED_STRNCASECMP -DNEED_STRDUP STRINGS=3D-DNEED_STRCASECMP -DNEED_STRNCASECMP ######################################################################## # Section II: External Support Libraries ######################################################################## # You will need to set the paths to various support library projects # that you have compiled. ######################################################################## # GD Library. =20 # # Mapserver 4.x only supports GD 2.x and greater. # Sorry no more GIF support. If you need GIF support you will # need to run Mapserver 3.6.x with GD 1.2. # GD is a required support library for MapServer 4.x. # Enter the full path to your GD 2.x project directory # Note : A patched version of GD that supports GIF, JPEG, PNG and WBMP = can be=20 # downloaded from http://www.rime.com.au/gd/. If you are using this = library, #you should uncomment the following line #OUTPUT_GIF=3D-DUSE_GD_GIF -DGD_HAS_GDIMAGEGIFPTR GD_DIR=3Dc:/projects/gd-2.0.15 # REGEX Libary #=20 # VC++ does not include the REGEX library... so we must provide our one. # The following definitions will try to build GNU regex-0.12 located in = the # regex-0.12 sub-directory. # If it was not included in the source distribution, then you can get it = from: # ftp://ftp.gnu.org/pub/gnu/regex/regex-0.12.tar.gz # Provide the full path to the REGEX project directory # You do not need this library if you are compiling for PHP mapscript. # In that case the PHP regex library will be used instead !IFNDEF PHP REGEX_DIR=3Dc:/projects/regex-0.12 !ENDIF ######################################################################## # Section III: Debug flags ######################################################################## # Should not need to be updated. ######################################################################## # DEBUG Build flags # Set the DEBUG flag if you wish to make a debug build DEBUG=3D/DDEBUG # Set the Warning level for the compiler (defaults to W1) WARNING_LEVEL=3D/W3 # Set the linker debug option LDEBUG=3D/debug ######################################################################## # Section IV: Variable Setup ######################################################################## # Should not need to be updated. ######################################################################## # Proj.4 include and library !IFDEF PROJ_DIR PROJ_INC=3D-I$(PROJ_DIR)/src PROJ_LIB=3D$(PROJ_DIR)/src/proj.lib !ENDIF # CURL include and library !IFDEF WMSCLIENT CURL_INC =3D -I$(CURL_DIR)/include CURL_LIB =3D $(CURL_DIR)/lib/libcurl.lib !ENDIF # Set the jpeg library !IFDEF OUTPUT_JPEG JPEG_LIB=3D$(JPEG_DIR)/libjpeg.lib !ENDIF # Set the png support libaries !IFDEF OUTPUT_PNG PNG_LIB=3D$(PNG_DIR)/libpng.lib $(ZLIB_DIR)/zlib.lib !ENDIF # Set the FreeType library !IFDEF ANNOTATION_FT #FT_LIB=3D$(FT_DIR)/objs/freetype211.lib FT_LIB=3D$(FT_DIR)/objs/freetype211ST_D.lib !ENDIF # GD include and library GD_INC=3D -I$(GD_DIR) GD_LIB=3D $(GD_DIR)/gd.lib \ $(JPEG_LIB) $(PNG_LIB) $(FT_LIB) GD=3D $(OUTPUT_PNG) $(OUTPUT_JPEG) $(OUTPUT_WBMP) $(OUTPUT_GIF) = $(ANNOTATION_FT) # Tiff library on input !IFDEF TIFF TIFF_INC=3D-I$(TIFF_DIR)/tiff-v3.5.4/libtiff TIFF_LIB=3D$(TIFF_DIR)/tiff-v3.5.4/libtiff/libtiff.lib !ENDIF # JPEG library on input !IFDEF JPEG JPEG_LIB=3D$(JPEG_DIR)/libjpeg.lib !ENDIF # Setup GDAL includes and libraries !IFDEF GDAL GDAL_INC =3D -I$(GDAL_DIR)/core -I$(GDAL_DIR)/alg GDAL_LIB =3D $(GDAL_DIR)/gdal_i.lib !ENDIF # Setup OGR includes and libraries !IFDEF OGR OGR_INC =3D -I$(GDAL_DIR)/ogr/ogrsf_frmts -I$(GDAL_DIR)/ogr = -I$(GDAL_DIR)/ogr/../port OGR_LIB =3D $(GDAL_DIR)/ogr/ogrsf_frmts/ogrsf_frmts.lib = $(GDAL_DIR)/ogr/ogrsf_frmts/ogrsf_frmts_sup.lib $(GDAL_DIR)/ogr/ogr.lib = $(GDAL_DIR)/ogr/../port/cpl.lib !ENDIF # Setup ESRI SDE support. !IFDEF SDE_OPT SDE_INC=3D-I$(SDE_DIR)/include SDE_LIB=3D$(SDE_DIR)/lib/sde80.lib $(SDE_DIR)/lib/sg80.lib = $(SDE_DIR)/lib/pe80.lib !ENDIF #ECW support !IFDEF ECW_DIR ECW_LIB=3D$(ECW_DIR)\lib\NCSEcw.lib $(ECW_DIR)\lib\NCSEcwC.lib \ $(ECW_DIR)\lib\NCSUtil.lib !ENDIF #Xerces support !IFDEF XERCES_DIR XERCES_LIB=3D$(XERCES_DIR)/lib/xerces-c_1.lib !ENDIF # Setup REGEX object and includes !IFNDEF PHP REGEX_OBJ=3D$(REGEX_DIR)\regex.obj REGEX_INC=3D-I$(REGEX_DIR) !ELSE REGEX_OBJ=3D$(PHP_DIR)\regex\regcomp.obj $(PHP_DIR)\regex\regerror.obj \ $(PHP_DIR)\regex\regexec.obj $(PHP_DIR)\regex\regfree.obj REGEX_INC=3D-I$(PHP_DIR)/regex -DPHP_NO_ALIASES !ENDIF # # REGEX needs some special flags... here they are for VC++ 6.0 # REGEX_OPT=3D-DHAVE_STRING_H -DREGEX_MALLOC # Setup Postgesql PostGIS includes and libs # Note that the Postgresql includes are not used in the compilation of=20 # PHP/MapScript. The reason is that there is a name conflict between = the=20 # regex/regex.h files used in PHP and Postgresql. This is not a real = issue # since they are two completely different interfaces. The issue arrises = when # the php_regex.h trys to include regex/regex.h and gets the wrong one = from # postgresql. Therefore we do not give it that opertunity by not = providing the # include path. !IFDEF POSTGIS !IFNDEF PHP_BUILD_CALL #POSTGIS_INC=3D-I$(POSTGIS_DIR)/src/interfaces/libpq = -I$(POSTGIS_DIR)/src/include POSTGIS_INC=3D-I$(POSTGIS_DIR)/interfaces/libpq -I$(POSTGIS_DIR)/include !ENDIF #POSTGIS_LIB=3D$(POSTGIS_DIR)/src/interfaces/libpq/release/libpqdll.lib POSTGIS_LIB=3D$(POSTGIS_DIR)/interfaces/libpq/libpqdll.lib POSTGIS_OBJ=3Dmappostgis.obj !ENDIF # Setup FLASH includes and libs !IFDEF MING MING_INC=3D-I$(MING_DIR)/src -I$(MING_DIR) MING_LIB=3D $(MING_DIR)/src/libming.lib !ENDIF # Setup PDF includes and libs !IFDEF PDF PDF_LIB=3D$(PDF_DIR)/pdflib/pdflib.lib PDF_INC=3D-I$(PDF_DIR)/pdflib !ENDIF ######################################################################## # Section V: UMN GIS System Support ######################################################################## # Should not need to be updated. ######################################################################## # # UofMN GIS/Image Processing Extension (very experimental) # #EGIS=3D-DUSE_EGIS !IFDEF EGIS ERR_DIR=3Dc:/my_path_to/errLog ERR_OBJ=3D$(ERR_DIR)/errLog.o ERR_INC=3D-I$(ERR_DIR) ERR_LIB=3D-L$(ERR_DIR) -lerrLog IMGGEN_DIR=3Dc:/my_path_to/imgSrc IMGGEN_OBJ=3D$(IMGGEN_DIR)/imgLib.o IMGGEN_INC=3D-I$(IMGGEN_DIR) IMGGEN_LIB=3D-L$(IMGGEN_DIR) -limgGEN !ENDIF ######################################################################## # Section VI: Collect compiler flags ######################################################################## # Should not need to be updated. ######################################################################## LIBS=3D$(MS_LIB) $(GD_LIB) $(TIFF_LIB) $(JPEG_LIB) \ $(PROJ_LIB) $(OGR_LIB) $(GDAL_LIB)\ $(CURL_LIB) $(MING_LIB) $(PDF_LIB) \ $(WINSOCK_LIB) $(POSTGIS_LIB) $(IMGGEN_LIB) $(ERR_LIB) \ $(XERCES_LIB) $(ECW_LIB) INCLUDES=3D$(GD_INC) $(TIFF_INC) $(JPEG_INC) \ $(PROJ_INC) $(REGEX_INC) $(GDAL_INC) $(OGR_INC) \ $(CURL_INC) $(MING_INC) $(PDF_INC) $(POSTGIS_INC) \ $(IMGGEN_INC) $(ERR_INC) MS_CFLAGS=3D$(INCLUDES) $(REGEX_OPT) $(STRINGS) $(POSTGIS) \ $(EPPL) $(PROJ) $(TIFF) $(JPEG) $(GD) $(OGR) $(WMS) \ $(WMSCLIENT) $(MING) $(IGNORE_MISSING_DATA) $(GDAL) \ -DFEATURE_INFO_HTML $(WFS) $(WFSCLIENT) $(PDF) $(EGIS) \ $(USE_GD_ANTIALIAS) ------=_NextPart_000_023B_01C38D8F.BB3EF150 Content-Type: application/octet-stream; name="Makefile.vc" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="Makefile.vc" # # makefile.vc - Main MapServer makefile for MSVC++ # # This VC++ makefile will build MAPSERVER.LIB, MAPSERV.EXE, and the = other # MapServer command-line programs. # # To use the makefile: # - Open a DOS prompt window # - Run the VCVARS32.BAT script to initialize the VC++ environment = variables # - Start the build with: nmake /f makefile.vc # # $Id: Makefile.vc,v 1.38 2003/06/05 13:53:04 assefa Exp $ # MAPSERVER_ROOT =3D . !INCLUDE nmake.opt OPTFLAGS =3D /nologo /Zi $(WARNING_LEVEL) $(DEBUG) BASE_CFLAGS =3D $(OPTFLAGS) -DWIN32 -D_WIN32 LDFLAGS =3D /NODEFAULTLIB:msvcrt /NODEFAULTLIB:libcd #LDFLAGS =3D /NODEFAULTLIB:libcd /DEBUG CFLAGS=3D$(BASE_CFLAGS) $(MS_CFLAGS) CC=3D cl LINK=3D link # # Main MapServer library. # MS_LIB =3D mapserver.lib MS_OBJS =3D mapbits.obj maphash.obj mapshape.obj mapxbase.obj \ mapparser.obj maplexer.obj mapindex.obj maptree.obj \ mapsearch.obj mapstring.obj mapsymbol.obj mapfile.obj \ maplegend.obj maputil.obj mapscale.obj mapquery.obj \ maplabel.obj maperror.obj mapprimitive.obj mapproject.obj\ mapraster.obj cgiutil.obj mapsde.obj mapogr.obj \ maptemplate.obj mappostgis.obj maplayer.obj mapresample.obj \ mapwms.obj mapwmslayer.obj mapgml.obj maporaclespatial.obj \ mapprojhack.obj mapdraw.obj mapgd.obj mapoutput.obj mapswf.obj \ mapgdal.obj mapwfs.obj mapwfslayer.obj mapows.obj maphttp.obj \ mappdf.obj mapcontext.obj mapdrawgdal.obj mapjoin.obj mapgraticule.obj = \ mapmygis.obj mapimagemap.obj mapcopy.obj $(EPPL_OBJ) $(REGEX_OBJ) MS_HDRS =3D map.h mapfile.h MS_EXE =3D mapserv.exe shp2img.exe legend.exe \ shptree.exe scalebar.exe sortshp.exe tile4ms.exe # # # default: all all: $(MS_LIB) $(MS_EXE) $(MS_OBJS): $(MS_HDRS) $(MS_LIB): $(MS_OBJS) copy $(GDAL_DIR)\gdal.pdb . lib /out:$(MS_LIB) $(MS_OBJS) $(MS_EXE): $(LIBS) gd:: cd gd-1.2 nmake /f makefile.nt OPTFLAGS=3D"$(OPTFLAGS)" cd .. .c.obj:=09 $(CC) $(CFLAGS) /c $*.c /Fo$*.obj .cpp.obj:=09 $(CC) $(CFLAGS) /c $*.cpp /Fo$*.obj .c.exe: $(CC) $(CFLAGS) /c $*.c /Fo$*.obj $(LINK) $(LDFLAGS) $*.obj $(LIBS) .cpp.exe: $(CC) $(CFLAGS) /c $*.cpp /Fo$*.obj $(LINK) $(LDFLAGS) $*.obj $(LIBS) clean: del *.obj del $(REGEX_OBJ) del $(MS_LIB) del $(MS_EXE) del *.pdb del *.exp del *.ilk # cd gd-1.2 # nmake -f makefile.nt clean # cd .. ------=_NextPart_000_023B_01C38D8F.BB3EF150-- From Lars-goran.Edholm@sandviken.se Wed Oct 8 19:32:20 2003 From: Lars-goran.Edholm@sandviken.se (Lars-goran Edholm) Date: Wed, 08 Oct 2003 20:32:20 +0200 Subject: [Mapserver-users] Mapclient - create new window In-Reply-To: <3F844354.4000801@frw.uva.nl> References: <3F844354.4000801@frw.uva.nl> Message-ID: Hi! What happens is that the page is cleared out from all menus etc and only a new ILayer is showing, the whole code for the remaining page is: jhart@frw.uva.nl skriver: >Lars-goran Edholm wrote: >> Is it possible to create a new window in runtime? >> Say you have a menu: >> >> m2 = new menu ( >> "zoomin.jpg",setZoomAll, >> "zoomout.jpg",setZoomOutAll, >> "pan.jpg",setPanAll, >> "zoomall.jpg",submitZoomAll, >> "Add a new window", newwin >> ) >> >> and a function: >> >> function newwin(){ >> w1 = new win(10,200,600,450,"Karta 1") >> w1.setServerURL(MSURL) >> w1.setVar("map",MSMAP) >> var wins = new Array(w1) >> w1.setExecOnResize(submitwin) >> w1.setVar("mapsize",w1.contentWidth + " " + w1.contentHeight) >> w1.setVar("mapext","1551957 6714299 1552357 6714699") >> w1.setVar("map_fastvisa_class_expression","([FNR]=210176493)") >> w1.submit() >> } >> >> This will not 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@sandviken.se >> > >Could you say what exactly goes wrong? I tried it out and got it working >without problems. > >Jan > Mvh Lars-Göran Edholm tel 026/24 14 36 1:e byggnadsinspektör Bygg- och miljökontoret 811 80 Sandviken lars-goran.edholm@sandviken.se From joe@otsys.com Wed Oct 8 19:33:39 2003 From: joe@otsys.com (Joe Bussell) Date: Wed, 08 Oct 2003 11:33:39 -0700 Subject: [Mapserver-users] Getting attributes of tiled shapefile data In-Reply-To: <45077766-F92B-11D7-B863-000393B98B56@frii.com> References: <45077766-F92B-11D7-B863-000393B98B56@frii.com> Message-ID: <3F845883.8070104@otsys.com> The trick is to use the LOCATION stored in the tile index. The call I use is as follows: my ( undef, $location ) = $dbfTable->get_record( $tile, "LOCATION" ); my $dbfFile = $pm{SHAPEPATH} . "/" . $location . ".dbf"; I include the complete subroutine that I use on my tiled city data for a demo. HTH, Joe Bussell On Time Systems ################################### from On Time Systems demo code # uses a tiled data set sub getNearestCityName { my $lat = shift; my $lon = shift; my $response = ""; if ( $lat && $lon ) { my $queryPt = new mapscript::pointObj(); $queryPt->{x} = $lon; $queryPt->{y} = $lat; my $map = new mapscript::mapObj( $pm{MAPFILE} ) or croak('Unable to Open Default MapFile!'); $map->{shapepath} = $pm{SHAPEPATH} . "/"; my $layerObj = undef; $layerObj = $map->getLayerByName('cityCenterIn'); $layerObj->{status} = $mapscript::MS_ON; $layerObj->{type} = $mapscript::MS_LAYER_POINT; $layerObj->{tileindex} = $pm{SHAPEPATH} . "/td_sm.shp"; if( $layerObj->queryByPoint( $map, $queryPt, $mapscript::MS_SINGLE, 0 ) ) { $response .= ""; } else { my $results = $layerObj->{resultcache}; my $num_results = $results->{numresults}; my $rslt = $layerObj->getResult(0); my $tile = $rslt->{tileindex}; # $response .= "
\nFound tileindex at: $tile.
\n"; my $dbfFileName = $pm{SHAPEPATH} . "/td_sm.dbf"; my $fn = ""; if ( $dbfFileName =~ /(.*)/ ) # this is not real taint # checking. You should # use a real regex { $fn = $1; } my $dbfTable = new XBase("name" => $fn ) or croak "Cannot open dbfFile $fn $!\n"; my ( undef, $location ) = $dbfTable->get_record( $tile, "LOCATION" ); my $record = $rslt->{shapeindex}; # $response .= "
\nFound point at: $record.
\n"; my $dbfFile = $pm{SHAPEPATH} . "/" . $location . ".dbf"; if ( $dbfFile =~ /(.*)/ ) # this is not real taint # checking. You should # use a real regex { $fn = $1; } my $dbfT= new XBase("name" => $fn ) or croak "Cannot open dbfFile $fn $!\n"; my ( $deleted, $name ) = $dbfT->get_record( $record, "NAME" ); $response .= "\n
Nearest City: $name
\n"; } undef $map; } return $response; } Sean Gillies wrote: > I'm using a layer with tiled shapefile data in a MapScript app. When using > the query* methods I get set of results and each result has tileindex and > shapeindex attributes so that I can get get the appropriate shape from > the shapefile. > > However, how about the shape attributes? With untiled data in one > shapefile, > I'd just get the appropriate record from the single dbf file using dbflib > (Python) or XBase (Perl). But now that the attributes are spread across > N dbf files, I'm at a loss on which dbf file and which record given the > pair of tileindex and shapeindex. > > Perhaps it's possible to access the result.tileindex (or tileindex-1) > record of > the layer's tileindex dbf file to find the appropriate shapefile and then > get the result.shapeindex record from that shapefile's dbf? I'd be > grateful > to hear about a less convoluted way! > > cheers, > Sean > > -- > Sean Gillies > sgillies at frii dot com > http://www.frii.com/~sgillies > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From morissette@dmsolutions.ca Wed Oct 8 19:55:16 2003 From: morissette@dmsolutions.ca (Daniel Morissette) Date: Wed, 08 Oct 2003 14:55:16 -0400 Subject: [Mapserver-users] WMS Cllient for ArcView 3.X In-Reply-To: <01ab01c38e22$2b2b0de0$020002c0@SHARK> References: <3F820828.5000207@refractions.net> <18bf01c38d5e$5cb20a40$020002c0@SHARK> <3F82FF9C.4060209@refractions.net> <18dc01c38d63$e9dd9ec0$020002c0@SHARK> <3F83164E.3060809@refractions.net> <3F842928.7020008@dmsolutions.ca> <3F843262.6070207@refractions.net> <3F843B07.80007@dmsolutions.ca> <01ab01c38e22$2b2b0de0$020002c0@SHARK> Message-ID: <3F845D94.8000009@dmsolutions.ca> Brent Fraser wrote: > > Some background: > > In fact Mapserver failed to create an image because the IMAGEPATH in the WEB > object was not set to an existing directory. This does not generate a error > during map file parsing. That's ok since I was using Mapserver as a WMS > server, it doesn't need a temp dir for the images as it sends them as a data > stream to the web server and on to the browser (or so I thought). However, > msWMSGetMap attempts to do a msSaveImage, which does a msSaveImageGDAL (I > had switched my outputformat from GD to the GDAL driver), which tries to > write a temp file to IMAGEPATH. That failed, and displayed an error showing > all the tiles it couldn't find in the tile index. > ... > Some suggestions for Mapserver (and associated utilities): > > 1. Fix the XML error reporting. Internet Explorer complains that it's not > valid XML (I then do a "view source" to see the text generated from > Mapserver). > I filed this as bug 457: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=457 > 2. Report Mapfile errors as XML. We should be able to check if "Request=" > is a CGI parameter. Or use some other non-mapfile mechanism to determine if > the protocol is OGC. > I filed bug 456 to at least handle the case above properly. http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=456 We cannot easily return exceptions as XML or INIMAGE properly if they happen before we start parsing the URL in msWMSDispatch(), so this part of your suggestion will not be handled in bug 456. There is more to this than just checking that REQUEST= is set, there are various formats of exceptions depending on WMS versions, and also for WFS. If you really want that then please file a separate enhancement bug but it's likely to go low in the list of priorities due to the small benefit relative to the complexity and mess it would create in MapServer (i.e. that would mean having WMS/WFS exception handling code in MapServer's generic error routines). > 3. Build a "lint"-like utility for map files to report errors, and other > less serious issues. This has been requested a few times over the years. > If all you need is a syntax checker then you can do that already, either via a web browser: http://hostname/cgi-bin/mapserv?map=/path/to/yourmap.map or at the command-line: ./mapserv "QUERY_STRING=map=/path/to/yourmap.map" In both cases you'll get errors if your mapfile contains syntax errors. I suspect you want something more advanced that would tell you that some parameter is missing or has an invalid value, for instance in the above case something that would tell you that IMAGEPATH is missing. As you know almost everything is optional in a mapfile, parameters that are normally optional become required depending on context. So it would be quite a task for someone to implement a mapfile checker that would be smart enough to have told you that since you use a GDAL outputformat in your mapfile then IMAGEPATH is required. Daniel -- ------------------------------------------------------------ Daniel Morissette morissette@dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From CJPRYOR@sandia.gov Wed Oct 8 21:17:55 2003 From: CJPRYOR@sandia.gov (Pryor, Clayton J) Date: Wed, 8 Oct 2003 14:17:55 -0600 Subject: [Mapserver-users] Help with ArcSDE Layer Connection/Data spec ification Message-ID: Setting up the "esri_sde" alias in the /etc/services file is very nice and works fine. At one time I believed that my problem was with the name. However, with the combinations for specifying the name that I have been using and considering Paul's comment about the name, I have come to believe that something else must be going on. Let me explain. First, before posting my original message, I tried the following DATA definitions: 1) DATA "nercSubRegions, shape" #layer name with no schema 2) DATA "SDE.nercSubregions,shape" #layer name with schema 3) DATA "insistdb.SDE.nercSubregions,shape" 4) DATA "insistdb.SDE.NorthAmerica.SDE.nercSubregions,shape" Options 1 and 2 resulted in the following error: Internal Server Error: (from apache web server log) "Premature end of script headers: mapserv, referer: http://.../demoSNL/demo_init.html" Options 3 and 4 resulted in the following error: Web page result: "MapServer Message msDrawMap():Image handling error. Failed to draw layer named 'nercsubrgnstatus'. msSDELayerOpen(): SDE error. SE_layer_get_infor(): Layer not found. (-20)" Based on the errors alone (undefined internal mapserv error vs. Layer not found error) I was originally thinking that options 3 and 4 were an improvement over options 1 and 2. However, with Paul's comments about the naming I began to realize that options 1) and 2) were probably correct with regard to the name while options 3 and 4 were off base. Therefore, I tried the following intentionally misnamed layers to see what resulted. 5) DATA "SDE.xx,shape" # garbage 1 6) DATA "xx,shape" # garbage 2 Both returned the Layer not found error. This is disconcerting to me because it indicates that the correct naming is returning an unreported error from mapserv. To try to eliminate any other script conflicts, I have tried to simplify my application as much as possible by eliminating all but the basics. I am including all of the relevant source code in this email in hopes that someone can make sense of the problem. Please let me know if there are other files that I should attach. Perhaps this is some sort of configuration problem???? Once again, thanks in advance for any help. **************************************************************************** demo_init.html **************************************************************************** MapServer DemoSNL Interface

MapServer DemoSNL Interface


Click on the initialize button to fire up the demo.


**************************************************************************** demo.html **************************************************************************** MapServer Demo Interface

MapServer Demo Interface


 Powered by MapServer

Browse map
Query feature
Query multiple features


Zoom In Pan Zoom Out

Zoom Size

Legend




**************************************************************************** demo.map **************************************************************************** # # Start of map file # NAME DEMO STATUS ON SIZE 600 600 #TODO: LOOKUP EXTENT #EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897 EXTENT -8574351.87399496 -8362643.00728895 9017834.16222906 9229543.02893507 UNITS METERS # SHAPEPATH "data" IMAGECOLOR 255 255 255 # you may need to change this to match your MapServer build #IMAGETYPE PNG # # Projection definition, consult the PROJ.4 documentation for parameter discussion # #PROJECTION # "proj=utm" # "ellps=GRS80" # "zone=15" # "north" # "no_defs" # # OR: # # "init=epsg:26915" #END # # Start of web interface definition (including WMS enabling metadata) # WEB # HEADER demo_header.html TEMPLATE demo.html # FOOTER demo_footer.html MINSCALE 1000 MAXSCALE 1550000 # IMAGEPATH "set in demo_init.html" # IMAGEURL "set in demo_init.html" # METADATA # WMS_TITLE "UMN MapServer SNL Demo" # WMS_ABSTRACT "This is the UMN MapServer demonstration application as modified for SNL." # WMS_ACCESSCONSTRAINTS none # change this value to match your setup # WMS_ONLINERESOURCE "http://134.253.158.45/demoSNL/demo_init.html" # WMS_SRS "EPSG:26915" # END END QUERYMAP SIZE 200 200 STATUS OFF STYLE HILITE COLOR 255 0 0 END # # Start of reference map # REFERENCE IMAGE graphics/reference.png # todo: change this! # EXTENT 393234.393701263 5205405.16440722 495769.579718949 5307959.02579127 EXTENT -8574351.87399496 -8362643.00728895 9017834.16222906 9229543.02893507 SIZE 120 120 STATUS OFF 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 OFF 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 STATUS OFF END # # Start of symbol definitions (we're only using a few) # #SYMBOL # NAME 'circle' # TYPE ELLIPSE # POINTS 1 1 END # FILLED TRUE #END # # Start of layer definitions # LAYER NAME nercsubrgnstatus # CONNECTION "sde_w-24,port:5151,INSISTDB,usrID,usrPwd" # CONNECTION "sde_w-24,port:5151,,usrID,usrPwd" # CONNECTION "ORCA-WKS-1,port:5151,INSISTDB,usrID,usrPwd" # CONNECTION "ORCA-WKS-1,port:5151,,usrID,usrPwd" # CONNECTION "ORCA-WKS-1,sde_w-24,SDE,usrID,usrPwd" # CONNECTION "ORCA-WKS-1,port:5151,SDE,usrID,usrPwd" # CONNECTION "ORCA-WKS-1,port:5151,null,usrID,usrPwd" # CONNECTION "orca-wks-1,port:5151,null,usrID,usrPwd" # CONNECTION "orca-wks-1,port:5151,insistdb,usrID,usrPwd" CONNECTION "orca-wks-1,esri_sde,insistdb,usrID,usrPwd" CONNECTIONTYPE sde TYPE POLYGON STATUS DEFAULT DATA "nercSubRegions,shape" # DATA "SDE.nercSubRegions,shape" ## DATA "SDE.SDE.nercSubRegions,shape" ## DATA "SDE.SDE.NorthAmerica.nercSubRegions,shape" ## DATA "SDE.NorthAmerica.nercSubRegions,SHAPE" ## DATA "insistdb.SDE.nercSubRegions,shape" ## DATA "insistdb.SDE.NorthAmerica.SDE.nercSubRegions,shape" ## DATA "insistdb.SDE.NorthAmerica.nercSubRegions,shape" ## DATA "insistdb.NorthAmerica.nercSubRegions,shape" ## DATA "insistdb.xx,shape" ## DATA "SDE.xx,shape" ## DATA "xx,shape" CLASSITEM 'NERC_SubRegions' # CLASS # EXPRESSION 'Itasca' # OUTLINECOLOR 128 128 128 # COLOR 225 225 185 # END CLASS # build classes by status later EXPRESSION /./ # SIZE 2 # will this make the lines thicker? OUTLINECOLOR 128 128 128 COLOR 0 255 0 END # 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 END #LAYER # NAME usstates # GROUP cities # don't use here but good for Canada and Mexico # TYPE POLYGON # CONNECTION "ORCA-WKS-1,port:5151,SDE,usrID,usrPwd" # CONNECTIONTYPE sde # DATA "SDE.UNITEDSTATES,SHAPE" # DATA "UNITEDSTATES,SHAPE" # STATUS DEFAULT # CLASSITEM US_States_Outline # CLASS # NAME "US States Outlines" # EXPRESSION /./ # OUTLINECOLOR 128 128 128 # COLOR 255 255 255 # should be transparrent # TEMPLATE "mcd90py2.html" # END #END # usstates END # Map File Sincerely, Clay Pryor ------------------------------------------------------------ Clayton J. Pryor phone (505) 845-3557 Sandia National Laboratories Critical Infrastructure Surety fax (505) 844-9641 PO Box 5800 MS 0451 Albuquerque NM 87185-0451 email cjpryor@sandia.gov ------------------------------------------------------------ -----Original Message----- From: Paul Ramsey [mailto:pramsey@refractions.net] Sent: Wednesday, October 08, 2003 12:18 PM To: Pryor, Clayton J Cc: 'mapserver-users@lists.gis.umn.edu'; InSIST Subject: Re: [Mapserver-users] Help with ArcSDE Layer Connection/Data specification Pryor, Clayton J wrote: > ArcSDE server information (per our ArcSDE/Oracle database manager): > > host name: orca-wks-1 > instance name: port:5151 > database name: insistdb > > > Map File Connection Definition: > > NAME nercsbrgnstatus > CONNECTION "orca-wks-1,port:5151,insistdb,userid,userpwd" > CONNECTIONTYPE sde Two possible things, firstly, are you sure that 'port:5151' is what you want for your instance? You could try a bare '5151'. Or you could edit /etc/services and add esri_sde there as a tcp service on port 5151, then use 'esri_sde' as the instance. SDE is wierd. Secondly, it looks like your table name is right, but you can never be too sure. Tables I have used have almost always been inside schemas, and were referenced as SCHEMANAME.TABLENAME. Paul -- __ / | Paul Ramsey | Refractions Research | Email: pramsey@refractions.net | Phone: (250) 885-0632 \_ From neelapalas@yahoo.com Wed Oct 8 21:37:13 2003 From: neelapalas@yahoo.com (srinivas neelapala) Date: Wed, 8 Oct 2003 13:37:13 -0700 (PDT) Subject: [Mapserver-users] MS 3.5 Tutorial In-Reply-To: <0734A2B8CF21D711B98B00080224869C062DA017@exanpmb3.arinc.com> Message-ID: <20031008203713.38094.qmail@web20001.mail.yahoo.com> Hello, currently i am trying to work my way through 3.5 turorials. i have created a map file and am trying to get the map in my browser. it works when i give the full path name in the browser: 1) http://localhost/Scripts/mapserv.exe?map=C:\Inetpub\wwwroot\IRS\IRS3.map&mode=map but doesn't when i try this: 2) http://localhost/Scripts/mapserv.exe?map=/IRS/IRS3.map&mode=map IRS is the folder that i have created in the wwwroot directory. i am using MS 3.6 & IIS as per the tutorials i think i needn't always specify the full path. Any help is appreciated Thanks Srini __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From CJPRYOR@sandia.gov Wed Oct 8 22:12:16 2003 From: CJPRYOR@sandia.gov (Pryor, Clayton J) Date: Wed, 8 Oct 2003 15:12:16 -0600 Subject: [Mapserver-users] Help with ArcSDE Layer Connection/Data spec ification Message-ID: Reading other posts on troubleshooting MapServer, I came across the suggestion to run mapserv from the command line with the same parameters as from the html page. When I do so, I get interesting results as shown below. ./mapserv?map=/usr/local/apache2/htdocs/demoSNL/demo.map&layer=nercsubrgnsta tus&zoomsize=2&program=/cgi-bin/mapserv&map_web_imagepath=/usr/local/apache2 /htdocs/tmp/&map_web_imageurl=/tmp/ [11] 9803 [12] 9804 [13] 9805 [14] 9806 bash: ./mapserv?map=/usr/local/apache2/htdocs/demoSNL/demo.map: No such file or directory [15] 9807 [10] Done map_web_imagepath=/usr/local/apache2/htdocs/tmp/ [11] Exit 127 ./mapserv?map=/usr/local/apache2/htdocs/demoSNL/demo.map [12] Done layer=nercsubrgnstatus [13] Done zoomsize=2 [14] Done program=/cgi-bin/mapserv The interesting thing about these results is that even though it says "No such file or directory" with regard to the demo.map file, it is obviously reading the demo.map file since that is where the connection information is that is generating the missing layer error when the layer is not specified properly (and it read it before I tried modifying it to use ArcSDE). So, I figure the problem must be with some file specification within the demo.map file but I can not find anything that appears to be wrong. I'm still baffled but perhaps this will help those of you who are trying to help me. In the mean-time, I will try starting over again from the existing demo application. My approach is to take the working demo application and modify it to read a layer from ArcSDE instead of the default shape files. I started out by changing only what I thought needed to be changed. However, in the process of trying to debug the problem, I began commenting out more and more things from the map file. If this does not work I will go through the process of trying to build the entire application from scratch. It will be a good learning experience anyway. Any suggestions are appreciated. Thanks again, Clay Pryor -----Original Message----- From: Pryor, Clayton J Sent: Wednesday, October 08, 2003 2:18 PM To: 'mapserver-users@lists.gis.umn.edu' Cc: InSIST Subject: RE: [Mapserver-users] Help with ArcSDE Layer Connection/Data specification Setting up the "esri_sde" alias in the /etc/services file is very nice and works fine. At one time I believed that my problem was with the name. However, with the combinations for specifying the name that I have been using and considering Paul's comment about the name, I have come to believe that something else must be going on. Let me explain. First, before posting my original message, I tried the following DATA definitions: 1) DATA "nercSubRegions, shape" #layer name with no schema 2) DATA "SDE.nercSubregions,shape" #layer name with schema 3) DATA "insistdb.SDE.nercSubregions,shape" 4) DATA "insistdb.SDE.NorthAmerica.SDE.nercSubregions,shape" Options 1 and 2 resulted in the following error: Internal Server Error: (from apache web server log) "Premature end of script headers: mapserv, referer: http://.../demoSNL/demo_init.html" Options 3 and 4 resulted in the following error: Web page result: "MapServer Message msDrawMap():Image handling error. Failed to draw layer named 'nercsubrgnstatus'. msSDELayerOpen(): SDE error. SE_layer_get_infor(): Layer not found. (-20)" Based on the errors alone (undefined internal mapserv error vs. Layer not found error) I was originally thinking that options 3 and 4 were an improvement over options 1 and 2. However, with Paul's comments about the naming I began to realize that options 1) and 2) were probably correct with regard to the name while options 3 and 4 were off base. Therefore, I tried the following intentionally misnamed layers to see what resulted. 5) DATA "SDE.xx,shape" # garbage 1 6) DATA "xx,shape" # garbage 2 Both returned the Layer not found error. This is disconcerting to me because it indicates that the correct naming is returning an unreported error from mapserv. To try to eliminate any other script conflicts, I have tried to simplify my application as much as possible by eliminating all but the basics. I am including all of the relevant source code in this email in hopes that someone can make sense of the problem. Please let me know if there are other files that I should attach. Perhaps this is some sort of configuration problem???? Once again, thanks in advance for any help. **************************************************************************** demo_init.html **************************************************************************** MapServer DemoSNL Interface

MapServer DemoSNL Interface


Click on the initialize button to fire up the demo.


**************************************************************************** demo.html **************************************************************************** MapServer Demo Interface

MapServer Demo Interface


 Powered by MapServer

Browse map
Query feature
Query multiple features


Zoom In Pan Zoom Out

Zoom Size

Legend




**************************************************************************** demo.map **************************************************************************** # # Start of map file # NAME DEMO STATUS ON SIZE 600 600 #TODO: LOOKUP EXTENT #EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897 EXTENT -8574351.87399496 -8362643.00728895 9017834.16222906 9229543.02893507 UNITS METERS # SHAPEPATH "data" IMAGECOLOR 255 255 255 # you may need to change this to match your MapServer build #IMAGETYPE PNG # # Projection definition, consult the PROJ.4 documentation for parameter discussion # #PROJECTION # "proj=utm" # "ellps=GRS80" # "zone=15" # "north" # "no_defs" # # OR: # # "init=epsg:26915" #END # # Start of web interface definition (including WMS enabling metadata) # WEB # HEADER demo_header.html TEMPLATE demo.html # FOOTER demo_footer.html MINSCALE 1000 MAXSCALE 1550000 # IMAGEPATH "set in demo_init.html" # IMAGEURL "set in demo_init.html" # METADATA # WMS_TITLE "UMN MapServer SNL Demo" # WMS_ABSTRACT "This is the UMN MapServer demonstration application as modified for SNL." # WMS_ACCESSCONSTRAINTS none # change this value to match your setup # WMS_ONLINERESOURCE "http://134.253.158.45/demoSNL/demo_init.html" # WMS_SRS "EPSG:26915" # END END QUERYMAP SIZE 200 200 STATUS OFF STYLE HILITE COLOR 255 0 0 END # # Start of reference map # REFERENCE IMAGE graphics/reference.png # todo: change this! # EXTENT 393234.393701263 5205405.16440722 495769.579718949 5307959.02579127 EXTENT -8574351.87399496 -8362643.00728895 9017834.16222906 9229543.02893507 SIZE 120 120 STATUS OFF 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 OFF 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 STATUS OFF END # # Start of symbol definitions (we're only using a few) # #SYMBOL # NAME 'circle' # TYPE ELLIPSE # POINTS 1 1 END # FILLED TRUE #END # # Start of layer definitions # LAYER NAME nercsubrgnstatus # CONNECTION "sde_w-24,port:5151,INSISTDB,usrID,usrPwd" # CONNECTION "sde_w-24,port:5151,,usrID,usrPwd" # CONNECTION "ORCA-WKS-1,port:5151,INSISTDB,usrID,usrPwd" # CONNECTION "ORCA-WKS-1,port:5151,,usrID,usrPwd" # CONNECTION "ORCA-WKS-1,sde_w-24,SDE,usrID,usrPwd" # CONNECTION "ORCA-WKS-1,port:5151,SDE,usrID,usrPwd" # CONNECTION "ORCA-WKS-1,port:5151,null,usrID,usrPwd" # CONNECTION "orca-wks-1,port:5151,null,usrID,usrPwd" # CONNECTION "orca-wks-1,port:5151,insistdb,usrID,usrPwd" CONNECTION "orca-wks-1,esri_sde,insistdb,usrID,usrPwd" CONNECTIONTYPE sde TYPE POLYGON STATUS DEFAULT DATA "nercSubRegions,shape" # DATA "SDE.nercSubRegions,shape" ## DATA "SDE.SDE.nercSubRegions,shape" ## DATA "SDE.SDE.NorthAmerica.nercSubRegions,shape" ## DATA "SDE.NorthAmerica.nercSubRegions,SHAPE" ## DATA "insistdb.SDE.nercSubRegions,shape" ## DATA "insistdb.SDE.NorthAmerica.SDE.nercSubRegions,shape" ## DATA "insistdb.SDE.NorthAmerica.nercSubRegions,shape" ## DATA "insistdb.NorthAmerica.nercSubRegions,shape" ## DATA "insistdb.xx,shape" ## DATA "SDE.xx,shape" ## DATA "xx,shape" CLASSITEM 'NERC_SubRegions' # CLASS # EXPRESSION 'Itasca' # OUTLINECOLOR 128 128 128 # COLOR 225 225 185 # END CLASS # build classes by status later EXPRESSION /./ # SIZE 2 # will this make the lines thicker? OUTLINECOLOR 128 128 128 COLOR 0 255 0 END # 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 END #LAYER # NAME usstates # GROUP cities # don't use here but good for Canada and Mexico # TYPE POLYGON # CONNECTION "ORCA-WKS-1,port:5151,SDE,usrID,usrPwd" # CONNECTIONTYPE sde # DATA "SDE.UNITEDSTATES,SHAPE" # DATA "UNITEDSTATES,SHAPE" # STATUS DEFAULT # CLASSITEM US_States_Outline # CLASS # NAME "US States Outlines" # EXPRESSION /./ # OUTLINECOLOR 128 128 128 # COLOR 255 255 255 # should be transparrent # TEMPLATE "mcd90py2.html" # END #END # usstates END # Map File Sincerely, Clay Pryor ------------------------------------------------------------ Clayton J. Pryor phone (505) 845-3557 Sandia National Laboratories Critical Infrastructure Surety fax (505) 844-9641 PO Box 5800 MS 0451 Albuquerque NM 87185-0451 email cjpryor@sandia.gov ------------------------------------------------------------ -----Original Message----- From: Paul Ramsey [mailto:pramsey@refractions.net] Sent: Wednesday, October 08, 2003 12:18 PM To: Pryor, Clayton J Cc: 'mapserver-users@lists.gis.umn.edu'; InSIST Subject: Re: [Mapserver-users] Help with ArcSDE Layer Connection/Data specification Pryor, Clayton J wrote: > ArcSDE server information (per our ArcSDE/Oracle database manager): > > host name: orca-wks-1 > instance name: port:5151 > database name: insistdb > > > Map File Connection Definition: > > NAME nercsbrgnstatus > CONNECTION "orca-wks-1,port:5151,insistdb,userid,userpwd" > CONNECTIONTYPE sde Two possible things, firstly, are you sure that 'port:5151' is what you want for your instance? You could try a bare '5151'. Or you could edit /etc/services and add esri_sde there as a tcp service on port 5151, then use 'esri_sde' as the instance. SDE is wierd. Secondly, it looks like your table name is right, but you can never be too sure. Tables I have used have almost always been inside schemas, and were referenced as SCHEMANAME.TABLENAME. Paul -- __ / | Paul Ramsey | Refractions Research | Email: pramsey@refractions.net | Phone: (250) 885-0632 \_ From pramsey@refractions.net Wed Oct 8 23:11:14 2003 From: pramsey@refractions.net (Paul Ramsey) Date: Wed, 08 Oct 2003 15:11:14 -0700 Subject: [Mapserver-users] Again the ArcView WMS Client Message-ID: <3F848B82.2090101@refractions.net> For those following along, there is a fresh beta on the download site: http://www.refractions.net/wms We found a couple install bugs, and one bad bug in aspect ratio calculation. This release does not yet have SSL support, that will be RSN. We have also added alot more sample ogc files, including one for Mars! -- __ / | Paul Ramsey | Refractions Research | Email: pramsey@refractions.net | Phone: (250) 885-0632 \_ From CJPRYOR@sandia.gov Wed Oct 8 23:09:24 2003 From: CJPRYOR@sandia.gov (Pryor, Clayton J) Date: Wed, 8 Oct 2003 16:09:24 -0600 Subject: [Mapserver-users] Help with ArcSDE Layer Connection/Data spec ification Message-ID: UPDATE! Please forgive me for sending so many messages to the list. I have truncated this one so as not to send so much redundant information but still retain relevant context. The problem appears to be in the CLASSITEM/CLASS definition. The problem goes away when I comment these definitions out of the demo.map file. Of course, I can not see the layer either but this might help those of you trying to help me. Tomorrow I will take a closer look at the CLASSITEM/CLASS specifications to see if I can get them right in this map file. Thanks again, Clay Pryor **************************************************************************** demo.map **************************************************************************** # # Start of map file # NAME DEMO STATUS ON SIZE 600 600 #TODO: LOOKUP EXTENT #EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897 EXTENT -8574351.87399496 -8362643.00728895 9017834.16222906 9229543.02893507 UNITS METERS # SHAPEPATH "data" IMAGECOLOR 255 255 255 # you may need to change this to match your MapServer build #IMAGETYPE PNG # # Projection definition, consult the PROJ.4 documentation for parameter discussion # #PROJECTION # "proj=utm" # "ellps=GRS80" # "zone=15" # "north" # "no_defs" # # OR: # # "init=epsg:26915" #END # # Start of web interface definition (including WMS enabling metadata) # WEB # HEADER demo_header.html TEMPLATE demo.html # FOOTER demo_footer.html MINSCALE 1000 MAXSCALE 1550000 # IMAGEPATH "set in demo_init.html" # IMAGEURL "set in demo_init.html" # METADATA # WMS_TITLE "UMN MapServer SNL Demo" # WMS_ABSTRACT "This is the UMN MapServer demonstration application as modified for SNL." # WMS_ACCESSCONSTRAINTS none # change this value to match your setup # WMS_ONLINERESOURCE "http://134.253.158.45/demoSNL/demo_init.html" # WMS_SRS "EPSG:26915" # END END QUERYMAP SIZE 200 200 STATUS OFF STYLE HILITE COLOR 255 0 0 END # # Start of reference map # REFERENCE IMAGE graphics/reference.png # todo: change this! # EXTENT 393234.393701263 5205405.16440722 495769.579718949 5307959.02579127 EXTENT -8574351.87399496 -8362643.00728895 9017834.16222906 9229543.02893507 SIZE 120 120 STATUS OFF 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 OFF 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 STATUS OFF END # # Start of symbol definitions (we're only using a few) # #SYMBOL # NAME 'circle' # TYPE ELLIPSE # POINTS 1 1 END # FILLED TRUE #END # # Start of layer definitions # LAYER NAME nercsubrgnstatus # CONNECTION "sde_w-24,port:5151,INSISTDB,usrID,usrPwd" # CONNECTION "sde_w-24,port:5151,,usrID,usrPwd" # CONNECTION "ORCA-WKS-1,port:5151,INSISTDB,usrID,usrPwd" # CONNECTION "ORCA-WKS-1,port:5151,,usrID,usrPwd" # CONNECTION "ORCA-WKS-1,sde_w-24,SDE,usrID,usrPwd" # CONNECTION "ORCA-WKS-1,port:5151,SDE,usrID,usrPwd" # CONNECTION "ORCA-WKS-1,port:5151,null,usrID,usrPwd" # CONNECTION "orca-wks-1,port:5151,null,usrID,usrPwd" # CONNECTION "orca-wks-1,port:5151,insistdb,usrID,usrPwd" CONNECTION "orca-wks-1,esri_sde,insistdb,usrID,usrPwd" CONNECTIONTYPE sde TYPE POLYGON STATUS DEFAULT DATA "nercSubRegions,shape" # DATA "SDE.nercSubRegions,shape" ## DATA "SDE.SDE.nercSubRegions,shape" ## DATA "SDE.SDE.NorthAmerica.nercSubRegions,shape" ## DATA "SDE.NorthAmerica.nercSubRegions,SHAPE" ## DATA "insistdb.SDE.nercSubRegions,shape" ## DATA "insistdb.SDE.NorthAmerica.SDE.nercSubRegions,shape" ## DATA "insistdb.SDE.NorthAmerica.nercSubRegions,shape" ## DATA "insistdb.NorthAmerica.nercSubRegions,shape" ## DATA "insistdb.xx,shape" ## DATA "SDE.xx,shape" ## DATA "xx,shape" CLASSITEM 'NERC_SubRegions' # CLASS # EXPRESSION 'Itasca' # OUTLINECOLOR 128 128 128 # COLOR 225 225 185 # END CLASS # build classes by status later EXPRESSION /./ # SIZE 2 # will this make the lines thicker? OUTLINECOLOR 128 128 128 COLOR 0 255 0 END # 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 END #LAYER # NAME usstates # GROUP cities # don't use here but good for Canada and Mexico # TYPE POLYGON # CONNECTION "ORCA-WKS-1,port:5151,SDE,usrID,usrPwd" # CONNECTIONTYPE sde # DATA "SDE.UNITEDSTATES,SHAPE" # DATA "UNITEDSTATES,SHAPE" # STATUS DEFAULT # CLASSITEM US_States_Outline # CLASS # NAME "US States Outlines" # EXPRESSION /./ # OUTLINECOLOR 128 128 128 # COLOR 255 255 255 # should be transparrent # TEMPLATE "mcd90py2.html" # END #END # usstates END # Map File From dbarron@ddive.com Thu Oct 9 01:59:52 2003 From: dbarron@ddive.com (Dan Barron) Date: Wed, 08 Oct 2003 16:59:52 -0800 Subject: [Mapserver-users] Output Map Size Limits? Message-ID: <6.0.0.22.0.20031008165712.027d50f0@mail.ddive.com> Hello, Anyone know the upper limit to output map size in pixels from Mapserver? Is there one? I'm using v4.0. Thanks! Dan Barron dbarron@ddive.com From Gunter.Rieth@stadt.mainz.de Thu Oct 9 07:43:29 2003 From: Gunter.Rieth@stadt.mainz.de (Gunter.Rieth@stadt.mainz.de) Date: Thu, 9 Oct 2003 08:43:29 +0200 Subject: Antwort: [Mapserver-users] Output Map Size Limits? In-Reply-To: <6.0.0.22.0.20031008165712.027d50f0@mail.ddive.com> Message-ID: Hallo Dan, i already produced some nice gtiff with Mapserver 4.0 using 10000x10000 pixel for an area of 500x500 meters. but watch out, the greater the pixel size the longer mapserver works on it ;-) (but just a few minutes). Mit freundlichen Grüßen Gunter Rieth Kommunale Datenzentrale Mainz -Eigenbetrieb der Stadt Mainz- Hechtsheimer Straße 35 55131 Mainz Tel.: 06131/12-3557 Fax.: 06131/12-2267 eMail: gunter.rieth@stadt.mainz.de Notes: Gunter Rieth/KDZ/Mainz URL: http://www.kdz.mainz.de Dan Barron Gesendet von: mapserver-users-admin@lists.gis.umn.edu 09.10.2003 02:59 An mapserver-users@lists.gis.umn.edu Kopie Thema [Mapserver-users] Output Map Size Limits? Hello, Anyone know the upper limit to output map size in pixels from Mapserver? Is there one? I'm using v4.0. Thanks! Dan Barron dbarron@ddive.com _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From Lars-goran.Edholm@sandviken.se Thu Oct 9 07:45:28 2003 From: Lars-goran.Edholm@sandviken.se (Lars-goran Edholm) Date: Thu, 09 Oct 2003 08:45:28 +0200 Subject: [Mapserver-users] Mapclient - create new window Message-ID: I found that the problem with creating a new window dynamical is a browser problem. It doesnt work in Internet Explorer 6.0 but it works fine in Netscape 7.1. In IE6.0: with function newwin(){ w1 = new win(10,200,600,450,"Karta 1") } The page is cleared out from all menus etc and only a new ILayer is showing, the whole code for the remaining page is: with function newwin(){ w1 = new win(10,200,9,9,"Karta 1") } The page is cleared out from all menus etc and a window in size aprox 3x3 pixels is created. with function newwin(){ w1 = new win(10,200,10,10,"Karta 1") } The page is cleared out from all menus etc and only a new ILayer is showing, the whole code for the remaining page is: with function newwin(){ w1 = new win(10,200,600,450) } Menus etc is showing and a new window is created but it cant be moved or resized. Mvh Lars-Göran Edholm tel 026/24 14 36 1:e byggnadsinspektör Bygg- och miljökontoret 811 80 Sandviken lars-goran.edholm@sandviken.se From mamwake@yahoo.com Thu Oct 9 07:49:46 2003 From: mamwake@yahoo.com (ronny) Date: Wed, 8 Oct 2003 23:49:46 -0700 (PDT) Subject: [Mapserver-users] no image(s) Message-ID: <20031009064946.25183.qmail@web40305.mail.yahoo.com> --0-2078729549-1065682186=:25171 Content-Type: text/plain; charset=us-ascii Content-Id: Content-Disposition: inline Note: forwarded message attached. ===== ronny __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com --0-2078729549-1065682186=:25171 Content-Type: message/rfc822 Received: from [62.8.65.170] by web40302.mail.yahoo.com via HTTP; Wed, 08 Oct 2003 08:30:37 PDT Date: Wed, 8 Oct 2003 08:30:37 -0700 (PDT) From: ronny Subject: no image(s) To: MapsHelp MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="0-117431429-1065627037=:23992" Content-Length: 789 --0-117431429-1065627037=:23992 Content-Type: text/plain; charset=us-ascii Content-Id: Content-Disposition: inline am trying to load map but am getting blank image map,,i sincerely don't know what am doing wrong..my map file is attached herein. redhat linux 8.0.. MS4.0. ===== ronny __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com --0-117431429-1065627037=:23992 Content-Type: application/octet-stream; name="test.map" Content-Transfer-Encoding: base64 Content-Description: test.map Content-Disposition: attachment; filename="test.map" TUFQCiAgRk9OVFNFVCAuLi9mb250cy9mb250cy5saXN0CiAgTkFNRSAnQVVU T19ST1RBVEUnCiAgU1RBVFVTIE9GRgogIEVYVEVOVCAwIDAgMjk5IDM5OSAj IGR1bW15CiAgU0laRSAzMDAgMzAwCQoKICBMQVlFUgogICAgTkFNRSB0ZXN0 CiAgICBUWVBFIExJTkUKICAgIFNUQVRVUyBERUZBVUxUCiAgICBEQVRBICIu Li9kYXRhL2xpbmVzIgogICAgTEFCRUxJVEVNICJhbm5vIiAgICAKICAgIFRS QU5TRk9STSBPRkYKICAgIENMQVNTCiAgICAgIENPTE9SIDI1NSAwIDAKICAg ICAgTEFCRUwKICAgICAgICBUWVBFIFRSVUVUWVBFCiAgICAgICAgQU5USUFM SUFTIFRSVUUKCUZPTlQgYXJpYWwKICAgICAgICBDT0xPUiAwIDAgMAoJT1VU TElORUNPTE9SIDIyMCAyMjAgMjIwCglTSVpFIDExCQoJQU5HTEUgQVVUTwoJ UE9TSVRJT04gVUMKCU9GRlNFVCAwIDIgICAgICAgIAoJYnVmZmVyIDIKICAg ICAgRU5ECQogICAgRU5ECiAgRU5ECgpFTkQK --0-117431429-1065627037=:23992-- --0-2078729549-1065682186=:25171-- From ter-haseborg@sf-datentechnik.de Thu Oct 9 08:32:36 2003 From: ter-haseborg@sf-datentechnik.de (Frieso ter Haseborg) Date: Thu, 9 Oct 2003 09:32:36 +0200 Subject: [Mapserver-users] MS 3.5 Tutorial Message-ID: <0DF955F15A102E4F81B948D44A45015A069235@nt-sf-exchange.Windows2000> Hi, IMHO you _need_ to specify the full path to your map on windows-systems! This can be an absolute path or alternatively a relative one starting from the cgi-directory where your mapserv.exe resides - "scripts" in your case. MS doesn't take "wwwroot" as base-dir, the base-dir of MS to code path from is the cgi-directory. HTH, Frieso ter Haseborg - Software Development - -- -------------------------------------------------- S&F Datentechnik GmbH&Co.KG Reimersstr. 41b 26789 Leer, Germany >-----Original Message----- >From: srinivas neelapala [mailto:neelapalas@yahoo.com] >Sent: Wednesday, October 08, 2003 10:37 PM >To: mapserver-users@lists.gis.umn.edu >Subject: [Mapserver-users] MS 3.5 Tutorial > > >Hello, > >currently i am trying to work my way through 3.5 >turorials. > >i have created a map file and am trying to get the map >in my browser. it works when i give the full path name >in the browser: > >1) >http://localhost/Scripts/mapserv.exe?map=C:\Inetpub\wwwroot\IRS \IRS3.map&mode=map but doesn't when i try this: 2) http://localhost/Scripts/mapserv.exe?map=/IRS/IRS3.map&mode=map IRS is the folder that i have created in the wwwroot directory. i am using MS 3.6 & IIS as per the tutorials i think i needn't always specify the full path. Any help is appreciated Thanks Srini __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From maskellp@ntlworld.com Thu Oct 9 09:06:35 2003 From: maskellp@ntlworld.com (Phil Maskell) Date: Thu, 9 Oct 2003 09:06:35 +0100 Subject: [Mapserver-users] Help with Java MapScript compile under Windows Message-ID: <005801c38e3c$41f4a580$c800c0c0@mobile> This is a multi-part message in MIME format. ------=_NextPart_000_0059_01C38E44.A3B90D80 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Hi, =20 I=92m new to MapServer so bear with me. =20 I would ideally like to be able to find a site to download a compiled version of the java mapscript dll for windows with examples of how to install and use it. This would be in a perfect world=85 Help on how to compile a version (I use VC++, but don=92t have too much preference or = C++ experience being a Java Developer) for windows and how to use it would be great. =20 Note: I have managed to find a windows Java MapScript dll for MapServer 3.6.3, I=92m using MapServer 4.0 (what are the benefits of 4.0 over = 3.6.3, I could go back with the version of MapServer I use), all the pages on Java and MapServer 4.0 are biased towards Linux, this is not a bad thing in the long run as I eventually will need to get this same system working with Linux, but at present I am stuck with windows. =20 Thanks in advance. =20 Phil Maskell =20 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.521 / Virus Database: 319 - Release Date: 23/09/2003 =20 ------=_NextPart_000_0059_01C38E44.A3B90D80 Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable

Hi,

 

I=92m new to MapServer so bear with = me.

 

I would ideally like to be able to find a site to = download a compiled version of the java mapscript dll for windows with examples of = how to install and use it. This would be in a perfect world=85 Help on how to compile a version (I use VC++, but don=92t have too much preference or = C++ experience being a Java Developer) for windows and how to use it would = be great.

 

Note: I have managed to find a windows Java MapScript = dll for MapServer 3.6.3, I=92m using MapServer 4.0 (what are the benefits of 4.0 over 3.6.3, I could go back with the version of MapServer I use), = all the pages on Java and MapServer 4.0 are biased towards Linux, this is not a = bad thing in the long run as I eventually will need to get this same system = working with Linux, but at present I am stuck with = windows.

 

Thanks in advance.

 

Phil Maskell

 


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.521 / Virus Database: 319 - Release Date: 23/09/2003

------=_NextPart_000_0059_01C38E44.A3B90D80-- From maskellp@ntlworld.com Thu Oct 9 10:49:36 2003 From: maskellp@ntlworld.com (Phil Maskell) Date: Thu, 9 Oct 2003 10:49:36 +0100 Subject: [Mapserver-users] Getting RASTERs to work with MapServer 4 In-Reply-To: <20031007083815.GRLH2197.mta05-svc.ntlworld.com@[10.137.100.72]> Message-ID: <008401c38e4a$a6847ad0$c800c0c0@mobile> Hi, My problem was SHAPEPATH in my map file, in windows I needed to use a complete path --> "C:\wwwroot\data" Hope this helps someone. Phil Maskell -----Original Message----- From: mapserver-users-admin@lists.gis.umn.edu [mailto:mapserver-users-admin@lists.gis.umn.edu] On Behalf Of maskellp@ntlworld.com Sent: 07 October 2003 09:38 To: Mapserver-users@lists.gis.umn.edu Subject: [Mapserver-users] Getting RASTERs to work with MapServer 4 Hi, I am new to MapServer and have got the demo working with vector tab files, I am now trying to get RASTER to work, I've tried using a OGR and a tab file and a data connection to the tif file, neither worked. If someone has a working example or links to examples that would be great. Thanks in advance. Phil Maskell ----------------------------------------- Email provided by http://www.ntlhome.com/ _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.521 / Virus Database: 319 - Release Date: 23/09/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.521 / Virus Database: 319 - Release Date: 23/09/2003 From jhart@frw.uva.nl Thu Oct 9 11:21:23 2003 From: jhart@frw.uva.nl (Jan Hartmann) Date: Thu, 09 Oct 2003 12:21:23 +0200 Subject: [Mapserver-users] Mapclient - create new window In-Reply-To: References: Message-ID: <3F8536A3.7050703@frw.uva.nl> Interesting. I still can't duplicate it in my IE6-browser. Could you send the exact, complete HTML code? It looks like a syntax error that Mozilla passes by but IE doesn't. Apart from that, I should expect instabilities when using standalone iframes next to windows. The reason for that is that the mouse behaves differently within an iframe: it sends back different coordinates in a different way. Windows contain iframes, and one of the hairiest issue of the program was to make the mouse behave exactly the same way within a window and outside. In fact, 300 of the 2000 lines of code are spent on that issue alone; it is just a great amount of keeping track of mouse events. Standalone iframes fall outside this bookkeeping mechanism, so they will interfere with regular windows. I realized that this problem could occur, but I didn't expect that someone would try to make an application with both static iframes and movable windows. For myself, I either work with static pages (using invisible serverFrames to fill in the HTML elements of the page, including iframes), or with complete windowed applications, using windows and buttons on a static background. This background can contain all kinds of HTML, but no iframes. As a rule, I don't put very much in this background. The main purpose of movable/hideable windows and menus is to diminish the overcrowding you see in traditional web pages. What kind of application are you thinking of? Jan Lars-goran Edholm wrote: > I found that the problem with creating a new window dynamical is a browser > problem. > It doesnt work in Internet Explorer 6.0 but it works fine in Netscape 7.1. > > In IE6.0: > with > function newwin(){ > w1 = new win(10,200,600,450,"Karta 1") > } > The page is cleared out from all menus etc and only a > new ILayer is showing, the whole code for the remaining page is: > > > with > function newwin(){ > w1 = new win(10,200,9,9,"Karta 1") > } > > The page is cleared out from all menus etc and a window in size aprox 3x3 > pixels is created. > > with > function newwin(){ > w1 = new win(10,200,10,10,"Karta 1") > } > The page is cleared out from all menus etc and only a > new ILayer is showing, the whole code for the remaining page is: > > > with > function newwin(){ > w1 = new win(10,200,600,450) > } > Menus etc is showing and a new window is created but it cant be moved or > resized. > > > Mvh > Lars-Göran Edholm tel 026/24 14 36 > 1:e byggnadsinspektör > Bygg- och miljökontoret > 811 80 Sandviken > lars-goran.edholm@sandviken.se > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From stefan.schwarzer@grid.unep.ch Thu Oct 9 12:11:05 2003 From: stefan.schwarzer@grid.unep.ch (Stefan Schwarzer) Date: Thu, 09 Oct 2003 13:11:05 +0200 Subject: [Mapserver-users] Tiling Tif Images Message-ID: <5.2.1.1.0.20031009125920.01a80d00@gridg.grid.unep.ch> --=====================_14845937==.ALT Content-Type: text/plain; charset="us-ascii"; format=flowed Hi list, hmm, I think I read everything concerning the tiling of raster images by now. But the best hint I've found was the following URL ( http://remotesensing.org/gdal/gdal_utilities.html ). I read as well this document ( http://mapserver.gis.umn.edu/doc/raster-howto.html ), but no solution in sight. I tried to find the gdaltindex (for windows), but did not succeed. I have the OpenEV installed, but this does not offer tiling. Fact is: I have several dozens of raster images which are mostly between 100 and 500 MB. So, would you recommend to do some tiling with these sizes? If yes, what tool should I use? Can someone give be a tip? Thanks, Stefan _______________________________________ Stefan Schwarzer Consultant on GEO UNEP/DEWA/GRID-Geneva Chemin des Anemones 11 CH - 1219 Chatelaine Switzerland Tel: (+41) 22.917.83.49 Fax: (+41) 22.917.80.29 Email: stefan.schwarzer@grid.unep.ch Internet: http://geodata.grid.unep.ch/ _______________________________________ --=====================_14845937==.ALT Content-Type: text/html; charset="us-ascii" Hi list,

hmm, I think I read everything concerning the tiling of raster images by now. But the best hint I've found was the following URL ( http://remotesensing.org/gdal/gdal_utilities.html ). I read as well this document ( http://mapserver.gis.umn.edu/doc/raster-howto.html ), but no solution in sight. I tried to find the gdaltindex (for windows), but did not succeed. I have the OpenEV installed, but this does not offer tiling.  

Fact is: I have several dozens of raster images which are mostly between 100 and 500 MB. So, would you recommend to do some tiling with these sizes? If yes, what tool should I use?


Can someone give be a tip?

Thanks,

Stefan


        _______________________________________

        Stefan Schwarzer
        Consultant on GEO

        UNEP/DEWA/GRID-Geneva
        Chemin des Anemones 11
        CH - 1219 Chatelaine
        Switzerland

        Tel: (+41) 22.917.83.49
        Fax: (+41) 22.917.80.29

        Email: stefan.schwarzer@grid.unep.ch
        Internet: http://geodata.grid.unep.ch/
        _______________________________________ --=====================_14845937==.ALT-- From ed@topozone.com Thu Oct 9 12:33:05 2003 From: ed@topozone.com (Ed McNierney) Date: Thu, 9 Oct 2003 07:33:05 -0400 Subject: [Mapserver-users] Tiling Tif Images Message-ID: <13858AA1A74F30419F319ACB66A9D1222E9F81@mercator.topozone.com> This is a multi-part message in MIME format. ------_=_NextPart_001_01C38E59.1B0D1F83 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Stefan - =20 You don't really say what the problem is, and you don't say what happened when you "didn't succeed". For example, when you used gdaltindex, what result did you expect and what result did you get? =20 First, do your several dozen raster images taken together form a tiled data set? Or are you trying to divide each of those files into smaller rasters and then tile those back together? =20 - Ed =20 Ed McNierney President and Chief Mapmaker TopoZone.com ed@topozone.com =20 -----Original Message----- From: Stefan Schwarzer [mailto:stefan.schwarzer@grid.unep.ch]=20 Sent: Thursday, October 09, 2003 7:11 AM To: mapserver-users@lists.gis.umn.edu Subject: [Mapserver-users] Tiling Tif Images =20 Hi list, hmm, I think I read everything concerning the tiling of raster images by now. But the best hint I've found was the following URL ( http://remotesensing.org/gdal/gdal_utilities.html ). I read as well this document ( http://mapserver.gis.umn.edu/doc/raster-howto.html ), but no solution in sight. I tried to find the gdaltindex (for windows), but did not succeed. I have the OpenEV installed, but this does not offer tiling. =20 Fact is: I have several dozens of raster images which are mostly between 100 and 500 MB. So, would you recommend to do some tiling with these sizes? If yes, what tool should I use? Can someone give be a tip? Thanks, Stefan _______________________________________ Stefan Schwarzer Consultant on GEO UNEP/DEWA/GRID-Geneva Chemin des Anemones 11 CH - 1219 Chatelaine Switzerland Tel: (+41) 22.917.83.49 Fax: (+41) 22.917.80.29 Email: stefan.schwarzer@grid.unep.ch Internet: http://geodata.grid.unep.ch/ _______________________________________ ------_=_NextPart_001_01C38E59.1B0D1F83 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Stefan = –

 

You don’t really say what the problem is, and you don’t say what happened when you = “didn’t succeed”.  For = example, when you used gdaltindex, what result did you expect = and what result did you get?

 

First, do your several dozen raster = images taken together form a tiled data set?  Or are you trying to divide each of those files into smaller rasters and then tile those back together?

 

        = ;    - Ed

 <= /span>

Ed = McNierney

President and = Chief Mapmaker

TopoZone.com<= /o:p>

ed@topozone.com

 

-----Original = Message-----
From: Stefan Schwarzer [mailto:stefan.schwarzer@grid.unep.ch]
Sent: Thursday, October = 09, 2003 7:11 AM
To: mapserver-users@lists.gis.umn.edu
Subject: = [Mapserver-users] Tiling Tif Images

 

Hi list,

hmm, I think I read everything concerning the tiling of raster images by = now. But the best hint I've found was the following URL ( http://remotesensing.org/gdal/gdal_utilities.html ). I read as well this document ( http://mapserver.gis.umn.edu/doc/raster-howto.html ), but no solution in sight. I tried to find the gdaltindex (for = windows), but did not succeed. I have the OpenEV installed, but this does not offer = tiling.  

Fact is: I have several dozens of raster images which are mostly between = 100 and 500 MB. So, would you recommend to do some tiling with these sizes? = If yes, what tool should I use?


Can someone give be a tip?

Thanks,

Stefan



       &nbs= p;_______________________________________

       &nbs= p;Stefan Schwarzer
        Consultant on GEO

        UNEP/DEWA/= GRID-Geneva
        Chemin = des Anemones 11
        CH - 1219 Chatelaine
        Switzerlan= d

        Tel: = (+41) 22.917.83.49
        Fax: = (+41) 22.917.80.29

        Email: stefan.schwarzer@grid.unep.ch
        Internet: = http://geodata.grid.unep.ch/
        _______________________________________

=00 ------_=_NextPart_001_01C38E59.1B0D1F83-- From stefan.schwarzer@grid.unep.ch Thu Oct 9 12:40:10 2003 From: stefan.schwarzer@grid.unep.ch (Stefan Schwarzer) Date: Thu, 09 Oct 2003 13:40:10 +0200 Subject: [Mapserver-users] Tiling Tif Images In-Reply-To: <13858AA1A74F30419F319ACB66A9D1222E9F81@mercator.topozone.c om> Message-ID: <5.2.1.1.0.20031009133613.01a7ec40@gridg.grid.unep.ch> --=====================_16591078==.ALT Content-Type: text/plain; charset="us-ascii"; format=flowed Ed, a) the images I have (100-500 MB) are not yet tiled; and I assume it would result in a better performance if they would be. b) the images form different layers; so each image should be tiled separately. And yes: "Or are you trying to divide each of those files into smaller rasters and then tile those back together?" b) I did not succeed in finding the gdaltindex file, which seems to be necessary to do the tiling of images. Stefan >Stefan > > > >You dont really say what the problem is, and you dont say what happened >when you didnt succeed. For example, when you used gdaltindex, what >result did you expect and what result did you get? > > > >First, do your several dozen raster images taken together form a tiled >data set? Or are you trying to divide each of those files into smaller >rasters and then tile those back together? > > > > - Ed > > > >Ed McNierney > >President and Chief Mapmaker > >TopoZone.com > >ed@topozone.com > > > >-----Original Message----- >From: Stefan Schwarzer [mailto:stefan.schwarzer@grid.unep.ch] >Sent: Thursday, October 09, 2003 7:11 AM >To: mapserver-users@lists.gis.umn.edu >Subject: [Mapserver-users] Tiling Tif Images > > > >Hi list, > >hmm, I think I read everything concerning the tiling of raster images by >now. But the best hint I've found was the following URL ( >http://remotesensing.org/gdal/gdal_utilities.html ). I read as well this >document ( http://mapserver.gis.umn.edu/doc/raster-howto.html ), but no >solution in sight. I tried to find the gdaltindex (for windows), but did >not succeed. I have the OpenEV installed, but this does not offer tiling. >Fact is: I have several dozens of raster images which are mostly between >100 and 500 MB. So, would you recommend to do some tiling with these >sizes? If yes, what tool should I use? > > >Can someone give be a tip? > >Thanks, > >Stefan > > > > _______________________________________ > > Stefan Schwarzer > Consultant on GEO > > UNEP/DEWA/GRID-Geneva > Chemin des Anemones 11 > CH - 1219 Chatelaine > Switzerland > > Tel: (+41) 22.917.83.49 > Fax: (+41) 22.917.80.29 > > Email: stefan.schwarzer@grid.unep.ch > Internet: http://geodata.grid.unep.ch/ > _______________________________________ _______________________________________ Stefan Schwarzer Consultant on GEO UNEP/DEWA/GRID-Geneva Chemin des Anemones 11 CH - 1219 Chatelaine Switzerland Tel: (+41) 22.917.83.49 Fax: (+41) 22.917.80.29 Email: stefan.schwarzer@grid.unep.ch Internet: http://geodata.grid.unep.ch/ _______________________________________ --=====================_16591078==.ALT Content-Type: text/html; charset="us-ascii" Ed,

a) the images I have (100-500 MB) are not yet tiled; and I assume it would result in a better performance if they would be.
b) the images form different layers; so each image should be tiled separately. And yes: "
Or are you trying to divide each of those files into smaller rasters and then tile those back together?"
b) I did not succeed in finding the gdaltindex file, which seems to be necessary to do the tiling of images.

Stefan


Stefan

 

You dont really say what the problem is, and you dont say what happened when you didnt succeed.  For example, when you used gdaltindex, what result did you expect and what result did you get?

 

First, do your several dozen raster images taken together form a tiled data set?  Or are you trying to divide each of those files into smaller rasters and then tile those back together?

 

            - Ed

 

Ed McNierney

President and Chief Mapmaker

TopoZone.com

ed@topozone.com

 

-----Original Message-----
From: Stefan Schwarzer [mailto:stefan.schwarzer@grid.unep.ch]
Sent: Thursday, October 09, 2003 7:11 AM
To: mapserver-users@lists.gis.umn.edu
Subject: [Mapserver-users] Tiling Tif Images

 

Hi list,

hmm, I think I read everything concerning the tiling of raster images by now. But the best hint I've found was the following URL ( http://remotesensing.org/gdal/gdal_utilities.html ). I read as well this document ( http://mapserver.gis.umn.edu/doc/raster-howto.html ), but no solution in sight. I tried to find the gdaltindex (for windows), but did not succeed. I have the OpenEV installed, but this does not offer tiling.  
Fact is: I have several dozens of raster images which are mostly between 100 and 500 MB. So, would you recommend to do some tiling with these sizes? If yes, what tool should I use?


Can someone give be a tip?

Thanks,

Stefan



                _______________________________________

                Stefan Schwarzer
        Consultant on GEO

        UNEP/DEWA/GRID-Geneva
        Chemin des Anemones 11
        CH - 1219 Chatelaine
        Switzerland

        Tel: (+41) 22.917.83.49
        Fax: (+41) 22.917.80.29

        Email: stefan.schwarzer@grid.unep.ch
        Internet: http://geodata.grid.unep.ch/
        _______________________________________

        _______________________________________

        Stefan Schwarzer
        Consultant on GEO

        UNEP/DEWA/GRID-Geneva
        Chemin des Anemones 11
        CH - 1219 Chatelaine
        Switzerland

        Tel: (+41) 22.917.83.49
        Fax: (+41) 22.917.80.29

        Email: stefan.schwarzer@grid.unep.ch
        Internet: http://geodata.grid.unep.ch/
        _______________________________________ --=====================_16591078==.ALT-- From jhart@frw.uva.nl Thu Oct 9 13:29:13 2003 From: jhart@frw.uva.nl (Jan Hartmann) Date: Thu, 09 Oct 2003 14:29:13 +0200 Subject: [Mapserver-users] Tiling Tif Images In-Reply-To: <5.2.1.1.0.20031009125920.01a80d00@gridg.grid.unep.ch> References: <5.2.1.1.0.20031009125920.01a80d00@gridg.grid.unep.ch> Message-ID: <3F855499.2010607@frw.uva.nl> I do this routinely with GRASS. If you have never worked with it it will take you some time to install and learn it, but IMHO the time is well spent. Once you have things running tiles can be made in three steps: - import the image using r.in.gdal - set the region to the tile you want to generate - r.resample input= output= - export the image using gdal_translate The beautiful thing about GRASS is that you can script everything using ordinary shell scripts. I have been tiling Gigabyte rasters this way in matters of minutes. As to tile size, I generally create tiles of 2000*2000 pixels. An original raster of 40000*40000 pixels gets divided into 400 tiles this way, and this gives quick response. I haven't done much experimenting much with this however. Did anyone on the list ever experiment with different tile sizes on the same raster basemap? If you make the tiles larger, it takes longer to extract the region; if you make them smaller, chances are greater that MapServer has to combine several tiles to generate the image. I don't know where the optimum lies. Jan Stefan Schwarzer wrote: > Hi list, > > hmm, I think I read everything concerning the tiling of raster images by > now. But the best hint I've found was the following URL ( > http://remotesensing.org/gdal/gdal_utilities.html ). I read as well this > document ( http://mapserver.gis.umn.edu/doc/raster-howto.html ), but no > solution in sight. I tried to find the gdaltindex (for windows), but did > not succeed. I have the OpenEV installed, but this does not offer tiling. > > Fact is: I have several dozens of raster images which are mostly between > 100 and 500 MB. So, would you recommend to do some tiling with these > sizes? If yes, what tool should I use? > > > Can someone give be a tip? > > Thanks, > > Stefan > > > _______________________________________ > > *Stefan Schwarzer > * Consultant on GEO > > UNEP/DEWA/GRID-Geneva > Chemin des Anemones 11 > CH - 1219 Chatelaine > Switzerland > > Tel: (+41) 22.917.83.49 > Fax: (+41) 22.917.80.29 > > Email: stefan.schwarzer@grid.unep.ch > Internet: http://geodata.grid.unep.ch/ > _______________________________________ > From edspremolla@Antel.com.uy Thu Oct 9 13:30:46 2003 From: edspremolla@Antel.com.uy (Eduardo Spremolla) Date: 09 Oct 2003 09:30:46 -0300 Subject: [Mapserver-users] Tiling Tif Images In-Reply-To: <5.2.1.1.0.20031009133613.01a7ec40@gridg.grid.unep.ch> References: <5.2.1.1.0.20031009133613.01a7ec40@gridg.grid.unep.ch> Message-ID: <1065702646.5637.19.camel@fly.in.iantel.com.uy> I find the gdaltindex in bin directory on OpenEV_FW_161.zip if you can't find it in the web I may put mine on a web url for you. LALO El jue, 09 de 10 de 2003 a las 08:40, Stefan Schwarzer escribió: > Ed, > > a) the images I have (100-500 MB) are not yet tiled; and I assume it > would result in a better performance if they would be. > b) the images form different layers; so each image should be tiled > separately. And yes: "Or are you trying to divide each of those files > into smaller rasters and then tile those back together?" > b) I did not succeed in finding the gdaltindex file, which seems to be > necessary to do the tiling of images. > > Stefan > > > > Stefan > > > > > > You dont really say what the problem is, and you dont say what > > happened when you didnt succeed. For example, when you used > > gdaltindex, what result did you expect and what result did you get? > > > > > > > > First, do your several dozen raster images taken together form a > > tiled data set? Or are you trying to divide each of those files > > into smaller rasters and then tile those back together? > > > > > > > > - Ed > > > > > > > > Ed McNierney > > > > President and Chief Mapmaker > > > > TopoZone.com > > > > ed@topozone.com > > > > > > > > -----Original Message----- > > From: Stefan Schwarzer [mailto:stefan.schwarzer@grid.unep.ch] > > Sent: Thursday, October 09, 2003 7:11 AM > > To: mapserver-users@lists.gis.umn.edu > > Subject: [Mapserver-users] Tiling Tif Images > > > > > > > > Hi list, > > > > hmm, I think I read everything concerning the tiling of raster > > images by now. But the best hint I've found was the following URL ( > > http://remotesensing.org/gdal/gdal_utilities.html ). I read as well > > this document ( http://mapserver.gis.umn.edu/doc/raster-howto.html > > ), but no solution in sight. I tried to find the gdaltindex (for > > windows), but did not succeed. I have the OpenEV installed, but this > > does not offer tiling. > > Fact is: I have several dozens of raster images which are mostly > > between 100 and 500 MB. So, would you recommend to do some tiling > > with these sizes? If yes, what tool should I use? > > > > > > Can someone give be a tip? > > > > Thanks, > > > > Stefan > > > > > > > > _______________________________________ > > > > Stefan Schwarzer > > Consultant on GEO > > > > UNEP/DEWA/GRID-Geneva > > Chemin des Anemones 11 > > CH - 1219 Chatelaine > > Switzerland > > > > Tel: (+41) 22.917.83.49 > > Fax: (+41) 22.917.80.29 > > > > Email: stefan.schwarzer@grid.unep.ch > > Internet: http://geodata.grid.unep.ch/ > > _______________________________________ > _______________________________________ > > Stefan Schwarzer > Consultant on GEO > > UNEP/DEWA/GRID-Geneva > Chemin des Anemones 11 > CH - 1219 Chatelaine > Switzerland > > Tel: (+41) 22.917.83.49 > Fax: (+41) 22.917.80.29 > > Email: stefan.schwarzer@grid.unep.ch > Internet: http://geodata.grid.unep.ch/ > _______________________________________ From gayathri@ou.edu Thu Oct 9 14:21:09 2003 From: gayathri@ou.edu (Swaminathan, Gayathri) Date: Thu, 9 Oct 2003 08:21:09 -0500 Subject: [Mapserver-users] Mapserver 4 Makefile for VC Message-ID: Stephen, The gdal error is coming because....you have forgot/dint comment the following line in Makefile.vc "copy $(GDAL_DIR)\gdal.pdb ." Comment the same by including a "#" in the beginning of the line. On examining your nmake.opt, I see "c:\project" to be your working directory...Is this correct? Are all the required libraries in here? Have they been compiled before you proceeded to compile mapserver 4.0? Cheers, Gayathri -----Original Message----- From: Stephen Clark [mailto:stephen.clark@focus.ca] Sent: Wednesday, October 08, 2003 1:32 PM To: mapserver-users@lists.gis.umn.edu Subject: Re: [Mapserver-users] Mapserver 4 Makefile for VC I have included my makefile.vc and nmake.opt files as well as the compile errors foer your consideration. thanks, Stephen ----- Original Message ----- From: "Stephen Clark" To: "Swaminathan, Gayathri" ; "'Yewondwossen Assefa'" Cc: Sent: Wednesday, October 08, 2003 10:23 AM Subject: Re: [Mapserver-users] Mapserver 4 Makefile for VC > Could someone post their makefile.vc and nmake.opt files. > > I would like a version that has the minimum set of options set whichI > can then modify. > > thanks > Stephen > > > > ----- Original Message ----- > From: "Swaminathan, Gayathri" > To: "'Yewondwossen Assefa'" > Cc: > Sent: Friday, September 19, 2003 8:03 AM > Subject: RE: [Mapserver-users] Mapserver 4 Makefile for VC > > > > :) > > Missed that when looking, but after careful examination saw this > > file., > > > > Thanks all as always for your patience and time on this. > > > > Gayathri > > > > -----Original Message----- > > From: Yewondwossen Assefa [mailto:assefa@dmsolutions.ca] > > Sent: Thursday, September 18, 2003 9:26 PM > > To: Swaminathan, Gayathri > > Cc: mapserver-users@lists.gis.umn.edu > > Subject: Re: [Mapserver-users] Mapserver 4 Makefile for VC > > > > > > Hi There, > > > > There are now 2 files involved in the process, makefile.vc and > > nmake.opt where all the options are included. This separation makes > > things clearer and the option file can be used by sub projects like > > php/mapscript. All settings for necessary libraries + optional > > libraries are inside the nmake.opt. > > > > Later, > > > > Swaminathan, Gayathri wrote: > > > Hi all: > > > > > > After being content with mapserver-3.6.5 for a long time now, I > > > was getting ready to compile mapserver 4.0 and test it. > > > > > > There are several changes that I notice between mapserver-3.6.5 > > > and mapserver-4.0. The makefile.vc in the package shrinked. I > > > assumed this is not the One that I should be using and proceeded > > > with alterations to my old makefile.vc that came from > > > mapserver-3.6.5 > > > > > > I was finally sucessful in building a mapserver with the following > > > enabled. > > > > > > MapServer version 4.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > > > SUPPORTS=PROJ INPUT=EPP L7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL > > > INPUT=SHAPEFILE > > > > > > I need WMS server and WMS Client with this. I see that libcurl is > > > being used somehow and keep getting errors on the same. > > > > > > Please, indicate to me the right corrections to makefile.vc (or) > > > tell me where am I going wrong in this process. > > > > > > Thanks so much for your time on this. > > > Gayathri > > > _______________________________________________ > > > Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu > > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > > > > > > > -- > > ---------------------------------------------------------------- > > Assefa Yewondwossen > > Software Analyst > > > > Email: assefa@dmsolutions.ca > > http://www.dmsolutions.ca/ > > > > Phone: (613) 565-5056 (ext 14) > > Fax: (613) 565-0925 > > ---------------------------------------------------------------- > > > > > > > > > > _______________________________________________ > > 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 Chip.Hankley@rmtinc.com Thu Oct 9 14:33:30 2003 From: Chip.Hankley@rmtinc.com (Chip Hankley) Date: Thu, 09 Oct 2003 08:33:30 -0500 Subject: [Mapserver-users] Tiling Tif Images Message-ID: Stefan: > a) the images I have (100-500 MB) are not yet tiled; and I assume it would > result in a better performance if they would be. Yes. You should also review the archives on notes from Ed (and others) regarding image performance in general. Tiling is only one part of the equation. Another *very* important thing is to make sure you are using images of appropriate resolution. For instance, if you're displaying orthophotos with 6" pixels at 1:20,000, you're processing WAY more data than you can display... so developing pyramids or other display schemes to minimize this kind of overhead is important. > c) I did not succeed in finding the gdaltindex file, which seems to be > necessary to do the tiling of images. > I haven't done this for about 6 months, but as I recall, gdaltindex does not do the tiling, per se. The utility creates a shapefile that acts as the *index* to the tiles. YOU need to create the tiles. There are, as some have indicated, a lot of ways to do this. There may be some tools in gdal that do this, certainly you can do it in many GIS packages. There's an AML in the WIKI that will do it if you have access to ArcInfo w/ GRID. Conceivably, you could do it "by hand" with an image editing package (like Paint Shop Pro) by slicing up the image into regular tiles and creating new world files. Chip Outgoing messages, along with any attachments, are scanned for viruses at RMT prior to sending. ------------------------------------------------------------------------------ NOTICE--This email may contain confidential and privileged information for the sole use of the intended recipient. Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender immediately and delete all copies. From gayathri@ou.edu Thu Oct 9 15:04:10 2003 From: gayathri@ou.edu (Swaminathan, Gayathri) Date: Thu, 9 Oct 2003 09:04:10 -0500 Subject: FW: [Mapserver-users] Max image size Message-ID: Hope the reply below by Frank helps.. Thanks, Gayathri -----Original Message----- From: Frank Warmerdam [mailto:warmerdam@pobox.com] Sent: Tuesday, September 23, 2003 11:50 AM To: Tyler Mitchell; mapserver-users@lists.gis.umn.edu Subject: Re: [Mapserver-users] Max image size Tyler Mitchell wrote: > > > > > Thanks Ed, for the benefit of me and the list, can you reference a > line number or string to change. I've been hunting but am finding > that 1024 occurs quite a few times throughout the mapserver code ;) Tyler, I believe MS_MAXIMGSIZE is what you want to change. It is my humble opionion that only remote client requests (via URL) should be checked against this, not image sizes read from .map files or those originating from mapscript requests. If appropriate folks agree, I could look into making this change. Ideally we would also have a MAXIMGSIZE directive that could be included in .map files so this could be set without recompiling mapserver - which is very hard for some folks to do. PS. MS_MAXIMGSIZE is 2048 in CVS now as far as I can tell, which I believe allows up to a 2048x2048 image to be requested. Best regards, -- ---------------------------------------+-------------------------------- ---------------------------------------+------ 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 >Hello, >Anyone know the upper limit to output map size in pixels from >Mapserver? Is there one? I'm using v4.0. >Thanks! >Dan Barron >dbarron@ddive.com From Lars-goran.Edholm@sandviken.se Thu Oct 9 15:15:02 2003 From: Lars-goran.Edholm@sandviken.se (Lars-goran Edholm) Date: Thu, 09 Oct 2003 16:15:02 +0200 Subject: [Mapserver-users] Mapclient - new window Message-ID: I run IE&.0 with error kod listing and what I found was in row 831 sign 2 wrong argument row 1242 sign 2 'div' is null or not an object Here´'s a testpage which is very simple but doesn't work in IE6.0, I tried it on several computers: zoom3.html What I'm doing is to build an application that behaves like an Windows application with windows that the user can resize and move. Everything works fine with legends, querys etc. My problem is that I can start the application with 1 or 2 or 3 or...windows but I want to start with one or none windows and then should the user be able to create new windows in runtime. I'm currently running an testapplication in which i'm also having an iframe with an Intrawebapplication (Delphi) for searching parcels from an SQLserver database. The Intraweb application sends paramters to a mapclient window which zooms to the parcel. All this is working fine but there is som minor problems when I drag mapclient windows (not panning). Therefore I hide the IFrame when performing zooming and dragging operations. None of this is any problem in IE6.0. Mvh Lars-Göran Edholm tel 026/24 14 36 1:e byggnadsinspektör Bygg- och miljökontoret 811 80 Sandviken lars-goran.edholm@sandviken.se From muratisik@megatek.com.tr Thu Oct 9 15:47:33 2003 From: muratisik@megatek.com.tr (Murat Isik) Date: Thu, 9 Oct 2003 17:47:33 +0300 Subject: [Mapserver-users] mapfile generation problem Message-ID: <010d01c38e74$45a5a520$b4704ad5@anaconda> This is a multi-part message in MIME format. ------=_NextPart_000_010A_01C38E8D.6AE48540 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, I am a newbei about mapservers. I have setup mapserv-3-6-0 and also = installed 3-5 demo and eventually got them to work together, displaying = the maps successfully.I did these through implementing rpms rather than = compling. Upon this, I have been handed map layers of our neighbourhoodi = so that I "insert" them into the mapserver. It consists of 20 layers and = for each layer there are proper files of .dbf, .shp, .shx extensions. = However there are no mapfiles. I have read all of mapfile reference and = worked on the mapfile of the 3-5 demo. I wrote one for the nighbour maps = but it gave me the error when pressed "Initialize". I have arranged the = demo_init.html and demo.html accordingly beforehand. The error is: loadHashTable(): Unknown identifier Anybody have an idea. My mapfile is the following: # # Start of map file # NAME ERENKOY STATUS ON SIZE 667 447 EXTENT 388107.634400379 5203120.88405952 500896.339019834 = 5310243.30613897 UNITS METERS SHAPEPATH "erenkoy" IMAGECOLOR 255 255 255 # you may need to change this to match your MapServer build IMAGETYPE PNG # # Projection definition, consult the PROJ.4 documentation for parameter = discussion # #PROJECTION # "proj=3Dutm" # "ellps=3DGRS80" # "zone=3D15" # "north" # "no_defs" # # OR: # # "init=3Depsg:26915" #END # # Start of web interface definition (including WMS enabling metadata) # WEB HEADER demo_header.html TEMPLATE demo.html FOOTER demo_footer.html MINSCALE 1000 MAXSCALE 1550000 IMAGEPATH "set in demo_init.html" IMAGEURL "set in demo_init.html" METADATA WMS_TITLE "ERENKOY HARITA" @ WMS_ABSTRACT "This is the UMN MapServer demonstration application for = ERENKOY County located in north central ISTANBUL." WMS_ACCESSCONSTRAINTS none # change this value to match your setup WMS_ONLINERESOURCE "http://localhost/mapser/itasca/demo_init.html" WMS_SRS "EPSG:26915" END END QUERYMAP SIZE 200 200 STATUS ON STYLE HILITE COLOR 255 0 0 END # # Start of reference map # REFERENCE IMAGE graphics/reference-erenkoy.png EXTENT 393234.393701263 5205405.16440722 495769.579718949 = 5307959.02579127 SIZE 120 120 STATUS OFF 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 80 2 COLOR 255 255 255 UNITS KILOMETERS INTERVALS 1 TRANSPARENT TRUE STATUS TRUE END # # Start of symbol definitions (we're only using a few) # SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END # # Start of layer definitions # LAYER NAME ERENKOY_ORNEKMAHALLE_PG_region=20 TYPE POLYGON STATUS DEFAULT DATA ERENKOY_ORNEKMAHALLE_PG_region CLASSITEM 'cty_name' CLASS EXPRESSION 'Erenkoy' 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 METADATA WMS_TITLE "Erenkoy-genel" WMS_ABSTRACT "Erenkoy" WMS_SRS "EPSG:26915" END END #TAMAM LAYER NAME ERENKOY_ORNEKSOKAK_PL_polyline GROUP sokaklar TYPE POLYGON DATA ERENKOY_ORNEKSOKAK_PL_polyline STATUS OFF CLASSITEM city_name CLASS NAME "Sokaklar" EXPRESSION /./ COLOR 255 225 90 TEMPLATE "mcd90py2.html" END HEADER "mcd90py2_header.html" FOOTER "mcd90py2_footer.html" DUMP TRUE # allow GML export METADATA WMS_TITLE "Sokak" WMS_ABSTRACT "Minor civil divisions for Erenkoy County. (sokaklar = only)" WMS_SRS "EPSG:26915" END END LAYER NAME ERENKOY_ORNEKILCE_PG_region TYPE POLYGON DATA ERENKOY_ORNEKILCE_PG_region STATUS OFF CLASS SYMBOL 'circle' SIZE 2 NAME 'Ilceler' OUTLINECOLOR 181 181 145 END METADATA WMS_TITLE "Ilceler Boundaries" WMS_ABSTRACT Ilceler boundaries for Erenkoy County. See MURAT for = more information." WMS_SRS "EPSG:26915" END END LAYER NAME ERENKOY_ORNEKCADDE_PL_polyline TYPE POLYGON STATUS OFF DATA ERENKOY_ORNEKCADDE_PL_polyline CLASS NAME 'Caddeler' TEMPLATE "lakespy2.html" COLOR 49 117 185 END HEADER "lakespy2_header.html" FOOTER "lakespy2_footer.html" TOLERANCE 3 DUMP TRUE # allow GML export METADATA WMS_TITLE "Caddeler" WMS_ABSTRACT "Caddeler" WMS_SRS "EPSG:26915" END END Erenkoy is the name of neighbourhood, sokak-ilceler and other stuff = looking unfamiliar for you, are the Turkish for streets-towns etc. I had to keep TEMPLATE, FOOTER and HEADER for my layer same as the = demo's since I also have no idea of making my own templates, footers and = headers.=20 Overall, I am in a bottleneck, stuck up. Please help me:) Thanks in advance..... Have a nice day Murat Isik Istanbul-Turkey ------=_NextPart_000_010A_01C38E8D.6AE48540 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

 
Hello,
 
I am a newbei about mapservers. I = have setup=20 mapserv-3-6-0 and also installed 3-5 demo and eventually got them to = work=20 together, displaying the maps successfully.I did these through = implementing rpms=20 rather than compling. Upon this, I have been handed map layers of = our=20 neighbourhoodi so that I "insert" them into the mapserver. It consists = of 20=20 layers and for each layer there are proper files of .dbf, .shp, .shx = extensions.=20 However there are no mapfiles. I have read all of mapfile reference and = worked=20 on the mapfile of the 3-5 demo. I wrote one for the nighbour maps but it = gave me=20 the error when pressed "Initialize". I have arranged the demo_init.html = and=20 demo.html accordingly beforehand. The error is:
 
loadHashTable(): Unknown = identifier
 
Anybody have an idea. My mapfile is the = following:
 
#
# Start of map file
#
NAME=20 ERENKOY
STATUS ON
SIZE 667 447
EXTENT 388107.634400379 = 5203120.88405952=20 500896.339019834 5310243.30613897
UNITS METERS
SHAPEPATH=20 "erenkoy"
IMAGECOLOR 255 255 255
 
# you may need to change this to match = your=20 MapServer build
IMAGETYPE PNG
 
#
# Projection definition, consult = the PROJ.4=20 documentation for parameter discussion
#
#PROJECTION
# =20 "proj=3Dutm"
#  "ellps=3DGRS80"
#  = "zone=3D15"
# =20 "north"
#  "no_defs"
#
#  OR:
#
# =20 "init=3Depsg:26915"
#END
 
#
# Start of web interface = definition (including=20 WMS enabling metadata)
#
WEB
  HEADER = demo_header.html
 =20 TEMPLATE demo.html
  FOOTER demo_footer.html
  MINSCALE=20 1000
  MAXSCALE 1550000
  IMAGEPATH "set in=20 demo_init.html"
  IMAGEURL "set in demo_init.html"
 =20 METADATA
    WMS_TITLE "ERENKOY = HARITA"
@
WMS_ABSTRACT=20 "This is the UMN MapServer demonstration application for ERENKOY County = located=20 in north central ISTANBUL."
    WMS_ACCESSCONSTRAINTS=20 none
 
    # change this value = to match=20 your setup
    WMS_ONLINERESOURCE "http://localhost/m= apser/itasca/demo_init.html"
 
    WMS_SRS = "EPSG:26915"
 =20 END
END
 
QUERYMAP
  SIZE 200 = 200
  STATUS=20 ON
  STYLE HILITE
  COLOR 255 0 0
END
 
#
# Start of reference=20 map
#
REFERENCE
  IMAGE = graphics/reference-erenkoy.png
 =20 EXTENT 393234.393701263 5205405.16440722 495769.579718949=20 5307959.02579127
  SIZE 120 120
  STATUS OFF
  = COLOR -1=20 -1 -1
  OUTLINECOLOR 255 0 0
END
 
#
# Start of = legend
#
LEGEND
 =20 KEYSIZE 18 12
  LABEL
    TYPE=20 BITMAP
    SIZE MEDIUM
    COLOR 0 0 = 89
  END
  STATUS ON
END
 
#
# Start of = scalebar
#
SCALEBAR
 =20 IMAGECOLOR 255 255 255
  LABEL
    COLOR 255 = 255=20 255
    SIZE tiny
  END
  STYLE = 1
 =20 SIZE 80 2
  COLOR 255 255 255
  UNITS = KILOMETERS
 =20 INTERVALS 1
  TRANSPARENT TRUE
  STATUS = TRUE
END
 
#
# Start of symbol definitions = (we're only=20 using a few)
#
SYMBOL
  NAME 'circle'
  TYPE=20 ELLIPSE
  POINTS 1 1 END
  FILLED = TRUE
END
 
#
# Start of layer = definitions
#
 
LAYER
  NAME=20 ERENKOY_ORNEKMAHALLE_PG_region 
  TYPE POLYGON
  STATUS=20 DEFAULT
  DATA ERENKOY_ORNEKMAHALLE_PG_region
 
  CLASSITEM 'cty_name'
 =20 CLASS
    EXPRESSION 'Erenkoy'
   =20 OUTLINECOLOR 128 128 128
    COLOR 225 225 = 185
 =20 END
  CLASS # every other county in the = state
   =20 EXPRESSION /./
    OUTLINECOLOR 128 128=20 128
    COLOR 255 255 255