From Steve.Lime at DNR.STATE.MN.US Mon Jan 1 11:19:08 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 1 Jan 2007 13:19:08 -0600 Subject: Drawing on Mapserver Message-ID: There two ways to draw circles: - use a circle layer - or use a circle symbol The latter is probably more interesting for you when you combine it with SIZEUNITS. With that you can do stuff like: SYMBOL NAME 'a circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END LAYER NAME 'some circle' TYPE POINT ... SIZEUNITS KILOMETERS CLASS STYLE SYMBOL 'a circle' SIZE 10 COLOR 255 0 0 END END END This snippet will draw circles 10km in diameter at each data point. Hope this helps. Steve >>> Dave Potts 12/30/06 2:47 PM >>> Hi I am trying to draw a circle around a given point at given radius in a map server generated image. Due to the platform I am using its impossible to use mapscript , php or javascript. Is it possible to do something like this by using the symbolset file ? Is it possible to do something sly with polygon file ? David. From Steve.Lime at DNR.STATE.MN.US Mon Jan 1 15:57:54 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 1 Jan 2007 17:57:54 -0600 Subject: Digital Map Philosophy Message-ID: One other comment. Note that in some cases data and styling are bound together so there is a real advantage to keeping them side-bt-side. For example, a user might apply an angle stored as an attribute (e.g. wind direction), or a color. Totally disjoint definitions make that difficult to support. In the end you need lots of flexibility to keep everyone happy. The INCLUDE should help (note that you can nest INCLUDEs up to 5 deep). In addition, there has been some discussion on supporting external SLD definitions as well for 5.0. Steve >>> Bill Thoen 12/31/06 12:03 PM >>> I've been exploring MapServer for only a week or so, so maybe I'm missing something, but I have a problem with the LAYER philosophy that combines the data definition with the rendering style. I think these definitions should be physically separate, or at least there should be a way to redefine a layer's graphic representation after the data have been associated with a named layer. For example, I have a collection of styles that I prefer to use for entities like roads, lakes and rivers, municipal boundaries, landmarks and so on. I actually have multiple sets that depend on the map scale and/or the client or map purpose. But the data often come from different sources, or at least they require different selections if you're drawing from a national data set for a local area. To make the data-map interface consistent I also ensure that the names, types and ranges of certain attributes are standardized (e.g. I have a field named 'class' for roads that contains standard values for the type of graphic representation I'll want for that road line, and for street name annotation, I use 'name' and 'route' and 'shield' for labeling highways with route numbers above shield symbols). Using this convention I could simply cut and paste or INCLUDE the parts of a map file that apply CLASS and STYLE parameters to my roads layer. The problem I have with MapServer's LAYER definition in the map file is that I have to define the DATA selection parameters with the CLASS and STYLE parameters. It seems to me that it would be more flexible to create layers by assigning the layer name to a data selection (and perhaps provide a default graphic style) but then later in the map file apply a graphic style to the features for that layer. If that were possible I could build a standard set of named base map layers and then simply apply a "style file" through an INCLUDE statement that would set the symbology for each standard layer. One of the "products" that I provide to clients is a map series for fire departments in support of emergency planning, and it's important that the cartographic representation of map features be consistent and easily recognizable. I can certainly do this with MapServer as it is now, but I'll either have to do a lot more (error prone) cutting and pasting or build a script to automatically generate map files for different map areas. IMHO, the guiding philosophy should be that map content (points, lines, polygons and annotation) be as separated from the styling as possible, but it seems that MapServer binds these elements together at the LAYER level. I think this belongs at the MAP level or at least there should be an option to do so at that level. The idea is similar to the philosophy that applies to html documents and css. But like I said above, I'm pretty new to MapServer and maybe there's a solution or convention I just haven't discovered yet. So what do people do when they want to produce consistent-looking maps over several MapServer projects? Happy New Year! - Bill Thoen From parrott.sarah at GOOGLEMAIL.COM Tue Jan 2 01:30:39 2007 From: parrott.sarah at GOOGLEMAIL.COM (Sarah Parrott) Date: Tue, 2 Jan 2007 09:30:39 +0000 Subject: limit the area displayed on the map Message-ID: Hi, Is there a way (for example adding a parameter to the querystrinng) to limit the area of the map that is displayed, and therefore display that part at a larger scale? I have tried changing the extent but that doesn't seem to work. I want to be able to display the full extent of the map and then allow the user to click and zoom in on it. I have got this partially working by inserting my map file into the itasca demo. However, this seems to involve the querystring putting the map into 'Browse' mode. I need the map to be in 'nquery' mode because I generate an imagemap using a TEMPLATE within the LAYER specification of my map. When the map is in browse mode it uses the TEMPLATE specified in the MAP clause, and seems to ignore my image map. Any help would be great. Thanks, Sarah -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at DMSOLUTIONS.CA Tue Jan 2 10:09:31 2007 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Tue, 2 Jan 2007 13:09:31 -0500 Subject: ArcSDE on Oracle authentication times In-Reply-To: <5a9686e80612171119h2d913758jb7b4565f4c8b285f@mail.gmail.com> Message-ID: Mike, For the record MS4W-MapServer builds are compiled with the Windows buildkit (http://marsctl1.sdsc.edu/buildkit/). jeff Mike Saunt wrote: > Thanks Frank and Paul > > Basically I guess we'll get everything setup here to link in FastCGI on > Windows with IIS. > > I'll get on to this quite soon but have one additional question for the > guys who put together the MS4W binaries (as these are what we've used so > far and worked very nicley) - is there anything special done when > compiling MS4W? > > Is there a standard set of config / make files for MS4W that we could > get to use? > Also we'd be using in a couple of scenarios - standard MS4W and also > compiling against ArcSDE / Oracle. > > If anyone can help with the config / make files it would be > appreciated. We'll post back our findings in January > > Thanks in advance > Mike > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From wef1 at CEC.WUSTL.EDU Tue Jan 2 10:10:05 2007 From: wef1 at CEC.WUSTL.EDU (Edward Fialkowski) Date: Tue, 2 Jan 2007 12:10:05 -0600 Subject: SLD troubles -desperate! Message-ID: I have been unable to get my WMS capable MapServer to recognize an sld passed in through the url (SLD=http:...) The sld is readable, I have tested it on an example from the SLD documentation - i.e. written my own SLD and pointed to it from the example, works perfectly. I am totally out of ideas as to why I cannot get it to show up on my own server. I'll give as much information as i can, any help would be extremely appreciated. map file: MAP NAME "All" STATUS on SIZE 800 600 EXTENT -2200000 -712631 3072800 3840000 UNITS METERS SHAPEPATH "/var/www/html/mapserver/mapdata/" IMAGECOLOR 220 220 220 FONTSET "/var/www/html/mapserver/mapdata/" WEB IMAGEPATH "/var/www/html/tmp/" IMAGEURL "/tmp/" METADATA "wms_title" "All" "wms_onlineresource" "http://niceguy.wustl.edu/cgi-bin/mapserv.exe?" "wms_srs" "epsg:4326" END END PROJECTION "init=epsg:4326" END LAYER NAME NAmer_bdr METADATA "wms_title" "NAmer_bdr" END TYPE LINE STATUS on DATA bound_p PROJECTION "init=epsg:4326" END CLASS STYLE OUTLINECOLOR 0 0 0 END END END SLD File: NAmer_bdr NAmer_bdr center-line #00FF00 and just in case: [root at niceguy mapserver-4.10.0]# ./mapserv -v MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=GDAL INPUT=SHAPEFILE Please, please any help. Thanks! -Ed -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at MAPGEARS.COM Tue Jan 2 13:03:52 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Tue, 2 Jan 2007 16:03:52 -0500 Subject: PHP PROJ module In-Reply-To: Message-ID: William Kyngesburye wrote: > I was poking around in the build setup for PHP Mapscript and noticed an > option to build a php_proj module. What's the status of this? stable? > outdated? useful? > I think I'd go with outdated. I believe Assefa has migrated the functionality that used to be provided by the php_proj module into php_mapscript, but we'd need him to confirm that I'm not mistaken. Daniel -- Daniel Morissette http://www.mapgears.com/ From siukola.antti at GMAIL.COM Wed Jan 3 02:15:20 2007 From: siukola.antti at GMAIL.COM (antti siukola) Date: Wed, 3 Jan 2007 12:15:20 +0200 Subject: Problem with SHP files In-Reply-To: Message-ID: Hi! It seems that I have another kind of problem also. I have a shp-file that doesn't get drawed. This is how it is in map-file: LAYER NAME "name" TYPE POLYGON STATUS ON DATA "/path/to/shp" CLASS NAME "name" # TEMPLATE COLOR 215 232 195 #OUTLINECOLOR 0 0 0 END END I can open the shp in quantum gis perfectly but mapserver doesn't draw it. Antti S On 12/15/06, antti siukola wrote: > No. It's my own interface and I also render new images on every request. > > Antti > > On 12/15/06, Andy Freed wrote: > > Are you using Ka-map or any other tiled interface for your map? You > > may need to delete all the old tiles before the new shapefiles are > > rendered. > > > > > > Andy Freed > > afreed at pdx.edu > > http://web.pdx.edu/~afreed > > > > On Dec 15, 2006, at 9:04 AM, antti siukola wrote: > > > > > Hi! > > > > > > I'm having a problem with SHP files. I over wrote couple of SHP files > > > but mapserver seems to render the old ones. I print labels from these > > > shapes and the labels aren't updated. Is there a cache that I can > > > clear? > > > > > > Thanks! > > > > > > Antti > > > > > > > > From bthoen at GISNET.COM Wed Jan 3 05:41:18 2007 From: bthoen at GISNET.COM (Bill Thoen) Date: Wed, 3 Jan 2007 06:41:18 -0700 Subject: Problem with SHP files In-Reply-To: Message-ID: Is the native coordinate system the same as your map's? Yo umay need to add a PROJECTION object to your layer. You can use ogrinfo to verify that the coordinate system is as you expect. On Wed, Jan 03, 2007 at 12:15:20PM +0200, antti siukola wrote: > Hi! > > It seems that I have another kind of problem also. I have a shp-file > that doesn't get drawed. > This is how it is in map-file: > LAYER > NAME "name" > TYPE POLYGON > STATUS ON > DATA "/path/to/shp" > CLASS > NAME "name" > # TEMPLATE > COLOR 215 232 195 > #OUTLINECOLOR 0 0 0 > END > END > > I can open the shp in quantum gis perfectly but mapserver doesn't draw it. > From David.Fawcett at STATE.MN.US Wed Jan 3 05:52:06 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Wed, 3 Jan 2007 07:52:06 -0600 Subject: Problem with SHP files In-Reply-To: A<20070103134118.GA7903@www.gisnet.com> Message-ID: Have you tried STATUS DEFAULT? -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bill Thoen Sent: Wednesday, January 03, 2007 7:41 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Problem with SHP files Is the native coordinate system the same as your map's? Yo umay need to add a PROJECTION object to your layer. You can use ogrinfo to verify that the coordinate system is as you expect. On Wed, Jan 03, 2007 at 12:15:20PM +0200, antti siukola wrote: > Hi! > > It seems that I have another kind of problem also. I have a shp-file > that doesn't get drawed. This is how it is in map-file: > LAYER > NAME "name" > TYPE POLYGON > STATUS ON > DATA "/path/to/shp" > CLASS > NAME "name" > # TEMPLATE > COLOR 215 232 195 > #OUTLINECOLOR 0 0 0 > END > END > > I can open the shp in quantum gis perfectly but mapserver doesn't draw > it. > From havard.tveite at UMB.NO Wed Jan 3 06:08:13 2007 From: havard.tveite at UMB.NO (Havard Tveite) Date: Wed, 3 Jan 2007 15:08:13 +0100 Subject: Mapfile WMS connection string parsing problem for layer names with dots/periods (".") Message-ID: I am experiencing problems with a WMS connections where layer names contain dots/periods ("."). Whenever a layer name with a "." appears in the "LAYERS" parameter of the WMS connection string, mapserver has trouble parsing the connection string. From the Mapserver log (connect string is: "http://wms.server.org/wms_test?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&TEST.TEST&STYLES=&FORMAT=image/png"): msOWSParseVersionString(): WMS server error. Invalid version (1.1.1&SERVICE=WMS&REQUEST=GetMap&TEST.TEST&STYLES=&FORMAT=image/png). OWS version must be in the format 'x.y' or 'x.y.z'
If I remove the "." no parsing errors occur. Are periods/dots (".") allowed in WMS Layer Name? If so, is this a bug? -- H?vard Tveite Department of Mathematical Sciences and Technology, UMB Dr?bakveien 14, POBox 5003, N-1432 ?s, NORWAY Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt From dmorissette at MAPGEARS.COM Wed Jan 3 06:36:34 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Wed, 3 Jan 2007 09:36:34 -0500 Subject: Mapfile WMS connection string parsing problem for layer names with dots/periods (".") In-Reply-To: <459BB8CD.40509@umb.no> Message-ID: Just looking at the error message it's not obvious what is really happening. Could you share your full layer definition from the mapfile? Also, which version of MapServer are you using? Daniel Havard Tveite wrote: > I am experiencing problems with a WMS connections where > layer names contain dots/periods ("."). > Whenever a layer name with a "." appears in the "LAYERS" > parameter of the WMS connection string, mapserver has > trouble parsing the connection string. > > From the Mapserver log (connect string is: > "http://wms.server.org/wms_test?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&TEST.TEST&STYLES=&FORMAT=image/png"): > > msOWSParseVersionString(): WMS server error. Invalid version > (1.1.1&SERVICE=WMS&REQUEST=GetMap&TEST.TEST&STYLES=&FORMAT=image/png). > OWS version must be in the format 'x.y' or 'x.y.z'
> > If I remove the "." no parsing errors occur. > > Are periods/dots (".") allowed in WMS Layer Name? > If so, is this a bug? > -- Daniel Morissette http://www.mapgears.com/ From havard.tveite at UMB.NO Wed Jan 3 07:08:29 2007 From: havard.tveite at UMB.NO (Havard Tveite) Date: Wed, 3 Jan 2007 16:08:29 +0100 Subject: Mapfile WMS connection string parsing problem for layer names with dots/periods (".") In-Reply-To: <459BBF72.3030600@mapgears.com> Message-ID: Daniel Morissette wrote: > Just looking at the error message it's not obvious what is really > happening. Could you share your full layer definition from the mapfile? > Also, which version of MapServer are you using? Sorry, I am using: MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=EPPL7 INPUT=SDE INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG OpSys is Solaris 2.7. Layer definition (real WMS server name and layer names removed): LAYER NAME "test-test" MAXSCALE 5000 MINSCALE 500 METADATA "wms_title" "Test" "wms_srs" "EPSG:32633" "wms_connectiontimeout" "200" "wms_opaque" "1" END TYPE RASTER CONNECTIONTYPE WMS CONNECTION "http://wms.server.org/wms_test?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&TEST.TEST&STYLES=&FORMAT=image/png" PROJECTION "init=epsg:32633" END END #layer H?vard > > Daniel > > > Havard Tveite wrote: >> I am experiencing problems with a WMS connections where >> layer names contain dots/periods ("."). >> Whenever a layer name with a "." appears in the "LAYERS" >> parameter of the WMS connection string, mapserver has >> trouble parsing the connection string. >> >> From the Mapserver log (connect string is: >> "http://wms.server.org/wms_test?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&TEST.TEST&STYLES=&FORMAT=image/png"): >> >> msOWSParseVersionString(): WMS server error. Invalid version >> (1.1.1&SERVICE=WMS&REQUEST=GetMap&TEST.TEST&STYLES=&FORMAT=image/png). >> OWS version must be in the format 'x.y' or 'x.y.z'
>> >> If I remove the "." no parsing errors occur. >> >> Are periods/dots (".") allowed in WMS Layer Name? >> If so, is this a bug? >> > > -- H?vard Tveite Department of Mathematical Sciences and Technology, UMB Dr?bakveien 14, POBox 5003, N-1432 ?s, NORWAY Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt From ravikapoor101 at GMAIL.COM Wed Jan 3 10:21:05 2007 From: ravikapoor101 at GMAIL.COM (Ravi) Date: Wed, 3 Jan 2007 10:21:05 -0800 Subject: changing colors in tiles without re-rendering? Message-ID: I have a strange question. I am using block group shape files to render map of US at all zoom levels. This is very processor intensive job. I want to avoid rendering tiles every time I change data as it takes me days to do so. Is it possible that somehow I draw the block group shapes and then use some image manipulation software to change color of each block group. Essentially the point is to try to avoid processing shape files every time and instead move the job to a image manipulation software which I believe will result in significant time reduction. I seriously doubt anything like this can be done but I decided to ask anyways. - Ravi From samnyoung at HOTMAIL.COM Wed Jan 3 10:45:57 2007 From: samnyoung at HOTMAIL.COM (Sam Young) Date: Wed, 3 Jan 2007 09:45:57 -0900 Subject: dbox xEvent Error Message-ID: In my dbox application I get the following error in the javascript console. Error: xEvent is not defined Source File: http://localhost/src/javascript/mapserver/dbox.js Line: 486 Is there a way to resolve this? Thanks, Sam _________________________________________________________________ From assefa at DMSOLUTIONS.CA Wed Jan 3 10:47:09 2007 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 3 Jan 2007 13:47:09 -0500 Subject: PHP PROJ module In-Reply-To: <459AC8B8.3020603@mapgears.com> Message-ID: Daniel, You are right. php_proj is outdated and all projections can be done using mapscript. Later, Daniel Morissette wrote: > William Kyngesburye wrote: >> I was poking around in the build setup for PHP Mapscript and noticed >> an option to build a php_proj module. What's the status of this? >> stable? outdated? useful? >> > > I think I'd go with outdated. I believe Assefa has migrated the > functionality that used to be provided by the php_proj module into > php_mapscript, but we'd need him to confirm that I'm not mistaken. > > > Daniel -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From Debbie.Pagurek at EC.GC.CA Wed Jan 3 11:26:33 2007 From: Debbie.Pagurek at EC.GC.CA (Pagurek,Debbie [NCR]) Date: Wed, 3 Jan 2007 14:26:33 -0500 Subject: Use of CDATA in context documents Message-ID: My project requires some special characters, such as subscripts, to be used in abstracts and titles. We tried to embed CDATA into our context documents e.g. 2.5]]> But our Chameleon application croaked. We understand that this is likely due to the fact that MapServer itself doesn't parse the CDATA part properly. We are using MS v4.6.1, Chameleon version 2.2, and PHP 4.3.11 which I know are really out of date now. Can anyone tell me if using CDATA in context docs is supported in more recent versions of MapServer? If it isn't, are their any plans to incorporate this? Thanks for the info. Debbie From bartvde at OSGIS.NL Wed Jan 3 11:46:55 2007 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Wed, 3 Jan 2007 20:46:55 +0100 Subject: Use of CDATA in context documents In-Reply-To: <3F34A5A15450C74C813BA20E31DBB45103714CD8@ncrx3.ncr.int.ec.gc.ca> Message-ID: Hi Debbie, probably a question for Frank since it uses his XML parsing code :-) Does it work if you use something like: <sub>2.5</sub> ? Best regards, Bart Pagurek,Debbie [NCR] schreef: > My project requires some special characters, such as subscripts, to be > used in abstracts and titles. We tried to embed CDATA into our context > documents e.g. > 2.5]]> > But our Chameleon application croaked. We understand that this is likely > due to the fact that MapServer itself doesn't parse the CDATA part > properly. > > We are using MS v4.6.1, Chameleon version 2.2, and PHP 4.3.11 which I > know are really out of date now. Can anyone tell me if using CDATA in > context docs is supported in more recent versions of MapServer? If it > isn't, are their any plans to incorporate this? > > Thanks for the info. > Debbie > > > -- Bart van den Eijnden OSGIS, Open Source GIS bartvde at osgis.nl http://www.osgis.nl From Steve.Lime at DNR.STATE.MN.US Wed Jan 3 11:49:37 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 3 Jan 2007 13:49:37 -0600 Subject: changing colors in tiles without re-rendering? In-Reply-To: Message-ID: I would imagine ImageMagick can handle such a task... Steve >>> Ravi 1/3/2007 12:21:05 PM >>> I have a strange question. I am using block group shape files to render map of US at all zoom levels. This is very processor intensive job. I want to avoid rendering tiles every time I change data as it takes me days to do so. Is it possible that somehow I draw the block group shapes and then use some image manipulation software to change color of each block group. Essentially the point is to try to avoid processing shape files every time and instead move the job to a image manipulation software which I believe will result in significant time reduction. I seriously doubt anything like this can be done but I decided to ask anyways. - Ravi From kbehncke at IGF.UNI-OSNABRUECK.DE Wed Jan 3 12:52:00 2007 From: kbehncke at IGF.UNI-OSNABRUECK.DE (Kai Behncke) Date: Wed, 3 Jan 2007 21:52:00 +0100 Subject: Problem: MapServer 4.10.0 with postgis on Debian 3.1 Message-ID: Hello List, since a couple of time I try to get MapServer 4.10.0 to get to run --with-postgis on Debian 3.1 Sarge. PostgreSQL (8.2) and PostGIS (1.1.6) is successfully configured, compiled and installed. I configure MapServer without any problems with: ./configure --with-proj --with-ogr --with-gdal --with-postgis=/usr/local/pgsql/bin/pg_config --with-wmsclient --with-wmsserver --with-wfsclient --with-wfs --with-tiff --with-jpeg --with-php=/usr/local/php --with-freetype --with-png ...then I compile it without any errors, but when I try to check the version with "./mapserv -v" I always get: "./mapserv: error while loading shared libraries: libpq.so.5: cannot open shared object file: No such file or directory" Has anybody got a clue what I can do to solve the problem? Thank you very much...... -- Dipl.-Geogr. Dipl.-Umweltw. Kai Behncke Institut f?r Geoinformatik und Fernerkundung (IGF) Universit?t Osnabr?ck Kolpingstr. 7 49074 Osnabr?ck Raum: 01/308 Tel.: +49 541 969-4450 E-Mail: mailto:kbehncke at igf.uni-osnabrueck.de Web: http://www.igf.uni-osnabrueck.de From aaronr at Z-PULLEY.COM Wed Jan 3 13:02:35 2007 From: aaronr at Z-PULLEY.COM (Aaron Racicot) Date: Wed, 3 Jan 2007 13:02:35 -0800 Subject: Problem: MapServer 4.10.0 with postgis on Debian 3.1 In-Reply-To: <20070103204501.M57377@igf.uni-osnabrueck.de> Message-ID: You need to add the shared object path to your ld.so.conf file and run ldconfig. Try adding: /usr/local/pgsql/lib to your /etc/ld.so.conf file and running /sbin/ldconfig as root. A +----------------------------------------+ Aaron Racicot - GIS Programmer 360.221.2441 - aaronr at ecotrust.org +----------------------------------------+ e c o t r u s t pobox 1614 langley wa 98260 www.ecotrust.org +----------------------------------------+ -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Kai Behncke Sent: Wednesday, January 03, 2007 12:52 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Problem: MapServer 4.10.0 with postgis on Debian 3.1 Hello List, since a couple of time I try to get MapServer 4.10.0 to get to run --with-postgis on Debian 3.1 Sarge. PostgreSQL (8.2) and PostGIS (1.1.6) is successfully configured, compiled and installed. I configure MapServer without any problems with: ./configure --with-proj --with-ogr --with-gdal --with-postgis=/usr/local/pgsql/bin/pg_config --with-wmsclient --with-wmsserver --with-wfsclient --with-wfs --with-tiff --with-jpeg --with-php=/usr/local/php --with-freetype --with-png ...then I compile it without any errors, but when I try to check the version with "./mapserv -v" I always get: "./mapserv: error while loading shared libraries: libpq.so.5: cannot open shared object file: No such file or directory" Has anybody got a clue what I can do to solve the problem? Thank you very much...... -- Dipl.-Geogr. Dipl.-Umweltw. Kai Behncke Institut f?r Geoinformatik und Fernerkundung (IGF) Universit?t Osnabr?ck Kolpingstr. 7 49074 Osnabr?ck Raum: 01/308 Tel.: +49 541 969-4450 E-Mail: mailto:kbehncke at igf.uni-osnabrueck.de Web: http://www.igf.uni-osnabrueck.de From ravikapoor101 at GMAIL.COM Wed Jan 3 13:32:38 2007 From: ravikapoor101 at GMAIL.COM (Ravi) Date: Wed, 3 Jan 2007 13:32:38 -0800 Subject: changing colors in tiles without re-rendering? In-Reply-To: <459BB4710200008F0000586D@co5.dnr.state.mn.us> Message-ID: Thanks for the reply Steve. The problem is little more complicated than just identifying an appropriate image editor. After the tiles are made, imagemagic has no way to co-relate a block group with tile name. Also if two adjacent block groups are of same color, imagemagic would not know how to change one of them. The solution, if at all possible, has to be something like this: 1. Render the shape files into image files for each block group. The area outside block group should be transparent in such images. 2. A program that when supplied with block group number and color finds appropriate image and colors it accordingly. 3. A program that takes all the images and generates square image tiles. Only in this case I can avoid parsing/reading the shapefile over and over again. I wonder if anybody has done anything remotely similar to this or if anybody can think of a better way to do this. Ravi Steve Lime wrote: > I would imagine ImageMagick can handle such a task... > > Steve > >>>> Ravi 1/3/2007 12:21:05 PM >>> > I have a strange question. I am using block group shape files to render > > map of US at all zoom levels. This is very processor intensive job. I > want to avoid rendering tiles every time I change data as it takes me > days to do so. > > Is it possible that somehow I draw the block group shapes and then use > > some image manipulation software to change color of each block group. > Essentially the point is to try to avoid processing shape files every > time and instead move the job to a image manipulation software which I > > believe will result in significant time reduction. > > I seriously doubt anything like this can be done but I decided to ask > anyways. > > - Ravi > From kbehncke at IGF.UNI-OSNABRUECK.DE Wed Jan 3 13:43:00 2007 From: kbehncke at IGF.UNI-OSNABRUECK.DE (Kai Behncke) Date: Wed, 3 Jan 2007 22:43:00 +0100 Subject: Problem: MapServer 4.10.0 with postgis on Debian 3.1 In-Reply-To: <003201c72f7a$7ed4f670$6401a8c0@bernie> Message-ID: On Wed, 3 Jan 2007 13:02:35 -0800, Aaron Racicot wrote > You need to add the shared object path to your ld.so.conf file and > run ldconfig. Try adding: /usr/local/pgsql/lib to your > /etc/ld.so.conf file and running /sbin/ldconfig as root. > Great, thank you very much!! The MapServer is running fine now, but what I don`t understand: I made an "updatedb" on my system and tried to find the data with "locate libpg.so.5", but it`s not found even it is definetily there. Hmmmmm......anyway, the MapServer is running now. Regards, Kai -- Dipl.-Geogr. Dipl.-Umweltw. Kai Behncke Institut f?r Geoinformatik und Fernerkundung (IGF) Universit?t Osnabr?ck Kolpingstr. 7 49074 Osnabr?ck Raum: 01/308 Tel.: +49 541 969-4450 E-Mail: mailto:kbehncke at igf.uni-osnabrueck.de Web: http://www.igf.uni-osnabrueck.de From assefa at DMSOLUTIONS.CA Wed Jan 3 13:44:31 2007 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 3 Jan 2007 16:44:31 -0500 Subject: SLD troubles -desperate! In-Reply-To: Message-ID: Hi There, OGR is also a needed library (for geometry conversions). Is it possible for you to test it with OGR enabled (USE_OGR flag) ? If that is the case I will update the docs to reflect it. Later, Edward Fialkowski wrote: > I have been unable to get my WMS capable MapServer to recognize an sld > passed in through the url (SLD=http:...) > > The sld is readable, I have tested it on an example from the SLD > documentation - i.e. written my own SLD and pointed to it from the > example, works perfectly. > > I am totally out of ideas as to why I cannot get it to show up on my own > server. > > I'll give as much information as i can, any help would be extremely > appreciated. > > map file: > > MAP > NAME "All" > STATUS on > SIZE 800 600 > EXTENT -2200000 -712631 3072800 3840000 > UNITS METERS > SHAPEPATH "/var/www/html/mapserver > /mapdata/" > IMAGECOLOR 220 220 220 > FONTSET "/var/www/html/mapserver/mapdata/" > > WEB > IMAGEPATH "/var/www/html/tmp/" > IMAGEURL "/tmp/" > METADATA > "wms_title" "All" > "wms_onlineresource" > "http://niceguy.wustl.edu/cgi-bin/mapserv.exe > ?" > "wms_srs" "epsg:4326" > END > END > > PROJECTION > "init=epsg:4326" > END > LAYER > NAME NAmer_bdr > METADATA > "wms_title" "NAmer_bdr" > END > TYPE LINE > STATUS on > DATA bound_p > PROJECTION > "init=epsg:4326" > END > CLASS > STYLE > OUTLINECOLOR 0 0 0 > END > END > END > > > SLD File: > > > NAmer_bdr > > NAmer_bdr > > > > > center-line > > > #00FF00 > > > > > > > > > > and just in case: > [root at niceguy mapserver-4.10.0]# ./mapserv -v > MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=GDAL > INPUT=SHAPEFILE > > Please, please any help. > Thanks! > -Ed -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From dave.potts at PINAN.CO.UK Wed Jan 3 16:14:53 2007 From: dave.potts at PINAN.CO.UK (Dave Potts) Date: Thu, 4 Jan 2007 00:14:53 +0000 Subject: Use of a varible name in TEMPLATE String In-Reply-To: <003201c72f7a$7ed4f670$6401a8c0@bernie> Message-ID: Hi Folks Is it possible to say something like this in a .map file WEB TEMPLATE "../WEB-INF/post_transform_directory/en_gb/%platform%dataxml" IMAGEPATH "../tmp/" IMAGEURL "tmp/" LOG "/tmp/map.out" END Where %platform% is a varible name. regards David. -------------- next part -------------- A non-text attachment was scrubbed... Name: dave.potts.vcf Type: text/x-vcard Size: 85 bytes Desc: not available URL: From Steve.Lime at DNR.STATE.MN.US Wed Jan 3 18:37:10 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 3 Jan 2007 20:37:10 -0600 Subject: Use of a varible name in TEMPLATE String Message-ID: Not as the code sits. That's not a parameter that is currently processed for runtime variables. You can switch entire templates with map_web_template (in combination with templatepattern). It's a relatively easy hack to change mapserv.c to do this, a bit harder in upcoming releases that provide a mechanism to validate runtime substitutions, but still doable. Steve >>> Dave Potts 01/03/07 6:14 PM >>> Hi Folks Is it possible to say something like this in a .map file WEB TEMPLATE "../WEB-INF/post_transform_directory/en_gb/%platform%dataxml" IMAGEPATH "../tmp/" IMAGEURL "tmp/" LOG "/tmp/map.out" END Where %platform% is a varible name. regards David. From vberre at GI-PARIS.COM Thu Jan 4 01:48:51 2007 From: vberre at GI-PARIS.COM (Virginie BERRE) Date: Thu, 4 Jan 2007 10:48:51 +0100 Subject: MS4W and Oracle (spatial) Message-ID: Hi all ! I need a windows version of mapserver which supports oracle spatial dataset. Is it possible? And how to do it? Thanks for your help! Best regards, Virginie BERRE / Ing?nieur ?tude et d?veloppement G?n?rale d'Infographie ZA Les Erables - b?timent 4 66 route de Sartrouville - 78232 Le Pecq Cedex T?l. : (33) (0)1.30.15.40.50 - Fax : (33) (0)1.30.15.40.60 mailto:vberre at gi-paris.com http://www.generale-infographie.fr P N'imprimez ce message que si vous en avez l'utilit? ... -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 3066 bytes Desc: image001.jpg URL: From bartvde at OSGIS.NL Thu Jan 4 02:24:15 2007 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Thu, 4 Jan 2007 11:24:15 +0100 Subject: MS4W and Oracle (spatial) Message-ID: See: http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#oracle-10g Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Virginie BERRE Naar: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] MS4W and Oracle (spatial) Datum: 04/01/07 08:22 > > > > > > > > > > > > > > > > > > Hi all ! > >   > > I need a windows version of > mapserver which supports oracle spatial dataset. Is it possible? And how to do it? > >   > > Thanks for your help! > > Best regards, > >   > > > > > > > > Virginie BERRE / Ingénieur étude et > développement > Générale d’Infographie > ZA Les Erables – bâtiment 4 > 66 route de Sartrouville - 78232 Le Pecq Cedex  > Tél. : (33) (0)1.30.15.40.50 – > Fax : (33) (0)1.30.15.40.60 > mailto:vberre at gi-paris.com > http://www.generale-infographie.fr > > > > > P N'imprimez ce > message que si vous en avez l'utilité … > > > > > > > From bartvde at OSGIS.NL Thu Jan 4 02:44:14 2007 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Thu, 4 Jan 2007 11:44:14 +0100 Subject: MS4W and Oracle (spatial) Message-ID: An Oracle 10 client can connect to a 9 database, no problem. Are you unable to install the Oracle 10 client on your server machine? In that case, you'll need to compile Mapserver yourself against the right Oracle client, or get someone to do that for you. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Virginie BERRE Naar: Bart van den Eijnden OSGIS , MAPSERVER-USERS at LISTS.UMN.EDU Cc: aude.allain.ext at mappy.com Onderwerp: RE: [UMN_MAPSERVER-USERS] MS4W and Oracle (spatial) Datum: 04/01/07 08:39 > Hi Bart! > > My problem is that my oracle's version is 9.2! > > -----Message d'origine----- > De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Bart van den Eijnden (OSGIS) > Envoy? : jeudi 4 janvier 2007 11:24 > ? : MAPSERVER-USERS at LISTS.UMN.EDU > Objet : Re: [UMN_MAPSERVER-USERS] MS4W and Oracle (spatial) > > See: > > http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#oracle-10g > > Best regards, > Bart > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > > > --------- Oorspronkelijk bericht -------- > Van: Virginie BERRE <vberre at GI-PARIS.COM> > Naar: MAPSERVER-USERS at LISTS.UMN.EDU <MAPSERVER-USERS at LISTS.UMN.EDU> > Onderwerp: [UMN_MAPSERVER-USERS] MS4W and Oracle (spatial) > Datum: 04/01/07 08:22 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Hi all ! > > > > &nbsp; > > > > I need a windows version of > > mapserver which supports oracle spatial dataset. Is it possible? And how > to do it? > > > > &nbsp; > > > > Thanks for your help! > > > > Best regards, > > > > &nbsp; > > > > > > > > > > > > > > > > Virginie BERRE / Ing&eacute;nieur &eacute;tude et > > d&eacute;veloppement > > G&eacute;n&eacute;rale d&#8217;Infographie > > ZA Les Erables &#8211; b&acirc;timent 4 > > 66 route de Sartrouville - 78232 Le Pecq Cedex&nbsp; > > T&eacute;l.&nbsp;: (33) (0)1.30.15.40.50 &#8211; > > Fax&nbsp;: (33) (0)1.30.15.40.60 > > mailto:vberre at gi-paris.com > > http://www.generale-infographie.fr > > > > > > > > > > P N'imprimez ce > > message que si vous en avez l'utilit&eacute; &#8230; > > > > > > > > > > > > > > > > From vberre at GI-PARIS.COM Thu Jan 4 02:38:45 2007 From: vberre at GI-PARIS.COM (Virginie BERRE) Date: Thu, 4 Jan 2007 11:38:45 +0100 Subject: MS4W and Oracle (spatial) Message-ID: Hi Bart! My problem is that my oracle's version is 9.2! -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Bart van den Eijnden (OSGIS) Envoy??: jeudi 4 janvier 2007 11:24 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: Re: [UMN_MAPSERVER-USERS] MS4W and Oracle (spatial) See: http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#oracle-10g Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Virginie BERRE Naar: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] MS4W and Oracle (spatial) Datum: 04/01/07 08:22 > > > > > > > > > > > > > > > > > > Hi all ! > >   > > I need a windows version of > mapserver which supports oracle spatial dataset. Is it possible? And how to do it? > >   > > Thanks for your help! > > Best regards, > >   > > > > > > > > Virginie BERRE / Ingénieur étude et > développement > Générale d’Infographie > ZA Les Erables – bâtiment 4 > 66 route de Sartrouville - 78232 Le Pecq Cedex  > Tél. : (33) (0)1.30.15.40.50 – > Fax : (33) (0)1.30.15.40.60 > mailto:vberre at gi-paris.com > http://www.generale-infographie.fr > > > > > P N'imprimez ce > message que si vous en avez l'utilité … > > > > > > > From Jukka.Rahkonen at MMMTIKE.FI Thu Jan 4 04:30:07 2007 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Thu, 4 Jan 2007 14:30:07 +0200 Subject: Mapfile WMS connection string parsing problem for layer names with dots/periods (".") Message-ID: Hi, Maybe this is not the reason for your trouble, but shouldn't it in any case be &LAYERS=TEST.TEST? Now LAYERS seem to be missing from your URL http://wms.server.org/wms_test?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&TEST.TEST&STYLES=&FORMAT=image/png Regards, -Jukka- -----Original Message----- From: UMN MapServer Users List on behalf of Havard Tveite Sent: Wed 3.1.2007 17:08 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Mapfile WMS connection string parsing problem for layer names with dots/periods (".") Daniel Morissette wrote: > Just looking at the error message it's not obvious what is really > happening. Could you share your full layer definition from the mapfile? > Also, which version of MapServer are you using? Sorry, I am using: MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=EPPL7 INPUT=SDE INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG OpSys is Solaris 2.7. Layer definition (real WMS server name and layer names removed): LAYER NAME "test-test" MAXSCALE 5000 MINSCALE 500 METADATA "wms_title" "Test" "wms_srs" "EPSG:32633" "wms_connectiontimeout" "200" "wms_opaque" "1" END TYPE RASTER CONNECTIONTYPE WMS CONNECTION "http://wms.server.org/wms_test?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&TEST.TEST&STYLES=&FORMAT=image/png" PROJECTION "init=epsg:32633" END END #layer H?vard > > Daniel > > > Havard Tveite wrote: >> I am experiencing problems with a WMS connections where >> layer names contain dots/periods ("."). >> Whenever a layer name with a "." appears in the "LAYERS" >> parameter of the WMS connection string, mapserver has >> trouble parsing the connection string. >> >> From the Mapserver log (connect string is: >> "http://wms.server.org/wms_test?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&TEST.TEST&STYLES=&FORMAT=image/png"): >> >> msOWSParseVersionString(): WMS server error. Invalid version >> (1.1.1&SERVICE=WMS&REQUEST=GetMap&TEST.TEST&STYLES=&FORMAT=image/png). >> OWS version must be in the format 'x.y' or 'x.y.z'
>> >> If I remove the "." no parsing errors occur. >> >> Are periods/dots (".") allowed in WMS Layer Name? >> If so, is this a bug? >> > > -- H?vard Tveite Department of Mathematical Sciences and Technology, UMB Dr?bakveien 14, POBox 5003, N-1432 ?s, NORWAY Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt From Jukka.Rahkonen at MMMTIKE.FI Thu Jan 4 06:43:46 2007 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Thu, 4 Jan 2007 16:43:46 +0200 Subject: limit the area displayed on the map Message-ID: Hi, I am not sure if I understood you right, but perhaps you are searching for something like what BBOX is doing if added to query string? -Jukka- -----Original Message----- From: UMN MapServer Users List on behalf of Sarah Parrott Sent: Tue 2.1.2007 11:30 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] limit the area displayed on the map Hi, Is there a way (for example adding a parameter to the querystrinng) to limit the area of the map that is displayed, and therefore display that part at a larger scale? I have tried changing the extent but that doesn't seem to work. I want to be able to display the full extent of the map and then allow the user to click and zoom in on it. I have got this partially working by inserting my map file into the itasca demo. However, this seems to involve the querystring putting the map into 'Browse' mode. I need the map to be in 'nquery' mode because I generate an imagemap using a TEMPLATE within the LAYER specification of my map. When the map is in browse mode it uses the TEMPLATE specified in the MAP clause, and seems to ignore my image map. Any help would be great. Thanks, Sarah From havard.tveite at UMB.NO Thu Jan 4 07:00:31 2007 From: havard.tveite at UMB.NO (Havard Tveite) Date: Thu, 4 Jan 2007 16:00:31 +0100 Subject: Mapfile WMS connection string parsing problem for layer names with dots/periods (".") In-Reply-To: Message-ID: While editing the connection string for my email, I must have removed too much. Sorry! The problem persists though. The "LAYERS=" was there originally: CONNECTION "http://wms.server.org/wms_test?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&LAYERS=TEST.TEST&STYLES=&FORMAT=image/png" Produces the following in the mapserver log file (slightly edited...): Thu Jan 4 15:46:17 2007,23090,127.0.0.1,test-wms,0,261498.765626 6621607.187500 262014.390626 6622122.812500,261756.578126 6621865.000000,test ,msBuildWMSLayerURL(): WMS connection error. MapServer supports only WMS 1.0.0 to 1.1.1 (please verify the VERSION parameter in the connection string).
msOWSParseVersionString(): WMS server error. Invalid version (1.1.1&SERVICE=WMS&REQUEST=GetMap&LAYERS=TEST.TEST&STYLES=&FORMAT=image/png). OWS version must be in the format 'x.y' or 'x.y.z'
while CONNECTION "wms.server.org/wms_test?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&LAYERS=TEST_TEST&STYLES=&FORMAT=image/png" Gives me an inimage exception ("LAYER with ID TEST_TEST does not exist") from the WMS server, as expected. To reproduce the error one should only need to create a map file with a WMS layer and a connection string that includes a layer name with a "." in it. Regards, H?vard Rahkonen Jukka wrote: > Hi, > > Maybe this is not the reason for your trouble, but shouldn't it in any case be > &LAYERS=TEST.TEST? Now LAYERS seem to be missing from your URL > > http://wms.server.org/wms_test?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&TEST.TEST&STYLES=&FORMAT=image/png > > > Regards, > > -Jukka- > > > > -----Original Message----- > From: UMN MapServer Users List on behalf of Havard Tveite > Sent: Wed 3.1.2007 17:08 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Mapfile WMS connection string parsing problem for layer names with dots/periods (".") > > Daniel Morissette wrote: >> Just looking at the error message it's not obvious what is really >> happening. Could you share your full layer definition from the mapfile? >> Also, which version of MapServer are you using? > > Sorry, I am using: > MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=EPPL7 INPUT=SDE INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG > OpSys is Solaris 2.7. > > Layer definition (real WMS server name and layer names removed): > LAYER > NAME "test-test" > MAXSCALE 5000 > MINSCALE 500 > METADATA > "wms_title" "Test" > "wms_srs" "EPSG:32633" > "wms_connectiontimeout" "200" > "wms_opaque" "1" > END > TYPE RASTER > CONNECTIONTYPE WMS > CONNECTION "http://wms.server.org/wms_test?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&TEST.TEST&STYLES=&FORMAT=image/png" > PROJECTION > "init=epsg:32633" > END > END #layer > > > H?vard > >> Daniel >> >> >> Havard Tveite wrote: >>> I am experiencing problems with a WMS connections where >>> layer names contain dots/periods ("."). >>> Whenever a layer name with a "." appears in the "LAYERS" >>> parameter of the WMS connection string, mapserver has >>> trouble parsing the connection string. >>> >>> From the Mapserver log (connect string is: >>> "http://wms.server.org/wms_test?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&TEST.TEST&STYLES=&FORMAT=image/png"): >>> >>> msOWSParseVersionString(): WMS server error. Invalid version >>> (1.1.1&SERVICE=WMS&REQUEST=GetMap&TEST.TEST&STYLES=&FORMAT=image/png). >>> OWS version must be in the format 'x.y' or 'x.y.z'
>>> >>> If I remove the "." no parsing errors occur. >>> >>> Are periods/dots (".") allowed in WMS Layer Name? >>> If so, is this a bug? >>> >> > -- H?vard Tveite Department of Mathematical Sciences and Technology, UMB Dr?bakveien 14, POBox 5003, N-1432 ?s, NORWAY Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt From dmorissette at MAPGEARS.COM Thu Jan 4 08:36:47 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Thu, 4 Jan 2007 11:36:47 -0500 Subject: Mapfile WMS connection string parsing problem for layer names with dots/periods (".") In-Reply-To: <459D168F.8070301@umb.no> Message-ID: FYI I have been able to reproduce this with the current development version and have filed a bug: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1996 Note that you are using the "old" way of specifying WMS CONNECTIONS. You will not get this error if you use the "new" way which uses metadata entries to specify all connection settings, e.g. LAYER NAME "test-test" MAXSCALE 5000 MINSCALE 500 METADATA "wms_name" "TEST.TEST" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_srs" "EPSG:32633" "wms_onlineresource" "http://wms.server.org/wms_test?" "wms_title" "Test" "wms_connectiontimeout" "200" "wms_opaque" "1" END TYPE RASTER CONNECTIONTYPE WMS PROJECTION "init=epsg:32633" END END #layer Daniel Havard Tveite wrote: > While editing the connection string for my email, I must have > removed too much. Sorry! The problem persists though. > The "LAYERS=" was there originally: > > CONNECTION > "http://wms.server.org/wms_test?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&LAYERS=TEST.TEST&STYLES=&FORMAT=image/png" > > > Produces the following in the mapserver log file (slightly edited...): > Thu Jan 4 15:46:17 2007,23090,127.0.0.1,test-wms,0,261498.765626 > 6621607.187500 262014.390626 6622122.812500,261756.578126 > 6621865.000000,test ,msBuildWMSLayerURL(): WMS connection error. > MapServer supports only WMS 1.0.0 to 1.1.1 (please verify the VERSION > parameter in the connection string).
> msOWSParseVersionString(): WMS server error. Invalid version > (1.1.1&SERVICE=WMS&REQUEST=GetMap&LAYERS=TEST.TEST&STYLES=&FORMAT=image/png). > OWS version must be in the format 'x.y' or 'x.y.z'
> > > while > CONNECTION > "wms.server.org/wms_test?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&LAYERS=TEST_TEST&STYLES=&FORMAT=image/png" > > > Gives me an inimage exception ("LAYER with ID TEST_TEST does not exist") > from the WMS server, as expected. > > > To reproduce the error one should only need to create a map file > with a WMS layer and a connection string that includes a layer name > with a "." in it. > > Regards, > > H?vard > > Rahkonen Jukka wrote: >> Hi, >> >> Maybe this is not the reason for your trouble, but shouldn't it in any >> case be >> &LAYERS=TEST.TEST? Now LAYERS seem to be missing from your URL >> >> http://wms.server.org/wms_test?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&TEST.TEST&STYLES=&FORMAT=image/png >> >> >> >> Regards, >> >> -Jukka- >> >> >> >> -----Original Message----- >> From: UMN MapServer Users List on behalf of Havard Tveite >> Sent: Wed 3.1.2007 17:08 >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] Mapfile WMS connection string >> parsing problem for layer names with dots/periods (".") >> >> Daniel Morissette wrote: >>> Just looking at the error message it's not obvious what is really >>> happening. Could you share your full layer definition from the >>> mapfile? Also, which version of MapServer are you using? >> >> Sorry, I am using: >> MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >> OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE >> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER >> SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=EPPL7 INPUT=SDE >> INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG >> OpSys is Solaris 2.7. >> >> Layer definition (real WMS server name and layer names removed): >> LAYER >> NAME "test-test" >> MAXSCALE 5000 >> MINSCALE 500 >> METADATA >> "wms_title" "Test" >> "wms_srs" "EPSG:32633" >> "wms_connectiontimeout" "200" >> "wms_opaque" "1" >> END >> TYPE RASTER >> CONNECTIONTYPE WMS >> CONNECTION >> "http://wms.server.org/wms_test?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&TEST.TEST&STYLES=&FORMAT=image/png" >> >> PROJECTION >> "init=epsg:32633" >> END >> END #layer >> >> >> H?vard >> >>> Daniel >>> >>> >>> Havard Tveite wrote: >>>> I am experiencing problems with a WMS connections where >>>> layer names contain dots/periods ("."). >>>> Whenever a layer name with a "." appears in the "LAYERS" >>>> parameter of the WMS connection string, mapserver has >>>> trouble parsing the connection string. >>>> >>>> From the Mapserver log (connect string is: >>>> "http://wms.server.org/wms_test?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&TEST.TEST&STYLES=&FORMAT=image/png"): >>>> >>>> msOWSParseVersionString(): WMS server error. Invalid version >>>> (1.1.1&SERVICE=WMS&REQUEST=GetMap&TEST.TEST&STYLES=&FORMAT=image/png). >>>> OWS version must be in the format 'x.y' or 'x.y.z'
>>>> >>>> If I remove the "." no parsing errors occur. >>>> >>>> Are periods/dots (".") allowed in WMS Layer Name? >>>> If so, is this a bug? >>>> >>> >> > -- Daniel Morissette http://www.mapgears.com/ From wef1 at CEC.WUSTL.EDU Thu Jan 4 09:14:05 2007 From: wef1 at CEC.WUSTL.EDU (edfialk) Date: Thu, 4 Jan 2007 09:14:05 -0800 Subject: SLD troubles -desperate! In-Reply-To: <459C23BF.7070200@dmsolutions.ca> Message-ID: HURRAY! That did it. Thanks so much everyone that helped. All I did was recompile with --with-ogr=path and bam it worked. thanks again! -Ed Yewondwossen Assefa wrote: > > Hi There, > > OGR is also a needed library (for geometry conversions). Is it > possible for you to test it with OGR enabled (USE_OGR flag) ? If that is > the case I will update the docs to reflect it. > > Later, > > > Edward Fialkowski wrote: >> I have been unable to get my WMS capable MapServer to recognize an sld >> passed in through the url (SLD=http:...) >> >> The sld is readable, I have tested it on an example from the SLD >> documentation - i.e. written my own SLD and pointed to it from the >> example, works perfectly. >> >> I am totally out of ideas as to why I cannot get it to show up on my own >> server. >> >> I'll give as much information as i can, any help would be extremely >> appreciated. >> >> map file: >> >> MAP >> NAME "All" >> STATUS on >> SIZE 800 600 >> EXTENT -2200000 -712631 3072800 3840000 >> UNITS METERS >> SHAPEPATH "/var/www/html/mapserver >> /mapdata/" >> IMAGECOLOR 220 220 220 >> FONTSET "/var/www/html/mapserver/mapdata/" >> >> WEB >> IMAGEPATH "/var/www/html/tmp/" >> IMAGEURL "/tmp/" >> METADATA >> "wms_title" "All" >> "wms_onlineresource" >> "http://niceguy.wustl.edu/cgi-bin/mapserv.exe >> ?" >> "wms_srs" "epsg:4326" >> END >> END >> >> PROJECTION >> "init=epsg:4326" >> END >> LAYER >> NAME NAmer_bdr >> METADATA >> "wms_title" "NAmer_bdr" >> END >> TYPE LINE >> STATUS on >> DATA bound_p >> PROJECTION >> "init=epsg:4326" >> END >> CLASS >> STYLE >> OUTLINECOLOR 0 0 0 >> END >> END >> END >> >> >> SLD File: >> >> >> NAmer_bdr >> >> NAmer_bdr >> >> >> >> >> center-line >> >> >> #00FF00 >> >> >> >> >> >> >> >> >> >> and just in case: >> [root at niceguy mapserver-4.10.0]# ./mapserv -v >> MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >> OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE >> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=GDAL >> INPUT=SHAPEFILE >> >> Please, please any help. >> Thanks! >> -Ed > > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- > > -- View this message in context: http://www.nabble.com/SLD-troubles--desperate%21-tf2909232.html#a8163045 Sent from the Mapserver - User mailing list archive at Nabble.com. From warmerdam at POBOX.COM Thu Jan 4 09:14:53 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 4 Jan 2007 12:14:53 -0500 Subject: Use of CDATA in context documents In-Reply-To: <3F34A5A15450C74C813BA20E31DBB45103714CD8@ncrx3.ncr.int.ec.gc.ca> Message-ID: Pagurek,Debbie [NCR] wrote: > My project requires some special characters, such as subscripts, to be > used in abstracts and titles. We tried to embed CDATA into our context > documents e.g. > 2.5]]> > But our Chameleon application croaked. We understand that this is likely > due to the fact that MapServer itself doesn't parse the CDATA part > properly. > > We are using MS v4.6.1, Chameleon version 2.2, and PHP 4.3.11 which I > know are really out of date now. Can anyone tell me if using CDATA in > context docs is supported in more recent versions of MapServer? If it > isn't, are their any plans to incorporate this? Debbie, GDAL/OGR's 1.4.0 version includes CDATA support in the minixml parser. Are you in a position to upgrade? Otherwise Bart's scheme to avoid CDATA would likely be best. 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 | President OSGeo, http://osgeo.org From Tom.Kralidis at EC.GC.CA Thu Jan 4 09:18:52 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Thu, 4 Jan 2007 12:18:52 -0500 Subject: SLD troubles -desperate! Message-ID: Good news! Assefa: perhaps a check is in order in the code to see if OGR is on (this should probably be a check in the build process too, or instead)? ..Tom > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of edfialk > Sent: 04 January, 2007 12:14 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] SLD > troubles -desperate! > > HURRAY! That did it. Thanks so much everyone that helped. > > All I did was recompile with --with-ogr=path and bam it worked. > > thanks again! > -Ed > > > > Yewondwossen Assefa wrote: > > > > Hi There, > > > > OGR is also a needed library (for geometry conversions). Is it > > possible for you to test it with OGR enabled (USE_OGR flag) > ? If that > > is the case I will update the docs to reflect it. > > > > Later, > > > > > > Edward Fialkowski wrote: > >> I have been unable to get my WMS capable MapServer to recognize an > >> sld passed in through the url (SLD=http:...) > >> > >> The sld is readable, I have tested it on an example from the SLD > >> documentation - i.e. written my own SLD and pointed to it from the > >> example, works perfectly. > >> > >> I am totally out of ideas as to why I cannot get it to > show up on my > >> own server. > >> > >> I'll give as much information as i can, any help would be > extremely > >> appreciated. > >> > >> map file: > >> > >> MAP > >> NAME "All" > >> STATUS on > >> SIZE 800 600 > >> EXTENT -2200000 -712631 3072800 3840000 > >> UNITS METERS > >> SHAPEPATH "/var/www/html/mapserver > >> /mapdata/" > >> IMAGECOLOR 220 220 220 > >> FONTSET "/var/www/html/mapserver/mapdata/" > >> > >> WEB > >> IMAGEPATH "/var/www/html/tmp/" > >> IMAGEURL "/tmp/" > >> METADATA > >> "wms_title" "All" > >> "wms_onlineresource" > >> "http://niceguy.wustl.edu/cgi-bin/mapserv.exe > >> ?" > >> "wms_srs" "epsg:4326" > >> END > >> END > >> > >> PROJECTION > >> "init=epsg:4326" > >> END > >> LAYER > >> NAME NAmer_bdr > >> METADATA > >> "wms_title" "NAmer_bdr" > >> END > >> TYPE LINE > >> STATUS on > >> DATA bound_p > >> PROJECTION > >> "init=epsg:4326" > >> END > >> CLASS > >> STYLE > >> OUTLINECOLOR 0 0 0 > >> END > >> END > >> END > >> > >> > >> SLD File: > >> > >> > >> NAmer_bdr > >> > >> NAmer_bdr > >> > >> > >> > >> > >> center-line > >> > >> > >> #00FF00 > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> and just in case: > >> [root at niceguy mapserver-4.10.0]# ./mapserv -v MapServer version > >> 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF > >> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > >> SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=GDAL INPUT=SHAPEFILE > >> > >> Please, please any help. > >> Thanks! > >> -Ed > > > > > > -- > > ---------------------------------------------------------------- > > Assefa Yewondwossen > > Software Analyst > > > > Email: assefa at dmsolutions.ca > > http://www.dmsolutions.ca/ > > > > Phone: (613) 565-5056 (ext 14) > > Fax: (613) 565-0925 > > ---------------------------------------------------------------- > > > > > > -- > View this message in context: > http://www.nabble.com/SLD-troubles--desperate%21-tf2909232.htm l#a8163045 > Sent from the Mapserver - User mailing list archive at Nabble.com. > From listario at GMAIL.COM Thu Jan 4 10:08:09 2007 From: listario at GMAIL.COM (J. Parapar) Date: Thu, 4 Jan 2007 19:08:09 +0100 Subject: Use of a varible name in TEMPLATE String In-Reply-To: <459C46FD.7030508@pinan.co.uk> Message-ID: Hi Dave I am not sure about that. You can try and see. If it does not work, as an alternative, look at "Changing map file parameters via a form or a URL" at http://mapserver.gis.umn.edu/docs/reference/cgi/referencemanual-all-pages. (You must set a value for TEMPLATEPATTERN in the mapfile,see http://mapserver.gis.umn.edu/docs/reference/mapfile/referencemanual-all-pages) Best regards. Jorge 2007/1/4, Dave Potts : > > Hi Folks > > Is it possible to say something like this in a .map file > > WEB > TEMPLATE "../WEB-INF/post_transform_directory/en_gb/%platform%dataxml" > IMAGEPATH "../tmp/" > IMAGEURL "tmp/" > LOG "/tmp/map.out" > END > > Where %platform% is a varible name. > > regards > > David. > > > > From Debbie.Pagurek at EC.GC.CA Thu Jan 4 10:17:16 2007 From: Debbie.Pagurek at EC.GC.CA (Pagurek,Debbie [NCR]) Date: Thu, 4 Jan 2007 13:17:16 -0500 Subject: Use of CDATA in context documents Message-ID: Thanks for letting me know. This provides me with more info to convince the powers-that-be that we need to upgrade. Unfortuately, I'm quite sure that Bart's solution won't work in our situation. The output will actually show all the tags, instead of processing them. Debbie -----Original Message----- From: Frank Warmerdam [mailto:warmerdam at pobox.com] Sent: Thursday, January 04, 2007 12:15 PM To: Pagurek,Debbie [NCR] Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Use of CDATA in context documents Pagurek,Debbie [NCR] wrote: > My project requires some special characters, such as subscripts, to be > used in abstracts and titles. We tried to embed CDATA into our context > documents e.g. > 2.5]]> > But our Chameleon application croaked. We understand that this is > likely due to the fact that MapServer itself doesn't parse the CDATA > part properly. > > We are using MS v4.6.1, Chameleon version 2.2, and PHP 4.3.11 which I > know are really out of date now. Can anyone tell me if using CDATA in > context docs is supported in more recent versions of MapServer? If it > isn't, are their any plans to incorporate this? Debbie, GDAL/OGR's 1.4.0 version includes CDATA support in the minixml parser. Are you in a position to upgrade? Otherwise Bart's scheme to avoid CDATA would likely be best. 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 | President OSGeo, http://osgeo.org From armin.burger at GMX.NET Thu Jan 4 10:44:57 2007 From: armin.burger at GMX.NET (Armin Burger) Date: Thu, 4 Jan 2007 19:44:57 +0100 Subject: PHP MapScript getWMSFeatureInfoURL() Message-ID: Hi all, I have defined a WMS based layer in the map file: CONNECTIONTYPE WMS CONNECTION "http://myserver/cgi-bin/mapserv?map=owstest.map&" When trying to use the PHP MapScript (MapServer 4.10) function 'getWMSFeatureInfoURL()' for querying this layer, I get the error msBuildWMSLayerURL(): WMS Connection String must contain the QUERY_LAYERS parameter to support GetFeatureInfo requests (with name in uppercase). The function is only working correctly if I already put the "QUERY_LAYERS=layer1,layer2" to the CONNECTION string of the WMS layer definition in the map file. This is possible but looks a bit strange to me. Is that an intended behaviour or a bug? Best regards Armin -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer From dmorissette at MAPGEARS.COM Thu Jan 4 12:50:05 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Thu, 4 Jan 2007 15:50:05 -0500 Subject: PHP MapScript getWMSFeatureInfoURL() In-Reply-To: <20070104184457.20110@gmx.net> Message-ID: This is legacy from the early days when the WMS connection type was fairly dumb and you needed to provide all the parameters in the CONNECTION string yourself. The new method is slightly smarter and allows you to set all the connection parameters (layer name, styles, etc.) via wms_* metadata entries and in this context this error messages doesn't make sense. I had a quick look at the code and unfortunately the fix is not as simple as removing the error message. I'd suggest you file a bug about this and we should try to address it before 5.0. In the meantime you'll have to include QUERY_LAYERS in your URL. Daniel Armin Burger wrote: > Hi all, > > I have defined a WMS based layer in the map file: > > CONNECTIONTYPE WMS > CONNECTION "http://myserver/cgi-bin/mapserv?map=owstest.map&" > > > When trying to use the PHP MapScript (MapServer 4.10) function > 'getWMSFeatureInfoURL()' for querying this layer, I get the error > > msBuildWMSLayerURL(): WMS Connection String must contain the > QUERY_LAYERS parameter to support GetFeatureInfo requests (with name in > uppercase). > > The function is only working correctly if I already put the > "QUERY_LAYERS=layer1,layer2" to the CONNECTION string of the WMS layer > definition in the map file. This is possible but looks a bit strange to > me. Is that an intended behaviour or a bug? > > Best regards > > Armin -- Daniel Morissette http://www.mapgears.com/ From ezenaide at GMAIL.COM Fri Jan 5 09:37:03 2007 From: ezenaide at GMAIL.COM (Eduardo Zenaide) Date: Fri, 5 Jan 2007 15:37:03 -0200 Subject: Expressions Message-ID: hi, all, i'm trying to understand how expressions work here. i have one layer with IDH_2000 class wich has lots of numerical values. i try using ("[IDH_2000]" <= /0.4/) and it returns the error: msQueryByAttributes(): Search returned no results. No matching record(s) found. msEvalExpression: Expression parser error. Failed to parse expression msyyparse(): Expression parser error. syntax error i think i'm using the wrong syntax, but i've read http://mapserver.gis.umn.edu/docs/howto/msexpressions and couldn't get it. if i do the same but using =~ works :P so, any clues? thanks! -- Eduardo Zenaide -------------- next part -------------- An HTML attachment was scrubbed... URL: From ezenaide at GMAIL.COM Fri Jan 5 09:45:32 2007 From: ezenaide at GMAIL.COM (Eduardo Zenaide) Date: Fri, 5 Jan 2007 15:45:32 -0200 Subject: Expressions Message-ID: hi, all, i'm trying to understand how expressions work here. i have one layer with IDH_2000 class wich has lots of numerical values. i try using ("[IDH_2000]" <= /0.4/) and it returns the error: msQueryByAttributes(): Search returned no results. No matching record(s) found. msEvalExpression: Expression parser error. Failed to parse expression msyyparse(): Expression parser error. syntax error i think i'm using the wrong syntax, but i've read http://mapserver.gis.umn.edu/docs/howto/msexpressions and couldn't get it. if i do the same but using =~ works :P so, any clues? thanks! -- Eduardo Zenaide -------------- next part -------------- An HTML attachment was scrubbed... URL: From ezenaide at GMAIL.COM Fri Jan 5 09:50:07 2007 From: ezenaide at GMAIL.COM (Eduardo Zenaide) Date: Fri, 5 Jan 2007 15:50:07 -0200 Subject: Expressions Message-ID: hi, all, i'm trying to understand how expressions work here. i have one layer with IDH_2000 class wich has lots of numerical values. i try using ("[IDH_2000]" <= /0.4/) and it returns the error: msQueryByAttributes(): Search returned no results. No matching record(s) found. msEvalExpression: Expression parser error. Failed to parse expression msyyparse(): Expression parser error. syntax error i think i'm using the wrong syntax, but i've read http://mapserver.gis.umn.edu/docs/howto/msexpressions and couldn't get it. if i do the same but using =~ works :P so, any clues? thanks! -- Eduardo Zenaide -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Fri Jan 5 10:47:08 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 5 Jan 2007 12:47:08 -0600 Subject: Expressions In-Reply-To: <7af310f80701050950neb26249ved07a4da8dbb8034@mail.gmail.com> Message-ID: Try ([IDH_2000] <= 0.4) Steve >>> Eduardo Zenaide 1/5/2007 11:50:07 AM >>> hi, all, i'm trying to understand how expressions work here. i have one layer with IDH_2000 class wich has lots of numerical values. i try using ("[IDH_2000]" <= /0.4/) and it returns the error: msQueryByAttributes(): Search returned no results. No matching record(s) found. msEvalExpression: Expression parser error. Failed to parse expression msyyparse(): Expression parser error. syntax error i think i'm using the wrong syntax, but i've read http://mapserver.gis.umn.edu/docs/howto/msexpressions and couldn't get it. if i do the same but using =~ works :P so, any clues? thanks! -- Eduardo Zenaide From ezenaide at GMAIL.COM Fri Jan 5 11:00:37 2007 From: ezenaide at GMAIL.COM (Eduardo Zenaide) Date: Fri, 5 Jan 2007 17:00:37 -0200 Subject: Expressions In-Reply-To: <459E48CC0200008F000059E3@co5.dnr.state.mn.us> Message-ID: thanks, Steve! 2007/1/5, Steve Lime : > > Try ([IDH_2000] <= 0.4) > > Steve > > >>> Eduardo Zenaide 1/5/2007 11:50:07 AM >>> > hi, all, > > i'm trying to understand how expressions work here. > i have one layer with IDH_2000 class wich has lots of numerical > values. > i try using ("[IDH_2000]" <= /0.4/) and it returns the error: > > msQueryByAttributes(): Search returned no results. No matching > record(s) > found. > msEvalExpression: Expression parser error. Failed to parse expression > msyyparse(): Expression parser error. syntax error > > i think i'm using the wrong syntax, but i've read > http://mapserver.gis.umn.edu/docs/howto/msexpressions > and couldn't get it. > > if i do the same but using =~ works :P > so, any clues? > > thanks! > > -- > Eduardo Zenaide > -- Eduardo Zenaide -------------- next part -------------- An HTML attachment was scrubbed... URL: From beaart at XS4ALL.NL Sat Jan 6 07:07:45 2007 From: beaart at XS4ALL.NL (Chris Beaart) Date: Sat, 6 Jan 2007 16:07:45 +0100 Subject: Install mapserver on External Internet Server Message-ID: Hello, At this time I'm running Mapserver on my own computer at home. However I want to install Mapserver on my website. This website is running on an external Internet Server (Windows Hosting). Is it possible to install Mapserver on an external Internet Server an how do I do that? Thanks, Chris Beaart. -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Sat Jan 6 10:11:18 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Sat, 6 Jan 2007 13:11:18 -0500 Subject: GDAL/OGR 1.4.0 Released Message-ID: The GDAL development team is pleased to announce the release of GDAL/OGR 1.4.0. This new release includes many new features and bug fixes since the 1.3.2 release nine months ago. These are described at: http://www.gdal.org/NEWS.html The new release source may be downloaded from: http://www.gdal.org/dl/gdal-1.4.0.tar.gz http://www.gdal.org/dl/gdal140.zip Binaries corresponding to the GDAL/OGR 1.4.0 release can be found included in the FWTools 1.1.3 release for Windows and Linux at: http://www.gdal.org/dl/fwtools/FWTools113.exe (windows) http://www.gdal.org/dl/fwtools/FWTools-linux-1.1.3.tar.gz (linux) The GDAL project has also introduced the new gdal-announce list, hosted by OSGeo. Those interested in just occasional notices of GDAL/OGR project progress are encouraged to join this mailing list. http://lists.osgeo.org/mailman/listinfo/gdal-announce 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 | President OSGeo, http://osgeo.org From dps1 at UALBERTA.CA Sat Jan 6 11:28:50 2007 From: dps1 at UALBERTA.CA (Shorthouse, David) Date: Sat, 6 Jan 2007 12:28:50 -0700 Subject: DSN-less connection for OGRVRTDataSource Message-ID: Hello folks, I use SQL Server 2005 (aside: the MsSqlSpatial extensions look promising) and am wondering if it is yet possible for DSN-less OGR connections. Cheers, David P. Shorthouse ------------------------------------------------------ Department of Biological Sciences CW-403, Biological Sciences Centre University of Alberta Edmonton, AB T6G 2E9 mailto:dps1 at ualberta.ca http://canadianarachnology.webhop.net http://arachnidforum.webhop.net ------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Sat Jan 6 11:52:33 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Sat, 6 Jan 2007 14:52:33 -0500 Subject: DSN-less connection for OGRVRTDataSource In-Reply-To: <000601c731c8$e50b4610$af21d230$@ca> Message-ID: Shorthouse, David wrote: > Hello folks, > > > > I use SQL Server 2005 (aside: the MsSqlSpatial extensions look > promising) and am wondering if it is yet possible for DSN-less OGR > connections. David, I don't believe this is currently supported for the OGR ODBC driver. The Personal Geodatabase driver also goes through ODBC and doesn't require a DSN, but it does not appear that the ODBC driver will allow the application/user to pass through the required parameter instead of a DSN. 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 | President OSGeo, http://osgeo.org From mike_conlow at YAHOO.COM Sun Jan 7 08:29:00 2007 From: mike_conlow at YAHOO.COM (Mike Conlow) Date: Sun, 7 Jan 2007 08:29:00 -0800 Subject: Applet/utility for drawing polygons? Message-ID: Hi: Does anyone know of a good applet or utility to allow clients to draw polygons on a map and feed them to PostGIS? The issue I am trying to deal with: I have a lot of points and I need to let a client draw a polygon around a subset of those points and tag them with their name or a code or something. I think the easiest way is to pass the polygon to PostGIS...but if there are other ways that I haven't thought of... Thanks, Mike ----- Original Message ---- From: Eduardo Zenaide To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Friday, January 5, 2007 12:50:07 PM Subject: [UMN_MAPSERVER-USERS] Expressions hi, all, i'm trying to understand how expressions work here. i have one layer with IDH_2000 class wich has lots of numerical values. i try using ("[IDH_2000]" <= /0.4/) and it returns the error: msQueryByAttributes(): Search returned no results. No matching record(s) found. msEvalExpression: Expression parser error. Failed to parse expression msyyparse(): Expression parser error. syntax error i think i'm using the wrong syntax, but i've read http://mapserver.gis.umn.edu/docs/howto/msexpressions and couldn't get it. if i do the same but using =~ works :P so, any clues? thanks! -- Eduardo Zenaide __________________________________________________ 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 mitchelljj98 at GMAIL.COM Sun Jan 7 09:57:12 2007 From: mitchelljj98 at GMAIL.COM (John Mitchell) Date: Sun, 7 Jan 2007 12:57:12 -0500 Subject: existing raster mosaic and you try to add an image using gdalwarp will apache have to restarted Message-ID: Hi, If you have an existing raster mosaic and you try to add an image using gdalwarp and then run gdaladdo to rebuild the internal overviews, then do these operations affect the display of this raster mosaic within mapserver while they are running and after these operations complete will any future requests for this mosaic include this newly added image with its newly revised overlays or would apache have to be restarted? Also I have the same question for rerunning gdaltindex against an existing .shp file ( i.e. gdaltindex doq_index.shp doq/*.tif ) in order to add a new image will this operation affect ongoing displays against this shapefile within mapserver while they are running and after this operation completes will any future requests for this .shp include this newly added image or would apache have to be restarted? Thanks, -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From kbehncke at IGF.UNI-OSNABRUECK.DE Sun Jan 7 11:29:14 2007 From: kbehncke at IGF.UNI-OSNABRUECK.DE (Kai Behncke) Date: Sun, 7 Jan 2007 20:29:14 +0100 Subject: WMS-Transparency (?) Message-ID: Hello List, I have 2 WMS-Layer in my application. I would like that the WMS, that is presented on top, is transparent, so that I can see the layer that lies at the bottom. Is this possible? As far as I know in a GetMap-Expression it`s possible to say: .......&TRANSPARENT=TRUE but how do I put this in my mapfile? Like that: LAYER NAME 'Wesermarsch' TYPE RASTER STATUS DEFAULT CONNECTION 'http://127.0.0.1/cgi-bin/mapserv?map=/mapservertest/wms_wfs/wfs_hope/wms_server.map' CONNECTIONTYPE WMS METADATA 'wms_server_version' '1.1.1' 'wms_name' 'landkreis_export' 'wms_srs' 'EPSG:31467' 'wms_format' 'image/gif' 'wms_transparent' 'TRUE' END END ???? The Layer is not transparent at all :-[ I know that it`s possible to put TRANSPERENCY 60 (for example) in the Layer-section of the mapfile, but I need a transparent WMS. Does anybody know? Thank you a lot. Kai -- Dipl.-Geogr. Dipl.-Umweltw. Kai Behncke Institut f?r Geoinformatik und Fernerkundung (IGF) Universit?t Osnabr?ck Kolpingstr. 7 49074 Osnabr?ck Raum: 01/308 Tel.: +49 541 969-4450 E-Mail: mailto:kbehncke at igf.uni-osnabrueck.de Web: http://www.igf.uni-osnabrueck.de From mitchelljj98 at GMAIL.COM Sun Jan 7 12:00:50 2007 From: mitchelljj98 at GMAIL.COM (John Mitchell) Date: Sun, 7 Jan 2007 15:00:50 -0500 Subject: Mapserver acceptance as open source Message-ID: Hi, I am getting concerned that Mapserver will not be accepted by one of our clients because its open source. Has anyone else ever have a similar problem? Does anyone have any advice? Thanks, -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From punk.kish at GMAIL.COM Sun Jan 7 12:11:21 2007 From: punk.kish at GMAIL.COM (P Kishor) Date: Sun, 7 Jan 2007 14:11:21 -0600 Subject: Mapserver acceptance as open source In-Reply-To: Message-ID: On 1/7/07, John Mitchell wrote: > Hi, > > I am getting concerned that Mapserver will not be accepted by one of our > clients because its open source. Has anyone else ever have a similar > problem? Does anyone have any advice? that's weird... I mean, what is it that these clients of yours could want? Would they like for it to be converted to proprietary source? I mean, they could possibly offer a few million dollars for the intellectual property, buy out the entire worldwide MapServer community, and put their own brand on it. An easier option for them would be to simply go and buy one of the many closed source, proprietary alternatives and forget about MapServer. Maybe you should start conversation with them and find out before starting the project... maybe they legitimately don't want an open source solution, in which case, MapServer is not for them. -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.nelson.wisc.edu/ Open Source Geospatial Foundation http://www.osgeo.org/education/ --------------------------------------------------------------------- collaborate, communicate, compete ===================================================================== From ed at TOPOZONE.COM Sun Jan 7 13:43:21 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Sun, 7 Jan 2007 16:43:21 -0500 Subject: existing raster mosaic and you try to add an image using gdalwarp will apache have to restarted In-Reply-To: A Message-ID: John - Each CGI request to MapServer is a completely new request, that behaves as if it were the first MapServer request to that machine ever - it is completely stateless, and all changes to data and indexes take effect immediately. If you are using caching software on the client or on your server, you can modify that behavior, but that should come as no surprise. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of John Mitchell Sent: Sunday, January 07, 2007 12:57 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] existing raster mosaic and you try to add an image using gdalwarp will apache have to restarted Hi, If you have an existing raster mosaic and you try to add an image using gdalwarp and then run gdaladdo to rebuild the internal overviews, then do these operations affect the display of this raster mosaic within mapserver while they are running and after these operations complete will any future requests for this mosaic include this newly added image with its newly revised overlays or would apache have to be restarted? Also I have the same question for rerunning gdaltindex against an existing .shp file ( i.e. gdaltindex doq_index.shp doq/*.tif ) in order to add a new image will this operation affect ongoing displays against this shapefile within mapserver while they are running and after this operation completes will any future requests for this .shp include this newly added image or would apache have to be restarted? Thanks, -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From plists at PROMETHEUS.ORG.YU Sun Jan 7 13:27:41 2007 From: plists at PROMETHEUS.ORG.YU (Attila Csipa) Date: Sun, 7 Jan 2007 22:27:41 +0100 Subject: Mapserver acceptance as open source In-Reply-To: Message-ID: On Sunday 07 January 2007 21:00, John Mitchell wrote: > I am getting concerned that Mapserver will not be accepted by one of our > clients because its open source. Has anyone else ever have a similar > problem? Does anyone have any advice? Try to find out what exactly in open source bothers them, and dissolve any FUD that they might have been spread to them. If they have a list of issues, that can be dealt with, if it's just 'gut feeling' from management then it will be much harder. If you are talking to suits (no offense anyone :), from personal experience, do not emphasise the free aspect of Open Source (beer or word), rather concentrate on synergy, development speed, flexibility, community aspects. I found it helpful to use big companies that use Open Source for reference and added authority, like - Hey, if it's good enough for IBM on their big iron and it's good enough for Google for their top services... And these are companies that have many many factors on which to judge software, not only price. Again, I must underline you must find out what exactly bothers them in Open Source and address that particular issue, it will help much more than 3rd party success stories. A good read on the topic: http://www.opensource.org/advocacy/case_for_business.php http://www.opensource.org/advocacy/faq.php From kbehncke at IGF.UNI-OSNABRUECK.DE Sun Jan 7 13:51:11 2007 From: kbehncke at IGF.UNI-OSNABRUECK.DE (Kai Behncke) Date: Sun, 7 Jan 2007 22:51:11 +0100 Subject: Bug by WMS-GetFeatureInfo in Mapserver 4.10.0 ? Message-ID: Hello list, I`m not sure if I have ignored something. I try to use a WMS - GetFeatureInfo with Mapserver 4.10.0. If I poste: http://localhost/cgi-bin/mapserv?map=C:/Programme/Apachegroup/Apache/ htdocs/zeitmess/wms_server.map&VERSION=1.1.1&SERVICE=WMS&REQUEST= getFeatureInfo&layers=landkreis&BBOX=3430018,5876533,3491970,5948485& Query_Layers=landkreis&WIDTH=500&Height=500&X=250&Y=250& FEATURE_COUNT=30&INFO_FORMAT=text/plain& I always just get: "GetFeatureInfo results: Layer 'landkreis' Feature 7:" ...but there are no results of the shape-columns. I tested it on Windows XP and Debian Sarge 3.1. If I test it with Mapserver 4.8.1 it works perfectly and I get: "GetFeatureInfo results: Layer 'landkreis' Feature 7: DEUMUNIC_I = '2166' ID = '03461008' NAME = 'Ovelg?nne' AREA = '123.84' POPDENKM = '45.00' POPTOTAL = '5623.00' PO_M_T_95 = '2863.00' PO_F_T_95 = '2760.00'" Might this be a bug or is there something I need to do specially in Mapserver 4.10.0 ? By the way: If I use a HTML-Template to present the data of the Shape-columns with MS 4.10 it works, but I need it as text/plain. Could anybody help? Thank you, Kai -- Dipl.-Geogr. Dipl.-Umweltw. Kai Behncke Institut f?r Geoinformatik und Fernerkundung (IGF) Universit?t Osnabr?ck Kolpingstr. 7 49074 Osnabr?ck Raum: 01/308 Tel.: +49 541 969-4450 E-Mail: mailto:kbehncke at igf.uni-osnabrueck.de Web: http://www.igf.uni-osnabrueck.de From warmerdam at POBOX.COM Sun Jan 7 14:19:15 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Sun, 7 Jan 2007 17:19:15 -0500 Subject: Mapserver acceptance as open source In-Reply-To: Message-ID: John Mitchell wrote: > Hi, > > I am getting concerned that Mapserver will not be accepted by one of our > clients because its open source. Has anyone else ever have a similar > problem? Does anyone have any advice? John, Like many of the other folks who responded, I think it is hard to offer much advice without particulars of why the client is concerned. One goal of OSGeo is to overcome some concerns with regard to open source. For instance, we vette the code to ensure that there aren't "intellectual property" landmines in the future, and we try to build a governance structure around projects to provide assurance they are well managed and will last for the long haul. I would be quite interested in hearing what the clients concerns are, and if there are things that OSGeo can or should be doing to address the concerns. 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 | President OSGeo, http://osgeo.org From warmerdam at POBOX.COM Sun Jan 7 14:25:43 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Sun, 7 Jan 2007 17:25:43 -0500 Subject: existing raster mosaic and you try to add an image using gdalwarp will apache have to restarted In-Reply-To: Message-ID: John Mitchell wrote: > Hi, > > If you have an existing raster mosaic and you try to add an image using > gdalwarp and then run gdaladdo to rebuild the internal overviews, then > do these operations affect the display of this raster mosaic within > mapserver while they are running and after these operations complete > will any future requests for this mosaic include this newly added image > with its newly revised overlays or would apache have to be restarted? > > Also I have the same question for rerunning gdaltindex against an > existing .shp file ( i.e. gdaltindex doq_index.shp doq/*.tif ) in order > to add a new image will this operation affect ongoing displays against > this shapefile within mapserver while they are running and after this > operation completes will any future requests for this .shp include this > newly added image or would apache have to be restarted? John, As Ed mentioned, MapServer is normally stateless so there is no action needed to make mapserver start using the updates. However, there is some danger that operations like gdaltindex or gdalwarp could put the datasets in an inconsistent state while they are running. Doing these operations on "live data" is somewhat risky though to be honest in-place updates of TIFF files, and shapefiles are unlikely to trigger any problems. 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 | President OSGeo, http://osgeo.org From bartvde at OSGIS.NL Mon Jan 8 00:10:45 2007 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Mon, 8 Jan 2007 09:10:45 +0100 Subject: Bug by WMS-GetFeatureInfo in Mapserver 4.10.0 ? Message-ID: Hi Kai, see: http://mapserver.gis.umn.edu/download/current/migration_guide_48_410 so add wms_include_items "all" in your METADATA section of the LAYER. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Kai Behncke Naar: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] Bug by WMS-GetFeatureInfo in Mapserver 4.10.0 ? Datum: 07/01/07 19:53 > Hello list, > > I`m not sure if I have ignored something. > I try to use a WMS - GetFeatureInfo with Mapserver 4.10.0. > > If I poste: > http://localhost/cgi-bin/mapserv?map=C:/Programme/Apachegroup/Apache/ > htdocs/zeitmess/wms_server.map&VERSION=1.1.1&SERVICE=WMS&REQUEST= > getFeatureInfo&layers=landkreis&BBOX=3430018,5876533,3491970,5948485& > Query_Layers=landkreis&WIDTH=500&Height=500&X=250&Y=250& > FEATURE_COUNT=30&INFO_FORMAT=text/plain& > > I always just get: > > "GetFeatureInfo results: > > Layer 'landkreis' > Feature 7:" > > ....but there are no results of the shape-columns. > I tested it on Windows XP and Debian Sarge 3.1. > > If I test it with Mapserver 4.8.1 it works perfectly and I get: > > "GetFeatureInfo results: > > Layer 'landkreis' > Feature 7: > DEUMUNIC_I = '2166' > ID = '03461008' > NAME = 'Ovelg?nne' > AREA = '123.84' > POPDENKM = '45.00' > POPTOTAL = '5623.00' > PO_M_T_95 = '2863.00' > PO_F_T_95 = '2760.00'" > > Might this be a bug or is there something I need to do specially in Mapserver > 4.10.0 ? > > By the way: If I use a HTML-Template to present the data of the Shape-columns > with MS 4.10 it works, but I need it as text/plain. > Could anybody help? > Thank you, Kai > > -- > Dipl.-Geogr. Dipl.-Umweltw. Kai Behncke > > Institut f?r Geoinformatik und Fernerkundung (IGF) > Universit?t Osnabr?ck > Kolpingstr. 7 > 49074 Osnabr?ck > > Raum: 01/308 > Tel.: +49 541 969-4450 > E-Mail: mailto:kbehncke at igf.uni-osnabrueck.de > Web: http://www.igf.uni-osnabrueck.de > > From vito.meuli at TECNOLOGIEAVANZATE.IT Mon Jan 8 02:39:51 2007 From: vito.meuli at TECNOLOGIEAVANZATE.IT (Vito Meuli) Date: Mon, 8 Jan 2007 11:39:51 +0100 Subject: Is MapLab really working? In-Reply-To: <42CE9E95.2000109@dmsolutions.ca> Message-ID: Hi everybody! A bad question to pose, but I really need an answer to it: Is MapLab really working? It's already a week that I'm struggling with it, but on my main server (Red Hat Enterprise Linux AS4, with its PHP 4.3.9-3.15) it is unreliable, it crashes every 5 mouse clicks... Now I'm trying with Host GIS Linux, an old one with PHP 4.3.11, but until now it doesn't work. Can you suggest me a reliable way of installing it? Is it going better with Windows? Bye Vito -- Ing. Vito Meuli Tecnologie Avanzate S.r.l. via B. Croce, 49 70015 Noci (BA) tel. +39 080 4979652 fax +39 080 4979263 email: v.meuli at tecnologieavanzate.it http://www.tecnologieavanzate.it From Jukka.Rahkonen at MMMTIKE.FI Mon Jan 8 03:18:46 2007 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Mon, 8 Jan 2007 13:18:46 +0200 Subject: Is MapLab really working? Message-ID: Hi, I cannot compare it with Linux, but MapLab with MS4W version 1.x is working fine for me. It says in Maptools page: " MS4W 1.x is recommended for MapLab, because of possible problems with PHP5 in MS4W 2.x." -Jukka- ________________________________ L?hett?j?: UMN MapServer Users List puolesta: Vito Meuli L?hetetty: ma 8.1.2007 12:39 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: [UMN_MAPSERVER-USERS] Is MapLab really working? Hi everybody! A bad question to pose, but I really need an answer to it: Is MapLab really working? It's already a week that I'm struggling with it, but on my main server (Red Hat Enterprise Linux AS4, with its PHP 4.3.9-3.15) it is unreliable, it crashes every 5 mouse clicks... Now I'm trying with Host GIS Linux, an old one with PHP 4.3.11, but until now it doesn't work. Can you suggest me a reliable way of installing it? Is it going better with Windows? Bye Vito -- Ing. Vito Meuli Tecnologie Avanzate S.r.l. via B. Croce, 49 70015 Noci (BA) tel. +39 080 4979652 fax +39 080 4979263 email: v.meuli at tecnologieavanzate.it http://www.tecnologieavanzate.it From JXA at COWI.DK Mon Jan 8 04:52:33 2007 From: JXA at COWI.DK (Jeppe Lund Andersen) Date: Mon, 8 Jan 2007 13:52:33 +0100 Subject: slow database Message-ID: Hello iam running mapserver on a windows 2003 server. I made an application that uses ODBC connection, when I run it on my local machine that has sql installed it performance fast enough (takes 2 sec to make the map), but if I has a connection to a sql that is on another server the performance is not good (takes 20 sec to make the map). it is the same database on both machines. So is it a known fact that when using an external SQL server the performance is slow ? Med venlig hilsen Jeppe Lund Andersen -------------- next part -------------- An HTML attachment was scrubbed... URL: From JXA at COWI.DK Mon Jan 8 05:15:56 2007 From: JXA at COWI.DK (Jeppe Lund Andersen) Date: Mon, 8 Jan 2007 14:15:56 +0100 Subject: slow database Message-ID: The database is the same they have the same index's Jeppe > -----Original Message----- > From: Fabian Rami [mailto:fabian.rami at wowcompany.com] > Sent: Monday, January 08, 2007 1:58 PM > To: Jeppe Lund Andersen > Subject: Re: [UMN_MAPSERVER-USERS] slow database > > Have you build the same Index on your table ? > > Jeppe Lund Andersen a ?crit : > > > > Hello > > > > iam running mapserver on a windows 2003 server. > > I made an application that uses ODBC connection, when I run > it on my > > local machine that has sql installed it performance fast > enough (takes > > 2 sec to make the map), but if I has a connection to a sql > that is on > > another server the performance is not good (takes 20 sec to > make the map). > > > > it is the same database on both machines. > > > > So is it a known fact that when using an external SQL server the > > performance is slow ? > > > > > > Med venlig hilsen > > > > Jeppe Lund Andersen > > > > > > From kbehncke at IGF.UNI-OSNABRUECK.DE Mon Jan 8 05:20:50 2007 From: kbehncke at IGF.UNI-OSNABRUECK.DE (Kai Behncke) Date: Mon, 8 Jan 2007 14:20:50 +0100 Subject: WMS-Transparency (?) In-Reply-To: Message-ID: On Mon, 8 Jan 2007 14:17:37 +0100, Michael Schulz wrote > Hi Kai, > > did you try it with "OFFSITE 255 255 255" for the layer definition > that cascades your wms? > I am not sure what mapservers behaviour is, when cascading a > transparent wms - if that transparency is (or can be) automatically > used. > > Cheers, Michael > Hello Michael, thank you for that information. I already checked out OFFSITE [r] [g] [b] and it made the layer on the top transparent (but it is a 100% transparency). I would like to get it in a way that it`s just 50% transparent (so that one can see the topic layer und underneath the streets, river, etc. of the bottom-layer). But I guess that this is not possible with wms-layer? Regards, Kai -- Dipl.-Geogr. Dipl.-Umweltw. Kai Behncke Institut f?r Geoinformatik und Fernerkundung (IGF) Universit?t Osnabr?ck Kolpingstr. 7 49074 Osnabr?ck Raum: 01/308 Tel.: +49 541 969-4450 E-Mail: mailto:kbehncke at igf.uni-osnabrueck.de Web: http://www.igf.uni-osnabrueck.de From mschulz at WEBGIS.DE Mon Jan 8 05:17:37 2007 From: mschulz at WEBGIS.DE (Michael Schulz) Date: Mon, 8 Jan 2007 14:17:37 +0100 Subject: WMS-Transparency (?) In-Reply-To: <20070107192222.M31934@igf.uni-osnabrueck.de> Message-ID: Hi Kai, did you try it with "OFFSITE 255 255 255" for the layer definition that cascades your wms? I am not sure what mapservers behaviour is, when cascading a transparent wms - if that transparency is (or can be) automatically used. Cheers, Michael 2007/1/7, Kai Behncke : > Hello List, > I have 2 WMS-Layer in my application. > I would like that the WMS, that is presented on top, is transparent, so that I > can see the layer that lies at the bottom. > > Is this possible? > As far as I know in a GetMap-Expression it`s possible to say: > .......&TRANSPARENT=TRUE > but how do I put this in my mapfile? > Like that: > > LAYER > NAME 'Wesermarsch' > TYPE RASTER > STATUS DEFAULT > CONNECTION > 'http://127.0.0.1/cgi-bin/mapserv?map=/mapservertest/wms_wfs/wfs_hope/wms_server.map' > CONNECTIONTYPE WMS > > METADATA > 'wms_server_version' '1.1.1' > 'wms_name' 'landkreis_export' > 'wms_srs' 'EPSG:31467' > 'wms_format' 'image/gif' > 'wms_transparent' 'TRUE' > END > END ???? > > The Layer is not transparent at all :-[ > > I know that it`s possible to put TRANSPERENCY 60 (for example) > in the Layer-section of the mapfile, but I need a transparent WMS. > Does anybody know? > Thank you a lot. > Kai > -- > Dipl.-Geogr. Dipl.-Umweltw. Kai Behncke > > Institut f?r Geoinformatik und Fernerkundung (IGF) > Universit?t Osnabr?ck > Kolpingstr. 7 > 49074 Osnabr?ck > > Raum: 01/308 > Tel.: +49 541 969-4450 > E-Mail: mailto:kbehncke at igf.uni-osnabrueck.de > Web: http://www.igf.uni-osnabrueck.de > -- ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH In den Weihermatten 66 79108 Freiburg Tel +49 (0)761 556959-5 Fax +49 (0)761 556959-6 http://www.webgis.de / http://www.zopecms.de ----------------------------------------------------------- From bartvde at OSGIS.NL Mon Jan 8 05:40:09 2007 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Mon, 8 Jan 2007 14:40:09 +0100 Subject: WMS-Transparency (?) Message-ID: You should be able to do this by using an SLD. Try something like (not verified!): "wms_sld_body" "YOURLAYERNAME0.5" Change YOURLAYERNAME into the name of your layer (wms_name). See also: http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0406/msg00538.html Hope this helps. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Kai Behncke Naar: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] WMS-Transparency (?) Datum: 08/01/07 11:23 > On Mon, 8 Jan 2007 14:17:37 +0100, Michael Schulz wrote > > Hi Kai, > > > > did you try it with "OFFSITE 255 255 255" for the layer definition > > that cascades your wms? > > I am not sure what mapservers behaviour is, when cascading a > > transparent wms - if that transparency is (or can be) automatically > > used. > > > > Cheers, Michael > > > Hello Michael, > thank you for that information. > I already checked out OFFSITE [r] [g] [b] and it made > the layer on the top transparent (but it is a 100% transparency). > > I would like to get it in a way that it`s just 50% transparent (so that one > can see the topic layer und underneath the streets, river, etc. of the > bottom-layer). > But I guess that this is not possible with wms-layer? > > Regards, Kai > -- > Dipl.-Geogr. Dipl.-Umweltw. Kai Behncke > > Institut f?r Geoinformatik und Fernerkundung (IGF) > Universit?t Osnabr?ck > Kolpingstr. 7 > 49074 Osnabr?ck > > Raum: 01/308 > Tel.: +49 541 969-4450 > E-Mail: mailto:kbehncke at igf.uni-osnabrueck.de > Web: http://www.igf.uni-osnabrueck.de > > From mschulz at WEBGIS.DE Mon Jan 8 05:45:44 2007 From: mschulz at WEBGIS.DE (Michael Schulz) Date: Mon, 8 Jan 2007 14:45:44 +0100 Subject: Applet/utility for drawing polygons? In-Reply-To: <20070107162900.64883.qmail@web90611.mail.mud.yahoo.com> Message-ID: Hi, have a look at mapbender and its digitizing capabilities: http://www.mapbender.org/ http://www.mapbender.org/index.php/Digitalisierung#ENGLISH Try the link to the digitizing gui. Digitizing functionality includes e.g. snapping to nodes and saving geometries via wfs-t (geoserver->postgres). Cheers, Michael 2007/1/7, Mike Conlow : > > Hi: Does anyone know of a good applet or utility to allow clients to draw > polygons on a map and feed them to PostGIS? > > The issue I am trying to deal with: I have a lot of points and I need to let > a client draw a polygon around a subset of those points and tag them with > their name or a code or something. I think the easiest way is to pass the > polygon to PostGIS...but if there are other ways that I haven't thought > of... > > Thanks, > > Mike > > ----- Original Message ---- > From: Eduardo Zenaide > To: MAPSERVER-USERS at LISTS.UMN.EDU > Sent: Friday, January 5, 2007 12:50:07 PM > Subject: [UMN_MAPSERVER-USERS] Expressions > > hi, all, > > i'm trying to understand how expressions work here. > i have one layer with IDH_2000 class wich has lots of numerical values. > i try using ("[IDH_2000]" <= /0.4/) and it returns the error: > > msQueryByAttributes(): Search returned no results. No matching record(s) > found. > msEvalExpression: Expression parser error. Failed to parse expression > msyyparse(): Expression parser error. syntax error > > i think i'm using the wrong syntax, but i've read > http://mapserver.gis.umn.edu/docs/howto/msexpressions > and couldn't get it. > > if i do the same but using =~ works :P > so, any clues? > > thanks! > > -- > Eduardo Zenaide > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com -- ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH In den Weihermatten 66 79108 Freiburg Tel +49 (0)761 556959-5 Fax +49 (0)761 556959-6 http://www.webgis.de / http://www.zopecms.de ----------------------------------------------------------- From Tom.Kralidis at EC.GC.CA Mon Jan 8 06:54:11 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Mon, 8 Jan 2007 09:54:11 -0500 Subject: Applet/utility for drawing polygons? Message-ID: > 2007/1/7, Mike Conlow : > > > > Hi: Does anyone know of a good applet or utility to allow > clients to > > draw polygons on a map and feed them to PostGIS? > > > > The issue I am trying to deal with: I have a lot of points > and I need > > to let a client draw a polygon around a subset of those > points and tag them with > > their name or a code or something. I think the easiest > way is to pass the > > polygon to PostGIS...but if there are other ways that I haven't > > thought of... > >> Check out Mapbuilder (http://communitymapbuilder.org/), which supports uploading features to OGC:WFS-T. Cheers ..Tom From ezenaide at GMAIL.COM Mon Jan 8 09:33:04 2007 From: ezenaide at GMAIL.COM (Eduardo Zenaide) Date: Mon, 8 Jan 2007 15:33:04 -0200 Subject: trouble with Rosa Applet Message-ID: hi all, i'm trying to use Rosa Applet but, as usual, not sucessfully :) i'm opening it with same i was using with GMap. but the Java Console always returns load: class Rosa2000 not found. java.lang.ClassNotFoundException: Rosa2000 i don't understand java, i've tried changing the CODE using full locations ( e.g. c:/ms4w/.../Rosa2000) and extension (class). any clues? thanks! -- Eduardo Zenaide -------------- next part -------------- An HTML attachment was scrubbed... URL: From kenlord at GMAIL.COM Mon Jan 8 10:29:12 2007 From: kenlord at GMAIL.COM (Ken Lord) Date: Mon, 8 Jan 2007 10:29:12 -0800 Subject: Mapserver acceptance as open source In-Reply-To: <45A171E3.6020203@pobox.com> Message-ID: Hi John, I have had the same problem, where a significant client has required a mapserver site we set up as a prototype rebuilt in ArcIMS for migration to their servers ... purely for beaureacratic reasons. The prototype was created at significant cost to them, they understood we were going to use MapServer, and they now must pay to port it to ArcIMS, including the cost of Oracle, to replace PostGIS. So my advice is, if they don't like MapServer, show them how much more it is going to cost them to move to closed-source. If they don't care about the cost, they can spend the money for you to make what they want. The most important thing is what keeps You in business. On a completly different topic: I spent a couple weeks trying to get ESRI to tell me if ArcIMS 9.2 would truly support cascading WMS, in the sense that MapServer does, meaning that it could take a WMS source and reproject it into the projection of your map even if the WMS does not supply the map in your projection. They told me several times that not only does 9.2 support this, but that 9.1 also does ... This is of course not true. Anyone who has tried to use the wonderful NASA / JPL Landsat layers in a UTM map (the LandSat is available only in WGS84) knows this to be the case. It requires MapServer or similar to cascade it into the projection you need. ArcGIS Desktop 9.2 does actually support true cascading WMS, and ArcIMS is supposed to replicate all of Desktop's functionality. They finally admitted to me that despite their advertising of it, true cascading WMS support was not an intended feature of ArcIMS 9.2, and that this violates thier plan of matching ArcIMS functionality with ArcGIS Desktop. They have filed this as a bug and feature request. Supposedly ArcIMS 9.2 will get this functionality in a future service pack. Cheers, Ken Lord Vancouver BC On 1/7/07, Frank Warmerdam wrote: > John Mitchell wrote: > > Hi, > > > > I am getting concerned that Mapserver will not be accepted by one of our > > clients because its open source. Has anyone else ever have a similar > > problem? Does anyone have any advice? > > John, > > Like many of the other folks who responded, I think it is hard to > offer much advice without particulars of why the client is concerned. > > One goal of OSGeo is to overcome some concerns with regard to open source. > For instance, we vette the code to ensure that there aren't "intellectual > property" landmines in the future, and we try to build a governance structure > around projects to provide assurance they are well managed and will last for > the long haul. > > I would be quite interested in hearing what the clients concerns are, and > if there are things that OSGeo can or should be doing to address the > concerns. > > 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 | President OSGeo, http://osgeo.org > -- ============================== Ken Lord B.Sc., A.Dipl.T.H. 7488 Magnolia Terrace Burnaby BC, V5E 4L1 604-777-2171 kenlord at gmail.com klord at bgcengineering.com From mikesaunt at GMAIL.COM Mon Jan 8 11:40:54 2007 From: mikesaunt at GMAIL.COM (Mike Saunt) Date: Mon, 8 Jan 2007 19:40:54 +0000 Subject: Mapserver acceptance as open source In-Reply-To: Message-ID: Hi John I've been through this with a few clients who say they want the 'corporate backing' and the old adage 'No one got fired for buying from IBM' - normally comes down to who can they sue if something goes wrong. Never heard of much of that happening though! I've explained to customers how the large vendors don't normally support the solution but are just technology providers. As a solution provider it is actually safer for your client to have you supply Open Source as you have access to all the code if there are any issues - not just access to a Tech Support bod at the end of the phone line. I gave a presentation about this a while ago at an Autodesk User Day and although it mentions my company and my history it was titled 'What is all this FOSS about'- trying to be comical. There may be some pointers in there that may help with the slides about 'Who develops it' and 'Who backs it' and also why I believe that there will always be a case for both open and closed source (Generic Technology vs. Vertical Solution) One last point would be how well do you know the customer? Is there a hidden agenda or does a closed source vendor salesman have their ear also - may be worthwhile investigating prior to re pitching the compelling reasons to go Open Source... HTH Mike On 07/01/07, John Mitchell wrote: > > Hi, > > I am getting concerned that Mapserver will not be accepted by one of our > clients because its open source. Has anyone else ever have a similar > problem? Does anyone have any advice? > > Thanks, > > -- > John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From reh2 at PRODIGY.NET Mon Jan 8 13:21:40 2007 From: reh2 at PRODIGY.NET (ROBERT HOLLINGSWORTH) Date: Mon, 8 Jan 2007 13:21:40 -0800 Subject: MySQL Message-ID: hello, taking effective crash course in Mapserver and MySQL. Have seen CONNECTIONTYPE mygis, OGR/MySQL, JOIN and MySQL, and related docs. I haven't yet seen any strong indication that anything in Mapserver is compatible with the spatial extensions to MySQL (v4.1 and above, I think). Can anyone confirm or refute the following: " I should NOT attempt to model any spatial data in MySQL using its spatial constructs if I want to display them in Mapserver." Thanks for any assist -- might save several hours of investigation. Robert H. From dave.potts at PINAN.CO.UK Mon Jan 8 13:59:15 2007 From: dave.potts at PINAN.CO.UK (Dave Potts) Date: Mon, 8 Jan 2007 21:59:15 +0000 Subject: login values In-Reply-To: Message-ID: Hi Folks, I have a several .map files, each layer defines a postgis connection string. Which means everytime I want to change the access password, I have to update 20 diferent lines of code. Is there anyway of defining a password string outside of the .map file ? Dave. -------------- next part -------------- A non-text attachment was scrubbed... Name: dave.potts.vcf Type: text/x-vcard Size: 85 bytes Desc: not available URL: From wef1 at CEC.WUSTL.EDU Mon Jan 8 14:53:27 2007 From: wef1 at CEC.WUSTL.EDU (edfialk) Date: Mon, 8 Jan 2007 14:53:27 -0800 Subject: WCS output formats? Message-ID: Hey, I would really like my WCS request to output many more formats than just GeoTIFF (netCDF, CSV, HDF, Ascii, etc.) but as far as I can tell, mapserver's wcs only supports GeoTiff output. So, I've seen some posts about serving GeoTiff, but most have been 8-24 bit. I have seen someone claim that mapserver outputs 32-bit GeoTiff. So I try outputting GeoTiff, and I get a 500 Internal Server Error. Anyway, my question is first: Does MapServer support WCS output in any other format than GeoTiff? Second, does MapServer support 32-bit GeoTiff WITH RAW DATA included? And third, 500 Internal error when I try outputformat=GEOTIFF_RGB on my map. I'm not going to include the whole map file, but if anyone has ideas feel free to chime in. I'm grateful for any voice or opinion. Thanks! -Ed -- View this message in context: http://www.nabble.com/WCS-output-formats--tf2942688.html#a8228411 Sent from the Mapserver - User mailing list archive at Nabble.com. From woodbri at SWOODBRIDGE.COM Mon Jan 8 14:55:09 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 8 Jan 2007 17:55:09 -0500 Subject: login values In-Reply-To: <45A2BEB3.7030905@pinan.co.uk> Message-ID: How about a Mapfile INCLUDE "password.txt"? -Steve W Dave Potts wrote: > Hi Folks, > > I have a several .map files, each layer defines a postgis connection > string. Which means everytime I want to change the access password, I > have to update 20 diferent lines of code. > Is there anyway of defining a password string outside of the .map file ? > > Dave. From woodbri at SWOODBRIDGE.COM Mon Jan 8 18:59:31 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 8 Jan 2007 21:59:31 -0500 Subject: [Fwd: Re: [UMN_MAPSERVER-USERS] login values] Message-ID: ---------------------- Forwarded Message ---------------------------- Stephen Woodbridge wrote: Thank you Steve, I understand the concept of including a file (only from version 4.10) but I am trying to say something like CONNECTION "dbname=thedatabase user=theuser host=localhost port=5432" DATA "gis_ngr from (select gis_ngr,gid,name from county_outline_table ) as foo using srid=27700 using unique gid" How do I define the strings like 'thedatabase' or theuser ? Dave. > How about a Mapfile INCLUDE "password.txt"? > > -Steve W > > Dave Potts wrote: >> Hi Folks, >> >> I have a several .map files, each layer defines a postgis connection string. Which means everytime I want to change the access password, I have to update 20 diferent lines of code. >> Is there anyway of defining a password string outside of the .map file ? >> >> Dave. David Potts From bartvde at OSGIS.NL Mon Jan 8 22:42:15 2007 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Tue, 9 Jan 2007 07:42:15 +0100 Subject: WCS output formats? Message-ID: I can only answer one of your questions, Mapserver WCS does support output formats other than Geotiff. We use it to output Geotiff, ECW and MrSID. Just define the respective outputformats (ofcourse you need GDAL to be compiled with those options as writeable formats): OUTPUTFORMAT NAME "GEOTIFF" MIMETYPE "image/tiff" DRIVER "GDAL/GTiff" EXTENSION "tif" IMAGEMODE "RGBA" TRANSPARENT TRUE FORMATOPTION "COMPRESS=PACKBITS" END OUTPUTFORMAT NAME "ECW" MIMETYPE "image/ecw" DRIVER "GDAL/ECW" EXTENSION "ecw" IMAGEMODE "RGB" TRANSPARENT FALSE END OUTPUTFORMAT NAME "MrSID" MIMETYPE "image/mrsid" DRIVER "GDAL/MrSID" EXTENSION "sid" IMAGEMODE "RGB" TRANSPARENT FALSE END Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: edfialk Naar: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] WCS output formats? Datum: 08/01/07 20:53 > Hey, I would really like my WCS request to output many more formats than just > GeoTIFF (netCDF, CSV, HDF, Ascii, etc.) but as far as I can tell, > mapserver's wcs only supports GeoTiff output. > > So, I've seen some posts about serving GeoTiff, but most have been 8-24 bit. > I have seen someone claim that mapserver outputs 32-bit GeoTiff. > > So I try outputting GeoTiff, and I get a 500 Internal Server Error. > > Anyway, my question is first: Does MapServer support WCS output in any other > format than GeoTiff? > Second, does MapServer support 32-bit GeoTiff WITH RAW DATA included? > > And third, 500 Internal error when I try outputformat=GEOTIFF_RGB on my map. > I'm not going to include the whole map file, but if anyone has ideas feel > free to chime in. > > I'm grateful for any voice or opinion. > Thanks! > -Ed > -- > View this message in context: http://www.nabble.com/WCS-output-formats--tf2942688.html#a8228411 > Sent from the Mapserver - User mailing list archive at Nabble.com. > > From Kristian.Thy at ATKINSGLOBAL.COM Tue Jan 9 01:12:25 2007 From: Kristian.Thy at ATKINSGLOBAL.COM (Thy, Kristian) Date: Tue, 9 Jan 2007 10:12:25 +0100 Subject: login values In-Reply-To: A<45A2CBCD.4000002@swoodbridge.com> Message-ID: From: Stephen Woodbridge > How about a Mapfile INCLUDE "password.txt"? Failing that: for i in *.map; do sed -i "s/oldpassword/newpassword/"; done; This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. From nbarker at ITTVIS.COM Tue Jan 9 01:19:42 2007 From: nbarker at ITTVIS.COM (Norman Barker) Date: Tue, 9 Jan 2007 09:19:42 -0000 Subject: WCS output formats? Message-ID: Hi, There is a tutorial written by Gail and myself here, it even describes a map file with 32-bit geotiff, hope it is of use http://mapserver.gis.umn.edu/docs/howto/WCSServerFormatHowTo MapServer can read and serve netCDF from the WCS interface if that is of use to you. Thanks, Norman -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of edfialk Sent: 08 January 2007 22:53 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] WCS output formats? Hey, I would really like my WCS request to output many more formats than just GeoTIFF (netCDF, CSV, HDF, Ascii, etc.) but as far as I can tell, mapserver's wcs only supports GeoTiff output. So, I've seen some posts about serving GeoTiff, but most have been 8-24 bit. I have seen someone claim that mapserver outputs 32-bit GeoTiff. So I try outputting GeoTiff, and I get a 500 Internal Server Error. Anyway, my question is first: Does MapServer support WCS output in any other format than GeoTiff? Second, does MapServer support 32-bit GeoTiff WITH RAW DATA included? And third, 500 Internal error when I try outputformat=GEOTIFF_RGB on my map. I'm not going to include the whole map file, but if anyone has ideas feel free to chime in. I'm grateful for any voice or opinion. Thanks! -Ed -- View this message in context: http://www.nabble.com/WCS-output-formats--tf2942688.html#a8228411 Sent from the Mapserver - User mailing list archive at Nabble.com. From gheysen.t at GMAIL.COM Tue Jan 9 03:07:22 2007 From: gheysen.t at GMAIL.COM (Gheysen Thibaut) Date: Tue, 9 Jan 2007 12:07:22 +0100 Subject: MySQL In-Reply-To: <865204.31349.qm@web80514.mail.scd.yahoo.com> Message-ID: Hello, I haven't tested this but since gdal/ogr 1.3.2 you can write and read mysql spatial data. See http://gdal.maptools.org/ogr/drv_mysql.html for more details. Thibaut 2007/1/8, ROBERT HOLLINGSWORTH : > > hello, > taking effective crash course in Mapserver and MySQL. > Have seen CONNECTIONTYPE mygis, OGR/MySQL, JOIN and > MySQL, and related docs. I haven't yet seen any > strong indication that anything in Mapserver is > compatible with the spatial extensions to MySQL (v4.1 > and above, I think). > > Can anyone confirm or refute the following: " I should > NOT attempt to model any spatial data in MySQL using > its spatial constructs if I want to display them in > Mapserver." > > Thanks for any assist -- might save several hours of > investigation. > > Robert H. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From joseramonlopez at GMAIL.COM Tue Jan 9 04:01:46 2007 From: joseramonlopez at GMAIL.COM (=?ISO-8859-1?Q?Jos=E9_Ram=F3n_L=F3pez?=) Date: Tue, 9 Jan 2007 13:01:46 +0100 Subject: Slow map server doing getcapabilities with 200 layers Message-ID: Hi dear list, again. We are trying to make a wms service with MapServer. The number of layers is 180, wich are stored in Oracle. When we do a GetCapabilities request, it takes a lot of time sending the xml file. While it is sending the file, something curious happens. The process that takes the most of the memory of the computer is Oracle. Is there any parameter defined in the .map file, that makes the computer verify all the layers stored in the .map file? When i do a getlayer like ...Request=GetMap&Layers=xxx, it shows me fast. Does Oracle verify the layers, when we do a getcapabilities request? How i could optimize this? Thanks for all -- Jos? Ram?n L?pez -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at OSGIS.NL Tue Jan 9 04:14:59 2007 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Tue, 9 Jan 2007 13:14:59 +0100 Subject: Slow map server doing getcapabilities with 200 layers Message-ID: Probably Oracle is calculating the boundingboxes/extents for all of your LAYERS, this is requested by Mapserver to produce the capabilities and is very time consuming/costly. Try setting the wms_extent METADATA for all of your LAYERs so that no automatic calculation of the extents will be performed. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Jos? Ram?n L?pez Naar: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] Slow map server doing getcapabilities with 200 layers Datum: 09/01/07 10:03 > Hi dear list, again.We are trying to make a wms service with MapServer. The number of layers is 180, wich are stored in Oracle. When we do a GetCapabilities request, it takes a lot of time sending the xml file. While it is sending the file, something curious happens. The process that takes the most of the memory of the computer is Oracle. Is there any parameter defined in the .map file, that makes the computer verify all the layers stored in the .map file? > When i do a getlayer like ...Request=GetMap&Layers=xxx, it shows me fast.Does Oracle verify the layers, when we do a getcapabilities request?How i could optimize this?Thanks for all > -- Jos? Ram?n L?pez > From luca.casagrande at GMAIL.COM Tue Jan 9 04:51:34 2007 From: luca.casagrande at GMAIL.COM (Luca Casagrande) Date: Tue, 9 Jan 2007 13:51:34 +0100 Subject: Using an image as background for label Message-ID: Hi to all! Is it possible to use an image as background for labels? I'd like to use traffic sign to show names of roads. Thanks Luca -- Join the world's largest wifi conunity! http://en.fon.com/ LINUX User #411601 GENTOO-GIS Development Team jabber: casagrande at jabber.linux.it From steven.ottens at GEODAN.NL Tue Jan 9 04:41:03 2007 From: steven.ottens at GEODAN.NL (Steven M. Ottens) Date: Tue, 9 Jan 2007 13:41:03 +0100 Subject: projection offset Message-ID: Hi all, I've got a problem with reprojecting data (shapefiles) with mapserver: I've got data in shapefiles as wgs84 (epsg:4326) I need to be able to reproject them in various coordinatesystems. However if I request the data as dutch RD (epsg:28992) and overlay it with a shapefile with the same data in epsg:28992 I get a vertical offset. (see attached image; the red and black line should overlap.) If I reproject the data as UTM 30 I get a horizontal offset. Is there a magic trick to get mapserver reprojecting data on the fly? I've attached my mapfile if that helps. regards, Steven -------------- next part -------------- A non-text attachment was scrubbed... Name: gemWMS_errorsmall.jpg Type: image/jpeg Size: 21162 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: NL.map Type: application/octet-stream Size: 3334 bytes Desc: not available URL: From bartvde at OSGIS.NL Tue Jan 9 05:15:57 2007 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Tue, 9 Jan 2007 14:15:57 +0100 Subject: projection offset Message-ID: Steven, have you updated your PROJ.4 parameters? PROJ 4.5 should contain the right ones. This should be it, check your epsg file: <28992> +proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.999908 +x_0=155000 +y_0=463000 +ellps=bessel +units=m +towgs84=565.2369,50.0087,465.658,-0.406857330322398,0.350732676542563,-1.8703473836068,4.0812 +no_defs <> Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Steven M. Ottens Naar: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] projection offset Datum: 09/01/07 11:05 > Hi all, > > I've got a problem with reprojecting data (shapefiles) with mapserver: > I've got data in shapefiles as wgs84 (epsg:4326) I need to be able to > reproject them in various coordinatesystems. However if I request the > data as dutch RD (epsg:28992) and overlay it with a shapefile with > the same data in epsg:28992 I get a vertical offset. (see attached > image; the red and black line should overlap.) > If I reproject the data as UTM 30 I get a horizontal offset. Is there > a magic trick to get mapserver reprojecting data on the fly? I've > attached my mapfile if that helps. > > regards, > Steven > > > > > > From steven.ottens at GEODAN.NL Tue Jan 9 07:22:23 2007 From: steven.ottens at GEODAN.NL (Steven M. Ottens) Date: Tue, 9 Jan 2007 16:22:23 +0100 Subject: projection offset In-Reply-To: <806c4e98cfe1ad9f3f9c0f830676ad5b@145.50.39.11> Message-ID: Hi Bart, This solved the offset in RD, thanks a lot (the horizontal offset was due to a wrong epsg code) Steven But in On Jan 9, 2007, at 2:15 PM, Bart van den Eijnden (OSGIS) wrote: > Steven, > > have you updated your PROJ.4 parameters? PROJ 4.5 should contain > the right > ones. > > This should be it, check your epsg file: > > <28992> +proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 > +k=0.999908 +x_0=155000 +y_0=463000 +ellps=bessel +units=m > +towgs84=565.2369,50.0087,465.658,-0.406857330322398,0.350732676542563 > ,-1.8703473836068,4.0812 > +no_defs <> > > Best regards, > Bart > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > > > --------- Oorspronkelijk bericht -------- > Van: Steven M. Ottens > Naar: MAPSERVER-USERS at LISTS.UMN.EDU > Onderwerp: [UMN_MAPSERVER-USERS] projection offset > Datum: 09/01/07 11:05 > >> Hi all, >> >> I've got a problem with reprojecting data (shapefiles) with >> mapserver: >> I've got data in shapefiles as wgs84 (epsg:4326) I need to be able to >> reproject them in various coordinatesystems. However if I request the >> data as dutch RD (epsg:28992) and overlay it with a shapefile with >> the same data in epsg:28992 I get a vertical offset. (see attached >> image; the red and black line should overlap.) >> If I reproject the data as UTM 30 I get a horizontal offset. Is there >> a magic trick to get mapserver reprojecting data on the fly? I've >> attached my mapfile if that helps. >> >> regards, >> Steven >> >> >> >> >> >> From joseramonlopez at GMAIL.COM Tue Jan 9 08:07:35 2007 From: joseramonlopez at GMAIL.COM (=?ISO-8859-1?Q?Jos=E9_Ram=F3n_L=F3pez?=) Date: Tue, 9 Jan 2007 17:07:35 +0100 Subject: Slow map server doing getcapabilities with 200 layers In-Reply-To: Message-ID: Thanks again Bart for all. I added this parameter to all layers, and now works fine. 2007/1/9, Bart van den Eijnden (OSGIS) : > > Probably Oracle is calculating the boundingboxes/extents for all of your > LAYERS, this is requested by Mapserver to produce the capabilities and is > very time consuming/costly. > > Try setting the wms_extent METADATA for all of your LAYERs so that no > automatic calculation of the extents will be performed. > > Best regards, > Bart > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > > > --------- Oorspronkelijk bericht -------- > Van: Jos? Ram?n L?pez > Naar: MAPSERVER-USERS at LISTS.UMN.EDU > Onderwerp: [UMN_MAPSERVER-USERS] Slow map server doing getcapabilities > with > 200 layers > Datum: 09/01/07 10:03 > > > Hi dear list, again.We are trying to make a wms service with MapServer. > The number of layers is 180, wich are stored in Oracle. When we do a > GetCapabilities request, it takes a lot of time sending the xml file. > While > it is sending the file, something curious happens. The process that takes > the most of the memory of the computer is Oracle. Is there any parameter > defined in the .map file, that makes the computer verify all the layers > stored in the .map file? > > When i do a getlayer like ...Request=GetMap&Layers=xxx, it shows me > fast.Does Oracle verify the layers, when we do a getcapabilities > request?How > i could optimize this?Thanks for all > > -- Jos? Ram?n L?pez > > > > > > -- Jos? Ram?n L?pez -------------- next part -------------- An HTML attachment was scrubbed... URL: From wef1 at CEC.WUSTL.EDU Tue Jan 9 08:42:22 2007 From: wef1 at CEC.WUSTL.EDU (edfialk) Date: Tue, 9 Jan 2007 08:42:22 -0800 Subject: WCS output formats? In-Reply-To: Message-ID: That tutorial did help, thank you for writing it. I'm thinking we're going to go with GeoTiff and try to convert it afterward to something else. I have managed to serve up geoTiff images, but it seems I can't serve FLOAT32 GeoTiffs. All the other imagemodes (RGB, BYTE, INT16, etc.) all work fine, but when i set it to Float32, I get the quicktime icon with a question mark in front of it, no errors or anything. Anyone have any ideas why I can't serve Float32? Thanks again! -Ed -- View this message in context: http://www.nabble.com/WCS-output-formats--tf2942688.html#a8241448 Sent from the Mapserver - User mailing list archive at Nabble.com. From tkirstine at JDBARNES.COM Tue Jan 9 08:52:47 2007 From: tkirstine at JDBARNES.COM (Travis Kirstine) Date: Tue, 9 Jan 2007 11:52:47 -0500 Subject: EPSG code for Calgary 3TM - 114 projection Message-ID: Hi All, Does anyone know or where I could fine the epsg code for: Calgary Projected Coordinate System: 3TM114-83 Projection: Transverse_Mercator false_easting: 0.00000000 false_northing: 0.00000000 central_meridian: -114.00000000 scale_factor: 0.99990000 latitude_of_origin: 0.00000000 Linear Unit: Meter Geographic Coordinate System: North_American_Datum_1983 Datum: D_North_American_1983 Prime Meridian: 0 Angular Unit: Degree I've tried looking at epsg.org with no luck Thanks Travis Kirstine First Base Solutions Limited Markham, ON Canada From kbehncke at IGF.UNI-OSNABRUECK.DE Tue Jan 9 08:52:33 2007 From: kbehncke at IGF.UNI-OSNABRUECK.DE (Kai Behncke) Date: Tue, 9 Jan 2007 17:52:33 +0100 Subject: WMS-Transparency (?) In-Reply-To: Message-ID: On Mon, 8 Jan 2007 14:40:09 +0100, Bart van den Eijnden (OSGIS) wrote > You should be able to do this by using an SLD. Try something like > (not verified!): > > "wms_sld_body" " xmlns='http://www.opengis.net/sld' > xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' > xsi:schemaLocation='http://www.opengis.net/sld > http://schemas.opengeospatial.net/sld/1.0.0/StyledLayerDescriptor.xsd'>YOURLAYERNAME0.5" > > Change YOURLAYERNAME into the name of your layer (wms_name). > > See also: > http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0406/msg00538.html > > Hope this helps. > > Best regards, > Bart > Hello List, thank you for all the hints!! The WMS-Layer I want transparency for is in original a Vector-Layer, so I think I can`t use SLD with (??m not so much in SLD by now)?? I always get error messages then.... (that one: http://mapserver.gis.umn.edu/docs/error/eppl7-error) I found another solution. For the Layer I want transparency for I`m using hatching. I define it in the symbolfile with: SYMBOL NAME "hatch" TYPE HATCH END and in the WMS-Server: STYLE SYMBOL 'hatch' ANGLE 45 COLOR 0 0 0 SIZE 6 WIDTH 1 END That gives transparency in the client. It`s not to 100% what I wanted, but nearly :-) Regards, Kai -- Dipl.-Geogr. Dipl.-Umweltw. Kai Behncke Institut f?r Geoinformatik und Fernerkundung (IGF) Universit?t Osnabr?ck Kolpingstr. 7 49074 Osnabr?ck Raum: 01/308 Tel.: +49 541 969-4450 E-Mail: mailto:kbehncke at igf.uni-osnabrueck.de Web: http://www.igf.uni-osnabrueck.de From noreply at GEOCARTIC.COM Tue Jan 9 09:40:50 2007 From: noreply at GEOCARTIC.COM (Tim Schaub) Date: Tue, 9 Jan 2007 10:40:50 -0700 Subject: MySQL In-Reply-To: <865204.31349.qm@web80514.mail.scd.yahoo.com> Message-ID: > Can anyone confirm or refute the following: " I should NOT > attempt to model any spatial data in MySQL using its spatial > constructs if I want to display them in Mapserver." As you'll hear from others, if you have a choice, PostgreSQL with PostGIS will give you more than what you'll get from MySQL. That said, if you have some other reason to use MySQL, you can take advantage of the spatial data types in MySQL with GDAL/OGR 1.3.2. The only example on the MapServer site that I know about (that uses MySQL spatial data types) is in the comments that I added to the bottom of the OGR page: http://mapserver.gis.umn.edu/docs/howto/ogr_howto Basically, use OGR as the CONNECTIONTYPE, use the "MYSQL:dbname,user=username,password=secret" syntax in your CONNECTION string, and put your SELECT statement in the DATA string. Also (as you'll read in the second MySQL comment on the linked page), if you want MySQL to use the spatial index on your features, you'll need to test for some geometry relation in your SELECT statement. Though MapServer is only rendering a limited extent, the spatial index is not invoked unless you use something like MBRContains in your SELECT statement. Good luck, Tim PS - in case an example would be useful, here's an ugly one: LAYER NAME "Abundance" GROUP "Survey Data" TYPE POINT CONNECTION "MySQL:dbname,user=username,password=secret" CONNECTIONTYPE OGR DATA "select the_geom, geog.geog as geog, geog.geogid as geogid, geog.regionid as regionid, count(distinct TWAsurveys.formid) as surveys, (avg(fish.abundance) * count(distinct TWAsurveys.formid)/geog.surveys) as abundance from fish, TWAsurveys, geog where MBRContains(GeomFromText('Polygon((%minx% %miny%, %minx% %maxy%, %maxx% %maxy%, %maxx% %miny%, %minx% %miny%))'), the_geom) and fish.region = 'TWA' and TWAsurveys.formid = fish.formid and geog.regionid = 'TWA' and geog.geogid = TWAsurveys.geogr and TWAsurveys.type = '1' and %where% group by TWAsurveys.geogr order by abundance;" ... END > > Thanks for any assist -- might save several hours of investigation. > > Robert H. > From nbarker at ITTVIS.COM Tue Jan 9 10:36:09 2007 From: nbarker at ITTVIS.COM (Norman Barker) Date: Tue, 9 Jan 2007 18:36:09 -0000 Subject: WCS output formats? Message-ID: Ed, Ho, ho, ho - good old quicktime! Save the image from the browser and open it in a GIS, or use OpenEV which works perfectly! MapServer is serving float32, it is a client error! I quite often use the curl windows binary for dos to navigate around these debug errors. Norman -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of edfialk Sent: 09 January 2007 16:42 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] WCS output formats? That tutorial did help, thank you for writing it. I'm thinking we're going to go with GeoTiff and try to convert it afterward to something else. I have managed to serve up geoTiff images, but it seems I can't serve FLOAT32 GeoTiffs. All the other imagemodes (RGB, BYTE, INT16, etc.) all work fine, but when i set it to Float32, I get the quicktime icon with a question mark in front of it, no errors or anything. Anyone have any ideas why I can't serve Float32? Thanks again! -Ed -- View this message in context: http://www.nabble.com/WCS-output-formats--tf2942688.html#a8241448 Sent from the Mapserver - User mailing list archive at Nabble.com. From ezenaide at GMAIL.COM Tue Jan 9 11:23:58 2007 From: ezenaide at GMAIL.COM (Eduardo Zenaide) Date: Tue, 9 Jan 2007 17:23:58 -0200 Subject: Reference Map Message-ID: hi all, something is wrong with my reference map. i'm using and it generate ok, but its not working. just don't act like on GMap, where i can use it as pan. on map file: REFERENCE IMAGE media/images/parara.png EXTENT -38.234122 -11.52665 -34.594394 -8.133178 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 SIZE 120 90 END i've seen some examples using name parameter on html input but i tried and nothing happens, also i didn't found KEYMAP anywhere, so i think its nothing :P thanks! -- Eduardo Zenaide -------------- next part -------------- An HTML attachment was scrubbed... URL: From ezenaide at GMAIL.COM Tue Jan 9 11:33:23 2007 From: ezenaide at GMAIL.COM (Eduardo Zenaide) Date: Tue, 9 Jan 2007 17:33:23 -0200 Subject: Reference Map In-Reply-To: Message-ID: thanks, Ian, but nothing changed :( 2007/1/9, Ian Tidy : > > I think the IMAGE has to be a GIF file and not PNG. > > Cheers Ian > ------------------------------ > *From:* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] *On > Behalf Of *Eduardo Zenaide > *Sent:* Wednesday, 10 January 2007 8:24 a.m. > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > *Subject:* [UMN_MAPSERVER-USERS] Reference Map > > hi all, > > something is wrong with my reference map. i'm using > > and it generate ok, but its not working. > just don't act like on GMap, where i can use it as pan. > > on map file: > > REFERENCE > IMAGE media/images/parara.png > EXTENT -38.234122 -11.52665 -34.594394 -8.133178 > STATUS ON > COLOR -1 -1 -1 > OUTLINECOLOR 255 0 0 > SIZE 120 90 > END > > i've seen some examples using name parameter on html input > > but i tried and nothing happens, also i didn't found KEYMAP anywhere, so i > think its nothing :P > > > thanks! > > -- > Eduardo Zenaide > ------------------------------ > This e-mail message has been scanned and cleared by *MailMarshal > www.marshalsoftware.com* > ------------------------------ > -- Eduardo Zenaide -------------- next part -------------- An HTML attachment was scrubbed... URL: From wef1 at CEC.WUSTL.EDU Tue Jan 9 11:38:44 2007 From: wef1 at CEC.WUSTL.EDU (edfialk) Date: Tue, 9 Jan 2007 11:38:44 -0800 Subject: WCS output formats? In-Reply-To: Message-ID: Awesome, thanks again Norman. Now, just out of curiosity. Does anyone happen to know of any way to convert GeoTiff images? (Probably 32 bit) Hoping to convert to HDF, NetCDF, CSV, or even ASCII. Any ideas at all I would love. Thanks! -Ed -- View this message in context: http://www.nabble.com/WCS-output-formats--tf2942688.html#a8244648 Sent from the Mapserver - User mailing list archive at Nabble.com. From warmerdam at POBOX.COM Tue Jan 9 12:01:40 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 9 Jan 2007 15:01:40 -0500 Subject: WCS output formats? In-Reply-To: <8244648.post@talk.nabble.com> Message-ID: edfialk wrote: > Awesome, thanks again Norman. > > Now, just out of curiosity. Does anyone happen to know of any way to > convert GeoTiff images? (Probably 32 bit) > > Hoping to convert to HDF, NetCDF, CSV, or even ASCII. Ed, You can use gdal_translate to convert Geotiffs to HDF, NetCDF and ASCII but not CSV. This assumes your GDAL has the optional HDF and NetCDF support built in of course (as the FWTools binaries do). eg. gdal_translate -of HDFImage in.tif out.hdf gdal_translate -of NetCDF in.tif out.nc gdal_translate -of AAIGRID in.tif out.grd 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 | President OSGeo, http://osgeo.org From ezenaide at GMAIL.COM Tue Jan 9 12:05:29 2007 From: ezenaide at GMAIL.COM (Eduardo Zenaide) Date: Tue, 9 Jan 2007 18:05:29 -0200 Subject: Reference Map In-Reply-To: Message-ID: Ian, i've put your code on a php file wich i included on my template and add name=KEYMAP on my input. like: didn't work. what i'm missing? 2007/1/9, Ian Tidy : > > Sorry, I didn't read your message properly. > > To get the keymap to pan, you need some code in your web page. > > My KEYMAP name is KEYMAP and the code to pan is something like this (PHP > code): > > // Key Map > if ($_POST["KEYMAP_x"]) { > > $dfKeyMapXMin = $map->reference->extent->minx; > $dfKeyMapYMin = $map->reference->extent->miny; > $dfKeyMapXMax = $map->reference->extent->maxx; > $dfKeyMapYMax = $map->reference->extent->maxy; > > // Click Position > $nClickPixX = ($_POST[KEYMAP_x]); > $nClickPixY = ($_POST[KEYMAP_y]); > > $dfWidthPix = doubleval($_POST[KEYMAPXSIZE]); > $dfHeightPix = doubleval($_POST[KEYMAPYSIZE]); > > // Convert to a Geographic Co-Ordinate > $geoWidth = ($dfKeyMapXMax - $dfKeyMapXMin) / $dfWidthPix; > $geoHeight = ($dfKeyMapYMax - $dfKeyMapYMin) / $dfHeightPix; > $keymap_x = ($nClickPixX * $geoWidth) + $dfKeyMapXMin; > $keymap_y = $dfKeyMapYMax - ($nClickPixY * $geoHeight); > > // Set Map Extents > $mapext_x = ($map->extent->maxx - $map->extent->minx) / 2; > $mapext_y = ($map->extent->maxy - $map->extent->miny) / 2; > //$my_extent = ms_newrectObj(); > //$my_extent->setextent($keymap_x - $mapext_x,$keymap_y - $mapext_y, > $keymap_x + $mapext_x,$keymap_y + $mapext_y); > $map->setExtent($keymap_x - $mapext_x,$keymap_y - $mapext_y, $keymap_x + > $mapext_x,$keymap_y + $mapext_y); > $keymap_text = ""; > } > There is a small bug in this code that I am still working on. > > Hope this helps. > > Cheers Ian > > ------------------------------ > ** > -- Eduardo Zenaide -------------- next part -------------- An HTML attachment was scrubbed... URL: From slone3 at LLNL.GOV Tue Jan 9 12:39:36 2007 From: slone3 at LLNL.GOV (Dale Slone) Date: Tue, 9 Jan 2007 12:39:36 -0800 Subject: [MAPSERVER-USERS] color theming shapfiles Message-ID: Hi I'd like to color theme a layer (shapefile) based on one of its attributes. For example, counties with high population density would be red, counties with low population density green, and others (continuous or discrete) in between. What would be the best approach? Thanx Dale From gregor at HOSTGIS.COM Tue Jan 9 12:50:21 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Tue, 9 Jan 2007 13:50:21 -0700 Subject: [MAPSERVER-USERS] color theming shapfiles In-Reply-To: <7.0.1.0.2.20070109122922.029c44b0@llnl.gov> Message-ID: > I'd like to color theme a layer (shapefile) based on one of its > attributes. Check the docs. For the layer, check out the CLASSITEM. For the classes, check out EXPRESSION. And if you need more help, just ask. Here's a super-simple example to get you started: LAYER CLASSITEM "population" CLASS NAME "big city" EXPRESSION ([population] > 1000000) END CLASS NAME "small town" EXPRESSION ([population] < 10000) END END From gis at ROSES.ES Tue Jan 9 23:24:34 2007 From: gis at ROSES.ES (Albert Garcia) Date: Wed, 10 Jan 2007 01:24:34 -0600 Subject: [MAPSERVER-USERS] color theming shapfiles Message-ID: Hi I have a layer and I draw the polygons in different color by one attribute (CONSTRU). In this case this attribute is not a number, but is the same. You can select using the parameter EXPRESSION. Every object CLASS is painted with a different color. LAYER NAME "constru" STATUS DEFAULT DATA "constru" TYPE POLYGON CLASSITEM "CONSTRU" UNITS METERS MAXSCALE 4000 CLASS NAME "solar" EXPRESSION "SOLAR" STYLE COLOR 233 209 209 OUTLINECOLOR 227 108 53 END END CLASS NAME "PATI" EXPRESSION "P" STYLE COLOR 207 221 193 OUTLINECOLOR 227 108 53 END END CLASS NAME "JARDI" EXPRESSION "JD" STYLE COLOR 207 221 193 OUTLINECOLOR 227 108 53 END END CLASS NAME "AMARRE" EXPRESSION "ETQ" STYLE COLOR 210 235 244 OUTLINECOLOR 227 108 53 END END CLASS NAME "PISCINA" EXPRESSION "PI" STYLE COLOR 131 196 254 OUTLINECOLOR 227 108 53 END END CLASS NAME "CONSTRUCCIO" STYLE COLOR 255 181 176 OUTLINECOLOR 227 108 53 END END END Albert From marc.jacquin at MAGELLIUM.FR Wed Jan 10 05:32:30 2007 From: marc.jacquin at MAGELLIUM.FR (Marc Jacquin) Date: Wed, 10 Jan 2007 14:32:30 +0100 Subject: Tileinidex cannot be used for CGI controls In-Reply-To: <4593B0DC0200008F00005681@co5.dnr.state.mn.us> Message-ID: Thanks Steve and best wishes to everyone for 2007. Frank, it seems that you included this update (TILEINDEX in loadLayerString) in FWTools 1.1.3 version dated January 5th 2007. Can you confirm ? On another hand, it seems that for some FWTools versions (1.1.3 at least) JPEG rendering does not work -zero size image- (JPEG only, PNG/GIF is OK), with no error message in debug. Any idea? Finally has FWTools 1.1.3 been validated on W2003 server R2? I could not get my own Mapserver version running on W2003 server (compiled with VS 2005 and FWTools libs). Thanks, Marc -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Steve Lime Envoy? : jeudi 28 d?cembre 2006 18:56 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] Tileinidex cannot be used for CGI controls Hi Marc: I'll fix in the main CVS branch and the 4.10 branch. I suspect I didn't include it because I couldn't think of a reason one would want to change it, but obviously you have one... ;-) Steve >>> Marc Jacquin 12/28/2006 11:17 AM >>> Hi all, I guess I found an omission in CGI controls: &map_layer_tileindex=myshapeindex.shp does not render anything. Checking the loadLayerString function in mapfile.c, it appears that the case TILEINDEX is missing. Just adding: case (TILEINDEX) : msFree(layer->tileindex); layer->tileindex = strdup(value); break; somewhere after the TEMPLATE case (just for ABC reasons) solves it. It seems to be missing even for 4.10 version. My 2 cents? :-) Greetings, Marc -------------- next part -------------- An HTML attachment was scrubbed... URL: From watry at STEAM.COAPS.FSU.EDU Wed Jan 10 07:41:35 2007 From: watry at STEAM.COAPS.FSU.EDU (Gary Watry) Date: Wed, 10 Jan 2007 10:41:35 -0500 Subject: Mapwindow 4.3 Message-ID: Where do you define a custom projection?? -- --------------------------------------------------------- The information transmitted is intended solely for the person or entity for which it is addressed and may contain confidential and/or privileged information. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this email in error, please contact the sender and delete the material from your computer. --------------------------------------------------------- Gary L. Watry GIS Coordinator Center for Ocean-Atmospheric Prediction Studies FSU / COAPS Johnson Building, RM 231 2035 East Paul Dirac Drive Tallahassee, Florida 32306-2840 Phone (850) 645-7457 E-Mail: watry at coaps.fsu.edu From watry at STEAM.COAPS.FSU.EDU Wed Jan 10 07:42:28 2007 From: watry at STEAM.COAPS.FSU.EDU (Gary Watry) Date: Wed, 10 Jan 2007 10:42:28 -0500 Subject: disregard e-mail on MApWindow 4.3 Message-ID: sent to wrong account -- --------------------------------------------------------- The information transmitted is intended solely for the person or entity for which it is addressed and may contain confidential and/or privileged information. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this email in error, please contact the sender and delete the material from your computer. --------------------------------------------------------- Gary L. Watry GIS Coordinator Center for Ocean-Atmospheric Prediction Studies FSU / COAPS Johnson Building, RM 231 2035 East Paul Dirac Drive Tallahassee, Florida 32306-2840 Phone (850) 645-7457 E-Mail: watry at coaps.fsu.edu From holzmeier at CONTERRA.DE Wed Jan 10 08:44:05 2007 From: holzmeier at CONTERRA.DE (Richard Holzmeier) Date: Wed, 10 Jan 2007 10:44:05 -0600 Subject: WFS GetFeature & SDE Connection Message-ID: Hi all, it seems to me that UMN WFS (4.10) has some problems with GetFeature requests that contains at least one attributive Query if a SDE connection is used. A basic GetFeature request with one comparison filter "PropertyIsEqualTo" (see attached airp_req.xml) is beeing responded with a feature collection containing features that doesn't match the defined query. I set up an alternative shape-based WFS layer (shape exported from the SDE feature class above) that works perfectly with the GetFeature request, i.e. the returned feature collection contains only features that matches the defined query. Any idea why it works with shape bot not with sde? Perhaps similar experiences? Regards, Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: airpt_req.xml Type: text/xml Size: 400 bytes Desc: not available URL: From warmerdam at POBOX.COM Wed Jan 10 08:47:27 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 10 Jan 2007 11:47:27 -0500 Subject: Tileinidex cannot be used for CGI controls In-Reply-To: <003401c734bb$c745d640$9601a8c0@PC150> Message-ID: Marc Jacquin wrote: > Thanks Steve and best wishes to everyone for 2007. > > > > Frank, it seems that you included this update (TILEINDEX in > loadLayerString) in FWTools 1.1.3 version dated January 5^th 2007. Can > you confirm ? Marc, The mapserver source for FWTools 1.1.3 would have been pulled from CVS on January 4th or 5th. I see Steve made a change in mapfile.c related to tileindex/cgi handling on December 29th, so this is definately in FWTools 1.1.3. I'm not sure if this is the only change you are speaking of. > On another hand, it seems that for some FWTools versions (1.1.3 at > least) JPEG rendering does not work -zero size image- (JPEG only, > PNG/GIF is OK), with no error message in debug. I just tried "shp2img -m rot_out.map -o out.jpg" on msautotest/gdal/rot_out.map after changing the IMAGETYPE value to jpeg, and it produced a valid jpeg file. So I don't think jpeg output is generally broken. Perhaps there is some issue with your map, or your configuration? > Finally has FWTools 1.1.3 been validated on W2003 server R2? I could not > get my own Mapserver version running on W2003 server (compiled with VS > 2005 and FWTools libs). Folks have run FWTools on Win2003 (I don't know the revision) though I don't know whether the mapserver was used 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 | President OSGeo, http://osgeo.org From mashby at STANADYNE.COM Wed Jan 10 09:21:17 2007 From: mashby at STANADYNE.COM (Ashby, Matthew) Date: Wed, 10 Jan 2007 12:21:17 -0500 Subject: How to change your Map Server's email address or remove email from list Message-ID: Does anyone know how I can change/edit my email address used by this list or how to remove oneself from the list? --Matthew ************************************************************ The information contained in this message is confidential, privileged, or otherwise protected from disclosure and is intended for the recipient listed above. If the reader is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communications is strictly prohibited. If you have received this communication in error, PLEASE NOTIFY US IMMEDIATELY by replying to the message and deleting it from your computer. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at OSGIS.NL Wed Jan 10 09:44:31 2007 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Wed, 10 Jan 2007 18:44:31 +0100 Subject: How to change your Map Server's email address or remove email from list In-Reply-To: <4FAD7827C6E0444FAB73346F5522D451028F00C2@windsorex1.stanadyne.com> Message-ID: You'll probably have to leave with the old e-mail and join with the new one, go here to do that: http://lists.umn.edu/cgi-bin/wa?SUBED1=mapserver-users&A=1 Best regards, Bart Ashby, Matthew schreef: > > Does anyone know how I can change/edit my email address used by this > list or how to remove oneself from the list? > > > > --Matthew > > > > > > > > ------------------------------------------------------------------------ > The information contained in this message is confidential, privileged, > or otherwise protected from disclosure /and is intended for the > recipient listed above/. If the reader is not the intended recipient, > or an employee or agent responsible for delivering this message to the > intended recipient, you are hereby notified that any dissemination, > distribution or copying of this communications is strictly prohibited. > If you have received this communication in error, PLEASE NOTIFY US > IMMEDIATELY by replying to the message and deleting it from your computer. -- Bart van den Eijnden OSGIS, Open Source GIS bartvde at osgis.nl http://www.osgis.nl From wef1 at CEC.WUSTL.EDU Wed Jan 10 10:52:53 2007 From: wef1 at CEC.WUSTL.EDU (edfialk) Date: Wed, 10 Jan 2007 10:52:53 -0800 Subject: gdal setup with netCDF Message-ID: Hi! I'm trying to get GDAL configured for netCDF output (i.e. convert x file to netCDF). So, I install netcdf-3.6.1 (configure, make, make install). I configure GDAL --with-netcdf=/usr/local/src/netcdf-3.6.1 ... NETCDF support: yes ... then i run make for GDAL, and I get: ... /usr/bin/ld: /usr/local/src/netcdf-3.6.1/lib/libnetcdf.a(attr.o): relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC /usr/local/src/netcdf-3.6.1/lib/libnetcdf.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[1]: *** [libgdal.la] Error 1 make[1]: Leaving directory `/usr/local/src/gdal-1.3.2' make: *** [check-lib] Error 2 Bad value? I got the latest netCDF from http://www.unidata.ucar.edu/software/netcdf/... Anyone have any ideas? Thanks in advance! -Ed -- View this message in context: http://www.nabble.com/gdal-setup-with-netCDF-tf2954438.html#a8263860 Sent from the Mapserver - User mailing list archive at Nabble.com. From warmerdam at POBOX.COM Wed Jan 10 11:07:58 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 10 Jan 2007 14:07:58 -0500 Subject: gdal setup with netCDF In-Reply-To: <8263860.post@talk.nabble.com> Message-ID: edfialk wrote: > Hi! I'm trying to get GDAL configured for netCDF output (i.e. convert x file > to netCDF). > > So, I install netcdf-3.6.1 (configure, make, make install). > I configure GDAL --with-netcdf=/usr/local/src/netcdf-3.6.1 > > ... > NETCDF support: yes > ... > > then i run make for GDAL, and I get: > ... > /usr/bin/ld: /usr/local/src/netcdf-3.6.1/lib/libnetcdf.a(attr.o): relocation > R_X86_64_32S against `a local symbol' can not be used when making a shared > object; recompile with -fPIC > /usr/local/src/netcdf-3.6.1/lib/libnetcdf.a: could not read symbols: Bad > value > collect2: ld returned 1 exit status > make[1]: *** [libgdal.la] Error 1 > make[1]: Leaving directory `/usr/local/src/gdal-1.3.2' > make: *** [check-lib] Error 2 > > > Bad value? I got the latest netCDF from > http://www.unidata.ucar.edu/software/netcdf/... > Anyone have any ideas? Ed, To link object code into a shared library (on some platforms) it needs to be compiled with -fPIC. I think you will need to go back to your netcdf build, and doctor up the Makefile to include this option. If there is a libnetcdf.so, linking against that would also resolve 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 | President OSGeo, http://osgeo.org From gregor at HOSTGIS.COM Wed Jan 10 11:16:22 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Wed, 10 Jan 2007 12:16:22 -0700 Subject: gdal setup with netCDF In-Reply-To: <45A5398E.6000401@pobox.com> Message-ID: >> /usr/bin/ld: /usr/local/src/netcdf-3.6.1/lib/libnetcdf.a(attr.o): >> relocation >> R_X86_64_32S against `a local symbol' can not be used when making a >> shared object; recompile with -fPIC Yep. On x86_64 platform, -fPIC is required for virtually every library I compile. It's a wonder that producing PIC isn't a default in the compiler in this modern age; but that's a discussion for another forum. From nbarker at ITTVIS.COM Wed Jan 10 11:56:32 2007 From: nbarker at ITTVIS.COM (Norman Barker) Date: Wed, 10 Jan 2007 19:56:32 -0000 Subject: gdal setup with netCDF Message-ID: Ed, setting -fPic is non-trivial for the netcdf library as I remember it, however I do have step by step instructions for it (in the office, I am at home now) - if I forget remind me to post them to the list tomorrow. It isn't a gdal issue, more a hack in the netcdf options file - I have it all running fine on a 64 bit server though reading netcdf through MapServer WCS and serving as geotiff. Norman -----Original Message----- From: UMN MapServer Users List on behalf of Gregor Mosheh Sent: Wed 1/10/2007 7:16 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] gdal setup with netCDF >> /usr/bin/ld: /usr/local/src/netcdf-3.6.1/lib/libnetcdf.a(attr.o): >> relocation >> R_X86_64_32S against `a local symbol' can not be used when making a >> shared object; recompile with -fPIC Yep. On x86_64 platform, -fPIC is required for virtually every library I compile. It's a wonder that producing PIC isn't a default in the compiler in this modern age; but that's a discussion for another forum. -------------- next part -------------- An HTML attachment was scrubbed... URL: From kmsaif at YAHOO.COM Wed Jan 10 12:38:27 2007 From: kmsaif at YAHOO.COM (Saif) Date: Wed, 10 Jan 2007 14:38:27 -0600 Subject: Weighted Overlay Analysis in MapServer Message-ID: Hi, I am a newbie to Mapserver. I am trying to figure out the way to find out technique for weighted overlay analysis in MapServer. I have ESRI data both in Vector and Raster Format. I am wondering if somebody has some thoughts how to do it in mapserver. Your help is highly appreciated. Thanks From dave.potts at PINAN.CO.UK Wed Jan 10 16:24:14 2007 From: dave.potts at PINAN.CO.UK (Dave Potts) Date: Thu, 11 Jan 2007 00:24:14 +0000 Subject: [MAPSERVER-USERS] color theming shapfiles In-Reply-To: Message-ID: I am trying to connect to postgres database on my local machine The connect strings reads CONNECTION "dbname=castle user=dave password=foobar host=localhost port=5432" This gives an msPOSTGISLAyerOpen(): Query error, the reported error is "unknown hostname: localhost" Doing a nslookup on localhost gives the expected answer off 127.0.0.1 Using the value 127.0.0.1 instead of the string localhost, gives the same error, but reporting the error unknown host name 127.0.0.1 A telnet session to localhost 5432 connects , therefore the database is running on localhost, I am not having any problems resolving names. A psql session to the database castle with the login dave and the password foobar works correctly SO why the error, any suggestions ? Dave. -------------- next part -------------- A non-text attachment was scrubbed... Name: dave.potts.vcf Type: text/x-vcard Size: 85 bytes Desc: not available URL: From dave.potts at PINAN.CO.UK Wed Jan 10 16:29:32 2007 From: dave.potts at PINAN.CO.UK (Dave Potts) Date: Thu, 11 Jan 2007 00:29:32 +0000 Subject: postgis connection problem. Message-ID: I am trying to connect to postgres database on my local machine The connect strings reads CONNECTION "dbname=castle user=dave password=foobar host=localhost port=5432" This gives an msPOSTGISLAyerOpen(): Query error, the reported error is "unknown hostname: localhost" Doing a nslookup on localhost gives the expected answer off 127.0.0.1 Using the value 127.0.0.1 instead of the string localhost, gives the same error, but reporting the error unknown host name 127.0.0.1 A telnet session to localhost 5432 connects , therefore the database is running on localhost, I am not having any problems resolving names. A psql session to the database castle with the login dave and the password foobar works correctly SO why the error, any suggestions ? Dave. -------------- next part -------------- A non-text attachment was scrubbed... Name: dave.potts.vcf Type: text/x-vcard Size: 85 bytes Desc: not available URL: From pramsey at REFRACTIONS.NET Wed Jan 10 16:42:02 2007 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Wed, 10 Jan 2007 16:42:02 -0800 Subject: postgis connection problem. In-Reply-To: <45A584EC.5070406@pinan.co.uk> Message-ID: Try this and see if it works better. Local connections are the default... CONNECTION "dbname=castle user=dave password=foobar" Dave Potts wrote: > I am trying to connect to postgres database on my local machine > > The connect strings reads > > CONNECTION "dbname=castle user=dave password=foobar host=localhost > port=5432" > > This gives an msPOSTGISLAyerOpen(): Query error, the reported error is > "unknown hostname: localhost" > > Doing a nslookup on localhost gives the expected answer off 127.0.0.1 > > Using the value 127.0.0.1 instead of the string localhost, gives the > same error, but reporting the error unknown host name 127.0.0.1 > > A telnet session to localhost 5432 connects , therefore the database is > running on localhost, I am not having any problems resolving names. > > A psql session to the database castle with the login dave and the > password foobar works correctly > > > SO why the error, any suggestions ? > > Dave. From bob.b at GRITECHNOLOGIES.COM Wed Jan 10 16:38:00 2007 From: bob.b at GRITECHNOLOGIES.COM (blammo GRIT) Date: Wed, 10 Jan 2007 18:38:00 -0600 Subject: dimensioning line style Message-ID: all, anyone tried working out a method of applying a dimensioning style to a line dataset? I specifically need to dimension a line segment based on getting the length from the spatial info in the shape file. I need to dimension every line in a dataset, can the length be extracted from the shp file with mapserver cgi only, I would prefer a non mapscript solution as i think this will be something handy to have for a bunch of reasons. Thanks bobb -----Original Message----- From: Saif Subj: [UMN_MAPSERVER-USERS] Weighted Overlay Analysis in MapServer Date: Wed Jan 10, 2007 3:16 pm Size: 302 bytes To: MAPSERVER-USERS at LISTS.UMN.EDU Hi, I am a newbie to Mapserver. I am trying to figure out the way to find out technique for weighted overlay analysis in MapServer. I have ESRI data both in Vector and Raster Format. I am wondering if somebody has some thoughts how to do it in mapserver. Your help is highly appreciated. Thanks From donal_regan10 at YAHOO.CO.UK Thu Jan 11 00:07:12 2007 From: donal_regan10 at YAHOO.CO.UK (Donal) Date: Thu, 11 Jan 2007 00:07:12 -0800 Subject: mapfile in shift-jis, db in utf-8 question In-Reply-To: <20060808093849.80378.qmail@web25007.mail.ukl.yahoo.com> Message-ID: Just in case someone comes across this problem , I found a solution by saving my mapfile in shift-jis and including a client_encoding option in my connection string as follows : CONNECTION "user=postgres dbname=mydb host=localhost port=5432 options='-c client_encoding=SJIS'" Donal wrote: > > I have a map file saved as shift-jis which allows to me query some shape > files that have attributes encoded in shift-jis i.e I can write a > classitem in shift-jis encoded japanese and my map displays as I would > like. > > I now have a postgresql db encoded in UTF-8. I want to filter the data > coming back but my column names are in UTF-8 encoded japanese. So when I > set my FILTER to something like "内容=1" I get the folowing > error: > > Postgresql reports the error as 'ERROR: invalid byte sequence for > encoding "UTF8": 0x93 ' > > If I save my mapfile as UTF-8, no db error occurs, but now I can't match > the attributes in shapefiles. > > Is there a way around this? > > Thanks, > > Donal > > > > > --------------------------------- > Inbox full of spam? Get leading spam protection and 1GB storage with All > New Yahoo! Mail. > -- View this message in context: http://www.nabble.com/mapfile-in-shift-jis%2C-db-in-utf-8-question-tf2071627.html#a8273244 Sent from the Mapserver - User mailing list archive at Nabble.com. From nbarker at ITTVIS.COM Thu Jan 11 01:20:03 2007 From: nbarker at ITTVIS.COM (Norman Barker) Date: Thu, 11 Jan 2007 09:20:03 -0000 Subject: gdal setup with netCDF Message-ID: Hi, (resent since listserv doesn't like you using 'ok' as a starting phrase!) To build netCDF on 64 bit machines, and hence GDAL with netCDF, and thus have netCDF support in MapServer :-) -------- NetCDF -------- ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf.tar.gz version: netCDF-3.6.0-p1 To install netCDF, uncompress and unpack the tar file, then change to the src directory: gunzip netcdf-3_6_0.tar.gz tar -xf netcdf-3_6_0.tar cd netcdf-3_6_0/src Edit macros.make, add -fPIC to CPPFLAGS, CFLAGS, and CXXFLAGS Now run the usual configure, make test, make install cycle: ./configure --prefix=/usr/local make make install I am not a c/c++ programmer so if I have done something criminal let me know! Norman -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of edfialk Sent: 10 January 2007 18:53 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] gdal setup with netCDF Hi! I'm trying to get GDAL configured for netCDF output (i.e. convert x file to netCDF). So, I install netcdf-3.6.1 (configure, make, make install). I configure GDAL --with-netcdf=/usr/local/src/netcdf-3.6.1 ... NETCDF support: yes ... then i run make for GDAL, and I get: ... /usr/bin/ld: /usr/local/src/netcdf-3.6.1/lib/libnetcdf.a(attr.o): relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC /usr/local/src/netcdf-3.6.1/lib/libnetcdf.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[1]: *** [libgdal.la] Error 1 make[1]: Leaving directory `/usr/local/src/gdal-1.3.2' make: *** [check-lib] Error 2 Bad value? I got the latest netCDF from http://www.unidata.ucar.edu/software/netcdf/... Anyone have any ideas? Thanks in advance! -Ed -- View this message in context: http://www.nabble.com/gdal-setup-with-netCDF-tf2954438.html#a8263860 Sent from the Mapserver - User mailing list archive at Nabble.com. From vberre at GI-PARIS.COM Thu Jan 11 02:33:57 2007 From: vberre at GI-PARIS.COM (Virginie BERRE) Date: Thu, 11 Jan 2007 11:33:57 +0100 Subject: MS4W and Oracle (spatial) Message-ID: Hello, I'm using PHP/Mapscript 4.10 and I want to get the layer's shapeObj. I use the function named 'getFeature' of the layerObj class. This function is the equivalent of getShape which is deprecated since the mapscript 4.10 version. But, calling the function, I get the following error message : Fatal error: Call to undefined method ms_layer_obj::getFeature(). I am using PHP/Mapscript 4.10 from the MS4W package. My data is in a Oracle Spatial database 9.2 and I'm using an Oracle client 10g. My code : $layer->open(); for ( $j=0 ; $j<$nbSelectedObj ; $j++) { $object = $layer->getResult ($j); if ( $object == null ) { echo "
objet NULL "; exit ; } $shapeObj = $layer->getFeature($object->hapeindex); ....... Could anyone help me? Aude From dolf.andringa at ELCYION.NL Thu Jan 11 04:01:00 2007 From: dolf.andringa at ELCYION.NL (Dolf Andringa) Date: Thu, 11 Jan 2007 13:01:00 +0100 Subject: symbols in mapfile or symbolset file? Message-ID: Hey all, Is it possible to define the symbols that I want to use in my mapfile in side the mapfile itself or do I have to define them in a separate symbolset file and reference that? If it is possible to define them in the mapfile itself, where do I define them? In the map directive, in the layer directive, etc? Thanks, Dolf. From Kristian.Thy at ATKINSGLOBAL.COM Thu Jan 11 04:12:12 2007 From: Kristian.Thy at ATKINSGLOBAL.COM (Thy, Kristian) Date: Thu, 11 Jan 2007 13:12:12 +0100 Subject: symbols in mapfile or symbolset file? In-Reply-To: A<45A626FC.7050807@elcyion.nl> Message-ID: From: Dolf Andringa > Is it possible to define the symbols that I want to use in my > mapfile in > side the mapfile itself or do I have to define them in a separate > symbolset file and reference that? If it is possible to > define them in > the mapfile itself, where do I define them? In the map > directive, in the > layer directive, etc? Symbols can be defined in the mapfile inside the map declaration. Kristian This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. Consider the environment. Please don't print this e-mail unless you really need to. From dolf.andringa at ELCYION.NL Thu Jan 11 04:28:59 2007 From: dolf.andringa at ELCYION.NL (Dolf Andringa) Date: Thu, 11 Jan 2007 13:28:59 +0100 Subject: [Fwd: Re: [UMN_MAPSERVER-USERS] symbols in mapfile or symbolset file?] Message-ID: sorry, meant to send it to the mailinglist, not just Kristian. -------- Originele bericht -------- Onderwerp: Re: [UMN_MAPSERVER-USERS] symbols in mapfile or symbolset file? Datum: Thu, 11 Jan 2007 13:28:13 +0100 Van: Dolf Andringa Aan: Thy, Kristian Referenties: Ok,thanks. I don't think it is possible to do this with mapscript though is it? It would be nice if there was an addSymbol method on the mapObj object in mapscript which allows you to add symbols to the map declaration. Or am I completely missing something? Dolf. Thy, Kristian schreef: > From: Dolf Andringa >> Is it possible to define the symbols that I want to use in my >> mapfile in >> side the mapfile itself or do I have to define them in a separate >> symbolset file and reference that? If it is possible to >> define them in >> the mapfile itself, where do I define them? In the map >> directive, in the >> layer directive, etc? > > Symbols can be defined in the mapfile inside the map declaration. > > Kristian > > > This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. > > Consider the environment. Please don't print this e-mail unless you really need to. From kbehncke at IGF.UNI-OSNABRUECK.DE Thu Jan 11 04:38:56 2007 From: kbehncke at IGF.UNI-OSNABRUECK.DE (Kai Behncke) Date: Thu, 11 Jan 2007 13:38:56 +0100 Subject: [Fwd: Re: [UMN_MAPSERVER-USERS] symbols in mapfile or symbolset file?] In-Reply-To: <45A62D8B.6020800@elcyion.nl> Message-ID: On Thu, 11 Jan 2007 13:28:59 +0100, Dolf Andringa wrote > sorry, meant to send it to the mailinglist, not just Kristian. > > -------- Originele bericht -------- > Onderwerp: Re: [UMN_MAPSERVER-USERS] symbols in mapfile or symbolset > file? > Datum: Thu, 11 Jan 2007 13:28:13 +0100 Van: Dolf Andringa > Aan: Thy, Kristian > Referenties: > > Ok,thanks. I don't think it is possible to do this with mapscript though > is it? It would be nice if there was an addSymbol method on the > mapObj object in mapscript which allows you to add symbols to the > map declaration. Or am I completely missing something? > > Dolf. Hi Dolf, normally you need to define symbols by yourself, or you use code that other user have produced. One example to define it inside a mapfile: SCALEBAR STATUS embed TRANSPARENT off INTERVALS 4 SIZE 200 3 UNITS kilometers COLOR 250 250 250 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 100 100 100 STYLE 0 POSTLABELCACHE true LABEL COLOR 0 0 90 #OUTLINECOLOR 200 200 200 SIZE small END END # SYMBOLS USED IN PMAPPER # - 'circle' always necessary (used e.g. for highlight) # - 'square' used in currecnt map file # Symbols can also be defined via tag SYMBOLSET (see above) Symbol Name 'circle' Type ELLIPSE Filled TRUE Points 1 1 END END Symbol Name 'square' Type VECTOR Filled TRUE Points 0 1 0 0 1 0 1 1 0 1 END END #================== START OF LAYER SECTION =====================# LAYER NAME "jpl_wms_global_mosaic" TYPE RASTER STATUS OFF CONNECTION ............ But in my opinion, if you have quite a lot symbols: Use the symbolfile for it. Its cleaner, Regards, Kai -------------------- Dipl.-Geogr. Dipl.-Umweltwiss. Kai Behncke Institut f?r Geoinformatik und Fernerkundung (IGF) Universit?t Osnabr?ck Kolpingstr. 7 49074 Osnabr?ck Raum: 01/308 Tel.: +49 541 969-4450 E-Mail: mailto:kbehncke at igf.uni-osnabrueck.de Web: http://www.igf.uni-osnabrueck.de From dolf.andringa at ELCYION.NL Thu Jan 11 05:07:29 2007 From: dolf.andringa at ELCYION.NL (Dolf Andringa) Date: Thu, 11 Jan 2007 14:07:29 +0100 Subject: [Fwd: Re: [UMN_MAPSERVER-USERS] symbols in mapfile or symbolset file?] In-Reply-To: <20070111123150.M95835@igf.uni-osnabrueck.de> Message-ID: Yeah I know. THe question is just where I define them. When you normally use mapfiles you create a separate symbolset file with your symbol definitions and in the mapfile in the map description you add "symbolsetfile " or you directly put the symbol descriptions in the map description instead of in a separate file. I am not writing mapfiles though, I am creating maps using mapscript (and directly draw them). And mapscript does not give you the option to add symbols to the mapObj, it just gives you the possibility to add a separate symbolSet file to the mapObj. That is my point. When I manually write mapfiles, I have the option to either define my symbols directly in the map description or in a separate file and reference that from the map description. With mapscript I do not have that option. Dolf Kai Behncke schreef: > On Thu, 11 Jan 2007 13:28:59 +0100, Dolf Andringa wrote >> sorry, meant to send it to the mailinglist, not just Kristian. >> >> -------- Originele bericht -------- >> Onderwerp: Re: [UMN_MAPSERVER-USERS] symbols in mapfile or symbolset >> file? >> Datum: Thu, 11 Jan 2007 13:28:13 +0100 Van: Dolf Andringa > >> Aan: Thy, Kristian >> Referenties: >> >> Ok,thanks. I don't think it is possible to do this with mapscript though >> is it? It would be nice if there was an addSymbol method on the >> mapObj object in mapscript which allows you to add symbols to the >> map declaration. Or am I completely missing something? >> >> Dolf. > Hi Dolf, > normally you need to define symbols by yourself, or you use code that other > user have produced. > > > One example to define it inside a mapfile: > > SCALEBAR > STATUS embed > TRANSPARENT off > INTERVALS 4 > SIZE 200 3 > UNITS kilometers > COLOR 250 250 250 > OUTLINECOLOR 0 0 0 > BACKGROUNDCOLOR 100 100 100 > STYLE 0 > POSTLABELCACHE true > LABEL > COLOR 0 0 90 > #OUTLINECOLOR 200 200 200 > SIZE small > END > END > > > > # SYMBOLS USED IN PMAPPER > # - 'circle' always necessary (used e.g. for highlight) > # - 'square' used in currecnt map file > # Symbols can also be defined via tag SYMBOLSET (see above) > Symbol > Name 'circle' > Type ELLIPSE > Filled TRUE > Points > 1 1 > END > END > > Symbol > Name 'square' > Type VECTOR > Filled TRUE > Points > 0 1 > 0 0 > 1 0 > 1 1 > 0 1 > END > END > > > #================== START OF LAYER SECTION =====================# > > > LAYER > NAME "jpl_wms_global_mosaic" > TYPE RASTER > STATUS OFF > CONNECTION > ............ > > > > But in my opinion, if you have quite a lot symbols: > Use the symbolfile for it. Its cleaner, > Regards, Kai > > > > -------------------- > > > > > > > > > Dipl.-Geogr. Dipl.-Umweltwiss. Kai Behncke > > Institut f?r Geoinformatik und Fernerkundung (IGF) > Universit?t Osnabr?ck > Kolpingstr. 7 > 49074 Osnabr?ck > > Raum: 01/308 > Tel.: +49 541 969-4450 > E-Mail: mailto:kbehncke at igf.uni-osnabrueck.de > Web: http://www.igf.uni-osnabrueck.de From raffaele.morelli at GMAIL.COM Thu Jan 11 06:56:28 2007 From: raffaele.morelli at GMAIL.COM (Raffaele) Date: Thu, 11 Jan 2007 08:56:28 -0600 Subject: Compile problem Message-ID: hi, I am new to this list. I am compiling mapserver on a debian server in order to build a web gis environment. the server is running a debian etch for amd64. I have comiled from scratch php5.2, apache 2.0.59 and all the necessary libraries (jpeg, png, tiff, freetype) in order to build gd2.0.33 I am finally at the last step, mapserver+PHP/mapscript, but when trying to run 'mapserv' /usr/local/apache2/cgi-bin/mapserv: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory I tried the trick explained by Xin Zheng at http://mapserver.gis.umn.edu/docs/howto/compiling_on_unix/ but it didn't worked for me. Any suggestion? regards raffaele From kbehncke at IGF.UNI-OSNABRUECK.DE Thu Jan 11 07:30:12 2007 From: kbehncke at IGF.UNI-OSNABRUECK.DE (Kai Behncke) Date: Thu, 11 Jan 2007 16:30:12 +0100 Subject: Compile problem In-Reply-To: Message-ID: On Thu, 11 Jan 2007 08:56:28 -0600, Raffaele wrote > hi, I am new to this list. > I am compiling mapserver on a debian server in order to build a web gis > environment. > the server is running a debian etch for amd64. > I have comiled from scratch php5.2, apache 2.0.59 and all the necessary > libraries (jpeg, png, tiff, freetype) in order to build gd2.0.33 > > I am finally at the last step, mapserver+PHP/mapscript, but when > trying to run 'mapserv' > > /usr/local/apache2/cgi-bin/mapserv: error while loading shared libraries: > libgd.so.2: cannot open shared object file: No such file or directory > > I tried the trick explained by Xin Zheng at > http://mapserver.gis.umn.edu/docs/howto/compiling_on_unix/ > but it didn't worked for me. > > Any suggestion? > > regards > raffaele Hello raffaele, a couple of weeks ago I had nearly the same problem. Did you put the path to the gd-lib in /etc/ld.so.conf ? After changing that file you need to type: ldconfig HTH, Kai -- Dipl.-Geogr. Dipl.-Umweltwiss. Kai Behncke Institut f?r Geoinformatik und Fernerkundung (IGF) Universit?t Osnabr?ck Kolpingstr. 7 49074 Osnabr?ck Raum: 01/308 Tel.: +49 541 969-4450 E-Mail: mailto:kbehncke at igf.uni-osnabrueck.de Web: http://www.igf.uni-osnabrueck.de From bpicinbono at WORLDONLINE.FR Thu Jan 11 07:34:38 2007 From: bpicinbono at WORLDONLINE.FR (Blaise) Date: Thu, 11 Jan 2007 16:34:38 +0100 Subject: Compile problem In-Reply-To: Message-ID: hi Rafaele Could you post your configuration options ? Not very familiar with debian and its files tree, but have a try with this option : --with-gd=/usr/local and all the other ones of course. Any difference ? Regards Blaise Le jeudi 11 janvier 2007 15:56, Raffaele a ?crit?: > hi, I am new to this list. > I am compiling mapserver on a debian server in order to build a web gis > environment. > the server is running a debian etch for amd64. > I have comiled from scratch php5.2, apache 2.0.59 and all the necessary > libraries (jpeg, png, tiff, freetype) in order to build gd2.0.33 > > I am finally at the last step, mapserver+PHP/mapscript, but when trying to > run 'mapserv' > > /usr/local/apache2/cgi-bin/mapserv: error while loading shared libraries: > libgd.so.2: cannot open shared object file: No such file or directory > > I tried the trick explained by Xin Zheng at > http://mapserver.gis.umn.edu/docs/howto/compiling_on_unix/ > but it didn't worked for me. > > Any suggestion? > > regards > raffaele From wef1 at CEC.WUSTL.EDU Thu Jan 11 07:50:34 2007 From: wef1 at CEC.WUSTL.EDU (edfialk) Date: Thu, 11 Jan 2007 07:50:34 -0800 Subject: gdal setup with netCDF In-Reply-To: Message-ID: Awesome, got it workin with -fPIC. Thanks so much all of you! -Ed -- View this message in context: http://www.nabble.com/gdal-setup-with-netCDF-tf2954438.html#a8278058 Sent from the Mapserver - User mailing list archive at Nabble.com. From raffaele.morelli at GMAIL.COM Thu Jan 11 08:04:03 2007 From: raffaele.morelli at GMAIL.COM (Raffaele Morelli) Date: Thu, 11 Jan 2007 17:04:03 +0100 Subject: Compile problem In-Reply-To: <20070111152716.M32690@igf.uni-osnabrueck.de> Message-ID: > > Hello raffaele, > a couple of weeks ago I had nearly the same problem. > Did you put the path to the gd-lib in > /etc/ld.so.conf ? > > After changing that file you need to type: ldconfig thank you all for replying I added '/usr/local' but again didn't worked, and the I get the same error. I have installed gd without adding a --prefix option, so the default location should have been applied '/usr/local' my configuration options include --with-gd=/usr/local I acted the same on my testing machine and never had any kind of problem. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dolf.andringa at ELCYION.NL Thu Jan 11 08:31:40 2007 From: dolf.andringa at ELCYION.NL (Dolf Andringa) Date: Thu, 11 Jan 2007 17:31:40 +0100 Subject: the stranges symbolset file parsing error when using mapscript: loadSymbolSet(): Unknown identifier. Parsing error near (SYMBOL):(line 0) Message-ID: Hi people, I am having the strangest problem. When setting a symbolsetfile to a mapObj with mapscript in python, and in the same script creating a classObj with an expression, I get an error: mapscript.MapServerError: loadSymbolSet(): Unknown identifier. Parsing error I limited the error down to a small testscrip which is below. If I remove eiter one of the last two lines in the script, the error disappears. In the original script also layers and stuff (connection through ogr to postgres/postgis) are added, but that makes no difference. I also included my symbols file (see below). I added a BOF and EOF below to show the beginning and ends of the files, of course they are not in the actual files. The full traceback of the python error can be seen below as well. I am running Python 2.4.4 on Debian Sarge with a self compiled version of mapserver 4.10.0, gdal 1.3.2 and proj 4.5.0. I have no idea what the problem is. I hope anybody can help. Thanks, Dolf. testscript.py: BOF import mapscript mapobj=mapscript.mapObj() outputFormat=mapscript.outputFormatObj("GD/PNG") outputFormat.name="png24" outputFormat.setMimetype("image/png") outputFormat.imagemode=1 outputFormat.setExtension("png") mapobj.legend.status=1 mapobj.legend.keysizex=100 mapobj.legend.keysizey=30 mapobj.legend.keyspacingy=20 mapobj.legend.width=100 mapobj.setSize(600,1200) mapobj.setExtent(132771,447652,134477,451064) mapobj.setOutputFormat(outputFormat) style=mapscript.styleObj() style.symbolname="point5" style.color=mapscript.colorObj(225,0,0) cls=mapscript.classObj() cls.insertStyle(style) cls.name="testclass" cls.setExpression("(4 + 4)") mapobj.setSymbolSet('test_symbols.set') EOF test_symbols.set file: BOF SYMBOL NAME "point5" TYPE ELLIPSE FILLED true POINTS 5 5 END END EOF Python error: Traceback (most recent call last): File "testscript.py", line 39, in ? mapobj.setSymbolSet('test_symbols.set') File "/usr/lib/python2.4/site-packages/mapscript.py", line 1382, in setSymbolSet def setSymbolSet(*args): return _mapscript.mapObj_setSymbolSet(*args) _mapscript.MapServerError: loadSymbolSet(): Unknown identifier. Parsing error near (SYMBOL):(line 0) From ron.killpack at EECRADAR.COM Thu Jan 11 09:17:35 2007 From: ron.killpack at EECRADAR.COM (Killpack, Ron) Date: Thu, 11 Jan 2007 11:17:35 -0600 Subject: Antialiasing lines mapserver v 4.4.1 Message-ID: Greetings, I some maps created with v 4.4.1 Is it possible to antialias lines in mapserver v 4.4.1? If so what would have to be done below to achieve results? IMAGETYPE png24 . . . . LAYER NAME "intsthwys" DATA highways/intsthwys.shp STATUS DEFAULT TYPE LINE MAXSCALE 1500000 PROJECTION "init=epsg:4326" END CLASS SYMBOL cart SIZE 4 COLOR 20 20 20 END END Thanks, Ron Killpack Enterprise Electronics Corporation 128 S. Industrial Blvd. Enterprise, AL 36330 E-mail: rkillpack at eecradar.com Voice: 334-347-3478 ext 331 This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ezenaide at GMAIL.COM Thu Jan 11 10:11:42 2007 From: ezenaide at GMAIL.COM (Eduardo Zenaide) Date: Thu, 11 Jan 2007 16:11:42 -0200 Subject: legend In-Reply-To: <7af310f80612270936w536a4e91u98689c042a3fe0b9@mail.gmail.com> Message-ID: just to be a bit more annoying... i'm trying to use non-embeded legend on GMap application. since GMap uses specified functions to draw its maps, there's a function to draw the legend? -- Eduardo Zenaide -------------- next part -------------- An HTML attachment was scrubbed... URL: From chad at AGRIDATAINC.COM Thu Jan 11 12:21:23 2007 From: chad at AGRIDATAINC.COM (Chad Ringenberg) Date: Thu, 11 Jan 2007 14:21:23 -0600 Subject: Apache, SDE Message-ID: Hi, I have Windows 2003 server with the latest release of Apache and Mapserver compiled with SDE(9.1) support. I am able to generate a map with the SDE layers but the following errors are showing up in the Apache error.log. [error] [client 127.0.0.1] msSDELayerOpen(): Layer seclayer opened from scratch.\r [error] [client 127.0.0.1] msConnPoolRegister(seclayer,192.168.5.5,port:5153,abc,user,***,01A12CA8)\r [error] [client 127.0.0.1] msSDELayerOpen(): Layer seclayer specified version SDE.DEFAULT.\r ...... Ultimately I'm trying to get FastCGI working but have been unable to and I'm wondering if this may be why. Thanks, Chad From dave.potts at PINAN.CO.UK Thu Jan 11 16:57:09 2007 From: dave.potts at PINAN.CO.UK (Dave Potts) Date: Fri, 12 Jan 2007 00:57:09 +0000 Subject: Re [UMN_MAPSERVER-USERS] postgis connection problem Message-ID: Tried that. Also tried the host name strings 127.0.0.1, 10.1.18, localhost, not defining a host string. All with the same result. "msDrawMap(): Image handling error. Failed to draw layer named 'castles'. msPOSTGISLayerOpen(): Query error. couldnt make connection to DB with connect string 'host=10.1.1.8 user=dave password=******* dbname=castle'.Error reported was 'unknown host name: 10.1.1.8'.This error occured when trying to make a connection to the specified postgresql server. Most commonly this is caused by (1) incorrect connection string (2) you didnt specify a 'user=...' in your connection string (3) the postmaster (postgresql server) isnt running (4) you are not allowing TCP/IP connection to the postmaster (5) your postmaster is not running on the correct port - if its not on 5432 you must specify a 'port=...' (6) the security on your system does not allow the webserver (usually user 'nobody') to make socket connections to the postmaster (7) you forgot to specify a 'host=...' if the postmaster is on a different machine(8) you made a typo" I have tried disabling all of my virus checking software. Tried differrent versions of the fwtool tool kit (fwtools 1.07, 1.12 and 1.13. Also tried postgres 8.1.5 and 8.1.6 and postgis 1.2. Since postgres is'nt reporting any error, failed connection attempts etc,etc I have assume that the problem, what ever it is lies somewhere within mapserver. Any suggestions welcome. Dave. PS another example msDrawMap(): Image handling error. Failed to draw layer named 'castles'. msPOSTGISLayerOpen(): Query error. couldnt make connection to DB with connect string 'host=localhost user=dave password=******* dbname=castle'.Error reported was 'unknown host name: localhost'.This error occured when trying to make a connection to the specified postgresql server. Most commonly this is caused by (1) incorrect connection string (2) you didnt specify a 'user=...' in your connection string (3) the postmaster (postgresql server) isnt running (4) you are not allowing TCP/IP connection to the postmaster (5) your postmaster is not running on the correct port - if its not on 5432 you must specify a 'port=...' (6) the security on your system does not allow the webserver (usually user 'nobody') to make socket connections to the postmaster (7) you forgot to specify a 'host=...' if the postmaster is on a different machine(8) you made a typo nslookup says nslookup localhost Server: pth-cdns01.plus.net Address 212.159.13.49 Name: localhost Address: 127.0.0.1 > Try this and see if it works better. Local connections are the default... > > CONNECTION "dbname=castle user=dave password=foobar" > > Dave Potts wrote: > >> I am trying to connect to postgres database on my local machine > >> > >> The connect strings reads > >> > >> CONNECTION "dbname=castle user=dave password=foobar host=localhost > >> port=5432" > >> > >> This gives an msPOSTGISLAyerOpen(): Query error, the reported error is > >> "unknown hostname: localhost" > >> > >> Doing a nslookup on localhost gives the expected answer off 127.0.0.1 > >> > >> Using the value 127.0.0.1 instead of the string localhost, gives the > >> same error, but reporting the error unknown host name 127.0.0.1 > >> > >> A telnet session to localhost 5432 connects , therefore the database is > >> running on localhost, I am not having any problems resolving names. > >> > >> A psql session to the database castle with the login dave and the > >> password foobar works correctly > >> > >> > >> SO why the error, any suggestions ? > >> > >> Dave. > -------------- next part -------------- A non-text attachment was scrubbed... Name: dave.potts.vcf Type: text/x-vcard Size: 85 bytes Desc: not available URL: From w.coetzer at RU.AC.ZA Fri Jan 12 00:15:36 2007 From: w.coetzer at RU.AC.ZA (Willem Coetzer) Date: Fri, 12 Jan 2007 10:15:36 +0200 Subject: Implementing combo boxes Message-ID: Does anyone have experiencing implementing combo boxes in Mapserver. I want the combo boxes to list shapefiles that the user can add to the display and legend. I just need a broad approach or any tips. Thanks Willem -------------- next part -------------- An HTML attachment was scrubbed... URL: From David at ITBEYOND.COM.AU Thu Jan 11 23:51:45 2007 From: David at ITBEYOND.COM.AU (David Martin) Date: Fri, 12 Jan 2007 16:51:45 +0900 Subject: MapScript & ImageMap creation Message-ID: Hello, I am trying to implement a MapScript function to simulate the ImageMap creation with MapServer example. I am using the MapScript C# system and implementing the code in VB.NET. My goal is to build a new ImageMap class that will implement MapScript. I have made the query run and return results however I am trying to work out how to access the shapeObj bounds in terms of shpxy rather than coords. I have returned the result in coords but cannot find how to convert to imgxy. Is there an easy solution? Regards David Martin Managing Director I.T. Beyond Pty Ltd Postal: PO BOX 967 HILLARYS WA 6923 Ph: (08) 9403 3737 Mobile: 0417 677 275 Fax: (08) 9403 3738 ________________________________ Check out our websites: www.ExplorOz.com and www.itbeyond.com.au ________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From kobben at ITC.NL Fri Jan 12 01:36:48 2007 From: kobben at ITC.NL (=?iso-8859-1?Q?Barend_K=F6bben?=) Date: Fri, 12 Jan 2007 10:36:48 +0100 Subject: Implementing combo boxes Message-ID: Hi, I dont know about implementing them "In" Mapserver. I think you'd implement them on a Dynamic Webpage and use the combo-list choices to feed to MapServer. Below's a quick snippet how I would do that using JSP. Exchange with your script language of choice... <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; String mySHPpath = request.getRealPath("/") + "SHP"; //get path on server that points to SHP directory int myFilesNum; String[] MyFilesList; File myDir = new File(mySHPpath); if (myDir == null) { out.println("
ERROR: SHP directory not found at " + mySHPpath + "
"); } else { MyFilesList = myDir.list(); if (MyFilesList == null) { out.println("
ERROR: no SHP files found in directory " + mySHPpath + "
"); } else { myFilesNum = MyFilesList.length; %> -- Barend K?bben International Institute for Geo-information Sciences and Earth Observation (ITC) PO Box 6, 7500AA Enschede (The Netherlands) ph: +31-(0)534874253; mobile: +31-(0)622344955 ________________________________ From: UMN MapServer Users List on behalf of Willem Coetzer Sent: Fri 1/12/07 09:15 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Implementing combo boxes Does anyone have experiencing implementing combo boxes in Mapserver. I want the combo boxes to list shapefiles that the user can add to the display and legend. I just need a broad approach or any tips. Thanks Willem From dolf.andringa at ELCYION.NL Fri Jan 12 03:32:32 2007 From: dolf.andringa at ELCYION.NL (Dolf Andringa) Date: Fri, 12 Jan 2007 12:32:32 +0100 Subject: [Fwd: Re: [UMN_MAPSERVER-USERS] symbols in mapfile or symbolset file?] In-Reply-To: <1168527138.4798.6.camel@emil.intranet.gdv.com> Message-ID: Nicol showd be the link below as an answer to my question, which it would be if I was using PHPMapscript, but I am using the python mapscript module. the nomal mapscript API (http://mapserver.gis.umn.edu/docs/reference/mapscript/index_html) does not seem to offer this possibility. Is that correct? To me it would be very logical if you could just create a mapObj, then create symbolSetObj and then some symbolObj's, add the symbolObj's to the symbolSetObj and add the symbolSetObj to the mapObj. Just like you can create classObj's, add them to layerObj's, and add layerObj's to a mapObj. I am trying this to circumvent the problem I posted yesterday with the strange parsing error when adding a symbolset file to a mapObj. Hope somebody can help me with either of the problems. Dolf. Nicol Hermann schreef: > Dolf, > > you can add symbols to the mapObj via mapscript. > See e.g. > http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/classes/symbolobj > > HTH Nicol > > Am Donnerstag, den 11.01.2007, 14:07 +0100 schrieb Dolf Andringa: >> Yeah I know. THe question is just where I define them. When you normally >> use mapfiles you create a separate symbolset file with your symbol >> definitions and in the mapfile in the map description you add >> "symbolsetfile " or you directly put the symbol descriptions >> in the map description instead of in a separate file. >> >> I am not writing mapfiles though, I am creating maps using mapscript >> (and directly draw them). And mapscript does not give you the option to >> add symbols to the mapObj, it just gives you the possibility to add a >> separate symbolSet file to the mapObj. That is my point. When I manually >> write mapfiles, I have the option to either define my symbols directly >> in the map description or in a separate file and reference that from >> the map description. With mapscript I do not have that option. >> >> Dolf >> >> Kai Behncke schreef: >>> On Thu, 11 Jan 2007 13:28:59 +0100, Dolf Andringa wrote >>>> sorry, meant to send it to the mailinglist, not just Kristian. >>>> >>>> -------- Originele bericht -------- >>>> Onderwerp: Re: [UMN_MAPSERVER-USERS] symbols in mapfile or symbolset >>>> file? >>>> Datum: Thu, 11 Jan 2007 13:28:13 +0100 Van: Dolf Andringa >>> >>>> Aan: Thy, Kristian >>>> Referenties: >>>> >>>> Ok,thanks. I don't think it is possible to do this with mapscript though >>>> is it? It would be nice if there was an addSymbol method on the >>>> mapObj object in mapscript which allows you to add symbols to the >>>> map declaration. Or am I completely missing something? >>>> >>>> Dolf. >>> Hi Dolf, >>> normally you need to define symbols by yourself, or you use code that other >>> user have produced. >>> >>> >>> One example to define it inside a mapfile: >>> >>> SCALEBAR >>> STATUS embed >>> TRANSPARENT off >>> INTERVALS 4 >>> SIZE 200 3 >>> UNITS kilometers >>> COLOR 250 250 250 >>> OUTLINECOLOR 0 0 0 >>> BACKGROUNDCOLOR 100 100 100 >>> STYLE 0 >>> POSTLABELCACHE true >>> LABEL >>> COLOR 0 0 90 >>> #OUTLINECOLOR 200 200 200 >>> SIZE small >>> END >>> END >>> >>> >>> >>> # SYMBOLS USED IN PMAPPER >>> # - 'circle' always necessary (used e.g. for highlight) >>> # - 'square' used in currecnt map file >>> # Symbols can also be defined via tag SYMBOLSET (see above) >>> Symbol >>> Name 'circle' >>> Type ELLIPSE >>> Filled TRUE >>> Points >>> 1 1 >>> END >>> END >>> >>> Symbol >>> Name 'square' >>> Type VECTOR >>> Filled TRUE >>> Points >>> 0 1 >>> 0 0 >>> 1 0 >>> 1 1 >>> 0 1 >>> END >>> END >>> >>> >>> #================== START OF LAYER SECTION =====================# >>> >>> >>> LAYER >>> NAME "jpl_wms_global_mosaic" >>> TYPE RASTER >>> STATUS OFF >>> CONNECTION >>> ............ >>> >>> >>> >>> But in my opinion, if you have quite a lot symbols: >>> Use the symbolfile for it. Its cleaner, >>> Regards, Kai >>> >>> >>> >>> -------------------- >>> >>> >>> >>> >>> >>> >>> >>> >>> Dipl.-Geogr. Dipl.-Umweltwiss. Kai Behncke >>> >>> Institut f?r Geoinformatik und Fernerkundung (IGF) >>> Universit?t Osnabr?ck >>> Kolpingstr. 7 >>> 49074 Osnabr?ck >>> >>> Raum: 01/308 >>> Tel.: +49 541 969-4450 >>> E-Mail: mailto:kbehncke at igf.uni-osnabrueck.de >>> Web: http://www.igf.uni-osnabrueck.de >> > From dolf.andringa at ELCYION.NL Fri Jan 12 04:18:57 2007 From: dolf.andringa at ELCYION.NL (Dolf Andringa) Date: Fri, 12 Jan 2007 13:18:57 +0100 Subject: [Fwd: Re: [UMN_MAPSERVER-USERS] symbols in mapfile or symbolset file?] In-Reply-To: <45A771D0.6060508@elcyion.nl> Message-ID: Ok, I have got it to work with a workaround. It is not very clean, but it works :) I first write the mapObj to a file Then I read that file with python I remove the last END statment and then I add all symbol statements to it. I add the END statement again at the end of the file and write it to disk again. Then I create a new mapObj from that mapfile. Script: mpobj.save("tmp.map") lines=open("tmp.map",'r').readlines() lines[-1]="" for s in symbols: lines.append(s) lines.append("\nEND\n") open("tmp.map",'w').writelines(lines) mpobj=mapscript.mapObj("tmp.map") The symbols variable is a list of strings where each string is a symbol definition like: SYMBOL NAME 'point5' TYPE ELLIPSE FILLED FALSE POINTS 5.0 5.0 END END I know, it is not very clean but it works for now. I am really open to better ways of doing this. :) Thanks, Dolf. Dolf Andringa schreef: > Nicol showd be the link below as an answer to my question, which it > would be if I was using PHPMapscript, but I am using the python > mapscript module. the nomal mapscript API > (http://mapserver.gis.umn.edu/docs/reference/mapscript/index_html) does > not seem to offer this possibility. Is that correct? To me it would be > very logical if you could just create a mapObj, then create symbolSetObj > and then some symbolObj's, add the symbolObj's to the symbolSetObj and > add the symbolSetObj to the mapObj. Just like you can create classObj's, > add them to layerObj's, and add layerObj's to a mapObj. I am trying this > to circumvent the problem I posted yesterday with the strange parsing > error when adding a symbolset file to a mapObj. > Hope somebody can help me with either of the problems. > > Dolf. > > Nicol Hermann schreef: >> Dolf, >> >> you can add symbols to the mapObj via mapscript. See e.g. >> http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/classes/symbolobj >> >> >> HTH Nicol >> >> Am Donnerstag, den 11.01.2007, 14:07 +0100 schrieb Dolf Andringa: >>> Yeah I know. THe question is just where I define them. When you >>> normally use mapfiles you create a separate symbolset file with your >>> symbol definitions and in the mapfile in the map description you add >>> "symbolsetfile " or you directly put the symbol >>> descriptions in the map description instead of in a separate file. >>> >>> I am not writing mapfiles though, I am creating maps using mapscript >>> (and directly draw them). And mapscript does not give you the option >>> to add symbols to the mapObj, it just gives you the possibility to >>> add a separate symbolSet file to the mapObj. That is my point. When I >>> manually write mapfiles, I have the option to either define my >>> symbols directly in the map description or in a separate file and >>> reference that from the map description. With mapscript I do not have >>> that option. >>> >>> Dolf >>> >>> Kai Behncke schreef: >>>> On Thu, 11 Jan 2007 13:28:59 +0100, Dolf Andringa wrote >>>>> sorry, meant to send it to the mailinglist, not just Kristian. >>>>> >>>>> -------- Originele bericht -------- >>>>> Onderwerp: Re: [UMN_MAPSERVER-USERS] symbols in mapfile or >>>>> symbolset file? >>>>> Datum: Thu, 11 Jan 2007 13:28:13 +0100 Van: Dolf Andringa >>>> >>>>> Aan: Thy, Kristian >>>>> Referenties: >>>>> >>>>> >>>>> Ok,thanks. I don't think it is possible to do this with mapscript >>>>> though >>>>> is it? It would be nice if there was an addSymbol method on the >>>>> mapObj object in mapscript which allows you to add symbols to the >>>>> map declaration. Or am I completely missing something? >>>>> >>>>> Dolf. >>>> Hi Dolf, >>>> normally you need to define symbols by yourself, or you use code >>>> that other >>>> user have produced. >>>> >>>> >>>> One example to define it inside a mapfile: >>>> >>>> SCALEBAR >>>> STATUS embed >>>> TRANSPARENT off >>>> INTERVALS 4 >>>> SIZE 200 3 >>>> UNITS kilometers >>>> COLOR 250 250 250 >>>> OUTLINECOLOR 0 0 0 >>>> BACKGROUNDCOLOR 100 100 100 >>>> STYLE 0 >>>> POSTLABELCACHE true >>>> LABEL >>>> COLOR 0 0 90 >>>> #OUTLINECOLOR 200 200 200 >>>> SIZE small >>>> END END >>>> >>>> >>>> # SYMBOLS USED IN PMAPPER >>>> # - 'circle' always necessary (used e.g. for highlight) >>>> # - 'square' used in currecnt map file >>>> # Symbols can also be defined via tag SYMBOLSET (see above) >>>> Symbol >>>> Name 'circle' >>>> Type ELLIPSE >>>> Filled TRUE >>>> Points >>>> 1 1 >>>> END >>>> END >>>> >>>> Symbol >>>> Name 'square' >>>> Type VECTOR >>>> Filled TRUE >>>> Points >>>> 0 1 >>>> 0 0 >>>> 1 0 >>>> 1 1 >>>> 0 1 >>>> END >>>> END >>>> >>>> >>>> #================== START OF LAYER SECTION =====================# >>>> >>>> >>>> LAYER >>>> NAME "jpl_wms_global_mosaic" >>>> TYPE RASTER >>>> STATUS OFF >>>> CONNECTION >>>> ............ >>>> >>>> >>>> >>>> But in my opinion, if you have quite a lot symbols: >>>> Use the symbolfile for it. Its cleaner, >>>> Regards, Kai >>>> >>>> >>>> >>>> -------------------- >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> Dipl.-Geogr. Dipl.-Umweltwiss. Kai Behncke >>>> >>>> Institut f?r Geoinformatik und Fernerkundung (IGF) >>>> Universit?t Osnabr?ck >>>> Kolpingstr. 7 >>>> 49074 Osnabr?ck >>>> >>>> Raum: 01/308 >>>> Tel.: +49 541 969-4450 >>>> E-Mail: mailto:kbehncke at igf.uni-osnabrueck.de Web: >>>> http://www.igf.uni-osnabrueck.de >>> >> > From siki at AGT.BME.HU Fri Jan 12 08:49:04 2007 From: siki at AGT.BME.HU (Siki Zoltan) Date: Fri, 12 Jan 2007 15:49:04 -0100 Subject: Implementing combo boxes {Scanned} In-Reply-To: Message-ID: Hi Willem, You can use the select item in a html form. You will get the selected value in the query string like controlname=value If you would like to serve few number of shape files, then you can create a map file all layers involved and turn on/off layers through the query string. I usually do it using checkboxes or multiselect lisboxes. If you would get more freedom you should use mapscript. Zoltan On Fri, 12 Jan 2007, Willem Coetzer wrote: > Does anyone have experiencing implementing combo boxes in Mapserver. I want > the combo boxes to list shapefiles that the user can add to the display and > legend. I just need a broad approach or any tips. > > > > Thanks > > Willem > > From mjw at STORM.CA Fri Jan 12 07:09:23 2007 From: mjw at STORM.CA (Mark Westenberger) Date: Fri, 12 Jan 2007 10:09:23 -0500 Subject: Multi-feature query Message-ID: Hello all. Brand new shiny user here and just got Mapserver running on Fedora and have a query, er, query. I have several shapefile layers, each of which may have multiple features at the identical lat/lon. Each feature only has an ID (or Key) as an attribute within the dbf while the remaining attributes are maintained in other files. Upon a query, all the features from a unique layer need to contribute their attributes to a collective computation with the result of that being presented to the browser. In essence, a "Venn diagram" of their attributes. So I've digested the Template issue in the Layer's Class, conceptually seeking a capability to do something like: TEMPLATE "http://mymachine/crunch_stuff.cgi?... but see that the template doesn't behave like that. After a bit of experimentation, I invented my own an HTML tag and have things structured as per the following extracts, which essentially is a Mapserver wrapper to do that cgi above. The invented tag is only seen momentarily by the wrapper. Each time the wrapper has collected a command in SHELL_ESCAPE, it runs it, whose purpose is to chew through the feature keys, collect attributes, crunch them, and send HTML chatter back to the browser. When complete, the command looks like: "./species.cgi key1 key2 key3 key4 key5 [etc]" What I don't yet know is whether there exists a more elegant, "Mapserver-ish" solution to this and seek suggestions. Here are the extracts: ============my.map============== <...snip> LAYER NAME Species TYPE POINT DATA species STATUS ON TOLERANCE 5 # 5 pixels CLASS <...snip...> TEMPLATE "templates/species.html" END HEADER "templates/species_header.html" FOOTER "templates/species_footer.html" METADATA <...snip...> END END <...snip> =====species_header.html with the invented " =============mapserv.cgi=========== #!/bin/sh ./mapserv | while read INPUT; do # set a latch when we see the "`; then # we found the closing tag BUILDING_SHELLCMD=n # Now strip the command of those tags SHELL_ESCAPE=`echo $SHELL_CMD | sed 's//\1/'` # and run ./$SHELL_ESCAPE" ./$SHELL_ESCAPE # and reinit SHELL_CMD= fi else # Otherwise just dump output through to browser echo $INPUT fi done From jchurchill at AL.UMCES.EDU Fri Jan 12 07:19:28 2007 From: jchurchill at AL.UMCES.EDU (John B. Churchill) Date: Fri, 12 Jan 2007 10:19:28 -0500 Subject: broken query Message-ID: I'm still working on modifying the basic ITASCA DEMO. I got some queries to work in one application (returns data from the dbf table) but they aren't working correctly in another (returns a table that looks like the static template file without any data). In both I have followed these steps: 1. Created Templates in the "templates" folder named after the layer and with the appropriate fields in square brackets []. 2. put a statement in the MAP file at the end of the layer block that refer to the html file in step 1 like so ... TEMPLATE "templates/anti_bnd.html" Are there other steps that I need to follow. If so I must have done them in the first case but forgot about them in the 2nd case. Any help on this is appreciated. J.B. -- --------------------------------------------- John B. Churchill, M.S. http://alx.al.umces.edu/~jchurch/ GIS Specialist (301) 689-7109 University of Maryland Center for Environmental Science Appalachian Laboratory http://www.al.umces.edu/ Environmental Science Education http://alese.al.umces.edu/ 301 Braddock Road Frostburg, MD 21532 FAX - (301) 689-7200 From jchurchill at AL.UMCES.EDU Fri Jan 12 08:48:25 2007 From: jchurchill at AL.UMCES.EDU (John B. Churchill) Date: Fri, 12 Jan 2007 11:48:25 -0500 Subject: [Fwd: RE: [UMN_MAPSERVER-USERS] broken query] Message-ID: I am doing a spatial query of a polygon layer. The query that I have working is a line layer but I don't think it has anything to do with that. my Layer is defined thusly ... LAYER NAME landsat_4 TYPE POLYGON DATA landsat_4 STATUS ON CLASSITEM LOCATION CLASS NAME "Landsat Data" STYLE COLOR 40 40 200 END STYLE OUTLINECOLOR 0 0 0 WIDTH 1 ANTIALIAS TRUE END END TEMPLATE "templates/landsat_4.html" END and the template (templates/landsat_4.html) looks like this ...
File NameImagery SourcePathRowProjectionDatumImage Date
[LOCATION][SOURCE][PATH][ROW][PROJ][DATUM][IMGDATE]
All the fields occur in the layer "landsat_4.shp" just as they appear in the html template. +++++++++++++++++++++++++++++++++++++++++++ Are you doing a point query or an attribute query? Posting relevant test from you map file and template would help people diagnose the issue. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of John B. Churchill Sent: Friday, January 12, 2007 9:19 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] broken query I'm still working on modifying the basic ITASCA DEMO. I got some queries to work in one application (returns data from the dbf table) but they aren't working correctly in another (returns a table that looks like the static template file without any data). In both I have followed these steps: 1. Created Templates in the "templates" folder named after the layer and with the appropriate fields in square brackets []. 2. put a statement in the MAP file at the end of the layer block that refer to the html file in step 1 like so ... TEMPLATE "templates/anti_bnd.html" Are there other steps that I need to follow. If so I must have done them in the first case but forgot about them in the 2nd case. Any help on this is appreciated. J.B. -- --------------------------------------------- John B. Churchill, M.S. http://alx.al.umces.edu/~jchurch/ GIS Specialist (301) 689-7109 University of Maryland Center for Environmental Science Appalachian Laboratory http://www.al.umces.edu/ Environmental Science Education http://alese.al.umces.edu/ 301 Braddock Road Frostburg, MD 21532 FAX - (301) 689-7200 -- --------------------------------------------- John B. Churchill, M.S. http://alx.al.umces.edu/~jchurch/ GIS Specialist (301) 689-7109 University of Maryland Center for Environmental Science Appalachian Laboratory http://www.al.umces.edu/ Environmental Science Education http://alese.al.umces.edu/ 301 Braddock Road Frostburg, MD 21532 FAX - (301) 689-7200 From ezenaide at GMAIL.COM Fri Jan 12 09:33:44 2007 From: ezenaide at GMAIL.COM (Eduardo Zenaide) Date: Fri, 12 Jan 2007 15:33:44 -0200 Subject: Expressions In-Reply-To: <7af310f80701051100w683dc476xd85065e8fe267cef@mail.gmail.com> Message-ID: there's a way to apply a query to all features without name all? for example: (* <= 0.4) i've tried this and returns: msQueryByAttributes(): Search returned no results. No matching record(s) found. even if there is a match record. thanks! 2007/1/5, Eduardo Zenaide : > > thanks, Steve! > > 2007/1/5, Steve Lime : > > > > Try ([IDH_2000] <= 0.4) > > > > Steve > > > > >>> Eduardo Zenaide 1/5/2007 11:50:07 AM >>> > > hi, all, > > > > i'm trying to understand how expressions work here. > > i have one layer with IDH_2000 class wich has lots of numerical > > values. > > i try using ("[IDH_2000]" <= /0.4/) and it returns the error: > > > > msQueryByAttributes(): Search returned no results. No matching > > record(s) > > found. > > msEvalExpression: Expression parser error. Failed to parse expression > > msyyparse(): Expression parser error. syntax error > > > > i think i'm using the wrong syntax, but i've read > > http://mapserver.gis.umn.edu/docs/howto/msexpressions > > and couldn't get it. > > > > if i do the same but using =~ works :P > > so, any clues? > > > > thanks! > > > > -- > > Eduardo Zenaide > > > > > > -- > Eduardo Zenaide -- Eduardo Zenaide -------------- next part -------------- An HTML attachment was scrubbed... URL: From Ken.Boss at DNR.STATE.MN.US Fri Jan 12 10:00:33 2007 From: Ken.Boss at DNR.STATE.MN.US (Ken Boss) Date: Fri, 12 Jan 2007 12:00:33 -0600 Subject: Antialiasing lines mapserver v 4.4.1 In-Reply-To: <328607BA14D51547A9D7145420D0D4D11250CF@FRIEDCHICKEN.eecnet.eecradar.com> Message-ID: Hi Ron-- I don't believe that antialiased lines were supported that far back. AFAICT, cartographic symbols supporting antialiased lines and much more were introduced in 4.6 (see http://mapserver.gis.umn.edu/docs/howto/cartosymbols/), while a more straightforward approach to antialiased lines was introduced in 4.8 (see http://mapserver.gis.umn.edu/docs/faq/antialiasedlines). HTH, --Ken From siki at AGT.BME.HU Fri Jan 12 15:33:43 2007 From: siki at AGT.BME.HU (Siki Zoltan) Date: Fri, 12 Jan 2007 22:33:43 -0100 Subject: Expressions {Scanned} In-Reply-To: <7af310f80701120933r6ec95m168b0b10a580afae@mail.gmail.com> Message-ID: Hi Eduardo, I suppose you want to create a logical expression on a column of the layer data table. Try EXPRESSION ([COLUMN_NAME] < 0.4) See http://mapserver.gis.umn.edu/docs/howto/msexpressions Zoltan On Fri, 12 Jan 2007, Eduardo Zenaide wrote: > there's a way to apply a query to all features without name all? > for example: > > (* <= 0.4) > > i've tried this and returns: > > msQueryByAttributes(): Search returned no results. No matching record(s) > found. > > even if there is a match record. > > > thanks! > > 2007/1/5, Eduardo Zenaide : > > > > thanks, Steve! > > > > 2007/1/5, Steve Lime : > > > > > > Try ([IDH_2000] <= 0.4) > > > > > > Steve > > > > > > >>> Eduardo Zenaide 1/5/2007 11:50:07 AM >>> > > > hi, all, > > > > > > i'm trying to understand how expressions work here. > > > i have one layer with IDH_2000 class wich has lots of numerical > > > values. > > > i try using ("[IDH_2000]" <= /0.4/) and it returns the error: > > > > > > msQueryByAttributes(): Search returned no results. No matching > > > record(s) > > > found. > > > msEvalExpression: Expression parser error. Failed to parse expression > > > msyyparse(): Expression parser error. syntax error > > > > > > i think i'm using the wrong syntax, but i've read > > > http://mapserver.gis.umn.edu/docs/howto/msexpressions > > > and couldn't get it. > > > > > > if i do the same but using =~ works :P > > > so, any clues? > > > > > > thanks! > > > > > > -- > > > Eduardo Zenaide > > > > > > > > > > > -- > > Eduardo Zenaide > > > > > From wef1 at CEC.WUSTL.EDU Fri Jan 12 14:08:51 2007 From: wef1 at CEC.WUSTL.EDU (edfialk) Date: Fri, 12 Jan 2007 14:08:51 -0800 Subject: netCDF input to WCS Message-ID: Hi, I'm having problems supplying a WCS that takes in netCDF input. I get a "500 internal server error" when I try to view it. I could be way off on my mapfile, but here goes: MAP NAME "Test" EXTENT 22 -20 75 45 SIZE 600 600 SHAPEPATH "/var/www/html/mapserver/mapdata" IMAGECOLOR 235 225 225 OUTPUTFORMAT NAME GEOTIFF_FLOAT DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE FLOAT32 EXTENSION "tif" END LAYER NAME "layertest" STATUS DEFAULT TYPE RASTER DUMP TRUE DATA "EDGAR.nc" METADATA wcs_label "Test netCDF Server" ows_extent '22 -20 75 45' wcs_resolution '0.04388924 0.04387414' ows_srs "EPSG:4326" wcs_formats "GEOTIFF_FLOAT" wcs_nativeformat "netCDF" wcs_bandcount "2" wcs_rangeset_axes "lon" wcs_rangeset_label "Atmospheric Levels" wcs_rangeset_name "chlor_a" END END WEB IMAGEPATH "/var/www/html/tmp/" IMAGEURL "/tmp/" END END END url: http://niceguy.wustl.edu/cgi-bin/mapserv?map=/var/www/html/mapserver/EDGAR.map&version=1.0.0&service=WCS&CRS=EPSG:4326&request=GetCoverage&COVERAGE=layertest&WIDTH=500&HEIGHT=300&FORMAT=GEOTIFF_FLOAT -- View this message in context: http://www.nabble.com/netCDF-input-to-WCS-tf2968628.html#a8307280 Sent from the Mapserver - User mailing list archive at Nabble.com. From wef1 at CEC.WUSTL.EDU Fri Jan 12 14:08:51 2007 From: wef1 at CEC.WUSTL.EDU (edfialk) Date: Fri, 12 Jan 2007 14:08:51 -0800 Subject: netCDF input to WCS Message-ID: Hi, I'm having problems supplying a WCS that takes in netCDF input. I get a "500 internal server error" when I try to view it. I could be way off on my mapfile, but here goes: MAP NAME "Test" EXTENT 22 -20 75 45 SIZE 600 600 SHAPEPATH "/var/www/html/mapserver/mapdata" IMAGECOLOR 235 225 225 OUTPUTFORMAT NAME GEOTIFF_FLOAT DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE FLOAT32 EXTENSION "tif" END LAYER NAME "layertest" STATUS DEFAULT TYPE RASTER DUMP TRUE DATA "EDGAR.nc" METADATA wcs_label "Test netCDF Server" ows_extent '22 -20 75 45' wcs_resolution '0.04388924 0.04387414' ows_srs "EPSG:4326" wcs_formats "GEOTIFF_FLOAT" wcs_nativeformat "netCDF" wcs_bandcount "2" wcs_rangeset_axes "lon" wcs_rangeset_label "Atmospheric Levels" wcs_rangeset_name "chlor_a" END END WEB IMAGEPATH "/var/www/html/tmp/" IMAGEURL "/tmp/" END END END url: http://niceguy.wustl.edu/cgi-bin/mapserv?map=/var/www/html/mapserver/EDGAR.map&version=1.0.0&service=WCS&CRS=EPSG:4326&request=GetCoverage&COVERAGE=layertest&WIDTH=500&HEIGHT=300&FORMAT=GEOTIFF_FLOAT Thanks for any suggestions! -Ed -- View this message in context: http://www.nabble.com/netCDF-input-to-WCS-tf2968628.html#a8307280 Sent from the Mapserver - User mailing list archive at Nabble.com. From jchurchill at AL.UMCES.EDU Fri Jan 12 16:35:51 2007 From: jchurchill at AL.UMCES.EDU (John B. Churchill) Date: Fri, 12 Jan 2007 19:35:51 -0500 Subject: broken query (problem solved) Message-ID: Upon further reflection I was able to figure out what the problem was. All the fields in my template were upper case. Apparently case matters when naming the fields in the template html. -------- Original Message -------- Subject: RE: [UMN_MAPSERVER-USERS] broken query Date: Fri, 12 Jan 2007 09:27:23 -0600 From: Fawcett, David To: John B. Churchill Are you doing a point query or an attribute query? Posting relevant test from you map file and template would help people diagnose the issue. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of John B. Churchill Sent: Friday, January 12, 2007 9:19 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] broken query I'm still working on modifying the basic ITASCA DEMO. I got some queries to work in one application (returns data from the dbf table) but they aren't working correctly in another (returns a table that looks like the static template file without any data). In both I have followed these steps: 1. Created Templates in the "templates" folder named after the layer and with the appropriate fields in square brackets []. 2. put a statement in the MAP file at the end of the layer block that refer to the html file in step 1 like so ... TEMPLATE "templates/anti_bnd.html" Are there other steps that I need to follow. If so I must have done them in the first case but forgot about them in the 2nd case. Any help on this is appreciated. -- --------------------------------------------- John B. Churchill, M.S. http://alx.al.umces.edu/~jchurch/ GIS Specialist (301) 689-7109 University of Maryland Center for Environmental Science Appalachian Laboratory http://www.al.umces.edu/ Environmental Science Education http://alese.al.umces.edu/ 301 Braddock Road Frostburg, MD 21532 FAX - (301) 689-7200 From gisaalter at GMAIL.COM Sat Jan 13 11:53:20 2007 From: gisaalter at GMAIL.COM (Steven De Vriendt) Date: Sat, 13 Jan 2007 20:53:20 +0100 Subject: Serving WMS in Google Maps using nested layers Message-ID: Hi, I'd like to ask if this is possible. I'd like to make an overlay in Google Maps using parcels AND buildings- data. For now I can only make an overlay using or pacel data or building data. I'd like to make a tab using both of them..I was thinking of doing that using nested layers in MapServer, but I don't know how to serve them in WMS and make sure Google picks them up both... Has anyone ever done this ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From bpederse at NATURE.BERKELEY.EDU Sat Jan 13 16:06:44 2007 From: bpederse at NATURE.BERKELEY.EDU (Brent Pedersen) Date: Sat, 13 Jan 2007 16:06:44 -0800 Subject: Serving WMS in Google Maps using nested layers In-Reply-To: <8d2ea9d70701131153l68f98b53r6c236bae3585bf4e@mail.gmail.com> Message-ID: hi, if you're using this: http://chignik.berkeley.edu/google/wms236.js. you could just add both WMS layers to the same javascript layer array and they will appear as a single layer. so no change in your map-file should be necessary as long as your transparency is set correctly. -brent On Sat, 13 Jan 2007, Steven De Vriendt wrote: > Hi, > > I'd like to ask if this is possible. > I'd like to make an overlay in Google Maps using parcels AND buildings- > data. > For now I can only make an overlay using or pacel data or building data. > I'd like to make a tab using both of them..I was thinking of doing > that using nested layers in MapServer, but I don't know how > to serve them in WMS and make sure Google picks them up both... > Has anyone ever done this ? > From gisaalter at GMAIL.COM Sun Jan 14 05:05:28 2007 From: gisaalter at GMAIL.COM (Steven De Vriendt) Date: Sun, 14 Jan 2007 14:05:28 +0100 Subject: Serving WMS in Google Maps using nested layers In-Reply-To: Message-ID: Brent, Thanks for your answer, seems it's easier than I thought :-), yet I can't seem to figure out how to define this in my layer var...(I know...). So could you help me out with that ? For now this how my layer var is defined: tileCounty.myLayers='Gebouwen84'; I'd like to add 'Percelen84' Thanks ! Steven On 1/14/07, Brent Pedersen wrote: > > hi, > if you're using this: > http://chignik.berkeley.edu/google/wms236.js. > you could just add both WMS layers to the same javascript layer array > and they will appear as a single layer. > so no change in your map-file should be necessary as long as your > transparency is set correctly. > -brent > > On Sat, 13 Jan 2007, Steven De Vriendt wrote: > > > Hi, > > > > I'd like to ask if this is possible. > > I'd like to make an overlay in Google Maps using parcels AND buildings- > > data. > > For now I can only make an overlay using or pacel data or building data. > > I'd like to make a tab using both of them..I was thinking of doing > > that using nested layers in MapServer, but I don't know how > > to serve them in WMS and make sure Google picks them up both... > > Has anyone ever done this ? > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at DMSOLUTIONS.CA Sun Jan 14 07:58:22 2007 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Sun, 14 Jan 2007 10:58:22 -0500 Subject: JOIN object usage in a mapfile Message-ID: Hello everyone, For the first time I am trying to use the mapfile JOIN object, and I can't seem to get it to work. From the mapjoin.c file I can see that DBF, CSV, PostgreSQL, and MySQL are supported. I have personally tried to view query results joined from DBF, CSV, and PostgreSQL tables unsucessfully. (my goal is to also update the sparse documentation for this also on http://mapserver.gis.umn.edu/docs/reference/mapfile/join). Here is my DBF test case: Test Environment **************** mapserver 4.10.0 windows mapfile layer ************* LAYER NAME prov_bound TYPE POLYGON STATUS DEFAULT DATA prov CLASS NAME "Province" STYLE OUTLINECOLOR 120 120 120 COLOR 255 255 0 END END TEMPLATE "../htdocs/cgi-query-templates/prov.html" HEADER "../htdocs/cgi-query-templates/prov-header.html" FOOTER "../htdocs/cgi-query-templates/footer.html" JOIN NAME "test" TABLE "../data/lookup.dbf" FROM "ID" TO "IDENT" TYPE ONE-TO-ONE END END # layer ogrinfo ******* >ogrinfo lookup.dbf lookup -summary INFO: Open of `lookup.dbf' using driver `ESRI Shapefile' successful. Layer name: lookup Geometry: None Feature Count: 12 Layer SRS WKT: (unknown) IDENT: Integer (2.0) VAL: Integer (2.0) >ogrinfo prov.shp prov -summary INFO: Open of `prov.shp' using driver `ESRI Shapefile' successful. Layer name: prov Geometry: Polygon Feature Count: 12 Extent: (-2340603.750000, -719746.062500) - (3009430.500000, 3836605.250000) Layer SRS WKT: (unknown) NAME: String (30.0) ID: Integer (2.0) Template ******** [NAME][VAL] Query Results ************* Layer: Provinces NAME VAL ==== ==== Ontario [VAL] Other Notes *********** - the join seems to be happening, because if I specify false FROM/TO values errors are thrown, yet I cannot get values to appear from the [VAL] field - ID/IDENT are integer values from 1 to 12 - the join works with desktop GIS packages Can someone see what I am doing wrong? thanks. jeff -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From siki at AGT.BME.HU Sun Jan 14 11:38:26 2007 From: siki at AGT.BME.HU (Siki Zoltan) Date: Sun, 14 Jan 2007 18:38:26 -0100 Subject: JOIN object usage in a mapfile {Scanned} In-Reply-To: <45AA531E.8090504@dmsolutions.ca> Message-ID: Hi Jeff, You should refer to the column in the joined table in your template like [joinname_columnname] In your case it should be [test_VAL] Be carefull with the upper and lower case letters! Zoltan On Sun, 14 Jan 2007, Jeff McKenna wrote: > Hello everyone, > > For the first time I am trying to use the mapfile JOIN object, and I > can't seem to get it to work. From the mapjoin.c file I can see that > DBF, CSV, PostgreSQL, and MySQL are supported. I have personally tried > to view query results joined from DBF, CSV, and PostgreSQL tables > unsucessfully. (my goal is to also update the sparse documentation for > this also on http://mapserver.gis.umn.edu/docs/reference/mapfile/join). > Here is my DBF test case: > > Test Environment > **************** > > mapserver 4.10.0 > windows > > mapfile layer > ************* > > LAYER > NAME prov_bound > TYPE POLYGON > STATUS DEFAULT > DATA prov > CLASS > NAME "Province" > STYLE > OUTLINECOLOR 120 120 120 > COLOR 255 255 0 > END > END > TEMPLATE "../htdocs/cgi-query-templates/prov.html" > HEADER "../htdocs/cgi-query-templates/prov-header.html" > FOOTER "../htdocs/cgi-query-templates/footer.html" > JOIN > NAME "test" > TABLE "../data/lookup.dbf" > FROM "ID" > TO "IDENT" > TYPE ONE-TO-ONE > END > END # layer > > ogrinfo > ******* > > >ogrinfo lookup.dbf lookup -summary > INFO: Open of `lookup.dbf' > using driver `ESRI Shapefile' successful. > > Layer name: lookup > Geometry: None > Feature Count: 12 > Layer SRS WKT: > (unknown) > IDENT: Integer (2.0) > VAL: Integer (2.0) > > >ogrinfo prov.shp prov -summary > INFO: Open of `prov.shp' > using driver `ESRI Shapefile' successful. > > Layer name: prov > Geometry: Polygon > Feature Count: 12 > Extent: (-2340603.750000, -719746.062500) - (3009430.500000, 3836605.250000) > Layer SRS WKT: > (unknown) > NAME: String (30.0) > ID: Integer (2.0) > > > Template > ******** > > [NAME] align="left">[VAL] > > Query Results > ************* > > Layer: Provinces > > NAME VAL > ==== ==== > Ontario [VAL] > > Other Notes > *********** > > - the join seems to be happening, because if I specify false FROM/TO > values errors are thrown, yet I cannot get values to appear from the > [VAL] field > - ID/IDENT are integer values from 1 to 12 > - the join works with desktop GIS packages > > > Can someone see what I am doing wrong? > > thanks. > > jeff > > > From gisaalter at GMAIL.COM Sun Jan 14 09:53:39 2007 From: gisaalter at GMAIL.COM (Steven De Vriendt) Date: Sun, 14 Jan 2007 18:53:39 +0100 Subject: Serving WMS in Google Maps using nested layers In-Reply-To: <8d2ea9d70701140505p16cba18bic88e8eae07ded392@mail.gmail.com> Message-ID: Nevermind, it was indeed easier than I thought :-) tileCounty.myLayers='layer1,layer2,...'; Steven On 1/14/07, Steven De Vriendt wrote: > > Brent, > > Thanks for your answer, seems it's easier than I thought :-), > yet I can't seem to figure out how to define this in my layer var...(I > know...). > So could you help me out with that ? > For now this how my layer var is defined: > > tileCounty.myLayers='Gebouwen84'; > > I'd like to add 'Percelen84' > > Thanks ! > Steven > > > > On 1/14/07, Brent Pedersen wrote: > > > > hi, > > if you're using this: > > http://chignik.berkeley.edu/google/wms236.js. > > you could just add both WMS layers to the same javascript layer array > > and they will appear as a single layer. > > so no change in your map-file should be necessary as long as your > > transparency is set correctly. > > -brent > > > > On Sat, 13 Jan 2007, Steven De Vriendt wrote: > > > > > Hi, > > > > > > I'd like to ask if this is possible. > > > I'd like to make an overlay in Google Maps using parcels AND > > buildings- > > > data. > > > For now I can only make an overlay using or pacel data or building > > data. > > > I'd like to make a tab using both of them..I was thinking of doing > > > that using nested layers in MapServer, but I don't know how > > > to serve them in WMS and make sure Google picks them up both... > > > Has anyone ever done this ? > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhonghaiw at GMAIL.COM Mon Jan 15 00:34:06 2007 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Mon, 15 Jan 2007 09:34:06 +0100 Subject: MapServer Version Message-ID: Hi Guys, today I've doenloaded the new MS4W package ms4w 2.2.1.zip here: http://www.maptools.org/ms4w/index.phtml?page=downloads.html, but when I use -mapserv -v to check the version, it returns: MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPO RTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPO RTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG does that mean this package is not using the new MapServer 4.10.0 source? Should I compile it myself from source code if I want to use the latest version? thanks for your information. Zhonghai -------------- next part -------------- An HTML attachment was scrubbed... URL: From epk.lists at GMAIL.COM Mon Jan 15 02:31:48 2007 From: epk.lists at GMAIL.COM (Eduardo Patto Kanegae) Date: Mon, 15 Jan 2007 08:31:48 -0200 Subject: MapServer Version In-Reply-To: <2534c4120701150034t17105691s115b5b62ceb270a2@mail.gmail.com> Message-ID: Or you can also the simple way: install latest FWTools ( fwtools.maptools.org ). It contains a mapserv.exe Eduardo Patto Kanegae http://www.webmapit.com.br On 1/15/07, Zhonghai Wang wrote: > > Hi Guys, > > today I've doenloaded the new MS4W package ms4w 2.2.1.zip here: > http://www.maptools.org/ms4w/index.phtml?page=downloads.html, > but when I use -mapserv -v to check the version, it returns: > > MapServer version 4.8.3 > OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF > OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > SUPPO > RTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER > SUPPO > RTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=ORACLESPATIAL > INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG > > does that mean this package is not using the new MapServer 4.10.0 source? > Should I compile it myself from source code if I want to use the latest > version? > > thanks for your information. > > Zhonghai > -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at DMSOLUTIONS.CA Mon Jan 15 06:25:53 2007 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Mon, 15 Jan 2007 09:25:53 -0500 Subject: MapServer Version In-Reply-To: <2534c4120701150034t17105691s115b5b62ceb270a2@mail.gmail.com> Message-ID: It looks like you have another mapserv.exe in your PATH, is that possible? MS4W 2.2.1 contains MapServer 4.10.0. MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PD F OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPP ORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPP ORTS=SOS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OG R INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG By the way, MS4W has its own mailing list for these type of configuration questions (join at http://lists.maptools.org/mailman/listinfo/ms4w-users). jeff Zhonghai Wang wrote: > Hi Guys, > > today I've doenloaded the new MS4W package ms4w 2.2.1.zip here: > http://www.maptools.org/ms4w/index.phtml?page=downloads.html, > but when I use -mapserv -v to check the version, it returns: > > MapServer version 4.8.3 > OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF > OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE > SUPPORTS=WMS_SERVER SUPPO > RTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT > SUPPORTS=WCS_SERVER SUPPO > RTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=ORACLESPATIAL > INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG > > does that mean this package is not using the new MapServer 4.10.0 > source? Should I compile it myself from source code if I want to use the > latest version? > > thanks for your information. > > Zhonghai -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From jmckenna at DMSOLUTIONS.CA Mon Jan 15 06:33:18 2007 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Mon, 15 Jan 2007 09:33:18 -0500 Subject: JOIN object usage in a mapfile {Scanned} In-Reply-To: Message-ID: Thanks Zoltan, that was it. I'll include my example on the join page. jeff Siki Zoltan wrote: > Hi Jeff, > > You should refer to the column in the joined table in your template like > [joinname_columnname] > > In your case it should be > [test_VAL] > > Be carefull with the upper and lower case letters! > > Zoltan > > On Sun, 14 Jan 2007, Jeff McKenna wrote: > >> Hello everyone, >> >> For the first time I am trying to use the mapfile JOIN object, and I >> can't seem to get it to work. From the mapjoin.c file I can see that >> DBF, CSV, PostgreSQL, and MySQL are supported. I have personally tried >> to view query results joined from DBF, CSV, and PostgreSQL tables >> unsucessfully. (my goal is to also update the sparse documentation for >> this also on http://mapserver.gis.umn.edu/docs/reference/mapfile/join). >> Here is my DBF test case: >> >> Test Environment >> **************** >> >> mapserver 4.10.0 >> windows >> >> mapfile layer >> ************* >> >> LAYER >> NAME prov_bound >> TYPE POLYGON >> STATUS DEFAULT >> DATA prov >> CLASS >> NAME "Province" >> STYLE >> OUTLINECOLOR 120 120 120 >> COLOR 255 255 0 >> END >> END >> TEMPLATE "../htdocs/cgi-query-templates/prov.html" >> HEADER "../htdocs/cgi-query-templates/prov-header.html" >> FOOTER "../htdocs/cgi-query-templates/footer.html" >> JOIN >> NAME "test" >> TABLE "../data/lookup.dbf" >> FROM "ID" >> TO "IDENT" >> TYPE ONE-TO-ONE >> END >> END # layer >> >> ogrinfo >> ******* >> >> >ogrinfo lookup.dbf lookup -summary >> INFO: Open of `lookup.dbf' >> using driver `ESRI Shapefile' successful. >> >> Layer name: lookup >> Geometry: None >> Feature Count: 12 >> Layer SRS WKT: >> (unknown) >> IDENT: Integer (2.0) >> VAL: Integer (2.0) >> >> >ogrinfo prov.shp prov -summary >> INFO: Open of `prov.shp' >> using driver `ESRI Shapefile' successful. >> >> Layer name: prov >> Geometry: Polygon >> Feature Count: 12 >> Extent: (-2340603.750000, -719746.062500) - (3009430.500000, 3836605.250000) >> Layer SRS WKT: >> (unknown) >> NAME: String (30.0) >> ID: Integer (2.0) >> >> >> Template >> ******** >> >> [NAME]> align="left">[VAL] >> >> Query Results >> ************* >> >> Layer: Provinces >> >> NAME VAL >> ==== ==== >> Ontario [VAL] >> >> Other Notes >> *********** >> >> - the join seems to be happening, because if I specify false FROM/TO >> values errors are thrown, yet I cannot get values to appear from the >> [VAL] field >> - ID/IDENT are integer values from 1 to 12 >> - the join works with desktop GIS packages >> >> >> Can someone see what I am doing wrong? >> >> thanks. >> >> jeff >> >> >> > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From oven38 at VOLJA.NET Mon Jan 15 07:21:27 2007 From: oven38 at VOLJA.NET (oven38) Date: Mon, 15 Jan 2007 16:21:27 +0100 Subject: JOIN object usage in a mapfile {Scanned} In-Reply-To: <45AB90AE.8030804@dmsolutions.ca> Message-ID: Here is my working example ONE-TO-MANY JOIN with PostgreSQL : LAYER NAME "plan-var-predpis-sel" STATUS OFF CONNECTIONTYPE postgis CONNECTION "user=koper password=koper dbname=gisdb host=localhost" DATA "the_geom from loki_091" TYPE POLYGON JOIN NAME testjoin CONNECTIONTYPE postgresql CONNECTION "user=uname password=pwd dbname=databasename host=hname" TABLE plan_pia_data TO pia_osn FROM akt_id TYPE ONE-TO-MANY TEMPLATE "one_to_many.html" END CLASS SYMBOL 'DIAGONALA_D' SIZE 3 COLOR 255 255 0 END TEMPLATE "one_to_many_head.html" TOLERANCE 0 END one_to_many_head.html : [join_testjoin] one_to_many.html :
FROM_ID :[akt_id]
TO_ID :[testjoin_pia_sif]
NAME :[testjoin_name]
NOTE :[testjoin_note] Also see http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=2006 lp Alfred Jeff McKenna wrote: > Thanks Zoltan, that was it. > > I'll include my example on the join page. > > jeff > > > > > Siki Zoltan wrote: >> Hi Jeff, >> >> You should refer to the column in the joined table in your template like >> [joinname_columnname] >> >> In your case it should be >> [test_VAL] >> >> Be carefull with the upper and lower case letters! >> >> Zoltan >> >> On Sun, 14 Jan 2007, Jeff McKenna wrote: >> >>> Hello everyone, >>> >>> For the first time I am trying to use the mapfile JOIN object, and I >>> can't seem to get it to work. From the mapjoin.c file I can see that >>> DBF, CSV, PostgreSQL, and MySQL are supported. I have personally >>> tried to view query results joined from DBF, CSV, and PostgreSQL >>> tables unsucessfully. (my goal is to also update the sparse >>> documentation for this also on >>> http://mapserver.gis.umn.edu/docs/reference/mapfile/join). Here is >>> my DBF test case: >>> >>> Test Environment >>> **************** >>> >>> mapserver 4.10.0 >>> windows >>> >>> mapfile layer >>> ************* >>> >>> LAYER >>> NAME prov_bound >>> TYPE POLYGON >>> STATUS DEFAULT >>> DATA prov >>> CLASS >>> NAME "Province" >>> STYLE >>> OUTLINECOLOR 120 120 120 >>> COLOR 255 255 0 >>> END >>> END >>> TEMPLATE "../htdocs/cgi-query-templates/prov.html" >>> HEADER "../htdocs/cgi-query-templates/prov-header.html" >>> FOOTER "../htdocs/cgi-query-templates/footer.html" >>> JOIN >>> NAME "test" >>> TABLE "../data/lookup.dbf" >>> FROM "ID" >>> TO "IDENT" >>> TYPE ONE-TO-ONE >>> END >>> END # layer >>> >>> ogrinfo >>> ******* >>> >>> >ogrinfo lookup.dbf lookup -summary >>> INFO: Open of `lookup.dbf' >>> using driver `ESRI Shapefile' successful. >>> >>> Layer name: lookup >>> Geometry: None >>> Feature Count: 12 >>> Layer SRS WKT: >>> (unknown) >>> IDENT: Integer (2.0) >>> VAL: Integer (2.0) >>> >>> >ogrinfo prov.shp prov -summary >>> INFO: Open of `prov.shp' >>> using driver `ESRI Shapefile' successful. >>> >>> Layer name: prov >>> Geometry: Polygon >>> Feature Count: 12 >>> Extent: (-2340603.750000, -719746.062500) - (3009430.500000, >>> 3836605.250000) >>> Layer SRS WKT: >>> (unknown) >>> NAME: String (30.0) >>> ID: Integer (2.0) >>> >>> >>> Template >>> ******** >>> >>> [NAME]>> align="left">[VAL] >>> >>> Query Results >>> ************* >>> >>> Layer: Provinces >>> >>> NAME VAL >>> ==== ==== >>> Ontario [VAL] >>> >>> Other Notes >>> *********** >>> >>> - the join seems to be happening, because if I specify false FROM/TO >>> values errors are thrown, yet I cannot get values to appear from the >>> [VAL] field >>> - ID/IDENT are integer values from 1 to 12 >>> - the join works with desktop GIS packages >>> >>> >>> Can someone see what I am doing wrong? >>> >>> thanks. >>> >>> jeff >>> >>> >>> >> > > From zhonghaiw at GMAIL.COM Mon Jan 15 07:31:12 2007 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Mon, 15 Jan 2007 16:31:12 +0100 Subject: MapServer Version In-Reply-To: <45AB8EF1.6080106@dmsolutions.ca> Message-ID: yup, you are right, I have another mapserver.exe in my PATH. I've fixed it, Thanks. Is this mailing list not the same as the one you mentioned? seems that windows users have their own mailing list. Best Regards Zhonghai On 1/15/07, Jeff McKenna wrote: > > It looks like you have another mapserv.exe in your PATH, is that possible? > > MS4W 2.2.1 contains MapServer 4.10.0. > > MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=PD > F OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE > SUPPORTS=WMS_SERVER SUPP > ORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT > SUPPORTS=WCS_SERVER SUPP > ORTS=SOS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS > INPUT=OG > R INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG > > By the way, MS4W has its own mailing list for these type of > configuration questions (join at > http://lists.maptools.org/mailman/listinfo/ms4w-users). > > > jeff > > > > > Zhonghai Wang wrote: > > Hi Guys, > > > > today I've doenloaded the new MS4W package ms4w 2.2.1.zip here: > > http://www.maptools.org/ms4w/index.phtml?page=downloads.html, > > but when I use -mapserv -v to check the version, it returns: > > > > MapServer version 4.8.3 > > OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF > > OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE > > SUPPORTS=WMS_SERVER SUPPO > > RTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT > > SUPPORTS=WCS_SERVER SUPPO > > RTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=ORACLESPATIAL > > INPUT=OGR > > INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG > > > > does that mean this package is not using the new MapServer 4.10.0 > > source? Should I compile it myself from source code if I want to use the > > latest version? > > > > thanks for your information. > > > > Zhonghai > > > -- > Jeff McKenna > DM Solutions Group Inc. > http://www.dmsolutions.ca > -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.riff at CERENE.FR Mon Jan 15 07:52:57 2007 From: stephane.riff at CERENE.FR (=?ISO-8859-1?Q?St=E9phane_RIFF?=) Date: Mon, 15 Jan 2007 16:52:57 +0100 Subject: PHPMapscript : PointObj->draw(...) problem Message-ID: Hi everybody, I have a little problem on the draw function with the pointObj class. I want to add point dynamically from a postgis database with PHPMapscript. So I get the coordinates from postgis and draw the point with pointObj->draw(...) function. The problem is that my pixmap symbols doesn't have the transparency activated and my label doesn't have background color. I use the code below : $mobileLayer = ms_newLayerObj($map); $mobileLayer->set("name","Mobiles"); $mobileLayer->set("type",MS_LAYER_POINT); $mobileLayer->set("status",MS_ON); $mobileLayer->set("transparency",MS_GD_ALPHA); $mobileLayer->set("labelcache",MS_OFF); $mobileLayer->setProjection("init=epsg:4326",MS_TRUE); $a_class = array(); for($row=0;$rowset("name",$ico); $mobileStyle = ms_newStyleObj($mobileClass); $mobileStyle->set("symbolname",$cfg_root."images/symbols/".$ico); $mobileLabel = $mobileClass->label; $mobileLabel->set("font","Arialbd"); $mobileLabel->set("size",12); $mobileLabel->set("type",MS_TRUETYPE); $mobileLabel->set("offsety",-22); $mobileLabel->color->setRGB(255,0,0); $mobileLabel->backgroundcolor->setRGB(255,0,0); } $class_index = 0; for($cl=0;$cl<$mobileLayer->numclasses;$cl++) { $class = $mobileLayer->getClass($cl); if($class->name == $ico) { $class_index = $cl; } } $point = ms_newPointObj(); $point->setXY($lon,$lat); if($point->draw($map, $mobileLayer, $imgObj, $class_index, $sid) == MS_FAILURE) print("error drawing point"); } The result image is like that the one attached : -------------- next part -------------- A non-text attachment was scrubbed... Name: Clipboard01.gif Type: image/gif Size: 5527 bytes Desc: not available URL: From rodrigomartin at LOPEZGREGORIO.COM.AR Mon Jan 15 07:59:09 2007 From: rodrigomartin at LOPEZGREGORIO.COM.AR (=?ISO-8859-1?Q?Rodrigo_Mart=EDn_L=D3PEZ_GREGORIO?=) Date: Mon, 15 Jan 2007 15:59:09 +0000 Subject: scalefactor log in apache error.log file Message-ID: Hi, First of all, sorry my English. I'm using the last version of mapserver for windows. I want to know if there is a way to stop Mapserver adding lines at apache error.log file showing scalefactor each time it draws a map, even for each layer I guess. This lines shows as follow: [Fri Jan 12 16:02:18 2007] [error] [client 127.0.0.1] scalefactor = 0.0177154\r I have no "DEBUG ON" line in my mapfile. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rodrigomlg at GMAIL.COM Mon Jan 15 07:59:56 2007 From: rodrigomlg at GMAIL.COM (=?ISO-8859-1?Q?Rodrigo_Mart=EDn_L=D3PEZ_GREGORIO?=) Date: Mon, 15 Jan 2007 15:59:56 +0000 Subject: scalefactor log in apache error.log file Message-ID: Hi, First of all, sorry my English. I'm using the last version of mapserver for windows. I want to know if there is a way to stop Mapserver adding lines at apache error.log file showing scalefactor each time it draws a map, even for each layer I guess. This lines shows as follow: [Fri Jan 12 16:02:18 2007] [error] [client 127.0.0.1] scalefactor = 0.0177154\r I have no "DEBUG ON" line in my mapfile. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcompte at SIGTE.UDG.ES Mon Jan 15 08:13:50 2007 From: mcompte at SIGTE.UDG.ES (Marc Compte) Date: Mon, 15 Jan 2007 17:13:50 +0100 Subject: Problems trying to change projection Message-ID: Hi everyone, We have a Mapserver drawing some layers from a local WMS service. The WMS service can only provide the data in EPSG:23031 (utm) but we need to be able to query our Mapserver by using EPSG:4326 (latlong). If I understood it right Mapserver should be able to change the projection of my layers, right? We tried specifying the incoming coordinate system inside the LAYER object in the mapfile. Then specify the working (output) coordinate system inside the PROJECTION object in the mapfile. But when querying the mapserv using geographic coordinates we get a white image, no data. Mapfile looks something like ... --------------------------------- PROJECTION "init=epsg:4326" #longlat datum wgs84 elipsoide wgs84 END LAYER NAME orto MINSCALE 100 MAXSCALE 10000 TYPE RASTER STATUS default CONNECTIONTYPE WMS CONNECTION "http://galileo.icc.es/wms/servlet/icc_orto5m_r_r?REQUEST=map&LAYERS=Ortofoto_5000&STYLES=&FORMAT=png&version=1.1.1" METADATA "wms_name" "Ortofoto_5000" "wms_server_version" "1.1.1" "wms_srs" "epsg:23031" "wms_format" "image/png" END PROJECTION "init=epsg:23031" END END ----------------------------------- In the mapfile we have tried both using the EPSG code and specifying the proj/datum/ellipsoid, for both the output and the layer definition, and the result is still the same. If we specify "proj=utm" (instead of "proj=longlat"), "ellps=WGS84" and "datum=WGS84" and we query mapserver using utm coordinates we seem to be getting a good map, with the new datum and ellipsoid. But changing the projection doesn't seem to work. Any help will be greatly appreciated. Thanks, Marc Compte From bartvde at OSGIS.NL Mon Jan 15 09:10:04 2007 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Mon, 15 Jan 2007 18:10:04 +0100 Subject: scalefactor log in apache error.log file In-Reply-To: <10cf58b30701150759m6d7c59md3c1ca1e3f04a4de@mail.gmail.com> Message-ID: This is a msDebug call without a check around it in mapdraw.c (it's also in 4.8.4). I have opened up a bug for this, hopefully somebody will fix this soon: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=2007 Thanks for spotting this. Best regards, Bart Rodrigo Mart?n L?PEZ GREGORIO schreef: > Hi, First of all, sorry my English. > > I'm using the last version of mapserver for windows. I want to know if > there is a way to stop Mapserver adding lines at apache error.log file > showing scalefactor each time it draws a map, even for each layer I > guess. > > This lines shows as follow: > > [Fri Jan 12 16:02:18 2007] [error] [client 127.0.0.1 > ] scalefactor = 0.0177154\r > > I have no "DEBUG ON" line in my mapfile. > > Thanks. -- Bart van den Eijnden OSGIS, Open Source GIS bartvde at osgis.nl http://www.osgis.nl From mitchelljj98 at GMAIL.COM Mon Jan 15 10:17:02 2007 From: mitchelljj98 at GMAIL.COM (John Mitchell) Date: Mon, 15 Jan 2007 13:17:02 -0500 Subject: MapServer contains some memory leaks whereby running it in FastCGI mode Message-ID: Hi, Below is a comment from a developer of a GeoServer product that runs on top of MapServer, which I will call xyzGeoServer The open source MapServer contains some memory leaks whereby running it in FastCGI mode will eventually cause issues, however in the xyzGeoServer release it handles properly. Does the above statement have any truth to it or has recent upgrades to MapServer fixed this issue? Thanks, -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at OSGIS.NL Mon Jan 15 10:22:00 2007 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Mon, 15 Jan 2007 19:22:00 +0100 Subject: MapServer contains some memory leaks whereby running it in FastCGI mode In-Reply-To: Message-ID: Yes it is true, but as you can read here there are ways to deal with it/work around it: http://www.nabble.com/ArcSDE,-FastCGI+IIS-t2862843.html Best regards, Bart John Mitchell schreef: > Hi, > > Below is a comment from a developer of a GeoServer product that runs > on top of MapServer, which I will call xyzGeoServer > > The open source MapServer contains some memory leaks whereby running > it in FastCGI mode will eventually cause issues, however in the > xyzGeoServer release it handles properly. > > Does the above statement have any truth to it or has recent upgrades > to MapServer fixed this issue? > > Thanks, > > -- > John J. Mitchell -- Bart van den Eijnden OSGIS, Open Source GIS bartvde at osgis.nl http://www.osgis.nl From umn-ms at HYDROTEC.DE Mon Jan 15 23:01:33 2007 From: umn-ms at HYDROTEC.DE (Benedikt Rothe) Date: Tue, 16 Jan 2007 08:01:33 +0100 Subject: MapServer contains some memory leaks whereby running it in FastCGI mode In-Reply-To: Message-ID: Hi Memory-Leak, when using mapserver with Oracle: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1662 * Big memory leak when connection-pooling is used. * Still smaller memory leak without pooling Benedikt UMN MapServer Users List schrieb am 15.01.2007 19:17:02: > Hi, > > Below is a comment from a developer of a GeoServer product that runs on top of MapServer, which I will call xyzGeoServer > > The open source MapServer contains some memory leaks whereby running it in FastCGI mode will eventually cause issues, however in the xyzGeoServer release it handles properly. > > Does the above statement have any truth to it or has recent upgrades to MapServer fixed this issue? > > Thanks, > > -- > John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From Kristian.Thy at ATKINSGLOBAL.COM Tue Jan 16 01:19:54 2007 From: Kristian.Thy at ATKINSGLOBAL.COM (Thy, Kristian) Date: Tue, 16 Jan 2007 10:19:54 +0100 Subject: InUrl styling Message-ID: I remember I at some point saw an example of styling layers and adding features through the url to cgi MapServer. However, now I can't find it again, neither in the list archives nor in the docs. Can anybody give me a pointer? Kristian -- Kristian Thy GIS Developer Atkins Danmark Transport, Milj? og GIS Arne Jacobsens All? 17 2300 K?benhavn S tel: (+45) 8233 9366 This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. Consider the environment. Please don't print this e-mail unless you really need to. From JXA at COWI.DK Tue Jan 16 04:34:19 2007 From: JXA at COWI.DK (Jeppe Lund Andersen) Date: Tue, 16 Jan 2007 13:34:19 +0100 Subject: WKT Message-ID: hello iam trying to use ms_shapeObjFromWkt() with this wkt string but I get a error is multipolygon not supported or is it a different error ? wkt="MULTIPOLYGON (((524947.99381 6255976.17454,524961.79785 6255959.99561,524993.41357 6255950.64448,524964.46961 6255949.7539,524963.57902 6255939.66062,524950.51713 6255950.05076,524924.83864 6255946.93371,524941.01757 6255959.25345), (524948.67817 6255972.12025,524956.67737 6255962.3253,524944.27044 6255960.69281),(524929.57803 6255948.77563,524941.98495 6255957.91758,524948.51492 6255951.22437)))" Med venlig hilsen Jeppe Lund Andersen -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at EC.GC.CA Tue Jan 16 04:45:22 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Tue, 16 Jan 2007 07:45:22 -0500 Subject: InUrl styling Message-ID: > > I remember I at some point saw an example of styling layers > and adding features through the url to cgi MapServer. > However, now I can't find it again, neither in the list > archives nor in the docs. Can anybody give me a pointer? > > Kristian http://mapserver.gis.umn.edu/docs/reference/cgi/controls (see bottom of page section "Changing map file parameters via a form or a URL") ..Tom From Kristian.Thy at ATKINSGLOBAL.COM Tue Jan 16 04:47:54 2007 From: Kristian.Thy at ATKINSGLOBAL.COM (Thy, Kristian) Date: Tue, 16 Jan 2007 13:47:54 +0100 Subject: InUrl styling In-Reply-To: A Message-ID: From: Thy, Kristian > I remember I at some point saw an example of styling layers > and adding features through the url to cgi MapServer. > However, now I can't find it again, neither in the list > archives nor in the docs. Can anybody give me a pointer? Now that I've got two off-list replies, I'll just answer myself for the archive's sake ;) It's at the bottom of http://mapserver.gis.umn.edu/docs/reference/cgi/controls Thanks to Bo and Tom :) Kristian This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. Consider the environment. Please don't print this e-mail unless you really need to. From buggy.pine at GMAIL.COM Tue Jan 16 04:58:49 2007 From: buggy.pine at GMAIL.COM (Buggy Pine) Date: Tue, 16 Jan 2007 13:58:49 +0100 Subject: WKT In-Reply-To: Message-ID: Hi, I suppose your wkt MULTIPOLYGON syntax is wrong... your point must form a closed linestring. The correct syntax could be something like this: MULTIPOLYGON ((( 524947.99381 6255976.17454, 524961.79785 6255959.99561, 524993.41357 6255950.64448, 524964.46961 6255949.7539, 524963.57902 6255939.66062, 524950.51713 6255950.05076, 524924.83864 6255946.93371, 524941.01757 6255959.25345, 524947.99381 6255976.17454 ), ( 524948.67817 6255972.12025, 524956.67737 6255962.3253, 524944.27044 6255960.69281, 524948.67817 6255972.12025 ), ( 524929.57803 6255948.77563, 524941.98495 6255957.91758, 524948.51492 6255951.22437, 524929.57803 6255948.77563 ))) Best regards Ruggero Valentinotti On 1/16/07, Jeppe Lund Andersen wrote: > > > > hello > > iam trying to use ms_shapeObjFromWkt() > with this wkt string but I get a error > is multipolygon not supported or is it a different error ? > > wkt="MULTIPOLYGON (((524947.99381 6255976.17454,524961.79785 > 6255959.99561,524993.41357 6255950.64448,524964.46961 > 6255949.7539,524963.57902 6255939.66062,524950.51713 > 6255950.05076,524924.83864 6255946.93371,524941.01757 6255959.25345), > > (524948.67817 6255972.12025,524956.67737 6255962.3253,524944.27044 > 6255960.69281),(524929.57803 6255948.77563,524941.98495 > 6255957.91758,524948.51492 6255951.22437)))" > > Med venlig hilsen > > Jeppe Lund Andersen From stefan.schwarzer at GRID.UNEP.CH Tue Jan 16 04:59:47 2007 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Tue, 16 Jan 2007 13:59:47 +0100 Subject: Shift between Label and Key Boxes in Legend Message-ID: Hmmm... just remarked a slight y-shift of a couple of pixels between the key boxes in the legend and the corresponding labels. So, the first box for "no data" is some 5 pixels or so higher than the text. Same for all other key boxes. Any idea why this could be? Can't remember having this seen before... I looked for an OFFSET or so, but there is nothing to specify in LEGEND element, other than for example the general distance between the lines... Thanks for any hints! Stef -------------- next part -------------- A non-text attachment was scrubbed... Name: 116895205418193.png Type: image/png Size: 1565 bytes Desc: not available URL: From mateusz at LOSKOT.NET Tue Jan 16 05:22:00 2007 From: mateusz at LOSKOT.NET (Mateusz Loskot) Date: Tue, 16 Jan 2007 14:22:00 +0100 Subject: WKT In-Reply-To: <63c823e90701160458p682fdc83ke7b992f6d48e1ade@mail.gmail.com> Message-ID: Buggy Pine wrote: > Hi, > I suppose your wkt MULTIPOLYGON syntax is wrong... > > your point must form a closed linestring. Buggy, You're right the WKT is wrong, also the OGC SFS spec is wrong. Here is more about this bug: http://feature.opengeospatial.org/forumbb/viewtopic.php?t=301 Cheers -- Mateusz Loskot http://mateusz.loskot.net From JXA at COWI.DK Tue Jan 16 05:11:54 2007 From: JXA at COWI.DK (Jeppe Lund Andersen) Date: Tue, 16 Jan 2007 14:11:54 +0100 Subject: WKT Message-ID: Hi used your WKT string but did not help, still get the same error Fatal error: Object expected as argument. in C:\Inetpub\wwwroot\jar2\xmlquery.php on line 74
here is my line $NewShapeFromWkt = ms_shapeObjFromWkt( "MULTIPOLYGON (((524947.99381 6255976.17454,524961.79785 6255959.99561,524993.41357 6255950.64448,524964.46961 6255949.7539,524963.57902 6255939.66062,524950.51713 6255950.05076,524924.83864 6255946.93371,524941.01757 6255959.25345,524947.99381 6255976.17454), (524948.67817 6255972.12025,524956.67737 6255962.3253,524944.27044 6255960.69281,524948.67817 6255972.12025), (524929.57803 6255948.77563,524941.98495 6255957.91758,524948.51492 6255951.22437,524929.57803 6255948.77563)))" ); Jeppe > -----Original Message----- > From: Buggy Pine [mailto:buggy.pine at gmail.com] > Sent: Tuesday, January 16, 2007 1:59 PM > To: Jeppe Lund Andersen > Cc: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] WKT > > Hi, > I suppose your wkt MULTIPOLYGON syntax is wrong... > > your point must form a closed linestring. > > The correct syntax could be something like this: > > MULTIPOLYGON ((( > 524947.99381 6255976.17454, > 524961.79785 6255959.99561, > 524993.41357 6255950.64448, > 524964.46961 6255949.7539, > 524963.57902 6255939.66062, > 524950.51713 6255950.05076, > 524924.83864 6255946.93371, > 524941.01757 6255959.25345, > 524947.99381 6255976.17454 > ), ( > 524948.67817 6255972.12025, > 524956.67737 6255962.3253, > 524944.27044 6255960.69281, > 524948.67817 6255972.12025 > ), ( > 524929.57803 6255948.77563, > 524941.98495 6255957.91758, > 524948.51492 6255951.22437, > 524929.57803 6255948.77563 > ))) > > Best regards > Ruggero Valentinotti > > On 1/16/07, Jeppe Lund Andersen wrote: > > > > > > > > hello > > > > iam trying to use ms_shapeObjFromWkt() with this wkt string > but I get > > a error is multipolygon not supported or is it a different error ? > > > > wkt="MULTIPOLYGON (((524947.99381 6255976.17454,524961.79785 > > 6255959.99561,524993.41357 6255950.64448,524964.46961 > > 6255949.7539,524963.57902 6255939.66062,524950.51713 > > 6255950.05076,524924.83864 6255946.93371,524941.01757 > 6255959.25345), > > > > (524948.67817 6255972.12025,524956.67737 6255962.3253,524944.27044 > > 6255960.69281),(524929.57803 6255948.77563,524941.98495 > > 6255957.91758,524948.51492 6255951.22437)))" > > > > Med venlig hilsen > > > > Jeppe Lund Andersen > > > From mateusz at LOSKOT.NET Tue Jan 16 05:45:59 2007 From: mateusz at LOSKOT.NET (Mateusz Loskot) Date: Tue, 16 Jan 2007 14:45:59 +0100 Subject: WKT In-Reply-To: Message-ID: Jeppe Lund Andersen wrote: > here is my line > > $NewShapeFromWkt = ms_shapeObjFromWkt( "MULTIPOLYGON (((524947.99381 > 6255976.17454,524961.79785 6255959.99561,524993.41357 > 6255950.64448,524964.46961 6255949.7539,524963.57902 > 6255939.66062,524950.51713 6255950.05076,524924.83864 > 6255946.93371,524941.01757 6255959.25345,524947.99381 6255976.17454), > (524948.67817 6255972.12025,524956.67737 6255962.3253,524944.27044 > 6255960.69281,524948.67817 6255972.12025), (524929.57803 > 6255948.77563,524941.98495 6255957.91758,524948.51492 > 6255951.22437,524929.57803 6255948.77563)))" ); You need to group polygons this way: MULTIPOLYGON ( ((10 10, 10 20, 20 20, 20 15, 10 10)), ((60 60, 70 70, 80 60, 60 60)) ) Note, double (( and )). Cheers -- Mateusz Loskot http://mateusz.loskot.net From mateusz at LOSKOT.NET Tue Jan 16 06:08:19 2007 From: mateusz at LOSKOT.NET (Mateusz Loskot) Date: Tue, 16 Jan 2007 15:08:19 +0100 Subject: WKT In-Reply-To: Message-ID: Jeppe Lund Andersen wrote: > Hi > > ms_shapeObjFromWkt( "MULTIPOLYGON(((10 10, 10 20, 20 20, 20 15, 10 > 10)),((60 60, 70 70, 80 60, 60 60)))" ); > > this does not work either Jeppe, It's strange to me, because following should be considered as valid WKT: MULTIPOLYGON ( (( first polygon coords)), (( second polygon coords )) ) May be there is a bug in WKT parser. Cheers -- Mateusz Loskot http://mateusz.loskot.net From JXA at COWI.DK Tue Jan 16 06:35:04 2007 From: JXA at COWI.DK (Jeppe Lund Andersen) Date: Tue, 16 Jan 2007 15:35:04 +0100 Subject: WKT Message-ID: Hi I have stored the wkt string in the Database and connect to it through ODBC and this way it shows the multipolygon fine, but it will not with the function ms_shapeObjFromWkt() so I was hoping someone could test it and see if it is a bug or not. for me it looks like a bug, but iam not sure. Jeppe > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Mateusz Loskot > Sent: Tuesday, January 16, 2007 3:08 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] WKT > > Jeppe Lund Andersen wrote: > > Hi > > > > ms_shapeObjFromWkt( "MULTIPOLYGON(((10 10, 10 20, 20 20, 20 15, 10 > > 10)),((60 60, 70 70, 80 60, 60 60)))" ); > > > > this does not work either > > Jeppe, > > It's strange to me, because following should be considered as > valid WKT: > > MULTIPOLYGON > ( > (( first polygon coords)), > (( second polygon coords )) > ) > > May be there is a bug in WKT parser. > > Cheers > -- > Mateusz Loskot > http://mateusz.loskot.net > > > From leonardo at NOVAGEO.PT Tue Jan 16 06:36:56 2007 From: leonardo at NOVAGEO.PT (Leonardo Andrade) Date: Tue, 16 Jan 2007 14:36:56 +0000 Subject: WKT In-Reply-To: <45ACDC53.4010603@loskot.net> Message-ID: Hi, For me, this example of a multipolygon with 2 shapes works fine: $shape=ms_shapeObjFromWkt('MULTIPOLYGON (((-42221.3100036118994467 -50978.9700119893022929, -42237.3500036269033444 -50998.5500120075012092, -42268.6100036560019362 -50972.0399959827991552, -42252.5799876410965226 -50952.7199959647987271, -42221.3100036118994467 -50978.9700119893022929)), ((-42241.4500036306999391 -51003.0999960116969305, -42257.4799876456017955 -51021.8599960291976458, -42287.7399876737981685 -50997.5599960066028871, -42272.3999876594971283 -50977.8599959881976247, -42241.4500036306999391 -51003.0999960116969305)))'); I am using Mapscript 4.10 compiled with GEOS 2.2.3, and PHP 4.4.4, over Linux. Leonardo Mateusz Loskot wrote: > Jeppe Lund Andersen wrote: > >> Hi >> >> ms_shapeObjFromWkt( "MULTIPOLYGON(((10 10, 10 20, 20 20, 20 15, 10 >> 10)),((60 60, 70 70, 80 60, 60 60)))" ); >> >> this does not work either >> > > Jeppe, > > It's strange to me, because following should be considered as valid WKT: > > MULTIPOLYGON > ( > (( first polygon coords)), > (( second polygon coords )) > ) > > May be there is a bug in WKT parser. > > Cheers > From JXA at COWI.DK Tue Jan 16 06:45:21 2007 From: JXA at COWI.DK (Jeppe Lund Andersen) Date: Tue, 16 Jan 2007 15:45:21 +0100 Subject: WKT Message-ID: hi ok I do not have GEOS compiled with mapserver so is using the other and is using mapserver 4.8.4 with php 4.4.4 on windows took your $shape=ms_shapeObjFromWkt('MULTIPOLYGON (((-42221.3100036118994467 -50978.9700119893022929, -42237.3500036269033444 -50998.5500120075012092, -42268.6100036560019362 -50972.0399959827991552, -42252.5799876410965226 -50952.7199959647987271, -42221.3100036118994467 -50978.9700119893022929)), ((-42241.4500036306999391 -51003.0999960116969305, -42257.4799876456017955 -51021.8599960291976458, -42287.7399876737981685 -50997.5599960066028871, -42272.3999876594971283 -50977.8599959881976247, -42241.4500036306999391 -51003.0999960116969305)))'); and put it in the code and still did not work maybe iam using something old in the mapserver Jeppe > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Leonardo Andrade > Sent: Tuesday, January 16, 2007 3:37 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] WKT > > Hi, > > For me, this example of a multipolygon with 2 shapes works fine: > > $shape=ms_shapeObjFromWkt('MULTIPOLYGON > (((-42221.3100036118994467 -50978.9700119893022929, > -42237.3500036269033444 -50998.5500120075012092, > -42268.6100036560019362 -50972.0399959827991552, > -42252.5799876410965226 -50952.7199959647987271, > -42221.3100036118994467 -50978.9700119893022929)), > ((-42241.4500036306999391 -51003.0999960116969305, > -42257.4799876456017955 -51021.8599960291976458, > -42287.7399876737981685 -50997.5599960066028871, > -42272.3999876594971283 -50977.8599959881976247, > -42241.4500036306999391 -51003.0999960116969305)))'); > > I am using Mapscript 4.10 compiled with GEOS 2.2.3, and PHP > 4.4.4, over Linux. > > Leonardo > > Mateusz Loskot wrote: > > Jeppe Lund Andersen wrote: > > > >> Hi > >> > >> ms_shapeObjFromWkt( "MULTIPOLYGON(((10 10, 10 20, 20 20, 20 15, 10 > >> 10)),((60 60, 70 70, 80 60, 60 60)))" ); > >> > >> this does not work either > >> > > > > Jeppe, > > > > It's strange to me, because following should be considered > as valid WKT: > > > > MULTIPOLYGON > > ( > > (( first polygon coords)), > > (( second polygon coords )) > > ) > > > > May be there is a bug in WKT parser. > > > > Cheers > > > > > From hobu at IASTATE.EDU Tue Jan 16 08:02:59 2007 From: hobu at IASTATE.EDU (Howard Butler) Date: Tue, 16 Jan 2007 10:02:59 -0600 Subject: MapServer contains some memory leaks whereby running it in FastCGI mode In-Reply-To: Message-ID: John, Which product is xyzGeoServer and why aren't they willing to contribute their fixes back to the software? Howard At 12:17 PM 1/15/2007, John Mitchell wrote: >------=_Part_39643_12109009.1168885022370 >Content-Type: text/plain; charset=ISO-8859-1; format=flowed >Content-Transfer-Encoding: 7bit >Content-Disposition: inline > >Hi, > >Below is a comment from a developer of a GeoServer product that runs on top >of MapServer, which I will call xyzGeoServer > >The open source MapServer contains some memory leaks whereby running it in >FastCGI mode will eventually cause issues, however in the xyzGeoServer >release it handles properly. > >Does the above statement have any truth to it or has recent upgrades to >MapServer fixed this issue? > >Thanks, > >-- >John J. Mitchell > >------=_Part_39643_12109009.1168885022370 >Content-Type: text/html; charset=ISO-8859-1 >Content-Transfer-Encoding: 7bit >Content-Disposition: inline > >Hi,

Below is a comment from a developer of a GeoServer >product that runs on top of MapServer, which I will call xyzstyle="color: rgb(0, 0, 0);">size="2">GeoServer

>The open source >MapServer contains some memory leaks >whereby running it in FastCGI mode will eventually cause >issues, however in >the xyzGeoServer release it handles properly.

style="color: rgb(0, 0, 0);">Does the above statement have any truth >to it or has recent upgrades to MapServer fixed this >issue?

Thanks,
>

--
John J. Mitchell > >------=_Part_39643_12109009.1168885022370-- From mseibel at GMAIL.COM Tue Jan 16 08:10:55 2007 From: mseibel at GMAIL.COM (M S) Date: Tue, 16 Jan 2007 11:10:55 -0500 Subject: PHP/Mapscript on Fedora Core 5 Message-ID: Greetings everyone. I have gone through various documents for several days, to try to get PHP/Mapscript working on FC5. While I am familiar with CGI Mapserver, the PHP configuration is new to me. I keep getting a "PHP Warning: dl() [function.dl]: Unable to load dynamic library '/usr/lib/php/modules/php_mapscript.so' " I compiled mapserver with the --with-php=DIR option, and got a php_mapscript.so file from Make, which I placed in the /usr/lib/php/modules directory (as per my php.ini file). The .so file is accessable by apache, and has r-x permissions. my phpinfo() works fine and spits back a bunch of stuff, but I keep getting an "unable to load php_mapscript.so" error in apache web log. I checked the php.ini file, and it is pointing to the '/usr/lib/php/modules' directory. the php.ini file also allows for dl loads. I used this document, (which was from 2004, so I presume FC4 or maybe FC3?) http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0404/msg00266.html and had no luck. I am not sure I understand why a wrapper script is needed in this example. I also uninstalled the RPM of PHP and tried a source install which didnt work, however, i didnt really try much with the configure options from source, and went back to the RPM software. On the FAQ page of mapserver, it says that PHP/Mapscript has to be setup as CGI, but others had mentioned to me they were successfully using PHPmapscript as a module without problems on Debian. The RPM install on FC5, puts a "php" and a "php-cgi" program in the /usr/bin directory. i tried pointing to the php-cgi app too, but no luck. Any suggestions are most welcome. Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From chad at AGRIDATAINC.COM Tue Jan 16 09:46:34 2007 From: chad at AGRIDATAINC.COM (Chad Ringenberg) Date: Tue, 16 Jan 2007 11:46:34 -0600 Subject: Apache, SDE Message-ID: I struggled to get FastCGI working with mapserver but finally did using the steps below. However I'm having memory exceptions when using SDE layers anywhere from 3 to 15 map requests. I also tested against PostGIS and didn't receive any exceptions for the first 40 requests but the mapserv.exe did gradually consume more memory. I'm not sure if the configuration I used below is the best, but it's all I have found so far. Is there a different configuration I could use that would work more reliably on Windows 2003 server with SDE? - Installed Apache version 2.0.59, this appears to be the latest version to work with mod_fastcgi. - I downloaded mod_fastcgi http://www.fastcgi.com/dist/mod_fastcgi-2.4.2-AP20.dll and placed it in the cgi-bin directory. - Placed my compiled (FastCGI enabled) mapserver in the cgi-bin directory. - Added the following lines to conf.httpd in Apache. - LoadModule fastcgi_module cgi-bin/mod_fastcgi-2.4.2-AP20.dll - AddHandler fastcgi-script .fcgi - FastCgiServer cgi-bin/mapserv.exe - added the following to each layer in the map file: PROCESSING "CLOSE_CONNECTION=DEFER" Thanks, Chad ----- Original Message ----- From: Chad Ringenberg To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Thursday, January 11, 2007 2:21 PM Subject: [UMN_MAPSERVER-USERS] Apache, SDE Hi, I have Windows 2003 server with the latest release of Apache and Mapserver compiled with SDE(9.1) support. I am able to generate a map with the SDE layers but the following errors are showing up in the Apache error.log. [error] [client 127.0.0.1] msSDELayerOpen(): Layer seclayer opened from scratch.\r [error] [client 127.0.0.1] msConnPoolRegister(seclayer,192.168.5.5,port:5153,abc,user,***,01A12CA8)\r [error] [client 127.0.0.1] msSDELayerOpen(): Layer seclayer specified version SDE.DEFAULT.\r ...... Ultimately I'm trying to get FastCGI working but have been unable to and I'm wondering if this may be why. Thanks, Chad -------------- next part -------------- An HTML attachment was scrubbed... URL: From ezenaide at GMAIL.COM Tue Jan 16 11:52:56 2007 From: ezenaide at GMAIL.COM (Eduardo Zenaide) Date: Tue, 16 Jan 2007 17:52:56 -0200 Subject: Query and Map reload Message-ID: hi, all, someone could give me an example of an MapServer application that is possible to do queries (using text inputs) and the map reload based only on this query? i mean the link, or course ;) thanks :) -- Eduardo Zenaide -------------- next part -------------- An HTML attachment was scrubbed... URL: From wef1 at CEC.WUSTL.EDU Tue Jan 16 12:37:29 2007 From: wef1 at CEC.WUSTL.EDU (edfialk) Date: Tue, 16 Jan 2007 12:37:29 -0800 Subject: php/mapscript set up Message-ID: Hi, I'm trying to get php/mapscript working, but my php_mapscript.so keeps getting denied something. Here's my error_log: PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib64/php4/php_mapscript.so' - /usr/lib64/php4/php_mapscript.so: cannot open shared object file: Permission denied in Unknown on line 0 My unix/server guy says it's not Apache that's getting denied access, it's the object file that's trying to do something and getting denied. Does anyone have any ideas about how to fix this? Thanks in advance! -Ed -- View this message in context: http://www.nabble.com/php-mapscript-set-up-tf3023338.html#a8398327 Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at DNR.STATE.MN.US Tue Jan 16 16:07:00 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 16 Jan 2007 18:07:00 -0600 Subject: WKT In-Reply-To: Message-ID: The "other" is the OGR wkt handling functions. There is OGR support compiled in (you must have GEOS or OGR)... Steve >>> Jeppe Lund Andersen 1/16/2007 8:45:21 AM >>> hi ok I do not have GEOS compiled with mapserver so is using the other and is using mapserver 4.8.4 with php 4.4.4 on windows took your $shape=ms_shapeObjFromWkt('MULTIPOLYGON (((-42221.3100036118994467 -50978.9700119893022929, -42237.3500036269033444 -50998.5500120075012092, -42268.6100036560019362 -50972.0399959827991552, -42252.5799876410965226 -50952.7199959647987271, -42221.3100036118994467 -50978.9700119893022929)), ((-42241.4500036306999391 -51003.0999960116969305, -42257.4799876456017955 -51021.8599960291976458, -42287.7399876737981685 -50997.5599960066028871, -42272.3999876594971283 -50977.8599959881976247, -42241.4500036306999391 -51003.0999960116969305)))'); and put it in the code and still did not work maybe iam using something old in the mapserver Jeppe > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Leonardo Andrade > Sent: Tuesday, January 16, 2007 3:37 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] WKT > > Hi, > > For me, this example of a multipolygon with 2 shapes works fine: > > $shape=ms_shapeObjFromWkt('MULTIPOLYGON > (((-42221.3100036118994467 -50978.9700119893022929, > -42237.3500036269033444 -50998.5500120075012092, > -42268.6100036560019362 -50972.0399959827991552, > -42252.5799876410965226 -50952.7199959647987271, > -42221.3100036118994467 -50978.9700119893022929)), > ((-42241.4500036306999391 -51003.0999960116969305, > -42257.4799876456017955 -51021.8599960291976458, > -42287.7399876737981685 -50997.5599960066028871, > -42272.3999876594971283 -50977.8599959881976247, > -42241.4500036306999391 -51003.0999960116969305)))'); > > I am using Mapscript 4.10 compiled with GEOS 2.2.3, and PHP > 4.4.4, over Linux. > > Leonardo > > Mateusz Loskot wrote: > > Jeppe Lund Andersen wrote: > > > >> Hi > >> > >> ms_shapeObjFromWkt( "MULTIPOLYGON(((10 10, 10 20, 20 20, 20 15, 10 > >> 10)),((60 60, 70 70, 80 60, 60 60)))" ); > >> > >> this does not work either > >> > > > > Jeppe, > > > > It's strange to me, because following should be considered > as valid WKT: > > > > MULTIPOLYGON > > ( > > (( first polygon coords)), > > (( second polygon coords )) > > ) > > > > May be there is a bug in WKT parser. > > > > Cheers > > > > > From JXA at COWI.DK Tue Jan 16 23:26:47 2007 From: JXA at COWI.DK (Jeppe Lund Andersen) Date: Wed, 17 Jan 2007 08:26:47 +0100 Subject: WKT Message-ID: Hi Yes thats OGR iam using. OGR is having a problem with multipolygon in mapserver 4.8.4 Jeppe > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Steve Lime > Sent: Wednesday, January 17, 2007 1:07 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] WKT > > The "other" is the OGR wkt handling functions. There is OGR > support compiled in (you must have GEOS or OGR)... > > Steve > > >>> Jeppe Lund Andersen 1/16/2007 8:45:21 AM >>> > hi > > ok I do not have GEOS compiled with mapserver so is using the > other and is using mapserver 4.8.4 with php 4.4.4 on windows > > took your > $shape=ms_shapeObjFromWkt('MULTIPOLYGON > (((-42221.3100036118994467 -50978.9700119893022929, > -42237.3500036269033444 -50998.5500120075012092, > -42268.6100036560019362 -50972.0399959827991552, > -42252.5799876410965226 -50952.7199959647987271, > -42221.3100036118994467 -50978.9700119893022929)), > ((-42241.4500036306999391 -51003.0999960116969305, > -42257.4799876456017955 -51021.8599960291976458, > -42287.7399876737981685 -50997.5599960066028871, > -42272.3999876594971283 -50977.8599959881976247, > -42241.4500036306999391 -51003.0999960116969305)))'); > > > and put it in the code and still did not work maybe iam using > something old in the mapserver > > Jeppe > > > -----Original Message----- > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Leonardo Andrade > > Sent: Tuesday, January 16, 2007 3:37 PM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] WKT > > > > Hi, > > > > For me, this example of a multipolygon with 2 shapes works fine: > > > > $shape=ms_shapeObjFromWkt('MULTIPOLYGON > > (((-42221.3100036118994467 -50978.9700119893022929, > > -42237.3500036269033444 -50998.5500120075012092, > > -42268.6100036560019362 -50972.0399959827991552, > > -42252.5799876410965226 -50952.7199959647987271, > > -42221.3100036118994467 -50978.9700119893022929)), > > ((-42241.4500036306999391 -51003.0999960116969305, > > -42257.4799876456017955 -51021.8599960291976458, > > -42287.7399876737981685 -50997.5599960066028871, > > -42272.3999876594971283 -50977.8599959881976247, > > -42241.4500036306999391 -51003.0999960116969305)))'); > > > > I am using Mapscript 4.10 compiled with GEOS 2.2.3, and PHP 4.4.4, > > over Linux. > > > > Leonardo > > > > Mateusz Loskot wrote: > > > Jeppe Lund Andersen wrote: > > > > > >> Hi > > >> > > >> ms_shapeObjFromWkt( "MULTIPOLYGON(((10 10, 10 20, 20 20, > 20 15, 10 > > > >> 10)),((60 60, 70 70, 80 60, 60 60)))" ); > > >> > > >> this does not work either > > >> > > > > > > Jeppe, > > > > > > It's strange to me, because following should be considered > > as valid WKT: > > > > > > MULTIPOLYGON > > > ( > > > (( first polygon coords)), > > > (( second polygon coords )) > > > ) > > > > > > May be there is a bug in WKT parser. > > > > > > Cheers > > > > > > > > > > > > From friendvn2000 at YAHOO.COM Wed Jan 17 00:12:08 2007 From: friendvn2000 at YAHOO.COM (Jedi Knight) Date: Wed, 17 Jan 2007 02:12:08 -0600 Subject: Display name of polygon in MySQL database in RIGHT position ? Message-ID: I have a MySQL table that hold attribute fields and a spatial field (POLYGON). I used OGR and have manipulated with the spatial field ( I can display them in a MapServer's application ). But how can I do to display names of these polygon to their RIGHT positions ? Many thanks! P/s: my table like that: ID | Name | Ogc_geom 1 A (BLOB) 2 B (BLOB) From alangoto at ADINET.COM.UY Wed Jan 17 03:49:58 2007 From: alangoto at ADINET.COM.UY (=?iso-8859-1?Q?Alvaro_Gonz=E1lez?=) Date: Wed, 17 Jan 2007 09:49:58 -0200 Subject: Empty screen with .TAB file Message-ID: Hello: I'm newbie in Mpaserver. I work in Windows Server 2003 with IIS and use MS4W in this environment. When i try to see a .tab file in the browser i only recive a blank page. I use a Mapinfo example, world.tab, that came with de Mpainfo Mapxtreme trial version. NAME mundo SIZE 600 518 STATUS ON EXTENT -16681653.193964 -8621185.324024 16789976.633245 8326222.646171 UNITS METERS IMAGECOLOR 255 255 255 LAYER NAME "World" TYPE POLYGON MINSCALE 0 MAXSCALE 1000000 STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "World.tab" CLASS NAME "World" COLOR 255 244 208 OUTLINECOLOR 120 120 120 END # Class section END # LAYER Section -------------- next part -------------- An HTML attachment was scrubbed... URL: From mdeblois at MAPLECROFT.NET Wed Jan 17 04:53:06 2007 From: mdeblois at MAPLECROFT.NET (Mark de Blois) Date: Wed, 17 Jan 2007 12:53:06 +0000 Subject: Can I reproject WMS service using cgi parameters? Message-ID: Hi all, I am struggling trying to get a local WMS mapservice (local one with data in EPSG:4326) to be reprojected on the fly into a projection for which no EPSG code exists (Winkel Triple). But I am not sure whether this is possible (since there is not EPSG code for Winkel Triple I cannot add a WMS_SRS in the layer properties). What I am trying to do is add onto the url for the map request: "proj=wintri&ellps=WGS84&lat_1=50&units=meters&BBox=-16000000,-10000000,16000000,10000000" The result is the map in EPSG:4326 projection though zoomed out greatly. After changing the bounding box to -180,-90,180,90 I get my 'normal' lat/lon map though not in the projection I wish. Could someonelet me know if what I am trying is possible at all? Thanks ahead! cheers, Mark From warmerdam at POBOX.COM Wed Jan 17 08:33:22 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 17 Jan 2007 11:33:22 -0500 Subject: WKT In-Reply-To: Message-ID: Jeppe Lund Andersen wrote: > Hi > > Yes thats OGR iam using. > OGR is having a problem with multipolygon in mapserver 4.8.4 Jeppe, I think in 4.8.x the MapServer<->OGR WKT conversion was not as robust as it is in 4.10. In particular some of the "multi" types may not have been supported. If you can reproduce the same problem with 4.10.0, then please submit a bug report against MapServer assigned to me, and I'll look into it. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From raffaele.morelli at GMAIL.COM Wed Jan 17 07:46:00 2007 From: raffaele.morelli at GMAIL.COM (Raffaele Morelli) Date: Wed, 17 Jan 2007 16:46:00 +0100 Subject: php/mapscript set up In-Reply-To: <8398327.post@talk.nabble.com> Message-ID: > > Here's my error_log: > > PHP Warning: Unknown(): Unable to load dynamic library > '/usr/lib64/php4/php_mapscript.so' - /usr/lib64/php4/php_mapscript.so: > cannot open shared object file: Permission denied in Unknown on line 0 > > > My unix/server guy says it's not Apache that's getting denied access, it's > the object file that's trying to do something and getting denied. > > Does anyone have any ideas about how to fix this? Hi, maybe just a php4 wrong 'extension_dir' in php.ini or a wrong php_mapscript.so position for your current 'extension_dir' Default php.ini has './' in 'extension_dir' and this path is relative to your php.ini position, try with your absolute path or, as php.ini usually resides in a depeer level ( eg. '/usr/lib64/php4/lib/php.ini' ) put your php_mapscript.so in the same dir of php.ini hope this helps -------------- next part -------------- An HTML attachment was scrubbed... URL: From cristhianobv at YAHOO.COM.BR Wed Jan 17 08:26:02 2007 From: cristhianobv at YAHOO.COM.BR (Cristhiano Vasconcellos) Date: Wed, 17 Jan 2007 13:26:02 -0300 Subject: Problem with raster layer Message-ID: Hi everybody! Could someone help me! Mapserver is not rendering the raster layer, the others are OK. I?ve tried several ways to resolve this, but nothing. The file sint_123.png is associated with sint_123.wld (georreference). The sint_123.wld is like this: 30 0.0000000000 0.0000000000 -30 -54.126061 -29.600353 The mapfile is like this: MAP NAME "ufsm" EXTENT -57.643316 -33.751583 -49.691142 -27.080114 SIZE 640 480 IMAGETYPE PNG IMAGECOLOR 255 255 255 STATUS ON UNITS dd #modificado era kilometers FONTSET "fonts.txt" SYMBOLSET "symbols.txt" SHAPEPATH "/home/shapes_sanidade/" PROJECTION "proj=latlong" END OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" FORMATOPTION "INTERLACE=OFF" TRANSPARENT OFF #ESTAVA ON 01012007 END OUTPUTFORMAT NAME jpeg DRIVER "GD/JPEG" MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" FORMATOPTION "INTERLACE=OFF" FORMATOPTION "QUALITY=80" END #keymap mapinha de referencia para clicar e posicionar no mapa principal #comentei para tir?-lo REFERENCE IMAGE images/img_referencia1.png EXTENT -57.643316 -33.751583 -49.691142 -27.0080114 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 #200 200 200 SIZE 140 105 END WEB MAXSCALE 10000000 MINSCALE 25000 END # LEGEND # KEYSIZE 20 15 # END #layers ******************************* LAYER NAME "municipios" DATA "43mu2500gc" STATUS default TYPE polygon LABELCACHE on LABELITEM "NOME" #indica qual campo no shape originar? os r?tulos no mapa CLASSITEM "NOME" #indica qual campo no shapefile sera pesquisado MAXFEATURES 2000 #n?mero m?ximo de objetos a serem desenhados MAXSCALE 10000000 # Acrescentei os Metadados para que a ferramenta de query funcionasse # Hilight para real?ar os resultados de uma query METADATA "exported_values" "recenter_name_string,id_attribute_string" "recenter_name_string" "NOME" "id_attribute_string" "NOME|string" #atributo identificador da query e seu tipo "query_returned_attributes" "" #atributos que ser?o puxados na query - se "" puxa todos "hilight_createlayer" "true" # cria dinamicamente um layer de highlight "hilight_color" "249 248 165" # cor do highlight "hilight_transparency" "70" "mask_transparency" "70" # configura??es da m?scara na query "mask_color" "193 249 165" END TEMPLATE "ttt" #exigido para a ferramenta de query funcionar CLASS NAME "municipios" STYLE SIZE 1 COLOR 255 255 255 OUTLINECOLOR 100 100 100 END LABEL MINFEATURESIZE 30 COLOR 0 0 0 SIZE small END END END ##################################################### RASTER LAYER - THIS IS NOT RENDERING ##################################################### LAYER NAME "arroio_arenal" MAXSCALE 10000000 MINSCALE 25000 DATA "sint_123.png" METADATA "force_imagetype" "jpeg" END TYPE RASTER STATUS ON END ##################################### # LAYERS DE ACESSO AO POSTGRESQL # ##################################### LAYER NAME "est1" STATUS default CONNECTIONTYPE POSTGIS CONNECTION "dbname=animals user=john password=teste590 host=localhost port=5432" DATA "the_geom from estabelecimento" FILTER "cd_tipo_est = 1" TYPE point MINSCALE 10000 MAXSCALE 5000000 LABELCACHE on #desenha o label so depois que todas as camadas forem desenhadas LABELITEM 'sim_est' METADATA "exported_values" "id_attribute_string" # "recenter_name_string" "sim_est" "id_attribute_string" "sim_est|string" #atributo identificador da query e seu tipo "query_returned_attributes" "" #atributos que ser?o puxados na query - se "" puxa todos "hilight_createlayer" "true" # cria dinamicamente um layer de highlight "hilight_color" "249 248 165" # cor do highlight "hilight_transparency" "70" END # fim do metadata TEMPLATE "ttt" # exigido para a query funcionar CLASS NAME "Matadouro Frig. de Aves" #este nome aparece na legenda STYLE SYMBOL "Circle" SIZE 25 COLOR 255 0 0 END #style LABEL COLOR 0 0 0 SIZE tiny END #label END # class Urban Areas END # layer END # mapfile Thanks a lot! __________________________________________________ Fale com seus amigos de gra?a com o novo Yahoo! Messenger http://br.messenger.yahoo.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From wef1 at CEC.WUSTL.EDU Wed Jan 17 08:42:38 2007 From: wef1 at CEC.WUSTL.EDU (edfialk) Date: Wed, 17 Jan 2007 08:42:38 -0800 Subject: php/mapscript set up In-Reply-To: Message-ID: Here's a good one, when I run: "php phpinfo.php" from the command line, everything works GREAT, but when I view it in a browser window, it doesn't seem to work. Here's my phpinfo.php code: if (extension_loaded("MapScript")) echo "works!"; else echo "doesn't work!"; print_r(get_loaded_extensions()); phpinfo(); works!
Array ( [0] => xml [1] => tokenizer [2] => standard [3] => session [4] => posix [5] => overload [6] => mysql [7] => ctype [8] => pcre [9] => MapScript ) phpinfo() PHP Version => 4.4.2 However when I go to this page in my browser (http://niceguy.wustl.edu/mapserver/phpinfo.php), I get: doesn't work! Array ( [0] => yp [1] => xml [2] => wddx [3] => tokenizer [4] => sysvshm [5] => sysvsem [6] => standard [7] => sockets [8] => shmop [9] => session [10] => pspell [11] => posix [12] => pcre [13] => overload [14] => mime_magic [15] => iconv [16] => gmp [17] => gettext [18] => ftp [19] => exif [20] => dio [21] => dbx [22] => dba [23] => curl [24] => ctype [25] => calendar [26] => bz2 [27] => bcmath [28] => zlib [29] => openssl [30] => apache2handler [31] => gd [32] => ldap ) Totally different! I don't get it.... Anyone have any ideas? Thanks! -Ed -- View this message in context: http://www.nabble.com/php-mapscript-set-up-tf3023338.html#a8413780 Sent from the Mapserver - User mailing list archive at Nabble.com. From wef1 at CEC.WUSTL.EDU Wed Jan 17 08:42:38 2007 From: wef1 at CEC.WUSTL.EDU (edfialk) Date: Wed, 17 Jan 2007 08:42:38 -0800 Subject: php/mapscript set up In-Reply-To: Message-ID: Here's a good one, when I run: "php phpinfo.php" from the command line, everything works GREAT, but when I view it in a browser window, it doesn't seem to work. Here's my phpinfo.php code: if (extension_loaded("MapScript")) echo "works!"; else echo "doesn't work!"; print_r(get_loaded_extensions()); phpinfo(); [edfialk at niceguy mapserver]$ php phpinfo.php works!
Array ( [0] => xml [1] => tokenizer [2] => standard [3] => session [4] => posix [5] => overload [6] => mysql [7] => ctype [8] => pcre [9] => MapScript ) phpinfo() PHP Version => 4.4.2 However when I go to this page in my browser (http://niceguy.wustl.edu/mapserver/phpinfo.php), I get: doesn't work! Array ( [0] => yp [1] => xml [2] => wddx [3] => tokenizer [4] => sysvshm [5] => sysvsem [6] => standard [7] => sockets [8] => shmop [9] => session [10] => pspell [11] => posix [12] => pcre [13] => overload [14] => mime_magic [15] => iconv [16] => gmp [17] => gettext [18] => ftp [19] => exif [20] => dio [21] => dbx [22] => dba [23] => curl [24] => ctype [25] => calendar [26] => bz2 [27] => bcmath [28] => zlib [29] => openssl [30] => apache2handler [31] => gd [32] => ldap ) Totally different! I don't get it.... Anyone have any ideas? Thanks! -Ed -- View this message in context: http://www.nabble.com/php-mapscript-set-up-tf3023338.html#a8413780 Sent from the Mapserver - User mailing list archive at Nabble.com. From warmerdam at POBOX.COM Wed Jan 17 10:53:00 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 17 Jan 2007 13:53:00 -0500 Subject: Problem with raster layer In-Reply-To: <20070117162602.78033.qmail@web60411.mail.yahoo.com> Message-ID: Cristhiano Vasconcellos wrote: > Hi everybody! > Could someone help me! > > Mapserver is not rendering the raster layer, the others are OK. I?ve > tried several ways to resolve this, but nothing. > The file sint_123.png is associated with sint_123.wld (georreference). > > The sint_123.wld is like this: > > 30 > 0.0000000000 > 0.0000000000 > -30 > -54.126061 > -29.600353 > > > > The mapfile is like this: > > MAP > NAME "ufsm" > EXTENT -57.643316 -33.751583 -49.691142 -27.080114 Cristhiano, Note that your world file indicates a pixel size of 30 degrees by 30 degrees, so your map extent is covered by a fraction of the first pixel. If you mean the pixels to be 30 meters by 30 meters you could try replacing 30 and -30 with 0.00027 and -0.00027 and see if it is roughly right. But you should likely review exactly where you think this raster file is in the world. 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 | President OSGeo, http://osgeo.org From ezenaide at GMAIL.COM Wed Jan 17 11:21:34 2007 From: ezenaide at GMAIL.COM (Eduardo Zenaide) Date: Wed, 17 Jan 2007 17:21:34 -0200 Subject: legend In-Reply-To: <7af310f80701111011w24fafeb7y3792580bc8e9e8c4@mail.gmail.com> Message-ID: ok, closing the thread i'm posting the solution i've made for non-embedded legend for GMap based applications. nothing new, it's all based on GMapDrawKeyMap().: this goes on inc.php file (as gmap75.inc.php): function GMapDrawLegend(){ GLOBAL $gpoMap; GLOBAL $gAppletImgFmt, $gImagesFmt; $img = $gpoMap->drawLegend(); $url = $img->saveWebImage($gImagesFmt, 0, 0, -1); printf("Legend:

"); } and it goes on template file (as gmap75.phtml): hope someone use it :) well, i'm using... -- Eduardo Zenaide -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Wed Jan 17 13:26:43 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 17 Jan 2007 15:26:43 -0600 Subject: Multi-feature query In-Reply-To: <45A7A4A3.4020208@storm.ca> Message-ID: Hi Mark: Typically when I've run into something like this I stick with the standard templates but have them produce javascript code instead. Something like: in species_header.html: Seems to work ok. I don't know if it's more elegent, but it might be a bit easier to understand? Same technique can be used to build, for example, JSON objects... Steve >>> Mark Westenberger 1/12/2007 9:09:23 AM >>> Hello all. Brand new shiny user here and just got Mapserver running on Fedora and have a query, er, query. I have several shapefile layers, each of which may have multiple features at the identical lat/lon. Each feature only has an ID (or Key) as an attribute within the dbf while the remaining attributes are maintained in other files. Upon a query, all the features from a unique layer need to contribute their attributes to a collective computation with the result of that being presented to the browser. In essence, a "Venn diagram" of their attributes. So I've digested the Template issue in the Layer's Class, conceptually seeking a capability to do something like: TEMPLATE "http://mymachine/crunch_stuff.cgi?... but see that the template doesn't behave like that. After a bit of experimentation, I invented my own an HTML tag and have things structured as per the following extracts, which essentially is a Mapserver wrapper to do that cgi above. The invented tag is only seen momentarily by the wrapper. Each time the wrapper has collected a command in SHELL_ESCAPE, it runs it, whose purpose is to chew through the feature keys, collect attributes, crunch them, and send HTML chatter back to the browser. When complete, the command looks like: "./species.cgi key1 key2 key3 key4 key5 [etc]" What I don't yet know is whether there exists a more elegant, "Mapserver-ish" solution to this and seek suggestions. Here are the extracts: ============my.map============== <...snip> LAYER NAME Species TYPE POINT DATA species STATUS ON TOLERANCE 5 # 5 pixels CLASS <...snip...> TEMPLATE "templates/species.html" END HEADER "templates/species_header.html" FOOTER "templates/species_footer.html" METADATA <...snip...> END END <...snip> =====species_header.html with the invented " =============mapserv.cgi=========== #!/bin/sh ./mapserv | while read INPUT; do # set a latch when we see the "`; then # we found the closing tag BUILDING_SHELLCMD=n # Now strip the command of those tags SHELL_ESCAPE=`echo $SHELL_CMD | sed 's//\1/'` # and run ./$SHELL_ESCAPE" ./$SHELL_ESCAPE # and reinit SHELL_CMD= fi else # Otherwise just dump output through to browser echo $INPUT fi done From Steve.Lime at DNR.STATE.MN.US Wed Jan 17 13:29:57 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 17 Jan 2007 15:29:57 -0600 Subject: broken query In-Reply-To: <45A7A700.4070002@al.umces.edu> Message-ID: Hi John, so in the busted app you see the []'s in the output? If that's the case then there's likely a mismatch between tag and attribute names. The names are case sensitive, that is you access attribute FOO through the tag [FOO]. Let me know if that doesn't help and I'll try to help more. Steve >>> "John B. Churchill" 1/12/2007 9:19:28 AM >>> I'm still working on modifying the basic ITASCA DEMO. I got some queries to work in one application (returns data from the dbf table) but they aren't working correctly in another (returns a table that looks like the static template file without any data). In both I have followed these steps: 1. Created Templates in the "templates" folder named after the layer and with the appropriate fields in square brackets []. 2. put a statement in the MAP file at the end of the layer block that refer to the html file in step 1 like so ... TEMPLATE "templates/anti_bnd.html" Are there other steps that I need to follow. If so I must have done them in the first case but forgot about them in the 2nd case. Any help on this is appreciated. J.B. -- --------------------------------------------- John B. Churchill, M.S. http://alx.al.umces.edu/~jchurch/ GIS Specialist (301) 689-7109 University of Maryland Center for Environmental Science Appalachian Laboratory http://www.al.umces.edu/ Environmental Science Education http://alese.al.umces.edu/ 301 Braddock Road Frostburg, MD 21532 FAX - (301) 689-7200 From James.Leveille at MTQ.GOUV.QC.CA Wed Jan 17 14:26:24 2007 From: James.Leveille at MTQ.GOUV.QC.CA (=?iso-8859-1?Q?L=E9veill=E9=2C_James?=) Date: Wed, 17 Jan 2007 17:26:24 -0500 Subject: Single symbol on a LINE Message-ID: Hi, How do I place a single symbol on every linear element of my layer - anywhere on the element or on the centre of the element ??? Thanks a lot === LAYER NAME "xx" STATUS ON DUMP TRUE EXTENT 1 2 3 4 MAXSCALE 5000000 MINSCALE 1 TYPE LINE DATA "xx/yy" CLASS STYLE SYMBOL "zzz" SIZE 15 COLOR 0 0 0 END END END __________________________________________ James L?veill? Int?lec G?omatique 420, boul. Charest Est Bureau 400 Qu?bec (QC), Canada G1K 8M4 Int?lec G?omatique: 418.687.5000 MTQ: 418.380.2005 (#227) -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Wed Jan 17 15:33:00 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 17 Jan 2007 18:33:00 -0500 Subject: Can I reproject WMS service using cgi parameters? In-Reply-To: A<45AE1C32.7020002@maplecroft.net> Message-ID: Mark - The WMS specification requires that a request SRS be specified by "id" rather than described parametrically. If you are in control of both the client and server systems, you can simply edit your EPSG file to create your own private ID and definition for your projection. The spec requires that your SRS belong to either the EPSG, NONE or AUTO classes, so you can't create a new SRS type - you'll just want to create your own "EPSG" entry. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Mark de Blois Sent: Wednesday, January 17, 2007 7:53 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Can I reproject WMS service using cgi parameters? Hi all, I am struggling trying to get a local WMS mapservice (local one with data in EPSG:4326) to be reprojected on the fly into a projection for which no EPSG code exists (Winkel Triple). But I am not sure whether this is possible (since there is not EPSG code for Winkel Triple I cannot add a WMS_SRS in the layer properties). What I am trying to do is add onto the url for the map request: "proj=wintri&ellps=WGS84&lat_1=50&units=meters&BBox=-16000000,-10000000, 16000000,10000000" The result is the map in EPSG:4326 projection though zoomed out greatly. After changing the bounding box to -180,-90,180,90 I get my 'normal' lat/lon map though not in the projection I wish. Could someonelet me know if what I am trying is possible at all? Thanks ahead! cheers, Mark From friendvn2000 at YAHOO.COM Wed Jan 17 20:00:07 2007 From: friendvn2000 at YAHOO.COM (Jedi Knight) Date: Wed, 17 Jan 2007 22:00:07 -0600 Subject: Display name of polygon in MySQL database in RIGHT position ? Message-ID: I have just done myself. Follow the instruction here :D http://www.forumsig.org/showthread.php?p=27884 Thank all! From tomas.novotny at TMAPY.CZ Wed Jan 17 22:23:00 2007 From: tomas.novotny at TMAPY.CZ (Tomas Novotny) Date: Thu, 18 Jan 2007 07:23:00 +0100 Subject: Can I reproject WMS service using cgi parameters? Message-ID: Hi, I think WMS spec gives a chance to define SRS by public URL of file with definition of SRS. I don't know if MapServer supports this. Tomas -- Tomas Novotny, tomas.novotny at tmapy.cz T-MAPY spol. s r.o., Nezvalova 850, 500 03 Hradec Kralove, Czech Republic, phone: + 420 49 5513335 , fax + 420 49 5513371 From Kristian.Thy at ATKINSGLOBAL.COM Thu Jan 18 00:01:21 2007 From: Kristian.Thy at ATKINSGLOBAL.COM (Thy, Kristian) Date: Thu, 18 Jan 2007 09:01:21 +0100 Subject: Can I reproject WMS service using cgi parameters? In-Reply-To: A<45AF1244.9060809@tmapy.cz> Message-ID: It does, specify SRS=EPSG:4326 (or whatever SRS you like) in the URL and make sure the EPSG code is advertised in the map file's METADATA section under the "wms_srs" entry. Kristian > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Tomas Novotny > Sent: 18. januar 2007 07:23 > To: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] Can I reproject WMS > service using cgi parameters? > > Hi, > > I think WMS spec gives a chance to define SRS by public URL > of file with > definition of SRS. I don't know if MapServer supports this. > > Tomas > > -- > Tomas Novotny, tomas.novotny at tmapy.cz > T-MAPY spol. s r.o., Nezvalova 850, 500 03 Hradec Kralove, > Czech Republic, phone: + 420 49 5513335 , fax + 420 49 5513371 > > > This message has been scanned for viruses by MailControl - > (see http://bluepages.wsatkins.co.uk/?4318150) > This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. Consider the environment. Please don't print this e-mail unless you really need to. From tomas.novotny at TMAPY.CZ Thu Jan 18 00:23:47 2007 From: tomas.novotny at TMAPY.CZ (Tomas Novotny) Date: Thu, 18 Jan 2007 09:23:47 +0100 Subject: Can I reproject WMS service using cgi parameters? In-Reply-To: Message-ID: An HTML attachment was scrubbed... URL: From frodewj at GMAIL.COM Thu Jan 18 00:25:14 2007 From: frodewj at GMAIL.COM (=?UTF-8?Q?Frode_Wiseth_J=C3=B8rgensen?=) Date: Thu, 18 Jan 2007 00:25:14 -0800 Subject: Partial labels in mapserver/mapfile Message-ID: Hi! Is it possible to label objects (in mapfile) from a shape-file, by using only part of an attribute, or may be manipulate the attribute? E.g: - Only the first two letters of av word - Round numbers (as labeling a numberfield with decimals in a dbf-file, would force decimals even if the current attribute has decimals or not) Thanks FrodeWJ -- View this message in context: http://www.nabble.com/Partial-labels-in-mapserver-mapfile-tf3032846.html#a8426644 Sent from the Mapserver - User mailing list archive at Nabble.com. From aude.allain.ext at MAPPY.COM Thu Jan 18 00:51:54 2007 From: aude.allain.ext at MAPPY.COM (Aude Allain) Date: Thu, 18 Jan 2007 09:51:54 +0100 Subject: Mapscript 4.10/Oracle Spatial : GetShape and drawQuery problems Message-ID: Hello, Since I have installed the ms4w package, version 2.2.1, to have a compiled mapscript dll which supports oracle spatial, I have some problems with class methods. I use: - ms4w : php/mapscript_4.10.dll, php 5.2, Apache 2.2 - Oracle Database 9.2 - Oracle Client 10g 1. GetFeature I have posted a message, without response to date, about the getFeature function. When I use it, I get the following error : Fatal error: Call to undefined function getFeature(). I use it because getShape() is deprecated. And if I get shapeObj with getShape function I always get a null object. My code : $layer = $map->GetLayerByName ($tab_layers[$i]); $selectedObj = @$layer->queryByPoint($geoClic, MS_MULTIPLE, 1); $nbSelectedObj = $layer->getNumResults(); if ($nbSelectedObj == 0) { continue ; } $layer->open(); $tabAttName = $layer->getItems(); $nbAttL = count($tabAttName); for ( $j=0 ; $j<$nbSelectedObj ; $j++) { $object = $layer->getResult ($j); if ( $object == null ) echo "
objet NULL "; //$shapeObj = $layer->getFeature($object->shapeindex); $layer->getShape($object->tileindex,$object->shapeindex); ... In each class of my mapfile, there is the line TEMPLATE "ttt_query.html". 2. queryByAttributes I call this function to get the object which has the 'ID' field and has the value '10400300001265' $res = $layer->queryByAttributes'ID', 'ID=10400300001265', MS_MULTIPLE); This call works, it permits to select the object in the layer because $layer->getNumResults() return 1. Then, I want to display the result so I execute the DrawQuery function on my map Object. And the returned imageObj is always null. Could you help me ? Aude -------------- next part -------------- An HTML attachment was scrubbed... URL: From luca.casagrande at GMAIL.COM Thu Jan 18 01:06:57 2007 From: luca.casagrande at GMAIL.COM (Luca Casagrande) Date: Thu, 18 Jan 2007 10:06:57 +0100 Subject: Raster EXTENT on the fly Message-ID: Hi to all! I have a php app that display a list with some rasters; the user select on of them and then submit the form to show it. Using mapscript, I can add the layer section to the mapfile used as template, but i can't found a way to set the EXTENT. Is there any way for doing this? Thanks Luca -- Join the world's largest wifi conunity! http://en.fon.com/ LINUX User #411601 GENTOO-GIS Development Team jabber: casagrande at jabber.linux.it From bartvde at OSGIS.NL Thu Jan 18 01:08:50 2007 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Thu, 18 Jan 2007 10:08:50 +0100 Subject: Raster EXTENT on the fly Message-ID: Ofcourse there is :-) : $oMap->setExtent($minx, $miny, $maxx, $maxy); Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Luca Casagrande Naar: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] Raster EXTENT on the fly Datum: 18/01/07 07:08 > Hi to all! > > I have a php app that display a list with some rasters; the user select on of them and then submit the form to show it. > Using mapscript, I can add the layer section to the mapfile used as template, but i can't found a way to set the EXTENT. > > Is there any way for doing this? > > Thanks > Luca > > -- > Join the world's largest wifi conunity! http://en.fon.com/ > > LINUX User #411601 > GENTOO-GIS Development Team > jabber: casagrande at jabber.linux.it > > > > From luca.casagrande at GMAIL.COM Thu Jan 18 01:18:08 2007 From: luca.casagrande at GMAIL.COM (Luca Casagrande) Date: Thu, 18 Jan 2007 10:18:08 +0100 Subject: Raster EXTENT on the fly In-Reply-To: <2baf8e575a3b34209ce05c0b61274515@145.50.39.11> Message-ID: Thanks for your answer! The matter is that i am trying to found have to set $minx.$miny,$maxx,$maxy reading the raster. I think that the only solution is to use gdalinfo and parse the output, but i don't know if this it's ok inside a php script. What do you think about? Thanks Luca On Thu, 18 Jan 2007 10:08:50 +0100 "Bart van den Eijnden (OSGIS)" wrote: > Ofcourse there is :-) : > > $oMap->setExtent($minx, $miny, $maxx, $maxy); > > Best regards, > Bart > --------- Oorspronkelijk bericht -------- > Van: Luca Casagrande > Naar: MAPSERVER-USERS at LISTS.UMN.EDU > Onderwerp: [UMN_MAPSERVER-USERS] Raster EXTENT on the fly > Datum: 18/01/07 07:08 > > > Hi to all! > > > > I have a php app that display a list with some rasters; the user select on > of them and then submit the form to show it. > > Using mapscript, I can add the layer section to the mapfile used as > template, but i can't found a way to set the EXTENT. > > > > Is there any way for doing this? > > > > Thanks > > Luca -- Join the world's largest wifi conunity! http://en.fon.com/ LINUX User #411601 GENTOO-GIS Development Team jabber: casagrande at jabber.linux.it From bartvde at OSGIS.NL Thu Jan 18 01:24:59 2007 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Thu, 18 Jan 2007 10:24:59 +0100 Subject: Raster EXTENT on the fly Message-ID: Okay, I did not get that from your first e-mail. A LayerObj has a getExtent method which you can try. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Luca Casagrande Naar: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] Raster EXTENT on the fly Datum: 18/01/07 07:19 > Thanks for your answer! > > The matter is that i am trying to found have to set $minx.$miny,$maxx,$maxy reading the > raster. I think that the only solution is to use gdalinfo and parse the output, but i don't > know if this it's ok inside a php script. > > What do you think about? > > Thanks > Luca > > On Thu, 18 Jan 2007 10:08:50 +0100 > "Bart van den Eijnden (OSGIS)" <bartvde at osgis.nl> wrote: > > > Ofcourse there is :-) : > > > > $oMap->setExtent($minx, $miny, $maxx, $maxy); > > > > Best regards, > > Bart > > > --------- Oorspronkelijk bericht -------- > > Van: Luca Casagrande <luca.casagrande at GMAIL.COM> > > Naar: MAPSERVER-USERS at LISTS.UMN.EDU <MAPSERVER-USERS at LISTS.UMN.EDU> > > Onderwerp: [UMN_MAPSERVER-USERS] Raster EXTENT on the fly > > Datum: 18/01/07 07:08 > > > > > Hi to all! > > > > > > I have a php app that display a list with some rasters; the user select on > > of them and then submit the form to show it. > > > Using mapscript, I can add the layer section to the mapfile used as > > template, but i can't found a way to set the EXTENT. > > > > > > Is there any way for doing this? > > > > > > Thanks > > > Luca > > > > -- > Join the world's largest wifi conunity! http://en.fon.com/ > > LINUX User #411601 > GENTOO-GIS Development Team > jabber: casagrande at jabber.linux.it > > > > From b.canessa at IOL.IT Thu Jan 18 04:06:40 2007 From: b.canessa at IOL.IT (Bruno Canessa) Date: Thu, 18 Jan 2007 13:06:40 +0100 Subject: problem with WMS TIME support and PostGIS Message-ID: Hi all, I have a problem with WMS with TIME support and Postgis. Inilially I created a map file where layers access direct to files, and it works fine. I mean, the web service is able to process the TIME parameter: LAYER NAME "Anomalie" GROUP "Anomalie" TYPE RASTER STATUS ON METADATA "queryable" "true" "tile_source" "nocache" "wms_title" "Anomalie" "wms_timeextent" "2006-05-01/2006-10-31" "wms_timeitem" "datetime" "wms_timedefault" "2006-05-10" "wms_srs" "EPSG:4326" END TILEINDEX "epluie_a_idx.shp" TILEITEM "Location" CLASSITEM "[pixel]" CLASS (......) END END On the contrary, if I try to access through Postgis it seems that the TIME parameter is not recognised, it always shows the last image of the index list. LAYER NAME "anomalie_idx" STATUS ON TYPE POLYGON DATA "wkb_geometry from tileindex_table" METADATA "wms_title" "ANOMALIE INDEX" "wms_srs" "EPSG:4326" "wms_timeextent" "2006-05-01/2006-10-31" "wms_timeitem" "datetime" #column in postgis table of type date "wms_timedefault" "2006-05-10" "tile_source" "nocache" END CONNECTION "dbname=test user=xxx host=localhost port=5432" CONNECTIONTYPE postgis END LAYER NAME "Anomalie" GROUP "Anomalie" TYPE RASTER STATUS ON DEBUG ON PROJECTION "init=epsg:4326" END METADATA "queryable" "true" "tile_source" "nocache" "wms_title" "Anomalie" "wms_timeextent" "2006-05-01/2006-10-31" "wms_timeitem" "datetime" "wms_timedefault" "2006-05-10" "wms_srs" "EPSG:4326" END TILEINDEX "anomalie_idx" TILEITEM "Location" CLASSITEM "[pixel]" CLASS (...) END END I tried to perform queries in PostgreSQL such as SELECT * FROM tileindex_table WHERE date_trunc('day', datetime) = '2006-10-10'; and it works fine. I use mapserver 4.8.4, PostgreSQL 8.1.4 and PostGIS 1.1.3 Any suggestion? Thanks, Bruno. -------- Dott. Bruno Canessa National Research Council - Institute of Biometeorology (CNR-IBIMET) Via G.Caproni, 8 50145 Firenze (Italy) Tel. +39 055 3033719 Fax +39 055 308910 E-mail: b.canessa at iol.it From woodbri at SWOODBRIDGE.COM Thu Jan 18 06:26:50 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 18 Jan 2007 09:26:50 -0500 Subject: Partial labels in mapserver/mapfile In-Reply-To: <8426644.post@talk.nabble.com> Message-ID: Frode Wiseth J?rgensen wrote: > Hi! > > Is it possible to label objects (in mapfile) from a shape-file, by using > only part of an attribute, or may be manipulate the attribute? > > E.g: > - Only the first two letters of av word > - Round numbers (as labeling a numberfield with decimals in a dbf-file, > would force decimals even if the current attribute has decimals or not) > > > Thanks > FrodeWJ > No, I believe your best bet is to write a script that adds a new column to the shapefile and populates it with the value that you want to use for labeling. You can join multiple fields together, but I don't think you can take a substring of a field. You can write the script in mapscript. I don't have any examples handy, but you should be able to pull some from the list archive or ask the list. -Steve W. From siki at AGT.BME.HU Thu Jan 18 10:46:57 2007 From: siki at AGT.BME.HU (Siki Zoltan) Date: Thu, 18 Jan 2007 17:46:57 -0100 Subject: Raster EXTENT on the fly {Scanned} In-Reply-To: <20070118101808.3aea0cf5@gekomachine.casa> Message-ID: Hi, Did you try layer's getExtent? -- from phpmapscript documentation rectObj getExtent() Returns the layer's data extents. If the layer's EXTENT member is set then this value is used, otherwise this call opens/closes the layer to read the extents. This is quick on shapefiles, but can be an expensive operation on some file formats or data sources. This function is safe to use on both opened or closed layers: it is not necessary to call open()/close() before/after calling it. On Thu, 18 Jan 2007, Luca Casagrande wrote: > Thanks for your answer! > > The matter is that i am trying to found have to set $minx.$miny,$maxx,$maxy reading the > raster. I think that the only solution is to use gdalinfo and parse the output, but i don't > know if this it's ok inside a php script. > > What do you think about? > > Thanks > Luca > > On Thu, 18 Jan 2007 10:08:50 +0100 > "Bart van den Eijnden (OSGIS)" wrote: > > > Ofcourse there is :-) : > > > > $oMap->setExtent($minx, $miny, $maxx, $maxy); > > > > Best regards, > > Bart > > > --------- Oorspronkelijk bericht -------- > > Van: Luca Casagrande > > Naar: MAPSERVER-USERS at LISTS.UMN.EDU > > Onderwerp: [UMN_MAPSERVER-USERS] Raster EXTENT on the fly > > Datum: 18/01/07 07:08 > > > > > Hi to all! > > > > > > I have a php app that display a list with some rasters; the user select on > > of them and then submit the form to show it. > > > Using mapscript, I can add the layer section to the mapfile used as > > template, but i can't found a way to set the EXTENT. > > > > > > Is there any way for doing this? > > > > > > Thanks > > > Luca > > > > From david.bitner at GMAIL.COM Thu Jan 18 07:51:52 2007 From: david.bitner at GMAIL.COM (David William Bitner) Date: Thu, 18 Jan 2007 09:51:52 -0600 Subject: problem with WMS TIME support and PostGIS In-Reply-To: <45AF62D0.5010402@iol.it> Message-ID: Bruno -- You'll need to upgrade to MapServer 4.10 for PostGIS + WMST. http://mapserver.gis.umn.edu/docs/howto/wms_time_support/#example-of-wms-t-with-postgis-tile-index-for-raster-imagery David On 1/18/07, Bruno Canessa wrote: > > Hi all, > > I have a problem with WMS with TIME support and Postgis. > Inilially I created a map file where layers access direct to files, and > it works fine. I mean, the web service is able to process the TIME > parameter: > > LAYER > NAME "Anomalie" > GROUP "Anomalie" > TYPE RASTER > STATUS ON > METADATA > "queryable" "true" > "tile_source" "nocache" > "wms_title" "Anomalie" > "wms_timeextent" "2006-05-01/2006-10-31" > "wms_timeitem" "datetime" > "wms_timedefault" "2006-05-10" > "wms_srs" "EPSG:4326" > END > TILEINDEX "epluie_a_idx.shp" > TILEITEM "Location" > CLASSITEM "[pixel]" > CLASS > (......) > END > END > > On the contrary, if I try to access through Postgis it seems that the > TIME parameter is not recognised, it always shows the last image of the > index list. > > LAYER > NAME "anomalie_idx" > STATUS ON > TYPE POLYGON > DATA "wkb_geometry from tileindex_table" > METADATA > "wms_title" "ANOMALIE INDEX" > "wms_srs" "EPSG:4326" > "wms_timeextent" "2006-05-01/2006-10-31" > "wms_timeitem" "datetime" #column in postgis table of type date > "wms_timedefault" "2006-05-10" > "tile_source" "nocache" > END > CONNECTION "dbname=test user=xxx host=localhost port=5432" > CONNECTIONTYPE postgis > END > > LAYER > NAME "Anomalie" > GROUP "Anomalie" > TYPE RASTER > STATUS ON > DEBUG ON > PROJECTION > "init=epsg:4326" > END > METADATA > "queryable" "true" > "tile_source" "nocache" > "wms_title" "Anomalie" > "wms_timeextent" "2006-05-01/2006-10-31" > "wms_timeitem" "datetime" > "wms_timedefault" "2006-05-10" > "wms_srs" "EPSG:4326" > END > TILEINDEX "anomalie_idx" > TILEITEM "Location" > CLASSITEM "[pixel]" > CLASS > (...) > END > END > > I tried to perform queries in PostgreSQL such as > SELECT * FROM tileindex_table WHERE date_trunc('day', datetime) = > '2006-10-10'; > and it works fine. > > I use mapserver 4.8.4, PostgreSQL 8.1.4 and PostGIS 1.1.3 > > Any suggestion? > > Thanks, > > Bruno. > -------- > Dott. Bruno Canessa > National Research Council - Institute of Biometeorology (CNR-IBIMET) > Via G.Caproni, 8 > 50145 Firenze (Italy) > Tel. +39 055 3033719 > Fax +39 055 308910 > E-mail: b.canessa at iol.it > > > > > -- ************************************ David William Bitner -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Thu Jan 18 08:16:55 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 18 Jan 2007 11:16:55 -0500 Subject: Can I reproject WMS service using cgi parameters? In-Reply-To: <45AF2E93.6050607@tmapy.cz> Message-ID: Tomas - I have never heard of this and cannot find a reference to it in the WMS 1.1.1 spec at http://www.opengeospatial.org/standards/wms, nor in the new 1.3 spec (not supported by MapServer). The WMS spec does not say anything about the internal details of an SRS definition, so there would be no way to know what to find inside a URL-based reference to a file defining an SRS. It is very difficult to compare SRS definitions when described parametrically; there are several ways of saying the same thing, and it?s hard to tell whether minor differences are supposed to be differences or just discrepancies. That?s why the use of SRS catalogs is so helpful ? the model of namespace:srsname makes it easy to tell whether a requested SRS is something you can understand or not. - Ed -- Ed McNierney President and Chief Mapmaker Maps a la carte, Inc. / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: (978) 251-4242 Fax: (978) 251-1396 ed at topozone.com From: Tomas Novotny Reply-To: Tomas Novotny Date: Thu, 18 Jan 2007 09:23:47 +0100 To: Subject: Re: [UMN_MAPSERVER-USERS] Can I reproject WMS service using cgi parameters? Hi, it is misunderstanding, I mean this style of SRS parameter value: "http://my.server.com/path_to_file_with_mySRS_definition" Tomas Tomas Novotny, tomas.novotny at tmapy.cz T-MAPY spol. s r.o., Nezvalova 850, 500 03 Hradec Kralove, Czech Republic, phone: + 420 49 5513335 , fax + 420 49 5513371 Thy, Kristian wrote: > > It does, specify SRS=EPSG:4326 (or whatever SRS you like) in the URL and > make sure the EPSG code is advertised in the map file's METADATA section > under the "wms_srs" entry. > > > Kristian > > > >> >> -----Original Message----- >> From: UMN MapServer Users List >> [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Tomas Novotny >> Sent: 18. januar 2007 07:23 >> To: MAPSERVER-USERS at lists.umn.edu >> Subject: Re: [UMN_MAPSERVER-USERS] Can I reproject WMS >> service using cgi parameters? >> >> Hi, >> >> I think WMS spec gives a chance to define SRS by public URL >> of file with >> definition of SRS. I don't know if MapServer supports this. >> >> Tomas >> >> -- >> Tomas Novotny, tomas.novotny at tmapy.cz >> T-MAPY spol. s r.o., Nezvalova 850, 500 03 Hradec Kralove, >> Czech Republic, phone: + 420 49 5513335 , fax + 420 49 5513371 >> >> >> This message has been scanned for viruses by MailControl - >> (see http://bluepages.wsatkins.co.uk/?4318150) >> >> >> > > > > This email and any attached files are confidential and copyright protected. If > you are not the addressee, any dissemination of this communication is strictly > prohibited. Unless otherwise expressly agreed in writing, nothing stated in > this communication shall be legally binding. > > Consider the environment. Please don't print this e-mail unless you really > need to. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ezenaide at GMAIL.COM Thu Jan 18 09:21:06 2007 From: ezenaide at GMAIL.COM (Eduardo Zenaide) Date: Thu, 18 Jan 2007 15:21:06 -0200 Subject: Query and Map reload In-Reply-To: <45AE41EA0200008F00005EAC@co5.dnr.state.mn.us> Message-ID: like search options here: http://waedenswil.mapserver.ch/stadtplan.htm 2007/1/17, Steve Lime : > > I'm not sure I follow what your after, can you expand? > > >>> Eduardo Zenaide 1/16/2007 1:52:56 PM >>> > hi, all, > > someone could give me an example of an MapServer application that is > possible to do queries (using text inputs) and the map reload based > only on > this query? > > i mean the link, or course ;) > > thanks :) > > -- > Eduardo Zenaide > -- Eduardo Zenaide -------------- next part -------------- An HTML attachment was scrubbed... URL: From dps1 at UALBERTA.CA Thu Jan 18 11:20:34 2007 From: dps1 at UALBERTA.CA (Shorthouse, David) Date: Thu, 18 Jan 2007 12:20:34 -0700 Subject: WMS tiles & artifacts Message-ID: Hello folks, I have been trying to marry MapServer with Google Map with 90% success to overlay lots of "markers", but when a point generated from a layer in the mapfile touches the edge of a tile, there's an artifact in the shape of a horizontal black line. I have seen this before in other implementations & this artifact is usually the same color as that expressed in CLASS COLOR for the relevant layer. This artifact doesn't appear in a native MapServer app using a template so I'm not sure what's going on here. Example: http://tinyurl.com/37loz7. I have tried playing with the transparency among other options but to no avail. I also notice that "markers" touching the vertical sides of a generated tile are often cut-off & don't spill over into the adjacent tile as they should, but there's no black line. For reference, this is an OGR connection and the mapfile as I write this is below: #Note: "---" below indicate stuff I have cleared the purposes of this posting MAP NAME Nearctic STATUS ON IMAGETYPE PNG EXTENT -142 41 -52 85 SIZE 256 256 UNITS DD SHAPEPATH "---" IMAGECOLOR 255 255 255 SYMBOLSET "---" FONTSET "---" OUTPUTFORMAT NAME PNG DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" FORMATOPTION "INTERLACE=ON" TRANSPARENT ON END PROJECTION "init=epsg:54004" END LAYER NAME spiders CONNECTIONTYPE OGR CONNECTION ' ODBC:--- --- wkbPoint WGS84 ' DATA SpiderData STATUS DEFAULT TYPE POINT DUMP TRUE FILTERITEM --- FILTER "%---%" PROJECTION "init=epsg:4326" END CLASS NAME "< 1900" EXPRESSION ([Year] < 1900) COLOR 0 0 0 OUTLINECOLOR 34 139 34 SYMBOL "circle" SIZE 8 END CLASS NAME "1900 - 1920" EXPRESSION ([Year] >= 1900 and [Year] < 1920) COLOR 0 0 0 OUTLINECOLOR 0 255 0 SYMBOL "circle" SIZE 8 END CLASS NAME "1920 - 1940" EXPRESSION ([Year] >= 1920 and [Year] < 1940) COLOR 0 0 0 OUTLINECOLOR 154 205 50 SYMBOL "circle" SIZE 8 END CLASS NAME "1940 - 1960" EXPRESSION ([Year] >= 1940 and [Year] < 1960) COLOR 0 0 0 OUTLINECOLOR 255 255 0 SYMBOL "circle" SIZE 8 END CLASS NAME "1960 - 1980" EXPRESSION ([Year] >= 1960 and [Year] < 1980) COLOR 0 0 0 OUTLINECOLOR 255 165 0 SYMBOL "circle" SIZE 8 END CLASS NAME "1980 - 2000" EXPRESSION ([Year] >= 1980 and [Year] < 2000) COLOR 0 0 0 OUTLINECOLOR 255 0 0 SYMBOL "circle" SIZE 8 END CLASS NAME "> 2000" EXPRESSION ([Year] >= 2000 and [Year] ne 9999) COLOR 0 0 0 OUTLINECOLOR 178 34 34 SYMBOL "circle" SIZE 8 END CLASS NAME "No date" EXPRESSION ([Year] = 9999) COLOR 0 0 0 OUTLINECOLOR 201 201 201 SYMBOL "circle" SIZE 8 END END END Thanks for any ideas, David P. Shorthouse ------------------------------------------------------ Department of Biological Sciences CW-403, Biological Sciences Centre University of Alberta Edmonton, AB T6G 2E9 mailto:dps1 at ualberta.ca http://canadianarachnology.webhop.net http://arachnidforum.webhop.net ------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From miroslav.sulc at STARTNET.CZ Thu Jan 18 13:47:10 2007 From: miroslav.sulc at STARTNET.CZ (=?ISO-8859-2?Q?Miroslav_=A9ulc?=) Date: Thu, 18 Jan 2007 22:47:10 +0100 Subject: do java-mapscript tests work? Message-ID: Hi, I have problems running java mapscript tests. Am I doing something wrong or the tests do not work? Here is the output: $ make test javac -classpath ./:examples/:./mapscript.jar -d examples/ examples/ConnPool.java examples/DrawMap.java examples/DumpShp.java examples/MakePoint.java examples/QueryByAttribute.java examples/ShapeInfo.java examples/WxSTest.java examples/Metadata.java examples/RunTimeBuiltWMSClient.java javac -encoding iso-8859-15 -classpath ./:examples/:./mapscript.jar -d examples/ examples/QueryByAttributeUnicode.java java -classpath ./:examples/:./mapscript.jar -Djava.library.path=. DumpShp ../../tests/point.shp Shapefile opened (type = point with 1 shapes). Shape[0] has 1 part(s) bounds (0.0,51.477222)(0.0,51.477222) Part[0] has 1 point(s) Point[0] = 0.0, 51.477222 java -classpath ./:examples/:./mapscript.jar -Djava.library.path=. ShapeInfo ../../tests/point.shp ../../tests/point.dbf Shapefile name = ../../tests/point.shp Type = point Number of features 1 bounds (0.0,51.477222)(0.0,51.477222) java -classpath ./:examples/:./mapscript.jar -Djava.library.path=. DrawMap ../../tests/test.map ./map.png 0) the map will be drawn to:./map.png java -classpath ./:examples/:./mapscript.jar -Djava.library.path=. ConnPool Running mapscript.msConnPoolCloseUnreferenced Finished. java -classpath ./:examples/:./mapscript.jar -Djava.library.path=. QueryByAttribute ../../tests/test.map Searched for: A Point Results number (should be always 1): 1 java -classpath ./:examples/:./mapscript.jar -Djava.library.path=. WxSTest ../../tests/test.map fatal flex scanner internal error--end of buffer missed Exception in thread "Thread-98" java.lang.UnknownError: msLoadMap(): at edu.umn.gis.mapscript.mapscriptJNI.new_mapObj(Native Method) at edu.umn.gis.mapscript.mapObj.(mapObj.java:276) at WxSTest_thread.run(WxSTest.java:11) Exception in thread "Thread-99" make: *** [test] Error 2 $ make threadtests javac -cp ./mapscript.jar -d tests/threadtest/ tests/threadtest/*.java ------------------------------------------------------------------------- You can use your own map! Copy the following command in your shell and change the file to the map file (the last argument) ------------------------------------------------------------------------- java -Djava.library.path=./ -cp tests/threadtest/:./mapscript.jar MapTest -t 10 -i 5 ../../tests/test.map Thread 0 running... Thread 1 running... Thread 2 running... Thread 3 running... Thread 4 running... Thread 5 running... Thread 6 running... Thread 7 running... Thread 8 running... Thread 9 running... fatal flex scanner internal error--end of buffer missed Exception in thread "Thread-2" java.lang.UnknownError: getString(): Symbol definition error. Duplicate item (FONTSET):(line 10) make: *** [threadtests] Error 2 -- Miroslav ?ulc From Kristian.Thy at ATKINSGLOBAL.COM Thu Jan 18 16:08:55 2007 From: Kristian.Thy at ATKINSGLOBAL.COM (Thy, Kristian) Date: Fri, 19 Jan 2007 01:08:55 +0100 Subject: WMS tiles & artifacts Message-ID: From: Shorthouse, David > Hello folks, > > I have been trying to marry MapServer with Google Map with 90% success > to overlay lots of "markers", but when a point generated from a layer in the > mapfile touches the edge of a tile, there's an artifact in the shape of a > horizontal black line. Looks like a manifestation of bug #1861 (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1861) except it bleeds to the right, not left like my example. I can see your map has negative X; maybe it bleeds towards the zero meridian? Anyway, I never got around to uploading the data for my bug report - perhaps you can add something useful? best regards, Kristian This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. Consider the environment. Please don't print this e-mail unless you really need to. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ljfong at SDF.LONESTAR.ORG Thu Jan 18 16:28:49 2007 From: ljfong at SDF.LONESTAR.ORG (Hong) Date: Thu, 18 Jan 2007 17:28:49 -0700 Subject: MapScript C# Memory Corruption Problem (MapServer 4.10) Message-ID: Hi, I recently tried building MapServer 4.10 from the build kit (mapserver-buildkit-011607.zip) using MS Visual Studio 2005 SP1. The build was successful but during regular operation, there would be memory corruption that happened sporadically (randomly when calling draw() function of mapObj). The message was: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. The following DLLs were produced and used: - bgd.dll (from separately downloaded gdwin32 package) - libmap.dll (with manifest attached through 'mt') - mapscript.dll (with manifest attached through 'mt') - mapscript_csharp.dll This problem did not happen with MapServer 4.8.4 buildkit (mapserver-4.8.3-msvc71-build-kit.zip) built using MS Visual Studio 2003. The 4.8.4 binaries had been running in .NET 2.0 environment without any problem. I can use any suggestion/help here. Thanks. Surya From fsimon at UNIVALI.BR Thu Jan 18 17:04:15 2007 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Thu, 18 Jan 2007 23:04:15 -0200 Subject: Mapscript 4.10/Oracle Spatial : GetShape and drawQuery problems In-Reply-To: <2ABF75C13655594FA29F6C6C52FCA21F020A1E18@chicago.mappy.priv> Message-ID: Hi Aude, Sorry for the delay to reply your message. I'm out from the lab and can't test here, I will go back to the lab just after the day 24 of January. About the error, the map (just draw from database) is working? Another query function is working? I didn't found any reference to a GetFeature function the the PHPMapscript reference (http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/referencemanual-all-pages), maybe the best way is the GetShape. Did you already tried with -1 as tileindex parameter for getshape? About the question #2, the object did you selected is inside of the actual extent of the map when you draw the map? Another thing that can be relate with the both problem is the size of your ID column, can you try with a type that is small than 14 digits, like 5 digits? Some problems was reported between the size of some columns and the shapeindex (the place where the UNIQUE will be stored). Can you try with a column with less digits? When I go back to the lab I will test, I can't test here and look more deep in the maporaclespatial code. Best regards from Brazil. ------------------------------------------- Fernando Simon UMN Mapserver and Oracle Spatial developer ------------------------------------------- Citando Aude Allain : > > > Hello, > > > > Since I have installed the ms4w package, version 2.2.1, to have a > compiled mapscript dll which supports oracle spatial, I have some > problems with class methods. > > > > I use: > > - ms4w : php/mapscript_4.10.dll, php 5.2, Apache 2.2 > > - Oracle Database 9.2 > > - Oracle Client 10g > > > > 1. GetFeature > > > > I have posted a message, without response to date, about the > getFeature > function. When I use it, I get the following error : Fatal error: > Call > to undefined function getFeature(). I use it because getShape() is > deprecated. And if I get shapeObj with getShape function I always > get a > null object. > > > > My code : > > > > $layer = $map->GetLayerByName > ($tab_layers[$i]); > > $selectedObj = > @$layer->queryByPoint($geoClic, > MS_MULTIPLE, 1); > > $nbSelectedObj = > $layer->getNumResults(); > > > > if ($nbSelectedObj == 0) > > { > > continue ; > > } > > > > $layer->open(); > > $tabAttName = $layer->getItems(); > > $nbAttL = > count($tabAttName); > > > > for ( $j=0 ; $j<$nbSelectedObj ; $j++) > > { > > $object = > $layer->getResult ($j); > > if ( $object == null ) echo > "
objet NULL "; > > > > //$shapeObj = > $layer->getFeature($object->shapeindex); > > > $layer->getShape($object->tileindex,$object->shapeindex); > > > > ... > > > > In each class of my mapfile, there is the line TEMPLATE > "ttt_query.html". > > > > > > > > 2. queryByAttributes > > > > I call this function to get the object which has the 'ID' field and > has > the value '10400300001265' > > $res = $layer->queryByAttributes'ID', 'ID=10400300001265', > MS_MULTIPLE); > > > > This call works, it permits to select the object in the layer > because > $layer->getNumResults() return 1. > > > > Then, I want to display the result so I execute the DrawQuery > function > on my map Object. And the returned imageObj is always null. > > > > Could you help me ? > > > > > > > > > > > > Aude > > > > > > > > > > > > > > ------------------------------------------------- Univali - Webmail - http://webmail.univali.br From noreply at GEOCARTIC.COM Thu Jan 18 21:47:43 2007 From: noreply at GEOCARTIC.COM (Tim Schaub) Date: Thu, 18 Jan 2007 22:47:43 -0700 Subject: WMS tiles & artifacts In-Reply-To: Message-ID: >> I have been trying to marry MapServer with Google Map with 90% success >> to overlay lots of "markers", but when a point generated from a layer in the >> mapfile touches the edge of a tile, there's an artifact in the shape of a >> horizontal black line. > >Looks like a manifestation of bug #1861 >(http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1861) > This looks like a duplicate of bug #1719 to me (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1719) I included all the data necessary to reproduce the problem there. It is closed and marked as wontfix - because it's a problem with GD instead of MapServer. If you want to use a tiled map interface and get around these tile edge artifacts, you can choose from two existing solutions. Ka-Map gets around this problem by trimming off the edge of metatiles (http://ka-map.maptools.org/). Or you can use OpenLayers (which can overlay other layers on top of Google tiles) and grab the code from my "gutters" sandbox. A working example that trims tile "gutters" is here: http://dev.openlayers.org/sandbox/tschaub/gutter/examples/gutter.html (This handles more tile edge artifacts than just the bleeding filled symbol problem.) Tim From mikesaunt at GMAIL.COM Fri Jan 19 00:28:57 2007 From: mikesaunt at GMAIL.COM (Mike Saunt) Date: Fri, 19 Jan 2007 08:28:57 +0000 Subject: NOT labelling certain features Message-ID: Hi All I've got a layer of roads where the description of various roads starts "REAR OF" or "ACCESS TO". I want to be able to label all roads that DON'T start with these terms as these are insignificant roads to label. I'm a bit unsure of the Filter / Expression to achieve this. Any help appreciated! LAYER NAME MinorRoads TYPE LINE STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "astun\MINORROADS.TAB" MAXSCALE 60000 MINSCALE 10000 LABELMAXSCALE 50000 LABELITEM "DESCRIPTION" TRANSPARENCY ALPHA # so anti aliasing lines works CLASSITEM "DESCRIPTION" CLASS NAME "Streets" STYLE COLOR 192 192 192 SYMBOL 'continue' SIZE 5 ANTIALIAS TRUE END STYLE COLOR 255 255 255 SYMBOL 'continue' SIZE 3 ANTIALIAS TRUE END LABEL FONT "arial" TYPE TRUETYPE ANTIALIAS TRUE COLOR 40 40 40 OUTLINECOLOR 255 255 255 SIZE 7 POSITION AUTO PARTIALS FALSE BUFFER 4 ANGLE AUTO END END END Cheers Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From Kristian.Thy at ATKINSGLOBAL.COM Fri Jan 19 00:57:13 2007 From: Kristian.Thy at ATKINSGLOBAL.COM (Thy, Kristian) Date: Fri, 19 Jan 2007 09:57:13 +0100 Subject: WMS tiles & artifacts In-Reply-To: A<005801c73b8d$57330f20$15fea8c0@meridian> Message-ID: From: Tim Schaub > >Looks like a manifestation of bug #1861 > >(http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1861) > > > > This looks like a duplicate of bug #1719 to me > (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1719) Indeed it does, I've marked it as such. Kristian This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. Consider the environment. Please don't print this e-mail unless you really need to. From szekerest at GMAIL.COM Fri Jan 19 01:34:06 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Fri, 19 Jan 2007 10:34:06 +0100 Subject: MapScript C# Memory Corruption Problem (MapServer 4.10) In-Reply-To: <20070119002849.GA16590@SDF.LONESTAR.ORG> Message-ID: Could you provide the code sample and possibly a call stack to locate this error? Are you sure that the correct versions of the dll-s are loaded? Best Regards, Tamas Szekeres 2007/1/19, Hong : > Hi, > > I recently tried building MapServer 4.10 from the build kit > (mapserver-buildkit-011607.zip) using MS Visual Studio 2005 SP1. The build was > successful but during regular operation, there would be memory corruption that > happened sporadically (randomly when calling draw() function of mapObj). The > message was: > > Attempted to read or write protected memory. This is often an indication that > other memory is corrupt. > > The following DLLs were produced and used: > - bgd.dll (from separately downloaded gdwin32 package) > - libmap.dll (with manifest attached through 'mt') > - mapscript.dll (with manifest attached through 'mt') > - mapscript_csharp.dll > > This problem did not happen with MapServer 4.8.4 buildkit > (mapserver-4.8.3-msvc71-build-kit.zip) built using MS Visual Studio 2003. The > 4.8.4 binaries had been running in .NET 2.0 environment without any problem. > > I can use any suggestion/help here. > > Thanks. > > Surya > From woodbri at SWOODBRIDGE.COM Fri Jan 19 04:38:39 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 19 Jan 2007 07:38:39 -0500 Subject: NOT labelling certain features In-Reply-To: <5a9686e80701190028v2050e13bt7b647d798ac43093@mail.gmail.com> Message-ID: Mike, Try adding the following to your mapfile. You may have to tweak the regex a little. -Steve W. Mike Saunt wrote: > Hi All > > I've got a layer of roads where the description of various roads starts > "REAR OF" or "ACCESS TO". I want to be able to label all roads that > DON'T start with these terms as these are insignificant roads to label. > I'm a bit unsure of the Filter / Expression to achieve this. > > Any help appreciated! > > LAYER > NAME MinorRoads > TYPE LINE > STATUS DEFAULT > CONNECTIONTYPE OGR > CONNECTION "astun\MINORROADS.TAB" > MAXSCALE 60000 > MINSCALE 10000 > LABELMAXSCALE 50000 > LABELITEM "DESCRIPTION" > TRANSPARENCY ALPHA # so anti aliasing lines works > CLASSITEM "DESCRIPTION" CLASS NAME "Noop" EXPRESSION /^(REAR OF|ACCESS TO)/ # catch them here and do nothing with them END > CLASS > NAME "Streets" > STYLE > COLOR 192 192 192 > SYMBOL 'continue' > SIZE 5 > ANTIALIAS TRUE > END > STYLE > COLOR 255 255 255 > SYMBOL 'continue' > SIZE 3 > ANTIALIAS TRUE > END > LABEL > FONT "arial" > TYPE TRUETYPE > ANTIALIAS TRUE > COLOR 40 40 40 > OUTLINECOLOR 255 255 255 > SIZE 7 > POSITION AUTO > PARTIALS FALSE > BUFFER 4 > ANGLE AUTO > END > END > END > > Cheers > Mike > > From woodbri at SWOODBRIDGE.COM Fri Jan 19 04:45:26 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 19 Jan 2007 07:45:26 -0500 Subject: NOT labelling certain features In-Reply-To: <45B0BBCF.1060001@swoodbridge.com> Message-ID: One more thing if you want to draw the objects but not label them then add the STYLE sections to the new CLASS but don't add the LABEL sections. -Steve W. Stephen Woodbridge wrote: > Mike, > > Try adding the following to your mapfile. You may have to tweak the > regex a little. > > -Steve W. > > Mike Saunt wrote: >> Hi All >> >> I've got a layer of roads where the description of various roads >> starts "REAR OF" or "ACCESS TO". I want to be able to label all >> roads that DON'T start with these terms as these are insignificant >> roads to label. I'm a bit unsure of the Filter / Expression to >> achieve this. >> Any help appreciated! >> >> LAYER >> NAME MinorRoads >> TYPE LINE >> STATUS DEFAULT >> CONNECTIONTYPE OGR >> CONNECTION "astun\MINORROADS.TAB" >> MAXSCALE 60000 >> MINSCALE 10000 >> LABELMAXSCALE 50000 >> LABELITEM "DESCRIPTION" >> TRANSPARENCY ALPHA # so anti aliasing lines works >> CLASSITEM "DESCRIPTION" > CLASS > NAME "Noop" > EXPRESSION /^(REAR OF|ACCESS TO)/ > # catch them here and do nothing with them > END >> CLASS >> NAME "Streets" >> STYLE >> COLOR 192 192 192 >> SYMBOL 'continue' >> SIZE 5 >> ANTIALIAS TRUE >> END >> STYLE >> COLOR 255 255 255 >> SYMBOL 'continue' >> SIZE 3 >> ANTIALIAS TRUE >> END >> LABEL >> FONT "arial" >> TYPE TRUETYPE >> ANTIALIAS TRUE >> COLOR 40 40 40 >> OUTLINECOLOR 255 255 255 >> SIZE 7 >> POSITION AUTO >> PARTIALS FALSE >> BUFFER 4 >> ANGLE AUTO >> END >> END >> END >> >> Cheers >> Mike >> >> From mikesaunt at GMAIL.COM Fri Jan 19 05:21:37 2007 From: mikesaunt at GMAIL.COM (Mike Saunt) Date: Fri, 19 Jan 2007 13:21:37 +0000 Subject: NOT labelling certain features In-Reply-To: <45B0BD66.8030909@swoodbridge.com> Message-ID: Thanks Stephen For anyones reference the complete Layer Definition would now be: LAYER NAME MinorRoads TYPE LINE STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "astun\MINORROADS.TAB" MAXSCALE 60000 MINSCALE 10000 LABELMAXSCALE 50000 LABELITEM "DESCRIPTION" TRANSPARENCY ALPHA # anti aliasing lines CLASSITEM "DESCRIPTION" CLASS NAME "StreetLabels" EXPRESSION /^(REAR OF|ACCESS)/ STYLE COLOR 192 192 192 SYMBOL 'continue' SIZE 5 ANTIALIAS TRUE END STYLE COLOR 255 255 255 SYMBOL 'continue' SIZE 3 ANTIALIAS TRUE END END CLASS NAME "StreetLabels" STYLE COLOR 192 192 192 SYMBOL 'continue' SIZE 5 ANTIALIAS TRUE END STYLE COLOR 255 255 255 SYMBOL 'continue' SIZE 3 ANTIALIAS TRUE END LABEL FONT "arial" TYPE TRUETYPE ANTIALIAS TRUE COLOR 40 40 40 OUTLINECOLOR 255 255 255 SIZE 7 POSITION AUTO PARTIALS FALSE BUFFER 4 ANGLE AUTO END END END On 19/01/07, Stephen Woodbridge wrote: > > One more thing if you want to draw the objects but not label them then > add the STYLE sections to the new CLASS but don't add the LABEL sections. > > -Steve W. > > Stephen Woodbridge wrote: > > Mike, > > > > Try adding the following to your mapfile. You may have to tweak the > > regex a little. > > > > -Steve W. > > > > Mike Saunt wrote: > >> Hi All > >> > >> I've got a layer of roads where the description of various roads > >> starts "REAR OF" or "ACCESS TO". I want to be able to label all > >> roads that DON'T start with these terms as these are insignificant > >> roads to label. I'm a bit unsure of the Filter / Expression to > >> achieve this. > >> Any help appreciated! > >> > >> LAYER > >> NAME MinorRoads > >> TYPE LINE > >> STATUS DEFAULT > >> CONNECTIONTYPE OGR > >> CONNECTION "astun\MINORROADS.TAB" > >> MAXSCALE 60000 > >> MINSCALE 10000 > >> LABELMAXSCALE 50000 > >> LABELITEM "DESCRIPTION" > >> TRANSPARENCY ALPHA # so anti aliasing lines works > >> CLASSITEM "DESCRIPTION" > > CLASS > > NAME "Noop" > > EXPRESSION /^(REAR OF|ACCESS TO)/ > > # catch them here and do nothing with them > > END > >> CLASS > >> NAME "Streets" > >> STYLE > >> COLOR 192 192 192 > >> SYMBOL 'continue' > >> SIZE 5 > >> ANTIALIAS TRUE > >> END > >> STYLE > >> COLOR 255 255 255 > >> SYMBOL 'continue' > >> SIZE 3 > >> ANTIALIAS TRUE > >> END > >> LABEL > >> FONT "arial" > >> TYPE TRUETYPE > >> ANTIALIAS TRUE > >> COLOR 40 40 40 > >> OUTLINECOLOR 255 255 255 > >> SIZE 7 > >> POSITION AUTO > >> PARTIALS FALSE > >> BUFFER 4 > >> ANGLE AUTO > >> END > >> END > >> END > >> > >> Cheers > >> Mike > >> > >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From luca.casagrande at GMAIL.COM Fri Jan 19 08:08:30 2007 From: luca.casagrande at GMAIL.COM (Luca Casagrande) Date: Fri, 19 Jan 2007 17:08:30 +0100 Subject: Mapscript and changes in the mapfile Message-ID: Hi to all! I use mapscript just to add a certain layer in a mapfile. Those are the lines: $layer = ms_newLayerObj($map); $layer->set('name', "voronoi"); $layer->set('status', MS_DEFAULT ); $layer->set('connection', $output[0]); $layer->set('type', MS_LAYER_POLYGON); $layer->set('transparency',"64"); $layer->set('connectiontype',MS_OGR); $class = ms_newClassObj($layer); $style = ms_newStyleObj($class); $style=$class->getStyle(0); $style->color->setRGB(102,228,73); $style->outlinecolor->setRGB(0,0,0); If i save the modified mapfile, all seem fine except that i see those lines in my web section: [..] QUERYFORMAT text/html LEGENDFORMAT text/html BROWSEFORMAT text/html [..] They weren't in the original mapfile and if i don't comment them, shp2img stops with this error: loadWeb(): Unknown identifier. Parsing error near (LEGENDFORMAT):(line 112)
Thanks for your help Luca -- Join the world's largest wifi conunity! http://en.fon.com/ LINUX User #411601 GENTOO-GIS Development Team jabber: casagrande at jabber.linux.it From aude.allain.ext at MAPPY.COM Fri Jan 19 08:30:37 2007 From: aude.allain.ext at MAPPY.COM (Aude Allain) Date: Fri, 19 Jan 2007 17:30:37 +0100 Subject: Mapscript 4.10/Oracle Spatial : GetShape and drawQuery problems Message-ID: Hello, GetFeature/GetShape : -------------------- I found the GetFeature function on this page : http://mapserver.gis.umn.edu/docs/reference/mapscript/index_html. The tileindex of the objects are always equal at -1. So, when I call GetShape, the tileindex is always -1. queryByAttributes/DrawQuery: ---------------------------- I don't understand when you say "the object did you selected is inside of the actual extent of the map when you draw the map?" . For me, the extent of the map which is displayed on the page has no link with my query. I just get the ID of the object to select in a text box, then I create a new mapobject, on which I execute the queryByAttributes function with the ID. Then, if I execute the drawquery function, the map extent must be automatically recalculated. I tried to select the objects with an other field which contains 1 digit. I get the same result : the Image map is null but I have the selected objects the layer ($layer->getNumResults()). If I use draw instead of drawquery, the image map is not null but all the geomteries are yellow, it's the HILITE color defined in the mapfile. It's strange, isn't it ? But if I can't use fields with less than 14 digits because soon I will have ID of 17 digits... Thanks of your help, aude -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Fernando Simon Envoy??: vendredi 19 janvier 2007 02:04 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: Re: [UMN_MAPSERVER-USERS] Mapscript 4.10/Oracle Spatial : GetShape and drawQuery problems Hi Aude, Sorry for the delay to reply your message. I'm out from the lab and can't test here, I will go back to the lab just after the day 24 of January. About the error, the map (just draw from database) is working? Another query function is working? I didn't found any reference to a GetFeature function the the PHPMapscript reference (http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/referencemanual-all-pages), maybe the best way is the GetShape. Did you already tried with -1 as tileindex parameter for getshape? About the question #2, the object did you selected is inside of the actual extent of the map when you draw the map? Another thing that can be relate with the both problem is the size of your ID column, can you try with a type that is small than 14 digits, like 5 digits? Some problems was reported between the size of some columns and the shapeindex (the place where the UNIQUE will be stored). Can you try with a column with less digits? When I go back to the lab I will test, I can't test here and look more deep in the maporaclespatial code. Best regards from Brazil. ------------------------------------------- Fernando Simon UMN Mapserver and Oracle Spatial developer ------------------------------------------- Citando Aude Allain : > > > Hello, > > > > Since I have installed the ms4w package, version 2.2.1, to have a > compiled mapscript dll which supports oracle spatial, I have some > problems with class methods. > > > > I use: > > - ms4w : php/mapscript_4.10.dll, php 5.2, Apache 2.2 > > - Oracle Database 9.2 > > - Oracle Client 10g > > > > 1. GetFeature > > > > I have posted a message, without response to date, about the > getFeature > function. When I use it, I get the following error : Fatal error: > Call > to undefined function getFeature(). I use it because getShape() is > deprecated. And if I get shapeObj with getShape function I always > get a > null object. > > > > My code : > > > > $layer = $map->GetLayerByName > ($tab_layers[$i]); > > $selectedObj = > @$layer->queryByPoint($geoClic, > MS_MULTIPLE, 1); > > $nbSelectedObj = > $layer->getNumResults(); > > > > if ($nbSelectedObj == 0) > > { > > continue ; > > } > > > > $layer->open(); > > $tabAttName = $layer->getItems(); > > $nbAttL = > count($tabAttName); > > > > for ( $j=0 ; $j<$nbSelectedObj ; $j++) > > { > > $object = > $layer->getResult ($j); > > if ( $object == null ) echo > "
objet NULL "; > > > > //$shapeObj = > $layer->getFeature($object->shapeindex); > > > $layer->getShape($object->tileindex,$object->shapeindex); > > > > ... > > > > In each class of my mapfile, there is the line TEMPLATE > "ttt_query.html". > > > > > > > > 2. queryByAttributes > > > > I call this function to get the object which has the 'ID' field and > has > the value '10400300001265' > > $res = $layer->queryByAttributes'ID', 'ID=10400300001265', > MS_MULTIPLE); > > > > This call works, it permits to select the object in the layer > because > $layer->getNumResults() return 1. > > > > Then, I want to display the result so I execute the DrawQuery > function > on my map Object. And the returned imageObj is always null. > > > > Could you help me ? > > > > > > > > > > > > Aude > > > > > > > > > > > > > > ------------------------------------------------- Univali - Webmail - http://webmail.univali.br From Steve.Lime at DNR.STATE.MN.US Fri Jan 19 08:50:19 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 19 Jan 2007 10:50:19 -0600 Subject: Mapscript and changes in the mapfile In-Reply-To: <20070119170830.03676c73@gekomachine.casa> Message-ID: Is it possible there is a version mis-match between mapscript and shp2img? Perhaps shp2img is old? Steve >>> Luca Casagrande 1/19/2007 10:08:30 AM >>> Hi to all! I use mapscript just to add a certain layer in a mapfile. Those are the lines: $layer = ms_newLayerObj($map); $layer->set('name', "voronoi"); $layer->set('status', MS_DEFAULT ); $layer->set('connection', $output[0]); $layer->set('type', MS_LAYER_POLYGON); $layer->set('transparency',"64"); $layer->set('connectiontype',MS_OGR); $class = ms_newClassObj($layer); $style = ms_newStyleObj($class); $style=$class->getStyle(0); $style->color->setRGB(102,228,73); $style->outlinecolor->setRGB(0,0,0); If i save the modified mapfile, all seem fine except that i see those lines in my web section: [..] QUERYFORMAT text/html LEGENDFORMAT text/html BROWSEFORMAT text/html [..] They weren't in the original mapfile and if i don't comment them, shp2img stops with this error: loadWeb(): Unknown identifier. Parsing error near (LEGENDFORMAT):(line 112)
Thanks for your help Luca -- Join the world's largest wifi conunity! http://en.fon.com/ LINUX User #411601 GENTOO-GIS Development Team jabber: casagrande at jabber.linux.it From ezenaide at GMAIL.COM Fri Jan 19 10:06:26 2007 From: ezenaide at GMAIL.COM (Eduardo Zenaide) Date: Fri, 19 Jan 2007 16:06:26 -0200 Subject: Query and Map reload In-Reply-To: <7af310f80701180921v2da05aa3ud5f673f2ba9260f3@mail.gmail.com> Message-ID: Steve, to be more especific, i'm using javascript to do queries. so i'm trying to convert on variables some mapserver parameters to build the map based on the query. so far i have these: var layer = document.pesquisa.layersList.value; //html comboBox to select layer var item = document.pesquisa.busca.value; //html input value var operador = document.pesquisa.operadores.value; //another comboBox for operators and now the big problem. the next variable is based on html inputs i generate through $gpoMap->extent->minx, for example. but it will return the last map extension, not the one based on the query. var minx = "minx=" + window.opener.document.myform.var_minx.value + "&"; so, what i want is how to know the extension (minx, miny...) from the query. how to know the extension the query will return before the user submit? thanks -- Eduardo Zenaide -------------- next part -------------- An HTML attachment was scrubbed... URL: From ara.t.howard at NOAA.GOV Fri Jan 19 10:48:21 2007 From: ara.t.howard at NOAA.GOV (Ara T Howard) Date: Fri, 19 Jan 2007 11:48:21 -0700 Subject: mod_php and mapscript Message-ID: we're using mod_php with the php mapscript bindings. initially we had problems because the binding assume a cgi/transient environment and thought we'd solved it be relaying the environment. now, however, i'm experiencing random crashes of the entire httpd server with maplet that looks like this loadparams(); ms_ioinstallstdouttobuffer(); $oMap = ms_newMapobj("./index.map"); $oMap->owsdispatch($request); $contenttype = ms_iostripstdoutbuffercontenttype(); header("Content-Type: $contenttype"); ms_iogetStdoutBufferBytes(); ms_ioresethandlers(); ?> now, when httpd crashes it crashes big: no error messages or anything and no response from server whatsoever. considering mod_php is a persistant environment i'd assume this is memory corruption/lack of resource cleanup. are there any obivous things i might try to force clean-up and/or re-initialize the mapscript library on each request? any other suggestions? btw. running the above cgi via mod_php succeeds only about 70% of the time. running if from the command-line (forcing weblike environment) works 100% of the time. i'm in the process of testing normal cgi mode. regards. -a -- we can deny everything, except that we have the possibility of being better. simply reflect on that. - the dalai lama From kbehncke at IGF.UNI-OSNABRUECK.DE Fri Jan 19 12:08:36 2007 From: kbehncke at IGF.UNI-OSNABRUECK.DE (Kai Behncke) Date: Fri, 19 Jan 2007 21:08:36 +0100 Subject: Question to GetCapabilities-Parameter Message-ID: Hello list, I have produced a WMS with MapServer. If I send the GetCapabilites-Request I get in the response for example that line: What does UserLayer, UserStyle and RemoteWFS stand for? I don`t find anything about that in the WMS Implementation Specification. Does anybody know? Thank you very much. Kai -- Dipl.-Geogr. Dipl.-Umweltwiss. Kai Behncke Institut f?r Geoinformatik und Fernerkundung (IGF) Universit?t Osnabr?ck Kolpingstr. 7 49074 Osnabr?ck Raum: 01/308 Tel.: +49 541 969-4450 E-Mail: mailto:kbehncke at igf.uni-osnabrueck.de Web: http://www.igf.uni-osnabrueck.de From Tom.Kralidis at EC.GC.CA Fri Jan 19 14:17:23 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Fri, 19 Jan 2007 17:17:23 -0500 Subject: Question to GetCapabilities-Parameter Message-ID: > Hello list, > I have produced a WMS with MapServer. > If I send the GetCapabilites-Request I get in the response > for example that line: > > RemoteWFS="0"/> > > What does UserLayer, UserStyle and RemoteWFS stand for? > I don`t find anything about that in the WMS Implementation > Specification. Here's a snippet of what these mean. This info is not in the OGC:WMS specification, but the OGC:SLD specification (section 6.7 from https://portal.opengeospatial.org/files/?artifact_id=1188): SupportSLD (0 | 1) "0" UserLayer (0 | 1) "0" UserStyle (0 | 1) "0" RemoteWFS (0 | 1) "0" RemoteWCS (0 | 1) "0"> From mhwang4 at UIUC.EDU Fri Jan 19 15:45:00 2007 From: mhwang4 at UIUC.EDU (myunghwa Hwang) Date: Fri, 19 Jan 2007 17:45:00 -0600 Subject: [dbox] problem in dbox resizing Message-ID: Hello, list! I'm trying to make dbox resizable. For that, I assigned ids to several components which should have fixed sizes, then I added a function for recalculating and assigning the dbox size: function adjustMapsize() { // test just width adjustment var leftcol_table = document.getElementById("leftcol_table"); var tools_table = document.getElementById("tools_table"); var move_button = document.getElementById("move_button"); var scale_table = document.getElementById("scale_table"); var coords_div = document.getElementById("coords_div"); var measure_div = document.getElementById("measure_div"); var measure_toggle = document.getElementById("measure_toggle"); var new_width = document.body.offsetWidth - (leftcol_table.offsetWidth + tools_table.offsetWidth + move_button.offsetWidth*2); var new_height = document.body.offsetHeight - (scale_table.offsetHeight + move_button.offsetHeight*3 + coords_div.offsetHeight + measure_div.offsetHeight + measure_toggle.offsetHeight + document.getElementById ("ms_url").offsetHeight); var anchor = document.getElementById("main"); main.width = anchor.width = new_width; main.height = anchor.height = new_height; main.anchor = xGetElementById("main"); ms.width = new_width; ms.height = new_height; } Then, I added this function to onload and onresize event of window: window.onresize = function() { // resize map image adjustMapsize(); xResizeTo(main.container, main.width, main.height); main.sync(); xResizeTo(main.image, main.width, main.height); xMoveTo(main.image, 0, 0); xShow(main.image); xResizeTo(main.canvas, main.width, main.height); xMoveTo(main.canvas, 0, 0); xClip(main.canvas, 0, main.width, main.height, 0); xShow(main.canvas); ms.draw(); reference.sync(); container.sync(); } window.onload = function() { // resize map image adjustMapsize(); main.initialize(); reference.initialize(); container.initialize(); domouseclick('zoomin'); // legend setup var legend_xml = get_content(config.dlegend_xml_executable + "? map=" + config.mapfile + "&server=" + config.dlegend_server); legend.initialize("legend_container", legend_xml); legend.setHandler(DLEGEND_CLICK, ms.setLayer); ms.setLayer('ortho', true); legend.changeNodeStatus('ortho', true); ms.draw(); } My problem is that this solution works when I try to reduce the size of window, but whenever I tried to increase the window size the size of something on the top of dbox (which consists of container, image, canvas, and something else) does not change, so I get white extra space on the right and bottom side of dbox. How can I solve this problem? Maybe someone already asked this problem, if so please let me know which post I should check. I hope my explanation of the problem will be understood well. from Myunghwa Hwang From iansgis at GMAIL.COM Fri Jan 19 16:00:44 2007 From: iansgis at GMAIL.COM (Ian) Date: Fri, 19 Jan 2007 16:00:44 -0800 Subject: Raster not displaying correctly Message-ID: Hello all, I'm having trouble getting a raster to draw correctly. I've worked with elevation rasters in MapServer before, and can't for the life of me figure out what's going on (which means it's likely something minor or obvious that I'm missing). Gdalinfo for the raster is as follows: Driver: HFA/Erdas Imagine Images (.img) Size is 80, 69 Coordinate System is: GEOGCS["WGS_1984", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.2572235629972], TOWGS84[0,0,0,0,0,0,0]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433]] Origin = (-120.025000,35.975000) Pixel Size = (0.05000000,-0.05000000) Corner Coordinates: Upper Left (-120.0250000, 35.9750000) (120d 1'30.00"W, 35d58'30.00"N) Lower Left (-120.0250000, 32.5250000) (120d 1'30.00"W, 32d31'30.00"N) Upper Right (-116.0250000, 35.9750000) (116d 1'30.00"W, 35d58'30.00"N) Lower Right (-116.0250000, 32.5250000) (116d 1'30.00"W, 32d31'30.00"N) Center (-118.0250000, 34.2500000) (118d 1'30.00"W, 34d15'0.00"N) Band 1 Block=64x64 Type=Float32, ColorInterp=Undefined Description = Band_1 Min=0.001 Max=5.075 Minimum=0.001, Maximum=5.075, Mean=0.090, StdDev=0.263 Metadata: STATISTICS_MINIMUM=0.0011299999896437 STATISTICS_MAXIMUM=5.0749998092651 STATISTICS_MEAN=0.090484300081334 STATISTICS_MEDIAN=0.060400001704693 STATISTICS_MODE=0.016850000247359 STATISTICS_STDDEV=0.263437971404 LAYER_TYPE=athematic The following simple layer draws a black box (which I've read may be a data source/extent issue): LAYER NAME shear TYPE RASTER DATA /strainMap/shear/shear2.img STATUS DEFAULT PROJECTION "proj=latlong" "ellps=WGS84" "datum=WGS84" END END ## Layer What am I missing? Thank you! Ian -------------- next part -------------- An HTML attachment was scrubbed... URL: From kbehncke at IGF.UNI-OSNABRUECK.DE Fri Jan 19 16:25:55 2007 From: kbehncke at IGF.UNI-OSNABRUECK.DE (Kai Behncke) Date: Sat, 20 Jan 2007 01:25:55 +0100 Subject: Required/Optional Parameters of a GetMap-Request Message-ID: Hello list, I work a bit with different GetMap-Requests. For example I try out: http://www2.dmsolutions.ca/cgi-bin/mswms_world?SERVICE=WMS&VERSION=1.1.1&Request=GetMap&Layers=WorldGen_Outline& ....and I get a map without any problems. What I don`t understand: In the WMS Implementation Specification (page 33) it is written, that for example parameters like width, height, format, bounding_box, srs are required (and not optional). In my GetMap-Request I have not set them. Why do I anymay get a map? Best Regards, Kai -- Dipl.-Geogr. Dipl.-Umweltwiss. Kai Behncke Institut f?r Geoinformatik und Fernerkundung (IGF) Universit?t Osnabr?ck Kolpingstr. 7 49074 Osnabr?ck Raum: 01/308 Tel.: +49 541 969-4450 E-Mail: mailto:kbehncke at igf.uni-osnabrueck.de Web: http://www.igf.uni-osnabrueck.de From ljfong at SDF.LONESTAR.ORG Fri Jan 19 17:03:53 2007 From: ljfong at SDF.LONESTAR.ORG (Hong) Date: Fri, 19 Jan 2007 18:03:53 -0700 Subject: MapScript C# Memory Corruption Problem (MapServer 4.10) In-Reply-To: Message-ID: Hi Tamas, I have created a skeleton application that can show the map and the user can "refresh", "zoom in", or "zoom out" on the map. The map draws without problem on "refresh", but it will crash with either the memory corruption message or the SDE connection exception randomly. Typically the crash occurs after the 3rd or 4th call to zoomPoint() followed by draw() subroutine. The SDE connection exception is: msDrawMap(): Image handling error. Failed to draw layer named 'District'; msSDELayerOpen(): SDE error. SE_Version_get_info(): Bad connection handle. (-92) All the layers in the map file are SDE layers accessed using ArcSDE 9.1 libraries. I am sure that the correct versions of the dlls are loaded as the problem disappears after I switch back to the old 4.8.4 dlls. I also verified the dependencies using dependency walker to show the paths. As for the call stack, this is what I got after the protected memory error: [AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.] System.Diagnostics.StackTrace.GetStackFramesInternal(StackFrameHelper sfh, Int32 iSkip, Exception e) +0 System.Diagnostics.StackTrace.CaptureStackTrace(Int32 iSkip, Boolean fNeedFileInfo, Thread targetThread, Exception e) +49 System.Diagnostics.StackTrace..ctor(Exception e, Boolean fNeedFileInfo) +32 System.Web.UnhandledErrorFormatter.get_ColoredSquare2Content() +579 System.Web.UnhandledErrorFormatter.PrepareFormatter() +42 System.Web.ErrorFormatter.GetHtmlErrorMessage(Boolean dontShowSensitiveInfo) +51 System.Web.HttpResponse.WriteErrorMessage(Exception e, Boolean dontShowSensitiveErrors) +787 System.Web.HttpResponse.ReportRuntimeError(Exception e, Boolean canThrow, Boolean localExecute) +478 System.Web.HttpRuntime.FinishRequest(HttpWorkerRequest wr, HttpContext context, Exception e) +541 I am sending testpage.aspx, testpage.aspx.vb for the sample app and Odessa.map for the mapfile I used directly to your email account. Thanks. Hong On Fri, Jan 19, 2007 at 10:34:06AM +0100, Tamas Szekeres wrote: > Could you provide the code sample and possibly a call stack to locate > this error? > Are you sure that the correct versions of the dll-s are loaded? > > Best Regards, > > Tamas Szekeres > > > 2007/1/19, Hong : > >Hi, > > > >I recently tried building MapServer 4.10 from the build kit > >(mapserver-buildkit-011607.zip) using MS Visual Studio 2005 SP1. The build > >was > >successful but during regular operation, there would be memory corruption > >that > >happened sporadically (randomly when calling draw() function of mapObj). > >The > >message was: > > > >Attempted to read or write protected memory. This is often an indication > >that > >other memory is corrupt. > > > >The following DLLs were produced and used: > >- bgd.dll (from separately downloaded gdwin32 package) > >- libmap.dll (with manifest attached through 'mt') > >- mapscript.dll (with manifest attached through 'mt') > >- mapscript_csharp.dll > > > >This problem did not happen with MapServer 4.8.4 buildkit > >(mapserver-4.8.3-msvc71-build-kit.zip) built using MS Visual Studio 2003. > >The > >4.8.4 binaries had been running in .NET 2.0 environment without any > >problem. > > > >I can use any suggestion/help here. > > > >Thanks. > > > >Surya > > From ed at TOPOZONE.COM Fri Jan 19 18:48:53 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 19 Jan 2007 21:48:53 -0500 Subject: Raster not displaying correctly In-Reply-To: A<5b61c6c50701191600tbb67311n468e82f08217eac2@mail.gmail.com> Message-ID: Ian - Can you post the entire MAP file, not just that layer, and the URL you use to generate the map? The extent of the requested map, specified by either the EXTENT in the MAP file or on the URL, needs to overlap the extent of your layer. We can see what the extents of the layer are, but you haven't told us the extents of the requested map. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ian Sent: Friday, January 19, 2007 7:01 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Raster not displaying correctly Hello all, I'm having trouble getting a raster to draw correctly. I've worked with elevation rasters in MapServer before, and can't for the life of me figure out what's going on (which means it's likely something minor or obvious that I'm missing). Gdalinfo for the raster is as follows: Driver: HFA/Erdas Imagine Images (.img) Size is 80, 69 Coordinate System is: GEOGCS["WGS_1984", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.2572235629972 ], TOWGS84[0,0,0,0,0,0,0]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433]] Origin = (-120.025000,35.975000) Pixel Size = (0.05000000,-0.05000000) Corner Coordinates: Upper Left (-120.0250000, 35.9750000) (120d 1'30.00"W, 35d58'30.00"N) Lower Left (-120.0250000, 32.5250000) (120d 1'30.00"W, 32d31'30.00"N) Upper Right (-116.0250000, 35.9750000 ) (116d 1'30.00"W, 35d58'30.00"N) Lower Right (-116.0250000, 32.5250000) (116d 1'30.00"W, 32d31'30.00"N) Center (-118.0250000, 34.2500000) (118d 1'30.00"W, 34d15' 0.00"N) Band 1 Block=64x64 Type=Float32, ColorInterp=Undefined Description = Band_1 Min=0.001 Max=5.075 Minimum=0.001, Maximum=5.075, Mean=0.090, StdDev=0.263 Metadata: STATISTICS_MINIMUM=0.0011299999896437 STATISTICS_MAXIMUM=5.0749998092651 STATISTICS_MEAN=0.090484300081334 STATISTICS_MEDIAN=0.060400001704693 STATISTICS_MODE=0.016850000247359 STATISTICS_STDDEV=0.263437971404 LAYER_TYPE=athematic The following simple layer draws a black box (which I've read may be a data source/extent issue): LAYER NAME shear TYPE RASTER DATA /strainMap/shear/shear2.img STATUS DEFAULT PROJECTION "proj=latlong" "ellps=WGS84" "datum=WGS84" END END ## Layer What am I missing? Thank you! Ian -------------- next part -------------- An HTML attachment was scrubbed... URL: From mitchelljj98 at GMAIL.COM Sat Jan 20 05:39:36 2007 From: mitchelljj98 at GMAIL.COM (John Mitchell) Date: Sat, 20 Jan 2007 08:39:36 -0500 Subject: MapServer contains some memory leaks whereby running it in FastCGI mode In-Reply-To: <6.2.3.4.2.20070116100155.02d5f008@hobu.mail.iastate.edu> Message-ID: Howard, I can't disclose the below mentioned product. A few months ago I was told that we were going to use this product for rapid display of Raster mosaic imagery, and I started to look for alternatives when I did not get customer support in a timely fashion. I asked the Community Mapbuilder's developers list for alternatives and MapServer was one of the possibilities suggested. In my testing of MapServer so far I have been very impressed with it's flexibility and performance, but the memory leak issue is the only thing that concerns me at this point. I have not been able to replicate the memory leak problem, but I wanted to know if any other users have experienced this problem, and if their is a plan to fix this problem. I use open source for all my other applications so it makes sense to stick with MapServer. Why they are not willing to contribute their fixes back to the software? I don't know other than to speculate that they want to be able to justify their high price by their software's uniqueness. John On 1/16/07, Howard Butler wrote: > > John, > > Which product is xyzGeoServer and why aren't they willing to > contribute their fixes back to the software? > > Howard > > At 12:17 PM 1/15/2007, John Mitchell wrote: > >------=_Part_39643_12109009.1168885022370 > >Content-Type: text/plain; charset=ISO-8859-1; format=flowed > >Content-Transfer-Encoding: 7bit > >Content-Disposition: inline > > > >Hi, > > > >Below is a comment from a developer of a GeoServer product that runs on > top > >of MapServer, which I will call xyzGeoServer > > > >The open source MapServer contains some memory leaks whereby running it > in > >FastCGI mode will eventually cause issues, however in the xyzGeoServer > >release it handles properly. > > > >Does the above statement have any truth to it or has recent upgrades to > >MapServer fixed this issue? > > > >Thanks, > > > >-- > >John J. Mitchell > > > >------=_Part_39643_12109009.1168885022370 > >Content-Type: text/html; charset=ISO-8859-1 > >Content-Transfer-Encoding: 7bit > >Content-Disposition: inline > > > >Hi,

Below is a comment from a developer of a GeoServer > >product that runs on top of MapServer, which I will call xyz >style="color: rgb(0, 0, 0);"> >size="2">GeoServer

> >The open source > >MapServer contains some memory leaks > >whereby running it in FastCGI mode will eventually cause > >issues, however in > >the xyzGeoServer release it handles properly.

>style="color: rgb(0, 0, 0);">Does the above statement have any truth > >to it or has recent upgrades to MapServer fixed this > >issue?

Thanks,
> >

--
John J. Mitchell > > > >------=_Part_39643_12109009.1168885022370-- > > -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Sat Jan 20 07:07:17 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Sat, 20 Jan 2007 10:07:17 -0500 Subject: MapServer contains some memory leaks whereby running it in FastCGI mode In-Reply-To: A Message-ID: John - Well, that's OK, but it is not reasonable for the MapServer community to devote time to an alleged bug that the finder won't report and you can't replicate. That's not a bug, that's FUD. I can report that I use MapServer in FastCGI mode extensively without any memory leak problems I'm aware of. And I have done that over a few releases of MapServer. But like any MapServer user, there are many features I do *not* use, and it's certainly possible that there are memory leaks in those features. But making the overly-broad generalization that "running it in FastCGI mode will eventually cause issues" is incorrect and uninformative. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of John Mitchell Sent: Saturday, January 20, 2007 8:40 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer contains some memory leaks whereby running it in FastCGI mode Howard, I can't disclose the below mentioned product. A few months ago I was told that we were going to use this product for rapid display of Raster mosaic imagery, and I started to look for alternatives when I did not get customer support in a timely fashion. I asked the Community Mapbuilder's developers list for alternatives and MapServer was one of the possibilities suggested. In my testing of MapServer so far I have been very impressed with it's flexibility and performance, but the memory leak issue is the only thing that concerns me at this point. I have not been able to replicate the memory leak problem, but I wanted to know if any other users have experienced this problem, and if their is a plan to fix this problem. I use open source for all my other applications so it makes sense to stick with MapServer. Why they are not willing to contribute their fixes back to the software? I don't know other than to speculate that they want to be able to justify their high price by their software's uniqueness. John On 1/16/07, Howard Butler wrote: John, Which product is xyzGeoServer and why aren't they willing to contribute their fixes back to the software? Howard At 12:17 PM 1/15/2007, John Mitchell wrote: >------=_Part_39643_12109009.1168885022370 >Content-Type: text/plain; charset=ISO-8859-1; format=flowed >Content-Transfer-Encoding: 7bit >Content-Disposition: inline > >Hi, > >Below is a comment from a developer of a GeoServer product that runs on top >of MapServer, which I will call xyzGeoServer > >The open source MapServer contains some memory leaks whereby running it in >FastCGI mode will eventually cause issues, however in the xyzGeoServer >release it handles properly. > >Does the above statement have any truth to it or has recent upgrades to >MapServer fixed this issue? > >Thanks, > >-- >John J. Mitchell > >------=_Part_39643_12109009.1168885022370 >Content-Type: text/html; charset=ISO-8859-1 >Content-Transfer-Encoding: 7bit >Content-Disposition: inline > >Hi,

Below is a comment from a developer of a GeoServer >product that runs on top of MapServer, which I will call xyzstyle="color: rgb(0, 0, 0);">size="2">GeoServer

>The open source >MapServer contains some memory leaks >whereby running it in FastCGI mode will eventually cause >issues, however in >the xyzGeoServer release it handles properly.

style="color: rgb(0, 0, 0);">Does the above statement have any truth >to it or has recent upgrades to MapServer fixed this >issue?

Thanks,
>

--
John J. Mitchell > >------=_Part_39643_12109009.1168885022370-- -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Sat Jan 20 11:20:19 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Sat, 20 Jan 2007 14:20:19 -0500 Subject: MapServer contains some memory leaks whereby running it in FastCGI mode In-Reply-To: Message-ID: John Mitchell wrote: > Howard, > > I can't disclose the below mentioned product. A few months ago I was > told that we were going to use this product for rapid display of Raster > mosaic imagery, and I started to look for alternatives when I did not > get customer support in a timely fashion. I asked the Community > Mapbuilder's developers list for alternatives and MapServer was one of > the possibilities suggested. In my testing of MapServer so far I have > been very impressed with it's flexibility and performance, but the > memory leak issue is the only thing that concerns me at this point. I > have not been able to replicate the memory leak problem, but I wanted to > know if any other users have experienced this problem, and if their is a > plan to fix this problem. I use open source for all my other > applications so it makes sense to stick with MapServer. John, A reasonable effort has been made to avoid memory leaks in MapServer. For instance, I frequently run simple mapserver scenarios under valgrind which identifies all memory leaks in a run and for the largest part I can run such things now with no memory leaks, or only a "fixed" memory leak in a subcomponent (like libcurl). So I don't doubt there are still circumstances where mapserver has memory leaks, especially in some of the more esoteric features, but those can be corrected if they are properly reported and isolated. 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 | President OSGeo, http://osgeo.org From dmorissette at MAPGEARS.COM Sat Jan 20 10:25:57 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Sat, 20 Jan 2007 13:25:57 -0500 Subject: Required/Optional Parameters of a GetMap-Request In-Reply-To: <20070120002140.M59228@igf.uni-osnabrueck.de> Message-ID: Kai Behncke wrote: > > What I don`t understand: > In the WMS Implementation Specification (page 33) > it is written, that for example parameters like width, height, format, > bounding_box, srs are required (and not optional). > > In my GetMap-Request I have not set them. > Why do I anymay get a map? > That's because MapServer is not very strict on requiring those parameters and when they are not specified then it uses some default values from the mapfile. If you are implementing a client then you should not rely on those default values and should always provide all the 'required' parameters. Daniel -- Daniel Morissette http://www.mapgears.com/ From szekerest at GMAIL.COM Sat Jan 20 11:16:38 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Sat, 20 Jan 2007 20:16:38 +0100 Subject: MapScript C# Memory Corruption Problem (MapServer 4.10) In-Reply-To: <20070120010353.GA19397@SDF.LONESTAR.ORG> Message-ID: Hi Hong, I've looked into the code, but I've no option to set up an SDE test environmment to test it though. I consider the SDE driver is thread unsafe even if the USE_THEAD switch was definied during the compilation. Therefore I would discourage to retain the mapObj reference between the subsequent requests, especially when there are existing open connections to the database. The subsequent requests might be handled by different threads with the ASP.NET applications. Here are my further questions you should check before proceeding with the issue: 1. Make sure mapserver was compiled with USE_THEAD enabled. (Use mapserv -v to check) 2. Try not to keep the mapscript objects between the requests. Instead, you should reload the map object every time and set the required properties one by one. 3. It would be desirable if the mapscript/mapserver related dll-s was using the same CRT library. You should use a suitable utility (like the Visual Studio Depends tool) to check the CRT dependency of the libraries. Heap corruption may arise when memory segments are passed between libraries using different CRT heaps. 4. For the ASP.NET + VS80 builds the manifest containing the CRT dependency should always be embedded as a resource into mapscript.dll as described at http://mapserver.gis.umn.edu/docs/howto/mapscriptcscompile. Best Regards, Tamas 2007/1/20, Hong : > Hi Tamas, > > I have created a skeleton application that can show the map and the user can > "refresh", "zoom in", or "zoom out" on the map. The map draws without problem > on "refresh", but it will crash with either the memory corruption message or > the SDE connection exception randomly. Typically the crash occurs after the > 3rd or 4th call to zoomPoint() followed by draw() subroutine. The SDE > connection exception is: > > msDrawMap(): Image handling error. Failed to draw layer named 'District'; > msSDELayerOpen(): SDE error. SE_Version_get_info(): Bad connection handle. > (-92) > > All the layers in the map file are SDE layers accessed using ArcSDE 9.1 > libraries. > > I am sure that the correct versions of the dlls are loaded as the problem > disappears after I switch back to the old 4.8.4 dlls. I also verified the > dependencies using dependency walker to show the paths. > > As for the call stack, this is what I got after the protected memory error: > > [AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.] > System.Diagnostics.StackTrace.GetStackFramesInternal(StackFrameHelper sfh, Int32 iSkip, Exception e) +0 > System.Diagnostics.StackTrace.CaptureStackTrace(Int32 iSkip, Boolean fNeedFileInfo, Thread targetThread, Exception e) +49 > System.Diagnostics.StackTrace..ctor(Exception e, Boolean fNeedFileInfo) +32 > System.Web.UnhandledErrorFormatter.get_ColoredSquare2Content() +579 > System.Web.UnhandledErrorFormatter.PrepareFormatter() +42 > System.Web.ErrorFormatter.GetHtmlErrorMessage(Boolean dontShowSensitiveInfo) +51 > System.Web.HttpResponse.WriteErrorMessage(Exception e, Boolean dontShowSensitiveErrors) +787 > System.Web.HttpResponse.ReportRuntimeError(Exception e, Boolean canThrow, Boolean localExecute) +478 > System.Web.HttpRuntime.FinishRequest(HttpWorkerRequest wr, HttpContext context, Exception e) +541 > > > I am sending testpage.aspx, testpage.aspx.vb for the sample app and Odessa.map > for the mapfile I used directly to your email account. > > Thanks. > > Hong > > > On Fri, Jan 19, 2007 at 10:34:06AM +0100, Tamas Szekeres wrote: > > Could you provide the code sample and possibly a call stack to locate > > this error? > > Are you sure that the correct versions of the dll-s are loaded? > > > > Best Regards, > > > > Tamas Szekeres > > > > > > 2007/1/19, Hong : > > >Hi, > > > > > >I recently tried building MapServer 4.10 from the build kit > > >(mapserver-buildkit-011607.zip) using MS Visual Studio 2005 SP1. The build > > >was > > >successful but during regular operation, there would be memory corruption > > >that > > >happened sporadically (randomly when calling draw() function of mapObj). > > >The > > >message was: > > > > > >Attempted to read or write protected memory. This is often an indication > > >that > > >other memory is corrupt. > > > > > >The following DLLs were produced and used: > > >- bgd.dll (from separately downloaded gdwin32 package) > > >- libmap.dll (with manifest attached through 'mt') > > >- mapscript.dll (with manifest attached through 'mt') > > >- mapscript_csharp.dll > > > > > >This problem did not happen with MapServer 4.8.4 buildkit > > >(mapserver-4.8.3-msvc71-build-kit.zip) built using MS Visual Studio 2003. > > >The > > >4.8.4 binaries had been running in .NET 2.0 environment without any > > >problem. > > > > > >I can use any suggestion/help here. > > > > > >Thanks. > > > > > >Surya > > > > From warmerdam at POBOX.COM Sat Jan 20 15:19:14 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Sat, 20 Jan 2007 18:19:14 -0500 Subject: Raster not displaying correctly In-Reply-To: <5b61c6c50701191600tbb67311n468e82f08217eac2@mail.gmail.com> Message-ID: Ian wrote: > Metadata: > STATISTICS_MINIMUM=0.0011299999896437 > STATISTICS_MAXIMUM=5.0749998092651 > STATISTICS_MEAN=0.090484300081334 > STATISTICS_MEDIAN=0.060400001704693 > STATISTICS_MODE=0.016850000247359 > STATISTICS_STDDEV=0.263437971404 > LAYER_TYPE=athematic > > The following simple layer draws a black box (which I've read may be a > data source/extent issue): > > LAYER > NAME shear > TYPE RASTER > DATA /strainMap/shear/shear2.img > STATUS DEFAULT > PROJECTION > "proj=latlong" > "ellps=WGS84" > "datum=WGS84" > END > END ## Layer > > What am I missing? > Thank you! Ian, By default MapServer will just cast the pixel values to a byte value between 0 and 255. It looks like the largest value in your file is 5.07 which would convert to 5 which is still essentially black. I think you need to apply scaling or classification. I'd suggest reading the raster access howto for details, but briefly adding the following line to your layer should allow you to visualize things. PROCESSING "SCALE=AUTO" 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 | President OSGeo, http://osgeo.org From cyclemaniac at GMAIL.COM Sun Jan 21 11:13:31 2007 From: cyclemaniac at GMAIL.COM (dave X) Date: Sun, 21 Jan 2007 11:13:31 -0800 Subject: AW: Mapserver+Windows+ArcSDE In-Reply-To: Message-ID: I have a similar problem, my SDE connection works fine and mapserver renders layers ok, but after some time it consistently times-out or something. The error I get is as follows: msDrawMap(): Image handling error. Failed to draw layer named 'tdmryn_oparea'.;msSDELayerOpen(): SDE error. SE_version_get_info(): Network I/O error. (-10) I restart IIS and everything is fine again. Any help would be appreciated. > >We are trying to use mapserver on Windows in connection with ArcSDE. > >So far rather unsuccessfully, we keep getting an error message like > >"sde connection Network I/O error. (-10)" I have a more precise Error message now: "msDrawMap(): Image handling error. Failed to draw layer named 'DKM'. msSDELayerOpen(): SDE error. SE_connection_create(): Operation Failed. (-1) CONNECT: errno = 0 " -- View this message in context: http://www.nabble.com/Mapserver%2BWindows%2BArcSDE-tf2502108.html#a8478068 Sent from the Mapserver - User mailing list archive at Nabble.com. From mitchelljj98 at GMAIL.COM Sun Jan 21 12:50:21 2007 From: mitchelljj98 at GMAIL.COM (John Mitchell) Date: Sun, 21 Jan 2007 15:50:21 -0500 Subject: Building External Overviews Message-ID: Hi, I would like to build a pyramid of external overviews: Which is stacks of layers going from many files at the high resolution to smaller numbers of files as the resolution gets smaller(lower scale/higher actual scale number). The map file needs to have these layers appear/disappear in a mutually exclusive fashion depending on the resolution. So only one appears at any one time. Is their a formula for pyramiding as far as how the levels are spaced out, how many levels are implemented, and at what scale levels are turn on and off? Also at a certain resolution/scale what is the maximum number of files that should be opened? As an example: If you have raster data that totals 100 GB and your limit per file is 100 MB/file which equals 1000 files at the resolution of the source data. Say the limits are: 1.) 50 files open at once; Build external overviews at lower scales(higher actual number) to avoid having to open a large number of geotiff files. 2.) 100 MB/file 3.) Each overview level is 50% (x) and 50% (y) of the previous higher resolution overview. I believe that if resolution is reduced 50% by 50%, then can increase each footprint size by double for (x) and (y) dimension in order to keep the same file size. Then would adjust resolution to keep at 100 MB/file and adjust maximum zoom layer(higher number means smaller scale), so that no more than 50 files are open at any one time. Take advantage of the group feature so that multiple layers can appear as one virtual layer. Here is how I think it could be implemented: Start at the highest resolution and make the scale small enough to include 50 files, and then set the maximum scale(note this means higher scale number) for this layer at this scale. Create a new layer that is at lower resolution and a larger footprint per file such that at this scale only 12.5files display at 100 MB/file and set the minimum scale at the same value as the previous layers maximum scale. Continue adding lower resolution layers as the scale gets smaller and smaller until you get to the initial display scale. How could you derive the scale to turn on the next lower resolution level that would fit the (3) limits listed above? Thanks, -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From samnyoung at HOTMAIL.COM Sun Jan 21 14:10:01 2007 From: samnyoung at HOTMAIL.COM (Sam Young) Date: Sun, 21 Jan 2007 13:10:01 -0900 Subject: Dbox toolbar Message-ID: I am trying to remove the identify tool from the toolbar in my dbox application and I can't seem to delete the correct part of the script without ruining the rest of the Javascript. Can anyone give me any suggestions? Thanks, Sam _________________________________________________________________ The MSN Entertainment Guide to Golden Globes is here. Get all the scoop. http://tv.msn.com/tv/globes2007/?icid=nctagline2 From mikesaunt at GMAIL.COM Mon Jan 22 02:22:44 2007 From: mikesaunt at GMAIL.COM (Mike Saunt) Date: Mon, 22 Jan 2007 10:22:44 +0000 Subject: AW: Mapserver+Windows+ArcSDE In-Reply-To: <4621922.22861169436962213.JavaMail.nabble@jubjub.nabble.com> Message-ID: shail 1. remember to have the correct libmap.dll (from the shared/sde directory) in the cgi-bin directory 2. ensure that you have the ArcSDE C API Dll's loaded on the mapserver machine 3. run your mapfile with DEBUG=ON 4. check you have the necessary permissions set for your connecting user to the ArcSDE layers 5. connection strings we use successfully are: CONNECTION "servername,port:portnum,database,username,password" CONNECTIONTYPE SDE DATA "schema.sdelayername,SHAPE,SDE.DEFAULT" I'd suggest gettign a mapfile with a shape file as a base (so you know you are in the correct area) and a single SDE layer to display over the top. Also check the MapServer log file as this can tell you the errors (whether permissions, server etc) What is the message with (-1) ? HTH Mike On 22/01/07, shail_79 at hotmail.com wrote: > > Hi Mike, > > I tried myself with SDE , SQL server and Mapserver to connect through > Mapfile with ms4w package. I always gets an error (-1) for the SDE > connection. I think mapserver is able to connect through SDE, but it > seems, the Data description within mapfile seems to be wrong. > > Do u have any document on how to establish the connection for SDE or How > to define Data for SDE. > > I tried everything, whatever is instructed within ms4w readme file for > SDE. > > But still i am getting an error. > > Your help would be highly appreciated. > > Thanks > > shail > > http://people.emich.edu/sgavathe > > Mike Saunt wrote: > > > > Hi > > > > We've successfully connected through to SDE (with the help of Howard) > and > > it > > proves to be pretty simple. I am very happy with taking MS4W, > extracting > > our required installation files and then applying the relevant > > libmap.dll(from the sub directory) when on site and then changing the > > connection > > strings. I'm very happy with this method as we don't need to recompile > > (although we do for other reasons!) > > > > Regards > > Mike > > > > > > On 25/10/06, Pleyer, Walter wrote: > >> > >> Hi Howard! > >> > >> > you get these errors. Are you trying to just render a layer? > >> Yes, just simply rendering it is all we try to do. > >> The backend DB is a Oracle 9.2.0.4 . > >> > >> > to build MapServer and all of its dependencies from scratch > >> > on your platform of choice (Windows in your case). The time > >> > and misery required to do that is at least an order of > >> > magnitude larger than peeling apart the .\bin and .\cgi-bin > >> > directories plus the SDE libmap.dll from the MS4W package. > >> I'm aware of that. > >> That's why I hoped that someone might have done that already. > >> But this is certainly the lesser problem and more a matter of > >> convinience. > >> > >> Walter > >> > > > > > Quoted from: > http://www.nabble.com/Mapserver%2BWindows%2BArcSDE-tf2502108.html#a6987646 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From stefan.schwarzer at GRID.UNEP.CH Mon Jan 22 03:03:48 2007 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Mon, 22 Jan 2007 12:03:48 +0100 Subject: AJAX-msCross with PHP Template Message-ID: Hi there, I really like the small msCross app for AJAX-map-dragging ( http:// datacrossing.crs4.it/en_Documentation_mscross.html )... But I am not quite sure how to implement the code when using a PHP template. Has anyone experience in this and could share it? Thanks for any advice! From stefan.schwarzer at GRID.UNEP.CH Mon Jan 22 03:10:29 2007 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Mon, 22 Jan 2007 12:10:29 +0100 Subject: AJAX-msCross with PHP Template (2) Message-ID: Hi there, I really like the small msCross app for AJAX-map-dragging ( http:// datacrossing.crs4.it/en_Documentation_mscross.html )... But I am not quite sure how to implement the code when using a PHP template. I am using PHP Mapscript. I was told the following using Mapscript instead of CGI: myMap.setCgi( '/your_url/your_script.php' ); You make your_script.php with same inputs (mode, map, mapext, mapsize, layers) and same output (map image) of Mapserver CGI. msCross will does the rest. But still no idea how this would work with a PHP template. Has anyone experience in this and could share it? Thanks for any advice! From ernesvega at GMAIL.COM Mon Jan 22 05:23:09 2007 From: ernesvega at GMAIL.COM (Ernesto Vega) Date: Mon, 22 Jan 2007 10:23:09 -0300 Subject: AJAX-msCross with PHP Template (2) In-Reply-To: Message-ID: You don't use templates with msCross as you were used to with mapserver. msCross does the job of connecting with mapserver and generating the map on the background as you should, if you were using AJX. I hope it helps. Ernesto Vega On 1/22/07, Stefan Schwarzer wrote: > Hi there, > > I really like the small msCross app for AJAX-map-dragging ( http:// > datacrossing.crs4.it/en_Documentation_mscross.html )... > > But I am not quite sure how to implement the code when using a PHP > template. I am using PHP Mapscript. > > I was told the following using Mapscript instead of CGI: > > myMap.setCgi( '/your_url/your_script.php' ); > > You make your_script.php with same inputs (mode, map, mapext, > mapsize, > layers) and same output (map image) of Mapserver CGI. > msCross will does the rest. > > > But still no idea how this would work with a PHP template. Has anyone > experience in this and could share it? > > Thanks for any advice! > From mcompte at SIGTE.UDG.ES Mon Jan 22 06:34:02 2007 From: mcompte at SIGTE.UDG.ES (Marc Compte) Date: Mon, 22 Jan 2007 15:34:02 +0100 Subject: Reprojecting WMS Message-ID: Hi everyone, We are trying to reproject a layer that comes from a local WMS with mapserver. The WMS can only be queried using EPSG:23031 and we want the output to be in EPSG:4326. We have tried using the following with no success, any ideas? Thanks in advance, Marc Compte -------------------------------------- PROJECTION "init=epsg:4326" END LAYER NAME orto MINSCALE 100 MAXSCALE 10000 TYPE RASTER STATUS default CONNECTIONTYPE WMS CONNECTION "http://galileo.icc.es/wms/servlet/icc_orto5m_r_r?REQUEST=map&LAYERS=Ortofoto_5000&STYLES=&FORMAT=png&version=1.1.1" METADATA "wms_name" "Ortofoto_5000" "wms_server_version" "1.1.1" "wms_srs" "epsg:23031" "wms_format" "image/png" END PROJECTION "init=epsg:23031" END END --------------------------------------- From aude.allain.ext at MAPPY.COM Mon Jan 22 07:52:40 2007 From: aude.allain.ext at MAPPY.COM (Aude Allain) Date: Mon, 22 Jan 2007 16:52:40 +0100 Subject: msGetLabelSize() : Could not find/open font Message-ID: Hello, I'm trying to display labels on my map, but I get the following error : : msGetLabelSize(): Could not find/open font. I defined a FONTSET FILE in the mapfile which contains font paths : FONTSET "../font/fontset.txt" Content of fontset.txt : Arial (TrueType) C:\WINDOWS\Fonts\ARIAL.TTF And, the layer on which I want to see the labels is defined in the mapfile : LAYER NAME " A0" CONNECTIONTYPE oraclespatial CONNECTION "user at bd/pwd" DATA "GEOM FROM MN_A0 USING UNIQUE ID SRID 8307 " STATUS DEFAULT TYPE POLYGON MINSCALE 150 MAXSCALE 500 GROUP "Administratif" TOLERANCE 100 TOLERANCEUNITS pixels LABELITEM "NAME" LABELCACHE on CLASS NAME "Pays - A0" COLOR 255 216 176 OUTLINECOLOR 32 32 32 TEMPLATE "ttt_query.html" LABEL MINFEATURESIZE 1 MINDISTANCE 1 POSITION CC TYPE TRUETYPE FONT "Arial" SIZE 12 ANTIALIAS TRUE COLOR 0 0 0 OUTLINECOLOR 255 255 255 END END END # A0 The font named 'Arial' is in c:/Windows/font. On the Web, it is said to check the Apache user or mapserver has permission to access the font file and the ttf files. But I don't know how to do that. Could you hep me ? I use : - windows xp - ms4w : php/mapscript 4.10, apache 2, php5.2 - Oracle spatial 10g Aude -------------- next part -------------- An HTML attachment was scrubbed... URL: From siki at AGT.BME.HU Mon Jan 22 11:26:46 2007 From: siki at AGT.BME.HU (Siki Zoltan) Date: Mon, 22 Jan 2007 18:26:46 -0100 Subject: msGetLabelSize() : Could not find/open font {Scanned} {Scanned} In-Reply-To: <2ABF75C13655594FA29F6C6C52FCA21F020A1E26@chicago.mappy.priv> Message-ID: Hi, 1. Try to remove (TrueType) from your font set file. 2. Use slash instead of backslash in the path in the font set file even on Windows for example Arial C:/WINDOWS/Fonts/ARIAL.TTF Bye, Zoltan On Mon, 22 Jan 2007, Aude Allain wrote: > Hello, > > I'm trying to display labels on my map, but I get the following error : > : msGetLabelSize(): Could not find/open font. > > I defined a FONTSET FILE in the mapfile which contains font paths : > FONTSET "../font/fontset.txt" > > Content of fontset.txt : > > Arial (TrueType) C:\WINDOWS\Fonts\ARIAL.TTF > > And, the layer on which I want to see the labels is defined in the > mapfile : > > LAYER > > NAME " A0" > > CONNECTIONTYPE oraclespatial > > CONNECTION "user at bd/pwd" > > DATA "GEOM FROM MN_A0 USING UNIQUE ID SRID 8307 " > > STATUS DEFAULT > > TYPE POLYGON > > MINSCALE 150 > > MAXSCALE 500 > > GROUP "Administratif" > > TOLERANCE 100 > > TOLERANCEUNITS pixels > > LABELITEM "NAME" > > LABELCACHE on > > CLASS > > NAME "Pays - A0" > > COLOR 255 216 176 > > OUTLINECOLOR 32 32 32 > > TEMPLATE "ttt_query.html" > > LABEL > > MINFEATURESIZE 1 > > MINDISTANCE 1 > > POSITION CC > > TYPE TRUETYPE > > FONT "Arial" > > SIZE 12 > > ANTIALIAS TRUE > > COLOR 0 0 0 > > OUTLINECOLOR 255 255 255 > > END > > END > > > > END # A0 > > > > > > The font named 'Arial' is in c:/Windows/font. > > > > On the Web, it is said to check the Apache user or mapserver has > permission to access the font file and the ttf files. But I don't know > how to do that. > > > > Could you hep me ? > > > > I use : > > - windows xp > > - ms4w : php/mapscript 4.10, apache 2, php5.2 > > - Oracle spatial 10g > > > > > > Aude > > > > From Steve.Lime at DNR.STATE.MN.US Mon Jan 22 10:26:36 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 22 Jan 2007 12:26:36 -0600 Subject: [dbox] problem in dbox resizing In-Reply-To: <1C887C9D-6343-4701-A6EB-CAFDBEEA61E9@uiuc.edu> Message-ID: Hi there: This is something I've been meaning to address. Let me take a look with your code and try and work up a simple test case on the DNR website. Might take a few days though, I have an offsite meeting (unfourtunately)... Steve >>> myunghwa Hwang 1/19/2007 5:45:00 PM >>> Hello, list! I'm trying to make dbox resizable. For that, I assigned ids to several components which should have fixed sizes, then I added a function for recalculating and assigning the dbox size: function adjustMapsize() { // test just width adjustment var leftcol_table = document.getElementById("leftcol_table"); var tools_table = document.getElementById("tools_table"); var move_button = document.getElementById("move_button"); var scale_table = document.getElementById("scale_table"); var coords_div = document.getElementById("coords_div"); var measure_div = document.getElementById("measure_div"); var measure_toggle = document.getElementById("measure_toggle"); var new_width = document.body.offsetWidth - (leftcol_table.offsetWidth + tools_table.offsetWidth + move_button.offsetWidth*2); var new_height = document.body.offsetHeight - (scale_table.offsetHeight + move_button.offsetHeight*3 + coords_div.offsetHeight + measure_div.offsetHeight + measure_toggle.offsetHeight + document.getElementById ("ms_url").offsetHeight); var anchor = document.getElementById("main"); main.width = anchor.width = new_width; main.height = anchor.height = new_height; main.anchor = xGetElementById("main"); ms.width = new_width; ms.height = new_height; } Then, I added this function to onload and onresize event of window: window.onresize = function() { // resize map image adjustMapsize(); xResizeTo(main.container, main.width, main.height); main.sync(); xResizeTo(main.image, main.width, main.height); xMoveTo(main.image, 0, 0); xShow(main.image); xResizeTo(main.canvas, main.width, main.height); xMoveTo(main.canvas, 0, 0); xClip(main.canvas, 0, main.width, main.height, 0); xShow(main.canvas); ms.draw(); reference.sync(); container.sync(); } window.onload = function() { // resize map image adjustMapsize(); main.initialize(); reference.initialize(); container.initialize(); domouseclick('zoomin'); // legend setup var legend_xml = get_content(config.dlegend_xml_executable + "? map=" + config.mapfile + "&server=" + config.dlegend_server); legend.initialize("legend_container", legend_xml); legend.setHandler(DLEGEND_CLICK, ms.setLayer); ms.setLayer('ortho', true); legend.changeNodeStatus('ortho', true); ms.draw(); } My problem is that this solution works when I try to reduce the size of window, but whenever I tried to increase the window size the size of something on the top of dbox (which consists of container, image, canvas, and something else) does not change, so I get white extra space on the right and bottom side of dbox. How can I solve this problem? Maybe someone already asked this problem, if so please let me know which post I should check. I hope my explanation of the problem will be understood well. from Myunghwa Hwang From ljfong at SDF.LONESTAR.ORG Mon Jan 22 10:47:25 2007 From: ljfong at SDF.LONESTAR.ORG (Hong) Date: Mon, 22 Jan 2007 11:47:25 -0700 Subject: MapScript C# Memory Corruption Problem (MapServer 4.10) In-Reply-To: Message-ID: On Sat, Jan 20, 2007 at 08:16:38PM +0100, Tamas Szekeres wrote: > Here are my further questions you should check before proceeding with the > issue: > > 1. Make sure mapserver was compiled with USE_THEAD enabled. (Use > mapserv -v to check) USE_THREAD is enabled. MapServer version 4.10.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=SVG SUPPORTS=FREETYPE SUPPORTS=THREADS SUPPORTS=POINT_Z_M INPUT=SDE INPUT=SHAPEFILE DEBUG=MSDEBUG > 2. Try not to keep the mapscript objects between the requests. > Instead, you should reload the map object every time and set the > required properties one by one. Now instead of using the mapObj stored in the session, I perform a clone() on the mapObj from the session, and use the clone to perform draw(). So far, I have not seen any crash after doing this. The only problem I observed was that the symbol transparencies was messed up after subsequent clone + draw. Maybe the clone is not perfect, I'm not sure. However, I would still like your opinion on this approach. > 3. It would be desirable if the mapscript/mapserver related dll-s was > using the same CRT library. You should use a suitable utility (like > the Visual Studio Depends tool) to check the CRT dependency of the > libraries. Heap corruption may arise when memory segments are passed > between libraries using different CRT heaps. I have verified them to be using the same CRT library using Visual Studio dependency tool. They are all using c:\windows\system32\MSVCRT.DLL. > 4. For the ASP.NET + VS80 builds the manifest containing the CRT > dependency should always be embedded as a resource into mapscript.dll > as described at > http://mapserver.gis.umn.edu/docs/howto/mapscriptcscompile. These were what I did on the DLLs and EXEs: mt /manifest mapscript.dll.manifest /outputresource:mapscript.dll mt /manifest libmap.dll.manifest /outputresource:libmap.dll mt /manifest mapserv.exe manifest /outputresource:mapserv.exe mapserv.exe had c++ runtime loading problem before the manifest was embedded into it. Thanks. > > > Best Regards, > > Tamas > > > > 2007/1/20, Hong : > >Hi Tamas, > > > >I have created a skeleton application that can show the map and the user > >can > >"refresh", "zoom in", or "zoom out" on the map. The map draws without > >problem > >on "refresh", but it will crash with either the memory corruption message > >or > >the SDE connection exception randomly. Typically the crash occurs after the > >3rd or 4th call to zoomPoint() followed by draw() subroutine. The SDE > >connection exception is: > > > >msDrawMap(): Image handling error. Failed to draw layer named 'District'; > >msSDELayerOpen(): SDE error. SE_Version_get_info(): Bad connection handle. > >(-92) > > > >All the layers in the map file are SDE layers accessed using ArcSDE 9.1 > >libraries. > > > >I am sure that the correct versions of the dlls are loaded as the problem > >disappears after I switch back to the old 4.8.4 dlls. I also verified the > >dependencies using dependency walker to show the paths. > > > >As for the call stack, this is what I got after the protected memory error: > > > >[AccessViolationException: Attempted to read or write protected memory. > >This is often an indication that other memory is corrupt.] > > System.Diagnostics.StackTrace.GetStackFramesInternal(StackFrameHelper > > sfh, Int32 iSkip, Exception e) +0 > > System.Diagnostics.StackTrace.CaptureStackTrace(Int32 iSkip, Boolean > > fNeedFileInfo, Thread targetThread, Exception e) +49 > > System.Diagnostics.StackTrace..ctor(Exception e, Boolean fNeedFileInfo) > > +32 > > System.Web.UnhandledErrorFormatter.get_ColoredSquare2Content() +579 > > System.Web.UnhandledErrorFormatter.PrepareFormatter() +42 > > System.Web.ErrorFormatter.GetHtmlErrorMessage(Boolean > > dontShowSensitiveInfo) +51 > > System.Web.HttpResponse.WriteErrorMessage(Exception e, Boolean > > dontShowSensitiveErrors) +787 > > System.Web.HttpResponse.ReportRuntimeError(Exception e, Boolean > > canThrow, Boolean localExecute) +478 > > System.Web.HttpRuntime.FinishRequest(HttpWorkerRequest wr, HttpContext > > context, Exception e) +541 > > > > > >I am sending testpage.aspx, testpage.aspx.vb for the sample app and > >Odessa.map > >for the mapfile I used directly to your email account. > > > >Thanks. > > > >Hong > > > > > >On Fri, Jan 19, 2007 at 10:34:06AM +0100, Tamas Szekeres wrote: > >> Could you provide the code sample and possibly a call stack to locate > >> this error? > >> Are you sure that the correct versions of the dll-s are loaded? > >> > >> Best Regards, > >> > >> Tamas Szekeres > >> > >> > >> 2007/1/19, Hong : > >> >Hi, > >> > > >> >I recently tried building MapServer 4.10 from the build kit > >> >(mapserver-buildkit-011607.zip) using MS Visual Studio 2005 SP1. The > >build > >> >was > >> >successful but during regular operation, there would be memory > >corruption > >> >that > >> >happened sporadically (randomly when calling draw() function of mapObj). > >> >The > >> >message was: > >> > > >> >Attempted to read or write protected memory. This is often an indication > >> >that > >> >other memory is corrupt. > >> > > >> >The following DLLs were produced and used: > >> >- bgd.dll (from separately downloaded gdwin32 package) > >> >- libmap.dll (with manifest attached through 'mt') > >> >- mapscript.dll (with manifest attached through 'mt') > >> >- mapscript_csharp.dll > >> > > >> >This problem did not happen with MapServer 4.8.4 buildkit > >> >(mapserver-4.8.3-msvc71-build-kit.zip) built using MS Visual Studio > >2003. > >> >The > >> >4.8.4 binaries had been running in .NET 2.0 environment without any > >> >problem. > >> > > >> >I can use any suggestion/help here. > >> > > >> >Thanks. > >> > > >> >Surya > >> > > > From mhwang4 at UIUC.EDU Mon Jan 22 12:11:00 2007 From: mhwang4 at UIUC.EDU (myunghwa Hwang) Date: Mon, 22 Jan 2007 14:11:00 -0600 Subject: [dbox] problem in dbox resizing In-Reply-To: <45B4AD7C0200008F000060FA@co5.dnr.state.mn.us> Message-ID: Thank you very much! I'll wait for your next response! from Myunghwa On Jan 22, 2007, at 12:26 PM, Steve Lime wrote: > Hi there: This is something I've been meaning to address. Let me > take a > look with your code and > try and work up a simple test case on the DNR website. Might take a > few > days though, I have an > offsite meeting (unfourtunately)... > > Steve > >>>> myunghwa Hwang 1/19/2007 5:45:00 PM >>> > Hello, list! > > I'm trying to make dbox resizable. > For that, I assigned ids to several components which should have > fixed sizes, > then I added a function for recalculating and assigning the dbox size: > > function adjustMapsize() { > // test just width adjustment > var leftcol_table = document.getElementById("leftcol_table"); > var tools_table = document.getElementById("tools_table"); > var move_button = document.getElementById("move_button"); > var scale_table = document.getElementById("scale_table"); > var coords_div = document.getElementById("coords_div"); > var measure_div = document.getElementById("measure_div"); > var measure_toggle = document.getElementById("measure_toggle"); > > var new_width = document.body.offsetWidth - > (leftcol_table.offsetWidth + tools_table.offsetWidth + > move_button.offsetWidth*2); > var new_height = document.body.offsetHeight - > (scale_table.offsetHeight + move_button.offsetHeight*3 + > coords_div.offsetHeight + measure_div.offsetHeight + > > measure_toggle.offsetHeight + document.getElementById > ("ms_url").offsetHeight); > var anchor = document.getElementById("main"); > main.width = anchor.width = new_width; > main.height = anchor.height = new_height; > main.anchor = xGetElementById("main"); > ms.width = new_width; > ms.height = new_height; > } > > Then, I added this function to onload and onresize event of window: > > window.onresize = function() { > > // resize map image > adjustMapsize(); > xResizeTo(main.container, main.width, main.height); > main.sync(); > xResizeTo(main.image, main.width, main.height); > xMoveTo(main.image, 0, 0); > xShow(main.image); > xResizeTo(main.canvas, main.width, main.height); > xMoveTo(main.canvas, 0, 0); > xClip(main.canvas, 0, main.width, main.height, 0); > xShow(main.canvas); > ms.draw(); > > reference.sync(); > container.sync(); > } > > window.onload = function() { > > // resize map image > adjustMapsize(); > > main.initialize(); > reference.initialize(); > container.initialize(); > > domouseclick('zoomin'); > > // legend setup > var legend_xml = get_content(config.dlegend_xml_executable + "? > map=" + config.mapfile + "&server=" + config.dlegend_server); > legend.initialize("legend_container", legend_xml); > legend.setHandler(DLEGEND_CLICK, ms.setLayer); > > ms.setLayer('ortho', true); > legend.changeNodeStatus('ortho', true); > ms.draw(); > } > > My problem is that this solution works when I try to reduce the size > of window, > but whenever I tried to increase the window size > the size of something on the top of dbox (which consists of > container, image, canvas, and something else) does not change, > so I get white extra space on the right and bottom side of dbox. > How can I solve this problem? > Maybe someone already asked this problem, if so please let me know > which post I should check. > I hope my explanation of the problem will be understood well. > > from Myunghwa Hwang From techie at OMLET.CO.UK Mon Jan 22 12:32:57 2007 From: techie at OMLET.CO.UK (James Tuthill) Date: Mon, 22 Jan 2007 20:32:57 +0000 Subject: php mapscript draw() error Message-ID: Hi, I am just starting out with php mapscript but can't work out what errors are causing my maps not to draw(). I started out with simple maps work just fine. However, the more complex map data that I purchase don't appear to work. These map files renders fine with a normal mapserv.cgi - but fails silently at the draw() stage of php mapscript. This is the simple set of commands that I am using: // Create a map object $map_object=ms_newMapObj($map_path.$map_filename); // Render the map into an image object $map_img=$map_object->draw(); // Save the map to an image file $map_img->saveImage($img_path.$img_filename); The program fails are draw() - but there is no debug output. Can anyone tell me how to start debugging this? Thanks, James From ernesvega at GMAIL.COM Mon Jan 22 13:43:37 2007 From: ernesvega at GMAIL.COM (Ernesto Vega) Date: Mon, 22 Jan 2007 18:43:37 -0300 Subject: php mapscript draw() error In-Reply-To: <45B51F79.4070801@omlet.co.uk> Message-ID: you should start here: http://mapserver.gis.umn.edu/docs/reference/mapfile/map Look for parameter DEBUG, that allows you to turn debugging on. Be aware of permissions. Your mapserv cgi should be allowed to write to the path that you have to set for it. hope it helps Ernesto Vega On 1/22/07, James Tuthill wrote: > Hi, > > I am just starting out with php mapscript but can't work out what errors > are causing my maps not to draw(). I started out with simple maps work > just fine. However, the more complex map data that I purchase don't > appear to work. These map files renders fine with a normal mapserv.cgi - > but fails silently at the draw() stage of php mapscript. > > This is the simple set of commands that I am using: > > // Create a map object > $map_object=ms_newMapObj($map_path.$map_filename); > > // Render the map into an image object > $map_img=$map_object->draw(); > > // Save the map to an image file > $map_img->saveImage($img_path.$img_filename); > > The program fails are draw() - but there is no debug output. Can anyone > tell me how to start debugging this? > > Thanks, > > James > From ernesvega at GMAIL.COM Mon Jan 22 13:45:07 2007 From: ernesvega at GMAIL.COM (Ernesto Vega) Date: Mon, 22 Jan 2007 18:45:07 -0300 Subject: php mapscript draw() error In-Reply-To: <248e5e090701221343y6708cebt61f72ff0b3ec3a5e@mail.gmail.com> Message-ID: Ups.... wrong URL Here is the right one: http://mapserver.gis.umn.edu/docs/reference/mapfile hope you can find your way Ernesto On 1/22/07, Ernesto Vega wrote: > you should start here: > > http://mapserver.gis.umn.edu/docs/reference/mapfile/map > > Look for parameter DEBUG, that allows you to turn debugging on. Be > aware of permissions. Your mapserv cgi should be allowed to write to > the path that you have to set for it. > > hope it helps > > Ernesto Vega > > On 1/22/07, James Tuthill wrote: > > Hi, > > > > I am just starting out with php mapscript but can't work out what errors > > are causing my maps not to draw(). I started out with simple maps work > > just fine. However, the more complex map data that I purchase don't > > appear to work. These map files renders fine with a normal mapserv.cgi - > > but fails silently at the draw() stage of php mapscript. > > > > This is the simple set of commands that I am using: > > > > // Create a map object > > $map_object=ms_newMapObj($map_path.$map_filename); > > > > // Render the map into an image object > > $map_img=$map_object->draw(); > > > > // Save the map to an image file > > $map_img->saveImage($img_path.$img_filename); > > > > The program fails are draw() - but there is no debug output. Can anyone > > tell me how to start debugging this? > > > > Thanks, > > > > James > > > From szekerest at GMAIL.COM Mon Jan 22 14:12:39 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Mon, 22 Jan 2007 23:12:39 +0100 Subject: MapScript C# Memory Corruption Problem (MapServer 4.10) In-Reply-To: <20070122184725.GA18311@SDF.LONESTAR.ORG> Message-ID: 2007/1/22, Hong : > > Now instead of using the mapObj stored in the session, I perform a clone() > on the mapObj from the session, and use the clone to perform draw(). So far, I > have not seen any crash after doing this. The only problem I observed was that > the symbol transparencies was messed up after subsequent clone + draw. Maybe > the clone is not perfect, I'm not sure. > That seems strange. You should describe the problem in more detail and reopen the following bug then: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=931 Please attach the corresponding mapfile, the symbol definition file and the symbol image to this bug. Best Regards, Tamas From dls at INFORMGIS.COM Mon Jan 22 19:02:12 2007 From: dls at INFORMGIS.COM (David Stajan) Date: Mon, 22 Jan 2007 21:02:12 -0600 Subject: raster output streched at CGI Query mode Message-ID: An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Mon Jan 22 20:08:10 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 22 Jan 2007 22:08:10 -0600 Subject: raster output streched at CGI Query mode Message-ID: I must've missed the original post. What version and OS? Any sample URLs, images or mapfiles? Steve >>> David Stajan 01/22/07 9:02 PM >>> Has anyone solved this issue? I'm having the same problem. My raster renders fine when performing a draw map but when I create a querymap it seems to have lost its projection or something like that? thanks, DaviD From dls at INFORMGIS.COM Mon Jan 22 20:36:23 2007 From: dls at INFORMGIS.COM (David Stajan) Date: Mon, 22 Jan 2007 22:36:23 -0600 Subject: raster output streched at CGI Query mode Message-ID: I'm using windows, ms4w2.2.1, and c# mapscript. Can't show you but I can try to explain. Everything is great when i call map.draw, but when I have a selected feature, therefore calling map.drawquery, the raster stops rendering with the scale and becomes a stagnet image inbehind the vector data. No matter what you do (zoom in, zoom out, pan) that raster stays in the position and extent it was at when you performed your selection. The raster begins the render properly once I clear my feature selection, and therefore start calling map.draw again instead of map.drawquery. The only thing to note is that I define my raster with a projection because it differes with the vector data. Any Ideas? Thanks DaviD On Mon, 22 Jan 2007 22:08:10 -0600, Steve Lime wrote: >I must've missed the original post. What version and OS? Any sample >URLs, images or mapfiles? > >Steve > >>>> David Stajan 01/22/07 9:02 PM >>> >Has anyone solved this issue? I'm having the same problem. My raster >renders fine when performing a draw map but when I create a querymap it >seems to have lost its projection or something like that? thanks, DaviD From dls at INFORMGIS.COM Mon Jan 22 20:40:54 2007 From: dls at INFORMGIS.COM (David Stajan) Date: Mon, 22 Jan 2007 22:40:54 -0600 Subject: sde querybyattribute error Message-ID: Hi There, I'm trying to perform a querybyattributes call to a sde layer and I get this error Message "msSDELayerNextShape(): SDE error. SE_stream_fetch(): Underlying DBMS error. (-51)" String Does anyone know why. I'm using C# mapscript and ms4w2.2.1. My function does perform a successfull query if my layer is a shapefile! Thanks, DaviD From ljfong at SDF.LONESTAR.ORG Mon Jan 22 21:39:38 2007 From: ljfong at SDF.LONESTAR.ORG (Hong) Date: Mon, 22 Jan 2007 22:39:38 -0700 Subject: MapScript C# Memory Corruption Problem (MapServer 4.10) In-Reply-To: Message-ID: I have reopened the bug report. On Mon, Jan 22, 2007 at 11:12:39PM +0100, Tamas Szekeres wrote: > 2007/1/22, Hong : > > > >Now instead of using the mapObj stored in the session, I perform a clone() > >on the mapObj from the session, and use the clone to perform draw(). So > >far, I > >have not seen any crash after doing this. The only problem I observed was > >that > >the symbol transparencies was messed up after subsequent clone + draw. > >Maybe > >the clone is not perfect, I'm not sure. > > > > That seems strange. You should describe the problem in more detail and > reopen the following bug then: > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=931 > > Please attach the corresponding mapfile, the symbol definition file > and the symbol image to this bug. > > Best Regards, > > Tamas From aude.allain.ext at MAPPY.COM Tue Jan 23 00:32:24 2007 From: aude.allain.ext at MAPPY.COM (Aude Allain) Date: Tue, 23 Jan 2007 09:32:24 +0100 Subject: msGetLabelSize() : Could not find/open font {Scanned} {Scanned} Message-ID: Hi, These solutions don't work. I have always the same error. Do you know what is the problem ? aude -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Siki Zoltan Envoy??: lundi 22 janvier 2007 20:27 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: Re: [UMN_MAPSERVER-USERS] msGetLabelSize() : Could not find/open font {Scanned} {Scanned} Hi, 1. Try to remove (TrueType) from your font set file. 2. Use slash instead of backslash in the path in the font set file even on Windows for example Arial C:/WINDOWS/Fonts/ARIAL.TTF Bye, Zoltan On Mon, 22 Jan 2007, Aude Allain wrote: > Hello, > > I'm trying to display labels on my map, but I get the following error : > : msGetLabelSize(): Could not find/open font. > > I defined a FONTSET FILE in the mapfile which contains font paths : > FONTSET "../font/fontset.txt" > > Content of fontset.txt : > > Arial (TrueType) C:\WINDOWS\Fonts\ARIAL.TTF > > And, the layer on which I want to see the labels is defined in the > mapfile : > > LAYER > > NAME " A0" > > CONNECTIONTYPE oraclespatial > > CONNECTION "user at bd/pwd" > > DATA "GEOM FROM MN_A0 USING UNIQUE ID SRID 8307 " > > STATUS DEFAULT > > TYPE POLYGON > > MINSCALE 150 > > MAXSCALE 500 > > GROUP "Administratif" > > TOLERANCE 100 > > TOLERANCEUNITS pixels > > LABELITEM "NAME" > > LABELCACHE on > > CLASS > > NAME "Pays - A0" > > COLOR 255 216 176 > > OUTLINECOLOR 32 32 32 > > TEMPLATE "ttt_query.html" > > LABEL > > MINFEATURESIZE 1 > > MINDISTANCE 1 > > POSITION CC > > TYPE TRUETYPE > > FONT "Arial" > > SIZE 12 > > ANTIALIAS TRUE > > COLOR 0 0 0 > > OUTLINECOLOR 255 255 255 > > END > > END > > > > END # A0 > > > > > > The font named 'Arial' is in c:/Windows/font. > > > > On the Web, it is said to check the Apache user or mapserver has > permission to access the font file and the ttf files. But I don't know > how to do that. > > > > Could you hep me ? > > > > I use : > > - windows xp > > - ms4w : php/mapscript 4.10, apache 2, php5.2 > > - Oracle spatial 10g > > > > > > Aude > > > > From Dejan.Gambin at PULA.HR Mon Jan 22 01:35:49 2007 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Mon, 22 Jan 2007 10:35:49 +0100 Subject: Shape performance question - one larger file vs. several smaller Message-ID: Hi, I have several line shape files showing the borders of different types. I am wondering if it is better to merge them using ogr2ogr and tehn classifying them in map file, or use all the files as layers? Does anybody know the difference in speed/performance? By the way, I have one more question related to performance. Is it better to place all symbol definitions in symbol file or define them directly in map file? thanks very much regards, dejan From siki at AGT.BME.HU Tue Jan 23 08:31:22 2007 From: siki at AGT.BME.HU (Siki Zoltan) Date: Tue, 23 Jan 2007 15:31:22 -0100 Subject: msGetLabelSize() : Could not find/open font {Scanned} {Scanned} {Scanned} In-Reply-To: <2ABF75C13655594FA29F6C6C52FCA21F020A1E2A@chicago.mappy.priv> Message-ID: Hi, More tipps ... Does your mapserver distribution support freetype? Try mapserv -v at the command promt. You should see ... SUPPORTS=FREETYPE ... Do you have the arial.ttf file in the c:\windows\fonts folder? The font set file path should be given relativ to the map file or absolute. Check the relative path or replace with absolute path. Zoltan On Tue, 23 Jan 2007, Aude Allain wrote: > Hi, > > These solutions don't work. I have always the same error. > > Do you know what is the problem ? > > aude > > -----Message d'origine----- > De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Siki Zoltan > Envoy??: lundi 22 janvier 2007 20:27 > ??: MAPSERVER-USERS at LISTS.UMN.EDU > Objet?: Re: [UMN_MAPSERVER-USERS] msGetLabelSize() : Could not find/open font {Scanned} {Scanned} > > Hi, > > 1. Try to remove (TrueType) from your font set file. > 2. Use slash instead of backslash in the path in the font set file even on > Windows > > for example > Arial C:/WINDOWS/Fonts/ARIAL.TTF > > Bye, > Zoltan > > On Mon, 22 Jan 2007, Aude Allain wrote: > > > Hello, > > > > I'm trying to display labels on my map, but I get the following error : > > : msGetLabelSize(): Could not find/open font. > > > > I defined a FONTSET FILE in the mapfile which contains font paths : > > FONTSET "../font/fontset.txt" > > > > Content of fontset.txt : > > > > Arial (TrueType) C:\WINDOWS\Fonts\ARIAL.TTF > > > > And, the layer on which I want to see the labels is defined in the > > mapfile : > > > > LAYER > > > > NAME " A0" > > > > CONNECTIONTYPE oraclespatial > > > > CONNECTION "user at bd/pwd" > > > > DATA "GEOM FROM MN_A0 USING UNIQUE ID SRID 8307 " > > > > STATUS DEFAULT > > > > TYPE POLYGON > > > > MINSCALE 150 > > > > MAXSCALE 500 > > > > GROUP "Administratif" > > > > TOLERANCE 100 > > > > TOLERANCEUNITS pixels > > > > LABELITEM "NAME" > > > > LABELCACHE on > > > > CLASS > > > > NAME "Pays - A0" > > > > COLOR 255 216 176 > > > > OUTLINECOLOR 32 32 32 > > > > TEMPLATE "ttt_query.html" > > > > LABEL > > > > MINFEATURESIZE 1 > > > > MINDISTANCE 1 > > > > POSITION CC > > > > TYPE TRUETYPE > > > > FONT "Arial" > > > > SIZE 12 > > > > ANTIALIAS TRUE > > > > COLOR 0 0 0 > > > > OUTLINECOLOR 255 255 255 > > > > END > > > > END > > > > > > > > END # A0 > > > > > > > > > > > > The font named 'Arial' is in c:/Windows/font. > > > > > > > > On the Web, it is said to check the Apache user or mapserver has > > permission to access the font file and the ttf files. But I don't know > > how to do that. > > > > > > > > Could you hep me ? > > > > > > > > I use : > > > > - windows xp > > > > - ms4w : php/mapscript 4.10, apache 2, php5.2 > > > > - Oracle spatial 10g > > > > > > > > > > > > Aude > > > > > > > > > From watry at STEAM.COAPS.FSU.EDU Tue Jan 23 08:05:38 2007 From: watry at STEAM.COAPS.FSU.EDU (Gary Watry) Date: Tue, 23 Jan 2007 11:05:38 -0500 Subject: MapServer and MapBuilder Message-ID: Hi Has anyone built a site with MapBuilder on top of MapServer. I see a lot of GeoServer and MapBuilder combos -- ------------------------------------------------------ The information transmitted is intended solely for the person or entity for which it is addressed and may contain confidential and/or privileged information. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this email in error, please contact the sender and delete the material from your computer. ------------------------------------------------------ Gary L. Watry GIS Coordinator Center for Ocean-Atmospheric Prediction Studies FSU / COAPS Johnson Building, RM 231 2035 East Paul Dirac Drive Tallahassee, Florida 32306-2840 Phone (850) 645-7457 E-Mail: watry at coaps.fsu.edu ------------------------------------------------------- From gregor at HOSTGIS.COM Tue Jan 23 08:10:58 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Tue, 23 Jan 2007 09:10:58 -0700 Subject: MapServer and MapBuilder In-Reply-To: <45B63252.5040402@steam.coaps.fsu.edu> Message-ID: > Has anyone built a site with MapBuilder on top of MapServer. I experimented with Community Mapbuilder a bit, though I don't have any public sites to show off. I found it to be a very attractive interface, easily configurable, and plentiful of example maps to get you started. It has a multi-layer slippy-map interface, giving a feel similar to OpenLayers but with more power tools in the kit. From Tom.Kralidis at EC.GC.CA Tue Jan 23 08:19:36 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Tue, 23 Jan 2007 11:19:36 -0500 Subject: MapServer and MapBuilder Message-ID: > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gary Watry > Sent: 23 January, 2007 11:06 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] MapServer and MapBuilder > > Hi > Has anyone built a site with MapBuilder on top of MapServer. > > I see a lot of GeoServer and MapBuilder combos > We've done so in a few of our projects. The key here is that Mapbuilder (as a standards-based client) can talk to any OGC:WMS server, for example, and MapServer (as a standards-based server) can talk to any OGC:WMS client. I think one of the reasons why Mapbuilder is demo'd with GeoServer is to illustrate Mapbuilder's WFS-T client functionality, which MapServer does not support. So keep in mind that Mapbuilder is connecting to a OGC:WMS, not MapServer per se, etc. ..Tom From richard.greenwood at GMAIL.COM Tue Jan 23 08:31:08 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Tue, 23 Jan 2007 09:31:08 -0700 Subject: raster output streched at CGI Query mode In-Reply-To: <45B535CA0200008F000061DD@co5.dnr.state.mn.us> Message-ID: I got copied on David's email, so I think it may be in reply to a bug I posted a couple years ago. But I can't find it in bugzilla any more. I'm going to be working with some similar imagery this week and I'll see if the problem is still there. Basically the bug was that in query modes, imagery that had to be reprojected wasn't being reprojected correctly. It looked like it might be a feet/meters issue, but it's been a while so I'm probably forgetting something. Rich On 1/22/07, Steve Lime wrote: > I must've missed the original post. What version and OS? Any sample > URLs, images or mapfiles? > > Steve > > >>> David Stajan 01/22/07 9:02 PM >>> > Has anyone solved this issue? I'm having the same problem. My raster > renders fine when performing a draw map but when I create a querymap it > seems to have lost its projection or something like that? thanks, DaviD > -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From pgiannini at BYTEWISE.IT Tue Jan 23 09:01:51 2007 From: pgiannini at BYTEWISE.IT (Pietro Giannini) Date: Tue, 23 Jan 2007 18:01:51 +0100 Subject: map coordinates In-Reply-To: <5D3D937A-C6AA-4A66-A14C-CEC69BC21F19@remoteinformation.com.au> Message-ID: Hi Ben, Finally I found time to think about this problem: how to store the geographic coordinates of a mouse clik on the map image, and thank to you I found a solution; I'm happy to share it. I use the php-mapscript '$map->cellsize' property to get the delta of a pixel in projected coordinates, both in x and y. A piece of code: ??????? /* $_REQUEST['mapimg_x'] and $_REQUEST['mapimg_y'] are the coordinates in pixel of the of a form on my page that contains the image of the map. I multiply the X & Y for the $oMap->cellsize to obtain the projected coordinates relatively to the current extent of the image, and I sum the result to the $oMap->extent->minx, for the X, and substract to $oMap->extent->miny for the Y, to obtain the absolute coordinates. */ ??? ??? $newPoint = ms_newpointobj(); ??? ??? $newPoint->setXY(($oMap->extent->minx + ($oMap->cellsize*$_REQUEST['mapimg_x'])),($oMap->extent->maxy - ($oMap->cellsize * $_REQUEST['mapimg_y']))); /*??? I get two new Projection objects, first is a lat/lon projection and second is projection of the map.? */ ??? ??? $olatlonProj = ms_newprojectionobj("proj=latlong,ellps=WGS84"); ??? ??? $osProj = $oMap->getProjection(); ??? ??? $omapProj = ms_newprojectionobj($osProj); /* I project the point from the map projection to the lat/lon projection */ ??? ??? $newPoint->project($omapProj,$olatlonProj); /* now I can store the point? (in this case in a mysql db) */ ??? ??? $myconn = mysql_connect("host","usr","pw"); ??? ??? mysql_select_db("db"); ??? ??? $sql = "INSERT INTO clickpoints (lon,lat) VALUES (".$newPoint->x.",".$newPoint->y.")"; ??? ??? $res = mysql_query($sql); ??? ??? mysql_close($myconn); Limitedly to the accuracy due of the scale of the map, result is good. I tried in lat/lon projection and also in Mercator, Mollweide, Sanson-flamsteed, UTM, orthographic, geostationary satellite ... ! cheers ...............................pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E On Gio, 14 Dicembre 2006 7:18 am, Ben Madin wrote: > Pietro, > > I noticed your question re map coordinates vs pixels. There may be a > better way, but I compare the proportion of the pixels with the > proportion of the map extents, for each of X & Y / Long & Lat / > Easting & Northing or whatever. > > So, > > if the pixels is 400,200 (when the map is 600 x 300 pixels), then we > are 400/600 of the way from the minimum extent to the maximum extent > on the map (in this case in both directions). > > I'm sure someone else will be more articulate about this, or have a > better idea, which I will be happy to see. > > Actually, here is a really good resource: (don't forget to have a > look on the mapserver website first!) > > http://mapserver.gis.umn.edu/docs/howto/phpmapscript-byexample > > cheers > > Ben > > > -- > > Ben Madin > REMOTE INFORMATION > > t : +61 8 9192 5455 > f : +61 8 9192 5535 > m : 0448 887 220 > Broome WA 6725 > > ben at remoteinformation.com.au > > > > > > Out here, it pays to know... > > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From iansgis at GMAIL.COM Tue Jan 23 10:04:34 2007 From: iansgis at GMAIL.COM (Ian) Date: Tue, 23 Jan 2007 10:04:34 -0800 Subject: Raster not displaying correctly In-Reply-To: <45B2A372.7040000@pobox.com> Message-ID: Using the PROCESSING SCALE and SCALE_BUCKETS directives solved my problem. Thank you very much for your replies! -------------- next part -------------- An HTML attachment was scrubbed... URL: From dls at INFORMGIS.COM Tue Jan 23 10:29:40 2007 From: dls at INFORMGIS.COM (David Stajan) Date: Tue, 23 Jan 2007 12:29:40 -0600 Subject: raster output streched at CGI Query mode Message-ID: Richard, Thats exactly whats happening, my map is projetced using PROJECTION "proj=utm" "zone=10" "ellps=GRS80" "datum=NAD83" "units=ft" END but my raster has this projection PROJECTION "proj=lcc" "ellps=GRS80" "datum=NAD83" "lon_0=-120.5" "lat_1=45.83333333333334" "lat_2=47.33333333333334" "lat_0=45.33333333333334" "x_0=500000" "y_0=0" "units=m" "no_defs" END Looks like the bug wasn't fixed. Is there any kind of work around? Thanks, DaviD On Tue, 23 Jan 2007 09:31:08 -0700, Richard Greenwood wrote: >I got copied on David's email, so I think it may be in reply to a bug >I posted a couple years ago. But I can't find it in bugzilla any more. >I'm going to be working with some similar imagery this week and I'll >see if the problem is still there. > >Basically the bug was that in query modes, imagery that had to be >reprojected wasn't being reprojected correctly. It looked like it >might be a feet/meters issue, but it's been a while so I'm probably >forgetting something. > >Rich > >On 1/22/07, Steve Lime wrote: >> I must've missed the original post. What version and OS? Any sample >> URLs, images or mapfiles? >> >> Steve >> >> >>> David Stajan 01/22/07 9:02 PM >>> >> Has anyone solved this issue? I'm having the same problem. My raster >> renders fine when performing a draw map but when I create a querymap it >> seems to have lost its projection or something like that? thanks, DaviD >> > > >-- >Richard Greenwood >richard.greenwood at gmail.com >www.greenwoodmap.com From ed at TOPOZONE.COM Tue Jan 23 11:32:51 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 23 Jan 2007 14:32:51 -0500 Subject: Shape performance question - one larger file vs. several smaller In-Reply-To: Message-ID: Dejan - This will depend on your data. A good way to think about things is what you would like the optimal situation to be. The best possible case for a map request would be for exactly one shapefile to be opened, and for every shape in that file to be drawn on the map. That way you are not opening multiple files (relatively expensive) nor are you skipping over features you don't need (not as expensive, but not free). Selecting features based on classification is also not expensive, but not free. But it's cheaper than opening multiple files (I suppose that might not be true if you had a LOT of features but very few types). How many different files/types do you have, and how many features (total) do you have? Do you have a particularly slow disk system? By the way, provided you're using spatial indexes for your shapefiles, any shapefile reorganization is unlikely to make a lot of difference. It's worth tuning a bit, but except in unusual cases it's not likely to make things twice as fast or slow. - Ed -- Ed McNierney President and Chief Mapmaker Maps a la carte, Inc. / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: (978) 251-4242 Fax: (978) 251-1396 ed at topozone.com > From: Gambin Dejan > Reply-To: Gambin Dejan > Date: Mon, 22 Jan 2007 10:35:49 +0100 > To: > Conversation: Shape performance question - one larger file vs. several smaller > Subject: [UMN_MAPSERVER-USERS] Shape performance question - one larger file > vs. several smaller > > Hi, > > I have several line shape files showing the borders of different types. > I am wondering if it is better to merge them using ogr2ogr and tehn > classifying them in map file, or use all the files as layers? > > Does anybody know the difference in speed/performance? > > By the way, I have one more question related to performance. Is it > better to place all symbol definitions in symbol file or define them > directly in map file? > > thanks very much > > regards, dejan From David.Fawcett at STATE.MN.US Tue Jan 23 11:47:46 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Tue, 23 Jan 2007 13:47:46 -0600 Subject: msGetLabelSize() : Could not find/open font {Scanned} {Scanned} In-Reply-To: A<2ABF75C13655594FA29F6C6C52FCA21F020A1E2A@chicago.mappy.priv> Message-ID: I think that it is clear that the problem is that MapServer can't find the font file based on the name that you have specified in your layer. This could result from many different errors: 1. The font alias name in your layer cannot be found in your fonts.txt file. Case sensitivity applies on 'nix boxes. 2. The relative path that you have specified at FONTSET in your MAP object does not point to the fonts.txt file that you have created. Try using an absolute path to your fonts.txt file. 3. It could be a permissions problem. 4. The absolute path to the font file as it is written in fonts.txt may not correctly point to the font file. 5. MapServer wasn't compiled with freetype support. To rule out an issue with MapScript, you could create a map image using mapserver cgi or shp2img.exe. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Aude Allain Sent: Tuesday, January 23, 2007 2:32 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] msGetLabelSize() : Could not find/open font {Scanned} {Scanned} Hi, These solutions don't work. I have always the same error. Do you know what is the problem ? aude -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Siki Zoltan Envoy??: lundi 22 janvier 2007 20:27 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: Re: [UMN_MAPSERVER-USERS] msGetLabelSize() : Could not find/open font {Scanned} {Scanned} Hi, 1. Try to remove (TrueType) from your font set file. 2. Use slash instead of backslash in the path in the font set file even on Windows for example Arial C:/WINDOWS/Fonts/ARIAL.TTF Bye, Zoltan On Mon, 22 Jan 2007, Aude Allain wrote: > Hello, > > I'm trying to display labels on my map, but I get the following error > : > : msGetLabelSize(): Could not find/open font. > > I defined a FONTSET FILE in the mapfile which contains font paths : > FONTSET "../font/fontset.txt" > > Content of fontset.txt : > > Arial (TrueType) C:\WINDOWS\Fonts\ARIAL.TTF > > And, the layer on which I want to see the labels is defined in the > mapfile : > > LAYER > > NAME " A0" > > CONNECTIONTYPE oraclespatial > > CONNECTION "user at bd/pwd" > > DATA "GEOM FROM MN_A0 USING UNIQUE ID SRID 8307 " > > STATUS DEFAULT > > TYPE POLYGON > > MINSCALE 150 > > MAXSCALE 500 > > GROUP "Administratif" > > TOLERANCE 100 > > TOLERANCEUNITS pixels > > LABELITEM "NAME" > > LABELCACHE on > > CLASS > > NAME "Pays - A0" > > COLOR 255 216 176 > > OUTLINECOLOR 32 32 32 > > TEMPLATE "ttt_query.html" > > LABEL > > MINFEATURESIZE 1 > > MINDISTANCE 1 > > POSITION CC > > TYPE TRUETYPE > > FONT "Arial" > > SIZE 12 > > ANTIALIAS TRUE > > COLOR 0 0 0 > > OUTLINECOLOR 255 255 255 > > END > > END > > > > END # A0 > > > > > > The font named 'Arial' is in c:/Windows/font. > > > > On the Web, it is said to check the Apache user or mapserver has > permission to access the font file and the ttf files. But I don't know > how to do that. > > > > Could you hep me ? > > > > I use : > > - windows xp > > - ms4w : php/mapscript 4.10, apache 2, php5.2 > > - Oracle spatial 10g > > > > > > Aude > > > > From Steve.Lime at DNR.STATE.MN.US Tue Jan 23 11:43:33 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 23 Jan 2007 13:43:33 -0600 Subject: raster output streched at CGI Query mode In-Reply-To: Message-ID: This is weird though since the output isn't munged with a normal browse call, correct? Rasters are handled, or should be anyway, the exact same way for both "draws". Can a new bug be filed? Steve >>> Richard Greenwood 1/23/2007 10:31:08 AM >>> I got copied on David's email, so I think it may be in reply to a bug I posted a couple years ago. But I can't find it in bugzilla any more. I'm going to be working with some similar imagery this week and I'll see if the problem is still there. Basically the bug was that in query modes, imagery that had to be reprojected wasn't being reprojected correctly. It looked like it might be a feet/meters issue, but it's been a while so I'm probably forgetting something. Rich On 1/22/07, Steve Lime wrote: > I must've missed the original post. What version and OS? Any sample > URLs, images or mapfiles? > > Steve > > >>> David Stajan 01/22/07 9:02 PM >>> > Has anyone solved this issue? I'm having the same problem. My raster > renders fine when performing a draw map but when I create a querymap it > seems to have lost its projection or something like that? thanks, DaviD > -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From woodbri at SWOODBRIDGE.COM Tue Jan 23 12:01:13 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 23 Jan 2007 15:01:13 -0500 Subject: Help Setting up FCGI for Oracle Connection pooling Message-ID: Hi, This is my first attempt to get FastCGI running with Mapserver to do Oracle connection pooling, and it is not working. Any help would be appreciated. I have the mapfile working for CGI so I know I have the system and environment set up correctly, but in fcgi mode I get: This is the error message: msDrawMap(): Image handling error. Failed to draw layer named 'Mexican_States'. msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI Handlers. Connection failure. Check the connection string. Error: . This is the apache error.log: [Tue Jan 23 12:44:48 2007] [warn] FastCGI: (dynamic) server "/usr/lib/cgi-bin/mapserv410.fcgi" restarted (pid 15479) [Tue Jan 23 12:44:48 2007] [error] [client 129.44.191.48] FastCGI: server "/usr/lib/cgi-bin/mapserv410.fcgi" stderr: CGI Request 1 on process 15469 [Tue Jan 23 12:44:48 2007] [error] [client 129.44.191.48] FastCGI: server "/usr/lib/cgi-bin/mapserv410.fcgi" stderr: msDrawMap(): Layer 0 (color_symbol), 0.000s [Tue Jan 23 12:44:48 2007] [warn] FastCGI: (dynamic) server "/usr/lib/cgi-bin/mapserv410.fcgi" (pid 15469) terminated by calling exit with status '0' LAYER NAME "Mexican_States" STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE oraclespatial CONNECTION "user/pass at test" PROCESSING "CLOSE_CONNECTION=DEFER" DATA "GEOMETRY FROM MEXSTATES USING SRID 4326 FILTER VERSION 10g" ##DATA "mdata/mexico/mexstates" CLASS NAME "Mexico States" SYMBOL 0 COLOR 204 204 204 OUTLINECOLOR 128 128 128 END END Basically I have followed: http://mapserver.gis.umn.edu/docs/howto/fastcgi Running Debian Sarge 1) have the libfcgi-dev loaded 2) have the apache module loaded 3) build mapserver with fcgi support swoodbridge at data:~/work$ "/usr/lib/cgi-bin/mapserv410.fcgi" -v MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=FASTCGI INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=ORACLESPATIAL INPUT=SHAPEFILE DEBUG=MSDEBUG 4) have configured apache 1.3 thusly: FastCgiConfig -initial-env PROJ_LIB=/usr/share/proj -initial-env LD_LIBRARY_PATH=/home2/oracle/cl10/lib -initial-env TNS_ADMIN=/home/swoodbridge/.oracle/ -initial-env ORACLE_HOME=/home2/oracle/cl10/ -appConnTimeout 60 -idle-timeout 60 -init-start-delay 1 -minProcesses 2 -maxClassProcesses 20 -startDelay 5 LoadModule fastcgi_module /usr/lib/apache/1.3/mod_fastcgi.so Options ExecCGI SetHandler fastcgi-script 5) installed mapserv as cp mapserv /usr/lib/cgi-bin/mapserv410 cp mapserv /usr/lib/cgi-bin/mapserv410.fcgi and have a shell script for CGI to set environment variables swoodbridge at data:~/work$ cat /usr/lib/cgi-bin/mapserv410a #!/bin/sh export TNS_ADMIN=/home/swoodbridge/.oracle/ export ORACLE_HOME=/home2/oracle/cl10/ export LD_LIBRARY_PATH=/home2/oracle/cl10/lib/ /usr/lib/cgi-bin/mapserv410 $* So this works in CGI mode but not fcgi mode: # CGI http://localhost/cgi-bin/mapserv410a?mode=map&layers=all&scale=50000000&map=/home/direct/mapserver/na_navteq_ora.map&mapxy=-75.7+45.42&map_size=300+200 # FCGI http://localhost/cgi-bin/mapserv410.fcgi?mode=map&layers=all&scale=50000000&map=/home/direct/mapserver/na_navteq_ora.map&mapxy=-75.7+45.42&map_size=300+200 Anyone have some clue on this? Thanks, -Steve W. From woodbri at SWOODBRIDGE.COM Tue Jan 23 13:55:58 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 23 Jan 2007 16:55:58 -0500 Subject: Help Setting up FCGI for Oracle Connection pooling In-Reply-To: <45B67C57.1080208@pobox.com> Message-ID: Frank Warmerdam wrote: > Stephen Woodbridge wrote: >> Hi, >> >> This is my first attempt to get FastCGI running with Mapserver to do >> Oracle connection pooling, and it is not working. Any help would be >> appreciated. >> >> I have the mapfile working for CGI so I know I have the system and >> environment set up correctly, but in fcgi mode I get: >> >> This is the error message: >> >> msDrawMap(): Image handling error. Failed to draw layer named >> 'Mexican_States'. >> msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI >> Handlers. Connection failure. Check the connection string. Error: . > > Steve, > > It seems like you have done everything right. Does the fastcgi > mapserver work for other stuff (like shapefiles) if there is no > oracle in the mix? > > It looks like some sort of subtle environment type issue, but your > efforts seem pretty comprehensive. > > Best regards, > Hi Frank, Good call, I should have thought of that! Yes, if I change the mapfile to a shapefile only mapfile it runs just fine in fastcgi. Yesterday, when I was setting up the Oracle connection I got the same error message and resolved it by fixing the file permission on the /home2/oracle directory tree. So I guess there are still some issues there. I'll go back over that again maybe I missed something. Does the fastcgi version need access to different oracle client files that the CGI does not need? Thanks for the quick response, -Steve W From woodbri at SWOODBRIDGE.COM Tue Jan 23 14:25:58 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 23 Jan 2007 17:25:58 -0500 Subject: Help Setting up FCGI for Oracle Connection pooling In-Reply-To: <45B67C57.1080208@pobox.com> Message-ID: Frank, I add the DEBUG ON to the MAP and the LAYER and get as output: [Tue Jan 23 16:16:57 2007] [warn] FastCGI: (dynamic) server "/usr/lib/cgi-bin/mapserv410.fcgi" restarted (pid 19181) [Tue Jan 23 16:16:57 2007] [error] [client 129.44.191.48] FastCGI: server "/usr/lib/cgi-bin/mapserv410.fcgi" stderr: CGI Request 1 on process 19179 [Tue Jan 23 16:16:57 2007] [error] [client 129.44.191.48] FastCGI: server "/usr/lib/cgi-bin/mapserv410.fcgi" stderr: msDrawMap(): Layer 0 (color_symbol), 0.000s [Tue Jan 23 16:16:57 2007] [error] [client 129.44.191.48] FastCGI: server "/usr/lib/cgi-bin/mapserv410.fcgi" stderr: msOracleSpatialLayerOpen called with: GEOMETRY FROM MEXSTATES USING SRID 4326 FILTER VERSION 10g [Tue Jan 23 16:16:57 2007] [error] [client 129.44.191.48] FastCGI: server "/usr/lib/cgi-bin/mapserv410.fcgi" stderr: msOracleSpatialLayerClose was called. Layer connection: mapserver1/w2gi at test [Tue Jan 23 16:16:57 2007] [warn] FastCGI: (dynamic) server "/usr/lib/cgi-bin/mapserv410.fcgi" (pid 19179) terminated by calling exit with status '0' Does this tell you anything? Is there anyway to get more debug output, short of adding more print statements to the executable? -Steve Frank Warmerdam wrote: > Stephen Woodbridge wrote: >> Hi, >> >> This is my first attempt to get FastCGI running with Mapserver to do >> Oracle connection pooling, and it is not working. Any help would be >> appreciated. >> >> I have the mapfile working for CGI so I know I have the system and >> environment set up correctly, but in fcgi mode I get: >> >> This is the error message: >> >> msDrawMap(): Image handling error. Failed to draw layer named >> 'Mexican_States'. >> msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI >> Handlers. Connection failure. Check the connection string. Error: . > > Steve, > > It seems like you have done everything right. Does the fastcgi > mapserver work for other stuff (like shapefiles) if there is no > oracle in the mix? > > It looks like some sort of subtle environment type issue, but your > efforts seem pretty comprehensive. > > Best regards, > From warmerdam at POBOX.COM Tue Jan 23 15:37:57 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 23 Jan 2007 18:37:57 -0500 Subject: Help Setting up FCGI for Oracle Connection pooling In-Reply-To: <45B68B76.9020907@swoodbridge.com> Message-ID: Stephen Woodbridge wrote: > Frank, > > I add the DEBUG ON to the MAP and the LAYER and get as output: > > [Tue Jan 23 16:16:57 2007] [warn] FastCGI: (dynamic) server > "/usr/lib/cgi-bin/mapserv410.fcgi" restarted (pid 19181) > [Tue Jan 23 16:16:57 2007] [error] [client 129.44.191.48] FastCGI: > server "/usr/lib/cgi-bin/mapserv410.fcgi" stderr: CGI Request 1 on > process 19179 > [Tue Jan 23 16:16:57 2007] [error] [client 129.44.191.48] FastCGI: > server "/usr/lib/cgi-bin/mapserv410.fcgi" stderr: msDrawMap(): Layer 0 > (color_symbol), 0.000s > [Tue Jan 23 16:16:57 2007] [error] [client 129.44.191.48] FastCGI: > server "/usr/lib/cgi-bin/mapserv410.fcgi" stderr: > msOracleSpatialLayerOpen called with: GEOMETRY FROM MEXSTATES USING SRID > 4326 FILTER VERSION 10g > [Tue Jan 23 16:16:57 2007] [error] [client 129.44.191.48] FastCGI: > server "/usr/lib/cgi-bin/mapserv410.fcgi" stderr: > msOracleSpatialLayerClose was called. Layer connection: > mapserver1/w2gi at test > [Tue Jan 23 16:16:57 2007] [warn] FastCGI: (dynamic) server > "/usr/lib/cgi-bin/mapserv410.fcgi" (pid 19179) terminated by calling > exit with status '0' > > Does this tell you anything? Steve, I find it odd that the layer is being closed if the open never actually succeeded. If it did succeed then ... well that would be interesting. > Is there anyway to get more debug output, short of adding more print > statements to the executable? I am not aware of a way to get more debug information short of adding extra debug statements yourself. 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 | President OSGeo, http://osgeo.org From richard.greenwood at GMAIL.COM Tue Jan 23 15:45:07 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Tue, 23 Jan 2007 16:45:07 -0700 Subject: raster output streched at CGI Query mode In-Reply-To: Message-ID: On 1/23/07, David Stajan wrote: > Richard, > > Thats exactly whats happening, my map is projetced using > > PROJECTION > "proj=utm" > "zone=10" > "ellps=GRS80" > "datum=NAD83" > "units=ft" > END > > but my raster has this projection > > PROJECTION > "proj=lcc" > "ellps=GRS80" > "datum=NAD83" > "lon_0=-120.5" > "lat_1=45.83333333333334" > "lat_2=47.33333333333334" > "lat_0=45.33333333333334" > "x_0=500000" > "y_0=0" > "units=m" > "no_defs" > END > > Looks like the bug wasn't fixed. Is there any kind of work around? > > Thanks, > DaviD I just re-projected all my rasters into the same projection. On one hand it's a lot of work, but on the other hand I figure it might improve performance a bit. -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From richard.greenwood at GMAIL.COM Tue Jan 23 15:47:25 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Tue, 23 Jan 2007 16:47:25 -0700 Subject: raster output streched at CGI Query mode In-Reply-To: <45B611050200008F0000624F@co5.dnr.state.mn.us> Message-ID: On 1/23/07, Steve Lime wrote: > This is weird though since the output isn't munged with a normal browse > call, correct? Rasters are handled, or should be anyway, the exact > same > way for both "draws". Can a new bug be filed? Yep, pretty strange. I'll try to create a new bug report with a working URL so you can see it better. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From aude.allain.ext at MAPPY.COM Wed Jan 24 00:53:10 2007 From: aude.allain.ext at MAPPY.COM (Aude Allain) Date: Wed, 24 Jan 2007 09:53:10 +0100 Subject: msGetLabelSize() : Could not find/open font {Scanned} {Scanned} Message-ID: My fontset.txt is : Arial (TrueType) C:/WINDOWS/Fonts/ARIAL.TTF Arial Bold (TrueType) C:/WINDOWS/Fonts/ARIALBD.TTF Arial Italic (TrueType) C:/WINDOWS/Fonts/ARIALI.TTF Arial Bold Italic (TrueType) C:/WINDOWS/Fonts/ARIALBI.TTF Times New Roman (TrueType) C:/WINDOWS/Fonts/TIMES.TTF Times New Roman bold (TrueType) C:/WINDOWS/Fonts/TIMESBD.TTF Times New Roman italic (TrueType) C:/WINDOWS/Fonts/TIMESI.TTF Times New Roman bold_italic (TrueType) C:/WINDOWS/Fonts/TIMESBI.TTF TrebucNet MS (TrueType) C:/WINDOWS/Fonts/trebuc.ttf Trebuchet MS Bold (TrueType) C:/WINDOWS/Fonts/trebucb.ttf Trebuchet MS Italic (TrueType) C:/WINDOWS/Font/strebuci.ttf Trebuchet MS Bold Italic (TrueType) C:/WINDOWS/Fonts/trebucbi.ttf 1. The font alias in the layer is correct. LAYER .... FONT "Arial" .... FONT "Arial" END With this FONT, I get the following error : msGetLabelSize(): Could not find/open font. If I add "(TrueType)" --> FONT "Arial (TrueType)", I get the following error : msGetLabelSize(): Requested font (Arial (TrueType)) not found. So, I don't add TrueType. 2. I use an absolute path in my the mapfile to define the fonts.txt file. FONTSET "c:/ms4w/Apache/htdocs/viewer/mapfile/font/fontset.txt" 3. I would like to have more information about permissions because in some forums, it is said to check the font permissions, but I don't know how to do that. 4. The Arial font is in C:/WINDOWS/Fonts/ARIAL.TTF directory. I tried to put the font file in the same directory as the fontset.txt file and replaced C:/WINDOWS/Fonts/ARIAL.TTF by ARIAL.TTF and I have always the same error. 5. Mapserver is compiled with freetype support. MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PD F OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPP ORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPP ORTS=SOS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OR ACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG Thanks a lot, aude -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Fawcett, David Envoy??: mardi 23 janvier 2007 20:48 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: Re: [UMN_MAPSERVER-USERS] msGetLabelSize() : Could not find/open font {Scanned} {Scanned} I think that it is clear that the problem is that MapServer can't find the font file based on the name that you have specified in your layer. This could result from many different errors: 1. The font alias name in your layer cannot be found in your fonts.txt file. Case sensitivity applies on 'nix boxes. 2. The relative path that you have specified at FONTSET in your MAP object does not point to the fonts.txt file that you have created. Try using an absolute path to your fonts.txt file. 3. It could be a permissions problem. 4. The absolute path to the font file as it is written in fonts.txt may not correctly point to the font file. 5. MapServer wasn't compiled with freetype support. To rule out an issue with MapScript, you could create a map image using mapserver cgi or shp2img.exe. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Aude Allain Sent: Tuesday, January 23, 2007 2:32 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] msGetLabelSize() : Could not find/open font {Scanned} {Scanned} Hi, These solutions don't work. I have always the same error. Do you know what is the problem ? aude -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Siki Zoltan Envoy??: lundi 22 janvier 2007 20:27 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: Re: [UMN_MAPSERVER-USERS] msGetLabelSize() : Could not find/open font {Scanned} {Scanned} Hi, 1. Try to remove (TrueType) from your font set file. 2. Use slash instead of backslash in the path in the font set file even on Windows for example Arial C:/WINDOWS/Fonts/ARIAL.TTF Bye, Zoltan On Mon, 22 Jan 2007, Aude Allain wrote: > Hello, > > I'm trying to display labels on my map, but I get the following error > : > : msGetLabelSize(): Could not find/open font. > > I defined a FONTSET FILE in the mapfile which contains font paths : > FONTSET "../font/fontset.txt" > > Content of fontset.txt : > > Arial (TrueType) C:\WINDOWS\Fonts\ARIAL.TTF > > And, the layer on which I want to see the labels is defined in the > mapfile : > > LAYER > > NAME " A0" > > CONNECTIONTYPE oraclespatial > > CONNECTION "user at bd/pwd" > > DATA "GEOM FROM MN_A0 USING UNIQUE ID SRID 8307 " > > STATUS DEFAULT > > TYPE POLYGON > > MINSCALE 150 > > MAXSCALE 500 > > GROUP "Administratif" > > TOLERANCE 100 > > TOLERANCEUNITS pixels > > LABELITEM "NAME" > > LABELCACHE on > > CLASS > > NAME "Pays - A0" > > COLOR 255 216 176 > > OUTLINECOLOR 32 32 32 > > TEMPLATE "ttt_query.html" > > LABEL > > MINFEATURESIZE 1 > > MINDISTANCE 1 > > POSITION CC > > TYPE TRUETYPE > > FONT "Arial" > > SIZE 12 > > ANTIALIAS TRUE > > COLOR 0 0 0 > > OUTLINECOLOR 255 255 255 > > END > > END > > > > END # A0 > > > > > > The font named 'Arial' is in c:/Windows/font. > > > > On the Web, it is said to check the Apache user or mapserver has > permission to access the font file and the ttf files. But I don't know > how to do that. > > > > Could you hep me ? > > > > I use : > > - windows xp > > - ms4w : php/mapscript 4.10, apache 2, php5.2 > > - Oracle spatial 10g > > > > > > Aude > > > > From pgiannini at BYTEWISE.IT Wed Jan 24 01:09:27 2007 From: pgiannini at BYTEWISE.IT (Pietro Giannini) Date: Wed, 24 Jan 2007 10:09:27 +0100 Subject: USGS DEM in mapserver Message-ID: Hi list, Is anyone experienced about the USGS gTopo30 dataset and his use with mapserver? This dataset contain a binary raster in 16 bit signed integer (.dem). The data can be found here (http://edc.usgs.gov/products/elevation/gtopo30/gtopo30.html) thank for any hint pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E -------------- next part -------------- An HTML attachment was scrubbed... URL: From siki at AGT.BME.HU Wed Jan 24 04:30:46 2007 From: siki at AGT.BME.HU (Siki Zoltan) Date: Wed, 24 Jan 2007 11:30:46 -0100 Subject: msGetLabelSize() : Could not find/open font {Scanned} In-Reply-To: <2ABF75C13655594FA29F6C6C52FCA21F020A1E2F@chicago.mappy.priv> Message-ID: Hi Aude, I have told you to change your fonset file. The first word should be an alias name. AFAIK it must be one word! Change your fontset file to this: Arial C:/WINDOWS/Fonts/ARIAL.TTF Arial_Bold C:/WINDOWS/Fonts/ARIALBD.TTF ... etc Zoltan On Wed, 24 Jan 2007, Aude Allain wrote: > My fontset.txt is : > > Arial (TrueType) C:/WINDOWS/Fonts/ARIAL.TTF > Arial Bold (TrueType) C:/WINDOWS/Fonts/ARIALBD.TTF > Arial Italic (TrueType) C:/WINDOWS/Fonts/ARIALI.TTF > Arial Bold Italic (TrueType) C:/WINDOWS/Fonts/ARIALBI.TTF > Times New Roman (TrueType) C:/WINDOWS/Fonts/TIMES.TTF > Times New Roman bold (TrueType) C:/WINDOWS/Fonts/TIMESBD.TTF > Times New Roman italic (TrueType) C:/WINDOWS/Fonts/TIMESI.TTF > Times New Roman bold_italic (TrueType) C:/WINDOWS/Fonts/TIMESBI.TTF > TrebucNet MS (TrueType) C:/WINDOWS/Fonts/trebuc.ttf > Trebuchet MS Bold (TrueType) C:/WINDOWS/Fonts/trebucb.ttf > Trebuchet MS Italic (TrueType) C:/WINDOWS/Font/strebuci.ttf > Trebuchet MS Bold Italic (TrueType) C:/WINDOWS/Fonts/trebucbi.ttf > > > > 1. The font alias in the layer is correct. > > LAYER > .... > FONT "Arial" > .... FONT "Arial" > END > > With this FONT, I get the following error : msGetLabelSize(): Could not find/open font. > > > If I add "(TrueType)" --> FONT "Arial (TrueType)", I get the following error : msGetLabelSize(): Requested font (Arial (TrueType)) not found. > > So, I don't add TrueType. > > 2. I use an absolute path in my the mapfile to define the fonts.txt file. > > FONTSET "c:/ms4w/Apache/htdocs/viewer/mapfile/font/fontset.txt" > > 3. I would like to have more information about permissions because in some forums, it is said to check the font permissions, but I don't know how to do that. > > 4. The Arial font is in C:/WINDOWS/Fonts/ARIAL.TTF directory. I tried to put the font file in the same directory as the fontset.txt file and replaced C:/WINDOWS/Fonts/ARIAL.TTF by ARIAL.TTF and I have always the same error. > > > 5. Mapserver is compiled with freetype support. > > MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PD > F OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPP > ORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPP > ORTS=SOS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OR > ACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG > > Thanks a lot, > > aude > > -----Message d'origine----- > De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Fawcett, David > Envoy??: mardi 23 janvier 2007 20:48 > ??: MAPSERVER-USERS at LISTS.UMN.EDU > Objet?: Re: [UMN_MAPSERVER-USERS] msGetLabelSize() : Could not find/open font {Scanned} {Scanned} > > I think that it is clear that the problem is that MapServer can't find the font file based on the name that you have specified in your layer. This could result from many different errors: > > 1. The font alias name in your layer cannot be found in your fonts.txt file. Case sensitivity applies on 'nix boxes. > > 2. The relative path that you have specified at FONTSET in your MAP object does not point to the fonts.txt file that you have created. Try using an absolute path to your fonts.txt file. > > 3. It could be a permissions problem. > > 4. The absolute path to the font file as it is written in fonts.txt may not correctly point to the font file. > > 5. MapServer wasn't compiled with freetype support. > > To rule out an issue with MapScript, you could create a map image using mapserver cgi or shp2img.exe. > > David. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Aude Allain > Sent: Tuesday, January 23, 2007 2:32 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] msGetLabelSize() : Could not find/open font {Scanned} {Scanned} > > > Hi, > > These solutions don't work. I have always the same error. > > Do you know what is the problem ? > > aude > > -----Message d'origine----- > De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Siki Zoltan Envoy??: lundi 22 janvier 2007 20:27 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: Re: [UMN_MAPSERVER-USERS] msGetLabelSize() : Could not find/open font {Scanned} {Scanned} > > Hi, > > 1. Try to remove (TrueType) from your font set file. > 2. Use slash instead of backslash in the path in the font set file even on > Windows > > for example > Arial C:/WINDOWS/Fonts/ARIAL.TTF > > Bye, > Zoltan > > On Mon, 22 Jan 2007, Aude Allain wrote: > > > Hello, > > > > I'm trying to display labels on my map, but I get the following error > > : > > : msGetLabelSize(): Could not find/open font. > > > > I defined a FONTSET FILE in the mapfile which contains font paths : > > FONTSET "../font/fontset.txt" > > > > Content of fontset.txt : > > > > Arial (TrueType) C:\WINDOWS\Fonts\ARIAL.TTF > > > > And, the layer on which I want to see the labels is defined in the > > mapfile : > > > > LAYER > > > > NAME " A0" > > > > CONNECTIONTYPE oraclespatial > > > > CONNECTION "user at bd/pwd" > > > > DATA "GEOM FROM MN_A0 USING UNIQUE ID SRID 8307 " > > > > STATUS DEFAULT > > > > TYPE POLYGON > > > > MINSCALE 150 > > > > MAXSCALE 500 > > > > GROUP "Administratif" > > > > TOLERANCE 100 > > > > TOLERANCEUNITS pixels > > > > LABELITEM "NAME" > > > > LABELCACHE on > > > > CLASS > > > > NAME "Pays - A0" > > > > COLOR 255 216 176 > > > > OUTLINECOLOR 32 32 32 > > > > TEMPLATE "ttt_query.html" > > > > LABEL > > > > MINFEATURESIZE 1 > > > > MINDISTANCE 1 > > > > POSITION CC > > > > TYPE TRUETYPE > > > > FONT "Arial" > > > > SIZE 12 > > > > ANTIALIAS TRUE > > > > COLOR 0 0 0 > > > > OUTLINECOLOR 255 255 255 > > > > END > > > > END > > > > > > > > END # A0 > > > > > > > > > > > > The font named 'Arial' is in c:/Windows/font. > > > > > > > > On the Web, it is said to check the Apache user or mapserver has > > permission to access the font file and the ttf files. But I don't know > > how to do that. > > > > > > > > Could you hep me ? > > > > > > > > I use : > > > > - windows xp > > > > - ms4w : php/mapscript 4.10, apache 2, php5.2 > > > > - Oracle spatial 10g > > > > > > > > > > > > Aude > > > > > > > > > From fsimon at UNIVALI.BR Wed Jan 24 03:22:23 2007 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Wed, 24 Jan 2007 09:22:23 -0200 Subject: Help Setting up FCGI for Oracle Connection pooling In-Reply-To: <45B6846E.2030208@swoodbridge.com> Message-ID: Hi Stephen, This error (without error code, just point) that the Mapserver reported occurs when the Oracle Spatial driver can't connect with Oracle, when the Oracle variables are not present in the system (ORACLE_HOME and/or ORACLE_BASE). Did you define it inside the httpd.conf? Or, how you reported, the Mapserver can access the Oracle libs, inside the path the ORACLE_HOME refer. How you report you can change the permissions to the Ooracle director. The folders, just the folders, need the execution permissions (+x). I don believe that the Mapserver as FastCGI needs special access, here I use the PHP as FastCGI and I didn't change any special about the Oracle. Another thing that I saw for FastCGI is the Oracle variables in the Apache. When you define the Oracle Libs inside the httpd.conf the FastCGI can't read correctly, you need to define the variables inside the FastCGI module (the ). Unfortunately I am not in the Lab today (just tomorrow) to have access to my httpd.conf. I will send to you the configure that I use here tomorrow. Best regards. --------------------------------------------- Fernando Simon UMN Mapserver and Oracle Spatial developer --------------------------------------------- Citando Stephen Woodbridge : > Frank Warmerdam wrote: > > Stephen Woodbridge wrote: > >> Hi, > >> > >> This is my first attempt to get FastCGI running with Mapserver > to do > >> Oracle connection pooling, and it is not working. Any help would > be > >> appreciated. > >> > >> I have the mapfile working for CGI so I know I have the system > and > >> environment set up correctly, but in fcgi mode I get: > >> > >> This is the error message: > >> > >> msDrawMap(): Image handling error. Failed to draw layer named > >> 'Mexican_States'. > >> msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create > OCI > >> Handlers. Connection failure. Check the connection string. > Error: . > > > > Steve, > > > > It seems like you have done everything right. Does the fastcgi > > mapserver work for other stuff (like shapefiles) if there is no > > oracle in the mix? > > > > It looks like some sort of subtle environment type issue, but > your > > efforts seem pretty comprehensive. > > > > Best regards, > > > > Hi Frank, > > Good call, I should have thought of that! Yes, if I change the > mapfile > to a shapefile only mapfile it runs just fine in fastcgi. > > Yesterday, when I was setting up the Oracle connection I got the > same > error message and resolved it by fixing the file permission on the > > /home2/oracle directory tree. So I guess there are still some > issues > there. I'll go back over that again maybe I missed something. > > Does the fastcgi version need access to different oracle client > files > that the CGI does not need? > > Thanks for the quick response, > -Steve W > ------------------------------------------------- Univali - Webmail - http://webmail.univali.br From woodbri at SWOODBRIDGE.COM Wed Jan 24 06:39:48 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 24 Jan 2007 09:39:48 -0500 Subject: FastCGI/Oracle Solved In-Reply-To: <1169637743.45b7416f3cfb0@webmail.univali.br> Message-ID: Hi Fernando, Thank you for your post. It lead me to the fix. I added the environment variables here and I am able to make connections now. Options ExecCGI SetHandler fastcgi-script SetEnv PROJ_LIB /usr/share/proj SetEnv LD_LIBRARY_PATH /home2/oracle/cl10/lib SetEnv TNS_ADMIN /home/swoodbridge/.oracle/ SetEnv ORACLE_HOME /home2/oracle/cl10/ Defining them here does NOT work: FastCgiConfig -initial-env PROJ_LIB=/usr/share/proj -initial-env LD_LIBRARY_PATH=/home2/oracle/cl10/lib -initial-env TNS_ADMIN=/home/swoodbridge/.oracle/ -initial-env ORACLE_HOME=/home2/oracle/cl10/ -appConnTimeout 60 -idle-timeout 60 -init-start-delay 1 -minProcesses 2 -maxClassProcesses 20 -startDelay 5 I tried to add a comment to the Documentation Page for FastCGI but the disk is full :( and this needs to be documented! -Steve Fernando Simon wrote: > Hi Stephen, > This error (without error code, just point) that the Mapserver > reported occurs when the Oracle Spatial driver can't connect with > Oracle, when the Oracle variables are not present in the system > (ORACLE_HOME and/or ORACLE_BASE). Did you define it inside the > httpd.conf? > Or, how you reported, the Mapserver can access the Oracle libs, > inside the path the ORACLE_HOME refer. How you report you can change > the permissions to the Ooracle director. The folders, just the > folders, need the execution permissions (+x). I don believe that the > Mapserver as FastCGI needs special access, here I use the PHP as > FastCGI and I didn't change any special about the Oracle. > Another thing that I saw for FastCGI is the Oracle variables in > the Apache. When you define the Oracle Libs inside the httpd.conf the > FastCGI can't read correctly, you need to define the variables inside > the FastCGI module (the ). Unfortunately I am > not in the Lab today (just tomorrow) to have access to my httpd.conf. > I will send to you the configure that I use here tomorrow. > Best regards. > > --------------------------------------------- > Fernando Simon > UMN Mapserver and Oracle Spatial developer > --------------------------------------------- > > > Citando Stephen Woodbridge : > >> Frank Warmerdam wrote: >>> Stephen Woodbridge wrote: >>>> Hi, >>>> >>>> This is my first attempt to get FastCGI running with Mapserver >> to do >>>> Oracle connection pooling, and it is not working. Any help would >> be >>>> appreciated. >>>> >>>> I have the mapfile working for CGI so I know I have the system >> and >>>> environment set up correctly, but in fcgi mode I get: >>>> >>>> This is the error message: >>>> >>>> msDrawMap(): Image handling error. Failed to draw layer named >>>> 'Mexican_States'. >>>> msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create >> OCI >>>> Handlers. Connection failure. Check the connection string. >> Error: . >>> Steve, >>> >>> It seems like you have done everything right. Does the fastcgi >>> mapserver work for other stuff (like shapefiles) if there is no >>> oracle in the mix? >>> >>> It looks like some sort of subtle environment type issue, but >> your >>> efforts seem pretty comprehensive. >>> >>> Best regards, >>> >> Hi Frank, >> >> Good call, I should have thought of that! Yes, if I change the >> mapfile >> to a shapefile only mapfile it runs just fine in fastcgi. >> >> Yesterday, when I was setting up the Oracle connection I got the >> same >> error message and resolved it by fixing the file permission on the >> >> /home2/oracle directory tree. So I guess there are still some >> issues >> there. I'll go back over that again maybe I missed something. >> >> Does the fastcgi version need access to different oracle client >> files >> that the CGI does not need? >> >> Thanks for the quick response, >> -Steve W >> > > > > > ------------------------------------------------- > Univali - Webmail - http://webmail.univali.br From francois.bruneau at WESTIMAGES.COM Wed Jan 24 06:52:19 2007 From: francois.bruneau at WESTIMAGES.COM (Fran=?ISO-8859-1?Q?=E7ois?= Bruneau) Date: Wed, 24 Jan 2007 15:52:19 +0100 Subject: read symbol angle from database Message-ID: Hi, I'm currently testing MapServer for pipes visualization purposes. This application includes gates objects (type point), which symbols have to be oriented accordingly with the pipe (type line) they're placed on. The orientation information is available, as an angle in degrees, in my dataset in a column from an Oracle table. My question is : is there any way to combine the "ANGLE" statement in the MapFile with a SQL query? The idea would be to write something like : ANGLE "ROTATION FROM table_gates" Thanks in advance, Fran?ois. From warmerdam at POBOX.COM Wed Jan 24 08:12:54 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 24 Jan 2007 11:12:54 -0500 Subject: read symbol angle from database In-Reply-To: <25583941.130551169650339729.JavaMail.servlet@kundenserver> Message-ID: Fran?ois Bruneau wrote: > Hi, > > I'm currently testing MapServer for pipes visualization purposes. This > application includes gates objects (type point), which symbols have to be > oriented accordingly with the pipe (type line) they're placed on. > > The orientation information is available, as an angle in degrees, in my > dataset in a column from an Oracle table. My question is : is there any way > to combine the "ANGLE" statement in the MapFile with a SQL query? The idea > would be to write something like : > > ANGLE "ROTATION FROM table_gates" Fran?ois, I'm not very savvy about now the oracle layer type works in MapServer, but there is a layer keyword called "ANGLEITEM" which you can use to name the attribute with the angle in it. I think this should work as long as the angle field is in your main query. 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 | President OSGeo, http://osgeo.org From ernesvega at GMAIL.COM Wed Jan 24 07:44:15 2007 From: ernesvega at GMAIL.COM (Ernesto Vega) Date: Wed, 24 Jan 2007 12:44:15 -0300 Subject: projection question Message-ID: Hi, i have succesfully set up mapserver version 4.10 on a fedora core 4 system. My settings are: ---------------------------------------------------------------------------------------------------- MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER SUPPORTS=WCS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE ---------------------------------------------------------------------------------------------------- I'm working with ka-map as a visual tool and it works fine but...... If i set up a WFS on it to display points stored on a postgis database, the draw like 80 feet away from where they should be. I also tried msCross and they draw on the same position that in ka-map so i guess that it could be a projection issue. I used ogrinfo to find out the SRS of my shapefile, and i got: ------------------------------------------------------------ Layer SRS WKT: GEOGCS["unnamed", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.257223563], TOWGS84[0,0,0,-0,-0,-0,0]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433]] ------------------------------------------------------------------------------------ but there is no projection information !!!! So i did not put any projection information on my map definition file. I decided to use an SRID 4130 in my postgres database for the points, but i got the results you already know. It's very similar but the UNIT parameter is a little bit different than the one i have on my shapefile. Any ideas of what is missing ??? Ernesto From richard.greenwood at GMAIL.COM Wed Jan 24 08:57:33 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Wed, 24 Jan 2007 09:57:33 -0700 Subject: raster output streched at CGI Query mode In-Reply-To: Message-ID: Okay, I created bug 2017 with a couple working URLs to illustrate the problem. -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From dls at INFORMGIS.COM Wed Jan 24 12:37:19 2007 From: dls at INFORMGIS.COM (David Stajan) Date: Wed, 24 Jan 2007 14:37:19 -0600 Subject: raster output streched at CGI Query mode Message-ID: Thanks Richard! On Wed, 24 Jan 2007 09:57:33 -0700, Richard Greenwood wrote: >Okay, I created bug 2017 with a couple working URLs to illustrate the problem. > >-- >Richard Greenwood >richard.greenwood at gmail.com >www.greenwoodmap.com From csmith at SKIO.USG.EDU Wed Jan 24 12:43:00 2007 From: csmith at SKIO.USG.EDU (Colton Smith) Date: Wed, 24 Jan 2007 14:43:00 -0600 Subject: problem with tables having names containing underscores Message-ID: Hi: I just upgraded to postgresql-8.2.1 and I'm having trouble with my mapserver application. I use php_mapscript and setFilter to impose the following condition: currents_measurement_date_id = 18158. Using mapserver-4.10.0, the query fails thusly (snippet of the database logfile): ERROR: argument of AND must be type boolean, not type currents STATEMENT: DECLARE mycursor BINARY CURSOR FOR SELECT "speed"::text,"theta"::text,asbinary(force_collection(force_2d(geom)),'XDR'),currents_id::text from currents WHERE (currents) and (geom && setSRID( 'BOX3D(-81.5 30.58,-79.1 32.62)'::BOX3D,4326) ) ERROR: cursor "mycursor" does not exist STATEMENT: CLOSE mycursor Evidently, the filter condition is being truncated. See the WHERE clause. Using an older version of mapserver (4.8.1) against postgresql-8.2.1, the query seemingly hangs forever but doesn't yield any errors ... at least until I stop the postmaster. Under postgresql-8.1.5 and mapserver-4.8.1, things had been working very well. The same query would return about 1,000 rows. I'm using postgis-1.2.1. Anybody have this problem? Any help would be appreciated! Thanks From mitchelljj98 at GMAIL.COM Wed Jan 24 14:24:14 2007 From: mitchelljj98 at GMAIL.COM (John Mitchell) Date: Wed, 24 Jan 2007 17:24:14 -0500 Subject: EPSG conversion Message-ID: Hi, Below is a gdalinfo dump and I need to know which of the listed EPSG values I should use for: LAYER Driver: GTiff/GeoTIFF Size is 9102, 9268 Coordinate System is: PROJCS["WGS 84 / UTM zone 15N", GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.2572235630016, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4326"]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",-93], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",500000], PARAMETER["false_northing",0], UNIT["metre",1, AUTHORITY["EPSG","9001"]], AUTHORITY["EPSG","32615"]] Origin = (778859.800149363470000,3316677.809611396900000) Pixel Size = (1.000000000000000,-1.000000000000000) Metadata: AREA_OR_POINT=Area TIFFTAG_IMAGEDESCRIPTION=Space Imaging TIFFTAG_DATETIME=2002:12:17 22:21:17 TIFFTAG_XRESOLUTION=1 TIFFTAG_YRESOLUTION=1 TIFFTAG_RESOLUTIONUNIT=1 (unitless) Corner Coordinates: Upper Left ( 778859.800, 3316677.810) ( 90d 6'38.81"W, 29d56'57.43"N) Lower Left ( 778859.800, 3307409.810) ( 90d 6'47.49"W, 29d51'56.70"N) Upper Right ( 787961.800, 3316677.810) ( 90d 0'59.69"W, 29d56'49.87"N) Lower Right ( 787961.800, 3307409.810) ( 90d 1'8.66"W, 29d51'49.17"N) Center ( 783410.800, 3312043.810) ( 90d 3'53.66"W, 29d54'23.32"N) Band 1 Block=9102x1 Type=UInt16, ColorInterp=Red Band 2 Block=9102x1 Type=UInt16, ColorInterp=Green Band 3 Block=9102x1 Type=UInt16, ColorInterp=Blue -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From mitchelljj98 at GMAIL.COM Wed Jan 24 14:30:54 2007 From: mitchelljj98 at GMAIL.COM (John Mitchell) Date: Wed, 24 Jan 2007 17:30:54 -0500 Subject: EPSG conversion Message-ID: Hi, Below is a gdalinfo dump and I need to know which of the listed EPSG values I should use for: LAYER PROJECTION "INIT=EPSG:32615" END Multiple EPSG codes are listed below and I am guessing that it is 32615 from AUTHORITY["EPSG","4326"]], Driver: GTiff/GeoTIFF Size is 9102, 9268 Coordinate System is: PROJCS["WGS 84 / UTM zone 15N", GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.2572235630016, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4326"]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",-93], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",500000], PARAMETER["false_northing",0], UNIT["metre",1, AUTHORITY["EPSG","9001"]], AUTHORITY["EPSG","32615"]] Origin = (778859.800149363470000,3316677.809611396900000) Pixel Size = (1.000000000000000,-1.000000000000000 ) Metadata: AREA_OR_POINT=Area TIFFTAG_IMAGEDESCRIPTION=Space Imaging TIFFTAG_DATETIME=2002:12:17 22:21:17 TIFFTAG_XRESOLUTION=1 TIFFTAG_YRESOLUTION=1 TIFFTAG_RESOLUTIONUNIT=1 (unitless) Corner Coordinates: Upper Left ( 778859.800, 3316677.810) ( 90d 6'38.81"W, 29d56'57.43"N) Lower Left ( 778859.800, 3307409.810) ( 90d 6'47.49"W, 29d51'56.70"N) Upper Right ( 787961.800, 3316677.810) ( 90d 0'59.69"W, 29d56'49.87"N) Lower Right ( 787961.800, 3307409.810) ( 90d 1'8.66"W, 29d51'49.17"N) Center ( 783410.800, 3312043.810) ( 90d 3' 53.66"W, 29d54'23.32"N) Band 1 Block=9102x1 Type=UInt16, ColorInterp=Red Band 2 Block=9102x1 Type=UInt16, ColorInterp=Green Band 3 Block=9102x1 Type=UInt16, ColorInterp=Blue Thanks, -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Wed Jan 24 16:02:25 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 24 Jan 2007 19:02:25 -0500 Subject: EPSG conversion In-Reply-To: Message-ID: John Mitchell wrote: > Hi, > > Below is a gdalinfo dump and I need to know which of the listed EPSG > values I should use for: > LAYER > PROJECTION > "INIT=EPSG:32615" > END > > Multiple EPSG codes are listed below and I am guessing that it is 32615 > from AUTHORITY["EPSG","4326"]], John, EPSG code 32615 is indeed the one associated with the root PROJCS object, so that is what should be used. The others label datums, spheroids and units. 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 | President OSGeo, http://osgeo.org From ljfong at SDF.LONESTAR.ORG Wed Jan 24 16:49:03 2007 From: ljfong at SDF.LONESTAR.ORG (Hong) Date: Wed, 24 Jan 2007 17:49:03 -0700 Subject: MapScript C# (MapServer 4.10): mapscriptPINVOKE problem on 64-bit platform. Message-ID: Hi, I was trying to run mapserver compiled on a 64-bit Intel dual xeon processor machine running Windows Server 2003 R2 64-bit edition. On map object creation, the subroutine threw an exception "The type initializer for 'mapscriptPINVOKE' threw an exception.". The stack trace was: at mapscriptPINVOKE.new_mapObj(String jarg1) at mapObj..ctor(String filename) I wrote a small test C++ application on the 64-bit machine that tried to create a map object by compiling and linking it to mapscript.lib and mapscript_i.lib. The application ended up with the error: Debug Assertion Failed! Program: D:\TGI\Developer\MapServerTest\debug\MapServerTest.exe File: dbgheap.c Line: 1252 Expression: _CrtIsValidHeapPointer(pUserData) So it looked like I was having problem with the CRT library on the 64-bit machine. Looking at libmap.dll revealed that it depended on c:\windows\syswow64\MSVCRT.DLL (is this the correct CRT to load?) The compiler was MS Visual Studio 2005. The C++ test program itself: // MapServerTest.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include #include "map.h" int _tmain(int argc, _TCHAR* argv[]) { std::cout << "Hello World" << std::endl; mapObj* p_mapObj = msNewMapObj(); return 0; } At this point I'm stumped on where to proceed next and can use any help/suggestion. Hong From louvy.joseph at GMAIL.COM Wed Jan 24 18:14:31 2007 From: louvy.joseph at GMAIL.COM (Louvy Joseph) Date: Wed, 24 Jan 2007 18:14:31 -0800 Subject: Support for WFS-T Message-ID: Hi, I am newbie to the GIS. Are there any plans for supporting WFS-T in mapserver? I realize that mapserver supports WFS server feature but I am looking for the ability to write back to WFS server. If not, what are the non-mapserver opensource components which have support for WFS-T? Any ideas appreciated. Thanks Louvy Joseph From ed at TOPOZONE.COM Wed Jan 24 18:46:07 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 24 Jan 2007 21:46:07 -0500 Subject: EPSG conversion In-Reply-To: A<45B7F391.3070501@pobox.com> Message-ID: John - If I can elaborate on Frank's answer just a bit, you can read the "Coordinate System" as a set of nested definitions, delimited by those square brackets. The AUTHORITY for each definition is associated with it, so SPHEROID[...AUTHORITY["EPSG","7030"]] shows that the "7030" is enclosed in the SPHEROID definition. The PROJCS is the Projected Coordinate System (what we informally call the "projection") and so you'll see that the 32615 AUTHORITY object is the one associated with that object. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Frank Warmerdam Sent: Wednesday, January 24, 2007 7:02 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] EPSG conversion John Mitchell wrote: > Hi, > > Below is a gdalinfo dump and I need to know which of the listed EPSG > values I should use for: > LAYER > PROJECTION > "INIT=EPSG:32615" > END > > Multiple EPSG codes are listed below and I am guessing that it is > 32615 from AUTHORITY["EPSG","4326"]], John, EPSG code 32615 is indeed the one associated with the root PROJCS object, so that is what should be used. The others label datums, spheroids and units. 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 | President OSGeo, http://osgeo.org From warmerdam at POBOX.COM Wed Jan 24 20:38:04 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 24 Jan 2007 23:38:04 -0500 Subject: Support for WFS-T In-Reply-To: <45B81287.5050301@gmail.com> Message-ID: Louvy Joseph wrote: > Hi, > > I am newbie to the GIS. > > Are there any plans for supporting WFS-T in mapserver? I realize that > mapserver supports WFS server feature but I am looking for the ability > to write back to WFS server. If not, what are the non-mapserver > opensource components which have support for WFS-T? Any ideas appreciated. Louvy, There is no support for WFS-T in MapServer, and no plans I am aware of to add it. In fact, I think it would be a poor fit for a couple reasons: o MapServer's current feature model is read-only, and adding write would be quite a bit of work. o MapServer has a rather "weakly typed" feature model - at least as regards attributes, and this doesn't very naturally support update. In fact, I think it moderately hurts the usefulness of the readonly WFS for some applications. GeoServer is the premiere open source WFS-T implementation. I think the Deegree folks also have a WFS-T though I don't know much about it. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From david at CSE.UCDAVIS.EDU Wed Jan 24 20:57:40 2007 From: david at CSE.UCDAVIS.EDU (David Isaacson) Date: Wed, 24 Jan 2007 20:57:40 -0800 Subject: Label with substring of metadata Message-ID: Hi, I want to label my map with a substring of the metadata. I've got a freeway map, and all of the freeways are labeled as "Interstate 5" and "US Highway 6". I just want the number. Is this possible? I thought I might try to add that data to the .dbf file, using Excel. And it works using shp2img, but when I use ka-map to create an interactive map no roads are drawn at all (and no error messages are given either). So what the hell is going on? What's the right way to add metadata to a shapefile (assume I can't afford to buy ArcGIS)? And is there an easier way to do this whole labeling thing? Thanks. David From pgiannini at BYTEWISE.IT Thu Jan 25 01:04:49 2007 From: pgiannini at BYTEWISE.IT (Pietro Giannini) Date: Thu, 25 Jan 2007 10:04:49 +0100 Subject: USGS DEM in mapserver Message-ID: Hi list, Is anyone experienced about the USGS gTopo30 dataset and his use with mapserver? This dataset contain a binary elevation raster (.dem) in 16 bit signed integer. Data is here: (http://edc.usgs.gov/products/elevation/gtopo30/gtopo30.html) thank for any hint pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: From toni at SIGTE.UDG.ES Thu Jan 25 01:32:22 2007 From: toni at SIGTE.UDG.ES (=?ISO-8859-1?Q?toni_hern=E1ndez?=) Date: Thu, 25 Jan 2007 10:32:22 +0100 Subject: wms client not supporting my map file projection Message-ID: hi all, I have a wms layer in my map file. The server that provides the wms layer does not support the proj="latlong" of my map file. I really need to keep my map file with latlong projection. I am very confused with all this projection stuff (proj, datum, ellps) so is quite plausible I am doing something really silly. I keep getting this error: msPrepareWMSLayerRequest(): WMS server error. WEB.IMAGEPATH must be set to use WMS client connections. Is there a way to solve this out? thanks. From siki at AGT.BME.HU Thu Jan 25 05:52:49 2007 From: siki at AGT.BME.HU (Siki Zoltan) Date: Thu, 25 Jan 2007 12:52:49 -0100 Subject: USGS DEM in mapserver {Scanned} In-Reply-To: <10577.62.77.56.17.1169715889.squirrel@mail.bytewise.it> Message-ID: Hi Pietro, I'm using Gtopo data. Simpli add a layer to your map file. AFAIK gdal can read it, it may depend on gdal version. My layer definition looks like: LAYER NAME "e020n90" DATA "e020n90.dem" TYPE RASTER STATUS DEFAULT CLASSITEM '[pixel]' CLASS NAME "Nodata" EXPRESSION ([pixel] < 1) COLOR 0 0 255 END CLASS NAME "0 - 50 m" EXPRESSION ([pixel] >= 1 AND [pixel] < 50) COLOR 0 119 32 END ... END #of layer Bye Zoltan On Thu, 25 Jan 2007, Pietro Giannini wrote: > > > Hi list, > Is anyone experienced about the USGS gTopo30 dataset > and his use with mapserver? > This dataset contain a binary elevation > raster (.dem) in > 16 bit signed integer. > > Data is here: > (http://edc.usgs.gov/products/elevation/gtopo30/gtopo30.html) > > thank for any hint > > pg > > From pgiannini at BYTEWISE.IT Thu Jan 25 03:25:57 2007 From: pgiannini at BYTEWISE.IT (Pietro Giannini) Date: Thu, 25 Jan 2007 12:25:57 +0100 Subject: USGS DEM in mapserver Message-ID: Thanks Zoltan! I tried immediately and it work well ... but MS does not reproject the raster! The only way to display correctly the raster is apply a lat/lon projection to the map, the same of the raster. In the same directory? of the .dem is a world file, with the same name of the Gtopo tile and extension ".wld", I tried also to rename the world file to ".dmw", without result. I used .tif rasters, georeferenced with world files, and MS reproject them without problem. Another way to georeference .dem rasters? Anyone can help? thanks, bye .....................................pg -------------------------- Messaggio originale --------------------------- Oggetto: Re: [UMN_MAPSERVER-USERS] USGS DEM in mapserver {Scanned} Da: "Siki Zoltan" Data: Gio, 25 Gennaio 2007 2:52 pm A: MAPSERVER-USERS at LISTS.UMN.EDU -------------------------------------------------------------------------- Hi Pietro, I'm using Gtopo data. Simpli add a layer to your map file. AFAIK gdal can read it, it may depend on gdal version. My layer definition looks like: LAYER NAME "e020n90" DATA "e020n90.dem" TYPE RASTER STATUS DEFAULT CLASSITEM '[pixel]' CLASS NAME "Nodata" EXPRESSION ([pixel] < 1) COLOR 0 0 255 END CLASS NAME "0 - 50 m" EXPRESSION ([pixel] >= 1 AND [pixel] < 50) COLOR 0 119 32 END ... END #of layer Bye Zoltan On Thu, 25 Jan 2007, Pietro Giannini wrote: > > > Hi list, > Is anyone experienced about the USGS gTopo30 dataset > and his use with mapserver? > This dataset contain a binary elevation > raster (.dem) in > 16 bit signed integer. > > Data is here: > (http://edc.usgs.gov/products/elevation/gtopo30/gtopo30.html) > > thank for any hint > > pg > > -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Thu Jan 25 05:02:01 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 25 Jan 2007 08:02:01 -0500 Subject: USGS DEM in mapserver In-Reply-To: <8091.62.77.56.17.1169724357.squirrel@mail.bytewise.it> Message-ID: Pietro Giannini wrote: > Thanks Zoltan! > > I tried immediately and it work well ... but MS does not reproject the > raster! > The only way to display correctly the raster is apply a lat/lon > projection to the map, the same of the raster. > > In the same directory of the .dem is a world file, with the same name > of the Gtopo tile and extension ".wld", I tried also to rename the world > file to ".dmw", without result. > > I used .tif rasters, georeferenced with world files, and MS reproject > them without problem. > > Another way to georeference .dem rasters? > Anyone can help? Pietro, MapServer should be able to reproject the rasters as long as you define the original file projection on the LAYER, and then define your desired output projection on the MAP. If the .dem files are actually USGS DEM files then world files of any sort are likely to be ignored by GDAL though I believe that MapServer actually will pick up the .wld and use it to override the GDAL returned extents. Is there a reason you are trying to setup a world 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 | President OSGeo, http://osgeo.org From francois.bruneau at WESTIMAGES.COM Thu Jan 25 05:15:49 2007 From: francois.bruneau at WESTIMAGES.COM (Fran=?ISO-8859-1?Q?=E7ois?= Bruneau) Date: Thu, 25 Jan 2007 14:15:49 +0100 Subject: read symbol angle from database Message-ID: Hi Frank, Thanks for your answer. The keyword used to name the attribute which stores the angle is actually "LABELANGLEITEM". But adding to my layer definition: LABELANGLEITEM ROTATION doesn't change the orientation of the symbols. I think this keyword is more related to labelling the symbols, not drawing them. Any ideas are welcome! Thanks, Fran?ois. From pgiannini at BYTEWISE.IT Thu Jan 25 06:03:35 2007 From: pgiannini at BYTEWISE.IT (Pietro Giannini) Date: Thu, 25 Jan 2007 15:03:35 +0100 Subject: USGS DEM in mapserver In-Reply-To: <45B8AA49.2050602@pobox.com> Message-ID: Of course!!! :-) I forgot to define the LAYER projection ... now it work. (I use world files because Gtopo dataset is tiled, and come already with the world files. Better way can be also to define a TILEINDEX and an index shapefile, so all Gtopo extension becomes one only layer.) many thanks! bye ......................................................pg On Gio, 25 Gennaio 2007 2:02 pm, Frank Warmerdam wrote: > Pietro Giannini wrote: >> Thanks Zoltan! >> >> I tried immediately and it work well ... but MS does not reproject the >> raster! >> The only way to display correctly the raster is apply a lat/lon >> projection to the map, the same of the raster. >> >> In the same directory of the .dem is a world file, with the same name >> of the Gtopo tile and extension ".wld", I tried also to rename the world >> file to ".dmw", without result. >> >> I used .tif rasters, georeferenced with world files, and MS reproject >> them without problem. >> >> Another way to georeference .dem rasters? >> Anyone can help? > > Pietro, > > MapServer should be able to reproject the rasters as long as you define > the original file projection on the LAYER, and then define your desired > output projection on the MAP. If the .dem files are actually USGS DEM > files then world files of any sort are likely to be ignored by GDAL > though I believe that MapServer actually will pick up the .wld and use it > to override the GDAL returned extents. > > Is there a reason you are trying to setup a world 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 | President OSGeo, http://osgeo.org > > -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E -------------- next part -------------- An HTML attachment was scrubbed... URL: From williampaul28 at YAHOO.COM Thu Jan 25 07:02:39 2007 From: williampaul28 at YAHOO.COM (william paul) Date: Thu, 25 Jan 2007 07:02:39 -0800 Subject: Dbox and Raster data Message-ID: Hi: I am using Dbox, example from http://maps.dnr.state.mn.us/tools/dbox/ I want to have more background layers, and each background layer is a raster. I have setup the metadata in the map file: METADATA # dLegend XML legend control dlegend_metagroups "foreground,background" dlegend_foreground_name "foreground:" dlegend_foreground_layers_and_groups "layer1,layer2" dlegend_background_name "background: " dlegend_background_layers_and_groups "raster1,raster2" dlegend_background_element "radio" dlegend_layer1_name "Layer1" dlegend_layer2_name "Layer2" dlegend_raster1_name "Raster1" dlegend_raster2_name "Raster2" END When I load the page I can see the legend up to Raster1 and without Raster2 I tried to replace the layers from the background with vector data and is working OK, but with raster data I can see only 1 background layer Is it possible to use 2 or more background layers with raster data? Thank you in advance William --------------------------------- Have a burning question? Go to Yahoo! Answers and get answers from real people who know. -------------- next part -------------- An HTML attachment was scrubbed... URL: From siki at AGT.BME.HU Thu Jan 25 10:44:08 2007 From: siki at AGT.BME.HU (Siki Zoltan) Date: Thu, 25 Jan 2007 17:44:08 -0100 Subject: USGS DEM in mapserver {Scanned} In-Reply-To: <8091.62.77.56.17.1169724357.squirrel@mail.bytewise.it> Message-ID: Hi Pietro, I have not reprojected gtopo30 layers yet. But AFAIK gtopo files30 are georeferenced in lat/lon, in my case I have .dmw .hdr and .prj files All of them describe projection in different formats. If you would like to see your layer in another projection than you should use PROJECTION object for MAP and LAYER to force Mapserver to reproject your data on the fly. Bye Zoltan On Thu, 25 Jan 2007, Pietro Giannini wrote: > > > Thanks Zoltan! > > I tried immediately and it work well ... but MS > does not reproject the raster! > The only way to display correctly the > raster is apply a lat/lon projection to the map, the same of the > raster. > > In the same directory? of the .dem is a world > file, with the same name of the Gtopo tile and extension ".wld", > I tried also to rename the world file to ".dmw", without > result. > > I used .tif rasters, georeferenced with world files, > and MS reproject them without problem. > > Another way to > georeference .dem rasters? > Anyone can help? > > thanks, bye > .....................................pg > > -------------------------- Messaggio originale > --------------------------- > Oggetto: Re: [UMN_MAPSERVER-USERS] USGS > DEM in mapserver {Scanned} > Da: "Siki Zoltan" > > Data: Gio, 25 Gennaio 2007 2:52 pm > A: > MAPSERVER-USERS at LISTS.UMN.EDU > -------------------------------------------------------------------------- > > Hi Pietro, > > I'm using Gtopo data. Simpli add a layer to > your map file. > AFAIK gdal can read it, it may depend on gdal > version. > My layer definition looks like: > > LAYER > NAME > "e020n90" > DATA "e020n90.dem" > TYPE > RASTER > STATUS DEFAULT > CLASSITEM '[pixel]' > CLASS > NAME "Nodata" > EXPRESSION ([pixel] < 1) > COLOR 0 0 255 > END > CLASS > NAME "0 - 50 > m" > EXPRESSION ([pixel] >= 1 AND [pixel] < 50) > COLOR 0 119 32 > END > ... > END #of layer > > Bye > Zoltan > > On Thu, 25 Jan 2007, Pietro Giannini > wrote: > > > > > > > Hi list, > > Is anyone > experienced about the USGS gTopo30 dataset > > and his use with > mapserver? > > This dataset contain a binary elevation > > > raster (.dem) in > > 16 bit signed integer. > > > > > Data is here: > > > (http://edc.usgs.gov/products/elevation/gtopo30/gtopo30.html) > > > > > thank for any hint > > > > pg > > > > > > > > From David.Fawcett at STATE.MN.US Thu Jan 25 07:24:10 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Thu, 25 Jan 2007 09:24:10 -0600 Subject: Label with substring of metadata In-Reply-To: A<45B838C4.9040102@cse.ucdavis.edu> Message-ID: Adding another column to the shapefile .dbf and populating it with the string that you want to use as the label is the cleanest way to do it. You should be able to do this with any .dbf editor. Just don't change the order of the rows or add any rows. This will likely corrupt your shapefile. If it works with shp2img, your method is working with MapServer. Could it be that Ka-Map is pulling tiles from a cache and not creating them off of the new data? David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of David Isaacson Sent: Wednesday, January 24, 2007 10:58 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Label with substring of metadata Hi, I want to label my map with a substring of the metadata. I've got a freeway map, and all of the freeways are labeled as "Interstate 5" and "US Highway 6". I just want the number. Is this possible? I thought I might try to add that data to the .dbf file, using Excel. And it works using shp2img, but when I use ka-map to create an interactive map no roads are drawn at all (and no error messages are given either). So what the hell is going on? What's the right way to add metadata to a shapefile (assume I can't afford to buy ArcGIS)? And is there an easier way to do this whole labeling thing? Thanks. David From David.Fawcett at STATE.MN.US Thu Jan 25 07:25:55 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Thu, 25 Jan 2007 09:25:55 -0600 Subject: read symbol angle from database In-Reply-To: A<3872132.244601169730949210.JavaMail.servlet@kundenserver> Message-ID: Are you using TrueType fonts? Rotation is not available for bitmap fonts. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Fran?ois Bruneau Sent: Thursday, January 25, 2007 7:16 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] read symbol angle from database Hi Frank, Thanks for your answer. The keyword used to name the attribute which stores the angle is actually "LABELANGLEITEM". But adding to my layer definition: LABELANGLEITEM ROTATION doesn't change the orientation of the symbols. I think this keyword is more related to labelling the symbols, not drawing them. Any ideas are welcome! Thanks, Fran?ois. From ljfong at SDF.LONESTAR.ORG Thu Jan 25 09:28:13 2007 From: ljfong at SDF.LONESTAR.ORG (Hong) Date: Thu, 25 Jan 2007 10:28:13 -0700 Subject: MapScript C# (MapServer 4.10): mapscriptPINVOKE problem on 64-bit platform. In-Reply-To: <0953D88EC8D18248ACAD34A13FEB5C9D693769@DEHHX001.deuser.de.intra> Message-ID: Yep I know I need 64-bit DLLs. The MapServer I used was compiled from the source (buildkit) with very stripped down configurations, that was, no linkage to MySQL, PDF generation library, GEOS, and others, as they were irrelevant to what I needed. Looking at all the switches for cl.exe (visual c++ compiler), link.exe (visual c++ linker), and csc.exe (c# compiler), I did not notice any specific switch to produce 64-bit code. Since I compiled it using Visual Studio 2005 installed and running on a 64-bit machine, I think the code produced should run on a 64-bit machine. Apparently it is just not that simple. I'm starting to think it was either incorrect CRT library being loaded or the SWIG binary I used to produce the c# mapscript binding DLLs was not 64-bit. I'm still at loss however. Nope, I doubt it would make a difference to have AMD processor, after all AMD architecture is virtually the same as Intel one, as far as assembly instructions go. Unless the software has to interact with the processor directly and make use of processor specific assembly instructions in some way, which I don't think applies to MapServer, it should not matter. Hong. On Thu, Jan 25, 2007 at 10:34:21AM +0100, Tobias.Knoetzele at atosorigin.com wrote: > Hi, > > I don?t know much about C and the very special Error you had. > But I know that > - there are dependencies between the DLLs > - you need 64-Bit DLLs > - I didn?t manage to get the DLLs required as 64 Bit - one isn?t Open Source and the producer says it?s not available for 64Bit Windows. > > Maybe this helps you. > > If you say you?ve got all the DLLs as 64 Bit - then I?d love to have them. Do you know wether it makes a difference to have AMD Processors? > > These are the DLLs required: > ssleay32.dll > xerces-c_2_7.dll > zlib1.dll > bgd.dll > gdal13.dll > geos_c.dll > geotiff.dll > iconv.dll > libcurl.dll > libeay32.dll > libecwj2.dll > libmap.dll > libmysql.dll > libpq.dll > libtiff.dll > libxml2.dll > lti_dsdk_dll.dll > mapscript.dll > pdflib.dll > proj.dll > > Tobias > > -----Urspr?ngliche Nachricht----- > Von: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] Im Auftrag von Hong > Gesendet: Donnerstag, 25. Januar 2007 01:49 > An: MAPSERVER-USERS at lists.umn.edu > Betreff: [UMN_MAPSERVER-USERS] MapScript C# (MapServer 4.10): mapscriptPINVOKE problem on 64-bit platform. > > Hi, > > I was trying to run mapserver compiled on a 64-bit Intel dual xeon processor machine running Windows Server 2003 R2 64-bit edition. On map object creation, the subroutine threw an exception "The type initializer for 'mapscriptPINVOKE' > threw an exception.". The stack trace was: > > at mapscriptPINVOKE.new_mapObj(String jarg1) at mapObj..ctor(String filename) > > I wrote a small test C++ application on the 64-bit machine that tried to create a map object by compiling and linking it to mapscript.lib and mapscript_i.lib. The application ended up with the error: > > Debug Assertion Failed! > Program: D:\TGI\Developer\MapServerTest\debug\MapServerTest.exe > File: dbgheap.c > Line: 1252 > > Expression: _CrtIsValidHeapPointer(pUserData) > > So it looked like I was having problem with the CRT library on the 64-bit machine. Looking at libmap.dll revealed that it depended on c:\windows\syswow64\MSVCRT.DLL (is this the correct CRT to load?) > > The compiler was MS Visual Studio 2005. > > The C++ test program itself: > > // MapServerTest.cpp : Defines the entry point for the console application. > // > > #include "stdafx.h" > #include > #include "map.h" > > > int _tmain(int argc, _TCHAR* argv[]) > { > std::cout << "Hello World" << std::endl; > > mapObj* p_mapObj = msNewMapObj(); > > return 0; > } > > At this point I'm stumped on where to proceed next and can use any help/suggestion. > > Hong > From nbest at FORESTONE.COM Thu Jan 25 10:01:47 2007 From: nbest at FORESTONE.COM (Neil Best) Date: Thu, 25 Jan 2007 12:01:47 -0600 Subject: WFS in uDig client Message-ID: Can anyone confidently describe the status of connecting to a Mapserver WFS layer using uDig? I am using the 1.1-RC8 version hot off the web and MS 4.99 from FWTools 1.0.7. I can use MS as both client and server and test with shp2img, but when I try it from uDig nothing renders. I can get a feature count, however. Rather than provide further detail I thought I would ask for a sanity check if it can be expected to work or not at this time. My suspicion is that there is a problem with SRS, geomtetry type, or some other metadata due to my ignorance. Does uDig enforce a timeout? I had to bump it up in my client map file to give my PostGIS server time to think. Thanks for any tips. Neil From dylan.beaudette at GMAIL.COM Thu Jan 25 11:28:26 2007 From: dylan.beaudette at GMAIL.COM (Dylan Beaudette) Date: Thu, 25 Jan 2007 11:28:26 -0800 Subject: Label with substring of metadata In-Reply-To: <45B838C4.9040102@cse.ucdavis.edu> Message-ID: On Wednesday 24 January 2007 20:57, David Isaacson wrote: > Hi, > I want to label my map with a substring of the metadata. I've got a > freeway map, and all of the freeways are labeled as "Interstate 5" and > "US Highway 6". I just want the number. > > Is this possible? > > I thought I might try to add that data to the .dbf file, using Excel. > And it works using shp2img, but when I use ka-map to create an > interactive map no roads are drawn at all (and no error messages are > given either). So what the hell is going on? > > What's the right way to add metadata to a shapefile (assume I can't > afford to buy ArcGIS)? And is there an easier way to do this whole > labeling thing? Thanks. > > David Hi David - nice to see another UCD person using mapserver. I would recommend looking into QGIS , uDIg, PostGIS, or GRASS as a means to 'edit' a shapefile. It could be that excel saved a slightly incompatible DBF version -- I have had this happen numerous times. Check column names and their data type. If you have the patience to try PostGIS -- it is possible to do nearly anything with the spatial and attribute data imported from a shapefile -- and you can pull the data directly into mapserver! We use this setup here for all of our mapserver applications. Cheers, Dylan -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From szekerest at GMAIL.COM Thu Jan 25 11:37:26 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Thu, 25 Jan 2007 20:37:26 +0100 Subject: MapScript C# (MapServer 4.10): mapscriptPINVOKE problem on 64-bit platform. In-Reply-To: <20070125172813.GA23709@SDF.LONESTAR.ORG> Message-ID: Hi, You probably need to link against the 64 bit version of the MSVCR80.DLL in this case. The Visual Studio 8 Dependency Walker can display the 64 bit images as well. In order to produce 64 bit code you should set the proper environment variables for your command prompt first. In your case opening the 'Visual Studio 2005 x64 Win64 Command Prompt' would be sufficient. Alternatively you can look into C:\Program Files (x86)\Microsoft Visual Studio 8\VC\vcvarsall.bat and find out a proper path to your specific vcvars....bat to run. Apparently, to execute your 64 bit code the dependent dll-s (eg. proj.dll) might also be compiled as a 64 bit image. You should make sure your code is running against the proper version of the .NET framework. For example you can use the SysInternals Filemon to check whether the 64 bit or the 32 bit version has been loaded. Sometimes, you might want to force the usage of a specific framework by adding supportedRuntime to the app.config file, like: If you compile code to produce a Win32 image on a Win64 platform (By using the Visual Studio 2005 Command Prompt for example) the default options does not force to use the 32 bit version of the framework, and your application will not run properly. Therefore you might want to add '/platform:x86' to your csc command line when compiling the mapscript libraries in this case. (the default option is /platform:any) In the future, I consider adding some further action to the csharp's makefile.vc in order to handle these cases more smoothly. Best Regards, Tamas 2007/1/25, Hong : > Yep I know I need 64-bit DLLs. The MapServer I used was compiled from the > source (buildkit) with very stripped down configurations, that was, no linkage > to MySQL, PDF generation library, GEOS, and others, as they were irrelevant to > what I needed. > > Looking at all the switches for cl.exe (visual c++ compiler), link.exe (visual > c++ linker), and csc.exe (c# compiler), I did not notice any specific switch > to produce 64-bit code. Since I compiled it using Visual Studio 2005 installed > and running on a 64-bit machine, I think the code produced should run on a > 64-bit machine. Apparently it is just not that simple. I'm starting to think > it was either incorrect CRT library being loaded or the SWIG binary I used to > produce the c# mapscript binding DLLs was not 64-bit. I'm still at loss > however. > > Nope, I doubt it would make a difference to have AMD processor, after all AMD > architecture is virtually the same as Intel one, as far as assembly > instructions go. Unless the software has to interact with the processor > directly and make use of processor specific assembly instructions in some way, > which I don't think applies to MapServer, it should not matter. > > Hong. > > On Thu, Jan 25, 2007 at 10:34:21AM +0100, Tobias.Knoetzele at atosorigin.com wrote: > > Hi, > > > > I don?t know much about C and the very special Error you had. > > But I know that > > - there are dependencies between the DLLs > > - you need 64-Bit DLLs > > - I didn?t manage to get the DLLs required as 64 Bit - one isn?t Open Source and the producer says it?s not available for 64Bit Windows. > > > > Maybe this helps you. > > > > If you say you?ve got all the DLLs as 64 Bit - then I?d love to have them. Do you know wether it makes a difference to have AMD Processors? > > > > These are the DLLs required: > > ssleay32.dll > > xerces-c_2_7.dll > > zlib1.dll > > bgd.dll > > gdal13.dll > > geos_c.dll > > geotiff.dll > > iconv.dll > > libcurl.dll > > libeay32.dll > > libecwj2.dll > > libmap.dll > > libmysql.dll > > libpq.dll > > libtiff.dll > > libxml2.dll > > lti_dsdk_dll.dll > > mapscript.dll > > pdflib.dll > > proj.dll > > > > Tobias > > > > -----Urspr?ngliche Nachricht----- > > Von: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] Im Auftrag von Hong > > Gesendet: Donnerstag, 25. Januar 2007 01:49 > > An: MAPSERVER-USERS at lists.umn.edu > > Betreff: [UMN_MAPSERVER-USERS] MapScript C# (MapServer 4.10): mapscriptPINVOKE problem on 64-bit platform. > > > > Hi, > > > > I was trying to run mapserver compiled on a 64-bit Intel dual xeon processor machine running Windows Server 2003 R2 64-bit edition. On map object creation, the subroutine threw an exception "The type initializer for 'mapscriptPINVOKE' > > threw an exception.". The stack trace was: > > > > at mapscriptPINVOKE.new_mapObj(String jarg1) at mapObj..ctor(String filename) > > > > I wrote a small test C++ application on the 64-bit machine that tried to create a map object by compiling and linking it to mapscript.lib and mapscript_i.lib. The application ended up with the error: > > > > Debug Assertion Failed! > > Program: D:\TGI\Developer\MapServerTest\debug\MapServerTest.exe > > File: dbgheap.c > > Line: 1252 > > > > Expression: _CrtIsValidHeapPointer(pUserData) > > > > So it looked like I was having problem with the CRT library on the 64-bit machine. Looking at libmap.dll revealed that it depended on c:\windows\syswow64\MSVCRT.DLL (is this the correct CRT to load?) > > > > The compiler was MS Visual Studio 2005. > > > > The C++ test program itself: > > > > // MapServerTest.cpp : Defines the entry point for the console application. > > // > > > > #include "stdafx.h" > > #include > > #include "map.h" > > > > > > int _tmain(int argc, _TCHAR* argv[]) > > { > > std::cout << "Hello World" << std::endl; > > > > mapObj* p_mapObj = msNewMapObj(); > > > > return 0; > > } > > > > At this point I'm stumped on where to proceed next and can use any help/suggestion. > > > > Hong > > > From david at CSE.UCDAVIS.EDU Thu Jan 25 12:10:45 2007 From: david at CSE.UCDAVIS.EDU (David Isaacson) Date: Thu, 25 Jan 2007 12:10:45 -0800 Subject: Label with substring of metadata In-Reply-To: <200701251128.26609.dylan.beaudette@gmail.com> Message-ID: Thanks for your help, guys. It turns out (like usual) that the solution was something simple. The permissions on the dbf file, which I copied from Windows to Linux, were all messed up, and no one had read access. I'll try one of those programs you mentioned next time I need to edit a file -- excel was a pain. David Dylan Beaudette wrote: >On Wednesday 24 January 2007 20:57, David Isaacson wrote: > > >>Hi, >>I want to label my map with a substring of the metadata. I've got a >>freeway map, and all of the freeways are labeled as "Interstate 5" and >>"US Highway 6". I just want the number. >> >>Is this possible? >> >>I thought I might try to add that data to the .dbf file, using Excel. >>And it works using shp2img, but when I use ka-map to create an >>interactive map no roads are drawn at all (and no error messages are >>given either). So what the hell is going on? >> >>What's the right way to add metadata to a shapefile (assume I can't >>afford to buy ArcGIS)? And is there an easier way to do this whole >>labeling thing? Thanks. >> >>David >> >> > >Hi David - nice to see another UCD person using mapserver. > >I would recommend looking into QGIS , uDIg, PostGIS, or GRASS as a means >to 'edit' a shapefile. It could be that excel saved a slightly incompatible >DBF version -- I have had this happen numerous times. Check column names and >their data type. If you have the patience to try PostGIS -- it is possible >to do nearly anything with the spatial and attribute data imported from a >shapefile -- and you can pull the data directly into mapserver! We use this >setup here for all of our mapserver applications. > >Cheers, > >Dylan > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nbest at FORESTONE.COM Thu Jan 25 13:12:34 2007 From: nbest at FORESTONE.COM (Neil Best) Date: Thu, 25 Jan 2007 14:12:34 -0700 Subject: WFS in uDig client Message-ID: By the way, what about ArcMap? Does anyone have it working in 9.1 or 9.2? Is it true that you need the Data Interoperabililty Extension or not? Neil > -------- Original Message -------- > Subject: WFS in uDig client > From: Neil Best > Date: Thu, January 25, 2007 12:01 pm > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Can anyone confidently describe the status of connecting to a Mapserver WFS > layer using uDig? I am using the 1.1-RC8 version hot off the web and MS > 4.99 from FWTools 1.0.7. I can use MS as both client and server and test > with shp2img, but when I try it from uDig nothing renders. I can get a > feature count, however. Rather than provide further detail I thought I > would ask for a sanity check if it can be expected to work or not at this > time. My suspicion is that there is a problem with SRS, geomtetry type, or > some other metadata due to my ignorance. Does uDig enforce a timeout? I > had to bump it up in my client map file to give my PostGIS server time to > think. Thanks for any tips. > > Neil From tkirstine at JDBARNES.COM Thu Jan 25 13:52:30 2007 From: tkirstine at JDBARNES.COM (Travis Kirstine) Date: Thu, 25 Jan 2007 16:52:30 -0500 Subject: wms server with custom epsg Message-ID: Hi all, I have a few question regarding custom epsg codes and wms server / clients I set up a wms server that serves up ortho imagery in a few standard spatial reference systems EPSG:26917 and EPSG:4326 but our client would like it also served as a Lambert Conformal Conic projection that has no EPSG code as far as I can tell. I've created a custom epsg code in the epsg file: ## NAD83 LCC Custom <42305> +proj=lcc +ellps=GRS80 +lat_0=0 +lon_0=-84 +lat_1=44.5 +lat_2=54.5 +x_0=1000000.0 +y_0=0 +datum=NAD83 +units=m no_defs <> and added it to the "WMS_SRS" in the metadata: WEB MINSCALE 100 MAXSCALE 10000000 IMAGEPATH "/var/www/html/public/map_images/" IMAGEURL "map_images/" METADATA "WMS_TITLE" "First Base Solutions - Web Map Service" "WMS_ABSTRACT" "WMS" "WMS_ACCESSCONSTRAINTS" "none" "WMS_ONLINERESOURCE" "http://xxxxxxx" "WMS_SRS" "EPSG:26917 EPSG:4269 EPSG:4326 EPSG:42305" END END I was hoping that the client side would be able to interprete the new srs automatically by when testing with ArcGIS that dosen't seem the case. Am I right to assume that if the client dosen't have the srs defined the application won't accept the wms srs as valid. Travis Kirstine First Base Solutions Limited Markham, ON Canada From ljfong at SDF.LONESTAR.ORG Thu Jan 25 13:54:05 2007 From: ljfong at SDF.LONESTAR.ORG (Hong) Date: Thu, 25 Jan 2007 14:54:05 -0700 Subject: MapScript C# (MapServer 4.10): mapscriptPINVOKE problem on 64-bit platform. In-Reply-To: Message-ID: Ok, I tried to compile using "win64" mode by going through 'Visual Studio 2995 x64 Win64 Command Prompt' but mapserver failed to compile. The error: D:\TGI\Developer\mapserver_4_10_build\mapserver-4.10.0>nmake /f Makefile.vc Microsoft (R) Program Maintenance Utility Version 8.00.50727.42 Copyright (C) Microsoft Corporation. All rights reserved. cl /nologo /Ox /MD /W3 /EHsc -ID:\TGI\Developer\mapserver_4_10_build\ma pserver-4.10.0\..\gdwin32 -ID:\TGI\Developer\mapserver_4_10_build\mapserver -4.10.0\..\regex-0.12 -ID:\arcgis\arcsde/include -DHAVE_STRING_H -DREGEX_MALLOC -DNEED_STRCASECMP -DNEED_STRNCASECMP -DNEED_STRLCAT -DUSE_ GD_PNG -DUSE_GD_JPEG -DUSE_GD_FT -DGD_HAS_GETBITMAPFONT -DGD_HAS_FTEX_XSHOW -DUSE_THREAD -DIGNORE_MISSING_DATA -DENABLE_STDERR_DEBUG -DUSE_POINT_Z_M -DUSE_GD_ANTIALIAS -DUSE_SDE -DWIN32 -D_WIN32 /c mapbits.c /Fomap bits.obj mapbits.c d:\tgi\developer\mapserver_4_10_build\mapserver-4.10.0\map.h(321) : error C4235: nonstandard extension used : '_asm' keyword not supported on this architecture d:\tgi\developer\mapserver_4_10_build\mapserver-4.10.0\map.h(322) : error C2065: 'fld' : undeclared identifier d:\tgi\developer\mapserver_4_10_build\mapserver-4.10.0\map.h(322) : error C2146: syntax error : missing ';' before identifier 'flt' d:\tgi\developer\mapserver_4_10_build\mapserver-4.10.0\map.h(323) : error C2146: syntax error : missing ';' before identifier 'fistp' d:\tgi\developer\mapserver_4_10_build\mapserver-4.10.0\map.h(323) : error C2065: 'fistp' : undeclared identifier d:\tgi\developer\mapserver_4_10_build\mapserver-4.10.0\map.h(323) : error C2146: syntax error : missing ';' before identifier 'intgr' d:\tgi\developer\mapserver_4_10_build\mapserver-4.10.0\map.h(324) : error C2143: syntax error : missing ';' before '}' NMAKE : fatal error U1077: '"D:\Program Files (x86)\Microsoft Visual Studio 8\VC \BIN\amd64\cl.EXE"' : return code '0x2' Stop. Probably I need to get past this error first before considering other things. Thanks. On Thu, Jan 25, 2007 at 08:37:26PM +0100, Tamas Szekeres wrote: > Hi, > > You probably need to link against the 64 bit version of the > MSVCR80.DLL in this case. > The Visual Studio 8 Dependency Walker can display the 64 bit images as well. > > In order to produce 64 bit code you should set the proper environment > variables for your command prompt first. In your case opening the > 'Visual Studio 2005 x64 Win64 Command Prompt' would be sufficient. > Alternatively you can look into C:\Program Files (x86)\Microsoft > Visual Studio 8\VC\vcvarsall.bat and find out a proper path to your > specific vcvars....bat to run. > Apparently, to execute your 64 bit code the dependent dll-s (eg. > proj.dll) might also be compiled as a 64 bit image. > > > > You should make sure your code is running against the proper version > of the .NET framework. For example you can use the SysInternals > Filemon to check whether the 64 bit or the 32 bit version has been > loaded. Sometimes, you might want to force the usage of a specific > framework by adding supportedRuntime to the app.config file, like: > > > > > > > > If you compile code to produce a Win32 image on a Win64 platform (By > using the Visual Studio 2005 Command Prompt for example) the default > options does not force to use the 32 bit version of the framework, and > your application will not run properly. Therefore you might want to > add '/platform:x86' to your csc command line when compiling the > mapscript libraries in this case. (the default option is > /platform:any) > > > > In the future, I consider adding some further action to the csharp's > makefile.vc in order to handle these cases more smoothly. > > Best Regards, > > Tamas > > > > 2007/1/25, Hong : > >Yep I know I need 64-bit DLLs. The MapServer I used was compiled from the > >source (buildkit) with very stripped down configurations, that was, no > >linkage > >to MySQL, PDF generation library, GEOS, and others, as they were > >irrelevant to > >what I needed. > > > >Looking at all the switches for cl.exe (visual c++ compiler), link.exe > >(visual > >c++ linker), and csc.exe (c# compiler), I did not notice any specific > >switch > >to produce 64-bit code. Since I compiled it using Visual Studio 2005 > >installed > >and running on a 64-bit machine, I think the code produced should run on a > >64-bit machine. Apparently it is just not that simple. I'm starting to > >think > >it was either incorrect CRT library being loaded or the SWIG binary I used > >to > >produce the c# mapscript binding DLLs was not 64-bit. I'm still at loss > >however. > > > >Nope, I doubt it would make a difference to have AMD processor, after all > >AMD > >architecture is virtually the same as Intel one, as far as assembly > >instructions go. Unless the software has to interact with the processor > >directly and make use of processor specific assembly instructions in some > >way, > >which I don't think applies to MapServer, it should not matter. > > > >Hong. > > > >On Thu, Jan 25, 2007 at 10:34:21AM +0100, Tobias.Knoetzele at atosorigin.com > >wrote: > >> Hi, > >> > >> I don?t know much about C and the very special Error you had. > >> But I know that > >> - there are dependencies between the DLLs > >> - you need 64-Bit DLLs > >> - I didn?t manage to get the DLLs required as 64 Bit - one isn?t Open > >Source and the producer says it?s not available for 64Bit Windows. > >> > >> Maybe this helps you. > >> > >> If you say you?ve got all the DLLs as 64 Bit - then I?d love to have > >them. Do you know wether it makes a difference to have AMD Processors? > >> > >> These are the DLLs required: > >> ssleay32.dll > >> xerces-c_2_7.dll > >> zlib1.dll > >> bgd.dll > >> gdal13.dll > >> geos_c.dll > >> geotiff.dll > >> iconv.dll > >> libcurl.dll > >> libeay32.dll > >> libecwj2.dll > >> libmap.dll > >> libmysql.dll > >> libpq.dll > >> libtiff.dll > >> libxml2.dll > >> lti_dsdk_dll.dll > >> mapscript.dll > >> pdflib.dll > >> proj.dll > >> > >> Tobias > >> > >> -----Urspr?ngliche Nachricht----- > >> Von: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] Im > >Auftrag von Hong > >> Gesendet: Donnerstag, 25. Januar 2007 01:49 > >> An: MAPSERVER-USERS at lists.umn.edu > >> Betreff: [UMN_MAPSERVER-USERS] MapScript C# (MapServer 4.10): > >mapscriptPINVOKE problem on 64-bit platform. > >> > >> Hi, > >> > >> I was trying to run mapserver compiled on a 64-bit Intel dual xeon > >processor machine running Windows Server 2003 R2 64-bit edition. On map > >object creation, the subroutine threw an exception "The type initializer > >for 'mapscriptPINVOKE' > >> threw an exception.". The stack trace was: > >> > >> at mapscriptPINVOKE.new_mapObj(String jarg1) at mapObj..ctor(String > >filename) > >> > >> I wrote a small test C++ application on the 64-bit machine that tried to > >create a map object by compiling and linking it to mapscript.lib and > >mapscript_i.lib. The application ended up with the error: > >> > >> Debug Assertion Failed! > >> Program: D:\TGI\Developer\MapServerTest\debug\MapServerTest.exe > >> File: dbgheap.c > >> Line: 1252 > >> > >> Expression: _CrtIsValidHeapPointer(pUserData) > >> > >> So it looked like I was having problem with the CRT library on the > >64-bit machine. Looking at libmap.dll revealed that it depended on > >c:\windows\syswow64\MSVCRT.DLL (is this the correct CRT to load?) > >> > >> The compiler was MS Visual Studio 2005. > >> > >> The C++ test program itself: > >> > >> // MapServerTest.cpp : Defines the entry point for the console > >application. > >> // > >> > >> #include "stdafx.h" > >> #include > >> #include "map.h" > >> > >> > >> int _tmain(int argc, _TCHAR* argv[]) > >> { > >> std::cout << "Hello World" << std::endl; > >> > >> mapObj* p_mapObj = msNewMapObj(); > >> > >> return 0; > >> } > >> > >> At this point I'm stumped on where to proceed next and can use any > >help/suggestion. > >> > >> Hong > >> > > From funkbucket at GMAIL.COM Thu Jan 25 14:55:27 2007 From: funkbucket at GMAIL.COM (Ben Tuttle) Date: Thu, 25 Jan 2007 15:55:27 -0700 Subject: Question about bug 1975 Message-ID: Hi all- Apologies if this is the wrong place to ask this kind of question. We are running into all sorts of issues due to bug 1975 and trying to map out our future development efforts. It looks like this bug is slated to be fixed in version 5.0, does this sound right? If so does anyone have a rough idea of when 5.0 might be released or is it completely unknown at this time. From richard.greenwood at GMAIL.COM Thu Jan 25 19:28:07 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Thu, 25 Jan 2007 20:28:07 -0700 Subject: Dbox and Raster data In-Reply-To: <668595.93737.qm@web38401.mail.mud.yahoo.com> Message-ID: On 1/25/07, william paul wrote: > > Hi: > > I am using Dbox, example from > http://maps.dnr.state.mn.us/tools/dbox/ > I want to have more background layers, and each background layer is a > raster. I have setup the metadata in the map file: > METADATA > # dLegend XML legend control > dlegend_metagroups "foreground,background" > dlegend_foreground_name "foreground:" > dlegend_foreground_layers_and_groups "layer1,layer2" > dlegend_background_name "background: " > dlegend_background_layers_and_groups "raster1,raster2" > dlegend_background_element "radio" > dlegend_layer1_name "Layer1" > dlegend_layer2_name "Layer2" > dlegend_raster1_name "Raster1" > dlegend_raster2_name "Raster2" > END > > When I load the page I can see the legend up to Raster1 and without Raster2 > I tried to replace the layers from the background with vector data and is > working OK, but with raster data I can see only 1 background layer > > Is it possible to use 2 or more background layers with raster data? > > Thank you in advance > > William Yes, you can can have many background layers. I ran into the same problem that I think you are seeing: not all of my legend was showing up. It was syntax with the legend definitions, unfortunately I can not remember the details. Try changing the order of the layers in the legend, and/or removing them one at a time. This will help you find the problem layer. And look at the class names in the layer definition itself. HTH, Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From frodewj at GMAIL.COM Thu Jan 25 23:18:49 2007 From: frodewj at GMAIL.COM (=?UTF-8?Q?Frode_Wiseth_J=C3=B8rgensen?=) Date: Thu, 25 Jan 2007 23:18:49 -0800 Subject: WFS in uDig client In-Reply-To: <20070125141234.0f153dd008ed4f403b9327bba0b7b7a8.b6f117b88a.wbe@email.secureserver.net> Message-ID: Hi! Regarding ArcMap, you do need the Data Interoperability Extension to do it "the Esri way". Some part of the extension is actually free of charge! The free part of the extesion allows you to read WFS/GML. Frode Neil Best-3 wrote: > > By the way, what about ArcMap? Does anyone have it working in 9.1 or > 9.2? Is it true that you need the Data Interoperabililty Extension or > not? > > Neil > >> -------- Original Message -------- >> Subject: WFS in uDig client >> From: Neil Best >> Date: Thu, January 25, 2007 12:01 pm >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> >> Can anyone confidently describe the status of connecting to a Mapserver >> WFS >> layer using uDig? I am using the 1.1-RC8 version hot off the web and MS >> 4.99 from FWTools 1.0.7. I can use MS as both client and server and test >> with shp2img, but when I try it from uDig nothing renders. I can get a >> feature count, however. Rather than provide further detail I thought I >> would ask for a sanity check if it can be expected to work or not at this >> time. My suspicion is that there is a problem with SRS, geomtetry type, >> or >> some other metadata due to my ignorance. Does uDig enforce a timeout? I >> had to bump it up in my client map file to give my PostGIS server time to >> think. Thanks for any tips. >> >> Neil > > -- View this message in context: http://www.nabble.com/WFS-in-uDig-client-tf3118215.html#a8646936 Sent from the Mapserver - User mailing list archive at Nabble.com. From williampaul28 at YAHOO.COM Thu Jan 25 23:49:21 2007 From: williampaul28 at YAHOO.COM (william paul) Date: Thu, 25 Jan 2007 23:49:21 -0800 Subject: Dbox and Raster data In-Reply-To: Message-ID: Thank you again Rich It's was like you sad: You need to define the CLASS END, even if is empty. You just need to have CLASS defined William Richard Greenwood wrote: On 1/25/07, william paul wrote: > > Hi: > > I am using Dbox, example from > http://maps.dnr.state.mn.us/tools/dbox/ > I want to have more background layers, and each background layer is a > raster. I have setup the metadata in the map file: > METADATA > # dLegend XML legend control > dlegend_metagroups "foreground,background" > dlegend_foreground_name "foreground:" > dlegend_foreground_layers_and_groups "layer1,layer2" > dlegend_background_name "background: " > dlegend_background_layers_and_groups "raster1,raster2" > dlegend_background_element "radio" > dlegend_layer1_name "Layer1" > dlegend_layer2_name "Layer2" > dlegend_raster1_name "Raster1" > dlegend_raster2_name "Raster2" > END > > When I load the page I can see the legend up to Raster1 and without Raster2 > I tried to replace the layers from the background with vector data and is > working OK, but with raster data I can see only 1 background layer > > Is it possible to use 2 or more background layers with raster data? > > Thank you in advance > > William Yes, you can can have many background layers. I ran into the same problem that I think you are seeing: not all of my legend was showing up. It was syntax with the legend definitions, unfortunately I can not remember the details. Try changing the order of the layers in the legend, and/or removing them one at a time. This will help you find the problem layer. And look at the class names in the layer definition itself. HTH, Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com --------------------------------- No need to miss a message. Get email on-the-go with Yahoo! Mail for Mobile. Get started. -------------- next part -------------- An HTML attachment was scrubbed... URL: From candalt at ONLINE.NO Thu Jan 25 23:53:07 2007 From: candalt at ONLINE.NO (=?iso-8859-1?Q?Sture_Dings=F8yr?=) Date: Fri, 26 Jan 2007 08:53:07 +0100 Subject: Labels and MINFEATURESIZE Message-ID: Hi there... I have a polygon layer that on high scales only is visible in the map (gif output) as very small areas (maybe as a single pixel). This is fine, but i want to put a label on every polygon regardless of how small they are. I have tried putting a label on my class with the MINFEATURESIZE parameter but with no luck. The parameter (MINFEATURESIZE) seems to be working, cause if i set i to e.g. 20 my polygons do not get labled until the scale is smaller. Is there a way to force labels on a polygon layer regardless of how "small" the polygons are? My layer definition below: LAYER DATA "test" LABELITEM "NAME" STATUS on TYPE polygon NAME "test" CLASS COLOR 255 0 0 MAXSCALE 100000000 MINSCALE 0 NAME "Test" LABEL ANTIALIAS True FONT "arial" TYPE truetype SIZE 7 COLOR 0 0 0 OUTLINECOLOR 255 255 255 OFFSET 0 0 POSITION cc PARTIALS false FORCE true MINFEATURESIZE 1 END END END Regards Sture :-) From francois.bruneau at WESTIMAGES.COM Fri Jan 26 00:29:23 2007 From: francois.bruneau at WESTIMAGES.COM (Fran=?ISO-8859-1?Q?=E7ois?= Bruneau) Date: Fri, 26 Jan 2007 09:29:23 +0100 Subject: read symbol angle from database Message-ID: Hi David, The symbol actually a vector one. It works now! In fact, I had misunderstood the correct positioning of the ANGLEITEM keyword. It should be within the "STYLE" definition, and not directly under "LAYER". Thanks, Fran?ois. From rodrigo.andrade at DIGITRO.COM.BR Fri Jan 26 06:34:06 2007 From: rodrigo.andrade at DIGITRO.COM.BR (Rodrigo Del C. Andrade) Date: Fri, 26 Jan 2007 11:34:06 -0300 Subject: Chopping a map with a grid. Message-ID: An HTML attachment was scrubbed... URL: From dmorissette at MAPGEARS.COM Fri Jan 26 06:02:21 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Fri, 26 Jan 2007 09:02:21 -0500 Subject: Question about bug 1975 In-Reply-To: <259e26270701251455k62ee6673ra1e5f411f17eaa41@mail.gmail.com> Message-ID: Ben Tuttle wrote: > Hi all- > Apologies if this is the wrong place to ask this kind of question. We > are running into all sorts of issues due to bug 1975 and trying to map > out our future development efforts. It looks like this bug is slated > to be fixed in version 5.0, does this sound right? Dunno if it's really on Frank's hit list or if he just suggested that someone should address that for 5.0. I added a comment to bug 1975 about the last issue that you reported. > If so does anyone > have a rough idea of when 5.0 might be released or is it completely > unknown at this time. The 5.0 release date has not been set yet, but last time we talked about it last fall we were thinking first quarter of 2007. Since many of the things that were planned for 5.0 don't seem to have progressed much yet I'm thinking it may well slip until later in the spring. Daniel -- Daniel Morissette http://www.mapgears.com/ From David.Fawcett at STATE.MN.US Fri Jan 26 06:20:11 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri, 26 Jan 2007 08:20:11 -0600 Subject: FW: question about mapserver Message-ID: -----Original Message----- From: tao wang [mailto:wangtao4681 at yahoo.com.cn] Sent: Thursday, January 25, 2007 9:34 PM To: Fawcett, David Subject: question about mapserver David, Hi, I a newbie in the field of web development. I want to set up a map server by using the mapserver. I download the ms4w, put it in the D disk root directory. I have installed the apache as the instruction showed. The workshop was put under the ms4w directory. But I come across the problem with the configuration of the index.html. I don't know how set path. can you tell me how to do that? regards wangtao 2007.1.26 ___________________________________________________________ NA>cAa.NOEIa-3.5GEYA???20M,??? http://cn.mail.yahoo.com/ From bitner at GYTTJA.ORG Fri Jan 26 07:33:08 2007 From: bitner at GYTTJA.ORG (David William Bitner) Date: Fri, 26 Jan 2007 09:33:08 -0600 Subject: Chopping a map with a grid. In-Reply-To: <45BA115E.70404@digitro.com.br> Message-ID: I am not sure of any mapscript approaches for this type of problem. I currently do this to create a grid that shows how many flights cross a given grid cell in my application at http://maps.macnoise.com/interactive/ (select flight tracks grid from the layer list) using postgis. The general approach that I have is to either use a pre-built grid or a plpgsql function that builds the grid on the fly and to create a layer in mapserver that does an on the fly intersection between the two with a data statement similar to this: DATA "the_geom from (select count(f.id) as count, g.geom as the_geom from grid as g,flighttracks as f where g.geom && f.geom and crosses(g.geom,f.geom)) using unique the_geom using srid=-1" David On 1/26/07, Rodrigo Del C. Andrade wrote: > > > Hi dear list. > > I am trying to implement in java mapscript an application that draws > on-the-fly contours around areas with a high ocurrence rate of a given > event, something like the topics discussed in here: > http://article.gmane.org/gmane.comp.gis.mapserver.user/17924. > I understand it is not easy, so I am taking my steps one at a time. > Being quite new to GIS programming, I am going trough the usual misteps. > > My first problem is actually dividing the area into subzones where I > can count the ocurrences of said events inside each rectangle to feed the > statistic analysis. I have tried using a graticule item on a line layer, but > I cant seem to find a query method that will give me something I can work > with (boundaries, polygons, the works), even though the grid has been drawn > quite nicelly. > I understand I probably missed completelly the point of a GRID object > inside a LINE type layer, but is there some built in way (trough grid or any > other method) to chop a layer in equal rectangles so I can iterate trough > each of them checking for ocorrences? > > Thanks a lot. > > -- > > > *Rodrigo Del C. Andrade* > *Estagi?rio N?vel Superior* > *SIC - SSE - Solu??es Seguran?a P?blica* > > *D?GITRO TECNOLOGIA* > *E-mail:* rodrigo.andrade at digitro.com.br > *Fone:* +55 48 3281-7390 / +55 48 3281-7000 > *Fax:* +55 48 3281-7299 > *Site:* www.digitro.com > -- ************************************ David William Bitner -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.bitner at GMAIL.COM Fri Jan 26 07:34:35 2007 From: david.bitner at GMAIL.COM (David William Bitner) Date: Fri, 26 Jan 2007 09:34:35 -0600 Subject: Chopping a map with a grid. In-Reply-To: Message-ID: I am not sure of any mapscript approaches for this type of problem. I currently do this to create a grid that shows how many flights cross a given grid cell in my application at http://maps.macnoise.com/interactive/ (select flight tracks grid from the layer list) using postgis. The general approach that I have is to either use a pre-built grid or a plpgsql function that builds the grid on the fly and to create a layer in mapserver that does an on the fly intersection between the two with a data statement similar to this: DATA "the_geom from (select count(f.id) as count, g.geom as the_geom from grid as g,flighttracks as f where g.geom && f.geom and crosses(g.geom,f.geom)) using unique the_geom using srid=-1" David On 1/26/07, Rodrigo Del C. Andrade wrote: > > > Hi dear list. > > I am trying to implement in java mapscript an application that draws > on-the-fly contours around areas with a high ocurrence rate of a given > event, something like the topics discussed in here: > http://article.gmane.org/gmane.comp.gis.mapserver.user/17924. > I understand it is not easy, so I am taking my steps one at a time. > Being quite new to GIS programming, I am going trough the usual misteps. > > My first problem is actually dividing the area into subzones where I > can count the ocurrences of said events inside each rectangle to feed the > statistic analysis. I have tried using a graticule item on a line layer, but > I cant seem to find a query method that will give me something I can work > with (boundaries, polygons, the works), even though the grid has been drawn > quite nicelly. > I understand I probably missed completelly the point of a GRID object > inside a LINE type layer, but is there some built in way (trough grid or any > other method) to chop a layer in equal rectangles so I can iterate trough > each of them checking for ocorrences? > > Thanks a lot. > > -- > > > *Rodrigo Del C. Andrade* > *Estagi?rio N?vel Superior* > *SIC - SSE - Solu??es Seguran?a P?blica* > > *D?GITRO TECNOLOGIA* > *E-mail:* rodrigo.andrade at digitro.com.br > *Fone:* +55 48 3281-7390 / +55 48 3281-7000 > *Fax:* +55 48 3281-7299 > *Site:* www.digitro.com > -- ************************************ David William Bitner -- ************************************ David William Bitner -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at GMAIL.COM Fri Jan 26 07:47:26 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Fri, 26 Jan 2007 16:47:26 +0100 Subject: MapScript C# (MapServer 4.10): mapscriptPINVOKE problem on 64-bit platform. In-Reply-To: <20070125215405.GB23709@SDF.LONESTAR.ORG> Message-ID: Hi, You should add -DUSE_GENERIC_MS_NINT to MS_CFLAGS in the nmake.opt file. I would suppose to start by setting minimal dependencies at nmake.opt first, and upon a successful compilation you can enable the required features one by one. Setting the gd support is compulsory so you might have to compile this library first. It is highly suggested to set up minimal dependencies at this library as well, and enable those dependencies one by one, just after compiling the dependent libraries. Best Regards, Tamas 2007/1/25, Hong : > Ok, I tried to compile using "win64" mode by going through 'Visual Studio 2995 > x64 Win64 Command Prompt' but mapserver failed to compile. The error: > > D:\TGI\Developer\mapserver_4_10_build\mapserver-4.10.0>nmake /f Makefile.vc > > Microsoft (R) Program Maintenance Utility Version 8.00.50727.42 > Copyright (C) Microsoft Corporation. All rights reserved. > > cl /nologo /Ox /MD /W3 /EHsc -ID:\TGI\Developer\mapserver_4_10_build\ma > pserver-4.10.0\..\gdwin32 -ID:\TGI\Developer\mapserver_4_10_build\mapserver > -4.10.0\..\regex-0.12 -ID:\arcgis\arcsde/include -DHAVE_STRING_H > -DREGEX_MALLOC -DNEED_STRCASECMP -DNEED_STRNCASECMP -DNEED_STRLCAT -DUSE_ > GD_PNG -DUSE_GD_JPEG -DUSE_GD_FT -DGD_HAS_GETBITMAPFONT -DGD_HAS_FTEX_XSHOW > -DUSE_THREAD -DIGNORE_MISSING_DATA -DENABLE_STDERR_DEBUG -DUSE_POINT_Z_M > -DUSE_GD_ANTIALIAS -DUSE_SDE -DWIN32 -D_WIN32 /c mapbits.c /Fomap > bits.obj > mapbits.c > d:\tgi\developer\mapserver_4_10_build\mapserver-4.10.0\map.h(321) : error C4235: > nonstandard extension used : '_asm' keyword not supported on this architecture > d:\tgi\developer\mapserver_4_10_build\mapserver-4.10.0\map.h(322) : error C2065: > 'fld' : undeclared identifier > d:\tgi\developer\mapserver_4_10_build\mapserver-4.10.0\map.h(322) : error C2146: > syntax error : missing ';' before identifier 'flt' > d:\tgi\developer\mapserver_4_10_build\mapserver-4.10.0\map.h(323) : error C2146: > syntax error : missing ';' before identifier 'fistp' > d:\tgi\developer\mapserver_4_10_build\mapserver-4.10.0\map.h(323) : error C2065: > 'fistp' : undeclared identifier > d:\tgi\developer\mapserver_4_10_build\mapserver-4.10.0\map.h(323) : error C2146: > syntax error : missing ';' before identifier 'intgr' > d:\tgi\developer\mapserver_4_10_build\mapserver-4.10.0\map.h(324) : error C2143: > syntax error : missing ';' before '}' > NMAKE : fatal error U1077: '"D:\Program Files (x86)\Microsoft Visual Studio 8\VC > \BIN\amd64\cl.EXE"' : return code '0x2' > Stop. > > Probably I need to get past this error first before considering other things. > > Thanks. > > On Thu, Jan 25, 2007 at 08:37:26PM +0100, Tamas Szekeres wrote: > > Hi, > > > > You probably need to link against the 64 bit version of the > > MSVCR80.DLL in this case. > > The Visual Studio 8 Dependency Walker can display the 64 bit images as well. > > > > In order to produce 64 bit code you should set the proper environment > > variables for your command prompt first. In your case opening the > > 'Visual Studio 2005 x64 Win64 Command Prompt' would be sufficient. > > Alternatively you can look into C:\Program Files (x86)\Microsoft > > Visual Studio 8\VC\vcvarsall.bat and find out a proper path to your > > specific vcvars....bat to run. > > Apparently, to execute your 64 bit code the dependent dll-s (eg. > > proj.dll) might also be compiled as a 64 bit image. > > > > > > > > You should make sure your code is running against the proper version > > of the .NET framework. For example you can use the SysInternals > > Filemon to check whether the 64 bit or the 32 bit version has been > > loaded. Sometimes, you might want to force the usage of a specific > > framework by adding supportedRuntime to the app.config file, like: > > > > > > > > > > > > > > > > If you compile code to produce a Win32 image on a Win64 platform (By > > using the Visual Studio 2005 Command Prompt for example) the default > > options does not force to use the 32 bit version of the framework, and > > your application will not run properly. Therefore you might want to > > add '/platform:x86' to your csc command line when compiling the > > mapscript libraries in this case. (the default option is > > /platform:any) > > > > > > > > In the future, I consider adding some further action to the csharp's > > makefile.vc in order to handle these cases more smoothly. > > > > Best Regards, > > > > Tamas > > > > > > > > 2007/1/25, Hong : > > >Yep I know I need 64-bit DLLs. The MapServer I used was compiled from the > > >source (buildkit) with very stripped down configurations, that was, no > > >linkage > > >to MySQL, PDF generation library, GEOS, and others, as they were > > >irrelevant to > > >what I needed. > > > > > >Looking at all the switches for cl.exe (visual c++ compiler), link.exe > > >(visual > > >c++ linker), and csc.exe (c# compiler), I did not notice any specific > > >switch > > >to produce 64-bit code. Since I compiled it using Visual Studio 2005 > > >installed > > >and running on a 64-bit machine, I think the code produced should run on a > > >64-bit machine. Apparently it is just not that simple. I'm starting to > > >think > > >it was either incorrect CRT library being loaded or the SWIG binary I used > > >to > > >produce the c# mapscript binding DLLs was not 64-bit. I'm still at loss > > >however. > > > > > >Nope, I doubt it would make a difference to have AMD processor, after all > > >AMD > > >architecture is virtually the same as Intel one, as far as assembly > > >instructions go. Unless the software has to interact with the processor > > >directly and make use of processor specific assembly instructions in some > > >way, > > >which I don't think applies to MapServer, it should not matter. > > > > > >Hong. > > > > > >On Thu, Jan 25, 2007 at 10:34:21AM +0100, Tobias.Knoetzele at atosorigin.com > > >wrote: > > >> Hi, > > >> > > >> I don?t know much about C and the very special Error you had. > > >> But I know that > > >> - there are dependencies between the DLLs > > >> - you need 64-Bit DLLs > > >> - I didn?t manage to get the DLLs required as 64 Bit - one isn?t Open > > >Source and the producer says it?s not available for 64Bit Windows. > > >> > > >> Maybe this helps you. > > >> > > >> If you say you?ve got all the DLLs as 64 Bit - then I?d love to have > > >them. Do you know wether it makes a difference to have AMD Processors? > > >> > > >> These are the DLLs required: > > >> ssleay32.dll > > >> xerces-c_2_7.dll > > >> zlib1.dll > > >> bgd.dll > > >> gdal13.dll > > >> geos_c.dll > > >> geotiff.dll > > >> iconv.dll > > >> libcurl.dll > > >> libeay32.dll > > >> libecwj2.dll > > >> libmap.dll > > >> libmysql.dll > > >> libpq.dll > > >> libtiff.dll > > >> libxml2.dll > > >> lti_dsdk_dll.dll > > >> mapscript.dll > > >> pdflib.dll > > >> proj.dll > > >> > > >> Tobias > > >> > > >> -----Urspr?ngliche Nachricht----- > > >> Von: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] Im > > >Auftrag von Hong > > >> Gesendet: Donnerstag, 25. Januar 2007 01:49 > > >> An: MAPSERVER-USERS at lists.umn.edu > > >> Betreff: [UMN_MAPSERVER-USERS] MapScript C# (MapServer 4.10): > > >mapscriptPINVOKE problem on 64-bit platform. > > >> > > >> Hi, > > >> > > >> I was trying to run mapserver compiled on a 64-bit Intel dual xeon > > >processor machine running Windows Server 2003 R2 64-bit edition. On map > > >object creation, the subroutine threw an exception "The type initializer > > >for 'mapscriptPINVOKE' > > >> threw an exception.". The stack trace was: > > >> > > >> at mapscriptPINVOKE.new_mapObj(String jarg1) at mapObj..ctor(String > > >filename) > > >> > > >> I wrote a small test C++ application on the 64-bit machine that tried to > > >create a map object by compiling and linking it to mapscript.lib and > > >mapscript_i.lib. The application ended up with the error: > > >> > > >> Debug Assertion Failed! > > >> Program: D:\TGI\Developer\MapServerTest\debug\MapServerTest.exe > > >> File: dbgheap.c > > >> Line: 1252 > > >> > > >> Expression: _CrtIsValidHeapPointer(pUserData) > > >> > > >> So it looked like I was having problem with the CRT library on the > > >64-bit machine. Looking at libmap.dll revealed that it depended on > > >c:\windows\syswow64\MSVCRT.DLL (is this the correct CRT to load?) > > >> > > >> The compiler was MS Visual Studio 2005. > > >> > > >> The C++ test program itself: > > >> > > >> // MapServerTest.cpp : Defines the entry point for the console > > >application. > > >> // > > >> > > >> #include "stdafx.h" > > >> #include > > >> #include "map.h" > > >> > > >> > > >> int _tmain(int argc, _TCHAR* argv[]) > > >> { > > >> std::cout << "Hello World" << std::endl; > > >> > > >> mapObj* p_mapObj = msNewMapObj(); > > >> > > >> return 0; > > >> } > > >> > > >> At this point I'm stumped on where to proceed next and can use any > > >help/suggestion. > > >> > > >> Hong > > >> > > > > From nbest at FORESTONE.COM Fri Jan 26 09:01:40 2007 From: nbest at FORESTONE.COM (Neil Best) Date: Fri, 26 Jan 2007 10:01:40 -0700 Subject: mapserver ogr connection to tile index Message-ID: In the OGR In Mapserver How-To section 4.5 [1] talks about using a tile index for vector layers. I have been able to add a collection of shapefiles with differing attribute schemas to my map and they render correctly but the attributes are not available for querying, as in an on-screen identification. LAYER NAME "ogrtile" TYPE POLYGON CONNECTIONTYPE OGR TILEINDEX "tileindex.shp,0" STATUS ON TEMPLATE "query" CLASS NAME "all" STYLE COLOR 200 255 0 OUTLINECOLOR 120 120 120 END END END The statements in the how-to gave me some optimism that it might work by saying "OGR tileindex layers should support all normal query and attribute fetching mechanisms" with the qualification that "problems may (or may not) be encountered if the component tiles have differing schemas (different sets of attributes)," which should have dampened my optimism. Anyhow I have tested it out and it seems like I need another approach, but I am wondering if anyone has successfully done this and I have missed something. Could this possibly be a useful feature? Thanks. Neil [1] http://mapserver.gis.umn.edu/docs/howto/ogr_howto/#tileindex-with-ogr From mitchelljj98 at GMAIL.COM Fri Jan 26 10:17:52 2007 From: mitchelljj98 at GMAIL.COM (John Mitchell) Date: Fri, 26 Jan 2007 13:17:52 -0500 Subject: white dashes at border between tiles within MapServer Message-ID: Hi, When I have a shape file within MapServer that is pointing to a number of GeoTiff files I sometimes get a series of white dashes running at the border between GeoTiff files. I have brought these same GeoTiff files and displayed them within ArcExplorer2 and these white dashes do not show up. Thanks, -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From nbest at FORESTONE.COM Fri Jan 26 12:05:47 2007 From: nbest at FORESTONE.COM (Neil Best) Date: Fri, 26 Jan 2007 13:05:47 -0700 Subject: mapserver ogr connection to tile index Message-ID: What's more when I use this composite layer in a WFS server it appears that it only serves out one of the tiles, presumably the first one. Attributes should not be a factor in this case because I am accepting the default of including no attributes. > -------- Original Message -------- > Subject: mapserver ogr connection to tile index > From: Neil Best > Date: Fri, January 26, 2007 11:01 am > To: MAPSERVER-USERS at LISTS.UMN.EDU > > In the OGR In Mapserver How-To section 4.5 [1] talks about using a tile > index for vector layers. I have been able to add a collection of > shapefiles with differing attribute schemas to my map and they render > correctly but the attributes are not available for querying, as in an > on-screen identification. > > LAYER > NAME "ogrtile" > TYPE POLYGON > CONNECTIONTYPE OGR > TILEINDEX "tileindex.shp,0" > STATUS ON > TEMPLATE "query" > CLASS > NAME "all" > STYLE > COLOR 200 255 0 > OUTLINECOLOR 120 120 120 > END > END > END > > The statements in the how-to gave me some optimism that it might work by > saying "OGR tileindex layers should support all normal query and > attribute fetching mechanisms" with the qualification that "problems > may (or may not) be encountered if the component tiles have differing > schemas (different sets of attributes)," which should have dampened my > optimism. Anyhow I have tested it out and it seems like I need another > approach, but I am wondering if anyone has successfully done this and I > have missed something. Could this possibly be a useful feature? > Thanks. > > Neil > > > [1] > http://mapserver.gis.umn.edu/docs/howto/ogr_howto/#tileindex-with-ogr From warmerdam at POBOX.COM Fri Jan 26 12:56:13 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 26 Jan 2007 15:56:13 -0500 Subject: Question about bug 1975 In-Reply-To: <45BA09ED.9030301@mapgears.com> Message-ID: Daniel Morissette wrote: > Ben Tuttle wrote: >> Hi all- >> Apologies if this is the wrong place to ask this kind of question. We >> are running into all sorts of issues due to bug 1975 and trying to map >> out our future development efforts. It looks like this bug is slated >> to be fixed in version 5.0, does this sound right? > > Dunno if it's really on Frank's hit list or if he just suggested that > someone should address that for 5.0. I added a comment to bug 1975 about > the last issue that you reported. > >> If so does anyone >> have a rough idea of when 5.0 might be released or is it completely >> unknown at this time. > > The 5.0 release date has not been set yet, but last time we talked about > it last fall we were thinking first quarter of 2007. Since many of the > things that were planned for 5.0 don't seem to have progressed much yet > I'm thinking it may well slip until later in the spring. Ben, Sorry for not responding sooner. Twice I started the effort to dig up this bug report to see what it was but got distracted. A direct bug url helps! I don't anticipate a fix for 1975 (loadparams() does not work in mod_php or mod_python situation) for any of the 4.10.x bug fixes releases. I'd like to fix it for 5.0 but even that is not certain, and it seems to me that the workaround should not be too onerous (parse the url and populate the params manually). As to the question about intermittent crashing, we would definately need more details to track that down. It could be almost anything. 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 | President OSGeo, http://osgeo.org From pcreso at PCRESO.COM Fri Jan 26 13:08:38 2007 From: pcreso at PCRESO.COM (Brent Wood) Date: Fri, 26 Jan 2007 13:08:38 -0800 Subject: white dashes at border between tiles within MapServer In-Reply-To: Message-ID: --- John Mitchell wrote: > Hi, > > When I have a shape file within MapServer that is pointing to a number of > GeoTiff files I sometimes get a series of white dashes running at the border > between GeoTiff files. I have brought these same GeoTiff files and > displayed them within ArcExplorer2 and these white dashes do not show up. I have found this to be the background showing through. The gap is caused by a reprojected tile which is no longer rectangular, and a pixel can get lost at the boundary. (Which doesn't mean this is the same thing you're seeing :-) It seems to be a rounding issue. My fix was to specify a background of 128/128/128 RGB values, as my tiles were grayscale aerial images. While the dashed lines were still there, it made thenm difficult to see :-) Cheers, Brent Wood From ljfong at SDF.LONESTAR.ORG Fri Jan 26 13:33:36 2007 From: ljfong at SDF.LONESTAR.ORG (Hong) Date: Fri, 26 Jan 2007 14:33:36 -0700 Subject: Does the current SDE driver in MapServer support logical and regular expressions in CLASS? Message-ID: The question is in the topic. Thanks. Hong From richard.greenwood at GMAIL.COM Fri Jan 26 14:04:09 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Fri, 26 Jan 2007 15:04:09 -0700 Subject: dLegend Message-ID: On 1/26/07, william paul wrote: > Hi Rich: > > Please excuse me for contact you on your email. I have seen in your new > teton county mapserver that you can activate deactivate the layers > automatically. How can I do this? and how I can load the page with some > layers already checked > > Thank you again > > William I am copying to the mapserver list so that others may contribute and/or benefit from our discussion. To eliminate the "redraw map" link, you define a legend handler like this: function legendHandler(name, state) { ms.setLayer(name, state); ms.draw(); } To set the initial state of layers, you call the changeNodeStatus() function. In my window.onload() function I use the following code: var slayers = ms.getLayers(",") var alayers = slayers.split(","); for(var i=0; i Message-ID: Expressions in classes are interpreted by MapServer not the underlying datasource for consistancy. So, the answer is yes. Steve >>> Hong 1/26/2007 3:33:36 PM >>> The question is in the topic. Thanks. Hong From ljfong at SDF.LONESTAR.ORG Fri Jan 26 16:35:45 2007 From: ljfong at SDF.LONESTAR.ORG (Hong) Date: Fri, 26 Jan 2007 17:35:45 -0700 Subject: Does the current SDE driver in MapServer support logical and regular expressio In-Reply-To: <45BA358F0200008F0000643E@co5.dnr.state.mn.us> Message-ID: Then I guess I had the expression wrong then, here was the layer I had been trying to display with multiple classifications: LAYER # 9 NAME "Census Groups" TYPE POLYGON CONNECTION ... CONNECTIONTYPE SDE DATA "APACHE.APACHE.CENSUS_GROUP,SHAPE,SDE.DEFAULT" STATUS ON TRANSFORM ON CLASSITEM "POP2000" CLASS EXPRESSION "[POP2000] >= 0 AND [POP2000] <= 400" STYLE COLOR 112 247 38 END END CLASS EXPRESSION "[POP2000] >= 400 AND [POP2000] <= 800" STYLE COLOR 233 9 61 END END ... # Catch-all CLASS STYLE COLOR 255 0 0 END END END The CENSUS_GROUP table is an SDE table with SHAPE as its geometric field. The field POP2000 is a numeric field of type 'int' with values from 21 to 3416. MapServer ignored all other classifications and only rendered the layer by "Catch-all" classification that rendered everything in red. No error or warning from MapServer at all. Can someone show me the correct way of writing the EXPRESSION in this case? Thanks. Hong On Fri, Jan 26, 2007 at 05:08:31PM -0600, Steve Lime wrote: > Expressions in classes are interpreted by MapServer not the underlying > datasource for consistancy. So, the answer is yes. > > Steve > > >>> Hong 1/26/2007 3:33:36 PM >>> > The question is in the topic. > > Thanks. > > Hong From funkbucket at GMAIL.COM Fri Jan 26 17:27:15 2007 From: funkbucket at GMAIL.COM (Ben Tuttle) Date: Fri, 26 Jan 2007 18:27:15 -0700 Subject: Question about bug 1975 In-Reply-To: <45BA6AED.1020501@pobox.com> Message-ID: Thanks for the update. I'll look into whether or not we can get more details on the crashing. Any tips on particular thigns that might help? What we know so far is that if we have open up a top on the server and then hit the php apache starts and then dies almost instantly returning nothing. If we fake the environment and run on the command line it succeeds everytime. I'm a little new to this so any direction on where to go from here in terms of trying to track it down would be greatly appreciated. On 1/26/07, Frank Warmerdam wrote: > Daniel Morissette wrote: > > Ben Tuttle wrote: > >> Hi all- > >> Apologies if this is the wrong place to ask this kind of question. We > >> are running into all sorts of issues due to bug 1975 and trying to map > >> out our future development efforts. It looks like this bug is slated > >> to be fixed in version 5.0, does this sound right? > > > > Dunno if it's really on Frank's hit list or if he just suggested that > > someone should address that for 5.0. I added a comment to bug 1975 about > > the last issue that you reported. > > > >> If so does anyone > >> have a rough idea of when 5.0 might be released or is it completely > >> unknown at this time. > > > > The 5.0 release date has not been set yet, but last time we talked about > > it last fall we were thinking first quarter of 2007. Since many of the > > things that were planned for 5.0 don't seem to have progressed much yet > > I'm thinking it may well slip until later in the spring. > > Ben, > > Sorry for not responding sooner. Twice I started the effort to dig up this > bug report to see what it was but got distracted. A direct bug url helps! > > I don't anticipate a fix for 1975 (loadparams() does not work in mod_php > or mod_python situation) for any of the 4.10.x bug fixes releases. I'd > like to fix it for 5.0 but even that is not certain, and it seems to me > that the workaround should not be too onerous (parse the url and populate > the params manually). > > As to the question about intermittent crashing, we would definately need > more details to track that down. It could be almost anything. > > 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 | President OSGeo, http://osgeo.org > From andreas.albarello at TERRITORIUMONLINE.COM Sat Jan 27 00:44:55 2007 From: andreas.albarello at TERRITORIUMONLINE.COM (Andreas Albarello) Date: Sat, 27 Jan 2007 09:44:55 +0100 Subject: Does the current SDE driver in MapServer support logical and regular expressio In-Reply-To: <20070127003545.GB9615@SDF.LONESTAR.ORG> Message-ID: Hong wrote: > Then I guess I had the expression wrong then, here was the layer I had been > trying to display with multiple classifications: > > LAYER # 9 > NAME "Census Groups"[...] [...] > CLASSITEM "POP2000" > CLASS > EXPRESSION "[POP2000] >= 0 AND [POP2000] <= 400" > STYLE > COLOR 112 247 38 > END > END [...] Hong, your expressions are syntactically correct, you only need to wrap them in brackets instead of quotes, so they are actually considered as expressions and not as strings. EXPRESSION ([POP2000] >= 0 AND [POP2000] <= 400) should therefore just work fine. Best regards, -- -------------------------------------------------------------------- Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH Via Buozzi/Buozzistra?e 12 - I 39100 Bolzano/Bozen email: andreas.albarello at territoriumonline.com web: www.territoriumonline.com -------------------------------------------------------------------- From pauljame at GMAIL.COM Sat Jan 27 08:16:59 2007 From: pauljame at GMAIL.COM (Paul james) Date: Sat, 27 Jan 2007 14:16:59 -0200 Subject: Urgent - Symbol in Legend with fixed size !!!!! Message-ID: Hello! I can?t do that working ! :( I have a point layer with TRUETYPE sybom like that: STYLE SYMBOL "fonta" COLOR 0 0 255 SIZE 250 MINSIZE 3 MAXSIZE 25 END SYMBOL NAME "fonta" TYPE TRUETYPE FONT "test" CHARACTER "b" ANTIALIAS true END So, in my legend the size increase with zoom in and decrease with zoom out (like map) ! I need to fix that size on legend! How can I do that?? TY !!! -------------- next part -------------- An HTML attachment was scrubbed... URL: From revelar at HOTMAIL.COM Sat Jan 27 09:34:32 2007 From: revelar at HOTMAIL.COM (Raul Retamozo) Date: Sat, 27 Jan 2007 17:34:32 +0000 Subject: mapserver + linux centOS + PHP: libpq.so.5 is Missing Message-ID: Hello. I've been trying to install the folllowing sofware. UMN Mapserver 4.10. + php 5.2 + postgresql 8.2 with OS CentOS 4.3 I've followed the install notes from this tutorial: http://mapserver.gis.umn.edu/docs/howto/verboselinuxinstall About half a year I installed succesfully this software without PHP (of course mapserver was 4.8), with no problems, but, last week i've tried to do tsame in another Server (same OS), but appears an error about libpq.so.5, mapserver looks for this library. I tried recompiling and installing GDAL and GD or looking for each library missing (e.g. libgdal ), but the rror remains. Does anyone know how to fix this error and how finish installation succesfully? raul n. retamozo velarde revelar at hotmail.com _________________________________________________________________ Busca desde cualquier p?gina Web con una protecci?n excepcional. Consigue la Barra de herramientas de Windows Live hoy mismo y GRATUITAMENTE. http://www.toolbar.live.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From siki at AGT.BME.HU Sat Jan 27 13:23:59 2007 From: siki at AGT.BME.HU (Siki Zoltan) Date: Sat, 27 Jan 2007 20:23:59 -0100 Subject: mapserver + linux centOS + PHP: libpq.so.5 is Missing {Scanned} {Scanned} In-Reply-To: Message-ID: Hi Raul, libpq is the C application programmer's interface to PostgreSQL. Probably the directory of libpq is not defined ld.so.conf or in LD_LIBRARY_PATH enviroment variable. It is probably in the lib directory of postgrasql intall directory. You can use ldd command to check dinamic linked library dependency. After changing ld.so.conf dont forget to run ldconfig command. Bye Zoltan On Sat, 27 Jan 2007, Raul Retamozo wrote: > Hello. > I've been trying to install the folllowing sofware. UMN Mapserver 4.10. + php 5.2 + postgresql 8.2 with OS CentOS 4.3 > > I've followed the install notes from this tutorial: http://mapserver.gis.umn.edu/docs/howto/verboselinuxinstall > > About half a year I installed succesfully this software without PHP (of course mapserver was 4.8), with no problems, but, last week i've tried to do tsame in another Server (same OS), but appears an error about libpq.so.5, mapserver looks for this library. I tried recompiling and installing GDAL and GD or looking for each library missing (e.g. libgdal ), but the rror remains. > > Does anyone know how to fix this error and how finish installation succesfully? > > > raul n. retamozo velarde > revelar at hotmail.com > _________________________________________________________________ > Busca desde cualquier p?gina Web con una protecci?n excepcional. Consigue la Barra de herramientas de Windows Live hoy mismo y GRATUITAMENTE. > http://www.toolbar.live.com From kbehncke at IGF.UNI-OSNABRUECK.DE Sun Jan 28 07:24:34 2007 From: kbehncke at IGF.UNI-OSNABRUECK.DE (Kai Behncke) Date: Sun, 28 Jan 2007 16:24:34 +0100 Subject: Urgent - Symbol in Legend with fixed size !!!!! In-Reply-To: <33fad6880701270816u3ff88417qd6e15227f1830cad@mail.gmail.com> Message-ID: On Sat, 27 Jan 2007 14:16:59 -0200, Paul james wrote > Hello! I can?t do that working ! :( > > I have a point layer with TRUETYPE sybom like that: > > STYLE > SYMBOL "fonta" > COLOR 0 0 255 > SIZE 250 > MINSIZE 3 > MAXSIZE 25 > END > > SYMBOL > NAME "fonta" > TYPE TRUETYPE > FONT "test" > CHARACTER "b" > ANTIALIAS true > END > > So, in my legend the size increase with zoom in and decrease with > zoom out > (like map) ! I need to fix that size on legend! How can I do that?? > > TY !!! Hello Paul. you can do that with HTML-legends, for example write in the LEGEND-Block: LEGEND STATUS ON KEYSIZE 18 12 # LABEL object LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END TEMPLATE "legend.html" END The template.html looks like: [leg_class_html opt_flag=15] [leg_class_name]
[/leg_class_html] Best Regards, Kai -- Dipl.-Geogr. Dipl.-Umweltwiss. Kai Behncke Institut f?r Geoinformatik und Fernerkundung (IGF) Universit?t Osnabr?ck Kolpingstr. 7 49074 Osnabr?ck Raum: 01/308 Tel.: +49 541 969-4450 E-Mail: mailto:kbehncke at igf.uni-osnabrueck.de Web: http://www.igf.uni-osnabrueck.de From mitchelljj98 at GMAIL.COM Sun Jan 28 09:33:45 2007 From: mitchelljj98 at GMAIL.COM (John Mitchell) Date: Sun, 28 Jan 2007 12:33:45 -0500 Subject: Is fast-cgi running within mapserver when setup in the following way: MS4W setup with latest FWTools bin content copied into MS4W apache\cgi-bin. Message-ID: Hi, Is fast-cgi running within mapserver when setup in the following way: MS4W setup with latest FWTools bin content copied into MS4W apache\cgi-bin. I run mapserv -v and it says fastcgi. Is their anything else that I have to do? Thanks, -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at DMSOLUTIONS.CA Sun Jan 28 10:03:31 2007 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Sun, 28 Jan 2007 13:03:31 -0500 Subject: Is fast-cgi running within mapserver when setup in the following way: MS4W setup with latest FWTools bin content copied into MS4W apache\cgi-bin. In-Reply-To: Message-ID: I can't speak for your FWtools-to-MS4W port, but note that MS4W 2.2.2 contains MapServer compiled with FastCGI support (notes here http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#d-fastcgi), and you'll need to compile the necessary Apache module (as noted here http://mapserver.gis.umn.edu/docs/howto/fastcgi/#ms4w-users). Or i suppose you could use an older Apache version that has a mod_fastcgi module already available. (but this is the extent of my knowledge, as stated in one of the docs the hope is that someone takes the time to do this and document what is needed, and contribute the notes back to MS4W) jeff > Hi, > > Is fast-cgi running within mapserver when setup in the following way: MS4W > setup with latest FWTools bin content copied into MS4W apache\cgi-bin. I > run > mapserv -v and it says fastcgi. Is their anything else that I have to do? > > Thanks, > > -- > John J. Mitchell > From woodbri at SWOODBRIDGE.COM Sun Jan 28 10:09:42 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sun, 28 Jan 2007 13:09:42 -0500 Subject: Is fast-cgi running within mapserver when setup in the following way: MS4W setup with latest FWTools bin content copied into MS4W apache\cgi-bin. In-Reply-To: Message-ID: John Mitchell wrote: > Hi, > > Is fast-cgi running within mapserver when setup in the following way: > MS4W setup with latest FWTools bin content copied into MS4W > apache\cgi-bin. I run mapserv -v and it says fastcgi. Is their anything > else that I have to do? > > Thanks, > > -- > John J. Mitchell John, On the mapserver site on the documentation page is a link that explains all you have to do to get fastcgi setup and running. While this might already be done or not in MS4W, it is worth while reading and checking the various config options and parameters. http://mapserver.gis.umn.edu/docs/howto/fastcgi -Steve W. From kbehncke at IGF.UNI-OSNABRUECK.DE Sun Jan 28 23:10:13 2007 From: kbehncke at IGF.UNI-OSNABRUECK.DE (Kai Behncke) Date: Mon, 29 Jan 2007 08:10:13 +0100 Subject: Advantage WFS vs. WMS Message-ID: Hello list, I would like to know what the advantages of WFS in comparison to WMS are? Some aspects are quite clear: -It`s easier to design a WFS than a WMS. The way with SLD is not necessary. - Poissibility to analyze and select WFS-Features with Filters (at WMS just a spatial analyze with BBOX is possible) - Tooltip-possibility - Highlighfunction Does anybody know other advantages WFS gives in comparison to WMS? Thank you, Kai -- Dipl.-Geogr. Dipl.-Umweltwiss. Kai Behncke Institut f?r Geoinformatik und Fernerkundung (IGF) Universit?t Osnabr?ck Kolpingstr. 7 49074 Osnabr?ck Raum: 01/308 Tel.: +49 541 969-4450 E-Mail: mailto:kbehncke at igf.uni-osnabrueck.de Web: http://www.igf.uni-osnabrueck.de From bartvde at OSGIS.NL Sun Jan 28 23:43:06 2007 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Mon, 29 Jan 2007 08:43:06 +0100 Subject: Advantage WFS vs. WMS Message-ID: Kai, firstly keep in mind that WMS and WFS serve different purposes. WFS can get you to the real data, WMS can only get you images of your data, and something called getfeatureinfo can get you to do a query on a point clicked in the map. With respect to your list, I don't agree with all of your points. WFS, i.e. the GML coming from a WFS, is also often symbolized using SLD. So there is not much difference there. With Mapserver you can define CLASSes on a CONNECTIONTYPE WFS layer, but a lot of OGC clients use SLD to style WFS layers. Highlight can be done with WMS as well, no problem there. You can just create a SLD with a Filter in there. Even a tooltip on a mouseover could theoretically be done with WMS (GetFeatureInfo), but the performance will probably be insufficient. So having a WFS and getting the data within the map extent using a BBOX filter will probably be the way to go for a tooltip layer. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Kai Behncke Naar: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] Advantage WFS vs. WMS Datum: 29/01/07 05:24 > Hello list, > > I would like to know what the advantages of WFS in comparison to WMS are? > > Some aspects are quite clear: > > -It`s easier to design a WFS than a WMS. The way with SLD is not necessary. > > - Poissibility to analyze and select WFS-Features with Filters (at WMS just a > spatial analyze with BBOX is possible) > > - Tooltip-possibility > > - Highlighfunction > > Does anybody know other advantages WFS gives in comparison to WMS? > > > > Thank you, Kai > > -- > Dipl.-Geogr. Dipl.-Umweltwiss. Kai Behncke > > Institut f?r Geoinformatik und Fernerkundung (IGF) > Universit?t Osnabr?ck > Kolpingstr. 7 > 49074 Osnabr?ck > > Raum: 01/308 > Tel.: +49 541 969-4450 > E-Mail: mailto:kbehncke at igf.uni-osnabrueck.de > Web: http://www.igf.uni-osnabrueck.de > > From dirk at ADVTECHME.COM Sun Jan 28 23:43:21 2007 From: dirk at ADVTECHME.COM (Dirk Tilger) Date: Mon, 29 Jan 2007 11:43:21 +0400 Subject: Advantage WFS vs. WMS In-Reply-To: <20070129070850.M11276@igf.uni-osnabrueck.de> Message-ID: On Mon, Jan 29, 2007 at 08:10:13AM +0100, Kai Behncke wrote: > Does anybody know other advantages WFS gives in comparison to WMS? Well, just think about what both are doing: WFS transfers the data. WMS transfers ready made maps. One gives you the drawn map the other one gives you the raw data. So whatever are the advantages of getting the raw data are the advantages of WFS. Dirk Tilger Advanced Technologies ME FZ LLC Tel +971 50 8809132 +966 55 7584161 Fax +971 4 367 2529 From ruckc at YAHOO.COM Mon Jan 29 00:05:22 2007 From: ruckc at YAHOO.COM (Curtis W. Ruck) Date: Mon, 29 Jan 2007 00:05:22 -0800 Subject: Advantage WFS vs. WMS Message-ID: for large sets of data WMS is much faster since its just generating and passing an image, whereas WFS is quite painful with large query sets. Its also faster in web based clients to handle because javascript although nice in most web based WFS clients its very slow to drag them around (think openlayers). Also with WMS and mapserver you can query by GET arguments i just can't remember how at the moment. Its something like LAYER_0_FILTER='foo > 5 AND bar < 5' ----- Original Message ---- From: Kai Behncke To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Monday, January 29, 2007 1:10:13 AM Subject: [UMN_MAPSERVER-USERS] Advantage WFS vs. WMS Hello list, I would like to know what the advantages of WFS in comparison to WMS are? Some aspects are quite clear: -It`s easier to design a WFS than a WMS. The way with SLD is not necessary. - Poissibility to analyze and select WFS-Features with Filters (at WMS just a spatial analyze with BBOX is possible) - Tooltip-possibility - Highlighfunction Does anybody know other advantages WFS gives in comparison to WMS? Thank you, Kai -- Dipl.-Geogr. Dipl.-Umweltwiss. Kai Behncke Institut f?r Geoinformatik und Fernerkundung (IGF) Universit?t Osnabr?ck Kolpingstr. 7 49074 Osnabr?ck Raum: 01/308 Tel.: +49 541 969-4450 E-Mail: mailto:kbehncke at igf.uni-osnabrueck.de Web: http://www.igf.uni-osnabrueck.de -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at OSGIS.NL Mon Jan 29 00:08:27 2007 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Mon, 29 Jan 2007 09:08:27 +0100 Subject: Advantage WFS vs. WMS Message-ID: Please note that the filter given here is not WMS, its Mapserver's native query language, so it can at most be seen as a vendor-specific parameter. The way to do this with WMS is to use SLD. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Curtis W. Ruck Naar: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] Advantage WFS vs. WMS Datum: 29/01/07 06:06 > for large sets of data WMS is much faster since its just generating and passing an image, whereas WFS is quite painful with large query sets.  Its also faster in web based clients to handle because javascript although nice in most web based WFS clients its very slow to drag them around (think openlayers).Also with WMS and mapserver you can query by GET arguments i just can't remember how at the moment.  Its something like LAYER_0_FILTER='foo > 5 AND bar < 5' ----- Original Message ----From: Kai Behncke <kbehncke at IGF.UNI-OSNABRUECK.DE>To: MAPSERVER-USERS at LISTS.UMN.EDUSent: Monday, January 29, 2007 1:10:13 AMSubject: > [UMN_MAPSERVER-USERS] Advantage WFS vs. WMSHello list,I would like to know what the advantages of WFS in comparison to WMS are?Some aspects are quite clear:-It`s easier to design a WFS than a WMS. The way with SLD is not necessary.- Poissibility to analyze and select WFS-Features with Filters (at WMS just aspatial analyze with BBOX is possible)- Tooltip-possibility- HighlighfunctionDoes anybody know other advantages WFS gives in comparison to WMS?Thank you, Kai --Dipl.-Geogr. Dipl.-Umweltwiss. Kai BehnckeInstitut f?r Geoinformatik und Fernerkundung (IGF)Universit?t Osnabr?ckKolpingstr. 749074 Osnabr?ckRaum: 01/308Tel.: +49 541 969-4450E-Mail: mailto:kbehncke at igf.uni-osnabrueck.de Web:  http://www.igf.uni-osnabrueck.de From Walter.Pleyer at LFRZ.AT Mon Jan 29 03:32:51 2007 From: Walter.Pleyer at LFRZ.AT (Pleyer, Walter) Date: Mon, 29 Jan 2007 12:32:51 +0100 Subject: UMN - Oracle Spatial Message-ID: Hi folks! Do some of you have know how and experince with UMN mapserver and Oracle spatial? We try to use this combination, but the performance is inacceptably slow. We are not sure, where the problem lies, but we have hints that make us believe, that mapserver may not be using very efficient query, when retrieveing data from Oracle spatial. Can you confirm that? Do you have other information regarding that topic? Are there feasible workarounds? Thanks Walter LFRZ A-1200 Wien, Dresdner Strasse 89 Tel: ++43(1)33 176/421 Fax: ++43(1)33 176/999 Email: walter.pleyer at lfrz.at WWW: http://www.lfrz.at From fsimon at UNIVALI.BR Mon Jan 29 04:09:04 2007 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Mon, 29 Jan 2007 10:09:04 -0200 Subject: UMN - Oracle Spatial In-Reply-To: Message-ID: Hi Walter, Here in the UNIVALI we use a lot Oracle Spatial with UMN Mapserver in our projects. About the speed, it is slow to draw the map too, or just to apply query (query mode in CGI and query functions in Mapscript) ? Can you show how you defined your DATA parameter for your layer? What version of UMN Mapserver are you using? Best regards. -------------------------------------------- Fernando Simon UMN Mapserver and Oracle Spatial developer -------------------------------------------- Citando "Pleyer, Walter" : > Hi folks! > > Do some of you have know how and experince with UMN mapserver and > Oracle > spatial? > We try to use this combination, but the performance is > inacceptably > slow. > We are not sure, where the problem lies, but we have hints that > make us > believe, that mapserver may not be using very efficient query, > when > retrieveing data from Oracle spatial. > > Can you confirm that? > Do you have other information regarding that topic? > Are there feasible workarounds? > > Thanks > Walter > > LFRZ > A-1200 Wien, Dresdner Strasse 89 > Tel: ++43(1)33 176/421 > Fax: ++43(1)33 176/999 > Email: walter.pleyer at lfrz.at > WWW: http://www.lfrz.at > ------------------------------------------------- Univali - Webmail - http://webmail.univali.br From bartvde at OSGIS.NL Mon Jan 29 04:39:41 2007 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Mon, 29 Jan 2007 13:39:41 +0100 Subject: UMN - Oracle Spatial Message-ID: Mapserver queries Oracle row by row (fetch by id). This works fine for shapefiles but not for database sources. For maps it should be reasonably fast enough on Oracle Spatial, but for queries it is not, at least that's my experience. It also depends on the size of the result set ofcourse. If I need heavy queries, I tend to go for Geoserver instead. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Pleyer, Walter Naar: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] UMN - Oracle Spatial Datum: 29/01/07 10:37 > Hi folks! > > Do some of you have know how and experince with UMN mapserver and Oracle > spatial? > We try to use this combination, but the performance is inacceptably > slow. > We are not sure, where the problem lies, but we have hints that make us > believe, that mapserver may not be using very efficient query, when > retrieveing data from Oracle spatial. > > Can you confirm that? > Do you have other information regarding that topic? > Are there feasible workarounds? > > Thanks > Walter > > LFRZ > A-1200 Wien, Dresdner Strasse 89 > Tel: ++43(1)33 176/421 > Fax: ++43(1)33 176/999 > Email: walter.pleyer at lfrz.at > WWW: http://www.lfrz.at > > From Walter.Pleyer at LFRZ.AT Mon Jan 29 04:43:13 2007 From: Walter.Pleyer at LFRZ.AT (Pleyer, Walter) Date: Mon, 29 Jan 2007 13:43:13 +0100 Subject: AW: [UMN_MAPSERVER-USERS] UMN - Oracle Spatial In-Reply-To: A Message-ID: > Mapserver queries Oracle row by row (fetch by id). This works > fine for shapefiles but not for database sources. With queries I actually meant the step of retrieving the geometry data for drawing the map. Some of the maps contain between 10000 and 20000 geometries. Walter From bartvde at OSGIS.NL Mon Jan 29 04:49:54 2007 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Mon, 29 Jan 2007 13:49:54 +0100 Subject: AW: [UMN_MAPSERVER-USERS] UMN - Oracle Spatial Message-ID: Shouldn't you then just simplify/generalize the geometries at the database level so that at a smaller map scale less and simpler geometries can be retrieved by Mapserver? So make several tables and apply them to scale levels. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Pleyer, Walter Naar: Bart van den Eijnden OSGIS , MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: AW: [UMN_MAPSERVER-USERS] UMN - Oracle Spatial Datum: 29/01/07 10:46 > > > > Mapserver queries Oracle row by row (fetch by id). This works > > fine for shapefiles but not for database sources. > With queries I actually meant the step of retrieving the geometry data > for drawing the map. Some of the maps contain between 10000 and 20000 > geometries. > > Walter > > From emiliol at JCCM.ES Mon Jan 29 05:24:24 2007 From: emiliol at JCCM.ES (Emilio L. Pasamontes) Date: Mon, 29 Jan 2007 14:24:24 +0100 Subject: querybyattributes with multiple results Message-ID: The first question: sorry for my english. And now: When you do: $queryString = "('[AREA]' = '10')" $queryItem = 'AREA'; $map->querybyattributes($queryitem,$queryString,MS_MULTIPLE); if the result is multiple, how get a new image that it contains in itself all the shapes findings. thank?s for all and, another time, sorry for my english. ______________________________________________________ Por si alquien sabe espa?ol: El problema que tenemos es que al hacer un querybyattributes si el resultado de la consulta es m?ltple (por ejemplo, varios registros de un shape de pol?gonos) pues los alfanum?ricos los conseguimos f?cilmente, pero ?c?mo creamos una im?gen que contenga todos los pol?gonos encontrados en la selecci?n?. saludos y gracias por todo. __________________________ Emilio L?pez Pasamontes, ?rea de Desarrollo Servicio de Inform?tica , SGT Consejer?a de Medio Ambiente y Desarrollo Rural C/ Quintanar de la Orden, s/n 45071, Toledo, Espa?a emiliol at jccm.es -------------- next part -------------- An HTML attachment was scrubbed... URL: From dirk at ADVTECHME.COM Mon Jan 29 07:11:56 2007 From: dirk at ADVTECHME.COM (Dirk Tilger) Date: Mon, 29 Jan 2007 19:11:56 +0400 Subject: querybyattributes with multiple results In-Reply-To: <00a201c743a8$cb4ee320$d206800a@cma.jclm.es> Message-ID: On Mon, Jan 29, 2007 at 02:24:24PM +0100, Emilio L. Pasamontes wrote: > The first question: sorry for my english. > > And now: > > When you do: > > $queryString = "('[AREA]' = '10')" > $queryItem = 'AREA'; > $map->querybyattributes($queryitem,$queryString,MS_MULTIPLE); for ($nLayer = 0; $nLayer < $map->numlayers; $nLayer++) { $oLayer = $map->getLayer($nLayer); $oLayer->open(); for ($nResult = 0; $nResult < $map->getNumResults(); $nResult++) { $oResult - $oLayer->getResult($nResult); $oShape = $oLayer->getShape($oResult->shapeindex); } $oLayer->close(); } ... something like this (there might be a bug hidden somewhere). Dirk Tilger From stephane.riff at CERENE.FR Mon Jan 29 07:36:31 2007 From: stephane.riff at CERENE.FR (=?ISO-8859-1?Q?St=E9phane_RIFF?=) Date: Mon, 29 Jan 2007 16:36:31 +0100 Subject: PHPMapscript : PointObj->draw(...) problem In-Reply-To: <45ABA359.5050105@cerene.fr> Message-ID: Haven't found a workaround yet. Really anyone can help me ??? Thanks again, Steff St?phane RIFF wrote: > Hi everybody, > > I have a little problem on the draw function with the pointObj class. > I want to add point dynamically from a postgis database with > PHPMapscript. > So I get the coordinates from postgis and draw the point with > pointObj->draw(...) function. > The problem is that my pixmap symbols doesn't have the transparency > activated and my label doesn't have background color. > > I use the code below : > > $mobileLayer = ms_newLayerObj($map); > $mobileLayer->set("name","Mobiles"); > $mobileLayer->set("type",MS_LAYER_POINT); > $mobileLayer->set("status",MS_ON); > $mobileLayer->set("transparency",MS_GD_ALPHA); > $mobileLayer->set("labelcache",MS_OFF); > $mobileLayer->setProjection("init=epsg:4326",MS_TRUE); > $a_class = array(); > for($row=0;$row { > $lon = pg_fetch_result($result,$row,0); > $lat = pg_fetch_result($result,$row,1); > $ico = pg_fetch_result($result,$row,2); > $sid = pg_fetch_result($result,$row,3); > if(!in_array($ico,$a_class)) > { > array_push($a_class,$ico); > $mobileClass = ms_newClassObj($mobileLayer); > $mobileClass->set("name",$ico); > $mobileStyle = ms_newStyleObj($mobileClass); > $mobileStyle->set("symbolname",$cfg_root."images/symbols/".$ico); > $mobileLabel = $mobileClass->label; > $mobileLabel->set("font","Arialbd"); > $mobileLabel->set("size",12); > $mobileLabel->set("type",MS_TRUETYPE); > $mobileLabel->set("offsety",-22); > $mobileLabel->color->setRGB(255,0,0); > $mobileLabel->backgroundcolor->setRGB(255,0,0); > } > $class_index = 0; > for($cl=0;$cl<$mobileLayer->numclasses;$cl++) { > $class = $mobileLayer->getClass($cl); > if($class->name == $ico) { > $class_index = $cl; > } > } > $point = ms_newPointObj(); > $point->setXY($lon,$lat); > if($point->draw($map, $mobileLayer, $imgObj, $class_index, $sid) == > MS_FAILURE) > print("error drawing point"); > } > > The result image is like that the one attached : > > > ------------------------------------------------------------------------ > From ljfong at SDF.LONESTAR.ORG Mon Jan 29 10:35:45 2007 From: ljfong at SDF.LONESTAR.ORG (Hong) Date: Mon, 29 Jan 2007 11:35:45 -0700 Subject: Does the current SDE driver in MapServer support logical and regular expressio In-Reply-To: <45BB1107.1020908@territoriumonline.com> Message-ID: Thanks Andreas, it works now! On Sat, Jan 27, 2007 at 09:44:55AM +0100, Andreas Albarello wrote: > Hong wrote: > >Then I guess I had the expression wrong then, here was the layer I had been > >trying to display with multiple classifications: > > > >LAYER # 9 > > NAME "Census Groups"[...] > > [...] > > > CLASSITEM "POP2000" > > CLASS > > EXPRESSION "[POP2000] >= 0 AND [POP2000] <= 400" > > STYLE > > COLOR 112 247 38 > > END > > END > > [...] > > Hong, > > your expressions are syntactically correct, you only need to wrap them > in brackets instead of quotes, so they are actually considered as > expressions and not as strings. > > EXPRESSION ([POP2000] >= 0 AND [POP2000] <= 400) > > should therefore just work fine. > > Best regards, > -- > -------------------------------------------------------------------- > Andreas Albarello > Analysis & SW Development > > Territorium Online srl/GmbH > Via Buozzi/Buozzistra?e 12 - I 39100 Bolzano/Bozen > email: andreas.albarello at territoriumonline.com > web: www.territoriumonline.com > -------------------------------------------------------------------- From Steve.Lime at DNR.STATE.MN.US Mon Jan 29 13:07:52 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 29 Jan 2007 15:07:52 -0600 Subject: PHPMapscript : PointObj->draw(...) problem In-Reply-To: <45BE147F.1050508@cerene.fr> Message-ID: Hi Steff: The problem is (I think) that transparency is applied at the layer level, not at the feature level. The feature level 'draw' methods then bypass the transparency code altogether. So what/how you are trying to do is not possible. I'm not sure what's up with the label backgroundcolor but I'm pretty sure on the first problem. I'm hopeful that 5.0 will be able to auto detect situations where alpha blending should be applied and this limitation will go away. The workaround is to add features to layers first and then use the layer or map level draw methods. I can't quite tell how big a problem that will be for you by looking at the code. I think if you convert each class in the mobileLayer to a layer itself (each with one class) that it might be possible. Steve >>> St?phane RIFF 1/29/2007 9:36 AM >>> Haven't found a workaround yet. Really anyone can help me ??? Thanks again, Steff St?phane RIFF wrote: > Hi everybody, > > I have a little problem on the draw function with the pointObj class. > I want to add point dynamically from a postgis database with > PHPMapscript. > So I get the coordinates from postgis and draw the point with > pointObj->draw(...) function. > The problem is that my pixmap symbols doesn't have the transparency > activated and my label doesn't have background color. > > I use the code below : > > $mobileLayer = ms_newLayerObj($map); > $mobileLayer->set("name","Mobiles"); > $mobileLayer->set("type",MS_LAYER_POINT); > $mobileLayer->set("status",MS_ON); > $mobileLayer->set("transparency",MS_GD_ALPHA); > $mobileLayer->set("labelcache",MS_OFF); > $mobileLayer->setProjection("init=epsg:4326",MS_TRUE); > $a_class = array(); > for($row=0;$row { > $lon = pg_fetch_result($result,$row,0); > $lat = pg_fetch_result($result,$row,1); > $ico = pg_fetch_result($result,$row,2); > $sid = pg_fetch_result($result,$row,3); > if(!in_array($ico,$a_class)) > { > array_push($a_class,$ico); > $mobileClass = ms_newClassObj($mobileLayer); > $mobileClass->set("name",$ico); > $mobileStyle = ms_newStyleObj($mobileClass); > $mobileStyle->set("symbolname",$cfg_root."images/symbols/".$ico); > $mobileLabel = $mobileClass->label; > $mobileLabel->set("font","Arialbd"); > $mobileLabel->set("size",12); > $mobileLabel->set("type",MS_TRUETYPE); > $mobileLabel->set("offsety",-22); > $mobileLabel->color->setRGB(255,0,0); > $mobileLabel->backgroundcolor->setRGB(255,0,0); > } > $class_index = 0; > for($cl=0;$cl<$mobileLayer->numclasses;$cl++) { > $class = $mobileLayer->getClass($cl); > if($class->name == $ico) { > $class_index = $cl; > } > } > $point = ms_newPointObj(); > $point->setXY($lon,$lat); > if($point->draw($map, $mobileLayer, $imgObj, $class_index, $sid) == > MS_FAILURE) > print("error drawing point"); > } > > The result image is like that the one attached : > > > ------------------------------------------------------------------------ > From nataprivate at HOTMAIL.COM Tue Jan 30 02:52:06 2007 From: nataprivate at HOTMAIL.COM (=?iso-8859-1?B?TnVyaWEgR29ueuFsZXo=?=) Date: Tue, 30 Jan 2007 11:52:06 +0100 Subject: functions convert and upper with mapserver 4.10.0 Message-ID: Hi, A week ago, I was using mapserver 4.6.1 and in my .map file I set: LABELITEM 'upper(nombre)' or LABELITEM "convert(municipio, 'UNICODE', 'LATIN1')" and it worked ok, but, I've updated mapserver to mapserver 4.10.0 and now I get an error related to upper and convert functions. Doesn't mapserver 4.10.0 support these functions? Thanks in advance. _________________________________________________________________ Acepta el reto MSN Premium: Correos m?s divertidos con fotos y textos incre?bles en MSN Premium. Desc?rgalo y pru?balo 2 meses gratis. http://join.msn.com?XAPID=1697&DI=1055&HL=Footer_mailsenviados_correosmasdivertidos From johan.vandewauw at GMAIL.COM Tue Jan 30 07:39:43 2007 From: johan.vandewauw at GMAIL.COM (Johan Van de Wauw) Date: Tue, 30 Jan 2007 16:39:43 +0100 Subject: problem with html legend + legend limiter? Message-ID: Dear Mapserver users, I'm having some problems with Mapserver 4.10 and the html legend. I can generate an image legend for all my layers without any problems. Buthen I try to generate a html layer, this works for all my layers, except for one. This layer only works after I delete a lot of entries to make sure that there are only about 33 items in the legend. When I add that layer, my complete legend disappears, although I still have a correct map. Before adding the "evil layer": http://users.ugent.be/~jvdewauw/1.png After adding it: http://users.ugent.be/~jvdewauw/2.png (the templates used are the ones from the tutorials) Is this normal behaviour, or does any one have a clue what I'm doing wrong? I couldn't find any reference to similar problems. Is there a limit of items you can put in the legend? And now that I'm on the list anyway: the true reason that I'm trying to find out about this legend is that I would like to have some kind of a legend limiter, limiting the items in your legend to the items that are visible on the map. If someone has created or done an attempt to create something like that, I would really like to hear about it (my other map has >200 items) . Thanks already! Johan From listario at GMAIL.COM Tue Jan 30 09:27:58 2007 From: listario at GMAIL.COM (J. Parapar) Date: Tue, 30 Jan 2007 18:27:58 +0100 Subject: problem with html legend + legend limiter? In-Reply-To: <791a12030701300739l5a4966c6vb5cb0d2e0847a54b@mail.gmail.com> Message-ID: Johan: We have experimented a similar problem: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1946. We do not have any clue about why this happens. It works well for us with MapServer 4.8. Best regards, Jorge 2007/1/30, Johan Van de Wauw : > Dear Mapserver users, > > I'm having some problems with Mapserver 4.10 and the html legend. > I can generate an image legend for all my layers without any problems. > > Buthen I try to generate a html layer, this works for all my layers, > except for one. This layer only works after I delete a lot of entries > to make sure that there are only about 33 items in the legend. > > When I add that layer, my complete legend disappears, although I still > have a correct map. > > Before adding the "evil layer": http://users.ugent.be/~jvdewauw/1.png > After adding it: http://users.ugent.be/~jvdewauw/2.png > > (the templates used are the ones from the tutorials) > > Is this normal behaviour, or does any one have a clue what I'm doing > wrong? I couldn't find any reference to similar problems. Is there a > limit of items you can put in the legend? > > And now that I'm on the list anyway: the true reason that I'm trying > to find out about this legend is that I would like to have some kind > of a legend limiter, limiting the items in your legend to the items > that are visible on the map. If someone has created or done an attempt > to create something like that, I would really like to hear about it > (my other map has >200 items) . > > Thanks already! > Johan > From sgillies at FRII.COM Tue Jan 30 09:43:26 2007 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 30 Jan 2007 10:43:26 -0700 Subject: Examples of proprietary extensions that have improved MapServer? Message-ID: There was a mention a while ago of a proprietary MapServer-based software with enhancements and bug fixes. This has made me curious. Does anybody have any examples of proprietary extensions to MapServer that have given back bug fixes and features to the open source community? I'm curious about proprietary, pay websites as well as MapServer-based commercial, off-the-shelf software. Cheers, Sean -- Sean Gillies http://zcologia.com/news From dmorissette at MAPGEARS.COM Tue Jan 30 10:28:16 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Tue, 30 Jan 2007 13:28:16 -0500 Subject: problem with html legend + legend limiter? In-Reply-To: <791a12030701300739l5a4966c6vb5cb0d2e0847a54b@mail.gmail.com> Message-ID: Could you please try to view the HTML source of the page in which you do not get any legend and see if any code is generated for the legend, if you get truncated output, or what you get exactly? I see that you do get a reference map below your empty legend which makes me think that the problem may be different from the crash reported in bug 1946... or at least the symptoms seem to be different. If you can create a bug with a testcase to reproduce then that would help of course. Daniel Johan Van de Wauw wrote: > Dear Mapserver users, > > I'm having some problems with Mapserver 4.10 and the html legend. > I can generate an image legend for all my layers without any problems. > > Buthen I try to generate a html layer, this works for all my layers, > except for one. This layer only works after I delete a lot of entries > to make sure that there are only about 33 items in the legend. > > When I add that layer, my complete legend disappears, although I still > have a correct map. > > Before adding the "evil layer": http://users.ugent.be/~jvdewauw/1.png > After adding it: http://users.ugent.be/~jvdewauw/2.png > > (the templates used are the ones from the tutorials) > > Is this normal behaviour, or does any one have a clue what I'm doing > wrong? I couldn't find any reference to similar problems. Is there a > limit of items you can put in the legend? > > And now that I'm on the list anyway: the true reason that I'm trying > to find out about this legend is that I would like to have some kind > of a legend limiter, limiting the items in your legend to the items > that are visible on the map. If someone has created or done an attempt > to create something like that, I would really like to hear about it > (my other map has >200 items) . > > Thanks already! > Johan -- Daniel Morissette http://www.mapgears.com/ From ummmmm22 at GMAIL.COM Tue Jan 30 16:03:21 2007 From: ummmmm22 at GMAIL.COM (Doug B) Date: Tue, 30 Jan 2007 18:03:21 -0600 Subject: configure crt1.o error on PPC64 RHEL Message-ID: The configure script is complaining that: checking for C compiler default output file name... configure: error: C compiler cannot create executables config.log says: /usr/bin/ld: crt1.o: No such file: No such file or directory collect2: ld returned 1 exit status configure:1704: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:1743: error: C compiler cannot create executables After a bit of searching, I see that glibc-devel is what provides this file, which I have now installed, but configure still gives the same error. The file exists under /usr/lib64. I get the same results with MapServer 4.10.0, 4.8.4, and 4.6.2. Line number above is from 4.8.4. This is on RHEL 2.6.9-42 for PPC64. I have no such problems on an old Fedora Core 2 system. Thanks for any assistance or advice. Doug From francois.bruneau at WESTIMAGES.COM Wed Jan 31 01:37:23 2007 From: francois.bruneau at WESTIMAGES.COM (Fran=?ISO-8859-1?Q?=E7ois?= Bruneau) Date: Wed, 31 Jan 2007 10:37:23 +0100 Subject: verbose log of oracle queries Message-ID: Hi, I've got one strange issue with MapServer at the moment. I use native Oracle Spatial connection to populate layers of Point/Line data. The problem is when I query my Oracle system views, I can not find any trace of the queries that MapServer does. Is there a "verbose log" mode that would enable me to have a detailed look at all the queries done by MapServer ? That would help me to sort things out. Thanks in advance, Fran?ois. From fsimon at UNIVALI.BR Wed Jan 31 03:13:21 2007 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Wed, 31 Jan 2007 09:13:21 -0200 Subject: verbose log of oracle queries In-Reply-To: <30861419.839181170236243111.JavaMail.servlet@kundenserver> Message-ID: Hi Fran?ois, You can enable the log for UMN Mapserver when you configue and compile it, the flag. If you enable it (or was already enable) you just need to define the DEBUG ON for you "MAP" and "LAYER" in your mapfile. You don't need to do any special thing to enable it for Oracle Spatial. For Oracle Spatial connection you can see all the steps, like login, logoff and SQL. Best regards. ------------------------------------------- Fernando Simon UMN Mapserver and Oracle Spatial developer ------------------------------------------- Citando Fran?ois Bruneau : > Hi, > > I've got one strange issue with MapServer at the moment. I use > native Oracle Spatial connection to populate layers of Point/Line > data. The problem is when I query my Oracle system views, I can not > find any trace of the queries that MapServer does. > > Is there a "verbose log" mode that would enable me to have a > detailed look at all the queries done by MapServer ? That would > help me to sort things out. > > Thanks in advance, > > Fran??ois. > ------------------------------------------------- Univali - Webmail - http://webmail.univali.br From Andreas-Alexander.Maul at BGR.DE Wed Jan 31 02:45:19 2007 From: Andreas-Alexander.Maul at BGR.DE (Maul, Andreas-Alexander) Date: Wed, 31 Jan 2007 11:45:19 +0100 Subject: PHP MapScript Wrappers for WxS Services Message-ID: Just after sending this mail I found the silly own mistake: the php script started with a newline in front of the opening php tag and ended with a newline after the closing php tag. Stupid, stupid ... Andreas -----Urspr?ngliche Nachricht----- Von: Maul, Andreas-Alexander Gesendet: Mittwoch, 31. Januar 2007 10:33 An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: PHP MapScript Wrappers for WxS Services Hi, currently we try to use the PHP MapScript wrappers for WMS services according to the PHP examples in the howto document http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript. Unfortunately we experience with the PHP mapscript functions ms_iogetstdoutbufferstring() or ms_iogetStdoutBufferBytes() e.g. with /*--------------------------------------------------*/ dl("php_mapscript_4.10.0.dll"); $request = ms_newowsrequestobj(); $request->loadparams(); /* Enable output buffer */ ms_ioinstallstdouttobuffer(); /* Create mapobject, execute request */ $oMap = ms_newMapobj("../mymap/wms.map"); $oMap->owsdispatch($request); /* wich contenttype has been returned ? */ $contenttype = ms_iostripstdoutbuffercontenttype(); $ctt = explode("/",$contenttype); /* Send response with appropriate header */ if ($ctt[0] == 'image') { header('Content-type: image/'. $ctt[1]); ms_iogetStdoutBufferBytes(); } else { header('Content-type: application/vnd.ogc.wms_xml'); ms_iogetStdoutBufferBytes(); } ms_ioresethandlers(); /*--------------------------------------------------*/ that there is at least one additional blank line at the beginning of the sent document between http-header and binary data (i.e. the image) which seems to result in an unreadable file. Environment: W2003 Server, IIS 6, PHP 5.2, MapScript 4.10.0 from MS4W 2.2.1 (maptools.org) Does anybody know a workaround for this problem? Regards, Andreas From armin.retterath at LVERMGEO.RLP.DE Wed Jan 31 03:26:40 2007 From: armin.retterath at LVERMGEO.RLP.DE (Armin Retterath) Date: Wed, 31 Jan 2007 12:26:40 +0100 Subject: unsubscribe Message-ID: -- Armin Retterath GDI-RP Kompetenz- und Gesch?ftsstelle beim Landesamt f?r Vermessung und Geobasisinformation Rheinland-Pfalz Tel.: +49/(0)261/492-466 [mailto:armin.retterath at lvermgeo.rlp.de] From Andreas-Alexander.Maul at BGR.DE Wed Jan 31 01:32:46 2007 From: Andreas-Alexander.Maul at BGR.DE (Maul, Andreas-Alexander) Date: Wed, 31 Jan 2007 10:32:46 +0100 Subject: PHP MapScript Wrappers for WxS Services Message-ID: Hi, currently we try to use the PHP MapScript wrappers for WMS services according to the PHP examples in the howto document http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript. Unfortunately we experience with the PHP mapscript functions ms_iogetstdoutbufferstring() or ms_iogetStdoutBufferBytes() e.g. with /*--------------------------------------------------*/ dl("php_mapscript_4.10.0.dll"); $request = ms_newowsrequestobj(); $request->loadparams(); /* Enable output buffer */ ms_ioinstallstdouttobuffer(); /* Create mapobject, execute request */ $oMap = ms_newMapobj("../mymap/wms.map"); $oMap->owsdispatch($request); /* wich contenttype has been returned ? */ $contenttype = ms_iostripstdoutbuffercontenttype(); $ctt = explode("/",$contenttype); /* Send response with appropriate header */ if ($ctt[0] == 'image') { header('Content-type: image/'. $ctt[1]); ms_iogetStdoutBufferBytes(); } else { header('Content-type: application/vnd.ogc.wms_xml'); ms_iogetStdoutBufferBytes(); } ms_ioresethandlers(); /*--------------------------------------------------*/ that there is at least one additional blank line at the beginning of the sent document between http-header and binary data (i.e. the image) which seems to result in an unreadable file. Environment: W2003 Server, IIS 6, PHP 5.2, MapScript 4.10.0 from MS4W 2.2.1 (maptools.org) Does anybody know a workaround for this problem? Regards, Andreas From dmorissette at MAPGEARS.COM Wed Jan 31 06:14:05 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Wed, 31 Jan 2007 09:14:05 -0500 Subject: configure crt1.o error on PPC64 RHEL In-Reply-To: <845416090701301603x7f6485f9gd467c3c6f987cb8f@mail.gmail.com> Message-ID: Perhaps you could try running 'autoconf' in the mapserver source directory to regenerate the configure script. This should not be required, but perhaps the version of autoconf on your server will include the required paths in its C compiler tests. Daniel Doug B wrote: > The configure script is complaining that: > > checking for C compiler default output file name... configure: error: > C compiler cannot create executables > > config.log says: > > /usr/bin/ld: crt1.o: No such file: No such file or directory > collect2: ld returned 1 exit status > configure:1704: $? = 1 > configure: failed program was: > | /* confdefs.h. */ > | > | #define PACKAGE_NAME "" > | #define PACKAGE_TARNAME "" > | #define PACKAGE_VERSION "" > | #define PACKAGE_STRING "" > | #define PACKAGE_BUGREPORT "" > | /* end confdefs.h. */ > | > | int > | main () > | { > | > | ; > | return 0; > | } > configure:1743: error: C compiler cannot create executables > > After a bit of searching, I see that glibc-devel is what provides this > file, which I have now installed, but configure still gives the same > error. The file exists under /usr/lib64. > > I get the same results with MapServer 4.10.0, 4.8.4, and 4.6.2. Line > number above is from 4.8.4. This is on RHEL 2.6.9-42 for PPC64. I > have no such problems on an old Fedora Core 2 system. > > Thanks for any assistance or advice. > Doug -- Daniel Morissette http://www.mapgears.com/ From ummmmm22 at GMAIL.COM Wed Jan 31 07:53:05 2007 From: ummmmm22 at GMAIL.COM (Doug B) Date: Wed, 31 Jan 2007 09:53:05 -0600 Subject: configure crt1.o error on PPC64 RHEL In-Reply-To: <45C0A42D.2010306@mapgears.com> Message-ID: I did try that, but the output configure script had no differences at all from the original one. Needless to say, it reported the same error. On 1/31/07, Daniel Morissette wrote: > Perhaps you could try running 'autoconf' in the mapserver source > directory to regenerate the configure script. This should not be > required, but perhaps the version of autoconf on your server will > include the required paths in its C compiler tests. > > Daniel > > > Doug B wrote: > > The configure script is complaining that: > > > > checking for C compiler default output file name... configure: error: > > C compiler cannot create executables > > > > config.log says: > > > > /usr/bin/ld: crt1.o: No such file: No such file or directory > > collect2: ld returned 1 exit status > > configure:1704: $? = 1 > > configure: failed program was: > > | /* confdefs.h. */ > > | > > | #define PACKAGE_NAME "" > > | #define PACKAGE_TARNAME "" > > | #define PACKAGE_VERSION "" > > | #define PACKAGE_STRING "" > > | #define PACKAGE_BUGREPORT "" > > | /* end confdefs.h. */ > > | > > | int > > | main () > > | { > > | > > | ; > > | return 0; > > | } > > configure:1743: error: C compiler cannot create executables > > > > After a bit of searching, I see that glibc-devel is what provides this > > file, which I have now installed, but configure still gives the same > > error. The file exists under /usr/lib64. > > > > I get the same results with MapServer 4.10.0, 4.8.4, and 4.6.2. Line > > number above is from 4.8.4. This is on RHEL 2.6.9-42 for PPC64. I > > have no such problems on an old Fedora Core 2 system. > > > > Thanks for any assistance or advice. > > Doug > > > -- > Daniel Morissette > http://www.mapgears.com/ > From bradleym06 at HOTMAIL.COM Wed Jan 31 15:55:35 2007 From: bradleym06 at HOTMAIL.COM (Bradley Mclain) Date: Thu, 1 Feb 2007 10:55:35 +1100 Subject: Projections Message-ID: Hi I'm having some problems with projections in Mapserver. I have three pieces of data, 2 polygon shapefiles and a GeoTIFF raster image. I am trying to define their projections so that they align correctly as the raster is slightly off from the two shapefiles. I have managed to extract the geographical info from the files but I have no idea where I define it in the mapfile and what info I need to include (or what any of it means). I have attached the three text files which include the geographical data for each, can someone explain to me how to define these in a mapfile, eg where I need to do it and what info I need. Can you please include lots of detail and description so I can fully understand :) Thanks Brad _________________________________________________________________ Advertisement: Fresh jobs daily. Stop waiting for the newspaper. Search Now! www.seek.com.au http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fninemsn%2Eseek%2Ecom%2Eau&_t=757263760&_r=Hotmail_EndText_Dec06&_m=EXT -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: Bilbul.txt URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: DBWraster.txt URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: Hemely.txt URL: From gooogle at FREE.FR Wed Jan 31 17:05:32 2007 From: gooogle at FREE.FR (=?ISO-8859-1?Q?J=E9r=F4me_Martin?=) Date: Thu, 1 Feb 2007 02:05:32 +0100 Subject: WCS and Reprojection with TileItem Message-ID: Hi, I'm using mapserv like WMS and now, I would like use the WCS service to get DEM, from DTED files. To do this, i used gdaltindex software to create a shapefile to have only one entry on my mapfile with the "TILEITEM" keyword. I precise my dted file are LatLon, in EPSG:4326. So when i did a request Getmap from the server, i had the result i wanted for, in lat-lon. But my problem was when i tried to send the request, but with CRS=epsg:32631 (UTM Zone N31) by example (BBOX in 32631 too), nothing work and the server send me a file with the good boundingbox envelloppe, but with no data, only 0. When I tried to do a resquest with CRS=epsg:4326 (BBOX in 4326) and RESPONSE_CRS=epsg:32631, i have the same empty 0 file, and the server doesn't warn me any error. Just a file with 0m data elevation. I'm really surprised, because the OGC documents about the WCS Service tell the response_crs can be used to have a reprojection, and the how-to user case from the mapserver website tell this option can be used. So when i try to put only one file with the DATA keyword, i was really surprised to see a request in another crs gave me the good reprojection and the right results, so the reprojection works on only one file, but not in shapefile tileitem. So Did I do something wrong, or this is it a bug from mapserv ? Moreover, i am already using mapserver with the WMS service, and i have only shapefile tileitem entries on my wms mapfile : the reprojection works perfectly ! (the shapefile are created from the gdaltindex tool). I can't put each file on my mapfile, because i thousands files and this will be affect the performances of mapserv (moreover, i think it exist a limitation of the maximum number of layers in a mapfile). So do you would have any idea about this problem, or do you know an easy exemple of a wcs service server who delivers DEM data in differents reprojections ? thanks you for the help, sincerly, J?r?me Martin J'ai donc configur? un server wcs, et j'ai ?galement cr?e un fichier shp via gdaltindex afin de n'avoir qu'une seule entr?e dans le mapfile regroupant plusieurs fichiers DTED. Je pr?cise que les fichiers sont en latlon EPSG:4326 En faisant une requ?te avec CRS=epsg:4326, j'ai donc le r?sultat attendu, soit un fichier tiff (ce que je voulais) en latlon. Par contre, lorsque je fais une requ?te avec CRS=epsg:32631 (UTM zone N31) par exemple, l?, tout se complique puisque la r?ponse que me renvoye le server semble bonne au niveau des dimensions, mais je n'ai uniquement que des 0, les donn?es d'?l?vation disparaissent. Je pr?cise que j'ai d?j? un server WMS utilisant exclusivement des tileindex (via gdaltindex) et que la reprojection se passe parfaitement. Mais en WCS, rien ne marche plus pour la reprojection. Par contre, si je prend un fichier seul (fichier.dt1) que je rajoute dans mon mapfile wcs, alors dans ce cas l?, la reprojection marche bien et ne pose pas de probl?me. Je ne peux cependant pas r?soudre mon probl?me comme cela car je ne peux inclure des milliers de fichiers dans mon mapfile, et je ne peux pas non plus modifier les fichiers dted en entr?e (d'autant plus que je ne veux pas distinguer s?parement chaque fichier dted dnas mes requ?tes). Comment puis-je r?soudre mon probl?me ? quelqu'un a-t-il d?j? ?t? confront? ? ce type de probl?me sous WCS ? cordialement, J?r?me Modifier/Supprimer le message -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: edit.gif Type: image/gif Size: 1834 bytes Desc: not available URL: From gooogle at FREE.FR Wed Jan 31 17:23:35 2007 From: gooogle at FREE.FR (=?ISO-8859-1?Q?J=E9r=F4me_Martin?=) Date: Thu, 1 Feb 2007 02:23:35 +0100 Subject: Projections In-Reply-To: Message-ID: Hi Bradley, it is normal if your raster is not correctly aligned with the 2 goods shapefiles. In fact, yours shapefiles are on the projection "GDA_1994_MGA_Zone_55", so its implique mapserv knows where to place correctly the shapefiles data. But for your raster, you don't have any information about the projection. So it can't know in what projection and zone the data has to be. (a bounding box exist in each zone, and are just translated from 6? (maybe not in your reprojection, i don't know it, but UTM is the same system of 2x60 zones to define the earth)). So you can first try to put for each layer in your mapfile PROJECTION "init=epsg:xxxx" #where xxxx is the corresponding identifier of the projection (check the share/proj/epsg file to do this) : in your case, it is "init=epsg:28355". END to force mapserv to know from where the data comes. It is probably useful only for the raster, but try to put again for shapefile in case of it still doesn't work. (It always better to add this information in each layer) I hope i could help you, sincerely, J?r?me Bradley Mclain a ?crit : > Hi > > I'm having some problems with projections in Mapserver. I have three > pieces of data, 2 polygon shapefiles and a GeoTIFF raster image. I am > trying to define their projections so that they align correctly as the > raster is slightly off from the two shapefiles. > > I have managed to extract the geographical info from the files but I > have no idea where I define it in the mapfile and what info I need to > include (or what any of it means). > > I have attached the three text files which include the geographical > data for each, can someone explain to me how to define these in a > mapfile, eg where I need to do it and what info I need. > > Can you please include lots of detail and description so I can fully > understand :) > > Thanks > > Brad > > _________________________________________________________________ > Advertisement: Fresh jobs daily. Stop waiting for the newspaper. > Search Now! www.seek.com.au > http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fninemsn%2Eseek%2Ecom%2Eau&_t=757263760&_r=Hotmail_EndText_Dec06&_m=EXT > > Layer name: DBW_Home_Bilbul_Cadastral_Boundary > Geometry: Polygon > Feature Count: 15 > Extent: (419320.137222, 6205167.425465) - (421949.715102, 6207719.690811) > Layer SRS WKT: > PROJCS["GDA_1994_MGA_Zone_55", > GEOGCS["GCS_GDA_1994", > DATUM["Geocentric_Datum_of_Australia_1994", > SPHEROID["GRS_1980",6378137.0,298.257222101]], > PRIMEM["Greenwich",0.0], > UNIT["Degree",0.0174532925199433]], > PROJECTION["Transverse_Mercator"], > PARAMETER["False_Easting",500000.0], > PARAMETER["False_Northing",10000000.0], > PARAMETER["Central_Meridian",147.0], > PARAMETER["Scale_Factor",0.9996], > PARAMETER["Latitude_Of_Origin",0.0], > UNIT["Meter",1.0]] > LUID: Real (11.0) > PLANTYPE: String (4.0) > TAG: String (50.0) > Area: Real (19.11) > Perimeter: Real (19.11) > Acres: Real (19.11) > Hectares: Real (19.11) > Bound_type: String (25.0) > Prop_ID: String (30.0) > OGRFeature(DBW_Home_Bilbul_Cadastral_Boundary):0 > LUID (Real) = 103663790 > PLANTYPE (String) = 13 > TAG (String) = 116//751728 > Area (Real) = 206766.29741414590 > Perimeter (Real) = 1930.52158953932 > Acres (Real) = 51.09308655258 > Hectares (Real) = 20.67662974141 > Bound_type (String) = Cadastre > Prop_ID (String) = DBW_Home_Bilbul > POLYGON ((419849.019570303731598 > 6205435.040179193019867,419680.452153401391115 > 6205707.173638857901096,420228.545299204241019 > 6206046.107636354863644,420397.849921675398946 > 6205772.639121992513537,419849.019570303731598 6205435.040179193019867)) > > Layer name: DBW_Hemley_2593_Cadastral_Boundary > Geometry: Polygon > Feature Count: 3 > Extent: (422645.120770, 6208302.281805) - (423450.690420, 6208880.746240) > Layer SRS WKT: > PROJCS["GDA_1994_MGA_Zone_55", > GEOGCS["GCS_GDA_1994", > DATUM["Geocentric_Datum_of_Australia_1994", > SPHEROID["GRS_1980",6378137.0,298.257222101]], > PRIMEM["Greenwich",0.0], > UNIT["Degree",0.0174532925199433]], > PROJECTION["Transverse_Mercator"], > PARAMETER["False_Easting",500000.0], > PARAMETER["False_Northing",10000000.0], > PARAMETER["Central_Meridian",147.0], > PARAMETER["Scale_Factor",0.9996], > PARAMETER["Latitude_Of_Origin",0.0], > UNIT["Meter",1.0]] > LUID: Real (11.0) > PLANTYPE: String (4.0) > TAG: String (50.0) > Area: Real (19.11) > Perimeter: Real (19.11) > Acres: Real (19.11) > Hectares: Real (19.11) > Bound_type: String (40.0) > Prop_ID: String (30.0) > OGRFeature(DBW_Hemley_2593_Cadastral_Boundary):0 > LUID (Real) = 103664166 > PLANTYPE (String) = 13 > TAG (String) = 288//751728 > Area (Real) = 73981.56105988749 > Perimeter (Real) = 1173.94681513112 > Acres (Real) = 18.28124965142 > Hectares (Real) = 7.39815610599 > Bound_type (String) = Cadastre > Prop_ID (String) = Hemley_2593 > POLYGON ((423067.736698167922441 > 6208782.058439230546355,423228.702213083277456 > 6208880.746239688247442,423450.690419794409536 > 6208521.27053206320852,423266.332749532884918 > 6208468.748745977878571,423260.736078957444988 > 6208477.574468746781349,423067.736698167922441 6208782.058439230546355)) > > Driver: GTiff/GeoTIFF > Size is 9530, 6552 > Coordinate System is `' > Origin = (418485.188000000023749,6208828.519999999552965) > Pixel Size = (0.609681177000000,-0.609608973000000) > Metadata: > AREA_OR_POINT=Area > TIFFTAG_SOFTWARE=IMAGINE TIFF Support > Copyright 1991 - 1999 by ERDAS, Inc. All Rights Reserved > @(#)$RCSfile: etif.c $ $Revision: 1.9.1.2 $ $Date: 2001/12/05 00:33:12Z $ > TIFFTAG_XRESOLUTION=1 > TIFFTAG_YRESOLUTION=1 > TIFFTAG_RESOLUTIONUNIT=1 (unitless) > Corner Coordinates: > Upper Left ( 418485.188, 6208828.520) > Lower Left ( 418485.188, 6204834.362) > Upper Right ( 424295.450, 6208828.520) > Lower Right ( 424295.450, 6204834.362) > Center ( 421390.319, 6206831.441) > Band 1 Block=9530x1 Type=Byte, ColorInterp=Red > Band 2 Block=9530x1 Type=Byte, ColorInterp=Green > Band 3 Block=9530x1 Type=Byte, ColorInterp=Blue > From bradleym06 at HOTMAIL.COM Wed Jan 31 17:59:31 2007 From: bradleym06 at HOTMAIL.COM (Bradley Mclain) Date: Thu, 1 Feb 2007 12:59:31 +1100 Subject: Projections Message-ID: Hi J?r?me I tried what you said but still no luck, I tried several combinations, like only for raster, only for polygons, and everything together including defining in the mapfile. The map still shows but it is still off centre. I attached the mapfile and a pic of the problem to give you a better idea. I talked to someone before about this and they said the problem was something to do with the fact the shapfile data takes into account the spherical nature of the globe while the raster image does not. Brad >From: J?r?me Martin >Reply-To: J?r?me Martin >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] Projections >Date: Thu, 1 Feb 2007 02:23:35 +0100 > >Hi Bradley, > >it is normal if your raster is not correctly aligned with the 2 goods >shapefiles. > >In fact, yours shapefiles are on the projection "GDA_1994_MGA_Zone_55", so >its implique mapserv knows where to place correctly the shapefiles data. >But for your raster, you don't have any information about the projection. >So it can't know in what projection and zone the data has to be. (a >bounding box exist in each zone, and are just translated from 6? (maybe not >in your reprojection, i don't know it, but UTM is the same system of 2x60 >zones to define the earth)). > >So you can first try to put for each layer in your mapfile > >PROJECTION > "init=epsg:xxxx" #where xxxx is the corresponding identifier of the >projection (check the share/proj/epsg file to do this) : in your case, it >is "init=epsg:28355". >END > >to force mapserv to know from where the data comes. It is probably useful >only for the raster, but try to put again for shapefile in case of it still >doesn't work. (It always better to add this information in each layer) > >I hope i could help you, > >sincerely, > >J?r?me > >Bradley Mclain a ?crit : >>Hi >> >>I'm having some problems with projections in Mapserver. I have three >>pieces of data, 2 polygon shapefiles and a GeoTIFF raster image. I am >>trying to define their projections so that they align correctly as the >>raster is slightly off from the two shapefiles. >> >>I have managed to extract the geographical info from the files but I have >>no idea where I define it in the mapfile and what info I need to include >>(or what any of it means). >> >>I have attached the three text files which include the geographical data >>for each, can someone explain to me how to define these in a mapfile, eg >>where I need to do it and what info I need. >> >>Can you please include lots of detail and description so I can fully >>understand :) >> >>Thanks >> >>Brad >> >>_________________________________________________________________ >>Advertisement: Fresh jobs daily. Stop waiting for the newspaper. Search >>Now! www.seek.com.au >>http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fninemsn%2Eseek%2Ecom%2Eau&_t=757263760&_r=Hotmail_EndText_Dec06&_m=EXT >> >>Layer name: DBW_Home_Bilbul_Cadastral_Boundary >>Geometry: Polygon >>Feature Count: 15 >>Extent: (419320.137222, 6205167.425465) - (421949.715102, 6207719.690811) >>Layer SRS WKT: >>PROJCS["GDA_1994_MGA_Zone_55", >> GEOGCS["GCS_GDA_1994", >> DATUM["Geocentric_Datum_of_Australia_1994", >> SPHEROID["GRS_1980",6378137.0,298.257222101]], >> PRIMEM["Greenwich",0.0], >> UNIT["Degree",0.0174532925199433]], >> PROJECTION["Transverse_Mercator"], >> PARAMETER["False_Easting",500000.0], >> PARAMETER["False_Northing",10000000.0], >> PARAMETER["Central_Meridian",147.0], >> PARAMETER["Scale_Factor",0.9996], >> PARAMETER["Latitude_Of_Origin",0.0], >> UNIT["Meter",1.0]] >>LUID: Real (11.0) >>PLANTYPE: String (4.0) >>TAG: String (50.0) >>Area: Real (19.11) >>Perimeter: Real (19.11) >>Acres: Real (19.11) >>Hectares: Real (19.11) >>Bound_type: String (25.0) >>Prop_ID: String (30.0) >>OGRFeature(DBW_Home_Bilbul_Cadastral_Boundary):0 >> LUID (Real) = 103663790 >> PLANTYPE (String) = 13 >> TAG (String) = 116//751728 >> Area (Real) = 206766.29741414590 >> Perimeter (Real) = 1930.52158953932 >> Acres (Real) = 51.09308655258 >> Hectares (Real) = 20.67662974141 >> Bound_type (String) = Cadastre >> Prop_ID (String) = DBW_Home_Bilbul >> POLYGON ((419849.019570303731598 >>6205435.040179193019867,419680.452153401391115 >>6205707.173638857901096,420228.545299204241019 >>6206046.107636354863644,420397.849921675398946 >>6205772.639121992513537,419849.019570303731598 6205435.040179193019867)) >> >>Layer name: DBW_Hemley_2593_Cadastral_Boundary >>Geometry: Polygon >>Feature Count: 3 >>Extent: (422645.120770, 6208302.281805) - (423450.690420, 6208880.746240) >>Layer SRS WKT: >>PROJCS["GDA_1994_MGA_Zone_55", >> GEOGCS["GCS_GDA_1994", >> DATUM["Geocentric_Datum_of_Australia_1994", >> SPHEROID["GRS_1980",6378137.0,298.257222101]], >> PRIMEM["Greenwich",0.0], >> UNIT["Degree",0.0174532925199433]], >> PROJECTION["Transverse_Mercator"], >> PARAMETER["False_Easting",500000.0], >> PARAMETER["False_Northing",10000000.0], >> PARAMETER["Central_Meridian",147.0], >> PARAMETER["Scale_Factor",0.9996], >> PARAMETER["Latitude_Of_Origin",0.0], >> UNIT["Meter",1.0]] >>LUID: Real (11.0) >>PLANTYPE: String (4.0) >>TAG: String (50.0) >>Area: Real (19.11) >>Perimeter: Real (19.11) >>Acres: Real (19.11) >>Hectares: Real (19.11) >>Bound_type: String (40.0) >>Prop_ID: String (30.0) >>OGRFeature(DBW_Hemley_2593_Cadastral_Boundary):0 >> LUID (Real) = 103664166 >> PLANTYPE (String) = 13 >> TAG (String) = 288//751728 >> Area (Real) = 73981.56105988749 >> Perimeter (Real) = 1173.94681513112 >> Acres (Real) = 18.28124965142 >> Hectares (Real) = 7.39815610599 >> Bound_type (String) = Cadastre >> Prop_ID (String) = Hemley_2593 >> POLYGON ((423067.736698167922441 >>6208782.058439230546355,423228.702213083277456 >>6208880.746239688247442,423450.690419794409536 >>6208521.27053206320852,423266.332749532884918 >>6208468.748745977878571,423260.736078957444988 >>6208477.574468746781349,423067.736698167922441 6208782.058439230546355)) >> >>Driver: GTiff/GeoTIFF >>Size is 9530, 6552 >>Coordinate System is `' >>Origin = (418485.188000000023749,6208828.519999999552965) >>Pixel Size = (0.609681177000000,-0.609608973000000) >>Metadata: >> AREA_OR_POINT=Area >> TIFFTAG_SOFTWARE=IMAGINE TIFF Support >>Copyright 1991 - 1999 by ERDAS, Inc. All Rights Reserved >>@(#)$RCSfile: etif.c $ $Revision: 1.9.1.2 $ $Date: 2001/12/05 00:33:12Z $ >> TIFFTAG_XRESOLUTION=1 >> TIFFTAG_YRESOLUTION=1 >> TIFFTAG_RESOLUTIONUNIT=1 (unitless) >>Corner Coordinates: >>Upper Left ( 418485.188, 6208828.520) >>Lower Left ( 418485.188, 6204834.362) >>Upper Right ( 424295.450, 6208828.520) >>Lower Right ( 424295.450, 6204834.362) >>Center ( 421390.319, 6206831.441) >>Band 1 Block=9530x1 Type=Byte, ColorInterp=Red >>Band 2 Block=9530x1 Type=Byte, ColorInterp=Green >>Band 3 Block=9530x1 Type=Byte, ColorInterp=Blue >> _________________________________________________________________ Advertisement: Fresh jobs daily. Stop waiting for the newspaper. Search now! www.seek.com.au http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fninemsn%2Eseek%2Ecom%2Eau&_t=757263760&_r=Hotmail_EndText_Dec06&_m=EXT -------------- next part -------------- A non-text attachment was scrubbed... Name: dbw.map Type: application/octet-stream Size: 1807 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot.png Type: image/png Size: 29888 bytes Desc: not available URL: From bradleym06 at HOTMAIL.COM Sun Jan 7 15:04:02 2007 From: bradleym06 at HOTMAIL.COM (Brad_Mclain) Date: Sun, 7 Jan 2007 15:04:02 -0800 Subject: Raster Image and Shapefile Alignment Message-ID: Ok here is the sitution I have a raster image and shapefile data but the two do not line up correctly. They are supposed to but this is the way the data was given to me. Is there anyway I can get these to line up correct?, or can I edit the shapefile so that it is correct? I am looking for free/open source answers to this problem, eg I cannot use expensive software it must be free or open source. Thanks Brad -- View this message in context: http://www.nabble.com/Raster-Image-and-Shapefile-Alignment-tf2936545.html#a8210212 Sent from the Mapserver - User mailing list archive at Nabble.com.