From maphew at GMAIL.COM Sat Jan 1 22:09:02 2005 From: maphew at GMAIL.COM (Matt Wilkie) Date: Sat, 1 Jan 2005 22:09:02 -0800 Subject: install as cgi, with no shell? In-Reply-To: <20041231153604.5F422EDEF0@ws6-1.us4.outblaze.com> Message-ID: Okay, thanks for the responses everybody. None of the options outlined are available for me. Any recommendations for a cgi mapserver which doesn't need to be compiled? e.g. pure php/perl or something? cheers, -matt From arnulf.christl at CCGIS.DE Sun Jan 2 04:17:03 2005 From: arnulf.christl at CCGIS.DE (Arnulf Christl) Date: Sun, 2 Jan 2005 13:17:03 +0100 Subject: Projection trouble In-Reply-To: <41D43945.2060202@ccgis.de> Message-ID: Hi, sorry I postet a wrong link. The problem can be seen here: http://www.mapbender.org/testbed.html I just added a box where the projection can be changed on the fly. Zoom in to below 1:50000 and switch to WGS84 and everything looks fine, the geometries from both servers overlap perfectly. Switch to GK3 (EPSG:31467) and there is that offset. Arnulf. Arnulf Christl wrote: > Hi, > we experience a strange offset when overlaying the same data as WMS maps > with MapServer versions 4.0.1 and 4.4.1. > > *4.0.1 server* > Windows 2000: SP4 > IIS: 5 > proj: came with 4.0.1 > gd: came with 4.0.1 > gdal: came with 4.0.1 > Cap URL: > http://wms.ccgis.de/umn/bin/mapserv.exe?map=d:/umn/germany.map&SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.1.0 > > Data: local shape files in EPSG:4326 projected to EPSG:31467 > > *4.4.1 server* > FreeBSD: 4.10 > Apache: 1.3.33 > proj: 4.4.9 > gd: 2.0.33 > gdal: 1.2.1 > Cap URL: > http://wms1.ccgis.de/cgi-bin/mapserv?map=/data/umn/germany_demo/germany_demo.map&VERSION=1.1.1&REQUEST=GetCapabilities&SERVICE=WMS > > Data: the same shape files as above (WGS84) but dumped to > PostgreSQL/PostGIS (and also projected to EPSG:31467). > > The problem does not seem to result from MapServer but from proj? > > You can have a look at the problem here: > http://www.mapbender.org/demoserver.html > > Zoom in to a scale of 1:100,000 or less to see the post code areas. They > overlap with an x-offset (north): > in northern Germany 190m > in central Germany 145m > in southern Germany 100m > > The y-offset (east) is: > in western Germany 45m > in eastern Germany 125m > > That resembles a lot to a datum shift which we stumbled accross (years > ago) when reading GPS EPSG:4326 WGS84 data directly into the database > and overlaying it with Gauss-Kruger EPSG:31467 (Bessel projection). > > What has been changed and what impact does it have on projects which > overlay other data? > > Best regards, Arnulf. > From schuyler at NOCAT.NET Sun Jan 2 08:08:40 2005 From: schuyler at NOCAT.NET (Schuyler Erle) Date: Sun, 2 Jan 2005 08:08:40 -0800 Subject: Reverse Geocoding In-Reply-To: <16264e0704123012534236a27a@mail.gmail.com> Message-ID: * On 30-Dec-2004 at 12:53PM PST, Camden Daily said: > > If you don't care much too much about accuracy, it would seem that the > same alogorithm used to geocode could be reversed with a little work. > If you've got good Perl skills, I'd suggest looking at the source for > Geo::Coder:US. This is on my list of things to do one day with Geo::Coder::US. Basically, the right way to do it is with an on-disk quadtree index of streets in the BerkeleyDB database. I just haven't gotten round to exploring this idea yet - suggestions and patches welcome. SDE From kenlord at GMAIL.COM Sun Jan 2 12:15:44 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Sun, 2 Jan 2005 12:15:44 -0800 Subject: Projection trouble In-Reply-To: <41D7E63F.5050404@ccgis.de> Message-ID: Hi Arnulf, This is a bit of a guess here, I am no wms expert, but It looks like your wms server does not have the ability to reproject, and instead of failing, it is sending the data in its native projection. I have had the odd projection problem now and then with mapserver newer than 4.0 as well, I have found that sometimes it has problems finding the 'proj' folder. In 2 different windows setups I have found that I have had to place the proj folder at 'c:\proj' for it to work, regardless of how the environmental variables are set. In one of these cases, C was not even the root drive, but proj would still not function unless it was at c:\proj So if you haven't already tried this, make sure that you have your proj folder at c:\proj I also see that in your getcapabilities link, some of the epsg codes do not have 'epsg' capatilized .... try 'EPSG:xxxx' instead of 'epsg:xxxx'. I think I've seen a couple messages on the list where the newer versions of mapserver are fussy about this. I hope that helps, Ken Lord Vancouver BC On Sun, 2 Jan 2005 13:17:03 +0100, Arnulf Christl wrote: > Hi, > sorry I postet a wrong link. The problem can be seen here: > http://www.mapbender.org/testbed.html > I just added a box where the projection can be changed on the fly. Zoom > in to below 1:50000 and switch to WGS84 and everything looks fine, the > geometries from both servers overlap perfectly. Switch to GK3 > (EPSG:31467) and there is that offset. > > Arnulf. > > Arnulf Christl wrote: > > Hi, > > we experience a strange offset when overlaying the same data as WMS maps > > with MapServer versions 4.0.1 and 4.4.1. > > > > *4.0.1 server* > > Windows 2000: SP4 > > IIS: 5 > > proj: came with 4.0.1 > > gd: came with 4.0.1 > > gdal: came with 4.0.1 > > Cap URL: > > http://wms.ccgis.de/umn/bin/mapserv.exe?map=d:/umn/germany.map&SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.1.0 > > > > Data: local shape files in EPSG:4326 projected to EPSG:31467 > > > > *4.4.1 server* > > FreeBSD: 4.10 > > Apache: 1.3.33 > > proj: 4.4.9 > > gd: 2.0.33 > > gdal: 1.2.1 > > Cap URL: > > http://wms1.ccgis.de/cgi-bin/mapserv?map=/data/umn/germany_demo/germany_demo.map&VERSION=1.1.1&REQUEST=GetCapabilities&SERVICE=WMS > > > > Data: the same shape files as above (WGS84) but dumped to > > PostgreSQL/PostGIS (and also projected to EPSG:31467). > > > > The problem does not seem to result from MapServer but from proj? > > > > You can have a look at the problem here: > > http://www.mapbender.org/demoserver.html > > > > Zoom in to a scale of 1:100,000 or less to see the post code areas. They > > overlap with an x-offset (north): > > in northern Germany 190m > > in central Germany 145m > > in southern Germany 100m > > > > The y-offset (east) is: > > in western Germany 45m > > in eastern Germany 125m > > > > That resembles a lot to a datum shift which we stumbled accross (years > > ago) when reading GPS EPSG:4326 WGS84 data directly into the database > > and overlaying it with Gauss-Kruger EPSG:31467 (Bessel projection). > > > > What has been changed and what impact does it have on projects which > > overlay other data? > > > > Best regards, Arnulf. > > > From bartvde at XS4ALL.NL Sun Jan 2 12:43:37 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Sun, 2 Jan 2005 21:43:37 +0100 Subject: Projection trouble In-Reply-To: <41D7E63F.5050404@ccgis.de> Message-ID: Hi Arnulf, just checking a thing which maybe could cause displacement. Does your Mapbender client use the exact same ratio of pixel coordinates (width versus height) to world coordinates (maxx-minx versus maxy-miny). Ofcourse there were changes in Mapserver WMS between 4.0.1 and 4.4.1 which can cause non square pixels if the ratio differs, which maybe could cause this .... Just a thought. Best regards, Bart On Sun, 2 Jan 2005 13:17:03 +0100, Arnulf Christl wrote: > Hi, > sorry I postet a wrong link. The problem can be seen here: > http://www.mapbender.org/testbed.html > I just added a box where the projection can be changed on the fly. Zoom > in to below 1:50000 and switch to WGS84 and everything looks fine, the > geometries from both servers overlap perfectly. Switch to GK3 > (EPSG:31467) and there is that offset. > > Arnulf. > > Arnulf Christl wrote: >> Hi, >> we experience a strange offset when overlaying the same data as WMS maps >> with MapServer versions 4.0.1 and 4.4.1. >> >> *4.0.1 server* >> Windows 2000: SP4 >> IIS: 5 >> proj: came with 4.0.1 >> gd: came with 4.0.1 >> gdal: came with 4.0.1 >> Cap URL: >> http://wms.ccgis.de/umn/bin/mapserv.exe?map=d:/umn/germany.map&SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.1.0 >> >> Data: local shape files in EPSG:4326 projected to EPSG:31467 >> >> *4.4.1 server* >> FreeBSD: 4.10 >> Apache: 1.3.33 >> proj: 4.4.9 >> gd: 2.0.33 >> gdal: 1.2.1 >> Cap URL: >> http://wms1.ccgis.de/cgi-bin/mapserv?map=/data/umn/germany_demo/germany_demo.map&VERSION=1.1.1&REQUEST=GetCapabilities&SERVICE=WMS >> >> Data: the same shape files as above (WGS84) but dumped to >> PostgreSQL/PostGIS (and also projected to EPSG:31467). >> >> The problem does not seem to result from MapServer but from proj? >> >> You can have a look at the problem here: >> http://www.mapbender.org/demoserver.html >> >> Zoom in to a scale of 1:100,000 or less to see the post code areas. They >> overlap with an x-offset (north): >> in northern Germany 190m >> in central Germany 145m >> in southern Germany 100m >> >> The y-offset (east) is: >> in western Germany 45m >> in eastern Germany 125m >> >> That resembles a lot to a datum shift which we stumbled accross (years >> ago) when reading GPS EPSG:4326 WGS84 data directly into the database >> and overlaying it with Gauss-Kruger EPSG:31467 (Bessel projection). >> >> What has been changed and what impact does it have on projects which >> overlay other data? >> >> Best regards, Arnulf. >> > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From marc.jacquin at GEOSYS.COM Mon Jan 3 03:25:53 2005 From: marc.jacquin at GEOSYS.COM (Marc Jacquin) Date: Mon, 3 Jan 2005 05:25:53 -0600 Subject: Pixmap symbols with Oracle SDO_POINT not showing on the map Message-ID: Hi Mapserver Users, First of all : happy new year to everyone. I am using the DM solution 4.3 windows binaries MapServer version 4.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=W MS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=POSTGIS INPUT=ORACLESPATIAL INPUT=OG R INPUT=GDAL INPUT=SHAPEFILE I have several layers (polygon and point type) in Oracle 10G SDO. Polygon layers are displayed correctly. But point layers using PNG pixmap are not displayed. The only symptom appears in the MS_ERROR_FILE is ?Mon Jan 03 10:28:18 2005 - msBuildPath: Unable to access file.? The map file contains Symbol definition like : SYMBOL NAME ?symbolname? TYPE PIXMAP IMAGE ?absolute path to image.png? END And point layer definition looks like : LAYER CONNECTION "something/pass at connection" CONNECTIONTYPE ORACLESPATIAL DATA "GEOMETRY FROM (select geometry from jalon where idfarmdata ='2952')" NAME "JALON" PROJECTION "init=epsg:27582" END SIZEUNITS PIXELS STATUS ON TOLERANCE 3 TOLERANCEUNITS PIXELS TYPE POINT UNITS METERS CLASS MAXSIZE 100 MINSIZE 1 SIZE 1 SYMBOL symnolname or symbol number (>1) or relative path to the png file from the map file END END The SQL statement returns a valid geometry : SDO_GEOMETRY(2001, 41014, SDO_POINT_TYPE(630146.808, 2583979.93, 0), NULL, NULL). I tried to change the png file path but I still get the same error. Any idea ? Marc From agillesp at VT.EDU Mon Jan 3 06:01:44 2005 From: agillesp at VT.EDU (Abe Gillespie) Date: Mon, 3 Jan 2005 09:01:44 -0500 Subject: Color distortion still Message-ID: I'm using the latest version but am still getting color changing problems. Now, however, it only happens when I have a layer with transparency. You can see the problems here: layer w/o transparency: http://141.152.79.120/temp/color.png layer w/ transparency: http://141.152.79.120/temp/grey.png The layer with the transparency I change is the one that goes from a pinkish color to grey. Thanks. -Abe From fwarmerdam at GMAIL.COM Mon Jan 3 06:07:43 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Mon, 3 Jan 2005 09:07:43 -0500 Subject: Color distortion still In-Reply-To: <006BA27A-5D90-11D9-8DBC-000A957A0F9C@vt.edu> Message-ID: On Mon, 3 Jan 2005 09:01:44 -0500, Abe Gillespie wrote: > I'm using the latest version but am still getting color changing > problems. Now, however, it only happens when I have a layer with > transparency. You can see the problems here: > > layer w/o transparency: > http://141.152.79.120/temp/color.png > > layer w/ transparency: > http://141.152.79.120/temp/grey.png > > The layer with the transparency I change is the one that goes from a > pinkish color to grey. Abe, I have reviewed the gdImageCopyMerge() used by mapserver to apply transparent layers to the master copy, and the problem seems to be there. It appears it deliberately uses only a greyscale value from the layer being overlaid on the master, presumably to moderate the number of colors used. Generally speaking I would advise against using transparent layers in 8bit mode anyways due to the difficult to predict number of colors that will be needed. The gdImageCopyMerge() function is a part of the GD library and so not under out (the mapserver developers) direct control. However, if you want to file a bug on the problem we could try and incorporate a special case in our higher level logic to handle transparency with 8bit (pseudocolored) images. If you file a bug on this issue please include this email so we don't have to re-discover what is going on. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From agillesp at VT.EDU Mon Jan 3 06:33:36 2005 From: agillesp at VT.EDU (Abe Gillespie) Date: Mon, 3 Jan 2005 09:33:36 -0500 Subject: Color distortion still In-Reply-To: <931f8ea90501030607536f8492@mail.gmail.com> Message-ID: I have yet to file a bug but would be happy to do so. Would you mind pointing me to some info on how to get started? Also, what do I need to do to change my image to a higher quality? Thanks. -Abe On Jan 3, 2005, at 9:07 AM, Frank Warmerdam wrote: > On Mon, 3 Jan 2005 09:01:44 -0500, Abe Gillespie > wrote: >> I'm using the latest version but am still getting color changing >> problems. Now, however, it only happens when I have a layer with >> transparency. You can see the problems here: >> >> layer w/o transparency: >> http://141.152.79.120/temp/color.png >> >> layer w/ transparency: >> http://141.152.79.120/temp/grey.png >> >> The layer with the transparency I change is the one that goes from a >> pinkish color to grey. > > Abe, > > I have reviewed the gdImageCopyMerge() used by mapserver > to apply transparent layers to the master copy, and the problem > seems to be there. It appears it deliberately uses only a greyscale > value from the layer being overlaid on the master, presumably to > moderate the number of colors used. > > Generally speaking I would advise against using transparent > layers in 8bit mode anyways due to the difficult to predict number > of colors that will be needed. > > The gdImageCopyMerge() function is a part of the GD library and > so not under out (the mapserver developers) direct control. > However, if you want to file a bug on the problem we could try > and incorporate a special case in our higher level logic to handle > transparency with 8bit (pseudocolored) images. If you file a bug on > this issue please include this email so we don't have to re-discover > what is going on. > > Best regards, > -- > --------------------------------------- > +-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > From bartvde at XS4ALL.NL Mon Jan 3 06:29:31 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Mon, 3 Jan 2005 15:29:31 +0100 Subject: Color distortion still In-Reply-To: <7424177C-5D94-11D9-8DBC-000A957A0F9C@vt.edu> Message-ID: Hi Abe, > I have yet to file a bug but would be happy to do so. Would you mind > pointing me to some info on how to get started? Filing a bug is done through the Mapserver bugzilla. http://mapserver.gis.umn.edu/bugs/ First you need to register in order to being able to file a bug, you can do this by following the link: "Open a new Bugzilla account". The bugzilla system is quite easy to follow, so I am sure you will manage. One of the most important things is to add an attachment to the bug, which can only be done after the bug has been submitted (there is a link then called "create an attachment" or something similar). > Also, what do I need to do to change my image to a higher quality? You have to use RGBA imagemode instead of PC256, for instance for png use: OUTPUTFORMAT NAME png MIMETYPE image/png DRIVER GD/PNG EXTENSION png IMAGEMODE RGBA TRANSPARENT TRUE END Please note this will increase color depth to 24 bit instead of 8 bit, which will make the file size of the images larger. Best regards, Bart > > Thanks. > -Abe > > On Jan 3, 2005, at 9:07 AM, Frank Warmerdam wrote: > >> On Mon, 3 Jan 2005 09:01:44 -0500, Abe Gillespie >> wrote: >>> I'm using the latest version but am still getting color changing >>> problems. Now, however, it only happens when I have a layer with >>> transparency. You can see the problems here: >>> >>> layer w/o transparency: >>> http://141.152.79.120/temp/color.png >>> >>> layer w/ transparency: >>> http://141.152.79.120/temp/grey.png >>> >>> The layer with the transparency I change is the one that goes from a >>> pinkish color to grey. >> >> Abe, >> >> I have reviewed the gdImageCopyMerge() used by mapserver >> to apply transparent layers to the master copy, and the problem >> seems to be there. It appears it deliberately uses only a greyscale >> value from the layer being overlaid on the master, presumably to >> moderate the number of colors used. >> >> Generally speaking I would advise against using transparent >> layers in 8bit mode anyways due to the difficult to predict number >> of colors that will be needed. >> >> The gdImageCopyMerge() function is a part of the GD library and >> so not under out (the mapserver developers) direct control. >> However, if you want to file a bug on the problem we could try >> and incorporate a special case in our higher level logic to handle >> transparency with 8bit (pseudocolored) images. If you file a bug on >> this issue please include this email so we don't have to re-discover >> what is going on. >> >> Best regards, >> -- >> --------------------------------------- >> +-------------------------------------- >> I set the clouds in motion - turn up | Frank Warmerdam, >> warmerdam at pobox.com >> light and sound - activate the windows | http://pobox.com/~warmerdam >> and watch the world go round - Rush | Geospatial Programmer for Rent >> > From assefa at DMSOLUTIONS.CA Mon Jan 3 06:41:31 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Mon, 3 Jan 2005 09:41:31 -0500 Subject: SLD and transparent polygon fill In-Reply-To: <9734.212.238.227.182.1103821194.squirrel@212.238.227.182> Message-ID: Until there is a support of transparency at feature level in Mapserver, the SLD won't be able to support this feature. Later, Bart van den Eijnden wrote: > Hi list, > > is it possible using Mapserver to have a transparent polygon fill through > SLD? > > E.g.: > > > #ff0000 > 0.5 > > > If not, is there a work-around to accomplish this using SLD? > > Thanks in advance. > > Best regards, > Bart > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From agillesp at VT.EDU Mon Jan 3 07:06:12 2005 From: agillesp at VT.EDU (Abe Gillespie) Date: Mon, 3 Jan 2005 10:06:12 -0500 Subject: Color distortion still In-Reply-To: <10739.212.238.227.182.1104762571.squirrel@212.238.227.182> Message-ID: Thanks Bart. Increasing the output quality not only fixed the coloring issue but another one I was having. Thanks for the tip! And I'll get to filing the bug sometime today. -Abe On Jan 3, 2005, at 9:29 AM, Bart van den Eijnden wrote: > Hi Abe, > >> I have yet to file a bug but would be happy to do so. Would you mind >> pointing me to some info on how to get started? > > Filing a bug is done through the Mapserver bugzilla. > > http://mapserver.gis.umn.edu/bugs/ > > First you need to register in order to being able to file a bug, you > can > do this by following the link: "Open a new Bugzilla account". > > The bugzilla system is quite easy to follow, so I am sure you will > manage. > One of the most important things is to add an attachment to the bug, > which > can only be done after the bug has been submitted (there is a link then > called "create an attachment" or something similar). > >> Also, what do I need to do to change my image to a higher quality? > > You have to use RGBA imagemode instead of PC256, for instance for png > use: > > OUTPUTFORMAT > NAME png > MIMETYPE image/png > DRIVER GD/PNG > EXTENSION png > IMAGEMODE RGBA > TRANSPARENT TRUE > END > > Please note this will increase color depth to 24 bit instead of 8 bit, > which will make the file size of the images larger. > > Best regards, > Bart > >> >> Thanks. >> -Abe >> >> On Jan 3, 2005, at 9:07 AM, Frank Warmerdam wrote: >> >>> On Mon, 3 Jan 2005 09:01:44 -0500, Abe Gillespie >>> wrote: >>>> I'm using the latest version but am still getting color changing >>>> problems. Now, however, it only happens when I have a layer with >>>> transparency. You can see the problems here: >>>> >>>> layer w/o transparency: >>>> http://141.152.79.120/temp/color.png >>>> >>>> layer w/ transparency: >>>> http://141.152.79.120/temp/grey.png >>>> >>>> The layer with the transparency I change is the one that goes from a >>>> pinkish color to grey. >>> >>> Abe, >>> >>> I have reviewed the gdImageCopyMerge() used by mapserver >>> to apply transparent layers to the master copy, and the problem >>> seems to be there. It appears it deliberately uses only a greyscale >>> value from the layer being overlaid on the master, presumably to >>> moderate the number of colors used. >>> >>> Generally speaking I would advise against using transparent >>> layers in 8bit mode anyways due to the difficult to predict number >>> of colors that will be needed. >>> >>> The gdImageCopyMerge() function is a part of the GD library and >>> so not under out (the mapserver developers) direct control. >>> However, if you want to file a bug on the problem we could try >>> and incorporate a special case in our higher level logic to handle >>> transparency with 8bit (pseudocolored) images. If you file a bug on >>> this issue please include this email so we don't have to re-discover >>> what is going on. >>> >>> Best regards, >>> -- >>> --------------------------------------- >>> +-------------------------------------- >>> I set the clouds in motion - turn up | Frank Warmerdam, >>> warmerdam at pobox.com >>> light and sound - activate the windows | http://pobox.com/~warmerdam >>> and watch the world go round - Rush | Geospatial Programmer for >>> Rent >>> >> > From jdport at VERITIME.COM Mon Jan 3 07:03:59 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Mon, 3 Jan 2005 10:03:59 -0500 Subject: Premature end of script headers... Message-ID: I was having a lot of problems with my linux install of mapserver, simply trying to get the demo to run, so finally I changed my approach and attempted to install mapserv on a windows xp web server (apache 2). When I run mapserv without any options, I get the proper response from mapserv but as soon as I try to make it run the demo, mapserv crashes and I get "internal server error" and the following shows up in my web error logs: [Mon Jan 03 09:54:11 2005] [error] [client 208.251.242.95] Premature end of script headers: mapserv40.exe, referer: http://solo.veritime.com/workshop/ When I first installed mapserver, I was having the same problem even when I ran mapserv.exe without any options. Copying all of the dll's into the directory mapserv.exe was being called from fixed that... but now I get this as soon as I attempt to view a map. If anybody has any suggestions it would be greatly appreciated, I'm really struggling to get this working and to learn how to use it. Thanks, Jeff From cdaily at GMAIL.COM Mon Jan 3 08:00:17 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Mon, 3 Jan 2005 10:00:17 -0600 Subject: Terraservice data not aligning Message-ID: Hello all. I've got a layer in my map file that I'm grabbing from terraservice, and it's mostly working great. However, when I overlay some Tiger/Line street data over the terraserver image, things aren't quite lining up. It's very, very close, but just slightly offset when zoomed in (maybe by 20-50 feet). My map file, the terraservice layer, and the tiger/line data are all projected as EPSG:4326, so I don't think it's a projection issue. Has anyone else experienced any issues mixing these two data sets? Is it possible to 'tweak' a layer so that it's offset by a short distance? I know about the 'offset' parameters for styles, but those only take units of pixels (which will look good at some zoom levels, but not others...) I'd be grateful for any suggestions. -Camden Daily terraserver layer: LAYER NAME "aerial" TYPE RASTER STATUS OFF MINSCALE 1000 # trying to grab too small a scale might result in an error from terraservice CONNECTIONTYPE WMS CONNECTION "http://terraservice.net/ogcmap.ashx?VERSION=1.1.1&SERVICE=wms&LAYERS=urbanarea&FORMAT=image/jpeg&STYLES=" METADATA "wms_srs" "EPSG:4326" END PROJECTION "init=epsg:4326" END END tiger/line layer: LAYER NAME "aerial_road_small_near" TYPE LINE STATUS OFF DATA "tgr17031lkA" MAXSCALE 100000 CLASSITEM "CFCC2" CLASS EXPRESSION /A4|A5|A6|A7/ COLOR 150 150 150 END PROJECTION "init=epsg:4326" END END From bartvde at XS4ALL.NL Mon Jan 3 08:01:23 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Mon, 3 Jan 2005 17:01:23 +0100 Subject: running Mapserver as fastcgi (win32) Message-ID: Hello list, after all compiling issues have been solved, I am trying to run Mapserver as a fastcgi on win32 but am running into some problems. I have followed all the instructions in the Wiki so far. When I run mapserv.fcgi (just http://localhost/cgi-bin/mapserv.fcgi) from a browser I get an Internal Server (500 error) and the following is in the Apache error log (incomplete headers): The fastcgi FAQ says that in those cases the application did not terminate the headers properly: http://www.fastcgi.com/docs/faq.html#incomplete_headers [Mon Jan 03 17:01:29 2005] [warn] FastCGI: (dynamic) server "C:/ms4w/cgi-bin/bart/mapserv.fcgi" started (pid 3704) [Mon Jan 03 17:01:30 2005] [error] [client 192.168.3.4] FastCGI: incomplete headers (114 bytes) received from server "C:/ms4w/cgi-bin/bart/mapserv.fcgi" [Mon Jan 03 17:01:30 2005] [warn] FastCGI: (dynamic) server "C:/ms4w/cgi-bin/bart/mapserv.fcgi" (pid 3704) terminated with exit with status '0' [Mon Jan 03 17:01:34 2005] [warn] FastCGI: (dynamic) server "C:/ms4w/cgi-bin/bart/mapserv.fcgi" restarted (pid 4008) The problem is not that a dll is missing, since if I rename one of my dll's I get something like: [Mon Jan 03 16:59:35 2005] [warn] FastCGI: (dynamic) server "C:/ms4w/cgi-bin/bart/mapserv.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds which means the process cannot even start probably. Any ideas on what is going on? Thanks in advance. Best regards, Bart From sirronj at PACBELL.NET Mon Jan 3 08:09:32 2005 From: sirronj at PACBELL.NET (Joseph Norris) Date: Mon, 3 Jan 2005 08:09:32 -0800 Subject: Suggested Courses Message-ID: To all, With the help of many of you, I have completed my proof-of-concept and it was well excepted by my company and clients - many thanks! This whole experiment has increased my interest in getting an understanding of GIS - a better understanding. Can any of you recommend an online course of study so that I might fill in the gaps between my programmer knowledge which is greater and my Geography/GIS knowledge which is limited? Thank you very much for the help on the Lat/Long Teacher search map. From sgillies at FRII.COM Mon Jan 3 08:16:52 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Mon, 3 Jan 2005 09:16:52 -0700 Subject: Terraservice data not aligning In-Reply-To: Message-ID: On Jan 3, 2005, at 9:00 AM, Camden Daily wrote: > Hello all. I've got a layer in my map file that I'm grabbing from > terraservice, and it's mostly working great. However, when I overlay > some Tiger/Line street data over the terraserver image, things aren't > quite lining up. It's very, very close, but just slightly offset when > zoomed in (maybe by 20-50 feet). > > My map file, the terraservice layer, and the tiger/line data are all > projected as EPSG:4326, so I don't think it's a projection issue. Has > anyone else experienced any issues mixing these two data sets? > > Is it possible to 'tweak' a layer so that it's offset by a short > distance? I know about the 'offset' parameters for styles, but those > only take units of pixels (which will look good at some zoom levels, > but not others...) I'd be grateful for any suggestions. > > -Camden Daily > > terraserver layer: > > LAYER > NAME "aerial" > TYPE RASTER > STATUS OFF > MINSCALE 1000 # trying to grab too small a scale might result in > an error from terraservice > CONNECTIONTYPE WMS > CONNECTION > "http://terraservice.net/ogcmap.ashx? > VERSION=1.1.1&SERVICE=wms&LAYERS=urbanarea&FORMAT=image/jpeg&STYLES=" > METADATA > "wms_srs" "EPSG:4326" > END > PROJECTION > "init=epsg:4326" > END > END > > tiger/line layer: > > LAYER > NAME "aerial_road_small_near" > TYPE LINE > STATUS OFF > DATA "tgr17031lkA" > MAXSCALE 100000 > CLASSITEM "CFCC2" > CLASS > EXPRESSION /A4|A5|A6|A7/ > COLOR 150 150 150 > END > PROJECTION > "init=epsg:4326" > END > END > > Camden, TIGER streets are not very accurate in some locations. In my neighborhood, Northern Colorado, the TIGER streets are very close to reality in Fort Collins and Larimer County ... but pan over to Boulder and there is a pervasive offset from reality. No comment on the mindset of either community intended :) You could shift the streets to align them with the imagery, but you would almost certainly be shifting them out of synch somewhere else. Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From woodbri at SWOODBRIDGE.COM Mon Jan 3 08:20:33 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 3 Jan 2005 11:20:33 -0500 Subject: Terraservice data not aligning In-Reply-To: <16264e0705010308002a241915@mail.gmail.com> Message-ID: Camden, Tiger data is known to have varying accuracy from county to county. Sometimes the data is very closely aligned but in some areas it can be grossly off. The Census is spending $200 Million to improve the quality and accuracy of there data. See http://www.census.gov/geo/mod/maftiger.html The first changes from this project will be getting release in Q1'05 and will be getting rolled out twice a year over the next few years until the project is done. Until then we all have to live with it as it is or license commercial data which is typically very expensive. -Steve W. http://imaptools.com/ Camden Daily wrote: > Hello all. I've got a layer in my map file that I'm grabbing from > terraservice, and it's mostly working great. However, when I overlay > some Tiger/Line street data over the terraserver image, things aren't > quite lining up. It's very, very close, but just slightly offset when > zoomed in (maybe by 20-50 feet). > > My map file, the terraservice layer, and the tiger/line data are all > projected as EPSG:4326, so I don't think it's a projection issue. Has > anyone else experienced any issues mixing these two data sets? > > Is it possible to 'tweak' a layer so that it's offset by a short > distance? I know about the 'offset' parameters for styles, but those > only take units of pixels (which will look good at some zoom levels, > but not others...) I'd be grateful for any suggestions. > > -Camden Daily > > terraserver layer: > > LAYER > NAME "aerial" > TYPE RASTER > STATUS OFF > MINSCALE 1000 # trying to grab too small a scale might result in > an error from terraservice > CONNECTIONTYPE WMS > CONNECTION > "http://terraservice.net/ogcmap.ashx?VERSION=1.1.1&SERVICE=wms&LAYERS=urbanarea&FORMAT=image/jpeg&STYLES=" > METADATA > "wms_srs" "EPSG:4326" > END > PROJECTION > "init=epsg:4326" > END > END > > tiger/line layer: > > LAYER > NAME "aerial_road_small_near" > TYPE LINE > STATUS OFF > DATA "tgr17031lkA" > MAXSCALE 100000 > CLASSITEM "CFCC2" > CLASS > EXPRESSION /A4|A5|A6|A7/ > COLOR 150 150 150 > END > PROJECTION > "init=epsg:4326" > END > END > From bfraser at GEOANALYTIC.COM Mon Jan 3 08:27:14 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Mon, 3 Jan 2005 09:27:14 -0700 Subject: Suggested Courses Message-ID: Joseph, Here's my collection of online training links. I haven't gone thru them in detail, so I can't attest to the quality... Brent Fraser GIS: http://www.ncgia.ucsb.edu/education/curricula/giscc/ http://geology.isu.edu/geostac/exercise.htm http://www.uottawa.ca/academic/arts/geographie/lpcweb/web2320/lectnotes.htm Cartography: http://www.map-reading.com/ http://www.onwordpress.com/resources/olcs/madej/index.htm Remote Sensing: http://daac.gsfc.nasa.gov/DAAC_DOCS/geomorphology/GEO_HOME_PAGE.html http://rst.gsfc.nasa.gov/start.html ----- Original Message ----- From: "Joseph Norris" To: Sent: Monday, January 03, 2005 9:09 AM Subject: [UMN_MAPSERVER-USERS] Suggested Courses > To all, > > With the help of many of you, I have completed my proof-of-concept and > it was well excepted by my company and clients - many thanks! This > whole experiment has increased my interest in getting an understanding > of GIS - a better understanding. > > Can any of you recommend an online course of study so that I might fill > in the gaps between my programmer knowledge which is greater and my > Geography/GIS knowledge which is limited? > > Thank you very much for the help on the Lat/Long Teacher search map. From gerry.creager at TAMU.EDU Mon Jan 3 08:28:57 2005 From: gerry.creager at TAMU.EDU (Gerry Creager N5JXS) Date: Mon, 3 Jan 2005 10:28:57 -0600 Subject: Terraservice data not aligning In-Reply-To: <41D970D1.8010704@swoodbridge.com> Message-ID: For what it's worth, there's a good bit of very accurate data for the State of Texas. For those interested in Texas, please check out http://www.tnris.state.tx.us and then go to the Digital Data tab. The Texas Strategic Mapping Initiative has placed a *LOT* of data into the public domain and we're trying to keep it updated. I recently went down map accuracy issues with Census and an interested amateur cartographer. Some of the errors are "interesting" and I'm a little concerned that they claim to meet national map accuracy standards with some of their data. It appears to be more'n a little off... Gerry Stephen Woodbridge wrote: > Camden, > > Tiger data is known to have varying accuracy from county to county. > Sometimes the data is very closely aligned but in some areas it can be > grossly off. The Census is spending $200 Million to improve the quality > and accuracy of there data. See http://www.census.gov/geo/mod/maftiger.html > The first changes from this project will be getting release in Q1'05 and > will be getting rolled out twice a year over the next few years until > the project is done. > > Until then we all have to live with it as it is or license commercial > data which is typically very expensive. > > -Steve W. > http://imaptools.com/ > > Camden Daily wrote: > >> Hello all. I've got a layer in my map file that I'm grabbing from >> terraservice, and it's mostly working great. However, when I overlay >> some Tiger/Line street data over the terraserver image, things aren't >> quite lining up. It's very, very close, but just slightly offset when >> zoomed in (maybe by 20-50 feet). >> >> My map file, the terraservice layer, and the tiger/line data are all >> projected as EPSG:4326, so I don't think it's a projection issue. Has >> anyone else experienced any issues mixing these two data sets? >> >> Is it possible to 'tweak' a layer so that it's offset by a short >> distance? I know about the 'offset' parameters for styles, but those >> only take units of pixels (which will look good at some zoom levels, >> but not others...) I'd be grateful for any suggestions. >> >> -Camden Daily >> >> terraserver layer: >> >> LAYER >> NAME "aerial" >> TYPE RASTER >> STATUS OFF >> MINSCALE 1000 # trying to grab too small a scale might result in >> an error from terraservice >> CONNECTIONTYPE WMS >> CONNECTION >> "http://terraservice.net/ogcmap.ashx?VERSION=1.1.1&SERVICE=wms&LAYERS=urbanarea&FORMAT=image/jpeg&STYLES=" >> >> METADATA >> "wms_srs" "EPSG:4326" >> END >> PROJECTION >> "init=epsg:4326" >> END >> END >> >> tiger/line layer: >> >> LAYER >> NAME "aerial_road_small_near" >> TYPE LINE >> STATUS OFF >> DATA "tgr17031lkA" >> MAXSCALE 100000 >> CLASSITEM "CFCC2" >> CLASS >> EXPRESSION /A4|A5|A6|A7/ >> COLOR 150 150 150 >> END >> PROJECTION >> "init=epsg:4326" >> END >> END >> -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Page: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From cdaily at GMAIL.COM Mon Jan 3 08:31:50 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Mon, 3 Jan 2005 10:31:50 -0600 Subject: Terraservice data not aligning In-Reply-To: <41D970D1.8010704@swoodbridge.com> Message-ID: Yeah, the more I look at it, the more it looks like you all might be right about the tiger/line data causing my difficulties. I'm glad that they're upgrading the dataset, but if I find that I can't wait for it to get better, does anyone have good suggestions as to where I could get good replacement data for not much money? Also, I'd be interested in trying to hack the terraservice layer into fitting my slightly offset tiger/line data. Anyone know a way I can pass a slightly offset extent to the terraservice server, or somehow offset the layer within mapserver? -Camden Daily From ed at TOPOZONE.COM Mon Jan 3 08:53:36 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 3 Jan 2005 11:53:36 -0500 Subject: Terraservice data not aligning Message-ID: Camden - I don't mean to be a wet blanket, but maintaining a nationwide database of highly accurate street data is a very expensive proposition. It is difficult for vendors to make that investment if they intend to distribut it for "not much money". Like many things, you get what you pay for; I do not know of any data set that is better than TIGER that is also inexpensive. Do you need the entire US? There certainly may be local data sets both inside and outside the Great State of Texas that are better than TIGER. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Camden Daily Sent: Monday, January 03, 2005 11:32 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Terraservice data not aligning Yeah, the more I look at it, the more it looks like you all might be right about the tiger/line data causing my difficulties. I'm glad that they're upgrading the dataset, but if I find that I can't wait for it to get better, does anyone have good suggestions as to where I could get good replacement data for not much money? Also, I'd be interested in trying to hack the terraservice layer into fitting my slightly offset tiger/line data. Anyone know a way I can pass a slightly offset extent to the terraservice server, or somehow offset the layer within mapserver? -Camden Daily From w.blanken at GEON.NL Mon Jan 3 09:03:17 2005 From: w.blanken at GEON.NL (Wim Blanken) Date: Mon, 3 Jan 2005 18:03:17 +0100 Subject: Premature end of script headers... Message-ID: Hello Jeff, My experience untill now is that you have to copy all dll's into the directory WINDOWS\SYSTEM32. I think that the webserver user (apache?) has no rights to load the dll's from your mapserver directory. How did you install mapserver on linux, did you get compile errors of some kind? Regards, Wim Blanken The Netherlands ----- Original Message ----- From: "Jeff Portwine" To: Sent: Monday, January 03, 2005 4:03 PM Subject: [UMN_MAPSERVER-USERS] Premature end of script headers... >I was having a lot of problems with my linux install of mapserver, simply > trying to get the demo to run, so finally I changed my approach and > attempted to install mapserv on a windows xp web server (apache 2). > When > I run mapserv without any options, I get the proper response from mapserv > but as soon as I try to make it run the demo, mapserv crashes and I get > "internal server error" and the following shows up in my web error logs: > > [Mon Jan 03 09:54:11 2005] [error] [client 208.251.242.95] Premature end > of > script headers: mapserv40.exe, referer: http://solo.veritime.com/workshop/ > > When I first installed mapserver, I was having the same problem even when > I > ran mapserv.exe without any options. Copying all of the dll's into the > directory mapserv.exe was being called from fixed that... but now I get > this > as soon as I attempt to view a map. If anybody has any suggestions it > would be greatly appreciated, I'm really struggling to get this working > and > to learn how to use it. > > Thanks, > Jeff > > From cdaily at GMAIL.COM Mon Jan 3 09:13:07 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Mon, 3 Jan 2005 11:13:07 -0600 Subject: Terraservice data not aligning In-Reply-To: <4BF377919225F449BB097CB76FFE9BC80FC91C@ptolemy.topozone.com> Message-ID: I think the TIGER data is quite incredible for being free. Even if it's not perfectly accurate, it's certainly good enough for most applications. In fact, if I wasn't trying to overlay it on the terraservice data, I wouldn't have even noticed that it was off. I only need data for the state of Illinois, and while they have some good GIS data on the state web site, it doesn't include street level data. I have a question about WMS layers in Mapserver. When I get the layer from terraservice, I use the lines: CONNECTION "http://terraservice.net/ogcmap.ashx?VERSION=1.1.1&SERVICE=wms&LAYERS=urbanarea&FORMAT=image/jpeg&STYLES=" METADATA "wms_srs" "EPSG:4326" END Now, I assume that mapserver also sends it the extents that are needed. Is there a way I could tweak those extents before they get sent to terraservice? If I could offset them just slightly to match my TIGER data, that'd be wonderful. Thanks for the help everyone, -Camden From jeff at PROPERTYKEY.COM Mon Jan 3 09:22:13 2005 From: jeff at PROPERTYKEY.COM (Jeff Hoffmann) Date: Mon, 3 Jan 2005 11:22:13 -0600 Subject: Terraservice data not aligning In-Reply-To: <4BF377919225F449BB097CB76FFE9BC80FC91C@ptolemy.topozone.com> Message-ID: Ed McNierney wrote: > Camden - > > I don't mean to be a wet blanket, but maintaining a nationwide database > of highly accurate street data is a very expensive proposition. It is > difficult for vendors to make that investment if they intend to > distribut it for "not much money". Like many things, you get what you > pay for; I do not know of any data set that is better than TIGER that is > also inexpensive. Do you need the entire US? There certainly may be > local data sets both inside and outside the Great State of Texas that > are better than TIGER. If you're only interested in a single county or a few counties, you might want to contact your local county assessor's office (or GIS department, although they're usually part of the assessor's office). Often they will have street centerlines that are either TIGER corrected and reprojected to fit their parcel layers or created internally to supplement their other layers. It's 1000x better than TIGER -- most of counties I've seen line up reasonable well with just about anything. What this costs varies a lot from county to county and state to state. Some counties will give this layer away for free. Some charge by the MB & since it's not very big layer, I would think it should be reasonably inexpensive. It's a good place to start either way. -- Jeff Hoffmann jeff at propertykey.com From wouter.schaubroeck at GMAIL.COM Mon Jan 3 09:39:43 2005 From: wouter.schaubroeck at GMAIL.COM (Wouter Schaubroeck) Date: Mon, 3 Jan 2005 18:39:43 +0100 Subject: Premature end of script headers... In-Reply-To: <007701c4f1b6$1fe7bfc0$6401a8c0@blanken> Message-ID: Hello Jef, It's important that you know what kind off premature end of scrip headers it is, is it mapserv.exe or perhaps php? If its mapserv.exe, then you download this program: http://www.dependencywalker.com/. Check what file mapserv.exe is missing, in my case, it was something like ms***.dll. Search for the file (even on the internet) en put it in the right map. grtz Wouter Schaubroeck Belgium Wim Blanken wrote: > Hello Jeff, > > My experience untill now is that you have to copy all dll's into the > directory WINDOWS\SYSTEM32. > I think that the webserver user (apache?) has no rights to load the dll's > from your mapserver directory. > How did you install mapserver on linux, did you get compile errors of > some > kind? > > Regards, > > Wim Blanken > The Netherlands > > ----- Original Message ----- > From: "Jeff Portwine" > To: > Sent: Monday, January 03, 2005 4:03 PM > Subject: [UMN_MAPSERVER-USERS] Premature end of script headers... > > >> I was having a lot of problems with my linux install of mapserver, >> simply >> trying to get the demo to run, so finally I changed my approach and >> attempted to install mapserv on a windows xp web server (apache 2). >> When >> I run mapserv without any options, I get the proper response from >> mapserv >> but as soon as I try to make it run the demo, mapserv crashes and I get >> "internal server error" and the following shows up in my web error logs: >> >> [Mon Jan 03 09:54:11 2005] [error] [client 208.251.242.95] Premature end >> of >> script headers: mapserv40.exe, referer: >> http://solo.veritime.com/workshop/ >> >> When I first installed mapserver, I was having the same problem even >> when >> I >> ran mapserv.exe without any options. Copying all of the dll's into the >> directory mapserv.exe was being called from fixed that... but now I get >> this >> as soon as I attempt to view a map. If anybody has any suggestions it >> would be greatly appreciated, I'm really struggling to get this working >> and >> to learn how to use it. >> >> Thanks, >> Jeff >> >> > From kueda at WSO.WILLIAMS.EDU Mon Jan 3 09:46:53 2005 From: kueda at WSO.WILLIAMS.EDU (Ken-ichi) Date: Mon, 3 Jan 2005 09:46:53 -0800 Subject: php dso and the mapserv cgi In-Reply-To: <41C3FC56.3050709@microdop.org> Message-ID: Hey, thanks for the reply. Now that I'm back from holiday, I tried following your advice and recompiling without proj, but I get the same error. Anyone else have any suggestions? -Ken-ichi Thomas Sondag wrote: > I have the same problem too on a debian Sarge, could you try to build > (just for test) without the proj4 support ? (not very usable, but seen > to fix the problem) > > Ken-ichi wrote: > >> Hi all. I tried compiling MapServer against PHP 4.3.10 compiled as an >> Apache DSO, given recent messages on this list suggesting this was now >> possible. PHP MapScript seems to work fine, but the mapserv cgi just >> gives 500 errors, and the error log says "Premature end of script >> headers: mapserv". I've tried adding lines to httpd.conf specifying the >> LD_LIBRARY_PATH to all relevant directories, and updating my environment >> variables (env-update, as I'm on Gentoo), but with no luck. Any idea >> what's going on? I don't understand why the mapserv cgi even cares how >> php is running. It's not even using php! >> >> Oh, and here are my configure statements, if it helps: >> >> APACHE >> ./configure \ >> --with-openssl \ >> --with-zlib \ >> --with-dbase \ >> --with-dbx \ >> --with-gd=/usr \ >> --with-jpeg-dir=/usr \ >> --with-png-dir=/usr \ >> --with-zlib-dir=/usr \ >> --with-freetype-dir=/usr \ >> --with-mcrypt \ >> --with-pdflib=/usr \ >> --with-pgsql \ >> --with-pspell \ >> --with-pear \ >> --with-apxs2=/usr/local/apache2/bin/apxs \ >> --enable-force-cgi-redirect \ >> --enable-discard-path \ >> --with-regex=system >> >> MAPSERVER >> ./configure >> --with-gd=/usr \ >> --with-freetype=/usr \ >> --with-zlib=/usr \ >> --with-png=/usr \ >> --with-jpeg=/usr \ >> --with-pdf=/usr \ >> --with-proj=/usr \ >> --with-ogr=/usr/local/bin/gdal-config \ >> --with-gdal=/usr/local/bin/gdal-config \ >> --with-postgis=/usr/local/pgsql/bin/pg_config \ >> --with-wfs \ >> --with-wmsclient \ >> --with-wfsclient \ >> --with-curl-config=/usr/bin/curl-config \ >> --with-httpd=/usr/local/apache2/bin/httpd \ >> --with-php=/usr/local/src/php-4.3.10 \ >> --without-tiff >> >> -Ken-ichi > From ed at TOPOZONE.COM Mon Jan 3 09:47:23 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 3 Jan 2005 12:47:23 -0500 Subject: Terraservice data not aligning Message-ID: Camden - If you could tweak the extents it wouldn't fix your problem; the WMS server would return a different image at those coordinates. You're trying to get the SAME image to be displayed at DIFFERENT coordinates. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Camden Daily Sent: Monday, January 03, 2005 12:13 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Terraservice data not aligning I think the TIGER data is quite incredible for being free. Even if it's not perfectly accurate, it's certainly good enough for most applications. In fact, if I wasn't trying to overlay it on the terraservice data, I wouldn't have even noticed that it was off. I only need data for the state of Illinois, and while they have some good GIS data on the state web site, it doesn't include street level data. I have a question about WMS layers in Mapserver. When I get the layer from terraservice, I use the lines: CONNECTION "http://terraservice.net/ogcmap.ashx?VERSION=1.1.1&SERVICE=wms&LAYERS=ur banarea&FORMAT=image/jpeg&STYLES=" METADATA "wms_srs" "EPSG:4326" END Now, I assume that mapserver also sends it the extents that are needed. Is there a way I could tweak those extents before they get sent to terraservice? If I could offset them just slightly to match my TIGER data, that'd be wonderful. Thanks for the help everyone, -Camden From jdport at VERITIME.COM Mon Jan 3 09:54:36 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Mon, 3 Jan 2005 12:54:36 -0500 Subject: Premature end of script headers... Message-ID: I actually did try copying all of the .dll's into the c:\windows\system32 directory, and I still was getting the error. I've just started working through the tutorials at http://terrasip.gis.umn.edu/projects/tutorial/ and the first couple of examples are working fine. However, running the mapserv demo (http://mapserver.gis.umn.edu/demo_readme.html) gives me the premature end of script: mapserver error every time. I'm going to continue working through the terrasip tutorials until I hit a point where they fail and I start getting the error and maybe I can determine what exactly causes the error to occur. In Linux I got through the compilation but I had a lot of problems with a similar error, premature end of script. Except instead of giving premature end of script: mapserv, I was getting premature end of script: php. There were a lot more complications under linux also, with so many supporting librarys required, having it attempting to load the wrong versions of libs, etc. This is why I decided to try a precompiled win32 version, because I thought it would be a lot simpler and I could concentrate on learning how mapserver worked and then go back to attempting to run it under linux with a little more knowledge of what I was working with. -Jeff ----- Original Message ----- From: "Wim Blanken" To: Sent: Monday, January 03, 2005 12:03 PM Subject: Re: [UMN_MAPSERVER-USERS] Premature end of script headers... > Hello Jeff, > > My experience untill now is that you have to copy all dll's into the > directory WINDOWS\SYSTEM32. > I think that the webserver user (apache?) has no rights to load the dll's > from your mapserver directory. > How did you install mapserver on linux, did you get compile errors of some > kind? > > Regards, > > Wim Blanken > The Netherlands > > ----- Original Message ----- > From: "Jeff Portwine" > To: > Sent: Monday, January 03, 2005 4:03 PM > Subject: [UMN_MAPSERVER-USERS] Premature end of script headers... > > >>I was having a lot of problems with my linux install of mapserver, simply >> trying to get the demo to run, so finally I changed my approach and >> attempted to install mapserv on a windows xp web server (apache 2). >> When >> I run mapserv without any options, I get the proper response from mapserv >> but as soon as I try to make it run the demo, mapserv crashes and I get >> "internal server error" and the following shows up in my web error logs: >> >> [Mon Jan 03 09:54:11 2005] [error] [client 208.251.242.95] Premature end >> of >> script headers: mapserv40.exe, referer: >> http://solo.veritime.com/workshop/ >> >> When I first installed mapserver, I was having the same problem even when >> I >> ran mapserv.exe without any options. Copying all of the dll's into the >> directory mapserv.exe was being called from fixed that... but now I get >> this >> as soon as I attempt to view a map. If anybody has any suggestions it >> would be greatly appreciated, I'm really struggling to get this working >> and >> to learn how to use it. >> >> Thanks, >> Jeff >> >> > From jdport at VERITIME.COM Mon Jan 3 10:00:32 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Mon, 3 Jan 2005 13:00:32 -0500 Subject: Premature end of script headers... Message-ID: It is giving the error for mapserver. I actually already had tried the dependancywalker program and corrected the missing .dll that you mentioned. At this point, it does not show any missing .dll files. It does, however, show one .dll "red" instead of black like all of the others (mpr.dll) and there is a message: "Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependant module." I really don't know what that means or if that is causing the problem, but I searched for a more up to date version of mpr.dll and couldn't find anything. Thanks, Jeff ----- Original Message ----- From: "Wouter Schaubroeck" To: Sent: Monday, January 03, 2005 12:39 PM Subject: Re: [UMN_MAPSERVER-USERS] Premature end of script headers... > Hello Jef, > > It's important that you know what kind off premature end of scrip > headers it is, is it mapserv.exe or perhaps php? If its mapserv.exe, > then you download this program: http://www.dependencywalker.com/. Check > what file mapserv.exe is missing, in my case, it was something like > ms***.dll. Search for the file (even on the internet) en put it in the > right map. > > grtz > Wouter Schaubroeck > Belgium > > Wim Blanken wrote: > >> Hello Jeff, >> >> My experience untill now is that you have to copy all dll's into the >> directory WINDOWS\SYSTEM32. >> I think that the webserver user (apache?) has no rights to load the dll's >> from your mapserver directory. >> How did you install mapserver on linux, did you get compile errors of >> some >> kind? >> >> Regards, >> >> Wim Blanken >> The Netherlands >> >> ----- Original Message ----- >> From: "Jeff Portwine" >> To: >> Sent: Monday, January 03, 2005 4:03 PM >> Subject: [UMN_MAPSERVER-USERS] Premature end of script headers... >> >> >>> I was having a lot of problems with my linux install of mapserver, >>> simply >>> trying to get the demo to run, so finally I changed my approach and >>> attempted to install mapserv on a windows xp web server (apache 2). >>> When >>> I run mapserv without any options, I get the proper response from >>> mapserv >>> but as soon as I try to make it run the demo, mapserv crashes and I get >>> "internal server error" and the following shows up in my web error logs: >>> >>> [Mon Jan 03 09:54:11 2005] [error] [client 208.251.242.95] Premature end >>> of >>> script headers: mapserv40.exe, referer: >>> http://solo.veritime.com/workshop/ >>> >>> When I first installed mapserver, I was having the same problem even >>> when >>> I >>> ran mapserv.exe without any options. Copying all of the dll's into the >>> directory mapserv.exe was being called from fixed that... but now I get >>> this >>> as soon as I attempt to view a map. If anybody has any suggestions it >>> would be greatly appreciated, I'm really struggling to get this working >>> and >>> to learn how to use it. >>> >>> Thanks, >>> Jeff >>> >>> >> > From imd_listuser at COMCAST.NET Mon Jan 3 10:19:42 2005 From: imd_listuser at COMCAST.NET (IMD Listuser) Date: Mon, 3 Jan 2005 13:19:42 -0500 Subject: Using SVG with Mapserver & PostGIS Message-ID: Greetings list, Can anyone offer guidance as to how I would create a mapserver layer which uses html and svg to display a combination of vector & raster data in a web map interface? TIA Charlie IM Design From w.blanken at GEON.NL Mon Jan 3 10:49:51 2005 From: w.blanken at GEON.NL (Wim Blanken) Date: Mon, 3 Jan 2005 19:49:51 +0100 Subject: Premature end of script headers... Message-ID: Hi Jeff, I think mpr.dll is not your problem. Look at the following thread: http://lists.gis.umn.edu/pipermail/mapserver-users/2004-February/010300.html I quess something else is screwing up your dll-dependencies.....but I have no clue which one...maybe someone else? Regards, Wim Blanken The Netherlands ----- Original Message ----- From: "Jeff Portwine" To: Sent: Monday, January 03, 2005 7:00 PM Subject: Re: [UMN_MAPSERVER-USERS] Premature end of script headers... > It is giving the error for mapserver. I actually already had tried the > dependancywalker program and corrected the missing .dll that you > mentioned. > At this point, it does not show any missing .dll files. It does, > however, > show one .dll "red" instead of black like all of the others (mpr.dll) and > there is a message: "Warning: At least one module has an unresolved > import > due to a missing export function in a delay-load dependant module." I > really don't know what that means or if that is causing the problem, but I > searched for a more up to date version of mpr.dll and couldn't find > anything. > > Thanks, > Jeff > > ----- Original Message ----- > From: "Wouter Schaubroeck" > To: > Sent: Monday, January 03, 2005 12:39 PM > Subject: Re: [UMN_MAPSERVER-USERS] Premature end of script headers... > > >> Hello Jef, >> >> It's important that you know what kind off premature end of scrip >> headers it is, is it mapserv.exe or perhaps php? If its mapserv.exe, >> then you download this program: http://www.dependencywalker.com/. Check >> what file mapserv.exe is missing, in my case, it was something like >> ms***.dll. Search for the file (even on the internet) en put it in the >> right map. >> >> grtz >> Wouter Schaubroeck >> Belgium >> >> Wim Blanken wrote: >> >>> Hello Jeff, >>> >>> My experience untill now is that you have to copy all dll's into the >>> directory WINDOWS\SYSTEM32. >>> I think that the webserver user (apache?) has no rights to load the >>> dll's >>> from your mapserver directory. >>> How did you install mapserver on linux, did you get compile errors of >>> some >>> kind? >>> >>> Regards, >>> >>> Wim Blanken >>> The Netherlands >>> >>> ----- Original Message ----- >>> From: "Jeff Portwine" >>> To: >>> Sent: Monday, January 03, 2005 4:03 PM >>> Subject: [UMN_MAPSERVER-USERS] Premature end of script headers... >>> >>> >>>> I was having a lot of problems with my linux install of mapserver, >>>> simply >>>> trying to get the demo to run, so finally I changed my approach and >>>> attempted to install mapserv on a windows xp web server (apache 2). >>>> When >>>> I run mapserv without any options, I get the proper response from >>>> mapserv >>>> but as soon as I try to make it run the demo, mapserv crashes and I get >>>> "internal server error" and the following shows up in my web error >>>> logs: >>>> >>>> [Mon Jan 03 09:54:11 2005] [error] [client 208.251.242.95] Premature >>>> end >>>> of >>>> script headers: mapserv40.exe, referer: >>>> http://solo.veritime.com/workshop/ >>>> >>>> When I first installed mapserver, I was having the same problem even >>>> when >>>> I >>>> ran mapserv.exe without any options. Copying all of the dll's into >>>> the >>>> directory mapserv.exe was being called from fixed that... but now I get >>>> this >>>> as soon as I attempt to view a map. If anybody has any suggestions it >>>> would be greatly appreciated, I'm really struggling to get this >>>> working >>>> and >>>> to learn how to use it. >>>> >>>> Thanks, >>>> Jeff >>>> >>>> >>> >> > From Bhavana.Rakesh at NOAA.GOV Mon Jan 3 10:38:38 2005 From: Bhavana.Rakesh at NOAA.GOV (Bhavana Rakesh) Date: Mon, 3 Jan 2005 13:38:38 -0500 Subject: processquerytemplate Message-ID: Hi, I'm trying to modify the webpage returned by processquerytemplate using php/mapscript. The processquerytemplate composes the web page for the queried layer with the header, template and footer that is specified in the web object of the map file. I'd like to include the georeference co-ordianates into the returned quried result webpage. Is there anyone out there who know how to do it? Please help. -Bhavana From wouter.schaubroeck at GMAIL.COM Mon Jan 3 14:06:51 2005 From: wouter.schaubroeck at GMAIL.COM (Wouter Schaubroeck) Date: Mon, 3 Jan 2005 23:06:51 +0100 Subject: Premature end of script headers... In-Reply-To: <001701c4f1c5$0671a920$6401a8c0@blanken> Message-ID: Hi Jeff, Did you make you're tmp directory? If you're working with apache, it should be in you're htdocs, AND internet users must have (limited) acces to this folder. You set this permissions by installing the IIS from win xp and then rightclick on the tmp folder. There you chose share for web (or something like that). There is another way, but actually, i don't know what... This is just a guessing, so don't shoot me if I'm wrong ;) Grtz Wouter Schaubroeck Wim Blanken wrote: > Hi Jeff, > > I think mpr.dll is not your problem. Look at the following thread: > > http://lists.gis.umn.edu/pipermail/mapserver-users/2004-February/010300.html > > > I quess something else is screwing up your dll-dependencies.....but I > have > no clue > which one...maybe someone else? > > Regards, > > Wim Blanken > The Netherlands > > ----- Original Message ----- > From: "Jeff Portwine" > To: > Sent: Monday, January 03, 2005 7:00 PM > Subject: Re: [UMN_MAPSERVER-USERS] Premature end of script headers... > > >> It is giving the error for mapserver. I actually already had tried the >> dependancywalker program and corrected the missing .dll that you >> mentioned. >> At this point, it does not show any missing .dll files. It does, >> however, >> show one .dll "red" instead of black like all of the others >> (mpr.dll) and >> there is a message: "Warning: At least one module has an unresolved >> import >> due to a missing export function in a delay-load dependant >> module." I >> really don't know what that means or if that is causing the problem, >> but I >> searched for a more up to date version of mpr.dll and couldn't find >> anything. >> >> Thanks, >> Jeff >> >> ----- Original Message ----- >> From: "Wouter Schaubroeck" >> To: >> Sent: Monday, January 03, 2005 12:39 PM >> Subject: Re: [UMN_MAPSERVER-USERS] Premature end of script headers... >> >> >>> Hello Jef, >>> >>> It's important that you know what kind off premature end of scrip >>> headers it is, is it mapserv.exe or perhaps php? If its mapserv.exe, >>> then you download this program: http://www.dependencywalker.com/. Check >>> what file mapserv.exe is missing, in my case, it was something like >>> ms***.dll. Search for the file (even on the internet) en put it in the >>> right map. >>> >>> grtz >>> Wouter Schaubroeck >>> Belgium >>> >>> Wim Blanken wrote: >>> >>>> Hello Jeff, >>>> >>>> My experience untill now is that you have to copy all dll's into the >>>> directory WINDOWS\SYSTEM32. >>>> I think that the webserver user (apache?) has no rights to load the >>>> dll's >>>> from your mapserver directory. >>>> How did you install mapserver on linux, did you get compile errors of >>>> some >>>> kind? >>>> >>>> Regards, >>>> >>>> Wim Blanken >>>> The Netherlands >>>> >>>> ----- Original Message ----- >>>> From: "Jeff Portwine" >>>> To: >>>> Sent: Monday, January 03, 2005 4:03 PM >>>> Subject: [UMN_MAPSERVER-USERS] Premature end of script headers... >>>> >>>> >>>>> I was having a lot of problems with my linux install of mapserver, >>>>> simply >>>>> trying to get the demo to run, so finally I changed my approach and >>>>> attempted to install mapserv on a windows xp web server (apache 2). >>>>> When >>>>> I run mapserv without any options, I get the proper response from >>>>> mapserv >>>>> but as soon as I try to make it run the demo, mapserv crashes and >>>>> I get >>>>> "internal server error" and the following shows up in my web error >>>>> logs: >>>>> >>>>> [Mon Jan 03 09:54:11 2005] [error] [client 208.251.242.95] Premature >>>>> end >>>>> of >>>>> script headers: mapserv40.exe, referer: >>>>> http://solo.veritime.com/workshop/ >>>>> >>>>> When I first installed mapserver, I was having the same problem even >>>>> when >>>>> I >>>>> ran mapserv.exe without any options. Copying all of the dll's into >>>>> the >>>>> directory mapserv.exe was being called from fixed that... but now >>>>> I get >>>>> this >>>>> as soon as I attempt to view a map. If anybody has any >>>>> suggestions it >>>>> would be greatly appreciated, I'm really struggling to get this >>>>> working >>>>> and >>>>> to learn how to use it. >>>>> >>>>> Thanks, >>>>> Jeff >>>>> >>>>> >>>> >>> >> > From gsw at GLOBEXPLORER.COM Mon Jan 3 14:06:22 2005 From: gsw at GLOBEXPLORER.COM (Gregory S. Williamson) Date: Mon, 3 Jan 2005 14:06:22 -0800 Subject: Terraservice data not aligning Message-ID: Camden -- If you have only a few areas of concern it is possible to edit TIGER data ... I have converted a TIGER set into a shapefile and the used the JUMP program to make adjustments and fill in missing data. Obviously this is not practical if you need to serve many counties, but on a "retail" basis this approach works, at least until you get new street data. I have found that the quality of the TIGER data varies from fairly good ("good enough for government work" ?) to fair, depending on the region. The new release of TIGER data will be improved but obviously won't be happening immediately. Greg Williamson DBA GlobeXplorer LLC -----Original Message----- From: Camden Daily [mailto:cdaily at GMAIL.COM] Sent: Mon 1/3/2005 8:00 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Cc: Subject: [UMN_MAPSERVER-USERS] Terraservice data not aligning Hello all. I've got a layer in my map file that I'm grabbing from terraservice, and it's mostly working great. However, when I overlay some Tiger/Line street data over the terraserver image, things aren't quite lining up. It's very, very close, but just slightly offset when zoomed in (maybe by 20-50 feet). My map file, the terraservice layer, and the tiger/line data are all projected as EPSG:4326, so I don't think it's a projection issue. Has anyone else experienced any issues mixing these two data sets? Is it possible to 'tweak' a layer so that it's offset by a short distance? I know about the 'offset' parameters for styles, but those only take units of pixels (which will look good at some zoom levels, but not others...) I'd be grateful for any suggestions. -Camden Daily terraserver layer: LAYER NAME "aerial" TYPE RASTER STATUS OFF MINSCALE 1000 # trying to grab too small a scale might result in an error from terraservice CONNECTIONTYPE WMS CONNECTION "http://terraservice.net/ogcmap.ashx?VERSION=1.1.1&SERVICE=wms&LAYERS=urbanarea&FORMAT=image/jpeg&STYLES=" METADATA "wms_srs" "EPSG:4326" END PROJECTION "init=epsg:4326" END END tiger/line layer: LAYER NAME "aerial_road_small_near" TYPE LINE STATUS OFF DATA "tgr17031lkA" MAXSCALE 100000 CLASSITEM "CFCC2" CLASS EXPRESSION /A4|A5|A6|A7/ COLOR 150 150 150 END PROJECTION "init=epsg:4326" END END From sgillies at FRII.COM Mon Jan 3 14:51:47 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Mon, 3 Jan 2005 15:51:47 -0700 Subject: MapServer 4.4 mapscript documentation online Message-ID: MapScript (other than PHP) documentation online http://users.frii.com/sgillies/projects/mapscript/ until the MapServer website is updated. Just before the 4.4 release I completed the API docs and added 3 howtos which explain most of the major new features. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From enri at 163.COM Mon Jan 3 17:11:27 2005 From: enri at 163.COM (enri Zhou) Date: Mon, 3 Jan 2005 19:11:27 -0600 Subject: Premature end of script headers... Message-ID: Hi guys, I met the same problem when I compiled the MS4.4 on FC3, but at last I got across it. I found when I compile the cgi and the php_mapscript at the same time, I always got the problem if I use the cgi mapserv. But if I complie them separately, it works fine. For your information, here give you my config(Apache2.0.52, PHP5.0.3 as DSO): for CGI: ./configure --prefix=/usr --with-freetype --with-zlib --with-png --with- jpeg --with-xpm --with-libiconv=/usr --with-gd --with-pdf --with- proj=/usr --with-threads --with-geos=/usr/bin/geos-config --with- ogr=/usr/bin/gdal-config --with-gdal=/usr/bin/gdal-config --with-tiff -- with-postgis=/usr/bin/pg_config --with-wfs --with-wcs --with-wmsclient -- with-wfsclient --with-curl-config --with-fastcgi --with- httpd=/usr/sbin/httpd --with-ming for php_mapscript ./configure --prefix=/usr --with-freetype --with-zlib --with-png --with- jpeg --with-xpm --with-libiconv=/usr --with-gd --with-pdf --with- proj=/usr --with-threads --with-geos=/usr/bin/geos-config --with- ogr=/usr/bin/gdal-config --with-gdal=/usr/bin/gdal-config --with-tiff -- with-postgis=/usr/bin/pg_config --with-wfs --with-wcs --with-wmsclient -- with-wfsclient --with-curl-config --with-httpd=/usr/sbin/httpd --with- ming --with-php=/usr -with-php-regex-dir=/usr/src/php-5.0.3/regex ???? ZHOU, Xu ======= 2005-01-04 06:06:51 you wrote??======= >Hi Jeff, > >Did you make you're tmp directory? If you're working with apache, it >should be in you're htdocs, AND internet users must have (limited) acces >to this folder. You set this permissions by installing the IIS from win >xp and then rightclick on the tmp folder. There you chose share for web >(or something like that). There is another way, but actually, i don't >know what... >This is just a guessing, so don't shoot me if I'm wrong ;) > >Grtz >Wouter Schaubroeck > >Wim Blanken wrote: > >> Hi Jeff, >> >> I think mpr.dll is not your problem. Look at the following thread: >> >> http://lists.gis.umn.edu/pipermail/mapserver-users/2004- February/010300.html >> >> >> I quess something else is screwing up your dll-dependencies.....but I >> have >> no clue >> which one...maybe someone else? >> >> Regards, >> >> Wim Blanken >> The Netherlands >> >> ----- Original Message ----- >> From: "Jeff Portwine" >> To: >> Sent: Monday, January 03, 2005 7:00 PM >> Subject: Re: [UMN_MAPSERVER-USERS] Premature end of script headers... >> >> >>> It is giving the error for mapserver. I actually already had tried the >>> dependancywalker program and corrected the missing .dll that you >>> mentioned. >>> At this point, it does not show any missing .dll files. It does, >>> however, >>> show one .dll "red" instead of black like all of the others >>> (mpr.dll) and >>> there is a message: "Warning: At least one module has an unresolved >>> import >>> due to a missing export function in a delay-load dependant >>> module." I >>> really don't know what that means or if that is causing the problem, >>> but I >>> searched for a more up to date version of mpr.dll and couldn't find >>> anything. >>> >>> Thanks, >>> Jeff >>> >>> ----- Original Message ----- >>> From: "Wouter Schaubroeck" >>> To: >>> Sent: Monday, January 03, 2005 12:39 PM >>> Subject: Re: [UMN_MAPSERVER-USERS] Premature end of script headers... >>> >>> >>>> Hello Jef, >>>> >>>> It's important that you know what kind off premature end of scrip >>>> headers it is, is it mapserv.exe or perhaps php? If its mapserv.exe, >>>> then you download this program: http://www.dependencywalker.com/. Check >>>> what file mapserv.exe is missing, in my case, it was something like >>>> ms***.dll. Search for the file (even on the internet) en put it in the >>>> right map. >>>> >>>> grtz >>>> Wouter Schaubroeck >>>> Belgium >>>> >>>> Wim Blanken wrote: >>>> >>>>> Hello Jeff, >>>>> >>>>> My experience untill now is that you have to copy all dll's into the >>>>> directory WINDOWS\SYSTEM32. >>>>> I think that the webserver user (apache?) has no rights to load the >>>>> dll's >>>>> from your mapserver directory. >>>>> How did you install mapserver on linux, did you get compile errors of >>>>> some >>>>> kind? >>>>> >>>>> Regards, >>>>> >>>>> Wim Blanken >>>>> The Netherlands >>>>> >>>>> ----- Original Message ----- >>>>> From: "Jeff Portwine" >>>>> To: >>>>> Sent: Monday, January 03, 2005 4:03 PM >>>>> Subject: [UMN_MAPSERVER-USERS] Premature end of script headers... >>>>> >>>>> >>>>>> I was having a lot of problems with my linux install of mapserver, >>>>>> simply >>>>>> trying to get the demo to run, so finally I changed my approach and >>>>>> attempted to install mapserv on a windows xp web server (apache 2). >>>>>> When >>>>>> I run mapserv without any options, I get the proper response from >>>>>> mapserv >>>>>> but as soon as I try to make it run the demo, mapserv crashes and >>>>>> I get >>>>>> "internal server error" and the following shows up in my web error >>>>>> logs: >>>>>> >>>>>> [Mon Jan 03 09:54:11 2005] [error] [client 208.251.242.95] Premature >>>>>> end >>>>>> of >>>>>> script headers: mapserv40.exe, referer: >>>>>> http://solo.veritime.com/workshop/ >>>>>> >>>>>> When I first installed mapserver, I was having the same problem even >>>>>> when >>>>>> I >>>>>> ran mapserv.exe without any options. Copying all of the dll's into >>>>>> the >>>>>> directory mapserv.exe was being called from fixed that... but now >>>>>> I get >>>>>> this >>>>>> as soon as I attempt to view a map. If anybody has any >>>>>> suggestions it >>>>>> would be greatly appreciated, I'm really struggling to get this >>>>>> working >>>>>> and >>>>>> to learn how to use it. >>>>>> >>>>>> Thanks, >>>>>> Jeff >>>>>> >>>>>> >>>>> >>>> >>> >> > = = = = = = = = = = = = = = = = = = = = From agillesp at VT.EDU Mon Jan 3 21:25:35 2005 From: agillesp at VT.EDU (Abe Gillespie) Date: Tue, 4 Jan 2005 00:25:35 -0500 Subject: Super Sweet Message-ID: Holy cow! I just got the C# version of Mapscript working. I can't believe this. This is the most awesomest fantastic display of open source technology. Now I can use my two favorite open source projects together: Mono & MapServer. I will write a quick how to tomorrow and send it to the list. Amazing job guys, you rock my face off! -Abe Now only if the Hokies won, this would've been the perfect start to a new year. We were close though! From James.Shanton2 at NSCORP.COM Tue Jan 4 04:41:44 2005 From: James.Shanton2 at NSCORP.COM (Shanton, James A) Date: Tue, 4 Jan 2005 07:41:44 -0500 Subject: Return Only Template Vars without Generating Image ? (get extents not image ) Message-ID: Is it possible to do a form submit and return all my template variables without generating an image ? I'm working with jbox image swapping but am having a terrible time keeping up with the proper lat,long coordinate map extents. I would like to submit an unseen form that returns all the coordinate extents and template variables so that I can use those in my visible map. Thanks ! Jim From lfilak at MEDINACO.ORG Tue Jan 4 05:18:03 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Tue, 4 Jan 2005 08:18:03 -0500 Subject: MapServer 4.4 mapscript documentation online Message-ID: FYI: The docs were committed last night and the link from the main docs page should be available today. Lowell The following message was sent by Sean Gillies on Mon, 3 Jan 2005 15:51:47 -0700. > MapScript (other than PHP) documentation online > > http://users.frii.com/sgillies/projects/mapscript/ > > until the MapServer website is updated. Just before the 4.4 release I > completed the API docs and added 3 howtos which explain most of the > major new features. > > cheers, > Sean > > -- > Sean Gillies > sgillies at frii dot com > http://users.frii.com/sgillies From teb at MALLIT.FR.UMN.EDU Tue Jan 4 06:38:54 2005 From: teb at MALLIT.FR.UMN.EDU (Thomas E Burk) Date: Tue, 4 Jan 2005 08:38:54 -0600 Subject: MapServer Web site Message-ID: There is a network problem with the machine running the MapServer Web site. We expect it to be resolved quickly. Tom From jdport at VERITIME.COM Tue Jan 4 07:59:30 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Tue, 4 Jan 2005 10:59:30 -0500 Subject: more on "premature end of script header" error Message-ID: I've been working through the tutorial files that I downloaded from http://terrasip.gis.umn.edu/projects/tutorial. I was able to work with all of the first examples, but I started getting the "premature script header: mapserv" errors when I got to example 2-1. If I use the shp2img program to try to create a map from the .map files, I find that it also works up through example 1-8, but if I try it on example 2-1 it crashes (I get a windows pop up box saying that the program has encountered a problem and needs to close whether I run the mapserv cgi or I run shp2img on the mapfile). Running the mapserv CGI leaves the "premature script header" error in my web logs, running shp2img gives me no further error message. I'm posting the two map files, one working, one not working... maybe somebody has an idea of what is causing the crash and how I might fix it... The map files are exactly out of the tutorials with the exception of changing some pathnames to match my system's web root, etc. Thanks so much for any suggestions, and thanks for the suggetions you've all already offered. Regards, Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: example1-8.map Type: application/octet-stream Size: 3613 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: example2-1.map Type: application/octet-stream Size: 6539 bytes Desc: not available URL: From joseluismapserver at YAHOO.ES Tue Jan 4 09:25:49 2005 From: joseluismapserver at YAHOO.ES (Jose Luis Gonzalez) Date: Tue, 4 Jan 2005 18:25:49 +0100 Subject: =?iso-8859-1?q?Binaries=20don=B4t=20=20work?= Message-ID: Will someone fix the binarie links for downloading mapserver for windows because they don?t work. Thank you Jose Luis --------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Tue Jan 4 10:42:04 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Tue, 4 Jan 2005 19:42:04 +0100 Subject: =?utf-8?Q?=5BUMN=5FMAPSERVER-USERS=5D_Binaries_don?= =?utf-8?Q?=C2=B4t__work?= In-Reply-To: <20050104172549.14637.qmail@web25105.mail.ukl.yahoo.com> Message-ID: Can you explain what exactly is not working? I just tried downloading from the main Mapserver site and I get a zip file downloaded e.g. : http://mapserver.gis.umn.edu/win32bin/ms441pg.zip Also, you can try the Windows binaries from www.maptools.org (the packages include Mapserver next to PHP/Mapscript): http://www.maptools.org/php_mapscript/index.phtml?page=downloads.html Best regards, Bart On Tue, 4 Jan 2005 18:25:49 +0100, Jose Luis Gonzalez wrote: > Will someone fix the binarie links for downloading mapserver for windows > because they don?t work. > > Thank you > > Jose Luis > > > --------------------------------- > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From arnulf.christl at CCGIS.DE Tue Jan 4 11:09:13 2005 From: arnulf.christl at CCGIS.DE (Arnulf Christl) Date: Tue, 4 Jan 2005 20:09:13 +0100 Subject: Projection trouble In-Reply-To: Message-ID: Hi guys, this one is still open. The answers until now didn't help, everything suggested works perfectly fine. No one out there with an idea? Its the same data with the same projection in the same client with the same request, only one is a mapserv401, the other a mapserv441. In EPSG:4326 both maps fit on top of each other perfectly, in EPSG:31466 they show an offset. You can have a look at it here: http://www.mapbender.org/testbed.html Zoom in to see the post code areas, you'll understand what I mean. Find the tech details of the installation at the end of this mail. I suspect PROJ4 of doing things differently in 401 and 441. Many thanx, Arnulf. Bart van den Eijnden wrote: > Hi Arnulf, > > just checking a thing which maybe could cause displacement. > > Does your Mapbender client use the exact same ratio of pixel coordinates > (width versus height) to world coordinates (maxx-minx versus maxy-miny). > Ofcourse there were changes in Mapserver WMS between 4.0.1 and 4.4.1 which > can cause non square pixels if the ratio differs, which maybe could cause > this .... > > Just a thought. > > Best regards, > Bart > > On Sun, 2 Jan 2005 13:17:03 +0100, Arnulf Christl > wrote: > >> Hi, >> sorry I postet a wrong link. The problem can be seen here: >> http://www.mapbender.org/testbed.html >> I just added a box where the projection can be changed on the fly. Zoom >> in to below 1:50000 and switch to WGS84 and everything looks fine, the >> geometries from both servers overlap perfectly. Switch to GK3 >> (EPSG:31467) and there is that offset. >> >> Arnulf. >> >> Arnulf Christl wrote: >> >>> Hi, >>> we experience a strange offset when overlaying the same data as WMS maps >>> with MapServer versions 4.0.1 and 4.4.1. >>> >>> *4.0.1 server* >>> Windows 2000: SP4 >>> IIS: 5 >>> proj: came with 4.0.1 >>> gd: came with 4.0.1 >>> gdal: came with 4.0.1 >>> Cap URL: >>> http://wms.ccgis.de/umn/bin/mapserv.exe?map=d:/umn/germany.map&SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.1.0 >>> >>> >>> Data: local shape files in EPSG:4326 projected to EPSG:31467 >>> >>> *4.4.1 server* >>> FreeBSD: 4.10 >>> Apache: 1.3.33 >>> proj: 4.4.9 >>> gd: 2.0.33 >>> gdal: 1.2.1 >>> Cap URL: >>> http://wms1.ccgis.de/cgi-bin/mapserv?map=/data/umn/germany_demo/germany_demo.map&VERSION=1.1.1&REQUEST=GetCapabilities&SERVICE=WMS >>> >>> >>> Data: the same shape files as above (WGS84) but dumped to >>> PostgreSQL/PostGIS (and also projected to EPSG:31467). >>> >>> The problem does not seem to result from MapServer but from proj? >>> >>> You can have a look at the problem here: >>> http://www.mapbender.org/demoserver.html >>> >>> Zoom in to a scale of 1:100,000 or less to see the post code areas. They >>> overlap with an x-offset (north): >>> in northern Germany 190m >>> in central Germany 145m >>> in southern Germany 100m >>> >>> The y-offset (east) is: >>> in western Germany 45m >>> in eastern Germany 125m >>> >>> That resembles a lot to a datum shift which we stumbled accross (years >>> ago) when reading GPS EPSG:4326 WGS84 data directly into the database >>> and overlaying it with Gauss-Kruger EPSG:31467 (Bessel projection). >>> >>> What has been changed and what impact does it have on projects which >>> overlay other data? >>> >>> Best regards, Arnulf. >>> >> > > > > -- > Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ > -- ------------------------ Arnulf B. Christl ------------------------ http://www.ccgis.org http://www.mapbender.org ------------------------ From superbla3000 at GMX.NET Tue Jan 4 14:09:39 2005 From: superbla3000 at GMX.NET (joerg pfeiffer) Date: Tue, 4 Jan 2005 23:09:39 +0100 Subject: cities shp Message-ID: hello, I got the worldcities shp file allready, but do you know a file with more cities? Global, continental or local, everything welcome... :-) best regards Joerg From raphael.teixeira at GMAIL.COM Tue Jan 4 14:56:05 2005 From: raphael.teixeira at GMAIL.COM (Raphael Teixeira) Date: Tue, 4 Jan 2005 20:56:05 -0200 Subject: Publications, Articles and Papers Message-ID: Hello ALL, I'm looking for publications, articles and papers about mapserver, grass and postgis. Can anybody tell me a good place to find them? Thank's -- Raphael da Silva Teixeira From stisidore at GMAIL.COM Tue Jan 4 15:10:28 2005 From: stisidore at GMAIL.COM (Gayathri Swaminathan) Date: Tue, 4 Jan 2005 17:10:28 -0600 Subject: Projection trouble In-Reply-To: <41DAE9D9.2050107@ccgis.de> Message-ID: Chris, We had the exact same problem when dealing with WMS on a raster layer...back in 2003 end sometime A white offset appeared when projecting raster layer over our shape layer...and we tracked it down to this file mapwmslayer.c at this function, "msDrawWMSLayerLow" function (used to be just msDrawWMSLayer....I think..) The resolution on the float .12f on the map cell size when reprojecting was not working for us.,. we had to increase resolution..and then recompile mapserver...and the white bar went away... Gayathri On Tue, 4 Jan 2005 20:09:13 +0100, Arnulf Christl wrote: > Hi guys, > this one is still open. The answers until now didn't help, everything > suggested works perfectly fine. No one out there with an idea? > > Its the same data with the same projection in the same client with the > same request, only one is a mapserv401, the other a mapserv441. In > EPSG:4326 both maps fit on top of each other perfectly, in EPSG:31466 > they show an offset. You can have a look at it here: > > http://www.mapbender.org/testbed.html > > Zoom in to see the post code areas, you'll understand what I mean. Find > the tech details of the installation at the end of this mail. > > I suspect PROJ4 of doing things differently in 401 and 441. > > Many thanx, > Arnulf. > > Bart van den Eijnden wrote: > > Hi Arnulf, > > > > just checking a thing which maybe could cause displacement. > > > > Does your Mapbender client use the exact same ratio of pixel coordinates > > (width versus height) to world coordinates (maxx-minx versus maxy-miny). > > Ofcourse there were changes in Mapserver WMS between 4.0.1 and 4.4.1 which > > can cause non square pixels if the ratio differs, which maybe could cause > > this .... > > > > Just a thought. > > > > Best regards, > > Bart > > > > On Sun, 2 Jan 2005 13:17:03 +0100, Arnulf Christl > > wrote: > > > >> Hi, > >> sorry I postet a wrong link. The problem can be seen here: > >> http://www.mapbender.org/testbed.html > >> I just added a box where the projection can be changed on the fly. Zoom > >> in to below 1:50000 and switch to WGS84 and everything looks fine, the > >> geometries from both servers overlap perfectly. Switch to GK3 > >> (EPSG:31467) and there is that offset. > >> > >> Arnulf. > >> > >> Arnulf Christl wrote: > >> > >>> Hi, > >>> we experience a strange offset when overlaying the same data as WMS maps > >>> with MapServer versions 4.0.1 and 4.4.1. > >>> > >>> *4.0.1 server* > >>> Windows 2000: SP4 > >>> IIS: 5 > >>> proj: came with 4.0.1 > >>> gd: came with 4.0.1 > >>> gdal: came with 4.0.1 > >>> Cap URL: > >>> http://wms.ccgis.de/umn/bin/mapserv.exe?map=d:/umn/germany.map&SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.1.0 > >>> > >>> > >>> Data: local shape files in EPSG:4326 projected to EPSG:31467 > >>> > >>> *4.4.1 server* > >>> FreeBSD: 4.10 > >>> Apache: 1.3.33 > >>> proj: 4.4.9 > >>> gd: 2.0.33 > >>> gdal: 1.2.1 > >>> Cap URL: > >>> http://wms1.ccgis.de/cgi-bin/mapserv?map=/data/umn/germany_demo/germany_demo.map&VERSION=1.1.1&REQUEST=GetCapabilities&SERVICE=WMS > >>> > >>> > >>> Data: the same shape files as above (WGS84) but dumped to > >>> PostgreSQL/PostGIS (and also projected to EPSG:31467). > >>> > >>> The problem does not seem to result from MapServer but from proj? > >>> > >>> You can have a look at the problem here: > >>> http://www.mapbender.org/demoserver.html > >>> > >>> Zoom in to a scale of 1:100,000 or less to see the post code areas. They > >>> overlap with an x-offset (north): > >>> in northern Germany 190m > >>> in central Germany 145m > >>> in southern Germany 100m > >>> > >>> The y-offset (east) is: > >>> in western Germany 45m > >>> in eastern Germany 125m > >>> > >>> That resembles a lot to a datum shift which we stumbled accross (years > >>> ago) when reading GPS EPSG:4326 WGS84 data directly into the database > >>> and overlaying it with Gauss-Kruger EPSG:31467 (Bessel projection). > >>> > >>> What has been changed and what impact does it have on projects which > >>> overlay other data? > >>> > >>> Best regards, Arnulf. > >>> > >> > > > > > > > > -- > > Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ > > > > -- > ------------------------ > Arnulf B. Christl > ------------------------ > http://www.ccgis.org > http://www.mapbender.org > ------------------------ > From bfraser at GEOANALYTIC.COM Tue Jan 4 15:46:45 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Tue, 4 Jan 2005 16:46:45 -0700 Subject: OT: MapAction (well, not too far off topic...) Message-ID: I thought my fellow mappers might find this interesting: MapAction, a volunteer mapping department deployed to help out in emergencies: http://www.aidforaid.org.uk/index.html I found the "news" page especially interesting... Brent Fraser GeoAnalytic Inc. Tel:(403) 213-2700 bfraser at geoanalytic.com www.geoanalytic.com From agillesp at VT.EDU Tue Jan 4 16:58:10 2005 From: agillesp at VT.EDU (Abe Gillespie) Date: Tue, 4 Jan 2005 19:58:10 -0500 Subject: Quick howto for compiling and running C# Mapscript (Linux) Message-ID: Prerequisites: 1. An installed Mono 2. A configured MapServer source tree In the source tree you'll find \mapscript\csharp\Makefile; open it. Two directories above that you'll see a file named mapscriptvars; open it. From the mapscriptvars file you'll need to copy the CCFLAGS and LDFLAGS values to Makefile. *Note - in mapscriptvars you won't see "CCFLAGS=blah" or "LDFLAGS=blah" but the lines look something like: -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL and -L. -lmap -L/usr/src/gd-2.0.33/.libs -lgd -L/usr/src/jpeg-6b -ljpeg -lfreetype -L/usr/src/libpng-1.2.5 -lpng -L/usr/src/zlib-1.2.1 -lz -L/usr/src/tiff-v3.6.1/lib64 -ltiff -L/usr/src/jpeg-6b -ljpeg -lfreetype -L/usr/src/libpng-1.2.5 -lpng -L/usr/src/zlib-1.2.1 -lz -L/usr/src/jpeg-6b -ljpeg -L/usr/local/lib -lgdal -lc -lm One thing I didn't have to do was copy over the include directories ... so, if it works for you, ignore the line that looks something like: -I. -I/usr/src/gd-2.0.33 -I/usr/src/tiff-v3.6.1/libtiff -I/usr/src/jpeg-6b -I/usr/local/include Ultimately your Makefile should look something like this: . . . CCFLAGS=-DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL LDFLAGS=-L../.. -lmap -L/usr/src/gd-2.0.33/.libs -lgd -L/usr/src/jpeg-6b -ljpeg -lfreetype -L/usr/src/libpng-1.2.5 -lpng -L/usr/src/zlib-1.2.1 -lz -L/usr/src/tiff-v3.6.1/lib64 -ltiff -L/usr/src/jpeg-6b -ljpeg -lfreetype -L/usr/src/libpng-1.2.5 -lpng -L/usr/src/zlib-1.2.1 -lz -L/usr/src/jpeg-6b -ljpeg -L/usr/local/lib -lgdal -lc -lm . . . Now run make. If all went well you should have libmapscript.so and mapscript_csharp.dll. You can run a .Net exe (check the examples directory) if you have these two files in the same directory. If you want them globally accessible copy mapscript_csharp.dll into the mono/1.0 directory. On my system it lives at /usr/local/lib/mono/1.0 Then you'll want to add a mapping to the mono/config file (make sure you've put libmapscript.so in a useful place before doing so). On my system it lives at /usr/local/etc/mono Add a line that looks something like: Enjoy! Has anyone had success doing this on Windows? -Abe From sgillies at FRII.COM Tue Jan 4 17:13:16 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 4 Jan 2005 18:13:16 -0700 Subject: Quick howto for compiling and running C# Mapscript (Linux) In-Reply-To: Message-ID: On Jan 4, 2005, at 5:58 PM, Abe Gillespie wrote: > Prerequisites: > 1. An installed Mono > 2. A configured MapServer source tree > > In the source tree you'll find \mapscript\csharp\Makefile; open it. > Two directories above that you'll see a file named mapscriptvars; open > it. From the mapscriptvars file you'll need to copy the CCFLAGS and > LDFLAGS values to Makefile. *Note - in mapscriptvars you won't see > "CCFLAGS=blah" or "LDFLAGS=blah" but the lines look something like: > > -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_GIF > -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL > > and > > -L. -lmap -L/usr/src/gd-2.0.33/.libs -lgd -L/usr/src/jpeg-6b -ljpeg > -lfreetype -L/usr/src/libpng-1.2.5 -lpng -L/usr/src/zlib-1.2.1 -lz > -L/usr/src/tiff-v3.6.1/lib64 -ltiff -L/usr/src/jpeg-6b -ljpeg > -lfreetype -L/usr/src/libpng-1.2.5 -lpng -L/usr/src/zlib-1.2.1 -lz > -L/usr/src/jpeg-6b -ljpeg -L/usr/local/lib -lgdal -lc -lm > > One thing I didn't have to do was copy over the include directories ... > so, if it works for you, ignore the line that looks something like: > > -I. -I/usr/src/gd-2.0.33 -I/usr/src/tiff-v3.6.1/libtiff > -I/usr/src/jpeg-6b -I/usr/local/include > > Ultimately your Makefile should look something like this: > > . > . > . > CCFLAGS=-DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF > -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL > > LDFLAGS=-L../.. -lmap -L/usr/src/gd-2.0.33/.libs -lgd > -L/usr/src/jpeg-6b -ljpeg -lfreetype -L/usr/src/libpng-1.2.5 -lpng > -L/usr/src/zlib-1.2.1 -lz -L/usr/src/tiff-v3.6.1/lib64 -ltiff > -L/usr/src/jpeg-6b -ljpeg -lfreetype -L/usr/src/libpng-1.2.5 -lpng > -L/usr/src/zlib-1.2.1 -lz -L/usr/src/jpeg-6b -ljpeg -L/usr/local/lib > -lgdal -lc -lm > . > . > . > > Now run make. If all went well you should have libmapscript.so and > mapscript_csharp.dll. You can run a .Net exe (check the examples > directory) if you have these two files in the same directory. If you > want them globally accessible copy mapscript_csharp.dll into the > mono/1.0 directory. On my system it lives at /usr/local/lib/mono/1.0 > Then you'll want to add a mapping to the mono/config file (make sure > you've put libmapscript.so in a useful place before doing so). On my > system it lives at /usr/local/etc/mono Add a line that looks something > like: > > > > Enjoy! > > Has anyone had success doing this on Windows? > > -Abe > > Abe, How are you going to use C# mapscript? As a CGI? mod_mono? ASP.NET? As the mapscript maintainer I am very interested in how well it works or doesn't work in these environments. One day soon we'll have a place where you can publish this kind of howto. Meanwhile, take good notes. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From agillesp at VT.EDU Tue Jan 4 19:36:59 2005 From: agillesp at VT.EDU (Abe Gillespie) Date: Tue, 4 Jan 2005 22:36:59 -0500 Subject: Quick howto for compiling and running C# Mapscript (Linux) In-Reply-To: Message-ID: Right now I only intend to use it with mod_mono / ASP.NET. Though this will take some time since I've built an extensive framework around PHP (I'm pretty proud of this one - http://141.152.79.120/ashe/). But I could also see myself making some nice desktop utilities that will be cross platform. There are some really exciting possibilities. -Abe On Jan 4, 2005, at 8:13 PM, Sean Gillies wrote: > On Jan 4, 2005, at 5:58 PM, Abe Gillespie wrote: > >> Prerequisites: >> 1. An installed Mono >> 2. A configured MapServer source tree >> >> In the source tree you'll find \mapscript\csharp\Makefile; open it. >> Two directories above that you'll see a file named mapscriptvars; open >> it. From the mapscriptvars file you'll need to copy the CCFLAGS and >> LDFLAGS values to Makefile. *Note - in mapscriptvars you won't see >> "CCFLAGS=blah" or "LDFLAGS=blah" but the lines look something like: >> >> -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF >> -DUSE_GD_GIF >> -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT >> -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL >> >> and >> >> -L. -lmap -L/usr/src/gd-2.0.33/.libs -lgd -L/usr/src/jpeg-6b -ljpeg >> -lfreetype -L/usr/src/libpng-1.2.5 -lpng -L/usr/src/zlib-1.2.1 -lz >> -L/usr/src/tiff-v3.6.1/lib64 -ltiff -L/usr/src/jpeg-6b -ljpeg >> -lfreetype -L/usr/src/libpng-1.2.5 -lpng -L/usr/src/zlib-1.2.1 -lz >> -L/usr/src/jpeg-6b -ljpeg -L/usr/local/lib -lgdal -lc -lm >> >> One thing I didn't have to do was copy over the include directories >> ... >> so, if it works for you, ignore the line that looks something like: >> >> -I. -I/usr/src/gd-2.0.33 -I/usr/src/tiff-v3.6.1/libtiff >> -I/usr/src/jpeg-6b -I/usr/local/include >> >> Ultimately your Makefile should look something like this: >> >> . >> . >> . >> CCFLAGS=-DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF >> -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT >> -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL >> >> LDFLAGS=-L../.. -lmap -L/usr/src/gd-2.0.33/.libs -lgd >> -L/usr/src/jpeg-6b -ljpeg -lfreetype -L/usr/src/libpng-1.2.5 -lpng >> -L/usr/src/zlib-1.2.1 -lz -L/usr/src/tiff-v3.6.1/lib64 -ltiff >> -L/usr/src/jpeg-6b -ljpeg -lfreetype -L/usr/src/libpng-1.2.5 -lpng >> -L/usr/src/zlib-1.2.1 -lz -L/usr/src/jpeg-6b -ljpeg -L/usr/local/lib >> -lgdal -lc -lm >> . >> . >> . >> >> Now run make. If all went well you should have libmapscript.so and >> mapscript_csharp.dll. You can run a .Net exe (check the examples >> directory) if you have these two files in the same directory. If you >> want them globally accessible copy mapscript_csharp.dll into the >> mono/1.0 directory. On my system it lives at /usr/local/lib/mono/1.0 >> Then you'll want to add a mapping to the mono/config file (make sure >> you've put libmapscript.so in a useful place before doing so). On my >> system it lives at /usr/local/etc/mono Add a line that looks >> something >> like: >> >> >> >> Enjoy! >> >> Has anyone had success doing this on Windows? >> >> -Abe >> >> > > Abe, > > How are you going to use C# mapscript? As a CGI? mod_mono? ASP.NET? > As the mapscript maintainer I am very interested in how well it works > or doesn't work in these environments. > > One day soon we'll have a place where you can publish this kind of > howto. Meanwhile, take good notes. > > cheers, > Sean > > -- > Sean Gillies > sgillies at frii dot com > http://users.frii.com/sgillies > From richard.greenwood at GMAIL.COM Tue Jan 4 20:06:16 2005 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Tue, 4 Jan 2005 21:06:16 -0700 Subject: Return Only Template Vars without Generating Image ? (get extents not image ) In-Reply-To: Message-ID: On Tue, 4 Jan 2005 07:41:44 -0500, Shanton, James A wrote: > Is it possible to do a form submit and return all my template variables > without generating an image ? > > I'm working with jbox image swapping but am having a terrible time keeping > up with the proper lat,long coordinate map extents. > > I would like to submit an unseen form that returns all the coordinate > extents and template variables so that I can use those in my visible map. > > Thanks ! > > Jim > Yes (although I have not actually done it). I would set STATUS OFF in the map file, which will supress map image creation. You could do this with 2 different map files, or in the query string. -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From joseluismapserver at YAHOO.ES Wed Jan 5 02:28:27 2005 From: joseluismapserver at YAHOO.ES (Jose Luis Gonzalez) Date: Wed, 5 Jan 2005 11:28:27 +0100 Subject: =?iso-8859-1?q?Re:=20[UMN=5FMAPSERVER-USERS]=20Binaries=20don=B4t=20=20wo?= =?iso-8859-1?q?rk?= In-Reply-To: Message-ID: http://mapserver.gis.umn.edu/win32bin/ms441pg.zip http://mapserver.gis.umn.edu/win32bin/ms441oci.zip These are the links that don?t work, and I would like to download mapserver (4.4.1 version) for working in java and windows XP. Will some one help me please Thank you Jose Luis Bart van den Eijnden wrote: Can you explain what exactly is not working? I just tried downloading from the main Mapserver site and I get a zip file downloaded e.g. : http://mapserver.gis.umn.edu/win32bin/ms441pg.zip Also, you can try the Windows binaries from www.maptools.org (the packages include Mapserver next to PHP/Mapscript): http://www.maptools.org/php_mapscript/index.phtml?page=downloads.html Best regards, Bart On Tue, 4 Jan 2005 18:25:49 +0100, Jose Luis Gonzalez wrote: > Will someone fix the binarie links for downloading mapserver for windows > because they don?t work. > > Thank you > > Jose Luis > > > --------------------------------- > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ --------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From joseluismapserver at YAHOO.ES Wed Jan 5 02:28:33 2005 From: joseluismapserver at YAHOO.ES (Jose Luis Gonzalez) Date: Wed, 5 Jan 2005 11:28:33 +0100 Subject: =?iso-8859-1?q?Re:=20[UMN=5FMAPSERVER-USERS]=20Binaries=20don=B4t=20=20wo?= =?iso-8859-1?q?rk?= In-Reply-To: Message-ID: http://mapserver.gis.umn.edu/win32bin/ms441pg.zip http://mapserver.gis.umn.edu/win32bin/ms441oci.zip These are the links that don?t work, and I would like to download mapserver (4.4.1 version) for working in java and windows XP. Will some one help me please Thank you Jose Luis Bart van den Eijnden wrote: Can you explain what exactly is not working? I just tried downloading from the main Mapserver site and I get a zip file downloaded e.g. : http://mapserver.gis.umn.edu/win32bin/ms441pg.zip Also, you can try the Windows binaries from www.maptools.org (the packages include Mapserver next to PHP/Mapscript): http://www.maptools.org/php_mapscript/index.phtml?page=downloads.html Best regards, Bart On Tue, 4 Jan 2005 18:25:49 +0100, Jose Luis Gonzalez wrote: > Will someone fix the binarie links for downloading mapserver for windows > because they don?t work. > > Thank you > > Jose Luis > > > --------------------------------- > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ --------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Wed Jan 5 03:59:41 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Wed, 5 Jan 2005 12:59:41 +0100 Subject: [UMN =?iso-8859-1?Q?=5FMAPSERVER-USERS]_Re:_[UMN=5FMAPSERVER-USERS]_Binaries_d?= on´t wor=?iso-8859-1?Q?don=B4t__work?= In-Reply-To: <20050105102827.83510.qmail@web25107.mail.ukl.yahoo.com> Message-ID: Hi, then there must be something wrong at your side (firewall?), since I can easily download these zip files. I see you are looking for Java Mapscript, so you can also try downloading from: http://hobu.stat.iastate.edu/mapserver/ e.g.: http://hobu.stat.iastate.edu/mapserver/build_output/4_4_1/none/java.zip If you can't download these, I would suggest trying to figure out what is wrong with downloading files at your internet connection/computer. Best regards, Bart > http://mapserver.gis.umn.edu/win32bin/ms441pg.zip > http://mapserver.gis.umn.edu/win32bin/ms441oci.zip > > These are the links that don?t work, and I would like to download > mapserver (4.4.1 version) for working in java and windows XP. > > Will some one help me please > > Thank you > > Jose Luis > > > Bart van den Eijnden wrote: > Can you explain what exactly is not working? I just tried downloading from > the main Mapserver site and I get a zip file downloaded e.g. : > > http://mapserver.gis.umn.edu/win32bin/ms441pg.zip > > Also, you can try the Windows binaries from www.maptools.org (the packages > include Mapserver next to PHP/Mapscript): > > http://www.maptools.org/php_mapscript/index.phtml?page=downloads.html > > Best regards, > Bart > > On Tue, 4 Jan 2005 18:25:49 +0100, Jose Luis Gonzalez > wrote: > >> Will someone fix the binarie links for downloading mapserver for windows >> because they don?t work. >> >> Thank you >> >> Jose Luis >> >> >> --------------------------------- >> > > > > -- > Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ > > > --------------------------------- > > From stefan.schwarzer at GRID.UNEP.CH Wed Jan 5 05:39:34 2005 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Wed, 5 Jan 2005 14:39:34 +0100 Subject: Problems Displaying GeoTIFF Message-ID: Hi there, seems to be a dump question. But I tried to find the solution in older threats, but nothing solved my problem. So hope to find the solution to - I guess - a simple question here: I need to display three-channel GeoTiffs with PHP-Mapscript. But it doesn't display anything. Is it the IMAGEMODE? Or perhaps a compilation issue (I use the Win-Binaries)? Any advice? Thanks a lot, Stef ????????_______________________________________ ????????Stefan Schwarzer ????????GIS & Data Management ????????UNEP/DEWA/GRID-Geneva ????????Chemin des Anemones 11 ????????CH - 1219 Chatelaine ????????Switzerland ????????Tel: (+41) 22.917.83.49 ????????Fax: (+41) 22.917.80.29 ????????Internet: http://geodata.grid.unep.ch/ ????????_______________________________________ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1130 bytes Desc: not available URL: From trondmm-mapserver at CRUSADERS.NO Wed Jan 5 05:39:34 2005 From: trondmm-mapserver at CRUSADERS.NO (Trond Michelsen) Date: Wed, 5 Jan 2005 14:39:34 +0100 Subject: setting up layers with time-data in map-file Message-ID: Hi. I'm trying to use mapserver both as a WMS-server, and as a front-end to another WMS-server. This works pretty well, but now I need to include layers (from the back-end WMS-server) that are available for multiple time values. I can see from the 4.4 release documents, that mapserver now supports WMS time dimensions, but I can't find any examples of how to configure it. Did I miss something obvious? -- Trond Michelsen From wouter.schaubroeck at GMAIL.COM Wed Jan 5 06:04:18 2005 From: wouter.schaubroeck at GMAIL.COM (Wouter Schaubroeck) Date: Wed, 5 Jan 2005 15:04:18 +0100 Subject: Problems Displaying GeoTIFF In-Reply-To: <3C5045A0-5F1F-11D9-80DE-000D9339C724@grid.unep.ch> Message-ID: Hi Stef, Did you install the GDAL libraries? Those are needed to use GeoTiffs with Mapserver, you can find it here: http://gdal.maptools.org/index.html. I hope this helps grtz Wouter Schaubroeck Stefan Schwarzer wrote: > Hi there, > > seems to be a dump question. But I tried to find the solution in older > threats, but nothing solved my problem. So hope to find the solution > to - I guess - a simple question here: > > I need to display three-channel GeoTiffs with PHP-Mapscript. But it > doesn't display anything. Is it the IMAGEMODE? Or perhaps a > compilation issue (I use the Win-Binaries)? Any advice? > > Thanks a lot, > > Stef > > > _______________________________________ > > *Stefan Schwarzer > * GIS & Data Management > > UNEP/DEWA/GRID-Geneva > Chemin des Anemones 11 > CH - 1219 Chatelaine > Switzerland > > Tel: (+41) 22.917.83.49 > Fax: (+41) 22.917.80.29 > > Internet: http://geodata.grid.unep.ch/ > _______________________________________ From fwarmerdam at GMAIL.COM Wed Jan 5 06:30:50 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 5 Jan 2005 09:30:50 -0500 Subject: Problems Displaying GeoTIFF In-Reply-To: <3C5045A0-5F1F-11D9-80DE-000D9339C724@grid.unep.ch> Message-ID: On Wed, 5 Jan 2005 14:39:34 +0100, Stefan Schwarzer wrote: > Hi there, > > seems to be a dump question. But I tried to find the solution in older > threats, but nothing solved my problem. So hope to find the solution to > - I guess - a simple question here: > > I need to display three-channel GeoTiffs with PHP-Mapscript. But it > doesn't display anything. Is it the IMAGEMODE? Or perhaps a compilation > issue (I use the Win-Binaries)? Any advice? Stef, If you aren't seeing anything then the problem is likely not IMAGEMODE. But you will need to show us what you are doing if you want meaningful feedback. Do you have 8bit rasters working? Normally if you have pseudocolored input rasters working then 24bit should work directly though you might find you need to tweak things to get good quality output. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From stefan.schwarzer at GRID.UNEP.CH Wed Jan 5 06:43:27 2005 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Wed, 5 Jan 2005 15:43:27 +0100 Subject: Problems Displaying GeoTIFF In-Reply-To: <41DBF3E2.1020105@gmail.com> Message-ID: Thanks for the inputs. Here are some more details: - I am working with an 8 bit GeoTIFF. - I tried it on a Windows2000 machine, as well now on a Linux. - Don't know if the GDAL libs have been installed on the Linux machine -- I guess so. How can I verify it? On the Win I just have installed the OpenEV_FW tool, so I guess it should have installed the necessary libs as well, right? - Anyway, are there other libs necessary if I display GeoTIFFs and "normal" TIFFs with a Worldfile? Cause that works. What else can I give you as information? Stef > Hi Stef, > > Did you install the GDAL libraries? Those are needed to use GeoTiffs > with Mapserver, you can find it here: > http://gdal.maptools.org/index.html. > I hope this helps > > grtz > Wouter Schaubroeck > > > Stefan Schwarzer wrote: > >> Hi there, >> >> seems to be a dump question. But I tried to find the solution in older >> threats, but nothing solved my problem. So hope to find the solution >> to - I guess - a simple question here: >> >> I need to display three-channel GeoTiffs with PHP-Mapscript. But it >> doesn't display anything. Is it the IMAGEMODE? Or perhaps a >> compilation issue (I use the Win-Binaries)? Any advice? >> >> Thanks a lot, >> >> Stef >> >> >> _______________________________________ >> >> *Stefan Schwarzer >> * GIS & Data Management >> >> UNEP/DEWA/GRID-Geneva >> Chemin des Anemones 11 >> CH - 1219 Chatelaine >> Switzerland >> >> Tel: (+41) 22.917.83.49 >> Fax: (+41) 22.917.80.29 >> >> Internet: http://geodata.grid.unep.ch/ >> _______________________________________ > > ????????_______________________________________ ????????Stefan Schwarzer ????????GIS & Data Management ????????UNEP/DEWA/GRID-Geneva ????????Chemin des Anemones 11 ????????CH - 1219 Chatelaine ????????Switzerland ????????Tel: (+41) 22.917.83.49 ????????Fax: (+41) 22.917.80.29 ????????Internet: http://geodata.grid.unep.ch/ ????????_______________________________________ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2359 bytes Desc: not available URL: From fwarmerdam at GMAIL.COM Wed Jan 5 08:42:09 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 5 Jan 2005 11:42:09 -0500 Subject: Problems Displaying GeoTIFF In-Reply-To: <292D3F22-5F28-11D9-80DE-000D9339C724@grid.unep.ch> Message-ID: On Wed, 5 Jan 2005 15:43:27 +0100, Stefan Schwarzer wrote: > Thanks for the inputs. Here are some more details: > > - I am working with an 8 bit GeoTIFF. Stefan, Do you mean you are successfully using an 8bit GeoTIFF already or that your new file is an 8bit GeoTIFF? When I asked before I was attempting to contrast issues between a 24bit GeoTIFF and an 8bit GeoTIFF. Of course, a 24bit GeoTIFF is really just a 3 band 8bit geotiff but that isn't exactly what I meant. > - I tried it on a Windows2000 machine, as well now on a Linux. > - Don't know if the GDAL libs have been installed on the Linux machine > -- I guess so. How can I verify it? On the Win I just have installed > the OpenEV_FW tool, so I guess it should have installed the necessary > libs as well, right? The OpenEV_FW install is self contained, and does not attempt to install GDAL libraries in "system locations". In any event, having the GDAL libraries installed wouldn't help if you had built MapServer without GDAL support. > - Anyway, are there other libs necessary if I display GeoTIFFs and > "normal" TIFFs with a Worldfile? Cause that works. There are two general methods for displaying GeoTIFF input files in MapServer. The "builtin" method which only works for 8bit pseudocolored (or greyscale) files. This supports world files for georeferencing, but not geotiff tags (I think). The other way is using GDAL support in MapServer. This supports a wide variety of GeoTIFF file types and is the preferred approach now days. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From lfilak at MEDINACO.ORG Wed Jan 5 10:56:06 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Wed, 5 Jan 2005 13:56:06 -0500 Subject: Request for MapScript Examples Message-ID: Hey Tyler. Would I be correct in assuming that you are looking for PHP recipes to keep things simple/in line with the book description? Lowell The following message was sent by Tyler Mitchell on Thu, 23 Dec 2004 21:27:48 -0800. > I'm collecting MapScript 'recipes' for an upcoming book to published by > O'Reilly. I will be using them as examples or tutorials for new MapServer > application developers. If you have a favourite project that you'd be > willing to share, I'd love to hear from you. Or if you have any special > applications that would be appealing to other new developers or MapScript > hackers, that'd be great too. I'd also be interested in examples that show > the power of MapScript in as few lines as possible (much easier to put in a > book!). > > What I'd need from you: > -Your name for credit purposes > -A URL to your application or the contents zipped in an email to me (off list > please) > -An explanation of any dependencies your app. may have > -As complete a dataset as possible if required > -Your permission use and include the application and datasets in the book or > in downloadable files to support the book. > > The book is due out Summer 2005. It is not all MapServer, but will has Open > Source GIS as its focus including: OpenEV, GDAL/OGR, PostGIS and MapServer. > > Have a blessed Christmas. > > Tyler From Godwinl at AGR.GC.CA Wed Jan 5 11:15:11 2005 From: Godwinl at AGR.GC.CA (Godwin, Elizabeth) Date: Wed, 5 Jan 2005 14:15:11 -0500 Subject: SDE, WFS and filter encoding Message-ID: HI there, Can a developer please comment on the validity of this bug and if it can be fixed? I'm trying to find out if it's a big issue that requires a long term workaround or something that could be fixed soon. The issue is that SDE isn't being served well using WFS. Cheers, Liz Godwin -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Godwin, Elizabeth Sent: December 24, 2004 11:25 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] SDE, WFS and filter encoding Hello list! Has anyone been able to successfully request filtered data from a WFS service that connects to SDE? Problem: - Data being served is stored in SDE - Displays ok in all methods (WMS/WFS/direct) - GetFeature returns all features ok - GetFeature with a filter set returns an an error on the server: Premature end of script headers: mapserv - sometimes i get a "missing" instead (see bug 1143 http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1143) - if I switch the dataset to a shapefile instead, it all works just fine. - also have errors with GML in a WMS getFeatureInfo request Cheers, and I hope everyone is enjoying their holidays around the world!! Liz Godwin -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Wed Jan 5 11:16:01 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 5 Jan 2005 14:16:01 -0500 Subject: Howto Evaluate Performance of Mapserver/mapfiles Message-ID: Hi all, I am wondering if there are any tools built into mapserver that would help in evaluation performance of my mapfile and help indicate things I might want to consider changing. Are there any useful mapfile settings or command line settings that would dump useful information about performance? I am looking at trying to tune some mapfiles and it would be helpful to know what layers got drawn, how many objects were rendered, how much time was spent on each layer, how many files were opened for each layer, etc. My mapfile is totally shapefile layers and a lot of them at that > 100 layers. Any ideas would be greatly appreciated. -Steve W. From sgillies at FRII.COM Wed Jan 5 11:23:43 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 5 Jan 2005 12:23:43 -0700 Subject: Howto Evaluate Performance of Mapserver/mapfiles In-Reply-To: Message-ID: On Jan 5, 2005, at 12:16 PM, Stephen Woodbridge wrote: > Hi all, > > I am wondering if there are any tools built into mapserver that would > help in evaluation performance of my mapfile and help indicate things I > might want to consider changing. > > Are there any useful mapfile settings or command line settings that > would dump useful information about performance? > > I am looking at trying to tune some mapfiles and it would be helpful to > know what layers got drawn, how many objects were rendered, how much > time was spent on each layer, how many files were opened for each > layer, > etc. > > My mapfile is totally shapefile layers and a lot of them at that > 100 > layers. > > Any ideas would be greatly appreciated. > > -Steve W. > > MAP DEBUG ON ... END That's the only built in performance evaluation. If you were using mapscript, you could use your favorite Perl/Python lint or profile tool. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From assefa at DMSOLUTIONS.CA Wed Jan 5 12:12:35 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 5 Jan 2005 15:12:35 -0500 Subject: SDE, WFS and filter encoding In-Reply-To: <482A7044F4DB2740884BAF6AFD7416091E3B44@onncrxms2.agr.gc.ca> Message-ID: Hi There, I guess there are a couple of issues in this thread and bug 1143 : the error with GML files and the problems with SDE (they might be related hopfully). I will check the GML problem decribed in bug 1143 sometime this week (It should be easy to reproduce and test data are available). We can then look into the SDE problem if the correction for 1143 does not apply to SDE layers. I would definitley need help/support on this since I do not have SDE here. In general if things were working in 4.2.5, It should not be too bad and should be fixed soon. Best Regards, Godwin, Elizabeth wrote: > HI there, > > Can a developer please comment on the validity of this bug and if it can > be fixed? I'm trying to find out if it's a big issue that requires a > long term workaround or something that could be fixed soon. > > The issue is that SDE isn't being served well using WFS. > > Cheers, > > Liz Godwin > > -----Original Message----- > *From:* UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] *On Behalf Of *Godwin, Elizabeth > *Sent:* December 24, 2004 11:25 AM > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > *Subject:* [UMN_MAPSERVER-USERS] SDE, WFS and filter encoding > > Hello list! > > Has anyone been able to successfully request filtered data from a > WFS service that connects to SDE? > > Problem: > - Data being served is stored in SDE > - Displays ok in all methods (WMS/WFS/direct) > - GetFeature returns all features ok > - GetFeature with a filter set returns an an error on the server: > Premature end of script headers: mapserv > - sometimes i get a "missing" instead (see bug 1143 > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1143) > - if I switch the dataset to a shapefile instead, it all works just > fine. > > - also have errors with GML in a WMS getFeatureInfo request > > Cheers, and I hope everyone is enjoying their holidays around the > world!! > > Liz Godwin -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From Godwinl at AGR.GC.CA Wed Jan 5 12:14:23 2005 From: Godwinl at AGR.GC.CA (Godwin, Elizabeth) Date: Wed, 5 Jan 2005 15:14:23 -0500 Subject: SDE, WFS and filter encoding Message-ID: Thanks! That's what I was hoping to hear. Cheers, Liz > -----Original Message----- > From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] > Sent: January 5, 2005 3:13 PM > To: Godwin, Elizabeth > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] SDE, WFS and filter encoding > > > Hi There, > > I guess there are a couple of issues in this thread and bug > 1143 : the > error with GML files and the problems with SDE (they might be related > hopfully). I will check the GML problem decribed in bug 1143 sometime > this week (It should be easy to reproduce and test data are > available). > We can then look into the SDE problem if the correction for 1143 does > not apply to SDE layers. I would definitley need help/support on this > since I do not have SDE here. > In general if things were working in 4.2.5, It should not > be too bad > and should be fixed soon. > > Best Regards, > > Godwin, Elizabeth wrote: > > > HI there, > > > > Can a developer please comment on the validity of this bug > and if it > > can > > be fixed? I'm trying to find out if it's a big issue that > requires a > > long term workaround or something that could be fixed soon. > > > > The issue is that SDE isn't being served well using WFS. > > > > Cheers, > > > > Liz Godwin > > > > -----Original Message----- > > *From:* UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] *On Behalf Of > *Godwin, Elizabeth > > *Sent:* December 24, 2004 11:25 AM > > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > > *Subject:* [UMN_MAPSERVER-USERS] SDE, WFS and filter encoding > > > > Hello list! > > > > Has anyone been able to successfully request filtered > data from a > > WFS service that connects to SDE? > > > > Problem: > > - Data being served is stored in SDE > > - Displays ok in all methods (WMS/WFS/direct) > > - GetFeature returns all features ok > > - GetFeature with a filter set returns an an error on > the server: > > Premature end of script headers: mapserv > > - sometimes i get a "missing" instead (see bug 1143 > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1143) > > - if I switch the dataset to a shapefile instead, it > all works just > > fine. > > > > - also have errors with GML in a WMS getFeatureInfo request > > > > Cheers, and I hope everyone is enjoying their holidays > around the > > world!! > > > > Liz Godwin > > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- > > > From fwarmerdam at GMAIL.COM Wed Jan 5 12:19:23 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 5 Jan 2005 15:19:23 -0500 Subject: Howto Evaluate Performance of Mapserver/mapfiles In-Reply-To: <41DC3CF1.30104@swoodbridge.com> Message-ID: On Wed, 5 Jan 2005 14:16:01 -0500, Stephen Woodbridge wrote: > Hi all, > > I am wondering if there are any tools built into mapserver that would > help in evaluation performance of my mapfile and help indicate things I > might want to consider changing. > > Are there any useful mapfile settings or command line settings that > would dump useful information about performance? > > I am looking at trying to tune some mapfiles and it would be helpful to > know what layers got drawn, how many objects were rendered, how much > time was spent on each layer, how many files were opened for each layer, > etc. > > My mapfile is totally shapefile layers and a lot of them at that > 100 > layers. > > Any ideas would be greatly appreciated. Steve, I would also encourage use of "real" profiling tools like gprof on Linux or even the old approach of breaking in the debugger to see where the time is spent (if you have cases that take long enough to do this a few times.). I used gprof on shp2img last fall and learned all sorts of interesting things about the performance characterstics of a case I was optimizing (mostly OGR issues really). Of course, these techniques would be hard for a non-developer to interprete. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From jdport at VERITIME.COM Wed Jan 5 13:24:03 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Wed, 5 Jan 2005 16:24:03 -0500 Subject: Questions Message-ID: I have finally got mapserver working to the point that I've been able to work with it a little bit, at least on a very basic level. I have a lot of questions that I'm having trouble finding answers to. Some of these answers may be on the website, but a lot of things are spread around and I'm not always sure where to find them so just a pointer in the right direction to find the answers I seek may be enough... Anyway, just a few questions for now. First of all, does it matter what projection I use for my maps, as long as I am consistant? I've created a very basic michigan map using shapefile layers, but it appears to be "tilted" a bit.... is this because of my projection, or is there another reason for it? (http://solo.veritime.com/cgi-bin/mapserv40.exe?map=c:/program+files/apache+group/apache2/htdocs/map/map.map&mode=browse) How do I determine the proper extents? I would like to make my map of michigan fill the entire viewing area, but as I've tried changing the extents it just shifts the map around without "enlarging". When I used the ogrinfo program to try to get the extents , it gave me numbers that looked like longitude and latitude values rather than "meters" like the extents I was using were using (I basically modified one of the tutorial files to get my own map and started with the extents they had used). If extents are in "meters"... what does that mean? Where are you measuring from? "meters" only gives a size, not a location like longitude/latitude would give so I'm not exactly sure what it means to express the extents in "meters". Sorry to post so many newbie type questions to this list where I see so many questions that are much more advanced but hopefully I can get up this learning curve as quickly as possible :) Thanks in advance, Jeff From sirronj at PACBELL.NET Wed Jan 5 13:32:29 2005 From: sirronj at PACBELL.NET (Joseph Norris) Date: Wed, 5 Jan 2005 13:32:29 -0800 Subject: mixture of perl/mapscript and mapserver In-Reply-To: <20041220144941.6AFDB1A65A5@mail.medinaco.org> Message-ID: Lowell Filak wrote: >As Ed explained, you can not incorporate an image in that manner. >The only ways I can think to do what you want are: >1) Setup your mapscript app to provide a WMS reply for supplying the >image to mapserv under a WMS layer deffinition. >2) Write a .wld file to go along with the image and include it in the >mapfile used by your mapserv instance as a raster layer. > >HTH > >Lowell > >The following message was sent by Joseph Norris on >Fri, 17 Dec 2004 13:36:58 -0800. > > > >>Everyone, >> >>I have the following bit of code: >> >>$layerObj->draw($map, $img); >>$point_layer->draw($map, $img); >> >> >>my $new_map = "$png_location/" . sprintf("mx%0.10d",rand(1000000000)) . >>".map"; >> >>$map->save($new_map); >> >>my $image_name = "$png_location/" . >> >> >sprintf("map%0.10d",rand(1000000000)) . > > >>".png"; >> >> >>$img->save($image_name, $map); >> >>$img->free(); >> >> >>my $url = qq!http://$domain/cgi-bin/mapserv!; >> $url .= "?map_web_template=$template_path/map_template.html"; >> $url .= "&zoomsize=5"; >> $url .= "&zoomdir=1"; >> $url .= "&zoom=2"; >> $url .= "&map=$new_map"; >> $url .= "&map_web_imagepath=$png_location/"; >> $url .= "&map_web_imageurl=/$http_png_location/"; >> $url .= "&root=/maps/"; >> $url .= "&img=$image_name"; >> $url .= "&program=/cgi-bin/mapserv"; >> $url .= "&imgext=5890870.385 -192053.200 8943310.847 3226086.749"; >> $url .= "&mode=browse"; >> >> >>I thought that upon the run of mapserver in my map_template_html I >> >> >would be > > >>able to load the [img] via the &img=$image_name. However when it >> >> >loads I am > > >>getting a whole new image that contains nothing and is not at all the same >>name that I have built. >> >>I am not sure how to mix these - I would like to start out building my own >>layers ( which I have been able to do - thanks to all of your help ), >>save these out in an image and the load this into mapserver so as to have >>the browse capability. >> >>Have I made myself clear as mud? >> >>Thanks. >> >> >>#Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print >> >> >@c=map chr > > >$_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > > >>68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); >> >> > > > > Ok I am finally back to examining this issue. How do I set up a reply to mapserv to supply the image under WMS? Thanks. From jporti68 at YAHOO.COM Wed Jan 5 13:36:02 2005 From: jporti68 at YAHOO.COM (Jose Luis Portillo) Date: Wed, 5 Jan 2005 13:36:02 -0800 Subject: projection parameters? Message-ID: Hello All Before I had work with proj=latlong data and had not problem, but now I am working with data which is in utm, zone 16, north, datum = nad27 and I am having problems, the data just doesn't appear in the map. Can someone tell me which could be the right parameters that I need for this projection and the place where I should put this information within the .map Best Regards Jos? Luis Portillo Universidad Tecnol?gica Centroamericana Tegucigalpa, Honduras __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Wed Jan 5 13:49:55 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 5 Jan 2005 16:49:55 -0500 Subject: Questions In-Reply-To: <000a01c4f36c$e145c4c0$5ff2fbd0@solo> Message-ID: Jeff Portwine wrote: > I have finally got mapserver working to the point that I've been able to > work with it a little bit, at least on a very basic level. I have a lot > of questions that I'm having trouble finding answers to. Some of these > answers may be on the website, but a lot of things are spread around and > I'm > not always sure where to find them so just a pointer in the right direction > to find the answers I seek may be enough... > > Anyway, just a few questions for now. > > First of all, does it matter what projection I use for my maps, as long > as I > am consistant? The projection defines the math that essentially is happening when you unroll a sphere onto a flat piece of paper (your image in this case). There are lots of projections and they have lots on interesting properties beside how they look on the screen. Mapserver supports both input and output projection. The projection block in the MAP section of you mapfile is the output projection and your mapfile extents should be in this projection space as should your UNITS. Within a LAYER block the project should be that of your data. If the input and output projection are the same then it is basically a NOOP otherwise the data is transformed on the fly. If you are looking for high performance then you should try to get all your data files reprojected to the output projection so you minimize the CPU cycles on every map draw. It is not required, and simpler to let mapserver do the re-projection on the fly if performance is not an issue. > I've created a very basic michigan map using shapefile layers, but it > appears to be "tilted" a bit.... is this because of my projection, or is > there another reason for it? > (http://solo.veritime.com/cgi-bin/mapserv40.exe?map=c:/program+files/apache+group/apache2/htdocs/map/map.map&mode=browse) This is probably because of the projection. > > How do I determine the proper extents? I would like to make my map of > michigan fill the entire viewing area, but as I've tried changing the > extents it just shifts the map around without "enlarging". When I used > the ogrinfo program to try to get the extents , it gave me numbers that > looked like longitude and latitude values rather than "meters" like the > extents I was using were using (I basically modified one of the tutorial > files to get my own map and started with the extents they had used). > > If extents are in "meters"... what does that mean? Where are you > measuring > from? "meters" only gives a size, not a location like longitude/latitude > would give so I'm not exactly sure what it means to express the extents in > "meters". Many projection use meters of feet as their UNITS. This is because they define a horizontal and vertical reference line and then these are distance off the reference lines. If your data is in lat/long, then you UNITS should be DD and your EXTENTS should be in lat,long. Don't forget that mapserver uses X,Y which is equivalent to LONG, LAT, not lat/long. To find out the extents of a shapefile use a utility like shpdump, if you want to see the attributes then use dbfdump. I think you can do the same with ogrinfo utility also. > Sorry to post so many newbie type questions to this list where I see so > many > questions that are much more advanced but hopefully I can get up this > learning curve as quickly as possible :) > > Thanks in advance, > Jeff > From fwarmerdam at GMAIL.COM Wed Jan 5 14:00:16 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 5 Jan 2005 17:00:16 -0500 Subject: projection parameters? In-Reply-To: <20050105213602.14694.qmail@web50010.mail.yahoo.com> Message-ID: On Wed, 5 Jan 2005 13:36:02 -0800, Jose Luis Portillo wrote: > Hello All > Before I had work with proj=latlong data and had not problem, but now I am > working with data which is in utm, zone 16, north, datum = nad27 and I am > having problems, the data just doesn't appear in the map. > Can someone tell me which could be the right parameters that I need for this > projection and the place where I should put this information within the .map Jose, For a projection block, you might use: PROJECTION "+proj=utm +zone=16 +datum=NAD27" END You would place this on any LAYER objects that are in this coordinate system. Is your overall map display going to be in UTM as well, or are you needing MapServer to reproject to lat/long? The most common problems are mixups in the coordinates (for instance, using lat/long angular values when UTM values should be used or vice versa), but more generally you need to examine the extents of your datasets fairly carefully. If you know the bounds in UTM of a dataset, you can reproject it to lat/long with the proj.exe program (part of PROJ.4 ... not always distributed wtih MapServer though). eg. proj -I +proj=utm +zone=11 +datum=NAD27 << EOF ? 400000 3700000 ? EOF 118d4'32.742"W 33d26'11.277"N I hope this is somewhat helpful. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From richard.greenwood at GMAIL.COM Wed Jan 5 14:10:01 2005 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Wed, 5 Jan 2005 15:10:01 -0700 Subject: Howto Evaluate Performance of Mapserver/mapfiles In-Reply-To: <41DC3CF1.30104@swoodbridge.com> Message-ID: On Wed, 5 Jan 2005 14:16:01 -0500, Stephen Woodbridge wrote: > Hi all, > > I am wondering if there are any tools built into mapserver that would > help in evaluation performance of my mapfile and help indicate things I > might want to consider changing. > > Are there any useful mapfile settings or command line settings that > would dump useful information about performance? > > I am looking at trying to tune some mapfiles and it would be helpful to > know what layers got drawn, how many objects were rendered, how much > time was spent on each layer, how many files were opened for each layer, > etc. > > My mapfile is totally shapefile layers and a lot of them at that > 100 > layers. > > Any ideas would be greatly appreciated. > > -Steve W. > This is so simple that I almost hesitate to mention it. I use javascript to set a cookie on the client when they submit. The cookie holds the system time of the submit. Then at the bottom of the newly render page I have a line of javascript that subtracts the saved cookie time from the current system time and displays the difference. -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From jporti68 at YAHOO.COM Wed Jan 5 14:20:22 2005 From: jporti68 at YAHOO.COM (Jose Luis Portillo) Date: Wed, 5 Jan 2005 14:20:22 -0800 Subject: projection parameters? Message-ID: Thanks Frank Look, All the information will be in utm projection, and I just have used two of this layer to test this matter of the projection. And also I would like that the map show the coordinates in UTM, I already know the extent of the map: EXTENT 245892.718 1435130.25 915200.00 1827780.00 I did set the map projection with the line you gave me PROJECTION "+proj=utm +zone=16 +datum=NAD27" END and also I wrote this for each layer object, but I still have problems with the map, any clue?, Jose Luis On Wed, 5 Jan 2005 13:36:02 -0800, Jose Luis Portillo wrote: > Hello All > Before I had work with proj=latlong data and had not problem, but now I am > working with data which is in utm, zone 16, north, datum = nad27 and I am > having problems, the data just doesn't appear in the map. > Can someone tell me which could be the right parameters that I need for this > projection and the place where I should put this information within the .map Jose, For a projection block, you might use: PROJECTION "+proj=utm +zone=16 +datum=NAD27" END You would place this on any LAYER objects that are in this coordinate system. Is your overall map display going to be in UTM as well, or are you needing MapServer to reproject to lat/long? The most common problems are mixups in the coordinates (for instance, using lat/long angular values when UTM values should be used or vice versa), but more generally you need to examine the extents of your datasets fairly carefully. If you know the bounds in UTM of a dataset, you can reproject it to lat/long with the proj.exe program (part of PROJ.4 ... not always distributed wtih MapServer though). eg. proj -I +proj=utm +zone=11 +datum=NAD27 << EOF ? 400000 3700000 ? EOF 118d4'32.742"W 33d26'11.277"N I hope this is somewhat helpful. Best regards, __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at STATE.MN.US Wed Jan 5 14:24:23 2005 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Wed, 5 Jan 2005 16:24:23 -0600 Subject: projection parameters? Message-ID: Jose, If all of your data layers are in the same projection (and same UTM zone), and you want the map created with the same projection, you don't need to include any projection information in the Map file. David. David J. Fawcett MN Office of Environmental Assistance >>> Jose Luis Portillo 1/5/2005 4:20:22 PM >>> Thanks Frank Look, All the information will be in utm projection, and I just have used two of this layer to test this matter of the projection. And also I would like that the map show the coordinates in UTM, I already know the extent of the map: EXTENT 245892.718 1435130.25 915200.00 1827780.00 I did set the map projection with the line you gave me PROJECTION "+proj=utm +zone=16 +datum=NAD27" END and also I wrote this for each layer object, but I still have problems with the map, any clue?, Jose Luis On Wed, 5 Jan 2005 13:36:02 -0800, Jose Luis Portillo wrote: > Hello All > Before I had work with proj=latlong data and had not problem, but now I am > working with data which is in utm, zone 16, north, datum = nad27 and I am > having problems, the data just doesn't appear in the map. > Can someone tell me which could be the right parameters that I need for this > projection and the place where I should put this information within the .map Jose, For a projection block, you might use: PROJECTION "+proj=utm +zone=16 +datum=NAD27" END You would place this on any LAYER objects that are in this coordinate system. Is your overall map display going to be in UTM as well, or are you needing MapServer to reproject to lat/long? The most common problems are mixups in the coordinates (for instance, using lat/long angular values when UTM values should be used or vice versa), but more generally you need to examine the extents of your datasets fairly carefully. If you know the bounds in UTM of a dataset, you can reproject it to lat/long with the proj.exe program (part of PROJ.4 ... not always distributed wtih MapServer though). eg. proj -I +proj=utm +zone=11 +datum=NAD27 << EOF ? 400000 3700000 ? EOF 118d4'32.742"W 33d26'11.277"N I hope this is somewhat helpful. Best regards, __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From jmckenna at DMSOLUTIONS.CA Wed Jan 5 16:39:27 2005 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Wed, 5 Jan 2005 19:39:27 -0500 Subject: off topic: Initial version of the Indian Ocean Disaster Mapping Application Message-ID: Hello everyone, You might be interested to know that the initial version of the Indian Ocean Disaster Mapping application is online at http://mapsherpa.com/tsunami/. This is a MapServer/Chameleon application, using several OGC:WMS layers. If you have some ideas for relevent data sources for the area (preferably available through OGC standards) please let me know. thanks. jeff -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From Robert.Siudak at IMGW.PL Wed Jan 5 23:15:09 2005 From: Robert.Siudak at IMGW.PL (Robert Siudak) Date: Thu, 6 Jan 2005 08:15:09 +0100 Subject: Compiling error Message-ID: Hi everyone, I have trouble with compiling Mapserver 2.4.2 on my Aurox linux 10.0 (Distribution based on Fedora Core) during the executing make command I get a massage: make: ***[shp2img] Error 1 Any ideas what's the matter? Below I attached result of make command. Best regards and thanks in advance Robert -------------- next part -------------- [root at localhost mapserver-4.2.4]# make gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include maptemplate.c -o maptemplate.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include mapbits.c -o mapbits.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include maphash.c -o maphash.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include mapshape.c -o mapshape.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include mapxbase.c -o mapxbase.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include mapparser.c -o mapparser.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include maplexer.c -o maplexer.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include maptree.c -o maptree.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include mapsearch.c -o mapsearch.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include mapstring.c -o mapstring.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include mapsymbol.c -o mapsymbol.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include mapfile.c -o mapfile.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include maplegend.c -o maplegend.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include maputil.c -o maputil.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include mapscale.c -o mapscale.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include mapquery.c -o mapquery.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include maplabel.c -o maplabel.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include maperror.c -o maperror.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include mapprimitive.c -o mapprimitive.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include mapproject.c -o mapproject.o mapproject.c: In function `msGetEPSGProj': mapproject.c:471: warning: return makes pointer from integer without a cast mapproject.c: At top level: mapproject.c:480: warning: `msProjFinder' defined but not used gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include mapraster.c -o mapraster.o mapraster.c: In function `readGEOTiff': mapraster.c:424: warning: dereferencing type-punned pointer will break strict-aliasing rules mapraster.c:428: warning: dereferencing type-punned pointer will break strict-aliasing rules gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include mapsde.c -o mapsde.o g++ -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include mapogr.cpp -o mapogr.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include mappostgis.c -o mappostgis.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include mapmygis.c -o mapmygis.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include maplayer.c -o maplayer.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include mapresample.c -o mapresample.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include mapwms.c -o mapwms.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include mapwmslayer.c -o mapwmslayer.o mapwmslayer.c:131: warning: `msSetWMSParamString' defined but not used mapwmslayer.c:154: warning: `msSetWMSParamInt' defined but not used gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include maporaclespatial.c -o maporaclespatial.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include mapgml.c -o mapgml.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include mapprojhack.c -o mapprojhack.o mapprojhack.c:71: warning: `ConvertProjUnitStringToMS' defined but not used gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include mapthread.c -o mapthread.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include mapdraw.c -o mapdraw.o mapdraw.c: In function `msDrawMap': mapdraw.c:107: warning: unused variable `lastconnectiontype' gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include mapgd.c -o mapgd.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include mapoutput.c -o mapoutput.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include mapgdal.c -o mapgdal.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include mapswf.c -o mapswf.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include mapimagemap.c -o mapimagemap.o mapimagemap.c:58: warning: `searchImageCache' defined but not used mapimagemap.c:94: warning: `addImageCache' defined but not used mapimagemap.c:347: warning: `imageOffsetPolyline' defined but not used mapimagemap.c:378: warning: `imagePolyline' defined but not used mapimagemap.c:1414: warning: `billboardIM' defined but not used gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include mapows.c -o mapows.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include mapwfs.c -o mapwfs.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include mapwfslayer.c -o mapwfslayer.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include mapcontext.c -o mapcontext.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include maphttp.c -o maphttp.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include mapdrawgdal.c -o mapdrawgdal.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include mappdf.c -o mappdf.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include mapjoin.c -o mapjoin.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include mapgraticule.c -o mapgraticule.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include mapcopy.c -o mapcopy.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include mapogcfilter.c -o mapogcfilter.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include mapogcsld.c -o mapogcsld.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include maptime.c -o maptime.o maptime.c: In function `msStrptime': maptime.c:92: warning: implicit declaration of function `strptime' maptime.c:92: warning: return makes pointer from integer without a cast gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include mapwcs.c -o mapwcs.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include cgiutil.c -o cgiutil.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include epplib.c -o epplib.o ar rc libmap.a maptemplate.o mapbits.o maphash.o mapshape.o mapxbase.o mapparser.o maplexer.o maptree.o mapsearch.o mapstring.o mapsymbol.o mapfile.o maplegend.o maputil.o mapscale.o mapquery.o maplabel.o maperror.o mapprimitive.o mapproject.o mapraster.o mapsde.o mapogr.o mappostgis.o mapmygis.o maplayer.o mapresample.o mapwms.o mapwmslayer.o maporaclespatial.o mapgml.o mapprojhack.o mapthread.o mapdraw.o mapgd.o mapoutput.o mapgdal.o mapswf.o mapimagemap.o mapows.o mapwfs.o mapwfslayer.o mapcontext.o maphttp.o mapdrawgdal.o mappdf.o mapjoin.o mapgraticule.o mapcopy.o mapogcfilter.o mapogcsld.o maptime.o mapwcs.o cgiutil.o epplib.o ranlib libmap.a gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include shp2img.c -o shp2img.o gcc -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include shp2img.o -L. -lmap -lgd -L/usr/local/lib -lgd -lpng -lz -ltiff -lpng -lz -lm -o shp2img ./libmap.a(mapogr.o)(.eh_frame+0x11): undefined reference to `__gxx_personality_v0' collect2: ld returned 1 exit status make: *** [shp2img] B??d 1 -------------- next part -------------- A non-text attachment was scrubbed... Name: blad_mapserv.rtf Type: application/rtf Size: 17024 bytes Desc: not available URL: From m.simonse at VICREA.NL Wed Jan 5 23:51:53 2005 From: m.simonse at VICREA.NL (Merlijn Simonse) Date: Thu, 6 Jan 2005 01:51:53 -0600 Subject: more than one oraclespatial connection Message-ID: Hi All, Yesterday I have installed the new Mapserver 4.4.1 windows binary with oracle support. To test its performance I?ve first changed my slowest layer to connect directly to OracleSpatial in stead of through OGR. This is a very huge improvement. The map draws about 3 to 4 times as fast, WOW!. Enthusiastic as I was I also changed the other layers to connect to OracleSpatial directly, but here my problem started. As soon as more than one layer connects to OracleSpatial directly, the map doesn?t finish rendering. On my server a gif-image (size is 0Kb) is made. MapServ.exe keeps running (0 CPU) and the image is never finished. These are my connection parameters: LAYER CONNECTIONTYPE oraclespatial CONNECTION "user/pass at db? DATA "GEOM FROM LOCATIE USING UNIQUE LOCATIE_ID SRID 90112" FILTER "LOCATIESOORT_ID = 0" ... END LAYER CONNECTIONTYPE oraclespatial CONNECTION "user/pass at db? DATA "GEOM FROM LOCATIE USING UNIQUE LOCATIE_ID SRID 90112" FILTER "LOCATIESOORT_ID = 1" ... END Does anyone have an idea if this is a bug or if I am forgetting something in my mapfile? Thanks for any comments. Merlijn Simonse From bartvde at XS4ALL.NL Thu Jan 6 00:39:18 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Thu, 6 Jan 2005 09:39:18 +0100 Subject: more than one oraclespatial connection In-Reply-To: Message-ID: Hi Merlijn, I just tested in my setup and everything works fine when I have 2 layers connecting to Oracle with a different filter. Maybe you should change your DATA statement to something similar like: DATA "LOCATIE FROM (SELECT * FROM GEMEENTEN) USING UNIQUE ID SRID 90112" If you filter a dataset on an item, you need to include that column in your select. Best regards, Bart > Hi All, > > Yesterday I have installed the new Mapserver 4.4.1 windows binary with > oracle support. To test its performance I?ve first changed my slowest > layer to connect directly to OracleSpatial in stead of through OGR. This > is a very huge improvement. The map draws about 3 to 4 times as fast, > WOW!. Enthusiastic as I was I also changed the other layers to connect to > OracleSpatial directly, but here my problem started. > As soon as more than one layer connects to OracleSpatial directly, the map > doesn?t finish rendering. On my server a gif-image (size is 0Kb) is made. > MapServ.exe keeps running (0 CPU) and the image is never finished. > > These are my connection parameters: > LAYER > CONNECTIONTYPE oraclespatial > CONNECTION "user/pass at db? > DATA "GEOM FROM LOCATIE USING UNIQUE LOCATIE_ID SRID 90112" > FILTER "LOCATIESOORT_ID = 0" > > ... > > END > > LAYER > CONNECTIONTYPE oraclespatial > CONNECTION "user/pass at db? > DATA "GEOM FROM LOCATIE USING UNIQUE LOCATIE_ID SRID 90112" > FILTER "LOCATIESOORT_ID = 1" > > ... > > END > > > Does anyone have an idea if this is a bug or if I am forgetting something > in my mapfile? > > Thanks for any comments. > > Merlijn Simonse > > From m.simonse at VICREA.NL Thu Jan 6 01:29:29 2005 From: m.simonse at VICREA.NL (Merlijn Simonse) Date: Thu, 6 Jan 2005 03:29:29 -0600 Subject: more than one oraclespatial connection Message-ID: Hi Bart, Thanks for your reply. I?ve already tried this DATA statement, but it doesn?t make any difference. As soon as two layers are drawn in the requested scale the map doesn?t get rendered anymore. Both layers connect to the same database and the same table, can that be a problem? Kind regards, Merlijn > > Hi Merlijn, > > I just tested in my setup and everything works fine when I > have 2 layers connecting to Oracle with a different filter. > > Maybe you should change your DATA statement to something similar like: > > DATA "LOCATIE FROM (SELECT * FROM GEMEENTEN) USING UNIQUE ID > SRID 90112" > > If you filter a dataset on an item, you need to include that > column in your select. > > Best regards, > Bart > > > Hi All, > > > > Yesterday I have installed the new Mapserver 4.4.1 windows > binary with > > oracle support. To test its performance I?ve first changed > my slowest > > layer to connect directly to OracleSpatial in stead of through OGR. > > This is a very huge improvement. The map draws about 3 to 4 > times as > > fast, WOW!. Enthusiastic as I was I also changed the other > layers to > > connect to OracleSpatial directly, but here my problem started. As > > soon as more than one layer connects to OracleSpatial directly, the > > map doesn?t finish rendering. On my server a gif-image > (size is 0Kb) > > is made. MapServ.exe keeps running (0 CPU) and the image is never > > finished. > > > > These are my connection parameters: > > LAYER > > CONNECTIONTYPE oraclespatial > > CONNECTION "user/pass at db? > > DATA "GEOM FROM LOCATIE USING UNIQUE LOCATIE_ID SRID 90112" > > FILTER "LOCATIESOORT_ID = 0" > > > > ... > > > > END > > > > LAYER > > CONNECTIONTYPE oraclespatial > > CONNECTION "user/pass at db? > > DATA "GEOM FROM LOCATIE USING UNIQUE LOCATIE_ID SRID 90112" > > FILTER "LOCATIESOORT_ID = 1" > > > > ... > > > > END > > > > > > Does anyone have an idea if this is a bug or if I am forgetting > > something in my mapfile? > > > > Thanks for any comments. > > > > Merlijn Simonse From bartvde at XS4ALL.NL Thu Jan 6 01:34:47 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Thu, 6 Jan 2005 10:34:47 +0100 Subject: more than one oraclespatial connection In-Reply-To: Message-ID: > Both layers connect to the same database and the same table, can that be a > problem? Hi Merlijn, I don't think this is the problem, in my testcase I have the exact same situation and it works fine. What happens if you create two identical layers using a different name, and first check if one the layer definitions works? Does it crash then as well? What's your environment (Windows/Linux) and are you using pre-compiled binaries or your own binaries? Best regards, Bart > Hi Bart, > > Thanks for your reply. > > I?ve already tried this DATA statement, but it doesn?t make any > difference. As soon as two layers are drawn in the requested scale the map > doesn?t get rendered anymore. > > Both layers connect to the same database and the same table, can that be a > problem? > > Kind regards, > Merlijn > >> >> Hi Merlijn, >> >> I just tested in my setup and everything works fine when I >> have 2 layers connecting to Oracle with a different filter. >> >> Maybe you should change your DATA statement to something similar like: >> >> DATA "LOCATIE FROM (SELECT * FROM GEMEENTEN) USING UNIQUE ID >> SRID 90112" >> >> If you filter a dataset on an item, you need to include that >> column in your select. >> >> Best regards, >> Bart >> >> > Hi All, >> > >> > Yesterday I have installed the new Mapserver 4.4.1 windows >> binary with >> > oracle support. To test its performance I?ve first changed >> my slowest >> > layer to connect directly to OracleSpatial in stead of through OGR. >> > This is a very huge improvement. The map draws about 3 to 4 >> times as >> > fast, WOW!. Enthusiastic as I was I also changed the other >> layers to >> > connect to OracleSpatial directly, but here my problem started. As >> > soon as more than one layer connects to OracleSpatial directly, the >> > map doesn?t finish rendering. On my server a gif-image >> (size is 0Kb) >> > is made. MapServ.exe keeps running (0 CPU) and the image is never >> > finished. >> > >> > These are my connection parameters: >> > LAYER >> > CONNECTIONTYPE oraclespatial >> > CONNECTION "user/pass at db? >> > DATA "GEOM FROM LOCATIE USING UNIQUE LOCATIE_ID SRID 90112" >> > FILTER "LOCATIESOORT_ID = 0" >> > >> > ... >> > >> > END >> > >> > LAYER >> > CONNECTIONTYPE oraclespatial >> > CONNECTION "user/pass at db? >> > DATA "GEOM FROM LOCATIE USING UNIQUE LOCATIE_ID SRID 90112" >> > FILTER "LOCATIESOORT_ID = 1" >> > >> > ... >> > >> > END >> > >> > >> > Does anyone have an idea if this is a bug or if I am forgetting >> > something in my mapfile? >> > >> > Thanks for any comments. >> > >> > Merlijn Simonse > > From paul at WARRINER.US Thu Jan 6 01:35:38 2005 From: paul at WARRINER.US (R. Paul Warriner) Date: Thu, 6 Jan 2005 04:35:38 -0500 Subject: Problems Displaying GeoTIFF Message-ID: Stef, I am using the following: From ttsai at POBOX.COM Thu Jan 6 01:44:33 2005 From: ttsai at POBOX.COM (Tim Tsai) Date: Thu, 6 Jan 2005 03:44:33 -0600 Subject: labeling streetlines In-Reply-To: Message-ID: I've seen some Mapserver sites that correctly overlay Interstate and major highway symbols over the feature itself on the map (instead of labeling along the feature like local streets). Can anybody give me some ideas on how that can be done? Thanks! Tim From fsimon at UNIVALI.BR Thu Jan 6 03:33:18 2005 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Thu, 6 Jan 2005 09:33:18 -0200 Subject: more than one oraclespatial connection In-Reply-To: <12648.212.238.227.182.1105004087.squirrel@212.238.227.182> Message-ID: Hi folks, I don't believe that can be a mapserver error, here I use mapfiles with more than 30 layers using the same conection. I believe that can be a SQL error, directly in Oracle. Sometimes one recursive sql or table definitions can generate this problems, you can recreate the index or renew the statistics. But can be a error with spatial index, did you created the spatial index for this table? I believe that yes. How you defined the spatial index? How you imported this data for database, sqlldr? You can see the internal SQL defining a wrong data string. You can change "GEOM FROM LOCATIE USING UNIQUE LOCATIE_ID SRID 90112" to DATA "GEO FROM LOCATIE USING UNIQUE LOCATIE_ID SRID 90112". Using this the mapserver/maporaclesptial in cgi mode generate one output with the problem and return the internal sql. And after this you can use this SQl in sqlplus to test. Another way can be using subselect for data string, you can do this, change: "GEOM FROM LOCATIE USING UNIQUE LOCATIE_ID SRID 90112" to: "GEOM FROM (SELECT GEOM, LOCATIE_ID, LOCATIESOORT_ID FROM LOCATIE) USING UNIQUE LOCATIE_ID SRID 90112" or defining your filter directly in your subselect: "GEOM FROM (SELECT GEOM, LOCATIE_ID, LOCATIESOORT_ID FROM LOCATIE WHERE LOCATIESOORT_ID = 1) USING UNIQUE LOCATIE_ID SRID 90112". Or for more security: "GEOM FROM (SELECT GEOM AS GEOM, LOCATIE_ID AS LOCATIE_ID, LOCATIESOORT_ID AS LOCATIESOORT_ID FROM LOCATIE) USING UNIQUE LOCATIE_ID SRID 90112" I believe that can be a oracle problem but can you test this hints? Thanks. ------------------------------------------------- Fernando Simon Mapserver and Oracle Spatial developer G10 - Laborat?rio de Computa??o Aplicada - Brazil http://g10.cttmar.univali.br ------------------------------------------------- Citando Bart van den Eijnden : > > Both layers connect to the same database and the same table, can > that be a > > problem? > > Hi Merlijn, > > I don't think this is the problem, in my testcase I have the exact > same > situation and it works fine. > > What happens if you create two identical layers using a different > name, > and first check if one the layer definitions works? Does it crash > then as > well? > > What's your environment (Windows/Linux) and are you using > pre-compiled > binaries or your own binaries? > > Best regards, > Bart > > > Hi Bart, > > > > Thanks for your reply. > > > > I?ve already tried this DATA statement, but it doesn?t make any > > difference. As soon as two layers are drawn in the requested > scale the map > > doesn?t get rendered anymore. > > > > Both layers connect to the same database and the same table, can > that be a > > problem? > > > > Kind regards, > > Merlijn > > > >> > >> Hi Merlijn, > >> > >> I just tested in my setup and everything works fine when I > >> have 2 layers connecting to Oracle with a different filter. > >> > >> Maybe you should change your DATA statement to something similar > like: > >> > >> DATA "LOCATIE FROM (SELECT * FROM GEMEENTEN) USING UNIQUE ID > >> SRID 90112" > >> > >> If you filter a dataset on an item, you need to include that > >> column in your select. > >> > >> Best regards, > >> Bart > >> > >> > Hi All, > >> > > >> > Yesterday I have installed the new Mapserver 4.4.1 windows > >> binary with > >> > oracle support. To test its performance I?ve first changed > >> my slowest > >> > layer to connect directly to OracleSpatial in stead of through > OGR. > >> > This is a very huge improvement. The map draws about 3 to 4 > >> times as > >> > fast, WOW!. Enthusiastic as I was I also changed the other > >> layers to > >> > connect to OracleSpatial directly, but here my problem > started. As > >> > soon as more than one layer connects to OracleSpatial > directly, the > >> > map doesn?t finish rendering. On my server a gif-image > >> (size is 0Kb) > >> > is made. MapServ.exe keeps running (0 CPU) and the image is > never > >> > finished. > >> > > >> > These are my connection parameters: > >> > LAYER > >> > CONNECTIONTYPE oraclespatial > >> > CONNECTION "user/pass at db? > >> > DATA "GEOM FROM LOCATIE USING UNIQUE LOCATIE_ID SRID 90112" > >> > FILTER "LOCATIESOORT_ID = 0" > >> > > >> > ... > >> > > >> > END > >> > > >> > LAYER > >> > CONNECTIONTYPE oraclespatial > >> > CONNECTION "user/pass at db? > >> > DATA "GEOM FROM LOCATIE USING UNIQUE LOCATIE_ID SRID 90112" > >> > FILTER "LOCATIESOORT_ID = 1" > >> > > >> > ... > >> > > >> > END > >> > > >> > > >> > Does anyone have an idea if this is a bug or if I am > forgetting > >> > something in my mapfile? > >> > > >> > Thanks for any comments. > >> > > >> > Merlijn Simonse > > > > > ------------------------------------------------- Univali - Webmail - http://webmail.univali.br From m.simonse at VICREA.NL Thu Jan 6 04:28:58 2005 From: m.simonse at VICREA.NL (Merlijn Simonse) Date: Thu, 6 Jan 2005 06:28:58 -0600 Subject: more than one oraclespatial connection Message-ID: Hi Fernando and Bart, I tried all your hints and alternatives. In SQLPlus all queries do give the right result. What I discovered is that sometimes I can get more than one layer from oracle, but not always. At one moment I did get a map when I commented out the NAME attribute in the CLASS item???!! I don't suppose the CLASS item has anything to do with the connection, but all these strange things don't happen when I use OGR to connect to Oracle. I write the geometries Oracle myself, can it have anything to do with that? The GTYPE is a COLLECTION because points, lines and polygons are all written in the same table. The FILTER in my layer only returns one GTYPE This is how I make the Index in Oracle: CREATE INDEX X_LOCATIE_GEOM ON LOCATIE (GEOM) INDEXTYPE IS MDSYS.SPATIAL_INDEX PARAMETERS (' SDO_INDX_DIMS=2 LAYER_GTYPE="COLLECTION" SDO_COMMIT_INTERVAL=100 TABLESPACE=FENF_INDEX'); Kind regards, Merlijn From solo6259 at YAHOO.COM Thu Jan 6 04:59:18 2005 From: solo6259 at YAHOO.COM (Solomon Maina Thuo) Date: Thu, 6 Jan 2005 06:59:18 -0600 Subject: oraclespatial connection Message-ID: hi am getting problems getting layers from oracle 9i r2 db. i've installed mapserver and compiled it against the client libraries on a redhat linux 9i box.the mapserver is working ok and can run all the demos and also i don't have problem drawing layers from shapefiles. the problem comes when i try to connect to the oraclespatial in the native way without using ogr. am getting msOCIConnect() in msOracleSpatialLayerOpen() error. does anyone know how to solve this? may be how to set variables in the apache httpd.conf or something better which could help me. or do i have to use ogr? thanks in advance solomon From woodbri at SWOODBRIDGE.COM Thu Jan 6 07:16:40 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 6 Jan 2005 10:16:40 -0500 Subject: [Fwd: Re: [UMN_MAPSERVER-USERS] Questions] Message-ID: Please send follow up questions back to the list. There are lots of people that have lots of info and are willing to help. I probably don't know the answer to all questions and others might want to hear the answers also. -------- Original Message -------- Subject: Re: [UMN_MAPSERVER-USERS] Questions Date: Thu, 6 Jan 2005 09:54:29 -0500 From: Jeff Portwine To: Stephen Woodbridge References: <41DC3CF1.30104 at swoodbridge.com> <931f8ea9050105121923378c74 at mail.gmail.com> <000a01c4f36c$e145c4c0$5ff2fbd0 at solo> <41DC6103.6020500 at swoodbridge.com> Thanks for answering my questions, I was wondering if you could help me with one more thing. I'm trying to determine the proper projection and extents to use for my map of Michigan. Using ogrinfo, I get the following on my state shape data: >ogrinfo -al -so states.shp INFO: Open of `states.shp' using driver `ESRI Shapefile' successful. Layer name: states Geometry: Polygon Feature Count: 1 Extent: (-90.418136, 41.696089) - (-82.418602, 48.262631) Layer SRS WKT: (unknown) STFIPS: String (2.0) STATE: String (66.0) STPOSTAL: String (2.0) VERSION: String (2.0) REVISION: String (2.0) This gave me the extents in I assume long/lat values, but doesn't give me any information on the projection it uses.... so I tried the same thing on the shapefile for the roads data and got: >ogrinfo -al -so mirds.shp Had to open data source read-only. INFO: Open of `mirds.shp' using driver `ESRI Shapefile' successful. Layer name: mirds Geometry: Line String Feature Count: 14687 Extent: (-90.414464, 41.698072) - (-82.423253, 47.479491) Layer SRS WKT: GEOGCS["GCS_North_American_1983", DATUM["North_American_Datum_1983", SPHEROID["GRS_1980",6378137,298.257222101]], PRIMEM["Greenwich",0], UNIT["Degree",0.0174532925199433]] LENGTH: Real (18.4) HWYNAME: String (40.0) FCC: String (3.0) STATEFIPS: String (2.0) ALT1_NAME: String (40.0) I consulted this list if EPSG codes at http://www.inovagis.org/giserver/tutorial/epsg.htm and guessed that "North_American_Datum_1983" was what this list showed as NAD83, or epsg: 4269. So, I went into my mapfile and I set the output projection and all of my layer projections to "init=epsg:4269" and set my extents to what were shown in the output of the shapefiles. I can see that this wasn't right, because my map comes up blank but I'm missing something that will help me understand how to properly determine the right settings. If you have a moment to spare I'd really appreciate it if you could help me understand this. Thanks a lot, Jeff From fwarmerdam at GMAIL.COM Thu Jan 6 07:22:56 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 6 Jan 2005 10:22:56 -0500 Subject: Compiling error In-Reply-To: Message-ID: On Thu, 6 Jan 2005 08:15:09 +0100, Robert Siudak wrote: > Hi everyone, > I have trouble with compiling Mapserver 2.4.2 on my Aurox linux 10.0 (Distribution based on Fedora Core) > during the executing make command I get a massage: > make: ***[shp2img] Error 1 > Robert, Try editing your Makefile and changing "LD=gcc" to "LD=g++". The error is about not linking in the c++ support libraries required. I see on my box it uses gcc for LD instead of g++ too, but for some reason it works anyways. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From eric.belenfant at AC-ORLEANS-TOURS.FR Thu Jan 6 08:26:25 2005 From: eric.belenfant at AC-ORLEANS-TOURS.FR (eric BELENFANT) Date: Thu, 6 Jan 2005 10:26:25 -0600 Subject: adding labels on points after map->draw() Message-ID: Hi !! I would like to write some lables on points i draw on a map after i calling map->draw() I use this piece of code : ######################################### # INFOS DE CONNEXION A LA BASE ######################################### $dsn = 'mysql://root at amethyse/dep'; $options = array( 'debug' => 2, 'portability' => DB_PORTABILITY_ALL, ); $db =& DB::connect($dsn, $options); # r????cup????ration de la liste des communes $modele = & new carteModel($db); $modele->calculeCapaciteByCommunes($secteur,$diplome,$filiere,$formation); $Lcommunes=$map->getLayerByName("communeSelection"); $LSymbolInd=$map->getLayerByName("Indicateurs"); $LSymbolLab=$map->getLayerByName("Indicateurs Labels"); $Lindex=$LSymbolInd->index; $classe=$LSymbolInd->getClass(0); $style = $classe->getStyle(0); #echo $style->size; $i=0; $Lcommunes->set("status", MS_ON); # d????termination de l'????chelle # SIZE=1 ====> minimum de capacit???? while ($item = $modele->getItem()) { #echo $item["code_com"]."".$item["sigle"]."".$cartoSymbol[$item["sigle"]]."
"; if ($i==0) $echelle = $item["capa"]; $taille = (int) ($item["capa"]/$echelle) * 10; $style->set("size",$taille); #echo "taille ".$item["code_com"]." ".$taille."
"; $style->set("offsetx",$taille); $style->set("offsety",$taille); # r????cup????ration du centre de la commune #echo $item["code_com"]." toto \n"; if (!$item["code_com"]) continue; @$Lcommunes->queryByAttributes("CODE_INSEE",$item["code_com"],MS_SINGLE); if (!$Lcommunes->getNumResults()) continue; #echo $item["code_com"]." affich????"; $resultat=$Lcommunes->getResult(0); $Lcommunes->open(); $shape = $Lcommunes->getShape($resultat->tileindex,$resultat->shapeindex); #$shape = $Lcommunes->getShape(-1,$resultat->shapeindex); $ShpBounds = $shape->bounds; $shpMinx = $ShpBounds->minx; $shpMiny = $ShpBounds->miny; $shpMaxx = $ShpBounds->maxx; $shpMaxy = $ShpBounds->maxy; #print_r($ShpBounds); $centreX = ($shpMinx + $shpMaxx)/2; $centreY = ($shpMiny + $shpMaxy)/2; #print_r($map->extent); #echo $centreX." / "; #echo $centreY; #print_r($shape->bounds); # ????criture des symboles des ????tablissements sur les communes $point = ms_newPointObj(); #$point->setXY($centreX ,$centreY); #$point->setXY($centreX + 12 * $i * ($shpMaxx-$shpMinx)/$map->width,$centreY); $point->setXY($centreX,$centreY); #echo $classe; $point->draw($map,$LSymbolInd,$mapImg,0,""); $point->draw($map,$LSymbolLab,$mapImg,0,"toto"); $i++; $oldCom=$item["code_com"]; $Lcommunes->close(); $shape->free(); } assuming this .map .... ############################################################################################ # COUCHE DYNAMIQUE DES NOMS DE COMMUNES SELECTIONNES AVEC LES LISTES ############################################################################################ LAYER NAME "communeSelection" GROUP "communes" TYPE POLYGON STATUS OFF CONNECTIONTYPE OGR CONNECTION "data/communes_eric.TAB" LABELITEM "NOM_COM" CLASSITEM "CODE_INSEE" LABELMINSCALE 150000 #FILTER "1=1" METADATA "DESCRIPTION" "|||Communes" "RESULT_FIELDS" "NOM_COM,PSDC99,SUPERFICIE_KM2,CODE_INSEE" "RESULT_HEADERS" "|||Nom,Population,Superficie (km2),Indicateurs de formation" "RESULT_HYPERLINK" "CODE_INSEE||Voir" END CLASS NAME "Commune analys??e" OUTLINECOLOR 48 106 137 COLOR 255 149 79 TEMPLATE void #EXPRESSION /45234/ LABEL COLOR 0 0 127 #BACKGROUNDCOLOR 200 200 100 POSITION AUTO TYPE bitmap SIZE tiny WRAP " " FORCE TRUE END END END # LAYER #################################################################### # THEME : affichage des indicateurs (capacit??, effectifs ...) #################################################################### LAYER NAME "Indicateurs" GROUP "analyse" STATUS ON TYPE POINT METADATA "DESCRIPTION" "|||Analyse" END CLASS #NAME "Cercles" #TEMPLATE void COLOR 39 152 221 SYMBOL 'circle' SIZE 3 LABEL COLOR 0 0 127 #BACKGROUNDCOLOR 200 200 100 POSITION AUTO TYPE bitmap SIZE tiny WRAP " " FORCE TRUE END END END #LAYER LAYER NAME "Indicateurs Labels" GROUP "analyse" STATUS ON TYPE ANNOTATION METADATA "DESCRIPTION" "|||Analyse" END CLASS LABEL COLOR 0 0 127 #BACKGROUNDCOLOR 200 200 100 POSITION AUTO TYPE bitmap SIZE tiny WRAP " " FORCE TRUE END END END #LAYER .... but nothing appear when i call the point->draw method ... I must be wrong somewhere !!!??? eric From cdaily at GMAIL.COM Thu Jan 6 09:01:01 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Thu, 6 Jan 2005 11:01:01 -0600 Subject: Four Color Theorem Message-ID: Does anyone have any experience in dynamically coloring a map with only 4 colors? I know that it would be easier to just pick out the colors myself, but I thought perhaps someone out there might have come up with a good mapscript algorithm to do this. I'd imagine the first step would be constructing a table defining which polygons on the map border each other. Anyone have a good method of doing that? -Camden Daily From pramsey at REFRACTIONS.NET Thu Jan 6 10:52:55 2005 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Thu, 6 Jan 2005 10:52:55 -0800 Subject: Four Color Theorem In-Reply-To: <16264e0705010609011dedc2eb@mail.gmail.com> Message-ID: Google gives a pretty good answer right away, and even an algorithm. http://www.math.gatech.edu/~thomas/FC/fourcolor.html Sadly, it is quadratic. P Camden Daily wrote: > Does anyone have any experience in dynamically coloring a map with > only 4 colors? I know that it would be easier to just pick out the > colors myself, but I thought perhaps someone out there might have come > up with a good mapscript algorithm to do this. > > I'd imagine the first step would be constructing a table defining > which polygons on the map border each other. Anyone have a good > method of doing that? > > -Camden Daily From fsimon at UNIVALI.BR Thu Jan 6 08:44:04 2005 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Thu, 6 Jan 2005 10:44:04 -0600 Subject: more than one oraclespatial connection Message-ID: Hi, It's very strange this error with the class name, I don't used the class name in maporclespatial.c. But you defined the both with the same name? If you try to draw the layers separately, what's happen? I don't see any problem if you wrote the geometries by yourselves. Here I define the indexes without parameters (10G). Of course that in your case the index it's diferent. Thanks. ------------------------------------------------- Fernando Simon Mapserver and Oracle Spatial developer G10 - Laborat?rio de Computa??o Aplicada - Brazil http://g10.cttmar.univali.br ------------------------------------------------- From fsimon at UNIVALI.BR Thu Jan 6 08:13:49 2005 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Thu, 6 Jan 2005 10:13:49 -0600 Subject: oraclespatial connection Message-ID: Hi, You need to define some variables in your httpd.conf, without this the mapserver/apache can't connect in Oracle. I can't connect in my server now to pass the varibles (link down), sorry. Generally is the same variables that you defined in your shell profile. What error mpserver returned when you tried the connection? What version of mapserver you compiled? Thanks. ------------------------------------------------- Fernando Simon Mapserver and Oracle Spatial developer G10 - Laborat?rio de Computa??o Aplicada - Brazil http://g10.cttmar.univali.br ------------------------------------------------- From kgrootendorst at BAIRD.COM Thu Jan 6 11:35:02 2005 From: kgrootendorst at BAIRD.COM (Kevin Grootendorst) Date: Thu, 6 Jan 2005 13:35:02 -0600 Subject: MySQL or Oracle queries... Message-ID: On Wed, 22 Sep 2004 16:14:52 -0400, William Bulley wrote: >I am new to MapServer so please bear with me... > >The main MapServer home page makes reference to a feature >of MapServer that would allow queries to a database like >MySQL or Oracle no doubt through Perl's DBI module. > >My interest is not obtaining points to plot from a table >in a database, but rather tabular or scalar information >about a map feature (height of a building, address of a >store, etc.) that might be selected by a MapServer user. > >I am no where near being able to attempt this at my level >of MapServer knowledge today, but if it is possible to do >this, could someone point me to a chunk of documentation >or a WWW page for more information? > >I assume that something like this would need to be done >using MapScript (Perl?) if at all. > >Regards, > >web... > >-- >William Bulley Email: web at umich.edu William, I too am interested in learning how to query tabular data from MySQl and present it in MapServer. Have you had any luck with this? Kevin From agillesp at VT.EDU Thu Jan 6 12:28:35 2005 From: agillesp at VT.EDU (Abe Gillespie) Date: Thu, 6 Jan 2005 15:28:35 -0500 Subject: MySQL or Oracle queries... In-Reply-To: Message-ID: I'm not sure the information you're looking for as to either the theory or the actual code for doing it ... but I do link (sorta) to external data in a PostgreSQL database. I'm going on the assumption you're looking for the theory behind this. So: Take, for example, a houses layer. The layer only needs a field that uniquely identifies each record; say an auto-increment integer. Now maybe you have a table in the database that gives the history for a house. Assume there's a record for each year. So one house could have 20, 30, 40+ records for it. Now say you want the history for any building that existed before 1975. All you would have to do is externally (by this I mean some other means than MapServer ... I do it via Mono / ASP.NET + Npgsql) query the database for "year < 1975" Now just include the unique ID in the output and you can link into MapServer (of course the history table needs the unique identifier from the houses layer). From here it's an easy query in MapServer. In PHP it looks like: $layer->queryByAttributes("ID", $bldgId, MS_SINGLE); Viola! -Abe On Jan 6, 2005, at 2:35 PM, Kevin Grootendorst wrote: > On Wed, 22 Sep 2004 16:14:52 -0400, William Bulley > wrote: > >> I am new to MapServer so please bear with me... >> >> The main MapServer home page makes reference to a feature >> of MapServer that would allow queries to a database like >> MySQL or Oracle no doubt through Perl's DBI module. >> >> My interest is not obtaining points to plot from a table >> in a database, but rather tabular or scalar information >> about a map feature (height of a building, address of a >> store, etc.) that might be selected by a MapServer user. >> >> I am no where near being able to attempt this at my level >> of MapServer knowledge today, but if it is possible to do >> this, could someone point me to a chunk of documentation >> or a WWW page for more information? >> >> I assume that something like this would need to be done >> using MapScript (Perl?) if at all. >> >> Regards, >> >> web... >> >> -- >> William Bulley Email: web at umich.edu > > William, > I too am interested in learning how to query tabular data from MySQl > and > present it in MapServer. Have you had any luck with this? > > Kevin > From wouter.schaubroeck at GMAIL.COM Thu Jan 6 13:35:23 2005 From: wouter.schaubroeck at GMAIL.COM (Wouter Schaubroeck) Date: Thu, 6 Jan 2005 22:35:23 +0100 Subject: OT: NeapolJS Message-ID: Hi, Does anyone has some more info about the promising project called NeapolJS by Tydac? On their site they are announcing that the first release will be in August 2004, but their is nothing to find... Even the latest news is from May - June 2004. I know it exists, because a city in Swiss is using it. NeapolJS is a map creating - managing ... program based on mapserver (for the moment). Thanks Wouter Schaubroeck From jclabaugh at MAC.COM Thu Jan 6 13:37:33 2005 From: jclabaugh at MAC.COM (Jerod Clabaugh) Date: Thu, 6 Jan 2005 15:37:33 -0600 Subject: MS CGI Map File issue 3.6 vs 4.4 Message-ID: All: I have a problem when switching from MapServer CGI v 3.6 to 4.4 In my old map system, I was using MS 3.6 CGI, I was able to query a layer and it would only return results if values from the query matched the values as specified in the CLASS section of the queried layer or layers. I decided to upgrade to MS 4.4 CGI. The same underlying code was used between systems, I just switched out the CGI version. I modified the overall map file where necessary as indicated in the Migration Guide on the MapServer WIKI. Everything seems to work as it used to until I begin querying. In this example of the problem, the CLASSITEM of the 'mangrove' layer is a column in the ecosystem shapefile that stores the codes for all ecosystem types. Through the CLASS section of the layer, I specify using the EXPRESSION which types to show/query that are only "mangrove types". This logic worked fine in 3.6, but now using 4.4, I get problematic results. When I query the layer, I get results returned that are not specified within the CLASS for that layer. I might get types of tropical forest or desert types instead of mangrove types. These data are also located in the CLASSITEM column of the same shapefile BUT are NOT the mangrove types are specified as EXPRESSIONS in the CLASS section of the Mangrove layer in the map file. I include the map file for this 'mangrove' layer as an example. This worked perfectly when querying in 3.6 but not in 4.4. Does anyone have any ideas as to what is wrong with my map file that may be causing this error. -=- MAP FILE EXCERPT -=- ####### BEGIN MANGROVE LAYER LAYER NAME mangrove TYPE POLYGON DATA ecosys.shp STATUS ON MINSCALE 100000 TEMPLATE "mangrove.html" HEADER "mangrove_header.html" FOOTER "mangrove_footer.html" TRANSPARENCY 85 CLASSITEM "unesco_code" CLASS NAME "Dwarf Mangrove Scrub" EXPRESSION 'IA5b(1)(a)' OUTLINECOLOR 128 128 128 COLOR 165 228 170 END CLASS NAME "Waterlogged Freshwater Mangrove Scrub" EXPRESSION 'IA5b(1)(b)' OUTLINECOLOR 128 128 128 COLOR 87 203 95 END END ####### END MANGROVE LAYER From David.Fawcett at STATE.MN.US Thu Jan 6 13:49:11 2005 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Thu, 6 Jan 2005 15:49:11 -0600 Subject: MS CGI Map File issue 3.6 vs 4.4 Message-ID: Jerod, The method for querying a layer changed after version 3.6. Instead of setting a layer filter, you pass 'qlayer', 'qstring', and optionally 'qitem' in the URL. There should be plenty of examples in the archive. Take a look at: http://mapserver.gis.umn.edu/doc40/cgi-reference.html#changes And this: http://mapserver.gis.umn.edu/doc40/cgi-reference.html#qlayer David. David J. Fawcett MN Office of Environmental Assistance >>> Jerod Clabaugh 1/6/2005 3:37:33 PM >>> All: I have a problem when switching from MapServer CGI v 3.6 to 4.4 In my old map system, I was using MS 3.6 CGI, I was able to query a layer and it would only return results if values from the query matched the values as specified in the CLASS section of the queried layer or layers. I decided to upgrade to MS 4.4 CGI. The same underlying code was used between systems, I just switched out the CGI version. I modified the overall map file where necessary as indicated in the Migration Guide on the MapServer WIKI. Everything seems to work as it used to until I begin querying. In this example of the problem, the CLASSITEM of the 'mangrove' layer is a column in the ecosystem shapefile that stores the codes for all ecosystem types. Through the CLASS section of the layer, I specify using the EXPRESSION which types to show/query that are only "mangrove types". This logic worked fine in 3.6, but now using 4.4, I get problematic results. When I query the layer, I get results returned that are not specified within the CLASS for that layer. I might get types of tropical forest or desert types instead of mangrove types. These data are also located in the CLASSITEM column of the same shapefile BUT are NOT the mangrove types are specified as EXPRESSIONS in the CLASS section of the Mangrove layer in the map file. I include the map file for this 'mangrove' layer as an example. This worked perfectly when querying in 3.6 but not in 4.4. Does anyone have any ideas as to what is wrong with my map file that may be causing this error. -=- MAP FILE EXCERPT -=- ####### BEGIN MANGROVE LAYER LAYER NAME mangrove TYPE POLYGON DATA ecosys.shp STATUS ON MINSCALE 100000 TEMPLATE "mangrove.html" HEADER "mangrove_header.html" FOOTER "mangrove_footer.html" TRANSPARENCY 85 CLASSITEM "unesco_code" CLASS NAME "Dwarf Mangrove Scrub" EXPRESSION 'IA5b(1)(a)' OUTLINECOLOR 128 128 128 COLOR 165 228 170 END CLASS NAME "Waterlogged Freshwater Mangrove Scrub" EXPRESSION 'IA5b(1)(b)' OUTLINECOLOR 128 128 128 COLOR 87 203 95 END END ####### END MANGROVE LAYER From lfilak at MEDINACO.ORG Thu Jan 6 13:53:44 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Thu, 6 Jan 2005 16:53:44 -0500 Subject: mixture of perl/mapscript and mapserver Message-ID: > >As Ed explained, you can not incorporate an image in that manner. > >The only ways I can think to do what you want are: > >1) Setup your mapscript app to provide a WMS reply for supplying the > >image to mapserv under a WMS layer deffinition. > >2) Write a .wld file to go along with the image and include it in the > >mapfile used by your mapserv instance as a raster layer. > > > >HTH > > > >Lowell > > > >The following message was sent by Joseph Norris on > >Fri, 17 Dec 2004 13:36:58 -0800. > > > > > > > >>Everyone, > >> > >>I have the following bit of code: > >> > >>$layerObj->draw($map, $img); > >>$point_layer->draw($map, $img); > >> > >> > >>my $new_map = "$png_location/" . sprintf("mx%0.10d",rand(1000000000)) . > >>".map"; > >> > >>$map->save($new_map); > >> > >>my $image_name = "$png_location/" . > >> > >> > >sprintf("map%0.10d",rand(1000000000)) . > > > > > >>".png"; > >> > >> > >>$img->save($image_name, $map); > >> > >>$img->free(); > >> > >> > >>my $url = qq!http://$domain/cgi-bin/mapserv!; > >> $url .= "?map_web_template=$template_path/map_template.html"; > >> $url .= "&zoomsize=5"; > >> $url .= "&zoomdir=1"; > >> $url .= "&zoom=2"; > >> $url .= "&map=$new_map"; > >> $url .= "&map_web_imagepath=$png_location/"; > >> $url .= "&map_web_imageurl=/$http_png_location/"; > >> $url .= "&root=/maps/"; > >> $url .= "&img=$image_name"; > >> $url .= "&program=/cgi-bin/mapserv"; > >> $url .= "&imgext=5890870.385 -192053.200 8943310.847 3226086.749"; > >> $url .= "&mode=browse"; > >> > >> > >>I thought that upon the run of mapserver in my map_template_html I > >> > >> > >would be > > > > > >>able to load the [img] via the &img=$image_name. However when it > >> > >> > >loads I am > > > > > >>getting a whole new image that contains nothing and is not at all the same > >>name that I have built. > >> > >>I am not sure how to mix these - I would like to start out building my own > >>layers ( which I have been able to do - thanks to all of your help ), > >>save these out in an image and the load this into mapserver so as to have > >>the browse capability. > >> > >>Have I made myself clear as mud? > >> > >>Thanks. > >> > >> > >>#Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print > >> > >> > >@c=map chr > > > > > >$_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > > > > > >>68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > >> > >> > > > > > > > > > Ok I am finally back to examining this issue. How do I set up a reply > to mapserv to supply the image under WMS? > > Thanks. Joseph, I may be missing something on cpan but I don't readily see a module. However there is a project called orthoserver at MIT written in perl that appears to have WMS support added in April, 2003. You could use parts of the orthoserver.cgi to teach your script how to speak WMS.? Lowell http://tull.mit.edu/orthoserver/ From gireddy at GMAIL.COM Thu Jan 6 13:53:50 2005 From: gireddy at GMAIL.COM (Shashi Gireddy) Date: Thu, 6 Jan 2005 15:53:50 -0600 Subject: gmail invitations Message-ID: hi guys i have a few (10) gmail invitataions if anybody wants. it has the advantage grouping conversations, and very good search facility. plz don't mail to groups, mail to my gmail id gireddy at gmail.com. sorry for posting non gis topic. -- Shashi Kiran Reddy. Gireddy, Graduate Assistant, CBER, University of Alabama. http://www.cs.ua.edu/shashi Home: 205-752-5137 Cell: 205-657-1438 From mike.and.kerry at GMAIL.COM Thu Jan 6 14:11:50 2005 From: mike.and.kerry at GMAIL.COM (Mike Davis) Date: Thu, 6 Jan 2005 13:11:50 -0900 Subject: gmail invitations In-Reply-To: <5f447e3505010613534bb05e8d@mail.gmail.com> Message-ID: I also have 6 invites available. I use my gmail account almost exclusively for the Mapserver list and other listserv accounts. I has awsome grouping capabilities.. not to mention huge storage. e-mail me if you need one. On Thu, 6 Jan 2005 15:53:50 -0600, Shashi Gireddy wrote: > hi guys i have a few (10) gmail invitataions if anybody wants. it has > the advantage grouping conversations, and very good search facility. > plz don't mail to groups, mail to my gmail id gireddy at gmail.com. sorry > for posting non gis topic. > > -- > Shashi Kiran Reddy. Gireddy, > Graduate Assistant, > CBER, University of Alabama. > http://www.cs.ua.edu/shashi > Home: 205-752-5137 Cell: 205-657-1438 > From janeks.kamerovskis at SILVA.LV Thu Jan 6 23:58:04 2005 From: janeks.kamerovskis at SILVA.LV (Janeks Kamerovskis) Date: Fri, 7 Jan 2005 09:58:04 +0200 Subject: How to get Mapscript libraries in other programming language? Message-ID: Hi, I am trying to use mapscript in Rebol, that suports DLLs. Where could I find some documentation about how to use MapScript in other languages? As I understand, that is possible. brgds Janeks From floerke at DOCTRONIC.DE Fri Jan 7 05:03:52 2005 From: floerke at DOCTRONIC.DE (Holger Floerke) Date: Fri, 7 Jan 2005 07:03:52 -0600 Subject: Assign special dbf to shapefile Message-ID: Hi all, am I able to assign a special dbf-file to a shape file? For example rendering the 'airports.shp', but using data from 'airports_passengers.dbf' and not from 'airports.dbf' (ensuring the correct order for the shape-information-mapping). Or another example, render some area shapes on the one hand with popuplation data and on the other hand with unemployment data without integrating both data sets into the dbf of the shape file and without producing two different shape-files. I use php-mapscript and mapserver 4.4. HolgeR From ante.dfg at MOJ.NET Fri Jan 7 05:04:32 2005 From: ante.dfg at MOJ.NET (Ante Drnasin) Date: Fri, 7 Jan 2005 07:04:32 -0600 Subject: Workshop demo problem Message-ID: Hi there....we have installed mapserver 4.4.1 on Win2000, apache 1.3.33 and php 4.3.7(as SAPI)... The problem started when we wanted to install the workshop demo.... As suggested we changed the hiden vars in index.html so it looks like this When clicking the initialize button the mapserv.exe crashes with message "Memory could not be writen" .....in other case the itasca.map file could not be found.... Here are some other details if needed.... Our server root is in c:/ServerRoot/ ....apache is installed in default dir.... /cgi-bin/ alias points to c:/ServerRoot/cgi-bin/ where the mapserver/bin/ directory is copied to.... If the browser is pointed to mapserver.exe the default message about query string being empty is displayed.... Any help would be much appricited...if you need any more info just let me know.... From jacob.delfos at MAUNSELL.COM Fri Jan 7 05:30:34 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Fri, 7 Jan 2005 21:30:34 +0800 Subject: Assign special dbf to shapefile Message-ID: Holger, Correct me if I'm wrong, but that would be redefining the definition of a shapefile. As far as I know, a "shapefile" is not the .shp file, but the collection of ".shp", ".dbf", "sbx", "sbn", and ".shx" files. I think you'd have to seriously hack the source of mapserver to do that, unless if you created a join on a dbf, and accessed it separately. Why would you not want to join them? If you have access to MS Excel, it would be as simple as copying a column across. No doubt other software can do the same thing. You would have access to both attributes in one shapefile. What is the actual problem that causes you not to want to have two shapefiles, and not to want to join the attributes? regards, Jacob -----Original Message----- From: UMN MapServer Users List To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: 1/7/2005 9:03 PM Subject: [UMN_MAPSERVER-USERS] Assign special dbf to shapefile Hi all, am I able to assign a special dbf-file to a shape file? For example rendering the 'airports.shp', but using data from 'airports_passengers.dbf' and not from 'airports.dbf' (ensuring the correct order for the shape-information-mapping). Or another example, render some area shapes on the one hand with popuplation data and on the other hand with unemployment data without integrating both data sets into the dbf of the shape file and without producing two different shape-files. I use php-mapscript and mapserver 4.4. HolgeR From jacob.delfos at MAUNSELL.COM Fri Jan 7 05:42:18 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Fri, 7 Jan 2005 21:42:18 +0800 Subject: Workshop demo problem Message-ID: Hi Ante, It sounds like you have not specified write permissions for Apache. Which lines have you added to your apache httpd.conf file? You have to make sure that "C:/ServerRoot/workshop/tmp/" has write permissions. Then check whether files are written to it. The reason it says "string is empty" when you go to mapserv.exe is that you haven't told the program what to do. It won't throw the error since it's not trying to write. regards, Jacob -----Original Message----- From: UMN MapServer Users List To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: 1/7/2005 9:04 PM Subject: [UMN_MAPSERVER-USERS] Workshop demo problem Hi there....we have installed mapserver 4.4.1 on Win2000, apache 1.3.33 and php 4.3.7(as SAPI)... The problem started when we wanted to install the workshop demo.... As suggested we changed the hiden vars in index.html so it looks like this When clicking the initialize button the mapserv.exe crashes with message "Memory could not be writen" .....in other case the itasca.map file could not be found.... Here are some other details if needed.... Our server root is in c:/ServerRoot/ ....apache is installed in default dir.... /cgi-bin/ alias points to c:/ServerRoot/cgi-bin/ where the mapserver/bin/ directory is copied to.... If the browser is pointed to mapserver.exe the default message about query string being empty is displayed.... Any help would be much appricited...if you need any more info just let me know.... From siki at AGT.BME.HU Fri Jan 7 08:06:09 2005 From: siki at AGT.BME.HU (Siki Zoltan) Date: Fri, 7 Jan 2005 15:06:09 -0100 Subject: Workshop demo problem {Scanned} In-Reply-To: Message-ID: Hi, Try to run mapserv.exe -v from the command prompt, you should get a list of supported input, output formats, ... If it failes too, you shouls check your mapserver istallation. You may use shp2img after if it works then the problem is about web server. Bye Zoltan On Fri, 7 Jan 2005, Ante Drnasin wrote: > Hi there....we have installed mapserver 4.4.1 on Win2000, apache 1.3.33 and > php 4.3.7(as SAPI)... > > The problem started when we wanted to install the workshop demo.... > > As suggested we changed the hiden vars in index.html so it looks like this > > > value="C:/ServerRoot/workshop/itasca.map"> > > > value="C:/ServerRoot/workshop/tmp/"> > > > When clicking the initialize button the mapserv.exe crashes with message > "Memory could not be writen" .....in other case the itasca.map file could > not be found.... > > Here are some other details if needed.... > > Our server root is in c:/ServerRoot/ ....apache is installed in default > dir.... /cgi-bin/ alias points to c:/ServerRoot/cgi-bin/ where the > mapserver/bin/ directory is copied to.... > > If the browser is pointed to mapserver.exe the default message about query > string being empty is displayed.... > > Any help would be much appricited...if you need any more info just let me > know.... > From jacob.delfos at MAUNSELL.COM Fri Jan 7 06:37:00 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Fri, 7 Jan 2005 22:37:00 +0800 Subject: Workshop demo problem Message-ID: Hi Ante, Where does the PHP come in? Theoretically, this should not have to do with the mapserv.exe process. When you say "move everything to cgi-bin", do you mean you also create your temporary files there? That would explain it, if you specified write access to cgi-bin. I think the following lines should allow the mapserv.exe process to write to your tmp directory: -------------------------------------------------------- AllowOverride None Options Indexes MultiViews Order allow,deny Allow from all -------------------------------------------------------- (I'm not at work, so I'm making this up.... but I think that's what I put there) Try this, and check whether any files appear in your tmp directory. Also check your apache log (c:/program files/apache group/apache/logs/error.log or something). It may not hurt to add a slash behind your "root" input field value. regards, Jacob -----Original Message----- From: Ante Drnasin To: 'Jacob Delfos' Sent: 1/7/2005 10:12 PM Subject: RE: [UMN_MAPSERVER-USERS] Workshop demo problem Hi Jacob! Thanx for getting back to me.... When I said that I'm getting back the "string is empty" I wanted to say that there is a response from mapserv.exe and that is working.... Which lines have you added to your apache httpd.conf file? I'm not sure what you mean by this?I have changed the alias for /cgi-bin/ and added the php instructions but that's irrelevant....what else I have to do? One update on the matter..... If we put the project(.map file and everything else) in cgi-bin directory where mapsrv.exe resides than our example works (havent' tried the workshop example....just wanted to do that)... So the problem is that mapserv.exe cannot "look" for .map file outside the cgi-bin dir?..... I'm going nuts the whole day :) Once again thanx for anser and for taking time to help.... Ante -----Original Message----- From: Jacob Delfos [ mailto:jacob.delfos at MAUNSELL.COM ] Sent: Friday, January 07, 2005 2:42 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Workshop demo problem Hi Ante, It sounds like you have not specified write permissions for Apache. Which lines have you added to your apache httpd.conf file? You have to make sure that "C:/ServerRoot/workshop/tmp/" has write permissions. Then check whether files are written to it. The reason it says "string is empty" when you go to mapserv.exe is that you haven't told the program what to do. It won't throw the error since it's not trying to write. regards, Jacob -----Original Message----- From: UMN MapServer Users List To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: 1/7/2005 9:04 PM Subject: [UMN_MAPSERVER-USERS] Workshop demo problem Hi there....we have installed mapserver 4.4.1 on Win2000, apache 1.3.33 and php 4.3.7(as SAPI)... The problem started when we wanted to install the workshop demo.... As suggested we changed the hiden vars in index.html so it looks like this When clicking the initialize button the mapserv.exe crashes with message "Memory could not be writen" .....in other case the itasca.map file could not be found.... Here are some other details if needed.... Our server root is in c:/ServerRoot/ ....apache is installed in default dir.... /cgi-bin/ alias points to c:/ServerRoot/cgi-bin/ where the mapserver/bin/ directory is copied to.... If the browser is pointed to mapserver.exe the default message about query string being empty is displayed.... Any help would be much appricited...if you need any more info just let me know.... From sgillies at FRII.COM Fri Jan 7 06:41:24 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Fri, 7 Jan 2005 07:41:24 -0700 Subject: How to get Mapscript libraries in other programming language? In-Reply-To: Message-ID: On Jan 7, 2005, at 12:58 AM, Janeks Kamerovskis wrote: > Hi, > > I am trying to use mapscript in Rebol, that suports DLLs. > > Where could I find some documentation about how to use MapScript in > other > languages? > As I understand, that is possible. > > brgds > Janeks > Janeks, We use SWIG (http://www.swig.org) to generate Python, Perl, Ruby, Java, and C# modules. I just checked the SWIG site and no mention of Rebol, so it looks like this is a no go. Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From wbronsema at DMSOLUTIONS.CA Fri Jan 7 05:42:44 2005 From: wbronsema at DMSOLUTIONS.CA (William Bronsema) Date: Fri, 7 Jan 2005 08:42:44 -0500 Subject: Assign special dbf to shapefile In-Reply-To: <41DE8EFA.5000807@maunsell.com> Message-ID: Holger, If you really want to do this and your site has low enough traffic you could always juggle the files using php. At run-time re-name the files accordingly. I usually avoid touching the disk as much as possible, but if you need to do it, this is one way to make it work. FYI - I would recommend to anyone to use a dbf editor as opposed to MS Excel to edit dbfs, unless you know the ins and out of Excel and how to deal with named ranges etc. Regards, Bill ________________________________________________ William A. Bronsema, C.E.T. Applications and Software Development, DM Solutions Group Inc. > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Jacob Delfos > Sent: January 7, 2005 8:31 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Assign special dbf to shapefile > > Holger, > > Correct me if I'm wrong, but that would be redefining the definition of > a shapefile. As far as I know, a "shapefile" is not the .shp file, but > the collection of ".shp", ".dbf", "sbx", "sbn", and ".shx" files. I > think you'd have to seriously hack the source of mapserver to do that, > unless if you created a join on a dbf, and accessed it separately. > > Why would you not want to join them? If you have access to MS Excel, it > would be as simple as copying a column across. No doubt other software > can do the same thing. You would have access to both attributes in one > shapefile. What is the actual problem that causes you not to want to > have two shapefiles, and not to want to join the attributes? > > regards, > > Jacob > > > -----Original Message----- > From: UMN MapServer Users List > To: MAPSERVER-USERS at LISTS.UMN.EDU > Sent: 1/7/2005 9:03 PM > Subject: [UMN_MAPSERVER-USERS] Assign special dbf to shapefile > > Hi all, > > am I able to assign a special dbf-file to a shape file? For example > rendering the 'airports.shp', but using data from > 'airports_passengers.dbf' > and not from 'airports.dbf' (ensuring the correct order for the > shape-information-mapping). Or another example, render some area shapes > on > the one hand with popuplation data and on the other hand with > unemployment > data without integrating both data sets into the dbf of the shape file > and > without producing two different shape-files. I use php-mapscript and > mapserver 4.4. > > HolgeR From jacob.delfos at MAUNSELL.COM Fri Jan 7 06:51:07 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Fri, 7 Jan 2005 22:51:07 +0800 Subject: Assign special dbf to shapefile Message-ID: Bill, Good point about MS Excel. I forgot to mention that you do need to check on the result. It tends to leave out columns and change number formats. But when it works, it's quick and easy. regards, Jacob -----Original Message----- From: UMN MapServer Users List To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: 1/7/2005 9:42 PM Subject: Re: [UMN_MAPSERVER-USERS] Assign special dbf to shapefile Holger, If you really want to do this and your site has low enough traffic you could always juggle the files using php. At run-time re-name the files accordingly. I usually avoid touching the disk as much as possible, but if you need to do it, this is one way to make it work. FYI - I would recommend to anyone to use a dbf editor as opposed to MS Excel to edit dbfs, unless you know the ins and out of Excel and how to deal with named ranges etc. Regards, Bill ________________________________________________ William A. Bronsema, C.E.T. Applications and Software Development, DM Solutions Group Inc. > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Jacob Delfos > Sent: January 7, 2005 8:31 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Assign special dbf to shapefile > > Holger, > > Correct me if I'm wrong, but that would be redefining the definition of > a shapefile. As far as I know, a "shapefile" is not the .shp file, but > the collection of ".shp", ".dbf", "sbx", "sbn", and ".shx" files. I > think you'd have to seriously hack the source of mapserver to do that, > unless if you created a join on a dbf, and accessed it separately. > > Why would you not want to join them? If you have access to MS Excel, it > would be as simple as copying a column across. No doubt other software > can do the same thing. You would have access to both attributes in one > shapefile. What is the actual problem that causes you not to want to > have two shapefiles, and not to want to join the attributes? > > regards, > > Jacob > > > -----Original Message----- > From: UMN MapServer Users List > To: MAPSERVER-USERS at LISTS.UMN.EDU > Sent: 1/7/2005 9:03 PM > Subject: [UMN_MAPSERVER-USERS] Assign special dbf to shapefile > > Hi all, > > am I able to assign a special dbf-file to a shape file? For example > rendering the 'airports.shp', but using data from > 'airports_passengers.dbf' > and not from 'airports.dbf' (ensuring the correct order for the > shape-information-mapping). Or another example, render some area shapes > on > the one hand with popuplation data and on the other hand with > unemployment > data without integrating both data sets into the dbf of the shape file > and > without producing two different shape-files. I use php-mapscript and > mapserver 4.4. > > HolgeR From jdport at VERITIME.COM Fri Jan 7 06:57:32 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Fri, 7 Jan 2005 09:57:32 -0500 Subject: getting shapefiles from TIGER data? Message-ID: Can anybody tell me if there is any way to convert TIGER road data into a shapefile? I saw a commercial product that said it could do the conversion, but I was hoping to find a way to do the conversion without having to purchase a commercial product. Thanks, JEff From craig.nakamoto at CLAERO.COM Fri Jan 7 06:33:06 2005 From: craig.nakamoto at CLAERO.COM (Craig Nakamoto) Date: Fri, 7 Jan 2005 07:33:06 -0700 Subject: Installation Problem - error while loading shared libraries Message-ID: Hello, I am a new user to MapServer and all my test development has occurred on my local Windows machine. Now I want to create a UNIX MapServer environment and I am using Red Hat Enterprise v3. I have reached the point of compiling MapServer itself and I use the following configure options: sudo ./configure --with-proj --with-php=/usr/include/php Everything seems to work fine, and 'configure' locates all the required, and my requested, optional components (many of which I compiled instead of using RPMs). Then I do a 'make' and it looks like it works but when I try to execute the mapserv binary I get: [claero at cw2000 mapserver-4.4.1]$ ./mapserv ./mapserv: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory The documentation says that 'something has gone horribly wrong' and to email this group. Any help would be greatly appreciated. In the configure output here is the excerpt regarding GD: configure: checking for GD 2.0.12 or higher... checking for gdImageSetAntiAliased in -lgd... yes checking for gdImageSetAntiAliased in -lgd... (cached) yes using libgd 2.0.12 (or higher) from system libs (-L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -lz ). checking for gdImageCreate in -lgd... yes checking for gdImageGif in -lgd... yes checking for gdImagePng in -lgd... yes checking for gdImageJpeg in -lgd... yes checking for gdImageWBMP in -lgd... yes checking for gdImageStringFT in -lgd... yes checking for gdImageGifPtr in -lgd... yes checking for gdFontGetTiny in -lgd... yes using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS) from system libs. Thanks! Craig ______________________________________ Craig Nakamoto, Senior Consultant IT Consulting and Services for Your Business Claero Systems | www.claero.com (403) 242-2667 x105 (phone) (403) 261-0718 (fax) From floerke at DOCTRONIC.DE Fri Jan 7 07:08:42 2005 From: floerke at DOCTRONIC.DE (Holger Floerke) Date: Fri, 7 Jan 2005 09:08:42 -0600 Subject: Assign special dbf to shapefile Message-ID: Hi Jacob, > Why would you not want to join them? If the information I would like to present is evaluated at runtime, I have to produce a full set of ".shp", ".dbf", "sbx", "sbn", and ".shx" files. The shapes always stays the same, but the data is extracted from a database on a user's query. I would like to save space by not copying the shape information every time. > unless if you created a join on a dbf, and accessed it separately. Is it possible to join external data sources (one or more dbf-files or oci-sources) to shape files at runtime with the mapserver-api? HolgeR Jacob Delfos schrieb: > Holger, > > Correct me if I'm wrong, but that would be redefining the definition of > a shapefile. As far as I know, a "shapefile" is not the .shp file, but > the collection of ".shp", ".dbf", "sbx", "sbn", and ".shx" files. I > think you'd have to seriously hack the source of mapserver to do that, > unless if you created a join on a dbf, and accessed it separately. > > Why would you not want to join them? If you have access to MS Excel, it > would be as simple as copying a column across. No doubt other software > can do the same thing. You would have access to both attributes in one > shapefile. What is the actual problem that causes you not to want to > have two shapefiles, and not to want to join the attributes? > > regards, > > Jacob > > > -----Original Message----- > From: UMN MapServer Users List > To: MAPSERVER-USERS at LISTS.UMN.EDU > Sent: 1/7/2005 9:03 PM > Subject: [UMN_MAPSERVER-USERS] Assign special dbf to shapefile > > Hi all, > > am I able to assign a special dbf-file to a shape file? For example > rendering the 'airports.shp', but using data from > 'airports_passengers.dbf' > and not from 'airports.dbf' (ensuring the correct order for the > shape-information-mapping). Or another example, render some area shapes > on > the one hand with popuplation data and on the other hand with > unemployment > data without integrating both data sets into the dbf of the shape file > and > without producing two different shape-files. I use php-mapscript and > mapserver 4.4. > > HolgeR > From janeks.kamerovskis at SILVA.LV Fri Jan 7 07:13:50 2005 From: janeks.kamerovskis at SILVA.LV (Janeks Kamerovskis) Date: Fri, 7 Jan 2005 17:13:50 +0200 Subject: How to get Mapscript libraries in other programming language? In-Reply-To: <3497D7F4-60BA-11D9-93E9-000D9329D732@frii.com> Message-ID: Thanks for answer! I am quite dummy in C things and compiling, but Rebol could use normal DLLs. How those different Mapcript language versions are done? Do they not references to a mapscript DLL? Is it difficult to make one? brgds Janeks > -----Original Message----- > From: Sean Gillies [mailto:sgillies at frii.com] > Sent: Friday, January 07, 2005 4:41 PM > To: Janeks Kamerovskis > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: How to get Mapscript libraries in other programming language? > > > On Jan 7, 2005, at 12:58 AM, Janeks Kamerovskis wrote: > > > Hi, > > > > I am trying to use mapscript in Rebol, that suports DLLs. > > > > Where could I find some documentation about how to use MapScript in > > other > > languages? > > As I understand, that is possible. > > > > brgds > > Janeks > > > > Janeks, > > We use SWIG (http://www.swig.org) to generate Python, Perl, Ruby, Java, > and C# modules. I just checked the SWIG site and no mention of Rebol, > so it looks like this is a no go. > > Sean > > -- > Sean Gillies > sgillies at frii dot com > http://users.frii.com/sgillies > From w.blanken at GEON.NL Fri Jan 7 07:17:06 2005 From: w.blanken at GEON.NL (Wim Blanken) Date: Fri, 7 Jan 2005 16:17:06 +0100 Subject: Installation Problem - error while loading shared libraries In-Reply-To: <35EAD97A78C12A49845DA667FA6DB0C712D3EC@whistler.claero.local> Message-ID: Hello Craig, Mostly this problem has to do when te applic cannot find the appropriate library at rum time. Maybe you forgot to add this....... add the line: /usr/local/lib to the file: /etc/ld.so.conf and then run ldconfig (as root): sudo /sbin/ldconfig Then try your mapserv executable again. Regards, Wim Blanken The Netherlands -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Craig Nakamoto Verzonden: vrijdag 7 januari 2005 15:33 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] Installation Problem - error while loading shared libraries Hello, I am a new user to MapServer and all my test development has occurred on my local Windows machine. Now I want to create a UNIX MapServer environment and I am using Red Hat Enterprise v3. I have reached the point of compiling MapServer itself and I use the following configure options: sudo ./configure --with-proj --with-php=/usr/include/php Everything seems to work fine, and 'configure' locates all the required, and my requested, optional components (many of which I compiled instead of using RPMs). Then I do a 'make' and it looks like it works but when I try to execute the mapserv binary I get: [claero at cw2000 mapserver-4.4.1]$ ./mapserv ./mapserv: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory The documentation says that 'something has gone horribly wrong' and to email this group. Any help would be greatly appreciated. In the configure output here is the excerpt regarding GD: configure: checking for GD 2.0.12 or higher... checking for gdImageSetAntiAliased in -lgd... yes checking for gdImageSetAntiAliased in -lgd... (cached) yes using libgd 2.0.12 (or higher) from system libs (-L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -lz ). checking for gdImageCreate in -lgd... yes checking for gdImageGif in -lgd... yes checking for gdImagePng in -lgd... yes checking for gdImageJpeg in -lgd... yes checking for gdImageWBMP in -lgd... yes checking for gdImageStringFT in -lgd... yes checking for gdImageGifPtr in -lgd... yes checking for gdFontGetTiny in -lgd... yes using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS) from system libs. Thanks! Craig ______________________________________ Craig Nakamoto, Senior Consultant IT Consulting and Services for Your Business Claero Systems | www.claero.com (403) 242-2667 x105 (phone) (403) 261-0718 (fax) From jacob.delfos at MAUNSELL.COM Fri Jan 7 07:14:37 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Fri, 7 Jan 2005 23:14:37 +0800 Subject: Assign special dbf to shapefile Message-ID: Hi Holger, Do you need to be able to access the different kinds of information at the same time? So in other words, do two ore more kinds of information need to exist at the same time? Or do the attributes of your shapefile only need to have one particular value at a time? If you only need to have one value at a time, I think it would be best if you used PHP to access the DBF, and wrote the values to the DBF, without renaming the DBF, and without trying to associate the .shp file with a different DBF. Depending on how many different 'versions' of the shapefile you need to have at the same time, you could create X amount of copies of the shapefiles, and change the associated DBF's at runtime, without having to create more .shp files. Accessing DBF's with PHP is very easy. Does that make sense? regards, Jacob -----Original Message----- From: UMN MapServer Users List To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: 1/7/2005 11:08 PM Subject: Re: [UMN_MAPSERVER-USERS] Assign special dbf to shapefile Hi Jacob, > Why would you not want to join them? If the information I would like to present is evaluated at runtime, I have to produce a full set of ".shp", ".dbf", "sbx", "sbn", and ".shx" files. The shapes always stays the same, but the data is extracted from a database on a user's query. I would like to save space by not copying the shape information every time. > unless if you created a join on a dbf, and accessed it separately. Is it possible to join external data sources (one or more dbf-files or oci-sources) to shape files at runtime with the mapserver-api? HolgeR Jacob Delfos schrieb: > Holger, > > Correct me if I'm wrong, but that would be redefining the definition of > a shapefile. As far as I know, a "shapefile" is not the .shp file, but > the collection of ".shp", ".dbf", "sbx", "sbn", and ".shx" files. I > think you'd have to seriously hack the source of mapserver to do that, > unless if you created a join on a dbf, and accessed it separately. > > Why would you not want to join them? If you have access to MS Excel, it > would be as simple as copying a column across. No doubt other software > can do the same thing. You would have access to both attributes in one > shapefile. What is the actual problem that causes you not to want to > have two shapefiles, and not to want to join the attributes? > > regards, > > Jacob > > > -----Original Message----- > From: UMN MapServer Users List > To: MAPSERVER-USERS at LISTS.UMN.EDU > Sent: 1/7/2005 9:03 PM > Subject: [UMN_MAPSERVER-USERS] Assign special dbf to shapefile > > Hi all, > > am I able to assign a special dbf-file to a shape file? For example > rendering the 'airports.shp', but using data from > 'airports_passengers.dbf' > and not from 'airports.dbf' (ensuring the correct order for the > shape-information-mapping). Or another example, render some area shapes > on > the one hand with popuplation data and on the other hand with > unemployment > data without integrating both data sets into the dbf of the shape file > and > without producing two different shape-files. I use php-mapscript and > mapserver 4.4. > > HolgeR > From sgillies at FRII.COM Fri Jan 7 07:20:37 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Fri, 7 Jan 2005 08:20:37 -0700 Subject: How to get Mapscript libraries in other programming language? In-Reply-To: Message-ID: On Jan 7, 2005, at 8:13 AM, Janeks Kamerovskis wrote: > Thanks for answer! > > I am quite dummy in C things and compiling, but Rebol could use normal > DLLs. > > How those different Mapcript language versions are done? > Do they not references to a mapscript DLL? > > Is it difficult to make one? > > brgds > Janeks > > You can compiled MapServer to produce a libmap.dll, but this library only contains the code needed by the mapserv. shp2img, (etc) programs. There are no functions in it to create mapping objects (layers, classes). We use SWIG to generate shared libraries for specific languages that contain the mapping objects. I don't think Rebol will be able to make use of the Python or Perl mapscript modules. Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From woodbri at SWOODBRIDGE.COM Fri Jan 7 07:22:02 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 7 Jan 2005 10:22:02 -0500 Subject: Assign special dbf to shapefile In-Reply-To: Message-ID: The only way that I know of to do runtime joins in mapserver is to use PostGIS. You might be able to do something with gdal, but I think it is very slow. I have requested support for runtime shapefile joins to either DBF or MySQL multiple times and nothing has happened in that direction. Basically, it would be very slow because for each object in the shapefile, you would have to scan the whole DBF file, because there are no indexes support for DBF files, or the developers would have to build DBF indexing support into mapserver. For Mysql, you could index the columns, but you would still need to make a separate query for every object in the shapefile. In PostGIS, since you have all the data in the database to start with you can make one query for the layer and do the join in that query, then you only have to fetch back the objects to render. -Steve W. Holger Floerke wrote: > Hi Jacob, > > >>Why would you not want to join them? > > If the information I would like to present is evaluated at runtime, I have > to produce a full set of ".shp", ".dbf", "sbx", "sbn", and ".shx" files. The > shapes always stays the same, but the data is extracted from a database on a > user's query. I would like to save space by not copying the shape > information every time. > > >>unless if you created a join on a dbf, and accessed it separately. > > Is it possible to join external data sources (one or more dbf-files or > oci-sources) to shape files at runtime with the mapserver-api? > > HolgeR > > > Jacob Delfos schrieb: > > >>Holger, >> >>Correct me if I'm wrong, but that would be redefining the definition of >>a shapefile. As far as I know, a "shapefile" is not the .shp file, but >>the collection of ".shp", ".dbf", "sbx", "sbn", and ".shx" files. I >>think you'd have to seriously hack the source of mapserver to do that, >>unless if you created a join on a dbf, and accessed it separately. >> >>Why would you not want to join them? If you have access to MS Excel, it >>would be as simple as copying a column across. No doubt other software >>can do the same thing. You would have access to both attributes in one >>shapefile. What is the actual problem that causes you not to want to >>have two shapefiles, and not to want to join the attributes? >> >>regards, >> >>Jacob >> >> >>-----Original Message----- >>From: UMN MapServer Users List >>To: MAPSERVER-USERS at LISTS.UMN.EDU >>Sent: 1/7/2005 9:03 PM >>Subject: [UMN_MAPSERVER-USERS] Assign special dbf to shapefile >> >>Hi all, >> >>am I able to assign a special dbf-file to a shape file? For example >>rendering the 'airports.shp', but using data from >>'airports_passengers.dbf' >>and not from 'airports.dbf' (ensuring the correct order for the >>shape-information-mapping). Or another example, render some area shapes >>on >>the one hand with popuplation data and on the other hand with >>unemployment >>data without integrating both data sets into the dbf of the shape file >>and >>without producing two different shape-files. I use php-mapscript and >>mapserver 4.4. >> >>HolgeR >> > > From craig.nakamoto at CLAERO.COM Fri Jan 7 07:32:54 2005 From: craig.nakamoto at CLAERO.COM (Craig Nakamoto) Date: Fri, 7 Jan 2005 08:32:54 -0700 Subject: Installation Problem - error while loading shared libraries Message-ID: Wim, Thank you very much for the quick help. This solved my problem right away! Craig -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Wim Blanken Sent: Friday, January 07, 2005 8:17 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Installation Problem - error while loading shared libraries Hello Craig, Mostly this problem has to do when te applic cannot find the appropriate library at rum time. Maybe you forgot to add this....... add the line: /usr/local/lib to the file: /etc/ld.so.conf and then run ldconfig (as root): sudo /sbin/ldconfig Then try your mapserv executable again. Regards, Wim Blanken The Netherlands -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Craig Nakamoto Verzonden: vrijdag 7 januari 2005 15:33 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] Installation Problem - error while loading shared libraries Hello, I am a new user to MapServer and all my test development has occurred on my local Windows machine. Now I want to create a UNIX MapServer environment and I am using Red Hat Enterprise v3. I have reached the point of compiling MapServer itself and I use the following configure options: sudo ./configure --with-proj --with-php=/usr/include/php Everything seems to work fine, and 'configure' locates all the required, and my requested, optional components (many of which I compiled instead of using RPMs). Then I do a 'make' and it looks like it works but when I try to execute the mapserv binary I get: [claero at cw2000 mapserver-4.4.1]$ ./mapserv ./mapserv: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory The documentation says that 'something has gone horribly wrong' and to email this group. Any help would be greatly appreciated. In the configure output here is the excerpt regarding GD: configure: checking for GD 2.0.12 or higher... checking for gdImageSetAntiAliased in -lgd... yes checking for gdImageSetAntiAliased in -lgd... (cached) yes using libgd 2.0.12 (or higher) from system libs (-L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -lz ). checking for gdImageCreate in -lgd... yes checking for gdImageGif in -lgd... yes checking for gdImagePng in -lgd... yes checking for gdImageJpeg in -lgd... yes checking for gdImageWBMP in -lgd... yes checking for gdImageStringFT in -lgd... yes checking for gdImageGifPtr in -lgd... yes checking for gdFontGetTiny in -lgd... yes using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS) from system libs. Thanks! Craig ______________________________________ Craig Nakamoto, Senior Consultant IT Consulting and Services for Your Business Claero Systems | www.claero.com (403) 242-2667 x105 (phone) (403) 261-0718 (fax) From eric at GOMOOS.ORG Fri Jan 7 07:37:39 2005 From: eric at GOMOOS.ORG (Eric Bridger) Date: Fri, 7 Jan 2005 10:37:39 -0500 Subject: getting shapefiles from TIGER data? In-Reply-To: <007201c4f4c9$3731f040$5ff2fbd0@solo> Message-ID: On Fri, 2005-01-07 at 09:57, Jeff Portwine wrote: > Can anybody tell me if there is any way to convert TIGER road data into a > shapefile? I saw a commercial product that said it could do the > conversion, but I was hoping to find a way to do the conversion without > having to purchase a commercial product. > > Thanks, > JEff > ESRI makes these available for download: http://www.esri.com/data/download/census2000_tigerline/ From andrzej.swiader at PROGEA.PL Fri Jan 7 07:45:31 2005 From: andrzej.swiader at PROGEA.PL (Andrew Swiader) Date: Fri, 7 Jan 2005 09:45:31 -0600 Subject: How to recieve status of previously set symbol? Message-ID: Hello, I'm a begginer MapServer and PHP Mapscript user. I have following problem: I need to have two fills for one layer. They will be changed by checkboxes. I'am almost succesfull, but I have a problem with reporting status of previously set symbol. Below is an example how I am changing symbols: $poLayer = $gpoMap->getLayerByName(OWT); $myClass = $poLayer->getClass(0); $myStyle = $myClass->getStyle(0); $myStyle->set("symbol", 10); Now I need to check the value of "symbol" (in this example I suppose to recieve "10"). Does anybody know how to do it? Andrew Swiader From andrzej.swiader at PROGEA.PL Fri Jan 7 07:35:07 2005 From: andrzej.swiader at PROGEA.PL (Andrzej Swiader ProGea) Date: Fri, 7 Jan 2005 16:35:07 +0100 Subject: How to recieve status of previously set symbol? Message-ID: Hello, I'm a begginer MapServer and PHP Mapscript user. I have following problem: I need to have two fills for one layer. They will be changed by checkboxes. I'am almost succesfull, but I have a problem with reporting status of previously set symbol. Below is an example how I am changing symbols: $poLayer = $gpoMap->getLayerByName(OWT); $myClass = $poLayer->getClass(0); $myStyle = $myClass->getStyle(0); $myStyle->set("symbol", 10); Now I need to check the value of "symbol" (in this example I suppose to recieve "10"). Does anybody know how to do it? Andrew Swiader From bhudspeth at EDAC.UNM.EDU Fri Jan 7 08:04:02 2005 From: bhudspeth at EDAC.UNM.EDU (William Hudspeth) Date: Fri, 7 Jan 2005 09:04:02 -0700 Subject: Upgrading Python Mapscript Message-ID: I am running Mapserver 4.2.1. I would like to upgrade the Python Mapserver component to the most recent version. Is there an easy way to do this? Bill From sgillies at FRII.COM Fri Jan 7 08:14:52 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Fri, 7 Jan 2005 09:14:52 -0700 Subject: Upgrading Python Mapscript In-Reply-To: Message-ID: On Jan 7, 2005, at 9:04 AM, William Hudspeth wrote: > I am running Mapserver 4.2.1. I would like to upgrade the Python > Mapserver component to the most recent version. Is there an easy way to > do this? > > Bill > Bill, There are no upgrade shortcuts. Download MapServer 4.4.1, configure and make, then cd mapscript/python and follow the directions in the README. If you are using windows, you can grab binaries from Howard Butler's site: http://hobu.stat.iastate.edu/mapserver/build_output/4_4_1/full/python/ mapscript-4.3.win32-py2.3-full.exe That make building mapserver unnecessary, but don't provide any of the other programs. I think it is only a typo that says "mapscript-4.3", Howard? Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From hobu at IASTATE.EDU Fri Jan 7 08:16:34 2005 From: hobu at IASTATE.EDU (Howard Butler) Date: Fri, 7 Jan 2005 10:16:34 -0600 Subject: Upgrading Python Mapscript In-Reply-To: Message-ID: yes this is a typo. Also, to use the Windows Python Mapscript, you'll need to download the "binary" version on http://hobu.stat.iastate.edu/mapserver/ You need the iconv.dll out of that zip file as well. I forgot to include it in the distro. 4.4.2 will clean up these issues. At 10:14 AM 1/7/2005, Sean Gillies wrote: >On Jan 7, 2005, at 9:04 AM, William Hudspeth wrote: > > > I am running Mapserver 4.2.1. I would like to upgrade the Python > > Mapserver component to the most recent version. Is there an easy way to > > do this? > > > > Bill > > > > >Bill, > >There are no upgrade shortcuts. Download MapServer 4.4.1, configure >and make, then cd mapscript/python and follow the directions in the >README. If you are using windows, you can grab binaries from Howard >Butler's site: > >http://hobu.stat.iastate.edu/mapserver/build_output/4_4_1/full/python/ >mapscript-4.3.win32-py2.3-full.exe > >That make building mapserver unnecessary, but don't provide any of the >other programs. I think it is only a typo that says "mapscript-4.3", >Howard? > >Sean > >-- >Sean Gillies >sgillies at frii dot com >http://users.frii.com/sgillies From bartvde at XS4ALL.NL Fri Jan 7 08:20:33 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri, 7 Jan 2005 17:20:33 +0100 Subject: How to recieve status of previously set symbol? In-Reply-To: <005901c4f4ce$77a48ed0$0301a8c0@Pentium4> Message-ID: Hi Andrew, $myStyle->symbol Best regards, Bart > Hello, > > I'm a begginer MapServer and PHP Mapscript user. I have following problem: > I > need to have two fills for one layer. They will be changed by checkboxes. > I'am almost succesfull, but I have a problem with reporting status of > previously set symbol. > > Below is an example how I am changing symbols: > $poLayer = $gpoMap->getLayerByName(OWT); > $myClass = $poLayer->getClass(0); > $myStyle = $myClass->getStyle(0); > $myStyle->set("symbol", 10); > > Now I need to check the value of "symbol" (in this example I suppose to > recieve "10"). Does anybody know how to do it? > > Andrew Swiader > From andy_canfield at HOTMAIL.COM Fri Jan 7 08:33:29 2005 From: andy_canfield at HOTMAIL.COM (ANDY CANFIELD) Date: Fri, 7 Jan 2005 08:33:29 -0800 Subject: Subscribe not working In-Reply-To: <1105112265.1818.4.camel@ubet.gomoos.org> Message-ID: I am trying to subscribe my gmail account to this list and I'm having no luck. Can somebody point me to the correct place to add myself? Following the links on the mapserver page I end up in a ListServ interface that says there are no groups on this server when I try and subscribe. Any help would be appreciated. From bhudspeth at EDAC.UNM.EDU Fri Jan 7 08:34:28 2005 From: bhudspeth at EDAC.UNM.EDU (William Hudspeth) Date: Fri, 7 Jan 2005 09:34:28 -0700 Subject: Python mapscript zoomrectangle Message-ID: I am using Mapserver 4.2, and Python Mapscript revision 1.4.2.1. As I wrote recently, I have written some code to pass pixel values from a user-selected rectangle to Zoomrectangle. Sean Gillies made changes to the Python Mapscript code to handle pixel values and make the appropriate conversions (with an additional flag to the rectObj constructor). He also suggested a workaround for the older Mapscript version that I am using. It involved directly assigning pixel values to a rectObj: #pixel values passed in x_min=289 (left) y_min=78 (top) x_max=450 (right) y_max=201 (bottom) zoomRect=mapscript.rectObj() zoomRect.minx, zoomRect.miny, zoomRect.maxx, zoomRect.maxy= (minx,maxy,maxx,miny) self.mapObj.zoomRectanlge(rectObj, width, height, rectObj, rectObj) This solution worked well for maps in a UTM coordinate system with a "normal" cartesian layout (e.g. x increases to the right, y increases to the north). However, my current map is in geographic coordinates with approximate borders north=44N south=27N west=125W (or -125) east=93W (or -93) - e.g. x values increase to the left. The same code that worked with UTM's is not working with Geographic coords. Hence my interest on a workaround for this particular problem, or whether it would be easier to upgrade the version of Mapscript. Bill From sgillies at FRII.COM Fri Jan 7 08:59:34 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Fri, 7 Jan 2005 09:59:34 -0700 Subject: Python mapscript zoomrectangle In-Reply-To: Message-ID: On Jan 7, 2005, at 9:34 AM, William Hudspeth wrote: > I am using Mapserver 4.2, and Python Mapscript revision 1.4.2.1. As I > wrote recently, I have written some code to pass pixel values from a > user-selected rectangle to Zoomrectangle. Sean Gillies made changes to > the Python Mapscript code to handle pixel values and make the > appropriate conversions (with an additional flag to the rectObj > constructor). He also suggested a workaround for the older Mapscript > version that I am using. It involved directly assigning pixel values to > a rectObj: > > #pixel values passed in > x_min=289 (left) > y_min=78 (top) > x_max=450 (right) > y_max=201 (bottom) > This is correct. > zoomRect=mapscript.rectObj() > zoomRect.minx, zoomRect.miny, zoomRect.maxx, zoomRect.maxy= > (minx,maxy,maxx,miny) > self.mapObj.zoomRectanlge(rectObj, width, height, rectObj, rectObj) > Bill, you are screwing up your zoom rectangle by switching the miny/maxy values. The first two lines above should be written as zoomRect = mapscript.rectObj(x_min, y_min, x_max, y_max) With MapServer 4.4, because of the added rectObj extent checking, you will need to add a imageunits flag as the 5th argument to rectObj zoomRect = mapscript.rectObj(x_min, y_min, x_max, y_max, 1) See the API reference: http://users.frii.com/sgillies/projects/mapscript/ mapscript.html#rectobj > This solution worked well for maps in a UTM coordinate system with a > "normal" cartesian layout (e.g. x increases to the right, y increases > to > the north). However, my current map is in geographic coordinates with > approximate borders north=44N south=27N west=125W (or -125) east=93W > (or > -93) - e.g. x values increase to the left. The same code that worked > with UTM's is not working with Geographic coords. Hence my interest on > a > workaround for this particular problem, or whether it would be easier > to > upgrade the version of Mapscript. > > Bill > > No, Bill, x values need to decrease to the left! 125W needs to be treated as -125 degrees for use with MapServer. I wonder if this was a mistake in your email, or maybe a misunderstanding that is the root of your problem? regards, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From sgillies at FRII.COM Fri Jan 7 09:09:38 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Fri, 7 Jan 2005 10:09:38 -0700 Subject: Python mapscript zoomrectangle In-Reply-To: Message-ID: On Jan 7, 2005, at 10:23 AM, Abe Gillespie wrote: > Is there a "what's new" and / or "breaking changes" list we can look > at with the latest version of Mapscript? > > Thanks. > -Abe > http://mapserver.gis.umn.edu/whatsNew.html Link's on the front page of the website. It is only a overview of a more detailed HISTORY.TXT file in the MapServer package. Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From agillesp at VT.EDU Fri Jan 7 09:34:17 2005 From: agillesp at VT.EDU (Abe Gillespie) Date: Fri, 7 Jan 2005 12:34:17 -0500 Subject: Record count Message-ID: Is there a better way to get the total number of records in a shapefile than query for all records and getting the result count a la: $l->queryByAttributes("any_field", "/\w*/", MS_MULTIPLE); $cnt = $l->getNumResults(); I realize you can use shapefileObj::numshapes, but this doesn't always work for me. I don't want to use hard paths and have tried it like: $path = $map->shapepath.$layer->data; $file = ms_newShapefileObj($path, -1); $cnt = $file->numshapes; This works on some sites and not on others. I remember reading something about Mapscript changing the current working directory. I think this is causing me issues as I keep my map file in "etc" and the HTML files one directory above that. Thanks. -Abe From agillesp at VT.EDU Fri Jan 7 09:39:24 2005 From: agillesp at VT.EDU (Abe Gillespie) Date: Fri, 7 Jan 2005 12:39:24 -0500 Subject: Python mapscript zoomrectangle In-Reply-To: Message-ID: Yes, I've seen this, thank you. But is there anything specific to Mapscript? I.e. you mentioned mapscript.rectObj(x_min, y_min, x_max, y_max, 1) has changed. Is there any way of knowing this besides going through and comparing each method and property on each class? -Abe On Jan 7, 2005, at 12:09 PM, Sean Gillies wrote: > On Jan 7, 2005, at 10:23 AM, Abe Gillespie wrote: > >> Is there a "what's new" and / or "breaking changes" list we can look >> at with the latest version of Mapscript? >> >> Thanks. >> -Abe >> > > http://mapserver.gis.umn.edu/whatsNew.html > > Link's on the front page of the website. It is only a overview of a > more detailed HISTORY.TXT file in the MapServer package. > > Sean > > -- > Sean Gillies > sgillies at frii dot com > http://users.frii.com/sgillies > From sgillies at FRII.COM Fri Jan 7 09:21:47 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Fri, 7 Jan 2005 10:21:47 -0700 Subject: Record count In-Reply-To: Message-ID: On Jan 7, 2005, at 10:34 AM, Abe Gillespie wrote: > Is there a better way to get the total number of records in a shapefile > than query for all records and getting the result count a la: > > $l->queryByAttributes("any_field", "/\w*/", MS_MULTIPLE); > $cnt = $l->getNumResults(); > > I realize you can use shapefileObj::numshapes, but this doesn't always > work for me. I don't want to use hard paths and have tried it like: > > $path = $map->shapepath.$layer->data; > $file = ms_newShapefileObj($path, -1); > $cnt = $file->numshapes; > > This works on some sites and not on others. I remember reading > something about Mapscript changing the current working directory. I > think this is causing me issues as I keep my map file in "etc" and the > HTML files one directory above that. > > Thanks. > -Abe > > A queryByRect will be faster than an attribute query if you have a mapserver shptree index on your shapefiles. If you were using Python mapscript you could also use the Python shapelib module or OGR's Python module. In other languages, try an XBase module on the .dbf file. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From gireddy at GMAIL.COM Fri Jan 7 09:25:36 2005 From: gireddy at GMAIL.COM (Shashi Gireddy) Date: Fri, 7 Jan 2005 11:25:36 -0600 Subject: getting shapefiles from TIGER data? In-Reply-To: <1105118314.1816.31.camel@ubet.gomoos.org> Message-ID: I have sf3 data with me and i am trying to match them (associating all sf3 data with the available shape files), but i have trouble in using shp2mysql.pl i am getting following error message "can't locate Shape.pm in @INC" i tried searching for shape at ppm, i got Geo-Shapefile but it didn't worked. On 07 Jan 2005 12:18:28 -0500, Eric Bridger wrote: > I don't know of any. > The SF files are only data not shape information. I think you should be > able to link SF1 to SF3 and 4 via some id's. > > > On Fri, 2005-01-07 at 11:47, Shashi Gireddy wrote: > > Hi Eric, > > only SF1 data is available at the URL you gave, is there any way to > > download SF3,SF4. > > thank you, > > shashi. > > > > > > On Fri, 7 Jan 2005 10:37:39 -0500, Eric Bridger wrote: > > > On Fri, 2005-01-07 at 09:57, Jeff Portwine wrote: > > > > Can anybody tell me if there is any way to convert TIGER road data into a > > > > shapefile? I saw a commercial product that said it could do the > > > > conversion, but I was hoping to find a way to do the conversion without > > > > having to purchase a commercial product. > > > > > > > > Thanks, > > > > JEff > > > > > > > > > > ESRI makes these available for download: > > > http://www.esri.com/data/download/census2000_tigerline/ > > > > > > > > > -- > > Shashi Kiran Reddy. Gireddy, > > Graduate Assistant, > > CBER, University of Alabama. > > http://www.cs.ua.edu/shashi > > Home: 205-752-5137 Cell: 205-657-1438 > > > > -- Shashi Kiran Reddy. Gireddy, Graduate Assistant, CBER, University of Alabama. http://www.cs.ua.edu/shashi Home: 205-752-5137 Cell: 205-657-1438 From kenlord at GMAIL.COM Fri Jan 7 09:31:49 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Fri, 7 Jan 2005 09:31:49 -0800 Subject: Assign special dbf to shapefile In-Reply-To: <41DEA91A.2030807@swoodbridge.com> Message-ID: This definately calls for PostGIS, and I'm sure it would process the request much faster. But, Why not use the join object in mapserver? http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#join Or is this join system, that was broken i think after mapserver 3.4, still not functional? ... and if it is still not functional why have the instructions remained in the current documentation for the last 2 years+ ... since at least mapserver 3.6? There is another option: Don't join the data on-the-fly. Instead when the user queries the airport, have a link parsed in the query results that when followed displays the attribute data you want based on the query results returned. ... A little ASP works wonders here to take a mapserver query result and query another database with it. Cheers, Ken On Fri, 7 Jan 2005 10:22:02 -0500, Stephen Woodbridge wrote: > The only way that I know of to do runtime joins in mapserver is to use > PostGIS. You might be able to do something with gdal, but I think it is > very slow. I have requested support for runtime shapefile joins to > either DBF or MySQL multiple times and nothing has happened in that > direction. Basically, it would be very slow because for each object in > the shapefile, you would have to scan the whole DBF file, because there > are no indexes support for DBF files, or the developers would have to > build DBF indexing support into mapserver. For Mysql, you could index > the columns, but you would still need to make a separate query for every > object in the shapefile. > > In PostGIS, since you have all the data in the database to start with > you can make one query for the layer and do the join in that query, then > you only have to fetch back the objects to render. > > -Steve W. > > Holger Floerke wrote: > > Hi Jacob, > > > > > >>Why would you not want to join them? > > > > If the information I would like to present is evaluated at runtime, I have > > to produce a full set of ".shp", ".dbf", "sbx", "sbn", and ".shx" files. The > > shapes always stays the same, but the data is extracted from a database on a > > user's query. I would like to save space by not copying the shape > > information every time. > > > > > >>unless if you created a join on a dbf, and accessed it separately. > > > > Is it possible to join external data sources (one or more dbf-files or > > oci-sources) to shape files at runtime with the mapserver-api? > > > > HolgeR > > > > > > Jacob Delfos schrieb: > > > > > >>Holger, > >> > >>Correct me if I'm wrong, but that would be redefining the definition of > >>a shapefile. As far as I know, a "shapefile" is not the .shp file, but > >>the collection of ".shp", ".dbf", "sbx", "sbn", and ".shx" files. I > >>think you'd have to seriously hack the source of mapserver to do that, > >>unless if you created a join on a dbf, and accessed it separately. > >> > >>Why would you not want to join them? If you have access to MS Excel, it > >>would be as simple as copying a column across. No doubt other software > >>can do the same thing. You would have access to both attributes in one > >>shapefile. What is the actual problem that causes you not to want to > >>have two shapefiles, and not to want to join the attributes? > >> > >>regards, > >> > >>Jacob > >> > >> > >>-----Original Message----- > >>From: UMN MapServer Users List > >>To: MAPSERVER-USERS at LISTS.UMN.EDU > >>Sent: 1/7/2005 9:03 PM > >>Subject: [UMN_MAPSERVER-USERS] Assign special dbf to shapefile > >> > >>Hi all, > >> > >>am I able to assign a special dbf-file to a shape file? For example > >>rendering the 'airports.shp', but using data from > >>'airports_passengers.dbf' > >>and not from 'airports.dbf' (ensuring the correct order for the > >>shape-information-mapping). Or another example, render some area shapes > >>on > >>the one hand with popuplation data and on the other hand with > >>unemployment > >>data without integrating both data sets into the dbf of the shape file > >>and > >>without producing two different shape-files. I use php-mapscript and > >>mapserver 4.4. > >> > >>HolgeR > >> > > > > From sgillies at FRII.COM Fri Jan 7 09:33:55 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Fri, 7 Jan 2005 10:33:55 -0700 Subject: Python mapscript zoomrectangle In-Reply-To: Message-ID: On Jan 7, 2005, at 10:39 AM, Abe Gillespie wrote: > Yes, I've seen this, thank you. But is there anything specific to > Mapscript? I.e. you mentioned mapscript.rectObj(x_min, y_min, x_max, > y_max, 1) has changed. Is there any way of knowing this besides going > through and comparing each method and property on each class? > > -Abe > If I didn't note the change to the rectObj constructor in HISTORY.TXT, that's my mistake. Every other change should be in there, and I don't recall any others that will break Python/Perl/etc scripts. We take that seriously. I don't think that the PHP mapscript usage has changed at all. Sean From agillesp at VT.EDU Fri Jan 7 09:59:34 2005 From: agillesp at VT.EDU (Abe Gillespie) Date: Fri, 7 Jan 2005 12:59:34 -0500 Subject: Assign special dbf to shapefile In-Reply-To: <55dd01fa050107093111b6a78c@mail.gmail.com> Message-ID: Actually, I just somewhat detailed the process of doing external queries and then linking them into MapServer just yesterday. See the thread titled "MySQL or Oracle queries..." if you're curious. -Abe On Jan 7, 2005, at 12:31 PM, Ken Lord wrote: > This definately calls for PostGIS, and I'm sure it would process the > request much faster. > > But, > > Why not use the join object in mapserver? > > http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#join > > Or is this join system, that was broken i think after mapserver 3.4, > still not functional? ... and if it is still not functional why have > the instructions remained in the current documentation for the last 2 > years+ ... since at least mapserver 3.6? > > There is another option: > > Don't join the data on-the-fly. Instead when the user queries the > airport, have a link parsed in the query results that when followed > displays the attribute data you want based on the query results > returned. ... A little ASP works wonders here to take a mapserver > query result and query another database with it. > > Cheers, > Ken > > On Fri, 7 Jan 2005 10:22:02 -0500, Stephen Woodbridge > wrote: >> The only way that I know of to do runtime joins in mapserver is to use >> PostGIS. You might be able to do something with gdal, but I think it >> is >> very slow. I have requested support for runtime shapefile joins to >> either DBF or MySQL multiple times and nothing has happened in that >> direction. Basically, it would be very slow because for each object in >> the shapefile, you would have to scan the whole DBF file, because >> there >> are no indexes support for DBF files, or the developers would have to >> build DBF indexing support into mapserver. For Mysql, you could index >> the columns, but you would still need to make a separate query for >> every >> object in the shapefile. >> >> In PostGIS, since you have all the data in the database to start with >> you can make one query for the layer and do the join in that query, >> then >> you only have to fetch back the objects to render. >> >> -Steve W. >> >> Holger Floerke wrote: >>> Hi Jacob, >>> >>> >>>> Why would you not want to join them? >>> >>> If the information I would like to present is evaluated at runtime, >>> I have >>> to produce a full set of ".shp", ".dbf", "sbx", "sbn", and ".shx" >>> files. The >>> shapes always stays the same, but the data is extracted from a >>> database on a >>> user's query. I would like to save space by not copying the shape >>> information every time. >>> >>> >>>> unless if you created a join on a dbf, and accessed it separately. >>> >>> Is it possible to join external data sources (one or more dbf-files >>> or >>> oci-sources) to shape files at runtime with the mapserver-api? >>> >>> HolgeR >>> >>> >>> Jacob Delfos schrieb: >>> >>> >>>> Holger, >>>> >>>> Correct me if I'm wrong, but that would be redefining the >>>> definition of >>>> a shapefile. As far as I know, a "shapefile" is not the .shp file, >>>> but >>>> the collection of ".shp", ".dbf", "sbx", "sbn", and ".shx" files. I >>>> think you'd have to seriously hack the source of mapserver to do >>>> that, >>>> unless if you created a join on a dbf, and accessed it separately. >>>> >>>> Why would you not want to join them? If you have access to MS >>>> Excel, it >>>> would be as simple as copying a column across. No doubt other >>>> software >>>> can do the same thing. You would have access to both attributes in >>>> one >>>> shapefile. What is the actual problem that causes you not to want to >>>> have two shapefiles, and not to want to join the attributes? >>>> >>>> regards, >>>> >>>> Jacob >>>> >>>> >>>> -----Original Message----- >>>> From: UMN MapServer Users List >>>> To: MAPSERVER-USERS at LISTS.UMN.EDU >>>> Sent: 1/7/2005 9:03 PM >>>> Subject: [UMN_MAPSERVER-USERS] Assign special dbf to shapefile >>>> >>>> Hi all, >>>> >>>> am I able to assign a special dbf-file to a shape file? For example >>>> rendering the 'airports.shp', but using data from >>>> 'airports_passengers.dbf' >>>> and not from 'airports.dbf' (ensuring the correct order for the >>>> shape-information-mapping). Or another example, render some area >>>> shapes >>>> on >>>> the one hand with popuplation data and on the other hand with >>>> unemployment >>>> data without integrating both data sets into the dbf of the shape >>>> file >>>> and >>>> without producing two different shape-files. I use php-mapscript and >>>> mapserver 4.4. >>>> >>>> HolgeR >>>> >>> >>> > From gireddy at GMAIL.COM Fri Jan 7 09:47:44 2005 From: gireddy at GMAIL.COM (Shashi Gireddy) Date: Fri, 7 Jan 2005 11:47:44 -0600 Subject: Assign special dbf to shapefile In-Reply-To: <55dd01fa050107093111b6a78c@mail.gmail.com> Message-ID: Hi all, I have no luck when used Excel to edit dbf files (it didn't worked), after that i used dbfmanager and it worked. now my problem is i am working with alabama census and i have 67 counties, a single shape file is enough to describe all these county boundaries. Now i want to map SF1&SF3 data which is in my mysql database onto this shape file and i want generate maps based on this data. as i mailed earlier i shp2mysql.pl is giving errors for me, so i replaced use Shape with use Geo::ShapeFile, then it worked but just gave me two empty tables. Can anybody help me working with shape files with mysql. Is there any way to create a single shape object dynamically(by reading shape file) and map that to mysql data? thank you, shashi. On Fri, 7 Jan 2005 09:31:49 -0800, Ken Lord wrote: > This definately calls for PostGIS, and I'm sure it would process the > request much faster. > > But, > > Why not use the join object in mapserver? > > http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#join > > Or is this join system, that was broken i think after mapserver 3.4, > still not functional? ... and if it is still not functional why have > the instructions remained in the current documentation for the last 2 > years+ ... since at least mapserver 3.6? > > There is another option: > > Don't join the data on-the-fly. Instead when the user queries the > airport, have a link parsed in the query results that when followed > displays the attribute data you want based on the query results > returned. ... A little ASP works wonders here to take a mapserver > query result and query another database with it. > > Cheers, > Ken > > On Fri, 7 Jan 2005 10:22:02 -0500, Stephen Woodbridge > wrote: > > The only way that I know of to do runtime joins in mapserver is to use > > PostGIS. You might be able to do something with gdal, but I think it is > > very slow. I have requested support for runtime shapefile joins to > > either DBF or MySQL multiple times and nothing has happened in that > > direction. Basically, it would be very slow because for each object in > > the shapefile, you would have to scan the whole DBF file, because there > > are no indexes support for DBF files, or the developers would have to > > build DBF indexing support into mapserver. For Mysql, you could index > > the columns, but you would still need to make a separate query for every > > object in the shapefile. > > > > In PostGIS, since you have all the data in the database to start with > > you can make one query for the layer and do the join in that query, then > > you only have to fetch back the objects to render. > > > > -Steve W. > > > > Holger Floerke wrote: > > > Hi Jacob, > > > > > > > > >>Why would you not want to join them? > > > > > > If the information I would like to present is evaluated at runtime, I have > > > to produce a full set of ".shp", ".dbf", "sbx", "sbn", and ".shx" files. The > > > shapes always stays the same, but the data is extracted from a database on a > > > user's query. I would like to save space by not copying the shape > > > information every time. > > > > > > > > >>unless if you created a join on a dbf, and accessed it separately. > > > > > > Is it possible to join external data sources (one or more dbf-files or > > > oci-sources) to shape files at runtime with the mapserver-api? > > > > > > HolgeR > > > > > > > > > Jacob Delfos schrieb: > > > > > > > > >>Holger, > > >> > > >>Correct me if I'm wrong, but that would be redefining the definition of > > >>a shapefile. As far as I know, a "shapefile" is not the .shp file, but > > >>the collection of ".shp", ".dbf", "sbx", "sbn", and ".shx" files. I > > >>think you'd have to seriously hack the source of mapserver to do that, > > >>unless if you created a join on a dbf, and accessed it separately. > > >> > > >>Why would you not want to join them? If you have access to MS Excel, it > > >>would be as simple as copying a column across. No doubt other software > > >>can do the same thing. You would have access to both attributes in one > > >>shapefile. What is the actual problem that causes you not to want to > > >>have two shapefiles, and not to want to join the attributes? > > >> > > >>regards, > > >> > > >>Jacob > > >> > > >> > > >>-----Original Message----- > > >>From: UMN MapServer Users List > > >>To: MAPSERVER-USERS at LISTS.UMN.EDU > > >>Sent: 1/7/2005 9:03 PM > > >>Subject: [UMN_MAPSERVER-USERS] Assign special dbf to shapefile > > >> > > >>Hi all, > > >> > > >>am I able to assign a special dbf-file to a shape file? For example > > >>rendering the 'airports.shp', but using data from > > >>'airports_passengers.dbf' > > >>and not from 'airports.dbf' (ensuring the correct order for the > > >>shape-information-mapping). Or another example, render some area shapes > > >>on > > >>the one hand with popuplation data and on the other hand with > > >>unemployment > > >>data without integrating both data sets into the dbf of the shape file > > >>and > > >>without producing two different shape-files. I use php-mapscript and > > >>mapserver 4.4. > > >> > > >>HolgeR > > >> > > > > > > > -- Shashi Kiran Reddy. Gireddy, Graduate Assistant, CBER, University of Alabama. http://www.cs.ua.edu/shashi Home: 205-752-5137 Cell: 205-657-1438 From LuckyEddie at GMX.NET Fri Jan 7 09:57:10 2005 From: LuckyEddie at GMX.NET (Frank Ehlers) Date: Fri, 7 Jan 2005 18:57:10 +0100 Subject: Fwd: [UMN_MAPSERVER-USERS] NetCDF via OpenDAP/DODS into mapserv Message-ID: Hi again! I am sorry for reposting my last email. Is the question too stupid? Or is there an example I have not found? Please, give me some hints. Thank you very much in advance, Frank --- Weitergeleitete Nachricht / Forwarded Message --- Date: Thu, 30 Dec 2004 15:42:51 -0600 From: Frank Ehlers To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] NetCDF via OpenDAP/DODS into mapserv Hi! I have tried to display the content of a NetCDF .nc file with MAPSERVER. The DODS seems to work: If I am using ogrinfo with appropriate parameters on DODS:http//..allnetworkstuff..file.nc?Depth[1,1,10][1,1,1] (or was it Depth[1:1:10][1:1:10] ? Sorry, I cannot remember at the moment) I see the following kind of output for the 10 items I requested: lat .... some_value_lat lon .... some_value_lon Depth .... some_value_depth POINT (some_value_lon some_value_lat) Now, my ideas was to display the depth chart via mapserver. The only examples I found have lines of code like these: CONNECTION ....(like the input for ogrinfo, but with 1000 times 1000 values) TYPE POINT DATA "Depth" CLASS COLOR 255 0 0 END All I see in the web browser (after putting the correct latlong values into the map file to view the area the latlong values specify in the NetCDF file) is then a rectangular area filled with red points. That makes me believe that in principle the connection, the .nc NetCDF file and the map file are ok. My QUESTION: How can I plot an image (color coded depth values) with this method? It would be great if anyone could help me here(e.g. some example code)! Best regards, Frank -- +++ GMX - die erste Adresse f?r Mail, Message, More +++ 1 GB Mailbox bereits in GMX FreeMail http://www.gmx.net/de/go/mail From siki at AGT.BME.HU Fri Jan 7 12:11:18 2005 From: siki at AGT.BME.HU (Siki Zoltan) Date: Fri, 7 Jan 2005 19:11:18 -0100 Subject: Installation Problem - error while loading shared libraries {Scanned} {Scanned} In-Reply-To: <35EAD97A78C12A49845DA667FA6DB0C712D3EC@whistler.claero.local> Message-ID: Hi, you can use ldd command to see what shared libraries are mapserv depend on: ldd mapserv check the directories and files. You may add some directories to the /etc/ld.so.conf file. Don't forget to reread the config file with ldconfig bye Zoltan On Fri, 7 Jan 2005, Craig Nakamoto wrote: > Hello, > > I am a new user to MapServer and all my test development has occurred on > my local Windows machine. Now I want to create a UNIX MapServer > environment and I am using Red Hat Enterprise v3. > > I have reached the point of compiling MapServer itself and I use the > following configure options: > > sudo ./configure --with-proj --with-php=/usr/include/php > > Everything seems to work fine, and 'configure' locates all the required, > and my requested, optional components (many of which I compiled instead > of using RPMs). > > Then I do a 'make' and it looks like it works but when I try to execute > the mapserv binary I get: > > [claero at cw2000 mapserver-4.4.1]$ ./mapserv > ./mapserv: error while loading shared libraries: libgd.so.2: cannot open > shared object file: No such file or directory > > The documentation says that 'something has gone horribly wrong' and to > email this group. Any help would be greatly appreciated. > > In the configure output here is the excerpt regarding GD: > > configure: checking for GD 2.0.12 or higher... > checking for gdImageSetAntiAliased in -lgd... yes > checking for gdImageSetAntiAliased in -lgd... (cached) yes > using libgd 2.0.12 (or higher) from system libs > (-L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -lz ). > checking for gdImageCreate in -lgd... yes > checking for gdImageGif in -lgd... yes > checking for gdImagePng in -lgd... yes > checking for gdImageJpeg in -lgd... yes > checking for gdImageWBMP in -lgd... yes > checking for gdImageStringFT in -lgd... yes > checking for gdImageGifPtr in -lgd... yes > checking for gdFontGetTiny in -lgd... yes > using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP > -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS) from system > libs. > > Thanks! > > Craig > ______________________________________ > Craig Nakamoto, Senior Consultant > IT Consulting and Services for Your Business > Claero Systems | www.claero.com > (403) 242-2667 x105 (phone) > (403) 261-0718 (fax) > From siki at AGT.BME.HU Fri Jan 7 12:16:37 2005 From: siki at AGT.BME.HU (Siki Zoltan) Date: Fri, 7 Jan 2005 19:16:37 -0100 Subject: Assign special dbf to shapefile {Scanned} In-Reply-To: Message-ID: Hi, It is possible to join a shape to an external dbf (see JOIN in the map file reference), but as far as I know it works in query mode only :( Bye Zoltan On Fri, 7 Jan 2005, Holger Floerke wrote: > Hi Jacob, > > > Why would you not want to join them? > If the information I would like to present is evaluated at runtime, I have > to produce a full set of ".shp", ".dbf", "sbx", "sbn", and ".shx" files. The > shapes always stays the same, but the data is extracted from a database on a > user's query. I would like to save space by not copying the shape > information every time. > > > unless if you created a join on a dbf, and accessed it separately. > Is it possible to join external data sources (one or more dbf-files or > oci-sources) to shape files at runtime with the mapserver-api? > > HolgeR > > > Jacob Delfos schrieb: > > > Holger, > > > > Correct me if I'm wrong, but that would be redefining the definition of > > a shapefile. As far as I know, a "shapefile" is not the .shp file, but > > the collection of ".shp", ".dbf", "sbx", "sbn", and ".shx" files. I > > think you'd have to seriously hack the source of mapserver to do that, > > unless if you created a join on a dbf, and accessed it separately. > > > > Why would you not want to join them? If you have access to MS Excel, it > > would be as simple as copying a column across. No doubt other software > > can do the same thing. You would have access to both attributes in one > > shapefile. What is the actual problem that causes you not to want to > > have two shapefiles, and not to want to join the attributes? > > > > regards, > > > > Jacob > > > > > > -----Original Message----- > > From: UMN MapServer Users List > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Sent: 1/7/2005 9:03 PM > > Subject: [UMN_MAPSERVER-USERS] Assign special dbf to shapefile > > > > Hi all, > > > > am I able to assign a special dbf-file to a shape file? For example > > rendering the 'airports.shp', but using data from > > 'airports_passengers.dbf' > > and not from 'airports.dbf' (ensuring the correct order for the > > shape-information-mapping). Or another example, render some area shapes > > on > > the one hand with popuplation data and on the other hand with > > unemployment > > data without integrating both data sets into the dbf of the shape file > > and > > without producing two different shape-files. I use php-mapscript and > > mapserver 4.4. > > > > HolgeR > > > From danp at AMERICANCLEARINGHOUSE.COM Fri Jan 7 11:22:09 2005 From: danp at AMERICANCLEARINGHOUSE.COM (Dan Phillips) Date: Fri, 7 Jan 2005 14:22:09 -0500 Subject: Labels Not Displayed In-Reply-To: Message-ID: I'm new to Mapserver and am having trouble getting labels to display on my map. Everything works fine... no errors, just no labels. The text from my map file is below. Any ideas on what might be wrong? Thank you, Dan IMAGETYPE jpeg SIZE 800 600 SYMBOLSET "c:/ms4w/etc/symbols_mapinfo.sym" FONTSET "C:/ms4w/Apache/htdocs/fonts/fonts.list" STATUS ON EXTENT 610004 4227375 636669 4247374 UNITS METERS SHAPEPATH "/test/" IMAGECOLOR 255 255 255 WEB TEMPLATE "C:/ms4w/Apache/htdocs/test/40242.html" IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL '/ms_tmp/' END PROJECTION "init=epsg:26916" END LAYER NAME "KYJeffW" Type LINE PROJECTION "init=epsg:4326" END STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "R:/STREETS/KY/WATER.TAB" STYLEITEM "Auto" CLASS NAME "2" END END LAYER NAME "Streets" Type LINE PROJECTION "init=epsg:4326" END STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "R:/STREETS/KY/STREETS.TAB" STYLEITEM "Auto" LABELITEM "name" LABELMAXSCALE 30000 CLASS Name 'road_labels' LABEL TYPE TRUETYPE FONT "arial" SIZE 7 MINSIZE 4 MAXSIZE 256 POSITION CC ANGLE AUTO BUFFER 2 MINDISTANCE 150 MINFEATURESIZE 20 COLOR 100 50 0 SHADOWCOLOR 0 0 0 SHADOWSIZE 0 0 PARTIALS FALSE END END # Class END END From woodbri at SWOODBRIDGE.COM Fri Jan 7 11:44:05 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 7 Jan 2005 14:44:05 -0500 Subject: Assign special dbf to shapefile In-Reply-To: <55dd01fa050107093111b6a78c@mail.gmail.com> Message-ID: The issue is that you can not do joins to classify data when drawing maps if you use shapefiles. JOIN works fine with queries. I have all the tiger data in shapefile (16 GB of data) and all of the Census Summary File 1 and 3 data in MySQL (101 GB, plus a lot more for indexes). I would like to draw thematic maps of the US based on these datasets. Moving all this data to PostGIS, is possible but a huge task, not to mention I would have to learn a new DB and how to administer it. I will probably end up doing this at some point when the need is higher. Meanwhile, this is basically what others are trying to do also. It is just a HUGE step to move from shapefiles and MySQL to managing everything in PostGIS. Still hoping Steve Lime will take pity on me, but not holding my breath. -Steve Ken Lord wrote: > This definately calls for PostGIS, and I'm sure it would process the > request much faster. > > But, > > Why not use the join object in mapserver? > > http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#join > > Or is this join system, that was broken i think after mapserver 3.4, > still not functional? ... and if it is still not functional why have > the instructions remained in the current documentation for the last 2 > years+ ... since at least mapserver 3.6? > > There is another option: > > Don't join the data on-the-fly. Instead when the user queries the > airport, have a link parsed in the query results that when followed > displays the attribute data you want based on the query results > returned. ... A little ASP works wonders here to take a mapserver > query result and query another database with it. > > Cheers, > Ken > > On Fri, 7 Jan 2005 10:22:02 -0500, Stephen Woodbridge > wrote: > >>The only way that I know of to do runtime joins in mapserver is to use >>PostGIS. You might be able to do something with gdal, but I think it is >>very slow. I have requested support for runtime shapefile joins to >>either DBF or MySQL multiple times and nothing has happened in that >>direction. Basically, it would be very slow because for each object in >>the shapefile, you would have to scan the whole DBF file, because there >>are no indexes support for DBF files, or the developers would have to >>build DBF indexing support into mapserver. For Mysql, you could index >>the columns, but you would still need to make a separate query for every >>object in the shapefile. >> >>In PostGIS, since you have all the data in the database to start with >>you can make one query for the layer and do the join in that query, then >>you only have to fetch back the objects to render. >> >>-Steve W. >> >>Holger Floerke wrote: >> >>>Hi Jacob, >>> >>> >>> >>>>Why would you not want to join them? >>> >>>If the information I would like to present is evaluated at runtime, I have >>>to produce a full set of ".shp", ".dbf", "sbx", "sbn", and ".shx" files. The >>>shapes always stays the same, but the data is extracted from a database on a >>>user's query. I would like to save space by not copying the shape >>>information every time. >>> >>> >>> >>>>unless if you created a join on a dbf, and accessed it separately. >>> >>>Is it possible to join external data sources (one or more dbf-files or >>>oci-sources) to shape files at runtime with the mapserver-api? >>> >>>HolgeR >>> >>> >>>Jacob Delfos schrieb: >>> >>> >>> >>>>Holger, >>>> >>>>Correct me if I'm wrong, but that would be redefining the definition of >>>>a shapefile. As far as I know, a "shapefile" is not the .shp file, but >>>>the collection of ".shp", ".dbf", "sbx", "sbn", and ".shx" files. I >>>>think you'd have to seriously hack the source of mapserver to do that, >>>>unless if you created a join on a dbf, and accessed it separately. >>>> >>>>Why would you not want to join them? If you have access to MS Excel, it >>>>would be as simple as copying a column across. No doubt other software >>>>can do the same thing. You would have access to both attributes in one >>>>shapefile. What is the actual problem that causes you not to want to >>>>have two shapefiles, and not to want to join the attributes? >>>> >>>>regards, >>>> >>>>Jacob >>>> >>>> >>>>-----Original Message----- >>>>From: UMN MapServer Users List >>>>To: MAPSERVER-USERS at LISTS.UMN.EDU >>>>Sent: 1/7/2005 9:03 PM >>>>Subject: [UMN_MAPSERVER-USERS] Assign special dbf to shapefile >>>> >>>>Hi all, >>>> >>>>am I able to assign a special dbf-file to a shape file? For example >>>>rendering the 'airports.shp', but using data from >>>>'airports_passengers.dbf' >>>>and not from 'airports.dbf' (ensuring the correct order for the >>>>shape-information-mapping). Or another example, render some area shapes >>>>on >>>>the one hand with popuplation data and on the other hand with >>>>unemployment >>>>data without integrating both data sets into the dbf of the shape file >>>>and >>>>without producing two different shape-files. I use php-mapscript and >>>>mapserver 4.4. >>>> >>>>HolgeR >>>> >>> >>> > From sgillies at FRII.COM Fri Jan 7 12:00:55 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Fri, 7 Jan 2005 13:00:55 -0700 Subject: Assign special dbf to shapefile In-Reply-To: Message-ID: Steve, Moving to PostGIS wouldn't be as hard as you think. There are many of us who will be glad to help you out. Another better possibility is trying to light a fire under the MapServer/MySQL developer so that you can move your shapes into MySQL. I'm not even talking about a PostGIS-ish library for MySQL, just putting features in as a blob that can be extracted and converted to MapServer shapes for rendering, and spatial indexes. Sean On Jan 7, 2005, at 12:44 PM, Stephen Woodbridge wrote: > The issue is that you can not do joins to classify data when drawing > maps if you use shapefiles. JOIN works fine with queries. > > I have all the tiger data in shapefile (16 GB of data) and all of the > Census Summary File 1 and 3 data in MySQL (101 GB, plus a lot more for > indexes). I would like to draw thematic maps of the US based on these > datasets. Moving all this data to PostGIS, is possible but a huge task, > not to mention I would have to learn a new DB and how to administer it. > I will probably end up doing this at some point when the need is > higher. > > Meanwhile, this is basically what others are trying to do also. It is > just a HUGE step to move from shapefiles and MySQL to managing > everything in PostGIS. > > Still hoping Steve Lime will take pity on me, > but not holding my breath. > -Steve > > Ken Lord wrote: >> This definately calls for PostGIS, and I'm sure it would process the >> request much faster. >> >> But, >> >> Why not use the join object in mapserver? >> >> http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#join >> >> Or is this join system, that was broken i think after mapserver 3.4, >> still not functional? ... and if it is still not functional why have >> the instructions remained in the current documentation for the last 2 >> years+ ... since at least mapserver 3.6? >> >> There is another option: >> >> Don't join the data on-the-fly. Instead when the user queries the >> airport, have a link parsed in the query results that when followed >> displays the attribute data you want based on the query results >> returned. ... A little ASP works wonders here to take a mapserver >> query result and query another database with it. >> >> Cheers, >> Ken >> >> On Fri, 7 Jan 2005 10:22:02 -0500, Stephen Woodbridge >> wrote: >> >>> The only way that I know of to do runtime joins in mapserver is to >>> use >>> PostGIS. You might be able to do something with gdal, but I think it >>> is >>> very slow. I have requested support for runtime shapefile joins to >>> either DBF or MySQL multiple times and nothing has happened in that >>> direction. Basically, it would be very slow because for each object >>> in >>> the shapefile, you would have to scan the whole DBF file, because >>> there >>> are no indexes support for DBF files, or the developers would have to >>> build DBF indexing support into mapserver. For Mysql, you could index >>> the columns, but you would still need to make a separate query for >>> every >>> object in the shapefile. >>> >>> In PostGIS, since you have all the data in the database to start with >>> you can make one query for the layer and do the join in that query, >>> then >>> you only have to fetch back the objects to render. >>> >>> -Steve W. >>> >>> Holger Floerke wrote: >>> >>>> Hi Jacob, >>>> >>>> >>>> >>>>> Why would you not want to join them? >>>> >>>> If the information I would like to present is evaluated at runtime, >>>> I have >>>> to produce a full set of ".shp", ".dbf", "sbx", "sbn", and ".shx" >>>> files. The >>>> shapes always stays the same, but the data is extracted from a >>>> database on a >>>> user's query. I would like to save space by not copying the shape >>>> information every time. >>>> >>>> >>>> >>>>> unless if you created a join on a dbf, and accessed it separately. >>>> >>>> Is it possible to join external data sources (one or more dbf-files >>>> or >>>> oci-sources) to shape files at runtime with the mapserver-api? >>>> >>>> HolgeR >>>> >>>> >>>> Jacob Delfos schrieb: >>>> >>>> >>>> >>>>> Holger, >>>>> >>>>> Correct me if I'm wrong, but that would be redefining the >>>>> definition of >>>>> a shapefile. As far as I know, a "shapefile" is not the .shp file, >>>>> but >>>>> the collection of ".shp", ".dbf", "sbx", "sbn", and ".shx" files. I >>>>> think you'd have to seriously hack the source of mapserver to do >>>>> that, >>>>> unless if you created a join on a dbf, and accessed it separately. >>>>> >>>>> Why would you not want to join them? If you have access to MS >>>>> Excel, it >>>>> would be as simple as copying a column across. No doubt other >>>>> software >>>>> can do the same thing. You would have access to both attributes in >>>>> one >>>>> shapefile. What is the actual problem that causes you not to want >>>>> to >>>>> have two shapefiles, and not to want to join the attributes? >>>>> >>>>> regards, >>>>> >>>>> Jacob >>>>> >>>>> >>>>> -----Original Message----- >>>>> From: UMN MapServer Users List >>>>> To: MAPSERVER-USERS at LISTS.UMN.EDU >>>>> Sent: 1/7/2005 9:03 PM >>>>> Subject: [UMN_MAPSERVER-USERS] Assign special dbf to shapefile >>>>> >>>>> Hi all, >>>>> >>>>> am I able to assign a special dbf-file to a shape file? For example >>>>> rendering the 'airports.shp', but using data from >>>>> 'airports_passengers.dbf' >>>>> and not from 'airports.dbf' (ensuring the correct order for the >>>>> shape-information-mapping). Or another example, render some area >>>>> shapes >>>>> on >>>>> the one hand with popuplation data and on the other hand with >>>>> unemployment >>>>> data without integrating both data sets into the dbf of the shape >>>>> file >>>>> and >>>>> without producing two different shape-files. I use php-mapscript >>>>> and >>>>> mapserver 4.4. >>>>> >>>>> HolgeR >>>>> >>>> >>>> >> > From nhv at CAPE.COM Fri Jan 7 12:11:54 2005 From: nhv at CAPE.COM (Norman Vine) Date: Fri, 7 Jan 2005 15:11:54 -0500 Subject: Assign special dbf to shapefile In-Reply-To: <41DEE685.6020702@swoodbridge.com> Message-ID: Stephen Woodbridge writes: > > The issue is that you can not do joins to classify data when drawing > maps if you use shapefiles. JOIN works fine with queries. What would be nice to have is a 'virtual' query that would render a 'virtual' data set. We have the GDAL ".vrt" data mechanism what is missing is the equivalant 'query' mechanism to create these dynamically from something only the developer of the site knows about. Of course there is always mapscript which allows you to do this and *much* more :-) Cheers Norman From siki at AGT.BME.HU Fri Jan 7 14:56:05 2005 From: siki at AGT.BME.HU (Siki Zoltan) Date: Fri, 7 Jan 2005 21:56:05 -0100 Subject: Labels Not Displayed {Scanned} In-Reply-To: Message-ID: Hi, Try to change TYPE LINE to TYPE ANNOTATION. Another notice, why do you use STYLEITEM AUTO if you specify style for the labels? Bye Zoltan On Fri, 7 Jan 2005, Dan Phillips wrote: > I'm new to Mapserver and am having trouble getting labels to display on my > map. Everything works fine... no errors, just no labels. The text from my > map file is below. Any ideas on what might be wrong? > > Thank you, > > Dan > > > IMAGETYPE jpeg > SIZE 800 600 > SYMBOLSET "c:/ms4w/etc/symbols_mapinfo.sym" > FONTSET "C:/ms4w/Apache/htdocs/fonts/fonts.list" > STATUS ON > EXTENT 610004 4227375 636669 4247374 > UNITS METERS > SHAPEPATH "/test/" > IMAGECOLOR 255 255 255 > > WEB > TEMPLATE "C:/ms4w/Apache/htdocs/test/40242.html" > IMAGEPATH "/ms4w/tmp/ms_tmp/" > IMAGEURL '/ms_tmp/' > END > > PROJECTION > "init=epsg:26916" > END > > LAYER > NAME "KYJeffW" > Type LINE > > PROJECTION > "init=epsg:4326" > END > > STATUS DEFAULT > CONNECTIONTYPE OGR > CONNECTION "R:/STREETS/KY/WATER.TAB" > STYLEITEM "Auto" > CLASS > NAME "2" > END > END > > LAYER > NAME "Streets" > Type LINE > > PROJECTION > "init=epsg:4326" > END > > STATUS DEFAULT > CONNECTIONTYPE OGR > CONNECTION "R:/STREETS/KY/STREETS.TAB" > STYLEITEM "Auto" > > LABELITEM "name" > LABELMAXSCALE 30000 > CLASS > Name 'road_labels' > LABEL > TYPE TRUETYPE > FONT "arial" > SIZE 7 > MINSIZE 4 > MAXSIZE 256 > POSITION CC > ANGLE AUTO > BUFFER 2 > MINDISTANCE 150 > MINFEATURESIZE 20 > COLOR 100 50 0 > SHADOWCOLOR 0 0 0 > SHADOWSIZE 0 0 > PARTIALS FALSE > END > END # Class > > END > > END > From floerke at DOCTRONIC.DE Sat Jan 8 04:56:34 2005 From: floerke at DOCTRONIC.DE (Holger Floerke) Date: Sat, 8 Jan 2005 06:56:34 -0600 Subject: Assign special dbf to shapefile Message-ID: Hi Jacob, > Do you need to be able to access the different kinds of information at the > same time? Yes, I talk about an intranet solution with many users querying different kind of information at the same time. > Accessing DBF's with PHP is very easy. I know. I am very familia with php and get more and more familiar with mapscript ;^) > ...could create X amount of copies of the shapefiles ... That's what I try to avoid. In this intranet solution I can't define an upper bound of shapefile copies, because users can query in parallel or view more than one map at the same time. Thanks for your suggestion. HolgeR Jacob Delfos schrieb: > Hi Holger, > > Do you need to be able to access the different kinds of information at the > same time? So in other words, do two ore more kinds of information need to > exist at the same time? Or do the attributes of your shapefile only need to > have one particular value at a time? If you only need to have one value at a > time, I think it would be best if you used PHP to access the DBF, and wrote > the values to the DBF, without renaming the DBF, and without trying to > associate the .shp file with a different DBF. Depending on how many > different 'versions' of the shapefile you need to have at the same time, you > could create X amount of copies of the shapefiles, and change the associated > DBF's at runtime, without having to create more .shp files. Accessing DBF's > with PHP is very easy. > > Does that make sense? > > regards, > > Jacob > > -----Original Message----- > From: UMN MapServer Users List > To: MAPSERVER-USERS at LISTS.UMN.EDU > Sent: 1/7/2005 11:08 PM > Subject: Re: [UMN_MAPSERVER-USERS] Assign special dbf to shapefile > > Hi Jacob, > > >>Why would you not want to join them? > > If the information I would like to present is evaluated at runtime, I > have > to produce a full set of ".shp", ".dbf", "sbx", "sbn", and ".shx" files. > The > shapes always stays the same, but the data is extracted from a database > on a > user's query. I would like to save space by not copying the shape > information every time. > > >>unless if you created a join on a dbf, and accessed it separately. > > Is it possible to join external data sources (one or more dbf-files or > oci-sources) to shape files at runtime with the mapserver-api? > > HolgeR From floerke at DOCTRONIC.DE Sat Jan 8 05:03:05 2005 From: floerke at DOCTRONIC.DE (Holger Floerke) Date: Sat, 8 Jan 2005 07:03:05 -0600 Subject: Assign special dbf to shapefile Message-ID: Hi Siki, > It is possible to join a shape to an external dbf (see JOIN in the map > file reference), but as far as I know it works in query mode only :( When I saw this JOIN attribute in the mapfile documentation, I tought of the solution of my problem, too. But then I looked at the documentation and was some kind of dissapointed. I would like to use the data within the expression field of my (dynamically created) classes. In spite of everything thanks for your answer. HolgeR Siki Zoltan schrieb: > Hi, > > > It is possible to join a shape to an external dbf (see JOIN in the map > file reference), but as far as I know it works in query mode only :( > > Bye > Zoltan > > On Fri, 7 Jan 2005, Holger Floerke wrote: > > >>Hi Jacob, >> >> >>>Why would you not want to join them? >> >>If the information I would like to present is evaluated at runtime, I have >>to produce a full set of ".shp", ".dbf", "sbx", "sbn", and ".shx" files. The >>shapes always stays the same, but the data is extracted from a database on a >>user's query. I would like to save space by not copying the shape >>information every time. >> >> >>>unless if you created a join on a dbf, and accessed it separately. >> >>Is it possible to join external data sources (one or more dbf-files or >>oci-sources) to shape files at runtime with the mapserver-api? >> >>HolgeR From floerke at DOCTRONIC.DE Sat Jan 8 05:11:37 2005 From: floerke at DOCTRONIC.DE (Holger Floerke) Date: Sat, 8 Jan 2005 07:11:37 -0600 Subject: Assign special dbf to shapefile Message-ID: Hi Stephen, > The only way that I know of to do runtime joins in mapserver is to use > PostGIS. MMh, maybe I can you PostGIS, but I have to put all the shapes into the database, too. > Basically, it would be very slow because for each object in > the shapefile, you would have to scan the whole DBF file, because there > are no indexes support for DBF files, If you use PHP-Mapscript you can produce joined dbf-files very easily. If you have enough memory, you can extract all additional data from the external database and build a map from the Join-Value of this query to the whole data row. Then you will be able to iterate through the shape-dbf, looking for the data row by using the main memory index and write the complete row (shape-data and query-data) to a new dbf. Thanks for your suggestion, I think it would be the only way to join the external data sources without copying the shape files. But I will have a look at the mapscript sources. Maybe I can do a "Layer->setDBF(filename)" or something like that. HolgeR Stephen Woodbridge schrieb: > The only way that I know of to do runtime joins in mapserver is to use > PostGIS. You might be able to do something with gdal, but I think it is > very slow. I have requested support for runtime shapefile joins to > either DBF or MySQL multiple times and nothing has happened in that > direction. Basically, it would be very slow because for each object in > the shapefile, you would have to scan the whole DBF file, because there > are no indexes support for DBF files, or the developers would have to > build DBF indexing support into mapserver. For Mysql, you could index > the columns, but you would still need to make a separate query for every > object in the shapefile. > > In PostGIS, since you have all the data in the database to start with > you can make one query for the layer and do the join in that query, then > you only have to fetch back the objects to render. > > -Steve W. > > Holger Floerke wrote: > >> Hi Jacob, >> >> >>> Why would you not want to join them? >> From richard.greenwood at GMAIL.COM Sat Jan 8 06:58:48 2005 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Sat, 8 Jan 2005 07:58:48 -0700 Subject: Assign special dbf to shapefile In-Reply-To: Message-ID: On Fri, 7 Jan 2005 07:03:52 -0600, Holger Floerke wrote: > Hi all, > > am I able to assign a special dbf-file to a shape file? For example > rendering the 'airports.shp', but using data from 'airports_passengers.dbf' > and not from 'airports.dbf' (ensuring the correct order for the > shape-information-mapping). Or another example, render some area shapes on > the one hand with popuplation data and on the other hand with unemployment > data without integrating both data sets into the dbf of the shape file and > without producing two different shape-files. I use php-mapscript and > mapserver 4.4. > > HolgeR > Mapserver supports a limited join which allows you to display attribute data from the joined table, but not use data in the joined table for labels, queries of classification. You should check out OGR joins: http://gdal.maptools.org/ogr/ogr_sql.html The OGR join allows you to classify and label from the joined data, but fields in the joined table can not be used in queries. Syntax looks something like this: DATA "SELECT * FROM shapeFile LEFT JOIN 'dbfFile.dbf'.listing ON shapeFile.id = dbfFile.id" It is very slow without indexes, but OGR does support indexes, e.g. ogrinfo -ro dbfFile -sql "create index on listing using id" Even with indexes, a large table may be to slow, so I would recommend postgis for larger tables. Regards, -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From andy_canfield at HOTMAIL.COM Sat Jan 8 07:44:19 2005 From: andy_canfield at HOTMAIL.COM (ANDY CANFIELD) Date: Sat, 8 Jan 2005 07:44:19 -0800 Subject: Subscribe not working In-Reply-To: Message-ID: Thanks all. I finally got it apparently you need to separate your first and last name with a space IE Andy Canfield vice AndyCanfield or it keeps not registering you. It gives you an error but it still sends a confirm message when you click the confirm message it gives you another massage and then when you check your status you aren't registered. You have to go back to the very first entry and make sure the name is a first amd last name with a space between and then it works fine. After I make sure all the e-mails are getting to the gmail account I'll undo this one. I was just trying to switch all my lists and groups to the gmail where I can tag them. I've got 6 invites again if anybody wants to have a gmail account just e-mail me at this account and not the entire list so we don't clog up the database with a bunch of off topic gmail requests. Thanks, Andy >From: Richard Greenwood >Reply-To: Richard Greenwood >To: ANDY CANFIELD >Subject: Re: [UMN_MAPSERVER-USERS] Subscribe not working >Date: Sat, 8 Jan 2005 07:19:46 -0700 > >Does this work: > http://lists.umn.edu/cgi-bin/wa?SUBED1=mapserver-users&A=1 > > >On Fri, 7 Jan 2005 08:33:29 -0800, ANDY CANFIELD > wrote: > > I am trying to subscribe my gmail account to this list and I'm having no > > luck. Can somebody point me to the correct place to add myself? >Following > > the links on the mapserver page I end up in a ListServ interface that >says > > there are no groups on this server when I try and subscribe. Any help >would > > be appreciated. > > > > >-- >Richard Greenwood >richard.greenwood at gmail.com >www.greenwoodmap.com From fwarmerdam at GMAIL.COM Sat Jan 8 10:06:52 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Sat, 8 Jan 2005 13:06:52 -0500 Subject: NetCDF via OpenDAP/DODS into mapserv In-Reply-To: Message-ID: On Thu, 30 Dec 2004 15:42:51 -0600, Frank Ehlers wrote: ... > All I see in the web browser (after putting the correct latlong values into > the map file to view the area the latlong values specify in the NetCDF > file) is then a rectangular area filled with red points. That makes me > believe that in principle the connection, the .nc NetCDF file and the map > file are ok. Eddie, Cool, I think you are past the hard part at least. > My QUESTION: > How can I plot an image (color coded depth values) with this method? > > It would be great if anyone could help me here(e.g. some example code)! You will need to make a CLASS declaration for each color you want in your color ramp, classified on the basis of your depth variable. Lots of CLASSes like this: CLASS NAME "10 - 20" EXPRESSION "([DEPTH] > 10 and [DEPTH] < 20)" COLOR 0 0 255 END Unfortunately, there isn't really any mechanism in MapServer to color features based on a colorbar using some attribute scaled to the color bar. Hopefully that can be added at some point. PS. Don't exactly trust what I have typed. I haven't tried this too recently. But it should give you an idea and you can dig around in the mapfile reference and other examples for additional details. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From mapserver_konf at CENTRUM.SK Sat Jan 8 12:33:08 2005 From: mapserver_konf at CENTRUM.SK (Ing.Peter Misovic) Date: Sat, 8 Jan 2005 21:33:08 +0100 Subject: OT : syntax file for vi/vim Message-ID: Hallo all, please, how can i run it ? what must i to do for it ? http://mapserver.gis.umn.edu/user_utilities/map.vim.txt Thanks, thanks, thanks PETER From ante.dfg at MOJ.NET Sun Jan 9 23:45:41 2005 From: ante.dfg at MOJ.NET (Ante Drnasin) Date: Mon, 10 Jan 2005 08:45:41 +0100 Subject: Workshop demo problem {Scanned} Message-ID: Yes the permissions are OK... It's just that the .map file(only .map) has to be in cgi-bin for everything to work...is this normal behaviour? Thanx.. -----Original Message----- From: Siki Zoltan [mailto:siki at agt.bme.hu] Sent: Friday, January 07, 2005 5:06 PM To: Ante Drnasin Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Workshop demo problem {Scanned} Hi, Try to run mapserv.exe -v from the command prompt, you should get a list of supported input, output formats, ... If it failes too, you shouls check your mapserver istallation. You may use shp2img after if it works then the problem is about web server. Bye Zoltan On Fri, 7 Jan 2005, Ante Drnasin wrote: > Hi there....we have installed mapserver 4.4.1 on Win2000, apache 1.3.33 and > php 4.3.7(as SAPI)... > > The problem started when we wanted to install the workshop demo.... > > As suggested we changed the hiden vars in index.html so it looks like this > > > value="C:/ServerRoot/workshop/itasca.map"> > > > value="C:/ServerRoot/workshop/tmp/"> > > > When clicking the initialize button the mapserv.exe crashes with message > "Memory could not be writen" .....in other case the itasca.map file could > not be found.... > > Here are some other details if needed.... > > Our server root is in c:/ServerRoot/ ....apache is installed in default > dir.... /cgi-bin/ alias points to c:/ServerRoot/cgi-bin/ where the > mapserver/bin/ directory is copied to.... > > If the browser is pointed to mapserver.exe the default message about query > string being empty is displayed.... > > Any help would be much appricited...if you need any more info just let me > know.... > -------------- next part -------------- An HTML attachment was scrubbed... URL: From flavio at TYDAC.CH Mon Jan 10 00:53:59 2005 From: flavio at TYDAC.CH (Flavio Hendry) Date: Mon, 10 Jan 2005 09:53:59 +0100 Subject: OT: NeapolJS In-Reply-To: <41DDAF1B.1010804@gmail.com> Message-ID: Hi Wouter Why don't you contact us directly ;-) ... Neapoljs is available since end of the year (August was a bit optimistic, especially as we, during development, constantly increased and improved functionality ...). We are still working on documentation, cosmetics and intall routines, however by end of January it should be completed ... Neapoljs is basically a web based content management system for various mapservers. Be aware that Neapoljs is not open source (or government financed ...) and has a price tag to it starting at 5000 EUR depending on the version. A preview of the help/doc which gives you an idea is under http://www.mapserver.ch/ms/. We integrated as well a MapSever doc which will be made publicly available as soon as we can. The first application ported to the new Neapoljs is as you mention correctly the City of Waedenswil (more apps to follow soon): http://waedenswil.mapserver.ch/stadtplan.htm Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at 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 ---------------------------------------------------------------- -----Original Message----- From: Wouter Schaubroeck To: MAPSERVER-USERS at LISTS.UMN.EDU Date: Thu, 6 Jan 2005 22:35:23 +0100 Subject: [UMN_MAPSERVER-USERS] OT: NeapolJS > Hi, > > Does anyone has some more info about the promising project called > NeapolJS by Tydac? On their site they are > announcing that the first release will be in August 2004, but their > is > nothing to find... Even the latest news is from May - June 2004. I > know > it exists, because a city > in Swiss is using > it. > > NeapolJS is a map creating - managing ... program based on mapserver > (for the moment). > > Thanks > Wouter Schaubroeck From siki at AGT.BME.HU Mon Jan 10 06:39:57 2005 From: siki at AGT.BME.HU (Siki Zoltan) Date: Mon, 10 Jan 2005 13:39:57 -0100 Subject: Workshop demo problem {Scanned} In-Reply-To: Message-ID: Hi, On Mon, 10 Jan 2005, Ante Drnasin wrote: > > Yes the permissions are OK... > > It's just that the .map file(only .map) has to be in cgi-bin for everything > to work...is this normal behaviour? Not at all, you shoud put your map file somewhere else. You have to specify full path to your map file in the url, probably you give map=your_map_file.map in the url, change it to map=/fullpath_from_root/your_map_file.map I hope this helps you, Bye Zoltan > > Thanx.. > > -----Original Message----- > From: Siki Zoltan [mailto:siki at agt.bme.hu] > Sent: Friday, January 07, 2005 5:06 PM > To: Ante Drnasin > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Workshop demo problem {Scanned} > > Hi, > > Try to run > mapserv.exe -v > from the command prompt, you should get a list of supported input, output > formats, ... > If it failes too, you shouls check your mapserver istallation. > You may use shp2img after if it works then the problem is about web > server. > > Bye > Zoltan > > On Fri, 7 Jan 2005, Ante Drnasin wrote: > > > Hi there....we have installed mapserver 4.4.1 on Win2000, apache 1.3.33 > and > > php 4.3.7(as SAPI)... > > > > The problem started when we wanted to install the workshop demo.... > > > > As suggested we changed the hiden vars in index.html so it looks like this > > > > > > > value="C:/ServerRoot/workshop/itasca.map"> > > > > > > > value="C:/ServerRoot/workshop/tmp/"> > > > > > > When clicking the initialize button the mapserv.exe crashes with message > > "Memory could not be writen" .....in other case the itasca.map file could > > not be found.... > > > > Here are some other details if needed.... > > > > Our server root is in c:/ServerRoot/ ....apache is installed in default > > dir.... /cgi-bin/ alias points to c:/ServerRoot/cgi-bin/ where the > > mapserver/bin/ directory is copied to.... > > > > If the browser is pointed to mapserver.exe the default message about query > > string being empty is displayed.... > > > > Any help would be much appricited...if you need any more info just let me > > know.... > > > From James.Shanton2 at NSCORP.COM Mon Jan 10 05:49:03 2005 From: James.Shanton2 at NSCORP.COM (Shanton, James A) Date: Mon, 10 Jan 2005 08:49:03 -0500 Subject: USGS URBAN 133 Metadata ? Message-ID: Is there a location that would give me the Metadata for the Urban 133 Orthophotoimagery ? I found these samples out there, but I can't find the Metadata for the Atlanta area extents, or other Covered areas in the US. "wms_title" "wms_extent" Thanks ! Jim --------------------------------------------------------------------------- #---USGS Portland, OR area layer--- LAYER NAME Urban133 METADATA "wms_title" "Portland Ortho 2002" "wms_extent" "-123.12987 45.241726 -122.3584 45.75648" LYRNAME "Urban133" LINK "N/A" END OFFSITE 255 255 255 GROUP "Urban133" STATUS DEFAULT TYPE RASTER CONNECTIONTYPE WMS CONNECTION "http://gisdata.usgs.net:80/servlet/com.esri.wms.Esrimap?SERVICENAME=133urba n&VERSION=1.0.0&REQUEST=map&REASPECT=false&LAYERS=UA_ORTHO_313_01&STYLES=&FO RMAT=JPEG&" PROJECTION "init=epsg:4326" #WGS 84 END END ### Oklahoma City 2002 Ortho USGS-WMS ### LAYER NAME Urban133 GROUP Imagery TYPE RASTER STATUS default MAXSCALE 500000 OFFSITE 255 255 255 CONNECTIONTYPE WMS CONNECTION "http://gisdata.usgs.net:80/servlet/com.esri.wms.Esrimap?SERVICENAME=133urba n&REASPECT=false&REQUEST=map" #MINSCALE 500 # PROJECTION "init=epsg:4326" #WGS 84 PROJECTION "init=epsg:32716" #WGS 84 END TRANSPARENCY 20 METADATA "NoID" "T" "wms_name" "UA_ORTHO_302_01" "wms_server_version" "1.0.0" "wms_format" "jpeg" "wms_title" "USGS Urban Color Ortho 2002" "wms_group_title" "Imagery" # "wms_style" END END From ed at TOPOZONE.COM Mon Jan 10 06:27:50 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 10 Jan 2005 09:27:50 -0500 Subject: Workshop demo problem {Scanned} Message-ID: No, it's not normal, and it indicates that either the permissions (for the .map file) are NOT OK, or that you're not specifying the path to the .map file. Normally the mapserv executable will look for "mymapfile.map" in the directory where mapserv itself is stored, since it doesn't know to look anywhere else. If you want to put the map elsewhere, I recommend you use a full path to it. - Ed Ed McNierney TopoZone.com ________________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ante Drnasin Sent: Monday, January 10, 2005 2:46 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Workshop demo problem {Scanned} Yes the permissions are OK... It's just that the .map file(only .map) has to be in cgi-bin for everything to work...is this normal behaviour? Thanx.. -----Original Message----- From: Siki Zoltan [mailto:siki at agt.bme.hu] Sent: Friday, January 07, 2005 5:06 PM To: Ante Drnasin Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Workshop demo problem {Scanned} Hi, Try to run mapserv.exe -v from the command prompt,? you should get a list of supported input, output formats, ... If it failes too, you shouls check your mapserver istallation. You may use shp2img after if it works then the problem is about web server. Bye Zoltan On Fri, 7 Jan 2005, Ante Drnasin wrote: > Hi there....we have installed mapserver 4.4.1 on Win2000, apache 1.3.33 and > php 4.3.7(as SAPI)... > > The problem started when we wanted to install the workshop demo.... > > As suggested we changed the hiden vars in index.html so it looks like this > > >?????? value="C:/ServerRoot/workshop/itasca.map"> >?????? >?????? >?????? value="C:/ServerRoot/workshop/tmp/"> >?????? > > When clicking the initialize button the mapserv.exe crashes with message > "Memory could not be writen" .....in other case the itasca.map file could > not be found.... > > Here are some other details if needed.... > > Our server root is in c:/ServerRoot/ ....apache is installed in default > dir.... /cgi-bin/ alias points to? c:/ServerRoot/cgi-bin/ where the > mapserver/bin/ directory is copied to.... > > If the browser is pointed to mapserver.exe the default message about query > string being empty is displayed.... > > Any help would be much appricited...if you need any more info just let me > know.... > From nhv at CAPE.COM Mon Jan 10 06:46:00 2005 From: nhv at CAPE.COM (Norman Vine) Date: Mon, 10 Jan 2005 09:46:00 -0500 Subject: USGS URBAN 133 Metadata ? In-Reply-To: Message-ID: Shanton, James A writes: > > Is there a location that would give me the > Metadata for the Urban 133 Orthophotoimagery ? > I found these samples out there, but I can't find the Metadata for the > Atlanta area extents, or other Covered areas in the US. > "wms_title" > "wms_extent" > > Thanks ! Try this < all one URL > Norman http://gisdata.usgs.net/servlet/com.esri.wms.Esrimap?WMTVER=1.1.0&LAYERS=Albuquerque01,Allentown01,Amarillo01,Amarillo02,Anchorage01 ,Atlanta01,Atlanta02,Atlanta03,Atlanta04,Atlanta05,Austin01,Baltimore01,BatonRouge01,Birmingham01,Bismarck01,Boston01,Boston02,Carso n01,Charlotte01,Charlotte02,Chattanooga01,Chicago01,Chicago02,Chicago03,Chicago04,Chicago05,Chicago06,Chicago07,Chicago08,Chicago09, Cincinnati01,Cleveland01,ColoradoSprings01,Columbus01,Dallas01,Dallas02,Dallas03,Dallas04,Denver01,Denver02,Denver03,Detroit01,Detro it02,Detroit03,El_Paso01,Fresno01,FtWayne01,Glynncnty,Harrisburg01,Houston01,Houston02,Houston03,Houston04,Houston05,Houston06,Hunts ville01,Jackson01,Jacksonville01,KansasCity01,Knoxville01,Knoxville02,Knoxville03,Laglendale01,Laglendale02,LasVegas01,Lexington01,L incoln01,Louisville01,Lubbock01,Lubbock02,Miami01,Minneapolis01,Mobile01,Modesto01,Montgomery01,Nashville01,Newark01,Newark02,Newark 03,Newark04,Newark05,Newark06,NewOrleans01,Oklahomacity01,Orlando01,Philadelphia01,Phoenix01,Portland01,Providence01,Raleigh01,Reno0 1,Riverside_Sanbernadino01,Sacramento01,Sacramento02,Sacramento03,SaltLakeCity01,SanDiego01,SanFrancisco01,Savannah01,SEA_ISLAND_3,S EA_ISLAND_6,Seattle01,Seattle02,Seattle03,Seattle04,Seattle05,Shreveport01,Springfield01,St_Louis01,Stockton01,Stockton02,Tampa01,Ta mpa02,Topeka01,Trenton01,Tucson01,Washington01,Washington02,Worcester01,Worcester02&FORMAT=PNG&BGCOLOR=0xFFFFFF&TRANSPARENT=true&SRS =EPSG:4326&SERVICE=WMS&STYLES=&SERVICENAME=USGS_EDC_Ortho_133Urban&REQUEST=capabilities From James.Shanton2 at NSCORP.COM Mon Jan 10 06:54:13 2005 From: James.Shanton2 at NSCORP.COM (Shanton, James A) Date: Mon, 10 Jan 2005 09:54:13 -0500 Subject: USGS URBAN 133 Metadata ? Message-ID: Sort of like this ? I get the following WMS error Thanks ! Jim msDrawMap(): WMS connection error. Failed to draw WMS layer named Urban133All'. This most likely happened because the remote WMS server returned an invalid image, and XML exception or another unexpected result in response to the GetMap request. Also check and make sure that the layer's connection URL is valid. msDrawRaster(): Image handling error. Unrecognized or unsupported image format drawEPP(): Image handling error. EPPL7 support is not available. #---USGS All Urban--- LAYER NAME Urban133All # METADATA # "wms_title" "Portland Ortho 2002" # "wms_extent" "-123.12987 45.241726 -122.3584 45.75648" # LYRNAME "Urban133" # LINK "N/A" # END OFFSITE 255 255 255 GROUP "Urban133" STATUS DEFAULT TYPE RASTER CONNECTIONTYPE WMS CONNECTION "http://gisdata.usgs.net/servlet/com.esri.wms.Esrimap?WMTVER=1.1.0&LAYERS=Al buquerque01,Allentown01,Amarillo01,Amarillo02,Anchorage01,Atlanta01,Atlanta0 2,Atlanta03,Atlanta04,Atlanta05,Austin01,Baltimore01,BatonRouge01,Birmingham 01,Bismarck01,Boston01,Boston02,Carson01,Charlotte01,Charlotte02,Chattanooga 01,Chicago01,Chicago02,Chicago03,Chicago04,Chicago05,Chicago06,Chicago07,Chi cago08,Chicago09,Cincinnati01,Cleveland01,ColoradoSprings01,Columbus01,Dalla s01,Dallas02,Dallas03,Dallas04,Denver01,Denver02,Denver03,Detroit01,Detroit0 2,Detroit03,El_Paso01,Fresno01,FtWayne01,Glynncnty,Harrisburg01,Houston01,Ho uston02,Houston03,Houston04,Houston05,Houston06,Huntsville01,Jackson01,Jacks onville01,KansasCity01,Knoxville01,Knoxville02,Knoxville03,Laglendale01,Lagl endale02,LasVegas01,Lexington01,Lincoln01,Louisville01,Lubbock01,Lubbock02,M iami01,Minneapolis01,Mobile01,Modesto01,Montgomery01,Nashville01,Newark01,Ne wark02,Newark03,Newark04,Newark05,Newark06,NewOrleans01,Oklahomacity01,Orlan do01,Philadelphia01,Phoenix01,Portland01,Providence01,Raleigh01,Reno01,River side_Sanbernadino01,Sacramento01,Sacramento02,Sacramento03,SaltLakeCity01,Sa nDiego01,SanFrancisco01,Savannah01,SEA_ISLAND_3,SEA_ISLAND_6,Seattle01,Seatt le02,Seattle03,Seattle04,Seattle05,Shreveport01,Springfield01,St_Louis01,Sto ckton01,Stockton02,Tampa01,Tampa02,Topeka01,Trenton01,Tucson01,Washington01, Washington02,Worcester01,Worcester02&FORMAT=JPEG&BGCOLOR=0xFFFFFF&TRANSPAREN T=true&SRS=EPSG:4326&SERVICE=WMS&STYLES=&SERVICENAME=USGS_EDC_Ortho_133Urban &REQUEST=capabilities" PROJECTION "init=epsg:4326" #WGS 84 END END ---------------------------------------------------------------------------- ------------------ -----Original Message----- From: Norman Vine [mailto:nhv at cape.com] Sent: Monday, January 10, 2005 9:46 AM To: Shanton, James A; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] USGS URBAN 133 Metadata ? Shanton, James A writes: > > Is there a location that would give me the > Metadata for the Urban 133 Orthophotoimagery ? > I found these samples out there, but I can't find the Metadata for the > Atlanta area extents, or other Covered areas in the US. > "wms_title" > "wms_extent" > > Thanks ! Try this < all one URL > Norman http://gisdata.usgs.net/servlet/com.esri.wms.Esrimap?WMTVER=1.1.0&LAYERS=Alb uquerque01,Allentown01,Amarillo01,Amarillo02,Anchorage01 ,Atlanta01,Atlanta02,Atlanta03,Atlanta04,Atlanta05,Austin01,Baltimore01,Bato nRouge01,Birmingham01,Bismarck01,Boston01,Boston02,Carso n01,Charlotte01,Charlotte02,Chattanooga01,Chicago01,Chicago02,Chicago03,Chic ago04,Chicago05,Chicago06,Chicago07,Chicago08,Chicago09, Cincinnati01,Cleveland01,ColoradoSprings01,Columbus01,Dallas01,Dallas02,Dall as03,Dallas04,Denver01,Denver02,Denver03,Detroit01,Detro it02,Detroit03,El_Paso01,Fresno01,FtWayne01,Glynncnty,Harrisburg01,Houston01 ,Houston02,Houston03,Houston04,Houston05,Houston06,Hunts ville01,Jackson01,Jacksonville01,KansasCity01,Knoxville01,Knoxville02,Knoxvi lle03,Laglendale01,Laglendale02,LasVegas01,Lexington01,L incoln01,Louisville01,Lubbock01,Lubbock02,Miami01,Minneapolis01,Mobile01,Mod esto01,Montgomery01,Nashville01,Newark01,Newark02,Newark 03,Newark04,Newark05,Newark06,NewOrleans01,Oklahomacity01,Orlando01,Philadel phia01,Phoenix01,Portland01,Providence01,Raleigh01,Reno0 1,Riverside_Sanbernadino01,Sacramento01,Sacramento02,Sacramento03,SaltLakeCi ty01,SanDiego01,SanFrancisco01,Savannah01,SEA_ISLAND_3,S EA_ISLAND_6,Seattle01,Seattle02,Seattle03,Seattle04,Seattle05,Shreveport01,S pringfield01,St_Louis01,Stockton01,Stockton02,Tampa01,Ta mpa02,Topeka01,Trenton01,Tucson01,Washington01,Washington02,Worcester01,Worc ester02&FORMAT=PNG&BGCOLOR=0xFFFFFF&TRANSPARENT=true&SRS =EPSG:4326&SERVICE=WMS&STYLES=&SERVICENAME=USGS_EDC_Ortho_133Urban&REQUEST=c apabilities From nhv at CAPE.COM Mon Jan 10 07:14:26 2005 From: nhv at CAPE.COM (Norman Vine) Date: Mon, 10 Jan 2005 10:14:26 -0500 Subject: USGS URBAN 133 Metadata ? In-Reply-To: Message-ID: Shanton, James A writes: > > Sort of like this ? No I posted the location of where to get the metadata not the WMS CONNECTION string, per your request :-) If you are not familiar with a WMS Capabilities REQUEST see http://mapserver.gis.umn.edu/doc40/wms-server-howto.html and specifically http://www.opengis.org/docs/01-047r2.pdf Cheers Norman > > Shanton, James A writes: > > > > Is there a location that would give me the > > Metadata for the Urban 133 Orthophotoimagery ? > > I found these samples out there, but I can't find the Metadata for the > > Atlanta area extents, or other Covered areas in the US. > > "wms_title" > > "wms_extent" > > > > Thanks ! > > Try this < all one URL > > > Norman > > http://gisdata.usgs.net/servlet/com.esri.wms.Esrimap?WMTVER=1.1.0&LAYERS=Alb > uquerque01,Allentown01,Amarillo01,Amarillo02,Anchorage01 > ,Atlanta01,Atlanta02,Atlanta03,Atlanta04,Atlanta05,Austin01,Baltimore01,Bato > nRouge01,Birmingham01,Bismarck01,Boston01,Boston02,Carso > n01,Charlotte01,Charlotte02,Chattanooga01,Chicago01,Chicago02,Chicago03,Chic > ago04,Chicago05,Chicago06,Chicago07,Chicago08,Chicago09, > Cincinnati01,Cleveland01,ColoradoSprings01,Columbus01,Dallas01,Dallas02,Dall > as03,Dallas04,Denver01,Denver02,Denver03,Detroit01,Detro > it02,Detroit03,El_Paso01,Fresno01,FtWayne01,Glynncnty,Harrisburg01,Houston01 > ,Houston02,Houston03,Houston04,Houston05,Houston06,Hunts > ville01,Jackson01,Jacksonville01,KansasCity01,Knoxville01,Knoxville02,Knoxvi > lle03,Laglendale01,Laglendale02,LasVegas01,Lexington01,L > incoln01,Louisville01,Lubbock01,Lubbock02,Miami01,Minneapolis01,Mobile01,Mod > esto01,Montgomery01,Nashville01,Newark01,Newark02,Newark > 03,Newark04,Newark05,Newark06,NewOrleans01,Oklahomacity01,Orlando01,Philadel > phia01,Phoenix01,Portland01,Providence01,Raleigh01,Reno0 > 1,Riverside_Sanbernadino01,Sacramento01,Sacramento02,Sacramento03,SaltLakeCi > ty01,SanDiego01,SanFrancisco01,Savannah01,SEA_ISLAND_3,S > EA_ISLAND_6,Seattle01,Seattle02,Seattle03,Seattle04,Seattle05,Shreveport01,S > pringfield01,St_Louis01,Stockton01,Stockton02,Tampa01,Ta > mpa02,Topeka01,Trenton01,Tucson01,Washington01,Washington02,Worcester01,Worc > ester02&FORMAT=PNG&BGCOLOR=0xFFFFFF&TRANSPARENT=true&SRS > =EPSG:4326&SERVICE=WMS&STYLES=&SERVICENAME=USGS_EDC_Ortho_133Urban&REQUEST=c > apabilities > From gireddy at GMAIL.COM Mon Jan 10 09:29:13 2005 From: gireddy at GMAIL.COM (Shashi Gireddy) Date: Mon, 10 Jan 2005 11:29:13 -0600 Subject: nmake error for geo-shapelib Message-ID: hi all, i am trying to use shp2mysql.pl, for that i want to install geo-shapelib, but i am getting following error with nmake cp Shapelib/dbfadd.c blib\lib\Geo\Shapelib\dbfadd.c cp Shapelib/README.tree blib\lib\Geo\Shapelib\README.tree cd shapelib && NMAKE -nologo makefile(342) : fatal error U1033: syntax error : '$(AR)' unexpected Stop. NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x2' Stop. can anybody please help me. I have my data in mysql database, i want to map this data onto mapscript. can anybody suggest any ideas, please i am in desperate need of it. thank you, shashi. From James.Shanton2 at NSCORP.COM Mon Jan 10 10:15:58 2005 From: James.Shanton2 at NSCORP.COM (Shanton, James A) Date: Mon, 10 Jan 2005 13:15:58 -0500 Subject: USGS URBAN 133 Metadata ? Message-ID: Thanks for the information on the getcapabilities function. I saw all the Layer names in the XML document and tried to call those but did not have any luck. LAYER NAME colorWMS METADATA "wms_title" "USGS_EDC_Ortho_133Urban" "wms_srs" "EPSG:4326" "wms_latlonboundingbox" "-178.217598362365 18.9247817993164 -66.9692710360024 71.4062353532712" END OFFSITE 255 255 255 STATUS DEFAULT TYPE RASTER CONNECTIONTYPE WMS CONNECTION "http://gisdata.usgs.net/servlet/com.esri.wms.Esrimap?VERSION=1.1.0&SERVICE= OGC:WMS&FORMAT=jpeg&LAYERS=Atlanta02&REQUEST=getmap&styles=" PROJECTION "init=epsg:4326" END END -----Original Message----- From: Norman Vine [mailto:nhv at cape.com] Sent: Monday, January 10, 2005 10:14 AM To: Shanton, James A; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] USGS URBAN 133 Metadata ? Shanton, James A writes: > > Sort of like this ? No I posted the location of where to get the metadata not the WMS CONNECTION string, per your request :-) If you are not familiar with a WMS Capabilities REQUEST see http://mapserver.gis.umn.edu/doc40/wms-server-howto.html and specifically http://www.opengis.org/docs/01-047r2.pdf Cheers Norman > > Shanton, James A writes: > > > > Is there a location that would give me the > > Metadata for the Urban 133 Orthophotoimagery ? > > I found these samples out there, but I can't find the Metadata for the > > Atlanta area extents, or other Covered areas in the US. > > "wms_title" > > "wms_extent" > > > > Thanks ! > > Try this < all one URL > > > Norman > > http://gisdata.usgs.net/servlet/com.esri.wms.Esrimap?WMTVER=1.1.0&LAYERS=Alb > uquerque01,Allentown01,Amarillo01,Amarillo02,Anchorage01 > ,Atlanta01,Atlanta02,Atlanta03,Atlanta04,Atlanta05,Austin01,Baltimore01,Bato > nRouge01,Birmingham01,Bismarck01,Boston01,Boston02,Carso > n01,Charlotte01,Charlotte02,Chattanooga01,Chicago01,Chicago02,Chicago03,Chic > ago04,Chicago05,Chicago06,Chicago07,Chicago08,Chicago09, > Cincinnati01,Cleveland01,ColoradoSprings01,Columbus01,Dallas01,Dallas02,Dall > as03,Dallas04,Denver01,Denver02,Denver03,Detroit01,Detro > it02,Detroit03,El_Paso01,Fresno01,FtWayne01,Glynncnty,Harrisburg01,Houston01 > ,Houston02,Houston03,Houston04,Houston05,Houston06,Hunts > ville01,Jackson01,Jacksonville01,KansasCity01,Knoxville01,Knoxville02,Knoxvi > lle03,Laglendale01,Laglendale02,LasVegas01,Lexington01,L > incoln01,Louisville01,Lubbock01,Lubbock02,Miami01,Minneapolis01,Mobile01,Mod > esto01,Montgomery01,Nashville01,Newark01,Newark02,Newark > 03,Newark04,Newark05,Newark06,NewOrleans01,Oklahomacity01,Orlando01,Philadel > phia01,Phoenix01,Portland01,Providence01,Raleigh01,Reno0 > 1,Riverside_Sanbernadino01,Sacramento01,Sacramento02,Sacramento03,SaltLakeCi > ty01,SanDiego01,SanFrancisco01,Savannah01,SEA_ISLAND_3,S > EA_ISLAND_6,Seattle01,Seattle02,Seattle03,Seattle04,Seattle05,Shreveport01,S > pringfield01,St_Louis01,Stockton01,Stockton02,Tampa01,Ta > mpa02,Topeka01,Trenton01,Tucson01,Washington01,Washington02,Worcester01,Worc > ester02&FORMAT=PNG&BGCOLOR=0xFFFFFF&TRANSPARENT=true&SRS > =EPSG:4326&SERVICE=WMS&STYLES=&SERVICENAME=USGS_EDC_Ortho_133Urban&REQUEST=c > apabilities > From querada499 at HOTMAIL.COM Mon Jan 10 10:26:03 2005 From: querada499 at HOTMAIL.COM (Robin Robin) Date: Mon, 10 Jan 2005 18:26:03 +0000 Subject: mapserver with arcExplorer Message-ID: Hello all, Just wondering if anyone has managed to get ArcExplorer working with mapServer? I have followed all the steps but when I input my url into ArcExplorer I get the error "Invalid Capabilities File. Check server URL." the url I am entering is http://www3.nb.sympatico.ca/rwilliam/NBAquaticDataWarehouse/wms.php when I use InternetExplorer, I can get the capabilities file with no warnings in it and I can do a get map request and view the map. Any ideas what is wrong? thanks in advance. Robin _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From bfraser at GEOANALYTIC.COM Mon Jan 10 10:56:25 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Mon, 10 Jan 2005 11:56:25 -0700 Subject: mapserver with arcExplorer Message-ID: Robin, In ArcExplorer v4.0.1 Java Edition, you can get some "debugging" info by displaying the ArcExplorer message console. Go to Help-> ArcExplorer Message Console, then on the console window: View -> Message Level -> all. It will show the details of the error. ArcExplorer seems to require an Abstract object in the Capabilities XML. Set the WMS_ABSTRACT in the METADATA portion of the WEB object of your map file: WEB : METADATA : WMS_ABSTRACT "really good data" : END END Brent Fraser bfraser at geoanalytic.com ----- Original Message ----- From: "Robin Robin" To: Sent: Monday, January 10, 2005 11:26 AM Subject: [UMN_MAPSERVER-USERS] mapserver with arcExplorer > Hello all, > > Just wondering if anyone has managed to get ArcExplorer working with > mapServer? I have followed all the steps but when I input my url into > ArcExplorer I get the error "Invalid Capabilities File. Check server URL." > > the url I am entering is > http://www3.nb.sympatico.ca/rwilliam/NBAquaticDataWarehouse/wms.php > > when I use InternetExplorer, I can get the capabilities file with no > warnings in it and I can do a get map request and view the map. Any ideas > what is wrong? > > thanks in advance. > > > Robin > > _________________________________________________________________ > Express yourself instantly with MSN Messenger! Download today it's FREE! > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From James.Shanton2 at NSCORP.COM Mon Jan 10 11:25:52 2005 From: James.Shanton2 at NSCORP.COM (Shanton, James A) Date: Mon, 10 Jan 2005 14:25:52 -0500 Subject: USGS URBAN 133 Metadata ? Message-ID: I noticed the Numeric Names, Is there a place I can find those ? Thanks ! Jim -----Original Message----- From: Matt Brown [mailto:mbrown at al1call.com] Sent: Monday, January 10, 2005 2:20 PM To: Shanton, James A; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] USGS URBAN 133 Metadata ? James, here is part of a mapfile with the 133Urban that I have working: LAYER NAME "URBANAREABHAM" TYPE RASTER STATUS OFF MAXSCALE 24000 MINSCALE 800 CONNECTION "http://edcw2ks51.cr.usgs.gov/servlet/com.esri.wms.Esrimap?WMTVER=1.1.1&Serv iceName=133urban&layers=UA_ORTHO_230_01&format=png" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:4326" "wms_title" "UA_ORTHO_230_01" END END this is for birmingham and I haven't updated the address so I am still using an older address for the wms server and the numeric names instead of the current names(ie, birmingham01). hope this helps, Matt -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Shanton, James A Sent: Monday, January 10, 2005 12:16 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] USGS URBAN 133 Metadata ? Thanks for the information on the getcapabilities function. I saw all the Layer names in the XML document and tried to call those but did not have any luck. LAYER NAME colorWMS METADATA "wms_title" "USGS_EDC_Ortho_133Urban" "wms_srs" "EPSG:4326" "wms_latlonboundingbox" "-178.217598362365 18.9247817993164 -66.9692710360024 71.4062353532712" END OFFSITE 255 255 255 STATUS DEFAULT TYPE RASTER CONNECTIONTYPE WMS CONNECTION "http://gisdata.usgs.net/servlet/com.esri.wms.Esrimap?VERSION=1.1.0&SERVICE= OGC:WMS&FORMAT=jpeg&LAYERS=Atlanta02&REQUEST=getmap&styles=" PROJECTION "init=epsg:4326" END END -----Original Message----- From: Norman Vine [mailto:nhv at cape.com] Sent: Monday, January 10, 2005 10:14 AM To: Shanton, James A; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] USGS URBAN 133 Metadata ? Shanton, James A writes: > > Sort of like this ? No I posted the location of where to get the metadata not the WMS CONNECTION string, per your request :-) If you are not familiar with a WMS Capabilities REQUEST see http://mapserver.gis.umn.edu/doc40/wms-server-howto.html and specifically http://www.opengis.org/docs/01-047r2.pdf Cheers Norman > > Shanton, James A writes: > > > > Is there a location that would give me the > > Metadata for the Urban 133 Orthophotoimagery ? > > I found these samples out there, but I can't find the Metadata for the > > Atlanta area extents, or other Covered areas in the US. > > "wms_title" > > "wms_extent" > > > > Thanks ! > > Try this < all one URL > > > Norman > > http://gisdata.usgs.net/servlet/com.esri.wms.Esrimap?WMTVER=1.1.0&LAYERS=Alb > uquerque01,Allentown01,Amarillo01,Amarillo02,Anchorage01 > ,Atlanta01,Atlanta02,Atlanta03,Atlanta04,Atlanta05,Austin01,Baltimore01,Bato > nRouge01,Birmingham01,Bismarck01,Boston01,Boston02,Carso > n01,Charlotte01,Charlotte02,Chattanooga01,Chicago01,Chicago02,Chicago03,Chic > ago04,Chicago05,Chicago06,Chicago07,Chicago08,Chicago09, > Cincinnati01,Cleveland01,ColoradoSprings01,Columbus01,Dallas01,Dallas02,Dall > as03,Dallas04,Denver01,Denver02,Denver03,Detroit01,Detro > it02,Detroit03,El_Paso01,Fresno01,FtWayne01,Glynncnty,Harrisburg01,Houston01 > ,Houston02,Houston03,Houston04,Houston05,Houston06,Hunts > ville01,Jackson01,Jacksonville01,KansasCity01,Knoxville01,Knoxville02,Knoxvi > lle03,Laglendale01,Laglendale02,LasVegas01,Lexington01,L > incoln01,Louisville01,Lubbock01,Lubbock02,Miami01,Minneapolis01,Mobile01,Mod > esto01,Montgomery01,Nashville01,Newark01,Newark02,Newark > 03,Newark04,Newark05,Newark06,NewOrleans01,Oklahomacity01,Orlando01,Philadel > phia01,Phoenix01,Portland01,Providence01,Raleigh01,Reno0 > 1,Riverside_Sanbernadino01,Sacramento01,Sacramento02,Sacramento03,SaltLakeCi > ty01,SanDiego01,SanFrancisco01,Savannah01,SEA_ISLAND_3,S > EA_ISLAND_6,Seattle01,Seattle02,Seattle03,Seattle04,Seattle05,Shreveport01,S > pringfield01,St_Louis01,Stockton01,Stockton02,Tampa01,Ta > mpa02,Topeka01,Trenton01,Tucson01,Washington01,Washington02,Worcester01,Worc > ester02&FORMAT=PNG&BGCOLOR=0xFFFFFF&TRANSPARENT=true&SRS > =EPSG:4326&SERVICE=WMS&STYLES=&SERVICENAME=USGS_EDC_Ortho_133Urban&REQUEST=c > apabilities > From lfilak at MEDINACO.ORG Mon Jan 10 11:32:49 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Mon, 10 Jan 2005 14:32:49 -0500 Subject: nmake error for geo-shapelib Message-ID: The following message was sent by Shashi Gireddy on Mon, 10 Jan 2005 11:29:13 -0600. > hi all, > > i am trying to use shp2mysql.pl, for that i want to install > geo-shapelib, but i am getting following error with nmake > > cp Shapelib/dbfadd.c blib\lib\Geo\Shapelib\dbfadd.c > cp Shapelib/README.tree blib\lib\Geo\Shapelib\README.tree > cd shapelib && NMAKE -nologo > makefile(342) : fatal error U1033: syntax error : '$(AR)' unexpected > Stop. > NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x2' > Stop. > > can anybody please help me. > I have my data in mysql database, i want to map this data onto > mapscript. can anybody suggest any ideas, please i am in desperate > need of it. Shashi, I believe shp2mysql.pl is intended to be used to load shapefile data Into mysql. If your data is already in mysql you should already be able to map it using your preferred mapscript flavor. Unless I'm misunderstanding something. Lowell From s.genoud at MKREIS.CH Mon Jan 10 11:32:10 2005 From: s.genoud at MKREIS.CH (Sacha Genoud) Date: Mon, 10 Jan 2005 13:32:10 -0600 Subject: Compilation error Message-ID: Hello i have a compilation error with mapserver. This is my configure command: ./configure --with-gd=/home/sgenoud/gd-2.0.28/ --with-gdal=/usr/local/bin/gdal-config --with-ogr=/usr/local/bin/gdal-config --with-php=/home/sgenoud/php-4.3.8/ --with-mygis=/usr/local/mysql-standard-4.1.7-pc-linux-i686/bin/mysql_configTThis This the result of make: gcc -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV -DUSE_PHP_REGEX -I/home/sgenoud/php-4.3.8//regex/.. -DUSE_MYGIS -I/home/sgenoud/gd-2.0.28/ -I/usr/local/include -I/usr/include/mysql -mcpu=i486 -fno-strength-reduce shp2img.o -L. -lmap -L/home/sgenoud/gd-2.0.28//.libs -lgd -ljpeg -lfreetype -lpng -lz -ljpeg -lfreetype -lpng -lz -ljpeg -L/usr/local/lib -lgdal -L/usr/lib/mysql -lmysqlclient -lcrypt -lnsl -lm -lz -lc -lnss_files -lnss_dns -lresolv -lc -lnss_files -lnss_dns -lresolv -lmysqlclient -lc -lm -lstdc++ -o shp2img ./libmap.a(mapmygis.o)(.text+0xed8): In function `msMYGISLayerIsOpen': : undefined reference to `getMYGISLayerInfo' collect2: ld returned 1 exit status make: *** [shp2img] Fehler 1 I have no idea to solve this problem. regards Sacha Genoud From James.Shanton2 at NSCORP.COM Mon Jan 10 11:48:30 2005 From: James.Shanton2 at NSCORP.COM (Shanton, James A) Date: Mon, 10 Jan 2005 14:48:30 -0500 Subject: USGS URBAN 133 Metadata ? Message-ID: Got it Working :) Thanks ! Jim LAYER # Atlanta NAME "AtlantaColorOrtho" METADATA "wms_title" "USGS_EDC_Ortho_133Urban" "wms_srs" "epsg:4326" "wms_connectiontimeout" "1000" END TYPE RASTER STATUS DEFAULT OFFSITE 255 255 255 CONNECTIONTYPE WMS CONNECTION "http://gisdata.usgs.net/servlet/com.esri.wms.Esrimap?ServiceName=USGS_EDC_O rtho_133Urban&VERSION=1.0.0&REQUEST=map&Layers=Atlanta01,Atlanta02,Atlanta03 &SRS=EPSG:4326&REASPECT=false&Format=jpeg" PROJECTION "init=epsg:4326" END END #layer AtlantaColorOrtho -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Shanton, James A Sent: Monday, January 10, 2005 2:26 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] USGS URBAN 133 Metadata ? I noticed the Numeric Names, Is there a place I can find those ? Thanks ! Jim -----Original Message----- From: Matt Brown [mailto:mbrown at al1call.com] Sent: Monday, January 10, 2005 2:20 PM To: Shanton, James A; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] USGS URBAN 133 Metadata ? James, here is part of a mapfile with the 133Urban that I have working: LAYER NAME "URBANAREABHAM" TYPE RASTER STATUS OFF MAXSCALE 24000 MINSCALE 800 CONNECTION "http://edcw2ks51.cr.usgs.gov/servlet/com.esri.wms.Esrimap?WMTVER=1.1.1&Serv iceName=133urban&layers=UA_ORTHO_230_01&format=png" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:4326" "wms_title" "UA_ORTHO_230_01" END END this is for birmingham and I haven't updated the address so I am still using an older address for the wms server and the numeric names instead of the current names(ie, birmingham01). hope this helps, Matt -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Shanton, James A Sent: Monday, January 10, 2005 12:16 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] USGS URBAN 133 Metadata ? Thanks for the information on the getcapabilities function. I saw all the Layer names in the XML document and tried to call those but did not have any luck. LAYER NAME colorWMS METADATA "wms_title" "USGS_EDC_Ortho_133Urban" "wms_srs" "EPSG:4326" "wms_latlonboundingbox" "-178.217598362365 18.9247817993164 -66.9692710360024 71.4062353532712" END OFFSITE 255 255 255 STATUS DEFAULT TYPE RASTER CONNECTIONTYPE WMS CONNECTION "http://gisdata.usgs.net/servlet/com.esri.wms.Esrimap?VERSION=1.1.0&SERVICE= OGC:WMS&FORMAT=jpeg&LAYERS=Atlanta02&REQUEST=getmap&styles=" PROJECTION "init=epsg:4326" END END -----Original Message----- From: Norman Vine [mailto:nhv at cape.com] Sent: Monday, January 10, 2005 10:14 AM To: Shanton, James A; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] USGS URBAN 133 Metadata ? Shanton, James A writes: > > Sort of like this ? No I posted the location of where to get the metadata not the WMS CONNECTION string, per your request :-) If you are not familiar with a WMS Capabilities REQUEST see http://mapserver.gis.umn.edu/doc40/wms-server-howto.html and specifically http://www.opengis.org/docs/01-047r2.pdf Cheers Norman > > Shanton, James A writes: > > > > Is there a location that would give me the > > Metadata for the Urban 133 Orthophotoimagery ? > > I found these samples out there, but I can't find the Metadata for the > > Atlanta area extents, or other Covered areas in the US. > > "wms_title" > > "wms_extent" > > > > Thanks ! > > Try this < all one URL > > > Norman > > http://gisdata.usgs.net/servlet/com.esri.wms.Esrimap?WMTVER=1.1.0&LAYERS=Alb > uquerque01,Allentown01,Amarillo01,Amarillo02,Anchorage01 > ,Atlanta01,Atlanta02,Atlanta03,Atlanta04,Atlanta05,Austin01,Baltimore01,Bato > nRouge01,Birmingham01,Bismarck01,Boston01,Boston02,Carso > n01,Charlotte01,Charlotte02,Chattanooga01,Chicago01,Chicago02,Chicago03,Chic > ago04,Chicago05,Chicago06,Chicago07,Chicago08,Chicago09, > Cincinnati01,Cleveland01,ColoradoSprings01,Columbus01,Dallas01,Dallas02,Dall > as03,Dallas04,Denver01,Denver02,Denver03,Detroit01,Detro > it02,Detroit03,El_Paso01,Fresno01,FtWayne01,Glynncnty,Harrisburg01,Houston01 > ,Houston02,Houston03,Houston04,Houston05,Houston06,Hunts > ville01,Jackson01,Jacksonville01,KansasCity01,Knoxville01,Knoxville02,Knoxvi > lle03,Laglendale01,Laglendale02,LasVegas01,Lexington01,L > incoln01,Louisville01,Lubbock01,Lubbock02,Miami01,Minneapolis01,Mobile01,Mod > esto01,Montgomery01,Nashville01,Newark01,Newark02,Newark > 03,Newark04,Newark05,Newark06,NewOrleans01,Oklahomacity01,Orlando01,Philadel > phia01,Phoenix01,Portland01,Providence01,Raleigh01,Reno0 > 1,Riverside_Sanbernadino01,Sacramento01,Sacramento02,Sacramento03,SaltLakeCi > ty01,SanDiego01,SanFrancisco01,Savannah01,SEA_ISLAND_3,S > EA_ISLAND_6,Seattle01,Seattle02,Seattle03,Seattle04,Seattle05,Shreveport01,S > pringfield01,St_Louis01,Stockton01,Stockton02,Tampa01,Ta > mpa02,Topeka01,Trenton01,Tucson01,Washington01,Washington02,Worcester01,Worc > ester02&FORMAT=PNG&BGCOLOR=0xFFFFFF&TRANSPARENT=true&SRS > =EPSG:4326&SERVICE=WMS&STYLES=&SERVICENAME=USGS_EDC_Ortho_133Urban&REQUEST=c > apabilities > From ganny_3 at REDIFFMAIL.COM Mon Jan 10 11:54:07 2005 From: ganny_3 at REDIFFMAIL.COM (Ganesh P) Date: Mon, 10 Jan 2005 19:54:07 -0000 Subject: WMS Raster Layer service Message-ID: Hello everyone, We have been successfully using Mapserver(PHP/Mapscript) for WMS client and Server and everything is working fine. Thanks to all the MapServer Developers and Users. Currently, we are using WMS server to deliver vector layers as PNG images. Now, we are planning to extend the server functionality by delivering Raster?layers(GeoTiff) as PNG images. Currently, in our system we have around 600 geotiff images. In our standalone system, We search the database everytime with the current map extent and display a list of images covering the current extent. When the user selects an image, that image will be displayed on the map window. This is how we implemented our system. The map file contains a raster layer with DATA field set dynamically (using PHP/Mapscript) with the image name. We would like to do the same for WMS server, that is, when the client requests a raster layer using a bounding box in the URL, the most recent image which covers the requested bounding box should be searched in the database and returned to the client as PNG. My concerns are: 1. How do we set the raster layer in map file for WMS server and dynamically fill in the DATA field with the exact image name (out of 600 images) covering the bounding box? 2. Can we use Mapserver to do this, or do we have to write a custom program to read the WMS client's URL, manually search the database, Cut the image for the requested bounding box, convert the image into PNG and send it to the client ? Any suggestions or information is greatly appreciated. Thank You very much in advance. Regards Ganesh Pulicherla Digital-NGP Developer Upper Midwest Aerospace Consortium University of North Dakota -------------- next part -------------- An HTML attachment was scrubbed... URL: From mbrown at AL1CALL.COM Mon Jan 10 11:19:34 2005 From: mbrown at AL1CALL.COM (Matt Brown) Date: Mon, 10 Jan 2005 13:19:34 -0600 Subject: USGS URBAN 133 Metadata ? In-Reply-To: Message-ID: James, here is part of a mapfile with the 133Urban that I have working: LAYER NAME "URBANAREABHAM" TYPE RASTER STATUS OFF MAXSCALE 24000 MINSCALE 800 CONNECTION "http://edcw2ks51.cr.usgs.gov/servlet/com.esri.wms.Esrimap?WMTVER=1.1.1&Serv iceName=133urban&layers=UA_ORTHO_230_01&format=png" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:4326" "wms_title" "UA_ORTHO_230_01" END END this is for birmingham and I haven't updated the address so I am still using an older address for the wms server and the numeric names instead of the current names(ie, birmingham01). hope this helps, Matt -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Shanton, James A Sent: Monday, January 10, 2005 12:16 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] USGS URBAN 133 Metadata ? Thanks for the information on the getcapabilities function. I saw all the Layer names in the XML document and tried to call those but did not have any luck. LAYER NAME colorWMS METADATA "wms_title" "USGS_EDC_Ortho_133Urban" "wms_srs" "EPSG:4326" "wms_latlonboundingbox" "-178.217598362365 18.9247817993164 -66.9692710360024 71.4062353532712" END OFFSITE 255 255 255 STATUS DEFAULT TYPE RASTER CONNECTIONTYPE WMS CONNECTION "http://gisdata.usgs.net/servlet/com.esri.wms.Esrimap?VERSION=1.1.0&SERVICE= OGC:WMS&FORMAT=jpeg&LAYERS=Atlanta02&REQUEST=getmap&styles=" PROJECTION "init=epsg:4326" END END -----Original Message----- From: Norman Vine [mailto:nhv at cape.com] Sent: Monday, January 10, 2005 10:14 AM To: Shanton, James A; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] USGS URBAN 133 Metadata ? Shanton, James A writes: > > Sort of like this ? No I posted the location of where to get the metadata not the WMS CONNECTION string, per your request :-) If you are not familiar with a WMS Capabilities REQUEST see http://mapserver.gis.umn.edu/doc40/wms-server-howto.html and specifically http://www.opengis.org/docs/01-047r2.pdf Cheers Norman > > Shanton, James A writes: > > > > Is there a location that would give me the > > Metadata for the Urban 133 Orthophotoimagery ? > > I found these samples out there, but I can't find the Metadata for the > > Atlanta area extents, or other Covered areas in the US. > > "wms_title" > > "wms_extent" > > > > Thanks ! > > Try this < all one URL > > > Norman > > http://gisdata.usgs.net/servlet/com.esri.wms.Esrimap?WMTVER=1.1.0&LAYERS=Alb > uquerque01,Allentown01,Amarillo01,Amarillo02,Anchorage01 > ,Atlanta01,Atlanta02,Atlanta03,Atlanta04,Atlanta05,Austin01,Baltimore01,Bato > nRouge01,Birmingham01,Bismarck01,Boston01,Boston02,Carso > n01,Charlotte01,Charlotte02,Chattanooga01,Chicago01,Chicago02,Chicago03,Chic > ago04,Chicago05,Chicago06,Chicago07,Chicago08,Chicago09, > Cincinnati01,Cleveland01,ColoradoSprings01,Columbus01,Dallas01,Dallas02,Dall > as03,Dallas04,Denver01,Denver02,Denver03,Detroit01,Detro > it02,Detroit03,El_Paso01,Fresno01,FtWayne01,Glynncnty,Harrisburg01,Houston01 > ,Houston02,Houston03,Houston04,Houston05,Houston06,Hunts > ville01,Jackson01,Jacksonville01,KansasCity01,Knoxville01,Knoxville02,Knoxvi > lle03,Laglendale01,Laglendale02,LasVegas01,Lexington01,L > incoln01,Louisville01,Lubbock01,Lubbock02,Miami01,Minneapolis01,Mobile01,Mod > esto01,Montgomery01,Nashville01,Newark01,Newark02,Newark > 03,Newark04,Newark05,Newark06,NewOrleans01,Oklahomacity01,Orlando01,Philadel > phia01,Phoenix01,Portland01,Providence01,Raleigh01,Reno0 > 1,Riverside_Sanbernadino01,Sacramento01,Sacramento02,Sacramento03,SaltLakeCi > ty01,SanDiego01,SanFrancisco01,Savannah01,SEA_ISLAND_3,S > EA_ISLAND_6,Seattle01,Seattle02,Seattle03,Seattle04,Seattle05,Shreveport01,S > pringfield01,St_Louis01,Stockton01,Stockton02,Tampa01,Ta > mpa02,Topeka01,Trenton01,Tucson01,Washington01,Washington02,Worcester01,Worc > ester02&FORMAT=PNG&BGCOLOR=0xFFFFFF&TRANSPARENT=true&SRS > =EPSG:4326&SERVICE=WMS&STYLES=&SERVICENAME=USGS_EDC_Ortho_133Urban&REQUEST=c > apabilities > From mbrown at AL1CALL.COM Mon Jan 10 11:48:58 2005 From: mbrown at AL1CALL.COM (Matt Brown) Date: Mon, 10 Jan 2005 13:48:58 -0600 Subject: USGS URBAN 133 Metadata ? In-Reply-To: Message-ID: http://edcw2ks51.cr.usgs.gov/servlet/com.esri.wms.Esrimap?REQUEST=Getcapabil ities&servicename=133urban but you could also just update the names to the more recent service, this works also and is much easier since you don't have to search the extents: LAYER NAME "URBANAREABHAM" TYPE RASTER STATUS OFF MAXSCALE 24000 MINSCALE 800 CONNECTION "http://gisdata.usgs.gov/servlet/com.esri.wms.Esrimap?WMTVER=1.1.1&ServiceNa me=USGS_EDC_Ortho_133Urban&layers=Birmingham01&format=png" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:4326" "wms_title" "Birmingham01" END END you should be able to replace Birmingham01 with Atlanta01, 02, 03, or 04 and it should work fine. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Shanton, James A Sent: Monday, January 10, 2005 1:26 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] USGS URBAN 133 Metadata ? I noticed the Numeric Names, Is there a place I can find those ? Thanks ! Jim -----Original Message----- From: Matt Brown [mailto:mbrown at al1call.com] Sent: Monday, January 10, 2005 2:20 PM To: Shanton, James A; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] USGS URBAN 133 Metadata ? James, here is part of a mapfile with the 133Urban that I have working: LAYER NAME "URBANAREABHAM" TYPE RASTER STATUS OFF MAXSCALE 24000 MINSCALE 800 CONNECTION "http://edcw2ks51.cr.usgs.gov/servlet/com.esri.wms.Esrimap?WMTVER=1.1.1&Serv iceName=133urban&layers=UA_ORTHO_230_01&format=png" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:4326" "wms_title" "UA_ORTHO_230_01" END END this is for birmingham and I haven't updated the address so I am still using an older address for the wms server and the numeric names instead of the current names(ie, birmingham01). hope this helps, Matt -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Shanton, James A Sent: Monday, January 10, 2005 12:16 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] USGS URBAN 133 Metadata ? Thanks for the information on the getcapabilities function. I saw all the Layer names in the XML document and tried to call those but did not have any luck. LAYER NAME colorWMS METADATA "wms_title" "USGS_EDC_Ortho_133Urban" "wms_srs" "EPSG:4326" "wms_latlonboundingbox" "-178.217598362365 18.9247817993164 -66.9692710360024 71.4062353532712" END OFFSITE 255 255 255 STATUS DEFAULT TYPE RASTER CONNECTIONTYPE WMS CONNECTION "http://gisdata.usgs.net/servlet/com.esri.wms.Esrimap?VERSION=1.1.0&SERVICE= OGC:WMS&FORMAT=jpeg&LAYERS=Atlanta02&REQUEST=getmap&styles=" PROJECTION "init=epsg:4326" END END -----Original Message----- From: Norman Vine [mailto:nhv at cape.com] Sent: Monday, January 10, 2005 10:14 AM To: Shanton, James A; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] USGS URBAN 133 Metadata ? Shanton, James A writes: > > Sort of like this ? No I posted the location of where to get the metadata not the WMS CONNECTION string, per your request :-) If you are not familiar with a WMS Capabilities REQUEST see http://mapserver.gis.umn.edu/doc40/wms-server-howto.html and specifically http://www.opengis.org/docs/01-047r2.pdf Cheers Norman > > Shanton, James A writes: > > > > Is there a location that would give me the > > Metadata for the Urban 133 Orthophotoimagery ? > > I found these samples out there, but I can't find the Metadata for the > > Atlanta area extents, or other Covered areas in the US. > > "wms_title" > > "wms_extent" > > > > Thanks ! > > Try this < all one URL > > > Norman > > http://gisdata.usgs.net/servlet/com.esri.wms.Esrimap?WMTVER=1.1.0&LAYERS=Alb > uquerque01,Allentown01,Amarillo01,Amarillo02,Anchorage01 > ,Atlanta01,Atlanta02,Atlanta03,Atlanta04,Atlanta05,Austin01,Baltimore01,Bato > nRouge01,Birmingham01,Bismarck01,Boston01,Boston02,Carso > n01,Charlotte01,Charlotte02,Chattanooga01,Chicago01,Chicago02,Chicago03,Chic > ago04,Chicago05,Chicago06,Chicago07,Chicago08,Chicago09, > Cincinnati01,Cleveland01,ColoradoSprings01,Columbus01,Dallas01,Dallas02,Dall > as03,Dallas04,Denver01,Denver02,Denver03,Detroit01,Detro > it02,Detroit03,El_Paso01,Fresno01,FtWayne01,Glynncnty,Harrisburg01,Houston01 > ,Houston02,Houston03,Houston04,Houston05,Houston06,Hunts > ville01,Jackson01,Jacksonville01,KansasCity01,Knoxville01,Knoxville02,Knoxvi > lle03,Laglendale01,Laglendale02,LasVegas01,Lexington01,L > incoln01,Louisville01,Lubbock01,Lubbock02,Miami01,Minneapolis01,Mobile01,Mod > esto01,Montgomery01,Nashville01,Newark01,Newark02,Newark > 03,Newark04,Newark05,Newark06,NewOrleans01,Oklahomacity01,Orlando01,Philadel > phia01,Phoenix01,Portland01,Providence01,Raleigh01,Reno0 > 1,Riverside_Sanbernadino01,Sacramento01,Sacramento02,Sacramento03,SaltLakeCi > ty01,SanDiego01,SanFrancisco01,Savannah01,SEA_ISLAND_3,S > EA_ISLAND_6,Seattle01,Seattle02,Seattle03,Seattle04,Seattle05,Shreveport01,S > pringfield01,St_Louis01,Stockton01,Stockton02,Tampa01,Ta > mpa02,Topeka01,Trenton01,Tucson01,Washington01,Washington02,Worcester01,Worc > ester02&FORMAT=PNG&BGCOLOR=0xFFFFFF&TRANSPARENT=true&SRS > =EPSG:4326&SERVICE=WMS&STYLES=&SERVICENAME=USGS_EDC_Ortho_133Urban&REQUEST=c > apabilities > From querada499 at HOTMAIL.COM Mon Jan 10 12:05:24 2005 From: querada499 at HOTMAIL.COM (Robin Robin) Date: Mon, 10 Jan 2005 20:05:24 +0000 Subject: mapserver with arcExplorer In-Reply-To: <014101c4f746$15caf350$020002c0@SHARK> Message-ID: Thank you! All it needed was the abstract! I had no idea that was so important! Thanks again >From: "Brent Fraser" >To: "Robin Robin" , >Subject: Re: [UMN_MAPSERVER-USERS] mapserver with arcExplorer >Date: Mon, 10 Jan 2005 11:56:25 -0700 > >Robin, > > In ArcExplorer v4.0.1 Java Edition, you can get some "debugging" info >by >displaying the ArcExplorer message console. Go to Help-> ArcExplorer >Message Console, then on the console window: View -> Message Level -> all. >It will show the details of the error. > > ArcExplorer seems to require an Abstract object in the Capabilities XML. >Set the WMS_ABSTRACT in the METADATA portion of the WEB object of your map >file: > >WEB > : > METADATA > : > WMS_ABSTRACT "really good data" > : > END >END > >Brent Fraser >bfraser at geoanalytic.com > >----- Original Message ----- >From: "Robin Robin" >To: >Sent: Monday, January 10, 2005 11:26 AM >Subject: [UMN_MAPSERVER-USERS] mapserver with arcExplorer > > > > Hello all, > > > > Just wondering if anyone has managed to get ArcExplorer working with > > mapServer? I have followed all the steps but when I input my url into > > ArcExplorer I get the error "Invalid Capabilities File. Check server >URL." > > > > the url I am entering is > > http://www3.nb.sympatico.ca/rwilliam/NBAquaticDataWarehouse/wms.php > > > > when I use InternetExplorer, I can get the capabilities file with no > > warnings in it and I can do a get map request and view the map. Any >ideas > > what is wrong? > > > > thanks in advance. > > > > > > Robin > > > > _________________________________________________________________ > > Express yourself instantly with MSN Messenger! Download today it's FREE! > > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From bfraser at GEOANALYTIC.COM Mon Jan 10 12:19:05 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Mon, 10 Jan 2005 13:19:05 -0700 Subject: WMS Raster Layer service Message-ID: Ganesh, In general the answer is to use a TILEINDEX layer. Use a TILEINDEX layer if you have a set of rasters each covering a separate area but form a single logical layer (USGS 1:250k topos for example). With a TILEINDEX Mapserver will automatically select the rasters covering the current map extent as the user pans and zooms. If your rasters cover the same area but represent different times (e.g. satellite images of Minot from 2000 to 2004), things are more complicated when it comes to WMS. In your original email you mentioned "the most recent image" so I wasn't sure how important time was in your implementation... Brent Fraser bfraser at geoanalytic.com ----- Original Message ----- From: Ganesh P To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Monday, January 10, 2005 12:54 PM Subject: [UMN_MAPSERVER-USERS] WMS Raster Layer service Hello everyone, We have been successfully using Mapserver(PHP/Mapscript) for WMS client and Server and everything is working fine. Thanks to all the MapServer Developers and Users. Currently, we are using WMS server to deliver vector layers as PNG images. Now, we are planning to extend the server functionality by delivering Raster layers(GeoTiff) as PNG images. Currently, in our system we have around 600 geotiff images. In our standalone system, We search the database everytime with the current map extent and display a list of images covering the current extent. When the user selects an image, that image will be displayed on the map window. This is how we implemented our system. The map file contains a raster layer with DATA field set dynamically (using PHP/Mapscript) with the image name. We would like to do the same for WMS server, that is, when the client requests a raster layer using a bounding box in the URL, the most recent image which covers the requested bounding box should be searched in the database and returned to the client as PNG. My concerns are: 1. How do we set the raster layer in map file for WMS server and dynamically fill in the DATA field with the exact image name (out of 600 images) covering the bounding box? 2. Can we use Mapserver to do this, or do we have to write a custom program to read the WMS client's URL, manually search the database, Cut the image for the requested bounding box, convert the image into PNG and send it to the client ? Any suggestions or information is greatly appreciated. Thank You very much in advance. Regards Ganesh Pulicherla Digital-NGP Developer Upper Midwest Aerospace Consortium University of North Dakota From woodbri at SWOODBRIDGE.COM Mon Jan 10 12:20:12 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 10 Jan 2005 15:20:12 -0500 Subject: WMS Raster Layer service In-Reply-To: <20050110195407.17099.qmail@webmail9.rediffmail.com> Message-ID: Typically, most mapfiles serving images use a tileindex so that the images are automatically seamed together. if you have more than one set of rasters like a color set, a mono set, or other dated sets, then each set is put in a separate tileindex and is a separate layer, then you can just turn on the layer and it will show correcly. You don't have to use mapscript to change the data source. If you do this, then the wms works the same way and you never need to edit the data source for the layer, it just works. Also you don't need to maintain a database either. You might already know this, and have implemented your scheme for other reasons, but it just seems like what you are trying to do is already implemented in mapserver and is simpler to do than reimplementing wms requests on top of mapserver that already supports this. My good friend, Ed at Topozone has over 250,000 geotiff that he is serving with mapserver in this way. :) -Steve Ganesh P wrote: > Hello everyone, > > We have been successfully using Mapserver(PHP/Mapscript) for WMS client > and Server and everything is working fine. Thanks to all the MapServer > Developers and Users. Currently, we are using WMS server to deliver > vector layers as PNG images. Now, we are planning to extend the server > functionality by delivering Raster layers(GeoTiff) as PNG images. > Currently, in our system we have around 600 geotiff images. In our > standalone system, We search the database everytime with the current map > extent and display a list of images covering the current extent. When > the user selects an image, that image will be displayed on the map > window. This is how we implemented our system. The map file contains a > raster layer with DATA field set dynamically (using PHP/Mapscript) with > the image name. We would like to do the same for WMS server, that is, > when the client requests a raster layer using a bounding box in the URL, > the most recent image which covers the requested bounding box should be > searched in the database and returned to the client as PNG. > > My concerns are: > > 1. How do we set the raster layer in map file for WMS server and > dynamically fill in the DATA field with the exact image name (out of 600 > images) covering the bounding box? > > 2. Can we use Mapserver to do this, or do we have to write a custom > program to read the WMS client's URL, manually search the database, Cut > the image for the requested bounding box, convert the image into PNG and > send it to the client ? > > Any suggestions or information is greatly appreciated. > Thank You very much in advance. > > Regards > > Ganesh Pulicherla > Digital-NGP Developer > Upper Midwest Aerospace Consortium > University of North Dakota > > > > From jdport at VERITIME.COM Mon Jan 10 13:25:23 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Mon, 10 Jan 2005 16:25:23 -0500 Subject: How to access shapefile attributes? Message-ID: I'm just learning how to use mapscript for displaying my maps, and I am trying to figure out how you would access the attribute data in your shapefiles? I have a layer of roads, and I'm using the Tiger data which has fields for street names, address ranges, and zipcodes. Eventually what I'd like to do is to be able to read a list of addresses and place a marker on the map at each of those addresses. I'm not exactly sure how to do that even when I learn how to access the data.... there was some code posted to this list sometime back for getting the coordinates of a street address and I could possibly use that, but it requires a specific set of fields to be present in the shape file and I'd have to do some manipulation of the fields I actually have to use that code and that might be just as tricky as writing the code myself :) Thanks for any pointers, Jeff From woodbri at SWOODBRIDGE.COM Mon Jan 10 14:05:22 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 10 Jan 2005 17:05:22 -0500 Subject: Performance Tuning a Mapfile Message-ID: Sorry for the cross posting to the Dev list, but I think this is a topic that needs to be highlight there also. So I am back to trying to do some performance tuning of my mapfiles. On my layer post someone suggested using DEBUG ON. I think this is or a similar mapfile option is the correct approach. Unfortunately, on Mapserver 4.01, DEBUG ON was less than helpful. I only got a single line: Mon Jan 10 14:57:21 2005,3687,192.168.1.211,north_america_v40,3,-71.460613 42.571728 -71.317747 42.666972,-71.389180 42.619350,all ,normal execution I turned on layer in the MAP .. END block and in every LAYER .. END block but only got the above single line for a map drawn. So adding DEBUG ON to the layers gave me no additional information about the layer. In fact, when I got a parse error in the mapfile I did not get a record in the logfile. This is a fairly old version of mapserver and maybe this has changed in the newer versions, may be not. At any rate, here is what I would like to see: 1) execution time(s) for every block the has DEBUG ON, so if I only have it in the MAP block I only get a summary, if I have it in a LAYER block than I get detailed stats about that layer. 2) number of connections/shapefiles opened by block 3) number of objects drawn by block, maybe also the number of objects scanned and not drawn 4) the map scale as drawn With these basic stats, it would be easy for us to make changes to the mapfile and evaluate the impact of the changes. Why these stats? Well time is somewhat obvious, we need to identify what is taking up time. Connections or shapefiles opened will tell us how well our data is organized and how our tileindexes are working or not. And finally, the number of object that are being drawn, may tell us where we might want to thin out the detail, and scale helps us relate it to our mapfile since it works based on MIN/MAXSCALE. I would be happy to have additional stats also if you think there are others that would help with performance tuning. Output formats! Ideally it should be easy to parse the log file with Perl. I don't have a problem with multiple lines as ling as there a unique id the tie the lines together, like date, uid, "map", map_name, bbox, scale, exec_time, etc date, uid, "layer", layer_number, layer_name, exec_time, files, objects I will follow up by creating a bug with this same request. By the way, I have been running siege and bombard ( http://www.joedog.org/siege/ ) to stress test my servers and evaluate performance at each zoom scale for all my mapfiles. Now that I know where my problems lie, I am trying to fix them, but I am finding it is really hard to know what is causing the performance issues or even which of my 100 layers are causing it. It is really dumb, but I now have to guess which layers might be the problem and delete a layer at a time, run a 10-20 min stress test and repeat for all suspect layers to see which ones are cause what type of impact. If I had the logging tools above, I could run a stress test, summarize it with Perl and know exactly what layer(s) need to be focused on. -Steve From sgillies at FRII.COM Mon Jan 10 14:13:46 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Mon, 10 Jan 2005 15:13:46 -0700 Subject: Performance Tuning a Mapfile In-Reply-To: Message-ID: On Jan 10, 2005, at 3:05 PM, Stephen Woodbridge wrote: > Sorry for the cross posting to the Dev list, but I think this is a > topic > that needs to be highlight there also. > > So I am back to trying to do some performance tuning of my mapfiles. On > my layer post someone suggested using DEBUG ON. I think this is or a > similar mapfile option is the correct approach. Unfortunately, on > Mapserver 4.01, DEBUG ON was less than helpful. I only got a single > line: > "Someone" was me. Newer versions of MapServer have all kinds of debug output for checking performance. I'm sorta against this, because there are better ways to do it: gprof for mapserv, or write a Python (or whatever) script to draw your map and call it with profile.run() (or whatever). This is a great excuse to upgrade your MapServer! Sean From woodbri at SWOODBRIDGE.COM Mon Jan 10 14:33:02 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 10 Jan 2005 17:33:02 -0500 Subject: Performance Tuning a Mapfile In-Reply-To: Message-ID: Sean Gillies wrote: > On Jan 10, 2005, at 3:05 PM, Stephen Woodbridge wrote: > >> Sorry for the cross posting to the Dev list, but I think this is a >> topic >> that needs to be highlight there also. >> >> So I am back to trying to do some performance tuning of my mapfiles. On >> my layer post someone suggested using DEBUG ON. I think this is or a >> similar mapfile option is the correct approach. Unfortunately, on >> Mapserver 4.01, DEBUG ON was less than helpful. I only got a single >> line: >> > > "Someone" was me. Newer versions of MapServer have all kinds of debug > output for checking performance. I'm sorta against this, because there > are better ways to do it: gprof for mapserv, or write a Python (or > whatever) script to draw your map and call it with profile.run() (or > whatever). > > This is a great excuse to upgrade your MapServer! Sean, I thought it might have been you but didn't want to give the wrong attribution :) Any way there is a bug on this #882 and I added my comments to that. I will definitely get a new version of mapserver for my dev environment just so I can test this. gprof is great if you are a programmer and you want to improve your code, but if you are just a mapfile developer is will not be all the helpful. For example, there is no way to get the cost on a per layer basis, there is not way to get a count of the number of files opened, or the number of objects rendered, or the number of objects scanned but not rendered, let alone do that on a per layer basis. I develop code in C, Perl, PHP and other languages and what I need it stats, not another opportunity to write more code :) I way to big a backlog of projects I'm not working on. Also remember that some of our users that are having trouble just building a mapfile, will need to evaluate performance if they push it into any kind of high load production environment. OK, off to download 4.4 and see what kind of good stuff it has :) Thanks again for your suggestions and comments. -Steve W. From jdenovan at GEOREFERENCEONLINE.COM Mon Jan 10 14:35:18 2005 From: jdenovan at GEOREFERENCEONLINE.COM (Janice Denovan) Date: Mon, 10 Jan 2005 16:35:18 -0600 Subject: DBF-to-mySQL JOIN: 3 CASES Message-ID: Hi List, Have enjoyed working with MapServer 4.1 and reading this list over 2 months. We have a polygon shapefile with 4800 objects (POLY4800.SHP). We run non-spatial queries against the shape file using an in-house, multi- user software application and write the query scores to mySQL 4.x tables. We extract request_id, object_id and query_score from the mySQL tables and append to a mySQL table for mapping purposes (tbl_results_mapping.myd). tbl_results_mapping.myd is indexed on request_id and indexed on object_id). We need to display the shapefile in MapServ 4.1 symbolized by query_score and filtered by request_id. I see this problem as a simple 1:1 table join. The work is distributed across two servers: Server1: WinXP/IIS/MapServ 4.1 (supports WMS/WFS) Server2: WinXP/IIS/mySQL 4.0 (basic mySQL, no spatial extensions) So far: ### CASE 1 ################################################################## ### This mapfile code works but takes 15+ seconds to refresh the map ### Connectiontype OGR CONNECTIONTYPE OGR CONNECTION "POLY4800.shp" DATA "SELECT * FROM POLY4800 LEFT JOIN 'odbc:hmomap'.tbl_results_mapping ON POLY4800.OBJECTID = tbl_results_mapping.object_id" ### CASE 2 ################################################################## ### This mapfile code executes but fails to apply the WHERE clause ### Connectiontype OGR CONNECTIONTYPE OGR CONNECTION "POLY4800.shp" DATA "SELECT * FROM POLY4800 LEFT JOIN 'odbc:hmomap'.tbl_results_mapping ON POLY4800.OBJECTID = tbl_results_mapping.object_id WHERE tbl_results_mapping.request_id = 2" ### CASE 3 ################################################################## ### This mapfile code executes and might draw faster for small extents but ### still too slow; WHERE clause not working ### Connectiontype WFS/OGR CONNECTIONTYPE WFS CONNECTION "http://127.0.0.1/scripts/mapserv.exe?map=wfs.map" wfs.map for CASE 3 CONNECTIONTYPE OGR CONNECTION "POLY4800.shp" DATA "SELECT * FROM POLY4800 LEFT JOIN 'odbc:hmomap'.tbl_results_mapping ON POLY4800.OBJECTID = tbl_results_mapping.object_id WHERE tbl_results_mapping.request_id = 2" CLASS COLOR 255 0 255 END Can you suggest a way to optimize this system ? A shapefile-based solution is preferred at this time. Thanks very much, Janice Vancouver, BC From fwarmerdam at GMAIL.COM Mon Jan 10 15:17:47 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Mon, 10 Jan 2005 18:17:47 -0500 Subject: DBF-to-mySQL JOIN: 3 CASES In-Reply-To: Message-ID: On Mon, 10 Jan 2005 16:35:18 -0600, Janice Denovan wrote: > ### CASE 2 > ################################################################## > ### This mapfile code executes but fails to apply the WHERE clause > ### Connectiontype OGR > CONNECTIONTYPE OGR > CONNECTION "POLY4800.shp" > DATA "SELECT * FROM POLY4800 LEFT > JOIN 'odbc:hmomap'.tbl_results_mapping ON > POLY4800.OBJECTID = tbl_results_mapping.object_id > WHERE tbl_results_mapping.request_id = 2" Janice, I think your fundamental problem is that the WHERE clause is not working in the above configuration, right? I wasn't too sure how this would work myself, so I reviewed the OGR SQL docs at: http://www.gdal.org/ogr/ogr_sql.html Unfortunately, one of the caveats is that WHERE clauses may not refer to fields in the joined table. This is an issue with the OGR SQL interpreter, not SQL in general. In fact, I am a bit surprised it does not trigger an error. I guess the feature has a NULL field value for the joined fields at the point where the WHERE clause is interpreted. I could *in theory* modify the OGR SQL interpreter to try re-evaluate the WHERE clause after loading the features but this won't make things any faster and it would be somewhat tough to implement. I would add that this sort of sophisticated SQL functionality may never be all that efficiently implemented in OGR SQL. I'm afraid for a good solution you might be better looking at moving everything into a spatial RDBMS or otherwise pre-preparing the data for fast use. Time to take my son to swimming ... so I'll cut my comments there. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From peter.vongaza at GOV.YK.CA Mon Jan 10 15:27:01 2005 From: peter.vongaza at GOV.YK.CA (Peter von Gaza) Date: Mon, 10 Jan 2005 17:27:01 -0600 Subject: MapServer Binaries with SDE support? Message-ID: I'm running some tests of MapServer using MS4W. I would like to test MapServer's connection capability with SDE. I don't have the time to install the necessary tools for building MapServer. Does anybody have any windows binaries they'd like to share? Cheers, Peter von Gaza Geomatics Yukon From assefa at DMSOLUTIONS.CA Mon Jan 10 16:27:57 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Mon, 10 Jan 2005 19:27:57 -0500 Subject: MapServer Binaries with SDE support? In-Reply-To: Message-ID: Hi, You can get them at this site : http://hobu.stat.iastate.edu/mapserver/build_output/. You should get the cvs_sde_binary.zip for the latest Mapserver/SDE. Peter von Gaza wrote: > I'm running some tests of MapServer using MS4W. I would like to test > MapServer's connection capability with SDE. I don't have the time to install > the necessary tools for building MapServer. Does anybody have any windows > binaries they'd like to share? > > Cheers, > Peter von Gaza > Geomatics Yukon > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From richard.roger at AGRIC.NSW.GOV.AU Mon Jan 10 18:16:51 2005 From: richard.roger at AGRIC.NSW.GOV.AU (Richard E. Roger) Date: Tue, 11 Jan 2005 13:16:51 +1100 Subject: Four Color Theorem Message-ID: I have used a program to "four-colour" a map. You need to be a bit careful. The State of New South Wales in Australia has about 7500 parishes (for land administration purposes), and I wanted to colour a GIS data set representing them. The program I used first does a swift greedy pass generating an approximate solution (this took about 30 seconds on a Sun Ultra 2 with 167 MHz processor, showing how long ago I tried this). I thought I'd see how long it would take to generate the full four-colour solution - in the end, I killed the process after about 3 weeks :-) Camden, you're right about needing a table showing which polygons border each other. My base data set was in an ESRI Arc coverage format, which meant I could generate and unload the Polygon Adjacency information (using the "palinfo" command). I had to sort and remove duplicates and adjust polygon numbers to eliminate the universal polygon. I ran this through the four-colouring program, and ended up with a table listing polygon numbers with a colour for each polygon (as an integer). I then joined this back to the original coverage's attribute data. For the four-colouring program, I used Michael Trick's "trick.c" program from http://mat.gsia.cmu.edu/COLOR/solvers/ . (Professor Trick is at Carnegie Mellon University. For further information, I'd suggest having a look at his home page (http://mat.gsia.cmu.edu/trick/), and at the operations research site (www.informs.org) .) You might also like to look at Professor Joseph Culberson's page at the University of Alberta (http://www.cs.ualberta.ca/~joe/). In summary, I wouldn't try doing this for large data sets, and I would not do it dynamically - add the colouring beforehand via an attribute. And consider just doing the initial swift greedy pass to get an approximate solution - it might be good enough for your purposes. Finally, does anyone have a program to compute the polygon adjacency information for polygons in a shapefile ? Cheers Richard E. Roger Dr. R. E. Roger NSW Department of Primary Industries Spatial Information Officer Systems 161 Kite St Resource Information Unit Locked Bag 21 ORANGE NSW 2800 ph: (02) 6391 3697 fax: (02) 6391 3740 ------------------------------ Date: Thu, 6 Jan 2005 10:52:55 -0800 From: Paul Ramsey Subject: Re: Four Color Theorem Google gives a pretty good answer right away, and even an algorithm. http://www.math.gatech.edu/~thomas/FC/fourcolor.html Sadly, it is quadratic. P Camden Daily wrote: > Does anyone have any experience in dynamically coloring a map with > only 4 colors? I know that it would be easier to just pick out the > colors myself, but I thought perhaps someone out there might have come > up with a good mapscript algorithm to do this. > > I'd imagine the first step would be constructing a table defining > which polygons on the map border each other. Anyone have a good > method of doing that? > > -Camden Daily This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Mon Jan 10 18:33:09 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 10 Jan 2005 21:33:09 -0500 Subject: Four Color Theorem In-Reply-To: Message-ID: I think it might not be that hard to compute the polygon adjacency graph for US Census Tiger data as you have the information about which edges belong to which polygons, at least within a county. I forget is the county boundary polygons use the same unique segment ids in adjacent counties or if there is a duplicate segment with a different unique id. If the later is the case, you can detect if a segment is a county boundary, and then you would have to match cloned segment in the adjacent county by its coordinates. Darn, yet another interesting problem to code and so little time to code them .... -Steve W Richard E. Roger wrote: > > I have used a program to "four-colour" a map. You need to be a bit > careful. The State of New South Wales in Australia has about 7500 > parishes (for land administration purposes), and I wanted to colour a > GIS data set representing them. The program I used first does a swift > greedy pass generating an approximate solution (this took about 30 > seconds on a Sun Ultra 2 with 167 MHz processor, showing how long ago I > tried this). I thought I'd see how long it would take to generate the > full four-colour solution - in the end, I killed the process after about > 3 weeks :-) > > Camden, you're right about needing a table showing which polygons border > each other. My base data set was in an ESRI Arc coverage format, which > meant I could generate and unload the Polygon Adjacency information > (using the "palinfo" command). I had to sort and remove duplicates and > adjust polygon numbers to eliminate the universal polygon. I ran this > through the four-colouring program, and ended up with a table listing > polygon numbers with a colour for each polygon (as an integer). I then > joined this back to the original coverage's attribute data. > > For the four-colouring program, I used Michael Trick's "trick.c" program > from > > http://mat.gsia.cmu.edu/COLOR/solvers/ . > > (Professor Trick is at Carnegie Mellon University. For further > information, I'd suggest having a look at his home page > (http://mat.gsia.cmu.edu/trick/), and at the operations research site > (www.informs.org) .) > > You might also like to look at Professor Joseph Culberson's page at the > University of Alberta (http://www.cs.ualberta.ca/~joe/). > > In summary, I wouldn't try doing this for large data sets, and I would > not do it dynamically - add the colouring beforehand via an attribute. > And consider just doing the initial swift greedy pass to get an > approximate solution - it might be good enough for your purposes. > > Finally, does anyone have a program to compute the polygon adjacency > information for polygons in a shapefile ? > > Cheers > > Richard E. Roger > > > Dr. R. E. Roger NSW Department of > Primary Industries > Spatial Information Officer Systems 161 Kite St > Resource Information Unit Locked Bag 21 > ORANGE NSW 2800 > ph: (02) 6391 3697 fax: (02) 6391 3740 > > ------------------------------ > > Date: Thu, 6 Jan 2005 10:52:55 -0800 > From: Paul Ramsey > Subject: Re: Four Color Theorem > > Google gives a pretty good answer right away, and even an algorithm. > > http://www.math.gatech.edu/~thomas/FC/fourcolor.html > > Sadly, it is quadratic. > > P > > Camden Daily wrote: > > > Does anyone have any experience in dynamically coloring a map with > > only 4 colors? I know that it would be easier to just pick out the > > colors myself, but I thought perhaps someone out there might have come > > up with a good mapscript algorithm to do this. > > > > I'd imagine the first step would be constructing a table defining > > which polygons on the map border each other. Anyone have a good > > method of doing that? > > > > -Camden Daily > > This message is intended for the addressee named and may contain > confidential information. If you are not the intended recipient or > received it in error, please delete the message and notify sender. Views > expressed are those of the individual sender and are not necessarily the > views of their organisation. From temiz at DEPREM.GOV.TR Tue Jan 11 02:52:23 2005 From: temiz at DEPREM.GOV.TR (orkun) Date: Tue, 11 Jan 2005 12:52:23 +0200 Subject: mapserver with python Message-ID: hello I need to build mapscript application with python. I would like see examples and tutors for python. if you supply I will appreciate kind regards Ahmet Temiz ______________________________________ XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From s-bel at VILLE-THONON.FR Tue Jan 11 02:40:00 2005 From: s-bel at VILLE-THONON.FR (=?iso-8859-1?Q?Bel_S=E9bastien?=) Date: Tue, 11 Jan 2005 11:40:00 +0100 Subject: mapscript novice Message-ID: Hello everybody, i'm searching for any mapscript documentation or tutorial. I've used the good mapserver tutorial (http://terrasip.gis.umn.edu/projects/tutorial) but now, i'd like to make a dynamic application with mapscript... Thanks for your help. Sebastien. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jaframe at NET-YAN.COM Tue Jan 11 06:17:01 2005 From: jaframe at NET-YAN.COM (Tony Frame) Date: Tue, 11 Jan 2005 22:17:01 +0800 Subject: Compilation error Message-ID: ----- Original Message ----- From: "Sacha Genoud" To: Sent: Tuesday, 11 January, 2005 3:32 AM Subject: [UMN_MAPSERVER-USERS] Compilation error > Hello > > i have a compilation error with mapserver. This is my configure command: > ./configure --with-gd=/home/sgenoud/gd-2.0.28/ > --with-gdal=/usr/local/bin/gdal-config --with-ogr=/usr/local/bin/gdal-config > --with-php=/home/sgenoud/php-4.3.8/ > --with-mygis=/usr/local/mysql-standard-4.1.7-pc-linux-i686/bin/mysql_configTThis > > > This the result of make: > > gcc -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL > -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL > -DUSE_ICONV -DUSE_PHP_REGEX -I/home/sgenoud/php-4.3.8//regex/.. > -DUSE_MYGIS -I/home/sgenoud/gd-2.0.28/ -I/usr/local/include > -I/usr/include/mysql -mcpu=i486 -fno-strength-reduce shp2img.o -L. > -lmap -L/home/sgenoud/gd-2.0.28//.libs -lgd -ljpeg -lfreetype -lpng -lz > -ljpeg -lfreetype -lpng -lz -ljpeg -L/usr/local/lib -lgdal > -L/usr/lib/mysql -lmysqlclient -lcrypt -lnsl -lm -lz -lc -lnss_files > -lnss_dns -lresolv -lc -lnss_files -lnss_dns -lresolv -lmysqlclient -lc > -lm -lstdc++ -o shp2img > ./libmap.a(mapmygis.o)(.text+0xed8): In function `msMYGISLayerIsOpen': > : undefined reference to `getMYGISLayerInfo' > collect2: ld returned 1 exit status > make: *** [shp2img] Fehler 1 > > I have no idea to solve this problem. > > regards > > Sacha Genoud > I believe this problem has been fixed in the latest stable release 4.4.1. Tony From wouter.schaubroeck at GMAIL.COM Tue Jan 11 07:23:05 2005 From: wouter.schaubroeck at GMAIL.COM (Wouter Schaubroeck) Date: Tue, 11 Jan 2005 16:23:05 +0100 Subject: dbf on a Geotiff Message-ID: Hi all, I've got here several Geotiffs and i have to add a point layer, the problem no is, that i don't have a shape file. Instead i have to work with a dbf file that contains my point co?rdinates. Is there a special tool or something that could do that for me, or perhaps some algorithm? Many thanks and regards Wouter Schaubroeck From sgillies at FRII.COM Tue Jan 11 07:25:06 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 11 Jan 2005 08:25:06 -0700 Subject: mapserver with python In-Reply-To: Message-ID: On Jan 11, 2005, at 3:52 AM, orkun wrote: > hello > > I need to build mapscript application with python. > I would like see examples and tutors for python. > > if you supply I will appreciate > > kind regards > > > Ahmet Temiz > Ahmet, Mapscript how-to docs and API reference are in the MapServer 4.4 source under mapserver/mapscript/doc/ and I also maintain them online at http://users.frii.com/sgillies/projects/mapscript/ Please write if you need more help or clarification about these documents. In the meanwhile, I will try to find some helpful examples. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From kristjan at TARKVARASTUUDIO.EE Tue Jan 11 07:25:16 2005 From: kristjan at TARKVARASTUUDIO.EE (Kristjan Annus) Date: Tue, 11 Jan 2005 17:25:16 +0200 Subject: line with the arrow in the ending point Message-ID: Hi! Does someone know how to draw a line with the arrow at the end like: -------------> thanks Kristjan From sgillies at FRII.COM Tue Jan 11 07:28:17 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 11 Jan 2005 08:28:17 -0700 Subject: mapscript novice In-Reply-To: Message-ID: On Jan 11, 2005, at 3:40 AM, Bel S?bastien wrote: > This is a multi-part message in MIME format. > > ------_=_NextPart_001_01C4F7C9.72C0428A > Content-Type: text/plain; > charset="us-ascii" > Content-Transfer-Encoding: quoted-printable > > Hello everybody, > > i'm searching for any mapscript documentation or tutorial.=20 > > I've used the good mapserver tutorial = > (http://terrasip.gis.umn.edu/projects/tutorial)=20 > but now, i'd like to make a dynamic application with mapscript... > > Thanks for your help. > Sebastien. Sebastien, If you are interested in mapscript for Python, Perl, et al. (not PHP), please refer to the docs under mapserver/mapscript/doc/ in the MapServer source. I also maintain them online at http://users.frii.com/sgillies/projects/mapscript/ PHP MapScript docs have a link from the front page of the MapServer web site. cheers, Sean From fsozzi at INTERCAD.CH Tue Jan 11 07:52:01 2005 From: fsozzi at INTERCAD.CH (Francesco Sozzi) Date: Tue, 11 Jan 2005 16:52:01 +0100 Subject: php_mapscript_44.dll for Oracle Spatial Message-ID: Hi everybody, Anybody know where to find a precompiled php_mapscript_44.dll compatible with Oracle Spatial (or better a fully compatible with win32 binaries)? NOTE: I've just downloaded and installaed windows binaries "ms441oci.zip". Then I've got php_mapscript_44.dll from "mapserver-4.4.1-win32-php4.3.7.zip" from maptools.org. The problem is that this dll is not compatible with Oracle Spatial and I get a PHP error if I try to run map->draw() on a layer from Oracle Spatial. Regards Francesco From fwarmerdam at GMAIL.COM Tue Jan 11 07:53:41 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Tue, 11 Jan 2005 10:53:41 -0500 Subject: dbf on a Geotiff In-Reply-To: <41E3EF59.7040709@gmail.com> Message-ID: On Tue, 11 Jan 2005 16:23:05 +0100, Wouter Schaubroeck wrote: > Hi all, > > I've got here several Geotiffs and i have to add a point layer, the > problem no is, that i don't have a shape file. Instead i have to work > with a dbf file that contains my point co?rdinates. Is there a special > tool or something that could do that for me, or perhaps some algorithm? > > Many thanks and regards > > Wouter Schaubroeck > Wouter, There is a mechanism via OGR to take some non-spatial tablular data sources, and "interprete" an x and y column to display point layers. This can be found in the Wiki at: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?VirtualSpatialData The examples talk about accessing the table via ODBC but in your case you can just specify the path to the .dbf file in your . Skip over the ODBC related stuff and go to the part about creating a virtual data source. You will need a MapServer with OGR support built in. I believe most of the distributed binary builds include OGR. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From flavio at TYDAC.CH Tue Jan 11 08:21:24 2005 From: flavio at TYDAC.CH (Flavio Hendry) Date: Tue, 11 Jan 2005 17:21:24 +0100 Subject: Problems with PHP as Module and as cgi with PROJ Message-ID: hi all as follows: - windows 2003 - apache 2.0.52 - php 4.3.8 - ms 4.4 (php_mapscript_44.dll) - dual processor 1. running php as a module: - everything seems to be running fine. as soon as multiple users access the application, weard things start to happen: when zooming, all at once the wrong map is delivered (other map as selected or other extent) or the application hangs completely, no error in log or whatsoever ... - apache often crashes with the following message: [notice] Parent: child process exited with status 3221226324 -- Restarting. 2. as we suppose that there is a problem running php as a module, we try to run it as cgi With the result that the map files are not read at all with the following message (exactly the same map files as with php a module where they run fine, projections are installed in the default dir "c:\proj"): [MapServer Error]: msProcessProjection(): No such file or directory projection used is epsg:9814 or world:CH1903 (both the same): # CH 1903 / Swiss Oblique Cylindrical <9814> +proj=somerc +lat_0=46d57'08.66"N +lon_0=7d26'22.50"E +ellps=bessel +x_0=600000 +y_0=200000 +towgs84=674.374,15.056,405.346 +units=m +k_0=1 +no_defs <> someone has an idea ? thx. Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at 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 cdaily at GMAIL.COM Tue Jan 11 08:31:46 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Tue, 11 Jan 2005 10:31:46 -0600 Subject: How to access shapefile attributes? In-Reply-To: <008601c4f75a$e5189f90$5ff2fbd0@solo> Message-ID: In order to show addresses on your map, you're going to need to use geocoding (which is not a part of mapserver). The best module I've found so far for that is the perl module Geo::Coder::US. You'll need to download it from CPAN and get it running first. Secondly, you'll need a database for your geocoding. This database can be built from tiger data, but it is very very large and it takes a long time to construct. It's probably best to just grab the files you need for your particular area. You can get the tiger data files you need here: http://www2.census.gov/geo/tiger/tgrcd108/ Once you have them, you don't need to unzip them. Just use the import_tiger_zip.pl script that came with the Geo::Coder::US source. Use the command "perl import_tiger_zip.pl geocoder.db *.zip" to construct a database named geocoder.db from all of the zip files. This process can take a very, very long time. (I don't know how to do this in windows, but that's how you can do it in linux). Now, if you're using PHP mapscript, you'll need a way for PHP to talk to Perl. The best way I've found is via the command line on a linux box. I wrote a little helper Perl script called geocode.pl that looks like this: ==================================== #!/usr/bin/perl use Geo::Coder::US; Geo::Coder::US->set_db( "/web_system/data/tiger/geocoder.db" ); my $address = $ARGV[0]; my ($return) = Geo::Coder::US->geocode( $address ); print $return->{lat}; print "\n"; print $return->{long}; print "\n"; ===================================== Then, in my PHP, I geocode addresses like this: ($address holds the address string I'm geocoding) ===================================== exec("/web_system/geocode.pl \"$address\"", $results); $latitude = $results[0]; $longitude = $results[1]; ===================================== That should get you started. Once you have the $latitude and $longitude values for each address, you can plot them out as points on your map. This is really a very simple implementation of the Geo::Coder::US module that doesn't take into account some of it's more advanced features, but it's a good enough start. -Camden On Mon, 10 Jan 2005 16:25:23 -0500, Jeff Portwine wrote: > I'm just learning how to use mapscript for displaying my maps, and I am > trying to figure out how you would access the attribute data in your > shapefiles? I have a layer of roads, and I'm using the Tiger data which > has fields for street names, address ranges, and zipcodes. Eventually > what I'd like to do is to be able to read a list of addresses and place a > marker on the map at each of those addresses. > > I'm not exactly sure how to do that even when I learn how to access the > data.... there was some code posted to this list sometime back for getting > the coordinates of a street address and I could possibly use that, but it > requires a specific set of fields to be present in the shape file and I'd > have to do some manipulation of the fields I actually have to use that code > and that might be just as tricky as writing the code myself :) > > Thanks for any pointers, > > Jeff > From kenlord at GMAIL.COM Tue Jan 11 09:31:50 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Tue, 11 Jan 2005 09:31:50 -0800 Subject: dbf on a Geotiff In-Reply-To: <41E3EF59.7040709@gmail.com> Message-ID: Hi Wouter, If you know someone out your way that has access to ArcGIS software, a table of coordinates can quickly be made into a shapefile. You may also be able to do it with by placing your table in WKT or GML format, importing it into JUMP Workbench (free GIS software from www.vividsolutions.com) ... and saving the dataset as a shapefile. Cheers, Ken Lord Vancouver BC On Tue, 11 Jan 2005 16:23:05 +0100, Wouter Schaubroeck wrote: > Hi all, > > I've got here several Geotiffs and i have to add a point layer, the > problem no is, that i don't have a shape file. Instead i have to work > with a dbf file that contains my point co?rdinates. Is there a special > tool or something that could do that for me, or perhaps some algorithm? > > Many thanks and regards > > Wouter Schaubroeck > From osgis.lists at GMAIL.COM Tue Jan 11 10:28:46 2005 From: osgis.lists at GMAIL.COM (David Bitner) Date: Tue, 11 Jan 2005 12:28:46 -0600 Subject: hash table error Message-ID: MapServer version 4.4.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE I am getting the following error in my mapserver log with the following map file: msFreeHashItems(): Hash Table Error. Can't free Null table The map draws, but does not contain the postgis layers. Map File: MAP NAME "macnoise" DEBUG ON STATUS ON EXTENT 475600 4962000 492500 4974000 SIZE 500 400 SHAPEPATH "../data" SYMBOLSET "../etc/symbols.sym" FONTSET "../etc/fonts.txt" IMAGETYPE jpeg IMAGECOLOR 245 226 168 UNITS METERS WEB TEMPLATE "mapserver.html" IMAGEPATH "/var/apache/htdocs/tmp/" IMAGEURL "../tmp/" END QUERYMAP STATUS ON SIZE 1 1 COLOR 255 255 0 STYLE HILITE END LEGEND STATUS ON KEYSIZE 21 14 TEMPLATE "legend.html" IMAGECOLOR 240 232 200 END SCALEBAR STATUS EMBED COLOR 255 255 255 OUTLINECOLOR 255 255 255 BACKGROUNDCOLOR 0 102 153 IMAGECOLOR 0 102 153 TRANSPARENT OFF UNITS MILES INTERVALS 2 SIZE 150 5 STYLE 1 POSITION LL LABEL TYPE BITMAP SIZE SMALL OFFSET 0 0 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 255 255 255 PARTIALS TRUE FORCE FALSE END END SYMBOL NAME "Intersates" TYPE PIXMAP IMAGE "../etc/interstate-shield.png" END OUTPUTFORMAT NAME "PNG" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE PC256 TRANSPARENT FALSE END OUTPUTFORMAT NAME "jpeg" MIMETYPE "image/jpeg" DRIVER "GD/JPEG" EXTENSION "jpg" IMAGEMODE RGB TRANSPARENT FALSE END PROJECTION "proj=utm" "ellps=GRS80" "zone=15" "north" "no_defs" END LAYER NAME "Landmark Areas" GROUP "Landmarks" STATUS ON DATA "tlglmk_areas_a" TYPE POLYGON CLASSITEM "F_CLASS" UNITS METERS SIZEUNITS PIXELS LABELITEM "F_NAME" TOLERANCE 0 TOLERANCEUNITS PIXELS CLASS NAME "Water" EXPRESSION /H10|H30/ LABEL TYPE TRUETYPE FONT "arial" SIZE 5 MINSIZE 4 MAXSIZE 256 POSITION CC OFFSET 0 0 ANGLE 0.000000 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE 50 COLOR 24 69 128 ANTIALIAS TRUE PARTIALS FALSE FORCE FALSE END STYLE SYMBOL 0 COLOR 179 198 213 OUTLINECOLOR 159 178 193 SIZE 1 MINSIZE 1 MAXSIZE 100 END END CLASS NAME "Greenspace" EXPRESSION /D81|D82|D83|D85|D86|D87|D88|D89/ LABEL TYPE TRUETYPE FONT "arial" SIZE 5 MINSIZE 4 MAXSIZE 256 POSITION CC OFFSET 0 0 ANGLE 0.000000 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE 100 COLOR 122 115 102 ANTIALIAS TRUE PARTIALS FALSE FORCE FALSE END STYLE SYMBOL 0 COLOR 220 220 174 OUTLINECOLOR 220 220 174 SIZE 1 MINSIZE 1 MAXSIZE 100 END END CLASS NAME "Airports" EXPRESSION /D51/ STYLE SYMBOL 0 COLOR 222 215 202 OUTLINECOLOR 197 197 140 SIZE 1 MINSIZE 1 MAXSIZE 100 END END CLASS NAME "Military" EXPRESSION /D10/ STYLE SYMBOL 0 COLOR 242 235 222 OUTLINECOLOR 197 197 140 SIZE 1 MINSIZE 1 MAXSIZE 100 END END METADATA LEGEND_TITLE "Landmark Areas" LEGEND_META_GROUP "foreground" LEGEND_DISPLAY_LEVEL "3" END END LAYER NAME "Airport Pavement" GROUP "Landmarks" STATUS ON DATA "mac_airports_20040213" TYPE POLYGON CLASSITEM "TYPE" UNITS METERS SIZEUNITS PIXELS LABELITEM "AIRPORT" TOLERANCE 0 TOLERANCEUNITS PIXELS CLASS NAME "Airport Pavement" EXPRESSION /Pavement|PAVEMENT/ STYLE SYMBOL 0 COLOR 190 181 177 SIZE 1 MINSIZE 1 MAXSIZE 100 END END END LAYER NAME landmarks_legend_control GROUP "Landmarks" MAXSCALE 0 STATUS OFF TYPE polygon METADATA GROUP_MAXSCALE "600000" LEGEND_TITLE "Landmark Areas" LEGEND_META_GROUP "foreground" LEGEND_DISPLAY_LEVEL "1" END END LAYER NAME "Revised Draft 2007 Mitigated Blocks" GROUP "Noise" STATUS ON DATA "blocks_2007m_0304" TYPE POLYGON CLASSITEM "revmit2007" UNITS METERS SIZEUNITS PIXELS LABELITEM "revmit2007" LABELMAXSCALE 20000 TOLERANCE 0 TOLERANCEUNITS PIXELS FILTER "1" FILTERITEM "blkstocons" CLASS NAME "Block 65 DNL" EXPRESSION ([revmit2007]>=65) LABEL TYPE TRUETYPE FONT "arial" SIZE 7 POSITION CC OFFSET 0 0 END STYLE SYMBOL 0 COLOR 0 45 0 OUTLINECOLOR 115 115 115 SIZE 1 MINSIZE 1 MAXSIZE 100 ANTIALIAS FALSE END END CLASS NAME "Block 64 DNL" EXPRESSION /64/ LABEL TYPE TRUETYPE FONT "arial" SIZE 7 POSITION CC OFFSET 0 0 END STYLE SYMBOL 0 COLOR 0 95 0 OUTLINECOLOR 115 115 115 SIZE 1 MINSIZE 1 MAXSIZE 100 ANTIALIAS FALSE END END CLASS NAME "Block 63 DNL" EXPRESSION /63/ LABEL TYPE TRUETYPE FONT "arial" SIZE 7 POSITION CC OFFSET 0 0 END STYLE SYMBOL 0 COLOR 0 135 0 OUTLINECOLOR 115 115 115 SIZE 1 MINSIZE 1 MAXSIZE 100 ANTIALIAS FALSE END END CLASS NAME "Block 62 DNL" EXPRESSION /62/ LABEL TYPE TRUETYPE FONT "arial" SIZE 7 POSITION CC OFFSET 0 0 END STYLE SYMBOL 0 COLOR 0 175 0 OUTLINECOLOR 115 115 115 SIZE 1 MINSIZE 1 MAXSIZE 100 ANTIALIAS FALSE END END CLASS NAME "Block 61 DNL" EXPRESSION /61/ LABEL TYPE TRUETYPE FONT "arial" SIZE 7 POSITION CC OFFSET 0 0 END STYLE SYMBOL 0 COLOR 0 215 0 OUTLINECOLOR 115 115 115 SIZE 1 MINSIZE 1 MAXSIZE 100 ANTIALIAS FALSE END END CLASS NAME "Block 60 DNL" EXPRESSION /60/ LABEL TYPE TRUETYPE FONT "arial" SIZE 7 POSITION CC OFFSET 0 0 END STYLE SYMBOL 0 COLOR 0 255 0 OUTLINECOLOR 115 115 115 SIZE 1 MINSIZE 1 MAXSIZE 100 ANTIALIAS FALSE END END END LAYER NAME "Revised Draft 2007 Mitigated Blocks - complete" GROUP "Noise" STATUS ON DATA "blocks_2007m_0304" TYPE POLYGON CLASSITEM "STATUS96" UNITS METERS SIZEUNITS PIXELS LABELITEM "revmit2007" LABELMAXSCALE 20000 TOLERANCE 0 TOLERANCEUNITS PIXELS FILTER "1" FILTERITEM "blkstocons" CLASS NAME "Completed in 96 Program" EXPRESSION /Complete_96/ LABEL TYPE TRUETYPE FONT "arial" SIZE 7 POSITION CC OFFSET 0 0 END STYLE SYMBOL 0 COLOR 250 80 50 OUTLINECOLOR 115 115 115 SIZE 1 MINSIZE 1 MAXSIZE 100 ANTIALIAS FALSE END END END LAYER NAME "Flight Tracks Grid" GROUP "flighttracks" STATUS ON CONNECTION //intentionally left out for email CONNECTIONTYPE postgis DATA "the_geom from (select count(f.oid) as count,g.the_geom as the_geom from mkgrid('%mapext%',1000)as g, flighttrack as f where g.the_geom && f.targets and (f.stime between '%sDate%' and '%eDate%' or f.etime between '%sDate%' and '%eDate%') group by g.the_geom)as tracks USING UNIQUE the_geom USING SRID=-1" TYPE POLYGON TRANSPARENCY 50 CLASSITEM "count" CLASS EXPRESSION ([count]>0 and [count]<=10) COLOR 200 200 200 OUTLINECOLOR 255 255 255 END CLASS EXPRESSION ([count]>10 and [count]<=20) COLOR 130 130 130 OUTLINECOLOR 255 255 255 END CLASS EXPRESSION ([count]>20) COLOR 60 60 60 OUTLINECOLOR 255 255 255 END END LAYER NAME "Roads" GROUP "Roads" STATUS ON DATA "tlg_roads_l" TYPE LINE CLASSITEM "F_CLASS" UNITS METERS SIZEUNITS PIXELS LABELITEM "STREETNAME" TOLERANCE 0 TOLERANCEUNITS PIXELS TEMPLATE "/var/apache/htdocs/maps/geocode_result.php" CLASS NAME "Interstates" EXPRESSION /A10|A15/ STYLE SYMBOL 8 COLOR 230 101 17 SIZE 7 MINSIZE 1 MAXSIZE 100 ANTIALIAS TRUE END STYLE SYMBOL 8 COLOR 255 153 0 SIZE 4 MINSIZE 1 MAXSIZE 100 ANTIALIAS TRUE END END CLASS NAME "Primary Highways" EXPRESSION /A20|A25/ MAXSCALE 300000 STYLE SYMBOL 8 COLOR 205 120 45 SIZE 6 MINSIZE 1 MAXSIZE 100 ANTIALIAS TRUE END STYLE SYMBOL 8 COLOR 249 208 144 SIZE 3 MINSIZE 1 MAXSIZE 100 ANTIALIAS TRUE END END CLASS NAME "Secondary Highways" EXPRESSION /A30/ MAXSCALE 150000 STYLE SYMBOL 8 COLOR 171 158 137 SIZE 4 MINSIZE 1 MAXSIZE 100 ANTIALIAS TRUE END STYLE SYMBOL 8 COLOR 254 244 131 SIZE 2 MINSIZE 1 MAXSIZE 100 ANTIALIAS TRUE END END CLASS NAME "Local Roads" MAXSCALE 60000 STYLE SYMBOL 0 COLOR 171 158 136 OUTLINECOLOR 255 255 255 SIZE 1 MINSIZE 1 MAXSIZE 100 ANTIALIAS TRUE END END METADATA LEGEND_TITLE "Roads" LEGEND_META_GROUP "foreground" LEGEND_DISPLAY_LEVEL "3" END END LAYER NAME "Roads Annotation" GROUP "Roads" STATUS ON DATA "tlg_roads_l" TYPE ANNOTATION CLASSITEM "F_CLASS" UNITS METERS SIZEUNITS PIXELS LABELITEM "HIGHWAY_NU" TOLERANCE 0 TOLERANCEUNITS PIXELS REQUIRES "[Roads]" CLASS NAME "Interstates" EXPRESSION /A10|A15/ LABEL TYPE TRUETYPE FONT "arial" SIZE 8 MINSIZE 4 MAXSIZE 6 POSITION CC OFFSET 0 0 ANGLE 0.000000 BUFFER 0 MINDISTANCE 200 MINFEATURESIZE -1 COLOR 255 255 255 ANTIALIAS TRUE PARTIALS TRUE FORCE FALSE END STYLE SYMBOL 1 SIZE 20 MINSIZE 1 MAXSIZE 100 ANTIALIAS TRUE END END CLASS NAME "Primary Highways" EXPRESSION /A20|A25/ MAXSCALE 150000 TEXT ([highway_nu]) LABEL TYPE TRUETYPE FONT "arial" SIZE 7 MINSIZE 4 MAXSIZE 256 POSITION CC OFFSET 0 0 ANGLE 0.000000 BUFFER 0 MINDISTANCE 200 MINFEATURESIZE AUTO COLOR 0 0 0 ANTIALIAS TRUE PARTIALS TRUE FORCE FALSE END STYLE SYMBOL 5 COLOR 255 255 255 OUTLINECOLOR 0 0 0 SIZE 16 MINSIZE 1 MAXSIZE 100 END END CLASS NAME "Secondary Highways" EXPRESSION /A30/ MAXSCALE 60000 TEXT ([STREETALL]) LABEL TYPE TRUETYPE FONT "arial" SIZE 7 MINSIZE 4 MAXSIZE 256 POSITION UC OFFSET 0 0 ANGLE AUTO BUFFER 0 MINDISTANCE 200 MINFEATURESIZE -1 COLOR 200 0 0 OUTLINECOLOR 245 226 168 ANTIALIAS TRUE PARTIALS TRUE FORCE FALSE END END CLASS NAME "Local Roads" EXPRESSION /40/ MAXSCALE 40000 TEXT ([STREETALL]) LABEL TYPE TRUETYPE FONT "arial" SIZE 7 MINSIZE 4 MAXSIZE 256 POSITION UC OFFSET 0 0 ANGLE AUTO BUFFER 0 MINDISTANCE 200 MINFEATURESIZE -1 COLOR 102 102 102 OUTLINECOLOR 245 226 168 ANTIALIAS TRUE PARTIALS TRUE FORCE FALSE END END END LAYER NAME roads_legend_control GROUP "Roads" MAXSCALE 0 STATUS OFF TYPE polygon METADATA GROUP_MAXSCALE "600000" LEGEND_TITLE "Roads" LEGEND_META_GROUP "foreground" LEGEND_DISPLAY_LEVEL "1" END END LAYER NAME "Cities" GROUP "Cities" STATUS ON DATA "citybnd" TYPE POLYGON UNITS METERS SIZEUNITS PIXELS MINSCALE 20000 LABELITEM "NAME" TOLERANCE 0 TOLERANCEUNITS PIXELS CLASS NAME "Cities" LABEL TYPE TRUETYPE FONT "arial" SIZE 8 MINSIZE 4 MAXSIZE 256 POSITION CC OFFSET 0 0 ANGLE 0.000000 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE 40 COLOR 189 0 0 SHADOWCOLOR 255 255 0 ANTIALIAS TRUE PARTIALS TRUE FORCE TRUE END STYLE SYMBOL 0 OUTLINECOLOR 255 0 0 SIZE 2 MINSIZE 1 MAXSIZE 100 END END METADATA LEGEND_TITLE "Cities" LEGEND_META_GROUP "foreground" LEGEND_DISPLAY_LEVEL "1" END END LAYER NAME "Revised Draft 2007 Mitigated Contours" GROUP "Noise" STATUS ON DATA "m2007_vmar04_pm3b_ContourLine_Lines" TYPE LINE CLASSITEM "Level" MAXSCALE 1000000 LABELITEM "Level" CLASS NAME "5db increments" EXPRESSION /60|65|70|75/ MAXSCALE 1000000 TEXT ([Level] DNL) LABEL TYPE TRUETYPE FONT "arial-bold" SIZE 10 OFFSET 0 0 END STYLE SYMBOL 8 COLOR 0 0 0 SIZE 2 ANTIALIAS TRUE END END CLASS NAME "1db increments" MAXSCALE 60000 STYLE SYMBOL 8 COLOR 0 0 0 SIZE 1 END END METADATA LEGEND_TITLE "Revised Draft 2007 Mitigated Contours" LEGEND_META_GROUP "foreground" LEGEND_DISPLAY_LEVEL "3" END END LAYER NAME "Flight Tracks" GROUP "flighttracks" STATUS ON CONNECTION //intentionally left out for email CONNECTIONTYPE postgis DATA "targets from (select * from flighttrack where stime between '%sDate%' and '%eDate%' or etime between '%sDate%' and '%eDate%')as tracks USING UNIQUE opnum USING SRID=-1" TYPE LINE CLASSITEM "adflag" CLASS EXPRESSION /A/ COLOR 0 255 0 END CLASS EXPRESSION /D/ COLOR 255 0 0 END CLASS COLOR 160 160 160 END END LAYER NAME "draft" STATUS DEFAULT TYPE POINT TRANSFORM FALSE TRANSPARENCY 5 CLASS NAME "draft" TEXT "DRAFT" LABEL TYPE TRUETYPE FONT "arial-bold" SIZE 40 POSITION LR OFFSET 0 0 COLOR 236 240 238 OUTLINECOLOR 108 108 108 ANTIALIAS TRUE PARTIALS TRUE FORCE TRUE END STYLE SYMBOL 8 COLOR 230 230 230 SIZE 22 END END FEATURE TEXT "draft" POINTS 0 0 END END END END From fsimon at UNIVALI.BR Tue Jan 11 10:30:56 2005 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Tue, 11 Jan 2005 16:30:56 -0200 Subject: php_mapscript_44.dll for Oracle Spatial In-Reply-To: <001e01c4f7f5$7d6cff80$1901a8c0@Franz1> Message-ID: Hi Francesco, Sorry, but here in the lab I don't use windows binaries. I'm trying to compile a simple win binaries, but I didn't have time to finished it. I believe that you can find the binaries and libs with native Oracle Spatial support here: "http://hobu.stat.iastate.edu/mapserver/build_output/4_4_1/oracle/binary". I recommend to use 4.4.1 version, exist a little bug with old 4.4 version for Windows. Thanks. --------------------------------------------------- Fernando Simon Mapserver and Oracle Spatial developer G10 - Laborat?rio de Computa??o Aplicada - Brazil http://g10.cttmar.univali.br - UNIVALI/Cttmar --------------------------------------------------- Citando Francesco Sozzi : > Hi everybody, > > Anybody know where to find a precompiled php_mapscript_44.dll > compatible > with Oracle Spatial (or better a fully compatible with win32 > binaries)? > > NOTE: > I've just downloaded and installaed windows binaries > "ms441oci.zip". Then > I've got php_mapscript_44.dll from > "mapserver-4.4.1-win32-php4.3.7.zip" from > maptools.org. The problem is that this dll is not compatible with > Oracle > Spatial and I get a PHP error if I try to run map->draw() on a > layer from > Oracle Spatial. > > Regards > > Francesco > ------------------------------------------------- Univali - Webmail - http://webmail.univali.br From kristjan at TARKVARASTUUDIO.EE Tue Jan 11 12:32:22 2005 From: kristjan at TARKVARASTUUDIO.EE (Kristjan Annus) Date: Tue, 11 Jan 2005 22:32:22 +0200 Subject: line with the arrow in the ending point In-Reply-To: <1105472846.5700.16.camel@katrin> Message-ID: Mapserver Wiki describes how to make a line with arrows. But what I want is a line with just one arrow symbol at the end of it. Kristjan >Hi Kristjan, > >you can find an example at: >http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?SymbolExamples > >HTH Nicol > > > >Am Dienstag, den 11.01.2005, 17:25 +0200 schrieb Kristjan Annus: > > >>Hi! >> >>Does someone know how to draw a line with the arrow at the end like: >>-------------> >> >>thanks >>Kristjan >> >> > > > From kristjan at TARKVARASTUUDIO.EE Tue Jan 11 12:46:53 2005 From: kristjan at TARKVARASTUUDIO.EE (Kristjan Annus) Date: Tue, 11 Jan 2005 22:46:53 +0200 Subject: line with the arrow in the ending point In-Reply-To: <41E43AA9.1020804@airstreamcomm.net> Message-ID: They are polylines. > Are they single line segments, or polylines (multi-segment)? > > bobb > > Kristjan Annus wrote: > >> Mapserver Wiki describes how to make a line with arrows. >> But what I want is a line with just one arrow symbol at the end >> of it. >> >> Kristjan >> >> >> >>> Hi Kristjan, >>> >>> you can find an example at: >>> http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?SymbolExamples >>> >>> HTH Nicol >>> >>> >>> >>> Am Dienstag, den 11.01.2005, 17:25 +0200 schrieb Kristjan Annus: >>> >>> >>> >>> >>>> Hi! >>>> >>>> Does someone know how to draw a line with the arrow at the end like: >>>> -------------> >>>> >>>> thanks >>>> Kristjan >>>> >>>> >>>> >>> >>> >>> >> >> >> >> >> > From asimpson at I-55.COM Tue Jan 11 12:55:50 2005 From: asimpson at I-55.COM (Simpson) Date: Tue, 11 Jan 2005 14:55:50 -0600 Subject: WFS Geometry Type In-Reply-To: <41E437D6.5060003@tarkvarastuudio.ee> Message-ID: Greetings, Why does a WFS GetFeature on a MULTIPOLYGON return features of type POLYGON? Thanks for any advice, Drew. MapServer version 4.4.1 ================= TABLE DEFINITION ================================== \d eden_isles Table "public.eden_isles" Column | Type | Modifiers -------------+------------------------+----------- name | character(24) | not null description | character varying(256) | the_geom | geometry | Indexes: "eden_isles_pkey" primary key, btree (name) Check constraints: "$1" CHECK (srid(the_geom) = 32615) "$2" CHECK (geometrytype(the_geom) = 'MULTIPOLYGON'::text OR the_geom IS NULL) ================== CLIP FROM GETFEATURE ============================ - - - - 808448.436179,3346874.759063 809028.768700,3347512.748240 - - - - 808648.922836,3347482.383867 808689.408666,3347512.748240 808731.918788,3347510.723948 809028.768700,3347347.678164 808999.829937,3347312.515766 808942.349927,3347235.951690 808624.655123,3346894.569925 808600.569796,3346874.759063 808518.422442,3346891.416892 808492.635965,3346938.354231 808485.550944,3347008.192288 808490.611673,3347028.435203 808472.393050,3347095.236823 808448.436179,3347196.742520 808648.922836,3347482.383867 eden_isles_marina marina From asimpson at I-55.COM Tue Jan 11 12:58:58 2005 From: asimpson at I-55.COM (Simpson) Date: Tue, 11 Jan 2005 14:58:58 -0600 Subject: GeoTools to WFS MapServer Intersect(s) Message-ID: Greetings, Should the xml op type be or when one makes a request to a WFS server? Geotools encodes as and MS expects , so throws exception. Thanks, Drew. From assefa at DMSOLUTIONS.CA Tue Jan 11 13:50:04 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Tue, 11 Jan 2005 16:50:04 -0500 Subject: GeoTools to WFS MapServer Intersect(s) In-Reply-To: Message-ID: The problem seems to be in Mapserver. The capabilites document advertize this spatial operator as but the operator seems to bre Intersects when doing the requests. I have enetred a bug on this (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1163). Unfortunatly this change may affect applications depending on it but It needs to be done and will be available in the next releases. Best Regards, Simpson wrote: > Greetings, > > Should the xml op type be or when one makes a > request to a WFS server? > Geotools encodes as and MS expects , so throws > exception. > > Thanks, > Drew. > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From fwarmerdam at GMAIL.COM Tue Jan 11 14:13:21 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Tue, 11 Jan 2005 17:13:21 -0500 Subject: WFS Geometry Type In-Reply-To: Message-ID: On Tue, 11 Jan 2005 14:55:50 -0600, Simpson wrote: > Greetings, > > Why does a WFS GetFeature on a MULTIPOLYGON return features of type POLYGON? > > Thanks for any advice, > Drew. Drew, Hopefully someone else can provide a more comprehensive answer, but I believe the problem is that the shapeObj (the internal geometry object for MapServer) does not support the full OGC simple feature model. So if MULTIPOLYGONS are read from something like OGR they are turned into shapeObjs with a ring for each ring in each of the original polygons in the multipolygon, but all distinctions about which polygon the ring came from, or even which rings are exterior rings are lost. Then when the WFS server creates the GML it just creates a simple POLYGON geometry even though it consists of multiple distinct polygons. For MapServer rendering purposes, there is no need for the full OGC geometry model. The simplification only causes problems for stuff like WFS serving. We see a somewhat similar issue with WFS attributes as shapeObj attributes are typeless. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From wouter.schaubroeck at GMAIL.COM Tue Jan 11 14:35:33 2005 From: wouter.schaubroeck at GMAIL.COM (Wouter Schaubroeck) Date: Tue, 11 Jan 2005 23:35:33 +0100 Subject: Dynamically creating a 90% polygon Message-ID: Hi all, Is there a way to draw dynamically a polygon? I have a set of points and i have to draw dynamically a polygon over them (actually a polygon that covers 90% of those points), I've looked in the wiki, and on the web, but all i found was a plugin for ArcGis 8.x :-( (the plugin was open source) Many thanks and regards Wouter Schaubroeck From cmcguigan at EARTHCOMBER.COM Tue Jan 11 15:24:37 2005 From: cmcguigan at EARTHCOMBER.COM (Colin McGuigan) Date: Tue, 11 Jan 2005 17:24:37 -0600 Subject: Labelling cities and lakes with Tiger data (EntityNames In-Reply-To: <41E454B5.2000602@gmail.com> Message-ID: I've got Mapserver serving up some tiger data, and everything's working well, except for one point that's bothering me: cities and lakes aren't labelled. I've loaded all the Tiger data into PostGIS. There's an EntityNames table that holds the names I'm looking for, but there seems to be absolutely no way to join it to anything else. The only field with any uniqueness (aside from name, of course) is fips -- but no other table seems to hold corresponding values. I can only assume somewhere there is a point or polygon that defines, eg, "Lake Michigan", but I can't seem to find it to save my life. Anyone run into this before? --Colin McGuigan From woodbri at SWOODBRIDGE.COM Tue Jan 11 16:22:58 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 11 Jan 2005 19:22:58 -0500 Subject: Labelling cities and lakes with Tiger data (EntityNames In-Reply-To: <41E46035.9010706@earthcomber.com> Message-ID: There is a tiger file that has internal points of all polygons. you can use this for a label point. On the other hand, if you just have mapserver label the polygon it will place the label on the polygon, only you don't have a lot of control where. Another thing you could do is compute the average lat/long of the polygon points which will give you something like a centroid, but this is not garraunteed to be on the polygon, think of a polygon like the letter "C", and it will be floating inside the "C" but not on the "C". -Steve W. Colin McGuigan wrote: > I've got Mapserver serving up some tiger data, and everything's working > well, except for one point that's bothering me: cities and lakes aren't > labelled. > > I've loaded all the Tiger data into PostGIS. There's an EntityNames > table that holds the names I'm looking for, but there seems to be > absolutely no way to join it to anything else. The only field with any > uniqueness (aside from name, of course) is fips -- but no other table > seems to hold corresponding values. I can only assume somewhere there > is a point or polygon that defines, eg, "Lake Michigan", but I can't > seem to find it to save my life. > > Anyone run into this before? > > --Colin McGuigan > From uli.rothstein at CCGIS.DE Tue Jan 11 23:49:17 2005 From: uli.rothstein at CCGIS.DE (Uli Rothstein (CCGIS)) Date: Wed, 12 Jan 2005 08:49:17 +0100 Subject: Oracle DATA problem as WFS Message-ID: Hi, we have a problem using MapServer as WFS. The WMS connection works fine we get a map. The WFS on the same connection returns a nice capabilities doc but DescribeFeature will not give us a list of features. --- This is our MAP file snippet: LAYER NAME "ALK_WFS" STATUS ON METADATA "WFS_SRS" "epsg:31467" "WFS_TITLE" "spatial" "WFS_FEATURE_INFO_MIME_TYPE" "text/html" "WFS_EXTENT" "3300000 5400000 3500000 5650000" END CONNECTIONTYPE oraclespatial CONNECTION "*****" DATA "GEO_COORD_ AS GEOM, GMNR AS ITEM_GEMARKUNG, FLNR AS ITEM_FLUR, FSNR AS ITEM_FLSTCK, FUNR AS ITEM_NENNER, QUELLE AS QUELLE FROM FLO.FLO_AL125_AGGREGA_VW USING SRID 82027" TYPE POLYGON DUMP TRUE PROJECTION "init=epsg:31467" END END --- We tried several DATA strings, this is one of them: DATA "GEO_COORD_ FROM (SELECT GMNR AS ITEM_GEMARKUNG, FLNR AS ITEM_FLUR, FSNR AS ITEM_FLSTCK, FUNR AS ITEM_NENNER, QUELLE AS QUELLE FROM FLO.FLO_AL125_AGGREGA_VW) USING SRID 82027" To no avail. Any ideas? Best regards, Arnulf From temiz at DEPREM.GOV.TR Wed Jan 12 02:28:31 2005 From: temiz at DEPREM.GOV.TR (orkun) Date: Wed, 12 Jan 2005 12:28:31 +0200 Subject: mapserver with python In-Reply-To: Message-ID: Sean Gillies wrote: > On Jan 11, 2005, at 3:52 AM, orkun wrote: > >> hello >> >> I need to build mapscript application with python. >> I would like see examples and tutors for python. >> >> if you supply I will appreciate >> >> kind regards >> >> >> Ahmet Temiz >> > > Ahmet, > > Mapscript how-to docs and API reference are in the MapServer 4.4 > source under > > mapserver/mapscript/doc/ > > and I also maintain them online at > > http://users.frii.com/sgillies/projects/mapscript/ > > Please write if you need more help or clarification about these > documents. In the meanwhile, I will try to find some helpful examples. > > cheers, > Sean > > -- > Sean Gillies > sgillies at frii dot com > http://users.frii.com/sgillies > > > Sean, Thank you for your interest. Your web site is highly informative on the subject of python_mapscript. I am not experienced in python, so additional examples will be useful for me. I dealt with php_mapscript. But for better performance, I want to try python . I want to know your idea about how you compare python with php. kind regards Ahmet Temiz ______________________________________ XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From fsimon at UNIVALI.BR Wed Jan 12 03:23:15 2005 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Wed, 12 Jan 2005 09:23:15 -0200 Subject: Oracle DATA problem as WFS In-Reply-To: <41E4D67D.4010607@ccgis.de> Message-ID: Hi, I believe that the problem is with Mapserver version, I don't know if the 4.2 and older work, only 4.4 and newer. If you are using the 4.4 version you need to define the "unique column" in your data string. Like: DATA "GEOM FROM (SELECT GEO_COORD_ AS GEOM, GMNR AS ITEM_GEMARKUNG, FLNR AS ITEM_FLUR, FSNR AS ITEM_FLSTCK, FUNR AS ITEM_NENNER, QUELLE AS QUELLE FROM FLO.FLO_AL125_AGGREGA_VW) USING UNIQUE "" SRID 82027". Where the "" is your a numeric column that store the unique identifier for the rows in your table (usually the primary key). Thanks. ---------------------------------------------------- Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://g10.cttmar.univali.br - UNIVALI/CTTMAR ---------------------------------------------------- Citando "Uli Rothstein (CCGIS)" : > Hi, > we have a problem using MapServer as WFS. The WMS connection works > fine we > get a map. The WFS on the same connection returns a nice > capabilities doc > but DescribeFeature will not give us a list of features. > > > targetNamespace="http://www.ttt.org/myns" > xmlns:myns="http://www.ttt.org/myns" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns="http://www.w3.org/2001/XMLSchema" > xmlns:gml="http://www.opengis.net/gml" > elementFormDefault="qualified" version="0.1" > > > schemaLocation="../gml/2.1.1/feature.xsd" /> > > type="myns:ALK_WFS_Type" > substitutionGroup="gml:_Feature" /> > > > > > > > > > > > > > > > --- > This is our MAP file snippet: > > LAYER > NAME "ALK_WFS" > STATUS ON > METADATA > "WFS_SRS" "epsg:31467" > "WFS_TITLE" "spatial" > "WFS_FEATURE_INFO_MIME_TYPE" "text/html" > "WFS_EXTENT" "3300000 5400000 3500000 5650000" > END > CONNECTIONTYPE oraclespatial > CONNECTION "*****" > DATA "GEO_COORD_ AS GEOM, GMNR AS ITEM_GEMARKUNG, FLNR AS > ITEM_FLUR, > FSNR AS ITEM_FLSTCK, FUNR AS ITEM_NENNER, QUELLE AS QUELLE FROM > FLO.FLO_AL125_AGGREGA_VW USING SRID 82027" > TYPE POLYGON > DUMP TRUE > PROJECTION > "init=epsg:31467" > END > END > --- > > We tried several DATA strings, this is one of them: > > DATA "GEO_COORD_ FROM (SELECT GMNR AS ITEM_GEMARKUNG, FLNR AS > ITEM_FLUR, > FSNR AS ITEM_FLSTCK, FUNR AS ITEM_NENNER, QUELLE AS QUELLE FROM > FLO.FLO_AL125_AGGREGA_VW) USING SRID 82027" > > To no avail. Any ideas? > > Best regards, > Arnulf > ------------------------------------------------- Univali - Webmail - http://webmail.univali.br From mapserver at GISMAP.CH Wed Jan 12 04:44:38 2005 From: mapserver at GISMAP.CH (Roman Meier) Date: Wed, 12 Jan 2005 13:44:38 +0100 Subject: Delete inline features Message-ID: Hi list I'm using UMN Mapserver 4.x-CGI. I can add new features in an inline-feature-layer by URL. Is there also a way to delete... 1) an existing one ? 2) all inline features ? Any ideas? Thanks in advance... Roman From wbronsema at DMSOLUTIONS.CA Wed Jan 12 05:11:29 2005 From: wbronsema at DMSOLUTIONS.CA (William Bronsema) Date: Wed, 12 Jan 2005 08:11:29 -0500 Subject: Problems with PHP as Module and as cgi with PROJ In-Reply-To: Message-ID: Hi Flavio, Just as an FYI - I was at a PHP conference last March and I spoke with several of the developers in person and they highly recommend to NOT use Apache 2 especially when running PHP as a module. They indicated that they focus there attention on making sure that PHP is bullet-proof for 1.3.x. That is what I understood their position to be concerning Apache 2, but that might have changed since the release of PHP 5. Anyway, I don't know if it's an Apache is the cause here, but it might be a contributor. Regards, Bill ________________________________________________ William A. Bronsema, C.E.T. Applications and Software Development, DM Solutions Group Inc. > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Flavio Hendry > Sent: January 11, 2005 11:21 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Problems with PHP as Module and as cgi with > PROJ > > hi all > > as follows: > - windows 2003 > - apache 2.0.52 > - php 4.3.8 > - ms 4.4 (php_mapscript_44.dll) > - dual processor > > 1. running php as a module: > > - everything seems to be running fine. as soon as multiple users access > the application, weard things start to happen: when zooming, all at > once the wrong map is delivered (other map as selected or other extent) > or the application hangs completely, no error in log or whatsoever ... > > - apache often crashes with the following message: > [notice] Parent: child process exited with status 3221226324 -- > Restarting. > > 2. as we suppose that there is a problem running php as a module, we > try to run it as cgi > > With the result that the map files are not read at all with the > following message (exactly the same map files as with php a module > where they run fine, projections are installed in the default > dir "c:\proj"): > [MapServer Error]: msProcessProjection(): No such file or directory > projection used is epsg:9814 or world:CH1903 (both the same): > # CH 1903 / Swiss Oblique Cylindrical > <9814> +proj=somerc +lat_0=46d57'08.66"N +lon_0=7d26'22.50"E > +ellps=bessel +x_0=600000 +y_0=200000 +towgs84=674.374,15.056,405.346 > +units=m +k_0=1 +no_defs <> > > someone has an idea ? > thx. > > Mit freundlichem Gruss / Best Regards > Flavio Hendry > > ---------------------------------------------------------------- > TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual > ---------------------------------------------------------------- > ############ Mit freundlichen Gruessen / Kind Regards > ############ mailto:flavio at 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 stefan.schwarzer at GRID.UNEP.CH Wed Jan 12 05:20:55 2005 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Wed, 12 Jan 2005 14:20:55 +0100 Subject: TIFF displays and displays not Message-ID: Hi, gush, what a strange thing. I have to TIFFs with a worldfile each. Using PHP/MapScript, on my windows machine, both display nicely. On our Linux machine however, only one of the two displays. When I select the other, white space... Nothing. I added one of the TIFFs only now, the other already a couple of days ago. Sure, this can't be the reason. But .... Actually, I have no idea. They are both 8 bit, and RGB color mode. Any idea whatsoever? Thanks for letting me know. I am really stuck... Stef ????????_______________________________________ ????????Stefan Schwarzer ????????GIS & Data Management ????????UNEP/DEWA/GRID-Geneva ????????Chemin des Anemones 11 ????????CH - 1219 Chatelaine ????????Switzerland ????????Tel: (+41) 22.917.83.49 ????????Fax: (+41) 22.917.80.29 ????????Internet: http://geodata.grid.unep.ch/ ????????_______________________________________ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1239 bytes Desc: not available URL: From jdport at VERITIME.COM Wed Jan 12 05:45:32 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Wed, 12 Jan 2005 08:45:32 -0500 Subject: How to access shapefile attributes? Message-ID: Thanks very much for the great information and the pointer to this geocoder perl code. I've been able to get it working somewhat, but I have a couple of questions for you. When I trie to use import_tiger_zip.pl I get an error: Bareword "AZ_OK" not allowed while "strict subs" in use at ./import_tiger_zip.pl line 21. Execution of ./import_tiger_zip.pl aborted due to compilation errors. I can unzip the tiger files and use import_tiger.pl, but it *appears* (i'm not 100% sure yet) but it appears that I have to make a separate DB file for each individual tiger file. For example, the state of Michigan Tiger files are broken up into county files... is there anyway to put all of those into a single DB, or do I have to make a DB for each county? It seems like if I import to an existing DB it overwrites the data instead of appending to it. Thanks a lot, I really appreciate the great information about geocoding. -Jeff ----- Original Message ----- From: "Camden Daily" To: Sent: Tuesday, January 11, 2005 11:31 AM Subject: Re: [UMN_MAPSERVER-USERS] How to access shapefile attributes? > In order to show addresses on your map, you're going to need to use > geocoding (which is not a part of mapserver). The best module I've > found so far for that is the perl module Geo::Coder::US. You'll need > to download it from CPAN and get it running first. > > Secondly, you'll need a database for your geocoding. This database > can be built from tiger data, but it is very very large and it takes a > long time to construct. It's probably best to just grab the files you > need for your particular area. You can get the tiger data files you > need here: > http://www2.census.gov/geo/tiger/tgrcd108/ > > Once you have them, you don't need to unzip them. Just use the > import_tiger_zip.pl script that came with the Geo::Coder::US source. Use > the > command "perl import_tiger_zip.pl geocoder.db *.zip" to construct a > database > named geocoder.db from all of the zip files. This process can take a very, > very > long time. (I don't know how to do this in windows, but that's how > you can do it in linux). > > Now, if you're using PHP mapscript, you'll need a way for PHP to talk > to Perl. The best way I've found is via the command line on a linux > box. I wrote a little helper Perl script called geocode.pl that looks > like this: > > ==================================== > #!/usr/bin/perl > use Geo::Coder::US; > Geo::Coder::US->set_db( "/web_system/data/tiger/geocoder.db" ); > my $address = $ARGV[0]; > my ($return) = Geo::Coder::US->geocode( $address ); > print $return->{lat}; > print "\n"; > print $return->{long}; > print "\n"; > ===================================== > > Then, in my PHP, I geocode addresses like this: > ($address holds the address string I'm geocoding) > > ===================================== > exec("/web_system/geocode.pl \"$address\"", $results); > $latitude = $results[0]; > $longitude = $results[1]; > ===================================== > > That should get you started. Once you have the $latitude and > $longitude values for each address, you can plot them out as points on > your map. > > This is really a very simple implementation of the Geo::Coder::US > module that doesn't take into account some of it's more advanced > features, but it's a good enough start. > > -Camden > > > On Mon, 10 Jan 2005 16:25:23 -0500, Jeff Portwine > wrote: >> I'm just learning how to use mapscript for displaying my maps, and I am >> trying to figure out how you would access the attribute data in your >> shapefiles? I have a layer of roads, and I'm using the Tiger data >> which >> has fields for street names, address ranges, and zipcodes. Eventually >> what I'd like to do is to be able to read a list of addresses and place a >> marker on the map at each of those addresses. >> >> I'm not exactly sure how to do that even when I learn how to access the >> data.... there was some code posted to this list sometime back for >> getting >> the coordinates of a street address and I could possibly use that, but it >> requires a specific set of fields to be present in the shape file and I'd >> have to do some manipulation of the fields I actually have to use that >> code >> and that might be just as tricky as writing the code myself :) >> >> Thanks for any pointers, >> >> Jeff >> > From flavio at TYDAC.CH Wed Jan 12 06:05:41 2005 From: flavio at TYDAC.CH (Flavio Hendry) Date: Wed, 12 Jan 2005 15:05:41 +0100 Subject: Problems with PHP as Module and as cgi with PROJ In-Reply-To: <200501121311.j0CDBWTG028329@mail1.magma.ca> Message-ID: hi william thanks for your feedback. we solved the problem: 1. going with php as cgi (the issue as module is well know, see bugzilla 67, thanks danmo). 2. the projection problem was that I was using some old version or that files where missing. installing the newest one solved it ... (strange enough it worked as a module, maybe cgi needs more stuff, who knows ...) in any case we were going nuts yesterday, as bugzilla says "users get maps from each others requests" and we had that ... kind of fun, you never know which map will show up next! wow! the result is on http://waedenswil.mapserver.ch/stadtplan.htm, btw the first neapoljs 2004 site on-line ... Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at 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 ---------------------------------------------------------------- -----Original Message----- From: "William Bronsema" To: "'Flavio Hendry'" , Date: Wed, 12 Jan 2005 08:11:29 -0500 Subject: RE: [UMN_MAPSERVER-USERS] Problems with PHP as Module and as cgi with PROJ > Hi Flavio, > > Just as an FYI - I was at a PHP conference last March and I spoke > with > several of the developers in person and they highly recommend to NOT > use > Apache 2 especially when running PHP as a module. They indicated > that they > focus there attention on making sure that PHP is bullet-proof for > 1.3.x. > That is what I understood their position to be concerning Apache 2, > but that > might have changed since the release of PHP 5. > > Anyway, I don't know if it's an Apache is the cause here, but it > might be a > contributor. > > Regards, > Bill > > > > ________________________________________________ > William A. Bronsema, C.E.T. > Applications and Software Development, > DM Solutions Group Inc. > > > > > -----Original Message----- > > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > > Behalf Of Flavio Hendry > > Sent: January 11, 2005 11:21 AM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] Problems with PHP as Module and as > cgi with > > PROJ > > > > hi all > > > > as follows: > > - windows 2003 > > - apache 2.0.52 > > - php 4.3.8 > > - ms 4.4 (php_mapscript_44.dll) > > - dual processor > > > > 1. running php as a module: > > > > - everything seems to be running fine. as soon as multiple users > access > > the application, weard things start to happen: when zooming, all at > > once the wrong map is delivered (other map as selected or other > extent) > > or the application hangs completely, no error in log or whatsoever > ... > > > > - apache often crashes with the following message: > > [notice] Parent: child process exited with status 3221226324 -- > > Restarting. > > > > 2. as we suppose that there is a problem running php as a module, > we > > try to run it as cgi > > > > With the result that the map files are not read at all with the > > following message (exactly the same map files as with php a module > > where they run fine, projections are installed in the default > > dir "c:\proj"): > > [MapServer Error]: msProcessProjection(): No such file or directory > > projection used is epsg:9814 or world:CH1903 (both the same): > > # CH 1903 / Swiss Oblique Cylindrical > > <9814> +proj=somerc +lat_0=46d57'08.66"N +lon_0=7d26'22.50"E > > +ellps=bessel +x_0=600000 +y_0=200000 > +towgs84=674.374,15.056,405.346 > > +units=m +k_0=1 +no_defs <> > > > > someone has an idea ? > > thx. > > > > Mit freundlichem Gruss / Best Regards > > Flavio Hendry > > > > ---------------------------------------------------------------- > > TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual > > ---------------------------------------------------------------- > > ############ Mit freundlichen Gruessen / Kind Regards > > ############ mailto:flavio at 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 sgillies at FRII.COM Wed Jan 12 06:32:21 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 12 Jan 2005 07:32:21 -0700 Subject: Delete inline features In-Reply-To: Message-ID: On Jan 12, 2005, at 5:44 AM, Roman Meier wrote: > Hi list > > I'm using UMN Mapserver 4.x-CGI. > > I can add new features in an inline-feature-layer by URL. > Is there also a way to delete... > 1) an existing one ? > 2) all inline features ? > > Any ideas? > Thanks in advance... > > Roman > > Roman, The inline features you add don't persist between CGI requests, so there should not be any need to delete. At any rate, there is no method to delete them. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From sgillies at FRII.COM Wed Jan 12 06:55:40 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 12 Jan 2005 07:55:40 -0700 Subject: mapserver with python In-Reply-To: Message-ID: On Jan 12, 2005, at 3:28 AM, orkun wrote: > Sean Gillies wrote: > >> On Jan 11, 2005, at 3:52 AM, orkun wrote: >> >>> hello >>> >>> I need to build mapscript application with python. >>> I would like see examples and tutors for python. >>> >>> if you supply I will appreciate >>> >>> kind regards >>> >>> >>> Ahmet Temiz >>> >> >> Ahmet, >> >> Mapscript how-to docs and API reference are in the MapServer 4.4 >> source under >> >> mapserver/mapscript/doc/ >> >> and I also maintain them online at >> >> http://users.frii.com/sgillies/projects/mapscript/ >> >> Please write if you need more help or clarification about these >> documents. In the meanwhile, I will try to find some helpful >> examples. >> >> cheers, >> Sean >> >> -- >> Sean Gillies >> sgillies at frii dot com >> http://users.frii.com/sgillies >> >> >> > Sean, > Thank you for your interest. > > Your web site is highly informative on the subject of python_mapscript. > I am not experienced in python, so additional examples will be useful > for me. > I dealt with php_mapscript. But for better performance, I want to try > python . > I want to know your idea about how you compare python with php. > > kind regards > > Ahmet Temiz > > Ahmet, You are welcome. Python mapscript is not going to be faster than PHP. Most of the work is done by C code that all the mapscript modules share and PHP is unrivaled for serving web pages and imagery that have a relatively small amount of logic behind them. If you are creating larger applications with a web interface you will really benefit from switching to an OO language like Python (or Java, although I think that's going too far :). The code is simple, easy to profile and test, and can take advantage of a lot of excellent modules that are not available for PHP (such as GDAL/OGR and Numeric/SciPy). The only downside of using Python is that there are too many choices of web frameworks, and so expertise and support get a bit diluted. This situation is improving rapidly. Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From David.Fawcett at STATE.MN.US Wed Jan 12 07:06:20 2005 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Wed, 12 Jan 2005 09:06:20 -0600 Subject: mapserver with python Message-ID: Ahmet, For more general Python info, you may want to check out the book 'Dive Into Python'. You can find it at http://diveintopython.org/. You can buy the book in hard copy or read it online. I haven't done much with Python, but from the sections of the book that I read, it seems like an excellent book. David. David J. Fawcett MN Office of Environmental Assistance >>> orkun 1/12/2005 4:28:31 AM >>> Sean Gillies wrote: > On Jan 11, 2005, at 3:52 AM, orkun wrote: > >> hello >> >> I need to build mapscript application with python. >> I would like see examples and tutors for python. >> >> if you supply I will appreciate >> >> kind regards >> >> >> Ahmet Temiz >> > > Ahmet, > > Mapscript how-to docs and API reference are in the MapServer 4.4 > source under > > mapserver/mapscript/doc/ > > and I also maintain them online at > > http://users.frii.com/sgillies/projects/mapscript/ > > Please write if you need more help or clarification about these > documents. In the meanwhile, I will try to find some helpful examples. > > cheers, > Sean > > -- > Sean Gillies > sgillies at frii dot com > http://users.frii.com/sgillies > > > Sean, Thank you for your interest. Your web site is highly informative on the subject of python_mapscript. I am not experienced in python, so additional examples will be useful for me. I dealt with php_mapscript. But for better performance, I want to try python . I want to know your idea about how you compare python with php. kind regards Ahmet Temiz ______________________________________ XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From tylermitchell at SHAW.CA Wed Jan 12 07:21:40 2005 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Wed, 12 Jan 2005 07:21:40 -0800 Subject: Perl MapScript and 4.4.1 Message-ID: Can someone confirm for me that perl mapscript is building okay in 4.4.1? Tyler From cdaily at GMAIL.COM Wed Jan 12 07:30:25 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Wed, 12 Jan 2005 09:30:25 -0600 Subject: How to access shapefile attributes? In-Reply-To: <000f01c4f8ac$fc7388f0$5ff2fbd0@solo> Message-ID: > When I trie to use import_tiger_zip.pl I get an error: > Bareword "AZ_OK" not allowed while "strict subs" in use at > ./import_tiger_zip.pl line 21. > Execution of ./import_tiger_zip.pl aborted due to compilation errors. I really don't know enough about perl to help you with that. All I can suggest is to make sure you have whatever perl module is necessary for dealing with archived zip files (Archive::Zip?). > I can unzip the tiger files and use import_tiger.pl, but it *appears* (i'm > not 100% sure yet) but it appears that I have to make a separate DB file for > each individual tiger file. For example, the state of Michigan Tiger files > are broken up into county files... is there anyway to put all of those into > a single DB, or do I have to make a DB for each county? It seems like if I > import to an existing DB it overwrites the data instead of appending to it. The import_tiger_zip file just adds the information to the database; it doesn't create a new database. At least that's how it works when given a wildcard argument such as *.zip. I'd imagine the nonzip import_tiger script works the same way. Are you using a wildcard for the files to add to the database? From woodbri at SWOODBRIDGE.COM Wed Jan 12 07:35:26 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 12 Jan 2005 10:35:26 -0500 Subject: Perl MapScript and 4.4.1 In-Reply-To: <200501120721.40039.tylermitchell@shaw.ca> Message-ID: Tyler, I just grabbed 4.4.1 yesterday and mapserv build without any problems and I just ran: perl Makefile.PL make on my system with no problem. I'm running Debian Linux data 2.4.26-1-686-smp #1 SMP Tue Aug 24 13:53:22 JST 2004 i686 unknown -Steve W. Tyler Mitchell wrote: > Can someone confirm for me that perl mapscript is building okay in 4.4.1? > > Tyler > From cdaily at GMAIL.COM Wed Jan 12 07:39:29 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Wed, 12 Jan 2005 09:39:29 -0600 Subject: Labelling cities and lakes with Tiger data (EntityNames In-Reply-To: <41E46DE2.5020406@swoodbridge.com> Message-ID: Colin, what type of Tiger data do you currently have? There are lots of available sets of tiger data, including street data, city names, etc. There's one set called 'landmark polygons' that includes things such as lakes and parks. If you could show an exmple of one of your layers you're using from tiger data, I might be able to help. From constantin.a.cristian at GMAIL.COM Wed Jan 12 07:23:55 2005 From: constantin.a.cristian at GMAIL.COM (Constantin Cristian) Date: Wed, 12 Jan 2005 17:23:55 +0200 Subject: Mapserver Crash Message-ID: Hello, I'm kind of new to Mapserver and i have the folowing problem: -I am building Mapserver 4.4.1 on a Slackware 10 machine, with ./configure --enable-debug --with-eppl --with-proj=/usr/local --with-ogr=/usr/local/bin/gdal-config --with-wfs --with-wcs --with-wmsclient --with-wfsclient --with-gdal=/usr/local/bin/gdal-config --with-mygis=yes --with-php=/root/wms/php/php-4.3.7 --with-php-regex-dir=/root/wms/php/php-4.3.7/regex --with-fastcgi=/root/wms/mod_fastcgi-2.4.2 --with-ming=/root/wms/ming-0.3beta1/src --with-httpd=/usr/local/apache2/bin/httpd (I don't have any problems here) -after that i run make (I don't have any problems here except some warning concerning ming) -the mapserv executable is built -now the problem begins: when i run # ./mapserv QUERY_STRING="map=/usr/local/apache2/htdocs/workshop/itasca.map" and i get "Segmentation fault", i should mention that this file exists but that does not mater the crash hapens whenever I set the variable map is set and does not matter if the file exists or not #./mapserv QUERY_STRING="map=twtrewa.map" Segmentation fault Here is more info: # gdb ./mapserv GNU gdb 6.1.1 Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i486-slackware-linux"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb)set args QUERY_STRING="map=/usr/local/apache2/htdocs/workshop/itasca.map" (gdb) set verbose 1 (gdb) run Starting program: /root/wms/mapserver-4.4.1/mapserv QUERY_STRING="map=/usr/local/apache2/htdocs/workshop/itasca.map" Reading symbols from /usr/local/lib/libgd.so.2...done. Reading symbols from /usr/lib/libjpeg.so.62...done. Reading symbols from /usr/lib/libfreetype.so.6...done. Reading symbols from /usr/lib/libpng.so.3...done. Reading symbols from /usr/lib/libz.so.1...done. Reading symbols from /usr/local/lib/libXpm.so.4...done. Reading symbols from /usr/lib/libX11.so.6...done. Reading symbols from /usr/local/lib/libproj.so.0...done. Reading symbols from /usr/local/lib/libgdal.so.1...done. Reading symbols from /usr/local/lib/libming.so...done. Reading symbols from /usr/lib/libcurl.so.3...done. Reading symbols from /usr/lib/libssl.so.0...done. Reading symbols from /usr/lib/libcrypto.so.0...done. Reading symbols from /lib/libdl.so.2...done. Reading symbols from /lib/libc.so.6...done. Reading symbols from /lib/libm.so.6...done. Reading symbols from /usr/lib/libstdc++.so.5...done. Reading symbols from /usr/lib/libgcc_s.so.1...done. Reading symbols from /usr/X11R6/lib/libfontconfig.so.1...done. Reading symbols from /usr/lib/libpng12.so.0...done. Reading symbols from /usr/lib/./libungif.so.4...done. Reading symbols from /usr/lib/./libtiff.so.3...done. Reading symbols from /usr/lib/mysql/libmysqlclient.so.12...done. Reading symbols from /lib/libcrypt.so.1...done. Reading symbols from /lib/libnsl.so.1...done. Reading symbols from /lib/ld-linux.so.2...done. Reading symbols from /usr/lib/libexpat.so.0...done. Program received signal SIGSEGV, Segmentation fault. 0x0806735b in loadMapInternal ( filename=0x8101f38 "/usr/local/apache2/htdocs/workshop/itasca.map", new_mappath=0x0) at mapfile.c:4173 4173 if((msyyin = fopen(filename,"r")) == NULL) { (gdb) I don't know why mapserv does not like the fopen function i tried to build a small program using fopen and i got no problem, it seams to me to be a Mapserver problem. Please help me and excuse my english:) -------------- next part -------------- An HTML attachment was scrubbed... URL: From havard.tveite at UMB.NO Wed Jan 12 07:45:42 2005 From: havard.tveite at UMB.NO (Havard Tveite) Date: Wed, 12 Jan 2005 16:45:42 +0100 Subject: character encoding handling different for labels and query results Message-ID: I have a mapserver application that handles data from PostgreSQL/Postgis and shapefiles. My PostgreSQL database uses UNICODE for character encoding. When a labelled map is rendered, all characters show up as expected in the image. In the results of a query (a HTML-page), however, the strings from PostgreSQL are coded using UNICODE, while the strings from the shapefile are coded elsewise (ISO-8859-1?). If I use "convert(, 'LATIN11')" instead of "" in my data string, my text shows up nicely in both cases. Is this the way it is meant to be? -- H?vard Tveite Department of Mathematical Sciences and Technology Agricultural University of Norway Dr?bakveien 14, POBox 5003, N-1432 ?s, NORWAY Phone: +47 64948857 Fax: +47 64948810 http://www.umb.no/imt From normanb at COMSINE.CO.UK Wed Jan 12 07:59:29 2005 From: normanb at COMSINE.CO.UK (Norman Barker) Date: Wed, 12 Jan 2005 15:59:29 +0000 Subject: DEM back drop in MapServer Message-ID: Hi, I have spent a little time googling for this, and before I go and purchase the global GTOPO set for the world I would be grateful if you could answer my question about rendering this data in MapServer WMS. If possible I would buy this in 16 bit geotiff format (unless you suggest otherwise). Would there be a way to render this in mapserver natively (so that the height fields are rendered by an internal palette) and displayed to the user as a backdrop? Or do I have to define the palette myself in an external program and then use it in MapServer? Any help or advice appreciated by anyone else who has created a DEM backdrop. Many thanks, Norman -- Norman Barker Software Engineer ComSine Ltd Tel: +44 (0)1483 457121 Web: http://www.comsine.com *Please Note:* This text is confidential. If you are not the named addressee, it could be unlawful for you to read, copy, distribute, disclose or use the information contained herewith. If you are not the intended recipient please telephone +44(0)1483 457121. From cdaily at GMAIL.COM Wed Jan 12 08:00:44 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Wed, 12 Jan 2005 10:00:44 -0600 Subject: Mapserver Crash In-Reply-To: <024c01c4f8ba$ca0e5940$18c4a8c0@jfdwgql6e4tws> Message-ID: Does mapserver work without a file argument, such as './mapserv -v'? On Wed, 12 Jan 2005 17:23:55 +0200, Constantin Cristian wrote: > > Hello, > I'm kind of new to Mapserver and i have the folowing problem: > -I am building Mapserver 4.4.1 on a Slackware 10 machine, with > ./configure --enable-debug --with-eppl --with-proj=/usr/local > --with-ogr=/usr/local/bin/gdal-config --with-wfs --with-wcs --with-wmsclient > --with-wfsclient --with-gdal=/usr/local/bin/gdal-config --with-mygis=yes > --with-php=/root/wms/php/php-4.3.7 > --with-php-regex-dir=/root/wms/php/php-4.3.7/regex > --with-fastcgi=/root/wms/mod_fastcgi-2.4.2 > --with-ming=/root/wms/ming-0.3beta1/src > --with-httpd=/usr/local/apache2/bin/httpd ( > I don't have any problems here) > > -after that i run make ( > I don't have any problems here except some warning concerning ming) > > -the mapserv executable is built > > -now the problem begins: when i run # ./mapserv > QUERY_STRING="map=/usr/local/apache2/htdocs/workshop/itasca.map" > and i get "Segmentation fault", i should mention that this file exists but > that does not mater the crash hapens whenever I set the variable map is set > and does > not matter if the file exists or not > #./mapserv QUERY_STRING="map=twtrewa.map" > Segmentation fault > > Here is more info: > # gdb ./mapserv > GNU gdb 6.1.1 > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain > conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "i486-slackware-linux"...Using host libthread_db > library "/lib/libthread_db.so.1". > > (gdb)set args > QUERY_STRING="map=/usr/local/apache2/htdocs/workshop/itasca.map" > (gdb) set verbose 1 > (gdb) run > Starting program: /root/wms/mapserver-4.4.1/mapserv > QUERY_STRING="map=/usr/local/apache2/htdocs/workshop/itasca.map" > > Reading symbols from /usr/local/lib/libgd.so.2...done. > Reading symbols from /usr/lib/libjpeg.so.62...done. > Reading symbols from /usr/lib/libfreetype.so.6...done. > Reading symbols from /usr/lib/libpng.so.3...done. > Reading symbols from /usr/lib/libz.so.1...done. > Reading symbols from /usr/local/lib/libXpm.so.4...done. > Reading symbols from /usr/lib/libX11.so.6...done. > Reading symbols from /usr/local/lib/libproj.so.0...done. > Reading symbols from /usr/local/lib/libgdal.so.1...done. > Reading symbols from /usr/local/lib/libming.so...done. > Reading symbols from /usr/lib/libcurl.so.3...done. > Reading symbols from /usr/lib/libssl.so.0...done. > Reading symbols from /usr/lib/libcrypto.so.0...done. > Reading symbols from /lib/libdl.so.2...done. > Reading symbols from /lib/libc.so.6...done. > Reading symbols from /lib/libm.so.6...done. > Reading symbols from /usr/lib/libstdc++.so.5...done. > Reading symbols from /usr/lib/libgcc_s.so.1...done. > Reading symbols from /usr/X11R6/lib/libfontconfig.so.1...done. > Reading symbols from /usr/lib/libpng12.so.0...done. > Reading symbols from /usr/lib/./libungif.so.4...done. > Reading symbols from /usr/lib/./libtiff.so.3...done. > Reading symbols from /usr/lib/mysql/libmysqlclient.so.12...done. > Reading symbols from /lib/libcrypt.so.1...done. > Reading symbols from /lib/libnsl.so.1...done. > Reading symbols from /lib/ld-linux.so.2...done. > Reading symbols from /usr/lib/libexpat.so.0...done. > > Program received signal SIGSEGV, Segmentation fault. > 0x0806735b in loadMapInternal ( > filename=0x8101f38 "/usr/local/apache2/htdocs/workshop/itasca.map", > new_mappath=0x0) at mapfile.c:4173 > 4173 if((msyyin = fopen(filename,"r")) == NULL) { > (gdb) > > I don't know why mapserv does not like the fopen function i tried to build a > small program using fopen and i got no problem, it seams to me to be a > Mapserver problem. > > Please help me and excuse my english:) From cmcguigan at EARTHCOMBER.COM Wed Jan 12 08:08:43 2005 From: cmcguigan at EARTHCOMBER.COM (Colin McGuigan) Date: Wed, 12 Jan 2005 10:08:43 -0600 Subject: Labelling cities and lakes with Tiger data (EntityNames In-Reply-To: <16264e0705011207391384f71e@mail.gmail.com> Message-ID: Camden Daily wrote: > Colin, what type of Tiger data do you currently have? There are lots > of available sets of tiger data, including street data, city names, > etc. There's one set called 'landmark polygons' that includes things > such as lakes and parks. > > If you could show an exmple of one of your layers you're using from > tiger data, I might be able to help. I have just the straight 2000 data. The files are AltName, CompleteChain, EntityNames, FeatureIDs, IDHistory, Landmarks, OverUnder, PIP, PolyChainLink, Polygon, PolygonEconomic, ZeroCellID, ZipCodes, and ZipPlus4 -- that is, these are dbf, prj, and shp files. I can get the polygons to display just fine -- I can _see_ the lake, and rivers and whatnot are named in CompleteChain, so the rivers get labelled. Polygon doesn't contain name information. Landmarks does contain name information for schools, hospitals, airports, and the like, but does not contain city or lake names. EntityNames contains city names but no geographic data, and I can't figure out how to join it to anything containing geographic data. --Colin McGuigan From fwarmerdam at GMAIL.COM Wed Jan 12 08:08:09 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 12 Jan 2005 11:08:09 -0500 Subject: DEM back drop in MapServer In-Reply-To: <41E54961.3080303@comsine.co.uk> Message-ID: On Wed, 12 Jan 2005 15:59:29 +0000, Norman Barker wrote: > Would there be a way to render this in mapserver natively (so that the > height fields are rendered > by an internal palette) and displayed to the user as a backdrop? > > Or do I have to define the palette myself in an external program and > then use it in MapServer? > > Any help or advice appreciated by anyone else who has created a DEM > backdrop. Norman, First, there are free locations from which you can download GTOPO. No harm in paying for it if you want of course. But the answer to your question is that MapServer does not currently have a means of internally building a color ramp for DEMs other than defining many CLASSes for each descrete color you want. I would suggest pre-processing the file to 8bit externally and externally creating a pallete for the file - if you just need the GTOPO data for display purposes. If you want WCS access, or raster query such an approach might not be appropriate. In that case you could define many classes to give a color ramp effect. 30-40 classes should be sufficient. I would eventually like to implement a mechanism to define a color ramp in MapServer for rasters but that is not likely to happen in the short term. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From constantin.a.cristian at GMAIL.COM Wed Jan 12 08:17:53 2005 From: constantin.a.cristian at GMAIL.COM (Constantin Cristian) Date: Wed, 12 Jan 2005 18:17:53 +0200 Subject: Mapserver Crash Message-ID: Yes, it works! # ./mapserv -v MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG # ./mapserv QUERY_STRING="test" Content-type: text/html MapServer Message loadMap(): Web application error. CGI variable "map" is not set.
# ./mapserv QUERY_STRING="map=test" Content-type: text/html MapServer Message msEvalRegex(): Regular expression error. String (test) failed expression test.
./mapserv QUERY_STRING="map=test.map" Segmentation fault Also tried to copy the mapserv executable together with a few libraries that it required on another Slackware 10 machine an got the same errors. ----- Original Message ----- From: "Camden Daily" To: Sent: Wednesday, January 12, 2005 6:00 PM Subject: Re: [UMN_MAPSERVER-USERS] Mapserver Crash > Does mapserver work without a file argument, such as './mapserv -v'? > > > On Wed, 12 Jan 2005 17:23:55 +0200, Constantin Cristian > wrote: >> >> Hello, >> I'm kind of new to Mapserver and i have the folowing problem: >> -I am building Mapserver 4.4.1 on a Slackware 10 machine, with >> ./configure --enable-debug --with-eppl --with-proj=/usr/local >> --with-ogr=/usr/local/bin/gdal-config --with-wfs --with-wcs --with-wmsclient >> --with-wfsclient --with-gdal=/usr/local/bin/gdal-config --with-mygis=yes >> --with-php=/root/wms/php/php-4.3.7 >> --with-php-regex-dir=/root/wms/php/php-4.3.7/regex >> --with-fastcgi=/root/wms/mod_fastcgi-2.4.2 >> --with-ming=/root/wms/ming-0.3beta1/src >> --with-httpd=/usr/local/apache2/bin/httpd ( >> I don't have any problems here) >> >> -after that i run make ( >> I don't have any problems here except some warning concerning ming) >> >> -the mapserv executable is built >> >> -now the problem begins: when i run # ./mapserv >> QUERY_STRING="map=/usr/local/apache2/htdocs/workshop/itasca.map" >> and i get "Segmentation fault", i should mention that this file exists but >> that does not mater the crash hapens whenever I set the variable map is set >> and does >> not matter if the file exists or not >> #./mapserv QUERY_STRING="map=twtrewa.map" >> Segmentation fault >> >> Here is more info: >> # gdb ./mapserv >> GNU gdb 6.1.1 >> Copyright 2004 Free Software Foundation, Inc. >> GDB is free software, covered by the GNU General Public License, and you are >> welcome to change it and/or distribute copies of it under certain >> conditions. >> Type "show copying" to see the conditions. >> There is absolutely no warranty for GDB. Type "show warranty" for details. >> This GDB was configured as "i486-slackware-linux"...Using host libthread_db >> library "/lib/libthread_db.so.1". >> >> (gdb)set args >> QUERY_STRING="map=/usr/local/apache2/htdocs/workshop/itasca.map" >> (gdb) set verbose 1 >> (gdb) run >> Starting program: /root/wms/mapserver-4.4.1/mapserv >> QUERY_STRING="map=/usr/local/apache2/htdocs/workshop/itasca.map" >> >> Reading symbols from /usr/local/lib/libgd.so.2...done. >> Reading symbols from /usr/lib/libjpeg.so.62...done. >> Reading symbols from /usr/lib/libfreetype.so.6...done. >> Reading symbols from /usr/lib/libpng.so.3...done. >> Reading symbols from /usr/lib/libz.so.1...done. >> Reading symbols from /usr/local/lib/libXpm.so.4...done. >> Reading symbols from /usr/lib/libX11.so.6...done. >> Reading symbols from /usr/local/lib/libproj.so.0...done. >> Reading symbols from /usr/local/lib/libgdal.so.1...done. >> Reading symbols from /usr/local/lib/libming.so...done. >> Reading symbols from /usr/lib/libcurl.so.3...done. >> Reading symbols from /usr/lib/libssl.so.0...done. >> Reading symbols from /usr/lib/libcrypto.so.0...done. >> Reading symbols from /lib/libdl.so.2...done. >> Reading symbols from /lib/libc.so.6...done. >> Reading symbols from /lib/libm.so.6...done. >> Reading symbols from /usr/lib/libstdc++.so.5...done. >> Reading symbols from /usr/lib/libgcc_s.so.1...done. >> Reading symbols from /usr/X11R6/lib/libfontconfig.so.1...done. >> Reading symbols from /usr/lib/libpng12.so.0...done. >> Reading symbols from /usr/lib/./libungif.so.4...done. >> Reading symbols from /usr/lib/./libtiff.so.3...done. >> Reading symbols from /usr/lib/mysql/libmysqlclient.so.12...done. >> Reading symbols from /lib/libcrypt.so.1...done. >> Reading symbols from /lib/libnsl.so.1...done. >> Reading symbols from /lib/ld-linux.so.2...done. >> Reading symbols from /usr/lib/libexpat.so.0...done. >> >> Program received signal SIGSEGV, Segmentation fault. >> 0x0806735b in loadMapInternal ( >> filename=0x8101f38 "/usr/local/apache2/htdocs/workshop/itasca.map", >> new_mappath=0x0) at mapfile.c:4173 >> 4173 if((msyyin = fopen(filename,"r")) == NULL) { >> (gdb) >> >> I don't know why mapserv does not like the fopen function i tried to build a >> small program using fopen and i got no problem, it seams to me to be a >> Mapserver problem. >> >> Please help me and excuse my english:) -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Wed Jan 12 08:29:31 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 12 Jan 2005 11:29:31 -0500 Subject: Mapserver character encoding howto Message-ID: Hi all, I just downloaded mapserver 4.4.1 and I see there are reference to support for i18n character encoding. Is there anything special that I need to do to make use of it? The problem I am having is that accented in eastern European countries do not seem to be displaying correctly, like I am getting the words by they have capital A-accent, capital U-accent and capital O-accent, etc within the words where I would at least expect a lower cases char. Like the following only the capital vowels are accented: JOzsef, LAsziO, StefAna, MAria, MUzeum KOr Ut This might be a font problem, but I have tried a UTF-8 font and a Unicode font in ISO-8859-1 and ISO-8859-2 Any help would be appreciated. -Steve W. From bhudspeth at EDAC.UNM.EDU Wed Jan 12 08:28:13 2005 From: bhudspeth at EDAC.UNM.EDU (William Hudspeth) Date: Wed, 12 Jan 2005 09:28:13 -0700 Subject: Problems displaying PostGIS Layer Message-ID: Hello, I have imported a shapefile into PostGIS with the following: ./shp2pgsql ?s 4326 /path/us_cities.shp us_cities ?d reason | ./psql ?d reason The new table has a "gid" column as well as a populated geometry column named "the_geom". My map file entry looks like this: **************************** LAYER CONNECTIONTYPE postgis NAME "us_cities" CONNECTION "user=postgis dbname=reason host=falstaff.unm.edu" DATA "the_geom from us_cities" STATUS OFF TYPE POINT CLASS COLOR 177 213 34 SIZE 7 SYMBOL "circle" END END ******************************** The layer does not display. I get the following error in my Apache error log: [Wed Jan 12 08:47:48 2005] [error] [client 129.24.73.222] _mapscript.MapServerError: msDrawMap(): Image handling error. Failed to draw layer named 'us_cities'., referer: http://falstaff.unm.edu/cgi- bin/reason/python_mapscript.py [Wed Jan 12 08:47:48 2005] [error] [client 129.24.73.222] prep_DB(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT asbinary (force_collection(force_2d(the_geom)),'NDR'),gid::text from us_cities WHERE the_geom && setSRID('BOX3D(-125.000000000, referer: http://falstaff.unm.edu/cgi-bin/reason/python_mapscript.py I would appreciate any insight into this problem. Thanks, Bill From cr1436 at SBCGLOBAL.NET Wed Jan 12 11:05:53 2005 From: cr1436 at SBCGLOBAL.NET (charles grimm) Date: Wed, 12 Jan 2005 11:05:53 -0800 Subject: e-mails Message-ID: If you can find a way to take my address off what ever list that keeps sending me e-mails pertaining to either problems or solutions to some mapserver member .I,d really appreciate it.I get about ten to twelve mapserver -user mails a day. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sobomsawin at KASSINI.COM Wed Jan 12 09:15:06 2005 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Wed, 12 Jan 2005 12:15:06 -0500 Subject: [UMN_MAPSERVER-USERS] Problems displaying PostGIS Layer In-Reply-To: <1105547293.3709.8.camel@localhost.localdomain> Message-ID: Hi William! I'd first recommend you to create an index for your Postgis layer: CREATE INDEX us_cities_idx ON us_cities USING GIST (the_geom GIST_GEOMETRY_OPS); Second, since your layer is using SRID 4326, make sure you have a PROJECTION bloc correctly set in your MAP section of you mapfile. Otherwise, you must have a PROJECTION bloc in your LAYER section... Skweda -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de William Hudspeth Envoy??: 12 janvier 2005 11:28 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: [UMN_MAPSERVER-USERS] Problems displaying PostGIS Layer Hello, I have imported a shapefile into PostGIS with the following: ./shp2pgsql ?s 4326 /path/us_cities.shp us_cities ?d reason | ./psql ?d reason The new table has a "gid" column as well as a populated geometry column named "the_geom". My map file entry looks like this: **************************** LAYER CONNECTIONTYPE postgis NAME "us_cities" CONNECTION "user=postgis dbname=reason host=falstaff.unm.edu" DATA "the_geom from us_cities" STATUS OFF TYPE POINT CLASS COLOR 177 213 34 SIZE 7 SYMBOL "circle" END END ******************************** The layer does not display. I get the following error in my Apache error log: [Wed Jan 12 08:47:48 2005] [error] [client 129.24.73.222] _mapscript.MapServerError: msDrawMap(): Image handling error. Failed to draw layer named 'us_cities'., referer: http://falstaff.unm.edu/cgi- bin/reason/python_mapscript.py [Wed Jan 12 08:47:48 2005] [error] [client 129.24.73.222] prep_DB(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT asbinary (force_collection(force_2d(the_geom)),'NDR'),gid::text from us_cities WHERE the_geom && setSRID('BOX3D(-125.000000000, referer: http://falstaff.unm.edu/cgi-bin/reason/python_mapscript.py I would appreciate any insight into this problem. Thanks, Bill -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.6.10 - Release Date: 2005-01-10 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.6.10 - Release Date: 2005-01-10 From rob at DATAFLOWDESIGN.COM Wed Jan 12 09:11:38 2005 From: rob at DATAFLOWDESIGN.COM (Rob P.) Date: Wed, 12 Jan 2005 11:11:38 -0600 Subject: Dynamic selection of reference images Message-ID: Hi, My php mapscript application needs to dynamically select a pre-defined reference map based on the zoomed location of the main map. In other words, if I am zoomed to Ohio, the reference map covering the continetal US is used. If I am zoomed to the Alaskan North Slope, the ref map covering Alaska is used. The projection of the main map varies according to location on the earth. I did not see a way to use a pure mapscript solution for this. So, I used the GD image and drawing functions ((ImageCreateFromPNG, ImagePolygon) to read the appropriate reference map on which I then draw the extents from the main map. My question: Can this be done with mapscript functions? And if so, please give me a hint as how it can be done. Thanks for your help, Rob From ed at TOPOZONE.COM Wed Jan 12 09:37:26 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 12 Jan 2005 12:37:26 -0500 Subject: TIFF displays and displays not Message-ID: Stefan - The first thing I'd do is run "mapserv -v" on each machine and look for configuration differences in your two MapServer installations. Also, check whether both are GeoTIFFs. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Stefan Schwarzer Sent: Wednesday, January 12, 2005 8:21 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] TIFF displays and displays not Hi, gush, what a strange thing. I have to TIFFs with a worldfile each. Using PHP/MapScript, on my windows machine, both display nicely. On our Linux machine however, only one of the two displays. When I select the other, white space... Nothing. I added one of the TIFFs only now, the other already a couple of days ago. Sure, this can't be the reason. But .... Actually, I have no idea. They are both 8 bit, and RGB color mode. Any idea whatsoever? Thanks for letting me know. I am really stuck... Stef _______________________________________ Stefan Schwarzer GIS & Data Management UNEP/DEWA/GRID-Geneva Chemin des Anemones 11 CH - 1219 Chatelaine Switzerland Tel: (+41) 22.917.83.49 Fax: (+41) 22.917.80.29 Internet: http://geodata.grid.unep.ch/ _______________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From ealpert at DIGITALGLOBE.COM Wed Jan 12 10:01:27 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Wed, 12 Jan 2005 11:01:27 -0700 Subject: [UMN_MAPSERVER-USERS] Problems displaying PostGIS Layer Message-ID: There's also the slight detail that you have the layer status set to OFF. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Skweda O'Bomsawin Sent: Wednesday, January 12, 2005 10:15 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] Problems displaying PostGIS Layer Hi William! I'd first recommend you to create an index for your Postgis layer: CREATE INDEX us_cities_idx ON us_cities USING GIST (the_geom GIST_GEOMETRY_OPS); Second, since your layer is using SRID 4326, make sure you have a PROJECTION bloc correctly set in your MAP section of you mapfile. Otherwise, you must have a PROJECTION bloc in your LAYER section... Skweda -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de William Hudspeth Envoy??: 12 janvier 2005 11:28 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: [UMN_MAPSERVER-USERS] Problems displaying PostGIS Layer Hello, I have imported a shapefile into PostGIS with the following: ./shp2pgsql -s 4326 /path/us_cities.shp us_cities -d reason | ./psql -d reason The new table has a "gid" column as well as a populated geometry column named "the_geom". My map file entry looks like this: **************************** LAYER CONNECTIONTYPE postgis NAME "us_cities" CONNECTION "user=postgis dbname=reason host=falstaff.unm.edu" DATA "the_geom from us_cities" STATUS OFF TYPE POINT CLASS COLOR 177 213 34 SIZE 7 SYMBOL "circle" END END ******************************** The layer does not display. I get the following error in my Apache error log: [Wed Jan 12 08:47:48 2005] [error] [client 129.24.73.222] _mapscript.MapServerError: msDrawMap(): Image handling error. Failed to draw layer named 'us_cities'., referer: http://falstaff.unm.edu/cgi- bin/reason/python_mapscript.py [Wed Jan 12 08:47:48 2005] [error] [client 129.24.73.222] prep_DB(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT asbinary (force_collection(force_2d(the_geom)),'NDR'),gid::text from us_cities WHERE the_geom && setSRID('BOX3D(-125.000000000, referer: http://falstaff.unm.edu/cgi-bin/reason/python_mapscript.py I would appreciate any insight into this problem. Thanks, Bill -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.6.10 - Release Date: 2005-01-10 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.6.10 - Release Date: 2005-01-10 From cdaily at GMAIL.COM Wed Jan 12 10:18:51 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Wed, 12 Jan 2005 12:18:51 -0600 Subject: Mapserver Crash In-Reply-To: <028001c4f8c2$53f97de0$18c4a8c0@jfdwgql6e4tws> Message-ID: i don't know why it would be hitting a segmentation fault. is your test.map a really simple map file? could you post it? double check the permissions on your map file and the directory where you're outputting the images? otherwise, maybe try recompiling mapserver with fewer options to see if it's a specific option/dependant library that's hanging it? or maybe it's just a slackware issue... sorry i can't be more help. From paul.oduro at SPPS.ORG Wed Jan 12 10:37:42 2005 From: paul.oduro at SPPS.ORG (Paul Smith) Date: Wed, 12 Jan 2005 12:37:42 -0600 Subject: gdal make errors Message-ID: Hello All I am getting make errors (snippet below) when I run make after ./configure --with-ogr --with-xerces=/path/to/xerces I suspect the error is the '--with-xerces' and also gml. I am using: gdal-1.2.5 xerces-2.3.0 on SLES9 gcc-3.3.3-43.24 I know using the newest dist always is setting yourself up but .... Any help would be greatly appreciated. paul ps Output from make ..... g++ -Wall -O2 -I../xerces-c-src_2_3_0/include -I../xerces-c- src_2_3_0/include/x ercesc -I.. -I../.. -I../../../port -I../../../gcore -I../../../ogr - I../../../a lg -I../../../port -DHAVE_XERCES=1 -c gmlfeature.cpp -o ../o/gmlfeature.o >/dev/ null 2>&1 /bin/sh ../../../libtool --mode=compile g++ -Wall -O2 -I../xerces-c- src_2_3_ 0/include -I../xerces-c-src_2_3_0/include/xercesc -I.. -I../.. - I../../../port - I../../../gcore -I../../../ogr -I../../../alg -I../../../port - DHAVE_XERCES=1 - c -o ../o/gmlreader.o gmlreader.cpp g++ -Wall -O2 -I../xerces-c-src_2_3_0/include -I../xerces-c- src_2_3_0/include/x ercesc -I.. -I../.. -I../../../port -I../../../gcore -I../../../ogr - I../../../a lg -I../../../port -DHAVE_XERCES=1 -c gmlreader.cpp -fPIC -DPIC - o ../o/.libs/g mlreader.o In file included from gmlreader.cpp:132: gmlreaderp.h:64:34: util/PlatformUtils.hpp: No such file or directory gmlreaderp.h:65:35: sax2/DefaultHandler.hpp: No such file or directory gmlreaderp.h:66:35: sax2/ContentHandler.hpp: No such file or directory gmlreaderp.h:67:34: sax2/SAX2XMLReader.hpp: No such file or directory gmlreaderp.h:68:37: sax2/XMLReaderFactory.hpp: No such file or directory In file included from gmlreader.cpp:132: gmlreaderp.h:77: error: syntax error before `*' token gmlreaderp.h:78: error: `XMLCh' was not declared in this scope gmlreaderp.h:78: error: syntax error before `,' token gmlreaderp.h:79: error: syntax error before `*' token gmlreaderp.h:80: error: syntax error before `*' token gmlreaderp.h:81: error: syntax error before `*' token gmlreaderp.h:90: error: syntax error before `{' token gmlreaderp.h:99: error: syntax error before `public' gmlreaderp.h:101: error: destructors must be member functions gmlreaderp.h:101: error: virtual outside class declaration gmlreaderp.h:104: error: syntax error before `*' token gmlreaderp.h:110: error: syntax error before `*' token gmlreaderp.h:114: error: syntax error before `*' token gmlreaderp.h:117: error: syntax error before `&' token gmlreaderp.h:162: error: syntax error before `*' token gmlreaderp.h:163: error: syntax error before `*' token gmlreaderp.h:165: error: 'XMLPScanToken' is used as a type, but is not defined as a type. gmlreaderp.h:209: error: syntax error before `&' token gmlreader.cpp: In constructor `GMLReader::GMLReader()': gmlreader.cpp:157: error: `m_poGMLHandler' undeclared (first use this function) gmlreader.cpp:157: error: (Each undeclared identifier is reported only once for each function it appears in.) gmlreader.cpp:158: error: `m_poSAXReader' undeclared (first use this function) gmlreader.cpp: In member function `int GMLReader::SetupParser()': gmlreader.cpp:205: error: `XMLPlatformUtils' undeclared (first use this function) gmlreader.cpp:205: error: syntax error before `::' token gmlreader.cpp:208: error: syntax error before `&' token gmlreader.cpp: At global scope: gmlreader.cpp:219: error: syntax error before `if' gmlreader.cpp:226: error: ISO C++ forbids declaration of `m_poGMLHandler' with no type gmlreader.cpp:226: error: `int m_poGMLHandler' used prior to declaration gmlreader.cpp:226: error: syntax error before `(' token gmlreader.cpp:228: error: syntax error before `->' token gmlreader.cpp:229: error: syntax error before `->' token gmlreader.cpp:230: error: syntax error before `->' token gmlreader.cpp:231: error: syntax error before `->' token gmlreader.cpp:232: error: syntax error before `->' token gmlreader.cpp:246: error: syntax error before `->' token gmlreader.cpp:248: error: syntax error before `->' token gmlreader.cpp:259: error: ISO C++ forbids declaration of `m_bReadStarted' with no type gmlreader.cpp:262: error: ISO C++ forbids declaration of `PushState' with no type gmlreader.cpp:262: error: invalid conversion from `GMLReadState*' to `int' gmlreader.cpp:264: error: syntax error before `return' gmlreader.cpp: In member function `void GMLReader::CleanupParser()': gmlreader.cpp:283: error: type `int' argument given to `delete', expected pointer gmlreader.cpp:284: warning: assignment to non-pointer type `int' from NULL gmlreader.cpp:284: warning: argument to non-pointer type `int' from NULL gmlreader.cpp: In member function `virtual GMLFeature* GMLReader::NextFeature() ': gmlreader.cpp:305: error: `m_oToFill' undeclared (first use this function) gmlreader.cpp:317: error: syntax error before `&' token gmlreader.cpp: At global scope: gmlreader.cpp:338: error: syntax error before `&' token gmlreader.cpp: In member function `void GMLReader::PushFeature(...)': gmlreader.cpp:348: error: `pszElement' undeclared (first use this function) gmlreader.cpp:371: error: `XMLCh' undeclared (first use this function) gmlreader.cpp:371: error: syntax error before `[' token gmlreader.cpp:373: error: `anFID' undeclared (first use this function) gmlreader.cpp:374: error: `attrs' undeclared (first use this function) make[2]: *** [../o/gmlreader.o] Error 1 make[2]: Leaving directory `/usr/share/gdal-1.2.5/ogr/ogrsf_frmts/gml' make[1]: *** [gml-target] Error 2 make[1]: Leaving directory `/usr/share/gdal-1.2.5/ogr/ogrsf_frmts' make: *** [sublibs] Error 2 ..... From siki at AGT.BME.HU Wed Jan 12 14:29:07 2005 From: siki at AGT.BME.HU (Siki Zoltan) Date: Wed, 12 Jan 2005 21:29:07 -0100 Subject: Mapserver Crash {Scanned} In-Reply-To: <024c01c4f8ba$ca0e5940$18c4a8c0@jfdwgql6e4tws> Message-ID: Hi, Did you set TEMPLATE in your map file? I think you should specify mode=map also in query string, because the default mode is browse and you must set TEMPLATE in your map file. Bye Zoltan On Wed, 12 Jan 2005, Constantin Cristian wrote: > Hello, > I'm kind of new to Mapserver and i have the folowing problem: > -I am building Mapserver 4.4.1 on a Slackware 10 machine, with > ./configure --enable-debug --with-eppl --with-proj=/usr/local --with-ogr=/usr/local/bin/gdal-config --with-wfs --with-wcs --with-wmsclient --with-wfsclient --with-gdal=/usr/local/bin/gdal-config --with-mygis=yes --with-php=/root/wms/php/php-4.3.7 --with-php-regex-dir=/root/wms/php/php-4.3.7/regex --with-fastcgi=/root/wms/mod_fastcgi-2.4.2 --with-ming=/root/wms/ming-0.3beta1/src --with-httpd=/usr/local/apache2/bin/httpd (I don't have any problems here) > > -after that i run make (I don't have any problems here except some warning concerning ming) > > -the mapserv executable is built > > -now the problem begins: when i run # ./mapserv QUERY_STRING="map=/usr/local/apache2/htdocs/workshop/itasca.map" > and i get "Segmentation fault", i should mention that this file exists but that does not mater the crash hapens whenever I set the variable map is set and does > not matter if the file exists or not > #./mapserv QUERY_STRING="map=twtrewa.map" > Segmentation fault > > Here is more info: > # gdb ./mapserv > GNU gdb 6.1.1 > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "i486-slackware-linux"...Using host libthread_db library "/lib/libthread_db.so.1". > > (gdb)set args QUERY_STRING="map=/usr/local/apache2/htdocs/workshop/itasca.map" > (gdb) set verbose 1 > (gdb) run > Starting program: /root/wms/mapserver-4.4.1/mapserv QUERY_STRING="map=/usr/local/apache2/htdocs/workshop/itasca.map" > > Reading symbols from /usr/local/lib/libgd.so.2...done. > Reading symbols from /usr/lib/libjpeg.so.62...done. > Reading symbols from /usr/lib/libfreetype.so.6...done. > Reading symbols from /usr/lib/libpng.so.3...done. > Reading symbols from /usr/lib/libz.so.1...done. > Reading symbols from /usr/local/lib/libXpm.so.4...done. > Reading symbols from /usr/lib/libX11.so.6...done. > Reading symbols from /usr/local/lib/libproj.so.0...done. > Reading symbols from /usr/local/lib/libgdal.so.1...done. > Reading symbols from /usr/local/lib/libming.so...done. > Reading symbols from /usr/lib/libcurl.so.3...done. > Reading symbols from /usr/lib/libssl.so.0...done. > Reading symbols from /usr/lib/libcrypto.so.0...done. > Reading symbols from /lib/libdl.so.2...done. > Reading symbols from /lib/libc.so.6...done. > Reading symbols from /lib/libm.so.6...done. > Reading symbols from /usr/lib/libstdc++.so.5...done. > Reading symbols from /usr/lib/libgcc_s.so.1...done. > Reading symbols from /usr/X11R6/lib/libfontconfig.so.1...done. > Reading symbols from /usr/lib/libpng12.so.0...done. > Reading symbols from /usr/lib/./libungif.so.4...done. > Reading symbols from /usr/lib/./libtiff.so.3...done. > Reading symbols from /usr/lib/mysql/libmysqlclient.so.12...done. > Reading symbols from /lib/libcrypt.so.1...done. > Reading symbols from /lib/libnsl.so.1...done. > Reading symbols from /lib/ld-linux.so.2...done. > Reading symbols from /usr/lib/libexpat.so.0...done. > > Program received signal SIGSEGV, Segmentation fault. > 0x0806735b in loadMapInternal ( > filename=0x8101f38 "/usr/local/apache2/htdocs/workshop/itasca.map", > new_mappath=0x0) at mapfile.c:4173 > 4173 if((msyyin = fopen(filename,"r")) == NULL) { > (gdb) > > I don't know why mapserv does not like the fopen function i tried to build a small program using fopen and i got no problem, it seams to me to be a Mapserver problem. > > Please help me and excuse my english:) From assefa at DMSOLUTIONS.CA Wed Jan 12 12:24:57 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 12 Jan 2005 15:24:57 -0500 Subject: Mapserver character encoding howto In-Reply-To: <41E5506B.60608@swoodbridge.com> Message-ID: From what I understand , there is an ENCODING parameter that may be needed in the lablel object. Bug 890 in mapserver was used to discuss the implemenatation (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=890). Later, Stephen Woodbridge wrote: > Hi all, > > I just downloaded mapserver 4.4.1 and I see there are reference to > support for i18n character encoding. Is there anything special that I > need to do to make use of it? > > The problem I am having is that accented in eastern European countries > do not seem to be displaying correctly, like I am getting the words by > they have capital A-accent, capital U-accent and capital O-accent, etc > within the words where I would at least expect a lower cases char. > > Like the following only the capital vowels are accented: > > JOzsef, LAsziO, StefAna, MAria, MUzeum KOr Ut > > This might be a font problem, but I have tried a UTF-8 font and a > Unicode font in ISO-8859-1 and ISO-8859-2 > > Any help would be appreciated. > > -Steve W. > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From jdport at VERITIME.COM Wed Jan 12 13:42:06 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Wed, 12 Jan 2005 16:42:06 -0500 Subject: Need a php/mapscript example... Message-ID: I know it can't be too difficult to do, but I'm having trouble figuring out how to stick markers on points using mapscript/php. I want to do something sort of like in this demo, http://gissv.cseas.kyoto-u.ac.jp/hanoi/hanoi.phtml. As you can see they have placed different colored stars around the map... I have small gifs of red and blue circles I'd like to stick at points on my map, and going through the listing of classes and objects I just can't seem to get it. Can anybody possibly post a small example of how this is done? I have the lat/long values for the points I want to mark. Thanks a lot, Jeff From cdaily at GMAIL.COM Wed Jan 12 13:52:11 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Wed, 12 Jan 2005 15:52:11 -0600 Subject: Need a php/mapscript example... In-Reply-To: <009d01c4f8ef$8f9ba170$5ff2fbd0@solo> Message-ID: assuming you want to do this in php/mapscript... // create our map object $map_file = "chicago.map"; $map = ms_newMapObj($map_file); // create a temp layer to hold our points $point_layer = ms_newLayerObj($map); $point_layer->set("name", "markers"); $point_layer->set("type", MS_LAYER_POINT); $point_layer->set("status", MS_DEFAULT); // create a class and style for this layer $point_class = ms_newClassObj($point_layer); $point_style = ms_newStyleObj($point_class); $point_symbol = $map->getSymbolByName("point"); $point_style->set("symbol", $point_symbol); $point_style->set("size", $marker_size); // draw our image without the points $image = $map->draw(); // initialize our point and add it to the map $point = ms_newPointObj(); $point->setXY($longitude, $latitude); $point->draw($map, $point_layer, $image, 0, ""); (do the above section for each point, or wrap it in a function) // get the location for our new image $image_url = $image->saveWebImage('MS_JPG', 1, 1, 0); From assefa at DMSOLUTIONS.CA Wed Jan 12 14:30:16 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 12 Jan 2005 17:30:16 -0500 Subject: [wms-dev] WMS servers supporting user styles In-Reply-To: <41E599CE.70506@refractions.net> Message-ID: Richard, My general feeling is that the SLD should always be used in a library mode (at least thet is the way I always understood it) with LAYERS parameters being the one controlloing the returned layers. But since It is defined in the specs to have dual way of functionning, you could add this as an enhacement bug and It will be adresses for future releases of Mapserver. Best Regards, Richard Gould wrote: > Daniel Morissette wrote: > >> Richard Gould wrote: >> >>> >>> Here is my request to the server: >>> http://dev1.dmsolutions.ca/cgi-bin/mswms_gmap?SLD=http://udig.refractions.net/park.sld&FORMAT=image/png&TRANSPARENT=TRUE&HEIGHT=372&REQUEST=GetMap&BBOX=-119.66968440860214,57.57125320534285,-111.37356827956987,62.91062206347434&WIDTH=578&&SRS=EPSG:4326&VERSION=1.1.1 >>> >>> >>> In theory, that should display only the park layer, in yellow. >>> >>> I just tried something else, and this seems to work: >>> http://dev1.dmsolutions.ca/cgi-bin/mswms_gmap?LAYERS=demo&SLD=http://udig.refractions.net/park.sld&FORMAT=image/png&TRANSPARENT=TRUE&HEIGHT=372&REQUEST=GetMap&BBOX=-119.66968440860214,57.57125320534285,-111.37356827956987,62.91062206347434&WIDTH=578&&SRS=EPSG:4326&VERSION=1.1.1 >>> >>> >>> The park layer comes up in yellow. >>> >> >> I think the problem is just that you are missing the mandatory >> "LAYERS=" parameter in your first URL. I haven't looked at SLD in a >> while, but I would think that even when using user-defined styles in >> an SLD you still need to specify the LAYERS= parameters. > > > Hi Daniel, > > In the SLD 1.0.0 specification, section 6.4 it states that if the SLD > parameter is being used in the request, it replaces the LAYERS and > STYLES parameters. They also give an example that uses SLD but not > LAYERS and STYLEs. Same goes for the SLD_BODY parameter. > > Thanks, > > Richard > _______________________________________________ > wms-dev mailing list > wms-dev at lists.eogeo.org > http://lists.eogeo.org/mailman/listinfo/wms-dev > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From paul.oduro at SPPS.ORG Wed Jan 12 14:55:20 2005 From: paul.oduro at SPPS.ORG (Paul Smith) Date: Wed, 12 Jan 2005 16:55:20 -0600 Subject: gdal make errors Message-ID: On Wed, 12 Jan 2005 12:37:42 -0600, Paul Smith wrote: >Hello All > >I am getting make errors (snippet below) when I run > >make > >after ./configure --with-ogr --with-xerces=/path/to/xerces > >I suspect the error is the '--with-xerces' and also gml. > >I am using: >gdal-1.2.5 >xerces-2.3.0 >on SLES9 >gcc-3.3.3-43.24 > >I know using the newest dist always is setting yourself up but .... > >Any help would be greatly appreciated. > >paul > >ps > >Output from make >..... >g++ -Wall -O2 -I../xerces-c-src_2_3_0/include -I../xerces-c- >src_2_3_0/include/x >ercesc -I.. -I../.. -I../../../port -I../../../gcore -I../../../ogr - >I../../../a >lg -I../../../port -DHAVE_XERCES=1 -c gmlfeature.cpp -o ../o/gmlfeature.o >>/dev/ >null 2>&1 >/bin/sh ../../../libtool --mode=compile g++ -Wall -O2 -I../xerces-c- >src_2_3_ >0/include -I../xerces-c-src_2_3_0/include/xercesc -I.. -I../.. - >I../../../port - >I../../../gcore -I../../../ogr -I../../../alg -I../../../port - >DHAVE_XERCES=1 - >c -o ../o/gmlreader.o gmlreader.cpp > g++ -Wall -O2 -I../xerces-c-src_2_3_0/include -I../xerces-c- >src_2_3_0/include/x >ercesc -I.. -I../.. -I../../../port -I../../../gcore -I../../../ogr - >I../../../a >lg -I../../../port -DHAVE_XERCES=1 -c gmlreader.cpp -fPIC -DPIC - >o ../o/.libs/g >mlreader.o >In file included from gmlreader.cpp:132: >gmlreaderp.h:64:34: util/PlatformUtils.hpp: No such file or directory >gmlreaderp.h:65:35: sax2/DefaultHandler.hpp: No such file or directory >gmlreaderp.h:66:35: sax2/ContentHandler.hpp: No such file or directory >gmlreaderp.h:67:34: sax2/SAX2XMLReader.hpp: No such file or directory >gmlreaderp.h:68:37: sax2/XMLReaderFactory.hpp: No such file or directory >In file included from gmlreader.cpp:132: >gmlreaderp.h:77: error: syntax error before `*' token >gmlreaderp.h:78: error: `XMLCh' was not declared in this scope >gmlreaderp.h:78: error: syntax error before `,' token >gmlreaderp.h:79: error: syntax error before `*' token >gmlreaderp.h:80: error: syntax error before `*' token >gmlreaderp.h:81: error: syntax error before `*' token >gmlreaderp.h:90: error: syntax error before `{' token >gmlreaderp.h:99: error: syntax error before `public' >gmlreaderp.h:101: error: destructors must be member functions >gmlreaderp.h:101: error: virtual outside class declaration >gmlreaderp.h:104: error: syntax error before `*' token >gmlreaderp.h:110: error: syntax error before `*' token >gmlreaderp.h:114: error: syntax error before `*' token >gmlreaderp.h:117: error: syntax error before `&' token >gmlreaderp.h:162: error: syntax error before `*' token >gmlreaderp.h:163: error: syntax error before `*' token >gmlreaderp.h:165: error: 'XMLPScanToken' is used as a type, but is not >defined > as a type. >gmlreaderp.h:209: error: syntax error before `&' token >gmlreader.cpp: In constructor `GMLReader::GMLReader()': >gmlreader.cpp:157: error: `m_poGMLHandler' undeclared (first use this >function) >gmlreader.cpp:157: error: (Each undeclared identifier is reported only once >for > each function it appears in.) >gmlreader.cpp:158: error: `m_poSAXReader' undeclared (first use this >function) >gmlreader.cpp: In member function `int GMLReader::SetupParser()': >gmlreader.cpp:205: error: `XMLPlatformUtils' undeclared (first use this > function) >gmlreader.cpp:205: error: syntax error before `::' token >gmlreader.cpp:208: error: syntax error before `&' token >gmlreader.cpp: At global scope: >gmlreader.cpp:219: error: syntax error before `if' >gmlreader.cpp:226: error: ISO C++ forbids declaration of `m_poGMLHandler' >with > no type >gmlreader.cpp:226: error: `int m_poGMLHandler' used prior to declaration >gmlreader.cpp:226: error: syntax error before `(' token >gmlreader.cpp:228: error: syntax error before `->' token >gmlreader.cpp:229: error: syntax error before `->' token >gmlreader.cpp:230: error: syntax error before `->' token >gmlreader.cpp:231: error: syntax error before `->' token >gmlreader.cpp:232: error: syntax error before `->' token >gmlreader.cpp:246: error: syntax error before `->' token >gmlreader.cpp:248: error: syntax error before `->' token >gmlreader.cpp:259: error: ISO C++ forbids declaration of `m_bReadStarted' >with > no type >gmlreader.cpp:262: error: ISO C++ forbids declaration of `PushState' with no > type >gmlreader.cpp:262: error: invalid conversion from `GMLReadState*' to `int' >gmlreader.cpp:264: error: syntax error before `return' >gmlreader.cpp: In member function `void GMLReader::CleanupParser()': >gmlreader.cpp:283: error: type `int' argument given to `delete', expected > pointer >gmlreader.cpp:284: warning: assignment to non-pointer type `int' from NULL >gmlreader.cpp:284: warning: argument to non-pointer type `int' from NULL >gmlreader.cpp: In member function `virtual GMLFeature* >GMLReader::NextFeature() > ': >gmlreader.cpp:305: error: `m_oToFill' undeclared (first use this function) >gmlreader.cpp:317: error: syntax error before `&' token >gmlreader.cpp: At global scope: >gmlreader.cpp:338: error: syntax error before `&' token >gmlreader.cpp: In member function `void GMLReader::PushFeature(...)': >gmlreader.cpp:348: error: `pszElement' undeclared (first use this function) >gmlreader.cpp:371: error: `XMLCh' undeclared (first use this function) >gmlreader.cpp:371: error: syntax error before `[' token >gmlreader.cpp:373: error: `anFID' undeclared (first use this function) >gmlreader.cpp:374: error: `attrs' undeclared (first use this function) >make[2]: *** [../o/gmlreader.o] Error 1 >make[2]: Leaving directory `/usr/share/gdal-1.2.5/ogr/ogrsf_frmts/gml' >make[1]: *** [gml-target] Error 2 >make[1]: Leaving directory `/usr/share/gdal-1.2.5/ogr/ogrsf_frmts' >make: *** [sublibs] Error 2 > >..... Hello All I just noticed there is a bug report (for windows however) http://208.24.120.44/show_bug.cgi?id=324 Frank W. do you know if this has been resolved yet? Maybe I will be better of using an older version of xerces then. Paul From fwarmerdam at GMAIL.COM Wed Jan 12 19:06:44 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 12 Jan 2005 22:06:44 -0500 Subject: gdal make errors In-Reply-To: Message-ID: On Wed, 12 Jan 2005 16:55:20 -0600, Paul Smith wrote: > On Wed, 12 Jan 2005 12:37:42 -0600, Paul Smith wrote: > >Output from make > >..... > >g++ -Wall -O2 -I../xerces-c-src_2_3_0/include -I../xerces-c- Paul, The above is your problem. You can't use a relative path in the --with-xerces configure. It has to be an absolute path. That is because the path is used from various submakefiles in other directories. > I just noticed there is a bug report (for windows however) > > http://208.24.120.44/show_bug.cgi?id=324 > > Frank W. do you know if this has been resolved yet? Maybe I will be better > of using an older version of xerces then. It has been resolved. I added a note to bug report. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From tylermitchell at SHAW.CA Wed Jan 12 19:14:33 2005 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Wed, 12 Jan 2005 19:14:33 -0800 Subject: [UMN_MAPSERVER-USERS] Problems displaying PostGIS Layer In-Reply-To: <1FB6937A87F9074C9A2B8F9D9137EB1603A8C966@COMAIL01.digitalglobe.com> Message-ID: Skweda, Regardless of the status of the layer, you're obviously turning it on in your script or it wouldn't give an error. Can you provide us the script as well so we can see what you are doing with it? Are you modifying anything about this layer? Tyler On January 12, 2005 10:01 am, Ethan Alpert wrote: > There's also the slight detail that you have the layer status set to OFF. > > -e > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Skweda O'Bomsawin Sent: Wednesday, January 12, 2005 10:15 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] Problems > displaying PostGIS Layer > > > Hi William! > > I'd first recommend you to create an index for your Postgis layer: CREATE > INDEX us_cities_idx ON us_cities USING GIST (the_geom GIST_GEOMETRY_OPS); > > Second, since your layer is using SRID 4326, make sure you have a > PROJECTION bloc correctly set in your MAP section of you mapfile. > Otherwise, you must have a PROJECTION bloc in your LAYER section... > > Skweda > > > -----Message d'origine----- > De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la > part de William Hudspeth Envoy??: 12 janvier 2005 11:28 ??: > MAPSERVER-USERS at LISTS.UMN.EDU Objet?: [UMN_MAPSERVER-USERS] Problems > displaying PostGIS Layer > > Hello, > > I have imported a shapefile into PostGIS with the following: > > ./shp2pgsql -s 4326 /path/us_cities.shp us_cities -d reason | ./psql -d > reason > > The new table has a "gid" column as well as a populated geometry column > named "the_geom". My map file entry looks like this: > > **************************** > LAYER > CONNECTIONTYPE postgis > NAME "us_cities" > CONNECTION "user=postgis dbname=reason host=falstaff.unm.edu" > DATA "the_geom from us_cities" > STATUS OFF > TYPE POINT > > CLASS > COLOR 177 213 34 > SIZE 7 > SYMBOL "circle" > END > END > ******************************** > The layer does not display. I get the following error in my Apache error > log: > > [Wed Jan 12 08:47:48 2005] [error] [client 129.24.73.222] > _mapscript.MapServerError: msDrawMap(): Image handling error. Failed to > draw layer named 'us_cities'., referer: http://falstaff.unm.edu/cgi- > bin/reason/python_mapscript.py [Wed Jan 12 08:47:48 2005] [error] [client > 129.24.73.222] prep_DB(): Query error. Error executing POSTGIS DECLARE (the > actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT > asbinary (force_collection(force_2d(the_geom)),'NDR'),gid::text from > us_cities WHERE the_geom && setSRID('BOX3D(-125.000000000, referer: > http://falstaff.unm.edu/cgi-bin/reason/python_mapscript.py > > > I would appreciate any insight into this problem. > > Thanks, Bill > > -- > No virus found in this incoming message. > Checked by AVG Anti-Virus. > Version: 7.0.300 / Virus Database: 265.6.10 - Release Date: 2005-01-10 From stefan.schwarzer at GRID.UNEP.CH Wed Jan 12 22:09:07 2005 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Thu, 13 Jan 2005 07:09:07 +0100 Subject: TIFF displays and displays not In-Reply-To: <4BF377919225F449BB097CB76FFE9BC80FCA13@ptolemy.topozone.com> Message-ID: Ed, thanks for that. Still, I can't see the reason for that. I have two TIFF images, which seem to be perfectly similar. I have saved them both from Photoshop. So no GeoTIIFF, only normal TIFF. How do I get the "mapserv -v" on a Windows machine? The Linux machine is giving me this: MapServer version 4.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > Stefan - > ? > The first thing I'd do is run "mapserv -v" on each machine and look > for configuration differences in your two MapServer installations.? > Also, check whether both are GeoTIFFs. > ? > ???? - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA? 01863 > ed at topozone.com > (978) 251-4242 > > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On Behalf Of Stefan Schwarzer > Sent: Wednesday, January 12, 2005 8:21 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] TIFF displays and displays not > > Hi, > > > gush, what a strange thing. I have to TIFFs with a worldfile each. > Using PHP/MapScript, on my windows machine, both display nicely. On > our Linux machine however, only one of the two displays. When I select > the other, white space... Nothing. > > > I added one of the TIFFs only now, the other already a couple of days > ago. Sure, this can't be the reason. But .... Actually, I have no > idea. They are both 8 bit, and RGB color mode. > > > Any idea whatsoever? Thanks for letting me know. I am really stuck... > > > Stef > > > ????????_______________________________________ > > > ????????Stefan Schwarzer > > ????????GIS & Data Management > > > ????????UNEP/DEWA/GRID-Geneva > ????????Chemin des Anemones 11 > ????????CH - 1219 Chatelaine > ????????Switzerland > > > ????????Tel: (+41) 22.917.83.49 > ????????Fax: (+41) 22.917.80.29 > > > ????????Internet: http://geodata.grid.unep.ch/ > ????????_______________________________________ > ????????_______________________________________ ????????Stefan Schwarzer ????????GIS & Data Management ????????UNEP/DEWA/GRID-Geneva ????????Chemin des Anemones 11 ????????CH - 1219 Chatelaine ????????Switzerland ????????Tel: (+41) 22.917.83.49 ????????Fax: (+41) 22.917.80.29 ????????Internet: http://geodata.grid.unep.ch/ ????????_______________________________________ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 5485 bytes Desc: not available URL: From jacob.delfos at MAUNSELL.COM Wed Jan 12 22:32:35 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Thu, 13 Jan 2005 14:32:35 +0800 Subject: TIFF displays and displays not Message-ID: Stefan, this may not be related to the cause, but I have had problems using TIFF from photoshop. Whatever the reason was, it wasn't because it was TIFF instead of geoTIFF, because even with a TFW file, it wouldn't display. It stayed blank. TIFF's not created by photoshop would work fine. There have been other people on the list reporting problems with TIFF from photoshop. I ended up converting to ecw. Does your php log or webserver log give you any useful errors? Perhaps you could try writing the TIFF from a different program (irfanview?). regards, Jacob -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Stefan Schwarzer Sent: 13 January 2005 14:09 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] TIFF displays and displays not Ed, thanks for that. Still, I can't see the reason for that. I have two TIFF images, which seem to be perfectly similar. I have saved them both from Photoshop. So no GeoTIIFF, only normal TIFF. How do I get the "mapserv -v" on a Windows machine? The Linux machine is giving me this: MapServer version 4.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Stefan - The first thing I'd do is run "mapserv -v" on each machine and look for configuration differences in your two MapServer installations. Also, check whether both are GeoTIFFs. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Stefan Schwarzer Sent: Wednesday, January 12, 2005 8:21 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] TIFF displays and displays not Hi, gush, what a strange thing. I have to TIFFs with a worldfile each. Using PHP/MapScript, on my windows machine, both display nicely. On our Linux machine however, only one of the two displays. When I select the other, white space... Nothing. I added one of the TIFFs only now, the other already a couple of days ago. Sure, this can't be the reason. But .... Actually, I have no idea. They are both 8 bit, and RGB color mode. Any idea whatsoever? Thanks for letting me know. I am really stuck... Stef _______________________________________ Stefan Schwarzer GIS & Data Management UNEP/DEWA/GRID-Geneva Chemin des Anemones 11 CH - 1219 Chatelaine Switzerland Tel: (+41) 22.917.83.49 Fax: (+41) 22.917.80.29 Internet: http://geodata.grid.unep.ch/ _______________________________________ _______________________________________ Stefan Schwarzer GIS & Data Management UNEP/DEWA/GRID-Geneva Chemin des Anemones 11 CH - 1219 Chatelaine Switzerland Tel: (+41) 22.917.83.49 Fax: (+41) 22.917.80.29 Internet: http://geodata.grid.unep.ch/ _______________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From tylermitchell at SHAW.CA Wed Jan 12 22:42:52 2005 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Wed, 12 Jan 2005 22:42:52 -0800 Subject: Wiki update Message-ID: There are a couple errors on: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?AnExampleApplication Can someone who is able to edit the wiki drop me a note so we can fix it? Tyler From stefan.schwarzer at GRID.UNEP.CH Wed Jan 12 23:06:51 2005 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Thu, 13 Jan 2005 08:06:51 +0100 Subject: Mapserver Installation on Mac OSX Message-ID: Hi there, I am looking for some instructions for dummies like me how to install PHP/Mapscript on Mac OSX. I found the URLs below, which helped me already a lot. But I haven't completely succeed though. Does anyone have perhaps an up-to-date "instruction & installation plan"? Would be cool... http://webpages.charter.net/kyngchaos/macosx/index.html http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MacOS http://home.nc.rr.com/wwheaton/ Thanks, Stefan ????????_______________________________________ ????????Stefan Schwarzer ????????GIS & Data Management ????????UNEP/DEWA/GRID-Geneva ????????Chemin des Anemones 11 ????????CH - 1219 Chatelaine ????????Switzerland ????????Tel: (+41) 22.917.83.49 ????????Fax: (+41) 22.917.80.29 ????????Internet: http://geodata.grid.unep.ch/ ????????_______________________________________ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1184 bytes Desc: not available URL: From gsw at GLOBEXPLORER.COM Wed Jan 12 23:08:25 2005 From: gsw at GLOBEXPLORER.COM (Gregory S. Williamson) Date: Wed, 12 Jan 2005 23:08:25 -0800 Subject: TIFF displays and displays not Message-ID: Stefan, I just tried this on windoze (windows 2000) and got: C:\MS4W\APACHE\CGI-BIN>mapserv -v MapServer version 4.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=ENT INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE I think the INPUT=TIFF in your listing might be a clue -- the built in TIFF processing is apparently deprecated in favor of the GDAL package which does more/better ... that might be the source of your problems ? (a wild guess ... hopefully not too off base) ... A version compiled without builtin TIFF support might be an answer, without providing a reason. Greg Williamson DBA GlobeXplorer LLC -----Original Message----- From: Stefan Schwarzer [mailto:stefan.schwarzer at GRID.UNEP.CH] Sent: Wed 1/12/2005 10:09 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Cc: Subject: Re: [UMN_MAPSERVER-USERS] TIFF displays and displays not Ed, thanks for that. Still, I can't see the reason for that. I have two TIFF images, which seem to be perfectly similar. I have saved them both from Photoshop. So no GeoTIIFF, only normal TIFF. How do I get the "mapserv -v" on a Windows machine? The Linux machine is giving me this: MapServer version 4.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > Stefan - > > The first thing I'd do is run "mapserv -v" on each machine and look > for configuration differences in your two MapServer installations. > Also, check whether both are GeoTIFFs. > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > (978) 251-4242 > > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On Behalf Of Stefan Schwarzer > Sent: Wednesday, January 12, 2005 8:21 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] TIFF displays and displays not > > Hi, > > > gush, what a strange thing. I have to TIFFs with a worldfile each. > Using PHP/MapScript, on my windows machine, both display nicely. On > our Linux machine however, only one of the two displays. When I select > the other, white space... Nothing. > > > I added one of the TIFFs only now, the other already a couple of days > ago. Sure, this can't be the reason. But .... Actually, I have no > idea. They are both 8 bit, and RGB color mode. > > > Any idea whatsoever? Thanks for letting me know. I am really stuck... > > > Stef > > > _______________________________________ > > > Stefan Schwarzer > > GIS & Data Management > > > UNEP/DEWA/GRID-Geneva > Chemin des Anemones 11 > CH - 1219 Chatelaine > Switzerland > > > Tel: (+41) 22.917.83.49 > Fax: (+41) 22.917.80.29 > > > Internet: http://geodata.grid.unep.ch/ > _______________________________________ > _______________________________________ Stefan Schwarzer GIS & Data Management UNEP/DEWA/GRID-Geneva Chemin des Anemones 11 CH - 1219 Chatelaine Switzerland Tel: (+41) 22.917.83.49 Fax: (+41) 22.917.80.29 Internet: http://geodata.grid.unep.ch/ _______________________________________ From siki at AGT.BME.HU Thu Jan 13 01:33:39 2005 From: siki at AGT.BME.HU (Siki Zoltan) Date: Thu, 13 Jan 2005 08:33:39 -0100 Subject: TIFF displays and displays not {Scanned} In-Reply-To: Message-ID: Hi, On Thu, 13 Jan 2005, Stefan Schwarzer wrote: > Ed, > > thanks for that. > > Still, I can't see the reason for that. I have two TIFF images, which > seem to be perfectly similar. I have saved them both from Photoshop. So > no GeoTIIFF, only normal TIFF. > > How do I get the "mapserv -v" on a Windows machine? Change directory to your cgi-bin and type mapserv.exe -v > > The Linux machine is giving me this: > MapServer version 4.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF > SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL > INPUT=SHAPEFILE > Recently I had trouble on Linux, having both native INPUT=TIFF and INPUT=GDAL. The gdal tiff support is more powerful then mapserv native solution so configure mapserverver --without-tiff and --with-gdal. I check my windows mapserv.exe which I downloaded in a binary pachage, and no INPUT=TIFF support involved. Bye Zoltan > > > > > Stefan - > > > > The first thing I'd do is run "mapserv -v" on each machine and look > > for configuration differences in your two MapServer installations. > > Also, check whether both are GeoTIFFs. > > > > - Ed > > > > Ed McNierney > > President and Chief Mapmaker > > TopoZone.com / Maps a la carte, Inc. > > 73 Princeton Street, Suite 305 > > North Chelmsford, MA 01863 > > ed at topozone.com > > (978) 251-4242 > > > > > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > > On Behalf Of Stefan Schwarzer > > Sent: Wednesday, January 12, 2005 8:21 AM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] TIFF displays and displays not > > > > Hi, > > > > > > gush, what a strange thing. I have to TIFFs with a worldfile each. > > Using PHP/MapScript, on my windows machine, both display nicely. On > > our Linux machine however, only one of the two displays. When I select > > the other, white space... Nothing. > > > > > > I added one of the TIFFs only now, the other already a couple of days > > ago. Sure, this can't be the reason. But .... Actually, I have no > > idea. They are both 8 bit, and RGB color mode. > > > > > > Any idea whatsoever? Thanks for letting me know. I am really stuck... > > > > > > Stef > > > > > > _______________________________________ > > > > > > Stefan Schwarzer > > > > GIS & Data Management > > > > > > UNEP/DEWA/GRID-Geneva > > Chemin des Anemones 11 > > CH - 1219 Chatelaine > > Switzerland > > > > > > Tel: (+41) 22.917.83.49 > > Fax: (+41) 22.917.80.29 > > > > > > Internet: http://geodata.grid.unep.ch/ > > _______________________________________ > > > > _______________________________________ > > Stefan Schwarzer > GIS & Data Management > > UNEP/DEWA/GRID-Geneva > Chemin des Anemones 11 > CH - 1219 Chatelaine > Switzerland > > Tel: (+41) 22.917.83.49 > Fax: (+41) 22.917.80.29 > > Internet: http://geodata.grid.unep.ch/ > _______________________________________ > From thomas at MICRODOP.ORG Wed Jan 12 23:58:22 2005 From: thomas at MICRODOP.ORG (Thomas Sondag) Date: Thu, 13 Jan 2005 08:58:22 +0100 Subject: Mapserver Crash In-Reply-To: <028001c4f8c2$53f97de0$18c4a8c0@jfdwgql6e4tws> Message-ID: try without : -with-php-regex-dir=/root/wms/php/php-4.3.7/regex I have exactly the same problem on debian and that solve it. Now I make double build, one for binarys such as mapserv without php and another one for php_mapscript.so with php as apache DSO. Thomas From constantin.a.cristian at GMAIL.COM Thu Jan 13 00:24:32 2005 From: constantin.a.cristian at GMAIL.COM (Constantin Cristian) Date: Thu, 13 Jan 2005 10:24:32 +0200 Subject: Mapserver Crash Message-ID: Ok I think I got it now, I reconfigured with no option and Mapserver didn't crash, then I started to add options an compile and run after every one until I reached this options: --with-php=../php/php-4.3.7 --with-php-regex-dir=/root/wms/php/php-4.3.7. At this point it seems to be something wrong with my php version but I tried to compile with 5.0.3 and I got the same crash.... I don't know why this happens. If I use php_mapscript.so that is built with --with-php=../php/php-4.3.7 --with-php-regex-dir=/root/wms/php/php-4.3.7 it does not crash, so I'm going to use mapserv built without php for cgi and php_mapscript.so built with php for mapscript. Thanks a lot to everybody who tried to help. From stefan.schwarzer at GRID.UNEP.CH Thu Jan 13 02:06:53 2005 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Thu, 13 Jan 2005 11:06:53 +0100 Subject: TIFF displays and displays not In-Reply-To: Message-ID: Thanks to everyone for the feedback. It seems to be a problem on the image side. I don't understand why, but although it displays nicely in ArcView and Photoshop, the screen keeps blank with Mapserver. (I had the impression that ArcExplorer-Java for Mac didn't display it either.) But when I exported the TIF in ERDAS as GeoTIF and loaded it into the app it worked. Stef > Hi, > > On Thu, 13 Jan 2005, Stefan Schwarzer wrote: > >> Ed, >> >> thanks for that. >> >> Still, I can't see the reason for that. I have two TIFF images, which >> seem to be perfectly similar. I have saved them both from Photoshop. >> So >> no GeoTIIFF, only normal TIFF. >> >> How do I get the "mapserv -v" on a Windows machine? > > Change directory to your cgi-bin and type > mapserv.exe -v >> >> The Linux machine is giving me this: >> MapServer version 4.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF >> SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER >> SUPPORTS=WMS_CLIENT >> INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL >> INPUT=SHAPEFILE >> > Recently I had trouble on Linux, having both native INPUT=TIFF and > INPUT=GDAL. The gdal tiff support is more powerful then mapserv native > solution so configure mapserverver --without-tiff and --with-gdal. > I check my windows mapserv.exe which I downloaded in a binary pachage, > and > no INPUT=TIFF support involved. > > Bye > Zoltan > >> >> >> >>> Stefan - >>> ? >>> The first thing I'd do is run "mapserv -v" on each machine and look >>> for configuration differences in your two MapServer installations.? >>> Also, check whether both are GeoTIFFs. >>> ? >>> ???? - Ed >>> >>> Ed McNierney >>> President and Chief Mapmaker >>> TopoZone.com / Maps a la carte, Inc. >>> 73 Princeton Street, Suite 305 >>> North Chelmsford, MA? 01863 >>> ed at topozone.com >>> (978) 251-4242 >>> >>> >>> From: UMN MapServer Users List >>> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] >>> On Behalf Of Stefan Schwarzer >>> Sent: Wednesday, January 12, 2005 8:21 AM >>> To: MAPSERVER-USERS at LISTS.UMN.EDU >>> Subject: [UMN_MAPSERVER-USERS] TIFF displays and displays not >>> >>> Hi, >>> >>> >>> gush, what a strange thing. I have to TIFFs with a worldfile each. >>> Using PHP/MapScript, on my windows machine, both display nicely. On >>> our Linux machine however, only one of the two displays. When I >>> select >>> the other, white space... Nothing. >>> >>> >>> I added one of the TIFFs only now, the other already a couple of >>> days >>> ago. Sure, this can't be the reason. But .... Actually, I have no >>> idea. They are both 8 bit, and RGB color mode. >>> >>> >>> Any idea whatsoever? Thanks for letting me know. I am really >>> stuck... >>> >>> >>> Stef >>> >>> >>> ????????_______________________________________ >>> >>> >>> ????????Stefan Schwarzer >>> >>> ????????GIS & Data Management >>> >>> >>> ????????UNEP/DEWA/GRID-Geneva >>> ????????Chemin des Anemones 11 >>> ????????CH - 1219 Chatelaine >>> ????????Switzerland >>> >>> >>> ????????Tel: (+41) 22.917.83.49 >>> ????????Fax: (+41) 22.917.80.29 >>> >>> >>> ????????Internet: http://geodata.grid.unep.ch/ >>> ????????_______________________________________ >>> >> >> ????????_______________________________________ >> >> ????????Stefan Schwarzer >> ????????GIS & Data Management >> >> ????????UNEP/DEWA/GRID-Geneva >> ????????Chemin des Anemones 11 >> ????????CH - 1219 Chatelaine >> ????????Switzerland >> >> ????????Tel: (+41) 22.917.83.49 >> ????????Fax: (+41) 22.917.80.29 >> >> ????????Internet: http://geodata.grid.unep.ch/ >> ????????_______________________________________ >> > > ????????_______________________________________ ????????Stefan Schwarzer ????????GIS & Data Management ????????UNEP/DEWA/GRID-Geneva ????????Chemin des Anemones 11 ????????CH - 1219 Chatelaine ????????Switzerland ????????Tel: (+41) 22.917.83.49 ????????Fax: (+41) 22.917.80.29 ????????Internet: http://geodata.grid.unep.ch/ ????????_______________________________________ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 4143 bytes Desc: not available URL: From fsozzi at INTERCAD.CH Thu Jan 13 02:54:03 2005 From: fsozzi at INTERCAD.CH (Francesco Sozzi) Date: Thu, 13 Jan 2005 11:54:03 +0100 Subject: Crash on querying Oracle Spatial Layers Message-ID: Hi Fernando, I have troubles on querying Oracle Spatial Layer. If I use QueryByPoint or QueryByAttribute on an Oracle Layer, Mapserver crashes generating an application error. Have you any suggestions?... I use the following configuartion: - Mapserver 4.4.1 win32 compiled by me (I did not find a precompiled version with both Oracle and PHP dll) - Oracle Enterprise Edition 9 - IIS - Windows XP I defined a simple point layer as: LAYER NAME "test" TYPE POINT CONNECTIONTYPE oraclespatial CONNECTION "ti_manufatti/avs at franz" DATA "GEOM FROM (SELECT fid, dist, geom FROM ic_kuba_manufatti) USING UNIQUE fid" STATUS DEFAULT CLASS NAME "Default" COLOR 0 0 0 TEMPLATE "templates/default.html" END END And I tried from PHP/Mapscript to do ($pointSubmitted is got in coordinates): //get layer $layer=$gMap->getLayerByName("select"); //query test 1 $qresult = $layer->queryByPoint($pointSubmitted, MS_MULTIPLE, 10); //query test 2 $qresult = $layer->queryByAttributes("dist", "dist > 0", MS_MULTIPLE); Best regards Francesco From mms at GNETCONSULTING.COM Thu Jan 13 05:46:48 2005 From: mms at GNETCONSULTING.COM (MapServer User) Date: Thu, 13 Jan 2005 08:46:48 -0500 Subject: OT: decimal degree conversion Message-ID: MapServer Users: I could use some quick help in diagnosing the problem I have with plotting issues. I use the following PHP to convert a lat/long (xx:xx:xx) to decimal degrees. If anyone could point out the flaws, I would appreciate it. Some plot fine. Others appear to be off. I'm assuming this is the culprit. Thanks. // our plotting function to specify degrees function plot_degrees($location) { // create an array of our data $arrCoords = explode(":", $location); // set our data $long = $arrCoords[0]; $longdiv1 = round((($arrCoords[1] / 60) * 100)); $longdiv2 = round((($arrCoords[2] / 3600) * 100000)); // create our plotting location $plot = $long .= "." . $longdiv1 . $longdiv2; // return our appended string return $plot; } Joel From mbrown at AL1CALL.COM Thu Jan 13 06:44:07 2005 From: mbrown at AL1CALL.COM (Matt Brown) Date: Thu, 13 Jan 2005 08:44:07 -0600 Subject: OT: decimal degree conversion In-Reply-To: <00e401c4f976$630007a0$1400a8c0@desktop> Message-ID: Joel, instead of concatenating as strings, you would probably be better off to add ie, $longdiv1 = $arrCoords[1] / 60; $longdiv2 = $arrCoords[2] / 3600; // create our plotting location $plot = $long + $longdiv1 + $longdiv2; Matt -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of MapServer User Sent: Thursday, January 13, 2005 7:47 AM To: MAPSERVER-USERS at lists.umn.edu Subject: [UMN_MAPSERVER-USERS] OT: decimal degree conversion MapServer Users: I could use some quick help in diagnosing the problem I have with plotting issues. I use the following PHP to convert a lat/long (xx:xx:xx) to decimal degrees. If anyone could point out the flaws, I would appreciate it. Some plot fine. Others appear to be off. I'm assuming this is the culprit. Thanks. // our plotting function to specify degrees function plot_degrees($location) { // create an array of our data $arrCoords = explode(":", $location); // set our data $long = $arrCoords[0]; $longdiv1 = round((($arrCoords[1] / 60) * 100)); $longdiv2 = round((($arrCoords[2] / 3600) * 100000)); // create our plotting location $plot = $long .= "." . $longdiv1 . $longdiv2; // return our appended string return $plot; } -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of MapServer User Sent: Thursday, January 13, 2005 7:47 AM To: MAPSERVER-USERS at lists.umn.edu Subject: [UMN_MAPSERVER-USERS] OT: decimal degree conversion MapServer Users: I could use some quick help in diagnosing the problem I have with plotting issues. I use the following PHP to convert a lat/long (xx:xx:xx) to decimal degrees. If anyone could point out the flaws, I would appreciate it. Some plot fine. Others appear to be off. I'm assuming this is the culprit. Thanks. // our plotting function to specify degrees function plot_degrees($location) { // create an array of our data $arrCoords = explode(":", $location); // set our data $long = $arrCoords[0]; $longdiv1 = round((($arrCoords[1] / 60) * 100)); $longdiv2 = round((($arrCoords[2] / 3600) * 100000)); // create our plotting location $plot = $long .= "." . $longdiv1 . $longdiv2; // return our appended string return $plot; } Joel From sobomsawin at KASSINI.COM Thu Jan 13 07:24:33 2005 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Thu, 13 Jan 2005 10:24:33 -0500 Subject: [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] Problems displaying PostGIS Layer In-Reply-To: <200501121914.33984.tylermitchell@shaw.ca> Message-ID: Obviously, this question is for Bill (or maybe William, I don't exactly know his name). By the way Bill or William, could you please give us a sign of life and help to resolve these misunderstanding (and maybe provide us with some of your Python script)? Tyler, I agree with you, you don't have to set the layer status to ON or DEFAULT if you do that in your script (Swing or PHP). Skweda -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Tyler Mitchell Envoy??: 12 janvier 2005 22:15 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] Problems displaying PostGIS Layer Skweda, Regardless of the status of the layer, you're obviously turning it on in your script or it wouldn't give an error. Can you provide us the script as well so we can see what you are doing with it? Are you modifying anything about this layer? Tyler On January 12, 2005 10:01 am, Ethan Alpert wrote: > There's also the slight detail that you have the layer status set to OFF. > > -e > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Skweda O'Bomsawin Sent: Wednesday, January 12, 2005 10:15 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] Problems > displaying PostGIS Layer > > > Hi William! > > I'd first recommend you to create an index for your Postgis layer: CREATE > INDEX us_cities_idx ON us_cities USING GIST (the_geom GIST_GEOMETRY_OPS); > > Second, since your layer is using SRID 4326, make sure you have a > PROJECTION bloc correctly set in your MAP section of you mapfile. > Otherwise, you must have a PROJECTION bloc in your LAYER section... > > Skweda > > > -----Message d'origine----- > De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la > part de William Hudspeth Envoy??: 12 janvier 2005 11:28 ??: > MAPSERVER-USERS at LISTS.UMN.EDU Objet?: [UMN_MAPSERVER-USERS] Problems > displaying PostGIS Layer > > Hello, > > I have imported a shapefile into PostGIS with the following: > > ./shp2pgsql -s 4326 /path/us_cities.shp us_cities -d reason | ./psql -d > reason > > The new table has a "gid" column as well as a populated geometry column > named "the_geom". My map file entry looks like this: > > **************************** > LAYER > CONNECTIONTYPE postgis > NAME "us_cities" > CONNECTION "user=postgis dbname=reason host=falstaff.unm.edu" > DATA "the_geom from us_cities" > STATUS OFF > TYPE POINT > > CLASS > COLOR 177 213 34 > SIZE 7 > SYMBOL "circle" > END > END > ******************************** > The layer does not display. I get the following error in my Apache error > log: > > [Wed Jan 12 08:47:48 2005] [error] [client 129.24.73.222] > _mapscript.MapServerError: msDrawMap(): Image handling error. Failed to > draw layer named 'us_cities'., referer: http://falstaff.unm.edu/cgi- > bin/reason/python_mapscript.py [Wed Jan 12 08:47:48 2005] [error] [client > 129.24.73.222] prep_DB(): Query error. Error executing POSTGIS DECLARE (the > actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT > asbinary (force_collection(force_2d(the_geom)),'NDR'),gid::text from > us_cities WHERE the_geom && setSRID('BOX3D(-125.000000000, referer: > http://falstaff.unm.edu/cgi-bin/reason/python_mapscript.py > > > I would appreciate any insight into this problem. > > Thanks, Bill > > -- > No virus found in this incoming message. > Checked by AVG Anti-Virus. > Version: 7.0.300 / Virus Database: 265.6.10 - Release Date: 2005-01-10 -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.6.11 - Release Date: 2005-01-12 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.6.11 - Release Date: 2005-01-12 From cdaily at GMAIL.COM Thu Jan 13 08:59:54 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Thu, 13 Jan 2005 10:59:54 -0600 Subject: Finding distances Message-ID: I'm working on an app in php/mapscript in which I'll need to do some calculations of the distances between a given point (address) and various shapefiles, such as parks, or schools. Basically, I'll be showing what the nearest school is, or nearest lake. I know that mapscript has some useful functions, such as distanceToShape(). I can check a point against every shape in a shapefile and see which is smallest, but it seems to me that this might take a very long time, especially if the shapefiles are really large. Alternately, it seems I could load the shapefile into a database and use some 'where' clauses to my SQL statements to reduce the number of points I need to check. Does anyone have any examples of how to make this run efficiently? From ed at TOPOZONE.COM Thu Jan 13 09:05:59 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 13 Jan 2005 12:05:59 -0500 Subject: OT: decimal degree conversion Message-ID: Joel - As Matt has correctly pointed out, this is an arithmetic operation, not a string one. You incorrectly assume that the minutes portion gets converted into the first two decimal places and the seconds portion into the the third and remaining decimal places. You're making it too hard ! 0 degrees, 0 minutes, 59 seconds (00:00:59) equals 59/3600 degrees = 0.01639 degrees, while your algorithm gets 0.001639 - one tenth the correct value. $plot = $arrCoords[0] + ($arrCoords[1] / 60) + ($arrCoords[2] / 3600); Is all you need - note the lack of round () calls; that's intentional. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of MapServer User Sent: Thursday, January 13, 2005 8:47 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] OT: decimal degree conversion MapServer Users: I could use some quick help in diagnosing the problem I have with plotting issues. I use the following PHP to convert a lat/long (xx:xx:xx) to decimal degrees. If anyone could point out the flaws, I would appreciate it. Some plot fine. Others appear to be off. I'm assuming this is the culprit. Thanks. // our plotting function to specify degrees function plot_degrees($location) { // create an array of our data $arrCoords = explode(":", $location); // set our data $long = $arrCoords[0]; $longdiv1 = round((($arrCoords[1] / 60) * 100)); $longdiv2 = round((($arrCoords[2] / 3600) * 100000)); // create our plotting location $plot = $long .= "." . $longdiv1 . $longdiv2; // return our appended string return $plot; } Joel From ed at TOPOZONE.COM Thu Jan 13 09:08:53 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 13 Jan 2005 12:08:53 -0500 Subject: TIFF displays and displays not Message-ID: Stef - If I recall correctly, the INPUT=TIFF support reads GeoTIFF but not TFW world files. Exporting the file as a GeoTIF would then fix this problem, consistent with your observation. I'm not sure my memory is correct, but the "built-in" TIFF support is now deprecated and you really should remove it - GDAL will provide much better TIFF support for you. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Stefan Schwarzer Sent: Thursday, January 13, 2005 5:07 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] TIFF displays and displays not Thanks to everyone for the feedback. It seems to be a problem on the image side. I don't understand why, but although it displays nicely in ArcView and Photoshop, the screen keeps blank with Mapserver. (I had the impression that ArcExplorer-Java for Mac didn't display it either.) But when I exported the TIF in ERDAS as GeoTIF and loaded it into the app it worked. Stef Hi, On Thu, 13 Jan 2005, Stefan Schwarzer wrote: Ed, thanks for that. Still, I can't see the reason for that. I have two TIFF images, which seem to be perfectly similar. I have saved them both from Photoshop. So no GeoTIIFF, only normal TIFF. How do I get the "mapserv -v" on a Windows machine? Change directory to your cgi-bin and type mapserv.exe -v The Linux machine is giving me this: MapServer version 4.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Recently I had trouble on Linux, having both native INPUT=TIFF and INPUT=GDAL. The gdal tiff support is more powerful then mapserv native solution so configure mapserverver --without-tiff and --with-gdal. I check my windows mapserv.exe which I downloaded in a binary pachage, and no INPUT=TIFF support involved. Bye Zoltan Stefan - The first thing I'd do is run "mapserv -v" on each machine and look for configuration differences in your two MapServer installations. Also, check whether both are GeoTIFFs. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Stefan Schwarzer Sent: Wednesday, January 12, 2005 8:21 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] TIFF displays and displays not Hi, gush, what a strange thing. I have to TIFFs with a worldfile each. Using PHP/MapScript, on my windows machine, both display nicely. On our Linux machine however, only one of the two displays. When I select the other, white space... Nothing. I added one of the TIFFs only now, the other already a couple of days ago. Sure, this can't be the reason. But .... Actually, I have no idea. They are both 8 bit, and RGB color mode. Any idea whatsoever? Thanks for letting me know. I am really stuck... Stef _______________________________________ Stefan Schwarzer GIS & Data Management UNEP/DEWA/GRID-Geneva Chemin des Anemones 11 CH - 1219 Chatelaine Switzerland Tel: (+41) 22.917.83.49 Fax: (+41) 22.917.80.29 Internet: http://geodata.grid.unep.ch/ _______________________________________ _______________________________________ Stefan Schwarzer GIS & Data Management UNEP/DEWA/GRID-Geneva Chemin des Anemones 11 CH - 1219 Chatelaine Switzerland Tel: (+41) 22.917.83.49 Fax: (+41) 22.917.80.29 Internet: http://geodata.grid.unep.ch/ _______________________________________ _______________________________________ Stefan Schwarzer GIS & Data Management UNEP/DEWA/GRID-Geneva Chemin des Anemones 11 CH - 1219 Chatelaine Switzerland Tel: (+41) 22.917.83.49 Fax: (+41) 22.917.80.29 Internet: http://geodata.grid.unep.ch/ _______________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at DNR.STATE.MN.US Thu Jan 13 10:27:41 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 13 Jan 2005 12:27:41 -0600 Subject: Finding distances Message-ID: There's probably no need to use the distance methods depending on your exact requirements. In most cases you want to know the closest feature (e.g. school) within some maximum distance. You can take advantage of that maximum to speed things up a great deal. You can use LAYER tolerance values and the normal queryByPoint methods to do this pretty efficiently. For example, if the tolerance for a school is 5 miles then mapserver uses that value to first do a bounding box filter to find all features that might be within 5 miles (this is really fast if your data is indexed) and then only computes distances to candidate features, ultimately returning the closest. Do the query for each layer you need and your done... ;-) Steve >>> Camden Daily 1/13/2005 10:59:54 AM >>> I'm working on an app in php/mapscript in which I'll need to do some calculations of the distances between a given point (address) and various shapefiles, such as parks, or schools. Basically, I'll be showing what the nearest school is, or nearest lake. I know that mapscript has some useful functions, such as distanceToShape(). I can check a point against every shape in a shapefile and see which is smallest, but it seems to me that this might take a very long time, especially if the shapefiles are really large. Alternately, it seems I could load the shapefile into a database and use some 'where' clauses to my SQL statements to reduce the number of points I need to check. Does anyone have any examples of how to make this run efficiently? From cdaily at GMAIL.COM Thu Jan 13 10:34:34 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Thu, 13 Jan 2005 12:34:34 -0600 Subject: Finding distances In-Reply-To: Message-ID: Thanks for the info. By "if your data is indexed" are you referring to a database index table? Does anyone have a code example of how this can be done with tolerance and queryByPoint()? From bhudspeth at EDAC.UNM.EDU Thu Jan 13 10:10:45 2005 From: bhudspeth at EDAC.UNM.EDU (William Hudspeth) Date: Thu, 13 Jan 2005 11:10:45 -0700 Subject: Follow up to Problems with PostGIS Display Message-ID: Hello all, I apologize for the delay in my response. My problem eventually came down to permissions in Postgres. I had to make sure that I had a Postgres user who had permission to select records from the data tables of interest. I also had to make sure that this user was entered into the pg_hba.conf file with the correct IP address, etc. I do control the status of a layer through my script. As such, I can get away with a "STATUS OFF" in my map file. As a user selects layers in the legend, they are passed via CGI to the next page reload, and I can script the changes of various flags in the map file before the map image is redrawn. My layer connection code in the map file was straightforward; CONNECTIONTYPE postgis NAME "us_cities" CONNECTION "user=username(same as Postgres user above) dbname=database host=hostname" DATA "the_geom from us_cities" STATUS OFF If anyone would like examples of specific functionality in my python scripting, please let me know. Thanks for all your help, Bill From tburton at HOLONICS.CA Thu Jan 13 12:11:06 2005 From: tburton at HOLONICS.CA (Trent Burton) Date: Thu, 13 Jan 2005 14:11:06 -0600 Subject: Set timeout at layer level - for case of cascaded layers Message-ID: Is it possible to set a timeout at the layer level? For example, I have some layers in my mapfile that cascade (CONNECTIONTYPE WMS) to other servers. If the wait is too long for a getmap request, I want mapserver to forget it and just get layers that fall within the timeout. I realize the pros and cons of doing this, but can it be done? From woklist at CHARTER.NET Thu Jan 13 13:13:39 2005 From: woklist at CHARTER.NET (William K) Date: Thu, 13 Jan 2005 15:13:39 -0600 Subject: Mapserver Installation on Mac OSX In-Reply-To: Message-ID: Hi Just this morning I updated my MapServer build pages. It's now up-to-date for MS 4.4.1 and building for PHP as an Apache module, and includes a couple more libraries. I also reorganized the sequence some - I realized that my attempt to categorize the dependencies messed up the build order of things, and that might be what caused you problems, so I simplified it. Feel free to ask me if you have questions. On Jan 13, 2005, at 1:06 AM, Stefan Schwarzer wrote: > I am looking for some instructions for dummies like me how to > install=20 > PHP/Mapscript on Mac OSX. I found the URLs below, which helped me=20 > already a lot. But I haven't completely succeed though. Does anyone=20 > have perhaps an up-to-date "instruction & installation plan"? Would > be=20= > > cool... > > http://webpages.charter.net/kyngchaos/macosx/index.html > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MacOS > http://home.nc.rr.com/wwheaton/ > ----- William Kyngesburye http://webpages.charter.net/kyngchaos/ All generalizations are dangerous, even this one. From mms at GNETCONSULTING.COM Thu Jan 13 13:29:53 2005 From: mms at GNETCONSULTING.COM (Joel Firestone) Date: Thu, 13 Jan 2005 16:29:53 -0500 Subject: OT: decimal degree conversion Message-ID: Ed/Matt: Thanks for the info. I appreciate it. Joel ----- Original Message ----- From: "Ed McNierney" To: Sent: Thursday, January 13, 2005 12:05 PM Subject: Re: [UMN_MAPSERVER-USERS] OT: decimal degree conversion Joel - As Matt has correctly pointed out, this is an arithmetic operation, not a string one. You incorrectly assume that the minutes portion gets converted into the first two decimal places and the seconds portion into the the third and remaining decimal places. You're making it too hard ! 0 degrees, 0 minutes, 59 seconds (00:00:59) equals 59/3600 degrees = 0.01639 degrees, while your algorithm gets 0.001639 - one tenth the correct value. $plot = $arrCoords[0] + ($arrCoords[1] / 60) + ($arrCoords[2] / 3600); Is all you need - note the lack of round () calls; that's intentional. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of MapServer User Sent: Thursday, January 13, 2005 8:47 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] OT: decimal degree conversion MapServer Users: I could use some quick help in diagnosing the problem I have with plotting issues. I use the following PHP to convert a lat/long (xx:xx:xx) to decimal degrees. If anyone could point out the flaws, I would appreciate it. Some plot fine. Others appear to be off. I'm assuming this is the culprit. Thanks. // our plotting function to specify degrees function plot_degrees($location) { // create an array of our data $arrCoords = explode(":", $location); // set our data $long = $arrCoords[0]; $longdiv1 = round((($arrCoords[1] / 60) * 100)); $longdiv2 = round((($arrCoords[2] / 3600) * 100000)); // create our plotting location $plot = $long .= "." . $longdiv1 . $longdiv2; // return our appended string return $plot; } Joel From zstauber at BHINC.COM Thu Jan 13 13:21:24 2005 From: zstauber at BHINC.COM (Zachary L. Stauber) Date: Thu, 13 Jan 2005 15:21:24 -0600 Subject: Windows 2003 Standard IIS 6.0 trouble Message-ID: Hi, I'm using Windows 2003 Standard, and I'm trying to get MapServ.exe to work on it. Right now I'm just trying out the Itasca dataset. It's a permissions problem. Does anyone have a vaguely detailed process for setting the permissions or configuring Web Access Extensions or Application Extensions (or whatever hates MapServer so much) so it gets past the top level security junk in IIS 6.0? I have the same version, 4.4.0-beta3 working fine on a Windows XP SP2 machine, with all the files in exactly the same places. The EXE and all DLL's are in C:\InetPub\scripts\MapServer\ the C:\Proj data has a copy of everything it's supposed to, and the Itasca data starts in C:\InetPub\wwwroot\MapServer\NCTCOG\mapserver_demos\workshop Before you ask, I set all the directories mentioned above to give WebAdmin all rights (except full control), I changed all the paths to the correct places in the "index.html" file, which shows the Itasca map fine under Windows XP SP2, and I added a "MapServer" entry to the Web Service Extensions and added every EXE and DLL that it uses with "Allow." I also set the Web Service Extensions to "Allow" "All Unknown CGI Extensions" by default (actually that was set when I got here). I also made the NCTCOG directory in wwwroot a virtual directory and set "read" permission, set execute permissions to "Script and Executables," and created an application extension for ".map" files and set it to the mapserv.exe executable. I also did all this for the C:\InetPub\scripts\Mapserver directory just in case. What else can I do to loosen this thing up? Does anyone actually have it working under Windows 2003 Standard? I haven't found proof of this in over a year of back archives on this mailing list. -Zack Stauber Systems Analyst Bohannan-Huston, Inc. Albuquerque, NM USA From ed at TOPOZONE.COM Thu Jan 13 13:55:49 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 13 Jan 2005 16:55:49 -0500 Subject: Windows 2003 Standard IIS 6.0 trouble Message-ID: Zack - MapServer works just fine under Windows 2003 Standard and IIS 6.0, and there's plenty of "proof" of that! But you do need to take the time to understand how your new tools work rather than blaming them (or MapServer). You gave us a lot of information in your email (thanks) but you didn't say what didn't work! What is the symptom you're seeing? What are you doing, and what is the (unexpected) result you're getting? - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Zachary L. Stauber Sent: Thursday, January 13, 2005 4:21 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Windows 2003 Standard IIS 6.0 trouble Hi, I'm using Windows 2003 Standard, and I'm trying to get MapServ.exe to work on it. Right now I'm just trying out the Itasca dataset. It's a permissions problem. Does anyone have a vaguely detailed process for setting the permissions or configuring Web Access Extensions or Application Extensions (or whatever hates MapServer so much) so it gets past the top level security junk in IIS 6.0? I have the same version, 4.4.0-beta3 working fine on a Windows XP SP2 machine, with all the files in exactly the same places. The EXE and all DLL's are in C:\InetPub\scripts\MapServer\ the C:\Proj data has a copy of everything it's supposed to, and the Itasca data starts in C:\InetPub\wwwroot\MapServer\NCTCOG\mapserver_demos\workshop Before you ask, I set all the directories mentioned above to give WebAdmin all rights (except full control), I changed all the paths to the correct places in the "index.html" file, which shows the Itasca map fine under Windows XP SP2, and I added a "MapServer" entry to the Web Service Extensions and added every EXE and DLL that it uses with "Allow." I also set the Web Service Extensions to "Allow" "All Unknown CGI Extensions" by default (actually that was set when I got here). I also made the NCTCOG directory in wwwroot a virtual directory and set "read" permission, set execute permissions to "Script and Executables," and created an application extension for ".map" files and set it to the mapserv.exe executable. I also did all this for the C:\InetPub\scripts\Mapserver directory just in case. What else can I do to loosen this thing up? Does anyone actually have it working under Windows 2003 Standard? I haven't found proof of this in over a year of back archives on this mailing list. -Zack Stauber Systems Analyst Bohannan-Huston, Inc. Albuquerque, NM USA From calde at GMX.NET Thu Jan 13 15:00:43 2005 From: calde at GMX.NET (Daniel Caldeweyher) Date: Thu, 13 Jan 2005 17:00:43 -0600 Subject: Help: MapInfo -> PostGIS -> blank map, projection? Message-ID: Hi, I am using GIS on a research project for my studies and I have no background in GIS. I managed to bring lots of data from various sources into MapInfo, but now I want to store all the spatial data centrally in PostreSQL / PostGIS. I started with ogr2ogr to pipe the data directly from the TAB file to PostGIS, which worked fine as I can use Quantum GIS to add the data as a PostGIS layer. However I can't get it to display anything (blank gif) with Mapserver. I am using Apache2 + MapServer 4.4.1(pg) and it appears to be working as I can display the "Hello World. Mapserver rocks." example. When I export the table from MapInfo to MIF the exported file contains: ... CoordSys Earth Projection 1, 33 Bounds (96, -45) (160, -8) ... I also ran OGRINFO which gave me: ... Layer name: QLDPOA_H Geometry: Polygon Feature Count: 405 Extent: (136.440601, -29.177898) - (153.552171, -9.142186) Layer SRS WKT: GEOGCS["unnamed", DATUM["North_American_Datum_1983", SPHEROID["GRS 80",6378137,298.257222101], TOWGS84[0,0,0,0,0,0,0]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433]] ... I think the map is using long/lat + NAD83. Other information: In PostgreSQL the "spatial_ref_sys" table is empty. The "geometry_columns" table contains: 19745;"''";"public";"qldpoa_h";"the_geom";"2";"-1";"MULTIPOLYGON" The "the_geom" column in my "qldpoa_h" table has SRID=-1 for all rows "http://localhost/cgi-bin/mapserver/mapserv.exe?map=qldpoa.map&mode=map" My qldpoa.map file looks like this: MAP SIZE 400 400 NAME ABS STATUS ON #EXTENT 136.440601 -29.177898 153.552171 -9.142186 #from ogrinfo EXTENT 98 -45 160 -8 #from MIF UNITS dd #kilometers? IMAGECOLOR 255 255 255 IMAGETYPE gif LAYER NAME "qldpoa_h" TYPE POLYGON STATUS ON PROJECTION "proj=longlat" "ellps=GRS80" "datum=NAD83" "no_defs" END DATA "the_geom from qldpoa_h" CONNECTION "user=gis password=gis dbname=ABS host=localhost port=5432" CONNECTIONTYPE postgis CLASS COLOR 255 0 0 OUTLINECOLOR 0 255 0 END END OUTPUTFORMAT NAME gif DRIVER "GD/GIF" MIMETYPE "image/gif" IMAGEMODE PC256 EXTENSION "gif" END END Could please someone have a look at this and tell me what I am doing wrong, because I have tried everything I know, but I always only get a blank image. Thank you very much in advance. From boris at BROOKNET.COM.AU Thu Jan 13 17:32:50 2005 From: boris at BROOKNET.COM.AU (Sam Lawrance) Date: Fri, 14 Jan 2005 12:32:50 +1100 Subject: Help: MapInfo -> PostGIS -> blank map, projection? In-Reply-To: Message-ID: Daniel Caldeweyher wrote: >However I can't get it to display anything (blank gif) with Mapserver. I am >using Apache2 + MapServer 4.4.1(pg) and it appears to be working as I can >display the "Hello World. Mapserver rocks." example. > >My qldpoa.map file looks like this: >MAP > SIZE 400 400 > NAME ABS > STATUS ON > > #EXTENT 136.440601 -29.177898 153.552171 -9.142186 #from ogrinfo > EXTENT 98 -45 160 -8 #from MIF > UNITS dd #kilometers? > IMAGECOLOR 255 255 255 > IMAGETYPE gif > > LAYER > NAME "qldpoa_h" > TYPE POLYGON > STATUS ON > For starters, you want "STATUS DEFAULT". For layers, "STATUS ON" merely allows the layer to be turned on through CGI parameters etc; it doesn't make it "always on". -- Sam Lawrance ph +61 0425 228 579 freenode: deft From ed at TOPOZONE.COM Thu Jan 13 17:43:57 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 13 Jan 2005 20:43:57 -0500 Subject: Windows 2003 Standard IIS 6.0 trouble Message-ID: Zach - IIS doesn't "let the file not be found" - it can't find it. What is the URL you are using to refer to your MapServer executable? Do you have a virtual directory (if necessary) set up there? If you use the IIS administration tool, can you browse to the mapserv.exe file and find it along the path you expect? What is the URL you are using that triggers that error? And please ALWAYS reply to the entire list.... - Ed ________________________________ From: Zachary Stauber [mailto:zstauber at bhinc.com] Sent: Thursday, January 13, 2005 5:09 PM To: Ed McNierney Subject: RE: [UMN_MAPSERVER-USERS] Windows 2003 Standard IIS 6.0 trouble Well, I'm just trying to display the basic Itasca map they offer up on the Mapserver site http://mapserver.gis.umn.edu/dload.html, I get the standard message which tells me nothing I can use to find the source of the problem (the general check engine light of the web server world): I. The page cannot be found The page you are looking for might have been removed, had its name changed, or is temporarily unavailable. ________________________________ Please try the following: * Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly. * If you reached this page by clicking a link, contact the Web site administrator to alert them that the link is incorrectly formatted. * Click the Back button to try another link. A. HTTP Error 404 - File or directory not found. Internet Information Services (IIS) ________________________________ Technical Information (for support personnel) * Go to Microsoft Product Support Services and perform a title search for the words HTTP and 404. * Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Web Site Setup, Common Administrative Tasks, and About Custom Error Messages. So based on this one would think that the mapserv.exe is in the wrong place or misspelled, but it's in the exact same place as I have it on a Windows 2000 install that works fine, and the .map and .html files are exact copies of those. So what this error is really telling me is that IIS 6.0 is not letting the mapserv.exe be found or run. -Zack -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Thursday, January 13, 2005 2:56 PM To: Zachary Stauber; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Windows 2003 Standard IIS 6.0 trouble Zack - MapServer works just fine under Windows 2003 Standard and IIS 6.0, and there's plenty of "proof" of that! But you do need to take the time to understand how your new tools work rather than blaming them (or MapServer). You gave us a lot of information in your email (thanks) but you didn't say what didn't work! What is the symptom you're seeing? What are you doing, and what is the (unexpected) result you're getting? - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Zachary L. Stauber Sent: Thursday, January 13, 2005 4:21 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Windows 2003 Standard IIS 6.0 trouble Hi, I'm using Windows 2003 Standard, and I'm trying to get MapServ.exe to work on it. Right now I'm just trying out the Itasca dataset. It's a permissions problem. Does anyone have a vaguely detailed process for setting the permissions or configuring Web Access Extensions or Application Extensions (or whatever hates MapServer so much) so it gets past the top level security junk in IIS 6.0? I have the same version, 4.4.0-beta3 working fine on a Windows XP SP2 machine, with all the files in exactly the same places. The EXE and all DLL's are in C:\InetPub\scripts\MapServer\ the C:\Proj data has a copy of everything it's supposed to, and the Itasca data starts in C:\InetPub\wwwroot\MapServer\NCTCOG\mapserver_demos\workshop Before you ask, I set all the directories mentioned above to give WebAdmin all rights (except full control), I changed all the paths to the correct places in the "index.html" file, which shows the Itasca map fine under Windows XP SP2, and I added a "MapServer" entry to the Web Service Extensions and added every EXE and DLL that it uses with "Allow." I also set the Web Service Extensions to "Allow" "All Unknown CGI Extensions" by default (actually that was set when I got here). I also made the NCTCOG directory in wwwroot a virtual directory and set "read" permission, set execute permissions to "Script and Executables," and created an application extension for ".map" files and set it to the mapserv.exe executable. I also did all this for the C:\InetPub\scripts\Mapserver directory just in case. What else can I do to loosen this thing up? Does anyone actually have it working under Windows 2003 Standard? I haven't found proof of this in over a year of back archives on this mailing list. -Zack Stauber Systems Analyst Bohannan-Huston, Inc. Albuquerque, NM USA -------------- next part -------------- An HTML attachment was scrubbed... URL: From rstoyle at COMCAST.NET Thu Jan 13 17:49:12 2005 From: rstoyle at COMCAST.NET (RTS) Date: Thu, 13 Jan 2005 19:49:12 -0600 Subject: Adding inline features limitation Message-ID: Are there any limitations on how many inline features one can add using the CGI interface? Is there a maximum URL length (Browser limitations aside)? Rick From jacob.delfos at MAUNSELL.COM Thu Jan 13 18:02:16 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Fri, 14 Jan 2005 10:02:16 +0800 Subject: Windows 2003 Standard IIS 6.0 trouble Message-ID: Zach, You said you configured IIS to run .map files from mapserv executable. This is not correct (AFAIK), because the map file contains information mapserver uses. It is NOT a script being executed by mapserv.exe. Therefore, if the .map file is requested from the server, depending on how it is requested, it might go wrong. IIS 6.0 on Windows 2003 will sometimes throw an inappropriate "page not found" error, if the actual problem is something to do with security. Does your "proj" directory exist? Is it worth checking permissions on that? It might help if you listed the directories you created, and the permissions you set on them. regards, Jacob -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney Sent: 14 January 2005 09:44 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Windows 2003 Standard IIS 6.0 trouble Zach - IIS doesn't "let the file not be found" - it can't find it. What is the URL you are using to refer to your MapServer executable? Do you have a virtual directory (if necessary) set up there? If you use the IIS administration tool, can you browse to the mapserv.exe file and find it along the path you expect? What is the URL you are using that triggers that error? And please ALWAYS reply to the entire list.. - Ed -------------------------------------------------------------------------------- From: Zachary Stauber [mailto:zstauber at bhinc.com] Sent: Thursday, January 13, 2005 5:09 PM To: Ed McNierney Subject: RE: [UMN_MAPSERVER-USERS] Windows 2003 Standard IIS 6.0 trouble Well, I'm just trying to display the basic Itasca map they offer up on the Mapserver site http://mapserver.gis.umn.edu/dload.html, I get the standard message which tells me nothing I can use to find the source of the problem (the general check engine light of the web server world): I. The page cannot be found The page you are looking for might have been removed, had its name changed, or is temporarily unavailable. -------------------------------------------------------------------------------- Please try the following: Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly. If you reached this page by clicking a link, contact the Web site administrator to alert them that the link is incorrectly formatted. Click the Back button to try another link. A. HTTP Error 404 - File or directory not found. Internet Information Services (IIS) -------------------------------------------------------------------------------- Technical Information (for support personnel) Go to Microsoft Product Support Services and perform a title search for the words HTTP and 404. ? Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Web Site Setup, Common Administrative Tasks, and About Custom Error Messages. So based on this one would think that the mapserv.exe is in the wrong place or misspelled, but it's in the exact same place as I have it on a Windows 2000 install that works fine, and the .map and .html files are exact copies of those. So what this error is really telling me is that IIS 6.0 is not letting the mapserv.exe be found or run. -Zack -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Thursday, January 13, 2005 2:56 PM To: Zachary Stauber; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Windows 2003 Standard IIS 6.0 trouble Zack - MapServer works just fine under Windows 2003 Standard and IIS 6.0, and there's plenty of "proof" of that! But you do need to take the time to understand how your new tools work rather than blaming them (or MapServer). You gave us a lot of information in your email (thanks) but you didn't say what didn't work! What is the symptom you're seeing? What are you doing, and what is the (unexpected) result you're getting? - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Zachary L. Stauber Sent: Thursday, January 13, 2005 4:21 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Windows 2003 Standard IIS 6.0 trouble Hi, I'm using Windows 2003 Standard, and I'm trying to get MapServ.exe to work on it. Right now I'm just trying out the Itasca dataset. It's a permissions problem. Does anyone have a vaguely detailed process for setting the permissions or configuring Web Access Extensions or Application Extensions (or whatever hates MapServer so much) so it gets past the top level security junk in IIS 6.0? I have the same version, 4.4.0-beta3 working fine on a Windows XP SP2 machine, with all the files in exactly the same places. The EXE and all DLL's are in C:\InetPub\scripts\MapServer\ the C:\Proj data has a copy of everything it's supposed to, and the Itasca data starts in C:\InetPub\wwwroot\MapServer\NCTCOG\mapserver_demos\workshop Before you ask, I set all the directories mentioned above to give WebAdmin all rights (except full control), I changed all the paths to the correct places in the "index.html" file, which shows the Itasca map fine under Windows XP SP2, and I added a "MapServer" entry to the Web Service Extensions and added every EXE and DLL that it uses with "Allow." I also set the Web Service Extensions to "Allow" "All Unknown CGI Extensions" by default (actually that was set when I got here). I also made the NCTCOG directory in wwwroot a virtual directory and set "read" permission, set execute permissions to "Script and Executables," and created an application extension for ".map" files and set it to the mapserv.exe executable. I also did all this for the C:\InetPub\scripts\Mapserver directory just in case. What else can I do to loosen this thing up? Does anyone actually have it working under Windows 2003 Standard? I haven't found proof of this in over a year of back archives on this mailing list. -Zack Stauber Systems Analyst Bohannan-Huston, Inc. Albuquerque, NM USA -------------- next part -------------- An HTML attachment was scrubbed... URL: From rstoyle at COMCAST.NET Thu Jan 13 17:57:10 2005 From: rstoyle at COMCAST.NET (RTS) Date: Thu, 13 Jan 2005 19:57:10 -0600 Subject: Inline feature symbol properties Message-ID: If I wanted to overlay 3 different color circles on a map using the CGI interface, do I need to add each to a different layer or can I assign a different class to each inline feature within the same layer? Rick From Timothy.Mackey at GA.GOV.AU Thu Jan 13 18:14:05 2005 From: Timothy.Mackey at GA.GOV.AU (Tim Mackey) Date: Fri, 14 Jan 2005 13:14:05 +1100 Subject: Adding inline features limitation Message-ID: Rick, My understanding is there is no limit in mapserver CGI, the only limits are applied by the web server software. If your form action is "GET", then a limit will apply in the web server software (eg in Apache this limit is 1024 characters). However, if your form action is "POST" then there is no practical limit. Regards, Tim Mackey Web Systems Manager Geoscience Australia 02 6249 9813 timothy.mackey at ga.gov.au http://www.ga.gov.au/ -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of RTS Sent: Friday, 14 January 2005 12:49 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Adding inline features limitation Are there any limitations on how many inline features one can add using the CGI interface? Is there a maximum URL length (Browser limitations aside)? Rick From ganny_3 at REDIFFMAIL.COM Thu Jan 13 19:04:09 2005 From: ganny_3 at REDIFFMAIL.COM (Ganesh P) Date: Fri, 14 Jan 2005 03:04:09 -0000 Subject: WMS Raster Layer service Message-ID: Hello Everyone First of all, Thank you very much Steve and Brent for your immediate responses. I apologize for the late reply as i was away for a couple of days. Now, i get the point that all the raster layers can be indexed together using GDALTINDEX and using TILEINDEX in the Map file layer. I did the GDALTINDEX on all our raster layers using : gdaltindex sample.shp /usr/images/*.tif It didnot give any errors and created a shape file. I checked the dbf file, and it contains a list of all the raster files. I added a new layer to my map file using the following : Layer ?Name "Mosaic" Type Raster status default Tileindex "/var/www/map/sample.shp" Tileitem "Location" End But, when i enable the layer, it gives me a blank image. I think Mapserver is ignoring this layer. Not sure if i am making a mistake in the layer definition or GDALTINDEX input (with raster images). Regarding the raster images we have, some cover same area and some cover different area with overlaps, and different acquisition dates. Some images have 1 band, some have 3 and some have 7 bands. Also, the images have different projections (UTM 13, 14, 15, 16, ....) and are obtained from different sensors. As a whole the images have different coverages, dates, number of bands and projections. I have a doubt if this is causing the problem. If this is the case, then please suggest me how do i classify my raster images, is it done based on their projection or coverage or number of bands (to run separately on GDALTINDEX)? After grouping the raster images based on some criteria, i have to run GDALTINDEX on each group and add different layers in the map file, is that Correct ? I really appreciate any information you provide. Thanks Ganesh --------------------------------------------------------------------- On Tue, 11 Jan 2005 Stephen Woodbridge wrote : >Typically, most mapfiles serving images use a tileindex so that the images are automatically seamed together. if you have more than one set of rasters like a color set, a mono set, or other dated sets, then each set is put in a separate tileindex and is a separate layer, then you can just turn on the layer and it will show correcly. You don't have to use mapscript to change the data source. > >If you do this, then the wms works the same way and you never need to edit the data source for the layer, it just works. Also you don't need to maintain a database either. > >You might already know this, and have implemented your scheme for other reasons, but it just seems like what you are trying to do is already implemented in mapserver and is simpler to do than reimplementing wms requests on top of mapserver that already supports this. > >My good friend, Ed at Topozone has over 250,000 geotiff that he is serving with mapserver in this way. :) > >-Steve --------------------------------------------------------------------- >Ganesh, > In general the answer is to use a TILEINDEX layer. Use a TILEINDEX layer if you have a set of rasters each covering a separate area but form a single logical layer (USGS 1:250k topos for example). With a TILEINDEX Mapserver will automatically select the rasters covering the current map extent as the user pans and zooms. >If your rasters cover the same area but represent different times (e.g. satellite images of Minot from 2000 to 2004), things are more complicated when it comes to WMS. In your original email you mentioned "the most recent image" so I wasn't sure how important time was in your implementation... >Brent Fraser >bfraser at geoanalytic.com --------------------------------------------------------------------- >Ganesh P wrote: >>Hello everyone, >> >>We have been successfully using Mapserver(PHP/Mapscript) for WMS client and Server and everything is working fine. Thanks to all the MapServer Developers and Users. Currently, we are using WMS server to deliver vector layers as PNG images. Now, we are planning to extend the server functionality by delivering Raster layers(GeoTiff) as PNG images. >>Currently, in our system we have around 600 geotiff images. In our standalone system, We search the database everytime with the current map extent and display a list of images covering the current extent. When the user selects an image, that image will be displayed on the map window. This is how we implemented our system. The map file contains a raster layer with DATA field set dynamically (using PHP/Mapscript) with the image name. We would like to do the same for WMS server, that is, when the client requests a raster layer using a bounding box in the URL, the most recent image which covers the requested bounding box should be searched in the database and returned to the client as PNG. >> >>My concerns are: >> >>1. How do we set the raster layer in map file for WMS server and dynamically fill in the DATA field with the exact image name (out of 600 images) covering the bounding box? >> >>2. Can we use Mapserver to do this, or do we have to write a custom program to read the WMS client's URL, manually search the database, Cut the image for the requested bounding box, convert the image into PNG and send it to the client ? >> >>Any suggestions or information is greatly appreciated. >>Thank You very much in advance. >> >>Regards >> >>Ganesh Pulicherla >>Digital-NGP Developer >>Upper Midwest Aerospace Consortium >>University of North Dakota -------------- next part -------------- An HTML attachment was scrubbed... URL: From calde at GMX.NET Thu Jan 13 19:05:31 2005 From: calde at GMX.NET (Daniel Caldeweyher) Date: Thu, 13 Jan 2005 21:05:31 -0600 Subject: Help: MapInfo -> PostGIS -> blank map, projection? Message-ID: Thanks! It works. I can't belive it was that simple. :-) Daniel From Peter.VonGaza at GOV.YK.CA Thu Jan 13 19:21:35 2005 From: Peter.VonGaza at GOV.YK.CA (Peter.VonGaza) Date: Thu, 13 Jan 2005 19:21:35 -0800 Subject: MapServer Binaries with SDE support? Message-ID: Hi Brock, Thanks for you information. I installed the files from the zip. The readme.txt says to go to www.fastcgi.com to get mod_fastcgi.so. The only file that I could Find was in the "old" directory: http://www.fastcgi.com/dist/old/mod_fastcgi-2.4.0-AP2.so So I just grab that and renamed it "mod_fastcgi.so". Is there Another file somewhere else? At the command prompt "mapserv -v" gives me: MapServer version 4.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=FASTCGI INPUT=SDE INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG Looks OK to me. My old MapServer apps come up fine, but I still can't display an ArcSDE Layer. How do I tell if it my connection string or something else. I Figure it must be my connection string. I am trying something like this: LAYER NAME "SDE URN" STATUS ON DATA "BASEA.URN,SHAPE,SDE.DEFAULT" TYPE LINE CONNECTIONTYPE SDE CONNECTION "mysde.gov.yk.ca,port:5151,sde,username,password" UNITS METERS SIZEUNITS PIXELS CLASS NAME "SDE Roads" STYLE SYMBOL 0 OUTLINECOLOR 0 255 0 SIZE 1 MINSIZE 1 MAXSIZE 100 END END END The only variable that could be wrong is "sde". We leave the Database Field blank when connecting in ArcCatalog. I've tried "null", ' ', and "sde". Where to I start? How do I tell if I am hitting our ArcSDE? Thanks, Peter Brock Anderson wrote: > You can download Win32 binaries for Mapserver with SDE and FastCGI > support here: > ftp://ftp.refractions.net/pub/refractions/mapserver/mapserver4.4.zip > There is a readme file in the archive that should help you set it up. > Let me know if you run into trouble. > Brock Anderson ----------------------------------------------------------------------- > Paul Ramsey wrote: > Hi Peter, > > On 12-Jan-05, at 5:47 PM, Peter.VonGaza wrote: > >> Do you have any recommendations on how I should set things up? I am >> not a MapServer expert - I just know the basics. What exactly is >> fastcgi and are >> there any precompiled binaries available? I've just downloaded the >> binaries >> that Assefa pointed me to: > > > Once you get into database-backed data sources, the way Mapserver runs > can become an issue. Mapserver is a CGI process, which means for every > map request Mapserver goes through a complete startup, read config, > generate map, shutdown cycle. There is no Mapserver process running > between requests. For database data sources, that means Mapserver has > to establish a connection for every individual map request. It can > take a long time to establish an SDE connection (in BC, we found > between 1 and 2 seconds). That means 1-2 seconds are burned before the > map even starts rendering. That's pretty bad news if you want a fast > map server, and as you have found in your testing, under the right > conditions Mapserver is a very fast map server indeed. > > So what is the solution? What if Mapserver did not shut down after > every map request? What if it stayed running, and maintained database > connections between map requests? That would mean map requests would > not have to pay a connection penalty to pull data out of ArcSDE, > because the connection would already be there, waiting. > > This is what FastCGI does. It is a general purpose technology that > allows programs with a high startup overhead (such as Mapserver > connecting to ArcSDE) to stay running continuously, and provides a > means for Apache to broker requests to the running processes. > > Brock will send you a message tomorrow with a link to precompiled > windows binaries with FastCGI and ArcSDE support, and some Apache > configuration snippets to run Mapserver in FastCGI mode. If you are > looking to demonstrate Mapserver performance against ArcSDE, you > really have to use FastCGI. From fwarmerdam at GMAIL.COM Thu Jan 13 20:49:08 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 13 Jan 2005 23:49:08 -0500 Subject: WMS Raster Layer service In-Reply-To: <20050114030409.25134.qmail@webmail6.rediffmail.com> Message-ID: On Fri, 14 Jan 2005 03:04:09 -0000, Ganesh P wrote: > > > Hello Everyone > > First of all, Thank you very much Steve and Brent for your immediate > responses. I apologize for the late reply as i was away for a couple of > days. > > Now, i get the point that all the raster layers can be indexed together > using GDALTINDEX and using TILEINDEX in the Map file layer. I did the > GDALTINDEX on all our raster layers using : > > gdaltindex sample.shp /usr/images/*.tif > > It didnot give any errors and created a shape file. I checked the dbf file, > and it contains a list of all the raster files. I added a new layer to my > map file using the following : > > Layer > Name "Mosaic" > Type Raster > status default > Tileindex "/var/www/map/sample.shp" > Tileitem "Location" > End > > But, when i enable the layer, it gives me a blank image. I think Mapserver > is ignoring this layer. Not sure if i am making a mistake in the layer > definition or GDALTINDEX input (with raster images). > > Regarding the raster images we have, some cover same area and some cover > different area with overlaps, and different acquisition dates. Some images > have 1 band, some have 3 and some have 7 bands. Also, the images have > different projections (UTM 13, 14, 15, 16, ....) and are obtained from > different sensors. > > As a whole the images have different coverages, dates, number of bands and > projections. I have a doubt if this is causing the problem. If this is the > case, then please suggest me how do i classify my raster images, is it done > based on their projection or coverage or number of bands (to run separately > on GDALTINDEX)? > After grouping the raster images based on some criteria, i have to run > GDALTINDEX on each group and add different layers in the map file, is that > Correct ? Ganesh, You will definately need a seperate layer and tile index for each projection for which you have raster files. MapServer uses the projection declaration on the layer to interprete the coordinates from the file, ignoring the coordinate system actually stored in the file. However, it is OK to mix different types of files in one tile index. For instance, different number of bands, dates, etc. Each image that overlays the map area will be rendered in turn according to it's configuration and the layer information. I suspect your main problem is the coordinate systems. Is your map in UTM coordinates? Which zone? If not, you will need to declare the projection for the map as a whole, and the projection for any raster layers. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From richard.greenwood at GMAIL.COM Thu Jan 13 20:49:26 2005 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Thu, 13 Jan 2005 21:49:26 -0700 Subject: Windows 2003 Standard IIS 6.0 trouble In-Reply-To: Message-ID: On Thu, 13 Jan 2005 15:21:24 -0600, Zachary L. Stauber wrote: > Hi, I'm using Windows 2003 Standard, and I'm trying to get MapServ.exe to > work on it. Right now I'm just trying out the Itasca dataset. It's a > permissions problem. Does anyone have a vaguely detailed process for > setting the permissions or configuring Web Access Extensions or Application > Extensions (or whatever hates MapServer so much) so it gets past the top > level security junk in IIS 6.0? > > I have the same version, 4.4.0-beta3 working fine on a Windows XP SP2 > machine, with all the files in exactly the same places. The EXE and all > DLL's are in C:\InetPub\scripts\MapServer\ the C:\Proj data has a copy of > everything it's supposed to, and the Itasca data starts in > C:\InetPub\wwwroot\MapServer\NCTCOG\mapserver_demos\workshop > > Before you ask, I set all the directories mentioned above to give WebAdmin > all rights (except full control), I changed all the paths to the correct > places in the "index.html" file, which shows the Itasca map fine under > Windows XP SP2, and I added a "MapServer" entry to the Web Service > Extensions and added every EXE and DLL that it uses with "Allow." I also > set the Web Service Extensions to "Allow" "All Unknown CGI Extensions" by > default (actually that was set when I got here). > > I also made the NCTCOG directory in wwwroot a virtual directory and > set "read" permission, set execute permissions to "Script and Executables," > and created an application extension for ".map" files and set it to the > mapserv.exe executable. I also did all this for the > C:\InetPub\scripts\Mapserver directory just in case. > > What else can I do to loosen this thing up? Does anyone actually have it > working under Windows 2003 Standard? I haven't found proof of this in over > a year of back archives on this mailing list. > > -Zack Stauber > Systems Analyst > Bohannan-Huston, Inc. > Albuquerque, NM > USA > I sent these links to Zach earlier today in response to a direct email, but I'll include them again for the sake of the achives. It sounds like you have addressed the issues in this first link: http://www.microsoft.com/resources/documentation/WindowsServ/2003/standard/proddocs/en-us/Default.asp?url=/resources/documentation/WindowsServ/2003/standard/proddocs/en-us/ca_enabledynamiccontent.asp This next link may be more relevant in an Active Directory environment. You grant the IIS_USER_machineName two special rights: Adjust memory quotas for a process and Replace a process level token On a domain this may take a while to propagate. http://www.microsoft.com/resources/documentation/WindowsServ/2003/standard/proddocs/en-us/Default.asp?url=/resources/documentation/WindowsServ/2003/standard/proddocs/en-us/ca_configcgi.asp Lastly, use Mozilla, rather than IE as your client. IE will mask some 404 error messages from IIS, which Mozilla will display. These messages can be invaluable in tracing the root of the error, but I guess MS thinks they are a security threat or something. Regards, -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From tylermitchell at SHAW.CA Thu Jan 13 22:01:14 2005 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Thu, 13 Jan 2005 22:01:14 -0800 Subject: Swig and Perl - problem? Message-ID: I'm stuck on using Perl mapscript to draw a map. I've compiled perl mapscript and the example scripts included in the source work. But with my example below, I can't get it to draw the map image. Any ideas? ------------- # map1.pl # Perl MapScript Example 1 use mapscript; # Set the map file to use $mapfile = "mapfiles/global.map"; # Create a mapObj, initialized with the mapfile above $mapobject = new mapscript::mapObj($mapfile); # Create an imgObj that has an image of the map $mapimage = $mapobject->{draw}; ... -------------------- I get this error, and don't have the slightest clue what it means: Can't locate auto/mapscript/mapObj/swig_draw_g.al in @INC (@INC contains: /usr/lib/perl5/5.8.3/i586-linux-thread-multi /usr/lib/perl5/5.8.3 /usr/lib/perl5/site_perl/5.8.3/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.3/i586-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl .) at /usr/lib/perl5/site_perl/5.8.3/i586-linux-thread-multi/mapscript.pm line 29 From tylermitchell at SHAW.CA Thu Jan 13 22:19:40 2005 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Thu, 13 Jan 2005 22:19:40 -0800 Subject: Swig and Perl - problem? In-Reply-To: <200501132201.14341.tylermitchell@shaw.ca> Message-ID: > # Create an imgObj that has an image of the map > $mapimage = $mapobject->{draw}; > ... Tyler, you need to learn Perl before attempting to use Perl/MapScript. Changing the above will work like: $mapimage = $mapobject->draw(); What were you thinking man? From skoehler at BUSCHJENA.DE Fri Jan 14 00:22:48 2005 From: skoehler at BUSCHJENA.DE (Steffen Köhler) Date: Fri, 14 Jan 2005 09:22:48 +0100 Subject: catching an error with php-mapscript Message-ID: Hello php-mapscript users, I have an tool to generate map-files. This map-file have sometimes two cases of errors. The first kind (syntactic errors) can be found with analysing the $error->code variable after running $map=ms_newMapObj(filename). For the second kind (semantic errors, for example an forgotten "using srid=-1" for an table not registered in geometry_columns) I hope I can catch the error in the same way after the method $map->draw(). But this results in an segmentation fault (command line) or an internal server error (browser), but not all the time, sometimes it works :-( draw(); $error=ms_getErrorObj(); while ($error && $error->code!=MS_NOERR) { printf(" routine %s: %s\n",$error->routine,$error->message); $error=$error->next(); } ?> This will produce the following output starting with php tt.php. I see the error is correctly catched in $error. Content-type: text/html X-Powered-By: PHP/4.3.3 routine msDrawMap(): Failed to draw layer named 'Knoten'. Speicherzugriffsfehler How can I catch the error generated by php-mapscript. yours sincerely Steffen K?hler --------------------------------------------------------------------------- 3Kon GmbH Informationstechnologie Auftragsentwicklung Fregestrasse 6/8 D-07747 Jena Tel.: +49 3641/30 38-34 Fax.: +49 3641/30 38-20 www.buschjena.de From janeks.kamerovskis at SILVA.LV Fri Jan 14 00:53:08 2005 From: janeks.kamerovskis at SILVA.LV (Janeks Kamerovskis) Date: Fri, 14 Jan 2005 10:53:08 +0200 Subject: How to add temporary poligons on map and process them? Message-ID: Hi, List! My I idea on subject is: 1) Temp obj on map: a) draw using client side (f.ex. DIV objects using javascript), b) draw using phpMapScript (I like this option better, but is it possible?) 2) Process in DB: I am planing to do it by using phpMapScript and WKT formats to input them in SQL DB. Note: Polygon points mainly will be acuired trought processing "textual" info from input fields. Just is some cases there could be digitizing on screen. Any ideas of the best way for point 1)? brgds Janeks From janeks.kamerovskis at SILVA.LV Fri Jan 14 01:04:11 2005 From: janeks.kamerovskis at SILVA.LV (Janeks Kamerovskis) Date: Fri, 14 Jan 2005 11:04:11 +0200 Subject: The best input format for best performance? Message-ID: Hi, List! Currently I have background layer in JPG format. In ArcView TIFF format works faster (because uncompressed) will it be so for MapServer? And which is the best format? Janeks From s-bel at VILLE-THONON.FR Fri Jan 14 02:23:27 2005 From: s-bel at VILLE-THONON.FR (=?iso-8859-1?Q?Bel_S=E9bastien?=) Date: Fri, 14 Jan 2005 11:23:27 +0100 Subject: access to KEYIMAGE from Class object in mapscript Message-ID: Hi list, i'd like to retreive the keyimage value of a class from my mapfile using php. i've not found any attributs or method into the Class object of phpmapscript to do that. how is it possible ? Thank's for your help. S?bastien -------------- next part -------------- An HTML attachment was scrubbed... URL: From ikettu at HOTMAIL.COM Fri Jan 14 03:52:08 2005 From: ikettu at HOTMAIL.COM (Ilpo Kettunen) Date: Fri, 14 Jan 2005 05:52:08 -0600 Subject: MapServer and Oracle Locator Message-ID: Hello Does MapServer support Oracle Locator in addition of Oracle Spatial? Has anyone really tested it and is there any major differences on usage? From Michael.Smith at ERDC.USACE.ARMY.MIL Fri Jan 14 04:36:44 2005 From: Michael.Smith at ERDC.USACE.ARMY.MIL (Smith, Michael ERDC-CRREL-NH) Date: Fri, 14 Jan 2005 06:36:44 -0600 Subject: MapServer and Oracle Locator Message-ID: Locator and Spatial are actually the same, just some functions are licensed as Oracle Spatial while the rest are called Locator. There is no difference in speed, just capabilities. Foe example, Locator is not licensed to use the sdo_cs (coordinate system) functions. Mike Smith Michael Smith GIS Specialist/Physical Scientist ERDC/RSGIS Center of Expertise US Army Corps of Engineers Hanover, NH (603) 646-4765 michael.smith at erdc.usace.army.mil -----Original Message----- From: Ilpo Kettunen [mailto:ikettu at HOTMAIL.COM] Sent: Friday, January 14, 2005 6:52 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] MapServer and Oracle Locator Hello Does MapServer support Oracle Locator in addition of Oracle Spatial? Has anyone really tested it and is there any major differences on usage? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Fri Jan 14 04:52:52 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 14 Jan 2005 07:52:52 -0500 Subject: The best input format for best performance? Message-ID: Janeks - It might depend a bit on your usage model, but TIFF is certainly a very good choice, and JPEG is a very poor choice. It's not so much a matter of compression (TIFF images can, optionally, be compressed, too) but the style of compression JPEG uses. You need to do a lot of decoding to get just one pixel out of a JPEG image, and that is not the case for TIFF images. - Ed Ed McNierney TopoZone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Janeks Kamerovskis Sent: Friday, January 14, 2005 4:04 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] The best input format for best performance? Hi, List! Currently I have background layer in JPG format. In ArcView TIFF format works faster (because uncompressed) will it be so for MapServer? And which is the best format? Janeks From gerry.creager at TAMU.EDU Fri Jan 14 05:29:07 2005 From: gerry.creager at TAMU.EDU (Gerry Creager N5JXS) Date: Fri, 14 Jan 2005 07:29:07 -0600 Subject: Reading Shapefile DBF attributes? Message-ID: I'm sure this is an easy one. I need to get the attributes of the shapefile from the dbf in a readable form. I'm going thru the archives and docs, so I may find it and render all the excess bandwidth for naught, but I thought I'd try to optimize the time usage, and ask the collective consciousness. TIA, gerry -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Page: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From nhv at CAPE.COM Fri Jan 14 05:46:01 2005 From: nhv at CAPE.COM (Norman Vine) Date: Fri, 14 Jan 2005 08:46:01 -0500 Subject: Reading Shapefile DBF attributes? In-Reply-To: <41E7C923.7090708@tamu.edu> Message-ID: Gerry Creager writes: > > I'm sure this is an easy one. > > I need to get the attributes of the shapefile from the dbf in a readable > form. > > I'm going thru the archives and docs, so I may find it and render all > the excess bandwidth for naught, but I thought I'd try to optimize the > time usage, and ask the collective consciousness. Probably easiest to use mapscript See the Perl or Python examples directory for shpinfo.XX or dbfinfo from the shapelib distribution < contrib directory > http://shapelib.maptools.org/ HTH Norman From sobomsawin at KASSINI.COM Fri Jan 14 06:05:00 2005 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Fri, 14 Jan 2005 09:05:00 -0500 Subject: [UMN_MAPSERVER-USERS] Help: MapInfo -> PostGIS -> blank map, projection? In-Reply-To: Message-ID: If you want to use the CGI, you can keep your STATUS ON in layer and add a &layer=qldpoa_h in you URL after &mode=map... This way, you will be able to control which layer to display, but take a look at CGI Mapserver documentation for more details. Have a nice day! Skweda -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Daniel Caldeweyher Envoy??: 13 janvier 2005 18:01 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: [UMN_MAPSERVER-USERS] Help: MapInfo -> PostGIS -> blank map, projection? Hi, I am using GIS on a research project for my studies and I have no background in GIS. I managed to bring lots of data from various sources into MapInfo, but now I want to store all the spatial data centrally in PostreSQL / PostGIS. I started with ogr2ogr to pipe the data directly from the TAB file to PostGIS, which worked fine as I can use Quantum GIS to add the data as a PostGIS layer. However I can't get it to display anything (blank gif) with Mapserver. I am using Apache2 + MapServer 4.4.1(pg) and it appears to be working as I can display the "Hello World. Mapserver rocks." example. When I export the table from MapInfo to MIF the exported file contains: ... CoordSys Earth Projection 1, 33 Bounds (96, -45) (160, -8) ... I also ran OGRINFO which gave me: ... Layer name: QLDPOA_H Geometry: Polygon Feature Count: 405 Extent: (136.440601, -29.177898) - (153.552171, -9.142186) Layer SRS WKT: GEOGCS["unnamed", DATUM["North_American_Datum_1983", SPHEROID["GRS 80",6378137,298.257222101], TOWGS84[0,0,0,0,0,0,0]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433]] ... I think the map is using long/lat + NAD83. Other information: In PostgreSQL the "spatial_ref_sys" table is empty. The "geometry_columns" table contains: 19745;"''";"public";"qldpoa_h";"the_geom";"2";"-1";"MULTIPOLYGON" The "the_geom" column in my "qldpoa_h" table has SRID=-1 for all rows "http://localhost/cgi-bin/mapserver/mapserv.exe?map=qldpoa.map&mode=map" My qldpoa.map file looks like this: MAP SIZE 400 400 NAME ABS STATUS ON #EXTENT 136.440601 -29.177898 153.552171 -9.142186 #from ogrinfo EXTENT 98 -45 160 -8 #from MIF UNITS dd #kilometers? IMAGECOLOR 255 255 255 IMAGETYPE gif LAYER NAME "qldpoa_h" TYPE POLYGON STATUS ON PROJECTION "proj=longlat" "ellps=GRS80" "datum=NAD83" "no_defs" END DATA "the_geom from qldpoa_h" CONNECTION "user=gis password=gis dbname=ABS host=localhost port=5432" CONNECTIONTYPE postgis CLASS COLOR 255 0 0 OUTLINECOLOR 0 255 0 END END OUTPUTFORMAT NAME gif DRIVER "GD/GIF" MIMETYPE "image/gif" IMAGEMODE PC256 EXTENSION "gif" END END Could please someone have a look at this and tell me what I am doing wrong, because I have tried everything I know, but I always only get a blank image. Thank you very much in advance. -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.6.11 - Release Date: 2005-01-12 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.6.11 - Release Date: 2005-01-12 From sobomsawin at KASSINI.COM Fri Jan 14 06:12:53 2005 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Fri, 14 Jan 2005 09:12:53 -0500 Subject: [UMN_MAPSERVER-USERS] Reading Shapefile DBF attributes? In-Reply-To: Message-ID: For a consultation purpose, QGIS is the best way... To add dbf content to your code, Perl or PHP are certainly the best. On Win, you can use an ODBC connection to your dbf or simply use Perl DBF or Xbase modules... Skweda -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Norman Vine Envoy??: 14 janvier 2005 08:46 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: Re: [UMN_MAPSERVER-USERS] Reading Shapefile DBF attributes? Gerry Creager writes: > > I'm sure this is an easy one. > > I need to get the attributes of the shapefile from the dbf in a readable > form. > > I'm going thru the archives and docs, so I may find it and render all > the excess bandwidth for naught, but I thought I'd try to optimize the > time usage, and ask the collective consciousness. Probably easiest to use mapscript See the Perl or Python examples directory for shpinfo.XX or dbfinfo from the shapelib distribution < contrib directory > http://shapelib.maptools.org/ HTH Norman -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.6.11 - Release Date: 2005-01-12 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.6.11 - Release Date: 2005-01-12 From eric at GOMOOS.ORG Fri Jan 14 06:22:30 2005 From: eric at GOMOOS.ORG (Eric Bridger) Date: Fri, 14 Jan 2005 09:22:30 -0500 Subject: Reading Shapefile DBF attributes? In-Reply-To: Message-ID: At 08:46 AM 01/14/2005 -0500, Norman Vine wrote: >Gerry Creager writes: >> >> I'm sure this is an easy one. >> >> I need to get the attributes of the shapefile from the dbf in a readable >> form. >> >> I'm going thru the archives and docs, so I may find it and render all >> the excess bandwidth for naught, but I thought I'd try to optimize the >> time usage, and ask the collective consciousness. > >Probably easiest to use mapscript > >See the Perl or Python examples directory for shpinfo.XX > >or dbfinfo from the shapelib distribution < contrib directory > > >http://shapelib.maptools.org/ You will need Perl on your system (of course) and the XBase.pm module (available on CPAN) to run shpinfo.pl . But it is very easy to use. I rely on Mapscript.pm to read and write shape files and XBase.pm for the corresponding dbf files. I can send you some sample Perl scripts if you like. Eric From mbrown at AL1CALL.COM Fri Jan 14 07:03:26 2005 From: mbrown at AL1CALL.COM (Matt Brown) Date: Fri, 14 Jan 2005 09:03:26 -0600 Subject: How to add temporary poligons on map and process them? In-Reply-To: Message-ID: Janeks, Look at the phpmapscript documentation for ShabeObj and LineObj - creating a polygon is pretty straighforward, you add each point to a line object, with the beginning and ending points the same and then add the line object to a ShapeObj. I usually store the coordinates in an array until the polygon is complete and then store it in a shapefile. You might want to look into the Rosa Applet for digitizing. very basic sample PHP code: $line = ms_newLineObj(); $line->addXY($geoX, $geoY); $shape = ms_newShapeObj(MS_SHAPE_POLYGON); $shape->add($line); Matt -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Janeks Kamerovskis Sent: Friday, January 14, 2005 2:53 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] How to add temporary poligons on map and process them? Hi, List! My I idea on subject is: 1) Temp obj on map: a) draw using client side (f.ex. DIV objects using javascript), b) draw using phpMapScript (I like this option better, but is it possible?) 2) Process in DB: I am planing to do it by using phpMapScript and WKT formats to input them in SQL DB. Note: Polygon points mainly will be acuired trought processing "textual" info from input fields. Just is some cases there could be digitizing on screen. Any ideas of the best way for point 1)? brgds Janeks From richard.greenwood at GMAIL.COM Fri Jan 14 07:15:42 2005 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Fri, 14 Jan 2005 08:15:42 -0700 Subject: mercator to lat/lon conversion Message-ID: Does anybody have javascript code for mercator to lat/lon conversion that they would care to share? Thanks, -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From John.Spotten at CAPETOWN.GOV.ZA Fri Jan 14 07:10:20 2005 From: John.Spotten at CAPETOWN.GOV.ZA (John Spotten) Date: Fri, 14 Jan 2005 17:10:20 +0200 Subject: mapserver map file - hilite style in querymap Message-ID: Hi, Is it possible to specify a thicker hilite style for selected objects i.e. more than 1 pixel, in a map file? and if so how? thanks john John Spotten Transport Modeller/GIS Developer Directorate of Transport, Roads and Stormwater City of Cape Town Tel : +27 21 4067325 Fax : +27 21 4186989 Cell : +27 846678901 Email : john.spotten at capetown.gov.za Web : www.capetown.gov.za <> -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: John Spotten.vcf Type: text/x-vcard Size: 226 bytes Desc: John Spotten.vcf URL: From jdport at VERITIME.COM Fri Jan 14 07:19:31 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Fri, 14 Jan 2005 10:19:31 -0500 Subject: Filtering/displaying parts of a shapefile? Message-ID: Can anybody tell me if it's possible to filter out or display only parts of a shapefile based on your zoom level, and if so point me in the right direction for how to do that? Right now I'm using tiger line data to show roads in an area and while zoomed out, I'd like to have it display only major freeways and highways... as I zoom in I'd like it to display more major roads and only show smaller roads when I'm zommed in close. I'd also if possible like to display those roads in different colors (for example red for highways, black for major roads, etc...). I'd imagine this can be done , but I'm not sure how difficult it is or how to go about it. Thanks, Jeff From cdaily at GMAIL.COM Fri Jan 14 07:46:13 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Fri, 14 Jan 2005 09:46:13 -0600 Subject: Filtering/displaying parts of a shapefile? In-Reply-To: <019b01c4fa4c$72459dc0$5ff2fbd0@solo> Message-ID: I've been using the MINEXTENT and MAXEXTENT values in the layer definitions. Then I have different layers for different zoom levels. The min/max extents tell mapserver at which zoom levels (extent ranges) to show a level. From woodbri at SWOODBRIDGE.COM Fri Jan 14 07:49:12 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 14 Jan 2005 10:49:12 -0500 Subject: Filtering/displaying parts of a shapefile? In-Reply-To: <019b01c4fa4c$72459dc0$5ff2fbd0@solo> Message-ID: Hi Jeff, Here is a quick overview of what you need to do. I will leave most of the details up to you. 1) Setup multiple Layers for your streets using MINSCALE/MAXSCALE to differentiate the styling you want to use. 2) Use CLASSITEM "CFCC" 3) set up classes using EXPRESSION /^A1/ for all the "A*" CFCC records, etc for the other CFCC's 4) specify your styling in each ot the classes 5) any street that does not fall in the expression is not rendered -Steve Jeff Portwine wrote: > Can anybody tell me if it's possible to filter out or display only parts of > a shapefile based on your zoom level, and if so point me in the right > direction for how to do that? > > Right now I'm using tiger line data to show roads in an area and while > zoomed out, I'd like to have it display only major freeways and highways... > as I zoom in I'd like it to display more major roads and only show smaller > roads when I'm zommed in close. I'd also if possible like to display > those roads in different colors (for example red for highways, black for > major roads, etc...). > > I'd imagine this can be done , but I'm not sure how difficult it is or how > to go about it. > > Thanks, > Jeff > From jdport at VERITIME.COM Fri Jan 14 07:48:33 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Fri, 14 Jan 2005 10:48:33 -0500 Subject: Filtering/displaying parts of a shapefile? Message-ID: How do I separate though which parts are in which layer? -Jeff ----- Original Message ----- From: "Camden Daily" To: Sent: Friday, January 14, 2005 10:46 AM Subject: Re: [UMN_MAPSERVER-USERS] Filtering/displaying parts of a shapefile? > I've been using the MINEXTENT and MAXEXTENT values in the layer > definitions. Then I have different layers for different zoom levels. > The min/max extents tell mapserver at which zoom levels (extent > ranges) to show a level. > From lfilak at MEDINACO.ORG Fri Jan 14 08:06:35 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Fri, 14 Jan 2005 11:06:35 -0500 Subject: access to KEYIMAGE from Class object in mapscript Message-ID: I believe "keyimage" should be a member of classobj.? Lowell The following message was sent by =?iso-8859-1?Q?Bel_S=E9bastien?= on Fri, 14 Jan 2005 11:23:27 +0100. > Hi list, > > i'd like to retreive the keyimage value of a class from my mapfile using > php. > i've not found any attributs or method into the Class object of > phpmapscript > to do that. > > how is it possible ? > > Thank's for your help. > > S?bastien > From banders at REFRACTIONS.NET Fri Jan 14 08:45:49 2005 From: banders at REFRACTIONS.NET (Brock Anderson) Date: Fri, 14 Jan 2005 08:45:49 -0800 Subject: MapServer Binaries with SDE support? In-Reply-To: Message-ID: Peter, In the past I have used "mod_fastcgi-2.4.2-AP20.dll", and renamed it to mod_fastcgi.so. It worked for me, although I don't know if that is the recommended approach. If the file you used is working, then there probably isn't any immediate need to upgrade, although it is usually better to use the latest version. Do you get an error response from MapServer when you request your SDE layers? If there is a problem with your connection information, MapServer will usually return an error message explaining which layer failed and why. If you simply get a blank image back from MapServer, you could have any number of problems. I do recommend a couple changes which will help with SDE performance (once you get it working): 1. Add the following line to the SDE layers in your mapfile. It will give you persistent connections. If you don't do this, you won't get the full benefit of fastCGI. PROCESSING "CLOSE_CONNECTION=DEFER" 2. Remove SDE.DEFAULT from the end of your DATA line. I think if the version is not specified MapServer will assume the default version, and will benefit from certain optimizations. Brock Anderson Peter.VonGaza wrote: >Hi Brock, > >Thanks for you information. > >I installed the files from the zip. The readme.txt says to go to >www.fastcgi.com to get mod_fastcgi.so. The only file that I could >Find was in the "old" directory: > >http://www.fastcgi.com/dist/old/mod_fastcgi-2.4.0-AP2.so > >So I just grab that and renamed it "mod_fastcgi.so". Is there >Another file somewhere else? > >At the command prompt "mapserv -v" gives me: >MapServer version 4.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ >SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT >SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=FASTCGI INPUT=SDE >INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG > >Looks OK to me. > >My old MapServer apps come up fine, but I still can't display an ArcSDE >Layer. How do I tell if it my connection string or something else. I >Figure it must be my connection string. I am trying something like this: > > LAYER > NAME "SDE URN" > STATUS ON > DATA "BASEA.URN,SHAPE,SDE.DEFAULT" > TYPE LINE > CONNECTIONTYPE SDE > CONNECTION "mysde.gov.yk.ca,port:5151,sde,username,password" > UNITS METERS > SIZEUNITS PIXELS > CLASS > NAME "SDE Roads" > STYLE > SYMBOL 0 > OUTLINECOLOR 0 255 0 > SIZE 1 > MINSIZE 1 > MAXSIZE 100 > END > END > END > >The only variable that could be wrong is "sde". We leave the Database >Field blank when connecting in ArcCatalog. I've tried "null", ' ', and >"sde". Where to I start? How do I tell if I am hitting our ArcSDE? > >Thanks, >Peter > > >Brock Anderson wrote: > > > >>You can download Win32 binaries for Mapserver with SDE and FastCGI >>support here: >> >> > > > >>ftp://ftp.refractions.net/pub/refractions/mapserver/mapserver4.4.zip >> >> > > > >>There is a readme file in the archive that should help you set it up. >>Let me know if you run into trouble. >> >> > > > >>Brock Anderson >> >> > >----------------------------------------------------------------------- > > > >>Paul Ramsey wrote: >> >> > > > >>Hi Peter, >> >>On 12-Jan-05, at 5:47 PM, Peter.VonGaza wrote: >> >> >> >>>Do you have any recommendations on how I should set things up? I am >>>not a MapServer expert - I just know the basics. What exactly is >>>fastcgi and are >>>there any precompiled binaries available? I've just downloaded the >>>binaries >>>that Assefa pointed me to: >>> >>> >>Once you get into database-backed data sources, the way Mapserver runs >>can become an issue. Mapserver is a CGI process, which means for every >>map request Mapserver goes through a complete startup, read config, >>generate map, shutdown cycle. There is no Mapserver process running >>between requests. For database data sources, that means Mapserver has >>to establish a connection for every individual map request. It can >>take a long time to establish an SDE connection (in BC, we found >>between 1 and 2 seconds). That means 1-2 seconds are burned before the >>map even starts rendering. That's pretty bad news if you want a fast >>map server, and as you have found in your testing, under the right >>conditions Mapserver is a very fast map server indeed. >> >>So what is the solution? What if Mapserver did not shut down after >>every map request? What if it stayed running, and maintained database >>connections between map requests? That would mean map requests would >>not have to pay a connection penalty to pull data out of ArcSDE, >>because the connection would already be there, waiting. >> >>This is what FastCGI does. It is a general purpose technology that >>allows programs with a high startup overhead (such as Mapserver >>connecting to ArcSDE) to stay running continuously, and provides a >>means for Apache to broker requests to the running processes. >> >>Brock will send you a message tomorrow with a link to precompiled >>windows binaries with FastCGI and ArcSDE support, and some Apache >>configuration snippets to run Mapserver in FastCGI mode. If you are >>looking to demonstrate Mapserver performance against ArcSDE, you >>really have to use FastCGI. >> >> From Ken.Boss at DNR.STATE.MN.US Fri Jan 14 08:53:37 2005 From: Ken.Boss at DNR.STATE.MN.US (Ken Boss) Date: Fri, 14 Jan 2005 10:53:37 -0600 Subject: mapserver map file - hilite style in querymap Message-ID: I've done this sort of thing by using a separate layer for displaying selected features in the querymap. My query is run against my "normal" polygon map layer, but in my query template, instead of using a [queymap] (or [indexquerymap] in my case)template to display the querymap, I've got an img tag like: The querymap and "hiliter" layers in my mapfile are like: QUERYMAP SIZE 300 300 STATUS off STYLE selected END LAYER NAME hiliter TYPE line STATUS off MAXSCALE 150000 TILEINDEX drs/metadata/mapserver/for_dofarea TILEITEM "location" CLASS SYMBOL 'circle' SIZE 2 COLOR 255 255 0 TEMPLATE "dummy" END END Note that the "hiliter" layer uses the same TILEINDEX/TILEITEM (or DATA) specs as the originally queried polygon layer, and the TEMPLATE spec is just a dummy spec to make the layer queryable (though it's not actually queried, just displayed in the querymap). HTH, --Ken Boss MN DNR Forestry Resource Assessment >>> John Spotten 1/14/2005 9:10:20 AM >>> Hi, Is it possible to specify a thicker hilite style for selected objects i.e. more than 1 pixel, in a map file? and if so how? thanks john John Spotten Transport Modeller/GIS Developer Directorate of Transport, Roads and Stormwater City of Cape Town Tel : +27 21 4067325 Fax : +27 21 4186989 Cell : +27 846678901 Email : john.spotten at capetown.gov.za Web : www.capetown.gov.za <> From arnulf.christl at CCGIS.DE Fri Jan 14 09:59:26 2005 From: arnulf.christl at CCGIS.DE (Arnulf Christl) Date: Fri, 14 Jan 2005 18:59:26 +0100 Subject: How to add temporary poligons on map and process them? In-Reply-To: Message-ID: Janeks Kamerovskis wrote: > Hi, List! > > My I idea on subject is: > 1) Temp obj on map: > a) draw using client side (f.ex. DIV objects using javascript), > b) draw using phpMapScript (I like this option better, but is it possible?) > 2) Process in DB: > I am planing to do it by using phpMapScript and WKT formats to input them > in SQL DB. > Note: Polygon points mainly will be acuired trought processing "textual" > info from > input fields. Just is some cases there could be digitizing on screen. > > Any ideas of the best way for point 1)? > > brgds > Janeks > Hi, do you plan to use existing software or do you want to implement your own stuff? You find a version that displays a geometry with JavaScript and saves it as WKT in a PostgreSQL/PostGIS database in Mapbender in the cvs: (mod_saveWKT.php) it never left beta http://cvs.sourceforge.net/viewcvs.py/mapbender/mapbender/http/php/mod_saveWKT.php?rev=1.1&view=log The newest development obtains the geometry from OGC WFS servers, it can read and query any WSF. We are currently extending it to also handle transactional requests and store geometries with GeoServer WFS-T. You can see the WFS version at work here with a UMN MapServer as both WFS and WMS: http://www.mapbender.org/demoserver.html (it still doesn't zoom correctly with MS IE though :-) Without iframe: http://wms1.ccgis.de/mapbender2/frames/login.php?name=ccgis_de&password=ccgis_de&mb_user_myGui=PLZ Best, Arnulf. -- ------------------------ Arnulf B. Christl ------------------------ http://www.ccgis.org http://www.mapbender.org ------------------------ From michael at LIVEPROCESS.COM Fri Jan 14 10:08:46 2005 From: michael at LIVEPROCESS.COM (Michael Elepano) Date: Fri, 14 Jan 2005 13:08:46 -0500 Subject: Need Help Displaying Info from DBFs Message-ID: Hey: I've been using MapServer for about a month now and have gotten relatively far with it. But now I've hit a brick wall. The problem I'm having is showing info from DBFs on my map of the US. I've got two DBFs (one with all the US counties and one with data-- say occurences of avalanches-- for each of those county). I'm trying to color code each county according to occurences of avalanches. Each DBF has a column called FIPS. The avalanche DBF has a column called COUNT that is the basis for my colors. I can use EXPRESSION to single out any column in my county DBF, but I can't seem to reach my avalanche DBF. I'm assuming I'll need to do a JOIN. My attempt follows below. Any advice would be appreciated. Michael ###################### ## my attempt at an avalanche layer ###################### LAYER NAME "layerAvalanche" TYPE POLYGON STATUS ON DATA "counties.dbf" PROJECTION "proj=latlong" "ellps=GRS80" "datum=NAD83" END CLASS NAME "classGreen" OUTLINECOLOR 255 0 255 COLOR 0 255 0 EXPRESSION ([COUNT] > 5) END JOIN NAME "joinAvalanche" TABLE "C:\my\path\to\avalanches.dbf" FROM "FIPS" TO "FIPS" END END From jbarong at HOTMAIL.COM Fri Jan 14 10:16:51 2005 From: jbarong at HOTMAIL.COM (Juan Baron) Date: Fri, 14 Jan 2005 12:16:51 -0600 Subject: File wld y extent Message-ID: Hi: How is it made the file wld and the values for the parameter extent? Thank's From jbarong at HOTMAIL.COM Fri Jan 14 10:22:54 2005 From: jbarong at HOTMAIL.COM (Juan Baron) Date: Fri, 14 Jan 2005 12:22:54 -0600 Subject: Display JPEG and TIF Message-ID: I am trying to show some images jpeg or tif using a layer raster, I generate the wld and it leaves me the following error: For the jpeg image: drawJPEG(): Unable to access file. Only grayscale JPEG images are supported. For the tif image: Image handling error. Only colormapped and grayscale images are supported. Thank's From sobomsawin at KASSINI.COM Fri Jan 14 10:36:47 2005 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Fri, 14 Jan 2005 13:36:47 -0500 Subject: [UMN_MAPSERVER-USERS] File wld y extent In-Reply-To: Message-ID: I think you are talking about the world file which comes with a GeoTIFF, right? If so, you can use a small application named GeoTIFF Examiner (unfortunately on Win only...): http://ioc.unesco.org/oceanteacher/resourcekit/M3/Toolbox/GeoTIFFExaminer.ht m If I'm wrong, please give us more details... Skweda -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Juan Baron Envoy??: 14 janvier 2005 13:17 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: [UMN_MAPSERVER-USERS] File wld y extent Hi: How is it made the file wld and the values for the parameter extent? Thank's -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.6.11 - Release Date: 2005-01-12 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.6.11 - Release Date: 2005-01-12 From fwarmerdam at GMAIL.COM Fri Jan 14 10:44:27 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri, 14 Jan 2005 13:44:27 -0500 Subject: File wld y extent In-Reply-To: Message-ID: On Fri, 14 Jan 2005 12:16:51 -0600, Juan Baron wrote: > Hi: > > How is it made the file wld and the values for the parameter extent? Juan, Information on the ESRI World file can be found at: http://geotiff.maptools.org/faq.html#WorldFile1 If you know the top left corner and the pixel size it is easy to make yourself. As Skweda mentioned you can also use GeoTiffExaminer, or listgeo to make one from a GeoTIFF file. Best regards, From eric at GOMOOS.ORG Fri Jan 14 10:50:03 2005 From: eric at GOMOOS.ORG (Eric Bridger) Date: Fri, 14 Jan 2005 13:50:03 -0500 Subject: [UMN_MAPSERVER-USERS] File wld y extent In-Reply-To: <002b01c4fa68$0151b010$6d01a8c0@jebediah> Message-ID: This link should get you started. http://mapserver.gis.umn.edu/doc44/raster-howto.html#world_files On Fri, 2005-01-14 at 13:36, Skweda O'Bomsawin wrote: > I think you are talking about the world file which comes with a GeoTIFF, > right? > > If so, you can use a small application named GeoTIFF Examiner (unfortunately > on Win only...): > http://ioc.unesco.org/oceanteacher/resourcekit/M3/Toolbox/GeoTIFFExaminer.ht > m > > If I'm wrong, please give us more details... > > Skweda > > > -----Message d'origine----- > De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la > part de Juan Baron > Envoy? : 14 janvier 2005 13:17 > ? : MAPSERVER-USERS at LISTS.UMN.EDU > Objet : [UMN_MAPSERVER-USERS] File wld y extent > > Hi: > > How is it made the file wld and the values for the parameter extent? > > Thank's From Zamil.Murji at DIVESTCO.COM Fri Jan 14 10:53:00 2005 From: Zamil.Murji at DIVESTCO.COM (Zamil Murji) Date: Fri, 14 Jan 2005 11:53:00 -0700 Subject: itemnquery mode and postgis help Message-ID: Hello, I'm having trouble getting info using itemnquery cgi mode. I have found many examples that use shapefiles but I have yet to see one that uses postgis. So, I'm having a bit of trouble getting info from the db. Here is how I run the command: ./mapserv QUERY_STRING="mode=itemnquery&map=/mapfiles/idcdev_canada-itemnquery.map&imgext+3674226.39765+-183134.22738+3676417.48504&mapsize=688+434&imgbox=195+11+570+401&source=TIG600&qlayer=wells&map_wells_filter=%2F100032300505W500%7C200B067H082G0700%2F&uwi=100032300505W500&uwi=200B067H082G0700&layers=wells+wells-selected" It comes back with: Content-type: text/html MapServer Message msQueryByAttributes(): Query error. No query expression defined.
Here is my mapfile (BTW, nquery works with this mapfile - I've been using http://maps.dnr.state.mn.us/mapserver_demos/tests40/itemquery/case2.map as an example): NAME TEST1 PROJECTION "proj=merc" "lat_ts=54.458353" "lon_0=-111.729444" "ellps=GRS80" "datum=NAD83" END QUERYMAP STATUS ON STYLE HILITE COLOR 255 255 0 END LAYER NAME "wells" # DEBUG on TYPE point STATUS off MAXSCALE 800000 CONNECTIONTYPE postgis CONNECTION "user=idc dbname=idc host=idcmap port=5432" # DATA "the_geom from main_well2" DATA "the_geom from (select oid, to_date(main_well2.spud_date, 'YYYY-MM-DD') as pretty_spud_date, to_date(main_well2.rig_release_date, 'YYYY-MM-DD') as pretty_rig_release_date, prettyuwi(main_well2.uwi) as prettyuwi, well_status(plot_symbol) as well_status, * from main_well2) as new_table using unique oid" TEMPLATE "./idcdev_wells.html" PROJECTION "init=epsg:4269" END END END Any help would be appreciated From sobomsawin at KASSINI.COM Fri Jan 14 10:56:14 2005 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Fri, 14 Jan 2005 13:56:14 -0500 Subject: [UMN_MAPSERVER-USERS] Need Help Displaying Info from DBFs In-Reply-To: <556A5038-6657-11D9-A805-00039341C4F8@liveprocess.com> Message-ID: AFAIK, your server will crash with this mapfile... Fisrt, you need a shp file as DATA, not the dbf (what we call a shapefile is actually made of 3 or more files: a shp (geographic information), a shx (index info) and a dbf (tabular information related to the shp)). Mapserver uses the shp to display geographic information. The dbf is only used to filter this information or to query the geographic info. If you only have a dbf file, that means you will need a latitude and a longitude column in your dbf file to display something... At this point, you need to check: - what kind of dbf file you have (alone or with shp and shx) - If you have a shp and a shx, you just have to replace the DATA and section of your mapfile and you're done! - if your dbf is alone, do you have an X and Y or latitude and longitude column? - If you have these columns, you will need to create a shapefile with these coordinates or use the virtual layer function of mapscript... We are waiting for your input... Skweda -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Michael Elepano Envoy??: 14 janvier 2005 13:09 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: [UMN_MAPSERVER-USERS] Need Help Displaying Info from DBFs Hey: I've been using MapServer for about a month now and have gotten relatively far with it. But now I've hit a brick wall. The problem I'm having is showing info from DBFs on my map of the US. I've got two DBFs (one with all the US counties and one with data-- say occurences of avalanches-- for each of those county). I'm trying to color code each county according to occurences of avalanches. Each DBF has a column called FIPS. The avalanche DBF has a column called COUNT that is the basis for my colors. I can use EXPRESSION to single out any column in my county DBF, but I can't seem to reach my avalanche DBF. I'm assuming I'll need to do a JOIN. My attempt follows below. Any advice would be appreciated. Michael ###################### ## my attempt at an avalanche layer ###################### LAYER NAME "layerAvalanche" TYPE POLYGON STATUS ON DATA "counties.dbf" PROJECTION "proj=latlong" "ellps=GRS80" "datum=NAD83" END CLASS NAME "classGreen" OUTLINECOLOR 255 0 255 COLOR 0 255 0 EXPRESSION ([COUNT] > 5) END JOIN NAME "joinAvalanche" TABLE "C:\my\path\to\avalanches.dbf" FROM "FIPS" TO "FIPS" END END = -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.6.11 - Release Date: 2005-01-12 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.6.11 - Release Date: 2005-01-12 From sobomsawin at KASSINI.COM Fri Jan 14 11:19:37 2005 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Fri, 14 Jan 2005 14:19:37 -0500 Subject: [UMN_MAPSERVER-USERS] itemnquery mode and postgis help In-Reply-To: <64FC1B3E23F04C4E931EE3F6D809FF303B584D@div-mx02.divestco.com> Message-ID: Zamil, I am frequently using itemnquery in cgi mode with PostGIS data and it works very well. There is a lot of things confused in your query string: - Use a mapext instead of a imgext - the MAXY coordinate of your imgext (mapext) is missing - Since you have an imgbox, I understand you want to do a nquery not an itemnquery (itemnquery is for selecting data based on a query in the table VS a nquery wich is for selecting data spatially), so change the mode to nquery - I don't know the "source" parameter. Are you using it somewhere in your code??? - The same goes for "uwi" Let's give it a try with these corrections... Skweda -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Zamil Murji Envoy??: 14 janvier 2005 13:53 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: [UMN_MAPSERVER-USERS] itemnquery mode and postgis help Hello, I'm having trouble getting info using itemnquery cgi mode. I have found many examples that use shapefiles but I have yet to see one that uses postgis. So, I'm having a bit of trouble getting info from the db. Here is how I run the command: ./mapserv QUERY_STRING="mode=itemnquery&map=/mapfiles/idcdev_canada-itemnquery.map&img ext+3674226.39765+-183134.22738+3676417.48504&mapsize=688+434&imgbox=195+11+ 570+401&source=TIG600&qlayer=wells&map_wells_filter=%2F100032300505W500%7C20 0B067H082G0700%2F&uwi=100032300505W500&uwi=200B067H082G0700&layers=wells+wel ls-selected" It comes back with: Content-type: text/html MapServer Message msQueryByAttributes(): Query error. No query expression defined.
Here is my mapfile (BTW, nquery works with this mapfile - I've been using http://maps.dnr.state.mn.us/mapserver_demos/tests40/itemquery/case2.map as an example): NAME TEST1 PROJECTION "proj=merc" "lat_ts=54.458353" "lon_0=-111.729444" "ellps=GRS80" "datum=NAD83" END QUERYMAP STATUS ON STYLE HILITE COLOR 255 255 0 END LAYER NAME "wells" # DEBUG on TYPE point STATUS off MAXSCALE 800000 CONNECTIONTYPE postgis CONNECTION "user=idc dbname=idc host=idcmap port=5432" # DATA "the_geom from main_well2" DATA "the_geom from (select oid, to_date(main_well2.spud_date, 'YYYY-MM-DD') as pretty_spud_date, to_date(main_well2.rig_release_date, 'YYYY-MM-DD') as pretty_rig_release_date, prettyuwi(main_well2.uwi) as prettyuwi, well_status(plot_symbol) as well_status, * from main_well2) as new_table using unique oid" TEMPLATE "./idcdev_wells.html" PROJECTION "init=epsg:4269" END END END Any help would be appreciated -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.6.11 - Release Date: 2005-01-12 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.6.11 - Release Date: 2005-01-12 From fwarmerdam at GMAIL.COM Fri Jan 14 11:24:45 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri, 14 Jan 2005 14:24:45 -0500 Subject: Display JPEG and TIF In-Reply-To: Message-ID: On Fri, 14 Jan 2005 12:22:54 -0600, Juan Baron wrote: > I am trying to show some images jpeg or tif using a layer raster, I > generate the wld and it leaves me the following error: > > For the jpeg image: drawJPEG(): Unable to access file. Only grayscale > JPEG images are supported. > > For the tif image: Image handling error. Only colormapped and grayscale > images are supported. Juan, If you want to work with 24bit RGB TIFF or JPEG files you will need to use a MapServer that includes GDAL support. The legacy TIFF and JPEG drivers have some severe limitations which you are running into. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From rob at DATAFLOWDESIGN.COM Fri Jan 14 11:25:09 2005 From: rob at DATAFLOWDESIGN.COM (Rob P.) Date: Fri, 14 Jan 2005 13:25:09 -0600 Subject: Seg faults using PEAR DB with php mapscript Message-ID: Am getting a segmentation violation error when my php mapscript application exits. Otherwise, the application runs without errors and produces the correct results. I am using mapscript with Pear DB to connect to a postgresql database on a FreeBSD system. Here is a simple application that loads the mapscript library and then connects to pgsql. If I remove the dl(php_mapscript) command, there is no error. I would like to make sure that it is not my configuration. I would be grateful if someone would run this code in their unix or linux environment: disconnect(); error_log("disconnected"); ?> Messages in log file: Jan 14 12:54:42 ursus php: after connect Jan 14 12:54:42 ursus php: disconnected Jan 14 12:54:42 ursus /kernel: pid 12663 (php), uid 80: exited on signal 11 I have this problems with several versions of mapserver, php, PGSql, and FreeBSD. The particulars: PHP configured as cgi under Apache. MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Have also experienced this with 4.0.2 OS is FreeBSD 4.9 PHP Version 4.3.10 './configure' '--prefix=/home/rob/local' '--enable-cgi' '--enable-force-cgi-redirect' '--enable-fastcgi' '--with-inifile' '--with-pgsql=shared' '--with-gd' '--with-zlib-dir' '--with-freetype-dir' '--with-regex=system' psql (PostgreSQL) 7.4.1 Thanks for your help, Rob From mj at SCI.FI Fri Jan 14 11:02:26 2005 From: mj at SCI.FI (Mike Jackson) Date: Fri, 14 Jan 2005 21:02:26 +0200 Subject: mapserver cluster? Message-ID: Hi, I just put together a 5 machine freebsd cluster, using the lam (local area multicomputer) package, which includes MPI libraries, etc. I would like to test it with mapserver. Has anybody setup mapserver to do distributed rendering of vector maps? Does mapserver contain any MPI interfaces? -- mike From Zamil.Murji at DIVESTCO.COM Fri Jan 14 11:53:24 2005 From: Zamil.Murji at DIVESTCO.COM (Zamil Murji) Date: Fri, 14 Jan 2005 12:53:24 -0700 Subject: [UMN_MAPSERVER-USERS] itemnquery mode and postgis help Message-ID: Skweda and list, I've taken into account some of the things you have said and I have changed my command to: ./mapserv QUERY_STRING="mode=itemnquery&map=/mapfiles/idcdev_canada-itemnquery.map&qlayer=wells&map_wells_filter=%2F100032300505W500%7C200B067H082G0700%2F&uwi=100032300505W500&uwi=200B067H082G0700&layers=wells+wells-selected" All the extra stuff was there because I was trying to use a working nquery command. I have taken out the source parameter, however, the uwi (= unique id) is what I would like to filter with. Thanks Zamil -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Skweda O'Bomsawin Sent: Friday, January 14, 2005 12:20 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] itemnquery mode and postgis help Zamil, I am frequently using itemnquery in cgi mode with PostGIS data and it works very well. There is a lot of things confused in your query string: - Use a mapext instead of a imgext - the MAXY coordinate of your imgext (mapext) is missing - Since you have an imgbox, I understand you want to do a nquery not an itemnquery (itemnquery is for selecting data based on a query in the table VS a nquery wich is for selecting data spatially), so change the mode to nquery - I don't know the "source" parameter. Are you using it somewhere in your code??? - The same goes for "uwi" Let's give it a try with these corrections... Skweda -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Zamil Murji Envoy??: 14 janvier 2005 13:53 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: [UMN_MAPSERVER-USERS] itemnquery mode and postgis help Hello, I'm having trouble getting info using itemnquery cgi mode. I have found many examples that use shapefiles but I have yet to see one that uses postgis. So, I'm having a bit of trouble getting info from the db. Here is how I run the command: ./mapserv QUERY_STRING="mode=itemnquery&map=/mapfiles/idcdev_canada-itemnquery.map&img ext+3674226.39765+-183134.22738+3676417.48504&mapsize=688+434&imgbox=195+11+ 570+401&source=TIG600&qlayer=wells&map_wells_filter=%2F100032300505W500%7C20 0B067H082G0700%2F&uwi=100032300505W500&uwi=200B067H082G0700&layers=wells+wel ls-selected" It comes back with: Content-type: text/html MapServer Message msQueryByAttributes(): Query error. No query expression defined.
Here is my mapfile (BTW, nquery works with this mapfile - I've been using http://maps.dnr.state.mn.us/mapserver_demos/tests40/itemquery/case2.map as an example): NAME TEST1 PROJECTION "proj=merc" "lat_ts=54.458353" "lon_0=-111.729444" "ellps=GRS80" "datum=NAD83" END QUERYMAP STATUS ON STYLE HILITE COLOR 255 255 0 END LAYER NAME "wells" # DEBUG on TYPE point STATUS off MAXSCALE 800000 CONNECTIONTYPE postgis CONNECTION "user=idc dbname=idc host=idcmap port=5432" # DATA "the_geom from main_well2" DATA "the_geom from (select oid, to_date(main_well2.spud_date, 'YYYY-MM-DD') as pretty_spud_date, to_date(main_well2.rig_release_date, 'YYYY-MM-DD') as pretty_rig_release_date, prettyuwi(main_well2.uwi) as prettyuwi, well_status(plot_symbol) as well_status, * from main_well2) as new_table using unique oid" TEMPLATE "./idcdev_wells.html" PROJECTION "init=epsg:4269" END END END Any help would be appreciated -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.6.11 - Release Date: 2005-01-12 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.6.11 - Release Date: 2005-01-12 From woodbri at SWOODBRIDGE.COM Fri Jan 14 11:55:15 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 14 Jan 2005 14:55:15 -0500 Subject: mapserver cluster? In-Reply-To: <41E81742.9000306@sci.fi> Message-ID: Mike Jackson wrote: > Hi, > I just put together a 5 machine freebsd cluster, using the lam (local > area multicomputer) > package, which includes MPI libraries, etc. I would like to test it with > mapserver. > > Has anybody setup mapserver to do distributed rendering of vector maps? > Does mapserver contain > any MPI interfaces? I don't think mapserver contains MPI interfaces. But I have worked with mapserver clustered at a couple of different sites. Typical all request come into a load balancer that then farms the request to one of the servers in the cluster for processing. This can be done by sending a redirect to the browser or by setting up a proxy that forwards the requests to the appropriate server transparent to the client. -Steve From toddbirkey at YAHOO.COM Fri Jan 14 13:03:01 2005 From: toddbirkey at YAHOO.COM (Todd Birkenholtz) Date: Fri, 14 Jan 2005 13:03:01 -0800 Subject: Pass information from CGI through Map file to OVF file and do a SQL Where Message-ID: Is there any way to pass more information through the CGI URL ? I want to be able to use that variable and pass it to my OVF file and do a SQL "Where" to get that locations Longitude Latitude. Then I will place a symbol at that location. http://localhost/mapserver.exe?map=c:\inetpub\wwwroot\maptest\wanmap.map&mode=map&layer=states&place=xmarksthespot I think the OVF will look something like this.... ODBC:user/user at things,stuff SELECT lat,lon from secretplaces where thespot='???Information from CGI ???' wkbPoint Thank you. --------------------------------- Do you Yahoo!? Yahoo! Mail - Easier than ever with enhanced search. Learn more. -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at LIVEPROCESS.COM Fri Jan 14 13:03:40 2005 From: michael at LIVEPROCESS.COM (Michael Elepano) Date: Fri, 14 Jan 2005 16:03:40 -0500 Subject: Need Help Displaying Info from DBFs Message-ID: On Jan 14, 2005, at 1:56 PM, Skweda O'Bomsawin wrote: > AFAIK, your server will crash with this mapfile... Fisrt, you need a > shp > file as DATA, not the dbf (what we call a shapefile is actually made > of 3 or > more files: a shp (geographic information), a shx (index info) and a > dbf > (tabular information related to the shp)). Mapserver uses the shp to > display geographic information. The dbf is only used to filter this > information or to query the geographic info. Actually, the server does not crash with my DATA. It seems MapServer disregards everything after (and including) the dot on the DATA name. So, in the example below, I can have "counties.foo" as my DATA and the shape file will still load properly. To answer your questions, "counties" consists of a shp, shx, and dbf. "avalanche" only has a dbf. I have discovered something interesting: In the example below, it seems the JOIN doesn't respond regardless what I place as the TABLE, FROM, and TO. I can use: TABLE "this_is" FROM "complete" TO "nonsense" and no errors will be generated. Am I doing something wrong? Should the JOIN be in the CLASS or in the LAYER? BTW, I'm on MapServer 4.3 TIA Michael > > If you only have a dbf file, that means you will need a latitude and a > longitude column in your dbf file to display something... > > At this point, you need to check: > - what kind of dbf file you have (alone or with shp and shx) > - If you have a shp and a shx, you just have to replace the > DATA and > section of your mapfile and you're done! > - if your dbf is alone, do you have an X and Y or latitude and > longitude column? > - If you have these columns, you will need to create a > shapefile > with these coordinates or use the virtual layer function of > mapscript... > > We are waiting for your input... > > Skweda > > -----Message d'origine----- > De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > De la > part de Michael Elepano > Envoy??: 14 janvier 2005 13:09 > ??: MAPSERVER-USERS at LISTS.UMN.EDU > Objet?: [UMN_MAPSERVER-USERS] Need Help Displaying Info from DBFs > > Hey: > > I've been using MapServer for about a month now and have gotten > relatively far with it. But now I've hit a brick wall. > > The problem I'm having is showing info from DBFs on my map of the US. > I've got two DBFs (one with all the US counties and one with data-- say > occurences of avalanches-- for each of those county). I'm trying to > color code each county according to occurences of avalanches. > > Each DBF has a column called FIPS. The avalanche DBF has a column > called COUNT that is the basis for my colors. I can use EXPRESSION to > single out any column in my county DBF, but I can't seem to reach my > avalanche DBF. > > I'm assuming I'll need to do a JOIN. My attempt follows below. Any > advice would be appreciated. > > Michael > > ###################### > ## my attempt at an avalanche layer > ###################### > LAYER > NAME "layerAvalanche" > TYPE POLYGON > STATUS ON > DATA "counties.dbf" > PROJECTION > "proj=latlong" > "ellps=GRS80" > "datum=NAD83" > END > > CLASS > NAME "classGreen" > OUTLINECOLOR 255 0 255 > COLOR 0 255 0 > EXPRESSION ([COUNT] > 5) > END > > JOIN > NAME "joinAvalanche" > TABLE "C:\my\path\to\avalanches.dbf" > FROM "FIPS" > TO "FIPS" > END > END > = > > -- > No virus found in this incoming message. > Checked by AVG Anti-Virus. > Version: 7.0.300 / Virus Database: 265.6.11 - Release Date: 2005-01-12 > > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.300 / Virus Database: 265.6.11 - Release Date: 2005-01-12 > > From fwarmerdam at GMAIL.COM Fri Jan 14 13:29:53 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri, 14 Jan 2005 16:29:53 -0500 Subject: Pass information from CGI through Map file to OVF file and do a SQL Where In-Reply-To: <20050114210301.30153.qmail@web40606.mail.yahoo.com> Message-ID: On Fri, 14 Jan 2005 13:03:01 -0800, Todd Birkenholtz wrote: > > > Is there any way to pass more information through the CGI URL ? > > I want to be able to use that variable and pass it to my OVF file and do a > SQL "Where" to get that locations Longitude Latitude. Then I will place a > symbol at that location. > > http://localhost/mapserver.exe?map=c:\inetpub\wwwroot\maptest\wanmap.map&mode=map&layer=states&place=xmarksthespot > > > I think the OVF will look something like this.... > > > ODBC:user/user at things,stuff > > SELECT lat,lon from secretplaces where > thespot='???Information from CGI ???' > wkbPoint > > > Todd, I would suggest you read over: http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#variablesubstitution I have never tried it myself, but I think it is what you want. Also, you will need to be quite careful about "escaping" stuff if you have odd values. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From ed at TOPOZONE.COM Fri Jan 14 13:32:46 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 14 Jan 2005 16:32:46 -0500 Subject: Windows 2003 Standard IIS 6.0 trouble Message-ID: Zach - On the virtual directory properties tab (where you're changing the Read and Read/Write permissions), check to make sure the "Execute permissions" setting (near the bottom) reads "Scripts and Executables". If you look at the behavior you're getting, it is perfectly consistent and reasonable if you understand what's going on. When you pass a URL to IIS that points to a file, IIS needs to determine whether you would like to retrieve the contents of that file or whether the file should be passed to a script interpreter, or whether the file should be executed like a CGI program. When you changed the permissions to Read and Write, you may have disabled Execute permission. When the next request was made specifying the file, IIS (having been told not to execute it) returned its contents. I don't want you to be using your index.html right now. I am simply trying to get you to successfully execute MapServer as a CGI binary. For example, if you click on the URL below: http://www.geozone.com/cgi-bin/mapserv.exe you will get an error message that's obviously from MapServer. This will demonstrate that MapServer is being found by IIS and executed properly as a CGI program. Once we get to that point things will get much simpler. You don't need any templates or map files to do this - simply make sure that mapserv.exe is in the right place and set up properly. When you replace the URL above with the path to your mapserv.exe, what message do you get? If your IIS server is externally accessible, please post the URL to your server; otherwise, just let us know what happens when you use a URL exactly like the www.geozone.com URL above. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 ________________________________ From: Zachary Stauber [mailto:zstauber at bhinc.com] Sent: Friday, January 14, 2005 2:54 PM To: Ed McNierney; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Windows 2003 Standard IIS 6.0 trouble Yes, I do have a virtual directory set up, which I learned from Win2k IIS 6.0. It wouldn't find mapserv.exe until I made the actual directory a "virtual" directory as well of the exact same path, but I learned it by trying random things. Win 2003's IIS 6.0 apparently works entirely differently. IIS does find mapserv.exe and won't let it be found, because if I change the permissions on that directory from read to read and write, it lists the contents of the mapserve.exe to the web browser as binary junk. Nice, huh? It's some kind of permissions thing, but without feedback from the web page or a log file, I don't know what's denying it. Greenwood says that Mozilla suppresses less error info, and I can try that from home (unfortunately IE is mandated at the office), and that the user has to have extra permissions for starting up the executable, which is believable. I'm running it from the command prompt as admin, which works fine, but through CGI it runs as WebAdmin, which is much more restricted. The path in the index.html is as follows: -Zack ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney Sent: Thursday, January 13, 2005 6:44 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Windows 2003 Standard IIS 6.0 trouble Zach - IIS doesn't "let the file not be found" - it can't find it. What is the URL you are using to refer to your MapServer executable? Do you have a virtual directory (if necessary) set up there? If you use the IIS administration tool, can you browse to the mapserv.exe file and find it along the path you expect? What is the URL you are using that triggers that error? And please ALWAYS reply to the entire list.... - Ed ________________________________ From: Zachary Stauber [mailto:zstauber at bhinc.com] Sent: Thursday, January 13, 2005 5:09 PM To: Ed McNierney Subject: RE: [UMN_MAPSERVER-USERS] Windows 2003 Standard IIS 6.0 trouble Well, I'm just trying to display the basic Itasca map they offer up on the Mapserver site http://mapserver.gis.umn.edu/dload.html, I get the standard message which tells me nothing I can use to find the source of the problem (the general check engine light of the web server world): I. The page cannot be found The page you are looking for might have been removed, had its name changed, or is temporarily unavailable. ________________________________ Please try the following: * Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly. * If you reached this page by clicking a link, contact the Web site administrator to alert them that the link is incorrectly formatted. * Click the Back button to try another link. A. HTTP Error 404 - File or directory not found. Internet Information Services (IIS) ________________________________ Technical Information (for support personnel) * Go to Microsoft Product Support Services and perform a title search for the words HTTP and 404. * Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Web Site Setup, Common Administrative Tasks, and About Custom Error Messages. So based on this one would think that the mapserv.exe is in the wrong place or misspelled, but it's in the exact same place as I have it on a Windows 2000 install that works fine, and the .map and .html files are exact copies of those. So what this error is really telling me is that IIS 6.0 is not letting the mapserv.exe be found or run. -Zack -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Thursday, January 13, 2005 2:56 PM To: Zachary Stauber; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Windows 2003 Standard IIS 6.0 trouble Zack - MapServer works just fine under Windows 2003 Standard and IIS 6.0, and there's plenty of "proof" of that! But you do need to take the time to understand how your new tools work rather than blaming them (or MapServer). You gave us a lot of information in your email (thanks) but you didn't say what didn't work! What is the symptom you're seeing? What are you doing, and what is the (unexpected) result you're getting? - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Zachary L. Stauber Sent: Thursday, January 13, 2005 4:21 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Windows 2003 Standard IIS 6.0 trouble Hi, I'm using Windows 2003 Standard, and I'm trying to get MapServ.exe to work on it. Right now I'm just trying out the Itasca dataset. It's a permissions problem. Does anyone have a vaguely detailed process for setting the permissions or configuring Web Access Extensions or Application Extensions (or whatever hates MapServer so much) so it gets past the top level security junk in IIS 6.0? I have the same version, 4.4.0-beta3 working fine on a Windows XP SP2 machine, with all the files in exactly the same places. The EXE and all DLL's are in C:\InetPub\scripts\MapServer\ the C:\Proj data has a copy of everything it's supposed to, and the Itasca data starts in C:\InetPub\wwwroot\MapServer\NCTCOG\mapserver_demos\workshop Before you ask, I set all the directories mentioned above to give WebAdmin all rights (except full control), I changed all the paths to the correct places in the "index.html" file, which shows the Itasca map fine under Windows XP SP2, and I added a "MapServer" entry to the Web Service Extensions and added every EXE and DLL that it uses with "Allow." I also set the Web Service Extensions to "Allow" "All Unknown CGI Extensions" by default (actually that was set when I got here). I also made the NCTCOG directory in wwwroot a virtual directory and set "read" permission, set execute permissions to "Script and Executables," and created an application extension for ".map" files and set it to the mapserv.exe executable. I also did all this for the C:\InetPub\scripts\Mapserver directory just in case. What else can I do to loosen this thing up? Does anyone actually have it working under Windows 2003 Standard? I haven't found proof of this in over a year of back archives on this mailing list. -Zack Stauber Systems Analyst Bohannan-Huston, Inc. Albuquerque, NM USA -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Fri Jan 14 13:32:11 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 14 Jan 2005 16:32:11 -0500 Subject: mapserver cluster? In-Reply-To: <41E823CC.70404@sci.fi> Message-ID: Mike Jackson wrote: > Stephen Woodbridge wrote: > >> >> I don't think mapserver contains MPI interfaces. >> >> But I have worked with mapserver clustered at a couple of different >> sites. Typical all request come into a load balancer that then farms >> the request to one of the servers in the cluster for processing. This >> can be done by sending a redirect to the browser or by setting up a >> proxy that forwards the requests to the appropriate server transparent >> to the client. > > > There is a big difference between a farm of servers sitting behind a > load balancer, and a cluster. I think that people are starting to use > the term "cluster" when they really mean "server farm". There is no > logical interconnection between servers in a farm. OK, but there is full redundancy and fail over in the load balanced farm. We also have separate clusters/farms for applications, maps, geocoding, routing, and databases with lots of interconnections. > Rendering vector maps with vmap0 and vmap1 data is very processor > intensive. I am thinking that it could be greatly speeded up by using > either multi-processor machines, or a beowulf style cluster. A single P4 > processor just does not crunch numbers fast enough for highly detailed > vector maps. I wonder about the performance on something like an Opteron > 64-bit processor compared to a P4. I think one can argue this point if you are talking about mapserver anyway. I have VMAP0, Tiger, Navteq for North America and Europe all running off the same server farm and we get typical 2 sec response times. Most mapserver configurations that are slow, tend to be that way because the mapfile and the data is not organized in an efficient manner. I would have to say the my VMAP0 is the slowest, but that is because I haven't had time to spend on tuning the mapfile and the data. I have VMAP0 and Tiger running on my ($1500) P4 server at home sitting on a DSL line and it is a LOT slower than the systems at work in the production environment. http://imaptools.com/tiger/ http://imaptools.com/vmap0/ but they have reasonable performance. > I haven't coded anything with MPI (yet), so I have some learning curve > ahead just to learn how to use that. > > I like the idea of having the webserver, database, and number-crunching > done on seperate machines, so I will start to look into this further. Yes this would be an interesting development project if that is what you are looking for and mapserver probably could be made to have multiple process threads render sub-tiles of the map image then have the parent process stitch them together. Of course there are a lot of boundary issues you would have to deal with like label crossing tiles for one. But if you just want you maps to go fast, that can be done with the existing code if you invest your time in figuring out how to organize stuff to make it go faster. For that matter, if you map is slow, why is it slow. What layer(s) are dragging down performance? How could you change it to make it go faster? Like thin the detail, tile the data, index the data, etc. YMMV, -Steve Woodbridge http://imaptools.com/ From toddbirkey at YAHOO.COM Fri Jan 14 14:50:41 2005 From: toddbirkey at YAHOO.COM (Todd Birkenholtz) Date: Fri, 14 Jan 2005 14:50:41 -0800 Subject: Pass information from CGI through Map file to OVF file and do a SQL Where In-Reply-To: <931f8ea9050114132917ec1eab@mail.gmail.com> Message-ID: Thank you Frank. I have tried the %variable% method to get the variable into the Map file but my OVF file is external to the MAP file. I can not get the variables into the OVF file Now if I only could get the OVF inline with the MAP file I think I could get it to work. Any time I uncomment the inline method I get an error. but when I use the external method it works. Any suggestions? Thanks again. my map file is like this.... ################################################### # # NodeID #NodeID LAYER NAME nodeid TYPE POINT CONNECTIONTYPE OGR CONNECTION "c:\inetpub\wwwroot\maptest\office.ovf " #CONNECTION' # # ODBC:xxx/xxxr at xxx,xxx # # SELECT lat,lon from WANINFO where NodeID ='officeABC' # wkbPoint # # #' DUMP TRUE # for WFS only DATA "MyPoints" STATUS on CLASS symbol "circle2" size 10 color 0 0 0 END END ################################################### SYMBOL NAME "circle2" TYPE ellipse FILLED false POINTS 1 1 END END my office.ovf file is like this..... ODBC:xxx/xx at xx,xx SELECT lat,lon from WANINFO where NodeID ='officeABC' wkbPoint Frank Warmerdam wrote: On Fri, 14 Jan 2005 13:03:01 -0800, Todd Birkenholtz wrote: > > > Is there any way to pass more information through the CGI URL ? > > I want to be able to use that variable and pass it to my OVF file and do a > SQL "Where" to get that locations Longitude Latitude. Then I will place a > symbol at that location. > > http://localhost/mapserver.exe?map=c:\inetpub\wwwroot\maptest\wanmap.map&mode=map&layer=states&place=xmarksthespot > > > I think the OVF will look something like this.... > > > ODBC:user/user at things,stuff > > SELECT lat,lon from secretplaces where > thespot='???Information from CGI ???' > wkbPoint > > > Todd, I would suggest you read over: http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#variablesubstitution I have never tried it myself, but I think it is what you want. Also, you will need to be quite careful about "escaping" stuff if you have odd values. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent --------------------------------- Do you Yahoo!? All your favorites on one personal page ? Try My Yahoo! -------------- next part -------------- An HTML attachment was scrubbed... URL: From ealpert at DIGITALGLOBE.COM Fri Jan 14 14:57:43 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Fri, 14 Jan 2005 15:57:43 -0700 Subject: Swig and Perl - problem? Message-ID: On a somewhat related note if you're in a CGI and want to return the image directly as output use Slurp.pm . . . print $q->header(-type=>'image/png'); . . . $img = $map->draw(); $img->save($out); $myimg = Slurp::to_scalar($out); print $myimg; I like this approach better in somecases than returning the path to the image. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Tyler Mitchell Sent: Thursday, January 13, 2005 11:20 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Swig and Perl - problem? > # Create an imgObj that has an image of the map > $mapimage = $mapobject->{draw}; > ... Tyler, you need to learn Perl before attempting to use Perl/MapScript. Changing the above will work like: $mapimage = $mapobject->draw(); What were you thinking man? From fwarmerdam at GMAIL.COM Fri Jan 14 14:58:53 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri, 14 Jan 2005 17:58:53 -0500 Subject: Pass information from CGI through Map file to OVF file and do a SQL Where In-Reply-To: <20050114225041.74807.qmail@web40609.mail.yahoo.com> Message-ID: On Fri, 14 Jan 2005 14:50:41 -0800 (PST), Todd Birkenholtz wrote: > Thank you Frank. > I have tried the %variable% method to get the variable into the Map file but > my OVF file is external to the MAP file. > > I can not get the variables into the OVF file > > Now if I only could get the OVF inline with the MAP file I think I could get > it to work. Todd, I think the problem is that you have newlines in the OVF definition in the mapfile. When including it directly you have to be very careful about escaping things properly and following syntax rules. I don't think you can have newlines in a string constant in a mapfile. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From ealpert at DIGITALGLOBE.COM Fri Jan 14 15:20:28 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Fri, 14 Jan 2005 16:20:28 -0700 Subject: Need Help Displaying Info from DBFs Message-ID: Probably not the answer you're looking for but one day I looked inside the Geo::Shapelib module for perl and found a bunch of functions for reading DBF, Here's a little code snippet: $dbf_handle = Geo::Shapelib::DBFOpen(UPLOAD_DIR . $q->user_name() . "/shapefiles/" . $shpnames[$i] . ".dbf",'rb'); $dbf = Geo::Shapelib::DBFRead($dbf_handle,0); Geo::Shapelib::DBFClose($dbf_handle); foreach $b (keys %{$dbf->{FieldTypes}}) { push @{$fldn{$shpnames[$i]}} ,$b; } From toddbirkey at YAHOO.COM Fri Jan 14 20:09:42 2005 From: toddbirkey at YAHOO.COM (Todd Birkenholtz) Date: Fri, 14 Jan 2005 20:09:42 -0800 Subject: Pass information from CGI through Map file to OVF file and do a SQL Where In-Reply-To: <931f8ea905011414586dba814a@mail.gmail.com> Message-ID: Thank you Frank, Removing the blank line did the trick!!! Thanks again Todd Birkenholtz Frank Warmerdam wrote: On Fri, 14 Jan 2005 14:50:41 -0800 (PST), Todd Birkenholtz wrote: > Thank you Frank. > I have tried the %variable% method to get the variable into the Map file but > my OVF file is external to the MAP file. > > I can not get the variables into the OVF file > > Now if I only could get the OVF inline with the MAP file I think I could get > it to work. Todd, I think the problem is that you have newlines in the OVF definition in the mapfile. When including it directly you have to be very careful about escaping things properly and following syntax rules. I don't think you can have newlines in a string constant in a mapfile. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent --------------------------------- Do you Yahoo!? The all-new My Yahoo! ? What will yours do? -------------- next part -------------- An HTML attachment was scrubbed... URL: From jacob.delfos at MAUNSELL.COM Sat Jan 15 02:09:58 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Sat, 15 Jan 2005 18:09:58 +0800 Subject: Windows 2003 Standard IIS 6.0 trouble Message-ID: Zach, The web service extensions may be things like .php being executed by a PHP executable. Windows server has an Internet User. This "user" is basically the visitor of the website, and the permissions for this user are somewhat similar to linux, in the sense that this user must have execute permissions in a folder, in order to make the webserver use the executable. I did not have too much of an issue with IIS 5 in win2k, but I agree that in windows XP, and especially when using IIS 6, the security is not very transparent. It seems you have to specify things three times over. If you can't get it right, or if you are not comfortable about managing the security, perhaps Apache is a better solution. Its security is more straightforward. We run Apache on windows 2003 server. The advantaves of 2003 server in terms of performance seem to carry across to Apache just fine. But don't give up yet! regards, Jacob -----Original Message----- From: Zachary Stauber To: Jacob Delfos; MAPSERVER-USERS at LISTS.UMN.EDU Sent: 1/15/2005 3:42 AM Subject: RE: [UMN_MAPSERVER-USERS] Windows 2003 Standard IIS 6.0 trouble I have the C:\proj directory, and WebAdmin has rights on that, but I?ll take off the web services extensions for .map and Mapserv.exe. It?s really confusing. I don?t know if I have to set ?scripts and executables? on the directory that contains mapserv.exe, or set it on the directory that contains the HTML site that runs it, or both, or what. And why you have to set up application extensions and web services extensions (and what?s the difference between those anyway) on an executable when you ALREADY set the permissions on its directory to ?scripts and executables? is beyond me. And now Mr. Greenwood says that you also have to give the WebAdmin permission as a user to execute something. IIS is the most convoluted thing I?ve ever seen, and it doesn?t help that there were two different versions in Win2k, and yet more differences between the same version 6.0 on Win2k and Win2.003k, and Mapserv.exe doesn?t work the same on any of them. I?ve gotten it to work on the previous two, but our web server is 2003. :( Anyway, thanks for the enlightenment. -Zack _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jacob Delfos Sent: Thursday, January 13, 2005 7:02 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Windows 2003 Standard IIS 6.0 trouble Zach, You said you configured IIS to run .map files from mapserv executable. This is not correct (AFAIK), because the map file contains information mapserver uses. It is NOT a script being executed by mapserv.exe. Therefore, if the .map file is requested from the server, depending on how it is requested, it might go wrong. IIS 6.0 on Windows 2003 will sometimes throw an inappropriate "page not found" error, if the actual problem is something to do with security. Does your "proj" directory exist? Is it worth checking permissions on that? It might help if you listed the directories you created, and the permissions you set on them. regards, Jacob -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney Sent: 14 January 2005 09:44 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Windows 2003 Standard IIS 6.0 trouble Zach ? IIS doesn?t ?let the file not be found? ? it can?t find it. What is the URL you are using to refer to your MapServer executable? Do you have a virtual directory (if necessary) set up there? If you use the IIS administration tool, can you browse to the mapserv.exe file and find it along the path you expect? What is the URL you are using that triggers that error? And please ALWAYS reply to the entire list?. - Ed ------------------------------------------------------------------------ -------- From: Zachary Stauber [mailto:zstauber at bhinc.com] Sent: Thursday, January 13, 2005 5:09 PM To: Ed McNierney Subject: RE: [UMN_MAPSERVER-USERS] Windows 2003 Standard IIS 6.0 trouble Well, I'm just trying to display the basic Itasca map they offer up on the Mapserver site http://mapserver.gis.umn.edu/dload.html , I get the standard message which tells me nothing I can use to find the source of the problem (the general check engine light of the web server world): I. The page cannot be found The page you are looking for might have been removed, had its name changed, or is temporarily unavailable. ------------------------------------------------------------------------ -------- Please try the following: Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly. If you reached this page by clicking a link, contact the Web site administrator to alert them that the link is incorrectly formatted. Click the Back button to try another link. A. HTTP Error 404 - File or directory not found. Internet Information Services (IIS) ------------------------------------------------------------------------ -------- Technical Information (for support personnel) Go to Microsoft Product Support Services and perform a title search for the words HTTP and 404. ? Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Web Site Setup, Common Administrative Tasks, and About Custom Error Messages. So based on this one would think that the mapserv.exe is in the wrong place or misspelled, but it?s in the exact same place as I have it on a Windows 2000 install that works fine, and the .map and .html files are exact copies of those. So what this error is really telling me is that IIS 6.0 is not letting the mapserv.exe be found or run. -Zack -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Thursday, January 13, 2005 2:56 PM To: Zachary Stauber; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Windows 2003 Standard IIS 6.0 trouble Zack - MapServer works just fine under Windows 2003 Standard and IIS 6.0, and there's plenty of "proof" of that! But you do need to take the time to understand how your new tools work rather than blaming them (or MapServer). You gave us a lot of information in your email (thanks) but you didn't say what didn't work! What is the symptom you're seeing? What are you doing, and what is the (unexpected) result you're getting? - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Zachary L. Stauber Sent: Thursday, January 13, 2005 4:21 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Windows 2003 Standard IIS 6.0 trouble Hi, I'm using Windows 2003 Standard, and I'm trying to get MapServ.exe to work on it. Right now I'm just trying out the Itasca dataset. It's a permissions problem. Does anyone have a vaguely detailed process for setting the permissions or configuring Web Access Extensions or Application Extensions (or whatever hates MapServer so much) so it gets past the top level security junk in IIS 6.0? I have the same version, 4.4.0-beta3 working fine on a Windows XP SP2 machine, with all the files in exactly the same places. The EXE and all DLL's are in C:\InetPub\scripts\MapServer\ the C:\Proj data has a copy of everything it's supposed to, and the Itasca data starts in C:\InetPub\wwwroot\MapServer\NCTCOG\mapserver_demos\workshop Before you ask, I set all the directories mentioned above to give WebAdmin all rights (except full control), I changed all the paths to the correct places in the "index.html" file, which shows the Itasca map fine under Windows XP SP2, and I added a "MapServer" entry to the Web Service Extensions and added every EXE and DLL that it uses with "Allow." I also set the Web Service Extensions to "Allow" "All Unknown CGI Extensions" by default (actually that was set when I got here). I also made the NCTCOG directory in wwwroot a virtual directory and set "read" permission, set execute permissions to "Script and Executables," and created an application extension for ".map" files and set it to the mapserv.exe executable. I also did all this for the C:\InetPub\scripts\Mapserver directory just in case. What else can I do to loosen this thing up? Does anyone actually have it working under Windows 2003 Standard? I haven't found proof of this in over a year of back archives on this mailing list. -Zack Stauber Systems Analyst Bohannan-Huston, Inc. Albuquerque, NM USA From LVN at GISPRO.DK Sun Jan 16 04:12:20 2005 From: LVN at GISPRO.DK (Lars V. Nielsen (GisPro)) Date: Sun, 16 Jan 2005 13:12:20 +0100 Subject: Labels in two renderings of the same map ? Message-ID: I've been asked to generate a map with an insert, i.e. adding a small area with a larger scale in the corner of the map. I've accomplished it by performing two renderings of the same map, the second rendering after setting a smaller width/height and a fixed extent, and using GD2 to merge the two images appropriately. This works perfectly. However, I've sofar been unable to get labels to display in the small insert image. They show up perfectly in the main/large image. I don't turn any layers on/off between the two renderings, and I don't have any label min/max scale settings in place for this labelling layer (which btw. is an OVF layer). I suspect that it's an issue connected with the label cache. I've tried to add LABELCACHE OFF to the labelling layer and remove the commands $map->drawLabelCache() from my code, but it makes no difference at all: the labels only (and always!) appear in the main window. If anyone has come up with a way to control labels in two map renderings, I'll be delighted to know. Best regards/Med venlig hilsen Lars V. Nielsen GisPro, Denmark http://www.gispro.dk/ From LVN at GISPRO.DK Sun Jan 16 06:59:36 2005 From: LVN at GISPRO.DK (Lars V. Nielsen (GisPro)) Date: Sun, 16 Jan 2005 15:59:36 +0100 Subject: Labels in two renderings of the same map (php/MapScript) ? Message-ID: Hi Bobb, (I forgot to mention that I'm using MapScript 4.3 on php 4.3.7, on W2K(3)) What I basically do is this : $map->setextent(...); $img1 = $map->draw(); // original large map $map->drawLabelCache($img1); // MAYBE $url1 = $img1->saveWebImage(); $map->setextent(...); $img2 = $map->draw(); // smaller insert map $map->drawLabelCache($img2); // MAYBE $url2 = $img2->saveWebImage(); I tried your suggestion, adding a second labelling layer, separating the two by min/max scale settings, but the labels are still missing in the insert image. And yes, I've checked the original output, the labels are not present in the second image. My first thought, is that the label cache is cleared during the first rendering, making it impossible to add labels to a second rendering. My second thought is that the settings to control label caching are disfunctional. I've tried using LABELCACHE OFF + remove drawLabelCache(), but it seems I can't de-select label caching, and thus can't circumvent the original cache clearing problem. Is Mapserver even capable of such dual rendering at all ? I'm still interested in any thoughts, also from the developers of Mapserver, on the issue. And if anyone has another idea of how to generate an insert maps (note: using two map files are unacceptable and unpractical) with the same map content, I'm very interested. Best regards/Med venlig hilsen Lars V. Nielsen GisPro, Denmark http://www.gispro.dk/ ----- Original Message ----- From: "Blammo" To: "Lars V. Nielsen (GisPro)" Sent: Sunday, January 16, 2005 1:25 PM Subject: Re: Labels in two renderings of the same map ? Lars V. Nielsen (GisPro) wrote: >I've been asked to generate a map with an insert, i.e. adding a small area with a larger scale in the corner of the map. > >I've accomplished it by performing two renderings of the same map, the second rendering after setting a smaller width/height and a >fixed extent, and using GD2 to merge the two images appropriately. This works perfectly. > >However, I've sofar been unable to get labels to display in the small insert image. They show up perfectly in the main/large image. > >I don't turn any layers on/off between the two renderings, and I don't have any label min/max scale settings in place for this >labelling layer (which btw. is an OVF layer). > >I suspect that it's an issue connected with the label cache. I've tried to add LABELCACHE OFF to the labelling layer and remove the >commands $map->drawLabelCache() from my code, but it makes no difference at all: the labels only (and always!) appear in the main >window. > >If anyone has come up with a way to control labels in two map renderings, I'll be delighted to know. > > It sounds like you are making to seperate calls to MapServer. Did you try running them through by hand to see if they both get labeled. I've noticed on occassion that the smaller images sometimes don't label based on the settings in the Mapfile, you may need a seperate layer definiton for the smaller area with different label settings. bobb >Best regards/Med venlig hilsen >Lars V. Nielsen >GisPro, Denmark >http://www.gispro.dk/ > > > > From LVN at GISPRO.DK Sun Jan 16 07:35:53 2005 From: LVN at GISPRO.DK (Lars V. Nielsen (GisPro)) Date: Sun, 16 Jan 2005 16:35:53 +0100 Subject: Fw: Labels in two renderings of the same map - DOH! Message-ID: Sorry about that. I withdraw all "allegations" - some intense debugging reveals it works as expected. It seems it was yet another "50 centimeter (20 inches?) error". DOH indeed ! :-( Best regards/Med venlig hilsen Lars V. Nielsen GisPro, Denmark http://www.gispro.dk/ ----- Original Message ----- From: "Lars V. Nielsen (GisPro)" To: Sent: Sunday, January 16, 2005 3:59 PM Subject: Re: Labels in two renderings of the same map (php/MapScript) ? Hi Bobb, (I forgot to mention that I'm using MapScript 4.3 on php 4.3.7, on W2K(3)) What I basically do is this : $map->setextent(...); $img1 = $map->draw(); // original large map $map->drawLabelCache($img1); // MAYBE $url1 = $img1->saveWebImage(); $map->setextent(...); $img2 = $map->draw(); // smaller insert map $map->drawLabelCache($img2); // MAYBE $url2 = $img2->saveWebImage(); I tried your suggestion, adding a second labelling layer, separating the two by min/max scale settings, but the labels are still missing in the insert image. And yes, I've checked the original output, the labels are not present in the second image. My first thought, is that the label cache is cleared during the first rendering, making it impossible to add labels to a second rendering. My second thought is that the settings to control label caching are disfunctional. I've tried using LABELCACHE OFF + remove drawLabelCache(), but it seems I can't de-select label caching, and thus can't circumvent the original cache clearing problem. Is Mapserver even capable of such dual rendering at all ? I'm still interested in any thoughts, also from the developers of Mapserver, on the issue. And if anyone has another idea of how to generate an insert maps (note: using two map files are unacceptable and unpractical) with the same map content, I'm very interested. Best regards/Med venlig hilsen Lars V. Nielsen GisPro, Denmark http://www.gispro.dk/ ----- Original Message ----- From: "Blammo" To: "Lars V. Nielsen (GisPro)" Sent: Sunday, January 16, 2005 1:25 PM Subject: Re: Labels in two renderings of the same map ? Lars V. Nielsen (GisPro) wrote: >I've been asked to generate a map with an insert, i.e. adding a small area with a larger scale in the corner of the map. > >I've accomplished it by performing two renderings of the same map, the second rendering after setting a smaller width/height and a >fixed extent, and using GD2 to merge the two images appropriately. This works perfectly. > >However, I've sofar been unable to get labels to display in the small insert image. They show up perfectly in the main/large image. > >I don't turn any layers on/off between the two renderings, and I don't have any label min/max scale settings in place for this >labelling layer (which btw. is an OVF layer). > >I suspect that it's an issue connected with the label cache. I've tried to add LABELCACHE OFF to the labelling layer and remove the >commands $map->drawLabelCache() from my code, but it makes no difference at all: the labels only (and always!) appear in the main >window. > >If anyone has come up with a way to control labels in two map renderings, I'll be delighted to know. > > It sounds like you are making to seperate calls to MapServer. Did you try running them through by hand to see if they both get labeled. I've noticed on occassion that the smaller images sometimes don't label based on the settings in the Mapfile, you may need a seperate layer definiton for the smaller area with different label settings. bobb >Best regards/Med venlig hilsen >Lars V. Nielsen >GisPro, Denmark >http://www.gispro.dk/ > > > > From rstoyle at COMCAST.NET Sun Jan 16 08:51:37 2005 From: rstoyle at COMCAST.NET (RTS) Date: Sun, 16 Jan 2005 10:51:37 -0600 Subject: Inline feature symbol properties Message-ID: If I wanted to overlay 3 different color circles on a map using the CGI interface (as inline features), do I need to add each to a different layer or can I assign a different class to each inline feature within the same layer? Rick From siki at AGT.BME.HU Sun Jan 16 12:06:34 2005 From: siki at AGT.BME.HU (Siki Zoltan) Date: Sun, 16 Jan 2005 19:06:34 -0100 Subject: Labels in two renderings of the same map ? {Scanned} {Scanned} In-Reply-To: <002c01c4fbc4$a5fdc510$c801a8c0@odin> Message-ID: Hi, Do you use SYMBOLSCALE option for your labels? (e.g. Do you have scaleable labels?) If so, than I think there is a minimal label size for mapserver to render. It is no sense to render labels of 2 pixels. Bye Zoltan On Sun, 16 Jan 2005, Lars V. Nielsen (GisPro) wrote: > I've been asked to generate a map with an insert, i.e. adding a small area with a larger scale in the corner of the map. > > I've accomplished it by performing two renderings of the same map, the second rendering after setting a smaller width/height and a > fixed extent, and using GD2 to merge the two images appropriately. This works perfectly. > > However, I've sofar been unable to get labels to display in the small insert image. They show up perfectly in the main/large image. > > I don't turn any layers on/off between the two renderings, and I don't have any label min/max scale settings in place for this > labelling layer (which btw. is an OVF layer). > > I suspect that it's an issue connected with the label cache. I've tried to add LABELCACHE OFF to the labelling layer and remove the > commands $map->drawLabelCache() from my code, but it makes no difference at all: the labels only (and always!) appear in the main > window. > > If anyone has come up with a way to control labels in two map renderings, I'll be delighted to know. > > Best regards/Med venlig hilsen > Lars V. Nielsen > GisPro, Denmark > http://www.gispro.dk/ > From bdb at EBI.AC.UK Sun Jan 16 11:13:57 2005 From: bdb at EBI.AC.UK (Bernard de Bono) Date: Sun, 16 Jan 2005 13:13:57 -0600 Subject: A total beginner's question Message-ID: Dear All, Having absolutely no experience with GIS, I was encouraged to read about mapserver's connectivity with MySQL and Perl, and have just installed the latest source code, and look forward to testing the server. Is there a simple guide available that does not assume any GIS background? I still need some basic questions answered, such as: 1) Is map data (i.e. maps of countries) freely available? Is that a separate download? 2) Is the impression that Mapserver uses MySQL to store data correct? What type of information is stored on MySQL, and why was there no reference to MySQL accounts during compilation? 3) MapScript: is there documentation for it? Has it been downloaded with the server source package? Any pointers as to how to get up to speed with Mapserver would be most appreciated. Regards, Bernard From jbarong at HOTMAIL.COM Sun Jan 16 12:40:01 2005 From: jbarong at HOTMAIL.COM (Juan Baron) Date: Sun, 16 Jan 2005 14:40:01 -0600 Subject: Display JPEG and TIF Message-ID: I have installed the following: 1)freetype 2)zlib 3)libpng 4)jpegv6 5)gd 6)proj 7)curl 8)tiff 9)geotiff 10)pdf 11)gdal 12)libungif 13)ming 14)libiconv 15)mapserver I install mapserver in the following way: ./configure --with-proj --with-ogr --with-gdal --with-postgis --with-ming - -with-wfs --with-wmsclient make When I execute "./mapserv -v", the result is: MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF SUPPORTS=FREETYPE INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE but when I am trying to show some images jpeg or tif using a layer raster, it leaves me the following error: For the jpeg image: drawJPEG(): Unable to access file. Only grayscale JPEG images are supported. For the tif image: Image handling error. Only colormapped and grayscale images are supported. Why?? From mapserver_konf at CENTRUM.SK Sun Jan 16 12:44:37 2005 From: mapserver_konf at CENTRUM.SK (Ing.Peter Misovic) Date: Sun, 16 Jan 2005 21:44:37 +0100 Subject: Reading Shapefile DBF attributes? In-Reply-To: <41E7C923.7090708@tamu.edu> Message-ID: Hello Gerry, Friday, January 14, 2005, 2:29:07 PM, you wrote: > I'm sure this is an easy one. > I need to get the attributes of the shapefile from the dbf in a readable > form. > I'm going thru the archives and docs, so I may find it and render all > the excess bandwidth for naught, but I thought I'd try to optimize the > time usage, and ask the collective consciousness. > TIA, gerry > -- > Gerry Creager -- gerry.creager at tamu.edu > Texas Mesonet -- AATLT, Texas A&M University > Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 > Page: 979.228.0173 > Office: 903A Eller Bldg, TAMU, College Station, TX 77843 Hallo, you can use libdbf package (f.e http://fr2.rpmfind.net/linux/rpm2html/search.php?query=dbfadd&submit=Search+...&system=&arch=) there you can use : /usr/bin/dbfadd /usr/bin/dbfcreat /usr/bin/dbfdel /usr/bin/dbfget /usr/bin/dbflst /usr/bin/dbfndx /usr/bin/dbfpack /usr/bin/dbftmpl From woodbri at SWOODBRIDGE.COM Sun Jan 16 13:06:40 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sun, 16 Jan 2005 16:06:40 -0500 Subject: A total beginner's question In-Reply-To: Message-ID: Bernard de Bono wrote: > Dear All, > > Having absolutely no experience with GIS, I was encouraged to read about > mapserver's connectivity with MySQL and Perl, and have just installed the > latest source code, and look forward to testing the server. > > Is there a simple guide available that does not assume any GIS background? I > still need some basic questions answered, such as: > > 1) Is map data (i.e. maps of countries) freely available? Is that a separate > download? There is lots of data freely available, check out sites like freegis.org, www.esri.com, google for "shapefile download" > 2) Is the impression that Mapserver uses MySQL to store data correct? What > type of information is stored on MySQL, and why was there no reference to > MySQL accounts during compilation? While Mapserver has some connection to MySQL, it is not the most mature, but a lot of people are using Perl or PHP to store data in MySQL and to render it via mapscript. Mapserver supports lots of data formats, it supports lots of raster and vector formats. My preference is vector data and I use shapefiles, Topozone.com uses both raster and vector but is predominately raster. It all depends on what you want to do. > 3) MapScript: is there documentation for it? Has it been downloaded with the > server source package? there is lots of documentation on the mapserver website, you probably need to know that there are different flavors of mapscript like PHP, Perl, Python, Java to name a few. > Any pointers as to how to get up to speed with Mapserver would be most > appreciated. The learning curve is a little steep, but the community with help you through it. Most people start with the demo application and then try to change that to use their own data that they have downloaded from somewhere. There is also a wiki that has a lot of examples of mapscript and other howtos, but it was getting spammed and has been locked, so it may be getting a little stale over time. One thing on list edicate, please remember to reply all so messages go back to the list. There are a lot of people that can help, and can learn from your questions and the respective answers. -Steve W. From siki at AGT.BME.HU Sun Jan 16 15:18:30 2005 From: siki at AGT.BME.HU (Siki Zoltan) Date: Sun, 16 Jan 2005 22:18:30 -0100 Subject: Display JPEG and TIF {Scanned} In-Reply-To: Message-ID: Hi, To display truecolor tiff or jpeg you must have INPUT=GDAL. There must be some trouble with your gdal installation. I see the --with-gdal in your configure but no INPUT=GDAL in the mapserv -v. Try to configure and make mapserv again and check all the massages, you had better to turn off mapserv native tiff support --without-tif. Bye Zoltan On Sun, 16 Jan 2005, Juan Baron wrote: > I have installed the following: > > 1)freetype > 2)zlib > 3)libpng > 4)jpegv6 > 5)gd > 6)proj > 7)curl > 8)tiff > 9)geotiff > 10)pdf > 11)gdal > 12)libungif > 13)ming > 14)libiconv > 15)mapserver > > I install mapserver in the following way: > > ./configure --with-proj --with-ogr --with-gdal --with-postgis --with-ming - > -with-wfs --with-wmsclient > > make > > > When I execute "./mapserv -v", the result is: > > MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=PDF SUPPORTS=FREETYPE INPUT=TIFF INPUT=EPPL7 INPUT=JPEG > INPUT=SHAPEFILE > > but when I am trying to show some images jpeg or tif using a layer raster, > it leaves me the following error: > > For the jpeg image: drawJPEG(): Unable to access file. Only grayscale > JPEG images are supported. > > For the tif image: Image handling error. Only colormapped and grayscale > images are supported. > > Why?? > From tylermitchell at SHAW.CA Sun Jan 16 13:10:41 2005 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Sun, 16 Jan 2005 13:10:41 -0800 Subject: A total beginner's question In-Reply-To: Message-ID: > Having absolutely no experience with GIS, I was encouraged to read about > mapserver's connectivity with MySQL and Perl, and have just installed the > latest source code, and look forward to testing the server. Welcome aboard. I'm not a MySQL user and have barely used Perl MapScript, but this would be a more advanced solution for a beginner. > Is there a simple guide available that does not assume any GIS background? > I still need some basic questions answered, such as: > > 1) Is map data (i.e. maps of countries) freely available? Is that a > separate download? You will probably find a lot of options. You should probably start with trying to find some "shape files" - that is a common GIS file format. > 2) Is the impression that Mapserver uses MySQL to store data correct? What > type of information is stored on MySQL, and why was there no reference to > MySQL accounts during compilation? MySQL is only one option, and you will have to do some special compile/set up steps to get it working. I can't speak to the specifics myself though. > 3) MapScript: is there documentation for it? Has it been downloaded with > the server source package? Yes it is part of the source package in mapserverxxx/mapscript/perl has the perl stuff in it. > Any pointers as to how to get up to speed with Mapserver would be most > appreciated. I'm writing a book - hope it will help :) Otherwise, keep in touch with the list and we'll get you running. If you can use IRC/chat go to irc.freenode.net and join #mapserver. Usually some helpful folks there. Tyler From gis at UNDPHAIS.ORG.NP Sun Jan 16 20:44:51 2005 From: gis at UNDPHAIS.ORG.NP (Sandeep Bashyal) Date: Mon, 17 Jan 2005 10:29:51 +0545 Subject: Need Help Displaying Info from DBFs In-Reply-To: <556A5038-6657-11D9-A805-00039341C4F8@liveprocess.com> Message-ID: On Fri, 14 Jan 2005 13:08:46 -0500, Michael Elepano wrote: > Hey: > > I've been using MapServer for about a month now and have gotten > relatively far with it. But now I've hit a brick wall. > > The problem I'm having is showing info from DBFs on my map of the US. > I've got two DBFs (one with all the US counties and one with data-- say > occurences of avalanches-- for each of those county). I'm trying to > color code each county according to occurences of avalanches. > > Each DBF has a column called FIPS. The avalanche DBF has a column > called COUNT that is the basis for my colors. I can use EXPRESSION to > single out any column in my county DBF, but I can't seem to reach my > avalanche DBF. > > I'm assuming I'll need to do a JOIN. My attempt follows below. Any > advice would be appreciated. > > Michael > > ###################### > ## my attempt at an avalanche layer > ###################### > LAYER > NAME "layerAvalanche" > TYPE POLYGON > STATUS ON > DATA "counties.dbf" > PROJECTION > "proj=latlong" > "ellps=GRS80" > "datum=NAD83" > END > > CLASS > NAME "classGreen" > OUTLINECOLOR 255 0 255 > COLOR 0 255 0 > EXPRESSION ([COUNT] > 5) > END > > JOIN > NAME "joinAvalanche" > TABLE "C:\my\path\to\avalanches.dbf" > FROM "FIPS" > TO "FIPS" > END > END > > > Michael, As far as I understand, you want to set up classes using data from a dbf file that is not associated with the shapefile. The JOIN thing can only be used for querying and only when you are using templates for displaying query results. If you want to color code the counties using external data the simplest way is to append the fileds in from the avalanches.dbf to counties.dbf. If, for any reason this cannot be done, then you can generate classes and expressions dynamically with mapscript. Here is the php mapscript code I use to classify districts into "$no_classes" number of classes (using arcview-style quantile method) using data from an external mysql database (the external database has a field called DIST_ID that associates with the shapefile): //run sql query $sql = "SELECT DIST_ID, DIST_NAME, ".$databasefield." FROM DISTRICTS_".$databasetable.$filter_where; $result = mysql_query($sql, $connection); // assign sql results into arrays while ($row = mysql_fetch_assoc($result)){ $ID[]=$row["DIST_ID"]; $DIST_NAME[]=$row["DIST_NAME"]; ${$databasefield}[]=$row[$databasefield]; } //end while //sort the query results if (${$databasefield}){array_multisort(${$databasefield}, SORT_ASC, SORT_NUMERIC, $DIST_NAME, SORT_STRING, $ID, SORT_STRING);} mysql_free_result($result); mysql_close($connection); //count the number of records in the array $no_records=count($ID); if ($no_classes > $no_records){$no_classes = $no_records;} if ($no_classes > 0){ //number of class items $no_classitems = ceil($no_records / $no_classes); //split the arrays into chunks $class_ID=array_chunk($ID,$no_classitems,true); $class_value=array_chunk(${$databasefield},$no_classitems,true); } // end if $no_classes > 0 //set classitem $layer_districts->set("classitem","OBJID"); //draw classes $i=0; while ($i < $no_classes){ $i++; //class expressions $class_array = $class_ID[$i-1]; if ($class_array){ $expression[$i]="/".implode("|",$class_array)."/"; //legend key labels $class_legend_key1=$class_value[$i-1][($i-1)*$no_classitems]; $class_legend_key2=$class_value[$i-1][($i-1)*$no_classitems + $no_classitems -1]; if ($class_legend_key2 == NULL){$class_legend_key2 = $class_value[$i-1][$no_records-1];} $class_legend_key[$i]=$class_legend_key1." to ".$class_legend_key2; //draw layers $class[$i] = ms_newClassObj($layer_districts); $class[$i]->set("name",$class_legend_key[$i]); $class[$i]->setexpression($expression[$i]); $class_style[$i] = ms_newStyleObj ($class[$i]); $class_style[$i]->outlinecolor->setRGB(-1,-1,-1); $class_style[$i]->color->setRGB($color_r[$i-1],$color_g[$i-1],$color_b[$i-1]); } // end if $class_array }//end draw classes -- Sandeep Bashyal -- National GIS Officer UNCU, United Nations Nepal UN House, Pulchowk, G.P.O. Box 107, Kathmandu, Nepal Tel: (+977) 01 5543957, (+977) 01 5554304 Cell:(+977) 9841270854, Fax: (+977) 01 5528059 ------------------------------------------------------ mailto:gis at undphais.org.np mailto:sandeep at earthmapping.com http://www.un.org.np From berend.veldkamp at ARIS.NL Mon Jan 17 00:39:54 2005 From: berend.veldkamp at ARIS.NL (Berend Veldkamp) Date: Mon, 17 Jan 2005 09:39:54 +0100 Subject: FeatureId in SLD filter Message-ID: When using an SLD filter, does MapServer support the FeatureId Filter? And if so, how? What I want to do is filter features based upon one field ("DSTRGEB_ID"), for example: (DSTRGEB_ID = Dsg_000001) OR (DSTRGEB_ID=Dsg_000002) OR (DSTRGEB_ID = Dsg_000003) OR (DSTRGEB_ID = Dsg_000005) I could problably OR these together in a PropertyIsEqual filter, but something tells me there must be an easier way. Thanks, Berend -- ____________________________ Berend Veldkamp - ARIS http://www.aris.nl/ ____________________________ From fsozzi at INTERCAD.CH Mon Jan 17 02:55:02 2005 From: fsozzi at INTERCAD.CH (Francesco Sozzi) Date: Mon, 17 Jan 2005 11:55:02 +0100 Subject: QueryByRect Problems on shp point Message-ID: Hi all, I am having problems on querying a shapfile layer of type point. The code I use is: $qresult = $layer->queryByRect($rectDrawnedMapCoord); where $rectDrawnedMapCoord is a rectangle with map coordinates that contains several points. The problem is that I get an empty result. Here you are some notes: - I have problems only on shapefile layers of type point; queryByRect works properly on shapefile polygon and line - I an Oracle Spatial copy (exatly the same point objects and data) an it works: I get right resul on queryByRect Anybody have any suggestions? Best regards Francesco PS: Here you are an extract of mapfile: # ------------------------------------------------------------------------ # ic_manufatti (ORACLE LAYER: IT WORKS!!) # ------------------------------------------------------------------------ LAYER NAME "ic_manufatti" TYPE POINT CONNECTIONTYPE oraclespatial CONNECTION "ti_manufatti/avs at franz" DATA "GEOM FROM (SELECT fid, dist, geom FROM ic_kuba_manufatti WHERE geom IS NOT NULL) USING UNIQUE fid" STATUS OFF METADATA ic.layer.key "FID" ic.layer.key.type "numeric" ic.form.key "FID" END CLASS NAME "Default" COLOR 0 0 0 SYMBOL "circle" SIZE 10 TEMPLATE "templates/default.html" END END # ------------------------------------------------------------------------ # ic_manufattishp (SHAPEFILE LAYER: IT DOES NOT WORK!!) # ------------------------------------------------------------------------ LAYER NAME "ic_manufattishp" TYPE POINT DATA "manufattishp" STATUS DEFAULT METADATA ic.layer.key "NUMERO" ic.layer.key.type "string" ic.form.key "NUMERO" END CLASS NAME "Default" COLOR 125 0 0 SYMBOL "circle" SIZE 10 TEMPLATE "templates/default.html" END END From webmaster at 2ID-DESIGN.COM Mon Jan 17 03:58:26 2005 From: webmaster at 2ID-DESIGN.COM (Stephane Nicolas) Date: Mon, 17 Jan 2005 05:58:26 -0600 Subject: Creating word file Message-ID: Hi, I am trying to produce a world file (.tfw) for my tif image for use with php/map server. The image is x pixels by y pixels. I am unsure what the values would be for the first and 4 value. ? 0 0 ? 90 -180 All the help on the internet has not made it clear to me. I will appreciate a "non-mathematic" help....not that clever! s. From mapserver at GISMAP.CH Mon Jan 17 04:23:47 2005 From: mapserver at GISMAP.CH (Roman Meier) Date: Mon, 17 Jan 2005 13:23:47 +0100 Subject: Ugly dashed lines Message-ID: Hi list I'm not very happy with my dashed lines. I use the following symbol for dashed lines: SYMBOL NAME 'dashed' TYPE ELLIPSE POINTS 1 1 END FILLED true STYLE 10 10 END END I use that symbol together with symbolscale. When I zoom in I get quite ugly results. I attached an example. Is there a solution to get nicer results? The spaces between the lines should remain. Thanks for help. Roman -------------- next part -------------- A non-text attachment was scrubbed... Name: ugly.gif Type: image/gif Size: 2587 bytes Desc: not available URL: From astrid.emde at CCGIS.DE Mon Jan 17 04:41:12 2005 From: astrid.emde at CCGIS.DE (Astrid Emde) Date: Mon, 17 Jan 2005 13:41:12 +0100 Subject: Creating word file In-Reply-To: Message-ID: The discription of the wld-file you can find under: http://mapserver.gis.umn.edu/doc44/raster-howto.html Georeference with World Files I hope that will help --------------- Georeference with World Files World files are a simple mechanism for associating georeferencing (world coordinates) information with raster files. ESRI was the first company to propagate the use of world files, and they often used with TIFF instead of embedding georeferencing information in the file itself. The world file contents look like the following. The first coefficient is the X pixel size. The second and third are rotational/shear coefficients (and should normally be 0.0). The fourth is the Y pixel size, normally negative indicating that Y decreases as you move down from the top left origin. The final two values are the X and Y location of the center of the top left pixel. This example is for an image with a 2m x 2m pixel size, and a top left origin at (356800E, 5767999N). 2 0.0000000000 0.0000000000 -2 356800.00 5767999.00 The name of the world file is based on the file it relates to. For instance, the world file for aerial.tif might be aerial.tfw. Conventions vary for appropriate endings, but with MapServer the extension .wld is always OK for world files. ----------------- Greetings Astrid ------------------------------------- Astrid Emde CCGIS GbR Siemensstra?e 8 53121 Bonn Germany ---------------------------------- astrid.emde at ccgis.de www.ccgis.de ---------------------------------- Tel.: ++49 (0) 228 90826 19 Fax.: ++49 (0) 228 90826 11 Zentrale: ++49 (0) 228 90826 0 ---------------------------------- Stephane Nicolas wrote: > Hi, > > > I am trying to produce a world file (.tfw) for my tif image for use with > php/map server. The image is x pixels by y pixels. I am unsure what the > values would be for the first and 4 value. > > ? > > 0 > > 0 > > ? > > 90 > > -180 > > All the help on the internet has not made it clear to me. > > I will appreciate a "non-mathematic" help....not that clever! > > s. > From Max.Boecke at INIT.DE Mon Jan 17 04:56:22 2005 From: Max.Boecke at INIT.DE (=?iso-8859-1?Q?B=F6cke=2C_Max_=28init=29?=) Date: Mon, 17 Jan 2005 13:56:22 +0100 Subject: AW: [UMN_MAPSERVER-USERS] Creating word file Message-ID: Hi, line 1: x-dimension of a pixel in mapunits line 2: Rotation line 3: Rotation line 4: NEGATIV Wert of Y-dimension of a pixel in mapunits line 5: x-coordinate of the center of the upper left pixel line 6: y-coordinate of the center of the upper left pixel Sorry my english is not so good. Regards Max -----Urspr?ngliche Nachricht----- Von: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Im Auftrag von Stephane Nicolas Gesendet: Montag, 17. Januar 2005 12:58 An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: [UMN_MAPSERVER-USERS] Creating word file Hi, I am trying to produce a world file (.tfw) for my tif image for use with php/map server. The image is x pixels by y pixels. I am unsure what the values would be for the first and 4 value. ? 0 0 ? 90 -180 All the help on the internet has not made it clear to me. I will appreciate a "non-mathematic" help....not that clever! s. From mbrown at AL1CALL.COM Mon Jan 17 07:08:45 2005 From: mbrown at AL1CALL.COM (Matt Brown) Date: Mon, 17 Jan 2005 09:08:45 -0600 Subject: Creating word file In-Reply-To: Message-ID: Stephane, It is pretty hard to describe this in a "non-mathematic" way, but... the first value is the dimension of the pixel in the X dimension - the fourth is the Y dimension. if you don't know these, you must at least know the geographic extent of the image to calculate them. Assuming that you know the extent of the image - you can subtract the minimum extent from the maximum, and divide the difference by the width/height in pixels to get the dimension of that pixel in your map units. ie,(sorry about the math) (maxXorY - minXorY)/imagewidth = pixeldim you have to note also that the last two values correspond to the x and y coordinates of the top left pixel. Matt -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Stephane Nicolas Sent: Monday, January 17, 2005 5:58 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Creating word file Hi, I am trying to produce a world file (.tfw) for my tif image for use with php/map server. The image is x pixels by y pixels. I am unsure what the values would be for the first and 4 value. ? 0 0 ? 90 -180 All the help on the internet has not made it clear to me. I will appreciate a "non-mathematic" help....not that clever! s. From siki at AGT.BME.HU Mon Jan 17 09:57:06 2005 From: siki at AGT.BME.HU (Siki Zoltan) Date: Mon, 17 Jan 2005 16:57:06 -0100 Subject: Creating word file {Scanned} In-Reply-To: Message-ID: Hi, The six rows of a world file: pixel size in x direction in the world 0 0 -1 * pixel size in y direction in the world x for the upper left corner y for the upper left corner Bye Zoltan On Mon, 17 Jan 2005, Stephane Nicolas wrote: > Hi, > > > I am trying to produce a world file (.tfw) for my tif image for use with > php/map server. The image is x pixels by y pixels. I am unsure what the > values would be for the first and 4 value. > > ? > > 0 > > 0 > > ? > > 90 > > -180 > > All the help on the internet has not made it clear to me. > > I will appreciate a "non-mathematic" help....not that clever! > > s. > From Richard_D_Levine at RAYTHEON.COM Mon Jan 17 07:29:01 2005 From: Richard_D_Levine at RAYTHEON.COM (Rick Levine) Date: Mon, 17 Jan 2005 10:29:01 -0500 Subject: Newbie: Required components for full install Message-ID: Hi, I tried to get GDAL/ORG from remotesensing.org (following the link from the MapServer documentation page) and the site appears down. I found gdal.maptools.org is the main site from the list archives, and remotesensing.org is a mirror. Seemed odd. A real question: I found this component list, but it came from a newbie. I'm trying to install MapServer with all possible features so I can check it out. Is this list correct and complete? I read the Unix docs on using all of the "configure --with-", but I wanted to install everything I need first. I'll be using PostGIS/PostgreSQL, but I've already got all of that (including Proj). > 1)freetype > 2)zlib > 3)libpng > 4)jpegv6 > 5)gd > 6)proj > 7)curl > 8)tiff > 9)geotiff > 10)pdf > 11)gdal > 12)libungif > 13)ming > 14)libiconv Thanks, Rick From fwarmerdam at GMAIL.COM Mon Jan 17 08:42:24 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Mon, 17 Jan 2005 11:42:24 -0500 Subject: Display JPEG and TIF In-Reply-To: Message-ID: > I install mapserver in the following way: > > ./configure --with-proj --with-ogr --with-gdal --with-postgis --with-ming - > -with-wfs --with-wmsclient > > make > > When I execute "./mapserv -v", the result is: > > MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=PDF SUPPORTS=FREETYPE INPUT=TIFF INPUT=EPPL7 INPUT=JPEG > INPUT=SHAPEFILE > > but when I am trying to show some images jpeg or tif using a layer raster, > it leaves me the following error: > > For the jpeg image: drawJPEG(): Unable to access file. Only grayscale > JPEG images are supported. > > For the tif image: Image handling error. Only colormapped and grayscale > images are supported. > > Why?? Juan, For one reason or another the mapserver you ran does not include GDAL support. Either you weren't really running the version you just built, or the configuration of GDAL support did not work. I would suggest you check into both issues. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From jdport at VERITIME.COM Mon Jan 17 10:41:43 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Mon, 17 Jan 2005 13:41:43 -0500 Subject: Query by point Message-ID: I am trying to use layer->queryByPoint in my php mapscript file, and I'm getting an error "Warning: [MapServer Error]: msSHPOpenFile(): No (NULL) filename provided". I'm not exactly sure what this error means.... but i'm not very clear on how to use queryByPoint. I have a map with several points marked with a small red or blue circle gif. I want to make it so that a user clicking on those points brings up a page with information about that point. As I understand it, using the queryByPoint function looks at that point for a "shape" in a class that has a template value set... I'm assuming that the string stored in "template" is supposed to be a URL or a file name but i'm not entirely sure. Can anybody offer any insight? Thanks, Jeff From john at HULST.NAME Mon Jan 17 11:00:09 2005 From: john at HULST.NAME (John Hulst) Date: Mon, 17 Jan 2005 20:00:09 +0100 Subject: Installation of Mapserver Message-ID: An HTML attachment was scrubbed... URL: From jdport at VERITIME.COM Mon Jan 17 11:12:57 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Mon, 17 Jan 2005 14:12:57 -0500 Subject: Installation of Mapserver Message-ID: I would first of all look in your apache/logs directory and find out what the "internal error" is. -Jeff ----- Original Message ----- From: John Hulst To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Monday, January 17, 2005 2:00 PM Subject: [UMN_MAPSERVER-USERS] Installation of Mapserver Hello all, I have tried to install mapserver on my Windows PC. I have Apachy running on it and I used the description that I found in the release. I use :PROJ_LIB and have updated the path to the DLL's. Then at point 9 it goes wrong: 9. Test MapServer by typing " http://localhost/cgi-bin/mapserv.exe" on you browser. It should return the following message: "No query information to decode. QUERY_STRING is set, but empty." Instead of the "no query message" I get the reply: "Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, john at hulst.name and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. ------------------------------------------------------------------------------ Apache/2.0.52 (Win32) Server at 83.179.14.148 Port 80 " Anybody seen something simular? Since I am a newby on Apachy as well as Mapserver I hope that you can help me. Thanks and regards, John Hulst ------------------------------------- Installation Instructions: 1. Unzip the package to a directory. For example, "C:\MapServer". 2. View the README-Binaries.txt from "C:\Mapserver" for information on support compiled with this package. 3. View README for credits and license information. 4. View HISTORY.TXT for additional information on MapServer 4.4.1 5. Copy mapserv.exe from "C:\MapServer\bin" to your web server's cgi-bin directory. (In Microsoft's IIS, this is either in "C:\Inetpub\Scripts" or "C:\Inetpub\wwwroot\cgi-bin". In Apache v1.3.x, this is usually in "C:\Program Files\Apache Group\Apache\cgi-bin".) 6. Copy directory "Proj" to "C:\". (You should end up with a directory "C:\Proj".) Alternatively, leave the "proj" subdirectory where it is and add a variable called PROJ_LIB to your system environment and enter the path to your "proj\nad" subdirectory as the value (example: system variable: PROJ_LIB, value: C:\MapServer\Proj\NAD). 7. Copy the dynamic link libraries (the files with .dll extensions) to your system directory--this is typically "C:\Windows\system" on Windows 98 or "C:\Windows\system32" on Windows 2000 and XP. Alternatively, you can leave the dlls where they are and update your system PATH to include the path to your "bin" directory (i.e. "C:\MapServer\bin"). 8. Restart your web server. 9. Test MapServer by typing " http://localhost/cgi-bin/mapserv.exe" on you browser. It should return the following message: "No query information to decode. QUERY_STRING is set, but empty." -------------- next part -------------- An HTML attachment was scrubbed... URL: From w.blanken at GEON.NL Mon Jan 17 11:23:17 2005 From: w.blanken at GEON.NL (Wim Blanken) Date: Mon, 17 Jan 2005 20:23:17 +0100 Subject: Installation of Mapserver Message-ID: Hello John, Please try mapserv -v on the command line, windows will show you which dll it is missing. Then copy this dll to windows/system32 Regards, Wim Blanken The Netherlands ----- Original Message ----- From: John Hulst To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Monday, January 17, 2005 8:00 PM Subject: [UMN_MAPSERVER-USERS] Installation of Mapserver Hello all, I have tried to install mapserver on my Windows PC. I have Apachy running on it and I used the description that I found in the release. I use :PROJ_LIB and have updated the path to the DLL's. Then at point 9 it goes wrong: 9. Test MapServer by typing " http://localhost/cgi-bin/mapserv.exe" on you browser. It should return the following message: "No query information to decode. QUERY_STRING is set, but empty." Instead of the "no query message" I get the reply: "Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, john at hulst.name and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. ------------------------------------------------------------------------------ Apache/2.0.52 (Win32) Server at 83.179.14.148 Port 80 " Anybody seen something simular? Since I am a newby on Apachy as well as Mapserver I hope that you can help me. Thanks and regards, John Hulst ------------------------------------- Installation Instructions: 1. Unzip the package to a directory. For example, "C:\MapServer". 2. View the README-Binaries.txt from "C:\Mapserver" for information on support compiled with this package. 3. View README for credits and license information. 4. View HISTORY.TXT for additional information on MapServer 4.4.1 5. Copy mapserv.exe from "C:\MapServer\bin" to your web server's cgi-bin directory. (In Microsoft's IIS, this is either in "C:\Inetpub\Scripts" or "C:\Inetpub\wwwroot\cgi-bin". In Apache v1.3.x, this is usually in "C:\Program Files\Apache Group\Apache\cgi-bin".) 6. Copy directory "Proj" to "C:\". (You should end up with a directory "C:\Proj".) Alternatively, leave the "proj" subdirectory where it is and add a variable called PROJ_LIB to your system environment and enter the path to your "proj\nad" subdirectory as the value (example: system variable: PROJ_LIB, value: C:\MapServer\Proj\NAD). 7. Copy the dynamic link libraries (the files with .dll extensions) to your system directory--this is typically "C:\Windows\system" on Windows 98 or "C:\Windows\system32" on Windows 2000 and XP. Alternatively, you can leave the dlls where they are and update your system PATH to include the path to your "bin" directory (i.e. "C:\MapServer\bin"). 8. Restart your web server. 9. Test MapServer by typing " http://localhost/cgi-bin/mapserv.exe" on you browser. It should return the following message: "No query information to decode. QUERY_STRING is set, but empty." -------------- next part -------------- An HTML attachment was scrubbed... URL: From w.blanken at GEON.NL Mon Jan 17 11:38:58 2005 From: w.blanken at GEON.NL (Wim Blanken) Date: Mon, 17 Jan 2005 20:38:58 +0100 Subject: New Mapserver Site Message-ID: Hello Mapserver users, Just to let you know, we have a new site here in the Netherlands where we collect information about the waddensea region. The whole site has been made using open source software (o.i. typo3 and mapserver). Part of this site is a map-module. It is still in dutch but the planning is to create a multilangual site. If offers a browse and search interface to maps, texts and on the fly charting of measurements. We created the module using the itasca workshop as an example (because i love the speed and simplicity of CGI/dbox!). The url is: http://www.waddeninzicht.nl/gis Kind regards, Wim Blanken The Netherlands -------------- next part -------------- An HTML attachment was scrubbed... URL: From ealpert at DIGITALGLOBE.COM Mon Jan 17 11:50:53 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Mon, 17 Jan 2005 12:50:53 -0700 Subject: New Mapserver Site Message-ID: Great work! glad to see there's another dbox fan out there :) -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Wim Blanken Sent: Monday, January 17, 2005 12:39 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] New Mapserver Site Hello Mapserver users, Just to let you know, we have a new site here in the Netherlands where we collect information about the waddensea region. The whole site has been made using open source software (o.i. typo3 and mapserver). Part of this site is a map-module. It is still in dutch but the planning is to create a multilangual site. If offers a browse and search interface to maps, texts and on the fly charting of measurements. We created the module using the itasca workshop as an example (because i love the speed and simplicity of CGI/dbox!). The url is: http://www.waddeninzicht.nl/gis Kind regards, Wim Blanken The Netherlands -------------- next part -------------- An HTML attachment was scrubbed... URL: From Richard_D_Levine at RAYTHEON.COM Mon Jan 17 12:09:06 2005 From: Richard_D_Levine at RAYTHEON.COM (Rick Levine) Date: Mon, 17 Jan 2005 15:09:06 -0500 Subject: Closed Polygon Message-ID: Can anyone point me to a URL that defines a close polygon as one in which the last point equals the first? I'm in the middle of a raging debate (tempest in a teapot) of what a closed polygon is. I'm getting polygons in XML from other systems where the XML schema defines polygons as closed. Some of the other systems disagree about what this means. BTW: I Googled and looked at opengis.org, but it seems no one bothers to define something so obvious. Thanks, and sorry for being a little off topic. Rick CONFIDENTIALITY: This email contains no useful information. Ignore it. From eric at GOMOOS.ORG Mon Jan 17 13:32:24 2005 From: eric at GOMOOS.ORG (Eric Bridger) Date: Mon, 17 Jan 2005 16:32:24 -0500 Subject: Query by point In-Reply-To: <001b01c4fcc4$30b7fbd0$1bf2fbd0@solo> Message-ID: At 01:41 PM 01/17/2005 -0500, Jeff Portwine wrote: >I am trying to use layer->queryByPoint in my php mapscript file, and I'm >getting an error >"Warning: [MapServer Error]: msSHPOpenFile(): No (NULL) filename provided". >I'm not exactly sure what this error means.... but i'm not very clear on how >to use queryByPoint. > >I have a map with several points marked with a small red or blue circle gif. >I want to make it so that a user clicking on those points brings up a page >with information about that point. As I understand it, using the >queryByPoint function looks at that point for a "shape" in a class that has >a template value set... I'm assuming that the string stored in "template" >is supposed to be a URL or a file name but i'm not entirely sure. The error message looks like Mapserver is assuming your layer is a shape file layer but that the DATA section of your layer has no shape file name associated with it. What type of layer is it you're attempting to query? The TEMPLATE should be an html template file which the CGI mapserv would use to display the query results, but in mapscript it just serves to indicate that the layer should be querable and can be any abritrary string, e.g. TEMPLATE "ttt" Eric From jdport at VERITIME.COM Mon Jan 17 14:02:39 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Mon, 17 Jan 2005 17:02:39 -0500 Subject: Query by point Message-ID: > The error message looks like Mapserver is assuming your layer is a shape > file layer but that > the DATA section of your layer has no shape file > name associated with it. What type of > layer is it you're attempting to query? I'm trying to query a points layer. I read a bunch of long/lat coordinates from a database and have it plot dots on my map at those locations. I want to be able to click on those and bring up information about those points, or ideally link to another web page. I thought I could just query that point and if they were clicking on one of the "points" i had plotted bring up that information, otherwise just output "no location found" or something. I guess I really don't understand how to do a query, and the documentation on it just doesn't make anything clear at all... and I am having trouble finding any examples of this sort of thing. The GD_Demo does something like this but I can't seem to find the code that does it, or I may just not be looking for the right thing and missing it. Thanks, Jeff From assefa at DMSOLUTIONS.CA Mon Jan 17 14:25:27 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Mon, 17 Jan 2005 17:25:27 -0500 Subject: Query by point In-Reply-To: <003e01c4fce0$42d27860$1bf2fbd0@solo> Message-ID: If you are using php/mapscript, you could look at the gmap application where there is an simple example on how to extract queries from a layer (look into function GMapDumpQueryResults) : http://dl.maptools.org/dl/gmap-ms40.zip Later, Jeff Portwine wrote: >> The error message looks like Mapserver is assuming your layer is a shape >> file layer but that > the DATA section of your layer has no shape file >> name associated with it. What type of >> layer is it you're attempting to query? > > > I'm trying to query a points layer. I read a bunch of long/lat > coordinates from a database and have it plot dots on my map at those > locations. I want to be able to click on those and bring up information > about those points, or ideally link to another web page. I thought I > could just query that point and if they were clicking on one of the > "points" > i had plotted bring up that information, otherwise just output "no location > found" or something. > > I guess I really don't understand how to do a query, and the documentation > on it just doesn't make anything clear at all... and I am having trouble > finding any examples of this sort of thing. The GD_Demo does something > like this but I can't seem to find the code that does it, or I may just not > be looking for the right thing and missing it. > > Thanks, > Jeff > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From kenlord at GMAIL.COM Mon Jan 17 15:03:43 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Mon, 17 Jan 2005 15:03:43 -0800 Subject: Closed Polygon In-Reply-To: Message-ID: I knew that BCIT course was good for something .. bango! ... http://www.esri.com/library/whitepapers/pdfs/shapefile.pdf Page 12 defines what a polygon is according to the ESRI Shapefile format. "A polygon consists of one or more rings. A ring is a connected sequence of four or more points that form a closed, non-self-intersecting loop." Think of it this way, the simplest polygon is a triangle, but it takes the four points to describe a polygon in a shapefile, therefore the start and end point must be the same. Page 13 lists some important points about polygons, one of which explicitly states that the start and end points must be the same. Cheers, Ken Lord Vancouver BC On Mon, 17 Jan 2005 15:09:06 -0500, Rick Levine wrote: > Can anyone point me to a URL that defines a close polygon as one in which > the last point equals the first? > > I'm in the middle of a raging debate (tempest in a teapot) of what a closed > polygon is. I'm getting polygons in XML from other systems where the XML > schema defines polygons as closed. Some of the other systems disagree > about what this means. > > BTW: I Googled and looked at opengis.org, but it seems no one bothers to > define something so obvious. > > Thanks, and sorry for being a little off topic. > > Rick > > CONFIDENTIALITY: This email contains no useful information. Ignore it. From JWiley at CITY.PARKSVILLE.BC.CA Mon Jan 17 15:44:34 2005 From: JWiley at CITY.PARKSVILLE.BC.CA (John Wiley) Date: Mon, 17 Jan 2005 15:44:34 -0800 Subject: looking for tile index example for tif's using Mapserver 4.02 Message-ID: Hi We need an example of how to set up a basic mapserver viewer that will display images using the tile index mentioned on page 3 of howto for RASTERS. I have been successful creating a basic application which shows one "test" image as in my map file below... please fine at the start of the layers it is called 'Ptest": Thank you for any help John .... # # Start of map file # NAME Pville STATUS ON SIZE 600 600 EXTENT 401500 5461000 410000 5466600 UNITS METERS FONTSET "C:\Inetpub\wwwroot\Parksville\fonts\fonts.list" 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 Pville_header.html TEMPLATE Pville.html FOOTER Pville_footer.html MINSCALE 1000 #MAXSCALE 155000 MAXSCALE 40000 IMAGEPATH "set in Pville_init.html" IMAGEURL "set in Pville_init.html" METADATA WMS_TITLE "UMN MapServer Parksville BC" WMS_ABSTRACT "This is the UMN MapServer application for the City of Parksville located on Vancouver Island." WMS_ACCESSCONSTRAINTS none # change this value to match your setup WMS_ONLINERESOURCE "http://localhost/Parksville/Pville_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.gif EXTENT 401500 5461000 410000 5466600 SIZE 120 120 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END # # Start of legend # LEGEND KEYSIZE 12 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE tiny END STYLE 1 SIZE 80 2 COLOR 0 0 0 UNITS METERS INTERVALS 1 TRANSPARENT FALSE STATUS EMBED POSITION LR END # # Start of symbol definitions (we're only using a few) # SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END # Rem March9,04 # Start of layer definitions # LAYER NAME Ptest TYPE RASTER STATUS OFF DATA test01NAD83.tif PROCESSING "BANDS=1,2,3" OFFSITE 71 74 65 END #LAYER LAYER NAME Pparks TYPE POLYGON STATUS OFF DATA P83parks LABELITEM "NAME" LABELMAXSCALE 5000 CLASS NAME Parks COLOR 40 195 48 TEMPLATE "Parks.html" LABEL MINFEATURESIZE 40 MINDISTANCE 100 BUFFER 10 ANGLE AUTO POSITION AUTO SIZE MEDIUM COLOR 0 0 0 END #LABEL END #CLASS HEADER "Parks_header.html" FOOTER "Parks_footer.html" END #LAYER LAYER NAME Pwatercourse TYPE LINE STATUS OFF DATA P83watercourse CLASS NAME Watercourse COLOR 49 117 185 END #CLASS END #LAYER LAYER NAME Pwatflow TYPE POLYGON STATUS DEFAULT DATA P83watflow CLASS NAME Pwatflow COLOR 49 37 185 END #CLASS END #LAYER LAYER NAME Ppoints TYPE POINT DATA P83points STATUS DEFAULT LABELITEM "NAME" LABELMAXSCALE 2000 TOLERANCE 10 TOLERANCEUNITS PIXELS CLASS NAME 'Places' TEMPLATE "Points.html" STYLE COLOR 128 255 164 SYMBOL 'circle' SIZE 7 END #STYLE LABEL MINFEATURESIZE 10 MINDISTANCE 20 BUFFER 5 ANGLE AUTO POSITION AUTO SIZE SMALL COLOR 128 255 164 END #LABEL END #CLASS HEADER "Points_header.html" FOOTER "Points_footer.html" END #LAYER LAYER NAME Proads TYPE LINE DATA P83roads STATUS DEFAULT MINSCALE 15000 LABELITEM "ROADNAME" LABELMAXSCALE 80000 CLASS NAME Roads COLOR 0 0 0 SIZE 20 LABEL TYPE TRUETYPE FONT arial MINFEATURESIZE 20 MINDISTANCE 100 BUFFER 10 ANGLE AUTO POSITION AUTO SIZE 6 COLOR 0 0 0 ANTIALIAS TRUE END #LABEL END #CLASS END #LAYER LAYER NAME Proadshide TYPE LINE DATA P83roads STATUS DEFAULT MAXSCALE 15000 LABELITEM "ROADNAME" CLASS NAME Roads #COLOR 255 255 255 SIZE 20 LABEL TYPE TRUETYPE FONT arial MINFEATURESIZE 20 MINDISTANCE 150 BUFFER 10 ANGLE AUTO POSITION AUTO SIZE 6 COLOR 0 0 0 ANTIALIAS TRUE END #LABEL END #CLASS END #LAYER LAYER NAME Pcad TYPE POLYGON STATUS DEFAULT MAXSCALE 20000 DATA P83cad_Intersect LABELITEM "CHOUSE" LABELMAXSCALE 2000 CLASS NAME Lots TEMPLATE "Cad.html" OUTLINECOLOR 200 200 200 LABEL MINFEATURESIZE 10 MINDISTANCE 10 BUFFER 5 ANGLE AUTO POSITION AUTO SIZE MEDIUM COLOR 0 0 0 END #LABEL END #CLASS HEADER "Cad_header.html" FOOTER "Cad_footer.html" END #LAYER LAYER NAME Pzoning TYPE POLYGON STATUS OFF MAXSCALE 30000 DATA P83zoning LABELITEM "Z" LABELMAXSCALE 20000 CLASS NAME Zoning OUTLINECOLOR 255 0 0 LABEL MINFEATURESIZE 10 MINDISTANCE 10 BUFFER 5 ANGLE AUTO POSITION AUTO SIZE LARGE COLOR 255 0 0 END #LABEL END #CLASS END #LAYER LAYER NAME Pwater TYPE LINE STATUS OFF MAXSCALE 15000 TOLERANCE 10 TOLERANCEUNITS PIXELS DATA P83water CLASS NAME Waterworks TEMPLATE "Waterworks.html" COLOR 0 0 255 END #CLASS HEADER "Waterworks_header.html" FOOTER "Waterworks_footer.html" END #LAYER LAYER NAME Psanitary TYPE LINE STATUS OFF MAXSCALE 15000 TOLERANCE 10 TOLERANCEUNITS PIXELS DATA P83sanitary CLASS NAME Sanitary TEMPLATE 'Sanitary.html' COLOR 204 102 0 END #CLASS HEADER 'Sanitary_header.html' FOOTER 'Sanitary_footer.html' END #LAYER LAYER NAME Pstorm TYPE LINE STATUS OFF MAXSCALE 15000 TOLERANCE 10 TOLERANCEUNITS PIXELS DATA P83storm CLASS NAME Storm TEMPLATE "Storm.html" COLOR 0 255 0 END #CLASS HEADER "Storm_header.html" FOOTER "Storm_footer.html" END #LAYER LAYER NAME Ptrails TYPE LINE STATUS OFF MAXSCALE 20000 DATA P83trails CLASS NAME Trails COLOR 180 100 40 END #CLASS END #LAYER LAYER NAME Pbuildings TYPE LINE STATUS OFF MAXSCALE 20000 DATA P83buildings CLASS NAME Buildings COLOR 255 175 175 END #CLASS END #LAYER LAYER NAME Pboundary TYPE LINE STATUS DEFAULT DATA P83boundary CLASS NAME Boundary COLOR 255 0 255 END #CLASS END #LAYER END # Map File John Wiley, C.Tech. GIS Technologist City of Parksville, BC Direct 250 954 4696 Fax 250 248 6140 -------------- next part -------------- An HTML attachment was scrubbed... URL: From tonyb at BUNDABERG.QLD.GOV.AU Mon Jan 17 16:11:55 2005 From: tonyb at BUNDABERG.QLD.GOV.AU (Tony Baylis) Date: Mon, 17 Jan 2005 18:11:55 -0600 Subject: Compilation Error on 64 bit Fedora Core 3 Message-ID: We are trying to upgrade our Mapserver app from 3.6.6 to the latest on a new 64 bit machine using Fedora Core 3. After trying to install from .src.rpm and encountering issues related to 64bit, I have started again using .tar.gz files for all packages except those that can be installed or updated using yum, ie devel packages etc. The following ./configure command was used and succeeded: ./configure --with-jpeg --with-php=/usr/include/php/main --with-php-regex-dir=/usr/src/redhat/BUILD/php-4.3.10/build-cgi/regex --with-gdal --with-png --with-wmsclient --with-libwww --without-tiff --with-geos --with-postgis --with-freetype --enable-force-freetype1 --enable-runpath BUT compilation (make -d) fails giving the following final output: Finished prerequisites of target file `maptemplate.o'. Must remake target `maptemplate.o'. gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_GDAL -DUSE_GEOS -DUSE_ICONV -DUSE_PHP_REGEX -I/usr/src/redhat/BUILD/php-4.3.10/build-cgi/regex/.. -DUSE_POSTGIS -I/usr/include -I/usr/local/include -I/usr/include -I maptemplate.c -o maptemplate.o Putting child 0x00547bd0 (maptemplate.o) PID 5464 on the chain. Live child 0x00547bd0 (maptemplate.o) PID 5464 gcc: no input files Got a SIGCHLD; 1 unreaped children. Reaping losing child 0x00547bd0 PID 5464 make: *** [maptemplate.o] Error 1 Removing child 0x00547bd0 PID 5464 from chain. Is this a link problem or am I way off the mark? Any assistance would be greatly appreciated. Tony www.bundaberg.qld.gov.au From gerry.creager at TAMU.EDU Mon Jan 17 16:35:56 2005 From: gerry.creager at TAMU.EDU (Gerry Creager N5JXS) Date: Mon, 17 Jan 2005 18:35:56 -0600 Subject: Compilation Error on 64 bit Fedora Core 3 In-Reply-To: Message-ID: Having fought and lost some significant battles with FC3 and 64-bit Opteron compiles (and SuSE, for that matter!), I'd suggest you consider compiling in 32-bit compatibility mode and see how it performs. You're not likely to see too many benefits on this code from the 64-bit compilers. I can add this to my list of things to investigate over the next week on my Opteron test system, but it's not likely to get to the top of the heap real soon. gerry Tony Baylis wrote: > We are trying to upgrade our Mapserver app from 3.6.6 to the latest on a new > 64 bit machine using Fedora Core 3. > > After trying to install from .src.rpm and encountering issues related to > 64bit, I have started again using .tar.gz files for all packages except > those that can be installed or updated using yum, ie devel packages etc. > > The following ./configure command was used and succeeded: > > ./configure --with-jpeg --with-php=/usr/include/php/main > --with-php-regex-dir=/usr/src/redhat/BUILD/php-4.3.10/build-cgi/regex > --with-gdal --with-png --with-wmsclient --with-libwww --without-tiff > --with-geos --with-postgis --with-freetype --enable-force-freetype1 > --enable-runpath > > BUT compilation (make -d) fails giving the following final output: > > Finished prerequisites of target file `maptemplate.o'. > Must remake target `maptemplate.o'. > gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL > -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_GDAL -DUSE_GEOS > -DUSE_ICONV -DUSE_PHP_REGEX > -I/usr/src/redhat/BUILD/php-4.3.10/build-cgi/regex/.. -DUSE_POSTGIS > -I/usr/include -I/usr/local/include -I/usr/include -I > maptemplate.c -o maptemplate.o > Putting child 0x00547bd0 (maptemplate.o) PID 5464 on the chain. > Live child 0x00547bd0 (maptemplate.o) PID 5464 > gcc: no input files > Got a SIGCHLD; 1 unreaped children. > Reaping losing child 0x00547bd0 PID 5464 > make: *** [maptemplate.o] Error 1 > Removing child 0x00547bd0 PID 5464 from chain. > > Is this a link problem or am I way off the mark? > Any assistance would be greatly appreciated. > > Tony > > www.bundaberg.qld.gov.au -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Page: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From ed at TOPOZONE.COM Mon Jan 17 17:31:23 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 17 Jan 2005 20:31:23 -0500 Subject: Closed Polygon Message-ID: Ken - Yes, that defines what a polygon means - in an ESRI shapefile. Rick, the problem is not "defining" a closed polygon so much as "specifying" one. "Closed" is a little redundant here, since a polygon has to be closed in the sense I think you're using it. If it's not closed, it's a polyline. I think your question is more a matter of agreement over the XML schema used and its interpretation. - Ed Ed McNierney TopoZone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ken Lord Sent: Monday, January 17, 2005 6:04 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Closed Polygon I knew that BCIT course was good for something .. bango! ... http://www.esri.com/library/whitepapers/pdfs/shapefile.pdf Page 12 defines what a polygon is according to the ESRI Shapefile format. "A polygon consists of one or more rings. A ring is a connected sequence of four or more points that form a closed, non-self-intersecting loop." Think of it this way, the simplest polygon is a triangle, but it takes the four points to describe a polygon in a shapefile, therefore the start and end point must be the same. Page 13 lists some important points about polygons, one of which explicitly states that the start and end points must be the same. Cheers, Ken Lord Vancouver BC On Mon, 17 Jan 2005 15:09:06 -0500, Rick Levine wrote: > Can anyone point me to a URL that defines a close polygon as one in which > the last point equals the first? > > I'm in the middle of a raging debate (tempest in a teapot) of what a closed > polygon is. I'm getting polygons in XML from other systems where the XML > schema defines polygons as closed. Some of the other systems disagree > about what this means. > > BTW: I Googled and looked at opengis.org, but it seems no one bothers to > define something so obvious. > > Thanks, and sorry for being a little off topic. > > Rick > > CONFIDENTIALITY: This email contains no useful information. Ignore it. From tonyb at BUNDABERG.QLD.GOV.AU Mon Jan 17 16:42:24 2005 From: tonyb at BUNDABERG.QLD.GOV.AU (Tony Baylis) Date: Tue, 18 Jan 2005 10:42:24 +1000 Subject: Compilation Error on 64 bit Fedora Core 3 In-Reply-To: <41EC59EC.10308@tamu.edu> Message-ID: Thanks Gerry, I am using dual opterons on this machine so will go with your suggestion, although I will keep trying for just a little longer and post a solution if one is found. Tony On Tuesday 18 January 2005 10:35, Gerry Creager N5JXS wrote: > Having fought and lost some significant battles with FC3 and 64-bit > Opteron compiles (and SuSE, for that matter!), I'd suggest you consider > compiling in 32-bit compatibility mode and see how it performs. You're > not likely to see too many benefits on this code from the 64-bit compilers. > > I can add this to my list of things to investigate over the next week on > my Opteron test system, but it's not likely to get to the top of the > heap real soon. > > gerry > > Tony Baylis wrote: > > We are trying to upgrade our Mapserver app from 3.6.6 to the latest on a > > new 64 bit machine using Fedora Core 3. > > > > After trying to install from .src.rpm and encountering issues related to > > 64bit, I have started again using .tar.gz files for all packages except > > those that can be installed or updated using yum, ie devel packages etc. > > > > The following ./configure command was used and succeeded: > > > > ./configure --with-jpeg --with-php=/usr/include/php/main > > --with-php-regex-dir=/usr/src/redhat/BUILD/php-4.3.10/build-cgi/regex > > --with-gdal --with-png --with-wmsclient --with-libwww --without-tiff > > --with-geos --with-postgis --with-freetype --enable-force-freetype1 > > --enable-runpath > > > > BUT compilation (make -d) fails giving the following final output: > > > > Finished prerequisites of target file `maptemplate.o'. > > Must remake target `maptemplate.o'. > > gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL > > -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > > -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_GDAL -DUSE_GEOS > > -DUSE_ICONV -DUSE_PHP_REGEX > > -I/usr/src/redhat/BUILD/php-4.3.10/build-cgi/regex/.. -DUSE_POSTGIS > > -I/usr/include -I/usr/local/include -I/usr/include -I > > maptemplate.c -o maptemplate.o > > Putting child 0x00547bd0 (maptemplate.o) PID 5464 on the chain. > > Live child 0x00547bd0 (maptemplate.o) PID 5464 > > gcc: no input files > > Got a SIGCHLD; 1 unreaped children. > > Reaping losing child 0x00547bd0 PID 5464 > > make: *** [maptemplate.o] Error 1 > > Removing child 0x00547bd0 PID 5464 from chain. > > > > Is this a link problem or am I way off the mark? > > Any assistance would be greatly appreciated. > > > > Tony > > > > www.bundaberg.qld.gov.au > > -- > Gerry Creager -- gerry.creager at tamu.edu > Texas Mesonet -- AATLT, Texas A&M University > Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 > Page: 979.228.0173 > Office: 903A Eller Bldg, TAMU, College Station, TX 77843 -- Anthony Baylis GIS Officer Bundaberg City Council ph 07 4153 9926 fax 07 4153 9238 e tonyb at bundaberg.qld.gov.au web www.bundaberg.qld.gov.au From jdenovan at GEOREFERENCEONLINE.COM Mon Jan 17 17:36:45 2005 From: jdenovan at GEOREFERENCEONLINE.COM (Janice Denovan) Date: Mon, 17 Jan 2005 19:36:45 -0600 Subject: DBF-to-mySQL JOIN: 3 CASES Message-ID: Thanks for your help Frank. I will preprocess the data for now and maybe upgrade to a spatial database later. How do the spatial RDBMS products compare in your view ? Thanks again, Janice Vancouver, BC From fwarmerdam at GMAIL.COM Mon Jan 17 21:45:35 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Tue, 18 Jan 2005 00:45:35 -0500 Subject: DBF-to-mySQL JOIN: 3 CASES In-Reply-To: Message-ID: On Mon, 17 Jan 2005 19:36:45 -0600, Janice Denovan wrote: > Thanks for your help Frank. I will preprocess the data for now and maybe > upgrade to a spatial database later. How do the spatial RDBMS products > compare in your view ? Janice, I don't have particularly deep experience on the spatial RDBMS'es but I will say if you don't have any strong pre-commitment to another one, PostGIS on Postgres is likely to do pretty much all you need with good performance at a very low (ie free) price. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From janeks.kamerovskis at SILVA.LV Tue Jan 18 00:02:25 2005 From: janeks.kamerovskis at SILVA.LV (Janeks Kamerovskis) Date: Tue, 18 Jan 2005 10:02:25 +0200 Subject: Is it possible to use ArcExplorer 2.0 as client for maserver? Message-ID: Probably dummy question... ;-) Janeks From murilo.yoshida at AGX.COM.BR Tue Jan 18 03:08:58 2005 From: murilo.yoshida at AGX.COM.BR (Murilo Lacerda Yoshida) Date: Tue, 18 Jan 2005 09:08:58 -0200 Subject: RES: [UMN_MAPSERVER-USERS] Closed Polygon In-Reply-To: <4BF377919225F449BB097CB76FFE9BC80FCA54@ptolemy.topozone.com> Message-ID: Hi all, I have a doubt about polygons... Let me explain.. In my application, I have to divide a area into several squares. Sometimes some squares have a bizarre shape. It sis happen this time. A have a square that is actually 2 polygons, one in the top left and the other on the low right. There is a way to create a polygon that represents this? Thanks, Murilo -----Mensagem original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Em nome de Ed McNierney Enviada em: segunda-feira, 17 de janeiro de 2005 23:31 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] Closed Polygon Ken - Yes, that defines what a polygon means - in an ESRI shapefile. Rick, the problem is not "defining" a closed polygon so much as "specifying" one. "Closed" is a little redundant here, since a polygon has to be closed in the sense I think you're using it. If it's not closed, it's a polyline. I think your question is more a matter of agreement over the XML schema used and its interpretation. - Ed Ed McNierney TopoZone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ken Lord Sent: Monday, January 17, 2005 6:04 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Closed Polygon I knew that BCIT course was good for something .. bango! ... http://www.esri.com/library/whitepapers/pdfs/shapefile.pdf Page 12 defines what a polygon is according to the ESRI Shapefile format. "A polygon consists of one or more rings. A ring is a connected sequence of four or more points that form a closed, non-self-intersecting loop." Think of it this way, the simplest polygon is a triangle, but it takes the four points to describe a polygon in a shapefile, therefore the start and end point must be the same. Page 13 lists some important points about polygons, one of which explicitly states that the start and end points must be the same. Cheers, Ken Lord Vancouver BC On Mon, 17 Jan 2005 15:09:06 -0500, Rick Levine wrote: > Can anyone point me to a URL that defines a close polygon as one in which > the last point equals the first? > > I'm in the middle of a raging debate (tempest in a teapot) of what a closed > polygon is. I'm getting polygons in XML from other systems where the XML > schema defines polygons as closed. Some of the other systems disagree > about what this means. > > BTW: I Googled and looked at opengis.org, but it seems no one bothers to > define something so obvious. > > Thanks, and sorry for being a little off topic. > > Rick > > CONFIDENTIALITY: This email contains no useful information. Ignore it. From arnulf.christl at CCGIS.DE Tue Jan 18 03:23:34 2005 From: arnulf.christl at CCGIS.DE (Arnulf Christl) Date: Tue, 18 Jan 2005 12:23:34 +0100 Subject: Oracle DATA problem as WFS In-Reply-To: <1105528995.41e508a3a7233@www.univali.br> Message-ID: Fernando Simon wrote: > Hi, > I believe that the problem is with Mapserver version, I don't know > if the 4.2 and older work, only 4.4 and newer. > If you are using the 4.4 version you need to define the "unique > column" in your data string. Like: DATA "GEOM FROM (SELECT GEO_COORD_ > AS GEOM, GMNR AS ITEM_GEMARKUNG, FLNR AS ITEM_FLUR, FSNR AS > ITEM_FLSTCK, FUNR AS ITEM_NENNER, QUELLE AS QUELLE FROM > FLO.FLO_AL125_AGGREGA_VW) USING UNIQUE "" SRID 82027". > Where the "" is your a numeric column that store the > unique identifier for the rows in your table (usually the primary > key). > Thanks. Hi, works fine now, your suggestion was correct. We have done all of what you said before, still didn't work. It took us some time to figure out what the problem really was. It was all our fault, we missed a trailing underscore behind the field name. We were looking for "GEO_ID" and should have been looking for "GEO_ID_". Thats a nasty thing to find out... UMN MapServer 4.1.1 works fine as WFS with Oracle 9. It does so with OGR and oraclespatial connection, the second is a lot faster. Best regards & thanx again, Arnulf. -- ------------------------ Arnulf B. Christl ------------------------ http://www.ccgis.org http://www.mapbender.org ------------------------ From mercutio at POBOX.COM Tue Jan 18 03:31:25 2005 From: mercutio at POBOX.COM (Aaron Craig) Date: Tue, 18 Jan 2005 12:31:25 +0100 Subject: Querying a layer in Perl Message-ID: I had some code working that performed a query on a layer in a recent pre 4.4 version of mapserver. I've dusted it off and stuck it into a project I'm working on, and lo and behold, it doesn't work! I'm sure I'm missing something simple, but can't find it. Any input is appreciated. Here's a script that demonstrates the problem. The coordinates of the point I'm querying must work, as I've lifted them directly from my Postgis database. I open() the layer and set its status to ON, though I'm not sure that is necessary. I've also played with the buffer parameter, but since I'm sending exactly the right point in, I don't think that should make any difference. I've also played with the type parameter, but both MS_SINGLE and MS_MULTIPLE result in no results. Here's the script: ======================================================================= #!/usr/bin/perl use warnings; use strict; use mapscript; $| = 1; my $map = new mapscript::mapObj("test.map"); my $lyr = $map->getLayerByName("museum"); $lyr->open(); $lyr->{status} = $mapscript::MS_ON; my $pnt = mapscript::pointObj->new(); $pnt->{x} = 1536958.9653; $pnt->{y} = 4439455.78984656; my $rst = $lyr->queryByPoint($map, $pnt, $mapscript::MS_MULTIPLE, 0); if($rst == $mapscript::MS_FAILURE) { my $err = mapscript::errorObj->new(); if($err->{code} != 18) { print "Error running query on layer."; exit; } } print "got ".$lyr->getNumResults()." results (expecting 1)\n"; ==================================================================== The relevant layer declaration in the mapfile: ==================================================================== LAYER NAME "museum" TYPE POINT STATUS OFF CONNECTION 'user=postgres dbname=postgis_sardegna' CONNECTIONTYPE POSTGIS DATA 'point_geom from museum' CLASS NAME 'Museums' STYLE SYMBOL "/var/www/mapserver/htdocs/imgs/museum_icon.png" END END END ==================================================================== And here's the result of a select query on my database: select * from museum; id | name | xdb_id | point_geom ----+----------+--------+---------------------------------------------- 1 | museum 1 | | SRID=-1;POINT(1536958.9653 4439455.78984656) (1 row) -- Aaron Craig mercutio at pobox.com =========================================================== Get Firefox! http://www.spreadfirefox.com/?q=affiliates&id=0&t=1 =========================================================== From mercutio at POBOX.COM Tue Jan 18 05:26:15 2005 From: mercutio at POBOX.COM (Aaron Craig) Date: Tue, 18 Jan 2005 14:26:15 +0100 Subject: Querying a layer in Perl In-Reply-To: Message-ID: That's it. Thanks so much. Purvis, Charlton wrote: > Aaron, I believe you need to throw in a > TEMPLATE "ttt" # at least for PHP you do > TOLERANCE [some integer] > TOLERANCEUNITS [METERS, PIXELS, etc.] > -- Aaron Craig mercutio at pobox.com =========================================================== Get Firefox! http://www.spreadfirefox.com/?q=affiliates&id=0&t=1 =========================================================== From lfilak at MEDINACO.ORG Tue Jan 18 05:27:29 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Tue, 18 Jan 2005 08:27:29 -0500 Subject: Querying a layer in Perl Message-ID: I think a template is required on the layer. $lyr->{template} = "bogus.html"; HTH Lowell The following message was sent by Aaron Craig on Tue, 18 Jan 2005 12:31:25 +0100. > I had some code working that performed a query on a layer in a recent > pre 4.4 version of mapserver. > > I've dusted it off and stuck it into a project I'm working on, and lo > and behold, it doesn't work! > > I'm sure I'm missing something simple, but can't find it. > > Any input is appreciated. > > Here's a script that demonstrates the problem. The coordinates of the > point I'm querying must work, as I've lifted them directly from my > Postgis database. I open() the layer and set its status to ON, though > I'm not sure that is necessary. I've also played with the buffer > parameter, but since I'm sending exactly the right point in, I don't > think that should make any difference. I've also played with the type > parameter, but both MS_SINGLE and MS_MULTIPLE result in no results. > > > Here's the script: > ======================================================================= > #!/usr/bin/perl > > use warnings; > use strict; > use mapscript; > > $| = 1; > > my $map = new mapscript::mapObj("test.map"); > my $lyr = $map->getLayerByName("museum"); > $lyr->open(); > $lyr->{status} = $mapscript::MS_ON; > > my $pnt = mapscript::pointObj->new(); > $pnt->{x} = 1536958.9653; > $pnt->{y} = 4439455.78984656; > > my $rst = $lyr->queryByPoint($map, $pnt, $mapscript::MS_MULTIPLE, 0); > if($rst == $mapscript::MS_FAILURE) > { > my $err = mapscript::errorObj->new(); > > if($err->{code} != 18) > { > print "Error running query on layer."; > exit; > } > } > > print "got ".$lyr->getNumResults()." results (expecting 1)\n"; > ==================================================================== > > The relevant layer declaration in the mapfile: > ==================================================================== > > LAYER > NAME "museum" > TYPE POINT > STATUS OFF > > CONNECTION 'user=postgres dbname=postgis_sardegna' > CONNECTIONTYPE POSTGIS > DATA 'point_geom from museum' > > CLASS > NAME 'Museums' > STYLE > SYMBOL "/var/www/mapserver/htdocs/imgs/museum_icon.png" > END > END > END > ==================================================================== > > And here's the result of a select query on my database: > select * from museum; > id | name | xdb_id | point_geom > ----+----------+--------+---------------------------------------------- > 1 | museum 1 | | SRID=-1;POINT(1536958.9653 4439455.78984656) > (1 row) > > > -- > Aaron Craig > mercutio at pobox.com > > =========================================================== > Get Firefox! > http://www.spreadfirefox.com/?q=affiliates&id=0&t=1 > =========================================================== From Richard_D_Levine at RAYTHEON.COM Tue Jan 18 05:30:21 2005 From: Richard_D_Levine at RAYTHEON.COM (Rick Levine) Date: Tue, 18 Jan 2005 08:30:21 -0500 Subject: Closed Polygon Message-ID: Thanks for the link Ken, I inserted it into the debate. I agree with all of your points completely Ed. My contribution to the debate has been that the terminology *closed polygon* is meaningless, or at least redundant as you said, in the mathematical domain. It only has meaning in the GIS domain, where information systems are exchanging data. In the GIS domain, it means the first point equals the last. Again, as you point out, that's how a polygon is distinguished from a polyline (I thought it was multi-line, but that may just be an Oracle Spatialism.) Thanks guys for the thoughtful responses. Rick CONFIDENTIALITY: Lawyers should not be allowed to use email. Ed McNierney To: MAPSERVER-USERS at LISTS.UMN.EDU Sent by: UMN cc: MapServer Users List Subject: Re: [UMN_MAPSERVER-USERS] Closed Polygon 01/17/2005 08:31 PM Please respond to Ed McNierney Ken - Yes, that defines what a polygon means - in an ESRI shapefile. Rick, the problem is not "defining" a closed polygon so much as "specifying" one. "Closed" is a little redundant here, since a polygon has to be closed in the sense I think you're using it. If it's not closed, it's a polyline. I think your question is more a matter of agreement over the XML schema used and its interpretation. - Ed Ed McNierney TopoZone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ken Lord Sent: Monday, January 17, 2005 6:04 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Closed Polygon I knew that BCIT course was good for something .. bango! ... http://www.esri.com/library/whitepapers/pdfs/shapefile.pdf Page 12 defines what a polygon is according to the ESRI Shapefile format. "A polygon consists of one or more rings. A ring is a connected sequence of four or more points that form a closed, non-self-intersecting loop." Think of it this way, the simplest polygon is a triangle, but it takes the four points to describe a polygon in a shapefile, therefore the start and end point must be the same. Page 13 lists some important points about polygons, one of which explicitly states that the start and end points must be the same. Cheers, Ken Lord Vancouver BC On Mon, 17 Jan 2005 15:09:06 -0500, Rick Levine wrote: > Can anyone point me to a URL that defines a close polygon as one in which > the last point equals the first? > > I'm in the middle of a raging debate (tempest in a teapot) of what a closed > polygon is. I'm getting polygons in XML from other systems where the XML > schema defines polygons as closed. Some of the other systems disagree > about what this means. > > BTW: I Googled and looked at opengis.org, but it seems no one bothers to > define something so obvious. > > Thanks, and sorry for being a little off topic. > > Rick > > CONFIDENTIALITY: This email contains no useful information. Ignore it. From eric at GOMOOS.ORG Tue Jan 18 06:14:31 2005 From: eric at GOMOOS.ORG (Eric Bridger) Date: Tue, 18 Jan 2005 09:14:31 -0500 Subject: Query by point In-Reply-To: <003e01c4fce0$42d27860$1bf2fbd0@solo> Message-ID: On Mon, 2005-01-17 at 17:02, Jeff Portwine wrote: > > The error message looks like Mapserver is assuming your layer is a shape > > file layer but that > the DATA section of your layer has no shape file > > name associated with it. What type of > > layer is it you're attempting to query? > > I'm trying to query a points layer. I read a bunch of long/lat > coordinates from a database and have it plot dots on my map at those > locations. I want to be able to click on those and bring up information > about those points, or ideally link to another web page. I thought I > could just query that point and if they were clicking on one of the "points" > i had plotted bring up that information, otherwise just output "no location > found" or something. > > I guess I really don't understand how to do a query, and the documentation > on it just doesn't make anything clear at all... and I am having trouble > finding any examples of this sort of thing. The GD_Demo does something > like this but I can't seem to find the code that does it, or I may just not > be looking for the right thing and missing it. Jeff, The problem is that mapserver won't query a layer which doesn't have a valid DATA source set. I guess that make sense in most cases. There are two work arounds. 1) Use VirtualSpatialData. I've never used this so can't offer any additional advice. See: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?VirtualSpatialData 2) Trick mapserver by not only drawing your point using: $point->draw() but also add your point as a feature to the map: $layer->addFeature(). Features are queryable and mapserver will return whatever numeric shape index you use when creating the shape. I've never tried this with PHP Mapscript but use if often with Perl Mapscript and I believe it should work with PHP. For the Perl example see: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptExamples42ex1 The above script works with 4.4.1. Eric From mercutio at POBOX.COM Tue Jan 18 06:17:28 2005 From: mercutio at POBOX.COM (Aaron Craig) Date: Tue, 18 Jan 2005 15:17:28 +0100 Subject: Mapscript - Perl - Query - shapeObj Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The values property in the Perl implementation of a shapeObj is a scalar reference. I was hoping that it would be a hashref to my database columns for the record returned by a layerObj->queryByPoint() call, similar to what it looks like PHP does. My output looks like: my $res = $lyr->getResult(0); my $shp = mapscript::shapeObj->new($mapscript::MS_SHAPE_POLYGON); $lyr->getShape($shp, $res->{tileindex}, $res->{shapeindex}); print "values: $shp->{values}\n"; values: _p_p_char=SCALAR(0xa3e7d74) In the end I need to get an id value out of the database from my query. ~ Is there a standard way of doing this? Thanks again for the help. - -- Aaron Craig mercutio at pobox.com =========================================================== Get Firefox! http://www.spreadfirefox.com/?q=affiliates&id=0&t=1 =========================================================== -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFB7Rp4oyEQRcU83p4RAjRvAJ9V6c8FF483ASwWTAbbs8aInmhSIQCffzqn gWOSxptVI9fD4VBsqt4Fp9s= =YAU5 -----END PGP SIGNATURE----- From kristjan at TARKVARASTUUDIO.EE Tue Jan 18 06:34:08 2005 From: kristjan at TARKVARASTUUDIO.EE (Kristjan Annus) Date: Tue, 18 Jan 2005 16:34:08 +0200 Subject: underlined labels Message-ID: Hello! How to get underlined labels for truetype fonts? There are separate font-files for normal,italic and bold fonts, but it seems that underlineing the text is not made this way. thanks Kristjan From cmcguigan at EARTHCOMBER.COM Tue Jan 18 06:58:02 2005 From: cmcguigan at EARTHCOMBER.COM (Colin McGuigan) Date: Tue, 18 Jan 2005 08:58:02 -0600 Subject: Compilation Error on 64 bit Fedora Core 3 In-Reply-To: Message-ID: Tony Baylis wrote: > We are trying to upgrade our Mapserver app from 3.6.6 to the latest on a new > 64 bit machine using Fedora Core 3. > > After trying to install from .src.rpm and encountering issues related to > 64bit, I have started again using .tar.gz files for all packages except > those that can be installed or updated using yum, ie devel packages etc. > > The following ./configure command was used and succeeded: > > ./configure --with-jpeg --with-php=/usr/include/php/main > --with-php-regex-dir=/usr/src/redhat/BUILD/php-4.3.10/build-cgi/regex > --with-gdal --with-png --with-wmsclient --with-libwww --without-tiff > --with-geos --with-postgis --with-freetype --enable-force-freetype1 > --enable-runpath > > BUT compilation (make -d) fails giving the following final output: > > Finished prerequisites of target file `maptemplate.o'. > Must remake target `maptemplate.o'. > gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL > -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_GDAL -DUSE_GEOS > -DUSE_ICONV -DUSE_PHP_REGEX > -I/usr/src/redhat/BUILD/php-4.3.10/build-cgi/regex/.. -DUSE_POSTGIS > -I/usr/include -I/usr/local/include -I/usr/include -I > maptemplate.c -o maptemplate.o > Putting child 0x00547bd0 (maptemplate.o) PID 5464 on the chain. > Live child 0x00547bd0 (maptemplate.o) PID 5464 > gcc: no input files > Got a SIGCHLD; 1 unreaped children. > Reaping losing child 0x00547bd0 PID 5464 > make: *** [maptemplate.o] Error 1 > Removing child 0x00547bd0 PID 5464 from chain. I would check your ./configure again. Specifically, in the gcc compile step, there should be something between the last "-I" and "maptemplate.c". As it is, gcc is thinking that maptemplate.c is to be included, when it's really what should be compiled. I ran into this when I tried --with-proj without specifying a directory after. You'd think the configure script would've noticed, but it didn't. So I would check ./configure --help to see which of those flags requires a path, and then try setting them. --Colin McGuigan From sgillies at FRII.COM Tue Jan 18 07:02:13 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 18 Jan 2005 08:02:13 -0700 Subject: Mapscript - Perl - Query - shapeObj In-Reply-To: Message-ID: On Jan 18, 2005, at 7:17 AM, Aaron Craig wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > The values property in the Perl implementation of a shapeObj is a > scalar > reference. > > I was hoping that it would be a hashref to my database columns for the > record returned by a layerObj->queryByPoint() call, similar to what it > looks like PHP does. > > My output looks like: > > > my $res = $lyr->getResult(0); > my $shp = mapscript::shapeObj->new($mapscript::MS_SHAPE_POLYGON); > $lyr->getShape($shp, $res->{tileindex}, $res->{shapeindex}); > print "values: $shp->{values}\n"; > > values: _p_p_char=SCALAR(0xa3e7d74) > > In the end I need to get an id value out of the database from my query. > ~ Is there a standard way of doing this? > > > Thanks again for the help. > > - -- > Aaron Craig > mercutio at pobox.com > Aaron, Here is the canonical query example (in Python) for version 4.4: layer.query() # queryByRect or *Shape or *Attributes results = layer.getResults() if results: # open layer in preparation of reading shapes layer.open() for i in range(results.numresults): r = results.getResult(i) feature = layer.getFeature(r.shapeindex, r.tileindex) # Iterate over feature attributes for j in range(layer.numitems): att_name = layer.getItem(j) att_val = feature.getValue(j) print att_name, att_val # Close when done layer.close() The PHP mapscript exposes the items and values as arrays, but this is less feasible for the other mapscript modules due to differences in their array implementations. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From bfraser at GEOANALYTIC.COM Tue Jan 18 07:10:05 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Tue, 18 Jan 2005 08:10:05 -0700 Subject: looking for tile index example for tif's using Mapserver 4.02 Message-ID: John, The HowTo you refer to pretty much covers how to set up the tile index: 1. Organize your raster files into directories by coordinate system. 2. Create a tile index shapefile by running gdalindex 3. Create a layer entry in your Mapserver mapfile referencing the tile index shapefile As for the viewer portion (HTML, Java, etc) of the MapServer system, there is nothing special about the tile index layer. It can be turned on and off just like your current raster layer. I'm not sure if the "PROCESSING" directive works with a tile index layer; I've never tried it. Brent Fraser ----- Original Message ----- From: John Wiley To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Monday, January 17, 2005 4:44 PM Subject: [UMN_MAPSERVER-USERS] looking for tile index example for tif's using Mapserver 4.02 Hi We need an example of how to set up a basic mapserver viewer that will display images using the tile index mentioned on page 3 of howto for RASTERS. I have been successful creating a basic application which shows one "test" image as in my map file below... please fine at the start of the layers it is called 'Ptest": Thank you for any help John ... # # Start of map file # NAME Pville STATUS ON SIZE 600 600 EXTENT 401500 5461000 410000 5466600 UNITS METERS FONTSET "C:\Inetpub\wwwroot\Parksville\fonts\fonts.list" 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 Pville_header.html TEMPLATE Pville.html FOOTER Pville_footer.html MINSCALE 1000 #MAXSCALE 155000 MAXSCALE 40000 IMAGEPATH "set in Pville_init.html" IMAGEURL "set in Pville_init.html" METADATA WMS_TITLE "UMN MapServer Parksville BC" WMS_ABSTRACT "This is the UMN MapServer application for the City of Parksville located on Vancouver Island." WMS_ACCESSCONSTRAINTS none # change this value to match your setup WMS_ONLINERESOURCE "http://localhost/Parksville/Pville_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.gif EXTENT 401500 5461000 410000 5466600 SIZE 120 120 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END # # Start of legend # LEGEND KEYSIZE 12 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE tiny END STYLE 1 SIZE 80 2 COLOR 0 0 0 UNITS METERS INTERVALS 1 TRANSPARENT FALSE STATUS EMBED POSITION LR END # # Start of symbol definitions (we're only using a few) # SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END # Rem March9,04 # Start of layer definitions # LAYER NAME Ptest TYPE RASTER STATUS OFF DATA test01NAD83.tif PROCESSING "BANDS=1,2,3" OFFSITE 71 74 65 END #LAYER LAYER NAME Pparks TYPE POLYGON STATUS OFF DATA P83parks LABELITEM "NAME" LABELMAXSCALE 5000 CLASS NAME Parks COLOR 40 195 48 TEMPLATE "Parks.html" LABEL MINFEATURESIZE 40 MINDISTANCE 100 BUFFER 10 ANGLE AUTO POSITION AUTO SIZE MEDIUM COLOR 0 0 0 END #LABEL END #CLASS HEADER "Parks_header.html" FOOTER "Parks_footer.html" END #LAYER LAYER NAME Pwatercourse TYPE LINE STATUS OFF DATA P83watercourse CLASS NAME Watercourse COLOR 49 117 185 END #CLASS END #LAYER LAYER NAME Pwatflow TYPE POLYGON STATUS DEFAULT DATA P83watflow CLASS NAME Pwatflow COLOR 49 37 185 END #CLASS END #LAYER LAYER NAME Ppoints TYPE POINT DATA P83points STATUS DEFAULT LABELITEM "NAME" LABELMAXSCALE 2000 TOLERANCE 10 TOLERANCEUNITS PIXELS CLASS NAME 'Places' TEMPLATE "Points.html" STYLE COLOR 128 255 164 SYMBOL 'circle' SIZE 7 END #STYLE LABEL MINFEATURESIZE 10 MINDISTANCE 20 BUFFER 5 ANGLE AUTO POSITION AUTO SIZE SMALL COLOR 128 255 164 END #LABEL END #CLASS HEADER "Points_header.html" FOOTER "Points_footer.html" END #LAYER LAYER NAME Proads TYPE LINE DATA P83roads STATUS DEFAULT MINSCALE 15000 LABELITEM "ROADNAME" LABELMAXSCALE 80000 CLASS NAME Roads COLOR 0 0 0 SIZE 20 LABEL TYPE TRUETYPE FONT arial MINFEATURESIZE 20 MINDISTANCE 100 BUFFER 10 ANGLE AUTO POSITION AUTO SIZE 6 COLOR 0 0 0 ANTIALIAS TRUE END #LABEL END #CLASS END #LAYER LAYER NAME Proadshide TYPE LINE DATA P83roads STATUS DEFAULT MAXSCALE 15000 LABELITEM "ROADNAME" CLASS NAME Roads #COLOR 255 255 255 SIZE 20 LABEL TYPE TRUETYPE FONT arial MINFEATURESIZE 20 MINDISTANCE 150 BUFFER 10 ANGLE AUTO POSITION AUTO SIZE 6 COLOR 0 0 0 ANTIALIAS TRUE END #LABEL END #CLASS END #LAYER LAYER NAME Pcad TYPE POLYGON STATUS DEFAULT MAXSCALE 20000 DATA P83cad_Intersect LABELITEM "CHOUSE" LABELMAXSCALE 2000 CLASS NAME Lots TEMPLATE "Cad.html" OUTLINECOLOR 200 200 200 LABEL MINFEATURESIZE 10 MINDISTANCE 10 BUFFER 5 ANGLE AUTO POSITION AUTO SIZE MEDIUM COLOR 0 0 0 END #LABEL END #CLASS HEADER "Cad_header.html" FOOTER "Cad_footer.html" END #LAYER LAYER NAME Pzoning TYPE POLYGON STATUS OFF MAXSCALE 30000 DATA P83zoning LABELITEM "Z" LABELMAXSCALE 20000 CLASS NAME Zoning OUTLINECOLOR 255 0 0 LABEL MINFEATURESIZE 10 MINDISTANCE 10 BUFFER 5 ANGLE AUTO POSITION AUTO SIZE LARGE COLOR 255 0 0 END #LABEL END #CLASS END #LAYER LAYER NAME Pwater TYPE LINE STATUS OFF MAXSCALE 15000 TOLERANCE 10 TOLERANCEUNITS PIXELS DATA P83water CLASS NAME Waterworks TEMPLATE "Waterworks.html" COLOR 0 0 255 END #CLASS HEADER "Waterworks_header.html" FOOTER "Waterworks_footer.html" END #LAYER LAYER NAME Psanitary TYPE LINE STATUS OFF MAXSCALE 15000 TOLERANCE 10 TOLERANCEUNITS PIXELS DATA P83sanitary CLASS NAME Sanitary TEMPLATE 'Sanitary.html' COLOR 204 102 0 END #CLASS HEADER 'Sanitary_header.html' FOOTER 'Sanitary_footer.html' END #LAYER LAYER NAME Pstorm TYPE LINE STATUS OFF MAXSCALE 15000 TOLERANCE 10 TOLERANCEUNITS PIXELS DATA P83storm CLASS NAME Storm TEMPLATE "Storm.html" COLOR 0 255 0 END #CLASS HEADER "Storm_header.html" FOOTER "Storm_footer.html" END #LAYER LAYER NAME Ptrails TYPE LINE STATUS OFF MAXSCALE 20000 DATA P83trails CLASS NAME Trails COLOR 180 100 40 END #CLASS END #LAYER LAYER NAME Pbuildings TYPE LINE STATUS OFF MAXSCALE 20000 DATA P83buildings CLASS NAME Buildings COLOR 255 175 175 END #CLASS END #LAYER LAYER NAME Pboundary TYPE LINE STATUS DEFAULT DATA P83boundary CLASS NAME Boundary COLOR 255 0 255 END #CLASS END #LAYER END # Map File John Wiley, C.Tech. GIS Technologist City of Parksville, BC Direct 250 954 4696 Fax 250 248 6140 -------------- next part -------------- An HTML attachment was scrubbed... URL: From kristjan at TARKVARASTUUDIO.EE Tue Jan 18 07:36:32 2005 From: kristjan at TARKVARASTUUDIO.EE (Kristjan Annus) Date: Tue, 18 Jan 2005 17:36:32 +0200 Subject: looking for tile index example for tif's using Mapserver 4.02 In-Reply-To: <015b01c4fd6f$caeddd40$020002c0@SHARK> Message-ID: I can send you a tileindex shape file and map file example if you want it? But you need to create your own tileindex for your own raster files using some software ie. gdaltindex. Kristjan > > > ----- Original Message ----- > *From:* John Wiley > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > > *Sent:* Monday, January 17, 2005 4:44 PM > *Subject:* [UMN_MAPSERVER-USERS] looking for tile index example > for tif's using Mapserver 4.02 > > Hi > We need an example of how to set up a basic mapserver viewer that > will display images using the tile index mentioned on page 3 of > howto for RASTERS. > I have been successful creating a basic application which shows > one "test" image as in my map file below... please fine at the > start of the layers it is called 'Ptest": > > Thank you for any help > > > John > > > > ... > # > # Start of map file > # > NAME Pville > STATUS ON > SIZE 600 600 > EXTENT 401500 5461000 410000 5466600 > UNITS METERS > FONTSET "C:\Inetpub\wwwroot\Parksville\fonts\fonts.list" > 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 Pville_header.html > TEMPLATE Pville.html > FOOTER Pville_footer.html > MINSCALE 1000 > #MAXSCALE 155000 > MAXSCALE 40000 > IMAGEPATH "set in Pville_init.html" > IMAGEURL "set in Pville_init.html" > METADATA > WMS_TITLE "UMN MapServer Parksville BC" > WMS_ABSTRACT "This is the UMN MapServer application for the > City of Parksville located on Vancouver Island." > WMS_ACCESSCONSTRAINTS none > > # change this value to match your setup > WMS_ONLINERESOURCE "http://localhost/Parksville/Pville_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.gif > EXTENT 401500 5461000 410000 5466600 > SIZE 120 120 > STATUS ON > COLOR -1 -1 -1 > OUTLINECOLOR 255 0 0 > END > > # > # Start of legend > # > LEGEND > KEYSIZE 12 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > STATUS ON > END > > # > # Start of scalebar > # > SCALEBAR > IMAGECOLOR 255 255 255 > LABEL > COLOR 0 0 0 > SIZE tiny > END > STYLE 1 > SIZE 80 2 > COLOR 0 0 0 > UNITS METERS > INTERVALS 1 > TRANSPARENT FALSE > STATUS EMBED > POSITION LR > END > > # > # Start of symbol definitions (we're only using a few) > # > SYMBOL > NAME 'circle' > TYPE ELLIPSE > POINTS 1 1 END > FILLED TRUE > END > > # Rem March9,04 > # Start of layer definitions > # > LAYER > NAME Ptest > TYPE RASTER > STATUS OFF > DATA test01NAD83.tif > PROCESSING "BANDS=1,2,3" > OFFSITE 71 74 65 > END #LAYER > > LAYER > NAME Pparks > TYPE POLYGON > STATUS OFF > DATA P83parks > LABELITEM "NAME" > LABELMAXSCALE 5000 > CLASS > NAME Parks > COLOR 40 195 48 > TEMPLATE "Parks.html" > LABEL > MINFEATURESIZE 40 > MINDISTANCE 100 > BUFFER 10 > ANGLE AUTO > POSITION AUTO > SIZE MEDIUM > COLOR 0 0 0 > END #LABEL > END #CLASS > HEADER "Parks_header.html" > FOOTER "Parks_footer.html" > END #LAYER > > LAYER > NAME Pwatercourse > TYPE LINE > STATUS OFF > DATA P83watercourse > CLASS > NAME Watercourse > COLOR 49 117 185 > END #CLASS > END #LAYER > > > LAYER > NAME Pwatflow > TYPE POLYGON > STATUS DEFAULT > DATA P83watflow > CLASS > NAME Pwatflow > COLOR 49 37 185 > END #CLASS > END #LAYER > > > LAYER > NAME Ppoints > TYPE POINT > DATA P83points > STATUS DEFAULT > LABELITEM "NAME" > LABELMAXSCALE 2000 > TOLERANCE 10 > TOLERANCEUNITS PIXELS > CLASS > NAME 'Places' > TEMPLATE "Points.html" > STYLE > COLOR 128 255 164 > SYMBOL 'circle' > SIZE 7 > END #STYLE > LABEL > MINFEATURESIZE 10 > MINDISTANCE 20 > BUFFER 5 > ANGLE AUTO > POSITION AUTO > SIZE SMALL > COLOR 128 255 164 > END #LABEL > END #CLASS > HEADER "Points_header.html" > FOOTER "Points_footer.html" > END #LAYER > > LAYER > NAME Proads > TYPE LINE > DATA P83roads > STATUS DEFAULT > MINSCALE 15000 > LABELITEM "ROADNAME" > LABELMAXSCALE 80000 > CLASS > NAME Roads > COLOR 0 0 0 > SIZE 20 > LABEL > TYPE TRUETYPE > FONT arial > MINFEATURESIZE 20 > MINDISTANCE 100 > BUFFER 10 > ANGLE AUTO > POSITION AUTO > SIZE 6 > COLOR 0 0 0 > ANTIALIAS TRUE > END #LABEL > END #CLASS > END #LAYER > > LAYER > NAME Proadshide > TYPE LINE > DATA P83roads > STATUS DEFAULT > MAXSCALE 15000 > LABELITEM "ROADNAME" > CLASS > NAME Roads > #COLOR 255 255 255 > SIZE 20 > LABEL > TYPE TRUETYPE > FONT arial > MINFEATURESIZE 20 > MINDISTANCE 150 > BUFFER 10 > ANGLE AUTO > POSITION AUTO > SIZE 6 > COLOR 0 0 0 > ANTIALIAS TRUE > END #LABEL > END #CLASS > END #LAYER > > > LAYER > NAME Pcad > TYPE POLYGON > STATUS DEFAULT > MAXSCALE 20000 > DATA P83cad_Intersect > LABELITEM "CHOUSE" > LABELMAXSCALE 2000 > CLASS > NAME Lots > TEMPLATE "Cad.html" > OUTLINECOLOR 200 200 200 > LABEL > MINFEATURESIZE 10 > MINDISTANCE 10 > BUFFER 5 > ANGLE AUTO > POSITION AUTO > SIZE MEDIUM > COLOR 0 0 0 > END #LABEL > END #CLASS > HEADER "Cad_header.html" > FOOTER "Cad_footer.html" > END #LAYER > > LAYER > NAME Pzoning > TYPE POLYGON > STATUS OFF > MAXSCALE 30000 > DATA P83zoning > LABELITEM "Z" > LABELMAXSCALE 20000 > CLASS > NAME Zoning > OUTLINECOLOR 255 0 0 > LABEL > MINFEATURESIZE 10 > MINDISTANCE 10 > BUFFER 5 > ANGLE AUTO > POSITION AUTO > SIZE LARGE > COLOR 255 0 0 > END #LABEL > END #CLASS > END #LAYER > > LAYER > NAME Pwater > TYPE LINE > STATUS OFF > MAXSCALE 15000 > TOLERANCE 10 > TOLERANCEUNITS PIXELS > DATA P83water > CLASS > NAME Waterworks > TEMPLATE "Waterworks.html" > COLOR 0 0 255 > END #CLASS > HEADER "Waterworks_header.html" > FOOTER "Waterworks_footer.html" > END #LAYER > > LAYER > NAME Psanitary > TYPE LINE > STATUS OFF > MAXSCALE 15000 > TOLERANCE 10 > TOLERANCEUNITS PIXELS > DATA P83sanitary > CLASS > NAME Sanitary > TEMPLATE 'Sanitary.html' > COLOR 204 102 0 > END #CLASS > HEADER 'Sanitary_header.html' > FOOTER 'Sanitary_footer.html' > END #LAYER > > LAYER > NAME Pstorm > TYPE LINE > STATUS OFF > MAXSCALE 15000 > TOLERANCE 10 > TOLERANCEUNITS PIXELS > DATA P83storm > CLASS > NAME Storm > TEMPLATE "Storm.html" > COLOR 0 255 0 > END #CLASS > HEADER "Storm_header.html" > FOOTER "Storm_footer.html" > END #LAYER > > LAYER > NAME Ptrails > TYPE LINE > STATUS OFF > MAXSCALE 20000 > DATA P83trails > CLASS > NAME Trails > COLOR 180 100 40 > END #CLASS > END #LAYER > > > LAYER > NAME Pbuildings > TYPE LINE > STATUS OFF > MAXSCALE 20000 > DATA P83buildings > CLASS > NAME Buildings > COLOR 255 175 175 > END #CLASS > END #LAYER > > LAYER > NAME Pboundary > TYPE LINE > STATUS DEFAULT > DATA P83boundary > CLASS > NAME Boundary > COLOR 255 0 255 > END #CLASS > END #LAYER > > > END # Map File > > > John Wiley, C.Tech. > GIS Technologist > City of Parksville, BC > Direct 250 954 4696 > Fax 250 248 6140 > From bfraser at GEOANALYTIC.COM Tue Jan 18 07:59:55 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Tue, 18 Jan 2005 08:59:55 -0700 Subject: Is it possible to use ArcExplorer 2.0 as client for maserver? Message-ID: Janeks, Generally, ESRI's products WILL work with MapServer IF the ESRI application supports the OGIS WMS (for raster data) or WFS (for vector data) specification. Another way to connect Mapserver and ESRI applications is to write a MapServer/ArcIMS wrapper to make a Mapserver look like an ArcIMS server. Some people on this list have done that; it requires server-side scripting, and a knowledge of the ArcIMS protocol and Mapserver CGI or WMS protocols. As for ArcExplorer 2.0, it appears it will connect to ArcIMS so you could try the wrapper approach. ArcExplorer 4.0.1 Java Edition + Interoperability Extension supports WMS, but I'm not sure that's available any more. ESRI has released ArcExplorer 9.0 , but no interoperability extension yet (that I could find). Brent Fraser ----- Original Message ----- From: "Janeks Kamerovskis" To: Sent: Tuesday, January 18, 2005 1:02 AM Subject: [UMN_MAPSERVER-USERS] Is it possible to use ArcExplorer 2.0 as client for maserver? > Probably dummy question... > ;-) > > Janeks From ed at TOPOZONE.COM Tue Jan 18 08:11:34 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 18 Jan 2005 11:11:34 -0500 Subject: Closed Polygon Message-ID: Rick - Not to continue to pick at this nit , but the concept "closed polygon" is by no means restricted to the "GIS domain". It's just a polygon, which might be used in the latest video game renderer. It's really just a specification question - does the format under discussion require polygons to re-specify the first point as the last, or is that specification assumed? If the system is using that "hint" to decide whether the object is an (un-closed) polyline or a (closed) polygon then it's important. If the object itself is flagged as being a polygon or a polyline, then it's redundant but harmless. I wouldn't claim either way is "right", nor is either way the "GIS way", since it's just as relevant to the definition of a polygon in an Adobe Acrobat document describing an advertisement for your new GIS product as it is to the GIS product itself. In the Adobe Acrobat/PostScript world, yet another mechanism (the use of the closepath operator) is used to determine whether a path is closed (i.e like a polygon) or not. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Rick Levine Sent: Tuesday, January 18, 2005 8:30 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Closed Polygon Thanks for the link Ken, I inserted it into the debate. I agree with all of your points completely Ed. My contribution to the debate has been that the terminology *closed polygon* is meaningless, or at least redundant as you said, in the mathematical domain. It only has meaning in the GIS domain, where information systems are exchanging data. In the GIS domain, it means the first point equals the last. Again, as you point out, that's how a polygon is distinguished from a polyline (I thought it was multi-line, but that may just be an Oracle Spatialism.) Thanks guys for the thoughtful responses. Rick CONFIDENTIALITY: Lawyers should not be allowed to use email. Ed McNierney To: MAPSERVER-USERS at LISTS.UMN.EDU Sent by: UMN cc: MapServer Users List Subject: Re: [UMN_MAPSERVER-USERS] Closed Polygon 01/17/2005 08:31 PM Please respond to Ed McNierney Ken - Yes, that defines what a polygon means - in an ESRI shapefile. Rick, the problem is not "defining" a closed polygon so much as "specifying" one. "Closed" is a little redundant here, since a polygon has to be closed in the sense I think you're using it. If it's not closed, it's a polyline. I think your question is more a matter of agreement over the XML schema used and its interpretation. - Ed Ed McNierney TopoZone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ken Lord Sent: Monday, January 17, 2005 6:04 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Closed Polygon I knew that BCIT course was good for something .. bango! ... http://www.esri.com/library/whitepapers/pdfs/shapefile.pdf Page 12 defines what a polygon is according to the ESRI Shapefile format. "A polygon consists of one or more rings. A ring is a connected sequence of four or more points that form a closed, non-self-intersecting loop." Think of it this way, the simplest polygon is a triangle, but it takes the four points to describe a polygon in a shapefile, therefore the start and end point must be the same. Page 13 lists some important points about polygons, one of which explicitly states that the start and end points must be the same. Cheers, Ken Lord Vancouver BC On Mon, 17 Jan 2005 15:09:06 -0500, Rick Levine wrote: > Can anyone point me to a URL that defines a close polygon as one in which > the last point equals the first? > > I'm in the middle of a raging debate (tempest in a teapot) of what a closed > polygon is. I'm getting polygons in XML from other systems where the XML > schema defines polygons as closed. Some of the other systems disagree > about what this means. > > BTW: I Googled and looked at opengis.org, but it seems no one bothers to > define something so obvious. > > Thanks, and sorry for being a little off topic. > > Rick > > CONFIDENTIALITY: This email contains no useful information. Ignore it. From michael at LIVEPROCESS.COM Tue Jan 18 08:20:51 2005 From: michael at LIVEPROCESS.COM (Michael Elepano) Date: Tue, 18 Jan 2005 11:20:51 -0500 Subject: Need Help Displaying Info from DBFs In-Reply-To: Message-ID: Sandeep: Thanks for your advice. I had a feeling that JOIN was not what I was looking for. I was hoping to avoid your solution as my EXPRESSION statement sometimes reaches up to 2500 clauses causing MapServer, PHP, and IIS to timeout. My EXPRESSION statements gets too big due to the number of counties (or FIPS codes which number over 3000) in the US. And while some of the datasets I use only involve a handful of counties, some other datasets involve over 2500 of the counties. I fear my only recourse is to manually join each dataset to my county.dbf and build simple EXPRESSIONs e.g. EXPRESSION ([RAINFALL] > 8) rather than complex ones e.g. EXPRESSION (([FIPS] = 00022) OR ([FIPS] = 00042) OR ([FIPS] = 00081) ... ad nauseum)). If this is my only recourse, can anyone suggest a good dbf editor/joiner? Or is there any good php script that can handle this? It doesn't seem that the PHP/DBF module can do this out-of-box. Thanks to all for your help. Michael On Jan 16, 2005, at 11:44 PM, Sandeep Bashyal wrote: > On Fri, 14 Jan 2005 13:08:46 -0500, Michael Elepano > wrote: > >> Hey: >> >> I've been using MapServer for about a month now and have gotten >> relatively far with it. But now I've hit a brick wall. >> >> The problem I'm having is showing info from DBFs on my map of the US. >> I've got two DBFs (one with all the US counties and one with data-- >> say >> occurences of avalanches-- for each of those county). I'm trying to >> color code each county according to occurences of avalanches. >> >> Each DBF has a column called FIPS. The avalanche DBF has a column >> called COUNT that is the basis for my colors. I can use EXPRESSION to >> single out any column in my county DBF, but I can't seem to reach my >> avalanche DBF. >> >> I'm assuming I'll need to do a JOIN. My attempt follows below. Any >> advice would be appreciated. >> >> Michael >> >> ###################### >> ## my attempt at an avalanche layer >> ###################### >> LAYER >> NAME "layerAvalanche" >> TYPE POLYGON >> STATUS ON >> DATA "counties.dbf" >> PROJECTION >> "proj=latlong" >> "ellps=GRS80" >> "datum=NAD83" >> END >> >> CLASS >> NAME "classGreen" >> OUTLINECOLOR 255 0 255 >> COLOR 0 255 0 >> EXPRESSION ([COUNT] > 5) >> END >> >> JOIN >> NAME "joinAvalanche" >> TABLE "C:\my\path\to\avalanches.dbf" >> FROM "FIPS" >> TO "FIPS" >> END >> END >> >> >> > Michael, > > As far as I understand, you want to set up classes using data from a > dbf file that is not associated with the shapefile. The JOIN thing can > only be used for querying and only when you are using templates for > displaying query results. If you want to color code the counties using > external data the simplest way is to append the fileds in from the > avalanches.dbf to counties.dbf. If, for any reason this cannot be > done, then you can generate classes and expressions dynamically with > mapscript. Here is the php mapscript code I use to classify districts > into "$no_classes" number of classes (using arcview-style quantile > method) using data from an external mysql database (the external > database has a field called DIST_ID that associates with the > shapefile): > > //run sql query > $sql = "SELECT DIST_ID, DIST_NAME, ".$databasefield." FROM > DISTRICTS_".$databasetable.$filter_where; > $result = mysql_query($sql, $connection); > // assign sql results into arrays > while ($row = mysql_fetch_assoc($result)){ > $ID[]=$row["DIST_ID"]; > $DIST_NAME[]=$row["DIST_NAME"]; > ${$databasefield}[]=$row[$databasefield]; > } //end while > //sort the query results > if (${$databasefield}){array_multisort(${$databasefield}, SORT_ASC, > SORT_NUMERIC, $DIST_NAME, SORT_STRING, $ID, SORT_STRING);} > mysql_free_result($result); > mysql_close($connection); > //count the number of records in the array > $no_records=count($ID); > if ($no_classes > $no_records){$no_classes = $no_records;} > if ($no_classes > 0){ > //number of class items > $no_classitems = ceil($no_records / $no_classes); > //split the arrays into chunks > $class_ID=array_chunk($ID,$no_classitems,true); > $class_value=array_chunk(${$databasefield},$no_classitems,true); > } // end if $no_classes > 0 > //set classitem > $layer_districts->set("classitem","OBJID"); > //draw classes > $i=0; > while ($i < $no_classes){ > $i++; > //class expressions > $class_array = $class_ID[$i-1]; > if ($class_array){ > $expression[$i]="/".implode("|",$class_array)."/"; > //legend key labels > > $class_legend_key1=$class_value[$i-1][($i-1)*$no_classitems]; > > $class_legend_key2=$class_value[$i-1][($i-1)*$no_classitems + > $no_classitems -1]; > if ($class_legend_key2 == NULL){$class_legend_key2 = > $class_value[$i-1][$no_records-1];} > $class_legend_key[$i]=$class_legend_key1." to > ".$class_legend_key2; > //draw layers > $class[$i] = ms_newClassObj($layer_districts); > $class[$i]->set("name",$class_legend_key[$i]); > $class[$i]->setexpression($expression[$i]); > $class_style[$i] = ms_newStyleObj ($class[$i]); > $class_style[$i]->outlinecolor->setRGB(-1,-1,-1); > > $class_style[$i]->color->setRGB($color_r[$i-1],$color_g[$i > -1],$color_b[$i-1]); > } // end if $class_array > }//end draw classes > > > -- > Sandeep Bashyal > -- > National GIS Officer > UNCU, United Nations Nepal > UN House, Pulchowk, G.P.O. Box 107, Kathmandu, Nepal > Tel: (+977) 01 5543957, (+977) 01 5554304 > Cell:(+977) 9841270854, Fax: (+977) 01 5528059 > ------------------------------------------------------ > mailto:gis at undphais.org.np > mailto:sandeep at earthmapping.com > http://www.un.org.np > From roberto.bianconi at GMAIL.COM Tue Jan 18 08:12:32 2005 From: roberto.bianconi at GMAIL.COM (Roberto Bianconi) Date: Tue, 18 Jan 2005 17:12:32 +0100 Subject: Mapscript - Perl - Query - shapeObj In-Reply-To: <41ED1A78.8030506@pobox.com> Message-ID: I think that once you query the layer, say with a $rectangle obj: my $layer = $map->getLayerByName($layer_name); $layer->queryByRect($map,$rectangle); # you have the number of matches from my $res = $layer->getNumResults(); # If your database is created as my $dbh = new XBase "$dbfile"; # then you can do something like: for my $r (1..$res) { my $resultmember = $layer->getResult($r-1); my $shaperecnum = $resultmember->{shapeindex}; # and then you get the record, with the fields as the array elements: my @row = $dbh->get_record($shaperecnum); } Hope this helps. Ciao, Roberto On Tue, 18 Jan 2005 15:17:28 +0100, Aaron Craig wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > The values property in the Perl implementation of a shapeObj is a scalar > reference. > > I was hoping that it would be a hashref to my database columns for the > record returned by a layerObj->queryByPoint() call, similar to what it > looks like PHP does. > > My output looks like: > > > my $res = $lyr->getResult(0); > my $shp = mapscript::shapeObj->new($mapscript::MS_SHAPE_POLYGON); > $lyr->getShape($shp, $res->{tileindex}, $res->{shapeindex}); > print "values: $shp->{values}\n"; > > values: _p_p_char=SCALAR(0xa3e7d74) > > In the end I need to get an id value out of the database from my query. > ~ Is there a standard way of doing this? > > Thanks again for the help. > > - -- > Aaron Craig > mercutio at pobox.com From John.Spotten at CAPETOWN.GOV.ZA Tue Jan 18 07:59:48 2005 From: John.Spotten at CAPETOWN.GOV.ZA (John Spotten) Date: Tue, 18 Jan 2005 17:59:48 +0200 Subject: query modes Message-ID: hi, I am using an info button to select features on a map in a java applet and then display their attributes in a secondary window with an anchor on each feature record. I can display the highlighted selected features using [img] in the secondary window when clicked on, the anchor should take me to the original window and zoom in to the selected highlighted feature but I get the same query list as in the original window. I can't seem to change the map layer template html from the query attribute value list to the one that contains the java applet. is there any sample code or an extended help on various query modes + map query modes i.e. ITEMQUERYMAP and associated [templates]? I hope this is reasonably clear. John Spotten Transport Modeller/GIS Developer Directorate of Transport, Roads and Stormwater City of Cape Town Tel : +27 21 4067325 Fax : +27 21 4186989 Cell : +27 846678901 Email : john.spotten at capetown.gov.za Web : www.capetown.gov.za <> -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: John Spotten.vcf Type: text/x-vcard Size: 226 bytes Desc: John Spotten.vcf URL: -------------- next part -------------- NOTE: This e-mail (including attachments) is subject to the restrictions, qualifications and disclaimers (?disclaimer?) published at www.capetown.gov.za/disclaimer/email.pdf. Please read the disclaimer before opening any attachment or taking any other action in terms of this e-mail. If you cannot access the disclaimer, kindly send an email to infomail at capetown.gov.za and a copy will be provided to you. By acting on this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer. ------------------------------------------------- From nhv at CAPE.COM Tue Jan 18 08:48:29 2005 From: nhv at CAPE.COM (Norman Vine) Date: Tue, 18 Jan 2005 11:48:29 -0500 Subject: Mapserver and NASAs World Wind In-Reply-To: Message-ID: There is an interesting mapserver thread on the NASA WorldWind Forum http://worldwind.arc.nasa.gov/forums/index.php?showtopic=263&hl= WorldWind Homepage http://worldwind.arc.nasa.gov/ Norman From sgillies at FRII.COM Tue Jan 18 08:48:38 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 18 Jan 2005 09:48:38 -0700 Subject: Need Help Displaying Info from DBFs In-Reply-To: Message-ID: Michael, As I see it, there are 3 solutions to your problem: 1) SYSTEM SOLUTION Create a temporary shapefile with a feature table (.dbf) that is joined. This temp dataset could be produced at daily or hourly intervals and could stay fairly up to date. You could readily script this in Perl (using DBI and XBase) or Python (using shapelib) and run it under cron. No need for PHP. 2) SOFTWARE SOLUTION You can do your classification in PHP code outside of mapscript. This means setting the classindex and label attributes for all the county shapes, then adding them to an inline layer using "addFeature()". They will be rendered according to the class at the specified classindex. 3) RDBMS SOLUTION Consider using PostGIS/SDE/Oracle to store your counties and avalanche data and take advantage of the RDBMS ability to perform joins and cache query results. cheers, Sean On Jan 18, 2005, at 9:20 AM, Michael Elepano wrote: > Sandeep: > > Thanks for your advice. I had a feeling that JOIN was not what I was > looking for. I was hoping to avoid your solution as my EXPRESSION > statement sometimes reaches up to 2500 clauses causing MapServer, PHP, > and IIS to timeout. My EXPRESSION statements gets too big due to the > number of counties (or FIPS codes which number over 3000) in the US. > And while some of the datasets I use only involve a handful of > counties, some other datasets involve over 2500 of the counties. > > I fear my only recourse is to manually join each dataset to my > county.dbf and build simple EXPRESSIONs > > e.g. EXPRESSION ([RAINFALL] > 8) > > rather than complex ones > > e.g. EXPRESSION (([FIPS] = 00022) OR ([FIPS] = 00042) OR ([FIPS] = > 00081) ... ad nauseum)). > > If this is my only recourse, can anyone suggest a good dbf > editor/joiner? Or is there any good php script that can handle this? > It doesn't seem that the PHP/DBF module can do this out-of-box. > > Thanks to all for your help. > > Michael > > On Jan 16, 2005, at 11:44 PM, Sandeep Bashyal wrote: > >> On Fri, 14 Jan 2005 13:08:46 -0500, Michael Elepano >> wrote: >> >>> Hey: >>> >>> I've been using MapServer for about a month now and have gotten >>> relatively far with it. But now I've hit a brick wall. >>> >>> The problem I'm having is showing info from DBFs on my map of the US. >>> I've got two DBFs (one with all the US counties and one with data-- >>> say >>> occurences of avalanches-- for each of those county). I'm trying to >>> color code each county according to occurences of avalanches. >>> >>> Each DBF has a column called FIPS. The avalanche DBF has a column >>> called COUNT that is the basis for my colors. I can use EXPRESSION >>> to >>> single out any column in my county DBF, but I can't seem to reach my >>> avalanche DBF. >>> >>> I'm assuming I'll need to do a JOIN. My attempt follows below. Any >>> advice would be appreciated. >>> >>> Michael >>> >>> ###################### >>> ## my attempt at an avalanche layer >>> ###################### >>> LAYER >>> NAME "layerAvalanche" >>> TYPE POLYGON >>> STATUS ON >>> DATA "counties.dbf" >>> PROJECTION >>> "proj=latlong" >>> "ellps=GRS80" >>> "datum=NAD83" >>> END >>> >>> CLASS >>> NAME "classGreen" >>> OUTLINECOLOR 255 0 255 >>> COLOR 0 255 0 >>> EXPRESSION ([COUNT] > 5) >>> END >>> >>> JOIN >>> NAME "joinAvalanche" >>> TABLE "C:\my\path\to\avalanches.dbf" >>> FROM "FIPS" >>> TO "FIPS" >>> END >>> END >>> >>> >>> >> Michael, >> >> As far as I understand, you want to set up classes using data from a >> dbf file that is not associated with the shapefile. The JOIN thing can >> only be used for querying and only when you are using templates for >> displaying query results. If you want to color code the counties using >> external data the simplest way is to append the fileds in from the >> avalanches.dbf to counties.dbf. If, for any reason this cannot be >> done, then you can generate classes and expressions dynamically with >> mapscript. Here is the php mapscript code I use to classify districts >> into "$no_classes" number of classes (using arcview-style quantile >> method) using data from an external mysql database (the external >> database has a field called DIST_ID that associates with the >> shapefile): >> >> //run sql query >> $sql = "SELECT DIST_ID, DIST_NAME, ".$databasefield." FROM >> DISTRICTS_".$databasetable.$filter_where; >> $result = mysql_query($sql, $connection); >> // assign sql results into arrays >> while ($row = mysql_fetch_assoc($result)){ >> $ID[]=$row["DIST_ID"]; >> $DIST_NAME[]=$row["DIST_NAME"]; >> ${$databasefield}[]=$row[$databasefield]; >> } //end while >> //sort the query results >> if (${$databasefield}){array_multisort(${$databasefield}, SORT_ASC, >> SORT_NUMERIC, $DIST_NAME, SORT_STRING, $ID, SORT_STRING);} >> mysql_free_result($result); >> mysql_close($connection); >> //count the number of records in the array >> $no_records=count($ID); >> if ($no_classes > $no_records){$no_classes = $no_records;} >> if ($no_classes > 0){ >> //number of class items >> $no_classitems = ceil($no_records / $no_classes); >> //split the arrays into chunks >> $class_ID=array_chunk($ID,$no_classitems,true); >> >> $class_value=array_chunk(${$databasefield},$no_classitems,true); >> } // end if $no_classes > 0 >> //set classitem >> $layer_districts->set("classitem","OBJID"); >> //draw classes >> $i=0; >> while ($i < $no_classes){ >> $i++; >> //class expressions >> $class_array = $class_ID[$i-1]; >> if ($class_array){ >> $expression[$i]="/".implode("|",$class_array)."/"; >> //legend key labels >> >> $class_legend_key1=$class_value[$i-1][($i-1)*$no_classitems]; >> >> $class_legend_key2=$class_value[$i-1][($i-1)*$no_classitems + >> $no_classitems -1]; >> if ($class_legend_key2 == NULL){$class_legend_key2 = >> $class_value[$i-1][$no_records-1];} >> $class_legend_key[$i]=$class_legend_key1." to >> ".$class_legend_key2; >> //draw layers >> $class[$i] = ms_newClassObj($layer_districts); >> $class[$i]->set("name",$class_legend_key[$i]); >> $class[$i]->setexpression($expression[$i]); >> $class_style[$i] = ms_newStyleObj ($class[$i]); >> $class_style[$i]->outlinecolor->setRGB(-1,-1,-1); >> >> $class_style[$i]->color->setRGB($color_r[$i-1],$color_g[$i >> -1],$color_b[$i-1]); >> } // end if $class_array >> }//end draw classes >> >> >> -- >> Sandeep Bashyal >> -- >> National GIS Officer >> UNCU, United Nations Nepal >> UN House, Pulchowk, G.P.O. Box 107, Kathmandu, Nepal >> Tel: (+977) 01 5543957, (+977) 01 5554304 >> Cell:(+977) 9841270854, Fax: (+977) 01 5528059 >> ------------------------------------------------------ >> mailto:gis at undphais.org.np >> mailto:sandeep at earthmapping.com >> http://www.un.org.np >> > > -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From lfilak at MEDINACO.ORG Tue Jan 18 08:56:19 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Tue, 18 Jan 2005 11:56:19 -0500 Subject: Labels in two renderings of the same map ? Message-ID: It sounds like the label cache is empty by the time the second image is rendered. Have you tried to render the second image from a second map object? Lowell The following message was sent by "Lars V. Nielsen (GisPro)" on Sun, 16 Jan 2005 13:12:20 +0100. > I've been asked to generate a map with an insert, i.e. adding a small area with a larger scale in the corner of the map. > > I've accomplished it by performing two renderings of the same map, the second rendering after setting a smaller width/height and a > fixed extent, and using GD2 to merge the two images appropriately. This works perfectly. > > However, I've sofar been unable to get labels to display in the small insert image. They show up perfectly in the main/large image. > > I don't turn any layers on/off between the two renderings, and I don't have any label min/max scale settings in place for this > labelling layer (which btw. is an OVF layer). > > I suspect that it's an issue connected with the label cache. I've tried to add LABELCACHE OFF to the labelling layer and remove the > commands $map->drawLabelCache() from my code, but it makes no difference at all: the labels only (and always!) appear in the main > window. > > If anyone has come up with a way to control labels in two map renderings, I'll be delighted to know. > > Best regards/Med venlig hilsen > Lars V. Nielsen > GisPro, Denmark > http://www.gispro.dk/ From mercutio at POBOX.COM Tue Jan 18 09:01:21 2005 From: mercutio at POBOX.COM (Aaron Craig) Date: Tue, 18 Jan 2005 18:01:21 +0100 Subject: Querying a layer in Perl In-Reply-To: <20050118132715.7E05B1A65A5@mail.medinaco.org> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Yes, someone mentioned that, though I like your idea of putting it directly in the code, rather than having to stick a TEMPLATE entry in the mapfile, so that's what I've done. Thanks. Lowell Filak wrote: | I think a template is required on the layer. | $lyr->{template} = "bogus.html"; | | HTH | | Lowell | | The following message was sent by Aaron Craig on | Tue, 18 Jan 2005 12:31:25 +0100. | | - -- Aaron Craig mercutio at pobox.com =========================================================== Get Firefox! http://www.spreadfirefox.com/?q=affiliates&id=0&t=1 =========================================================== -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFB7UDhoyEQRcU83p4RAmBUAJ0ZB1xOTYciuG5HdUsPS5KY6BFB3gCfbx9d FaIWacStiQ3U2ixDQDC/LQ8= =OkuO -----END PGP SIGNATURE----- From Richard_D_Levine at RAYTHEON.COM Tue Jan 18 09:02:53 2005 From: Richard_D_Levine at RAYTHEON.COM (Rick Levine) Date: Tue, 18 Jan 2005 12:02:53 -0500 Subject: Closed Polygon Message-ID: Ed, Again good points all. We wouldn't be having this discussion if I wasn't the original nitpicker. Thanks, Rick CONFIDENTIALITY: This email was typed by an infinite number of monkeys over an infinite period of time and yet contains no information of biblical, or any, importance. "Ed McNierney" To: , cc: 01/18/2005 11:11 Subject: RE: [UMN_MAPSERVER-USERS] Closed Polygon AM Rick - Not to continue to pick at this nit , but the concept "closed polygon" is by no means restricted to the "GIS domain". It's just a polygon, which might be used in the latest video game renderer. It's really just a specification question - does the format under discussion require polygons to re-specify the first point as the last, or is that specification assumed? If the system is using that "hint" to decide whether the object is an (un-closed) polyline or a (closed) polygon then it's important. If the object itself is flagged as being a polygon or a polyline, then it's redundant but harmless. I wouldn't claim either way is "right", nor is either way the "GIS way", since it's just as relevant to the definition of a polygon in an Adobe Acrobat document describing an advertisement for your new GIS product as it is to the GIS product itself. In the Adobe Acrobat/PostScript world, yet another mechanism (the use of the closepath operator) is used to determine whether a path is closed (i.e like a polygon) or not. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Rick Levine Sent: Tuesday, January 18, 2005 8:30 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Closed Polygon Thanks for the link Ken, I inserted it into the debate. I agree with all of your points completely Ed. My contribution to the debate has been that the terminology *closed polygon* is meaningless, or at least redundant as you said, in the mathematical domain. It only has meaning in the GIS domain, where information systems are exchanging data. In the GIS domain, it means the first point equals the last. Again, as you point out, that's how a polygon is distinguished from a polyline (I thought it was multi-line, but that may just be an Oracle Spatialism.) Thanks guys for the thoughtful responses. Rick CONFIDENTIALITY: Lawyers should not be allowed to use email. Ed McNierney To: MAPSERVER-USERS at LISTS.UMN.EDU Sent by: UMN cc: MapServer Users List Subject: Re: [UMN_MAPSERVER-USERS] Closed Polygon 01/17/2005 08:31 PM Please respond to Ed McNierney Ken - Yes, that defines what a polygon means - in an ESRI shapefile. Rick, the problem is not "defining" a closed polygon so much as "specifying" one. "Closed" is a little redundant here, since a polygon has to be closed in the sense I think you're using it. If it's not closed, it's a polyline. I think your question is more a matter of agreement over the XML schema used and its interpretation. - Ed Ed McNierney TopoZone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ken Lord Sent: Monday, January 17, 2005 6:04 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Closed Polygon I knew that BCIT course was good for something .. bango! ... http://www.esri.com/library/whitepapers/pdfs/shapefile.pdf Page 12 defines what a polygon is according to the ESRI Shapefile format. "A polygon consists of one or more rings. A ring is a connected sequence of four or more points that form a closed, non-self-intersecting loop." Think of it this way, the simplest polygon is a triangle, but it takes the four points to describe a polygon in a shapefile, therefore the start and end point must be the same. Page 13 lists some important points about polygons, one of which explicitly states that the start and end points must be the same. Cheers, Ken Lord Vancouver BC On Mon, 17 Jan 2005 15:09:06 -0500, Rick Levine wrote: > Can anyone point me to a URL that defines a close polygon as one in which > the last point equals the first? > > I'm in the middle of a raging debate (tempest in a teapot) of what a closed > polygon is. I'm getting polygons in XML from other systems where the XML > schema defines polygons as closed. Some of the other systems disagree > about what this means. > > BTW: I Googled and looked at opengis.org, but it seems no one bothers to > define something so obvious. > > Thanks, and sorry for being a little off topic. > > Rick > > CONFIDENTIALITY: This email contains no useful information. Ignore it. From mercutio at POBOX.COM Tue Jan 18 09:09:09 2005 From: mercutio at POBOX.COM (Aaron Craig) Date: Tue, 18 Jan 2005 18:09:09 +0100 Subject: Mapscript - Perl - Query - shapeObj In-Reply-To: Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Thank you. That's it. I was opening the layer in the wrong spot. Sean Gillies wrote: | | Aaron, | | Here is the canonical query example (in Python) for version 4.4: | | layer.query() # queryByRect or *Shape or *Attributes | | results = layer.getResults() | | if results: | | # open layer in preparation of reading shapes | layer.open() | | for i in range(results.numresults): | r = results.getResult(i) | feature = layer.getFeature(r.shapeindex, r.tileindex) | | # Iterate over feature attributes | for j in range(layer.numitems): | | att_name = layer.getItem(j) | att_val = feature.getValue(j) | | print att_name, att_val | | # Close when done | layer.close() | - -- Aaron Craig mercutio at pobox.com =========================================================== Get Firefox! http://www.spreadfirefox.com/?q=affiliates&id=0&t=1 =========================================================== -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFB7UK1oyEQRcU83p4RApk3AJ9WUiDJxONul9xHXE6p8XLyFLGZVQCeJkbK E2w7RE94z+SUSSx1IHMY9lg= =wIte -----END PGP SIGNATURE----- From lfilak at MEDINACO.ORG Tue Jan 18 09:13:18 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Tue, 18 Jan 2005 12:13:18 -0500 Subject: QueryByRect Problems on shp point Message-ID: The following message was sent by Francesco Sozzi on Mon, 17 Jan 2005 11:55:02 +0100. > Hi all, > > I am having problems on querying a shapfile layer of type point. > > The code I use is: > $qresult = $layer->queryByRect($rectDrawnedMapCoord); > where $rectDrawnedMapCoord is a rectangle with map coordinates that contains > several points. > > The problem is that I get an empty result. > > Here you are some notes: > - I have problems only on shapefile layers of type point; queryByRect works > properly on shapefile polygon and line > - I an Oracle Spatial copy (exatly the same point objects and data) an it > works: I get right resul on queryByRect > > Anybody have any suggestions? Francesco, Do you have any logging turned on that could point to a problem possibly accessing the shapefile? Lowell From piero.cavalieri at HEIDI.IT Tue Jan 18 09:18:29 2005 From: piero.cavalieri at HEIDI.IT (Piero Cavalieri) Date: Tue, 18 Jan 2005 11:18:29 -0600 Subject: label angle AUTO - M.S. 4.4. Message-ID: I'm trying to use the AUTO orientation of label in this .map file fragment: LAYER NAME fiumi DEBUG on METADATA "DESCRIPTION" "Fiumi" END TYPE line STATUS ON DATA idrfiu LABELITEM "des" LABELMAXSCALE 100000 CLASSITEM "asta" CLASS EXPRESSION "0000" NAME "Fiumi/Aste Principali" COLOR 0 0 250 TEMPLATE "ttt_query.html" LABEL MINFEATURESIZE 30 MINDISTANCE 150 POSITION CC SIZE MEDIUM ANGLE AUTO COLOR 0 0 100 OUTLINECOLOR 220 220 220 END END CLASS EXPRESSION /F|C|./ NAME "Fiumi/Fosse o Canali" MAXSCALE 40000 COLOR 0 0 250 TEMPLATE "ttt_query.html" LABEL MINFEATURESIZE 30 MINDISTANCE 150 POSITION CC ANGLE AUTO SIZE SMALL COLOR 0 0 100 OUTLINECOLOR 220 220 220 END END TOLERANCE 5 END but it has no effect. My labels are still orrizontal. If I use a background color for labels, then only the background is rotated. What's wrong in my .map ? Thanks in advance Piero From saintsjd at YAHOO.COM Tue Jan 18 09:38:56 2005 From: saintsjd at YAHOO.COM (Jon Saints) Date: Tue, 18 Jan 2005 09:38:56 -0800 Subject: Python vs PHP vs Perl mapscript In-Reply-To: Message-ID: Hi Are then advantages/disavantages in terms of features of using mapscript in python, perl, or php? Does one mapscript have more functionality than another? Is one developed more heavily? Thanks Jon From nacional at CBS.UMN.EDU Tue Jan 18 09:41:10 2005 From: nacional at CBS.UMN.EDU (Pericles S. Nacionales) Date: Tue, 18 Jan 2005 11:41:10 -0600 Subject: Compilation Error on 64 bit Fedora Core 3 In-Reply-To: <41ED23FA.1080307@earthcomber.com> Message-ID: After running configure, open your Makefile and and look for the line that contains GEOS_INC. You'll probably find it's lacking the path to your GEOS include files. Add -I/usr/include (or whatever the path to your GEOS headers). It seems MapServer's configure script doesn't get the include path from geos-config properly. An alternative is to not include the --with-geos parameter. I don't think MapServer uses GEOS natively at the moment anyway. Good luck! -Perry N. On Tuesday 18 January 2005 08:58 am, Colin McGuigan wrote: > Tony Baylis wrote: > > We are trying to upgrade our Mapserver app from 3.6.6 to the latest > > on a new > > > 64 bit machine using Fedora Core 3. > > > > After trying to install from .src.rpm and encountering issues related to > > 64bit, I have started again using .tar.gz files for all packages except > > those that can be installed or updated using yum, ie devel packages etc. > > > > The following ./configure command was used and succeeded: > > > > ./configure --with-jpeg --with-php=/usr/include/php/main > > --with-php-regex-dir=/usr/src/redhat/BUILD/php-4.3.10/build-cgi/regex > > --with-gdal --with-png --with-wmsclient --with-libwww --without-tiff > > --with-geos --with-postgis --with-freetype --enable-force-freetype1 > > --enable-runpath > > > > BUT compilation (make -d) fails giving the following final output: > > > > Finished prerequisites of target file `maptemplate.o'. > > Must remake target `maptemplate.o'. > > gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL > > -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > > -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_GDAL -DUSE_GEOS > > -DUSE_ICONV -DUSE_PHP_REGEX > > -I/usr/src/redhat/BUILD/php-4.3.10/build-cgi/regex/.. -DUSE_POSTGIS > > -I/usr/include -I/usr/local/include -I/usr/include -I > > maptemplate.c -o maptemplate.o > > Putting child 0x00547bd0 (maptemplate.o) PID 5464 on the chain. > > Live child 0x00547bd0 (maptemplate.o) PID 5464 > > gcc: no input files > > Got a SIGCHLD; 1 unreaped children. > > Reaping losing child 0x00547bd0 PID 5464 > > make: *** [maptemplate.o] Error 1 > > Removing child 0x00547bd0 PID 5464 from chain. > > I would check your ./configure again. Specifically, in the gcc compile > step, there should be something between the last "-I" and > "maptemplate.c". As it is, gcc is thinking that maptemplate.c is to be > included, when it's really what should be compiled. > > I ran into this when I tried --with-proj without specifying a directory > after. You'd think the configure script would've noticed, but it > didn't. So I would check ./configure --help to see which of those flags > requires a path, and then try setting them. > > --Colin McGuigan -- Pericles S. Nacionales Dept. of Ecology, Evolution, and Behavior University of Minnesota work: 612 624 6713 e-mail: nacional at cbs.umn.edu From sgillies at FRII.COM Tue Jan 18 10:52:09 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 18 Jan 2005 11:52:09 -0700 Subject: Python vs PHP vs Perl mapscript In-Reply-To: Message-ID: On Jan 18, 2005, at 10:38 AM, Jon Saints wrote: > Hi > > Are then advantages/disavantages in terms of features > of using mapscript in python, perl, or php? > > Does one mapscript have more functionality than > another? Is one developed more heavily? > > Thanks > Jon > Jon, The Python and Perl modules are generated from the same templates with a few extra useful methods that are implemented only for Python: enhanced imageObj constructor and image output, for example. Other than that, they are equivalent. Python benefits from having many usage examples within the mapscript unit tests, but any Perl hacker can translate the unit tests to their own scripts. Python hooks up to other open source GIS software like GDAL/OGR, GEOS, and OpenEV better than Perl or PHP, and this is a big plus. All the mapscript modules share a great deal of core code: layer and map drawing, querying, etc. The PHP interface is, however, developed separately from Python and Perl's, does not benefit from the other mapscript unit tests, and in the past year is a bit behind the Python/Perl mapscript in features and rate of development. The main difference is that the PHP module lacks a number of methods for cloning layers, classes, and styles, and for inserting and deleting these from their "parent" objects. Correct me if I am wrong (Daniel?), but I think that the original PHP mapscript developers' resources are currently spent on a higher-level software product instead of on the lower level mapscript. The Python (and related) mapscript module has undergone more rapid development because of the needs of my ZMapServer and Cartographic Objects for Zope software, but most users will not need these extra features. As I have said before, PHP is unrivaled for web pages that have a relatively small amount of logic behind them. It is fast and the platform is mature and well supported. The PHP mapscript has proven itself to be very useful. For larger applications that just so happen to have a web interface, you'll want to consider a less web-oriented language that is OO and easy to profile, test, and refactor. IMO, this means Python rather than Perl. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From Richard_D_Levine at RAYTHEON.COM Tue Jan 18 06:17:42 2005 From: Richard_D_Levine at RAYTHEON.COM (Rick Levine) Date: Tue, 18 Jan 2005 09:17:42 -0500 Subject: DBF-to-mySQL JOIN: 3 CASES Message-ID: Janice, I know of three spatial database implementations: PostGIS on PostgreSQL, Oracle Spatial, and Informix Spatial Datablade. This is not a complete list, but those I know of. I have PostGIS installed and have read all the docs, but only prototyped with it. It is a powerful and nicely complete implementation running on an incredibly full featured RDBMS. It follows the OpenGIS standards. It's only deficiency, to my mind, is that it doesn't handle geometries that span the antemeridian or polar caps. I use Oracle Spatial regularly and find it fast, powerful, and flexible. It had better be for licensing costs that run in the tens of thousands of dollars per server, plus maintenance costs. It does handle the antemeridian and the polar caps. It gives lip service to the OpenGIS standards, but like all things Oracle, is nonstandard enough to make switching to another product painful. I would never use any product from the former Informix Corp. even though they are now owned by IBM, because I have in the past. Rick CONFIDENTIALITY: This email is a random series of zeroes and ones and should not be interpreted otherwise. Frank Warmerdam cc: Sent by: UMN Subject: Re: [UMN_MAPSERVER-USERS] DBF-to-mySQL JOIN: 3 CASES MapServer Users List 01/18/2005 12:45 AM Please respond to Frank Warmerdam On Mon, 17 Jan 2005 19:36:45 -0600, Janice Denovan wrote: > Thanks for your help Frank. I will preprocess the data for now and maybe > upgrade to a spatial database later. How do the spatial RDBMS products > compare in your view ? Janice, I don't have particularly deep experience on the spatial RDBMS'es but I will say if you don't have any strong pre-commitment to another one, PostGIS on Postgres is likely to do pretty much all you need with good performance at a very low (ie free) price. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From rob at DATAFLOWDESIGN.COM Tue Jan 18 10:47:23 2005 From: rob at DATAFLOWDESIGN.COM (Rob P.) Date: Tue, 18 Jan 2005 12:47:23 -0600 Subject: label angle AUTO - M.S. 4.4. In-Reply-To: Message-ID: >>>>> "Piero" == Piero Cavalieri writes: Piero> I'm trying to use the AUTO orientation of label in this Piero> .map file fragment: LAYER NAME fiumi DEBUG on METADATA Piero> "DESCRIPTION" "Fiumi" END TYPE line STATUS ON DATA idrfiu Piero> LABELITEM "des" LABELMAXSCALE 100000 CLASSITEM "asta" CLASS Piero> EXPRESSION "0000" NAME "Fiumi/Aste Principali" COLOR 0 0 Piero> 250 TEMPLATE "ttt_query.html" LABEL MINFEATURESIZE 30 Piero> MINDISTANCE 150 POSITION CC SIZE MEDIUM ANGLE AUTO COLOR 0 Piero> 0 100 OUTLINECOLOR 220 220 220 END END CLASS EXPRESSION Piero> /F|C|./ NAME "Fiumi/Fosse o Canali" MAXSCALE 40000 COLOR 0 Piero> 0 250 TEMPLATE "ttt_query.html" LABEL MINFEATURESIZE 30 Piero> MINDISTANCE 150 POSITION CC ANGLE AUTO SIZE SMALL COLOR 0 0 Piero> 100 OUTLINECOLOR 220 220 220 END END TOLERANCE 5 END Piero> but it has no effect. My labels are still orrizontal. If I Piero> use a background color for labels, then only the background Piero> is rotated. What's wrong in my .map ? I think you need to add: TYPE truetype in the label block. Also, you need to specify FONTSET in the MAP block. Rob From saintsjd at YAHOO.COM Tue Jan 18 11:40:06 2005 From: saintsjd at YAHOO.COM (Jon Saints) Date: Tue, 18 Jan 2005 11:40:06 -0800 Subject: Python vs PHP vs Perl mapscript In-Reply-To: <0E68B784-6982-11D9-82AE-000D9329D732@frii.com> Message-ID: Wow... Thanks so much Sean. I believe that this is a great overview. Is there a mapserver wiki somewhere where we could publish this information. Jon --- Sean Gillies wrote: > On Jan 18, 2005, at 10:38 AM, Jon Saints wrote: > > > Hi > > > > Are then advantages/disavantages in terms of > features > > of using mapscript in python, perl, or php? > > > > Does one mapscript have more functionality than > > another? Is one developed more heavily? > > > > Thanks > > Jon > > > > Jon, > > The Python and Perl modules are generated from the > same templates with > a few extra useful methods that are implemented only > for Python: > enhanced imageObj constructor and image output, for > example. Other > than that, they are equivalent. Python benefits > from having many usage > examples within the mapscript unit tests, but any > Perl hacker can > translate the unit tests to their own scripts. > Python hooks up to > other open source GIS software like GDAL/OGR, GEOS, > and OpenEV better > than Perl or PHP, and this is a big plus. > > All the mapscript modules share a great deal of core > code: layer and > map drawing, querying, etc. The PHP interface is, > however, developed > separately from Python and Perl's, does not benefit > from the other > mapscript unit tests, and in the past year is a bit > behind the > Python/Perl mapscript in features and rate of > development. The main > difference is that the PHP module lacks a number of > methods for cloning > layers, classes, and styles, and for inserting and > deleting these from > their "parent" objects. Correct me if I am wrong > (Daniel?), but I > think that the original PHP mapscript developers' > resources are > currently spent on a higher-level software product > instead of on the > lower level mapscript. The Python (and related) > mapscript module has > undergone more rapid development because of the > needs of my ZMapServer > and Cartographic Objects for Zope software, but most > users will not > need these extra features. > > As I have said before, PHP is unrivaled for web > pages that have a > relatively small amount of logic behind them. It is > fast and the > platform is mature and well supported. The PHP > mapscript has proven > itself to be very useful. For larger applications > that just so happen > to have a web interface, you'll want to consider a > less web-oriented > language that is OO and easy to profile, test, and > refactor. IMO, this > means Python rather than Perl. > > cheers, > Sean > > -- > Sean Gillies > sgillies at frii dot com > http://users.frii.com/sgillies > From gsw at GLOBEXPLORER.COM Tue Jan 18 12:45:59 2005 From: gsw at GLOBEXPLORER.COM (Gregory S. Williamson) Date: Tue, 18 Jan 2005 12:45:59 -0800 Subject: label angle AUTO - M.S. 4.4. Message-ID: I think the AUTO angle feature only works with true type fonts; you seem to be using bitmap fonts (SIZE MEDIUM) ... try setting up this layer to use truetype and I bet the autoangle feature will work as advertised. In the map definition something like this (from a windoze box) ... FONTSET "C:\ms4w\Apache\htdocs\ssf\fonts\fonts.list" ... TEXT ([FENAME] [FETYPE] #[FRADDL]-#[TOADDR]) LABEL ANGLE auto ANTIALIAS true MINFEATURESIZE 20 MINDISTANCE 60 TYPE TRUETYPE FONT arial-bold SIZE 9 POSITION CC BUFFER 5 COLOR 255 255 255 OUTLINECOLOR 0 0 0 END HTH, Greg Williamson DBA GlobeXplorer LLC -----Original Message----- From: Piero Cavalieri [mailto:piero.cavalieri at HEIDI.IT] Sent: Tue 1/18/2005 9:18 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Cc: Subject: [UMN_MAPSERVER-USERS] label angle AUTO - M.S. 4.4. I'm trying to use the AUTO orientation of label in this .map file fragment: LAYER NAME fiumi DEBUG on METADATA "DESCRIPTION" "Fiumi" END TYPE line STATUS ON DATA idrfiu LABELITEM "des" LABELMAXSCALE 100000 CLASSITEM "asta" CLASS EXPRESSION "0000" NAME "Fiumi/Aste Principali" COLOR 0 0 250 TEMPLATE "ttt_query.html" LABEL MINFEATURESIZE 30 MINDISTANCE 150 POSITION CC SIZE MEDIUM ANGLE AUTO COLOR 0 0 100 OUTLINECOLOR 220 220 220 END END CLASS EXPRESSION /F|C|./ NAME "Fiumi/Fosse o Canali" MAXSCALE 40000 COLOR 0 0 250 TEMPLATE "ttt_query.html" LABEL MINFEATURESIZE 30 MINDISTANCE 150 POSITION CC ANGLE AUTO SIZE SMALL COLOR 0 0 100 OUTLINECOLOR 220 220 220 END END TOLERANCE 5 END but it has no effect. My labels are still orrizontal. If I use a background color for labels, then only the background is rotated. What's wrong in my .map ? Thanks in advance Piero From tonyb at BUNDABERG.QLD.GOV.AU Tue Jan 18 14:49:05 2005 From: tonyb at BUNDABERG.QLD.GOV.AU (Tony Baylis) Date: Wed, 19 Jan 2005 08:49:05 +1000 Subject: Compilation Error on 64 bit Fedora Core 3 In-Reply-To: <200501181141.10073.nacional@cbs.umn.edu> Message-ID: Thanks to all who replied... I also assumed the problem related to a missing path before maptemplate.c. All the options mentioned have been tried, including removing --with-geos, adding -m32 to the gcc line in the Makefile to get it compiled as 32bit but to no avail as yet. I shall keep trying...I too have learnt(?) more about compilers and Makefiles than I thought I needed to know over the last week... Tony On Wednesday 19 January 2005 03:41, Pericles S. Nacionales wrote: > After running configure, open your Makefile and and look for the line that > contains GEOS_INC. You'll probably find it's lacking the path to your GEOS > include files. Add -I/usr/include (or whatever the path to your GEOS > headers). > > It seems MapServer's configure script doesn't get the include path from > geos-config properly. An alternative is to not include the --with-geos > parameter. I don't think MapServer uses GEOS natively at the moment > anyway. > > Good luck! > -Perry N. > > On Tuesday 18 January 2005 08:58 am, Colin McGuigan wrote: > > Tony Baylis wrote: > > > We are trying to upgrade our Mapserver app from 3.6.6 to the latest > > > > on a new > > > > > 64 bit machine using Fedora Core 3. > > > > > > After trying to install from .src.rpm and encountering issues related > > > to 64bit, I have started again using .tar.gz files for all packages > > > except those that can be installed or updated using yum, ie devel > > > packages etc. > > > > > > The following ./configure command was used and succeeded: > > > > > > ./configure --with-jpeg --with-php=/usr/include/php/main > > > --with-php-regex-dir=/usr/src/redhat/BUILD/php-4.3.10/build-cgi/regex > > > --with-gdal --with-png --with-wmsclient --with-libwww --without-tiff > > > --with-geos --with-postgis --with-freetype --enable-force-freetype1 > > > --enable-runpath > > > > > > BUT compilation (make -d) fails giving the following final output: > > > > > > Finished prerequisites of target file `maptemplate.o'. > > > Must remake target `maptemplate.o'. > > > gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT > > > -DUSE_EPPL -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP > > > -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS > > > -DUSE_GDAL -DUSE_GEOS -DUSE_ICONV -DUSE_PHP_REGEX > > > -I/usr/src/redhat/BUILD/php-4.3.10/build-cgi/regex/.. -DUSE_POSTGIS > > > -I/usr/include -I/usr/local/include -I/usr/include -I > > > maptemplate.c -o maptemplate.o > > > Putting child 0x00547bd0 (maptemplate.o) PID 5464 on the chain. > > > Live child 0x00547bd0 (maptemplate.o) PID 5464 > > > gcc: no input files > > > Got a SIGCHLD; 1 unreaped children. > > > Reaping losing child 0x00547bd0 PID 5464 > > > make: *** [maptemplate.o] Error 1 > > > Removing child 0x00547bd0 PID 5464 from chain. > > > > I would check your ./configure again. Specifically, in the gcc compile > > step, there should be something between the last "-I" and > > "maptemplate.c". As it is, gcc is thinking that maptemplate.c is to be > > included, when it's really what should be compiled. > > > > I ran into this when I tried --with-proj without specifying a directory > > after. You'd think the configure script would've noticed, but it > > didn't. So I would check ./configure --help to see which of those flags > > requires a path, and then try setting them. > > > > --Colin McGuigan > > -- > Pericles S. Nacionales > > Dept. of Ecology, Evolution, and Behavior > University of Minnesota > work: 612 624 6713 > e-mail: nacional at cbs.umn.edu -- Anthony Baylis GIS Officer Bundaberg City Council ph 07 4153 9926 fax 07 4153 9238 e tonyb at bundaberg.qld.gov.au web www.bundaberg.qld.gov.au From sgillies at FRII.COM Tue Jan 18 15:19:05 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 18 Jan 2005 16:19:05 -0700 Subject: Python vs PHP vs Perl mapscript In-Reply-To: Message-ID: Jon, You are welcome. There is no wiki right now, but I hear that the target for a new one is mid-Spring. cheers, Sean On Jan 18, 2005, at 12:40 PM, Jon Saints wrote: > Wow... > > Thanks so much Sean. I believe that this is a great > overview. Is there a mapserver wiki somewhere where we > could publish this information. > > Jon > > > --- Sean Gillies wrote: > >> On Jan 18, 2005, at 10:38 AM, Jon Saints wrote: >> >>> Hi >>> >>> Are then advantages/disavantages in terms of >> features >>> of using mapscript in python, perl, or php? >>> >>> Does one mapscript have more functionality than >>> another? Is one developed more heavily? >>> >>> Thanks >>> Jon >>> >> >> Jon, >> >> The Python and Perl modules are generated from the >> same templates with >> a few extra useful methods that are implemented only >> for Python: >> enhanced imageObj constructor and image output, for >> example. Other >> than that, they are equivalent. Python benefits >> from having many usage >> examples within the mapscript unit tests, but any >> Perl hacker can >> translate the unit tests to their own scripts. >> Python hooks up to >> other open source GIS software like GDAL/OGR, GEOS, >> and OpenEV better >> than Perl or PHP, and this is a big plus. >> >> All the mapscript modules share a great deal of core >> code: layer and >> map drawing, querying, etc. The PHP interface is, >> however, developed >> separately from Python and Perl's, does not benefit >> from the other >> mapscript unit tests, and in the past year is a bit >> behind the >> Python/Perl mapscript in features and rate of >> development. The main >> difference is that the PHP module lacks a number of >> methods for cloning >> layers, classes, and styles, and for inserting and >> deleting these from >> their "parent" objects. Correct me if I am wrong >> (Daniel?), but I >> think that the original PHP mapscript developers' >> resources are >> currently spent on a higher-level software product >> instead of on the >> lower level mapscript. The Python (and related) >> mapscript module has >> undergone more rapid development because of the >> needs of my ZMapServer >> and Cartographic Objects for Zope software, but most >> users will not >> need these extra features. >> >> As I have said before, PHP is unrivaled for web >> pages that have a >> relatively small amount of logic behind them. It is >> fast and the >> platform is mature and well supported. The PHP >> mapscript has proven >> itself to be very useful. For larger applications >> that just so happen >> to have a web interface, you'll want to consider a >> less web-oriented >> language that is OO and easy to profile, test, and >> refactor. IMO, this >> means Python rather than Perl. >> >> cheers, >> Sean >> >> -- >> Sean Gillies >> sgillies at frii dot com >> http://users.frii.com/sgillies >> > From gis at UNDPHAIS.ORG.NP Tue Jan 18 20:20:10 2005 From: gis at UNDPHAIS.ORG.NP (Sandeep Bashyal) Date: Wed, 19 Jan 2005 10:05:10 +0545 Subject: Need Help Displaying Info from DBFs In-Reply-To: Message-ID: If both the tables are in the same order hte simplest way to join them is with ms excel. If not you can use ms access. The problem with aceess is that it appends zeros after decimals when dealing with numbers. You can join it using acess and use excel to remove the decimals. Have you tried using regular expression instead of: > e.g. EXPRESSION (([FIPS] = 00022) OR ([FIPS] = 00042) OR ([FIPS] = > 00081) ... ad nauseum)). like: $layer->set("classitem","FIPS") $expression=/00022|00042|0081.../ I'm not sure it'll work but you can give it a try. OR you can always look into MyGIS or PostGIS. Best Regards, --sandeep On Tue, 18 Jan 2005 11:20:51 -0500, Michael Elepano wrote: > Sandeep: > > Thanks for your advice. I had a feeling that JOIN was not what I was > looking for. I was hoping to avoid your solution as my EXPRESSION > statement sometimes reaches up to 2500 clauses causing MapServer, PHP, > and IIS to timeout. My EXPRESSION statements gets too big due to the > number of counties (or FIPS codes which number over 3000) in the US. > And while some of the datasets I use only involve a handful of > counties, some other datasets involve over 2500 of the counties. > > I fear my only recourse is to manually join each dataset to my > county.dbf and build simple EXPRESSIONs > > e.g. EXPRESSION ([RAINFALL] > 8) > > rather than complex ones > > e.g. EXPRESSION (([FIPS] = 00022) OR ([FIPS] = 00042) OR ([FIPS] = > 00081) ... ad nauseum)). > > If this is my only recourse, can anyone suggest a good dbf > editor/joiner? Or is there any good php script that can handle this? > It doesn't seem that the PHP/DBF module can do this out-of-box. > > Thanks to all for your help. > > Michael > > On Jan 16, 2005, at 11:44 PM, Sandeep Bashyal wrote: > >> On Fri, 14 Jan 2005 13:08:46 -0500, Michael Elepano >> wrote: >> >>> Hey: >>> >>> I've been using MapServer for about a month now and have gotten >>> relatively far with it. But now I've hit a brick wall. >>> >>> The problem I'm having is showing info from DBFs on my map of the US. >>> I've got two DBFs (one with all the US counties and one with data-- >>> say >>> occurences of avalanches-- for each of those county). I'm trying to >>> color code each county according to occurences of avalanches. >>> >>> Each DBF has a column called FIPS. The avalanche DBF has a column >>> called COUNT that is the basis for my colors. I can use EXPRESSION to >>> single out any column in my county DBF, but I can't seem to reach my >>> avalanche DBF. >>> >>> I'm assuming I'll need to do a JOIN. My attempt follows below. Any >>> advice would be appreciated. >>> >>> Michael >>> >>> ###################### >>> ## my attempt at an avalanche layer >>> ###################### >>> LAYER >>> NAME "layerAvalanche" >>> TYPE POLYGON >>> STATUS ON >>> DATA "counties.dbf" >>> PROJECTION >>> "proj=latlong" >>> "ellps=GRS80" >>> "datum=NAD83" >>> END >>> >>> CLASS >>> NAME "classGreen" >>> OUTLINECOLOR 255 0 255 >>> COLOR 0 255 0 >>> EXPRESSION ([COUNT] > 5) >>> END >>> >>> JOIN >>> NAME "joinAvalanche" >>> TABLE "C:\my\path\to\avalanches.dbf" >>> FROM "FIPS" >>> TO "FIPS" >>> END >>> END >>> >>> >>> >> Michael, >> >> As far as I understand, you want to set up classes using data from a >> dbf file that is not associated with the shapefile. The JOIN thing can >> only be used for querying and only when you are using templates for >> displaying query results. If you want to color code the counties using >> external data the simplest way is to append the fileds in from the >> avalanches.dbf to counties.dbf. If, for any reason this cannot be >> done, then you can generate classes and expressions dynamically with >> mapscript. Here is the php mapscript code I use to classify districts >> into "$no_classes" number of classes (using arcview-style quantile >> method) using data from an external mysql database (the external >> database has a field called DIST_ID that associates with the >> shapefile): >> >> //run sql query >> $sql = "SELECT DIST_ID, DIST_NAME, ".$databasefield." FROM >> DISTRICTS_".$databasetable.$filter_where; >> $result = mysql_query($sql, $connection); >> // assign sql results into arrays >> while ($row = mysql_fetch_assoc($result)){ >> $ID[]=$row["DIST_ID"]; >> $DIST_NAME[]=$row["DIST_NAME"]; >> ${$databasefield}[]=$row[$databasefield]; >> } //end while >> //sort the query results >> if (${$databasefield}){array_multisort(${$databasefield}, SORT_ASC, >> SORT_NUMERIC, $DIST_NAME, SORT_STRING, $ID, SORT_STRING);} >> mysql_free_result($result); >> mysql_close($connection); >> //count the number of records in the array >> $no_records=count($ID); >> if ($no_classes > $no_records){$no_classes = $no_records;} >> if ($no_classes > 0){ >> //number of class items >> $no_classitems = ceil($no_records / $no_classes); >> //split the arrays into chunks >> $class_ID=array_chunk($ID,$no_classitems,true); >> $class_value=array_chunk(${$databasefield},$no_classitems,true); >> } // end if $no_classes > 0 >> //set classitem >> $layer_districts->set("classitem","OBJID"); >> //draw classes >> $i=0; >> while ($i < $no_classes){ >> $i++; >> //class expressions >> $class_array = $class_ID[$i-1]; >> if ($class_array){ >> $expression[$i]="/".implode("|",$class_array)."/"; >> //legend key labels >> >> $class_legend_key1=$class_value[$i-1][($i-1)*$no_classitems]; >> >> $class_legend_key2=$class_value[$i-1][($i-1)*$no_classitems + >> $no_classitems -1]; >> if ($class_legend_key2 == NULL){$class_legend_key2 = >> $class_value[$i-1][$no_records-1];} >> $class_legend_key[$i]=$class_legend_key1." to >> ".$class_legend_key2; >> //draw layers >> $class[$i] = ms_newClassObj($layer_districts); >> $class[$i]->set("name",$class_legend_key[$i]); >> $class[$i]->setexpression($expression[$i]); >> $class_style[$i] = ms_newStyleObj ($class[$i]); >> $class_style[$i]->outlinecolor->setRGB(-1,-1,-1); >> >> $class_style[$i]->color->setRGB($color_r[$i-1],$color_g[$i >> -1],$color_b[$i-1]); >> } // end if $class_array >> }//end draw classes >> >> >> -- >> Sandeep Bashyal >> -- >> National GIS Officer >> UNCU, United Nations Nepal >> UN House, Pulchowk, G.P.O. Box 107, Kathmandu, Nepal >> Tel: (+977) 01 5543957, (+977) 01 5554304 >> Cell:(+977) 9841270854, Fax: (+977) 01 5528059 >> ------------------------------------------------------ >> mailto:gis at undphais.org.np >> mailto:sandeep at earthmapping.com >> http://www.un.org.np >> > > -- Sandeep Bashyal -- National GIS Officer UNCU, United Nations Nepal UN House, Pulchowk, G.P.O. Box 107, Kathmandu, Nepal Tel: (+977) 01 5543957, (+977) 01 5554304 Cell:(+977) 9841270854, Fax: (+977) 01 5528059 ------------------------------------------------------ mailto:gis at undphais.org.np mailto:sandeep at earthmapping.com http://www.un.org.np From floerke at DOCTRONIC.DE Tue Jan 18 23:24:48 2005 From: floerke at DOCTRONIC.DE (Holger Floerke) Date: Wed, 19 Jan 2005 01:24:48 -0600 Subject: Need Help Displaying Info from DBFs Message-ID: Hi Michael, > 1) SYSTEM SOLUTION > Create a temporary shapefile with a feature table (.dbf) that is > joined. This temp dataset could be produced at daily or hourly > intervals and could stay fairly up to date. You could readily script > this in Perl (using DBI and XBase) or Python (using shapelib) and run > it under cron. No need for PHP. I am working on a solution where you can specify the dbf-filename seperate from the shapefile-filename with php mapscript. The main advantage is you don't have to waste space for the copies of the shp/shx-files. You have to use php, but you can join/switch your dbf-files easily. If somebody is interested in, I will post the code modifications to the list. HolgeR From fsozzi at INTERCAD.CH Wed Jan 19 01:07:52 2005 From: fsozzi at INTERCAD.CH (Francesco Sozzi) Date: Wed, 19 Jan 2005 10:07:52 +0100 Subject: QueryByRect Problems on shp point Message-ID: Hi Lowell, No I haven't any logging. At the moment I solved the problem by converting rectangle into a shape object and issuing a QueryByShape: in this way it works. Strange... Francesco ----- Original Message ----- From: "Lowell Filak" To: Sent: Tuesday, January 18, 2005 6:13 PM Subject: Re: [UMN_MAPSERVER-USERS] QueryByRect Problems on shp point > The following message was sent by Francesco Sozzi > on Mon, 17 Jan 2005 11:55:02 +0100. > > > Hi all, > > > > I am having problems on querying a shapfile layer of type point. > > > > The code I use is: > > $qresult = $layer->queryByRect($rectDrawnedMapCoord); > > where $rectDrawnedMapCoord is a rectangle with map coordinates that > contains > > several points. > > > > The problem is that I get an empty result. > > > > Here you are some notes: > > - I have problems only on shapefile layers of type point; queryByRect > works > > properly on shapefile polygon and line > > - I an Oracle Spatial copy (exatly the same point objects and data) an it > > works: I get right resul on queryByRect > > > > Anybody have any suggestions? > > Francesco, > > Do you have any logging turned on that could point to a problem possibly > accessing the shapefile? > > Lowell > From joseluismapserver at YAHOO.ES Wed Jan 19 01:09:28 2005 From: joseluismapserver at YAHOO.ES (Jose Luis Gonzalez) Date: Wed, 19 Jan 2005 10:09:28 +0100 Subject: Maps, coordinates Message-ID: I am quite new using mapserver, and I want to do an application, but I do not know how to start. I am using Mapserver 4.4 over linux, java servlets. By the moment what I want to do is to show a map on a webpage. Once it is drawn, I will have some UTM coordinates that I have to draw on the map as some ponits. So, I would like someone to guide me on what I need to do this, I mean: 1) What type of map format do I need: raster, shapefile? 2) Where can I pick the map I need (find the shapefile)? 3) Do I have to manage the .map file? 4) In what way?I mean, how do I know the extension or other parameters for example? 5) How do I know which are the coordinates of the corners of my map, so I can know were to draw the points I need?Or isn't it necesary?If so how can I do it? I know there are many questions. At least if someone could tell me what and where to look for it; or even better tell me some replys to my questions. Thank you Jose Luis --------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From solo6259 at YAHOO.COM Wed Jan 19 02:08:01 2005 From: solo6259 at YAHOO.COM (Solomon Maina Thuo) Date: Wed, 19 Jan 2005 04:08:01 -0600 Subject: oracle spatial queries Message-ID: hi guys. i got problems performing querybypoint. i am connecting to oraclespatial 9.0 rv 2 running on a linux box. i am using mapserver 4.2 and so have i have been able to solve most problems relating to connecting to the database and displaying layers. i am using the native connection method. the problem is that i don't know how to query the databse about specific points. just don't know how. please help From sunspam at WINDGAZER.NL Wed Jan 19 02:15:27 2005 From: sunspam at WINDGAZER.NL (Martin van Dijken) Date: Wed, 19 Jan 2005 11:15:27 +0100 Subject: Cache of WFS GML files Message-ID: For the past year I've been using mapserver for showing maps containing wfs features. I extensively use the %keyword% replace mechanism in the url to pass parameters from my webapp through the mapserver to my feature server. Recently I've been asked to add some extra query abilities to the website and also to the feature server. Adding this ability creates urls of large lengths. I have one example that is 360 chars long. In this case and others, mapserver's behaviour to cache GML on the file system becomes a huge problem. Suddenly all my maprequests fail with the message "cannot create file [url]". Is there a way to circumvent this? Either disabling the cache, having mapserver store the files under different names, anything will do. Thanks in advance, Martin van Dijken From fsozzi at INTERCAD.CH Wed Jan 19 03:31:28 2005 From: fsozzi at INTERCAD.CH (Francesco Sozzi) Date: Wed, 19 Jan 2005 12:31:28 +0100 Subject: oracle spatial queries Message-ID: Hi, I send you a couple of parts of my code that works fine with Oracle 9 (I uses for Polygons, Lines and Points). This uses QueryByRect, but with some simple changes you can also uses with QueryByPoint. Hope this helps. Regards Francesco //////////////////////////////////////////////////////////////////////// ... //////////////////////////////////////////////////////////////////////// //set current extent (got in map coordinates) $extentMapCoordStr = explode(" ",$hiddenMapCurrentExtent); $gMap->setextent($extentMapCoordStr[0], $extentMapCoordStr[1], $extentMapCoordStr[2], $extentMapCoordStr[3]); //get box drawned extent (in screen coordinates) $rectDrawnedScreenCoord = explode(" ",$hiddenMapImageBox); $minXObj=hlpPixelToGeo($gMap,$rectDrawnedScreenCoord[0],$rectDrawnedScreenCo ord[1]); $maxXObj=hlpPixelToGeo($gMap,$rectDrawnedScreenCoord[2],$rectDrawnedScreenCo ord[3]); $rectDrawnedMapCoord = ms_newrectObj(); $rectDrawnedMapCoord->setextent($minXObj->x, $minXObj->y, $maxXObj->x, $maxXObj->y); //get layer $isLayerFound=FALSE; for($idxLayer=0;$idxLayer<$gMap->numlayers;$idxLayer++) { $layer=$gMap->getLayer($idxLayer); if($layer->name!=$hiddenCurLayer) continue; $isLayerFound=TRUE; break; } if(!$isLayerFound) break; //set query $qresult = @$layer->queryByRect($rectDrawnedMapCoord); //////////////////////////////////////////////////////////////////////// ... //////////////////////////////////////////////////////////////////////// function hlpPixelToGeo($map,$x,$y) { $minx = $map->extent->minx; $miny = $map->extent->miny; $maxx = $map->extent->maxx; $maxy = $map->extent->maxy; $dx = $maxx - $minx; $dy = $maxy - $miny; $width = $map->width; $height = $map->height; $dxpp = (double)$dx/$width; $dypp = (double)$dy/$height; $geox = $minx + $dxpp*$x; $geoy = $maxy - $dypp*$y; $pointObj = ms_newPointObj(); $pointObj->setXY($geox,$geoy); return $pointObj; } ----- Original Message ----- From: "Solomon Maina Thuo" To: Sent: Wednesday, January 19, 2005 11:08 AM Subject: [UMN_MAPSERVER-USERS] oracle spatial queries > hi guys. i got problems performing querybypoint. i am connecting to > oraclespatial 9.0 rv 2 running on a linux box. i am using mapserver 4.2 and > so have i have been able to solve most problems relating to connecting to > the database and displaying layers. i am using the native connection > method. the problem is that i don't know how to query the databse about > specific points. just don't know how. please help > > From lfilak at MEDINACO.ORG Wed Jan 19 05:29:30 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Wed, 19 Jan 2005 08:29:30 -0500 Subject: QueryByRect Problems on shp point Message-ID: Strange. Is there any chance the points don't form a rectangle but rather a parallelogram, quadrilateral, ...? What if you draw the shapeobj on the map? Lowell The following message was sent by "Francesco Sozzi" on Wed, 19 Jan 2005 10:07:52 +0100. > Hi Lowell, > > No I haven't any logging. > At the moment I solved the problem by converting rectangle into a shape > object and issuing a QueryByShape: in this way it works. > Strange... > > Francesco > > ----- Original Message ----- > From: "Lowell Filak" > To: > Sent: Tuesday, January 18, 2005 6:13 PM > Subject: Re: [UMN_MAPSERVER-USERS] QueryByRect Problems on shp point > > > > The following message was sent by Francesco Sozzi > > on Mon, 17 Jan 2005 11:55:02 +0100. > > > > > Hi all, > > > > > > I am having problems on querying a shapfile layer of type point. > > > > > > The code I use is: > > > $qresult = $layer->queryByRect($rectDrawnedMapCoord); > > > where $rectDrawnedMapCoord is a rectangle with map coordinates that > > contains > > > several points. > > > > > > The problem is that I get an empty result. > > > > > > Here you are some notes: > > > - I have problems only on shapefile layers of type point; queryByRect > > works > > > properly on shapefile polygon and line > > > - I an Oracle Spatial copy (exatly the same point objects and data) an > it > > > works: I get right resul on queryByRect > > > > > > Anybody have any suggestions? > > > > Francesco, > > > > Do you have any logging turned on that could point to a problem possibly > > accessing the shapefile? > > > > Lowell > > > From trondmm-mapserver at CRUSADERS.NO Wed Jan 19 06:31:01 2005 From: trondmm-mapserver at CRUSADERS.NO (Trond Michelsen) Date: Wed, 19 Jan 2005 15:31:01 +0100 Subject: time queries with mapserver 4.4.1 Message-ID: Hi. I'm still unsuccessful in trying to understand how to make a time query in mapserver 4.4.1, and I'd appreciate any help on the subject. I have several layers that I access with WMS through mapserver, and some of these layers can show data for different dates and times. Here's an example of a layer definition in my map file. --8<-- LAYER NAME "wind" STATUS ON TYPE RASTER OFFSITE 255 255 255 CONNECTION "http://wmsserver/cgi-bin/wms.cgi?" CONNECTIONTYPE WMS PROJECTION "proj=stere" "a=6371000" "b=6371000" "lat_0=90" "lat_ts=60" "lon_0=0" END METADATA "wms_name" "wind" "wms_server_version" "1.1.1" "wms_formatlist" "image/png" "wms_format" "image/png" END END --8<-- I've seen suggestions that it's possible to use %var% for every parameter in the query string, so I tried to add "wms_time %time%" to the metadata, and then add a select-box with appropriate dates to the web-page, but that passed "time=%25time%25" to the WMS-server. Being able to make queries at all is of course the most important issue I'd like to have solved, but I'm also a bit curious about how I define which times that are appropriate. How do I configure the mapfile, so that mapserv.cgi adds the proper -tag to a GetCapabilities response? Also, is it possible to get mapserv.cgi to automatically fill inn available dates in the web template, or will I have to change it every time the available dates changes? -- Trond Michelsen From m.simonse at VICREA.NL Wed Jan 19 07:02:46 2005 From: m.simonse at VICREA.NL (Merlijn Simonse) Date: Wed, 19 Jan 2005 09:02:46 -0600 Subject: timeout with new Mapserv 441 Message-ID: Hi all, I updated my mapserv 4.0 executable with the Windows binary form the mapserver page (version 441] without changing my client. I updated with the purpose of making a connection to Oracle without using OGR to achieve a better performance. This goal I achieved, but the problem is that about every 5 to 10 times I request a map, the map isn?t created within the timeout of 3(!) minutes. In the Windows system event-log I get a very strange error: The script started from the URL '/scripts/ms441oci/mapserv.exe' with parameters 'appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl= appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appur l=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=app url=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=a ppurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl =appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appu rl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=ap purl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl= appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appur l=appurl=appurl=appurl=appurl=%2FEcologAM%2F&approot=D%3A%5CecologAM% 5Cwebsite%5C&savequery=true&map=D%3A%5CecologAM%5Cmap% 5Cecolog441.map&program=%2Fscripts%2Fms441oci% 2Fmapserv.exe&map_web_imagepath=D%3A%5CecologAM%5Cwebsite%5Ctmp% 5C&map_web_imageurl=%2FEcologAM%2Ftmp%2F&map_shapepath=D%3A%5CEcologAM% 5Cmap%5Cdata&map_web_template=D%3A%5CecologAM%5Cwebsite%5Cmapserver% 5Cmapform.htm&imgext=153444.381292+463917.324950+154820.381292+464765.94751 8&mapsize=514+317&scale=7588.471882&mapext=153444.381292+463917.324950+1548 20.381292+464765.947518&map_scalebar_status=embed&map_legend_status=on&map_ reference_status=on&layers=hectometerhok&mode=nquery&queryfile=&qstring=LOC ATIE_ID+% 3D+2215859&qlayer=hectometerhok&qitem=LOCATIE_ID&img.x=335&img.y=81&ref.x=& ref.y=&imgbox=&width=500&height=400& . . . 16 pages of this . . .947518&mapsize=514+317&scale=7588.471882&mapext=153444.381292+463917.32495 0+154820.381292+464765.947518&map_scalebar_status=embed&map_legend_status=o n&map_reference_status=on&layers=hectometerhok&mode=nquery&queryfile=&qstri ng=LOCATIE_ID+% 3D+2215859&qlayer=hectometerhok&qitem=LOCATIE_ID&img.x=335&img.y=81&ref.x=& ref.y=&imgbox=&width=500&height=400&map_querymap_size=514+317&oldqstring=22 34001&useRedline=1&showRedlineType=0&redlineType=point&useClearSelect=0&deb ug=false&map_web_header=D%3A%5CecologAM%5Cwebsite%5Cmapserver% 5Cmapform.htm&con=florafoort% 2Fflorafoort at fenfontw&map_extent=149000.0+457000.0+162000.0+470000.0' has not responded within the configured timeout period. The HTTP server is terminating the script. For additional information specific to this message please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp. Every parameter I send to mapserv seemed to be copied about a 100 times (?). Has anybody seen this error before? The parameters I send are not different to ones I send when I do get a Map returned. Thanks for any help. Merlijn From assefa at DMSOLUTIONS.CA Wed Jan 19 07:11:01 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 19 Jan 2005 10:11:01 -0500 Subject: Mapscript: PHP5 and Windows In-Reply-To: <41E7A169.2030705@tiscali.fr> Message-ID: I have placed the windows binaries of php/mapscript build with php5.0.2 on maptools.org (http://www.maptools.org/php_mapscript/index.phtml?page=downloads.html development version). I have tested it with a simple php/mapscript application (Gmap). Please let me know of you have any problems. Later, Mathieu PARENT wrote: > Hi, > the bug #1100 (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1100) > is fixed now. Thanks. > Due to a lot of missing utilities, i can't get it compiled on windows. > Do you have a build of it ? > Thanks > > Best regards > > Mathieu Parent > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From assefa at DMSOLUTIONS.CA Wed Jan 19 07:42:07 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 19 Jan 2005 10:42:07 -0500 Subject: time queries with mapserver 4.4.1 In-Reply-To: <20050119143101.GD12286@crusaders.no> Message-ID: There is a doc explaining the current wms time support in Mapserver at : http://mapserver.gis.umn.edu/doc/wms-time-support-howto.html Later, Trond Michelsen wrote: > Hi. > > I'm still unsuccessful in trying to understand how to make a time > query in mapserver 4.4.1, and I'd appreciate any help on the subject. > > I have several layers that I access with WMS through mapserver, and > some of these layers can show data for different dates and times. > Here's an example of a layer definition in my map file. > > --8<-- > LAYER > NAME "wind" > STATUS ON > TYPE RASTER > OFFSITE 255 255 255 > > CONNECTION "http://wmsserver/cgi-bin/wms.cgi?" > CONNECTIONTYPE WMS > > PROJECTION > "proj=stere" > "a=6371000" > "b=6371000" > "lat_0=90" > "lat_ts=60" > "lon_0=0" > END > > METADATA > "wms_name" "wind" > "wms_server_version" "1.1.1" > "wms_formatlist" "image/png" > "wms_format" "image/png" > END > > END > --8<-- > > I've seen suggestions that it's possible to use %var% for every > parameter in the query string, so I tried to add "wms_time %time%" to > the metadata, and then add a select-box with appropriate dates to the > web-page, but that passed "time=%25time%25" to the WMS-server. > > Being able to make queries at all is of course the most important > issue I'd like to have solved, but I'm also a bit curious about how I > define which times that are appropriate. How do I configure the > mapfile, so that mapserv.cgi adds the proper -tag to a > GetCapabilities response? Also, is it possible to get mapserv.cgi to > automatically fill inn available dates in the web template, or will I > have to change it every time the available dates changes? > > -- > Trond Michelsen > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From alhim at INTRACOM.GR Wed Jan 19 07:37:30 2005 From: alhim at INTRACOM.GR (Alex Chimarios) Date: Wed, 19 Jan 2005 09:37:30 -0600 Subject: MapServer on PDA Message-ID: I have a handheld device(iPAQ h5400 with Intel Xscale processor). Has anyone compiled Mapserver for such a device ? From mathieuparent at USERS.SOURCEFORGE.NET Wed Jan 19 08:28:28 2005 From: mathieuparent at USERS.SOURCEFORGE.NET (Mathieu Parent) Date: Wed, 19 Jan 2005 17:28:28 +0100 Subject: Mapscript: PHP5 and Windows In-Reply-To: <41EE7885.4080004@dmsolutions.ca> Message-ID: Thank you very much Yewondwossen Assefa a ?crit : > I have placed the windows binaries of php/mapscript build with php5.0.2 > on maptools.org > (http://www.maptools.org/php_mapscript/index.phtml?page=downloads.html > development version). > > I have tested it with a simple php/mapscript application (Gmap). > Please let me know of you have any problems. > > Later, > > Mathieu PARENT wrote: > >> Hi, >> the bug #1100 (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1100) >> is fixed now. Thanks. >> Due to a lot of missing utilities, i can't get it compiled on windows. >> Do you have a build of it ? >> Thanks >> >> Best regards >> >> Mathieu Parent >> > From rob at DATAFLOWDESIGN.COM Wed Jan 19 09:02:09 2005 From: rob at DATAFLOWDESIGN.COM (Rob P.) Date: Wed, 19 Jan 2005 11:02:09 -0600 Subject: Configure error when building for Apache DSO Message-ID: According to the the HISTORY.TXT file distributed with ms 4.4.1, php_mapscript can be built as an Apache DSO. However, when I run the configure script this does not seem to be the case: ./configure --with-php=/usr/ports/lang/php4/work/php-4.3.10 \ --with-php-regex-dir=/usr/ports/lang/php4/work/php-4.3.10 \ --with-apxs=/usr/local/sbin/apxs --with-gd=/usr/local checking whether we should use PHP's regex... yes using PHP regex source from /usr/ports/lang/php4/work/php-4.3.10/regex PHP/MapScript module configured. configure: error: !!! The current version of PHP MapScript requires PHP4 configured as !!! !!! a CGI and cannot be used with PHP4 configured as an Apache module,!!! !!! so you cannot use the --with-apxs option. !!! !!! See: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI !!! Does anyone see what I am doing wrong here? OS is FreeBSD 5.3 Apache/1.3.33 php 4.3.10 Thankyou for your help Rov From arnulf.christl at CCGIS.DE Wed Jan 19 09:05:19 2005 From: arnulf.christl at CCGIS.DE (Arnulf Christl) Date: Wed, 19 Jan 2005 18:05:19 +0100 Subject: PostGIS Connection Trouble In-Reply-To: <20050119143101.GD12286@crusaders.no> Message-ID: Hi, I am at a loss, we use MapServer/PostGIS every day but this one wont work. PostgreSQL 7.4.2 PostGIS 0.9.0 SuSE Linux Enterprise Server 9 The error message looks strange to me, never saw that one. Especially the part: "oid::text from WHERE &&" Anybody any idea? See the MAP-file DATA string at the bottom. ### msDrawMap(): Image handling error. Failed to draw layer named 'poly'. prep_DB(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d()),'NDR'),oid::text from WHERE && setSRID('BOX3D(3275833.33333155 5400833.33332511,3524166.66666667 5649166.66666667)'::BOX3D, find_srid('','','') )' <br><br> Postgresql reports the error as 'FEHLER: Fehler ??syntax error?? bei ??WHERE?? at character 104 '<br><br> More Help:<br><br> Error with POSTGIS data variable. You specified '&lt;check your .map file&gt;'.<br> Standard ways of specifiying are : <br> (1) 'geometry_column from geometry_table' <br> (2) 'geometry_column from (&lt;sub query&gt;) as foo using unique &lt;column name&gt; using SRID=&lt;srid#&gt;' <br><br> Make sure you put in the 'using unique &lt;column name&gt;' and 'using SRID=#' clauses in. <br><br>For more help, please see http://postgis.refractions.net/documentation.php <br><br>Mappostgis.c - version of Jan 23/2004. msPOSTGISLayerParseData(): Query error. Error parsing POSTGIS data variable. Must contain 'geometry_column from table_name' or 'geom from (subselect) as foo' (couldnt find ' from '). More help: <br><br> Error with POSTGIS data variable. You specified 'SELECT the_geom FROM (SELECT the_geom AS the_geom, betrnr AS betrnr, jahr AS jahr, oid AS oid FROM user_polygon) AS foo USING UNIQUE oid SRID=31467'.<br> Standard ways of specifiying are : <br> (1) 'geometry_column from geometry_table' <br> (2) 'geometry_column from (&lt;sub query&gt;) as foo using unique &lt;column name&gt; using SRID=&lt;srid#&gt;' <br><br> Make sure you put in the 'using unique &lt;column name&gt;' and 'using SRID=#' clauses in. <br><br>For more help, please see http://postgis.refractions.net/documentation.php <br><br>Mappostgis.c - version of Jan 23/2004. ### The history of my helplessness from bottom to top. We've tried the SELECTS with capitals, repeated uses of 'USING' etc. wont work. DATA "SELECT the_geom FROM (SELECT the_geom AS the_geom, betrnr AS betrnr, jahr AS jahr, oid AS oid FROM user_polygon) AS foo USING UNIQUE user_polygon.oid USING SRID=31467" # DATA "the_geom FROM (SELECT the_geom AS the_geom, betrnr AS betrnr, jahr AS jahr, oid AS oid FROM user_polygon) AS foo USING UNIQUE oid USING SRID=31467" # DATA "SELECT the_geom FROM (SELECT the_geom AS the_geom, betrnr AS betrnr, jahr AS jahr, oid AS oid FROM user_polygon) AS foo USING UNIQUE oid USING SRID=31467;" # DATA "SELECT the_geom FROM (SELECT the_geom AS the_geom, betrnr AS betrnr, jahr AS jahr, oid AS oid FROM user_polygon) AS foo USING UNIQUE oid USING SRID=31467" # DATA "the_geom FROM (SELECT the_geom AS the_geom, betrnr AS betrnr, jahr AS jahr, oid AS oid FROM user_polygon) as foo using unique oid using SRID=31467" # DATA 'the_geom FROM (SELECT betrnr, jahr FROM user_polygon) AS foo USING UNIQUE SRID=31467' # DATA "the_geom FROM user_polygon" Best regards, Arnulf. From michael at LIVEPROCESS.COM Wed Jan 19 09:31:55 2005 From: michael at LIVEPROCESS.COM (Michael Elepano) Date: Wed, 19 Jan 2005 12:31:55 -0500 Subject: Need Help Displaying Info from DBFs In-Reply-To: Message-ID: Holger: This sounds like it will do exactly what I need. I'm in PHP. I have one shp/shx set but multiple dbfs to map onto it. Please post so we can all enjoy. Michael On Jan 19, 2005, at 2:24 AM, Holger Floerke wrote: > I am working on a solution where you can specify the dbf-filename > seperate > from the shapefile-filename with php mapscript. The main advantage is > you > don't have to waste space for the copies of the shp/shx-files. You > have to > use php, but you can join/switch your dbf-files easily. If somebody is > interested in, I will post the code modifications to the list. > > HolgeR From bfraser at GEOANALYTIC.COM Wed Jan 19 09:47:01 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Wed, 19 Jan 2005 10:47:01 -0700 Subject: timeout with new Mapserv 441 Message-ID: Merlijn, During my testing of Mapserver, I've had similar time-out errors logged when I've requested mapserv to process alot of data. I'm using Mapserv v4.4.0, Windows 2000 Server SP4, IIS5.0. My logged errors are much more reasonable in length (no 16 pages of "appurl" stuff): The script started from the URL '/cgi-bin/mapserv.exe' with parameters 'map=GV2000FL_z11.map&FORMAT=IMAGE/JPEG&VERSION=1.1.1&LAYERS=GV2000FL%5FZ11& STYLES=&REQUEST=GETMAP&SRS=EPSG:32611&BBOX=%2D2000000%2E000000000000000,%2D9 000000%2E000000000000000,3000000%2E000000000000000,9000000%2E000000000000000 &WIDTH=997&HEIGHT=3589&EXCEPTIONS=APPLICATION/VND.OGC.SE_XML&' has not responded within the configured timeout period. The HTTP server is terminating the script. For additional information specific to this message please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp. In your case, it looks like mapserver is not performing the template variable substitution correctly (or at least as expected), with some kind of nesting/recursion going on with respect to "appurl"? Possibly some mapserver code changes have been done in this area since 4.0? Brent Fraser ----- Original Message ----- From: "Merlijn Simonse" To: Sent: Wednesday, January 19, 2005 8:02 AM Subject: [UMN_MAPSERVER-USERS] timeout with new Mapserv 441 Hi all, I updated my mapserv 4.0 executable with the Windows binary form the mapserver page (version 441] without changing my client. I updated with the purpose of making a connection to Oracle without using OGR to achieve a better performance. This goal I achieved, but the problem is that about every 5 to 10 times I request a map, the map isn't created within the timeout of 3(!) minutes. In the Windows system event-log I get a very strange error: The script started from the URL '/scripts/ms441oci/mapserv.exe' with parameters 'appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl= appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appur l=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=app url=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=a ppurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl =appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appu rl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=ap purl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl= appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appur l=appurl=appurl=appurl=appurl=%2FEcologAM%2F&approot=D%3A%5CecologAM% 5Cwebsite%5C&savequery=true&map=D%3A%5CecologAM%5Cmap% 5Cecolog441.map&program=%2Fscripts%2Fms441oci% 2Fmapserv.exe&map_web_imagepath=D%3A%5CecologAM%5Cwebsite%5Ctmp% 5C&map_web_imageurl=%2FEcologAM%2Ftmp%2F&map_shapepath=D%3A%5CEcologAM% 5Cmap%5Cdata&map_web_template=D%3A%5CecologAM%5Cwebsite%5Cmapserver% 5Cmapform.htm&imgext=153444.381292+463917.324950+154820.381292+464765.94751 8&mapsize=514+317&scale=7588.471882&mapext=153444.381292+463917.324950+1548 20.381292+464765.947518&map_scalebar_status=embed&map_legend_status=on&map_ reference_status=on&layers=hectometerhok&mode=nquery&queryfile=&qstring=LOC ATIE_ID+% 3D+2215859&qlayer=hectometerhok&qitem=LOCATIE_ID&img.x=335&img.y=81&ref.x=& ref.y=&imgbox=&width=500&height=400& . . . 16 pages of this . . .947518&mapsize=514+317&scale=7588.471882&mapext=153444.381292+463917.32495 0+154820.381292+464765.947518&map_scalebar_status=embed&map_legend_status=o n&map_reference_status=on&layers=hectometerhok&mode=nquery&queryfile=&qstri ng=LOCATIE_ID+% 3D+2215859&qlayer=hectometerhok&qitem=LOCATIE_ID&img.x=335&img.y=81&ref.x=& ref.y=&imgbox=&width=500&height=400&map_querymap_size=514+317&oldqstring=22 34001&useRedline=1&showRedlineType=0&redlineType=point&useClearSelect=0&deb ug=false&map_web_header=D%3A%5CecologAM%5Cwebsite%5Cmapserver% 5Cmapform.htm&con=florafoort% 2Fflorafoort at fenfontw&map_extent=149000.0+457000.0+162000.0+470000.0' has not responded within the configured timeout period. The HTTP server is terminating the script. For additional information specific to this message please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp. Every parameter I send to mapserv seemed to be copied about a 100 times (?). Has anybody seen this error before? The parameters I send are not different to ones I send when I do get a Map returned. Thanks for any help. Merlijn From kenlord at GMAIL.COM Wed Jan 19 09:52:00 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Wed, 19 Jan 2005 09:52:00 -0800 Subject: MapServer on PDA In-Reply-To: Message-ID: Hi Alex, I've heard of mapserver websites designed to display nicely on a PDA. There's a Russian company that specializes in it. But why would you want to host a mapserver website from your PDA? You don't need mapserver compiled on your machine to view mapserver websites. Cheers, Ken On Wed, 19 Jan 2005 09:37:30 -0600, Alex Chimarios wrote: > I have a handheld device(iPAQ h5400 with Intel Xscale processor). Has anyone > compiled Mapserver for such a device ? From fsozzi at INTERCAD.CH Wed Jan 19 10:05:56 2005 From: fsozzi at INTERCAD.CH (Francesco Sozzi) Date: Wed, 19 Jan 2005 19:05:56 +0100 Subject: QueryByRect Problems on shp point Message-ID: Hi Lowell, no, I think coordinates are correct. I create rectangle by: $newExtentScreenCoordStr = explode(" ",$hiddenMapImageBox); $newExtentScreenCoord = ms_newrectObj(); $newExtentScreenCoord->setextent($newExtentScreenCoordStr[0], $newExtentScreenCoordStr[1], $newExtentScreenCoordStr[2], $newExtentScreenCoordStr[3]); Where $hiddenMapImageBox is a box created by jBox. Please also note that the same rectangle works properly for lines and polygons and that it works properly for point on Oracle. Best regards Francesco ----- Original Message ----- From: "Lowell Filak" To: "Francesco Sozzi" ; "Lowell Filak" ; Sent: Wednesday, January 19, 2005 2:29 PM Subject: Re: [UMN_MAPSERVER-USERS] QueryByRect Problems on shp point > Strange. > Is there any chance the points don't form a rectangle but rather a > parallelogram, quadrilateral, ...? > What if you draw the shapeobj on the map? > > Lowell > > The following message was sent by "Francesco Sozzi" > on Wed, 19 Jan 2005 10:07:52 +0100. > > > Hi Lowell, > > > > No I haven't any logging. > > At the moment I solved the problem by converting rectangle into a shape > > object and issuing a QueryByShape: in this way it works. > > Strange... > > > > Francesco > > > > ----- Original Message ----- > > From: "Lowell Filak" > > To: > > Sent: Tuesday, January 18, 2005 6:13 PM > > Subject: Re: [UMN_MAPSERVER-USERS] QueryByRect Problems on shp point > > > > > > > The following message was sent by Francesco Sozzi > > > on Mon, 17 Jan 2005 11:55:02 +0100. > > > > > > > Hi all, > > > > > > > > I am having problems on querying a shapfile layer of type point. > > > > > > > > The code I use is: > > > > $qresult = $layer->queryByRect($rectDrawnedMapCoord); > > > > where $rectDrawnedMapCoord is a rectangle with map coordinates that > > > contains > > > > several points. > > > > > > > > The problem is that I get an empty result. > > > > > > > > Here you are some notes: > > > > - I have problems only on shapefile layers of type point; queryByRect > > > works > > > > properly on shapefile polygon and line > > > > - I an Oracle Spatial copy (exatly the same point objects and data) an > > it > > > > works: I get right resul on queryByRect > > > > > > > > Anybody have any suggestions? > > > > > > Francesco, > > > > > > Do you have any logging turned on that could point to a problem possibly > > > accessing the shapefile? > > > > > > Lowell > > > > > > > > From fsimon at UNIVALI.BR Wed Jan 19 08:12:12 2005 From: fsimon at UNIVALI.BR (Fernando S.) Date: Wed, 19 Jan 2005 16:12:12 +0000 Subject: timeout with new Mapserv 441 In-Reply-To: Message-ID: Hi Merlijn, For oracle connection how did you define your layer? Did you defined any WMS/WFS parameters for this layer? If yes can be a problem with getextent function for oracle spatial driver. (You can see in bugs #1136 and #1111). Thanks. ---------------------------------------------------- Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://g10.cttmar.univali.br - UNIVALI/CTTMAR ---------------------------------------------------- Merlijn Simonse wrote: >Hi all, > >I updated my mapserv 4.0 executable with the Windows binary form the >mapserver page (version 441] without changing my client. I updated with >the purpose of making a connection to Oracle without using OGR to achieve >a better performance. This goal I achieved, but the problem is that about >every 5 to 10 times I request a map, the map isn?t created within the >timeout of 3(!) minutes. In the Windows system event-log I get a very >strange error: > >The script started from the URL '/scripts/ms441oci/mapserv.exe' with >parameters 'appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl= >appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appur >l=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=app >url=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=a >ppurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl >=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appu >rl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=ap >purl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl= >appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appurl=appur >l=appurl=appurl=appurl=appurl=%2FEcologAM%2F&approot=D%3A%5CecologAM% >5Cwebsite%5C&savequery=true&map=D%3A%5CecologAM%5Cmap% >5Cecolog441.map&program=%2Fscripts%2Fms441oci% >2Fmapserv.exe&map_web_imagepath=D%3A%5CecologAM%5Cwebsite%5Ctmp% >5C&map_web_imageurl=%2FEcologAM%2Ftmp%2F&map_shapepath=D%3A%5CEcologAM% >5Cmap%5Cdata&map_web_template=D%3A%5CecologAM%5Cwebsite%5Cmapserver% >5Cmapform.htm&imgext=153444.381292+463917.324950+154820.381292+464765.94751 >8&mapsize=514+317&scale=7588.471882&mapext=153444.381292+463917.324950+1548 >20.381292+464765.947518&map_scalebar_status=embed&map_legend_status=on&map_ >reference_status=on&layers=hectometerhok&mode=nquery&queryfile=&qstring=LOC >ATIE_ID+% >3D+2215859&qlayer=hectometerhok&qitem=LOCATIE_ID&img.x=335&img.y=81&ref.x=& >ref.y=&imgbox=&width=500&height=400& > >. . . 16 pages of this . . > >.947518&mapsize=514+317&scale=7588.471882&mapext=153444.381292+463917.32495 >0+154820.381292+464765.947518&map_scalebar_status=embed&map_legend_status=o >n&map_reference_status=on&layers=hectometerhok&mode=nquery&queryfile=&qstri >ng=LOCATIE_ID+% >3D+2215859&qlayer=hectometerhok&qitem=LOCATIE_ID&img.x=335&img.y=81&ref.x=& >ref.y=&imgbox=&width=500&height=400&map_querymap_size=514+317&oldqstring=22 >34001&useRedline=1&showRedlineType=0&redlineType=point&useClearSelect=0&deb >ug=false&map_web_header=D%3A%5CecologAM%5Cwebsite%5Cmapserver% >5Cmapform.htm&con=florafoort% >2Fflorafoort at fenfontw&map_extent=149000.0+457000.0+162000.0+470000.0' has >not responded within the configured timeout period. The HTTP server is >terminating the script. >For additional information specific to this message please visit the >Microsoft Online Support site located at: >http://www.microsoft.com/contentredirect.asp. > >Every parameter I send to mapserv seemed to be copied about a 100 times >(?). Has anybody seen this error before? The parameters I send are not >different to ones I send when I do get a Map returned. > >Thanks for any help. > >Merlijn > > > From bob.basques at CI.STPAUL.MN.US Wed Jan 19 10:30:27 2005 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Wed, 19 Jan 2005 12:30:27 -0600 Subject: MapServer on PDA In-Reply-To: Message-ID: I can think of a few GPS business opportunities for such a device. The ability to store a basic map along with the GPS tracking would be nice. I've often thought about a cascading mapSERVER setup that would automatically keep the data stores in sync between a static server and mobile version of MapServer. With the advent of some of the ultra portables available (that still run full fledged operating Systems) this idea is becoming more and more feasible bobb Ken Lord wrote: >Hi Alex, > >I've heard of mapserver websites designed to display nicely on a PDA. >There's a Russian company that specializes in it. > >But why would you want to host a mapserver website from your PDA? You >don't need mapserver compiled on your machine to view mapserver >websites. > >Cheers, >Ken > > > >On Wed, 19 Jan 2005 09:37:30 -0600, Alex Chimarios wrote: > > >>I have a handheld device(iPAQ h5400 with Intel Xscale processor). Has anyone >>compiled Mapserver for such a device ? >> >> > > > From jdport at VERITIME.COM Wed Jan 19 10:19:32 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Wed, 19 Jan 2005 13:19:32 -0500 Subject: Offtopic: problems using geo::coder::us on debian Message-ID: Hi all... I'm trying to use the geocoding perl library geo::coder::us downloaded from CPAN. I've installed it and all the pre-requisite libraries as well. When I do "perl Makefile.pl", and "make", there are no problems... but when I do "make test" it fails most of its tests and the resulting code after doing "make install" doesn't work.... it doesn't give an error but it doesn't give any results either. It doesn't even notice if I give it a bogus non-existant .db file. Anybody have any suggestions on how to make this work or an idea of where I can look for help? I'm trying to install this on a debian linux machine. Thanks a lot, Jeff From nicolas.fortin at EC.GC.CA Wed Jan 19 10:27:21 2005 From: nicolas.fortin at EC.GC.CA (Fortin,Nicolas [SteFoy]) Date: Wed, 19 Jan 2005 13:27:21 -0500 Subject: Help on setting LCC projection in Mapserver Message-ID: Hi, You have mush more chance of reply by sending your question directly to the mapserver list (MAPSERVER-USERS at LISTS.UMN.EDU) Check if your epsg file contain this line : # Canada Lambert Conformal Conic <102002> +proj=lcc +lat_1=50 +lat_2=70 +lat_0=40 +lon_0=-96 +x_0=0 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m no_defs <> Greetings, Nicolas -----Message d'origine----- De : Henry Han [mailto:hhan at geotango.com] Envoy? : Wednesday, January 19, 2005 1:20 PM ? : Fortin,Nicolas [SteFoy] Objet : Help on setting LCC projection in Mapserver Hi, I am using MapServer to publish some LCC based vector layers, but it seems that Mapserver does not recognize such layers. I searched goole and found that you have solved the problem. Can you tell me what is wrong with my setting and how to correct it? In the map , I inlude: PROJECTION "init=EPSG:102002" END Then map server returns "msProcessProjection(): Projection library error. projection not named " in the browser Thanks a lot Geomatics Software Engineer GeoTango International Corp. 4850 Keele Street, Toronto, Canada M3J3K1 Email: hhan at geotango.com URL: www.geotango.com From agillesp at VT.EDU Wed Jan 19 13:42:07 2005 From: agillesp at VT.EDU (Abe Gillespie) Date: Wed, 19 Jan 2005 16:42:07 -0500 Subject: Help fixing MapServer code Message-ID: I have a few projects that depend here and there on the REQUIRES map file tag. This feature is broken. I'm thinking about digging into the code myself and trying to fix it. Would someone please point me where to get started (the responsible source file, caveats, general MapServer hacking howtos, etc.). Thanks. -Abe From sgillies at FRII.COM Wed Jan 19 13:34:57 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 19 Jan 2005 14:34:57 -0700 Subject: Help fixing MapServer code In-Reply-To: Message-ID: On Jan 19, 2005, at 2:42 PM, Abe Gillespie wrote: > I have a few projects that depend here and there on the REQUIRES map > file tag. This feature is broken. I'm thinking about digging into the > code myself and trying to fix it. Would someone please point me where > to get started (the responsible source file, caveats, general MapServer > hacking howtos, etc.). > > Thanks. > -Abe > Abe, There's no real roadmap to the code. Your best friends in this adventure will be "grep" and the #mapserver channel on irc.freenode.net. 5 developers hang out there regularly, and 3-4 others drop in occaisionally. We'll be happy to help you start hacking. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From agillesp at VT.EDU Wed Jan 19 13:58:43 2005 From: agillesp at VT.EDU (Abe Gillespie) Date: Wed, 19 Jan 2005 16:58:43 -0500 Subject: Help fixing MapServer code In-Reply-To: Message-ID: Ok, the IRC channel is probably a good place to start. Are there any good howtos on even just doing IRC? I'm traditionally a Windows programmer and have only just gotten started working with OSS. I haven't ever done IRC *gasp*. These days I spend most of my time in Mac OS X, are there any good IRC clients for it? Sorry it got slightly OT. Thanks. -Abe On Jan 19, 2005, at 4:34 PM, Sean Gillies wrote: > On Jan 19, 2005, at 2:42 PM, Abe Gillespie wrote: > >> I have a few projects that depend here and there on the REQUIRES map >> file tag. This feature is broken. I'm thinking about digging into >> the >> code myself and trying to fix it. Would someone please point me where >> to get started (the responsible source file, caveats, general >> MapServer >> hacking howtos, etc.). >> >> Thanks. >> -Abe >> > > Abe, > > There's no real roadmap to the code. Your best friends in this > adventure will be "grep" and the #mapserver channel on > irc.freenode.net. 5 developers hang out there regularly, and 3-4 > others drop in occaisionally. We'll be happy to help you start > hacking. > > cheers, > Sean > > -- > Sean Gillies > sgillies at frii dot com > http://users.frii.com/sgillies > From nunoragil at GMAIL.COM Wed Jan 19 15:04:13 2005 From: nunoragil at GMAIL.COM (Nuno GIL) Date: Wed, 19 Jan 2005 23:04:13 +0000 Subject: meteosat epsg projection code Message-ID: dear listers, we are trying to use some meteosat 2nd generation imagery with mapserver but we cannot determine successfully its epsg projection code. did anyone work with this kind of imagery before? can anyone help us with the answer? we've looked around on the Meteosat site - it only refers to the images being rectified to look like the satellite is located above 0 deg latitude, 0 deg longitude. any help is appreciated. regards, nuno From jbarong at HOTMAIL.COM Wed Jan 19 15:24:36 2005 From: jbarong at HOTMAIL.COM (Juan Baron) Date: Wed, 19 Jan 2005 17:24:36 -0600 Subject: Display JPEG and TIF Message-ID: I don't find the error. I don't display JPEG and TIF because the mapserver don't use gdal. Please, someone say me where is the error. I have Suse 9.0. When I install the gdal-1.2.5 the output is the following: ./configure checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for a sed that does not truncate output... /usr/bin/sed checking for egrep... grep -E checking for ld used by gcc... /usr/i586-suse-linux/bin/ld checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes checking for /usr/i586-suse-linux/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognise dependent libraries... pass_all checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking how to run the C++ preprocessor... g++ -E checking for g77... no checking for f77... no checking for xlf... no checking for frt... no checking for pgf77... no checking for fort77... no checking for fl32... no checking for af77... no checking for f90... no checking for xlf90... no checking for pgf90... no checking for epcf90... no checking for f95... no checking for fort... no checking for xlf95... no checking for ifc... no checking for efc... no checking for pgf95... no checking for lf95... no checking for gfortran... no checking whether we are using the GNU Fortran 77 compiler... no checking whether accepts -g... no checking the maximum length of command line arguments... 32768 checking command to parse /usr/bin/nm -B output from gcc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking if gcc static flag works... yes checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc supports -c -o file.o... yes checking whether the gcc linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes configure: creating libtool appending configuration tag "CXX" to libtool checking for ld used by g++... /usr/i586-suse-linux/bin/ld checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes checking whether the g++ linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC checking if g++ PIC flag -fPIC works... yes checking if g++ supports -c -o file.o... yes checking whether the g++ linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes appending configuration tag "F77" to libtool checking for dlopen in -ldl... yes checking for main in -lm... yes checking for ANSI C header files... (cached) yes checking assert.h usability... yes checking assert.h presence... yes checking for assert.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking for unistd.h... (cached) yes checking dbmalloc.h usability... no checking dbmalloc.h presence... no checking for dbmalloc.h... no checking for dlfcn.h... (cached) yes checking for stdint.h... (cached) yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking whether byte ordering is bigendian... no checking for 64bit integer type... long long checking for 64bit file io... yes checking for int... yes checking size of int... 4 checking for long... yes checking size of long... 4 checking for int8... no checking for int16... no checking for int32... no checking native cpu bit order... lsb2msb checking for vprintf... yes checking for _doprnt... no checking for vsnprintf... yes checking for snprintf... yes checking for atoll... yes checking for gmtime_r... yes checking for localtime_r... yes checking for setlocale... yes checking for local include/lib path... none configure: checking whether we should include thread/mutex support...... thread safe support disabled. checking for deflateInit_ in -lz... yes using pre-installed libz checking for G_gisinit_2 in -lgrass5... no checking for ffopen in -lcfitsio... no libcfitsio not found - FITS support disabled checking for Mopen in -lcsf... yes checking for nc_open in -lnetcdf... no libnetcdf not found - netCDF support disabled checking for png_set_IHDR in -lpng... yes checking png.h usability... yes checking png.h presence... yes checking for png.h... yes using pre-installed libpng. checking for TIFFGetTagListCount in -ltiff... no using internal TIFF code. using internal GeoTIFF code. checking for jpeg_read_scanlines in -ljpeg... yes checking jpeglib.h usability... yes checking jpeglib.h presence... yes checking for jpeglib.h... yes checking for width_in_blocks in jpeglib.h... yes using pre-installed libjpeg. checking for DGifOpenFileName in -lgif... no using internal gif code. checking for cln_GetLayerCapabilities in -logdi31... no checking for FMEObjects... no checking for SDreaddata in -lmfhdf... no checking for jpc_decode in -ljasper... no checking for jp2_decode in -ljasper... no checking for pgx_decode in -ljasper... no checking for NCScbmOpenFileView in -lNCSEcw... no checking for Kakadu JPEG2000 support... not requested. configure: MrSID support disabled. checking for BSB ... enabled checking for OGR ... enabled checking for pg_config... no checking for PostgreSQL... checking for mysql_config... no checking for MySQL... no checking for Xerces C++... disabled checking for SQLConnect in -lodbc... yes odbc library found, but sql.h missing, ODBC support disabled. checking for OCIBindByName in -lclntsh... no checking Checking for DODS... disabled checking Checking for SQLite... disabled checking for geos-config... no checking how to link PROJ.4 library... link dynamically. checking GDAL version... 1.2.5 checking for python... no checking for python1.5... no checking for python1.4... no checking for python1.3... no checking for NumPy include files... missing checking if local/include already standard... no, everything is ok configure: creating ./config.status config.status: creating GDALmake.opt config.status: creating port/cpl_config.h config.status: port/cpl_config.h is unchanged GDAL is now configured for i686-pc-linux-gnu Installation directory: /usr/local C compiler: gcc -O2 C++ compiler: g++ -O2 LIBTOOL support: yes LIBZ support: external GRASS support: no CFITSIO support: no PCRaster support: yes NETCDF support: no LIBPNG support: external LIBTIFF support: internal LIBGEOTIFF support: internal LIBJPEG support: external LIBGIF support: internal OGDI support: no HDF4 support: no KAKADU support: no JASPER support: no ECW support: no MrSID support: no POSTGRESQL support: no MySQL support: no XERCES support: no ODBC support: no OCI support: no DODS support: no SQLite support: no GEOS support: no Statically link PROJ.4: no Python: no enable OGR building: yes After executed make. The output is very longer and I don't copy this. With the make install the output is the following: GNUmakefile:43: warning: overriding commands for target `libgdal.la' GNUmakefile:39: warning: ignoring old commands for target `libgdal.la' (cd port; make) make[1]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/port' make[1]: Nothing to be done for `default'. make[1]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/port' (cd gcore; make) make[1]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/gcore' make[1]: Nothing to be done for `default'. make[1]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/gcore' (cd alg; make) make[1]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/alg' make[1]: Nothing to be done for `default'. make[1]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/alg' (cd frmts; make) make[1]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/frmts' make -C gxf install-obj make[2]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/gxf' make[2]: Nothing to be done for `install-obj'. make[2]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/gxf' make -C gtiff install-obj make[2]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/gtiff' (cd libgeotiff; make install-obj) make[3]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/gtiff/ libgeotiff' make[3]: Nothing to be done for `install-obj'. make[3]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/gtiff/ libgeotiff' (cd libtiff; make install-obj) make[3]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/gtiff/ libtiff' make[3]: Nothing to be done for `install-obj'. make[3]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/gtiff/ libtiff' make[2]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/gtiff' make -C hfa install-obj make[2]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/hfa' make[2]: Nothing to be done for `install-obj'. make[2]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/hfa' make -C aigrid install-obj make[2]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/aigrid' make[2]: Nothing to be done for `install-obj'. make[2]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/aigrid' make -C aaigrid install-obj make[2]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/aaigrid' make[2]: Nothing to be done for `install-obj'. make[2]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/aaigrid' make -C ceos install-obj make[2]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/ceos' make[2]: Nothing to be done for `install-obj'. make[2]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/ceos' make -C ceos2 install-obj make[2]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/ceos2' make[2]: Nothing to be done for `install-obj'. make[2]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/ceos2' make -C iso8211 install-obj make[2]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/iso8211' make[2]: Nothing to be done for `install-obj'. make[2]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/iso8211' make -C xpm install-obj make[2]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/xpm' make[2]: Nothing to be done for `install-obj'. make[2]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/xpm' make -C sdts install-obj make[2]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/sdts' make[2]: Nothing to be done for `install-obj'. make[2]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/sdts' make -C raw install-obj make[2]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/raw' make[2]: Nothing to be done for `install-obj'. make[2]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/raw' make -C dted install-obj make[2]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/dted' make[2]: Nothing to be done for `install-obj'. make[2]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/dted' make -C mem install-obj make[2]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/mem' make[2]: Nothing to be done for `install-obj'. make[2]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/mem' make -C jdem install-obj make[2]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/jdem' make[2]: Nothing to be done for `install-obj'. make[2]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/jdem' make -C envisat install-obj make[2]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/envisat' make[2]: Nothing to be done for `install-obj'. make[2]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/envisat' make -C elas install-obj make[2]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/elas' make[2]: Nothing to be done for `install-obj'. make[2]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/elas' make -C fit install-obj make[2]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/fit' make[2]: Nothing to be done for `install-obj'. make[2]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/fit' make -C vrt install-obj make[2]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/vrt' make[2]: Nothing to be done for `install-obj'. make[2]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/vrt' make -C usgsdem install-obj make[2]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/usgsdem' make[2]: Nothing to be done for `install-obj'. make[2]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/usgsdem' make -C l1b install-obj make[2]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/l1b' make[2]: Nothing to be done for `install-obj'. make[2]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/l1b' make -C nitf install-obj make[2]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/nitf' make[2]: Nothing to be done for `install-obj'. make[2]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/nitf' make -C bmp install-obj make[2]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/bmp' make[2]: Nothing to be done for `install-obj'. make[2]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/bmp' make -C pcidsk install-obj make[2]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/pcidsk' make[2]: Nothing to be done for `install-obj'. make[2]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/pcidsk' make -C airsar install-obj make[2]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/airsar' make[2]: Nothing to be done for `install-obj'. make[2]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/airsar' make -C rs2 install-obj make[2]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/rs2' make[2]: Nothing to be done for `install-obj'. make[2]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/rs2' make -C bsb install-obj make[2]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/bsb' make[2]: Nothing to be done for `install-obj'. make[2]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/bsb' make -C gif install-obj make[2]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/gif' make[2]: Nothing to be done for `install-obj'. make[2]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/gif' make -C jpeg install-obj make[2]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/jpeg' make[2]: Nothing to be done for `install-obj'. make[2]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/jpeg' make -C png install-obj make[2]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/png' make[2]: Nothing to be done for `install-obj'. make[2]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/png' make -C pcraster install-obj make[2]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/pcraster' make[2]: Nothing to be done for `install-obj'. make[2]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/frmts/pcraster' make[1]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/frmts' (cd ogr; make lib ) make[1]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/ogr' (cd ogrsf_frmts; make) make[2]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/ogr/ ogrsf_frmts' make -C generic make[3]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/ogr/ ogrsf_frmts/generic' make[3]: Nothing to be done for `default'. make[3]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/ogr/ogrsf_frmts/ generic' make -C shape make[3]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/ogr/ ogrsf_frmts/shape' make[3]: Nothing to be done for `default'. make[3]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/ogr/ogrsf_frmts/ shape' make -C ntf make[3]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/ogr/ ogrsf_frmts/ntf' make[3]: Nothing to be done for `default'. make[3]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/ogr/ogrsf_frmts/ ntf' make -C sdts make[3]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/ogr/ ogrsf_frmts/sdts' make[3]: Nothing to be done for `default'. make[3]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/ogr/ogrsf_frmts/ sdts' make -C tiger make[3]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/ogr/ ogrsf_frmts/tiger' make[3]: Nothing to be done for `default'. make[3]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/ogr/ogrsf_frmts/ tiger' make -C s57 make[3]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/ogr/ ogrsf_frmts/s57' make[3]: Nothing to be done for `default'. make[3]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/ogr/ogrsf_frmts/ s57' make -C mitab make[3]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/ogr/ ogrsf_frmts/mitab' make[3]: Nothing to be done for `default'. make[3]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/ogr/ogrsf_frmts/ mitab' make -C dgn make[3]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/ogr/ ogrsf_frmts/dgn' make[3]: Nothing to be done for `default'. make[3]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/ogr/ogrsf_frmts/ dgn' make -C gml make[3]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/ogr/ ogrsf_frmts/gml' make[3]: Nothing to be done for `default'. make[3]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/ogr/ogrsf_frmts/ gml' make -C avc make[3]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/ogr/ ogrsf_frmts/avc' make[3]: Nothing to be done for `default'. make[3]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/ogr/ogrsf_frmts/ avc' make -C rec make[3]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/ogr/ ogrsf_frmts/rec' make[3]: Nothing to be done for `default'. make[3]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/ogr/ogrsf_frmts/ rec' make -C mem make[3]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/ogr/ ogrsf_frmts/mem' make[3]: Nothing to be done for `default'. make[3]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/ogr/ogrsf_frmts/ mem' make -C vrt make[3]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/ogr/ ogrsf_frmts/vrt' make[3]: Nothing to be done for `default'. make[3]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/ogr/ogrsf_frmts/ vrt' make -C csv make[3]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/ogr/ ogrsf_frmts/csv' make[3]: Nothing to be done for `default'. make[3]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/ogr/ogrsf_frmts/ csv' make[2]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/ogr/ogrsf_frmts' make[1]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/ogr' make ./libgdal.la make[1]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5' GNUmakefile:43: warning: overriding commands for target `libgdal.la' GNUmakefile:39: warning: ignoring old commands for target `libgdal.la' make[1]: `libgdal.la' is up to date. make[1]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5' (cd ogr; make apps) make[1]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/ogr' make[1]: Nothing to be done for `apps'. make[1]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/ogr' (cd apps; make) make[1]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/apps' make[1]: Nothing to be done for `default'. make[1]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/apps' ./install-sh -d /usr/local/lib for f in ./libgdal.la ; do /bin/sh ./libtool --mode=install ./install-sh -c $f /usr/local/lib ; done ./install-sh -c ./.libs/libgdal.so.1.6.0 /usr/local/lib/libgdal.so.1.6.0 (cd /usr/local/lib && rm -f libgdal.so.1 && ln -s libgdal.so.1.6.0 libgdal.so.1) (cd /usr/local/lib && rm -f libgdal.so && ln -s libgdal.so.1.6.0 libgdal.so) ./install-sh -c ./.libs/libgdal.lai /usr/local/lib/libgdal.la ./install-sh -c ./.libs/libgdal.a /usr/local/lib/libgdal.a ranlib /usr/local/lib/libgdal.a chmod 644 /usr/local/lib/libgdal.a PATH="$PATH:/sbin" ldconfig -n /usr/local/lib ---------------------------------------------------------------------- Libraries have been installed in: /usr/local/lib If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,--rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- ./install-sh -d /usr/local/bin ./install-sh -d /usr/local/share/gdal ./install-sh -d /usr/local/include (cd port; make install) make[1]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/port' for f in *.h ; do ../install-sh -c -m 0644 $f /usr/local/include ; done make[1]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/port' (cd gcore; make install) make[1]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/gcore' for f in *.h ; do ../install-sh -c -m 0644 $f /usr/local/include ; done make[1]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/gcore' (cd frmts; make install) make[1]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/frmts' make[1]: Nothing to be done for `install'. make[1]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/frmts' (cd alg; make install) make[1]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/alg' for f in *.h ; do ../install-sh -c -m 0644 $f /usr/local/include ; done make[1]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/alg' (cd ogr; make install) make[1]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/ogr' /bin/sh ../libtool --mode=install ../install-sh -c ogr2ogr /usr/local/bin ../install-sh -c .libs/ogr2ogr /usr/local/bin/ogr2ogr /bin/sh ../libtool --mode=install ../install-sh -c ogrinfo /usr/local/bin ../install-sh -c .libs/ogrinfo /usr/local/bin/ogrinfo /bin/sh ../libtool --mode=install ../install-sh -c ogrtindex /usr/local/bin ../install-sh -c .libs/ogrtindex /usr/local/bin/ogrtindex for f in ogr_core.h ogr_feature.h ogr_geometry.h ogr_p.h ogr_spatialref.h ogr_srs_api.h ogrsf_frmts/ogrsf_frmts.h ogr_featurestyle.h ogr_api.h ; \ do ../install-sh -c -m 0644 $f /usr/local/include ; \ done make[1]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/ogr' (cd apps; make install) make[1]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/apps' for f in gdalinfo gdal_translate gdaladdo gdalwarp gdal_contour gdaltindex ; do /bin/sh /root/Proyecto/gdal/gdal-1.2.5/libtool --mode=install /root/Proyecto/gdal/gdal-1.2.5/install-sh -c $f /usr/local/ bin ; done /root/Proyecto/gdal/gdal-1.2.5/install-sh -c .libs/gdalinfo /usr/local/bin/ gdalinfo /root/Proyecto/gdal/gdal-1.2.5/install-sh -c .libs/gdal_translate /usr/ local/bin/gdal_translate /root/Proyecto/gdal/gdal-1.2.5/install-sh -c .libs/gdaladdo /usr/local/bin/ gdaladdo /root/Proyecto/gdal/gdal-1.2.5/install-sh -c .libs/gdalwarp /usr/local/bin/ gdalwarp /root/Proyecto/gdal/gdal-1.2.5/install-sh -c .libs/gdal_contour /usr/local/ bin/gdal_contour /root/Proyecto/gdal/gdal-1.2.5/install-sh -c .libs/gdaltindex /usr/local/ bin/gdaltindex /bin/sh /root/Proyecto/gdal/gdal-1.2.5/libtool --mode=install /root/ Proyecto/gdal/gdal-1.2.5/install-sh -c gdal-config-inst /usr/local/bin/ gdal-config /root/Proyecto/gdal/gdal-1.2.5/install-sh -c gdal-config-inst /usr/local/ bin/gdal-config make[1]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/apps' (cd man; make install) make[1]: Entering directory `/root/Proyecto/gdal/gdal-1.2.5/man' ../install-sh -d /usr/local/man/man1 for f in man1/gdal-config.1 man1/gdal_merge.py.1 man1/gdal_translate.1 man1/gdal_utilities.1 man1/gdaladdo.1 man1/gdalinfo.1 man1/gdaltindex.1 man1/gdalwarp.1 man1/ogr2ogr.1 man1/ogr_utilities.1 man1/ogrinfo.1 man1/ ogrtindex.1 man1/rgb2pct.py.1 ; do ../install-sh -c -m 0644 $f /usr/local/ man/man1 ; done make[1]: Leaving directory `/root/Proyecto/gdal/gdal-1.2.5/man' for f in data/*.* ; do ./install-sh -c -m 0644 $f /usr/local/share/gdal ; done /bin/sh ./libtool --mode=finish --silent /usr/local/lib Now install mapserver-4.4.1. Executed ./configure --with-proj --with-gdal --with-ogr --with-postgis --with-ming. The output is the following: checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for ranlib... ranlib checking for flex... flex checking for yywrap in -lfl... yes checking lex output file root... lex.yy checking whether yytext is a pointer... yes checking for bison... bison -y checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking for exp in -lm... yes checking for __gxx_personality_v0 in -lstdc++... yes checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for strcasecmp... yes checking for strncasecmp... yes checking for strdup... yes checking for strlcat... no MapServer Version from map.h: '4.4.1' configure: checking where FreeType 2.x is installed... checking for FT_Init_FreeType in -lfreetype... yes using libfreetype -lfreetype from system libs. configure: checking where Zlib is installed... checking for zlibVersion in -lz... yes using libz from system libs. configure: checking where PNG is installed... checking for png_init_io in -lpng... yes using libpng from system libs. configure: checking whether we should include JPEG support... checking for jpeg_read_header in -ljpeg... yes using libjpeg from system libs. configure: checking where libXpm is installed... checking for XpmFreeXpmImage in -lXpm... no XPM (libXpm) library cannot be found, possibly needed for GD configure: checking where libiconv is installed... checking for iconv_open in -lc... yes checking for libiconv_open in -liconv... yes using libiconv from system libs. libiconv found. Enabling internationalization (-DUSE_ICONV) configure: checking for GD 2.0.12 or higher... checking for gdImageSetAntiAliased in -lgd... yes checking for gdImageSetAntiAliased in -lgd... (cached) yes using libgd 2.0.12 (or higher) from system libs (-L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -lz ). checking for gdImageCreate in -lgd... yes checking for gdImageGif in -lgd... yes checking for gdImagePng in -lgd... yes checking for gdImageJpeg in -lgd... yes checking for gdImageWBMP in -lgd... yes checking for gdImageStringFT in -lgd... yes checking for gdImageGifPtr in -lgd... yes checking for gdFontGetTiny in -lgd... yes using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS) from system libs. configure: checking whether we should include PDF support... checking for PDF_setlinewidth in -lpdf... yes checking for PDF_setrgbcolor in -lpdf... yes checking for PDF_moveto in -lpdf... yes checking for PDF_curveto in -lpdf... yes checking for PDF_show_xy in -lpdf... yes using libpdf from system libs. configure: checking whether we should include EPPL7 support... including EPPL7 support. configure: checking whether we should include PROJ.4 support... checking for pj_init in -lproj... yes checking for pj_transform in -lproj... yes checking for pj_latlong_from_proj in -lproj... yes using PROJ.4 from system libs. configure: checking whether we should include thread safe support... thread safe support disabled. configure: checking whether we should include ESRI SDE support... ESRI SDE support not requested. configure: checking whether we should include SDE raster support... not including experimental SDE raster support. configure: checking whether we should compile in MPATROL support... MPATROL support not requested. checking if GEOS support requested... no configure: checking whether we should include OGR support... checking for gdal-config... /usr/local/bin/gdal-config OGR enabled (-DUSE_OGR). checking if GDAL support requested... yes checking checking ms JPEG output... no we, have GDAL available. configure: checking whether we should include TIFF support... disabled since gdal is in use checking if PostGIS support requested... yes checking for pg_config... no checking if MyGIS support requested... no checking if OracleSpatial support requested... no checking if MING/Flash support requested... yes configure: checking whether we should include WMS Server support... OGC WMS compatibility enabled (-DUSE_WMS_SVR). configure: checking whether we should include WFS Server support... OGC WFS Server support not requested. configure: checking whether we should include WCS Server support... OGC WCS Server support not requested. configure: checking whether we should include WMS Client Connections support... configure: checking whether we should include WFS Client Connections support... configure: checking for curl-config... configure: checking whether FastCGI support should be enabled... FastCGI support not enabled. configure: checking HTTPD server (Apache) version... checking for httpd... /usr/sbin/httpd /usr/sbin/httpd version is Apache/1.3.28 (1003028). Compiling with -DIGNORE_MISSING_DATA. configure: checking whether we should enable debug features... configure: checking for PHP/MapScript module options... PHP/MapScript module not configured. configure: creating ./config.status config.status: creating Makefile config.status: creating mapscript/java/Makefile And when I executed ./mapserv -v the result was: MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF SUPPORTS=FREETYPE INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE I don't see INPUT=GDAL :( Thank's From Tracy at CHIRPWHISTLER.INFO Wed Jan 19 16:58:14 2005 From: Tracy at CHIRPWHISTLER.INFO (Tracy Howlett) Date: Wed, 19 Jan 2005 16:58:14 -0800 Subject: WMS error after upgrade to 4.4 Message-ID: Hello, I've recently upgraded to MapServer 4.4 after running 4.0.1 successfully for over a year. I have been using a Cascading WMS service to share some of my layers out to another MapServer user who has been accessing my data without problem. For some reason, now that MapServer 4.4 is running, the WMS layers are no longer being shared. We have run the getCapabilities for both my base mapfile and my cascaded map file service and they both come back error free but when we run a getMap we receive the following error: msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the LAYERS parameter. I've read about this error in the archives but cannot find a solution for my particular file. When my colleague calls the mapfile only one of the 10 layers listed is returned. The data has not changed since I upgraded and it is all in the same projection (UTM Zone 10). Are there some naming conventions or WMS requirements that are new in 4.4 that I have not found in the documentation? Any help would be greatly appreciated as we are trying to get this thing up and running again for a presentation on Saturday. Thanks, Tracy Howlett Community Habitat Resources Project GIS Web Development Coordinator PO Box 1122, Whistler, BC, V0N 1B8 Phone: 604 932 2019 Fax: 604 932 2077 Web: www.CHiRPwhistler.info -------------- next part -------------- An HTML attachment was scrubbed... URL: From assefa at DMSOLUTIONS.CA Wed Jan 19 17:18:26 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 19 Jan 2005 20:18:26 -0500 Subject: WMS error after upgrade to 4.4 In-Reply-To: Message-ID: Do you have an example of a getmap URL returing the exception and maybe your map definition ? There has been some work done in the wms code before the 4.4 release so that mapserver would be OGC compliant (so more parameter tesing and exception generating has been added) and this may explain the problems your are having. Later, Tracy Howlett wrote: > Hello, > > > > I've recently upgraded to MapServer 4.4 after running 4.0.1 successfully > for over a year. I have been using a Cascading WMS service to share > some of my layers out to another MapServer user who has been accessing > my data without problem. > > > > For some reason, now that MapServer 4.4 is running, the WMS layers are > no longer being shared. We have run the getCapabilities for both my > base mapfile and my cascaded map file service and they both come back > error free but when we run a getMap we receive the following error: > > > > ServiceExceptionReport SYSTEM > "http://schemas.opengeospatial.net/wms/1.1.1/exception_1_1_1.dtd"> > > code="LayerNotDefined"> > > msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the > LAYERS parameter. > > > > > > > > I've read about this error in the archives but cannot find a solution > for my particular file. When my colleague calls the mapfile only one of > the 10 layers listed is returned. > > The data has not changed since I upgraded and it is all in the same > projection (UTM Zone 10). Are there some naming conventions or WMS > requirements that are new in 4.4 that I have not found in the documentation? > > > > Any help would be greatly appreciated as we are trying to get this thing > up and running again for a presentation on Saturday. > > > > Thanks, > > > > **Tracy Howlett** > > Community Habitat Resources Project > > GIS Web Development Coordinator > > PO Box 1122, Whistler, BC, V0N 1B8 > > Phone: 604 932 2019 > > Fax: 604 932 2077 > > Web: www.CHiRPwhistler.info > > > > > > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From Tracy at CHIRPWHISTLER.INFO Wed Jan 19 17:28:54 2005 From: Tracy at CHIRPWHISTLER.INFO (Tracy Howlett) Date: Wed, 19 Jan 2005 17:28:54 -0800 Subject: WMS error after upgrade to 4.4 In-Reply-To: <41EF06E2.50106@dmsolutions.ca> Message-ID: Here is my getmap request: http://www.chirpwhistler.info/scripts/mapserv.exe?map=chirp_wms.map&VERSION= 1.1.1&SERVICE=wms&REQUEST=GetMap And here is the sample of my cascading mapfile and the base mapfile I really appreciate your help! Cascade (c:\inetpub\scripts\chirp_wms.map): # # Start of map file # # Sample map file for a chameleon app. # NAME CHIRP_WMS STATUS ON SIZE 570 360 SYMBOLSET "c:\chameleon-2.0\CHiRP\etc\symbols.sym" EXTENT 486515 5541282 512169 5559285 UNITS METERS SHAPEPATH "c:\chameleon-2.0\CHiRP\data\" IMAGECOLOR 255 255 255 FONTSET "c:\chameleon-2.0\CHiRP\etc\fonts.txt" # # Start of web interface definition # WEB # # On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root # of the drive where the .MAP file resides. # IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/tmp/" METADATA "wms_title" "CHIRP_WMS" "wms_onlineresource" "http://www.chirpwhistler.info/scripts/mapserv.exe?map=c:\chameleon-2.0\CHiR P\map\chirp.map&" END END PROJECTION "init=epsg:26910" END # # Start of layer definitions # LAYER NAME "RMOW Boundary" TYPE RASTER STATUS ON CONNECTION "http://localhost/scripts/mapserv.exe?map=c:\c:\chameleon-2.0\chirp\map\chir p.map&" CONNECTIONTYPE WMS METADATA "wms_title" "RMOW" "wms_srs" "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326 EPSG:42304 EPSG:26910" "wms_name" "RMOW " "wms_server_version" "1.11" "wms_formatlist" "image/gif,image/png,image/jpeg,image/wbmp" "wms_format" "image/gif" END END LAYER NAME "Municipal Park" TYPE RASTER STATUS ON CONNECTION "http://www.chirpwhistler.info/scripts/mapserv.exe?map=c:\chameleon-2.0\chir p\map\chirp.map&" CONNECTIONTYPE WMS METADATA "wms_title" "Park" "wms_srs" "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326 EPSG:42304 EPSG:26910" "wms_name" "Park" "wms_server_version" "1.1.1" "wms_formatlist" "image/gif,image/png,image/jpeg,image/wbmp" "wms_format" "image/gif" END LAYER NAME "Buildings" TYPE RASTER STATUS ON CONNECTION "http://www.chirpwhistler.info/scripts/mapserv.exe?map=c:\chameleon-2.0\CHiR P\map\chirp.map&" CONNECTIONTYPE WMS METADATA "wms_title" "Buildings" "wms_srs" "EPSG:26910" "wms_name" "Buildings" "wms_server_version" "1.1.1" "wms_formatlist" "image/gif,image/png,image/jpeg,image/wbmp" "wms_format" "image/gif" END END Base MapFile (c:\chameleon-2.0\chirp\map\chirp.map): # # Start of map file # # Sample map file for a chameleon app. # NAME CHiRP STATUS ON SIZE 570 360 SYMBOLSET "../etc/symbols.sym" EXTENT 486515 5541282 512169 5559285 UNITS METERS SHAPEPATH "../data/" IMAGECOLOR 255 255 255 FONTSET "../etc/fonts.txt" # # Start of web interface definition # WEB MINSCALE 1300 MAXSCALE 13000000000 # # On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root # of the drive where the .MAP file resides. # IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/tmp/" # LOG "/tmp/gmap.log" METADATA "wms_title" "CHiRP" "wms_onlineresource" "http://www.CHiRPwhistler.info/scripts/mapserv.exe?map=c:\chameleon-2.0\CHiR P\map\chirp.map&" END END # # Start of reference map # REFERENCE IMAGE images/whistler_sm.png EXTENT 486515 5541282 512169 5559285 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 SIZE 75 50 END # # Start of legend # LEGEND STATUS ON KEYSIZE 18 12 # LABEL object LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END TEMPLATE "legend3.html" END # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE SMALL END SIZE 150 5 COLOR 255 255 255 BACKGROUNDCOLOR 0 0 0 OUTLINECOLOR 0 0 0 UNITS Kilometers INTERVALS 5 STATUS ON END QUERYMAP STATUS ON STYLE HILITE COLOR 255 0 0 END PROJECTION "init=epsg:26910" END # # Start of layer definitions # # MUNICIPAL PARK LAYER NAME "Municipal Park" GROUP "Recreation" TYPE POLYGON DUMP TRUE TEMPLATE "blank.html" TOLERANCE 10 TOLERANCEUNITS PIXELS STATUS ON DATA "Park" PROJECTION "init=epsg:26910" END CLASS COLOR 150 231 138 END METADATA WMS_GROUP_TITLE "Recreation" WMS_TITLE "Park" WMS_ABSTRACT "Park" WMS_SRS "EPSG:26910" END END # RMOW BOUNDARY LAYER NAME "Resort Municipality of Whistler" TYPE LINE STATUS ON GROUP "Boundaries" DATA "RMOW" PROJECTION "init=epsg:26910" END CLASS COLOR 168 0 0 SYMBOL "Line" SIZE 2 END METADATA WMS_GROUP_TITLE "Boundaries" WMS_TITLE "RMOW" WMS_ABSTRACT "Resort Municipality of Whistler Boundary" WMS_SRS "EPSG:26910" END END # BUILDINGS LAYER NAME "Buildings" GROUP "Civic Information" TYPE POLYGON DATA "Building" MAXSCALE 15000 STATUS ON TOLERANCE 10 TOLERANCEUNITS PIXELS TEMPLATE "blank.html" CLASSITEM "Class" PROJECTION "init=epsg:26910" END CLASS NAME "Accomodation" EXPRESSION "Accomodation" OUTLINECOLOR 0 0 0 COLOR 230 0 0 END CLASS NAME "Commercial" EXPRESSION "Commercial" OUTLINECOLOR 0 0 0 COLOR 0 77 168 END CLASS NAME "Residential" EXPRESSION "Residential" OUTLINECOLOR 0 0 0 COLOR 200 133 68 END CLASS NAME "Lift Base" EXPRESSION "Lift Base" OUTLINECOLOR 0 0 0 COLOR 0 0 0 END CLASS NAME "Municipal" EXPRESSION "Municipal" OUTLINECOLOR 0 0 0 COLOR 130 155 90 END CLASS NAME "Other" OUTLINECOLOR 0 0 0 EXPRESSION "" COLOR 130 130 130 END CLASS NAME "Commercial" EXPRESSION "Commercial" COLOR 0 77 168 END METADATA WMS_GROUP_TITLE "CivicInformation" WMS_TITLE "Buildings" WMS_ABSTRACT "Buildings" WMS_SRS "EPSG:26910" END END Tracy Howlett Community Habitat Resources Project GIS Web Development Coordinator PO Box 1122, Whistler, BC, V0N 1B8 Phone: 604 932 2019 Fax: 604 932 2077 Web: www.CHiRPwhistler.info Forum: www.CHiRPwhistler.info/forums/index.php -----Original Message----- From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] Sent: Wednesday, January 19, 2005 5:18 PM To: Tracy Howlett Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] WMS error after upgrade to 4.4 Do you have an example of a getmap URL returing the exception and maybe your map definition ? There has been some work done in the wms code before the 4.4 release so that mapserver would be OGC compliant (so more parameter tesing and exception generating has been added) and this may explain the problems your are having. Later, Tracy Howlett wrote: > Hello, > > > > I've recently upgraded to MapServer 4.4 after running 4.0.1 successfully > for over a year. I have been using a Cascading WMS service to share > some of my layers out to another MapServer user who has been accessing > my data without problem. > > > > For some reason, now that MapServer 4.4 is running, the WMS layers are > no longer being shared. We have run the getCapabilities for both my > base mapfile and my cascaded map file service and they both come back > error free but when we run a getMap we receive the following error: > > > > ServiceExceptionReport SYSTEM > "http://schemas.opengeospatial.net/wms/1.1.1/exception_1_1_1.dtd"> > > code="LayerNotDefined"> > > msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the > LAYERS parameter. > > > > > > > > I've read about this error in the archives but cannot find a solution > for my particular file. When my colleague calls the mapfile only one of > the 10 layers listed is returned. > > The data has not changed since I upgraded and it is all in the same > projection (UTM Zone 10). Are there some naming conventions or WMS > requirements that are new in 4.4 that I have not found in the documentation? > > > > Any help would be greatly appreciated as we are trying to get this thing > up and running again for a presentation on Saturday. > > > > Thanks, > > > > **Tracy Howlett** > > Community Habitat Resources Project > > GIS Web Development Coordinator > > PO Box 1122, Whistler, BC, V0N 1B8 > > Phone: 604 932 2019 > > Fax: 604 932 2077 > > Web: www.CHiRPwhistler.info > > > > > > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From assefa at DMSOLUTIONS.CA Wed Jan 19 17:37:45 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 19 Jan 2005 20:37:45 -0500 Subject: WMS error after upgrade to 4.4 In-Reply-To: <200501200129.j0K1T4v21998@xcalibur.dmsolutions.ca> Message-ID: In the GetMap request the LAYERS parameter is required (unless there is an SLD parameter defined) in wms 1.1.1. So you should add that to all your request. In your case, if you want all the layers to be returned you could use the map name as the layers parameter : http://www.chirpwhistler.info/scripts/mapserv.exe?map=chirp_wms.map&VERSION=1.1.1&SERVICE=wms&REQUEST=GetMap&LAYERS=CHIRP_WMS Tracy Howlett wrote: > Here is my getmap request: > > http://www.chirpwhistler.info/scripts/mapserv.exe?map=chirp_wms.map&VERSION= > 1.1.1&SERVICE=wms&REQUEST=GetMap > > And here is the sample of my cascading mapfile and the base mapfile > > I really appreciate your help! > > Cascade (c:\inetpub\scripts\chirp_wms.map): > > # > # Start of map file > # > # Sample map file for a chameleon app. > # > NAME CHIRP_WMS > STATUS ON > SIZE 570 360 > SYMBOLSET "c:\chameleon-2.0\CHiRP\etc\symbols.sym" > EXTENT 486515 5541282 512169 5559285 > UNITS METERS > SHAPEPATH "c:\chameleon-2.0\CHiRP\data\" > IMAGECOLOR 255 255 255 > FONTSET "c:\chameleon-2.0\CHiRP\etc\fonts.txt" > > # > # Start of web interface definition > # > WEB > # > # On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root > # of the drive where the .MAP file resides. > # > IMAGEPATH "/tmp/ms_tmp/" > IMAGEURL "/tmp/" > METADATA > "wms_title" "CHIRP_WMS" > "wms_onlineresource" > "http://www.chirpwhistler.info/scripts/mapserv.exe?map=c:\chameleon-2.0\CHiR > P\map\chirp.map&" > END > END > > PROJECTION > "init=epsg:26910" > END > > # > # Start of layer definitions > # > > LAYER > NAME "RMOW Boundary" > TYPE RASTER > STATUS ON > CONNECTION > "http://localhost/scripts/mapserv.exe?map=c:\c:\chameleon-2.0\chirp\map\chir > p.map&" > CONNECTIONTYPE WMS > METADATA > "wms_title" "RMOW" > "wms_srs" "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326 > EPSG:42304 EPSG:26910" > "wms_name" "RMOW " > "wms_server_version" "1.11" > "wms_formatlist" "image/gif,image/png,image/jpeg,image/wbmp" > "wms_format" "image/gif" > END > END > > LAYER > NAME "Municipal Park" > TYPE RASTER > STATUS ON > CONNECTION > "http://www.chirpwhistler.info/scripts/mapserv.exe?map=c:\chameleon-2.0\chir > p\map\chirp.map&" > CONNECTIONTYPE WMS > METADATA > "wms_title" "Park" > "wms_srs" "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326 > EPSG:42304 EPSG:26910" > "wms_name" "Park" > "wms_server_version" "1.1.1" > "wms_formatlist" "image/gif,image/png,image/jpeg,image/wbmp" > "wms_format" "image/gif" > END > > LAYER > NAME "Buildings" > TYPE RASTER > STATUS ON > CONNECTION > "http://www.chirpwhistler.info/scripts/mapserv.exe?map=c:\chameleon-2.0\CHiR > P\map\chirp.map&" > CONNECTIONTYPE WMS > METADATA > "wms_title" "Buildings" > "wms_srs" "EPSG:26910" > "wms_name" "Buildings" > "wms_server_version" "1.1.1" > "wms_formatlist" "image/gif,image/png,image/jpeg,image/wbmp" > "wms_format" "image/gif" > END > END > > Base MapFile (c:\chameleon-2.0\chirp\map\chirp.map): > > # > # Start of map file > # > # Sample map file for a chameleon app. > # > NAME CHiRP > STATUS ON > SIZE 570 360 > SYMBOLSET "../etc/symbols.sym" > EXTENT 486515 5541282 512169 5559285 > UNITS METERS > SHAPEPATH "../data/" > IMAGECOLOR 255 255 255 > FONTSET "../etc/fonts.txt" > > > # > # Start of web interface definition > # > WEB > MINSCALE 1300 > MAXSCALE 13000000000 > # > # On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root > # of the drive where the .MAP file resides. > # > IMAGEPATH "/tmp/ms_tmp/" > IMAGEURL "/tmp/" > # LOG "/tmp/gmap.log" > METADATA > "wms_title" "CHiRP" > "wms_onlineresource" > "http://www.CHiRPwhistler.info/scripts/mapserv.exe?map=c:\chameleon-2.0\CHiR > P\map\chirp.map&" > END > END > > # > # Start of reference map > # > REFERENCE > IMAGE images/whistler_sm.png > EXTENT 486515 5541282 512169 5559285 > STATUS ON > COLOR -1 -1 -1 > OUTLINECOLOR 255 0 0 > SIZE 75 50 > END > > # > # Start of legend > # > LEGEND > STATUS ON > KEYSIZE 18 12 > # LABEL object > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > TEMPLATE "legend3.html" > END > > > # > # Start of scalebar > # > SCALEBAR > IMAGECOLOR 255 255 255 > LABEL > COLOR 0 0 0 > SIZE SMALL > END > SIZE 150 5 > COLOR 255 255 255 > BACKGROUNDCOLOR 0 0 0 > OUTLINECOLOR 0 0 0 > UNITS Kilometers > INTERVALS 5 > STATUS ON > END > > > QUERYMAP > STATUS ON > STYLE HILITE > COLOR 255 0 0 > END > > PROJECTION > "init=epsg:26910" > END > > # > # Start of layer definitions > # > > # MUNICIPAL PARK > > LAYER > NAME "Municipal Park" > GROUP "Recreation" > TYPE POLYGON > DUMP TRUE > TEMPLATE "blank.html" > TOLERANCE 10 > TOLERANCEUNITS PIXELS > STATUS ON > DATA "Park" > PROJECTION > "init=epsg:26910" > END > CLASS > COLOR 150 231 138 > END > METADATA > WMS_GROUP_TITLE "Recreation" > WMS_TITLE "Park" > WMS_ABSTRACT "Park" > WMS_SRS "EPSG:26910" > END > END > > # RMOW BOUNDARY > > LAYER > NAME "Resort Municipality of Whistler" > TYPE LINE > STATUS ON > GROUP "Boundaries" > DATA "RMOW" > PROJECTION > "init=epsg:26910" > END > CLASS > COLOR 168 0 0 > SYMBOL "Line" > SIZE 2 > END > METADATA > WMS_GROUP_TITLE "Boundaries" > WMS_TITLE "RMOW" > WMS_ABSTRACT "Resort Municipality of Whistler Boundary" > WMS_SRS "EPSG:26910" > END > END > > # BUILDINGS > > LAYER > NAME "Buildings" > GROUP "Civic Information" > TYPE POLYGON > DATA "Building" > MAXSCALE 15000 > STATUS ON > TOLERANCE 10 > TOLERANCEUNITS PIXELS > TEMPLATE "blank.html" > CLASSITEM "Class" > PROJECTION > "init=epsg:26910" > END > CLASS > NAME "Accomodation" > EXPRESSION "Accomodation" > OUTLINECOLOR 0 0 0 > COLOR 230 0 0 > END > CLASS > NAME "Commercial" > EXPRESSION "Commercial" > OUTLINECOLOR 0 0 0 > COLOR 0 77 168 > END > CLASS > NAME "Residential" > EXPRESSION "Residential" > OUTLINECOLOR 0 0 0 > COLOR 200 133 68 > END > CLASS > NAME "Lift Base" > EXPRESSION "Lift Base" > OUTLINECOLOR 0 0 0 > COLOR 0 0 0 > END > CLASS > NAME "Municipal" > EXPRESSION "Municipal" > OUTLINECOLOR 0 0 0 > COLOR 130 155 90 > END > CLASS > NAME "Other" > OUTLINECOLOR 0 0 0 > EXPRESSION "" > COLOR 130 130 130 > END > CLASS > NAME "Commercial" > EXPRESSION "Commercial" > COLOR 0 77 168 > END > METADATA > WMS_GROUP_TITLE "CivicInformation" > WMS_TITLE "Buildings" > WMS_ABSTRACT "Buildings" > WMS_SRS "EPSG:26910" > END > END > > > > > > > > Tracy Howlett > Community Habitat Resources Project > GIS Web Development Coordinator > PO Box 1122, Whistler, BC, V0N 1B8 > Phone: 604 932 2019 > Fax: 604 932 2077 > Web: www.CHiRPwhistler.info > Forum: www.CHiRPwhistler.info/forums/index.php > > > -----Original Message----- > From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] > Sent: Wednesday, January 19, 2005 5:18 PM > To: Tracy Howlett > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] WMS error after upgrade to 4.4 > > Do you have an example of a getmap URL returing the exception and maybe > your map definition ? > > There has been some work done in the wms code before the 4.4 release so > that mapserver would be OGC compliant (so more parameter tesing and > exception generating has been added) and this may explain the problems > your are having. > > Later, > > > Tracy Howlett wrote: > > >>Hello, >> >> >> >>I've recently upgraded to MapServer 4.4 after running 4.0.1 successfully >>for over a year. I have been using a Cascading WMS service to share >>some of my layers out to another MapServer user who has been accessing >>my data without problem. >> >> >> >>For some reason, now that MapServer 4.4 is running, the WMS layers are >>no longer being shared. We have run the getCapabilities for both my >>base mapfile and my cascaded map file service and they both come back >>error free but when we run a getMap we receive the following error: >> >> >> >> >ServiceExceptionReport SYSTEM >>"http://schemas.opengeospatial.net/wms/1.1.1/exception_1_1_1.dtd"> >> >> >code="LayerNotDefined"> >> >>msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the >>LAYERS parameter. >> >> >> >> >> >> >> >>I've read about this error in the archives but cannot find a solution >>for my particular file. When my colleague calls the mapfile only one of >>the 10 layers listed is returned. >> >>The data has not changed since I upgraded and it is all in the same >>projection (UTM Zone 10). Are there some naming conventions or WMS >>requirements that are new in 4.4 that I have not found in the > > documentation? > >> >> >>Any help would be greatly appreciated as we are trying to get this thing >>up and running again for a presentation on Saturday. >> >> >> >>Thanks, >> >> >> >>**Tracy Howlett** >> >>Community Habitat Resources Project >> >>GIS Web Development Coordinator >> >>PO Box 1122, Whistler, BC, V0N 1B8 >> >>Phone: 604 932 2019 >> >>Fax: 604 932 2077 >> >>Web: www.CHiRPwhistler.info >> >> >> >> >> >> >> > > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From Tracy at CHIRPWHISTLER.INFO Wed Jan 19 18:00:18 2005 From: Tracy at CHIRPWHISTLER.INFO (Tracy Howlett) Date: Wed, 19 Jan 2005 18:00:18 -0800 Subject: WMS error after upgrade to 4.4 In-Reply-To: <41EF0B69.1030607@dmsolutions.ca> Message-ID: I am getting the same error message as before. Is there something about the actual data that has to be OGC compliant? Absolutely nothing changed between the upgrade so I'm a little stumped here! Tracy Howlett Community Habitat Resources Project GIS Web Development Coordinator PO Box 1122, Whistler, BC, V0N 1B8 Phone: 604 932 2019 Fax: 604 932 2077 Web: www.CHiRPwhistler.info Forum: www.CHiRPwhistler.info/forums/index.php -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Yewondwossen Assefa Sent: Wednesday, January 19, 2005 5:38 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] WMS error after upgrade to 4.4 In the GetMap request the LAYERS parameter is required (unless there is an SLD parameter defined) in wms 1.1.1. So you should add that to all your request. In your case, if you want all the layers to be returned you could use the map name as the layers parameter : http://www.chirpwhistler.info/scripts/mapserv.exe?map=chirp_wms.map&VERSION= 1.1.1&SERVICE=wms&REQUEST=GetMap&LAYERS=CHIRP_WMS Tracy Howlett wrote: > Here is my getmap request: > > http://www.chirpwhistler.info/scripts/mapserv.exe?map=chirp_wms.map&VERSION= > 1.1.1&SERVICE=wms&REQUEST=GetMap > > And here is the sample of my cascading mapfile and the base mapfile > > I really appreciate your help! > > Cascade (c:\inetpub\scripts\chirp_wms.map): > > # > # Start of map file > # > # Sample map file for a chameleon app. > # > NAME CHIRP_WMS > STATUS ON > SIZE 570 360 > SYMBOLSET "c:\chameleon-2.0\CHiRP\etc\symbols.sym" > EXTENT 486515 5541282 512169 5559285 > UNITS METERS > SHAPEPATH "c:\chameleon-2.0\CHiRP\data\" > IMAGECOLOR 255 255 255 > FONTSET "c:\chameleon-2.0\CHiRP\etc\fonts.txt" > > # > # Start of web interface definition > # > WEB > # > # On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root > # of the drive where the .MAP file resides. > # > IMAGEPATH "/tmp/ms_tmp/" > IMAGEURL "/tmp/" > METADATA > "wms_title" "CHIRP_WMS" > "wms_onlineresource" > "http://www.chirpwhistler.info/scripts/mapserv.exe?map=c:\chameleon-2.0\CHiR > P\map\chirp.map&" > END > END > > PROJECTION > "init=epsg:26910" > END > > # > # Start of layer definitions > # > > LAYER > NAME "RMOW Boundary" > TYPE RASTER > STATUS ON > CONNECTION > "http://localhost/scripts/mapserv.exe?map=c:\c:\chameleon-2.0\chirp\map\chir > p.map&" > CONNECTIONTYPE WMS > METADATA > "wms_title" "RMOW" > "wms_srs" "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326 > EPSG:42304 EPSG:26910" > "wms_name" "RMOW " > "wms_server_version" "1.11" > "wms_formatlist" "image/gif,image/png,image/jpeg,image/wbmp" > "wms_format" "image/gif" > END > END > > LAYER > NAME "Municipal Park" > TYPE RASTER > STATUS ON > CONNECTION > "http://www.chirpwhistler.info/scripts/mapserv.exe?map=c:\chameleon-2.0\chir > p\map\chirp.map&" > CONNECTIONTYPE WMS > METADATA > "wms_title" "Park" > "wms_srs" "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326 > EPSG:42304 EPSG:26910" > "wms_name" "Park" > "wms_server_version" "1.1.1" > "wms_formatlist" "image/gif,image/png,image/jpeg,image/wbmp" > "wms_format" "image/gif" > END > > LAYER > NAME "Buildings" > TYPE RASTER > STATUS ON > CONNECTION > "http://www.chirpwhistler.info/scripts/mapserv.exe?map=c:\chameleon-2.0\CHiR > P\map\chirp.map&" > CONNECTIONTYPE WMS > METADATA > "wms_title" "Buildings" > "wms_srs" "EPSG:26910" > "wms_name" "Buildings" > "wms_server_version" "1.1.1" > "wms_formatlist" "image/gif,image/png,image/jpeg,image/wbmp" > "wms_format" "image/gif" > END > END > > Base MapFile (c:\chameleon-2.0\chirp\map\chirp.map): > > # > # Start of map file > # > # Sample map file for a chameleon app. > # > NAME CHiRP > STATUS ON > SIZE 570 360 > SYMBOLSET "../etc/symbols.sym" > EXTENT 486515 5541282 512169 5559285 > UNITS METERS > SHAPEPATH "../data/" > IMAGECOLOR 255 255 255 > FONTSET "../etc/fonts.txt" > > > # > # Start of web interface definition > # > WEB > MINSCALE 1300 > MAXSCALE 13000000000 > # > # On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root > # of the drive where the .MAP file resides. > # > IMAGEPATH "/tmp/ms_tmp/" > IMAGEURL "/tmp/" > # LOG "/tmp/gmap.log" > METADATA > "wms_title" "CHiRP" > "wms_onlineresource" > "http://www.CHiRPwhistler.info/scripts/mapserv.exe?map=c:\chameleon-2.0\CHiR > P\map\chirp.map&" > END > END > > # > # Start of reference map > # > REFERENCE > IMAGE images/whistler_sm.png > EXTENT 486515 5541282 512169 5559285 > STATUS ON > COLOR -1 -1 -1 > OUTLINECOLOR 255 0 0 > SIZE 75 50 > END > > # > # Start of legend > # > LEGEND > STATUS ON > KEYSIZE 18 12 > # LABEL object > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > TEMPLATE "legend3.html" > END > > > # > # Start of scalebar > # > SCALEBAR > IMAGECOLOR 255 255 255 > LABEL > COLOR 0 0 0 > SIZE SMALL > END > SIZE 150 5 > COLOR 255 255 255 > BACKGROUNDCOLOR 0 0 0 > OUTLINECOLOR 0 0 0 > UNITS Kilometers > INTERVALS 5 > STATUS ON > END > > > QUERYMAP > STATUS ON > STYLE HILITE > COLOR 255 0 0 > END > > PROJECTION > "init=epsg:26910" > END > > # > # Start of layer definitions > # > > # MUNICIPAL PARK > > LAYER > NAME "Municipal Park" > GROUP "Recreation" > TYPE POLYGON > DUMP TRUE > TEMPLATE "blank.html" > TOLERANCE 10 > TOLERANCEUNITS PIXELS > STATUS ON > DATA "Park" > PROJECTION > "init=epsg:26910" > END > CLASS > COLOR 150 231 138 > END > METADATA > WMS_GROUP_TITLE "Recreation" > WMS_TITLE "Park" > WMS_ABSTRACT "Park" > WMS_SRS "EPSG:26910" > END > END > > # RMOW BOUNDARY > > LAYER > NAME "Resort Municipality of Whistler" > TYPE LINE > STATUS ON > GROUP "Boundaries" > DATA "RMOW" > PROJECTION > "init=epsg:26910" > END > CLASS > COLOR 168 0 0 > SYMBOL "Line" > SIZE 2 > END > METADATA > WMS_GROUP_TITLE "Boundaries" > WMS_TITLE "RMOW" > WMS_ABSTRACT "Resort Municipality of Whistler Boundary" > WMS_SRS "EPSG:26910" > END > END > > # BUILDINGS > > LAYER > NAME "Buildings" > GROUP "Civic Information" > TYPE POLYGON > DATA "Building" > MAXSCALE 15000 > STATUS ON > TOLERANCE 10 > TOLERANCEUNITS PIXELS > TEMPLATE "blank.html" > CLASSITEM "Class" > PROJECTION > "init=epsg:26910" > END > CLASS > NAME "Accomodation" > EXPRESSION "Accomodation" > OUTLINECOLOR 0 0 0 > COLOR 230 0 0 > END > CLASS > NAME "Commercial" > EXPRESSION "Commercial" > OUTLINECOLOR 0 0 0 > COLOR 0 77 168 > END > CLASS > NAME "Residential" > EXPRESSION "Residential" > OUTLINECOLOR 0 0 0 > COLOR 200 133 68 > END > CLASS > NAME "Lift Base" > EXPRESSION "Lift Base" > OUTLINECOLOR 0 0 0 > COLOR 0 0 0 > END > CLASS > NAME "Municipal" > EXPRESSION "Municipal" > OUTLINECOLOR 0 0 0 > COLOR 130 155 90 > END > CLASS > NAME "Other" > OUTLINECOLOR 0 0 0 > EXPRESSION "" > COLOR 130 130 130 > END > CLASS > NAME "Commercial" > EXPRESSION "Commercial" > COLOR 0 77 168 > END > METADATA > WMS_GROUP_TITLE "CivicInformation" > WMS_TITLE "Buildings" > WMS_ABSTRACT "Buildings" > WMS_SRS "EPSG:26910" > END > END > > > > > > > > Tracy Howlett > Community Habitat Resources Project > GIS Web Development Coordinator > PO Box 1122, Whistler, BC, V0N 1B8 > Phone: 604 932 2019 > Fax: 604 932 2077 > Web: www.CHiRPwhistler.info > Forum: www.CHiRPwhistler.info/forums/index.php > > > -----Original Message----- > From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] > Sent: Wednesday, January 19, 2005 5:18 PM > To: Tracy Howlett > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] WMS error after upgrade to 4.4 > > Do you have an example of a getmap URL returing the exception and maybe > your map definition ? > > There has been some work done in the wms code before the 4.4 release so > that mapserver would be OGC compliant (so more parameter tesing and > exception generating has been added) and this may explain the problems > your are having. > > Later, > > > Tracy Howlett wrote: > > >>Hello, >> >> >> >>I've recently upgraded to MapServer 4.4 after running 4.0.1 successfully >>for over a year. I have been using a Cascading WMS service to share >>some of my layers out to another MapServer user who has been accessing >>my data without problem. >> >> >> >>For some reason, now that MapServer 4.4 is running, the WMS layers are >>no longer being shared. We have run the getCapabilities for both my >>base mapfile and my cascaded map file service and they both come back >>error free but when we run a getMap we receive the following error: >> >> >> >> >ServiceExceptionReport SYSTEM >>"http://schemas.opengeospatial.net/wms/1.1.1/exception_1_1_1.dtd"> >> >> >code="LayerNotDefined"> >> >>msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the >>LAYERS parameter. >> >> >> >> >> >> >> >>I've read about this error in the archives but cannot find a solution >>for my particular file. When my colleague calls the mapfile only one of >>the 10 layers listed is returned. >> >>The data has not changed since I upgraded and it is all in the same >>projection (UTM Zone 10). Are there some naming conventions or WMS >>requirements that are new in 4.4 that I have not found in the > > documentation? > >> >> >>Any help would be greatly appreciated as we are trying to get this thing >>up and running again for a presentation on Saturday. >> >> >> >>Thanks, >> >> >> >>**Tracy Howlett** >> >>Community Habitat Resources Project >> >>GIS Web Development Coordinator >> >>PO Box 1122, Whistler, BC, V0N 1B8 >> >>Phone: 604 932 2019 >> >>Fax: 604 932 2077 >> >>Web: www.CHiRPwhistler.info >> >> >> >> >> >> >> > > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From unselfishly at GMAIL.COM Wed Jan 19 19:06:05 2005 From: unselfishly at GMAIL.COM (Keerati Inochanon) Date: Wed, 19 Jan 2005 22:06:05 -0500 Subject: First-time user needs help with mapfile Message-ID: Hi, I'm new at GIS and mapserver, and just decided to try it out. I was wondering if someone could guide me into the right direction. I downloaded world base map shapefiles from esri website. I wrote a mapfile for it, and tried to have mapscript render it, but it does not work (image produced, but only background). Here is what my map file looks like: MAP NAME ASIA STATUS ON SIZE 800 500 IMAGETYPE PNG IMAGECOLOR 240 240 240 SHAPEPATH "C:\\Program Files\\Apache Group\\Apache2\\htdocs\\mapserver\\testshp" EXTENT 90.0168 0.6079 113.5783 24.1694 UNITS DD PROJECTION "proj=latlong" "ellps=GRS80" "datum=NAD83" END LAYER NAME "boundaries" TYPE POLYGON STATUS ON DATA "Country Boundaries 3" PROJECTION "proj=latlong" "ellps=GRS80" "datum=NAD83" END END END I got the extent info from the download page of the dataset These are the files in the testshp directory: B_Major Cities 1.dbf B_Major Cities 1.prj B_Major Cities 1.shp B_Major Cities 1.shx Country Boundaries 3.dbf Country Boundaries 3.prj Country Boundaries 3.shp Country Boundaries 3.shx Rivers 2.dbf Rivers 2.prj Rivers 2.shp Rivers 2.shx Streets and Railroads 1.dbf Streets and Railroads 1.prj Streets and Railroads 1.shp Streets and Railroads 1.shx Water Bodies 2.dbf Water Bodies 2.prj Water Bodies 2.shp Water Bodies 2.shx Any help or suggestions will be much appreciated. Thank you very much! Keerati From jacob.delfos at MAUNSELL.COM Wed Jan 19 19:24:37 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Thu, 20 Jan 2005 11:24:37 +0800 Subject: First-time user needs help with mapfile Message-ID: Keerati, A few things I spotted (which may not necessarily be all problems) : - Your mapfile should have an output format: OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" END If you don't have it, it may still work, but it will use the default format. - Your layer must have a class. This defines what it looks like. Without it, it will definitely not show anything: CLASS NAME "countries" # this must be there to show it in the legend COLOR 255 255 180 # the fill colour OUTLINECOLOR 0 0 0 # the boundary colour END - last thing: better not put spaces in your filenames. It may work, but I could well imagine if it didn't. Try these and see what happens. regards, Jacob -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Keerati Inochanon Sent: 20 January 2005 11:06 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] First-time user needs help with mapfile Hi, I'm new at GIS and mapserver, and just decided to try it out. I was wondering if someone could guide me into the right direction. I downloaded world base map shapefiles from esri website. I wrote a mapfile for it, and tried to have mapscript render it, but it does not work (image produced, but only background). Here is what my map file looks like: MAP NAME ASIA STATUS ON SIZE 800 500 IMAGETYPE PNG IMAGECOLOR 240 240 240 SHAPEPATH "C:\\Program Files\\Apache Group\\Apache2\\htdocs\\mapserver\\testshp" EXTENT 90.0168 0.6079 113.5783 24.1694 UNITS DD PROJECTION "proj=latlong" "ellps=GRS80" "datum=NAD83" END LAYER NAME "boundaries" TYPE POLYGON STATUS ON DATA "Country Boundaries 3" PROJECTION "proj=latlong" "ellps=GRS80" "datum=NAD83" END END END I got the extent info from the download page of the dataset These are the files in the testshp directory: B_Major Cities 1.dbf B_Major Cities 1.prj B_Major Cities 1.shp B_Major Cities 1.shx Country Boundaries 3.dbf Country Boundaries 3.prj Country Boundaries 3.shp Country Boundaries 3.shx Rivers 2.dbf Rivers 2.prj Rivers 2.shp Rivers 2.shx Streets and Railroads 1.dbf Streets and Railroads 1.prj Streets and Railroads 1.shp Streets and Railroads 1.shx Water Bodies 2.dbf Water Bodies 2.prj Water Bodies 2.shp Water Bodies 2.shx Any help or suggestions will be much appreciated. Thank you very much! Keerati -------------- next part -------------- An HTML attachment was scrubbed... URL: From unselfishly at GMAIL.COM Wed Jan 19 19:46:40 2005 From: unselfishly at GMAIL.COM (Keerati Inochanon) Date: Wed, 19 Jan 2005 22:46:40 -0500 Subject: First-time user needs help with mapfile In-Reply-To: <000801c4fe9f$92cd74d0$5d2815ac@auper1pc364> Message-ID: Hi Jacob, I tried what you suggested, and it worked. Thank you very much. I really appreciate your help. I was also wondering whether you know of any good online tutorials I could go through (other than the ones listed on the website). Thank you! Keerati On Thu, 20 Jan 2005 11:24:37 +0800, Jacob Delfos wrote: > > Keerati, > > A few things I spotted (which may not necessarily be all problems) : > > - Your mapfile should have an output format: > > OUTPUTFORMAT > NAME png > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE PC256 > EXTENSION "png" > END > > If you don't have it, it may still work, but it will use the default format. > > - Your layer must have a class. This defines what it looks like. Without it, > it will definitely not show anything: > > CLASS > NAME "countries" # this must be there to show it in the legend > COLOR 255 255 180 # the fill colour > OUTLINECOLOR 0 0 0 # the boundary colour > END > > - last thing: better not put spaces in your filenames. It may work, but I > could well imagine if it didn't. > > Try these and see what happens. > > regards, > > Jacob > > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Keerati Inochanon > Sent: 20 January 2005 11:06 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] First-time user needs help with mapfile > > > Hi, > I'm new at GIS and mapserver, and just decided to try it out. I was > wondering if someone could guide me into the right direction. I > downloaded world base map shapefiles from esri website. I wrote a > mapfile for it, and tried to have mapscript render it, but it does not > work (image produced, but only background). Here is what my map file > looks like: > > MAP > NAME ASIA > STATUS ON > SIZE 800 500 > IMAGETYPE PNG > IMAGECOLOR 240 240 240 > SHAPEPATH "C:\\Program Files\\Apache > Group\\Apache2\\htdocs\\mapserver\\testshp" > EXTENT 90.0168 0.6079 113.5783 24.1694 > UNITS DD > PROJECTION > "proj=latlong" > "ellps=GRS80" > "datum=NAD83" > END > LAYER > NAME "boundaries" > TYPE POLYGON > STATUS ON > DATA "Country Boundaries 3" > PROJECTION > "proj=latlong" > "ellps=GRS80" > "datum=NAD83" > END > END > END > > I got the extent info from the download page of the dataset > > These are the files in the testshp directory: > B_Major Cities 1.dbf > B_Major Cities 1.prj > B_Major Cities 1.shp > B_Major Cities 1.shx > Country Boundaries 3.dbf > Country Boundaries 3.prj > Country Boundaries 3.shp > Country Boundaries 3.shx > Rivers 2.dbf > Rivers 2.prj > Rivers 2.shp > Rivers 2.shx > Streets and Railroads 1.dbf > Streets and Railroads 1.prj > Streets and Railroads 1.shp > Streets and Railroads 1.shx > Water Bodies 2.dbf > Water Bodies 2.prj > Water Bodies 2.shp > Water Bodies 2.shx > > Any help or suggestions will be much appreciated. Thank you very much! > > Keerati > > > > From jacob.delfos at MAUNSELL.COM Wed Jan 19 19:53:54 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Thu, 20 Jan 2005 11:53:54 +0800 Subject: First-time user needs help with mapfile Message-ID: Hi Keerati, Did you find the documentation of the University of Minnesota? http://terrasip.gis.umn.edu/projects/tutorial/sections.html I think it's pretty elaborate. Tyler Mitchell is writing a book with parts on mapserver, which should also help (Tyler, what's keeping you?!). regards, Jacob -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Keerati Inochanon Sent: 20 January 2005 11:47 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] First-time user needs help with mapfile Hi Jacob, I tried what you suggested, and it worked. Thank you very much. I really appreciate your help. I was also wondering whether you know of any good online tutorials I could go through (other than the ones listed on the website). Thank you! Keerati On Thu, 20 Jan 2005 11:24:37 +0800, Jacob Delfos wrote: > > Keerati, > > A few things I spotted (which may not necessarily be all problems) : > > - Your mapfile should have an output format: > > OUTPUTFORMAT > NAME png > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE PC256 > EXTENSION "png" > END > > If you don't have it, it may still work, but it will use the default format. > > - Your layer must have a class. This defines what it looks like. Without it, > it will definitely not show anything: > > CLASS > NAME "countries" # this must be there to show it in the legend > COLOR 255 255 180 # the fill colour > OUTLINECOLOR 0 0 0 # the boundary colour > END > > - last thing: better not put spaces in your filenames. It may work, but I > could well imagine if it didn't. > > Try these and see what happens. > > regards, > > Jacob > > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Keerati Inochanon > Sent: 20 January 2005 11:06 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] First-time user needs help with mapfile > > > Hi, > I'm new at GIS and mapserver, and just decided to try it out. I was > wondering if someone could guide me into the right direction. I > downloaded world base map shapefiles from esri website. I wrote a > mapfile for it, and tried to have mapscript render it, but it does not > work (image produced, but only background). Here is what my map file > looks like: > > MAP > NAME ASIA > STATUS ON > SIZE 800 500 > IMAGETYPE PNG > IMAGECOLOR 240 240 240 > SHAPEPATH "C:\\Program Files\\Apache > Group\\Apache2\\htdocs\\mapserver\\testshp" > EXTENT 90.0168 0.6079 113.5783 24.1694 > UNITS DD > PROJECTION > "proj=latlong" > "ellps=GRS80" > "datum=NAD83" > END > LAYER > NAME "boundaries" > TYPE POLYGON > STATUS ON > DATA "Country Boundaries 3" > PROJECTION > "proj=latlong" > "ellps=GRS80" > "datum=NAD83" > END > END > END > > I got the extent info from the download page of the dataset > > These are the files in the testshp directory: > B_Major Cities 1.dbf > B_Major Cities 1.prj > B_Major Cities 1.shp > B_Major Cities 1.shx > Country Boundaries 3.dbf > Country Boundaries 3.prj > Country Boundaries 3.shp > Country Boundaries 3.shx > Rivers 2.dbf > Rivers 2.prj > Rivers 2.shp > Rivers 2.shx > Streets and Railroads 1.dbf > Streets and Railroads 1.prj > Streets and Railroads 1.shp > Streets and Railroads 1.shx > Water Bodies 2.dbf > Water Bodies 2.prj > Water Bodies 2.shp > Water Bodies 2.shx > > Any help or suggestions will be much appreciated. Thank you very much! > > Keerati > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gisland at HERE.IS Wed Jan 19 20:15:47 2005 From: gisland at HERE.IS (Ma) Date: Thu, 20 Jan 2005 04:15:47 +0000 Subject: convert grid to polygon without smooth Message-ID: Dear All, I'm trying to convert grid theme to polygon theme but ArcView 3.2a is doing this with some smooth by default ( see the attached image or http://geocities.com/gislandia/grid2poly/grid-to-poly-with-smooth.jpg ). Is it possible to convert grid theme to polygon theme without smooth in the way that the output polygon theme has the same shape and the same area size as the input grid theme? Thank you, -- Ma -------------- next part -------------- A non-text attachment was scrubbed... Name: grid-to-poly-with-smooth.jpg Type: image/jpeg Size: 26984 bytes Desc: not available URL: From jacob.delfos at MAUNSELL.COM Wed Jan 19 20:51:03 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Thu, 20 Jan 2005 12:51:03 +0800 Subject: convert grid to polygon without smooth Message-ID: Ma, Your grid is of a very low resolution compared to the precision you want to get out of the polygon file. The reason it smooths them is because it assumed your features are not really square in nature, and it tries to compensate for that. I am quite sure that if you increase the resolution of your grid (simply by blowing it up), it will fix the problem to a large extent. If you fit 10 pixels in every pixel you have now, it will not cut across all those 10 pixels. regards, Jacob -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ma Sent: 20 January 2005 12:16 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] convert grid to polygon without smooth Dear All, I'm trying to convert grid theme to polygon theme but ArcView 3.2a is doing this with some smooth by default ( see the attached image or http://geocities.com/gislandia/grid2poly/grid-to-poly-with-smooth.jpg ). Is it possible to convert grid theme to polygon theme without smooth in the way that the output polygon theme has the same shape and the same area size as the input grid theme? Thank you, -- Ma -------------- next part -------------- An HTML attachment was scrubbed... URL: From lfilak at MEDINACO.ORG Wed Jan 19 20:57:51 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Wed, 19 Jan 2005 23:57:51 -0500 Subject: Offtopic: problems using geo::coder::us on debian Message-ID: The following message was sent by Jeff Portwine on Wed, 19 Jan 2005 13:19:32 -0500. > Hi all... I'm trying to use the geocoding perl library geo::coder::us > downloaded from CPAN. I've installed it and all the pre-requisite > libraries as well. When I do "perl Makefile.pl", and "make", there are > no problems... but when I do "make test" it fails most of its tests and the > resulting code after doing "make install" doesn't work.... it doesn't give > an error but it doesn't give any results either. It doesn't even notice if > I give it a bogus non-existant .db file. Anybody have any suggestions on > how to make this work or an idea of where I can look for help? I'm > trying to install this on a debian linux machine. > > Thanks a lot, > Jeff Jeff, Other than contacting the authors I don't see any specific help. So, I went ahead and installed it manually (aka. no cpan module) to document the steps. Thank goodness for the cpan module. Assume download, tar -xf --gunzip, perl Makefile.PL, make, make test, make install for each: 1) DB_File-1.810 2) Carp-Assert-0.18 3) Class-Data-Inheritable-0.02 4) Class-Accessor-0.19 5) Geo-TigerLine-0.02 6) Geo-Fips55-0.01 7) Geo-Coder-US-0.21 This was all on RH 9, perl 5.8.0-88, gcc-3.2.2-5. The worst part is - not a single error on any test, so now I have a working geocoder (sans data) on my desktop but you don't. What was the first test to fail & in which module? With more info maybe somebody can help. Lowell From gisland at HERE.IS Wed Jan 19 21:04:14 2005 From: gisland at HERE.IS (Ma) Date: Thu, 20 Jan 2005 05:04:14 +0000 Subject: convert grid to polygon without smooth In-Reply-To: <000801c4feab$a4e26660$5d2815ac@auper1pc364> Message-ID: Thank you but the resolution is ok. It is just zoomed in. I don't need any smooth. Some other ideas, please? -- Ma Jacob Delfos wrote: > Ma, > > Your grid is of a very low resolution compared to the precision you want > to get out of the polygon file. The reason it smooths them is because it > assumed your features are not really square in nature, and it tries to > compensate for that. > > I am quite sure that if you increase the resolution of your grid (simply > by blowing it up), it will fix the problem to a large extent. If you fit > 10 pixels in every pixel you have now, it will not cut across all those > 10 pixels. > > regards, > > Jacob > > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Ma > Sent: 20 January 2005 12:16 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] convert grid to polygon without smooth > > > Dear All, > > I'm trying to convert grid theme to polygon theme but ArcView 3.2a is > doing this with some smooth by default ( see the attached image or > http://geocities.com/gislandia/grid2poly/grid-to-poly-with-smooth.jpg ). > Is it possible to convert grid theme to polygon theme without smooth in > the way that the output polygon theme has the same shape and the same > area size as the input grid theme? > > Thank you, > -- > Ma > > > > From lfilak at MEDINACO.ORG Wed Jan 19 21:06:13 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Thu, 20 Jan 2005 00:06:13 -0500 Subject: QueryByRect Problems on shp point Message-ID: The following message was sent by Francesco Sozzi on Wed, 19 Jan 2005 19:05:56 +0100. > Hi Lowell, > > no, I think coordinates are correct. > I create rectangle by: > > $newExtentScreenCoordStr = explode(" ",$hiddenMapImageBox); > $newExtentScreenCoord = ms_newrectObj(); > $newExtentScreenCoord->setextent($newExtentScreenCoordStr[0], > $newExtentScreenCoordStr[1], > $newExtentScreenCoordStr[2], > $newExtentScreenCoordStr[3]); > > Where $hiddenMapImageBox is a box created by jBox. > > Please also note that the same rectangle works properly for lines and > polygons and that it works properly for point on Oracle. > > Best regards > > Francesco > > ----- Original Message ----- > From: "Lowell Filak" > To: "Francesco Sozzi" ; "Lowell Filak" > ; > Sent: Wednesday, January 19, 2005 2:29 PM > Subject: Re: [UMN_MAPSERVER-USERS] QueryByRect Problems on shp point > > > > Strange. > > Is there any chance the points don't form a rectangle but rather a > > parallelogram, quadrilateral, ...? > > What if you draw the shapeobj on the map? > > > > Lowell > > > > The following message was sent by "Francesco Sozzi" > > on Wed, 19 Jan 2005 10:07:52 +0100. > > > > > Hi Lowell, > > > > > > No I haven't any logging. > > > At the moment I solved the problem by converting rectangle into a shape > > > object and issuing a QueryByShape: in this way it works. > > > Strange... > > > > > > Francesco > > > > > > ----- Original Message ----- > > > From: "Lowell Filak" > > > To: > > > Sent: Tuesday, January 18, 2005 6:13 PM > > > Subject: Re: [UMN_MAPSERVER-USERS] QueryByRect Problems on shp point > > > > > > > > > > The following message was sent by Francesco Sozzi > > > > on Mon, 17 Jan 2005 11:55:02 +0100. > > > > > > > > > Hi all, > > > > > > > > > > I am having problems on querying a shapfile layer of type point. > > > > > > > > > > The code I use is: > > > > > $qresult = $layer->queryByRect($rectDrawnedMapCoord); > > > > > where $rectDrawnedMapCoord is a rectangle with map coordinates that > > > > contains > > > > > several points. > > > > > > > > > > The problem is that I get an empty result. > > > > > > > > > > Here you are some notes: > > > > > - I have problems only on shapefile layers of type point; > queryByRect > > > > works > > > > > properly on shapefile polygon and line > > > > > - I an Oracle Spatial copy (exatly the same point objects and data) > an > > > it > > > > > works: I get right resul on queryByRect > > > > > > > > > > Anybody have any suggestions? > > > > > > > > Francesco, > > > > > > > > Do you have any logging turned on that could point to a problem > possibly > > > > accessing the shapefile? > > > > > > > > Lowell Francesco, There are a lot of php users out there that don't seem to have seen this before. I also don't see anything in bugzilla. If you find the problem to be reproducible you should probably file a new bug. Lowell From michael at LIVEPROCESS.COM Wed Jan 19 21:22:10 2005 From: michael at LIVEPROCESS.COM (Michael Elepano) Date: Thu, 20 Jan 2005 00:22:10 -0500 Subject: Need Help Displaying Info from DBFs In-Reply-To: Message-ID: Sandeep: Thanks for the suggestion. I actually got it working with the following line: EXPRESSION ('[FIPS]' IN '00022,00042,00081,etc,etc,etc') Works like a charm. Thanks to all for your help and advice. Micahel On Jan 18, 2005, at 11:20 PM, Sandeep Bashyal wrote: > Have you tried using regular expression instead of: > >> e.g. EXPRESSION (([FIPS] = 00022) OR ([FIPS] = 00042) OR ([FIPS] = >> 00081) ... ad nauseum)). > > like: > $layer->set("classitem","FIPS") > $expression=/00022|00042|0081.../ From trondmm-mapserver at CRUSADERS.NO Thu Jan 20 01:03:08 2005 From: trondmm-mapserver at CRUSADERS.NO (Trond Michelsen) Date: Thu, 20 Jan 2005 10:03:08 +0100 Subject: time queries with mapserver 4.4.1 In-Reply-To: <41EE7FCF.4000308@dmsolutions.ca> Message-ID: On Wed, Jan 19, 2005 at 10:42:07AM -0500, Yewondwossen Assefa wrote: >> I'm still unsuccessful in trying to understand how to make a time >> query in mapserver 4.4.1, and I'd appreciate any help on the subject. > There is a doc explaining the current wms time support in Mapserver at : > http://mapserver.gis.umn.edu/doc/wms-time-support-howto.html Excellent, thank you. *blush* I have to wonder how I've kept missing that link, though :-/ -- Trond Michelsen From jbarong at HOTMAIL.COM Thu Jan 20 01:23:44 2005 From: jbarong at HOTMAIL.COM (Juan Baron) Date: Thu, 20 Jan 2005 03:23:44 -0600 Subject: Creating word file Message-ID: Hello, If I don?t Know the extent of my image, how do I calculate this?? From chris at INETD.COM.AU Thu Jan 20 00:40:09 2005 From: chris at INETD.COM.AU (Chris Foote) Date: Thu, 20 Jan 2005 19:10:09 +1030 Subject: Case of the blankety blanks Message-ID: I've managed to get CGIMapServer up and running, and I'm able to embed a label and scale. The problem I'm having is getting either one of 2 shapefiles to be displayed - they come up blank ;-( What I'm seeing, along with the shapefiles and debugging info is up at: http://202.4.251.202/cgi-bin/mapserv?map=maps%2FAustralia2.map&imgext=-4052773.126174+6525496.338892+-4048707.504070+6529560.938500&imgxy=149.5+199.5&program=%2Fcgi-bin%2Fmapserv&img.x=335&img.y=321 or: http://tinyurl.com/5c3x5 I'm trying to show 4 layers: - a label (working) - a scale (working) - Australia2 shapefile (not working) - Trenches shapefile (not working) I suspect that I don't know enough about the types of projections. Can anyone help ? The shapefile Australia2 is supposed to be a Asia Lambert Conformal Conic projection. The shapfile Trenches is supposed to be a GDA 1994 South Australia Lambert projection. The map file contains: MAP NAME MapTest STATUS on DEBUG on IMAGETYPE myoutputformat SIZE 500 500 UNITS METERS EXTENT -1212976 561048 2859174 4723198 SHAPEPATH "/home/pipe/shapes/" PROJECTION "proj=lcc" END LEGEND STATUS EMBED POSITION UR END SCALEBAR TRANSPARENT ON BACKGROUNDCOLOR 254 254 254 STATUS EMBED POSITION LR STYLE 1 UNITS meters LABEL SIZE small END END LAYER NAME Australia2 DATA Australia2 TYPE polygon STATUS on DEBUG on PROJECTION "proj=lcc" END CLASS BACKGROUNDCOLOR 100 100 100 DEBUG on OUTLINECOLOR 150 150 150 END END LAYER NAME Trenches DATA Trenches TYPE polygon STATUS on DEBUG on CLASS BACKGROUNDCOLOR 100 100 100 DEBUG on OUTLINECOLOR 150 150 150 END END LAYER NAME "credits" STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 10 480 END TEXT 'Bogus Mapping Limited' END CLASS LABEL TYPE BITMAP POSITION CR COLOR 0 0 0 END END END OUTPUTFORMAT NAME myoutputformat DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END WEB IMAGEPATH ../data/ LOG ../data/logfile.txt TEMPLATE "Australia2.html" IMAGEURL "/mapdata/" END END Any help would be most appreciated ;-) Cheers, Chris Foote _ _ _ Jabber: chris at jabber.inetd.com.au (_) | | | | Director - INETD PTY LTD _ _ __ ___ | |_ __| | Level 2, 132 Franklin St | | | '_ \ / _ \ | __| / _` | Adelaide SA 5000 | | | | | | | __/ | |_ | (_| | Web: http://www.inetd.com.au |_| |_| |_| \___| \__| \__,_| Phone: (08) 8410 4566 From tjolibois at CLS.FR Thu Jan 20 01:58:55 2005 From: tjolibois at CLS.FR (Tony Jolibois) Date: Thu, 20 Jan 2005 10:58:55 +0100 Subject: netCDF in a mapfile Message-ID: Hi all, I try to display netCDF file with the GDAL driver, but no succeed. The gdalinfo give a good response, but I don't know how I can specifie my variable and the depth for the layer in the mapfile (it is a 3 dimension variable). Can anyone help me ? Thanks in advance, Tony gdal from CVS today mapserver 4.4.1 on linux AS gdalinfo : Driver: netCDF/network Common Data Format Size is 8, 129 Coordinate System is `' Origin = (0.000000,0.000000) Pixel Size = (1.00000000,1.00000000) Corner Coordinates: Upper Left ( 0.0000000, 0.0000000) Lower Left ( 0.000, 129.000) Upper Right ( 8.0000000, 0.0000000) Lower Right ( 8.000, 129.000) Center ( 4.0000000, 64.5000000) Band 1 Block=8x1 Type=Float32, ColorInterp=Undefined ... ... The header of the netCDF is like this : netcdf mercator_psy2v1_mersea_grid1o8_med_b20050105_f200501189999 { dimensions: depth = 8 ; latitude = 129 ; longitude = 341 ; variables: float depth(depth) ; depth:valid_min = 5.f ; depth:valid_max = 2000.f ; depth:units = "m" ; depth:positive = "down" ; depth:unit_long = "Meter" ; depth:long_name = "depth" ; depth:standard_name = "depth" ; depth:axis = "Z" ; float latitude(latitude) ; latitude:valid_min = 30.f ; latitude:valid_max = 46.f ; latitude:step = 0.125f ; latitude:units = "degrees_north" ; latitude:unit_long = "Degrees North" ; latitude:long_name = "latitude" ; latitude:standard_name = "latitude" ; latitude:axis = "Y" ; float longitude(longitude) ; longitude:valid_min = -6.f ; longitude:valid_max = 36.5f ; longitude:step = 0.125f ; longitude:units = "degrees_east" ; longitude:unit_long = "Degrees East" ; longitude:long_name = "longitude" ; longitude:standard_name = "longitude" ; longitude:axis = "X" ; float temperature(depth, latitude, longitude) ; temperature:long_name = "temperature" ; temperature:standard_name = "sea_water_potential_temperature" ; temperature:units = "degC" ; temperature:unit_long = "Degrees Celcius" ; temperature:missing_value = 1.e+35f ; temperature:_FillValue = 1.e+35f ; temperature:valid_min = 9.834617f ; temperature:valid_max = 20.74316f ; // global attributes: :title = "MERCATOR PSY2V1R1" ; :easting = "longitude" ; :northing = "latitude" ; :history = "2005/01/ 5 19:58:31 MERCATOR Netcdf creation" ; :source = "MERCATOR PSY2V1" ; :institution = "GIP MERCATOR OCEAN" ; :references = "http://www.mercator-ocean.fr" ; :comment = " " ; :conventions = "CF-1.0" ; :domain_name = "MED" ; :field_type = "mean" ; :field_date = "2005-01-18 00:00:00" ; :field_julian_date = 20106 ; :julian_day_unit = "days since 1950-01-01 00:00:00" ; :forecast_range = "13-day forecast" ; :forecast_type = "forecast" ; :bulletin_date = "2005-01-05 00:00:00" ; :bulletin_type = "operational" ; :longitude_min = -6.f ; :longitude_max = 36.5f ; :latitude_min = 30.f ; :latitude_max = 46.f ; :z_min = 5.f ; :z_max = 2000.f ; } -------------- next part -------------- An HTML attachment was scrubbed... URL: From uli.mueller at GMX.CH Thu Jan 20 03:26:46 2005 From: uli.mueller at GMX.CH (uli mueller [geOps]) Date: Thu, 20 Jan 2005 12:26:46 +0100 Subject: WMS Time and PostGIS Problem Message-ID: Hi all I have just started to implement the WMS time support with MapServer 4.1. My data come from PostGIS. Unfortunately MapServer cannot find the time field I specified in wms_timeitem. I always get the following service exception (extrat): ....prep_DB(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT QUAL::text,obst::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),OID::text from tmp.lynxpt WHERE (date_trunc('day', obst) = '19960101') and (the_geom && setSRID( 'BOX3D(3388284.99999994 5260274.99999989,3610085.00000005 5517475)'::BOX3D,find_srid('','tmp.lynxpt','the_geom') )) ' Postgresql reports the error as 'ERROR: column "obst" does not exist .... The same SQL statement works fine when run directly in Postgres. Any ideas? Does MapServer expect the time field to have a special Postgres type or can it be any ot the date/time types (timestamp, date, time, with/without timezone...)? Thanks, Uli -- geOps GeoInformatics D-79100 Freiburg From boris at BROOKNET.COM.AU Thu Jan 20 04:49:45 2005 From: boris at BROOKNET.COM.AU (Sam Lawrance) Date: Thu, 20 Jan 2005 23:49:45 +1100 Subject: Case of the blankety blanks In-Reply-To: <20050120180558.H83200@sushi.cryptofish.com> Message-ID: Chris Foote wrote: > I've managed to get CGIMapServer up and running, and I'm able to > embed a label and scale. The problem I'm having is getting either > one of 2 shapefiles to be displayed - they come up blank ;-( > > LAYER > NAME Australia2 > DATA Australia2 > TYPE polygon > STATUS on Use STATUS DEFAULT for your layers instead of STATUS ON. Read doco for more info. -- Sam Lawrance ph +61 0425 228 579 freenode: deft From jdport at VERITIME.COM Thu Jan 20 05:01:16 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Thu, 20 Jan 2005 08:01:16 -0500 Subject: Offtopic: problems using geo::coder::us on debian Message-ID: Hi guys, thanks for the responses... just to let you know I fixed the problem. Though I am somewhat boggled by the fix, i'm not looking a gifthorse in the mouth. The debian machine I was installing hte perl libraries on didn't have apache isntalled yet. Mapserver is going on there next so I installed appache from the debian install manager "apt-get". It gave warnings that certain files would be upgraded, etc and mentioned that some perl libraries would be removed. I noticed that it was removing perl libraries I had installed during the geocoder installation but since it wasn't working I really didn't worry about it. After the apache installation was complete, I tried to do the make on geo::coder::us again and sure enough, some of it's dependancies were missing. I reinstalled those, reinstalled geo::coder::us, and presto... no more test errors and the code gave me the response I was looking for. Weird. Thanks for the responses... I know this was OT, I mainly responded now so that you'd know I found a fix and nobdody would spend more time trying to answer my question :) -Jeff From lfilak at MEDINACO.ORG Thu Jan 20 05:17:37 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Thu, 20 Jan 2005 08:17:37 -0500 Subject: Offtopic: problems using geo::coder::us on debian Message-ID: The following message was sent by "Jeff Portwine" on Thu, 20 Jan 2005 08:01:16 -0500. > Hi guys, thanks for the responses... just to let you know I fixed the > problem. Though I am somewhat boggled by the fix, i'm not looking a > gifthorse in the mouth. > > The debian machine I was installing hte perl libraries on didn't have apache > isntalled yet. Mapserver is going on there next so I installed appache > from the debian install manager "apt-get". It gave warnings that certain > files would be upgraded, etc and mentioned that some perl libraries would be > removed. I noticed that it was removing perl libraries I had installed > during the geocoder installation but since it wasn't working I really didn't > worry about it. After the apache installation was complete, I tried to do > the make on geo::coder::us again and sure enough, some of it's dependancies > were missing. I reinstalled those, reinstalled geo::coder::us, and > presto... no more test errors and the code gave me the response I was > looking for. > > Weird. > > Thanks for the responses... I know this was OT, I mainly responded now so > that you'd know I found a fix and nobdody would spend more time trying to > answer my question :) > > -Jeff Jeff, Great to hear that it's working. Lowell From ron.swain at CIPC.NAVY.MIL Thu Jan 20 05:52:07 2005 From: ron.swain at CIPC.NAVY.MIL (Ron Swain [Contractor]) Date: Thu, 20 Jan 2005 08:52:07 -0500 Subject: Workshop Demo errors Message-ID: I have been beating my head for almost a week now on this issue. I am running Apache server on Windows, installed the Mapserver 4.4 binary correctly. The command line mapserv -v runs perfectly. I have downloaded and installed the Itasca Workshop demo from: http://maps.dnr.state.mn.us/mapserver_demos/workshop.zip I have modified the index.html as follows:
The Itasca.map file was altered as follows: WMS_ONLINERESOURCE http://localhost/workshop/index.html When I bring up the index.html file in the webbrowser and select [Basic Application] Select Initialize - I see the following error: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, ron.swain at cipc.navy.mil and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. ------------------------------------------------------------------------ -------- Apache/1.3.31 Server at VWEB.CIPCpub.local Port 80 The Apache Server Log shows the following error: [Thu Jan 20 08:39:59 2005] [error] [client 127.0.0.1] Premature end of script headers: c:/program files/apache group/apache/cgi-bin/mapserv.EXE When I bring up the index.html file in the webbrowser and select [ - Adds DHTML rubber-band box] Select Initialize The frames come up and the smaller map appears in the lower right, nothing in the big map window on the left. The browser status line displays "Fetching Map" and nothing else happens the apache server log displays: [Thu Jan 20 08:39:59 2005] [error] [client 127.0.0.1] Premature end of script headers: c:/program files/apache group/apache/cgi-bin/mapserv.EXE Any assistance would be greatly appreciated. Thanks. Ron Swain -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdport at VERITIME.COM Thu Jan 20 06:39:44 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Thu, 20 Jan 2005 09:39:44 -0500 Subject: mapserver 4.4.1 binary for debian? Message-ID: I installed the mapserver/php4-mapscript 4.4.1 debian packages and everything seems to be in place, except the package didn't seem to include the actual mapscript binary. legend, scalebar, shp2img, etc are all there installed in /usr/bin but there is no mapserver or mapserver40 binary. Any chance somebody out there has one or knows the location of a package that didn't leave this out? Thanks, Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From hrz at GEODATA.SOTON.AC.UK Thu Jan 20 07:03:11 2005 From: hrz at GEODATA.SOTON.AC.UK (Homme Zwaagstra) Date: Thu, 20 Jan 2005 15:03:11 +0000 Subject: mapserver 4.4.1 binary for debian? In-Reply-To: <019101c4fefd$e1ff4340$1bf2fbd0@solo> Message-ID: Hi Jeff, I haven't used the debian package but isn't it likely that php-mapscript was placed in PHP's extension directory (check the php.ini file for the location or have a look on your system for php_mapscript.so). Likewise perhaps the mapserv binary was placed in your webserver's CGI directory? Just a guess! Kind regards, Homme On Thu, Jan 20, 2005 at 09:39:44AM -0500, Jeff Portwine wrote: > I installed the mapserver/php4-mapscript 4.4.1 debian packages and everything seems to be in place, except the package didn't seem to include the actual mapscript binary. legend, scalebar, shp2img, etc are all there installed in /usr/bin but there is no mapserver or mapserver40 binary. Any chance somebody out there has one or knows the location of a package that didn't leave this out? > > Thanks, > Jeff -- Homme Zwaagstra GeoData Institute University of Southampton From assefa at DMSOLUTIONS.CA Thu Jan 20 07:26:49 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Thu, 20 Jan 2005 10:26:49 -0500 Subject: WMS error after upgrade to 4.4 In-Reply-To: <200501200129.j0K1T4v21998@xcalibur.dmsolutions.ca> Message-ID: Not sure what might be the problem, but I have tested your wms client map file and spotted a couple of issues in the first layer (RMOW bounadary) : - "wms_name" "RMOW " : from your server file definition, this should be "RMOW" with no white space. Maybe mapserver should automatically strip white spaces but in any case you should chnage it. "wms_server_version" "1.11" : should be 1.1.1 After these 2 corrections, I was able to dsiplay the map. Hope it helps. Later, Tracy Howlett wrote: > Here is my getmap request: > > http://www.chirpwhistler.info/scripts/mapserv.exe?map=chirp_wms.map&VERSION= > 1.1.1&SERVICE=wms&REQUEST=GetMap > > And here is the sample of my cascading mapfile and the base mapfile > > I really appreciate your help! > > Cascade (c:\inetpub\scripts\chirp_wms.map): > > # > # Start of map file > # > # Sample map file for a chameleon app. > # > NAME CHIRP_WMS > STATUS ON > SIZE 570 360 > SYMBOLSET "c:\chameleon-2.0\CHiRP\etc\symbols.sym" > EXTENT 486515 5541282 512169 5559285 > UNITS METERS > SHAPEPATH "c:\chameleon-2.0\CHiRP\data\" > IMAGECOLOR 255 255 255 > FONTSET "c:\chameleon-2.0\CHiRP\etc\fonts.txt" > > # > # Start of web interface definition > # > WEB > # > # On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root > # of the drive where the .MAP file resides. > # > IMAGEPATH "/tmp/ms_tmp/" > IMAGEURL "/tmp/" > METADATA > "wms_title" "CHIRP_WMS" > "wms_onlineresource" > "http://www.chirpwhistler.info/scripts/mapserv.exe?map=c:\chameleon-2.0\CHiR > P\map\chirp.map&" > END > END > > PROJECTION > "init=epsg:26910" > END > > # > # Start of layer definitions > # > > LAYER > NAME "RMOW Boundary" > TYPE RASTER > STATUS ON > CONNECTION > "http://localhost/scripts/mapserv.exe?map=c:\c:\chameleon-2.0\chirp\map\chir > p.map&" > CONNECTIONTYPE WMS > METADATA > "wms_title" "RMOW" > "wms_srs" "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326 > EPSG:42304 EPSG:26910" > "wms_name" "RMOW " > "wms_server_version" "1.11" > "wms_formatlist" "image/gif,image/png,image/jpeg,image/wbmp" > "wms_format" "image/gif" > END > END > > LAYER > NAME "Municipal Park" > TYPE RASTER > STATUS ON > CONNECTION > "http://www.chirpwhistler.info/scripts/mapserv.exe?map=c:\chameleon-2.0\chir > p\map\chirp.map&" > CONNECTIONTYPE WMS > METADATA > "wms_title" "Park" > "wms_srs" "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326 > EPSG:42304 EPSG:26910" > "wms_name" "Park" > "wms_server_version" "1.1.1" > "wms_formatlist" "image/gif,image/png,image/jpeg,image/wbmp" > "wms_format" "image/gif" > END > > LAYER > NAME "Buildings" > TYPE RASTER > STATUS ON > CONNECTION > "http://www.chirpwhistler.info/scripts/mapserv.exe?map=c:\chameleon-2.0\CHiR > P\map\chirp.map&" > CONNECTIONTYPE WMS > METADATA > "wms_title" "Buildings" > "wms_srs" "EPSG:26910" > "wms_name" "Buildings" > "wms_server_version" "1.1.1" > "wms_formatlist" "image/gif,image/png,image/jpeg,image/wbmp" > "wms_format" "image/gif" > END > END > > Base MapFile (c:\chameleon-2.0\chirp\map\chirp.map): > > # > # Start of map file > # > # Sample map file for a chameleon app. > # > NAME CHiRP > STATUS ON > SIZE 570 360 > SYMBOLSET "../etc/symbols.sym" > EXTENT 486515 5541282 512169 5559285 > UNITS METERS > SHAPEPATH "../data/" > IMAGECOLOR 255 255 255 > FONTSET "../etc/fonts.txt" > > > # > # Start of web interface definition > # > WEB > MINSCALE 1300 > MAXSCALE 13000000000 > # > # On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root > # of the drive where the .MAP file resides. > # > IMAGEPATH "/tmp/ms_tmp/" > IMAGEURL "/tmp/" > # LOG "/tmp/gmap.log" > METADATA > "wms_title" "CHiRP" > "wms_onlineresource" > "http://www.CHiRPwhistler.info/scripts/mapserv.exe?map=c:\chameleon-2.0\CHiR > P\map\chirp.map&" > END > END > > # > # Start of reference map > # > REFERENCE > IMAGE images/whistler_sm.png > EXTENT 486515 5541282 512169 5559285 > STATUS ON > COLOR -1 -1 -1 > OUTLINECOLOR 255 0 0 > SIZE 75 50 > END > > # > # Start of legend > # > LEGEND > STATUS ON > KEYSIZE 18 12 > # LABEL object > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > TEMPLATE "legend3.html" > END > > > # > # Start of scalebar > # > SCALEBAR > IMAGECOLOR 255 255 255 > LABEL > COLOR 0 0 0 > SIZE SMALL > END > SIZE 150 5 > COLOR 255 255 255 > BACKGROUNDCOLOR 0 0 0 > OUTLINECOLOR 0 0 0 > UNITS Kilometers > INTERVALS 5 > STATUS ON > END > > > QUERYMAP > STATUS ON > STYLE HILITE > COLOR 255 0 0 > END > > PROJECTION > "init=epsg:26910" > END > > # > # Start of layer definitions > # > > # MUNICIPAL PARK > > LAYER > NAME "Municipal Park" > GROUP "Recreation" > TYPE POLYGON > DUMP TRUE > TEMPLATE "blank.html" > TOLERANCE 10 > TOLERANCEUNITS PIXELS > STATUS ON > DATA "Park" > PROJECTION > "init=epsg:26910" > END > CLASS > COLOR 150 231 138 > END > METADATA > WMS_GROUP_TITLE "Recreation" > WMS_TITLE "Park" > WMS_ABSTRACT "Park" > WMS_SRS "EPSG:26910" > END > END > > # RMOW BOUNDARY > > LAYER > NAME "Resort Municipality of Whistler" > TYPE LINE > STATUS ON > GROUP "Boundaries" > DATA "RMOW" > PROJECTION > "init=epsg:26910" > END > CLASS > COLOR 168 0 0 > SYMBOL "Line" > SIZE 2 > END > METADATA > WMS_GROUP_TITLE "Boundaries" > WMS_TITLE "RMOW" > WMS_ABSTRACT "Resort Municipality of Whistler Boundary" > WMS_SRS "EPSG:26910" > END > END > > # BUILDINGS > > LAYER > NAME "Buildings" > GROUP "Civic Information" > TYPE POLYGON > DATA "Building" > MAXSCALE 15000 > STATUS ON > TOLERANCE 10 > TOLERANCEUNITS PIXELS > TEMPLATE "blank.html" > CLASSITEM "Class" > PROJECTION > "init=epsg:26910" > END > CLASS > NAME "Accomodation" > EXPRESSION "Accomodation" > OUTLINECOLOR 0 0 0 > COLOR 230 0 0 > END > CLASS > NAME "Commercial" > EXPRESSION "Commercial" > OUTLINECOLOR 0 0 0 > COLOR 0 77 168 > END > CLASS > NAME "Residential" > EXPRESSION "Residential" > OUTLINECOLOR 0 0 0 > COLOR 200 133 68 > END > CLASS > NAME "Lift Base" > EXPRESSION "Lift Base" > OUTLINECOLOR 0 0 0 > COLOR 0 0 0 > END > CLASS > NAME "Municipal" > EXPRESSION "Municipal" > OUTLINECOLOR 0 0 0 > COLOR 130 155 90 > END > CLASS > NAME "Other" > OUTLINECOLOR 0 0 0 > EXPRESSION "" > COLOR 130 130 130 > END > CLASS > NAME "Commercial" > EXPRESSION "Commercial" > COLOR 0 77 168 > END > METADATA > WMS_GROUP_TITLE "CivicInformation" > WMS_TITLE "Buildings" > WMS_ABSTRACT "Buildings" > WMS_SRS "EPSG:26910" > END > END > > > > > > > > Tracy Howlett > Community Habitat Resources Project > GIS Web Development Coordinator > PO Box 1122, Whistler, BC, V0N 1B8 > Phone: 604 932 2019 > Fax: 604 932 2077 > Web: www.CHiRPwhistler.info > Forum: www.CHiRPwhistler.info/forums/index.php > > > -----Original Message----- > From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] > Sent: Wednesday, January 19, 2005 5:18 PM > To: Tracy Howlett > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] WMS error after upgrade to 4.4 > > Do you have an example of a getmap URL returing the exception and maybe > your map definition ? > > There has been some work done in the wms code before the 4.4 release so > that mapserver would be OGC compliant (so more parameter tesing and > exception generating has been added) and this may explain the problems > your are having. > > Later, > > > Tracy Howlett wrote: > > >>Hello, >> >> >> >>I've recently upgraded to MapServer 4.4 after running 4.0.1 successfully >>for over a year. I have been using a Cascading WMS service to share >>some of my layers out to another MapServer user who has been accessing >>my data without problem. >> >> >> >>For some reason, now that MapServer 4.4 is running, the WMS layers are >>no longer being shared. We have run the getCapabilities for both my >>base mapfile and my cascaded map file service and they both come back >>error free but when we run a getMap we receive the following error: >> >> >> >> >ServiceExceptionReport SYSTEM >>"http://schemas.opengeospatial.net/wms/1.1.1/exception_1_1_1.dtd"> >> >> >code="LayerNotDefined"> >> >>msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the >>LAYERS parameter. >> >> >> >> >> >> >> >>I've read about this error in the archives but cannot find a solution >>for my particular file. When my colleague calls the mapfile only one of >>the 10 layers listed is returned. >> >>The data has not changed since I upgraded and it is all in the same >>projection (UTM Zone 10). Are there some naming conventions or WMS >>requirements that are new in 4.4 that I have not found in the > > documentation? > >> >> >>Any help would be greatly appreciated as we are trying to get this thing >>up and running again for a presentation on Saturday. >> >> >> >>Thanks, >> >> >> >>**Tracy Howlett** >> >>Community Habitat Resources Project >> >>GIS Web Development Coordinator >> >>PO Box 1122, Whistler, BC, V0N 1B8 >> >>Phone: 604 932 2019 >> >>Fax: 604 932 2077 >> >>Web: www.CHiRPwhistler.info >> >> >> >> >> >> >> > > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From kgrootendorst at BAIRD.COM Thu Jan 20 07:31:57 2005 From: kgrootendorst at BAIRD.COM (Kevin Grootendorst) Date: Thu, 20 Jan 2005 09:31:57 -0600 Subject: Zoom to custom extent - PHP Message-ID: I'm trying to create a simple drop down list with a few place names, so that users can click on a name and the map will automatically zoom to a custom extent. However, I'm having some trouble with this. When I click on the place name, the whole page just reloads and does not zoom to the extent. Any help would be appreciated. I'm using PHP 4.3.4 and MapServer 4.2 (built with MapLab 2.2) Code (in my 'contents.php' file): and From jdport at VERITIME.COM Thu Jan 20 07:31:56 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Thu, 20 Jan 2005 10:31:56 -0500 Subject: mapserver 4.4.1 binary for debian? Message-ID: Actually I looked for it, but in the file that debian writes that shows the files that were installed, it doesn't even list the mapserver binary. I got the debian package from http://agrogeomatic.educagri.fr/debian/dists/unstable/main/binary-i386/mapserver/ I do have mapscript installed, the php_mapscript.so library is in place. Just no mapserver cgi binary. Thanks, -Jeff ----- Original Message ----- From: "Homme Zwaagstra" To: Sent: Thursday, January 20, 2005 10:03 AM Subject: Re: [UMN_MAPSERVER-USERS] mapserver 4.4.1 binary for debian? > Hi Jeff, > > I haven't used the debian package but isn't it likely that > php-mapscript was placed in PHP's extension directory (check the > php.ini file for the location or have a look on your system for > php_mapscript.so). Likewise perhaps the mapserv binary was placed in > your webserver's CGI directory? > > Just a guess! > > Kind regards, > > Homme > > On Thu, Jan 20, 2005 at 09:39:44AM -0500, Jeff Portwine wrote: >> I installed the mapserver/php4-mapscript 4.4.1 debian packages and >> everything seems to be in place, except the package didn't seem to >> include the actual mapscript binary. legend, scalebar, shp2img, etc are >> all there installed in /usr/bin but there is no mapserver or mapserver40 >> binary. Any chance somebody out there has one or knows the location of a >> package that didn't leave this out? >> >> Thanks, >> Jeff > > -- > Homme Zwaagstra > GeoData Institute > University of Southampton > From hrz at GEODATA.SOTON.AC.UK Thu Jan 20 08:32:43 2005 From: hrz at GEODATA.SOTON.AC.UK (Homme Zwaagstra) Date: Thu, 20 Jan 2005 16:32:43 +0000 Subject: mapserver 4.4.1 binary for debian? In-Reply-To: <01a401c4ff05$2ca581a0$1bf2fbd0@solo> Message-ID: Jeff, On Thu, Jan 20, 2005 at 10:31:56AM -0500, Jeff Portwine wrote: > Actually I looked for it, but in the file that debian writes that shows the > files that were installed, it doesn't even list the mapserver binary. > > I got the debian package from > http://agrogeomatic.educagri.fr/debian/dists/unstable/main/binary-i386/mapserver/ > I do have mapscript installed, the php_mapscript.so library is in place. > Just no mapserver cgi binary. Note that the mapserver binary is called mapserv and not mapserver! If that's not it I'd get in touch with the package maintainer. I'm not familiar with Debian but isn't there an apt-get command that will let you list the files in a package? > Thanks, > -Jeff Kind regards, Homme. -- Homme Zwaagstra GeoData Institute University of Southampton From joseluismapserver at YAHOO.ES Thu Jan 20 09:02:42 2005 From: joseluismapserver at YAHOO.ES (Jose Luis Gonzalez) Date: Thu, 20 Jan 2005 18:02:42 +0100 Subject: .tab and .map In-Reply-To: Message-ID: So the only thing that you done is to add the projection definition below in the .map file, and thanks to that you can view the tiff file? Is that correct? By the way, what is tmerc mean? All I want to do is to view the tiff file in a web page and then situate some points in it (UTM coordinates). If you can guide me more in the way of doing it I will be very greatfull. I use Mapserver 4.4.0 and java (servlets) Thank you Jose Luis --- Trent Burton escribi?: > Yes, I resolved the issue. > > There was no EPSG code available for my dataset so I > ended up having to create the projection 'manually'. > > I ended up having to go back to the person who gave > me the data to get all the specific projection > information. You can see what I ended up as the > projection for this layer in the projection > definition below: > > > > PROJECTION > "+proj=tmerc +lat_0=0 +lon_0=-76.5 +k=0.9999 > +x_0=304800 +y_0=0" > END > > > Trent > > -----Original Message----- > From: Jose Luis Gonzalez > [mailto:joseluismapserver at yahoo.es] > Sent: Thursday, January 20, 2005 10:41 AM > To: Trent Burton > Subject: .tab and .map > > > Hi Trent > I have read that you had a similar problem than me > and > I would like to know if you managed to resolve your > doubt. If so please tell me the answer. > > Thank you > > You wrote: > > Can someone tell me the projection entry into a map > file for the > following Mapinfo tif .tab entry, or better yet, > explain to me how this > works? > > !table > !version 300 > !charset WindowsLatin1 > > Definition table > File "35j04_1614.tif" > Type "RASTER" > (347739.77,6898820.51) (0,0) Label "Pt 1", > (349059.02,6898820.51) (5277,0) Label "Pt 2", > (349059.02,6897411.01) (5277,5638) Label "Pt 3", > (347739.77,6897411.01) (0,5638) Label "Pt 4" > CoordSys Earth Projection 8, 33, "m", -76.5, 0, > 0.9999, 304800, 0 > BOUNDS (-7943519.03923, -10000965.5329) > (8553119.03923, 10000965.5329) > Units "m" > =20 > =20 > =20 > I assume that SUPPORTS=3DPROJ means that my > mapserver > was compiled with > PROJ.4? > > > Thanks, > > Trent > > > > ______________________________________________ > Renovamos el Correo Yahoo!: ?250 MB GRATIS! > Nuevos servicios, m?s seguridad > http://correo.yahoo.es > ______________________________________________ Renovamos el Correo Yahoo!: ?250 MB GRATIS! Nuevos servicios, m?s seguridad http://correo.yahoo.es From stevem at SPATIALMAPPING.COM Thu Jan 20 09:27:05 2005 From: stevem at SPATIALMAPPING.COM (Steven Monai) Date: Thu, 20 Jan 2005 11:27:05 -0600 Subject: Configure error when building for Apache DSO Message-ID: I think you have confused php_mapscript with PHP. It is PHP that is compiled as an Apache DSO; php_mapscript is compiled as a dynamically- loaded module of PHP. Drop the '--with-apxs' switch from your MapServer configuration, and you might have better luck. Hope this helped, -Steve M. -- On Wed, 19 Jan 2005 11:02:09 -0600, Rob P. wrote: >According to the the HISTORY.TXT file distributed with ms 4.4.1, >php_mapscript can be built as an Apache DSO. However, when I run the >configure script this does not seem to be the case: > >./configure --with-php=/usr/ports/lang/php4/work/php-4.3.10 \ > --with-php-regex-dir=/usr/ports/lang/php4/work/php-4.3.10 \ > --with-apxs=/usr/local/sbin/apxs --with-gd=/usr/local > >checking whether we should use PHP's regex... yes > using PHP regex source from /usr/ports/lang/php4/work/php- 4.3.10/regex > PHP/MapScript module configured. >configure: error: >!!! The current version of PHP MapScript requires PHP4 configured as !!! >!!! a CGI and cannot be used with PHP4 configured as an Apache module,!!! >!!! so you cannot use the --with-apxs option. !!! >!!! See: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI !!! > >Does anyone see what I am doing wrong here? > >OS is FreeBSD 5.3 >Apache/1.3.33 >php 4.3.10 > >Thankyou for your help >Rov From Tracy at CHIRPWHISTLER.INFO Thu Jan 20 09:30:30 2005 From: Tracy at CHIRPWHISTLER.INFO (Tracy Howlett) Date: Thu, 20 Jan 2005 09:30:30 -0800 Subject: WMS error after upgrade to 4.4 In-Reply-To: <41EFCDB9.4050200@dmsolutions.ca> Message-ID: Hmmm - thanks a lot for your help but I'm still getting the layer error. Can you tell me what I need to do to make my layers OGC compliant? Tracy Howlett Community Habitat Resources Project GIS Web Development Coordinator PO Box 1122, Whistler, BC, V0N 1B8 Phone: 604 932 2019 Fax: 604 932 2077 Web: www.CHiRPwhistler.info Forum: www.CHiRPwhistler.info/forums/index.php -----Original Message----- From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] Sent: Thursday, January 20, 2005 7:27 AM To: Tracy at CHiRPwhistler.info Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] WMS error after upgrade to 4.4 Not sure what might be the problem, but I have tested your wms client map file and spotted a couple of issues in the first layer (RMOW bounadary) : - "wms_name" "RMOW " : from your server file definition, this should be "RMOW" with no white space. Maybe mapserver should automatically strip white spaces but in any case you should chnage it. "wms_server_version" "1.11" : should be 1.1.1 After these 2 corrections, I was able to dsiplay the map. Hope it helps. Later, Tracy Howlett wrote: > Here is my getmap request: > > http://www.chirpwhistler.info/scripts/mapserv.exe?map=chirp_wms.map&VERSION= > 1.1.1&SERVICE=wms&REQUEST=GetMap > > And here is the sample of my cascading mapfile and the base mapfile > > I really appreciate your help! > > Cascade (c:\inetpub\scripts\chirp_wms.map): > > # > # Start of map file > # > # Sample map file for a chameleon app. > # > NAME CHIRP_WMS > STATUS ON > SIZE 570 360 > SYMBOLSET "c:\chameleon-2.0\CHiRP\etc\symbols.sym" > EXTENT 486515 5541282 512169 5559285 > UNITS METERS > SHAPEPATH "c:\chameleon-2.0\CHiRP\data\" > IMAGECOLOR 255 255 255 > FONTSET "c:\chameleon-2.0\CHiRP\etc\fonts.txt" > > # > # Start of web interface definition > # > WEB > # > # On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root > # of the drive where the .MAP file resides. > # > IMAGEPATH "/tmp/ms_tmp/" > IMAGEURL "/tmp/" > METADATA > "wms_title" "CHIRP_WMS" > "wms_onlineresource" > "http://www.chirpwhistler.info/scripts/mapserv.exe?map=c:\chameleon-2.0\CHiR > P\map\chirp.map&" > END > END > > PROJECTION > "init=epsg:26910" > END > > # > # Start of layer definitions > # > > LAYER > NAME "RMOW Boundary" > TYPE RASTER > STATUS ON > CONNECTION > "http://localhost/scripts/mapserv.exe?map=c:\c:\chameleon-2.0\chirp\map\chir > p.map&" > CONNECTIONTYPE WMS > METADATA > "wms_title" "RMOW" > "wms_srs" "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326 > EPSG:42304 EPSG:26910" > "wms_name" "RMOW " > "wms_server_version" "1.11" > "wms_formatlist" "image/gif,image/png,image/jpeg,image/wbmp" > "wms_format" "image/gif" > END > END > > LAYER > NAME "Municipal Park" > TYPE RASTER > STATUS ON > CONNECTION > "http://www.chirpwhistler.info/scripts/mapserv.exe?map=c:\chameleon-2.0\chir > p\map\chirp.map&" > CONNECTIONTYPE WMS > METADATA > "wms_title" "Park" > "wms_srs" "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326 > EPSG:42304 EPSG:26910" > "wms_name" "Park" > "wms_server_version" "1.1.1" > "wms_formatlist" "image/gif,image/png,image/jpeg,image/wbmp" > "wms_format" "image/gif" > END > > LAYER > NAME "Buildings" > TYPE RASTER > STATUS ON > CONNECTION > "http://www.chirpwhistler.info/scripts/mapserv.exe?map=c:\chameleon-2.0\CHiR > P\map\chirp.map&" > CONNECTIONTYPE WMS > METADATA > "wms_title" "Buildings" > "wms_srs" "EPSG:26910" > "wms_name" "Buildings" > "wms_server_version" "1.1.1" > "wms_formatlist" "image/gif,image/png,image/jpeg,image/wbmp" > "wms_format" "image/gif" > END > END > > Base MapFile (c:\chameleon-2.0\chirp\map\chirp.map): > > # > # Start of map file > # > # Sample map file for a chameleon app. > # > NAME CHiRP > STATUS ON > SIZE 570 360 > SYMBOLSET "../etc/symbols.sym" > EXTENT 486515 5541282 512169 5559285 > UNITS METERS > SHAPEPATH "../data/" > IMAGECOLOR 255 255 255 > FONTSET "../etc/fonts.txt" > > > # > # Start of web interface definition > # > WEB > MINSCALE 1300 > MAXSCALE 13000000000 > # > # On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root > # of the drive where the .MAP file resides. > # > IMAGEPATH "/tmp/ms_tmp/" > IMAGEURL "/tmp/" > # LOG "/tmp/gmap.log" > METADATA > "wms_title" "CHiRP" > "wms_onlineresource" > "http://www.CHiRPwhistler.info/scripts/mapserv.exe?map=c:\chameleon-2.0\CHiR > P\map\chirp.map&" > END > END > > # > # Start of reference map > # > REFERENCE > IMAGE images/whistler_sm.png > EXTENT 486515 5541282 512169 5559285 > STATUS ON > COLOR -1 -1 -1 > OUTLINECOLOR 255 0 0 > SIZE 75 50 > END > > # > # Start of legend > # > LEGEND > STATUS ON > KEYSIZE 18 12 > # LABEL object > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > TEMPLATE "legend3.html" > END > > > # > # Start of scalebar > # > SCALEBAR > IMAGECOLOR 255 255 255 > LABEL > COLOR 0 0 0 > SIZE SMALL > END > SIZE 150 5 > COLOR 255 255 255 > BACKGROUNDCOLOR 0 0 0 > OUTLINECOLOR 0 0 0 > UNITS Kilometers > INTERVALS 5 > STATUS ON > END > > > QUERYMAP > STATUS ON > STYLE HILITE > COLOR 255 0 0 > END > > PROJECTION > "init=epsg:26910" > END > > # > # Start of layer definitions > # > > # MUNICIPAL PARK > > LAYER > NAME "Municipal Park" > GROUP "Recreation" > TYPE POLYGON > DUMP TRUE > TEMPLATE "blank.html" > TOLERANCE 10 > TOLERANCEUNITS PIXELS > STATUS ON > DATA "Park" > PROJECTION > "init=epsg:26910" > END > CLASS > COLOR 150 231 138 > END > METADATA > WMS_GROUP_TITLE "Recreation" > WMS_TITLE "Park" > WMS_ABSTRACT "Park" > WMS_SRS "EPSG:26910" > END > END > > # RMOW BOUNDARY > > LAYER > NAME "Resort Municipality of Whistler" > TYPE LINE > STATUS ON > GROUP "Boundaries" > DATA "RMOW" > PROJECTION > "init=epsg:26910" > END > CLASS > COLOR 168 0 0 > SYMBOL "Line" > SIZE 2 > END > METADATA > WMS_GROUP_TITLE "Boundaries" > WMS_TITLE "RMOW" > WMS_ABSTRACT "Resort Municipality of Whistler Boundary" > WMS_SRS "EPSG:26910" > END > END > > # BUILDINGS > > LAYER > NAME "Buildings" > GROUP "Civic Information" > TYPE POLYGON > DATA "Building" > MAXSCALE 15000 > STATUS ON > TOLERANCE 10 > TOLERANCEUNITS PIXELS > TEMPLATE "blank.html" > CLASSITEM "Class" > PROJECTION > "init=epsg:26910" > END > CLASS > NAME "Accomodation" > EXPRESSION "Accomodation" > OUTLINECOLOR 0 0 0 > COLOR 230 0 0 > END > CLASS > NAME "Commercial" > EXPRESSION "Commercial" > OUTLINECOLOR 0 0 0 > COLOR 0 77 168 > END > CLASS > NAME "Residential" > EXPRESSION "Residential" > OUTLINECOLOR 0 0 0 > COLOR 200 133 68 > END > CLASS > NAME "Lift Base" > EXPRESSION "Lift Base" > OUTLINECOLOR 0 0 0 > COLOR 0 0 0 > END > CLASS > NAME "Municipal" > EXPRESSION "Municipal" > OUTLINECOLOR 0 0 0 > COLOR 130 155 90 > END > CLASS > NAME "Other" > OUTLINECOLOR 0 0 0 > EXPRESSION "" > COLOR 130 130 130 > END > CLASS > NAME "Commercial" > EXPRESSION "Commercial" > COLOR 0 77 168 > END > METADATA > WMS_GROUP_TITLE "CivicInformation" > WMS_TITLE "Buildings" > WMS_ABSTRACT "Buildings" > WMS_SRS "EPSG:26910" > END > END > > > > > > > > Tracy Howlett > Community Habitat Resources Project > GIS Web Development Coordinator > PO Box 1122, Whistler, BC, V0N 1B8 > Phone: 604 932 2019 > Fax: 604 932 2077 > Web: www.CHiRPwhistler.info > Forum: www.CHiRPwhistler.info/forums/index.php > > > -----Original Message----- > From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] > Sent: Wednesday, January 19, 2005 5:18 PM > To: Tracy Howlett > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] WMS error after upgrade to 4.4 > > Do you have an example of a getmap URL returing the exception and maybe > your map definition ? > > There has been some work done in the wms code before the 4.4 release so > that mapserver would be OGC compliant (so more parameter tesing and > exception generating has been added) and this may explain the problems > your are having. > > Later, > > > Tracy Howlett wrote: > > >>Hello, >> >> >> >>I've recently upgraded to MapServer 4.4 after running 4.0.1 successfully >>for over a year. I have been using a Cascading WMS service to share >>some of my layers out to another MapServer user who has been accessing >>my data without problem. >> >> >> >>For some reason, now that MapServer 4.4 is running, the WMS layers are >>no longer being shared. We have run the getCapabilities for both my >>base mapfile and my cascaded map file service and they both come back >>error free but when we run a getMap we receive the following error: >> >> >> >> >ServiceExceptionReport SYSTEM >>"http://schemas.opengeospatial.net/wms/1.1.1/exception_1_1_1.dtd"> >> >> >code="LayerNotDefined"> >> >>msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the >>LAYERS parameter. >> >> >> >> >> >> >> >>I've read about this error in the archives but cannot find a solution >>for my particular file. When my colleague calls the mapfile only one of >>the 10 layers listed is returned. >> >>The data has not changed since I upgraded and it is all in the same >>projection (UTM Zone 10). Are there some naming conventions or WMS >>requirements that are new in 4.4 that I have not found in the > > documentation? > >> >> >>Any help would be greatly appreciated as we are trying to get this thing >>up and running again for a presentation on Saturday. >> >> >> >>Thanks, >> >> >> >>**Tracy Howlett** >> >>Community Habitat Resources Project >> >>GIS Web Development Coordinator >> >>PO Box 1122, Whistler, BC, V0N 1B8 >> >>Phone: 604 932 2019 >> >>Fax: 604 932 2077 >> >>Web: www.CHiRPwhistler.info >> >> >> >> >> >> >> > > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From rjames57 at YAHOO.COM Thu Jan 20 09:22:47 2005 From: rjames57 at YAHOO.COM (Randy James) Date: Thu, 20 Jan 2005 09:22:47 -0800 Subject: error loading jpg file In-Reply-To: Message-ID: Hi I've upgraded my server to mandrake 10.1 and mapserver to nightly Jan. 6th, 2005 and started getting the following error. Has anyone seen this error before? My mapfile has not changed. msDrawMap(): Image handling error. Failed to draw layer named 'hillshade'. msRASTERLayerOpen(): General error message. Attempt to open a RASTER layer, but this is only supported after a raster query. I just enableled OUPUT=JPEG last night to see if it made a differance. I'm using GDAL-1.1.9 My latest build of mapserver is this: MapServer version 4.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=GDAL INPUT=SHAPEFILE Let me know if anyone needs more information? > > > > > __________________________________ > Do you Yahoo!? > The all-new My Yahoo! - Get yours free! > http://my.yahoo.com > > > __________________________________ Do you Yahoo!? Yahoo! Mail - 250MB free storage. Do more. Manage less. http://info.mail.yahoo.com/mail_250 From stevem at SPATIALMAPPING.COM Thu Jan 20 09:34:18 2005 From: stevem at SPATIALMAPPING.COM (Steven Monai) Date: Thu, 20 Jan 2005 11:34:18 -0600 Subject: PostGIS Connection Trouble Message-ID: What version of MapServer are you using? I recall that older versions of MapServer were picky about the case of SQL keywords used in the DATA string. In particular, the following wouldn't work: DATA "the_geom FROM myTable" while this would work: DATA "the_geom from myTable" My suggestion: Try making all your SQL keywords lower-case. Hope this helped, -Steve M. -- On Wed, 19 Jan 2005 18:05:19 +0100, Arnulf Christl wrote: >Hi, >I am at a loss, we use MapServer/PostGIS every day but this one wont work. > >PostgreSQL 7.4.2 >PostGIS 0.9.0 >SuSE Linux Enterprise Server 9 > > > >The error message looks strange to me, never saw that one. Especially >the part: >"oid::text from WHERE &&" >Anybody any idea? See the MAP-file DATA string at the bottom. > >### > >"http://schemas.opengeospatial.net/wms/1.1.1/exception_1_1_1.dtd"> > > >msDrawMap(): Image handling error. Failed to draw layer named >'poly'. >prep_DB(): Query error. Error executing POSTGIS DECLARE (the actual >query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT >asbinary(force_collection(force_2d()),'NDR'),oid::text from >WHERE && setSRID('BOX3D(3275833.33333155 >5400833.33332511,3524166.66666667 5649166.66666667)'::BOX3D, >find_srid('','','') )' <br><br> > >Postgresql reports the error as 'FEHLER: Fehler ??syntax error?? bei >??WHERE?? at character 104 >'<br><br> > >More Help:<br><br> > >Error with POSTGIS data variable. You specified '&lt;check your >.map file&gt;'.<br> > >Standard ways of specifiying are : <br> >(1) 'geometry_column from geometry_table' <br> >(2) 'geometry_column from (&lt;sub query&gt;) as foo using >unique &lt;column name&gt; using SRID=&lt;srid#&gt;' ><br><br> > >Make sure you put in the 'using unique &lt;column >name&gt;' and 'using SRID=#' clauses in. > ><br><br>For more help, please see >http://postgis.refractions.net/documentation.php > ><br><br>Mappostgis.c - version of Jan 23/2004. > >msPOSTGISLayerParseData(): Query error. Error parsing POSTGIS data >variable. Must contain 'geometry_column from table_name' or >'geom from (subselect) as foo' (couldnt find ' from '). >More help: <br><br> > >Error with POSTGIS data variable. You specified 'SELECT the_geom >FROM (SELECT the_geom AS the_geom, betrnr AS betrnr, jahr AS jahr, oid >AS oid FROM user_polygon) AS foo USING UNIQUE oid SRID=31467'.<br> >Standard ways of specifiying are : <br> >(1) 'geometry_column from geometry_table' <br> >(2) 'geometry_column from (&lt;sub query&gt;) as foo using >unique &lt;column name&gt; using SRID=&lt;srid#&gt;' ><br><br> > >Make sure you put in the 'using unique &lt;column >name&gt;' and 'using SRID=#' clauses in. > ><br><br>For more help, please see >http://postgis.refractions.net/documentation.php > ><br><br>Mappostgis.c - version of Jan 23/2004. > > > > >### > >The history of my helplessness from bottom to top. We've tried the >SELECTS with capitals, repeated uses of 'USING' etc. wont work. > >DATA "SELECT the_geom FROM (SELECT the_geom AS the_geom, betrnr AS >betrnr, jahr AS jahr, oid AS oid FROM user_polygon) AS foo USING UNIQUE >user_polygon.oid USING SRID=31467" > ># DATA "the_geom FROM (SELECT the_geom AS the_geom, betrnr AS betrnr, >jahr AS jahr, oid AS oid FROM user_polygon) AS foo USING UNIQUE oid >USING SRID=31467" > ># DATA "SELECT the_geom FROM (SELECT the_geom AS the_geom, betrnr AS >betrnr, jahr AS jahr, oid AS oid FROM user_polygon) AS foo USING UNIQUE >oid USING SRID=31467;" > ># DATA "SELECT the_geom FROM (SELECT the_geom AS the_geom, betrnr AS >betrnr, jahr AS jahr, oid AS oid FROM user_polygon) AS foo USING UNIQUE >oid USING SRID=31467" > ># DATA "the_geom FROM (SELECT the_geom AS the_geom, betrnr AS betrnr, >jahr AS jahr, oid AS oid FROM user_polygon) as foo using unique oid >using SRID=31467" > ># DATA 'the_geom FROM (SELECT betrnr, jahr FROM user_polygon) AS foo >USING UNIQUE SRID=31467' > ># DATA "the_geom FROM user_polygon" > > >Best regards, >Arnulf. From john at HULST.NAME Thu Jan 20 09:38:34 2005 From: john at HULST.NAME (John Hulst) Date: Thu, 20 Jan 2005 18:38:34 +0100 Subject: Installation of Mapserver In-Reply-To: <002201c4fcca$00a56850$6401a8c0@blanken> Message-ID: Hi Wim, Thank you for your reply. it seems that the MSVCR70.DLL is missing from my PC. I found out that this is a common problem. This is supposed to be in MS visual studio and on some sites (is that legal?). I will see how to solve this. John At 20:23 17/01/2005, Wim Blanken wrote: >Hello John, > >Please try mapserv -v on the command line, windows will show you which dll >it is missing. >Then copy this dll to windows/system32 > >Regards, > >Wim Blanken >The Netherlands >----- Original Message ----- >From: John Hulst >To: MAPSERVER-USERS at LISTS.UMN.EDU >Sent: Monday, January 17, 2005 8:00 PM >Subject: [UMN_MAPSERVER-USERS] Installation of Mapserver > >Hello all, > >I have tried to install mapserver on my Windows PC. >I have Apachy running on it and I used the description >that I found in the release. >I use :PROJ_LIB and have updated the path to the DLL's. > >Then at point 9 it goes wrong: > 9. Test MapServer by typing " http://localhost/cgi-bin/mapserv.exe" on you > browser. It should return the following message: > "No query information to decode. QUERY_STRING is set, but empty." > >Instead of the "no query message" I get the reply: > > > >"Internal Server Error > > > >The server encountered an internal error or misconfiguration and was >unable to complete your request. > >Please contact the server administrator, john at hulst.name and inform them >of the time the error occurred, and anything you might have done that may >have caused the error. > >More information about this error may be available in the server error log. > >---------- >Apache/2.0.52 (Win32) Server at 83.179.14.148 Port 80 >" > >Anybody seen something simular? Since I am a newby on Apachy as well as >Mapserver I hope that you can help me. > >Thanks and regards, > >John Hulst >------------------------------------- > >Installation Instructions: >1. Unzip the package to a directory. For example, "C:\MapServer". >2. View the README-Binaries.txt from "C:\Mapserver" for information on support > compiled with this package. >3. View README for credits and license information. >4. View HISTORY.TXT for additional information on MapServer 4.4.1 >5. Copy mapserv.exe from "C:\MapServer\bin" to your web server's cgi-bin > directory. (In Microsoft's IIS, this is either in "C:\Inetpub\Scripts" or > "C:\Inetpub\wwwroot\cgi-bin". In Apache v1.3.x, this is usually in > "C:\Program Files\Apache Group\Apache\cgi-bin".) >6. Copy directory "Proj" to "C:\". (You should end up with a directory > "C:\Proj".) Alternatively, leave the "proj" subdirectory where it is > and add > a variable called PROJ_LIB to your system environment and enter the > path to > your "proj\nad" subdirectory as the value (example: system variable: > PROJ_LIB, > value: C:\MapServer\Proj\NAD). >7. Copy the dynamic link libraries (the files with .dll extensions) to your > system directory--this is typically "C:\Windows\system" on Windows 98 or > "C:\Windows\system32" on Windows 2000 and XP. Alternatively, you can > leave > the dlls where they are and update your system PATH to include the path to > your "bin" directory (i.e. "C:\MapServer\bin"). >8. Restart your web server. >9. Test MapServer by typing " http://localhost/cgi-bin/mapserv.exe" on you >browser. It should return the following message: >"No query information to decode. QUERY_STRING is set, but empty." From stevem at SPATIALMAPPING.COM Thu Jan 20 09:38:38 2005 From: stevem at SPATIALMAPPING.COM (Steven Monai) Date: Thu, 20 Jan 2005 11:38:38 -0600 Subject: PostGIS Connection Trouble Message-ID: Whoops, guess I should be a little more observant. You're using a recent version of MapServer. Is it possible that the PostGIS-keyword-case bug is still alive? -Steve M. -- On Wed, 19 Jan 2005 18:05:19 +0100, Arnulf Christl wrote: >Hi, >I am at a loss, we use MapServer/PostGIS every day but this one wont work. > >PostgreSQL 7.4.2 >PostGIS 0.9.0 >SuSE Linux Enterprise Server 9 > > > >The error message looks strange to me, never saw that one. Especially >the part: >"oid::text from WHERE &&" >Anybody any idea? See the MAP-file DATA string at the bottom. > >### > >"http://schemas.opengeospatial.net/wms/1.1.1/exception_1_1_1.dtd"> > > >msDrawMap(): Image handling error. Failed to draw layer named >'poly'. >prep_DB(): Query error. Error executing POSTGIS DECLARE (the actual >query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT >asbinary(force_collection(force_2d()),'NDR'),oid::text from >WHERE && setSRID('BOX3D(3275833.33333155 >5400833.33332511,3524166.66666667 5649166.66666667)'::BOX3D, >find_srid('','','') )' <br><br> > >Postgresql reports the error as 'FEHLER: Fehler ??syntax error?? bei >??WHERE?? at character 104 >'<br><br> > >More Help:<br><br> > >Error with POSTGIS data variable. You specified '&lt;check your >.map file&gt;'.<br> > >Standard ways of specifiying are : <br> >(1) 'geometry_column from geometry_table' <br> >(2) 'geometry_column from (&lt;sub query&gt;) as foo using >unique &lt;column name&gt; using SRID=&lt;srid#&gt;' ><br><br> > >Make sure you put in the 'using unique &lt;column >name&gt;' and 'using SRID=#' clauses in. > ><br><br>For more help, please see >http://postgis.refractions.net/documentation.php > ><br><br>Mappostgis.c - version of Jan 23/2004. > >msPOSTGISLayerParseData(): Query error. Error parsing POSTGIS data >variable. Must contain 'geometry_column from table_name' or >'geom from (subselect) as foo' (couldnt find ' from '). >More help: <br><br> > >Error with POSTGIS data variable. You specified 'SELECT the_geom >FROM (SELECT the_geom AS the_geom, betrnr AS betrnr, jahr AS jahr, oid >AS oid FROM user_polygon) AS foo USING UNIQUE oid SRID=31467'.<br> >Standard ways of specifiying are : <br> >(1) 'geometry_column from geometry_table' <br> >(2) 'geometry_column from (&lt;sub query&gt;) as foo using >unique &lt;column name&gt; using SRID=&lt;srid#&gt;' ><br><br> > >Make sure you put in the 'using unique &lt;column >name&gt;' and 'using SRID=#' clauses in. > ><br><br>For more help, please see >http://postgis.refractions.net/documentation.php > ><br><br>Mappostgis.c - version of Jan 23/2004. > > > > >### > >The history of my helplessness from bottom to top. We've tried the >SELECTS with capitals, repeated uses of 'USING' etc. wont work. > >DATA "SELECT the_geom FROM (SELECT the_geom AS the_geom, betrnr AS >betrnr, jahr AS jahr, oid AS oid FROM user_polygon) AS foo USING UNIQUE >user_polygon.oid USING SRID=31467" > ># DATA "the_geom FROM (SELECT the_geom AS the_geom, betrnr AS betrnr, >jahr AS jahr, oid AS oid FROM user_polygon) AS foo USING UNIQUE oid >USING SRID=31467" > ># DATA "SELECT the_geom FROM (SELECT the_geom AS the_geom, betrnr AS >betrnr, jahr AS jahr, oid AS oid FROM user_polygon) AS foo USING UNIQUE >oid USING SRID=31467;" > ># DATA "SELECT the_geom FROM (SELECT the_geom AS the_geom, betrnr AS >betrnr, jahr AS jahr, oid AS oid FROM user_polygon) AS foo USING UNIQUE >oid USING SRID=31467" > ># DATA "the_geom FROM (SELECT the_geom AS the_geom, betrnr AS betrnr, >jahr AS jahr, oid AS oid FROM user_polygon) as foo using unique oid >using SRID=31467" > ># DATA 'the_geom FROM (SELECT betrnr, jahr FROM user_polygon) AS foo >USING UNIQUE SRID=31467' > ># DATA "the_geom FROM user_polygon" > > >Best regards, >Arnulf. From nicolas.fortin at EC.GC.CA Thu Jan 20 09:41:09 2005 From: nicolas.fortin at EC.GC.CA (Fortin,Nicolas [SteFoy]) Date: Thu, 20 Jan 2005 12:41:09 -0500 Subject: [UMN_MAPSERVER-USERS] Installation of Mapserver Message-ID: You can download it there: http://www.dll-files.com/dllindex/dll-files.shtml?msvcr71 Or for the 70 version: http://www.dll-files.com/dllindex/dll-files.shtml?msvcr70 -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de John Hulst Envoy? : Thursday, January 20, 2005 12:39 PM ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] Installation of Mapserver Hi Wim, Thank you for your reply. it seems that the MSVCR70.DLL is missing from my PC. I found out that this is a common problem. This is supposed to be in MS visual studio and on some sites (is that legal?). I will see how to solve this. John At 20:23 17/01/2005, Wim Blanken wrote: >Hello John, > >Please try mapserv -v on the command line, windows will show you which >dll it is missing. Then copy this dll to windows/system32 > >Regards, > >Wim Blanken >The Netherlands >----- Original Message ----- >From: John Hulst >To: MAPSERVER-USERS at LISTS.UMN.EDU >Sent: Monday, January 17, 2005 8:00 PM >Subject: [UMN_MAPSERVER-USERS] Installation of Mapserver > >Hello all, > >I have tried to install mapserver on my Windows PC. >I have Apachy running on it and I used the description >that I found in the release. >I use :PROJ_LIB and have updated the path to the DLL's. > >Then at point 9 it goes wrong: > 9. Test MapServer by typing " http://localhost/cgi-bin/mapserv.exe" on you > browser. It should return the following message: > "No query information to decode. QUERY_STRING is set, but empty." > >Instead of the "no query message" I get the reply: > > > >"Internal Server Error > > > >The server encountered an internal error or misconfiguration and was >unable to complete your request. > >Please contact the server administrator, john at hulst.name and inform >them of the time the error occurred, and anything you might have done >that may have caused the error. > >More information about this error may be available in the server error >log. > >---------- >Apache/2.0.52 (Win32) Server at 83.179.14.148 Port 80 >" > >Anybody seen something simular? Since I am a newby on Apachy as well as >Mapserver I hope that you can help me. > >Thanks and regards, > >John Hulst >------------------------------------- > >Installation Instructions: >1. Unzip the package to a directory. For example, "C:\MapServer". 2. >View the README-Binaries.txt from "C:\Mapserver" for information on support > compiled with this package. >3. View README for credits and license information. >4. View HISTORY.TXT for additional information on MapServer 4.4.1 5. >Copy mapserv.exe from "C:\MapServer\bin" to your web server's cgi-bin > directory. (In Microsoft's IIS, this is either in "C:\Inetpub\Scripts" or > "C:\Inetpub\wwwroot\cgi-bin". In Apache v1.3.x, this is usually in > "C:\Program Files\Apache Group\Apache\cgi-bin".) >6. Copy directory "Proj" to "C:\". (You should end up with a directory > "C:\Proj".) Alternatively, leave the "proj" subdirectory where it >is and add > a variable called PROJ_LIB to your system environment and enter the >path to > your "proj\nad" subdirectory as the value (example: system >variable: PROJ_LIB, > value: C:\MapServer\Proj\NAD). >7. Copy the dynamic link libraries (the files with .dll extensions) to your > system directory--this is typically "C:\Windows\system" on Windows 98 or > "C:\Windows\system32" on Windows 2000 and XP. Alternatively, you >can leave > the dlls where they are and update your system PATH to include the path to > your "bin" directory (i.e. "C:\MapServer\bin"). >8. Restart your web server. >9. Test MapServer by typing " http://localhost/cgi-bin/mapserv.exe" on >you browser. It should return the following message: "No query >information to decode. QUERY_STRING is set, but empty." From sgillies at FRII.COM Thu Jan 20 09:45:20 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 20 Jan 2005 10:45:20 -0700 Subject: PostGIS Connection Trouble In-Reply-To: Message-ID: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=623 Sean On Jan 20, 2005, at 10:38 AM, Steven Monai wrote: > Whoops, guess I should be a little more observant. You're using a > recent > version of MapServer. Is it possible that the PostGIS-keyword-case bug > is > still alive? > > -Steve M. > -- > > > > On Wed, 19 Jan 2005 18:05:19 +0100, Arnulf Christl > wrote: > >> Hi, >> I am at a loss, we use MapServer/PostGIS every day but this one wont >> work. >> >> PostgreSQL 7.4.2 >> PostGIS 0.9.0 >> SuSE Linux Enterprise Server 9 >> >> >> >> The error message looks strange to me, never saw that one. Especially >> the part: >> "oid::text from WHERE &&" >> Anybody any idea? See the MAP-file DATA string at the bottom. >> >> ### >> >> > "http://schemas.opengeospatial.net/wms/1.1.1/exception_1_1_1.dtd"> >> >> >> msDrawMap(): Image handling error. Failed to draw layer named >> 'poly'. >> prep_DB(): Query error. Error executing POSTGIS DECLARE (the actual >> query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT >> asbinary(force_collection(force_2d()),'NDR'),oid::text from >> WHERE && setSRID('BOX3D(3275833.33333155 >> 5400833.33332511,3524166.66666667 5649166.66666667)'::BOX3D, >> find_srid('','','') )' >> <br><br> >> >> Postgresql reports the error as 'FEHLER: Fehler =C2=BBsyntax >> error=C2=AB= > bei >> =C2=BBWHERE=C2=AB at character 104 >> '<br><br> >> >> More Help:<br><br> >> >> Error with POSTGIS data variable. You specified '&lt;check >> your >> .map file&gt;'.<br> >> >> Standard ways of specifiying are : <br> >> (1) 'geometry_column from geometry_table' <br> >> (2) 'geometry_column from (&lt;sub query&gt;) as foo using >> unique &lt;column name&gt; using >> SRID=3D&lt;srid#&gt;' >> <br><br> >> >> Make sure you put in the 'using unique &lt;column >> name&gt;' and 'using SRID=3D#' clauses in. >> >> <br><br>For more help, please see >> http://postgis.refractions.net/documentation.php >> >> <br><br>Mappostgis.c - version of Jan 23/2004. >> >> msPOSTGISLayerParseData(): Query error. Error parsing POSTGIS data >> variable. Must contain 'geometry_column from table_name' or >> 'geom from (subselect) as foo' (couldnt find ' from >> '). >> More help: <br><br> >> >> Error with POSTGIS data variable. You specified 'SELECT the_geom >> FROM (SELECT the_geom AS the_geom, betrnr AS betrnr, jahr AS jahr, oid >> AS oid FROM user_polygon) AS foo USING UNIQUE oid > SRID=3D31467'.<br> >> Standard ways of specifiying are : <br> >> (1) 'geometry_column from geometry_table' <br> >> (2) 'geometry_column from (&lt;sub query&gt;) as foo using >> unique &lt;column name&gt; using >> SRID=3D&lt;srid#&gt;' >> <br><br> >> >> Make sure you put in the 'using unique &lt;column >> name&gt;' and 'using SRID=3D#' clauses in. >> >> <br><br>For more help, please see >> http://postgis.refractions.net/documentation.php >> >> <br><br>Mappostgis.c - version of Jan 23/2004. >> >> >> >> >> ### >> >> The history of my helplessness from bottom to top. We've tried the >> SELECTS with capitals, repeated uses of 'USING' etc. wont work. >> >> DATA "SELECT the_geom FROM (SELECT the_geom AS the_geom, betrnr AS >> betrnr, jahr AS jahr, oid AS oid FROM user_polygon) AS foo USING >> UNIQUE >> user_polygon.oid USING SRID=3D31467" >> >> # DATA "the_geom FROM (SELECT the_geom AS the_geom, betrnr AS betrnr, >> jahr AS jahr, oid AS oid FROM user_polygon) AS foo USING UNIQUE oid >> USING SRID=3D31467" >> >> # DATA "SELECT the_geom FROM (SELECT the_geom AS the_geom, betrnr AS >> betrnr, jahr AS jahr, oid AS oid FROM user_polygon) AS foo USING >> UNIQUE >> oid USING SRID=3D31467;" >> >> # DATA "SELECT the_geom FROM (SELECT the_geom AS the_geom, betrnr AS >> betrnr, jahr AS jahr, oid AS oid FROM user_polygon) AS foo USING >> UNIQUE >> oid USING SRID=3D31467" >> >> # DATA "the_geom FROM (SELECT the_geom AS the_geom, betrnr AS betrnr, >> jahr AS jahr, oid AS oid FROM user_polygon) as foo using unique oid >> using SRID=3D31467" >> >> # DATA 'the_geom FROM (SELECT betrnr, jahr FROM user_polygon) AS foo >> USING UNIQUE SRID=3D31467' >> >> # DATA "the_geom FROM user_polygon" >> >> >> Best regards, >> Arnulf. > From fsozzi at INTERCAD.CH Thu Jan 20 09:56:43 2005 From: fsozzi at INTERCAD.CH (Francesco Sozzi) Date: Thu, 20 Jan 2005 18:56:43 +0100 Subject: troubles on some Oracle field names Message-ID: Hi Fernando, I've got sothing strange in writing sql statements into layer definition. If I specifiy a field with words "anno_..." or "funzione_...", when I attempt to run GetShape() I get an error into browser. So, I prepared a simple example where I use these words into field synonyms (but it is the same when these terms have been found into real field names). Here you are a data definition where I use "anno_costruzione" as synonym of fid: it gives error. DATA "GEOM FROM (SELECT fid, geom, stato, numero, fid anno_costruzione FROM ic_kuba_manufatti) USING UNIQUE FID" Here you are a data definition where I use "anno2_costruzione" as synonym of fid: it works fine. DATA "GEOM FROM (SELECT fid, geom, stato, numero, fid anno2_costruzione FROM ic_kuba_manufatti) USING UNIQUE FID" Here you are code: $layer->open(); echo "1
"; $result = $layer->getResult(0); echo "2
"; $shape = $layer->getShape($result->tileindex,$result->shapeindex); echo "3
"; $keyValue=$shape->values[$metadataLayerKey]; echo "4
"; $layer->close(); Here you are whate I get when I use "anno_costruzione". 1 2 Fatal error: [MapServer Error]: msOracleSpatialLayerGetShape(): Error: ORA-00911: carattere non valido . Query statement: SELECT FID, STATO, NUMERO, ANNO_COSTRUZIONE , GEOM FROM (SELECT fid, geom, stato, numero, fid anno_costruzione FROM ic_kuba_manufatti) WHERE FID = 1512 .Check your data statement. in C:\App\QueryMapWEB\runtime\qm\scripts\ic_php_map.inc on line 635 Please note that the characters " " does not stays into my mapfile. If I use "anno2_costruzione" it works fine. The same if I use some terms more (es: "funzione_...") Best regards Francesco From nacional at CBS.UMN.EDU Thu Jan 20 10:01:48 2005 From: nacional at CBS.UMN.EDU (Pericles S. Nacionales) Date: Thu, 20 Jan 2005 12:01:48 -0600 Subject: Workshop Demo errors In-Reply-To: <7C1C60DF42F17D40B8C23DBAA931158DD6C8@MAIL1.CIPCpub.local> Message-ID: On Thursday 20 January 2005 07:52 am, Ron Swain [Contractor] wrote: > I have been beating my head for almost a week now on this issue. I am > running Apache server on Windows, installed the Mapserver 4.4 binary > correctly. The command line mapserv -v runs perfectly. I have > downloaded and installed the Itasca Workshop demo from: > > http://maps.dnr.state.mn.us/mapserver_demos/workshop.zip > > I have modified the index.html as follows: > > > > onSubmit="submit_form()"> > Try: > > > Try: > > value="/htdocs/tmp/"> > Try: > > When I bring up the index.html file in the webbrowser and select [Basic > Application] Select Initialize - I see the following error: > > > > Internal Server Error > > The server encountered an internal error or misconfiguration and was > unable to complete your request. > > Please contact the server administrator, ron.swain at cipc.navy.mil and > inform them of the time the error occurred, and anything you might have > done that may have caused the error. > This may be caused by many things--file/directory permissions, Windows firewall, Apache configuration, etc. It could also be because you're using Windows 2000 (or some other pre-XP Windows) and need some of the libraries used to compile MapServer itself, i.e. the msvcr70.dll. You can get this by running Windows Update and selecting .Net-whatever from the list of recommended updates. You can also download this manually from Microsoft. I don't use Windows that much anymore so I can't give you anything specific that needs to be done. If you've done everything and still can't get it to work, give MS4W from maptools.org a try. I tried it recently and it worked well. There was a Windows firewall message that popped-up when I ran the Apache install script... something about some rule that Apache needs to change (you want Apache to change it). Whatever this rule is, it might be what's screwing up your MapServer app. Sorry I can't be more specific. Good luck! -Perry -- Pericles S. Nacionales Dept. of Ecology, Evolution, and Behavior University of Minnesota work: 612 624 6713 e-mail: nacional at cbs.umn.edu From fsimon at UNIVALI.BR Thu Jan 20 09:17:03 2005 From: fsimon at UNIVALI.BR (Fernando S.) Date: Thu, 20 Jan 2005 17:17:03 +0000 Subject: troubles on some Oracle field names In-Reply-To: <002001c4ff19$66f7d600$1901a8c0@Franz1> Message-ID: Hi Francesco, It's a strange problem. The problem can be in msOracleSpatialLayerGetShape function or in msOracleSpatialLayerGetItems function, where I created the "layer->items". I don't know but I believe that core of problem is with "layer->items". I will check this problem and other little things for the next commit. Thanks. ---------------------------------------------------- Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://g10.cttmar.univali.br - UNIVALI/CTTMAR ---------------------------------------------------- Francesco Sozzi wrote: >Hi Fernando, > >I've got sothing strange in writing sql statements into layer definition. >If I specifiy a field with words "anno_..." or "funzione_...", when I >attempt to run GetShape() I get an error into browser. > >So, I prepared a simple example where I use these words into field synonyms >(but it is the same when these terms have been found into real field names). > >Here you are a data definition where I use "anno_costruzione" as synonym of >fid: it gives error. > >DATA "GEOM FROM (SELECT fid, geom, stato, numero, fid anno_costruzione FROM >ic_kuba_manufatti) USING UNIQUE FID" > >Here you are a data definition where I use "anno2_costruzione" as synonym of >fid: it works fine. > >DATA "GEOM FROM (SELECT fid, geom, stato, numero, fid anno2_costruzione FROM >ic_kuba_manufatti) USING UNIQUE FID" > >Here you are code: > > $layer->open(); >echo "1
"; > $result = $layer->getResult(0); >echo "2
"; > $shape = $layer->getShape($result->tileindex,$result->shapeindex); >echo "3
"; > $keyValue=$shape->values[$metadataLayerKey]; >echo "4
"; > $layer->close(); > >Here you are whate I get when I use "anno_costruzione". > >1 >2 > >Fatal error: [MapServer Error]: msOracleSpatialLayerGetShape(): Error: >ORA-00911: carattere non valido . Query statement: SELECT FID, STATO, >NUMERO, ANNO_COSTRUZIONE , GEOM FROM (SELECT fid, geom, stato, numero, fid >anno_costruzione FROM ic_kuba_manufatti) WHERE FID = 1512 .Check your data >statement. in C:\App\QueryMapWEB\runtime\qm\scripts\ic_php_map.inc on line >635 > >Please note that the characters " " does not stays into my mapfile. > >If I use "anno2_costruzione" it works fine. >The same if I use some terms more (es: "funzione_...") > >Best regards > >Francesco > > > > > From kgrootendorst at BAIRD.COM Thu Jan 20 12:06:19 2005 From: kgrootendorst at BAIRD.COM (Kevin Grootendorst) Date: Thu, 20 Jan 2005 14:06:19 -0600 Subject: Inappropriate links/content on mapserver site Message-ID: MapServer folks, I was looking for help regarding PHP/Mapscript documentation, and I was on the following site: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl? PHPDynLegend. I noticed a number of links at the bottom of the page that linked to very inappropriate content. Maybe whoever maintains the site (mapserver.gis.umn.edu) can have a look and remove them. Just thought I'd bring this to your attention. From kgrootendorst at BAIRD.COM Thu Jan 20 12:08:16 2005 From: kgrootendorst at BAIRD.COM (Kevin Grootendorst) Date: Thu, 20 Jan 2005 14:08:16 -0600 Subject: Inappropriate links/content on mapserver site Message-ID: The link should read: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPDynLegend From sgillies at FRII.COM Thu Jan 20 12:11:51 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 20 Jan 2005 13:11:51 -0700 Subject: Inappropriate links/content on mapserver site In-Reply-To: Message-ID: On Jan 20, 2005, at 1:06 PM, Kevin Grootendorst wrote: > MapServer folks, > I was looking for help regarding PHP/Mapscript documentation, and I > was on > the following site: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl? > PHPDynLegend. > > I noticed a number of links at the bottom of the page that linked to > very > inappropriate content. Maybe whoever maintains the site > (mapserver.gis.umn.edu) can have a look and remove them. > > Just thought I'd bring this to your attention. > > The wiki was made read-only to prevent more spam, but the admin hasn't purged all the existing stuff. It's pervasive. Look at my page, for example: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?SeanGillies I'm like a Walmart! Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From lfilak at MEDINACO.ORG Thu Jan 20 12:36:34 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Thu, 20 Jan 2005 15:36:34 -0500 Subject: Inappropriate links/content on mapserver site Message-ID: The following message was sent by Sean Gillies on Thu, 20 Jan 2005 13:11:51 -0700. > On Jan 20, 2005, at 1:06 PM, Kevin Grootendorst wrote: > > > MapServer folks, > > I was looking for help regarding PHP/Mapscript documentation, and I > > was on > > the following site: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl? > > PHPDynLegend. > > > > I noticed a number of links at the bottom of the page that linked to > > very > > inappropriate content. Maybe whoever maintains the site > > (mapserver.gis.umn.edu) can have a look and remove them. > > > > Just thought I'd bring this to your attention. > > > > > > The wiki was made read-only to prevent more spam, but the admin hasn't > purged all the existing stuff. It's pervasive. Look at my page, for > example: > > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?SeanGillies > > I'm like a Walmart! > > Sean LOL, (pertaining to 'Walmart' not the spam). A multilugual Walmart at that! Lowell From assefa at DMSOLUTIONS.CA Thu Jan 20 12:45:50 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Thu, 20 Jan 2005 15:45:50 -0500 Subject: WMS error after upgrade to 4.4 In-Reply-To: <200501201730.j0KHUfv12740@xcalibur.dmsolutions.ca> Message-ID: Tracy, - Start by doing a getcapabilities on the wms server. You will see all the layers that are available. - inside your wms client map, use the same name for the "wms_name" paramater as one of the layers defined on the server and that should be it. I just tried this wms cleint layer pointing to your server and it did display the layer properly : LAYER NAME "Municipal Park" TYPE RASTER STATUS ON #CONNECTION "http://www.chirpwhistler.info/scripts/mapserv.exe?map=c:\chameleon-2.0\chirp\map\chirp.map&" CONNECTION "http://www.chirpwhistler.info/scripts/mapserv.exe?map=chirp_wms.map&" CONNECTIONTYPE WMS METADATA "wms_title" "Park" "wms_srs" "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326 EPSG:42304 EPSG:26910" "wms_name" "Municipal Park" "wms_server_version" "1.1.1" "wms_formatlist" "image/gif,image/png,image/jpeg,image/wbmp" "wms_format" "image/gif" END END I do not thing there is any thing wrong but just only layer names issues. BTW avoid using spaces in layer names (eg Municipal Park, you should use Municipal_Park). You can use a more descriptive name for the title. Hope this helps. If you still have issues with it, I suggest you open a bug in mapserver and enter your problem with appropriate data set for testing. Best Regards, Tracy Howlett wrote: > Hmmm - thanks a lot for your help but I'm still getting the layer error. > > Can you tell me what I need to do to make my layers OGC compliant? > > Tracy Howlett > Community Habitat Resources Project > GIS Web Development Coordinator > PO Box 1122, Whistler, BC, V0N 1B8 > Phone: 604 932 2019 > Fax: 604 932 2077 > Web: www.CHiRPwhistler.info > Forum: www.CHiRPwhistler.info/forums/index.php > > > -----Original Message----- > From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] > Sent: Thursday, January 20, 2005 7:27 AM > To: Tracy at CHiRPwhistler.info > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] WMS error after upgrade to 4.4 > > Not sure what might be the problem, but I have tested your wms client > map file and spotted a couple of issues in the first layer (RMOW > bounadary) : > > - "wms_name" "RMOW " : from your server file definition, > this should be "RMOW" with no white space. Maybe mapserver should > automatically strip white spaces but in any case you should chnage it. > > "wms_server_version" "1.11" : should be 1.1.1 > > After these 2 corrections, I was able to dsiplay the map. > > Hope it helps. > > Later, > > > Tracy Howlett wrote: > > >>Here is my getmap request: >> >> > > http://www.chirpwhistler.info/scripts/mapserv.exe?map=chirp_wms.map&VERSION= > >>1.1.1&SERVICE=wms&REQUEST=GetMap >> >>And here is the sample of my cascading mapfile and the base mapfile >> >>I really appreciate your help! >> >>Cascade (c:\inetpub\scripts\chirp_wms.map): >> >># >># Start of map file >># >># Sample map file for a chameleon app. >># >>NAME CHIRP_WMS >>STATUS ON >>SIZE 570 360 >>SYMBOLSET "c:\chameleon-2.0\CHiRP\etc\symbols.sym" >>EXTENT 486515 5541282 512169 5559285 >>UNITS METERS >>SHAPEPATH "c:\chameleon-2.0\CHiRP\data\" >>IMAGECOLOR 255 255 255 >>FONTSET "c:\chameleon-2.0\CHiRP\etc\fonts.txt" >> >># >># Start of web interface definition >># >>WEB >># >># On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root >># of the drive where the .MAP file resides. >># >> IMAGEPATH "/tmp/ms_tmp/" >> IMAGEURL "/tmp/" >> METADATA >> "wms_title" "CHIRP_WMS" >> "wms_onlineresource" >> > > "http://www.chirpwhistler.info/scripts/mapserv.exe?map=c:\chameleon-2.0\CHiR > >>P\map\chirp.map&" >> END >>END >> >>PROJECTION >> "init=epsg:26910" >>END >> >># >># Start of layer definitions >># >> >>LAYER >> NAME "RMOW Boundary" >> TYPE RASTER >> STATUS ON >> CONNECTION >> > > "http://localhost/scripts/mapserv.exe?map=c:\c:\chameleon-2.0\chirp\map\chir > >>p.map&" >> CONNECTIONTYPE WMS >> METADATA >> "wms_title" "RMOW" >> "wms_srs" "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326 >>EPSG:42304 EPSG:26910" >> "wms_name" "RMOW " >> "wms_server_version" "1.11" >> "wms_formatlist" "image/gif,image/png,image/jpeg,image/wbmp" >> "wms_format" "image/gif" >> END >>END >> >>LAYER >> NAME "Municipal Park" >> TYPE RASTER >> STATUS ON >> CONNECTION >> > > "http://www.chirpwhistler.info/scripts/mapserv.exe?map=c:\chameleon-2.0\chir > >>p\map\chirp.map&" >> CONNECTIONTYPE WMS >> METADATA >> "wms_title" "Park" >> "wms_srs" "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326 >>EPSG:42304 EPSG:26910" >> "wms_name" "Park" >> "wms_server_version" "1.1.1" >> "wms_formatlist" "image/gif,image/png,image/jpeg,image/wbmp" >> "wms_format" "image/gif" >> END >> >>LAYER >> NAME "Buildings" >> TYPE RASTER >> STATUS ON >> CONNECTION >> > > "http://www.chirpwhistler.info/scripts/mapserv.exe?map=c:\chameleon-2.0\CHiR > >>P\map\chirp.map&" >> CONNECTIONTYPE WMS >> METADATA >> "wms_title" "Buildings" >> "wms_srs" "EPSG:26910" >> "wms_name" "Buildings" >> "wms_server_version" "1.1.1" >> "wms_formatlist" "image/gif,image/png,image/jpeg,image/wbmp" >> "wms_format" "image/gif" >> END >>END >> >>Base MapFile (c:\chameleon-2.0\chirp\map\chirp.map): >> >># >># Start of map file >># >># Sample map file for a chameleon app. >># >>NAME CHiRP >>STATUS ON >>SIZE 570 360 >>SYMBOLSET "../etc/symbols.sym" >>EXTENT 486515 5541282 512169 5559285 >>UNITS METERS >>SHAPEPATH "../data/" >>IMAGECOLOR 255 255 255 >>FONTSET "../etc/fonts.txt" >> >> >># >># Start of web interface definition >># >>WEB >> MINSCALE 1300 >> MAXSCALE 13000000000 >># >># On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root >># of the drive where the .MAP file resides. >># >> IMAGEPATH "/tmp/ms_tmp/" >> IMAGEURL "/tmp/" >># LOG "/tmp/gmap.log" >> METADATA >> "wms_title" "CHiRP" >> "wms_onlineresource" >> > > "http://www.CHiRPwhistler.info/scripts/mapserv.exe?map=c:\chameleon-2.0\CHiR > >>P\map\chirp.map&" >> END >>END >> >># >># Start of reference map >># >>REFERENCE >> IMAGE images/whistler_sm.png >> EXTENT 486515 5541282 512169 5559285 >> STATUS ON >> COLOR -1 -1 -1 >> OUTLINECOLOR 255 0 0 >> SIZE 75 50 >>END >> >># >># Start of legend >># >>LEGEND >> STATUS ON >> KEYSIZE 18 12 >> # LABEL object >> LABEL >> TYPE BITMAP >> SIZE MEDIUM >> COLOR 0 0 89 >> END >> TEMPLATE "legend3.html" >>END >> >> >># >># Start of scalebar >># >>SCALEBAR >> IMAGECOLOR 255 255 255 >> LABEL >> COLOR 0 0 0 >> SIZE SMALL >> END >> SIZE 150 5 >> COLOR 255 255 255 >> BACKGROUNDCOLOR 0 0 0 >> OUTLINECOLOR 0 0 0 >> UNITS Kilometers >> INTERVALS 5 >> STATUS ON >>END >> >> >>QUERYMAP >> STATUS ON >> STYLE HILITE >> COLOR 255 0 0 >>END >> >>PROJECTION >> "init=epsg:26910" >>END >> >># >># Start of layer definitions >># >> >># MUNICIPAL PARK >> >>LAYER >> NAME "Municipal Park" >> GROUP "Recreation" >> TYPE POLYGON >> DUMP TRUE >> TEMPLATE "blank.html" >> TOLERANCE 10 >> TOLERANCEUNITS PIXELS >> STATUS ON >> DATA "Park" >> PROJECTION >> "init=epsg:26910" >> END >> CLASS >> COLOR 150 231 138 >> END >> METADATA >> WMS_GROUP_TITLE "Recreation" >> WMS_TITLE "Park" >> WMS_ABSTRACT "Park" >> WMS_SRS "EPSG:26910" >> END >>END >> >># RMOW BOUNDARY >> >>LAYER >> NAME "Resort Municipality of Whistler" >> TYPE LINE >> STATUS ON >> GROUP "Boundaries" >> DATA "RMOW" >> PROJECTION >> "init=epsg:26910" >> END >> CLASS >> COLOR 168 0 0 >> SYMBOL "Line" >> SIZE 2 >> END >> METADATA >> WMS_GROUP_TITLE "Boundaries" >> WMS_TITLE "RMOW" >> WMS_ABSTRACT "Resort Municipality of Whistler Boundary" >> WMS_SRS "EPSG:26910" >> END >>END >> >># BUILDINGS >> >>LAYER >> NAME "Buildings" >> GROUP "Civic Information" >> TYPE POLYGON >> DATA "Building" >> MAXSCALE 15000 >> STATUS ON >> TOLERANCE 10 >> TOLERANCEUNITS PIXELS >> TEMPLATE "blank.html" >> CLASSITEM "Class" >> PROJECTION >> "init=epsg:26910" >> END >> CLASS >> NAME "Accomodation" >> EXPRESSION "Accomodation" >> OUTLINECOLOR 0 0 0 >> COLOR 230 0 0 >> END >> CLASS >> NAME "Commercial" >> EXPRESSION "Commercial" >> OUTLINECOLOR 0 0 0 >> COLOR 0 77 168 >> END >> CLASS >> NAME "Residential" >> EXPRESSION "Residential" >> OUTLINECOLOR 0 0 0 >> COLOR 200 133 68 >> END >> CLASS >> NAME "Lift Base" >> EXPRESSION "Lift Base" >> OUTLINECOLOR 0 0 0 >> COLOR 0 0 0 >> END >> CLASS >> NAME "Municipal" >> EXPRESSION "Municipal" >> OUTLINECOLOR 0 0 0 >> COLOR 130 155 90 >> END >> CLASS >> NAME "Other" >> OUTLINECOLOR 0 0 0 >> EXPRESSION "" >> COLOR 130 130 130 >> END >> CLASS >> NAME "Commercial" >> EXPRESSION "Commercial" >> COLOR 0 77 168 >> END >> METADATA >> WMS_GROUP_TITLE "CivicInformation" >> WMS_TITLE "Buildings" >> WMS_ABSTRACT "Buildings" >> WMS_SRS "EPSG:26910" >> END >>END >> >> >> >> >> >> >> >>Tracy Howlett >>Community Habitat Resources Project >>GIS Web Development Coordinator >>PO Box 1122, Whistler, BC, V0N 1B8 >>Phone: 604 932 2019 >>Fax: 604 932 2077 >>Web: www.CHiRPwhistler.info >>Forum: www.CHiRPwhistler.info/forums/index.php >> >> >>-----Original Message----- >>From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] >>Sent: Wednesday, January 19, 2005 5:18 PM >>To: Tracy Howlett >>Cc: MAPSERVER-USERS at LISTS.UMN.EDU >>Subject: Re: [UMN_MAPSERVER-USERS] WMS error after upgrade to 4.4 >> >>Do you have an example of a getmap URL returing the exception and maybe >>your map definition ? >> >>There has been some work done in the wms code before the 4.4 release so >>that mapserver would be OGC compliant (so more parameter tesing and >>exception generating has been added) and this may explain the problems >>your are having. >> >>Later, >> >> >>Tracy Howlett wrote: >> >> >> >>>Hello, >>> >>> >>> >>>I've recently upgraded to MapServer 4.4 after running 4.0.1 successfully >>>for over a year. I have been using a Cascading WMS service to share >>>some of my layers out to another MapServer user who has been accessing >>>my data without problem. >>> >>> >>> >>>For some reason, now that MapServer 4.4 is running, the WMS layers are >>>no longer being shared. We have run the getCapabilities for both my >>>base mapfile and my cascaded map file service and they both come back >>>error free but when we run a getMap we receive the following error: >>> >>> >>> >>> >>ServiceExceptionReport SYSTEM >>>"http://schemas.opengeospatial.net/wms/1.1.1/exception_1_1_1.dtd"> >>> >>> >>code="LayerNotDefined"> >>> >>>msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the >>>LAYERS parameter. >>> >>> >>> >>> >>> >>> >>> >>>I've read about this error in the archives but cannot find a solution >>>for my particular file. When my colleague calls the mapfile only one of >>>the 10 layers listed is returned. >>> >>>The data has not changed since I upgraded and it is all in the same >>>projection (UTM Zone 10). Are there some naming conventions or WMS >>>requirements that are new in 4.4 that I have not found in the >> >>documentation? >> >> >>> >>>Any help would be greatly appreciated as we are trying to get this thing >>>up and running again for a presentation on Saturday. >>> >>> >>> >>>Thanks, >>> >>> >>> >>>**Tracy Howlett** >>> >>>Community Habitat Resources Project >>> >>>GIS Web Development Coordinator >>> >>>PO Box 1122, Whistler, BC, V0N 1B8 >>> >>>Phone: 604 932 2019 >>> >>>Fax: 604 932 2077 >>> >>>Web: www.CHiRPwhistler.info >>> >>> >>> >>> >>> >>> >>> >> >> > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From chris at INETD.COM.AU Thu Jan 20 15:36:16 2005 From: chris at INETD.COM.AU (Chris Foote) Date: Fri, 21 Jan 2005 10:06:16 +1030 Subject: Case of the blankety blanks In-Reply-To: <41EFA8E9.4040900@brooknet.com.au> Message-ID: On Thu, 20 Jan 2005, Sam Lawrance wrote: > Chris Foote wrote: > >> I've managed to get CGIMapServer up and running, and I'm able to >> embed a label and scale. The problem I'm having is getting either >> one of 2 shapefiles to be displayed - they come up blank ;-( >> >> LAYER >> NAME Australia2 >> DATA Australia2 >> TYPE polygon >> STATUS on > > Use STATUS DEFAULT for your layers instead of STATUS ON. Read doco for more > info. Hi Sam. I saw that hint in the email archives of this list, and I had tried that earlier with no success. It doesn't mean it's not needed however, so that was half of the problem. I found the solution other half of the problem - the extent values provided to me were incorrect, way off in fact. Mark Cave-Ayland replied and provided me with new extent values: EXTENT 6115607.4 -6721409.5 11728494.8 -2487757.2 from a program called "jump" which I hadn't heard of. It appears that the software exporting the shapefiles from its native format does something funny with its offsets. Cheers, Chris Foote _ _ _ Jabber: chris at jabber.inetd.com.au (_) | | | | Director - INETD PTY LTD _ _ __ ___ | |_ __| | Level 2, 132 Franklin St | | | '_ \ / _ \ | __| / _` | Adelaide SA 5000 | | | | | | | __/ | |_ | (_| | Web: http://www.inetd.com.au |_| |_| |_| \___| \__| \__,_| Phone: (08) 8410 4566 From cmcguigan at EARTHCOMBER.COM Thu Jan 20 15:42:51 2005 From: cmcguigan at EARTHCOMBER.COM (Colin McGuigan) Date: Thu, 20 Jan 2005 17:42:51 -0600 Subject: Segmentation Faults on RH9 Message-ID: So I'm compiling Mapserver 4.4.1 with the following configure: ./configure --with-gd --without-tiff --without-pdf --without-geos --with-freetype --with-proj --with-gdal --with-postgis --with-php=/usr/local/install/php-4.3.10 --with-php-regex-dir=/usr/local/install/php-4.3.10 --enable-debug gd, proj, gdal, postgis, and php are all compiled on the machine (all in /usr/local/lib with the exception of php). There are no duplicated libraries between /usr/lib and /usr/local/lib. PHP is compiled as a DSO, which according to HISTORY.TXT, now works. Configuring, making, and installing all seem to go fine, but it doesn't actually run. The mapserv CGI never works; sometimes, it segfaults, and sometimes it displays gibberish text. Here's an example of the segfault from gdb. The querystring is from the Itasca demo: [cmcguigan at localhost cgi-bin]# gdb mapserv GNU gdb Red Hat Linux (5.3post-0.20021129.18rh) Copyright 2003 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux-gnu"... (gdb) run "QUERY_STRING=layer=lakespy2&layer=dlgstln2&zoomsize=2&map=%2Fvar%2Fwww%2Fhtml%2Fworkshop%2Fitasca.map&program=%2Fcgi-bin%2Fmapserv&root=workshop&map_web_imagepath=%2Fvar%2Fwww%2Fhtml%2Fworkshop%2Ftmp%2F&map_web_imageurl=%2Fworkshop%2Ftmp%2F&map_web_template=itasca_basic.html" Starting program: /var/www/cgi-bin/mapserv "QUERY_STRING=layer=lakespy2&layer=dlgstln2&zoomsize=2&map=%2Fvar%2Fwww%2Fhtml%2Fworkshop%2Fitasca.map&program=%2Fcgi-bin%2Fmapserv&root=workshop&map_web_imagepath=%2Fvar%2Fwww%2Fhtml%2Fworkshop%2Ftmp%2F&map_web_imageurl=%2Fworkshop%2Ftmp%2F&map_web_template=itasca_basic.html"[New Thread 1082405184 (LWP 25579)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1082405184 (LWP 25579)] loadMapInternal (filename=0x80dc130 "/var/www/html/workshop/itasca.map", new_mappath=0x0) at mapfile.c:4173 4173 msyyin = fopen(filename, "r"); (gdb) backtrace #0 loadMapInternal (filename=0x80dc130 "/var/www/html/workshop/itasca.map", new_mappath=0x0) at mapfile.c:4173 #1 0x0804cb78 in loadMap () at mapserv.c:248 #2 0x0804f3b5 in main (argc=135120568, argv=0xbfffe154) at mapserv.c:1146 #3 0x42015704 in __libc_start_main () from /lib/tls/libc.so.6 After different compiles, it has different segfaults. The other one I see often is in libc.regexec, but I don't have the trace handy. After some compiles, though, it doesn't segfault. Instead, it'll display text like this: "NTSET "%s" : Unable to access file. ojection() " which sure seems to indicate some sort of memory problem. PHP Mapscript segfaults, as well. [cmcguigan at localhost bin]# gdb php GNU gdb Red Hat Linux (5.3post-0.20021129.18rh) Copyright 2003 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux-gnu"... (gdb) run /var/www/html/workshop/recipes/hello.phtml Starting program: /usr/bin/php /var/www/html/workshop/recipes/hello.phtml [New Thread 1078600352 (LWP 25600)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1078600352 (LWP 25600)] 0x406c09c0 in _init () from /usr/lib/php4/php_mapscript.so (gdb) backtrace #0 0x406c09c0 in _init () from /usr/lib/php4/php_mapscript.so #1 0x406d86f4 in mapObj_new (filename=0x40747a3d "", new_path=0x0) at mapscript_i.c:100 #2 0x406c6e77 in php3_ms_map_new (ht=1081340215, return_value=0x822dc3c, this_ptr=0x0, return_value_used=1) at php_mapscript.c:1726 #3 0x0815ffd6 in execute (op_array=0x821ca0c) at /usr/local/install/php-4.3.10/Zend/zend_execute.c:1642 #4 0x08151e0f in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /usr/local/install/php-4.3.10/Zend/zend.c:900 #5 0x0812af2f in php_execute_script (primary_file=0xbfffe590) at /usr/local/install/php-4.3.10/main/main.c:1736 #6 0x0816c1df in main (argc=2, argv=0xbfffe614) at /usr/local/install/php-4.3.10/sapi/cli/php_cli.c:822 #7 0x42015704 in __libc_start_main () from /lib/tls/libc.so.6 (gdb) Anyways. Has anyone seen anything like this before, and is there anything I can do? --Colin McGuigan From woodbri at SWOODBRIDGE.COM Thu Jan 20 19:50:06 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 20 Jan 2005 22:50:06 -0500 Subject: Howto Evaluate Performance of Mapserve r/mapfiles In-Reply-To: <3E4215C93D3CE24D84A9FF385DF88D87079FE28F@afeb-ms-02> Message-ID: Antti, Thank you for the suggestion. I in fact loaded mapserver 4.4.1 as Sean suggested and it has some good output if you set DEBUG ON in the mapfile. It will display each layer that was rendered and how long it took to render it. Of course it would always be nice to have more information, but this was more than I had and enought to identify which layers were the problems. Once I new what layer to look at it was easy for me to figure out how to deal with it. In most cases, I just eliminated the layer as it was excessive detail that I could do without. Yes, I use the Perl profiling for other scripts and it is an excellent tool for evaluating script performance. Highly recommended to anyone that has not used it and uses Perl. -Steve W. Antti.Roppola at brs.gov.au said: > I used Perl's profiling tool a little while back, and found > it was a pretty good tool for identifying where my application > spent its time (in this case it was the analysis of log files): > > http://www.perl.com/pub/a/2004/06/25/profiling.html > > You could perhaps use Perl Mapscript to run through each layer > in the map file at a range of scale thresholds? > > Perl could work even without the profiling tool; you could get a > list of render times for each layer at a range of scale, showing > which layers would benefit the most from indexing, tiling or > generalisation. > > Say: > for each Layer: > from MinScale to MaxScale by SomeStep: > RenderView(RandomExtent) > > It would be really nice to see where that time was spent, for > Mapserver, I'd guess much time is spent waiting for IO. > > Cheers, > > Antti > > -----Original Message----- > From: Stephen Woodbridge [mailto:woodbri at SWOODBRIDGE.COM] > Sent: Thursday, 6 January 2005 6:16 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Howto Evaluate Performance of > Mapserver/mapfiles > > Hi all, > > I am wondering if there are any tools built into mapserver that would help > in evaluation performance of my mapfile and help indicate things I might > want to consider changing. > > Are there any useful mapfile settings or command line settings that would > dump useful information about performance? > > I am looking at trying to tune some mapfiles and it would be helpful to > know what layers got drawn, how many objects were rendered, how much time > was spent on each layer, how many files were opened for each layer, etc. > > My mapfile is totally shapefile layers and a lot of them at that > 100 > layers. > > Any ideas would be greatly appreciated. > > -Steve W. > > ---------------------------------------------------------------------- > IMPORTANT - This message has been issued by The Department of Agriculture, > Fisheries and Forestry (DAFF). The information transmitted is for the use > of the intended recipient only and may contain confidential and/or legally > privileged material. It is your responsibility to check any attachments > for viruses and defects before opening or sending them on. > Any reproduction, publication, communication, re-transmission, disclosure, > dissemination or other use of the information contained in this e-mail by > persons or entities other than the intended recipient is prohibited. The > taking of any action in reliance upon this information by persons or > entities other than the intended recipient is prohibited. If you have > received this e-mail in error please notify the sender and delete all > copies of this transmission together with any attachments. If you have > received this e-mail as part of a valid mailing list and no longer want to > receive a message such as this one advise the sender by return e-mail > accordingly. Only e-mail correspondence which includes this footer, has > been authorised by DAFF > ---------------------------------------------------------------------- > > From nacional at CBS.UMN.EDU Thu Jan 20 21:41:30 2005 From: nacional at CBS.UMN.EDU (Pericles S. Nacionales) Date: Thu, 20 Jan 2005 23:41:30 -0600 Subject: PostGIS Connection Trouble In-Reply-To: <41EE934F.1060600@ccgis.de> Message-ID: Hi Arnulf, Is it possible that you don't have the proper permission on one of the tables you're using? The USER_POLYGON table perhaps? The queries all look correct to me. Cheers! -Perry On Wednesday 19 January 2005 11:05 am, Arnulf Christl wrote: > Hi, > I am at a loss, we use MapServer/PostGIS every day but this one wont work. > > PostgreSQL 7.4.2 > PostGIS 0.9.0 > SuSE Linux Enterprise Server 9 > > > > The error message looks strange to me, never saw that one. Especially > the part: > "oid::text from WHERE &&" > Anybody any idea? See the MAP-file DATA string at the bottom. > > ### > > "http://schemas.opengeospatial.net/wms/1.1.1/exception_1_1_1.dtd"> > > > msDrawMap(): Image handling error. Failed to draw layer named > 'poly'. > prep_DB(): Query error. Error executing POSTGIS DECLARE (the actual > query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT > asbinary(force_collection(force_2d()),'NDR'),oid::text from > WHERE && setSRID('BOX3D(3275833.33333155 > 5400833.33332511,3524166.66666667 5649166.66666667)'::BOX3D, > find_srid('','','') )' <br><br> > > Postgresql reports the error as 'FEHLER: Fehler ??syntax error?? bei > ??WHERE?? at character 104 > '<br><br> > > More Help:<br><br> > > Error with POSTGIS data variable. You specified '&lt;check your > .map file&gt;'.<br> > > Standard ways of specifiying are : <br> > (1) 'geometry_column from geometry_table' <br> > (2) 'geometry_column from (&lt;sub query&gt;) as foo using > unique &lt;column name&gt; using SRID=&lt;srid#&gt;' > <br><br> > > Make sure you put in the 'using unique &lt;column > name&gt;' and 'using SRID=#' clauses in. > > <br><br>For more help, please see > http://postgis.refractions.net/documentation.php > > <br><br>Mappostgis.c - version of Jan 23/2004. > > msPOSTGISLayerParseData(): Query error. Error parsing POSTGIS data > variable. Must contain 'geometry_column from table_name' or > 'geom from (subselect) as foo' (couldnt find ' from '). > More help: <br><br> > > Error with POSTGIS data variable. You specified 'SELECT the_geom > FROM (SELECT the_geom AS the_geom, betrnr AS betrnr, jahr AS jahr, oid > AS oid FROM user_polygon) AS foo USING UNIQUE oid > SRID=31467'.<br> Standard ways of specifiying are : <br> > (1) 'geometry_column from geometry_table' <br> > (2) 'geometry_column from (&lt;sub query&gt;) as foo using > unique &lt;column name&gt; using SRID=&lt;srid#&gt;' > <br><br> > > Make sure you put in the 'using unique &lt;column > name&gt;' and 'using SRID=#' clauses in. > > <br><br>For more help, please see > http://postgis.refractions.net/documentation.php > > <br><br>Mappostgis.c - version of Jan 23/2004. > > > > > ### > > The history of my helplessness from bottom to top. We've tried the > SELECTS with capitals, repeated uses of 'USING' etc. wont work. > > DATA "SELECT the_geom FROM (SELECT the_geom AS the_geom, betrnr AS > betrnr, jahr AS jahr, oid AS oid FROM user_polygon) AS foo USING UNIQUE > user_polygon.oid USING SRID=31467" > > # DATA "the_geom FROM (SELECT the_geom AS the_geom, betrnr AS betrnr, > jahr AS jahr, oid AS oid FROM user_polygon) AS foo USING UNIQUE oid > USING SRID=31467" > > # DATA "SELECT the_geom FROM (SELECT the_geom AS the_geom, betrnr AS > betrnr, jahr AS jahr, oid AS oid FROM user_polygon) AS foo USING UNIQUE > oid USING SRID=31467;" > > # DATA "SELECT the_geom FROM (SELECT the_geom AS the_geom, betrnr AS > betrnr, jahr AS jahr, oid AS oid FROM user_polygon) AS foo USING UNIQUE > oid USING SRID=31467" > > # DATA "the_geom FROM (SELECT the_geom AS the_geom, betrnr AS betrnr, > jahr AS jahr, oid AS oid FROM user_polygon) as foo using unique oid > using SRID=31467" > > # DATA 'the_geom FROM (SELECT betrnr, jahr FROM user_polygon) AS foo > USING UNIQUE SRID=31467' > > # DATA "the_geom FROM user_polygon" > > > Best regards, > Arnulf. -- Pericles S. Nacionales Dept. of Ecology, Evolution, and Behavior University of Minnesota work: 612 624 6713 e-mail: nacional at cbs.umn.edu From kristjan at TARKVARASTUUDIO.EE Thu Jan 20 23:39:18 2005 From: kristjan at TARKVARASTUUDIO.EE (Kristjan Annus) Date: Fri, 21 Jan 2005 09:39:18 +0200 Subject: Zoom to custom extent - PHP In-Reply-To: Message-ID: Hi Kevin. This JavaScript looks correct, and the problem is on the code in the server side. You have to do something with this ViewRegion values in PHP. $map->setextent(...) for example. Kristjan >I'm trying to create a simple drop down list with a few place names, so >that users can click on a name and the map will automatically zoom to a >custom extent. >However, I'm having some trouble with this. When I click on the place >name, the whole page just reloads and does not zoom to the extent. Any >help would be appreciated. >I'm using PHP 4.3.4 and MapServer 4.2 (built with MapLab 2.2) > >Code (in my 'contents.php' file): > > > >and > > > > From unicoletti at PROMETEO.IT Fri Jan 21 00:23:19 2005 From: unicoletti at PROMETEO.IT (Umberto Nicoletti) Date: Fri, 21 Jan 2005 09:23:19 +0100 Subject: Segmentation Faults on RH9 In-Reply-To: <41F041FB.1040600@earthcomber.com> Message-ID: On Thu, 2005-01-20 at 17:42 -0600, Colin McGuigan wrote: > So I'm compiling Mapserver 4.4.1 with the following configure: > > ./configure --with-gd --without-tiff --without-pdf --without-geos > --with-freetype --with-proj --with-gdal --with-postgis > --with-php=/usr/local/install/php-4.3.10 > --with-php-regex-dir=/usr/local/install/php-4.3.10 --enable-debug > > gd, proj, gdal, postgis, and php are all compiled on the machine (all in > /usr/local/lib with the exception of php). There are no duplicated > libraries between /usr/lib and /usr/local/lib. PHP is compiled as a > DSO, which according to HISTORY.TXT, now works. > > Configuring, making, and installing all seem to go fine, but it doesn't > actually run. The mapserv CGI never works; sometimes, it segfaults, and > sometimes it displays gibberish text. > > Here's an example of the segfault from gdb. The querystring is from the > Itasca demo: > > [cmcguigan at localhost cgi-bin]# gdb mapserv > GNU gdb Red Hat Linux (5.3post-0.20021129.18rh) > Copyright 2003 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain > conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "i386-redhat-linux-gnu"... > (gdb) run > "QUERY_STRING=layer=lakespy2&layer=dlgstln2&zoomsize=2&map=%2Fvar%2Fwww%2Fhtml%2Fworkshop%2Fitasca.map&program=%2Fcgi-bin%2Fmapserv&root=workshop&map_web_imagepath=%2Fvar%2Fwww%2Fhtml%2Fworkshop%2Ftmp%2F&map_web_imageurl=%2Fworkshop%2Ftmp%2F&map_web_template=itasca_basic.html" > Starting program: /var/www/cgi-bin/mapserv > "QUERY_STRING=layer=lakespy2&layer=dlgstln2&zoomsize=2&map=%2Fvar%2Fwww%2Fhtml%2Fworkshop%2Fitasca.map&program=%2Fcgi-bin%2Fmapserv&root=workshop&map_web_imagepath=%2Fvar%2Fwww%2Fhtml%2Fworkshop%2Ftmp%2F&map_web_imageurl=%2Fworkshop%2Ftmp%2F&map_web_template=itasca_basic.html"[New > Thread 1082405184 (LWP 25579)] > > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread 1082405184 (LWP 25579)] > loadMapInternal (filename=0x80dc130 "/var/www/html/workshop/itasca.map", > new_mappath=0x0) at mapfile.c:4173 > 4173 msyyin = fopen(filename, "r"); > (gdb) backtrace > #0 loadMapInternal (filename=0x80dc130 "/var/www/html/workshop/itasca.map", > new_mappath=0x0) at mapfile.c:4173 For some reason mappath is null and this causes the segfault. Why it is that I do not know. Try to use fewer configure options and then run the gdb again. If the problem goes away try adding more options, until you find the culprit. I would start with only --enable-debug; > #1 0x0804cb78 in loadMap () at mapserv.c:248 > #2 0x0804f3b5 in main (argc=135120568, argv=0xbfffe154) at mapserv.c:1146 > #3 0x42015704 in __libc_start_main () from /lib/tls/libc.so.6 > > After different compiles, it has different segfaults. The other one I > see often is in libc.regexec, but I don't have the trace handy. > > After some compiles, though, it doesn't segfault. Instead, it'll > display text like this: "NTSET "%s" : Unable to access file. ojection() > " which sure seems to indicate some sort of memory problem. > > PHP Mapscript segfaults, as well. > > [cmcguigan at localhost bin]# gdb php > GNU gdb Red Hat Linux (5.3post-0.20021129.18rh) > Copyright 2003 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain > conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "i386-redhat-linux-gnu"... > (gdb) run /var/www/html/workshop/recipes/hello.phtml > Starting program: /usr/bin/php /var/www/html/workshop/recipes/hello.phtml > [New Thread 1078600352 (LWP 25600)] > > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread 1078600352 (LWP 25600)] > 0x406c09c0 in _init () from /usr/lib/php4/php_mapscript.so > (gdb) backtrace > #0 0x406c09c0 in _init () from /usr/lib/php4/php_mapscript.so > #1 0x406d86f4 in mapObj_new (filename=0x40747a3d "", new_path=0x0) > at mapscript_i.c:100 here new_path is NULL, as above. Regards, Umberto > #2 0x406c6e77 in php3_ms_map_new (ht=1081340215, return_value=0x822dc3c, > this_ptr=0x0, return_value_used=1) at php_mapscript.c:1726 > #3 0x0815ffd6 in execute (op_array=0x821ca0c) > at /usr/local/install/php-4.3.10/Zend/zend_execute.c:1642 > #4 0x08151e0f in zend_execute_scripts (type=8, retval=0x0, file_count=3) > at /usr/local/install/php-4.3.10/Zend/zend.c:900 > #5 0x0812af2f in php_execute_script (primary_file=0xbfffe590) > at /usr/local/install/php-4.3.10/main/main.c:1736 > #6 0x0816c1df in main (argc=2, argv=0xbfffe614) > at /usr/local/install/php-4.3.10/sapi/cli/php_cli.c:822 > #7 0x42015704 in __libc_start_main () from /lib/tls/libc.so.6 > (gdb) > > Anyways. Has anyone seen anything like this before, and is there > anything I can do? > > --Colin McGuigan -- Umberto Nicoletti Prometeo SRL From thomas at MICRODOP.ORG Fri Jan 21 01:17:05 2005 From: thomas at MICRODOP.ORG (Thomas Sondag) Date: Fri, 21 Jan 2005 10:17:05 +0100 Subject: mapserver 4.4.1 binary for debian? In-Reply-To: <20050120163243.GC24908@betsy.geodata.soton.ac.uk> Message-ID: Homme Zwaagstra a ?crit : >Jeff, > >On Thu, Jan 20, 2005 at 10:31:56AM -0500, Jeff Portwine wrote: > > >>Actually I looked for it, but in the file that debian writes that shows the >>files that were installed, it doesn't even list the mapserver binary. >> >>I got the debian package from >>http://agrogeomatic.educagri.fr/debian/dists/unstable/main/binary-i386/mapserver/ >>I do have mapscript installed, the php_mapscript.so library is in place. >>Just no mapserver cgi binary. >> >> > >Note that the mapserver binary is called mapserv and not mapserver! If >that's not it I'd get in touch with the package maintainer. I'm not >familiar with Debian but isn't there an apt-get command that will let >you list the files in a package? > > >>Thanks, >>-Jeff >> >> > >Kind regards, > >Homme. > > Hi all, If you want the mapserv binary, install cgi-mapserver. We actualy (I and debian gis team) try change the packages description, last proposition [1]. Up to date mapserver and recent / experimental GIS software packages for debian Sid can be found here [2] (actualy sync with [3] but I don't how long I do that for sid). The command for geting file list of an debain package is : dpkg -L packges_name. [1] http://lists.alioth.debian.org/pipermail/pkg-grass-general/2005-January/000432.html [2] http://pkg-grass.alioth.debian.org/cgi-bin/wiki.pl?DebianGisRepository [3] http://agrogeomatic.educagri.fr/debian/ Thomas From bdb at EBI.AC.UK Fri Jan 21 03:27:32 2005 From: bdb at EBI.AC.UK (Bernard de Bono) Date: Fri, 21 Jan 2005 11:27:32 +0000 Subject: Mapserver startup: Step 2 In-Reply-To: <200501161310.41454.tylermitchell@shaw.ca> Message-ID: Dear All, Thank you for your responses and suggested links. I have downloaded a few map files, as suggested (but so far I am not sure how to access their content). Questions: 1) Is there a specific directory where the map data should be stored? 2) Is there a Perl equivalent to the PHP Recipe set? My knowledge of PHP is somewhat limited. I plan to use Perl + MySQL (as I have some experience in the area). Status so far: mapserver is installed and seems to respond when evoked through apache. The next step involves: (1) establishing basic set instructions the server responds to (i.e. those four or five commands one uses most of the time), and perhaps more importantly, (2) understand how these instructions may reach the server. I would also appreciate any indications as to the basic syntax of imparting commands via (a) the webbrowser and (2) via command line. I look forward to your feedback and comments. Regards, Bernard Tyler Mitchell wrote: >>Having absolutely no experience with GIS, I was encouraged to read about >>mapserver's connectivity with MySQL and Perl, and have just installed the >>latest source code, and look forward to testing the server. >> >> > >Welcome aboard. I'm not a MySQL user and have barely used Perl MapScript, but >this would be a more advanced solution for a beginner. > > > >>Is there a simple guide available that does not assume any GIS background? >>I still need some basic questions answered, such as: >> >>1) Is map data (i.e. maps of countries) freely available? Is that a >>separate download? >> >> > >You will probably find a lot of options. You should probably start with >trying to find some "shape files" - that is a common GIS file format. > > > >>2) Is the impression that Mapserver uses MySQL to store data correct? What >>type of information is stored on MySQL, and why was there no reference to >>MySQL accounts during compilation? >> >> > >MySQL is only one option, and you will have to do some special compile/set up >steps to get it working. I can't speak to the specifics myself though. > > > >>3) MapScript: is there documentation for it? Has it been downloaded with >>the server source package? >> >> > >Yes it is part of the source package in mapserverxxx/mapscript/perl has the >perl stuff in it. > > > >>Any pointers as to how to get up to speed with Mapserver would be most >>appreciated. >> >> > >I'm writing a book - hope it will help :) Otherwise, keep in touch with the >list and we'll get you running. If you can use IRC/chat go to >irc.freenode.net and join #mapserver. Usually some helpful folks there. > >Tyler > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From n_faust at INFORMATIK.UNI-KL.DE Fri Jan 21 03:44:25 2005 From: n_faust at INFORMATIK.UNI-KL.DE (Nicole Faust) Date: Fri, 21 Jan 2005 12:44:25 +0100 Subject: Example Maps Message-ID: Hello group! I'm new to this group and I'm trying to work with the MapServer. I want to use it together with PostgreSQL+PostGIS and Apache. The programs are allready installed, but are not working properly. So now I do not know if it is a problem with the installation or with the example file. I'm using the usa2.map example from: http://www.mobilegeographics.com/mapserver/ I have corrected the Shape- and Imagepath to my installation. Typically I receive only the frame which tells me that the map was created with MapServer and a legend at the bottom. But the map is missing. Thanks for your help, sincerly N. Faust From arnulf.christl at CCGIS.DE Fri Jan 21 05:04:01 2005 From: arnulf.christl at CCGIS.DE (Arnulf Christl (CCGIS)) Date: Fri, 21 Jan 2005 14:04:01 +0100 Subject: Solved: [UMN_MAPSERVER-USERS] PostGIS Connection Trouble In-Reply-To: <0E180AB1-6B0B-11D9-8BCA-000D9329D732@frii.com> Message-ID: Hi, thanx a lot - the capitals were the problem. Stupid me, yet again! Maybe somebody (Paul :-) will have pity on me and remedy this capital string problem. Else you tell me why these work: DATA "geom from (select geom as geom, fld2 as fld2 from tab)as foo using unique oid SRID=12345" DATA "geom from (SELECT geom AS geom, fld2 AS fld2 FROM tab)as foo using unique oid SRID=12345" and these wont: DATA "geom from (select geom as geom, fld2 as fld2 from tab)AS foo using unique oid SRID=12345" While you are at it don't forget to bump up the PostGIS version from 0.9 to 1.0... Best regards, Arnulf > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=623 > > Sean > > On Jan 20, 2005, at 10:38 AM, Steven Monai wrote: > >> Whoops, guess I should be a little more observant. You're using a >> recent >> version of MapServer. Is it possible that the PostGIS-keyword-case bug >> is >> still alive? >> >> -Steve M. >> -- >> >> >> >> On Wed, 19 Jan 2005 18:05:19 +0100, Arnulf Christl >> wrote: >> >>> Hi, >>> I am at a loss, we use MapServer/PostGIS every day but this one wont >>> work. >>> >>> PostgreSQL 7.4.2 >>> PostGIS 0.9.0 >>> SuSE Linux Enterprise Server 9 >>> >>> >>> >>> The error message looks strange to me, never saw that one. Especially >>> the part: >>> "oid::text from WHERE &&" >>> Anybody any idea? See the MAP-file DATA string at the bottom. >>> >>> ### >>> >>> >> "http://schemas.opengeospatial.net/wms/1.1.1/exception_1_1_1.dtd"> >>> >>> >>> msDrawMap(): Image handling error. Failed to draw layer named >>> 'poly'. >>> prep_DB(): Query error. Error executing POSTGIS DECLARE (the actual >>> query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT >>> asbinary(force_collection(force_2d()),'NDR'),oid::text from >>> WHERE && setSRID('BOX3D(3275833.33333155 >>> 5400833.33332511,3524166.66666667 5649166.66666667)'::BOX3D, >>> find_srid('','','') )' >>> <br><br> >>> >>> Postgresql reports the error as 'FEHLER: Fehler =C2=BBsyntax >>> error=C2=AB= >> bei >>> =C2=BBWHERE=C2=AB at character 104 >>> '<br><br> >>> >>> More Help:<br><br> >>> >>> Error with POSTGIS data variable. You specified '&lt;check >>> your >>> .map file&gt;'.<br> >>> >>> Standard ways of specifiying are : <br> >>> (1) 'geometry_column from geometry_table' <br> >>> (2) 'geometry_column from (&lt;sub query&gt;) as foo using >>> unique &lt;column name&gt; using >>> SRID=3D&lt;srid#&gt;' >>> <br><br> >>> >>> Make sure you put in the 'using unique &lt;column >>> name&gt;' and 'using SRID=3D#' clauses in. >>> >>> <br><br>For more help, please see >>> http://postgis.refractions.net/documentation.php >>> >>> <br><br>Mappostgis.c - version of Jan 23/2004. >>> >>> msPOSTGISLayerParseData(): Query error. Error parsing POSTGIS data >>> variable. Must contain 'geometry_column from table_name' or >>> 'geom from (subselect) as foo' (couldnt find ' from >>> '). >>> More help: <br><br> >>> >>> Error with POSTGIS data variable. You specified 'SELECT the_geom >>> FROM (SELECT the_geom AS the_geom, betrnr AS betrnr, jahr AS jahr, oid >>> AS oid FROM user_polygon) AS foo USING UNIQUE oid >> SRID=3D31467'.<br> >>> Standard ways of specifiying are : <br> >>> (1) 'geometry_column from geometry_table' <br> >>> (2) 'geometry_column from (&lt;sub query&gt;) as foo using >>> unique &lt;column name&gt; using >>> SRID=3D&lt;srid#&gt;' >>> <br><br> >>> >>> Make sure you put in the 'using unique &lt;column >>> name&gt;' and 'using SRID=3D#' clauses in. >>> >>> <br><br>For more help, please see >>> http://postgis.refractions.net/documentation.php >>> >>> <br><br>Mappostgis.c - version of Jan 23/2004. >>> >>> >>> >>> >>> ### >>> >>> The history of my helplessness from bottom to top. We've tried the >>> SELECTS with capitals, repeated uses of 'USING' etc. wont work. >>> >>> DATA "SELECT the_geom FROM (SELECT the_geom AS the_geom, betrnr AS >>> betrnr, jahr AS jahr, oid AS oid FROM user_polygon) AS foo USING >>> UNIQUE >>> user_polygon.oid USING SRID=3D31467" >>> >>> # DATA "the_geom FROM (SELECT the_geom AS the_geom, betrnr AS betrnr, >>> jahr AS jahr, oid AS oid FROM user_polygon) AS foo USING UNIQUE oid >>> USING SRID=3D31467" >>> >>> # DATA "SELECT the_geom FROM (SELECT the_geom AS the_geom, betrnr AS >>> betrnr, jahr AS jahr, oid AS oid FROM user_polygon) AS foo USING >>> UNIQUE >>> oid USING SRID=3D31467;" >>> >>> # DATA "SELECT the_geom FROM (SELECT the_geom AS the_geom, betrnr AS >>> betrnr, jahr AS jahr, oid AS oid FROM user_polygon) AS foo USING >>> UNIQUE >>> oid USING SRID=3D31467" >>> >>> # DATA "the_geom FROM (SELECT the_geom AS the_geom, betrnr AS betrnr, >>> jahr AS jahr, oid AS oid FROM user_polygon) as foo using unique oid >>> using SRID=3D31467" >>> >>> # DATA 'the_geom FROM (SELECT betrnr, jahr FROM user_polygon) AS foo >>> USING UNIQUE SRID=3D31467' >>> >>> # DATA "the_geom FROM user_polygon" >>> >>> >>> Best regards, >>> Arnulf. >> > > From xurxosanz at YAHOO.ES Fri Jan 21 06:24:24 2005 From: xurxosanz at YAHOO.ES (Jorge Gaspar Sanz Salinas) Date: Fri, 21 Jan 2005 15:24:24 +0100 Subject: Creation of shapefiles (PHP) Message-ID: Hello, With PHP/MapScript, I'm trying to create a simple shapefile with one rectagle dinamically from some points. The shapefile is been created but it seems not in the correct way. This I say, when I make a dynamic layer with it, seems like a polyline because MapServer doesn't fill it. In ArcMap the polygon has no area and can't draw it properly (without color) as MapServer. I work with Mapserver44, WindowsXP (PRO SP2) and PHP4.3.8 MapServer version 4.4.0-beta2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE PHP 4.3.8 (cgi-fcgi) (built: Jul 13 2004 17:36:43) Copyright (c) 1997-2004 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies The code to generate the shapefile is (four lines are created few lines before): //************************************************** //Add four lines to the ShpObj $shpObj = ms_newShapeObj(MS_SHAPE_POLYGON); $shpObj->add($linW); $shpObj->add($linS); $shpObj->add($linE); $shpObj->add($linN); //Generate a unique filename $szFileRect = $mapa->web->imagepath . uniqid(""); //Define a shapefile object $shpRect = ms_newShapefileObj($szFileRect, MS_SHP_POLYGON); //Create a new DBF attached with one attribute $hDbf = dbase_create($szFileRect.".dbf",array(array("NAME", "C", 50, 0))); if (!$hDbf) return; //Add the shpobj to the shapefile $shpRect->addShape($shpObj); //Add the attribute $atts[0] = "Experimento"; dbase_add_record($hDbf, $atts); //Close the objects $shpObj->free(); dbase_close($hDbf); $shpRect->free //************************************************** Thanks, -- Jorge Gaspar Sanz Salinas Departamento de Ingenier?a Cartogr?fica, Geodesia y Fotogrametr?a Universidad Polit?cnica de Valencia From mbrown at AL1CALL.COM Fri Jan 21 06:49:49 2005 From: mbrown at AL1CALL.COM (Matt Brown) Date: Fri, 21 Jan 2005 08:49:49 -0600 Subject: Creation of shapefiles (PHP) In-Reply-To: <41F11098.6080500@yahoo.es> Message-ID: Jorge, I don't know if this is the problem, but you might try building one line, instead of four, and make sure that the beginning and ending points are the same. then add the line object to the shape object Matt -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Jorge Gaspar Sanz Salinas Sent: Friday, January 21, 2005 8:24 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Creation of shapefiles (PHP) Hello, With PHP/MapScript, I'm trying to create a simple shapefile with one rectagle dinamically from some points. The shapefile is been created but it seems not in the correct way. This I say, when I make a dynamic layer with it, seems like a polyline because MapServer doesn't fill it. In ArcMap the polygon has no area and can't draw it properly (without color) as MapServer. I work with Mapserver44, WindowsXP (PRO SP2) and PHP4.3.8 MapServer version 4.4.0-beta2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE PHP 4.3.8 (cgi-fcgi) (built: Jul 13 2004 17:36:43) Copyright (c) 1997-2004 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies The code to generate the shapefile is (four lines are created few lines before): //************************************************** //Add four lines to the ShpObj $shpObj = ms_newShapeObj(MS_SHAPE_POLYGON); $shpObj->add($linW); $shpObj->add($linS); $shpObj->add($linE); $shpObj->add($linN); //Generate a unique filename $szFileRect = $mapa->web->imagepath . uniqid(""); //Define a shapefile object $shpRect = ms_newShapefileObj($szFileRect, MS_SHP_POLYGON); //Create a new DBF attached with one attribute $hDbf = dbase_create($szFileRect.".dbf",array(array("NAME", "C", 50, 0))); if (!$hDbf) return; //Add the shpobj to the shapefile $shpRect->addShape($shpObj); //Add the attribute $atts[0] = "Experimento"; dbase_add_record($hDbf, $atts); //Close the objects $shpObj->free(); dbase_close($hDbf); $shpRect->free //************************************************** Thanks, -- Jorge Gaspar Sanz Salinas Departamento de Ingenier?a Cartogr?fica, Geodesia y Fotogrametr?a Universidad Polit?cnica de Valencia From mercutio at POBOX.COM Fri Jan 21 07:27:58 2005 From: mercutio at POBOX.COM (Aaron Craig) Date: Fri, 21 Jan 2005 16:27:58 +0100 Subject: prepareImage() || draw() Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I'm confused about how we're supposed to draw the final map image through mapscript. I want to get a mapfile loaded, add a layer with some lines on it connecting some dots already present in another layer. In pseudo code, I'm doing more or less: mapObj = mapscript::mapObj->new("mapfile.map"); imgObj = mapObj->prepareImage(); pntA = mapscript::pointObj->new(); pntA->setXY(X, Y); pntA->draw(map, lyrObj, imgObj, null, ""); pntB = mapscript::pointObj->new(); pntB->setXY(X, Y); pntB->draw(map, lyrObj, imgObj, null, ""); linObj = mapscript::lineObj->new(); linObj->add(pntA); linObj->add(pntB); shpObj = mapscript::shapeObj->new(MS_SHAPE_LINE); shpObj->add(linObj); shpObj->{index} = 0; # is this necessary? lyrObj = mapscript::layerObj->new(mapObj); mapObj->insertLayer(lyrObj); lyrObj->{status} = MS_ON; lyrObj->addFeature(shpObj); lyrObj->draw(mapObj, imgObj); imgObj->save("file.png"); Which results in an empty image. If instead of calling prepareImage() I call draw(), then I get the map drawn as described in the mapfile, without my new layer. Help? - -- Aaron Craig mercutio at pobox.com =========================================================== Get Firefox! http://www.spreadfirefox.com/?q=affiliates&id=0&t=1 =========================================================== - -=-=- The miserable have no other medicine but only hope. -- Measure for Measure - -=-=- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFB8R99oyEQRcU83p4RAsweAKCNMxdzbtwu063kDOiBOdXzkSPSfACglD0N A+GUoMbJSvuwStyo9BwXn8w= =AJq4 -----END PGP SIGNATURE----- From sgillies at FRII.COM Fri Jan 21 07:40:24 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Fri, 21 Jan 2005 08:40:24 -0700 Subject: prepareImage() || draw() In-Reply-To: Message-ID: On Jan 21, 2005, at 8:27 AM, Aaron Craig wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I'm confused about how we're supposed to draw the final map image > through mapscript. > > I want to get a mapfile loaded, add a layer with some lines on it > connecting some dots already present in another layer. In pseudo code, > I'm doing more or less: > > mapObj = mapscript::mapObj->new("mapfile.map"); > imgObj = mapObj->prepareImage(); > > pntA = mapscript::pointObj->new(); > pntA->setXY(X, Y); > pntA->draw(map, lyrObj, imgObj, null, ""); > pntB = mapscript::pointObj->new(); > pntB->setXY(X, Y); > pntB->draw(map, lyrObj, imgObj, null, ""); > > linObj = mapscript::lineObj->new(); > linObj->add(pntA); > linObj->add(pntB); > > shpObj = mapscript::shapeObj->new(MS_SHAPE_LINE); > shpObj->add(linObj); > shpObj->{index} = 0; # is this necessary? > > lyrObj = mapscript::layerObj->new(mapObj); > mapObj->insertLayer(lyrObj); > > lyrObj->{status} = MS_ON; > lyrObj->addFeature(shpObj); > lyrObj->draw(mapObj, imgObj); > > imgObj->save("file.png"); > > Which results in an empty image. > > If instead of calling prepareImage() I call draw(), then I get the map > drawn as described in the mapfile, without my new layer. > > Help? > Aaron, your inline layer needs classes and styles for symbolization of the shape. Also, only add features to the layer *after* you've inserted it into the map. Remember, MapServer cannot deal with map elements by reference and so insertLayer makes a *copy* in the mapObj. You'll need to add features to that copy and not to the original layer. Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From jdport at VERITIME.COM Fri Jan 21 07:49:18 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Fri, 21 Jan 2005 10:49:18 -0500 Subject: projection questions Message-ID: Is there an easy way to figure out what projection my shapefile was created with? I have a map of the New England area that was created in Microsoft's Map Point, and I am more or less trying to re-create that map with mapserver. I started with an outline of the United States and then set the extents to display the area that I wanted, but the maps look very different and i'm positive it's becuase I'm not using proper projections (I don't expect the maps to look exactly alike of course, but the general shape should be pretty close). I always use ogrinfo to get the extents and see projection information of shapefiles that I've downloaded but more often than not , the ogrinfo just returns: "Layer SRS WKT: (Unknown)" instead of telling me the projection it was created with. I also am not sure how to go about choosing my output projection... I've been using EPSG:4269 because as I understand it that is a midwest projection and when I first started playing with mapserver I was making maps of Michigan. Anybody know a good source to look up what would be the best output projection for different areas of the country/world? As you can tell i'm really new to GIS and while I do understand the idea of projections I just don't know anything about them or how to apply them. Thanks a lot, Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgillies at FRII.COM Fri Jan 21 08:17:06 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Fri, 21 Jan 2005 09:17:06 -0700 Subject: prepareImage() || draw() In-Reply-To: <41F125D3.4020902@pobox.com> Message-ID: Aaron, I'm cc'ing the list so that this gets into the archive. mapObj::draw() effectively calls prepareImage during execution, but no other drawing method does. So if you to use pointObj::draw(), shapeObj::draw(), or layerObj::draw() you will need to first create a blank image canvas with mapObj::prepareImage(). If you are very careful you might even use an imageObj produced by the imageObj constructor, but prepareImage is safer and manages all the spatial re-sizing and re-scaling that may be necessary. Sean On Jan 21, 2005, at 8:54 AM, Aaron Craig wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Okay, I understand that. To avoid hardwiring the style, etc. for the > layer, I am changing the code to > > lyrObj = mapObj->getLayerByName("lines"); > > where lines is a layer described in the mapfile. > > However, I am still unclear about the internal workings. > > If I do > imgObj = mapObj->prepareImage(); > > will subsequent changes to the extent of the mapObj, etc. be > recognized, > or do the properties of the map get copied into the imgObj when it is > created (I am suspecting this latter). > > If that's the case, then I suppose the logic should be: > create map object > make all changes to the map object > get image > save image > > which makes me wonder what the use of prepareImage() is... > > Sean Gillies wrote: > | > | Aaron, your inline layer needs classes and styles for symbolization > of > | the shape. Also, only add features to the layer *after* you've > inserted > | it into the map. Remember, MapServer cannot deal with map elements > by > | reference and so insertLayer makes a *copy* in the mapObj. You'll > need > | to add features to that copy and not to the original layer. > | > | Sean > | > > - -- > Aaron Craig > mercutio at pobox.com > > =========================================================== > Get Firefox! > http://www.spreadfirefox.com/?q=affiliates&id=0&t=1 > =========================================================== > > > - -=-=- > All that lives must die, passing through nature to eternity -- Hamlet, > Act i, Sc.2 > - -=-=- > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.4 (GNU/Linux) > Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org > > iD8DBQFB8SXSoyEQRcU83p4RAhIxAJ98h4qRMvcEh7DL/nA2utCmvuES5QCfaniV > QByzzlXbBvBXTizH9DJiJBY= > =xw5g > -----END PGP SIGNATURE----- > > -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From ed at TOPOZONE.COM Fri Jan 21 08:23:36 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 21 Jan 2005 11:23:36 -0500 Subject: projection questions Message-ID: Jeff - Unfortunately, ESRI forgot about projections when the shapefile format was created. There was a later addition of a .prj file to go along with shapefiles and describe their projection. If you have a .prj file of the same base name, you will have that information - I expect you do not. Without that information you're down to educated guesses. There are three likely candidates for US data - geographic (unprojected) coordinates, a UTM projection, or a state plane projection. If you are dealing with a multiple-state area, state plane is unlikely. Can you examine the coordinates in the shapefile by either using the shpdump utility or loading the shapefile into a GIS viewer and reading the coordinates? For New England, geographic coordinates will have X values ranging from around -74 to -66, and Y values between 41 and 48. UTM coordinates will range between X values of 200000 to 700000 and Y values between 4500000 and 5250000. As you can see, these are obviously different and easy to distinguish. If you find you have values that don't match either of these, let us know what they are; the shpdump utility will give you the bounding box of all shapes in the shapefile, and that's a good guide. - Ed Ed McNierney TopoZone.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jeff Portwine Sent: Friday, January 21, 2005 10:49 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] projection questions Is there an easy way to figure out what projection my shapefile was created with? I have a map of the New England area that was created in Microsoft's Map Point, and I am more or less trying to re-create that map with mapserver. I started with an outline of the United States and then set the extents to display the area that I wanted, but the maps look very different and i'm positive it's becuase I'm not using proper projections (I don't expect the maps to look exactly alike of course, but the general shape should be pretty close). I always use ogrinfo to get the extents and see projection information of shapefiles that I've downloaded but more often than not , the ogrinfo just returns: "Layer SRS WKT: (Unknown)" instead of telling me the projection it was created with. I also am not sure how to go about choosing my output projection... I've been using EPSG:4269 because as I understand it that is a midwest projection and when I first started playing with mapserver I was making maps of Michigan. Anybody know a good source to look up what would be the best output projection for different areas of the country/world? As you can tell i'm really new to GIS and while I do understand the idea of projections I just don't know anything about them or how to apply them. Thanks a lot, Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From kgrootendorst at BAIRD.COM Fri Jan 21 08:47:45 2005 From: kgrootendorst at BAIRD.COM (Kevin Grootendorst) Date: Fri, 21 Jan 2005 10:47:45 -0600 Subject: Zoom to custom extent - PHP Message-ID: Kristjan, Thanks for your reply. I forgot to include this additional PHP code in my original posting. I have the following: if ($HTTP_FORM_VARS["ViewRegion"]) { if (ereg("(-?[0-9]+),(-?[0-9]+),(-?[0-9]+),(-?[0-9]+)", $HTTP_FORM_VARS["ViewRegion"], $ProvExtents)) { $dfMinX = doubleval($ProvExtents[1]); $dfMinY = doubleval($ProvExtents[2]); $dfMaxX = doubleval($ProvExtents[3]); $dfMaxY = doubleval($ProvExtents[4]); SetMapExtents($dfMinX, $dfMinY, $dfMaxX, $dfMaxY); } } But no luck yet. My page just reloads with the max extents of the map. Kevin From jdport at VERITIME.COM Fri Jan 21 08:52:46 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Fri, 21 Jan 2005 11:52:46 -0500 Subject: projection questions Message-ID: Most all of the files I've found use the latitude/longitue extents. My US states outline that I am using actually had it's boundries set to soemthing like -171 172 because it included everything from the continental US to far away US territires like the Virgin Islands. I just set my .map file extents to display the section I wanted... I actually used -80.2 40.8 -68.1 44.5, which is more or less what you said. For road information, I usually use Tiger line data if you know that they use a particular projection.... though I'm trying to find some data that includes an entire state in a single shapefile instead of having it split up by county... the area I'm trying to plot includes 8 or 9 states and I don't really want to have to create a separate layer for every county. I've never used the shpdump utility, i've only used ogrinfo but I'll give it a try and see if that gives me any more insight. Thanks for the input, Jeff ----- Original Message ----- From: Ed McNierney To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Friday, January 21, 2005 11:23 AM Subject: Re: [UMN_MAPSERVER-USERS] projection questions Jeff - Unfortunately, ESRI forgot about projections when the shapefile format was created. There was a later addition of a .prj file to go along with shapefiles and describe their projection. If you have a .prj file of the same base name, you will have that information - I expect you do not. Without that information you're down to educated guesses. There are three likely candidates for US data - geographic (unprojected) coordinates, a UTM projection, or a state plane projection. If you are dealing with a multiple-state area, state plane is unlikely. Can you examine the coordinates in the shapefile by either using the shpdump utility or loading the shapefile into a GIS viewer and reading the coordinates? For New England, geographic coordinates will have X values ranging from around -74 to -66, and Y values between 41 and 48. UTM coordinates will range between X values of 200000 to 700000 and Y values between 4500000 and 5250000. As you can see, these are obviously different and easy to distinguish. If you find you have values that don't match either of these, let us know what they are; the shpdump utility will give you the bounding box of all shapes in the shapefile, and that's a good guide. - Ed Ed McNierney TopoZone.com ------------------------------------------------------------------------------ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jeff Portwine Sent: Friday, January 21, 2005 10:49 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] projection questions Is there an easy way to figure out what projection my shapefile was created with? I have a map of the New England area that was created in Microsoft's Map Point, and I am more or less trying to re-create that map with mapserver. I started with an outline of the United States and then set the extents to display the area that I wanted, but the maps look very different and i'm positive it's becuase I'm not using proper projections (I don't expect the maps to look exactly alike of course, but the general shape should be pretty close). I always use ogrinfo to get the extents and see projection information of shapefiles that I've downloaded but more often than not , the ogrinfo just returns: "Layer SRS WKT: (Unknown)" instead of telling me the projection it was created with. I also am not sure how to go about choosing my output projection... I've been using EPSG:4269 because as I understand it that is a midwest projection and when I first started playing with mapserver I was making maps of Michigan. Anybody know a good source to look up what would be the best output projection for different areas of the country/world? As you can tell i'm really new to GIS and while I do understand the idea of projections I just don't know anything about them or how to apply them. Thanks a lot, Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From xurxosanz at YAHOO.ES Fri Jan 21 09:14:53 2005 From: xurxosanz at YAHOO.ES (Jorge Gaspar Sanz Salinas) Date: Fri, 21 Jan 2005 18:14:53 +0100 Subject: Creation of shapefiles (PHP) In-Reply-To: Message-ID: Matt Brown escribi?: > Jorge, > > I don't know if this is the problem, but you might try building one line, > instead of four, and make sure that the beginning and ending points are the > same. then add the line object to the shape object > > Matt > Well, the lines are working (I can create succesfully an arc shapefile) and points are well (the same point object to start and to end). Thus, I think I'm doing something wrong with the polygon creation. Can someone post a simple shapefile PHP creation? I didn't found anything in the mailing list or in the web. Thanks, -- Jorge Gaspar Sanz Salinas Departamento de Ingenier?a Cartogr?fica, Geodesia y Fotogrametr?a Universidad Polit?cnica de Valencia From palanisamyg at ORNL.GOV Fri Jan 21 09:23:57 2005 From: palanisamyg at ORNL.GOV (Palanisamy, Giri) Date: Fri, 21 Jan 2005 12:23:57 -0500 Subject: Mapscript: PHP5 and Windows Message-ID: HI, I am exploring PHP-mapscript for my mapserver applications, I am very new to PHP, Installed the PHP 5.0.2 version under C:/PHP, and tested with the simple php page, it works OK, but when I tried adding the " php_mapscript_45.dll' under C:/PHP/ext/, I am getting PHP startup error " Warning: dl() [function.dl]: Unable to load dynamic library 'C:/PHP/ext\php_mapscript_45.dll' - The specified procedure could not be found. in f:\Inetpub\wwwroot\mapserv\fluxnet\testPHP.php on line 8" I have edited php.ini file and added an entry on the extension, but still I am getting the same errors. I have got the latest mapscript-php from maptools. Basically I followed all the steps (found on the readme.txt) --------------------- To install the PHP_MAPSCRIPT.DLL module: - Download PHP-5.0.2-Win32.zip from http://www.php.net/ - Configure PHP 5.0.2 on your server as per the instructions included in the INSTALL.TXT in the PHP-5.0.2-Win32.zip file. - Copy the php_mapscript_45.dll to your PHP4 extensions directory, together with all the other PHP_*.DLL. - download and install the libcurl dlls - download and install the ecw dlls - php_mapscript_45.dll is ready to be used as a PHP extension. ---------------------------- Am I missing something? Thanks! Giri -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Yewondwossen Assefa Sent: Wednesday, January 19, 2005 10:11 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Mapscript: PHP5 and Windows I have placed the windows binaries of php/mapscript build with php5.0.2 on maptools.org (http://www.maptools.org/php_mapscript/index.phtml?page=downloads.html development version). I have tested it with a simple php/mapscript application (Gmap). Please let me know of you have any problems. Later, Mathieu PARENT wrote: > Hi, > the bug #1100 (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1100) > is fixed now. Thanks. > Due to a lot of missing utilities, i can't get it compiled on windows. > Do you have a build of it ? > Thanks > > Best regards > > Mathieu Parent > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From jdport at VERITIME.COM Fri Jan 21 09:34:16 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Fri, 21 Jan 2005 12:34:16 -0500 Subject: projection questions Message-ID: As I've looked closer at some of the metadata that is available on the downloads I have, I've noticed that they sometimes say they are a geographic projection, and use datum like NAD83... so that tells me a little bit. However I had the mistaken idea before that NAD83 was a "projection". I really am confused about the difference between the data set and the projection. I thought that NAD83 was a set of data that used a particular projection.... but then I noticed in at least one case the metadata showed a "geographic projection", a horizantal datum, and a vertical datum.... so I'm a bit confused. So Assuming that all my shapefiles are Geo Lat/Long projections with NAD83 datum, how do I make them look right when they are drawn with mapserver/mapscript? Thanks again, Jeff ----- Original Message ----- From: Ed McNierney To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Friday, January 21, 2005 11:23 AM Subject: Re: [UMN_MAPSERVER-USERS] projection questions Jeff - Unfortunately, ESRI forgot about projections when the shapefile format was created. There was a later addition of a .prj file to go along with shapefiles and describe their projection. If you have a .prj file of the same base name, you will have that information - I expect you do not. Without that information you're down to educated guesses. There are three likely candidates for US data - geographic (unprojected) coordinates, a UTM projection, or a state plane projection. If you are dealing with a multiple-state area, state plane is unlikely. Can you examine the coordinates in the shapefile by either using the shpdump utility or loading the shapefile into a GIS viewer and reading the coordinates? For New England, geographic coordinates will have X values ranging from around -74 to -66, and Y values between 41 and 48. UTM coordinates will range between X values of 200000 to 700000 and Y values between 4500000 and 5250000. As you can see, these are obviously different and easy to distinguish. If you find you have values that don't match either of these, let us know what they are; the shpdump utility will give you the bounding box of all shapes in the shapefile, and that's a good guide. - Ed Ed McNierney TopoZone.com ------------------------------------------------------------------------------ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jeff Portwine Sent: Friday, January 21, 2005 10:49 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] projection questions Is there an easy way to figure out what projection my shapefile was created with? I have a map of the New England area that was created in Microsoft's Map Point, and I am more or less trying to re-create that map with mapserver. I started with an outline of the United States and then set the extents to display the area that I wanted, but the maps look very different and i'm positive it's becuase I'm not using proper projections (I don't expect the maps to look exactly alike of course, but the general shape should be pretty close). I always use ogrinfo to get the extents and see projection information of shapefiles that I've downloaded but more often than not , the ogrinfo just returns: "Layer SRS WKT: (Unknown)" instead of telling me the projection it was created with. I also am not sure how to go about choosing my output projection... I've been using EPSG:4269 because as I understand it that is a midwest projection and when I first started playing with mapserver I was making maps of Michigan. Anybody know a good source to look up what would be the best output projection for different areas of the country/world? As you can tell i'm really new to GIS and while I do understand the idea of projections I just don't know anything about them or how to apply them. Thanks a lot, Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From cmcguigan at EARTHCOMBER.COM Fri Jan 21 09:44:13 2005 From: cmcguigan at EARTHCOMBER.COM (Colin McGuigan) Date: Fri, 21 Jan 2005 11:44:13 -0600 Subject: Segmentation Faults on RH9 In-Reply-To: <1106295799.4292.4.camel@friedrich.prometeo.it> Message-ID: Umberto Nicoletti wrote: > For some reason mappath is null and this causes the segfault. Why it is > that I do not know. Try to use fewer configure options and then run the > gdb again. If the problem goes away try adding more options, until you > find the culprit. > I would start with only --enable-debug; Thanks for your response, Umberto. Looking at the code, mappath is allowed to be null, and the case is handled by using the current path as the map path; in fact, loadMap is called several times with a NULL argument for mappath, so this behaviour seems to be normal. As to configuring with seperate paths, here's what I found: removing --with-php and --with-php-regex-dir makes a mapserv file that works fine. More curious still, if I compile PHP as a cgi with --use-regex=system BUT DO NOT INSTALL, and then compile Mapserver against that with --use-php=, Mapserver will work fine, even if used within the previously installed PHP-as-DSO. Seems completely backwards of how I'd expect things to work, but, there you go. Anyways, thanks for your help. --Colin McGuigan From superbla3000 at GMX.NET Fri Jan 21 09:58:44 2005 From: superbla3000 at GMX.NET (joerg pfeiffer) Date: Fri, 21 Jan 2005 18:58:44 +0100 Subject: Example Maps In-Reply-To: Message-ID: > I have corrected the Shape- and Imagepath to my installation. > Typically I receive only the frame which tells me that the map > was created with MapServer and a legend at the bottom. > But the map is missing. > hello Nicole, so is mapserver running? Can you perform those simple tests, like calling the cgi from a browser? And if yes, has mapserver the right permissions to write to the temp image directory?.... joerg From assefa at DMSOLUTIONS.CA Fri Jan 21 09:56:45 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Fri, 21 Jan 2005 12:56:45 -0500 Subject: Mapscript: PHP5 and Windows In-Reply-To: <74700A2004B18A459CDA46BF6BDEDEF5E9F894@ORNLEXCHANGE.ornl.gov> Message-ID: This kind of errors usually end up being a dependant dll not found on the system. Try loading php_mapscroipt_45.dll into a dependecy checking program like dependecy walker (www.dependencywalker.com/ ) and see if it can identify what is missing. Later, Palanisamy, Giri wrote: > HI, > > I am exploring PHP-mapscript for my mapserver applications, I am very > new to PHP, Installed the PHP 5.0.2 version under C:/PHP, and tested > with the simple php page, it works OK, but when I tried adding the " > php_mapscript_45.dll' under C:/PHP/ext/, I am getting PHP startup error > " Warning: dl() [function.dl]: Unable to load dynamic library > 'C:/PHP/ext\php_mapscript_45.dll' - The specified procedure could not be > found. in f:\Inetpub\wwwroot\mapserv\fluxnet\testPHP.php on line 8" > > I have edited php.ini file and added an entry on the extension, but > still I am getting the same errors. > > I have got the latest mapscript-php from maptools. > > Basically I followed all the steps (found on the readme.txt) > --------------------- > To install the PHP_MAPSCRIPT.DLL module: > - Download PHP-5.0.2-Win32.zip from http://www.php.net/ > - Configure PHP 5.0.2 on your server as per the instructions included > in the INSTALL.TXT in the PHP-5.0.2-Win32.zip file. > - Copy the php_mapscript_45.dll to your PHP4 extensions directory, > together > with all the other PHP_*.DLL. > - download and install the libcurl dlls > - download and install the ecw dlls > - php_mapscript_45.dll is ready to be used as a PHP extension. > ---------------------------- > Am I missing something? > > Thanks! > > Giri > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Yewondwossen Assefa > Sent: Wednesday, January 19, 2005 10:11 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Mapscript: PHP5 and Windows > > I have placed the windows binaries of php/mapscript build with php5.0.2 > on maptools.org > (http://www.maptools.org/php_mapscript/index.phtml?page=downloads.html > development version). > > I have tested it with a simple php/mapscript application (Gmap). > Please let me know of you have any problems. > > Later, > > Mathieu PARENT wrote: > >>Hi, >>the bug #1100 (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1100) >>is fixed now. Thanks. >>Due to a lot of missing utilities, i can't get it compiled on windows. >>Do you have a build of it ? >>Thanks >> >>Best regards >> >>Mathieu Parent >> > > > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From ed at TOPOZONE.COM Fri Jan 21 09:56:45 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 21 Jan 2005 12:56:45 -0500 Subject: projection questions Message-ID: Jeff - A datum is not a projection, but a mathematical model of the Earth. Every geographic (i.e. latitude/longitude) and projected coordinate system is expressed relative to a datum. Many people incorrectly think that the latitude and longitude of a point are absolute, unchangeable values. Latitude and longitude are geographic coordinates expressed relative to a datum. If you change the datum, the coordinates will change. In the United States, the NAD27 and NAD83 datums are commonly used. WGS84 is also used because it is a world-wide datum, but in the USA you can consider it identical to NAD83. For example, I'm typing this from a location that's latitude 42.5860?N, 71.5553?W in WGS84/NAD83 coordinates, and 42.5859?N, 71.5558?W in NAD27 coordinates. Not a big difference, but a real one. If ALL of your shapefiles are geographic NAD83, things are pretty easy. If your input and output projections are all the same (and let's start with that case) then you can completely ignore projections. Just be sure the extents in your .mapfile are appropriate for the area and the UNITS are DD (decimal degrees). It sounded, however, from your last email, as if you'd already had that working. What works and doesn't work? Can you get one shapefile to display using latitude/longitude extents for the northeastern US? - Ed ________________________________________ From: Jeff Portwine [mailto:jdport at veritime.com] Sent: Friday, January 21, 2005 12:34 PM To: Ed McNierney; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] projection questions As I've looked closer at some of the metadata that is available on the downloads I have, I've noticed that they sometimes say they are a geographic projection, and use datum like NAD83... so that tells me a little bit.?? However I had the mistaken idea before that NAD83 was a "projection".?? I really am confused about the difference between the data set and the projection.?? I thought that NAD83 was a set of data that used a particular projection....? but then I noticed in at least one case the metadata showed a "geographic projection", a horizantal datum, and a vertical datum....? so I'm a bit confused.????? ? So Assuming that all my?shapefiles are Geo Lat/Long projections with NAD83 datum, how do I make them look right when they are drawn with mapserver/mapscript??? ? Thanks again, Jeff ? ----- Original Message ----- From: Ed McNierney To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Friday, January 21, 2005 11:23 AM Subject: Re: [UMN_MAPSERVER-USERS] projection questions Jeff - Unfortunately, ESRI forgot about projections when the shapefile format was created.? There was a later addition of a .prj file to go along with shapefiles and describe their projection.? If you have a .prj file of the same base name, you will have that information - I expect you do not. Without that information you're down to educated guesses.? There are three likely candidates for US data - geographic (unprojected) coordinates, a UTM projection, or a state plane projection.? If you are dealing with a multiple-state area, state plane is unlikely. Can you examine the coordinates in the shapefile by either using the shpdump utility or loading the shapefile into a GIS viewer and reading the coordinates?? For New England, geographic coordinates will have X values ranging from around -74 to -66, and Y values between? 41 and 48.? UTM coordinates will range between X values of 200000 to 700000 and Y values between 4500000 and 5250000.? As you can see, these are obviously different and easy to distinguish. If you find you have values that don't match either of these, let us know what they are; the shpdump utility will give you the bounding box of all shapes in the shapefile, and that's a good guide. - Ed Ed McNierney TopoZone.com ________________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jeff Portwine Sent: Friday, January 21, 2005 10:49 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] projection questions ? Is there an easy way to figure out what projection my shapefile was created with??? I have a map of the New England area that was created in Microsoft's Map Point, and I am more or less trying to re-create that map with mapserver.???I started with an outline of the United States and then set the extents to display the area that I wanted, but the maps look very different and i'm positive it's becuase I'm not using proper projections? (I don't expect the maps to look exactly alike of course, but the general shape should be pretty close).??? I always use ogrinfo to get the extents and see projection information of shapefiles that I've downloaded but more often than not , the ogrinfo just returns: "Layer SRS WKT:? (Unknown)"?? instead of telling me the projection it was created with. ? I also am not sure how to go about choosing my output projection...? I've been using EPSG:4269 because as I understand it that is a midwest projection and when I first started playing with mapserver I was making maps of Michigan.??? Anybody know a good source to look up what would be the best output projection for different areas of the country/world?? ? As you can tell i'm really new to GIS and while I do understand the idea of projections I just don't know anything about them or how to apply them. ? Thanks a lot, Jeff ? From murilo.yoshida at AGX.COM.BR Fri Jan 21 10:05:47 2005 From: murilo.yoshida at AGX.COM.BR (Murilo Lacerda Yoshida) Date: Fri, 21 Jan 2005 16:05:47 -0200 Subject: RES: [UMN_MAPSERVER-USERS] Creation of shapefiles (PHP) In-Reply-To: <41F1388D.6010701@yahoo.es> Message-ID: Jorge, I don't remember if I tried to create a shapefile using four lines (I assume your lines are the 4 lines of a square). But what I do is put all the points in one line and then add this line to the shapefile. The code to create the shapefile seems to be right. Murilo -----Mensagem original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Em nome de Jorge Gaspar Sanz Salinas Enviada em: sexta-feira, 21 de janeiro de 2005 15:15 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] Creation of shapefiles (PHP) Matt Brown escribi?: > Jorge, > > I don't know if this is the problem, but you might try building one line, > instead of four, and make sure that the beginning and ending points are the > same. then add the line object to the shape object > > Matt > Well, the lines are working (I can create succesfully an arc shapefile) and points are well (the same point object to start and to end). Thus, I think I'm doing something wrong with the polygon creation. Can someone post a simple shapefile PHP creation? I didn't found anything in the mailing list or in the web. Thanks, -- Jorge Gaspar Sanz Salinas Departamento de Ingenier?a Cartogr?fica, Geodesia y Fotogrametr?a Universidad Polit?cnica de Valencia From palanisamyg at ORNL.GOV Fri Jan 21 10:27:30 2005 From: palanisamyg at ORNL.GOV (Palanisamy, Giri) Date: Fri, 21 Jan 2005 13:27:30 -0500 Subject: Mapscript: PHP5 and Windows Message-ID: Hi Assefa, Thanks for the response, I have tried the dependency walker, and it is first complained about " php5ts.dll not found", then I placed this dll and now I am getting " Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.", and I couldn't find out what exactly it is missing. Can you please tell me what are all the dependent modules (extensions) required for php-mapscript? I am running Windows IIS on windows xp Giri Giri -----Original Message----- From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] Sent: Friday, January 21, 2005 12:57 PM To: Palanisamy, Giri Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Mapscript: PHP5 and Windows This kind of errors usually end up being a dependant dll not found on the system. Try loading php_mapscroipt_45.dll into a dependecy checking program like dependecy walker (www.dependencywalker.com/ ) and see if it can identify what is missing. Later, Palanisamy, Giri wrote: > HI, > > I am exploring PHP-mapscript for my mapserver applications, I am very > new to PHP, Installed the PHP 5.0.2 version under C:/PHP, and tested > with the simple php page, it works OK, but when I tried adding the " > php_mapscript_45.dll' under C:/PHP/ext/, I am getting PHP startup error > " Warning: dl() [function.dl]: Unable to load dynamic library > 'C:/PHP/ext\php_mapscript_45.dll' - The specified procedure could not be > found. in f:\Inetpub\wwwroot\mapserv\fluxnet\testPHP.php on line 8" > > I have edited php.ini file and added an entry on the extension, but > still I am getting the same errors. > > I have got the latest mapscript-php from maptools. > > Basically I followed all the steps (found on the readme.txt) > --------------------- > To install the PHP_MAPSCRIPT.DLL module: > - Download PHP-5.0.2-Win32.zip from http://www.php.net/ > - Configure PHP 5.0.2 on your server as per the instructions included > in the INSTALL.TXT in the PHP-5.0.2-Win32.zip file. > - Copy the php_mapscript_45.dll to your PHP4 extensions directory, > together > with all the other PHP_*.DLL. > - download and install the libcurl dlls > - download and install the ecw dlls > - php_mapscript_45.dll is ready to be used as a PHP extension. > ---------------------------- > Am I missing something? > > Thanks! > > Giri > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Yewondwossen Assefa > Sent: Wednesday, January 19, 2005 10:11 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Mapscript: PHP5 and Windows > > I have placed the windows binaries of php/mapscript build with php5.0.2 > on maptools.org > (http://www.maptools.org/php_mapscript/index.phtml?page=downloads.html > development version). > > I have tested it with a simple php/mapscript application (Gmap). > Please let me know of you have any problems. > > Later, > > Mathieu PARENT wrote: > >>Hi, >>the bug #1100 (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1100) >>is fixed now. Thanks. >>Due to a lot of missing utilities, i can't get it compiled on windows. >>Do you have a build of it ? >>Thanks >> >>Best regards >> >>Mathieu Parent >> > > > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From xurxosanz at YAHOO.ES Fri Jan 21 10:28:48 2005 From: xurxosanz at YAHOO.ES (Jorge Gaspar Sanz Salinas) Date: Fri, 21 Jan 2005 19:28:48 +0100 Subject: RES: [UMN_MAPSERVER-USERS] Creation of shapefiles (PHP) (SOLVED) In-Reply-To: <000801c4ffe3$d9b7ffb0$1364a8c0@parapente> Message-ID: Murilo Lacerda Yoshida escribi?: > Jorge, > I don't remember if I tried to create a shapefile using four lines (I > assume your lines are the 4 lines of a square). > But what I do is put all the points in one line and then add this line > to the shapefile. > The code to create the shapefile seems to be right. > You were perfectly correct, adding the four points to the same line works. Thanks! -- Jorge Gaspar Sanz Salinas Departamento de Ingenier?a Cartogr?fica, Geodesia y Fotogrametr?a Universidad Polit?cnica de Valencia From palanisamyg at ORNL.GOV Fri Jan 21 10:35:01 2005 From: palanisamyg at ORNL.GOV (Palanisamy, Giri) Date: Fri, 21 Jan 2005 13:35:01 -0500 Subject: Mapscript: PHP5 and Windows Message-ID: I Got it working, it is with because of few other missing dlls Thanks Giri -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Palanisamy, Giri Sent: Friday, January 21, 2005 1:28 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Mapscript: PHP5 and Windows Hi Assefa, Thanks for the response, I have tried the dependency walker, and it is first complained about " php5ts.dll not found", then I placed this dll and now I am getting " Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.", and I couldn't find out what exactly it is missing. Can you please tell me what are all the dependent modules (extensions) required for php-mapscript? I am running Windows IIS on windows xp Giri Giri -----Original Message----- From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] Sent: Friday, January 21, 2005 12:57 PM To: Palanisamy, Giri Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Mapscript: PHP5 and Windows This kind of errors usually end up being a dependant dll not found on the system. Try loading php_mapscroipt_45.dll into a dependecy checking program like dependecy walker (www.dependencywalker.com/ ) and see if it can identify what is missing. Later, Palanisamy, Giri wrote: > HI, > > I am exploring PHP-mapscript for my mapserver applications, I am very > new to PHP, Installed the PHP 5.0.2 version under C:/PHP, and tested > with the simple php page, it works OK, but when I tried adding the " > php_mapscript_45.dll' under C:/PHP/ext/, I am getting PHP startup error > " Warning: dl() [function.dl]: Unable to load dynamic library > 'C:/PHP/ext\php_mapscript_45.dll' - The specified procedure could not be > found. in f:\Inetpub\wwwroot\mapserv\fluxnet\testPHP.php on line 8" > > I have edited php.ini file and added an entry on the extension, but > still I am getting the same errors. > > I have got the latest mapscript-php from maptools. > > Basically I followed all the steps (found on the readme.txt) > --------------------- > To install the PHP_MAPSCRIPT.DLL module: > - Download PHP-5.0.2-Win32.zip from http://www.php.net/ > - Configure PHP 5.0.2 on your server as per the instructions included > in the INSTALL.TXT in the PHP-5.0.2-Win32.zip file. > - Copy the php_mapscript_45.dll to your PHP4 extensions directory, > together > with all the other PHP_*.DLL. > - download and install the libcurl dlls > - download and install the ecw dlls > - php_mapscript_45.dll is ready to be used as a PHP extension. > ---------------------------- > Am I missing something? > > Thanks! > > Giri > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Yewondwossen Assefa > Sent: Wednesday, January 19, 2005 10:11 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Mapscript: PHP5 and Windows > > I have placed the windows binaries of php/mapscript build with php5.0.2 > on maptools.org > (http://www.maptools.org/php_mapscript/index.phtml?page=downloads.html > development version). > > I have tested it with a simple php/mapscript application (Gmap). > Please let me know of you have any problems. > > Later, > > Mathieu PARENT wrote: > >>Hi, >>the bug #1100 (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1100) >>is fixed now. Thanks. >>Due to a lot of missing utilities, i can't get it compiled on windows. >>Do you have a build of it ? >>Thanks >> >>Best regards >> >>Mathieu Parent >> > > > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From jdport at VERITIME.COM Fri Jan 21 10:42:47 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Fri, 21 Jan 2005 13:42:47 -0500 Subject: projection questions Message-ID: Thanks for the explanation, that does make perfect sense. I believe all of my shapefiles are NAD83... i'm not sure if they are all geographic but my guess is that they are. So I guess my only question is why my map looks so ... skewed I guess is the only word I can come up with at the moment. It just doesn't look right... the whole map seems almost twisted so that the coastline appears to be running more east/west than it should rather than north/south. Perhaps my "image size" is set wrong so that it's compressing one axis and stretching another.... I will just have to play with it I guess. Thanks for the great information. If nothing else this mapping project has been educational. -Jeff ----- Original Message ----- From: "Ed McNierney" To: "Jeff Portwine" ; Sent: Friday, January 21, 2005 12:56 PM Subject: RE: [UMN_MAPSERVER-USERS] projection questions Jeff - A datum is not a projection, but a mathematical model of the Earth. Every geographic (i.e. latitude/longitude) and projected coordinate system is expressed relative to a datum. Many people incorrectly think that the latitude and longitude of a point are absolute, unchangeable values. Latitude and longitude are geographic coordinates expressed relative to a datum. If you change the datum, the coordinates will change. In the United States, the NAD27 and NAD83 datums are commonly used. WGS84 is also used because it is a world-wide datum, but in the USA you can consider it identical to NAD83. For example, I'm typing this from a location that's latitude 42.5860?N, 71.5553?W in WGS84/NAD83 coordinates, and 42.5859?N, 71.5558?W in NAD27 coordinates. Not a big difference, but a real one. If ALL of your shapefiles are geographic NAD83, things are pretty easy. If your input and output projections are all the same (and let's start with that case) then you can completely ignore projections. Just be sure the extents in your .mapfile are appropriate for the area and the UNITS are DD (decimal degrees). It sounded, however, from your last email, as if you'd already had that working. What works and doesn't work? Can you get one shapefile to display using latitude/longitude extents for the northeastern US? - Ed From kenlord at GMAIL.COM Fri Jan 21 10:47:27 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Fri, 21 Jan 2005 10:47:27 -0800 Subject: Example Maps In-Reply-To: <41F142D4.1090602@gmx.net> Message-ID: Hi Nicole, Confirm that your image extents are set correctly, as well as your projections. MapServer may be creating the map correctly ... but all the data may just not be in the view if the extents and projections have errors. Cheers, Ken Lord Vancouver BC On Fri, 21 Jan 2005 18:58:44 +0100, joerg pfeiffer wrote: > > I have corrected the Shape- and Imagepath to my installation. > > Typically I receive only the frame which tells me that the map > > was created with MapServer and a legend at the bottom. > > But the map is missing. > > > > hello Nicole, > > so is mapserver running? Can you perform those simple tests, like > calling the cgi from a browser? > And if yes, has mapserver the right permissions to write to the temp > image directory?.... > > joerg > From kenlord at GMAIL.COM Fri Jan 21 11:07:35 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Fri, 21 Jan 2005 11:07:35 -0800 Subject: projection questions In-Reply-To: <028001c4ffe9$008956c0$1bf2fbd0@solo> Message-ID: Hi Jeff, Data that you are used to seeing as lat/long / geographic will appear to be skewed in the manner you describe if you view it reprojected into UTM or other projection systems and depending on where on the earth it is located. ... It's not necessarily wrong, just different and can take time to get used to. There are three parameters effected by projections that make maps appear very different ... shape of an object, distance between objects, and area of an object. Generaly any particular projection will handle 2 of the 3 well, so maps tend to be made using particular projections for particular uses in particular regions. Now if the earth were flat, we wouldn't have all these issues when squishing 3d data onto 2d map images. Cheers, Ken Lord Vancouver BC On Fri, 21 Jan 2005 13:42:47 -0500, Jeff Portwine wrote: > Thanks for the explanation, that does make perfect sense. I believe all > of my shapefiles are NAD83... i'm not sure if they are all geographic but my > guess is that they are. So I guess my only question is why my map looks > so ... skewed I guess is the only word I can come up with at the moment. It > just doesn't look right... the whole map seems almost twisted so that the > coastline appears to be running more east/west than it should rather than > north/south. Perhaps my "image size" is set wrong so that it's compressing > one axis and stretching another.... I will just have to play with it I > guess. > > Thanks for the great information. If nothing else this mapping project has > been educational. > > -Jeff > > ----- Original Message ----- > From: "Ed McNierney" > To: "Jeff Portwine" ; > Sent: Friday, January 21, 2005 12:56 PM > Subject: RE: [UMN_MAPSERVER-USERS] projection questions > > Jeff - > > A datum is not a projection, but a mathematical model of the Earth. Every > geographic (i.e. latitude/longitude) and projected coordinate system is > expressed relative to a datum. Many people incorrectly think that the > latitude and longitude of a point are absolute, unchangeable values. > Latitude and longitude are geographic coordinates expressed relative to a > datum. If you change the datum, the coordinates will change. In the United > States, the NAD27 and NAD83 datums are commonly used. WGS84 is also used > because it is a world-wide datum, but in the USA you can consider it > identical to NAD83. > > For example, I'm typing this from a location that's latitude 42.5860?N, > 71.5553?W in WGS84/NAD83 coordinates, and 42.5859?N, 71.5558?W in NAD27 > coordinates. Not a big difference, but a real one. > > If ALL of your shapefiles are geographic NAD83, things are pretty easy. If > your input and output projections are all the same (and let's start with > that case) then you can completely ignore projections. Just be sure the > extents in your .mapfile are appropriate for the area and the UNITS are DD > (decimal degrees). > > It sounded, however, from your last email, as if you'd already had that > working. What works and doesn't work? Can you get one shapefile to display > using latitude/longitude extents for the northeastern US? > > - Ed > From hermawan_s at HOTMAIL.COM Fri Jan 21 11:52:22 2005 From: hermawan_s at HOTMAIL.COM (Herman Teo) Date: Fri, 21 Jan 2005 13:52:22 -0600 Subject: Mapinfo labels Message-ID: Hi. I am in the process of trying to display Mapinfo .tab maps with the labels on it using mapserver. I am able to display the street lines just fine but I'm having a hard time with the labels. Could someone assist me in this? Thanks a lot. Herman Attached .map file: # # Start of map file # NAME I_ST STATUS ON SIZE 500 500 SYMBOLSET etc/symbols_mapinfo.sym EXTENT 106.686319 -6.189152 106.891758 -6.096436 UNITS DD IMAGECOLOR 255 255 255 FONTSET etc/fonts.txt # # Start of web interface definition # WEB # # On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root # of the drive where the .MAP file resides. # IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" # LOG "/tmp/gmap.log" TEMPLATE demo.html METADATA "TITLE" "MapServer Test" END 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 0 0 0 SIZE SMALL END SIZE 150 4 COLOR 255 255 255 BACKGROUNDCOLOR 0 0 0 OUTLINECOLOR 0 0 0 UNITS kilometers INTERVALS 3 STATUS ON END # # Querymap settings # # Style is one of NORMAL, HILITE, or SELECTED # QUERYMAP STYLE HILITE COLOR 255 0 0 END # # Start of layer definitions # LAYER NAME Street_Map TYPE LINE STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "C:\Indo\INDON_ST.TAB" STYLEITEM "AUTO" CLASS NAME "Street_Map" END END # Layer LAYER NAME Street_Name STATUS DEFAULT TYPE ANNOTATION CONNECTIONTYPE OGR CONNECTION "C:\Indo\INDON_ST.TAB" STYLEITEM "AUTO" CLASS NAME "Street_Name" END END END #map From fwarmerdam at GMAIL.COM Fri Jan 21 12:47:15 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri, 21 Jan 2005 15:47:15 -0500 Subject: netCDF in a mapfile In-Reply-To: <41EF80DF.7070308@cls.fr> Message-ID: On Thu, 20 Jan 2005 10:58:55 +0100, Tony Jolibois wrote: > Hi all, > > I try to display netCDF file with the GDAL driver, but no succeed. > > The gdalinfo give a good response, but I don't know how I can specifie my > variable and the depth for the layer in the mapfile (it is a 3 dimension > variable). > Can anyone help me ? > > Thanks in advance, > Tony > > gdal from CVS today > mapserver 4.4.1 > on linux AS > > gdalinfo : > Driver: netCDF/network Common Data Format > Size is 8, 129 Tony, I doubt that the above is really a meaningful response in this case. I think GDAL is picking the wrong dimension for x. The netCDF driver also doesn't handle multiple variables in one netCDF file gracefully. As it happens, you are once again operating on the frontier I am interested in advancing. In particular, I am interested in improving the netCDF driver. Would you mind pointing me to the netCDF file in question so I can try and use it as an example while I work on the driver. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From stigmata_blackangel at YAHOO.COM Fri Jan 21 13:18:20 2005 From: stigmata_blackangel at YAHOO.COM (Gregor Mosheh) Date: Fri, 21 Jan 2005 13:18:20 -0800 Subject: here's a trick to make MapServer URLs shorter Message-ID: I came up with a solution that I thought would be of interest to everybody, so here it is. It seems to work well in all the cases we've tested, but of course any feedback is welcome. Problem: MapServer URLs are horribly long, what with all the program= and map= and mode= stuff in the query string. Solution: Set up an Apache handler and a wrapper script, so that an URL pointing to a .map file causes MapServer to run instead. This is a CGI program. Put it into your cgi-bin directory and chmod it. And you'll need to fix a few of the paths to match your own installation. #!/bin/sh # if there's no query string, make a basic one # assuming they want browse mode if [ "$QUERY_STRING" = "" ]; then QUERY_STRING="mode=browse&program=/cgi-bin/mapserv.cgi" fi export QUERY_STRING # the URL they gave is the URL to the mapfile # appending the mapfile to the query string # helps with browse mode MS_MAPFILE=$PATH_TRANSLATED export MS_MAPFILE QUERY_STRING=$QUERY_STRING"&map=$PATH_TRANSLATED" # now just run MapServer now exec /usr/local/apache/cgi-bin/mapserv.cgi Then, in Apache's httpd.conf file, set up a handler. Anything with a .map extension gets sent to that wrapper. # make MapServer mapfiles "executable" Action mapfilewrapper /cgi-bin/mapfilewrappper.cgi AddHandler mapfilewrapper .map So now instead of this: http://server/cgi-bin/mapserv?map=/home/bob/public_html/maps/foo.map&mode=browse&program=/cgi-bin/mapserv You should be able to do this: http://server/~bob/foo.map __________________________________ Do you Yahoo!? All your favorites on one personal page ? Try My Yahoo! http://my.yahoo.com From fwarmerdam at GMAIL.COM Fri Jan 21 13:22:58 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri, 21 Jan 2005 16:22:58 -0500 Subject: meteosat epsg projection code In-Reply-To: Message-ID: On Wed, 19 Jan 2005 23:04:13 +0000, Nuno GIL wrote: > dear listers, > we are trying to use some meteosat 2nd generation imagery with > mapserver but we cannot determine successfully its epsg projection > code. > did anyone work with this kind of imagery before? can anyone help us > with the answer? > we've looked around on the Meteosat site - it only refers to the > images being rectified to > look like the satellite is located above 0 deg latitude, 0 deg longitude. Nuno, I also recently did some investigation and was unable to find any mention of meteosat in EPSG or PROJ.4. If you find a PROJ.4 way of performing it I would appreciate hearing it but I suspect you are out of luck. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From mathieuparent at USERS.SOURCEFORGE.NET Fri Jan 21 14:00:08 2005 From: mathieuparent at USERS.SOURCEFORGE.NET (Mathieu Parent) Date: Fri, 21 Jan 2005 23:00:08 +0100 Subject: Attempt to open a RASTER layer, but this is only supported after a raster query Message-ID: Hi all, when i try to show an ogr raster, i got this: msRASTERLayerOpen(): Attempt to open a RASTER layer, but this is only supported after a raster query. Best regards Mathieu My .map file: MAP #... LAYER CONNECTION "http://gisdata.usgs.net:80/servlet/com.esri.wms.Esrimap?SERVICENAME=133urban&REASPECT=false&REQUEST=map" CONNECTIONTYPE WMS DATA "" GROUP "raster" MAXSCALE 0 METADATA "wms_name" "UA_ORTHO_302_01" "wms_format" "jpeg" "wms_server_version" "1.0.0" "wms_group_title" "Imagery" "wms_title" "USGS Urban Color Ortho 2002" END MINSCALE 0 NAME "wms_820" PROJECTION "init=epsg:32716" END SIZEUNITS PIXELS STATUS ON TOLERANCE 0 TOLERANCEUNITS PIXELS TRANSPARENCY 100 TYPE RASTER UNITS METERS END END From mathieuparent at USERS.SOURCEFORGE.NET Fri Jan 21 14:20:29 2005 From: mathieuparent at USERS.SOURCEFORGE.NET (Mathieu Parent) Date: Fri, 21 Jan 2005 23:20:29 +0100 Subject: [Fwd: Re: Attempt to open a RASTER layer, but this is only supported after a raster query] Message-ID: -------- Message original -------- Sujet: Re: Attempt to open a RASTER layer, but this is only supported after a raster query Date: Fri, 21 Jan 2005 16:14:53 -0600 De: Howard Butler Pour: Mathieu Parent R?f?rences: Mattieu, You need to set a wms_extent in the METADATA to prevent MapServer from trying to query for one. See http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1118 for more detail. Howard > Hi all, > when i try to show an ogr raster, i got this: > > msRASTERLayerOpen(): Attempt to open a RASTER layer, but this is only > supported after a raster query. > > Best regards > Mathieu > > > > My .map file: > > MAP > #... > > LAYER > CONNECTION > "http://gisdata.usgs.net:80/servlet/com.esri.wms.Esrimap?SERVICENAME=133urban&REASPECT=false&REQUEST=map" > CONNECTIONTYPE WMS > DATA "" > GROUP "raster" > MAXSCALE 0 > METADATA > "wms_name" "UA_ORTHO_302_01" > "wms_format" "jpeg" > "wms_server_version" "1.0.0" > "wms_group_title" "Imagery" > "wms_title" "USGS Urban Color Ortho 2002" > END > MINSCALE 0 > NAME "wms_820" > PROJECTION > "init=epsg:32716" > END > SIZEUNITS PIXELS > STATUS ON > TOLERANCE 0 > TOLERANCEUNITS PIXELS > TRANSPARENCY 100 > TYPE RASTER > UNITS METERS > END > > END From kenlord at GMAIL.COM Fri Jan 21 14:22:53 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Fri, 21 Jan 2005 14:22:53 -0800 Subject: here's a trick to make MapServer URLs shorter In-Reply-To: <20050121211820.72968.qmail@web53803.mail.yahoo.com> Message-ID: Nice job Gregor, My URL's do get pretty crazy ... there's a lot of things you can do with URL's that all those php'ers may not know about or may think only they can do, and your tool looks to streamline the system nicely. Is there a way to make this work through IIS? I use some simple ASP pages in my templates that redirect to mapserver to add power to the URL system, for example to switch between different templates, different map sizes, to go to specific pre-set map views, to turn on/off all map layers within sets of layers without using the 'group' parameter, or to turn off certain layers when other layers are activated without using the cryptic 'requires' parameter ... Or to process query results. An ASP link parsed in a query results page can lead to any kind of dynamically generated query result content you want this way. ... as I'm sure all you php'ers can do too in your own way. Cheers, Ken Lord Vancouver BC On Fri, 21 Jan 2005 13:18:20 -0800, Gregor Mosheh wrote: > I came up with a solution that I thought would be of > interest to everybody, so here it is. It seems to work > well in all the cases we've tested, but of course any > feedback is welcome. > > Problem: MapServer URLs are horribly long, what with > all the program= and map= and mode= stuff in the query > string. > > Solution: Set up an Apache handler and a wrapper > script, so that an URL pointing to a .map file causes > MapServer to run instead. > > This is a CGI program. Put it into your cgi-bin > directory and chmod it. And you'll need to fix a few > of the paths to match your own installation. > > #!/bin/sh > > # if there's no query string, make a basic one > # assuming they want browse mode > if [ "$QUERY_STRING" = "" ]; then > > QUERY_STRING="mode=browse&program=/cgi-bin/mapserv.cgi" > fi > export QUERY_STRING > # the URL they gave is the URL to the mapfile > # appending the mapfile to the query string > # helps with browse mode > MS_MAPFILE=$PATH_TRANSLATED > export MS_MAPFILE > QUERY_STRING=$QUERY_STRING"&map=$PATH_TRANSLATED" > # now just run MapServer now > exec /usr/local/apache/cgi-bin/mapserv.cgi > > Then, in Apache's httpd.conf file, set up a handler. > Anything with a .map extension gets sent to that > wrapper. > > # make MapServer mapfiles "executable" > Action mapfilewrapper /cgi-bin/mapfilewrappper.cgi > AddHandler mapfilewrapper .map > > So now instead of this: > http://server/cgi-bin/mapserv?map=/home/bob/public_html/maps/foo.map&mode=browse&program=/cgi-bin/mapserv > > You should be able to do this: > http://server/~bob/foo.map > > > __________________________________ > Do you Yahoo!? > All your favorites on one personal page ? Try My Yahoo! > http://my.yahoo.com > From rjames57 at YAHOO.COM Fri Jan 21 14:45:52 2005 From: rjames57 at YAHOO.COM (Randy James) Date: Fri, 21 Jan 2005 14:45:52 -0800 Subject: [Fwd: Re: Attempt to open a RASTER layer, but this is only supported after a raster query] In-Reply-To: <41F1802D.4060603@users.sourceforge.net> Message-ID: I get the same error message when trying to display a local JPG file not a wms layer. It started after I upgraded to version nightly jan 6, 2005. The layer is reprojected to albers equal area. I can display TIF files ok its just the JPG file that has a problem. my mapfile clips PROJECTION "proj=utm" "ellps=GRS80" "zone=10" "north" "no_defs" END and the layer Layer NAME "hillshade" group "hillshade" Type RASTER MAXSCALE 1020000 STATUS on PROCESSING "COLOR_MATCH_THRESHOLD=4" PROCESSING "DITHER=YES" TRANSPARENCY 100 TILEINDEX "hillshade" TILEITEM "LOCATION" PROJECTION proj=aea ellps=GRS80 lat_1=50.0 lat_2=58.5 lat_0=45.0 lon_0=-126.0 x_0=1000000.0 y_0=0.0 end end Randy --- Mathieu Parent wrote: > -------- Message original -------- > Sujet: Re: Attempt to open a RASTER layer, but this is only supported > after a raster query > Date: Fri, 21 Jan 2005 16:14:53 -0600 > De: Howard Butler > Pour: Mathieu Parent > R?f?rences: > > > > Mattieu, > > You need to set a wms_extent in the METADATA to prevent MapServer from > trying to query for one. See > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1118 for more detail. > > Howard > > > Hi all, > > when i try to show an ogr raster, i got this: > > > > msRASTERLayerOpen(): Attempt to open a RASTER layer, but this is only > > supported after a raster query. > > > > Best regards > > Mathieu > > > > > > > > My .map file: > > > > MAP > > #... > > > > LAYER > > CONNECTION > > > "http://gisdata.usgs.net:80/servlet/com.esri.wms.Esrimap?SERVICENAME=133urban&REASPECT=false&REQUEST=map" > > CONNECTIONTYPE WMS > > DATA "" > > GROUP "raster" > > MAXSCALE 0 > > METADATA > > "wms_name" "UA_ORTHO_302_01" > > "wms_format" "jpeg" > > "wms_server_version" "1.0.0" > > "wms_group_title" "Imagery" > > "wms_title" "USGS Urban Color Ortho 2002" > > END > > MINSCALE 0 > > NAME "wms_820" > > PROJECTION > > "init=epsg:32716" > > END > > SIZEUNITS PIXELS > > STATUS ON > > TOLERANCE 0 > > TOLERANCEUNITS PIXELS > > TRANSPARENCY 100 > > TYPE RASTER > > UNITS METERS > > END > > > > END > __________________________________ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail From jmckenna at DMSOLUTIONS.CA Fri Jan 21 15:03:28 2005 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Fri, 21 Jan 2005 18:03:28 -0500 Subject: [Fwd: Re: Attempt to open a RASTER layer, but this is only supported after a raster query] In-Reply-To: <20050121224552.29131.qmail@web30704.mail.mud.yahoo.com> Message-ID: I have also noticed this same error in my MS_ERRORFILE. The rasters display properly, but this error occurs...hmmm. jeff >> >>Mattieu, >> >>You need to set a wms_extent in the METADATA to prevent MapServer from >>trying to query for one. See >>http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1118 for more detail. >> >>Howard >> -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From flavio at TYDAC.CH Sat Jan 22 02:37:15 2005 From: flavio at TYDAC.CH (Flavio Hendry) Date: Sat, 22 Jan 2005 11:37:15 +0100 Subject: Mapinfo labels In-Reply-To: Message-ID: hi herman as follows (see labelitem, labelangleitem): LAYER NAME "Grundst?cksnummern GB" TYPE ANNOTATION MINSCALE 0 MAXSCALE 2000 STATUS ON CONNECTIONTYPE OGR CONNECTION "av/GP_Grundstuecksnummern_GB.TAB" LABELITEM "OGR:LabelText" LABELANGLEITEM "OGR:LabelAngle" SIZEUNITS meters CLASS NAME "GP_Grundstuecksnummern_GB" COLOR -1 -1 -1 LABEL ANTIALIAS TRUE TYPE TRUETYPE FONT arial POSITION cc SIZE 2 COLOR 0 0 0 END END PROJECTION "init=world:CH1903" END END Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at 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 ---------------------------------------------------------------- -----Original Message----- From: Herman Teo To: MAPSERVER-USERS at LISTS.UMN.EDU Date: Fri, 21 Jan 2005 13:52:22 -0600 Subject: [UMN_MAPSERVER-USERS] Mapinfo labels > Hi. I am in the process of trying to display Mapinfo .tab maps with > the > labels on it using mapserver. I am able to display the street lines > just > fine but I'm having a hard time with the labels. Could someone assist > me in > this? Thanks a lot. > > > Herman > > Attached .map file: > # > # Start of map file > # > NAME I_ST > STATUS ON > SIZE 500 500 > SYMBOLSET etc/symbols_mapinfo.sym > EXTENT 106.686319 -6.189152 106.891758 -6.096436 > UNITS DD > IMAGECOLOR 255 255 255 > FONTSET etc/fonts.txt > > # > # Start of web interface definition > # > WEB > # > # On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the > root > # of the drive where the .MAP file resides. > # > IMAGEPATH "/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > # LOG "/tmp/gmap.log" > > TEMPLATE demo.html > METADATA > "TITLE" "MapServer Test" > END > 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 0 0 0 > SIZE SMALL > END > SIZE 150 4 > COLOR 255 255 255 > BACKGROUNDCOLOR 0 0 0 > OUTLINECOLOR 0 0 0 > UNITS kilometers > INTERVALS 3 > STATUS ON > END > > # > # Querymap settings > # > # Style is one of NORMAL, HILITE, or SELECTED > # > > QUERYMAP > STYLE HILITE > COLOR 255 0 0 > END > > # > # Start of layer definitions > # > > LAYER > NAME Street_Map > TYPE LINE > STATUS DEFAULT > CONNECTIONTYPE OGR > CONNECTION "C:\Indo\INDON_ST.TAB" > STYLEITEM "AUTO" > CLASS > NAME "Street_Map" > END > END # Layer > > LAYER > NAME Street_Name > STATUS DEFAULT > TYPE ANNOTATION > CONNECTIONTYPE OGR > CONNECTION "C:\Indo\INDON_ST.TAB" > STYLEITEM "AUTO" > CLASS > NAME "Street_Name" > END > END > > > END #map From richard.greenwood at GMAIL.COM Sat Jan 22 05:45:55 2005 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Sat, 22 Jan 2005 06:45:55 -0700 Subject: here's a trick to make MapServer URLs shorter In-Reply-To: <55dd01fa05012114221cb45371@mail.gmail.com> Message-ID: On Fri, 21 Jan 2005 14:22:53 -0800, Ken Lord wrote: > Nice job Gregor, > > My URL's do get pretty crazy ... there's a lot of things you can do > with URL's that all those php'ers may not know about or may think only > they can do, and your tool looks to streamline the system nicely. > > Is there a way to make this work through IIS? Here are 3 ASP examples (2 jScript, 1 VB). <%@language=JScript%> <% // Server.ScriptTimeout = 360 var qstring = Request.ServerVariables("QUERY_STRING") var host= Request.ServerVariables("HTTP_HOST") var uri = "http://"+host+"/mapserver/mapserv.exe?map=/inetpub/wwwroot/mapserver/rejh/rejh.map&" + qstring; var objHTTP objHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP") objHTTP.open("GET", uri, false); objHTTP.send(); Response.ContentType = objHTTP.getResponseHeader("content-type"); Response.BinaryWrite (objHTTP.responseBody); %> <% /* JScript example from http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk30/htm/xmobjxmldomserverxmlhttp_using_directly.asp var objSrvHTTP; objSrvHTTP = Server.CreateObject ("MSXML2.ServerXMLHTTP"); objSrvHTTP.open ("GET","http://someotherserver/respond.asp", false); objSrvHTTP.send (); Response.ContentType = "text/xml"; Response.Write (objHTTP.responseXML.xml); */ %> <% /* VB example from: http://mapserver.gis.umn.edu/doc40/wms-server-howto.html#onlineresourceurl Server.ScriptTimeout = 360 strRequest = Request.ServerVariables("QUERY_STRING") strURL = "http://myserver/cgi-bin/mapserv.exe?map=C:\Inetpub\wwwroot\WMS\mymap.map&" & strRequest Dim objHTTP Set objHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP") objHTTP.open "GET", strURL, false objHTTP.send "" Response.ContentType = objHTTP.getResponseHeader("content-type") Response.BinaryWrite objHTTP.responseBody Set objHTTP = Nothing */ %> Regards, -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From covariance at SHAW.CA Sat Jan 22 06:51:15 2005 From: covariance at SHAW.CA (Bob Bruce - Programmer) Date: Sat, 22 Jan 2005 08:51:15 -0600 Subject: Will dBox work with Client-Side Image Maps? I'm having trouble with this. Message-ID: Hi: I am developing a website where I want to have a client side image map and also use the dBox JavaScript classes to control map manipulation. Right now it works in IE but when I move the cursor over the hotspots on the image then IE displays a JavaScript error on the status bar ("Error on age" - not too informative, eh?) but it does actually do the onMouseOver/onMouseOut actions. Unfortunately the other browsers that I've tried: Firefox, Netscape won't do the client-side image map functions although they will do the dBox functions. I had written my own zoom-box JavaScript functions before finding out how easy dBox was to use, my stuff is a bit flakey (the zoom box function doesn't drag the box reliably in all browsers) but it does work OK with the client side image maps. So I'm wondering if I'm doing something wrong in my use of dBox. the dBox version is at: http://www.hwps.ca/Mpages/indexMuralsMap.phtml my own version is at: http://www.hwps.ca/Mpages/indexMuralsMapBobBox.phtml thanks in advance for your help, Bob Bruce Winnipeg, Manitoba -------------- next part -------------- An HTML attachment was scrubbed... URL: From s.genoud at MKREIS.CH Sat Jan 22 07:02:19 2005 From: s.genoud at MKREIS.CH (Sacha Genoud) Date: Sat, 22 Jan 2005 16:02:19 +0100 Subject: Error Message Message-ID: Hi! Could someone explain me the follwing error message of Mapserver V4.4.1 dMapString(): Unable to access file. This appears when i click on Itascas initiallizing button. Thanks! Sacha Genoud -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomaschesky at YAHOO.COM Sat Jan 22 15:17:07 2005 From: thomaschesky at YAHOO.COM (Thomas Chesky) Date: Sat, 22 Jan 2005 15:17:07 -0800 Subject: 4.4 Windows Binaries (Oracle, SDE, and others) In-Reply-To: <6.1.2.0.2.20041130142159.01ba1220@hobu.mail.iastate.edu> Message-ID: Howard, I am trying to use your 4.4 windows binary because of the precompiled MrSid support. But I would also like to have the GDAL utilities, such as gdaltindex.exe available and compiled against the same, so that I can create index on MrSid files. Please advise wether those are downloadable from your site as well. Thanks Thomas Howard Butler wrote: All, I have compiled what I am calling the "kitchen sink" Windows binaries and made them available for download. They are located at . Here is a quick rundown of what is available for support: Outputs: GIF, JPEG, PNG, PDF, and SWF Inputs: GDAL, OGR, PostGIS, and Shapefile. (SDE and/or Oracle, depending on build type). Servers: WCS, WFS, and WMS Clients: WFS and WMS GDAL formats: NetCDF, JPEG2000, ECW, TIFF, GeoTIFF, & MrSID (plus many more) OGR formats: PostGIS, GML, & ODBC (plus many more) There are 4 build types, and you will need to choose the one that appropriately does what you want with respect to Oracle and SDE as the DLLs required to use those are not freely available. SDE and Oracle builds require your own DLLs. SDE was built against ArcSDE 9.0, and will require the 9.0 DLLs. Oracle was built against the Oracle 9.2 client libraries and will require a 9.2 oci.dll. MapScript Python MapScript for Python 2.3 and Java MapScript for JDK 1.5 are also available at this website in the same 4 configurations. The Java MapScript is known to pass the test cases that exist in CVS, but I am not a Java programmer, so I don't know of the rest of their utility. I'd be interested in hearing reports of how well they work for you. Congrats to all those who helped work on a great release. Howard --------------------------------- Do you Yahoo!? Yahoo! Search presents - Jib Jab's 'Second Term' -------------- next part -------------- An HTML attachment was scrubbed... URL: From lehrs at ERAU.EDU Sat Jan 22 15:37:43 2005 From: lehrs at ERAU.EDU (Steve Lehr) Date: Sat, 22 Jan 2005 18:37:43 -0500 Subject: PHP Highlight list of Parcels Passed In In-Reply-To: Message-ID: I'm trying to write some PHP that I can send extents and list of parcels to get it to highlight the parcels. I'd like to highlight all the found parcels in RED. My php gets a variable by post called parcels and contains at this time a semi colon delimited list of ids in the attribute column QPID of the parcels.dbf. LAYER NAME "selected_parcels" DATA parcels STATUS DEFAULT TYPE POLYGON CLASSITEM QPID CLASS EXPRESSION "/%parcels%/" COLOR 255 0 0 END END I've got my extents. I've got the list of parcels. Now I want to highlight the list of parcels with something like the below. But I have to do something in php to take that ; delimited list and the turn on all the matching attributes. (I belive its a QUERYMAP with MULTIPLE_SELECT) but I'm having trouble getting my brain around what I need to code - might someone have a sample. Thanks Steven Lehr Assistant Professor Freshmen Program College of Engineering Embry-Riddle Aeronautical University (LB159) 600 S. Clyde Morris Blvd. Daytona Beach, FL 32114-3900 386-226-7740 From agillesp at VT.EDU Sat Jan 22 16:04:32 2005 From: agillesp at VT.EDU (Abe Gillespie) Date: Sat, 22 Jan 2005 19:04:32 -0500 Subject: PHP Highlight list of Parcels Passed In In-Reply-To: Message-ID: For the red you need to setup the QUERYMAP. For the PHP it will be something like this: $target = use_appropriate_string_func_to_conver_semi_to_pipe($parcels); // $target should look like "1|2|3|4" ... where the numbers are the IDs. $layer = $map->getLayerByName("parcels"); $layer->queryByAttributes("parcel_id_field", "/".$target."/", MS_MULTIPLE); Also, don't forget to add the TEMPLATE "x" tag in your LAYER definition. I'm not a RegEx expert, so someone please put me in check if I'm leading Steven astray. -Abe On Jan 22, 2005, at 6:37 PM, Steve Lehr wrote: > I'm trying to write some PHP that I can send extents and list of > parcels to > get it to highlight the parcels. > > I'd like to highlight all the found parcels in RED. > > My php gets a variable by post called parcels and contains at this > time a > semi colon delimited list of ids in the attribute column QPID of the > parcels.dbf. > > LAYER > NAME "selected_parcels" > DATA parcels > STATUS DEFAULT > TYPE POLYGON > CLASSITEM QPID > CLASS > EXPRESSION "/%parcels%/" > COLOR 255 0 0 > END > END > > > I've got my extents. I've got the list of parcels. Now I want to > highlight > the list of parcels with something like the below. But I have to do > something in php to take that ; delimited list and the turn on all the > matching attributes. (I belive its a QUERYMAP with MULTIPLE_SELECT) > but I'm > having trouble getting my brain around what I need to code - might > someone > have a sample. > > Thanks > > Steven Lehr > Assistant Professor > Freshmen Program > College of Engineering > Embry-Riddle Aeronautical University (LB159) > 600 S. Clyde Morris Blvd. > Daytona Beach, FL 32114-3900 > 386-226-7740 > From agillesp at VT.EDU Sat Jan 22 17:01:22 2005 From: agillesp at VT.EDU (Abe Gillespie) Date: Sat, 22 Jan 2005 20:01:22 -0500 Subject: PHP Highlight list of Parcels Passed In In-Reply-To: Message-ID: If you go to: http://mapserver.gis.umn.edu/doc44/mapfile-reference.html And either search the page (if you don't know where to look) or click on the Map Object link you'll see that QUERYMAP is a child of MAP. So what you need is something like: MAP ... QUERYMAP COLOR 255 0 0 STYLE hilite END LAYER NAME "selected_parcels" ... END END -Abe On Jan 22, 2005, at 7:12 PM, Steve Lehr wrote: > Abe I've never used the QUERY MAP before, I tried putting it in the > layer > and it did not like that? > > My initial layer looks like: > > I changed my code to pass Pipe delimited. > > But I'm not quite certian I'm still getting what I need to do to my > .map. > > Thanks for the help..below is the layer repeated my EXPRESSION is > trashed I > realize. > >> LAYER >> NAME "selected_parcels" >> DATA parcels >> STATUS DEFAULT >> TYPE POLYGON >> CLASSITEM QPID >> CLASS >> EXPRESSION "/%parcels%/" >> COLOR 255 0 0 >> END >> END > > > Steven Lehr > Assistant Professor > Freshmen Program > College of Engineering > Embry-Riddle Aeronautical University (LB159) > 600 S. Clyde Morris Blvd. > Daytona Beach, FL 32114-3900 > 386-226-7740 > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > Behalf Of Abe Gillespie > Sent: Saturday, January 22, 2005 7:05 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] PHP Highlight list of Parcels Passed > In > > > For the red you need to setup the QUERYMAP. For the PHP it will be > something like this: > > $target = use_appropriate_string_func_to_conver_semi_to_pipe($parcels); > // $target should look like "1|2|3|4" ... where the numbers are the > IDs. > $layer = $map->getLayerByName("parcels"); > $layer->queryByAttributes("parcel_id_field", "/".$target."/", > MS_MULTIPLE); > > Also, don't forget to add the TEMPLATE "x" tag in your LAYER > definition. > > I'm not a RegEx expert, so someone please put me in check if I'm > leading Steven astray. > > -Abe > > On Jan 22, 2005, at 6:37 PM, Steve Lehr wrote: > >> I'm trying to write some PHP that I can send extents and list of >> parcels to >> get it to highlight the parcels. >> >> I'd like to highlight all the found parcels in RED. >> >> My php gets a variable by post called parcels and contains at this >> time a >> semi colon delimited list of ids in the attribute column QPID of the >> parcels.dbf. >> >> LAYER >> NAME "selected_parcels" >> DATA parcels >> STATUS DEFAULT >> TYPE POLYGON >> CLASSITEM QPID >> CLASS >> EXPRESSION "/%parcels%/" >> COLOR 255 0 0 >> END >> END >> >> >> I've got my extents. I've got the list of parcels. Now I want to >> highlight >> the list of parcels with something like the below. But I have to do >> something in php to take that ; delimited list and the turn on all the >> matching attributes. (I belive its a QUERYMAP with MULTIPLE_SELECT) >> but I'm >> having trouble getting my brain around what I need to code - might >> someone >> have a sample. >> >> Thanks >> >> Steven Lehr >> Assistant Professor >> Freshmen Program >> College of Engineering >> Embry-Riddle Aeronautical University (LB159) >> 600 S. Clyde Morris Blvd. >> Daytona Beach, FL 32114-3900 >> 386-226-7740 >> > From agillesp at VT.EDU Sat Jan 22 17:21:39 2005 From: agillesp at VT.EDU (Abe Gillespie) Date: Sat, 22 Jan 2005 20:21:39 -0500 Subject: PHP Highlight list of Parcels Passed In In-Reply-To: Message-ID: Something else I noticed. You shouldn't even have to setup a separate layer to show queried parcels (though there are ways to do this). I suggest starting out with one layer that renders queried and non-queried parcels at the same time. Once you get the hang of that then you can do two different layers (if you still even want to). Make the layer like this: LAYER NAME "parcels" DATA "parcels" STATUS on TYPE polygon CLASS OUTLINECOLOR 0 255 0 END TEMPLATE "x" # Must be present to query on (though "x" means absolutely nothing). END The above layer will render all your parcels green outline with hollow fill. Then when you use the PHP code to query it will render your queried parcels red. This assumes you have QUERYMAP setup correctly. -Abe On Jan 22, 2005, at 7:12 PM, Steve Lehr wrote: > Abe I've never used the QUERY MAP before, I tried putting it in the > layer > and it did not like that? > > My initial layer looks like: > > I changed my code to pass Pipe delimited. > > But I'm not quite certian I'm still getting what I need to do to my > .map. > > Thanks for the help..below is the layer repeated my EXPRESSION is > trashed I > realize. > >> LAYER >> NAME "selected_parcels" >> DATA parcels >> STATUS DEFAULT >> TYPE POLYGON >> CLASSITEM QPID >> CLASS >> EXPRESSION "/%parcels%/" >> COLOR 255 0 0 >> END >> END > > > Steven Lehr > Assistant Professor > Freshmen Program > College of Engineering > Embry-Riddle Aeronautical University (LB159) > 600 S. Clyde Morris Blvd. > Daytona Beach, FL 32114-3900 > 386-226-7740 > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > Behalf Of Abe Gillespie > Sent: Saturday, January 22, 2005 7:05 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] PHP Highlight list of Parcels Passed > In > > > For the red you need to setup the QUERYMAP. For the PHP it will be > something like this: > > $target = use_appropriate_string_func_to_conver_semi_to_pipe($parcels); > // $target should look like "1|2|3|4" ... where the numbers are the > IDs. > $layer = $map->getLayerByName("parcels"); > $layer->queryByAttributes("parcel_id_field", "/".$target."/", > MS_MULTIPLE); > > Also, don't forget to add the TEMPLATE "x" tag in your LAYER > definition. > > I'm not a RegEx expert, so someone please put me in check if I'm > leading Steven astray. > > -Abe > > On Jan 22, 2005, at 6:37 PM, Steve Lehr wrote: > >> I'm trying to write some PHP that I can send extents and list of >> parcels to >> get it to highlight the parcels. >> >> I'd like to highlight all the found parcels in RED. >> >> My php gets a variable by post called parcels and contains at this >> time a >> semi colon delimited list of ids in the attribute column QPID of the >> parcels.dbf. >> >> LAYER >> NAME "selected_parcels" >> DATA parcels >> STATUS DEFAULT >> TYPE POLYGON >> CLASSITEM QPID >> CLASS >> EXPRESSION "/%parcels%/" >> COLOR 255 0 0 >> END >> END >> >> >> I've got my extents. I've got the list of parcels. Now I want to >> highlight >> the list of parcels with something like the below. But I have to do >> something in php to take that ; delimited list and the turn on all the >> matching attributes. (I belive its a QUERYMAP with MULTIPLE_SELECT) >> but I'm >> having trouble getting my brain around what I need to code - might >> someone >> have a sample. >> >> Thanks >> >> Steven Lehr >> Assistant Professor >> Freshmen Program >> College of Engineering >> Embry-Riddle Aeronautical University (LB159) >> 600 S. Clyde Morris Blvd. >> Daytona Beach, FL 32114-3900 >> 386-226-7740 >> > From lehrs at ERAU.EDU Sat Jan 22 19:07:50 2005 From: lehrs at ERAU.EDU (Steve Lehr) Date: Sat, 22 Jan 2005 22:07:50 -0500 Subject: PHP Highlight list of Parcels Passed In In-Reply-To: <2189CA6E-6CDD-11D9-827E-000A957A0F9C@vt.edu> Message-ID: Abe: I appreciate the help, still not getting it though. I'm wondering if I need to draw out the map after rendering? I've sceen other posts but no real solutions... I'll start from scratch rather then trying to reuse something I have. If anyone else has a more complete example I'd really appreciate seeing it. Thanks Steven Lehr Assistant Professor Freshmen Program College of Engineering Embry-Riddle Aeronautical University (LB159) 600 S. Clyde Morris Blvd. Daytona Beach, FL 32114-3900 386-226-7740 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Abe Gillespie Sent: Saturday, January 22, 2005 8:22 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] PHP Highlight list of Parcels Passed In Something else I noticed. You shouldn't even have to setup a separate layer to show queried parcels (though there are ways to do this). I suggest starting out with one layer that renders queried and non-queried parcels at the same time. Once you get the hang of that then you can do two different layers (if you still even want to). Make the layer like this: LAYER NAME "parcels" DATA "parcels" STATUS on TYPE polygon CLASS OUTLINECOLOR 0 255 0 END TEMPLATE "x" # Must be present to query on (though "x" means absolutely nothing). END The above layer will render all your parcels green outline with hollow fill. Then when you use the PHP code to query it will render your queried parcels red. This assumes you have QUERYMAP setup correctly. -Abe On Jan 22, 2005, at 7:12 PM, Steve Lehr wrote: > Abe I've never used the QUERY MAP before, I tried putting it in the > layer > and it did not like that? > > My initial layer looks like: > > I changed my code to pass Pipe delimited. > > But I'm not quite certian I'm still getting what I need to do to my > .map. > > Thanks for the help..below is the layer repeated my EXPRESSION is > trashed I > realize. > >> LAYER >> NAME "selected_parcels" >> DATA parcels >> STATUS DEFAULT >> TYPE POLYGON >> CLASSITEM QPID >> CLASS >> EXPRESSION "/%parcels%/" >> COLOR 255 0 0 >> END >> END > > > Steven Lehr > Assistant Professor > Freshmen Program > College of Engineering > Embry-Riddle Aeronautical University (LB159) > 600 S. Clyde Morris Blvd. > Daytona Beach, FL 32114-3900 > 386-226-7740 > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > Behalf Of Abe Gillespie > Sent: Saturday, January 22, 2005 7:05 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] PHP Highlight list of Parcels Passed > In > > > For the red you need to setup the QUERYMAP. For the PHP it will be > something like this: > > $target = use_appropriate_string_func_to_conver_semi_to_pipe($parcels); > // $target should look like "1|2|3|4" ... where the numbers are the > IDs. > $layer = $map->getLayerByName("parcels"); > $layer->queryByAttributes("parcel_id_field", "/".$target."/", > MS_MULTIPLE); > > Also, don't forget to add the TEMPLATE "x" tag in your LAYER > definition. > > I'm not a RegEx expert, so someone please put me in check if I'm > leading Steven astray. > > -Abe > > On Jan 22, 2005, at 6:37 PM, Steve Lehr wrote: > >> I'm trying to write some PHP that I can send extents and list of >> parcels to >> get it to highlight the parcels. >> >> I'd like to highlight all the found parcels in RED. >> >> My php gets a variable by post called parcels and contains at this >> time a >> semi colon delimited list of ids in the attribute column QPID of the >> parcels.dbf. >> >> LAYER >> NAME "selected_parcels" >> DATA parcels >> STATUS DEFAULT >> TYPE POLYGON >> CLASSITEM QPID >> CLASS >> EXPRESSION "/%parcels%/" >> COLOR 255 0 0 >> END >> END >> >> >> I've got my extents. I've got the list of parcels. Now I want to >> highlight >> the list of parcels with something like the below. But I have to do >> something in php to take that ; delimited list and the turn on all the >> matching attributes. (I belive its a QUERYMAP with MULTIPLE_SELECT) >> but I'm >> having trouble getting my brain around what I need to code - might >> someone >> have a sample. >> >> Thanks >> >> Steven Lehr >> Assistant Professor >> Freshmen Program >> College of Engineering >> Embry-Riddle Aeronautical University (LB159) >> 600 S. Clyde Morris Blvd. >> Daytona Beach, FL 32114-3900 >> 386-226-7740 >> > From mtperry78 at SBCGLOBAL.NET Sat Jan 22 22:03:30 2005 From: mtperry78 at SBCGLOBAL.NET (Matthew Perry) Date: Sat, 22 Jan 2005 22:03:30 -0800 Subject: Export a Web Map Context document? Message-ID: Hello all, I have mapserver set up as a WMS server.... Is there a way to output a WMC (Web Map Context) document containing all of the layers in my mapfile at the default extent? So far I have tried 2 things with disappointing results: 1) PHP/Mapcript's $map->saveMapContext() method ... this only outputs layers that mapserver accesses as a WMS client (ie only *cascaded* WMS layers are shown). 2) adding "wms_getcontext_enabled" "1" to the map->web->metadata allows me to do a request=GetContext but I get the same result as (1). So for all you OGC gurus out there, Is there any way to convert a WMS-server-enabled mapfile OR a "Capabilities" XML to a WMC?? I guess the ideal solution would be to generate a WMC document based on the capabilties document. I suppose I could do it by hand but I'm just wondering if there is an easier way? Thanks alot, Matt Perry Humboldt State University From agillesp at VT.EDU Sat Jan 22 22:44:52 2005 From: agillesp at VT.EDU (Abe Gillespie) Date: Sun, 23 Jan 2005 01:44:52 -0500 Subject: PHP Highlight list of Parcels Passed In In-Reply-To: Message-ID: Ok, since this list has been so helpful and generous to me in the past, here is an exhaustive example. I hope this will finally get you going. Disclaimer: I'm doing this all from memory and w/o testing so there may be a few errors. Setup a map file like this: MAP NAME "Parcel Query" STATUS on EXTENT xmin ymin xmax ymax SIZE 300 300 SHAPEPATH "/data_path" IMAGETYPE png IMAGECOLOR 255 255 255 QUERYMAP STYLE hilite COLOR 255 0 0 END LAYER NAME "Parcels" DATA "parcels" CLASS OUTLINECOLOR 0 255 0 END TEMPLATE "x" END END Setup a web page like this: getLayerByName("parcels"); // Query. $layer->queryByAttributes("", "/".$parcel_ids."/", MS_MULTIPLE); // If you want to avoid errors when no matches are found use the ampersand // in the above statement like this: @$layer->queryByAttributes(); // Render an image and get its URL. $img = $map->drawQuery(); $url = $img->saveWebImage(MS_PNG, 1, 1, 0); $img->free(); ?> getNumResults() > 0) echo $layer->getNumResults()." parcels found."; else echo "No parcels found."; ?> Now that I look at it, the last thing you may have been missing was the mapObj::queryMap() method. Anyhow, I hope this helps. -Abe On Jan 22, 2005, at 10:07 PM, Steve Lehr wrote: > Abe: > > I appreciate the help, still not getting it though. I'm wondering if > I need > to draw out the map after rendering? I've sceen other posts but no > real > solutions... > > I'll start from scratch rather then trying to reuse something I have. > If > anyone else has a more complete example I'd really appreciate seeing > it. > > Thanks > > Steven Lehr > Assistant Professor > Freshmen Program > College of Engineering > Embry-Riddle Aeronautical University (LB159) > 600 S. Clyde Morris Blvd. > Daytona Beach, FL 32114-3900 > 386-226-7740 > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > Behalf Of Abe Gillespie > Sent: Saturday, January 22, 2005 8:22 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] PHP Highlight list of Parcels Passed > In > > > Something else I noticed. You shouldn't even have to setup a separate > layer to show queried parcels (though there are ways to do this). I > suggest starting out with one layer that renders queried and > non-queried parcels at the same time. Once you get the hang of that > then you can do two different layers (if you still even want to). Make > the layer like this: > > LAYER > NAME "parcels" > DATA "parcels" > STATUS on > TYPE polygon > CLASS > OUTLINECOLOR 0 255 0 > END > TEMPLATE "x" # Must be present to query on (though "x" means > absolutely nothing). > END > > The above layer will render all your parcels green outline with hollow > fill. Then when you use the PHP code to query it will render your > queried parcels red. This assumes you have QUERYMAP setup correctly. > > -Abe > > On Jan 22, 2005, at 7:12 PM, Steve Lehr wrote: > >> Abe I've never used the QUERY MAP before, I tried putting it in the >> layer >> and it did not like that? >> >> My initial layer looks like: >> >> I changed my code to pass Pipe delimited. >> >> But I'm not quite certian I'm still getting what I need to do to my >> .map. >> >> Thanks for the help..below is the layer repeated my EXPRESSION is >> trashed I >> realize. >> >>> LAYER >>> NAME "selected_parcels" >>> DATA parcels >>> STATUS DEFAULT >>> TYPE POLYGON >>> CLASSITEM QPID >>> CLASS >>> EXPRESSION "/%parcels%/" >>> COLOR 255 0 0 >>> END >>> END >> >> >> Steven Lehr >> Assistant Professor >> Freshmen Program >> College of Engineering >> Embry-Riddle Aeronautical University (LB159) >> 600 S. Clyde Morris Blvd. >> Daytona Beach, FL 32114-3900 >> 386-226-7740 >> >> -----Original Message----- >> From: UMN MapServer Users List >> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On >> Behalf Of Abe Gillespie >> Sent: Saturday, January 22, 2005 7:05 PM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] PHP Highlight list of Parcels >> Passed >> In >> >> >> For the red you need to setup the QUERYMAP. For the PHP it will be >> something like this: >> >> $target = >> use_appropriate_string_func_to_conver_semi_to_pipe($parcels); >> // $target should look like "1|2|3|4" ... where the numbers are the >> IDs. >> $layer = $map->getLayerByName("parcels"); >> $layer->queryByAttributes("parcel_id_field", "/".$target."/", >> MS_MULTIPLE); >> >> Also, don't forget to add the TEMPLATE "x" tag in your LAYER >> definition. >> >> I'm not a RegEx expert, so someone please put me in check if I'm >> leading Steven astray. >> >> -Abe >> >> On Jan 22, 2005, at 6:37 PM, Steve Lehr wrote: >> >>> I'm trying to write some PHP that I can send extents and list of >>> parcels to >>> get it to highlight the parcels. >>> >>> I'd like to highlight all the found parcels in RED. >>> >>> My php gets a variable by post called parcels and contains at this >>> time a >>> semi colon delimited list of ids in the attribute column QPID of the >>> parcels.dbf. >>> >>> LAYER >>> NAME "selected_parcels" >>> DATA parcels >>> STATUS DEFAULT >>> TYPE POLYGON >>> CLASSITEM QPID >>> CLASS >>> EXPRESSION "/%parcels%/" >>> COLOR 255 0 0 >>> END >>> END >>> >>> >>> I've got my extents. I've got the list of parcels. Now I want to >>> highlight >>> the list of parcels with something like the below. But I have to do >>> something in php to take that ; delimited list and the turn on all >>> the >>> matching attributes. (I belive its a QUERYMAP with MULTIPLE_SELECT) >>> but I'm >>> having trouble getting my brain around what I need to code - might >>> someone >>> have a sample. >>> >>> Thanks >>> >>> Steven Lehr >>> Assistant Professor >>> Freshmen Program >>> College of Engineering >>> Embry-Riddle Aeronautical University (LB159) >>> 600 S. Clyde Morris Blvd. >>> Daytona Beach, FL 32114-3900 >>> 386-226-7740 >>> >> > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 6275 bytes Desc: not available URL: From agillesp at VT.EDU Sat Jan 22 23:39:07 2005 From: agillesp at VT.EDU (Abe Gillespie) Date: Sun, 23 Jan 2005 02:39:07 -0500 Subject: PHP Highlight list of Parcels Passed In In-Reply-To: <48FF2B1D-6D0A-11D9-827E-000A957A0F9C@vt.edu> Message-ID: Um ... yeah, it's late and I'm tired. Please replace "ampersand" with "at symbol" at the appropriate place. :) -Abe On Jan 23, 2005, at 1:44 AM, Abe Gillespie wrote: > Ok, since this list has been so helpful and generous to me in the > past, here is an exhaustive example. I hope this will finally get you > going. Disclaimer: I'm doing this all from memory and w/o testing so > there may be a few errors. > > Setup a map file like this: > > MAP > NAME "Parcel Query" > STATUS on > EXTENT xmin ymin xmax ymax > SIZE 300 300 > SHAPEPATH "/data_path" > IMAGETYPE png > IMAGECOLOR 255 255 255 > > QUERYMAP > STYLE hilite > COLOR 255 0 0 > END > > LAYER > NAME "Parcels" > DATA "parcels" > CLASS > OUTLINECOLOR 0 255 0 > END > TEMPLATE "x" > END > END > > Setup a web page like this: > > > > $parcel_ids = "1|2|3|4|5"; > > if (PHP_OS == "WINNT" || PHP_OS == "WIN32") > dl("php_mapscript.dll"); > else > dl("php_mapscript.so"); > > $map = ms_newMapObj("parcels.map"); > $layer = $map->getLayerByName("parcels"); > > // Query. > $layer->queryByAttributes("", "/".$parcel_ids."/", MS_MULTIPLE); > // If you want to avoid errors when no matches are found use the > ampersand > // in the above statement like this: @$layer->queryByAttributes(); > > // Render an image and get its URL. > $img = $map->drawQuery(); > $url = $img->saveWebImage(MS_PNG, 1, 1, 0); > $img->free(); > ?> > > > > if ($layer->getNumResults() > 0) > echo $layer->getNumResults()." parcels found."; > else > echo "No parcels found."; > ?> > > > > Now that I look at it, the last thing you may have been missing was > the mapObj::queryMap() method. Anyhow, I hope this helps. > > -Abe > > On Jan 22, 2005, at 10:07 PM, Steve Lehr wrote: > >> Abe: >> >> I appreciate the help, still not getting it though. I'm wondering if >> I need >> to draw out the map after rendering? I've sceen other posts but no >> real >> solutions... >> >> I'll start from scratch rather then trying to reuse something I have. >> If >> anyone else has a more complete example I'd really appreciate seeing >> it. >> >> Thanks >> >> Steven Lehr >> Assistant Professor >> Freshmen Program >> College of Engineering >> Embry-Riddle Aeronautical University (LB159) >> 600 S. Clyde Morris Blvd. >> Daytona Beach, FL 32114-3900 >> 386-226-7740 >> >> -----Original Message----- >> From: UMN MapServer Users List >> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On >> Behalf Of Abe Gillespie >> Sent: Saturday, January 22, 2005 8:22 PM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] PHP Highlight list of Parcels >> Passed >> In >> >> >> Something else I noticed. You shouldn't even have to setup a separate >> layer to show queried parcels (though there are ways to do this). I >> suggest starting out with one layer that renders queried and >> non-queried parcels at the same time. Once you get the hang of that >> then you can do two different layers (if you still even want to). >> Make >> the layer like this: >> >> LAYER >> NAME "parcels" >> DATA "parcels" >> STATUS on >> TYPE polygon >> CLASS >> OUTLINECOLOR 0 255 0 >> END >> TEMPLATE "x" # Must be present to query on (though "x" means >> absolutely nothing). >> END >> >> The above layer will render all your parcels green outline with hollow >> fill. Then when you use the PHP code to query it will render your >> queried parcels red. This assumes you have QUERYMAP setup correctly. >> >> -Abe >> >> On Jan 22, 2005, at 7:12 PM, Steve Lehr wrote: >> >>> Abe I've never used the QUERY MAP before, I tried putting it in the >>> layer >>> and it did not like that? >>> >>> My initial layer looks like: >>> >>> I changed my code to pass Pipe delimited. >>> >>> But I'm not quite certian I'm still getting what I need to do to my >>> .map. >>> >>> Thanks for the help..below is the layer repeated my EXPRESSION is >>> trashed I >>> realize. >>> >>>> LAYER >>>> NAME "selected_parcels" >>>> DATA parcels >>>> STATUS DEFAULT >>>> TYPE POLYGON >>>> CLASSITEM QPID >>>> CLASS >>>> EXPRESSION "/%parcels%/" >>>> COLOR 255 0 0 >>>> END >>>> END >>> >>> >>> Steven Lehr >>> Assistant Professor >>> Freshmen Program >>> College of Engineering >>> Embry-Riddle Aeronautical University (LB159) >>> 600 S. Clyde Morris Blvd. >>> Daytona Beach, FL 32114-3900 >>> 386-226-7740 >>> >>> -----Original Message----- >>> From: UMN MapServer Users List >>> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On >>> Behalf Of Abe Gillespie >>> Sent: Saturday, January 22, 2005 7:05 PM >>> To: MAPSERVER-USERS at LISTS.UMN.EDU >>> Subject: Re: [UMN_MAPSERVER-USERS] PHP Highlight list of Parcels >>> Passed >>> In >>> >>> >>> For the red you need to setup the QUERYMAP. For the PHP it will be >>> something like this: >>> >>> $target = >>> use_appropriate_string_func_to_conver_semi_to_pipe($parcels); >>> // $target should look like "1|2|3|4" ... where the numbers are the >>> IDs. >>> $layer = $map->getLayerByName("parcels"); >>> $layer->queryByAttributes("parcel_id_field", "/".$target."/", >>> MS_MULTIPLE); >>> >>> Also, don't forget to add the TEMPLATE "x" tag in your LAYER >>> definition. >>> >>> I'm not a RegEx expert, so someone please put me in check if I'm >>> leading Steven astray. >>> >>> -Abe >>> >>> On Jan 22, 2005, at 6:37 PM, Steve Lehr wrote: >>> >>>> I'm trying to write some PHP that I can send extents and list of >>>> parcels to >>>> get it to highlight the parcels. >>>> >>>> I'd like to highlight all the found parcels in RED. >>>> >>>> My php gets a variable by post called parcels and contains at this >>>> time a >>>> semi colon delimited list of ids in the attribute column QPID of the >>>> parcels.dbf. >>>> >>>> LAYER >>>> NAME "selected_parcels" >>>> DATA parcels >>>> STATUS DEFAULT >>>> TYPE POLYGON >>>> CLASSITEM QPID >>>> CLASS >>>> EXPRESSION "/%parcels%/" >>>> COLOR 255 0 0 >>>> END >>>> END >>>> >>>> >>>> I've got my extents. I've got the list of parcels. Now I want to >>>> highlight >>>> the list of parcels with something like the below. But I have to do >>>> something in php to take that ; delimited list and the turn on all >>>> the >>>> matching attributes. (I belive its a QUERYMAP with MULTIPLE_SELECT) >>>> but I'm >>>> having trouble getting my brain around what I need to code - might >>>> someone >>>> have a sample. >>>> >>>> Thanks >>>> >>>> Steven Lehr >>>> Assistant Professor >>>> Freshmen Program >>>> College of Engineering >>>> Embry-Riddle Aeronautical University (LB159) >>>> 600 S. Clyde Morris Blvd. >>>> Daytona Beach, FL 32114-3900 >>>> 386-226-7740 >>>> >>> >> -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 6448 bytes Desc: not available URL: From sedatacemoglu at GMAIL.COM Sun Jan 23 03:19:58 2005 From: sedatacemoglu at GMAIL.COM (Sedat Acemoglu) Date: Sun, 23 Jan 2005 13:19:58 +0200 Subject: Error Message In-Reply-To: <000a01c50093$5f3a0e80$3101a8c0@laptop> Message-ID: Hi , I finally could not resist using MapServer. However I have a problem. I use windows binaries. I use MapSurfer as client and i get premature end of script error under Apache. Please Advise. Sedat From superbla3000 at GMX.NET Sun Jan 23 05:46:39 2005 From: superbla3000 at GMX.NET (joerg pfeiffer) Date: Sun, 23 Jan 2005 14:46:39 +0100 Subject: how big is image from wms Message-ID: hello, I connect to a wms to get a satellite image. The output of this image is jpg and alway round about 70kb. But how much kb has this image, when it comes from the wms to my ms? The same? bigger? How do I find out? best regards joerg From dmorissette at DMSOLUTIONS.CA Fri Jan 21 10:09:30 2005 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Fri, 21 Jan 2005 13:09:30 -0500 Subject: Cache of WFS GML files In-Reply-To: <23496.195.86.243.193.1106129727.squirrel@195.86.243.193> Message-ID: Martin van Dijken wrote: > > Recently I've been asked to add some extra query abilities to the website > and also to the feature server. Adding this ability creates urls of large > lengths. I have one example that is 360 chars long. In this case and > others, mapserver's behaviour to cache GML on the file system becomes a > huge problem. Suddenly all my maprequests fail with the message "cannot > create file [url]". > Which version of MapServer are you using? The current release (4.4) creates a hash with the WFS GetFeature URL and uses that as the filename (instead of using the whole URL like older versions did). If there is a case where it doesn't do the right thing then please let us know via a bug. Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From gerry.creager at TAMU.EDU Sun Jan 23 07:27:06 2005 From: gerry.creager at TAMU.EDU (Gerry Creager N5JXS) Date: Sun, 23 Jan 2005 09:27:06 -0600 Subject: Time to upgrade... Message-ID: Is there a quick'n'dirty list of recommended 'configure' settings for *nix installations? Last time I compiled MS, I basically followed the recipe for RedHat 8 and MS 3.7... I suspect that's sorta dated. We're gonna need WCS for radar and satellites real soon! gerry -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Page: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From kenlord at GMAIL.COM Sun Jan 23 13:52:24 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Sun, 23 Jan 2005 13:52:24 -0800 Subject: here's a trick to make MapServer URLs shorter In-Reply-To: Message-ID: Nice, thanks RIchard On Sat, 22 Jan 2005 06:45:55 -0700, Richard Greenwood wrote: > On Fri, 21 Jan 2005 14:22:53 -0800, Ken Lord wrote: > > Nice job Gregor, > > > > My URL's do get pretty crazy ... there's a lot of things you can do > > with URL's that all those php'ers may not know about or may think only > > they can do, and your tool looks to streamline the system nicely. > > > > Is there a way to make this work through IIS? > > Here are 3 ASP examples (2 jScript, 1 VB). > > <%@language=JScript%> > <% > // Server.ScriptTimeout = 360 > var qstring = Request.ServerVariables("QUERY_STRING") > var host= Request.ServerVariables("HTTP_HOST") > var uri = "http://"+host+"/mapserver/mapserv.exe?map=/inetpub/wwwroot/mapserver/rejh/rejh.map&" > + qstring; > var objHTTP > objHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP") > objHTTP.open("GET", uri, false); > objHTTP.send(); > Response.ContentType = objHTTP.getResponseHeader("content-type"); > Response.BinaryWrite (objHTTP.responseBody); > %> > > <% > /* > JScript example from > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk30/htm/xmobjxmldomserverxmlhttp_using_directly.asp > > var objSrvHTTP; > objSrvHTTP = Server.CreateObject ("MSXML2.ServerXMLHTTP"); > objSrvHTTP.open ("GET","http://someotherserver/respond.asp", false); > objSrvHTTP.send (); > Response.ContentType = "text/xml"; > Response.Write (objHTTP.responseXML.xml); > */ > %> > > <% > /* > VB example from: > http://mapserver.gis.umn.edu/doc40/wms-server-howto.html#onlineresourceurl > > Server.ScriptTimeout = 360 > strRequest = Request.ServerVariables("QUERY_STRING") > strURL = "http://myserver/cgi-bin/mapserv.exe?map=C:\Inetpub\wwwroot\WMS\mymap.map&" > & strRequest > Dim objHTTP > Set objHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP") > objHTTP.open "GET", strURL, false > objHTTP.send "" > Response.ContentType = objHTTP.getResponseHeader("content-type") > Response.BinaryWrite objHTTP.responseBody > Set objHTTP = Nothing > */ > %> > > Regards, > -- > Richard Greenwood > richard.greenwood at gmail.com > www.greenwoodmap.com > -- ============================== Ken Lord B.Sc., A.Dipl.T.H. 7488 Magnolia Terrace Burnaby BC, V5E 4L1 604-777-2171 kenlord at gmail.com kenlord at email.com klord at bgcengineering.com From tylermitchell at SHAW.CA Sun Jan 23 20:57:44 2005 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Sun, 23 Jan 2005 20:57:44 -0800 Subject: Time to upgrade... In-Reply-To: <41F3C24A.1080108@tamu.edu> Message-ID: I generally have two or three versions of mapserver all compiled at the same time. This helps me keep older client's on a platform that works while mucking about with more current/cvs builds. The approach I take is to run configure without any parameters and see what it picks up. Then work through the ones you really want/need building up a more complex configure statement. I store mine in a text file that I run so that I can always see what I did last time. I don't think you're going to have much of a different scenario than you followed last time, maybe a few more dependencies and a few more options? Tyler On January 23, 2005 07:27 am, Gerry Creager N5JXS wrote: > Is there a quick'n'dirty list of recommended 'configure' settings for > *nix installations? Last time I compiled MS, I basically followed the > recipe for RedHat 8 and MS 3.7... I suspect that's sorta dated. > > We're gonna need WCS for radar and satellites real soon! > > gerry > -- > Gerry Creager -- gerry.creager at tamu.edu > Texas Mesonet -- AATLT, Texas A&M University > Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 > Page: 979.228.0173 > Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From jacob.delfos at MAUNSELL.COM Sun Jan 23 23:04:05 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Mon, 24 Jan 2005 15:04:05 +0800 Subject: mapimages have different hue (off-colour) Message-ID: Hi All, Got an interesting problem, which I hope someone recognises; My mapimage has changed hue in the last weeks. I am not sure what I changed to cause this. Perhaps an external program changed something about how my computer creates images. However, even if I restore the gdal12.dll file that I used previously (or any other of the many versions I have), my image is still off-colour. It is greenish/yellowish compared to the normal colour. It is still 24bit jpeg, though. But the mapimages from all php_mapscript based sites that I run from this machine have suddenly got this greenish tint. I suspect it may be something about the overal system, because I once noticed how different machines (a win2k desktop, and an XP laptop) generated slightly differently coloured mapimages (different hue, different saturation), even though both machines were installed with the exact same mapserver files. I tried running the site using a browser on the host and on a different machine, but both images look greenish. Does anyone know what could affect the hue of the mapimage? Something global? regards, Jacob JACOB DELFOS SPATIAL INFORMATION ANALYST Maunsell Australia Pty Ltd 629 Newcastle Street, WA 6007 PO Box 81, WA 6902 Leederville Western Australia ABN 20 093 846 925 Tel + 61 8 9281 6185 Fax + 61 8 9281 6297 jacob.delfos at maunsell.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From raphael.teixeira at GMAIL.COM Mon Jan 24 02:49:08 2005 From: raphael.teixeira at GMAIL.COM (Raphael Teixeira) Date: Mon, 24 Jan 2005 07:49:08 -0300 Subject: Mapscript Message-ID: /usr/sbin/httpd: relocation error: /usr/lib/php/extensions/php_mapscript.so: undefined symbol: php_sprintf -- Raphael da Silva Teixeira Sun Certified Programmer for the Java 2 Plataform 1.4 Sun Certified Web Component Developer for the Java 2 Platform, Enterprise Edition Tecn?logo em Processamento de Dados - UEG Mestrando em Inform?tica - UNB From raphael.teixeira at GMAIL.COM Mon Jan 24 02:50:52 2005 From: raphael.teixeira at GMAIL.COM (Raphael Teixeira) Date: Mon, 24 Jan 2005 07:50:52 -0300 Subject: Mapscript Message-ID: Hello Folks, I'm trying to use mapscript in a machine with slackware 10 and after following all steps to compile mapserver with support mapscript i'm getting the following error: /usr/sbin/httpd: relocation error: /usr/lib/php/extensions/php_mapscript.so: undefined symbol: php_sprintf Can anybody help me?? Thank's -- Raphael da Silva Teixeira Sun Certified Programmer for the Java 2 Plataform 1.4 Sun Certified Web Component Developer for the Java 2 Platform, Enterprise Edition Tecn?logo em Processamento de Dados - UEG Mestrando em Inform?tica - UNB From constantin.a.cristian at GMAIL.COM Mon Jan 24 05:13:11 2005 From: constantin.a.cristian at GMAIL.COM (Constantin Cristian) Date: Mon, 24 Jan 2005 15:13:11 +0200 Subject: Fw: Mapserver Flash/SWF question Message-ID: I'm using the ms4w from mapservser: E:\ms4w\Apache\cgi-bin>mapserv -v MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLI ENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=POSTGIS IN PUT=OGR INPUT=GDAL INPUT=SHAPEFILE and I have the following output options in my map file: OUTPUTFORMAT NAME swf DRIVER "swf" MIMETYPE "application/x-shockwave-flash" EXTENSION "swf" IMAGEMODE PC256 FORMATOPTION "OUTPUT_MOVIE=SINGLE" END IMAGETYPE swf If I try to run this command: E:\ms4w\Apache\cgi-bin>mapserv QUERY_STRING="map=/ms4w/apps/work/romaniag.map&VE RSION=1.1.0&REQUEST=GetMap&SRS=EPSG:4326&BBOX=22.9633389261745,47.3965604026846, 24.0539429530201,48.4871644295302&WIDTH=596&HEIGHT=596&FORMAT=SWF&BGCOLOR=0xFFFF FF&EXCEPTIONS=INIMAGE&WRAPDATELINE=false&LAYERS=Romania,Bucuresti&TRANSPARENT=tr ue" It says: Content-type: application/x-shockwave-flash then the program exits without saying anything. If I change FORMAT=SWF with FORMAT=PNG I get a lot of binary data (it dumps the picture in my console). Does anyone have any idea what am I doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From n_faust at INFORMATIK.UNI-KL.DE Mon Jan 24 06:25:01 2005 From: n_faust at INFORMATIK.UNI-KL.DE (Nicole Faust) Date: Mon, 24 Jan 2005 15:25:01 +0100 Subject: Example Maps In-Reply-To: <41F142D4.1090602@gmx.net> Message-ID: Hello Joerg, > so is mapserver running? Can you perform those simple tests, like > calling the cgi from a browser? Mapserver is running. When I call the mapserver CGI program I get the following message (as mentioned in the mapserver tutorial: "If you invoke it as is you will get this familiar message"): No query information to decode. QUERY_STRING is set, but empty. > And if yes, has mapserver the right permissions to write to the temp > image directory?.... I have checked the permissions and made the temp image directory accessible for writing operations of the mapserver. And I found a mistake in the .map file. Now the mapserver should work fine - I hope. But now I have an problem with mapscript: I've created a '.php' file to verify that PHP and PHP/Mapscript were installed properly The file looks like: I get the following error message: Warning: Function registration failed - duplicate name - ms_getversion in /home/n_faust/software/projekt/htdocs/phpinfo_mapscript.phtml on line 21 Warning: Function registration failed - duplicate name - ms_newmapobj in /home/n_faust/software/projekt/htdocs/phpinfo_mapscript.phtml on line 21 Warning: Function registration failed - duplicate name - ms_newlayerobj in /home/n_faust/software/projekt/htdocs/phpinfo_mapscript.phtml on line 21 Warning: Function registration failed - duplicate name - ms_newclassobj in /home/n_faust/software/projekt/htdocs/phpinfo_mapscript.phtml on line 21 Warning: Function registration failed - duplicate name - ms_newpointobj in /home/n_faust/software/projekt/htdocs/phpinfo_mapscript.phtml on line 21 Warning: Function registration failed - duplicate name - ms_newlineobj in /home/n_faust/software/projekt/htdocs/phpinfo_mapscript.phtml on line 21 Warning: Function registration failed - duplicate name - ms_newshapeobj in /home/n_faust/software/projekt/htdocs/phpinfo_mapscript.phtml on line 21 Warning: Function registration failed - duplicate name - ms_newshapefileobj in /home/n_faust/software/projekt/htdocs/phpinfo_mapscript.phtml on line 21 Warning: Function registration failed - duplicate name - ms_newrectobj in /home/n_faust/software/projekt/htdocs/phpinfo_mapscript.phtml on line 21 Warning: Function registration failed - duplicate name - ms_getcwd in /home/n_faust/software/projekt/htdocs/phpinfo_mapscript.phtml on line 21 Warning: Function registration failed - duplicate name - ms_getpid in /home/n_faust/software/projekt/htdocs/phpinfo_mapscript.phtml on line 21 Warning: Function registration failed - duplicate name - ms_getscale in /home/n_faust/software/projekt/htdocs/phpinfo_mapscript.phtml on line 21 Warning: Function registration failed - duplicate name - ms_newprojectionobj in /home/n_faust/software/projekt/htdocs/phpinfo_mapscript.phtml on line 21 Warning: Function registration failed - duplicate name - ms_tokenizemap in /home/n_faust/software/projekt/htdocs/phpinfo_mapscript.phtml on line 21 Warning: Function registration failed - duplicate name - ms_newstyleobj in /home/n_faust/software/projekt/htdocs/phpinfo_mapscript.phtml on line 21 Warning: Function registration failed - duplicate name - ms_newgridobj in /home/n_faust/software/projekt/htdocs/phpinfo_mapscript.phtml on line 21 Warning: Function registration failed - duplicate name - ms_geterrorobj in /home/n_faust/software/projekt/htdocs/phpinfo_mapscript.phtml on line 21 Warning: Function registration failed - duplicate name - ms_reseterrorlist in /home/n_faust/software/projekt/htdocs/phpinfo_mapscript.phtml on line 21 Warning: Function registration failed - duplicate name - ms_newsymbolobj in /home/n_faust/software/projekt/htdocs/phpinfo_mapscript.phtml on line 21 Warning: MapScript: Unable to register functions, unable to load in Unknown on line 0 After the error messages the output of phpinfo() is displayed. I set the extensions_dir in the php.ini file to /home/n_faust/software/projekt/lib/php - where the file php_mapscript.so is stored. What is wrong? Any suggestions? Regards, Nicole Faust PS: I had a look at http://mapserver.gis.umn.edu/doc/phpmapscript-install-howto.html but the problem could not be solved. From n_faust at INFORMATIK.UNI-KL.DE Mon Jan 24 06:46:45 2005 From: n_faust at INFORMATIK.UNI-KL.DE (Nicole Faust) Date: Mon, 24 Jan 2005 15:46:45 +0100 Subject: Example Maps In-Reply-To: Message-ID: Hello Hal, > Did you mean to say the scalebar at the bottom? The legend is at the > top, in this example. Yes, I meant the scalebar, sorry I've confounded these to things. > correct. My guess is that your path to the shapefile is not really > what you think it is. This can happen in a virtual server > environment (if your Apache is serving multiple domains from the same > machine). > I adjusted the path in the .map file. > You might also have a permissions problem--can the Apache process > owner read the directory where the datafiles are? I set the permissions of the directory so that the datafiles should now be readable. But when I try to display the map in my browser I get the following error message: mapserv(): Web application error. No template provided. What went wrong? Regards, Nicole Faust From woodbri at SWOODBRIDGE.COM Mon Jan 24 06:46:52 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 24 Jan 2005 09:46:52 -0500 Subject: mapimages have different hue (off-colour) In-Reply-To: <000c01c501e2$e48f2430$5d2815ac@auper1pc364> Message-ID: What version of mapserver are you running? Have you looked at this bug? http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=306 Have you tried viewing it on another system, or viewed it in another program like photoshop? -Steve W. Jacob Delfos wrote: > Hi All, > > Got an interesting problem, which I hope someone recognises; My mapimage > has changed hue in the last weeks. I am not sure what I changed to cause > this. Perhaps an external program changed something about how my > computer creates images. However, even if I restore the gdal12.dll file > that I used previously (or any other of the many versions I have), my > image is still off-colour. It is greenish/yellowish compared to the > normal colour. It is still 24bit jpeg, though. But the mapimages from > all php_mapscript based sites that I run from this machine have suddenly > got this greenish tint. > > I suspect it may be something about the overal system, because I once > noticed how different machines (a win2k desktop, and an XP laptop) > generated slightly differently coloured mapimages (different hue, > different saturation), even though both machines were installed with the > exact same mapserver files. I tried running the site using a browser on > the host and on a different machine, but both images look greenish. > > Does anyone know what could affect the hue of the mapimage? Something > global? > > regards, > > Jacob > > > JACOB DELFOS > SPATIAL INFORMATION ANALYST > Maunsell Australia Pty Ltd > 629 Newcastle Street, WA 6007 > PO Box 81, WA 6902 > Leederville > Western Australia > ABN 20 093 846 925 > > Tel + 61 8 9281 6185 > Fax + 61 8 9281 6297 > jacob.delfos at maunsell.com From stefan.schwarzer at GRID.UNEP.CH Mon Jan 24 06:53:49 2005 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Mon, 24 Jan 2005 15:53:49 +0100 Subject: time queries with mapserver 4.4.1 In-Reply-To: <20050120090308.GC12333@crusaders.no> Message-ID: An interesting feature. But that means if I have a (statistical) data set with data available for 30 different years (1970-2000), I would have to define 30 WMS layers, right? > On Wed, Jan 19, 2005 at 10:42:07AM -0500, Yewondwossen Assefa wrote: >>> I'm still unsuccessful in trying to understand how to make a time >>> query in mapserver 4.4.1, and I'd appreciate any help on the subject. >> There is a doc explaining the current wms time support in Mapserver >> at : >> http://mapserver.gis.umn.edu/doc/wms-time-support-howto.html > > Excellent, thank you. > > *blush* > > I have to wonder how I've kept missing that link, though :-/ > > -- > Trond Michelsen > > ????????_______________________________________ ????????Stefan Schwarzer ????????GIS & Data Management ????????UNEP/DEWA/GRID-Geneva ????????Chemin des Anemones 11 ????????CH - 1219 Chatelaine ????????Switzerland ????????Tel: (+41) 22.917.83.49 ????????Fax: (+41) 22.917.80.29 ????????Internet: http://geodata.grid.unep.ch/ ????????_______________________________________ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1222 bytes Desc: not available URL: From lfilak at MEDINACO.ORG Mon Jan 24 07:00:43 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Mon, 24 Jan 2005 10:00:43 -0500 Subject: OSCON Message-ID: Has anyone plans to present MS at OSCON? I've seen some other Webmapping titles presented in the past although this is not a "GIS" conference. The Call for Proposals has just opened for the 7th Annual O'Reilly Open Source Convention http://conferences.oreilly.com/oscon Lowell From David.Fawcett at STATE.MN.US Mon Jan 24 07:16:31 2005 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Mon, 24 Jan 2005 09:16:31 -0600 Subject: Case of the blankety blanks Message-ID: I realize that there are two potential approaches to this all-too-common STATUS ON vs STATUS DEFAULT issue. The easiest solution is probably more documentation/education/help/etc. But, has anyone thought of changing the domain of these arguements to something like 'DISPLAY' 'AVAILABLE' 'OFF'. I know that even with deprication, this could potentially break old apps, but it would most likely make it easier for new users to get up and running. David. >>> Sam Lawrance 1/20/2005 6:49:45 AM >>> Chris Foote wrote: > I've managed to get CGIMapServer up and running, and I'm able to > embed a label and scale. The problem I'm having is getting either > one of 2 shapefiles to be displayed - they come up blank ;-( > > LAYER > NAME Australia2 > DATA Australia2 > TYPE polygon > STATUS on Use STATUS DEFAULT for your layers instead of STATUS ON. Read doco for more info. -- Sam Lawrance ph +61 0425 228 579 freenode: deft From kgrootendorst at BAIRD.COM Mon Jan 24 07:26:16 2005 From: kgrootendorst at BAIRD.COM (Kevin Grootendorst) Date: Mon, 24 Jan 2005 10:26:16 -0500 Subject: Zoom to custom extent - PHP In-Reply-To: <41F49DB6.50009@tarkvarastuudio.ee> Message-ID: Basically, I'm trying to follow the GMAP example since they have a similar feature - but trying to mimic the GMAP is way too complicated. I'm giving up on this task - it's taking too long. Thanks for your help. ______________________________ Kristjan Annus 01/24/2005 02:03 AM To Kevin Grootendorst cc Subject Re: Zoom to custom extent - PHP Have you printed out the values of $dfMinX, $dfMinY, $dfMaxX, $dfMaxY to make shure they arriwe correctly? And the SetMapExtents function - I assume its your own function what is the code of this function doing? Kristjan >Kristjan, >Thanks for your reply. I forgot to include this additional PHP code in my >original >posting. I have the following: > >if ($HTTP_FORM_VARS["ViewRegion"]) > { > if (ereg("(-?[0-9]+),(-?[0-9]+),(-?[0-9]+),(-?[0-9]+)", > $HTTP_FORM_VARS["ViewRegion"], $ProvExtents)) > { > $dfMinX = doubleval($ProvExtents[1]); > $dfMinY = doubleval($ProvExtents[2]); > $dfMaxX = doubleval($ProvExtents[3]); > $dfMaxY = doubleval($ProvExtents[4]); > > SetMapExtents($dfMinX, $dfMinY, $dfMaxX, $dfMaxY); > } > } > >But no luck yet. My page just reloads with the max extents of the map. > >Kevin > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From joseluismapserver at YAHOO.ES Mon Jan 24 07:33:02 2005 From: joseluismapserver at YAHOO.ES (Jose Luis Gonzalez) Date: Mon, 24 Jan 2005 16:33:02 +0100 Subject: raster file error, does not display Message-ID: Hi everyone. Lets see if someone can tell me what could be wrong. I am working with: MapServer version 4.4.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=GDAL INPUT=SHAPEFILE I am using java servlets. when I use shapefiles :usa1.map it works but when I want to include a tif file it doesn't work: usa3.map, nitelti020l.tif The instructions I use are: for the first case that works: ... mapObj map = new mapObj("/mypath/usa1.map"); imageObj img = map.draw(); img.save("/mypath/usa1.png", map); ... out.println("
"); For the second case with raster that doesn't work: ... mapObj map = new mapObj("/mypath/usa3.map"); imageObj img = map.draw(); img.save("/mypath/usa3.png", map); ... out.println("
"); And here are the mapfiles: usa1.map MAP NAME USA1 STATUS ON SIZE 800 500 IMAGETYPE PNG IMAGECOLOR 240 240 240 SHAPEPATH "/mypath" EXTENT -8000000 300000 5000000 1500000 UNITS METERS PROJECTION "proj=lcc" "lat_1=32" "lat_2=44" "lat_0=38" "lon_0=-100" "x_0=0" "y_0=0" "ellps=GRS80" "datum=NAD83" END WEB IMAGEPATH "/mypath/" IMAGEURL "/mypath/" END LAYER NAME "US state boundaries" TYPE POLYGON STATUS ON DATA "statesp020" PROJECTION "proj=latlong" "ellps=GRS80" "datum=NAD83" END CLASS NAME "US states" OUTLINECOLOR 60 60 60 COLOR 255 255 0 SYMBOL 0 END END LAYER NAME "credits" STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 10 480 END TEXT 'Made with Mapserver.' END CLASS LABEL TYPE BITMAP POSITION CR COLOR 0 0 0 END END END END usa3.map MAP NAME USA3 STATUS ON IMAGETYPE PNG SIZE 800 500 SHAPEPATH "/mypath" EXTENT -6086744.000 -2784127 4278894 4485901 UNITS METERS PROJECTION "proj=laea" "lat_0=45" "lon_0=-100" "ellps=GRS80" "datum=NAD83" END WEB IMAGEPATH "/mypath/" IMAGEURL "/mypath/" END LAYER NAME "Nighttime lights" TYPE RASTER STATUS ON DATA "/mypath/nitelti020l.tif" END LAYER NAME "US state boundaries" TYPE POLYGON STATUS ON DATA "statesp020" PROJECTION "proj=latlong" "ellps=GRS80" "datum=NAD83" END CLASS NAME "US states" OUTLINECOLOR 50 50 50 SYMBOL 0 END END END --------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: nitelti020l.tar.gz Type: application/x-gzip-compressed Size: 2125393 bytes Desc: nitelti020l.tar.gz URL: From teb at MALLIT.FR.UMN.EDU Mon Jan 24 07:17:33 2005 From: teb at MALLIT.FR.UMN.EDU (Thomas E Burk) Date: Mon, 24 Jan 2005 09:17:33 -0600 Subject: shape file viewer on Pocket PC (FWD) Message-ID: ------------- Begin Forwarded Message ------------- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=gTSMM+HTympAH5ZVLTwEfBl2FO1W7IrbBLKWiXRMUkIFVTILENpie6O8WEMLDHK hhOoa5ReWklWRQhlLElxQ1nW8eYR3z5fzkKRzohEO+mihKImTNI45/MQlF04Bz9bU 6sjviKdXIiEldiMOvVNaos/g3wONj4Q9lM4Kna/xo0U= ; Date: Sun, 23 Jan 2005 19:03:32 -0800 (PST) From: Bo Zou Subject: shape file viewer on Pocket PC To: mapserver-info at lists.gis.umn.edu MIME-Version: 1.0 Hi, Just to let you know that I developed a very primitive shape file viewer on Pocket PC using some MapServer source code. Here is the URL: http://rider.homeip.net/omap.html I also used MapServer to display bus stops: http://rider.homeip.net/bus.php?q=CB910&showmap=1 MapServer is great! Bo __________________________________ Do you Yahoo!? Yahoo! Mail - 250MB free storage. Do more. Manage less. http://info.mail.yahoo.com/mail_250 ------------- End Forwarded Message ------------- From assefa at DMSOLUTIONS.CA Mon Jan 24 07:41:46 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Mon, 24 Jan 2005 10:41:46 -0500 Subject: Fw: Mapserver Flash/SWF question In-Reply-To: <008101c50216$8505c0d0$18c4a8c0@jfdwgql6e4tws> Message-ID: Only GD and GDAL formats are supported for a wms GetMap request in mapserver 4.4.X. Please see bug http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=455 for details. The other formats support should make it for the next release. Later, Constantin Cristian wrote: > I'm using the ms4w from mapservser: > > E:\ms4w\Apache\cgi-bin>mapserv -v > MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=PDF > OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > SUPPORTS=WMS_CLI > ENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER > INPUT=POSTGIS IN > PUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > and I have the following output options in my map file: > > OUTPUTFORMAT > NAME swf > DRIVER "swf" > MIMETYPE "application/x-shockwave-flash" > EXTENSION "swf" > IMAGEMODE PC256 > FORMATOPTION "OUTPUT_MOVIE=SINGLE" > END > > IMAGETYPE swf > If I try to run this command: > > E:\ms4w\Apache\cgi-bin>mapserv > QUERY_STRING="map=/ms4w/apps/work/romaniag.map&VE > RSION=1.1.0&REQUEST=GetMap&SRS=EPSG:4326&BBOX=22.9633389261745,47.3965604026846, > 24.0539429530201,48.4871644295302&WIDTH=596&HEIGHT=596&FORMAT=SWF&BGCOLOR=0xFFFF > FF&EXCEPTIONS=INIMAGE&WRAPDATELINE=false&LAYERS=Romania,Bucuresti&TRANSPARENT=tr > ue" > > It says: > Content-type: application/x-shockwave-flash > then the program exits without saying anything. > > If I change FORMAT=SWF with FORMAT=PNG I get a lot of binary data (it > dumps the picture in my console). > > Does anyone have any idea what am I doing wrong? > > > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From hobu at IASTATE.EDU Mon Jan 24 07:40:48 2005 From: hobu at IASTATE.EDU (Howard Butler) Date: Mon, 24 Jan 2005 09:40:48 -0600 Subject: 4.4 Windows Binaries (Oracle, SDE, and others) In-Reply-To: <20050122231707.41352.qmail@web54208.mail.yahoo.com> Message-ID: Thomas, Unfortunately, the gdal/ogr utilities are not available in my releases. I will see about putting them in when 4.4.2 comes out... Howard At 05:17 PM 1/22/2005, Thomas Chesky wrote: >Howard, > >I am trying to use your 4.4 windows binary because of the precompiled >MrSid support. >But I would also like to have the GDAL utilities, such as gdaltindex.exe >available and compiled against the same, so that I can create index on >MrSid files. Please advise wether those are downloadable from your site as >well. > >Thanks > >Thomas > >Howard Butler wrote: >All, > >I have compiled what I am calling the "kitchen sink" Windows binaries and >made them available for download. They are located at >. Here is a quick rundown of what >is available for support: > >Outputs: GIF, JPEG, PNG, PDF, and SWF >Inputs: GDAL, OGR, PostGIS, and Shapefile. (SDE and/or Oracle, depending on >build type). >Servers: WCS, WFS, and WMS >Clients: WFS and WMS >GDAL formats: NetCDF, JPEG2000, ECW, TIFF, GeoTIFF, & MrSID (plus many more) >OGR formats: PostGIS, GML, & ODBC (plus many more) > >There are 4 build types, and you will need to choose the one that >appropriately does what you want with respect to Oracle and SDE as the DLLs >required to use those are not freely available. SDE and Oracle builds >require your own DLLs. SDE was built against ArcSDE 9.0, and will >requirethe 9.0 DLLs. Oracle was built against the Oracle 9.2 client >libraries and >will require a 9.2 oci.dll. > >MapScript >Python MapScript for Python 2.3 and Java MapScript for JDK 1.5 are also >available at this website in the same 4 configurations. The Java MapScript >is known to pass the test cases that exist in CVS, but I am not a Java >programmer, so I don't know of the rest of their utility. I'd be >interested in hearing reports of how well they work for you. > >Congrats to all those who helped work on a great release. > >Howard > > >Do you Yahoo!? >Yahoo! Search presents - >Jib >Jab's 'Second Term' From rburgholzer at MAPTECH-INC.COM Mon Jan 24 07:50:56 2005 From: rburgholzer at MAPTECH-INC.COM (Robert W. Burgholzer) Date: Mon, 24 Jan 2005 10:50:56 -0500 Subject: Zoom to custom extent - PHP In-Reply-To: Message-ID: Sorry you are so frustrated. It is really as simple as this: $map->setextent($lox,$loy,$hix,$hiy); where $map is a valid php mapscript object. This must all be done before you make any calls to draw your map, such as: $map->draw() Also, as the previous poster suggests, you can't be reluctant to print out the input variables to verify that your inputs are correct. r.b. At 10:26 AM 1/24/2005 -0500, kgrootendorst at baird.com wrote: >Basically, I'm trying to follow the GMAP example since they have a similar >feature - but trying to mimic the GMAP is way too complicated. >I'm giving up on this task - it's taking too long. > >Thanks for your help. > >______________________________ > > >Kristjan Annus > >01/24/2005 02:03 AM >To >Kevin Grootendorst >cc >Subject >Re: Zoom to custom extent - PHP > > > > >Have you printed out the values of $dfMinX, $dfMinY, $dfMaxX, $dfMaxY >to make shure >they arriwe correctly? >And the SetMapExtents function - I assume its your own function what is >the code of >this function doing? > >Kristjan > > >Kristjan, > >Thanks for your reply. I forgot to include this additional PHP code in my > >original > >posting. I have the following: > > > >if ($HTTP_FORM_VARS["ViewRegion"]) > > { > > if (ereg("(-?[0-9]+),(-?[0-9]+),(-?[0-9]+),(-?[0-9]+)", > > $HTTP_FORM_VARS["ViewRegion"], $ProvExtents)) > > { > > $dfMinX = doubleval($ProvExtents[1]); > > $dfMinY = doubleval($ProvExtents[2]); > > $dfMaxX = doubleval($ProvExtents[3]); > > $dfMaxY = doubleval($ProvExtents[4]); > > > > SetMapExtents($dfMinX, $dfMinY, $dfMaxX, $dfMaxY); > > } > > } > > > >But no luck yet. My page just reloads with the max extents of the map. > > > >Kevin > > > > > > Robert Burgholzer Environmental Engineer MapTech Inc. phone: 804-869-3066 http://www.maptech-inc.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From agillesp at VT.EDU Mon Jan 24 08:25:03 2005 From: agillesp at VT.EDU (Abe Gillespie) Date: Mon, 24 Jan 2005 11:25:03 -0500 Subject: raster file error, does not display In-Reply-To: <20050124153302.38883.qmail@web26406.mail.ukl.yahoo.com> Message-ID: Ha, you sent a 2Meg file to the list! Begin the chastising! :) On Jan 24, 2005, at 10:33 AM, Jose Luis Gonzalez wrote: > Hi everyone. > Lets see if someone can tell me what could be wrong. > ? > I am working with: > MapServer version 4.4.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 > INPUT=GDAL INPUT=SHAPEFILE > I am using java servlets. > ? > when I use shapefiles :usa1.map it works but when I want to include a > tif file it doesn't work: usa3.map, nitelti020l.tif > ? > The instructions I use are: > ? > for the first case that works: > ? > ... > mapObj map = new mapObj("/mypath/usa1.map"); > imageObj img = map.draw(); > img.save("/mypath/usa1.png", map); > ... > out.println("
"); > ? > For the second case with raster that doesn't work: > ? > ... > mapObj map = new mapObj("/mypath/usa3.map"); > imageObj img = map.draw(); > img.save("/mypath/usa3.png", map); > ... > out.println("
"); > ? > ? > And here are the mapfiles: > ? > usa1.map > ? > MAP > ??? NAME USA1 > ??? STATUS ON > ??? SIZE 800 500 > ??? IMAGETYPE PNG > ??? IMAGECOLOR 240 240 240 > ??? SHAPEPATH "/mypath" > ??? EXTENT -8000000 300000 5000000 1500000 > ??? UNITS METERS > ??? PROJECTION > ??"proj=lcc" "lat_1=32" "lat_2=44" "lat_0=38" "lon_0=-100" "x_0=0" > "y_0=0" "ellps=GRS80" "datum=NAD83" > ??? END > ??? WEB > ??????? IMAGEPATH "/mypath/" > ??????? IMAGEURL "/mypath/" > ??? END > ? > ?LAYER > ??NAME "US state boundaries" > ??TYPE POLYGON > ??STATUS ON > ??DATA "statesp020" > ??PROJECTION > ???"proj=latlong" > ???"ellps=GRS80" > ???"datum=NAD83" > ??END > ??CLASS > ???NAME "US states" > ???OUTLINECOLOR 60 60 60 > ???COLOR 255 255 0 > ???SYMBOL 0 > ??END > ?END > ? > ?LAYER > ??NAME "credits" > ??STATUS DEFAULT > ??TRANSFORM FALSE > ??TYPE ANNOTATION > ??FEATURE > ???POINTS > ????10 480 > ???END > ???TEXT 'Made with Mapserver.' > ??END > ??CLASS > ???LABEL > ????TYPE BITMAP > ????POSITION CR > ????COLOR 0 0 0 > ???END > ??END > ?END > END > ? > usa3.map > ? > MAP > ??? NAME USA3 > ??? STATUS ON > ??? IMAGETYPE PNG > ??? SIZE 800 500 > ??? SHAPEPATH "/mypath" > ??? EXTENT -6086744.000 -2784127 4278894 4485901 > ??? UNITS METERS > ??? PROJECTION "proj=laea" "lat_0=45" "lon_0=-100" "ellps=GRS80" > "datum=NAD83" END > ??WEB > ???IMAGEPATH "/mypath/" > ???IMAGEURL "/mypath/" > ??END > ??LAYER > ???NAME "Nighttime lights" > ???TYPE RASTER > ???STATUS ON > ???DATA "/mypath/nitelti020l.tif" > ??END > ??LAYER > ???NAME "US state boundaries" > ???TYPE POLYGON > ???STATUS ON > ???DATA "statesp020" > ???PROJECTION > ????"proj=latlong" > ????"ellps=GRS80" > ????"datum=NAD83" > ???END > ???CLASS > ????NAME "US states" > ????OUTLINECOLOR 50 50 50 > ????SYMBOL 0 > ???END > ??END > END > > > From mapserver at FISET.CA Mon Jan 24 10:04:39 2005 From: mapserver at FISET.CA (JP Fiset) Date: Mon, 24 Jan 2005 12:04:39 -0600 Subject: Apache, PHP 4.3.9 (dso), MapServer 4.4.1 and Sigfaults Message-ID: I have been running into a segmentation fault using mapserver and set out looking for the reason. This message is to report my finding since a number of you seem to be tackling similar issues. To understand this message, you should get familiar with the MapServer bug #252. (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=252) Symptom: We had compiled Apache 1.3.33, PHP 4.3.9 and MapServer 4.4.0. PHP mapscript seemed to work, but the mapserver CGI program was not able to produce any maps, instead providing the user with a segmentation fault. (Platform is Linux RedHat 9) Solution: I suspected that something was not compiled right (going out on a limb here...) and reviewed the Wiki (http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?LinuxBuild) What has changed lately is that PHP's configure script is no longer accepting the option '--with-system-regex'. And as explained in bug #252, '--with-regex=system' does not provide the appropriate configuration. Therefore, I reverted to a less than ideal solution: I modified the PHP configure script. With the modifications I made, '--with-regex=system' behaves correctly for compiling mapserver with php_mapscript, when PHP is installed as a DSO. Here are the changes to PHP's configure file: 78193,78195c78193,78195 < if test "$PHP_SAPI" = "apache" || test "$PHP_SAPI" = "apache2filter" || test "$PHP_SAPI" = "apache2handler"; then < REGEX_TYPE=php < else --- > if test "$PHP_SAPI" = "apache" || test "$PHP_SAPI" = "apache2filter" || test "$PHP_SAPI" = "apache2handler"; then > REGEX_TYPE=system > else Obviously, this is for PHP 4.3.9, and since the configure script is changed for every version of PHP (generated), the line numbers might not match your particular version. By default, the configure script ignores the '--with-regex=xxx' option when '--with-apxs=xxx' is used. The change above ignores this check. With the above change, the instructions found in the Wiki page (http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?LinuxBuild) can be followed as they are, with one exception: when configuring PHP, use '--with-regex=system' instead of '--with-system-regex' From lane.bramblett at US.IBM.COM Mon Jan 24 10:51:41 2005 From: lane.bramblett at US.IBM.COM (Lane C Bramblett) Date: Mon, 24 Jan 2005 12:51:41 -0600 Subject: Tutorial Problem Message-ID: I have installed the MapServer 4.0 tutorial and am trying to go through it. Everything works fine for section 1, but from section 2 onward trying to run the examples I get a pop-up error from mapserv.exe stating "The instruction at 0x77f88216 referenced memory at 0x00000010. The memory could not be written". When executing example 1.9, it is writing files to my tmp directory, so I don't think it is a permissions problem. I am running Windows 2000 using IIS 5.0 with the MapServer 4.4.1 windows binaries. Any help would be appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Mon Jan 24 11:33:10 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 24 Jan 2005 14:33:10 -0500 Subject: projection questions Message-ID: Jeff - You're confusing this New Englander with your definition of "New England" . It doesn't include Pennsylvania, Pennsylvania doesn't have much of a coast, and the coast from New York City to Eastport, Maine runs 4.2 degrees north and 7.0 degrees east, which is quite a bit closer to east than north, particularly in a lat/lon projection! I think you're being misled by your MapPoint map. I'm going to guess that it uses something like an Albers projection centered on the continent. This will cause the eastern portions of the US to appear to rotate counterclockwise. As a simple check, the northern borders of Pennsylvania, Connecticut, Rhode Island, and Massachusetts are all generally straight lines running east-west at constant latitude. Are they running straight right to left on your Map Point map, or are they running at an angle? Stretching the extents will not reproject the image. If your MapPoint map doesn't have the Connecticut-Massachusetts border as a right-left line, no amount of X and Y stretching will rotate it into the place you expect. If you want to duplicate the MapPoint map, the first thing you need to do is find out what projection it uses. It sounds like it is NOT the projection you think it is, and I don't think it's very productive to try to guess at it. - Ed P.S. Please remember to always send replies to the whole list - thanks! Ed McNierney TopoZone.com -----Original Message----- From: Jeff Portwine [mailto:jdport at veritime.com] Sent: Monday, January 24, 2005 10:16 AM To: Ed McNierney Subject: Re: [UMN_MAPSERVER-USERS] projection questions > Have you looked at the coordinate values in your files? Are they > plausible geographic > (latitude/longitude) numbers? Yes, they do appear to be geographic lat/long numbers, and all of my data sets seem to use the NAD83 datum. > But I'm a bit puzzled about your coastline comment - there is very little > "north/south" > coastline in the northeastern US. It runs east/west or > northeast/southwest most of the time. Basically, the coastline from Pennsylvania up to Maine runs roughly to the northeast, but more north-south than east-west. My map via mapserver appears to be more east west. It's possible that microsoft mappoint just prints out screwy maps... but I'm trying to duplicate this map that was sent to me that was created in mappointe and I just can't seem to do it. I tried to set the extents for my output to match what the extents appear to be in the mappoint map (looking at cities that are close to the borders of the map and using the lat/long of those cities as my extents). I would think that mapserver would generate an image that would stretch or compress to fill the "image size" and I figured that would make the maps look alike (if I created an image size that was the same as or proportional to the map point map image size). It doesn't seem to do that though, regardless of what I set the Y extents to , it shows the same range, just shifts the map north or south. I am not sure if i'm expressing myself right, I hope you understand what I'm trying to do and what I'm actually seeing. Perhaps I could send you images if you don't understand what I mean. Thanks, Jeff - Ed -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jeff Portwine Sent: Friday, January 21, 2005 1:43 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] projection questions Thanks for the explanation, that does make perfect sense. I believe all of my shapefiles are NAD83... i'm not sure if they are all geographic but my guess is that they are. So I guess my only question is why my map looks so ... skewed I guess is the only word I can come up with at the moment. It just doesn't look right... the whole map seems almost twisted so that the coastline appears to be running more east/west than it should rather than north/south. Perhaps my "image size" is set wrong so that it's compressing one axis and stretching another.... I will just have to play with it I guess. Thanks for the great information. If nothing else this mapping project has been educational. -Jeff ----- Original Message ----- From: "Ed McNierney" To: "Jeff Portwine" ; Sent: Friday, January 21, 2005 12:56 PM Subject: RE: [UMN_MAPSERVER-USERS] projection questions Jeff - A datum is not a projection, but a mathematical model of the Earth. Every geographic (i.e. latitude/longitude) and projected coordinate system is expressed relative to a datum. Many people incorrectly think that the latitude and longitude of a point are absolute, unchangeable values. Latitude and longitude are geographic coordinates expressed relative to a datum. If you change the datum, the coordinates will change. In the United States, the NAD27 and NAD83 datums are commonly used. WGS84 is also used because it is a world-wide datum, but in the USA you can consider it identical to NAD83. For example, I'm typing this from a location that's latitude 42.5860?N, 71.5553?W in WGS84/NAD83 coordinates, and 42.5859?N, 71.5558?W in NAD27 coordinates. Not a big difference, but a real one. If ALL of your shapefiles are geographic NAD83, things are pretty easy. If your input and output projections are all the same (and let's start with that case) then you can completely ignore projections. Just be sure the extents in your .mapfile are appropriate for the area and the UNITS are DD (decimal degrees). It sounded, however, from your last email, as if you'd already had that working. What works and doesn't work? Can you get one shapefile to display using latitude/longitude extents for the northeastern US? - Ed From jdport at VERITIME.COM Mon Jan 24 12:12:35 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Mon, 24 Jan 2005 15:12:35 -0500 Subject: projection questions Message-ID: Well, I guess I didn't mean specifically "New England" but the general area.... my map includes most of Pennsylvania, New Jersey, Massachusetts, Conneticut, Vermont, Rhode Island, New York, and part of Maine. It is entirely possible that as you said i'm being misled by the Map Point map... and that I just have to get used to how this looks , but regardless I need to understand what's going on so that when the people I'm doing this for ask me I can explain the difference :) I put up a quick and dirty web page: http://www.aiedail.net/maps so that you can see exactly what I'm talking about (I didn't want to attach images to an email for the entire list). I hope that these images will demonstrate what i've been trying to write in text. I'm not actually using mappoint data to create the map, so I have no idea how they project the data when they generate maps... but I can't really seem to make my output look any different regardless of what I use for output projection. If there is no way to make it look the same that's probably OK, i'm just trying to understand what's happening. Thanks for the time, hope the picture posting helps. -Jeff > ----- Original Message ----- > From: "Ed McNierney" > To: > Sent: Monday, January 24, 2005 2:33 PM > Subject: Re: [UMN_MAPSERVER-USERS] projection questions > > > Jeff - > > You're confusing this New Englander with your definition of "New England" > . It doesn't include Pennsylvania, Pennsylvania doesn't have much of a > coast, and the coast from New York City to Eastport, Maine runs 4.2 > degrees north and 7.0 degrees east, which is quite a bit closer to east > than north, particularly in a lat/lon projection! > > I think you're being misled by your MapPoint map. I'm going to guess that > it uses something like an Albers projection centered on the continent. > This will cause the eastern portions of the US to appear to rotate > counterclockwise. > > As a simple check, the northern borders of Pennsylvania, Connecticut, > Rhode Island, and Massachusetts are all generally straight lines running > east-west at constant latitude. Are they running straight right to left > on your Map Point map, or are they running at an angle? > > Stretching the extents will not reproject the image. If your MapPoint map > doesn't have the Connecticut-Massachusetts border as a right-left line, no > amount of X and Y stretching will rotate it into the place you expect. > > If you want to duplicate the MapPoint map, the first thing you need to do > is find out what projection it uses. It sounds like it is NOT the > projection you think it is, and I don't think it's very productive to try > to guess at it. > > - Ed > > P.S. Please remember to always send replies to the whole list - thanks! > > Ed McNierney > TopoZone.com > > From palanisamyg at ORNL.GOV Mon Jan 24 12:21:33 2005 From: palanisamyg at ORNL.GOV (Palanisamy, Giri) Date: Mon, 24 Jan 2005 15:21:33 -0500 Subject: PHP Mapscript region selection Message-ID: HI, I have just started exploring the PHP-mapscript, and got my basic mapserver demo working (display the image, zoom in, zoom out, and pan), Is there a way to select a region and zoom-in? instead of point click zoom? Do I need to have an applet for this?. Can anyone give me a sample php code that does region selection? Here is an example that allows region selection http://www2.dmsolutions.on.ca/gmap/gmap75.phtml I guess this uses java applet. Thanks Giri -------------- next part -------------- An HTML attachment was scrubbed... URL: From nhv at CAPE.COM Mon Jan 24 12:35:58 2005 From: nhv at CAPE.COM (Norman Vine) Date: Mon, 24 Jan 2005 15:35:58 -0500 Subject: projection questions In-Reply-To: <03d001c50251$0b30c800$1bf2fbd0@solo> Message-ID: Jeff Portwine writes: > > It is entirely possible that as you said i'm being misled by the Map Point > map... and that I just have to get used to how this looks , but regardless I > need to understand what's going on so that when the people I'm doing this > for ask me I can explain the difference :) < snip > > I'm not actually using mappoint data to create the map, so I have no idea > how they project the data when they generate maps... but I can't really > seem to make my output look any different regardless of what I use for > output projection. Jeff I suggest you spend a little time here http://www.colorado.edu/geography/gcraft/notes/mapproj/mapproj_f.html and some more experimenting with your mapfile http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#projection hint < folowing up on Ed's > http://www.colorado.edu/geography/gcraft/notes/mapproj/mapproj_f.html HTH Norman From woodbri at SWOODBRIDGE.COM Mon Jan 24 12:32:58 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 24 Jan 2005 15:32:58 -0500 Subject: projection questions In-Reply-To: <03d001c50251$0b30c800$1bf2fbd0@solo> Message-ID: Jeff Portwine wrote: > Well, I guess I didn't mean specifically "New England" but the general > area.... my map includes most of Pennsylvania, New Jersey, Massachusetts, > Conneticut, Vermont, Rhode Island, New York, and part of Maine. > > It is entirely possible that as you said i'm being misled by the Map Point > map... and that I just have to get used to how this looks , but > regardless I > need to understand what's going on so that when the people I'm doing this > for ask me I can explain the difference :) > > I put up a quick and dirty web page: http://www.aiedail.net/maps so that > you can see exactly what I'm talking about (I didn't want to attach images > to an email for the entire list). I hope that these images will > demonstrate what i've been trying to write in text. It looks like your map is in a latlong projection and the mappoint map (just guessing because I have a large printed wall map) may be in a transverse Mercator projection. > I'm not actually using mappoint data to create the map, so I have no idea > how they project the data when they generate maps... but I can't really > seem to make my output look any different regardless of what I use for > output projection. You can change you output projection all you want it it will not change the look of the map one bit unless you set the input projection of each layer. If you data is all in lat,long then you should set the PROJECTION block in each layer to PROJECTION "proj=latlong" END and then add a PROJECTION ... END block to the map section of the mapfile for the output projection. > If there is no way to make it look the same that's probably OK, i'm just > trying to understand what's happening. > > Thanks for the time, hope the picture posting helps. > > -Jeff > > >> ----- Original Message ----- >> From: "Ed McNierney" >> To: >> Sent: Monday, January 24, 2005 2:33 PM >> Subject: Re: [UMN_MAPSERVER-USERS] projection questions >> >> >> Jeff - >> >> You're confusing this New Englander with your definition of "New England" >> . It doesn't include Pennsylvania, Pennsylvania doesn't have much >> of a >> coast, and the coast from New York City to Eastport, Maine runs 4.2 >> degrees north and 7.0 degrees east, which is quite a bit closer to east >> than north, particularly in a lat/lon projection! >> >> I think you're being misled by your MapPoint map. I'm going to guess >> that >> it uses something like an Albers projection centered on the continent. >> This will cause the eastern portions of the US to appear to rotate >> counterclockwise. >> >> As a simple check, the northern borders of Pennsylvania, Connecticut, >> Rhode Island, and Massachusetts are all generally straight lines running >> east-west at constant latitude. Are they running straight right to left >> on your Map Point map, or are they running at an angle? >> >> Stretching the extents will not reproject the image. If your MapPoint >> map >> doesn't have the Connecticut-Massachusetts border as a right-left >> line, no >> amount of X and Y stretching will rotate it into the place you expect. >> >> If you want to duplicate the MapPoint map, the first thing you need to do >> is find out what projection it uses. It sounds like it is NOT the >> projection you think it is, and I don't think it's very productive to try >> to guess at it. >> >> - Ed >> >> P.S. Please remember to always send replies to the whole list - thanks! >> >> Ed McNierney >> TopoZone.com >> >> > From constantin.a.cristian at GMAIL.COM Mon Jan 24 12:55:15 2005 From: constantin.a.cristian at GMAIL.COM (Constantin Cristian) Date: Mon, 24 Jan 2005 22:55:15 +0200 Subject: PHP Mapscript region selection Message-ID: I don't think you can do it with php only. That is an applet they are using but you can also do it with JavaScript: http://www.inovagis.org/quickwms/ ----- Original Message ----- From: Palanisamy, Giri To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Monday, January 24, 2005 10:21 PM Subject: [UMN_MAPSERVER-USERS] PHP Mapscript region selection HI, I have just started exploring the PHP-mapscript, and got my basic mapserver demo working (display the image, zoom in, zoom out, and pan), Is there a way to select a region and zoom-in? instead of point click zoom? Do I need to have an applet for this?. Can anyone give me a sample php code that does region selection? Here is an example that allows region selection http://www2.dmsolutions.on.ca/gmap/gmap75.phtml I guess this uses java applet. Thanks Giri -------------- next part -------------- An HTML attachment was scrubbed... URL: From nacional at CBS.UMN.EDU Mon Jan 24 13:13:58 2005 From: nacional at CBS.UMN.EDU (Pericles S. Nacionales) Date: Mon, 24 Jan 2005 15:13:58 -0600 Subject: projection questions In-Reply-To: <03d001c50251$0b30c800$1bf2fbd0@solo> Message-ID: On Monday 24 January 2005 02:12 pm, Jeff Portwine wrote: > > I put up a quick and dirty web page: http://www.aiedail.net/maps so that > you can see exactly what I'm talking about (I didn't want to attach images > to an email for the entire list). I hope that these images will > demonstrate what i've been trying to write in text. > > I'm not actually using mappoint data to create the map, so I have no idea > how they project the data when they generate maps... but I can't really > seem to make my output look any different regardless of what I use for > output projection. > > If there is no way to make it look the same that's probably OK, i'm just > trying to understand what's happening. > > Thanks for the time, hope the picture posting helps. > Jeff, MapServer is capable of reprojecting your data on the fly. From your example it looks like your data is unprojected (in latlong) while the MapPoint map is in some other projection. You'll need to know what this projection is if you want an exact match. If all you want is to make your map look reasonably like the MapPoint map, then I suggest using one of the USGS projections-albers, lcc, lambert azimuthal equal area (the required parameters can be found on pretty much any commercial GIS software, or can be googled on the web). Now, you'll probably ask how to reproject in MapServer. Here's a quick instructions: 1. In your mapfile, define a PROJECTION object at the top level: MAP ... PROJECTION "proj_parameter" "value" #or, alternatively, "init=epsg:" END ... END This is your output projection so you want to define it as one of the projections I mentioned above. If you are using the EPSG codes, your init string will look like this: "init=epsg:2163". Search the archive for more info on Proj and projections. 2. Define your MAP EXTENT using your output projection units: Example: EXTENT 201621.496941 -294488.285333 1425518.020722 498254.511514 Your extent shouldn't be decimal degrees but rather in meters (or whatever unit youur projection uses). You can use the Proj utility "cs2cs" to convert your extent from latlong to your output projection. 3. Define your UNITS as METERS (or feet, this depends on your output projection) 4. For each LAYER you define, add a PROJECTION object: MAP ... PROJECTION "proj_parameter" "value" #or, alternatively, "init=epsg:" END ... LAYER #layer 1 ... PROJECTION "init=epsg:4326" # this is latlong in WGS84 datum and spheroid END END LAYER #layer 2 ... PROJECTION "init=epsg:4326" # this is latlong in WGS84 datum and spheroid END ... END The projection definition within the layer object is your input projection. I hope that helps. If you need to learn more about projections, search the web. Good luck! -Perry N. From palanisamyg at ORNL.GOV Mon Jan 24 14:22:00 2005 From: palanisamyg at ORNL.GOV (Palanisamy, Giri) Date: Mon, 24 Jan 2005 17:22:00 -0500 Subject: Rosa Applet Message-ID: Hi, Is there a documentation available for php - rosa applet? Can anyone provide me a sample application that displayes an image using php/rosa applet which does some zoomin and zoomout functions? Thanks! Giri ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Constantin Cristian Sent: Monday, January 24, 2005 3:55 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] PHP Mapscript region selection I don't think you can do it with php only. That is an applet they are using but you can also do it with JavaScript: http://www.inovagis.org/quickwms/ ----- Original Message ----- From: Palanisamy, Giri To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Monday, January 24, 2005 10:21 PM Subject: [UMN_MAPSERVER-USERS] PHP Mapscript region selection HI, I have just started exploring the PHP-mapscript, and got my basic mapserver demo working (display the image, zoom in, zoom out, and pan), Is there a way to select a region and zoom-in? instead of point click zoom? Do I need to have an applet for this?. Can anyone give me a sample php code that does region selection? Here is an example that allows region selection http://www2.dmsolutions.on.ca/gmap/gmap75.phtml I guess this uses java applet. Thanks Giri -------------- next part -------------- An HTML attachment was scrubbed... URL: From h.viola at BOM.GOV.AU Mon Jan 24 14:26:02 2005 From: h.viola at BOM.GOV.AU (Hester Viola) Date: Mon, 24 Jan 2005 16:26:02 -0600 Subject: Accessing multipoint data from PostGIS via WFS (re-posted) Message-ID: Hi, This question regards reading a PostGIS table of type MULTIPOINT into MapServer and providing a WFS, containing the Multipoint data type within GML . I have undertaken the following steps 1. Created a multipoint shapefile 2. Loaded the multipoint shapefile into PostGIS as a MULTIPOINT table 3. Read and displayed the shapefile into MapServer as a POINT layer 4. Read and displayed the PostGIS MULTIPOINT table into MapServer as a POINT layer 5. Accessed the multipoint shapefile layer via WFS and successfully received back data with many entries. BUT 6. When accessing the MULTIPOINT PostGIS layer via WFS, the GML returned was unfortunately not MULTIPOINT GML. It returned only the first point in each section of data as a single point entry , so that most of the data was missing from the WFS output (even though it all displayed ok when visualised in MapServer). If anyone can help with a solution to this or with any information, it would be appreciated. I would like to know if it is possible to work around this or if it is a bug that could be fixed. Thank you for your time Hester h.viola at bom.gov.au From dana at HIGHLANDMAPPING.COM Mon Jan 24 14:23:52 2005 From: dana at HIGHLANDMAPPING.COM (Dana N) Date: Mon, 24 Jan 2005 16:23:52 -0600 Subject: Configuring MapServer for IIS 6 / Windows 2003 server Message-ID: Does anyone have a set of instruction, or advice, on configuring MapServer for IIS 6 / Windows 2003. How difficult is it? Thanks. - Dana From assefa at DMSOLUTIONS.CA Mon Jan 24 14:34:07 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Mon, 24 Jan 2005 17:34:07 -0500 Subject: Rosa Applet In-Reply-To: <74700A2004B18A459CDA46BF6BDEDEF5EF8B03@ORNLEXCHANGE.ornl.gov> Message-ID: There is the GMap application that you can download (http://dl.maptools.org/dl/gmap-ms40.zip). Although It is an old app, It is using php mapscript and rosa. You probably have seen the rosa docs at (http://maptools.org/rosa/index.phtml) : Later, Palanisamy, Giri wrote: > Hi, > > > > Is there a documentation available for php - rosa applet? Can anyone > provide me a sample application that displayes an image using php/rosa > applet which does some zoomin and zoomout functions? > > > > Thanks! > > > > Giri > > > > ------------------------------------------------------------------------ > > *From:* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > *On Behalf Of *Constantin Cristian > *Sent:* Monday, January 24, 2005 3:55 PM > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > *Subject:* Re: [UMN_MAPSERVER-USERS] PHP Mapscript region selection > > > > I don't think you can do it with php only. > > That is an applet they are using but you can also do it with JavaScript: > http://www.inovagis.org/quickwms/ > > > > ----- Original Message ----- > > *From:* Palanisamy, Giri > > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > > > *Sent:* Monday, January 24, 2005 10:21 PM > > *Subject:* [UMN_MAPSERVER-USERS] PHP Mapscript region selection > > > > HI, > > > > I have just started exploring the PHP-mapscript, and got my basic > mapserver demo working (display the image, zoom in, zoom out, and > pan), Is there a way to select a region and zoom-in? instead of > point click zoom? Do I need to have an applet for this?. Can anyone > give me a sample php code that does region selection? > > > > Here is an example that allows region selection > > http://www2.dmsolutions.on.ca/gmap/gmap75.phtml > > I guess this uses java applet. > > > > > > Thanks > > > > Giri > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From t.hester at DVAGROUP.COM Mon Jan 24 08:24:58 2005 From: t.hester at DVAGROUP.COM (Tim Hester) Date: Mon, 24 Jan 2005 10:24:58 -0600 Subject: Installing on Redhat7 Message-ID: I've compiled MS and I'm trying to checkout the workshop demo. I'm getting this in the error_log; mapserv: relocation error: /usr/local/lib/libgd.so.2: undefined symbol: inflateInit_ [Mon Jan 24 10:21:11 2005] [error] [client 192.168.1.1] Premature end of script headers: /var/www/cgi-bin/mapser When I execute mapserv -v from the command line I get; [root at catcher241 mapserver-4.4.1]# ./mapserv -v ./mapserv: relocation error: /usr/local/lib/libgd.so.2: undefined symbol: inflateInit_ Tim Hester DVA Group, Inc. 850-872-7099 PC FL Lab From jacob.delfos at MAUNSELL.COM Mon Jan 24 18:27:52 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Tue, 25 Jan 2005 10:27:52 +0800 Subject: mapimages have different hue (off-colour) Message-ID: Steve, I don't think this is related, because I'm not working in indexed colour. I did realise one thing I changed recently; I updated my graphics card drivers. I know that that SHOULD not have any effect on the physical image being generated, but.... it would explain why I saw this problem before with two machines where the only difference was that they had different hardware. Is there any connection between graphic card drivers and mapserver? As far as I know, the drivers shouldn't have anything to do with that. Just that I can't think of anything else. Tried viewing the mapimage in photoshop, but no difference. It seems like it uses a whole different library to compress to jpg. If I generate the same image from our production server, it creates a proper image. The good image is smaller in filesize than the bad image, but looks proper, and has a higher count of individual colours. Jacob -----Original Message----- From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Sent: 24 January 2005 22:47 To: Jacob Delfos Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] mapimages have different hue (off-colour) What version of mapserver are you running? Have you looked at this bug? http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=306 Have you tried viewing it on another system, or viewed it in another program like photoshop? -Steve W. Jacob Delfos wrote: > Hi All, > > Got an interesting problem, which I hope someone recognises; My mapimage > has changed hue in the last weeks. I am not sure what I changed to cause > this. Perhaps an external program changed something about how my > computer creates images. However, even if I restore the gdal12.dll file > that I used previously (or any other of the many versions I have), my > image is still off-colour. It is greenish/yellowish compared to the > normal colour. It is still 24bit jpeg, though. But the mapimages from > all php_mapscript based sites that I run from this machine have suddenly > got this greenish tint. > > I suspect it may be something about the overal system, because I once > noticed how different machines (a win2k desktop, and an XP laptop) > generated slightly differently coloured mapimages (different hue, > different saturation), even though both machines were installed with the > exact same mapserver files. I tried running the site using a browser on > the host and on a different machine, but both images look greenish. > > Does anyone know what could affect the hue of the mapimage? Something > global? > > regards, > > Jacob > > > JACOB DELFOS > SPATIAL INFORMATION ANALYST > Maunsell Australia Pty Ltd > 629 Newcastle Street, WA 6007 > PO Box 81, WA 6902 > Leederville > Western Australia > ABN 20 093 846 925 > > Tel + 61 8 9281 6185 > Fax + 61 8 9281 6297 > jacob.delfos at maunsell.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Mon Jan 24 18:50:46 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 24 Jan 2005 21:50:46 -0500 Subject: Configuring MapServer for IIS 6 / Windows 2003 server Message-ID: Dana - There's nothing special you need to do to MapServer. You do need to know how to configure IIS 6, so you have properly set permissions for (a) the MapServer CGI executable to be run as an application and (b) for the account launching that CGI (usually the anonymous Web user account) to have access to the files MapServer needs to read and write. The users who have trouble running MapServer under IIS 6 usually have problems because they don't know how IIS 6 works, not MapServer! - Ed Ed McNierney TopoZone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Dana N Sent: Monday, January 24, 2005 5:24 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Configuring MapServer for IIS 6 / Windows 2003 server Does anyone have a set of instruction, or advice, on configuring MapServer for IIS 6 / Windows 2003. How difficult is it? Thanks. - Dana From jacob.delfos at MAUNSELL.COM Mon Jan 24 18:58:42 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Tue, 25 Jan 2005 10:58:42 +0800 Subject: mapimages have different hue (off-colour) Message-ID: By the way, I'm using php_mapscript42.dll in chameleon 1.0.4. But I have run this config for a year, and I never had this problem. I'm running gdal 1.2.5. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jacob Delfos Sent: 25 January 2005 10:28 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] mapimages have different hue (off-colour) Steve, I don't think this is related, because I'm not working in indexed colour. I did realise one thing I changed recently; I updated my graphics card drivers. I know that that SHOULD not have any effect on the physical image being generated, but.... it would explain why I saw this problem before with two machines where the only difference was that they had different hardware. Is there any connection between graphic card drivers and mapserver? As far as I know, the drivers shouldn't have anything to do with that. Just that I can't think of anything else. Tried viewing the mapimage in photoshop, but no difference. It seems like it uses a whole different library to compress to jpg. If I generate the same image from our production server, it creates a proper image. The good image is smaller in filesize than the bad image, but looks proper, and has a higher count of individual colours. Jacob -----Original Message----- From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Sent: 24 January 2005 22:47 To: Jacob Delfos Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] mapimages have different hue (off-colour) What version of mapserver are you running? Have you looked at this bug? http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=306 Have you tried viewing it on another system, or viewed it in another program like photoshop? -Steve W. Jacob Delfos wrote: > Hi All, > > Got an interesting problem, which I hope someone recognises; My mapimage > has changed hue in the last weeks. I am not sure what I changed to cause > this. Perhaps an external program changed something about how my > computer creates images. However, even if I restore the gdal12.dll file > that I used previously (or any other of the many versions I have), my > image is still off-colour. It is greenish/yellowish compared to the > normal colour. It is still 24bit jpeg, though. But the mapimages from > all php_mapscript based sites that I run from this machine have suddenly > got this greenish tint. > > I suspect it may be something about the overal system, because I once > noticed how different machines (a win2k desktop, and an XP laptop) > generated slightly differently coloured mapimages (different hue, > different saturation), even though both machines were installed with the > exact same mapserver files. I tried running the site using a browser on > the host and on a different machine, but both images look greenish. > > Does anyone know what could affect the hue of the mapimage? Something > global? > > regards, > > Jacob > > > JACOB DELFOS > SPATIAL INFORMATION ANALYST > Maunsell Australia Pty Ltd > 629 Newcastle Street, WA 6007 > PO Box 81, WA 6902 > Leederville > Western Australia > ABN 20 093 846 925 > > Tel + 61 8 9281 6185 > Fax + 61 8 9281 6297 > jacob.delfos at maunsell.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Mon Jan 24 19:01:08 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 24 Jan 2005 22:01:08 -0500 Subject: projection questions Message-ID: Jeff - I looked at your map and I looked at some MapPoint maps. It's hard to tell for sure, but I think Steve's guess that MapPoint is using a transverse Mercator projection is a good one. If it's wrong, the results are pretty similar and you'll be pretty close. The tricky part is that MapPoint seems to use a transverse Mercator projection that is centered on the area viewed - the central meridian of the projection is set to the middle longitude on the map. You can see this by going to MapPoint, zooming out pretty far, then scrolling east and west. Lines that run east-west will curve upward (in the US) from the center, and as you move east and west the center of that curve will remain in the middle of the map image. Unfortunately, as the others have suggested, you do need to learn a little about map projections if you're going to deal with them. What you want can very easily be done by MapServer - you add PROJECTION blocks to each layer describing the INPUT projection of each data set (lat/lon) and you add a PROJECTION block to the map file to describe the OUTPUT projection of the map image (your custom transverse Mercator projection). - Ed Ed McNierney TopoZone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jeff Portwine Sent: Monday, January 24, 2005 3:13 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] projection questions Well, I guess I didn't mean specifically "New England" but the general area.... my map includes most of Pennsylvania, New Jersey, Massachusetts, Conneticut, Vermont, Rhode Island, New York, and part of Maine. It is entirely possible that as you said i'm being misled by the Map Point map... and that I just have to get used to how this looks , but regardless I need to understand what's going on so that when the people I'm doing this for ask me I can explain the difference :) I put up a quick and dirty web page: http://www.aiedail.net/maps so that you can see exactly what I'm talking about (I didn't want to attach images to an email for the entire list). I hope that these images will demonstrate what i've been trying to write in text. I'm not actually using mappoint data to create the map, so I have no idea how they project the data when they generate maps... but I can't really seem to make my output look any different regardless of what I use for output projection. If there is no way to make it look the same that's probably OK, i'm just trying to understand what's happening. Thanks for the time, hope the picture posting helps. -Jeff > ----- Original Message ----- > From: "Ed McNierney" > To: > Sent: Monday, January 24, 2005 2:33 PM > Subject: Re: [UMN_MAPSERVER-USERS] projection questions > > > Jeff - > > You're confusing this New Englander with your definition of "New England" > . It doesn't include Pennsylvania, Pennsylvania doesn't have much of a > coast, and the coast from New York City to Eastport, Maine runs 4.2 > degrees north and 7.0 degrees east, which is quite a bit closer to east > than north, particularly in a lat/lon projection! > > I think you're being misled by your MapPoint map. I'm going to guess that > it uses something like an Albers projection centered on the continent. > This will cause the eastern portions of the US to appear to rotate > counterclockwise. > > As a simple check, the northern borders of Pennsylvania, Connecticut, > Rhode Island, and Massachusetts are all generally straight lines running > east-west at constant latitude. Are they running straight right to left > on your Map Point map, or are they running at an angle? > > Stretching the extents will not reproject the image. If your MapPoint map > doesn't have the Connecticut-Massachusetts border as a right-left line, no > amount of X and Y stretching will rotate it into the place you expect. > > If you want to duplicate the MapPoint map, the first thing you need to do > is find out what projection it uses. It sounds like it is NOT the > projection you think it is, and I don't think it's very productive to try > to guess at it. > > - Ed > > P.S. Please remember to always send replies to the whole list - thanks! > > Ed McNierney > TopoZone.com > > From richard.greenwood at GMAIL.COM Mon Jan 24 20:04:28 2005 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Mon, 24 Jan 2005 21:04:28 -0700 Subject: Configuring MapServer for IIS 6 / Windows 2003 server In-Reply-To: <4BF377919225F449BB097CB76FFE9BC80FCABF@ptolemy.topozone.com> Message-ID: On Mon, 24 Jan 2005 21:50:46 -0500, Ed McNierney wrote: > The users who have trouble running MapServer under IIS 6 usually have > problems because they don't know how IIS 6 works, not MapServer! Ed always says something like that, and then I always post the following two links: http://www.microsoft.com/resources/documentation/WindowsServ/2003/standard/proddocs/en-us/Default.asp?url=/resources/documentation/WindowsServ/2003/standard/proddocs/en-us/ca_enabledynamiccontent.asp and http://www.microsoft.com/resources/documentation/WindowsServ/2003/standard/proddocs/en-us/Default.asp?url=/resources/documentation/WindowsServ/2003/standard/proddocs/en-us/ca_configcgi.asp Look at your IIS (and Active Directory) configuration, not at mapserver, because the "problem" is with IIS. Ed's point is that it's not really a "problem", it's an added level of complexity in Win2003Server/IIS/AD. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From woodbri at SWOODBRIDGE.COM Mon Jan 24 21:00:22 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 25 Jan 2005 00:00:22 -0500 Subject: mapimages have different hue (off-colour) In-Reply-To: <000801c50289$c7002de0$5d2815ac@auper1pc364> Message-ID: Jacob, Mapserver does not interact with any graphic board drivers. I does use dll's for the graphics libraries and it is possible that these might have been changed if you did a windows update or some such thing that replaced the graphics libraries. If this is happening solely on this system, then I would suggest that you should re-install mapserver and its associated libraries. It is possible that a library got damaged or replaced. I would also check that you really are using the same mapfile on both systems, etc. Beyond that, I'm not sure what else I would suggest. -Steve Jacob Delfos wrote: > By the way, I'm using php_mapscript42.dll in chameleon 1.0.4. But I have > run this config for a year, and I never had this problem. I'm > running gdal 1.2.5. > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Jacob Delfos > Sent: 25 January 2005 10:28 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] mapimages have different hue (off-colour) > > > Steve, > > I don't think this is related, because I'm not working in indexed colour. > I did realise one thing I changed recently; I updated my graphics card > drivers. I know that that SHOULD not have any effect on the physical > image being generated, but.... it would explain why I saw this problem > before with two machines where the only difference was that they had > different hardware. > Is there any connection between graphic card drivers and mapserver? As > far as I know, the drivers shouldn't have anything to do with that. Just > that I can't think of anything else. > > Tried viewing the mapimage in photoshop, but no difference. It seems > like it uses a whole different library to compress to jpg. If I generate > the same image from our production server, it creates a proper image. > The good image is smaller in filesize than the bad image, but looks > proper, and has a higher count of individual colours. > > > Jacob > > > > > -----Original Message----- > From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] > Sent: 24 January 2005 22:47 > To: Jacob Delfos > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] mapimages have different hue (off-colour) > > > What version of mapserver are you running? > Have you looked at this bug? > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=306 > Have you tried viewing it on another system, or viewed it in another > program like photoshop? > > -Steve W. > > Jacob Delfos wrote: > > Hi All, > > > > Got an interesting problem, which I hope someone recognises; My mapimage > > has changed hue in the last weeks. I am not sure what I changed to cause > > this. Perhaps an external program changed something about how my > > computer creates images. However, even if I restore the gdal12.dll file > > that I used previously (or any other of the many versions I have), my > > image is still off-colour. It is greenish/yellowish compared to the > > normal colour. It is still 24bit jpeg, though. But the mapimages from > > all php_mapscript based sites that I run from this machine have suddenly > > got this greenish tint. > > > > I suspect it may be something about the overal system, because I once > > noticed how different machines (a win2k desktop, and an XP laptop) > > generated slightly differently coloured mapimages (different hue, > > different saturation), even though both machines were installed with the > > exact same mapserver files. I tried running the site using a browser on > > the host and on a different machine, but both images look greenish. > > > > Does anyone know what could affect the hue of the mapimage? Something > > global? > > > > regards, > > > > Jacob > > > > > > JACOB DELFOS > > SPATIAL INFORMATION ANALYST > > Maunsell Australia Pty Ltd > > 629 Newcastle Street, WA 6007 > > PO Box 81, WA 6902 > > Leederville > > Western Australia > > ABN 20 093 846 925 > > > > Tel + 61 8 9281 6185 > > Fax + 61 8 9281 6297 > > jacob.delfos at maunsell.com > From jacob.delfos at MAUNSELL.COM Mon Jan 24 21:24:23 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Tue, 25 Jan 2005 13:24:23 +0800 Subject: mapimages have different hue (off-colour) Message-ID: Steve, I took your advise and re-installed every single DLL that is associated with mapserver (including all php extensions), and that seems to have done the trick. All my sites look normal again, as opposed to nauseatingly greenish. I am curious which dll was to blame, though. There must be one of the DLL's that are used to encode the jpg compression that is also used by another program, and got overwritten. Thanks for your help. Jacob -----Original Message----- From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Sent: 25 January 2005 13:00 To: Jacob Delfos Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] mapimages have different hue (off-colour) Jacob, Mapserver does not interact with any graphic board drivers. I does use dll's for the graphics libraries and it is possible that these might have been changed if you did a windows update or some such thing that replaced the graphics libraries. If this is happening solely on this system, then I would suggest that you should re-install mapserver and its associated libraries. It is possible that a library got damaged or replaced. I would also check that you really are using the same mapfile on both systems, etc. Beyond that, I'm not sure what else I would suggest. -Steve Jacob Delfos wrote: > By the way, I'm using php_mapscript42.dll in chameleon 1.0.4. But I have > run this config for a year, and I never had this problem. I'm > running gdal 1.2.5. > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Jacob Delfos > Sent: 25 January 2005 10:28 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] mapimages have different hue (off-colour) > > > Steve, > > I don't think this is related, because I'm not working in indexed colour. > I did realise one thing I changed recently; I updated my graphics card > drivers. I know that that SHOULD not have any effect on the physical > image being generated, but.... it would explain why I saw this problem > before with two machines where the only difference was that they had > different hardware. > Is there any connection between graphic card drivers and mapserver? As > far as I know, the drivers shouldn't have anything to do with that. Just > that I can't think of anything else. > > Tried viewing the mapimage in photoshop, but no difference. It seems > like it uses a whole different library to compress to jpg. If I generate > the same image from our production server, it creates a proper image. > The good image is smaller in filesize than the bad image, but looks > proper, and has a higher count of individual colours. > > > Jacob > > > > > -----Original Message----- > From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] > Sent: 24 January 2005 22:47 > To: Jacob Delfos > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] mapimages have different hue (off-colour) > > > What version of mapserver are you running? > Have you looked at this bug? > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=306 > Have you tried viewing it on another system, or viewed it in another > program like photoshop? > > -Steve W. > > Jacob Delfos wrote: > > Hi All, > > > > Got an interesting problem, which I hope someone recognises; My mapimage > > has changed hue in the last weeks. I am not sure what I changed to cause > > this. Perhaps an external program changed something about how my > > computer creates images. However, even if I restore the gdal12.dll file > > that I used previously (or any other of the many versions I have), my > > image is still off-colour. It is greenish/yellowish compared to the > > normal colour. It is still 24bit jpeg, though. But the mapimages from > > all php_mapscript based sites that I run from this machine have suddenly > > got this greenish tint. > > > > I suspect it may be something about the overal system, because I once > > noticed how different machines (a win2k desktop, and an XP laptop) > > generated slightly differently coloured mapimages (different hue, > > different saturation), even though both machines were installed with the > > exact same mapserver files. I tried running the site using a browser on > > the host and on a different machine, but both images look greenish. > > > > Does anyone know what could affect the hue of the mapimage? Something > > global? > > > > regards, > > > > Jacob > > > > > > JACOB DELFOS > > SPATIAL INFORMATION ANALYST > > Maunsell Australia Pty Ltd > > 629 Newcastle Street, WA 6007 > > PO Box 81, WA 6902 > > Leederville > > Western Australia > > ABN 20 093 846 925 > > > > Tel + 61 8 9281 6185 > > Fax + 61 8 9281 6297 > > jacob.delfos at maunsell.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From akrherz at IASTATE.EDU Mon Jan 24 22:05:15 2005 From: akrherz at IASTATE.EDU (Daryl Herzmann) Date: Tue, 25 Jan 2005 00:05:15 -0600 Subject: Installing on Redhat7 In-Reply-To: <006c01c50231$469881a0$b101a8c0@TEHGTWY1> Message-ID: Howdy Tim, Looks like we need to do some tracking. Do you have multiple versions of libgd installed? Make sure that the libgd-devel RPM is not installed... inflateInit is a zlib thing. Perhaps zlib-devel needs to be installed. How did you compile libgd in /usr/local ? daryl On Mon, 24 Jan 2005, Tim Hester wrote: > I've compiled MS and I'm trying to checkout the workshop demo. I'm getting > this in the error_log; > mapserv: relocation error: /usr/local/lib/libgd.so.2: undefined symbol: > inflateInit_ > [Mon Jan 24 10:21:11 2005] [error] [client 192.168.1.1] Premature end of > script headers: /var/www/cgi-bin/mapser > > When I execute mapserv -v from the command line I get; > [root at catcher241 mapserver-4.4.1]# ./mapserv -v > ./mapserv: relocation error: /usr/local/lib/libgd.so.2: undefined symbol: > inflateInit_ > > > Tim Hester > DVA Group, Inc. > 850-872-7099 PC FL Lab > -- /** * Daryl Herzmann (akrherz at iastate.edu) * Program Assistant -- Iowa Environmental Mesonet * http://mesonet.agron.iastate.edu */ From joseluismapserver at YAHOO.ES Tue Jan 25 00:55:59 2005 From: joseluismapserver at YAHOO.ES (Jose Luis Gonzalez) Date: Tue, 25 Jan 2005 09:55:59 +0100 Subject: raster file display error Message-ID: > Hi everyone. > Lets see if someone can tell me what could be wrong. > > I am working with: > MapServer version 4.4.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 > INPUT=GDAL INPUT=SHAPEFILE > I am using java servlets. > > when I use shapefiles :usa1.map it works but when I want to include a > tif file it doesn't work: usa3.map, nitelti020l.tif > > The instructions I use are: > > for the first case that works: > > ... > mapObj map = new mapObj("/mypath/usa1.map"); > imageObj img = map.draw(); > img.save("/mypath/usa1.png", map); > ... > out.println("
"); > > For the second case with raster that doesn't work: > > ... > mapObj map = new mapObj("/mypath/usa3.map"); > imageObj img = map.draw(); > img.save("/mypath/usa3.png", map); > ... > out.println("
"); > > > And here are the mapfiles: > > usa1.map > > MAP > NAME USA1 > STATUS ON > SIZE 800 500 > IMAGETYPE PNG > IMAGECOLOR 240 240 240 > SHAPEPATH "/mypath" > EXTENT -8000000 300000 5000000 1500000 > UNITS METERS > PROJECTION > "proj=lcc" "lat_1=32" "lat_2=44" "lat_0=38" "lon_0=-100" "x_0=0" > "y_0=0" "ellps=GRS80" "datum=NAD83" > END > WEB > IMAGEPATH "/mypath/" > IMAGEURL "/mypath/" > END > > LAYER > NAME "US state boundaries" > TYPE POLYGON > STATUS ON > DATA "statesp020" > PROJECTION > "proj=latlong" > "ellps=GRS80" > "datum=NAD83" > END > CLASS > NAME "US states" > OUTLINECOLOR 60 60 60 > COLOR 255 255 0 > SYMBOL 0 > END > END > > LAYER > NAME "credits" > STATUS DEFAULT > TRANSFORM FALSE > TYPE ANNOTATION > FEATURE > POINTS > 10 480 > END > TEXT 'Made with Mapserver.' > END > CLASS > LABEL > TYPE BITMAP > POSITION CR > COLOR 0 0 0 > END > END > END > END > > usa3.map > > MAP > NAME USA3 > STATUS ON > IMAGETYPE PNG > SIZE 800 500 > SHAPEPATH "/mypath" > EXTENT -6086744.000 -2784127 4278894 4485901 > UNITS METERS > PROJECTION "proj=laea" "lat_0=45" "lon_0=-100" "ellps=GRS80" > "datum=NAD83" END > WEB > IMAGEPATH "/mypath/" > IMAGEURL "/mypath/" > END > LAYER > NAME "Nighttime lights" > TYPE RASTER > STATUS ON > DATA "/mypath/nitelti020l.tif" > END > LAYER > NAME "US state boundaries" > TYPE POLYGON > STATUS ON > DATA "statesp020" > PROJECTION > "proj=latlong" > "ellps=GRS80" > "datum=NAD83" > END > CLASS > NAME "US states" > OUTLINECOLOR 50 50 50 > SYMBOL 0 > END > END > END > Jose Luis --------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From n_faust at INFORMATIK.UNI-KL.DE Tue Jan 25 01:21:05 2005 From: n_faust at INFORMATIK.UNI-KL.DE (Nicole Faust) Date: Tue, 25 Jan 2005 10:21:05 +0100 Subject: Example Maps In-Reply-To: Message-ID: Hello Hal, > But when I try to display the map in my browser I get the > following error message: > > mapserv(): Web application error. No template provided. > I've forgotten the "&mode=map" behind the map file in my browser. But the image is still missing. Regards, Nicole From joseluismapserver at YAHOO.ES Tue Jan 25 01:35:44 2005 From: joseluismapserver at YAHOO.ES (Jose Luis Gonzalez) Date: Tue, 25 Jan 2005 10:35:44 +0100 Subject: raster file error, does not display In-Reply-To: <801A2517-6E24-11D9-B296-000A957A0F9C@vt.edu> Message-ID: Sorry about the 2M file I didn't know it was so bad to send it. Could someone respond to my question anyway, thankyou Jose Luis Abe Gillespie wrote: Ha, you sent a 2Meg file to the list! Begin the chastising! :) On Jan 24, 2005, at 10:33 AM, Jose Luis Gonzalez wrote: > Hi everyone. > Lets see if someone can tell me what could be wrong. > > I am working with: > MapServer version 4.4.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 > INPUT=GDAL INPUT=SHAPEFILE > I am using java servlets. > > when I use shapefiles :usa1.map it works but when I want to include a > tif file it doesn't work: usa3.map, nitelti020l.tif > > The instructions I use are: > > for the first case that works: > > ... > mapObj map = new mapObj("/mypath/usa1.map"); > imageObj img = map.draw(); > img.save("/mypath/usa1.png", map); > ... > out.println(" "); > > For the second case with raster that doesn't work: > > ... > mapObj map = new mapObj("/mypath/usa3.map"); > imageObj img = map.draw(); > img.save("/mypath/usa3.png", map); > ... > out.println(" "); > > > And here are the mapfiles: > > usa1.map > > MAP > NAME USA1 > STATUS ON > SIZE 800 500 > IMAGETYPE PNG > IMAGECOLOR 240 240 240 > SHAPEPATH "/mypath" > EXTENT -8000000 300000 5000000 1500000 > UNITS METERS > PROJECTION > "proj=lcc" "lat_1=32" "lat_2=44" "lat_0=38" "lon_0=-100" "x_0=0" > "y_0=0" "ellps=GRS80" "datum=NAD83" > END > WEB > IMAGEPATH "/mypath/" > IMAGEURL "/mypath/" > END > > LAYER > NAME "US state boundaries" > TYPE POLYGON > STATUS ON > DATA "statesp020" > PROJECTION > "proj=latlong" > "ellps=GRS80" > "datum=NAD83" > END > CLASS > NAME "US states" > OUTLINECOLOR 60 60 60 > COLOR 255 255 0 > SYMBOL 0 > END > END > > LAYER > NAME "credits" > STATUS DEFAULT > TRANSFORM FALSE > TYPE ANNOTATION > FEATURE > POINTS > 10 480 > END > TEXT 'Made with Mapserver.' > END > CLASS > LABEL > TYPE BITMAP > POSITION CR > COLOR 0 0 0 > END > END > END > END > > usa3.map > > MAP > NAME USA3 > STATUS ON > IMAGETYPE PNG > SIZE 800 500 > SHAPEPATH "/mypath" > EXTENT -6086744.000 -2784127 4278894 4485901 > UNITS METERS > PROJECTION "proj=laea" "lat_0=45" "lon_0=-100" "ellps=GRS80" > "datum=NAD83" END > WEB > IMAGEPATH "/mypath/" > IMAGEURL "/mypath/" > END > LAYER > NAME "Nighttime lights" > TYPE RASTER > STATUS ON > DATA "/mypath/nitelti020l.tif" > END > LAYER > NAME "US state boundaries" > TYPE POLYGON > STATUS ON > DATA "statesp020" > PROJECTION > "proj=latlong" > "ellps=GRS80" > "datum=NAD83" > END > CLASS > NAME "US states" > OUTLINECOLOR 50 50 50 > SYMBOL 0 > END > END > END > > > --------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From n_faust at INFORMATIK.UNI-KL.DE Tue Jan 25 02:00:03 2005 From: n_faust at INFORMATIK.UNI-KL.DE (Nicole Faust) Date: Tue, 25 Jan 2005 11:00:03 +0100 Subject: installation problems [was Re: Example Maps] In-Reply-To: Message-ID: Hello Hal, > I haven't seen the "Web application error. No template provided." > message; I can't help with interpreting that. Anybody? I've only forgotten the "&mode=map" in the URL while I wanted to display the map. > I am also baffled by the "duplicate name - ms_newmapobj in > /home/n_faust/software/projekt/htdocs/phpinfo_mapscript.phtml on line > 21" errors, since the code you posted appears to have only 15 lines. The file that caused these errors was a test file - I added it to the attachement (files.tar.gz). > The devil is probably in the details. It would be helpful if you > would post the unedited, exact text of the .MAP and .PHP files you're > using, together with the URL that we could use to view the result. > > My hunch is still that you are having some sort of hiccup with a path. The unedited .MAP and .PHP files (from the site http://www.mobilegeographics.com/mapserver/) can be found in files.tar.gz My versions (where I tried to adjust the shape- and imagepath) can be found in mod_files.tar.gz The DocumentRoot of Apache is: /home/n_faust/software/projekt/htdocs. karten is a subdirectory of the DocumentRoot where the .MAP, .PHP / .PHTML, .SHP and .SHX files are stored. You have only to adjust the name of the file you want to display in the following URL: http://rockster.informatik.uni-kl.de:8081/cgi-bin/mapserv?map=karten/usa2.map&mode=map > Are you running in a virtual server environment? That is, are there > multiple domains hosted on the machine you're using? No, I'm not running a virtual server environment. Regards, Nicole -------------- next part -------------- A non-text attachment was scrubbed... Name: files.tar.gz Type: application/x-gunzip Size: 2835 bytes Desc: URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mod_files.tar.gz Type: application/x-gunzip Size: 3605 bytes Desc: URL: From jlacroix at DMSOLUTIONS.CA Mon Jan 24 06:19:25 2005 From: jlacroix at DMSOLUTIONS.CA (Julien-Samuel Lacroix) Date: Mon, 24 Jan 2005 09:19:25 -0500 Subject: Export a Web Map Context document? In-Reply-To: <20050123060330.79233.qmail@web80109.mail.yahoo.com> Message-ID: Hello, I'm not aware of any tool that will convert one to the other automatically. Currently, as you guessed, the saveMapContext() function only saves the WMS layers in the WMC. This is because it is designed to be used on the client side. So you may either write the WMC file by hand from the Capabilities or build a WMS-client mapfile and save the WMC file from it. Thanks Julien Matthew Perry wrote: > Hello all, > > I have mapserver set up as a WMS server.... Is there > a way to output a WMC (Web Map Context) document > containing all of the layers in my mapfile at the > default extent? So far I have tried 2 things with > disappointing results: > > 1) PHP/Mapcript's $map->saveMapContext() method ... > this only outputs layers that mapserver accesses as a > WMS client (ie only *cascaded* WMS layers are shown). > > 2) adding "wms_getcontext_enabled" "1" to the > map->web->metadata allows me to do a > request=GetContext but I get the same result as (1). > > So for all you OGC gurus out there, Is there any way > to convert a WMS-server-enabled mapfile OR a > "Capabilities" XML to a WMC?? I guess the ideal > solution would be to generate a WMC document based on > the capabilties document. I suppose I could do it by > hand but I'm just wondering if there is an easier way? > > > Thanks alot, > > Matt Perry > Humboldt State University > -- ------------------------------------------------------------ Julien-Samuel Lacroix jlacroix at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From jlacroix at DMSOLUTIONS.CA Mon Jan 24 06:52:23 2005 From: jlacroix at DMSOLUTIONS.CA (Julien-Samuel Lacroix) Date: Mon, 24 Jan 2005 09:52:23 -0500 Subject: Error Message In-Reply-To: <000a01c50093$5f3a0e80$3101a8c0@laptop> Message-ID: Hi, Is your mapfile readable by the webserver user? Your Itasca demo is proably not configured correctly. In the URL build by the initializing button, there'a a mapfile path. Is this path point the the right mapfile? Thanks Julien Sacha Genoud wrote: > Hi! > > Could someone explain me the follwing error message of Mapserver V4.4.1 > dMapString(): Unable to access file. > This appears when i click on Itascas initiallizing button. > > Thanks! > > Sacha Genoud -- ------------------------------------------------------------ Julien-Samuel Lacroix jlacroix at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From mercutio at POBOX.COM Tue Jan 25 02:51:39 2005 From: mercutio at POBOX.COM (Aaron Craig) Date: Tue, 25 Jan 2005 11:51:39 +0100 Subject: Showing some text in a layer Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 In my mapfile, I've defined a layer: LAYER TYPE LINE STATUS DEFAULT NAME "museum_label" CONNECTION 'user=postgres dbname=postgis_sardegna' CONNECTIONTYPE POSTGIS DATA 'point_geom from museum' LABELITEM "name" CLASS ~ LABEL ~ COLOR 0 0 0 ~ TYPE TRUETYPE ~ FONT arial ~ SIZE 10 ~ ANTIALIAS TRUE ~ POSITION CC ~ PARTIALS FALSE ~ MINDISTANCE 10 ~ BUFFER 1 END # end of label END END The museum table looks like: postgis_sardegna=# \d museum ~ Table "public.museum" ~ Column | Type | Modifiers - ------------+------------------------+----------- ~ id | integer | ~ name | character varying(255) | ~ xdb_id | integer | ~ point_geom | geometry | Check constraints: ~ "enforce_srid_point_geom" CHECK (srid(point_geom) = -1) ~ "enforce_geotype_point_geom" CHECK (geometrytype(point_geom) = 'POINT'::text OR point_geom IS NULL) But the layer does not display. In the mapfile, it is the last layer to be declared, so it should be rendered last (on top), correct? Another layer that shows labels does work. The syntax for the layer is the same, leading me to believe that my mapfile syntax is ok. The working layer's underlying table's geometry column is MULTIPOLYGON instead of POINT. Could that be the problem? Thanks. - -- Aaron Craig mercutio at pobox.com =========================================================== Get Firefox! http://www.spreadfirefox.com/?q=affiliates&id=0&t=1 =========================================================== - -=-=- I am but mad north-northwest: when the wind is southerly I know a hawk from a handsaw. --Hamlet, II:2 - -=-=- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFB9iS7oyEQRcU83p4RAjIaAKCHW/NKMTrRueEz3NGBBBxSTqqX/ACcCGYi z4jh9xXhwvQyLvbPB4AC2gQ= =DhU0 -----END PGP SIGNATURE----- From arnulf.christl at CCGIS.DE Tue Jan 25 03:03:43 2005 From: arnulf.christl at CCGIS.DE (Arnulf Christl (CCGIS)) Date: Tue, 25 Jan 2005 12:03:43 +0100 Subject: Windows Mapserver binaries broken In-Reply-To: Message-ID: Hi, the mapserv executable is very small & don't work?! 27.12.2004 23:47 36.864 mapserv.exe Found on: http://mapserver.gis.umn.edu/win32bin/ms441oci.zip http://mapserver.gis.umn.edu/win32bin/ms441pg.zip Best, Arnulf. From n_faust at INFORMATIK.UNI-KL.DE Tue Jan 25 03:16:53 2005 From: n_faust at INFORMATIK.UNI-KL.DE (Nicole Faust) Date: Tue, 25 Jan 2005 12:16:53 +0100 Subject: installation problems [was Re: Example Maps] Message-ID: Hello, > > The devil is probably in the details. It would be helpful if you > > would post the unedited, exact text of the .MAP and .PHP files you're > > using, together with the URL that we could use to view the result. > > > > My hunch is still that you are having some sort of hiccup with a path. > > The unedited .MAP and .PHP files > (from the site http://www.mobilegeographics.com/mapserver/) > can be found in files.tar.gz > My versions (where I tried to adjust the shape- and imagepath) can be > found in mod_files.tar.gz I made some tests and changed the path in the WEB section of the .MAP file. I also commented out the second line in the .PHTML files. Now I can display the images that are generated from the mapserver integrated into the .PHTML file. I think there's something wrong with the PHP/Mapscript installation or configuration. But I don't know what. I followed the installation steps on the site http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI section "Running only PHPMapScript scripts as a CGI". But when I try to display the .MAP file directly (see URL below) the image is still missing. Any ideas? (I attached the edited files to this email.) > The DocumentRoot of Apache is: /home/n_faust/software/projekt/htdocs. > karten is a subdirectory of the DocumentRoot where the .MAP, .PHP / > .PHTML, .SHP and .SHX files are stored. > You have only to adjust the name of the file you want to display in the > following URL: > http://rockster.informatik.uni-kl.de:8081/cgi-bin/mapserv?map=karten/usa2.map&mode=map Regards, Nicole -------------- next part -------------- A non-text attachment was scrubbed... Name: files-new.tar.gz Type: application/x-gunzip Size: 3430 bytes Desc: URL: From n_faust at INFORMATIK.UNI-KL.DE Tue Jan 25 03:22:13 2005 From: n_faust at INFORMATIK.UNI-KL.DE (Nicole Faust) Date: Tue, 25 Jan 2005 12:22:13 +0100 Subject: installation problems [was Re: Example Maps] In-Reply-To: Message-ID: Hello, I made a little mistake, sorry. > I think there's something wrong with the PHP/Mapscript installation or > configuration. But I don't know what. I followed the installation steps on > the site http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI > section "Running only PHPMapScript scripts as a CGI". The section I meant was the following: "So how do I reconfigure my PHP as a CGI?" Regards, Nicole From lehrs at ERAU.EDU Tue Jan 25 05:00:42 2005 From: lehrs at ERAU.EDU (steven lehr) Date: Tue, 25 Jan 2005 13:00:42 +0000 Subject: PHP Highlight list of Parcels Passed In Message-ID: Abe: Our mail server got taken off line on Saturday evening and just came up this AM. Thank you for all the help, I will finish your example and post back today/tomorrow. Thanks for the help. Hope to see you at MUM3 in MN. Steve -----Original Message----- From: Abe Gillespie To: MAPSERVER-USERS at LISTS.UMN.EDU Date: Sun, 23 Jan 2005 02:39:07 -0500 Subject: Re: [UMN_MAPSERVER-USERS] PHP Highlight list of Parcels Passed In Um ... yeah, it's late and I'm tired. Please replace "ampersand" with "at symbol" at the appropriate place. :) -Abe On Jan 23, 2005, at 1:44 AM, Abe Gillespie wrote: > Ok, since this list has been so helpful and generous to me in the > past, here is an exhaustive example. I hope this will finally get you > going. Disclaimer: I'm doing this all from memory and w/o testing so > there may be a few errors. > > Setup a map file like this: > > MAP > NAME "Parcel Query" > STATUS on > EXTENT xmin ymin xmax ymax > SIZE 300 300 > SHAPEPATH "/data_path" > IMAGETYPE png > IMAGECOLOR 255 255 255 > > QUERYMAP > STYLE hilite > COLOR 255 0 0 > END > > LAYER > NAME "Parcels" > DATA "parcels" > CLASS > OUTLINECOLOR 0 255 0 > END > TEMPLATE "x" > END > END > > Setup a web page like this: > > > > $parcel_ids = "1|2|3|4|5"; > > if (PHP_OS == "WINNT" || PHP_OS == "WIN32") > dl("php_mapscript.dll"); > else > dl("php_mapscript.so"); > > $map = ms_newMapObj("parcels.map"); > $layer = $map->getLayerByName("parcels"); > > // Query. > $layer->queryByAttributes("", "/".$parcel_ids."/", MS_MULTIPLE); > // If you want to avoid errors when no matches are found use the > ampersand > // in the above statement like this: @$layer->queryByAttributes(); > > // Render an image and get its URL. > $img = $map->drawQuery(); > $url = $img->saveWebImage(MS_PNG, 1, 1, 0); > $img->free(); > ?> > > > > if ($layer->getNumResults() > 0) > echo $layer->getNumResults()." parcels found."; > else > echo "No parcels found."; > ?> > > > > Now that I look at it, the last thing you may have been missing was > the mapObj::queryMap() method. Anyhow, I hope this helps. > > -Abe > > On Jan 22, 2005, at 10:07 PM, Steve Lehr wrote: > >> Abe: >> >> I appreciate the help, still not getting it though. I'm wondering if >> I need >> to draw out the map after rendering? I've sceen other posts but no >> real >> solutions... >> >> I'll start from scratch rather then trying to reuse something I have. >> If >> anyone else has a more complete example I'd really appreciate seeing >> it. >> >> Thanks >> >> Steven Lehr >> Assistant Professor >> Freshmen Program >> College of Engineering >> Embry-Riddle Aeronautical University (LB159) >> 600 S. Clyde Morris Blvd. >> Daytona Beach, FL 32114-3900 >> 386-226-7740 >> >> -----Original Message----- >> From: UMN MapServer Users List >> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On >> Behalf Of Abe Gillespie >> Sent: Saturday, January 22, 2005 8:22 PM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] PHP Highlight list of Parcels >> Passed >> In >> >> >> Something else I noticed. You shouldn't even have to setup a separate >> layer to show queried parcels (though there are ways to do this). I >> suggest starting out with one layer that renders queried and >> non-queried parcels at the same time. Once you get the hang of that >> then you can do two different layers (if you still even want to). >> Make >> the layer like this: >> >> LAYER >> NAME "parcels" >> DATA "parcels" >> STATUS on >> TYPE polygon >> CLASS >> OUTLINECOLOR 0 255 0 >> END >> TEMPLATE "x" # Must be present to query on (though "x" means >> absolutely nothing). >> END >> >> The above layer will render all your parcels green outline with hollow >> fill. Then when you use the PHP code to query it will render your >> queried parcels red. This assumes you have QUERYMAP setup correctly. >> >> -Abe >> >> On Jan 22, 2005, at 7:12 PM, Steve Lehr wrote: >> >>> Abe I've never used the QUERY MAP before, I tried putting it in the >>> layer >>> and it did not like that? >>> >>> My initial layer looks like: >>> >>> I changed my code to pass Pipe delimited. >>> >>> But I'm not quite certian I'm still getting what I need to do to my >>> .map. >>> >>> Thanks for the help..below is the layer repeated my EXPRESSION is >>> trashed I >>> realize. >>> >>>> LAYER >>>> NAME "selected_parcels" >>>> DATA parcels >>>> STATUS DEFAULT >>>> TYPE POLYGON >>>> CLASSITEM QPID >>>> CLASS >>>> EXPRESSION "/%parcels%/" >>>> COLOR 255 0 0 >>>> END >>>> END >>> >>> >>> Steven Lehr >>> Assistant Professor >>> Freshmen Program >>> College of Engineering >>> Embry-Riddle Aeronautical University (LB159) >>> 600 S. Clyde Morris Blvd. >>> Daytona Beach, FL 32114-3900 >>> 386-226-7740 >>> >>> -----Original Message----- >>> From: UMN MapServer Users List >>> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On >>> Behalf Of Abe Gillespie >>> Sent: Saturday, January 22, 2005 7:05 PM >>> To: MAPSERVER-USERS at LISTS.UMN.EDU >>> Subject: Re: [UMN_MAPSERVER-USERS] PHP Highlight list of Parcels >>> Passed >>> In >>> >>> >>> For the red you need to setup the QUERYMAP. For the PHP it will be >>> something like this: >>> >>> $target = >>> use_appropriate_string_func_to_conver_semi_to_pipe($parcels); >>> // $target should look like "1|2|3|4" ... where the numbers are the >>> IDs. >>> $layer = $map->getLayerByName("parcels"); >>> $layer->queryByAttributes("parcel_id_field", "/".$target."/", >>> MS_MULTIPLE); >>> >>> Also, don't forget to add the TEMPLATE "x" tag in your LAYER >>> definition. >>> >>> I'm not a RegEx expert, so someone please put me in check if I'm >>> leading Steven astray. >>> >>> -Abe >>> >>> On Jan 22, 2005, at 6:37 PM, Steve Lehr wrote: >>> >>>> I'm trying to write some PHP that I can send extents and list of >>>> parcels to >>>> get it to highlight the parcels. >>>> >>>> I'd like to highlight all the found parcels in RED. >>>> >>>> My php gets a variable by post called parcels and contains at this >>>> time a >>>> semi colon delimited list of ids in the attribute column QPID of the >>>> parcels.dbf. >>>> >>>> LAYER >>>> NAME "selected_parcels" >>>> DATA parcels >>>> STATUS DEFAULT >>>> TYPE POLYGON >>>> CLASSITEM QPID >>>> CLASS >>>> EXPRESSION "/%parcels%/" >>>> COLOR 255 0 0 >>>> END >>>> END >>>> >>>> >>>> I've got my extents. I've got the list of parcels. Now I want to >>>> highlight >>>> the list of parcels with something like the below. But I have to do >>>> something in php to take that ; delimited list and the turn on all >>>> the >>>> matching attributes. (I belive its a QUERYMAP with MULTIPLE_SELECT) >>>> but I'm >>>> having trouble getting my brain around what I need to code - might >>>> someone >>>> have a sample. >>>> >>>> Thanks >>>> >>>> Steven Lehr >>>> Assistant Professor >>>> Freshmen Program >>>> College of Engineering >>>> Embry-Riddle Aeronautical University (LB159) >>>> 600 S. Clyde Morris Blvd. >>>> Daytona Beach, FL 32114-3900 >>>> 386-226-7740 >>>> >>> >> From Horst.Duester at BD.SO.CH Tue Jan 25 07:41:19 2005 From: Horst.Duester at BD.SO.CH (=?ISO-8859-1?Q?D=FCster_Horst?=) Date: Tue, 25 Jan 2005 16:41:19 +0100 Subject: MapServer and PostGIS 1RC1 Message-ID: Since a time I'm playing with MapServer 4.4.1 and PostGIS 1RC1 with semi success. I'm able to create maps with polygon an line layers from PostGIS, but PostGIS/Postgres crashes with the known error message (see below) when I use a point layer. This crash appears exclusively with point layers. Do there exist any restriction of using PostGIS 1RC1 with MapServer 4.4.1?? I would be appreciate about any hint. With best regards Horst Mapfile snippet: ... LAYER CONNECTIONTYPE POSTGIS CONNECTION 'dbname=xx host=xx user=xx port=5432' DATA "wkb_geometry from asit2 USING UNIQUE ogc_fid USING SRID=-1" TYPE POINT ... msDrawMap(): Image handling error. Failed to draw layer named 'asit2'. msPOSTGISLayerWhichShapes(): Query error. Error executing POSTGIS SQL statement (in FETCH ALL): DECLARE mycursor BINARY CURSOR FOR SELECT ANZ_TOT::text,asbinary(force_collection(force_2d(wkb_geometry)),'NDR'),ogc_f id::text from avt_asit_unfall WHERE wkb_geometry && setSRID('BOX3D(588837.5 213700,648462.5 261400)'::BOX3D, -1 ) -server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. Error with POSTGIS data variable. You specified ''. Standard ways of specifiying are : (1) 'geometry_column from geometry_table' (2) 'geometry_column from () as foo using unique using SRID=' Make sure you put in the 'using unique ' and 'using SRID=#' clauses in. For more help, please see http://postgis.refractions.net/documentation.php Mappostgis.c - version of Jan 23/2004. --------------------------------- ? Dr. Horst D?ster GIS-Koordinator /Amtschef Stv. Kanton Solothurn? Amt f?r Geoinformation Abteilung SO!GIS Koordination Werkhofstr. 65 CH-4509 Solothurn Tel.: ++41 (0)32 627 25 32 Fax: ++41 (0)32 627 22 14 horst.duester at bd.so.ch www.sogis.so.ch From markadams at CUESTASYS.COM Tue Jan 25 08:02:36 2005 From: markadams at CUESTASYS.COM (Mark Adams) Date: Tue, 25 Jan 2005 10:02:36 -0600 Subject: projection woes Message-ID: Hoping someone can help me out with problems I?m having combining data from different projections. I have a set of layers in NAD 27 zone 17, which I?m displaying with a PROJECTION object set at the MAP level with "init=EPSG:26717". I?m trying to add a layer that is in NAD 83 zone 17. If I simply add this layer without specifying a PROJECTION, it displays fine, albeit out of sync with the underlying data due to the datum shift. If I add a PROJECTION object to the LAYER set with "init=EPSG:26917", the layer disappears ? no error in the log file, just no data. The same thing happens if I add a similar PROJECTION object to any other layer ? the data disappears. I?ve gone through the proj installation instructions, I can?t see anything wrong. Any suggestions? Thanks in advance. - Mark Adams markadams at cuestasys.com From palanisamyg at ORNL.GOV Tue Jan 25 08:08:47 2005 From: palanisamyg at ORNL.GOV (Palanisamy, Giri) Date: Tue, 25 Jan 2005 11:08:47 -0500 Subject: Rosa Applet GMap Message-ID: Hi, Thanks for the information, I have installed the GMap sample application in windows IIS server, and I realized the GMap app is setup for apache server. The IIS server could not recognize the "$HTTP_FORM_VARS()" function call, for example for the following line of code (in gmap75inc.php) if ($HTTP_FORM_VARS["ViewRegion"]) {} I am getting the following error: Notice: Undefined index: ViewRegion in f:\Inetpub\wwwroot\gmap\htdocs\gmap75.inc.php on line 275 If I comment out all the lines that contains "$HTTP_FORM_VARS()" then I am able to see the map. There is a similar problem reported in http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0407/msg00115.h tml How do I handle this in IIS? Thanks. Giri -----Original Message----- From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] Sent: Monday, January 24, 2005 5:34 PM To: Palanisamy, Giri Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Rosa Applet There is the GMap application that you can download (http://dl.maptools.org/dl/gmap-ms40.zip). Although It is an old app, It is using php mapscript and rosa. You probably have seen the rosa docs at (http://maptools.org/rosa/index.phtml) : Later, Palanisamy, Giri wrote: > Hi, > > > > Is there a documentation available for php - rosa applet? Can anyone > provide me a sample application that displayes an image using php/rosa > applet which does some zoomin and zoomout functions? > > > > Thanks! > > > > Giri > > > > ------------------------------------------------------------------------ > > *From:* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > *On Behalf Of *Constantin Cristian > *Sent:* Monday, January 24, 2005 3:55 PM > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > *Subject:* Re: [UMN_MAPSERVER-USERS] PHP Mapscript region selection > > > > I don't think you can do it with php only. > > That is an applet they are using but you can also do it with JavaScript: > http://www.inovagis.org/quickwms/ > > > > ----- Original Message ----- > > *From:* Palanisamy, Giri > > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > > > *Sent:* Monday, January 24, 2005 10:21 PM > > *Subject:* [UMN_MAPSERVER-USERS] PHP Mapscript region selection > > > > HI, > > > > I have just started exploring the PHP-mapscript, and got my basic > mapserver demo working (display the image, zoom in, zoom out, and > pan), Is there a way to select a region and zoom-in? instead of > point click zoom? Do I need to have an applet for this?. Can anyone > give me a sample php code that does region selection? > > > > Here is an example that allows region selection > > http://www2.dmsolutions.on.ca/gmap/gmap75.phtml > > I guess this uses java applet. > > > > > > Thanks > > > > Giri > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From jdport at VERITIME.COM Tue Jan 25 08:07:47 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Tue, 25 Jan 2005 11:07:47 -0500 Subject: projection questions Message-ID: I've looked through a lot of information, the links you all sent, and other places on the web, but I simply can't figure out how to get the settings right for projecting my map. I set every layer to "proj=latlong" with no other settings (I'm pretty sure that all the shapefiles I have are lat/long NAD83) and then in the map section I added a projection block. I tried a lot of different settings.... most of them just give me a blank map. I read on one of those web pages that Massachusettes has a standard projection of Lamberts Conformal Conic with 2 latitudes of 41.6 and 42.7. So, I converted my extents over with the cs2cs utility and set my output projection to: PROJECTION "proj=lcc" "lat_1=41.6" "lat_2=42.7" END This actually came out better than anything else I've tried... the extents looked like they were about as correct as I could get them but the entire map was twisted clockwise about 45 degrees.... The rest of my attempts revolved around the Transvers Mercator projection. I tried using UTM: PROJECTION "proj=utm" "ellps=GRS80" "zone=19" "north" "no_defs" END These settings were from an example in the mapserver mapfile documentation, I used zone 19, though the area i'm mapping is right on the line between zone 18 and zone 19. PROJECTION "proj=tmerc" "k=0.9996" "x_0=0" "y_0=500000" "lat_0=42.75" "lon_0=73.8" END I got these settings from http://www.remotesensing.org/geotiff/proj_list/transverse_mercator.html and used the longitude and latitude of Albany as my lat/long of origin since that was roughly in the middle of my map. Of the multitude of attempts I made to get the right settings, these two made the most sense to me based on what I'd read... but they didn't work at all, or perhaps I just screwed up when I was getting my extents. This stuff is really really confusing, adn I'm beginning to wonder if I should just use the lat/long map even though it's not really right and looks funny.... but any pointers on how to get the right settings is really appreciated. -Jeff From palanisamyg at ORNL.GOV Tue Jan 25 08:16:42 2005 From: palanisamyg at ORNL.GOV (Palanisamy, Giri) Date: Tue, 25 Jan 2005 11:16:42 -0500 Subject: [rosa-users] Rosa applet for mapserver Message-ID: Great!, it worked thanks! Giri -----Original Message----- From: Daniel Morissette [mailto:dmorissette at dmsolutions.ca] Sent: Tuesday, January 25, 2005 11:11 AM To: Palanisamy, Giri Cc: rosa-users at lists.maptools.org Subject: Re: [rosa-users] Rosa applet for mapserver Palanisamy, Giri wrote: > > I have installed the GMap sample application in windows IIS server, and > I realized the GMap app is setup for apache server. The IIS server could > not recognize the "$HTTP_FORM_VARS()" function call, for example for the > following line of code (in gmap75inc.php) > > if ($HTTP_FORM_VARS["ViewRegion"]) > {} > > I am getting the following error: > Notice: Undefined index: ViewRegion in > f:\Inetpub\wwwroot\gmap\htdocs\gmap75.inc.php on line 275 > > If I comment out all the lines that contains "$HTTP_FORM_VARS()" then I > am able to see the map. > > Do you know how I can handle this in IIS? > The problem is not specific to IIS: I think it must be because you have E_NOTICE reporting enabled in your php.ini. The simple fix is to disable notices using the following in php.ini: error_reporting = E_ALL & ~E_NOTICE The "right" fix would be to cleanup the GMap code to test if a given array index exists before accessing it, e.g. change the if() statement above to the following: if (isset($HTTP_FORM_VARS["ViewRegion"]) && $HTTP_FORM_VARS["ViewRegion"]) {} Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From fwarmerdam at GMAIL.COM Tue Jan 25 08:17:32 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Tue, 25 Jan 2005 11:17:32 -0500 Subject: projection woes In-Reply-To: Message-ID: On Tue, 25 Jan 2005 10:02:36 -0600, Mark Adams wrote: > Hoping someone can help me out with problems I'm having combining data from > different projections. I have a set of layers in NAD 27 zone 17, which I'm > displaying with a PROJECTION object set at the MAP level > with "init=EPSG:26717". I'm trying to add a layer that is in NAD 83 zone > 17. If I simply add this layer without specifying a PROJECTION, it displays > fine, albeit out of sync with the underlying data due to the datum shift. > If I add a PROJECTION object to the LAYER set with "init=EPSG:26917", the > layer disappears ? no error in the log file, just no data. The same thing > happens if I add a similar PROJECTION object to any other layer ? the data > disappears. > > I've gone through the proj installation instructions, I can't see anything > wrong. Mark, For this to work you need datum shifting working. The key to datum shifting is that at runtime PROJ.4 (used by MapServer) needs to find the NAD27 grid shift files. Default installs of PROJ.4 don't even include the grid shift files. When they are present the main one is named "conus" (for Continental US). On unix it would be found in /usr/local/share/proj by default. If you have the file, it might still not be found. If this is the problem then you need to define the PROJ_LIB environment variable to point to the directory where the file is located. You likely don't need to do this if your EPSG lookups are working as the EPSG lookup file is in the same place as the grid shift files. If you have all that in place, and things are still not working then it might be related incomplete coordinate system definitions in one of your PROJECTION blocks. Is both your UTM 17 NAD27 layer and your map as a whole defined with init=EPSG:26717? If you emailed me your .map file I could make a quick inspection that you have complete definitions everywhere. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From woodbri at SWOODBRIDGE.COM Tue Jan 25 08:26:20 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 25 Jan 2005 11:26:20 -0500 Subject: projection woes In-Reply-To: Message-ID: Mark, A couple of things you need to know, in case you don't already. The PROJECTION block in the MAP section of the file is your output projection. It does absolutely nothing unless you also have a projection block defined in some of you LAYER blocks and it is different than the output projection requested. Any LAYER that does NOT have a PROJECTION block is assumed to be the same as the output PROJECTION. Also, your EXTENTS need to be defined in the OUTPUT projection space NOT the INPUT projection space. ALSO and CGI parameters need to be specified in the OUTPUT projection space also. So, if you do not have more than one projection space defined in your mapfile, then NO projections are occurring. Also from you description below, "NAD 27 zone 17" implies that you data is in A) NAD 27 datum AND B) in a UTM zone 17 projection. Are you sure your NAD 83 data layer is also in UTM Zone 17 projection OR is it unprojected lat,long data? Typically, UTM data has coordinates like 1000000, 800000 and lat,long data has coordinates like +-90.0, +-180.0. If you point disappears when you turn on a projection it typically means that it skewed way off the your other data because you have specified a projection that does not really match the data you applied it to. I would go back and verify that your data is in the projection that you are claiming it is in. -Steve W. Mark Adams wrote: > Hoping someone can help me out with problems I?m having combining data from > different projections. I have a set of layers in NAD 27 zone 17, which I?m > displaying with a PROJECTION object set at the MAP level > with "init=EPSG:26717". I?m trying to add a layer that is in NAD 83 zone > 17. If I simply add this layer without specifying a PROJECTION, it displays > fine, albeit out of sync with the underlying data due to the datum shift. > If I add a PROJECTION object to the LAYER set with "init=EPSG:26917", the > layer disappears ? no error in the log file, just no data. The same thing > happens if I add a similar PROJECTION object to any other layer ? the data > disappears. > > I?ve gone through the proj installation instructions, I can?t see anything > wrong. > > Any suggestions? > > Thanks in advance. > > - Mark Adams > markadams at cuestasys.com > From mercutio at POBOX.COM Tue Jan 25 08:39:26 2005 From: mercutio at POBOX.COM (Aaron Craig) Date: Tue, 25 Jan 2005 17:39:26 +0100 Subject: Showing some text in a layer In-Reply-To: <41F65519.5040800@dmsolutions.ca> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 ANNOTATION did the trick. Thanks so much! Julien-Samuel Lacroix wrote: | Hi, | | I'm far from a PostGIS expert, but I notice 2 problems in your layer. | 1. Your layer type is LINE, but in your table you seem to have a POINT | layer. Am I right? So if you want to show points you should use | TYPE POINT | or if you only want to show the labels, you should use: | TYPE ANNOTATION | | 2. You don't have any style in your class. For LINE and POINT types, you | should have a STYLE in your class. | | Thanks | Julien | - -- Aaron Craig mercutio at pobox.com =========================================================== Get Firefox! http://www.spreadfirefox.com/?q=affiliates&id=0&t=1 =========================================================== - -=-=- Its not enough to speak, but to speak true -- Midsummer Night's Dream, Act v, Sc.1 - -=-=- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFB9nY+oyEQRcU83p4RAqqMAJ9KotW9jBHZE3OfyXrdHESz40mUNACfeL3O HpHnxyOcOU44Dvymk1XbyDk= =UlwJ -----END PGP SIGNATURE----- From nhv at CAPE.COM Tue Jan 25 08:55:20 2005 From: nhv at CAPE.COM (Norman Vine) Date: Tue, 25 Jan 2005 11:55:20 -0500 Subject: projection questions In-Reply-To: <006701c502f8$02e90de0$1bf2fbd0@solo> Message-ID: Jeff Portwine writes: > > I've looked through a lot of information, the links you all sent, and other > places on the web, but I simply can't figure out how to get the settings > right for projecting my map. > This > stuff is really really confusing, adn I'm beginning to wonder if I should > just use the lat/long map even though it's not really right and looks > funny.... but any pointers on how to get the right settings is really > appreciated. maybe this will help http://erg.usgs.gov/isb/pubs/MapProjections/projections.html hint "What projection would the USGS use for your map ?" Norman From s-bel at VILLE-THONON.FR Tue Jan 25 09:01:05 2005 From: s-bel at VILLE-THONON.FR (=?iso-8859-1?Q?Bel_S=E9bastien?=) Date: Tue, 25 Jan 2005 18:01:05 +0100 Subject: access to KEYIMAGE from Class object in mapscript Message-ID: > I've tried to use it as following : > -> mapfile : > ..... > LAYER # RASTER 2 > GROUP IGN > NAME 'Nord-ouest' > DATA IgnScan25/G092_052.tif > STATUS DEFAULT > TYPE RASTER > PROJECTION > "init=epsg-dist:27572" > END > CLASS > NAME 'Nord-ouest' > KEYIMAGE 'ignG.gif' > END > END # END RASTER 2 > .... > > -> code : > ...... > $classes = $currentLayer->getClasses(); > foreach ($classes as $class) { > $layImgUrl = $class->keyimage; > error_log('main.phtml > icon get from keyimage = '.$layImgUrl,0); > .... > } > ..... > > > $class->keyimage return always a null string in spite of KEYIMAGE keyword in the class section... > > Perhaps $classObj->keyimage doesn't implemented ? > > Does somebody know the answer ? > > Thanks. > Sebastien > > -----Message d'origine----- > De: Lowell Filak [SMTP:lfilak at medinaco.org] > Date: vendredi 14 janvier 2005 17:07 > ?: Bel S?bastien; MAPSERVER-USERS at LISTS.UMN.EDU > Objet: Re: [UMN_MAPSERVER-USERS] access to KEYIMAGE from Class object in mapscript > > I believe "keyimage" should be a member of classobj.? > > Lowell > > The following message was sent by =?iso-8859-1?Q?Bel_S=E9bastien?= > on Fri, 14 Jan 2005 11:23:27 +0100. > > > Hi list, > > > > i'd like to retreive the keyimage value of a class from my mapfile > using > php. > > i've not found any attributs or method into the Class object of > > phpmapscript > > to do that. > > > > how is it possible ? > > > > Thank's for your help. > > > > S?bastien > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From superbla3000 at GMX.NET Tue Jan 25 09:03:08 2005 From: superbla3000 at GMX.NET (joerg pfeiffer) Date: Tue, 25 Jan 2005 18:03:08 +0100 Subject: PHP Mapscript region selection In-Reply-To: <74700A2004B18A459CDA46BF6BDEDEF5E9FD79@ORNLEXCHANGE.ornl.gov> Message-ID: Palanisamy, Giri schrieb: > HI, > > > > I have just started exploring the PHP-mapscript, and got my basic > mapserver demo working (display the image, zoom in, zoom out, and pan), > Is there a way to select a region and zoom-in? instead of point click > zoom? Do I need to have an applet for this?. Can anyone give me a sample > php code that does region selection? > > > > Here is an example that allows region selection > > http://www2.dmsolutions.on.ca/gmap/gmap75.phtml > > I guess this uses java applet. > It should also work with a resizable rectangle in dhtml and phpmapscript zoomrec function.... so you don't need all those applet scripts... joerg From markadams at CUESTASYS.COM Tue Jan 25 09:10:45 2005 From: markadams at CUESTASYS.COM (Mark Adams) Date: Tue, 25 Jan 2005 12:10:45 -0500 Subject: projection woes In-Reply-To: <931f8ea9050125081751dbf0c3@mail.gmail.com> Message-ID: I've included my map file below. Regarding Stephen Woodbridge's response, the data in all files is in zone 17, the only difference is the datum; and I can confirm that the data really is there. As I indicated, if I don't include the projection block on the layer the data shows, just shifted because of the different datum. (Also working with it in ArcMap etc.) If it's likely that that I either don't have the right files, or for some reason they aren't being found, how can I test this, and how do I know which files I need? Incidentally, I installed proj.4 from the proj446_win32_bin.zip distribution; and I'm running on Win2000, IIS 5. -----map file------ # # Start of map file # MAP NAME "MVCA_GeoPortal" STATUS ON EXTENT 433350 4813769 546722 4889572 SIZE 682 456 #SIZE 674 474 SHAPEPATH "..\Data\Shapefiles" #TEMPLATEPATTERN "MVCA_GeoPortal" SYMBOLSET "GeoPortal.symbols" #fonset added AD 13-Jul-04 FONTSET "GeoPortal.fonts" #IMAGETYPE PNG #IMAGETYPE swf #IMAGETYPE png24bit IMAGETYPE gif #IMAGECOLOR 255 255 255 UNITS METERS OUTPUTFORMAT NAME gif DRIVER "GD/GIF" MIMETYPE "image/gif" IMAGEMODE PC256 EXTENSION "gif" TRANSPARENT ON END OUTPUTFORMAT NAME png24bit DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE rgb FORMATOPTION "INTERLACE=OFF" END OUTPUTFORMAT NAME swf DRIVER "SWF" MIMETYPE "application/x-shockwave-flash" EXTENSION "swf" IMAGEMODE PC256 FORMATOPTION "OUTPUT_MOVIE=SINGLE" END # # Start of web interface definition (including WMS enabling metadata) # WEB #MINSCALE 500 MAXSCALE 1550000 IMAGEPATH "C:\Inetpub\wwwroot\tmp\" IMAGEURL "/tmp/" HEADER "templates/header.html" FOOTER "templates/footer.html" TEMPLATE "set in index.html" METADATA "WMS_TITLE" "MVCA MapServer GeoPortal" "WMS_ABSTRACT" "This is MapServer application using data from Maitland Valley Conservation Authority." "WMS_ACCESSCONSTRAINTS" "none" "WMS_ONLINERESOURCE" "http://navigator/cgi-bin/mapserv.exe?map=C:\Inetpub\wwwroot\mapserver_demos\MVCA_GeoPortal\config\MVCA_GeoPortal.map&" "WMS_SRS" "EPSG:26717" END END # # Start of reference map # REFERENCE IMAGE "reference.png" EXTENT 433350 4813769 534792 4889572 SIZE 168 118 #SIZE 84 59 STATUS ON #COLOR 175 175 208 COLOR -1 -1 -1 OUTLINECOLOR 175 175 208 MINBOXSIZE 5 MAXBOXSIZE 500 MARKER "star" MARKERSIZE 8 END # # Projection definition, consult the PROJ.4 documentation for parameter discussion # PROJECTION # proj=utm # ellps=GRS80 # zone=15 # north # no_defs # # OR: # # init=epsg:26915 "init=EPSG:26717" END # # Start of legend # LEGEND STATUS ON KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END TEMPLATE "legend.html" END # # Start of scalebar # SCALEBAR STATUS ON POSITION LR POSTLABELCACHE TRUE #BACKGROUNDCOLOR 166 202 240 BACKGROUNDCOLOR 254 219 67 COLOR 0 0 156 OUTLINECOLOR 166 202 240 TRANSPARENT ON #IMAGECOLOR 0 0 0 UNITS KILOMETERS INTERVALS 4 SIZE 200 8 STYLE 0 LABEL SIZE SMALL COLOR 0 0 156 ANTIALIAS TRUE OUTLINECOLOR 254 219 67 #SHADOWCOLOR 166 202 240 #SHADOWSIZE 3 3 END END # # Start of layer definitions # #1 LAYER NAME "Municipal_Boundaries" #GROUP "MUNICIPALBOUNDARY" STATUS ON DATA "municip_new2001" TYPE POLYGON TRANSPARENCY 50 TEMPLATE "null" LABELITEM "township" LABELMINSCALE 300000 # LABELANGLEITEM METADATA "WMS_TITLE" "Municipal Boundaries MVCA" "WMS_ABSTRACT" "Depicts Municipal Boundaries in MVCA watershed as of 2001." "WMS_SRS" "EPSG:26717" END CLASS NAME "Municipal_Boundaries" LABEL TYPE truetype FONT "Arial_bold" SIZE 8 POSITION CC COLOR 128 128 64 #ANGLE AUTO ANTIALIAS TRUE END STYLE #COLOR 247 235 208 SYMBOL 'circle' OUTLINECOLOR 128 128 64 SIZE 4 END STYLE COLOR 247 235 208 OUTLINECOLOR 128 128 64 END END END #9 LAYER NAME "Urban Areas" STATUS ON DATA "mv_builtup_areas" #DATA "\\Navigator\C\Inetpub\wwwroot\mapserver_demos\MS_GeoPortal\Data\Shapefiles\mv_builtup_areas" #FILTER ('[name]' =~ /(a|A)(t|T)(W|w)(o|O)(o|O)(d|D)/) #FILTER ('[name]' = 'Atwood') TYPE POLYGON #TRANSPARENCY 50 TOLERANCE 25 TEMPLATE "null" METADATA "WMS_TITLE" "Urban Areas in MVCA Watershed" "WMS_ABSTRACT" "Depicts Urban Areas in the MVCA watershed." "WMS_SRS" "EPSG:26717" END CLASS NAME "Urban Areas" STYLE #COLOR 255 211 127 OUTLINECOLOR 127 127 127 SYMBOL 'circle' SIZE 2 END STYLE COLOR 255 211 127 OUTLINECOLOR 127 127 127 END END END #3 LAYER NAME "Lot Boundaries" STATUS OFF DATA "wlotarea_sort" TYPE POLYGON TEMPLATE "null" #TRANSPARENCY 30 METADATA "WMS_TITLE" "Whole Lot Boundaries MVCA" "WMS_ABSTRACT" "Depicts Whole Lot Boundaries in MVCA watershed." "WMS_SRS" "EPSG:26717" END CLASS NAME "Lot Boundaries" #MAXSCALE 100000 STYLE #COLOR 247 235 208 OUTLINECOLOR 104 104 104 #SIZE 3 END END END #5 LAYER NAME "MVCA Watershed" STATUS ON DATA "mv_wthsd" TYPE POLYGON #TOLERANCE 25 TEMPLATE "null" METADATA "WMS_TITLE" "MVCA Watershed Boundary" "WMS_ABSTRACT" "Depicts limits of the MVCA watershed." "WMS_SRS" "EPSG:26717" END CLASS NAME "MVCA Watershed" STYLE # COLOR 247 235 208 SIZE 2 OUTLINECOLOR 230 152 0 END END END LAYER NAME "SVCA Watershed" STATUS ON DATA "svca_bnd" TYPE POLYGON #TOLERANCE 25 PROJECTION # "proj=utm" # "ellps=GRS80" # "zone=17" # "north" # "no_defs" "init=EPSG:26917" END TEMPLATE "null" METADATA "WMS_TITLE" "SVCA Watershed Boundary" "WMS_ABSTRACT" "Depicts limits of the SVCA watershed." "WMS_SRS" "EPSG:26917" END CLASS NAME "SVCA Watershed" STYLE # COLOR 247 235 208 SIZE 2 OUTLINECOLOR 230 152 0 END END END #6 LAYER NAME "MVCA Subwatersheds" STATUS OFF DATA "mv_sub_basins" TYPE POLYGON #TOLERANCE 25 TEMPLATE "null" METADATA "WMS_TITLE" "MVCA Watershed Boundary" "WMS_ABSTRACT" "Depicts limits of the MVCA subwatersheds." "WMS_SRS" "EPSG:26717" END CLASS NAME "MVCA Subwatersheds" STYLE # COLOR 247 235 208 OUTLINECOLOR 230 152 0 END END END #16 LAYER NAME "Roads" STATUS ON DATA "wroad" TYPE LINE TOLERANCE 25 TEMPLATE "null" MAXSCALE 300000 METADATA "WMS_TITLE" "MVCA Roads" "WMS_ABSTRACT" "MVCA Roads data." "WMS_SRS" "EPSG:26917" END # LABELITEM length # LABELMAXSCALE 10000 CLASS NAME "Roads" STYLE SYMBOL "circle" COLOR 0 0 0 SIZE 2 END # LABEL # TYPE truetype # SIZE 8 # FONT "arial" # SIZE SMALL # ANGLE AUTO # POSITION UL # COLOR 80 180 165 # ANTIALIAS TRUE # END END END #22 #The query highlighting QUERYMAP STATUS ON STYLE HILITE COLOR 255 0 128 END END ------------------------------ Mark Adams Business & Systems Analyst Cuesta Systems Inc. 5230 South Service Road Burlington, ON L7L 5K2 Phone: 905-333-4544 x14 Fax: 905-333-0455 Email: markadams at cuestasys.com -----Original Message----- From: Frank Warmerdam [mailto:fwarmerdam at gmail.com] Sent: Tuesday, January 25, 2005 11:18 AM To: Mark Adams Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] projection woes On Tue, 25 Jan 2005 10:02:36 -0600, Mark Adams wrote: > Hoping someone can help me out with problems I'm having combining data from > different projections. I have a set of layers in NAD 27 zone 17, which I'm > displaying with a PROJECTION object set at the MAP level > with "init=EPSG:26717". I'm trying to add a layer that is in NAD 83 zone > 17. If I simply add this layer without specifying a PROJECTION, it displays > fine, albeit out of sync with the underlying data due to the datum shift. > If I add a PROJECTION object to the LAYER set with "init=EPSG:26917", the > layer disappears ? no error in the log file, just no data. The same thing > happens if I add a similar PROJECTION object to any other layer ? the data > disappears. > > I've gone through the proj installation instructions, I can't see anything > wrong. Mark, For this to work you need datum shifting working. The key to datum shifting is that at runtime PROJ.4 (used by MapServer) needs to find the NAD27 grid shift files. Default installs of PROJ.4 don't even include the grid shift files. When they are present the main one is named "conus" (for Continental US). On unix it would be found in /usr/local/share/proj by default. If you have the file, it might still not be found. If this is the problem then you need to define the PROJ_LIB environment variable to point to the directory where the file is located. You likely don't need to do this if your EPSG lookups are working as the EPSG lookup file is in the same place as the grid shift files. If you have all that in place, and things are still not working then it might be related incomplete coordinate system definitions in one of your PROJECTION blocks. Is both your UTM 17 NAD27 layer and your map as a whole defined with init=EPSG:26717? If you emailed me your .map file I could make a quick inspection that you have complete definitions everywhere. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From mtperry78 at SBCGLOBAL.NET Tue Jan 25 09:31:55 2005 From: mtperry78 at SBCGLOBAL.NET (Matthew Perry) Date: Tue, 25 Jan 2005 09:31:55 -0800 Subject: projection woes In-Reply-To: <004401c50300$d2ad8e40$1300a8c0@cuestasys.com> Message-ID: You might try using "init=epsg:26717" instead of "init=EPSG:26717". I know that some versions of mapserver are picky about this capitalization. Other than that, your mapfile looks like it should work. Matt Perry Humboldt State University --- Mark Adams wrote: > I've included my map file below. > > Regarding Stephen Woodbridge's response, the data in > all files is in zone 17, the only difference is the > datum; and I can confirm that the data really is > there. As I indicated, if I don't include the > projection block on the layer the data shows, just > shifted because of the different datum. (Also > working with it in ArcMap etc.) > > If it's likely that that I either don't have the > right files, or for some reason they aren't being > found, how can I test this, and how do I know which > files I need? Incidentally, I installed proj.4 from > the proj446_win32_bin.zip distribution; and I'm > running on Win2000, IIS 5. > > > -----map file------ > > # > # Start of map file > # > MAP > NAME "MVCA_GeoPortal" > STATUS ON > EXTENT 433350 4813769 546722 4889572 > SIZE 682 456 > #SIZE 674 474 > SHAPEPATH "..\Data\Shapefiles" > #TEMPLATEPATTERN "MVCA_GeoPortal" > SYMBOLSET "GeoPortal.symbols" > #fonset added AD 13-Jul-04 > FONTSET "GeoPortal.fonts" > #IMAGETYPE PNG > #IMAGETYPE swf > #IMAGETYPE png24bit > IMAGETYPE gif > #IMAGECOLOR 255 255 255 > UNITS METERS > OUTPUTFORMAT > NAME gif > DRIVER "GD/GIF" > MIMETYPE "image/gif" > IMAGEMODE PC256 > EXTENSION "gif" > TRANSPARENT ON > END > OUTPUTFORMAT > NAME png24bit > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE rgb > FORMATOPTION "INTERLACE=OFF" > END > OUTPUTFORMAT > NAME swf > DRIVER "SWF" > MIMETYPE "application/x-shockwave-flash" > EXTENSION "swf" > IMAGEMODE PC256 > FORMATOPTION "OUTPUT_MOVIE=SINGLE" > END > # > # Start of web interface definition (including WMS > enabling metadata) > # > WEB > #MINSCALE 500 > MAXSCALE 1550000 > IMAGEPATH "C:\Inetpub\wwwroot\tmp\" > IMAGEURL "/tmp/" > HEADER "templates/header.html" > FOOTER "templates/footer.html" > TEMPLATE "set in index.html" > METADATA > "WMS_TITLE" "MVCA MapServer GeoPortal" > "WMS_ABSTRACT" "This is MapServer > application using data from Maitland Valley > Conservation Authority." > "WMS_ACCESSCONSTRAINTS" "none" > "WMS_ONLINERESOURCE" > "http://navigator/cgi-bin/mapserv.exe?map=C:\Inetpub\wwwroot\mapserver_demos\MVCA_GeoPortal\config\MVCA_GeoPortal.map&" > "WMS_SRS" "EPSG:26717" > END > END > # > # Start of reference map > # > REFERENCE > IMAGE "reference.png" > EXTENT 433350 4813769 534792 4889572 > SIZE 168 118 > #SIZE 84 59 > STATUS ON > > #COLOR 175 175 208 > COLOR -1 -1 -1 > OUTLINECOLOR 175 175 208 > MINBOXSIZE 5 > MAXBOXSIZE 500 > MARKER "star" > MARKERSIZE 8 > END > > # > # Projection definition, consult the PROJ.4 > documentation for parameter discussion > # > PROJECTION > # proj=utm > # ellps=GRS80 > # zone=15 > # north > # no_defs > # > # OR: > # > # init=epsg:26915 > "init=EPSG:26717" > END > # > # Start of legend > # > LEGEND > STATUS ON > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > TEMPLATE "legend.html" > END > # > # Start of scalebar > # > SCALEBAR > STATUS ON > POSITION LR > POSTLABELCACHE TRUE > #BACKGROUNDCOLOR 166 202 240 > BACKGROUNDCOLOR 254 219 67 > COLOR 0 0 156 > OUTLINECOLOR 166 202 240 > TRANSPARENT ON > #IMAGECOLOR 0 0 0 > UNITS KILOMETERS > INTERVALS 4 > SIZE 200 8 > STYLE 0 > LABEL > SIZE SMALL > COLOR 0 0 156 > ANTIALIAS TRUE > OUTLINECOLOR 254 219 67 > #SHADOWCOLOR 166 202 240 > #SHADOWSIZE 3 3 > END > END > > # > # Start of layer definitions > # > > > #1 > LAYER > NAME "Municipal_Boundaries" > #GROUP "MUNICIPALBOUNDARY" > STATUS ON > DATA "municip_new2001" > TYPE POLYGON > TRANSPARENCY 50 > TEMPLATE "null" > LABELITEM "township" > LABELMINSCALE 300000 > # LABELANGLEITEM > METADATA > "WMS_TITLE" "Municipal Boundaries MVCA" > "WMS_ABSTRACT" "Depicts Municipal > Boundaries in MVCA watershed as of 2001." > "WMS_SRS" "EPSG:26717" > END > CLASS > NAME "Municipal_Boundaries" > LABEL > TYPE truetype > FONT "Arial_bold" > SIZE 8 > POSITION CC > COLOR 128 128 64 > #ANGLE AUTO > ANTIALIAS TRUE > END > STYLE > #COLOR 247 235 208 > SYMBOL 'circle' > OUTLINECOLOR 128 128 64 > SIZE 4 > END > === message truncated === From ed at TOPOZONE.COM Tue Jan 25 09:37:11 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 25 Jan 2005 12:37:11 -0500 Subject: projection questions Message-ID: Jeff - Using different map projections isn't rocket science, but it isn't trivial, either. You need to know how to describe the projection via its parameters, and details are important. For example, the Massachusetts Mainland State Plane projection you mention is described as: PROJECTION "proj=lcc" "lat_1=42.683333333" "lat_2=41.716666667" "lat_0=41.000000000" "lon_0=-71.500000000" "x_0=200000.000" "y_0=750000.000" "ellps=GRS80" "datum=NAD83" "units=m" "no_defs" END If, however, you use cs2cs to calculate the extents you want using the projection definition you created, then you're likely to get results that are at least visible - you don't really need to duplicate the Mass. State Plane coordinates. But if you create extreme conditions you might NOT get what you want, which is what you did with your last Transverse Mercator definition. Your last attempt at Transverse Mercator wasn't bad - but you forgot that Albany is in the Western hemisphere and centered the projection in Kyrgyzstan. Again, details REALLY matter with projections. They're the perfect "garbage in, garbage out" example - you'll get exactly what you asked for, whether you wanted it or not. Mapping a point 180 degrees away from the center of a Transverse Mercator projection will give you nonsense (it's undefined in that projection), which may be why you got nothing at all. The old New York State Plane East Zone projection was Transverse Mercator and is a decent starting point. Here's what it looks like, modified to NAD83 and meters from the original NAD27 feet: PROJECTION "proj=tmerc" "lat_0=40.000000000" "lon_0=-74.333333333" "k=0.999967" "ellps=GRS80" "datum=NAD83" "units=m" "no_defs" END Use cs2cs to calculate the extents you want and give it a try. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: Jeff Portwine [mailto:jdport at veritime.com] Sent: Tuesday, January 25, 2005 11:08 AM To: Ed McNierney; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] projection questions I've looked through a lot of information, the links you all sent, and other places on the web, but I simply can't figure out how to get the settings right for projecting my map. I set every layer to "proj=latlong" with no other settings (I'm pretty sure that all the shapefiles I have are lat/long NAD83) and then in the map section I added a projection block. I tried a lot of different settings.... most of them just give me a blank map. I read on one of those web pages that Massachusettes has a standard projection of Lamberts Conformal Conic with 2 latitudes of 41.6 and 42.7. So, I converted my extents over with the cs2cs utility and set my output projection to: PROJECTION "proj=lcc" "lat_1=41.6" "lat_2=42.7" END This actually came out better than anything else I've tried... the extents looked like they were about as correct as I could get them but the entire map was twisted clockwise about 45 degrees.... The rest of my attempts revolved around the Transvers Mercator projection. I tried using UTM: PROJECTION "proj=utm" "ellps=GRS80" "zone=19" "north" "no_defs" END These settings were from an example in the mapserver mapfile documentation, I used zone 19, though the area i'm mapping is right on the line between zone 18 and zone 19. PROJECTION "proj=tmerc" "k=0.9996" "x_0=0" "y_0=500000" "lat_0=42.75" "lon_0=73.8" END I got these settings from http://www.remotesensing.org/geotiff/proj_list/transverse_mercator.html and used the longitude and latitude of Albany as my lat/long of origin since that was roughly in the middle of my map. Of the multitude of attempts I made to get the right settings, these two made the most sense to me based on what I'd read... but they didn't work at all, or perhaps I just screwed up when I was getting my extents. This stuff is really really confusing, adn I'm beginning to wonder if I should just use the lat/long map even though it's not really right and looks funny.... but any pointers on how to get the right settings is really appreciated. -Jeff From ed at TOPOZONE.COM Tue Jan 25 09:38:46 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 25 Jan 2005 12:38:46 -0500 Subject: projection woes Message-ID: Matt - It's not a matter of MapServer being picky - the "epsg" is actually a filename, and on case-sensitive operating systems, case matters. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Matthew Perry Sent: Tuesday, January 25, 2005 12:32 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] projection woes You might try using "init=epsg:26717" instead of "init=EPSG:26717". I know that some versions of mapserver are picky about this capitalization. Other than that, your mapfile looks like it should work. Matt Perry Humboldt State University --- Mark Adams wrote: > I've included my map file below. > > Regarding Stephen Woodbridge's response, the data in all files is in > zone 17, the only difference is the datum; and I can confirm that the > data really is there. As I indicated, if I don't include the > projection block on the layer the data shows, just shifted because of > the different datum. (Also working with it in ArcMap etc.) > > If it's likely that that I either don't have the right files, or for > some reason they aren't being found, how can I test this, and how do I > know which files I need? Incidentally, I installed proj.4 from the > proj446_win32_bin.zip distribution; and I'm running on Win2000, IIS 5. > > > -----map file------ > > # > # Start of map file > # > MAP > NAME "MVCA_GeoPortal" > STATUS ON > EXTENT 433350 4813769 546722 4889572 > SIZE 682 456 > #SIZE 674 474 > SHAPEPATH "..\Data\Shapefiles" > #TEMPLATEPATTERN "MVCA_GeoPortal" > SYMBOLSET "GeoPortal.symbols" > #fonset added AD 13-Jul-04 > FONTSET "GeoPortal.fonts" > #IMAGETYPE PNG > #IMAGETYPE swf > #IMAGETYPE png24bit > IMAGETYPE gif > #IMAGECOLOR 255 255 255 > UNITS METERS > OUTPUTFORMAT > NAME gif > DRIVER "GD/GIF" > MIMETYPE "image/gif" > IMAGEMODE PC256 > EXTENSION "gif" > TRANSPARENT ON > END > OUTPUTFORMAT > NAME png24bit > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE rgb > FORMATOPTION "INTERLACE=OFF" > END > OUTPUTFORMAT > NAME swf > DRIVER "SWF" > MIMETYPE "application/x-shockwave-flash" > EXTENSION "swf" > IMAGEMODE PC256 > FORMATOPTION "OUTPUT_MOVIE=SINGLE" > END > # > # Start of web interface definition (including WMS enabling > metadata) > # > WEB > #MINSCALE 500 > MAXSCALE 1550000 > IMAGEPATH "C:\Inetpub\wwwroot\tmp\" > IMAGEURL "/tmp/" > HEADER "templates/header.html" > FOOTER "templates/footer.html" > TEMPLATE "set in index.html" > METADATA > "WMS_TITLE" "MVCA MapServer GeoPortal" > "WMS_ABSTRACT" "This is MapServer > application using data from Maitland Valley Conservation Authority." > "WMS_ACCESSCONSTRAINTS" "none" > "WMS_ONLINERESOURCE" > "http://navigator/cgi-bin/mapserv.exe?map=C:\Inetpub\wwwroot\mapserver_d emos\MVCA_GeoPortal\config\MVCA_GeoPortal.map&" > "WMS_SRS" "EPSG:26717" > END > END > # > # Start of reference map > # > REFERENCE > IMAGE "reference.png" > EXTENT 433350 4813769 534792 4889572 > SIZE 168 118 > #SIZE 84 59 > STATUS ON > > #COLOR 175 175 208 > COLOR -1 -1 -1 > OUTLINECOLOR 175 175 208 > MINBOXSIZE 5 > MAXBOXSIZE 500 > MARKER "star" > MARKERSIZE 8 > END > > # > # Projection definition, consult the PROJ.4 documentation for > parameter discussion > # > PROJECTION > # proj=utm > # ellps=GRS80 > # zone=15 > # north > # no_defs > # > # OR: > # > # init=epsg:26915 > "init=EPSG:26717" > END > # > # Start of legend > # > LEGEND > STATUS ON > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > TEMPLATE "legend.html" > END > # > # Start of scalebar > # > SCALEBAR > STATUS ON > POSITION LR > POSTLABELCACHE TRUE > #BACKGROUNDCOLOR 166 202 240 > BACKGROUNDCOLOR 254 219 67 > COLOR 0 0 156 > OUTLINECOLOR 166 202 240 > TRANSPARENT ON > #IMAGECOLOR 0 0 0 > UNITS KILOMETERS > INTERVALS 4 > SIZE 200 8 > STYLE 0 > LABEL > SIZE SMALL > COLOR 0 0 156 > ANTIALIAS TRUE > OUTLINECOLOR 254 219 67 > #SHADOWCOLOR 166 202 240 > #SHADOWSIZE 3 3 > END > END > > # > # Start of layer definitions > # > > > #1 > LAYER > NAME "Municipal_Boundaries" > #GROUP "MUNICIPALBOUNDARY" > STATUS ON > DATA "municip_new2001" > TYPE POLYGON > TRANSPARENCY 50 > TEMPLATE "null" > LABELITEM "township" > LABELMINSCALE 300000 > # LABELANGLEITEM > METADATA > "WMS_TITLE" "Municipal Boundaries MVCA" > "WMS_ABSTRACT" "Depicts Municipal > Boundaries in MVCA watershed as of 2001." > "WMS_SRS" "EPSG:26717" > END > CLASS > NAME "Municipal_Boundaries" > LABEL > TYPE truetype > FONT "Arial_bold" > SIZE 8 > POSITION CC > COLOR 128 128 64 > #ANGLE AUTO > ANTIALIAS TRUE > END > STYLE > #COLOR 247 235 208 > SYMBOL 'circle' > OUTLINECOLOR 128 128 64 > SIZE 4 > END > === message truncated === From mtperry78 at SBCGLOBAL.NET Tue Jan 25 10:00:22 2005 From: mtperry78 at SBCGLOBAL.NET (Matthew Perry) Date: Tue, 25 Jan 2005 10:00:22 -0800 Subject: projection woes In-Reply-To: <4BF377919225F449BB097CB76FFE9BC80FCACA@ptolemy.topozone.com> Message-ID: I knew there must have been *some* reason. This is one of those issues that constantly trips me up since OGC SRS uses "EPSG"... It's easy to get into the habit of typing it all caps. - matt --- Ed McNierney wrote: > Matt - > > It's not a matter of MapServer being picky - the > "epsg" is actually a > filename, and on case-sensitive operating systems, > case matters. > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > (978) 251-4242 > > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Matthew Perry > Sent: Tuesday, January 25, 2005 12:32 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] projection woes > > You might try using "init=epsg:26717" instead of > "init=EPSG:26717". I > know that some versions of mapserver are picky about > this > capitalization. > > Other than that, your mapfile looks like it should > work. > > Matt Perry > Humboldt State University > > --- Mark Adams wrote: > > > I've included my map file below. > > > > Regarding Stephen Woodbridge's response, the data > in all files is in > > zone 17, the only difference is the datum; and I > can confirm that the > > data really is there. As I indicated, if I don't > include the > > projection block on the layer the data shows, just > shifted because of > > the different datum. (Also working with it in > ArcMap etc.) > > > > If it's likely that that I either don't have the > right files, or for > > some reason they aren't being found, how can I > test this, and how do I > > > know which files I need? Incidentally, I installed > proj.4 from the > > proj446_win32_bin.zip distribution; and I'm > running on Win2000, IIS 5. > > > > > > -----map file------ > > > > # > > # Start of map file > > # > > MAP > > NAME "MVCA_GeoPortal" > > STATUS ON > > EXTENT 433350 4813769 546722 4889572 > > SIZE 682 456 > > #SIZE 674 474 > > SHAPEPATH "..\Data\Shapefiles" > > #TEMPLATEPATTERN "MVCA_GeoPortal" > > SYMBOLSET "GeoPortal.symbols" > > #fonset added AD 13-Jul-04 > > FONTSET "GeoPortal.fonts" > > #IMAGETYPE PNG > > #IMAGETYPE swf > > #IMAGETYPE png24bit > > IMAGETYPE gif > > #IMAGECOLOR 255 255 255 > > UNITS METERS > > OUTPUTFORMAT > > NAME gif > > DRIVER "GD/GIF" > > MIMETYPE "image/gif" > > IMAGEMODE PC256 > > EXTENSION "gif" > > TRANSPARENT ON > > END > > OUTPUTFORMAT > > NAME png24bit > > DRIVER "GD/PNG" > > MIMETYPE "image/png" > > IMAGEMODE rgb > > FORMATOPTION "INTERLACE=OFF" > > END > > OUTPUTFORMAT > > NAME swf > > DRIVER "SWF" > > MIMETYPE "application/x-shockwave-flash" > > EXTENSION "swf" > > IMAGEMODE PC256 > > FORMATOPTION "OUTPUT_MOVIE=SINGLE" > > END > > # > > # Start of web interface definition (including > WMS enabling > > metadata) > > # > > WEB > > #MINSCALE 500 > > MAXSCALE 1550000 > > IMAGEPATH "C:\Inetpub\wwwroot\tmp\" > > IMAGEURL "/tmp/" > > HEADER "templates/header.html" > > FOOTER "templates/footer.html" > > TEMPLATE "set in index.html" > > METADATA > > "WMS_TITLE" "MVCA MapServer GeoPortal" > > "WMS_ABSTRACT" "This is MapServer > > application using data from Maitland Valley > Conservation Authority." > > "WMS_ACCESSCONSTRAINTS" "none" > > "WMS_ONLINERESOURCE" > > > "http://navigator/cgi-bin/mapserv.exe?map=C:\Inetpub\wwwroot\mapserver_d > emos\MVCA_GeoPortal\config\MVCA_GeoPortal.map&" > > "WMS_SRS" "EPSG:26717" > > END > > END > > # > > # Start of reference map > > # > > REFERENCE > > IMAGE "reference.png" > > EXTENT 433350 4813769 534792 4889572 > > SIZE 168 118 > > #SIZE 84 59 > > STATUS ON > > > > #COLOR 175 175 208 > > COLOR -1 -1 -1 > > OUTLINECOLOR 175 175 208 > > MINBOXSIZE 5 > > MAXBOXSIZE 500 > > MARKER "star" > > MARKERSIZE 8 > > END > > > > # > > # Projection definition, consult the PROJ.4 > documentation for > > parameter discussion > > # > > PROJECTION > > # proj=utm > > # ellps=GRS80 > > # zone=15 > > # north > > # no_defs > > # > > # OR: > > # > > # init=epsg:26915 > > "init=EPSG:26717" > > END > > # > > # Start of legend > > # > > LEGEND > > STATUS ON > > KEYSIZE 18 12 > > LABEL > > TYPE BITMAP > > SIZE MEDIUM > > COLOR 0 0 89 > > END > > TEMPLATE "legend.html" > > END > > # > > # Start of scalebar > > # > > SCALEBAR > > STATUS ON > > POSITION LR > > POSTLABELCACHE TRUE > > #BACKGROUNDCOLOR 166 202 240 > > BACKGROUNDCOLOR 254 219 67 > > COLOR 0 0 156 > > OUTLINECOLOR 166 202 240 > > TRANSPARENT ON > > #IMAGECOLOR 0 0 0 > > UNITS KILOMETERS > > INTERVALS 4 > > SIZE 200 8 > > STYLE 0 > > LABEL > === message truncated === From kgrootendorst at BAIRD.COM Tue Jan 25 10:05:22 2005 From: kgrootendorst at BAIRD.COM (Kevin Grootendorst) Date: Tue, 25 Jan 2005 12:05:22 -0600 Subject: Zoom to custom extent - PHP Message-ID: Well, I haven't given up trying yet. The problem is that I have bits of code everywhere and my confusion is growing. As mentioned before, I'm trying to mimic the GMAP example. But can't I have the code all in one file? It seems like I have 3 different files with code pertaining to this one little feature. Is there not some sort of code repository somewhere that I can just get the complete code from (and info telling me what file it has to go in)? I'm boggled with trying to write PHP, thats why I'm trying to borrow code directly from the GMAP example. From schuyler at NOCAT.NET Tue Jan 25 10:28:34 2005 From: schuyler at NOCAT.NET (Schuyler Erle) Date: Tue, 25 Jan 2005 10:28:34 -0800 Subject: Solved: [UMN_MAPSERVER-USERS] PostGIS Connection Trouble In-Reply-To: <35699.192.168.0.5.1106312641.squirrel@192.168.0.5> Message-ID: * On 21-Jan-2005 at 5:06AM PST, Arnulf Christl (CCGIS) said: > > thanx a lot - the capitals were the problem. Stupid me, yet again! Maybe > somebody (Paul :-) will have pity on me and remedy this capital string > problem. I have written a small patch to MapServer that fixes this problem. Where should I send the patch? SDE From wbronsema at DMSOLUTIONS.CA Tue Jan 25 10:32:41 2005 From: wbronsema at DMSOLUTIONS.CA (William Bronsema) Date: Tue, 25 Jan 2005 13:32:41 -0500 Subject: Zoom to custom extent - PHP In-Reply-To: Message-ID: Kevin, You will need to add a chunk of code like this: ********************************************************** // check if quick zoom is requested if ( isset( $http_form_vars['ViewRegion'] ) && strlen( $http_form_vars['ViewRegion'] ) > 0 ) { // separate values $adExtents = explode( ',', $http_form_vars['ViewRegion'] ); // set extent $oMapSession->oMap->setExtent( $adExtents[0], $adExtents[1], $adExtents[2], $adExtents[3] ); } *********************************************************** to your .php file probably just after the navigation code. (Note, you indicated that you built your app using maplab. This code snippet is built with that in mind - but has not been tested ;) ) HTH Regards, Bill ________________________________________________ William A. Bronsema, C.E.T. Applications and Software Development, DM Solutions Group Inc. > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Kevin Grootendorst > Sent: January 25, 2005 1:05 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Zoom to custom extent - PHP > > Well, I haven't given up trying yet. The problem is that I have bits of > code everywhere and my confusion is growing. As mentioned before, I'm > trying to mimic the GMAP example. But can't I have the code all in one > file? It seems like I have 3 different files with code pertaining to this > one little feature. Is there not some sort of code repository somewhere > that I can just get the complete code from (and info telling me what file > it has to go in)? I'm boggled with trying to write PHP, thats why I'm > trying to borrow code directly from the GMAP example. From kgrootendorst at BAIRD.COM Tue Jan 25 11:11:21 2005 From: kgrootendorst at BAIRD.COM (Kevin Grootendorst) Date: Tue, 25 Jan 2005 13:11:21 -0600 Subject: Zoom to custom extent - PHP Message-ID: Bill, Thanks for the direction. I'm still a little stuck. Just to clarify, I have the following code: ---------- In my app_contents.php file: ---------- In my app.php file: (the code that you provided) // check if quick zoom is requested if ( isset( $http_form_vars['ViewRegion'] ) && strlen($http_form_vars ['ViewRegion'] ) > 0 ) { // separate values $adExtents = explode( ',', $http_form_vars['ViewRegion'] ); // set extent $oMapSession->oMap->setExtent( $adExtents[0], $adExtents[1],$adExtents [2], $adExtents[3] ); } ----------- This isn't quite working yet, but is this really all the code I'll need? Should my drop-down box be set as a form? Thanks again for your help - this has been very frustrating. Kevin From wbronsema at DMSOLUTIONS.CA Tue Jan 25 11:21:19 2005 From: wbronsema at DMSOLUTIONS.CA (William Bronsema) Date: Tue, 25 Jan 2005 14:21:19 -0500 Subject: Zoom to custom extent - PHP In-Reply-To: Message-ID: Kevin, Everything looks to be in order. Yes, this *should* be all you need. Be sure that the "ViewRegion" list is inside the form tags (i.e. between and ). As well, you can modify the code to give you some feedback on what is happening: i.e. // check if quick zoom is requested if ( isset( $http_form_vars['ViewRegion'] ) && strlen($http_form_vars['ViewRegion'] ) > 0 ) { // debug echo 'quick zoom now.....'; // separate values $adExtents = explode( ',', $http_form_vars['ViewRegion'] ); // set extent $oMapSession->oMap->setExtent( $adExtents[0], $adExtents[1],$adExtents[2], $adExtents[3] ); } else { echo 'no quick zoom'; } If you run that, you should see the appropriate message based on what you are doing. Regards, Bill ________________________________________________ William A. Bronsema, C.E.T. Applications and Software Development, DM Solutions Group Inc. > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Kevin Grootendorst > Sent: January 25, 2005 2:11 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Zoom to custom extent - PHP > > Bill, > Thanks for the direction. I'm still a little stuck. Just to clarify, I > have the following code: > > ---------- > In my app_contents.php file: > > > > ---------- > In my app.php file: > > (the code that you provided) > // check if quick zoom is requested > if ( isset( $http_form_vars['ViewRegion'] ) && strlen($http_form_vars > ['ViewRegion'] ) > 0 ) > { > // separate values > $adExtents = explode( ',', $http_form_vars['ViewRegion'] ); > > // set extent > $oMapSession->oMap->setExtent( $adExtents[0], $adExtents[1],$adExtents > [2], $adExtents[3] ); > } > ----------- > > This isn't quite working yet, but is this really all the code I'll need? > Should my drop-down box be set as a form? > Thanks again for your help - this has been very frustrating. > > Kevin From mbrown at AL1CALL.COM Tue Jan 25 11:25:58 2005 From: mbrown at AL1CALL.COM (Matt Brown) Date: Tue, 25 Jan 2005 13:25:58 -0600 Subject: Zoom to custom extent - PHP In-Reply-To: Message-ID: Kevin, you need to either separate your extents with a comma in the form, or change the first option in the explode function to look for a ' ' instead of ',' Matt -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Kevin Grootendorst Sent: Tuesday, January 25, 2005 1:11 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Zoom to custom extent - PHP Bill, Thanks for the direction. I'm still a little stuck. Just to clarify, I have the following code: ---------- In my app_contents.php file: ---------- In my app.php file: (the code that you provided) // check if quick zoom is requested if ( isset( $http_form_vars['ViewRegion'] ) && strlen($http_form_vars ['ViewRegion'] ) > 0 ) { // separate values $adExtents = explode( ',', $http_form_vars['ViewRegion'] ); // set extent $oMapSession->oMap->setExtent( $adExtents[0], $adExtents[1],$adExtents [2], $adExtents[3] ); } ----------- This isn't quite working yet, but is this really all the code I'll need? Should my drop-down box be set as a form? Thanks again for your help - this has been very frustrating. Kevin From jdport at VERITIME.COM Tue Jan 25 11:24:15 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Tue, 25 Jan 2005 14:24:15 -0500 Subject: projection questions Message-ID: That worked. I didn't realize I was flipping things around 180 degrees. It's good to know I was on the right track , thanks for all the help everybody has given me. The map looks MUCH better with the projection in place. -Jeff From wbronsema at DMSOLUTIONS.CA Tue Jan 25 11:35:12 2005 From: wbronsema at DMSOLUTIONS.CA (William Bronsema) Date: Tue, 25 Jan 2005 14:35:12 -0500 Subject: Zoom to custom extent - PHP In-Reply-To: Message-ID: I was just about to mention that and Matt beat me to it. In your original posting, you had commas as the delimiter not spaces. The code I sent you is based on comma delimited values. Regards, Bill ________________________________________________ William A. Bronsema, C.E.T. Applications and Software Development, DM Solutions Group Inc. > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Matt Brown > Sent: January 25, 2005 2:26 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Zoom to custom extent - PHP > > Kevin, > > you need to either separate your extents with a comma in the form, or > change > the first option in the explode function to look for a ' ' instead of ',' > > Matt > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > Behalf Of Kevin Grootendorst > Sent: Tuesday, January 25, 2005 1:11 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Zoom to custom extent - PHP > > > Bill, > Thanks for the direction. I'm still a little stuck. Just to clarify, I > have the following code: > > ---------- > In my app_contents.php file: > > > > ---------- > In my app.php file: > > (the code that you provided) > // check if quick zoom is requested > if ( isset( $http_form_vars['ViewRegion'] ) && strlen($http_form_vars > ['ViewRegion'] ) > 0 ) > { > // separate values > $adExtents = explode( ',', $http_form_vars['ViewRegion'] ); > > // set extent > $oMapSession->oMap->setExtent( $adExtents[0], $adExtents[1],$adExtents > [2], $adExtents[3] ); > } > ----------- > > This isn't quite working yet, but is this really all the code I'll need? > Should my drop-down box be set as a form? > Thanks again for your help - this has been very frustrating. > > Kevin From kgrootendorst at BAIRD.COM Tue Jan 25 11:51:56 2005 From: kgrootendorst at BAIRD.COM (Kevin Grootendorst) Date: Tue, 25 Jan 2005 13:51:56 -0600 Subject: Zoom to custom extent - PHP Message-ID: I've implemented the code, and now I'm even convinced it should work. But no such luck yet. The debugging works just as it should, but when it should 'quick zoom now', the map still draws to the project's max extents. However, I do receive a windows js error box indicating a problem in the app.phmtl file: 'document.main.QueryString.value' is null or not an object. Here is my javascript from the .phtml file: Could this somehow be preventing my php code from working? From Godwinl at AGR.GC.CA Tue Jan 25 12:20:05 2005 From: Godwinl at AGR.GC.CA (Godwin, Elizabeth) Date: Tue, 25 Jan 2005 15:20:05 -0500 Subject: PHP Mapscript getLayerByName Message-ID: Hello, I've been trying to use getLayerByName function and it's returning a warning when I use it. I just want to verify if I am doing something wrong, before I file a bug, if it's a bug. I've tried this on 4.2, 4.4 and CVS from a week ago, all yield the same warning. From pramsey at REFRACTIONS.NET Tue Jan 25 12:24:41 2005 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Tue, 25 Jan 2005 12:24:41 -0800 Subject: Solved: [UMN_MAPSERVER-USERS] PostGIS Connection Trouble In-Reply-To: <20050125182834.GB2063@vishnu.tridity.org> Message-ID: Send it to us, we'll apply it. P Schuyler Erle wrote: > * On 21-Jan-2005 at 5:06AM PST, Arnulf Christl (CCGIS) said: > >>thanx a lot - the capitals were the problem. Stupid me, yet again! Maybe >>somebody (Paul :-) will have pity on me and remedy this capital string >>problem. > > > I have written a small patch to MapServer that fixes this problem. > Where should I send the patch? > > SDE From helmster_99 at YAHOO.COM Tue Jan 25 13:42:08 2005 From: helmster_99 at YAHOO.COM (Chris Helm) Date: Tue, 25 Jan 2005 13:42:08 -0800 Subject: Changing Reference Image 'on-the-fly' In-Reply-To: Message-ID: Hi everybody, I've been successful in changing map-file parameters on the fly using form variables and javascript. I have an application that is concerned with the mapping of glacier extents. Hence, alot of our data are at the poles. I have some javascript that switches the interface between eqc(lat long) and polar stereographic (north and south) projections depending on the location of the user. I set this up by simply creating a hidden variable called "map_projection" and replacing the [map_projection] value with the desired projection definitions, everything works fine. But now I'm trying to integrate the ability to be able to switch the reference image whenever the projection change takes place. I know the reference image relies on a number parameters within the reference object so I'll need to change all those too. But for now I just need to change the image. Im using a form variable called: name="map_reference_image" value="[map_reference_image]" And I'm using javascript to change the value between "data/topo.png" and "data/antarctica.png" I have the feeling that its something with the creation the /tmp/ image. Any help is great! Thanx, Chris __________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail From palanisamyg at ORNL.GOV Tue Jan 25 14:07:17 2005 From: palanisamyg at ORNL.GOV (Palanisamy, Giri) Date: Tue, 25 Jan 2005 17:07:17 -0500 Subject: php-mapscript tile indexing Message-ID: Hi, I am able to customize the GMap php-rosa sample app. I have the following layer in my .map file, I am using TILEINDEX for 8km and 1km resolution and for the top level 50 km I am using tif image. In by JBox I used to call this layer by the GROUP " MOD12Q1" and it worked, now in the php application how do I call this group? Is there similar method call like getlayerbyname() for LAYER GROUP? $poLayer = $gpoMap->getlayerbyname("IGBP_MOD12Q1"); $poLayer->set("status", 1); Returns Warning: getLayerByName failed for : IGBP_MOD12Q1 in f:\Inetpub\wwwroot\gmap\htdocs\gmap75.inc.php on line 116 Any suggestion would be highly appreciated Thanks! Giri Here is my layer snippet from the .map file LAYER NAME IGBP_50k GROUP IGBP_MOD12Q1 TYPE RASTER DATA LL_SDS01GR50.tif STATUS ON MINSCALE 1490000 MAXSCALE 190000000 #MAXSCALE 10000 PROJECTION "proj=longlat" "ellps=GRS80" "no_defs" END END LAYER NAME IGBP_8K GROUP IGBP_MOD12Q1 TYPE RASTER STATUS ON TILEINDEX "modis_8km" TILEITEM "Location" MINSCALE 29000000 MAXSCALE 150000000 PROJECTION "proj=longlat" "ellps=GRS80" "no_defs" "proj=eqc" END END LAYER NAME IGBP_1K GROUP IGBP_MOD12Q1 TYPE RASTER STATUS ON TILEINDEX "modis_1km" TILEITEM "Location" #MINSCALE 8000000 MAXSCALE 30000000 PROJECTION "proj=longlat" "ellps=GRS80" "no_defs" "proj=eqc" END END Giri From ARyan at CO.LINN.OR.US Tue Jan 25 14:28:52 2005 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Tue, 25 Jan 2005 14:28:52 -0800 Subject: SWIG mapscript request/bug? Message-ID: Hi. I'd like to make a request. In using python mapscript I find that a layer's index property is unchanged after using map.moveLayerUp/Down. Shouldn't the index values of the two layers that are swapped be swapped themselves? Is this a bug that I should report? Cheers, Adam From bhudspeth at EDAC.UNM.EDU Tue Jan 25 07:36:48 2005 From: bhudspeth at EDAC.UNM.EDU (William Hudspeth) Date: Tue, 25 Jan 2005 08:36:48 -0700 Subject: Calling a Shell Script from within Python Message-ID: Hello, I have written a Mapserver application in Python Mapscript. In my code, I use a standard Python function to call a BASH shell script that processes a GRASS raster file, and then loads the R statistics package to generate some plots. When I launch the shell script from a much simpler python module (whose only function is to call the shell script), it runs flawlessly. In my main Mapserver application, however, I have tried calling the shell script using two different methods in Python, one with arguments (e.g. passing some map extents), and another without arguments (e.g. where I hard code some map extents). They get different errors, both seeming to involve a problem with starting R. It seems to be a problem with running processes, but I don't understand how to correct it: Call #1 from my Mapserver code involves calling a locally defined function (derived from the O'Reilly Python Standard Library Book): def run(program, *args): pid=os.fork() if not pid: os.execvp(program, (program, ) + args) return os.wait()[0] #I then set some values for north, south, east, and west run(elevation_density.sh, north, south, east, west) The error returned: [Tue Jan 25 15:02:48 2005] [error] [client 129.24.73.222] malformed header from script. Bad header=Setting GISRC environmental sh: python_mapscript.py, referer: http://falstaff.unm.edu/cgi- bin/reason/python_mapscript.py [Tue Jan 25 15:02:48 2005] [error] [client 129.24.73.222] /usr/local/grass53/scripts/elevation_density.sh: line 75: R: command not found, referer: http://falstaff.unm.edu/cgi-bin/reason/python_mapscript.py Call#2 from my Mapserver code uses the os.system() function (where I hard code some extents in the Bash shell script) os.system("elevation_density.sh") The error returned is basically the same as above. Again, a simple python module with one of the two function calls above works just fine. It is only when I make the calls from within my larger block of Mapserver Python code that I get errors. Any help would be greatly appreciated. Bill From sgillies at FRII.COM Tue Jan 25 14:47:30 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 25 Jan 2005 15:47:30 -0700 Subject: SWIG mapscript request/bug? In-Reply-To: Message-ID: On Jan 25, 2005, at 3:28 PM, Ryan, Adam wrote: > Hi. I'd like to make a request. In using python mapscript I find > that a > layer's index property is unchanged after using map.moveLayerUp/Down. > Shouldn't the index values of the two layers that are swapped be > swapped > themselves? > > Is this a bug that I should report? > > Cheers, > > Adam Adam, A MapServer mapObj has an array of layerObjs and also an array of indexes of these layerObjs in drawing order. It is this second array that is modified by moveLayerUp/Down. Same situation for the other mapscripts including PHP. It's not a bug, just the way that MapServer is designed. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From ARyan at CO.LINN.OR.US Tue Jan 25 15:05:11 2005 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Tue, 25 Jan 2005 15:05:11 -0800 Subject: SWIG mapscript request/bug? Message-ID: > -----Original Message----- > From: Sean Gillies [mailto:sgillies at frii.com] > Sent: Tuesday, January 25, 2005 2:48 PM > To: Ryan, Adam > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: SWIG mapscript request/bug? > > > On Jan 25, 2005, at 3:28 PM, Ryan, Adam wrote: > > > Hi. I'd like to make a request. In using python mapscript I find > > that a > > layer's index property is unchanged after using > map.moveLayerUp/Down. > > Shouldn't the index values of the two layers that are swapped be > > swapped > > themselves? > > > > Is this a bug that I should report? > > > > Cheers, > > > > Adam > > Adam, > > A MapServer mapObj has an array of layerObjs and also an array of > indexes of these layerObjs in drawing order. It is this second array > that is modified by moveLayerUp/Down. Same situation for the other > mapscripts including PHP. It's not a bug, just the way that > MapServer > is designed. > > cheers, > Sean > > -- > Sean Gillies > sgillies at frii dot com > http://users.frii.com/sgillies > Hey Sean, thanks for the reply. Maybe you can lend a suggestion. I want to manipulate the draw order using a list of layer names from the client. I'd like to do this: ... curI = 0 for layerName in layerList: layerO = mapO.getLayerByName(layerName) while layerO.index > curI: mapO.moveLayerUp( layerO.index ) curI += 1 ... The problem, if I understand it, is that the layer index is indeed being moved up in the drawing order, but the index values don't change. Thus, my while statement runs forever. I see there are get/setLayersDrawingOrder methods but how much work is it to set them up? Thanks again, Adam From jfletcher at LATITUDEGEO.COM Tue Jan 25 15:12:55 2005 From: jfletcher at LATITUDEGEO.COM (John Fletcher) Date: Tue, 25 Jan 2005 15:12:55 -0800 Subject: Auto Angle for TextSymbolizer Through SLD Message-ID: Is there currently a way to render a label along a line, similar to using ANGLE AUTO in a mapfile, through an SLD request? The Mapserver SLD How-To mentions that only PointPlacement is supported (my geometry type is line, of course), though it mentions that the Angle element should be translated to the mapfile ANGLE equivalent. So, I thought I'd give it a shot... AUTO This didn't work, and I also tried substuting Rotation for Angle (for SLD spec compliance in case there was an error in the How-To), but that did not work either. My label draws over the line feature, just not rotated like ANGLE AUTO does. There don't seem to be any other options for me to try so I'm not too hopeful, but if someone could confirm whether it's possible either way I'd be grateful. From sgillies at FRII.COM Tue Jan 25 15:20:53 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 25 Jan 2005 16:20:53 -0700 Subject: SWIG mapscript request/bug? In-Reply-To: Message-ID: On Jan 25, 2005, at 4:05 PM, Ryan, Adam wrote: >> -----Original Message----- >> From: Sean Gillies [mailto:sgillies at frii.com] >> Sent: Tuesday, January 25, 2005 2:48 PM >> To: Ryan, Adam >> Cc: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: SWIG mapscript request/bug? >> >> >> On Jan 25, 2005, at 3:28 PM, Ryan, Adam wrote: >> >>> Hi. I'd like to make a request. In using python mapscript I find >>> that a >>> layer's index property is unchanged after using >> map.moveLayerUp/Down. >>> Shouldn't the index values of the two layers that are swapped be >>> swapped >>> themselves? >>> >>> Is this a bug that I should report? >>> >>> Cheers, >>> >>> Adam >> >> Adam, >> >> A MapServer mapObj has an array of layerObjs and also an array of >> indexes of these layerObjs in drawing order. It is this second array >> that is modified by moveLayerUp/Down. Same situation for the other >> mapscripts including PHP. It's not a bug, just the way that >> MapServer >> is designed. >> >> cheers, >> Sean >> >> -- >> Sean Gillies >> sgillies at frii dot com >> http://users.frii.com/sgillies >> > > Hey Sean, thanks for the reply. > > Maybe you can lend a suggestion. I want to manipulate the draw order > using > a list of layer names from the client. I'd like to do this: > ... > curI = 0 > for layerName in layerList: > layerO = mapO.getLayerByName(layerName) > while layerO.index > curI: mapO.moveLayerUp( layerO.index ) > curI += 1 > ... > The problem, if I understand it, is that the layer index is indeed > being > moved up in the drawing order, but the index values don't change. > Thus, my > while statement runs forever. > > I see there are get/setLayersDrawingOrder methods but how much work is > it to > set them up? > > Thanks again, > > Adam > Check out mapObj::getLayerOrder() and mapObj::setLayerOrder(). I was going to point you this document http://users.frii.com/sgillies/projects/mapscript/python.html but then realized that I've neglected to document those methods. For their usage, look at tests of the MapLayersTestCase in mapscript/python/tests/cases/maptest.py. getLayerOrder() returns a tuple of ints and setLayerOrder takes a tuple of ints. These methods work directly on the mapObj's drawing order and will be much faster than moving layers up and down. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From ltiu at ALUMNI.SFU.CA Tue Jan 25 16:05:48 2005 From: ltiu at ALUMNI.SFU.CA (Lyndon Tiu) Date: Tue, 25 Jan 2005 16:05:48 -0800 Subject: MapServer and Oracle Spatial Message-ID: Hello, I have: 1) Mapserver 4.4.1 on Linux compiled with oraclespatial support. 2) Oracle Spatial 10g on Solaris. 3) Tnsnames are configured properly and sqlplus from the Linux command line can connect to Oracle database on Solaris box. 4) Listener and database have both been started and are both running on Solaris box. 5) mapserver map file: LAYER NAME "oggma" CONNECTIONTYPE oraclespatial CONNECTION "user/pass at orasptl" DATA "GEOM FROM OGGMA USING SRID NULL" STATUS ON TYPE POLYGON CLASS STYLE OUTLINECOLOR 0 0 0 COLOR 225 225 185 END END PROJECTION "init=epsg:42102" END END The connect string: user/pass at ora10g works fine from the command line and from Oracle Enterprise Manager so I know tnsnames is configured properly. Also, the table OGGMA and data are loaded and I can do a select * from OGGMA and data would come back fine. 6) Pointing a web browser at mapserver produces the following error: msDrawMap(): Image handling error. Failed to draw layer named 'ogma'. msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI Handlers. Connection failure. Check the connection string. Error: . Can someone help me with this issue? Thank you for any tips and suggestions. -- Lyndon Tiu From ltiu at ALUMNI.SFU.CA Tue Jan 25 16:16:46 2005 From: ltiu at ALUMNI.SFU.CA (Lyndon Tiu) Date: Tue, 25 Jan 2005 16:16:46 -0800 Subject: MapServer and Oracle Spatial In-Reply-To: <41F6DEDC.4070009@alumni.sfu.ca> Message-ID: Lyndon Tiu wrote: > > The connect string: > > user/pass at ora10g Typo, I meant: user/pass at orasptl > works fine from the command line and from Oracle Enterprise Manager so > I know tnsnames is configured properly. > > Also, the table OGGMA and data are loaded and I can do a select * from > OGGMA and data would come back fine. -- Lyndon Tiu From ARyan at CO.LINN.OR.US Tue Jan 25 16:21:25 2005 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Tue, 25 Jan 2005 16:21:25 -0800 Subject: SWIG mapscript request/bug? Message-ID: Alright folks, Thanks to Sean I've figured out how to reorder the layers of a map. Now it turns out that the reordering is only recognized when doing a mapObj.draw() and NOT when doing a drawQuery(). What's up with that? Oh what to do?!? Cheers, Adam > -----Original Message----- > From: Ryan, Adam [mailto:ARyan at CO.LINN.OR.US] > Sent: Tuesday, January 25, 2005 3:05 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] SWIG mapscript request/bug? > > > > -----Original Message----- > > From: Sean Gillies [mailto:sgillies at frii.com] > > Sent: Tuesday, January 25, 2005 2:48 PM > > To: Ryan, Adam > > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: SWIG mapscript request/bug? > > > > > > On Jan 25, 2005, at 3:28 PM, Ryan, Adam wrote: > > > > > Hi. I'd like to make a request. In using python > mapscript I find > > > that a layer's index property is unchanged after using > > map.moveLayerUp/Down. > > > Shouldn't the index values of the two layers that are swapped be > > > swapped themselves? > > > > > > Is this a bug that I should report? > > > > > > Cheers, > > > > > > Adam > > > > Adam, > > > > A MapServer mapObj has an array of layerObjs and also an array of > > indexes of these layerObjs in drawing order. It is this > second array > > that is modified by moveLayerUp/Down. Same situation for the other > > mapscripts including PHP. It's not a bug, just the way > that MapServer > > is designed. > > > > cheers, > > Sean > > > > -- > > Sean Gillies > > sgillies at frii dot com > > http://users.frii.com/sgillies > > > > Hey Sean, thanks for the reply. > > Maybe you can lend a suggestion. I want to manipulate the > draw order using a list of layer names from the client. I'd > like to do this: ... curI = 0 for layerName in layerList: > layerO = mapO.getLayerByName(layerName) > while layerO.index > curI: mapO.moveLayerUp( layerO.index ) > curI += 1 > ... > The problem, if I understand it, is that the layer index is > indeed being moved up in the drawing order, but the index > values don't change. Thus, my while statement runs forever. > > I see there are get/setLayersDrawingOrder methods but how > much work is it to set them up? > > Thanks again, > > Adam > From ARyan at CO.LINN.OR.US Tue Jan 25 16:30:37 2005 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Tue, 25 Jan 2005 16:30:37 -0800 Subject: SWIG mapscript request/bug? - WORKAROUND Message-ID: And the workaround is... When you're reordering layers AND you want to do a drawQuery(), reorder the layers and then save the map file and then load it again and then drawQuery(). Ugly. Adam > -----Original Message----- > From: Ryan, Adam [mailto:ARyan at CO.LINN.OR.US] > Sent: Tuesday, January 25, 2005 4:21 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] SWIG mapscript request/bug? > > > Alright folks, > > Thanks to Sean I've figured out how to reorder the layers of > a map. Now it turns out that the reordering is only > recognized when doing a mapObj.draw() and NOT when doing a > drawQuery(). What's up with that? > > Oh what to do?!? > > Cheers, Adam > > > -----Original Message----- > > From: Ryan, Adam [mailto:ARyan at CO.LINN.OR.US] > > Sent: Tuesday, January 25, 2005 3:05 PM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] SWIG mapscript request/bug? > > > > > > > -----Original Message----- > > > From: Sean Gillies [mailto:sgillies at frii.com] > > > Sent: Tuesday, January 25, 2005 2:48 PM > > > To: Ryan, Adam > > > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: Re: SWIG mapscript request/bug? > > > > > > > > > On Jan 25, 2005, at 3:28 PM, Ryan, Adam wrote: > > > > > > > Hi. I'd like to make a request. In using python > > mapscript I find > > > > that a layer's index property is unchanged after using > > > map.moveLayerUp/Down. > > > > Shouldn't the index values of the two layers that are > swapped be > > > > swapped themselves? > > > > > > > > Is this a bug that I should report? > > > > > > > > Cheers, > > > > > > > > Adam > > > > > > Adam, > > > > > > A MapServer mapObj has an array of layerObjs and also an array of > > > indexes of these layerObjs in drawing order. It is this > > second array > > > that is modified by moveLayerUp/Down. Same situation for > the other > > > mapscripts including PHP. It's not a bug, just the way > > that MapServer > > > is designed. > > > > > > cheers, > > > Sean > > > > > > -- > > > Sean Gillies > > > sgillies at frii dot com > > > http://users.frii.com/sgillies > > > > > > > Hey Sean, thanks for the reply. > > > > Maybe you can lend a suggestion. I want to manipulate the > draw order > > using a list of layer names from the client. I'd like to > do this: ... > > curI = 0 for layerName in layerList: > > layerO = mapO.getLayerByName(layerName) > > while layerO.index > curI: mapO.moveLayerUp( layerO.index ) > > curI += 1 > > ... > > The problem, if I understand it, is that the layer index is indeed > > being moved up in the drawing order, but the index values don't > > change. Thus, my while statement runs forever. > > > > I see there are get/setLayersDrawingOrder methods but how > much work is > > it to set them up? > > > > Thanks again, > > > > Adam > > > From yenvh at VIDAGIS.COM Tue Jan 25 17:34:37 2005 From: yenvh at VIDAGIS.COM (Vu Hai Yen) Date: Wed, 26 Jan 2005 08:34:37 +0700 Subject: No subject Message-ID: I want to leave from mail list -------------- next part -------------- An HTML attachment was scrubbed... URL: From mapserver at GEOWORLD.DE Tue Jan 25 21:33:02 2005 From: mapserver at GEOWORLD.DE (Nicol Hermann) Date: Wed, 26 Jan 2005 06:33:02 +0100 Subject: MapServer and Oracle Spatial In-Reply-To: <41F6DEDC.4070009@alumni.sfu.ca> Message-ID: Hi, try setting the variable ORACLE_HOME in your Webserver environment. HTH Nicol Am Dienstag, den 25.01.2005, 16:05 -0800 schrieb Lyndon Tiu: > Hello, > > I have: > > 1) Mapserver 4.4.1 on Linux compiled with oraclespatial support. > > 2) Oracle Spatial 10g on Solaris. > > 3) Tnsnames are configured properly and sqlplus from the Linux command > line can connect to Oracle database on Solaris box. > > 4) Listener and database have both been started and are both running on > Solaris box. > > 5) mapserver map file: > > LAYER > NAME "oggma" > CONNECTIONTYPE oraclespatial > CONNECTION "user/pass at orasptl" > DATA "GEOM FROM OGGMA USING SRID NULL" > STATUS ON > TYPE POLYGON > CLASS > STYLE > OUTLINECOLOR 0 0 0 > COLOR 225 225 185 > END > END > PROJECTION > "init=epsg:42102" > END > END > > The connect string: > > user/pass at ora10g works fine from the command line and from Oracle > Enterprise Manager so I know tnsnames is configured properly. > > Also, the table OGGMA and data are loaded and I can do a select * from > OGGMA and data would come back fine. > > > 6) Pointing a web browser at mapserver produces the following error: > > > "http://schemas.opengeospatial.net/wms/1.1.1/exception_1_1_1.dtd"> > > > msDrawMap(): Image handling error. Failed to draw layer named > 'ogma'. > msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI > Handlers. Connection failure. Check the connection string. Error: . > > > > > Can someone help me with this issue? > > Thank you for any tips and suggestions. > > -- > Lyndon Tiu From warmerdam at POBOX.COM Tue Jan 25 22:07:20 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 26 Jan 2005 01:07:20 -0500 Subject: ECW Source SDK Available - Linux Binaries Prepared Message-ID: Folks, The long awaited release of the ECW SDK from ERMapper has finally arrived, and I have built the code for Linux (with gcc 3.3). The building is a bit tricky, so I thought it might be of interest to some folks to have pre-build binaries for linux. I have put them at: http://gdal.org/dl/ecwsdk-3.1.25Jan05-linux.tar.gz I *think* this should work with gdal 1.2.5. I have also used it with the current GDAL ECW driver code which requires the features of version 3.1. It worked, but I needed to commit a few fixes, so if you want to use the latest stuff make sure you get the nightly snapshot that will be prepared in a few hours or use GDAL straight from CVS. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From ltiu at ALUMNI.SFU.CA Tue Jan 25 22:21:51 2005 From: ltiu at ALUMNI.SFU.CA (Lyndon Tiu) Date: Tue, 25 Jan 2005 22:21:51 -0800 Subject: MapServer and Oracle Spatial In-Reply-To: <1106717582.5761.1.camel@katrin> Message-ID: On January 25, 2005 09:33 pm, Nicol Hermann wrote: > Hi, > > try setting the variable ORACLE_HOME in your Webserver environment. > Thank you but that did not work. Same error. -- Lyndon Tiu From kristjan at TARKVARASTUUDIO.EE Tue Jan 25 23:22:32 2005 From: kristjan at TARKVARASTUUDIO.EE (Kristjan Annus) Date: Wed, 26 Jan 2005 09:22:32 +0200 Subject: php-mapscript tile indexing In-Reply-To: <74700A2004B18A459CDA46BF6BDEDEF5EF8E56@ORNLEXCHANGE.ornl.gov> Message-ID: $layers = $map->getLayersIndexByGroup('IGBP_MOD12Q1'); if ($layers) { while ($lr = each($layers)) { $oCurrLayer = $map->getLayer($lr[1]); $oCurrLayer->set( "status", 1); this line might be needed if you have done $map->draw() allready : $oCurrLayer->draw( $image); } } >Hi, > >I am able to customize the GMap php-rosa sample app. I have the >following layer in my .map file, I am using TILEINDEX for 8km and 1km >resolution and for the top level 50 km I am using tif image. In by JBox >I used to call this layer by the GROUP " MOD12Q1" and it worked, now in >the php application how do I call this group? Is there similar method >call like getlayerbyname() for LAYER GROUP? > > $poLayer = $gpoMap->getlayerbyname("IGBP_MOD12Q1"); > $poLayer->set("status", 1); > >Returns >Warning: getLayerByName failed for : IGBP_MOD12Q1 in >f:\Inetpub\wwwroot\gmap\htdocs\gmap75.inc.php on line 116 > >Any suggestion would be highly appreciated Thanks! >Giri > >Here is my layer snippet from the .map file > >LAYER > NAME IGBP_50k > GROUP IGBP_MOD12Q1 > TYPE RASTER > DATA LL_SDS01GR50.tif > STATUS ON > MINSCALE 1490000 > MAXSCALE 190000000 > #MAXSCALE 10000 > PROJECTION > "proj=longlat" > "ellps=GRS80" > "no_defs" > END >END >LAYER > NAME IGBP_8K > GROUP IGBP_MOD12Q1 > TYPE RASTER > STATUS ON > TILEINDEX "modis_8km" > TILEITEM "Location" > MINSCALE 29000000 > MAXSCALE 150000000 > PROJECTION > "proj=longlat" > "ellps=GRS80" > "no_defs" > "proj=eqc" > END > >END >LAYER > NAME IGBP_1K > GROUP IGBP_MOD12Q1 > TYPE RASTER > STATUS ON > TILEINDEX "modis_1km" > TILEITEM "Location" > #MINSCALE 8000000 > MAXSCALE 30000000 > PROJECTION > "proj=longlat" > "ellps=GRS80" > "no_defs" > "proj=eqc" > END > >END > >Giri > > From Martin.van.Dijken at RIJNMOND.POLITIE.NL Wed Jan 26 00:00:11 2005 From: Martin.van.Dijken at RIJNMOND.POLITIE.NL (Dijken, M. van (Martin)) Date: Wed, 26 Jan 2005 09:00:11 +0100 Subject: Binaries for Mapserver 4.4.1 OCI require PostgreSQL? Message-ID: I recently downloaded the mapserver 4.4.1 for windows binaries to do a test install on my development machine. I followed the installation instructions but first got the message MSVCR71.dll required. I found that this dll was in the .NET framework so added the .NET framework directory to my PATH. After this I get the message: This application cannot be started because LIBPQ.dll cannot be found. After some searching on the web I found that LIBPQ is part of the PostgreSQL product. However, I downloaded the OCI version of MS, with no intention whatsoever to use Postgres. Can this be fixed, or am I missing something here? Hope to hear from you soon, Martin van Dijken Police Dept. Rotterdam ------------------------------- DISCLAIMER ------------------------------- De Informatie in deze e-mail en de meegestuurde bestanden zijn vertrouwelijk en mogelijk wettig beschermd. De e-mail is uitsluitend bedoeld voor gebruik door de geadresseerde en andere geautoriseerde ontvangers. Indien u niet de geadresseerde bent, maken wij er u op attent dat gebruik van de informatie in de e-mail en de meegezonden bestanden, waaronder openbaarmaking vermenigvuldiging, verspreiding en/of verstrekking aan derden niet is toegestaan en mogelijk zelfs onwettig. Mocht u deze e-mail abusievelijk hebben ontvangen, dan vragen wij u de afzender op de hoogte te brengen en het originele bericht te vernietigen. De Politie Rotterdam - Rijnmond is niet verantwoordelijk voor de inhoud van deze e-mail en wijst iedere aansprakelijkheid af voor en/of in verband met alle gevolgen en/of schade van een onjuiste of onvolledige verzending en/of vertraging ervan. De Politie Rotterdam - Rijnmond is niet verantwoordelijk voor meegestuurde virussen. Het is uw eigen verantwoording om e-mails en de meegezonden bestanden hierop te scannen. Aan deze e-mail kunnen geen rechten worden ontleend. Belangrijke afspraken of contracten dienen altijd door de daarvoor bevoegde personen te worden ondertekend. ---------------------------------------------------------------------------- The Information contained in this e-mail and its attachments is confidential and may be legally privileged. This e-mail is intended solely for the use of the individual or entity to whom it is addressed and others authorised to receive it. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance if the contents of this e-mail and any attachments is strictly prohibited and may be unlawful. If received in error, we ask you to notify the sender and delete te original message. Rotterdam - Rijnmond Police is not liable for the content of this e-mail and accepts no responsibility for any damage and/or consequences of improper and incomplete transmission or delay in its receipt. Please note that Rotterdam - Rijnmond Police does not accept any responsibility to scan the e-mail and attachments if any. No contracts may be concluded on behalf of Rotterdam - Rijnmond Police by means of e-mail. Important agreements must always be signed by the therefore authorised persons. ---------------------------------------------------------------------------- From joseluismapserver at YAHOO.ES Wed Jan 26 01:05:42 2005 From: joseluismapserver at YAHOO.ES (Jose Luis Gonzalez) Date: Wed, 26 Jan 2005 10:05:42 +0100 Subject: Example Maps In-Reply-To: Message-ID: I am also using the examples, and I want to make the usa.map work but it doesn't. Does it work for you? Did you see anything wrong? I am working with: MapServer version 4.4.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=GDAL INPUT=SHAPEFILE So I think that if I have gdal it should recognize .tif files and should work. But it doesn't Thank you Jose Luis Nicole Faust wrote: Hello group! I'm new to this group and I'm trying to work with the MapServer. I want to use it together with PostgreSQL+PostGIS and Apache. The programs are allready installed, but are not working properly. So now I do not know if it is a problem with the installation or with the example file. I'm using the usa2.map example from: http://www.mobilegeographics.com/mapserver/ I have corrected the Shape- and Imagepath to my installation. Typically I receive only the frame which tells me that the map was created with MapServer and a legend at the bottom. But the map is missing. Thanks for your help, sincerly N. Faust --------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From joseluismapserver at YAHOO.ES Wed Jan 26 01:13:13 2005 From: joseluismapserver at YAHOO.ES (Jose Luis Gonzalez) Date: Wed, 26 Jan 2005 10:13:13 +0100 Subject: relation between .tab and .map Message-ID: Does anyone know any web page were indicates the posible values that the parameters of the coordsys earth projection can have in a .tab file? Does anyone know any web page were indicates the posible values that the parameters of the projection of a .map file can have? All I want is to put the parameters of the projection from my .tab file to my .map file, but it doesn't work. For example the "datum" in the corrdsys earth projection is 1001 but in the map file I do not know what it corresponds to (NAD27,WG83,...) Thank you Jose Luis --------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From joseluismapserver at YAHOO.ES Wed Jan 26 01:16:26 2005 From: joseluismapserver at YAHOO.ES (Jose Luis Gonzalez) Date: Wed, 26 Jan 2005 10:16:26 +0100 Subject: projection doubts Message-ID: Hi to all, in a .map file the projection that apears in every layer is obiously the projection of that layer. But what does the projection that apears before any layer in a .map file stand for? Thank you Jose Luis --------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From alhim at INTRACOM.GR Wed Jan 26 01:42:11 2005 From: alhim at INTRACOM.GR (Alex Chimarios) Date: Wed, 26 Jan 2005 03:42:11 -0600 Subject: XPM and X11 Message-ID: Dear mapserver users, I am trying to port the _mapscript.so in a PDA running Linux without X11. I have cross-compiled and installed all libraries(gdal, gd, proj) except the libXpm. When I tried a test code in Python, the image was drawn without the layers. Is the libXpm dor drawing vector data ? From paulseni at UNI-DUESSELDORF.DE Wed Jan 26 01:52:45 2005 From: paulseni at UNI-DUESSELDORF.DE (Ingo Paulsen) Date: Wed, 26 Jan 2005 10:52:45 +0100 Subject: Example Maps In-Reply-To: <20050126090542.53782.qmail@web26410.mail.ukl.yahoo.com> Message-ID: Hello, I fixed the problem by replacing the IMAGEURL path with IMAGEPATH entry. Did you take a look in your /var/www/html/tmp/ directory? Are there any dynamically created .png files? WEB IMAGEPATH "/var/www/html/tmp/" IMAGEURL "/var/www/html/tmp/" END I suppose you have installed the shapefiles in /var/www/html/data. Best regards Ingo > I am also using the examples, and I want to make the usa.map work but > it doesn't. > Does it work for you? > Did you see anything wrong? > I am working with: > ? > MapServer version 4.4.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 > INPUT=GDAL INPUT=SHAPEFILE > ? > So I think that if I have gdal it should recognize .tif files and > should work. But it doesn't From constantin.a.cristian at GMAIL.COM Wed Jan 26 02:15:30 2005 From: constantin.a.cristian at GMAIL.COM (Constantin Cristian) Date: Wed, 26 Jan 2005 12:15:30 +0200 Subject: Add symbos to a map Message-ID: I have successfully set up a map and everything works ok in the map browsing part. Does anyone have any ideas how could I add some symbols to the displayed map at some precise coordinates so I can move them around? -------------- next part -------------- An HTML attachment was scrubbed... URL: From fsimon at UNIVALI.BR Wed Jan 26 00:41:48 2005 From: fsimon at UNIVALI.BR (Fernando S.) Date: Wed, 26 Jan 2005 08:41:48 +0000 Subject: MapServer and Oracle Spatial In-Reply-To: <41F6DEDC.4070009@alumni.sfu.ca> Message-ID: Hi, I believe that the problem can be with the webserver variables. Here in my server needed to set in httpd.conf of apache this variables: ..... SetEnv ORACLE_SID flserver SetEnv ORACLE_BASE /oracle SetEnv ORACLE_HOME /oracle/product/10.1.0/client_1/ SetEnv ORA_NLS33 /oracle/product/10.1.0/client_1/nls/data/ SetEnv NLS_LANG AMERICAN_AMERICA.WE8ISO8859P1 SetEnv LD_LIBRARY_PATH "/oracle/product/10.1.0/client_1/lib:/lib:/usr/lib:/usr/local/lib" ..... Thanks. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://g10.cttmar.univali.br - UNIVALI/CTTMAR ------------------------------------------------------------------------ Lyndon Tiu wrote: > Hello, > > I have: > > 1) Mapserver 4.4.1 on Linux compiled with oraclespatial support. > > 2) Oracle Spatial 10g on Solaris. > > 3) Tnsnames are configured properly and sqlplus from the Linux command > line can connect to Oracle database on Solaris box. > > 4) Listener and database have both been started and are both running on > Solaris box. > > 5) mapserver map file: > > LAYER > NAME "oggma" > CONNECTIONTYPE oraclespatial > CONNECTION "user/pass at orasptl" > DATA "GEOM FROM OGGMA USING SRID NULL" > STATUS ON > TYPE POLYGON > CLASS > STYLE > OUTLINECOLOR 0 0 0 > COLOR 225 225 185 > END > END > PROJECTION > "init=epsg:42102" > END > END > > The connect string: > > user/pass at ora10g works fine from the command line and from Oracle > Enterprise Manager so I know tnsnames is configured properly. > > Also, the table OGGMA and data are loaded and I can do a select * from > OGGMA and data would come back fine. > > > 6) Pointing a web browser at mapserver produces the following error: > > > "http://schemas.opengeospatial.net/wms/1.1.1/exception_1_1_1.dtd"> > > > msDrawMap(): Image handling error. Failed to draw layer named > 'ogma'. > msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI > Handlers. Connection failure. Check the connection string. Error: . > > > > > Can someone help me with this issue? > > Thank you for any tips and suggestions. > > -- > Lyndon Tiu > From joseluismapserver at YAHOO.ES Wed Jan 26 03:03:09 2005 From: joseluismapserver at YAHOO.ES (Jose Luis Gonzalez) Date: Wed, 26 Jan 2005 12:03:09 +0100 Subject: Example Maps In-Reply-To: <07986207-6F80-11D9-8FA2-000A95BB6956@uni-duesseldorf.de> Message-ID: I have the .tif and shape files and the results (.png) files in the same directory. The only thing is that the IMAGEURL path I put is as in the example: not with the complete path. I will try it putting all the path, but I am not very sure it will work. I suspect that it doesn't find the correct files that mapserver needs to process .tiff files. I compiled it as you seee with gdal, but I am not very sure if he really can get it. I don't know if he can really manage those type of files. Thank you Jose Luis Ingo Paulsen wrote: Hello, I fixed the problem by replacing the IMAGEURL path with IMAGEPATH entry. Did you take a look in your /var/www/html/tmp/ directory? Are there any dynamically created .png files? WEB IMAGEPATH "/var/www/html/tmp/" IMAGEURL "/var/www/html/tmp/" END I suppose you have installed the shapefiles in /var/www/html/data. Best regards Ingo > I am also using the examples, and I want to make the usa.map work but > it doesn't. > Does it work for you? > Did you see anything wrong? > I am working with: > > MapServer version 4.4.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 > INPUT=GDAL INPUT=SHAPEFILE > > So I think that if I have gdal it should recognize .tif files and > should work. But it doesn't --------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From D.Lowe at RL.AC.UK Wed Jan 26 03:10:32 2005 From: D.Lowe at RL.AC.UK (Lowe, D (Dominic)) Date: Wed, 26 Jan 2005 11:10:32 -0000 Subject: netCDF in a mapfile Message-ID: Hi, I'm also interested in displaying netCDF (atmospheric/oceanographic) data. So far I've got a GMT generated file 'displayed' but I can only see it as a black rectangle. This suggests the GMT driver is working ok. However, any type of color expression eg: COLOR # some attempt at color mapping here END just results in a blank image. Has anyone got any idea as to what a correct COLOR mapping would look like for a GMT file? Sorry I haven't got the gdalinfo output available now, but I can send it tomorrow if it helps. Cheers Dominic -----Original Message----- From: UMN MapServer Users List on behalf of Frank Warmerdam Sent: Fri 21/01/2005 20:47 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] netCDF in a mapfile On Thu, 20 Jan 2005 10:58:55 +0100, Tony Jolibois wrote: > Hi all, > > I try to display netCDF file with the GDAL driver, but no succeed. > > The gdalinfo give a good response, but I don't know how I can specifie my > variable and the depth for the layer in the mapfile (it is a 3 dimension > variable). > Can anyone help me ? > > Thanks in advance, > Tony > > gdal from CVS today > mapserver 4.4.1 > on linux AS > > gdalinfo : > Driver: netCDF/network Common Data Format > Size is 8, 129 Tony, I doubt that the above is really a meaningful response in this case. I think GDAL is picking the wrong dimension for x. The netCDF driver also doesn't handle multiple variables in one netCDF file gracefully. As it happens, you are once again operating on the frontier I am interested in advancing. In particular, I am interested in improving the netCDF driver. Would you mind pointing me to the netCDF file in question so I can try and use it as an example while I work on the driver. Best regards, -- ---------------------------------------+------------------------------------ -- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From John.Spotten at CAPETOWN.GOV.ZA Wed Jan 26 03:01:21 2005 From: John.Spotten at CAPETOWN.GOV.ZA (John Spotten) Date: Wed, 26 Jan 2005 13:01:21 +0200 Subject: mapfile join Message-ID: Hi, looking for some sample code showing a join use successfully. get a parsing error when using it under class. put it under layer, no parsing error but then XP tells me mapserv.exe has found a problem and is closing down. using mapserver 4.4.0 on XP and I get error on html page msDBFJoinConnect(): Unable to access file. (c:\ms4w\apps\mapserver_demos\ct\data\join.dbf). any clues. can i use a dbf file. I am trying to join to a shape file a seperate independent dbf file on a common field that is indexed in the shape file. the field is text type. I take it it can be accessed using the [join_] template in a query template file for a one to many join where [join_] gets replaced with the join header template and footer files and I assume that the template within the query template file is [_]. Is it possible to refer to the qlayer as [join_]? bye john John Spotten Transport Modeller/GIS Developer Directorate of Transport, Roads and Stormwater City of Cape Town Tel : +27 21 4067325 Fax : +27 21 4186989 Cell : +27 846678901 Email : john.spotten at capetown.gov.za Web : www.capetown.gov.za <> -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: John Spotten.vcf Type: text/x-vcard Size: 226 bytes Desc: John Spotten.vcf URL: -------------- next part -------------- NOTE: This e-mail (including attachments) is subject to the restrictions, qualifications and disclaimers (?disclaimer?) published at www.capetown.gov.za/disclaimer/email.pdf. Please read the disclaimer before opening any attachment or taking any other action in terms of this e-mail. If you cannot access the disclaimer, kindly send an email to infomail at capetown.gov.za and a copy will be provided to you. By acting on this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer. ------------------------------------------------- From paulseni at UNI-DUESSELDORF.DE Wed Jan 26 03:53:48 2005 From: paulseni at UNI-DUESSELDORF.DE (Ingo Paulsen) Date: Wed, 26 Jan 2005 12:53:48 +0100 Subject: Example Maps In-Reply-To: <20050126110309.11085.qmail@web26404.mail.ukl.yahoo.com> Message-ID: Hi, hm, I'm not sure about your .tif problem. By executing the usa1.phtml example locally there was generated a .png file in /var/www/html/tmp/11067393996391.png (with the US States in yellow) and not a .tif file. Does including dl("php_mapscript.so"); in your usa1.phtml file work properly? My mapserv config is: MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Best regards Ingo > I have the .tif and shape files and the results (.png) files in the > same directory. > The only thing is that the IMAGEURL path I put is as in ?the example: > not with the complete path. I will try it putting all the path, but I > am not very sure it will work. > ? > I suspect that it doesn't find the correct files that mapserver needs > to process .tiff files. I compiled it as you seee with gdal, but I am > not very sure if? he really can get it. I don't know if he can really > manage those type of files. From John.Spotten at CAPETOWN.GOV.ZA Wed Jan 26 03:31:12 2005 From: John.Spotten at CAPETOWN.GOV.ZA (John Spotten) Date: Wed, 26 Jan 2005 13:31:12 +0200 Subject: displaying mrsid files in mapserver Message-ID: Hi, I can display some mrsid files using mapserver normal release binaries from http://hobo.stat.iastate.edu/mapserver/. Seems to depend on how the mrsid files were made up or their size. I can see 2mb sid files easly (w45a03.sid) but not 50mb files(w55d.sid). here is the info on the sid files, apart from size the only other difference is dyn range min and dyn range max values which are set at natural in the non displaying sid file, maybe no color range therefore no display. any clues. is the complete mrsid file loaded into memory on the server or only the portion that is in the view before being sent as a gif , my output format? C:\MS4W\apps\mapserver_demos\ct\data>mrsidinfo w45a03.sid mrsidinfo: (c) 2003 LizardTech, Inc. All rights reserved. basic image info: format: MRSID width: 4000 height: 4000 nband: 3 color space: RGB datatype: uint8 dyn range min: (0, 0, 0) dyn range max: (254, 254, 254) background color: (none) nodata color: (none) metadata records: 27 geo coordinate info: X UL: -48000.000000 Y UL: -3750000.000000 X res: 0.250000 Y res: -0.250000 X rot: 0.000000 Y rot: 0.000000 geo points (pixel centers): upper left: (-48000.000000, -3750000.000000) upper right: (-47000.250000, -3750000.000000) lower left: (-48000.000000, -3750999.750000) lower right: (-47000.250000, -3750999.750000) center: (-47500.125000, -3750499.875000) MrSID-specific image info: number of levels: 4 is locked: false file version: 1.0.1. MrSID/MG2-specific image info: is dithered: true C:\MS4W\apps\mapserver_demos\ct\data>mrsidinfo w55d.sid mrsidinfo: (c) 2003 LizardTech, Inc. All rights reserved. basic image info: format: MRSID width: 20000 height: 20000 nband: 3 color space: RGB datatype: uint8 dyn range min: (natural) dyn range max: (natural) background color: (none) nodata color: (none) metadata records: 19 geo coordinate info: X UL: -55000.000000 Y UL: -3755000.000000 X res: 0.250000 Y res: -0.250000 X rot: 0.000000 Y rot: 0.000000 geo points (pixel centers): upper left: (-55000.000000, -3755000.000000) upper right: (-50000.250000, -3755000.000000) lower left: (-55000.000000, -3759999.750000) lower right: (-50000.250000, -3759999.750000) center: (-52500.125000, -3757499.875000) MrSID-specific image info: number of levels: 9 is locked: false file version: 1.0.1. MrSID/MG2-specific image info: is dithered: true John Spotten Transport Modeller/GIS Developer Directorate of Transport, Roads and Stormwater City of Cape Town Tel : +27 21 4067325 Fax : +27 21 4186989 Cell : +27 846678901 Email : john.spotten at capetown.gov.za Web : www.capetown.gov.za <> -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: John Spotten.vcf Type: text/x-vcard Size: 226 bytes Desc: John Spotten.vcf URL: -------------- next part -------------- NOTE: This e-mail (including attachments) is subject to the restrictions, qualifications and disclaimers (?disclaimer?) published at www.capetown.gov.za/disclaimer/email.pdf. Please read the disclaimer before opening any attachment or taking any other action in terms of this e-mail. If you cannot access the disclaimer, kindly send an email to infomail at capetown.gov.za and a copy will be provided to you. By acting on this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer. ------------------------------------------------- From sedatacemoglu at GMAIL.COM Wed Jan 26 04:08:09 2005 From: sedatacemoglu at GMAIL.COM (Sedat Acemoglu) Date: Wed, 26 Jan 2005 14:08:09 +0200 Subject: highlight Message-ID: Hi, Is it possible to send commands to MapServer to highlight some shapes in a shapefile dynamically? Best regards, Sedat From wbronsema at DMSOLUTIONS.CA Wed Jan 26 04:29:44 2005 From: wbronsema at DMSOLUTIONS.CA (William Bronsema) Date: Wed, 26 Jan 2005 07:29:44 -0500 Subject: Zoom to custom extent - PHP In-Reply-To: Message-ID: Kevin, The javascript error is not preventing your map from zooming, something else is. There is likely some other PHP code that is resetting the extents after your quick zoom code. The javascript error you are getting occurs because the function you listed cannot find the hidden textbox called "QueryString". Did you happen to remove it or move it outside of the form called "main"? Send me your app off-list and I will take a quick look. Bill ________________________________________________ William A. Bronsema, C.E.T. Applications and Software Development, DM Solutions Group Inc. > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Kevin Grootendorst > Sent: January 25, 2005 2:52 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Zoom to custom extent - PHP > > I've implemented the code, and now I'm even convinced it should work. But > no such luck yet. The debugging works just as it should, but when it > should 'quick zoom now', the map still draws to the project's max extents. > However, I do receive a windows js error box indicating a problem in the > app.phmtl file: > > 'document.main.QueryString.value' is null or not an object. > > > Here is my javascript from the .phtml file: > > > > > Could this somehow be preventing my php code from working? From Richard_D_Levine at RAYTHEON.COM Wed Jan 26 05:09:30 2005 From: Richard_D_Levine at RAYTHEON.COM (Rick Levine) Date: Wed, 26 Jan 2005 08:09:30 -0500 Subject: MapServer and Oracle Spatial Message-ID: You must have the environment variable ORACLE_HOME set for the mapserv process when it runs. Setting ORACLE_SID is never a bad idea either. Rick Lyndon Tiu To: MAPSERVER-USERS at LISTS.UMN.EDU Sent by: UMN cc: MapServer Users List Subject: [UMN_MAPSERVER-USERS] MapServer and Oracle Spatial 01/25/2005 07:05 PM Please respond to Lyndon Tiu Hello, I have: 1) Mapserver 4.4.1 on Linux compiled with oraclespatial support. 2) Oracle Spatial 10g on Solaris. 3) Tnsnames are configured properly and sqlplus from the Linux command line can connect to Oracle database on Solaris box. 4) Listener and database have both been started and are both running on Solaris box. 5) mapserver map file: LAYER NAME "oggma" CONNECTIONTYPE oraclespatial CONNECTION "user/pass at orasptl" DATA "GEOM FROM OGGMA USING SRID NULL" STATUS ON TYPE POLYGON CLASS STYLE OUTLINECOLOR 0 0 0 COLOR 225 225 185 END END PROJECTION "init=epsg:42102" END END The connect string: user/pass at ora10g works fine from the command line and from Oracle Enterprise Manager so I know tnsnames is configured properly. Also, the table OGGMA and data are loaded and I can do a select * from OGGMA and data would come back fine. 6) Pointing a web browser at mapserver produces the following error: msDrawMap(): Image handling error. Failed to draw layer named 'ogma'. msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI Handlers. Connection failure. Check the connection string. Error: . Can someone help me with this issue? Thank you for any tips and suggestions. -- Lyndon Tiu From jdport at VERITIME.COM Wed Jan 26 05:20:19 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Wed, 26 Jan 2005 08:20:19 -0500 Subject: projection doubts Message-ID: As you said, the projection in each layer is the "input" projection, or the projection that has been applied to the data in that layer. The projection block in the "map" section is the "output" projection, or the projection you will apply to your entire map for viewing. Mapserver does projections on the fly. Hope that helped, Jeff ----- Original Message ----- From: Jose Luis Gonzalez To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Wednesday, January 26, 2005 4:16 AM Subject: [UMN_MAPSERVER-USERS] projection doubts Hi to all, in a .map file the projection that apears in every layer is obiously the projection of that layer. But what does the projection that apears before any layer in a .map file stand for? Thank you Jose Luis ------------------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From jegou at UNIV-TLSE2.FR Wed Jan 26 05:37:56 2005 From: jegou at UNIV-TLSE2.FR (=?ISO-8859-1?Q?Laurent_J=E9gou?=) Date: Wed, 26 Jan 2005 14:37:56 +0100 Subject: MapServer statically builded binaries ? In-Reply-To: <20050126091626.39493.qmail@web26402.mail.ukl.yahoo.com> Message-ID: Hello, as a poor linux user i apprehend tweaking config files, so i ask the list , just in case, if someone has already build MapServer with the prerequisites statically ? The goal is to obtain a single file MapServer executable (or a group of static libs files) to put in a cgi-bin directory. Thanks for your help ! -- Laurent J?gou IGE Cartographe UTM - D?pt. G?ographie 31058 TOULOUSE Cedex 9 - 05.61.50.43.89 http://www.univ-tlse2.fr/geoprdc From richard.greenwood at GMAIL.COM Wed Jan 26 05:38:00 2005 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Wed, 26 Jan 2005 06:38:00 -0700 Subject: relation between .tab and .map In-Reply-To: <20050126091313.79218.qmail@web26404.mail.ukl.yahoo.com> Message-ID: On Wed, 26 Jan 2005 10:13:13 +0100, Jose Luis Gonzalez wrote: > Does anyone know any web page were indicates the posible values that the > parameters of the coordsys earth projection can have in a .tab file? The MAPINFOW.PRJ file defines the MapInfo projections. And the MapInfo Reference Manual explains the structure of the file fairly well. > Does anyone know any web page were indicates the posible values that the > parameters of the projection of a .map file can have? The epsg file which come with Proj defines the coordinate systems used by Proj, Gdal, MapServer, etc. Also the spatial_ref_sys table in PostGIS defines the coordinate system parameters. Regards, -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From sgillies at FRII.COM Wed Jan 26 06:05:05 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 26 Jan 2005 07:05:05 -0700 Subject: SWIG mapscript request/bug? - WORKAROUND In-Reply-To: Message-ID: On Jan 25, 2005, at 5:30 PM, Ryan, Adam wrote: > And the workaround is... > > When you're reordering layers AND you want to do a drawQuery(), > reorder the > layers and then save the map file and then load it again and then > drawQuery(). Ugly. > > Adam > Adam, Brutal, I agree. But since you are using mapscript you do have the option of programming your own query map. I don't think msDrawQueryMap does anything that you can't script yourself. Steve Lime has been considering an overhaul of the query map but I am neither sure of the status nor sure that he is looking at your issue. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From fwarmerdam at GMAIL.COM Wed Jan 26 06:24:19 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 26 Jan 2005 09:24:19 -0500 Subject: netCDF in a mapfile In-Reply-To: Message-ID: On Wed, 26 Jan 2005 11:10:32 -0000, Lowe, D (Dominic) wrote: > Hi, > > I'm also interested in displaying netCDF (atmospheric/oceanographic) data. > So far I've got a GMT generated file 'displayed' but I can only see it as a > black rectangle. This suggests the GMT driver is working ok. However, any > type of color expression eg: > COLOR > # some attempt at color mapping here > END > > just results in a blank image. > > Has anyone got any idea as to what a correct COLOR mapping would look like > for a GMT file? > > Sorry I haven't got the gdalinfo output available now, but I can send it > tomorrow if it helps. Dominic, First, I would encourage you to read over the MapServer 4.4 Raster HOWTO. I believe it talks a bit about scaling and classification of raster data. But you also need to ensure that GDAL is "seeing" the proper values in your netCDF file. The first way to check is to run gdalinfo with the -mm flag. This should report the minimum and maximum of the data. If those values look OK, you should try viewing the file with a GDAL based viewer such as OpenEV. Assuming the values are coming through properly, you may find you need to control the scaling explicitly in your mapfile. To do that you would put something like the following with a minimum and maximum appropriate to your data. PROCESSING "SCALING=0,1000" Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From David.Fawcett at STATE.MN.US Wed Jan 26 06:32:34 2005 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Wed, 26 Jan 2005 08:32:34 -0600 Subject: Example Maps Message-ID: Jose Luis, IMAGEURL is a URL, not a path. I don't work on nix that much, but my guess is that based on your path, it would be something like "/tmp/" or "/html/temp/" David. See refernce http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#web David J. Fawcett MN Office of Environmental Assistance >>> Jose Luis Gonzalez 1/26/2005 5:03:09 AM >>> I have the .tif and shape files and the results (.png) files in the same directory. The only thing is that the IMAGEURL path I put is as in the example: not with the complete path. I will try it putting all the path, but I am not very sure it will work. I suspect that it doesn't find the correct files that mapserver needs to process .tiff files. I compiled it as you seee with gdal, but I am not very sure if he really can get it. I don't know if he can really manage those type of files. Thank you Jose Luis Ingo Paulsen wrote: Hello, I fixed the problem by replacing the IMAGEURL path with IMAGEPATH entry. Did you take a look in your /var/www/html/tmp/ directory? Are there any dynamically created .png files? WEB IMAGEPATH "/var/www/html/tmp/" IMAGEURL "/var/www/html/tmp/" END I suppose you have installed the shapefiles in /var/www/html/data. Best regards Ingo > I am also using the examples, and I want to make the usa.map work but > it doesn't. > Does it work for you? > Did you see anything wrong? > I am working with: > > MapServer version 4.4.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 > INPUT=GDAL INPUT=SHAPEFILE > > So I think that if I have gdal it should recognize .tif files and > should work. But it doesn't --------------------------------- From fwarmerdam at GMAIL.COM Wed Jan 26 06:36:36 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 26 Jan 2005 09:36:36 -0500 Subject: displaying mrsid files in mapserver In-Reply-To: <875F594C85E9914C841109EADA425E3511DD34@CBD-METLIFE-001.capetown.gov.za> Message-ID: On Wed, 26 Jan 2005 13:31:12 +0200, John Spotten wrote: > is the complete mrsid file loaded into memory on the server or only the > portion that is in the view before being sent as a gif , my output format? John, MapServer extracts a subregion of the file at the resolution of the output map rendering. It does not load the whole file. Can you provide me a .sid file that doesn't display for you? (off list) Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From ltiu at ALUMNI.SFU.CA Wed Jan 26 07:02:44 2005 From: ltiu at ALUMNI.SFU.CA (Lyndon Tiu) Date: Wed, 26 Jan 2005 07:02:44 -0800 Subject: MapServer and Oracle Spatial In-Reply-To: Message-ID: On January 26, 2005 05:09 am, Richard_D_Levine at raytheon.com wrote: > You must have the environment variable ORACLE_HOME set for the mapserv > process when it runs. Setting ORACLE_SID is never a bad idea either. > What's the proper way of setting these variables? I set it in the shell of the user that starts the apache process. But that did not work. Thank you. -- Lyndon Tiu From lfilak at MEDINACO.ORG Wed Jan 26 07:04:08 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Wed, 26 Jan 2005 10:04:08 -0500 Subject: SWIG mapscript request/bug? - WORKAROUND Message-ID: The following message was sent by Sean Gillies on Wed, 26 Jan 2005 07:05:05 -0700. > On Jan 25, 2005, at 5:30 PM, Ryan, Adam wrote: > > > And the workaround is... > > > > When you're reordering layers AND you want to do a drawQuery(), > > reorder the > > layers and then save the map file and then load it again and then > > drawQuery(). Ugly. > > > > Adam > > > > Adam, > > Brutal, I agree. But since you are using mapscript you do have the > option of programming your own query map. I don't think msDrawQueryMap > does anything that you can't script yourself. > Steve Lime has been considering an overhaul of the query map but I am > neither sure of the status nor sure that he is looking at your issue. Adam, I agree with Sean as we have never used the queryMapObj here, but rather just another mapObj. There have been a few issues that have come up pertaining to the queryMapObj and for a spell I thought it should go the way of the DBFInfo object, at least as far as the documentation goes for mapscript. Lowell From bfraser at GEOANALYTIC.COM Wed Jan 26 07:08:49 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Wed, 26 Jan 2005 08:08:49 -0700 Subject: relation between .tab and .map Message-ID: Jose Luis, From nicolas.fortin at EC.GC.CA Wed Jan 26 07:12:02 2005 From: nicolas.fortin at EC.GC.CA (Fortin,Nicolas [SteFoy]) Date: Wed, 26 Jan 2005 10:12:02 -0500 Subject: [UMN_MAPSERVER-USERS] MapServer and Oracle Spatial Message-ID: I don't know for Solaris but on windows, the anonymus web user account must have acces to the oracle_home directory to create to connection. Nicolas -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Lyndon Tiu Envoy? : Wednesday, January 26, 2005 10:03 AM ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] MapServer and Oracle Spatial On January 26, 2005 05:09 am, Richard_D_Levine at raytheon.com wrote: > You must have the environment variable ORACLE_HOME set for the mapserv > process when it runs. Setting ORACLE_SID is never a bad idea either. > What's the proper way of setting these variables? I set it in the shell of the user that starts the apache process. But that did not work. Thank you. -- Lyndon Tiu From D.Lowe at RL.AC.UK Wed Jan 26 07:48:52 2005 From: D.Lowe at RL.AC.UK (Lowe, D (Dominic)) Date: Wed, 26 Jan 2005 15:48:52 -0000 Subject: netCDF in a mapfile Message-ID: Many thanks for the tips Frank. GDAL seems to be finding the min/max x/y coordinates ok. I hadn't tried the -mm flag though. I'll check out OpenEV and explicit scaling too. Regards Dominic -----Original Message----- From: Frank Warmerdam [mailto:fwarmerdam at gmail.com] Sent: Wed 26/01/2005 14:24 To: Lowe, D (Dominic) Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] netCDF in a mapfile On Wed, 26 Jan 2005 11:10:32 -0000, Lowe, D (Dominic) wrote: > Hi, > > I'm also interested in displaying netCDF (atmospheric/oceanographic) data. > So far I've got a GMT generated file 'displayed' but I can only see it as a > black rectangle. This suggests the GMT driver is working ok. However, any > type of color expression eg: > COLOR > # some attempt at color mapping here > END > > just results in a blank image. > > Has anyone got any idea as to what a correct COLOR mapping would look like > for a GMT file? > > Sorry I haven't got the gdalinfo output available now, but I can send it > tomorrow if it helps. Dominic, First, I would encourage you to read over the MapServer 4.4 Raster HOWTO. I believe it talks a bit about scaling and classification of raster data. But you also need to ensure that GDAL is "seeing" the proper values in your netCDF file. The first way to check is to run gdalinfo with the -mm flag. This should report the minimum and maximum of the data. If those values look OK, you should try viewing the file with a GDAL based viewer such as OpenEV. Assuming the values are coming through properly, you may find you need to control the scaling explicitly in your mapfile. To do that you would put something like the following with a minimum and maximum appropriate to your data. PROCESSING "SCALING=0,1000" Best regards, -- ---------------------------------------+------------------------------------ -- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Wed Jan 26 07:57:06 2005 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Jean-Francois Doyon) Date: Wed, 26 Jan 2005 10:57:06 -0500 Subject: How to use a Query Map? Message-ID: Hello, So, I don't know if this should really be obvious to me or what, but I don't seem to be having any luck figuring out how this feature works, possibly caused by the fact that maybe I don't know exactly what it does ... I am going based on the assumption this feature returns a map with the features matching a query "highlighted" somehow? Thing is we can't get it to return anything other than a blank map. We've tried messing with a variety of CGI parameters, mapfile parameters, etc ... without success. If someone could share their successfull experience with this feature, it'd be much appreciated. Even better, if one of the developpers "in the know" could detail the exact way it's supposed to work, I'll add it to the mapfile reference ... I've tried using things like a point with a huge buffer, or an extent that covers the entire country, and no matter what, I just don't get anything back! Any help would be much appreciated ... Thanks, Jean-Fran?ois Doyon Internet Service Development and Systems Support / Sp?cialiste de d?veloppements internet et soutien technique Canada Centre for Remote Sensing / Centre Canadien de t?l?d?tection Natural Resources Canada / Ressources naturelles Canada http://atlas.gc.ca Tel./T?l. : (613) 992-4902 Fax: (613) 947-2410 From brucesaunders at MAXIMUS.COM Wed Jan 26 07:45:10 2005 From: brucesaunders at MAXIMUS.COM (Bruce Saunders) Date: Wed, 26 Jan 2005 10:45:10 -0500 Subject: variable substitution within a projection object Message-ID: I'd like to be able to pass in a variable to be in substituted in the projection object but it doesn't seem to work as expected. I'd like to do something like this: PROJECTION "proj=utm" "ellps=GRS80" "lon_0=%lon_0%" END It seems like the variable isn't getting evaluated in this context. I've verified that the value is getting passed correctly since it's getting correctly replaced in the template. I've tried replacing the entire value with something like: PROJECTION "proj=utm" "ellps=GRS80" "%lon_0%" END But that doesn't seem to work either. Are variables not supported for projection objects? I'd appreciate any thought or suggestions people may have. -Bruce From ltiu at ALUMNI.SFU.CA Wed Jan 26 08:00:11 2005 From: ltiu at ALUMNI.SFU.CA (Lyndon Tiu) Date: Wed, 26 Jan 2005 08:00:11 -0800 Subject: MapServer and Oracle Spatial In-Reply-To: <16887.47513.481249.342225@ursus.waterpathcanoe.com> Message-ID: Rob P. wrote: >For apache, add your environmental variables in httpd.conf: >SetEnv ORACLE_HOME xxxx >On my unix box the file can be found in >/usr/local/etc/apache/httpd.conf >If you're running an apache web server, it should be in a similar >place. > OK. I placed the SetEnv ORACLE_HOME line in httpd2.conf and it seems to work, now I a getting a different error. Thanks for all your help guys. -- Lyndon Tiu From t.hester at DVAGROUP.COM Wed Jan 26 08:07:04 2005 From: t.hester at DVAGROUP.COM (Tim Hester) Date: Wed, 26 Jan 2005 10:07:04 -0600 Subject: Installing on Redhat7 Message-ID: OK so I got up and running. Many thanx to Daryl. Turns out I had a duplicate libz installed in /usr/local. Cleaned that up and recompiled GD and then MS. Thanx to all. Tim ----- Original Message ----- From: "Daryl Herzmann" To: Sent: Tuesday, January 25, 2005 12:05 AM Subject: Re: [UMN_MAPSERVER-USERS] Installing on Redhat7 > Howdy Tim, > > Looks like we need to do some tracking. Do you have multiple versions of > libgd installed? Make sure that the libgd-devel RPM is not installed... > > inflateInit is a zlib thing. Perhaps zlib-devel needs to be installed. > How did you compile libgd in /usr/local ? > > daryl > > On Mon, 24 Jan 2005, Tim Hester wrote: > >> I've compiled MS and I'm trying to checkout the workshop demo. I'm >> getting >> this in the error_log; >> mapserv: relocation error: /usr/local/lib/libgd.so.2: undefined symbol: >> inflateInit_ >> [Mon Jan 24 10:21:11 2005] [error] [client 192.168.1.1] Premature end of >> script headers: /var/www/cgi-bin/mapser >> >> When I execute mapserv -v from the command line I get; >> [root at catcher241 mapserver-4.4.1]# ./mapserv -v >> ./mapserv: relocation error: /usr/local/lib/libgd.so.2: undefined symbol: >> inflateInit_ >> >> >> Tim Hester >> DVA Group, Inc. >> 850-872-7099 PC FL Lab >> > > -- > /** > * Daryl Herzmann (akrherz at iastate.edu) > * Program Assistant -- Iowa Environmental Mesonet > * http://mesonet.agron.iastate.edu > */ > > From rcorbin98 at YAHOO.COM Wed Jan 26 08:06:42 2005 From: rcorbin98 at YAHOO.COM (Rob Corbin) Date: Wed, 26 Jan 2005 10:06:42 -0600 Subject: Win32 Binaries on mapserver site do not seem to be compiled correctly Message-ID: All of the .exe files are very small. i.e. mapserv.exe is 36K. From ARyan at CO.LINN.OR.US Wed Jan 26 08:25:58 2005 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Wed, 26 Jan 2005 08:25:58 -0800 Subject: SWIG mapscript request/bug? - WORKAROUN D Message-ID: > -----Original Message----- > From: Lowell Filak [mailto:lfilak at MEDINACO.ORG] > Sent: Wednesday, January 26, 2005 7:04 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] SWIG mapscript > request/bug? - WORKAROUND > > > The following message was sent by Sean Gillies > on Wed, 26 Jan 2005 07:05:05 -0700. > > > On Jan 25, 2005, at 5:30 PM, Ryan, Adam wrote: > > > > > And the workaround is... > > > > > > When you're reordering layers AND you want to do a drawQuery(), > > > reorder the layers and then save the map file and then > load it again > > > and then drawQuery(). Ugly. > > > > > > Adam > > > > > > > Adam, > > > > Brutal, I agree. But since you are using mapscript you do have the > > option of programming your own query map. I don't think > > msDrawQueryMap does anything that you can't script yourself. Steve > > Lime has been considering an overhaul of the query map but I am > > neither sure of the status nor sure that he is looking at > your issue. > > Adam, > > I agree with Sean as we have never used the queryMapObj here, > but rather just another mapObj. There have been a few issues > that have come up pertaining to the queryMapObj and for a > spell I thought it should go the way of the DBFInfo object, > at least as far as the documentation goes for mapscript. > > Lowell > Lowell, Sean, et al. Now you guys are confusing me. First of all, I don't know how to display only a set of features quickly other than manipulating the resultCache (querying or loading a query file) and then doing a mapObj.drawQuery(). I'm not using a queryMapObject (at least not directly or consciously), and I'm not sure what it is. And if I were to script this myself, do you mean run through each layer and do a layerObj.drawQuery()? I guess that's easy enough. And that way I could get around the whole ordering issue. Wait...this is sounding pretty good. Cheers, Adam From nicolas.fortin at EC.GC.CA Wed Jan 26 08:26:21 2005 From: nicolas.fortin at EC.GC.CA (Fortin,Nicolas [SteFoy]) Date: Wed, 26 Jan 2005 11:26:21 -0500 Subject: [UMN_MAPSERVER-USERS] Win32 Binaries on mapserver site do not seem to be compiled correctly Message-ID: It "seems" but is ok...it is just more dll-based Nicolas -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] De la part de Rob Corbin Envoy? : Wednesday, January 26, 2005 11:07 AM ? : MAPSERVER-USERS at lists.umn.edu Objet : [UMN_MAPSERVER-USERS] Win32 Binaries on mapserver site do not seem to be compiled correctly All of the .exe files are very small. i.e. mapserv.exe is 36K. From lfilak at MEDINACO.ORG Wed Jan 26 08:33:19 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Wed, 26 Jan 2005 11:33:19 -0500 Subject: SWIG mapscript request/bug? - WORKAROUN D Message-ID: The following message was sent by "Ryan, Adam" on Wed, 26 Jan 2005 08:25:58 -0800. > > -----Original Message----- > > From: Lowell Filak [mailto:lfilak at MEDINACO.ORG] > > Sent: Wednesday, January 26, 2005 7:04 AM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] SWIG mapscript > > request/bug? - WORKAROUND > > > > > > The following message was sent by Sean Gillies > > on Wed, 26 Jan 2005 07:05:05 -0700. > > > > > On Jan 25, 2005, at 5:30 PM, Ryan, Adam wrote: > > > > > > > And the workaround is... > > > > > > > > When you're reordering layers AND you want to do a drawQuery(), > > > > reorder the layers and then save the map file and then > > load it again > > > > and then drawQuery(). Ugly. > > > > > > > > Adam > > > > > > > > > > Adam, > > > > > > Brutal, I agree. But since you are using mapscript you do have the > > > option of programming your own query map. I don't think > > > msDrawQueryMap does anything that you can't script yourself. Steve > > > Lime has been considering an overhaul of the query map but I am > > > neither sure of the status nor sure that he is looking at > > your issue. > > > > Adam, > > > > I agree with Sean as we have never used the queryMapObj here, > > but rather just another mapObj. There have been a few issues > > that have come up pertaining to the queryMapObj and for a > > spell I thought it should go the way of the DBFInfo object, > > at least as far as the documentation goes for mapscript. > > > > Lowell > > > > Lowell, Sean, et al. > > Now you guys are confusing me. First of all, I don't know how to display > only a set of features quickly other than manipulating the resultCache > (querying or loading a query file) and then doing a mapObj.drawQuery(). > > I'm not using a queryMapObject (at least not directly or consciously), and > I'm not sure what it is. > > And if I were to script this myself, do you mean run through each layer and > do a layerObj.drawQuery()? I guess that's easy enough. And that way I > could get around the whole ordering issue. Wait...this is sounding pretty > good. Adam, I confused it, forget I said anything. I shouldn't have replied until the novocain wears off. Lowell From kgrootendorst at BAIRD.COM Wed Jan 26 08:36:12 2005 From: kgrootendorst at BAIRD.COM (Kevin Grootendorst) Date: Wed, 26 Jan 2005 10:36:12 -0600 Subject: Zoom to custom extent - PHP Message-ID: Hi Bill, The quick zoom seems to be working now, but the ROSA tools do not respond, nor does the legend/layer list. I moved the code in the 'contents.php' to 'higher up' in the file (no longer at bottom). Once I select the region from the dropdown list, and click refresh, the map zooms to where it should. However, the list defaults back to the first option. It would also be nice to implement an 'onchange' event, so that I don't have to use the refresh button to zoom to the region (I'm wondering when things do work, if adding a layer and refreshing will automatically zoom to the first extent in the 'View Region' drop down list). Kevin On Wed, 26 Jan 2005 07:29:44 -0500, William Bronsema wrote: >Kevin, > >The javascript error is not preventing your map from zooming, something else >is. There is likely some other PHP code that is resetting the extents after >your quick zoom code. > >The javascript error you are getting occurs because the function you listed >cannot find the hidden textbox called "QueryString". Did you happen to >remove it or move it outside of the form called "main"? > >Send me your app off-list and I will take a quick look. > >Bill >________________________________________________ >William A. Bronsema, C.E.T. >Applications and Software Development, >DM Solutions Group Inc. > > >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >> Behalf Of Kevin Grootendorst >> Sent: January 25, 2005 2:52 PM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] Zoom to custom extent - PHP >> >> I've implemented the code, and now I'm even convinced it should work. But >> no such luck yet. The debugging works just as it should, but when it >> should 'quick zoom now', the map still draws to the project's max extents. >> However, I do receive a windows js error box indicating a problem in the >> app.phmtl file: >> >> 'document.main.QueryString.value' is null or not an object. >> >> >> Here is my javascript from the .phtml file: >> >> >> >> >> Could this somehow be preventing my php code from working? From wbronsema at DMSOLUTIONS.CA Wed Jan 26 08:58:12 2005 From: wbronsema at DMSOLUTIONS.CA (William Bronsema) Date: Wed, 26 Jan 2005 11:58:12 -0500 Subject: Zoom to custom extent - PHP In-Reply-To: Message-ID: Hi Kevin, From David.Fawcett at STATE.MN.US Wed Jan 26 09:11:53 2005 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Wed, 26 Jan 2005 11:11:53 -0600 Subject: Win32 Binaries on mapserver site do not seem to be compiled correctly Message-ID: Try the binaries at http://www.maptools.org/ms4w/index.phtml?page=downloads.html or here http://www.maptools.org/php_mapscript/ David. David J. Fawcett MN Office of Environmental Assistance >>> Rob Corbin 1/26/2005 10:06:42 AM >>> All of the .exe files are very small. i.e. mapserv.exe is 36K. From normanb at COMSINE.CO.UK Wed Jan 26 09:17:48 2005 From: normanb at COMSINE.CO.UK (Norman Barker) Date: Wed, 26 Jan 2005 17:17:48 +0000 Subject: WCS reprojection Message-ID: Hi, I make a request to the MapServer WCS (4.4.0-beta1) as follows http://wms.npagroup.com/cgi-bin/mapserv? REQUEST=GetCoverage&COVERAGE=gtopo30&SERVICE=WCS&map=/var/www/html/wcs/gtopo30/gtopo30.map&FORMAT=GEOTIFF_INT16&CRS=EPSG:32613&BBOX=447300.0,4572000.0,686460.0,4787160.0&RESX=60.0&RESY=60.0 I know the native format is wgs84 lat lon, does the WCS reproject my request and response. I thought a WCS did, or does it only allow access to the native format and projection of the data? Many thanks, Norman Barker From bfraser at GEOANALYTIC.COM Wed Jan 26 09:19:56 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Wed, 26 Jan 2005 10:19:56 -0700 Subject: variable substitution within a projection object Message-ID: Bruce, Search the email archive for "map_projection". Instead of using MapServer to do the variable substitution, use the ability to specify the map file projection object via CGI: ...&mode=map&map_projection=proj=utm,ellps=GRS80,lon_0=-102.5&layer=... You could do the construction of the "map_projection" CGI variable on the client side using java script. Brent Fraser ----- Original Message ----- From: "Bruce Saunders" To: Sent: Wednesday, January 26, 2005 8:45 AM Subject: [UMN_MAPSERVER-USERS] variable substitution within a projection object > I'd like to be able to pass in a variable to be in substituted in the > projection object but it doesn't seem to work as expected. > > I'd like to do something like this: > > PROJECTION > "proj=utm" > "ellps=GRS80" > "lon_0=%lon_0%" > END > > It seems like the variable isn't getting evaluated in this context. > I've verified that the value is getting passed correctly since it's > getting correctly replaced in the template. I've tried replacing the > entire value with something like: > > PROJECTION > "proj=utm" > "ellps=GRS80" > "%lon_0%" > END > > But that doesn't seem to work either. Are variables not supported for > projection objects? I'd appreciate any thought or suggestions people > may have. > > -Bruce From fwarmerdam at GMAIL.COM Wed Jan 26 09:59:20 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 26 Jan 2005 12:59:20 -0500 Subject: WCS reprojection In-Reply-To: <1106759869.3219.14.camel@train2.gateway.2wire.net> Message-ID: On Wed, 26 Jan 2005 17:17:48 +0000, Norman Barker wrote: > Hi, > > I make a request to the MapServer WCS (4.4.0-beta1) as follows > > http://wms.npagroup.com/cgi-bin/mapserv? > REQUEST=GetCoverage&COVERAGE=gtopo30&SERVICE=WCS&map=/var/www/html/wcs/gtopo30/gtopo30.map&FORMAT=GEOTIFF_INT16&CRS=EPSG:32613&BBOX=447300.0,4572000.0,686460.0,4787160.0&RESX=60.0&RESY=60.0 > > I know the native format is wgs84 lat lon, does the WCS reproject my > request and response. I thought a WCS did, or does it only allow access > to the native format and projection of the data? Norman, Steve would be the authority but I believe it is supposed to reproject the data. I see you are working with 4..4.0 beta1. I am pretty sure some fixes were applied to the WCS service in the area of reprojection after beta1, so I would encourage you to upgrade to the latest mapserver (4.4.1). Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From agillesp at VT.EDU Wed Jan 26 10:46:32 2005 From: agillesp at VT.EDU (Abe Gillespie) Date: Wed, 26 Jan 2005 13:46:32 -0500 Subject: [Mono-list] Re: Mono-list digest, Vol 1 #2293 - 14 msgs In-Reply-To: <41F7E09A.2080801@imarte.net> Message-ID: I think what you're looking for is linked off of this page: http://www.mono-project.com/contributing/resources.html -Abe On Jan 26, 2005, at 1:25 PM, Marte Castro wrote: > hi, > is this link? http://www.go-mono.com/class-status-System.Data.html > still accurate? if not, where cand i find the correct progress(status) > of? ADO.NET? > > Regards! > > mono-list-request at lists.ximian.com wrote: > Send Mono-list mailing list submissions to > mono-list at lists.ximian.com > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.ximian.com/mailman/listinfo/mono-list > or, via email, send a message with subject or body 'help' to > mono-list-request at lists.ximian.com > > You can reach the person managing the list at > mono-list-admin at lists.ximian.com > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Mono-list digest..." > > > Today's Topics: > > 1. Re: Web Services and native shared objects: > System.DllNotFoundException (Jonathan Pryor) > 2. RE: Bitwise operation weirdness (Mike Welham) > 3. Re: monoLaunchW (Vincent Arnoux) > 4. Paradox table access? (Morten Schmidt) > 5. Re: Bitwise operation weirdness > (=?ISO-8859-1?Q?Miquel_Ram=EDrez?=) > 6. Re: monoLaunchW (Francisco T. Martinez) > 7. Re: Basic Glade# question (Jonas Geiregat) > 8. Re: monoLaunchW (Vincent Arnoux) > 9. Re: ASP.NET on Linux: apache, mono, xsp, mod_mono (Jonas > Geiregat) > 10. Re: ASP.NET on Linux: apache, mono, xsp, mod_mono (Jonas > Geiregat) > 11. CVS Repository for Npgsql (Howard Cole) > 12. Re: CVS Repository for Npgsql (Francisco Figueiredo Jr.) > 13. Re: Basic Glade# question (Ian Parish) > > --__--__-- > > Message: 1 > Subject: Re: [Mono-list] Web Services and native shared objects: > System.DllNotFoundException > From: Jonathan Pryor > To: Miquel =?ISO-8859-1?Q?Ram=EDrez?= > Cc: mono-list at lists.ximian.com > Date: Tue, 25 Jan 2005 06:51:26 -0500 > > On Mon, 2005-01-24 at 22:06 +0100, Miquel Ram??rez wrote: > > PS: I solved the logging issue (to some extent) by relying on log4net > [ http://logging.apache.org/log4net ]. Better than having > Console.WriteLines all over the place ... > PS2: Also tried the feature in the web service 'descriptor' > but it just traced the messages passed forth and back the server :( > > A built-in alternative to log4net is System.Diagnostics.Trace. > > See: > > > http://lists.ximian.com/archives/public/mono-list/2004-January/ > 017482.html > > http://lists.ximian.com/archives/public/mono-list/2002-December/ > 010504.html > http://www.go-mono.com/docs/index.aspx?tlink=9 at ecma%3a1224%23Trace%2f > > http://www.go-mono.com/docs/index.aspx? > tlink=9 at ecma%3a1182%23DefaultTraceListener%2f > > - Jon > > > > --__--__-- > > Message: 2 > Subject: RE: [Mono-list] Bitwise operation weirdness > Date: Tue, 25 Jan 2005 14:30:22 +0200 > From: "Mike Welham" > To: > > Hi Miguel, > > > bitwise.cs(11) error CS0029: Cannot convert implicitly from `int' to=20 > `short' > Compilation failed: 1 error(s), 0 warnings > > > If I do not misunderstand the compiler message, it seems that for some > = > > > reason the result of or-ing together the hiword and the loword=20 > variables results in an 'int' (32-bit integer number, I suppose). > > The compiler is implicitly converting the two r-values to ints prior > to = > doing to doing the 'or', and then complaining about trying to > implicitly = > convert the resultant int to a short. > > There is no predefined C# 'or' for shorts, and the best match is the = > 'or' for ints. See the C# spec quotes below. > > > Why is that? It is easily fixed by explicitly casting the result of=20 > the bitwise or operation down to a short, but I can't help feeling=20 > that this feels weird: is it a C# specification feature? > > The C# spec says: > > > > For an operation of the form x op y, where op is one of the logical = > operators, overload resolution (=A714.2.4) is applied to select a = > specific operator implementation. The operands are converted to the = > parameter types of the selected operator, and the type of the result > is = > the return type of the operator. > > > > And=20 > > > > The predefined integer logical operators are: > > int operator &(int x, int y); > uint operator &(uint x, uint y); > long operator &(long x, long y); > ulong operator &(ulong x, ulong y); > int operator |(int x, int y); > uint operator |(uint x, uint y); > long operator |(long x, long y); > ulong operator |(ulong x, ulong y); > int operator ^(int x, int y); > uint operator ^(uint x, uint y); > long operator ^(long x, long y); > ulong operator ^(ulong x, ulong y); > > > > Best Regards > > Mike > > --__--__-- > > Message: 3 > Date: Tue, 25 Jan 2005 13:41:33 +0100 > From: Vincent Arnoux > To: mono-list at lists.ximian.com > Subject: Re: [Mono-list] monoLaunchW > > Paolo Molaro a =E9crit : > > > On 01/24/05 Vincent Arnoux wrote: > =20 > > > I am looking for launching a Gtk#/Mono application on Windows > without=20 > displaying the "not very sexy" DOS window. > =20 > > > Compile the app with the -target:winexe mcs option. > I didn't test it, but it's supposed to work. > > lupus > > =20 > > > I used the w32 installer and it didn't work, believe me. I don't know > where to find sources to recompile it. When I try to run monolaunchW > myapp.exe, I get a "Cannot find mscoree.dll" error message. If I > download this dll from Internet and retry, I get something like ".NET > is > not correctly installed" message. > > Vincent > > > --__--__-- > > Message: 4 > Date: Tue, 25 Jan 2005 14:14:05 +0100 > From: "Morten Schmidt" > To: , > > Subject: [Mono-list] Paradox table access? > > --=__Part94B42E0D.0__= > Content-Type: text/plain; charset=US-ASCII > Content-Transfer-Encoding: 7bit > > I'm not sure this is the place to ask, but here goes nothing: > > Anyone jnow anything abaout accessing Paradox Tables in an easy > fashion, > ie. directly/ODBC/ADO or what-ever? > > thanks... Just point me in the direction of a few pages on the > subject... > > /morten > > > > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 7421 bytes Desc: not available URL: From ltiu at ALUMNI.SFU.CA Wed Jan 26 10:32:18 2005 From: ltiu at ALUMNI.SFU.CA (Lyndon Tiu) Date: Wed, 26 Jan 2005 10:32:18 -0800 Subject: Cacheing and performce Message-ID: Hello, I just realized that if running mapserver on a machine and postgis/oraclespatial (whatever spatial db you may have) on another different machine, performance can be bad due to heavy network traffic. I notice that every map request I make, mapserver queries the db and the data (all of it) has to go through the network again and again. Any thought on this matter? Is there a cacheing machanism I can make use of to minimize network traffic. Thanks. -- Lyndon Tiu From fsimon at UNIVALI.BR Wed Jan 26 08:55:13 2005 From: fsimon at UNIVALI.BR (Fernando S.) Date: Wed, 26 Jan 2005 16:55:13 +0000 Subject: Cacheing and performce In-Reply-To: <41F7E232.90402@alumni.sfu.ca> Message-ID: Hi Lyndon, I believe that this problem can exist, I don't know if exist a cache for data but in 4.4.X and lastest versions exist a little cache for the connections. Compiling mapserver with fatscgi support you can create a little "cache" for your connections.(am I right?) So, one process of mapserver remains in the memory of webserver, and every request for the mapserver the fastcgi checks if don't exist any connection in the memory if yes the mapserver reuse this conection. It's very fast. If you didn't compile mapserver with fastcgi support the mapserver create a little "cache" for your connection, but after to draw all of the layers that you selected the mapserver don't remains in memory. I don't know if this helped you, but fastcgi can be the best solution. Thanks. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://g10.cttmar.univali.br - UNIVALI/CTTMAR ------------------------------------------------------------------------ Lyndon Tiu wrote: > Hello, > > I just realized that if running mapserver on a machine and > postgis/oraclespatial (whatever spatial db you may have) on another > different machine, performance can be bad due to heavy network traffic. > > I notice that every map request I make, mapserver queries the db and the > data (all of it) has to go through the network again and again. > > Any thought on this matter? Is there a cacheing machanism I can make use > of to minimize network traffic. > > Thanks. > > -- > Lyndon Tiu > From normanb at COMSINE.CO.UK Wed Jan 26 11:01:09 2005 From: normanb at COMSINE.CO.UK (Norman Barker) Date: Wed, 26 Jan 2005 19:01:09 +0000 Subject: WCS reprojection In-Reply-To: <931f8ea90501260959445c5206@mail.gmail.com> Message-ID: On Wed, 2005-01-26 at 12:59 -0500, Frank Warmerdam wrote: > On Wed, 26 Jan 2005 17:17:48 +0000, Norman Barker wrote: > > Hi, > > > > I make a request to the MapServer WCS (4.4.0-beta1) as follows > > > > http://wms.npagroup.com/cgi-bin/mapserv? > > REQUEST=GetCoverage&COVERAGE=gtopo30&SERVICE=WCS&map=/var/www/html/wcs/gtopo30/gtopo30.map&FORMAT=GEOTIFF_INT16&CRS=EPSG:32613&BBOX=447300.0,4572000.0,686460.0,4787160.0&RESX=60.0&RESY=60.0 > > > > I know the native format is wgs84 lat lon, does the WCS reproject my > > request and response. I thought a WCS did, or does it only allow access > > to the native format and projection of the data? > > Norman, > > Steve would be the authority but I believe it is supposed to reproject > the data. I see you are working with 4..4.0 beta1. I am pretty sure > some fixes were applied to the WCS service in the area of reprojection > after beta1, so I would encourage you to upgrade to the latest > mapserver (4.4.1). > > Best regards, > -- Hi, I tried this, still the same, the result tif is blank (all height fields are 0). Any other ideas? Thanks, Norman From jfletcher at LATITUDEGEO.COM Wed Jan 26 11:00:41 2005 From: jfletcher at LATITUDEGEO.COM (John Fletcher) Date: Wed, 26 Jan 2005 11:00:41 -0800 Subject: highlight Message-ID: > Is it possible to send commands to MapServer to highlight > some shapes in a shapefile dynamically? You can send an SLD to MapServer when you want to highlight some features. Roughly, the SLD will have 2 styling rules - one for the highlighting and another one for the default style. It will look something like the following for a point layer: LAYER_NAME ATTR VAL circle #00FFFF 6.0 ATTR VAL circle #0000FF 6.0 This is based on a point layer drawn with 6 pixel wide circles. It will highlight features that have ATTR=VAL in yellow, while drawing the rest of the features in blue. You'll probably want to make sure the 'other' rule (in the case above, the one inside the Not element) has rendering consistent with the default rendering in the mapfile. If you have a large number of classes defined in your mapfile, this method can get extremely cumbersome, but it's the best way I can come up with at the moment. Would be nice to not have to specify the rendering for the non-highlighted features, and have MapServer just fall back to the rendering defined in the mapfile, but that can't be done at the moment. There's more information on sending SLDs to MapServer at the SLD How-To (http://mapserver.gis.umn.edu/doc44/sld-howto.html). John From palanisamyg at ORNL.GOV Wed Jan 26 11:11:07 2005 From: palanisamyg at ORNL.GOV (Palanisamy, Giri) Date: Wed, 26 Jan 2005 14:11:07 -0500 Subject: PHP-rosa query result to a different page Message-ID: Hi, I just got the php-mapscript (rosa) GMap sample application running, I would like to display the query results in a different page, the sample application does it in the same page (when I press the "info" button and click some points on the map it displays the city names in the same page)? I could achieve this in JBox-mapscript application by setting the TEMPLATE in the class object in the .map file as LAYER NAME fluxnet_ll_use METADATA "DESCRIPTION" "Sites" "RESULT_FIELDS" "SITE_LABEL NETWORK COUNTRY STATUS IGBPCLSS CLIMATE LONG LAT " END GROUP MODIS TYPE POINT DATA f264 STATUS DEFAULT PROJECTION "proj=longlat" "ellps=GRS80" "no_defs" #"proj=eqc" #"lon_0=-90" #"lat_ts=0" END CLASS NAME 'FLUXNET Sites' COLOR 0 0 255 #SYMBOL 'circle' SYMBOL 'triangle' SIZE 10 TEMPLATE "fluxsites.html" END HEADER "fluxsites_header.html" FOOTER "fluxsites_footer.html" TOLERANCE 5 END How can I do this with the php-rosa? Thanks Giri From fwarmerdam at GMAIL.COM Wed Jan 26 11:15:29 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 26 Jan 2005 14:15:29 -0500 Subject: WCS reprojection In-Reply-To: <1106766069.3219.25.camel@train2.gateway.2wire.net> Message-ID: On Wed, 26 Jan 2005 19:01:09 +0000, Norman Barker wrote: > Hi, I tried this, still the same, the result tif is blank (all height > fields are 0). Any other ideas? Norman, It is time to submit a details and minimal bug report so we can reproduce and fix the problem. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From paul.oduro at SPPS.ORG Wed Jan 26 11:29:03 2005 From: paul.oduro at SPPS.ORG (Paul Smith) Date: Wed, 26 Jan 2005 13:29:03 -0600 Subject: php extensions Message-ID: Hello All I could do with help installing php. After running the configure script, I can't seem to find the extensions directory. I have read and re-read the INSTALL file in the php distrib. I'd like to add extensions using the extension = gd.so Is it still necessary? If I run phpinfo() I don't see gd for instance. php_Mapscript is there. Where and how do I add extensions? Any help would be appreciated. Paul System SUSE Linux Ent Server 9 Mapserver 4.4.1 php-4.3.10 gd-2.0.33 Apache 2.0.52 From kgrootendorst at BAIRD.COM Wed Jan 26 11:44:14 2005 From: kgrootendorst at BAIRD.COM (Kevin Grootendorst) Date: Wed, 26 Jan 2005 13:44:14 -0600 Subject: Zoom to custom extent - PHP Message-ID: Bill, Hopefully this will be the last question I have - I feel I am close to getting this now. I followed your instructions - but the 'QuickZoom' is not working yet (my normal rosa tools and legend works though). Here's what I did: 1. added the OnChange command called QuickZoom() to the Select statement in my app_contents.php 2. added the QuickZoom() function (in app_contents.php) - sets 'doQuickZoom' = 1 3. added the hidden variable (in app_contents.php) - sets 'doQuickZoom' = "" Through error checking I noticed that the function is being called properly, and the variable is being assigned the value from the function. 4. added the 'if statement' to my app.php: If ( isset( $HTTP_FORM_VARS['doQuickZoom']) && $HTTP_FORM_VARS ['doQuickZoom'] == "1" ) { set new extents..same code as before. } However, it seems that the 'doQuickZoom' does not retain it's value of 1, instead it becomes "" again (each time I select from the 'quickmap' list and page refreshes). Even if I hardcode the hidden variable 'doQuickZoom' to be 1, and select the 'quickmap', the mapextents do not change. Does this make sense? Kevin On Wed, 26 Jan 2005 11:58:12 -0500, William Bronsema wrote: >Hi Kevin, > >From the code you sent me, I see that you have added extra
>tags around your select element. You will need to remove those. (Perhaps >that's why moving the select element makes it work now?) > >Adding an onchange event should work fine. As for re-selecting the chosen >quick zoom after the page has refreshed, there are many ways to do it, I >just build the option list in php. Something like this: > >*************************************** >$aszOpList = array('7120999,827999,7599999,1119999'=>'Lake Ontario', >'7200000,833270,7291840,894520'=>'Niagara (ON)'); >$szOpList = ''; >foreach ( $ aszOpList as $key=>$szOp ) >{ > // determine selected > $szTmpSelect = ( isset( $HTTP_FORM_VARS['ViewRegion'] ) && > $HTTP_FORM_VARS [' ViewRegion '] == $key ) ? > ' selected' : ''; > // add next option > $szOpList.= ''; >} >***************************************** > >That will build your list (be sure to add all the items) each time and >select an item if you have zoomed to that extent. > >I do foresee another problem that you will have, that is each time you >refresh the page, it will attempt to do a quick zoom because there will >always be a value selected. > >Add a hidden textbox to signal a quick zoom request: > > >In your onChange function set the value: > >document.forms[0].doQuickZoom.value = 1; >document.forms[0].submit(); > >Then back in PHP only execute the quick zoom when doQuickZoom is set to 1: > >If ( isset( $HTTP_FORM_VARS['doQuickZoom']) && >$HTTP_FORM_VARS['doQuickZoom'] == 1 ) >{ > ..... >} > >HTH > >Bill >______________________________ >William A. Bronsema, C.E.T. >Applications and Software Development, >DM Solutions Group Inc. > >> -----Original Message----- >> From: Kevin Grootendorst [mailto:kgrootendorst at BAIRD.COM] >> Sent: January 26, 2005 11:36 AM >> To: MAPSERVER-USERS at LISTS.UMN.EDU; William Bronsema >> Subject: Re: Zoom to custom extent - PHP >> >> Hi Bill, >> The quick zoom seems to be working now, but the ROSA tools do not respond, >> nor does the legend/layer list. I moved the code in the 'contents.php' >> to 'higher up' in the file (no longer at bottom). Once I select the >> region >> from the dropdown list, and click refresh, the map zooms to where it >> should. However, the list defaults back to the first option. It would >> also be nice to implement an 'onchange' event, so that I don't have to use >> the refresh button to zoom to the region (I'm wondering when things do >> work, if adding a layer and refreshing will automatically zoom to the >> first >> extent in the 'View Region' drop down list). >> >> Kevin >> >> >> On Wed, 26 Jan 2005 07:29:44 -0500, William Bronsema >> wrote: >> >> >Kevin, >> > >> >The javascript error is not preventing your map from zooming, something >> else >> >is. There is likely some other PHP code that is resetting the extents >> after >> >your quick zoom code. >> > >> >The javascript error you are getting occurs because the function you >> listed >> >cannot find the hidden textbox called "QueryString". Did you happen to >> >remove it or move it outside of the form called "main"? >> > >> >Send me your app off-list and I will take a quick look. >> > >> >Bill >> >________________________________________________ >> >William A. Bronsema, C.E.T. >> >Applications and Software Development, >> >DM Solutions Group Inc. >> > >> > >> >> -----Original Message----- >> >> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] >> On >> >> Behalf Of Kevin Grootendorst >> >> Sent: January 25, 2005 2:52 PM >> >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> >> Subject: Re: [UMN_MAPSERVER-USERS] Zoom to custom extent - PHP >> >> >> >> I've implemented the code, and now I'm even convinced it should work. >> But >> >> no such luck yet. The debugging works just as it should, but when it >> >> should 'quick zoom now', the map still draws to the project's max >> extents. >> >> However, I do receive a windows js error box indicating a problem in >> the >> >> app.phmtl file: >> >> >> >> 'document.main.QueryString.value' is null or not an object. >> >> >> >> >> >> Here is my javascript from the .phtml file: >> >> >> >> >> >> >> >> >> >> Could this somehow be preventing my php code from working? From wbronsema at DMSOLUTIONS.CA Wed Jan 26 11:52:35 2005 From: wbronsema at DMSOLUTIONS.CA (William Bronsema) Date: Wed, 26 Jan 2005 14:52:35 -0500 Subject: Zoom to custom extent - PHP In-Reply-To: Message-ID: Kevin, doQuickZoom is supposed to go back to "". echo $HTTP_FORM_VARS['doQuickZoom'] before your "If ( isset( $HTTP_FORM_VARS['doQuickZoom'])...." statement to see what I mean. It should only echo 1 after a quick zoom is called. You only want it to be 1 when you want to do a quick zoom. Make sense? Is the PHP code being called to perform the quick zoom and the map is just not zooming? Or is the PHP code not being called? Regards, Bill ________________________________________________ William A. Bronsema, C.E.T. Applications and Software Development, DM Solutions Group Inc. > -----Original Message----- > From: Kevin Grootendorst [mailto:kgrootendorst at BAIRD.COM] > Sent: January 26, 2005 2:44 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU; William Bronsema > Subject: Re: Zoom to custom extent - PHP > > Bill, > Hopefully this will be the last question I have - I feel I am close to > getting this now. I followed your instructions - but the 'QuickZoom' is > not working yet (my normal rosa tools and legend works though). > > Here's what I did: > > 1. added the OnChange command called QuickZoom() to the Select statement > in > my app_contents.php > > 2. added the QuickZoom() function (in app_contents.php) > - sets 'doQuickZoom' = 1 > 3. added the hidden variable (in app_contents.php) > - sets 'doQuickZoom' = "" > > Through error checking I noticed that the function is being called > properly, and the variable is being assigned the value from the function. > > 4. added the 'if statement' to my app.php: > If ( isset( $HTTP_FORM_VARS['doQuickZoom']) && $HTTP_FORM_VARS > ['doQuickZoom'] == "1" ) > { > set new extents..same code as before. > } > > However, it seems that the 'doQuickZoom' does not retain it's value of 1, > instead it becomes "" again (each time I select from the 'quickmap' list > and page refreshes). > Even if I hardcode the hidden variable 'doQuickZoom' to be 1, and select > the 'quickmap', the mapextents do not change. > Does this make sense? > > Kevin > > > > > > On Wed, 26 Jan 2005 11:58:12 -0500, William Bronsema > wrote: > > >Hi Kevin, > > > >From the code you sent me, I see that you have added extra
> >tags around your select element. You will need to remove those. (Perhaps > >that's why moving the select element makes it work now?) > > > >Adding an onchange event should work fine. As for re-selecting the > chosen > >quick zoom after the page has refreshed, there are many ways to do it, I > >just build the option list in php. Something like this: > > > >*************************************** > >$aszOpList = array('7120999,827999,7599999,1119999'=>'Lake Ontario', > >'7200000,833270,7291840,894520'=>'Niagara (ON)'); > >$szOpList = ''; > >foreach ( $ aszOpList as $key=>$szOp ) > >{ > > // determine selected > > $szTmpSelect = ( isset( $HTTP_FORM_VARS['ViewRegion'] ) && > > $HTTP_FORM_VARS [' ViewRegion '] == $key ) ? > > ' selected' : ''; > > // add next option > > $szOpList.= ''; > >} > >***************************************** > > > >That will build your list (be sure to add all the items) each time and > >select an item if you have zoomed to that extent. > > > >I do foresee another problem that you will have, that is each time you > >refresh the page, it will attempt to do a quick zoom because there will > >always be a value selected. > > > >Add a hidden textbox to signal a quick zoom request: > > > > > >In your onChange function set the value: > > > >document.forms[0].doQuickZoom.value = 1; > >document.forms[0].submit(); > > > >Then back in PHP only execute the quick zoom when doQuickZoom is set to > 1: > > > >If ( isset( $HTTP_FORM_VARS['doQuickZoom']) && > >$HTTP_FORM_VARS['doQuickZoom'] == 1 ) > >{ > > ..... > >} > > > >HTH > > > >Bill > >______________________________ > >William A. Bronsema, C.E.T. > >Applications and Software Development, > >DM Solutions Group Inc. > > > >> -----Original Message----- > >> From: Kevin Grootendorst [mailto:kgrootendorst at BAIRD.COM] > >> Sent: January 26, 2005 11:36 AM > >> To: MAPSERVER-USERS at LISTS.UMN.EDU; William Bronsema > >> Subject: Re: Zoom to custom extent - PHP > >> > >> Hi Bill, > >> The quick zoom seems to be working now, but the ROSA tools do not > respond, > >> nor does the legend/layer list. I moved the code in the 'contents.php' > >> to 'higher up' in the file (no longer at bottom). Once I select the > >> region > >> from the dropdown list, and click refresh, the map zooms to where it > >> should. However, the list defaults back to the first option. It would > >> also be nice to implement an 'onchange' event, so that I don't have to > use > >> the refresh button to zoom to the region (I'm wondering when things do > >> work, if adding a layer and refreshing will automatically zoom to the > >> first > >> extent in the 'View Region' drop down list). > >> > >> Kevin > >> > >> > >> On Wed, 26 Jan 2005 07:29:44 -0500, William Bronsema > >> wrote: > >> > >> >Kevin, > >> > > >> >The javascript error is not preventing your map from zooming, > something > >> else > >> >is. There is likely some other PHP code that is resetting the extents > >> after > >> >your quick zoom code. > >> > > >> >The javascript error you are getting occurs because the function you > >> listed > >> >cannot find the hidden textbox called "QueryString". Did you happen > to > >> >remove it or move it outside of the form called "main"? > >> > > >> >Send me your app off-list and I will take a quick look. > >> > > >> >Bill > >> >________________________________________________ > >> >William A. Bronsema, C.E.T. > >> >Applications and Software Development, > >> >DM Solutions Group Inc. > >> > > >> > > >> >> -----Original Message----- > >> >> From: UMN MapServer Users List [mailto:MAPSERVER- > USERS at LISTS.UMN.EDU] > >> On > >> >> Behalf Of Kevin Grootendorst > >> >> Sent: January 25, 2005 2:52 PM > >> >> To: MAPSERVER-USERS at LISTS.UMN.EDU > >> >> Subject: Re: [UMN_MAPSERVER-USERS] Zoom to custom extent - PHP > >> >> > >> >> I've implemented the code, and now I'm even convinced it should > work. > >> But > >> >> no such luck yet. The debugging works just as it should, but when > it > >> >> should 'quick zoom now', the map still draws to the project's max > >> extents. > >> >> However, I do receive a windows js error box indicating a problem in > >> the > >> >> app.phmtl file: > >> >> > >> >> 'document.main.QueryString.value' is null or not an object. > >> >> > >> >> > >> >> Here is my javascript from the .phtml file: > >> >> > >> >> > >> >> > >> >> > >> >> Could this somehow be preventing my php code from working? From sgillies at FRII.COM Wed Jan 26 11:55:01 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 26 Jan 2005 12:55:01 -0700 Subject: SWIG mapscript request/bug? - WORKAROUN D In-Reply-To: Message-ID: On Jan 26, 2005, at 9:25 AM, Ryan, Adam wrote: >> -----Original Message----- >> From: Lowell Filak [mailto:lfilak at MEDINACO.ORG] >> Sent: Wednesday, January 26, 2005 7:04 AM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] SWIG mapscript >> request/bug? - WORKAROUND >> >> >> The following message was sent by Sean Gillies >> on Wed, 26 Jan 2005 07:05:05 -0700. >> >>> On Jan 25, 2005, at 5:30 PM, Ryan, Adam wrote: >>> >>>> And the workaround is... >>>> >>>> When you're reordering layers AND you want to do a drawQuery(), >>>> reorder the layers and then save the map file and then >> load it again >>>> and then drawQuery(). Ugly. >>>> >>>> Adam >>>> >>> >>> Adam, >>> >>> Brutal, I agree. But since you are using mapscript you do have the >>> option of programming your own query map. I don't think >>> msDrawQueryMap does anything that you can't script yourself. Steve >>> Lime has been considering an overhaul of the query map but I am >>> neither sure of the status nor sure that he is looking at >> your issue. >> >> Adam, >> >> I agree with Sean as we have never used the queryMapObj here, >> but rather just another mapObj. There have been a few issues >> that have come up pertaining to the queryMapObj and for a >> spell I thought it should go the way of the DBFInfo object, >> at least as far as the documentation goes for mapscript. >> >> Lowell >> > > Lowell, Sean, et al. > > Now you guys are confusing me. First of all, I don't know how to > display > only a set of features quickly other than manipulating the resultCache > (querying or loading a query file) and then doing a mapObj.drawQuery(). > > I'm not using a queryMapObject (at least not directly or consciously), > and > I'm not sure what it is. > > And if I were to script this myself, do you mean run through each > layer and > do a layerObj.drawQuery()? I guess that's easy enough. And that way I > could get around the whole ordering issue. Wait...this is sounding > pretty > good. > > Cheers, Adam Adam, I was just thinking of a re-implementation of the query map. Make queries, then go through the result set and either execute shapeObj::draw() or add the result features to another inline type layer and draw that layer. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From kgrootendorst at BAIRD.COM Wed Jan 26 12:12:22 2005 From: kgrootendorst at BAIRD.COM (Kevin Grootendorst) Date: Wed, 26 Jan 2005 14:12:22 -0600 Subject: Zoom to custom extent - PHP Message-ID: Bill, OK. This makes sense. But, using the following statement: If ( isset( $HTTP_FORM_VARS['doQuickZoom']) && $HTTP_FORM_VARS ['doQuickZoom'] == "1" ) This returns a false, and the QuickZoom php code is not executed. Using this statement: If ( isset( $HTTP_FORM_VARS['doQuickZoom']) && $HTTP_FORM_VARS ['doQuickZoom'] == "" ) Also returns a false. Using this statement: If ($HTTP_FORM_VARS['doQuickZoom'] == "") Returns a TRUE - and the php code is executed. But the map does not draw to the desired extents. It just refreshes the current map extent. Thanks. Kevin On Wed, 26 Jan 2005 14:52:35 -0500, William Bronsema wrote: >Kevin, > >doQuickZoom is supposed to go back to "". echo >$HTTP_FORM_VARS['doQuickZoom'] before your "If ( isset( >$HTTP_FORM_VARS['doQuickZoom'])...." statement to see what I mean. It >should only echo 1 after a quick zoom is called. You only want it to be 1 >when you want to do a quick zoom. Make sense? > >Is the PHP code being called to perform the quick zoom and the map is just >not zooming? Or is the PHP code not being called? > >Regards, >Bill > >________________________________________________ >William A. Bronsema, C.E.T. >Applications and Software Development, >DM Solutions Group Inc. > From wbronsema at DMSOLUTIONS.CA Wed Jan 26 12:20:01 2005 From: wbronsema at DMSOLUTIONS.CA (William Bronsema) Date: Wed, 26 Jan 2005 15:20:01 -0500 Subject: Zoom to custom extent - PHP In-Reply-To: Message-ID: Kevin, It sounds like $HTTP_FORM_VARS['doQuickZoom'] is not being set. Add this: echo '
';
print_r( $HTTP_FORM_VARS );
echo '
'; just before the if statement and send me the output for both an intial page load and quickzoom page load. This will tell us exactly what is being set (or not set ;) ). Regards, Bill ________________________________________________ William A. Bronsema, C.E.T. Applications and Software Development, DM Solutions Group Inc. > -----Original Message----- > From: Kevin Grootendorst [mailto:kgrootendorst at BAIRD.COM] > Sent: January 26, 2005 3:12 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU; William Bronsema > Subject: Re: Zoom to custom extent - PHP > > Bill, > OK. This makes sense. > > But, using the following statement: > If ( isset( $HTTP_FORM_VARS['doQuickZoom']) && $HTTP_FORM_VARS > ['doQuickZoom'] == "1" ) > This returns a false, and the QuickZoom php code is not executed. > > Using this statement: > If ( isset( $HTTP_FORM_VARS['doQuickZoom']) && $HTTP_FORM_VARS > ['doQuickZoom'] == "" ) > Also returns a false. > > Using this statement: > If ($HTTP_FORM_VARS['doQuickZoom'] == "") > Returns a TRUE - and the php code is executed. But the map does not draw > to the desired extents. It just refreshes the current map extent. > > Thanks. > > Kevin > > > On Wed, 26 Jan 2005 14:52:35 -0500, William Bronsema > wrote: > > >Kevin, > > > >doQuickZoom is supposed to go back to "". echo > >$HTTP_FORM_VARS['doQuickZoom'] before your "If ( isset( > >$HTTP_FORM_VARS['doQuickZoom'])...." statement to see what I mean. It > >should only echo 1 after a quick zoom is called. You only want it to be > 1 > >when you want to do a quick zoom. Make sense? > > > >Is the PHP code being called to perform the quick zoom and the map is > just > >not zooming? Or is the PHP code not being called? > > > >Regards, > >Bill > > > >________________________________________________ > >William A. Bronsema, C.E.T. > >Applications and Software Development, > >DM Solutions Group Inc. > > From kgrootendorst at BAIRD.COM Wed Jan 26 12:41:34 2005 From: kgrootendorst at BAIRD.COM (Kevin Grootendorst) Date: Wed, 26 Jan 2005 14:41:34 -0600 Subject: Zoom to custom extent - PHP Message-ID: Bill, I added that code, right before the IF statement. There was no output... Does that tell us that ($HTTP_FORM_VARS) is null? ? On Wed, 26 Jan 2005 15:20:01 -0500, William Bronsema wrote: >Kevin, > >It sounds like $HTTP_FORM_VARS['doQuickZoom'] is not being set. > >Add this: >echo '
';
>print_r( $HTTP_FORM_VARS );
>echo '
'; > >just before the if statement and send me the output for both an intial page >load and quickzoom page load. This will tell us exactly what is being set >(or not set ;) ). > >Regards, >Bill > > > >________________________________________________ >William A. Bronsema, C.E.T. >Applications and Software Development, >DM Solutions Group Inc. > > > >> -----Original Message----- >> From: Kevin Grootendorst [mailto:kgrootendorst at BAIRD.COM] >> Sent: January 26, 2005 3:12 PM >> To: MAPSERVER-USERS at LISTS.UMN.EDU; William Bronsema >> Subject: Re: Zoom to custom extent - PHP >> >> Bill, >> OK. This makes sense. >> >> But, using the following statement: >> If ( isset( $HTTP_FORM_VARS['doQuickZoom']) && $HTTP_FORM_VARS >> ['doQuickZoom'] == "1" ) >> This returns a false, and the QuickZoom php code is not executed. >> >> Using this statement: >> If ( isset( $HTTP_FORM_VARS['doQuickZoom']) && $HTTP_FORM_VARS >> ['doQuickZoom'] == "" ) >> Also returns a false. >> >> Using this statement: >> If ($HTTP_FORM_VARS['doQuickZoom'] == "") >> Returns a TRUE - and the php code is executed. But the map does not draw >> to the desired extents. It just refreshes the current map extent. >> >> Thanks. >> >> Kevin >> >> >> On Wed, 26 Jan 2005 14:52:35 -0500, William Bronsema >> wrote: >> >> >Kevin, >> > >> >doQuickZoom is supposed to go back to "". echo >> >$HTTP_FORM_VARS['doQuickZoom'] before your "If ( isset( >> >$HTTP_FORM_VARS['doQuickZoom'])...." statement to see what I mean. It >> >should only echo 1 after a quick zoom is called. You only want it to be >> 1 >> >when you want to do a quick zoom. Make sense? >> > >> >Is the PHP code being called to perform the quick zoom and the map is >> just >> >not zooming? Or is the PHP code not being called? >> > >> >Regards, >> >Bill >> > >> >________________________________________________ >> >William A. Bronsema, C.E.T. >> >Applications and Software Development, >> >DM Solutions Group Inc. >> > From brucesaunders at MAXIMUS.COM Wed Jan 26 12:53:59 2005 From: brucesaunders at MAXIMUS.COM (Bruce Saunders) Date: Wed, 26 Jan 2005 15:53:59 -0500 Subject: variable substitution within a projection object In-Reply-To: <21a601c503cb$41e70230$020002c0@SHARK> Message-ID: Thanks Brent, that did the trick, I missed that in my previous searches. (posting this for completion's sake for future searchers). -Bruce Brent Fraser wrote: >Bruce, > > Search the email archive for "map_projection". Instead of using MapServer >to do the variable substitution, use the ability to specify the map file >projection object via CGI: > >...&mode=map&map_projection=proj=utm,ellps=GRS80,lon_0=-102.5&layer=... > >You could do the construction of the "map_projection" CGI variable on the >client side using java script. > >Brent Fraser > >----- Original Message ----- >From: "Bruce Saunders" >To: >Sent: Wednesday, January 26, 2005 8:45 AM >Subject: [UMN_MAPSERVER-USERS] variable substitution within a projection >object > > > > >>I'd like to be able to pass in a variable to be in substituted in the >>projection object but it doesn't seem to work as expected. >> >>I'd like to do something like this: >> >> PROJECTION >> "proj=utm" >> "ellps=GRS80" >> "lon_0=%lon_0%" >> END >> >>It seems like the variable isn't getting evaluated in this context. >>I've verified that the value is getting passed correctly since it's >>getting correctly replaced in the template. I've tried replacing the >>entire value with something like: >> >> PROJECTION >> "proj=utm" >> "ellps=GRS80" >> "%lon_0%" >> END >> >>But that doesn't seem to work either. Are variables not supported for >>projection objects? I'd appreciate any thought or suggestions people >>may have. >> >>-Bruce >> >> > > > From assefa at DMSOLUTIONS.CA Wed Jan 26 13:00:33 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 26 Jan 2005 16:00:33 -0500 Subject: cartography document by Peter Freimuth Message-ID: Hi There, I had a like to a cartography document written by Peter Freimuth but the link is no more valid. Is this document available somewhere else for consultation ? Thanks original link was : http://www.mapbender.org/umn_cartography/cartographic_symbols.html -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From palanisamyg at ORNL.GOV Wed Jan 26 13:04:28 2005 From: palanisamyg at ORNL.GOV (Palanisamy, Giri) Date: Wed, 26 Jan 2005 16:04:28 -0500 Subject: PHP-Mapserver query result to a different page Message-ID: Hi, I just got the php-mapscript (rosa) GMap sample application running, I would like to display the query results in a different page, the sample application does it in the same page (when I press the "info" button and click some points on the map it displays the city names in the same page)? I could achieve this in JBox-mapscript application by setting the TEMPLATE in the class object in the .map file as LAYER NAME fluxnet_ll_use METADATA "DESCRIPTION" "Sites" "RESULT_FIELDS" "SITE_LABEL NETWORK COUNTRY STATUS IGBPCLSS CLIMATE LONG LAT " END GROUP MODIS TYPE POINT DATA f264 STATUS DEFAULT PROJECTION "proj=longlat" "ellps=GRS80" "no_defs" #"proj=eqc" #"lon_0=-90" #"lat_ts=0" END CLASS NAME 'FLUXNET Sites' COLOR 0 0 255 #SYMBOL 'circle' SYMBOL 'triangle' SIZE 10 TEMPLATE "fluxsites.phtml" END HEADER "fluxsites_header.html" FOOTER "fluxsites_footer.html" TOLERANCE 5 END I would appreciate if anyone can tell me how to do this with the php-mapscript (rosa)? Thanks Giri From cdaily at GMAIL.COM Wed Jan 26 13:34:45 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Wed, 26 Jan 2005 15:34:45 -0600 Subject: Converting lat/long distance to miles. Message-ID: Ok, I need some help with this one. I have a map where all the layers are in lat/long coordinates, so I don't do any projections. I use queryByPoint and distanceToShape to find the closest item in a shapefile to a given point (nearest subway stop, for example). I have all this working just fine, but the distance I receive from distanceToShape is in decimal degrees. I'd like to convert this to miles. Anyone have a good solution? The result doesn't need to be too precise, but the more precise the better. The issues I see as causing problems are: 1) Degrees of longitude vary in length the further north you are. My map only covers a limited area (northern Illinois) so I wouldn't be adverse to using a 'fixed' value for that conversion, but if I could be more exact I'd like to be. 2) The distance I have doesn't tell me anything about the direction; if two points are of equal distance in latlong, one to the east or west would actually be 'closer' than one to the north or south, correct (unless you're at the equator); I'm guessing I'll have to calculate the difference in latitude, convert it to miles, then calculate the difference in longitude, convert it to miles, and then use the pythagorean theorem to calculate the distance. Is this sounding correct? Or for distances under 2 miles will this even make a noticeable difference? Any opinions would be appreciated, -Camden From ed at TOPOZONE.COM Wed Jan 26 13:43:44 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 26 Jan 2005 16:43:44 -0500 Subject: Converting lat/long distance to miles. Message-ID: Camden - If you're dealing with a relatively small geographic area, why don't you just "do the right thing" and use a real map projection? All your source layers stay in lat/lon coordinates and you use a PROJECTION block to define the output projection of your map. Then your output units will be in meters or feet and distanceToShape will simply give you the right answer. - Ed Ed McNierney TopoZone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Camden Daily Sent: Wednesday, January 26, 2005 4:35 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Converting lat/long distance to miles. Ok, I need some help with this one. I have a map where all the layers are in lat/long coordinates, so I don't do any projections. I use queryByPoint and distanceToShape to find the closest item in a shapefile to a given point (nearest subway stop, for example). I have all this working just fine, but the distance I receive from distanceToShape is in decimal degrees. I'd like to convert this to miles. Anyone have a good solution? The result doesn't need to be too precise, but the more precise the better. The issues I see as causing problems are: 1) Degrees of longitude vary in length the further north you are. My map only covers a limited area (northern Illinois) so I wouldn't be adverse to using a 'fixed' value for that conversion, but if I could be more exact I'd like to be. 2) The distance I have doesn't tell me anything about the direction; if two points are of equal distance in latlong, one to the east or west would actually be 'closer' than one to the north or south, correct (unless you're at the equator); I'm guessing I'll have to calculate the difference in latitude, convert it to miles, then calculate the difference in longitude, convert it to miles, and then use the pythagorean theorem to calculate the distance. Is this sounding correct? Or for distances under 2 miles will this even make a noticeable difference? Any opinions would be appreciated, -Camden From murilo.yoshida at AGX.COM.BR Wed Jan 26 13:44:24 2005 From: murilo.yoshida at AGX.COM.BR (Murilo Lacerda Yoshida) Date: Wed, 26 Jan 2005 19:44:24 -0200 Subject: RES: [UMN_MAPSERVER-USERS] php extensions In-Reply-To: Message-ID: Paul, The extension directory is set on the extension_dir variable on php.ini. I don't remember exactly, but I guess that the php installation doesn't create this directory. You have to create one and then set the extension_dir to this directory, and then put your extensions in it. About gd, you can run configure --with-gd, and that will create the php binary with the gd extension in it. If you use extension = .so, the extension has to be in the extension directory. Hope that helps, Murilo -----Mensagem original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Em nome de Paul Smith Enviada em: quarta-feira, 26 de janeiro de 2005 17:29 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: [UMN_MAPSERVER-USERS] php extensions Hello All I could do with help installing php. After running the configure script, I can't seem to find the extensions directory. I have read and re-read the INSTALL file in the php distrib. I'd like to add extensions using the extension = gd.so Is it still necessary? If I run phpinfo() I don't see gd for instance. php_Mapscript is there. Where and how do I add extensions? Any help would be appreciated. Paul System SUSE Linux Ent Server 9 Mapserver 4.4.1 php-4.3.10 gd-2.0.33 Apache 2.0.52 From lfilak at MEDINACO.ORG Wed Jan 26 13:45:12 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Wed, 26 Jan 2005 16:45:12 -0500 Subject: Converting lat/long distance to miles. Message-ID: The following message was sent by Camden Daily on Wed, 26 Jan 2005 15:34:45 -0600. > Ok, I need some help with this one. I have a map where all the layers > are in lat/long coordinates, so I don't do any projections. > > I use queryByPoint and distanceToShape to find the closest item in a > shapefile to a given point (nearest subway stop, for example). I have > all this working just fine, but the distance I receive from > distanceToShape is in decimal degrees. I'd like to convert this to > miles. > > Anyone have a good solution? The result doesn't need to be too > precise, but the more precise the better. The issues I see as causing > problems are: > > 1) Degrees of longitude vary in length the further north you are. My > map only covers a limited area (northern Illinois) so I wouldn't be > adverse to using a 'fixed' value for that conversion, but if I could > be more exact I'd like to be. > > 2) The distance I have doesn't tell me anything about the direction; > if two points are of equal distance in latlong, one to the east or > west would actually be 'closer' than one to the north or south, > correct (unless you're at the equator); > > I'm guessing I'll have to calculate the difference in latitude, > convert it to miles, then calculate the difference in longitude, > convert it to miles, and then use the pythagorean theorem to calculate > the distance. Is this sounding correct? Or for distances under 2 > miles will this even make a noticeable difference? Camden, Is the projection of your map set to DD? If you temporarily changed the projection of your map to stateplane for northern Illinois wouldn't the result be in feet, letting proj.4 do the math.? Lowell From carloseduardo at COSTARRICENSE.CR Wed Jan 26 14:05:32 2005 From: carloseduardo at COSTARRICENSE.CR (Carlos Eduardo Sibaja Salazar) Date: Wed, 26 Jan 2005 16:05:32 -0600 Subject: Mapserver in Suse distro Message-ID: Hi list. I need to know if somebody has mapserver installed in linux with a suse distro. I need to know the version of the most important programs and libraries used, mapserver, apache, gdal, etc. Thanks _______________________________________ Yo me registr? en www.costarricense.cr From cdaily at GMAIL.COM Wed Jan 26 14:15:38 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Wed, 26 Jan 2005 16:15:38 -0600 Subject: Converting lat/long distance to miles. In-Reply-To: <20050126214457.41DD61A6BC1@mail.medinaco.org> Message-ID: Ok. I had axed all my projection blocks because I'd converted all my shapefiles to lat/long (epsg:4326) using ogr2ogr, so I figured I didn't need them. Should I still add a projection block to the map and each layer? My map file has a 'units' set to dd, since that is how I set my extents (and I need to set them that way, since I'm centering off a given lat/long point in mapscript). Could I set the extents in mapscript using dd, and then change the units to miles for my distance calculations? From cdaily at GMAIL.COM Wed Jan 26 14:27:58 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Wed, 26 Jan 2005 16:27:58 -0600 Subject: Mapserver in Suse distro In-Reply-To: Message-ID: Lucky you, I just wrote a nice howto for myself on installing mapserver on suse 9.1 (so it's a bit easier next time I rebuild the server). My server also has support for postgis, if you want to put the shapefiles into postgres. If you don't, just leave out the postgress and postgis rpms. The packages I installed over the base install were: xfree86libs ftp://rpmfind.net/linux/SuSE-Linux/i386/update/9.1/rpm/i586/XFree86-libs-4.3.99.902-43.35.3.i586.rpm freetype ftp://rpmfind.net/linux/SuSE-Linux/i386/9.1/suse/i586/freetype-1.3.1-1150.i586.rpm freetype2 ftp://rpmfind.net/linux/SuSE-Linux/i386/9.1/suse/i586/freetype2-2.1.7-53.i586.rpm zlib ftp://rpmfind.net/linux/SuSE-Linux/i386/update/9.1/rpm/i586/zlib-1.2.1-70.6.i586.rpm zlib-devel ftp://rpmfind.net/linux/SuSE-Linux/i386/update/9.1/rpm/i586/zlib-devel-1.2.1-70.6.i586.rpm readline-devel ftp://rpmfind.net/linux/SuSE-Linux/i386/9.1/suse/i586/readline-devel-4.3-306.i586.rpm libpng ftp://rpmfind.net/linux/SuSE-Linux/i386/update/9.1/rpm/i586/libpng-1.2.5-182.10.i586.rpm libjpeg ftp://rpmfind.net/linux/SuSE-Linux/i386/9.1/suse/i586/libjpeg-6.2.0-731.i586.rpm libtiff ftp://rpmfind.net/linux/SuSE-Linux/i386/update/9.1/rpm/i586/libtiff-3.6.1-38.14.i586.rpm libxml2 ftp://rpmfind.net/linux/SuSE-Linux/i386/update/9.1/rpm/i586/libxml2-2.6.7-28.7.i586.rpm libxml2-devel ftp://rpmfind.net/linux/SuSE-Linux/i386/9.1/suse/i586/libxml2-devel-2.6.7-28.i586.rpm gd ftp://rpmfind.net/linux/SuSE-Linux/i386/update/9.1/rpm/i586/gd-2.0.22-65.6.i586.rpm gd-devel ftp://rpmfind.net/linux/SuSE-Linux/i386/update/9.1/rpm/i586/gd-devel-2.0.22-65.6.i586.rpm curl ftp://rpmfind.net/linux/SuSE-Linux/i386/9.1/suse/i586/curl-7.11.0-39.i586.rpm curl-devel ftp://rpmfind.net/linux/SuSE-Linux/i386/9.1/suse/i586/curl-devel-7.11.0-39.i586.rpm postgresql-libs ftp://rpmfind.net/linux/SuSE-Linux/i386/update/9.1/rpm/i586/postgresql-libs-7.4.6-0.2.i586.rpm postgresql ftp://rpmfind.net/linux/SuSE-Linux/i386/update/9.1/rpm/i586/postgresql-7.4.6-0.2.i586.rpm postgresql-devel ftp://rpmfind.net/linux/SuSE-Linux/i386/update/9.1/rpm/i586/postgresql-devel-7.4.6-0.2.i586.rpm postgresql-server ftp://rpmfind.net/linux/SuSE-Linux/i386/update/9.1/rpm/i586/postgresql-server-7.4.6-0.2.i586.rpm proj http://postgis.refractions.net/rpms/suse/9.1/proj-4.4.7-1.i586.rpm proj-devel http://postgis.refractions.net/rpms/suse/9.1/proj-devel-4.4.7-1.i586.rpm gdal http://postgis.refractions.net/rpms/suse/9.1/gdal-1.1.9-1.i586.rpm gdal-devel http://postgis.refractions.net/rpms/suse/9.1/gdal-devel-1.1.9-1.i586.rpm geos http://postgis.refractions.net/rpms/suse/9.1/geos-1.0-2.i586.rpm postgis http://postgis.refractions.net/rpms/suse/9.1/postgis-0.8.1-1.i586.rpm I then installed Apache 2 from source with: ./configure --prefix=/usr/local/apache;make;make install I installed PHP5 with: ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-regex=system;make;make install I installed the latest mapserver (4.4.1) with: ./configure --with-wmsclient --with-gd --with-freetype --with-png --with-proj --with-gdal --with-tiff --with-postgis --with-php=/usr/local/src/php-x.x.x; make;make install (make sure --with-php points to the source for your php) (leave off --with-postigs if you don't need it) Move your mapserv and php_mapscript.so files to where they need to go, set up your php.ini and httpd.conf, and you should be good to go. (Some people say that php shouldn't be run with apache2, due to some threading issues, but I've never run into any problems.) From nacional at CBS.UMN.EDU Wed Jan 26 14:37:37 2005 From: nacional at CBS.UMN.EDU (Pericles S. Nacionales) Date: Wed, 26 Jan 2005 16:37:37 -0600 Subject: Binaries for Mapserver 4.4.1 OCI require PostgreSQL? In-Reply-To: Message-ID: I thought I had added the libpq.dll in the zip file. Guess I'll have to update it. In the meantime, find the attached libpq.dll in this message. Cheers! Perry On Wednesday 26 January 2005 02:00 am, Dijken, M. van (Martin) wrote: > I recently downloaded the mapserver 4.4.1 for windows binaries to do a test > install on my development machine. I followed the installation instructions > but first got the message MSVCR71.dll required. I found that this dll was > in the .NET framework so added the .NET framework directory to my PATH. > After this I get the message: > > This application cannot be started because LIBPQ.dll cannot be found. > > After some searching on the web I found that LIBPQ is part of the > PostgreSQL product. However, I downloaded the OCI version of MS, with no > intention whatsoever to use Postgres. Can this be fixed, or am I missing > something here? > > Hope to hear from you soon, > > Martin van Dijken > Police Dept. Rotterdam > > ------------------------------- DISCLAIMER ------------------------------- > De Informatie in deze e-mail en de meegestuurde bestanden zijn > vertrouwelijk en mogelijk wettig beschermd. De e-mail is uitsluitend > bedoeld voor gebruik door de geadresseerde en andere geautoriseerde > ontvangers. Indien u niet de geadresseerde bent, maken wij er u op attent > dat gebruik van de informatie in de e-mail en de meegezonden bestanden, > waaronder openbaarmaking vermenigvuldiging, verspreiding en/of verstrekking > aan derden niet is toegestaan en mogelijk zelfs onwettig. Mocht u deze > e-mail abusievelijk hebben ontvangen, dan vragen wij u de afzender op de > hoogte te brengen en het originele bericht te vernietigen. De Politie > Rotterdam - Rijnmond is niet verantwoordelijk voor de inhoud van deze > e-mail en wijst iedere aansprakelijkheid af voor en/of in verband met alle > gevolgen en/of schade van een onjuiste of onvolledige verzending en/of > vertraging ervan. De Politie Rotterdam - Rijnmond is niet verantwoordelijk > voor meegestuurde virussen. Het is uw eigen verantwoording om e-mails en de > meegezonden bestanden hierop te scannen. Aan deze e-mail kunnen geen > rechten worden ontleend. Belangrijke afspraken of contracten dienen altijd > door de daarvoor bevoegde personen te worden ondertekend. > --------------------------------------------------------------------------- >- The Information contained in this e-mail and its attachments is > confidential and may be legally privileged. This e-mail is intended solely > for the use of the individual or entity to whom it is addressed and others > authorised to receive it. If you are not the intended recipient you are > hereby notified that any disclosure, copying, distribution or taking any > action in reliance if the contents of this e-mail and any attachments is > strictly prohibited and may be unlawful. If received in error, we ask you > to notify the sender and delete te original message. Rotterdam - Rijnmond > Police is not liable for the content of this e-mail and accepts no > responsibility for any damage and/or consequences of improper and > incomplete transmission or delay in its receipt. Please note that Rotterdam > - Rijnmond Police does not accept any responsibility to scan the e-mail and > attachments if any. No contracts may be concluded on behalf of Rotterdam - > Rijnmond Police by means of e-mail. Important agreements must always be > signed by the therefore authorised persons. > --------------------------------------------------------------------------- >- -- Pericles S. Nacionales Dept. of Ecology, Evolution, and Behavior University of Minnesota work: 612 624 6713 e-mail: nacional at cbs.umn.edu -------------- next part -------------- A non-text attachment was scrubbed... Name: libpq.dll Type: application/x-msdos-program Size: 90112 bytes Desc: not available URL: From nacional at CBS.UMN.EDU Wed Jan 26 14:54:55 2005 From: nacional at CBS.UMN.EDU (Pericles S. Nacionales) Date: Wed, 26 Jan 2005 16:54:55 -0600 Subject: Win32 Binaries on mapserver site do not seem to be compiled correctly In-Reply-To: Message-ID: I thought I replied to a previous post on this but I guess I just replied to the poster. Anyway, there's nothing wrong with the small size of the executables. They are small because they were compiled against a dynamic libmap.dll library--the library isn't part of the executable but rather external to it. You can think of mapserv.exe as a wrapper to the external libmap.dll file. When you execute mapserv.exe, it will look for libmap.dll and the other DLL files it needs. Why do this? No other reason than to make the downloadable archives smaller and faster to download. Again, there's nothing wrong with the small size of the executable. Cheers! -Perry On Wednesday 26 January 2005 10:06 am, Rob Corbin wrote: > All of the .exe files are very small. i.e. mapserv.exe is 36K. -- Pericles S. Nacionales Dept. of Ecology, Evolution, and Behavior University of Minnesota work: 612 624 6713 e-mail: nacional at cbs.umn.edu From agillesp at VT.EDU Wed Jan 26 16:25:28 2005 From: agillesp at VT.EDU (Abe Gillespie) Date: Wed, 26 Jan 2005 19:25:28 -0500 Subject: Debug Logging Message-ID: Would someone help me get logging working? I remember there was something on this list about bit I can't seem to locate it. I've got "DEBUG on" for a LAYER and the MAP and I have the LOG path in the WEB. But I'm getting nothing. I would appreciate instructions for both Windows and Linux but am working with Windows right now. Thanks. -Abe From lehrs at ERAU.EDU Wed Jan 26 16:58:07 2005 From: lehrs at ERAU.EDU (Steve Lehr) Date: Wed, 26 Jan 2005 19:58:07 -0500 Subject: PHP Query By Attributes - queryMap ? In-Reply-To: <48FF2B1D-6D0A-11D9-827E-000A957A0F9C@vt.edu> Message-ID: I found the parcels I'm sending in but they are not highlighting as defined in the QUERYMAP; it seems I don't have an association linking the QUERYMAP defined in the map file with parcel layer that I'm querying, ie to mark them as to be highlighted. I can't find the appropriate method to link the layer with the querymap (if I need to do) How do I associate the QUERYMAP definition in the map file with the parcel layer in the PHP code (or in the map file?) Abe had a last second thought .. Now that I look at it, the last thing you may have been missing was the mapObj::queryMap() method. Anyhow, I hope this helps. But I'm not sure what to do with this Steven Lehr Assistant Professor Freshmen Program College of Engineering Embry-Riddle Aeronautical University (LB159) 600 S. Clyde Morris Blvd. Daytona Beach, FL 32114-3900 386-226-7740 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Abe Gillespie Sent: Sunday, January 23, 2005 1:45 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] PHP Highlight list of Parcels Passed In Ok, since this list has been so helpful and generous to me in the past, here is an exhaustive example. I hope this will finally get you going. Disclaimer: I'm doing this all from memory and w/o testing so there may be a few errors. Setup a map file like this: MAP NAME "Parcel Query" STATUS on EXTENT xmin ymin xmax ymax SIZE 300 300 SHAPEPATH "/data_path" IMAGETYPE png IMAGECOLOR 255 255 255 QUERYMAP STYLE hilite COLOR 255 0 0 END LAYER NAME "Parcels" DATA "parcels" CLASS OUTLINECOLOR 0 255 0 END TEMPLATE "x" END END Setup a web page like this: getLayerByName("parcels"); // Query. $layer->queryByAttributes("", "/".$parcel_ids."/", MS_MULTIPLE); // If you want to avoid errors when no matches are found use the ampersand // in the above statement like this: @$layer->queryByAttributes(); // Render an image and get its URL. $img = $map->drawQuery(); $url = $img->saveWebImage(MS_PNG, 1, 1, 0); $img->free(); ?> getNumResults() > 0) echo $layer->getNumResults()." parcels found."; else echo "No parcels found."; ?> Now that I look at it, the last thing you may have been missing was the mapObj::queryMap() method. Anyhow, I hope this helps. -Abe On Jan 22, 2005, at 10:07 PM, Steve Lehr wrote: Abe: I appreciate the help, still not getting it though. I'm wondering if I need to draw out the map after rendering? I've sceen other posts but no real solutions... I'll start from scratch rather then trying to reuse something I have. If anyone else has a more complete example I'd really appreciate seeing it. Thanks Steven Lehr Assistant Professor Freshmen Program College of Engineering Embry-Riddle Aeronautical University (LB159) 600 S. Clyde Morris Blvd. Daytona Beach, FL 32114-3900 386-226-7740 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Abe Gillespie Sent: Saturday, January 22, 2005 8:22 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] PHP Highlight list of Parcels Passed In Something else I noticed. You shouldn't even have to setup a separate layer to show queried parcels (though there are ways to do this). I suggest starting out with one layer that renders queried and non-queried parcels at the same time. Once you get the hang of that then you can do two different layers (if you still even want to). Make the layer like this: LAYER NAME "parcels" DATA "parcels" STATUS on TYPE polygon CLASS OUTLINECOLOR 0 255 0 END TEMPLATE "x" # Must be present to query on (though "x" means absolutely nothing). END The above layer will render all your parcels green outline with hollow fill. Then when you use the PHP code to query it will render your queried parcels red. This assumes you have QUERYMAP setup correctly. -Abe On Jan 22, 2005, at 7:12 PM, Steve Lehr wrote: Abe I've never used the QUERY MAP before, I tried putting it in the layer and it did not like that? My initial layer looks like: I changed my code to pass Pipe delimited. But I'm not quite certian I'm still getting what I need to do to my .map. Thanks for the help..below is the layer repeated my EXPRESSION is trashed I realize. LAYER NAME "selected_parcels" DATA parcels STATUS DEFAULT TYPE POLYGON CLASSITEM QPID CLASS EXPRESSION "/%parcels%/" COLOR 255 0 0 END END Steven Lehr Assistant Professor Freshmen Program College of Engineering Embry-Riddle Aeronautical University (LB159) 600 S. Clyde Morris Blvd. Daytona Beach, FL 32114-3900 386-226-7740 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Abe Gillespie Sent: Saturday, January 22, 2005 7:05 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] PHP Highlight list of Parcels Passed In For the red you need to setup the QUERYMAP. For the PHP it will be something like this: $target = use_appropriate_string_func_to_conver_semi_to_pipe($parcels); // $target should look like "1|2|3|4" ... where the numbers are the IDs. $layer = $map->getLayerByName("parcels"); $layer->queryByAttributes("parcel_id_field", "/".$target."/", MS_MULTIPLE); Also, don't forget to add the TEMPLATE "x" tag in your LAYER definition. I'm not a RegEx expert, so someone please put me in check if I'm leading Steven astray. -Abe On Jan 22, 2005, at 6:37 PM, Steve Lehr wrote: I'm trying to write some PHP that I can send extents and list of parcels to get it to highlight the parcels. I'd like to highlight all the found parcels in RED. My php gets a variable by post called parcels and contains at this time a semi colon delimited list of ids in the attribute column QPID of the parcels.dbf. LAYER NAME "selected_parcels" DATA parcels STATUS DEFAULT TYPE POLYGON CLASSITEM QPID CLASS EXPRESSION "/%parcels%/" COLOR 255 0 0 END END I've got my extents. I've got the list of parcels. Now I want to highlight the list of parcels with something like the below. But I have to do something in php to take that ; delimited list and the turn on all the matching attributes. (I belive its a QUERYMAP with MULTIPLE_SELECT) but I'm having trouble getting my brain around what I need to code - might someone have a sample. Thanks Steven Lehr Assistant Professor Freshmen Program College of Engineering Embry-Riddle Aeronautical University (LB159) 600 S. Clyde Morris Blvd. Daytona Beach, FL 32114-3900 386-226-7740 -------------- next part -------------- An HTML attachment was scrubbed... URL: From fwarmerdam at GMAIL.COM Wed Jan 26 20:28:39 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 26 Jan 2005 23:28:39 -0500 Subject: Debug Logging In-Reply-To: Message-ID: On Wed, 26 Jan 2005 19:25:28 -0500, Abe Gillespie wrote: > Would someone help me get logging working? I remember there was > something on this list about bit I can't seem to locate it. > > I've got "DEBUG on" for a LAYER and the MAP and I have the LOG path in > the WEB. But I'm getting nothing. > > I would appreciate instructions for both Windows and Linux but am > working with Windows right now. Abe, Does your "mapserv -v" output report DEBUG=MSDEBUG? If not, I don't think output debug messages is possible. I would add that in at least some circumstances debug messages go to the error_log file. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From arnulf.christl at CCGIS.DE Thu Jan 27 00:00:19 2005 From: arnulf.christl at CCGIS.DE (Arnulf Christl (CCGIS)) Date: Thu, 27 Jan 2005 09:00:19 +0100 Subject: cartography document by Peter Freimuth In-Reply-To: <41F804F1.5000308@dmsolutions.ca> Message-ID: > Hi There, > > I had a like to a cartography document written by Peter Freimuth but > the link is no more valid. Is this document available somewhere else for > consultation ? > > Thanks > > original link was : > http://www.mapbender.org/umn_cartography/cartographic_symbols.html > -- > ---------------------------------------------------------------- > Assefa Yewondwossen Hi, I removed the document from this link because I didn't want it to be forked. Jeff McKenna has the current version and wanted to docbook it. He will know. Best, Arnulf. From unicoletti at PROMETEO.IT Thu Jan 27 00:12:40 2005 From: unicoletti at PROMETEO.IT (Umberto Nicoletti) Date: Thu, 27 Jan 2005 09:12:40 +0100 Subject: Mapserver in Suse distro In-Reply-To: Message-ID: I am running java mapscript on suse 9.1 pro with suse provided rpm for anything except gdal. Regards, Umberto On Wed, 2005-01-26 at 16:05 -0600, Carlos Eduardo Sibaja Salazar wrote: > Hi list. > I need to know if somebody has mapserver installed in linux with a suse distro. I need to know the version of the most important programs and libraries used, mapserver, apache, gdal, etc. Thanks > > _______________________________________ > Yo me registr? en www.costarricense.cr -- Umberto Nicoletti Prometeo SRL From jlacroix at DMSOLUTIONS.CA Tue Jan 25 06:21:51 2005 From: jlacroix at DMSOLUTIONS.CA (Julien-Samuel Lacroix) Date: Tue, 25 Jan 2005 09:21:51 -0500 Subject: installation problems [was Re: Example Maps] In-Reply-To: Message-ID: Hi, Check the installation instruction for your OS: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScript Normally adding --enable-force-cgi-redirect to your configure command should do the job. Thanks Julien Nicole Faust wrote: > Hello, > > I made a little mistake, sorry. > > >>I think there's something wrong with the PHP/Mapscript installation or >>configuration. But I don't know what. I followed the installation steps on >>the site http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI >>section "Running only PHPMapScript scripts as a CGI". > > > The section I meant was the following: > "So how do I reconfigure my PHP as a CGI?" > > > Regards, > Nicole > -- ------------------------------------------------------------ Julien-Samuel Lacroix jlacroix at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From jlacroix at DMSOLUTIONS.CA Tue Jan 25 06:18:01 2005 From: jlacroix at DMSOLUTIONS.CA (Julien-Samuel Lacroix) Date: Tue, 25 Jan 2005 09:18:01 -0500 Subject: Showing some text in a layer In-Reply-To: <41F624BB.8080400@pobox.com> Message-ID: Hi, I'm far from a PostGIS expert, but I notice 2 problems in your layer. 1. Your layer type is LINE, but in your table you seem to have a POINT layer. Am I right? So if you want to show points you should use TYPE POINT or if you only want to show the labels, you should use: TYPE ANNOTATION 2. You don't have any style in your class. For LINE and POINT types, you should have a STYLE in your class. Thanks Julien Aaron Craig wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > In my mapfile, I've defined a layer: > > LAYER > TYPE LINE > STATUS DEFAULT > NAME "museum_label" > > CONNECTION 'user=postgres dbname=postgis_sardegna' > CONNECTIONTYPE POSTGIS > DATA 'point_geom from museum' > > LABELITEM "name" > CLASS > ~ LABEL > ~ COLOR 0 0 0 > ~ TYPE TRUETYPE > ~ FONT arial > ~ SIZE 10 > ~ ANTIALIAS TRUE > ~ POSITION CC > ~ PARTIALS FALSE > ~ MINDISTANCE 10 > ~ BUFFER 1 > END # end of label > END > END > > The museum table looks like: > postgis_sardegna=# \d museum > ~ Table "public.museum" > ~ Column | Type | Modifiers > - ------------+------------------------+----------- > ~ id | integer | > ~ name | character varying(255) | > ~ xdb_id | integer | > ~ point_geom | geometry | > Check constraints: > ~ "enforce_srid_point_geom" CHECK (srid(point_geom) = -1) > ~ "enforce_geotype_point_geom" CHECK (geometrytype(point_geom) = > 'POINT'::text OR point_geom IS NULL) > > But the layer does not display. In the mapfile, it is the last layer to > be declared, so it should be rendered last (on top), correct? > > Another layer that shows labels does work. The syntax for the layer is > the same, leading me to believe that my mapfile syntax is ok. The > working layer's underlying table's geometry column is MULTIPOLYGON > instead of POINT. Could that be the problem? > > Thanks. > > - -- > Aaron Craig > mercutio at pobox.com > > =========================================================== > Get Firefox! > http://www.spreadfirefox.com/?q=affiliates&id=0&t=1 > =========================================================== > > > - -=-=- > I am but mad north-northwest: when the wind is southerly I know a hawk > from a handsaw. --Hamlet, II:2 > - -=-=- > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.4 (GNU/Linux) > Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org > > iD8DBQFB9iS7oyEQRcU83p4RAjIaAKCHW/NKMTrRueEz3NGBBBxSTqqX/ACcCGYi > z4jh9xXhwvQyLvbPB4AC2gQ= > =DhU0 > -----END PGP SIGNATURE----- > -- ------------------------------------------------------------ Julien-Samuel Lacroix jlacroix at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From wbronsema at DMSOLUTIONS.CA Thu Jan 27 03:38:25 2005 From: wbronsema at DMSOLUTIONS.CA (William Bronsema) Date: Thu, 27 Jan 2005 06:38:25 -0500 Subject: Zoom to custom extent - PHP In-Reply-To: Message-ID: Kevin, PHP variables are case sensitive. I just took a quick peek at the code you sent me earlier. Your app uses $http_form_vars not $HTTP_FORM_VARS. Try changing to $http_form_vars and let me know how it goes. Regards, Bill ________________________________________________ William A. Bronsema, C.E.T. Applications and Software Development, DM Solutions Group Inc. > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On > Behalf Of Kevin Grootendorst > Sent: January 26, 2005 3:42 PM > To: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] Zoom to custom extent - PHP > > Bill, > I added that code, right before the IF statement. > There was no output... > Does that tell us that ($HTTP_FORM_VARS) is null? > ? > > > On Wed, 26 Jan 2005 15:20:01 -0500, William Bronsema > wrote: > > >Kevin, > > > >It sounds like $HTTP_FORM_VARS['doQuickZoom'] is not being set. > > > >Add this: > >echo '
';
> >print_r( $HTTP_FORM_VARS );
> >echo '
'; > > > >just before the if statement and send me the output for both an intial > page > >load and quickzoom page load. This will tell us exactly what is being > set > >(or not set ;) ). > > > >Regards, > >Bill > > > > > > > >________________________________________________ > >William A. Bronsema, C.E.T. > >Applications and Software Development, > >DM Solutions Group Inc. > > > > > > > >> -----Original Message----- > >> From: Kevin Grootendorst [mailto:kgrootendorst at BAIRD.COM] > >> Sent: January 26, 2005 3:12 PM > >> To: MAPSERVER-USERS at LISTS.UMN.EDU; William Bronsema > >> Subject: Re: Zoom to custom extent - PHP > >> > >> Bill, > >> OK. This makes sense. > >> > >> But, using the following statement: > >> If ( isset( $HTTP_FORM_VARS['doQuickZoom']) && $HTTP_FORM_VARS > >> ['doQuickZoom'] == "1" ) > >> This returns a false, and the QuickZoom php code is not executed. > >> > >> Using this statement: > >> If ( isset( $HTTP_FORM_VARS['doQuickZoom']) && $HTTP_FORM_VARS > >> ['doQuickZoom'] == "" ) > >> Also returns a false. > >> > >> Using this statement: > >> If ($HTTP_FORM_VARS['doQuickZoom'] == "") > >> Returns a TRUE - and the php code is executed. But the map does not > draw > >> to the desired extents. It just refreshes the current map extent. > >> > >> Thanks. > >> > >> Kevin > >> > >> > >> On Wed, 26 Jan 2005 14:52:35 -0500, William Bronsema > >> wrote: > >> > >> >Kevin, > >> > > >> >doQuickZoom is supposed to go back to "". echo > >> >$HTTP_FORM_VARS['doQuickZoom'] before your "If ( isset( > >> >$HTTP_FORM_VARS['doQuickZoom'])...." statement to see what I mean. It > >> >should only echo 1 after a quick zoom is called. You only want it to > be > >> 1 > >> >when you want to do a quick zoom. Make sense? > >> > > >> >Is the PHP code being called to perform the quick zoom and the map is > >> just > >> >not zooming? Or is the PHP code not being called? > >> > > >> >Regards, > >> >Bill > >> > > >> >________________________________________________ > >> >William A. Bronsema, C.E.T. > >> >Applications and Software Development, > >> >DM Solutions Group Inc. > >> > From yecarrillo at YAHOO.COM Thu Jan 27 04:31:16 2005 From: yecarrillo at YAHOO.COM (Eduin Carrillo) Date: Thu, 27 Jan 2005 06:31:16 -0600 Subject: Licencing changes? Message-ID: I'm curious. A Geomatic Investigation Group from Colombia has announced that mapserver will cost 1500 dollars after January 12. I'm really surprised with this "news". This is a joke! Take a look: "Mapserver no es gratis - A partir de enero 12, MapServer cuesta 1500 d?lares." http://albatros.uis.edu.co/~pagina/grupos/geomatica/inicio.php?p=experiencia.htm What world they live? Plop! ===== Eduin Yesid Carrillo Vega yecarrillo at yahoo.com COLOMBIA _________________________________________________________ Do You Yahoo!? Informaci?n de Estados Unidos y Am?rica Latina, en Yahoo! Noticias. Vis?tanos en http://noticias.espanol.yahoo.com From lfilak at MEDINACO.ORG Thu Jan 27 05:23:02 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Thu, 27 Jan 2005 08:23:02 -0500 Subject: Converting lat/long distance to miles. Message-ID: The following message was sent by Camden Daily on Wed, 26 Jan 2005 16:15:38 -0600. > Ok. I had axed all my projection blocks because I'd converted all my > shapefiles to lat/long (epsg:4326) using ogr2ogr, so I figured I > didn't need them. Should I still add a projection block to the map > and each layer? > > My map file has a 'units' set to dd, since that is how I set my > extents (and I need to set them that way, since I'm centering off a > given lat/long point in mapscript). > > Could I set the extents in mapscript using dd, and then change the > units to miles for my distance calculations? Camden, I don't think it is possible to just change the units to miles for a DD projection, but I've never tried that.? However, being that all your layers and map are epsg:4326, temporarily assigning another epsg code to the map and units to miles with each layer staying epsg:4326 shouldn't be to difficult. Lowell From blh at MSSL.UCL.AC.UK Thu Jan 27 05:47:51 2005 From: blh at MSSL.UCL.AC.UK (Benjamin Lloyd-Hughes) Date: Thu, 27 Jan 2005 13:47:51 -0000 Subject: Aggregate query Message-ID: Hi I'm using the cgi mapserver in NQUERY mode to extract values within a user defined extent from a point shape file. The query works fine in so much that it returns the desired data and dumps this into the specifed template. So far so good... But what I really want to obtain is the average of these values. I've been scratching my head and thought I might be able to do something using the EVAL() javascript function but I've not had any joy. I would be very grateful I someone could point me in the direction of a solution. I'm a bit of a newbie so please be gentle - it just feels like this must be the sort of problem people encounter all the time. Cheers, Ben From alhim at INTRACOM.GR Thu Jan 27 05:50:50 2005 From: alhim at INTRACOM.GR (Alex Chimarios) Date: Thu, 27 Jan 2005 07:50:50 -0600 Subject: layers are not drawn Message-ID: Hi, I am trying to port mapscript to arm-linux for iPAQ PDA in order to create a demo application loading just one map. I have cross-compiled for arm-linux the following libraries : proj-4.4.7 gdal-1-1-9 freetype2 gd-2.0.25 with png, jpeg and freetype support I have used libpng ,lipjpeg, libX11 and libxpm from binaries coming with Familiar Linux distro for PDA. Finally I cross-compiled mapserver and mapscript. However, when I try to run a simple program in mapscript, the map is drwan without any layers on it!!! Just the background . Can you give me a tip ? I think it may be a lib error. Which lib is responsible if layers are not drawn ? p.s : this is my map file : MAP NAME Mediteranean STATUS ON SIZE 600 600 EXTENT 2.5256 21.5595 34.1734 53.2078 SHAPEPATH "/root/gistest" IMAGECOLOR 50 200 200 IMAGETYPE PNG INTERLACE ON PROJECTION "init=epsg:4326" END WEB IMAGEPATH "/root/" IMAGEURL "/root/" END LAYER NAME "cities" STATUS ON DATA cities TYPE POINT PROJECTION "init=epsg:4326" END LABELITEM "NAME" CLASS STYLE COLOR 255 255 0 SYMBOL "/root/gistest/ctyhwy.png" END LABEL COLOR 255 255 0 SIZE tiny #FONT arial POSITION CL PARTIALS TRUE ANTIALIAS TRUE MINDISTANCE 30 BUFFER 1 END END END From neelima91 at YAHOO.CO.IN Thu Jan 27 05:43:22 2005 From: neelima91 at YAHOO.CO.IN (neelima) Date: Thu, 27 Jan 2005 05:43:22 -0800 Subject: Displaying Text Objects Message-ID: Helo, I am doing my thesis, in which i have created a tool that can dynamically create a mapfile for mapinfo professional. Now my problem is, i am not able to display text object in the browser , all the text poperties are perfectly extracted to the map file but they are not being displayed in the browser. So, just wanted to know if there is any possiblity to display text object in the browser. Thanking you, Neelima --------------------------------- Do you Yahoo!? Yahoo! Mail - You care about security. So do we. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lehrs at ERAU.EDU Thu Jan 27 06:00:05 2005 From: lehrs at ERAU.EDU (Steve Lehr) Date: Thu, 27 Jan 2005 09:00:05 -0500 Subject: Solution -- PHP Highlight list of Parcels Passed In - Solution In-Reply-To: Message-ID: Abe: Thanks again for the help. I ended up getting the highligting to work -- with your suggestions, though I thought I would be smart and change the QUERYMAP style to selected - not so smart, after reading the STYLE options for QUERYMAP it highlighted the found parcels just as it did not found parcels as defined in the layer definition... so for quite awhile I did not see that I had found the 2 shapes it has said it found (the selected sytle option defaults to layer queried definition - and thus it just rendered the green line as it did for the other parcels not found in the query, but as found in the layer itself). Anyway, changed that back to hilight as you said and it worked fine. I searched the emails pretty hard to find a way to render the highlighted shapes a little better, Ken from DNR was the only post I could find. Then I thought about it some more and derived a much simpiler solution ... set up a new layer, create a class with an expression, then send in the expression variable or set the expression in PHP however you choose to operate (i.e. cgi or scripting). i.e. CLASSITEM ID CLASS EXPRESSION /%list%/ #NOTE var set in via CGI would be list --> ....&list=1|2|3&.. or $new_expression = "/".$list."/"; $class->setexpression($new_expression); No querymap needed and much better control of layer formatting. Additionally, I can continue to pass the variable $list around (containing list of parcels) and then let the user browse my map with the list of parcels highlighted and peek and poke at other data. And of course add to the list or cull from the list. Thanks again for the help of this tremendous list! Steven Lehr Assistant Professor Freshmen Program College of Engineering Embry-Riddle Aeronautical University (LB159) 600 S. Clyde Morris Blvd. Daytona Beach, FL 32114-3900 386-226-7740 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Abe Gillespie Sent: Sunday, January 23, 2005 2:39 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] PHP Highlight list of Parcels Passed In Um ... yeah, it's late and I'm tired. Please replace "ampersand" with "at symbol" at the appropriate place. :) -Abe On Jan 23, 2005, at 1:44 AM, Abe Gillespie wrote: Ok, since this list has been so helpful and generous to me in the past, here is an exhaustive example. I hope this will finally get you going. Disclaimer: I'm doing this all from memory and w/o testing so there may be a few errors. Setup a map file like this: MAP NAME "Parcel Query" STATUS on EXTENT xmin ymin xmax ymax SIZE 300 300 SHAPEPATH "/data_path" IMAGETYPE png IMAGECOLOR 255 255 255 QUERYMAP STYLE hilite COLOR 255 0 0 END LAYER NAME "Parcels" DATA "parcels" CLASS OUTLINECOLOR 0 255 0 END TEMPLATE "x" END END Setup a web page like this: getLayerByName("parcels"); // Query. $layer->queryByAttributes("", "/".$parcel_ids."/", MS_MULTIPLE); // If you want to avoid errors when no matches are found use the ampersand // in the above statement like this: @$layer->queryByAttributes(); // Render an image and get its URL. $img = $map->drawQuery(); $url = $img->saveWebImage(MS_PNG, 1, 1, 0); $img->free(); ?> getNumResults() > 0) echo $layer->getNumResults()." parcels found."; else echo "No parcels found."; ?> Now that I look at it, the last thing you may have been missing was the mapObj::queryMap() method. Anyhow, I hope this helps. -Abe On Jan 22, 2005, at 10:07 PM, Steve Lehr wrote: Abe: I appreciate the help, still not getting it though. I'm wondering if I need to draw out the map after rendering? I've sceen other posts but no real solutions... I'll start from scratch rather then trying to reuse something I have. If anyone else has a more complete example I'd really appreciate seeing it. Thanks Steven Lehr Assistant Professor Freshmen Program College of Engineering Embry-Riddle Aeronautical University (LB159) 600 S. Clyde Morris Blvd. Daytona Beach, FL 32114-3900 386-226-7740 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Abe Gillespie Sent: Saturday, January 22, 2005 8:22 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] PHP Highlight list of Parcels Passed In Something else I noticed. You shouldn't even have to setup a separate layer to show queried parcels (though there are ways to do this). I suggest starting out with one layer that renders queried and non-queried parcels at the same time. Once you get the hang of that then you can do two different layers (if you still even want to). Make the layer like this: LAYER NAME "parcels" DATA "parcels" STATUS on TYPE polygon CLASS OUTLINECOLOR 0 255 0 END TEMPLATE "x" # Must be present to query on (though "x" means absolutely nothing). END The above layer will render all your parcels green outline with hollow fill. Then when you use the PHP code to query it will render your queried parcels red. This assumes you have QUERYMAP setup correctly. -Abe On Jan 22, 2005, at 7:12 PM, Steve Lehr wrote: Abe I've never used the QUERY MAP before, I tried putting it in the layer and it did not like that? My initial layer looks like: I changed my code to pass Pipe delimited. But I'm not quite certian I'm still getting what I need to do to my .map. Thanks for the help..below is the layer repeated my EXPRESSION is trashed I realize. LAYER NAME "selected_parcels" DATA parcels STATUS DEFAULT TYPE POLYGON CLASSITEM QPID CLASS EXPRESSION "/%parcels%/" COLOR 255 0 0 END END Steven Lehr Assistant Professor Freshmen Program College of Engineering Embry-Riddle Aeronautical University (LB159) 600 S. Clyde Morris Blvd. Daytona Beach, FL 32114-3900 386-226-7740 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Abe Gillespie Sent: Saturday, January 22, 2005 7:05 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] PHP Highlight list of Parcels Passed In For the red you need to setup the QUERYMAP. For the PHP it will be something like this: $target = use_appropriate_string_func_to_conver_semi_to_pipe($parcels); // $target should look like "1|2|3|4" ... where the numbers are the IDs. $layer = $map->getLayerByName("parcels"); $layer->queryByAttributes("parcel_id_field", "/".$target."/", MS_MULTIPLE); Also, don't forget to add the TEMPLATE "x" tag in your LAYER definition. I'm not a RegEx expert, so someone please put me in check if I'm leading Steven astray. -Abe On Jan 22, 2005, at 6:37 PM, Steve Lehr wrote: I'm trying to write some PHP that I can send extents and list of parcels to get it to highlight the parcels. I'd like to highlight all the found parcels in RED. My php gets a variable by post called parcels and contains at this time a semi colon delimited list of ids in the attribute column QPID of the parcels.dbf. LAYER NAME "selected_parcels" DATA parcels STATUS DEFAULT TYPE POLYGON CLASSITEM QPID CLASS EXPRESSION "/%parcels%/" COLOR 255 0 0 END END I've got my extents. I've got the list of parcels. Now I want to highlight the list of parcels with something like the below. But I have to do something in php to take that ; delimited list and the turn on all the matching attributes. (I belive its a QUERYMAP with MULTIPLE_SELECT) but I'm having trouble getting my brain around what I need to code - might someone have a sample. Thanks Steven Lehr Assistant Professor Freshmen Program College of Engineering Embry-Riddle Aeronautical University (LB159) 600 S. Clyde Morris Blvd. Daytona Beach, FL 32114-3900 386-226-7740 -------------- next part -------------- An HTML attachment was scrubbed... URL: From kgrootendorst at BAIRD.COM Thu Jan 27 06:07:55 2005 From: kgrootendorst at BAIRD.COM (Kevin Grootendorst) Date: Thu, 27 Jan 2005 08:07:55 -0600 Subject: Zoom to custom extent - PHP Message-ID: Bill, OK, now we're getting somewhere. I included the following before the if statement: echo '
';
print_r ($http_form_vars);
echo '
'; On a normal page load, the following is returned: Array ( [0] => ) When I select the 'QuickZoom' feature, I receive the following: Array ( [WMSlayers] => 1 [layer_status] => Array ( [0] => New York Counties [1] => Ontario Municipalities ) [ViewRegion] => 7200000,833270,7291840,894520 [PrevStateKey] => BBOX=7121000,814428.33333333,7600000,1133571.6666667|SRS=init%3Depsg% 3A50000|MAPSIZE=600,400|LAYERS=0,1 [NotFirstLoad] => 1 [RosaMode] => 1 [ROSA_CMD] => [INPUT_TYPE] => [INPUT_COORD] => [QueryString] => [doQuickZoom] => 1 ) Note that the page just refreshes with the current extents. It did not zoom to the municipality I selected. However, the $adExtents[n] variables are being set to the right extents. Kevin On Thu, 27 Jan 2005 06:38:25 -0500, William Bronsema wrote: >Kevin, > >PHP variables are case sensitive. I just took a quick peek at the code you >sent me earlier. Your app uses $http_form_vars not $HTTP_FORM_VARS. > >Try changing to $http_form_vars and let me know how it goes. > >Regards, >Bill > > >________________________________________________ >William A. Bronsema, C.E.T. >Applications and Software Development, >DM Solutions Group Inc. > > > > >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On >> Behalf Of Kevin Grootendorst >> Sent: January 26, 2005 3:42 PM >> To: MAPSERVER-USERS at lists.umn.edu >> Subject: Re: [UMN_MAPSERVER-USERS] Zoom to custom extent - PHP >> >> Bill, >> I added that code, right before the IF statement. >> There was no output... >> Does that tell us that ($HTTP_FORM_VARS) is null? >> ? >> >> >> On Wed, 26 Jan 2005 15:20:01 -0500, William Bronsema >> wrote: >> >> >Kevin, >> > >> >It sounds like $HTTP_FORM_VARS['doQuickZoom'] is not being set. >> > >> >Add this: >> >echo '
';
>> >print_r( $HTTP_FORM_VARS );
>> >echo '
'; >> > >> >just before the if statement and send me the output for both an intial >> page >> >load and quickzoom page load. This will tell us exactly what is being >> set >> >(or not set ;) ). >> > >> >Regards, >> >Bill >> > >> > >> > >> >________________________________________________ >> >William A. Bronsema, C.E.T. >> >Applications and Software Development, >> >DM Solutions Group Inc. >> > >> > >> > >> >> -----Original Message----- >> >> From: Kevin Grootendorst [mailto:kgrootendorst at BAIRD.COM] >> >> Sent: January 26, 2005 3:12 PM >> >> To: MAPSERVER-USERS at LISTS.UMN.EDU; William Bronsema >> >> Subject: Re: Zoom to custom extent - PHP >> >> >> >> Bill, >> >> OK. This makes sense. >> >> >> >> But, using the following statement: >> >> If ( isset( $HTTP_FORM_VARS['doQuickZoom']) && $HTTP_FORM_VARS >> >> ['doQuickZoom'] == "1" ) >> >> This returns a false, and the QuickZoom php code is not executed. >> >> >> >> Using this statement: >> >> If ( isset( $HTTP_FORM_VARS['doQuickZoom']) && $HTTP_FORM_VARS >> >> ['doQuickZoom'] == "" ) >> >> Also returns a false. >> >> >> >> Using this statement: >> >> If ($HTTP_FORM_VARS['doQuickZoom'] == "") >> >> Returns a TRUE - and the php code is executed. But the map does not >> draw >> >> to the desired extents. It just refreshes the current map extent. >> >> >> >> Thanks. >> >> >> >> Kevin >> >> >> >> >> >> On Wed, 26 Jan 2005 14:52:35 -0500, William Bronsema >> >> wrote: >> >> >> >> >Kevin, >> >> > >> >> >doQuickZoom is supposed to go back to "". echo >> >> >$HTTP_FORM_VARS['doQuickZoom'] before your "If ( isset( >> >> >$HTTP_FORM_VARS['doQuickZoom'])...." statement to see what I mean. It >> >> >should only echo 1 after a quick zoom is called. You only want it to >> be >> >> 1 >> >> >when you want to do a quick zoom. Make sense? >> >> > >> >> >Is the PHP code being called to perform the quick zoom and the map is >> >> just >> >> >not zooming? Or is the PHP code not being called? >> >> > >> >> >Regards, >> >> >Bill >> >> > >> >> >________________________________________________ >> >> >William A. Bronsema, C.E.T. >> >> >Applications and Software Development, >> >> >DM Solutions Group Inc. >> >> > From palanisamyg at ORNL.GOV Thu Jan 27 06:10:00 2005 From: palanisamyg at ORNL.GOV (Palanisamy, Giri) Date: Thu, 27 Jan 2005 09:10:00 -0500 Subject: PHP-Mapserver query result Message-ID: Hi List, Sorry for this repeated postings, but I still could not figure out a solution, I would really appreciate if any one can give me some idea for the problem discussed below. I just got the php-mapscript (rosa) GMap sample application running, I would like to display the query results in a new page, the sample application does it in the same page (when I press the "info" button and click some points on the map it displays the city names in the same page)? I could achieve this in JBox-mapscript application by setting the TEMPLATE in the class object in the .map file as LAYER NAME fluxnet_ll_use METADATA "DESCRIPTION" "Sites" "RESULT_FIELDS" "SITE_LABEL NETWORK COUNTRY STATUS IGBPCLSS CLIMATE LONG LAT " END GROUP MODIS TYPE POINT DATA f264 STATUS DEFAULT PROJECTION "proj=longlat" "ellps=GRS80" "no_defs" END CLASS NAME 'FLUXNET Sites' COLOR 0 0 255 SYMBOL 'triangle' SIZE 10 TEMPLATE "fluxsites.phtml" END TOLERANCE 5 END I would really appreciate if anyone can tell me how to do this with the php-mapscript (rosa)? Thanks Giri From jdport at VERITIME.COM Thu Jan 27 06:07:36 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Thu, 27 Jan 2005 09:07:36 -0500 Subject: layers are not drawn Message-ID: I notice you specified your paths as /root/... I am not familiar with your OS or how you've setup your filesystem and thus I am not sure if /root is referring to the web server root or your actual root directory but just in case I thought I'd mention to make sure that those directories are readable by the "web user"... whether that user is nobody (as is often the case with apache) or some other user name. I think if those permissions are bad it would cause the behavior you described... I'm still a newbie so I'll defer to the experts for any suggestions beyond that :) -Jeff ----- Original Message ----- From: "Alex Chimarios" To: Sent: Thursday, January 27, 2005 8:50 AM Subject: [UMN_MAPSERVER-USERS] layers are not drawn > Hi, > > I am trying to port mapscript to arm-linux for iPAQ PDA in order to create > a > demo application loading just one map. > > I have cross-compiled for arm-linux the following libraries : > proj-4.4.7 > gdal-1-1-9 > freetype2 > gd-2.0.25 with png, jpeg and freetype support > > I have used libpng ,lipjpeg, libX11 and libxpm from binaries coming with > Familiar Linux distro for PDA. > > Finally I cross-compiled mapserver and mapscript. > > However, when I try to run a simple program in mapscript, the map is drwan > without any layers on it!!! Just the background . > > Can you give me a tip ? I think it may be a lib error. Which lib is > responsible if layers are not drawn ? > > > p.s : this is my map file : > > MAP > > NAME Mediteranean > > STATUS ON > SIZE 600 600 > EXTENT 2.5256 21.5595 34.1734 53.2078 > > > > SHAPEPATH "/root/gistest" > > > IMAGECOLOR 50 200 200 > IMAGETYPE PNG > INTERLACE ON > > > > PROJECTION > "init=epsg:4326" > END > WEB > IMAGEPATH "/root/" > IMAGEURL "/root/" > END > > > > > LAYER > > NAME "cities" > > STATUS ON > DATA cities > TYPE POINT > PROJECTION > "init=epsg:4326" > END > > LABELITEM "NAME" > > CLASS > > > STYLE > COLOR 255 255 0 > > SYMBOL "/root/gistest/ctyhwy.png" > END > > LABEL > COLOR 255 255 0 > SIZE tiny > #FONT arial > POSITION CL > PARTIALS TRUE > ANTIALIAS TRUE > MINDISTANCE 30 > BUFFER 1 > END > END > END > From kgrootendorst at BAIRD.COM Thu Jan 27 06:14:23 2005 From: kgrootendorst at BAIRD.COM (Kevin Grootendorst) Date: Thu, 27 Jan 2005 08:14:23 -0600 Subject: PHP-Mapserver query result Message-ID: Giri, I don't know exactly how to solve your problem, but have you tried using MapLab to create an application? By default, querying a MapLab application will launch a separate window with the query results. Maybe that might help? Kevin On Thu, 27 Jan 2005 09:10:00 -0500, Palanisamy, Giri wrote: >Hi List, > >Sorry for this repeated postings, but I still could not figure out a >solution, I would really appreciate if any one can give me some idea for >the problem discussed below. > >I just got the php-mapscript (rosa) GMap sample application running, I >would like to display the query results in a new page, the sample >application does it in the same page (when I press the "info" button and >click some points on the map it displays the city names in the same >page)? I could achieve this in JBox-mapscript application by setting the >TEMPLATE in the class object in the .map file as > >LAYER > NAME fluxnet_ll_use > METADATA > "DESCRIPTION" "Sites" > "RESULT_FIELDS" "SITE_LABEL NETWORK COUNTRY STATUS IGBPCLSS CLIMATE >LONG LAT " > END > GROUP MODIS > TYPE POINT > DATA f264 > STATUS DEFAULT > PROJECTION > "proj=longlat" > "ellps=GRS80" > "no_defs" > END > > CLASS > NAME 'FLUXNET Sites' > COLOR 0 0 255 > SYMBOL 'triangle' > SIZE 10 > TEMPLATE "fluxsites.phtml" > END > > TOLERANCE 5 >END > > >I would really appreciate if anyone can tell me how to do this with the >php-mapscript (rosa)? > >Thanks > >Giri From palanisamyg at ORNL.GOV Thu Jan 27 06:22:14 2005 From: palanisamyg at ORNL.GOV (Palanisamy, Giri) Date: Thu, 27 Jan 2005 09:22:14 -0500 Subject: PHP-Mapserver query result Message-ID: Kevin, Thanks for the suggestion, but I have almost customized my demo application with the help of GMap sample app, and this is the final part I need to find out! Giri -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Kevin Grootendorst Sent: Thursday, January 27, 2005 9:14 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] PHP-Mapserver query result Giri, I don't know exactly how to solve your problem, but have you tried using MapLab to create an application? By default, querying a MapLab application will launch a separate window with the query results. Maybe that might help? Kevin On Thu, 27 Jan 2005 09:10:00 -0500, Palanisamy, Giri wrote: >Hi List, > >Sorry for this repeated postings, but I still could not figure out a >solution, I would really appreciate if any one can give me some idea for >the problem discussed below. > >I just got the php-mapscript (rosa) GMap sample application running, I >would like to display the query results in a new page, the sample >application does it in the same page (when I press the "info" button and >click some points on the map it displays the city names in the same >page)? I could achieve this in JBox-mapscript application by setting the >TEMPLATE in the class object in the .map file as > >LAYER > NAME fluxnet_ll_use > METADATA > "DESCRIPTION" "Sites" > "RESULT_FIELDS" "SITE_LABEL NETWORK COUNTRY STATUS IGBPCLSS CLIMATE >LONG LAT " > END > GROUP MODIS > TYPE POINT > DATA f264 > STATUS DEFAULT > PROJECTION > "proj=longlat" > "ellps=GRS80" > "no_defs" > END > > CLASS > NAME 'FLUXNET Sites' > COLOR 0 0 255 > SYMBOL 'triangle' > SIZE 10 > TEMPLATE "fluxsites.phtml" > END > > TOLERANCE 5 >END > > >I would really appreciate if anyone can tell me how to do this with the >php-mapscript (rosa)? > >Thanks > >Giri From markadams at CUESTASYS.COM Thu Jan 27 06:23:05 2005 From: markadams at CUESTASYS.COM (Mark Adams) Date: Thu, 27 Jan 2005 08:23:05 -0600 Subject: Debug Logging Message-ID: On a windows system I have found that adding an environment variable through Control Panel (MS_ERRORFILE = ) seems to work. I must have got that idea from this list at some point.... Cheers. -Mark Adams From alhim at INTRACOM.GR Thu Jan 27 06:09:27 2005 From: alhim at INTRACOM.GR (Alexandros Chimarios) Date: Thu, 27 Jan 2005 16:09:27 +0200 Subject: layers are not drawn In-Reply-To: <004e01c50479$8d9bd080$1bf2fbd0@solo> Message-ID: Thanx for answering Jeff, actually I don't use the mapserv CGI application but Python mapscript. Therefore I dont think so that the problem has to do with the user's permisions. I run everything as a root. There must be a problem with some lib propably. On Thursday 27 January 2005 16:07, Jeff Portwine wrote: > I notice you specified your paths as /root/... I am not familiar with > your OS or how you've setup your filesystem and thus I am not sure if /root > is referring to the web server root or your actual root directory but just > in case I thought I'd mention to make sure that those directories are > readable by the "web user"... whether that user is nobody (as is often the > case with apache) or some other user name. I think if those permissions > are bad it would cause the behavior you described... > > I'm still a newbie so I'll defer to the experts for any suggestions beyond > that :) > > -Jeff > > ----- Original Message ----- > From: "Alex Chimarios" > To: > Sent: Thursday, January 27, 2005 8:50 AM > Subject: [UMN_MAPSERVER-USERS] layers are not drawn > > > Hi, > > > > I am trying to port mapscript to arm-linux for iPAQ PDA in order to > > create a > > demo application loading just one map. > > > > I have cross-compiled for arm-linux the following libraries : > > proj-4.4.7 > > gdal-1-1-9 > > freetype2 > > gd-2.0.25 with png, jpeg and freetype support > > > > I have used libpng ,lipjpeg, libX11 and libxpm from binaries coming with > > Familiar Linux distro for PDA. > > > > Finally I cross-compiled mapserver and mapscript. > > > > However, when I try to run a simple program in mapscript, the map is > > drwan without any layers on it!!! Just the background . > > > > Can you give me a tip ? I think it may be a lib error. Which lib is > > responsible if layers are not drawn ? > > > > > > p.s : this is my map file : > > > > MAP > > > > NAME Mediteranean > > > > STATUS ON > > SIZE 600 600 > > EXTENT 2.5256 21.5595 34.1734 53.2078 > > > > > > > > SHAPEPATH "/root/gistest" > > > > > > IMAGECOLOR 50 200 200 > > IMAGETYPE PNG > > INTERLACE ON > > > > > > > > PROJECTION > > "init=epsg:4326" > > END > > WEB > > IMAGEPATH "/root/" > > IMAGEURL "/root/" > > END > > > > > > > > > > LAYER > > > > NAME "cities" > > > > STATUS ON > > DATA cities > > TYPE POINT > > PROJECTION > > "init=epsg:4326" > > END > > > > LABELITEM "NAME" > > > > CLASS > > > > > > STYLE > > COLOR 255 255 0 > > > > SYMBOL "/root/gistest/ctyhwy.png" > > END > > > > LABEL > > COLOR 255 255 0 > > SIZE tiny > > #FONT arial > > POSITION CL > > PARTIALS TRUE > > ANTIALIAS TRUE > > MINDISTANCE 30 > > BUFFER 1 > > END > > END > > END From n_faust at INFORMATIK.UNI-KL.DE Thu Jan 27 06:36:16 2005 From: n_faust at INFORMATIK.UNI-KL.DE (Nicole Faust) Date: Thu, 27 Jan 2005 15:36:16 +0100 Subject: installation problems [was Re: Example Maps] In-Reply-To: <41F655FF.8040402@dmsolutions.ca> Message-ID: Hello, This are the options that I used, to configure PHP: ./configure --with-gd=/home/n_faust/software/projekt --with-pgsql=/home/n_faust/software/projekt --enable-force-cgi-redirect --enable-fastcgi --prefix=/home/n_faust/software/projekt Are there any options missing? Regards, Nicole On Tue, 25 Jan 2005, Julien-Samuel Lacroix wrote: > Hi, > > Check the installation instruction for your OS: > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScript > > Normally adding --enable-force-cgi-redirect to your configure command > should do the job. From n_faust at INFORMATIK.UNI-KL.DE Thu Jan 27 06:46:41 2005 From: n_faust at INFORMATIK.UNI-KL.DE (Nicole Faust) Date: Thu, 27 Jan 2005 15:46:41 +0100 Subject: Example Maps In-Reply-To: <20050126090542.53782.qmail@web26410.mail.ukl.yahoo.com> Message-ID: Hello, > I am also using the examples, and I want to make the usa.map work but it doesn't. > Does it work for you? > Did you see anything wrong? > I am working with: > > MapServer version 4.4.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=GDAL INPUT=SHAPEFILE I have still problems display the map, too. I work with: MapServer version 4.2.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE I changed the following path (in the WEB section) in the .MAP file (but it doesn't work anyway): IMAGEPATH "/home/n_faust/software/projekt/htdocs/karten/tmp/" IMAGEURL "/karten/tmp" htdocs is the DocumentRoot of Apache and karten a subdirectory where I stored the .SHP, .SHX and .MAP files. In the tmp subdirectory the mapserver stores the generated image files. This works for .PHTML files but not for .MAP files and I don't know why. Regards, Nicole From agillesp at VT.EDU Thu Jan 27 07:12:58 2005 From: agillesp at VT.EDU (Abe Gillespie) Date: Thu, 27 Jan 2005 10:12:58 -0500 Subject: Debug Logging In-Reply-To: Message-ID: That's precisely what I needed. Thanks! -Abe On Jan 27, 2005, at 9:23 AM, Mark Adams wrote: > On a windows system I have found that adding an environment variable > through Control Panel (MS_ERRORFILE = ) seems to work. > I > must have got that idea from this list at some point.... > > Cheers. > > -Mark Adams > From n_faust at INFORMATIK.UNI-KL.DE Thu Jan 27 06:58:40 2005 From: n_faust at INFORMATIK.UNI-KL.DE (Nicole Faust) Date: Thu, 27 Jan 2005 15:58:40 +0100 Subject: Example Maps In-Reply-To: <07986207-6F80-11D9-8FA2-000A95BB6956@uni-duesseldorf.de> Message-ID: Hello, I've got the same problem that I couldn't display the map in my browser. This is the shapepath of the .MAP file: SHAPEPATH "/home/n_faust/software/projekt/htdocs/karten" This is the WEB section of the .MAP file: WEB IMAGEPATH "/home/n_faust/software/projekt/htdocs/karten/tmp/" IMAGEURL"/karten/tmp/" END If I use the .PHTML files instead of the .MAP files, the mapserver generates a output image file, which is stored in the directory named by IMAGEURL. The directory /home/n_faust/software/projekt/htdocs is the DocumentRoot of Apache. Did I made something wrong? Regards, Nicole On Wed, 26 Jan 2005, Ingo Paulsen wrote: > Hello, > > I fixed the problem by replacing the IMAGEURL path with IMAGEPATH entry. > Did you take a look in your /var/www/html/tmp/ directory? Are there any > dynamically created .png files? > > WEB > IMAGEPATH "/var/www/html/tmp/" > IMAGEURL "/var/www/html/tmp/" > END > > I suppose you have installed the shapefiles in /var/www/html/data. > > > Best regards > Ingo > > > > I am also using the examples, and I want to make the usa.map work but > > it doesn't. > > Does it work for you? > > Did you see anything wrong? > > I am working with: > > > > MapServer version 4.4.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > > SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 > > INPUT=GDAL INPUT=SHAPEFILE > > > > So I think that if I have gdal it should recognize .tif files and > > should work. But it doesn't > > From woodbri at SWOODBRIDGE.COM Thu Jan 27 07:12:18 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 27 Jan 2005 10:12:18 -0500 Subject: Aggregate query In-Reply-To: Message-ID: Benjamin Lloyd-Hughes wrote: > Hi > > I'm using the cgi mapserver in NQUERY mode to extract values within a user > defined extent from a point shape file. The query works fine in so much > that it returns the desired data and dumps this into the specifed template. > So far so good... But what I really want to obtain is the average of these > values. I've been scratching my head and thought I might be able to do > something using the EVAL() javascript function but I've not had any joy. I > would be very grateful I someone could point me in the direction of a > solution. Since you are use a HTML template, I think you are on the right track to do this in Javascript. I would not use an eval though, I would create and array initializer and just populate the values directly into the array. So do something like the following (I will leave the exact syntax up to you to figure out): I think you need to break this into three separate files, ie; header, template and footer so if the file names are header.html, template.heml and footer.html, you would break up the code like this: ========header.html============== ... var num_rows = [nr]; var data = new Array( ========template.html============ [DBASE column_name], ========footer.html============== 0); // probably need the trailing "0" beacue of the comma above ... // now loop through your array using num_rows to compute whatever ================================== I'm a little rusty with my javascript and use of query templates, but this should give you the idea. I am assuming that the mapserver templating will repeat the [DBASE column_name], line once for every row. if this is not right maybe some else will post the correct syntax. -Steve W. From woodbri at SWOODBRIDGE.COM Thu Jan 27 07:32:44 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 27 Jan 2005 10:32:44 -0500 Subject: Debug Logging In-Reply-To: <931f8ea9050126202825537514@mail.gmail.com> Message-ID: Also, I think there is a bug in the debug logging or at least a documentation problem on MS 4.4.1 DEBUG ON In the map section, then layer timing information goes to stderr which ends up in the webserver error.log. You can place DEBUG ON in LAYER block(s) but it seems that this sets the global flag and you get the same out as if you put it once in the map section, (ie: you don't get more info by placing it in the LAYER block. LOG "/path/to/log_file.log" then only a single line gets written to the log file for each map regardless of the setting for DEBUG -Steve W. Frank Warmerdam wrote: > On Wed, 26 Jan 2005 19:25:28 -0500, Abe Gillespie wrote: > >>Would someone help me get logging working? I remember there was >>something on this list about bit I can't seem to locate it. >> >>I've got "DEBUG on" for a LAYER and the MAP and I have the LOG path in >>the WEB. But I'm getting nothing. >> >>I would appreciate instructions for both Windows and Linux but am >>working with Windows right now. > > > Abe, > > Does your "mapserv -v" output report DEBUG=MSDEBUG? If not, I don't > think output debug messages is possible. I would add that in at least > some circumstances debug messages go to the error_log file. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > From jbgoecken at HOTMAIL.COM Thu Jan 27 07:58:42 2005 From: jbgoecken at HOTMAIL.COM (John Goecken) Date: Thu, 27 Jan 2005 09:58:42 -0600 Subject: MapInfo and MapServer point location problem Message-ID: I have a map in MapInfo with a street layer and a point layer. The point location shows up correctly in MapInfo. When I create a site with MapServer that uses those layers it moves the point or the line layer. It is now showing the point about .06 miles east of the exact location. I realize this is a small difference but for the project I'm working on it is important. Has anybody ever seen something like this before where MapServer moves a point? Thanks. From kgrootendorst at BAIRD.COM Thu Jan 27 08:58:14 2005 From: kgrootendorst at BAIRD.COM (Kevin Grootendorst) Date: Thu, 27 Jan 2005 10:58:14 -0600 Subject: Zoom to custom extent - PHP - SOLVED Message-ID: Bill, Finally, I was able to get my application working properly. After I changed $HTTP_FORM_VARS to $http_form_vars, I moved the code in my app.php file closer to the top of the file. The application works perfectly. Thanks for all your help and your php tips, it's greatly appreciated. Regards, Kevin On Thu, 27 Jan 2005 06:38:25 -0500, William Bronsema wrote: >Kevin, > >PHP variables are case sensitive. I just took a quick peek at the code you >sent me earlier. Your app uses $http_form_vars not $HTTP_FORM_VARS. > >Try changing to $http_form_vars and let me know how it goes. > >Regards, >Bill > > >________________________________________________ >William A. Bronsema, C.E.T. >Applications and Software Development, >DM Solutions Group Inc. > > > > >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On >> Behalf Of Kevin Grootendorst >> Sent: January 26, 2005 3:42 PM >> To: MAPSERVER-USERS at lists.umn.edu >> Subject: Re: [UMN_MAPSERVER-USERS] Zoom to custom extent - PHP >> >> Bill, >> I added that code, right before the IF statement. >> There was no output... >> Does that tell us that ($HTTP_FORM_VARS) is null? >> ? >> >> >> On Wed, 26 Jan 2005 15:20:01 -0500, William Bronsema >> wrote: >> >> >Kevin, >> > >> >It sounds like $HTTP_FORM_VARS['doQuickZoom'] is not being set. >> > >> >Add this: >> >echo '
';
>> >print_r( $HTTP_FORM_VARS );
>> >echo '
'; >> > >> >just before the if statement and send me the output for both an intial >> page >> >load and quickzoom page load. This will tell us exactly what is being >> set >> >(or not set ;) ). >> > >> >Regards, >> >Bill >> > >> > >> > >> >________________________________________________ >> >William A. Bronsema, C.E.T. >> >Applications and Software Development, >> >DM Solutions Group Inc. >> > >> > >> > >> >> -----Original Message----- >> >> From: Kevin Grootendorst [mailto:kgrootendorst at BAIRD.COM] >> >> Sent: January 26, 2005 3:12 PM >> >> To: MAPSERVER-USERS at LISTS.UMN.EDU; William Bronsema >> >> Subject: Re: Zoom to custom extent - PHP >> >> >> >> Bill, >> >> OK. This makes sense. >> >> >> >> But, using the following statement: >> >> If ( isset( $HTTP_FORM_VARS['doQuickZoom']) && $HTTP_FORM_VARS >> >> ['doQuickZoom'] == "1" ) >> >> This returns a false, and the QuickZoom php code is not executed. >> >> >> >> Using this statement: >> >> If ( isset( $HTTP_FORM_VARS['doQuickZoom']) && $HTTP_FORM_VARS >> >> ['doQuickZoom'] == "" ) >> >> Also returns a false. >> >> >> >> Using this statement: >> >> If ($HTTP_FORM_VARS['doQuickZoom'] == "") >> >> Returns a TRUE - and the php code is executed. But the map does not >> draw >> >> to the desired extents. It just refreshes the current map extent. >> >> >> >> Thanks. >> >> >> >> Kevin >> >> >> >> >> >> On Wed, 26 Jan 2005 14:52:35 -0500, William Bronsema >> >> wrote: >> >> >> >> >Kevin, >> >> > >> >> >doQuickZoom is supposed to go back to "". echo >> >> >$HTTP_FORM_VARS['doQuickZoom'] before your "If ( isset( >> >> >$HTTP_FORM_VARS['doQuickZoom'])...." statement to see what I mean. It >> >> >should only echo 1 after a quick zoom is called. You only want it to >> be >> >> 1 >> >> >when you want to do a quick zoom. Make sense? >> >> > >> >> >Is the PHP code being called to perform the quick zoom and the map is >> >> just >> >> >not zooming? Or is the PHP code not being called? >> >> > >> >> >Regards, >> >> >Bill >> >> > >> >> >________________________________________________ >> >> >William A. Bronsema, C.E.T. >> >> >Applications and Software Development, >> >> >DM Solutions Group Inc. >> >> > From pawbhaji at MSN.COM Thu Jan 27 08:58:10 2005 From: pawbhaji at MSN.COM (JEFFERY C COATE) Date: Thu, 27 Jan 2005 16:58:10 +0000 Subject: No subject Message-ID: Hi, I'm a first-time poster. Hope this makes sense: I?d appreciate any ideas on calculating imgext in projected coordinates around a lat/lon point. Can mapserver project a DD imgext on the fly? Or, can I make a separate call to mapserver to project a lat/lon point prior to building an imgext? My limitation (one, anyway) is that I?m using basic cgi mapserver at this point. Here?s why I?m asking: I have mapserver displaying gps points using OGR. I also display the gps and related data in tabular format. Links in the table zoom the map ? the link passes the record?s lat/lon to a javascript function which builds a new imgext around the point, passes that to the template file and resubmits the cgi url. This works great if map is in geographic coordinates but not if it is projected. Thanks, Jeff Coate GIS Rangers From kenlord at GMAIL.COM Thu Jan 27 09:29:02 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Thu, 27 Jan 2005 09:29:02 -0800 Subject: MapInfo and MapServer point location problem In-Reply-To: Message-ID: Hi John, Confirm that your map projections are set right. If that particular layer is set wrong it could appear slightly (or a lot) off of where you expect it, Or, if that layer is right but your output projection is set wrong it could also show a shift. Cheers, Ken Lord Vancouver BC On Thu, 27 Jan 2005 09:58:42 -0600, John Goecken wrote: > I have a map in MapInfo with a street layer and a point layer. The point > location shows up correctly in MapInfo. When I create a site with > MapServer that uses those layers it moves the point or the line layer. It > is now showing the point about .06 miles east of the exact location. I > realize this is a small difference but for the project I'm working on it > is important. Has anybody ever seen something like this before where > MapServer moves a point? Thanks. > From cdaily at GMAIL.COM Thu Jan 27 09:29:10 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Thu, 27 Jan 2005 11:29:10 -0600 Subject: Converting lat/long distance to miles. In-Reply-To: <20050127132243.6D1471A65A5@mail.medinaco.org> Message-ID: Thanks for the suggestions everyone, but I still can't figure this out. I've added projection blocks for all of my layers and an output projection as well (epsg 4326 for lat/long). The difficulties I'm having seem to be mostly based on the fact that I initially need to set my extents and place various points on the map using lat/long with units of decimal degrees. However, when I then calculate my distances, I'd like the results in miles. It seems to me that I should be able to set my extents, place my points, then reproject both the points and the layer I'm searching against to a projection that uses meters (which I can easily convert to miles) for the distance calculations, but this just isn't working for me. Here's the code I'm using to try to find distances: // clone the layer $layer = $map->getLayerByName($layer_name); $temp_layer = ms_newLayerObj($map, $layer); // clone the point $temp_point = ms_newPointObj(); $temp_point->setXY($point->x, $point->y); // project cloned point and layer to NAD83 / Illinois East so that our calculated distance are in meters, not dd $temp_point->project(ms_newprojectionobj("init=epsg:4326"), ms_newprojectionobj("init=epsg:26971")); $temp_layer->setProjection("init=epsg:26971"); // the toleranceunits don't have to be the same as the projection units to work $temp_layer->set("toleranceunits", MS_MILES); $tolerance = 1; $found_flag = false; while (!$found_flag AND ($tolerance < 30)) { $temp_layer->set("tolerance", $tolerance); $temp_layer->queryByPoint($temp_point, MS_MULTIPLE, -1); $num_results = $temp_layer->getNumResults(); if ($num_results > 0) { $found_flag = true; } else { $tolerance += 1; } } echo $num_results; If I comment out the two lines that reproject the point and layer, it works perfectly, except that my distance is in dd. With the reprojections, I don't get any results at all. I don't think it's an issue with my toleranceunits being in miles, since it works fine that way even when my projections are in units of dd. Any insights would be greatly appreciated. From cdaily at GMAIL.COM Thu Jan 27 10:15:36 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Thu, 27 Jan 2005 12:15:36 -0600 Subject: Converting lat/long distance to miles. In-Reply-To: <16264e07050127092970382b3f@mail.gmail.com> Message-ID: Ah, I seem to have it now. Instead of reprojectiong the point and layer before my querybypoint calls, I reproject the point and the individual shapes before I do my distancetoshape calls. I don't exactly understand why the previous method didn't work, but I got it now. Here's the working function I'm using to find the closest shape to a point and the distance in meters, as opposed to latlong: function get_closest($layer, $point) { global $map; $layer = $map->getLayerByName($layer); $layer->set("toleranceunits", MS_MILES); // loop through, increasing the tolerance each time until we find some matches $tolerance = 1; $found_flag = false; while (!$found_flag AND ($tolerance < 30)) { $layer->set("tolerance", $tolerance); $layer->queryByPoint($point, MS_MULTIPLE, -1); $num_results = $layer->getNumResults(); if ($num_results > 0) { $found_flag = true; } else { $tolerance += 1; } } if ($num_results == 0) { return array(-1); } else { // clone the point $temp_point = ms_newPointObj(); $temp_point->setXY($point->x, $point->y); // project cloned point to NAD83 / Illinois East so that our calculated distance are in meters, not dd $temp_point->project(ms_newprojectionobj("init=epsg:4326"), ms_newprojectionobj("init=epsg:26971")); // set our min_distance to a very large value $min_distance = 999999999999; // loop through our results and see which on is closest $layer->open(); for ($i=0; $i < $num_results; $i++) { $result = $layer->getResult($i); $shape = $layer->getShape($result->tileindex, $result->shapeindex); // reproject our shape to the same projection as our cloned point $shape->project(ms_newprojectionobj("init=epsg:4326"), ms_newprojectionobj("init=epsg:26971")); $distance = $temp_point->distanceToShape($shape); if ($distance < $min_distance) { $min_distance = $distance; $closest = $shape; } } $layer->close(); return array($min_distance, $closest); } } Thanks again for the help everyone! From blaine_hack1 at YAHOO.COM Thu Jan 27 10:16:00 2005 From: blaine_hack1 at YAHOO.COM (Blaine Hackett) Date: Thu, 27 Jan 2005 10:16:00 -0800 Subject: shifting .gif colors Message-ID: All I have a mapserver app showing roads, counties, road symbols, text, etc. When I zoom in or out, I get odd looking color changes mostly for the symbols. What is supposed to be red might show up as a different color, many times dull green or brown, until I zoom in and then it is turns red. I am using .gifs. I imagine it has to do with web safe colors but am not sure how to fix it and have found no answers on the web. Anyone have any suggestions on how I might go about fixing this? Thanks Blaine __________________________________ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more. http://info.mail.yahoo.com/mail_250 From agillesp at VT.EDU Thu Jan 27 11:00:17 2005 From: agillesp at VT.EDU (Abe Gillespie) Date: Thu, 27 Jan 2005 14:00:17 -0500 Subject: Problem with Mapscript + PostGIS Message-ID: I'm compiling everything on Windows. MapServer CGI compiles fine with "mapserv -v" giving: MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG I also don't have any problem compiling the C# version of Mapscript. But when I try to access a PostGIS layer the logs tell me I don't have PostGIS support available. Here's the error: Thu Jan 27 13:18:39 2005 - msPOSTGISLayerOpen(): Query error. msPOSTGISLayerOpen called but unimplemented! (mapserver not compiled with postgis support) Thu Jan 27 13:18:39 2005 - msDrawMap(): Image handling error. Failed to draw layer named 'Roads'. I know C# Mapscript is brand new ... so help however you can. BTW - is there a way to do the same as "mapserv -v" in Mapscript? Something like mapObj::version I'd imagine. Thanks. -Abe -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1020 bytes Desc: not available URL: From sgillies at FRII.COM Thu Jan 27 10:53:04 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 27 Jan 2005 11:53:04 -0700 Subject: Problem with Mapscript + PostGIS In-Reply-To: Message-ID: On Jan 27, 2005, at 12:00 PM, Abe Gillespie wrote: > --Apple-Mail-24--303801657 > Content-Transfer-Encoding: quoted-printable > Content-Type: text/plain; > charset=US-ASCII; > format=flowed > > I'm compiling everything on Windows. MapServer CGI compiles fine > with=20= > > "mapserv -v" giving: > > MapServer version 4.4.1 OUTPUT=3DGIF OUTPUT=3DPNG OUTPUT=3DJPEG = > OUTPUT=3DWBMP=20 > SUPPORTS=3DPROJ SUPPORTS=3DFREETYPE SUPPORTS=3DWMS_SERVER > INPUT=3DPOSTGIS=20= > > INPUT=3DOGR INPUT=3DGDAL INPUT=3DSHAPEFILE DEBUG=3DMSDEBUG=00 > > I also don't have any problem compiling the C# version of Mapscript. > =20 > But when I try to access a PostGIS layer the logs tell me I don't > have=20= > > PostGIS support available. Here's the error: > > Thu Jan 27 13:18:39 2005 - msPOSTGISLayerOpen(): Query error.=20 > msPOSTGISLayerOpen called but unimplemented! (mapserver not > compiled=20 > with postgis support) > Thu Jan 27 13:18:39 2005 - msDrawMap(): Image handling error. Failed > to=20= > > draw layer named 'Roads'. > > I know C# Mapscript is brand new ... so help however you can. BTW - > is=20= > > there a way to do the same as "mapserv -v" in Mapscript? Something=20 > like mapObj::version I'd imagine. > > Thanks. > -Abe= > There is mapscript::MS_VERSION, but it is only the version string. I like the idea, you should enter it in Bugzilla as a mapscript enhancement. Without the benefit of any other information, I guess that you have some DLL mixup. Some DLL without libpq is getting in the way. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From woodbri at SWOODBRIDGE.COM Thu Jan 27 10:57:25 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 27 Jan 2005 13:57:25 -0500 Subject: shifting .gif colors In-Reply-To: <20050127181600.4419.qmail@web41106.mail.yahoo.com> Message-ID: Look at http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=306 Blaine Hackett wrote: > All > > I have a mapserver app showing roads, counties, road > symbols, text, etc. > > When I zoom in or out, I get odd looking color > changes mostly for the symbols. What is supposed to > be red might show up as a different color, many times > dull green or brown, until I zoom in and then it is > turns red. > > I am using .gifs. I imagine it has to do with web safe > colors but am not sure how to fix it and have found no > answers on the web. Anyone have any suggestions on how > I might go about fixing this? > > Thanks > Blaine > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail - now with 250MB free storage. Learn more. > http://info.mail.yahoo.com/mail_250 > From saintsjd at YAHOO.COM Thu Jan 27 11:00:43 2005 From: saintsjd at YAHOO.COM (Jon Saints) Date: Thu, 27 Jan 2005 11:00:43 -0800 Subject: XUL Interface for mapserver app? In-Reply-To: Message-ID: Hi all, I am currently experimenting with an XUL client interface for mapserver. I develop in my free time so it is coming slowly. Anyone else out there is working on somehting simillar? Thanks Jon From agillesp at VT.EDU Thu Jan 27 11:48:44 2005 From: agillesp at VT.EDU (Abe Gillespie) Date: Thu, 27 Jan 2005 14:48:44 -0500 Subject: Problem with Mapscript + PostGIS In-Reply-To: Message-ID: You were absolutely right! The problem was an old libmap.dll. Thanks as always. -Abe On Jan 27, 2005, at 1:53 PM, Sean Gillies wrote: > On Jan 27, 2005, at 12:00 PM, Abe Gillespie wrote: > >> --Apple-Mail-24--303801657 >> Content-Transfer-Encoding: quoted-printable >> Content-Type: text/plain; >> charset=US-ASCII; >> format=flowed >> >> I'm compiling everything on Windows. MapServer CGI compiles fine >> with=20= >> >> "mapserv -v" giving: >> >> MapServer version 4.4.1 OUTPUT=3DGIF OUTPUT=3DPNG OUTPUT=3DJPEG = >> OUTPUT=3DWBMP=20 >> SUPPORTS=3DPROJ SUPPORTS=3DFREETYPE SUPPORTS=3DWMS_SERVER >> INPUT=3DPOSTGIS=20= >> >> INPUT=3DOGR INPUT=3DGDAL INPUT=3DSHAPEFILE DEBUG=3DMSDEBUG=00 >> >> I also don't have any problem compiling the C# version of Mapscript. >> =20 >> But when I try to access a PostGIS layer the logs tell me I don't >> have=20= >> >> PostGIS support available. Here's the error: >> >> Thu Jan 27 13:18:39 2005 - msPOSTGISLayerOpen(): Query error.=20 >> msPOSTGISLayerOpen called but unimplemented! (mapserver not >> compiled=20 >> with postgis support) >> Thu Jan 27 13:18:39 2005 - msDrawMap(): Image handling error. Failed >> to=20= >> >> draw layer named 'Roads'. >> >> I know C# Mapscript is brand new ... so help however you can. BTW - >> is=20= >> >> there a way to do the same as "mapserv -v" in Mapscript? Something=20 >> like mapObj::version I'd imagine. >> >> Thanks. >> -Abe= >> > > There is mapscript::MS_VERSION, but it is only the version string. I > like the idea, you should enter it in Bugzilla as a mapscript > enhancement. > > Without the benefit of any other information, I guess that you have > some DLL mixup. Some DLL without libpq is getting in the way. > > cheers, > Sean > > -- > Sean Gillies > sgillies at frii dot com > http://users.frii.com/sgillies > From gerry.creager at TAMU.EDU Thu Jan 27 11:31:16 2005 From: gerry.creager at TAMU.EDU (Gerry Creager n5jxs) Date: Thu, 27 Jan 2005 13:31:16 -0600 Subject: MapInfo and MapServer point location problem In-Reply-To: Message-ID: Sounds like a datum error between point data and the underlying map. What are the EPSG values used? gerry John Goecken wrote: > I have a map in MapInfo with a street layer and a point layer. The point > location shows up correctly in MapInfo. When I create a site with > MapServer that uses those layers it moves the point or the line layer. It > is now showing the point about .06 miles east of the exact location. I > realize this is a small difference but for the project I'm working on it > is important. Has anybody ever seen something like this before where > MapServer moves a point? Thanks. -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Pager: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From gerry.creager at TAMU.EDU Thu Jan 27 11:53:25 2005 From: gerry.creager at TAMU.EDU (Gerry Creager n5jxs) Date: Thu, 27 Jan 2005 13:53:25 -0600 Subject: MySWL bot on the loose Message-ID: For those with a Windows/MySQL installation, there's an exploit in the wild affecting these systems. More info can be found at: http://isc.sans.org/ Good luck! gerry -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Pager: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From cdaily at GMAIL.COM Thu Jan 27 14:13:20 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Thu, 27 Jan 2005 16:13:20 -0600 Subject: Transparent pixmaps in Mapserver 4.4.1 Message-ID: I'm having difficulties displaying pngs with transparent backgrounds as symbols in 4.4.1. I've read up on the bugs regarding this issue, and the fix appears to be to add the line "TRANSPARENCY ALPHA" to the layer containing the transparent symbols. I draw my layer that contains my symbols using mapscript like this: // create a temp layer to hold our points $point_layer = ms_newLayerObj($map); $point_layer->set("name", "markers"); $point_layer->set("type", MS_LAYER_POINT); $point_layer->set("status", MS_DEFAULT); // 1000 is the value used to set transparency to "alpha" $point_layer->set("transparency", 1000); // create a class and style for this layer $point_class = ms_newClassObj($point_layer); $point_style = ms_newStyleObj($point_class); $point_symbol = $map->getSymbolByName("house"); $point_style->set("symbol", $point_symbol); $point_style->set("size", 40); I had to dig a little to find out that transparency of 1000 = alpha (maybe need to define MS_ALPHA=1000 in mapscript?). The layer displays fine, but the symbol backgrounds aren't transparent. From sgillies at FRII.COM Thu Jan 27 14:21:41 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 27 Jan 2005 15:21:41 -0700 Subject: Transparent pixmaps in Mapserver 4.4.1 In-Reply-To: Message-ID: On Jan 27, 2005, at 3:13 PM, Camden Daily wrote: > I'm having difficulties displaying pngs with transparent backgrounds > as symbols in 4.4.1. I've read up on the bugs regarding this issue, > and the fix appears to be to add the line "TRANSPARENCY ALPHA" to the > layer containing the transparent symbols. > > I draw my layer that contains my symbols using mapscript like this: > > // create a temp layer to hold our points > $point_layer = ms_newLayerObj($map); > $point_layer->set("name", "markers"); > $point_layer->set("type", MS_LAYER_POINT); > $point_layer->set("status", MS_DEFAULT); > // 1000 is the value used to set transparency to "alpha" > $point_layer->set("transparency", 1000); > > // create a class and style for this layer > $point_class = ms_newClassObj($point_layer); > $point_style = ms_newStyleObj($point_class); > $point_symbol = $map->getSymbolByName("house"); > $point_style->set("symbol", $point_symbol); > $point_style->set("size", 40); > > I had to dig a little to find out that transparency of 1000 = alpha > (maybe need to define MS_ALPHA=1000 in mapscript?). The layer > displays fine, but the symbol backgrounds aren't transparent. > Camden, the PHP mapscript maintainers may have overlooked MS_ALPHA. Let them know through Bugzilla. At any rate, the alpha transparency is only needed when you are trying to render a transparent background symbol onto a 24-bit map (like a JPEG). It has no positive effect for 8-bit output (such as a GIF). In that case, you should make sure that your symbol background is set properly and omit the transparency directive. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From cdaily at GMAIL.COM Thu Jan 27 14:42:18 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Thu, 27 Jan 2005 16:42:18 -0600 Subject: Transparent pixmaps in Mapserver 4.4.1 In-Reply-To: Message-ID: Thanks Sean. I'll make a bugzilla report for the MS_ALPHA value. The image I'm outputting is a 24bit jpeg. So I need to get the 'transparency alpha' to work properly. My symbol definition is SYMBOL NAME 'house' TYPE PIXMAP IMAGE 'images/house.png' TRANSPARENT 0 END Do I need the 'transparent 0' line, if the png file itself has a transparent background? Commenting it out doesn't resolve my issue, but I'm not entirely certain what it's for. From sgillies at FRII.COM Thu Jan 27 14:53:42 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 27 Jan 2005 15:53:42 -0700 Subject: Transparent pixmaps in Mapserver 4.4.1 In-Reply-To: Message-ID: On Jan 27, 2005, at 3:42 PM, Camden Daily wrote: > Thanks Sean. I'll make a bugzilla report for the MS_ALPHA value. > > The image I'm outputting is a 24bit jpeg. So I need to get the > 'transparency alpha' to work properly. > > My symbol definition is > > SYMBOL > NAME 'house' > TYPE PIXMAP > IMAGE 'images/house.png' > TRANSPARENT 0 > END > > Do I need the 'transparent 0' line, if the png file itself has a > transparent background? Commenting it out doesn't resolve my issue, > but I'm not entirely certain what it's for. > > Take a look at the unit testing data under mapserver-4.4.0/tests. The RGB test.png file is the end result of using test.map, symbols.txt, home.png, and xmarks.png. Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From richard.greenwood at GMAIL.COM Thu Jan 27 16:24:33 2005 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Thu, 27 Jan 2005 17:24:33 -0700 Subject: mapfile join In-Reply-To: <875F594C85E9914C841109EADA425E3511DD33@CBD-METLIFE-001.capetown.gov.za> Message-ID: On Wed, 26 Jan 2005 13:01:21 +0200, John Spotten wrote: > > > Hi, > > looking for some sample code showing a join use successfully. get a parsing > error when using it under class. put it under layer, no parsing error but > then XP tells me mapserv.exe has found a problem and is closing down. > using mapserver 4.4.0 on XP and I get error on html page msDBFJoinConnect(): > Unable to access file. (c:\ms4w\apps\mapserver_demos\ct\data\join.dbf). any > clues. can i use a dbf file. > > I am trying to join to a shape file a seperate independent dbf file on a > common field that is indexed in the shape file. the field is text type. > > I take it it can be accessed using the [join_] template in a > query template file for a one to many join where [join_] gets > replaced with the join header template and footer files and I assume that > the template within the query template file is > [_]. > > Is it possible to refer to the qlayer as [join_]? > > bye > john > > John Spotten > Transport Modeller/GIS Developer > Directorate of Transport, Roads and Stormwater > City of Cape Town > Tel : +27 21 4067325 > Fax : +27 21 4186989 > Cell : +27 846678901 > Email : john.spotten at capetown.gov.za > Web : www.capetown.gov.za > <> > I was hoping somebody else would respond to this with a better example, but here's an sloppy example that I dug out: LAYER NAME "join_query" GROUP "ownership" TYPE QUERY STATUS ON DATA "/Tc/temp/parcel_region" HEADER "attribute_header.html" FOOTER "attribute_footer.html" TEMPLATE "attribute_display.html" # FILTERITEM "PID" # FILTER /./ # regular expression - match anything JOIN # JOIN no longer lives inside of CLASS or inside a QUERY object NAME "test" TABLE "/Tc/temp/assessor2.DBF" FROM PIDP TO PIDA TYPE single # multiple # TEMPLATE cat.html # required only for one-to-many joins END # of JOIN Object END # LAYER "join_region" Yes, you can use a dbf file. In your TABLE clause, try replacing your "\" with "/" and/or qouting the string. HTH -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From warmerdam at POBOX.COM Thu Jan 27 23:49:38 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 28 Jan 2005 02:49:38 -0500 Subject: FWTools 0.9.5 Released Message-ID: Folks, I have released a new FWTools suite build for Linux and Win32. As usual, this new release includes the latest snapshots of GDAL, OpenEV and MapServer (4.5). Other noteworthy FWTools changes: Win32: o Upgraded to Python 2.3. o Upgraded to ECW 3.1 SDK. Linux: o Added OGR SQLite support. I *intend* to add ECW support on Linux soon, but I wasn't able to get it in this release due to build problems with the old gcc (2.95) I use for FWTools builds. I also hope to upgrade Linux to Python 2.3 but that may be a while. I am also working irregularly on building OpenEV on MacOSX with the intent of eventually producing an FWTools release for that platform. No timeline for completion though. As usual the release can be downloaded from: http://www.gdal.org/dl/fwtools/FWTools095.exe http://www.gdal.org/dl/fwtools/FWTools-linux-0.9.5.tar.gz General information, mailing list, and bugzilla for FWTools is available at: http://ftools.maptools.org/ Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From nchandra at IITB.AC.IN Thu Jan 27 23:56:35 2005 From: nchandra at IITB.AC.IN (Nishant Chandra) Date: Fri, 28 Jan 2005 01:56:35 -0600 Subject: Mapserver/Mysql Message-ID: I have a Maperver installation on windows and would like to use Mysql for spatial data. Can i get some help regarding this ie any tutorials or examples available?? From John.Spotten at CAPETOWN.GOV.ZA Fri Jan 28 00:10:36 2005 From: John.Spotten at CAPETOWN.GOV.ZA (John Spotten) Date: Fri, 28 Jan 2005 10:10:36 +0200 Subject: mapserver join Message-ID: NOTE: This e-mail (including attachments) is subject to the restrictions, qualifications and disclaimers (?disclaimer?) published at www.capetown.gov.za/disclaimer/email.pdf. Please read the disclaimer before opening any attachment or taking any other action in terms of this e-mail. If you cannot access the disclaimer, kindly send an email to infomail at capetown.gov.za and a copy will be provided to you. By acting on this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer. ------------------------------------------------- Thanks Richard, thanks for the help. your example explains everything. nice to see help driven from the code/template side. important points JOIN under LAYER not CLASS. JOIN TEMPLATE only required for multiple joins. contains [] template. for single joins replace LAYER template with join template. contains [_] template. you can use map__template= as mapserver cgi parameter to replace templates, same goes for headers and footers. also "%cgi parameter%" can be used in mapfile to replace templates and a lot more. cgi parameter is replaced by it's value. bye john John Spotten Transport Modeller/GIS Developer Directorate of Transport, Roads and Stormwater City of Cape Town Tel : +27 21 4067325 Fax : +27 21 4186989 Cell : +27 846678901 Email : john.spotten at capetown.gov.za Web : www.capetown.gov.za -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Automatic digest processor Sent: 28 January 2005 08:01 AM To: Recipients of MAPSERVER-USERS digests Subject: MAPSERVER-USERS Digest - 26 Jan 2005 to 27 Jan 2005 (#2005-27) There are 43 messages totalling 3113 lines in this issue. Topics of the day: 1. cartography document by Peter Freimuth 2. Mapserver in Suse distro 3. installation problems [was Re: Example Maps] (2) 4. Showing some text in a layer 5. Zoom to custom extent - PHP (2) 6. Licencing changes? 7. Converting lat/long distance to miles. (3) 8. Aggregate query (2) 9. layers are not drawn (3) 10. Displaying Text Objects 11. Solution -- PHP Highlight list of Parcels Passed In - Solution 12. PHP-Mapserver query result (3) 13. Debug Logging (3) 14. Example Maps (2) 15. MapInfo and MapServer point location problem (3) 16. Zoom to custom extent - PHP - SOLVED 17. 18. shifting .gif colors (2) 19. Problem with Mapscript + PostGIS (3) 20. XUL Interface for mapserver app? 21. MySWL bot on the loose 22. Transparent pixmaps in Mapserver 4.4.1 (4) 23. mapfile join ---------------------------------------------------------------------- Date: Thu, 27 Jan 2005 09:00:19 +0100 From: "Arnulf Christl (CCGIS)" Subject: Re: cartography document by Peter Freimuth > Hi There, > > I had a like to a cartography document written by Peter Freimuth but > the link is no more valid. Is this document available somewhere else for > consultation ? > > Thanks > > original link was : > http://www.mapbender.org/umn_cartography/cartographic_symbols.html > -- > ---------------------------------------------------------------- > Assefa Yewondwossen Hi, I removed the document from this link because I didn't want it to be forked. Jeff McKenna has the current version and wanted to docbook it. He will know. Best, Arnulf. ------------------------------ Date: Thu, 27 Jan 2005 09:12:40 +0100 From: Umberto Nicoletti Subject: Re: Mapserver in Suse distro I am running java mapscript on suse 9.1 pro with suse provided rpm for anything except gdal. Regards, Umberto On Wed, 2005-01-26 at 16:05 -0600, Carlos Eduardo Sibaja Salazar wrote: > Hi list. > I need to know if somebody has mapserver installed in linux with a suse distro. I need to know the version of the most important programs and libraries used, mapserver, apache, gdal, etc. Thanks > > _______________________________________ > Yo me registr? en www.costarricense.cr -- Umberto Nicoletti Prometeo SRL ------------------------------ Date: Tue, 25 Jan 2005 09:21:51 -0500 From: Julien-Samuel Lacroix Subject: Re: installation problems [was Re: Example Maps] Hi, Check the installation instruction for your OS: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScript Normally adding --enable-force-cgi-redirect to your configure command should do the job. Thanks Julien Nicole Faust wrote: > Hello, > > I made a little mistake, sorry. > > >>I think there's something wrong with the PHP/Mapscript installation or >>configuration. But I don't know what. I followed the installation steps on >>the site http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI >>section "Running only PHPMapScript scripts as a CGI". > > > The section I meant was the following: > "So how do I reconfigure my PHP as a CGI?" > > > Regards, > Nicole > -- ------------------------------------------------------------ Julien-Samuel Lacroix jlacroix at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ ------------------------------ Date: Tue, 25 Jan 2005 09:18:01 -0500 From: Julien-Samuel Lacroix Subject: Re: Showing some text in a layer Hi, I'm far from a PostGIS expert, but I notice 2 problems in your layer. 1. Your layer type is LINE, but in your table you seem to have a POINT layer. Am I right? So if you want to show points you should use TYPE POINT or if you only want to show the labels, you should use: TYPE ANNOTATION 2. You don't have any style in your class. For LINE and POINT types, you should have a STYLE in your class. Thanks Julien Aaron Craig wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > In my mapfile, I've defined a layer: > > LAYER > TYPE LINE > STATUS DEFAULT > NAME "museum_label" > > CONNECTION 'user=postgres dbname=postgis_sardegna' > CONNECTIONTYPE POSTGIS > DATA 'point_geom from museum' > > LABELITEM "name" > CLASS > ~ LABEL > ~ COLOR 0 0 0 > ~ TYPE TRUETYPE > ~ FONT arial > ~ SIZE 10 > ~ ANTIALIAS TRUE > ~ POSITION CC > ~ PARTIALS FALSE > ~ MINDISTANCE 10 > ~ BUFFER 1 > END # end of label > END > END > > The museum table looks like: > postgis_sardegna=# \d museum > ~ Table "public.museum" > ~ Column | Type | Modifiers > - ------------+------------------------+----------- > ~ id | integer | > ~ name | character varying(255) | > ~ xdb_id | integer | > ~ point_geom | geometry | > Check constraints: > ~ "enforce_srid_point_geom" CHECK (srid(point_geom) = -1) > ~ "enforce_geotype_point_geom" CHECK (geometrytype(point_geom) = > 'POINT'::text OR point_geom IS NULL) > > But the layer does not display. In the mapfile, it is the last layer to > be declared, so it should be rendered last (on top), correct? > > Another layer that shows labels does work. The syntax for the layer is > the same, leading me to believe that my mapfile syntax is ok. The > working layer's underlying table's geometry column is MULTIPOLYGON > instead of POINT. Could that be the problem? > > Thanks. > > - -- > Aaron Craig > mercutio at pobox.com > > =========================================================== > Get Firefox! > http://www.spreadfirefox.com/?q=affiliates&id=0&t=1 > =========================================================== > > > - -=-=- > I am but mad north-northwest: when the wind is southerly I know a hawk > from a handsaw. --Hamlet, II:2 > - -=-=- > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.4 (GNU/Linux) > Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org > > iD8DBQFB9iS7oyEQRcU83p4RAjIaAKCHW/NKMTrRueEz3NGBBBxSTqqX/ACcCGYi > z4jh9xXhwvQyLvbPB4AC2gQ= > =DhU0 > -----END PGP SIGNATURE----- > -- ------------------------------------------------------------ Julien-Samuel Lacroix jlacroix at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ ------------------------------ Date: Thu, 27 Jan 2005 06:38:25 -0500 From: William Bronsema Subject: Re: Zoom to custom extent - PHP Kevin, PHP variables are case sensitive. I just took a quick peek at the code you sent me earlier. Your app uses $http_form_vars not $HTTP_FORM_VARS. Try changing to $http_form_vars and let me know how it goes. Regards, Bill ________________________________________________ William A. Bronsema, C.E.T. Applications and Software Development, DM Solutions Group Inc. > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On > Behalf Of Kevin Grootendorst > Sent: January 26, 2005 3:42 PM > To: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] Zoom to custom extent - PHP > > Bill, > I added that code, right before the IF statement. > There was no output... > Does that tell us that ($HTTP_FORM_VARS) is null? > ? > > > On Wed, 26 Jan 2005 15:20:01 -0500, William Bronsema > wrote: > > >Kevin, > > > >It sounds like $HTTP_FORM_VARS['doQuickZoom'] is not being set. > > > >Add this: > >echo '
';
> >print_r( $HTTP_FORM_VARS );
> >echo '
'; > > > >just before the if statement and send me the output for both an intial > page > >load and quickzoom page load. This will tell us exactly what is being > set > >(or not set ;) ). > > > >Regards, > >Bill > > > > > > > >________________________________________________ > >William A. Bronsema, C.E.T. > >Applications and Software Development, > >DM Solutions Group Inc. > > > > > > > >> -----Original Message----- > >> From: Kevin Grootendorst [mailto:kgrootendorst at BAIRD.COM] > >> Sent: January 26, 2005 3:12 PM > >> To: MAPSERVER-USERS at LISTS.UMN.EDU; William Bronsema > >> Subject: Re: Zoom to custom extent - PHP > >> > >> Bill, > >> OK. This makes sense. > >> > >> But, using the following statement: > >> If ( isset( $HTTP_FORM_VARS['doQuickZoom']) && $HTTP_FORM_VARS > >> ['doQuickZoom'] == "1" ) > >> This returns a false, and the QuickZoom php code is not executed. > >> > >> Using this statement: > >> If ( isset( $HTTP_FORM_VARS['doQuickZoom']) && $HTTP_FORM_VARS > >> ['doQuickZoom'] == "" ) > >> Also returns a false. > >> > >> Using this statement: > >> If ($HTTP_FORM_VARS['doQuickZoom'] == "") > >> Returns a TRUE - and the php code is executed. But the map does not > draw > >> to the desired extents. It just refreshes the current map extent. > >> > >> Thanks. > >> > >> Kevin > >> > >> > >> On Wed, 26 Jan 2005 14:52:35 -0500, William Bronsema > >> wrote: > >> > >> >Kevin, > >> > > >> >doQuickZoom is supposed to go back to "". echo > >> >$HTTP_FORM_VARS['doQuickZoom'] before your "If ( isset( > >> >$HTTP_FORM_VARS['doQuickZoom'])...." statement to see what I mean. It > >> >should only echo 1 after a quick zoom is called. You only want it to > be > >> 1 > >> >when you want to do a quick zoom. Make sense? > >> > > >> >Is the PHP code being called to perform the quick zoom and the map is > >> just > >> >not zooming? Or is the PHP code not being called? > >> > > >> >Regards, > >> >Bill > >> > > >> >________________________________________________ > >> >William A. Bronsema, C.E.T. > >> >Applications and Software Development, > >> >DM Solutions Group Inc. > >> > ------------------------------ Date: Thu, 27 Jan 2005 06:31:16 -0600 From: Eduin Carrillo Subject: Licencing changes? I'm curious. A Geomatic Investigation Group from Colombia has announced that mapserver will cost 1500 dollars after January 12. I'm really surprised with this "news". This is a joke! Take a look: "Mapserver no es gratis - A partir de enero 12, MapServer cuesta 1500 d?lares." http://albatros.uis.edu.co/~pagina/grupos/geomatica/inicio.php?p=experiencia.htm What world they live? Plop! ===== Eduin Yesid Carrillo Vega yecarrillo at yahoo.com COLOMBIA _________________________________________________________ Do You Yahoo!? Informaci?n de Estados Unidos y Am?rica Latina, en Yahoo! Noticias. Vis?tanos en http://noticias.espanol.yahoo.com ------------------------------ Date: Thu, 27 Jan 2005 08:23:02 -0500 From: Lowell Filak Subject: Re: Converting lat/long distance to miles. The following message was sent by Camden Daily on Wed, 26 Jan 2005 16:15:38 -0600. > Ok. I had axed all my projection blocks because I'd converted all my > shapefiles to lat/long (epsg:4326) using ogr2ogr, so I figured I > didn't need them. Should I still add a projection block to the map > and each layer? > > My map file has a 'units' set to dd, since that is how I set my > extents (and I need to set them that way, since I'm centering off a > given lat/long point in mapscript). > > Could I set the extents in mapscript using dd, and then change the > units to miles for my distance calculations? Camden, I don't think it is possible to just change the units to miles for a DD projection, but I've never tried that.? However, being that all your layers and map are epsg:4326, temporarily assigning another epsg code to the map and units to miles with each layer staying epsg:4326 shouldn't be to difficult. Lowell ------------------------------ Date: Thu, 27 Jan 2005 13:47:51 -0000 From: Benjamin Lloyd-Hughes Subject: Aggregate query Hi I'm using the cgi mapserver in NQUERY mode to extract values within a user defined extent from a point shape file. The query works fine in so much that it returns the desired data and dumps this into the specifed template. So far so good... But what I really want to obtain is the average of these values. I've been scratching my head and thought I might be able to do something using the EVAL() javascript function but I've not had any joy. I would be very grateful I someone could point me in the direction of a solution. I'm a bit of a newbie so please be gentle - it just feels like this must be the sort of problem people encounter all the time. Cheers, Ben ------------------------------ Date: Thu, 27 Jan 2005 07:50:50 -0600 From: Alex Chimarios Subject: layers are not drawn Hi, I am trying to port mapscript to arm-linux for iPAQ PDA in order to create a demo application loading just one map. I have cross-compiled for arm-linux the following libraries : proj-4.4.7 gdal-1-1-9 freetype2 gd-2.0.25 with png, jpeg and freetype support I have used libpng ,lipjpeg, libX11 and libxpm from binaries coming with Familiar Linux distro for PDA. Finally I cross-compiled mapserver and mapscript. However, when I try to run a simple program in mapscript, the map is drwan without any layers on it!!! Just the background . Can you give me a tip ? I think it may be a lib error. Which lib is responsible if layers are not drawn ? p.s : this is my map file : MAP NAME Mediteranean STATUS ON SIZE 600 600 EXTENT 2.5256 21.5595 34.1734 53.2078 SHAPEPATH "/root/gistest" IMAGECOLOR 50 200 200 IMAGETYPE PNG INTERLACE ON PROJECTION "init=epsg:4326" END WEB IMAGEPATH "/root/" IMAGEURL "/root/" END LAYER NAME "cities" STATUS ON DATA cities TYPE POINT PROJECTION "init=epsg:4326" END LABELITEM "NAME" CLASS STYLE COLOR 255 255 0 SYMBOL "/root/gistest/ctyhwy.png" END LABEL COLOR 255 255 0 SIZE tiny #FONT arial POSITION CL PARTIALS TRUE ANTIALIAS TRUE MINDISTANCE 30 BUFFER 1 END END END ------------------------------ Date: Thu, 27 Jan 2005 05:43:22 -0800 From: neelima Subject: Displaying Text Objects --0-2091289851-1106833402=:65855 Content-Type: text/plain; charset=us-ascii Helo, I am doing my thesis, in which i have created a tool that can dynamically create a mapfile for mapinfo professional. Now my problem is, i am not able to display text object in the browser , all the text poperties are perfectly extracted to the map file but they are not being displayed in the browser. So, just wanted to know if there is any possiblity to display text object in the browser. Thanking you, Neelima --------------------------------- Do you Yahoo!? Yahoo! Mail - You care about security. So do we. --0-2091289851-1106833402=:65855 Content-Type: text/html; charset=us-ascii
Helo,
I am doing my thesis, in which i have created a tool that can dynamically create a mapfile for mapinfo professional.
Now my problem is,  i am not able to display text object in the browser , all the text poperties are perfectly extracted to the map file but they are not being displayed in the browser. So, just wanted to know if there is any possiblity to display text object in the browser.
Thanking you,
Neelima


Do you Yahoo!?
Yahoo! Mail - You care about security. So do we. --0-2091289851-1106833402=:65855-- ------------------------------ Date: Thu, 27 Jan 2005 09:00:05 -0500 From: Steve Lehr Subject: Re: Solution -- PHP Highlight list of Parcels Passed In - Solution This is a multi-part message in MIME format. ------=_NextPart_000_002B_01C5044E.97F4A500 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Abe: Thanks again for the help. I ended up getting the highligting to work -- with your suggestions, though I thought I would be smart and change the QUERYMAP style to selected - not so smart, after reading the STYLE options for QUERYMAP it highlighted the found parcels just as it did not found parcels as defined in the layer definition... so for quite awhile I did not see that I had found the 2 shapes it has said it found (the selected sytle option defaults to layer queried definition - and thus it just rendered the green line as it did for the other parcels not found in the query, but as found in the layer itself). Anyway, changed that back to hilight as you said and it worked fine. I searched the emails pretty hard to find a way to render the highlighted shapes a little better, Ken from DNR was the only post I could find. Then I thought about it some more and derived a much simpiler solution ... set up a new layer, create a class with an expression, then send in the expression variable or set the expression in PHP however you choose to operate (i.e. cgi or scripting). i.e. CLASSITEM ID CLASS EXPRESSION /%list%/ #NOTE var set in via CGI would be list --> ....&list=1|2|3&.. or $new_expression = "/".$list."/"; $class->setexpression($new_expression); No querymap needed and much better control of layer formatting. Additionally, I can continue to pass the variable $list around (containing list of parcels) and then let the user browse my map with the list of parcels highlighted and peek and poke at other data. And of course add to the list or cull from the list. Thanks again for the help of this tremendous list! Steven Lehr Assistant Professor Freshmen Program College of Engineering Embry-Riddle Aeronautical University (LB159) 600 S. Clyde Morris Blvd. Daytona Beach, FL 32114-3900 386-226-7740 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Abe Gillespie Sent: Sunday, January 23, 2005 2:39 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] PHP Highlight list of Parcels Passed In Um ... yeah, it's late and I'm tired. Please replace "ampersand" with "at symbol" at the appropriate place. :) -Abe On Jan 23, 2005, at 1:44 AM, Abe Gillespie wrote: Ok, since this list has been so helpful and generous to me in the past, here is an exhaustive example. I hope this will finally get you going. Disclaimer: I'm doing this all from memory and w/o testing so there may be a few errors. Setup a map file like this: MAP NAME "Parcel Query" STATUS on EXTENT xmin ymin xmax ymax SIZE 300 300 SHAPEPATH "/data_path" IMAGETYPE png IMAGECOLOR 255 255 255 QUERYMAP STYLE hilite COLOR 255 0 0 END LAYER NAME "Parcels" DATA "parcels" CLASS OUTLINECOLOR 0 255 0 END TEMPLATE "x" END END Setup a web page like this: getLayerByName("parcels"); // Query. $layer->queryByAttributes("", "/".$parcel_ids."/", MS_MULTIPLE); // If you want to avoid errors when no matches are found use the ampersand // in the above statement like this: @$layer->queryByAttributes(); // Render an image and get its URL. $img = $map->drawQuery(); $url = $img->saveWebImage(MS_PNG, 1, 1, 0); $img->free(); ?> getNumResults() > 0) echo $layer->getNumResults()." parcels found."; else echo "No parcels found."; ?> Now that I look at it, the last thing you may have been missing was the mapObj::queryMap() method. Anyhow, I hope this helps. -Abe On Jan 22, 2005, at 10:07 PM, Steve Lehr wrote: Abe: I appreciate the help, still not getting it though. I'm wondering if I need to draw out the map after rendering? I've sceen other posts but no real solutions... I'll start from scratch rather then trying to reuse something I have. If anyone else has a more complete example I'd really appreciate seeing it. Thanks Steven Lehr Assistant Professor Freshmen Program College of Engineering Embry-Riddle Aeronautical University (LB159) 600 S. Clyde Morris Blvd. Daytona Beach, FL 32114-3900 386-226-7740 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Abe Gillespie Sent: Saturday, January 22, 2005 8:22 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] PHP Highlight list of Parcels Passed In Something else I noticed. You shouldn't even have to setup a separate layer to show queried parcels (though there are ways to do this). I suggest starting out with one layer that renders queried and non-queried parcels at the same time. Once you get the hang of that then you can do two different layers (if you still even want to). Make the layer like this: LAYER NAME "parcels" DATA "parcels" STATUS on TYPE polygon CLASS OUTLINECOLOR 0 255 0 END TEMPLATE "x" # Must be present to query on (though "x" means absolutely nothing). END The above layer will render all your parcels green outline with hollow fill. Then when you use the PHP code to query it will render your queried parcels red. This assumes you have QUERYMAP setup correctly. -Abe On Jan 22, 2005, at 7:12 PM, Steve Lehr wrote: Abe I've never used the QUERY MAP before, I tried putting it in the layer and it did not like that? My initial layer looks like: I changed my code to pass Pipe delimited. But I'm not quite certian I'm still getting what I need to do to my .map. Thanks for the help..below is the layer repeated my EXPRESSION is trashed I realize. LAYER NAME "selected_parcels" DATA parcels STATUS DEFAULT TYPE POLYGON CLASSITEM QPID CLASS EXPRESSION "/%parcels%/" COLOR 255 0 0 END END Steven Lehr Assistant Professor Freshmen Program College of Engineering Embry-Riddle Aeronautical University (LB159) 600 S. Clyde Morris Blvd. Daytona Beach, FL 32114-3900 386-226-7740 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Abe Gillespie Sent: Saturday, January 22, 2005 7:05 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] PHP Highlight list of Parcels Passed In For the red you need to setup the QUERYMAP. For the PHP it will be something like this: $target = use_appropriate_string_func_to_conver_semi_to_pipe($parcels); // $target should look like "1|2|3|4" ... where the numbers are the IDs. $layer = $map->getLayerByName("parcels"); $layer->queryByAttributes("parcel_id_field", "/".$target."/", MS_MULTIPLE); Also, don't forget to add the TEMPLATE "x" tag in your LAYER definition. I'm not a RegEx expert, so someone please put me in check if I'm leading Steven astray. -Abe On Jan 22, 2005, at 6:37 PM, Steve Lehr wrote: I'm trying to write some PHP that I can send extents and list of parcels to get it to highlight the parcels. I'd like to highlight all the found parcels in RED. My php gets a variable by post called parcels and contains at this time a semi colon delimited list of ids in the attribute column QPID of the parcels.dbf. LAYER NAME "selected_parcels" DATA parcels STATUS DEFAULT TYPE POLYGON CLASSITEM QPID CLASS EXPRESSION "/%parcels%/" COLOR 255 0 0 END END I've got my extents. I've got the list of parcels. Now I want to highlight the list of parcels with something like the below. But I have to do something in php to take that ; delimited list and the turn on all the matching attributes. (I belive its a QUERYMAP with MULTIPLE_SELECT) but I'm having trouble getting my brain around what I need to code - might someone have a sample. Thanks Steven Lehr Assistant Professor Freshmen Program College of Engineering Embry-Riddle Aeronautical University (LB159) 600 S. Clyde Morris Blvd. Daytona Beach, FL 32114-3900 386-226-7740 ------=_NextPart_000_002B_01C5044E.97F4A500 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Abe:
 
Thanks=20 again for the help.  I ended up getting the highligting to work -- = with=20 your suggestions, though I thought I would be smart and change the = QUERYMAP=20 style to selected - not so smart, after reading the STYLE options = for=20 QUERYMAP it highlighted the found parcels just as it did = not found=20 parcels as defined in the layer definition... so for quite awhile I = did not=20 see that I had found the 2 shapes it has said it found (the selected = sytle=20 option defaults to layer queried definition - and thus it just rendered = the=20 green line as it did for the other parcels not found in the query, but = as found=20 in the layer itself).  Anyway, changed that back to hilight as you = said and=20 it worked fine.
 
I=20 searched the emails pretty hard to find a way to render the highlighted = shapes a=20 little better, Ken from DNR was the only post I could=20 find.
 
Then I=20 thought about it some more and derived a much simpiler = solution ...=20 set up a new layer, create a class with an expression, then send in the=20 expression variable or set the expression in PHP however you choose to = operate=20 (i.e. cgi or scripting).  i.e. 
 
CLASSITEM ID
CLASS
 =20 EXPRESSION /%list%/     #NOTE var set in via = CGI would=20 be list -->  ...&list=3D1|2|3&..
 
or
$new_expression =3D "/".$list."/";
$class->setexpression($new_expression);
 
No=20 querymap needed and much better control of layer formatting. =20 Additionally, I can continue to pass the variable $list around = (containing list=20 of parcels) and then let the user browse my map with the list of parcels = highlighted and peek and poke at other data.  And of course add to = the list=20 or cull from the list.
 
Thanks=20 again for the help of this tremendous list!
 
Steven = Lehr
Assistant=20 Professor
Freshmen Program
College of Engineering
Embry-Riddle=20 Aeronautical University (LB159)
600 S. Clyde Morris Blvd.
Daytona = Beach,=20 FL 32114-3900
386-226-7740
-----Original Message-----
From: UMN MapServer = Users List=20 [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Abe=20 Gillespie
Sent: Sunday, January 23, 2005 2:39 = AM
To:=20 MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: = [UMN_MAPSERVER-USERS] PHP=20 Highlight list of Parcels Passed In

Um ... yeah, = it's late=20 and I'm tired. Please replace "ampersand" with "at symbol" at the = appropriate=20 place. :)

-Abe

On Jan 23, 2005, at 1:44 AM, Abe = Gillespie=20 wrote:

Ok, since this list has been so helpful and = generous=20 to me in the past, here is an exhaustive example. I hope this will = finally=20 get you going. Disclaimer: I'm doing this all from memory and w/o = testing so=20 there may be a few errors.

Setup a map file like = this:

MAP
NAME "Parcel=20 Query"
STATUS on
EXTENT xmin ymin xmax ymax
SIZE 300=20 300
SHAPEPATH "/data_path"
IMAGETYPE png
IMAGECOLOR 255 255 = 255
=


QUERYMAP
S= TYLE=20 hilite
COLOR 255 0 0
END


LAYER
NAME "Parcels"
DATA=20 "parcels"
CLASS
OUTLINECOLOR 0 255 0
END
TEMPLATE=20 "x"
END
END

Setup a web page like=20 this:

<html>
<head>
<?
$parcel_ids = =3D=20 "1|2|3|4|5";

if (PHP_OS =3D=3D "WINNT" || PHP_OS =3D=3D=20 = "WIN32")
dl("php_mapscript.dll");
else
dl("php_mapscript.so");
$map=20 =3D ms_newMapObj("parcels.map");
$layer =3D=20 $map->getLayerByName("parcels");

//=20 Query.
$layer->queryByAttributes("", "/".$parcel_ids."/",=20 MS_MULTIPLE);
// If you want to avoid errors when no matches are = found=20 use the ampersand
// in the above statement like this:=20 @$layer->queryByAttributes();

// Render an image and get = its=20 URL.
$img =3D $map->drawQuery();
$url =3D = $img->saveWebImage(MS_PNG,=20 1, 1,=20 = 0);
$img->free();
?>
</head>
<body>
<= img=20 src=3D"<? echo $url; ?>" />
<?
if=20 ($layer->getNumResults() > 0)
echo = $layer->getNumResults()."=20 parcels found.";
else
echo "No parcels=20 found.";
?>
</body>
</html>

Now that = I look=20 at it, the last thing you may have been missing was the = mapObj::queryMap()=20 method. Anyhow, I hope this helps.

-Abe

On = Jan 22,=20 2005, at 10:07 PM, Steve Lehr wrote:

Abe:

I appreciate the help, still not getting it=20 though. I'm wondering if I need
to draw out the map after = rendering?=20 I've sceen other posts but no real
solutions...

I'll = start from=20 scratch rather then trying to reuse something I have. If
anyone = else=20 has a more complete example I'd really appreciate seeing=20 it.

Thanks

Steven Lehr
Assistant = Professor
Freshmen=20 Program
College of Engineering
Embry-Riddle Aeronautical = University=20 (LB159)
600 S. Clyde Morris Blvd.
Daytona Beach, FL=20 32114-3900
386-226-7740

-----Original = Message-----
From: UMN=20 MapServer Users List = [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On
Behalf Of=20 Abe Gillespie
Sent: Saturday, January 22, 2005 8:22 PM
To:=20 MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: = [UMN_MAPSERVER-USERS] PHP=20 Highlight list of Parcels Passed
In


Something else I = noticed. You shouldn't even have to setup a separate
layer to = show=20 queried parcels (though there are ways to do this). I
suggest = starting=20 out with one layer that renders queried and
non-queried parcels = at the=20 same time. Once you get the hang of that
then you can do two = different=20 layers (if you still even want to). Make
the layer like=20 this:

LAYER
NAME "parcels"
DATA "parcels"
STATUS=20 on
TYPE polygon
CLASS
OUTLINECOLOR 0 255 = 0
END
TEMPLATE "x"=20 # Must be present to query on (though "x" means
absolutely=20 nothing).
END

The above layer will render all your = parcels green=20 outline with hollow
fill. Then when you use the PHP code to = query it=20 will render your
queried parcels red. This assumes you have = QUERYMAP=20 setup correctly.

-Abe

On Jan 22, 2005, at 7:12 PM, = Steve=20 Lehr wrote:

Abe I've never used the QUERY MAP before, I tried = putting it=20 in the
layer
and it did not like that?

My initial = layer=20 looks like:

I changed my code to pass Pipe = delimited.

But=20 I'm not quite certian I'm still getting what I need to do to=20 my
.map.

Thanks for the help..below is the layer = repeated my=20 EXPRESSION is
trashed I
realize.

LAYER
NAME "selected_parcels"
DATA = parcels
STATUS=20 DEFAULT
TYPE POLYGON
CLASSITEM = QPID
CLASS
EXPRESSION=20 "/%parcels%/"
COLOR 255 0=20 0
END
END


Steven Lehr
Assistant = Professor
Freshmen Program
College of = Engineering
Embry-Riddle=20 Aeronautical University (LB159)
600 S. Clyde Morris = Blvd.
Daytona=20 Beach, FL 32114-3900
386-226-7740

-----Original=20 Message-----
From: UMN MapServer Users List=20 [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On
Behalf Of Abe=20 Gillespie
Sent: Saturday, January 22, 2005 7:05 PM
To:=20 MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: = [UMN_MAPSERVER-USERS] PHP=20 Highlight list of Parcels Passed
In


For the red = you need=20 to setup the QUERYMAP. For the PHP it will be
something like=20 this:

$target =3D=20 = use_appropriate_string_func_to_conver_semi_to_pipe($parcels);
//=20 $target should look like "1|2|3|4" ... where the numbers are=20 the
IDs.
$layer =3D=20 = $map->getLayerByName("parcels");
$layer->queryByAttributes("parc= el_id_field",=20 "/".$target."/",
MS_MULTIPLE);

Also, don't forget to = add the=20 TEMPLATE "x" tag in your LAYER
definition.

I'm not a = RegEx=20 expert, so someone please put me in check if I'm
leading = Steven=20 astray.

-Abe

On Jan 22, 2005, at 6:37 PM, Steve = Lehr=20 wrote:

I'm trying to write some PHP that I can send extents = and=20 list of
parcels to
get it to highlight the = parcels.

I'd=20 like to highlight all the found parcels in RED.

My php = gets a=20 variable by post called parcels and contains at this
time = a
semi=20 colon delimited list of ids in the attribute column QPID of=20 the
parcels.dbf.

LAYER
NAME = "selected_parcels"
DATA=20 parcels
STATUS DEFAULT
TYPE POLYGON
CLASSITEM=20 QPID
CLASS
EXPRESSION "/%parcels%/"
COLOR 255 0=20 0
END
END


I've got my extents. I've got the = list of=20 parcels. Now I want to
highlight
the list of parcels = with=20 something like the below. But I have to do
something in php = to take=20 that ; delimited list and the turn on all the
matching = attributes.=20 (I belive its a QUERYMAP with MULTIPLE_SELECT)
but = I'm
having=20 trouble getting my brain around what I need to code -=20 might
someone
have a sample.

Thanks

Steven = Lehr
Assistant Professor
Freshmen Program
College of=20 Engineering
Embry-Riddle Aeronautical University = (LB159)
600 S.=20 Clyde Morris Blvd.
Daytona Beach, FL=20 = 32114-3900
386-226-7740



------=_NextPart_000_002B_01C5044E.97F4A500-- ------------------------------ Date: Thu, 27 Jan 2005 08:07:55 -0600 From: Kevin Grootendorst Subject: Re: Zoom to custom extent - PHP Bill, OK, now we're getting somewhere. I included the following before the if statement: echo '
';
print_r ($http_form_vars);
echo '
'; On a normal page load, the following is returned: Array ( [0] => ) When I select the 'QuickZoom' feature, I receive the following: Array ( [WMSlayers] => 1 [layer_status] => Array ( [0] => New York Counties [1] => Ontario Municipalities ) [ViewRegion] => 7200000,833270,7291840,894520 [PrevStateKey] => BBOX=7121000,814428.33333333,7600000,1133571.6666667|SRS=init%3Depsg% 3A50000|MAPSIZE=600,400|LAYERS=0,1 [NotFirstLoad] => 1 [RosaMode] => 1 [ROSA_CMD] => [INPUT_TYPE] => [INPUT_COORD] => [QueryString] => [doQuickZoom] => 1 ) Note that the page just refreshes with the current extents. It did not zoom to the municipality I selected. However, the $adExtents[n] variables are being set to the right extents. Kevin On Thu, 27 Jan 2005 06:38:25 -0500, William Bronsema wrote: >Kevin, > >PHP variables are case sensitive. I just took a quick peek at the code you >sent me earlier. Your app uses $http_form_vars not $HTTP_FORM_VARS. > >Try changing to $http_form_vars and let me know how it goes. > >Regards, >Bill > > >________________________________________________ >William A. Bronsema, C.E.T. >Applications and Software Development, >DM Solutions Group Inc. > > > > >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On >> Behalf Of Kevin Grootendorst >> Sent: January 26, 2005 3:42 PM >> To: MAPSERVER-USERS at lists.umn.edu >> Subject: Re: [UMN_MAPSERVER-USERS] Zoom to custom extent - PHP >> >> Bill, >> I added that code, right before the IF statement. >> There was no output... >> Does that tell us that ($HTTP_FORM_VARS) is null? >> ? >> >> >> On Wed, 26 Jan 2005 15:20:01 -0500, William Bronsema >> wrote: >> >> >Kevin, >> > >> >It sounds like $HTTP_FORM_VARS['doQuickZoom'] is not being set. >> > >> >Add this: >> >echo '
';
>> >print_r( $HTTP_FORM_VARS );
>> >echo '
'; >> > >> >just before the if statement and send me the output for both an intial >> page >> >load and quickzoom page load. This will tell us exactly what is being >> set >> >(or not set ;) ). >> > >> >Regards, >> >Bill >> > >> > >> > >> >________________________________________________ >> >William A. Bronsema, C.E.T. >> >Applications and Software Development, >> >DM Solutions Group Inc. >> > >> > >> > >> >> -----Original Message----- >> >> From: Kevin Grootendorst [mailto:kgrootendorst at BAIRD.COM] >> >> Sent: January 26, 2005 3:12 PM >> >> To: MAPSERVER-USERS at LISTS.UMN.EDU; William Bronsema >> >> Subject: Re: Zoom to custom extent - PHP >> >> >> >> Bill, >> >> OK. This makes sense. >> >> >> >> But, using the following statement: >> >> If ( isset( $HTTP_FORM_VARS['doQuickZoom']) && $HTTP_FORM_VARS >> >> ['doQuickZoom'] == "1" ) >> >> This returns a false, and the QuickZoom php code is not executed. >> >> >> >> Using this statement: >> >> If ( isset( $HTTP_FORM_VARS['doQuickZoom']) && $HTTP_FORM_VARS >> >> ['doQuickZoom'] == "" ) >> >> Also returns a false. >> >> >> >> Using this statement: >> >> If ($HTTP_FORM_VARS['doQuickZoom'] == "") >> >> Returns a TRUE - and the php code is executed. But the map does not >> draw >> >> to the desired extents. It just refreshes the current map extent. >> >> >> >> Thanks. >> >> >> >> Kevin >> >> >> >> >> >> On Wed, 26 Jan 2005 14:52:35 -0500, William Bronsema >> >> wrote: >> >> >> >> >Kevin, >> >> > >> >> >doQuickZoom is supposed to go back to "". echo >> >> >$HTTP_FORM_VARS['doQuickZoom'] before your "If ( isset( >> >> >$HTTP_FORM_VARS['doQuickZoom'])...." statement to see what I mean. It >> >> >should only echo 1 after a quick zoom is called. You only want it to >> be >> >> 1 >> >> >when you want to do a quick zoom. Make sense? >> >> > >> >> >Is the PHP code being called to perform the quick zoom and the map is >> >> just >> >> >not zooming? Or is the PHP code not being called? >> >> > >> >> >Regards, >> >> >Bill >> >> > >> >> >________________________________________________ >> >> >William A. Bronsema, C.E.T. >> >> >Applications and Software Development, >> >> >DM Solutions Group Inc. >> >> > ------------------------------ Date: Thu, 27 Jan 2005 09:10:00 -0500 From: "Palanisamy, Giri" Subject: PHP-Mapserver query result Hi List, Sorry for this repeated postings, but I still could not figure out a solution, I would really appreciate if any one can give me some idea for the problem discussed below. I just got the php-mapscript (rosa) GMap sample application running, I would like to display the query results in a new page, the sample application does it in the same page (when I press the "info" button and click some points on the map it displays the city names in the same page)? I could achieve this in JBox-mapscript application by setting the TEMPLATE in the class object in the .map file as LAYER NAME fluxnet_ll_use METADATA "DESCRIPTION" "Sites" "RESULT_FIELDS" "SITE_LABEL NETWORK COUNTRY STATUS IGBPCLSS CLIMATE LONG LAT " END GROUP MODIS TYPE POINT DATA f264 STATUS DEFAULT PROJECTION "proj=3Dlonglat" "ellps=3DGRS80" "no_defs" END =20 CLASS NAME 'FLUXNET Sites' COLOR 0 0 255 SYMBOL 'triangle' SIZE 10 TEMPLATE "fluxsites.phtml" =20 END =20 TOLERANCE 5 =20 END I would really appreciate if anyone can tell me how to do this with the php-mapscript (rosa)? Thanks Giri ------------------------------ Date: Thu, 27 Jan 2005 09:07:36 -0500 From: Jeff Portwine Subject: Re: layers are not drawn I notice you specified your paths as /root/... I am not familiar with your OS or how you've setup your filesystem and thus I am not sure if /root is referring to the web server root or your actual root directory but just in case I thought I'd mention to make sure that those directories are readable by the "web user"... whether that user is nobody (as is often the case with apache) or some other user name. I think if those permissions are bad it would cause the behavior you described... I'm still a newbie so I'll defer to the experts for any suggestions beyond that :) -Jeff ----- Original Message ----- From: "Alex Chimarios" To: Sent: Thursday, January 27, 2005 8:50 AM Subject: [UMN_MAPSERVER-USERS] layers are not drawn > Hi, > > I am trying to port mapscript to arm-linux for iPAQ PDA in order to create > a > demo application loading just one map. > > I have cross-compiled for arm-linux the following libraries : > proj-4.4.7 > gdal-1-1-9 > freetype2 > gd-2.0.25 with png, jpeg and freetype support > > I have used libpng ,lipjpeg, libX11 and libxpm from binaries coming with > Familiar Linux distro for PDA. > > Finally I cross-compiled mapserver and mapscript. > > However, when I try to run a simple program in mapscript, the map is drwan > without any layers on it!!! Just the background . > > Can you give me a tip ? I think it may be a lib error. Which lib is > responsible if layers are not drawn ? > > > p.s : this is my map file : > > MAP > > NAME Mediteranean > > STATUS ON > SIZE 600 600 > EXTENT 2.5256 21.5595 34.1734 53.2078 > > > > SHAPEPATH "/root/gistest" > > > IMAGECOLOR 50 200 200 > IMAGETYPE PNG > INTERLACE ON > > > > PROJECTION > "init=epsg:4326" > END > WEB > IMAGEPATH "/root/" > IMAGEURL "/root/" > END > > > > > LAYER > > NAME "cities" > > STATUS ON > DATA cities > TYPE POINT > PROJECTION > "init=epsg:4326" > END > > LABELITEM "NAME" > > CLASS > > > STYLE > COLOR 255 255 0 > > SYMBOL "/root/gistest/ctyhwy.png" > END > > LABEL > COLOR 255 255 0 > SIZE tiny > #FONT arial > POSITION CL > PARTIALS TRUE > ANTIALIAS TRUE > MINDISTANCE 30 > BUFFER 1 > END > END > END > ------------------------------ Date: Thu, 27 Jan 2005 08:14:23 -0600 From: Kevin Grootendorst Subject: Re: PHP-Mapserver query result Giri, I don't know exactly how to solve your problem, but have you tried using MapLab to create an application? By default, querying a MapLab application will launch a separate window with the query results. Maybe that might help? Kevin On Thu, 27 Jan 2005 09:10:00 -0500, Palanisamy, Giri wrote: >Hi List, > >Sorry for this repeated postings, but I still could not figure out a >solution, I would really appreciate if any one can give me some idea for >the problem discussed below. > >I just got the php-mapscript (rosa) GMap sample application running, I >would like to display the query results in a new page, the sample >application does it in the same page (when I press the "info" button and >click some points on the map it displays the city names in the same >page)? I could achieve this in JBox-mapscript application by setting the >TEMPLATE in the class object in the .map file as > >LAYER > NAME fluxnet_ll_use > METADATA > "DESCRIPTION" "Sites" > "RESULT_FIELDS" "SITE_LABEL NETWORK COUNTRY STATUS IGBPCLSS CLIMATE >LONG LAT " > END > GROUP MODIS > TYPE POINT > DATA f264 > STATUS DEFAULT > PROJECTION > "proj=longlat" > "ellps=GRS80" > "no_defs" > END > > CLASS > NAME 'FLUXNET Sites' > COLOR 0 0 255 > SYMBOL 'triangle' > SIZE 10 > TEMPLATE "fluxsites.phtml" > END > > TOLERANCE 5 >END > > >I would really appreciate if anyone can tell me how to do this with the >php-mapscript (rosa)? > >Thanks > >Giri ------------------------------ Date: Thu, 27 Jan 2005 09:22:14 -0500 From: "Palanisamy, Giri" Subject: Re: PHP-Mapserver query result Kevin, Thanks for the suggestion, but I have almost customized my demo application with the help of GMap sample app, and this is the final part I need to find out! Giri -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Kevin Grootendorst Sent: Thursday, January 27, 2005 9:14 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] PHP-Mapserver query result Giri, I don't know exactly how to solve your problem, but have you tried using MapLab to create an application? By default, querying a MapLab application will launch a separate window with the query results. Maybe that might help? Kevin On Thu, 27 Jan 2005 09:10:00 -0500, Palanisamy, Giri wrote: >Hi List, > >Sorry for this repeated postings, but I still could not figure out a >solution, I would really appreciate if any one can give me some idea for >the problem discussed below. > >I just got the php-mapscript (rosa) GMap sample application running, I >would like to display the query results in a new page, the sample >application does it in the same page (when I press the "info" button and >click some points on the map it displays the city names in the same >page)? I could achieve this in JBox-mapscript application by setting the >TEMPLATE in the class object in the .map file as > >LAYER > NAME fluxnet_ll_use > METADATA > "DESCRIPTION" "Sites" > "RESULT_FIELDS" "SITE_LABEL NETWORK COUNTRY STATUS IGBPCLSS CLIMATE >LONG LAT " > END > GROUP MODIS > TYPE POINT > DATA f264 > STATUS DEFAULT > PROJECTION > "proj=3Dlonglat" > "ellps=3DGRS80" > "no_defs" > END > > CLASS > NAME 'FLUXNET Sites' > COLOR 0 0 255 > SYMBOL 'triangle' > SIZE 10 > TEMPLATE "fluxsites.phtml" > END > > TOLERANCE 5 >END > > >I would really appreciate if anyone can tell me how to do this with the >php-mapscript (rosa)? > >Thanks > >Giri ------------------------------ Date: Thu, 27 Jan 2005 08:23:05 -0600 From: Mark Adams Subject: Re: Debug Logging On a windows system I have found that adding an environment variable through Control Panel (MS_ERRORFILE = ) seems to work. I must have got that idea from this list at some point.... Cheers. -Mark Adams ------------------------------ Date: Thu, 27 Jan 2005 16:09:27 +0200 From: Alexandros Chimarios Subject: Re: layers are not drawn Thanx for answering Jeff, actually I don't use the mapserv CGI application but Python mapscript. Therefore I dont think so that the problem has to do with the user's permisions. I run everything as a root. There must be a problem with some lib propably. On Thursday 27 January 2005 16:07, Jeff Portwine wrote: > I notice you specified your paths as /root/... I am not familiar with > your OS or how you've setup your filesystem and thus I am not sure if /root > is referring to the web server root or your actual root directory but just > in case I thought I'd mention to make sure that those directories are > readable by the "web user"... whether that user is nobody (as is often the > case with apache) or some other user name. I think if those permissions > are bad it would cause the behavior you described... > > I'm still a newbie so I'll defer to the experts for any suggestions beyond > that :) > > -Jeff > > ----- Original Message ----- > From: "Alex Chimarios" > To: > Sent: Thursday, January 27, 2005 8:50 AM > Subject: [UMN_MAPSERVER-USERS] layers are not drawn > > > Hi, > > > > I am trying to port mapscript to arm-linux for iPAQ PDA in order to > > create a > > demo application loading just one map. > > > > I have cross-compiled for arm-linux the following libraries : > > proj-4.4.7 > > gdal-1-1-9 > > freetype2 > > gd-2.0.25 with png, jpeg and freetype support > > > > I have used libpng ,lipjpeg, libX11 and libxpm from binaries coming with > > Familiar Linux distro for PDA. > > > > Finally I cross-compiled mapserver and mapscript. > > > > However, when I try to run a simple program in mapscript, the map is > > drwan without any layers on it!!! Just the background . > > > > Can you give me a tip ? I think it may be a lib error. Which lib is > > responsible if layers are not drawn ? > > > > > > p.s : this is my map file : > > > > MAP > > > > NAME Mediteranean > > > > STATUS ON > > SIZE 600 600 > > EXTENT 2.5256 21.5595 34.1734 53.2078 > > > > > > > > SHAPEPATH "/root/gistest" > > > > > > IMAGECOLOR 50 200 200 > > IMAGETYPE PNG > > INTERLACE ON > > > > > > > > PROJECTION > > "init=epsg:4326" > > END > > WEB > > IMAGEPATH "/root/" > > IMAGEURL "/root/" > > END > > > > > > > > > > LAYER > > > > NAME "cities" > > > > STATUS ON > > DATA cities > > TYPE POINT > > PROJECTION > > "init=epsg:4326" > > END > > > > LABELITEM "NAME" > > > > CLASS > > > > > > STYLE > > COLOR 255 255 0 > > > > SYMBOL "/root/gistest/ctyhwy.png" > > END > > > > LABEL > > COLOR 255 255 0 > > SIZE tiny > > #FONT arial > > POSITION CL > > PARTIALS TRUE > > ANTIALIAS TRUE > > MINDISTANCE 30 > > BUFFER 1 > > END > > END > > END ------------------------------ Date: Thu, 27 Jan 2005 15:36:16 +0100 From: Nicole Faust Subject: Re: installation problems [was Re: Example Maps] Hello, This are the options that I used, to configure PHP: ./configure --with-gd=/home/n_faust/software/projekt --with-pgsql=/home/n_faust/software/projekt --enable-force-cgi-redirect --enable-fastcgi --prefix=/home/n_faust/software/projekt Are there any options missing? Regards, Nicole On Tue, 25 Jan 2005, Julien-Samuel Lacroix wrote: > Hi, > > Check the installation instruction for your OS: > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScript > > Normally adding --enable-force-cgi-redirect to your configure command > should do the job. ------------------------------ Date: Thu, 27 Jan 2005 15:46:41 +0100 From: Nicole Faust Subject: Re: Example Maps Hello, > I am also using the examples, and I want to make the usa.map work but it doesn't. > Does it work for you? > Did you see anything wrong? > I am working with: > > MapServer version 4.4.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=GDAL INPUT=SHAPEFILE I have still problems display the map, too. I work with: MapServer version 4.2.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE I changed the following path (in the WEB section) in the .MAP file (but it doesn't work anyway): IMAGEPATH "/home/n_faust/software/projekt/htdocs/karten/tmp/" IMAGEURL "/karten/tmp" htdocs is the DocumentRoot of Apache and karten a subdirectory where I stored the .SHP, .SHX and .MAP files. In the tmp subdirectory the mapserver stores the generated image files. This works for .PHTML files but not for .MAP files and I don't know why. Regards, Nicole ------------------------------ Date: Thu, 27 Jan 2005 10:12:58 -0500 From: Abe Gillespie Subject: Re: Debug Logging That's precisely what I needed. Thanks! -Abe On Jan 27, 2005, at 9:23 AM, Mark Adams wrote: > On a windows system I have found that adding an environment variable > through Control Panel (MS_ERRORFILE = ) seems to work. > I > must have got that idea from this list at some point.... > > Cheers. > > -Mark Adams > ------------------------------ Date: Thu, 27 Jan 2005 15:58:40 +0100 From: Nicole Faust Subject: Re: Example Maps Hello, I've got the same problem that I couldn't display the map in my browser. This is the shapepath of the .MAP file: SHAPEPATH "/home/n_faust/software/projekt/htdocs/karten" This is the WEB section of the .MAP file: WEB IMAGEPATH "/home/n_faust/software/projekt/htdocs/karten/tmp/" IMAGEURL"/karten/tmp/" END If I use the .PHTML files instead of the .MAP files, the mapserver generates a output image file, which is stored in the directory named by IMAGEURL. The directory /home/n_faust/software/projekt/htdocs is the DocumentRoot of Apache. Did I made something wrong? Regards, Nicole On Wed, 26 Jan 2005, Ingo Paulsen wrote: > Hello, > > I fixed the problem by replacing the IMAGEURL path with IMAGEPATH entry. > Did you take a look in your /var/www/html/tmp/ directory? Are there any > dynamically created .png files? > > WEB > IMAGEPATH "/var/www/html/tmp/" > IMAGEURL "/var/www/html/tmp/" > END > > I suppose you have installed the shapefiles in /var/www/html/data. > > > Best regards > Ingo > > > > I am also using the examples, and I want to make the usa.map work but > > it doesn't. > > Does it work for you? > > Did you see anything wrong? > > I am working with: > > > > MapServer version 4.4.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > > SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 > > INPUT=GDAL INPUT=SHAPEFILE > > > > So I think that if I have gdal it should recognize .tif files and > > should work. But it doesn't > > ------------------------------ Date: Thu, 27 Jan 2005 10:12:18 -0500 From: Stephen Woodbridge Subject: Re: Aggregate query Benjamin Lloyd-Hughes wrote: > Hi > > I'm using the cgi mapserver in NQUERY mode to extract values within a user > defined extent from a point shape file. The query works fine in so much > that it returns the desired data and dumps this into the specifed template. > So far so good... But what I really want to obtain is the average of these > values. I've been scratching my head and thought I might be able to do > something using the EVAL() javascript function but I've not had any joy. I > would be very grateful I someone could point me in the direction of a > solution. Since you are use a HTML template, I think you are on the right track to do this in Javascript. I would not use an eval though, I would create and array initializer and just populate the values directly into the array. So do something like the following (I will leave the exact syntax up to you to figure out): I think you need to break this into three separate files, ie; header, template and footer so if the file names are header.html, template.heml and footer.html, you would break up the code like this: ========header.html============== ... var num_rows = [nr]; var data = new Array( ========template.html============ [DBASE column_name], ========footer.html============== 0); // probably need the trailing "0" beacue of the comma above ... // now loop through your array using num_rows to compute whatever ================================== I'm a little rusty with my javascript and use of query templates, but this should give you the idea. I am assuming that the mapserver templating will repeat the [DBASE column_name], line once for every row. if this is not right maybe some else will post the correct syntax. -Steve W. ------------------------------ Date: Thu, 27 Jan 2005 10:32:44 -0500 From: Stephen Woodbridge Subject: Re: Debug Logging Also, I think there is a bug in the debug logging or at least a documentation problem on MS 4.4.1 DEBUG ON In the map section, then layer timing information goes to stderr which ends up in the webserver error.log. You can place DEBUG ON in LAYER block(s) but it seems that this sets the global flag and you get the same out as if you put it once in the map section, (ie: you don't get more info by placing it in the LAYER block. LOG "/path/to/log_file.log" then only a single line gets written to the log file for each map regardless of the setting for DEBUG -Steve W. Frank Warmerdam wrote: > On Wed, 26 Jan 2005 19:25:28 -0500, Abe Gillespie wrote: > >>Would someone help me get logging working? I remember there was >>something on this list about bit I can't seem to locate it. >> >>I've got "DEBUG on" for a LAYER and the MAP and I have the LOG path in >>the WEB. But I'm getting nothing. >> >>I would appreciate instructions for both Windows and Linux but am >>working with Windows right now. > > > Abe, > > Does your "mapserv -v" output report DEBUG=MSDEBUG? If not, I don't > think output debug messages is possible. I would add that in at least > some circumstances debug messages go to the error_log file. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > ------------------------------ Date: Thu, 27 Jan 2005 09:58:42 -0600 From: John Goecken Subject: MapInfo and MapServer point location problem I have a map in MapInfo with a street layer and a point layer. The point location shows up correctly in MapInfo. When I create a site with MapServer that uses those layers it moves the point or the line layer. It is now showing the point about .06 miles east of the exact location. I realize this is a small difference but for the project I'm working on it is important. Has anybody ever seen something like this before where MapServer moves a point? Thanks. ------------------------------ Date: Thu, 27 Jan 2005 10:58:14 -0600 From: Kevin Grootendorst Subject: Re: Zoom to custom extent - PHP - SOLVED Bill, Finally, I was able to get my application working properly. After I changed $HTTP_FORM_VARS to $http_form_vars, I moved the code in my app.php file closer to the top of the file. The application works perfectly. Thanks for all your help and your php tips, it's greatly appreciated. Regards, Kevin On Thu, 27 Jan 2005 06:38:25 -0500, William Bronsema wrote: >Kevin, > >PHP variables are case sensitive. I just took a quick peek at the code you >sent me earlier. Your app uses $http_form_vars not $HTTP_FORM_VARS. > >Try changing to $http_form_vars and let me know how it goes. > >Regards, >Bill > > >________________________________________________ >William A. Bronsema, C.E.T. >Applications and Software Development, >DM Solutions Group Inc. > > > > >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On >> Behalf Of Kevin Grootendorst >> Sent: January 26, 2005 3:42 PM >> To: MAPSERVER-USERS at lists.umn.edu >> Subject: Re: [UMN_MAPSERVER-USERS] Zoom to custom extent - PHP >> >> Bill, >> I added that code, right before the IF statement. >> There was no output... >> Does that tell us that ($HTTP_FORM_VARS) is null? >> ? >> >> >> On Wed, 26 Jan 2005 15:20:01 -0500, William Bronsema >> wrote: >> >> >Kevin, >> > >> >It sounds like $HTTP_FORM_VARS['doQuickZoom'] is not being set. >> > >> >Add this: >> >echo '
';
>> >print_r( $HTTP_FORM_VARS );
>> >echo '
'; >> > >> >just before the if statement and send me the output for both an intial >> page >> >load and quickzoom page load. This will tell us exactly what is being >> set >> >(or not set ;) ). >> > >> >Regards, >> >Bill >> > >> > >> > >> >________________________________________________ >> >William A. Bronsema, C.E.T. >> >Applications and Software Development, >> >DM Solutions Group Inc. >> > >> > >> > >> >> -----Original Message----- >> >> From: Kevin Grootendorst [mailto:kgrootendorst at BAIRD.COM] >> >> Sent: January 26, 2005 3:12 PM >> >> To: MAPSERVER-USERS at LISTS.UMN.EDU; William Bronsema >> >> Subject: Re: Zoom to custom extent - PHP >> >> >> >> Bill, >> >> OK. This makes sense. >> >> >> >> But, using the following statement: >> >> If ( isset( $HTTP_FORM_VARS['doQuickZoom']) && $HTTP_FORM_VARS >> >> ['doQuickZoom'] == "1" ) >> >> This returns a false, and the QuickZoom php code is not executed. >> >> >> >> Using this statement: >> >> If ( isset( $HTTP_FORM_VARS['doQuickZoom']) && $HTTP_FORM_VARS >> >> ['doQuickZoom'] == "" ) >> >> Also returns a false. >> >> >> >> Using this statement: >> >> If ($HTTP_FORM_VARS['doQuickZoom'] == "") >> >> Returns a TRUE - and the php code is executed. But the map does not >> draw >> >> to the desired extents. It just refreshes the current map extent. >> >> >> >> Thanks. >> >> >> >> Kevin >> >> >> >> >> >> On Wed, 26 Jan 2005 14:52:35 -0500, William Bronsema >> >> wrote: >> >> >> >> >Kevin, >> >> > >> >> >doQuickZoom is supposed to go back to "". echo >> >> >$HTTP_FORM_VARS['doQuickZoom'] before your "If ( isset( >> >> >$HTTP_FORM_VARS['doQuickZoom'])...." statement to see what I mean. It >> >> >should only echo 1 after a quick zoom is called. You only want it to >> be >> >> 1 >> >> >when you want to do a quick zoom. Make sense? >> >> > >> >> >Is the PHP code being called to perform the quick zoom and the map is >> >> just >> >> >not zooming? Or is the PHP code not being called? >> >> > >> >> >Regards, >> >> >Bill >> >> > >> >> >________________________________________________ >> >> >William A. Bronsema, C.E.T. >> >> >Applications and Software Development, >> >> >DM Solutions Group Inc. >> >> > ------------------------------ Date: Thu, 27 Jan 2005 16:58:10 +0000 From: JEFFERY C COATE Subject: Hi, I'm a first-time poster. Hope this makes sense: I'd appreciate any ideas on calculating imgext in projected coordinates around a lat/lon point. Can mapserver project a DD imgext on the fly? Or, can I make a separate call to mapserver to project a lat/lon point prior to building an imgext? My limitation (one, anyway) is that I'm using basic cgi mapserver at this point. Here's why I'm asking: I have mapserver displaying gps points using OGR. I also display the gps and related data in tabular format. Links in the table zoom the map - the link passes the record's lat/lon to a javascript function which builds a new imgext around the point, passes that to the template file and resubmits the cgi url. This works great if map is in geographic coordinates but not if it is projected. Thanks, Jeff Coate GIS Rangers ------------------------------ Date: Thu, 27 Jan 2005 09:29:02 -0800 From: Ken Lord Subject: Re: MapInfo and MapServer point location problem Hi John, Confirm that your map projections are set right. If that particular layer is set wrong it could appear slightly (or a lot) off of where you expect it, Or, if that layer is right but your output projection is set wrong it could also show a shift. Cheers, Ken Lord Vancouver BC On Thu, 27 Jan 2005 09:58:42 -0600, John Goecken wrote: > I have a map in MapInfo with a street layer and a point layer. The point > location shows up correctly in MapInfo. When I create a site with > MapServer that uses those layers it moves the point or the line layer. It > is now showing the point about .06 miles east of the exact location. I > realize this is a small difference but for the project I'm working on it > is important. Has anybody ever seen something like this before where > MapServer moves a point? Thanks. > ------------------------------ Date: Thu, 27 Jan 2005 11:29:10 -0600 From: Camden Daily Subject: Re: Converting lat/long distance to miles. Thanks for the suggestions everyone, but I still can't figure this out. I've added projection blocks for all of my layers and an output projection as well (epsg 4326 for lat/long). The difficulties I'm having seem to be mostly based on the fact that I initially need to set my extents and place various points on the map using lat/long with units of decimal degrees. However, when I then calculate my distances, I'd like the results in miles. It seems to me that I should be able to set my extents, place my points, then reproject both the points and the layer I'm searching against to a projection that uses meters (which I can easily convert to miles) for the distance calculations, but this just isn't working for me. Here's the code I'm using to try to find distances: // clone the layer $layer = $map->getLayerByName($layer_name); $temp_layer = ms_newLayerObj($map, $layer); // clone the point $temp_point = ms_newPointObj(); $temp_point->setXY($point->x, $point->y); // project cloned point and layer to NAD83 / Illinois East so that our calculated distance are in meters, not dd $temp_point->project(ms_newprojectionobj("init=epsg:4326"), ms_newprojectionobj("init=epsg:26971")); $temp_layer->setProjection("init=epsg:26971"); // the toleranceunits don't have to be the same as the projection units to work $temp_layer->set("toleranceunits", MS_MILES); $tolerance = 1; $found_flag = false; while (!$found_flag AND ($tolerance < 30)) { $temp_layer->set("tolerance", $tolerance); $temp_layer->queryByPoint($temp_point, MS_MULTIPLE, -1); $num_results = $temp_layer->getNumResults(); if ($num_results > 0) { $found_flag = true; } else { $tolerance += 1; } } echo $num_results; If I comment out the two lines that reproject the point and layer, it works perfectly, except that my distance is in dd. With the reprojections, I don't get any results at all. I don't think it's an issue with my toleranceunits being in miles, since it works fine that way even when my projections are in units of dd. Any insights would be greatly appreciated. ------------------------------ Date: Thu, 27 Jan 2005 12:15:36 -0600 From: Camden Daily Subject: Re: Converting lat/long distance to miles. Ah, I seem to have it now. Instead of reprojectiong the point and layer before my querybypoint calls, I reproject the point and the individual shapes before I do my distancetoshape calls. I don't exactly understand why the previous method didn't work, but I got it now. Here's the working function I'm using to find the closest shape to a point and the distance in meters, as opposed to latlong: function get_closest($layer, $point) { global $map; $layer = $map->getLayerByName($layer); $layer->set("toleranceunits", MS_MILES); // loop through, increasing the tolerance each time until we find some matches $tolerance = 1; $found_flag = false; while (!$found_flag AND ($tolerance < 30)) { $layer->set("tolerance", $tolerance); $layer->queryByPoint($point, MS_MULTIPLE, -1); $num_results = $layer->getNumResults(); if ($num_results > 0) { $found_flag = true; } else { $tolerance += 1; } } if ($num_results == 0) { return array(-1); } else { // clone the point $temp_point = ms_newPointObj(); $temp_point->setXY($point->x, $point->y); // project cloned point to NAD83 / Illinois East so that our calculated distance are in meters, not dd $temp_point->project(ms_newprojectionobj("init=epsg:4326"), ms_newprojectionobj("init=epsg:26971")); // set our min_distance to a very large value $min_distance = 999999999999; // loop through our results and see which on is closest $layer->open(); for ($i=0; $i < $num_results; $i++) { $result = $layer->getResult($i); $shape = $layer->getShape($result->tileindex, $result->shapeindex); // reproject our shape to the same projection as our cloned point $shape->project(ms_newprojectionobj("init=epsg:4326"), ms_newprojectionobj("init=epsg:26971")); $distance = $temp_point->distanceToShape($shape); if ($distance < $min_distance) { $min_distance = $distance; $closest = $shape; } } $layer->close(); return array($min_distance, $closest); } } Thanks again for the help everyone! ------------------------------ Date: Thu, 27 Jan 2005 10:16:00 -0800 From: Blaine Hackett Subject: shifting .gif colors All I have a mapserver app showing roads, counties, road symbols, text, etc. When I zoom in or out, I get odd looking color changes mostly for the symbols. What is supposed to be red might show up as a different color, many times dull green or brown, until I zoom in and then it is turns red. I am using .gifs. I imagine it has to do with web safe colors but am not sure how to fix it and have found no answers on the web. Anyone have any suggestions on how I might go about fixing this? Thanks Blaine __________________________________ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more. http://info.mail.yahoo.com/mail_250 ------------------------------ Date: Thu, 27 Jan 2005 14:00:17 -0500 From: Abe Gillespie Subject: Problem with Mapscript + PostGIS --Apple-Mail-24--303801657 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=US-ASCII; format=flowed I'm compiling everything on Windows. MapServer CGI compiles fine with=20= "mapserv -v" giving: MapServer version 4.4.1 OUTPUT=3DGIF OUTPUT=3DPNG OUTPUT=3DJPEG = OUTPUT=3DWBMP=20 SUPPORTS=3DPROJ SUPPORTS=3DFREETYPE SUPPORTS=3DWMS_SERVER INPUT=3DPOSTGIS=20= INPUT=3DOGR INPUT=3DGDAL INPUT=3DSHAPEFILE DEBUG=3DMSDEBUG=00 I also don't have any problem compiling the C# version of Mapscript. =20 But when I try to access a PostGIS layer the logs tell me I don't have=20= PostGIS support available. Here's the error: Thu Jan 27 13:18:39 2005 - msPOSTGISLayerOpen(): Query error.=20 msPOSTGISLayerOpen called but unimplemented! (mapserver not compiled=20 with postgis support) Thu Jan 27 13:18:39 2005 - msDrawMap(): Image handling error. Failed to=20= draw layer named 'Roads'. I know C# Mapscript is brand new ... so help however you can. BTW - is=20= there a way to do the same as "mapserv -v" in Mapscript? Something=20 like mapObj::version I'd imagine. Thanks. -Abe= --Apple-Mail-24--303801657 Content-Transfer-Encoding: quoted-printable Content-Type: text/enriched; charset=US-ASCII I'm compiling everything on Windows. MapServer CGI compiles fine with "mapserv -v" giving: MapServer version 4.4.1 OUTPUT=3DGIF OUTPUT=3DPNG OUTPUT=3DJPEG = OUTPUT=3DWBMP SUPPORTS=3DPROJ SUPPORTS=3DFREETYPE SUPPORTS=3DWMS_SERVER INPUT=3DPOSTGIS INPUT=3DOGR INPUT=3DGDAL INPUT=3DSHAPEFILE = DEBUG=3DMSDEBUG=00LastResort Lucida GrandeI also don't have any problem compiling the C# version of Mapscript. But when I try to access a PostGIS layer the logs tell me I don't have PostGIS support available. Here's the error: Thu Jan 27 13:18:39 2005 - msPOSTGISLayerOpen(): Query error. msPOSTGISLayerOpen called but unimplemented! (mapserver not compiled with postgis support) Thu Jan 27 13:18:39 2005 - msDrawMap(): Image handling error. Failed to draw layer named 'Roads'. I know C# Mapscript is brand new ... so help however you can. BTW - is there a way to do the same as "mapserv -v" in Mapscript? Something like mapObj::version I'd imagine. Thanks. -Abe= --Apple-Mail-24--303801657-- ------------------------------ Date: Thu, 27 Jan 2005 11:53:04 -0700 From: Sean Gillies Subject: Re: Problem with Mapscript + PostGIS On Jan 27, 2005, at 12:00 PM, Abe Gillespie wrote: > --Apple-Mail-24--303801657 > Content-Transfer-Encoding: quoted-printable > Content-Type: text/plain; > charset=US-ASCII; > format=flowed > > I'm compiling everything on Windows. MapServer CGI compiles fine > with=20= > > "mapserv -v" giving: > > MapServer version 4.4.1 OUTPUT=3DGIF OUTPUT=3DPNG OUTPUT=3DJPEG = > OUTPUT=3DWBMP=20 > SUPPORTS=3DPROJ SUPPORTS=3DFREETYPE SUPPORTS=3DWMS_SERVER > INPUT=3DPOSTGIS=20= > > INPUT=3DOGR INPUT=3DGDAL INPUT=3DSHAPEFILE DEBUG=3DMSDEBUG=00 > > I also don't have any problem compiling the C# version of Mapscript. > =20 > But when I try to access a PostGIS layer the logs tell me I don't > have=20= > > PostGIS support available. Here's the error: > > Thu Jan 27 13:18:39 2005 - msPOSTGISLayerOpen(): Query error.=20 > msPOSTGISLayerOpen called but unimplemented! (mapserver not > compiled=20 > with postgis support) > Thu Jan 27 13:18:39 2005 - msDrawMap(): Image handling error. Failed > to=20= > > draw layer named 'Roads'. > > I know C# Mapscript is brand new ... so help however you can. BTW - > is=20= > > there a way to do the same as "mapserv -v" in Mapscript? Something=20 > like mapObj::version I'd imagine. > > Thanks. > -Abe= > There is mapscript::MS_VERSION, but it is only the version string. I like the idea, you should enter it in Bugzilla as a mapscript enhancement. Without the benefit of any other information, I guess that you have some DLL mixup. Some DLL without libpq is getting in the way. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies ------------------------------ Date: Thu, 27 Jan 2005 13:57:25 -0500 From: Stephen Woodbridge Subject: Re: shifting .gif colors Look at http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=306 Blaine Hackett wrote: > All > > I have a mapserver app showing roads, counties, road > symbols, text, etc. > > When I zoom in or out, I get odd looking color > changes mostly for the symbols. What is supposed to > be red might show up as a different color, many times > dull green or brown, until I zoom in and then it is > turns red. > > I am using .gifs. I imagine it has to do with web safe > colors but am not sure how to fix it and have found no > answers on the web. Anyone have any suggestions on how > I might go about fixing this? > > Thanks > Blaine > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail - now with 250MB free storage. Learn more. > http://info.mail.yahoo.com/mail_250 > ------------------------------ Date: Thu, 27 Jan 2005 11:00:43 -0800 From: Jon Saints Subject: XUL Interface for mapserver app? Hi all, I am currently experimenting with an XUL client interface for mapserver. I develop in my free time so it is coming slowly. Anyone else out there is working on somehting simillar? Thanks Jon ------------------------------ Date: Thu, 27 Jan 2005 14:48:44 -0500 From: Abe Gillespie Subject: Re: Problem with Mapscript + PostGIS You were absolutely right! The problem was an old libmap.dll. Thanks as always. -Abe On Jan 27, 2005, at 1:53 PM, Sean Gillies wrote: > On Jan 27, 2005, at 12:00 PM, Abe Gillespie wrote: > >> --Apple-Mail-24--303801657 >> Content-Transfer-Encoding: quoted-printable >> Content-Type: text/plain; >> charset=US-ASCII; >> format=flowed >> >> I'm compiling everything on Windows. MapServer CGI compiles fine >> with=20= >> >> "mapserv -v" giving: >> >> MapServer version 4.4.1 OUTPUT=3DGIF OUTPUT=3DPNG OUTPUT=3DJPEG = >> OUTPUT=3DWBMP=20 >> SUPPORTS=3DPROJ SUPPORTS=3DFREETYPE SUPPORTS=3DWMS_SERVER >> INPUT=3DPOSTGIS=20= >> >> INPUT=3DOGR INPUT=3DGDAL INPUT=3DSHAPEFILE DEBUG=3DMSDEBUG=00 >> >> I also don't have any problem compiling the C# version of Mapscript. >> =20 >> But when I try to access a PostGIS layer the logs tell me I don't >> have=20= >> >> PostGIS support available. Here's the error: >> >> Thu Jan 27 13:18:39 2005 - msPOSTGISLayerOpen(): Query error.=20 >> msPOSTGISLayerOpen called but unimplemented! (mapserver not >> compiled=20 >> with postgis support) >> Thu Jan 27 13:18:39 2005 - msDrawMap(): Image handling error. Failed >> to=20= >> >> draw layer named 'Roads'. >> >> I know C# Mapscript is brand new ... so help however you can. BTW - >> is=20= >> >> there a way to do the same as "mapserv -v" in Mapscript? Something=20 >> like mapObj::version I'd imagine. >> >> Thanks. >> -Abe= >> > > There is mapscript::MS_VERSION, but it is only the version string. I > like the idea, you should enter it in Bugzilla as a mapscript > enhancement. > > Without the benefit of any other information, I guess that you have > some DLL mixup. Some DLL without libpq is getting in the way. > > cheers, > Sean > > -- > Sean Gillies > sgillies at frii dot com > http://users.frii.com/sgillies > ------------------------------ Date: Thu, 27 Jan 2005 13:31:16 -0600 From: Gerry Creager n5jxs Subject: Re: MapInfo and MapServer point location problem Sounds like a datum error between point data and the underlying map. What are the EPSG values used? gerry John Goecken wrote: > I have a map in MapInfo with a street layer and a point layer. The point > location shows up correctly in MapInfo. When I create a site with > MapServer that uses those layers it moves the point or the line layer. It > is now showing the point about .06 miles east of the exact location. I > realize this is a small difference but for the project I'm working on it > is important. Has anybody ever seen something like this before where > MapServer moves a point? Thanks. -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Pager: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 ------------------------------ Date: Thu, 27 Jan 2005 13:53:25 -0600 From: Gerry Creager n5jxs Subject: MySWL bot on the loose For those with a Windows/MySQL installation, there's an exploit in the wild affecting these systems. More info can be found at: http://isc.sans.org/ Good luck! gerry -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Pager: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 ------------------------------ Date: Thu, 27 Jan 2005 16:13:20 -0600 From: Camden Daily Subject: Transparent pixmaps in Mapserver 4.4.1 I'm having difficulties displaying pngs with transparent backgrounds as symbols in 4.4.1. I've read up on the bugs regarding this issue, and the fix appears to be to add the line "TRANSPARENCY ALPHA" to the layer containing the transparent symbols. I draw my layer that contains my symbols using mapscript like this: // create a temp layer to hold our points $point_layer = ms_newLayerObj($map); $point_layer->set("name", "markers"); $point_layer->set("type", MS_LAYER_POINT); $point_layer->set("status", MS_DEFAULT); // 1000 is the value used to set transparency to "alpha" $point_layer->set("transparency", 1000); // create a class and style for this layer $point_class = ms_newClassObj($point_layer); $point_style = ms_newStyleObj($point_class); $point_symbol = $map->getSymbolByName("house"); $point_style->set("symbol", $point_symbol); $point_style->set("size", 40); I had to dig a little to find out that transparency of 1000 = alpha (maybe need to define MS_ALPHA=1000 in mapscript?). The layer displays fine, but the symbol backgrounds aren't transparent. ------------------------------ Date: Thu, 27 Jan 2005 15:21:41 -0700 From: Sean Gillies Subject: Re: Transparent pixmaps in Mapserver 4.4.1 On Jan 27, 2005, at 3:13 PM, Camden Daily wrote: > I'm having difficulties displaying pngs with transparent backgrounds > as symbols in 4.4.1. I've read up on the bugs regarding this issue, > and the fix appears to be to add the line "TRANSPARENCY ALPHA" to the > layer containing the transparent symbols. > > I draw my layer that contains my symbols using mapscript like this: > > // create a temp layer to hold our points > $point_layer = ms_newLayerObj($map); > $point_layer->set("name", "markers"); > $point_layer->set("type", MS_LAYER_POINT); > $point_layer->set("status", MS_DEFAULT); > // 1000 is the value used to set transparency to "alpha" > $point_layer->set("transparency", 1000); > > // create a class and style for this layer > $point_class = ms_newClassObj($point_layer); > $point_style = ms_newStyleObj($point_class); > $point_symbol = $map->getSymbolByName("house"); > $point_style->set("symbol", $point_symbol); > $point_style->set("size", 40); > > I had to dig a little to find out that transparency of 1000 = alpha > (maybe need to define MS_ALPHA=1000 in mapscript?). The layer > displays fine, but the symbol backgrounds aren't transparent. > Camden, the PHP mapscript maintainers may have overlooked MS_ALPHA. Let them know through Bugzilla. At any rate, the alpha transparency is only needed when you are trying to render a transparent background symbol onto a 24-bit map (like a JPEG). It has no positive effect for 8-bit output (such as a GIF). In that case, you should make sure that your symbol background is set properly and omit the transparency directive. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies ------------------------------ Date: Thu, 27 Jan 2005 16:42:18 -0600 From: Camden Daily Subject: Re: Transparent pixmaps in Mapserver 4.4.1 Thanks Sean. I'll make a bugzilla report for the MS_ALPHA value. The image I'm outputting is a 24bit jpeg. So I need to get the 'transparency alpha' to work properly. My symbol definition is SYMBOL NAME 'house' TYPE PIXMAP IMAGE 'images/house.png' TRANSPARENT 0 END Do I need the 'transparent 0' line, if the png file itself has a transparent background? Commenting it out doesn't resolve my issue, but I'm not entirely certain what it's for. ------------------------------ Date: Thu, 27 Jan 2005 15:53:42 -0700 From: Sean Gillies Subject: Re: Transparent pixmaps in Mapserver 4.4.1 On Jan 27, 2005, at 3:42 PM, Camden Daily wrote: > Thanks Sean. I'll make a bugzilla report for the MS_ALPHA value. > > The image I'm outputting is a 24bit jpeg. So I need to get the > 'transparency alpha' to work properly. > > My symbol definition is > > SYMBOL > NAME 'house' > TYPE PIXMAP > IMAGE 'images/house.png' > TRANSPARENT 0 > END > > Do I need the 'transparent 0' line, if the png file itself has a > transparent background? Commenting it out doesn't resolve my issue, > but I'm not entirely certain what it's for. > > Take a look at the unit testing data under mapserver-4.4.0/tests. The RGB test.png file is the end result of using test.map, symbols.txt, home.png, and xmarks.png. Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies ------------------------------ Date: Thu, 27 Jan 2005 17:24:33 -0700 From: Richard Greenwood Subject: Re: mapfile join On Wed, 26 Jan 2005 13:01:21 +0200, John Spotten wrote: > > > Hi, > > looking for some sample code showing a join use successfully. get a parsing > error when using it under class. put it under layer, no parsing error but > then XP tells me mapserv.exe has found a problem and is closing down. > using mapserver 4.4.0 on XP and I get error on html page msDBFJoinConnect(): > Unable to access file. (c:\ms4w\apps\mapserver_demos\ct\data\join.dbf). any > clues. can i use a dbf file. > > I am trying to join to a shape file a seperate independent dbf file on a > common field that is indexed in the shape file. the field is text type. > > I take it it can be accessed using the [join_] template in a > query template file for a one to many join where [join_] gets > replaced with the join header template and footer files and I assume that > the template within the query template file is > [_]. > > Is it possible to refer to the qlayer as [join_]? > > bye > john > > John Spotten > Transport Modeller/GIS Developer > Directorate of Transport, Roads and Stormwater > City of Cape Town > Tel : +27 21 4067325 > Fax : +27 21 4186989 > Cell : +27 846678901 > Email : john.spotten at capetown.gov.za > Web : www.capetown.gov.za > <> > I was hoping somebody else would respond to this with a better example, but here's an sloppy example that I dug out: LAYER NAME "join_query" GROUP "ownership" TYPE QUERY STATUS ON DATA "/Tc/temp/parcel_region" HEADER "attribute_header.html" FOOTER "attribute_footer.html" TEMPLATE "attribute_display.html" # FILTERITEM "PID" # FILTER /./ # regular expression - match anything JOIN # JOIN no longer lives inside of CLASS or inside a QUERY object NAME "test" TABLE "/Tc/temp/assessor2.DBF" FROM PIDP TO PIDA TYPE single # multiple # TEMPLATE cat.html # required only for one-to-many joins END # of JOIN Object END # LAYER "join_region" Yes, you can use a dbf file. In your TABLE clause, try replacing your "\" with "/" and/or qouting the string. HTH -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com ------------------------------ End of MAPSERVER-USERS Digest - 26 Jan 2005 to 27 Jan 2005 (#2005-27) ********************************************************************* -------------- next part -------------- A non-text attachment was scrubbed... Name: John Spotten.vcf Type: text/x-vcard Size: 226 bytes Desc: John Spotten.vcf URL: From nchandra at IITB.AC.IN Fri Jan 28 01:25:35 2005 From: nchandra at IITB.AC.IN (Nishant Chandra) Date: Fri, 28 Jan 2005 03:25:35 -0600 Subject: Mapserver/Mysql Message-ID: what i want is to read coordinates and names from Mysql db and project it onto the map. can some1 give me an example code to query mysql and the map file. From mapserver at GEOWORLD.DE Fri Jan 28 02:11:53 2005 From: mapserver at GEOWORLD.DE (Nicol Hermann) Date: Fri, 28 Jan 2005 11:11:53 +0100 Subject: Wrong extents after dynamic shapefile generation Message-ID: Hi List, i encounter a strange problem when i generate a (polygon) shapefile on the fly on a windows xp box running php mapscript 4.4.1 (windows binaries from http://maptools.org/dl/mapserver-4.4.1-win32-php4.3.7.zip). The creation of the shapefile acts without any problems but when i execute 'ogrinfo -so' on this file the value of maxy is completely wrong. When i take a closer look at the single features of the shapefile everything looks reasonable to me. So i assume that the generation of the header entry with the extents did something wrong. Running the same script with the same data on linux the extents of the shapefile as looks expected. Attached you can find the output of ogrinfo. What is going wrong here? Is this a bug? If you need further information please let me know. Many thanks Nicol -------------- next part -------------- INFO: Open of `c:\windows\temp\rasterkatalog-366_6c65e31162619949895ae6eda8c57a68.shp' using driver `ESRI Shapefile' successful. Layer name: rasterkatalog-366_6c65e31162619949895ae6eda8c57a68 Geometry: Polygon Feature Count: 20 Extent: (2589120.403000, 5495118.303000) - (2647062.466000, 71754509536643458000000000000000000000000000000000000000000000000000000000.000000) Layer SRS WKT: (unknown) LOCATION: String (150.0) OGRFeature(rasterkatalog-366_6c65e31162619949895ae6eda8c57a68):0 LOCATION (String) = d:\projekte\mapserver\data_kreuz\tk25\\tk25gl_5910.tif POLYGON ((2589120.403 5553764.056,2608813.871 5553764.056,2608813.871 5539764.286,2589120.403 5539764.286,2589120.403 5553764.056)) OGRFeature(rasterkatalog-366_6c65e31162619949895ae6eda8c57a68):1 LOCATION (String) = d:\projekte\mapserver\data_kreuz\tk25\\tk25gl_5911.tif POLYGON ((2601036.581 5554022.269,2620758.270 5554022.269,2620758.270 5539976.067,2601036.581 5539976.067,2601036.581 5554022.269)) OGRFeature(rasterkatalog-366_6c65e31162619949895ae6eda8c57a68):2 LOCATION (String) = d:\projekte\mapserver\data_kreuz\tk25\\tk25gl_5912.tif POLYGON ((2612722.127 5554608.979,2632918.793 5554608.979,2632918.793 5539888.435,2612722.127 5539888.435,2612722.127 5554608.979)) OGRFeature(rasterkatalog-366_6c65e31162619949895ae6eda8c57a68):3 LOCATION (String) = d:\projekte\mapserver\data_kreuz\tk25\\tk25gl_5913.tif POLYGON ((2630416.899 5554576.398,2644292.125 5554576.398,2644292.125 5541194.787,2630416.899 5541194.787,2630416.899 5554576.398)) OGRFeature(rasterkatalog-366_6c65e31162619949895ae6eda8c57a68):4 LOCATION (String) = d:\projekte\mapserver\data_kreuz\tk25\\tk25gl_6010.tif POLYGON ((2589296.505 5542634.190,2609025.407 5542634.190,2609025.407 5528635.939,2589296.505 5528635.939,2589296.505 5542634.190)) OGRFeature(rasterkatalog-366_6c65e31162619949895ae6eda8c57a68):5 LOCATION (String) = d:\projekte\mapserver\data_kreuz\tk25\\tk25gl_6011.tif POLYGON ((2601002.714 5543263.181,2621269.709 5543263.181,2621269.709 5528486.457,2601002.714 5528486.457,2601002.714 5543263.181)) OGRFeature(rasterkatalog-366_6c65e31162619949895ae6eda8c57a68):6 LOCATION (String) = d:\projekte\mapserver\data_kreuz\tk25\\tk25gl_6012.tif POLYGON ((2612985.064 5543503.282,2633211.397 5543503.282,2633211.397 5528772.346,2612985.064 5528772.346,2612985.064 5543503.282)) OGRFeature(rasterkatalog-366_6c65e31162619949895ae6eda8c57a68):7 LOCATION (String) = d:\projekte\mapserver\data_kreuz\tk25\\tk25gl_6013.tif POLYGON ((2624943.284 5543758.669,2645143.463 5543758.669,2645143.463 5529077.701,2624943.284 5529077.701,2624943.284 5543758.669)) OGRFeature(rasterkatalog-366_6c65e31162619949895ae6eda8c57a68):8 LOCATION (String) = d:\projekte\mapserver\data_kreuz\tk25\\tk25gl_6110.tif POLYGON ((2589524.265 5531511.164,2609255.066 5531511.164,2609255.066 5517497.313,2589524.265 5517497.313,2589524.265 5531511.164)) OGRFeature(rasterkatalog-366_6c65e31162619949895ae6eda8c57a68):9 LOCATION (String) = d:\projekte\mapserver\data_kreuz\tk25\\tk25gl_6111.tif POLYGON ((2601205.042 5532139.799,2621496.614 5532139.799,2621496.614 5517360.186,2601205.042 5517360.186,2601205.042 5532139.799)) OGRFeature(rasterkatalog-366_6c65e31162619949895ae6eda8c57a68):10 LOCATION (String) = d:\projekte\mapserver\data_kreuz\tk25\\tk25gl_6112.tif POLYGON ((2613216.388 5532384.092,2633479.642 5532384.092,2633479.642 5517648.089,2613216.388 5517648.089,2613216.388 5532384.092)) OGRFeature(rasterkatalog-366_6c65e31162619949895ae6eda8c57a68):11 LOCATION (String) = d:\projekte\mapserver\data_kreuz\tk25\\tk25gl_6113.tif POLYGON ((2625202.240 5532646.656,2645440.740 5532646.656,2645440.740 5517954.921,2625202.240 5517954.921,2625202.240 5532646.656)) OGRFeature(rasterkatalog-366_6c65e31162619949895ae6eda8c57a68):12 LOCATION (String) = d:\projekte\mapserver\data_kreuz\tk25\\tk25gl_6210.tif POLYGON ((2589715.464 5520397.306,2609472.019 5520397.306,2609472.019 5506404.799,2589715.464 5506404.799,2589715.464 5520397.306)) OGRFeature(rasterkatalog-366_6c65e31162619949895ae6eda8c57a68):13 LOCATION (String) = d:\projekte\mapserver\data_kreuz\tk25\\tk25gl_6211.tif POLYGON ((2607195.719 5520569.280,2622773.783 5520569.280,2622773.783 5505702.727,2607195.719 5505702.727,2607195.719 5520569.280)) OGRFeature(rasterkatalog-366_6c65e31162619949895ae6eda8c57a68):14 LOCATION (String) = d:\projekte\mapserver\data_kreuz\tk25\\tk25gl_6212.tif POLYGON ((2619215.773 5520833.111,2634785.726 5520833.111,2634785.726 5505983.236,2619215.773 5505983.236,2619215.773 5520833.111)) OGRFeature(rasterkatalog-366_6c65e31162619949895ae6eda8c57a68):15 LOCATION (String) = d:\projekte\mapserver\data_kreuz\tk25\\tk25gl_6213.tif POLYGON ((2625499.141 5521535.130,2645741.885 5521535.130,2645741.885 5506840.109,2625499.141 5506840.109,2625499.141 5521535.130)) OGRFeature(rasterkatalog-366_6c65e31162619949895ae6eda8c57a68):16 LOCATION (String) = d:\projekte\mapserver\data_kreuz\tk25\\tk25gl_6310.tif POLYGON ((2589904.617 5509273.045,2609689.890 5509273.045,2609689.890 5495276.935,2589904.617 5495276.935,2589904.617 5509273.045)) OGRFeature(rasterkatalog-366_6c65e31162619949895ae6eda8c57a68):17 LOCATION (String) = d:\projekte\mapserver\data_kreuz\tk25\\tk25gl_6311.tif POLYGON ((2601653.872 5509898.936,2621996.450 5509898.936,2621996.450 5495118.303,2601653.872 5495118.303,2601653.872 5509898.936)) OGRFeature(rasterkatalog-366_6c65e31162619949895ae6eda8c57a68):18 LOCATION (String) = d:\projekte\mapserver\data_kreuz\tk25\\tk25gl_6312.tif POLYGON ((2613714.194 5510137.874,2634025.607 5510137.874,2634025.607 5495410.569,2613714.194 5495410.569,2613714.194 5510137.874)) OGRFeature(rasterkatalog-366_6c65e31162619949895ae6eda8c57a68):19 LOCATION (String) = d:\projekte\mapserver\data_kreuz\tk25\\tk25gl_6313.tif POLYGON ((2631510.832 5509980.706,2647062.466 5509980.706,2647062.466 5495181.369,2631510.832 5495181.369,2631510.832 5509980.706)) From blh at MSSL.UCL.AC.UK Fri Jan 28 05:01:50 2005 From: blh at MSSL.UCL.AC.UK (Benjamin Lloyd-Hughes) Date: Fri, 28 Jan 2005 13:01:50 -0000 Subject: Aggregate query In-Reply-To: <41F904D2.5070507@swoodbridge.com> Message-ID: Hi Steve, Thanks for your helpful suggestion - but unfortunately I'm still having problems. I have... ========header.html============== var num_rows = [nr]; var data = new Array( ========template.html============ [GRID_CODE], ========footer.html============== 0); alert(num_rows); Which outputs perfectly good javascript but to the browser window: var num_rows = 5; var data = new Array( 428825, 490326, 402554, 797648, 109, 0); alert(num_rows); If I good get this snippet to execute rather than display then my problems would be over. Any ideas? Cheers, Ben > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On > Behalf Of Stephen Woodbridge > Sent: 27 January 2005 15:12 > To: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] Aggregate query > > > Benjamin Lloyd-Hughes wrote: > > Hi > > > > I'm using the cgi mapserver in NQUERY mode to extract values > within a user > > defined extent from a point shape file. The query works fine in so much > > that it returns the desired data and dumps this into the > specifed template. > > So far so good... But what I really want to obtain is the > average of these > > values. I've been scratching my head and thought I might be able to do > > something using the EVAL() javascript function but I've not had > any joy. I > > would be very grateful I someone could point me in the direction of a > > solution. > > Since you are use a HTML template, I think you are on the right track to > do this in Javascript. I would not use an eval though, I would create > and array initializer and just populate the values directly into the > array. So do something like the following (I will leave the exact syntax > up to you to figure out): > > I think you need to break this into three separate files, ie; header, > template and footer so if the file names are header.html, template.heml > and footer.html, you would break up the code like this: > > ========header.html============== > ... > var num_rows = [nr]; > var data = new Array( > ========template.html============ > [DBASE column_name], > ========footer.html============== > 0); // probably need the trailing "0" beacue of the comma above > ... > > // now loop through your array using num_rows to compute whatever > > ================================== > > I'm a little rusty with my javascript and use of query templates, but > this should give you the idea. I am assuming that the mapserver > templating will repeat the [DBASE column_name], line once for every row. > if this is not right maybe some else will post the correct syntax. > > -Steve W. > From D.Lowe at RL.AC.UK Fri Jan 28 06:41:40 2005 From: D.Lowe at RL.AC.UK (Lowe, D (Dominic)) Date: Fri, 28 Jan 2005 14:41:40 -0000 Subject: netCDF in a mapfile Message-ID: Hi, Finally got round to checking this out. The gdalinfo -mm flag returns nan, nan. However if I do an ncdump on the file I can see that there are values in there too. Are NaN values likely to cause any problems? Dominic gdalinfo gives: Driver: GMT/GMT NetCDF Grid Format Size is 1599, 1139 Coordinate System is `' Origin = (55.983000,-27.533100) Pixel Size = (0.00498300,-0.00433300) Corner Coordinates: Upper Left ( 55.9830000, -27.5331000) Lower Left ( 55.9830000, -32.4683870) Upper Right ( 63.9508170, -27.5331000) Lower Right ( 63.9508170, -32.4683870) Center ( 59.9669085, -30.0007435) Band 1 Block=1599x1 Type=Float32, ColorInterp=Undefined Computed Min/Max=nan,nan On Wed, 2005-01-26 at 14:24 +0000, Frank Warmerdam wrote: > On Wed, 26 Jan 2005 11:10:32 -0000, Lowe, D (Dominic) > wrote: > > Hi, > > > > I'm also interested in displaying netCDF (atmospheric/oceanographic) > data. > > So far I've got a GMT generated file 'displayed' but I can only see > it as a > > black rectangle. This suggests the GMT driver is working ok. > However, any > > type of color expression eg: > > COLOR > > # some attempt at color mapping here > > END > > > > just results in a blank image. > > > > Has anyone got any idea as to what a correct COLOR mapping would > look like > > for a GMT file? > > > > Sorry I haven't got the gdalinfo output available now, but I can > send it > > tomorrow if it helps. > > Dominic, > > First, I would encourage you to read over the MapServer 4.4 Raster > HOWTO. I believe it talks a bit about scaling and classification of > raster data. > > But you also need to ensure that GDAL is "seeing" the proper values > in your netCDF file. The first way to check is to run gdalinfo with > the > -mm flag. This should report the minimum and maximum of the data. > > If those values look OK, you should try viewing the file with a GDAL > based viewer such as OpenEV. > > Assuming the values are coming through properly, you may find you > need to control the scaling explicitly in your mapfile. To do that > you > would put something like the following with a minimum and maximum > appropriate to your data. > > PROCESSING "SCALING=0,1000" > > Best regards, > -- > ---------------------------------------+------------------------------------ -- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for > Rent > -- NERC DataGrid Rutherford Appleton Lab, Chilton, Didcot, Oxon., OX11 0QX, UK http://ndg.badc.rl.ac.uk/ From fwarmerdam at GMAIL.COM Fri Jan 28 06:42:23 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri, 28 Jan 2005 09:42:23 -0500 Subject: netCDF in a mapfile In-Reply-To: <1106923300.795.16.camel@venus.badc.rl.ac.uk> Message-ID: On Fri, 28 Jan 2005 14:41:40 -0000, Lowe, D (Dominic) wrote: > Hi, > > Finally got round to checking this out. > The gdalinfo -mm flag returns nan, nan. However if I do an ncdump on the > file I can see that there are values in there too. > > Are NaN values likely to cause any problems? Dominic, Yes, NaNs will confuse the min/max computations in GDAL. This means you will need to explicitly control the scaling in your mapfile with the scaling processing directive. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From piero.cavalieri at HEIDI.IT Fri Jan 28 06:54:47 2005 From: piero.cavalieri at HEIDI.IT (Piero Cavalieri) Date: Fri, 28 Jan 2005 08:54:47 -0600 Subject: crymson editor syntax files for .map Message-ID: There should be very simple syntax files for editing .map files with crymson editor (under Syntax Files section). http://www.crimsoneditor.com/ Cheers Piero From assefa at DMSOLUTIONS.CA Fri Jan 28 07:16:24 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Fri, 28 Jan 2005 10:16:24 -0500 Subject: PHP Mapscript getLayerByName In-Reply-To: <482A7044F4DB2740884BAF6AFD7416091E3B5D@onncrxms2.agr.gc.ca> Message-ID: Hi There, The php waring generated can be supressed using a @ (something like @$oLayer = $oMap->getLayerByName("notvalidlayer");) and then you can validate the value of $oLayer. Is this accepatable ? In my opnion, the default behaviour of generating a php waring is ok since It can be suppressed for those would do not want the warnings. I agree It should make it to the docs but I guess most (maybe all) of the wranings gnerated are not documented so If it is done It must be done for all. Another point is that we haven't be very consistent or defined a clear guide line on what type of error a function is suppose to return for diffrent scenarios. There is a need to revisit this at one point and have the warings/erros consistent through all the mapscript flavors but then again It is a long process to pass through all the functions. I have updated bug 1184 with this info. Later, Godwin, Elizabeth wrote: > Hello, > > I've been trying to use getLayerByName function and it's returning a > warning when I use it. I just want to verify if I am doing something > wrong, before I file a bug, if it's a bug. I've tried this on 4.2, > 4.4 and CVS from a week ago, all yield the same warning. > > From what I understand, the function returns the layer object if it > finds the layer, and FALSE if it doesn't. I'm getting FALSE *AND* a > warning message. > > _code snippit:_ > > //returns the layer object ok. > $oLayer = $oMap->getLayerByName("validlayername"); > > //retuns FALSE and error > $oLayer = $oMap->getLayerByName("notvalidlayer"); > > *Warning*: getLayerByName failed for : notvalidlayer in ... > > Thanks, > > Liz Godwin -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From Godwinl at AGR.GC.CA Fri Jan 28 07:20:09 2005 From: Godwinl at AGR.GC.CA (Godwin, Elizabeth) Date: Fri, 28 Jan 2005 10:20:09 -0500 Subject: PHP Mapscript getLayerByName Message-ID: Hi, That's fine for me for now. Thanks! I keep forgetting about using "@". Cheers, Liz > -----Original Message----- > From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] > Sent: January 28, 2005 10:16 AM > To: Godwin, Elizabeth > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] PHP Mapscript getLayerByName > > > Hi There, > > The php waring generated can be supressed using a @ (something like > @$oLayer = $oMap->getLayerByName("notvalidlayer");) and then you can > validate the value of $oLayer. Is this accepatable ? > > In my opnion, the default behaviour of generating a php > waring is ok > since It can be suppressed for those would do not want the > warnings. I > agree It should make it to the docs but I guess most (maybe > all) of the > wranings gnerated are not documented so If it is done It must be done > for all. Another point is that we haven't be very consistent > or defined > a clear guide line on what type of error a function is > suppose to return > for diffrent scenarios. There is a need to revisit this at > one point > and have the warings/erros consistent through all the > mapscript flavors > but then again It is a long process to pass through all the functions. > > I have updated bug 1184 with this info. > > Later, > > > Godwin, Elizabeth wrote: > > > Hello, > > > > I've been trying to use getLayerByName function and it's returning a > > warning when I use it. I just want to verify if I am doing > something > > wrong, before I file a bug, if it's a bug. I've tried this on 4.2, > > 4.4 and CVS from a week ago, all yield the same warning. > > > > From what I understand, the function returns the layer object if it > > finds the layer, and FALSE if it doesn't. I'm getting > FALSE *AND* a > > warning message. > > > > _code snippit:_ > > > > //returns the layer object ok. > > $oLayer = $oMap->getLayerByName("validlayername"); > > > > //retuns FALSE and error > > $oLayer = $oMap->getLayerByName("notvalidlayer"); > > > > *Warning*: getLayerByName failed for : notvalidlayer in ... > > > > Thanks, > > > > Liz Godwin > > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- > > > From John.Spotten at CAPETOWN.GOV.ZA Fri Jan 28 08:29:17 2005 From: John.Spotten at CAPETOWN.GOV.ZA (John Spotten) Date: Fri, 28 Jan 2005 18:29:17 +0200 Subject: labeling of OGR mapinfo table Message-ID: Hi, trying to label a mapinfo table using the mapfile, but nothing seams to work. followed the OGR instructions about using TEXT which overrides CLASSITEM, tried the recommended truetype Arial font and bitmap type. Any sample code out there. bye john John Spotten Transport Modeller/GIS Developer Directorate of Transport, Roads and Stormwater City of Cape Town Tel : +27 21 4067325 Fax : +27 21 4186989 Cell : +27 846678901 Email : john.spotten at capetown.gov.za Web : www.capetown.gov.za <> -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: John Spotten.vcf Type: text/x-vcard Size: 226 bytes Desc: John Spotten.vcf URL: -------------- next part -------------- NOTE: This e-mail (including attachments) is subject to the restrictions, qualifications and disclaimers (?disclaimer?) published at www.capetown.gov.za/disclaimer/email.pdf. Please read the disclaimer before opening any attachment or taking any other action in terms of this e-mail. If you cannot access the disclaimer, kindly send an email to infomail at capetown.gov.za and a copy will be provided to you. By acting on this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer. ------------------------------------------------- From cdaily at GMAIL.COM Fri Jan 28 10:31:19 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Fri, 28 Jan 2005 12:31:19 -0600 Subject: Transparent pixmaps in Mapserver 4.4.1 In-Reply-To: <4AECDD46-70B6-11D9-8833-000D9329D732@frii.com> Message-ID: The problem ended up being with the way I was drawing my points in mapscript. I had been drawing the image first, and then placing the points over it like this: // draw our image without the points $image = $map->draw(); // add our point to the map $point->draw($map, $point_layer, $image, 0, ""); But I guess since the rest of the map was drawn first, the transparent point symbols wouldn't actually be made transparent. I fixed it by instead creating a dummy layer and adding my points as features to it and then drawing the map, like this: // create a temp layer to hold our points $point_layer = ms_newLayerObj($map); $point_layer->set("name", "markers"); $point_layer->set("type", MS_LAYER_POINT); $point_layer->set("status", MS_ON); // 1000 is the value used to set transparency to "alpha" $point_layer->set("transparency", 1000); // create a class and style for this layer $point_class = ms_newClassObj($point_layer); $point_style = ms_newStyleObj($point_class); // set the symbol we'll use for our points $point_symbol = $map->getSymbolByName("house"); $point_style->set("symbol", $point_symbol); $point_style->set("size", 40); $point_line = ms_newLineObj(); $point_line->add($point); $point_shape = ms_newShapeObj(MS_SHAPE_POINT); $point_shape->add($point_line); $point_layer->addFeature($point_shape); // draw our image $image = $map->draw(); And it works like a charm! Thanks for all the help Sean. I entered a mapscript bugzilla about the alpha value, and it appears MS_GD_ALPHA has been added as the new constant value for setting the transparency level. From ngoldstein at THECARBONPROJECT.COM Fri Jan 28 10:35:47 2005 From: ngoldstein at THECARBONPROJECT.COM (Nuke Goldstein) Date: Fri, 28 Jan 2005 13:35:47 -0500 Subject: CarbonTools 2 - Free .NET tools and utilities Message-ID: Dear MapServer users, I thought you may find it interesting to know that The Carbon Project has release its flagship product CarbonTools as a freeware. Granted, this is not a Java project but a .NET one and not an open-source project (although we provide the source-code to the accompanied tools), but I do believe you should take a look at this package and tools as a .NET client to MapServer based services. We are strong believers in the advancement of open and free GIS, which prompt us to share our products with the community. CarbonTools 2 is a highly expandable and versatile .NET software development toolkit. Its architecture allows full separation of data source (web-service, file etc.) and data content (raster, features etc.), therefore enabling it to be expanded to many GIS formats. The toolkit includes extensive support to OGC web-service capabilities, WMS, WFS and GML (2.x.x, 3.x.x). Two GML parsers are included - one uses the XML schemas thus providing a deep analysis of sophisticated GML implementations, the other uses common GML forms and is optimized for speed. The toolkit also includes 3 utilities written using CarbonTools and provided with full source code. The CapabilitiesAnalyzer displays information about an OGC service, GMLAnalyzer provides analysis of data and metadata within GML files and the CarbonViewer which is a viewer for WMS and WFS services complete with map-tools. CarbonTools is provided with full API documentation, also available online at: http://www.thecarbonproject.com/docs/index.html. We hope you will find CarbonTools useful as well as productive and we will appreciate any comments, suggestions and requests. Best regards, Nuke Goldstein Founder --------------------------------------- www.TheCarbonProject.com --------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgillies at FRII.COM Fri Jan 28 10:39:08 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Fri, 28 Jan 2005 11:39:08 -0700 Subject: Transparent pixmaps in Mapserver 4.4.1 In-Reply-To: Message-ID: On Jan 28, 2005, at 11:31 AM, Camden Daily wrote: > The problem ended up being with the way I was drawing my points in > mapscript. I had been drawing the image first, and then placing the > points over it like this: > > // draw our image without the points > $image = $map->draw(); > // add our point to the map > $point->draw($map, $point_layer, $image, 0, ""); > > But I guess since the rest of the map was drawn first, the transparent > point symbols wouldn't actually be made transparent. > > I fixed it by instead creating a dummy layer and adding my points as > features to it and then drawing the map, like this: > > // create a temp layer to hold our points > $point_layer = ms_newLayerObj($map); > $point_layer->set("name", "markers"); > $point_layer->set("type", MS_LAYER_POINT); > $point_layer->set("status", MS_ON); > // 1000 is the value used to set transparency to "alpha" > $point_layer->set("transparency", 1000); > > // create a class and style for this layer > $point_class = ms_newClassObj($point_layer); > $point_style = ms_newStyleObj($point_class); > > // set the symbol we'll use for our points > $point_symbol = $map->getSymbolByName("house"); > $point_style->set("symbol", $point_symbol); > $point_style->set("size", 40); > > $point_line = ms_newLineObj(); > $point_line->add($point); > $point_shape = ms_newShapeObj(MS_SHAPE_POINT); > $point_shape->add($point_line); > $point_layer->addFeature($point_shape); > > // draw our image > $image = $map->draw(); > > And it works like a charm! Thanks for all the help Sean. I entered a > mapscript bugzilla about the alpha value, and it appears MS_GD_ALPHA > has been added as the new constant value for setting the transparency > level. > > You're welcome. Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From steve.lime at DNR.STATE.MN.US Fri Jan 28 14:07:25 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 28 Jan 2005 16:07:25 -0600 Subject: Open Source Geospatial '05 - MUM3/EOGEO Message-ID: MapServer Users! I wanted to let folks know that the conference website is up and running, and registration is open! The website is at: http://mapserver.gis.umn.edu/mum/mtg2005.html Additions include: - online registration (plus paper forms) - online presentation, technical session and demo submission - updated program - workshop abstracts - sponsorship information - travel and hotel information including online reservation access Some important dates: - April 14, 2005 Early registration ends - April 15, 2005 Call for presentations, technical sessions, demo sessions ends - May 21, 2005 Radisson Hotel room block no longer available - May 31, 2005 No registration refunds after this date We encourage you to make arrangements early. This will ensure access to any workshops you'd like to take, but also really helps the conference planners make sure accommodations are available for all that need them. Hope to see you all in Minneapolis this June! Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From steve.lime at DNR.STATE.MN.US Fri Jan 28 15:06:51 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 28 Jan 2005 17:06:51 -0600 Subject: Aggregate query Message-ID: Try changing the line: to: Which outputs perfectly good javascript but to the browser window: var num_rows = 5; var data = new Array( 428825, 490326, 402554, 797648, 109, 0); alert(num_rows); If I good get this snippet to execute rather than display then my problems would be over. Any ideas? Cheers, Ben > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On > Behalf Of Stephen Woodbridge > Sent: 27 January 2005 15:12 > To: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] Aggregate query > > > Benjamin Lloyd-Hughes wrote: > > Hi > > > > I'm using the cgi mapserver in NQUERY mode to extract values > within a user > > defined extent from a point shape file. The query works fine in so much > > that it returns the desired data and dumps this into the > specifed template. > > So far so good... But what I really want to obtain is the > average of these > > values. I've been scratching my head and thought I might be able to do > > something using the EVAL() javascript function but I've not had > any joy. I > > would be very grateful I someone could point me in the direction of a > > solution. > > Since you are use a HTML template, I think you are on the right track to > do this in Javascript. I would not use an eval though, I would create > and array initializer and just populate the values directly into the > array. So do something like the following (I will leave the exact syntax > up to you to figure out): > > I think you need to break this into three separate files, ie; header, > template and footer so if the file names are header.html, template.heml > and footer.html, you would break up the code like this: > > ========header.html============== > ... > var num_rows = [nr]; > var data = new Array( > ========template.html============ > [DBASE column_name], > ========footer.html============== > 0); // probably need the trailing "0" beacue of the comma above > ... > > // now loop through your array using num_rows to compute whatever > > ================================== > > I'm a little rusty with my javascript and use of query templates, but > this should give you the idea. I am assuming that the mapserver > templating will repeat the [DBASE column_name], line once for every row. > if this is not right maybe some else will post the correct syntax. > > -Steve W. > From bigfoot at MAIN-TASK.COM Fri Jan 28 16:02:11 2005 From: bigfoot at MAIN-TASK.COM (=?ISO-8859-1?Q?Vladimir_Guzm=E1n?=) Date: Fri, 28 Jan 2005 19:02:11 -0500 Subject: Postgis Polygon Message-ID: Hello, list. I'm trying to draw a polygon layer with postgis in mapserver, but the map is empty. Here is the DATA section: -------- DATA "the_geom from (select GeomFromText('POLYGON((-74.14840698 4.56912851,-74.03168487 4.75130367, -74.14840698 4.75130367, -74.14840698 4.56912851))',1) as the_geom,1 as oid) as data using unique oid using srid=1" -------- If I change it to: -------- DATA "the_geom from (select GeomFromText('MULTIPOLYGON(((-74.14840698 4.56912851,-74.03168487 4.75130367, -74.14840698 4.75130367, -74.14840698 4.56912851)))',1) as the_geom,1 as oid) as data using unique oid using srid=1" -------- the map is displayed correctly. Anyone knows why is this? The problem is that when I import a map with ogr2ogr, the geometries are inserted as POLYGON instead of MULTIPOLYGON. Thanks a lot, -- Vladimir Ilich Guzm?n R. ------------------------ http://maintask.com From constantin.a.cristian at GMAIL.COM Fri Jan 28 23:34:58 2005 From: constantin.a.cristian at GMAIL.COM (Constantin Cristian) Date: Sat, 29 Jan 2005 09:34:58 +0200 Subject: Features question Message-ID: In the MapFile reference documentation at Feature Object definition it is said that: "Inline features can also be built via urls or forms." Anyone has any examples? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bigfoot at MAIN-TASK.COM Sat Jan 29 09:39:15 2005 From: bigfoot at MAIN-TASK.COM (=?ISO-8859-1?Q?Vladimir_Guzm=E1n?=) Date: Sat, 29 Jan 2005 12:39:15 -0500 Subject: Postgis Polygon In-Reply-To: <41FB13FF.2000607@homer.com.au> Message-ID: Thankyou, Peter. I'm sure, because I have a record in the spatial_ref_sys, with an id 1. The strange thing is that it works with MULTIPOLYGON, but it doesn't work with POLYGON. Any ideas? Thanks a lot, Vladimir Ilich Guzm?n R. ------------------------ http://maintask.com Peter Bayley wrote: > Are you sure you don't mean "SRID= -1" - in other words, no > projection. There is no SRID=1 in spatial_ref_sys > > Peter > > Vladimir Guzm?n wrote: > >> Hello, list. >> >> I'm trying to draw a polygon layer with postgis in mapserver, but the >> map is empty. >> Here is the DATA section: >> -------- >> DATA "the_geom from (select GeomFromText('POLYGON((-74.14840698 >> 4.56912851,-74.03168487 4.75130367, -74.14840698 4.75130367, >> -74.14840698 4.56912851))',1) as the_geom,1 as oid) as data using unique >> oid using srid=1" >> -------- >> If I change it to: >> -------- >> DATA "the_geom from (select GeomFromText('MULTIPOLYGON(((-74.14840698 >> 4.56912851,-74.03168487 4.75130367, -74.14840698 4.75130367, >> -74.14840698 4.56912851)))',1) as the_geom,1 as oid) as data using >> unique oid using srid=1" >> -------- >> the map is displayed correctly. >> >> Anyone knows why is this? >> The problem is that when I import a map with ogr2ogr, the geometries are >> inserted as POLYGON instead of MULTIPOLYGON. >> >> Thanks a lot, >> >> -- >> Vladimir Ilich Guzm?n R. >> ------------------------ >> http://maintask.com >> From covariance at SHAW.CA Sat Jan 29 19:34:02 2005 From: covariance at SHAW.CA (Bob Bruce) Date: Sat, 29 Jan 2005 21:34:02 -0600 Subject: Problems building PHP MapScript on WIN32 Message-ID: I am attempting to build MapScript and am getting some compilation errors when the make is compiling php_mapscript.c. These are the errors that are being displayed: cl /nologo /Zi /W3 /DEBUG /Fdphpms.pdb -DWIN32 -D_WIN32 /DZEND_WIN32 /DPHP_WIN32 /DPHP4 /DZT S -IC:/Downloads/MapServer/gdwin32 -IC:\Downloads\MapServer\proj-4.4.8/src -Ic:\regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC -DNEED_STRCASECMP -DNEED_STRNCASECMP -DNEED_STRLCAT -DWIN32 -D_WIN32 -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_GIF -DGD _HAS_GDIMAGEGIFPTR -DUSE_GD_FT -DGD_HAS_GETBITMAPFONT -DUSE_WMS_SVR -DIGNORE_MISSING_DATA -DENA BLE_STDERR_DEBUG -DUSE_GD_ANTIALIAS -I../.. -IC:\Downloads\PHP\php-4.3.7 -IC:\Download s\PHP\php-4.3.7/main -IC:\Downloads\PHP\php-4.3.7/zend -IC:\Downloads\PHP\php-4.3.7/include -IC:\Dow nloads\PHP\php-4.3.7/tsrm /DCOMPILE_DL=1 /c php_mapscript.c /Fophp_mapscript.obj php_mapscript.c C:\Downloads\PHP\php-4.3.7\regex/regex.h(17) : warning C4142: benign redefinition of type C:\Downloads\PHP\php-4.3.7\regex/regex.h(23) : error C2371: 'regex_t' : redefinition; different basi c types c:\regex-0.12\regex.h(346) : see declaration of 'regex_t' C:\Downloads\PHP\php-4.3.7\regex/regex.h(27) : error C2371: 'regmatch_t' : redefinition; different b asic types c:\regex-0.12\regex.h(382) : see declaration of 'regmatch_t' C:\Downloads\PHP\php-4.3.7\regex/regex.h(31) : error C2373: 'regcomp' : redefinition; different type modifiers c:\regex-0.12\regex.h(473) : see declaration of 'regcomp' C:\Downloads\PHP\php-4.3.7\regex/regex.h(33) : warning C4005: 'REG_EXTENDED' : macro redefinition c:\regex-0.12\regex.h(215) : see previous definition of 'REG_EXTENDED' C:\Downloads\PHP\php-4.3.7\regex/regex.h(34) : warning C4005: 'REG_ICASE' : macro redefinition c:\regex-0.12\regex.h(219) : see previous definition of 'REG_ICASE' C:\Downloads\PHP\php-4.3.7\regex/regex.h(35) : warning C4005: 'REG_NOSUB' : macro redefinition c:\regex-0.12\regex.h(228) : see previous definition of 'REG_NOSUB' C:\Downloads\PHP\php-4.3.7\regex/regex.h(36) : warning C4005: 'REG_NEWLINE' : macro redefinition c:\regex-0.12\regex.h(224) : see previous definition of 'REG_NEWLINE' C:\Downloads\PHP\php-4.3.7\regex/regex.h(62) : error C2373: 'regerror' : redefinition; different typ e modifiers c:\regex-0.12\regex.h(477) : see declaration of 'regerror' C:\Downloads\PHP\php-4.3.7\regex/regex.h(66) : error C2373: 'regexec' : redefinition; different type modifiers c:\regex-0.12\regex.h(474) : see declaration of 'regexec' C:\Downloads\PHP\php-4.3.7\regex/regex.h(67) : warning C4005: 'REG_NOTBOL' : macro redefinition c:\regex-0.12\regex.h(238) : see previous definition of 'REG_NOTBOL' C:\Downloads\PHP\php-4.3.7\regex/regex.h(68) : warning C4005: 'REG_NOTEOL' : macro redefinition c:\regex-0.12\regex.h(241) : see previous definition of 'REG_NOTEOL' C:\Downloads\PHP\php-4.3.7\regex/regex.h(76) : error C2373: 'regfree' : redefinition; different type modifiers c:\regex-0.12\regex.h(480) : see declaration of 'regfree' NMAKE : fatal error U1077: 'cl' : return code '0x2' Stop. It appears that there is a confict with the regex stuff in the PHP source folder and the regex folder at the root of c:. I have regex set up in the c:\regex-0.12 folder because I was also building mapserv.exe . The only place that I pointed to this folder is pointed to is in the nmake.opt file in the main mapserver source folder. Can someone tell me what I need to do to make this build work? thanks, Bob Bruce From nchandra at IITB.AC.IN Sun Jan 30 01:36:49 2005 From: nchandra at IITB.AC.IN (Nishant Chandra) Date: Sun, 30 Jan 2005 03:36:49 -0600 Subject: Mapserver / Mysql Message-ID: I have mapserver and mysql installation on windows. I use the .shp/.dbf file to generate the base map. what i want is to read some coordinates and names from Mysql db and project it onto the map already rendered. can some1 give me an example code to query mysql and the map file/. phtml file. From akoper at AMERITECH.NET Sun Jan 30 14:49:56 2005 From: akoper at AMERITECH.NET (Andrew Koper) Date: Sun, 30 Jan 2005 17:49:56 -0500 Subject: basic introduction to mapserver Message-ID: Is there a good, clear introduction to mapserver out there? I appreciate the documentation on the mapserver Web site, but it seems to be written for someone who has been using ESRI already or is already familiar with the basic concepts. How about something that includes explanations of the basic concepts to a new beginner? Thanks, -Andrew K -------------- next part -------------- An HTML attachment was scrubbed... URL: From mayuresh.kathe at GMAIL.COM Sun Jan 30 21:13:52 2005 From: mayuresh.kathe at GMAIL.COM (Mayuresh Kathe) Date: Mon, 31 Jan 2005 10:43:52 +0530 Subject: CGI run error... Message-ID: Hi, I've built the 4.4.1 version and placed it in the cgi-bin directory. When I access it from a web browser (http://localhost/cgi-bin/mapserv) it gives the following error: 500 Internal Server Error Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, you at your.address and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Any ideas/pointers about how I could solve this? ~Mayuresh From stigmata_blackangel at YAHOO.COM Sun Jan 30 21:47:22 2005 From: stigmata_blackangel at YAHOO.COM (Gregor Mosheh) Date: Sun, 30 Jan 2005 21:47:22 -0800 Subject: CGI run error... In-Reply-To: <74571d1605013021135837e222@mail.gmail.com> Message-ID: For starters, check your httpd's logfile. If you're running Apache, look for the error_log That will have details on the error. It may be something uninformative like "Malformed script headers" but it may have something useful. Another step is to try executing the CGI program from the command line. You should get the message about how a query string is required. If you don't, you'll get a nice Unix error message about why the program isn't able to execute. --- Mayuresh Kathe wrote: > Hi, > > I've built the 4.4.1 version and placed it in the > cgi-bin directory. > When I access it from a web browser > (http://localhost/cgi-bin/mapserv) > it gives the following error: > 500 Internal Server Error > > Internal Server Error > The server encountered an internal error or > misconfiguration and was > unable to complete your request. > > Please contact the server administrator, > you at your.address and inform > them of the time the error occurred, and anything > you might have done > that may have caused the error. > > More information about this error may be available > in the server error log. > > Any ideas/pointers about how I could solve this? > > ~Mayuresh > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From solo6259 at YAHOO.COM Sun Jan 30 22:07:40 2005 From: solo6259 at YAHOO.COM (Solomon Maina Thuo) Date: Mon, 31 Jan 2005 00:07:40 -0600 Subject: javascript rectangle co-ordinates Message-ID: hi i am having problems getting the correct co-ordinates of the selected rectangle. I am selecting a rectangle on the map using javascript rubberbanding, something equivalent to the jbox rubberbanding functionality. after the user selecting the area of interest( i.e dragging the mouse of a given rectangle), i get the coordinates using javascript and then use them in my php/mapscript code to call the queryByRect method. The problem arises since the results returned differ from the the initial selected rectangle.the rectangle is translated to a different location. i understand javascript is using client.x and client.y coordinates of the browser but somehow mapserver reference point( i.e 0,0) point is the top right corner of the map image. i know someone out there has solved such a problem and i will very happy for any help. regards solomon From mayuresh.kathe at GMAIL.COM Mon Jan 31 01:24:32 2005 From: mayuresh.kathe at GMAIL.COM (Mayuresh Kathe) Date: Mon, 31 Jan 2005 14:54:32 +0530 Subject: CGI run error... In-Reply-To: <20050131054722.8257.qmail@web53808.mail.yahoo.com> Message-ID: Hi, The error_log file contains the following information: [Mon Jan 31 14:51:24 2005] [error] [client 127.0.0.1] Premature end of script headers: /cgi-bin/mapserv When I execute it from the command line, I get the following: This script can only be used to decode form results and should be initiated as a CGI process via a httpd server. Either ways I couldn't figure out much :) On Sun, 30 Jan 2005 21:47:22 -0800, Gregor Mosheh wrote: > For starters, check your httpd's logfile. If you're > running Apache, look for the error_log That will have > details on the error. It may be something > uninformative like "Malformed script headers" but it > may have something useful. > > Another step is to try executing the CGI program from > the command line. You should get the message about how > a query string is required. If you don't, you'll get a > nice Unix error message about why the program isn't > able to execute. > > > --- Mayuresh Kathe wrote: > > > Hi, > > > > I've built the 4.4.1 version and placed it in the > > cgi-bin directory. > > When I access it from a web browser > > (http://localhost/cgi-bin/mapserv) > > it gives the following error: > > 500 Internal Server Error > > > > Internal Server Error > > The server encountered an internal error or > > misconfiguration and was > > unable to complete your request. > > > > Please contact the server administrator, > > you at your.address and inform > > them of the time the error occurred, and anything > > you might have done > > that may have caused the error. > > > > More information about this error may be available > > in the server error log. > > > > Any ideas/pointers about how I could solve this? > > > > ~Mayuresh > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > From alhim at INTRACOM.GR Mon Jan 31 06:18:12 2005 From: alhim at INTRACOM.GR (Alex Chimarios) Date: Mon, 31 Jan 2005 08:18:12 -0600 Subject: Layer drawing Message-ID: I moved a step further with my PDA-mapscript application : I run the cross-compiled shp2img and it also draws an empty image without layers.There is a message after the program terminates : "turning off NDELAY mode " I would like to ask you which is the library for concatenating images from different layers and forming the final map image? Is it gd or gdal ? Thanx, in advance Alexandros p.s : tested the source with the same mapfile and data in my Linux i686 and run correctly. From shanem at PSBA.COM Mon Jan 31 06:26:40 2005 From: shanem at PSBA.COM (Shane C McDermott) Date: Mon, 31 Jan 2005 08:26:40 -0600 Subject: MapServer help Message-ID: My company is in need of basic MapServer setup and configuration and was wondering if anybody would give consideration to this type of project, or knows of anybody that would be able to help. The basics are, we want an installation and configuration of the software on a server, then a back end box setup and configured (most likely with PostGIS) to serve up about 10GB of data through MS. A basic user interface is desired that would include nation-wide place name search and geocoding capabilities. There are a few other particulars that we can discuss as well. Please email or call me if you are interested or can help me in any way. Thank you. Shane McDermott, GISP GIS Manager Poepping, Stone, Bach & Associates, Inc. Quincy, IL (217) 223-4605 Keokuk, IA (319) 524-8730 Hannibal, MO (573) 406-0541 Cell Phone (217) 242-7546 email - shanem at psba.com web - www.psba.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdport at VERITIME.COM Mon Jan 31 06:56:35 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Mon, 31 Jan 2005 09:56:35 -0500 Subject: getting true extents Message-ID: My map image width/height is 600x400... and when it draws the map in this area, it does not map out the extents that I have set in the map file. It seems to map the proper "x" extents, but the "y" extents extend north and south past the set "y" extents to fill the map. This doesn't really present a huge problem most of the time, but now I have the need to calculate pixel position and since i don't know the actual extents I can't do this. Anybody have any suggestions? Thanks, Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From mercutio at POBOX.COM Mon Jan 31 07:08:12 2005 From: mercutio at POBOX.COM (Aaron Craig) Date: Mon, 31 Jan 2005 16:08:12 +0100 Subject: getting true extents In-Reply-To: <000c01c507a5$0f8686c0$1bf2fbd0@solo> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Sounds like a problem I had recently. You need to make sure that your proportions are the same between your extent and your pixels -- that is that (using 600 x 400): minx : maxx = 0 : 600 miny : maxy = 0 : 400 Otherwise, when you convert between one system and another, your calculations will be thrown off. Jeff Portwine wrote: | | My map image width/height is 600x400... and when it draws the map in | this area, it does not map out the extents that I have set in the map | file. It seems to map the proper "x" extents, but the "y" extents | extend north and south past the set "y" extents to fill the map. This | doesn't really present a huge problem most of the time, but now I have | the need to calculate pixel position and since i don't know the actual | extents I can't do this. | | Anybody have any suggestions? | | Thanks, | Jeff | - -- Aaron Craig mercutio at pobox.com =========================================================== Get Firefox! http://www.spreadfirefox.com/?q=affiliates&id=0&t=1 =========================================================== - -=-=- Men at some time are masters of their fates: The fault, dear Brutus, is not in our stars, But in ourselves, that we are underlings. --Julius Caesar I.ii. - -=-=- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFB/knboyEQRcU83p4RAtCuAJ9EnCZJrv3Tpziabac8Iq9+q3jTjwCeOQK0 B/a6QVto2UbcJmcuT1ubWlI= =qw8v -----END PGP SIGNATURE----- From joseluismapserver at YAHOO.ES Mon Jan 31 07:19:56 2005 From: joseluismapserver at YAHOO.ES (Jose Luis Gonzalez) Date: Mon, 31 Jan 2005 16:19:56 +0100 Subject: .map and .tab files Message-ID: Hi everyone I can not manage to draw a raster I have. This raster is a .tiff file that has associated this .tab file: !table !version 300 !charset WindowsLatin2 Definition Table File "praha.tif" Type "RASTER" (3445375,5560000) (0,0) Label "Pt 1", (3474000,5560000) (4507,0) Label "Pt 2", (3474000,5539250) (4507,3266) Label "Pt 3" CoordSys Earth Projection 8, 1001, "m", 15, 0, 1, 3500000, 0 Units "m" RasterStyle 7 0 When I put this data to the .map file I write it as: MAP NAME praha STATUS ON IMAGETYPE PNG SIZE 800 500 SHAPEPATH "/opt/SUNappserver/domains/domain1/applications/j2ee-modules/test8" EXTENT 3445375 5539250 3474000 5560000 UNITS METERS PROJECTION "proj=tmerc" "lat_0=0" "lon_0=15" "k=1" 'x_0=0" "y_0=3500000" END WEB IMAGEPATH "/opt/SUNappserver/domains/domain1/applications/j2ee-modules/test8/" IMAGEURL "/test8/" END LAYER NAME "Nighttime lights" TYPE RASTER STATUS ON DATA "/opt/SUNappserver/domains/domain1/applications/j2ee-modules/test8/praha.tif" PROJECTION "proj=tmerc" "lat_0=0" "lon_0=15" "k=1" 'x_0=0" "y_0=3500000" END END END Am I doing it correctly? Am I missing anything? Thank you Jose Luis --------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at GEOANALYTIC.COM Mon Jan 31 07:45:09 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Mon, 31 Jan 2005 08:45:09 -0700 Subject: .map and .tab files Message-ID: Jose Luis, Three possibilities: 1. The tiff might be a plain tiff, not a GeoTiff (with registration info attached as a TIFF tag). Make a .tfw georeferencing "world" file for it using the information in the TAB file 2. You may have your false_easting and false_northing values swapped in the PROJECTION object of your map file. Double check with the CoordSys statement in the TAB file. 3. No ellipse is given in the PROJECTION object. Add "ellps=clrk66" Since your output projection is the same as your input projection, you could just remove the two PROJECTION objects in your map file. You would still need to make a world file for the tiff file. Brent Fraser ----- Original Message ----- From: Jose Luis Gonzalez To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Monday, January 31, 2005 8:19 AM Subject: [UMN_MAPSERVER-USERS] .map and .tab files Hi everyone I can not manage to draw a raster I have. This raster is a .tiff file that has associated this .tab file: !table !version 300 !charset WindowsLatin2 Definition Table File "praha.tif" Type "RASTER" (3445375,5560000) (0,0) Label "Pt 1", (3474000,5560000) (4507,0) Label "Pt 2", (3474000,5539250) (4507,3266) Label "Pt 3" CoordSys Earth Projection 8, 1001, "m", 15, 0, 1, 3500000, 0 Units "m" RasterStyle 7 0 When I put this data to the .map file I write it as: MAP NAME praha STATUS ON IMAGETYPE PNG SIZE 800 500 SHAPEPATH "/opt/SUNappserver/domains/domain1/applications/j2ee-modules/test8" EXTENT 3445375 5539250 3474000 5560000 UNITS METERS PROJECTION "proj=tmerc" "lat_0=0" "lon_0=15" "k=1" 'x_0=0" "y_0=3500000" END WEB IMAGEPATH "/opt/SUNappserver /domains/domain1/applications/j2ee-modules/test8/" IMAGEURL "/test8/" END LAYER NAME "Nighttime lights" TYPE RASTER STATUS ON DATA "/opt/SUNappserver/domains/domain1/applications/j2ee-modules/test8/praha.tif " PROJECTION "proj=tmerc" "lat_0=0" "lon_0=15" "k=1" 'x_0=0" "y_0=3500000" END END END Am I doing it correctly? Am I missing anything? Thank you Jose Luis From joseluismapserver at YAHOO.ES Mon Jan 31 07:46:06 2005 From: joseluismapserver at YAHOO.ES (Jose Luis Gonzalez) Date: Mon, 31 Jan 2005 16:46:06 +0100 Subject: raster error Message-ID: I obtain this error after attempting to display a raster map: java.lang.UnknownError: Attempt to open a RASTER layer, but this is only supported after a raster query. Does anyone know what this means, and what am I possibly doing wrong. This is my .map file: MAP NAME praha STATUS ON IMAGETYPE PNG SIZE 800 500 SHAPEPATH "/opt/SUNappserver/domains/domain1/applications/j2ee-modules/test8" EXTENT 3445375 5539250 3474000 5560000 UNITS METERS PROJECTION "proj=tmerc" "lat_0=0" "lon_0=15" "k=1" "x_0=0" "y_0=3500000" END WEB IMAGEPATH "/opt/SUNappserver/domains/domain1/applications/j2ee-modules/test8/" IMAGEURL "/test8/" END LAYER NAME "Nighttime lights" TYPE RASTER STATUS ON DATA "/opt/SUNappserver/domains/domain1/applications/j2ee-modules/test8/praha.tif" END END Thank you Jose Luis --------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From joseluismapserver at YAHOO.ES Mon Jan 31 07:52:20 2005 From: joseluismapserver at YAHOO.ES (Jose Luis Gonzalez) Date: Mon, 31 Jan 2005 16:52:20 +0100 Subject: .map and .tab files In-Reply-To: <016a01c507ab$d7e97310$020002c0@SHARK> Message-ID: Sorry but I don't undersand what to do in point number 1. How can I do a .tfw file? How does it look like? and respect to point 3: how do you know which is the ellps parameter? Thanks Jose Luis Brent Fraser wrote: Jose Luis, Three possibilities: 1. The tiff might be a plain tiff, not a GeoTiff (with registration info attached as a TIFF tag). Make a .tfw georeferencing "world" file for it using the information in the TAB file 2. You may have your false_easting and false_northing values swapped in the PROJECTION object of your map file. Double check with the CoordSys statement in the TAB file. 3. No ellipse is given in the PROJECTION object. Add "ellps=clrk66" Since your output projection is the same as your input projection, you could just remove the two PROJECTION objects in your map file. You would still need to make a world file for the tiff file. Brent Fraser ----- Original Message ----- From: Jose Luis Gonzalez To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Monday, January 31, 2005 8:19 AM Subject: [UMN_MAPSERVER-USERS] .map and .tab files Hi everyone I can not manage to draw a raster I have. This raster is a .tiff file that has associated this .tab file: !table !version 300 !charset WindowsLatin2 Definition Table File "praha.tif" Type "RASTER" (3445375,5560000) (0,0) Label "Pt 1", (3474000,5560000) (4507,0) Label "Pt 2", (3474000,5539250) (4507,3266) Label "Pt 3" CoordSys Earth Projection 8, 1001, "m", 15, 0, 1, 3500000, 0 Units "m" RasterStyle 7 0 When I put this data to the .map file I write it as: MAP NAME praha STATUS ON IMAGETYPE PNG SIZE 800 500 SHAPEPATH "/opt/SUNappserver/domains/domain1/applications/j2ee-modules/test8" EXTENT 3445375 5539250 3474000 5560000 UNITS METERS PROJECTION "proj=tmerc" "lat_0=0" "lon_0=15" "k=1" 'x_0=0" "y_0=3500000" END WEB IMAGEPATH "/opt/SUNappserver /domains/domain1/applications/j2ee-modules/test8/" IMAGEURL "/test8/" END LAYER NAME "Nighttime lights" TYPE RASTER STATUS ON DATA "/opt/SUNappserver/domains/domain1/applications/j2ee-modules/test8/praha.tif " PROJECTION "proj=tmerc" "lat_0=0" "lon_0=15" "k=1" 'x_0=0" "y_0=3500000" END END END Am I doing it correctly? Am I missing anything? Thank you Jose Luis --------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From sophie.chaveroux at AGRICULTURE.GOUV.FR Mon Jan 31 07:55:16 2005 From: sophie.chaveroux at AGRICULTURE.GOUV.FR (sophie chaveroux) Date: Mon, 31 Jan 2005 16:55:16 +0100 Subject: display label on map Message-ID: I'd like to draw a map of the french districts with the name of each as label. Infortunatly i don't manage to display the districts' names....I use a .tab format and the name of each district are grouped in a column named Nom_Communes, the mapfile i use is the following: ..... LAYER NAME "communes" STATUS default TYPE polygon CONNECTIONTYPE OGR CONNECTION "/home/mapserverdata/path_to_tab_file/..tab UNITS KILOMETERS SIZEUNITS PIXELS LABELITEM "Nom_Communes" STYLEITEM "auto" CLASS NAME "commune" LABEL MINFEATURESIZE 40 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 0 0 0 END END END END Where does the problem come??? If someone have an idea...it would help me a lot.... From flavio at TYDAC.CH Mon Jan 31 08:12:39 2005 From: flavio at TYDAC.CH (Flavio Hendry) Date: Mon, 31 Jan 2005 17:12:39 +0100 Subject: .map and .tab files In-Reply-To: <20050131155220.40580.qmail@web26402.mail.ukl.yahoo.com> Message-ID: jose luis the tfw file represent the uppre left coords (cneter of pixel) and the resolution (and rotation params which are not supported as far as I know). In your case just and ASCII file named as your tiff wiht the extension tfw: 6.352 0 0 -6.352 3445372 5569997 Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at 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 ---------------------------------------------------------------- -----Original Message----- From: Jose Luis Gonzalez To: MAPSERVER-USERS at LISTS.UMN.EDU Date: Mon, 31 Jan 2005 16:52:20 +0100 Subject: Re: [UMN_MAPSERVER-USERS] .map and .tab files > Sorry but I don't undersand what to do in point number 1. > How can I do a .tfw file? How does it look like? > > and respect to point 3: how do you know which is the ellps parameter? > > Thanks > > Jose Luis > > Brent Fraser wrote: > Jose Luis, > > Three possibilities: > > 1. The tiff might be a plain tiff, not a GeoTiff (with registration > info > attached as a TIFF tag). Make a .tfw georeferencing "world" file for > it > using the information in the TAB file > > 2. You may have your false_easting and false_northing values swapped > in the > PROJECTION object of your map file. Double check with the CoordSys > statement in the TAB file. > > 3. No ellipse is given in the PROJECTION object. Add "ellps=clrk66" > > > Since your output projection is the same as your input projection, > you could > just remove the two PROJECTION objects in your map file. You would > still > need to make a world file for the tiff file. > > Brent Fraser > > ----- Original Message ----- > From: Jose Luis Gonzalez > To: MAPSERVER-USERS at LISTS.UMN.EDU > Sent: Monday, January 31, 2005 8:19 AM > Subject: [UMN_MAPSERVER-USERS] .map and .tab files > > > Hi everyone > > I can not manage to draw a raster I have. > This raster is a .tiff file that has associated this .tab file: > > !table > !version 300 > !charset WindowsLatin2 > Definition Table > File "praha.tif" > Type "RASTER" > (3445375,5560000) (0,0) Label "Pt 1", > (3474000,5560000) (4507,0) Label "Pt 2", > (3474000,5539250) (4507,3266) Label "Pt 3" > CoordSys Earth Projection 8, 1001, "m", 15, 0, 1, 3500000, 0 > Units "m" > RasterStyle 7 0 > > When I put this data to the .map file I write it as: > > MAP > NAME praha > STATUS ON > IMAGETYPE PNG > SIZE 800 500 > SHAPEPATH > "/opt/SUNappserver/domains/domain1/applications/j2ee-modules/test8" > EXTENT 3445375 5539250 3474000 5560000 > UNITS METERS > PROJECTION "proj=tmerc" "lat_0=0" "lon_0=15" "k=1" 'x_0=0" > "y_0=3500000" > END > WEB > IMAGEPATH "/opt/SUNappserver > /domains/domain1/applications/j2ee-modules/test8/" > IMAGEURL "/test8/" > END > LAYER > NAME "Nighttime lights" > TYPE RASTER > STATUS ON > DATA > "/opt/SUNappserver/domains/domain1/applications/j2ee-modules/test8/pr > aha.tif > " > PROJECTION "proj=tmerc" "lat_0=0" "lon_0=15" "k=1" 'x_0=0" > "y_0=3500000" > END > END > END > Am I doing it correctly? > Am I missing anything? > Thank you > Jose Luis > > > --------------------------------- > > From bfraser at GEOANALYTIC.COM Mon Jan 31 08:16:45 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Mon, 31 Jan 2005 09:16:45 -0700 Subject: .map and .tab files Message-ID: For a world file description, have a look at: http://lists.umn.edu/cgi-bin/wa?A2=ind0501&L=mapserver-users&P=R31342&I=-3&X=5DD2E75F03DF29CF75 Sorry about the ellps info (it's not Clark 1866). Your tab file shows 1001 as the datum code. From the MapInfo doc, this indicates a datum of Pulkovo 1942, which uses the the Krassovsky ellipsoid. Your PROJECTION object should include the Proj4 keyword of "ellps=krass" Brent ----- Original Message ----- From: Jose Luis Gonzalez To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Monday, January 31, 2005 8:52 AM Subject: Re: [UMN_MAPSERVER-USERS] .map and .tab files Sorry but I don't undersand what to do in point number 1. How can I do a .tfw file? How does it look like? and respect to point 3: how do you know which is the ellps parameter? Thanks Jose Luis Brent Fraser wrote: Jose Luis, Three possibilities: 1. The tiff might be a plain tiff, not a GeoTiff (with registration info attached as a TIFF tag). Make a .tfw georeferencing "world" file for it using the information in the TAB file 2. You may have your false_easting and false_northing values swapped in the PROJECTION object of your map file. Double check with the CoordSys statement in t he TAB file. 3. No ellipse is given in the PROJECTION object. Add "ellps=clrk66" Since your output projection is the same as your input projection, you could just remove the two PROJECTION objects in your map file. You would stillneed to make a world file for the tiff file. Brent Fraser ----- Original Message ----- From: Jose Luis Gonzalez To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Monday, January 31, 2005 8:19 AM Subject: [UMN_MAPSERVER-USERS] .map and .tab files Hi everyone I can not manage to draw a raster I have. This raster is a .tiff file that has associated this .tab file: !table !version 300 !charset WindowsLatin2 Definition T able File "praha.tif" Type "RASTER" (3445375,5560000) (0,0) Label "Pt 1", (3474000,5560000) (4507,0) Label "Pt 2", (3474000,5539250) (4507,3266) Label "Pt 3" CoordSys Earth Projection 8, 1001, "m", 15, 0, 1, 3500000, 0 Units "m" RasterStyle 7 0 When I put this data to the .map file I write it as: MAP NAME praha STATUS ON IMAGETYPE PNG SIZE 800 500 SHAPEPATH "/opt/SUNappserver/domains/domain1/applications/j2ee-modules/test8" EXTENT 3445375 5539 250 3474000 5560000 UNITS METERS PROJECTION "proj=tmerc" "lat_0=0" "lon_0=15" "k=1" 'x_0=0" "y_0=3500000" END WEB IMAGEPATH "/opt/SUNappserver /domains/domain1/applications/j2ee-modules/test8/" IMAGEURL "/test8/" END LAYER NAME "Nighttime lights" TYPE RASTER STATUS ON DATA "/opt/SUNappserver/domains/domain1/applications/j2ee-modules/test8/praha.tif " PROJECTION "proj=tmerc" "lat_0=0" "lon_0=15" "k=1" 'x_0=0" "y_0=3500000" END END END Am I doing it correctly? Am I missing anything? Thank you Jose Luis From fwarmerdam at GMAIL.COM Mon Jan 31 08:39:03 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Mon, 31 Jan 2005 11:39:03 -0500 Subject: Problems building PHP MapScript on WIN32 In-Reply-To: Message-ID: On Sat, 29 Jan 2005 21:34:02 -0600, Bob Bruce wrote: > I am attempting to build MapScript and am getting some compilation errors > when the make is compiling php_mapscript.c. These are the errors that are > being displayed: ... > c:\regex-0.12\regex.h(346) : see declaration of 'regex_t' > C:\Downloads\PHP\php-4.3.7\regex/regex.h(27) : error C2371: 'regmatch_t' : > redefinition; different b > asic types Bob, I believe this problem is covered in the win32 build howto. http://mapserver.gis.umn.edu/doc44/win32_compile-howto.html Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From cdaily at GMAIL.COM Mon Jan 31 08:43:44 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Mon, 31 Jan 2005 10:43:44 -0600 Subject: addFeature and queryByPoint in PHP mapscript Message-ID: I'm trying to find a way to use queryByPoint against a layer that I've generated on-the-fly in PHP mapscript. I've found a number of previous posts to this list regarding the same error (usually in perl, not PHP) but I can't find any adequate solution. I'm adding my points to the layer like this: $point = ms_newPointObj(); $point->setXY($longitude, $latitude); $line = ms_newLineObj(); $line->add($point); $shape = ms_newShapeObj(MS_SHAPE_POINT); $shape->add($line); $shape->values = $values; $layer->addFeature($shape); And the layer works just fine. It displays on the map perfectly. When I try to run queryByPoint against this layer, though, my shapes always end up with a tileindex and shapeindex of -1 from the getResult call. getShape of course fails with indexes of -1. I've tried setting my layer to MS_INLINE, but that doesn't seem to fix anything. From the solutions I've seen on the web for people using perl to do this, it seems that they're doing a $shape->index = x, just setting the indexes themselves. Unfortunately, in PHP, the index property of the shape object is read only. No matter what I've tried, I always get a shape and tile index of -1. I know that I could just generate a shapefile to do this, but my data will be changing fairly often, and I don't want to have to keep updating my shapefiles. From cdaily at GMAIL.COM Mon Jan 31 08:49:39 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Mon, 31 Jan 2005 10:49:39 -0600 Subject: raster error In-Reply-To: <20050131154606.72976.qmail@web26401.mail.ukl.yahoo.com> Message-ID: Are you using any mapscript to draw your map? I've been seeing this error on my site too, but I haven't had much chance to debug it. Everything seems to be working fine; just keep getting that error. -Camden From mms at GNETCONSULTING.COM Mon Jan 31 08:49:47 2005 From: mms at GNETCONSULTING.COM (Joel Firestone) Date: Mon, 31 Jan 2005 11:49:47 -0500 Subject: Fw: Calculate extents based on points Message-ID: Dear List: I'm looking for a possible calculation/code snippet that I could calculate an extent, based on the max points returned. Here's my scenario: I do a query on a db, based on given criteria. I plot the results on a map. If no state is chosen, I have a default view I display (basically the east coast of the US). What I would like to do is zoom in, using the min and max decimal degrees calculated. So, if the top-most point was in NJ, and the bottom-most was in MD, it would just include those areas, and not the default east coast view. I hope this makes sense. I'm using PHP/MapScript with MapServer 4.2.5. Thanks for your time and help. Joel From cdaily at GMAIL.COM Mon Jan 31 09:25:17 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Mon, 31 Jan 2005 11:25:17 -0600 Subject: Fw: Calculate extents based on points In-Reply-To: <011201c507b4$df6abff0$1400a8c0@desktop> Message-ID: Maybe this would work: Calculate half your extent $offset_x = ($max_x - $min_x) / 2; $offset_y = ($max_y - $min_y) / 2; Find the midpoint $mid_x = $max_x - $offset_x; $mid_y = $max_y - $offset_y; $mid_point = ms_newpointObj(); $mid_point->setXY($mid_x, mid_y); Make your new extent $new_extent = array($longitude - $offset_x, $latitude - $offset_y, $longitude + $offset_x, $latitude + $offset_y); Zoom to the new point with the new extents $map->zoompoint(1, $mid_point, $map->width, $map->height, $new_extent); From mms at GNETCONSULTING.COM Mon Jan 31 09:34:27 2005 From: mms at GNETCONSULTING.COM (Joel Firestone) Date: Mon, 31 Jan 2005 12:34:27 -0500 Subject: Fw: Calculate extents based on points Message-ID: Camden: Thanks for the tip. I'll give it a try. Joel ----- Original Message ----- From: "Camden Daily" To: Sent: Monday, January 31, 2005 12:25 PM Subject: Re: [UMN_MAPSERVER-USERS] Fw: Calculate extents based on points > Maybe this would work: > > Calculate half your extent > $offset_x = ($max_x - $min_x) / 2; > $offset_y = ($max_y - $min_y) / 2; > > Find the midpoint > $mid_x = $max_x - $offset_x; > $mid_y = $max_y - $offset_y; > $mid_point = ms_newpointObj(); > $mid_point->setXY($mid_x, mid_y); > > Make your new extent > $new_extent = array($longitude - $offset_x, $latitude - $offset_y, > $longitude + $offset_x, $latitude + $offset_y); > > Zoom to the new point with the new extents > $map->zoompoint(1, $mid_point, $map->width, $map->height, $new_extent); > From hobu at IASTATE.EDU Mon Jan 31 11:14:41 2005 From: hobu at IASTATE.EDU (Howard Butler) Date: Mon, 31 Jan 2005 13:14:41 -0600 Subject: raster error In-Reply-To: Message-ID: Camden and Jose, This was posted a little over a week ago, and it describes what you need to add to the mapfile. Howard >Mattieu, > >You need to set a wms_extent in the METADATA to prevent MapServer from >trying to query for one. See >http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1118 for more detail. > >Howard From fsozzi at INTERCAD.CH Mon Jan 31 11:20:32 2005 From: fsozzi at INTERCAD.CH (Francesco Sozzi) Date: Mon, 31 Jan 2005 20:20:32 +0100 Subject: IIS and Oracle Permission Message-ID: Ok Fernando, thank you... As you suggested, problem 4 has been related to permission on Oracle bin folder. In summary: if mapserver cant't connect to Oracle and gives errors on wrong connect string (on correct connect strings!), may be you can fixing by setting right permissions: 1) go to Explore, Tools->Folder options 2) uncheck "use simple file sharing" on Wiew tab 3) go to Oracle bin folder and open "Sharing and Security", Security tab 4) add Read&Execute, List folder and Read on "Everyone" and on Internet Guest Account (should be IUSR_..., you can check from IIS into Properties of web site, opening Directory Security and pressing Edit button) Best regards Francesco ----- Original Message ----- From: "Fernando S." To: "Francesco Sozzi" Sent: Monday, January 31, 2005 3:13 PM Subject: Re: some possible bugs on Mapserver/Oracle Spatial > Hi Francesco, > Thanks for your help. > About the problem 1 I'll check this after I finish the new version. > The problem with the lenght I didn't see this problem here, I tested > with the same name and worked corectly, but for the next version I > changed the core of the code where I create the items buffer. The > problem with the size of layer data I didn't know, in the code (since > 3.6 of Mapserver) the data string is defined with 6000 of size. > The problem 3 I already know, the problem is that the OCI return > error with null values inside the columns, I fixed this problem with 4.4 > version but I'll check the how Oracle return this null values. > The problem 4 can be with the IIS permissions to access the oracle > dll's. Another problem can be with the global variables, you can check > the oracle global variables for the system. > In problem 1: > > - If I remove "ic_areeverdi" layer leaving "ic_manufatti" alone, the script > works... > > It's can be a problem with maplexer and not with oracle, I don't > check in the code the number of layers. Or thsi problem can be with > connection pool support inside the code. I'll check the oracle part. > Thanks. > > Fernando Simon > > > Francesco Sozzi wrote: > > >Hi Fernando, > > > >I'am stressing mapserver with a lot of Oracle Spatial data and I discovered > >some potential bugs. > >They are not simple to isolate because the same action many times seems to > >work, but sometime make mapserver crashes. > > > >--------------------- > >--------------------- > >PROBLEM 1: crash on opening layer after selection > >--------------------- > >--------------------- > > > >I prepared a sample that I hope allow you to replicate this problem. > > > >In test.php I open a map file where I have a first layer OFF and a second > >Oracle Spatial layer ON. > >I try to make a spatial selection and then I try to open layer; when I open > >layer, mapserver crashes (as you can see in the image); please note that I'm > >testing on one PC with both mapserver and Internet Explorer. > > > >The presence of a layer "ic_areeverdi" with status OFF seems to be relevant > >to generate the error. This layer can read from anywhere, it is not > >important; you can also set DATA "". > > > >Some notes: > >- If I remove "ic_areeverdi" layer leaving "ic_manufatti" alone, the script > >works... > >- if I make a spatail selection on other regions, many time it works > >properly, but in this region not (and also on many other). > >- I have to rename fields, because there are many words token that make > >mapserver crashes (for instance ANNO). This makes difficult to choose > >meaningful aliases for fields (about this problem we already talked in the > >previous mails) > >- if I remove some fields from selection, it works > > > > > >--------------------- > >--------------------- > >PROBLEM 3: wrong result on null numeric fields > >--------------------- > >--------------------- > > > >A second problem is on NULLs on numeric fields (this problem is not > >generated on string fields). > > > >In test2.php I write a result (string lenght and value) on a query where I > >expect to see for each > > > >LEN: = > >VALUE: > > > >But what I see is something like: > > > >LEN: 4 > >VALUE: ???? > >LEN: 0 > >VALUE: > >LEN: 0 > >VALUE: > >LEN: 4 > >VALUE: ???? > >LEN: 0 > >VALUE: > >LEN: 2 > >VALUE: w > >LEN: 4 > >VALUE: ???? > >LEN: 0 > >VALUE: > >LEN: 2 > >VALUE: ? > >LEN: 4 > >VALUE: ???? > >LEN: 0 > >VALUE: > >LEN: 0 > >... > > > > > >Before testing, you should add a field TESTNUM: > > > >ALTER TABLE "TI_MANUFATTI"."IC_KUBA_MANUFATTI" > > ADD ("TESTNUM" NUMBER(10) NOT NULL) > > > > > >--------------------- > >--------------------- > >PROBLEM 4 : in some cases mapserver seems not able to connect to Oracle > >--------------------- > >--------------------- > > > >I tried to install with success mapserver on 4 PC with Oracle Spatial option > >and for all I used IIS on XP Professional. > > > >I then tried to install on another PC, but on this I can't connect to > >Oracle. > >Everithing seems to work properly (I can open shp layers, make pan, zoom > >etc...), but If I try to issue Draw() on an Oracle layer I get: > > > >Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'Fondi > >(oracle)'. in C:\App\QueryMapWEB\runtime\qm\scripts\ic_php_map.inc on line > >438 > > > >Warning: [MapServer Error]: msOracleSpatialLayerOpen(): Cannot create OCI > >Handlers. Connection failure. Check the connection string. Error: . in > >C:\App\QueryMapWEB\runtime\qm\scripts\ic_php_map.inc on line 438 > > > >I am sure on connection string, because I can use on SQL*Worksheet and in > >some other application. > > > >Can you suggest me something more to check? > > > > > >Best regards > > > >Francesco > > > > > > > From dbarron at DSWLLC.COM Mon Jan 31 12:00:20 2005 From: dbarron at DSWLLC.COM (Dan Barron) Date: Mon, 31 Jan 2005 12:00:20 -0800 Subject: Russian 1:1000000 SHP Data Message-ID: Hello, I can't seem to get my Russian DCW shape data to render properly with mapserver - can anyone point me to a known good free SHP set for Russia? Thanks!! Dan Barron From Tom.Kralidis at EC.GC.CA Mon Jan 31 13:06:23 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Mon, 31 Jan 2005 16:06:23 -0500 Subject: Can't see data Message-ID: (I wasn't sure which list to post to [mapserver-users | postgis-users], so I try this one first) Hi, I have (I think) successfully loaded data into PostGIS and am trying to access it via MapServer WMS / WFS. I verified that the data in the PostGIS instance is okay by running pgsql2shp and testing the output shapefile. Except for truncated col names, all is well. Here's my mapfile chunk: # mapfile chunk: NAME "service_endpoints" CONNECTIONTYPE postgis CONNECTION "user=postgres dbname=devgeodb" DATA "the_geom from service_endpoints" In WMS, when I run a GetCapabilities on the server, all is fine. In WMS, when I run a GetMap on the server, I get a blank map back. In WFS, when I run a GetCapabilities on the server, all is fine. In WFS, when I run a DescribeFeatureType on the server, all is fine. You can see the table just fine. In WFS, when I run a GetFeature on the server, I get a blank result set back: missing Any hints as to what's going on? If MapServer wasn't connecting to PostGIS correctly, then the WFS DescribeFeatureType request wouldn't be able to read the table. ..Tom From pramsey at REFRACTIONS.NET Mon Jan 31 13:16:21 2005 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Mon, 31 Jan 2005 13:16:21 -0800 Subject: Can't see data In-Reply-To: <2576812186CDD411BF1500508B6DCE950972F4C3@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Any change your bbox is not in fact over your data? (projection, etc?) Turn on DEBUG and see what the SQL being generated is. Put it into psql and see what you get. Paul Kralidis,Tom [Burlington] wrote: > (I wasn't sure which list to post to [mapserver-users | postgis-users], > so I try this one first) > > Hi, > > I have (I think) successfully loaded data into PostGIS and am trying to > access it via MapServer WMS / WFS. > > I verified that the data in the PostGIS instance is okay by running > pgsql2shp and testing the output shapefile. Except for truncated col > names, all is well. > > Here's my mapfile chunk: > > # mapfile chunk: > > NAME "service_endpoints" > CONNECTIONTYPE postgis > CONNECTION "user=postgres dbname=devgeodb" > DATA "the_geom from service_endpoints" > > In WMS, when I run a GetCapabilities on the server, all is fine. > > In WMS, when I run a GetMap on the server, I get a blank map back. > > In WFS, when I run a GetCapabilities on the server, all is fine. > > In WFS, when I run a DescribeFeatureType on the server, all is fine. > You can see the table just fine. > > In WFS, when I run a GetFeature on the server, I get a blank result set > back: > > > > missing > > > > Any hints as to what's going on? If MapServer wasn't connecting to > PostGIS correctly, then the WFS DescribeFeatureType request wouldn't be > able to read the table. > > ..Tom From nicolas.fortin at EC.GC.CA Mon Jan 31 13:21:12 2005 From: nicolas.fortin at EC.GC.CA (Fortin,Nicolas [SteFoy]) Date: Mon, 31 Jan 2005 16:21:12 -0500 Subject: Mapserver html output and DOCTYPE... Message-ID: Hi list, Is there a way to remove the mapserv -v output commented at the beggining of the output html when using template file with mapserver?? I explain: I use DOCTYPE declaration for my xhtml to be valid and for Internet Explorer 6, DOCTYPE declaration MUST be at the first line of the xhtml. If it's not, IE pass in quirk mode and the layout is not really what expected. If not, perhaps future version should put this comment elsewhere in the output. We, w3c compliant xhtml coder, will be really grateful :) Thanks, 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 From Tom.Kralidis at EC.GC.CA Mon Jan 31 18:35:28 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Mon, 31 Jan 2005 21:35:28 -0500 Subject: Mapserver html output and DOCTYPE... Message-ID: I had a similar issue using MapServer CGI and trying to write xhtml strict, for example. And there's much more than the doctype issues. For example, strict xhtml writes the SELECTED token in a select option as selected="selected". Currently MapServer writes as the former. Not sure what the best approach is here to solve different more strict HTML flavours and how MapServer outputs form type values. ..Tom > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of > Fortin,Nicolas [SteFoy] > Sent: Monday, 31 January, 2005 16:21 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Mapserver html output and DOCTYPE... > > > Hi list, > > Is there a way to remove the mapserv -v output commented at > the beggining of the output html when using template file > with mapserver?? > > I explain: I use DOCTYPE declaration for my xhtml to be valid > and for Internet Explorer 6, DOCTYPE declaration MUST be at > the first line of the xhtml. If it's not, IE pass in quirk > mode and the layout is not really what expected. > > If not, perhaps future version should put this comment > elsewhere in the output. We, w3c compliant xhtml coder, will > be really grateful :) > > Thanks, > > 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 > From tylermitchell at SHAW.CA Mon Jan 31 21:13:08 2005 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Mon, 31 Jan 2005 21:13:08 -0800 Subject: MapScript lineObj to create a Point? Message-ID: Am I reading the docs right? I want to create a point shapefile, but need to first create a lineObj and .add() to it. Then .add() that lineObj to my ShapeObj...then .add() that to my shapefileObj? This is the best I can come up with as an example. Can I shortcut this at all? myPoints = mapscript.pointObj(-121, 54) myShapes = mapscript.shapeObj(0) myLine = mapscript.lineObj() myLine.add(myPoints) myShapes.add(myLine) myShapefile = mapscript.shapefileObj("myshapefile.shp",1) myShapefile.add(myShapes) From jlacroix at DMSOLUTIONS.CA Mon Jan 31 08:04:00 2005 From: jlacroix at DMSOLUTIONS.CA (Julien-Samuel Lacroix) Date: Mon, 31 Jan 2005 11:04:00 -0500 Subject: Mapserver / Mysql In-Reply-To: Message-ID: Hi, You can either use a Virtual Data Source to load MySQL data in MapServer directly: http://ogr.maptools.org/drv_vrt.html Or dynamicly draw the points on your image using mapscript: // (Example in PHP) // Load the data from MySQL using PHP // Then draw the map to get an imageObj // Then: $point = new pointObj(); $point->setXY($lon_from_mysql, $lat_from_mysql); $point->draw($map, $layer, $img, $class, $label); //Check http://mapserver.gis.umn.edu/doc42/phpmapscript-class-guide.html#pointobj Julien Nishant Chandra wrote: > I have mapserver and mysql installation on windows. > > I use the .shp/.dbf file to generate the base map. what i want is to read > some coordinates and names from Mysql db and project it onto the map already > rendered. can some1 give me an example code to query mysql and the map file/. > phtml file. > -- ------------------------------------------------------------ Julien-Samuel Lacroix jlacroix at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From jlacroix at DMSOLUTIONS.CA Mon Jan 31 07:51:44 2005 From: jlacroix at DMSOLUTIONS.CA (Julien-Samuel Lacroix) Date: Mon, 31 Jan 2005 10:51:44 -0500 Subject: installation problems [was Re: Example Maps] In-Reply-To: Message-ID: Hello, Did you succeed to compile as a CGI. Nothing is missing in your configuration. You may want to add --with-regex=system But this does not prevent the CGI to compile. The cgi executable is supposed to be in sapi/cgi/ if you do a simle test.php page: Does the phpinfo page show the loaded mapscript extension? Julien Nicole Faust wrote: > Hello, > > This are the options that I used, to configure PHP: > > ./configure --with-gd=/home/n_faust/software/projekt > --with-pgsql=/home/n_faust/software/projekt --enable-force-cgi-redirect > --enable-fastcgi --prefix=/home/n_faust/software/projekt > > Are there any options missing? > > Regards, > Nicole > > > On Tue, 25 Jan 2005, Julien-Samuel Lacroix wrote: > > >>Hi, >> >>Check the installation instruction for your OS: >>http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScript >> >>Normally adding --enable-force-cgi-redirect to your configure command >>should do the job. > > -- ------------------------------------------------------------ Julien-Samuel Lacroix jlacroix at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------