From bartvde at XS4ALL.NL Sat Apr 1 02:28:33 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Sat, 1 Apr 2006 12:28:33 +0200 Subject: Mysql ogr In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD55D08C1@s-sp22.pca.state.mn.us> Message-ID: Hi David, the example is hidden here: http://www.gdal.org/ogr/drv_mysql.html MYSQL:westholland,user=root,password=psv9570,port=3306,tables=bedrijven Best regards, Bart Fawcett, David wrote: >Can anyone provide an example layer definition that uses OGR make a >direct connection to mysql? (as opposed to using odbc) > >Thanks, > >David. > > > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From dpinte at ITAE.BE Sat Apr 1 06:29:21 2006 From: dpinte at ITAE.BE (Didrik Pinte) Date: Sat, 1 Apr 2006 16:29:21 +0200 Subject: is mapserver website down ? Message-ID: hi, The mapserver website does not seem to answer at all. I can connect to it but no response from the webserver. did at bart:~$ wget mapserver.gis.umn.edu --17:02:00-- http://mapserver.gis.umn.edu/ => `index.html' Resolving mapserver.gis.umn.edu... 128.101.199.51 Connecting to mapserver.gis.umn.edu|128.101.199.51|:80... connected. HTTP request sent, awaiting response... Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 191 bytes Desc: Ceci est une partie de message num?riquement sign?e URL: From bartvde at XS4ALL.NL Sat Apr 1 06:33:33 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Sat, 1 Apr 2006 16:33:33 +0200 Subject: is mapserver website down ? In-Reply-To: <1143901762.5146.28.camel@geru-itae> Message-ID: It's down at my end as well. Maybe they are blocking the Dutch and the Belgians .... :-) Best regards, Bart Didrik Pinte wrote: >hi, > >The mapserver website does not seem to answer at all. I can connect to >it but no response from the webserver. > >did at bart:~$ wget mapserver.gis.umn.edu >--17:02:00-- http://mapserver.gis.umn.edu/ > => `index.html' >Resolving mapserver.gis.umn.edu... 128.101.199.51 >Connecting to mapserver.gis.umn.edu|128.101.199.51|:80... connected. >HTTP request sent, awaiting response... > > >Didrik > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From dpinte at ITAE.BE Sat Apr 1 06:38:55 2006 From: dpinte at ITAE.BE (Didrik Pinte) Date: Sat, 1 Apr 2006 16:38:55 +0200 Subject: is mapserver website down ? In-Reply-To: <442E8F3D.5080500@xs4all.nl> Message-ID: Le samedi 01 avril 2006 ? 16:33 +0200, Bart van den Eijnden (OSGIS) a ?crit : > It's down at my end as well. > > Maybe they are blocking the Dutch and the Belgians .... :-) > > Best regards, > Bart ;-) No idea about a backup place where I can access the documentation ? I'm in a hurry to finish a project and got some problems with porting a 4.4 site to the new 4.8. Some things have probably changed... Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 191 bytes Desc: Ceci est une partie de message num?riquement sign?e URL: From bartvde at XS4ALL.NL Sat Apr 1 06:42:39 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Sat, 1 Apr 2006 16:42:39 +0200 Subject: is mapserver website down ? In-Reply-To: <1143902335.5146.31.camel@geru-itae> Message-ID: There is no mirror AFAIK, and Google's cache is also letting us down. There is a site by Tydac which you could try: http://umn.mapserver.ch/index_en.php Otherwise, post your specific problem to the mailing list ... maybe some of us can help from the back of our minds. Best regards, Bart Didrik Pinte wrote: >Le samedi 01 avril 2006 ? 16:33 +0200, Bart van den Eijnden (OSGIS) a >?crit : > > >>It's down at my end as well. >> >>Maybe they are blocking the Dutch and the Belgians .... :-) >> >>Best regards, >>Bart >> >> > >;-) > >No idea about a backup place where I can access the documentation ? I'm >in a hurry to finish a project and got some problems with porting a 4.4 >site to the new 4.8. Some things have probably changed... > >Didrik > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From dpinte at ITAE.BE Sat Apr 1 07:04:50 2006 From: dpinte at ITAE.BE (Didrik Pinte) Date: Sat, 1 Apr 2006 17:04:50 +0200 Subject: is mapserver website down ? In-Reply-To: <442E915F.9020909@xs4all.nl> Message-ID: Le samedi 01 avril 2006 ? 16:42 +0200, Bart van den Eijnden (OSGIS) a ?crit : > There is no mirror AFAIK, and Google's cache is also letting us down. > > There is a site by Tydac which you could try: > > http://umn.mapserver.ch/index_en.php > > Otherwise, post your specific problem to the mailing list ... maybe some > of us can help from the back of our minds. > > Best regards, > Bart Great link, many thanks, that will help me a lot. Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 191 bytes Desc: Ceci est une partie de message num?riquement sign?e URL: From hobu at IASTATE.EDU Sat Apr 1 07:52:00 2006 From: hobu at IASTATE.EDU (Howard Butler) Date: Sat, 1 Apr 2006 09:52:00 -0600 Subject: is mapserver website down ? In-Reply-To: Message-ID: Back up again. At 5:04 PM +0200 4/1/06, Didrik Pinte wrote: >--=-w7D75iNlTTk9sC2pbmux >Content-Type: text/plain; charset=ISO-8859-1 >Content-Transfer-Encoding: quoted-printable > >Le samedi 01 avril 2006 =E0 16:42 +0200, Bart van den Eijnden (OSGIS) a >=E9crit : >> There is no mirror AFAIK, and Google's cache is also letting us down. >>=20 >> There is a site by Tydac which you could try: >>=20 >> http://umn.mapserver.ch/index_en.php >>=20 >> Otherwise, post your specific problem to the mailing list ... maybe some=20 >> of us can help from the back of our minds. >>=20 >> Best regards, >> Bart > >Great link, many thanks, that will help me a lot. > >Didrik > >--=-w7D75iNlTTk9sC2pbmux >Content-Type: application/pgp-signature; name=signature.asc >Content-Description: Ceci est une partie de message > =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?= > >-----BEGIN PGP SIGNATURE----- >Version: GnuPG v1.4.2.2 (GNU/Linux) > >iD8DBQBELpaS9Rlh4Zs4yBMRAi5MAJ4j08wRY0fMpLb9OK0X5AVFfH3BmACgnK0k >OBI4TJKLbtgTNWkP+b7J5uc= >=sg4G >-----END PGP SIGNATURE----- > >--=-w7D75iNlTTk9sC2pbmux-- From dpinte at ITAE.BE Sat Apr 1 08:26:04 2006 From: dpinte at ITAE.BE (Didrik Pinte) Date: Sat, 1 Apr 2006 18:26:04 +0200 Subject: centering on the result of itemquery Message-ID: Hi, i'm using the CGI interface to mapserver. I'm trying to get in one call a map centered on the result of a ITEMQUERY request. How is this possible ? Here is the working query i'm using at the moment : http://loclhost/cgi-bin/mapserv?map=/var/www/mapserver/csmap.map&mode=itemquery&layers=filling&scale=400000&mapxy=374974+1816035&mapsize=500+300&qlayer=selection&qstring=clientid%20=%20'T6_3137'&qitem=clientid Working fine but not centering on the result and displaying empty if the searched point is outside of the visible bounding box. Many thanks in advance for your help. Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 191 bytes Desc: Ceci est une partie de message num?riquement sign?e URL: From punkish at EIDESIS.ORG Sat Apr 1 08:21:49 2006 From: punkish at EIDESIS.ORG (Puneet Kishor) Date: Sat, 1 Apr 2006 10:21:49 -0600 Subject: mapserver on osx Message-ID: Please email inquiries directly to the list. > hi, > i've read an your post on internet, > sorry if i disturbe you > but > i've a problem with mapserver: > > i've installed mapserver on my osx 10.4 > binary package: > http://www.kyngchaos.com/macosx/downloads.php > i've installed oll packages for tiger > > > can you help me to run on my computer this demo file : http:// > grass.itc.it/start.html > > or any other demos ? > thank for any help > Massimo. > > From bartvde at XS4ALL.NL Sat Apr 1 08:36:07 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Sat, 1 Apr 2006 18:36:07 +0200 Subject: GetFeatureInfo reponse In-Reply-To: <442A6292.17738.88CBB6@localhost> Message-ID: Hi Laura, I see you didn't get a reply on this one as yet. I don't think this is possible (I also briefly checked the source code and all the handlers use OWS_GML2). So if you want it, submit an enhancement request for it in bugzilla. Best regards, Bart Btw, what happened to your C reading capabilities :-) ? Laura D?az wrote: > Hi, > i am trying to find out if i could change the GML version i get back > in a GetFeatureInfo response using Mapserver 4.6.1. > I?ve seen you can specify GML2 or GML3 in the case of a GetFeature > request. > Is it possible to do the same when requesting GetFeatureInfo? and if > so, can i set the GML profile as well? > thanks in advance, > > Laura -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From bartvde at XS4ALL.NL Sat Apr 1 08:37:57 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Sat, 1 Apr 2006 18:37:57 +0200 Subject: labeling with SLDs in MapServer In-Reply-To: <442C1158.7437.1F30A93@localhost> Message-ID: Hi Laura, we use this functionality quite often, but I don't have access to the intranet Wiki here so I cannot paste an example. I'll try to do that on Monday. Best regards, Bart Laura D?az wrote: > Hi all, > i am trying to label a layer i have defined in my map file, it is a > point shapefile layer, the SLD i am using is as follows: > > > hojas_label > > > default:hojas_label:COD10000 > 1 > > > labels > > > > name="font-family">Serif > name="font-style">normal > name="font-weight">normal > name="font-size">12 > name="font-color">#000000 > > > > > > above > 2.5 > 5 > > > > > > > > > > > When i request a GetMap with this layer and using this SLD i get the > message from Mapserver: > > > msDrawMap(): Image handling error. Failed to draw layer named > 'hojas_label'. > msDBFGetItemIndex(): DBASE file error. Item 'PropertyName' not found. > > > i?ve checked out the name of the field i want to label, and it is > correct, actually i did try with all the fields and i have the same > problem, the layer is good as well because i can visualize it if i > just don't use this SLD.... > Any ideas? > > thanks in advance, > > Laura -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From jmckenna at DMSOLUTIONS.CA Sat Apr 1 16:07:49 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Sat, 1 Apr 2006 19:07:49 -0500 Subject: MS4W 1.5.0 released Message-ID: Hello all, A new version of MS4W is available for download (http://www.maptools.org/ms4w/index.phtml?page=downloads.html), which contains MapServer 4.8.3. But a bigger announcement is that, with many many thanks to Howard Butler and his MapServer buildkit, this version of MS4W includes all mapscript flavours - CSharp, Java, Python, and PHP. It also includes plugins for MrSID, Oracle 10i, and SDE 9.1 - but beware that these are not out-of-the box and require configuration as outlined in http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#c-gdal-ogr-plugins. Please test away, especially the C/Java/Python mapscript communities, and report issues and suggestions to the MS4W bugzilla (http://bugzilla.maptools.org/). And please use the MS4W mailing list for configuration issues/questions. MapServer 4.8.3 changelog: http://mapserver.gis.umn.edu/download/current/HISTORY.TXT MS4W history: 1.5.0 Notable changes are: - built with Hobu's MapServer buildkit (bug 1382) - added mapserver release of 4.8.3 - added CSharp, Java, and Python mapscript - modified gdalplugin structure for MrSID, Oracle, and SDE plugins - removed mapserver 4.6.1 release from package - added shpdiff.exe utility (bug 1371) - fixed path in mapserv-utils readme (bug 1368) - add missing files in \proj\nad directory (bug 1385) - added plugin instructions for MrSID, Oracle, and SDE to README_INSTALL doc - added library versions used in MapServer build to README_INSTALL doc (one shouldn't do this much work on a Saturday) jeff -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From hobu at IASTATE.EDU Sat Apr 1 18:53:15 2006 From: hobu at IASTATE.EDU (Howard Butler) Date: Sat, 1 Apr 2006 20:53:15 -0600 Subject: MS4W 1.5.0 released In-Reply-To: Message-ID: Thanks for the kudos Jeff. Hopefully the buildkit will make for smoother, easier, and more frequent releases as well as give the option to allow people to easily tweak their own build when they need it. Here's a list of some additional goodies: - Recent CVS GDAL (3/30/2006) - GEOS 2.2.1 support in both OGR and MapServer - Latest libgd + Steve's patch for antialiasing One additional benefit of the buildkit is there is no longer a need for the "Kitchen sink" binaries that I was providing at hobu.stat.iastate.edu. Instead, I am only providing libmap.dlls that will work with MS4W to provide native MapServer drivers for SDE and Oracle. The SDE and Oracle plugins currently in MS4W are for OGR, not the native drivers. Head to to get the libmap.dll that you need. A hope for the next MapServer release is a plugin implementation for SDE and Oracle similar to OGR, which will eliminate the need for separate libmap.dll downloads altogether. Also, some clarification on the MapScripts. Python MapScript in the MS4W release is compiled against Python 2.4.2. C# MapScript is against the .NET 1.1 runtime. Java MapScript is against Java 1.5.06. Perl, TCL, and Ruby MapScript are not in this MS4W release. All MapScripts are dynamically linked against libmap.dll (including PHP too, I think). This means that if you need native SDE or Oracle support, you can swap in the libmap.dll from hobu.stat.iastate.edu and the MapScripts will have the additional driver support. Howard At 7:07 PM -0500 4/1/06, Jeff McKenna wrote: >Hello all, > >A new version of MS4W is available for download >(http://www.maptools.org/ms4w/index.phtml?page=downloads.html), which >contains MapServer 4.8.3. > >But a bigger announcement is that, with many many thanks to Howard >Butler and his MapServer buildkit, this version of MS4W includes all >mapscript flavours - CSharp, Java, Python, and PHP. It also includes >plugins for MrSID, Oracle 10i, and SDE 9.1 - but beware that these are >not out-of-the box and require configuration as outlined in >http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#c-gdal-ogr-plugins. > >Please test away, especially the C/Java/Python mapscript communities, >and report issues and suggestions to the MS4W bugzilla >(http://bugzilla.maptools.org/). And please use the MS4W mailing list >for configuration issues/questions. > >MapServer 4.8.3 changelog: >http://mapserver.gis.umn.edu/download/current/HISTORY.TXT > >MS4W history: > >1.5.0 Notable changes are: > - built with Hobu's MapServer buildkit (bug 1382) > - added mapserver release of 4.8.3 > - added CSharp, Java, and Python mapscript > - modified gdalplugin structure for MrSID, Oracle, > and SDE plugins > - removed mapserver 4.6.1 release from package > - added shpdiff.exe utility (bug 1371) > - fixed path in mapserv-utils readme (bug 1368) > - add missing files in \proj\nad directory (bug 1385) > - added plugin instructions for MrSID, Oracle, and > SDE to README_INSTALL doc > - added library versions used in MapServer build to > README_INSTALL doc > >(one shouldn't do this much work on a Saturday) > >jeff > > >-- >Jeff McKenna >DM Solutions Group Inc. >http://www.dmsolutions.ca From dpinte at ITAE.BE Sat Apr 1 21:38:53 2006 From: dpinte at ITAE.BE (Didrik Pinte) Date: Sun, 2 Apr 2006 07:38:53 +0200 Subject: centering on the result of itemquery In-Reply-To: <1143908764.5146.38.camel@geru-itae> Message-ID: Le samedi 01 avril 2006 ? 18:26 +0200, Didrik Pinte a ?crit : > Hi, > > i'm using the CGI interface to mapserver. I'm trying to get in one call > a map centered on the result of a ITEMQUERY request. > > How is this possible ? > > Here is the working query i'm using at the moment : > > http://loclhost/cgi-bin/mapserv?map=/var/www/mapserver/csmap.map&mode=itemquery&layers=filling&scale=400000&mapxy=374974+1816035&mapsize=500+300&qlayer=selection&qstring=clientid%20=%20'T6_3137'&qitem=clientid > > Working fine but not centering on the result and displaying empty if the > searched point is outside of the visible bounding box. > > Many thanks in advance for your help. > > Didrik Here is the answer ;-) adding MAPEXT=shapes to the query centers the query on the selected shapes. The SCALE must be defined in order to do the extent computation. ! The searched map file must have all the searchable points in its extent. Points outside of the extent cannot be searched. Is this a normal behaviour ? So the correct query string is the following : http://localhost/cgi-bin/mapserv?map=/var/www/mapserver/csmap.map&mode=itemquery&layers=filling&mapsize=500+300&qlayer=selection&qstring=clientid%20=%20'T8_7185'&qitem=clientid&mapext=shapes&scale=400000 Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 191 bytes Desc: Ceci est une partie de message num?riquement sign?e URL: From mulka at UMICH.EDU Sat Apr 1 23:28:38 2006 From: mulka at UMICH.EDU (Kyle Mulka) Date: Sun, 2 Apr 2006 03:28:38 -0400 Subject: Increase Clarity of WMS Message-ID: I have these very detailed floor plans that I'd like to georeference and display through mapserver's WMS sever, however, the clarity of the images degrades when it goes through. How can I increase the clarity of these floorplans through the WMS? Here's with mapserver: http://maps.kylemulka.com/floorplan-test10.php Here's without (simply chopping up tiles using Imagemagick) http://maps.kylemulka.com/imagemagick/livedude.php Here's the parts of the map file for just the first floor: MAP NAME "UofM" FONTSET fontset.txt PROJECTION "init=epsg:4326" END IMAGETYPE png24 EXTENT -83.747063 42.272038 -83.709126 42.297056 SHAPEPATH "/umdata/" LAYER NAME "dude-1" TYPE raster DATA "dude1.tif" PROCESSING "RESAMPLE=AVERAGE" PROCESSING "DITHER=YES" METADATA "wms_title" "dude-1" "wms_onlineresource" "http://kylemulka.com/cgi-bin/mapserv?map=floorplans.map&" "wms_srs" "EPSG:4326" END STATUS ON END END -Kyle From eshabtai at GMAIL.COM Sat Apr 1 23:59:31 2006 From: eshabtai at GMAIL.COM (Ehud Shabtai) Date: Sun, 2 Apr 2006 10:59:31 +0300 Subject: Setting line width according to scale Message-ID: Hi, After using mapserver for a while now, I decided to clean out some of the mess I have in the map file. I'm using mapserver mainly for drawing roads of different classes. My current configuration has about 8 different layers, all very similar to each other except for the line width value. This seems like I'm abusing the layer definition as these are not really different layers but a hack to allow drawing roads in different widths according to the scale. Is there a better way? Can I define the width to be proportional to the current scale? I'm using a circle symbol to draw my lines. Thanks, -- Ehud Shabtai http://www.freemap.co.il/map/ From bartvde at XS4ALL.NL Sun Apr 2 00:58:30 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Sun, 2 Apr 2006 10:58:30 +0200 Subject: Setting line width according to scale In-Reply-To: Message-ID: The best thing would be to define multiple classes for 1 layer, and use MINSCALE, MAXSCALE on the classes. I don't know of any way to do some kind of automatic/proportional scaling, but maybe someone else knows ..... Best regards, Bart Ehud Shabtai wrote: >Hi, > >After using mapserver for a while now, I decided to clean out some of >the mess I have in the map file. > >I'm using mapserver mainly for drawing roads of different classes. My >current configuration has about 8 different layers, all very similar >to each other except for the line width value. This seems like I'm >abusing the layer definition as these are not really different layers >but a hack to allow drawing roads in different widths according to the >scale. > >Is there a better way? Can I define the width to be proportional to >the current scale? > >I'm using a circle symbol to draw my lines. > >Thanks, > >-- >Ehud Shabtai >http://www.freemap.co.il/map/ > > > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From woodbri at SWOODBRIDGE.COM Sun Apr 2 05:30:17 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sun, 2 Apr 2006 08:30:17 -0400 Subject: Setting line width according to scale In-Reply-To: <442F9236.7040904@xs4all.nl> Message-ID: This is clearly the "standard" way to do it based on most of the mapfiles I have seen or created. There is another way that you can do it by defining your widths in real units instead of pixels. This is done with SIZEUNITS, so if you set the width of the road in feet or meters then as you zoom in it will scale directly proportional to the zoom scale. -Steve Bart van den Eijnden (OSGIS) wrote: > The best thing would be to define multiple classes for 1 layer, and use > MINSCALE, MAXSCALE on the classes. > > I don't know of any way to do some kind of automatic/proportional > scaling, but maybe someone else knows ..... > > Best regards, > Bart > > Ehud Shabtai wrote: > >> Hi, >> >> After using mapserver for a while now, I decided to clean out some of >> the mess I have in the map file. >> >> I'm using mapserver mainly for drawing roads of different classes. My >> current configuration has about 8 different layers, all very similar >> to each other except for the line width value. This seems like I'm >> abusing the layer definition as these are not really different layers >> but a hack to allow drawing roads in different widths according to the >> scale. >> >> Is there a better way? Can I define the width to be proportional to >> the current scale? >> >> I'm using a circle symbol to draw my lines. >> >> Thanks, >> >> -- >> Ehud Shabtai >> http://www.freemap.co.il/map/ >> >> >> >> >> > > From eshabtai at GMAIL.COM Sun Apr 2 06:07:09 2006 From: eshabtai at GMAIL.COM (Ehud Shabtai) Date: Sun, 2 Apr 2006 16:07:09 +0300 Subject: Setting line width according to scale In-Reply-To: <442FC3D9.4040800@swoodbridge.com> Message-ID: I wasn't aware to the fact that MINSCALE and MAXSCALE can be used in the CLASS section. Clearly this is much better than defining different LAYERS as I did. I'll take a look at the SIZEUTNIS option, it might also be a good solution. Thanks for your help. On 4/2/06, Stephen Woodbridge wrote: > This is clearly the "standard" way to do it based on most of the > mapfiles I have seen or created. There is another way that you can do it > by defining your widths in real units instead of pixels. This is done > with SIZEUNITS, so if you set the width of the road in feet or meters > then as you zoom in it will scale directly proportional to the zoom scale. > > -Steve > > Bart van den Eijnden (OSGIS) wrote: > > The best thing would be to define multiple classes for 1 layer, and use > > MINSCALE, MAXSCALE on the classes. > > > > I don't know of any way to do some kind of automatic/proportional > > scaling, but maybe someone else knows ..... > > > > Best regards, > > Bart > > > > Ehud Shabtai wrote: > > > >> Hi, > >> > >> After using mapserver for a while now, I decided to clean out some of > >> the mess I have in the map file. > >> > >> I'm using mapserver mainly for drawing roads of different classes. My > >> current configuration has about 8 different layers, all very similar > >> to each other except for the line width value. This seems like I'm > >> abusing the layer definition as these are not really different layers > >> but a hack to allow drawing roads in different widths according to the > >> scale. > >> > >> Is there a better way? Can I define the width to be proportional to > >> the current scale? > >> > >> I'm using a circle symbol to draw my lines. > >> > >> Thanks, > >> > >> -- > >> Ehud Shabtai > >> http://www.freemap.co.il/map/ > >> > >> > >> > >> > >> > > > > > -- Ehud Shabtai http://www.freemap.co.il/map/ From dpinte at ITAE.BE Sun Apr 2 09:27:46 2006 From: dpinte at ITAE.BE (Didrik Pinte) Date: Sun, 2 Apr 2006 18:27:46 +0200 Subject: 4.8 template with url bug ? Message-ID: Hi, I have a running server on 4.4 and a dev server with the 4.8 (latest debian package (4.8.3-1)). The following does not work with the 4.8 but does with the 4.4 : LAYER NAME "suivi" CONNECTION "user=xxx password=xxxx dbname=xxxx host=localhost port=5432" CONNECTIONTYPE postgis DATA "cartopoint from tblhistory" STATUS ON TYPE POINT TOLERANCE 10 TEMPLATE "http://www.google.com/" CLASS NAME "test" COLOR 255 0 0 OUTLINECOLOR 255 0 0 SIZE 10 SYMBOL "triangle" END PROJECTION "init=epsg:4326" END END When querying the layer, the 4.4 server redirect the user to the google page but the 4.8 server sends : "Content-type: text/html msReturnPage(): Web application error. Malformed template name." Any idea on the problem ? Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 191 bytes Desc: Ceci est une partie de message num?riquement sign?e URL: From beproject06 at YAHOO.COM Sun Apr 2 12:30:07 2006 From: beproject06 at YAHOO.COM (Apeksha Bhambhani) Date: Sun, 2 Apr 2006 12:30:07 -0700 Subject: Drawing a line using php/mapscript Message-ID: Hi , I am working on a web mapping application.We have built a tool to accept user edits on a map. We have managed with editing a point layer . But are having some problems with editing the line layer. Could somebody help me out. Here is what i have tried using the php/mapscript api : creating a line object n then adding a point to the line obj. Followed by creating an obj of type shape . Adding the line obj to the shape and then drawing the shape. However this does not work . Could somebody please help. Thanks , Apeksha --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2?/min or less. -------------- next part -------------- An HTML attachment was scrubbed... URL: From beproject06 at YAHOO.COM Sun Apr 2 12:36:51 2006 From: beproject06 at YAHOO.COM (Apeksha Bhambhani) Date: Sun, 2 Apr 2006 12:36:51 -0700 Subject: Drawing a line using php/mapscript In-Reply-To: <442FC3D9.4040800@swoodbridge.com> Message-ID: Hi , Well though u could help. I am working on a web mapping application.We have built a tool to accept user edits on a map. We have managed with editing a point layer . But are having some problems with editing the line layer. Could u plz help me out. Here is what i have tried using the php/mapscript api : creating a line object n then adding a point to the line obj. Followed by creating an obj of type shape . Adding the line obj to the shape and then drawing the shape. However this does not work . Thanks , Apeksha --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2?/min or less. -------------- next part -------------- An HTML attachment was scrubbed... URL: From s_jubeh at YAHOO.COM Sun Apr 2 17:25:08 2006 From: s_jubeh at YAHOO.COM (salah jubeh) Date: Sun, 2 Apr 2006 17:25:08 -0700 Subject: Data on other machine Message-ID: Hi guys I want to ask a question may be it is silly, i have the data i want to use on another PC so in the map file the shapepath is \\machinname\datafolder I did this test and mapserver was able to display the images, i want to ask how this issue can affect the performance of the web mapping server , it will increase the time of getting the images or not ..? --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2?/min or less. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Sun Apr 2 18:03:57 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Sun, 2 Apr 2006 21:03:57 -0400 Subject: Data on other machine Message-ID: Salah - It's impossible to say whether it will improve or hurt your performance. You'll need to do some testing to find out. The other machine might be faster, or slower, might have a faster disk subsystem or a slower one, might have more or less RAM, etc. And the network may be fast, or slow, or busy, or not busy. There is some benefit to having a separate machine helping - you've got an independent disk system, at least one more CPU, and more RAM available to your application than you would otherwise. You have the overhead of the network counteracting that benefit. It all depends very much on your system setup. I run MapServer with data connected over the network (via NFS) and - in my particular configuration - see no particular benefit to having data stored locally rather than remotely. Your system will be different, and there are so many variables that you will need to do that testing yourself. - 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 salah jubeh Sent: Sunday, April 02, 2006 8:25 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Data on other machine Hi guys I want to ask a question may be it is silly, i have the data i want to use on another PC so in the map file the shapepath is \\machinname\datafolder I did this test and mapserver was able to display the images, i want to ask how this issue can affect the performance of the web mapping server , it will increase the time of getting the images or not ..? ________________________________ Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2?/min or less. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dpinte at ITAE.BE Sun Apr 2 22:01:10 2006 From: dpinte at ITAE.BE (Didrik Pinte) Date: Mon, 3 Apr 2006 07:01:10 +0200 Subject: 4.8 template with url bug ? In-Reply-To: <1143995266.13919.9.camel@geru-itae> Message-ID: Le dimanche 02 avril 2006 ? 18:27 +0200, Didrik Pinte a ?crit : > > Any idea on the problem ? It seems to be corrected since the dist-upgrade of this morning. Sorry for the message pollution. Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 191 bytes Desc: Ceci est une partie de message num?riquement sign?e URL: From b.vdeijnden at AGI.RWS.MINVENW.NL Sun Apr 2 22:18:54 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Mon, 3 Apr 2006 07:18:54 +0200 Subject: labeling with SLDs in MapServer Message-ID: Laura, this works for us (Name is the layer name, Label is the column name): NL-prov #000000 arial 10 Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Bart van den Eijnden (OSGIS) Verzonden: zaterdag 1 april 2006 18:38 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] labeling with SLDs in MapServer Hi Laura, we use this functionality quite often, but I don't have access to the intranet Wiki here so I cannot paste an example. I'll try to do that on Monday. Best regards, Bart Laura D?az wrote: > Hi all, > i am trying to label a layer i have defined in my map file, it is a > point shapefile layer, the SLD i am using is as follows: > > > hojas_label > > > default:hojas_label:COD10000 > 1 > > > labels > > > > name="font-family">Serif > name="font-style">normal > name="font-weight">normal > name="font-size">12 > name="font-color">#000000 > > > > > > above > 2.5 > 5 > > > > > > > > > > > When i request a GetMap with this layer and using this SLD i get the > message from Mapserver: > > > msDrawMap(): Image handling error. Failed to draw layer named > 'hojas_label'. > msDBFGetItemIndex(): DBASE file error. Item 'PropertyName' not found. > > > i?ve checked out the name of the field i want to label, and it is > correct, actually i did try with all the fields and i have the same > problem, the layer is good as well because i can visualize it if i > just don't use this SLD.... > Any ideas? > > thanks in advance, > > Laura -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From wbr at DETEMOBIL.DE Sun Apr 2 22:59:50 2006 From: wbr at DETEMOBIL.DE (wbr) Date: Mon, 3 Apr 2006 07:59:50 +0200 Subject: Bug in Mapserver-4.8.3 Message-ID: Hi All, i'm not sure if i had found a bug. We use a application with mapserver and a lot of labeling of streets, citys and so on. I think the labeldrawing in mapserver 4.8.3 is not correct, i have attached 2 pictures where you can see the difference on the cities Braunschweig and Wolfsburg. here the mapfile with the layer definition of cities. LAYER NAME staedte TYPE POINT STATUS DEFAULT MINSCALE 200000 DATA std500_gk3 LABELITEM "STADT_NAME" LABELCACHE on Postlabelcache false CLASSITEM 'STADT_BEV' CLASS expression /1/ NAME 'St?dte > 1000000' COLOR 0 0 0 SYMBOL 'full_circle' SIZE 10 LABEL POSITION LC TYPE TRUETYPE FONT arial-bold COLOR 0 0 0 SIZE 12 ANTIALIAS TRUE OUTLINECOLOR 255 255 255 PARTIALS true END END CLASS expression /3/ MAXSCALE 750000 name 'St?dte > 250000' color 0 0 0 symbol 'full_circle' size 7 label POSITION LC TYPE TRUETYPE FONT arial COLOR 0 0 0 SIZE 9 ANTIALIAS TRUE OUTLINECOLOR 255 255 255 PARTIALS true end END CLASS expression /5/ MAXSCALE 500000 name 'St?dte > 25000' color 0 0 0 symbol 'full_circle' size 6 label POSITION LC TYPE TRUETYPE FONT arial COLOR 0 0 0 SIZE 7 ANTIALIAS TRUE OUTLINECOLOR 255 255 255 PARTIALS true end END END the labels with size less then 9 are correct ?!? Can someone verify this ? Thanks, Wolfgang Brungert -- T-Mobile Deutschland GmbH Program and Budget Management (TRPD13-D) Roddestr. 12 48153 M?nster Phone: +49 251 977 4142 Fax: +49 251 977 4149 email: wolfgang.brungert at t-mobile.de PGP Fingerprint: B3F8 D368 5EEF 3873 3C4F 423C 171E F217 7CA4 3467 -------------- next part -------------- A non-text attachment was scrubbed... Name: mapserver-4.6.1.gif Type: image/gif Size: 14862 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mapserver-4.8.3.gif Type: image/gif Size: 15821 bytes Desc: not available URL: From dpinte at ITAE.BE Mon Apr 3 00:33:45 2006 From: dpinte at ITAE.BE (Didrik Pinte) Date: Mon, 3 Apr 2006 09:33:45 +0200 Subject: 4.8 query results problem Message-ID: Hi, The following layer and template has been defined under a 4.4 server and works perfectly well. Using it on a 4.8 server, it does work when there is an empy resultset but it displays nothing when they are results. Does anybody know how to debug the problem ? The problem is really strange, i have nothing in the debug output ... Didrik The query is done with the following url : http://localhost/cgi-bin/mapserv?img.x=150&img.y=96&mode=nquery&layers=moved&zoomdir=0&zoomsize=2&imgxy=250.0+150.0&mapsize=500+300&imgext=343724.016875+1797285.010125+406223.983125+1834784.989875&map=%2Fvar%2Fwww%2Fmapserver%2Fgeneral.map -------------------------------------------------------------------------- LAYER NAME "moved" CONNECTION "user=xxx password=xxx dbname=xxx host=localhost port=5432" CONNECTIONTYPE postgis DATA "cartopoint from geotable" STATUS ON TYPE POINT HEADER "templates/table_header.html" FOOTER "templates/table_footer.html" TOLERANCE 10 TEMPLATE "templates/table_data.html" CLASS NAME "Moved" EXPRESSION ( '[moved]' = 't' ) COLOR 255 0 0 OUTLINECOLOR 255 0 0 SIZE 10 SYMBOL "circle" END CLASS NAME "Not moved" EXPRESSION ( '[moved]' = 'f' ) COLOR 0 255 0 OUTLINECOLOR 0 255 0 SIZE 10 SYMBOL "circle" END PROJECTION "init=epsg:4326" END END table_data.html template : -------------------------------------------------------------------------- [clientid][level] [senddtg] [latitude] - [longitude] -------------------------------------------------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 191 bytes Desc: Ceci est une partie de message num?riquement sign?e URL: From crane_ba at YAHOO.COM Mon Apr 3 01:25:18 2006 From: crane_ba at YAHOO.COM (Ben Crane) Date: Mon, 3 Apr 2006 01:25:18 -0700 Subject: Ka-map problems: problem attached as document Message-ID: Hi, I have attached a word document that briefly explains the problem I'm having with ka-map within Mapserver. I have looked at everything I could find but I'm sure it's something simple I have overlooked. The attachment is a Word document (zipped) which contains the problem, the system I'm running and what solutions I have tried. I trust this is acceptable to all? Regards Ben Crane __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- A non-text attachment was scrubbed... Name: kamap errors.doc Type: text/richtext Size: 5160 bytes Desc: 2110979949-kamap errors.doc URL: From jacob.delfos at MAUNSELL.COM Mon Apr 3 01:34:22 2006 From: jacob.delfos at MAUNSELL.COM (Delfos, Jacob) Date: Mon, 3 Apr 2006 16:34:22 +0800 Subject: Ka-map problems: problem attached as document Message-ID: Ben, I notice you have no shapepath defined, and the path to your shapefile is not a complete path. This *may* be an issue, but not likely the cause of your problem. It would really help if you could attach the output of your php log (make sure you set up PHP to log to a file, see php.ini in c:\windows). That tells us whether something goes wrong on the server. If nothing relevant shows up, try to download firefix, because it has good javascript debugging abilities. Select "tools->JavaScript Console", and see what is happening there. Please provide us with the output, and we will have a better idea. By the way, I have CC'd this to the Ka-Map list, which I recommend you subscribe to. Regards, Jacob > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ben Crane > Sent: 3 April 2006 16:25 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Ka-map problems: problem > attached as document > > Hi, > > I have attached a word document that briefly explains > the problem I'm having with ka-map within Mapserver. I > have looked at everything I could find but I'm sure > it's something simple I have overlooked. > > The attachment is a Word document (zipped) which > contains the problem, the system I'm running and what > solutions I have tried. > > I trust this is acceptable to all? > > Regards > Ben Crane > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > From fabio.dovidio at PLANETEK.IT Mon Apr 3 01:52:53 2006 From: fabio.dovidio at PLANETEK.IT (Fabio D' Ovidio) Date: Mon, 3 Apr 2006 10:52:53 +0200 Subject: MapGuide Open Source Project Message-ID: MapServer read shp file without problem (ok !!! ) A question : Is MapGuide Open Source able to read SHP file without modify them in SDF ?? Is The Provider for SHP integrated with Open Source version of MapGuide ??? I need this information to make a comparison between MapServer and MapGuide. Thank you ! ******************************************************************************************** Ing. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any other MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance. ---- File information ----------- File: planetek.gif Date: 28 Feb 2006, 16:15 Size: 1899 bytes. Type: Unknown -------------- next part -------------- A non-text attachment was scrubbed... Name: planetek.gif Type: application/octet-stream Size: 1899 bytes Desc: not available URL: From bartvde at XS4ALL.NL Mon Apr 3 02:00:17 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Mon, 3 Apr 2006 11:00:17 +0200 Subject: MapGuide Open Source Project In-Reply-To: <4430FE85.3849.5C474D@fabio.dovidio.planetek.it> Message-ID: Hi, please ask these questions on the Mapguide Open Source user list, see: https://mapguide.osgeo.org/ for more information. Best regards, Bart > > MapServer read shp file without problem (ok !!! ) > > A question : > > > Is MapGuide Open Source able to read SHP file without modify them in SDF > ?? > Is The Provider for SHP integrated with Open Source version of MapGuide > ??? > > I need this information to make a comparison between MapServer and > MapGuide. > > Thank you ! > > ******************************************************************************************** > > > Ing. Fabio D'Ovidio > WebGIS Staff > Planetek Italia Srl > via Massaua, 12 - 70123 Bari - Italy > web : http ://www.planetek.it > e-mail : dovidio at planetek.it > > ******************************************************************************************** > The following section of this message contains a file attachment > prepared for transmission using the Internet MIME message format. > If you are using Pegasus Mail, or any other MIME-compliant system, > you should be able to save it or view it from within your mailer. > If you cannot, please ask your system administrator for assistance. > > ---- File information ----------- > File: planetek.gif > Date: 28 Feb 2006, 16:15 > Size: 1899 bytes. > Type: Unknown > From tanguy.ricaille at TRASYS.LU Mon Apr 3 02:24:03 2006 From: tanguy.ricaille at TRASYS.LU (Ricaille Tanguy) Date: Mon, 3 Apr 2006 11:24:03 +0200 Subject: Stop a request WFS WMS or WCS Message-ID: Hello, can you tell me how i can stop a request ? is there any message ? can i configure a timeout ? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at MMMTIKE.FI Mon Apr 3 04:17:54 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Mon, 3 Apr 2006 14:17:54 +0300 Subject: How to use and interpret DEBUG? Message-ID: Hi, I got interested in comparing the performance of using tiled geotiffs with overviews v.s. JPEG 2000 images. So far I have set "DEBUG ON" in map object, named a logfile in the web object, made two layers from geotiffs and JPEG 2000s and set "DEBUG ON" for the both. Now when I send requests to Mapserver I get new lines to logfile, but I do not know where I should find the time that it takes to render the layer. Here is an splitted example of the lines I am getting to the log: Mon Apr 03 13:08:52 2006, #this is obviously date and time 2732, # no idea about what this is 1xx.xx.xx.xxx, # IP address of the requesting computer, I believe Tifspeedtest, # name defined in the mapfile 3, # no idea about this, but value seems to be always "3" 2539375.000000 7220000.000000 2545625.000000 7225000.000000, # extents of the request -1.000000 -1.000000, # no idea about these two either Geotiff , # names of the requested layers normal execution # the result Now I wonder if this is the way to do this, and if so, then what I should think about the numbers. I wonder also why I get two lines per request if I send "&mode=map&layers=Geotiff" request through browser, but nothing at all if I am sending WMS "GetMap"requests with the browser for the same layer, even if I do get the map. Might there be some good document about using debug available? Those I have found helped me this far but not any further. Regards, -Jukka- From listuser at HERZSYS.DE Mon Apr 3 04:24:07 2006 From: listuser at HERZSYS.DE (listuser HH) Date: Mon, 3 Apr 2006 13:24:07 +0200 Subject: OGR and oracle (MS4W 1.5) Message-ID: Hi all, I started to test the new ms4w package - I like it. I tried the oracle connection with mapserver and ogr - both work fine. The next thing I wanted to test was a ogr VRT with points from a x / y table. I get the message: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor in . In the .ovf file I use the same connection like in the mapfile before (OCI:usr/pwd@//serverIp:port/dbName). I have to say that I don't use a TNS because the oracle instant client don't have a tnsnames.ora file and I wasn't sure where to put one. I hoped that this will not be necessary since the other connections work. Has anyone a hint? Thanks and regards Norbert From mulka at UMICH.EDU Mon Apr 3 04:29:57 2006 From: mulka at UMICH.EDU (Kyle Mulka) Date: Mon, 3 Apr 2006 07:29:57 -0400 Subject: Increase Clarity of WMS In-Reply-To: <44301E32.1090002@livniconsulting.com> Message-ID: Here's one of the WMS tiles I'm using. I've tried stretching it using different values for the height and width but nothing I've tried has made it look better or worse. http://kylemulka.com/cgi-bin/mapserv?map=floorplans.map&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=dude-1&STYLES=&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:4326&BBOX=-83.7158203125,42.2905166207974,-83.71444702148438,42.291532494305976&WIDTH=256&HEIGHT=256 -Kyle Josh Livni wrote: > Kyle, > > I could be wrong -- I haven't used a mapserver wms in Google Maps - but > I think your mapserver image may be being squashed a bit. It's a bit > less wide relative to the height/width of your Imagemagick version. Also > the gmap div seems to be a different height/width in the different > versions. > > WMS will happily respond with the exact extent, but perhaps not the > relative height/width you expect, thus 'squashing' the image, which may > be causing the image issues you're seeing. > > You may want to play with this by adding a &height &width to the wms > query, or you could try playing with the div height/width ratios, and > seeing if you get similar results if one is a bit off, as I may be > off-base with this theory. > > -Josh > > Kyle Mulka wrote: > >> I have these very detailed floor plans that I'd like to georeference >> and display through mapserver's WMS sever, however, the clarity of the >> images degrades when it goes through. How can I increase the clarity >> of these floorplans through the WMS? >> >> Here's with mapserver: >> http://maps.kylemulka.com/floorplan-test10.php >> >> Here's without (simply chopping up tiles using Imagemagick) >> http://maps.kylemulka.com/imagemagick/livedude.php >> >> Here's the parts of the map file for just the first floor: >> MAP >> NAME "UofM" >> FONTSET fontset.txt >> PROJECTION >> "init=epsg:4326" >> END >> IMAGETYPE png24 >> EXTENT -83.747063 42.272038 -83.709126 42.297056 >> SHAPEPATH "/umdata/" >> LAYER >> NAME "dude-1" >> TYPE raster >> DATA "dude1.tif" >> PROCESSING "RESAMPLE=AVERAGE" >> PROCESSING "DITHER=YES" >> METADATA >> "wms_title" "dude-1" >> "wms_onlineresource" >> "http://kylemulka.com/cgi-bin/mapserv?map=floorplans.map&" >> "wms_srs" "EPSG:4326" >> END >> STATUS ON >> END >> END >> >> -Kyle > > > > > From bartvde at XS4ALL.NL Mon Apr 3 04:38:24 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Mon, 3 Apr 2006 13:38:24 +0200 Subject: How to use and interpret DEBUG? In-Reply-To: Message-ID: The log file is more like an access log file and not very useful for what you want to do. To use debugging info, make sure: 1) Mapserver is compiled with MSDEBUG (check mapserv -v) 2) Your CGI knows where to log debug info, for Apache use: SetEnv MS_ERRORFILE "stderr" in the httpd.conf so that debug info gets into the Apache error log, for IIS use system environment variable named MS_ERRORFILE and restart server machine, you can also log to a file if you make sure your webserver has write access to it 3) in the Apache error log the drawing times will be reported Hope this helps. Best regards, Bart > Hi, > > I got interested in comparing the performance of using tiled geotiffs with > overviews v.s. JPEG 2000 images. So far I have set "DEBUG ON" in map > object, named a logfile in the web object, made two layers from geotiffs > and JPEG 2000s and set "DEBUG ON" for the both. > Now when I send requests to Mapserver I get new lines to logfile, but I do > not know where I should find the time that it takes to render the layer. > Here is an splitted example of the lines I am getting to the log: > > Mon Apr 03 13:08:52 2006, #this is obviously date and time > 2732, # no idea about what this is > 1xx.xx.xx.xxx, # IP address of the requesting computer, I believe > Tifspeedtest, # name defined in the mapfile > 3, # no idea about this, but value seems to be always "3" > 2539375.000000 7220000.000000 2545625.000000 7225000.000000, # > extents of the request > -1.000000 -1.000000, # no idea about these two either > Geotiff , # names of the requested layers > normal execution # the result > > > Now I wonder if this is the way to do this, and if so, then what I should > think about the numbers. I wonder also why I get two lines per request if > I send "&mode=map&layers=Geotiff" request through browser, but nothing at > all if I am sending WMS "GetMap"requests with the browser for the same > layer, even if I do get the map. > > Might there be some good document about using debug available? Those I > have found helped me this far but not any further. > > Regards, > > -Jukka- > > From laura.diaz at IVER.ES Mon Apr 3 05:04:23 2006 From: laura.diaz at IVER.ES (=?ISO-8859-1?Q?Laura_D=EDaz?=) Date: Mon, 3 Apr 2006 14:04:23 +0200 Subject: labeling with SLDs in MapServer In-Reply-To: <1FEE21DC1054D5119FCC0002A5517B2405F97A49@rws-mdi-dt2-01.agi.rws.minvenw.nl> Message-ID: Hi Bartje, thanks for your answer.. i made the SLD work just changing for in the Label tag, it appears in the documentation in that way, but it does not work, at least in the mapserver i use 4.6.1. > I don't think this is possible (I also briefly checked the source code > and all the handlers use OWS_GML2). > So if you want it, submit an enhancement request for it in bugzilla. yes, that is a good suggestion, it is a useful functionality > > Btw, what happened to your C reading capabilities :-) ? don't know... what happened? :-)) regards, Laura On 3 Apr 2006 at 7:18, Eijnden, B. van den (Bart) wrote: > Laura, > > this works for us (Name is the layer name, Label is the column name): > > > > NL-prov > > > > > > > #000000 > arial > 10 > > > > > > > > > Best regards, > Bart > > -----Oorspronkelijk bericht----- > Van: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Bart van den Eijnden > (OSGIS) > Verzonden: zaterdag 1 april 2006 18:38 > Aan: MAPSERVER-USERS at LISTS.UMN.EDU > Onderwerp: Re: [UMN_MAPSERVER-USERS] labeling with SLDs in MapServer > > > Hi Laura, > > we use this functionality quite often, but I don't have access to the > intranet Wiki here so I cannot paste an example. > > I'll try to do that on Monday. > > Best regards, > Bart > > Laura D?az wrote: > > > Hi all, > > i am trying to label a layer i have defined in my map file, it is a > > point shapefile layer, the SLD i am using is as follows: > > > > > > hojas_label > > > > > > default:hojas_label:COD10000 > > 1 > > > > > > labels > > > > > > > > > > name="font-family">Serif > > > > name="font-style">normal > > > > name="font-weight">normal > > > > name="font-size">12 > > > > name="font-color">#000000 > > > > > > > > > > > > > > > > above > > > 2.5 > > > 5 > > > > > > > > > > > > > > > > > > > > > > > When i request a GetMap with this layer and using this SLD i get the > > message from Mapserver: > > > > > > msDrawMap(): Image handling error. Failed to draw layer named > > 'hojas_label'. > > msDBFGetItemIndex(): DBASE file error. Item 'PropertyName' not found. > > > > > > i?ve checked out the name of the field i want to label, and it is > > correct, actually i did try with all the fields and i have the same > > problem, the layer is good as well because i can visualize it if i > > just don't use this SLD.... > > Any ideas? > > > > thanks in advance, > > > > Laura > > > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > > > Disclaimer > ************************************************************************ > Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is > uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis > hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te > informeren. Wij adviseren u om bij twijfel over de juistheid of de > volledigheid van de mail contact met afzender op te nemen. > > This message shall not constitute any rights or obligations. > This message is intended solely for the addressee. > If you have received this message in error, please delete it and > notify the sender immediately. When in doubt whether this message > is correct or complete, please contact the sender. > ************************************************************************ > -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Mon Apr 3 06:29:10 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 3 Apr 2006 09:29:10 -0400 Subject: OGR and oracle (MS4W 1.5) In-Reply-To: <443105D7.9070803@herzsys.de> Message-ID: listuser HH wrote: > Hi all, > > I started to test the new ms4w package - I like it. I tried the oracle > connection with mapserver and ogr - both work fine. > > The next thing I wanted to test was a ogr VRT with points from a x / y > table. I get the message: ORA-12514: TNS:listener does not currently > know of service requested in connect descriptor in . In the > .ovf file I use the same connection like in the mapfile before > (OCI:usr/pwd@//serverIp:port/dbName). I have to say that I don't use a > TNS because the oracle instant client don't have a tnsnames.ora file and > I wasn't sure where to put one. I hoped that this will not be necessary > since the other connections work. Has anyone a hint? Norbert, You should be able to put the same thing in your element in the VRT file that you would normally use as the datasource name when doing direct access with ogrinfo or MapServer. The only think I can think to be careful of is to apply XML escaping for an characters likely to be special in your connect info. For instance if there is an angle bracket in it, you would need to replace this with < or >. I don't believe the "TNS" aspect will be any different through VRT or more directly. It is more likely that the initial connect is failing due to some corruption in the connect info and then the OCI libraries are falling back to the TNS mechanism, that fails and that is the error that is reported. PS. This is great news that the new MS4W supports Oracle! Kudo's to Howard and Assefa. 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 OSGF, http://osgeo.org From Jukka.Rahkonen at MMMTIKE.FI Mon Apr 3 05:31:20 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Mon, 3 Apr 2006 15:31:20 +0300 Subject: How to use and interpret DEBUG? Message-ID: Great, thank you very much Bart. Actually that data was already collected on Apache stderror (I am running MS4W) but I just didn't know where to seach for it. Maybe this part of the mapfile reference could be a bit more clear: "DEBUG [on|off] Enables debugging of the map object. Verbose output is generated and sent to the standard error output (STDERR) or the MapServer logfile if one is set using the LOG parameter in the WEB object." It was not obvious for me that the output is sent to standard error output of the Apache server, nor that the MapServer logfile I had set in WEB object did not collect all the data but the most valuable part of that was still sent to Apache log. Anyway, now it works. I think I could post some results of my Tiled-GeoTiff-with-overviews vs. JPEG 2000 speed comparison once I have made a few controlled tests. -Jukka- ________________________________ L?hett?j?: Bart van den Eijnden [mailto:bartvde at xs4all.nl] L?hetetty: ma 3.4.2006 14:38 Vastaanottaja: Rahkonen Jukka Kopio: mapserver-users at lists.umn.edu Aihe: Re: [UMN_MAPSERVER-USERS] How to use and interpret DEBUG? The log file is more like an access log file and not very useful for what you want to do. To use debugging info, make sure: 1) Mapserver is compiled with MSDEBUG (check mapserv -v) 2) Your CGI knows where to log debug info, for Apache use: SetEnv MS_ERRORFILE "stderr" in the httpd.conf so that debug info gets into the Apache error log, for IIS use system environment variable named MS_ERRORFILE and restart server machine, you can also log to a file if you make sure your webserver has write access to it 3) in the Apache error log the drawing times will be reported Hope this helps. Best regards, Bart > Hi, > > I got interested in comparing the performance of using tiled geotiffs with > overviews v.s. JPEG 2000 images. So far I have set "DEBUG ON" in map > object, named a logfile in the web object, made two layers from geotiffs > and JPEG 2000s and set "DEBUG ON" for the both. > Now when I send requests to Mapserver I get new lines to logfile, but I do > not know where I should find the time that it takes to render the layer. > Here is an splitted example of the lines I am getting to the log: > > Mon Apr 03 13:08:52 2006, #this is obviously date and time > 2732, # no idea about what this is > 1xx.xx.xx.xxx, # IP address of the requesting computer, I believe > Tifspeedtest, # name defined in the mapfile > 3, # no idea about this, but value seems to be always "3" > 2539375.000000 7220000.000000 2545625.000000 7225000.000000, # > extents of the request > -1.000000 -1.000000, # no idea about these two either > Geotiff , # names of the requested layers > normal execution # the result > > > Now I wonder if this is the way to do this, and if so, then what I should > think about the numbers. I wonder also why I get two lines per request if > I send "&mode=map&layers=Geotiff" request through browser, but nothing at > all if I am sending WMS "GetMap"requests with the browser for the same > layer, even if I do get the map. > > Might there be some good document about using debug available? Those I > have found helped me this far but not any further. > > Regards, > > -Jukka- > > From warmerdam at POBOX.COM Mon Apr 3 06:34:01 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 3 Apr 2006 09:34:01 -0400 Subject: How to use and interpret DEBUG? In-Reply-To: Message-ID: Rahkonen Jukka wrote: > Hi, > > I got interested in comparing the performance of using tiled geotiffs with overviews v.s. JPEG 2000 images. So far I have set "DEBUG ON" in map object, named a logfile in the web object, made two layers from geotiffs and JPEG 2000s and set "DEBUG ON" for the both. > Now when I send requests to Mapserver I get new lines to logfile, but I do not know where I should find the time that it takes to render the layer. Here is an splitted example of the lines I am getting to the log: > > Mon Apr 03 13:08:52 2006, #this is obviously date and time > 2732, # no idea about what this is Jukka, The above is likely the process id. > 1xx.xx.xx.xxx, # IP address of the requesting computer, I believe > Tifspeedtest, # name defined in the mapfile > 3, # no idea about this, but value seems to be always "3" Perhaps the layer index (zero based)? > 2539375.000000 7220000.000000 2545625.000000 7225000.000000, # extents of the request > -1.000000 -1.000000, # no idea about these two either > Geotiff , # names of the requested layers > normal execution # the result > > > Now I wonder if this is the way to do this, and if so, then what I should think about the numbers. I wonder also why I get two lines per request if I send "&mode=map&layers=Geotiff" request through browser, but nothing at all if I am sending WMS "GetMap"requests with the browser for the same layer, even if I do get the map. > > Might there be some good document about using debug available? Those I have found helped me this far but not any further. There is a "layer render time" reported in the debug output but currently this is controlled by the MAP debug flag, not on a per layer basis. So make DEBUG ON on the map and you will get some additional useful timing information. I'm going to change the code in 4.9-cvs so that the layer render time is reported in debug output for layers that have debug turned on (and leaving it so that turning on the map debug reports all layer render times). 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 OSGF, http://osgeo.org From dpinte at ITAE.BE Mon Apr 3 05:41:02 2006 From: dpinte at ITAE.BE (Didrik Pinte) Date: Mon, 3 Apr 2006 14:41:02 +0200 Subject: 4.8 query results problem In-Reply-To: <1144049625.21868.12.camel@geru-itae> Message-ID: Le lundi 03 avril 2006 ? 09:33 +0200, Didrik Pinte a ?crit : > Hi, > > The following layer and template has been defined under a 4.4 server and > works perfectly well. Using it on a 4.8 server, it does work when there > is an empy resultset but it displays nothing when they are results. > > Does anybody know how to debug the problem ? The problem is really > strange, i have nothing in the debug output ... > > Didrik This seems not very interesting according to the answers ;-) BUT it's clear there is a real problem. I've created a very very simple example. One layer configured with some points showing fine and querying fine on a 4.4 server When there is a point selected in the QUERY mode, here is the outputed html file (i've cutted it following the template used): ----------------------------------------------------------------------- Aper?u de cuve Content-type: text/html MapServer Message ----------------------------------------------------------------------- Why is the CLASS TEMPLATE not used, nor the LAYER FOOTER and WEB FOOTER ? I'm going on investigating the problem without some much ideas ... Does somebody else have that kind of problem with Debian/Sid mapserver (4.8.3-1) ? Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 191 bytes Desc: Ceci est une partie de message num?riquement sign?e URL: From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Mon Apr 3 07:06:10 2006 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Doyon, Jean-Francois) Date: Mon, 3 Apr 2006 10:06:10 -0400 Subject: Bug in Mapserver-4.8.3 Message-ID: Did you compile a new version of freetype for use with 4.8.3, or are both versions linking agianst the exact same binary of the freetype library? J.F. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of wbr Sent: April 3, 2006 2:00 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Bug in Mapserver-4.8.3 Hi All, i'm not sure if i had found a bug. We use a application with mapserver and a lot of labeling of streets, citys and so on. I think the labeldrawing in mapserver 4.8.3 is not correct, i have attached 2 pictures where you can see the difference on the cities Braunschweig and Wolfsburg. here the mapfile with the layer definition of cities. LAYER NAME staedte TYPE POINT STATUS DEFAULT MINSCALE 200000 DATA std500_gk3 LABELITEM "STADT_NAME" LABELCACHE on Postlabelcache false CLASSITEM 'STADT_BEV' CLASS expression /1/ NAME 'St?dte > 1000000' COLOR 0 0 0 SYMBOL 'full_circle' SIZE 10 LABEL POSITION LC TYPE TRUETYPE FONT arial-bold COLOR 0 0 0 SIZE 12 ANTIALIAS TRUE OUTLINECOLOR 255 255 255 PARTIALS true END END CLASS expression /3/ MAXSCALE 750000 name 'St?dte > 250000' color 0 0 0 symbol 'full_circle' size 7 label POSITION LC TYPE TRUETYPE FONT arial COLOR 0 0 0 SIZE 9 ANTIALIAS TRUE OUTLINECOLOR 255 255 255 PARTIALS true end END CLASS expression /5/ MAXSCALE 500000 name 'St?dte > 25000' color 0 0 0 symbol 'full_circle' size 6 label POSITION LC TYPE TRUETYPE FONT arial COLOR 0 0 0 SIZE 7 ANTIALIAS TRUE OUTLINECOLOR 255 255 255 PARTIALS true end END END the labels with size less then 9 are correct ?!? Can someone verify this ? Thanks, Wolfgang Brungert -- T-Mobile Deutschland GmbH Program and Budget Management (TRPD13-D) Roddestr. 12 48153 M?nster Phone: +49 251 977 4142 Fax: +49 251 977 4149 email: wolfgang.brungert at t-mobile.de PGP Fingerprint: B3F8 D368 5EEF 3873 3C4F 423C 171E F217 7CA4 3467 From Jukka.Rahkonen at MMMTIKE.FI Mon Apr 3 07:27:21 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Mon, 3 Apr 2006 17:27:21 +0300 Subject: How to use and interpret DEBUG? Message-ID: Hi again, Now I have got some reasonable numbers to Apache log files, but there is still one thing confusing me. For each browser request I am getting two new blocks of data into the logfile. They look otherwise exactly alike, but timing values are not the same. Why do these blocks appear twise and should I add these values together to get the overall response time? For example in the case below, is the total time for GeoTiff thus (total time 1) + (total time 2) = 0.040 + 0.040 s = 0.080 seconds, and for JPEG 2000 0.240 + 0.240 = 0.480 seconds? The times for these two blocks are not always the same even in this case they are. Short explanation about this very first test. I set the map extents in a mapfile to 100 by 100 meters and image size to 200 by 200 pixels that equals to image pixels in my test image with 0.50 metre pixel size. The requested area was somewhere in the middle of the original image of size 10000 by 10000 pixels. The source was in the first case in Geotiff format and in the other case in lossless JPEG 2000. I made the request by browser with mode=map. Please do not look too closely at the numbers yet (well, I guess that now you for sure will...). This case with corresponding number of image screen pixels seems to be extremely favourable for GeoTiff. It might be correct to say that Mapserver in extreme case, which is when source image pixels correspond directly to screen pixels, can perform 6 times better with GeoTiff format than with JPEG 2000 but this has to be verified. Regards, -Jukka- Below is the excerpt of the log file Case geotiff: msDrawRasterLayerLow(Geotiff): entering.\r msDrawGDAL(): src=99,9699,201,201, dst=0,0,200,200\r msDrawGDAL(): red,green,blue,alpha bands = 1,2,3,0\r msDrawMap(): Layer 0 (Geotiff), 0.040s\r msDrawMap(): Drawing Label Cache, 0.000s\r msDrawMap() total time: 0.040s\r msDrawRasterLayerLow(Geotiff): entering.\r msDrawGDAL(): src=99,9699,201,201, dst=0,0,200,200\r msDrawGDAL(): red,green,blue,alpha bands = 1,2,3,0\r msDrawMap(): Layer 0 (Geotiff), 0.040s\r msDrawMap(): Drawing Label Cache, 0.000s\r msDrawMap() total time: 0.040s\r Case JPEG 2000: msDrawRasterLayerLow(jp2): entering.\r msDrawGDAL(): src=99,9699,201,201, dst=0,0,200,200\r msDrawGDAL(): red,green,blue,alpha bands = 1,2,3,0\r msDrawMap(): Layer 2 (jp2), 0.240s\r msDrawMap(): Drawing Label Cache, 0.000s\r msDrawMap() total time: 0.240s\r msDrawRasterLayerLow(jp2): entering.\r msDrawGDAL(): src=99,9699,201,201, dst=0,0,200,200\r msDrawGDAL(): red,green,blue,alpha bands = 1,2,3,0\r msDrawMap(): Layer 2 (jp2), 0.240s\r msDrawMap(): Drawing Label Cache, 0.000s\r msDrawMap() total time: 0.240s\r From ed at TOPOZONE.COM Mon Apr 3 07:48:37 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 3 Apr 2006 10:48:37 -0400 Subject: Increase Clarity of WMS Message-ID: Kyle - Well, if you increase the WIDTH and HEIGHT to 512 it will certainly look better - and larger! You are taking a relatively large image and asking MapServer to shrink it down for you for display. I haven't time to decipher all the JavaScript in there, but I suspect your "simply chopping up tiles using ImageMagick" example is actually generating HTML that tells the client browser to stuff an oversized PNG into a smaller IMG tag. Your individual image tiles (from the floorplans/tiles/ directory) are actually much larger images than your http://maps.kylemulka.com/imagemagick/livedude.php displays. Each individual tile is 512x512 pixels, but your final output image is much smaller than that. As a result, the quality of the output image may depend heavily on the browser being used. I think those 512x512 tiles are being displayed in IMG tags with HEIGHT and WIDTH properties set to a smaller value. The browser then squishes the images into the IMG space available. The image you're using is almost a worst-case scenario for MapServer. It's essentially a vector drawing that's been scanned as a raster image. You've got lots of thin lines that easily appear and disappear at different scale levels, depending on how the image is resampled. If you're going to use scanned line art in MapServer, you'll get the best results by producing high-quality resampled versions (ImageMagick is fine) at each specific scale/zoom level you'll want to use. Then force the user to only use one of your preselected zoom levels. Make sure that each image - when displayed - ends up exactly the same size as the original image on your server. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Kyle Mulka Sent: Monday, April 03, 2006 7:30 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Increase Clarity of WMS Here's one of the WMS tiles I'm using. I've tried stretching it using different values for the height and width but nothing I've tried has made it look better or worse. http://kylemulka.com/cgi-bin/mapserv?map=floorplans.map&REQUEST=GetMap&S ERVICE=WMS&VERSION=1.1.1&LAYERS=dude-1&STYLES=&BGCOLOR=0xFFFFFF&TRANSPAR ENT=TRUE&SRS=EPSG:4326&BBOX=-83.7158203125,42.2905166207974,-83.71444702 148438,42.291532494305976&WIDTH=256&HEIGHT=256 -Kyle Josh Livni wrote: > Kyle, > > I could be wrong -- I haven't used a mapserver wms in Google Maps - > but I think your mapserver image may be being squashed a bit. It's a > bit less wide relative to the height/width of your Imagemagick > version. Also the gmap div seems to be a different height/width in the > different versions. > > WMS will happily respond with the exact extent, but perhaps not the > relative height/width you expect, thus 'squashing' the image, which > may be causing the image issues you're seeing. > > You may want to play with this by adding a &height &width to the wms > query, or you could try playing with the div height/width ratios, and > seeing if you get similar results if one is a bit off, as I may be > off-base with this theory. > > -Josh > > Kyle Mulka wrote: > >> I have these very detailed floor plans that I'd like to georeference >> and display through mapserver's WMS sever, however, the clarity of >> the images degrades when it goes through. How can I increase the >> clarity of these floorplans through the WMS? >> >> Here's with mapserver: >> http://maps.kylemulka.com/floorplan-test10.php >> >> Here's without (simply chopping up tiles using Imagemagick) >> http://maps.kylemulka.com/imagemagick/livedude.php >> >> Here's the parts of the map file for just the first floor: >> MAP >> NAME "UofM" >> FONTSET fontset.txt >> PROJECTION >> "init=epsg:4326" >> END >> IMAGETYPE png24 >> EXTENT -83.747063 42.272038 -83.709126 42.297056 SHAPEPATH >> "/umdata/" >> LAYER >> NAME "dude-1" >> TYPE raster >> DATA "dude1.tif" >> PROCESSING "RESAMPLE=AVERAGE" >> PROCESSING "DITHER=YES" >> METADATA >> "wms_title" "dude-1" >> "wms_onlineresource" >> "http://kylemulka.com/cgi-bin/mapserv?map=floorplans.map&" >> "wms_srs" "EPSG:4326" >> END >> STATUS ON >> END >> END >> >> -Kyle > > > > > From listuser at HERZSYS.DE Mon Apr 3 08:18:45 2006 From: listuser at HERZSYS.DE (listuser HH) Date: Mon, 3 Apr 2006 17:18:45 +0200 Subject: OGR and oracle (MS4W 1.5) In-Reply-To: <44312326.8040906@pobox.com> Message-ID: Frank Warmerdam wrote: > listuser HH wrote: > >> Hi all, >> >> I started to test the new ms4w package - I like it. I tried the >> oracle connection with mapserver and ogr - both work fine. >> >> The next thing I wanted to test was a ogr VRT with points from a x / >> y table. I get the message: ORA-12514: TNS:listener does not >> currently know of service requested in connect descriptor in >> . In the .ovf file I use the same connection like in the >> mapfile before (OCI:usr/pwd@//serverIp:port/dbName). I have to say >> that I don't use a TNS because the oracle instant client don't have a >> tnsnames.ora file and I wasn't sure where to put one. I hoped that >> this will not be necessary since the other connections work. Has >> anyone a hint? > > > Norbert, > > You should be able to put the same thing in your element > in the VRT file that you would normally use as the datasource name when > doing direct access with ogrinfo or MapServer. The only think I can > think to be careful of is to apply XML escaping for an characters likely > to be special in your connect info. For instance if there is an angle > bracket in it, you would need to replace this with < or >. > > I don't believe the "TNS" aspect will be any different through VRT or > more directly. It is more likely that the initial connect is failing > due to some corruption in the connect info and then the OCI libraries are > falling back to the TNS mechanism, that fails and that is the error that > is reported. > > PS. This is great news that the new MS4W supports Oracle! Kudo's to > Howard and Assefa. > > Best regards, Hi Frank, thanks for the answer. You are right something in the connection is failing. I used SrcLayer for the data source definition - when I use SrcSQL with a "select * .." it works. Shouldn't SrcLayer work too or have I overlooked something? Best regards Norbert From warmerdam at POBOX.COM Mon Apr 3 09:29:07 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 3 Apr 2006 12:29:07 -0400 Subject: OGR and oracle (MS4W 1.5) In-Reply-To: <44313CD5.2040900@herzsys.de> Message-ID: listuser HH wrote: > Hi Frank, > > thanks for the answer. You are right something in the connection is > failing. I used SrcLayer for the data source definition - when I use > SrcSQL with a "select * .." it works. Norbert, The datasource definition (OCI:...) should go in the SrcDataSource tag. The SrcLayer should contain the name of the table you wish to operate on. You might want to use ogrinfo against the datasource to ensure that you are using the right name for the layer (table) as it might contain prefixes. 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 OSGF, http://osgeo.org From listuser at HERZSYS.DE Mon Apr 3 08:51:34 2006 From: listuser at HERZSYS.DE (listuser HH) Date: Mon, 3 Apr 2006 17:51:34 +0200 Subject: OGR and oracle (MS4W 1.5) In-Reply-To: <44314D53.5090605@pobox.com> Message-ID: Frank Warmerdam wrote: > listuser HH wrote: > >> Hi Frank, >> >> thanks for the answer. You are right something in the connection is >> failing. I used SrcLayer for the data source definition - when I use >> SrcSQL with a "select * .." it works. > > > Norbert, > > The datasource definition (OCI:...) should go in the SrcDataSource tag. > The SrcLayer should contain the name of the table you wish to operate on. > You might want to use ogrinfo against the datasource to ensure that you > are using the right name for the layer (table) as it might contain > prefixes. > > Best regards, Hi again, I tried it like that. When I used orginfo on the datasource only one table was shown. This was the table which has sdo geometry. Here is my .ovf content for the x/y data table: OCI:[..] strassennetz.tmp_vw_netzknoten wkbPoint EPSG:31467 This produced the TNS problem. After that I changed SrcLayer to SrcSQL and added "select * from" and it worked. Thanks and best regards, Norbert From listuser at HERZSYS.DE Mon Apr 3 08:59:44 2006 From: listuser at HERZSYS.DE (listuser HH) Date: Mon, 3 Apr 2006 17:59:44 +0200 Subject: ms4w 1.5 -> filled symbols bleed at edge of map Message-ID: Hi all, one or two weeks ago there was a problem with a symbol that "bleeds". I just saw the same effect in the ms4w 1.5 package. A filled ellipse symbol with a line on the edge of the map. Best regards Norbert -------------- next part -------------- A non-text attachment was scrubbed... Name: bleeding_symbol.png Type: image/png Size: 1783 bytes Desc: not available URL: From lehrs at ERAU.EDU Mon Apr 3 09:13:25 2006 From: lehrs at ERAU.EDU (Steven Lehr) Date: Mon, 3 Apr 2006 12:13:25 -0400 Subject: Custom Stand Alone Application - installable on Windows Boxes In-Reply-To: <423A8F7D.4000703@yahoo.com.tw> Message-ID: Hello all: I have a client who would like to install a mapping application on a windows box, so that he can sell it to customers with his proprietary layers. They accumulate special layers, and sell the layer the data with a viewer. We are wondering how we could do a light weight install on windows. I know I can grab the mapserver binaries, but I'm looking for a programming environment too, that will allow us to use the mapserver binaries. Maybe something similar to using php/perl where you call the DLL, but I don't want the customer to have to do a full PHP/perl install on their box to make this work. The features they are looking for are simple: Query attributes Pan and zoom to attributes Show X, Y location of cursor Print Map I'm a little na?ve in my programming, thinking about installing a webserver, scripting language, database, mapserver as you would for a server. We'd like to put into a self extracting zip file to download and install, and perhaps run a few tests and email us back feedback to confirm installation correctness. Can I get your thoughts on installations, and if someone has a product out there, don't be shy to email me directly as say that I've got this it will be $x. Thanks Steve Lehr From warmerdam at POBOX.COM Mon Apr 3 10:14:36 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 3 Apr 2006 13:14:36 -0400 Subject: OGR and oracle (MS4W 1.5) In-Reply-To: <44314486.2030205@herzsys.de> Message-ID: listuser HH wrote: > Frank Warmerdam wrote: > >> listuser HH wrote: >> >>> Hi Frank, >>> >>> thanks for the answer. You are right something in the connection is >>> failing. I used SrcLayer for the data source definition - when I use >>> SrcSQL with a "select * .." it works. >> >> >> Norbert, >> >> The datasource definition (OCI:...) should go in the SrcDataSource tag. >> The SrcLayer should contain the name of the table you wish to operate on. >> You might want to use ogrinfo against the datasource to ensure that you >> are using the right name for the layer (table) as it might contain >> prefixes. >> >> Best regards, > > Hi again, > > I tried it like that. When I used orginfo on the datasource only one > table was shown. This was the table which has sdo geometry. > > Here is my .ovf content for the x/y data table: > > > > OCI:[..] > strassennetz.tmp_vw_netzknoten > wkbPoint > EPSG:31467 > y="KOORDINATE_Y"/> > > > > This produced the TNS problem. After that I changed SrcLayer to SrcSQL > and added "select * from" and it worked. Norbert, Hmm, I have no idea why this would give you the TNS issue (assuming thee are no XML escaping issues). However, if strassennetz.tmp_vw_netzknoten isn't listed as a layer name when you do "ogrinfo OCI:[..]" then it won't be available for SrcLayer. If there are any spatial tables in Oracle, then the OCI driver will only treat spatial tables as layers. If there are none, I think all non-spatial tables will be treated as layer. I believe there is a way of encoding a specific list of tables to treat as layers in the datasource name. Check the OCI driver page. I only press on this issue because there are performance and "correctness" issues with using SrcSQL. So it should be avoided unless it is needed. 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 OSGF, http://osgeo.org From bartvde at XS4ALL.NL Mon Apr 3 10:02:50 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Mon, 3 Apr 2006 19:02:50 +0200 Subject: Custom Stand Alone Application - installable on Windows Boxes In-Reply-To: Message-ID: Hi, maybe the .NET bindings would be your best bet, but I have no experience with them. In a similar sitution last year, the company I used to work for decided to go for something called TatukGIS: http://www.tatukgis.com/Home/home.aspx I can highly recommend that as a desktop solution, and it's affordable, also no deployment license. Best regards, Bart Steven Lehr wrote: >Hello all: > >I have a client who would like to install a mapping application on a windows >box, so that he can sell it to customers with his proprietary layers. They >accumulate special layers, and sell the layer the data with a viewer. > >We are wondering how we could do a light weight install on windows. I know >I can grab the mapserver binaries, but I'm looking for a programming >environment too, that will allow us to use the mapserver binaries. > >Maybe something similar to using php/perl where you call the DLL, but I >don't want the customer to have to do a full PHP/perl install on their box >to make this work. > >The features they are looking for are simple: > >Query attributes >Pan and zoom to attributes >Show X, Y location of cursor >Print Map > >I'm a little na?ve in my programming, thinking about installing a webserver, >scripting language, database, mapserver as you would for a server. > >We'd like to put into a self extracting zip file to download and install, >and perhaps run a few tests and email us back feedback to confirm >installation correctness. > >Can I get your thoughts on installations, and if someone has a product out >there, don't be shy to email me directly as say that I've got this it will >be $x. > >Thanks >Steve Lehr > > > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From jmckenna at DMSOLUTIONS.CA Mon Apr 3 10:40:33 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Mon, 3 Apr 2006 13:40:33 -0400 Subject: ms4w 1.5 -> filled symbols bleed at edge of map In-Reply-To: <44314670.2020904@herzsys.de> Message-ID: Can you possibly report this in the MapServer bug report that you refer to (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1725)? Mention your MapServer version (4.8.3) in it, and they will probably ask you for a simplified test case (data and mapfile). thanks. jeff listuser HH wrote: > Hi all, > > one or two weeks ago there was a problem with a symbol that "bleeds". I > just saw the same effect in the ms4w 1.5 package. A filled ellipse > symbol with a line on the edge of the map. > > Best regards > > Norbert > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From David.Fawcett at STATE.MN.US Mon Apr 3 12:11:17 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Mon, 3 Apr 2006 14:11:17 -0500 Subject: MySQL OGR VRT Message-ID: I am attempting to use MySQL as the datasource for a simple point layer. I am using MapServer 4.6.1 (gdal 1.3.1). Here is my .ovf file: MYSQL:aqiTest,user=xxx,password=xx,host=192.168.1.100,por t=3306,tables=testdata testdata When I use ogrinfo (gdal 1.3.1) directly on the .ovf file, it shows me layer with nine point features in it. When I try to use it within MapServer, I get the error: msDrawMap(): Image handling error. Failed to draw layer named 'MyAqi'. msOGRFileOpen(): OGR error. Open failed for OGR connection `aqidata.ovf'. Failed to open datasource `MYSQL:aqiTest,user=xxx,password=xx,host=192.168.1.100,port=3306,tables= testdata'. Here is the layer definition: (I have tried it with and without the DATA line) LAYER NAME MyAqi STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "aqidata.ovf" DATA "testdata" TRANSPARENCY 30 CLASS NAME "None" STYLE SYMBOL 'circle' SIZE 15 COLOR 0 255 0 END END END I have searched the archives, but can't find anything that fits exactly. Any ideas? David. PS. Many thanks to Frank for some preliminary help. From richard.noyes at COLORADO.EDU Mon Apr 3 13:16:16 2006 From: richard.noyes at COLORADO.EDU (Richard Noyes) Date: Mon, 3 Apr 2006 14:16:16 -0600 Subject: plotting data points from spread sheet Message-ID: New user here with a VERY basic question. I am learning mapserver and openev using O'Reilly text "Web Mapping Illustrated". I have an excel spread sheet with long/lat point data with various biological attributes that I would like to map. Is there a simple protocol for importing this type of data for viewing it on a map? It is likely that I have overlooked or am not understanding something basic, so any assistance would be greatly appreciated. Thanks, Rick Richard D. Noyes Department of EBIO University of Colorado Boulder, CO 80309 richard.noyes at colorado.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Mon Apr 3 14:26:18 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 3 Apr 2006 17:26:18 -0400 Subject: MySQL OGR VRT In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD55D08CD@s-sp22.pca.state.mn.us> Message-ID: Fawcett, David wrote: > > Any ideas? David, My stock concerns would be: o Is there a permissions issue with the web user? Try the map with shp2img. If it works there the problem is likely the user environment of the web user. o Are you really really really sure you are using the same GDAL DLLs (or shared libraries) in both situations. You would be surprised how easy it is to have multiple versions on your system and not be using the one you think you are! 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 OSGF, http://osgeo.org From work at XWB.COM Mon Apr 3 13:33:31 2006 From: work at XWB.COM (Chip Taylor) Date: Mon, 3 Apr 2006 13:33:31 -0700 Subject: Tiling shapefiles Message-ID: I am running Mapserver 4.6 on Windows using IIS. The data presently focuses on the United states. I have a single mapfile that contains the layers to be rendered. The majority of my data is in ESRI Shapefile format. Most of the data is in national datasets. However, some data is only available by state or county. For example, the hydro data is national but pipeline data is by state. How would I most efficiently organize the state data so that the mapserver can seamlessly display the data when the geo extents allow? Is there a tutorial somewhere on tiling shapefile data? Chip Taylor -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Mon Apr 3 13:52:16 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 3 Apr 2006 16:52:16 -0400 Subject: Tiling shapefiles In-Reply-To: <051301c6575d$dfdcea90$0601a8c0@DevChip> Message-ID: Chip Taylor wrote: > I am running Mapserver 4.6 on Windows using IIS. The data presently > focuses on the United states. I have a single mapfile that contains the > layers to be rendered. The majority of my data is in ESRI Shapefile > format. Most of the data is in national datasets. However, some data > is only available by state or county. For example, the hydro data is > national but pipeline data is by state. How would I most efficiently > organize the state data so that the mapserver can seamlessly display the > data when the geo extents allow? Is there a tutorial somewhere on > tiling shapefile data? Chip, You can organize it any way you want, for example by state, by layer, by vendor, etc. The trick is to get all the files for a given layer into a metafile that can be used to create the tileindex. pipeline-meta.txt -------------------------- al/pipeline.shp ak/pipeline.shp etc -or- pipeline/al.shp pipeline/ak.shp etc then: tile4ms pipeline-meta.txt pipeline-tile shptree pipeline-tile and you in your mapfile TILEINDEX "pipeline-tile" -Steve W From jmckenna at DMSOLUTIONS.CA Mon Apr 3 13:55:09 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Mon, 3 Apr 2006 16:55:09 -0400 Subject: Tiling shapefiles In-Reply-To: <051301c6575d$dfdcea90$0601a8c0@DevChip> Message-ID: for tile4ms check out the examples in http://mapserver.gis.umn.edu/docs/reference/utilityreference/tile4ms/ jeff Chip Taylor wrote: > Is there a tutorial somewhere on tiling shapefile data? > > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From David.Fawcett at STATE.MN.US Mon Apr 3 14:02:26 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Mon, 3 Apr 2006 16:02:26 -0500 Subject: MySQL OGR VRT Message-ID: I don't think that it is a permissions issue. I tried it against shp2img on my local machine and and it doesn't work there either. This shp2img is from the same FWtools build as the ogrinfo that produced apparently valid results. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Frank Warmerdam Sent: Monday, April 03, 2006 4:26 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MySQL OGR VRT Fawcett, David wrote: > > Any ideas? David, My stock concerns would be: o Is there a permissions issue with the web user? Try the map with shp2img. If it works there the problem is likely the user environment of the web user. o Are you really really really sure you are using the same GDAL DLLs (or shared libraries) in both situations. You would be surprised how easy it is to have multiple versions on your system and not be using the one you think you are! 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 OSGF, http://osgeo.org From Russ.Bradford at CSIRO.AU Mon Apr 3 16:31:46 2006 From: Russ.Bradford at CSIRO.AU (Russ Bradford) Date: Tue, 4 Apr 2006 09:31:46 +1000 Subject: plotting data points from spread sheet Message-ID: Hi Rick, have a look at the "VirtualSpatialData (ODBC/OVF) section in appendix B of "Web Mapping Illustrated" - especially pages 320 and 321. They go through some of the steps for viewing flat files. Cheers, Russ. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Richard Noyes Sent: Tuesday, 4 April 2006 6:16 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] plotting data points from spread sheet New user here with a VERY basic question. I am learning mapserver and openev using O'Reilly text "Web Mapping Illustrated". I have an excel spread sheet with long/lat point data with various biological attributes that I would like to map. Is there a simple protocol for importing this type of data for viewing it on a map? It is likely that I have overlooked or am not understanding something basic, so any assistance would be greatly appreciated. Thanks, Rick Richard D. Noyes Department of EBIO University of Colorado Boulder, CO 80309 richard.noyes at colorado.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: From b.vdeijnden at AGI.RWS.MINVENW.NL Mon Apr 3 22:07:06 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Tue, 4 Apr 2006 07:07:06 +0200 Subject: MySQL OGR VRT Message-ID: Hi David, I might have pointed you in the wrong direction wrt DATA before, looking at your example I think it should be the name of the OGRVRTLayer and not the name of the table, so: DATA "aqidata" Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Fawcett, David Verzonden: maandag 3 april 2006 21:11 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] MySQL OGR VRT I am attempting to use MySQL as the datasource for a simple point layer. I am using MapServer 4.6.1 (gdal 1.3.1). Here is my .ovf file: MYSQL:aqiTest,user=xxx,password=xx,host=192.168.1.100,por t=3306,tables=testdata testdata When I use ogrinfo (gdal 1.3.1) directly on the .ovf file, it shows me layer with nine point features in it. When I try to use it within MapServer, I get the error: msDrawMap(): Image handling error. Failed to draw layer named 'MyAqi'. msOGRFileOpen(): OGR error. Open failed for OGR connection `aqidata.ovf'. Failed to open datasource `MYSQL:aqiTest,user=xxx,password=xx,host=192.168.1.100,port=3306,tables= testdata'. Here is the layer definition: (I have tried it with and without the DATA line) LAYER NAME MyAqi STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "aqidata.ovf" DATA "testdata" TRANSPARENCY 30 CLASS NAME "None" STYLE SYMBOL 'circle' SIZE 15 COLOR 0 255 0 END END END I have searched the archives, but can't find anything that fits exactly. Any ideas? David. PS. Many thanks to Frank for some preliminary help. Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From wbr at DETEMOBIL.DE Mon Apr 3 22:18:42 2006 From: wbr at DETEMOBIL.DE (wbr) Date: Tue, 4 Apr 2006 07:18:42 +0200 Subject: Bug in Mapserver-4.8.3 In-Reply-To: <7CDD7B94357FD5119E800002A537C46E0B8B7E72@s5-ccr-r1.ccrs.nrcan.gc.ca> Message-ID: Doyon, Jean-Francois schrieb: > Did you compile a new version of freetype for use with 4.8.3, or are both > versions linking agianst the exact same binary of the freetype library? > > J.F. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of wbr > Sent: April 3, 2006 2:00 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Bug in Mapserver-4.8.3 > > Hi All, > > i'm not sure if i had found a bug. We use a application with mapserver and a > lot of labeling of streets, citys and so on. > > I think the labeldrawing in mapserver 4.8.3 is not correct, i have attached > 2 pictures where you can see the difference on the cities Braunschweig and > Wolfsburg. > > here the mapfile with the layer definition of cities. > > LAYER > NAME staedte > TYPE POINT > STATUS DEFAULT > MINSCALE 200000 > DATA std500_gk3 > LABELITEM "STADT_NAME" > LABELCACHE on > Postlabelcache false > > CLASSITEM 'STADT_BEV' > CLASS > expression /1/ > NAME 'St?dte > 1000000' > COLOR 0 0 0 > SYMBOL 'full_circle' > SIZE 10 > LABEL > POSITION LC > TYPE TRUETYPE > FONT arial-bold > COLOR 0 0 0 > SIZE 12 > ANTIALIAS TRUE > OUTLINECOLOR 255 255 255 > PARTIALS true > END > END > CLASS > expression /3/ > MAXSCALE 750000 > name 'St?dte > 250000' > color 0 0 0 > symbol 'full_circle' > size 7 > label > POSITION LC > TYPE TRUETYPE > FONT arial > COLOR 0 0 0 > SIZE 9 > ANTIALIAS TRUE > OUTLINECOLOR 255 255 255 > PARTIALS true > end > END > CLASS > expression /5/ > MAXSCALE 500000 > name 'St?dte > 25000' > color 0 0 0 > symbol 'full_circle' > size 6 > label > POSITION LC > TYPE TRUETYPE > FONT arial > COLOR 0 0 0 > SIZE 7 > ANTIALIAS TRUE > OUTLINECOLOR 255 255 255 > PARTIALS true > end > END > END > > the labels with size less then 9 are correct ?!? > > Can someone verify this ? > > Thanks, > Wolfgang Brungert > -- > T-Mobile Deutschland GmbH > Program and Budget Management > (TRPD13-D) > Roddestr. 12 > 48153 M?nster > > Phone: +49 251 977 4142 > Fax: +49 251 977 4149 > email: wolfgang.brungert at t-mobile.de > PGP Fingerprint: B3F8 D368 5EEF 3873 3C4F 423C 171E F217 7CA4 3467 > > it is the same library for both (freetype-2.1.4-4.0, freetype-devel-2.1.4-4.0) Wolfgang Brungert -- T-Mobile Deutschland GmbH Program and Budget Management (TRPD13-D) Roddestr. 12 48153 M?nster Phone: +49 251 977 4142 Fax: +49 251 977 4149 email: wolfgang.brungert at t-mobile.de PGP Fingerprint: B3F8 D368 5EEF 3873 3C4F 423C 171E F217 7CA4 3467 From mulka at UMICH.EDU Mon Apr 3 23:09:23 2006 From: mulka at UMICH.EDU (Kyle Mulka) Date: Tue, 4 Apr 2006 02:09:23 -0400 Subject: Increase Clarity of WMS In-Reply-To: <4BF377919225F449BB097CB76FFE9BC83DDB13@ptolemy.topozone.com> Message-ID: I'm pretty sure that all the tile images are in fact 256x256 and are being rended that way by the browser. Do have a specific example of one that's not like? Either generated by the javascript, or a tile in that folder? Tools->Page Info->Media in Firefox will tell you what images are currently loaded, including those loaded dynamically with javascript. I'm thinking that I might have to use Google Maps itself to do georeferencing. That way I can limit, or even eliminate the amount of scaling and resampling that mapserver has to do. I'll give it a try next week when I have some time. If someone has already done some georeferencing with Google Maps and mapsever, let me know. Thanks, -Kyle Ed McNierney wrote: >Kyle - > >Well, if you increase the WIDTH and HEIGHT to 512 it will certainly look >better - and larger! > >You are taking a relatively large image and asking MapServer to shrink >it down for you for display. I haven't time to decipher all the >JavaScript in there, but I suspect your "simply chopping up tiles using >ImageMagick" example is actually generating HTML that tells the client >browser to stuff an oversized PNG into a smaller IMG tag. Your >individual image tiles (from the floorplans/tiles/ directory) are >actually much larger images than your >http://maps.kylemulka.com/imagemagick/livedude.php displays. Each >individual tile is 512x512 pixels, but your final output image is much >smaller than that. > >As a result, the quality of the output image may depend heavily on the >browser being used. I think those 512x512 tiles are being displayed in >IMG tags with HEIGHT and WIDTH properties set to a smaller value. The >browser then squishes the images into the IMG space available. > >The image you're using is almost a worst-case scenario for MapServer. >It's essentially a vector drawing that's been scanned as a raster image. >You've got lots of thin lines that easily appear and disappear at >different scale levels, depending on how the image is resampled. > >If you're going to use scanned line art in MapServer, you'll get the >best results by producing high-quality resampled versions (ImageMagick >is fine) at each specific scale/zoom level you'll want to use. Then >force the user to only use one of your preselected zoom levels. Make >sure that each image - when displayed - ends up exactly the same size as >the original image on your server. > > - Ed > >Ed McNierney >President and Chief Mapmaker >TopoZone.com / Maps a la carte, Inc. >73 Princeton Street, Suite 305 >North Chelmsford, MA 01863 >ed at topozone.com >(978) 251-4242 > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >Behalf Of Kyle Mulka >Sent: Monday, April 03, 2006 7:30 AM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] Increase Clarity of WMS > >Here's one of the WMS tiles I'm using. I've tried stretching it using >different values for the height and width but nothing I've tried has >made it look better or worse. >http://kylemulka.com/cgi-bin/mapserv?map=floorplans.map&REQUEST=GetMap&S >ERVICE=WMS&VERSION=1.1.1&LAYERS=dude-1&STYLES=&BGCOLOR=0xFFFFFF&TRANSPAR >ENT=TRUE&SRS=EPSG:4326&BBOX=-83.7158203125,42.2905166207974,-83.71444702 >148438,42.291532494305976&WIDTH=256&HEIGHT=256 > >-Kyle > >Josh Livni wrote: > > >>Kyle, >> >>I could be wrong -- I haven't used a mapserver wms in Google Maps - >>but I think your mapserver image may be being squashed a bit. It's a >>bit less wide relative to the height/width of your Imagemagick >>version. Also the gmap div seems to be a different height/width in the >> >> > > > >>different versions. >> >>WMS will happily respond with the exact extent, but perhaps not the >>relative height/width you expect, thus 'squashing' the image, which >>may be causing the image issues you're seeing. >> >>You may want to play with this by adding a &height &width to the wms >>query, or you could try playing with the div height/width ratios, and >>seeing if you get similar results if one is a bit off, as I may be >>off-base with this theory. >> >> -Josh >> >>Kyle Mulka wrote: >> >> >> >>>I have these very detailed floor plans that I'd like to georeference >>>and display through mapserver's WMS sever, however, the clarity of >>>the images degrades when it goes through. How can I increase the >>>clarity of these floorplans through the WMS? >>> >>>Here's with mapserver: >>>http://maps.kylemulka.com/floorplan-test10.php >>> >>>Here's without (simply chopping up tiles using Imagemagick) >>>http://maps.kylemulka.com/imagemagick/livedude.php >>> >>>Here's the parts of the map file for just the first floor: >>>MAP >>>NAME "UofM" >>> FONTSET fontset.txt >>> PROJECTION >>> "init=epsg:4326" >>> END >>>IMAGETYPE png24 >>>EXTENT -83.747063 42.272038 -83.709126 42.297056 SHAPEPATH >>>"/umdata/" >>>LAYER >>> NAME "dude-1" >>> TYPE raster >>> DATA "dude1.tif" >>> PROCESSING "RESAMPLE=AVERAGE" >>> PROCESSING "DITHER=YES" >>> METADATA >>> "wms_title" "dude-1" >>> "wms_onlineresource" >>>"http://kylemulka.com/cgi-bin/mapserv?map=floorplans.map&" >>> "wms_srs" "EPSG:4326" >>> END >>> STATUS ON >>>END >>>END >>> >>>-Kyle >>> >>> >> >> >> >> >> > > > > From listuser at HERZSYS.DE Tue Apr 4 00:04:09 2006 From: listuser at HERZSYS.DE (listuser HH) Date: Tue, 4 Apr 2006 09:04:09 +0200 Subject: ms4w 1.5 -> filled symbols bleed at edge of map In-Reply-To: <44315E11.2050808@dmsolutions.ca> Message-ID: Hi Jeff, I searched bugzilla and found this http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1719. I think this is exactly my problem. If I should add something to this bug or the other please let me know. I will try to make a test case if necessary. The mail to this was http://lists.umn.edu/cgi-bin/wa?A2=ind0603&L=mapserver-users&P=R41256&. Best regards, Norbert Jeff McKenna wrote: > Can you possibly report this in the MapServer bug report that you > refer to (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1725)? > Mention your MapServer version (4.8.3) in it, and they will probably > ask you for a simplified test case (data and mapfile). > > thanks. > > jeff > > > listuser HH wrote: > >> Hi all, >> >> one or two weeks ago there was a problem with a symbol that "bleeds". >> I just saw the same effect in the ms4w 1.5 package. A filled ellipse >> symbol with a line on the edge of the map. >> >> Best regards >> >> Norbert >> > > > From dpinte at ITAE.BE Tue Apr 4 00:24:24 2006 From: dpinte at ITAE.BE (Didrik Pinte) Date: Tue, 4 Apr 2006 09:24:24 +0200 Subject: time series querying Message-ID: Hi, Little question about how to implement time series querying. I've some data in a postgis table (ids, date, value). It's a tracking application. When the vehicule moves, it send its id, datetime and some probes values to the database. The client must be able to select a vehicule in the table with a starting date and an ending date. How is the best way to implement this ? [1] using ITEMQUERY and QLAYER, QITEM and QSTRING parameters ? But can I have multiple values in QITEM ? The documentation is not clear on that point. [2] with a WMS layer using time capabilities ? Many thanks for your help. Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 191 bytes Desc: Ceci est une partie de message num?riquement sign?e URL: From listuser at HERZSYS.DE Tue Apr 4 01:33:44 2006 From: listuser at HERZSYS.DE (listuser HH) Date: Tue, 4 Apr 2006 10:33:44 +0200 Subject: OGR and oracle (MS4W 1.5) In-Reply-To: <443157FC.2050500@pobox.com> Message-ID: Frank Warmerdam wrote: > listuser HH wrote: > >> Frank Warmerdam wrote: >> >>> listuser HH wrote: >>> >>>> Hi Frank, >>>> >>>> thanks for the answer. You are right something in the connection is >>>> failing. I used SrcLayer for the data source definition - when I >>>> use SrcSQL with a "select * .." it works. >>> >>> >>> >>> Norbert, >>> >>> The datasource definition (OCI:...) should go in the SrcDataSource tag. >>> The SrcLayer should contain the name of the table you wish to >>> operate on. >>> You might want to use ogrinfo against the datasource to ensure that you >>> are using the right name for the layer (table) as it might contain >>> prefixes. >>> >>> Best regards, >> >> >> Hi again, >> >> I tried it like that. When I used orginfo on the datasource only one >> table was shown. This was the table which has sdo geometry. >> >> Here is my .ovf content for the x/y data table: >> >> >> >> OCI:[..] >> strassennetz.tmp_vw_netzknoten >> wkbPoint >> EPSG:31467 >> > y="KOORDINATE_Y"/> >> >> >> >> This produced the TNS problem. After that I changed SrcLayer to >> SrcSQL and added "select * from" and it worked. > > > Norbert, > > Hmm, I have no idea why this would give you the TNS issue (assuming > thee are no XML escaping issues). However, if > strassennetz.tmp_vw_netzknoten > isn't listed as a layer name when you do "ogrinfo OCI:[..]" then it won't > be available for SrcLayer. > > If there are any spatial tables in Oracle, then the OCI driver will > only treat > spatial tables as layers. If there are none, I think all non-spatial > tables > will be treated as layer. > > I believe there is a way of encoding a specific list of tables to > treat as > layers in the datasource name. Check the OCI driver page. I only press > on this issue because there are performance and "correctness" issues with > using SrcSQL. So it should be avoided unless it is needed. > > Best regards, Hi Frank, thanks again for your help. I expected that is better to use SrcLayer. I checked the driver page and I saw that I used ",table" when I tested but it must be ":table". Now the SrcLayer works if I give the table with the datasource. Best regards Norbert From listario at GMAIL.COM Tue Apr 4 02:01:09 2006 From: listario at GMAIL.COM (J. Parapar) Date: Tue, 4 Apr 2006 11:01:09 +0200 Subject: 4.8 query results problem In-Reply-To: <1144068062.21868.55.camel@geru-itae> Message-ID: Hi Didrik I remember there has been some issues with the last realeases of PostgreSQL related to the oid fields (they are not created by default now). Probably this is not the case but taking a look at the PostgreSQL log may help. Best regards, Jorge 2006/4/3, Didrik Pinte : > Le lundi 03 avril 2006 ? 09:33 +0200, Didrik Pinte a ?crit : > > Hi, > > > > The following layer and template has been defined under a 4.4 server and > > works perfectly well. Using it on a 4.8 server, it does work when there > > is an empy resultset but it displays nothing when they are results. > > > > Does anybody know how to debug the problem ? The problem is really > > strange, i have nothing in the debug output ... > > > > Didrik > > This seems not very interesting according to the answers ;-) BUT > > it's clear there is a real problem. > > I've created a very very simple example. One layer configured with some > points showing fine and querying fine on a 4.4 server > > When there is a point selected in the QUERY mode, here is the outputed > html file (i've cutted it following the template used): > > ----------------------------------------------------------------------- > > > > > href="../mapserver/css/main.css" /> > > > > Aper?u de cuve > > > > > Content-type: text/html > > > MapServer Message > > > > > ----------------------------------------------------------------------- > > Why is the CLASS TEMPLATE not used, nor the LAYER FOOTER and WEB > FOOTER ? > > I'm going on investigating the problem without some much ideas ... Does > somebody else have that kind of problem with Debian/Sid mapserver > (4.8.3-1) ? > > Didrik > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.2.2 (GNU/Linux) > > iD8DBQBEMRfd9Rlh4Zs4yBMRAqJVAKCQ6oHj0vqF+HOO2Ug0z1llGZTJPACgp+0v > sF7vKsZ0sZGA6+yfNRpJ2gY= > =5RdX > -----END PGP SIGNATURE----- > > > From dpinte at ITAE.BE Tue Apr 4 02:38:12 2006 From: dpinte at ITAE.BE (Didrik Pinte) Date: Tue, 4 Apr 2006 11:38:12 +0200 Subject: 4.8 query results problem In-Reply-To: <4ac992660604040201g9ac064fj99377af3394491bd@mail.gmail.com> Message-ID: Le mardi 04 avril 2006 ? 11:01 +0200, J. Parapar a ?crit : > Hi Didrik > > I remember there has been some issues with the last realeases of > PostgreSQL related to the oid fields (they are not created by default > now). Probably this is not the case but taking a look at the > PostgreSQL log may help. > > Best regards, > Jorge Hi Jorge, Thank you for the help. It is not the case, i've checked that out. When querying a Postgis database without OIDS, you get a wonderful error message signaling the problem. I'm still investigating. Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 191 bytes Desc: Ceci est une partie de message num?riquement sign?e URL: From cavallini at FAUNALIA.IT Tue Apr 4 03:51:15 2006 From: cavallini at FAUNALIA.IT (Paolo Cavallini) Date: Tue, 4 Apr 2006 12:51:15 +0200 Subject: map names Message-ID: Hi all. We're having a problem with a specific installation of mapserver/php mapscript. On one of our servers, the png name is of variable length (16 or 17.3; no obvious pattern is apparent). Possibly as a result of this, we get wrong responses (the browser gets an older map instead of the good one). On two other servers, everything is ok (16.3 characters; the beginning of the file is similar to the timestamp). This appears independent from the mapserver version (4.6 or 4.8). All on Debian testing, installed from packages or compiled). Any help would be greatly appreciated. -- Paolo Cavallini email+jabber: cavallini at faunalia.it www.faunalia.it Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy Tel: (+39)348-3801953 From dpinte at ITAE.BE Tue Apr 4 04:00:31 2006 From: dpinte at ITAE.BE (Didrik Pinte) Date: Tue, 4 Apr 2006 13:00:31 +0200 Subject: time series querying In-Reply-To: <1144135464.5156.13.camel@geru-itae> Message-ID: Le mardi 04 avril 2006 ? 09:24 +0200, Didrik Pinte a ?crit : > > [1] using ITEMQUERY and QLAYER, QITEM and QSTRING parameters ? But can I > have multiple values in QITEM ? The documentation is not clear on that > point. This seems to work fine whith multiple attributes in the QSTRING without any QITEM: &qitem=vehiculeid&qstring=((vehiculeid = 'xcte34') and (tstamp > '01/01/2005') and (tstamp < '02/01/2005')) Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 191 bytes Desc: Ceci est une partie de message num?riquement sign?e URL: From ed at TOPOZONE.COM Tue Apr 4 05:40:44 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 4 Apr 2006 08:40:44 -0400 Subject: Increase Clarity of WMS Message-ID: Kyle - I was looking at images like this one: http://maps.kylemulka.com/imagemagick/floorplans/tiles/dude-1-1-5.png The image itself is indeed 256x256, but your MapServer WMS request is asking for a source area much larger than 256x256 to be rendered into a 256x256 image. The image quality degradation is coming from asking MapServer to resample the source images to a lower output resolution. You can get better quality resampling by using a (slower) tool to preprocess the images. - 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 Kyle Mulka Sent: Tuesday, April 04, 2006 2:09 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Increase Clarity of WMS I'm pretty sure that all the tile images are in fact 256x256 and are being rended that way by the browser. Do have a specific example of one that's not like? Either generated by the javascript, or a tile in that folder? Tools->Page Info->Media in Firefox will tell you what images are currently loaded, including those loaded dynamically with javascript. I'm thinking that I might have to use Google Maps itself to do georeferencing. That way I can limit, or even eliminate the amount of scaling and resampling that mapserver has to do. I'll give it a try next week when I have some time. If someone has already done some georeferencing with Google Maps and mapsever, let me know. Thanks, -Kyle Ed McNierney wrote: >Kyle - > >Well, if you increase the WIDTH and HEIGHT to 512 it will certainly >look better - and larger! > >You are taking a relatively large image and asking MapServer to shrink >it down for you for display. I haven't time to decipher all the >JavaScript in there, but I suspect your "simply chopping up tiles using >ImageMagick" example is actually generating HTML that tells the client >browser to stuff an oversized PNG into a smaller IMG tag. Your >individual image tiles (from the floorplans/tiles/ directory) are >actually much larger images than your >http://maps.kylemulka.com/imagemagick/livedude.php displays. Each >individual tile is 512x512 pixels, but your final output image is much >smaller than that. > >As a result, the quality of the output image may depend heavily on the >browser being used. I think those 512x512 tiles are being displayed in >IMG tags with HEIGHT and WIDTH properties set to a smaller value. The >browser then squishes the images into the IMG space available. > >The image you're using is almost a worst-case scenario for MapServer. >It's essentially a vector drawing that's been scanned as a raster image. >You've got lots of thin lines that easily appear and disappear at >different scale levels, depending on how the image is resampled. > >If you're going to use scanned line art in MapServer, you'll get the >best results by producing high-quality resampled versions (ImageMagick >is fine) at each specific scale/zoom level you'll want to use. Then >force the user to only use one of your preselected zoom levels. Make >sure that each image - when displayed - ends up exactly the same size >as the original image on your server. > > - Ed > >Ed McNierney >President and Chief Mapmaker >TopoZone.com / Maps a la carte, Inc. >73 Princeton Street, Suite 305 >North Chelmsford, MA 01863 >ed at topozone.com >(978) 251-4242 > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] >On Behalf Of Kyle Mulka >Sent: Monday, April 03, 2006 7:30 AM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] Increase Clarity of WMS > >Here's one of the WMS tiles I'm using. I've tried stretching it using >different values for the height and width but nothing I've tried has >made it look better or worse. >http://kylemulka.com/cgi-bin/mapserv?map=floorplans.map&REQUEST=GetMap& >S >ERVICE=WMS&VERSION=1.1.1&LAYERS=dude-1&STYLES=&BGCOLOR=0xFFFFFF&TRANSPA >R >ENT=TRUE&SRS=EPSG:4326&BBOX=-83.7158203125,42.2905166207974,-83.7144470 >2 >148438,42.291532494305976&WIDTH=256&HEIGHT=256 > >-Kyle > >Josh Livni wrote: > > >>Kyle, >> >>I could be wrong -- I haven't used a mapserver wms in Google Maps - >>but I think your mapserver image may be being squashed a bit. It's a >>bit less wide relative to the height/width of your Imagemagick >>version. Also the gmap div seems to be a different height/width in the >> >> > > > >>different versions. >> >>WMS will happily respond with the exact extent, but perhaps not the >>relative height/width you expect, thus 'squashing' the image, which >>may be causing the image issues you're seeing. >> >>You may want to play with this by adding a &height &width to the wms >>query, or you could try playing with the div height/width ratios, and >>seeing if you get similar results if one is a bit off, as I may be >>off-base with this theory. >> >> -Josh >> >>Kyle Mulka wrote: >> >> >> >>>I have these very detailed floor plans that I'd like to georeference >>>and display through mapserver's WMS sever, however, the clarity of >>>the images degrades when it goes through. How can I increase the >>>clarity of these floorplans through the WMS? >>> >>>Here's with mapserver: >>>http://maps.kylemulka.com/floorplan-test10.php >>> >>>Here's without (simply chopping up tiles using Imagemagick) >>>http://maps.kylemulka.com/imagemagick/livedude.php >>> >>>Here's the parts of the map file for just the first floor: >>>MAP >>>NAME "UofM" >>> FONTSET fontset.txt >>> PROJECTION >>> "init=epsg:4326" >>> END >>>IMAGETYPE png24 >>>EXTENT -83.747063 42.272038 -83.709126 42.297056 SHAPEPATH >>>"/umdata/" >>>LAYER >>> NAME "dude-1" >>> TYPE raster >>> DATA "dude1.tif" >>> PROCESSING "RESAMPLE=AVERAGE" >>> PROCESSING "DITHER=YES" >>> METADATA >>> "wms_title" "dude-1" >>> "wms_onlineresource" >>>"http://kylemulka.com/cgi-bin/mapserv?map=floorplans.map&" >>> "wms_srs" "EPSG:4326" >>> END >>> STATUS ON >>>END >>>END >>> >>>-Kyle >>> >>> >> >> >> >> >> > > > > From hgirard at CGQ.QC.CA Tue Apr 4 06:08:15 2006 From: hgirard at CGQ.QC.CA (Hugo Girard) Date: Tue, 4 Apr 2006 09:08:15 -0400 Subject: A bug with mapserver Message-ID: I have host my mapserver application on my web server for a site web. Some problems occurs when i zoom or pan the map. It really strange because i didnt appear always. Visit my application : www.randonneursdusaguenay.qc.ca and clic the option on the left "O? marcher ?" my application will appear. Play with it and see the bug. If someone have an idea of the solution to resolve this problem, tell me plz. J'ai h?berger mon application mapserver sur mon server web pour qu'elle soit accessible pour un site web. Plusieurs erreurs apparaissent lorsque je fais des zooms ou des d?placements dans la carte. (ex. le zoom se bloque a 10, ma l?gende disparait, un bel ?cran blanc apparait, etc). C'est tr?s ?trange car les erreurs n'apparaisse pas de facon r?guli?res. Allez voir mon application : www.randonneursdusaguenay.qc.ca sous l'option "O? marcher?". Jouer avec mon application et vous allez surment constater les erreurs. Si quelqu'un ? une id?e de la solution afin de corriger ce "bug" dites moi le au plus vite svp. Thanks a lot for your help !!! (sorry for my english ;) ) Merci beaucoup pour votre aide !!! Hugo Girard Stagiaire au Centre de g?omatique du Qu?bec, Chicoutimi hgirard at cgq.qc.ca -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Tue Apr 4 06:32:13 2006 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Doyon, Jean-Francois) Date: Tue, 4 Apr 2006 09:32:13 -0400 Subject: Bug in Mapserver-4.8.3 Message-ID: Hmmm, and what about GD? Also, make sure you use "ldd /path/to/executable" to verify things, don't just rely on which packages you have installed, just in case. J.F. -----Original Message----- From: wbr [mailto:wbr at detemobil.de] Sent: April 4, 2006 1:19 AM To: Doyon, Jean-Francois; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Bug in Mapserver-4.8.3 Doyon, Jean-Francois schrieb: > Did you compile a new version of freetype for use with 4.8.3, or are > both versions linking agianst the exact same binary of the freetype library? > > J.F. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On Behalf Of wbr > Sent: April 3, 2006 2:00 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Bug in Mapserver-4.8.3 > > Hi All, > > i'm not sure if i had found a bug. We use a application with mapserver > and a lot of labeling of streets, citys and so on. > > I think the labeldrawing in mapserver 4.8.3 is not correct, i have > attached > 2 pictures where you can see the difference on the cities Braunschweig > and Wolfsburg. > > here the mapfile with the layer definition of cities. > > LAYER > NAME staedte > TYPE POINT > STATUS DEFAULT > MINSCALE 200000 > DATA std500_gk3 > LABELITEM "STADT_NAME" > LABELCACHE on > Postlabelcache false > > CLASSITEM 'STADT_BEV' > CLASS > expression /1/ > NAME 'St?dte > 1000000' > COLOR 0 0 0 > SYMBOL 'full_circle' > SIZE 10 > LABEL > POSITION LC > TYPE TRUETYPE > FONT arial-bold > COLOR 0 0 0 > SIZE 12 > ANTIALIAS TRUE > OUTLINECOLOR 255 255 255 > PARTIALS true > END > END > CLASS > expression /3/ > MAXSCALE 750000 > name 'St?dte > 250000' > color 0 0 0 > symbol 'full_circle' > size 7 > label > POSITION LC > TYPE TRUETYPE > FONT arial > COLOR 0 0 0 > SIZE 9 > ANTIALIAS TRUE > OUTLINECOLOR 255 255 255 > PARTIALS true > end > END > CLASS > expression /5/ > MAXSCALE 500000 > name 'St?dte > 25000' > color 0 0 0 > symbol 'full_circle' > size 6 > label > POSITION LC > TYPE TRUETYPE > FONT arial > COLOR 0 0 0 > SIZE 7 > ANTIALIAS TRUE > OUTLINECOLOR 255 255 255 > PARTIALS true > end > END > END > > the labels with size less then 9 are correct ?!? > > Can someone verify this ? > > Thanks, > Wolfgang Brungert > -- > T-Mobile Deutschland GmbH > Program and Budget Management > (TRPD13-D) > Roddestr. 12 > 48153 M?nster > > Phone: +49 251 977 4142 > Fax: +49 251 977 4149 > email: wolfgang.brungert at t-mobile.de > PGP Fingerprint: B3F8 D368 5EEF 3873 3C4F 423C 171E F217 7CA4 3467 > > it is the same library for both (freetype-2.1.4-4.0, freetype-devel-2.1.4-4.0) Wolfgang Brungert -- T-Mobile Deutschland GmbH Program and Budget Management (TRPD13-D) Roddestr. 12 48153 M?nster Phone: +49 251 977 4142 Fax: +49 251 977 4149 email: wolfgang.brungert at t-mobile.de PGP Fingerprint: B3F8 D368 5EEF 3873 3C4F 423C 171E F217 7CA4 3467 From cavallini at FAUNALIA.IT Tue Apr 4 06:35:35 2006 From: cavallini at FAUNALIA.IT (Paolo Cavallini) Date: Tue, 4 Apr 2006 15:35:35 +0200 Subject: map names Message-ID: Further investigation: - this is related to having mapscript loaded as dl (it works, because pid is always different, and timestamp is correctly updated) or statically in php.ini (does not work, because timestamp is fixed at the time of mapscript loading and obviously pid is always the same; the counter does not resolve the ambiguity). Seems related to bug 1312: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1312 Should the bug be reopened? All the best. pc ===== Hi all. We're having a problem with a specific installation of mapserver/php mapscript. On one of our servers, the png name is of variable length (16 or 17.3; no obvious pattern is apparent). Possibly as a result of this, we get wrong responses (the browser gets an older map instead of the good one). On two other servers, everything is ok (16.3 characters; the beginning of the file is similar to the timestamp). This appears independent from the mapserver version (4.6 or 4.8). All on Debian testing, installed from packages or compiled). Any help would be greatly appreciated. -- Paolo Cavallini email+jabber: cavallini at faunalia.it www.faunalia.it Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy Tel: (+39)348-3801953 From erick.ferreira at WINGSTELECOM.COM.BR Tue Apr 4 08:19:18 2006 From: erick.ferreira at WINGSTELECOM.COM.BR (Erick Ferreira) Date: Tue, 4 Apr 2006 12:19:18 -0300 Subject: queries Message-ID: Hello, In our current project, we need to write a service layer - a dynamic library in C that exposes some raster utility functions. For that, we are trying to use only the exported mapscript symbols (from libmapscript.so). One of the functions we have to expose in our library is supposed to fetch the raster values of a given layer band that lie on a given line segment described in map coordinates. Map Server 4.8.1 does not support a msRasterQueryByLine() method. Also, even the msRasterQueryByShape() function in fact queries the whole bounding box of the polygon, not the polygon itself. We found that the most obvious top level implementation of our feature would be accomplished by iterating over rasterQueryByPoint() on a Bresenham line-drawing algorithm basis. Our tests proved the performance to be really inappropriate in this implementation, as expected. We would like to share our problem, maybe someone has a good feedback for us. We are also considering extending MapServer ourselves to support msRasterQueryByLine() Thanks, Erick From dovidio at PLANETEK.IT Tue Apr 4 09:02:18 2006 From: dovidio at PLANETEK.IT (Fabio D' Ovidio) Date: Tue, 4 Apr 2006 18:02:18 +0200 Subject: MapServer WFS Message-ID: Hello, I have made a getfeature request to mapserver wfs of a Linear feature .SHP. The dxf file has got only one attribute (TIPOLGIA) and it has returned me this attributte without any namespace just . How can I do to give it a namespace ? ******************************************************************************************** Ing. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any other MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance. ---- File information ----------- File: planetek.gif Date: 28 Feb 2006, 16:15 Size: 1899 bytes. Type: Unknown -------------- next part -------------- A non-text attachment was scrubbed... Name: planetek.gif Type: application/octet-stream Size: 1899 bytes Desc: not available URL: From mulka at UMICH.EDU Tue Apr 4 10:04:55 2006 From: mulka at UMICH.EDU (Kyle Mulka) Date: Tue, 4 Apr 2006 13:04:55 -0400 Subject: Increase Clarity of WMS In-Reply-To: <4BF377919225F449BB097CB76FFE9BC83DDB2B@ptolemy.topozone.com> Message-ID: Would I have to get exactly the correct scale before mapserver touches the file, or would it still improve quality if I got it close. Would I need to do this for each Google zoom level and use mapservers minscale and maxscale? -- Kyle Mulka http://www.kylemulka.com/ Quoting Ed McNierney : > Kyle - > > I was looking at images like this one: > > http://maps.kylemulka.com/imagemagick/floorplans/tiles/dude-1-1-5.png > > The image itself is indeed 256x256, but your MapServer WMS request is > asking for a source area much larger than 256x256 to be rendered into a > 256x256 image. The image quality degradation is coming from asking > MapServer to resample the source images to a lower output resolution. > You can get better quality resampling by using a (slower) tool to > preprocess the images. > > - 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 Kyle Mulka > Sent: Tuesday, April 04, 2006 2:09 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Increase Clarity of WMS > > I'm pretty sure that all the tile images are in fact 256x256 and are > being rended that way by the browser. Do have a specific example of one > that's not like? Either generated by the javascript, or a tile in that > folder? Tools->Page Info->Media in Firefox will tell you what images are > currently loaded, including those loaded dynamically with javascript. > > I'm thinking that I might have to use Google Maps itself to do > georeferencing. That way I can limit, or even eliminate the amount of > scaling and resampling that mapserver has to do. I'll give it a try next > week when I have some time. If someone has already done some > georeferencing with Google Maps and mapsever, let me know. > > Thanks, > > -Kyle > > Ed McNierney wrote: > >> Kyle - >> >> Well, if you increase the WIDTH and HEIGHT to 512 it will certainly >> look better - and larger! >> >> You are taking a relatively large image and asking MapServer to shrink >> it down for you for display. I haven't time to decipher all the >> JavaScript in there, but I suspect your "simply chopping up tiles using > >> ImageMagick" example is actually generating HTML that tells the client >> browser to stuff an oversized PNG into a smaller IMG tag. Your >> individual image tiles (from the floorplans/tiles/ directory) are >> actually much larger images than your >> http://maps.kylemulka.com/imagemagick/livedude.php displays. Each >> individual tile is 512x512 pixels, but your final output image is much >> smaller than that. >> >> As a result, the quality of the output image may depend heavily on the >> browser being used. I think those 512x512 tiles are being displayed in > >> IMG tags with HEIGHT and WIDTH properties set to a smaller value. The >> browser then squishes the images into the IMG space available. >> >> The image you're using is almost a worst-case scenario for MapServer. >> It's essentially a vector drawing that's been scanned as a raster > image. >> You've got lots of thin lines that easily appear and disappear at >> different scale levels, depending on how the image is resampled. >> >> If you're going to use scanned line art in MapServer, you'll get the >> best results by producing high-quality resampled versions (ImageMagick >> is fine) at each specific scale/zoom level you'll want to use. Then >> force the user to only use one of your preselected zoom levels. Make >> sure that each image - when displayed - ends up exactly the same size >> as the original image on your server. >> >> - Ed >> >> Ed McNierney >> President and Chief Mapmaker >> TopoZone.com / Maps a la carte, Inc. >> 73 Princeton Street, Suite 305 >> North Chelmsford, MA 01863 >> ed at topozone.com >> (978) 251-4242 >> >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] >> On Behalf Of Kyle Mulka >> Sent: Monday, April 03, 2006 7:30 AM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] Increase Clarity of WMS >> >> Here's one of the WMS tiles I'm using. I've tried stretching it using >> different values for the height and width but nothing I've tried has >> made it look better or worse. >> http://kylemulka.com/cgi-bin/mapserv?map=floorplans.map&REQUEST=GetMap& >> S >> ERVICE=WMS&VERSION=1.1.1&LAYERS=dude-1&STYLES=&BGCOLOR=0xFFFFFF&TRANSPA >> R >> ENT=TRUE&SRS=EPSG:4326&BBOX=-83.7158203125,42.2905166207974,-83.7144470 >> 2 >> 148438,42.291532494305976&WIDTH=256&HEIGHT=256 >> >> -Kyle >> >> Josh Livni wrote: >> >> >>> Kyle, >>> >>> I could be wrong -- I haven't used a mapserver wms in Google Maps - >>> but I think your mapserver image may be being squashed a bit. It's a >>> bit less wide relative to the height/width of your Imagemagick >>> version. Also the gmap div seems to be a different height/width in the >>> >>> >> >> >> >>> different versions. >>> >>> WMS will happily respond with the exact extent, but perhaps not the >>> relative height/width you expect, thus 'squashing' the image, which >>> may be causing the image issues you're seeing. >>> >>> You may want to play with this by adding a &height &width to the wms >>> query, or you could try playing with the div height/width ratios, and >>> seeing if you get similar results if one is a bit off, as I may be >>> off-base with this theory. >>> >>> -Josh >>> >>> Kyle Mulka wrote: >>> >>> >>> >>>> I have these very detailed floor plans that I'd like to georeference >>>> and display through mapserver's WMS sever, however, the clarity of >>>> the images degrades when it goes through. How can I increase the >>>> clarity of these floorplans through the WMS? >>>> >>>> Here's with mapserver: >>>> http://maps.kylemulka.com/floorplan-test10.php >>>> >>>> Here's without (simply chopping up tiles using Imagemagick) >>>> http://maps.kylemulka.com/imagemagick/livedude.php >>>> >>>> Here's the parts of the map file for just the first floor: >>>> MAP >>>> NAME "UofM" >>>> FONTSET fontset.txt >>>> PROJECTION >>>> "init=epsg:4326" >>>> END >>>> IMAGETYPE png24 >>>> EXTENT -83.747063 42.272038 -83.709126 42.297056 SHAPEPATH >>>> "/umdata/" >>>> LAYER >>>> NAME "dude-1" >>>> TYPE raster >>>> DATA "dude1.tif" >>>> PROCESSING "RESAMPLE=AVERAGE" >>>> PROCESSING "DITHER=YES" >>>> METADATA >>>> "wms_title" "dude-1" >>>> "wms_onlineresource" >>>> "http://kylemulka.com/cgi-bin/mapserv?map=floorplans.map&" >>>> "wms_srs" "EPSG:4326" >>>> END >>>> STATUS ON >>>> END >>>> END >>>> >>>> -Kyle >>>> >>>> >>> >>> >>> >>> >>> >> >> >> >> > > > From ed at TOPOZONE.COM Tue Apr 4 11:07:45 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 4 Apr 2006 14:07:45 -0400 Subject: Increase Clarity of WMS Message-ID: Kyle - There are more image resampling techniques in the world than are supported by MapServer. Resampling the image beforehand gives you the option of choosing the tools and the techniques that work best for your image. If you minimize the amount of resampling MapServer needs to do, you will both improve the performance of your application and improve the quality of the output images. Yes, you should do it for each zoom level and either create image overviews (using gdaladdo) or minscale/maxscale within a GROUP. No, you don't have to be perfect - just get close. Here's an example. This view is a random USGS 1:24,000 scale topo map displayed at full source resolution (what we call "1:24,000" scale, even though it isn't): http://www.topozone.com/map.asp?lat=36.93333&lon=-81.96556&size=l&s=24 There's no resampling going on. If you switch the View Scale to 1:25,000 you'll get this: http://www.topozone.com/map.asp?lat=36.93333&lon=-81.96556&size=l&s=25 That's the same image at 96% (24,000/25,000) of the original size. That is, every 25th row and column of the image is omitted. You can see some image degradation (look carefully at the dashed double purple lines left of center) but it's quite minor. If you're unlucky, single-pixel-wide horizontal and vertical lines can disappear entirely. - 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 Kyle Mulka Sent: Tuesday, April 04, 2006 1:05 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Increase Clarity of WMS Would I have to get exactly the correct scale before mapserver touches the file, or would it still improve quality if I got it close. Would I need to do this for each Google zoom level and use mapservers minscale and maxscale? -- Kyle Mulka http://www.kylemulka.com/ Quoting Ed McNierney : > Kyle - > > I was looking at images like this one: > > http://maps.kylemulka.com/imagemagick/floorplans/tiles/dude-1-1-5.png > > The image itself is indeed 256x256, but your MapServer WMS request is > asking for a source area much larger than 256x256 to be rendered into a > 256x256 image. The image quality degradation is coming from asking > MapServer to resample the source images to a lower output resolution. > You can get better quality resampling by using a (slower) tool to > preprocess the images. > > - 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 Kyle Mulka > Sent: Tuesday, April 04, 2006 2:09 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Increase Clarity of WMS > > I'm pretty sure that all the tile images are in fact 256x256 and are > being rended that way by the browser. Do have a specific example of one > that's not like? Either generated by the javascript, or a tile in that > folder? Tools->Page Info->Media in Firefox will tell you what images are > currently loaded, including those loaded dynamically with javascript. > > I'm thinking that I might have to use Google Maps itself to do > georeferencing. That way I can limit, or even eliminate the amount of > scaling and resampling that mapserver has to do. I'll give it a try next > week when I have some time. If someone has already done some > georeferencing with Google Maps and mapsever, let me know. > > Thanks, > > -Kyle > > Ed McNierney wrote: > >> Kyle - >> >> Well, if you increase the WIDTH and HEIGHT to 512 it will certainly >> look better - and larger! >> >> You are taking a relatively large image and asking MapServer to shrink >> it down for you for display. I haven't time to decipher all the >> JavaScript in there, but I suspect your "simply chopping up tiles using > >> ImageMagick" example is actually generating HTML that tells the client >> browser to stuff an oversized PNG into a smaller IMG tag. Your >> individual image tiles (from the floorplans/tiles/ directory) are >> actually much larger images than your >> http://maps.kylemulka.com/imagemagick/livedude.php displays. Each >> individual tile is 512x512 pixels, but your final output image is much >> smaller than that. >> >> As a result, the quality of the output image may depend heavily on the >> browser being used. I think those 512x512 tiles are being displayed in > >> IMG tags with HEIGHT and WIDTH properties set to a smaller value. The >> browser then squishes the images into the IMG space available. >> >> The image you're using is almost a worst-case scenario for MapServer. >> It's essentially a vector drawing that's been scanned as a raster > image. >> You've got lots of thin lines that easily appear and disappear at >> different scale levels, depending on how the image is resampled. >> >> If you're going to use scanned line art in MapServer, you'll get the >> best results by producing high-quality resampled versions (ImageMagick >> is fine) at each specific scale/zoom level you'll want to use. Then >> force the user to only use one of your preselected zoom levels. Make >> sure that each image - when displayed - ends up exactly the same size >> as the original image on your server. >> >> - Ed >> >> Ed McNierney >> President and Chief Mapmaker >> TopoZone.com / Maps a la carte, Inc. >> 73 Princeton Street, Suite 305 >> North Chelmsford, MA 01863 >> ed at topozone.com >> (978) 251-4242 >> >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] >> On Behalf Of Kyle Mulka >> Sent: Monday, April 03, 2006 7:30 AM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] Increase Clarity of WMS >> >> Here's one of the WMS tiles I'm using. I've tried stretching it using >> different values for the height and width but nothing I've tried has >> made it look better or worse. >> http://kylemulka.com/cgi-bin/mapserv?map=floorplans.map&REQUEST=GetMap& >> S >> ERVICE=WMS&VERSION=1.1.1&LAYERS=dude-1&STYLES=&BGCOLOR=0xFFFFFF&TRANSPA >> R >> ENT=TRUE&SRS=EPSG:4326&BBOX=-83.7158203125,42.2905166207974,-83.7144470 >> 2 >> 148438,42.291532494305976&WIDTH=256&HEIGHT=256 >> >> -Kyle >> >> Josh Livni wrote: >> >> >>> Kyle, >>> >>> I could be wrong -- I haven't used a mapserver wms in Google Maps - >>> but I think your mapserver image may be being squashed a bit. It's a >>> bit less wide relative to the height/width of your Imagemagick >>> version. Also the gmap div seems to be a different height/width in the >>> >>> >> >> >> >>> different versions. >>> >>> WMS will happily respond with the exact extent, but perhaps not the >>> relative height/width you expect, thus 'squashing' the image, which >>> may be causing the image issues you're seeing. >>> >>> You may want to play with this by adding a &height &width to the wms >>> query, or you could try playing with the div height/width ratios, and >>> seeing if you get similar results if one is a bit off, as I may be >>> off-base with this theory. >>> >>> -Josh >>> >>> Kyle Mulka wrote: >>> >>> >>> >>>> I have these very detailed floor plans that I'd like to georeference >>>> and display through mapserver's WMS sever, however, the clarity of >>>> the images degrades when it goes through. How can I increase the >>>> clarity of these floorplans through the WMS? >>>> >>>> Here's with mapserver: >>>> http://maps.kylemulka.com/floorplan-test10.php >>>> >>>> Here's without (simply chopping up tiles using Imagemagick) >>>> http://maps.kylemulka.com/imagemagick/livedude.php >>>> >>>> Here's the parts of the map file for just the first floor: >>>> MAP >>>> NAME "UofM" >>>> FONTSET fontset.txt >>>> PROJECTION >>>> "init=epsg:4326" >>>> END >>>> IMAGETYPE png24 >>>> EXTENT -83.747063 42.272038 -83.709126 42.297056 SHAPEPATH >>>> "/umdata/" >>>> LAYER >>>> NAME "dude-1" >>>> TYPE raster >>>> DATA "dude1.tif" >>>> PROCESSING "RESAMPLE=AVERAGE" >>>> PROCESSING "DITHER=YES" >>>> METADATA >>>> "wms_title" "dude-1" >>>> "wms_onlineresource" >>>> "http://kylemulka.com/cgi-bin/mapserv?map=floorplans.map&" >>>> "wms_srs" "EPSG:4326" >>>> END >>>> STATUS ON >>>> END >>>> END >>>> >>>> -Kyle >>>> >>>> >>> >>> >>> >>> >>> >> >> >> >> > > > From clemens.bertschler at GMAIL.COM Tue Apr 4 11:08:19 2006 From: clemens.bertschler at GMAIL.COM (Keiler) Date: Tue, 4 Apr 2006 11:08:19 -0700 Subject: IIS5 Message-ID: Hy community I am normally working on Apache and the mapserver is running well, but no i want to run my mapscript application on our public server, which is running with IIS 5.0. After configuration of all necessary files. I get the warning message: Unknown(): Unable to load dynamic library './php_mapscript_48.dll' - The specified procedure could not be found. The file ./php_mapscript_48.dll is in the php folder and also in the extension folder and i set the extension_dir = "./" . Maybe someone can help me with this problem. Thanks -- View this message in context: http://www.nabble.com/IIS5-t1394579.html#a3749628 Sent from the Mapserver - User forum at Nabble.com. From bartvde at XS4ALL.NL Tue Apr 4 11:39:55 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Tue, 4 Apr 2006 20:39:55 +0200 Subject: IIS5 In-Reply-To: <3749628.post@talk.nabble.com> Message-ID: Are all the dll's on which the Mapscript dll depends (use a tool like dependency walker) in the path? As an alternative check for the dependencies, put mapserv.exe in the php extension dir and run it in a DOS prompt using mapserv.exe -v. Best regards, Bart Keiler wrote: >Hy community > >I am normally working on Apache and the mapserver is running well, but no i >want to run my mapscript application on our public server, which is running >with IIS 5.0. After configuration of all necessary files. I get the warning >message: >Unknown(): Unable to load dynamic library './php_mapscript_48.dll' - The >specified procedure could not be found. >The file ./php_mapscript_48.dll is in the php folder and also in the >extension folder and i set the extension_dir = "./" . >Maybe someone can help me with this problem. >Thanks > >-- >View this message in context: http://www.nabble.com/IIS5-t1394579.html#a3749628 >Sent from the Mapserver - User forum at Nabble.com. > > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From clemens.bertschler at GMAIL.COM Tue Apr 4 12:38:36 2006 From: clemens.bertschler at GMAIL.COM (Keiler) Date: Tue, 4 Apr 2006 12:38:36 -0700 Subject: IIS5 In-Reply-To: <4432BD7B.2050002@xs4all.nl> Message-ID: Okay, dependency walker is missing the APPHELP.dll, but as i read somewhere this dll is only for WindowsXP . The running of mapserver.exe -v is returning: C:\PHP\extension>mapserv.exe -v MapServer version 4.8.1 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 INPUT =JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG I also set the extension dir to a absolut value: extension_dir = "c:\php\" now he gives back the same warning: Unknown(): Unable to load dynamic library 'C:\php\php_mapscript_48.dll' - The specified procedure could not be found. -- View this message in context: http://www.nabble.com/IIS5-t1394579.html#a3751411 Sent from the Mapserver - User forum at Nabble.com. From clemens.bertschler at GMAIL.COM Tue Apr 4 12:59:55 2006 From: clemens.bertschler at GMAIL.COM (Keiler) Date: Tue, 4 Apr 2006 12:59:55 -0700 Subject: IIS5 In-Reply-To: <3751411.post@talk.nabble.com> Message-ID: As well, when I am going to set the extension dir to "c:\php\extension\" . I tried it on the same system with the complete ms4w package and it run very well, but the system administrator do not want configure all the environment (tomcat,Perl....) depending on the ms4w package. Our actual php version is 4.3.9 Thanks -- View this message in context: http://www.nabble.com/IIS5-t1394579.html#a3751844 Sent from the Mapserver - User forum at Nabble.com. From ierickson at ANALYGIS.COM Tue Apr 4 15:56:29 2006 From: ierickson at ANALYGIS.COM (Ian Erickson) Date: Tue, 4 Apr 2006 15:56:29 -0700 Subject: Adding a layer/Removing a layer - C# Message-ID: Can anyone point me to an example of using MapScript C# that: a) Loads a map b) Adds 2 or 3 *dynamic* layers, classes, and styles c) Disposes of the map and associated layers properly. I've got an example working here - but when more than 1 layerObj is created and added to the map, I get a bunch of mapscriptPINVOKE.delete_classObj or .delete_layerObj errors. Obviously, things are happening in the SWIG interface - like disposing of objects - but it doesn't appear to be working properly. I've attached some sample C# code - perhaps someone can immediately identify my error... //------------------------------------------------------------------------------------------------------- using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; namespace MapScriptMap { /// /// Summary description for MapServerForm. /// public class MapServerForm : System.Windows.Forms.Form { private System.Windows.Forms.PictureBox MapImage; /// /// Required designer variable. /// private System.ComponentModel.Container components = null; private System.Windows.Forms.Button buttonCreatePointLayer; private mapObj msMap = null; private System.Windows.Forms.Button buttonCreateLineLayer; private ArrayList layerIndex = null; public MapServerForm() { // // Required for Windows Form Designer support // InitializeComponent(); InitializeMap(); } private void InitializeMap() { try { this.msMap = new mapObj(@"C:\data\base.map"); this.layerIndex = new ArrayList(0); } catch (Exception e) { Console.WriteLine(e.StackTrace); this.msMap = null; } } private void CreatePointLayer(string layerName) { this.CreatePointLayer(layerName, 7, System.Drawing.Color.FromArgb(0, 192, 0)); } private void CreatePointLayer(string layerName, int symbolSize, System.Drawing.Color color) { if (this.layerExists(layerName)) return; layerObj pointLayer = new layerObj(this.msMap); pointLayer.name = layerName; pointLayer.type = MS_LAYER_TYPE.MS_LAYER_POINT; pointLayer.setProjection("init=epsg:4326"); pointLayer.status = 1; classObj pointClass = new classObj(pointLayer); pointClass.label.type = MS_FONT_TYPE.MS_TRUETYPE; pointClass.label.font = "arial-bold"; pointClass.label.size = 7; pointClass.label.color.setRGB(0,0,0); pointClass.label.position = 2; styleObj pointStyle = new styleObj(pointClass); pointStyle.symbol = 7; pointStyle.antialias = 1; pointStyle.size = symbolSize; pointStyle.color.setRGB((int)color.R,(int)color.G,(int)color.B); pointStyle.outlinecolor.setRGB((int)(color.R / 2),(int)(color.G / 2),(int)(color.B / 2)); Console.WriteLine("Point layer: " + layerName + " added to the map..."); this.layerIndex.Add(layerName); } private void CreateLineLayer(string layerName) { if (this.layerExists(layerName)) return; layerObj lineLayer = new layerObj(this.msMap); lineLayer.name = layerName; lineLayer.type = MS_LAYER_TYPE.MS_LAYER_LINE; lineLayer.setProjection("init=epsg:4326"); lineLayer.transparency = 30; lineLayer.status = 1; classObj lineClass = new classObj(lineLayer); lineClass.label.type = MS_FONT_TYPE.MS_TRUETYPE; lineClass.label.font = "arial-bold"; lineClass.label.size = 7; lineClass.label.color.setRGB(0,0,0); lineClass.label.position = 2; styleObj lineStyle = new styleObj(lineClass); lineStyle.symbol = 7; lineStyle.size = 8; lineStyle.color.setRGB(192,0,192); Console.WriteLine("Line layer: " + layerName + " added to the map..."); this.layerIndex.Add(layerName); } private bool layerExists(string layerName) { if (this.msMap == null) return false; for (int i = 0; i < this.msMap.numlayers; i++) { if (this.msMap.getLayer(i).name.ToUpper() == layerName.ToUpper()) return true; } return false; } private void RemoveLayers() { foreach(string layerName in this.layerIndex) { layerObj l = this.msMap.getLayerByName(layerName); // while (l.numclasses > 0) // { // classObj c = l.getClass(0); // l.removeClass(0); // c.Dispose(); // } this.msMap.removeLayer(l.index); l.Dispose(); } this.layerIndex.Clear(); } private void RenderMap() { if (this.msMap == null) return; msMap.setSize(this.MapImage.Width, this.MapImage.Height); imageObj msImage; try { msImage = msMap.draw(); System.IO.MemoryStream ms = new System.IO.MemoryStream(msImage.getBytes()); Bitmap img = new Bitmap(ms); this.MapImage.Image = img; } catch (Exception e) { Console.WriteLine(e.StackTrace); } } /// /// Clean up any resources being used. /// protected override void Dispose( bool disposing ) { if( disposing ) { if (components != null) { components.Dispose(); } } base.Dispose( disposing ); } #region Windows Form Designer generated code /// /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// private void InitializeComponent() { this.MapImage = new System.Windows.Forms.PictureBox(); this.buttonCreatePointLayer = new System.Windows.Forms.Button(); this.buttonCreateLineLayer = new System.Windows.Forms.Button(); this.SuspendLayout(); // // MapImage // this.MapImage.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.MapImage.Location = new System.Drawing.Point(8, 8); this.MapImage.Name = "MapImage"; this.MapImage.Size = new System.Drawing.Size(272, 248); this.MapImage.TabIndex = 0; this.MapImage.TabStop = false; // // buttonCreatePointLayer // this.buttonCreatePointLayer.Location = new System.Drawing.Point(288, 8); this.buttonCreatePointLayer.Name = "buttonCreatePointLayer"; this.buttonCreatePointLayer.Size = new System.Drawing.Size(176, 23); this.buttonCreatePointLayer.TabIndex = 1; this.buttonCreatePointLayer.Text = "Create Point Layer"; this.buttonCreatePointLayer.Click += new System.EventHandler(this.buttonCreatePointLayer_Click); // // buttonCreateLineLayer // this.buttonCreateLineLayer.Location = new System.Drawing.Point(288, 40); this.buttonCreateLineLayer.Name = "buttonCreateLineLayer"; this.buttonCreateLineLayer.Size = new System.Drawing.Size(176, 23); this.buttonCreateLineLayer.TabIndex = 2; this.buttonCreateLineLayer.Text = "Create Line Layer"; this.buttonCreateLineLayer.Click += new System.EventHandler(this.buttonCreateLineLayer_Click); // // MapServerForm // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(472, 302); this.Controls.Add(this.buttonCreateLineLayer); this.Controls.Add(this.buttonCreatePointLayer); this.Controls.Add(this.MapImage); this.Name = "MapServerForm"; this.Text = "MapServer Map"; this.Closing += new System.ComponentModel.CancelEventHandler(this.MapServerForm_Closing); this.Load += new System.EventHandler(this.MapServerForm_Load); this.ResumeLayout(false); } #endregion /// /// The main entry point for the application. /// [STAThread] static void Main() { Application.Run(new MapServerForm()); } private void MapServerForm_Load(object sender, System.EventArgs e) { this.RenderMap(); } private void buttonCreatePointLayer_Click(object sender, System.EventArgs e) { this.CreatePointLayer("BLAH", 10, System.Drawing.Color.FromArgb(192, 0, 0)); this.RenderMap(); } private void buttonCreateLineLayer_Click(object sender, System.EventArgs e) { this.CreateLineLayer("LINE"); this.RenderMap(); } private void MapServerForm_Closing(object sender, System.ComponentModel.CancelEventArgs e) { // this.RemoveLayers(); // if (this.msMap != null) // this.msMap.Dispose(); // // this.msMap = null; } } } -- Ian Erickson AnalyGIS, LLC Gold Canyon, AZ 85218 http:// www.analygis.com tel: 480.677.6260 mob: 480.221.7173 fax: 480.677.6261 See AnalyGIS at work: http://65.39.85.13/google/ http://65.39.85.13/virtualearth/ From jacob.delfos at MAUNSELL.COM Tue Apr 4 16:37:05 2006 From: jacob.delfos at MAUNSELL.COM (Delfos, Jacob) Date: Wed, 5 Apr 2006 07:37:05 +0800 Subject: A bug with mapserver Message-ID: Hugo, I had a quick look, and noticed the page disappearing. I took that URL, and modified it such that the path to your mapfile has slashes (/), not backslashes (\). After that, the page appeared. I recommend you change your template to have slashes only. As far as I know, there is no need for backslashes anywhere even on windows. Hopefully that will fix it. French: pas \ mais / Best regards, Jacob ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Hugo Girard Sent: 4 April 2006 21:08 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] A bug with mapserver I have host my mapserver application on my web server for a site web. Some problems occurs when i zoom or pan the map. It really strange because i didnt appear always. Visit my application : www.randonneursdusaguenay.qc.ca and clic the option on the left "O? marcher ?" my application will appear. Play with it and see the bug. If someone have an idea of the solution to resolve this problem, tell me plz. J'ai h?berger mon application mapserver sur mon server web pour qu'elle soit accessible pour un site web. Plusieurs erreurs apparaissent lorsque je fais des zooms ou des d?placements dans la carte. (ex. le zoom se bloque a 10, ma l?gende disparait, un bel ?cran blanc apparait, etc). C'est tr?s ?trange car les erreurs n'apparaisse pas de facon r?guli?res. Allez voir mon application : www.randonneursdusaguenay.qc.ca sous l'option "O? marcher?". Jouer avec mon application et vous allez surment constater les erreurs. Si quelqu'un ? une id?e de la solution afin de corriger ce "bug" dites moi le au plus vite svp. Thanks a lot for your help !!! (sorry for my english ;) ) Merci beaucoup pour votre aide !!! Hugo Girard Stagiaire au Centre de g?omatique du Qu?bec, Chicoutimi hgirard at cgq.qc.ca -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill at BINKO.NET Tue Apr 4 16:50:44 2006 From: bill at BINKO.NET (Bill Binko) Date: Tue, 4 Apr 2006 19:50:44 -0400 Subject: Anyone going to GITA in Tampa? Message-ID: Hi everyone, Is anyone planning on heading to GITA's annual conference here in Tampa April 23-25? http://www.gita.org/events/annual/29/index.html I happen to live here, and while I wasn't planning on attending (my son's having heart surgery on the 18th), I would love to get to actually meet some of the O/S mapping people I've worked with and learned from. (Besides, I might need an hour or two break.) If anyone's headed this way, please let me know and I'll try to setup an informal BOF dinner. Bill bill.binko at mapshine.com bill at binko.net From szekeres.tamas at FREEMAIL.HU Tue Apr 4 16:48:13 2006 From: szekeres.tamas at FREEMAIL.HU (=?ISO-8859-2?Q?Szekeres_Tam=E1s?=) Date: Wed, 5 Apr 2006 01:48:13 +0200 Subject: Adding a layer/Removing a layer - C# Message-ID: Ian, 1. I don't think if you should explicitly remove the classes and layers one by one. Simply call msMap.Dispose(), so as to let msFreeMap() do the work for you. 2. You should not use the external layerIndex for iterating the layers. Instead use layerObj layer; for (int i = 0; i < msMap.numlayers; i++) { layer = msMap.getLayer(i); ... } or if you want to iterate by the layer order. layerObj layer; using (intarray ar = msMap.getLayersDrawingOrder()) { for (int i = msMap.numlayers - 1; i >= 0; i--) { layer = msMap.getLayer(ar.getitem(i)); ... } } 3. For rendering the map I would prefer: using(imageObj image = msMap.draw()) { byte[] img = image.getBytes(); using (MemoryStream ms = new MemoryStream(img)) { Image mapimage = Image.FromStream(ms); if (mapImage.Image != null) { mapImage.Image.Dispose(); mapImage.Image = null; mapImage.Image = mapimage; } } } Best Regards Tamas Szekeres From Michael.Smith at ERDC.USACE.ARMY.MIL Tue Apr 4 16:54:58 2006 From: Michael.Smith at ERDC.USACE.ARMY.MIL (Smith, Michael ERDC-CRREL-NH) Date: Tue, 4 Apr 2006 18:54:58 -0500 Subject: Anyone going to GITA in Tampa? Message-ID: I'll be doing a talk during the Oracle Spatial part of GITA, on the 27th titled Google Earth, MapServer, SDE and GDAL/OGR with Oracle Spatial. http://www.gita.org/events/annual/29/Oracle_abstracts.htm#google Mike Smith US Army Corps of Engineers Remote Sensing GIS Center of Expertise Hanover, NH michael.smith at erdc.usace.army.mil ________________________________ From: UMN MapServer Users List on behalf of Bill Binko Sent: Tue 4/4/2006 7:50 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Anyone going to GITA in Tampa? Hi everyone, Is anyone planning on heading to GITA's annual conference here in Tampa April 23-25? http://www.gita.org/events/annual/29/index.html I happen to live here, and while I wasn't planning on attending (my son's having heart surgery on the 18th), I would love to get to actually meet some of the O/S mapping people I've worked with and learned from. (Besides, I might need an hour or two break.) If anyone's headed this way, please let me know and I'll try to setup an informal BOF dinner. Bill bill.binko at mapshine.com bill at binko.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From jwpaige at PACBELL.NET Tue Apr 4 17:10:54 2006 From: jwpaige at PACBELL.NET (john) Date: Tue, 4 Apr 2006 17:10:54 -0700 Subject: Street names on tiger line maps Message-ID: I have installed mapserver and OpenEV_FW and downloaded some tiger line data. I can view a map with street lines. Just starting, so would appreciate any pointers to info, tutorials, or just plain answers on how to add street names. Thanks. From s.pashby at POSTGRAD.CURTIN.EDU.AU Tue Apr 4 21:05:48 2006 From: s.pashby at POSTGRAD.CURTIN.EDU.AU (Steve Pashby) Date: Wed, 5 Apr 2006 04:05:48 +0000 Subject: Geodatabase tables Message-ID: Hello, I'm trying to render a road map using a personal geodatabase and have some event tables (or am going to ... when i get round to it !) However, i'm not entirely sure how you reference the tables in the mapfile. I know in the LAYER definition you would put ... CONNECTIONTYPE ogr CONNECTION "path/to/the/geodatabase, feature_class" But how would you render whats in a specific table ? (ie, I'm trying to show the location of poor road surfaces in a table called Poor_surface_condition) Has someone else done this before and if so could you please post some of your code so i can see what to do. Many thanks. Steve. From warmerdam at POBOX.COM Tue Apr 4 21:42:42 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 5 Apr 2006 00:42:42 -0400 Subject: Geodatabase tables In-Reply-To: Message-ID: Steve Pashby wrote: > Hello, > > I'm trying to render a road map using a personal geodatabase and have some > event tables (or am going to ... when i get round to it !) However, i'm not > entirely sure how you reference the tables in the mapfile. > > I know in the LAYER definition you would put ... > CONNECTIONTYPE ogr > CONNECTION "path/to/the/geodatabase, feature_class" > But how would you render whats in a specific table ? (ie, I'm trying to show > the location of poor road surfaces in a table called Poor_surface_condition) > > Has someone else done this before and if so could you please post some of your > code so i can see what to do. Steve, I would encourage you to use instead: CONNECTIONTYPE ogr CONNECTION "path/to/the/geodatabase" DATA "feature_class" I'm not sure how Daniel or others feel about it, but I like to think of the syntax where the table/layer name is put into the CONNECTION string as deprecated in favor of the above format. Addressing your actual question, I'm not sure why you seem to be distinguishing between "feature_class", "layer", and "table". OGR will use the names of spatial tables (tables with a Shape column) as layers. I have a vague sense there is a distinct thing called a feature class in the personal geodatabase, but OGR ignores this concept entirely (assuming the concept exists). 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 OSGF, http://osgeo.org From wbr at DETEMOBIL.DE Tue Apr 4 22:01:10 2006 From: wbr at DETEMOBIL.DE (wbr) Date: Wed, 5 Apr 2006 07:01:10 +0200 Subject: Bug in Mapserver-4.8.3 In-Reply-To: <7CDD7B94357FD5119E800002A537C46E0B8B7E7B@s5-ccr-r1.ccrs.nrcan.gc.ca> Message-ID: Doyon, Jean-Francois schrieb: > Hmmm, and what about GD? > > Also, make sure you use "ldd /path/to/executable" to verify things, don't > just rely on which packages you have installed, just in case. > > J.F. > the gd library is 'gd2-2.0.33'. I only changed the source from mapserver 4.6.1 to mapserver 4.8.3 ! After compiling and installing the described Effect takes place. hmmm... Wolfgang Brungert -- T-Mobile Deutschland GmbH Program and Budget Management (TRPD13-D) Roddestr. 12 48153 M?nster Phone: +49 251 977 4142 Fax: +49 251 977 4149 email: wolfgang.brungert at t-mobile.de PGP Fingerprint: B3F8 D368 5EEF 3873 3C4F 423C 171E F217 7CA4 3467 From bob.basques at CI.STPAUL.MN.US Tue Apr 4 23:51:14 2006 From: bob.basques at CI.STPAUL.MN.US (Blammo) Date: Wed, 5 Apr 2006 01:51:14 -0500 Subject: ANGLE parameter Message-ID: All, I'm trying to get a test going using the ANGLE map parameter but not having much success. I found a reference to a "non-GDAL" raster, (what the heck does that mean) related to raster warping in the how-to for raster data. I suppose this relates somehow to my source data, but how. Hmm, just found the requirement for the Projection info to be present for each Layer and the Map. I'll try this out in the morning. Question, it says in the MAP file doc's that it doesn't work with MapServer CGI, can the ANGLE param be passed in via the request? I tried a couple of variations earlier today, map_test_angle=0 (no effect on rotation) map_test_angle=1 (blank image) and the parameter seems to be heard by the MapServer but anything other than a value of "0" returns an empty image. This was before discovering the info about the projection info requirements however. So maybe it will work after all. bobb From s.pashby at POSTGRAD.CURTIN.EDU.AU Wed Apr 5 00:00:56 2006 From: s.pashby at POSTGRAD.CURTIN.EDU.AU (Steve Pashby) Date: Wed, 5 Apr 2006 07:00:56 +0000 Subject: Geodatabase tables Message-ID: Frank Warmerdam POBOX.COM> writes: > > Steve Pashby wrote: > > Hello, > > > > I'm trying to render a road map using a personal geodatabase and have some > > event tables (or am going to ... when i get round to it !) However, i'm not > > entirely sure how you reference the tables in the mapfile. > > > > I know in the LAYER definition you would put ... > > CONNECTIONTYPE ogr > > CONNECTION "path/to/the/geodatabase, feature_class" > > But how would you render whats in a specific table ? (ie, I'm trying to show > > the location of poor road surfaces in a table called Poor_surface_condition) > > > > Has someone else done this before and if so could you please post some of your > > code so i can see what to do. > > Steve, > > I would encourage you to use instead: > > CONNECTIONTYPE ogr > CONNECTION "path/to/the/geodatabase" > DATA "feature_class" > > I'm not sure how Daniel or others feel about it, but I like to think of the > syntax where the table/layer name is put into the CONNECTION string as > deprecated in favor of the above format. > > Addressing your actual question, I'm not sure why you seem to be > distinguishing between "feature_class", "layer", and "table". OGR will > use the names of spatial tables (tables with a Shape column) as layers. > > I have a vague sense there is a distinct thing called a feature class in > the personal geodatabase, but OGR ignores this concept entirely (assuming the > concept exists). > > Best regards, ============================================================================== Thanks very much for the reply Frank. However, my tables are not specifically spatial tables (holding x,y coords), but rather they have a unique field (Route_ID) that is a link to a shapefile (containing road centre-line data) and each road has its own unique Route-ID. This is (i think) what links the two together. Anyway, maybe i am looking to much into it and OGR will do all the work ! Cheers, Steve. From bmad0463 at MAIL.USYD.EDU.AU Wed Apr 5 00:15:21 2006 From: bmad0463 at MAIL.USYD.EDU.AU (Ben Madin) Date: Wed, 5 Apr 2006 15:15:21 +0800 Subject: Transformations in php mapscript Message-ID: G'day all, I am looking at some php scripts which load php_proj.dll and then use pj_init and pj_transform. However, when I load the page I get this message Warning: dl() [function.dl.html]: Unable to load dynamic library '\ms4w\Apache\php\extensions\php_proj.dll' - The specified module could not be found. followed by : Fatal error: Call to undefined function: pj_init() which I assume I need before I get to pj_transform (it fails anyway) As you can tell, I have installed ms4W which must be without question the easiest Mapserver setup around, but it didn't include php_proj, which I have obtained from elsewhere. I have searched the lists, read all the proj documentation etc, but I don't seem to be able to get the library to load (I assume it is required to make the pj_ functions work?) thank you Ben From mpetach at NEWFIELDS.COM Wed Apr 5 01:00:36 2006 From: mpetach at NEWFIELDS.COM (Marty Petach) Date: Wed, 5 Apr 2006 02:00:36 -0600 Subject: MSAccess OGR VRT - Dynamic Control of Virtual Sources - SrcSQL WHERE Clause Quote Issues Message-ID: Hi MapServer Wizards I have a "static" OGR VRT data source working well in Mapserver 4.8.3 (MS4W 1.5) Windows XP, connecting to Microsoft Access 2002 table using Microsoft Access Driver 4.00.6304.00 ODBC driver, but I'm having trouble getting the data source to work correctly with a replaceable URL parameter, apparently due to quoting text string challenges. Here is the working "static" definition which correctly selects and draws the appropriate points: LAYER NAME "NONLWG Sampling Data" CONNECTION " ODBC:user/pass at NONLWGCHEM SELECT X, Y, CHEM FROM chemTable WHERE CHEM = 'Silver' wkbPoint " CONNECTIONTYPE OGR DATA "nonlwg" TYPE POINT ... When I try to use a URL parameter, chemname, (which I can use successfully use on the HTML form), the OGR VRT layer does not draw - it does nothing, no errors as far as I can see, but no data from this layer are drawn. Other layers draw as expected. I've tried many different combinations of quotes, " ' ' " ''' \' etc, but nothing seems to work. Any hints? This does nothing: LAYER NAME "NONLWG data" CONNECTION " ODBC:user/pass at POPNONLWG SELECT X, Y, CHEM FROM chemTable WHERE CHEM = '%chemname%' wkbPoint " CONNECTIONTYPE OGR DATA "nonlwg" TYPE POINT ... The trouble seems to be with the part of the statement WHERE CHEM = '%chemname%' I hope to use the "chemname" to dynamically display the appropriate results based on user input from a selection list on an HTTP form... Marty Petach NewFields Boulder, LLC 4720 Walnut St., Suite 200 Boulder, CO? 80301 Phone (303)-442-0267 Fax (303)-442-3679 mpetach at newfields.com From abel_soares at SAPO.PT Tue Apr 4 16:50:26 2006 From: abel_soares at SAPO.PT (soares) Date: Tue, 4 Apr 2006 16:50:26 -0700 Subject: resolution SVG Message-ID: when outputing an SVG map format from mapserver, can i change it?s resolution dinamically? for example, i have a path with 30 points, when i zoom out i want that path with - points, of course, for all the paths in the map! i use mapfiles, so is there any parameter i?m not seeing? tkx -- View this message in context: http://www.nabble.com/resolution-SVG-t1396363.html#a3755487 Sent from the Mapserver - User forum at Nabble.com. From dovidio at PLANETEK.IT Wed Apr 5 03:25:19 2006 From: dovidio at PLANETEK.IT (Fabio D' Ovidio) Date: Wed, 5 Apr 2006 12:25:19 +0200 Subject: gml coordinates problem Message-ID: Dear list, I have a problem with MapServer WFS request . I have created a cascading between two MapServer : one WFS and anotherone as WMS (that queries WFS) to display the GML. The problem is that the GML output is failed in some ponits : sometimes the coordinates of the feature are linked without space in the tag , so in the map I have lost some feature (of course) !! In your opinion why ?? What can I do ? ******************************************************************************************** eng. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any other MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance. ---- File information ----------- File: planetek.gif Date: 28 Feb 2006, 16:15 Size: 1899 bytes. Type: Unknown -------------- next part -------------- A non-text attachment was scrubbed... Name: planetek.gif Type: application/octet-stream Size: 1899 bytes Desc: not available URL: From jpintodacosta at GMAIL.COM Wed Apr 5 04:12:39 2006 From: jpintodacosta at GMAIL.COM (Joaquim Pinto da Costa) Date: Wed, 5 Apr 2006 12:12:39 +0100 Subject: Map file test fail Message-ID: Hi As a new user in a new mapserver project I'm testing my map file with shp2img. The results weren't very encouraging. C:\php>shp2img -m "C:\Program Files\Apache Group\Apache2\htdocs\AlAtlas\map\AlAt las.map" -o test.png msProcessProjection(): Projection library error. No such file or directory
Is this a problem with proj4 ? Although I have the projection defined at the map and layer levels all data is using the same projection. In fact I didn't manage to get a map with data with different projections but the current map file works perfectly with the HTML interface. Any clues where to start? Is it an absolute necessity to pass the shp2img test to have proj4 working? Regards Joaquim Portugal Map file excerpts MAP EXTENT -290169.632209333 -325582.241017 1371176.20410133 920427.136216 FONTSET "C:/Program Files/Apache Group/Apache2/htdocs/AlAtlas/map/etc/fonts.fnt" IMAGECOLOR 255 255 255 IMAGETYPE png SYMBOLSET "C:/Program Files/Apache Group/Apache2/htdocs/AlAtlas/map/etc/symbset.sym" SHAPEPATH "C:/php/geodata/ALATLASn/" SIZE 600 450 STATUS ON UNITS meters NAME "Al-Atlas" OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE PC256 TRANSPARENT FALSE END PROJECTION "init=epsg:20790" END snip LAYER CLASSITEM "EUR_CITY_I" DATA "cidad_iber" GROUP "Territorio Admin." LABELITEM "NAME" METADATA "WMS_SRS" "epsg:20790" "WMS_FEATURE_INFO_MIME_TYPE" "text/html" "WMS_GROUP_TITLE" "Territorio Admin." "WMS_TITLE" "AlAtlas - Grandes Cidades Peninsula" END NAME "Grandes Cidades Peninsula Iberica" PROJECTION "init=epsg:20790" END SIZEUNITS PIXELS STATUS ON TEMPLATE "Grandes Cidades Peninsula Iberica_query.html" TOLERANCE 7 TOLERANCEUNITS PIXELS TRANSPARENCY 100 TYPE POINT DUMP TRUE UNITS METERS CLASS NAME "cidad_iber" EXPRESSION /./ LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE POSITION UC END METADATA END STYLE ANGLE 360 COLOR 0 0 0 SIZE 8 SYMBOL 16 END END END END From tealorama at GMAIL.COM Wed Apr 5 04:20:34 2006 From: tealorama at GMAIL.COM (=?ISO-8859-1?Q?Tero_Al=E9n?=) Date: Wed, 5 Apr 2006 14:20:34 +0300 Subject: MapServer return blank page? Message-ID: Hi everybody, I'm developing mapping application with PHPMapScript. Sometimes application return blank page and I seeked Apache's error log and found the following line always when the error shows up. [notice] child pid 17622 exit signal Segmentation fault (11) I think this is cause of MapServer? Is this known bug or something else? Regards, Tero From listuser at HERZSYS.DE Wed Apr 5 04:41:34 2006 From: listuser at HERZSYS.DE (listuser HH) Date: Wed, 5 Apr 2006 13:41:34 +0200 Subject: Map file test fail In-Reply-To: <20a4d1220604050412m17107d48mb1df91d75a3bea7a@mail.gmail.com> Message-ID: Joaquim Pinto da Costa wrote: >Hi >As a new user in a new mapserver project I'm testing my map file with >shp2img. The results weren't very encouraging. > >C:\php>shp2img -m "C:\Program Files\Apache Group\Apache2\htdocs\AlAtlas\map\AlAt >las.map" -o test.png >msProcessProjection(): Projection library error. No such file or directory
> > Hi, it seems that your system is missing the path to the proj lib. You should set the environment variables PATH and PROJ_LIB. Which package and versions did you install? Regards Norbert From fportaneri.ext at RD.FRANCETELECOM.COM Wed Apr 5 05:26:56 2006 From: fportaneri.ext at RD.FRANCETELECOM.COM (zze-SIGALE PORTANERI F ext RD-BIZZ-SOP) Date: Wed, 5 Apr 2006 14:26:56 +0200 Subject: Timeout issue between mapserver and postgresql Message-ID: Hi list, I have a dual server configuration with : server 1: Cartoweb 3 + php 5.0.3 + mapserver 4.6.0 server 2: postgresql 8.0.3 + postgis 0.9.1 Everything is OK during the first part of the session, the cartoweb well displays the mapserver generated maps thought the postgis data, the connection is OK. After some time (let say 10 refresh of the about 20 layers mapfile), I have a timeout issue : The message is the following FATAL ServerContext - Error in msPOSTGISLayerOpen(): couldnt make connection to DB with connect string 'host=XXX.XXX.XXX.XXX dbname=ddddd user=uuuuu password=pppppp'. Error reported was 'could not connect to server: Connection timed out Is the server running on host "XXX.XXX.XXX.XXX" and accepting TCP/IP connections on port 5432? '. The strange thing is that when this happen, I still can open a new session (new browser window) in parallel and access to the same data (so the database is still up and running). Any idea to where investigate? Thanks in advance, Franck -------------- next part -------------- An HTML attachment was scrubbed... URL: From gsw at GLOBEXPLORER.COM Wed Apr 5 05:39:26 2006 From: gsw at GLOBEXPLORER.COM (Gregory S. Williamson) Date: Wed, 5 Apr 2006 05:39:26 -0700 Subject: Timeout issue between mapserver and postgresql Message-ID: What error(s) is/are postgres reporting ? Check the configuration file (postgresql.conf) for postgres and see what max_connections is set to. It may be low enough that you are bumping into this threshold. Each connection takes work_mem kilobytes so you don't want to have too many connections allowed with a lot of memory for each; it can cause poor performance on the postgres side of things. Not having enough connections could cause the problem you describe. If the superuser_reserved_connections is set you might see this when you have run out of normal connections for user "uuuuu" but connecting as user postgres from a terminal might be allowed if there are less than superuser_reserved_connections being used by postgres or other super user accounts. HTH, Greg Williamson DBA GlobeXplorer LLC -----Original Message----- From: UMN MapServer Users List on behalf of zze-SIGALE PORTANERI F ext RD-BIZZ-SOP Sent: Wed 4/5/2006 5:26 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Cc: Subject: [UMN_MAPSERVER-USERS] Timeout issue between mapserver and postgresql Hi list, I have a dual server configuration with : server 1: Cartoweb 3 + php 5.0.3 + mapserver 4.6.0 server 2: postgresql 8.0.3 + postgis 0.9.1 Everything is OK during the first part of the session, the cartoweb well displays the mapserver generated maps thought the postgis data, the connection is OK. After some time (let say 10 refresh of the about 20 layers mapfile), I have a timeout issue : The message is the following FATAL ServerContext - Error in msPOSTGISLayerOpen(): couldnt make connection to DB with connect string 'host=XXX.XXX.XXX.XXX dbname=ddddd user=uuuuu password=pppppp'. Error reported was 'could not connect to server: Connection timed out Is the server running on host "XXX.XXX.XXX.XXX" and accepting TCP/IP connections on port 5432? '. The strange thing is that when this happen, I still can open a new session (new browser window) in parallel and access to the same data (so the database is still up and running). Any idea to where investigate? Thanks in advance, Franck !DSPAM:4433b7b175321133564134! From candalt at ONLINE.NO Wed Apr 5 05:56:25 2006 From: candalt at ONLINE.NO (=?iso-8859-1?Q?Sture_Dings=F8yr?=) Date: Wed, 5 Apr 2006 14:56:25 +0200 Subject: WFS Filter Message-ID: Hi all Been doing some testing with Mapserver WFS and FILTER. When the Mapserver layer is getting its data from e.g. SHAPE, POSTGRESQL the WFS FILTER functions seem to work fine. I can filter data by using both BBOX or e.g. a PropertyIsLike query. But...i was now testing the FILTER functions on a layer where the data is from a MS SQL server (point layer). I am fetching my data via OGR. Mapserver renders the layer just fine, i can use WFS BBOX FILTER, but when i try a WMS FILTER using e.g. WFS PropertyIsLike query, Mapserver returns all records in the layer. Nothing gets filtered... Should not Mapserver (via WFS) filter data in the same way regardless of how the data is fetched...that is e.g. via SHAPE, POSTGRESQL, OGR etc Regards Sture From warmerdam at POBOX.COM Wed Apr 5 06:29:54 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 5 Apr 2006 09:29:54 -0400 Subject: Geodatabase tables In-Reply-To: Message-ID: Steve Pashby wrote: > =============================================================================== > Thanks very much for the reply Frank. However, my tables are not specifically > spatial tables (holding x,y coords), but rather they have a unique field > (Route_ID) that is a link to a shapefile (containing road centre-line data) > and each road has its own unique Route-ID. This is (i think) what links the > two together. Steve, I have never seen a personal geodatabase setup like this. If you make it available to me I might have a look. When you speak of a "personal geodatabase", you do specifically mean this in the ESRI ArcGIS sense, right? It might also make sense for you to access the database via a plain ODBC connection to get the data out rather than having OGR treat it as a personal geodatabase. 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 OSGF, http://osgeo.org From fportaneri.ext at RD.FRANCETELECOM.COM Wed Apr 5 06:54:37 2006 From: fportaneri.ext at RD.FRANCETELECOM.COM (zze-SIGALE PORTANERI F ext RD-BIZZ-SOP) Date: Wed, 5 Apr 2006 15:54:37 +0200 Subject: Timeout issue between mapserver and postgresql Message-ID: Hi Greg, Thanks for you prompt answer!!! The postgres log just shows several lines like: "WARNING: there is no transaction in progress" ... May be the level of debug is too low... but on an other side, I guess that a fatal error would had been logged anyway... The posgresql.conf sets: max_connections : 100 work_mem : 1024 superuser_reserved_connections : 2 I am not sure max_connections is the problem since when a session is stuck, I still can open sessions in a new browser using the "uuuuu" user... Thanks again, Franck -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Gregory S. Williamson Envoy? : mercredi 5 avril 2006 14:39 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] Timeout issue between mapserver and postgresql What error(s) is/are postgres reporting ? Check the configuration file (postgresql.conf) for postgres and see what max_connections is set to. It may be low enough that you are bumping into this threshold. Each connection takes work_mem kilobytes so you don't want to have too many connections allowed with a lot of memory for each; it can cause poor performance on the postgres side of things. Not having enough connections could cause the problem you describe. If the superuser_reserved_connections is set you might see this when you have run out of normal connections for user "uuuuu" but connecting as user postgres from a terminal might be allowed if there are less than superuser_reserved_connections being used by postgres or other super user accounts. HTH, Greg Williamson DBA GlobeXplorer LLC -----Original Message----- From: UMN MapServer Users List on behalf of zze-SIGALE PORTANERI F ext RD-BIZZ-SOP Sent: Wed 4/5/2006 5:26 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Cc: Subject: [UMN_MAPSERVER-USERS] Timeout issue between mapserver and postgresql Hi list, I have a dual server configuration with : server 1: Cartoweb 3 + php 5.0.3 + mapserver 4.6.0 server 2: postgresql 8.0.3 + postgis 0.9.1 Everything is OK during the first part of the session, the cartoweb well displays the mapserver generated maps thought the postgis data, the connection is OK. After some time (let say 10 refresh of the about 20 layers mapfile), I have a timeout issue : The message is the following FATAL ServerContext - Error in msPOSTGISLayerOpen(): couldnt make connection to DB with connect string 'host=XXX.XXX.XXX.XXX dbname=ddddd user=uuuuu password=pppppp'. Error reported was 'could not connect to server: Connection timed out Is the server running on host "XXX.XXX.XXX.XXX" and accepting TCP/IP connections on port 5432? '. The strange thing is that when this happen, I still can open a new session (new browser window) in parallel and access to the same data (so the database is still up and running). Any idea to where investigate? Thanks in advance, Franck !DSPAM:4433b7b175321133564134! From gsw at GLOBEXPLORER.COM Wed Apr 5 07:24:58 2006 From: gsw at GLOBEXPLORER.COM (Gregory S. Williamson) Date: Wed, 5 Apr 2006 07:24:58 -0700 Subject: Timeout issue between mapserver and postgresql Message-ID: Franck -- Drat -- doesn't seem like my ideas were relevant ... in general a real error will show up in postgres logs; you might consider bumping the level of logging up for a while to log all sql to see if the received requests make sense ... [log_statement = all] A thought -- sodden -- almost bed time for me -- 10 refresh of 20 layers could mean as many as 200 queries at once, more or less ? I am not sure if MSS does a differnet query for each layer but it might ... in which case 10x20 is greater than your 100 connections ? If this is case try bumping max connectiuons up to 220 or something and see if that helps any. You might try monitoring the machine ... vmstat and/or top for *NIX machines ... see if the postgres server is getting hammered. If so it might indicate issues with the postgres data, including missing indexes, lack of recent statistics leading to bad plans and sequential scans, etc. High i/o wait times would indicate lots of disk activity, for instance. Capturing the SQL being sent to postgres and then running an EXPLAIN ANALYXE ... on it might reveal issues that postgres is having. Check the postgres stats views and tables (for instance, check pg_stat_all_tables for tables with lots of sequential scans, which tend to be slow and eat up disk i/o and time). If you can, compile a Mapserver with debugging output and check the (apache ?) logs for timing of different layers. Not sure what else to suggest ... hopefully someone else with a sharper head than mine can help. G -----Original Message----- From: UMN MapServer Users List on behalf of zze-SIGALE PORTANERI F ext RD-BIZZ-SOP Sent: Wed 4/5/2006 6:54 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Cc: Subject: Re: [UMN_MAPSERVER-USERS] Timeout issue between mapserver and postgresql Hi Greg, Thanks for you prompt answer!!! The postgres log just shows several lines like: "WARNING: there is no transaction in progress" ... May be the level of debug is too low... but on an other side, I guess that a fatal error would had been logged anyway... The posgresql.conf sets: max_connections : 100 work_mem : 1024 superuser_reserved_connections : 2 I am not sure max_connections is the problem since when a session is stuck, I still can open sessions in a new browser using the "uuuuu" user... Thanks again, Franck -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Gregory S. Williamson Envoy? : mercredi 5 avril 2006 14:39 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] Timeout issue between mapserver and postgresql What error(s) is/are postgres reporting ? Check the configuration file (postgresql.conf) for postgres and see what max_connections is set to. It may be low enough that you are bumping into this threshold. Each connection takes work_mem kilobytes so you don't want to have too many connections allowed with a lot of memory for each; it can cause poor performance on the postgres side of things. Not having enough connections could cause the problem you describe. If the superuser_reserved_connections is set you might see this when you have run out of normal connections for user "uuuuu" but connecting as user postgres from a terminal might be allowed if there are less than superuser_reserved_connections being used by postgres or other super user accounts. HTH, Greg Williamson DBA GlobeXplorer LLC -----Original Message----- From: UMN MapServer Users List on behalf of zze-SIGALE PORTANERI F ext RD-BIZZ-SOP Sent: Wed 4/5/2006 5:26 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Cc: Subject: [UMN_MAPSERVER-USERS] Timeout issue between mapserver and postgresql Hi list, I have a dual server configuration with : server 1: Cartoweb 3 + php 5.0.3 + mapserver 4.6.0 server 2: postgresql 8.0.3 + postgis 0.9.1 Everything is OK during the first part of the session, the cartoweb well displays the mapserver generated maps thought the postgis data, the connection is OK. After some time (let say 10 refresh of the about 20 layers mapfile), I have a timeout issue : The message is the following FATAL ServerContext - Error in msPOSTGISLayerOpen(): couldnt make connection to DB with connect string 'host=XXX.XXX.XXX.XXX dbname=ddddd user=uuuuu password=pppppp'. Error reported was 'could not connect to server: Connection timed out Is the server running on host "XXX.XXX.XXX.XXX" and accepting TCP/IP connections on port 5432? '. The strange thing is that when this happen, I still can open a new session (new browser window) in parallel and access to the same data (so the database is still up and running). Any idea to where investigate? Thanks in advance, Franck !DSPAM:4433cc2d93101804284693! From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Wed Apr 5 07:30:43 2006 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Doyon, Jean-Francois) Date: Wed, 5 Apr 2006 10:30:43 -0400 Subject: Bug in Mapserver-4.8.3 Message-ID: Well then, I don't know :) We'll have to see if anyone reports any problems ... I've run into problems with fonts, but they were freetype based issues in the end. I'm running 4.8.1 without problems. J.F. -----Original Message----- From: wbr [mailto:wbr at detemobil.de] Sent: April 5, 2006 1:01 AM To: Doyon, Jean-Francois Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Bug in Mapserver-4.8.3 Doyon, Jean-Francois schrieb: > Hmmm, and what about GD? > > Also, make sure you use "ldd /path/to/executable" to verify things, > don't just rely on which packages you have installed, just in case. > > J.F. > the gd library is 'gd2-2.0.33'. I only changed the source from mapserver 4.6.1 to mapserver 4.8.3 ! After compiling and installing the described Effect takes place. hmmm... Wolfgang Brungert -- T-Mobile Deutschland GmbH Program and Budget Management (TRPD13-D) Roddestr. 12 48153 M?nster Phone: +49 251 977 4142 Fax: +49 251 977 4149 email: wolfgang.brungert at t-mobile.de PGP Fingerprint: B3F8 D368 5EEF 3873 3C4F 423C 171E F217 7CA4 3467 From hgirard at CGQ.QC.CA Wed Apr 5 07:42:17 2006 From: hgirard at CGQ.QC.CA (Hugo Girard) Date: Wed, 5 Apr 2006 10:42:17 -0400 Subject: Bug in Mapserver Message-ID: Dear Didrik Pinte, can you explain me what you want to say by "Actuellement, la navigation n'est vraiment pas ?vidente ? cause de la conservation d'?tat des variables du script." I dont really understand how to resolve that. Salut Didrik Pinte, peux-tu m'expliquer ce que tu veux dire par conservation d'?tat des variables du script. Je ne comprend pas comment r?soudre ce probl?me. Je suis nouveau avec mapserver et je n'en comprend pas toutes ses variances. Merci Hugo -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpintodacosta at GMAIL.COM Wed Apr 5 07:59:31 2006 From: jpintodacosta at GMAIL.COM (Joaquim Pinto da Costa) Date: Wed, 5 Apr 2006 15:59:31 +0100 Subject: Map file test fail In-Reply-To: <4433ACEE.7000501@herzsys.de> Message-ID: Norbert Thanks a lot it was indeed the PROJ_LIB env var. Now it works like a charm and I think that from now on projections should work on my system. About to test that :-) Joaquim > Hi, > > it seems that your system is missing the path to the proj lib. You > should set the environment variables PATH and PROJ_LIB. > > Which package and versions did you install? > > Regards > > Norbert > > From bartvde at XS4ALL.NL Wed Apr 5 08:20:20 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Wed, 5 Apr 2006 17:20:20 +0200 Subject: Timeout issue between mapserver and postgresql In-Reply-To: <71E37EF6B7DCC1499CEA0316A2568328024BC28D@loki.wc.globexplorer.net> Message-ID: You could try and use the connection pooling by adding: PROCESSING "CLOSE_CONNECTION=DEFER" to all of your layers in you haven't done so. Bart Gregory S. Williamson wrote: >Franck -- > >Drat -- doesn't seem like my ideas were relevant ... in general a real error will show up in postgres logs; you might consider bumping the level of logging up for a while to log all sql to see if the received requests make sense ... [log_statement = all] > >A thought -- sodden -- almost bed time for me -- 10 refresh of 20 layers could mean as many as 200 queries at once, more or less ? I am not sure if MSS does a differnet query for each layer but it might ... in which case 10x20 is greater than your 100 connections ? If this is case try bumping max connectiuons up to 220 or something and see if that helps any. > >You might try monitoring the machine ... vmstat and/or top for *NIX machines ... see if the postgres server is getting hammered. If so it might indicate issues with the postgres data, including missing indexes, lack of recent statistics leading to bad plans and sequential scans, etc. High i/o wait times would indicate lots of disk activity, for instance. Capturing the SQL being sent to postgres and then running an EXPLAIN ANALYXE ... on it might reveal issues that postgres is having. > >Check the postgres stats views and tables (for instance, check pg_stat_all_tables for tables with lots of sequential scans, which tend to be slow and eat up disk i/o and time). > >If you can, compile a Mapserver with debugging output and check the (apache ?) logs for timing of different layers. > >Not sure what else to suggest ... hopefully someone else with a sharper head than mine can help. > >G > >-----Original Message----- >From: UMN MapServer Users List on behalf of zze-SIGALE PORTANERI F ext RD-BIZZ-SOP >Sent: Wed 4/5/2006 6:54 AM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Cc: >Subject: Re: [UMN_MAPSERVER-USERS] Timeout issue between mapserver and postgresql > >Hi Greg, > >Thanks for you prompt answer!!! > >The postgres log just shows several lines like: > >"WARNING: there is no transaction in progress" >... > >May be the level of debug is too low... but on an other side, I guess that a fatal error would had been logged anyway... > > >The posgresql.conf sets: > >max_connections : 100 >work_mem : 1024 >superuser_reserved_connections : 2 > > >I am not sure max_connections is the problem since when a session is stuck, I still can open sessions in a new browser using the "uuuuu" user... > >Thanks again, >Franck > > > >-----Message d'origine----- >De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Gregory S. Williamson >Envoy? : mercredi 5 avril 2006 14:39 >? : MAPSERVER-USERS at LISTS.UMN.EDU >Objet : Re: [UMN_MAPSERVER-USERS] Timeout issue between mapserver and postgresql > >What error(s) is/are postgres reporting ? > >Check the configuration file (postgresql.conf) for postgres and see what max_connections is set to. It may be low enough that you are bumping into this threshold. Each connection takes work_mem kilobytes so you don't want to have too many connections allowed with a lot of memory for each; it can cause poor performance on the postgres side of things. Not having enough connections could cause the problem you describe. > >If the superuser_reserved_connections is set you might see this when you have run out of normal connections for user "uuuuu" but connecting as user postgres from a terminal might be allowed if there are less than superuser_reserved_connections being used by postgres or other super user accounts. > >HTH, > >Greg Williamson >DBA >GlobeXplorer LLC > > >-----Original Message----- >From: UMN MapServer Users List on behalf of zze-SIGALE PORTANERI F ext RD-BIZZ-SOP >Sent: Wed 4/5/2006 5:26 AM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Cc: >Subject: [UMN_MAPSERVER-USERS] Timeout issue between mapserver and postgresql > > >Hi list, > >I have a dual server configuration with : > server 1: Cartoweb 3 + php 5.0.3 + mapserver 4.6.0 > server 2: postgresql 8.0.3 + postgis 0.9.1 > >Everything is OK during the first part of the session, the cartoweb well displays the mapserver generated maps thought the postgis data, the connection is OK. > >After some time (let say 10 refresh of the about 20 layers mapfile), I have a timeout issue : The message is the following > >FATAL ServerContext - Error in msPOSTGISLayerOpen(): couldnt make connection to DB with connect string 'host=XXX.XXX.XXX.XXX dbname=ddddd user=uuuuu password=pppppp'. >Error reported was 'could not connect to server: Connection timed out Is the server running on host "XXX.XXX.XXX.XXX" and accepting TCP/IP connections on port 5432? '. > >The strange thing is that when this happen, I still can open a new session (new browser window) in parallel and access to the same data (so the database is still up and running). > >Any idea to where investigate? > >Thanks in advance, >Franck > > > > >!DSPAM:4433cc2d93101804284693! > > > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From assefa at DMSOLUTIONS.CA Wed Apr 5 08:21:24 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 5 Apr 2006 11:21:24 -0400 Subject: WFS Filter In-Reply-To: <7236791.1144241785119.JavaMail.adm-moff@moffice3.nsc.no> Message-ID: The way things work is that the filter encoding is transformed into something suitable for each layer and the layer's filter element is set with it : * For shape file, It will be a normal mapserver expression, * for postgis, oracle and ogr, it will be transformed into an sql expression. For OGR It should result into something like WHERE (Item_name='Item_Value') Bug http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1292 has more details on this. What you could try is to set manually a valid sql expression on you layer's filter and see if that works. Later, Sture Dings?yr wrote: > Hi all > > Been doing some testing with Mapserver WFS and FILTER. > > When the Mapserver layer is getting its data from e.g. SHAPE, POSTGRESQL the WFS FILTER functions seem to work fine. I can filter data by using both BBOX or e.g. a PropertyIsLike query. > > But...i was now testing the FILTER functions on a layer where the data is from a MS SQL server (point layer). I am fetching my data via OGR. Mapserver renders the layer just fine, i can use WFS BBOX FILTER, but when i try a WMS FILTER using e.g. WFS PropertyIsLike query, Mapserver returns all records in the layer. Nothing gets filtered... > > Should not Mapserver (via WFS) filter data in the same way regardless of how the data is fetched...that is e.g. via SHAPE, POSTGRESQL, OGR etc > > Regards > Sture -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From assefa at DMSOLUTIONS.CA Wed Apr 5 08:32:58 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 5 Apr 2006 11:32:58 -0400 Subject: resolution SVG In-Reply-To: <3755487.post@talk.nabble.com> Message-ID: Hi There, There is a parameter called FULL_RESOLUTION that lets you control if all points of a feature are transformed into svg coordinates or If there is a filtering done. (http://mapserver.gis.umn.edu/docs/howto/svg-howto). Is this what you are looking for ? Later, soares wrote: > when outputing an SVG map format from mapserver, can i change it?s resolution > dinamically? > for example, i have a path with 30 points, when i zoom out i want that path > with - points, of course, for all the paths in the map! > i use mapfiles, so is there any parameter i?m not seeing? > > tkx > -- > View this message in context: http://www.nabble.com/resolution-SVG-t1396363.html#a3755487 > Sent from the Mapserver - User forum at Nabble.com. > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From Jeroen.Ticheler at FAO.ORG Wed Apr 5 08:36:24 2006 From: Jeroen.Ticheler at FAO.ORG (Jeroen Ticheler) Date: Wed, 5 Apr 2006 17:36:24 +0200 Subject: WCS maximum window size? Message-ID: Hi, Is there a way to configure a WCS to only allow images with a maximum size (e.g. 1000*1000 pixels)? Or should this be handled in another manner? Thanks, Jeroen From xnzhang11 at GMAIL.COM Wed Apr 5 08:40:02 2006 From: xnzhang11 at GMAIL.COM (Jonathan) Date: Wed, 5 Apr 2006 16:40:02 +0100 Subject: Add new symbol in symbols.sym Message-ID: Dear all, I added a new symbol in the symbols.sym please see code below. Symbol Type PIXMAP IMAGE 'view1.gif' Name 'viewpoint1' Transparent 3 END END however when I used it for a layer, this error came up: *Warning*: [MapServer Error]: msLoadMap(): Undefined overlay symbol "viewpoint" in class 1, style 0 of layer ViewPoints. the layer in the map file is defined as: LAYER NAME ViewPoints # name of the layer METADATA "DESCRIPTION" "View Points" END TYPE point # feature type STATUS ON DATA viewpoints CLASSITEM "viewAngle" CLASS EXPRESSION "0" SYMBOL viewpoint0 SIZE 8 END CLASS EXPRESSION "1" SYMBOL viewpoint1 SIZE 15 TEMPLATE "ttt_query.html" NAME "viewangle1" COLOR 255 0 0 END CLASS EXPRESSION "2" SYMBOL viewpoint2 SIZE 8 END TOLERANCE 5 END Any idea why this is happenning? regards -- Jonathan -------------- next part -------------- An HTML attachment was scrubbed... URL: From candalt at ONLINE.NO Wed Apr 5 09:16:50 2006 From: candalt at ONLINE.NO (=?iso-8859-1?Q?Sture_Dings=F8yr?=) Date: Wed, 5 Apr 2006 18:16:50 +0200 Subject: WFS Filter Message-ID: Hi again and thanx for answer.. I have tried this (in my mapfile, displaying an GIF image): If i use a regular mapserver filter expression, my layer gets correctly filtered. E.g: FILTER ('[servicename]' = 'Camping') But if i use a SQL WHERE clause e.g. like this: FILTER "servicename = 'Camping'" no records are shown in my map. I read that when using OGR and FILTER you should include "WHERE" in the filter (http://ms.gis.umn.edu/docs/howto/ogr_howto), so i tried that also: FILTER "WHERE servicename = 'Camping'". This time all the records are shown in the map. So i guess the WFS FILTER transelates the XML into a WHERE clause, but i get the same result as with the WFS FILTER.... All records are returned...the filter expression is not "used"...? Is this "a bug" or is this a feature that will be implemented later in Mapserver? As mentioned before...this problem is only with OGR layers..not SHAPE, POSTGIS... Regards Sture The way things work is that the filter encoding is transformed into something suitable for each layer and the layer's filter element is set with it : * For shape file, It will be a normal mapserver expression, * for postgis, oracle and ogr, it will be transformed into an sql expression. For OGR It should result into something like WHERE (Item_name='Item_Value') Bug http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1292 has more details on this. What you could try is to set manually a valid sql expression on you layer's filter and see if that works. Later, Sture Dings?yr wrote: > Hi all > > Been doing some testing with Mapserver WFS and FILTER. > > When the Mapserver layer is getting its data from e.g. SHAPE, POSTGRESQL the WFS FILTER functions seem to work fine. I can filter data by using both BBOX or e.g. a PropertyIsLike query. > > But...i was now testing the FILTER functions on a layer where the data is from a MS SQL server (point layer). I am fetching my data via OGR. Mapserver renders the layer just fine, i can use WFS BBOX FILTER, but when i try a WMS FILTER using e.g. WFS PropertyIsLike query, Mapserver returns all records in the layer. Nothing gets filtered... > > Should not Mapserver (via WFS) filter data in the same way regardless > of how the data is fetched...that is e.g. via SHAPE, POSTGRESQL, OGR > etc > > Regards > Sture -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From kenlord at GMAIL.COM Wed Apr 5 09:56:47 2006 From: kenlord at GMAIL.COM (Ken Lord) Date: Wed, 5 Apr 2006 09:56:47 -0700 Subject: Geodatabase tables In-Reply-To: <4433C652.306@pobox.com> Message-ID: Hi Steve, Frank, Steve, If i understand it correctly, you have a route event feature class in your personal geodatabase that you want to display in MapServer, a product of some linear referencing work. Please correct me if I'm wrong, but you are probably setup so that: - you have a feature class made up of lines, your roads, which define a route. These lines have a route ID to identify the route, and another attribute which defines the order in which the road lines make up the route from start to finish. - you have an event table defining points or lengths along the line with associated attributes, such as 'a crash happened here', 'speed limit on this section', etc. This table also has a Route ID that matches the appropriate route in the feature class. This non-spatial table has a Measure attribute that describes how far along the route the event is if its a point, or 2 measure attributes with its start and finish distances along the route if its a segment. ... And you would like to show these events located correctly along your roads in MapServer, from a personal geodatabase. ArcIMS (sorry to say that evil word) displays route events from personal geodatabases without any problem. Aside from having Frank wave his magical coding wand, I would suggest that you look into the linear referencing functions in PostGIS 1.1.1. however the spatial SQL in your DATA string may get out a bit out of hand and slow down the generation of your maps. To keep the 'on-the-fly' processing to a minimum, once you have your route events created, you might want to just convert them into actual point / line features, regardless of the format used to hold the data. Cheers, Ken Lord Vancouver BC On 4/5/06, Frank Warmerdam wrote: > Steve Pashby wrote: > > =============================================================================== > > Thanks very much for the reply Frank. However, my tables are not specifically > > spatial tables (holding x,y coords), but rather they have a unique field > > (Route_ID) that is a link to a shapefile (containing road centre-line data) > > and each road has its own unique Route-ID. This is (i think) what links the > > two together. > > Steve, > > I have never seen a personal geodatabase setup like this. If you make it > available to me I might have a look. > > When you speak of a "personal geodatabase", you do specifically mean this > in the ESRI ArcGIS sense, right? > > It might also make sense for you to access the database via a plain ODBC > connection to get the data out rather than having OGR treat it as a > personal geodatabase. > > 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 OSGF, http://osgeo.org > From assefa at DMSOLUTIONS.CA Wed Apr 5 10:38:18 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 5 Apr 2006 13:38:18 -0400 Subject: WFS Filter In-Reply-To: <9862495.1144253810349.JavaMail.adm-moff@moffice6.nsc.no> Message-ID: You are right, the filter transforms it to an expression with a WHERE in front of it. This expression should then be used by the underlying driver when retreiving data. I am assuming that your are using ODBC to connect to the MS SQL server ? The ODBC driver has the support of filter setting but I am not really familiar with what happen at the driver level. Sture Dings?yr wrote: > Hi again and thanx for answer.. > > I have tried this (in my mapfile, displaying an GIF image): > > If i use a regular mapserver filter expression, my layer gets correctly filtered. E.g: FILTER ('[servicename]' = 'Camping') > > But if i use a SQL WHERE clause e.g. like this: FILTER "servicename = 'Camping'" no records are shown in my map. > > I read that when using OGR and FILTER you should include "WHERE" in the filter (http://ms.gis.umn.edu/docs/howto/ogr_howto), so i tried that also: FILTER "WHERE servicename = 'Camping'". This time all the records are shown in the map. > > So i guess the WFS FILTER transelates the XML into a WHERE clause, but i get the same result as with the WFS FILTER.... All records are returned...the filter expression is not "used"...? > > Is this "a bug" or is this a feature that will be implemented later in Mapserver? > > As mentioned before...this problem is only with OGR layers..not SHAPE, POSTGIS... > > Regards > Sture > > > > The way things work is that the filter encoding is transformed into something suitable for each layer and the layer's filter element is set with it : > * For shape file, It will be a normal mapserver expression, > * for postgis, oracle and ogr, it will be transformed into an sql expression. For OGR It should result into something like WHERE > (Item_name='Item_Value') > > Bug http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1292 has more details on this. > > What you could try is to set manually a valid sql expression on you layer's filter and see if that works. > > Later, > > Sture Dings?yr wrote: > >>Hi all >> >>Been doing some testing with Mapserver WFS and FILTER. >> >>When the Mapserver layer is getting its data from e.g. SHAPE, POSTGRESQL the WFS FILTER functions seem to work fine. I can filter data by using both BBOX or e.g. a PropertyIsLike query. >> >>But...i was now testing the FILTER functions on a layer where the data is from a MS SQL server (point layer). I am fetching my data via OGR. Mapserver renders the layer just fine, i can use WFS BBOX FILTER, but when i try a WMS FILTER using e.g. WFS PropertyIsLike query, Mapserver returns all records in the layer. Nothing gets filtered... >> >>Should not Mapserver (via WFS) filter data in the same way regardless >>of how the data is fetched...that is e.g. via SHAPE, POSTGRESQL, OGR >>etc >> >>Regards >>Sture > > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From hgirard at CGQ.QC.CA Wed Apr 5 11:00:09 2006 From: hgirard at CGQ.QC.CA (Hugo Girard) Date: Wed, 5 Apr 2006 14:00:09 -0400 Subject: I try again and again. but nothing Message-ID: I have host my mapserver application on my web server for a site web. Some problems occurs when i zoom or pan the map. It really strange because i didnt appear always. Visit my application : www.randonneursdusaguenay.qc.ca and clic the option on the left "O? marcher ?" my application will appear. Play with it and see the bug. If someone have an idea of the solution to resolve this problem, tell me plz. J'ai h?berger mon application mapserver sur mon server web pour qu'elle soit accessible pour un site web. Plusieurs erreurs apparaissent lorsque je fais des zooms ou des d?placements dans la carte. (ex. le zoom se bloque a 10, ma l?gende disparait, un bel ?cran blanc apparait, etc). C'est tr?s ?trange car les erreurs n'apparaisse pas de facon r?guli?res. Allez voir mon application : www.randonneursdusaguenay.qc.ca sous l'option "O? marcher?". Jouer avec mon application et vous allez surment constater les erreurs. Si quelqu'un ? une id?e de la solution afin de corriger ce "bug" dites moi le au plus vite svp. Thanks a lot for your help !!! (sorry for my english ;) ) Merci beaucoup pour votre aide !!! Hugo Girard Stagiaire au Centre de g?omatique du Qu?bec, Chicoutimi hgirard at cgq.qc.ca -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Wed Apr 5 12:01:35 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 5 Apr 2006 15:01:35 -0400 Subject: Add new symbol in symbols.sym In-Reply-To: Message-ID: Jonathan, Try putting quotes around the symbol name in the class blocks. -Steve W Jonathan wrote: > Dear all, > > I added a new symbol in the symbols.sym please see code below. > > Symbol > Type PIXMAP > IMAGE 'view1.gif' > Name 'viewpoint1' > Transparent 3 > END > END > > however when I used it for a layer, this error came up: *Warning*: > [MapServer Error]: msLoadMap(): Undefined overlay symbol "viewpoint" in > class 1, style 0 of layer ViewPoints. > > the layer in the map file is defined as: > > LAYER > NAME ViewPoints # name of the layer > METADATA > "DESCRIPTION" "View Points" > END > TYPE point # feature type > STATUS ON > DATA viewpoints > CLASSITEM "viewAngle" > CLASS > EXPRESSION "0" > SYMBOL viewpoint0 > SIZE 8 > END > CLASS > EXPRESSION "1" > SYMBOL viewpoint1 > SIZE 15 > TEMPLATE "ttt_query.html" > NAME "viewangle1" > COLOR 255 0 0 > END > CLASS > EXPRESSION "2" > SYMBOL viewpoint2 > SIZE 8 > END > TOLERANCE 5 > END > > > Any idea why this is happenning? > regards > > -- > Jonathan From igorpsc at YAHOO.COM.BR Wed Apr 5 12:41:44 2006 From: igorpsc at YAHOO.COM.BR (igor pinheiro) Date: Wed, 5 Apr 2006 19:41:44 +0000 Subject: logo above the map Message-ID: Hi list, Does anybody know how to put a logo (image.gif) above the generated map? Thanks, Igor --------------------------------- Abra sua conta no Yahoo! Mail - 1GB de espa?o, alertas de e-mail no celular e anti-spam realmente eficaz. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dnuttall at DNLT.COM Wed Apr 5 12:52:58 2006 From: dnuttall at DNLT.COM (Dave Nuttall) Date: Wed, 5 Apr 2006 14:52:58 -0500 Subject: Is this feasible? Message-ID: Suppose there was a low-budget entity in a "developing nation" where either spatial data for roads and public places does not exist or is closely held by the CIA or Russians in their vaults of satellite data, etc. Even though it would be quite labor intensive, the low budget-entity would be able to drive the roads/streets/highways and theoretically create spatial data by running a GPS that continuously dumps to a laptop in the passenger's seat. My initial response to the group that wants me to help them is that it would be quite a bit more difficult without a reasonable base/starting map that is moderately accurate. Does anyone on the list know of similar efforts to create a reasonably accurate database that could be used to generate "tourist maps"? TIA. Dave Nuttall San Antonio, TX -------------- next part -------------- An HTML attachment was scrubbed... URL: From s.pashby at POSTGRAD.CURTIN.EDU.AU Wed Apr 5 16:13:16 2006 From: s.pashby at POSTGRAD.CURTIN.EDU.AU (Steve Pashby) Date: Wed, 5 Apr 2006 23:13:16 +0000 Subject: Geodatabase tables Message-ID: Ken Lord GMAIL.COM> writes: > > Hi Steve, Frank, > > Steve, If i understand it correctly, you have a route event feature > class in your personal geodatabase that you want to display in > MapServer, a product of some linear referencing work. > > Please correct me if I'm wrong, but you are probably setup so that: > > - you have a feature class made up of lines, your roads, which define > a route. These lines have a route ID to identify the route, and > another attribute which defines the order in which the road lines make > up the route from start to finish. > - you have an event table defining points or lengths along the line > with associated attributes, such as 'a crash happened here', 'speed > limit on this section', etc. This table also has a Route ID that > matches the appropriate route in the feature class. This non-spatial > table has a Measure attribute that describes how far along the route > the event is if its a point, or 2 measure attributes with its start > and finish distances along the route if its a segment. > > ... And you would like to show these events located correctly along > your roads in MapServer, from a personal geodatabase. > > ArcIMS (sorry to say that evil word) displays route events from > personal geodatabases without any problem. > > Aside from having Frank wave his magical coding wand, I would suggest > that you look into the linear referencing functions in PostGIS 1.1.1. > however the spatial SQL in your DATA string may get out a bit out of > hand and slow down the generation of your maps. > > To keep the 'on-the-fly' processing to a minimum, once you have your > route events created, you might want to just convert them into actual > point / line features, regardless of the format used to hold the data. > > Cheers, > Ken Lord > Vancouver BC > > On 4/5/06, Frank Warmerdam pobox.com> wrote: > > Steve Pashby wrote: > > > ============================================================================== > > > Thanks very much for the reply Frank. However, my tables are not specifically > > > spatial tables (holding x,y coords), but rather they have a unique field > > > (Route_ID) that is a link to a shapefile (containing road centre-line data) > > > and each road has its own unique Route-ID. This is (i think) what links the > > > two together. > > > > Steve, > > > > I have never seen a personal geodatabase setup like this. If you make it > > available to me I might have a look. > > > > When you speak of a "personal geodatabase", you do specifically mean this > > in the ESRI ArcGIS sense, right? > > > > It might also make sense for you to access the database via a plain ODBC > > connection to get the data out rather than having OGR treat it as a > > personal geodatabase. > > > > Best regards, > > -- > > ---------------------------------------+----------------------------------- --- > > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam pobox.com > > light and sound - activate the windows | http://pobox.com/~warmerdam > > and watch the world go round - Rush | President OSGF, http://osgeo.org > > > > G'day, Thankyou so much for all the help. I'm still in the early planning stage of this project and at this point have not set up the geodatabase - as i don't want to spend ages setting it up only to find out it won't work ! Ken Lords response hit the nail on the head, and it is being done in ERSI ArcGIS 9.0, using a Personal Geodatabase (which to my limited understanding is not the same as using SDE and Oracle - this is termed a multi-user geodatabase and has a lot more functionality as the size is unlimited. The Personal Geodatabase is limited to 2Gb in size and simply uses Microsoft Access tables without having to go through SDE.) My initial designs were to have a personal geodatabase in the C: drive called "Corporate_Roads.mdb", and then to have a feature dataset called "Roads", from this i would have a feature class called "Road_Centre_line" (Line type) containing a Route_ID, and a road name attribute. Then i would have another feature class called "Surface_Condition" (a table) with the Route_ID (which links it back to the feature class Road_Centre_Line), Condition_Rating (a rating from 0-6), From_Measure (giving the start linear distance - starts a zero and increases), and a To_Measure (giving the finish linear distance). I hope you can make sense of this ! Many thanks. Steve From ierickson at ANALYGIS.COM Wed Apr 5 16:29:15 2006 From: ierickson at ANALYGIS.COM (Ian Erickson) Date: Wed, 5 Apr 2006 16:29:15 -0700 Subject: Bug in Mapserver-4.8.3 In-Reply-To: <7CDD7B94357FD5119E800002A537C46E0B8B7E82@s5-ccr-r1.ccrs.nrcan.gc.ca> Message-ID: I have a client that has encountered the exact same issues... Although they're running a MS4W build including 4.8.1. The attached screen shot illustrates the problem. Also, the client states that the problem doesn't appear until the font size is set greater than 16. Ian Erickson AnalyGIS, LLC http:// www.analygis.com Doyon, Jean-Francois wrote: >Well then, I don't know :) We'll have to see if anyone reports any problems >... > >I've run into problems with fonts, but they were freetype based issues in >the end. > >I'm running 4.8.1 without problems. > >J.F. > >-----Original Message----- >From: wbr [mailto:wbr at detemobil.de] >Sent: April 5, 2006 1:01 AM >To: Doyon, Jean-Francois >Cc: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] Bug in Mapserver-4.8.3 > >Doyon, Jean-Francois schrieb: > > >>Hmmm, and what about GD? >> >>Also, make sure you use "ldd /path/to/executable" to verify things, >>don't just rely on which packages you have installed, just in case. >> >>J.F. >> >> >> > >the gd library is 'gd2-2.0.33'. I only changed the source from mapserver >4.6.1 to mapserver 4.8.3 ! After compiling and installing the described >Effect takes place. > >hmmm... > >Wolfgang Brungert >-- >T-Mobile Deutschland GmbH >Program and Budget Management >(TRPD13-D) >Roddestr. 12 >48153 M?nster > >Phone: +49 251 977 4142 >Fax: +49 251 977 4149 >email: wolfgang.brungert at t-mobile.de >PGP Fingerprint: B3F8 D368 5EEF 3873 3C4F 423C 171E F217 7CA4 3467 > > > -------------- next part -------------- A non-text attachment was scrubbed... Name: 2006_04_04_144801_257_ms-test copy.jpg Type: image/jpeg Size: 44586 bytes Desc: not available URL: From warmerdam at POBOX.COM Wed Apr 5 18:42:33 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 5 Apr 2006 21:42:33 -0400 Subject: WCS maximum window size? In-Reply-To: <24B2390C-6EB5-4B35-8EE1-ECB85A0636F4@fao.org> Message-ID: Jeroen Ticheler wrote: > Hi, > Is there a way to configure a WCS to only allow images with a maximum > size (e.g. 1000*1000 pixels)? Or should this be handled in another manner? > Thanks, > Jeroen Jeroen, There is a "maximum size" parameter for mapserver that limits the largest image that can be requested from mapserver. I believe it applies to WCS as well, though I'm not actually sure about that. The default value of the parameter is 2048, so no image larger than 2048 x 2048 could be requested. You can alter it with the MAXSIZE keyword in your MAP section. eg. MAXSIZE 10000 (to allow up to 10000 x 10000 images). If this parameter does not apply to WCS then I think we should consider 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 OSGF, http://osgeo.org From woodbri at SWOODBRIDGE.COM Wed Apr 5 19:04:35 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 5 Apr 2006 22:04:35 -0400 Subject: Is this feasible? In-Reply-To: <008f01c658ea$8a1596a0$0a00a8c0@GURU2GO2> Message-ID: Check out: http://www.openstreetmap.org/ Dave Nuttall wrote: > Suppose there was a low-budget entity in a ?developing nation? where > either spatial data for roads and public places does not exist or is > closely held by the CIA or Russians in their vaults of satellite data, etc. > > > > Even though it would be quite labor intensive, the low budget-entity > would be able to drive the roads/streets/highways and theoretically > create spatial data by running a GPS that continuously dumps to a laptop > in the passenger?s seat. > > > > My initial response to the group that wants me to help them is that it > would be quite a bit more difficult without a reasonable base/starting > map that is moderately accurate. > > > > Does anyone on the list know of similar efforts to create a reasonably > accurate database that could be used to generate ?tourist maps?? > > > > TIA. > Dave Nuttall > > San Antonio, TX > > > > > > > > > From woodbri at SWOODBRIDGE.COM Wed Apr 5 19:32:38 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 5 Apr 2006 22:32:38 -0400 Subject: PHP/Mapscript, apache2, mod_php - What is the status? In-Reply-To: <002d01c65238$85b5acc0$0302a8c0@windoze> Message-ID: Benjamin Wragg wrote: > Hi Steve, > > Sorry to email you off the list but I was wondering if you got any > answers to your mapserver question about "PHP/Mapscript, apache2, > mod_php - What is the status?" I also am interested in where things are at. > > Cheers, > > Benjamin Wragg Benjamin, I never got any answer to this on list. It would be nice if there was a plan to change the code to be more thread safe, but my guess is that will not happen without additional funding. The mapserver website has the following: http://mapserver.gis.umn.edu/docs/howto/verboselinuxinstall It seems to configure PHP5/Mapscript and apache2, but does not talk about thread safety and interestingly it does not configure Mapserver with --use_threads. I think DM Solutions would have to address any issues specific to PHP/Mapscript. Sean Gillies did a lot of work on thread safety (as did others) and wrote: http://mapserver.gis.umn.edu/docs/faq/thread_safety This document also lays out what some of the major areas (Mapserver parser, PROJ, GDAL, DB Connection pooling) that could be improved to be more thread safe without putting coarse locks around those areas. -Steve From kevinc at UPTIMEDATA.COM Wed Apr 5 19:37:32 2006 From: kevinc at UPTIMEDATA.COM (KevinC (UD)) Date: Wed, 5 Apr 2006 21:37:32 -0500 Subject: Success - Bill Kropla's 'Beginning MapServer' and Red Hat Message-ID: cc: Dave Nutall, Frank Warmerdam, MapServer List Mr. Kropla: I am now serving maps from the 'ClarkConnect' Red Hat distro. Basically, I experimented with the suggestions of Frank Warmerdam: Edit root/.bash_profile # This tells Red Hat explicitly where libs are stored add : 'LD_LIBRARY_PATH=/usr/local/lib' save, reboot, then try: % echo $LD_LIBRARY_PATH # should return '/usr/local/lib' Edit etc/ld.so.conf # usr/local/lib/ is not a 'trusted' lib directory and is not searched by ldconfig by default # this tells Red Hat to trust /usr/local/lib/ add : '/usr/local/lib/' save, then try: % ldconfig -vNX > liblist.txt # will contain usr/local/lib/lib* If I had listened to him earlier I would be further along, but I was hoping for a magic-bullet solution with no known side-effects. Attached find my install notes as an MS word file. I hope it has some utility for the next edition of BM:OSGISD. I thank everyone for helping me become a stronger Linux nerd! Kevin Carpenter, P.E. 20007 Jasperwood Cir Katy, TX 77449; USA Tel: 281/599-9611 Cel: 281/773-7731 Skype: txengineer UptimeData Web & Apps code KevinC at UptimeData.com www.UptimeData.com Value Instrument & Optical Corp. engineering & proto of optics & instruments optoengineer at valinoptx.com, www.valinoptx.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: MAPSERVER INSTALL NOTES.doc Type: application/msword Size: 33792 bytes Desc: not available URL: From warmerdam at POBOX.COM Wed Apr 5 19:45:37 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 5 Apr 2006 22:45:37 -0400 Subject: ANGLE parameter In-Reply-To: <443368E2.6040306@ci.stpaul.mn.us> Message-ID: Blammo wrote: > All, > > I'm trying to get a test going using the ANGLE map parameter but not > having much success. > > I found a reference to a "non-GDAL" raster, (what the heck does that > mean) Bob, MapServer supports reading rasters via means other than GDAL. But there are a number of raster features which are only available when operating on rasters read through GDAL. I believe ANGLE support is one of those things that doesn't work for non-GDAL rasters. BTW, with GDAL enabled I think essentially all raster support is through GDAL so this isn't usually a big issue. > related to raster warping in the how-to for raster data. I > suppose this relates somehow to my source data, but how. > > Hmm, just found the requirement for the Projection info to be present > for each Layer and the Map. I'll try this out in the morning. This certainly used to be a key requirement. I think I have been trying to relax it in the related "nonsquare pixel" ability which is closely related to how angles are implemented. > Question, it says in the MAP file doc's that it doesn't work with > MapServer CGI, can the ANGLE param be passed in via the request? I > tried a couple of variations earlier today, > > map_test_angle=0 (no effect on rotation) > map_test_angle=1 (blank image) Hmm. It may be that I did not add support for setting ANGLE from cgi variables. I never use this myself, and I'm pretty uncertain how this is supposed to work in MapServer. But if doing the above caused a blank image, it must be doing something! > and the parameter seems to be heard by the MapServer but anything other > than a value of "0" returns an empty image. This was before discovering > the info about the projection info requirements however. So maybe it > will work after all. Right, please report back if things still don't work when you have projections on your map and layers. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From warmerdam at POBOX.COM Wed Apr 5 20:07:13 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 5 Apr 2006 23:07:13 -0400 Subject: PHP/Mapscript, apache2, mod_php - What is the status? In-Reply-To: <44347DC6.4030407@swoodbridge.com> Message-ID: Stephen Woodbridge wrote: > Benjamin, > > I never got any answer to this on list. It would be nice if there was a > plan to change the code to be more thread safe, but my guess is that > will not happen without additional funding. ... > I think DM Solutions would have to address any > issues specific to PHP/Mapscript. Steve, I think you have a point that if thread safe mod_php use of mapserver is important to people, someone is going to have to put forward money or developer time to make it work smoothly. I personally think it wouldn't be that hard to get it going modulo a few risky areas. And the more mapserver users depending on thread safety, the move loving mapserver thread safety will get. DM Solutions (or perhaps MapGears) would be a logical place to direct money to address this issue. In the future, it is my hope that many organizations interested in MapServer will become sponsors of OSGeo listing MapServer as the project they want to direct the majority of their support to. How that money gets spent would (likely) be up to the MapServer PSC, but if the sponsors beat the drum about mod_php support, I'm sure some would go in that direction. The other (in some ways preferrable) approach is for a decent developer with a long term interest in mod_php support to roll up their sleeves and work away at it. I'm sure DM Solutions and the rest of us would be supportive and cooperative. > Sean Gillies did a lot of work on thread safety (as did others) and wrote: > > http://mapserver.gis.umn.edu/docs/faq/thread_safety > > This document also lays out what some of the major areas (Mapserver > parser, PROJ, GDAL, DB Connection pooling) that could be improved to be > more thread safe without putting coarse locks around those areas. Yes, this is a useful guideline. Note that some areas (ie. GDAL) use a "big lock" and so could suffer congestion in heavy multi-threaded use, but should be pretty safe. Others, like OGR don't have locking yet and are just very dangerous right now. Like you, I also think there are some specific PHP related issues about which I have no clue. 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 OSGF, http://osgeo.org From sdc at SDC.COM.AU Thu Apr 6 01:03:58 2006 From: sdc at SDC.COM.AU (Stephen Davies) Date: Thu, 6 Apr 2006 17:33:58 +0930 Subject: Performance hints please In-Reply-To: Message-ID: G'day all. Does anybody have a howto on Mapserver performance enhancement? My particular environment of interest is a relatively small set of geometries in a PostGIS database and a collection of geotiff aerial photography images onto which I overlay the geometries. The geometries are fully indexed, relatively static and vacuum analyzed every night. One of the options that users have is to request a "movie" of up to 20 frames; each of which consists of a background raster plus up to about five circular geometries, about five points and maybe ten other lines/polygons. The amount of geometry involved is so small, the bottleneck has to be the raster processing. The images are 2m/pixel and are typically 20 - 150 Mb each. The frame extents include most if not all of an image so tiling does not seem relevant. I have specified 80% JPEG as the output to minimise final image size and this seems successful (at least in terms of size and hence download time) I am looking for ways to reduce the time taken in the image generation phase. TIA, Stephen Davies ======================================================================= This email is for the person(s) identified above, and is confidential to the sender and the person(s). No one else is authorised to use or disseminate this email or its contents. Stephen Davies Consulting Voice: 08-8177 1595 Adelaide, South Australia. Fax: 08-8177 0133 Computing & Network solutions. Mobile:0403 0405 83 From b.vdeijnden at AGI.RWS.MINVENW.NL Thu Apr 6 01:08:37 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Thu, 6 Apr 2006 10:08:37 +0200 Subject: Performance hints please Message-ID: One option could be generating overviews for your tiff files using gdaladdo. See section 10 of the following HOWTO (Raster Display Performance Tips): http://mapserver.gis.umn.edu/docs/howto/raster_data Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Stephen Davies Verzonden: donderdag 6 april 2006 10:04 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] Performance hints please G'day all. Does anybody have a howto on Mapserver performance enhancement? My particular environment of interest is a relatively small set of geometries in a PostGIS database and a collection of geotiff aerial photography images onto which I overlay the geometries. The geometries are fully indexed, relatively static and vacuum analyzed every night. One of the options that users have is to request a "movie" of up to 20 frames; each of which consists of a background raster plus up to about five circular geometries, about five points and maybe ten other lines/polygons. The amount of geometry involved is so small, the bottleneck has to be the raster processing. The images are 2m/pixel and are typically 20 - 150 Mb each. The frame extents include most if not all of an image so tiling does not seem relevant. I have specified 80% JPEG as the output to minimise final image size and this seems successful (at least in terms of size and hence download time) I am looking for ways to reduce the time taken in the image generation phase. TIA, Stephen Davies ======================================================================= This email is for the person(s) identified above, and is confidential to the sender and the person(s). No one else is authorised to use or disseminate this email or its contents. Stephen Davies Consulting Voice: 08-8177 1595 Adelaide, South Australia. Fax: 08-8177 0133 Computing & Network solutions. Mobile:0403 0405 83 Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From r.mueller at UNICOMP-BERLIN.DE Thu Apr 6 01:20:20 2006 From: r.mueller at UNICOMP-BERLIN.DE (=?ISO-8859-1?Q?=22R=2E_M=FCller=22?=) Date: Thu, 6 Apr 2006 10:20:20 +0200 Subject: logo above the map In-Reply-To: <20060405194144.93526.qmail@web31602.mail.mud.yahoo.com> Message-ID: hi igor, as always there are serveral solutions : 1. just put transparent png or gif-image over the map (placing it through css stylesheets) in your html 2. use the TRANSFORM property of the LAYER-section in your map-file to turn the world2screen transformation OFF and put some images there in screen-coordinates. with this this approach your logo will be a solid part of your output-image 3. ... many more ... ? ronald igor pinheiro wrote: > Hi list, > Does anybody know how to put a logo (image.gif) above the generated map? > Thanks, > Igor > > ------------------------------------------------------------------------ > Abra sua conta no Yahoo! Mail > > - 1GB de espa?o, alertas de e-mail no celular e anti-spam realmente eficaz. -- ********************************************************* *M-Unicomp GmbH * *Dipl.-Ing. Ronald M?ller *Softwareentwicklung * *Plauener Stra?e 163-165, Haus 11 *13053 Berlin * *fon : +49 ( 0 ) 30 / 98 69 61 54 *mobil : +49 ( 0 ) 172 / 93 95 00 4 *fax : +49 ( 0 ) 30 / 98 69 61 55 *email : r.mueller at unicomp-berlin.de *web : www.unicomp-berlin.de ******************************************************** From xnzhang11 at GMAIL.COM Thu Apr 6 02:48:08 2006 From: xnzhang11 at GMAIL.COM (Jonathan) Date: Thu, 6 Apr 2006 10:48:08 +0100 Subject: Add new symbol in symbols.sym In-Reply-To: <4434140F.2000607@swoodbridge.com> Message-ID: That's not the problem. Thanks anyway. -------------- next part -------------- An HTML attachment was scrubbed... URL: From h-j.luecking at GGS-BHV.DE Thu Apr 6 02:44:31 2006 From: h-j.luecking at GGS-BHV.DE (=?ISO-8859-15?Q?Heinz-Josef_L=FCcking?=) Date: Thu, 6 Apr 2006 11:44:31 +0200 Subject: clustering points Message-ID: I?m looking for a solution or hints on clustering points depending on distance. I would like to have just one symbol with diferent sizes depending on how many points are "behind" that symbol. thx, Heinz From e.witteveen at HAWARIT.COM Thu Apr 6 03:08:47 2006 From: e.witteveen at HAWARIT.COM (Eduard Witteveen) Date: Thu, 6 Apr 2006 12:08:47 +0200 Subject: Retrieve a vector layer without a template (flash) Message-ID: Hello list, I retrieve a singlelayer flash movie by using the following url: ->http://localhost/cgi-bin/mapserv.exe?map=/home/mapserver/flash.map&mode=map However, when i want to retrieve a vector layer flash movie, i have to retrieve a multi-layer flash movie. This requires me to put define the a TEMPLATE, IMAGEPATH and a IMAGEURL. Is there noto return single-layer-flash-movies / svg /gml dat a way to retrieve a flash vectorlayer the same way as i can retrieve the singlelayer(rasterbased)? -- Ing. Eduard Yeb Witteveen Software Engineer Hawar Information Technology bv lid Dijkoraad Groep De Wymerts 7 8701 WT Bolsward Tel: +31 (0)515 570333 Fax: +31 (0)515 570335 http://www.hawarit.com/ nl_NL fy_NL en_US From e.witteveen at HAWARIT.COM Thu Apr 6 03:12:13 2006 From: e.witteveen at HAWARIT.COM (Eduard Witteveen) Date: Thu, 6 Apr 2006 12:12:13 +0200 Subject: Retrieve wmf by using wms Message-ID: Hello list, How can i enable mapserver to output swf flash movies for it's layers? (any other vector based format would also be welcome (svg, gml?)) Currently my mapserver capabilities.xml tells me i can use the following formats: image/gif, image/png, image/png; mode=24bit, image/jpeg, image/wbmp, image/tiff I have compiled the binairy with the following output-support: GIF,PNG,JPEG,WBMP,SWF,SVG I've attached my capabilities.xml for version information / support options -- Ing. Eduard Yeb Witteveen Software Engineer Hawar Information Technology bv lid Dijkoraad Groep De Wymerts 7 8701 WT Bolsward Tel: +31 (0)515 570333 Fax: +31 (0)515 570335 http://www.hawarit.com/ nl_NL fy_NL en_US -------------- next part -------------- A non-text attachment was scrubbed... Name: capabilities.xml Type: text/xml Size: 9563 bytes Desc: not available URL: From Jukka.Rahkonen at MMMTIKE.FI Thu Apr 6 03:17:35 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Thu, 6 Apr 2006 13:17:35 +0300 Subject: Performance hints please Message-ID: Hi, A very short conclusion first: Put logging on and check the rendering times. When it comes to imagery, if speed is the only thing that matters the use tiled tiff files with overviews and possibly limit the scales to the one of the original imagery + multipied/divided by powers of two. These conclusions are based on a quick but rather controlled Geotiff - JPEG 2000 speed comparison I made today. My hypothesis, often mentioned on mailing list, was that tiled Geotiff with overviews gives you the the best you can get with Mapserver. Short report follows. Materials: - single Geotiff image (10000 by 10000 pixels) created with gdal_translate from FWTools 0.9.8 package with TILED=YES option, planned to be widened to tileindex of more than hundred images - overviews created by using gdaladdo -r average 2 4 8 16 - Pentium Xeon 3 GHz, single processor - image on external Lacie Biggest disk F800 in RAID 0 mode, unit connected by standard Firewire only (instead of Firewire 800) - MS4W version 1.4.1 Method: I made the simplest possible mapfile and asked Mapserver to send image in "map" mode to browser while logging rendering times. Output was held in 600 by 600 pixels while I changed the extents of the input. Results: This is an example about what I got to the logfile: msDrawRasterLayerLow(Geotiff): entering.\r msDrawGDAL(): src=99,8701,1200,1200, dst=0,0,600,600\r msDrawGDAL(): red,green,blue,alpha bands = 1,2,3,0\r msDrawMap(): Layer 0 (Geotiff), 0.080s\r msDrawMap(): Drawing Label Cache, 0.000s\r msDrawMap() total time: 0.080s\r msDrawRasterLayerLow(Geotiff): entering.\r msDrawGDAL(): src=99,8701,1200,1200, dst=0,0,600,600\r msDrawGDAL(): red,green,blue,alpha bands = 1,2,3,0\r msDrawMap(): Layer 0 (Geotiff), 0.090s\r msDrawMap(): Drawing Label Cache, 0.000s\r msDrawMap() total time: 0.090s\r So I were asking in this case an area of 1200 by 1200 pixels from somewhere in the middle of the original file to be squeezed to 600 by 600 pixels. I got every time two blocks of information into the log and without any better understandment I just counted the two total times together. I hope that is relevant way to get the total total time :-) Table 1. Total times needed to generate 600 by 600 pixel output from variable sized source areas inside Geotiff image input area "total time 1" "total time 2" "total total" 600x600 0.06 0.06 0.12 1200x1200 0.08 0.09 0.17 2400x2400 0.08 0.07 0.15 900x900 0.25 0.14 0.39 1500x1500 0.24 0.16 0.40 Conclusion: Mapserver performed in this test best with Geotiff files if the requested area in source image is equal to the dimensions of the output, or to those dimensions multiplied with 2 or 4. I believe the case would be the same with factors of 8 and 16 because of those overviews were as well created for the image. If the area is not sized as "2 to power of something", the time needed to render the output is more than two times longer. P.S. I am not going to continue my tests with JPEG 2000 or enlarge the test from single image to tile indexes this time. It was immediately obvious that JPEG 2000 through the driver that MS4W is using is not competative. Renderign from my JPEG 2000 image takes about 10 times more time than from optimised Geotiff image. With a better driver I guess that this speed could be increased to about the same level as it is with ECW format. Now MS4W is at least 2-3 times faster with ECW than with JPEG 2000, but still Geotiff is 2-3 times faster that ECW. I just have to believe what the ol' men have said many times here: tiled tiff files with overviews give you the best you can get with Mapserver. I believe that this speed will be beaten in case of single image layer used as backdrop imagery once we have a geospatial JPIP server sending JPEG 2000 streams to the client. I have been awaiting for that for years. However, I presume that this in not the most common way to utilise Mapserver but it is usually used to combine several data sources on server side. In this case JPEG 2000, ECW and the like can only offer some 90% saving in disk space but you have to pay for that in efficiency. Regards, -Jukka Rahkonen- JPEG 2000 fan >L?hett?j?: UMN MapServer Users List puolesta: Eijnden, B. van den (Bart) >L?hetetty: to 6.4.2006 11:08 >Re: [UMN_MAPSERVER-USERS] Performance hints please >One option could be generating overviews for your tiff files using gdaladdo. >See section 10 of the following HOWTO (Raster Display Performance Tips): >http://mapserver.gis.umn.edu/docs/howto/raster_data >Best regards, >Bart >>-----Oorspronkelijk bericht----- >>Van: UMN MapServer Users List >>Verzonden: donderdag 6 april 2006 10:04 >>Onderwerp: [UMN_MAPSERVER-USERS] Performance hints please >>G'day all. >>Does anybody have a howto on Mapserver performance enhancement? >>My particular environment of interest is a relatively small set of >>geometries in a PostGIS database and a collection of geotiff aerial >>photography images onto which I overlay the geometries. >>The geometries are fully indexed, relatively static and vacuum analyzed >>every night. >>One of the options that users have is to request a "movie" of up to 20 >>frames; each of which consists of a background raster plus up to about >>five circular geometries, about five points and maybe ten other >>lines/polygons. >>The amount of geometry involved is so small, the bottleneck has to be >>the raster processing. The images are 2m/pixel and are typically 20 - >>150 Mb each. The frame extents include most if not all of an image so >>tiling does not seem relevant. >>I have specified 80% JPEG as the output to minimise final image size and >>this seems successful (at least in terms of size and hence download >>time) >>I am looking for ways to reduce the time taken in the image generation >>phase. >>TIA, >>Stephen Davies From e.witteveen at HAWARIT.COM Thu Apr 6 03:17:59 2006 From: e.witteveen at HAWARIT.COM (Eduard Witteveen) Date: Thu, 6 Apr 2006 12:17:59 +0200 Subject: Retrieve a vector layer without a template (flash) In-Reply-To: <4434E8AF.2060603@HAWARIT.COM> Message-ID: > Hello list, > > I retrieve a singlelayer flash movie by using the following url: > ->http://localhost/cgi-bin/mapserv.exe?map=/home/mapserver/flash.map&mode=map > > > However, when i want to retrieve a vector layer flash movie, i have to > retrieve a multi-layer flash movie. This requires me to put define the a > TEMPLATE, IMAGEPATH and a IMAGEURL. > > Is there noto return single-layer-flash-movies / svg /gml dat a way to > retrieve a flash vectorlayer the same way as i can retrieve the > singlelayer(rasterbased)? Should really be: Is there not a way to return single-layer-flash-movies / svg /gml, the same way as i can retrieve the singlelayer(rasterbased)? -- Ing. Eduard Yeb Witteveen Software Engineer Hawar Information Technology bv lid Dijkoraad Groep De Wymerts 7 8701 WT Bolsward Tel: +31 (0)515 570333 Fax: +31 (0)515 570335 http://www.hawarit.com/ nl_NL fy_NL en_US From Jukka.Rahkonen at MMMTIKE.FI Thu Apr 6 03:48:10 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Thu, 6 Apr 2006 13:48:10 +0300 Subject: EXTENT vs. actual pixel count - is this strange or not? Message-ID: Hi again, While I was doing my simple performance tests one thing was wondering me. First I defined 300 meters wide and hight extent to my mapfile like this: EXTENT 2540050 7220050 2540350 7220350 On one corresponding line in the logfile I see this: msDrawGDAL(): src=99,9299,601,601, dst=0,0,600,600\r I suppose this is telling the starting point of my request as pixel coordinates and then the count of the pixels to be picked up. This is fine with my 0.5 metre pixel size. I believe one extra pixel is needed because it is the pixel centre that the coordinates are referring to. What I wonder is this: for an area of 600x600 meters mapfile and logfile look like this: EXTENT 2540050 7220050 2540650 7220650 msDrawGDAL(): src=99,8699,1202,1202, dst=0,0,600,600\r and for an area of 1200x1200 meters like this: EXTENT 2540050 7220050 2541250 7221250 msDrawGDAL(): src=98,7498,2404,2404, dst=0,0,600,600\r Should it possibly be "1201,1201" instead of "1202,1202" and "2401,2401" instead of "2404,2404"? Regards, -Jukka- From b.vdeijnden at AGI.RWS.MINVENW.NL Thu Apr 6 03:36:27 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Thu, 6 Apr 2006 12:36:27 +0200 Subject: Retrieve wmf by using wms Message-ID: It is not possible to advertize those formats in WMS Capabilities unfortunately. See also: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=455 http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1072 Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Eduard Witteveen Verzonden: donderdag 6 april 2006 12:12 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] Retrieve wmf by using wms Hello list, How can i enable mapserver to output swf flash movies for it's layers? (any other vector based format would also be welcome (svg, gml?)) Currently my mapserver capabilities.xml tells me i can use the following formats: image/gif, image/png, image/png; mode=24bit, image/jpeg, image/wbmp, image/tiff I have compiled the binairy with the following output-support: GIF,PNG,JPEG,WBMP,SWF,SVG I've attached my capabilities.xml for version information / support options -- Ing. Eduard Yeb Witteveen Software Engineer Hawar Information Technology bv lid Dijkoraad Groep De Wymerts 7 8701 WT Bolsward Tel: +31 (0)515 570333 Fax: +31 (0)515 570335 http://www.hawarit.com/ nl_NL fy_NL en_US Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From candalt at ONLINE.NO Thu Apr 6 04:01:33 2006 From: candalt at ONLINE.NO (=?iso-8859-1?Q?Sture_Dings=F8yr?=) Date: Thu, 6 Apr 2006 13:01:33 +0200 Subject: SV: [UMN_MAPSERVER-USERS] WFS Filter Message-ID: I am using Microsoft ODBC (via a DSN created in windows) to fetch my data. It is a really simple tabel, so a SQL where clause is of cource no problem in ODBC... But...who can confirm if this behaviour is a mapserver related thing or not? The problem sems to be that Mapserver, when using OGR/ODBC, do not create a correct SQL WHERE clause when FILTER is used (both in WFS and directly in the mapfile). All the data is fetched -----Opprinnelig melding----- Fra: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] P? vegne av Yewondwossen Assefa Sendt: 5. april 2006 19:38 Til: MAPSERVER-USERS at LISTS.UMN.EDU Emne: Re: [UMN_MAPSERVER-USERS] WFS Filter You are right, the filter transforms it to an expression with a WHERE in front of it. This expression should then be used by the underlying driver when retreiving data. I am assuming that your are using ODBC to connect to the MS SQL server ? The ODBC driver has the support of filter setting but I am not really familiar with what happen at the driver level. Sture Dings?yr wrote: > Hi again and thanx for answer.. > > I have tried this (in my mapfile, displaying an GIF image): > > If i use a regular mapserver filter expression, my layer gets correctly filtered. E.g: FILTER ('[servicename]' = 'Camping') > > But if i use a SQL WHERE clause e.g. like this: FILTER "servicename = 'Camping'" no records are shown in my map. > > I read that when using OGR and FILTER you should include "WHERE" in the filter (http://ms.gis.umn.edu/docs/howto/ogr_howto), so i tried that also: FILTER "WHERE servicename = 'Camping'". This time all the records are shown in the map. > > So i guess the WFS FILTER transelates the XML into a WHERE clause, but i get the same result as with the WFS FILTER.... All records are returned...the filter expression is not "used"...? > > Is this "a bug" or is this a feature that will be implemented later in Mapserver? > > As mentioned before...this problem is only with OGR layers..not SHAPE, POSTGIS... > > Regards > Sture > > > > The way things work is that the filter encoding is transformed into something suitable for each layer and the layer's filter element is set with it : > * For shape file, It will be a normal mapserver expression, > * for postgis, oracle and ogr, it will be transformed into an sql expression. For OGR It should result into something like WHERE > (Item_name='Item_Value') > > Bug http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1292 has more details on this. > > What you could try is to set manually a valid sql expression on you layer's filter and see if that works. > > Later, > > Sture Dings?yr wrote: > >>Hi all >> >>Been doing some testing with Mapserver WFS and FILTER. >> >>When the Mapserver layer is getting its data from e.g. SHAPE, POSTGRESQL the WFS FILTER functions seem to work fine. I can filter data by using both BBOX or e.g. a PropertyIsLike query. >> >>But...i was now testing the FILTER functions on a layer where the data is from a MS SQL server (point layer). I am fetching my data via OGR. Mapserver renders the layer just fine, i can use WFS BBOX FILTER, but when i try a WMS FILTER using e.g. WFS PropertyIsLike query, Mapserver returns all records in the layer. Nothing gets filtered... >> >>Should not Mapserver (via WFS) filter data in the same way regardless >>of how the data is fetched...that is e.g. via SHAPE, POSTGRESQL, OGR >>etc >> >>Regards >>Sture > > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From Derek.Bird at XWAVE.COM Thu Apr 6 05:01:25 2006 From: Derek.Bird at XWAVE.COM (Bird, Derek (xwave)) Date: Thu, 6 Apr 2006 08:01:25 -0400 Subject: clustering points Message-ID: Good morning, I would build servlet/web application that returns GML .... Have it return a label, lat/long and quantity, then when you setup your .map file, change the symbol size depending on the quantity field. Checkout the mapserver site under GML, it has some examples that are quite straight forward. Cheers, Derek -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Heinz-Josef L?cking Sent: Thursday, April 06, 2006 5:45 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] clustering points I?m looking for a solution or hints on clustering points depending on distance. I would like to have just one symbol with diferent sizes depending on how many points are "behind" that symbol. thx, Heinz -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3084 bytes Desc: not available URL: From woodbri at SWOODBRIDGE.COM Thu Apr 6 05:04:55 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 6 Apr 2006 08:04:55 -0400 Subject: PHP/Mapscript, apache2, mod_php - What is the status? In-Reply-To: <443485E1.9070203@pobox.com> Message-ID: Frank, Thank you for your response. I kind of knew the answer, but I have had a few people ask me off list and thought it would be good to put a public face on this issue again. I was not aware of the fact that OGR is thread unsafe at the moment, you might want to add a note to Sean's Thread Saftey page about this fact so others don't waste time because the stumble into it. Best regards, -Steve W Frank Warmerdam wrote: > Stephen Woodbridge wrote: > >> Benjamin, >> >> I never got any answer to this on list. It would be nice if there was >> a plan to change the code to be more thread safe, but my guess is >> that will not happen without additional funding. > > ... > > I think DM Solutions would have to address any > >> issues specific to PHP/Mapscript. > > > Steve, > > I think you have a point that if thread safe mod_php use of mapserver > is important to people, someone is going to have to put forward money or > developer time to make it work smoothly. I personally think it wouldn't > be that hard to get it going modulo a few risky areas. And the more > mapserver users depending on thread safety, the move loving mapserver > thread safety will get. > > DM Solutions (or perhaps MapGears) would be a logical place to direct > money to address this issue. > > In the future, it is my hope that many organizations interested in > MapServer > will become sponsors of OSGeo listing MapServer as the project they want > to direct the majority of their support to. How that money gets spent > would (likely) be up to the MapServer PSC, but if the sponsors beat the > drum about mod_php support, I'm sure some would go in that direction. > > The other (in some ways preferrable) approach is for a decent developer > with a long term interest in mod_php support to roll up their sleeves > and work away at it. I'm sure DM Solutions and the rest of us would be > supportive and cooperative. > >> Sean Gillies did a lot of work on thread safety (as did others) and >> wrote: >> >> http://mapserver.gis.umn.edu/docs/faq/thread_safety >> >> This document also lays out what some of the major areas (Mapserver >> parser, PROJ, GDAL, DB Connection pooling) that could be improved to >> be more thread safe without putting coarse locks around those areas. > > > Yes, this is a useful guideline. Note that some areas (ie. GDAL) use > a "big lock" and so could suffer congestion in heavy multi-threaded use, > but should be pretty safe. Others, like OGR don't have locking yet and > are just very dangerous right now. Like you, I also think there are > some specific PHP related issues about which I have no clue. > > Best regards, From b.vdeijnden at AGI.RWS.MINVENW.NL Thu Apr 6 05:35:14 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Thu, 6 Apr 2006 14:35:14 +0200 Subject: date filters Message-ID: Hi list, I am having no luck with trying to apply a date filter to a LAYER, normal string filters work fine. It's a shapefile which has a dbf with a column of type date. Values in there are e.g. (12 april 2005): 12-4-2005 The filter I am currently trying is: FILTER ( '[EINDDATUM]' ge '2005-07' ) But this also select things like in april 2005. What am I doing wrong? Thanks in advance. I am using 4.8.1 PHP/Mapscript on RHE Linux. Best regards, Bart Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From fx.prunayre at OIEAU.FR Thu Apr 6 05:45:24 2006 From: fx.prunayre at OIEAU.FR (=?iso-8859-1?Q?Fran=E7ois_Prunayre?=) Date: Thu, 6 Apr 2006 14:45:24 +0200 Subject: SLD / Point symbolizer & Size Message-ID: Hi list, Using SLD and symbols, I get 2 differents behaviour using Mapserver & Geoserver. Differences is on point symbolizer and the size parameter. For example, using a png file of 20x20px http://sandre.eaufrance.fr/geo/sym/port.png in the following SLD for mapserver : http://xml.sandre.eaufrance.fr/exist/Geo/sld/REPOM.xml When I ask for 3 images (400x400px) for the REPOM layer at 3 differents scales, the symbol is getting bigger and bigger ... Size is set to 2. And units in the OGC SLD spec is defined as "The Size element gives the absolute size of the graphic in pixels encoded as a floating-point number." http://services.sandre.eaufrance.fr/geo/ouvrage?SERVICE=WMS &VERSION=1.1.1&REQUEST=GetMap&LAYERS=REPOM&WIDTH=400&HEIGHT=400&BBOX=-6,41,1 0,52&SRS=epsg:4326&SLD=http://xml.sandre.eaufrance.fr/exist/Geo/sld/REPOM.xm l http://services.sandre.eaufrance.fr/geo/ouvrage?SERVICE=WMS &VERSION=1.1.1&REQUEST=GetMap&LAYERS=REPOM&WIDTH=400&HEIGHT=400&BBOX=-6,48,0 ,50&SRS=epsg:4326&SLD=http://xml.sandre.eaufrance.fr/exist/Geo/sld/REPOM.xml http://services.sandre.eaufrance.fr/geo/ouvrage?SERVICE=WMS&VERSION=1.1.1&RE QUEST=GetMap&LAYERS=REPOM&WIDTH=400&HEIGHT=400&BBOX=-5,48,-4,49&SRS=epsg:432 6&SLD=http://xml.sandre.eaufrance.fr/exist/Geo/sld/REPOM.xml Using Geoserver with the same layers, when I ask for 3 images (400x400px) for the REPOM layer at 3 differents scales (same as previous query), the symbol is always the same size (15 as defined in the STYLES for geoserver). http://sandre.eaufrance.fr/geoserver/wms?SERVICE=WMS &VERSION=1.1.1&REQUEST=GetMap&LAYERS=REPOM&WIDTH=400&HEIGHT=400&BBOX=-6,41,1 0,52&SRS=epsg:4326&STYLES=REPOM&FORMAT=image/png http://sandre.eaufrance.fr/geoserver/wms?SERVICE=WMS &VERSION=1.1.1&REQUEST=GetMap&LAYERS=REPOM&WIDTH=400&HEIGHT=400&BBOX=-6,48,0 ,50&SRS=epsg:4326&STYLES=REPOM&FORMAT=image/png http://sandre.eaufrance.fr/geoserver/wms?SERVICE=WMS &VERSION=1.1.1&REQUEST=GetMap&LAYERS=REPOM&WIDTH=400&HEIGHT=400&BBOX=-5,48,- 4,49&SRS=epsg:4326&STYLES=REPOM&FORMAT=image/png Mapserver is setting the SIZE parameter in the class ... but maybe not MAXSIZE and MINSIZE. In that case default value for MAXSIZE and MINSIZE are used ? ... should we have SIZE=MAXSIZE=MINSIZE to have always the same size for the symbol. This behaviour also occurs using well know shape as "square", "circle", "triangle" ... Any ideas on how to get symbol always with the same size ? Anyone having the same behaviour ? Thanks for your help. Francois PS : Geoserver doesn't support SLD parameter in the URL for the time being so we have to define a style in Geoserver and the using keyword STYLES in the URL. -- Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve. Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et prives. Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee. Any data and information contained in this electronic mail is personal, confidential and secret. Any total or partial publication, use or distribution must be authorized. -------------- next part -------------- An HTML attachment was scrubbed... URL: From hgirard at CGQ.QC.CA Thu Apr 6 05:54:57 2006 From: hgirard at CGQ.QC.CA (Hugo Girard) Date: Thu, 6 Apr 2006 08:54:57 -0400 Subject: I try again and again. but nothing Message-ID: ----- Original Message ----- From: Hugo Girard To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Wednesday, April 05, 2006 2:00 PM Subject: [UMN_MAPSERVER-USERS] I try again and again. but nothing I have host my mapserver application on my web server for a site web. Some problems occurs when i zoom or pan the map. It really strange because i didnt appear always. Visit my application : www.randonneursdusaguenay.qc.ca and clic the option on the left "O? marcher ?" my application will appear. Play with it and see the bug. If someone have an idea of the solution to resolve this problem, tell me plz. J'ai h?berger mon application mapserver sur mon server web pour qu'elle soit accessible pour un site web. Plusieurs erreurs apparaissent lorsque je fais des zooms ou des d?placements dans la carte. (ex. le zoom se bloque a 10, ma l?gende disparait, un bel ?cran blanc apparait, etc). C'est tr?s ?trange car les erreurs n'apparaisse pas de facon r?guli?res. Allez voir mon application : www.randonneursdusaguenay.qc.ca sous l'option "O? marcher?". Jouer avec mon application et vous allez surment constater les erreurs. Si quelqu'un ? une id?e de la solution afin de corriger ce "bug" dites moi le au plus vite svp. Thanks a lot for your help !!! (sorry for my english ;) ) Merci beaucoup pour votre aide !!! Hugo Girard Stagiaire au Centre de g?omatique du Qu?bec, Chicoutimi hgirard at cgq.qc.ca -------------- next part -------------- An HTML attachment was scrubbed... URL: From schuyler at NOCAT.NET Thu Apr 6 06:01:06 2006 From: schuyler at NOCAT.NET (Schuyler Erle) Date: Thu, 6 Apr 2006 06:01:06 -0700 Subject: clustering points In-Reply-To: Message-ID: * On 6-Apr-2006 at 2:57AM PDT, Heinz-Josef L?cking said: > I?m looking for a solution or hints on clustering points depending on > distance. I would like to have just one symbol with diferent sizes > depending on how many points are "behind" that symbol. I did some experiments with this for Google Maps Hacks, and I found that the fastest way to do this for a map display is to imagine a grid over your map view such that each cell would have the display size of your marker icon. Assign each of your points to the grid cell that contains it. Finally, for each grid cell that contains a point, display a marker on the map for that cell. The marker can vary based on the number of points the cell contains. SDE From b.vdeijnden at AGI.RWS.MINVENW.NL Thu Apr 6 05:41:31 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Thu, 6 Apr 2006 14:41:31 +0200 Subject: date filters Message-ID: Fixed, apparently I had to use the date in a similar way as Mapserver displays them itself, so this worked: FILTER ( '[EINDDATUM]' ge '200507' ) If I use OGR as connection type I needed to use 2005/07 for the expression ..... But according to the documentation Mapserver should also accept 2005-07 or not? http://mapserver.gis.umn.edu/docs/howto/msexpressions Section: temporal expressions Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Eijnden, B. van den (Bart) Verzonden: donderdag 6 april 2006 14:35 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] date filters Hi list, I am having no luck with trying to apply a date filter to a LAYER, normal string filters work fine. It's a shapefile which has a dbf with a column of type date. Values in there are e.g. (12 april 2005): 12-4-2005 The filter I am currently trying is: FILTER ( '[EINDDATUM]' ge '2005-07' ) But this also select things like in april 2005. What am I doing wrong? Thanks in advance. I am using 4.8.1 PHP/Mapscript on RHE Linux. Best regards, Bart Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From godwin.liz at GMAIL.COM Thu Apr 6 06:10:08 2006 From: godwin.liz at GMAIL.COM (Liz Godwin) Date: Thu, 6 Apr 2006 09:10:08 -0400 Subject: Bug in Mapserver-4.8.3 In-Reply-To: <443452CB.8040402@analygis.com> Message-ID: To me it looks like it's triple labelling the same point, just offset by 1 or 2 pixels each time. Interesting. On 4/5/06, Ian Erickson wrote: > I have a client that has encountered the exact same issues... Although > they're running a MS4W build including 4.8.1. The attached screen shot > illustrates the problem. Also, the client states that the problem > doesn't appear until the font size is set greater than 16. > > Ian Erickson > AnalyGIS, LLC > http:// www.analygis.com > > > > Doyon, Jean-Francois wrote: > > >Well then, I don't know :) We'll have to see if anyone reports any problems > >... > > > >I've run into problems with fonts, but they were freetype based issues in > >the end. > > > >I'm running 4.8.1 without problems. > > > >J.F. > > > >-----Original Message----- > >From: wbr [mailto:wbr at detemobil.de] > >Sent: April 5, 2006 1:01 AM > >To: Doyon, Jean-Francois > >Cc: MAPSERVER-USERS at LISTS.UMN.EDU > >Subject: Re: [UMN_MAPSERVER-USERS] Bug in Mapserver-4.8.3 > > > >Doyon, Jean-Francois schrieb: > > > > > >>Hmmm, and what about GD? > >> > >>Also, make sure you use "ldd /path/to/executable" to verify things, > >>don't just rely on which packages you have installed, just in case. > >> > >>J.F. > >> > >> > >> > > > >the gd library is 'gd2-2.0.33'. I only changed the source from mapserver > >4.6.1 to mapserver 4.8.3 ! After compiling and installing the described > >Effect takes place. > > > >hmmm... > > > >Wolfgang Brungert > >-- > >T-Mobile Deutschland GmbH > >Program and Budget Management > >(TRPD13-D) > >Roddestr. 12 > >48153 M?nster > > > >Phone: +49 251 977 4142 > >Fax: +49 251 977 4149 > >email: wolfgang.brungert at t-mobile.de > >PGP Fingerprint: B3F8 D368 5EEF 3873 3C4F 423C 171E F217 7CA4 3467 > > > > > > > > > From mschulz at WEBGIS.DE Thu Apr 6 06:09:04 2006 From: mschulz at WEBGIS.DE (Michael Schulz) Date: Thu, 6 Apr 2006 15:09:04 +0200 Subject: SLD / Point symbolizer & Size In-Reply-To: <200604061258.k36CwYSh020161@ns1.oieau.fr> Message-ID: Hi Francois, as long as you don't specify a symbolscale MapServer will do the Size=MinSize=Maxsize thing. Did you set the layers sizeunits to pixel (pixel is the default)? Cheers, Michael Fran?ois Prunayre schrieb: > Hi list, > Using SLD and symbols, I get 2 differents behaviour using Mapserver & > Geoserver. Differences is on point symbolizer and the size parameter. > > For example, using a png file of 20x20px > http://sandre.eaufrance.fr/geo/sym/port.png > in the following SLD for mapserver : > _http://xml.sandre.eaufrance.fr/exist/Geo/sld/REPOM.xml_ > > > When I ask for 3 images (400x400px) for the REPOM layer at 3 differents > scales, the symbol is getting bigger and bigger ... Size is set to 2. > And units in the OGC SLD spec is defined as "The *Size *element gives > the absolute size of the graphic in pixels encoded as a floating-point > number." > http://services.sandre.eaufrance.fr/geo/ouvrage?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=REPOM&WIDTH=400&HEIGHT=400&BBOX=-6,41,10,52&SRS=epsg:4326&SLD=http://xml.sandre.eaufrance.fr/exist/Geo/sld/REPOM.xml > > http://services.sandre.eaufrance.fr/geo/ouvrage?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=REPOM&WIDTH=400&HEIGHT=400&BBOX=-6,48,0,50&SRS=epsg:4326&SLD=http://xml.sandre.eaufrance.fr/exist/Geo/sld/REPOM.xml > > http://services.sandre.eaufrance.fr/geo/ouvrage?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=REPOM&WIDTH=400&HEIGHT=400&BBOX=-5,48,-4,49&SRS=epsg:4326&SLD=http://xml.sandre.eaufrance.fr/exist/Geo/sld/REPOM.xml > > > Using Geoserver with the same layers, when I ask for 3 images > (400x400px) for the REPOM layer at 3 differents scales (same as previous > query), the symbol is always the same size (15 as defined in the STYLES > for geoserver). > http://sandre.eaufrance.fr/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=REPOM&WIDTH=400&HEIGHT=400&BBOX=-6,41,10,52&SRS=epsg:4326&STYLES=REPOM&FORMAT=image/png > > http://sandre.eaufrance.fr/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=REPOM&WIDTH=400&HEIGHT=400&BBOX=-6,48,0,50&SRS=epsg:4326&STYLES=REPOM&FORMAT=image/png > > http://sandre.eaufrance.fr/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=REPOM&WIDTH=400&HEIGHT=400&BBOX=-5,48,-4,49&SRS=epsg:4326&STYLES=REPOM&FORMAT=image/png > > > Mapserver is setting the SIZE parameter in the class ... but maybe not > MAXSIZE and MINSIZE. In that case default value for MAXSIZE and MINSIZE > are used ? ... should we have SIZE=MAXSIZE=MINSIZE to have always the > same size for the symbol. > > This behaviour also occurs using well know shape as "square", "circle", > "triangle" ... > > Any ideas on how to get symbol always with the same size ? Anyone having > the same behaviour ? > > Thanks for your help. > Francois > > PS : Geoserver doesn't support SLD parameter in the URL for the time > being so we have to define a style in Geoserver and the using keyword > STYLES in the URL. > > > > > -- > Ce message a ete verifie par *MailScanner* > pour des virus ou des polluriels et rien > de suspect n'a ete trouve. > > Les donnees et renseignements contenus dans ce message sont personnels, > confidentiels et priv?s.Toute publication, utilisation ou diffusion, > meme partielle, doit etre autorisee. > > Any data and information contained in this electronic mail is personal, > confidential and private. Any total or partial publication, use or > distribution must be authorized. -- ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH In den Weihermatten 66 Tel +49 (0)761 556959-5 79108 Freiburg Fax +49 (0)761 556959-6 www.webgis.de / www.zopecms.de ----------------------------------------------------------- NEU ++ UMN MapServer Hosting ++ http://www.webgis.de ++ NEU ----------------------------------------------------------- From ed at TOPOZONE.COM Thu Apr 6 06:28:30 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 6 Apr 2006 09:28:30 -0400 Subject: Performance hints please Message-ID: Stephen - "The amount of geometry involved is so small, the bottleneck has to be the raster processing" That is a dangerous assumption. Retrieving a small amount of data from a large, slow database server can take a long time - particularly if you're re-establishing the connection each time. Are you using pooled persistent connections to PostGIS with a FastCGI MapServer? - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Stephen Davies Sent: Thursday, April 06, 2006 4:04 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Performance hints please G'day all. Does anybody have a howto on Mapserver performance enhancement? My particular environment of interest is a relatively small set of geometries in a PostGIS database and a collection of geotiff aerial photography images onto which I overlay the geometries. The geometries are fully indexed, relatively static and vacuum analyzed every night. One of the options that users have is to request a "movie" of up to 20 frames; each of which consists of a background raster plus up to about five circular geometries, about five points and maybe ten other lines/polygons. The amount of geometry involved is so small, the bottleneck has to be the raster processing. The images are 2m/pixel and are typically 20 - 150 Mb each. The frame extents include most if not all of an image so tiling does not seem relevant. I have specified 80% JPEG as the output to minimise final image size and this seems successful (at least in terms of size and hence download time) I am looking for ways to reduce the time taken in the image generation phase. TIA, Stephen Davies ======================================================================== This email is for the person(s) identified above, and is confidential to the sender and the person(s). No one else is authorised to use or disseminate this email or its contents. Stephen Davies Consulting Voice: 08-8177 1595 Adelaide, South Australia. Fax: 08-8177 0133 Computing & Network solutions. Mobile:0403 0405 83 From fx.prunayre at OIEAU.FR Thu Apr 6 07:51:21 2006 From: fx.prunayre at OIEAU.FR (=?iso-8859-1?Q?Fran=E7ois_Prunayre?=) Date: Thu, 6 Apr 2006 16:51:21 +0200 Subject: SLD / Point symbolizer & Size In-Reply-To: <443512F0.60703@webgis.de> Message-ID: Thanks Michael, that was it ... I have to check layers sizeunits to see if I get the same answer for Mapserver & Geoserver. Thanks for your help. Francois -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Michael Schulz Envoy? : jeudi 6 avril 2006 15:09 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] SLD / Point symbolizer & Size Hi Francois, as long as you don't specify a symbolscale MapServer will do the Size=MinSize=Maxsize thing. Did you set the layers sizeunits to pixel (pixel is the default)? Cheers, Michael Fran?ois Prunayre schrieb: > Hi list, > Using SLD and symbols, I get 2 differents behaviour using Mapserver & > Geoserver. Differences is on point symbolizer and the size parameter. > > For example, using a png file of 20x20px > http://sandre.eaufrance.fr/geo/sym/port.png > in the following SLD for mapserver : > _http://xml.sandre.eaufrance.fr/exist/Geo/sld/REPOM.xml_ > > > When I ask for 3 images (400x400px) for the REPOM layer at 3 > differents scales, the symbol is getting bigger and bigger ... Size is set to 2. > And units in the OGC SLD spec is defined as "The *Size *element gives > the absolute size of the graphic in pixels encoded as a floating-point > number." > http://services.sandre.eaufrance.fr/geo/ouvrage?SERVICE=WMS&VERSION=1. > 1.1&REQUEST=GetMap&LAYERS=REPOM&WIDTH=400&HEIGHT=400&BBOX=-6,41,10,52& > SRS=epsg:4326&SLD=http://xml.sandre.eaufrance.fr/exist/Geo/sld/REPOM.x > ml > .1.1&REQUEST=GetMap&LAYERS=REPOM&WIDTH=400&HEIGHT=400&BBOX=-6,41,10,52 > &SRS=epsg:4326&SLD=http://xml.sandre.eaufrance.fr/exist/Geo/sld/REPOM. > xml> > http://services.sandre.eaufrance.fr/geo/ouvrage?SERVICE=WMS&VERSION=1. > 1.1&REQUEST=GetMap&LAYERS=REPOM&WIDTH=400&HEIGHT=400&BBOX=-6,48,0,50&S > RS=epsg:4326&SLD=http://xml.sandre.eaufrance.fr/exist/Geo/sld/REPOM.xm > l > .1.1&REQUEST=GetMap&LAYERS=REPOM&WIDTH=400&HEIGHT=400&BBOX=-6,48,0,50& > SRS=epsg:4326&SLD=http://xml.sandre.eaufrance.fr/exist/Geo/sld/REPOM.x > ml> > http://services.sandre.eaufrance.fr/geo/ouvrage?SERVICE=WMS&VERSION=1. > 1.1&REQUEST=GetMap&LAYERS=REPOM&WIDTH=400&HEIGHT=400&BBOX=-5,48,-4,49& > SRS=epsg:4326&SLD=http://xml.sandre.eaufrance.fr/exist/Geo/sld/REPOM.x > ml > .1.1&REQUEST=GetMap&LAYERS=REPOM&WIDTH=400&HEIGHT=400&BBOX=-5,48,-4,49 > &SRS=epsg:4326&SLD=http://xml.sandre.eaufrance.fr/exist/Geo/sld/REPOM. > xml> > > Using Geoserver with the same layers, when I ask for 3 images > (400x400px) for the REPOM layer at 3 differents scales (same as > previous query), the symbol is always the same size (15 as defined in > the STYLES for geoserver). > http://sandre.eaufrance.fr/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQ > UEST=GetMap&LAYERS=REPOM&WIDTH=400&HEIGHT=400&BBOX=-6,41,10,52&SRS=eps > g:4326&STYLES=REPOM&FORMAT=image/png > QUEST=GetMap&LAYERS=REPOM&WIDTH=400&HEIGHT=400&BBOX=-6,41,10,52&SRS=ep > sg:4326&STYLES=REPOM&FORMAT=image/png> > http://sandre.eaufrance.fr/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQ > UEST=GetMap&LAYERS=REPOM&WIDTH=400&HEIGHT=400&BBOX=-6,48,0,50&SRS=epsg > :4326&STYLES=REPOM&FORMAT=image/png > QUEST=GetMap&LAYERS=REPOM&WIDTH=400&HEIGHT=400&BBOX=-6,41,10,52&SRS=ep > sg:4326&STYLES=REPOM&FORMAT=image/png> > http://sandre.eaufrance.fr/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQ > UEST=GetMap&LAYERS=REPOM&WIDTH=400&HEIGHT=400&BBOX=-5,48,-4,49&SRS=eps > g:4326&STYLES=REPOM&FORMAT=image/png > QUEST=GetMap&LAYERS=REPOM&WIDTH=400&HEIGHT=400&BBOX=-5,48,-4,49&SRS=ep > sg:4326&STYLES=REPOM&FORMAT=image/png> > > Mapserver is setting the SIZE parameter in the class ... but maybe not > MAXSIZE and MINSIZE. In that case default value for MAXSIZE and > MINSIZE are used ? ... should we have SIZE=MAXSIZE=MINSIZE to have > always the same size for the symbol. > > This behaviour also occurs using well know shape as "square", > "circle", "triangle" ... > > Any ideas on how to get symbol always with the same size ? Anyone > having the same behaviour ? > > Thanks for your help. > Francois > > PS : Geoserver doesn't support SLD parameter in the URL for the time > being so we have to define a style in Geoserver and the using keyword > STYLES in the URL. > > > > > -- > Ce message a ete verifie par *MailScanner* > pour des virus ou des polluriels et > rien de suspect n'a ete trouve. > > Les donnees et renseignements contenus dans ce message sont > personnels, confidentiels et priv?s.Toute publication, utilisation ou > diffusion, meme partielle, doit etre autorisee. > > Any data and information contained in this electronic mail is > personal, confidential and private. Any total or partial publication, > use or distribution must be authorized. -- ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH In den Weihermatten 66 Tel +49 (0)761 556959-5 79108 Freiburg Fax +49 (0)761 556959-6 www.webgis.de / www.zopecms.de ----------------------------------------------------------- NEU ++ UMN MapServer Hosting ++ http://www.webgis.de ++ NEU ----------------------------------------------------------- -- Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve. Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et prives. Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee. Any data and information contained in this electronic mail is personal, confidential and secret. Any total or partial publication, use or distribution must be authorized. -- Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve. Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et prives. Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee. Any data and information contained in this electronic mail is personal, confidential and secret. Any total or partial publication, use or distribution must be authorized. From warmerdam at POBOX.COM Thu Apr 6 07:53:58 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 6 Apr 2006 10:53:58 -0400 Subject: Performance hints please In-Reply-To: <4BF377919225F449BB097CB76FFE9BC83DDB6E@ptolemy.topozone.com> Message-ID: Ed McNierney wrote: > Stephen - > > "The amount of geometry involved is so small, the bottleneck has to be > the raster processing" > > That is a dangerous assumption. Retrieving a small amount of data from > a large, slow database server can take a long time - particularly if > you're re-establishing the connection each time. > > Are you using pooled persistent connections to PostGIS with a FastCGI > MapServer? Ed / Stephen, In my experience connection cost for PostGIS is very very modest and FastCGI does not offer a worthwhile advantage for PostGIS. However, the general statement about dangerous assumptions is right on! Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From warmerdam at POBOX.COM Thu Apr 6 08:03:48 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 6 Apr 2006 11:03:48 -0400 Subject: SV: [UMN_MAPSERVER-USERS] WFS Filter In-Reply-To: <4326750.1144321293467.JavaMail.adm-moff@moffice3.nsc.no> Message-ID: Sture Dings?yr wrote: > I am using Microsoft ODBC (via a DSN created in windows) to fetch my data. > It is a really simple tabel, so a SQL where clause is of cource no problem > in ODBC... > > But...who can confirm if this behaviour is a mapserver related thing or > not? > > The problem sems to be that Mapserver, when using OGR/ODBC, do not create a > correct SQL WHERE clause when FILTER is used (both in WFS and directly in > the mapfile). All the data is fetched Sture, Could you file a bugzilla report (assigned to me) that includes a simplified mapfile, the WFS request in question and the dataset in an .mdb file or something else that I can trivially setup a DSN for? As long as you can make it really easy for me to reproduce the problem, I'll spend some time digging 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 OSGF, http://osgeo.org From David.Fawcett at STATE.MN.US Thu Apr 6 07:16:35 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Thu, 6 Apr 2006 09:16:35 -0500 Subject: clustering points Message-ID: You can see Schuyler's code working at: http://mappinghacks.com/projects/gmaps/cluster.html In the Google Maps Hacks book, Schuyler makes a pretty good case for why the tiling approach over K-means for on-the-fly mapping. That said, I know of one person doing K-means to cluster points. This is implemented using PostGIS and Postgres-R. Anyone, Bitner?! David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Schuyler Erle Sent: Thursday, April 06, 2006 8:01 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] clustering points * On 6-Apr-2006 at 2:57AM PDT, Heinz-Josef L?cking said: > I?m looking for a solution or hints on clustering points depending on > distance. I would like to have just one symbol with diferent sizes > depending on how many points are "behind" that symbol. I did some experiments with this for Google Maps Hacks, and I found that the fastest way to do this for a map display is to imagine a grid over your map view such that each cell would have the display size of your marker icon. Assign each of your points to the grid cell that contains it. Finally, for each grid cell that contains a point, display a marker on the map for that cell. The marker can vary based on the number of points the cell contains. SDE From bram at TERNEUZEN.COM Thu Apr 6 09:49:32 2006 From: bram at TERNEUZEN.COM (bram) Date: Thu, 6 Apr 2006 18:49:32 +0200 Subject: copyright text bottomright but mapsize variable In-Reply-To: <44219C87.5060408@home.nl> Message-ID: Bart, I'm using an extra annotationlayer on top like the example below. It outputs a small gif and some text in the upperleftcorner independent from your scale. That your aim, I suppose. Regards, Bram LAYER NAME "kaartnaam1" TYPE ANNOTATION STATUS ON TRANSFORM false FEATURE POINTS 80 80 END TEXT " testomgeving bestemmingsplannen" END CLASS SYMBOL 'logoterneuzen' SIZE 100 OUTLINECOLOR 255 0 0 COLOR 255 0 0 TEMPLATE "void" LABEL FORCE true POSITION ur COLOR 0 0 155 #BACKGROUNDCOLOR 230 230 230 TYPE bitmap SIZE large END # label END #class END Huub Fleuren schreef: > Bart, > > you might want to lay a static (inhome designed) copyright image on top > of your map. If you 'drag' the image, maybe your client gives you the > flexibility to let this top image be and just operate on the images > stacked under it. > > Regards, Huub > > > Stephen Woodbridge wrote: > >> See bugs #1547 and #1592 and a gentle prod of the owners would hurt :) >> >> -Steve W >> >> Bart van den Eijnden wrote: >> >>> Hi list, >>> >>> is it possible to have a copyright layer in the bottom right part of >>> the >>> map image, in a situation in which the map size is variable (without >>> side-effect of the text being in the middle of the map image when the >>> image size increases :-) )? >>> >>> Or is it necessary to use Mapscript to change the point coordinates >>> of the >>> label in case the map size changes? >>> >>> Thanks in advance. >>> >>> Best regards, >>> Bart >>> >> >> > From bartvde at XS4ALL.NL Thu Apr 6 10:01:52 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Thu, 6 Apr 2006 19:01:52 +0200 Subject: copyright text bottomright but mapsize variable In-Reply-To: <4435469C.1050102@terneuzen.com> Message-ID: Hi Bram, indeed upperleft is the one that will work even with a changing map size, but most people don't want copyright in the upperleft corner of the image .... at least some of the customers I have encountered. I believe Steve has added some additional support for relative positioning in Mapserver CVS head that will make it possible to put the copyright in the lowerright corner. Best regards, Bart bram wrote: > Bart, > > I'm using an extra annotationlayer on top like the example below. It > outputs a small gif and some text in the upperleftcorner independent > from your scale. That your aim, I suppose. > > Regards, > Bram > > LAYER > NAME "kaartnaam1" > TYPE ANNOTATION > STATUS ON TRANSFORM false > FEATURE > POINTS 80 80 END > TEXT " testomgeving bestemmingsplannen" > END > CLASS > SYMBOL 'logoterneuzen' > SIZE 100 > OUTLINECOLOR 255 0 0 > COLOR 255 0 0 > TEMPLATE "void" LABEL > FORCE true > POSITION ur > COLOR 0 0 155 > #BACKGROUNDCOLOR 230 230 230 > TYPE bitmap > SIZE large > END # label > END #class > END > > > Huub Fleuren schreef: > >> Bart, >> >> you might want to lay a static (inhome designed) copyright image on top >> of your map. If you 'drag' the image, maybe your client gives you the >> flexibility to let this top image be and just operate on the images >> stacked under it. >> >> Regards, Huub >> >> >> Stephen Woodbridge wrote: >> >>> See bugs #1547 and #1592 and a gentle prod of the owners would hurt :) >>> >>> -Steve W >>> >>> Bart van den Eijnden wrote: >>> >>>> Hi list, >>>> >>>> is it possible to have a copyright layer in the bottom right part >>>> of the >>>> map image, in a situation in which the map size is variable (without >>>> side-effect of the text being in the middle of the map image when the >>>> image size increases :-) )? >>>> >>>> Or is it necessary to use Mapscript to change the point coordinates >>>> of the >>>> label in case the map size changes? >>>> >>>> Thanks in advance. >>>> >>>> Best regards, >>>> Bart >>>> >>> >>> >> > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From cjohnson at REFRACTIONS.NET Thu Apr 6 10:39:25 2006 From: cjohnson at REFRACTIONS.NET (Clint Johnson) Date: Thu, 6 Apr 2006 10:39:25 -0700 Subject: Performance hints please In-Reply-To: <200604061733.58560.sdc@sdc.com.au> Message-ID: I don't know of any. Optimizing the map server configuration is could be the wrong way of going about solving your problem Look into optimizing your database. Sure there are indexes; but are they being used? "explain" can help you determine that (ie http://www.redhat.com/docs/manuals/database/RHDB-7.1.3-Manual/sql/sql-explain.html) - Are there joins or subqueries going on "under the hood"? Joins are an expensive operation whether there is an index or no index. - Perhaps an expensive trigger is getting fired for every select? - etc. Ed is right, "The amount of geometry involved is so small, the bottleneck has to be the raster processing" -- is a bad assumption. Retrieving a small amount of data from a large table will take while (indexes help). Performing a join takes even longer. Explain will explain. Stephen Davies wrote: > G'day all. > > Does anybody have a howto on Mapserver performance enhancement? > > My particular environment of interest is a relatively small set of > geometries in a PostGIS database and a collection of geotiff aerial > photography images onto which I overlay the geometries. > > The geometries are fully indexed, relatively static and vacuum analyzed > every night. > > One of the options that users have is to request a "movie" of up to 20 > frames; each of which consists of a background raster plus up to about > five circular geometries, about five points and maybe ten other > lines/polygons. > > The amount of geometry involved is so small, the bottleneck has to be > the raster processing. The images are 2m/pixel and are typically 20 - > 150 Mb each. The frame extents include most if not all of an image so > tiling does not seem relevant. > > I have specified 80% JPEG as the output to minimise final image size and > this seems successful (at least in terms of size and hence download > time) > > I am looking for ways to reduce the time taken in the image generation > phase. > > TIA, > Stephen Davies > > ======================================================================== > This email is for the person(s) identified above, and is confidential to > the sender and the person(s). No one else is authorised to use or > disseminate this email or its contents. > > Stephen Davies Consulting Voice: 08-8177 1595 > Adelaide, South Australia. Fax: 08-8177 0133 > Computing & Network solutions. Mobile:0403 0405 83 > -- Clint Johnson Refractions Research Inc. Cjohnson at refractions.net From Jeremy.Sears at CCRS.NRCAN.GC.CA Thu Apr 6 13:34:13 2006 From: Jeremy.Sears at CCRS.NRCAN.GC.CA (Sears, Jeremy) Date: Thu, 6 Apr 2006 16:34:13 -0400 Subject: Can mapserver draw only the legend? Message-ID: Hi All, Im wondering if its possible to have mapserver draw only a legend, not its associated map... Im looking at the mapscript documentation on maptools.org regarding the LegendObj Class, it says: "Instances of legendObj are always are always embedded inside the mapObj." So Im starting with code like: // draw ledgend ... $legend = ms_newMapObj($mapfileloc); .. And Id like to get to the point where I write: $legend_image = $legend->draw(); But Im not sure how to specify to only draw a legend.. Is it possible? Thanks Jeremy From john.cole at UAI.COM Thu Apr 6 14:32:56 2006 From: john.cole at UAI.COM (John Cole) Date: Thu, 6 Apr 2006 16:32:56 -0500 Subject: label roads only once... Message-ID: Hello, I'm trying clean up my road labels a little bit. I seem to remember a postgis/mapsever example where the roads were collected before labeling, but I can't find that presentation before. My roads are in a postgis table, does someone have that example or could give a few clues on how it would be done? Thanks, John
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.
From woodbri at SWOODBRIDGE.COM Thu Apr 6 15:14:24 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 6 Apr 2006 18:14:24 -0400 Subject: label roads only once... In-Reply-To: <76758090F8686C47A44B6FF52514A1D3079096C9@hermes.uai.int> Message-ID: John Cole wrote: > Hello, > I'm trying clean up my road labels a little bit. I seem to remember a > postgis/mapsever example where the roads were collected before labeling, but > I can't find that presentation before. > > My roads are in a postgis table, does someone have that example or could > give a few clues on how it would be done? John, Just set the MINDISTANCE in the LABEL object. If you set it to slightly more than half the width of the image you will get only one of two labels per name, if you set it to the width of the image or a large number then you will only get one label max. The PostGIS document you are looking for is linked off of: http://mapserver.gis.umn.edu/community/conferences/MUM3/workshop/postgis/ -Steve W From szekeres.tamas at FREEMAIL.HU Thu Apr 6 15:27:40 2006 From: szekeres.tamas at FREEMAIL.HU (=?iso-8859-2?Q?Szekeres_Tam=E1s?=) Date: Fri, 7 Apr 2006 00:27:40 +0200 Subject: Adding a layer/Removing a layer - C# In-Reply-To: <44331C42.9040308@analygis.com> Message-ID: Added a bug for this problem http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1743 It may be related to other SWIG bindings as well Tamas -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.3.5/303 - Release Date: 2006.04.06. From dylan.beaudette at GMAIL.COM Thu Apr 6 18:15:23 2006 From: dylan.beaudette at GMAIL.COM (Dylan Beaudette) Date: Thu, 6 Apr 2006 18:15:23 -0700 Subject: Legend not showing up in IE Message-ID: Greetings, Our Landview-based DHTML mapserver application works quite well on nearly every web browser _except_ IE... Here is a link to a sample page, note that there should be a legend in the upper left hand corner: http://tinyurl.com/mjfxk I have browsed through the javascript libraries included in the landview application, but have yet to find any thing that might be related to the missing legend. I have a sneaking suspicion that it has something to do with how the DBOX container is implemented. Any thoughts or suggestions would be greatly appreciated. Cheers, -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From manninside at YAHOO.COM Thu Apr 6 20:24:39 2006 From: manninside at YAHOO.COM (Mandar sarlashkar) Date: Thu, 6 Apr 2006 20:24:39 -0700 Subject: Setup-Problem with Mapserver 4.8.1, Apache 2.2.0 on Linux 2006 Message-ID: Dear all ! I have setup Mapserver 4.8.1, Apache 2.2.0 on Linux 2006... Itasca WorkShop works fine... I can even access the webpages created by me but when I send cgi-request to Mapserver the browser displays the message - Waiting for localhost.... - for quite a long time and later following text is displayed in the browser... 500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, you at example.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

When I checked tmp/ folder no images are created.... and the error_log displays following message... [Fri Apr 07 09:23:16 2006] [warn] [client 127.0.0.1] Timeout waiting for output from CGI script /usr/local/apache2/cgi-bin/mapserv, referer: http://localhost/als/eassistant.html [Fri Apr 07 09:23:16 2006] [error] [client 127.0.0.1] File does not exist: /usr/local/apache2/htdocs/favicon.ico SO I copied the file : # cp /usr/lib/scribus/doc/en/favicon.ico /usr/local/apache2/htdocs/favicon.ico After copying the file the error_log is showing following error [Fri Apr 07 09:49:14 2006] [error] [client 127.0.0.1] Premature end of script headers: mapserv, referer: http://localhost/als/eassistant.html [Fri Apr 07 09:54:14 2006] [warn] [client 127.0.0.1] Timeout waiting for output from CGI script /usr/local/apache2/cgi-bin/mapserv, referer: http://localhost/als/eassistant.html I desperately wants to see my maps displayed.... Can anyone help please... Thanks in advance... Mandy --------------------------------- Blab-away for as little as 1?/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill at BINKO.NET Thu Apr 6 23:07:27 2006 From: bill at BINKO.NET (Bill Binko) Date: Fri, 7 Apr 2006 02:07:27 -0400 Subject: Dimensional Modeling / Data Warehouse Approach to GIS data? Message-ID: Hi everyone, I'm curious as to whether anyone's using classic Data Warehousing database methods with GIS data? In particular, I'd like to see some literature (case studies, research) showing: o How to integrate GIS data into an existing Data Mart/Warehouse o A comparison of classic Relational Modeling (OLTP-style) versus Dimensional Modeling (OLAP-style) when applied to GIS databases. (I'm interested in Performance and/or Management issues) o Common patterns and approaches seen when attempting this type of work. The reason is that I am using my GIS data for classic Decision Support work. In my other life, I use a corporate Data Warehouse for this type of work, and I know that the Dimensional approach provides excellent queryability and scalability at the cost of expensive updates and high maintenance. Because my GIS data has such a high read/write ratio and I'm always looking for different ways to slice it, I'm tempted to approach it via a dimensional approach. However, I'd like to hear from anyone who's traveled this path. Thanks Bill -- Bill Binko From Jukka.Rahkonen at MMMTIKE.FI Thu Apr 6 23:15:05 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Fri, 7 Apr 2006 09:15:05 +0300 Subject: Performance hints please Message-ID: L?hett?j?: UMN MapServer Users List puolesta: Clint Johnson L?hetetty: to 6.4.2006 20:39 >I don't know of any. Optimizing the map server configuration is could >be the wrong way of going about solving your problem >Look into optimizing your database. Sure there are indexes; but are >they being used? "explain" can help you determine that >(ie >http://www.redhat.com/docs/manuals/database/RHDB-7.1.3-Manual/sql/sql-explain.html) When optimizing it might be good to have something to compare with. With Mapserver I suppose that using and optimizing shapefiles is well documented and experienced. Maybe you could make a simple test by translating some of your vector layers to shapefiles, index them and compare the speed Mapserver is rendering that data with the time needed when using corresponding data from your PostGIS? -Jukka- From jorn at SPACETEC.NO Thu Apr 6 23:55:49 2006 From: jorn at SPACETEC.NO (=?utf-8?q?J=C3=B8rn_Vegard_R=C3=B8snes?=) Date: Fri, 7 Apr 2006 07:55:49 +0100 Subject: Is this feasible? In-Reply-To: <008f01c658ea$8a1596a0$0a00a8c0@GURU2GO2> Message-ID: On Wednesday 05 April 2006 21:52, Dave Nuttall wrote: > Does anyone on the list know of similar efforts to create a reasonably > accurate database that could be used to generate ?tourist maps?? Maybe relevant for you: http://mumbai.freemap.in/ From h-j.luecking at GGS-BHV.DE Thu Apr 6 23:50:54 2006 From: h-j.luecking at GGS-BHV.DE (=?ISO-8859-1?Q?Heinz-Josef_L=FCcking?=) Date: Fri, 7 Apr 2006 08:50:54 +0200 Subject: clustering points In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD55D08EB@s-sp22.pca.state.mn.us> Message-ID: Is the code of Schuyler available online or do i have to buy that book? We where thinking about use of K-means for clustering too. Could you pleae tell me more about the K-means-PostGIS-PostGres thing? Heinz-Josef L?cking Fawcett, David schrieb: > You can see Schuyler's code working at: http://mappinghacks.com/projects/gmaps/cluster.html > > In the Google Maps Hacks book, Schuyler makes a pretty good case for why the tiling approach over K-means for on-the-fly mapping. > > That said, I know of one person doing K-means to cluster points. This is implemented using PostGIS and Postgres-R. Anyone, Bitner?! > > David. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Schuyler Erle > Sent: Thursday, April 06, 2006 8:01 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] clustering points > > > * On 6-Apr-2006 at 2:57AM PDT, Heinz-Josef L?cking said: >> I?m looking for a solution or hints on clustering points depending on >> distance. I would like to have just one symbol with diferent sizes >> depending on how many points are "behind" that symbol. > > I did some experiments with this for Google Maps Hacks, and I found that the fastest way to do this for a map display is to imagine a grid over your map view such that each cell would have the display size of your marker icon. Assign each of your points to the grid cell that contains it. Finally, for each grid cell that contains a point, display a marker on the map for that cell. The marker can vary based on the number of points the cell contains. > > SDE > From listuser at HERZSYS.DE Fri Apr 7 06:02:48 2006 From: listuser at HERZSYS.DE (listuser HH) Date: Fri, 7 Apr 2006 15:02:48 +0200 Subject: java mapscript encoding problem Message-ID: Hi all, Oliver Wesp sent a mail some days ago that he has problems with german umlauts. I'm facing the same problem at the moment when I try to get a layer by name "Regierungspr?sidien". When I use map.getLayer(0).getName() I get exact the same string - I checked the bytes. The encoding from the mapscript to java seem to work. I tried to make a new String with other encoding but I'm not sure which one is the right but without any luck.These are the bytes I get from the strings: [82, 101, 103, 105, 101, 114, 117, 110, 103, 115, 112, 114, -28, 115, 105, 100, 105, 101, 110] --> mapscript to java [82, 101, 103, 105, 101, 114, 117, 110, 103, 115, 112, 114, -28, 115, 105, 100, 105, 101, 110] --> ISO8859_1 [82, 101, 103, 105, 101, 114, 117, 110, 103, 115, 112, 114, -28, 115, 105, 100, 105, 101, 110] --> CP1252 [82, 101, 103, 105, 101, 114, 117, 110, 103, 115, 112, 114, 63, 115, 105, 100, 105, 101, 110] --> ASCII [82, 101, 103, 105, 101, 114, 117, 110, 103, 115, 112, 114, 63, 115, 105, 100, 105, 101, 110] --> UTF-8 Any ideas how to solve this? Thanks Norbert From umberto.nicoletti at GMAIL.COM Fri Apr 7 06:08:56 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Fri, 7 Apr 2006 15:08:56 +0200 Subject: Java Mapscript - querybyattribut In-Reply-To: <442B7098.3060209@gdv.com> Message-ID: Oliver, did you solve this issue? If not please send some sample data that I can use to work on it. Also I need know on which OS you are and the language environment you use: echo $LANG (on unix/linux) Best regards, Umberto On 3/30/06, Oliver Wesp wrote: > Dear List, > > I' struggling with queryByAttributes on an attribute field with german > umlauts using java mapscript. > The odd thing is that the same thing works fine with php mapscript and > when I use expressions in my mapfile. I'm using a shapefile as datasource. > > Here is what I do: > > layer.queryByAttributes(map,"KREIS_NAME", "/S?dliche Weinstra?e/", > mapscriptConstants.MS_MULTIPLE); > layer.open(); > System.out.println( "Result Count: " +layer.getNumResults() ); > layer.close(); > > The result is always null while replacing the qstring with something > that doesn't contain special characters (e.g. > 'Mainz-Bingen') works fine. > > As noted above the following layer definition in a mapfile works fine > > LAYER > NAME kreis > STATUS DEFAULT > TYPE polygon > DATA "/tmp/subset" > TEMPLATE "kreis.html" > CLASSITEM KREIS_NAME > CLASS > NAME Boundary > COLOR 128 128 0 > OUTLINECOLOR 0 0 0 > EXPRESSION /S?dliche Weinstra?e/ > END > END > > > but this does not: > > layer.setClassitem("KREIS_NAME"); > classObj cl = new classObj(layer); > cl.setName("Classname"); > cl.setExpression("/S?dliche Weinstra?e/"); > > I use Mapserver 4.8.1 on W2k, Tomcat 5.0.28. > > I can provide some sample data, just in case someone likes to reproduce. > > Any help is appreciated. > > best regards > Oliver > -- > Dipl.-Geogr. Oliver Wesp > Gesellschaft fuer geografische Datenverarbeitung > Binger Strasse 49-51 > D-55218 Ingelheim > fon: +49 6132 714818 > fax: +49 6132 714828 > http: www.gdv.com > From hgirard at CGQ.QC.CA Fri Apr 7 06:13:52 2006 From: hgirard at CGQ.QC.CA (Hugo Girard) Date: Fri, 7 Apr 2006 09:13:52 -0400 Subject: timeout on mapserver Message-ID: Hi all, i just want to know if it possible to make a timeout just before the appearance of the map and how to do it ? Salut tout le monde , tout ce que je veux savoir c'est s'il existe un moyen de faire un "timeout" juste avant l'apparition de la carte sur mapserver et comment le faire? Merci Hugo Girard hgirard at cgq.qc.ca -------------- next part -------------- An HTML attachment was scrubbed... URL: From watry at COAPS.FSU.EDU Fri Apr 7 09:31:45 2006 From: watry at COAPS.FSU.EDU (Gary Watry) Date: Fri, 7 Apr 2006 12:31:45 -0400 Subject: MapServer 4.8.3 In-Reply-To: <6.2.3.4.2.20060330175820.02728be8@hobu.mail.iastate.edu> Message-ID: Hi I have several NetCDF Files as grids to bring into Mapserver, How do I do that. How do I do Grids? ______________________________________________________________ Gary L. Watry GIS Coordinator Center for Ocean-Atmospheric Prediction Studies FSU / COAPS Johnson Building, RM 215 2035 East Paul Dirac Drive Tallahassee, Florida 32306-2840 E-Mail: watry at coaps.fsu.edu From andrew at REFRACTIONS.NET Fri Apr 7 09:32:29 2006 From: andrew at REFRACTIONS.NET (Andrew Krakowski) Date: Fri, 7 Apr 2006 09:32:29 -0700 Subject: Legend not showing up in IE In-Reply-To: <200604061815.23293.dylan.beaudette@gmail.com> Message-ID: My IE debugger complained about document.getElementById('survey_message').style.color = color; So perhaps make a default color to assign rather than an empty string. Also there are a couple JavaScript errors when you load the page in FireFox and the one that says "document.layers has no properties" leads me to suspect you are assigning or using a layer before it has data. Cheers! Andrew Dylan Beaudette wrote: > Greetings, > > Our Landview-based DHTML mapserver application works quite well on nearly > every web browser _except_ IE... > > Here is a link to a sample page, note that there should be a legend in the > upper left hand corner: > > http://tinyurl.com/mjfxk > > > I have browsed through the javascript libraries included in the landview > application, but have yet to find any thing that might be related to the > missing legend. I have a sneaking suspicion that it has something to do with > how the DBOX container is implemented. > > Any thoughts or suggestions would be greatly appreciated. > > Cheers, > -- Andrew Krakowski Programmer, Refractions Research Inc. From dylan.beaudette at GMAIL.COM Fri Apr 7 10:00:08 2006 From: dylan.beaudette at GMAIL.COM (Dylan Beaudette) Date: Fri, 7 Apr 2006 10:00:08 -0700 Subject: Legend not showing up in IE In-Reply-To: <4436941D.4080204@refractions.net> Message-ID: Interesting. Fixed the empty color string. I have been puzzling over the "document.layers" error on the javascript console for a while now. Looking into the source of the main landview application source file, i see a couple references to document.layers: function checkLegendControls(element) { for (var i=0; i ms.getscale()) { disableLegendControls(element[i]); } } } } and it looks like this function is run from the postdraw() function with: checkLegendControls(document.layers.foreground); checkLegendControls(document.layers.background); Note that I am not including a "layers=" string in my URL passed to the mapserver CGI. Cheers, On Friday 07 April 2006 09:32 am, Andrew Krakowski wrote: > My IE debugger complained about > > document.getElementById('survey_message').style.color = color; > > So perhaps make a default color to assign rather than an empty string. > > Also there are a couple JavaScript errors when you load the page in > FireFox and the one that says "document.layers has no properties" leads > me to suspect you are assigning or using a layer before it has data. > > Cheers! > Andrew > > Dylan Beaudette wrote: > > Greetings, > > > > Our Landview-based DHTML mapserver application works quite well on nearly > > every web browser _except_ IE... > > > > Here is a link to a sample page, note that there should be a legend in > > the upper left hand corner: > > > > http://tinyurl.com/mjfxk > > > > > > I have browsed through the javascript libraries included in the landview > > application, but have yet to find any thing that might be related to the > > missing legend. I have a sneaking suspicion that it has something to do > > with how the DBOX container is implemented. > > > > Any thoughts or suggestions would be greatly appreciated. > > > > Cheers, -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From listario at GMAIL.COM Fri Apr 7 09:52:59 2006 From: listario at GMAIL.COM (J. Parapar) Date: Fri, 7 Apr 2006 18:52:59 +0200 Subject: A bug with mapserver In-Reply-To: <001101c657e8$d5ff10d0$9c01a8c0@centreo3w0r1p4> Message-ID: Hi Hugo, It seems there is a problem with the options in the What is the correct URL? And a second problem. Can you guide to some basics of mapserver? I look on the site, but I didn't found some step to stept explanations. Thanks a lot! Catalin G. --------------------------------- New Yahoo! Messenger with Voice. Call regular phones from your PC and save big. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gisaalter at GMAIL.COM Sat Apr 15 04:41:07 2006 From: gisaalter at GMAIL.COM (Steven De Vriendt) Date: Sat, 15 Apr 2006 13:41:07 +0200 Subject: I just need to get started! Please, help me with some tips! In-Reply-To: <20060415081012.59381.qmail@web31310.mail.mud.yahoo.com> Message-ID: Hi, Hi, If you're a beginner I can advise you this book by Tyler Mitchell http://www.amazon.com/gp/product/0596008651/qid=1145100799/sr=1-3/ref=sr_1_3/104-2997351-0606345?s=books&v=glance&n=283155 It covers a lot of the basics to MapServer, like you I'm quite new to MapServer etc...but I've learned quite a lot from this book. Good luck ! On 4/15/06, Catalin G. wrote: > > Hi, > > I really need to learn how to implement mapserver technology on a site, > but I could use some tips for the begining. > > I installed ms4w on my computer so now I have mapserver installed and > chamelon too. The problem is when I tried to add the demo files in my > mapserver directory structure. > > I added the files from DEMO here: E:/ms4w/Apache/htdocs/itasca. > I launched in my browser the next link: > http://localhost/itasca/demo_init.html. > Now I should update the file demo.map and demo_init.html in order to make > this to work. > > Here is the problem, cause I don't think I do it corectly. >
> value="/ms4w/apache/htdocs/itasca/demo.map"> > > What is the correct URL? > > And a second problem. > > Can you guide to some basics of mapserver? I look on the site, but I > didn't found some step to stept explanations. > > Thanks a lot! > > > > > *Catalin G.* > > ------------------------------ > New Yahoo! Messenger with Voice. Call regular phones from your PCand save big. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Sat Apr 15 08:18:33 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sat, 15 Apr 2006 11:18:33 -0400 Subject: New google maps feature - Reference map Message-ID: Check out the dynamic reference maps on google http://maps.google.com/ You can drag the reference box! -Steve From pspencer at DMSOLUTIONS.CA Sat Apr 15 10:08:33 2006 From: pspencer at DMSOLUTIONS.CA (Paul Spencer) Date: Sat, 15 Apr 2006 13:08:33 -0400 Subject: [ka-Map-users] New google maps feature - Reference map In-Reply-To: <44410EC9.4060903@swoodbridge.com> Message-ID: works very nicely although I find it a bit disconcerting the way everything scrolls at once when you drag the reference box. Very cool though. Paul On 15-Apr-06, at 11:18 AM, Stephen Woodbridge wrote: > Check out the dynamic reference maps on google > > http://maps.google.com/ > > You can drag the reference box! > > -Steve > _______________________________________________ > ka-Map-users mailing list > ka-Map-users at lists.maptools.org > http://lists.maptools.org/mailman/listinfo/ka-map-users +-----------------------------------------------------------------+ |Paul Spencer pspencer at dmsolutions.ca | +-----------------------------------------------------------------+ |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| +-----------------------------------------------------------------+ From baas at SPEERIT.NL Sat Apr 15 12:53:36 2006 From: baas at SPEERIT.NL (Jelmer Baas) Date: Sat, 15 Apr 2006 21:53:36 +0200 Subject: New google maps feature - Reference map In-Reply-To: <44410EC9.4060903@swoodbridge.com> Message-ID: Stephen Woodbridge wrote: > Check out the dynamic reference maps on google > > http://maps.google.com/ Fun, but I'm surprised my mousewheel still doesn't work... ;-) -- Met vriendelijke groet, Jelmer Baas Speer IT B.V. From s.pashby at POSTGRAD.CURTIN.EDU.AU Sat Apr 15 15:48:04 2006 From: s.pashby at POSTGRAD.CURTIN.EDU.AU (Steve Pashby) Date: Sat, 15 Apr 2006 22:48:04 +0000 Subject: I just need to get started! Please, help me with some tips! Message-ID: Steven De Vriendt GMAIL.COM> writes: > > > Hi, > ? > Hi, > ? > If you're a beginner I can advise you this book by Tyler Mitchell > http://www.amazon.com/gp/product/0596008651/qid=1145100799/sr=1- 3/ref=sr_1_3/104-2997351-0606345?s=books&v=glance&n=283155 > > It?covers a lot of the basics to MapServer, like you I'm quite new to MapServer etc...but I've learned quite a lot from this book. > ? > Good luck !? > > On 4/15/06, Catalin G. yahoo.com> wrote: > > Hi, I really need to learn how to implement mapserver technology on a site, but I could use some tips for the begining. I installed ms4w on my computer so now I have mapserver installed and chamelon too. The problem is when I tried to add the demo files in my mapserver directory structure. > I added the files from DEMO here: E:/ms4w/Apache/htdocs/itasca. I launched in my browser the next link: > http://localhost/itasca/demo_init.html. Now I should update the file demo.map and demo_init.html in order to make this to work. Here is the problem, cause I don't think I do it corectly. > What is the correct URL? And a second problem. Can you guide to some basics of mapserver? I look on the site, but I didn't found some step to stept explanations. > Thanks a lot! ? > > Catalin G. ---------------------------------------------------------------------------- Hi Catalin, I found the book "Beginning MapServer, Open Source GIS Development" by BILL KROPLA extremely useful and has helped me a lot ! It takes you through the very basics of MapServer and explains what all the code is and what it does. Also, in your code try adding .exe to the end of mapserv (ie, ) as i had similar problems when i started out, and all it took was to add the ".exe". Cheers, Steve From khaled.kamoun at GMAIL.COM Mon Apr 17 00:45:55 2006 From: khaled.kamoun at GMAIL.COM (Khaled Kamoun) Date: Mon, 17 Apr 2006 09:45:55 +0200 Subject: connection to esri geodatabase In-Reply-To: Message-ID: I have recived this error when i tried to open the geodatabase with ogrinfo : FAILURE: Unable to open datasource `C:\Inetpub\wwwroot\MapservApp\donnee\021_La_Goulette_ SO.mdb' with the following drivers. -> ESRI Shapefile -> UK .NTF -> SDTS -> TIGER -> S57 -> MapInfo File -> DGN -> VRT -> AVCBin -> REC -> Memory -> CSV -> GML -> ODBC -> PostgreSQL What can I do now? 2006/4/15, Steve Pashby : > > Khaled Kamoun GMAIL.COM> writes: > > > > > > > Hello, > > I want to connect to an ESRI geodatabase named "021_La_Goulette_SO.mdb" > and > use a layer named "RCROUCAL" > > I used this code: > > > > CONNECTIONTYPE > ogrCONNECTION > "C:\Inetpub\wwwroot\MapservApp\donnee\021_La_Goulette_SO.mdb"DATA > "RCROUCAL" > > > > but i recived this error : > > > > > > msDrawMap(): Image handling error. Failed to draw layer named > 'Rcroucal'. > msOGRFileOpen(): OGR error. Open failed for OGR connection > `C:\Inetpub\wwwroot\MapservApp\donnee\021_La_Goulette_SO.mdb'. File not > found > or unsupported format. > > > > > > How can I do; > > Thank you > > > > -- Khaled KAMOUN > > > > Hi Khaled, > > I've just recently connected to an ESRI geodatabase - and had some > problems to > start with too. > > Try running 'ogrinfo' from the Command Line Promt and see if it can access > your data, ie-> > > ogrinfo C:\Inetpub\wwwroot\MapservApp\donnee\021_La_Goulette_SO.mdb > -summary > > and see if you get a summary of your data. If you can, at least you know > MapServer CAN access your data. > > See what happens ... > Cheers, > Steve > -- Khaled KAMOUN -------------- next part -------------- An HTML attachment was scrubbed... URL: From piero.cavalieri at GMAIL.COM Mon Apr 17 01:38:47 2006 From: piero.cavalieri at GMAIL.COM (piero.cavalieri@gmail.com) Date: Mon, 17 Apr 2006 10:38:47 +0200 Subject: dotnet + mapserv cgi Message-ID: Hi all, I done simple application for .net (C#) using mapserver CGI, dbox (the 'old' one) and ajax. It's anytihing special (done mainly in raining weekends), it looks like gmap demo, but there is no postback at all (it's based on a free ajax library). I used xml files both for web template and query templates (also layers and extents are defined in a xml config file). It's only few lines of code, so it's simple to understand for beginners (like me!), and there's space to enache it (geocode, "continuos" panning like google maps, but I should study ka-map code for this, because I don't know how to solve labelling problem on the edges and client side caching, at the moment (and I know, I'll not have time for this...)). Also I would like to have it running with mono, before going on (time permitted...) Image: http://pierocavalieri.altervista.org/images/img2.jpg and img3.jpg If anyone interested I could publish code (I have to ask in company where I work, first, because we use this for a demo, sometimes). Cheers Piero From agomez at CCCMM.CESGA.ES Mon Apr 17 04:36:33 2006 From: agomez at CCCMM.CESGA.ES (Alberto Gomez) Date: Mon, 17 Apr 2006 13:36:33 +0200 Subject: dotnet + mapserv cgi Message-ID: Hi Piero, I'm working with mapserv cgi and i'd like to migrate to dotnet, so i'm beginning with ajax. It'll be cool you to share some code sample to help beginners like me too. Thanks in advance, Alberto > ----- Original Message ----- > From: "piero.cavalieri at gmail.com" > To: > Sent: Monday, April 17, 2006 10:38 AM > Subject: [UMN_MAPSERVER-USERS] dotnet + mapserv cgi > > >> Hi all, >> >> I done simple application for .net (C#) using mapserver CGI, dbox (the >> 'old' one) and ajax. It's anytihing special (done mainly in raining >> weekends), it looks like gmap demo, but there is no postback at all (it's >> based on a free ajax library). I used xml files both for web template and >> query templates (also layers and extents are defined in a xml config >> file). It's only few lines of code, so it's simple to understand for >> beginners (like me!), and there's space to enache it (geocode, >> "continuos" panning like google maps, but I should study ka-map code for >> this, because I don't know how to solve labelling problem on the edges >> and client side caching, at the moment (and I know, I'll not have time >> for this...)). Also I would like to have it running with mono, before >> going on (time permitted...) >> Image: http://pierocavalieri.altervista.org/images/img2.jpg and img3.jpg >> >> If anyone interested I could publish code (I have to ask in company where >> I work, first, because we use this for a demo, sometimes). >> >> Cheers >> Piero >> >> >> >> >> > From mikesaunt at GMAIL.COM Mon Apr 17 04:41:39 2006 From: mikesaunt at GMAIL.COM (Mike Saunt) Date: Mon, 17 Apr 2006 12:41:39 +0100 Subject: dotnet + mapserv cgi In-Reply-To: <44435417.8000709@gmail.com> Message-ID: Hi Piero We work with MapServer in a similar way (i.e. MapServer CGI + C# Wrapper to build the URL and remember the state) I'd be very interested Cheers Mike On 17/04/06, piero.cavalieri at gmail.com wrote: > > Hi all, > > I done simple application for .net (C#) using mapserver CGI, dbox (the > 'old' one) and ajax. It's anytihing special (done mainly in raining > weekends), it looks like gmap demo, but there is no postback at all > (it's based on a free ajax library). I used xml files both for web > template and query templates (also layers and extents are defined in a > xml config file). It's only few lines of code, so it's simple to > understand for beginners (like me!), and there's space to enache it > (geocode, "continuos" panning like google maps, but I should study > ka-map code for this, because I don't know how to solve labelling > problem on the edges and client side caching, at the moment (and I know, > I'll not have time for this...)). Also I would like to have it running > with mono, before going on (time permitted...) > Image: http://pierocavalieri.altervista.org/images/img2.jpg and img3.jpg > > If anyone interested I could publish code (I have to ask in company > where I work, first, because we use this for a demo, sometimes). > > Cheers > Piero > -------------- next part -------------- An HTML attachment was scrubbed... URL: From siki at AGT.BME.HU Mon Apr 17 10:39:12 2006 From: siki at AGT.BME.HU (Siki Zoltan) Date: Mon, 17 Apr 2006 16:39:12 -0100 Subject: connection to esri geodatabase {Scanned} In-Reply-To: Message-ID: Dear Khaled, Which version of gdal are you using? ESRI Personal Geobase is supported (AFAIK) 1.3.x Zoltan On Mon, 17 Apr 2006, Khaled Kamoun wrote: > I have recived this error when i tried to open the geodatabase with ogrinfo > : > > > FAILURE: > Unable to open datasource > `C:\Inetpub\wwwroot\MapservApp\donnee\021_La_Goulette_ > SO.mdb' with the following drivers. > -> ESRI Shapefile > -> UK .NTF > -> SDTS > -> TIGER > -> S57 > -> MapInfo File > -> DGN > -> VRT > -> AVCBin > -> REC > -> Memory > -> CSV > -> GML > -> ODBC > -> PostgreSQL > > What can I do now? > > 2006/4/15, Steve Pashby : > > > > Khaled Kamoun GMAIL.COM> writes: > > > > > > > > > > > Hello, > > > I want to connect to an ESRI geodatabase named "021_La_Goulette_SO.mdb" > > and > > use a layer named "RCROUCAL" > > > I used this code: > > > > > > CONNECTIONTYPE > > ogrCONNECTION > > "C:\Inetpub\wwwroot\MapservApp\donnee\021_La_Goulette_SO.mdb"DATA > > "RCROUCAL" > > > > > > but i recived this error : > > > > > > > > > msDrawMap(): Image handling error. Failed to draw layer named > > 'Rcroucal'. > > msOGRFileOpen(): OGR error. Open failed for OGR connection > > `C:\Inetpub\wwwroot\MapservApp\donnee\021_La_Goulette_SO.mdb'. File not > > found > > or unsupported format. > > > > > > > > > How can I do; > > > Thank you > > > > > > -- Khaled KAMOUN > > > > > > > Hi Khaled, > > > > I've just recently connected to an ESRI geodatabase - and had some > > problems to > > start with too. > > > > Try running 'ogrinfo' from the Command Line Promt and see if it can access > > your data, ie-> > > > > ogrinfo C:\Inetpub\wwwroot\MapservApp\donnee\021_La_Goulette_SO.mdb > > -summary > > > > and see if you get a summary of your data. If you can, at least you know > > MapServer CAN access your data. > > > > See what happens ... > > Cheers, > > Steve > > > > > > -- > Khaled KAMOUN > From khaled.kamoun at GMAIL.COM Mon Apr 17 07:45:44 2006 From: khaled.kamoun at GMAIL.COM (Khaled Kamoun) Date: Mon, 17 Apr 2006 16:45:44 +0200 Subject: connection to esri geodatabase {Scanned} In-Reply-To: Message-ID: dear Zoltan, how can i know which version of gdal i'm using? i have 2 dll file gdal12.dll and gdal13.dll thank you 2006/4/17, Siki Zoltan : > > Dear Khaled, > > Which version of gdal are you using? > ESRI Personal Geobase is supported (AFAIK) 1.3.x > > Zoltan > > On Mon, 17 Apr 2006, Khaled Kamoun wrote: > > > I have recived this error when i tried to open the geodatabase with > ogrinfo > > : > > > > > > FAILURE: > > Unable to open datasource > > `C:\Inetpub\wwwroot\MapservApp\donnee\021_La_Goulette_ > > SO.mdb' with the following drivers. > > -> ESRI Shapefile > > -> UK .NTF > > -> SDTS > > -> TIGER > > -> S57 > > -> MapInfo File > > -> DGN > > -> VRT > > -> AVCBin > > -> REC > > -> Memory > > -> CSV > > -> GML > > -> ODBC > > -> PostgreSQL > > > > What can I do now? > > > > 2006/4/15, Steve Pashby : > > > > > > Khaled Kamoun GMAIL.COM> writes: > > > > > > > > > > > > > > > Hello, > > > > I want to connect to an ESRI geodatabase named > "021_La_Goulette_SO.mdb" > > > and > > > use a layer named "RCROUCAL" > > > > I used this code: > > > > > > > > CONNECTIONTYPE > > > ogrCONNECTION > > > "C:\Inetpub\wwwroot\MapservApp\donnee\021_La_Goulette_SO.mdb"DATA > > > "RCROUCAL" > > > > > > > > but i recived this error : > > > > > > > > > > > > msDrawMap(): Image handling error. Failed to draw layer named > > > 'Rcroucal'. > > > msOGRFileOpen(): OGR error. Open failed for OGR connection > > > `C:\Inetpub\wwwroot\MapservApp\donnee\021_La_Goulette_SO.mdb'. File > not > > > found > > > or unsupported format. > > > > > > > > > > > > How can I do; > > > > Thank you > > > > > > > > -- Khaled KAMOUN > > > > > > > > > > Hi Khaled, > > > > > > I've just recently connected to an ESRI geodatabase - and had some > > > problems to > > > start with too. > > > > > > Try running 'ogrinfo' from the Command Line Promt and see if it can > access > > > your data, ie-> > > > > > > ogrinfo C:\Inetpub\wwwroot\MapservApp\donnee\021_La_Goulette_SO.mdb > > > -summary > > > > > > and see if you get a summary of your data. If you can, at least you > know > > > MapServer CAN access your data. > > > > > > See what happens ... > > > Cheers, > > > Steve > > > > > > > > > > > -- > > Khaled KAMOUN > > > > -- Khaled KAMOUN -------------- next part -------------- An HTML attachment was scrubbed... URL: From siki at AGT.BME.HU Mon Apr 17 11:58:08 2006 From: siki at AGT.BME.HU (Siki Zoltan) Date: Mon, 17 Apr 2006 17:58:08 -0100 Subject: connection to esri geodatabase {Scanned} In-Reply-To: Message-ID: Dear Khaled, Start any of the gdal utilities (gdalinfo, gdal_translate, ...) with a switch --version for example gdalinfo --version Probably you have both 1.2 and 1.3 on your matchine. Zoltan On Mon, 17 Apr 2006, Khaled Kamoun wrote: > dear Zoltan, > > how can i know which version of gdal i'm using? > i have 2 dll file gdal12.dll and gdal13.dll > thank you > > > 2006/4/17, Siki Zoltan : > > > > Dear Khaled, > > > > Which version of gdal are you using? > > ESRI Personal Geobase is supported (AFAIK) 1.3.x > > > > Zoltan > > > > On Mon, 17 Apr 2006, Khaled Kamoun wrote: > > > > > I have recived this error when i tried to open the geodatabase with > > ogrinfo > > > : > > > > > > > > > FAILURE: > > > Unable to open datasource > > > `C:\Inetpub\wwwroot\MapservApp\donnee\021_La_Goulette_ > > > SO.mdb' with the following drivers. > > > -> ESRI Shapefile > > > -> UK .NTF > > > -> SDTS > > > -> TIGER > > > -> S57 > > > -> MapInfo File > > > -> DGN > > > -> VRT > > > -> AVCBin > > > -> REC > > > -> Memory > > > -> CSV > > > -> GML > > > -> ODBC > > > -> PostgreSQL > > > > > > What can I do now? > > > > > > 2006/4/15, Steve Pashby : > > > > > > > > Khaled Kamoun GMAIL.COM> writes: > > > > > > > > > > > > > > > > > > > Hello, > > > > > I want to connect to an ESRI geodatabase named > > "021_La_Goulette_SO.mdb" > > > > and > > > > use a layer named "RCROUCAL" > > > > > I used this code: > > > > > > > > > > CONNECTIONTYPE > > > > ogrCONNECTION > > > > "C:\Inetpub\wwwroot\MapservApp\donnee\021_La_Goulette_SO.mdb"DATA > > > > "RCROUCAL" > > > > > > > > > > but i recived this error : > > > > > > > > > > > > > > > msDrawMap(): Image handling error. Failed to draw layer named > > > > 'Rcroucal'. > > > > msOGRFileOpen(): OGR error. Open failed for OGR connection > > > > `C:\Inetpub\wwwroot\MapservApp\donnee\021_La_Goulette_SO.mdb'. File > > not > > > > found > > > > or unsupported format. > > > > > > > > > > > > > > > How can I do; > > > > > Thank you > > > > > > > > > > -- Khaled KAMOUN > > > > > > > > > > > > > Hi Khaled, > > > > > > > > I've just recently connected to an ESRI geodatabase - and had some > > > > problems to > > > > start with too. > > > > > > > > Try running 'ogrinfo' from the Command Line Promt and see if it can > > access > > > > your data, ie-> > > > > > > > > ogrinfo C:\Inetpub\wwwroot\MapservApp\donnee\021_La_Goulette_SO.mdb > > > > -summary > > > > > > > > and see if you get a summary of your data. If you can, at least you > > know > > > > MapServer CAN access your data. > > > > > > > > See what happens ... > > > > Cheers, > > > > Steve > > > > > > > > > > > > > > > > -- > > > Khaled KAMOUN > > > > > > > > > > -- > Khaled KAMOUN > From khaled.kamoun at GMAIL.COM Mon Apr 17 09:09:09 2006 From: khaled.kamoun at GMAIL.COM (Khaled Kamoun) Date: Mon, 17 Apr 2006 18:09:09 +0200 Subject: connection to esri geodatabase {Scanned} In-Reply-To: Message-ID: thank you, My gdal version is 1.2.6 2006/4/17, Siki Zoltan : > > Dear Khaled, > > Start any of the gdal utilities (gdalinfo, gdal_translate, ...) with a > switch --version > for example > gdalinfo --version > > Probably you have both 1.2 and 1.3 on your matchine. > > Zoltan > > On Mon, 17 Apr 2006, Khaled Kamoun wrote: > > > dear Zoltan, > > > > how can i know which version of gdal i'm using? > > i have 2 dll file gdal12.dll and gdal13.dll > > thank you > > > > > > 2006/4/17, Siki Zoltan : > > > > > > Dear Khaled, > > > > > > Which version of gdal are you using? > > > ESRI Personal Geobase is supported (AFAIK) 1.3.x > > > > > > Zoltan > > > > > > On Mon, 17 Apr 2006, Khaled Kamoun wrote: > > > > > > > I have recived this error when i tried to open the geodatabase with > > > ogrinfo > > > > : > > > > > > > > > > > > FAILURE: > > > > Unable to open datasource > > > > `C:\Inetpub\wwwroot\MapservApp\donnee\021_La_Goulette_ > > > > SO.mdb' with the following drivers. > > > > -> ESRI Shapefile > > > > -> UK .NTF > > > > -> SDTS > > > > -> TIGER > > > > -> S57 > > > > -> MapInfo File > > > > -> DGN > > > > -> VRT > > > > -> AVCBin > > > > -> REC > > > > -> Memory > > > > -> CSV > > > > -> GML > > > > -> ODBC > > > > -> PostgreSQL > > > > > > > > What can I do now? > > > > > > > > 2006/4/15, Steve Pashby : > > > > > > > > > > Khaled Kamoun GMAIL.COM> writes: > > > > > > > > > > > > > > > > > > > > > > > Hello, > > > > > > I want to connect to an ESRI geodatabase named > > > "021_La_Goulette_SO.mdb" > > > > > and > > > > > use a layer named "RCROUCAL" > > > > > > I used this code: > > > > > > > > > > > > CONNECTIONTYPE > > > > > ogrCONNECTION > > > > > "C:\Inetpub\wwwroot\MapservApp\donnee\021_La_Goulette_SO.mdb"DATA > > > > > "RCROUCAL" > > > > > > > > > > > > but i recived this error : > > > > > > > > > > > > > > > > > > msDrawMap(): Image handling error. Failed to draw layer named > > > > > 'Rcroucal'. > > > > > msOGRFileOpen(): OGR error. Open failed for OGR connection > > > > > `C:\Inetpub\wwwroot\MapservApp\donnee\021_La_Goulette_SO.mdb'. > File > > > not > > > > > found > > > > > or unsupported format. > > > > > > > > > > > > > > > > > > How can I do; > > > > > > Thank you > > > > > > > > > > > > -- Khaled KAMOUN > > > > > > > > > > > > > > > > Hi Khaled, > > > > > > > > > > I've just recently connected to an ESRI geodatabase - and had some > > > > > problems to > > > > > start with too. > > > > > > > > > > Try running 'ogrinfo' from the Command Line Promt and see if it > can > > > access > > > > > your data, ie-> > > > > > > > > > > ogrinfo > C:\Inetpub\wwwroot\MapservApp\donnee\021_La_Goulette_SO.mdb > > > > > -summary > > > > > > > > > > and see if you get a summary of your data. If you can, at least > you > > > know > > > > > MapServer CAN access your data. > > > > > > > > > > See what happens ... > > > > > Cheers, > > > > > Steve > > > > > > > > > > > > > > > > > > > > > -- > > > > Khaled KAMOUN > > > > > > > > > > > > > > > > -- > > Khaled KAMOUN > > > > -- Khaled KAMOUN -------------- next part -------------- An HTML attachment was scrubbed... URL: From elshayal at SMARTWEBONLINE.COM Mon Apr 17 09:15:25 2006 From: elshayal at SMARTWEBONLINE.COM (Mr. Mohamed Elshayal) Date: Mon, 17 Apr 2006 18:15:25 +0200 Subject: my new beta GIS Software ElshayalSmart for map and data base editing and drawing Message-ID: Dear Sirs, I have published my new beta GIS Software ElshayalSmart for map and data base editing and drawing Kindly, please download it at http://www.smartwebonline.com/ or at http://www.gismagazine.com/downloads/download.php?id=143 and test it and inform me by your ideas and points of view Thank you and best personal regards Mohamed Elshayal -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Mon Apr 17 10:48:44 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 17 Apr 2006 12:48:44 -0500 Subject: Estimate of number of MapServer installations and applications? Message-ID: Hi all: Has anyone got any good metrics for these? I was hoping that someone who "sells" open source solutions might have a number they've been using. Steve From dylan.beaudette at GMAIL.COM Mon Apr 17 11:19:27 2006 From: dylan.beaudette at GMAIL.COM (Dylan Beaudette) Date: Mon, 17 Apr 2006 11:19:27 -0700 Subject: landview application and AJAX Message-ID: Greetings, I have been working with the Landview DHTML interface to mapserver, and would like to include support for some additional asynchronous interaction with a database. Currently our application works like this: select a region --> generate URL based on selection --> mapserver application with arguments in URL --> interaction with mapserver application I have written some functions in javascript and PHP to perform a spatial query on a PostGIS database: mapserver application --> calculate extent center coordinates with JS --> AJAX style request to PHP function page --> data is returned to mapserver page and displayed this is being done in the postdraw() function found in the landview application. I am having trouble figuring out how to pass the results from the above function to the creation of the mapserver object such that this value is also passed to the mapfile. In particular, I am curious about when the following line from the landview application is executed: var ms = new Mapserv("main", the_mapfile, ... ); Any ideas on how to do this? Thanks! -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From dmcilhagga at DMSOLUTIONS.CA Mon Apr 17 11:25:53 2006 From: dmcilhagga at DMSOLUTIONS.CA (Dave McIlhagga) Date: Mon, 17 Apr 2006 14:25:53 -0400 Subject: Estimate of number of MapServer installations and applications? In-Reply-To: Message-ID: Steve, We've done extensive investigation on this by looking at a number of metrics -- our best guess that we feel is somewhat conservative is somewhere between 20k to 40k installations worldwide. Dave Steve Lime wrote: > Hi all: Has anyone got any good metrics for these? I was hoping that someone who "sells" > open source solutions might have a number they've been using. > > Steve > From dmcilhagga at DMSOLUTIONS.CA Mon Apr 17 11:29:58 2006 From: dmcilhagga at DMSOLUTIONS.CA (Dave McIlhagga) Date: Mon, 17 Apr 2006 14:29:58 -0400 Subject: Estimate of number of MapServer installations and applications? In-Reply-To: <4443DDB1.1000603@dmsolutions.ca> Message-ID: Having said that -- that estimate is close to a year old now and probably needs an update. Steve - do you know where we are at in terms of number of mailing list subscribers? Dave Dave McIlhagga wrote: > Steve, > > We've done extensive investigation on this by looking at a number of > metrics -- our best guess that we feel is somewhat conservative is > somewhere between 20k to 40k installations worldwide. > > Dave > > Steve Lime wrote: > >> Hi all: Has anyone got any good metrics for these? I was hoping that >> someone who "sells" >> open source solutions might have a number they've been using. >> >> Steve >> > From baas at SPEERIT.NL Mon Apr 17 11:30:53 2006 From: baas at SPEERIT.NL (Jelmer Baas) Date: Mon, 17 Apr 2006 20:30:53 +0200 Subject: my new beta GIS Software ElshayalSmart for map and data base editing and drawing In-Reply-To: <000a01c6623a$24aeab90$0600000a@PORTEGE> Message-ID: Mr. Mohamed Elshayal wrote: > Dear Sirs, > > I have published my new beta GIS Software ElshayalSmart for map and data > base editing and drawing > > Kindly, please download it at http://www.smartwebonline.com/ > or at > http://www.gismagazine.com/downloads/download.php?id=143 > > and test it and inform me by your ideas and points of view I can't, since you use "document.all" everywhere instead of document.getElementById(). This, plus some other JS errors, make me (a Mozilla Firefox user) unable to see a single page on your site. I suggest you review your code and make it standards compliant. -- With kind regards, Jelmer Baas From teb at MALLIT.FR.UMN.EDU Mon Apr 17 11:28:46 2006 From: teb at MALLIT.FR.UMN.EDU (Thomas E Burk) Date: Mon, 17 Apr 2006 13:28:46 -0500 Subject: Estimate of number of MapServer installations and applications? Message-ID: >X-Umn-Remote-Mta: [N] lsv-m.tc.umn.edu [160.94.23.1] #+HF+LO+NM+TR >X-Umn-Remote-Mta: [N] tomts16.bellnexxia.net [209.226.175.4] #+NM+NR+CU+OF (A,-) >X-Umn-Report-As-Spam: >User-Agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317) >X-Accept-Language: en-us, en >MIME-Version: 1.0 >Content-Transfer-Encoding: 7bit >Date: Mon, 17 Apr 2006 14:29:58 -0400 >From: Dave McIlhagga >Subject: Re: [UMN_MAPSERVER-USERS] Estimate of number of MapServer installations and applications? >To: MAPSERVER-USERS at lists.umn.edu > >Having said that -- that estimate is close to a year old now and >probably needs an update. > >Steve - do you know where we are at in terms of number of mailing list >subscribers? > It's been the roughly the same for over a year. We are at 2060 right now. Tom >Dave > > >Dave McIlhagga wrote: >> Steve, >> >> We've done extensive investigation on this by looking at a number of >> metrics -- our best guess that we feel is somewhat conservative is >> somewhere between 20k to 40k installations worldwide. >> >> Dave >> >> Steve Lime wrote: >> >>> Hi all: Has anyone got any good metrics for these? I was hoping that >>> someone who "sells" >>> open source solutions might have a number they've been using. >>> >>> Steve >>> >> > From elshayal at SMARTWEBONLINE.COM Mon Apr 17 12:27:03 2006 From: elshayal at SMARTWEBONLINE.COM (Mr. Mohamed Elshayal) Date: Mon, 17 Apr 2006 21:27:03 +0200 Subject: my new beta GIS Software ElshayalSmart for map and data base editing and drawing Message-ID: Dear Sirs, Kindly please download it at this direct link http://www.gismagazine.com/downloads/download.php?id=143 and test it and inform me by your ideas and points of view Thank you and best personal regards Mohamed Elshayal ----- Original Message ----- From: "Jelmer Baas" To: Sent: Monday, April 17, 2006 8:30 PM Subject: Re: [UMN_MAPSERVER-USERS] my new beta GIS Software ElshayalSmart for map and data base editing and drawing > Mr. Mohamed Elshayal wrote: >> Dear Sirs, >> I have published my new beta GIS Software ElshayalSmart for map and data >> base editing and drawing >> Kindly, please download it at http://www.smartwebonline.com/ or at >> http://www.gismagazine.com/downloads/download.php?id=143 >> and test it and inform me by your ideas and points of view > > I can't, since you use "document.all" everywhere instead of > document.getElementById(). This, plus some other JS errors, make me (a > Mozilla Firefox user) unable to see a single page on your site. > > I suggest you review your code and make it standards compliant. > > -- > With kind regards, > Jelmer Baas > From Steve.Lime at DNR.STATE.MN.US Mon Apr 17 12:40:39 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 17 Apr 2006 14:40:39 -0500 Subject: Estimate of number of MapServer installations and applications? Message-ID: Thanks Dave, that's a big number. The mailing list is at 2060 subscriptions. If my memory is correct we were at about 1,500 last October- a healthy increase. One question is what's the definition of an "installation"? Steve >>> Dave McIlhagga 4/17/2006 1:29:58 PM >>> Having said that -- that estimate is close to a year old now and probably needs an update. Steve - do you know where we are at in terms of number of mailing list subscribers? Dave Dave McIlhagga wrote: > Steve, > > We've done extensive investigation on this by looking at a number of > metrics -- our best guess that we feel is somewhat conservative is > somewhere between 20k to 40k installations worldwide. > > Dave > > Steve Lime wrote: > >> Hi all: Has anyone got any good metrics for these? I was hoping that >> someone who "sells" >> open source solutions might have a number they've been using. >> >> Steve >> > From Steve.Lime at DNR.STATE.MN.US Mon Apr 17 12:44:06 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 17 Apr 2006 14:44:06 -0500 Subject: Estimate of number of MapServer installations and applications? Message-ID: I think my memory is having trouble if Tom is correct... ;-) Steve >>> Steve Lime 4/17/2006 2:40:39 PM >>> Thanks Dave, that's a big number. The mailing list is at 2060 subscriptions. If my memory is correct we were at about 1,500 last October- a healthy increase. One question is what's the definition of an "installation"? Steve >>> Dave McIlhagga 4/17/2006 1:29:58 PM >>> Having said that -- that estimate is close to a year old now and probably needs an update. Steve - do you know where we are at in terms of number of mailing list subscribers? Dave Dave McIlhagga wrote: > Steve, > > We've done extensive investigation on this by looking at a number of > metrics -- our best guess that we feel is somewhat conservative is > somewhere between 20k to 40k installations worldwide. > > Dave > > Steve Lime wrote: > >> Hi all: Has anyone got any good metrics for these? I was hoping that >> someone who "sells" >> open source solutions might have a number they've been using. >> >> Steve >> > From Steve.Lime at DNR.STATE.MN.US Mon Apr 17 12:57:37 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 17 Apr 2006 14:57:37 -0500 Subject: landview application and AJAX Message-ID: There is a member in the Mapserv object called 'options' that allows you to add arbitrary parameters to the URL passed to mapserver. You might try something like: myMap.options = "&foo=" + foovar; Where 'foo' is the variable you're passing to MapServer and foovar is the javascript variable you filled via ajax/xmlhttp... Make sense? Steve >>> Dylan Beaudette 4/17/2006 1:19:27 PM >>> Greetings, I have been working with the Landview DHTML interface to mapserver, and would like to include support for some additional asynchronous interaction with a database. Currently our application works like this: select a region --> generate URL based on selection --> mapserver application with arguments in URL --> interaction with mapserver application I have written some functions in javascript and PHP to perform a spatial query on a PostGIS database: mapserver application --> calculate extent center coordinates with JS --> AJAX style request to PHP function page --> data is returned to mapserver page and displayed this is being done in the postdraw() function found in the landview application. I am having trouble figuring out how to pass the results from the above function to the creation of the mapserver object such that this value is also passed to the mapfile. In particular, I am curious about when the following line from the landview application is executed: var ms = new Mapserv("main", the_mapfile, ... ); Any ideas on how to do this? Thanks! -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From dmcilhagga at DMSOLUTIONS.CA Mon Apr 17 13:09:22 2006 From: dmcilhagga at DMSOLUTIONS.CA (Dave McIlhagga) Date: Mon, 17 Apr 2006 16:09:22 -0400 Subject: Estimate of number of MapServer installations and applications? In-Reply-To: Message-ID: Hi Steve, Yup - it's a big number, but it became apparrent when we started looking at how much MapServer was being used without an associated user ever subscribing to the direct MapServer mailing list due to: 1. Embedded in Client Tools (chameleon, ka-map, maplab, mapbender, etc..) where users may not subscribe to MS list 2. Culture/Language differences, driving non-english speaking users away from the list 3. Embedded in commercial solutions that get deployed without any associated user 4. Customers who purchase full web mapping solutions from a developer/consultant and don't engage in the technology 5. High volume list deters some users from subscribing There are many other drivers as well. All of these contribute to MapServer installations around the world without an associated 'user' subscribing to the mailing list. By installations -- we mean # of machines MapServer is installed on. Dave Steve Lime wrote: > Thanks Dave, that's a big number. The mailing list is at 2060 subscriptions. If my memory is > correct we were at about 1,500 last October- a healthy increase. > > One question is what's the definition of an "installation"? > > Steve > > >>>>Dave McIlhagga 4/17/2006 1:29:58 PM >>> > > Having said that -- that estimate is close to a year old now and > probably needs an update. > > Steve - do you know where we are at in terms of number of mailing list > subscribers? > > Dave > > > Dave McIlhagga wrote: > >>Steve, >> >>We've done extensive investigation on this by looking at a number of >>metrics -- our best guess that we feel is somewhat conservative is >>somewhere between 20k to 40k installations worldwide. >> >>Dave >> >>Steve Lime wrote: >> >> >>>Hi all: Has anyone got any good metrics for these? I was hoping that >>>someone who "sells" >>>open source solutions might have a number they've been using. >>> >>>Steve >>> >> > From dylan.beaudette at GMAIL.COM Mon Apr 17 13:47:34 2006 From: dylan.beaudette at GMAIL.COM (Dylan Beaudette) Date: Mon, 17 Apr 2006 13:47:34 -0700 Subject: landview application and AJAX In-Reply-To: Message-ID: Thanks for the pointers Steve, In particular I was curious about the execution order, or a general concept of how the Landview application works. Thanks, Dylan On Monday 17 April 2006 12:57 pm, Steve Lime wrote: > There is a member in the Mapserv object called 'options' that allows you to > add arbitrary parameters to the URL passed to mapserver. You might try > something like: > > myMap.options = "&foo=" + foovar; > > Where 'foo' is the variable you're passing to MapServer and foovar is the > javascript variable you filled via ajax/xmlhttp... > > Make sense? > > Steve > > >>> Dylan Beaudette 4/17/2006 1:19:27 PM >>> > > Greetings, > > I have been working with the Landview DHTML interface to mapserver, and > would like to include support for some additional asynchronous interaction > with a database. > > Currently our application works like this: > > select a region --> generate URL based on selection --> mapserver > application with arguments in URL --> interaction with mapserver > application > > I have written some functions in javascript and PHP to perform a spatial > query on a PostGIS database: > mapserver application --> calculate extent center coordinates with JS --> > AJAX style request to PHP function page --> data is returned to mapserver > page and displayed > > this is being done in the postdraw() function found in the landview > application. > > > I am having trouble figuring out how to pass the results from the above > function to the creation of the mapserver object such that this value is > also passed to the mapfile. > > In particular, I am curious about when the following line from the landview > application is executed: > > var ms = new Mapserv("main", the_mapfile, ... ); > > Any ideas on how to do this? > > Thanks! -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From naci0002 at UMN.EDU Mon Apr 17 14:11:40 2006 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Mon, 17 Apr 2006 16:11:40 -0500 Subject: Estimate of number of MapServer installations and applications? In-Reply-To: <4443F5F2.7040800@dmsolutions.ca> Message-ID: Would be interesting to hear from the German and Brazilian communities as well if they are keeping their own mailing lists... -Perry On Monday 17 April 2006 15:09, Dave McIlhagga wrote: > Hi Steve, > > Yup - it's a big number, but it became apparrent when we started looking > at how much MapServer was being used without an associated user ever > subscribing to the direct MapServer mailing list due to: > > 1. Embedded in Client Tools (chameleon, ka-map, maplab, mapbender, > etc..) where users may not subscribe to MS list > 2. Culture/Language differences, driving non-english speaking users away > from the list > 3. Embedded in commercial solutions that get deployed without any > associated user > 4. Customers who purchase full web mapping solutions from a > developer/consultant and don't engage in the technology > 5. High volume list deters some users from subscribing > > There are many other drivers as well. > > > All of these contribute to MapServer installations around the world > without an associated 'user' subscribing to the mailing list. > > By installations -- we mean # of machines MapServer is installed on. > > Dave > > Steve Lime wrote: > > Thanks Dave, that's a big number. The mailing list is at 2060 > > subscriptions. If my memory is correct we were at about 1,500 last > > October- a healthy increase. > > > > One question is what's the definition of an "installation"? > > > > Steve > > > >>>>Dave McIlhagga 4/17/2006 1:29:58 PM >>> > > > > Having said that -- that estimate is close to a year old now and > > probably needs an update. > > > > Steve - do you know where we are at in terms of number of mailing list > > subscribers? > > > > Dave > > > > Dave McIlhagga wrote: > >>Steve, > >> > >>We've done extensive investigation on this by looking at a number of > >>metrics -- our best guess that we feel is somewhat conservative is > >>somewhere between 20k to 40k installations worldwide. > >> > >>Dave > >> > >>Steve Lime wrote: > >>>Hi all: Has anyone got any good metrics for these? I was hoping that > >>>someone who "sells" > >>>open source solutions might have a number they've been using. > >>> > >>>Steve -- Pericles S. Nacionales Conservation Biology Program University of Minnesota e-mail: naci0002 at umn.edu From Steve.Lime at DNR.STATE.MN.US Mon Apr 17 15:04:55 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 17 Apr 2006 17:04:55 -0500 Subject: landview application and AJAX Message-ID: The order is predraw callback, then the object draw method and finally the postdraw callback. The newer landview code (http://maps.dnr.state.mn.us/landview/experimental/landview.html) uses a single draw callback so you can do whatever you want. Steve >>> Dylan Beaudette 4/17/2006 3:47:34 PM >>> Thanks for the pointers Steve, In particular I was curious about the execution order, or a general concept of how the Landview application works. Thanks, Dylan On Monday 17 April 2006 12:57 pm, Steve Lime wrote: > There is a member in the Mapserv object called 'options' that allows you to > add arbitrary parameters to the URL passed to mapserver. You might try > something like: > > myMap.options = "&foo=" + foovar; > > Where 'foo' is the variable you're passing to MapServer and foovar is the > javascript variable you filled via ajax/xmlhttp... > > Make sense? > > Steve > > >>> Dylan Beaudette 4/17/2006 1:19:27 PM >>> > > Greetings, > > I have been working with the Landview DHTML interface to mapserver, and > would like to include support for some additional asynchronous interaction > with a database. > > Currently our application works like this: > > select a region --> generate URL based on selection --> mapserver > application with arguments in URL --> interaction with mapserver > application > > I have written some functions in javascript and PHP to perform a spatial > query on a PostGIS database: > mapserver application --> calculate extent center coordinates with JS --> > AJAX style request to PHP function page --> data is returned to mapserver > page and displayed > > this is being done in the postdraw() function found in the landview > application. > > > I am having trouble figuring out how to pass the results from the above > function to the creation of the mapserver object such that this value is > also passed to the mapfile. > > In particular, I am curious about when the following line from the landview > application is executed: > > var ms = new Mapserv("main", the_mapfile, ... ); > > Any ideas on how to do this? > > Thanks! -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From awilliams at RAPIDMAP.COM.AU Mon Apr 17 16:37:41 2006 From: awilliams at RAPIDMAP.COM.AU (Andrew Williams) Date: Tue, 18 Apr 2006 09:37:41 +1000 Subject: my new beta GIS Software ElshayalSmart for map and data base editing and drawing Message-ID: Mohamed, It has most of what an entry level GIS would need. The one thing that I look for in new GIS tools is the speed with which they open a file. Your system is quite slow. The reason is due to your application opening the entire file into memory. For small files this is OK, for large files this is a problem. The applications that open files quickly use spatial indexing to optimise the amount of information loaded into memory at any one time. Make better use of spatial indexing (it's hard I know) and you will have a good tool. You should be proud of your achievement. regards Andrew -----Original Message----- From: Mr. Mohamed Elshayal [mailto:elshayal at SMARTWEBONLINE.COM] Sent: Tue 4/18/2006 2:15 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Cc: Subject: [UMN_MAPSERVER-USERS] my new beta GIS Software ElshayalSmart for map and data base editing and drawing Dear Sirs, I have published my new beta GIS Software ElshayalSmart for map and data base editing and drawing Kindly, please download it at http://www.smartwebonline.com/ or at http://www.gismagazine.com/downloads/download.php?id=143 and test it and inform me by your ideas and points of view Thank you and best personal regards Mohamed Elshayal From mdieterich at GMAIL.COM Mon Apr 17 17:41:37 2006 From: mdieterich at GMAIL.COM (Mark Dieterich) Date: Mon, 17 Apr 2006 20:41:37 -0400 Subject: intersecting NED and tiger data Message-ID: I'm interested in intersecting the NED data with the tiger road data. The only elevation data I'm interested in is anything that lies along a road, so it seems a shame not to a preprocess things to reduce amount of data my various portions of code need to deal with. I think I'd be happy with a ton of point data in the form of tiled shapefiles, it must be less data than the entire elevation maps. Any suggestions on how I can message things would be greatly appreciated! Thanks, Mark From elshayal at SMARTWEBONLINE.COM Mon Apr 17 18:36:31 2006 From: elshayal at SMARTWEBONLINE.COM (Mr. Mohamed Elshayal) Date: Tue, 18 Apr 2006 03:36:31 +0200 Subject: my new beta GIS Software ElshayalSmart for map and data base editing and drawing Message-ID: Dear Andrew Thank you for your reply When I start building this software, I was drawing the map directly from files without loading it into memory It was not very slow, but it was very complicated , so I ignored this solution. I believe I will reconsider this solution again I used Loading into memory to get the advantage of discarding all changes without saving them to disk but, I have solved this problem in table files, by using tmp files for saving or discarding changes Table data changes by editing or by VB script code will be saved into tmp files until you save it I am still working in "Undo function" and viewing raster images Thank you and best personal regards Mohamed Elshayal ----- Original Message ----- From: "Andrew Williams" To: Sent: Tuesday, April 18, 2006 1:37 AM Subject: Re: [UMN_MAPSERVER-USERS] my new beta GIS Software ElshayalSmart for map and data base editing and drawing > Mohamed, > It has most of what an entry level GIS would need. The one thing that I > look for in new GIS tools is the speed with which they open a file. Your > system is quite slow. The reason is due to your application opening the > entire file into memory. For small files this is OK, for large files this > is a problem. The applications that open files quickly use spatial > indexing to optimise the amount of information loaded into memory at any > one time. Make better use of spatial indexing (it's hard I know) and you > will have a good tool. > > You should be proud of your achievement. > > regards > Andrew > > -----Original Message----- > From: Mr. Mohamed Elshayal [mailto:elshayal at SMARTWEBONLINE.COM] > Sent: Tue 4/18/2006 2:15 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Cc: > Subject: [UMN_MAPSERVER-USERS] my new beta GIS Software ElshayalSmart for > map and data base editing and drawing > > > Dear Sirs, > > I have published my new beta GIS Software ElshayalSmart for map and data > base editing and drawing > > Kindly, please download it at http://www.smartwebonline.com/ > or at > http://www.gismagazine.com/downloads/download.php?id=143 > > and test it and inform me by your ideas and points of view > > Thank you and best personal regards > Mohamed Elshayal > > > From jwpaige at PACBELL.NET Mon Apr 17 19:25:03 2006 From: jwpaige at PACBELL.NET (john) Date: Mon, 17 Apr 2006 19:25:03 -0700 Subject: Beginning Mapserver Message-ID: I am working my way through the examples in the books I have found. In "Beginning Mapserver" the author writes that the file php_mapscript.c-patchedversion should be put in PHP/MapScript directory with one suggested location being PHP/MapScript directory (/usr/local/src/mapserver-4.4.1/mapscript/php3/) I am using the FGS version which does not include a src directory. Any suggestions on how to handle this? From maxdmvp at GMAIL.COM Mon Apr 17 20:03:11 2006 From: maxdmvp at GMAIL.COM (Max Hernandez) Date: Mon, 17 Apr 2006 21:03:11 -0600 Subject: need some guidance Message-ID: I'm new to all this about GIS, I have to say it is really interesting. Right now I'm working on a project that needs to draw latitude/longitude positions on demand, on a map (shapfile). If someone inputs a latitude/longitude, I have to draw that point on the map. I would like to know if map server can help me to accomplish that, and some guidance of how to start. Thanks, any help is welcome, max ferherra -------------- next part -------------- An HTML attachment was scrubbed... URL: From manninside at YAHOO.COM Tue Apr 18 02:01:16 2006 From: manninside at YAHOO.COM (Mandar sarlashkar) Date: Tue, 18 Apr 2006 02:01:16 -0700 Subject: Maperver 4.8.2, Apache 2.2.0 - No Response Message-ID: Hello All ! I have setup Mapserver 4.8.2 , Apache 2.2.0 on Linux 2006... When I send CGI request the browser just waits for a long period of time, displaying the message - 'waiting for localhost...' And then following matter is displayed in the browser 500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, you at example.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

I can view the web pages on the server but cgi request fails... BUT Itasca workshop works fine... I can view the Itasca Maps I am posting this request for the second time.... can anyone help me PLEASE... Thanks in advance... Mandy --------------------------------- Love cheap thrills? Enjoy PC-to-Phone calls to 30+ countries for just 2?/min with Yahoo! Messenger with Voice. -------------- next part -------------- An HTML attachment was scrubbed... URL: From khaled.kamoun at GMAIL.COM Tue Apr 18 02:18:33 2006 From: khaled.kamoun at GMAIL.COM (Khaled Kamoun) Date: Tue, 18 Apr 2006 11:18:33 +0200 Subject: upgrade gdal 1.2.6 to 1.3.0 Message-ID: Hi all, I want to upgrade my version of gdal 1.2.6 to 1.3.0, should I just replace the gdal files or all files of mapserver? thank you for your support -- Khaled KAMOUN -------------- next part -------------- An HTML attachment was scrubbed... URL: From listario at GMAIL.COM Tue Apr 18 02:21:23 2006 From: listario at GMAIL.COM (J. Parapar) Date: Tue, 18 Apr 2006 11:21:23 +0200 Subject: Maperver 4.8.2, Apache 2.2.0 - No Response In-Reply-To: <20060418090116.66513.qmail@web50810.mail.yahoo.com> Message-ID: Hi Mandy If it was a problem with the mapfile, you can try to debug it with shp2img: http://mapserver.gis.umn.edu/docs/reference/utilityreference/shp2img Best regards Jorge 2006/4/18, Mandar sarlashkar : > Hello All ! > > I have setup Mapserver 4.8.2 , Apache 2.2.0 on Linux 2006... > When I send CGI request the browser just waits for a long period of time, > displaying the message - 'waiting for localhost...' > And then following matter is displayed in the browser > > > 500 Internal Server Error > >

Internal Server Error

>

The server encountered an internal error or > misconfiguration and was unable to complete > your request.

>

Please contact the server administrator, > you at example.com and inform them of the time the error occurred, > and anything you might have done that may have > caused the error.

>

More information about this error may be available > in the server error log.

>

Additionally, a 500 Internal Server > Error > error was encountered while trying to use an ErrorDocument to handle the > request.

> > > I can view the web pages on the server but cgi request fails... > BUT > Itasca workshop works fine... I can view the Itasca Maps > I am posting this request for the second time.... > can anyone help me PLEASE... > > Thanks in advance... > > Mandy > > > ________________________________ > Love cheap thrills? Enjoy PC-to-Phone calls to 30+ countries for just 2?/min > with Yahoo! Messenger with Voice. > > From b.vdeijnden at AGI.RWS.MINVENW.NL Tue Apr 18 02:15:55 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Tue, 18 Apr 2006 11:15:55 +0200 Subject: upgrade gdal 1.2.6 to 1.3.0 Message-ID: If you are on Windows, the best thing is also to replace mapserver with a version compiled against the new gdal. Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Khaled Kamoun Verzonden: dinsdag 18 april 2006 11:19 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] upgrade gdal 1.2.6 to 1.3.0 Hi all, I want to upgrade my version of gdal 1.2.6 to 1.3.0, should I just replace the gdal files or all files of mapserver? thank you for your support -- Khaled KAMOUN Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ -------------- next part -------------- An HTML attachment was scrubbed... URL: From manninside at YAHOO.COM Tue Apr 18 02:29:08 2006 From: manninside at YAHOO.COM (Mandar sarlashkar) Date: Tue, 18 Apr 2006 02:29:08 -0700 Subject: Maperver 4.8.2, Apache 2.2.0 - No Response Message-ID: Hello All ! I have setup Mapserver 4.8.2 , Apache 2.2.0 on Linux 2006... When I send CGI request the browser just waits for a long period of time, displaying the message - 'waiting for localhost...' And then following matter is displayed in the browser 500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, you at example.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

The Apache error_log reads as following: [Tue Apr 18 16:13:52 2006] [warn] [client 127.0.0.1] Timeout waiting for output from CGI script /usr/local/apache2/cgi-bin/mapserv, referer: http://localhost/htdocs/als/eassistant.html [Tue Apr 18 16:13:52 2006] [error] [client 127.0.0.1] Premature end of script headers: mapserv, referer: http://localhost/htdocs/als/eassistant.html I can view the web pages on the server but cgi request fails... BUT Itasca workshop works fine... I can view the Itasca Maps I am posting this request for the second time.... can anyone help me PLEASE... Thanks in advance... Mandy --------------------------------- Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates. -------------- next part -------------- An HTML attachment was scrubbed... URL: From manninside at YAHOO.COM Tue Apr 18 03:30:39 2006 From: manninside at YAHOO.COM (Mandar sarlashkar) Date: Tue, 18 Apr 2006 03:30:39 -0700 Subject: Maperver 4.8.2, Apache 2.2.0 - No Response In-Reply-To: <4ac992660604180221o343749e1gc8b25a192fbc6427@mail.gmail.com> Message-ID: Hi Jorge ! Thanks a lot for your Prompt reply ! When I run shp2img utility... The cursor keeps on blinking at the command prompt and doesn't return.... Nothing happens... What could be wrong or is there anyother way.... Thanks Mandy "J. Parapar" wrote: Hi Mandy If it was a problem with the mapfile, you can try to debug it with shp2img: http://mapserver.gis.umn.edu/docs/reference/utilityreference/shp2img Best regards Jorge 2006/4/18, Mandar sarlashkar : > Hello All ! > > I have setup Mapserver 4.8.2 , Apache 2.2.0 on Linux 2006... > When I send CGI request the browser just waits for a long period of time, > displaying the message - 'waiting for localhost...' > And then following matter is displayed in the browser > > 500 Internal Server Error> > > Internal Server Error > The server encountered an internal error or > misconfiguration and was unable to complete > your request. > Please contact the server administrator, > you at example.com and inform them of the time the error occurred, > and anything you might have done that may have > caused the error. > More information about this error may be available > in the server error log. > Additionally, a 500 Internal Server > Error > error was encountered while trying to use an ErrorDocument to handle the > request. > > > I can view the web pages on the server but cgi request fails... > BUT > Itasca workshop works fine... I can view the Itasca Maps > I am posting this request for the second time.... > can anyone help me PLEASE... > > Thanks in advance... > > Mandy > > > ________________________________ > Love cheap thrills? Enjoy PC-to-Phone calls to 30+ countries for just 2?/min > with Yahoo! Messenger with Voice. > > --------------------------------- Blab-away for as little as 1?/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice. -------------- next part -------------- An HTML attachment was scrubbed... URL: From listario at GMAIL.COM Tue Apr 18 03:43:35 2006 From: listario at GMAIL.COM (J. Parapar) Date: Tue, 18 Apr 2006 12:43:35 +0200 Subject: Maperver 4.8.2, Apache 2.2.0 - No Response In-Reply-To: <20060418103039.67302.qmail@web50807.mail.yahoo.com> Message-ID: Hi Mandy Perhaps some layer is taking too long to draw. Set the STATUS of the all layers to OFF and then try setting it to DEFAULT one by one. Jorge 2006/4/18, Mandar sarlashkar : > Hi Jorge ! > > Thanks a lot for your Prompt reply ! > > When I run shp2img utility... The cursor keeps on blinking at the command > prompt and doesn't return.... Nothing happens... > > What could be wrong or is there anyother way.... > > Thanks > > Mandy > > > "J. Parapar" wrote: > > Hi Mandy > > If it was a problem with the mapfile, you can try to debug it with shp2img: > http://mapserver.gis.umn.edu/docs/reference/utilityreference/shp2img > > Best regards > Jorge > > 2006/4/18, Mandar sarlashkar : > > > Hello All ! > > > > I have setup Mapserver 4.8.2 , Apache 2.2.0 on Linux 2006... > > When I send CGI request the browser just waits for a long period of time, > > displaying the message - 'waiting for localhost...' > > And then following matter is displayed in the browser > > > > > > > > > > > Internal Server Error > > > > The server encountered an internal error or > > misconfiguration and was unable to complete > > your request. > > > Please contact the server administrator, > > you at example.com and inform them of the time the error occurred, > > and anything you might have done that may have > > caused the error. > > > More information about this error may be available > > in the server error log. > > > Additionally, a 500 Internal Server > > Error > > error was encountered while trying to use an ErrorDocument to handle the > > request. > > > > > > I can view the web pages on the server but cgi request fails... > > BUT > > Itasca workshop works fine... I can view the Itasca Maps > > I am posting this request for the second time.... > > can anyone help me PLEASE... > > > > Thanks in advance... > > > > Mandy > > > > > > ________________________________ > > Love cheap thrills? Enjoy PC-to-Phone calls to 30+ countries for just > 2?/min > > with Yahoo! Messenger with Voice. > > > > > > > > > ________________________________ > Blab-away for as little as 1?/min. Make PC-to-Phone Calls using Yahoo! > Messenger with Voice. > > From listuser at HERZSYS.DE Tue Apr 18 04:23:25 2006 From: listuser at HERZSYS.DE (listuser HH) Date: Tue, 18 Apr 2006 13:23:25 +0200 Subject: Java Mapscript - querybyattribut In-Reply-To: Message-ID: Benedikt Rothe wrote: >Hi > >The C-Wrapper "mapscript_wrap.c" converts Java-Strings to >"char*" with the JNI-Function "GetStringUTFChars". >This UTF-8-byte-sequence is passed to the mapserver-kernel. >But mapserver-kernel expects an one-byte-encoding. (ISO-8859-1 or CP437 >(!?)) > >I wrote a JNI-sample-program to illustrate. >The sample-program converts to UTF-8, ISO-8859-1 and CP437. >On my Windows-Command-Prompt the CP437-result was correct. > >I think mapscript_wrap.c has to do more than UTF-8-Conversion. > >Benedikt > > Hi all, is there a way to do the converion in java dircetly? Thanks in advance Norbert From laura.diaz at IVER.ES Tue Apr 18 04:52:16 2006 From: laura.diaz at IVER.ES (=?ISO-8859-1?Q?Laura_D=EDaz?=) Date: Tue, 18 Apr 2006 13:52:16 +0200 Subject: layer data source Message-ID: Hi list, is there any way to specify a different data source for a layer depending on the request? for instance, can i set the data of a postgis layer to a postgis table for the map request and to a complex view for the getFeatureInfo request? or can i set the data of a layer as a procedure in the database? thanks, Laura. From warmerdam at POBOX.COM Tue Apr 18 05:54:50 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 18 Apr 2006 08:54:50 -0400 Subject: upgrade gdal 1.2.6 to 1.3.0 In-Reply-To: Message-ID: Khaled Kamoun wrote: > Hi all, > I want to upgrade my version of gdal 1.2.6 to 1.3.0, should I just > replace the gdal files or all files of mapserver? > thank you for your support Khaled, Generally when upgrading GDAL you will also need to rebuild mapserver with the new include files due to overly-tight linkages between MapServer's OGR module and GDAL/OGR. I would encourage you to update to at least 1.3.1 or even 1.3.2b1 if you are upgrading. 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 OSGF, http://osgeo.org From umberto.nicoletti at GMAIL.COM Tue Apr 18 06:02:25 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Tue, 18 Apr 2006 15:02:25 +0200 Subject: Java Mapscript - querybyattribut In-Reply-To: <4444CC2D.5060007@herzsys.de> Message-ID: Benedikt, Thanks for you insight. I am not a i18n or charsets guru but I believe that the encoding mapserver expects deep in C code only depends on glibc which is unicode compliant (at least on modern distros, dunno abot ye ol slackware 3 box ;-) ). The behaviour is controlled by the LANG and LC_* environment variables. Please review my last post here which solved a similar issue: http://thread.gmane.org/gmane.comp.gis.mapserver.user/19248/focus=19249 Best regards, Umberto On 4/18/06, listuser HH wrote: > Benedikt Rothe wrote: > > >Hi > > > >The C-Wrapper "mapscript_wrap.c" converts Java-Strings to > >"char*" with the JNI-Function "GetStringUTFChars". > >This UTF-8-byte-sequence is passed to the mapserver-kernel. > >But mapserver-kernel expects an one-byte-encoding. (ISO-8859-1 or CP437 > >(!?)) > > > >I wrote a JNI-sample-program to illustrate. > >The sample-program converts to UTF-8, ISO-8859-1 and CP437. > >On my Windows-Command-Prompt the CP437-result was correct. > > > >I think mapscript_wrap.c has to do more than UTF-8-Conversion. > > > >Benedikt > > > > > Hi all, > > is there a way to do the converion in java dircetly? > > Thanks in advance > > Norbert > From umberto.nicoletti at GMAIL.COM Tue Apr 18 06:11:39 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Tue, 18 Apr 2006 15:11:39 +0200 Subject: Java Mapscript - querybyattribut SOLVED In-Reply-To: <1145362400.4426.40.camel@emil.intranet.gdv.com> Message-ID: Please add the list to cc (reply to all) so that everybody can benefit fro this ongoing discussion. That said I think you need to check some things (I haven't a recipe ready yet so we'll go by trial and error): 1)that you environment is correctly setup with regard to internationalization (ie LANG and LC_* variables) 2) after that try to dump the content of the dbf file with dbfdump and see that content is correctly displayed (you might want to use xterm which does a better job that gnome-terminal for instance in displaying non-ascii characters) 3) open the Java source file with an editor like gedit (from GNOME) which will tell you the encoding of the java source and optionally recode it to the same encoding set by the LANG variable (use the recode command under linux). Best regards, Umberto On 4/18/06, Nicol Hermann wrote: > Hi Umberto, > > as you suggested i compiled java mapscript with the option '-source > 1.4'. > > Therefor i modified the JAVAC Variable in the Makefile to 'JAVAC=javac > -source 1.4'. > > # > # Java Stuff > # > JAVADOC=javadoc > JAVAC=javac -source 1.4 > > Attached you find the output of the compiling process [1]. > Sadly this modification did not change the situation when i query for: > > layer.queryByAttributes(map,"KREIS_NAME", "/S?dliche Weinstra?e/", > mapscriptConstants.MS_MULTIPLE); > > in my test script. > Did i miss one step to fix this issue? > > Many thanks for your assistance > Nicol > > > [1] > nicol at emil:~/public_html/mapserver/sources/offical_releases/mapserver-4.8.1/mapscript/java$ make clean > rm -rf edu *.o *.c *.so *.java *.jar *.png > rm -rf examples/*.class > nicol at emil:~/public_html/mapserver/sources/offical_releases/mapserver-4.8.1/mapscript/java$ make interface > mkdir -p edu/umn/gis/mapscript > swig -java -package edu.umn.gis.mapscript -o > mapscript_wrap.c ../mapscript.i > mv *.java edu/umn/gis/mapscript/ > nicol at emil:~/public_html/mapserver/sources/offical_releases/mapserver-4.8.1/mapscript/java$ make > gcc -fpic -c -g -O2 -fPIC -Wall -DENABLE_STDERR_DEBUG > -DNEED_NONBLOCKING_STDERR -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF > -DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR > -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_MING_FLASH -DUSE_ORACLESPATIAL > -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_SDE -DUSE_OGR > -DUSE_GDAL -DUSE_POSTGIS -I/usr/local/include -I/usr/local/include > -I/usr/local/sdeexe83/include -I/usr/local/include > -I/usr/local/pgsql_8/include > -I/home/oracle/product/10.1.0/client/rdbms/demo > -I/home/oracle/product/10.1.0/client/rdbms/public > -I/usr/local/j2sdk1.4.2_08/include > -I/usr/local/j2sdk1.4.2_08/include/linux -fno-strict-aliasing > mapscript_wrap.c > gcc -fpic -shared mapscript_wrap.o -o libmapscript.so -L../.. -lmap > -lgd -L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -lz -ljpeg > -lfreetype -lpng -lz -L/usr/local/lib -lproj -ljpeg > -L/usr/local/sdeexe83/lib -lsde83 -lpe83 -lsg83 -lpthread -ldl > -L/usr/local/lib -lgdal -lming -L/usr/local/pgsql_8/lib -lpq -L/usr/lib > -lcurl -lidn -lssl -lcrypto -ldl -lssl -lcrypto -ldl -lz > -L/home/oracle/product/10.1.0/client/lib -lclntsh -lm -lstdc++ > javac -source 1.4 edu/umn/gis/mapscript/*.java > jar cf mapscript.jar edu > > > Am Freitag, den 14.04.2006, 15:23 +0200 schrieb Umberto Nicoletti: > > Olivier, > > I GOT IT! > > > > try to run the attached Java source. If you pass it two arguments the > > first being the path to the map file and the second the string to > > search for and you pass > > "S?dliche Weinstra?e" as the second it will work! > > > > So why does it fail when "S?dliche Weinstra?e" is inside the Java > > code? That is a problem that only happens when javac compiles the > > source: javac translates all characters to unicode and in doing that > > it gets the german characters wrong. > > To solve this give javac the following option: -source 1.4 > > > > For more see this link: > > http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5046139 > > > > On 4/13/06, Umberto Nicoletti wrote: > > > This is probably not related only to java mapscript, so please read on. > > > > > > > So I was wrong...but I'll leave the proof to the reader ;-) > > > > Best regards, > > Umberto > > > > > On 3/30/06, Oliver Wesp wrote: > > > > Dear List, > > > > > > > > I' struggling with queryByAttributes on an attribute field with german > > > > umlauts using java mapscript. > > > > The odd thing is that the same thing works fine with php mapscript and > > > > when I use expressions in my mapfile. I'm using a shapefile as datasource. > > > > > > > > > > Could someone of the other mapserver developers shed some light on this issue? > > > > > > I have a clue to give: php mapscript is using a different regex > > > library and this explains why the match does not happen for Java > > > mapscript, while it does happen in php mapscript. If I am right also > > > the mapserver cgi should be affected and possibly all other mapscript > > > too. > > > > > > It would be very interesting if someone could report on similar > > > experiences with the cgi-bin version of mapserver. > > > > > > Thanks, > > > Umberto > > > > > > > Here is what I do: > > > > > > > > layer.queryByAttributes(map,"KREIS_NAME", "/S?dliche Weinstra?e/", > > > > mapscriptConstants.MS_MULTIPLE); > > > > layer.open(); > > > > System.out.println( "Result Count: " +layer.getNumResults() ); > > > > layer.close(); > > > > > > > > The result is always null while replacing the qstring with something > > > > that doesn't contain special characters (e.g. > > > > 'Mainz-Bingen') works fine. > > > > > > > > As noted above the following layer definition in a mapfile works fine > > > > > > > > LAYER > > > > NAME kreis > > > > STATUS DEFAULT > > > > TYPE polygon > > > > DATA "/tmp/subset" > > > > TEMPLATE "kreis.html" > > > > CLASSITEM KREIS_NAME > > > > CLASS > > > > NAME Boundary > > > > COLOR 128 128 0 > > > > OUTLINECOLOR 0 0 0 > > > > EXPRESSION /S?dliche Weinstra?e/ > > > > END > > > > END > > > > > > > > > > > > but this does not: > > > > > > > > layer.setClassitem("KREIS_NAME"); > > > > classObj cl = new classObj(layer); > > > > cl.setName("Classname"); > > > > cl.setExpression("/S?dliche Weinstra?e/"); > > > > > > > > I use Mapserver 4.8.1 on W2k, Tomcat 5.0.28. > > > > > > > > I can provide some sample data, just in case someone likes to reproduce. > > > > > > > > Any help is appreciated. > > > > > > > > best regards > > > > Oliver > > > > -- > > > > Dipl.-Geogr. Oliver Wesp > > > > Gesellschaft fuer geografische Datenverarbeitung > > > > Binger Strasse 49-51 > > > > D-55218 Ingelheim > > > > fon: +49 6132 714818 > > > > fax: +49 6132 714828 > > > > http: www.gdv.com > > > > > > > > > > > > > From mapserver at GEOWORLD.DE Tue Apr 18 06:37:11 2006 From: mapserver at GEOWORLD.DE (Nicol Hermann) Date: Tue, 18 Apr 2006 15:37:11 +0200 Subject: Java Mapscript - querybyattribut SOLVED In-Reply-To: <75b4b93e0604180611u1fbc1578ref6ec00b718127d5@mail.gmail.com> Message-ID: Hi Umberto, many thanks for your answer. Am Dienstag, den 18.04.2006, 15:11 +0200 schrieb Umberto Nicoletti: > Please add the list to cc (reply to all) so that everybody can benefit > fro this ongoing discussion. sorry. i forgot the list. Find the answers to your questions between the lines. > > That said I think you need to check some things (I haven't a recipe > ready yet so we'll go by trial and error): > > 1)that you environment is correctly setup with regard to > internationalization (ie LANG and LC_* variables) My environment variables are set to the following values: nicol at emil:~$ echo $LANG de_DE at euro LC_* variables are not set. nicol at emil:~$ set |grep LC_ > > 2) after that try to dump the content of the dbf file with dbfdump and > see that content is correctly displayed (you might want to use xterm > which does a better job that gnome-terminal for instance in displaying > non-ascii characters) the result of 'dbfdump' is correctly display. The german umlauts looks fine. nicol at emil:/tmp$ dbfdump subset.dbf KREIS_KENN KREIS_NAME EW 07337 S?dliche Weinstra?e 109375 07339 Mainz-Bingen 194156 > > 3) open the Java source file with an editor like gedit (from GNOME) > which will tell you the encoding of the java source and optionally > recode it to the same encoding set by the LANG variable (use the > recode command under linux). My java source file is encoded with ISO-8859. nicol at emil:~/workspace/msjava/msjava$ file queryByAttributMap.java queryByAttributMap.java: ISO-8859 Java program text I am not sure but i think this should match with the value of LANG ('de_DE at euro'). Anything else to check or to modify? Nicol > > Best regards, > Umberto > > > > On 4/18/06, Nicol Hermann wrote: > > Hi Umberto, > > > > as you suggested i compiled java mapscript with the option '-source > > 1.4'. > > > > Therefor i modified the JAVAC Variable in the Makefile to 'JAVAC=javac > > -source 1.4'. > > > > # > > # Java Stuff > > # > > JAVADOC=javadoc > > JAVAC=javac -source 1.4 > > > > Attached you find the output of the compiling process [1]. > > Sadly this modification did not change the situation when i query for: > > > > layer.queryByAttributes(map,"KREIS_NAME", "/S?dliche Weinstra?e/", > > mapscriptConstants.MS_MULTIPLE); > > > > in my test script. > > Did i miss one step to fix this issue? > > > > Many thanks for your assistance > > Nicol > > > > > > [1] > > nicol at emil:~/public_html/mapserver/sources/offical_releases/mapserver-4.8.1/mapscript/java$ make clean > > rm -rf edu *.o *.c *.so *.java *.jar *.png > > rm -rf examples/*.class > > nicol at emil:~/public_html/mapserver/sources/offical_releases/mapserver-4.8.1/mapscript/java$ make interface > > mkdir -p edu/umn/gis/mapscript > > swig -java -package edu.umn.gis.mapscript -o > > mapscript_wrap.c ../mapscript.i > > mv *.java edu/umn/gis/mapscript/ > > nicol at emil:~/public_html/mapserver/sources/offical_releases/mapserver-4.8.1/mapscript/java$ make > > gcc -fpic -c -g -O2 -fPIC -Wall -DENABLE_STDERR_DEBUG > > -DNEED_NONBLOCKING_STDERR -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF > > -DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR > > -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_MING_FLASH -DUSE_ORACLESPATIAL > > -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > > -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_SDE -DUSE_OGR > > -DUSE_GDAL -DUSE_POSTGIS -I/usr/local/include -I/usr/local/include > > -I/usr/local/sdeexe83/include -I/usr/local/include > > -I/usr/local/pgsql_8/include > > -I/home/oracle/product/10.1.0/client/rdbms/demo > > -I/home/oracle/product/10.1.0/client/rdbms/public > > -I/usr/local/j2sdk1.4.2_08/include > > -I/usr/local/j2sdk1.4.2_08/include/linux -fno-strict-aliasing > > mapscript_wrap.c > > gcc -fpic -shared mapscript_wrap.o -o libmapscript.so -L../.. -lmap > > -lgd -L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -lz -ljpeg > > -lfreetype -lpng -lz -L/usr/local/lib -lproj -ljpeg > > -L/usr/local/sdeexe83/lib -lsde83 -lpe83 -lsg83 -lpthread -ldl > > -L/usr/local/lib -lgdal -lming -L/usr/local/pgsql_8/lib -lpq -L/usr/lib > > -lcurl -lidn -lssl -lcrypto -ldl -lssl -lcrypto -ldl -lz > > -L/home/oracle/product/10.1.0/client/lib -lclntsh -lm -lstdc++ > > javac -source 1.4 edu/umn/gis/mapscript/*.java > > jar cf mapscript.jar edu > > > > > > Am Freitag, den 14.04.2006, 15:23 +0200 schrieb Umberto Nicoletti: > > > Olivier, > > > I GOT IT! > > > > > > try to run the attached Java source. If you pass it two arguments the > > > first being the path to the map file and the second the string to > > > search for and you pass > > > "S?dliche Weinstra?e" as the second it will work! > > > > > > So why does it fail when "S?dliche Weinstra?e" is inside the Java > > > code? That is a problem that only happens when javac compiles the > > > source: javac translates all characters to unicode and in doing that > > > it gets the german characters wrong. > > > To solve this give javac the following option: -source 1.4 > > > > > > For more see this link: > > > http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5046139 > > > > > > On 4/13/06, Umberto Nicoletti wrote: > > > > This is probably not related only to java mapscript, so please read on. > > > > > > > > > > So I was wrong...but I'll leave the proof to the reader ;-) > > > > > > Best regards, > > > Umberto > > > > > > > On 3/30/06, Oliver Wesp wrote: > > > > > Dear List, > > > > > > > > > > I' struggling with queryByAttributes on an attribute field with german > > > > > umlauts using java mapscript. > > > > > The odd thing is that the same thing works fine with php mapscript and > > > > > when I use expressions in my mapfile. I'm using a shapefile as datasource. > > > > > > > > > > > > > Could someone of the other mapserver developers shed some light on this issue? > > > > > > > > I have a clue to give: php mapscript is using a different regex > > > > library and this explains why the match does not happen for Java > > > > mapscript, while it does happen in php mapscript. If I am right also > > > > the mapserver cgi should be affected and possibly all other mapscript > > > > too. > > > > > > > > It would be very interesting if someone could report on similar > > > > experiences with the cgi-bin version of mapserver. > > > > > > > > Thanks, > > > > Umberto > > > > > > > > > Here is what I do: > > > > > > > > > > layer.queryByAttributes(map,"KREIS_NAME", "/S?dliche Weinstra?e/", > > > > > mapscriptConstants.MS_MULTIPLE); > > > > > layer.open(); > > > > > System.out.println( "Result Count: " +layer.getNumResults() ); > > > > > layer.close(); > > > > > > > > > > The result is always null while replacing the qstring with something > > > > > that doesn't contain special characters (e.g. > > > > > 'Mainz-Bingen') works fine. > > > > > > > > > > As noted above the following layer definition in a mapfile works fine > > > > > > > > > > LAYER > > > > > NAME kreis > > > > > STATUS DEFAULT > > > > > TYPE polygon > > > > > DATA "/tmp/subset" > > > > > TEMPLATE "kreis.html" > > > > > CLASSITEM KREIS_NAME > > > > > CLASS > > > > > NAME Boundary > > > > > COLOR 128 128 0 > > > > > OUTLINECOLOR 0 0 0 > > > > > EXPRESSION /S?dliche Weinstra?e/ > > > > > END > > > > > END > > > > > > > > > > > > > > > but this does not: > > > > > > > > > > layer.setClassitem("KREIS_NAME"); > > > > > classObj cl = new classObj(layer); > > > > > cl.setName("Classname"); > > > > > cl.setExpression("/S?dliche Weinstra?e/"); > > > > > > > > > > I use Mapserver 4.8.1 on W2k, Tomcat 5.0.28. > > > > > > > > > > I can provide some sample data, just in case someone likes to reproduce. > > > > > > > > > > Any help is appreciated. > > > > > > > > > > best regards > > > > > Oliver > > > > > -- > > > > > Dipl.-Geogr. Oliver Wesp > > > > > Gesellschaft fuer geografische Datenverarbeitung > > > > > Binger Strasse 49-51 > > > > > D-55218 Ingelheim > > > > > fon: +49 6132 714818 > > > > > fax: +49 6132 714828 > > > > > http: www.gdv.com > > > > > > > > > > > > > > > > > > > From umberto.nicoletti at GMAIL.COM Tue Apr 18 06:34:54 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Tue, 18 Apr 2006 15:34:54 +0200 Subject: Java Mapscript - querybyattribut SOLVED In-Reply-To: <1145367431.4426.55.camel@emil.intranet.gdv.com> Message-ID: How did you compile and run queryByAttributMap.java exactly? Umberto On 4/18/06, Nicol Hermann wrote: > Hi Umberto, > > many thanks for your answer. > > Am Dienstag, den 18.04.2006, 15:11 +0200 schrieb Umberto Nicoletti: > > Please add the list to cc (reply to all) so that everybody can benefit > > fro this ongoing discussion. > > sorry. i forgot the list. > Find the answers to your questions between the lines. > > > > > That said I think you need to check some things (I haven't a recipe > > ready yet so we'll go by trial and error): > > > > 1)that you environment is correctly setup with regard to > > internationalization (ie LANG and LC_* variables) > > My environment variables are set to the following values: > > nicol at emil:~$ echo $LANG > de_DE at euro > > LC_* variables are not set. > > nicol at emil:~$ set |grep LC_ > > > > > 2) after that try to dump the content of the dbf file with dbfdump and > > see that content is correctly displayed (you might want to use xterm > > which does a better job that gnome-terminal for instance in displaying > > non-ascii characters) > > the result of 'dbfdump' is correctly display. The german umlauts looks > fine. > > nicol at emil:/tmp$ dbfdump subset.dbf > KREIS_KENN KREIS_NAME > EW > 07337 S?dliche Weinstra?e > 109375 > 07339 Mainz-Bingen > 194156 > > > > > 3) open the Java source file with an editor like gedit (from GNOME) > > which will tell you the encoding of the java source and optionally > > recode it to the same encoding set by the LANG variable (use the > > recode command under linux). > > My java source file is encoded with ISO-8859. > > nicol at emil:~/workspace/msjava/msjava$ file queryByAttributMap.java > queryByAttributMap.java: ISO-8859 Java program text > > I am not sure but i think this should match with the value of LANG > ('de_DE at euro'). > > Anything else to check or to modify? > Nicol > > > > > Best regards, > > Umberto > > > > > > > > On 4/18/06, Nicol Hermann wrote: > > > Hi Umberto, > > > > > > as you suggested i compiled java mapscript with the option '-source > > > 1.4'. > > > > > > Therefor i modified the JAVAC Variable in the Makefile to 'JAVAC=javac > > > -source 1.4'. > > > > > > # > > > # Java Stuff > > > # > > > JAVADOC=javadoc > > > JAVAC=javac -source 1.4 > > > > > > Attached you find the output of the compiling process [1]. > > > Sadly this modification did not change the situation when i query for: > > > > > > layer.queryByAttributes(map,"KREIS_NAME", "/S?dliche Weinstra?e/", > > > mapscriptConstants.MS_MULTIPLE); > > > > > > in my test script. > > > Did i miss one step to fix this issue? > > > > > > Many thanks for your assistance > > > Nicol > > > > > > > > > [1] > > > nicol at emil:~/public_html/mapserver/sources/offical_releases/mapserver-4.8.1/mapscript/java$ make clean > > > rm -rf edu *.o *.c *.so *.java *.jar *.png > > > rm -rf examples/*.class > > > nicol at emil:~/public_html/mapserver/sources/offical_releases/mapserver-4.8.1/mapscript/java$ make interface > > > mkdir -p edu/umn/gis/mapscript > > > swig -java -package edu.umn.gis.mapscript -o > > > mapscript_wrap.c ../mapscript.i > > > mv *.java edu/umn/gis/mapscript/ > > > nicol at emil:~/public_html/mapserver/sources/offical_releases/mapserver-4.8.1/mapscript/java$ make > > > gcc -fpic -c -g -O2 -fPIC -Wall -DENABLE_STDERR_DEBUG > > > -DNEED_NONBLOCKING_STDERR -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF > > > -DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR > > > -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_MING_FLASH -DUSE_ORACLESPATIAL > > > -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > > > -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_SDE -DUSE_OGR > > > -DUSE_GDAL -DUSE_POSTGIS -I/usr/local/include -I/usr/local/include > > > -I/usr/local/sdeexe83/include -I/usr/local/include > > > -I/usr/local/pgsql_8/include > > > -I/home/oracle/product/10.1.0/client/rdbms/demo > > > -I/home/oracle/product/10.1.0/client/rdbms/public > > > -I/usr/local/j2sdk1.4.2_08/include > > > -I/usr/local/j2sdk1.4.2_08/include/linux -fno-strict-aliasing > > > mapscript_wrap.c > > > gcc -fpic -shared mapscript_wrap.o -o libmapscript.so -L../.. -lmap > > > -lgd -L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -lz -ljpeg > > > -lfreetype -lpng -lz -L/usr/local/lib -lproj -ljpeg > > > -L/usr/local/sdeexe83/lib -lsde83 -lpe83 -lsg83 -lpthread -ldl > > > -L/usr/local/lib -lgdal -lming -L/usr/local/pgsql_8/lib -lpq -L/usr/lib > > > -lcurl -lidn -lssl -lcrypto -ldl -lssl -lcrypto -ldl -lz > > > -L/home/oracle/product/10.1.0/client/lib -lclntsh -lm -lstdc++ > > > javac -source 1.4 edu/umn/gis/mapscript/*.java > > > jar cf mapscript.jar edu > > > > > > > > > Am Freitag, den 14.04.2006, 15:23 +0200 schrieb Umberto Nicoletti: > > > > Olivier, > > > > I GOT IT! > > > > > > > > try to run the attached Java source. If you pass it two arguments the > > > > first being the path to the map file and the second the string to > > > > search for and you pass > > > > "S?dliche Weinstra?e" as the second it will work! > > > > > > > > So why does it fail when "S?dliche Weinstra?e" is inside the Java > > > > code? That is a problem that only happens when javac compiles the > > > > source: javac translates all characters to unicode and in doing that > > > > it gets the german characters wrong. > > > > To solve this give javac the following option: -source 1.4 > > > > > > > > For more see this link: > > > > http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5046139 > > > > > > > > On 4/13/06, Umberto Nicoletti wrote: > > > > > This is probably not related only to java mapscript, so please read on. > > > > > > > > > > > > > So I was wrong...but I'll leave the proof to the reader ;-) > > > > > > > > Best regards, > > > > Umberto > > > > > > > > > On 3/30/06, Oliver Wesp wrote: > > > > > > Dear List, > > > > > > > > > > > > I' struggling with queryByAttributes on an attribute field with german > > > > > > umlauts using java mapscript. > > > > > > The odd thing is that the same thing works fine with php mapscript and > > > > > > when I use expressions in my mapfile. I'm using a shapefile as datasource. > > > > > > > > > > > > > > > > Could someone of the other mapserver developers shed some light on this issue? > > > > > > > > > > I have a clue to give: php mapscript is using a different regex > > > > > library and this explains why the match does not happen for Java > > > > > mapscript, while it does happen in php mapscript. If I am right also > > > > > the mapserver cgi should be affected and possibly all other mapscript > > > > > too. > > > > > > > > > > It would be very interesting if someone could report on similar > > > > > experiences with the cgi-bin version of mapserver. > > > > > > > > > > Thanks, > > > > > Umberto > > > > > > > > > > > Here is what I do: > > > > > > > > > > > > layer.queryByAttributes(map,"KREIS_NAME", "/S?dliche Weinstra?e/", > > > > > > mapscriptConstants.MS_MULTIPLE); > > > > > > layer.open(); > > > > > > System.out.println( "Result Count: " +layer.getNumResults() ); > > > > > > layer.close(); > > > > > > > > > > > > The result is always null while replacing the qstring with something > > > > > > that doesn't contain special characters (e.g. > > > > > > 'Mainz-Bingen') works fine. > > > > > > > > > > > > As noted above the following layer definition in a mapfile works fine > > > > > > > > > > > > LAYER > > > > > > NAME kreis > > > > > > STATUS DEFAULT > > > > > > TYPE polygon > > > > > > DATA "/tmp/subset" > > > > > > TEMPLATE "kreis.html" > > > > > > CLASSITEM KREIS_NAME > > > > > > CLASS > > > > > > NAME Boundary > > > > > > COLOR 128 128 0 > > > > > > OUTLINECOLOR 0 0 0 > > > > > > EXPRESSION /S?dliche Weinstra?e/ > > > > > > END > > > > > > END > > > > > > > > > > > > > > > > > > but this does not: > > > > > > > > > > > > layer.setClassitem("KREIS_NAME"); > > > > > > classObj cl = new classObj(layer); > > > > > > cl.setName("Classname"); > > > > > > cl.setExpression("/S?dliche Weinstra?e/"); > > > > > > > > > > > > I use Mapserver 4.8.1 on W2k, Tomcat 5.0.28. > > > > > > > > > > > > I can provide some sample data, just in case someone likes to reproduce. > > > > > > > > > > > > Any help is appreciated. > > > > > > > > > > > > best regards > > > > > > Oliver > > > > > > -- > > > > > > Dipl.-Geogr. Oliver Wesp > > > > > > Gesellschaft fuer geografische Datenverarbeitung > > > > > > Binger Strasse 49-51 > > > > > > D-55218 Ingelheim > > > > > > fon: +49 6132 714818 > > > > > > fax: +49 6132 714828 > > > > > > http: www.gdv.com > > > > > > > > > > > > > > > > > > > > > > > > > > > From mapserver at GEOWORLD.DE Tue Apr 18 06:54:03 2006 From: mapserver at GEOWORLD.DE (Nicol Hermann) Date: Tue, 18 Apr 2006 15:54:03 +0200 Subject: Java Mapscript - querybyattribut SOLVED In-Reply-To: <75b4b93e0604180634g1a145c56i8f05c729d4237556@mail.gmail.com> Message-ID: good question. I compile and run it im my eclipse environment. Do you have any hints how to compile an run it outside the development environment? Nicol Am Dienstag, den 18.04.2006, 15:34 +0200 schrieb Umberto Nicoletti: > How did you compile and run queryByAttributMap.java exactly? > > Umberto > > > On 4/18/06, Nicol Hermann wrote: > > Hi Umberto, > > > > many thanks for your answer. > > > > Am Dienstag, den 18.04.2006, 15:11 +0200 schrieb Umberto Nicoletti: > > > Please add the list to cc (reply to all) so that everybody can benefit > > > fro this ongoing discussion. > > > > sorry. i forgot the list. > > Find the answers to your questions between the lines. > > > > > > > > That said I think you need to check some things (I haven't a recipe > > > ready yet so we'll go by trial and error): > > > > > > 1)that you environment is correctly setup with regard to > > > internationalization (ie LANG and LC_* variables) > > > > My environment variables are set to the following values: > > > > nicol at emil:~$ echo $LANG > > de_DE at euro > > > > LC_* variables are not set. > > > > nicol at emil:~$ set |grep LC_ > > > > > > > > 2) after that try to dump the content of the dbf file with dbfdump and > > > see that content is correctly displayed (you might want to use xterm > > > which does a better job that gnome-terminal for instance in displaying > > > non-ascii characters) > > > > the result of 'dbfdump' is correctly display. The german umlauts looks > > fine. > > > > nicol at emil:/tmp$ dbfdump subset.dbf > > KREIS_KENN KREIS_NAME > > EW > > 07337 S?dliche Weinstra?e > > 109375 > > 07339 Mainz-Bingen > > 194156 > > > > > > > > 3) open the Java source file with an editor like gedit (from GNOME) > > > which will tell you the encoding of the java source and optionally > > > recode it to the same encoding set by the LANG variable (use the > > > recode command under linux). > > > > My java source file is encoded with ISO-8859. > > > > nicol at emil:~/workspace/msjava/msjava$ file queryByAttributMap.java > > queryByAttributMap.java: ISO-8859 Java program text > > > > I am not sure but i think this should match with the value of LANG > > ('de_DE at euro'). > > > > Anything else to check or to modify? > > Nicol > > > > > > > > Best regards, > > > Umberto > > > > > > > > > > > > On 4/18/06, Nicol Hermann wrote: > > > > Hi Umberto, > > > > > > > > as you suggested i compiled java mapscript with the option '-source > > > > 1.4'. > > > > > > > > Therefor i modified the JAVAC Variable in the Makefile to 'JAVAC=javac > > > > -source 1.4'. > > > > > > > > # > > > > # Java Stuff > > > > # > > > > JAVADOC=javadoc > > > > JAVAC=javac -source 1.4 > > > > > > > > Attached you find the output of the compiling process [1]. > > > > Sadly this modification did not change the situation when i query for: > > > > > > > > layer.queryByAttributes(map,"KREIS_NAME", "/S?dliche Weinstra?e/", > > > > mapscriptConstants.MS_MULTIPLE); > > > > > > > > in my test script. > > > > Did i miss one step to fix this issue? > > > > > > > > Many thanks for your assistance > > > > Nicol > > > > > > > > > > > > [1] > > > > nicol at emil:~/public_html/mapserver/sources/offical_releases/mapserver-4.8.1/mapscript/java$ make clean > > > > rm -rf edu *.o *.c *.so *.java *.jar *.png > > > > rm -rf examples/*.class > > > > nicol at emil:~/public_html/mapserver/sources/offical_releases/mapserver-4.8.1/mapscript/java$ make interface > > > > mkdir -p edu/umn/gis/mapscript > > > > swig -java -package edu.umn.gis.mapscript -o > > > > mapscript_wrap.c ../mapscript.i > > > > mv *.java edu/umn/gis/mapscript/ > > > > nicol at emil:~/public_html/mapserver/sources/offical_releases/mapserver-4.8.1/mapscript/java$ make > > > > gcc -fpic -c -g -O2 -fPIC -Wall -DENABLE_STDERR_DEBUG > > > > -DNEED_NONBLOCKING_STDERR -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF > > > > -DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR > > > > -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_MING_FLASH -DUSE_ORACLESPATIAL > > > > -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > > > > -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_SDE -DUSE_OGR > > > > -DUSE_GDAL -DUSE_POSTGIS -I/usr/local/include -I/usr/local/include > > > > -I/usr/local/sdeexe83/include -I/usr/local/include > > > > -I/usr/local/pgsql_8/include > > > > -I/home/oracle/product/10.1.0/client/rdbms/demo > > > > -I/home/oracle/product/10.1.0/client/rdbms/public > > > > -I/usr/local/j2sdk1.4.2_08/include > > > > -I/usr/local/j2sdk1.4.2_08/include/linux -fno-strict-aliasing > > > > mapscript_wrap.c > > > > gcc -fpic -shared mapscript_wrap.o -o libmapscript.so -L../.. -lmap > > > > -lgd -L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -lz -ljpeg > > > > -lfreetype -lpng -lz -L/usr/local/lib -lproj -ljpeg > > > > -L/usr/local/sdeexe83/lib -lsde83 -lpe83 -lsg83 -lpthread -ldl > > > > -L/usr/local/lib -lgdal -lming -L/usr/local/pgsql_8/lib -lpq -L/usr/lib > > > > -lcurl -lidn -lssl -lcrypto -ldl -lssl -lcrypto -ldl -lz > > > > -L/home/oracle/product/10.1.0/client/lib -lclntsh -lm -lstdc++ > > > > javac -source 1.4 edu/umn/gis/mapscript/*.java > > > > jar cf mapscript.jar edu > > > > > > > > > > > > Am Freitag, den 14.04.2006, 15:23 +0200 schrieb Umberto Nicoletti: > > > > > Olivier, > > > > > I GOT IT! > > > > > > > > > > try to run the attached Java source. If you pass it two arguments the > > > > > first being the path to the map file and the second the string to > > > > > search for and you pass > > > > > "S?dliche Weinstra?e" as the second it will work! > > > > > > > > > > So why does it fail when "S?dliche Weinstra?e" is inside the Java > > > > > code? That is a problem that only happens when javac compiles the > > > > > source: javac translates all characters to unicode and in doing that > > > > > it gets the german characters wrong. > > > > > To solve this give javac the following option: -source 1.4 > > > > > > > > > > For more see this link: > > > > > http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5046139 > > > > > > > > > > On 4/13/06, Umberto Nicoletti wrote: > > > > > > This is probably not related only to java mapscript, so please read on. > > > > > > > > > > > > > > > > So I was wrong...but I'll leave the proof to the reader ;-) > > > > > > > > > > Best regards, > > > > > Umberto > > > > > > > > > > > On 3/30/06, Oliver Wesp wrote: > > > > > > > Dear List, > > > > > > > > > > > > > > I' struggling with queryByAttributes on an attribute field with german > > > > > > > umlauts using java mapscript. > > > > > > > The odd thing is that the same thing works fine with php mapscript and > > > > > > > when I use expressions in my mapfile. I'm using a shapefile as datasource. > > > > > > > > > > > > > > > > > > > Could someone of the other mapserver developers shed some light on this issue? > > > > > > > > > > > > I have a clue to give: php mapscript is using a different regex > > > > > > library and this explains why the match does not happen for Java > > > > > > mapscript, while it does happen in php mapscript. If I am right also > > > > > > the mapserver cgi should be affected and possibly all other mapscript > > > > > > too. > > > > > > > > > > > > It would be very interesting if someone could report on similar > > > > > > experiences with the cgi-bin version of mapserver. > > > > > > > > > > > > Thanks, > > > > > > Umberto > > > > > > > > > > > > > Here is what I do: > > > > > > > > > > > > > > layer.queryByAttributes(map,"KREIS_NAME", "/S?dliche Weinstra?e/", > > > > > > > mapscriptConstants.MS_MULTIPLE); > > > > > > > layer.open(); > > > > > > > System.out.println( "Result Count: " +layer.getNumResults() ); > > > > > > > layer.close(); > > > > > > > > > > > > > > The result is always null while replacing the qstring with something > > > > > > > that doesn't contain special characters (e.g. > > > > > > > 'Mainz-Bingen') works fine. > > > > > > > > > > > > > > As noted above the following layer definition in a mapfile works fine > > > > > > > > > > > > > > LAYER > > > > > > > NAME kreis > > > > > > > STATUS DEFAULT > > > > > > > TYPE polygon > > > > > > > DATA "/tmp/subset" > > > > > > > TEMPLATE "kreis.html" > > > > > > > CLASSITEM KREIS_NAME > > > > > > > CLASS > > > > > > > NAME Boundary > > > > > > > COLOR 128 128 0 > > > > > > > OUTLINECOLOR 0 0 0 > > > > > > > EXPRESSION /S?dliche Weinstra?e/ > > > > > > > END > > > > > > > END > > > > > > > > > > > > > > > > > > > > > but this does not: > > > > > > > > > > > > > > layer.setClassitem("KREIS_NAME"); > > > > > > > classObj cl = new classObj(layer); > > > > > > > cl.setName("Classname"); > > > > > > > cl.setExpression("/S?dliche Weinstra?e/"); > > > > > > > > > > > > > > I use Mapserver 4.8.1 on W2k, Tomcat 5.0.28. > > > > > > > > > > > > > > I can provide some sample data, just in case someone likes to reproduce. > > > > > > > > > > > > > > Any help is appreciated. > > > > > > > > > > > > > > best regards > > > > > > > Oliver > > > > > > > -- > > > > > > > Dipl.-Geogr. Oliver Wesp > > > > > > > Gesellschaft fuer geografische Datenverarbeitung > > > > > > > Binger Strasse 49-51 > > > > > > > D-55218 Ingelheim > > > > > > > fon: +49 6132 714818 > > > > > > > fax: +49 6132 714828 > > > > > > > http: www.gdv.com > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > From umberto.nicoletti at GMAIL.COM Tue Apr 18 06:53:18 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Tue, 18 Apr 2006 15:53:18 +0200 Subject: Java Mapscript - querybyattribut SOLVED In-Reply-To: <1145368443.4426.60.camel@emil.intranet.gdv.com> Message-ID: On 4/18/06, Nicol Hermann wrote: > good question. Thanx ;-) > I compile and run it im my eclipse environment. So you did not compile it with -source 1.4, that explains why it does not work. > Do you have any hints how to compile an run it outside the development > environment? use ANT (ant.apache.org) Umberto > > Nicol > > > Am Dienstag, den 18.04.2006, 15:34 +0200 schrieb Umberto Nicoletti: > > How did you compile and run queryByAttributMap.java exactly? > > > > Umberto > > > > > > On 4/18/06, Nicol Hermann wrote: > > > Hi Umberto, > > > > > > many thanks for your answer. > > > > > > Am Dienstag, den 18.04.2006, 15:11 +0200 schrieb Umberto Nicoletti: > > > > Please add the list to cc (reply to all) so that everybody can benefit > > > > fro this ongoing discussion. > > > > > > sorry. i forgot the list. > > > Find the answers to your questions between the lines. > > > > > > > > > > > That said I think you need to check some things (I haven't a recipe > > > > ready yet so we'll go by trial and error): > > > > > > > > 1)that you environment is correctly setup with regard to > > > > internationalization (ie LANG and LC_* variables) > > > > > > My environment variables are set to the following values: > > > > > > nicol at emil:~$ echo $LANG > > > de_DE at euro > > > > > > LC_* variables are not set. > > > > > > nicol at emil:~$ set |grep LC_ > > > > > > > > > > > 2) after that try to dump the content of the dbf file with dbfdump and > > > > see that content is correctly displayed (you might want to use xterm > > > > which does a better job that gnome-terminal for instance in displaying > > > > non-ascii characters) > > > > > > the result of 'dbfdump' is correctly display. The german umlauts looks > > > fine. > > > > > > nicol at emil:/tmp$ dbfdump subset.dbf > > > KREIS_KENN KREIS_NAME > > > EW > > > 07337 S?dliche Weinstra?e > > > 109375 > > > 07339 Mainz-Bingen > > > 194156 > > > > > > > > > > > 3) open the Java source file with an editor like gedit (from GNOME) > > > > which will tell you the encoding of the java source and optionally > > > > recode it to the same encoding set by the LANG variable (use the > > > > recode command under linux). > > > > > > My java source file is encoded with ISO-8859. > > > > > > nicol at emil:~/workspace/msjava/msjava$ file queryByAttributMap.java > > > queryByAttributMap.java: ISO-8859 Java program text > > > > > > I am not sure but i think this should match with the value of LANG > > > ('de_DE at euro'). > > > > > > Anything else to check or to modify? > > > Nicol > > > > > > > > > > > Best regards, > > > > Umberto > > > > > > > > > > > > > > > > On 4/18/06, Nicol Hermann wrote: > > > > > Hi Umberto, > > > > > > > > > > as you suggested i compiled java mapscript with the option '-source > > > > > 1.4'. > > > > > > > > > > Therefor i modified the JAVAC Variable in the Makefile to 'JAVAC=javac > > > > > -source 1.4'. > > > > > > > > > > # > > > > > # Java Stuff > > > > > # > > > > > JAVADOC=javadoc > > > > > JAVAC=javac -source 1.4 > > > > > > > > > > Attached you find the output of the compiling process [1]. > > > > > Sadly this modification did not change the situation when i query for: > > > > > > > > > > layer.queryByAttributes(map,"KREIS_NAME", "/S?dliche Weinstra?e/", > > > > > mapscriptConstants.MS_MULTIPLE); > > > > > > > > > > in my test script. > > > > > Did i miss one step to fix this issue? > > > > > > > > > > Many thanks for your assistance > > > > > Nicol > > > > > > > > > > > > > > > [1] > > > > > nicol at emil:~/public_html/mapserver/sources/offical_releases/mapserver-4.8.1/mapscript/java$ make clean > > > > > rm -rf edu *.o *.c *.so *.java *.jar *.png > > > > > rm -rf examples/*.class > > > > > nicol at emil:~/public_html/mapserver/sources/offical_releases/mapserver-4.8.1/mapscript/java$ make interface > > > > > mkdir -p edu/umn/gis/mapscript > > > > > swig -java -package edu.umn.gis.mapscript -o > > > > > mapscript_wrap.c ../mapscript.i > > > > > mv *.java edu/umn/gis/mapscript/ > > > > > nicol at emil:~/public_html/mapserver/sources/offical_releases/mapserver-4.8.1/mapscript/java$ make > > > > > gcc -fpic -c -g -O2 -fPIC -Wall -DENABLE_STDERR_DEBUG > > > > > -DNEED_NONBLOCKING_STDERR -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF > > > > > -DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR > > > > > -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_MING_FLASH -DUSE_ORACLESPATIAL > > > > > -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > > > > > -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_SDE -DUSE_OGR > > > > > -DUSE_GDAL -DUSE_POSTGIS -I/usr/local/include -I/usr/local/include > > > > > -I/usr/local/sdeexe83/include -I/usr/local/include > > > > > -I/usr/local/pgsql_8/include > > > > > -I/home/oracle/product/10.1.0/client/rdbms/demo > > > > > -I/home/oracle/product/10.1.0/client/rdbms/public > > > > > -I/usr/local/j2sdk1.4.2_08/include > > > > > -I/usr/local/j2sdk1.4.2_08/include/linux -fno-strict-aliasing > > > > > mapscript_wrap.c > > > > > gcc -fpic -shared mapscript_wrap.o -o libmapscript.so -L../.. -lmap > > > > > -lgd -L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -lz -ljpeg > > > > > -lfreetype -lpng -lz -L/usr/local/lib -lproj -ljpeg > > > > > -L/usr/local/sdeexe83/lib -lsde83 -lpe83 -lsg83 -lpthread -ldl > > > > > -L/usr/local/lib -lgdal -lming -L/usr/local/pgsql_8/lib -lpq -L/usr/lib > > > > > -lcurl -lidn -lssl -lcrypto -ldl -lssl -lcrypto -ldl -lz > > > > > -L/home/oracle/product/10.1.0/client/lib -lclntsh -lm -lstdc++ > > > > > javac -source 1.4 edu/umn/gis/mapscript/*.java > > > > > jar cf mapscript.jar edu > > > > > > > > > > > > > > > Am Freitag, den 14.04.2006, 15:23 +0200 schrieb Umberto Nicoletti: > > > > > > Olivier, > > > > > > I GOT IT! > > > > > > > > > > > > try to run the attached Java source. If you pass it two arguments the > > > > > > first being the path to the map file and the second the string to > > > > > > search for and you pass > > > > > > "S?dliche Weinstra?e" as the second it will work! > > > > > > > > > > > > So why does it fail when "S?dliche Weinstra?e" is inside the Java > > > > > > code? That is a problem that only happens when javac compiles the > > > > > > source: javac translates all characters to unicode and in doing that > > > > > > it gets the german characters wrong. > > > > > > To solve this give javac the following option: -source 1.4 > > > > > > > > > > > > For more see this link: > > > > > > http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5046139 > > > > > > > > > > > > On 4/13/06, Umberto Nicoletti wrote: > > > > > > > This is probably not related only to java mapscript, so please read on. > > > > > > > > > > > > > > > > > > > So I was wrong...but I'll leave the proof to the reader ;-) > > > > > > > > > > > > Best regards, > > > > > > Umberto > > > > > > > > > > > > > On 3/30/06, Oliver Wesp wrote: > > > > > > > > Dear List, > > > > > > > > > > > > > > > > I' struggling with queryByAttributes on an attribute field with german > > > > > > > > umlauts using java mapscript. > > > > > > > > The odd thing is that the same thing works fine with php mapscript and > > > > > > > > when I use expressions in my mapfile. I'm using a shapefile as datasource. > > > > > > > > > > > > > > > > > > > > > > Could someone of the other mapserver developers shed some light on this issue? > > > > > > > > > > > > > > I have a clue to give: php mapscript is using a different regex > > > > > > > library and this explains why the match does not happen for Java > > > > > > > mapscript, while it does happen in php mapscript. If I am right also > > > > > > > the mapserver cgi should be affected and possibly all other mapscript > > > > > > > too. > > > > > > > > > > > > > > It would be very interesting if someone could report on similar > > > > > > > experiences with the cgi-bin version of mapserver. > > > > > > > > > > > > > > Thanks, > > > > > > > Umberto > > > > > > > > > > > > > > > Here is what I do: > > > > > > > > > > > > > > > > layer.queryByAttributes(map,"KREIS_NAME", "/S?dliche Weinstra?e/", > > > > > > > > mapscriptConstants.MS_MULTIPLE); > > > > > > > > layer.open(); > > > > > > > > System.out.println( "Result Count: " +layer.getNumResults() ); > > > > > > > > layer.close(); > > > > > > > > > > > > > > > > The result is always null while replacing the qstring with something > > > > > > > > that doesn't contain special characters (e.g. > > > > > > > > 'Mainz-Bingen') works fine. > > > > > > > > > > > > > > > > As noted above the following layer definition in a mapfile works fine > > > > > > > > > > > > > > > > LAYER > > > > > > > > NAME kreis > > > > > > > > STATUS DEFAULT > > > > > > > > TYPE polygon > > > > > > > > DATA "/tmp/subset" > > > > > > > > TEMPLATE "kreis.html" > > > > > > > > CLASSITEM KREIS_NAME > > > > > > > > CLASS > > > > > > > > NAME Boundary > > > > > > > > COLOR 128 128 0 > > > > > > > > OUTLINECOLOR 0 0 0 > > > > > > > > EXPRESSION /S?dliche Weinstra?e/ > > > > > > > > END > > > > > > > > END > > > > > > > > > > > > > > > > > > > > > > > > but this does not: > > > > > > > > > > > > > > > > layer.setClassitem("KREIS_NAME"); > > > > > > > > classObj cl = new classObj(layer); > > > > > > > > cl.setName("Classname"); > > > > > > > > cl.setExpression("/S?dliche Weinstra?e/"); > > > > > > > > > > > > > > > > I use Mapserver 4.8.1 on W2k, Tomcat 5.0.28. > > > > > > > > > > > > > > > > I can provide some sample data, just in case someone likes to reproduce. > > > > > > > > > > > > > > > > Any help is appreciated. > > > > > > > > > > > > > > > > best regards > > > > > > > > Oliver > > > > > > > > -- > > > > > > > > Dipl.-Geogr. Oliver Wesp > > > > > > > > Gesellschaft fuer geografische Datenverarbeitung > > > > > > > > Binger Strasse 49-51 > > > > > > > > D-55218 Ingelheim > > > > > > > > fon: +49 6132 714818 > > > > > > > > fax: +49 6132 714828 > > > > > > > > http: www.gdv.com > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > From john.cole at UAI.COM Tue Apr 18 07:09:16 2006 From: john.cole at UAI.COM (John Cole) Date: Tue, 18 Apr 2006 09:09:16 -0500 Subject: landview application and AJAX Message-ID: Steve, Is the experimental landview page available for download? Thanks, John Cole -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Steve Lime Sent: Monday, April 17, 2006 5:05 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] landview application and AJAX The order is predraw callback, then the object draw method and finally the postdraw callback. The newer landview code (http://maps.dnr.state.mn.us/landview/experimental/landview.html) uses a single draw callback so you can do whatever you want. Steve >>> Dylan Beaudette 4/17/2006 3:47:34 PM >>> Thanks for the pointers Steve, In particular I was curious about the execution order, or a general concept of how the Landview application works. Thanks, Dylan On Monday 17 April 2006 12:57 pm, Steve Lime wrote: > There is a member in the Mapserv object called 'options' that allows you to > add arbitrary parameters to the URL passed to mapserver. You might try > something like: > > myMap.options = "&foo=" + foovar; > > Where 'foo' is the variable you're passing to MapServer and foovar is the > javascript variable you filled via ajax/xmlhttp... > > Make sense? > > Steve > > >>> Dylan Beaudette 4/17/2006 1:19:27 PM >>> > > Greetings, > > I have been working with the Landview DHTML interface to mapserver, and > would like to include support for some additional asynchronous interaction > with a database. > > Currently our application works like this: > > select a region --> generate URL based on selection --> mapserver > application with arguments in URL --> interaction with mapserver > application > > I have written some functions in javascript and PHP to perform a spatial > query on a PostGIS database: > mapserver application --> calculate extent center coordinates with JS --> > AJAX style request to PHP function page --> data is returned to mapserver > page and displayed > > this is being done in the postdraw() function found in the landview > application. > > > I am having trouble figuring out how to pass the results from the above > function to the creation of the mapserver object such that this value is > also passed to the mapfile. > > In particular, I am curious about when the following line from the landview > application is executed: > > var ms = new Mapserv("main", the_mapfile, ... ); > > Any ideas on how to do this? > > Thanks! -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.
From john.cole at UAI.COM Tue Apr 18 07:37:31 2006 From: john.cole at UAI.COM (John Cole) Date: Tue, 18 Apr 2006 09:37:31 -0500 Subject: help with expression regex... Message-ID: I'm trying to render tiger landmark points using a class expression and this is working great. But, I'd like to have a class for everything that hasn't been specifically rendered already and I'm trying to use a regular expression for that. I've come up with the following that excludes D82, D44 and D43 in my regex tester (expresso) but doesn't work in mapserver. EXPRESSION /D(?!82|44|43)\d\d/ Does anyone have an expression that does work? I'm using Mapserver 4.8.1 on windows (in MS4W). Thanks, John Cole
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.
From woodbri at SWOODBRIDGE.COM Tue Apr 18 07:43:38 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 18 Apr 2006 10:43:38 -0400 Subject: help with expression regex... In-Reply-To: <76758090F8686C47A44B6FF52514A1D3079096E3@hermes.uai.int> Message-ID: The ELSE case is simpily to make the last CLASS have no EXPRESSION statement and it will be the catchall. -Steve W. John Cole wrote: > I'm trying to render tiger landmark points using a class expression and this > is working great. But, I'd like to have a class for everything that hasn't > been specifically rendered already and I'm trying to use a regular > expression for that. > > I've come up with the following that excludes D82, D44 and D43 in my regex > tester (expresso) but doesn't work in mapserver. > > EXPRESSION /D(?!82|44|43)\d\d/ > > Does anyone have an expression that does work? > > I'm using Mapserver 4.8.1 on windows (in MS4W). > > Thanks, > > John Cole >
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.
> From mapserver at GEOWORLD.DE Tue Apr 18 07:57:09 2006 From: mapserver at GEOWORLD.DE (Nicol Hermann) Date: Tue, 18 Apr 2006 16:57:09 +0200 Subject: Java Mapscript - querybyattribut SOLVED In-Reply-To: <75b4b93e0604180653p6bf87587ofd6cf9b714dda3db@mail.gmail.com> Message-ID: Hi Umberto, seems that i misunderstood your first advice with the option '-source 1.4'. I compiled and run my test script outside the development environment in a terminal window but the result is still the same :( Could you please verify the the following two steps are right? nicol at emil:~/workspace/msjava/msjava$ javac -source 1.4 -classpath /usr/local/jar_libs/j2ee.jar:/usr/local/jakarta-tomcat-5.0.28/common/lib/mapscript.jar queryByAttributMap.java nicol at emil:~/workspace/msjava$ java -classpath .:/usr/local/jar_libs/j2ee.jar:/usr/local/jakarta-tomcat-5.0.28/common/lib/mapscript.jar msjava.queryByAttributMap Anzahl der Ergebnisse: 0 Thanks Nicol Am Dienstag, den 18.04.2006, 15:53 +0200 schrieb Umberto Nicoletti: > On 4/18/06, Nicol Hermann wrote: > > good question. > > Thanx ;-) > > > I compile and run it im my eclipse environment. > > So you did not compile it with -source 1.4, that explains why it does not work. > > > Do you have any hints how to compile an run it outside the development > > environment? > > use ANT (ant.apache.org) > > Umberto > > > > > Nicol > > > > > > Am Dienstag, den 18.04.2006, 15:34 +0200 schrieb Umberto Nicoletti: > > > How did you compile and run queryByAttributMap.java exactly? > > > > > > Umberto > > > > > > > > > On 4/18/06, Nicol Hermann wrote: > > > > Hi Umberto, > > > > > > > > many thanks for your answer. > > > > > > > > Am Dienstag, den 18.04.2006, 15:11 +0200 schrieb Umberto Nicoletti: > > > > > Please add the list to cc (reply to all) so that everybody can benefit > > > > > fro this ongoing discussion. > > > > > > > > sorry. i forgot the list. > > > > Find the answers to your questions between the lines. > > > > > > > > > > > > > > That said I think you need to check some things (I haven't a recipe > > > > > ready yet so we'll go by trial and error): > > > > > > > > > > 1)that you environment is correctly setup with regard to > > > > > internationalization (ie LANG and LC_* variables) > > > > > > > > My environment variables are set to the following values: > > > > > > > > nicol at emil:~$ echo $LANG > > > > de_DE at euro > > > > > > > > LC_* variables are not set. > > > > > > > > nicol at emil:~$ set |grep LC_ > > > > > > > > > > > > > > 2) after that try to dump the content of the dbf file with dbfdump and > > > > > see that content is correctly displayed (you might want to use xterm > > > > > which does a better job that gnome-terminal for instance in displaying > > > > > non-ascii characters) > > > > > > > > the result of 'dbfdump' is correctly display. The german umlauts looks > > > > fine. > > > > > > > > nicol at emil:/tmp$ dbfdump subset.dbf > > > > KREIS_KENN KREIS_NAME > > > > EW > > > > 07337 S?dliche Weinstra?e > > > > 109375 > > > > 07339 Mainz-Bingen > > > > 194156 > > > > > > > > > > > > > > 3) open the Java source file with an editor like gedit (from GNOME) > > > > > which will tell you the encoding of the java source and optionally > > > > > recode it to the same encoding set by the LANG variable (use the > > > > > recode command under linux). > > > > > > > > My java source file is encoded with ISO-8859. > > > > > > > > nicol at emil:~/workspace/msjava/msjava$ file queryByAttributMap.java > > > > queryByAttributMap.java: ISO-8859 Java program text > > > > > > > > I am not sure but i think this should match with the value of LANG > > > > ('de_DE at euro'). > > > > > > > > Anything else to check or to modify? > > > > Nicol > > > > > > > > > > > > > > Best regards, > > > > > Umberto > > > > > > > > > > > > > > > > > > > > On 4/18/06, Nicol Hermann wrote: > > > > > > Hi Umberto, > > > > > > > > > > > > as you suggested i compiled java mapscript with the option '-source > > > > > > 1.4'. > > > > > > > > > > > > Therefor i modified the JAVAC Variable in the Makefile to 'JAVAC=javac > > > > > > -source 1.4'. > > > > > > > > > > > > # > > > > > > # Java Stuff > > > > > > # > > > > > > JAVADOC=javadoc > > > > > > JAVAC=javac -source 1.4 > > > > > > > > > > > > Attached you find the output of the compiling process [1]. > > > > > > Sadly this modification did not change the situation when i query for: > > > > > > > > > > > > layer.queryByAttributes(map,"KREIS_NAME", "/S?dliche Weinstra?e/", > > > > > > mapscriptConstants.MS_MULTIPLE); > > > > > > > > > > > > in my test script. > > > > > > Did i miss one step to fix this issue? > > > > > > > > > > > > Many thanks for your assistance > > > > > > Nicol > > > > > > > > > > > > > > > > > > [1] > > > > > > nicol at emil:~/public_html/mapserver/sources/offical_releases/mapserver-4.8.1/mapscript/java$ make clean > > > > > > rm -rf edu *.o *.c *.so *.java *.jar *.png > > > > > > rm -rf examples/*.class > > > > > > nicol at emil:~/public_html/mapserver/sources/offical_releases/mapserver-4.8.1/mapscript/java$ make interface > > > > > > mkdir -p edu/umn/gis/mapscript > > > > > > swig -java -package edu.umn.gis.mapscript -o > > > > > > mapscript_wrap.c ../mapscript.i > > > > > > mv *.java edu/umn/gis/mapscript/ > > > > > > nicol at emil:~/public_html/mapserver/sources/offical_releases/mapserver-4.8.1/mapscript/java$ make > > > > > > gcc -fpic -c -g -O2 -fPIC -Wall -DENABLE_STDERR_DEBUG > > > > > > -DNEED_NONBLOCKING_STDERR -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF > > > > > > -DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR > > > > > > -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_MING_FLASH -DUSE_ORACLESPATIAL > > > > > > -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > > > > > > -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_SDE -DUSE_OGR > > > > > > -DUSE_GDAL -DUSE_POSTGIS -I/usr/local/include -I/usr/local/include > > > > > > -I/usr/local/sdeexe83/include -I/usr/local/include > > > > > > -I/usr/local/pgsql_8/include > > > > > > -I/home/oracle/product/10.1.0/client/rdbms/demo > > > > > > -I/home/oracle/product/10.1.0/client/rdbms/public > > > > > > -I/usr/local/j2sdk1.4.2_08/include > > > > > > -I/usr/local/j2sdk1.4.2_08/include/linux -fno-strict-aliasing > > > > > > mapscript_wrap.c > > > > > > gcc -fpic -shared mapscript_wrap.o -o libmapscript.so -L../.. -lmap > > > > > > -lgd -L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -lz -ljpeg > > > > > > -lfreetype -lpng -lz -L/usr/local/lib -lproj -ljpeg > > > > > > -L/usr/local/sdeexe83/lib -lsde83 -lpe83 -lsg83 -lpthread -ldl > > > > > > -L/usr/local/lib -lgdal -lming -L/usr/local/pgsql_8/lib -lpq -L/usr/lib > > > > > > -lcurl -lidn -lssl -lcrypto -ldl -lssl -lcrypto -ldl -lz > > > > > > -L/home/oracle/product/10.1.0/client/lib -lclntsh -lm -lstdc++ > > > > > > javac -source 1.4 edu/umn/gis/mapscript/*.java > > > > > > jar cf mapscript.jar edu > > > > > > > > > > > > > > > > > > Am Freitag, den 14.04.2006, 15:23 +0200 schrieb Umberto Nicoletti: > > > > > > > Olivier, > > > > > > > I GOT IT! > > > > > > > > > > > > > > try to run the attached Java source. If you pass it two arguments the > > > > > > > first being the path to the map file and the second the string to > > > > > > > search for and you pass > > > > > > > "S?dliche Weinstra?e" as the second it will work! > > > > > > > > > > > > > > So why does it fail when "S?dliche Weinstra?e" is inside the Java > > > > > > > code? That is a problem that only happens when javac compiles the > > > > > > > source: javac translates all characters to unicode and in doing that > > > > > > > it gets the german characters wrong. > > > > > > > To solve this give javac the following option: -source 1.4 > > > > > > > > > > > > > > For more see this link: > > > > > > > http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5046139 > > > > > > > > > > > > > > On 4/13/06, Umberto Nicoletti wrote: > > > > > > > > This is probably not related only to java mapscript, so please read on. > > > > > > > > > > > > > > > > > > > > > > So I was wrong...but I'll leave the proof to the reader ;-) > > > > > > > > > > > > > > Best regards, > > > > > > > Umberto > > > > > > > > > > > > > > > On 3/30/06, Oliver Wesp wrote: > > > > > > > > > Dear List, > > > > > > > > > > > > > > > > > > I' struggling with queryByAttributes on an attribute field with german > > > > > > > > > umlauts using java mapscript. > > > > > > > > > The odd thing is that the same thing works fine with php mapscript and > > > > > > > > > when I use expressions in my mapfile. I'm using a shapefile as datasource. > > > > > > > > > > > > > > > > > > > > > > > > > Could someone of the other mapserver developers shed some light on this issue? > > > > > > > > > > > > > > > > I have a clue to give: php mapscript is using a different regex > > > > > > > > library and this explains why the match does not happen for Java > > > > > > > > mapscript, while it does happen in php mapscript. If I am right also > > > > > > > > the mapserver cgi should be affected and possibly all other mapscript > > > > > > > > too. > > > > > > > > > > > > > > > > It would be very interesting if someone could report on similar > > > > > > > > experiences with the cgi-bin version of mapserver. > > > > > > > > > > > > > > > > Thanks, > > > > > > > > Umberto > > > > > > > > > > > > > > > > > Here is what I do: > > > > > > > > > > > > > > > > > > layer.queryByAttributes(map,"KREIS_NAME", "/S?dliche Weinstra?e/", > > > > > > > > > mapscriptConstants.MS_MULTIPLE); > > > > > > > > > layer.open(); > > > > > > > > > System.out.println( "Result Count: " +layer.getNumResults() ); > > > > > > > > > layer.close(); > > > > > > > > > > > > > > > > > > The result is always null while replacing the qstring with something > > > > > > > > > that doesn't contain special characters (e.g. > > > > > > > > > 'Mainz-Bingen') works fine. > > > > > > > > > > > > > > > > > > As noted above the following layer definition in a mapfile works fine > > > > > > > > > > > > > > > > > > LAYER > > > > > > > > > NAME kreis > > > > > > > > > STATUS DEFAULT > > > > > > > > > TYPE polygon > > > > > > > > > DATA "/tmp/subset" > > > > > > > > > TEMPLATE "kreis.html" > > > > > > > > > CLASSITEM KREIS_NAME > > > > > > > > > CLASS > > > > > > > > > NAME Boundary > > > > > > > > > COLOR 128 128 0 > > > > > > > > > OUTLINECOLOR 0 0 0 > > > > > > > > > EXPRESSION /S?dliche Weinstra?e/ > > > > > > > > > END > > > > > > > > > END > > > > > > > > > > > > > > > > > > > > > > > > > > > but this does not: > > > > > > > > > > > > > > > > > > layer.setClassitem("KREIS_NAME"); > > > > > > > > > classObj cl = new classObj(layer); > > > > > > > > > cl.setName("Classname"); > > > > > > > > > cl.setExpression("/S?dliche Weinstra?e/"); > > > > > > > > > > > > > > > > > > I use Mapserver 4.8.1 on W2k, Tomcat 5.0.28. > > > > > > > > > > > > > > > > > > I can provide some sample data, just in case someone likes to reproduce. > > > > > > > > > > > > > > > > > > Any help is appreciated. > > > > > > > > > > > > > > > > > > best regards > > > > > > > > > Oliver > > > > > > > > > -- > > > > > > > > > Dipl.-Geogr. Oliver Wesp > > > > > > > > > Gesellschaft fuer geografische Datenverarbeitung > > > > > > > > > Binger Strasse 49-51 > > > > > > > > > D-55218 Ingelheim > > > > > > > > > fon: +49 6132 714818 > > > > > > > > > fax: +49 6132 714828 > > > > > > > > > http: www.gdv.com > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > From osgis.lists at GMAIL.COM Tue Apr 18 07:54:46 2006 From: osgis.lists at GMAIL.COM (David Bitner) Date: Tue, 18 Apr 2006 09:54:46 -0500 Subject: layer data source In-Reply-To: <4444EF10.6620.141DBA1@localhost> Message-ID: You can use a PostgreSQL procedure that returns a geometry (or a set with one field being a geometry). I use this a lot with cgi inputs to my procedure coming from url parameters so that I can have optional parameters without my select failing. Syntax: DATA "my_geom from myprocedure(%myfirstparam%,%mysecondparam%,%mythirdparam%) as mytable using unique myunique field using srid=mysrid" On 4/18/06, Laura D?az wrote: > Hi list, > is there any way to specify a different data source for a layer depending on the request? > for instance, can i set the data of a postgis layer to a postgis table for the map request > and to a complex view for the getFeatureInfo request? > or can i set the data of a layer as a procedure in the database? > > thanks, > > Laura. > From Ken.Boss at DNR.STATE.MN.US Tue Apr 18 08:04:56 2006 From: Ken.Boss at DNR.STATE.MN.US (Ken Boss) Date: Tue, 18 Apr 2006 10:04:56 -0500 Subject: landview application and AJAX Message-ID: John-- There is no distribution package as yet, but the effort is underway... --Ken >>> John Cole 4/18/2006 9:09:16 AM >>> Steve, Is the experimental landview page available for download? Thanks, John Cole -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Steve Lime Sent: Monday, April 17, 2006 5:05 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] landview application and AJAX The order is predraw callback, then the object draw method and finally the postdraw callback. The newer landview code (http://maps.dnr.state.mn.us/landview/experimental/landview.html) uses a single draw callback so you can do whatever you want. Steve >>> Dylan Beaudette 4/17/2006 3:47:34 PM >>> Thanks for the pointers Steve, In particular I was curious about the execution order, or a general concept of how the Landview application works. Thanks, Dylan On Monday 17 April 2006 12:57 pm, Steve Lime wrote: > There is a member in the Mapserv object called 'options' that allows you to > add arbitrary parameters to the URL passed to mapserver. You might try > something like: > > myMap.options = "&foo=" + foovar; > > Where 'foo' is the variable you're passing to MapServer and foovar is the > javascript variable you filled via ajax/xmlhttp... > > Make sense? > > Steve > > >>> Dylan Beaudette 4/17/2006 1:19:27 PM >>> > > Greetings, > > I have been working with the Landview DHTML interface to mapserver, and > would like to include support for some additional asynchronous interaction > with a database. > > Currently our application works like this: > > select a region --> generate URL based on selection --> mapserver > application with arguments in URL --> interaction with mapserver > application > > I have written some functions in javascript and PHP to perform a spatial > query on a PostGIS database: > mapserver application --> calculate extent center coordinates with JS --> > AJAX style request to PHP function page --> data is returned to mapserver > page and displayed > > this is being done in the postdraw() function found in the landview > application. > > > I am having trouble figuring out how to pass the results from the above > function to the creation of the mapserver object such that this value is > also passed to the mapfile. > > In particular, I am curious about when the following line from the landview > application is executed: > > var ms = new Mapserv("main", the_mapfile, ... ); > > Any ideas on how to do this? > > Thanks! -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.
-------------- next part -------------- An HTML attachment was scrubbed... URL: From kris_rock82 at YAHOO.COM Tue Apr 18 09:02:04 2006 From: kris_rock82 at YAHOO.COM (kris rock) Date: Tue, 18 Apr 2006 09:02:04 -0700 Subject: set offsite in php mapscript Message-ID: Hi, since i am having a problem posting from the mapserver lists, i am sending an email from here, i am sorry if u already got this ... i was trying to set the offsite for a raster layer using php mapscript, but i am not getting the correct syntax ..... i am able to set it in the map file but i have a need to set it in the mapscript. Thanks for your time ... --------------------------------- Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pmoen at STATE.ND.US Tue Apr 18 09:15:28 2006 From: pmoen at STATE.ND.US (Paul Moen) Date: Tue, 18 Apr 2006 11:15:28 -0500 Subject: set offsite in php mapscript In-Reply-To: <20060418160204.49086.qmail@web35911.mail.mud.yahoo.com> Message-ID: Kris, $tempLayer->offsite->setRGB(254,254,254); , where $tempLayer is your raster layer. On 4/18/06 11:02 AM, "kris rock" wrote: > Hi, since i am having a problem posting from the mapserver lists, i am sending > an email from here, i am sorry if u already got this ... > > > > i was trying to set the offsite for a raster layer using php mapscript, but i > am not getting the correct syntax ..... i am able to set it in the map file > but i have a need to set it in the mapscript. > > > > Thanks for your time ... > > Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates > starting at 1?/min. Paul T. Moen pmoen at state.nd.us -------------- next part -------------- An HTML attachment was scrubbed... URL: From clemens.bertschler at GMAIL.COM Tue Apr 18 09:42:43 2006 From: clemens.bertschler at GMAIL.COM (Bertsch) Date: Tue, 18 Apr 2006 09:42:43 -0700 Subject: Postgis Gist Index Message-ID: Hi List, As I was reading in the PostGIS manual a GIST index on the geometry column will speed up the application in several cases. So i was creating an index on my south_america_large table with CREATE INDEX south_america_large_index ON south_america_large USING GIST(the_geom GIST_GEOMETRY_OPS); VACUUM ANALYZE; Code: layer->set("data","the_geom FROM (SELECT the_geom,gid FROM south_america_large) AS myquery USING UNIQUE GID USING SRID=-1"); map->setExtent(-54,-20,-39,-9); the extension of this map is (-117,-56) - (-34,32) When i run the application i get the same time using the database with GIST or using it without GIST. Furthermore i was trying the same with a shape file and a quadtree index and i got better results for the shapefile with the quadtree index. Maybe someone can help me. Thanks, Clemens -- View this message in context: http://www.nabble.com/Postgis-Gist-Index-t1469264.html#a3971891 Sent from the Mapserver - User forum at Nabble.com. From John.C.Cartwright at NOAA.GOV Tue Apr 18 11:28:45 2006 From: John.C.Cartwright at NOAA.GOV (John Cartwright) Date: Tue, 18 Apr 2006 12:28:45 -0600 Subject: help w/ WFS request Message-ID: Hello All, I'm trying to get mapserver setup as a simple WFS server. It responds to a GetCapabilities request OK: but when I send the following GetFeatures request: the_geom -95,26.5 -94.75,26.75 I get this response, and don't know what's wrong: missing It suggests to me that the bounding box coordinates are not being properly read. I would have expected something like in the response: -95, 26.5 -94.75, 26.75 followed by a series of featureMember elements. Can someone tell what I'm doing wrong? Thanks! -- john From bartvde at XS4ALL.NL Tue Apr 18 11:41:49 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Tue, 18 Apr 2006 20:41:49 +0200 Subject: help w/ WFS request In-Reply-To: <44452FDD.5090504@noaa.gov> Message-ID: Hi John, 1) what Mapserver version are you using? 2) if you do a DescribeLayer request, what is the name of the geometry property (is it really the_geom like in your request)? Mapserver's response indicates an empty feature collection, so the boundedBy is gml:null. Best regards, Bart John Cartwright wrote: > Hello All, > > I'm trying to get mapserver setup as a simple WFS server. It responds > to a GetCapabilities request OK: > but when I send the following GetFeatures request: > > outputFormat="GML2" > xmlns:wfs="http://www.opengis.net/wfs" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:gml="http://www.opengis.net/gml" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd"> > > > > the_geom > > -95,26.5 -94.75,26.75 > > > > > > > I get this response, and don't know what's wrong: > > > xmlns:ms="http://mapserver.gis.umn.edu/mapserver" > xmlns:wfs="http://www.opengis.net/wfs" > xmlns:gml="http://www.opengis.net/gml" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengeospatial.net/wfs/1.0.0/WFS-basic.xsd > http://mapserver.gis.umn.edu/mapserver > http://lynx.ngdc.noaa.gov:8000/cgi-bin?map=bathydb&SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=soundings&OUTPUTFORMAT=XMLSCHEMA"> > > > missing > > > > It suggests to me that the bounding box coordinates are not being > properly read. I would have expected something like in the response: > > > -95, 26.5 -94.75, 26.75 > > > > followed by a series of featureMember elements. > > Can someone tell what I'm doing wrong? > > Thanks! > > -- john > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From bartvde at XS4ALL.NL Tue Apr 18 11:46:47 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Tue, 18 Apr 2006 20:46:47 +0200 Subject: help w/ WFS request In-Reply-To: <444532ED.2060001@xs4all.nl> Message-ID: Sorry I meant DescribeFeatureType instead of DescribeLayer .... Bart Bart van den Eijnden (OSGIS) wrote: > Hi John, > > 1) what Mapserver version are you using? > 2) if you do a DescribeLayer request, what is the name of the geometry > property (is it really the_geom like in your request)? > > Mapserver's response indicates an empty feature collection, so the > boundedBy is gml:null. > > Best regards, > Bart > > John Cartwright wrote: > >> Hello All, >> >> I'm trying to get mapserver setup as a simple WFS server. It responds >> to a GetCapabilities request OK: >> but when I send the following GetFeatures request: >> >> > outputFormat="GML2" >> xmlns:wfs="http://www.opengis.net/wfs" >> xmlns:ogc="http://www.opengis.net/ogc" >> xmlns:gml="http://www.opengis.net/gml" >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> xsi:schemaLocation="http://www.opengis.net/wfs >> >> http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd"> >> >> >> >> the_geom >> >> -95,26.5 -94.75,26.75 >> >> >> >> >> >> >> I get this response, and don't know what's wrong: >> >> >> > xmlns:ms="http://mapserver.gis.umn.edu/mapserver" >> xmlns:wfs="http://www.opengis.net/wfs" >> xmlns:gml="http://www.opengis.net/gml" >> xmlns:ogc="http://www.opengis.net/ogc" >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> xsi:schemaLocation="http://www.opengis.net/wfs >> http://schemas.opengeospatial.net/wfs/1.0.0/WFS-basic.xsd >> http://mapserver.gis.umn.edu/mapserver >> http://lynx.ngdc.noaa.gov:8000/cgi-bin?map=bathydb&SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=soundings&OUTPUTFORMAT=XMLSCHEMA"> >> >> >> missing >> >> >> >> It suggests to me that the bounding box coordinates are not being >> properly read. I would have expected something like in the response: >> >> >> -95, 26.5 -94.75, 26.75 >> >> >> >> followed by a series of featureMember elements. >> >> Can someone tell what I'm doing wrong? >> >> Thanks! >> >> -- john >> >> > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From naci0002 at UMN.EDU Tue Apr 18 11:52:03 2006 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Tue, 18 Apr 2006 13:52:03 -0500 Subject: help w/ WFS request In-Reply-To: <44452FDD.5090504@noaa.gov> Message-ID: John, On Tuesday 18 April 2006 13:28, John Cartwright wrote: > Hello All, > > I'm trying to get mapserver setup as a simple WFS server. It responds to > a GetCapabilities request OK: > but when I send the following GetFeatures request: > > outputFormat="GML2" > xmlns:wfs="http://www.opengis.net/wfs" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:gml="http://www.opengis.net/gml" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd"> > > > > the_geom > Shouldn't this be "" (or is it EPSG:4326)? Looks like the srsName in your mapfile maybe incorrect. -Perry > -95,26.5 -94.75,26.75 > > > > > > > I get this response, and don't know what's wrong: > > > xmlns:ms="http://mapserver.gis.umn.edu/mapserver" > xmlns:wfs="http://www.opengis.net/wfs" > xmlns:gml="http://www.opengis.net/gml" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengeospatial.net/wfs/1.0.0/WFS-basic.xsd > http://mapserver.gis.umn.edu/mapserver > http://lynx.ngdc.noaa.gov:8000/cgi-bin?map=bathydb&SERVICE=WFS&VERS >ION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=soundings&OUTPUTF >ORMAT=XMLSCHEMA"> > missing > > > > It suggests to me that the bounding box coordinates are not being > properly read. I would have expected something like in the response: > > > > -95, 26.5 -94.75, 26.75 > > > > followed by a series of featureMember elements. > > Can someone tell what I'm doing wrong? > > Thanks! > > -- john -- Pericles S. Nacionales Conservation Biology Program University of Minnesota e-mail: naci0002 at umn.edu From connect_rahul1 at YAHOO.CO.IN Tue Apr 18 12:19:53 2006 From: connect_rahul1 at YAHOO.CO.IN (rahul singh) Date: Tue, 18 Apr 2006 20:19:53 +0100 Subject: Changing the projection Message-ID: Hi all, I am trying to change my map projection from lambert azimuthal equal area to mercator projection. I tried to change the value of keyword proj to merc instead of laea and changed the others keywords like ellps to WGS84 and lat_0 to 0 and lon_0 to 0 but did not see any changes in the map . i even changed the extents of the shapefile according to the mercator projection. I am providing the part of the code down below in which i made the changes MAP NAME UMAC SIZE 630 294 EXTENT -1403269.17 -433382.76 781662.52 577110.16 IMAGECOLOR 255 255 255 SHAPEPATH "../shape/" SYMBOLSET "../etc/symbols.sym" FONTSET "../etc/fonts.txt" PROJECTION "proj=merc" "ellps=WGS84" "lat_0=0" "lon_0=0" "x_0=0" "y_0=0" Any suggestions would be appreciated Reagrds Rahul Singh RAHUL SINGH __________________________________________________________ Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com From warmerdam at POBOX.COM Tue Apr 18 12:37:06 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 18 Apr 2006 15:37:06 -0400 Subject: Changing the projection In-Reply-To: <20060418191953.2868.qmail@web8504.mail.in.yahoo.com> Message-ID: rahul singh wrote: > Hi all, > > I am trying to change my map projection from lambert > azimuthal equal area to mercator projection. I tried > to change the value of keyword proj to merc instead of > laea and changed the others keywords like ellps to > WGS84 and lat_0 to 0 > and lon_0 to 0 but did not see any changes in the > map . i even changed the extents of the shapefile > according to the mercator projection. I am providing > the part of the code down below in which i made the > changes > > MAP > NAME UMAC > SIZE 630 294 > EXTENT -1403269.17 -433382.76 781662.52 577110.16 > IMAGECOLOR 255 255 255 > SHAPEPATH "../shape/" > SYMBOLSET "../etc/symbols.sym" > FONTSET "../etc/fonts.txt" > > PROJECTION > "proj=merc" > "ellps=WGS84" > "lat_0=0" > "lon_0=0" > "x_0=0" > "y_0=0" > > > Any suggestions would be appreciated Rahul, What do you have for PROJECTION blocks on the layers in your map? If you want mapserver to reproject you need to have the projection set for each layer that may require reprojection. Note, your EXTENT will undoubtedly need to change in new projection too. 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 OSGF, http://osgeo.org From John.C.Cartwright at NOAA.GOV Tue Apr 18 13:19:15 2006 From: John.C.Cartwright at NOAA.GOV (John Cartwright) Date: Tue, 18 Apr 2006 14:19:15 -0600 Subject: help w/ WFS request In-Reply-To: <200604181352.03495.naci0002@umn.edu> Message-ID: Thanks for the prompt replies Perry and Bart! I found part of my problem was that the TNS_ADMIN variable was not being recognized so mapserver was not finding my tnsnames.ora. Having corrected that, I now get the correct coordinates in the response, but it 's not finding any features. This is mapserver 4.8.3 (on RHEL WS4) running against an Oracle (10.1.0.4) spatial data source. Here's my current request and response. I expect to find 67 point features w/in this particular geographic extent, but the featureCollection is coming back empty. The complete DescribeFeatureType response is listed at the bottom of the message. Thanks again for your help! -- john ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Request: OBJECT_ID the_geom -95,26.5 -94.75,26.75 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Response (note the empty featureCollection where there should be 67 points): -94.999165,26.504089 -94.757270,26.742092 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- DescribeFeatureType Response: Pericles S. Nacionales wrote: >John, > >On Tuesday 18 April 2006 13:28, John Cartwright wrote: > > >>Hello All, >> >>I'm trying to get mapserver setup as a simple WFS server. It responds to >>a GetCapabilities request OK: >>but when I send the following GetFeatures request: >> >>> outputFormat="GML2" >> xmlns:wfs="http://www.opengis.net/wfs" >> xmlns:ogc="http://www.opengis.net/ogc" >> xmlns:gml="http://www.opengis.net/gml" >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> xsi:schemaLocation="http://www.opengis.net/wfs >> http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd"> >> >> >> >> the_geom >> >> >> > >Shouldn't this be "" (or is it EPSG:4326)? Looks >like the srsName in your mapfile maybe incorrect. > >-Perry > > > >> -95,26.5 -94.75,26.75 >> >> >> >> >> >> >>I get this response, and don't know what's wrong: >> >> >>> xmlns:ms="http://mapserver.gis.umn.edu/mapserver" >> xmlns:wfs="http://www.opengis.net/wfs" >> xmlns:gml="http://www.opengis.net/gml" >> xmlns:ogc="http://www.opengis.net/ogc" >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> xsi:schemaLocation="http://www.opengis.net/wfs >>http://schemas.opengeospatial.net/wfs/1.0.0/WFS-basic.xsd >> http://mapserver.gis.umn.edu/mapserver >>http://lynx.ngdc.noaa.gov:8000/cgi-bin?map=bathydb&SERVICE=WFS&VERS >>ION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=soundings&OUTPUTF >>ORMAT=XMLSCHEMA"> >> missing >> >> >> >>It suggests to me that the bounding box coordinates are not being >>properly read. I would have expected something like in the response: >> >> >> >> -95, 26.5 -94.75, 26.75 >> >> >> >>followed by a series of featureMember elements. >> >>Can someone tell what I'm doing wrong? >> >>Thanks! >> >>-- john >> >> > > > From pramsey at REFRACTIONS.NET Tue Apr 18 13:26:46 2006 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Tue, 18 Apr 2006 13:26:46 -0700 Subject: Postgis Gist Index In-Reply-To: <3971891.post@talk.nabble.com> Message-ID: Your data statement is needlessly complicated, which is creating more convoluted SQL than you need at the backend, but generally the planner optimizes these things away. You could try > layer->set("data","the_geom FROM south_america_large USING UNIQUE > gid USING SRID=-1"); I doubt it will help much. Check your postgresql statement log (you will have to turn on statement loggin) and plug the query into psql to see what the SQL EXPLAIN shows. P On 18-Apr-06, at 9:42 AM, Bertsch wrote: > Hi List, > > As I was reading in the PostGIS manual a GIST index on the geometry > column > will speed up the application in several cases. > So i was creating an index on my south_america_large table with > CREATE INDEX > south_america_large_index ON south_america_large USING GIST(the_geom > GIST_GEOMETRY_OPS); VACUUM ANALYZE; > Code: > layer->set("data","the_geom FROM (SELECT the_geom,gid FROM > south_america_large) AS myquery USING UNIQUE GID USING SRID=-1"); > map->setExtent(-54,-20,-39,-9); the extension of this map is > (-117,-56) - > (-34,32) > > When i run the application i get the same time using the database > with GIST > or using it without GIST. Furthermore i was trying the same with a > shape > file and a quadtree index and i got better results for the > shapefile with > the quadtree index. Maybe someone can help me. > Thanks, > Clemens > -- > View this message in context: http://www.nabble.com/Postgis-Gist- > Index-t1469264.html#a3971891 > Sent from the Mapserver - User forum at Nabble.com. From Steve.Lime at DNR.STATE.MN.US Tue Apr 18 14:28:45 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 18 Apr 2006 16:28:45 -0500 Subject: landview application and AJAX Message-ID: Staff at the DNR are working to make a stand-alone bundle as week speak. I'll post when ready... Steve >>> John Cole 04/18/06 9:09 AM >>> Steve, Is the experimental landview page available for download? Thanks, John Cole -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Steve Lime Sent: Monday, April 17, 2006 5:05 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] landview application and AJAX The order is predraw callback, then the object draw method and finally the postdraw callback. The newer landview code (http://maps.dnr.state.mn.us/landview/experimental/landview.html) uses a single draw callback so you can do whatever you want. Steve >>> Dylan Beaudette 4/17/2006 3:47:34 PM >>> Thanks for the pointers Steve, In particular I was curious about the execution order, or a general concept of how the Landview application works. Thanks, Dylan On Monday 17 April 2006 12:57 pm, Steve Lime wrote: > There is a member in the Mapserv object called 'options' that allows you to > add arbitrary parameters to the URL passed to mapserver. You might try > something like: > > myMap.options = "&foo=" + foovar; > > Where 'foo' is the variable you're passing to MapServer and foovar is the > javascript variable you filled via ajax/xmlhttp... > > Make sense? > > Steve > > >>> Dylan Beaudette 4/17/2006 1:19:27 PM >>> > > Greetings, > > I have been working with the Landview DHTML interface to mapserver, and > would like to include support for some additional asynchronous interaction > with a database. > > Currently our application works like this: > > select a region --> generate URL based on selection --> mapserver > application with arguments in URL --> interaction with mapserver > application > > I have written some functions in javascript and PHP to perform a spatial > query on a PostGIS database: > mapserver application --> calculate extent center coordinates with JS --> > AJAX style request to PHP function page --> data is returned to mapserver > page and displayed > > this is being done in the postdraw() function found in the landview > application. > > > I am having trouble figuring out how to pass the results from the above > function to the creation of the mapserver object such that this value is > also passed to the mapfile. > > In particular, I am curious about when the following line from the landview > application is executed: > > var ms = new Mapserv("main", the_mapfile, ... ); > > Any ideas on how to do this? > > Thanks! -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.
Sat From umn-ms at HYDROTEC.DE Tue Apr 18 14:40:52 2006 From: umn-ms at HYDROTEC.DE (Benedikt Rothe) Date: Tue, 18 Apr 2006 23:40:52 +0200 Subject: Java Mapscript - querybyattribut SOLVED In-Reply-To: <75b4b93e0604140623ofd06ad4y4d59b2b2082c702b@mail.gmail.com> Message-ID: Umberto, Nicol, Norbert, Oliver Umberto wrote > try to run the attached Java source. ... > "S?dliche Weinstra?e" as the second it will work! In my copy of your mail the queryByAttribute.java-program is not attached. Could somebody post program including testdata (or download-url) ? I 'd like to study a running example, because I don't understand how umlaut-conversion from Java to Mapserver-kernel can run properly anyway and I'd like to understand it :-) ----------- It seems Norbert found a kind of answer to his question > is there a way to do the converion in java dircetly? He suggested > Try to convert the String before you set the expression in your code(-> String( byte > bytes[], String ) Could you be more precisly? I do not understand what must be converted to what. How must this be applied to convert a Java-String to a proper "Mapserver-String" (?) ----------- Is somebody willing to try to add an "UTF-8 -> ISO-8859-Conversion" in mapscript_wrap.c for testpurposes? (Even in the case it works, this would not be a real solution because it bypasses swig.) Benedikt UMN MapServer Users List schrieb am 14.04.2006 15:23:51: > Olivier, > I GOT IT! > > try to run the attached Java source. If you pass it two arguments the > first being the path to the map file and the second the string to > search for and you pass > "S?dliche Weinstra?e" as the second it will work! > > So why does it fail when "S?dliche Weinstra?e" is inside the Java > code? That is a problem that only happens when javac compiles the > source: javac translates all characters to unicode and in doing that > it gets the german characters wrong. > To solve this give javac the following option: -source 1.4 > > For more see this link: > http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5046139 > > On 4/13/06, Umberto Nicoletti wrote: > > This is probably not related only to java mapscript, so please read on. > > > > So I was wrong...but I'll leave the proof to the reader ;-) > > Best regards, > Umberto > > > On 3/30/06, Oliver Wesp wrote: > > > Dear List, > > > > > > I' struggling with queryByAttributes on an attribute field with german > > > umlauts using java mapscript. > > > The odd thing is that the same thing works fine with php mapscript and > > > when I use expressions in my mapfile. I'm using a shapefile as > datasource. > > > > > > > Could someone of the other mapserver developers shed some light on > this issue? > > > > I have a clue to give: php mapscript is using a different regex > > library and this explains why the match does not happen for Java > > mapscript, while it does happen in php mapscript. If I am right also > > the mapserver cgi should be affected and possibly all other mapscript > > too. > > > > It would be very interesting if someone could report on similar > > experiences with the cgi-bin version of mapserver. > > > > Thanks, > > Umberto > > > > > Here is what I do: > > > > > > layer.queryByAttributes(map,"KREIS_NAME", "/S?dliche Weinstra?e/", > > > mapscriptConstants.MS_MULTIPLE); > > > layer.open(); > > > System.out.println( "Result Count: " +layer.getNumResults() ); > > > layer.close(); > > > > > > The result is always null while replacing the qstring with something > > > that doesn't contain special characters (e.g. > > > 'Mainz-Bingen') works fine. > > > > > > As noted above the following layer definition in a mapfile works fine > > > > > > LAYER > > > NAME kreis > > > STATUS DEFAULT > > > TYPE polygon > > > DATA "/tmp/subset" > > > TEMPLATE "kreis.html" > > > CLASSITEM KREIS_NAME > > > CLASS > > > NAME Boundary > > > COLOR 128 128 0 > > > OUTLINECOLOR 0 0 0 > > > EXPRESSION /S?dliche Weinstra?e/ > > > END > > > END > > > > > > > > > but this does not: > > > > > > layer.setClassitem("KREIS_NAME"); > > > classObj cl = new classObj(layer); > > > cl.setName("Classname"); > > > cl.setExpression("/S?dliche Weinstra?e/"); > > > > > > I use Mapserver 4.8.1 on W2k, Tomcat 5.0.28. > > > > > > I can provide some sample data, just in case someone likes to reproduce. > > > > > > Any help is appreciated. > > > > > > best regards > > > Oliver > > > -- > > > Dipl.-Geogr. Oliver Wesp > > > Gesellschaft fuer geografische Datenverarbeitung > > > Binger Strasse 49-51 > > > D-55218 Ingelheim > > > fon: +49 6132 714818 > > > fax: +49 6132 714828 > > > http: www.gdv.com > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From clemens.bertschler at GMAIL.COM Tue Apr 18 15:11:30 2006 From: clemens.bertschler at GMAIL.COM (Bertsch) Date: Tue, 18 Apr 2006 15:11:30 -0700 Subject: Postgis Gist Index In-Reply-To: Message-ID: Thanks for your reply I was also using this statement before, but with the same results. The PG Log BEGIN DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from south_america_large WHERE the_geom && setSRID('BOX3D(-54 -20.125,-39 -8.875)'::BOX3D, -1 ) FETCH ALL in mycursor then running the analyse: ******************************************************************************************************* geo_base_index=# BEGIN; BEGIN geo_base_index=# EXPLAIN ANALYZE geo_base_index-# DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collec tion(force_2d(the_geom)),'NDR'),gid::text from south_america_large WHERE the_geo m && setSRID('BOX3D(-54 -20.125,-39 -8.875)'::BOX3D, -1 ); QUERY PLAN -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ---------------------------------------------------------------- Seq Scan on south_america_large (cost=0.00..2393.04 rows=2554 width=1973) Filter: (the_geom && '010300000001000000050000000000000000004BC00000000000203 4C00000000000004BC00000000000C021C000000000008043C00000000000C021C00000000000804 3C000000000002034C00000000000004BC000000000002034C0'::geometry) (2 rows) so i was running a second analyse without the declaration of mycurser and it was using the index geo_base_index=# BEGIN; BEGIN geo_base_index=# EXPLAIN ANALYZE geo_base_index-# SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),gid ::text from south_america_large WHERE the_geom && setSRID('BOX3D(-54 -20.125,-39 -8.875)'::BOX3D, -1 ); QUERY PLAN -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------- Bitmap Heap Scan on south_america_large (cost=24.94..2302.79 rows=2554 width=1 973) (actual time=88.130..174.118 rows=2485 loops=1) Filter: (the_geom && '010300000001000000050000000000000000004BC00000000000203 4C00000000000004BC00000000000C021C000000000008043C00000000000C021C00000000000804 3C000000000002034C00000000000004BC000000000002034C0'::geometry) -> Bitmap Index Scan on south_america_large_index (cost=0.00..24.94 rows=25 54 width=0) (actual time=86.303..86.303 rows=2485 loops=1) Index Cond: (the_geom && '010300000001000000050000000000000000004BC0000 00000002034C00000000000004BC00000000000C021C000000000008043C00000000000C021C0000 00000008043C000000000002034C00000000000004BC000000000002034C0'::geometry) Total runtime: 184.970 ms (5 rows) in comparision to the database without the index key geo_base=# EXPLAIN ANALYZE geo_base-# SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from south_america_large WHERE the_geom && setSRID('BOX3D(-54 -20.125,-39 -8.87 5)'::BOX3D, -1 ); QUERY PLAN -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ---------------------------------------------------------------- Seq Scan on south_america_large (cost=0.00..2396.85 rows=2535 width=2054) (act ual time=233.041..364.162 rows=2485 loops=1) Filter: (the_geom && '010300000001000000050000000000000000004BC00000000000203 4C00000000000004BC00000000000C021C000000000008043C00000000000C021C00000000000804 3C000000000002034C00000000000004BC000000000002034C0'::geometry) Total runtime: 367.541 ms (3 rows) So far, now i am a little bit confused how to create a statement not using the declaration of mycurser? Thanks, Clemens -- View this message in context: http://www.nabble.com/Postgis-Gist-Index-t1469264.html#a3977908 Sent from the Mapserver - User forum at Nabble.com. From pramsey at REFRACTIONS.NET Tue Apr 18 17:18:34 2006 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Tue, 18 Apr 2006 17:18:34 -0700 Subject: Postgis Gist Index In-Reply-To: <3977908.post@talk.nabble.com> Message-ID: This is just tickling the end of my cerebral cortex -- I am sure I have seen something like this before. If you make your box smaller and smaller, does the index kick in eventually in mapserver? P On 18-Apr-06, at 3:11 PM, Bertsch wrote: > Thanks for your reply > I was also using this statement before, but with the same results. > The PG Log > BEGIN > DECLARE mycursor BINARY CURSOR FOR SELECT > asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from > south_america_large WHERE the_geom && setSRID('BOX3D(-54 -20.125,-39 > -8.875)'::BOX3D, -1 ) > FETCH ALL in mycursor > then running the analyse: > ********************************************************************** > ********************************* > > geo_base_index=# BEGIN; > BEGIN > geo_base_index=# EXPLAIN ANALYZE > geo_base_index-# DECLARE mycursor BINARY CURSOR FOR SELECT > asbinary(force_collec > tion(force_2d(the_geom)),'NDR'),gid::text from south_america_large > WHERE > the_geo > m && setSRID('BOX3D(-54 -20.125,-39 -8.875)'::BOX3D, -1 ); > > QUERY PLAN > > ---------------------------------------------------------------------- > ---------- > ---------------------------------------------------------------------- > ---------- > ---------------------------------------------------------------- > Seq Scan on south_america_large (cost=0.00..2393.04 rows=2554 > width=1973) > Filter: (the_geom && > '010300000001000000050000000000000000004BC00000000000203 > 4C00000000000004BC00000000000C021C000000000008043C00000000000C021C0000 > 0000000804 > 3C000000000002034C00000000000004BC000000000002034C0'::geometry) > (2 rows) > > so i was running a second analyse without the declaration of > mycurser and it > was using the index > geo_base_index=# BEGIN; > BEGIN > geo_base_index=# EXPLAIN ANALYZE > geo_base_index-# SELECT > asbinary(force_collection(force_2d(the_geom)),'NDR'),gid > ::text from south_america_large WHERE the_geom && setSRID('BOX3D(-54 > -20.125,-39 > -8.875)'::BOX3D, -1 ); > > QUERY PLAN > > ---------------------------------------------------------------------- > ---------- > ---------------------------------------------------------------------- > ---------- > ---------------------------------------------------------------------- > ---- > Bitmap Heap Scan on south_america_large (cost=24.94..2302.79 > rows=2554 > width=1 > 973) (actual time=88.130..174.118 rows=2485 loops=1) > Filter: (the_geom && > '010300000001000000050000000000000000004BC00000000000203 > 4C00000000000004BC00000000000C021C000000000008043C00000000000C021C0000 > 0000000804 > 3C000000000002034C00000000000004BC000000000002034C0'::geometry) > -> Bitmap Index Scan on south_america_large_index > (cost=0.00..24.94 > rows=25 > 54 width=0) (actual time=86.303..86.303 rows=2485 loops=1) > Index Cond: (the_geom && > '010300000001000000050000000000000000004BC0000 > 00000002034C00000000000004BC00000000000C021C000000000008043C0000000000 > 0C021C0000 > 00000008043C000000000002034C00000000000004BC000000000002034C0'::geomet > ry) > Total runtime: 184.970 ms > (5 rows) > > in comparision to the database without the index key > geo_base=# EXPLAIN ANALYZE > geo_base-# SELECT > asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text > from south_america_large WHERE the_geom && setSRID('BOX3D(-54 > -20.125,-39 > -8.87 > 5)'::BOX3D, -1 ); > > QUERY PLAN > > ---------------------------------------------------------------------- > ---------- > ---------------------------------------------------------------------- > ---------- > ---------------------------------------------------------------- > Seq Scan on south_america_large (cost=0.00..2396.85 rows=2535 > width=2054) > (act > ual time=233.041..364.162 rows=2485 loops=1) > Filter: (the_geom && > '010300000001000000050000000000000000004BC00000000000203 > 4C00000000000004BC00000000000C021C000000000008043C00000000000C021C0000 > 0000000804 > 3C000000000002034C00000000000004BC000000000002034C0'::geometry) > Total runtime: 367.541 ms > (3 rows) > > So far, now i am a little bit confused how to create a statement > not using > the declaration of mycurser? > > Thanks, > Clemens > -- > View this message in context: http://www.nabble.com/Postgis-Gist- > Index-t1469264.html#a3977908 > Sent from the Mapserver - User forum at Nabble.com. From b.vdeijnden at AGI.RWS.MINVENW.NL Tue Apr 18 22:14:19 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Wed, 19 Apr 2006 07:14:19 +0200 Subject: help w/ WFS request Message-ID: Some more thoughts: 1. you need to use msGeometry instead of the_geom in your GetFeature request 2. just checking, but have you set DUMP TRUE on your LAYER? Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens John Cartwright Verzonden: dinsdag 18 april 2006 22:19 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] help w/ WFS request Thanks for the prompt replies Perry and Bart! I found part of my problem was that the TNS_ADMIN variable was not being recognized so mapserver was not finding my tnsnames.ora. Having corrected that, I now get the correct coordinates in the response, but it 's not finding any features. This is mapserver 4.8.3 (on RHEL WS4) running against an Oracle (10.1.0.4) spatial data source. Here's my current request and response. I expect to find 67 point features w/in this particular geographic extent, but the featureCollection is coming back empty. The complete DescribeFeatureType response is listed at the bottom of the message. Thanks again for your help! -- john ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- -------------------------- Request: OBJECT_ID the_geom -95,26.5 -94.75,26.75 ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- -------------------------- Response (note the empty featureCollection where there should be 67 points): -94.999165,26.504089 -94.757270,26.742092 ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- -------------------------- DescribeFeatureType Response: Pericles S. Nacionales wrote: >John, > >On Tuesday 18 April 2006 13:28, John Cartwright wrote: > > >>Hello All, >> >>I'm trying to get mapserver setup as a simple WFS server. It responds to >>a GetCapabilities request OK: >>but when I send the following GetFeatures request: >> >>> outputFormat="GML2" >> xmlns:wfs="http://www.opengis.net/wfs" >> xmlns:ogc="http://www.opengis.net/ogc" >> xmlns:gml="http://www.opengis.net/gml" >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> xsi:schemaLocation="http://www.opengis.net/wfs >> http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd"> >> >> >> >> the_geom >> >> >> > >Shouldn't this be "" (or is it EPSG:4326)? Looks >like the srsName in your mapfile maybe incorrect. > >-Perry > > > >> -95,26.5 -94.75,26.75 >> >> >> >> >> >> >>I get this response, and don't know what's wrong: >> >> >>> xmlns:ms="http://mapserver.gis.umn.edu/mapserver" >> xmlns:wfs="http://www.opengis.net/wfs" >> xmlns:gml="http://www.opengis.net/gml" >> xmlns:ogc="http://www.opengis.net/ogc" >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> xsi:schemaLocation="http://www.opengis.net/wfs >>http://schemas.opengeospatial.net/wfs/1.0.0/WFS-basic.xsd >> http://mapserver.gis.umn.edu/mapserver >>http://lynx.ngdc.noaa.gov:8000/cgi-bin?map=bathydb&SERVICE=WFS&VER S >>ION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=soundings&OUTPU TF >>ORMAT=XMLSCHEMA"> >> missing >> >> >> >>It suggests to me that the bounding box coordinates are not being >>properly read. I would have expected something like in the response: >> >> >> >> -95, 26.5 -94.75, 26.75 >> >> >> >>followed by a series of featureMember elements. >> >>Can someone tell what I'm doing wrong? >> >>Thanks! >> >>-- john >> >> > > > Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From m.cave-ayland at WEBBASED.CO.UK Wed Apr 19 00:25:19 2006 From: m.cave-ayland at WEBBASED.CO.UK (Mark Cave-Ayland) Date: Wed, 19 Apr 2006 08:25:19 +0100 Subject: Postgis Gist Index In-Reply-To: <01264BC6-F59B-41F7-9A17-59E44EA2DB0A@refractions.net> Message-ID: > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Paul Ramsey > Sent: 19 April 2006 01:19 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Postgis Gist Index > > This is just tickling the end of my cerebral cortex -- I am sure I > have seen something like this before. If you make your box smaller > and smaller, does the index kick in eventually in mapserver? > > P Hi Paul, Would this be the incident you are thinking of here? http://archives.postgresql.org/pgsql-hackers/2003-10/msg00059.php I imagine that this could be solved by manually tweaking some of the cost settings in postgresql.conf. Kind regards, Mark. ------------------------ WebBased Ltd 17 Research Way Plymouth PL6 8BT T: +44 (0)1752 797131 F: +44 (0)1752 791023 http://www.webbased.co.uk http://www.infomapper.com http://www.swtc.co.uk This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. From sdc at SDC.COM.AU Wed Apr 19 00:38:08 2006 From: sdc at SDC.COM.AU (Stephen Davies) Date: Wed, 19 Apr 2006 17:08:08 +0930 Subject: Performance hints please In-Reply-To: <4435524D.6080804@refractions.net> Message-ID: Thanks for the feedback. I have been distracted by easter and other priorities and have only just got back to this question. Here is a sample explain output. I think it says that my DB structure is OK. (The statement is taken from a log of a mapserver session.) The biggest geometry table in this database has only 166 rows. I don't know whether the connection is persistent or not. How does mapserv manage connections? The TIFF rasters that I am using are included in their entirety. That is, the map extent is the same or bigger than the image. Are overviews still relevant in this context? What is the significance of the OID use? This table (and all others) has a proper unique key. Cheers and thanks, Stephen sdc=# explain SELECT type::text,asbinary(force_collection(force_2d(geom)),'NDR'),OID::text from cad WHERE (gtype='T' and client_id=14) and (geom && setSRID( 'BOX3D(139.2003702 -35.7073913851792,139.2325063 -35.675186053051)'::BOX3D,find_srid('','cad','geom') )); QUERY PLAN -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Bitmap Heap Scan on cad (cost=5.52..18.78 rows=3 width=76) Recheck Cond: (client_id = 14) Filter: ((gtype = 'T'::text) AND (geom && '0103000020BB1000000100000005000000FA02C46E696661408D6808CD8BDA41C0FA02C46E69666140E148207F6CD641C0A6530DB170676140E148207F6CD641C0A6530DB1706761408D6808CD8BDA41C0FA02C46E696661408D6808CD8BDA41C0'::geometry)) -> BitmapAnd (cost=5.52..5.52 rows=6 width=0) -> Bitmap Index Scan on cad_geox (cost=0.00..1.06 rows=17 width=0) Index Cond: (geom && '0103000020BB1000000100000005000000FA02C46E696661408D6808CD8BDA41C0FA02C46E69666140E148207F6CD641C0A6530DB170676140E148207F6CD641C0A6530DB1706761408D6808CD8BDA41C0FA02C46E696661408D6808CD8BDA41C0'::geometry) -> Bitmap Index Scan on cadclix (cost=0.00..4.21 rows=59 width=0) Index Cond: (client_id = 14) (8 rows) On Friday 07 April 2006 03:09, Clint Johnson wrote: > I don't know of any. Optimizing the map server configuration is > could be the wrong way of going about solving your problem > > Look into optimizing your database. Sure there are indexes; but are > they being used? "explain" can help you determine that > (ie > http://www.redhat.com/docs/manuals/database/RHDB-7.1.3-Manual/sql/sql >-explain.html) > > > - Are there joins or subqueries going on "under the hood"? Joins are > an expensive operation whether there is an index or no index. > - Perhaps an expensive trigger is getting fired for every select? > - etc. > > Ed is right, "The amount of geometry involved is so small, the > bottleneck has to be the raster processing" -- is a bad assumption. > Retrieving a small amount of data from a large table will take while > (indexes help). Performing a join takes even longer. > > Explain will explain. > > Stephen Davies wrote: > > G'day all. > > > > Does anybody have a howto on Mapserver performance enhancement? > > > > My particular environment of interest is a relatively small set of > > geometries in a PostGIS database and a collection of geotiff aerial > > photography images onto which I overlay the geometries. > > > > The geometries are fully indexed, relatively static and vacuum > > analyzed every night. > > > > One of the options that users have is to request a "movie" of up to > > 20 frames; each of which consists of a background raster plus up to > > about five circular geometries, about five points and maybe ten > > other lines/polygons. > > > > The amount of geometry involved is so small, the bottleneck has to > > be the raster processing. The images are 2m/pixel and are typically > > 20 - 150 Mb each. The frame extents include most if not all of an > > image so tiling does not seem relevant. > > > > I have specified 80% JPEG as the output to minimise final image > > size and this seems successful (at least in terms of size and hence > > download time) > > > > I am looking for ways to reduce the time taken in the image > > generation phase. > > > > TIA, > > Stephen Davies > > > > =================================================================== > >===== This email is for the person(s) identified above, and is > > confidential to the sender and the person(s). No one else is > > authorised to use or disseminate this email or its contents. > > > > Stephen Davies Consulting Voice: 08-8177 > > 1595 Adelaide, South Australia. Fax: > > 08-8177 0133 Computing & Network solutions. > > Mobile:0403 0405 83 -- ======================================================================= This email is for the person(s) identified above, and is confidential to the sender and the person(s). No one else is authorised to use or disseminate this email or its contents. Stephen Davies Consulting Voice: 08-8177 1595 Adelaide, South Australia. Fax: 08-8177 0133 Computing & Network solutions. Mobile:0403 0405 83 From olivier.lafit at EADS.COM Wed Apr 19 00:59:16 2006 From: olivier.lafit at EADS.COM (Olivier LAFIT) Date: Wed, 19 Apr 2006 09:59:16 +0200 Subject: Problem using index files on Unix Message-ID: Hello, I still have the problem with index files on Unix TRU64. I have try all options of the ShpTree utility to generate my index files, but no one works. I get sometimes a core file created by program "shp2img" : signal Floating point exception at >*[msRectOverlap, 0x1200357a4] fbne $f12, 0x1200357b0 (dbx) where > 0 msRectOverlap(0x3ff800e3634, 0x11fffbb50, 0x4, 0x4, 0x3ffc00801a0) [0x1200357a4] 1 (unknown)() [0x120061fb0] 2 (unknown)() [0x120062188] 3 (unknown)() [0x120062188] 4 (unknown)() [0x120062188] 5 msSearchDiskTree(0xc04e99999999999b, 0x405cedb6ed677709, 0x40501249129888f8, 0x14007a6c0, 0x4050124900000000) [0x1200622c8] 6 msSHPWhichShapes(0xc060e83a7daa4fca, 0xc04e99999999999b, 0x405cedb6ed677709, 0x40501249129888f8, 0x3ff0000000000000) [0x12005a160] 7 msLayerWhichShapes(0x14001b4c0, 0x1, 0xc060e83a7daa4fca, 0xc04e99999999999b, 0x405cedb6ed677709) [0x120049ad0] 8 msDrawVectorLayer(0x0, 0x11fffc038, 0x12002426c, 0x14001f000, 0x14001f000) [0x1200247a4] 9 msDrawLayer(0x14001b4c0, 0x0, 0x140003828, 0x0, 0x100000000) [0x120024420] 10 msDrawMap(0x3ff0000000000000, 0x4000000000000000, 0x12000e478, 0x11fffc018, 0x38) [0x120023594] 11 main(0x14001b480, 0x3ffc00800c0, 0x140048700, 0x0, 0x12000e260) [0x12000e9e0] Any ideas ? Olivier ----- R?achemin? par Olivier LAFIT/MCS/FR le 19/04/2006 09:47 ----- Olivier LAFIT Pour : MAPSERVER-USERS at LISTS.UMN.EDU 13/04/2006 cc : 18:50 Objet : Problem using index files on Unix Hello, I am using index files (.qix generated with shpTree) to display quickly shapes. It works fine with Linux and Windows, but with Unix my MapServer failed to draws the shapes : the main map is correctly displayed, but when I zoom in, shapes disappear, and I get only the background. Every things works when I delete every index files, but slowly... I'm using MapServer 4.2.5 and UNIX : DEC Alpha. OSF1 5.1. Does anybody have an idea ? Olivier Lafit From listuser at HERZSYS.DE Wed Apr 19 01:05:13 2006 From: listuser at HERZSYS.DE (listuser HH) Date: Wed, 19 Apr 2006 10:05:13 +0200 Subject: Java Mapscript - querybyattribut SOLVED In-Reply-To: Message-ID: Hi Benedikt, thanks for the interest. I have the encoding problem when I try to "getLayerByName()". I could get around the problem at this point but I think I will have the problem later again. So testing is easy - I just use a simple layer with the name "Regierungspr?sidien". When I use this string to get the layer by name it doesn't work. To be sure I tried to check this string with the name of the layer which I get from map.getLayer(0) - which is equal to the other. My thought was to convert the string before using it in mapscript functions. Java brings two things to convert strings - perhaps there are more. 1. make a new String from the old in a special encoding - e.g. --> new String(oldString.getBytes(), "ISO8859-1") 2. convert chars to different encoding - e.g. [snip] --> CharToByteISO8859_1 conv4ISO = new CharToByteISO8859_1(); char[] cs = layerName.toCharArray(); conv4ISO.convert(charArray, 0, charArray.length, byteArray, 0, byteArray.length); new String(byteArray); Because I'm not sure about which encodings are used at wich stpes I tried some combinations but without luck. I think my code from eclipse is CP1252. In the eclipse editor properties I changed this to UTF8 and ISO which also didn't work. I tried to I'm not sure what happens when mapscript use JNI. Perhaps the string gets converted to UTF8. If this is right I see no chance for me to change the string in java because it gets converted even if it is already UTF8. I have to say that I'm not familiar with this encoding things. If someone has an advice I will going on testing. I think it will be a good thing to have "UTF-8 -> ISO-8859-Conversion" like you suggested. At the moment I can't do this because I have no possibility to compile the c code. Best regards, Norbert Benedikt Rothe wrote: >Umberto, Nicol, Norbert, Oliver > >Umberto wrote > > >>try to run the attached Java source. >> >> >... > > >>"S?dliche Weinstra?e" as the second it will work! >> >> > >In my copy of your mail the queryByAttribute.java-program is not >attached. Could somebody post program including testdata (or >download-url) ? > >I 'd like to study a running example, because I don't understand >how umlaut-conversion from Java to Mapserver-kernel can run >properly anyway and I'd like to understand it :-) >----------- >It seems Norbert found a kind of answer to his question > > >>is there a way to do the converion in java dircetly? >> >> >He suggested > > >>Try to convert the String before you set the expression in your code(-> >> >> >String( byte > > >>bytes[], String ) >> >> >Could you be more precisly? I do not understand what must be converted to >what. >How must this be applied to convert a Java-String to a proper >"Mapserver-String" (?) >----------- >Is somebody willing to try to add an "UTF-8 -> ISO-8859-Conversion" in >mapscript_wrap.c for testpurposes? (Even in the case it works, this would >not be a real solution because it bypasses swig.) > >Benedikt > > >UMN MapServer Users List schrieb am >14.04.2006 15:23:51: > > > >>Olivier, >>I GOT IT! >> >>try to run the attached Java source. If you pass it two arguments the >>first being the path to the map file and the second the string to >>search for and you pass >>"S?dliche Weinstra?e" as the second it will work! >> >>So why does it fail when "S?dliche Weinstra?e" is inside the Java >>code? That is a problem that only happens when javac compiles the >>source: javac translates all characters to unicode and in doing that >>it gets the german characters wrong. >>To solve this give javac the following option: -source 1.4 >> >>For more see this link: >>http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5046139 >> >>On 4/13/06, Umberto Nicoletti wrote: >> >> >>>This is probably not related only to java mapscript, so please read >>> >>> >on. > > >>So I was wrong...but I'll leave the proof to the reader ;-) >> >>Best regards, >>Umberto >> >> >> >>>On 3/30/06, Oliver Wesp wrote: >>> >>> >>>>Dear List, >>>> >>>>I' struggling with queryByAttributes on an attribute field with >>>> >>>> >german > > >>>>umlauts using java mapscript. >>>>The odd thing is that the same thing works fine with php mapscript >>>> >>>> >and > > >>>>when I use expressions in my mapfile. I'm using a shapefile as >>>> >>>> >>datasource. >> >> >>>Could someone of the other mapserver developers shed some light on >>> >>> >>this issue? >> >> >>>I have a clue to give: php mapscript is using a different regex >>>library and this explains why the match does not happen for Java >>>mapscript, while it does happen in php mapscript. If I am right also >>>the mapserver cgi should be affected and possibly all other mapscript >>>too. >>> >>>It would be very interesting if someone could report on similar >>>experiences with the cgi-bin version of mapserver. >>> >>>Thanks, >>>Umberto >>> >>> >>> >>>>Here is what I do: >>>> >>>>layer.queryByAttributes(map,"KREIS_NAME", "/S?dliche Weinstra?e/", >>>>mapscriptConstants.MS_MULTIPLE); >>>>layer.open(); >>>>System.out.println( "Result Count: " +layer.getNumResults() ); >>>>layer.close(); >>>> >>>>The result is always null while replacing the qstring with something >>>>that doesn't contain special characters (e.g. >>>>'Mainz-Bingen') works fine. >>>> >>>>As noted above the following layer definition in a mapfile works >>>> >>>> >fine > > >>>>LAYER >>>> NAME kreis >>>> STATUS DEFAULT >>>> TYPE polygon >>>> DATA "/tmp/subset" >>>> TEMPLATE "kreis.html" >>>> CLASSITEM KREIS_NAME >>>> CLASS >>>> NAME Boundary >>>> COLOR 128 128 0 >>>> OUTLINECOLOR 0 0 0 >>>> EXPRESSION /S?dliche Weinstra?e/ >>>> END >>>>END >>>> >>>> >>>>but this does not: >>>> >>>>layer.setClassitem("KREIS_NAME"); >>>>classObj cl = new classObj(layer); >>>>cl.setName("Classname"); >>>>cl.setExpression("/S?dliche Weinstra?e/"); >>>> >>>>I use Mapserver 4.8.1 on W2k, Tomcat 5.0.28. >>>> >>>>I can provide some sample data, just in case someone likes to >>>> >>>> >reproduce. > > >>>>Any help is appreciated. >>>> >>>>best regards >>>>Oliver >>>>-- >>>>Dipl.-Geogr. Oliver Wesp >>>>Gesellschaft fuer geografische Datenverarbeitung >>>>Binger Strasse 49-51 >>>>D-55218 Ingelheim >>>>fon: +49 6132 714818 >>>>fax: +49 6132 714828 >>>>http: www.gdv.com >>>> >>>> >>>> > > > From albrecht at FIELAX.DE Wed Apr 19 01:21:12 2006 From: albrecht at FIELAX.DE (Sebastian Albrecht) Date: Wed, 19 Apr 2006 08:21:12 +0000 Subject: Attribute field missing when querying PostGIS DB using PHP/MapScript Message-ID: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: kundenserver.de abuse at kundenserver.de login:0d7df878e47e269a7b9683f17acbb849 Hello everybody, when querying a PostGIS layer using PHP/Mapscript queryByRect and reading the selected shape using getShape the last attribute field of the layer is always missing in the values-Array of the shape. This is my data string for PostGIS: DATA "tree.position FROM ( SELECT oid, position, size, age, observer, village FROM tree_data ^^^^^^^ WHERE observer='albrecht' ) AS tree USING srid=4326 USING UNIQUE oid" The values-Array of the shape from query result (var_dump): ["values"]=> array(5) { ["oid"]=> string(8) "10209993" ["position"]=> string(50) "0101002020E6100100849ECDAACF541540718FA20F5DC44A40" ["size"]=> string(1) "5" ["age"]=> string(1) "3" ["observer"]=> string(8) "albrecht" >>>>> "village" field missing here :( <<<<< } Using ethereal (network capture tool) I found out the database SQL request of MapServer is correct (including "village"). My current solution is to add one more field to the SQL line > SELECT oid, position, size, age, observer, village, ' ' AS dummy so the missing field is "dummy" and not "village". Is that behaviour known and is there an explanation for the problem? Best regards, Sebastian -- ---------------------------------------------------------------- FIELAX Gesellschaft fuer wissenschaftliche Datenverarbeitung mbH Schifferstr. 10-14, 27568 Bremerhaven, GERMANY Sebastian Albrecht Phone: +49 (0)471 30015-16 Fax: +49 (0)471 30015-22 EMail: albrecht at fielax.de ---------------------------------------------------------------- From manninside at YAHOO.COM Wed Apr 19 03:11:20 2006 From: manninside at YAHOO.COM (Mandar sarlashkar) Date: Wed, 19 Apr 2006 03:11:20 -0700 Subject: Maperver 4.8.2, Apache 2.2.0 - ScaleBar Problem In-Reply-To: <4ac992660604180343w5cf7403al6a186931852dc621@mail.gmail.com> Message-ID: Hi Jorge and others ! Jorge you were right - The CGI request was giving error because of Map File ... But the problem is strange (for me...) When I keep the STATUS embed of the SCALEBAR the CGI request is not processed and gives error.... But if the STATUS is ON ... everything goes fine.... SCALEBAR IMAGECOLOR 255 255 255 LABEL size tiny COLOR 255 255 255 #0 0 0 OUTLINECOLOR 0 0 0 END STATUS embed OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 255 50 50 COLOR 50 50 255 TRANSPARENT TRUE UNITS meters INTERVALS 2 SIZE 200 .5 STYLE 1 POSITION lc END Why is it so...??? Thnaks you... Mandy --------------------------------- Blab-away for as little as 1?/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice. -------------- next part -------------- An HTML attachment was scrubbed... URL: From manninside at YAHOO.COM Wed Apr 19 03:11:34 2006 From: manninside at YAHOO.COM (Mandar sarlashkar) Date: Wed, 19 Apr 2006 03:11:34 -0700 Subject: Maperver 4.8.2, Apache 2.2.0 - ScaleBar Problem In-Reply-To: <4ac992660604180343w5cf7403al6a186931852dc621@mail.gmail.com> Message-ID: Hi Jorge and others ! Jorge you were right - The CGI request was giving error because of Map File ... But the problem is strange (for me...) When I keep the STATUS embed of the SCALEBAR the CGI request is not processed and gives error.... But if the STATUS is ON ... everything goes fine.... SCALEBAR IMAGECOLOR 255 255 255 LABEL size tiny COLOR 255 255 255 #0 0 0 OUTLINECOLOR 0 0 0 END STATUS embed OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 255 50 50 COLOR 50 50 255 TRANSPARENT TRUE UNITS meters INTERVALS 2 SIZE 200 .5 STYLE 1 POSITION lc END Why is it so...??? Thnak you... Mandy --------------------------------- How low will we go? Check out Yahoo! Messenger?s low PC-to-Phone call rates. -------------- next part -------------- An HTML attachment was scrubbed... URL: From msb at GATEHOUSE.DK Wed Apr 19 05:05:55 2006 From: msb at GATEHOUSE.DK (Michael S. Birkmose) Date: Wed, 19 Apr 2006 14:05:55 +0200 Subject: Parsing GetCapabilities in MapServer? Message-ID: Hi, I'm currently building a WMS client using mapserver. The WMS client will be part of an application where the user can add his own WMS layers by inputting the XML document received when calling the GetCapabilities method in a WMS service. Does anyone know of a tool that can parse this XML document or is it possible to do using php mapscript? Best regards, Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: From godwin.liz at GMAIL.COM Wed Apr 19 05:34:42 2006 From: godwin.liz at GMAIL.COM (Liz Godwin) Date: Wed, 19 Apr 2006 08:34:42 -0400 Subject: Maperver 4.8.2, Apache 2.2.0 - ScaleBar Problem In-Reply-To: <20060419101134.68199.qmail@web50815.mail.yahoo.com> Message-ID: A scalebar status of embed means that it is embedded in the map. For a cgi mode=scalebar to work, the status must be on. On 4/19/06, Mandar sarlashkar wrote: > Hi Jorge and others ! > > Jorge you were right - The CGI request was giving error because of Map File > ... > But the problem is strange (for me...) > > When I keep the STATUS embed of the SCALEBAR the CGI request is not > processed and gives error.... > > But if the STATUS is ON ... everything goes fine.... > > > SCALEBAR > IMAGECOLOR 255 255 255 > LABEL > size tiny > COLOR 255 255 255 #0 0 0 > OUTLINECOLOR 0 0 0 > END > > STATUS embed > OUTLINECOLOR 0 0 0 > BACKGROUNDCOLOR 255 50 50 > COLOR 50 50 255 > TRANSPARENT TRUE > UNITS meters > INTERVALS 2 > SIZE 200 .5 > STYLE 1 > POSITION lc > END > > > Why is it so...??? > > Thnak you... > > Mandy > > > > ________________________________ > How low will we go? Check out Yahoo! Messenger?s low PC-to-Phone call rates. > > From asimpson at I-55.COM Wed Apr 19 05:59:16 2006 From: asimpson at I-55.COM (Simpson) Date: Wed, 19 Apr 2006 07:59:16 -0500 Subject: MapScript Save to GeoTiff or Tiff/worldfile In-Reply-To: Message-ID: In MapScript 4.8.1 with GDAL 1.3.1.0, is there anything special one has to do to save image to GeoTiff or to a Tiff with worldfile? In the GeoTiff case, the tiff is created but no CRS info when I run a gdalinfo against it. In the Tiff with worldfile, no worldfile is created. Thanks for any help, Drew. ============= mapfile clip ===================== MAP EXTENT 764355.44479 3337347.51664 834777.592259 3402902.747157 FONTSET "xxx" IMAGECOLOR 156 188 217 IMAGETYPE GTIFWLD SYMBOLSET "xxx" SIZE 2347 2185 STATUS ON UNITS METERS NAME "DIPEX3" OUTPUTFORMAT NAME "GTIFWLD" MIMETYPE "image/tiff" DRIVER "GDAL/GTiff" EXTENSION "tif" IMAGEMODE "PC256" TRANSPARENT FALSE FORMATOPTION "WORLDFILE=YES" END PROJECTION "init=epsg:32615" END ... END ============= gdalinfo clip ======================= Driver: GTiff/GeoTIFF Size is 2347, 2185 Coordinate System is `' Corner Coordinates: Upper Left ( 0.0, 0.0) Lower Left ( 0.0, 2185.0) Upper Right ( 2347.0, 0.0) Lower Right ( 2347.0, 2185.0) Center ( 1173.5, 1092.5) Band 1 Block=2347x3 Type=Byte, ColorInterp=Palette Color Table (RGB with 256 entries) 0: 156,188,217,255 1: 0,0,0,255 ... -------------- next part -------------- An HTML attachment was scrubbed... URL: From b.vdeijnden at AGI.RWS.MINVENW.NL Wed Apr 19 05:42:18 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Wed, 19 Apr 2006 14:42:18 +0200 Subject: Parsing GetCapabilities in MapServer? Message-ID: Hi, Chameleon has functionality for this called wmsparse. It is available as a CGI or as a PHP module, and stores the parsed info in dbf files. See: For the CGI: chameleon/htdocs/common/wmsparse For the PHP code around it: chameleon/htdocs/common/phpwms and for the PHP module: chameleon/ext Chameleon is available here: http://www.maptools.org/chameleon For more questions, use the chameleon e-mail list. Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Michael S. Birkmose Verzonden: woensdag 19 april 2006 14:06 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] Parsing GetCapabilities in MapServer? Hi, I'm currently building a WMS client using mapserver. The WMS client will be part of an application where the user can add his own WMS layers by inputting the XML document received when calling the GetCapabilities method in a WMS service. Does anyone know of a tool that can parse this XML document or is it possible to do using php mapscript? Best regards, Michael Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Wed Apr 19 06:26:00 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 19 Apr 2006 09:26:00 -0400 Subject: Maperver 4.8.2, Apache 2.2.0 - ScaleBar Problem In-Reply-To: <20060419101120.29643.qmail@web50803.mail.yahoo.com> Message-ID: Mandar sarlashkar wrote: > Hi Jorge and others ! > > Jorge you were right - The CGI request was giving error because of Map > File ... > But the problem is strange (for me...) > > When I keep the STATUS embed of the SCALEBAR the CGI request is not > processed and gives error.... Mandy, Is there any chance you are running MapServer 4.8.1? I think there was a serious bug with embedded scalebars that was fixed in 4.8.2. Hmm, looking more closely the bug may have been in 4.8.2 and fixed in 4.8.3. It isn't exactly clear to me from the history file. So I would encourage you to ensure you are running at least 4.8.3. If the problem persists then submit a detailed bug report. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From warmerdam at POBOX.COM Wed Apr 19 06:35:15 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 19 Apr 2006 09:35:15 -0400 Subject: Performance hints please In-Reply-To: <200604191708.08275.sdc@sdc.com.au> Message-ID: Stephen Davies wrote: > Thanks for the feedback. I have been distracted by easter and other > priorities and have only just got back to this question. > Here is a sample explain output. I think it says that my DB structure is > OK. (The statement is taken from a log of a mapserver session.) > > The biggest geometry table in this database has only 166 rows. > > I don't know whether the connection is persistent or not. How does > mapserv manage connections? Stephen, Persistent connections are not important for PostGIS. Connection cost for postgres is very modest. The situation is very different for Oracle or any SDE fronted database. > The TIFF rasters that I am using are included in their entirety. That > is, the map extent is the same or bigger than the image. Are overviews > still relevant in this context? It depends how large the rasters are. If they are large then this is exactly the circumstance in which overviews would help a lot. When I say "if they are large" I really mean are they substantially higher resolution then the map image you want to generate. > What is the significance of the OID use? This table (and all others) has > a proper unique key. I'm afraid I don't know anything about this. 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 OSGF, http://osgeo.org From Jukka.Rahkonen at MMMTIKE.FI Wed Apr 19 06:52:47 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Wed, 19 Apr 2006 16:52:47 +0300 Subject: Mapserver as a WMS client behind a proxy (MS4W) Message-ID: Hello, I would like to run my Mapserver as WMS client but I guess I am having problems in getting through our proxy server. I am using MS4W installation (1.5.0) on a desktop inside our intranet and so far I have done the following: I have commented out these lines from Apache httpd.conf LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_connect_module modules/mod_proxy_connect.so LoadModule proxy_http_module modules/mod_proxy_http.so LoadModule proxy_ftp_module modules/mod_proxy_ftp.so Then I have added this directive to 'Main' server configuration section of the httpd.conf: ProxyRemote * http://proxy.xxx.xx:800 However, I still cannot connect to external WMS services. MapLab application gives this error message DrawMap: MapServer WMS Error: WMS GetMap request failed for layer 'ORTO' (Status -7: Failed connect to wms.xxx.xx:80; No error) Does anybody have suggestion about what to try next? Proxy address is correct, I can reach the external WMS service for example through browser, and mapfile has been tested to be valid in a no-proxy environment. -Jukka Rahkonen- From Artur.Skalski at ACXIOM.COM Wed Apr 19 06:57:53 2006 From: Artur.Skalski at ACXIOM.COM (Skalski Artur - askals) Date: Wed, 19 Apr 2006 15:57:53 +0200 Subject: queryByAttributes mysql layer problem Message-ID: Hi All not so long ago I was asking for some advice regarding queryByAttributes on large datasets (1 000 000 records). Thanks againf for all tips! I finaly decided to export data to mysql, and now I'm facing another problem concerning doing queryByAttributes on the 1000000 record layer. I try to do it as simple as possible, using phpmapscript: the code is like: @$qLayer->queryByAttributes($qFiled, $qValue, MS_MULTIPLE); it works well on smaler mysql tables as well as on TAB's and SHP files BUT when I do qery on this largest table i can see in the Task Manager that at first mysql proces starts and it is working for a while but then it dies and php-cgi proces goes for 99% of the CPU usage the it dies too, and no results are returned. When I do this query/selection usig just SQL in phpMyAdmin i can get the query result very fast, like 2 seconds. I can display the largest mysql table on the map, I can query it using queryBypoint and it gives me good resluts, but somehow querybyattributes gives no results - WHY?!! I'm using mapserver 4.6 with php/mapscipt 4.6, php is as php-cgi, and it runs on IIS. Can someone please help?!!! What can be the cause of this? Best Regards Artur ************************************************************************* The information contained in this communication is confidential, is intended only for the use of the recipient named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please resend this communication to the sender and delete the original message or any copy of it from your computer system. Thank you. ************************************************************************* -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Wed Apr 19 06:59:47 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 19 Apr 2006 09:59:47 -0400 Subject: Problem using index files on Unix In-Reply-To: Message-ID: Olivier LAFIT wrote: > Hello, > I still have the problem with index files on Unix TRU64. > I have try all options of the ShpTree utility to generate my index files, > but no one works. > > I get sometimes a core file created by program "shp2img" : > > signal Floating point exception at >*[msRectOverlap, 0x1200357a4] > fbne $f12, 0x1200357b0 > (dbx) where >> 0 msRectOverlap(0x3ff800e3634, 0x11fffbb50, 0x4, 0x4, 0x3ffc00801a0) > [0x1200357a4] > 1 (unknown)() [0x120061fb0] > 2 (unknown)() [0x120062188] > 3 (unknown)() [0x120062188] > 4 (unknown)() [0x120062188] > 5 msSearchDiskTree(0xc04e99999999999b, 0x405cedb6ed677709, > 0x40501249129888f8, 0x14007a6c0, 0x4050124900000000) [0x1200622c8] > 6 msSHPWhichShapes(0xc060e83a7daa4fca, 0xc04e99999999999b, > 0x405cedb6ed677709, 0x40501249129888f8, 0x3ff0000000000000) [0x12005a160] > 7 msLayerWhichShapes(0x14001b4c0, 0x1, 0xc060e83a7daa4fca, > 0xc04e99999999999b, 0x405cedb6ed677709) [0x120049ad0] > 8 msDrawVectorLayer(0x0, 0x11fffc038, 0x12002426c, 0x14001f000, > 0x14001f000) [0x1200247a4] > 9 msDrawLayer(0x14001b4c0, 0x0, 0x140003828, 0x0, 0x100000000) > [0x120024420] > 10 msDrawMap(0x3ff0000000000000, 0x4000000000000000, 0x12000e478, > 0x11fffc018, 0x38) [0x120023594] > 11 main(0x14001b480, 0x3ffc00800c0, 0x140048700, 0x0, 0x12000e260) > [0x12000e9e0] Olivier, I would suspect a problem with Alpha support. Are you generating the index files on another system and transporting them to the TRU64 system for use? I think that would be the preferred approach. If you can provide details in a bug report *and* an ssh account on your system, then I would be willing to try and debug this problem, at least briefly. I am pretty confident that index files work properly on some 64 bit systems so problems should not be insurmountable. 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 OSGF, http://osgeo.org From b.vdeijnden at AGI.RWS.MINVENW.NL Wed Apr 19 06:59:28 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Wed, 19 Apr 2006 15:59:28 +0200 Subject: Mapserver as a WMS client behind a prox y (MS4W) Message-ID: Mapserver WMS client uses curl, and curl listens to the http_proxy environment variable. You need to set your http_proxy variable using SetEnv in the httpd.conf and restart Apache. SetEnv "http_proxy" "http://myproxy.com" Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Rahkonen Jukka Verzonden: woensdag 19 april 2006 15:53 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] Mapserver as a WMS client behind a proxy (MS4W) Hello, I would like to run my Mapserver as WMS client but I guess I am having problems in getting through our proxy server. I am using MS4W installation (1.5.0) on a desktop inside our intranet and so far I have done the following: I have commented out these lines from Apache httpd.conf LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_connect_module modules/mod_proxy_connect.so LoadModule proxy_http_module modules/mod_proxy_http.so LoadModule proxy_ftp_module modules/mod_proxy_ftp.so Then I have added this directive to 'Main' server configuration section of the httpd.conf: ProxyRemote * http://proxy.xxx.xx:800 However, I still cannot connect to external WMS services. MapLab application gives this error message DrawMap: MapServer WMS Error: WMS GetMap request failed for layer 'ORTO' (Status -7: Failed connect to wms.xxx.xx:80; No error) Does anybody have suggestion about what to try next? Proxy address is correct, I can reach the external WMS service for example through browser, and mapfile has been tested to be valid in a no-proxy environment. -Jukka Rahkonen- Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From Jukka.Rahkonen at MMMTIKE.FI Wed Apr 19 07:15:41 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Wed, 19 Apr 2006 17:15:41 +0300 Subject: Mapserver as a WMS client behind a prox y (MS4W) Message-ID: Just great, Bart, and million thanks for you!!! Regards, -Jukka- ________________________________ L?hett?j?: UMN MapServer Users List puolesta: Eijnden, B. van den (Bart) L?hetetty: ke 19.4.2006 16:59 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: Re: [UMN_MAPSERVER-USERS] Mapserver as a WMS client behind a prox y (MS4W) Mapserver WMS client uses curl, and curl listens to the http_proxy environment variable. You need to set your http_proxy variable using SetEnv in the httpd.conf and restart Apache. SetEnv "http_proxy" "http://myproxy.com" Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Rahkonen Jukka Verzonden: woensdag 19 april 2006 15:53 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] Mapserver as a WMS client behind a proxy (MS4W) Hello, I would like to run my Mapserver as WMS client but I guess I am having problems in getting through our proxy server. I am using MS4W installation (1.5.0) on a desktop inside our intranet and so far I have done the following: I have commented out these lines from Apache httpd.conf LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_connect_module modules/mod_proxy_connect.so LoadModule proxy_http_module modules/mod_proxy_http.so LoadModule proxy_ftp_module modules/mod_proxy_ftp.so Then I have added this directive to 'Main' server configuration section of the httpd.conf: ProxyRemote * http://proxy.xxx.xx:800 However, I still cannot connect to external WMS services. MapLab application gives this error message DrawMap: MapServer WMS Error: WMS GetMap request failed for layer 'ORTO' (Status -7: Failed connect to wms.xxx.xx:80; No error) Does anybody have suggestion about what to try next? Proxy address is correct, I can reach the external WMS service for example through browser, and mapfile has been tested to be valid in a no-proxy environment. -Jukka Rahkonen- Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From paul at DUGAS.CC Wed Apr 19 08:59:52 2006 From: paul at DUGAS.CC (Paul Dugas) Date: Wed, 19 Apr 2006 11:59:52 -0400 Subject: Antialiasing Again Message-ID: I cannot seem to get MapServer-4.8.3 to draw antialiases lines. It is working for polygons, but not for polylines. I got this working a long time ago for another project but can't seem to this time. What I'm really trying to accomplish is a smoothed two-tone line. I've tried using ELLIPSE and CARTOLINE symbols with no success. Would someone be willing to share a small working example I can start from? Thanks in advance, Paul -- Paul Dugas, Computer Engineer Dugas Enterprises, LLC paul at dugas.cc phone: 404-932-1355 522 Black Canyon Park http://dugas.cc fax: 866-751-6494 Canton, GA 30114 USA -- On site at GDOT's W.Annex, 404-463-2860 x199 -- This e-mail and any attachments are confidential. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From Artur.Skalski at ACXIOM.COM Wed Apr 19 10:17:39 2006 From: Artur.Skalski at ACXIOM.COM (Skalski Artur - askals) Date: Wed, 19 Apr 2006 19:17:39 +0200 Subject: mysql querybyattributes Message-ID: Can someone point me how to do eficiently querybyattributes on mysql layers using php/mapscript? The layer has over 1 000 000 records (I don't want to split it unless...) can be displayed and queried by point when clicking on map, those things work fast but when it comes to querybyattributes I get error message: "Execution time of 30 seconds exceded" I know that i can set execution time to 'no limit' but it's no use since user will has to wait that long for each query results. Please help! this is my map file with this problematic layer: LAYER GROUP searchableH NAME address METADATA "DESCRIPTION" "address" "RESULT_FIELDS" "ADDRESS" END TYPE POINT CONNECTIONTYPE OGR CONNECTION "vdf/address.ovf" DATA "address" STATUS ON PROJECTION "init=epsg:4326" #lon/latwgs84 END TEMPLATE "address.html" CLASS NAME "address" STYLE SYMBOL 'C:\Inetpub\wwwroot\mapserver\test\etc\pkp.gif' END END END and piece of php code that does the query: $qLayer = $gpoMap->GetLayerByName($HTTP_FORM_VARS["SearchedLayer"]); $qFiled = $HTTP_FORM_VARS["SearchedField"]; $qValue = strtoupper($HTTP_FORM_VARS["SearchedValue"]); $qLayer->queryByAttributes($qFiled, $qValue, MS_MULTIPLE); what can be wrong??? Best Regards Artur ************************************************************************* The information contained in this communication is confidential, is intended only for the use of the recipient named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please resend this communication to the sender and delete the original message or any copy of it from your computer system. Thank you. ************************************************************************* -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Wed Apr 19 10:20:37 2006 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Doyon, Jean-Francois) Date: Wed, 19 Apr 2006 13:20:37 -0400 Subject: Problem with projection origin Message-ID: Hello, I have a mapfile which contains layers that are from remote WMS' ... It declares a global PROJECTION of epsg:42304 ... As well as "wms_srs" "EPSG:42304" on the WMS client layers. There is one local layer with proj=latlong. Now, in my interface, I move around the map by center and scale, so using mapxy= and scale= through the CGI. Now, for some reason, when I ask for mapxy=0 0 (The projection's origin, which is 95W 49N), and a specific scale, the bounding box for the resulting map comes out all wrong: 11115156.724629 3706599.410247 11296343.293455 3867465.990045 [atlas at pcwebmapdev english]$ invproj +init=epsg:42304 11115156.724629 3706599.410247 0d29'49.576"W 0d28'44.742"N 11296343.293455 3867465.990045 0d29'22.989"E 0d28'45.701"S If I do the same on a map that has no explicit projection declaration (because all the data is in the same system), and only local data (shapefiles), this works fine. So somehow this problem seems to be specific to either the fact there's PROJECTION objects, or maybe because it's acting as a WMS client. Anyone run into this before, or have an idea what might be causing it? Thanks! Jean-Fran?ois Doyon Internet Service Development and Systems Support / Sp?cialiste de d?veloppements internet et soutien technique Canada Centre for Remote Sensing/Centre Canadien de t?l?d?tection Natural Resources Canada/Ressources Naturelles Canada http://atlas.gc.ca Tel./T?l.: (613) 992-4902 Fax: (613) 947-2410 From warmerdam at POBOX.COM Wed Apr 19 11:21:30 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 19 Apr 2006 14:21:30 -0400 Subject: mysql querybyattributes In-Reply-To: <7D1D1DD803D83641A6DEA6F9F428DEE285C34D@warmsx02.Corp.Acxiom.net> Message-ID: Skalski Artur - askals wrote: > Can someone point me how to do eficiently querybyattributes on mysql > layers using php/mapscript? > > The layer has over 1 000 000 records (I don't want to split it > unless...) can be displayed and queried by point when clicking on map, > those things work fast but when it comes to querybyattributes I get > error message: > "Execution time of 30 seconds exceded" > > I know that i can set execution time to 'no limit' but it's no use > since user will has to wait that long for each query results. ... > and piece of php code that does the query: > > $qLayer = $gpoMap->GetLayerByName($HTTP_FORM_VARS["SearchedLayer"]); > $qFiled = $HTTP_FORM_VARS["SearchedField"]; > $qValue = strtoupper($HTTP_FORM_VARS["SearchedValue"]); > > $qLayer->queryByAttributes($qFiled, $qValue, MS_MULTIPLE); Artur, This is a bit complicated due to the three levels of abstraction. I presume currently MapServer is reading all the features and applying the query itself. Pretty much a worst case when you have a lot of records. The next level down is the VRT layer. When you use an .ovf file, OGR "fakes" a virtual datasource on top of the lower level non-spatial mysql OGR driver. We don't want our filters evaluated at this level either. The bottom level is the OGR mysql driver which knows how to pass attribute queries on to MySQL as part of a select statement WHERE clause. Presumably if we can make this happen things will be fast to do the query. The trick with OGR connections to pass the filter through to OGR is to use a query expression starting with WHERE. So you might do something like: expr = 'WHERE ' + $qFiled + ' = ' + $qValue $qLayer->queryByAttributes(null,$expr,MS_MULTIPLE); (forgive my incorrect PHP syntax, I'm just trying to get the idea accross). Starting a filter with WHERE for the OGR provider tells it that you want it passed to OGR not evaluated by MapServer. However, even if you do all this, you are still likely to get poor performance fetching back the query result features (possibly even getting the wrong features) if you don't have a primary integer index on the original MySQL table as OGR needs this for persistent feature ids. Note, it may be necessary to upgrade to the very latest OGR code to get the above to work. I have made a few recent fixes in this area. Try to use the GDAL 1.3.2b1 snapshot if you want to pursue this. Generally speaking, using OGR datasources through the VRT layer and ODBC has a tendency to problems for queries. Going to a one pass approach instead of the current two pass approach would be a big help in this regard. 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 OSGF, http://osgeo.org From pcreso at PCRESO.COM Wed Apr 19 13:32:40 2006 From: pcreso at PCRESO.COM (Brent Wood) Date: Wed, 19 Apr 2006 13:32:40 -0700 Subject: Mapserver performance issue: why so much slower? In-Reply-To: <200604191708.08275.sdc@sdc.com.au> Message-ID: Hi, I have prototyped some background map data to be served by Mapserver. There are about 7Gb of Postgis data and 4Gb of images, The images comprise 3 zoom layers, of 2, 100 & 800 tiles each, each addressed via a shapefile tileindex. Just using the basic CGI mapserv application & a mapfile. The prototype system is an AMD 64bit 3500+ cpu, with 1Gb memory & 2 80Gb SATA drives. The PostGIS database is on a software RAID0 partition with a nominal 100Mb/sec I/O. It is running SUSE 9.3 A64 with all the GIS related apps compiled from scratch so they are all 64bit apps. I'm more than pleased with the performance. I have only ftp & remote Postgres access to the production server... (don't ask !!!!! :-) so am limited in what I can do (even more than my normal limitations). The server this is to be implemented on is running a Java digital asset management application as an image database under Windows 2k3 server. Mapserver is implemented only as a Java mapscript capability, embedded in the application, to provide a location based facility for selecting images. The server is supposedly an Intel 3.5Ghz hyperthreaded cpu with 3.5Gb memory & a reasonable SCSI RAID array. Postgres performance seems fine, so I don't think it is a database performance issue (but I could be wrong about this- our tests have been not been for large geometry objects such as are retrieved by mapserver, but for large numbers of small tuples) Mapserver, however, is very slow. It is taking about 5x as long to render the maps with only 20% of the data being implemented in the mapfile & no rasters. Also, unlike the Linux box, repeat accesses/redraws do not speed up compared to the original (Linux vs Windows caching perhaps?) Does anyone have any suggestions/ideas about the performance of Java mapscript vs cgi mapserver, Linux 64bit vs Windows 32bit, Intel vs AMD, etc. There are so many points of difference, & I'd like to narrow my search for the basic cause/solution if at all possible. We may be able to stick a Linux A64 box as the postgis/mapserver server, but if it is a Java mapscript vs CGI mapserve issue, this may not do anything to help. Running a separate WMS Linux mapserver server & the image db as a Javascript WMS client will (as I understand it) remove virtually all the load from the Windows box, so may be a suitable solution. Any comments on this approach? Is it feasible with Java mapscript? Thanks, Brent Wood From kris_rock82 at YAHOO.COM Wed Apr 19 13:52:22 2006 From: kris_rock82 at YAHOO.COM (kris rock) Date: Wed, 19 Apr 2006 13:52:22 -0700 Subject: problem dynamically creating raster layers Message-ID: Hello all, i am trying to add 2 raster layers dynamically from my php-mapscript. The problem i am facing is these rasters layers are displayed on top of the other vector layers which are in the mapfile, but when i add these raster layers in the mapfile they display correctly, i am not sure if i am doing anything wrong, this is my mapscript $rasterlayer = ms_newLayerObj($map); $rasterlayer->set(name,raster1); $rasterlayer->set(type,MS_LAYER_RASTER); $rasterlayer->set(status,MS_ON); $rasterlayer->set(data,"somepath"); $rasterlayer = ms_newLayerObj($map); $rasterlayer->set("name","raster3"); $rasterlayer->set("type",MS_LAYER_RASTER); $rasterlayer->set("status",MS_ON); $rasterlayer->set(data,"somepath"); //all the vector layers are displayed after this with their properties set one more problem i have with this is, i have to create a layer object twice, i give the same name or a different doesnt matter but if i dont create the layer object again it throws an error saying the first raster layer(raster1 in my case) failed to draw .. Thanks for your time .... --kris --------------------------------- How low will we go? Check out Yahoo! Messenger?s low PC-to-Phone call rates. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cjohnson at REFRACTIONS.NET Wed Apr 19 13:56:46 2006 From: cjohnson at REFRACTIONS.NET (Clint Johnson) Date: Wed, 19 Apr 2006 13:56:46 -0700 Subject: Postgis Gist Index In-Reply-To: <3971891.post@talk.nabble.com> Message-ID: http://www.postgis.fr/book/print/186 Read section 4.5.2 Using Indexes for instructions on how to force GiST usage. Also note that VACCUUM ANALYZE; by itself will not suffice for Postgres 7.4; an additional command is required. Clint Bertsch wrote: > Hi List, > > As I was reading in the PostGIS manual a GIST index on the geometry column > will speed up the application in several cases. > So i was creating an index on my south_america_large table with CREATE INDEX > south_america_large_index ON south_america_large USING GIST(the_geom > GIST_GEOMETRY_OPS); VACUUM ANALYZE; > Code: > layer->set("data","the_geom FROM (SELECT the_geom,gid FROM > south_america_large) AS myquery USING UNIQUE GID USING SRID=-1"); > map->setExtent(-54,-20,-39,-9); the extension of this map is (-117,-56) - > (-34,32) > > When i run the application i get the same time using the database with GIST > or using it without GIST. Furthermore i was trying the same with a shape > file and a quadtree index and i got better results for the shapefile with > the quadtree index. Maybe someone can help me. > Thanks, > Clemens > -- > View this message in context: http://www.nabble.com/Postgis-Gist-Index-t1469264.html#a3971891 > Sent from the Mapserver - User forum at Nabble.com. > -- Clint Johnson Refractions Research Inc. Cjohnson at refractions.net From amokerk at POST.CZ Wed Apr 19 14:14:05 2006 From: amokerk at POST.CZ (Martin Krempl) Date: Wed, 19 Apr 2006 23:14:05 +0200 Subject: Problem with Encoding Message-ID: Hi, I?ve got some problem with encoding text. I?m using MapServer 4.8.1, PHP 4.3.11, WinXP or Linux. I?ve got Postgres database, encoding my database is UTF-8. When I try print layer with labels some characters are displayed wrong (matching ISO-8859-2 charset). /Here is definition of layer/ LAYER NAME zastavky DATA "the_geom from zastavky" STATUS ON TYPE POINT LABELITEM smer CLASS NAME "zeleznice" COLOR 0 0 0 SYMBOL 'bus' LABEL COLOR 0 0 0 SIZE tiny FONT 'tnr' ENCODING 'UTF-8' END END END I have got on my system ICONV library instaled. Does anybody know what is wrong in my solution. Thanks Martin Krempl From umn-ms at HYDROTEC.DE Wed Apr 19 15:25:12 2006 From: umn-ms at HYDROTEC.DE (Benedikt Rothe) Date: Thu, 20 Apr 2006 00:25:12 +0200 Subject: Java Mapscript - querybyattribut In-Reply-To: <4445EF39.2030008@herzsys.de> Message-ID: Hi all For experimental purpose I added a "UTF-8 -> ISO-8859-Conversion" in two functions of mapscript_wrap.c The functions are the JNI-Implementations of mapObj.getLayerByName and layerObj.queryByAttributes. I testet with the QueryByAttribute-Program Umberto send and with a Shapefile (no database). I tested to find the layer named "???????" and in this layer the regular-expression "S?den". On my Windows-machine the results seem to be correct for the Command-Line- parameter-case and for the hardcoded-case. The implementation is experimental only. If strings are longer than 500 chars, unforeseeable things may happen. In practice one should think twice wether to use this kind of implementation or to use the build-in Java-encoders from JNI level. But the really difficult question is how anything like this could be reasonably incorporated with swig. I have no idea! Umberto? What do you think? Norbert: To be honorable, I don't think it is promising to change the Strings in the higher Java-level. For some days code with example can be dowloaded from http://www2.hydrotec.de/webdemos/be/umlaute.zip (Compiled mapscript.dll is included. Other dll's can be used from normal mapserver 4.8.2) Benedikt PS: I think of this as a bug in mapserver. Should a bug in bugzilla be opened? listuser HH schrieb am 19.04.2006 10:05:13: > Hi Benedikt, > > thanks for the interest. I have the encoding problem when I try to > "getLayerByName()". I could get around the problem at this point but I > think I will have the problem later again. So testing is easy - I just > use a simple layer with the name "Regierungspr?sidien". When I use this > string to get the layer by name it doesn't work. To be sure I tried to > check this string with the name of the layer which I get from > map.getLayer(0) - which is equal to the other. > > My thought was to convert the string before using it in mapscript > functions. Java brings two things to convert strings - perhaps there are > more. > > 1. make a new String from the old in a special encoding - e.g. --> new > String(oldString.getBytes(), "ISO8859-1") > 2. convert chars to different encoding - e.g. [snip] --> > CharToByteISO8859_1 conv4ISO = new > CharToByteISO8859_1(); > char[] cs = layerName.toCharArray(); > conv4ISO.convert(charArray, 0, charArray.length, > byteArray, 0, byteArray.length); > new String(byteArray); > > Because I'm not sure about which encodings are used at wich stpes I > tried some combinations but without luck. I think my code from eclipse > is CP1252. In the eclipse editor properties I changed this to UTF8 and > ISO which also didn't work. I tried to I'm not sure what happens when > mapscript use JNI. Perhaps the string gets converted to UTF8. If this is > right I see no chance for me to change the string in java because it > gets converted even if it is already UTF8. I have to say that I'm not > familiar with this encoding things. If someone has an advice I will > going on testing. > > I think it will be a good thing to have "UTF-8 -> ISO-8859-Conversion" > like you suggested. At the moment I can't do this because I have no > possibility to compile the c code. > > Best regards, > > Norbert > > Benedikt Rothe wrote: > > >Umberto, Nicol, Norbert, Oliver > > > >Umberto wrote > > > > > >>try to run the attached Java source. > >> > >> > >... > > > > > >>"S?dliche Weinstra?e" as the second it will work! > >> > >> > > > >In my copy of your mail the queryByAttribute.java-program is not > >attached. Could somebody post program including testdata (or > >download-url) ? > > > >I 'd like to study a running example, because I don't understand > >how umlaut-conversion from Java to Mapserver-kernel can run > >properly anyway and I'd like to understand it :-) > >----------- > >It seems Norbert found a kind of answer to his question > > > > > >>is there a way to do the converion in java dircetly? > >> > >> > >He suggested > > > > > >>Try to convert the String before you set the expression in your code(-> > >> > >> > >String( byte > > > > > >>bytes[], String ) > >> > >> > >Could you be more precisly? I do not understand what must be converted to > >what. > >How must this be applied to convert a Java-String to a proper > >"Mapserver-String" (?) > >----------- > >Is somebody willing to try to add an "UTF-8 -> ISO-8859-Conversion" in > >mapscript_wrap.c for testpurposes? (Even in the case it works, this would > >not be a real solution because it bypasses swig.) > > > >Benedikt > > > > > >UMN MapServer Users List schrieb am > >14.04.2006 15:23:51: > > > > > > > >>Olivier, > >>I GOT IT! > >> > >>try to run the attached Java source. If you pass it two arguments the > >>first being the path to the map file and the second the string to > >>search for and you pass > >>"S?dliche Weinstra?e" as the second it will work! > >> > >>So why does it fail when "S?dliche Weinstra?e" is inside the Java > >>code? That is a problem that only happens when javac compiles the > >>source: javac translates all characters to unicode and in doing that > >>it gets the german characters wrong. > >>To solve this give javac the following option: -source 1.4 > >> > >>For more see this link: > >>http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5046139 > >> > >>On 4/13/06, Umberto Nicoletti wrote: > >> > >> > >>>This is probably not related only to java mapscript, so please read > >>> > >>> > >on. > > > > > >>So I was wrong...but I'll leave the proof to the reader ;-) > >> > >>Best regards, > >>Umberto > >> > >> > >> > >>>On 3/30/06, Oliver Wesp wrote: > >>> > >>> > >>>>Dear List, > >>>> > >>>>I' struggling with queryByAttributes on an attribute field with > >>>> > >>>> > >german > > > > > >>>>umlauts using java mapscript. > >>>>The odd thing is that the same thing works fine with php mapscript > >>>> > >>>> > >and > > > > > >>>>when I use expressions in my mapfile. I'm using a shapefile as > >>>> > >>>> > >>datasource. > >> > >> > >>>Could someone of the other mapserver developers shed some light on > >>> > >>> > >>this issue? > >> > >> > >>>I have a clue to give: php mapscript is using a different regex > >>>library and this explains why the match does not happen for Java > >>>mapscript, while it does happen in php mapscript. If I am right also > >>>the mapserver cgi should be affected and possibly all other mapscript > >>>too. > >>> > >>>It would be very interesting if someone could report on similar > >>>experiences with the cgi-bin version of mapserver. > >>> > >>>Thanks, > >>>Umberto > >>> > >>> > >>> > >>>>Here is what I do: > >>>> > >>>>layer.queryByAttributes(map,"KREIS_NAME", "/S?dliche Weinstra?e/", > >>>>mapscriptConstants.MS_MULTIPLE); > >>>>layer.open(); > >>>>System.out.println( "Result Count: " +layer.getNumResults() ); > >>>>layer.close(); > >>>> > >>>>The result is always null while replacing the qstring with something > >>>>that doesn't contain special characters (e.g. > >>>>'Mainz-Bingen') works fine. > >>>> > >>>>As noted above the following layer definition in a mapfile works > >>>> > >>>> > >fine > > > > > >>>>LAYER > >>>> NAME kreis > >>>> STATUS DEFAULT > >>>> TYPE polygon > >>>> DATA "/tmp/subset" > >>>> TEMPLATE "kreis.html" > >>>> CLASSITEM KREIS_NAME > >>>> CLASS > >>>> NAME Boundary > >>>> COLOR 128 128 0 > >>>> OUTLINECOLOR 0 0 0 > >>>> EXPRESSION /S?dliche Weinstra?e/ > >>>> END > >>>>END > >>>> > >>>> > >>>>but this does not: > >>>> > >>>>layer.setClassitem("KREIS_NAME"); > >>>>classObj cl = new classObj(layer); > >>>>cl.setName("Classname"); > >>>>cl.setExpression("/S?dliche Weinstra?e/"); > >>>> > >>>>I use Mapserver 4.8.1 on W2k, Tomcat 5.0.28. > >>>> > >>>>I can provide some sample data, just in case someone likes to > >>>> > >>>> > >reproduce. > > > > > >>>>Any help is appreciated. > >>>> > >>>>best regards > >>>>Oliver > >>>>-- > >>>>Dipl.-Geogr. Oliver Wesp > >>>>Gesellschaft fuer geografische Datenverarbeitung > >>>>Binger Strasse 49-51 > >>>>D-55218 Ingelheim > >>>>fon: +49 6132 714818 > >>>>fax: +49 6132 714828 > >>>>http: www.gdv.com > >>>> > >>>> > >>>> > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From John.C.Cartwright at NOAA.GOV Wed Apr 19 16:17:12 2006 From: John.C.Cartwright at NOAA.GOV (John Cartwright) Date: Wed, 19 Apr 2006 17:17:12 -0600 Subject: help w/ WFS request In-Reply-To: <1FEE21DC1054D5119FCC0002A5517B2405F97AB6@rws-mdi-dt2-01.agi.rws.minvenw.nl> Message-ID: Thanks for the suggestion, Bart. It didn't seem to make any difference though. The request now reads as listed below. I'm assuming that the -95,26.5 -94.75,26.75 is referring to "minx,miny maxx,maxy". Also "DUMP TRUE" is set inside the LAYER section. -- john msGeometry -95,26.5 -94.75,26.75 Eijnden, B. van den (Bart) wrote: >Some more thoughts: > >1. you need to use msGeometry instead of the_geom in your GetFeature request >2. just checking, but have you set DUMP TRUE on your LAYER? > >Best regards, >Bart > >-----Oorspronkelijk bericht----- >Van: UMN MapServer Users List >[mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens John Cartwright >Verzonden: dinsdag 18 april 2006 22:19 >Aan: MAPSERVER-USERS at LISTS.UMN.EDU >Onderwerp: Re: [UMN_MAPSERVER-USERS] help w/ WFS request > > >Thanks for the prompt replies Perry and Bart! > >I found part of my problem was that the TNS_ADMIN variable was not being >recognized so mapserver was not finding my tnsnames.ora. Having >corrected that, I now get the correct coordinates in the response, but >it 's not finding any features. This is mapserver 4.8.3 (on RHEL WS4) >running against an Oracle (10.1.0.4) spatial data source. > >Here's my current request and response. I expect to find 67 point >features w/in this particular geographic extent, but the >featureCollection is coming back empty. The complete >DescribeFeatureType response is listed at the bottom of the message. > >Thanks again for your help! > >-- john > >---------------------------------------------------------------------------- >---------------------------------------------------------------------------- >-------------------------- >Request: > > outputFormat="GML2" > xmlns:wfs="http://www.opengis.net/wfs" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:gml="http://www.opengis.net/gml" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd"> > > OBJECT_ID > > > the_geom > > -95,26.5 -94.75,26.75 > > > > > > >---------------------------------------------------------------------------- >---------------------------------------------------------------------------- >-------------------------- >Response (note the empty featureCollection where there should be 67 points): > > > xmlns:ms="http://mapserver.gis.umn.edu/mapserver" > xmlns:wfs="http://www.opengis.net/wfs" > xmlns:gml="http://www.opengis.net/gml" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.opengis.net/wfs >http://schemas.opengeospatial.net/wfs/1.0.0/WFS-basic.xsd > http://mapserver.gis.umn.edu/mapserver >http://lynx.ngdc.noaa.gov:8000/cgi-bin?map=bathydb&SERVICE=WFS&VERSI >ON=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=soundings&OUTPUTFO >RMAT=XMLSCHEMA"> > > > -94.999165,26.504089 >-94.757270,26.742092 > > > > >---------------------------------------------------------------------------- >---------------------------------------------------------------------------- >-------------------------- >DescribeFeatureType Response: > > targetNamespace="http://mapserver.gis.umn.edu/mapserver" > xmlns:ms="http://mapserver.gis.umn.edu/mapserver" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns="http://www.w3.org/2001/XMLSchema" > xmlns:gml="http://www.opengis.net/gml" > elementFormDefault="qualified" version="0.1" > > > >schemaLocation="http://schemas.opengeospatial.net/gml/2.1.2/feature.xsd" /> > > type="ms:soundingsType" > substitutionGroup="gml:_Feature" /> > > > > > > > minOccurs="0" maxOccurs="1"/> > > > > > > > > > > > > > > > > > > > > > > > > > >Pericles S. Nacionales wrote: > > > >>John, >> >>On Tuesday 18 April 2006 13:28, John Cartwright wrote: >> >> >> >> >>>Hello All, >>> >>>I'm trying to get mapserver setup as a simple WFS server. It responds to >>>a GetCapabilities request OK: >>>but when I send the following GetFeatures request: >>> >>>>> outputFormat="GML2" >>> xmlns:wfs="http://www.opengis.net/wfs" >>> xmlns:ogc="http://www.opengis.net/ogc" >>> xmlns:gml="http://www.opengis.net/gml" >>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>> xsi:schemaLocation="http://www.opengis.net/wfs >>> http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd"> >>> >>> >>> >>> the_geom >>> >>> >>> >>> >>> >>Shouldn't this be "" (or is it EPSG:4326)? >> >> >Looks > > >>like the srsName in your mapfile maybe incorrect. >> >>-Perry >> >> >> >> >> >>> -95,26.5 -94.75,26.75 >>> >>> >>> >>> >>> >>> >>>I get this response, and don't know what's wrong: >>> >>> >>>>> xmlns:ms="http://mapserver.gis.umn.edu/mapserver" >>> xmlns:wfs="http://www.opengis.net/wfs" >>> xmlns:gml="http://www.opengis.net/gml" >>> xmlns:ogc="http://www.opengis.net/ogc" >>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>> xsi:schemaLocation="http://www.opengis.net/wfs >>>http://schemas.opengeospatial.net/wfs/1.0.0/WFS-basic.xsd >>> http://mapserver.gis.umn.edu/mapserver >>>http://lynx.ngdc.noaa.gov:8000/cgi-bin?map=bathydb&SERVICE=WFS&VER >>> >>> >S > > >>>ION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=soundings&OUTPU >>> >>> >TF > > >>>ORMAT=XMLSCHEMA"> >>> missing >>> >>> >>> >>>It suggests to me that the bounding box coordinates are not being >>>properly read. I would have expected something like in the response: >>> >>> >>> >>> -95, 26.5 -94.75, 26.75 >>> >>> >>> >>>followed by a series of featureMember elements. >>> >>>Can someone tell what I'm doing wrong? >>> >>>Thanks! >>> >>>-- john >>> >>> >>> >>> >> >> >> >> > > >Disclaimer >************************************************************************ >Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is >uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis >hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te >informeren. Wij adviseren u om bij twijfel over de juistheid of de >volledigheid van de mail contact met afzender op te nemen. > >This message shall not constitute any rights or obligations. >This message is intended solely for the addressee. >If you have received this message in error, please delete it and >notify the sender immediately. When in doubt whether this message >is correct or complete, please contact the sender. >************************************************************************ > > > From ed at TOPOZONE.COM Wed Apr 19 18:19:19 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 19 Apr 2006 21:19:19 -0400 Subject: Mapserver performance issue: why so much slower? Message-ID: Brent - In other words, is a fish different than a radio ? Yes, you're definitely comparing apples and oranges! There is, in general, no reason to think Windows is "faster" than Linux or vice versa, nor that Intel CPUs are "better" than AMD or vice versa. Your hardware specs for CPU, RAM, and disk subsystem (the three most important factors) all clearly indicate the production Windows system is a higher-performance machine for MapServer applications. The first place I'd look is to understand how your Java MapScript application is different than your MapServer CGI implementation, and I'd probably do that by trying to implement and run the Java MapScript application on your prototype machine. That way you'd have a similar application running in each environment, and you'd also have access to your prototype system's analysis tools to try to figure out why the application performs the way it does. I'm also assuming that that production system isn't busy doing lots of other stuff, too, right? A system with 3.5 GB of RAM isn't quite the same if another app is using 3 GB of it already. Thanks for the complete description, too! - 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 Brent Wood Sent: Wednesday, April 19, 2006 4:33 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Mapserver performance issue: why so much slower? Hi, I have prototyped some background map data to be served by Mapserver. There are about 7Gb of Postgis data and 4Gb of images, The images comprise 3 zoom layers, of 2, 100 & 800 tiles each, each addressed via a shapefile tileindex. Just using the basic CGI mapserv application & a mapfile. The prototype system is an AMD 64bit 3500+ cpu, with 1Gb memory & 2 80Gb SATA drives. The PostGIS database is on a software RAID0 partition with a nominal 100Mb/sec I/O. It is running SUSE 9.3 A64 with all the GIS related apps compiled from scratch so they are all 64bit apps. I'm more than pleased with the performance. I have only ftp & remote Postgres access to the production server... (don't ask !!!!! :-) so am limited in what I can do (even more than my normal limitations). The server this is to be implemented on is running a Java digital asset management application as an image database under Windows 2k3 server. Mapserver is implemented only as a Java mapscript capability, embedded in the application, to provide a location based facility for selecting images. The server is supposedly an Intel 3.5Ghz hyperthreaded cpu with 3.5Gb memory & a reasonable SCSI RAID array. Postgres performance seems fine, so I don't think it is a database performance issue (but I could be wrong about this- our tests have been not been for large geometry objects such as are retrieved by mapserver, but for large numbers of small tuples) Mapserver, however, is very slow. It is taking about 5x as long to render the maps with only 20% of the data being implemented in the mapfile & no rasters. Also, unlike the Linux box, repeat accesses/redraws do not speed up compared to the original (Linux vs Windows caching perhaps?) Does anyone have any suggestions/ideas about the performance of Java mapscript vs cgi mapserver, Linux 64bit vs Windows 32bit, Intel vs AMD, etc. There are so many points of difference, & I'd like to narrow my search for the basic cause/solution if at all possible. We may be able to stick a Linux A64 box as the postgis/mapserver server, but if it is a Java mapscript vs CGI mapserve issue, this may not do anything to help. Running a separate WMS Linux mapserver server & the image db as a Javascript WMS client will (as I understand it) remove virtually all the load from the Windows box, so may be a suitable solution. Any comments on this approach? Is it feasible with Java mapscript? Thanks, Brent Wood From warmerdam at POBOX.COM Wed Apr 19 20:12:08 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 19 Apr 2006 23:12:08 -0400 Subject: Performance hints please In-Reply-To: <200604201215.49749.scldad@sdc.com.au> Message-ID: Stephen Davies wrote: > G'day Frank. > > I reread the raster howto etc on overviews and do think they might help. > > I have created some overviews of my TIFF images using gdaladdo but > cannot see how to tell mapserv to use them. Could you please give me a > pointer. Stephen, It should just use them automatically when they are appropriate for the current map request. You might want to verify that GDAL sees the overviews by running "gdalinfo" on the dataset after gdaladdo, and ensuring there are some overviews levels listed after the bands in the report. There isn't any particularly easy way to ensure that mapserver is using the overviews short of seeing better performance. 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 OSGF, http://osgeo.org From sdc at SDC.COM.AU Wed Apr 19 20:35:55 2006 From: sdc at SDC.COM.AU (Stephen Davies) Date: Thu, 20 Apr 2006 13:05:55 +0930 Subject: Performance hints please In-Reply-To: <4446FC08.7080606@pobox.com> Message-ID: Yes, I see the overviews in the gdalinfo output. So far, I have only used 50%. Any guides as to what is a good number of overviews to create? How does mapserv chose which overview to use? What is "appropriate"? Cheers, Stephen On Thursday 20 April 2006 12:42, Frank Warmerdam wrote: > Stephen Davies wrote: > > G'day Frank. > > > > I reread the raster howto etc on overviews and do think they might > > help. > > > > I have created some overviews of my TIFF images using gdaladdo but > > cannot see how to tell mapserv to use them. Could you please give > > me a pointer. > > Stephen, > > It should just use them automatically when they are appropriate for > the current map request. You might want to verify that GDAL sees the > overviews by running "gdalinfo" on the dataset after gdaladdo, and > ensuring there are some overviews levels listed after the bands in > the report. > > There isn't any particularly easy way to ensure that mapserver is > using the overviews short of seeing better performance. > > Best regards, -- ======================================================================= This email is for the person(s) identified above, and is confidential to the sender and the person(s). No one else is authorised to use or disseminate this email or its contents. Stephen Davies Consulting Voice: 08-8177 1595 Adelaide, South Australia. Fax: 08-8177 0133 Computing & Network solutions. Mobile:0403 0405 83 From warmerdam at POBOX.COM Wed Apr 19 21:02:39 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 20 Apr 2006 00:02:39 -0400 Subject: MapServer using certificates as a client to WMS/WFS Message-ID: Folks, I'm interested in accessing a WFS server from mapserver, but the WFS server requires an SSL certificate. I can accomplish this handily from the browser by importing the certificate. But does anyone have experience doing this sort of thing with mapserver as the client? Looking at libcurl, it seems setting the CURLOPT_SSLCERT option is what I want. (see http://curl.haxx.se/libcurl/c/curl_easy_setopt.html) Is it likely that I will need to modify the mapserver code to support passing such an extra curl option via the map file? Or is there a another good way of providing my certificate? PS. I also notice I have a /usr/local/share/curl/curl-ca-bundle.crt file which seems to be certificates for root servers. That's a different issue, right? 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 OSGF, http://osgeo.org From warmerdam at POBOX.COM Wed Apr 19 21:05:33 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 20 Apr 2006 00:05:33 -0400 Subject: Performance hints please In-Reply-To: <200604201305.56000.sdc@sdc.com.au> Message-ID: Stephen Davies wrote: > Yes, I see the overviews in the gdalinfo output. > So far, I have only used 50%. Any guides as to what is a good number of > overviews to create? > How does mapserv chose which overview to use? What is "appropriate"? Stephen, MapServer (well actually GDAL does this without mapserver even realizing it) will use an overview if it is at least as fine a resolution as the map request. So, if the pixel size of your base file is 2m x 2m and you select a "2" overview with gdaladdo it will have a pixel size of 4m x 4m. If you requested a map with a pixel size of 3m x 3m the mapserver will use the base image (2m x 2m) and decimate from that. But if you ask for a map with 4.5m x 4.5m pixels then the overview would get used. 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 OSGF, http://osgeo.org From sdc at SDC.COM.AU Wed Apr 19 22:39:22 2006 From: sdc at SDC.COM.AU (Stephen Davies) Date: Thu, 20 Apr 2006 15:09:22 +0930 Subject: Performance hints please In-Reply-To: <4447088D.9020909@pobox.com> Message-ID: Thanks Frank. Now I understand. As luck would have it, the maps which are biggest (highest resolution rasters) are also the ones with the smallest extents so they just miss going over the step from base map to 50% overview. These base maps are 1m/pixel and the final maps are just under 2. I shall try experimenting with the extents (currently determined from property boundaries) to see if I can push them over. However, several other maps are seeing a significant improvement. Cheers and thanks again, Stephen On Thursday 20 April 2006 13:35, Frank Warmerdam wrote: > Stephen Davies wrote: > > Yes, I see the overviews in the gdalinfo output. > > So far, I have only used 50%. Any guides as to what is a good > > number of overviews to create? > > How does mapserv chose which overview to use? What is > > "appropriate"? > > Stephen, > > MapServer (well actually GDAL does this without mapserver even > realizing it) will use an overview if it is at least as fine a > resolution as the map request. So, if the pixel size of your base > file is 2m x 2m and you select a "2" overview with gdaladdo it will > have a pixel size of 4m x 4m. > > If you requested a map with a pixel size of 3m x 3m the mapserver > will use the base image (2m x 2m) and decimate from that. But if you > ask for a map with 4.5m x 4.5m pixels then the overview would get > used. > > Best regards, -- ======================================================================= This email is for the person(s) identified above, and is confidential to the sender and the person(s). No one else is authorised to use or disseminate this email or its contents. Stephen Davies Consulting Voice: 08-8177 1595 Adelaide, South Australia. Fax: 08-8177 0133 Computing & Network solutions. Mobile:0403 0405 83 From b.vdeijnden at AGI.RWS.MINVENW.NL Wed Apr 19 22:44:06 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Thu, 20 Apr 2006 07:44:06 +0200 Subject: help w/ WFS request Message-ID: Have you tried Perry's suggestion to use: -95,26.5 -94.75,26.75 ? What's does your LAYER's PROJECTION block look like? Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens John Cartwright Verzonden: donderdag 20 april 2006 1:17 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] help w/ WFS request Thanks for the suggestion, Bart. It didn't seem to make any difference though. The request now reads as listed below. I'm assuming that the -95,26.5 -94.75,26.75 is referring to "minx,miny maxx,maxy". Also "DUMP TRUE" is set inside the LAYER section. -- john msGeometry -95,26.5 -94.75,26.75 Eijnden, B. van den (Bart) wrote: >Some more thoughts: > >1. you need to use msGeometry instead of the_geom in your GetFeature request >2. just checking, but have you set DUMP TRUE on your LAYER? > >Best regards, >Bart > >-----Oorspronkelijk bericht----- >Van: UMN MapServer Users List >[mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens John Cartwright >Verzonden: dinsdag 18 april 2006 22:19 >Aan: MAPSERVER-USERS at LISTS.UMN.EDU >Onderwerp: Re: [UMN_MAPSERVER-USERS] help w/ WFS request > > >Thanks for the prompt replies Perry and Bart! > >I found part of my problem was that the TNS_ADMIN variable was not being >recognized so mapserver was not finding my tnsnames.ora. Having >corrected that, I now get the correct coordinates in the response, but >it 's not finding any features. This is mapserver 4.8.3 (on RHEL WS4) >running against an Oracle (10.1.0.4) spatial data source. > >Here's my current request and response. I expect to find 67 point >features w/in this particular geographic extent, but the >featureCollection is coming back empty. The complete >DescribeFeatureType response is listed at the bottom of the message. > >Thanks again for your help! > >-- john > >--------------------------------------------------------------------------- - >--------------------------------------------------------------------------- - >-------------------------- >Request: > > outputFormat="GML2" > xmlns:wfs="http://www.opengis.net/wfs" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:gml="http://www.opengis.net/gml" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd"> > > OBJECT_ID > > > the_geom > > -95,26.5 -94.75,26.75 > > > > > > >--------------------------------------------------------------------------- - >--------------------------------------------------------------------------- - >-------------------------- >Response (note the empty featureCollection where there should be 67 points): > > > xmlns:ms="http://mapserver.gis.umn.edu/mapserver" > xmlns:wfs="http://www.opengis.net/wfs" > xmlns:gml="http://www.opengis.net/gml" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.opengis.net/wfs >http://schemas.opengeospatial.net/wfs/1.0.0/WFS-basic.xsd > http://mapserver.gis.umn.edu/mapserver >http://lynx.ngdc.noaa.gov:8000/cgi-bin?map=bathydb&SERVICE=WFS&VERS I >ON=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=soundings&OUTPUTF O >RMAT=XMLSCHEMA"> > > > -94.999165,26.504089 >-94.757270,26.742092 > > > > >--------------------------------------------------------------------------- - >--------------------------------------------------------------------------- - >-------------------------- >DescribeFeatureType Response: > > targetNamespace="http://mapserver.gis.umn.edu/mapserver" > xmlns:ms="http://mapserver.gis.umn.edu/mapserver" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns="http://www.w3.org/2001/XMLSchema" > xmlns:gml="http://www.opengis.net/gml" > elementFormDefault="qualified" version="0.1" > > > >schemaLocation="http://schemas.opengeospatial.net/gml/2.1.2/feature.xsd" /> > > type="ms:soundingsType" > substitutionGroup="gml:_Feature" /> > > > > > > > minOccurs="0" maxOccurs="1"/> > > > > > > > > > > > > > > > > > > > > > > > > > >Pericles S. Nacionales wrote: > > > >>John, >> >>On Tuesday 18 April 2006 13:28, John Cartwright wrote: >> >> >> >> >>>Hello All, >>> >>>I'm trying to get mapserver setup as a simple WFS server. It responds to >>>a GetCapabilities request OK: >>>but when I send the following GetFeatures request: >>> >>>>> outputFormat="GML2" >>> xmlns:wfs="http://www.opengis.net/wfs" >>> xmlns:ogc="http://www.opengis.net/ogc" >>> xmlns:gml="http://www.opengis.net/gml" >>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>> xsi:schemaLocation="http://www.opengis.net/wfs >>> http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd"> >>> >>> >>> >>> the_geom >>> >>> >>> >>> >>> >>Shouldn't this be "" (or is it EPSG:4326)? >> >> >Looks > > >>like the srsName in your mapfile maybe incorrect. >> >>-Perry >> >> >> >> >> >>> -95,26.5 -94.75,26.75 >>> >>> >>> >>> >>> >>> >>>I get this response, and don't know what's wrong: >>> >>> >>>>> xmlns:ms="http://mapserver.gis.umn.edu/mapserver" >>> xmlns:wfs="http://www.opengis.net/wfs" >>> xmlns:gml="http://www.opengis.net/gml" >>> xmlns:ogc="http://www.opengis.net/ogc" >>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>> xsi:schemaLocation="http://www.opengis.net/wfs >>>http://schemas.opengeospatial.net/wfs/1.0.0/WFS-basic.xsd >>> http://mapserver.gis.umn.edu/mapserver >>>http://lynx.ngdc.noaa.gov:8000/cgi-bin?map=bathydb&SERVICE=WFS&VE R >>> >>> >S > > >>>ION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=soundings&OUTP U >>> >>> >TF > > >>>ORMAT=XMLSCHEMA"> >>> missing >>> >>> >>> >>>It suggests to me that the bounding box coordinates are not being >>>properly read. I would have expected something like in the response: >>> >>> >>> >>> -95, 26.5 -94.75, 26.75 >>> >>> >>> >>>followed by a series of featureMember elements. >>> >>>Can someone tell what I'm doing wrong? >>> >>>Thanks! >>> >>>-- john >>> >>> >>> >>> >> >> >> >> > > >Disclaimer >************************************************************************ >Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is >uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis >hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te >informeren. Wij adviseren u om bij twijfel over de juistheid of de >volledigheid van de mail contact met afzender op te nemen. > >This message shall not constitute any rights or obligations. >This message is intended solely for the addressee. >If you have received this message in error, please delete it and >notify the sender immediately. When in doubt whether this message >is correct or complete, please contact the sender. >************************************************************************ > > > Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From umberto.nicoletti at GMAIL.COM Wed Apr 19 23:27:43 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Thu, 20 Apr 2006 08:27:43 +0200 Subject: Java Mapscript - querybyattribut In-Reply-To: Message-ID: Please open an issue in bugzilla. I'll add some debugging to mapserver in cvs and then we'll start from there. See you tomorrow. Best regards, Umberto On 4/20/06, Benedikt Rothe wrote: > > Hi all > > For experimental purpose I added a "UTF-8 -> ISO-8859-Conversion" > in two functions of mapscript_wrap.c > The functions are the JNI-Implementations of mapObj.getLayerByName and > layerObj.queryByAttributes. > > I testet with the QueryByAttribute-Program Umberto send and with a Shapefile > (no database). > I tested to find the layer named "???????" and in this layer the > regular-expression > "S?den". > > On my Windows-machine the results seem to be correct for the Command-Line- > parameter-case and for the hardcoded-case. > > The implementation is experimental only. If strings are longer than 500 > chars, > unforeseeable things may happen. In practice one should think twice wether > to > use this kind of implementation or to use the build-in Java-encoders from > JNI level. > > But the really difficult question is how anything like this could be > reasonably incorporated > with swig. I have no idea! > > Umberto? What do you think? > > Norbert: To be honorable, I don't think it is promising to change the > Strings in the > higher Java-level. > > For some days code with example can be dowloaded from > http://www2.hydrotec.de/webdemos/be/umlaute.zip > (Compiled mapscript.dll is included. Other dll's can be used from normal > mapserver 4.8.2) > > Benedikt > > PS: I think of this as a bug in mapserver. Should a bug in bugzilla be > opened? > > listuser HH schrieb am 19.04.2006 10:05:13: > > > Hi Benedikt, > > > > thanks for the interest. I have the encoding problem when I try to > > "getLayerByName()". I could get around the problem at this point but I > > think I will have the problem later again. So testing is easy - I just > > use a simple layer with the name "Regierungspr?sidien". When I use this > > string to get the layer by name it doesn't work. To be sure I tried to > > check this string with the name of the layer which I get from > > map.getLayer(0) - which is equal to the other. > > > > My thought was to convert the string before using it in mapscript > > functions. Java brings two things to convert strings - perhaps there are > > more. > > > > 1. make a new String from the old in a special encoding - e.g. --> new > > String(oldString.getBytes(), "ISO8859-1") > > 2. convert chars to different encoding - e.g. [snip] --> > > CharToByteISO8859_1 conv4ISO = new > > CharToByteISO8859_1(); > > char[] cs = layerName.toCharArray(); > > conv4ISO.convert(charArray, 0, charArray.length, > > byteArray, 0, byteArray.length); > > new String(byteArray); > > > > Because I'm not sure about which encodings are used at wich stpes I > > tried some combinations but without luck. I think my code from eclipse > > is CP1252. In the eclipse editor properties I changed this to UTF8 and > > ISO which also didn't work. I tried to I'm not sure what happens when > > mapscript use JNI. Perhaps the string gets converted to UTF8. If this is > > right I see no chance for me to change the string in java because it > > gets converted even if it is already UTF8. I have to say that I'm not > > familiar with this encoding things. If someone has an advice I will > > going on testing. > > > > I think it will be a good thing to have "UTF-8 -> ISO-8859-Conversion" > > like you suggested. At the moment I can't do this because I have no > > possibility to compile the c code. > > > > Best regards, > > > > Norbert > > > > Benedikt Rothe wrote: > > > > >Umberto, Nicol, Norbert, Oliver > > > > > >Umberto wrote > > > > > > > > >>try to run the attached Java source. > > >> > > >> > > >... > > > > > > > > >>"S?dliche Weinstra?e" as the second it will work! > > >> > > >> > > > > > >In my copy of your mail the queryByAttribute.java-program is not > > >attached. Could somebody post program including testdata (or > > >download-url) ? > > > > > >I 'd like to study a running example, because I don't understand > > >how umlaut-conversion from Java to Mapserver-kernel can run > > >properly anyway and I'd like to understand it :-) > > >----------- > > >It seems Norbert found a kind of answer to his question > > > > > > > > > >>is there a way to do the converion in java dircetly? > > >> > > >> > > >He suggested > > > > > > > > > >>Try to convert the String before you set the expression in your code(-> > > >> > > >> > > >String( byte > > > > > > > > >>bytes[], String ) > > >> > > >> > > >Could you be more precisly? I do not understand what must be converted to > > >what. > > >How must this be applied to convert a Java-String to a proper > > >"Mapserver-String" (?) > > >----------- > > >Is somebody willing to try to add an "UTF-8 -> ISO-8859-Conversion" in > > >mapscript_wrap.c for testpurposes? (Even in the case it works, this would > > >not be a real solution because it bypasses swig.) > > > > > >Benedikt > > > > > > > > >UMN MapServer Users List schrieb am > > >14.04.2006 15:23:51: > > > > > > > > > > > >>Olivier, > > >>I GOT IT! > > >> > > >>try to run the attached Java source. If you pass it two arguments the > > >>first being the path to the map file and the second the string to > > >>search for and you pass > > >>"S?dliche Weinstra?e" as the second it will work! > > >> > > >>So why does it fail when "S?dliche Weinstra?e" is inside the Java > > >>code? That is a problem that only happens when javac compiles the > > >>source: javac translates all characters to unicode and in doing that > > >>it gets the german characters wrong. > > >>To solve this give javac the following option: -source 1.4 > > >> > > >>For more see this link: > > > >>http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5046139 > > > >> > > >>On 4/13/06, Umberto Nicoletti wrote: > > >> > > >> > > >>>This is probably not related only to java mapscript, so please read > > >>> > > >>> > > >on. > > > > > > > > >>So I was wrong...but I'll leave the proof to the reader ;-) > > >> > > >>Best regards, > > >>Umberto > > > >> > > >> > > >> > > >>>On 3/30/06, Oliver Wesp wrote: > > >>> > > >>> > > >>>>Dear List, > > >>>> > > >>>>I' struggling with queryByAttributes on an attribute field with > > >>>> > > >>>> > > >german > > > > > > > > >>>>umlauts using java mapscript. > > >>>>The odd thing is that the same thing works fine with php mapscript > > >>>> > > >>>> > > >and > > > > > > > > >>>>when I use expressions in my mapfile. I'm using a shapefile as > > >>>> > > >>>> > > >>datasource. > > > >> > > >> > > >>>Could someone of the other mapserver developers shed some light on > > >>> > > >>> > > >>this issue? > > > >> > > >> > > >>>I have a clue to give: php mapscript is using a different regex > > >>>library and this explains why the match does not happen for Java > > >>>mapscript, while it does happen in php mapscript. If I am right also > > >>>the mapserver cgi should be affected and possibly all other mapscript > > >>>too. > > >>> > > >>>It would be very interesting if someone could report on similar > > >>>experiences with the cgi-bin version of mapserver. > > >>> > > >>>Thanks, > > >>>Umberto > > >>> > > >>> > > >>> > > >>>>Here is what I do: > > >>>> > > >>>>layer.queryByAttributes(map,"KREIS_NAME", "/S?dliche Weinstra?e/", > > > >>>>mapscriptConstants.MS_MULTIPLE); > > >>>>layer.open(); > > >>>>System.out.println( "Result Count: " +layer.getNumResults() ); > > >>>>layer.close(); > > >>>> > > >>>>The result is always null while replacing the qstring with something > > >>>>that doesn't contain special characters (e.g. > > >>>>'Mainz-Bingen') works fine. > > >>>> > > >>>>As noted above the following layer definition in a mapfile works > > >>>> > > >>>> > > >fine > > > > > > > > >>>>LAYER > > >>>> NAME kreis > > >>>> STATUS DEFAULT > > >>>> TYPE polygon > > >>>> DATA "/tmp/subset" > > >>>> TEMPLATE "kreis.html" > > >>>> CLASSITEM KREIS_NAME > > >>>> CLASS > > >>>> NAME Boundary > > >>>> COLOR 128 128 0 > > >>>> OUTLINECOLOR 0 0 0 > > >>>> EXPRESSION /S?dliche Weinstra?e/ > > > >>>> END > > >>>>END > > >>>> > > >>>> > > >>>>but this does not: > > >>>> > > >>>>layer.setClassitem("KREIS_NAME"); > > >>>>classObj cl = new classObj(layer); > > >>>>cl.setName("Classname"); > > >>>>cl.setExpression("/S?dliche Weinstra?e/"); > > > >>>> > > >>>>I use Mapserver 4.8.1 on W2k, Tomcat 5.0.28. > > >>>> > > >>>>I can provide some sample data, just in case someone likes to > > >>>> > > >>>> > > >reproduce. > > > > > > > > >>>>Any help is appreciated. > > >>>> > > >>>>best regards > > >>>>Oliver > > >>>>-- > > >>>>Dipl.-Geogr. Oliver Wesp > > >>>>Gesellschaft fuer geografische Datenverarbeitung > > >>>>Binger Strasse 49-51 > > >>>>D-55218 Ingelheim > > >>>>fon: +49 6132 714818 > > >>>>fax: +49 6132 714828 > > >>>>http: www.gdv.com > > >>>> > > >>>> > > >>>> > > > > > > > > > > > > > > > > > > > > > > > >>is there a way to do the converion in java dircetly? > > >> > > >> > > >He suggested > > > > > > > > > >>Try to convert the String before you set the expression in your code(-> > > >> > > >> > > >String( byte > > > > > > > > >>bytes[], String ) > > >> > > >> > > >Could you be more precisly? I do not understand what must be converted to > > >what. > > >How must this be applied to convert a Java-String to a proper > > >"Mapserver-String" (?) > > >----------- > > >Is somebody willing to try to add an "UTF-8 -> ISO-8859-Conversion" in > > >mapscript_wrap.c for testpurposes? (Even in the case it works, this would > > >not be a real solution because it bypasses swig.) > > > > > >Benedikt > > > > > > > > >UMN MapServer Users List schrieb am > > >14.04.2006 15:23:51: > > > > > > > > > > > >>Olivier, > > >>I GOT IT! > > >> > > >>try to run the attached Java source. If you pass it two arguments the > > >>first being the path to the map file and the second the string to > > >>search for and you pass > > >>"S?dliche Weinstra?e" as the second it will work! > > >> > > >>So why does it fail when "S?dliche Weinstra?e" is inside the Java > > >>code? That is a problem that only happens when javac compiles the > > >>source: javac translates all characters to unicode and in doing that > > >>it gets the german characters wrong. > > >>To solve this give javac the following option: -source 1.4 > > >> > > >>For more see this link: > > > >>http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5046139 > > > >> > > >>On 4/13/06, Umberto Nicoletti wrote: > > >> > > >> > > >>>This is probably not related only to java mapscript, so please read > > >>> > > >>> > > >on. > > > > > > > > >>So I was wrong...but I'll leave the proof to the reader ;-) > > >> > > >>Best regards, > > >>Umberto > > > >> > > >> > > >> > > >>>On 3/30/06, Oliver Wesp wrote: > > >>> > > >>> > > >>>>Dear List, > > >>>> > > >>>>I' struggling with queryByAttributes on an attribute field with > > >>>> > > >>>> > > >german > > > > > > > > >>>>umlauts using java mapscript. > > >>>>The odd thing is that the same thing works fine with php mapscript > > >>>> > > >>>> > > >and > > > > > > > > >>>>when I use expressions in my mapfile. I'm using a shapefile as > > >>>> > > >>>> > > >>datasource. > > > >> > > >> > > >>>Could someone of the other mapserver developers shed some light on > > >>> > > >>> > > >>this issue? > > > >> > > >> > > >>>I have a clue to give: php mapscript is using a different regex > > >>>library and this explains why the match does not happen for Java > > >>>mapscript, while it does happen in php mapscript. If I am right also > > >>>the mapserver cgi should be affected and possibly all other mapscript > > >>>too. > > >>> > > >>>It would be very interesting if someone could report on similar > > >>>experiences with the cgi-bin version of mapserver. > > >>> > > >>>Thanks, > > >>>Umberto > > >>> > > >>> > > >>> > > >>>>Here is what I do: > > >>>> > > >>>>layer.queryByAttributes(map,"KREIS_NAME", "/S?dliche Weinstra?e/", > > > >>>>mapscriptConstants.MS_MULTIPLE); > > >>>>layer.open(); > > >>>>System.out.println( "Result Count: " +layer.getNumResults() ); > > >>>>layer.close(); > > >>>> > > >>>>The result is always null while replacing the qstring with something > > >>>>that doesn't contain special characters (e.g. > > >>>>'Mainz-Bingen') works fine. > > >>>> > > >>>>As noted above the following layer definition in a mapfile works > > >>>> > > >>>> > > >fine > > > > > > > > >>>>LAYER > > >>>> NAME kreis > > >>>> STATUS DEFAULT > > >>>> TYPE polygon > > >>>> DATA "/tmp/subset" > > >>>> TEMPLATE "kreis.html" > > >>>> CLASSITEM KREIS_NAME > > >>>> CLASS > > >>>> NAME Boundary > > >>>> COLOR 128 128 0 > > >>>> OUTLINECOLOR 0 0 0 > > >>>> EXPRESSION /S?dliche Weinstra?e/ > > > >>>> END > > >>>>END > > >>>> > > >>>> > > >>>>but this does not: > > >>>> > > >>>>layer.setClassitem("KREIS_NAME"); > > >>>>classObj cl = new classObj(layer); > > >>>>cl.setName("Classname"); > > >>>>cl.setExpression("/S?dliche Weinstra?e/"); > > > >>>> > > >>>>I use Mapserver 4.8.1 on W2k, Tomcat 5.0.28. > > >>>> > > >>>>I can provide some sample data, just in case someone likes to > > >>>> > > >>>> > > >reproduce. > > > > > > > > >>>>Any help is appreciated. > > >>>> > > >>>>best regards > > >>>>Oliver > > >>>>-- > > >>>>Dipl.-Geogr. Oliver Wesp > > >>>>Gesellschaft fuer geografische Datenverarbeitung > > >>>>Binger Strasse 49-51 > > >>>>D-55218 Ingelheim > > >>>>fon: +49 6132 714818 > > >>>>fax: +49 6132 714828 > > >>>>http: www.gdv.com > > >>>> > > >>>> > > >>>> > > > > > > > > > > > > > > From Artur.Skalski at ACXIOM.COM Wed Apr 19 23:48:30 2006 From: Artur.Skalski at ACXIOM.COM (Skalski Artur - askals) Date: Thu, 20 Apr 2006 08:48:30 +0200 Subject: mysql querybyattributes Message-ID: Hi Frank Many thanks for Your answer, it explains a lot. I'll give 'WHERE' a try, having PRIMARY INTEGER ID column in my mysql table I hope it will do the trick. Thanks again for Your advice! Best Regards Artur -----Original Message----- From: Frank Warmerdam [mailto:fwarmerdam at gmail.com]On Behalf Of Frank Warmerdam Sent: Wednesday, April 19, 2006 8:22 PM To: Skalski Artur - askals Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] mysql querybyattributes Skalski Artur - askals wrote: > Can someone point me how to do eficiently querybyattributes on mysql > layers using php/mapscript? > > The layer has over 1 000 000 records (I don't want to split it > unless...) can be displayed and queried by point when clicking on map, > those things work fast but when it comes to querybyattributes I get > error message: > "Execution time of 30 seconds exceded" > > I know that i can set execution time to 'no limit' but it's no use > since user will has to wait that long for each query results. ... > and piece of php code that does the query: > > $qLayer = $gpoMap->GetLayerByName($HTTP_FORM_VARS["SearchedLayer"]); > $qFiled = $HTTP_FORM_VARS["SearchedField"]; > $qValue = strtoupper($HTTP_FORM_VARS["SearchedValue"]); > > $qLayer->queryByAttributes($qFiled, $qValue, MS_MULTIPLE); Artur, This is a bit complicated due to the three levels of abstraction. I presume currently MapServer is reading all the features and applying the query itself. Pretty much a worst case when you have a lot of records. The next level down is the VRT layer. When you use an .ovf file, OGR "fakes" a virtual datasource on top of the lower level non-spatial mysql OGR driver. We don't want our filters evaluated at this level either. The bottom level is the OGR mysql driver which knows how to pass attribute queries on to MySQL as part of a select statement WHERE clause. Presumably if we can make this happen things will be fast to do the query. The trick with OGR connections to pass the filter through to OGR is to use a query expression starting with WHERE. So you might do something like: expr = 'WHERE ' + $qFiled + ' = ' + $qValue $qLayer->queryByAttributes(null,$expr,MS_MULTIPLE); (forgive my incorrect PHP syntax, I'm just trying to get the idea accross). Starting a filter with WHERE for the OGR provider tells it that you want it passed to OGR not evaluated by MapServer. However, even if you do all this, you are still likely to get poor performance fetching back the query result features (possibly even getting the wrong features) if you don't have a primary integer index on the original MySQL table as OGR needs this for persistent feature ids. Note, it may be necessary to upgrade to the very latest OGR code to get the above to work. I have made a few recent fixes in this area. Try to use the GDAL 1.3.2b1 snapshot if you want to pursue this. Generally speaking, using OGR datasources through the VRT layer and ODBC has a tendency to problems for queries. Going to a one pass approach instead of the current two pass approach would be a big help in this regard. 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 OSGF, http://osgeo.org *************************************************************************** The information contained in this communication is confidential, is intended only for the use of the recipient named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please resend this communication to the sender and delete the original message or any copy of it from your computer system. Thank You. **************************************************************************** From warmerdam at POBOX.COM Wed Apr 19 21:05:33 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 20 Apr 2006 00:05:33 -0400 Subject: Performance hints please In-Reply-To: <200604201305.56000.sdc@sdc.com.au> Message-ID: Stephen Davies wrote: > Yes, I see the overviews in the gdalinfo output. > So far, I have only used 50%. Any guides as to what is a good number of > overviews to create? > How does mapserv chose which overview to use? What is "appropriate"? Stephen, MapServer (well actually GDAL does this without mapserver even realizing it) will use an overview if it is at least as fine a resolution as the map request. So, if the pixel size of your base file is 2m x 2m and you select a "2" overview with gdaladdo it will have a pixel size of 4m x 4m. If you requested a map with a pixel size of 3m x 3m the mapserver will use the base image (2m x 2m) and decimate from that. But if you ask for a map with 4.5m x 4.5m pixels then the overview would get used. 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 OSGF, http://osgeo.org From Artur.Skalski at ACXIOM.COM Wed Apr 19 23:48:30 2006 From: Artur.Skalski at ACXIOM.COM (Skalski Artur - askals) Date: Thu, 20 Apr 2006 08:48:30 +0200 Subject: mysql querybyattributes Message-ID: Hi Frank Many thanks for Your answer, it explains a lot. I'll give 'WHERE' a try, having PRIMARY INTEGER ID column in my mysql table I hope it will do the trick. Thanks again for Your advice! Best Regards Artur -----Original Message----- From: Frank Warmerdam [mailto:fwarmerdam at gmail.com]On Behalf Of Frank Warmerdam Sent: Wednesday, April 19, 2006 8:22 PM To: Skalski Artur - askals Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] mysql querybyattributes Skalski Artur - askals wrote: > Can someone point me how to do eficiently querybyattributes on mysql > layers using php/mapscript? > > The layer has over 1 000 000 records (I don't want to split it > unless...) can be displayed and queried by point when clicking on map, > those things work fast but when it comes to querybyattributes I get > error message: > "Execution time of 30 seconds exceded" > > I know that i can set execution time to 'no limit' but it's no use > since user will has to wait that long for each query results. .. > and piece of php code that does the query: > > $qLayer = $gpoMap->GetLayerByName($HTTP_FORM_VARS["SearchedLayer"]); > $qFiled = $HTTP_FORM_VARS["SearchedField"]; > $qValue = strtoupper($HTTP_FORM_VARS["SearchedValue"]); > > $qLayer->queryByAttributes($qFiled, $qValue, MS_MULTIPLE); Artur, This is a bit complicated due to the three levels of abstraction. I presume currently MapServer is reading all the features and applying the query itself. Pretty much a worst case when you have a lot of records. The next level down is the VRT layer. When you use an .ovf file, OGR "fakes" a virtual datasource on top of the lower level non-spatial mysql OGR driver. We don't want our filters evaluated at this level either. The bottom level is the OGR mysql driver which knows how to pass attribute queries on to MySQL as part of a select statement WHERE clause. Presumably if we can make this happen things will be fast to do the query. The trick with OGR connections to pass the filter through to OGR is to use a query expression starting with WHERE. So you might do something like: expr = 'WHERE ' + $qFiled + ' = ' + $qValue $qLayer->queryByAttributes(null,$expr,MS_MULTIPLE); (forgive my incorrect PHP syntax, I'm just trying to get the idea accross). Starting a filter with WHERE for the OGR provider tells it that you want it passed to OGR not evaluated by MapServer. However, even if you do all this, you are still likely to get poor performance fetching back the query result features (possibly even getting the wrong features) if you don't have a primary integer index on the original MySQL table as OGR needs this for persistent feature ids. Note, it may be necessary to upgrade to the very latest OGR code to get the above to work. I have made a few recent fixes in this area. Try to use the GDAL 1.3.2b1 snapshot if you want to pursue this. Generally speaking, using OGR datasources through the VRT layer and ODBC has a tendency to problems for queries. Going to a one pass approach instead of the current two pass approach would be a big help in this regard. 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 OSGF, http://osgeo.org *************************************************************************** The information contained in this communication is confidential, is intended only for the use of the recipient named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please resend this communication to the sender and delete the original message or any copy of it from your computer system. Thank You. **************************************************************************** From umberto.nicoletti at GMAIL.COM Wed Apr 19 23:27:43 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Thu, 20 Apr 2006 08:27:43 +0200 Subject: Java Mapscript - querybyattribut In-Reply-To: Message-ID: Please open an issue in bugzilla. I'll add some debugging to mapserver in cvs and then we'll start from there. See you tomorrow. Best regards, Umberto On 4/20/06, Benedikt Rothe wrote: > > Hi all > > For experimental purpose I added a "UTF-8 -> ISO-8859-Conversion" > in two functions of mapscript_wrap.c > The functions are the JNI-Implementations of mapObj.getLayerByName and > layerObj.queryByAttributes. > > I testet with the QueryByAttribute-Program Umberto send and with a Shapefile > (no database). > I tested to find the layer named "???????" and in this layer the > regular-expression > "S?den". > > On my Windows-machine the results seem to be correct for the Command-Line- > parameter-case and for the hardcoded-case. > > The implementation is experimental only. If strings are longer than 500 > chars, > unforeseeable things may happen. In practice one should think twice wether > to > use this kind of implementation or to use the build-in Java-encoders from > JNI level. > > But the really difficult question is how anything like this could be > reasonably incorporated > with swig. I have no idea! > > Umberto? What do you think? > > Norbert: To be honorable, I don't think it is promising to change the > Strings in the > higher Java-level. > > For some days code with example can be dowloaded from > http://www2.hydrotec.de/webdemos/be/umlaute.zip > (Compiled mapscript.dll is included. Other dll's can be used from normal > mapserver 4.8.2) > > Benedikt > > PS: I think of this as a bug in mapserver. Should a bug in bugzilla be > opened? > > listuser HH schrieb am 19.04.2006 10:05:13: > > > Hi Benedikt, > > > > thanks for the interest. I have the encoding problem when I try to > > "getLayerByName()". I could get around the problem at this point but I > > think I will have the problem later again. So testing is easy - I just > > use a simple layer with the name "Regierungspr?sidien". When I use this > > string to get the layer by name it doesn't work. To be sure I tried to > > check this string with the name of the layer which I get from > > map.getLayer(0) - which is equal to the other. > > > > My thought was to convert the string before using it in mapscript > > functions. Java brings two things to convert strings - perhaps there are > > more. > > > > 1. make a new String from the old in a special encoding - e.g. --> new > > String(oldString.getBytes(), "ISO8859-1") > > 2. convert chars to different encoding - e.g. [snip] --> > > CharToByteISO8859_1 conv4ISO = new > > CharToByteISO8859_1(); > > char[] cs = layerName.toCharArray(); > > conv4ISO.convert(charArray, 0, charArray.length, > > byteArray, 0, byteArray.length); > > new String(byteArray); > > > > Because I'm not sure about which encodings are used at wich stpes I > > tried some combinations but without luck. I think my code from eclipse > > is CP1252. In the eclipse editor properties I changed this to UTF8 and > > ISO which also didn't work. I tried to I'm not sure what happens when > > mapscript use JNI. Perhaps the string gets converted to UTF8. If this is > > right I see no chance for me to change the string in java because it > > gets converted even if it is already UTF8. I have to say that I'm not > > familiar with this encoding things. If someone has an advice I will > > going on testing. > > > > I think it will be a good thing to have "UTF-8 -> ISO-8859-Conversion" > > like you suggested. At the moment I can't do this because I have no > > possibility to compile the c code. > > > > Best regards, > > > > Norbert > > > > Benedikt Rothe wrote: > > > > >Umberto, Nicol, Norbert, Oliver > > > > > >Umberto wrote > > > > > > > > >>try to run the attached Java source. > > >> > > >> > > >... > > > > > > > > >>"S?dliche Weinstra?e" as the second it will work! > > >> > > >> > > > > > >In my copy of your mail the queryByAttribute.java-program is not > > >attached. Could somebody post program including testdata (or > > >download-url) ? > > > > > >I 'd like to study a running example, because I don't understand > > >how umlaut-conversion from Java to Mapserver-kernel can run > > >properly anyway and I'd like to understand it :-) > > >----------- > > >It seems Norbert found a kind of answer to his question > > > > > > > > > >>is there a way to do the converion in java dircetly? > > >> > > >> > > >He suggested > > > > > > > > > >>Try to convert the String before you set the expression in your code(-> > > >> > > >> > > >String( byte > > > > > > > > >>bytes[], String ) > > >> > > >> > > >Could you be more precisly? I do not understand what must be converted to > > >what. > > >How must this be applied to convert a Java-String to a proper > > >"Mapserver-String" (?) > > >----------- > > >Is somebody willing to try to add an "UTF-8 -> ISO-8859-Conversion" in > > >mapscript_wrap.c for testpurposes? (Even in the case it works, this would > > >not be a real solution because it bypasses swig.) > > > > > >Benedikt > > > > > > > > >UMN MapServer Users List schrieb am > > >14.04.2006 15:23:51: > > > > > > > > > > > >>Olivier, > > >>I GOT IT! > > >> > > >>try to run the attached Java source. If you pass it two arguments the > > >>first being the path to the map file and the second the string to > > >>search for and you pass > > >>"S?dliche Weinstra?e" as the second it will work! > > >> > > >>So why does it fail when "S?dliche Weinstra?e" is inside the Java > > >>code? That is a problem that only happens when javac compiles the > > >>source: javac translates all characters to unicode and in doing that > > >>it gets the german characters wrong. > > >>To solve this give javac the following option: -source 1.4 > > >> > > >>For more see this link: > > > >>http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5046139 > > > >> > > >>On 4/13/06, Umberto Nicoletti wrote: > > >> > > >> > > >>>This is probably not related only to java mapscript, so please read > > >>> > > >>> > > >on. > > > > > > > > >>So I was wrong...but I'll leave the proof to the reader ;-) > > >> > > >>Best regards, > > >>Umberto > > > >> > > >> > > >> > > >>>On 3/30/06, Oliver Wesp wrote: > > >>> > > >>> > > >>>>Dear List, > > >>>> > > >>>>I' struggling with queryByAttributes on an attribute field with > > >>>> > > >>>> > > >german > > > > > > > > >>>>umlauts using java mapscript. > > >>>>The odd thing is that the same thing works fine with php mapscript > > >>>> > > >>>> > > >and > > > > > > > > >>>>when I use expressions in my mapfile. I'm using a shapefile as > > >>>> > > >>>> > > >>datasource. > > > >> > > >> > > >>>Could someone of the other mapserver developers shed some light on > > >>> > > >>> > > >>this issue? > > > >> > > >> > > >>>I have a clue to give: php mapscript is using a different regex > > >>>library and this explains why the match does not happen for Java > > >>>mapscript, while it does happen in php mapscript. If I am right also > > >>>the mapserver cgi should be affected and possibly all other mapscript > > >>>too. > > >>> > > >>>It would be very interesting if someone could report on similar > > >>>experiences with the cgi-bin version of mapserver. > > >>> > > >>>Thanks, > > >>>Umberto > > >>> > > >>> > > >>> > > >>>>Here is what I do: > > >>>> > > >>>>layer.queryByAttributes(map,"KREIS_NAME", "/S?dliche Weinstra?e/", > > > >>>>mapscriptConstants.MS_MULTIPLE); > > >>>>layer.open(); > > >>>>System.out.println( "Result Count: " +layer.getNumResults() ); > > >>>>layer.close(); > > >>>> > > >>>>The result is always null while replacing the qstring with something > > >>>>that doesn't contain special characters (e.g. > > >>>>'Mainz-Bingen') works fine. > > >>>> > > >>>>As noted above the following layer definition in a mapfile works > > >>>> > > >>>> > > >fine > > > > > > > > >>>>LAYER > > >>>> NAME kreis > > >>>> STATUS DEFAULT > > >>>> TYPE polygon > > >>>> DATA "/tmp/subset" > > >>>> TEMPLATE "kreis.html" > > >>>> CLASSITEM KREIS_NAME > > >>>> CLASS > > >>>> NAME Boundary > > >>>> COLOR 128 128 0 > > >>>> OUTLINECOLOR 0 0 0 > > >>>> EXPRESSION /S?dliche Weinstra?e/ > > > >>>> END > > >>>>END > > >>>> > > >>>> > > >>>>but this does not: > > >>>> > > >>>>layer.setClassitem("KREIS_NAME"); > > >>>>classObj cl = new classObj(layer); > > >>>>cl.setName("Classname"); > > >>>>cl.setExpression("/S?dliche Weinstra?e/"); > > > >>>> > > >>>>I use Mapserver 4.8.1 on W2k, Tomcat 5.0.28. > > >>>> > > >>>>I can provide some sample data, just in case someone likes to > > >>>> > > >>>> > > >reproduce. > > > > > > > > >>>>Any help is appreciated. > > >>>> > > >>>>best regards > > >>>>Oliver > > >>>>-- > > >>>>Dipl.-Geogr. Oliver Wesp > > >>>>Gesellschaft fuer geografische Datenverarbeitung > > >>>>Binger Strasse 49-51 > > >>>>D-55218 Ingelheim > > >>>>fon: +49 6132 714818 > > >>>>fax: +49 6132 714828 > > >>>>http: www.gdv.com > > >>>> > > >>>> > > >>>> > > > > > > > > > > > > > > > > > > > > > > > >>is there a way to do the converion in java dircetly? > > >> > > >> > > >He suggested > > > > > > > > > >>Try to convert the String before you set the expression in your code(-> > > >> > > >> > > >String( byte > > > > > > > > >>bytes[], String ) > > >> > > >> > > >Could you be more precisly? I do not understand what must be converted to > > >what. > > >How must this be applied to convert a Java-String to a proper > > >"Mapserver-String" (?) > > >----------- > > >Is somebody willing to try to add an "UTF-8 -> ISO-8859-Conversion" in > > >mapscript_wrap.c for testpurposes? (Even in the case it works, this would > > >not be a real solution because it bypasses swig.) > > > > > >Benedikt > > > > > > > > >UMN MapServer Users List schrieb am > > >14.04.2006 15:23:51: > > > > > > > > > > > >>Olivier, > > >>I GOT IT! > > >> > > >>try to run the attached Java source. If you pass it two arguments the > > >>first being the path to the map file and the second the string to > > >>search for and you pass > > >>"S?dliche Weinstra?e" as the second it will work! > > >> > > >>So why does it fail when "S?dliche Weinstra?e" is inside the Java > > >>code? That is a problem that only happens when javac compiles the > > >>source: javac translates all characters to unicode and in doing that > > >>it gets the german characters wrong. > > >>To solve this give javac the following option: -source 1.4 > > >> > > >>For more see this link: > > > >>http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5046139 > > > >> > > >>On 4/13/06, Umberto Nicoletti wrote: > > >> > > >> > > >>>This is probably not related only to java mapscript, so please read > > >>> > > >>> > > >on. > > > > > > > > >>So I was wrong...but I'll leave the proof to the reader ;-) > > >> > > >>Best regards, > > >>Umberto > > > >> > > >> > > >> > > >>>On 3/30/06, Oliver Wesp wrote: > > >>> > > >>> > > >>>>Dear List, > > >>>> > > >>>>I' struggling with queryByAttributes on an attribute field with > > >>>> > > >>>> > > >german > > > > > > > > >>>>umlauts using java mapscript. > > >>>>The odd thing is that the same thing works fine with php mapscript > > >>>> > > >>>> > > >and > > > > > > > > >>>>when I use expressions in my mapfile. I'm using a shapefile as > > >>>> > > >>>> > > >>datasource. > > > >> > > >> > > >>>Could someone of the other mapserver developers shed some light on > > >>> > > >>> > > >>this issue? > > > >> > > >> > > >>>I have a clue to give: php mapscript is using a different regex > > >>>library and this explains why the match does not happen for Java > > >>>mapscript, while it does happen in php mapscript. If I am right also > > >>>the mapserver cgi should be affected and possibly all other mapscript > > >>>too. > > >>> > > >>>It would be very interesting if someone could report on similar > > >>>experiences with the cgi-bin version of mapserver. > > >>> > > >>>Thanks, > > >>>Umberto > > >>> > > >>> > > >>> > > >>>>Here is what I do: > > >>>> > > >>>>layer.queryByAttributes(map,"KREIS_NAME", "/S?dliche Weinstra?e/", > > > >>>>mapscriptConstants.MS_MULTIPLE); > > >>>>layer.open(); > > >>>>System.out.println( "Result Count: " +layer.getNumResults() ); > > >>>>layer.close(); > > >>>> > > >>>>The result is always null while replacing the qstring with something > > >>>>that doesn't contain special characters (e.g. > > >>>>'Mainz-Bingen') works fine. > > >>>> > > >>>>As noted above the following layer definition in a mapfile works > > >>>> > > >>>> > > >fine > > > > > > > > >>>>LAYER > > >>>> NAME kreis > > >>>> STATUS DEFAULT > > >>>> TYPE polygon > > >>>> DATA "/tmp/subset" > > >>>> TEMPLATE "kreis.html" > > >>>> CLASSITEM KREIS_NAME > > >>>> CLASS > > >>>> NAME Boundary > > >>>> COLOR 128 128 0 > > >>>> OUTLINECOLOR 0 0 0 > > >>>> EXPRESSION /S?dliche Weinstra?e/ > > > >>>> END > > >>>>END > > >>>> > > >>>> > > >>>>but this does not: > > >>>> > > >>>>layer.setClassitem("KREIS_NAME"); > > >>>>classObj cl = new classObj(layer); > > >>>>cl.setName("Classname"); > > >>>>cl.setExpression("/S?dliche Weinstra?e/"); > > > >>>> > > >>>>I use Mapserver 4.8.1 on W2k, Tomcat 5.0.28. > > >>>> > > >>>>I can provide some sample data, just in case someone likes to > > >>>> > > >>>> > > >reproduce. > > > > > > > > >>>>Any help is appreciated. > > >>>> > > >>>>best regards > > >>>>Oliver > > >>>>-- > > >>>>Dipl.-Geogr. Oliver Wesp > > >>>>Gesellschaft fuer geografische Datenverarbeitung > > >>>>Binger Strasse 49-51 > > >>>>D-55218 Ingelheim > > >>>>fon: +49 6132 714818 > > >>>>fax: +49 6132 714828 > > >>>>http: www.gdv.com > > >>>> > > >>>> > > >>>> > > > > > > > > > > > > > > From umn-ms at HYDROTEC.DE Wed Apr 19 15:25:12 2006 From: umn-ms at HYDROTEC.DE (Benedikt Rothe) Date: Thu, 20 Apr 2006 00:25:12 +0200 Subject: Java Mapscript - querybyattribut In-Reply-To: <4445EF39.2030008@herzsys.de> Message-ID: Hi all For experimental purpose I added a "UTF-8 -> ISO-8859-Conversion" in two functions of mapscript_wrap.c The functions are the JNI-Implementations of mapObj.getLayerByName and layerObj.queryByAttributes. I testet with the QueryByAttribute-Program Umberto send and with a Shapefile (no database). I tested to find the layer named "???????" and in this layer the regular-expression "S?den". On my Windows-machine the results seem to be correct for the Command-Line- parameter-case and for the hardcoded-case. The implementation is experimental only. If strings are longer than 500 chars, unforeseeable things may happen. In practice one should think twice wether to use this kind of implementation or to use the build-in Java-encoders from JNI level. But the really difficult question is how anything like this could be reasonably incorporated with swig. I have no idea! Umberto? What do you think? Norbert: To be honorable, I don't think it is promising to change the Strings in the higher Java-level. For some days code with example can be dowloaded from http://www2.hydrotec.de/webdemos/be/umlaute.zip (Compiled mapscript.dll is included. Other dll's can be used from normal mapserver 4.8.2) Benedikt PS: I think of this as a bug in mapserver. Should a bug in bugzilla be opened? listuser HH schrieb am 19.04.2006 10:05:13: > Hi Benedikt, > > thanks for the interest. I have the encoding problem when I try to > "getLayerByName()". I could get around the problem at this point but I > think I will have the problem later again. So testing is easy - I just > use a simple layer with the name "Regierungspr?sidien". When I use this > string to get the layer by name it doesn't work. To be sure I tried to > check this string with the name of the layer which I get from > map.getLayer(0) - which is equal to the other. > > My thought was to convert the string before using it in mapscript > functions. Java brings two things to convert strings - perhaps there are > more. > > 1. make a new String from the old in a special encoding - e.g. --> new > String(oldString.getBytes(), "ISO8859-1") > 2. convert chars to different encoding - e.g. [snip] --> > CharToByteISO8859_1 conv4ISO = new > CharToByteISO8859_1(); > char[] cs = layerName.toCharArray(); > conv4ISO.convert(charArray, 0, charArray.length, > byteArray, 0, byteArray.length); > new String(byteArray); > > Because I'm not sure about which encodings are used at wich stpes I > tried some combinations but without luck. I think my code from eclipse > is CP1252. In the eclipse editor properties I changed this to UTF8 and > ISO which also didn't work. I tried to I'm not sure what happens when > mapscript use JNI. Perhaps the string gets converted to UTF8. If this is > right I see no chance for me to change the string in java because it > gets converted even if it is already UTF8. I have to say that I'm not > familiar with this encoding things. If someone has an advice I will > going on testing. > > I think it will be a good thing to have "UTF-8 -> ISO-8859-Conversion" > like you suggested. At the moment I can't do this because I have no > possibility to compile the c code. > > Best regards, > > Norbert > > Benedikt Rothe wrote: > > >Umberto, Nicol, Norbert, Oliver > > > >Umberto wrote > > > > > >>try to run the attached Java source. > >> > >> > >... > > > > > >>"S?dliche Weinstra?e" as the second it will work! > >> > >> > > > >In my copy of your mail the queryByAttribute.java-program is not > >attached. Could somebody post program including testdata (or > >download-url) ? > > > >I 'd like to study a running example, because I don't understand > >how umlaut-conversion from Java to Mapserver-kernel can run > >properly anyway and I'd like to understand it :-) > >----------- > >It seems Norbert found a kind of answer to his question > > > > > >>is there a way to do the converion in java dircetly? > >> > >> > >He suggested > > > > > >>Try to convert the String before you set the expression in your code(-> > >> > >> > >String( byte > > > > > >>bytes[], String ) > >> > >> > >Could you be more precisly? I do not understand what must be converted to > >what. > >How must this be applied to convert a Java-String to a proper > >"Mapserver-String" (?) > >----------- > >Is somebody willing to try to add an "UTF-8 -> ISO-8859-Conversion" in > >mapscript_wrap.c for testpurposes? (Even in the case it works, this would > >not be a real solution because it bypasses swig.) > > > >Benedikt > > > > > >UMN MapServer Users List schrieb am > >14.04.2006 15:23:51: > > > > > > > >>Olivier, > >>I GOT IT! > >> > >>try to run the attached Java source. If you pass it two arguments the > >>first being the path to the map file and the second the string to > >>search for and you pass > >>"S?dliche Weinstra?e" as the second it will work! > >> > >>So why does it fail when "S?dliche Weinstra?e" is inside the Java > >>code? That is a problem that only happens when javac compiles the > >>source: javac translates all characters to unicode and in doing that > >>it gets the german characters wrong. > >>To solve this give javac the following option: -source 1.4 > >> > >>For more see this link: > >>http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5046139 > >> > >>On 4/13/06, Umberto Nicoletti wrote: > >> > >> > >>>This is probably not related only to java mapscript, so please read > >>> > >>> > >on. > > > > > >>So I was wrong...but I'll leave the proof to the reader ;-) > >> > >>Best regards, > >>Umberto > >> > >> > >> > >>>On 3/30/06, Oliver Wesp wrote: > >>> > >>> > >>>>Dear List, > >>>> > >>>>I' struggling with queryByAttributes on an attribute field with > >>>> > >>>> > >german > > > > > >>>>umlauts using java mapscript. > >>>>The odd thing is that the same thing works fine with php mapscript > >>>> > >>>> > >and > > > > > >>>>when I use expressions in my mapfile. I'm using a shapefile as > >>>> > >>>> > >>datasource. > >> > >> > >>>Could someone of the other mapserver developers shed some light on > >>> > >>> > >>this issue? > >> > >> > >>>I have a clue to give: php mapscript is using a different regex > >>>library and this explains why the match does not happen for Java > >>>mapscript, while it does happen in php mapscript. If I am right also > >>>the mapserver cgi should be affected and possibly all other mapscript > >>>too. > >>> > >>>It would be very interesting if someone could report on similar > >>>experiences with the cgi-bin version of mapserver. > >>> > >>>Thanks, > >>>Umberto > >>> > >>> > >>> > >>>>Here is what I do: > >>>> > >>>>layer.queryByAttributes(map,"KREIS_NAME", "/S?dliche Weinstra?e/", > >>>>mapscriptConstants.MS_MULTIPLE); > >>>>layer.open(); > >>>>System.out.println( "Result Count: " +layer.getNumResults() ); > >>>>layer.close(); > >>>> > >>>>The result is always null while replacing the qstring with something > >>>>that doesn't contain special characters (e.g. > >>>>'Mainz-Bingen') works fine. > >>>> > >>>>As noted above the following layer definition in a mapfile works > >>>> > >>>> > >fine > > > > > >>>>LAYER > >>>> NAME kreis > >>>> STATUS DEFAULT > >>>> TYPE polygon > >>>> DATA "/tmp/subset" > >>>> TEMPLATE "kreis.html" > >>>> CLASSITEM KREIS_NAME > >>>> CLASS > >>>> NAME Boundary > >>>> COLOR 128 128 0 > >>>> OUTLINECOLOR 0 0 0 > >>>> EXPRESSION /S?dliche Weinstra?e/ > >>>> END > >>>>END > >>>> > >>>> > >>>>but this does not: > >>>> > >>>>layer.setClassitem("KREIS_NAME"); > >>>>classObj cl = new classObj(layer); > >>>>cl.setName("Classname"); > >>>>cl.setExpression("/S?dliche Weinstra?e/"); > >>>> > >>>>I use Mapserver 4.8.1 on W2k, Tomcat 5.0.28. > >>>> > >>>>I can provide some sample data, just in case someone likes to > >>>> > >>>> > >reproduce. > > > > > >>>>Any help is appreciated. > >>>> > >>>>best regards > >>>>Oliver > >>>>-- > >>>>Dipl.-Geogr. Oliver Wesp > >>>>Gesellschaft fuer geografische Datenverarbeitung > >>>>Binger Strasse 49-51 > >>>>D-55218 Ingelheim > >>>>fon: +49 6132 714818 > >>>>fax: +49 6132 714828 > >>>>http: www.gdv.com > >>>> > >>>> > >>>> > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kris_rock82 at YAHOO.COM Wed Apr 19 13:52:22 2006 From: kris_rock82 at YAHOO.COM (kris rock) Date: Wed, 19 Apr 2006 13:52:22 -0700 Subject: problem dynamically creating raster layers Message-ID: Hello all, i am trying to add 2 raster layers dynamically from my php-mapscript. The problem i am facing is these rasters layers are displayed on top of the other vector layers which are in the mapfile, but when i add these raster layers in the mapfile they display correctly, i am not sure if i am doing anything wrong, this is my mapscript $rasterlayer = ms_newLayerObj($map); $rasterlayer->set(name,raster1); $rasterlayer->set(type,MS_LAYER_RASTER); $rasterlayer->set(status,MS_ON); $rasterlayer->set(data,"somepath"); $rasterlayer = ms_newLayerObj($map); $rasterlayer->set("name","raster3"); $rasterlayer->set("type",MS_LAYER_RASTER); $rasterlayer->set("status",MS_ON); $rasterlayer->set(data,"somepath"); //all the vector layers are displayed after this with their properties set one more problem i have with this is, i have to create a layer object twice, i give the same name or a different doesnt matter but if i dont create the layer object again it throws an error saying the first raster layer(raster1 in my case) failed to draw .. Thanks for your time .... --kris --------------------------------- How low will we go? Check out Yahoo! Messenger?s low PC-to-Phone call rates. -------------- next part -------------- An HTML attachment was scrubbed... URL: From crazygecko at GMAIL.COM Thu Apr 20 01:45:13 2006 From: crazygecko at GMAIL.COM (Xin) Date: Thu, 20 Apr 2006 09:45:13 +0100 Subject: HiLiting / selecting multiple features In-Reply-To: Message-ID: Hi Steve, Thanks for the response. It's always good to know there's someone out there that can help! Here's our situation. We use MapServer CGI wrapped in a C# application. The app would call MapServer with various CGI parameters depending on what the user is doing in the application. One functionality we need is to hilite features on a map and for it to return results of features from other layers intersecting it. The return results party is working great. A single feature can be hilited at the moment using mode=featurenquery, slayer, and passing img.x and img.y. For example, this might be a building parameter. This works to a degree. We haven't been able to control the colour correctly with QUERYMAP and COLOR. But that's another issue. Hiliting multiple features is what we are after. We would like our users to be able to click on a feature on the map through our application. Then we would hilite this through MapServer. Then the user can click on more features. We'd like the initial feature, and any features clicked on after to be all hilighted. e.g. user clicks on three building parameters. The problem we are facing is hiliting multiple features. Do you have any suggestions on how we may do this? Xin On 13/04/06, Steve Lime wrote: > > Xin: There's a big difference between a feature and a shape though. The > imgshape parameter was intended for use with something really simple > like a DHTML digitizer so at this point it only supports a single feature. > It > would not be hard to hack mapserv.c to allow mulitple instances of > imgshape to build up a more complex feature (holes, multiple outer rings). > > I'm not sure if that's what you need though. There are other ways to > highlight features. Perhaps you could describe the steps in which the > application is used along with desired outputs. That would make it easier > to suggest alternatives. > > Steve > > >>> Xin 4/13/2006 4:51:47 AM >>> > We are user MapServer cgi to hilite features the user select on. This is > done by using mode=featurequery and slayer. We need to selectemultiple > features, and have them hilighted. Having looked at the docs, there > doesn't > seem to be any obvious ways of doing this. > > One possible solution is to use IMGSHAPE and nquery. This is documented > as: > > Shape given in image coordinates. > > An arbitrary polygon shape to be used for query purposes. Multiple > instances > simply add parts to the shape so it is possible to construct a shape with > holes. Used with modes NQUERY and NQUERYMAP. > But using imgshape would require one than one polygon being passed > through. > Rick asked this in March without getting a response. Is it possible to > pass > multiple polygons using imgshape? > > Any other suggestions are more than welcome. > > Cheers, > Xin > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at MMMTIKE.FI Thu Apr 20 04:39:37 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Thu, 20 Apr 2006 14:39:37 +0300 Subject: Ka-Map sample application with MS4W v. 1.5.0 Message-ID: Hi, I used to have some of my own mapfiles added to ka-Map sample application and they worked fine with MS4W version 1.4.1. Now when I installed MS4W version 1.5.0 those are not working anymore, not even the GMap75 application. Might there be some principal difference between these versions that makes ka-Map sample application unusable, or is it just some minory thing? I have already changed the line $szPHPMapScriptModule = 'php_mapscript_46.'.PHP_SHLIB_SUFFIX in ka-Map-0.2 config.php to refer to php_mapscript_48 but that did not help too much. The ka-Map sample applications user interface opens but the kaMap selection window remains empty. By the way, the Oracle connection in MS4W works just great, thank you for that. Regards, Jukka Rahkonen From jamesdracup at HOTMAIL.COM Thu Apr 20 04:42:09 2006 From: jamesdracup at HOTMAIL.COM (James Dracup) Date: Thu, 20 Apr 2006 12:42:09 +0100 Subject: Java Mapscript - problems loading .map file on windows - same code fine in linux Message-ID: Hi, I'm have a fairly annoying issue when trying to load a map file into a java mapObj object when running in windows XP. I'm using mapserver 4.8.3 as distributed with ms4w 1.5.1 - i'm also using the mapscript.dll and mapscript.jar as distributed with that ms4w. My app is a servlet that runs under tomcat 5.5, with a sun 1.5 jvm. I'm fairly confident my paths etc. are fine. The java code really just boils down to one line: mapObj mapobj = new mapObj(sMapFilename); The exception is thrown by that statement. And is.. java.lang.UnknownError: No such file or directory edu.umn.gis.mapscript.mapscriptJNI.new_mapObj(Native Method) edu.umn.gis.mapscript.mapObj.(mapObj.java:312) myapp.ModifiedMapObj.(ModifiedMapObj.java:48) myapp.Test.doGet(Test.java:37) javax.servlet.http.HttpServlet.service(HttpServlet.java:689) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) I'm sure it finds my map file fine, as if you pass a messed up string it gives a different error (java.io.IOException). I'm also confident there's nothing wrong with my .map file as the test one is simple (map file attached below anyway), everything is in the same directory and it works fine with a cgi wms request on the same windows machine. And... (here's the annoying bit) ..it also works fine when I deploy exactly the same compiled code with exactly the same .map file and shp files on my linux (fedora) box. On that box it's a slightly different version of mapserver/mapscript (compiled them myself), tomcat 5 not 5.5 and a sun 1.4 jvm - but still, why does the code work on that box and not on windows? If anyone has any ideas at all it would be much appreciated? Thanks, James ---.map file contents--- # # Start of WMS Server map file MAP NAME WMS_server IMAGECOLOR 250 250 250 SIZE 800 600 STATUS ON PROJECTION "init=epsg:27700" END EXTENT 275000 180000 285000 190000 SYMBOLSET OSMMsymbolsTest.sym FONTSET fonts.txt UNITS METERS WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" END LAYER NAME TopographicArea METADATA "wms_title" "TopographicArea" END TYPE POLYGON STATUS ON DATA TopographicArea PROJECTION "init=epsg:27700" END CLASS NAME "default" STYLE COLOR 255 204 153 OUTLINECOLOR 0 0 0 END END END END # Map File From Jukka.Rahkonen at MMMTIKE.FI Thu Apr 20 05:32:04 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Thu, 20 Apr 2006 15:32:04 +0300 Subject: Mapserver as a WMS client behind a proxy (MS4W) Message-ID: Hi again, Now I would like to use external WMS service, but also my own WFS server (not Mapserver) at the same time. And that server in _inside_ the proxy and should be connected without http_proxy. Might it be possible to give proxy exceptions to curl in some way? Regards, -Jukka- >Mapserver WMS client uses curl, and curl listens to the http_proxy >environment variable. >You need to set your http_proxy variable using SetEnv in the httpd.conf and >restart Apache. >SetEnv "http_proxy" "http://myproxy.com" >Best regards, >Bart From umn-ms at HYDROTEC.DE Thu Apr 20 05:38:25 2006 From: umn-ms at HYDROTEC.DE (Benedikt Rothe) Date: Thu, 20 Apr 2006 14:38:25 +0200 Subject: Java Mapscript - problems loading .map file on windows - same code fine in linux In-Reply-To: Message-ID: Hi Maybe http://article.gmane.org/gmane.comp.gis.mapserver.user/18799/ is helpfull. Benedikt UMN MapServer Users List schrieb am 20.04.2006 13:42:09: > Hi, > > I'm have a fairly annoying issue when trying to load a map file into a java > mapObj object when running in windows XP. I'm using mapserver 4.8.3 as > distributed with ms4w 1.5.1 - i'm also using the mapscript.dll and > mapscript.jar as distributed with that ms4w. My app is a servlet that runs > under tomcat 5.5, with a sun 1.5 jvm. I'm fairly confident my paths etc. > are fine. > > The java code really just boils down to one line: > > mapObj mapobj = new mapObj(sMapFilename); > > The exception is thrown by that statement. And is.. > > java.lang.UnknownError: No such file or directory > edu.umn.gis.mapscript.mapscriptJNI.new_mapObj(Native Method) > edu.umn.gis.mapscript.mapObj.(mapObj.java:312) > myapp.ModifiedMapObj.(ModifiedMapObj.java:48) > myapp.Test.doGet(Test.java:37) > javax.servlet.http.HttpServlet.service(HttpServlet.java:689) > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > I'm sure it finds my map file fine, as if you pass a messed up string it > gives a different error (java.io.IOException). > > I'm also confident there's nothing wrong with my .map file as the test one > is simple (map file attached below anyway), everything is in the same > directory and it works fine with a cgi wms request on the same windows > machine. And... > (here's the annoying bit) > ..it also works fine when I deploy exactly the same compiled code with > exactly the same .map file and shp files on my linux (fedora) box. On that > box it's a slightly different version of mapserver/mapscript (compiled them > myself), tomcat 5 not 5.5 and a sun 1.4 jvm - but still, why does the code > work on that box and not on windows? > > If anyone has any ideas at all it would be much appreciated? > > Thanks, James > > ---.map file contents--- > > # > # Start of WMS Server map file > MAP > NAME WMS_server > IMAGECOLOR 250 250 250 > SIZE 800 600 > STATUS ON > PROJECTION > "init=epsg:27700" > END > EXTENT 275000 180000 285000 190000 > > SYMBOLSET OSMMsymbolsTest.sym > FONTSET fonts.txt > UNITS METERS > > WEB > IMAGEPATH "/ms4w/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > END > > LAYER > NAME TopographicArea > METADATA > "wms_title" "TopographicArea" > END > TYPE POLYGON > STATUS ON > DATA TopographicArea > PROJECTION > "init=epsg:27700" > END > CLASS > NAME "default" > STYLE > COLOR 255 204 153 > OUTLINECOLOR 0 0 0 > END > END > END > END # Map File -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Thu Apr 20 05:54:39 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Thu, 20 Apr 2006 14:54:39 +0200 Subject: Mapserver as a WMS client behind a proxy (MS4W) In-Reply-To: Message-ID: Yes, use the no_proxy environment variable. Best regards, Bart > Hi again, > > Now I would like to use external WMS service, but also my own WFS server > (not Mapserver) at the same time. And that server in _inside_ the proxy > and should be connected without http_proxy. Might it be possible to give > proxy exceptions to curl in some way? > > Regards, > > -Jukka- > >>Mapserver WMS client uses curl, and curl listens to the http_proxy >>environment variable. > >>You need to set your http_proxy variable using SetEnv in the httpd.conf >> and >>restart Apache. > >>SetEnv "http_proxy" "http://myproxy.com" > >>Best regards, >>Bart > > From Mark.Adams at DPRA.COM Thu Apr 20 07:37:44 2006 From: Mark.Adams at DPRA.COM (Mark Adams) Date: Thu, 20 Apr 2006 09:37:44 -0500 Subject: commas in CONNECTION string cause MapServer to fail Message-ID: Hi all, We're working on an application that uses a virtual spatial layer coming from an Oracle database using WKT geometry. For performance and presentation reasons, we are setting the CONNECTION string dynamically based on the user's selected parameters on a query form. The CONNECTION is being set by including the OGR virtual layer definition in-line, such as: CONNECTION " ODBC:system/normin at normin_dev SELECT * FROM MINFWHSE_P1.MINFT_WH2_REFER_REFERENCE WHERE MINFWHSE_P1.MINFT_WH2_REFER_REFERENCE.C_REFER_REFERENCE_NBR IS NOT NULL wkbPolygon " The above example works fine. However, when we include commas in the SrcSQL element, such as "SELECT FIELD1,FIELD2 FROM TABLE1,TABLE2", mapserver crashes with: " [MapServer Error]: msOGRFileOpen(): Open failed for OGR connection ` ODBC:system/normin at normin_dev SELECT MINFWHSE_P1.MINFT_WH2_REFER_REFERENCE.C_REFER_REFERENCE_NBR'. Parse error at EOF, not all elements have been closed, starting with SrcSQL " Is this behaviour expected, i.e. are commas disallowed in the MAP file, and if so is there a way to escape them? I can put the exact same string in an OVF file and set the CONNECTION to that file, and then it works, so I know there is nothing wrong with the string itself. Thanks. ------------------------------ Mark Adams Senior Analyst & Project Manager Cuesta Systems (DPRA Canada) 5230 South Service Road Burlington, ON L7L 5K2 Phone: 905-333-4544 x14 Fax: 905-333-0455 Email: mark.adams at dpra.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekeres.tamas at FREEMAIL.HU Thu Apr 20 08:06:14 2006 From: szekeres.tamas at FREEMAIL.HU (=?ISO-8859-2?Q?Szekeres_Tam=E1s?=) Date: Thu, 20 Apr 2006 17:06:14 +0200 Subject: commas in CONNECTION string cause MapServer to fail Message-ID: There is a bug in connection with this problem http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1549 However it has not been fixed yet as far as I know. Best Regards Tamas Szekeres On Thu, 20 Apr 2006 09:37:44 -0500, Mark Adams wrote: >Hi all, > > > >We're working on an application that uses a virtual spatial layer coming >from an Oracle database using WKT geometry. For performance and >presentation reasons, we are setting the CONNECTION string dynamically >based on the user's selected parameters on a query form. The CONNECTION >is being set by including the OGR virtual layer definition in-line, such >as: > > > >CONNECTION " > > > > ODBC:system/normin at normin_dev > > SELECT * FROM MINFWHSE_P1.MINFT_WH2_REFER_REFERENCE >WHERE MINFWHSE_P1.MINFT_WH2_REFER_REFERENCE.C_REFER_REFERENCE_NBR IS NOT >NULL > > wkbPolygon > > > > > >" > > > >The above example works fine. However, when we include commas in the >SrcSQL element, such as "SELECT FIELD1,FIELD2 FROM TABLE1,TABLE2", >mapserver crashes with: > > > >" > >[MapServer Error]: msOGRFileOpen(): Open failed for OGR connection >` > > > > ODBC:system/normin at normin_dev > > SELECT >MINFWHSE_P1.MINFT_WH2_REFER_REFERENCE.C_REFER_REFERENCE_NBR'. > >Parse error at EOF, not all elements have been closed, > >starting with SrcSQL > >" > > > >Is this behaviour expected, i.e. are commas disallowed in the MAP file, >and if so is there a way to escape them? I can put the exact same string >in an OVF file and set the CONNECTION to that file, and then it works, >so I know there is nothing wrong with the string itself. > > > >Thanks. > > > >------------------------------ > >Mark Adams > >Senior Analyst & Project Manager > >Cuesta Systems (DPRA Canada) > >5230 South Service Road > >Burlington, ON L7L 5K2 > >Phone: 905-333-4544 x14 > >Fax: 905-333-0455 > >Email: mark.adams at dpra.com > > > > _______________________________________________________________________________ Hogyan szerezz ?j ?ll?st? Regisztr?lj, ?ll?tsd be a felt?teleket, ?s naponta ?j, neked megfelel? aj?nlatok ?rkeznek emailc?medre. Jobline ?ll?sposta: http://ad.adverticum.net/b/cl,1,6022,98196,159883/click.prm From Mark.Adams at DPRA.COM Thu Apr 20 08:19:05 2006 From: Mark.Adams at DPRA.COM (Mark Adams) Date: Thu, 20 Apr 2006 10:19:05 -0500 Subject: commas in CONNECTION string cause MapServer to fail Message-ID: I did see that bug, however it seemed to be specifically about quotation marks, whereas my example is failing on commas - a much more common problem with SQL I think. Thanks. ------------------------------ Mark Adams Senior Analyst & Project Manager Cuesta Systems (DPRA Canada) 5230 South Service Road Burlington, ON L7L 5K2 Phone: 905-333-4544 x14 Fax: 905-333-0455 Email: mark.adams at dpra.com -----Original Message----- From: Szekeres Tam?s [mailto:szekeres.tamas at freemail.hu] Sent: April 20, 2006 11:06 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Cc: Mark Adams Subject: Re: commas in CONNECTION string cause MapServer to fail There is a bug in connection with this problem http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1549 However it has not been fixed yet as far as I know. Best Regards Tamas Szekeres On Thu, 20 Apr 2006 09:37:44 -0500, Mark Adams wrote: >Hi all, > > > >We're working on an application that uses a virtual spatial layer coming >from an Oracle database using WKT geometry. For performance and >presentation reasons, we are setting the CONNECTION string dynamically >based on the user's selected parameters on a query form. The CONNECTION >is being set by including the OGR virtual layer definition in-line, such >as: > > > >CONNECTION " > > > > ODBC:system/normin at normin_dev > > SELECT * FROM MINFWHSE_P1.MINFT_WH2_REFER_REFERENCE >WHERE MINFWHSE_P1.MINFT_WH2_REFER_REFERENCE.C_REFER_REFERENCE_NBR IS NOT >NULL > > wkbPolygon > > > > > >" > > > >The above example works fine. However, when we include commas in the >SrcSQL element, such as "SELECT FIELD1,FIELD2 FROM TABLE1,TABLE2", >mapserver crashes with: > > > >" > >[MapServer Error]: msOGRFileOpen(): Open failed for OGR connection >` > > > > ODBC:system/normin at normin_dev > > SELECT >MINFWHSE_P1.MINFT_WH2_REFER_REFERENCE.C_REFER_REFERENCE_NBR'. > >Parse error at EOF, not all elements have been closed, > >starting with SrcSQL > >" > > > >Is this behaviour expected, i.e. are commas disallowed in the MAP file, >and if so is there a way to escape them? I can put the exact same string >in an OVF file and set the CONNECTION to that file, and then it works, >so I know there is nothing wrong with the string itself. > > > >Thanks. > > > >------------------------------ > >Mark Adams > >Senior Analyst & Project Manager > >Cuesta Systems (DPRA Canada) > >5230 South Service Road > >Burlington, ON L7L 5K2 > >Phone: 905-333-4544 x14 > >Fax: 905-333-0455 > >Email: mark.adams at dpra.com > > > > _______________________________________________________________________________ Hogyan szerezz ?j ?ll?st? Regisztr?lj, ?ll?tsd be a felt?teleket, ?s naponta ?j, neked megfelel? aj?nlatok ?rkeznek emailc?medre. Jobline ?ll?sposta: http://ad.adverticum.net/b/cl,1,6022,98196,159883/click.prm From szekeres.tamas at FREEMAIL.HU Thu Apr 20 08:20:47 2006 From: szekeres.tamas at FREEMAIL.HU (=?ISO-8859-2?Q?Szekeres_Tam=E1s?=) Date: Thu, 20 Apr 2006 17:20:47 +0200 Subject: Problem with Encoding Message-ID: You might want to try ENCODING ISO-8859-2 in your map file. Best Regards, Tamas Szekeres On Wed, 19 Apr 2006 23:14:05 +0200, Martin Krempl wrote: >Hi, I?ve got some problem with encoding text. >I?m using MapServer 4.8.1, PHP 4.3.11, WinXP or Linux. >I?ve got Postgres database, encoding my database is UTF-8. When I try >print layer with labels some characters are displayed wrong (matching >ISO-8859-2 charset). > >/Here is definition of layer/ > >LAYER > NAME zastavky > DATA "the_geom from zastavky" > STATUS ON > TYPE POINT > LABELITEM smer > CLASS > NAME "zeleznice" > COLOR 0 0 0 > SYMBOL 'bus' > LABEL > COLOR 0 0 0 > SIZE tiny > FONT 'tnr' > ENCODING 'UTF-8' > END > END > END > > >I have got on my system ICONV library instaled. Does anybody know what >is wrong in my solution. > >Thanks Martin Krempl >========================================================================= _______________________________________________________________________________ Hogyan szerezz ?j ?ll?st? Regisztr?lj, ?ll?tsd be a felt?teleket, ?s naponta ?j, neked megfelel? aj?nlatok ?rkeznek emailc?medre. Jobline ?ll?sposta: http://ad.adverticum.net/b/cl,1,6022,98196,159883/click.prm From sgillies at FRII.COM Thu Apr 20 08:53:12 2006 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 20 Apr 2006 09:53:12 -0600 Subject: Mapserver performance issue: why so much slower? In-Reply-To: Message-ID: On Apr 19, 2006, at 2:32 PM, Brent Wood wrote: > Hi, > > I have prototyped some background map data to be served by > Mapserver. There are > about 7Gb of Postgis data and 4Gb of images, The images comprise 3 > zoom layers, > of 2, 100 & 800 tiles each, each addressed via a shapefile > tileindex. Just > using the basic CGI mapserv application & a mapfile. > > The prototype system is an AMD 64bit 3500+ cpu, with 1Gb memory & 2 > 80Gb SATA > drives. The PostGIS database is on a software RAID0 partition with > a nominal > 100Mb/sec I/O. It is running SUSE 9.3 A64 with all the GIS related > apps > compiled from scratch so they are all 64bit apps. I'm more than > pleased with > the performance. > > I have only ftp & remote Postgres access to the production server... > (don't ask !!!!! :-) so am limited in what I can do (even more than > my normal > limitations). > > The server this is to be implemented on is running a Java digital > asset > management application as an image database under Windows 2k3 > server. Mapserver > is implemented only as a Java mapscript capability, embedded in the > application, to provide a location based facility for selecting > images. > > The server is supposedly an Intel 3.5Ghz hyperthreaded cpu with > 3.5Gb memory & > a reasonable SCSI RAID array. Postgres performance seems fine, so I > don't think > it is a database performance issue (but I could be wrong about > this- our tests > have been not been for large geometry objects such as are retrieved by > mapserver, but for large numbers of small tuples) > > Mapserver, however, is very slow. It is taking about 5x as long to > render the > maps with only 20% of the data being implemented in the mapfile & > no rasters. > > Also, unlike the Linux box, repeat accesses/redraws do not speed up > compared to > the original (Linux vs Windows caching perhaps?) > > Does anyone have any suggestions/ideas about the performance of > Java mapscript > vs cgi mapserver, Linux 64bit vs Windows 32bit, Intel vs AMD, etc. > There are so > many points of difference, & I'd like to narrow my search for the > basic > cause/solution if at all possible. > > We may be able to stick a Linux A64 box as the postgis/mapserver > server, but if > it is a Java mapscript vs CGI mapserve issue, this may not do > anything to help. > > Running a separate WMS Linux mapserver server & the image db as a > Javascript > WMS client will (as I understand it) remove virtually all the load > from the > Windows box, so may be a suitable solution. Any comments on this > approach? Is > it feasible with Java mapscript? > > > Thanks, > > Brent Wood Brent, I'm not surprised that a mapscript application would be slower than the CGI. Remember, the CGI gets more use and abuse, and has been continually profiled and improved. Your Java developers may have produced less efficient code. I'm a Python mapscript user and find that I have to be very diligent if my Python apps are to keep up with the CGI program. Now, some speculation. I'm not much of a Java developer, but I recall that Java is quite thread-happy, yes? MapServer has a number of coarse-grained locks around code that is not thread-safe. In particular: - mapfile parsing - class expression parsing and evaluation - raster IO Your developers may want to check and see if these have become bottlenecks in your app. cheers, Sean --- Sean Gillies http://zcologia.com From John.C.Cartwright at NOAA.GOV Thu Apr 20 09:23:31 2006 From: John.C.Cartwright at NOAA.GOV (John Cartwright) Date: Thu, 20 Apr 2006 10:23:31 -0600 Subject: help w/ WFS request Message-ID: Hi Bart, yes, I did - same results: -95,26.5 -94.75,26.75 "EPSG:4269" and "epsg:4269" produce the same results in the request, but the mapfile seems to only recognize the lowercase representation. from the mapfile: DATA "SHAPE FROM BATHYUSER.SOUNDING USING SRID 8265" PROJECTION "init=epsg:4269" END Is there a way that I can see any more detail on how mapserver "sees" the request? Thanks! -- john Eijnden, B. van den (Bart) wrote: > Have you tried Perry's suggestion to use: > > > -95,26.5 -94.75,26.75 > > > ? > > What's does your LAYER's PROJECTION block look like? > > Best regards, > Bart > From bartvde at XS4ALL.NL Thu Apr 20 09:37:21 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Thu, 20 Apr 2006 18:37:21 +0200 Subject: help w/ WFS request In-Reply-To: <4447B583.70407@noaa.gov> Message-ID: Hi John, it's becoming a strange problem ... you could try Mapserver "debugging", see: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?DebuggingMapserver Can you first make sure your WFS is working by just trying a HTTP GET request to your WFS, so try: ?map=.....&service=WFS&request=GetFeature&version=1.0.0&typename=soundings&maxfeatures=10 Best regards, Bart John Cartwright wrote: > Hi Bart, > > yes, I did - same results: > > > -95,26.5 -94.75,26.75 > > > "EPSG:4269" and "epsg:4269" produce the same results in the request, > but the mapfile seems to only recognize the lowercase representation. > > from the mapfile: > DATA "SHAPE FROM BATHYUSER.SOUNDING USING SRID 8265" > PROJECTION > "init=epsg:4269" > END > > Is there a way that I can see any more detail on how mapserver "sees" > the request? > > Thanks! > > -- john > > Eijnden, B. van den (Bart) wrote: > >> Have you tried Perry's suggestion to use: >> >> >> -95,26.5 -94.75,26.75 >> >> >> ? >> >> What's does your LAYER's PROJECTION block look like? >> >> Best regards, >> Bart >> > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From rockwell_001 at YAHOO.COM Thu Apr 20 09:31:56 2006 From: rockwell_001 at YAHOO.COM (rock well) Date: Thu, 20 Apr 2006 09:31:56 -0700 Subject: How to use insert layer in mapscript Message-ID: Hello all, i am sorry if this message has been posted twice, i have been having some problems with my account ... i am trying to use insert layer using mapscript but not able to find the proper syntax, how can it be used and if i want two layers to be inserted on top of all the other layers how do we set the index .... Appreciate your help ..... --------------------------------- Celebrate Earth Day everyday! Discover 10 things you can do to help slow climate change. Yahoo! Earth Day -------------- next part -------------- An HTML attachment was scrubbed... URL: From naci0002 at UMN.EDU Thu Apr 20 09:55:37 2006 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Thu, 20 Apr 2006 11:55:37 -0500 Subject: help w/ WFS request In-Reply-To: <4447B583.70407@noaa.gov> Message-ID: John, Can you confirm that the SQL query works outside of MapServer? This could well be a MapServer bug (and I suspect is related to PostGIS query problems thaat some users are experiencing). You might have to enable the debugging mode to get more info. -Perry On Thursday 20 April 2006 11:23, John Cartwright wrote: > Hi Bart, > > yes, I did - same results: > > > -95,26.5 -94.75,26.75 > > > "EPSG:4269" and "epsg:4269" produce the same results in the request, but > the mapfile seems to only recognize the lowercase representation. > > from the mapfile: > DATA "SHAPE FROM BATHYUSER.SOUNDING USING SRID 8265" > PROJECTION > "init=epsg:4269" > END > > Is there a way that I can see any more detail on how mapserver "sees" > the request? > > Thanks! > > -- john > > Eijnden, B. van den (Bart) wrote: > > Have you tried Perry's suggestion to use: > > > > > > -95,26.5 -94.75,26.75 > > > > > > ? > > > > What's does your LAYER's PROJECTION block look like? > > > > Best regards, > > Bart -- Pericles S. Nacionales Conservation Biology Program University of Minnesota e-mail: naci0002 at umn.edu From tim at COMMENSPACE.ORG Thu Apr 20 10:43:45 2006 From: tim at COMMENSPACE.ORG (Tim Schaub) Date: Thu, 20 Apr 2006 10:43:45 -0700 Subject: Ka-Map sample application with MS4W v. 1.5.0 Message-ID: > The ka-Map sample applications user interface opens but the > kaMap selection window remains empty. Two ways to troubleshoot a ka-map application: 1) Load up init.php (something like http://localhost/ka-map/htdocs/init.php) and see what you get. 2) Use firefox, view page info for your index.html page (Tools > Page Info), check the Media tab, find a call to tile.php, copy the URL, paste it in to a new tab, and view the results. If you get any messages back from either of these, it will help get to the root of your problem. You'll probably have better luck posting messages to the ka-map-users at lists.maptools.org list for help. > > Regards, > > Jukka Rahkonen > > Tim From LESSARDST at DFO-MPO.GC.CA Thu Apr 20 11:01:58 2006 From: LESSARDST at DFO-MPO.GC.CA (Stephane Lessard) Date: Thu, 20 Apr 2006 14:01:58 -0400 Subject: commas in CONNECTION string cause MapSe rver to fail Message-ID: Hi Mark, It has to be a syntax error. I use commas all the time. Could you provide the whole virtual layer definition? Stephane _____ De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Mark Adams Envoy? : 20 avril 2006 10:38 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] commas in CONNECTION string cause MapServer to fail Hi all, We're working on an application that uses a virtual spatial layer coming from an Oracle database using WKT geometry. For performance and presentation reasons, we are setting the CONNECTION string dynamically based on the user's selected parameters on a query form. The CONNECTION is being set by including the OGR virtual layer definition in-line, such as: CONNECTION " ODBC:system/normin at normin_dev SELECT * FROM MINFWHSE_P1.MINFT_WH2_REFER_REFERENCE WHERE MINFWHSE_P1.MINFT_WH2_REFER_REFERENCE.C_REFER_REFERENCE_NBR IS NOT NULL wkbPolygon " The above example works fine. However, when we include commas in the SrcSQL element, such as "SELECT FIELD1,FIELD2 FROM TABLE1,TABLE2", mapserver crashes with: " [MapServer Error]: msOGRFileOpen(): Open failed for OGR connection ` ODBC:system/normin at normin_dev SELECT MINFWHSE_P1.MINFT_WH2_REFER_REFERENCE.C_REFER_REFERENCE_NBR'. Parse error at EOF, not all elements have been closed, starting with SrcSQL " Is this behaviour expected, i.e. are commas disallowed in the MAP file, and if so is there a way to escape them? I can put the exact same string in an OVF file and set the CONNECTION to that file, and then it works, so I know there is nothing wrong with the string itself. Thanks. ------------------------------ Mark Adams Senior Analyst & Project Manager Cuesta Systems (DPRA Canada) 5230 South Service Road Burlington, ON L7L 5K2 Phone: 905-333-4544 x14 Fax: 905-333-0455 Email: mark.adams at dpra.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at DMSOLUTIONS.CA Thu Apr 20 11:18:14 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Thu, 20 Apr 2006 14:18:14 -0400 Subject: Ka-Map sample application with MS4W v. 1.5.0 In-Reply-To: Message-ID: i just tested with a fresh ms4w 1.5.1 and ka-map 0.2 and had no problems. jeff Rahkonen Jukka wrote: > Hi, > I used to have some of my own mapfiles added to ka-Map sample application and they worked fine with MS4W version 1.4.1. Now when I installed MS4W version 1.5.0 those are not working anymore, not even the GMap75 application. Might there be some principal difference between these versions that makes ka-Map sample application unusable, or is it just some minory thing? I have already changed the line $szPHPMapScriptModule = 'php_mapscript_46.'.PHP_SHLIB_SUFFIX in ka-Map-0.2 config.php to refer to php_mapscript_48 but that did not help too much. The ka-Map sample applications user interface opens but the kaMap selection window remains empty. > > By the way, the Oracle connection in MS4W works just great, thank you for that. > > Regards, > > Jukka Rahkonen > > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From Mark.Adams at DPRA.COM Thu Apr 20 11:50:25 2006 From: Mark.Adams at DPRA.COM (Mark Adams) Date: Thu, 20 Apr 2006 13:50:25 -0500 Subject: commas in CONNECTION string cause MapServer to fail Message-ID: Like I said, if I put this in the OVF file instead of including it inline, it works. Inline, it craps out at the first comma. I can test this by removing the tablename from the SrcDataSource element for example, and then it craps out at SrcSQL instead - first comma it finds. Here is the LAYER definition: LAYER NAME 'References' CONNECTIONTYPE OGR #CONNECTION "ODBC:MINFWHSE_P1/MINFWHSE_P1 at MINFWHSE_P1,MINFT_WH2_REFER_REFERENCE" #CONNECTION "REFERENCES_minf_read.ovf" CONNECTION " ODBC:system/normin at normin_dev,MINFT_WH2_REFER_REFERENCE SELECT MINFWHSE_P1.MINFT_WH2_REFER_REFERENCE.GEOMETRY,MINFWHSE_P1.MINFT_WH2_REFER_REFERENCE.C_REFER_REFERENCE_NBR FROM MINFWHSE_P1.MINFT_WH2_REFER_REFERENCE WHERE MINFWHSE_P1.MINFT_WH2_REFER_REFERENCE.GEOMETRY IS NOT NULL wkbPolygon " STATUS off TYPE Polygon TRANSPARENCY 100 TOLERANCE 7 TOLERANCEUNITS pixels TEMPLATE "null" METADATA WMS_SRS 'epsg:4326' WMS_TITLE 'WMSTitel' WMS_FEATURE_INFO_MIME_TYPE 'text/html' END #METADATA PROJECTION 'init=epsg:99999' END CLASS NAME 'References' STYLE #COLOR 150 180 250 OUTLINECOLOR 0 0 0 WIDTH 1.5 END #STYLE END #CLASS END #LAYER ------------------------------ Mark Adams Senior Analyst & Project Manager Cuesta Systems (DPRA Canada) 5230 South Service Road Burlington, ON L7L 5K2 Phone: 905-333-4544 x14 Fax: 905-333-0455 Email: mark.adams at dpra.com ________________________________ From: LESSARDST at dfo-mpo.gc.ca [mailto:LESSARDST at dfo-mpo.gc.ca] Sent: April 20, 2006 2:02 PM To: Mark Adams; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] commas in CONNECTION string cause MapServer to fail Hi Mark, It has to be a syntax error. I use commas all the time. Could you provide the whole virtual layer definition? Stephane ________________________________ De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Mark Adams Envoy? : 20 avril 2006 10:38 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] commas in CONNECTION string cause MapServer to fail Hi all, We're working on an application that uses a virtual spatial layer coming from an Oracle database using WKT geometry. For performance and presentation reasons, we are setting the CONNECTION string dynamically based on the user's selected parameters on a query form. The CONNECTION is being set by including the OGR virtual layer definition in-line, such as: CONNECTION " ODBC:system/normin at normin_dev SELECT * FROM MINFWHSE_P1.MINFT_WH2_REFER_REFERENCE WHERE MINFWHSE_P1.MINFT_WH2_REFER_REFERENCE.C_REFER_REFERENCE_NBR IS NOT NULL wkbPolygon " The above example works fine. However, when we include commas in the SrcSQL element, such as "SELECT FIELD1,FIELD2 FROM TABLE1,TABLE2", mapserver crashes with: " [MapServer Error]: msOGRFileOpen(): Open failed for OGR connection ` ODBC:system/normin at normin_dev SELECT MINFWHSE_P1.MINFT_WH2_REFER_REFERENCE.C_REFER_REFERENCE_NBR'. Parse error at EOF, not all elements have been closed, starting with SrcSQL " Is this behaviour expected, i.e. are commas disallowed in the MAP file, and if so is there a way to escape them? I can put the exact same string in an OVF file and set the CONNECTION to that file, and then it works, so I know there is nothing wrong with the string itself. Thanks. ------------------------------ Mark Adams Senior Analyst & Project Manager Cuesta Systems (DPRA Canada) 5230 South Service Road Burlington, ON L7L 5K2 Phone: 905-333-4544 x14 Fax: 905-333-0455 Email: mark.adams at dpra.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at STATE.MN.US Thu Apr 20 11:59:54 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Thu, 20 Apr 2006 13:59:54 -0500 Subject: character spacing in labels Message-ID: I am using truetype fonts (arial) on a MapServer 4.6 linux install. In some of the words, the characters touch each other. Any thoughts on causes or suggestions for spacing things out a little bit? Based on the Mapfile reference, I don't believe that there are any parameters to set there. David. From warmerdam at POBOX.COM Thu Apr 20 12:11:45 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 20 Apr 2006 15:11:45 -0400 Subject: commas in CONNECTION string cause MapServer to fail In-Reply-To: <49B9846C39F25A4FA9010649708616106EEB7E@mhk-ex1.ad.dpra.com> Message-ID: Mark Adams wrote: > Like I said, if I put this in the OVF file instead of including it > inline, it works. Inline, it craps out at the first comma. I can test > this by removing the tablename from the SrcDataSource element for > example, and then it craps out at SrcSQL instead ? first comma it finds. > Here is the LAYER definition: > > > > LAYER > > NAME 'References' > > CONNECTIONTYPE OGR > > #CONNECTION > "ODBC:MINFWHSE_P1/MINFWHSE_P1 at MINFWHSE_P1,MINFT_WH2_REFER_REFERENCE" > > #CONNECTION "REFERENCES_minf_read.ovf" > > CONNECTION " Mark, The OGR code in mapserver expects to split CONNECTION strings into a datasource name, and a layer # (or name) and it does this based on a comma in the connection string. It seems that you do nothing to select the layer to be used. I guess mapserver must implicitly choose the 1st. The "new" approach to specifying the layer is to put the name in the DATA keyword. I would really like to remove support from mapserver for the old "datasource,layer" support in the connection string but this is likely to cause non-trivial amounts of breakage. /me checks the code. Wonderful news! If you define the layer in a DATA keyword, then MapServer won't try and parse it out of your connection string and things should work! So try: CONNECTION ' Hi Mark, Frank, In my case, it only seems to work when I put the layer definition all on the same line in the map file... CONNECTION "............" Strange... I haven't tried the DATA approach. Stephane _____ De : Mark Adams [mailto:Mark.Adams at dpra.com] Envoy? : 20 avril 2006 14:50 ? : LESSARDST at dfo-mpo.gc.ca; MAPSERVER-USERS at LISTS.UMN.EDU Cc : Mark Adams Objet : RE: [UMN_MAPSERVER-USERS] commas in CONNECTION string cause MapServer to fail Like I said, if I put this in the OVF file instead of including it inline, it works. Inline, it craps out at the first comma. I can test this by removing the tablename from the SrcDataSource element for example, and then it craps out at SrcSQL instead - first comma it finds. Here is the LAYER definition: LAYER NAME 'References' CONNECTIONTYPE OGR #CONNECTION "ODBC:MINFWHSE_P1/MINFWHSE_P1 at MINFWHSE_P1,MINFT_WH2_REFER_REFERENCE" #CONNECTION "REFERENCES_minf_read.ovf" CONNECTION " ODBC:system/normin at normin_dev,MINFT_WH2_REFER_REFERENCE SELECT MINFWHSE_P1.MINFT_WH2_REFER_REFERENCE.GEOMETRY,MINFWHSE_P1.MINFT_WH2_REFER_R EFERENCE.C_REFER_REFERENCE_NBR FROM MINFWHSE_P1.MINFT_WH2_REFER_REFERENCE WHERE MINFWHSE_P1.MINFT_WH2_REFER_REFERENCE.GEOMETRY IS NOT NULL wkbPolygon " STATUS off TYPE Polygon TRANSPARENCY 100 TOLERANCE 7 TOLERANCEUNITS pixels TEMPLATE "null" METADATA WMS_SRS 'epsg:4326' WMS_TITLE 'WMSTitel' WMS_FEATURE_INFO_MIME_TYPE 'text/html' END #METADATA PROJECTION 'init=epsg:99999' END CLASS NAME 'References' STYLE #COLOR 150 180 250 OUTLINECOLOR 0 0 0 WIDTH 1.5 END #STYLE END #CLASS END #LAYER ------------------------------ Mark Adams Senior Analyst & Project Manager Cuesta Systems (DPRA Canada) 5230 South Service Road Burlington, ON L7L 5K2 Phone: 905-333-4544 x14 Fax: 905-333-0455 Email: mark.adams at dpra.com _____ From: LESSARDST at dfo-mpo.gc.ca [mailto:LESSARDST at dfo-mpo.gc.ca] Sent: April 20, 2006 2:02 PM To: Mark Adams; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] commas in CONNECTION string cause MapServer to fail Hi Mark, It has to be a syntax error. I use commas all the time. Could you provide the whole virtual layer definition? Stephane _____ De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Mark Adams Envoy? : 20 avril 2006 10:38 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] commas in CONNECTION string cause MapServer to fail Hi all, We're working on an application that uses a virtual spatial layer coming from an Oracle database using WKT geometry. For performance and presentation reasons, we are setting the CONNECTION string dynamically based on the user's selected parameters on a query form. The CONNECTION is being set by including the OGR virtual layer definition in-line, such as: CONNECTION " ODBC:system/normin at normin_dev SELECT * FROM MINFWHSE_P1.MINFT_WH2_REFER_REFERENCE WHERE MINFWHSE_P1.MINFT_WH2_REFER_REFERENCE.C_REFER_REFERENCE_NBR IS NOT NULL wkbPolygon " The above example works fine. However, when we include commas in the SrcSQL element, such as "SELECT FIELD1,FIELD2 FROM TABLE1,TABLE2", mapserver crashes with: " [MapServer Error]: msOGRFileOpen(): Open failed for OGR connection ` ODBC:system/normin at normin_dev SELECT MINFWHSE_P1.MINFT_WH2_REFER_REFERENCE.C_REFER_REFERENCE_NBR'. Parse error at EOF, not all elements have been closed, starting with SrcSQL " Is this behaviour expected, i.e. are commas disallowed in the MAP file, and if so is there a way to escape them? I can put the exact same string in an OVF file and set the CONNECTION to that file, and then it works, so I know there is nothing wrong with the string itself. Thanks. ------------------------------ Mark Adams Senior Analyst & Project Manager Cuesta Systems (DPRA Canada) 5230 South Service Road Burlington, ON L7L 5K2 Phone: 905-333-4544 x14 Fax: 905-333-0455 Email: mark.adams at dpra.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Mark.Adams at DPRA.COM Thu Apr 20 12:39:26 2006 From: Mark.Adams at DPRA.COM (Mark Adams) Date: Thu, 20 Apr 2006 14:39:26 -0500 Subject: commas in CONNECTION string cause MapServer to fail Message-ID: Frank (and Stephane), Miraculous! - removing the tablename from the element, and referencing the VRT layername in the DATA element, solved the problem. Everything else I kept the same. What I find a bit strange about that is that previously, even if I removed the tablename from the element, it would crap out on the commas in the element. Now it no longer craps out on the commas elsewhere in the connection string, and all is fine. I will look into enhancing the documentation on the web site - can I change these documents myself, or should I forward the changes to someone else (like yourself)? Thanks to both of you for your assistance. ------------------------------ Mark Adams Senior Analyst & Project Manager Cuesta Systems (DPRA Canada) 5230 South Service Road Burlington, ON L7L 5K2 Phone: 905-333-4544 x14 Fax: 905-333-0455 Email: mark.adams at dpra.com -----Original Message----- From: Frank Warmerdam [mailto:fwarmerdam at gmail.com] On Behalf Of Frank Warmerdam Sent: April 20, 2006 3:12 PM To: Mark Adams Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] commas in CONNECTION string cause MapServer to fail Mark Adams wrote: > Like I said, if I put this in the OVF file instead of including it > inline, it works. Inline, it craps out at the first comma. I can test > this by removing the tablename from the SrcDataSource element for > example, and then it craps out at SrcSQL instead - first comma it finds. > Here is the LAYER definition: > > > > LAYER > > NAME 'References' > > CONNECTIONTYPE OGR > > #CONNECTION > "ODBC:MINFWHSE_P1/MINFWHSE_P1 at MINFWHSE_P1,MINFT_WH2_REFER_REFERENCE" > > #CONNECTION "REFERENCES_minf_read.ovf" > > CONNECTION " Mark, The OGR code in mapserver expects to split CONNECTION strings into a datasource name, and a layer # (or name) and it does this based on a comma in the connection string. It seems that you do nothing to select the layer to be used. I guess mapserver must implicitly choose the 1st. The "new" approach to specifying the layer is to put the name in the DATA keyword. I would really like to remove support from mapserver for the old "datasource,layer" support in the connection string but this is likely to cause non-trivial amounts of breakage. /me checks the code. Wonderful news! If you define the layer in a DATA keyword, then MapServer won't try and parse it out of your connection string and things should work! So try: CONNECTION ' Message-ID: Mark Adams wrote: > Frank (and Stephane), > > Miraculous! - removing the tablename from the element, > and referencing the VRT layername in the DATA element, solved the > problem. Everything else I kept the same. > > What I find a bit strange about that is that previously, even if I > removed the tablename from the element, it would crap > out on the commas in the element. Now it no longer craps out on > the commas elsewhere in the connection string, and all is fine. > > I will look into enhancing the documentation on the web site - can I > change these documents myself, or should I forward the changes to > someone else (like yourself)? Mark, I believe you can leave a comment at the bottom of any of the documents. These comments are forwarded to the author and will eventually get incorporated into the document. In the meantime folks can see the comment. 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 OSGF, http://osgeo.org From woodbri at SWOODBRIDGE.COM Thu Apr 20 13:12:08 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 20 Apr 2006 16:12:08 -0400 Subject: character spacing in labels In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD55D095C@s-sp22.pca.state.mn.us> Message-ID: Yes I have noticed this with Hwy VV which looks like Hwy W on the map. I use Arial ttf also. I get complaints about this. It would be nice if there were a way to specify wider spacing of character somehow in the mapfile and that that would get passed to the ttf code in GD. I don't know if this is even possible. The other alternative would be to find another font with wider spacing to start with or maybe make a modified Arial with more spacing. -Steve W Fawcett, David wrote: > I am using truetype fonts (arial) on a MapServer 4.6 linux install. > > In some of the words, the characters touch each other. > > Any thoughts on causes or suggestions for spacing things out a little > bit? Based on the Mapfile reference, I don't believe that there are any > parameters to set there. > > David. > From John.C.Cartwright at NOAA.GOV Thu Apr 20 13:21:53 2006 From: John.C.Cartwright at NOAA.GOV (John Cartwright) Date: Thu, 20 Apr 2006 14:21:53 -0600 Subject: help w/ WFS request In-Reply-To: <200604201155.38063.naci0002@umn.edu> Message-ID: Thanks for the suggestions guys. The following oracle query works: select count(*) from sounding p where SDO_FILTER( p.SHAPE,sdo_geometry(2003,8265,null,mdsys.sdo_elem_info_array(1,1003,3),mdsys.sdo_ordinate_array(-95,26.5,-94.75,26.75)) ) = 'TRUE' the GET request: request=getFeature&service=wfs&version=1.0.0&typename=soundings&maxfeatures=10 times out, but the describefeaturetype request continues to work. It's response seems to confirm that mapserver is actually connecting to oracle. I haven't had much success w/ the mapserver debugging. I set "DEBUG on" in both the MAP and LAYER section of the mapfile and defined the env variables: MS_ERRORFILE=/tmp/msErrors.txt CPL_DEBUG=ON PROJ_DEBUG=ON I'm seeing debugging messages from PROJ, GDAL but not from Mapserver. Any further ideas on how to proceed? Thanks! -- john Pericles S. Nacionales wrote: >John, > >Can you confirm that the SQL query works outside of MapServer? This could >well be a MapServer bug (and I suspect is related to PostGIS query problems >thaat some users are experiencing). You might have to enable the debugging >mode to get more info. > >-Perry > >On Thursday 20 April 2006 11:23, John Cartwright wrote: > > >>Hi Bart, >> >>yes, I did - same results: >> >> >> -95,26.5 -94.75,26.75 >> >> >>"EPSG:4269" and "epsg:4269" produce the same results in the request, but >>the mapfile seems to only recognize the lowercase representation. >> >>from the mapfile: >> DATA "SHAPE FROM BATHYUSER.SOUNDING USING SRID 8265" >> PROJECTION >> "init=epsg:4269" >> END >> >>Is there a way that I can see any more detail on how mapserver "sees" >>the request? >> >>Thanks! >> >>-- john >> >>Eijnden, B. van den (Bart) wrote: >> >> >>>Have you tried Perry's suggestion to use: >>> >>> >>> -95,26.5 -94.75,26.75 >>> >>> >>>? >>> >>>What's does your LAYER's PROJECTION block look like? >>> >>>Best regards, >>>Bart >>> >>> > > > From work at XWB.COM Thu Apr 20 13:39:34 2006 From: work at XWB.COM (Chip Taylor) Date: Thu, 20 Apr 2006 13:39:34 -0700 Subject: Drawing a circle In-Reply-To: <4447ED61.6090208@noaa.gov> Message-ID: I am running MapServer as a CGI under IIS 6. We do not use PHP and would prefer not to have to install it. I would like to draw a circle on the resulting map providing not a size as you would for a symbol, but have the map extents [mapext] determine where the circle is drawn. The circle would be sized so that the outer border of the circle touches the top center and bottom center of the map. I know that I can do it client side will some complex calculations or do it with GDI server side but neither of those are really what I am looking for. Can anyone tell me if what I am asking is possible with just MapServer CGI and a Map File? If not, are there any "helper" packages such as Chameleon that would make this easy to implement? Thank you in advance. Chip Taylor From denis.nadeau at GMAIL.COM Thu Apr 20 13:37:03 2006 From: denis.nadeau at GMAIL.COM (Denis Nadeau) Date: Thu, 20 Apr 2006 16:37:03 -0400 Subject: Raster Data Access documentation Message-ID: Hi, Does somebody know why the Raster Data Access documentation says in the third sentence http://mapserver.gis.umn.edu/docs/howto/raster_data/#rasters-and-tile-indexing The list of files forming a layer can be stored in a shapefile Can the file be store to something else than a shapefile? Thanks, Denis Nadeau From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Thu Apr 20 13:47:59 2006 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Doyon, Jean-Francois) Date: Thu, 20 Apr 2006 16:47:59 -0400 Subject: Drawing a circle Message-ID: "The circle would be sized so that the outer border of the circle touches the top center and bottom center of the map." I'm guessing you mean the feature? Otherwise this circle would always be in the same place, and that would be easy ... Unless the shape and size of the map might be variable? You can look at using astandard symbol using pixel sizes and TRANSFORM OFF maybe? If the map size changes or something like that, you can use URL parameters to modify it using something like &map_layer_class_size=20 for example. TRANSFORM is documented in the MapFile reference. The CGI Parameter thing is here: http://mapserver.gis.umn.edu/docs/reference/cgi/controls At the bottom. J.F. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Chip Taylor Sent: April 20, 2006 4:40 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Drawing a circle I am running MapServer as a CGI under IIS 6. We do not use PHP and would prefer not to have to install it. I would like to draw a circle on the resulting map providing not a size as you would for a symbol, but have the map extents [mapext] determine where the circle is drawn. The circle would be sized so that the outer border of the circle touches the top center and bottom center of the map. I know that I can do it client side will some complex calculations or do it with GDI server side but neither of those are really what I am looking for. Can anyone tell me if what I am asking is possible with just MapServer CGI and a Map File? If not, are there any "helper" packages such as Chameleon that would make this easy to implement? Thank you in advance. Chip Taylor From David.Fawcett at STATE.MN.US Thu Apr 20 13:51:36 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Thu, 20 Apr 2006 15:51:36 -0500 Subject: Drawing a circle Message-ID: If your image size is always going to be static, try this: LAYER NAME "mycircle" #this example is for a map of size 250 250 STATUS DEFAULT TYPE POINT TRANSFORM FALSE FEATURE POINTS 125 125 END #adjust these to center your circle END CLASS SYMBOL "circle" SIZE 255 #adjust this to set the size of the circle COLOR 181 181 181 END END END David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Chip Taylor Sent: Thursday, April 20, 2006 3:40 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Drawing a circle I am running MapServer as a CGI under IIS 6. We do not use PHP and would prefer not to have to install it. I would like to draw a circle on the resulting map providing not a size as you would for a symbol, but have the map extents [mapext] determine where the circle is drawn. The circle would be sized so that the outer border of the circle touches the top center and bottom center of the map. I know that I can do it client side will some complex calculations or do it with GDI server side but neither of those are really what I am looking for. Can anyone tell me if what I am asking is possible with just MapServer CGI and a Map File? If not, are there any "helper" packages such as Chameleon that would make this easy to implement? Thank you in advance. Chip Taylor From Dominic.Lemay at MTQ.GOUV.QC.CA Thu Apr 20 14:28:56 2006 From: Dominic.Lemay at MTQ.GOUV.QC.CA (Lemay, Dominic) Date: Thu, 20 Apr 2006 17:28:56 -0400 Subject: MS4W IIS oracle spatial problem Message-ID: Hi all, while using the Apache server, I manage to connect me to Oracle Spatial and to obtain a map with a GetMap request. Whit IIS, as soon as I copy the files of "oracle.zip" coming from "Hobu' S Kitchen Sink" in the "C:\ms4w\Apache\cgi-bin" directory, I always get this error when I ask a GetMap request with IIS: Cgi Error: The specified cgi application misbehaved by not returning has complete set of HTTP headers. The headers it did return are: The problem seems to be on the level of IIS since it goes well with Apache. I followed the directives contained in this document "IIS Setup for MapServer/Chameleon/PhpPgAdmin". I use windows XP Pro with IIS 5.1. Any ideas ? Thanks _________________________________________ Dominic Lemay Int?lec G?omatique Inc. * (418) 380-2005 poste 232 Ce message peut contenir de l'information l?galement privil?gi?e. Si vous avez une raison de croire que vous l'avez re?u par m?garde, nous vous serions gr? d'en aviser l'?metteur et de le d?truire. Merci ! -------------- next part -------------- An HTML attachment was scrubbed... URL: From connect_rahul1 at YAHOO.CO.IN Thu Apr 20 14:54:23 2006 From: connect_rahul1 at YAHOO.CO.IN (rahul singh) Date: Thu, 20 Apr 2006 22:54:23 +0100 Subject: cs2cs utility Message-ID: Hi I want to use the proj.4 cs2cs utility. Can anybody help me out in how to start the utility in the unix environment. Any help would be highly appreciated. Regards Rahul Singh RAHUL SINGH __________________________________________________________ Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com From aaronr at ECOTRUST.ORG Thu Apr 20 16:19:55 2006 From: aaronr at ECOTRUST.ORG (Aaron Racicot) Date: Thu, 20 Apr 2006 16:19:55 -0700 Subject: cs2cs utility Message-ID: On my system it is as easy as calling it from the command line... [aracicot at boris ~]$ cs2cs Rel. 4.4.9, 29 Oct 2004 usage: cs2cs [ -eEfIlrstvwW [args] ] [ +opts[=arg] ] [+to [+opts[=arg] [ files ] [aracicot at boris ~]$ which cs2cs /usr/local/bin/cs2cs [aracicot at boris ~]$ Can you tell us more about what you have tried and what is not working? Environment? Did you build Proj yourself? A +----------------------------------------+ | Aaron Racicot | aaronr at ecotrust.org | | GIS Programmer | 503.467.0759 | +----------------------------------------+ | e c o t r u s t | | Jean Vollum Natural Capital Center | | 721 NW Ninth Avenue | | Suite 200 | | Portland, OR 97209 | | www.ecotrust.org | +----------------------------------------+ -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of rahul singh Sent: Thursday, April 20, 2006 2:54 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] cs2cs utility Hi I want to use the proj.4 cs2cs utility. Can anybody help me out in how to start the utility in the unix environment. Any help would be highly appreciated. Regards Rahul Singh RAHUL SINGH __________________________________________________________ Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com From ed at TOPOZONE.COM Thu Apr 20 16:45:11 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 20 Apr 2006 19:45:11 -0400 Subject: Raster Data Access documentation Message-ID: Denis - No, it cannot - it needs to be stored in a shapefile. The shapefile holds both the list of the raster file names and the geographic bounding box for each raster file. That's the "index" part - the shapefile allows MapServer to use it as an index to quickly determine which raster images in the layer may be needed for the current map-drawing request. Raster files that couldn't possibly be needed are ignored. - Ed Ed McNierney TopoZone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Denis Nadeau Sent: Thursday, April 20, 2006 4:37 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Raster Data Access documentation Hi, Does somebody know why the Raster Data Access documentation says in the third sentence http://mapserver.gis.umn.edu/docs/howto/raster_data/#rasters-and-tile-in dexing The list of files forming a layer can be stored in a shapefile Can the file be store to something else than a shapefile? Thanks, Denis Nadeau From warmerdam at POBOX.COM Thu Apr 20 18:47:30 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 20 Apr 2006 21:47:30 -0400 Subject: Raster Data Access documentation In-Reply-To: <4BF377919225F449BB097CB76FFE9BC83DDC15@ptolemy.topozone.com> Message-ID: Ed McNierney wrote: > Denis - > > No, it cannot - it needs to be stored in a shapefile. The shapefile > holds both the list of the raster file names and the geographic bounding > box for each raster file. That's the "index" part - the shapefile > allows MapServer to use it as an index to quickly determine which raster > images in the layer may be needed for the current map-drawing request. > Raster files that couldn't possibly be needed are ignored. Denis writes: > Does somebody know why the Raster Data Access documentation says in > the third sentence > > http://mapserver.gis.umn.edu/docs/howto/raster_data/#rasters-and-tile-in > dexing > The list of files forming a layer can be stored in a shapefile > > Can the file be store to something else than a shapefile? Ed / Denis, I believe the tileindex for rasters can be in a shapefile (directly reference) or in any other supported datastore when referencing another layer as the tileindex. I think there was some recent discussion of folks using a Postgis layer for this for instance. 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 OSGF, http://osgeo.org From ed at TOPOZONE.COM Thu Apr 20 19:07:58 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 20 Apr 2006 22:07:58 -0400 Subject: Raster Data Access documentation Message-ID: Frank - Oh, good point - I'm not sure whether another datastore is actually supported (I've never tried), although I also recall a PostGIS discussion or question. I assumed that Denis' question was about using a different file format (such as a text file or a spreadsheet or something), but that might not be the case. Denis, is there a particular storage format you'd like to use, or is there a reason you'd like to avoid shapefiles? - 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: Thursday, April 20, 2006 9:48 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Raster Data Access documentation Ed McNierney wrote: > Denis - > > No, it cannot - it needs to be stored in a shapefile. The shapefile > holds both the list of the raster file names and the geographic > bounding box for each raster file. That's the "index" part - the > shapefile allows MapServer to use it as an index to quickly determine > which raster images in the layer may be needed for the current map-drawing request. > Raster files that couldn't possibly be needed are ignored. Denis writes: > Does somebody know why the Raster Data Access documentation says in > the third sentence > > http://mapserver.gis.umn.edu/docs/howto/raster_data/#rasters-and-tile- > in > dexing > The list of files forming a layer can be stored in a shapefile > > Can the file be store to something else than a shapefile? Ed / Denis, I believe the tileindex for rasters can be in a shapefile (directly reference) or in any other supported datastore when referencing another layer as the tileindex. I think there was some recent discussion of folks using a Postgis layer for this for instance. 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 OSGF, http://osgeo.org From Jukka.Rahkonen at MMMTIKE.FI Thu Apr 20 23:33:14 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Fri, 21 Apr 2006 09:33:14 +0300 Subject: Ka-Map sample application with MS4W v. 1.5.0 Message-ID: Thanks for advice, Tim. L?hett?j?: Tim Schaub [mailto:tim at commenspace.org] >> The ka-Map sample applications user interface opens but the >> kaMap selection window remains empty. >Two ways to troubleshoot a ka-map application: >1) Load up init.php (something like >http://localhost/ka-map/htdocs/init.php) and see what you get. Just text. Corresponding file in the GMap application directory shows me a map. I feel that this certain version of MS4W do not support ka-Map scripts or something. >2) Use firefox, view page info for your index.html page (Tools > Page >Info), check the Media tab, find a call to tile.php, copy the URL, paste >it in to a new tab, and view the results. There is no call to tile.php on this tab, just references to image files that make up the user interface. I will download MS4W version 1.5.1 and try what happens with that, is is reported to work with ka-Map sample application. Regards, -Jukka- From khaled.kamoun at GMAIL.COM Fri Apr 21 02:25:45 2006 From: khaled.kamoun at GMAIL.COM (Khaled Kamoun) Date: Fri, 21 Apr 2006 11:25:45 +0200 Subject: displaing layer witout add it to legend Message-ID: Hello, Please i want to know if I can display a layer witout add it to legend, Thank you. -- Khaled KAMOUN -------------- next part -------------- An HTML attachment was scrubbed... URL: From perrygeo at GMAIL.COM Fri Apr 21 02:34:48 2006 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Fri, 21 Apr 2006 02:34:48 -0700 Subject: displaing layer witout add it to legend In-Reply-To: Message-ID: On 4/21/06, Khaled Kamoun wrote: > Please i want to know if I can display a layer witout add it to legend, Just omit the NAME in your CLASS definition and it won't show up in the standard mapserver-generated legend. -- Matt Perry perrygeo at gmail.com http://www.perrygeo.net From Xiaoming.Zhu at NRM.SE Fri Apr 21 02:34:22 2006 From: Xiaoming.Zhu at NRM.SE (Xiaoming Zhu) Date: Fri, 21 Apr 2006 11:34:22 +0200 Subject: EPSG defination Message-ID: Hi, I met some projecton problems when I tried to display some Swedish map on the Atlas mapserver. Everything works ok except the map can not be dynamic: it cann't zoom in, zoom out or move. I changed the map extent in the mapfile but didn't add any projection there. The information of the Swedish shapefile is : ************************************************************************ **** Horizontal coordinate system Geographic coordinate system name: GCS_WGS_1984 Details Geographic Coordinate System Latitude Resolution: 0.000000 Longitude Resolution: 0.000000 Geographic Coordinate Units: Decimal degrees Geodetic Model Horizontal Datum Name: D_WGS_1984 Ellipsoid Name: WGS_1984 Semi-major Axis: 6378137.000000 Denominator of Flattening Ratio: 298.257224 _________________ Bounding coordinates Horizontal In decimal degrees West: 4.026421 East: 31.858543 North: 70.088043 South: 49.917300 In projected or local coordinates Left: 4.026421 Right: 31.858543 Top: 70.088043 Bottom: 49.917300 _________________ Lineage ESRI geoprocessing history 1. Process Date and time: 20060329 at time 140716 Tool location: C:\Program Files\ArcGIS\ArcToolbox\Toolboxes\Data Management Tools.tbx\CopyFeatures Command issued CopyFeatures "Rivers 2" "C:\arcgis\Maps\New Folder\Rivers 2.shp" # 0 0 0 _________________ Spatial data description Vector data information ESRI description Rivers 2 ESRI feature type: Simple Geometry type: Polyline Topology: FALSE Feature count: 453 Spatial Index: TRUE Linear referencing: FALSE SDTS description Feature class: SDTS feature type, feature count Rivers 2: String, 453 ************************************************************************ **** Anyone run into this before, do you know how to define this in EPSG, which coordinate system it belongs? or how to convert this shapefile to the some projection as the output one, which should be: +proj=latlong (pseudo-projection). Thanks. Zhu Xiaoming Programmer Natualhistoric riksmusset Tel: 46 8 51954235, 46 701421827 From khaled.kamoun at GMAIL.COM Fri Apr 21 03:22:39 2006 From: khaled.kamoun at GMAIL.COM (Khaled Kamoun) Date: Fri, 21 Apr 2006 12:22:39 +0200 Subject: two attribute in labelitem Message-ID: HI, I want to know if it's possible to put two attribute in labelitem, or concat two attribute. Thank you. -- Khaled KAMOUN -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Fri Apr 21 03:31:24 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Fri, 21 Apr 2006 12:31:24 +0200 Subject: two attribute in labelitem In-Reply-To: Message-ID: You should use TEXT for that. TEXT [string] Static text to label features in this class with. This overrides values obtained from the LABELTIEM. The string may be given as an expression delimited using the ()'s. This allows you to concatenate multiple attributes into a single label. For example: ([FIRSTNAME],[LASTNAME]). See the MAP file reference: http://mapserver.gis.umn.edu/docs/reference/mapfile/referencemanual-all-pages Best regards, Bart Khaled Kamoun wrote: > HI, > I want to know if it's possible to put two attribute in labelitem, or > concat two attribute. > Thank you. > > -- > Khaled KAMOUN -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From bpicinbono at WORLDONLINE.FR Fri Apr 21 03:43:01 2006 From: bpicinbono at WORLDONLINE.FR (Blaise) Date: Fri, 21 Apr 2006 12:43:01 +0200 Subject: Flash image In-Reply-To: <443BA759.14233.CEE5E3@dovidio.planetek.it> Message-ID: Fabio, did you get some feedback for that ? You can use ming library to output swf. You can find usefull links searching for "flash" in mapserver website search engine. Blaise On Tuesday 11 April 2006 12:55, Fabio D'Ovidio wrote: > Is it possibile to serve with mapserver flash image ??? > > thank u ! > *************************************************************************** >***************** > > > Ing. Fabio D'Ovidio > WebGIS Staff > Planetek Italia Srl > via Massaua, 12 - 70123 Bari - Italy > web : http ://www.planetek.it > e-mail : dovidio at planetek.it > > *************************************************************************** >***************** From xavier.mauclaire at GEOTER.FR Fri Apr 21 03:52:57 2006 From: xavier.mauclaire at GEOTER.FR (Xavier Mauclaire) Date: Fri, 21 Apr 2006 12:52:57 +0200 Subject: feature access with mapscript ? functionnality of mapscript ? Message-ID: Hi I'm using Mapserver do draw layers comming from either PostGis or shapefile and i would like using mapscript to perform actions like : Zooming to a selected feature (feature selected by data attributes stored in the database) Allowing a feature sequential access to get feature extent for example. Doing theses thinks with mapserver with avoid writing one piece of code by source type (postgis, shapfile) and so using external libraries. is it possible with mapscript ? regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From sfadum at SHAW.CA Fri Apr 21 06:22:47 2006 From: sfadum at SHAW.CA (Sean Fadum) Date: Fri, 21 Apr 2006 06:22:47 -0700 Subject: Querying Multiple Items using queryByAttributes Message-ID: Hi, Does anyone know if it is possible to query multiple fields using Mapscript's queryByAttributes? If so does anyone have the syntax for this? I am able to query one field as of right now but would like to be able a bunch of fields. I am using php/mapscript for this project. Cheers, Sean From work at XWB.COM Fri Apr 21 06:55:28 2006 From: work at XWB.COM (Chip Taylor) Date: Fri, 21 Apr 2006 06:55:28 -0700 Subject: Drawing a circle In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD55D095F@s-sp22.pca.state.mn.us> Message-ID: Thank you all for your suggestions. The image size will not always be static. From the ideas I got on this list I decided to pass the size into the layer/class from the URL via an ASPX page. Works great. Chip Taylor Prepared Response, Inc -----Original Message----- From: Fawcett, David [mailto:David.Fawcett at state.mn.us] Sent: Thursday, April 20, 2006 1:52 PM To: Chip Taylor; MAPSERVER-USERS at lists.umn.edu Subject: RE: [UMN_MAPSERVER-USERS] Drawing a circle If your image size is always going to be static, try this: LAYER NAME "mycircle" #this example is for a map of size 250 250 STATUS DEFAULT TYPE POINT TRANSFORM FALSE FEATURE POINTS 125 125 END #adjust these to center your circle END CLASS SYMBOL "circle" SIZE 255 #adjust this to set the size of the circle COLOR 181 181 181 END END END David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Chip Taylor Sent: Thursday, April 20, 2006 3:40 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Drawing a circle I am running MapServer as a CGI under IIS 6. We do not use PHP and would prefer not to have to install it. I would like to draw a circle on the resulting map providing not a size as you would for a symbol, but have the map extents [mapext] determine where the circle is drawn. The circle would be sized so that the outer border of the circle touches the top center and bottom center of the map. I know that I can do it client side will some complex calculations or do it with GDI server side but neither of those are really what I am looking for. Can anyone tell me if what I am asking is possible with just MapServer CGI and a Map File? If not, are there any "helper" packages such as Chameleon that would make this easy to implement? Thank you in advance. Chip Taylor From warmerdam at POBOX.COM Fri Apr 21 07:23:16 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 21 Apr 2006 10:23:16 -0400 Subject: Querying Multiple Items using queryByAttributes In-Reply-To: <8bb5a418bb5220.8bb52208bb5a41@shaw.ca> Message-ID: Sean Fadum wrote: > Hi, > > Does anyone know if it is possible to query multiple fields using > Mapscript's queryByAttributes? If so does anyone have the syntax for this? > I am able to query one field as of right now but would like to be able a > bunch of fields. I am using php/mapscript for this project. Sean, I think the trick is to use a query expression instead of a query item and a query value. I'm not sure how this works in mapscript exactly, but at the C API level if you pass a NULL for the query item then the value is interpreted as a full expression which could be something like: "[fielda] < 100 and [fieldb] = 75" ... I think. Anways, hopefully that is an angle to look into. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From khaled.kamoun at GMAIL.COM Fri Apr 21 07:27:48 2006 From: khaled.kamoun at GMAIL.COM (Khaled Kamoun) Date: Fri, 21 Apr 2006 16:27:48 +0200 Subject: french character Message-ID: Hi, Can you telle me why french character like "?" or "?" are not drawen in legend this is my code : CLASS NAME 'Toponym?e' LABEL ANTIALIAS true SHADOWCOLOR 218 218 218 COLOR 0 0 255 FONT 'Arial-Normal' SIZE 8 TYPE truetype POSITiON LC buffer 4 MINDISTANCE 300 PARTIALS ON END #BASICMARKER_STYLE_PATTERN STYLE SYMBOL 'Totoponp--0--0' SIZE 3 COLOR 1 100 0 BACKGROUNDCOLOR -1 -1 -1 END #STYLE END #CLASS thank you. -- Khaled KAMOUN -------------- next part -------------- An HTML attachment was scrubbed... URL: From john.cole at UAI.COM Fri Apr 21 07:38:30 2006 From: john.cole at UAI.COM (John Cole) Date: Fri, 21 Apr 2006 09:38:30 -0500 Subject: trying to get dbox working... Message-ID: I'm trying to get the dbox demo working on my data, but the page from http://www.greenwoodmap.com/mapserver/Ottawa-workshop/presentation/demo3_dBo x-src.html seems to use some template tags that aren't working (and are not in the template file reference). Among these are [box], [drag], [program], [map_web_imagepath], [map_web_imageurl], and [zoomsize]. Is there a working dbox demo I could download? :-) or get some hints as to how to get this one to work? I'm using mapserver 4.8.1. I think I have all of the js files needed, but I'm getting a js error, box is not defined, on main.box = [box]; Thanks, John Cole
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.
From umberto.nicoletti at GMAIL.COM Fri Apr 21 07:59:02 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Fri, 21 Apr 2006 16:59:02 +0200 Subject: Java Mapscript - querybyattribut In-Reply-To: <75b4b93e0604192327q7bf62973h4eb9931e467c049d@mail.gmail.com> Message-ID: This issue will be tracked by bugzilla issue 1753: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1753 I have already posted a proposed patch which needs extensive testing. The patch goes to some extent in the direction pointed by Benedikt (thanks!), but is more flexible as it is able to use other encodings beside iso-8859 (and our friends in Japan will be happy, but they need to test it before they smile and say thanks). What encoding is used depends on your enviroment (LANG and his LC_* friends for UNIX folks). A not so short note on the dbf file we are using to test: they were probably created as iso-8859-15 and cannot be used when in utf-8 mode. Please note that this is *not* a problem with mapserver itself, but rather with the dbf file itself: when using utf-8 the glibc attempts to handle ALL characters (including strings in the dbf files) as unicode and that is the reason matching fails. I attach an UTF8 version I have created for personal purposes of the subset.dbf so that you can verify if I am barking up the right tree. To go into UTF8 mode: export LANG=de_DE.UTF-8 export LC_ALL=de_DE.UTF-8 export LC_CLANG=de_DE.UTF-8 ... for all LC vars To go into ISO8859 mode: export LANG=de_DE.ISO-8859-1 export LC_ALL=de_DE.ISO-8859-1 export LC_CLANG=de_DE.ISO-8859-1 ... for all LC vars Best regards and happy coding, Umberto On 4/20/06, Umberto Nicoletti wrote: > Please open an issue in bugzilla. I'll add some debugging to mapserver > in cvs and then we'll start from there. > > See you tomorrow. > > Best regards, > Umberto > > On 4/20/06, Benedikt Rothe wrote: > > > > Hi all > > > > For experimental purpose I added a "UTF-8 -> ISO-8859-Conversion" > > in two functions of mapscript_wrap.c > > The functions are the JNI-Implementations of mapObj.getLayerByName and > > layerObj.queryByAttributes. > > > > I testet with the QueryByAttribute-Program Umberto send and with a Shapefile > > (no database). > > I tested to find the layer named "???????" and in this layer the > > regular-expression > > "S?den". > > > > On my Windows-machine the results seem to be correct for the Command-Line- > > parameter-case and for the hardcoded-case. > > > > The implementation is experimental only. If strings are longer than 500 > > chars, > > unforeseeable things may happen. In practice one should think twice wether > > to > > use this kind of implementation or to use the build-in Java-encoders from > > JNI level. > > > > But the really difficult question is how anything like this could be > > reasonably incorporated > > with swig. I have no idea! > > > > Umberto? What do you think? > > > > Norbert: To be honorable, I don't think it is promising to change the > > Strings in the > > higher Java-level. > > > > For some days code with example can be dowloaded from > > http://www2.hydrotec.de/webdemos/be/umlaute.zip > > (Compiled mapscript.dll is included. Other dll's can be used from normal > > mapserver 4.8.2) > > > > Benedikt > > > > PS: I think of this as a bug in mapserver. Should a bug in bugzilla be > > opened? > > > > listuser HH schrieb am 19.04.2006 10:05:13: > > > > > Hi Benedikt, > > > > > > thanks for the interest. I have the encoding problem when I try to > > > "getLayerByName()". I could get around the problem at this point but I > > > think I will have the problem later again. So testing is easy - I just > > > use a simple layer with the name "Regierungspr?sidien". When I use this > > > string to get the layer by name it doesn't work. To be sure I tried to > > > check this string with the name of the layer which I get from > > > map.getLayer(0) - which is equal to the other. > > > > > > My thought was to convert the string before using it in mapscript > > > functions. Java brings two things to convert strings - perhaps there are > > > more. > > > > > > 1. make a new String from the old in a special encoding - e.g. --> new > > > String(oldString.getBytes(), "ISO8859-1") > > > 2. convert chars to different encoding - e.g. [snip] --> > > > CharToByteISO8859_1 conv4ISO = new > > > CharToByteISO8859_1(); > > > char[] cs = layerName.toCharArray(); > > > conv4ISO.convert(charArray, 0, charArray.length, > > > byteArray, 0, byteArray.length); > > > new String(byteArray); > > > > > > Because I'm not sure about which encodings are used at wich stpes I > > > tried some combinations but without luck. I think my code from eclipse > > > is CP1252. In the eclipse editor properties I changed this to UTF8 and > > > ISO which also didn't work. I tried to I'm not sure what happens when > > > mapscript use JNI. Perhaps the string gets converted to UTF8. If this is > > > right I see no chance for me to change the string in java because it > > > gets converted even if it is already UTF8. I have to say that I'm not > > > familiar with this encoding things. If someone has an advice I will > > > going on testing. > > > > > > I think it will be a good thing to have "UTF-8 -> ISO-8859-Conversion" > > > like you suggested. At the moment I can't do this because I have no > > > possibility to compile the c code. > > > > > > Best regards, > > > > > > Norbert > > > > > > Benedikt Rothe wrote: > > > > > > >Umberto, Nicol, Norbert, Oliver > > > > > > > >Umberto wrote > > > > > > > > > > > >>try to run the attached Java source. > > > >> > > > >> > > > >... > > > > > > > > > > > >>"S?dliche Weinstra?e" as the second it will work! > > > >> > > > >> > > > > > > > >In my copy of your mail the queryByAttribute.java-program is not > > > >attached. Could somebody post program including testdata (or > > > >download-url) ? > > > > > > > >I 'd like to study a running example, because I don't understand > > > >how umlaut-conversion from Java to Mapserver-kernel can run > > > >properly anyway and I'd like to understand it :-) > > > >----------- > > > >It seems Norbert found a kind of answer to his question > > > > > > > > > > > > > >>is there a way to do the converion in java dircetly? > > > >> > > > >> > > > >He suggested > > > > > > > > > > > > > >>Try to convert the String before you set the expression in your code(-> > > > >> > > > >> > > > >String( byte > > > > > > > > > > > >>bytes[], String ) > > > >> > > > >> > > > >Could you be more precisly? I do not understand what must be converted to > > > >what. > > > >How must this be applied to convert a Java-String to a proper > > > >"Mapserver-String" (?) > > > >----------- > > > >Is somebody willing to try to add an "UTF-8 -> ISO-8859-Conversion" in > > > >mapscript_wrap.c for testpurposes? (Even in the case it works, this would > > > >not be a real solution because it bypasses swig.) > > > > > > > >Benedikt > > > > > > > > > > > >UMN MapServer Users List schrieb am > > > >14.04.2006 15:23:51: > > > > > > > > > > > > > > > >>Olivier, > > > >>I GOT IT! > > > >> > > > >>try to run the attached Java source. If you pass it two arguments the > > > >>first being the path to the map file and the second the string to > > > >>search for and you pass > > > >>"S?dliche Weinstra?e" as the second it will work! > > > >> > > > >>So why does it fail when "S?dliche Weinstra?e" is inside the Java > > > >>code? That is a problem that only happens when javac compiles the > > > >>source: javac translates all characters to unicode and in doing that > > > >>it gets the german characters wrong. > > > >>To solve this give javac the following option: -source 1.4 > > > >> > > > >>For more see this link: > > > > > >>http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5046139 > > > > > >> > > > >>On 4/13/06, Umberto Nicoletti wrote: > > > >> > > > >> > > > >>>This is probably not related only to java mapscript, so please read > > > >>> > > > >>> > > > >on. > > > > > > > > > > > >>So I was wrong...but I'll leave the proof to the reader ;-) > > > >> > > > >>Best regards, > > > >>Umberto > > > > > >> > > > >> > > > >> > > > >>>On 3/30/06, Oliver Wesp wrote: > > > >>> > > > >>> > > > >>>>Dear List, > > > >>>> > > > >>>>I' struggling with queryByAttributes on an attribute field with > > > >>>> > > > >>>> > > > >german > > > > > > > > > > > >>>>umlauts using java mapscript. > > > >>>>The odd thing is that the same thing works fine with php mapscript > > > >>>> > > > >>>> > > > >and > > > > > > > > > > > >>>>when I use expressions in my mapfile. I'm using a shapefile as > > > >>>> > > > >>>> > > > >>datasource. > > > > > >> > > > >> > > > >>>Could someone of the other mapserver developers shed some light on > > > >>> > > > >>> > > > >>this issue? > > > > > >> > > > >> > > > >>>I have a clue to give: php mapscript is using a different regex > > > >>>library and this explains why the match does not happen for Java > > > >>>mapscript, while it does happen in php mapscript. If I am right also > > > >>>the mapserver cgi should be affected and possibly all other mapscript > > > >>>too. > > > >>> > > > >>>It would be very interesting if someone could report on similar > > > >>>experiences with the cgi-bin version of mapserver. > > > >>> > > > >>>Thanks, > > > >>>Umberto > > > >>> > > > >>> > > > >>> > > > >>>>Here is what I do: > > > >>>> > > > >>>>layer.queryByAttributes(map,"KREIS_NAME", "/S?dliche Weinstra?e/", > > > > > >>>>mapscriptConstants.MS_MULTIPLE); > > > >>>>layer.open(); > > > >>>>System.out.println( "Result Count: " +layer.getNumResults() ); > > > >>>>layer.close(); > > > >>>> > > > >>>>The result is always null while replacing the qstring with something > > > >>>>that doesn't contain special characters (e.g. > > > >>>>'Mainz-Bingen') works fine. > > > >>>> > > > >>>>As noted above the following layer definition in a mapfile works > > > >>>> > > > >>>> > > > >fine > > > > > > > > > > > >>>>LAYER > > > >>>> NAME kreis > > > >>>> STATUS DEFAULT > > > >>>> TYPE polygon > > > >>>> DATA "/tmp/subset" > > > >>>> TEMPLATE "kreis.html" > > > >>>> CLASSITEM KREIS_NAME > > > >>>> CLASS > > > >>>> NAME Boundary > > > >>>> COLOR 128 128 0 > > > >>>> OUTLINECOLOR 0 0 0 > > > >>>> EXPRESSION /S?dliche Weinstra?e/ > > > > > >>>> END > > > >>>>END > > > >>>> > > > >>>> > > > >>>>but this does not: > > > >>>> > > > >>>>layer.setClassitem("KREIS_NAME"); > > > >>>>classObj cl = new classObj(layer); > > > >>>>cl.setName("Classname"); > > > >>>>cl.setExpression("/S?dliche Weinstra?e/"); > > > > > >>>> > > > >>>>I use Mapserver 4.8.1 on W2k, Tomcat 5.0.28. > > > >>>> > > > >>>>I can provide some sample data, just in case someone likes to > > > >>>> > > > >>>> > > > >reproduce. > > > > > > > > > > > >>>>Any help is appreciated. > > > >>>> > > > >>>>best regards > > > >>>>Oliver > > > >>>>-- > > > >>>>Dipl.-Geogr. Oliver Wesp > > > >>>>Gesellschaft fuer geografische Datenverarbeitung > > > >>>>Binger Strasse 49-51 > > > >>>>D-55218 Ingelheim > > > >>>>fon: +49 6132 714818 > > > >>>>fax: +49 6132 714828 > > > >>>>http: www.gdv.com > > > >>>> > > > >>>> > > > >>>> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >>is there a way to do the converion in java dircetly? > > > >> > > > >> > > > >He suggested > > > > > > > > > > > > > >>Try to convert the String before you set the expression in your code(-> > > > >> > > > >> > > > >String( byte > > > > > > > > > > > >>bytes[], String ) > > > >> > > > >> > > > >Could you be more precisly? I do not understand what must be converted to > > > >what. > > > >How must this be applied to convert a Java-String to a proper > > > >"Mapserver-String" (?) > > > >----------- > > > >Is somebody willing to try to add an "UTF-8 -> ISO-8859-Conversion" in > > > >mapscript_wrap.c for testpurposes? (Even in the case it works, this would > > > >not be a real solution because it bypasses swig.) > > > > > > > >Benedikt > > > > > > > > > > > >UMN MapServer Users List schrieb am > > > >14.04.2006 15:23:51: > > > > > > > > > > > > > > > >>Olivier, > > > >>I GOT IT! > > > >> > > > >>try to run the attached Java source. If you pass it two arguments the > > > >>first being the path to the map file and the second the string to > > > >>search for and you pass > > > >>"S?dliche Weinstra?e" as the second it will work! > > > >> > > > >>So why does it fail when "S?dliche Weinstra?e" is inside the Java > > > >>code? That is a problem that only happens when javac compiles the > > > >>source: javac translates all characters to unicode and in doing that > > > >>it gets the german characters wrong. > > > >>To solve this give javac the following option: -source 1.4 > > > >> > > > >>For more see this link: > > > > > >>http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5046139 > > > > > >> > > > >>On 4/13/06, Umberto Nicoletti wrote: > > > >> > > > >> > > > >>>This is probably not related only to java mapscript, so please read > > > >>> > > > >>> > > > >on. > > > > > > > > > > > >>So I was wrong...but I'll leave the proof to the reader ;-) > > > >> > > > >>Best regards, > > > >>Umberto > > > > > >> > > > >> > > > >> > > > >>>On 3/30/06, Oliver Wesp wrote: > > > >>> > > > >>> > > > >>>>Dear List, > > > >>>> > > > >>>>I' struggling with queryByAttributes on an attribute field with > > > >>>> > > > >>>> > > > >german > > > > > > > > > > > >>>>umlauts using java mapscript. > > > >>>>The odd thing is that the same thing works fine with php mapscript > > > >>>> > > > >>>> > > > >and > > > > > > > > > > > >>>>when I use expressions in my mapfile. I'm using a shapefile as > > > >>>> > > > >>>> > > > >>datasource. > > > > > >> > > > >> > > > >>>Could someone of the other mapserver developers shed some light on > > > >>> > > > >>> > > > >>this issue? > > > > > >> > > > >> > > > >>>I have a clue to give: php mapscript is using a different regex > > > >>>library and this explains why the match does not happen for Java > > > >>>mapscript, while it does happen in php mapscript. If I am right also > > > >>>the mapserver cgi should be affected and possibly all other mapscript > > > >>>too. > > > >>> > > > >>>It would be very interesting if someone could report on similar > > > >>>experiences with the cgi-bin version of mapserver. > > > >>> > > > >>>Thanks, > > > >>>Umberto > > > >>> > > > >>> > > > >>> > > > >>>>Here is what I do: > > > >>>> > > > >>>>layer.queryByAttributes(map,"KREIS_NAME", "/S?dliche Weinstra?e/", > > > > > >>>>mapscriptConstants.MS_MULTIPLE); > > > >>>>layer.open(); > > > >>>>System.out.println( "Result Count: " +layer.getNumResults() ); > > > >>>>layer.close(); > > > >>>> > > > >>>>The result is always null while replacing the qstring with something > > > >>>>that doesn't contain special characters (e.g. > > > >>>>'Mainz-Bingen') works fine. > > > >>>> > > > >>>>As noted above the following layer definition in a mapfile works > > > >>>> > > > >>>> > > > >fine > > > > > > > > > > > >>>>LAYER > > > >>>> NAME kreis > > > >>>> STATUS DEFAULT > > > >>>> TYPE polygon > > > >>>> DATA "/tmp/subset" > > > >>>> TEMPLATE "kreis.html" > > > >>>> CLASSITEM KREIS_NAME > > > >>>> CLASS > > > >>>> NAME Boundary > > > >>>> COLOR 128 128 0 > > > >>>> OUTLINECOLOR 0 0 0 > > > >>>> EXPRESSION /S?dliche Weinstra?e/ > > > > > >>>> END > > > >>>>END > > > >>>> > > > >>>> > > > >>>>but this does not: > > > >>>> > > > >>>>layer.setClassitem("KREIS_NAME"); > > > >>>>classObj cl = new classObj(layer); > > > >>>>cl.setName("Classname"); > > > >>>>cl.setExpression("/S?dliche Weinstra?e/"); > > > > > >>>> > > > >>>>I use Mapserver 4.8.1 on W2k, Tomcat 5.0.28. > > > >>>> > > > >>>>I can provide some sample data, just in case someone likes to > > > >>>> > > > >>>> > > > >reproduce. > > > > > > > > > > > >>>>Any help is appreciated. > > > >>>> > > > >>>>best regards > > > >>>>Oliver > > > >>>>-- > > > >>>>Dipl.-Geogr. Oliver Wesp > > > >>>>Gesellschaft fuer geografische Datenverarbeitung > > > >>>>Binger Strasse 49-51 > > > >>>>D-55218 Ingelheim > > > >>>>fon: +49 6132 714818 > > > >>>>fax: +49 6132 714828 > > > >>>>http: www.gdv.com > > > >>>> > > > >>>> > > > >>>> > > > > > > > > > > > > > > > > > > > > > -------------- next part -------------- A non-text attachment was scrubbed... Name: mio-subset.dbf Type: application/octet-stream Size: 353 bytes Desc: not available URL: From Mark.Adams at DPRA.COM Fri Apr 21 09:18:52 2006 From: Mark.Adams at DPRA.COM (Mark Adams) Date: Fri, 21 Apr 2006 11:18:52 -0500 Subject: problem with drawing scalebar with PHP mapscript Message-ID: Hi all, I've got a strange problem I need assistance with. We've got an application that uses PHP mapscript, running on v4.2, v4.4 and v4.6 on various servers in various locations including client sites. Recently we've started working with v4.8 and v4.9, and we're having trouble with the scalebar. When we move applications from the machines that are running earlier versions and move them to a v4.9 machine, without changing an code, the scalebar fails to draw. For whatever reason, the call to embed the scalebar - $gpoMap->embedScalebar($gpoImg); - returns 0 instead of 1. I can get the scalebar OK through mapserver CGI calls. The outputformat is defined as: OUTPUTFORMAT NAME png24bit DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE rgb FORMATOPTION "INTERLACE=OFF" END The scalebar is defined as: SCALEBAR STATUS ON POSITION LR POSTLABELCACHE TRUE #BACKGROUNDCOLOR 166 202 240 BACKGROUNDCOLOR 254 219 67 COLOR 0 0 156 OUTLINECOLOR 166 202 240 TRANSPARENT ON #IMAGECOLOR 0 0 0 UNITS KILOMETERS INTERVALS 4 SIZE 200 8 STYLE 0 LABEL SIZE SMALL COLOR 0 0 156 ANTIALIAS TRUE OUTLINECOLOR 254 219 67 #SHADOWCOLOR 166 202 240 #SHADOWSIZE 3 3 END END Any ideas what we might be doing wrong? Has anything changed in the PHP mapscript class library or the mapserver object model that would cause this? Dependent libraries? Thanks in advance.... ------------------------------ Mark Adams Senior Analyst & Project Manager Cuesta Systems (DPRA Canada) 5230 South Service Road Burlington, ON L7L 5K2 Phone: 905-333-4544 x14 Fax: 905-333-0455 Email: mark.adams at dpra.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bpederse at NATURE.BERKELEY.EDU Fri Apr 21 09:40:55 2006 From: bpederse at NATURE.BERKELEY.EDU (Brent Pedersen) Date: Fri, 21 Apr 2006 09:40:55 -0700 Subject: randomly assigned COLOR 's? Message-ID: hi, with a map of the world with country boundaries and using only the mapserver CGI, is it possible to have the countries filled with one of ~5 different colors. either at random or uniformly. is there a way to do this in the mapfile without relying on attributes in the shapefile? my fallback solution will be to add a column in the .shp and assign number 1 - 5 to each country and use that in a map file EXPRESSION. i thought maybe there was another means i was missing. something like an automatic alternating color scheme... to help me do less work. thanks, -brent From asimpson at I-55.COM Fri Apr 21 10:16:50 2006 From: asimpson at I-55.COM (Simpson) Date: Fri, 21 Apr 2006 12:16:50 -0500 Subject: Minimum Feature Size In-Reply-To: <2F89E8AC-5C8E-406C-B5E3-42BEC06A49D2@nature.berkeley.edu> Message-ID: At certain scales some of my vector features are too small to bother rendering, but MS draws a little blob to represent the feature. Is it possible in the mapfile to limit features to a certain minimum size? I see LABEL has MINFEATURESIZE, but don't see how to do the same with the feature. Thanks for any help, Drew. From earevaloch at GMAIL.COM Fri Apr 21 10:04:09 2006 From: earevaloch at GMAIL.COM (=?ISO-8859-1?Q?Eduardo_Ar=E9valo?=) Date: Fri, 21 Apr 2006 12:04:09 -0500 Subject: Error in installation and to mapserver 4.8.3 Message-ID: hello: At the moment to execute following $. /configure $ ./configure --prefix=/usr/local/mapserver --with-ogr=/usr/local/gdal/bin/gdal-config --with-gdal=/usr/local/gdal/bin/gdal-config --with-apache=/usr/local/apache2 --with-httpd=/usr/local/apache2/bin --with-wfsclient --with-wmsclient --enable-debug --with-curl-config=/usr/bin/curl-config --with-proj=/usr/local/proj4 --with-tiff=/usr/local/tiff --with-gd=/usr/local/gd/lib --with-jpeg=/usr/lib --with-freetype=/usr/local/freetype2/bin/freetype-config --with-postgis=/var/lib/pgsql/bin/pg_config it finishes executing and it reports the following error ...... ..... ........ configure: error: Could not find gd.h or libgd.a/libgd.so in /usr/local/gd/lib. Make sure GD 2.0.16 or higher is compiled before calling configure. You may als o get this error if you didn't specify the appropriate location for one of GD's dependencies (freetype, libpng, libjpeg or libiconv). reports the same error when executing simple $. /configure the version of gd installed is gd 2.0.33 aid please excuse the english -------------- next part -------------- An HTML attachment was scrubbed... URL: From abe.gillespie at GMAIL.COM Fri Apr 21 10:22:15 2006 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Fri, 21 Apr 2006 13:22:15 -0400 Subject: randomly assigned COLOR 's? In-Reply-To: <2F89E8AC-5C8E-406C-B5E3-42BEC06A49D2@nature.berkeley.edu> Message-ID: Using the EXPRESSION option sounds like a good idea to me. You can take it a step further to have dynamic random colors instead of the static scheme you speak of. You could import the data into PostGIS. Then, you can probably construct a clever SELECT statement that uses PostgreSQL / PostGIS functions to generate a column containing random numbers. Of course it might be tricky to have the random numbers dynamic on a per session basis. Good luck. -Abe On 4/21/06, Brent Pedersen wrote: > hi, > > with a map of the world with country boundaries and > using only the mapserver CGI, is it possible to have the countries > filled with one of ~5 different colors. either at random or > uniformly. is there a way to do this in the mapfile without relying > on attributes in the shapefile? > > my fallback solution will be to add a column in the .shp and assign > number 1 - 5 to each country and use that in a map file EXPRESSION. i > thought maybe there was another means i was missing. something like > an automatic alternating color scheme... to help me do less work. > > thanks, > -brent > From banders at REFRACTIONS.NET Fri Apr 21 10:31:35 2006 From: banders at REFRACTIONS.NET (Brock Anderson) Date: Fri, 21 Apr 2006 10:31:35 -0700 Subject: Minimum Feature Size In-Reply-To: Message-ID: Drew, If you have some attribute data that indicates the size or importance of your feautres (such as 'area'), you could use that to control which features are shown at certain scales. For example: LAYER ... CLASS #show some features EXPRESSION ([area] > 500) MINSCALE 500000 MAXSCALE 750000 ... END #CLASS CLASS #show more features EXPRESSION ([area] > 100) MINSCALE 250000 MAXSCALE 500000 ... END #CLASS CLASS #show all features MAXSCALE 250000 ... END #CLASS END #LAYER Brock Simpson wrote: >At certain scales some of my vector features are too small to bother >rendering, but MS draws a little blob to represent the feature. > >Is it possible in the mapfile to limit features to a certain minimum size? > >I see LABEL has MINFEATURESIZE, but don't see how to do the same with the >feature. > >Thanks for any help, >Drew. > > From David.Fawcett at STATE.MN.US Fri Apr 21 10:46:48 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri, 21 Apr 2006 12:46:48 -0500 Subject: randomly assigned COLOR 's? Message-ID: Brent, Since your countries shapefile likely won't change very often, I would go with your fallback solution. It is always faster to pre-class your data. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Brent Pedersen Sent: Friday, April 21, 2006 11:41 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] randomly assigned COLOR 's? hi, with a map of the world with country boundaries and using only the mapserver CGI, is it possible to have the countries filled with one of ~5 different colors. either at random or uniformly. is there a way to do this in the mapfile without relying on attributes in the shapefile? my fallback solution will be to add a column in the .shp and assign number 1 - 5 to each country and use that in a map file EXPRESSION. i thought maybe there was another means i was missing. something like an automatic alternating color scheme... to help me do less work. thanks, -brent From tylermitchell at SHAW.CA Fri Apr 21 10:51:19 2006 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Fri, 21 Apr 2006 10:51:19 -0700 Subject: Error in installation and to mapserver 4.8.3 In-Reply-To: <95f68e530604211004o132de56br313ade2781400836@mail.gmail.com> Message-ID: Eduardo, Have you compiled MapServer once before? How did you install GD - was it using an RPM package or was it already part of your operating system? I suspect that you may have installed it using a gd rpm file, in that case you need to also install the gd-devel rpm. This will provide the necessary files for compiling GD support into MapServer. Hope that helps! Tyler ----- Original Message ----- From: Eduardo Ar?valo Date: Friday, April 21, 2006 10:04 am Subject: [UMN_MAPSERVER-USERS] Error in installation and to mapserver 4.8.3 > hello: > At the moment to execute following > $. /configure > > $ ./configure --prefix=/usr/local/mapserver > --with-ogr=/usr/local/gdal/bin/gdal-config > --with-gdal=/usr/local/gdal/bin/gdal-config --with- > apache=/usr/local/apache2--with-httpd=/usr/local/apache2/bin -- > with-wfsclient --with-wmsclient > --enable-debug --with-curl-config=/usr/bin/curl-config > --with-proj=/usr/local/proj4 --with-tiff=/usr/local/tiff > --with-gd=/usr/local/gd/lib --with-jpeg=/usr/lib > --with-freetype=/usr/local/freetype2/bin/freetype-config > --with-postgis=/var/lib/pgsql/bin/pg_config > > it finishes executing and it reports the following error ...... > > ..... > ........ > configure: error: Could not find gd.h or libgd.a/libgd.so in > /usr/local/gd/lib. > Make sure GD 2.0.16 or higher is compiled before calling > configure. You may > als > o get this error if you didn't specify the appropriate location > for one of > GD's > dependencies (freetype, libpng, libjpeg or libiconv). > > reports the same error when executing simple > $. /configure > > the version of gd installed is gd 2.0.33 > > aid please > > excuse the english > From listario at GMAIL.COM Fri Apr 21 10:59:18 2006 From: listario at GMAIL.COM (J. Parapar) Date: Fri, 21 Apr 2006 19:59:18 +0200 Subject: Error in installation and to mapserver 4.8.3 In-Reply-To: <95f68e530604211004o132de56br313ade2781400836@mail.gmail.com> Message-ID: Eduardo, Have you checked that libgd is in /usr/local/gd/lib? Best regards, Jorge 2006/4/21, Eduardo Ar?valo : > hello: > At the moment to execute following > $. /configure > > $ ./configure --prefix=/usr/local/mapserver > --with-ogr=/usr/local/gdal/bin/gdal-config > --with-gdal=/usr/local/gdal/bin/gdal-config > --with-apache=/usr/local/apache2 > --with-httpd=/usr/local/apache2/bin --with-wfsclient > --with-wmsclient --enable-debug > --with-curl-config=/usr/bin/curl-config > --with-proj=/usr/local/proj4 --with-tiff=/usr/local/tiff > --with-gd=/usr/local/gd/lib --with-jpeg=/usr/lib > --with-freetype=/usr/local/freetype2/bin/freetype-config > --with-postgis=/var/lib/pgsql/bin/pg_config > > it finishes executing and it reports the following error ...... > > ..... > ........ > configure: error: Could not find gd.h or libgd.a/libgd.so in > /usr/local/gd/lib. > Make sure GD 2.0.16 or higher is compiled before calling configure. You > may als > o get this error if you didn't specify the appropriate location for one of > GD's > dependencies (freetype, libpng, libjpeg or libiconv). > > reports the same error when executing simple > $. /configure > > the version of gd installed is gd 2.0.33 > > aid please > > excuse the english > From Ken.Boss at DNR.STATE.MN.US Fri Apr 21 11:19:31 2006 From: Ken.Boss at DNR.STATE.MN.US (Ken Boss) Date: Fri, 21 Apr 2006 13:19:31 -0500 Subject: Antialiasing Again Message-ID: Paul-- My apologies if this shows up twice, I sent it out yesterday but it appears to have gotten stuck in the network wires somewhere. Anyway, I believe you need to: 1) use a 24-bit output image type (IMAGEMODE RGB (or RGBA)) 2) set TRANSPARENCY ALPHA in the layer using antialiased lines 3) set ANTIALIAS TRUE in the STYLE element of the CLASS with antialiased lines The following mapfile snippets enable antialiased county borders: ... IMAGETYPE png24 ... OUTPUTFORMAT NAME png24 DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END ... LAYER NAME counties TYPE line STATUS default DATA "/r01/data/drs/data/gen/state/mn/bdry_counln2" TRANSPARENCY alpha SYMBOLSCALE 5000000 CLASS STYLE WIDTH 3 COLOR 1 1 1 ANTIALIAS true END END END ... Note that the bdry_counln2 shapefile referenced in the counties layer is a line shapefile. If I drop a polygon shapefile into the DATA element, and leave TYPE as line, the results are more or less the same. Alternatively, I can use a polygon shapefile, set TYPE to POLYGON, and use OUTLINECOLOR in place of COLOR in the STYLE element. In any case, I'm not sure that the POLYLINE type is supported any longer. Finally, note that you can tweak the combination of STYLE->WIDTH and SYMBOLSCALE to modify line widths in your output images. HTH, --Ken >>> Paul Dugas 4/19/2006 10:59 AM >>> I cannot seem to get MapServer-4.8.3 to draw antialiases lines. It is working for polygons, but not for polylines. I got this working a long time ago for another project but can't seem to this time. What I'm really trying to accomplish is a smoothed two-tone line. I've tried using ELLIPSE and CARTOLINE symbols with no success. Would someone be willing to share a small working example I can start from? Thanks in advance, Paul -- Paul Dugas, Computer Engineer Dugas Enterprises, LLC paul at dugas.cc phone: 404-932-1355 522 Black Canyon Park http://dugas.cc fax: 866-751-6494 Canton, GA 30114 USA -- On site at GDOT's W.Annex, 404-463-2860 x199 -- This e-mail and any attachments are confidential. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -------------- next part -------------- An HTML attachment was scrubbed... URL: From work at XWB.COM Fri Apr 21 11:54:21 2006 From: work at XWB.COM (Chip Taylor) Date: Fri, 21 Apr 2006 11:54:21 -0700 Subject: PostGIS beginner question In-Reply-To: Message-ID: We are just getting our feet wet with PostGIS, running Mapserver as CGI on IIS6. We have a basic question. Below is an example of our layer from the mapfile. LAYER NAME "testlayer" TYPE POLYGON CONNECTIONTYPE POSTGIS CONNECTION "dbname=mydb user=myuser password=mypw host=myserver port=5432" DATA "wkb_geometry from (select * from getcounty(-122.4419846666667,47.250942883333)) As myTable USING UNIQUE ogc_fid using SRID=32767" STATUS default TRANSPARENCY 50 LABELITEM "population" CLASS EXPRESSION ([population] > 0) COLOR 255 245 220 MINSCALE 0 MAXSCALE 100000000 STYLE OUTLINECOLOR 25 25 45 SYMBOL 'cartoline' SIZE 1 END LABEL FONT "Arialbd" TYPE TRUETYPE ANTIALIAS TRUE COLOR 0 0 0 OUTLINECOLOR 255 255 220 SIZE 8 MINDISTANCE 300 END END PROJECTION "init=epsg:4269" END END # postGIS test The question is, when the user clicks on the map, how do we pass the location of that click into PostGIS as a parameter. Thanks in advance for your help. Chip Taylor -------------- next part -------------- An HTML attachment was scrubbed... URL: From pramsey at REFRACTIONS.NET Fri Apr 21 11:59:55 2006 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Fri, 21 Apr 2006 11:59:55 -0700 Subject: PostGIS beginner question In-Reply-To: <022b01c66575$00e31960$0601a8c0@DevChip> Message-ID: It's a bit of a pain. See the Mapserver examples end of my tutorial at OSGIS/MUM 2005 P On 21-Apr-06, at 11:54 AM, Chip Taylor wrote: > We are just getting our feet wet with PostGIS, running Mapserver as > CGI on IIS6. We have a basic question. Below is an example of our > layer from the mapfile. > > > > LAYER > > NAME "testlayer" > > TYPE POLYGON > > CONNECTIONTYPE POSTGIS > > CONNECTION "dbname=mydb user=myuser password=mypw > host=myserver port=5432" > > DATA "wkb_geometry from (select * from getcounty > (-122.4419846666667,47.250942883333)) As myTable USING UNIQUE > ogc_fid using SRID=32767" > > > > STATUS default > > TRANSPARENCY 50 > > LABELITEM "population" > > CLASS > > EXPRESSION ([population] > 0) > > COLOR 255 245 220 > > MINSCALE 0 > > MAXSCALE 100000000 > > STYLE > > OUTLINECOLOR 25 25 45 > > SYMBOL 'cartoline' > > SIZE 1 > > END > > LABEL > > FONT "Arialbd" > > TYPE TRUETYPE > > ANTIALIAS TRUE > > COLOR 0 0 0 > > OUTLINECOLOR 255 255 220 > > SIZE 8 > > MINDISTANCE 300 > > END > > END > > PROJECTION > > "init=epsg:4269" > > END > > END # postGIS test > > > > > > The question is, when the user clicks on the map, how do we pass > the location of that click into PostGIS as a parameter. Thanks in > advance for your help. > > > > Chip Taylor > > > > From earevaloch at GMAIL.COM Fri Apr 21 12:27:53 2006 From: earevaloch at GMAIL.COM (=?ISO-8859-1?Q?Eduardo_Ar=E9valo?=) Date: Fri, 21 Apr 2006 14:27:53 -0500 Subject: Error in installation and to mapserver 4.8.3 In-Reply-To: Message-ID: Tyler if it is first you see. the these two GD installs of gd-2.0.33.tar.gz freetype also was freetype-2.1.10.tar.gz librerias libpng, libjpeg in /usr/lib settle with the system. The operating system is Centos 4,2 gd.h this in /usr/local/gd/include and this in /usr/local/gd libgd.a/libgd.so excuse the english 2006/4/21, Tyler Mitchell : > > Eduardo, > Have you compiled MapServer once before? How did you install GD - was it > using an RPM package or was it already part of your operating system? I > suspect that you may have installed it using a gd rpm file, in that case you > need to also install the gd-devel rpm. This will provide the necessary > files for compiling GD support into MapServer. > > Hope that helps! > Tyler > > ----- Original Message ----- > From: Eduardo Ar?valo > Date: Friday, April 21, 2006 10:04 am > Subject: [UMN_MAPSERVER-USERS] Error in installation and to mapserver > 4.8.3 > > > hello: > > At the moment to execute following > > $. /configure > > > > $ ./configure --prefix=/usr/local/mapserver > > --with-ogr=/usr/local/gdal/bin/gdal-config > > --with-gdal=/usr/local/gdal/bin/gdal-config --with- > > apache=/usr/local/apache2--with-httpd=/usr/local/apache2/bin -- > > with-wfsclient --with-wmsclient > > --enable-debug --with-curl-config=/usr/bin/curl-config > > --with-proj=/usr/local/proj4 --with-tiff=/usr/local/tiff > > --with-gd=/usr/local/gd/lib --with-jpeg=/usr/lib > > --with-freetype=/usr/local/freetype2/bin/freetype-config > > --with-postgis=/var/lib/pgsql/bin/pg_config > > > > it finishes executing and it reports the following error ...... > > > > ..... > > ........ > > configure: error: Could not find gd.h or libgd.a/libgd.so in > > /usr/local/gd/lib. > > Make sure GD 2.0.16 or higher is compiled before calling > > configure. You may > > als > > o get this error if you didn't specify the appropriate location > > for one of > > GD's > > dependencies (freetype, libpng, libjpeg or libiconv). > > > > reports the same error when executing simple > > $. /configure > > > > the version of gd installed is gd 2.0.33 > > > > aid please > > > > excuse the english > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From earevaloch at GMAIL.COM Fri Apr 21 13:42:05 2006 From: earevaloch at GMAIL.COM (=?ISO-8859-1?Q?Eduardo_Ar=E9valo?=) Date: Fri, 21 Apr 2006 15:42:05 -0500 Subject: Error in installation and to mapserver 4.8.3 In-Reply-To: <4ac992660604211059t154af941iefc1d0275ceb7185@mail.gmail.com> Message-ID: Jorge: in /usr/local/gd/lib/libgd.a libgd.la libgd.so.2 libgd.so.2.0.0 2006/4/21, J. Parapar : > > Eduardo, > > Have you checked that libgd is in /usr/local/gd/lib? > > > Best regards, > Jorge > > 2006/4/21, Eduardo Ar?valo : > > hello: > > At the moment to execute following > > $. /configure > > > > $ ./configure --prefix=/usr/local/mapserver > > --with-ogr=/usr/local/gdal/bin/gdal-config > > --with-gdal=/usr/local/gdal/bin/gdal-config > > --with-apache=/usr/local/apache2 > > --with-httpd=/usr/local/apache2/bin --with-wfsclient > > --with-wmsclient --enable-debug > > --with-curl-config=/usr/bin/curl-config > > --with-proj=/usr/local/proj4 --with-tiff=/usr/local/tiff > > --with-gd=/usr/local/gd/lib --with-jpeg=/usr/lib > > --with-freetype=/usr/local/freetype2/bin/freetype-config > > --with-postgis=/var/lib/pgsql/bin/pg_config > > > > it finishes executing and it reports the following error ...... > > > > ..... > > ........ > > configure: error: Could not find gd.h or libgd.a/libgd.so in > > /usr/local/gd/lib. > > Make sure GD 2.0.16 or higher is compiled before calling configure. > You > > may als > > o get this error if you didn't specify the appropriate location for one > of > > GD's > > dependencies (freetype, libpng, libjpeg or libiconv). > > > > reports the same error when executing simple > > $. /configure > > > > the version of gd installed is gd 2.0.33 > > > > aid please > > > > excuse the english > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bene at KLATSCH.ORG Fri Apr 21 13:49:11 2006 From: bene at KLATSCH.ORG (Ben Eisenbraun) Date: Fri, 21 Apr 2006 16:49:11 -0400 Subject: shapefile optimization for dynamic data In-Reply-To: <4428859F.5040503@swoodbridge.com> Message-ID: > Ben Eisenbraun wrote: >> I'm collecting data via a GPS and a sensor that reports a data >> point once per second. I'm using Mapserver CGI to generate an >> overlay onto a map via a javascript frontend that auto-refreshes >> every few seconds. The application has to run on a low-power >> embedded hardware device (roughly a p2-266), and I'm running into >> performance problems once I've collected a few thousand data >> points. The Mapserver CGI process tends to consume all the CPU >> trying to render the overlays. > Stephen Woodbridge wrote: > Using shptree will not help you that much in this scenario because of > the frequency of updating the file. You best bet would be use multiple > files and a tile index that you would have to add the new files to as > they are created. Then you can shptree on the non-active file, but not > on the active file. That will probably be the best scenario. Also make > sure you shptree the tileindex. A little follow up: I tried this route. I wrote the shapefile generation scripts so that you could set a max-points per shapefile, and the system would create a shapefile of, e.g., 1000 points, shptree it, add it to the tile index, shptree the tile index, and then create a new unindexed shapefile for adding the next batch of 1000 points. It had basically no effect. I tested a range of shapefile sizes from 5000 down to 50 points per shapefile with almost identical performance at all sizes for 20,000 total points. Testing with shptree indexes versus no indexes was almost identical. At the larger sizes, I saw approximately 3-5% decrease in rendering time. So... yuck. Given how strongly recommended shptree indexes are on the list, I thought my testing methodology might be flawed. I have a list of URLs that represent tiles for the entire dataset as well a list of URLs that are for common views of the data (zoom level and number of points) that I used for all my tests. I was using shell scripts using 'time' and 'curl' to grab images across the network, and I thought it might be a network or HTTP effect, but I was able to use 'shp2img' to duplicate the results locally. > If a shapefile does not have a qix spatial index, then mapserver creates > one on the fly and throws it away. If you are adding a point a second > the file is probably getting updated faster than you can index it and > then render it. Using the tileindex should really help in this case > also, because only the files the intersect you current display window > need to be opened and looked at. I think my shapefile sizes must be significantly smaller than the data that most people are using. 20,000 points ends up being about 1.5 MB of shapefiles with slightly larger dbf files for the attributes. I'm reading/writing these files to a ramdisk under Linux, so access should be pretty quick. My suspicion at this point is that the CPU is simply under specced for this application. It's not really a Pentium II; it's a low power 586-class Geode CPU with no level 2 cache. The biggest performance increase was achieved by breaking out the points into shapefiles based on their attributes. I was previously creating a single layer in the mapfile and using CLASS expressions to colorize the features. By pre-classifying the data into separate shapefiles, I was able to decrease rendering time by 10-12%. I never did end up checking out PostGIS or sqlite for this application, but I'm not sure it would have helped. The shapefile creation and updates are actually relatively low overhead in comparison to generating the overlays. Thanks for everyone's suggestions. -ben -- this machine kills fascists. From ed at TOPOZONE.COM Fri Apr 21 14:52:14 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 21 Apr 2006 17:52:14 -0400 Subject: shapefile optimization for dynamic data Message-ID: Ben - Thanks for the follow-up; storing your data on a RAM disk is not a typical scenario! And that (I think) is a major reason you're seeing little benefit from a shptree index. The chief benefit of a shptree index is that it allows MapServer to avoid reading objects from a shapefile that can't possibly be needed for the current request. If your shapefile is relatively small, external factors (processing the MAP file, locating the layer shapefile, opening the shapefile) will take proportionally more of the overall time, so the actual shapefile reading is a smaller piece of the puzzle and therefore less benefit to optimize. That is, if the actual shapefile reading makes up 30% of the entire MapServer runtime, and your indexing makes reduces the reading time by 50%, your request will only be 15% faster. In addition, disk seeking and reading is one of the slowest things you can do on a computer - unless it's a RAM disk, in which case it's one of the fastest! Since there are, of course, no moving parts in a RAM disk, seeking from one "location" to another just means updating a pointer. That's already so much faster that optimizing those "seeks" - i.e. optimizing a few pointer updates - won't help much. I think you're likely correct that the CPU speed is a major factor. However, when you've tweaked everything else, pay attention to how much time is spent simply processing the MAP file. This is often not obvious, since profiling reported with DEBUG ON must, of necessity, only cover operations after the MAP file is read (because MapServer has to read the MAP file to know you've included a DEBUG ON statement in it). I found applications that I thought were "pretty good" that were spending 3 times more time processing the MAP file than they spend drawing the map! - Ed Ed McNierney TopoZone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ben Eisenbraun Sent: Friday, April 21, 2006 4:49 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] shapefile optimization for dynamic data > Ben Eisenbraun wrote: >> I'm collecting data via a GPS and a sensor that reports a data >> point once per second. I'm using Mapserver CGI to generate an >> overlay onto a map via a javascript frontend that auto-refreshes >> every few seconds. The application has to run on a low-power >> embedded hardware device (roughly a p2-266), and I'm running into >> performance problems once I've collected a few thousand data >> points. The Mapserver CGI process tends to consume all the CPU >> trying to render the overlays. > Stephen Woodbridge wrote: > Using shptree will not help you that much in this scenario because of > the frequency of updating the file. You best bet would be use multiple > files and a tile index that you would have to add the new files to as > they are created. Then you can shptree on the non-active file, but not > on the active file. That will probably be the best scenario. Also make > sure you shptree the tileindex. A little follow up: I tried this route. I wrote the shapefile generation scripts so that you could set a max-points per shapefile, and the system would create a shapefile of, e.g., 1000 points, shptree it, add it to the tile index, shptree the tile index, and then create a new unindexed shapefile for adding the next batch of 1000 points. It had basically no effect. I tested a range of shapefile sizes from 5000 down to 50 points per shapefile with almost identical performance at all sizes for 20,000 total points. Testing with shptree indexes versus no indexes was almost identical. At the larger sizes, I saw approximately 3-5% decrease in rendering time. So... yuck. Given how strongly recommended shptree indexes are on the list, I thought my testing methodology might be flawed. I have a list of URLs that represent tiles for the entire dataset as well a list of URLs that are for common views of the data (zoom level and number of points) that I used for all my tests. I was using shell scripts using 'time' and 'curl' to grab images across the network, and I thought it might be a network or HTTP effect, but I was able to use 'shp2img' to duplicate the results locally. > If a shapefile does not have a qix spatial index, then mapserver creates > one on the fly and throws it away. If you are adding a point a second > the file is probably getting updated faster than you can index it and > then render it. Using the tileindex should really help in this case > also, because only the files the intersect you current display window > need to be opened and looked at. I think my shapefile sizes must be significantly smaller than the data that most people are using. 20,000 points ends up being about 1.5 MB of shapefiles with slightly larger dbf files for the attributes. I'm reading/writing these files to a ramdisk under Linux, so access should be pretty quick. My suspicion at this point is that the CPU is simply under specced for this application. It's not really a Pentium II; it's a low power 586-class Geode CPU with no level 2 cache. The biggest performance increase was achieved by breaking out the points into shapefiles based on their attributes. I was previously creating a single layer in the mapfile and using CLASS expressions to colorize the features. By pre-classifying the data into separate shapefiles, I was able to decrease rendering time by 10-12%. I never did end up checking out PostGIS or sqlite for this application, but I'm not sure it would have helped. The shapefile creation and updates are actually relatively low overhead in comparison to generating the overlays. Thanks for everyone's suggestions. -ben -- this machine kills fascists. From cjohnson at REFRACTIONS.NET Fri Apr 21 15:03:06 2006 From: cjohnson at REFRACTIONS.NET (Clint Johnson) Date: Fri, 21 Apr 2006 15:03:06 -0700 Subject: Error in installation and to mapserver 4.8.3 In-Reply-To: <95f68e530604211342u52f74243v7bfe777411797940@mail.gmail.com> Message-ID: I believe you should use: --with-gd=/usr/local/gd/ Do not add the /lib at the end. Try that. configure (ie automake and friends) will want to run your /usr/local/gd/bin/gd-config binary to determine where gd's libraries are; therefore, when you specify --with-gd=/usr/local/gd/lib, it's not going to find that binary. You could also try adding the path of gdlib-config into your path (in bash) export PATH=$PATH:/usr/local/gd/bin ./configure Let me know if that works, -Clint Eduardo Ar?valo wrote: > Jorge: > in /usr/local/gd/lib/libgd.a libgd.la libgd.so.2 > libgd.so.2.0.0 > > 2006/4/21, J. Parapar >: > > Eduardo, > > Have you checked that libgd is in /usr/local/gd/lib? > > > Best regards, > Jorge > > 2006/4/21, Eduardo Ar?valo >: > > hello: > > At the moment to execute following > > $. /configure > > > > $ ./configure --prefix=/usr/local/mapserver > > --with-ogr=/usr/local/gdal/bin/gdal-config > > --with-gdal=/usr/local/gdal/bin/gdal-config > > --with-apache=/usr/local/apache2 > > --with-httpd=/usr/local/apache2/bin --with-wfsclient > > --with-wmsclient --enable-debug > > --with-curl-config=/usr/bin/curl-config > > --with-proj=/usr/local/proj4 --with-tiff=/usr/local/tiff > > --with-gd=/usr/local/gd/lib --with-jpeg=/usr/lib > > --with-freetype=/usr/local/freetype2/bin/freetype-config > > --with-postgis=/var/lib/pgsql/bin/pg_config > > > > it finishes executing and it reports the following error ...... > > > > ..... > > ........ > > configure: error: Could not find gd.h or libgd.a/libgd.so in > > /usr/local/gd/lib. > > Make sure GD 2.0.16 or higher is compiled before calling > configure. You > > may als > > o get this error if you didn't specify the appropriate location > for one of > > GD's > > dependencies (freetype, libpng, libjpeg or libiconv). > > > > reports the same error when executing simple > > $. /configure > > > > the version of gd installed is gd 2.0.33 > > > > aid please > > > > excuse the english > > > > -- Clint Johnson Refractions Research Inc. Cjohnson at refractions.net From hydromap at GMAIL.COM Fri Apr 21 20:09:13 2006 From: hydromap at GMAIL.COM (Shoaib Burq) Date: Sat, 22 Apr 2006 13:09:13 +1000 Subject: MapScript Save to GeoTiff or Tiff/worldfile In-Reply-To: Message-ID: you might want to look at the WCS for this purposes. i don't think world files are supported but certainly the internally georeferenced geotiffs work. On 4/19/06, Simpson wrote: > > > In MapScript 4.8.1 with GDAL 1.3.1.0, is there anything special one has to > do to save image to GeoTiff or to a Tiff with worldfile? > > In the GeoTiff case, the tiff is created but no CRS info when I run a > gdalinfo against it. > > In the Tiff with worldfile, no worldfile is created. > > Thanks for any help, > Drew. > > > ============= mapfile clip ===================== > > MAP > EXTENT 764355.44479 3337347.51664 834777.592259 3402902.747157 > FONTSET "xxx" > IMAGECOLOR 156 188 217 > IMAGETYPE GTIFWLD > SYMBOLSET "xxx" > SIZE 2347 2185 > STATUS ON > UNITS METERS > NAME "DIPEX3" > > OUTPUTFORMAT > NAME "GTIFWLD" > MIMETYPE "image/tiff" > DRIVER "GDAL/GTiff" > EXTENSION "tif" > IMAGEMODE "PC256" > TRANSPARENT FALSE > FORMATOPTION "WORLDFILE=YES" > END > > PROJECTION > "init=epsg:32615" > END > > ... > END > > ============= gdalinfo clip ======================= > > Driver: GTiff/GeoTIFF > Size is 2347, 2185 > Coordinate System is `' > Corner Coordinates: > Upper Left ( 0.0, 0.0) > Lower Left ( 0.0, 2185.0) > Upper Right ( 2347.0, 0.0) > Lower Right ( 2347.0, 2185.0) > Center ( 1173.5, 1092.5) > Band 1 Block=2347x3 Type=Byte, ColorInterp=Palette > Color Table (RGB with 256 entries) > 0: 156,188,217,255 > 1: 0,0,0,255 > ... > > > From mapserver at GEOWORLD.DE Fri Apr 21 22:34:52 2006 From: mapserver at GEOWORLD.DE (Nicol Hermann) Date: Sat, 22 Apr 2006 07:34:52 +0200 Subject: Querying Multiple Items using queryByAttributes In-Reply-To: <8bb5a418bb5220.8bb52208bb5a41@shaw.ca> Message-ID: Hi Sean, see http://mapserver.gis.umn.edu/cgi-bin/wilma_hiliter/mapserver-users/0407/msg00395.html?line=1498#hilite HTH Nicol Am Freitag, den 21.04.2006, 06:22 -0700 schrieb Sean Fadum: > Hi, > > Does anyone know if it is possible to query multiple fields using Mapscript's queryByAttributes? If so does anyone have the syntax for this? I am able to query one field as of right now but would like to be able a bunch of fields. I am using php/mapscript for this project. > > Cheers, > Sean From bill at BINKO.NET Sat Apr 22 02:15:15 2006 From: bill at BINKO.NET (Bill Binko) Date: Sat, 22 Apr 2006 05:15:15 -0400 Subject: chart on the map In-Reply-To: <16CE38DD052D6F42881F8966E0D3EB22518EFE@agits-mail03.ag-it.com> Message-ID: Hmm. Your best bet would be to use the piechart hack Steve Lime came up with. Even better, ask the list (maserver-users at lists.umn.edu). I have not done anything like this. Bill On Thu, 2006-04-20 at 12:58 +0700, Ahmad Hadi Wijaya wrote: > Good evening Mr Bill, > > > > I have spent a whole months to show chart on the mapserver, > > I just want to ask : can i generate chart for each polygon on > mapserver? > > Without using owtchart? > > > > Thanks for your all kindness > > > > -Hadi- > > West Java Indonesia > > -- Bill Binko From mdieterich at GMAIL.COM Sat Apr 22 15:52:37 2006 From: mdieterich at GMAIL.COM (Mark Dieterich) Date: Sat, 22 Apr 2006 18:52:37 -0400 Subject: shp2tile producing shp's with 1 object Message-ID: I'm running shp2tile to break up the tiger shapefiles and consistently getting one (or more, I'm not sure yet) tiled shapefiles that have only a single feature in them. As a result, this is generating a bounding box with either x or y coordinates that are the exact same value. I've tried retiling with a variety of quadtree values and I always end up with one particular shapefile that has a single feature in it. Bottom line, this is killing some other code that currently checks for a "real" bounding box. So I'm curious whether: a) This likely to be something with my underlying source data that's causing this b) Whether it's legit to end up with, basically a line, in one of the tiled shapefiles or is this a bug If the general consensus is this is not unexpected, then we can just work around in the other code. Thanks! Mark From woodbri at SWOODBRIDGE.COM Sat Apr 22 17:25:52 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sat, 22 Apr 2006 20:25:52 -0400 Subject: shp2tile producing shp's with 1 object In-Reply-To: <444AB3B5.9020809@gmail.com> Message-ID: Mark Dieterich wrote: > I'm running shp2tile to break up the tiger shapefiles and consistently > getting one (or more, I'm not sure yet) tiled shapefiles that have only > a single feature in them. As a result, this is generating a bounding > box with either x or y coordinates that are the exact same value. I've > tried retiling with a variety of quadtree values and I always end up > with one particular shapefile that has a single feature in it. Bottom > line, this is killing some other code that currently checks for a "real" > bounding box. > > So I'm curious whether: > > a) This likely to be something with my underlying source data that's > causing this > b) Whether it's legit to end up with, basically a line, in one of the > tiled shapefiles or is this a bug > > If the general consensus is this is not unexpected, then we can just > work around in the other code. Hi Mark, This is not UN expected, but it might also be a bug. I am happy to look at the file if you want to zip it up and email it to me or put it somewhere I can download it. If you are using the quadtree tiling option and set the max object count to say 5000 and you have 5001 objects it will split the file into two files with 5000 and 1 respectively. I hindsight it might make more create two tiles it 2500 and 2501 respectively. If you tile it using a grid, objects the will not fit in the grid bbox will get placed in a super tile that might be the original extents. because all object must fit into the grid cell or be placed somewhere else. If you have a bunch of little segments that are easy to place in the grid cells and some bigger objects that would fit in any single cell those get bumped up to the super tile. Hope this makes sense, -Steve W. From mhwang4 at UIUC.EDU Sat Apr 22 20:58:44 2006 From: mhwang4 at UIUC.EDU (Myunghwa Hwang) Date: Sat, 22 Apr 2006 22:58:44 -0500 Subject: getFeature problem Message-ID: I'm trying to retrieve attributed values for selected polygon. By using python mapscript and postgis layer, I tried to get a feature by querybypoint. In the following code, a feature by getFeature has no bounding box. The minimum x, y and the maximum x, y are all -1. So any attribute was not retrieved. Anybody has any idea of this problem? def getNearFeat(qpoint, map): # get query layer qlayer = map.getLayerByName('blockgroup') qlayer.template = 'query_result.html' qlayer.tolerance = 1000 # Unit is meter # query the query layer qlayer.queryByPoint(map, qpoint, ms.MS_MULTIPLE, 1000) numResults = qlayer.getNumResults() results = qlayer.getResults() # retrieve shape index for selected features if (numResults > 0): featAtts = [] qlayer.open() for i in range(numResults): att = [] query_result = results.getResult(i) afeat = qlayer.getFeature(query_result.shapeindex, query_result.tileindex) if afeat: for j in range(qlayer.numitems): att.append(afeat.getValue(j)) featAtts.append(att) qlayer.close() return featAtts From piero.cavalieri at GMAIL.COM Sun Apr 23 00:54:16 2006 From: piero.cavalieri at GMAIL.COM (piero.cavalieri@gmail.com) Date: Sun, 23 Apr 2006 09:54:16 +0200 Subject: trying to get dbox working... Message-ID: I never see [BOX], which should be "true" or "false" (it was so in the older version and hardcoding "true" should work). I never see [DRAG] (as it's not documented, as [BOX]). [PROGRAM] it's not documented, but I fell to remember I saw it in itasca demo application last year (when I set up it) [map_web_imagepath] and [map_web_imageurl] are right, see "Changing map file parameters via a form or a URL" (MAP object in .map file has WEB child object, which has IMAGEPATH child object; u colud specifiy everything in map file in tis manner, for example MAP_LEGEND_SIZE= 140 130, passing it to cgi u can change legend size dinamically). [ZOOMSIZE] is correct, it's the last parameter before "ROSA-Applet specific". Personally I think cgi reference it's not too much well documented, especially for a beginner. I had basic cgi working (less or more) with: -to cgi ("input"): IMGEXT, IMGXY, IMGBOX -output (in template tag): MAPEXT wich value become that of IMGEXT when you give to the url the next time, and so on. Other paramters are intuitive, but I had to do a lot of try and error to have something working and I'm still a bit confused. Then one ask himself why there is not BBOX for example (among others), which is OGC (I think)... I repeat myself: cgi reference should be documented well, specifiing that in reference there are only Mapserver specific (if so) and not OGC variables, and doing at the reference end, a bit of examples for most common situations (it should be only one or two pages more...) Cheers Piero Date: Fri, 21 Apr 2006 09:38:30 -0500 From: John Cole Subject: trying to get dbox working... MIME-Version: 1.0 Content-Type: text/plain I'm trying to get the dbox demo working on my data, but the page from http://www.greenwoodmap.com/mapserver/Ottawa-workshop/presentation/demo3_dBo x-src.html seems to use some template tags that aren't working (and are not in the template file reference). Among these are [box], [drag], [program], [map_web_imagepath], [map_web_imageurl], and [zoomsize]. Is there a working dbox demo I could download? :-) or get some hints as to how to get this one to work? I'm using mapserver 4.8.1. I think I have all of the js files needed, but I'm getting a js error, box is not defined, on main.box = [box]; Thanks, John Cole
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.
From crschmidt at CRSCHMIDT.NET Sun Apr 23 06:46:00 2006 From: crschmidt at CRSCHMIDT.NET (Christopher Schmidt) Date: Sun, 23 Apr 2006 09:46:00 -0400 Subject: Mapserver WMS Client, libcurl, caching Message-ID: libcurl in mapserver sends Pragma:no-cache headers in the wms client. This means that it's impossible to use Squid to cache data coming from another WMS server to speed things up. I've spent the past two hours trying to work out how to change this and failed -- it seems like it's somewhere in maphttp.c, but I can't get it to do what I want. The Pragma header needs to be removed, in some way like headers = curl_slist_append(headers, "Pragma:"); The Apple documentation [1] is a good reference doc to look at: it seems that up until last year, sending Pragma: no-cache was default for everywhere with curl. This is no longer the case with the curl binary, but it's still the default in libcurl. I can't wrap my head around the code to find out where I need to change it -- but if anyone has any ideas or patches they want me to try, I'm game. [1] http://developer.apple.com/documentation/Darwin/Reference/ManPages/man3/libcurl-tutorial.3.html -- Christopher Schmidt Web Developer From paul at DUGAS.CC Sun Apr 23 06:24:27 2006 From: paul at DUGAS.CC (Paul Dugas) Date: Sun, 23 Apr 2006 09:24:27 -0400 Subject: JOIN Guidance Message-ID: I've been reading about the JOIN feature but I can't get it working yet. I'm trying to use a CSV file to add an attribute to features in a shapefile. Is this possible? If so, can someone provide a simple example? Thanks in advance, Paul -- Paul Dugas, Computer Engineer Dugas Enterprises, LLC paul at dugas.cc phone: 404-932-1355 522 Black Canyon Park http://dugas.cc fax: 866-751-6494 Canton, GA 30114 USA -- On site at GDOT's W.Annex, 404-463-2860 x199 -- This e-mail and any attachments are confidential. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From siki at AGT.BME.HU Sun Apr 23 10:58:23 2006 From: siki at AGT.BME.HU (Siki Zoltan) Date: Sun, 23 Apr 2006 16:58:23 -0100 Subject: JOIN Guidance {Scanned} In-Reply-To: <1145798667.2823.3.camel@localhost.localdomain> Message-ID: Hi, JOIN works only for query purposses. If you would like to classify objects based on joined column, you should use ogr and sql. See http://mapserver.gis.umn.edu/docs/howto/ogr_howto 4.2 Examples of Layer Definitions Using OGR Example 4. Zoltan On Sun, 23 Apr 2006, Paul Dugas wrote: > I've been reading about the JOIN feature but I can't get it working yet. > I'm trying to use a CSV file to add an attribute to features in a > shapefile. Is this possible? If so, can someone provide a simple > example? > > Thanks in advance, > > Paul > From diego.riofrio at GMAIL.COM Sun Apr 23 15:07:49 2006 From: diego.riofrio at GMAIL.COM (Diego Riofrio) Date: Sun, 23 Apr 2006 17:07:49 -0500 Subject: Runtime Error! Message-ID: Hello, I have a problem with the new version of mapserver 4.8.3 and swigwin 1.3.29... I compiled mapserver and mapscipt_csharp in windows. The compilation proccess was successful, but when I tried to run an old application witch worked well in mapserver 4.6 version, I recieved the following error: First a popup window with the following message: "Runtime Error! R6034 An application has made an attempt to load the C runtime library incorrectly." Later the following exception: "The type initializer for 'mapscriptPINVOKE' threw an exception." Later another popup window with the following message: "An unhandled exception of type 'System.DllNotFoundException' occurred in mapscript_csharp.dll Additional information: Unable to load the file (mapscript)." And finaly the another popupwindows with the following message: "An unhandled exception of type 'System.TypeInitializationException' occurred in mapscript_csharp.dll Additional information: An exception ocurred in the inicialitation "SWIGExceptionHelper"." Please, does anyone know what could be the problem??? Thanks for the help!!! -------------- next part -------------- An HTML attachment was scrubbed... URL: From khaled.kamoun at GMAIL.COM Sun Apr 23 23:43:16 2006 From: khaled.kamoun at GMAIL.COM (Khaled Kamoun) Date: Mon, 24 Apr 2006 08:43:16 +0200 Subject: french character In-Reply-To: Message-ID: Hi, > Can you telle me why french character like "?" or "?" are not drawen in > legend > this is my code : > > > CLASS > > NAME 'Toponym?e' > > LABEL > > ANTIALIAS true > > SHADOWCOLOR 218 218 218 > > COLOR 0 0 255 > > FONT 'Arial-Normal' > > SIZE 8 > > TYPE truetype > > POSITiON LC > > buffer 4 > > MINDISTANCE 300 > > PARTIALS ON > > END > > #BASICMARKER_STYLE_PATTERN > > STYLE > > SYMBOL 'Totoponp--0--0' > > SIZE 3 > > COLOR 1 100 0 > > BACKGROUNDCOLOR -1 -1 -1 > > END #STYLE > > END #CLASS > thank you. > > -- > Khaled KAMOUN > -- Khaled KAMOUN -------------- next part -------------- An HTML attachment was scrubbed... URL: From Frank.Broniewski at MNHA.ETAT.LU Mon Apr 24 00:13:22 2006 From: Frank.Broniewski at MNHA.ETAT.LU (Frank Broniewski) Date: Mon, 24 Apr 2006 09:13:22 +0200 Subject: arcgis8 as wms client Message-ID: Hello list I have a problem with my brand new Mapserver WMS Client. I use Arcmap 8.3 with the interoperability addon. I work on Windows XP, with the latest mapserver,php and apache2. When I use the (not public) request http://148.110.105.146/cgi-bin/wms.exe?SERVICE=WMS&VERSION=1.1.1&request =getcapabilities I get an error message from Arc that the Server is not responding: "Unable to access Server". In the Apache Log I can see the request Arc makes, but this one is a little bit strange, because Arc adds something to the URL SERVICE=WFS&VERSION=1.1.1&request=getcapabilities/servlet/com.esri.esrim ap.Esrimap?ServiceName=catalog Look at the stuff after getcapabilities. Does mapserver just not work with the interop addon or what do I have to do to make it work? To make sure the WMS does work I tried making the requests in a browser (firefox) and I get an xml document and my test maplayer also. I also tried uDIG and there it works also, except the querying stuff, but that is probably another problem. WFS querying works btw. I would be glad about any help. With best whishes from little Luxembourg Frank As Attachment below the mapfile: MAP NAME "WMS/WFS" CONFIG PROJ_LIB "C:\mapserver\proj\nad" STATUS On SIZE 400 300 EXTENT 28573 55710 126469 140059 UNITS METERS SHAPEPATH "C:\maps" IMAGECOLOR 255 255 255 WEB IMAGEPATH "C:\mapserver\ms_tmp\" IMAGEURL "/ms_tmp/" METADATA "wfs_title" "EPC Cultural Heritage WFS Server" "wfs_onlineresource" "http://148.110.105.146/cgi-bin/wms.exe?" "wfs_srs" "EPSG:2169 EPSG:31466" "wfs_abstract" "This is the EPC WFS Server: provided by MNHA, Luxembourg" "wms_title" "EPC Cultural Heritage WMS Server" "wms_onlineresource" "http://148.110.105.146/cgi-bin/wms.exe?" "wms_srs" "EPSG:2169 EPSG:31466" "wms_abstract" "This is the EPC WMS Server: provided by MNHA, Luxembourg" "wms_feature_info_mime_type" "GML" # epsg:2169 LUREF # epsg:31466 DHDN Gauss-Kruger Zone 2 # epsg:16032 UTM Zone 32N (DE+LU) # epsg:16031 UTM Zone 31N (LU) END END PROJECTION "init=epsg:2169" "towgs84=-193,-13.7,-39.9,-0.41,-2.933,2.688,0.43" END LEGEND IMAGECOLOR 255 255 255 KEYSIZE 20 10 LABEL TYPE Bitmap SIZE Medium COLOR 0 0 0 END END LAYER NAME "Sections" METADATA "wms_title" "Sections" "wfs_title" "Sections" "wms_srs" "EPSG:2169" "gml_include_items" "all" END TYPE Polygon STATUS On DATA "luxembourg/vector/adm/sections" TEMPLATE "dasistegal.html" DUMP True PROJECTION "init=epsg:2169" "towgs84=-193,-13.7,-39.9,-0.41,-2.933,2.688,0.43" END CLASS NAME "Sections" STYLE COLOR 200 255 0 OUTLINECOLOR 120 120 120 END END END LAYER NAME "Topomap" METADATA "wms_title" "Topographic map" END TILEINDEX "luxembourg\raster\ortho\ortho_index.shp" TILEITEM "LOCATION" TYPE Raster STATUS On MAXSCALE 5000 PROCESSING "SCALE=AUTO" PROJECTION "init=epsg:2169" "towgs84=-193,-13.7,-39.9,-0.41,-2.933,2.688,0.43" END CLASS NAME "Topographic map" END END END Frank Broniewski Mus?e National d'Histoire et d'Art Section Pr?histoire / Projet EPC T?l: +352 260 281-21 241, Rue de Luxembourg L-8077 Bertrange From e.witteveen at HAWARIT.COM Mon Apr 24 03:29:36 2006 From: e.witteveen at HAWARIT.COM (Eduard Witteveen) Date: Mon, 24 Apr 2006 12:29:36 +0200 Subject: Retrieve swf(or other vector based format) by using wms In-Reply-To: <1FEE21DC1054D5119FCC0002A5517B2405F97A67@rws-mdi-dt2-01.agi.rws.minvenw.nl> Message-ID: First of all let me rephrase the bugs you gave me: Eijnden, B. van den (Bart) wrote: > It is not possible to advertize those formats in WMS Capabilities > unfortunately. > > See also: > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=455 Too much format's can cause certain clients to stop working with mapserver, after which only the gd / gdal are exposed by mapserver. > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1072 The documentation was updated with the information that only the formats gd and gdal are advertised (and by looking at the source code supported during the getmap request) [1] This still leave's me with the question, is there a way to retrieve a single layer in *any* vector format, preferable a swf movie? Currently i've been hacking around and I'm now retrieving multilayer swf's from wms. My goal is to enable output of single layer raster and vector based swf files (the one's generated in the temp directory, and which are used in the multilayer movie) [2] Should i change the mapwms.c so it also supports swf(what should i use as format-parameter, the outputformat name?) or should i implement the wms by using mapscript/php(OWSRequest) ps: I changed the topic, so it reads the correct subject ;) -- Ing. Eduard Yeb Witteveen Software Engineer Hawar Information Technology bv lid Dijkoraad Groep De Wymerts 7 8701 WT Bolsward Tel: +31 (0)515 570333 Fax: +31 (0)515 570335 http://www.hawarit.com/ nl_NL fy_NL en_US From szekeres.tamas at FREEMAIL.HU Mon Apr 24 05:39:32 2006 From: szekeres.tamas at FREEMAIL.HU (=?ISO-8859-2?Q?Szekeres_Tam=E1s?=) Date: Mon, 24 Apr 2006 14:39:32 +0200 Subject: Runtime Error! Message-ID: Are you using MS.NET framework 2.0? Your problem may be related to the changes have been made with the MS.NET FW 2.0 version. You may have to create an additional manifest file for your existing application. For more details see the known issue 3.1 described in: http://mapserver.gis.umn.edu/docs/howto/mapscriptcscompile Best Regards, Tamas Szekeres On Sun, 23 Apr 2006 17:07:49 -0500, Diego Riofrio wrote: >Hello, I have a problem with the new version of mapserver 4.8.3 and swigwin >1.3.29... > >I compiled mapserver and mapscipt_csharp in windows. The compilation >proccess was successful, but when I tried to run an old application witch >worked well in mapserver 4.6 version, I recieved the following error: > >First a popup window with the following message: > >"Runtime Error! >R6034 >An application has made an attempt to load the C runtime library >incorrectly." > >Later the following exception: > >"The type initializer for 'mapscriptPINVOKE' threw an exception." > >Later another popup window with the following message: > >"An unhandled exception of type 'System.DllNotFoundException' occurred in >mapscript_csharp.dll > >Additional information: Unable to load the file (mapscript)." > >And finaly the another popupwindows with the following message: > >"An unhandled exception of type 'System.TypeInitializationException' >occurred in mapscript_csharp.dll > >Additional information: An exception ocurred in the inicialitation >"SWIGExceptionHelper"." > >Please, does anyone know what could be the problem??? > >Thanks for the help!!! > _______________________________________________________________________________ MP3 lej?tsz?k m?r 6900 Ft-t?l! A legsz?lesebb MP3/MP4 video lej?tsz? v?laszt?k. Ingyenes orsz?gos h?zhozsz?ll?t?s! www.infopatika.hu From szekeres.tamas at FREEMAIL.HU Mon Apr 24 05:50:52 2006 From: szekeres.tamas at FREEMAIL.HU (=?ISO-8859-2?Q?Szekeres_Tam=E1s?=) Date: Mon, 24 Apr 2006 14:50:52 +0200 Subject: french character Message-ID: You may have to specify the proper ENCODING parameter in your map file. Best Regards, Tamas Szekeres On Mon, 24 Apr 2006 08:43:16 +0200, Khaled Kamoun wrote: > Hi, >> Can you telle me why french character like "?" or "?" are not drawen in >> legend >> this is my code : >> >> >> CLASS >> >> NAME 'Toponym?e' >> >> LABEL >> >> ANTIALIAS true >> >> SHADOWCOLOR 218 218 218 >> >> COLOR 0 0 255 >> >> FONT 'Arial-Normal' >> >> SIZE 8 >> >> TYPE truetype >> >> POSITiON LC >> >> buffer 4 >> >> MINDISTANCE 300 >> >> PARTIALS ON >> >> END >> >> #BASICMARKER_STYLE_PATTERN >> >> STYLE >> >> SYMBOL 'Totoponp--0--0' >> >> SIZE 3 >> >> COLOR 1 100 0 >> >> BACKGROUNDCOLOR -1 -1 -1 >> >> END #STYLE >> >> END #CLASS >> thank you. >> >> -- >> Khaled KAMOUN >> > > > >-- >Khaled KAMOUN > _______________________________________________________________________________ MP3 lej?tsz?k m?r 6900 Ft-t?l! A legsz?lesebb MP3/MP4 video lej?tsz? v?laszt?k. Ingyenes orsz?gos h?zhozsz?ll?t?s! www.infopatika.hu From e.witteveen at HAWARIT.COM Mon Apr 24 06:35:50 2006 From: e.witteveen at HAWARIT.COM (Eduard Witteveen) Date: Mon, 24 Apr 2006 15:35:50 +0200 Subject: Retrieve swf(or other vector based format) by using wms In-Reply-To: <444CA890.3020503@HAWARIT.COM> Message-ID: Eduard Witteveen wrote: > [1] This still leave's me with the question, is there a way to retrieve > a single layer in *any* vector format, preferable a swf movie? I just needed to use: Web Feature Service (WFS) instead of wms -- Ing. Eduard Yeb Witteveen Software Engineer Hawar Information Technology bv lid Dijkoraad Groep De Wymerts 7 8701 WT Bolsward Tel: +31 (0)515 570333 Fax: +31 (0)515 570335 http://www.hawarit.com/ nl_NL fy_NL en_US From crazygecko at GMAIL.COM Mon Apr 24 06:44:02 2006 From: crazygecko at GMAIL.COM (Xin) Date: Mon, 24 Apr 2006 14:44:02 +0100 Subject: HiLiting / selecting multiple features In-Reply-To: Message-ID: I haven't received a response in a while. Can anyone help with what I need? On 20/04/06, Xin wrote: > > Hi Steve, > > Thanks for the response. It's always good to know there's someone out > there that can help! > > Here's our situation. We use MapServer CGI wrapped in a C# application. > The app would call MapServer with various CGI parameters depending on what > the user is doing in the application. > > One functionality we need is to hilite features on a map and for it to > return results of features from other layers intersecting it. The return > results party is working great. > > A single feature can be hilited at the moment using mode=featurenquery, > slayer, and passing img.x and img.y. For example, this might be a > building parameter. This works to a degree. We haven't been able to > control the colour correctly with QUERYMAP and COLOR. But that's another > issue. > > Hiliting multiple features is what we are after. We would like our users > to be able to click on a feature on the map through our application. Then > we would hilite this through MapServer. Then the user can click on more > features. We'd like the initial feature, and any features clicked on after > to be all hilighted. e.g. user clicks on three building parameters. > > The problem we are facing is hiliting multiple features. Do you have any > suggestions on how we may do this? > > Xin > > > On 13/04/06, Steve Lime wrote: > > > > Xin: There's a big difference between a feature and a shape though. The > > imgshape parameter was intended for use with something really simple > > like a DHTML digitizer so at this point it only supports a single > > feature. It > > would not be hard to hack mapserv.c to allow mulitple instances of > > imgshape to build up a more complex feature (holes, multiple outer > > rings). > > > > I'm not sure if that's what you need though. There are other ways to > > highlight features. Perhaps you could describe the steps in which the > > application is used along with desired outputs. That would make it > > easier > > to suggest alternatives. > > > > Steve > > > > >>> Xin < crazygecko at GMAIL.COM> 4/13/2006 4:51:47 AM >>> > > We are user MapServer cgi to hilite features the user select on. This > > is > > done by using mode=featurequery and slayer. We need to selectemultiple > > features, and have them hilighted. Having looked at the docs, there > > doesn't > > seem to be any obvious ways of doing this. > > > > One possible solution is to use IMGSHAPE and nquery. This is documented > > as: > > > > Shape given in image coordinates. > > > > An arbitrary polygon shape to be used for query purposes. Multiple > > instances > > simply add parts to the shape so it is possible to construct a shape > > with > > holes. Used with modes NQUERY and NQUERYMAP. > > But using imgshape would require one than one polygon being passed > > through. > > Rick asked this in March without getting a response. Is it possible to > > pass > > multiple polygons using imgshape? > > > > Any other suggestions are more than welcome. > > > > Cheers, > > Xin > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From earevaloch at GMAIL.COM Mon Apr 24 07:33:26 2006 From: earevaloch at GMAIL.COM (=?ISO-8859-1?Q?Eduardo_Ar=E9valo?=) Date: Mon, 24 Apr 2006 09:33:26 -0500 Subject: Error in installation and to mapserver 4.8.3 In-Reply-To: <4449569A.8030304@refractions.net> Message-ID: hello Clint: prove your sugrerencias I have used different /configure but with mismi result e.g --with-gd=/usr/local/gd --with-gd=/usr/local/gd/lib --with-gd=/usr/local/gd/bin --with-gd. I complete it was to add: PATH=$PATH:/usr/local/gd/bin export PATH in etc/profile (reboot) same error 2006/4/21, Clint Johnson : > > I believe you should use: > > --with-gd=/usr/local/gd/ > > Do not add the /lib at the end. Try that. > > configure (ie automake and friends) will want to run your > /usr/local/gd/bin/gd-config binary to determine where gd's libraries > are; therefore, when you specify --with-gd=/usr/local/gd/lib, it's not > going to find that binary. > > > You could also try adding the path of gdlib-config into your path > (in bash) > export PATH=$PATH:/usr/local/gd/bin > ./configure Let me know if that works, > -Clint > > > Eduardo Ar?valo wrote: > > Jorge: > > in /usr/local/gd/lib/libgd.a libgd.la libgd.so.2 > > libgd.so.2.0.0 > > > > 2006/4/21, J. Parapar >: > > > > Eduardo, > > > > Have you checked that libgd is in /usr/local/gd/lib? > > > > > > Best regards, > > Jorge > > > > 2006/4/21, Eduardo Ar?valo > >: > > > hello: > > > At the moment to execute following > > > $. /configure > > > > > > $ ./configure --prefix=/usr/local/mapserver > > > --with-ogr=/usr/local/gdal/bin/gdal-config > > > --with-gdal=/usr/local/gdal/bin/gdal-config > > > --with-apache=/usr/local/apache2 > > > --with-httpd=/usr/local/apache2/bin --with-wfsclient > > > --with-wmsclient --enable-debug > > > --with-curl-config=/usr/bin/curl-config > > > --with-proj=/usr/local/proj4 --with-tiff=/usr/local/tiff > > > --with-gd=/usr/local/gd/lib --with-jpeg=/usr/lib > > > --with-freetype=/usr/local/freetype2/bin/freetype-config > > > --with-postgis=/var/lib/pgsql/bin/pg_config > > > > > > it finishes executing and it reports the following error ...... > > > > > > ..... > > > ........ > > > configure: error: Could not find gd.h or libgd.a/libgd.so in > > > /usr/local/gd/lib. > > > Make sure GD 2.0.16 or higher is compiled before calling > > configure. You > > > may als > > > o get this error if you didn't specify the appropriate location > > for one of > > > GD's > > > dependencies (freetype, libpng, libjpeg or libiconv). > > > > > > reports the same error when executing simple > > > $. /configure > > > > > > the version of gd installed is gd 2.0.33 > > > > > > aid please > > > > > > excuse the english > > > > > > > > > > -- > Clint Johnson > Refractions Research Inc. > Cjohnson at refractions.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From steven.ottens at GEODAN.NL Mon Apr 24 07:53:38 2006 From: steven.ottens at GEODAN.NL (Steven M. Ottens) Date: Mon, 24 Apr 2006 16:53:38 +0200 Subject: bug in combining transparent wms servers? Message-ID: Hi all, I've got an UMN mapserver setup with several mapfiles which are used in an educational website where students can add/remove layers and move them up and down. I use different mapfiles so the data can be properly categorised. The website uses mapbuilder and it creates a seperate request for each layer, so for 1 layer it gets 1 image, 2 layers; 2 images, etc. The good part is that it is very easy to hide layers or move them relatively to each other. The bad part is that they cannot save the map and add it in their report. So I'm trying to write a print function which solves that problem by creating one image which can be saved. To do so I've written a mapfile which includes the other mapfiles as wms servers (http://jana.geodan.nl/steveno/mapserver/base_combined.map) this works if there are no transparent layers in the stack. If I do have 1 transparent layer on top of a normal layer: http://jana.geodan.nl/steveno/mapserver/2layersmapbuilder.png it still works: http://jana.geodan.nl/steveno/mapserver/2layerscombined.png But if I add an extra layer between the bottom one and transparent one which is a lines only layer: http://jana.geodan.nl/steveno/mapserver/1layermapbuilder.png I get the following look in mapbuilder: http://jana.geodan.nl/steveno/mapserver/3layersmapbuilder.png but mapserver combines it to: http://jana.geodan.nl/steveno/mapserver/3layerscombined.png Basically it only combines the transparent top layer with the layer below, but not with other visible layers. Is this an error in my base_combined.map file or a limitation/bug of mapserver and is there a solution? Many thanks, Steven M. Ottens www.edugis.nl From Eric.Keefauver at ALTARUM.ORG Mon Apr 24 09:06:45 2006 From: Eric.Keefauver at ALTARUM.ORG (D. Eric Keefauver) Date: Mon, 24 Apr 2006 12:06:45 -0400 Subject: ARCIMS user question Message-ID: Hello, I have been using ArcIMS 9.1 to deploy internet GIS applications for a while now and have looked into MapServer as a substitute to ArcIMS (only to the point of setting up a successful demo version of the ITACSA data but using my data sets). My question is this: I am looking into having map "service" setup where I have one shapefile that will render water quality data from a database (let's say it's a point file). The water quality data is date specific with associated PH values, so in the end we have, say 40 points that each have many water quality data values with dates when the testing was completed. I am thinking of a small application where there could be a drop-down box where the user could select a date and the map would render the point file w-quality values on the fly for the selected date. Is this something that is possible and if so, what would I need to have installed other than Mapserver MS4W. I am very new to Mapserver. Any information would be helpful. Regards, Eric From Artur.Skalski at ACXIOM.COM Mon Apr 24 09:20:45 2006 From: Artur.Skalski at ACXIOM.COM (Skalski Artur - askals) Date: Mon, 24 Apr 2006 18:20:45 +0200 Subject: HiLiting / selecting multiple features Message-ID: Hi Mapserver can't do thing like that, You can't force him to remember previous clicks, but it doesn't have to because Your application can do things like that. I think you could write some function that could remember the clicks of the user, the x & y values, put it into an array and each time send them with the latest point clicked as points to query for mapserver and use mapscript's save and load query, i saw on userslist someone was writing about joining query results ito one result using save and load query, probably easy to find... I think this is the only way to do this. Best Regards Artur -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Xin Sent: Monday, April 24, 2006 3:44 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] HiLiting / selecting multiple features I haven't received a response in a while. Can anyone help with what I need? On 20/04/06, Xin < crazygecko at gmail.com > wrote: Hi Steve, Thanks for the response. It's always good to know there's someone out there that can help! Here's our situation. We use MapServer CGI wrapped in a C# application. The app would call MapServer with various CGI parameters depending on what the user is doing in the application. One functionality we need is to hilite features on a map and for it to return results of features from other layers intersecting it. The return results party is working great. A single feature can be hilited at the moment using mode=featurenquery, slayer, and passing img.x and img.y. For example, this might be a building parameter. This works to a degree. We haven't been able to control the colour correctly with QUERYMAP and COLOR. But that's another issue. Hiliting multiple features is what we are after. We would like our users to be able to click on a feature on the map through our application. Then we would hilite this through MapServer. Then the user can click on more features. We'd like the initial feature, and any features clicked on after to be all hilighted. e.g. user clicks on three building parameters. The problem we are facing is hiliting multiple features. Do you have any suggestions on how we may do this? Xin On 13/04/06, Steve Lime < Steve.Lime at dnr.state.mn.us> wrote: Xin: There's a big difference between a feature and a shape though. The imgshape parameter was intended for use with something really simple like a DHTML digitizer so at this point it only supports a single feature. It would not be hard to hack mapserv.c to allow mulitple instances of imgshape to build up a more complex feature (holes, multiple outer rings). I'm not sure if that's what you need though. There are other ways to highlight features. Perhaps you could describe the steps in which the application is used along with desired outputs. That would make it easier to suggest alternatives. Steve >>> Xin < crazygecko at GMAIL.COM> 4/13/2006 4:51:47 AM >>> We are user MapServer cgi to hilite features the user select on. This is done by using mode=featurequery and slayer. We need to selectemultiple features, and have them hilighted. Having looked at the docs, there doesn't seem to be any obvious ways of doing this. One possible solution is to use IMGSHAPE and nquery. This is documented as: Shape given in image coordinates. An arbitrary polygon shape to be used for query purposes. Multiple instances simply add parts to the shape so it is possible to construct a shape with holes. Used with modes NQUERY and NQUERYMAP. But using imgshape would require one than one polygon being passed through. Rick asked this in March without getting a response. Is it possible to pass multiple polygons using imgshape? Any other suggestions are more than welcome. Cheers, Xin ************************************************************************* The information contained in this communication is confidential, is intended only for the use of the recipient named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please resend this communication to the sender and delete the original message or any copy of it from your computer system. Thank you. ************************************************************************* -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at CI.STPAUL.MN.US Mon Apr 24 09:32:48 2006 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Mon, 24 Apr 2006 11:32:48 -0500 Subject: Symbol file reader. Message-ID: All, does anyone know of a generic Symbol file reader? Something that would build a image, or images, from a symbol file? I want to set up something for maintaining a symbol file by many individuals, is there something out there already like this? I would prefer a CGI version of something if possible, where instead of map=, something like symbols=. Is there any utility for this out there already? Something standalone. Failing this, how about a method in the MAP files that just cycles through all the symbols automatically as a form of legend output. Thanks bobb From bartvde at XS4ALL.NL Mon Apr 24 09:54:45 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Mon, 24 Apr 2006 18:54:45 +0200 Subject: Symbol file reader. In-Reply-To: <444CFDB0.2070607@ci.stpaul.mn.us> Message-ID: Hi Bob, Chameleon has a symbol picker component which could do this, but it's a PHP/Mapscript script. It can be used separate from Chameleon though. If you're interested, it's in: chameleon\htdocs\common\picker\symbol_picker.php Best regards, Bart Bob Basques wrote: > All, > > does anyone know of a generic Symbol file reader? Something that > would build a image, or images, from a symbol file? I want to set up > something for maintaining a symbol file by many individuals, is there > something out there already like this? > > I would prefer a CGI version of something if possible, where instead > of map=, something like symbols=. > > Is there any utility for this out there already? Something standalone. > > Failing this, how about a method in the MAP files that just cycles > through all the symbols automatically as a form of legend output. > > Thanks > > bobb > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From tim at COMMENSPACE.ORG Mon Apr 24 10:05:17 2006 From: tim at COMMENSPACE.ORG (Tim Schaub) Date: Mon, 24 Apr 2006 10:05:17 -0700 Subject: chart on the map Message-ID: If you're looking for pie charts, I've put together some scripts that may be of use. > > I have spent a whole months to show chart on the mapserver, > > > > I just want to ask : can i generate chart for each polygon on > > mapserver? > > > > Without using owtchart? For an example, see http://mapserver.commenspace.org/sustainable_seattle/demographic-map.php Open the Transportation group, and refresh the map with the Commute Type layer turned on. If you're using (PHP) MapScript, and this seems like something you could use. I'll pass it along. Tim > > > > Thanks for your all kindness > > > > > > > > -Hadi- > > > > West Java Indonesia > > > > > -- > Bill Binko > From Steve.Lime at DNR.STATE.MN.US Mon Apr 24 11:48:53 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 24 Apr 2006 13:48:53 -0500 Subject: Symbol file reader. Message-ID: There was sym2img in the mapserver distribution, but it is not working. I suppose that could be fixed up in relatively short order. Steve >>> Bob Basques 4/24/2006 11:32:48 AM >>> All, does anyone know of a generic Symbol file reader? Something that would build a image, or images, from a symbol file? I want to set up something for maintaining a symbol file by many individuals, is there something out there already like this? I would prefer a CGI version of something if possible, where instead of map=, something like symbols=. Is there any utility for this out there already? Something standalone. Failing this, how about a method in the MAP files that just cycles through all the symbols automatically as a form of legend output. Thanks bobb From mapserver at GEOWORLD.DE Mon Apr 24 12:02:19 2006 From: mapserver at GEOWORLD.DE (Nicol Hermann) Date: Mon, 24 Apr 2006 21:02:19 +0200 Subject: Symbol file reader. In-Reply-To: Message-ID: There ist a bug report on sym2img in Bugzilla http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=506 Nicol Am Montag, den 24.04.2006, 13:48 -0500 schrieb Steve Lime: > There was sym2img in the mapserver distribution, but it is not working. I suppose > that could be fixed up in relatively short order. > > Steve > > >>> Bob Basques 4/24/2006 11:32:48 AM >>> > All, > > does anyone know of a generic Symbol file reader? Something that would > build a image, or images, from a symbol file? I want to set up > something for maintaining a symbol file by many individuals, is there > something out there already like this? > > I would prefer a CGI version of something if possible, where instead of > map=, something like symbols=. > > Is there any utility for this out there already? Something standalone. > > Failing this, how about a method in the MAP files that just cycles > through all the symbols automatically as a form of legend output. > > Thanks > > bobb From earevaloch at GMAIL.COM Mon Apr 24 13:12:52 2006 From: earevaloch at GMAIL.COM (=?ISO-8859-1?Q?Eduardo_Ar=E9valo?=) Date: Mon, 24 Apr 2006 15:12:52 -0500 Subject: install mapserver-4.8.3 Message-ID: ready aid: who has installed mapserver-4.8.3 with gd-2.0.33 without problems I cannot aid please -------------- next part -------------- An HTML attachment was scrubbed... URL: From pramsey at REFRACTIONS.NET Mon Apr 24 14:20:13 2006 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Mon, 24 Apr 2006 14:20:13 -0700 Subject: arcgis8 as wms client In-Reply-To: <000001c6676e$924e5b30$a6696e94@EPCCARTOGIS> Message-ID: Are you sure you are using the interop extension for this? That URL looks like ArcGIS thinks it is talking to an ArcIMS server in native mode. Perhaps you plugged your URL into the wrong place? Also, read carefully what ArcGIS says it wants in the URL parameter, it might not be a full capabilities URL, in might just be the onlineresource URL. My impression of the interop extension was that it worked, but it was brittle... they did not build a lot of padding in for people entering things not exactly as expected by the software. P On Apr 24, 2006, at 12:13 AM, Frank Broniewski wrote: > Hello list > > I have a problem with my brand new Mapserver WMS Client. I use Arcmap > 8.3 with the interoperability addon. I work on Windows XP, with the > latest mapserver,php and apache2. When I use the (not public) request > > > http://148.110.105.146/cgi-bin/wms.exe? > SERVICE=WMS&VERSION=1.1.1&request > =getcapabilities > > > I get an error message from Arc that the Server is not responding: > "Unable to access Server". > In the Apache Log I can see the request Arc makes, but this one is a > little bit strange, because Arc adds something to the URL > > > SERVICE=WFS&VERSION=1.1.1&request=getcapabilities/servlet/ > com.esri.esrim > ap.Esrimap?ServiceName=catalog > > > Look at the stuff after getcapabilities. Does mapserver just not work > with the interop addon or what do I have to do to make it work? > > To make sure the WMS does work I tried making the requests in a > browser > (firefox) and I get an xml document and my test maplayer also. I also > tried uDIG and there it works also, except the querying stuff, but > that > is probably another problem. WFS querying works btw. > > I would be glad about any help. > > With best whishes from little Luxembourg > > Frank > > As Attachment below the mapfile: > > MAP > NAME "WMS/WFS" > CONFIG PROJ_LIB "C:\mapserver\proj\nad" > STATUS On > SIZE 400 300 > EXTENT 28573 55710 126469 140059 > UNITS METERS > SHAPEPATH "C:\maps" > IMAGECOLOR 255 255 255 > > WEB > IMAGEPATH "C:\mapserver\ms_tmp\" > IMAGEURL "/ms_tmp/" > > METADATA > "wfs_title" "EPC > Cultural Heritage WFS Server" > "wfs_onlineresource" > "http://148.110.105.146/cgi-bin/wms.exe?" > "wfs_srs" > "EPSG:2169 EPSG:31466" > "wfs_abstract" "This is > the EPC > WFS Server: provided by MNHA, Luxembourg" > > "wms_title" "EPC > Cultural Heritage WMS Server" > "wms_onlineresource" > "http://148.110.105.146/cgi-bin/wms.exe?" > "wms_srs" > "EPSG:2169 EPSG:31466" > "wms_abstract" "This is > the EPC > WMS Server: provided by MNHA, Luxembourg" > "wms_feature_info_mime_type" "GML" > > # epsg:2169 LUREF > # epsg:31466 DHDN Gauss-Kruger Zone 2 > # epsg:16032 UTM Zone 32N (DE+LU) > # epsg:16031 UTM Zone 31N (LU) > END > END > > PROJECTION > "init=epsg:2169" > "towgs84=-193,-13.7,-39.9,-0.41,-2.933,2.688,0.43" > END > > LEGEND > IMAGECOLOR 255 255 255 > KEYSIZE 20 10 > > LABEL > TYPE Bitmap > SIZE Medium > COLOR 0 0 0 > END > END > > > > LAYER > > NAME "Sections" > > METADATA > "wms_title" > "Sections" > "wfs_title" > "Sections" > "wms_srs" > "EPSG:2169" > "gml_include_items" "all" > END > > TYPE Polygon > STATUS On > DATA "luxembourg/vector/adm/sections" > TEMPLATE "dasistegal.html" > DUMP True > > PROJECTION > "init=epsg:2169" > > "towgs84=-193,-13.7,-39.9,-0.41,-2.933,2.688,0.43" > END > > CLASS > NAME "Sections" > STYLE > COLOR 200 255 0 > OUTLINECOLOR 120 120 120 > END > END > > > END > > LAYER > > NAME "Topomap" > > METADATA > "wms_title" > "Topographic map" > END > > TILEINDEX > "luxembourg\raster\ortho\ortho_index.shp" > TILEITEM "LOCATION" > TYPE Raster > STATUS On > MAXSCALE 5000 > PROCESSING "SCALE=AUTO" > > PROJECTION > "init=epsg:2169" > > "towgs84=-193,-13.7,-39.9,-0.41,-2.933,2.688,0.43" > END > > CLASS > NAME "Topographic map" > END > > END > > > END > > > Frank Broniewski > Mus?e National d'Histoire et d'Art > Section Pr?histoire / Projet EPC > T?l: +352 260 281-21 > 241, Rue de Luxembourg > L-8077 Bertrange From paul at DUGAS.CC Mon Apr 24 19:18:49 2006 From: paul at DUGAS.CC (Paul Dugas) Date: Mon, 24 Apr 2006 22:18:49 -0400 Subject: Couple Questions: JOIN and OFFSET Message-ID: Got a couple questions: Is it possible to use the JOIN capability to combine shape features from a shapefile with classification data in a CSV file? If so, could someone provide an example? Is there a way to have a line feature drawn with an OFFSET so that it appears parallel to the original line? I am working on code to convert polylines into parallel polygons to depict traffic data via color. I'm wondering how hard it'd be to have something similar built into MS where we could define an OFFSET and a WIDTH to get the same effect without having to pre-generate the polygons for different scales. I'll be happy to share my polyline-to-polygon code once it's working if that'd help. Paul -- Paul Dugas, Computer Engineer Dugas Enterprises, LLC paul at dugas.cc phone: 404-932-1355 522 Black Canyon Park http://dugas.cc fax: 866-751-6494 Canton, GA 30114 USA -- On site at GDOT's W.Annex, 404-463-2860 x199 -- This e-mail and any attachments are confidential. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From woodbri at SWOODBRIDGE.COM Mon Apr 24 19:55:06 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 24 Apr 2006 22:55:06 -0400 Subject: Couple Questions: JOIN and OFFSET In-Reply-To: <1145931529.14329.21.camel@localhost.localdomain> Message-ID: Paul Dugas wrote: > Got a couple questions: > > Is it possible to use the JOIN capability to combine shape features from > a shapefile with classification data in a CSV file? If so, could > someone provide an example? The best way to do this is via postgis. I also believe you might be able to do this in a limited way via GDAL features in Mapserver, but you can not do it using just mapserver. > Is there a way to have a line feature drawn with an OFFSET so that it > appears parallel to the original line? I am working on code to convert > polylines into parallel polygons to depict traffic data via color. I'm > wondering how hard it'd be to have something similar built into MS where > we could define an OFFSET and a WIDTH to get the same effect without > having to pre-generate the polygons for different scales. I'll be happy > to share my polyline-to-polygon code once it's working if that'd help. I think you might be able to do this with the new GEOS buffer function that has been integrated with the most recent Mapserver release or it might only be in CVS. The buffer function takes a polyline and turns it into a sausage based on an offset distance. Search the archives for GEOS and buffer and you should find more info on it. I think you will probably want to look at mapscript to glue all of this together. -Steve W. > Paul From Steve.Lime at DNR.STATE.MN.US Mon Apr 24 21:28:56 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 24 Apr 2006 23:28:56 -0500 Subject: trying to get dbox working... Message-ID: Just to clear things up - the variables [BOX], [DRAG] and [PROGRAM] are not MapServer CGI variables. That is, MapServer knows nothing about them. Remember any variable passed into the CGI can also be retrieved using [variable] syntax. So, in this case the variables are being used by the web application to maintain state and/or ease configuration. That's the case with the map_ vars as well. The authors wanted to simplify configuration by concentrating edits to one file. That's how the main Itasca demo works too. Unfortunately the ease of configuration often causes more confusion than it's worth. With the cms-based MapServer site there are certainly opportunities for anyone and everyone to contribute to the docs! Steve >>> "piero.cavalieri at gmail.com" 04/23/06 2:54 AM >>> I never see [BOX], which should be "true" or "false" (it was so in the older version and hardcoding "true" should work). I never see [DRAG] (as it's not documented, as [BOX]). [PROGRAM] it's not documented, but I fell to remember I saw it in itasca demo application last year (when I set up it) [map_web_imagepath] and [map_web_imageurl] are right, see "Changing map file parameters via a form or a URL" (MAP object in .map file has WEB child object, which has IMAGEPATH child object; u colud specifiy everything in map file in tis manner, for example MAP_LEGEND_SIZE= 140 130, passing it to cgi u can change legend size dinamically). [ZOOMSIZE] is correct, it's the last parameter before "ROSA-Applet specific". Personally I think cgi reference it's not too much well documented, especially for a beginner. I had basic cgi working (less or more) with: -to cgi ("input"): IMGEXT, IMGXY, IMGBOX -output (in template tag): MAPEXT wich value become that of IMGEXT when you give to the url the next time, and so on. Other paramters are intuitive, but I had to do a lot of try and error to have something working and I'm still a bit confused. Then one ask himself why there is not BBOX for example (among others), which is OGC (I think)... I repeat myself: cgi reference should be documented well, specifiing that in reference there are only Mapserver specific (if so) and not OGC variables, and doing at the reference end, a bit of examples for most common situations (it should be only one or two pages more...) Cheers Piero Date: Fri, 21 Apr 2006 09:38:30 -0500 From: John Cole Subject: trying to get dbox working... MIME-Version: 1.0 Content-Type: text/plain I'm trying to get the dbox demo working on my data, but the page from http://www.greenwoodmap.com/mapserver/Ottawa-workshop/presentation/demo3_dBo x-src.html seems to use some template tags that aren't working (and are not in the template file reference). Among these are [box], [drag], [program], [map_web_imagepath], [map_web_imageurl], and [zoomsize]. Is there a working dbox demo I could download? :-) or get some hints as to how to get this one to work? I'm using mapserver 4.8.1. I think I have all of the js files needed, but I'm getting a js error, box is not defined, on main.box = [box]; Thanks, John Cole
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.
From Steve.Lime at DNR.STATE.MN.US Mon Apr 24 21:31:18 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 24 Apr 2006 23:31:18 -0500 Subject: chart on the map Message-ID: Great app Tim! Simple and elegant... Steve >>> Tim Schaub 04/24/06 12:05 PM >>> If you're looking for pie charts, I've put together some scripts that may be of use. > > I have spent a whole months to show chart on the mapserver, > > > > I just want to ask : can i generate chart for each polygon on > > mapserver? > > > > Without using owtchart? For an example, see http://mapserver.commenspace.org/sustainable_seattle/demographic-map.php Open the Transportation group, and refresh the map with the Commute Type layer turned on. If you're using (PHP) MapScript, and this seems like something you could use. I'll pass it along. Tim > > > > Thanks for your all kindness > > > > > > > > -Hadi- > > > > West Java Indonesia > > > > > -- > Bill Binko > From Steve.Lime at DNR.STATE.MN.US Mon Apr 24 21:39:11 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 24 Apr 2006 23:39:11 -0500 Subject: ARCIMS user question Message-ID: Hi Eric: This would be doable with just the basic MapServer CGI application that you get with MS4W. It sounds like the data may be as simple as: shape date ph ------- ----- -- So you'd want to take advantage of the runtime substitution that MapServer can do. On your webpage let's say you have a select list for the date called "mydate" so then you'd have a layer def like so: LAYER NAME 'water_quality' TYPE POINT STATUS DEFAULT DATA 'water_quality' # the shapefile FILTERITEM 'DATE' FILTER '%mydate%' CLASSITEM 'PH' ...now the class definitions... END By setting the value for mydate the user would effectively be setting a filter so that only points with data on that date would be displayed. Should be pretty straight forward. Steve >>> "D. Eric Keefauver" 04/24/06 11:06 AM >>> Hello, I have been using ArcIMS 9.1 to deploy internet GIS applications for a while now and have looked into MapServer as a substitute to ArcIMS (only to the point of setting up a successful demo version of the ITACSA data but using my data sets). My question is this: I am looking into having map "service" setup where I have one shapefile that will render water quality data from a database (let's say it's a point file). The water quality data is date specific with associated PH values, so in the end we have, say 40 points that each have many water quality data values with dates when the testing was completed. I am thinking of a small application where there could be a drop-down box where the user could select a date and the map would render the point file w-quality values on the fly for the selected date. Is this something that is possible and if so, what would I need to have installed other than Mapserver MS4W. I am very new to Mapserver. Any information would be helpful. Regards, Eric From cjesch at CCT.LSU.EDU Tue Apr 25 05:24:21 2006 From: cjesch at CCT.LSU.EDU (Carola Jesch) Date: Tue, 25 Apr 2006 07:24:21 -0500 Subject: Panning tool without Java VM? In-Reply-To: Message-ID: Hi list, I would like to pan my MapServer image with drag&drop like jbox is doing. But I have realized that the client has to have Java engine installed on their machine to use the jbox functionality. I would like to avoid the Java VM because WinXP doesn't come with a preconfigured Java environment. Is there another way to create this panning tool (like JavaScript?) Thanks, Carola > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Steve Lime > Sent: Monday, April 24, 2006 11:29 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] trying to get dbox working... > > Just to clear things up - the variables [BOX], [DRAG] and > [PROGRAM] are not MapServer CGI variables. That is, MapServer > knows nothing about them. Remember any variable passed into > the CGI can also be retrieved using [variable] syntax. So, in > this case the variables are being used by the web application > to maintain state and/or ease configuration. That's the case > with the map_ vars as well. The authors wanted to simplify > configuration by concentrating edits to one file. That's how > the main Itasca demo works too. Unfortunately the ease of > configuration often causes more confusion than it's worth. > > With the cms-based MapServer site there are certainly > opportunities for anyone and everyone to contribute to the docs! > > Steve > > >>> "piero.cavalieri at gmail.com" 04/23/06 > >>> 2:54 AM >>> > I never see [BOX], which should be "true" or "false" (it was > so in the older version and hardcoding "true" should work). > I never see [DRAG] (as it's not documented, as [BOX]). > [PROGRAM] it's not documented, but I fell to remember I saw > it in itasca demo application last year (when I set up it) > [map_web_imagepath] and [map_web_imageurl] are right, see > "Changing map file parameters via a form or a URL" (MAP > object in .map file has WEB child object, which has IMAGEPATH > child object; u colud specifiy everything in map file in tis > manner, for example MAP_LEGEND_SIZE= 140 130, passing it to > cgi u can change legend size dinamically). > [ZOOMSIZE] is correct, it's the last parameter before > "ROSA-Applet specific". > > > Personally I think cgi reference it's not too much well > documented, especially for a beginner. I had basic cgi > working (less or more) with: > -to cgi ("input"): IMGEXT, IMGXY, IMGBOX -output (in template > tag): MAPEXT wich value become that of IMGEXT when you give > to the url the next time, and so on. > > Other paramters are intuitive, but I had to do a lot of try > and error to have something working and I'm still a bit > confused. Then one ask himself why there is not BBOX for > example (among others), which is OGC (I think)... > I repeat myself: cgi reference should be documented well, > specifiing that in reference there are only Mapserver > specific (if so) and not OGC variables, and doing at the > reference end, a bit of examples for most common situations > (it should be only one or two pages more...) > > Cheers > Piero > > > Date: Fri, 21 Apr 2006 09:38:30 -0500 > From: John Cole > Subject: trying to get dbox working... > MIME-Version: 1.0 > Content-Type: text/plain > > I'm trying to get the dbox demo working on my data, but the > page from > http://www.greenwoodmap.com/mapserver/Ottawa-workshop/presenta > tion/demo3_dBo > x-src.html seems to use some template tags that aren't > working (and are not in the template file reference). > > Among these are [box], [drag], [program], > [map_web_imagepath], [map_web_imageurl], and [zoomsize]. > > Is there a working dbox demo I could download? :-) or get > some hints as to how to get this one to work? > > I'm using mapserver 4.8.1. I think I have all of the js files > needed, but I'm getting a js error, box is not defined, on > main.box = [box]; > > Thanks, > > John Cole >
This email and any files > transmitted with it are confidential and intended solely for > the use of the individual or entity to whom they are > addressed. If you have received this email in error please > notify the sender. This message contains confidential > information and is intended only for the individual named. > If you are not the named addressee you should not > disseminate, distribute or copy this e-mail.
> From kristjan at TARKVARASTUUDIO.EE Tue Apr 25 07:38:33 2006 From: kristjan at TARKVARASTUUDIO.EE (kristjan) Date: Tue, 25 Apr 2006 17:38:33 +0300 Subject: MyGis support in Windows platform Message-ID: Hello, Does anybody know, is there some PHPMapscript version that supports MyGIS in Windows platform? Kristjan From listario at GMAIL.COM Tue Apr 25 08:30:25 2006 From: listario at GMAIL.COM (J. Parapar) Date: Tue, 25 Apr 2006 17:30:25 +0200 Subject: install mapserver-4.8.3 In-Reply-To: <95f68e530604241312j6e071fecx3da7f85ec8a8de30@mail.gmail.com> Message-ID: Hi Eduardo: Try the following: Add the path of libgd (/usr/local/gd/lib as you said) to /etc/ld.so.conf and run ldconfig. Then try configure again without setting --with-gd Best regards, Jorge 2006/4/24, Eduardo Ar?valo : > ready aid: > who has installed mapserver-4.8.3 with gd-2.0.33 without problems I cannot > aid please > From earevaloch at GMAIL.COM Tue Apr 25 09:57:43 2006 From: earevaloch at GMAIL.COM (=?ISO-8859-1?Q?Eduardo_Ar=E9valo?=) Date: Tue, 25 Apr 2006 11:57:43 -0500 Subject: install mapserver-4.8.3 In-Reply-To: <20060425053740.M74949@deprem.gov.tr> Message-ID: hi Murat My problem it is: I execute the following one $ ./configure --prefix=/usr/local/mapserver --with-ogr=/usr/local/gdal/bin/gdal-config --with-gdal=/usr/local/gdal/bin/gdal-config --with-apache=/usr/local/apache2 --with-httpd=/usr/local/apache2/bin --with-wfsclient --with-wmsclient --enable-debug --with-curl-config=/usr/bin/curl-config --with-proj=/usr/local/proj4 --with-tiff=/usr/local/tiff --with-gd=/usr/local/ --with-jpeg=/usr/lib --with-freetype=/usr/local/freetype2/bin/freetype-config --with-postgis=/var/lib/pgsql/bin/pg_config and it reports the following error to me configure: error: Could not find gd.h or libgd.a/libgd.so in /usr/local/. Make sure GD 2.0.16 or higher is compiled before calling configure. You may als o get this error if you didn't specify the appropriate location for one of GD's dependencies (freetype, libpng, libjpeg or libiconv). please a solution idea thanks eduardo 2006/4/25, Murat Beyhan : > > *I have installed 4.8.3 with gd-2.0.33. > > Murat > > > On Mon, 24 Apr 2006 15:12:52 -0500, Eduardo Ar?valo wrote* > > > ready aid: > > who has installed mapserver-4.8.3 with gd-2.0.33 without problems I > cannot > > aid please > > > > -- > > This message has been scanned for viruses and > > dangerous content by *MailScanner* , and > is > > believed to be clean. > > > -- > Open WebMail Project (http://openwebmail.org) > > > -- > This message has been scanned for viruses and > dangerous content by *MailScanner* , and is > believed to be clean. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From temp at CHELLO.HU Tue Apr 25 09:53:10 2006 From: temp at CHELLO.HU (Carlo Tronnberg) Date: Tue, 25 Apr 2006 18:53:10 +0200 Subject: Map file content partially or completely read from database Message-ID: MAPSERVER-USERS Digest - 23 Apr 2006 to 24 Apr 2006 (#2006-114)Dear List! I got the task to implement a web user management system where each user can access a customized map server and modify some of the map settings. There are different groups and roles in each group. Some are local administrators for their groups and can create and modify the privileges and the basic settings of the map server for their users. All users can modify/customize their own settings and save them in the database. For this reason I estimate the only way is to solve this through a database. Since I am already using PostgreSQL for my PostGIS layers, the choice of database is trivial. The user will have to login before he/she can access the system, thus the user is known at loading the map files. Question: Has anyone created such a system to read some (or all) data from a database to memory instead of the map file? If so, how could this be done? I hope somebody can help me with this. Greetings, Carlo Tr?nnberg -------------- next part -------------- An HTML attachment was scrubbed... URL: From aaronkoning at GMAIL.COM Tue Apr 25 10:29:56 2006 From: aaronkoning at GMAIL.COM (Aaron Koning) Date: Tue, 25 Apr 2006 10:29:56 -0700 Subject: Map file content partially or completely read from database In-Reply-To: <010701c66888$bc2db1b0$6501a8c0@blackbird> Message-ID: Check out mapsstorer: http://www.mapstorer.org/ Also checkout maplab (although I don't think it has been updated in a while): http://www.maptools.org/maplab/ Aaron On 4/25/06, Carlo Tronnberg wrote: > > Dear List! > > I got the task to implement a web user management system where each user > can access a customized map server and modify some of the map settings. > There are different groups and roles in each group. Some are local > administrators for their groups and can create and modify the privileges and > the basic settings of the map server for their users. All users can > modify/customize their own settings and save them in the database. > > For this reason I estimate the only way is to solve this through a > database. Since I am already using PostgreSQL for my PostGIS layers, the > choice of database is trivial. > > The user will have to login before he/she can access the system, thus the > user is known at loading the map files. > > Question: Has anyone created such a system to read some (or all) data from > a database to memory instead of the map file? If so, how could this be done? > > I hope somebody can help me with this. > > Greetings, > > Carlo Tr?nnberg > -- +-------------------------------------------- | Aaron Koning | Information Technologist | Prince George, BC, Canada. +-------------------------------------------- | http://datashare.gis.unbc.ca/fist/ | http://datashare.gis.unbc.ca/gctp-js/ +-------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From punkish at EIDESIS.ORG Tue Apr 25 11:27:59 2006 From: punkish at EIDESIS.ORG (Puneet Kishor) Date: Tue, 25 Apr 2006 13:27:59 -0500 Subject: chart on the map In-Reply-To: Message-ID: It is indeed a very beautifully put together app. Unfortunately, it refused to run in Safari on Mac (way too many errors, and then, nothing). Ran well in Firefox. Steve Lime wrote: > Great app Tim! Simple and elegant... > > Steve > >>>> Tim Schaub 04/24/06 12:05 PM >>> > If you're looking for pie charts, I've put together some scripts that > may be of use. > >>> I have spent a whole months to show chart on the mapserver, >>> >>> I just want to ask : can i generate chart for each polygon on >>> mapserver? >>> >>> Without using owtchart? > > For an example, see > http://mapserver.commenspace.org/sustainable_seattle/demographic-map.php > Open the Transportation group, and refresh the map with the Commute Type > layer turned on. > > If you're using (PHP) MapScript, and this seems like something you could > use. I'll pass it along. > From candalt at ONLINE.NO Tue Apr 25 12:29:13 2006 From: candalt at ONLINE.NO (=?iso-8859-1?Q?Sture_Dings=F8yr?=) Date: Tue, 25 Apr 2006 21:29:13 +0200 Subject: WFS OGR and ORACLE Message-ID: Hi Have some layers accessable as WFS layers, using OGR/ODBC. I am fetching the records from an MS SQLSERVER/ORACLE. The layer is a POINT layer. Been testing some WFS FILTER expressions using the matchCase='false' attribute in an PropertyIsLike filter. When I FILTER a layer from MS SQLSERVER or ACCESS the matchCase='false' works. I can make a query on a attribute and I get the correct records regardless if I use upper or lowercase. But if I try the same filter on a layer from ORACLE the matchCase='false' does not seem to work..at least my query is case sensitive. Are there any issues using OGR/ODBC and matchCase='false' in a WFS PropertyIsLike filter? Regards Sture -------------- next part -------------- An HTML attachment was scrubbed... URL: From mhoward at AKIMEKA.COM Tue Apr 25 13:53:28 2006 From: mhoward at AKIMEKA.COM (Mark Howard) Date: Tue, 25 Apr 2006 10:53:28 -1000 Subject: Panning tool without Java VM? Message-ID: Carola, I have a generic mapserver framework app that I use to exercise new functionality. It is pure javascript. It has a rubber band zoom and drag and release pan function. It uses the wz_jsgraphics.js JavaScript Graphics Library - which is nice to have if you want to do any fancy graphics overlays. The nicest thing is that it does not refresh the main page when retrieving a map or featureinfo. If you would like, I can send it to you. Please remember that it's a work in progress. Mark JMEWS II/Medical Situational Awareness (MSA) Akimeka, LLC 1305 North Holopono Street, Suite # 3 Kihei, HI 96753 (808) 442-7137 (303) 829-1255 (cell) mhoward at akimeka.com From ltrevino at GPOBSI.COM.MX Tue Apr 25 14:48:25 2006 From: ltrevino at GPOBSI.COM.MX (=?iso-8859-1?Q?Luis_Trevi=F1o_Huerta?=) Date: Tue, 25 Apr 2006 16:48:25 -0500 Subject: Panning tool without Java VM? Message-ID: Mark: I'd like to try your framework app. I would apressiate if you could share it. Best Regards, Luis ltrevino at gpobsi.com.mx ----- Original Message ----- From: "Mark Howard" To: Sent: Tuesday, April 25, 2006 3:53 PM Subject: Re: [UMN_MAPSERVER-USERS] Panning tool without Java VM? Carola, I have a generic mapserver framework app that I use to exercise new functionality. It is pure javascript. It has a rubber band zoom and drag and release pan function. It uses the wz_jsgraphics.js JavaScript Graphics Library - which is nice to have if you want to do any fancy graphics overlays. The nicest thing is that it does not refresh the main page when retrieving a map or featureinfo. If you would like, I can send it to you. Please remember that it's a work in progress. Mark JMEWS II/Medical Situational Awareness (MSA) Akimeka, LLC 1305 North Holopono Street, Suite # 3 Kihei, HI 96753 (808) 442-7137 (303) 829-1255 (cell) mhoward at akimeka.com From cjesch at CCT.LSU.EDU Tue Apr 25 15:18:32 2006 From: cjesch at CCT.LSU.EDU (Carola Jesch) Date: Tue, 25 Apr 2006 17:18:32 -0500 Subject: Panning tool without Java VM? In-Reply-To: <8B8A0BE7C14F2746B929BD359F623034D5CBA9@NEW-MAIL.akimeka.com> Message-ID: I really would like to try your tool. Please send it. Carola > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Mark Howard > Sent: Tuesday, April 25, 2006 3:53 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Panning tool without Java VM? > > Carola, > > I have a generic mapserver framework app that I use to > exercise new functionality. It is pure javascript. It has a > rubber band zoom and drag and release pan function. It uses > the wz_jsgraphics.js JavaScript Graphics Library - which is > nice to have if you want to do any fancy graphics overlays. > The nicest thing is that it does not refresh the main page > when retrieving a map or featureinfo. If you would like, I > can send it to you. Please remember that it's a work in progress. > > Mark > > > > > > JMEWS II/Medical Situational Awareness (MSA) Akimeka, LLC > 1305 North Holopono Street, Suite # 3 > Kihei, HI 96753 > (808) 442-7137 > (303) 829-1255 (cell) > > mhoward at akimeka.com > From cjesch at CCT.LSU.EDU Tue Apr 25 15:54:04 2006 From: cjesch at CCT.LSU.EDU (Carola Jesch) Date: Tue, 25 Apr 2006 17:54:04 -0500 Subject: Metadata tags in query header templates Message-ID: hi list, I am trying to reference metadata tags in my query template. It works fine as long as I am doing this in the query (body) template, but does not work in the header and footer query templates. Is this a bug? I would expect this to work from the headers because my tags do not depend on the queried data. Thanks for an answer. Carola ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Carola Jesch Wetland Biogeochemistry Institute Department of Oceanography and Coastal Science Louisiana State University 3191 Energy, Coast & Environment Bldg. Baton Rouge, LA,70803 e-mail: cjesch at cct.lsu.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdc at SDC.COM.AU Tue Apr 25 22:17:37 2006 From: sdc at SDC.COM.AU (Stephen Davies) Date: Wed, 26 Apr 2006 14:47:37 +0930 Subject: MAPSERVER-USERS Digest - 24 Apr 2006 to 25 Apr 2006 (#2006-115) In-Reply-To: Message-ID: G'day Carlo. I do something like this by retrieving values from the database and generating sed commands to convert a "template" mapfile into an individual's mapfile. Perl etc could be used instead of sed. HTH, Stephen On Wednesday 26 April 2006 14:32, MAPSERVER-USERS automatic digest system wrote: > Date: Tue, 25 Apr 2006 18:53:10 +0200 > From: Carlo Tronnberg > Subject: Map file content partially or completely read from database > Dear List! > > I got the task to implement a web user management system where each > user = can access a customized map server and modify some of the map > settings. There are different groups and roles in each group. Some > are local = administrators for their groups and can create and modify > the privileges = and the basic settings of the map server for their > users. All users can = modify/customize their own settings and save > them in the database. > > For this reason I estimate the only way is to solve this through a = > database. Since I am already using PostgreSQL for my PostGIS layers, > the = choice of database is trivial. > > The user will have to login before he/she can access the system, thus > = the user is known at loading the map files. > > Question: Has anyone created such a system to read some (or all) data > = from a database to memory instead of the map file? If so, how could > this = be done? > > I hope somebody can help me with this. > > Greetings, > > Carlo Tr=F6nnberg ======================================================================= This email is for the person(s) identified above, and is confidential to the sender and the person(s). No one else is authorised to use or disseminate this email or its contents. Stephen Davies Consulting Voice: 08-8177 1595 Adelaide, South Australia. Fax: 08-8177 0133 Computing & Network solutions. Mobile:0403 0405 83 From b.vdeijnden at AGI.RWS.MINVENW.NL Tue Apr 25 22:37:31 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Wed, 26 Apr 2006 07:37:31 +0200 Subject: WFS OGR and ORACLE Message-ID: Hi, unfortunately OGR datasources do not support the case insensitive LIKE filters. Access is case-insensitive by itself, and Oracle is not, which explains the behaviour you encountered. Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Sture Dings?yr Verzonden: dinsdag 25 april 2006 21:29 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] WFS OGR and ORACLE Hi Have some layers accessable as WFS layers, using OGR/ODBC. I am fetching the records from an MS SQLSERVER/ORACLE. The layer is a POINT layer. Been testing some WFS FILTER expressions using the matchCase='false' attribute in an PropertyIsLike filter. When I FILTER a layer from MS SQLSERVER or ACCESS the matchCase='false' works. I can make a query on a attribute and I get the correct records regardless if I use upper or lowercase. But if I try the same filter on a layer from ORACLE the matchCase='false' does not seem to work..at least my query is case sensitive. Are there any issues using OGR/ODBC and matchCase='false' in a WFS PropertyIsLike filter? Regards Sture Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Benedict.Marillier at DLI.WA.GOV.AU Wed Apr 26 00:26:29 2006 From: Benedict.Marillier at DLI.WA.GOV.AU (Benedict Marillier) Date: Wed, 26 Apr 2006 15:26:29 +0800 Subject: Variable Substitution in Filter expression Message-ID: Hi All, I'm running mapserver 4.4.1. I've been trying to use a %variable% substitution to dynamically filter a shapefile. I have tried several combinations however none seem to work. The following filter works... FILTER ("[ROAD_NAME]" == "SMITH ST") However, attempting to use... FILTER ("[ROAD_NAME]" == "%street%") with the URL... mapserv.exe?map=variable.map&request=getmap&version=1.1.1&service=wms&la yers=roads,copyright,lga,cadastre&BBOX=115.96538,-31.90127,115.96738,-31 .89927&street="SMITH%20ST" does not. I've had no joy with any of the following either... FILTER "ROAD_NAME = '%street%'" or FILTERITEM 'ROAD_NAME' FILTER '%street%' Any suggestions appreciated. Cheers Ben This e-mail and any files transmitted with it are intended only for the use of the addressee(s). It may contain information that is confidential and privileged. If you are not an intended recipient, any use, interference with, disclosure, distribution or copying of this material is unauthorised and prohibited. If you receive this in error, please notify the author by Return email to the sender. Information in this message not relating to the official business of DLI shall be understood as neither given nor endorsed by it. While every care is taken, it is recommended that you scan any attachments for viruses. DLI liability is limited to re-supplying affected attachments. ********************** PLEASE NOTE: All dola.wa.gov.au and vgo.wa.gov.au email addresses have been decommissioned. These have been replaced by dli.wa.gov.au addresses. Please ensure that your records are updated to reflect this change. Further information can be obtained by contacting our service desk on 92737533 or emailing Servicedesk at dli.wa.gov.au ********************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From b.vdeijnden at AGI.RWS.MINVENW.NL Wed Apr 26 05:57:40 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Wed, 26 Apr 2006 14:57:40 +0200 Subject: PNG24 output and GDAL dependency? Message-ID: Hi list, we are trying to create a minimal PHP/Mapscript rpm, but are running into the issue that for 24 bits PNG output there is a dependency on GDAL. Why is this and can it be avoided somehow? Also, if we try to use 8 bit PNG (PC256 instead of RGB/RGBA), we get a segfault in PHP/Mapscript if GDAL is not compiled in. If GDAL is compiled in, all works fine. Best regards, Bart Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From warmerdam at POBOX.COM Wed Apr 26 06:46:33 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 26 Apr 2006 09:46:33 -0400 Subject: PNG24 output and GDAL dependency? In-Reply-To: <1FEE21DC1054D5119FCC0002A5517B2405F97AE6@rws-mdi-dt2-01.agi.rws.minvenw.nl> Message-ID: Eijnden, B. van den (Bart) wrote: > Hi list, > > we are trying to create a minimal PHP/Mapscript rpm, but are running into > the issue that for 24 bits PNG output there is a dependency on GDAL. Why is > this and can it be avoided somehow? > > Also, if we try to use 8 bit PNG (PC256 instead of RGB/RGBA), we get a > segfault in PHP/Mapscript if GDAL is not compiled in. If GDAL is compiled > in, all works fine. Bart, I am not aware of any reason why either would be the case. PNG24 output should work fine without GDAL. Likewise I don't know why you run into the problem with PC256. It is *possible* that with GDAL linked in an internal copy of libpng is getting used instead of the system libpng, though I would advise against using internal libpng in an RPM setup. I would suggest trying to debug each of these problems to try and work out what is happening. 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 OSGF, http://osgeo.org From b.vdeijnden at AGI.RWS.MINVENW.NL Wed Apr 26 06:46:09 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Wed, 26 Apr 2006 15:46:09 +0200 Subject: PNG24 output and GDAL dependency? Message-ID: Hi Frank, with respect to the first problem, Mapserver outputs an error message in this case: [26-Apr-2006 14:20:07] PHP Warning: [MapServer Error]: msDrawRasterLayerLow(): Attempt to render raster layer to IMAGEMODE RGB or RGBA but without GDAL available. 24bit output requires GDAL. Are you not aware of this requirement? Wrt to the other problem, we'll try to do some debugging on it. Best regards, Bart -----Oorspronkelijk bericht----- Van: Frank Warmerdam [mailto:fwarmerdam at gmail.com]Namens Frank Warmerdam Verzonden: woensdag 26 april 2006 15:47 Aan: Eijnden, B. van den (Bart) CC: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] PNG24 output and GDAL dependency? Eijnden, B. van den (Bart) wrote: > Hi list, > > we are trying to create a minimal PHP/Mapscript rpm, but are running into > the issue that for 24 bits PNG output there is a dependency on GDAL. Why is > this and can it be avoided somehow? > > Also, if we try to use 8 bit PNG (PC256 instead of RGB/RGBA), we get a > segfault in PHP/Mapscript if GDAL is not compiled in. If GDAL is compiled > in, all works fine. Bart, I am not aware of any reason why either would be the case. PNG24 output should work fine without GDAL. Likewise I don't know why you run into the problem with PC256. It is *possible* that with GDAL linked in an internal copy of libpng is getting used instead of the system libpng, though I would advise against using internal libpng in an RPM setup. I would suggest trying to debug each of these problems to try and work out what is happening. 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 OSGF, http://osgeo.org Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From warmerdam at POBOX.COM Wed Apr 26 07:33:06 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 26 Apr 2006 10:33:06 -0400 Subject: PNG24 output and GDAL dependency? In-Reply-To: <1FEE21DC1054D5119FCC0002A5517B2405F97AE8@rws-mdi-dt2-01.agi.rws.minvenw.nl> Message-ID: Eijnden, B. van den (Bart) wrote: > Hi Frank, > > with respect to the first problem, Mapserver outputs an error message in > this case: > > [26-Apr-2006 14:20:07] PHP Warning: [MapServer Error]: > msDrawRasterLayerLow(): Attempt to render raster layer to IMAGEMODE RGB or > RGBA but without GDAL available. 24bit output requires GDAL. > > Are you not aware of this requirement? Bart, Ah, I didn't realize you were trying to render input rasters to a 24bit result. 24bit raster input is only supported with GDAL enabled. But you should be able to render vector data to png24 without GDAL. I would add that raster input capabilities are very limited without GDAL enabled. 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 OSGF, http://osgeo.org From bartvde at XS4ALL.NL Wed Apr 26 09:15:17 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Wed, 26 Apr 2006 18:15:17 +0200 Subject: PNG24 output and GDAL dependency? In-Reply-To: <444F84A2.7040709@pobox.com> Message-ID: Hi Frank, okay, basically what we are trying to do is have a minimal PHP/Mapscript which can only act as a WMS client. So the 24 bit images are already received from the WMS services, and only need to be merged into 1 image. But I guess there is no 'escaping' GDAL for that use case (btw I don't mean anything negative with escaping GDAL, but we want to have a really minimal setup for this). Best regards, Bart Frank Warmerdam wrote: > Eijnden, B. van den (Bart) wrote: > >> Hi Frank, >> >> with respect to the first problem, Mapserver outputs an error message in >> this case: >> >> [26-Apr-2006 14:20:07] PHP Warning: [MapServer Error]: >> msDrawRasterLayerLow(): Attempt to render raster layer to IMAGEMODE >> RGB or >> RGBA but without GDAL available. 24bit output requires GDAL. >> >> Are you not aware of this requirement? > > > Bart, > > Ah, I didn't realize you were trying to render input rasters to a 24bit > result. 24bit raster input is only supported with GDAL enabled. But > you should be able to render vector data to png24 without GDAL. > > I would add that raster input capabilities are very limited without > GDAL enabled. > > Best regards, -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From bartvde at XS4ALL.NL Wed Apr 26 09:17:01 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Wed, 26 Apr 2006 18:17:01 +0200 Subject: PNG24 output and GDAL dependency? In-Reply-To: <444F84A2.7040709@pobox.com> Message-ID: On a side note, maybe the error message should be changed to "24bit input requires GDAL" instead of "24 bit output requires GDAL" ? Best regards, Bart Frank Warmerdam wrote: > Eijnden, B. van den (Bart) wrote: > >> Hi Frank, >> >> with respect to the first problem, Mapserver outputs an error message in >> this case: >> >> [26-Apr-2006 14:20:07] PHP Warning: [MapServer Error]: >> msDrawRasterLayerLow(): Attempt to render raster layer to IMAGEMODE >> RGB or >> RGBA but without GDAL available. 24bit output requires GDAL. >> >> Are you not aware of this requirement? > > > Bart, > > Ah, I didn't realize you were trying to render input rasters to a 24bit > result. 24bit raster input is only supported with GDAL enabled. But > you should be able to render vector data to png24 without GDAL. > > I would add that raster input capabilities are very limited without > GDAL enabled. > > Best regards, -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From warmerdam at POBOX.COM Wed Apr 26 09:36:41 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 26 Apr 2006 12:36:41 -0400 Subject: PNG24 output and GDAL dependency? In-Reply-To: <444F9C95.8040900@xs4all.nl> Message-ID: Bart van den Eijnden (OSGIS) wrote: > Hi Frank, > > okay, basically what we are trying to do is have a minimal PHP/Mapscript > which can only act as a WMS client. So the 24 bit images are already > received from the WMS services, and only need to be merged into 1 image. > > But I guess there is no 'escaping' GDAL for that use case (btw I don't > mean anything negative with escaping GDAL, but we want to have a really > minimal setup for this). Bart, Well, it isn't implausible to imagine fixing up the built-in png, gif and jpeg support to handle 24bit mode. They definately will not support reprojection without a major overhaul. But Steve and I have generally not felt that it is worth spending much effort on the old non-GDAL raster input sources. So if you, or someone feels a minimal build for such a configuration is valuable, there would be some development work to be done. I quite understand about a minimal build. GDAL is a big whack of stuff. If size is a major issue there are ways of building "pared down" GDAL's. But that doesn't help much if simplicity is your main goal. 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 OSGF, http://osgeo.org From john.cole at UAI.COM Wed Apr 26 09:39:11 2006 From: john.cole at UAI.COM (John Cole) Date: Wed, 26 Apr 2006 11:39:11 -0500 Subject: png's with transparent sections don't work when output type is jp g... Message-ID: I have some png symbols with transparent sections, but it seems that in 4.8.1 they don't work in a point layer (they do seem to work properly in an annotation layer). Is there some way I can get transparent png's to work when the output type is jpg in a point layer? Thanks, John Cole
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.
From kenlord at GMAIL.COM Wed Apr 26 10:01:02 2006 From: kenlord at GMAIL.COM (Ken Lord) Date: Wed, 26 Apr 2006 10:01:02 -0700 Subject: Variable Substitution in Filter expression In-Reply-To: <82C223B25A75614D9F884563CE191C1402A7F712@MAIL.dli.wa.gov.au> Message-ID: Hi Benedict, I do a variable substitution like yours, in my case I have it set in my layer like this: FILTERITEM "TYPE" FILTER "%linearname%" I think the problem is in your URL, try it without the quotes around the value. Instead of: street="SMITH%20ST" use: street=SMITH%20ST Cheers, Ken Lord Vancouver BC On 4/26/06, Benedict Marillier wrote: > > > > > > Hi All, > > > > I'm running mapserver 4.4.1. > > > > I've been trying to use a %variable% substitution to dynamically filter a > shapefile. I have tried several combinations however none seem to work. The > following filter works? > > FILTER ("[ROAD_NAME]" == "SMITH ST") > > However, attempting to use? > > FILTER ("[ROAD_NAME]" == "%street%") > > > > > with the URL? > > > > mapserv.exe?map=variable.map&request=getmap&version=1.1.1&service=wms&layers=roads,copyright,lga,cadastre&BBOX=115.96538,-31.90127,115.96738,-31.89927&street="SMITH%20ST" > > > > does not. > > > > I've had no joy with any of the following either? > > FILTER "ROAD_NAME = '%street%'" > or > FILTERITEM 'ROAD_NAME' > FILTER '%street%' > > > > Any suggestions appreciated. > > > > Cheers > > Ben > > > > > > This e-mail and any files transmitted with it are intended only for the use > of the addressee(s). It may contain information that is confidential and > privileged. If you are not an intended recipient, any use, interference > with, disclosure, distribution or copying of this material is unauthorised > and prohibited. If you receive this in error, please notify the author by > Return email to the sender. Information in this message not relating to the > official business of DLI shall be understood as neither given nor endorsed > by it. While every care is taken, it is recommended that you scan any > attachments for viruses. DLI liability is limited to re-supplying affected > attachments. > > > > ********************** > > PLEASE NOTE: All dola.wa.gov.au and vgo.wa.gov.au email addresses have been > decommissioned. These have been replaced by dli.wa.gov.au addresses. Please > ensure that your records are updated to reflect this change. Further > information can be obtained by contacting our service desk on 92737533 or > emailing Servicedesk at dli.wa.gov.au > > > > ********************** > > From john.cole at UAI.COM Wed Apr 26 11:14:41 2006 From: john.cole at UAI.COM (John Cole) Date: Wed, 26 Apr 2006 13:14:41 -0500 Subject: select output type on cgi query string? Message-ID: Is it possible to select the output type with the cgi query string? When we are using teraserver as a background, jpg looks best, but without it, png looks best. It would be nice to be able to switch that when the teraserver raster layers are selected. Thanks, John Cole
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.
From banders at REFRACTIONS.NET Wed Apr 26 11:22:27 2006 From: banders at REFRACTIONS.NET (Brock Anderson) Date: Wed, 26 Apr 2006 11:22:27 -0700 Subject: select output type on cgi query string? In-Reply-To: <76758090F8686C47A44B6FF52514A1D3079096FB@hermes.uai.int> Message-ID: John, Mapserver WMS lets you specify the output format in the URL. Just add: &format=png (or jpeg, gif, etc.) ... to the request. I'm not sure if non-WMS requests allow a similar argument. Brock John Cole wrote: >Is it possible to select the output type with the cgi query string? When we >are using teraserver as a background, jpg looks best, but without it, png >looks best. It would be nice to be able to switch that when the teraserver >raster layers are selected. > >Thanks, > >John Cole >
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.
> > From john.cole at UAI.COM Wed Apr 26 11:31:55 2006 From: john.cole at UAI.COM (John Cole) Date: Wed, 26 Apr 2006 13:31:55 -0500 Subject: select output type on cgi query string? Message-ID: Brock, Thanks, but that doesn't seem to work in the cgi mode (at least on my 4.8.1). John -----Original Message----- From: Brock Anderson [mailto:banders at refractions.net] Sent: Wednesday, April 26, 2006 1:22 PM To: John Cole Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] select output type on cgi query string? John, Mapserver WMS lets you specify the output format in the URL. Just add: &format=png (or jpeg, gif, etc.) ... to the request. I'm not sure if non-WMS requests allow a similar argument. Brock John Cole wrote: >Is it possible to select the output type with the cgi query string? When we >are using teraserver as a background, jpg looks best, but without it, png >looks best. It would be nice to be able to switch that when the teraserver >raster layers are selected. > >Thanks, > >John Cole >
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.
> >
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.
From naci0002 at UMN.EDU Wed Apr 26 11:41:38 2006 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Wed, 26 Apr 2006 13:41:38 -0500 Subject: select output type on cgi query string? In-Reply-To: <76758090F8686C47A44B6FF52514A1D3079096FD@hermes.uai.int> Message-ID: John, Try adding &map_imagetype=png24 (or png/jpeg) for non-WMS MapServer CGI requests. -Perry John Cole wrote: > Brock, > Thanks, but that doesn't seem to work in the cgi mode (at least on my > 4.8.1). > > John > > -----Original Message----- > From: Brock Anderson [mailto:banders at refractions.net] > Sent: Wednesday, April 26, 2006 1:22 PM > To: John Cole > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] select output type on cgi query string? > > John, > > Mapserver WMS lets you specify the output format in the URL. Just add: > > &format=png (or jpeg, gif, etc.) > > ... to the request. I'm not sure if non-WMS requests allow a similar > argument. > > Brock > > > John Cole wrote: > >> Is it possible to select the output type with the cgi query string? When > we >> are using teraserver as a background, jpg looks best, but without it, png >> looks best. It would be nice to be able to switch that when the teraserver >> raster layers are selected. >> >> Thanks, >> >> John Cole >>
This email and any files transmitted with > it are confidential and intended solely for the use of the individual or > entity to whom they are addressed. If you have received this email in error > please notify the sender. This message contains confidential information and > is intended only for the individual named. If you are not the named > addressee you should not disseminate, distribute or copy this e-mail. >
>> >> >
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.
> > . > From john.cole at UAI.COM Wed Apr 26 11:44:20 2006 From: john.cole at UAI.COM (John Cole) Date: Wed, 26 Apr 2006 13:44:20 -0500 Subject: select output type on cgi query string? Message-ID: Bingo! Thanks, that works. John -----Original Message----- From: Pericles S. Nacionales [mailto:naci0002 at umn.edu] Sent: Wednesday, April 26, 2006 1:42 PM To: John Cole Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] select output type on cgi query string? John, Try adding &map_imagetype=png24 (or png/jpeg) for non-WMS MapServer CGI requests. -Perry John Cole wrote: > Brock, > Thanks, but that doesn't seem to work in the cgi mode (at least on my > 4.8.1). > > John > > -----Original Message----- > From: Brock Anderson [mailto:banders at refractions.net] > Sent: Wednesday, April 26, 2006 1:22 PM > To: John Cole > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] select output type on cgi query string? > > John, > > Mapserver WMS lets you specify the output format in the URL. Just add: > > &format=png (or jpeg, gif, etc.) > > ... to the request. I'm not sure if non-WMS requests allow a similar > argument. > > Brock > > > John Cole wrote: > >> Is it possible to select the output type with the cgi query string? When > we >> are using teraserver as a background, jpg looks best, but without it, png >> looks best. It would be nice to be able to switch that when the teraserver >> raster layers are selected. >> >> Thanks, >> >> John Cole >>
This email and any files transmitted with > it are confidential and intended solely for the use of the individual or > entity to whom they are addressed. If you have received this email in error > please notify the sender. This message contains confidential information and > is intended only for the individual named. If you are not the named > addressee you should not disseminate, distribute or copy this e-mail. >
>> >> >
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.
> > . >
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.
From David.Fawcett at STATE.MN.US Wed Apr 26 12:36:14 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Wed, 26 Apr 2006 14:36:14 -0500 Subject: FW: ayudaurgente Message-ID: Can anyone help out lucero? -----Original Message----- From: lucero ruiz perez [mailto:lrp_2009 at hotmail.com] Sent: Wednesday, April 26, 2006 1:41 PM To: Fawcett, David Subject: ayudaurgente hola mi nombre es lucero y necesito de tu ayuda nose si tu me puedes mandar unos ejemplos de como hacer los mapas tematicos, y manuales lo quew pasa es que casi no encuentro informacion y me gustaria ver si tu me puedes ayudar, estoy desarrollando mi tesis y tengo que hacer unos mapas tematicos utilizando mapserver, y tengo que hacer algo como los ejemplos que muestran, como pintar de diferente color las ciudades y eso porfavor ayudame te lo agradecere mucho, gracias. ________________________________ Prodigy/MSN Hotmail Plus. M?s espacio, m?s funcional Haz clic aqu? -------------- next part -------------- An HTML attachment was scrubbed... URL: From James.Leveille at MTQ.GOUV.QC.CA Wed Apr 26 12:49:01 2006 From: James.Leveille at MTQ.GOUV.QC.CA (=?iso-8859-1?Q?L=E9veill=E9=2C_James?=) Date: Wed, 26 Apr 2006 15:49:01 -0400 Subject: MapServer with MapInfo (WFS) Message-ID: Hi all, I'm trying to test MapServer (v 4.8.3), the WFS service, with MapInfo (v 8.0) and keep having this error message: "The WFS Server returned data which was neither in the requested format nor a recognized WFS service exception : POST body is short. In response to a DescribeFeatureType request, the WFS Server returned an invalid feature type." The GetCapabilities looks fine, and the GetFeature works fine with IE ... Here is my (simple) MapFile. THANKS A LOT !!! MAP NAME "Prototype_WFS_MTQ" # Project name PROJECTION "init=epsg:42105" END WEB IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "wfs_title" "Prototype WFS" "wfs_onlineresource" "http://mdrim00-000251/cgi-bin/mapserv.exe?map=/ms4w/apps/dm_128/wfs_mapfile .map &" "wfs_srs" "EPSG:42105" "wfs_abstract" "Ceci est un prototype WFS." "wfs_geometry_element_name" "MS_GEOMETRY" END END STATUS ON EXTENT 30000 75000 1700000 2120000 SHAPEPATH "/ms4w/apps/dm_128/data" UNITS METERS # ================================================== LAYER NAME "RRNI" PROJECTION "init=epsg:42105" END METADATA "wfs_title" "RRNI" "wfs_name" "RRNI" "wfs_abstract" "RRNI" # "wfs_srs" "EPSG:42105" "id_attribute_string" "ide_sous_route|integer" "wfs_geometry_element_name" "MS_GEOMETRY" "wfs_version" "1.0.0" "wfs_request_method" "GET" "wfs_connectiontimeout" "120" "wfs_maxfeatures" "1000000" "gml_exclude_items" "all" "gml_include_items" "ide_sous_route,num_utils_cretn" END STATUS ON DUMP TRUE EXTENT 30000 75000 1700000 2120000 MAXSCALE 250000 MINSCALE 1 CONNECTIONTYPE oraclespatial CONNECTION "xxxxxx/yyyyyy at d001 " PROCESSING "CLOSE_CONNECTION=DEFER" DATA "geo_sous_route_2d FROM bgr_v_srte_res_mtq_2d_act USING UNIQUE ide_sous_route SRID 1557057 " TYPE LINE MAXFEATURES 1000000 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 punkish at EIDESIS.ORG Wed Apr 26 12:44:45 2006 From: punkish at EIDESIS.ORG (Puneet Kishor) Date: Wed, 26 Apr 2006 14:44:45 -0500 Subject: FW: ayudaurgente In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5FB0578@s-sp22.pca.state.mn.us> Message-ID: From ltrevino at GPOBSI.COM.MX Wed Apr 26 14:11:36 2006 From: ltrevino at GPOBSI.COM.MX (=?iso-8859-1?Q?Luis_Trevi=F1o_Huerta?=) Date: Wed, 26 Apr 2006 16:11:36 -0500 Subject: FW: ayudaurgente Message-ID: Messagelucero: Si pudieras ser m?s explic?ta en lo que realmente necesitas, ver?a la forma de poderte ayudar. Saludos Luis ----- Original Message ----- From: Fawcett, David To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Wednesday, April 26, 2006 2:36 PM Subject: [UMN_MAPSERVER-USERS] FW: ayudaurgente Can anyone help out lucero? -----Original Message----- From: lucero ruiz perez [mailto:lrp_2009 at hotmail.com] Sent: Wednesday, April 26, 2006 1:41 PM To: Fawcett, David Subject: ayudaurgente hola mi nombre es lucero y necesito de tu ayuda nose si tu me puedes mandar unos ejemplos de como hacer los mapas tematicos, y manuales lo quew pasa es que casi no encuentro informacion y me gustaria ver si tu me puedes ayudar, estoy desarrollando mi tesis y tengo que hacer unos mapas tematicos utilizando mapserver, y tengo que hacer algo como los ejemplos que muestran, como pintar de diferente color las ciudades y eso porfavor ayudame te lo agradecere mucho, gracias. ------------------------------------------------------------------------------ Prodigy/MSN Hotmail Plus. M?s espacio, m?s funcional Haz clic aqu? -------------- next part -------------- An HTML attachment was scrubbed... URL: From gomide at MPS.COM.BR Wed Apr 26 13:18:13 2006 From: gomide at MPS.COM.BR (Antonio Carlos Gomide) Date: Wed, 26 Apr 2006 17:18:13 -0300 Subject: FW: ayudaurgente Message-ID: MessageDavid: In Brazil there are several sites with good information regarding Mapserver. One that pops into my mind is: http://www.webmapit.com.br, maintained by Eduardo Patto Kanegae. This site has a very good, step-by-step Mapserver tutorial with downloadable sample material. In the site choose 'Services' and then 'Learn2MapIt'. This tutorial is written in Portuguese. Another site is from one University (http://webmap.institutoecos.org.br/mapserver/mapserver.htm). Regards Antonio Carlos Gomide. 55-41-3331-4533 ----- Original Message ----- From: Fawcett, David To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Wednesday, April 26, 2006 4:36 PM Subject: [UMN_MAPSERVER-USERS] FW: ayudaurgente Can anyone help out lucero? -----Original Message----- From: lucero ruiz perez [mailto:lrp_2009 at hotmail.com] Sent: Wednesday, April 26, 2006 1:41 PM To: Fawcett, David Subject: ayudaurgente hola mi nombre es lucero y necesito de tu ayuda nose si tu me puedes mandar unos ejemplos de como hacer los mapas tematicos, y manuales lo quew pasa es que casi no encuentro informacion y me gustaria ver si tu me puedes ayudar, estoy desarrollando mi tesis y tengo que hacer unos mapas tematicos utilizando mapserver, y tengo que hacer algo como los ejemplos que muestran, como pintar de diferente color las ciudades y eso porfavor ayudame te lo agradecere mucho, gracias. ------------------------------------------------------------------------------ Prodigy/MSN Hotmail Plus. M?s espacio, m?s funcional Haz clic aqu? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Benedict.Marillier at DLI.WA.GOV.AU Wed Apr 26 17:55:42 2006 From: Benedict.Marillier at DLI.WA.GOV.AU (Benedict Marillier) Date: Thu, 27 Apr 2006 08:55:42 +0800 Subject: Variable Substitution in Filter expression Message-ID: Hi Ken, Thanks for the suggestion, but still no joy. I suspect the map file is not even substituting the variable. Is there some sort of tag that needs to be set as well? If anyone has a fully functioning map file example with a URL which uses variable substitution I would be interested to see it. Cheers Ben -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ken Lord Sent: Thursday, April 27, 2006 1:01 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Variable Substitution in Filter expression Hi Benedict, I do a variable substitution like yours, in my case I have it set in my layer like this: FILTERITEM "TYPE" FILTER "%linearname%" I think the problem is in your URL, try it without the quotes around the value. Instead of: street="SMITH%20ST" use: street=SMITH%20ST Cheers, Ken Lord Vancouver BC On 4/26/06, Benedict Marillier wrote: > > > > > > Hi All, > > > > I'm running mapserver 4.4.1. > > > > I've been trying to use a %variable% substitution to dynamically filter a > shapefile. I have tried several combinations however none seem to work. The > following filter works... > > FILTER ("[ROAD_NAME]" == "SMITH ST") > > However, attempting to use... > > FILTER ("[ROAD_NAME]" == "%street%") > > > > > with the URL... > > > > mapserv.exe?map=variable.map&request=getmap&version=1.1.1&service=wms&la yers=roads,copyright,lga,cadastre&BBOX=115.96538,-31.90127,115.96738,-31 .89927&street="SMITH%20ST" > > > > does not. > > > > I've had no joy with any of the following either... > > FILTER "ROAD_NAME = '%street%'" > or > FILTERITEM 'ROAD_NAME' > FILTER '%street%' > > > > Any suggestions appreciated. > > > > Cheers > > Ben > > > > > > This e-mail and any files transmitted with it are intended only for the use > of the addressee(s). It may contain information that is confidential and > privileged. If you are not an intended recipient, any use, interference > with, disclosure, distribution or copying of this material is unauthorised > and prohibited. If you receive this in error, please notify the author by > Return email to the sender. Information in this message not relating to the > official business of DLI shall be understood as neither given nor endorsed > by it. While every care is taken, it is recommended that you scan any > attachments for viruses. DLI liability is limited to re-supplying affected > attachments. > > > > ********************** > > PLEASE NOTE: All dola.wa.gov.au and vgo.wa.gov.au email addresses have been > decommissioned. These have been replaced by dli.wa.gov.au addresses. Please > ensure that your records are updated to reflect this change. Further > information can be obtained by contacting our service desk on 92737533 or > emailing Servicedesk at dli.wa.gov.au > > > > ********************** > > From warmerdam at POBOX.COM Wed Apr 26 20:27:21 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 26 Apr 2006 23:27:21 -0400 Subject: MapServer with MapInfo (WFS) In-Reply-To: <2F86ED212F3E164EB9FBB2E68C67858E01BDFDB0@SINFRA0-EXC003.MTQ.MIN.INTRA> Message-ID: L?veill? wrote: > Hi all, > > I'm trying to test MapServer (v 4.8.3), the WFS service, with MapInfo (v > 8.0) and keep having this error message: > > *"The WFS Server returned data which was neither in the requested format > nor a recognized WFS service exception : POST body is short.* > *In response to a DescribeFeatureType request, the WFS Server returned > an invalid feature type."* > > The GetCapabilities looks fine, and the GetFeature works fine with IE ... > Here is my (simple) MapFile. James, I would suggest you do a DescribeFeatureType in IE and post the resulting XML. There may be something in the resulting XML that is invalid or at least confusing to MapInfo. I gather MapInfo operates as a WFS client? Is that readonly or transactional too? I have trouble keeping up with who does what, and would be interested to hear if MapInfo proves to be a useful desktop client for WFS servers. 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 OSGF, http://osgeo.org From James.Leveille at MTQ.GOUV.QC.CA Thu Apr 27 05:40:14 2006 From: James.Leveille at MTQ.GOUV.QC.CA (=?iso-8859-1?Q?L=E9veill=E9=2C_James?=) Date: Thu, 27 Apr 2006 08:40:14 -0400 Subject: [UMN_MAPSERVER-USERS] MapServer with MapInfo (WFS) Message-ID: Hi Frank - thanks for the answer ... Here are some more details ... === Here is the DescribeFeatureType : - - - - - === Here is some more info I found on specifications: - In MapInfo v8 documentation, it is written that this version of the WFS client supports GML2 (OGC GML V2.1.1). - For MapServer, OGC Specifications supported by MapServer are Web Feature Service (OGC:WFS) 1.0.0 and Geography Markup Language (OGC:GML 2.1.2, OGC:GML 3.1.0 Level 0 Profile) === I also found this (in MapInfo Documentation) regarding the two errors I had: FIRST ERROR: The WMS Server returned data which was neither in the requested format nor a recognized WMS service exception: DESCRIPTION : The raw data following the colon is transmitted by the WMS server. This may help you analyze the problem.The exception message from the server could not be understood. For example, the exception message may not have been in XML format. SECOND ERROR: In response to a DescribeFeatureType request, the WFS Server returned an invalid feature type. DESCRIPTION: MapInfo could not interpret the schema returned by the server. This message is usually preceded by either another MapInfo error message or raw data transmitted by the WFS server. This may help you analyze the problem. === Finally: - I'm just trying to connect in "read-only" mode, not transactional. - I also tested GeoMediaPro as a WFS client and I got a "Feature Identifier 'fid' is not defined in the data" error. I'm in touch with people from Intergraph regarding this problem. Just to let you know that MapInfo works GREAT as a WMS client (not yet as a WFS client). I tested Udig, GAIA, GeoMediaPro, quickWMS and a few other WMS clients, but MapInfo was the fastest ... I'll keep working on all this. It HAS TO WORK !!! Thanks for your help. __________________________________________ 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) -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Frank Warmerdam Envoy? : 26 avril 2006 23:27 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] MapServer with MapInfo (WFS) L?veill? wrote: > Hi all, > > I'm trying to test MapServer (v 4.8.3), the WFS service, with MapInfo > (v > 8.0) and keep having this error message: > > *"The WFS Server returned data which was neither in the requested > format > nor a recognized WFS service exception : POST body is short.* > *In response to a DescribeFeatureType request, the WFS Server returned > an invalid feature type."* > > The GetCapabilities looks fine, and the GetFeature works fine with IE > ... Here is my (simple) MapFile. James, I would suggest you do a DescribeFeatureType in IE and post the resulting XML. There may be something in the resulting XML that is invalid or at least confusing to MapInfo. I gather MapInfo operates as a WFS client? Is that readonly or transactional too? I have trouble keeping up with who does what, and would be interested to hear if MapInfo proves to be a useful desktop client for WFS servers. 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 OSGF, http://osgeo.org From warmerdam at POBOX.COM Thu Apr 27 06:36:56 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 27 Apr 2006 09:36:56 -0400 Subject: [UMN_MAPSERVER-USERS] MapServer with MapInfo (WFS) In-Reply-To: <2F86ED212F3E164EB9FBB2E68C67858E01BDFDB8@SINFRA0-EXC003.MTQ.MIN.INTRA> Message-ID: L?veill? wrote: > Hi Frank - thanks for the answer ... > Here are some more details ... > > === Here is the DescribeFeatureType : > > > - xmlns:ms="http://mapserver.gis.umn.edu/mapserver" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns="http://www.w3.org/2001/XMLSchema" > xmlns:gml="http://www.opengis.net/gml" elementFormDefault="qualified" > version="0.1"> > schemaLocation="http://schemas.opengeospatial.net/gml/2.1.2/feature.xsd" /> > substitutionGroup="gml:_Feature" /> > - > - > - > - > maxOccurs="1" /> > > > > > > James, I don't see any obvious problem with the above feature type response though I'm no WFS or GML guru. You might want to quote it in any future email to the mapserver list or MapInfo support. > === Here is some more info I found on specifications: > > - In MapInfo v8 documentation, it is written that this version of the WFS > client supports GML2 (OGC GML V2.1.1). > - For MapServer, OGC Specifications supported by MapServer are Web Feature > Service (OGC:WFS) 1.0.0 and Geography Markup Language (OGC:GML 2.1.2, > OGC:GML 3.1.0 Level 0 Profile) This all seems pretty compatible. > === I also found this (in MapInfo Documentation) regarding the two errors I > had: ... > SECOND ERROR: In response to a DescribeFeatureType request, the WFS Server > returned an invalid feature type. It would be nice to know why it is considered invalid. Perhaps you can provide the DescribeFeatureType response and the url to the service to MapInfo support for comment. > === Finally: > - I'm just trying to connect in "read-only" mode, not transactional. > - I also tested GeoMediaPro as a WFS client and I got a "Feature Identifier > 'fid' is not defined in the data" error. I'm in touch with people from > Intergraph regarding this problem. The fid problem *might* be something that should be fixed in MapServer. 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 OSGF, http://osgeo.org From osgis.lists at GMAIL.COM Thu Apr 27 07:55:14 2006 From: osgis.lists at GMAIL.COM (David Bitner) Date: Thu, 27 Apr 2006 09:55:14 -0500 Subject: FW: ayudaurgente In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5FB0578@s-sp22.pca.state.mn.us> Message-ID: Bad Google Translation: "hello my name is lucero and I need your aid nose if your you can send examples to me of like making the maps tematicos, and manual quew happens is almost that encounter gustaria information and not to see me if your you can help me, is developing my thesis and must do maps tematicos using to mapserver, and must do something like the examples that show, like painting of different color the cities and that porfavor ayudame you agradecere much, thanks. " (I'm not really sure what "aid nose" means) Perhaps he could try an automated translation of the tutorial: http://translate.google.com/translate?u=http%3A%2F%2Fmapserver.gis.umn.edu%2Fnew_users&langpair=en%7Ces&hl=en&ie=UTF8 On 4/26/06, Fawcett, David wrote: > > Can anyone help out lucero? > > > > -----Original Message----- > From: lucero ruiz perez [mailto:lrp_2009 at hotmail.com] > Sent: Wednesday, April 26, 2006 1:41 PM > To: Fawcett, David > Subject: ayudaurgente > > > > hola mi nombre es lucero y necesito de tu ayuda nose si tu me puedes mandar > unos ejemplos de como hacer los mapas tematicos, y manuales lo quew pasa es > que casi no encuentro informacion y me gustaria ver si tu me puedes ayudar, > estoy desarrollando mi tesis y tengo que hacer unos mapas tematicos > utilizando mapserver, y tengo que hacer algo como los ejemplos que muestran, > como pintar de diferente color las ciudades y eso porfavor ayudame te lo > agradecere mucho, gracias. > ________________________________ > Prodigy/MSN Hotmail Plus. M?s espacio, m?s funcional Haz clic aqu? From Brent.Lund at STATE.MN.US Thu Apr 27 08:08:22 2006 From: Brent.Lund at STATE.MN.US (Brent Lund) Date: Thu, 27 Apr 2006 10:08:22 -0500 Subject: chart on the map Message-ID: Many thanks -----Original Message----- From: Tim Schaub [mailto:tim at COMMENSPACE.ORG] Sent: Wednesday, April 26, 2006 2:16 PM To: Brent Lund Subject: RE: [UMN_MAPSERVER-USERS] chart on the map Hey Brent- Though it is not really packaged up for distribution, you can have at it: http://mapserver.commenspace.org/tools/pielayers/pielayers.zip I tried to tuck in basic documentation in the comments. If you can't make any sense of it, let me know. Also, if you do put it to use, I'd be interested in seeing how it is used. Tim > -----Original Message----- > From: Brent Lund [mailto:Brent.Lund at state.mn.us] > Sent: Wednesday, April 26, 2006 9:27 AM > To: Tim Schaub > Subject: RE: [UMN_MAPSERVER-USERS] chart on the map > > Tim, > > Neat! > > >> If you're using (PHP) MapScript, and this seems like something you > could > use. I'll pass it along. > > Could you send it my way too -thanks > > Brent > > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Tim Schaub > Sent: Monday, April 24, 2006 12:05 PM > To: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] chart on the map > > If you're looking for pie charts, I've put together some > scripts that may be of use. > > > > I have spent a whole months to show chart on the mapserver, > > > > > > I just want to ask : can i generate chart for each polygon on > > > mapserver? > > > > > > Without using owtchart? > > For an example, see > http://mapserver.commenspace.org/sustainable_seattle/demograph > ic-map.php > Open the Transportation group, and refresh the map with the > Commute Type layer turned on. > > If you're using (PHP) MapScript, and this seems like > something you could use. I'll pass it along. > > Tim > > > > > > > Thanks for your all kindness > > > > > > > > > > > > -Hadi- > > > > > > West Java Indonesia > > > > > > > > -- > > Bill Binko > > > From lenin.montano at GMAIL.COM Thu Apr 27 07:59:27 2006 From: lenin.montano at GMAIL.COM (Lenin Montano) Date: Thu, 27 Apr 2006 16:59:27 +0200 Subject: Fwd: [UMN_MAPSERVER-USERS] FW: ayudaurgente In-Reply-To: <71c3c6c50604270755v46c1009bse1858813353e51bc@mail.gmail.com> Message-ID: Ok this, more than a translation is an aproximation of the Lucero's message "Hello My name is Lucero and I need your help. I don't know if you can send me some examples of how to draw maps with themes. Where can I find handbooks, the thing is that I almost can't find information and I'd like to know if you can help me. Im developing my thesis and I need to draw some theme maps using mapserver, and I need to do something with the examples they show, like put some colors on the cities. Please help me, I will really appreciate it. " Cheers from Panama, Lenin ---------- Forwarded message ---------- From: David Bitner Date: Apr 27, 2006 4:55 PM Subject: Re: [UMN_MAPSERVER-USERS] FW: ayudaurgente To: MAPSERVER-USERS at lists.umn.edu Bad Google Translation: "hello my name is lucero and I need your aid nose if your you can send examples to me of like making the maps tematicos, and manual quew happens is almost that encounter gustaria information and not to see me if your you can help me, is developing my thesis and must do maps tematicos using to mapserver, and must do something like the examples that show, like painting of different color the cities and that porfavor ayudame you agradecere much, thanks. " (I'm not really sure what "aid nose" means) Perhaps he could try an automated translation of the tutorial: http://translate.google.com/translate?u=http%3A%2F%2Fmapserver.gis.umn.edu%2Fnew_users&langpair=en%7Ces&hl=en&ie=UTF8 On 4/26/06, Fawcett, David wrote: > > Can anyone help out lucero? > > > > -----Original Message----- > From: lucero ruiz perez [mailto:lrp_2009 at hotmail.com] > Sent: Wednesday, April 26, 2006 1:41 PM > To: Fawcett, David > Subject: ayudaurgente > > > > hola mi nombre es lucero y necesito de tu ayuda nose si tu me puedes mandar > unos ejemplos de como hacer los mapas tematicos, y manuales lo quew pasa es > que casi no encuentro informacion y me gustaria ver si tu me puedes ayudar, > estoy desarrollando mi tesis y tengo que hacer unos mapas tematicos > utilizando mapserver, y tengo que hacer algo como los ejemplos que muestran, > como pintar de diferente color las ciudades y eso porfavor ayudame te lo > agradecere mucho, gracias. > ________________________________ > Prodigy/MSN Hotmail Plus. M?s espacio, m?s funcional Haz clic aqu? -- ---------- Lenin Montano http://superlenin.blogspot.com Cel.: 6611-1380 #PTY 36663 P. O. Box 25207 Miami, FL 33102-5207 [Watching Dr. Gonzo leave] Raoul Duke: There he goes. One of God's own prototypes. Some kind of high powered mutant never even considered for mass production. Too weird to live, and too rare to die. (Im Dr. Gonzo) -------------- next part -------------- An HTML attachment was scrubbed... URL: From flavio at TYDAC.CH Thu Apr 27 08:35:45 2006 From: flavio at TYDAC.CH (Flavio Hendry) Date: Thu, 27 Apr 2006 17:35:45 +0200 Subject: FW: ayudaurgente In-Reply-To: <71c3c6c50604270755v46c1009bse1858813353e51bc@mail.gmail.com> Message-ID: hola lucero utliza "CLASSITEM" y despues clases: - pudes ver http://umn.mapserver.ch y el menu "sample map files" - tutorial en aleman de una tesis con muchos ejemplos: http://www.geog.fu-berlin.de/de/Karto/umn_karten/main.shtml Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- -----Original Message----- From: David Bitner To: MAPSERVER-USERS at LISTS.UMN.EDU Date: Thu, 27 Apr 2006 09:55:14 -0500 Subject: Re: [UMN_MAPSERVER-USERS] FW: ayudaurgente > Bad Google Translation: > "hello my name is lucero and I need your aid nose if your you can > send > examples to me of like making the maps tematicos, and manual quew > happens is almost that encounter gustaria information and not to see > me if your you can help me, is developing my thesis and must do maps > tematicos using to mapserver, and must do something like the examples > that show, like painting of different color the cities and that > porfavor ayudame you agradecere much, thanks. " > > (I'm not really sure what "aid nose" means) > > Perhaps he could try an automated translation of the tutorial: > http://translate.google.com/translate?u=http%3A%2F%2Fmapserver.gis.um > n.edu%2Fnew_users&langpair=en%7Ces&hl=en&ie=UTF8 > > On 4/26/06, Fawcett, David wrote: > > > > Can anyone help out lucero? > > > > > > > > -----Original Message----- > > From: lucero ruiz perez [mailto:lrp_2009 at hotmail.com] > > Sent: Wednesday, April 26, 2006 1:41 PM > > To: Fawcett, David > > Subject: ayudaurgente > > > > > > > > hola mi nombre es lucero y necesito de tu ayuda nose si tu me > puedes mandar > > unos ejemplos de como hacer los mapas tematicos, y manuales lo quew > pasa es > > que casi no encuentro informacion y me gustaria ver si tu me puedes > ayudar, > > estoy desarrollando mi tesis y tengo que hacer unos mapas tematicos > > utilizando mapserver, y tengo que hacer algo como los ejemplos que > muestran, > > como pintar de diferente color las ciudades y eso porfavor ayudame > te lo > > agradecere mucho, gracias. > > ________________________________ > > Prodigy/MSN Hotmail Plus. M?s espacio, m?s funcional Haz clic aqu? From work at XWB.COM Thu Apr 27 08:40:02 2006 From: work at XWB.COM (Chip Taylor) Date: Thu, 27 Apr 2006 08:40:02 -0700 Subject: Learning WFS In-Reply-To: Message-ID: I am beginning to learn WFS and have had some success in setting up a WFS server using MapServer 4.6.1 under IIS6 and then accessing it. However, I am not able to get "gml_include_items" to work. Here is my WFS server layer: ##################################### # WFS States # LAYER NAME "states" METADATA "wfs_title" "States" "gml_include_items" "STATE" END DATA "US/States/statesp020" STATUS ON TYPE polygon DUMP TRUE PROJECTION "init=epsg:4326" END CLASS STYLE COLOR 0 0 255 END END END ------------------------------------- And here is the call from Mapserver as a client: ##################################### # getWFS Layer # LAYER NAME "getWFS" TYPE POLYGON STATUS ON CONNECTIONTYPE WFS CONNECTION "http://mapwfs.com/cgi-bin/mapserv.exe?map=../mapfiles/map_files/wfs_test.ma p" METADATA "wfs_typename" "states" "wfs_version" "1.0.0" "wfs_request_method" "GET" "wfs_connectiontimeout" "60" "wfs_maxfeatures" "all" "wfs_srs" "epsg:4326" END PROJECTION "init=epsg:4326" END LABELITEM STATE CLASS NAME "States" STYLE COLOR 80 80 250 OUTLINECOLOR 120 120 120 END LABEL COLOR 0 0 0 OUTLINECOLOR 200 0 0 SIZE 20 END END END ------------------------------------ Here is the error I receive: msDrawMap(): Image handling error. Failed to draw layer named 'getWFS'. msOGRLayerInitItemInfo(): OGR error. Invalid Field name: STATE If I leave the LABELITEM off the layer draws fine (with no layers). The shapefile used by the WFS server does have a "STATE" attribute. I have tried replacing "STATE" with "all" in the gml_include_items with the same result. Looking at the GML produced, thee are no attribute fields included there. If I access the WFS server directly using mode=map and include the same label info in its mapfile, the labels show up fine. What am I doing wrong that the attributes are not being sent by the WFS server in the GML? Chip Taylor From taatuut at CHELLO.NL Thu Apr 27 10:11:24 2006 From: taatuut at CHELLO.NL (Emil Zegers) Date: Thu, 27 Apr 2006 19:11:24 +0200 Subject: ARCIMS user question In-Reply-To: Message-ID: Hello Eric, If I understand your wishes correctly, this can be done with 'only' MS4W. You have various options: 1. In the map file use connnectiontype OGR and a dynamically build "SELECT..." query with template variables where values from the dropdown are put in. This query should run on the shapefile joined to the database table. For example see http://mapserver.gis.umn.edu/docs/howto/ogr_howto/#queries-through-ogr-forma t , paragraph 4.2 sample 4 2. Use only the database table: it then needs x,y coordinate columns in the table so you can use it as a virtual data layer (VRT). Works for point layers but also for line, polygon etc. layers. See http://mapserver.gis.umn.edu/docs/reference/vector_data/VirtualSpatialData and http://gdal.maptools.org/ogr/drv_vrt.html, use SrcSQL to generate the desired layer result. Or pull the data from a spatial database like ArcSDE, PostGIS, Oracle... Although I don't have complete code samples I hope this gives you some leads to follow. A good place to start for info on using vector data with MapServer is http://mapserver.gis.umn.edu/docs/reference/vector_data Also search the mailing list archives for more info on join and vrt. Regards, Emil -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of D. Eric Keefauver Sent: maandag 24 april 2006 18:07 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] ARCIMS user question Hello, I have been using ArcIMS 9.1 to deploy internet GIS applications for a while now and have looked into MapServer as a substitute to ArcIMS (only to the point of setting up a successful demo version of the ITACSA data but using my data sets). My question is this: I am looking into having map "service" setup where I have one shapefile that will render water quality data from a database (let's say it's a point file). The water quality data is date specific with associated PH values, so in the end we have, say 40 points that each have many water quality data values with dates when the testing was completed. I am thinking of a small application where there could be a drop-down box where the user could select a date and the map would render the point file w-quality values on the fly for the selected date. Is this something that is possible and if so, what would I need to have installed other than Mapserver MS4W. I am very new to Mapserver. Any information would be helpful. Regards, Eric From work at XWB.COM Thu Apr 27 10:57:10 2006 From: work at XWB.COM (Chip Taylor) Date: Thu, 27 Apr 2006 10:57:10 -0700 Subject: WFS and HTTPS In-Reply-To: <004b01c66a10$db65a310$0601a8c0@DevChip> Message-ID: When I try to access a WFS server running on a Windows box (IIS 6.0) through port 443 (SSL) like this: https://mymap.mydomain.com/bin/mapserv.exe?mode=map&map=map_files/getWFS.map &layer=Larry I get the following error: msHTTPExecuteRequests(): HTTP request error. HTTP: request failed with curl error code 1 (libcurl was built with SSL disabled, https: not supported!) Is it possible to access a WFS server through SSL? Chip Taylor From jemacchi at YAHOO.COM.AR Thu Apr 27 10:09:26 2006 From: jemacchi at YAHOO.COM.AR (=?ISO-8859-1?Q?Jos=E9_Macchi?=) Date: Thu, 27 Apr 2006 14:09:26 -0300 Subject: laszlo WMS client ! Message-ID: hi people ! how are you ? I'm Jose. I'm working on a project on which i wanted to mix different technologies to create a Rich Internet Client for WMS and WFS. So as i have used Laszlo once in other project, and it results a good option i used it for creating a reduced WMS client (...now i have my client working on flash, accesing the demo server http://www2.dmsolutions.ca/cgi-bin/mswms_gmap? ......WFS will come! step by step). As i said, i want to create a RIA client for WMS and WFS, so i expect to include more features on next weeks/month...for now, you can test the demo on: http://www.softwaredelcentro.com.ar/users/jose.macchi/application/geoar/geoar.html (dont try to see the layer's list....i'm working on it...;-) ). This client will be an OpenSource project, called GeoAr on SourceForge http://geoar.sourceforge.net/ (next weeks i'm going to design some pages for it) Well, I'm ansious expecting your comments, suggestions, etc for doing this job really interesting and useful for all the gis community. See you soon Jos? Macchi __________________________________________________ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ?gratis! ?Abr? tu cuenta ya! - http://correo.yahoo.com.ar From pauljame at GMAIL.COM Thu Apr 27 12:29:24 2006 From: pauljame at GMAIL.COM (Paul james) Date: Thu, 27 Apr 2006 16:29:24 -0300 Subject: Click in reference map.... Message-ID: Hello all... I?m with a problem with a click in my reference map...I?m using zoomScale in mapscript to do the reference click, like that: (C#) mapaObj.zoomScale(__mapScale, __point, mapaObj.width, mapaObj.height, __OriginalExtent, null); I calculated the __point like that: (JS) y = (map.height * yReferenceClicked) / referenceMap.height; x = (map.width * xReferenceClicked) / referenceMap.width; Ok...When I?m in original scale, It?s work great... But when a start to zoom in my Map, the reference click starts to show the wrong place, especially when the click is in the sides of the reference map... You can see whats happening here : http://eabserver.osu.edu/eab_mapserverapp/eab_tiger.phtml?PREVIOUS_MODE=1&ohcnty=Y&ohcnty_anno=Y&ohidx=Y&tiger_roads=Y&tiger_rdanno=Y&MapSize=800%2C600&minx=72979.237684&miny=177658.043136&maxx=81272.604226&maxy=183878.068042&imagewidth=800&imageheight=600&CMD=ZOOM_IN&CMD=ZOOM_IN&KEYMAPXSIZE=156&KEYMAPYSIZE=125&KEYMAP.x=134&KEYMAP.y=9 Try click on the left top side ... Any ideas? Is zoomScale the best way to simulate a reference click?? TY -------------- next part -------------- An HTML attachment was scrubbed... URL: From bpederse at NATURE.BERKELEY.EDU Thu Apr 27 15:07:35 2006 From: bpederse at NATURE.BERKELEY.EDU (Brent Pedersen) Date: Thu, 27 Apr 2006 15:07:35 -0700 Subject: randomly assigned COLOR 's? In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD55D0968@s-sp22.pca.state.mn.us> Message-ID: hi, thanks for the replies, since i wanted to keep as a shapefile, i just opened it up in open office, added a column, alternated 1..5, and added the appropriate classes to my .map file. pretty painless. -brent On Apr 21, 2006, at 10:46 AM, Fawcett, David wrote: > Brent, > > Since your countries shapefile likely won't change very often, I would > go with your fallback solution. > > It is always faster to pre-class your data. > > David. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER- > USERS at LISTS.UMN.EDU] On > Behalf Of Brent Pedersen > Sent: Friday, April 21, 2006 11:41 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] randomly assigned COLOR 's? > > > hi, > > with a map of the world with country boundaries and > using only the mapserver CGI, is it possible to have the countries > filled with one of ~5 different colors. either at random or > uniformly. is there a way to do this in the mapfile without relying > on attributes in the shapefile? > > my fallback solution will be to add a column in the .shp and assign > number 1 - 5 to each country and use that in a map file EXPRESSION. i > thought maybe there was another means i was missing. something like > an automatic alternating color scheme... to help me do less work. > > thanks, > -brent > From bryon at PEOPLEGIS.COM Thu Apr 27 15:14:44 2006 From: bryon at PEOPLEGIS.COM (Bryon Kenne) Date: Thu, 27 Apr 2006 18:14:44 -0400 Subject: How do I create a new shapeObj from a list of shapeobj? Message-ID: I am retrieving a list of shapes from a line shapefile file using the following code: for($x=0;$xgetshape(-1, $oShapeList[$x]); array_push($oShapeObjectList,$oSelectedShape); } I want to merge this list of shapes into one shape (i.e. one line). I thought I could do it using the following code but it returns a "*Fatal error*: Object has an invalid _handle_ property": $oLine = ms_newShapeObj(MS_SHAPE_LINE); For($x=0; $xadd($oShapeObjectList[$x]); } The goal here is to create one line, then use the GEOS - buffer(width) to create a polygon object that I can save to a new shapefile. Does anybody have any ideas? OR CODE!!! Sincerely, Bryon -------------- next part -------------- An HTML attachment was scrubbed... URL: From bryon at PEOPLEGIS.COM Thu Apr 27 15:55:16 2006 From: bryon at PEOPLEGIS.COM (Bryon Kenne) Date: Thu, 27 Apr 2006 18:55:16 -0400 Subject: How do I create a new shapeObj from a list of shapeobj? Message-ID: I am retrieving a list of shapes from a line shapefile file using the following code: for($x=0;$xgetshape(-1, $oShapeList[$x]); array_push($oShapeObjectList,$oSelectedShape); } I want to merge this list of shapes into one shape (i.e. one line). I thought I could do it using the following code but it returns a "Fatal error: Object has an invalid _handle_ property": $oLine = ms_newShapeObj(MS_SHAPE_LINE); For($x=0; $xadd($oShapeObjectList[$x]); } The goal here is to create one line, then use the GEOS - buffer(width) to create a polygon object that I can save to a new shapefile. Does anybody have any ideas? OR CODE!!! Sincerely, Bryon From pcreso at PCRESO.COM Fri Apr 28 00:20:57 2006 From: pcreso at PCRESO.COM (Brent Wood) Date: Fri, 28 Apr 2006 00:20:57 -0700 Subject: Java mapscript WMS client problem In-Reply-To: <4436F6D2.7090802@refractions.net> Message-ID: I'm trying to help somone with plenty of Java development eperience but no GIS/spatial data experience. I have got a mapserver WMS server working OK, at least as far as the Intergraph WMS demo viewer is concerned. We have a Java mapscript app embedded in a Java app, working through a mapfile. It seems to (mostly) work OK, but is certainly quirky compared with the CGI. The main problem at present is that if we enable the WMS layer, there is no error msg, no feedback, but no map is rendered (& yes, debug is on :-). It all works OK if the WMS layer is not selected. We are assuming that Java mapscript supports WMS data sources, but may be mistaken. Does anyone know of any sites which use Java mapscript to access WMS layers? or of anyone with any experience in Java mapscript we can swap a few emails with? Thanks, Brent Wood From xavier.mauclaire at GEOTER.FR Fri Apr 28 01:33:04 2006 From: xavier.mauclaire at GEOTER.FR (Xavier Mauclaire) Date: Fri, 28 Apr 2006 10:33:04 +0200 Subject: Mono problem with mapscript HELP Message-ID: Hi I'm working with mapscirprt 4.8.3 under apache2 and mono 1.1.13 In my asppage i've got the code mapObj pMap = new mapObj("/home/test/mapfile.map"); This piece of code generate an exception An exception was thrown by the type initializer for mapscriptPINVOKE and i don't know why ? any help will be appreciated regards ----------------------------------------- Xavier Mauclaire ------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From D.Stone at ED.AC.UK Fri Apr 28 03:58:21 2006 From: D.Stone at ED.AC.UK (DjwStone) Date: Fri, 28 Apr 2006 03:58:21 -0700 Subject: Select lists Message-ID: Hi - I have a problem with select lists in MapServer 4.8.3 CGI. The template containing my interactive map is modelled on the 4.6 tutorial, so it contains select lists for the layers to display and the mode (defined CGI variables); also a list of location types (a 'user-defined' variable). I find that if I make (possibly multiple) selections from the 'layers' list, then when I call MapServer to re-draw the map, the selected list entries are still highlighted. However, for the 'mode' and 'location type' select lists, nothing I do seems to render the selections 'sticky' across a call of MapServer. This might be expected for the user-defined variable, but not 'mode'. The HTML is:
Select map mode:

Select type of dedication to plot on map:
Any suggestions gratefully received.... Dave -- View this message in context: http://www.nabble.com/Select-lists-t1523804.html#a4138182 Sent from the Mapserver - User forum at Nabble.com. From listario at GMAIL.COM Fri Apr 28 04:39:59 2006 From: listario at GMAIL.COM (J. Parapar) Date: Fri, 28 Apr 2006 13:39:59 +0200 Subject: Select lists In-Reply-To: <4138182.post@talk.nabble.com> Message-ID: Hi Dave I think (I may be wrong) the "_select" suffix does not work with modes. It is usually used for layers and zoom factor values. You can use JavaScript to get the efect by defining variables like: var mode=[mode]; var dtype=[dtype]; and use JavaScript logic in the page load to set the selected values of the lists according to this values. Best regards, Jorge 2006/4/28, DjwStone : > Hi - I have a problem with select lists in MapServer 4.8.3 CGI. > > The template containing my interactive map is modelled on the 4.6 tutorial, > so it contains select lists for the layers to display and the mode (defined > CGI variables); also a list of location types (a 'user-defined' variable). > > I find that if I make (possibly multiple) selections from the 'layers' list, > then when I call MapServer to re-draw the map, the selected list entries are > still highlighted. > > However, for the 'mode' and 'location type' select lists, nothing I do seems > to render the selections 'sticky' across a call of MapServer. This might be > expected for the user-defined variable, but not 'mode'. > > The HTML is: >
> Select map mode:
>
> Select type of dedication to plot on map:
> > > Any suggestions gratefully received.... > > Dave > > > -- > View this message in context: http://www.nabble.com/Select-lists-t1523804.html#a4138182 > Sent from the Mapserver - User forum at Nabble.com. > From kevin at PEOPLEGIS.COM Fri Apr 28 07:01:22 2006 From: kevin at PEOPLEGIS.COM (Kevin Flanders) Date: Fri, 28 Apr 2006 10:01:22 -0400 Subject: php help Message-ID: I am retrieving a list of shapes from a line shapefile file using the following code: for($x=0;$xgetshape(-1, $oShapeList[$x]); array_push($oShapeObjectList,$oSelectedShape); } I want to merge this list of shapes into one shape (i.e. one line). I thought I could do it using the following code but it returns a "Fatal error: Object has an invalid _handle_ property": $oLine = ms_newShapeObj(MS_SHAPE_LINE); For($x=0; $xadd($oShapeObjectList[$x]); } The goal here is to create one line, then use the GEOS - buffer(width) to create a polygon object that I can save to a new shapefile. Does anybody have any ideas? OR CODE!!! Sincerely, Bryon -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Fri Apr 28 07:55:25 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 28 Apr 2006 09:55:25 -0500 Subject: Select lists Message-ID: Jorge is correct. There's a reason too. With the standard pan/zoom/query interface there is little reason for the mode to be sticky. If you pan/zoom then setting the mode back to browse is all you really need. Queries are almost always dead-ends, that is, you don't query a query so a sticky mode doesn't make sense. There are always exceptions to the rule I suppose but that's why things are as they are. Easy enough to work around with a touch of javascript... Steve >>> "J. Parapar" 4/28/2006 6:39:59 AM >>> Hi Dave I think (I may be wrong) the "_select" suffix does not work with modes. It is usually used for layers and zoom factor values. You can use JavaScript to get the efect by defining variables like: var mode=[mode]; var dtype=[dtype]; and use JavaScript logic in the page load to set the selected values of the lists according to this values. Best regards, Jorge 2006/4/28, DjwStone : > Hi - I have a problem with select lists in MapServer 4.8.3 CGI. > > The template containing my interactive map is modelled on the 4.6 tutorial, > so it contains select lists for the layers to display and the mode (defined > CGI variables); also a list of location types (a 'user-defined' variable). > > I find that if I make (possibly multiple) selections from the 'layers' list, > then when I call MapServer to re-draw the map, the selected list entries are > still highlighted. > > However, for the 'mode' and 'location type' select lists, nothing I do seems > to render the selections 'sticky' across a call of MapServer. This might be > expected for the user-defined variable, but not 'mode'. > > The HTML is: >
> Select map mode:
>
> Select type of dedication to plot on map:
> > > Any suggestions gratefully received.... > > Dave > > > -- > View this message in context: http://www.nabble.com/Select-lists-t1523804.html#a4138182 > Sent from the Mapserver - User forum at Nabble.com. > From bartvde at XS4ALL.NL Fri Apr 28 08:00:06 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Fri, 28 Apr 2006 17:00:06 +0200 Subject: Learning WFS In-Reply-To: <004b01c66a10$db65a310$0601a8c0@DevChip> Message-ID: Chip, do a DescribeFeatureType request on your WFS, maybe the attribute has a namespace in front of it and you need to use that namespace in the LABELITEM, so eg ms:STATE. But to be sure, check your DescribeFeatureType response. ?request=DescribeFeatureType&typename=states&version=1.0.0 Best regards, Bart Chip Taylor wrote: >I am beginning to learn WFS and have had some success in setting up a WFS >server using MapServer 4.6.1 under IIS6 and then accessing it. However, I >am not able to get "gml_include_items" to work. Here is my WFS server >layer: > >##################################### ># WFS States ># >LAYER > NAME "states" > METADATA > "wfs_title" "States" > "gml_include_items" "STATE" > END > DATA "US/States/statesp020" > STATUS ON > TYPE polygon > DUMP TRUE > PROJECTION > "init=epsg:4326" > END > CLASS > STYLE > COLOR 0 0 255 > END > END > >END > >------------------------------------- >And here is the call from Mapserver as a client: > >##################################### ># getWFS Layer ># >LAYER > NAME "getWFS" > TYPE POLYGON > STATUS ON > CONNECTIONTYPE WFS > CONNECTION >"http://mapwfs.com/cgi-bin/mapserv.exe?map=../mapfiles/map_files/wfs_test.ma >p" > METADATA > "wfs_typename" "states" > "wfs_version" "1.0.0" > "wfs_request_method" "GET" > "wfs_connectiontimeout" "60" > "wfs_maxfeatures" "all" > "wfs_srs" "epsg:4326" > END > PROJECTION > "init=epsg:4326" > END > LABELITEM STATE > CLASS > NAME "States" > STYLE > COLOR 80 80 250 > OUTLINECOLOR 120 120 120 > END > LABEL > COLOR 0 0 0 > OUTLINECOLOR 200 0 0 > SIZE 20 > END > END > >END >------------------------------------ >Here is the error I receive: >msDrawMap(): Image handling error. Failed to draw layer named 'getWFS'. >msOGRLayerInitItemInfo(): OGR error. Invalid Field name: STATE > >If I leave the LABELITEM off the layer draws fine (with no layers). The >shapefile used by the WFS server does have a "STATE" attribute. I have >tried replacing "STATE" with "all" in the gml_include_items with the same >result. Looking at the GML produced, thee are no attribute fields included >there. > >If I access the WFS server directly using mode=map and include the same >label info in its mapfile, the labels show up fine. > >What am I doing wrong that the attributes are not being sent by the WFS >server in the GML? > >Chip Taylor > > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From Steve.Lime at DNR.STATE.MN.US Fri Apr 28 08:01:15 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 28 Apr 2006 10:01:15 -0500 Subject: php help Message-ID: You can only add lines to a shape so the psuedo code would look like (I think you're missing the inner loop): new_shape = new shapeObj(MS_SHAPE_LINE) for each shape in the list { for each line in the shape { new_shape->add(line) } } buffered_shape = new_shape->buffer(width) shapefile = new shapefileObj() shapefile->add(buffered_shape) Steve >>> Kevin Flanders 4/28/2006 9:01:22 AM >>> I am retrieving a list of shapes from a line shapefile file using the following code: for($x=0;$xgetshape(-1, $oShapeList[$x]); array_push($oShapeObjectList,$oSelectedShape); } I want to merge this list of shapes into one shape (i.e. one line). I thought I could do it using the following code but it returns a "Fatal error: Object has an invalid _handle_ property": $oLine = ms_newShapeObj(MS_SHAPE_LINE); For($x=0; $xadd($oShapeObjectList[$x]); } The goal here is to create one line, then use the GEOS - buffer(width) to create a polygon object that I can save to a new shapefile. Does anybody have any ideas? OR CODE!!! Sincerely, Bryon From D.Stone at ED.AC.UK Fri Apr 28 09:08:53 2006 From: D.Stone at ED.AC.UK (DjwStone) Date: Fri, 28 Apr 2006 09:08:53 -0700 Subject: Select lists In-Reply-To: <4ac992660604280439w5b2be173kdce6532d65fc7515@mail.gmail.com> Message-ID: Thanks, Jorge, finally got it to work! Cheers, Dave J. Parapar wrote: > > Hi Dave > > I think (I may be wrong) the "_select" suffix does not work with > modes. It is usually used for layers and zoom factor values. > You can use JavaScript to get the efect by defining variables like: > > var mode=[mode]; > var dtype=[dtype]; > > and use JavaScript logic in the page load to set the selected values > of the lists according to this values. > > Best regards, > Jorge > > > > > 2006/4/28, DjwStone : >> Hi - I have a problem with select lists in MapServer 4.8.3 CGI. >> >> The template containing my interactive map is modelled on the 4.6 >> tutorial, >> so it contains select lists for the layers to display and the mode >> (defined >> CGI variables); also a list of location types (a 'user-defined' >> variable). >> >> I find that if I make (possibly multiple) selections from the 'layers' >> list, >> then when I call MapServer to re-draw the map, the selected list entries >> are >> still highlighted. >> >> However, for the 'mode' and 'location type' select lists, nothing I do >> seems >> to render the selections 'sticky' across a call of MapServer. This might >> be >> expected for the user-defined variable, but not 'mode'. >> >> The HTML is: >>
>> Select map mode:
>>
>> Select type of dedication to plot on map:
>> >> >> Any suggestions gratefully received.... >> >> Dave >> >> >> -- >> View this message in context: >> http://www.nabble.com/Select-lists-t1523804.html#a4138182 >> Sent from the Mapserver - User forum at Nabble.com. >> > > -- View this message in context: http://www.nabble.com/Select-lists-t1523804.html#a4143257 Sent from the Mapserver - User forum at Nabble.com. From julien.63 at FREE.FR Fri Apr 28 09:09:49 2006 From: julien.63 at FREE.FR (Bessiere Julien) Date: Fri, 28 Apr 2006 11:09:49 -0500 Subject: CFLAFS and CC Message-ID: Hi, i'm trying to install shapelib in the process to install MapServer but... I have this message: [root at localhost shapelib-1.2.10]# make cc -g -c shpopen.c cc -g shpcreate.c shpopen.o -o shpcreate shpcreate.c: In function ?main?: shpcreate.c:68: attention : incompatible implicit declaration of built-in function ?exit? shpcreate.c:85: attention : incompatible implicit declaration of built-in function ?exit? shpcreate.c:96: attention : incompatible implicit declaration of built-in function ?exit? cc -g shpadd.c shpopen.o -o shpadd cc -g shpdump.c shpopen.o -o shpdump shpdump.c: In function ?main?: shpdump.c:93: attention : incompatible implicit declaration of built-in function ?exit? shpdump.c:104: attention : incompatible implicit declaration of built-in function ?exit? shpdump.c:198: attention : incompatible implicit declaration of built-in function ?exit? cc -g shprewind.c shpopen.o -o shprewind shprewind.c: In function ?main?: shprewind.c:61: attention : incompatible implicit declaration of built-in function ?exit? shprewind.c:72: attention : incompatible implicit declaration of built-in function ?exit? shprewind.c:85: attention : incompatible implicit declaration of built-in function ?exit? shprewind.c:108: attention : incompatible implicit declaration of built-in function ?exit? cc -g -c dbfopen.c cc -g dbfcreate.c dbfopen.o -o dbfcreate cc -g dbfadd.c dbfopen.o -o dbfadd cc -g dbfdump.c dbfopen.o -o dbfdump cc -g shptest.c shpopen.o -o shptest As said in the INSTALL file, i have to set CFLAGS and CC. But i don't know what to write. For the moment it's : CFLAGS = -g I'm on fedora core 5. [julien at localhost ~]$ cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 2 model name : Intel(R) Pentium(R) 4 CPU 3.00GHz stepping : 9 cpu MHz : 2993.290 cache size : 512 KB physical id : 0 siblings : 2 core id : 0 cpu cores : 1 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid xtpr bogomips : 5995.92 processor : 1 vendor_id : GenuineIntel cpu family : 15 model : 2 model name : Intel(R) Pentium(R) 4 CPU 3.00GHz stepping : 9 cpu MHz : 2993.290 cache size : 512 KB physical id : 0 siblings : 2 core id : 0 cpu cores : 1 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid xtpr bogomips : 5986.03 thanks Julien From warmerdam at POBOX.COM Fri Apr 28 09:50:51 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 28 Apr 2006 12:50:51 -0400 Subject: CFLAFS and CC In-Reply-To: <1146240589.831.8.camel@localhost.localdomain> Message-ID: Bessiere Julien wrote: > Hi, > i'm trying to install shapelib in the process to install > MapServer > but... > I have this message: > > [root at localhost shapelib-1.2.10]# make > cc -g -c shpopen.c > cc -g shpcreate.c shpopen.o -o shpcreate > shpcreate.c: In function ?main?: > shpcreate.c:68: attention : incompatible implicit declaration of > built-in function ?exit? > shpcreate.c:85: attention : incompatible implicit declaration of > built-in function ?exit? > shpcreate.c:96: attention : incompatible implicit declaration of > built-in function ?exit? > cc -g shpadd.c shpopen.o -o shpadd > cc -g shpdump.c shpopen.o -o shpdump > shpdump.c: In function ?main?: > shpdump.c:93: attention : incompatible implicit declaration of > built-in > function ?exit? > shpdump.c:104: attention : incompatible implicit declaration of > built-in > function ?exit? > shpdump.c:198: attention : incompatible implicit declaration of > built-in > function ?exit? > cc -g shprewind.c shpopen.o -o shprewind > shprewind.c: In function ?main?: > shprewind.c:61: attention : incompatible implicit declaration of > built-in function ?exit? > shprewind.c:72: attention : incompatible implicit declaration of > built-in function ?exit? > shprewind.c:85: attention : incompatible implicit declaration of > built-in function ?exit? > shprewind.c:108: attention : incompatible implicit declaration > of > built-in function ?exit? > cc -g -c dbfopen.c > cc -g dbfcreate.c dbfopen.o -o dbfcreate > cc -g dbfadd.c dbfopen.o -o dbfadd > cc -g dbfdump.c dbfopen.o -o dbfdump > cc -g shptest.c shpopen.o -o shptest > > As said in the INSTALL file, i have to set CFLAGS and CC. > But i don't know what to write. > For the moment it's : CFLAGS = -g > I'm on fedora core 5. Julien, First, shapelib is not used by MapServer. MapServer has a morphed version of the shapelib code included internally. So perhaps you don't need shapelib. Second, it seems all the "Attemption" messages are advisory. Certainly it looks like stuff such as shptest linked successfully. CFLAGS=-g should be fine unless you need optimization in which case you could use CFLAGS=-O2 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 OSGF, http://osgeo.org From bryon at PEOPLEGIS.COM Fri Apr 28 10:59:26 2006 From: bryon at PEOPLEGIS.COM (Bryon Kenne) Date: Fri, 28 Apr 2006 13:59:26 -0400 Subject: php help In-Reply-To: Message-ID: Steve, I interpreted your outline as best I could into PHP code, but my code is dying at the inner loop. I don't think I am calling the individual lines from the shape correctly.... Here is my code: $new_shape = ms_newShapeObj(MS_SHAPE_LINE); foreach ($oShapeObjectList as $Shape) { foreach ($Shape as $line) { $new_shape->add($line); } } $buffered_shape = $new_shape->buffer($dfTolerance); $shapefile = ms_newShapeObj(MS_SHAPE_POLYGON); $shapefile->add(buffered_shape); Any Ideas? Sincerely, Bryon On 4/28/06, Steve Lime wrote: > You can only add lines to a shape so the psuedo code would look like (I think you're missing the inner loop): > > new_shape = new shapeObj(MS_SHAPE_LINE) > for each shape in the list { > for each line in the shape { > new_shape->add(line) > } > } > > buffered_shape = new_shape->buffer(width) > > shapefile = new shapefileObj() > shapefile->add(buffered_shape) > > Steve > > >>> Kevin Flanders 4/28/2006 9:01:22 AM >>> > I am retrieving a list of shapes from a line shapefile file using the > following code: > > for($x=0;$x { > $oSelectedShape = $oRelationLayer->getshape(-1, $oShapeList[$x]); > array_push($oShapeObjectList,$oSelectedShape); > } > > I want to merge this list of shapes into one shape (i.e. one line). I > thought I could do it using the following code but it returns a "Fatal > error: Object has an invalid _handle_ property": > > $oLine = ms_newShapeObj(MS_SHAPE_LINE); > For($x=0; $x { > $oLine->add($oShapeObjectList[$x]); > } > > The goal here is to create one line, then use the GEOS - buffer(width) to > create a polygon object that I can save to a new shapefile. > > Does anybody have any ideas? OR CODE!!! > > Sincerely, > > Bryon > -- Bryon Kenne PeopleGIS, Inc. Direct/Cell: (917)671-6951 Email: bryon at peoplegis.com From szekeres.tamas at FREEMAIL.HU Fri Apr 28 14:10:17 2006 From: szekeres.tamas at FREEMAIL.HU (=?iso-8859-2?Q?Szekeres_Tam=E1s?=) Date: Fri, 28 Apr 2006 23:10:17 +0200 Subject: Mono problem with mapscript HELP Message-ID: Xavier, The problem is too generic to suggest a straight solution. Do you have any additional error messages? Are you sure that mapscript and all of the dependent libraries available to load by mapscript_csharp.dll? Does this piece of code work in a separate application directly? Tamas On Fri, 28 Apr 2006 10:33:04 +0200, Xavier Mauclaire wrote: >Hi > >I'm working with mapscirprt 4.8.3 under apache2 and mono 1.1.13 > >In my asppage i've got the code > >mapObj pMap = new mapObj("/home/test/mapfile.map"); > >This piece of code generate an exception > >An exception was thrown by the type initializer for mapscriptPINVOKE > > > >and i don't know why ? > >any help will be appreciated > >regards > >----------------------------------------- > >Xavier Mauclaire > >------------------------------------------------------- > > -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.5.1/327 - Release Date: 2006.04.28. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.5.1/327 - Release Date: 2006.04.28. -------------- next part -------------- An HTML attachment was scrubbed... URL: From fantognini at GMAIL.COM Fri Apr 28 14:01:47 2006 From: fantognini at GMAIL.COM (Francesco Antognini) Date: Fri, 28 Apr 2006 23:01:47 +0200 Subject: MapServer with MapInfo (WFS) In-Reply-To: <2F86ED212F3E164EB9FBB2E68C67858E01BDFDB0@SINFRA0-EXC003.MTQ.MIN.INTRA> Message-ID: Hello I think I'm stuck on a similar problem and maybe I can give further information. I'm basically doing the same thing, testing the WFS service with Mapinfo and while a GetFeature issued from a browser works fine, the same thing done from Mapinfo doesn't work. (WMS works fine) After poking around with various tools, I start to believe this might be a POST vs. GET issue. A browser works with GET requests and appends parameters to the URL, including the vital map path. This works fine. However MapServer in GetCapabilities advertises the POST services too, and some clients will indeed send their requests as POST of XML data. Mapinfo does it for sure. Now: no matter what workaround I use to bring the map into the request, this will still appear as an URL parameter, while the rest of the request is posted as XML. My feeling is that mapserv.exe gets confused about this and thinks that this is really a GET request and starts complaining in various ways about lack of parameters. If that's the real issue, then I can think of some workarounds. The first being how to reinject the map into the request without using a URL parameter. Any idea? Hope I haven't been too confusing TIA F.Antognini On 4/26/06, L?veill?, James wrote: > > Hi all, > > I'm trying to test MapServer (v 4.8.3), the WFS service, with MapInfo (v > 8.0) and keep having this error message: > > *"The WFS Server returned data which was neither in the requested format > nor a recognized WFS service exception : POST body is short.* > *In response to a DescribeFeatureType request, the WFS Server returned an > invalid feature type."* > > The GetCapabilities looks fine, and the GetFeature works fine with IE ... > Here is my (simple) MapFile. > > THANKS A LOT !!! > > > ................... > > > __________________________________________ > *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) > > -- Francesco Antognini Computer Consultant Switzerland fantognini at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From george_jar23 at YAHOO.CO.IN Fri Apr 28 23:06:57 2006 From: george_jar23 at YAHOO.CO.IN (george jaramillo) Date: Sat, 29 Apr 2006 07:06:57 +0100 Subject: project help Message-ID: Hello I want to do a mini-project(online geodata retrieval and plotting system). The project is about maintaining data(collected from any survey/organisation)of a location(0-25N 65-90E) . when the user is online and clicks or drag on any part of the location the data should be displayed. (data such as bathymetry,navigation gravity,magnetism will be maintained). once the data is displayed ,options will come whether the user wants to plot or just save the data, then based on the data the plots/maps should be displayed eg elevation map,contour map etc.. so how should i go about this project ? please advice me as early as possible. eagerly waiting for the reply. thanks george --------------------------------- Jiyo cricket on Yahoo! India cricket Yahoo! Messenger Mobile Stay in touch with your buddies all the time. -------------- next part -------------- An HTML attachment was scrubbed... URL: From igorpsc at YAHOO.COM.BR Sat Apr 29 16:46:09 2006 From: igorpsc at YAHOO.COM.BR (igor pinheiro) Date: Sat, 29 Apr 2006 20:46:09 -0300 Subject: Mouseover with php mapscript Message-ID: Hello, How can i implement a mouseover javascript so that it open a text box with information about the point above the mouse point (without click)? Thanks Igor --------------------------------- Abra sua conta no Yahoo! Mail - 1GB de espa?o, alertas de e-mail no celular e anti-spam realmente eficaz. -------------- next part -------------- An HTML attachment was scrubbed... URL: From abe.gillespie at GMAIL.COM Sat Apr 29 21:33:47 2006 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Sun, 30 Apr 2006 00:33:47 -0400 Subject: Ruby MapScript Message-ID: Just curious if Ruby MapScript is susceptible to the threading issues like C# MapScript is when used in a web environment or if it's naturally protected from problems like PHP. Thanks. -Abe From bartvde at XS4ALL.NL Sun Apr 30 00:20:23 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Sun, 30 Apr 2006 09:20:23 +0200 Subject: Mouseover with php mapscript In-Reply-To: <20060429234609.68623.qmail@web31601.mail.mud.yahoo.com> Message-ID: You can do that using an imagemap. It is one of the output formats of Mapserver. Alternatively, you could look into Chameleon's MapTips widget which does a similar thing using PHP/Mapscript. Best regards, Bart igor pinheiro wrote: > Hello, > How can i implement a mouseover javascript so that it open a text box > with information about the point above the mouse point (without click)? > Thanks > Igor > > Abra sua conta no Yahoo! Mail > > - 1GB de espa?o, alertas de e-mail no celular e anti-spam realmente > eficaz. -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From dejan.gregor at GMAIL.COM Sun Apr 30 01:29:52 2006 From: dejan.gregor at GMAIL.COM (Dejan Gregor) Date: Sun, 30 Apr 2006 10:29:52 +0200 Subject: Windows installation of MapServer Message-ID: Hi! I have a question, if MypServer works with Apache 2.2.0 and WHERE can I how is it wise to install MapServer, if apache is already installed on the Server? Cheers, Dejan -------------- next part -------------- An HTML attachment was scrubbed... URL: From dananrg at YAHOO.COM Sun Apr 30 08:15:34 2006 From: dananrg at YAHOO.COM (dnrg) Date: Sun, 30 Apr 2006 08:15:34 -0700 Subject: Using MapServer for a self-service wind energy resource app? (or solar, microhydro, etc) Message-ID: Seems that TrueWind Solutions LLC in New York dominates the market for providing interactive wind resource mapping over the web - and that, from what I can tell, they use ArcIMS. I will be doing some pro-bono work this summer, helping my alma mater get their wind data on the web. This should help them receive less phone calls of people asking "is the wind resource on my parcel sufficient for a residential wind turbine to power my home?" The University in question does have an ESRI site license, but I suppose: 1) Things change. That may not last forever. Don't want to build an app on a foundation that may disappear 2) I'm assuming, by its open source nature, that MapServer is far more extensible than IMS 3) Seems like there are good MapServer hosting ISPs that aren't too terribly expensive the same probably isn't true with IMS hosting. [Anyone here ever use GISHosting.net, and is it true that they only support Python 2.1?!? (a deprecated version of Python no longer supported by Guido van R)] Can anyone refer me to MapServer sites that are currently serving wind resource data over the web? (or solar, hydro, etc) I would like to compare the functionality of renewable energy MapServer sites with what the TrueWind architected / IMS sites have to offer. Since I am investing heavily in Python for ESRI work-related projects, I would also prefer to go with the internet mapping product that is more extensible using Python. I think Python is underutilized in ArcMap ... it's a far more capable language than ESRI seems to credit it for. Thanks very much. Spatially, Dana __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From sgillies at FRII.COM Sun Apr 30 08:49:45 2006 From: sgillies at FRII.COM (Sean Gillies) Date: Sun, 30 Apr 2006 09:49:45 -0600 Subject: Using MapServer for a self-service wind energy resource app? (or solar, microhydro, etc) In-Reply-To: Message-ID: On Apr 30, 2006, at 9:15 AM, dnrg wrote: > Seems that TrueWind Solutions LLC in New York > dominates the market for providing interactive wind > resource mapping over the web - and that, from what I > can tell, they use ArcIMS. > > I will be doing some pro-bono work this summer, > helping my alma mater get their wind data on the web. > This should help them receive less phone calls of > people asking "is the wind resource on my parcel > sufficient for a residential wind turbine to power my > home?" > > The University in question does have an ESRI site > license, but I suppose: > > 1) Things change. That may not last forever. Don't > want to build an app on a foundation that may > disappear > > 2) I'm assuming, by its open source nature, that > MapServer is far more extensible than IMS > > 3) Seems like there are good MapServer hosting ISPs > that aren't too terribly expensive the same probably > isn't true with IMS hosting. [Anyone here ever use > GISHosting.net, and is it true that they only support > Python 2.1?!? (a deprecated version of Python no > longer supported by Guido van R)] > > Can anyone refer me to MapServer sites that are > currently serving wind resource data over the web? (or > solar, hydro, etc) I would like to compare the > functionality of renewable energy MapServer sites with > what the TrueWind architected / IMS sites have to > offer. > > Since I am investing heavily in Python for ESRI > work-related projects, I would also prefer to go with > the internet mapping product that is more extensible > using Python. I think Python is underutilized in > ArcMap ... it's a far more capable language than ESRI > seems to credit it for. > > Thanks very much. > > Spatially, > > Dana > Dana, Python is a good choice. Presently, the Python language bindings for MapServer are the most rigorously tested of all, and you will also find more support for Python in the GDAL/OGR user community than any other language. Python also has a profusion of web programming frameworks and tool kits, which is a blessing or a curse depending on your perspective. ISPs tend to see it as the latter, which is why you don't find it offered as widely as PHP or Perl. If you like Plone, there is a mapping product for that application http://www.primagis.fi That will marry your Plone content to MapServer, and give you a through-the-web interface for map configuration. PrimaGIS uses the Python Cartographic Library, a new and more Pythonic abstraction over MapServer and GDAL. It's possible that all your needs may be met by combining the good old MapServer CGI program with a nice AJAX browser application. Don't overlook this before you start to invest a lot of resources in creating a new server application. cheers, Sean --- Sean Gillies http://zcologia.com From pcreso at PCRESO.COM Sun Apr 30 16:26:22 2006 From: pcreso at PCRESO.COM (Brent Wood) Date: Sun, 30 Apr 2006 16:26:22 -0700 Subject: Fwd: Sabbatical funding opportunity (fwd) Message-ID: Hi.... This may be of interest to some people on this list, especially those with some experience in this area, such as the DM Solutions staff involved with GoMMap and other mapping portals. I'm peripherally involved with helping implement the New Zealand OBIS node, which, unfortunately, is not mapserver based. Cheers, Brent Wood > ---------- Forwarded message ---------- > > To: undisclosed-recipients: ; > Subject: Sabbatical funding opportunity > > ******************************************************************************* > CenSeam E-News > > Census of Marine Life sabbatical funding opportunity - joint ocean > biogeographic information system (OBIS) - Ocean.US project > > ********************************************************************************* > > The Census of Marine Life and Ocean.US are jointly offering a short-term > (e.g., one semester) sabbatical or part-time fellowship opportunity to > work on a Joint Ocean Biogeographic Information System (OBIS)-Ocean.US > Project. One goal of the joint project is to understand better the human > resource needs and organizational arrangements in Ocean.US to have a > system that provides outstanding services on data about living marine > resources. A second goal is to lead by example, i.e., to develop, > implement, and document software required for the integration of the > OBIS global systematic, ecological, and environmental data with IOOS > data. For more information about this unique opportunity and > application procedure, please see the full position description at > http://coml.us/?anchor=coml_us_funding_opportunities. > > -- > Mireille Consalvey > > National Institute of Water and Atmospheric Research, > Private Bag 14--901, > Wellington, > New Zealand > Phone: +64 4 386 0853 (or ext. 8589) FAX: +64 4 386 0574 > > CenSeam: a Global Census of Marine Life on Seamounts - part of the worldwide > Census of Marine Life (CoML). > > CoML is a growing global network of researchers in more than 70 nations > engaged in a ten-year initiative to assess and > explain the diversity, distribution and abundance of marine life in the > oceans past, present and future. > > Visit the CenSeam webpage at http://censeam.niwa.co.nz/ > > > > > From hydromap at GMAIL.COM Sun Apr 30 20:46:38 2006 From: hydromap at GMAIL.COM (Shoaib Burq) Date: Mon, 1 May 2006 13:46:38 +1000 Subject: Mapserver in Research/Education Message-ID: Hi list I will be giving a presentation on the use of OSGeo Software for Research/Education. The presentation will be at Melbourne Univ, Australia. I was wondering if there are any people out there who might like to share their details of projects or experiences with using Mapserver or related technologies for Research/Education purposes. Thanks heaps shoaib -- http://geospatial.nomad-labs.com From punkish at EIDESIS.ORG Sun Apr 30 21:25:44 2006 From: punkish at EIDESIS.ORG (Puneet Kishor) Date: Sun, 30 Apr 2006 23:25:44 -0500 Subject: Mapserver in Research/Education In-Reply-To: <60c6835d0604302046qd52a29ifab6d63ea05851a6@mail.gmail.com> Message-ID: Shoaib Burq wrote: > Hi list > > I will be giving a presentation on the use of OSGeo Software for > Research/Education. The presentation will be at Melbourne Univ, > Australia. > > I was wondering if there are any people out there who might like to > share their details of projects or experiences with using Mapserver or > related technologies for Research/Education purposes. Shoaib, You might want to follow the links from https://edu.osgeo.org/ (esp. the wiki). Not much there yet as we are just starting, but contacting the education committee members would be a good start. Needless to say, we would welcome whatever you discover, and then, we would definitely welcome your final presentation. I am copying this to the edu discussion list as well. -- Puneet Kishor